@ebrains/react 1.2.0 → 1.4.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-app-root.entry.esm.js +4 -4
- package/{eds-avatar_28.entry.esm.js → eds-avatar_29.entry.esm.js} +277 -130
- 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-progress-bar.entry.esm.js +4 -4
- package/eds-rating.entry.esm.js +1 -1
- package/eds-section-core_2.entry.esm.js +5 -5
- package/eds-spinner.entry.esm.js +3 -3
- package/eds-switch.entry.esm.js +5 -5
- package/eds-timeline.entry.esm.js +4 -4
- package/eds-toast-manager.entry.esm.js +1 -1
- package/eds-tooltip.entry.esm.js +3 -3
- package/eds-trl.entry.esm.js +2 -2
- package/incorrect-use-of-colors.entry.esm.js +8 -8
- package/index.esm.js +1 -1
- package/index.esm2.js +6 -7
- 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/src/components.d.ts +2 -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
- package/eds-toast.entry.esm.js +0 -93
|
@@ -11,47 +11,47 @@ const LogoVariationsHorizontal = class {
|
|
|
11
11
|
}
|
|
12
12
|
render() {
|
|
13
13
|
return h("div", {
|
|
14
|
-
key: '
|
|
14
|
+
key: 'b8329902e5b54186ff70883b7629ce713f9916e3',
|
|
15
15
|
class: "container"
|
|
16
16
|
}, h("ul", {
|
|
17
|
-
key: '
|
|
17
|
+
key: 'bef5503199fa5390fe3690bf8398702b39f6ce43',
|
|
18
18
|
class: "not-prose grid-layout grid-cols-6 gap-y-8 md:gap-y-12 lg:gap-y-16"
|
|
19
19
|
}, h("li", {
|
|
20
|
-
key: '
|
|
20
|
+
key: 'd5d87badeb69da37aa05c0265079cdadfa7b06ec',
|
|
21
21
|
class: "grid-col-span-6 xxl:grid-col-span-2 xl:grid-col-span-3 lg:grid-col-span-3 md:grid-col-span-3 flex flex-col"
|
|
22
22
|
}, h("p", {
|
|
23
|
-
key: '
|
|
23
|
+
key: '6e263eca9ee6d917b73314a9fed6843e90ab9ad1',
|
|
24
24
|
class: "f-body-01 text-center my-4"
|
|
25
25
|
}, "#1 Coloured"), h("div", {
|
|
26
|
-
key: '
|
|
26
|
+
key: 'dca876e83d4a3196f937204d1f36a22e5e554edb',
|
|
27
27
|
class: "coloured"
|
|
28
28
|
}, h("eds-logo", {
|
|
29
|
-
key: '
|
|
29
|
+
key: '6fadb6eb40b3771e808718ab19e1dcbdb838af14',
|
|
30
30
|
type: "no-bg",
|
|
31
31
|
href: "#"
|
|
32
32
|
}))), h("li", {
|
|
33
|
-
key: '
|
|
33
|
+
key: '913d4163183e8df4978e5030e2049b9627f355ac',
|
|
34
34
|
class: "grid-col-span-6 xxl:grid-col-span-2 xl:grid-col-span-3 lg:grid-col-span-3 md:grid-col-span-3 flex flex-col"
|
|
35
35
|
}, h("p", {
|
|
36
|
-
key: '
|
|
36
|
+
key: '94b74970ae70cd4a97ce07c8f2435995b6224e7b',
|
|
37
37
|
class: "f-body-01 text-center my-4"
|
|
38
38
|
}, "#2 Black & White"), h("div", {
|
|
39
|
-
key: '
|
|
39
|
+
key: '7a10955ff26e151c467e55ce839fa5377509cbca',
|
|
40
40
|
class: "bg-default"
|
|
41
41
|
}, h("eds-logo", {
|
|
42
|
-
key: '
|
|
42
|
+
key: '5bf7bc14877a77acf069e1067d67aebfb993c148',
|
|
43
43
|
type: "black",
|
|
44
44
|
href: "#"
|
|
45
45
|
}))), h("li", {
|
|
46
|
-
key: '
|
|
46
|
+
key: '7b1d286ae816ce932c51bf944e606ce0a0dd692f',
|
|
47
47
|
class: "grid-col-span-6 xxl:grid-col-span-2 xl:grid-col-span-3 lg:grid-col-span-3 md:grid-col-span-3 flex flex-col"
|
|
48
48
|
}, h("p", {
|
|
49
|
-
key: '
|
|
49
|
+
key: '1385573e0cba33124c068536a6df0cc809d2e872',
|
|
50
50
|
class: "f-body-01 text-center my-4"
|
|
51
51
|
}, "#3 Dark"), h("div", {
|
|
52
|
-
key: '
|
|
52
|
+
key: '0d0febe112256ef7372f86886da3d25b2cb8c7d9'
|
|
53
53
|
}, h("eds-logo", {
|
|
54
|
-
key: '
|
|
54
|
+
key: '104ee7af8e721feaf91f6e96909181afea93ebc6',
|
|
55
55
|
type: "color-white",
|
|
56
56
|
href: "#"
|
|
57
57
|
})))));
|
|
@@ -68,50 +68,50 @@ const LogoVariationsVertical = class {
|
|
|
68
68
|
}
|
|
69
69
|
render() {
|
|
70
70
|
return h("div", {
|
|
71
|
-
key: '
|
|
71
|
+
key: 'c5edd87842f2f02818087806b4e2f582da663277',
|
|
72
72
|
class: "container"
|
|
73
73
|
}, h("ul", {
|
|
74
|
-
key: '
|
|
74
|
+
key: 'e2d3e77fbcc9f6cbbe8c293e3548ab5b5b9be53c',
|
|
75
75
|
class: "not-prose grid-layout grid-cols-6 gap-y-8 md:gap-y-12 lg:gap-y-16"
|
|
76
76
|
}, h("li", {
|
|
77
|
-
key: '
|
|
77
|
+
key: '87864a42ddab2c0816e9ff46c8122ea645f077aa',
|
|
78
78
|
class: "grid-col-span-6 xxl:grid-col-span-2 xl:grid-col-span-3 lg:grid-col-span-3 md:grid-col-span-3 flex flex-col"
|
|
79
79
|
}, h("p", {
|
|
80
|
-
key: '
|
|
80
|
+
key: '8187e615b2701e6496cd567882ea338d3e50150d',
|
|
81
81
|
class: "f-body-01 text-center my-4"
|
|
82
82
|
}, "#1 Coloured"), h("div", {
|
|
83
|
-
key: '
|
|
83
|
+
key: '2368fe2ad41d8e325d4a54dac24786bc5a05ab56',
|
|
84
84
|
class: "mx-auto coloured w-[300px]"
|
|
85
85
|
}, h("eds-logo", {
|
|
86
|
-
key: '
|
|
86
|
+
key: '8efcfe38b1dc0498fa5f132bf01feb3fbfdf05fe',
|
|
87
87
|
orientation: "vertical",
|
|
88
88
|
type: "no-bg",
|
|
89
89
|
href: "#"
|
|
90
90
|
}))), h("li", {
|
|
91
|
-
key: '
|
|
91
|
+
key: '780ca8af41665e5bc92c6c25efd1e9a3552eacbe',
|
|
92
92
|
class: "grid-col-span-6 xxl:grid-col-span-2 xl:grid-col-span-3 lg:grid-col-span-3 md:grid-col-span-3 flex flex-col"
|
|
93
93
|
}, h("p", {
|
|
94
|
-
key: '
|
|
94
|
+
key: 'ea00627b69008f8438a74d84cd00ac76bcbc36f3',
|
|
95
95
|
class: "f-body-01 text-center my-4"
|
|
96
96
|
}, "#2 Black & White"), h("div", {
|
|
97
|
-
key: '
|
|
97
|
+
key: '5d91c7b29a539118254bfbca8d553794f96e00e5',
|
|
98
98
|
class: "mx-auto bg-default w-[300px]"
|
|
99
99
|
}, h("eds-logo", {
|
|
100
|
-
key: '
|
|
100
|
+
key: '5f9a4fc71340ab9c45fabdacaea00eb01771d8b3',
|
|
101
101
|
orientation: "vertical",
|
|
102
102
|
type: "black",
|
|
103
103
|
href: "#"
|
|
104
104
|
}))), h("li", {
|
|
105
|
-
key: '
|
|
105
|
+
key: '5c9306edbd30774b35431b5af16956545e7bc973',
|
|
106
106
|
class: "grid-col-span-6 xxl:grid-col-span-2 xl:grid-col-span-3 lg:grid-col-span-3 md:grid-col-span-3 flex flex-col"
|
|
107
107
|
}, h("p", {
|
|
108
|
-
key: '
|
|
108
|
+
key: '8dbc48fd5256198bb0b50ce11267ac408c6e286c',
|
|
109
109
|
class: "f-body-01 text-center my-4"
|
|
110
110
|
}, "#3 Dark"), h("div", {
|
|
111
|
-
key: '
|
|
111
|
+
key: '495a4c78848efe16898a7e37a802ca33ebe78989',
|
|
112
112
|
class: "mx-auto w-[300px]"
|
|
113
113
|
}, h("eds-logo", {
|
|
114
|
-
key: '
|
|
114
|
+
key: 'ed7793faeff06e70d05b829d7b361c8e52372232',
|
|
115
115
|
orientation: "vertical",
|
|
116
116
|
type: "color-white",
|
|
117
117
|
href: "#"
|
|
@@ -12,86 +12,86 @@ const LogoWrongUsage = class {
|
|
|
12
12
|
}
|
|
13
13
|
render() {
|
|
14
14
|
return h("div", {
|
|
15
|
-
key: '
|
|
15
|
+
key: 'ca22a0f8284bd418c0307e9b18443cf93dbd5ef7',
|
|
16
16
|
class: "container"
|
|
17
17
|
}, h("ul", {
|
|
18
|
-
key: '
|
|
18
|
+
key: 'dae3e5fdf852e1684effe028fcb12f3a4a765c92',
|
|
19
19
|
class: "not-prose grid-layout grid-cols-6 gap-y-8 md:gap-y-12 lg:gap-y-16"
|
|
20
20
|
}, h("li", {
|
|
21
|
-
key: '
|
|
21
|
+
key: 'f938ed546e420f7f3c9629b3029623d8b0b3cb33',
|
|
22
22
|
class: "grid-col-span-6 xxl:grid-col-span-2 xl:grid-col-span-3 lg:grid-col-span-3 md:grid-col-span-3 flex flex-col"
|
|
23
23
|
}, h("div", {
|
|
24
|
-
key: '
|
|
24
|
+
key: 'eecaba67c1506aa8192bdeb07dfe92417c200520',
|
|
25
25
|
class: "mx-auto no-other-bg-color logo",
|
|
26
26
|
innerHTML: hLogoColor
|
|
27
27
|
}), h("p", {
|
|
28
|
-
key: '
|
|
28
|
+
key: '1057f9c302bc7e4b9ccdc5db8bdc5c92066b9efd',
|
|
29
29
|
class: "f-ui-02 text-center"
|
|
30
30
|
}, "Do not use with backgrounds that make legibility difficult")), h("li", {
|
|
31
|
-
key: '
|
|
31
|
+
key: '2b4ea9b064c01b08daa1a236f9f427aab55155df',
|
|
32
32
|
class: "grid-col-span-6 xxl:grid-col-span-2 xl:grid-col-span-3 lg:grid-col-span-3 md:grid-col-span-3 flex flex-col"
|
|
33
33
|
}, h("div", {
|
|
34
|
-
key: '
|
|
34
|
+
key: '9d42d01d4c2cacf71ab151bcd136a9b427ae2f61',
|
|
35
35
|
class: "mx-auto no-other-color logo non-brand-color",
|
|
36
36
|
innerHTML: hLogoColor
|
|
37
37
|
}), h("p", {
|
|
38
|
-
key: '
|
|
38
|
+
key: 'abc8b7da35ff02d255c7101b963216a6176876be',
|
|
39
39
|
class: "f-ui-02 text-center"
|
|
40
40
|
}, "Do not apply other colors")), h("li", {
|
|
41
|
-
key: '
|
|
41
|
+
key: '180f04ec0804841dff6aa1aadb4abcf39cd9795b',
|
|
42
42
|
class: "grid-col-span-6 xxl:grid-col-span-2 xl:grid-col-span-3 lg:grid-col-span-3 md:grid-col-span-3 flex flex-col"
|
|
43
43
|
}, h("div", {
|
|
44
|
-
key: '
|
|
44
|
+
key: 'b28e00dd5e87f8dfa0115c2a617755d0ad3615bf',
|
|
45
45
|
class: "mx-auto distorted logo",
|
|
46
46
|
innerHTML: hLogoColor
|
|
47
47
|
}), h("p", {
|
|
48
|
-
key: '
|
|
48
|
+
key: '93724268eeedcc799ec3c90087ce2e7ac61dc07e',
|
|
49
49
|
class: "f-ui-02 text-center"
|
|
50
50
|
}, "Do not deform the logo")), h("li", {
|
|
51
|
-
key: '
|
|
51
|
+
key: '5063815d8df9ed7eb13d83734f23978916ade66a',
|
|
52
52
|
class: "grid-col-span-6 xxl:grid-col-span-2 xl:grid-col-span-3 lg:grid-col-span-3 md:grid-col-span-3 flex flex-col"
|
|
53
53
|
}, h("div", {
|
|
54
|
-
key: '
|
|
54
|
+
key: '8f8624744ed71aebc2d42815f8012ed5c18c1cb7',
|
|
55
55
|
class: "mx-auto effects logo",
|
|
56
56
|
innerHTML: hLogoColor
|
|
57
57
|
}), h("p", {
|
|
58
|
-
key: '
|
|
58
|
+
key: '14040538adcea3c5650ddb3e94a3a5186d009a2a',
|
|
59
59
|
class: "f-ui-02 text-center"
|
|
60
60
|
}, "Do not apply effects")), h("li", {
|
|
61
|
-
key: '
|
|
61
|
+
key: 'a80a2e6f66d27bd28a52d9ea45aa3352519f8973',
|
|
62
62
|
class: "grid-col-span-6 xxl:grid-col-span-2 xl:grid-col-span-3 lg:grid-col-span-3 md:grid-col-span-3 flex flex-col"
|
|
63
63
|
}, h("div", {
|
|
64
|
-
key: '
|
|
64
|
+
key: 'ab16f170fde233d8e05c8b93babc83f6a54fe4df',
|
|
65
65
|
class: "mx-auto rotated logo",
|
|
66
66
|
innerHTML: hLogoColor
|
|
67
67
|
}), h("p", {
|
|
68
|
-
key: '
|
|
68
|
+
key: '12eb2d4f8c48b51397295e84fd13f9cdb7fe1291',
|
|
69
69
|
class: "f-ui-02 text-center"
|
|
70
70
|
}, "Do not rotate the logo")), h("li", {
|
|
71
|
-
key: '
|
|
71
|
+
key: 'e93cc98bcb8594ea9cc715c3593bbbb05ef0a584',
|
|
72
72
|
class: "grid-col-span-6 xxl:grid-col-span-2 xl:grid-col-span-3 lg:grid-col-span-3 md:grid-col-span-3 flex flex-col"
|
|
73
73
|
}, h("div", {
|
|
74
|
-
key: '
|
|
74
|
+
key: 'e06d8c08690e542a9906526f31083cd19d36377c',
|
|
75
75
|
class: "mx-auto outlined logo",
|
|
76
76
|
innerHTML: hLogoColor
|
|
77
77
|
}), h("p", {
|
|
78
|
-
key: '
|
|
78
|
+
key: '28ffd7eb8d963d8fbaca70bdacb408d1ad2b5628',
|
|
79
79
|
class: "f-ui-02 text-center"
|
|
80
80
|
}, "Do not apply outlines")), h("li", {
|
|
81
|
-
key: '
|
|
81
|
+
key: '762de4272afb3425d05854efcebdbac901e3434e',
|
|
82
82
|
class: "grid-col-span-6 xxl:grid-col-span-2 xl:grid-col-span-3 lg:grid-col-span-3 md:grid-col-span-3 flex flex-col"
|
|
83
83
|
}, h("div", {
|
|
84
|
-
key: '
|
|
84
|
+
key: 'b886b389d207ffdb8b135fdc0fd26e5e72f40a42',
|
|
85
85
|
class: "mx-auto"
|
|
86
86
|
}, h("div", {
|
|
87
|
-
key: '
|
|
87
|
+
key: '2b03b5762338e7af827635e16f5a8da8a0322174',
|
|
88
88
|
class: "bg-accent p-16"
|
|
89
89
|
}, h("div", {
|
|
90
|
-
key: '
|
|
90
|
+
key: 'c6db8ce985ce69f68973d59acabd846ec3b296ed',
|
|
91
91
|
class: "text-inverse",
|
|
92
92
|
innerHTML: hLogoColor
|
|
93
93
|
})), h("p", {
|
|
94
|
-
key: '
|
|
94
|
+
key: '3c2424662345ce48f2db344a5efd0aa2dc5ef002',
|
|
95
95
|
class: "f-ui-02 text-center"
|
|
96
96
|
}, "Do not use the green background for the logo version of the logo with backgrounds with the same tones")))));
|
|
97
97
|
}
|
package/package.json
CHANGED
package/src/components.d.ts
CHANGED
|
@@ -18,6 +18,8 @@ export declare const EdsHeader: import("react").ForwardRefExoticComponent<JSX.Ed
|
|
|
18
18
|
export declare const EdsIconWrapper: import("react").ForwardRefExoticComponent<JSX.EdsIconWrapper & Omit<import("react").HTMLAttributes<HTMLEdsIconWrapperElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLEdsIconWrapperElement>>;
|
|
19
19
|
export declare const EdsImg: import("react").ForwardRefExoticComponent<JSX.EdsImg & Omit<import("react").HTMLAttributes<HTMLEdsImgElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLEdsImgElement>>;
|
|
20
20
|
export declare const EdsInputField: import("react").ForwardRefExoticComponent<JSX.EdsInputField & Omit<import("react").HTMLAttributes<HTMLEdsInputFieldElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLEdsInputFieldElement>>;
|
|
21
|
+
export declare const EdsInputFooter: import("react").ForwardRefExoticComponent<JSX.EdsInputFooter & Omit<import("react").HTMLAttributes<HTMLEdsInputFooterElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLEdsInputFooterElement>>;
|
|
22
|
+
export declare const EdsInputLabel: import("react").ForwardRefExoticComponent<JSX.EdsInputLabel & Omit<import("react").HTMLAttributes<HTMLEdsInputLabelElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLEdsInputLabelElement>>;
|
|
21
23
|
export declare const EdsLink: import("react").ForwardRefExoticComponent<JSX.EdsLink & Omit<import("react").HTMLAttributes<HTMLEdsLinkElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLEdsLinkElement>>;
|
|
22
24
|
export declare const EdsLogo: import("react").ForwardRefExoticComponent<JSX.EdsLogo & Omit<import("react").HTMLAttributes<HTMLEdsLogoElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLEdsLogoElement>>;
|
|
23
25
|
export declare const EdsMatomoNotice: import("react").ForwardRefExoticComponent<JSX.EdsMatomoNotice & Omit<import("react").HTMLAttributes<HTMLEdsMatomoNoticeElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLEdsMatomoNoticeElement>>;
|
|
@@ -317,10 +317,10 @@ const SvgRepository = class {
|
|
|
317
317
|
}
|
|
318
318
|
};
|
|
319
319
|
return h("div", {
|
|
320
|
-
key: '
|
|
320
|
+
key: 'c8c6a714522ff3e122b58c4bb931af7f95d281fa',
|
|
321
321
|
class: "full-width"
|
|
322
322
|
}, h("eds-table", {
|
|
323
|
-
key: '
|
|
323
|
+
key: 'f3251327f43c5b18f7677738f37b60ff0e604c3f',
|
|
324
324
|
"table-data": JSON.stringify(svgData),
|
|
325
325
|
config: JSON.stringify(tableConfig),
|
|
326
326
|
"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: '0ba9dbb1b98cb398c2eb989391f6e978f9dc21ef',
|
|
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: '0b0ccb9adcfa77ea898828ddbb244e959f93e2e4',
|
|
321
321
|
class: "w-full mt-28"
|
|
322
322
|
}, h("ul", {
|
|
323
|
-
key: '
|
|
323
|
+
key: '94f17ad36ec9fcc47b645e323c7e5a8f3e040dda',
|
|
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: '18d2b4cdcc3b6d6ce8864a9c36e869be9b9e5cb4',
|
|
362
362
|
class: "w-full mt-28"
|
|
363
363
|
}, h("ul", {
|
|
364
|
-
key: '
|
|
364
|
+
key: '63e646788009d3315d2f4e03f1a780811486d9a0',
|
|
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: '0fb029d34cba573e04e15030b3fdd1497ac9974e',
|
|
21
21
|
class: "w-full"
|
|
22
22
|
}, h("eds-section-core", {
|
|
23
|
-
key: '
|
|
23
|
+
key: 'd6914b95ef74d590d58b0c90600fc44f5d9d6678',
|
|
24
24
|
tag: "div",
|
|
25
25
|
"section-title": "Aspect Ratios",
|
|
26
26
|
"heading-level": "h3"
|
|
27
27
|
}, h("ul", {
|
|
28
|
-
key: '
|
|
28
|
+
key: 'f08511f07380707795b810fd0f34c1acdc47d37d',
|
|
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: '144e643ff3f26d09b932b3bfa2086164134728c0',
|
|
13
13
|
class: "w-full"
|
|
14
14
|
}, h("ul", {
|
|
15
|
-
key: '
|
|
15
|
+
key: 'fabddc807bcd5cefbfced6391117e9eb065ffff0',
|
|
16
16
|
class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16"
|
|
17
17
|
}, h("li", {
|
|
18
|
-
key: '
|
|
18
|
+
key: 'cc0fba19927a1c3ad33008dc1087ee75e0c9fe2d',
|
|
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: '328054d7cfe6a0678e9e592b91dba6a8524c2039',
|
|
22
22
|
class: "container p-8 item-center border-2 border-soft"
|
|
23
23
|
}, h("div", {
|
|
24
|
-
key: '
|
|
24
|
+
key: 'e50e3533e36feb7021cac8ac10cc9a05e7f24c0a',
|
|
25
25
|
class: "spacing-sample m-16 bg-strong"
|
|
26
26
|
}, h("span", {
|
|
27
|
-
key: '
|
|
27
|
+
key: '87165037495881426a3c9848953e049ec7e96b7a',
|
|
28
28
|
class: "f-body-01 text-inverse"
|
|
29
29
|
}, "Margin: 1rem / m-16")))), h("li", {
|
|
30
|
-
key: '
|
|
30
|
+
key: 'a6a98204655e53b6ef9ce9f2fd90b561c79c185d',
|
|
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: '385ae898ce1f1f96cbb236ded619a05d8326c304',
|
|
34
34
|
class: "container p-8 item-center border-2 border-soft"
|
|
35
35
|
}, h("div", {
|
|
36
|
-
key: '
|
|
36
|
+
key: '4e6c11ae90e22efa73fb6c9481ee2c1511365394',
|
|
37
37
|
class: "spacing-sample ml-64 bg-strong"
|
|
38
38
|
}, h("span", {
|
|
39
|
-
key: '
|
|
39
|
+
key: 'a13a1886b5019ca48a19d24ba03b3caa1c51bc3f',
|
|
40
40
|
class: "f-body-01 text-inverse"
|
|
41
41
|
}, "Margin Left: 4rem / ml-64")))), h("li", {
|
|
42
|
-
key: '
|
|
42
|
+
key: '7b2f325ced5281668e6ece98d56caf864b34c7e8',
|
|
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: '3e1a69b9983bc993686426ec84dd70b4803538a6',
|
|
46
46
|
class: "container p-8 item-center border-2 border-soft"
|
|
47
47
|
}, h("div", {
|
|
48
|
-
key: '
|
|
48
|
+
key: '66804ce21771e53210bc385ac8cefce4c554d188',
|
|
49
49
|
class: "spacing-sample mt-32 bg-strong"
|
|
50
50
|
}, h("span", {
|
|
51
|
-
key: '
|
|
51
|
+
key: '91cee3a9cf00777f1d2b4cde4ce484fcddef52f5',
|
|
52
52
|
class: "f-body-01 text-inverse"
|
|
53
53
|
}, "Margin Top: 2rem / mt-32")))), h("li", {
|
|
54
|
-
key: '
|
|
54
|
+
key: '9d9074db464e7ecc36977c69b0fdd053e8025dec',
|
|
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: 'e6a2d7d1ded9c92ca41d211dca3dcca9f03ad707',
|
|
58
58
|
class: "container p-8 item-center border-2 border-soft"
|
|
59
59
|
}, h("div", {
|
|
60
|
-
key: '
|
|
60
|
+
key: 'c87e88d711ec5298525f1d901958a035837b3db0',
|
|
61
61
|
class: "spacing-sample p-32 bg-strong"
|
|
62
62
|
}, h("span", {
|
|
63
|
-
key: '
|
|
63
|
+
key: '6276cb3c19a8fd1262c5002e682099f13d38b512',
|
|
64
64
|
class: "f-body-01 text-inverse"
|
|
65
65
|
}, "Padding: 2rem / p-32")))), h("li", {
|
|
66
|
-
key: '
|
|
66
|
+
key: 'c8614add23a4802ccbb3086c74ac2871ad0a0340',
|
|
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: '68b73e788596e32a696e012d08ec11cf479a5d45',
|
|
70
70
|
class: "container p-8 item-center border-2 border-soft"
|
|
71
71
|
}, h("div", {
|
|
72
|
-
key: '
|
|
72
|
+
key: 'b057f25cdeda7c6cc3f0ce21e199d84d90bb0bfa',
|
|
73
73
|
class: "spacing-sample pt-32 bg-strong"
|
|
74
74
|
}, h("span", {
|
|
75
|
-
key: '
|
|
75
|
+
key: 'a72e385bdaed3c6c8a06fb7951f6b326eb8f2e4f',
|
|
76
76
|
class: "f-body-01 text-inverse"
|
|
77
77
|
}, "Padding Top: 2rem / pt-32")))), h("li", {
|
|
78
|
-
key: '
|
|
78
|
+
key: '11be77901177c2372b29076072dd7544f7371aa4',
|
|
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: '5606d88389c6aaa16a9941fefe2bc34e881b22a3',
|
|
82
82
|
class: "container p-8 item-center border-2 border-soft"
|
|
83
83
|
}, h("div", {
|
|
84
|
-
key: '
|
|
84
|
+
key: '1341d44c62567c8b5078046644cda8ddcec59809',
|
|
85
85
|
class: "spacing-sample pl-32 bg-strong"
|
|
86
86
|
}, h("span", {
|
|
87
|
-
key: '
|
|
87
|
+
key: 'b9208571277fced609ea55a113a30dc7a424c2a8',
|
|
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: 'b831c9707b00d17768f585e2015de8a7289b11d2',
|
|
206
206
|
class: "w-full"
|
|
207
207
|
}, h("ul", {
|
|
208
|
-
key: '
|
|
208
|
+
key: '472e46f2c903597d24e8f24cf28b6f475c7d7a82',
|
|
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-toast.entry.esm.js
DELETED
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h, g as getElement } from './index.esm2.js';
|
|
2
|
-
import { c as cva } from './index-39c58238.esm.js';
|
|
3
|
-
import 'react';
|
|
4
|
-
import 'react/jsx-runtime';
|
|
5
|
-
import 'react-dom';
|
|
6
|
-
|
|
7
|
-
const edsToastCss = ".relative{position:relative}.right-4{right:0.25rem}.bottom-4{bottom:0.25rem}.w-auto{width:auto}.flex{display:flex}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-4{gap:0.25rem}.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)}.ml-8{margin-left:0.5rem}.p-12{padding:0.75rem}.rounded-lg{border-radius:16px}.shadow-md{--tw-shadow:0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),\n 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),\n var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.bg-dark{background-color:var(--grey-300)}.bg-success{background-color:var(--green-200)}.bg-error{background-color:var(--red-200)}.bg-warning{background-color:var(--yellow-200)}.text-light{color:var(--grey-700)}.text-current{color:currentColor}.text-default{color:var(--black)}";
|
|
8
|
-
const EdsToastStyle0 = edsToastCss;
|
|
9
|
-
const toastStyles = cva(['relative right-4 bottom-4 w-auto p-12 rounded-lg shadow-md'], {
|
|
10
|
-
variants: {
|
|
11
|
-
intent: {
|
|
12
|
-
default: 'bg-dark text-light',
|
|
13
|
-
success: 'bg-success text-dark',
|
|
14
|
-
error: 'bg-error text-light',
|
|
15
|
-
warning: 'bg-warning text-dark'
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
defaultVariants: {
|
|
19
|
-
intent: 'default'
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
const EdsToast = class {
|
|
23
|
-
constructor(hostRef) {
|
|
24
|
-
registerInstance(this, hostRef);
|
|
25
|
-
/**
|
|
26
|
-
* Dismisses the toast.
|
|
27
|
-
*/
|
|
28
|
-
this.dismissToast = () => {
|
|
29
|
-
this.visible = false;
|
|
30
|
-
};
|
|
31
|
-
this.message = undefined;
|
|
32
|
-
this.intent = 'default';
|
|
33
|
-
this.duration = undefined;
|
|
34
|
-
this.visible = true;
|
|
35
|
-
}
|
|
36
|
-
componentDidLoad() {
|
|
37
|
-
const btn = this.el.shadowRoot.querySelector('eds-button');
|
|
38
|
-
this.emitContext(btn);
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Emits a custom event called `parentContext` for a given button element.
|
|
42
|
-
* This event provides context information about the toast component.
|
|
43
|
-
*
|
|
44
|
-
* @param btnElement - The link element to which the event will be dispatched.
|
|
45
|
-
*/
|
|
46
|
-
emitContext(btnElement) {
|
|
47
|
-
const event = new CustomEvent('parentContext', {
|
|
48
|
-
detail: {
|
|
49
|
-
componentName: this.el.tagName.toLowerCase(),
|
|
50
|
-
identifier: null
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
|
-
btnElement.dispatchEvent(event);
|
|
54
|
-
}
|
|
55
|
-
connectedCallback() {
|
|
56
|
-
if (this.duration && this.duration > 0) {
|
|
57
|
-
this.dismissTimeout = setTimeout(this.dismissToast, this.duration);
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
disconnectedCallback() {
|
|
61
|
-
// Clear the timeout when the component is removed
|
|
62
|
-
clearTimeout(this.dismissTimeout);
|
|
63
|
-
}
|
|
64
|
-
render() {
|
|
65
|
-
if (!this.visible) {
|
|
66
|
-
return null;
|
|
67
|
-
}
|
|
68
|
-
const classes = toastStyles({
|
|
69
|
-
intent: this.intent
|
|
70
|
-
});
|
|
71
|
-
return h("div", {
|
|
72
|
-
class: classes,
|
|
73
|
-
role: "alert",
|
|
74
|
-
"aria-live": "assertive"
|
|
75
|
-
}, h("div", {
|
|
76
|
-
class: "flex items-center justify-between gap-4"
|
|
77
|
-
}, h("span", {
|
|
78
|
-
class: "f-ui-01"
|
|
79
|
-
}, this.message), h("eds-button", {
|
|
80
|
-
intent: "tertiary",
|
|
81
|
-
icon: "close",
|
|
82
|
-
"aria-label": "Close Toast",
|
|
83
|
-
onClick: () => this.dismissToast(),
|
|
84
|
-
"extra-class": "ml-8"
|
|
85
|
-
})));
|
|
86
|
-
}
|
|
87
|
-
get el() {
|
|
88
|
-
return getElement(this);
|
|
89
|
-
}
|
|
90
|
-
};
|
|
91
|
-
EdsToast.style = EdsToastStyle0;
|
|
92
|
-
|
|
93
|
-
export { EdsToast as eds_toast };
|