elseware-ui 3.0.13 → 3.0.14
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 +289 -289
- package/dist/index.d.mts +350 -346
- package/dist/index.d.ts +350 -346
- package/dist/index.js +33 -24
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +33 -26
- package/dist/index.mjs.map +1 -1
- package/dist/index.native.d.mts +15 -15
- package/dist/index.native.d.ts +15 -15
- package/dist/index.native.js +36 -31
- package/dist/index.native.js.map +1 -1
- package/dist/index.native.mjs +37 -32
- package/dist/index.native.mjs.map +1 -1
- package/dist/{resolveGlobalConfigs-TVdFbK-t.d.mts → resolveGlobalConfigs-ClQlBbvH.d.mts} +6 -4
- package/dist/{resolveGlobalConfigs-TVdFbK-t.d.ts → resolveGlobalConfigs-ClQlBbvH.d.ts} +6 -4
- package/package.json +1 -1
- package/tailwind.preset.js +116 -116
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import react__default, { HTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
import { FieldHookConfig, FormikValues, FormikConfig, FormikProps, FormikHelpers } from 'formik';
|
|
3
3
|
|
|
4
4
|
declare const CURRENCIES: {
|
|
@@ -185,6 +185,8 @@ interface ButtonAccessibilityState {
|
|
|
185
185
|
interface ButtonProps extends Omit<BaseComponentProps<HTMLButtonElement>, "style"> {
|
|
186
186
|
type?: "button" | "submit" | "reset";
|
|
187
187
|
icon?: ButtonIcon;
|
|
188
|
+
/** Which side of the label the icon (and loading spinner) sits on. */
|
|
189
|
+
iconPosition?: "leading" | "trailing";
|
|
188
190
|
text?: string;
|
|
189
191
|
children?: ReactNode;
|
|
190
192
|
loading?: boolean;
|
|
@@ -416,12 +418,12 @@ interface EUIConfigs {
|
|
|
416
418
|
|
|
417
419
|
interface EUIContextValue {
|
|
418
420
|
config: EUIConfigs;
|
|
419
|
-
setConfig:
|
|
421
|
+
setConfig: react__default.Dispatch<react__default.SetStateAction<EUIConfigs>>;
|
|
420
422
|
}
|
|
421
423
|
declare const EUIProvider: ({ config, children, }: {
|
|
422
424
|
config: EUIConfigs;
|
|
423
|
-
children:
|
|
424
|
-
}) =>
|
|
425
|
+
children: react__default.ReactNode;
|
|
426
|
+
}) => react__default.JSX.Element;
|
|
425
427
|
declare const useEUIConfig: () => EUIContextValue;
|
|
426
428
|
|
|
427
429
|
declare function resolveWithGlobal<T>(config: EUIConfigs | null, props: T, defaults: Partial<T>): T;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import react__default, { HTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
import { FieldHookConfig, FormikValues, FormikConfig, FormikProps, FormikHelpers } from 'formik';
|
|
3
3
|
|
|
4
4
|
declare const CURRENCIES: {
|
|
@@ -185,6 +185,8 @@ interface ButtonAccessibilityState {
|
|
|
185
185
|
interface ButtonProps extends Omit<BaseComponentProps<HTMLButtonElement>, "style"> {
|
|
186
186
|
type?: "button" | "submit" | "reset";
|
|
187
187
|
icon?: ButtonIcon;
|
|
188
|
+
/** Which side of the label the icon (and loading spinner) sits on. */
|
|
189
|
+
iconPosition?: "leading" | "trailing";
|
|
188
190
|
text?: string;
|
|
189
191
|
children?: ReactNode;
|
|
190
192
|
loading?: boolean;
|
|
@@ -416,12 +418,12 @@ interface EUIConfigs {
|
|
|
416
418
|
|
|
417
419
|
interface EUIContextValue {
|
|
418
420
|
config: EUIConfigs;
|
|
419
|
-
setConfig:
|
|
421
|
+
setConfig: react__default.Dispatch<react__default.SetStateAction<EUIConfigs>>;
|
|
420
422
|
}
|
|
421
423
|
declare const EUIProvider: ({ config, children, }: {
|
|
422
424
|
config: EUIConfigs;
|
|
423
|
-
children:
|
|
424
|
-
}) =>
|
|
425
|
+
children: react__default.ReactNode;
|
|
426
|
+
}) => react__default.JSX.Element;
|
|
425
427
|
declare const useEUIConfig: () => EUIContextValue;
|
|
426
428
|
|
|
427
429
|
declare function resolveWithGlobal<T>(config: EUIConfigs | null, props: T, defaults: Partial<T>): T;
|
package/package.json
CHANGED
package/tailwind.preset.js
CHANGED
|
@@ -1,116 +1,116 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
darkMode: "class",
|
|
3
|
-
theme: {
|
|
4
|
-
extend: {
|
|
5
|
-
colors: {
|
|
6
|
-
"eui-primary": {
|
|
7
|
-
50: "#e6e8ec",
|
|
8
|
-
100: "#c3c8d2",
|
|
9
|
-
200: "#9aa2b3",
|
|
10
|
-
300: "#707a93",
|
|
11
|
-
400: "#4c5673",
|
|
12
|
-
500: "#00040f",
|
|
13
|
-
600: "#00030d",
|
|
14
|
-
700: "#00020a",
|
|
15
|
-
800: "#000106",
|
|
16
|
-
900: "#000003",
|
|
17
|
-
},
|
|
18
|
-
"eui-secondary": {
|
|
19
|
-
50: "#e6ffcc",
|
|
20
|
-
100: "#c0ff8c",
|
|
21
|
-
200: "#a3ff5f",
|
|
22
|
-
300: "#7aff2f",
|
|
23
|
-
400: "#64e245",
|
|
24
|
-
500: "#4cd900",
|
|
25
|
-
600: "#17b800",
|
|
26
|
-
700: "#149900",
|
|
27
|
-
800: "#107a00",
|
|
28
|
-
900: "#0a5a00",
|
|
29
|
-
},
|
|
30
|
-
"eui-success": {
|
|
31
|
-
50: "#b0e8d0",
|
|
32
|
-
100: "#8ddbb9",
|
|
33
|
-
200: "#6bcfa2",
|
|
34
|
-
300: "#48c28b",
|
|
35
|
-
400: "#26b674",
|
|
36
|
-
500: "#198754",
|
|
37
|
-
600: "#146b42",
|
|
38
|
-
700: "#0f4e31",
|
|
39
|
-
800: "#0a321f",
|
|
40
|
-
900: "#05170e",
|
|
41
|
-
},
|
|
42
|
-
"eui-danger": {
|
|
43
|
-
50: "#f9c3c7",
|
|
44
|
-
100: "#f49aa1",
|
|
45
|
-
200: "#ef717b",
|
|
46
|
-
300: "#ea4855",
|
|
47
|
-
400: "#e51f2f",
|
|
48
|
-
500: "#dc3545",
|
|
49
|
-
600: "#af2a37",
|
|
50
|
-
700: "#821f29",
|
|
51
|
-
800: "#56151b",
|
|
52
|
-
900: "#2a0a0e",
|
|
53
|
-
},
|
|
54
|
-
"eui-warning": {
|
|
55
|
-
50: "#fff3cd",
|
|
56
|
-
100: "#ffe89b",
|
|
57
|
-
200: "#ffdc69",
|
|
58
|
-
300: "#ffd137",
|
|
59
|
-
400: "#ffc606",
|
|
60
|
-
500: "#ffc107",
|
|
61
|
-
600: "#cc9905",
|
|
62
|
-
700: "#997104",
|
|
63
|
-
800: "#664902",
|
|
64
|
-
900: "#332401",
|
|
65
|
-
},
|
|
66
|
-
"eui-info": {
|
|
67
|
-
50: "#a7effa",
|
|
68
|
-
100: "#82e6f8",
|
|
69
|
-
200: "#5dddf6",
|
|
70
|
-
300: "#38d3f4",
|
|
71
|
-
400: "#14caf2",
|
|
72
|
-
500: "#0dcaf0",
|
|
73
|
-
600: "#0aa0c0",
|
|
74
|
-
700: "#087690",
|
|
75
|
-
800: "#054c60",
|
|
76
|
-
900: "#032330",
|
|
77
|
-
},
|
|
78
|
-
"eui-light": {
|
|
79
|
-
50: "#ffffff",
|
|
80
|
-
100: "#fefefe",
|
|
81
|
-
200: "#fdfdfd",
|
|
82
|
-
300: "#fcfcfc",
|
|
83
|
-
400: "#fbfbfb",
|
|
84
|
-
500: "#f8f9fa",
|
|
85
|
-
600: "#c6c7c8",
|
|
86
|
-
700: "#949596",
|
|
87
|
-
800: "#626263",
|
|
88
|
-
900: "#313132",
|
|
89
|
-
},
|
|
90
|
-
"eui-dark": {
|
|
91
|
-
50: "#9ea1a4",
|
|
92
|
-
100: "#868a8d",
|
|
93
|
-
200: "#6f7376",
|
|
94
|
-
300: "#575c5f",
|
|
95
|
-
400: "#404547",
|
|
96
|
-
500: "#212529",
|
|
97
|
-
600: "#1a1d20",
|
|
98
|
-
700: "#141618",
|
|
99
|
-
800: "#0d0e10",
|
|
100
|
-
900: "#070708",
|
|
101
|
-
},
|
|
102
|
-
},
|
|
103
|
-
transitionDuration: {
|
|
104
|
-
120: "120ms",
|
|
105
|
-
180: "180ms",
|
|
106
|
-
240: "240ms",
|
|
107
|
-
250: "250ms",
|
|
108
|
-
},
|
|
109
|
-
},
|
|
110
|
-
fontFamily: { poppins: ["Poppins", "sans-serif"] },
|
|
111
|
-
},
|
|
112
|
-
variants: {
|
|
113
|
-
extend: {},
|
|
114
|
-
},
|
|
115
|
-
plugins: [],
|
|
116
|
-
};
|
|
1
|
+
module.exports = {
|
|
2
|
+
darkMode: "class",
|
|
3
|
+
theme: {
|
|
4
|
+
extend: {
|
|
5
|
+
colors: {
|
|
6
|
+
"eui-primary": {
|
|
7
|
+
50: "#e6e8ec",
|
|
8
|
+
100: "#c3c8d2",
|
|
9
|
+
200: "#9aa2b3",
|
|
10
|
+
300: "#707a93",
|
|
11
|
+
400: "#4c5673",
|
|
12
|
+
500: "#00040f",
|
|
13
|
+
600: "#00030d",
|
|
14
|
+
700: "#00020a",
|
|
15
|
+
800: "#000106",
|
|
16
|
+
900: "#000003",
|
|
17
|
+
},
|
|
18
|
+
"eui-secondary": {
|
|
19
|
+
50: "#e6ffcc",
|
|
20
|
+
100: "#c0ff8c",
|
|
21
|
+
200: "#a3ff5f",
|
|
22
|
+
300: "#7aff2f",
|
|
23
|
+
400: "#64e245",
|
|
24
|
+
500: "#4cd900",
|
|
25
|
+
600: "#17b800",
|
|
26
|
+
700: "#149900",
|
|
27
|
+
800: "#107a00",
|
|
28
|
+
900: "#0a5a00",
|
|
29
|
+
},
|
|
30
|
+
"eui-success": {
|
|
31
|
+
50: "#b0e8d0",
|
|
32
|
+
100: "#8ddbb9",
|
|
33
|
+
200: "#6bcfa2",
|
|
34
|
+
300: "#48c28b",
|
|
35
|
+
400: "#26b674",
|
|
36
|
+
500: "#198754",
|
|
37
|
+
600: "#146b42",
|
|
38
|
+
700: "#0f4e31",
|
|
39
|
+
800: "#0a321f",
|
|
40
|
+
900: "#05170e",
|
|
41
|
+
},
|
|
42
|
+
"eui-danger": {
|
|
43
|
+
50: "#f9c3c7",
|
|
44
|
+
100: "#f49aa1",
|
|
45
|
+
200: "#ef717b",
|
|
46
|
+
300: "#ea4855",
|
|
47
|
+
400: "#e51f2f",
|
|
48
|
+
500: "#dc3545",
|
|
49
|
+
600: "#af2a37",
|
|
50
|
+
700: "#821f29",
|
|
51
|
+
800: "#56151b",
|
|
52
|
+
900: "#2a0a0e",
|
|
53
|
+
},
|
|
54
|
+
"eui-warning": {
|
|
55
|
+
50: "#fff3cd",
|
|
56
|
+
100: "#ffe89b",
|
|
57
|
+
200: "#ffdc69",
|
|
58
|
+
300: "#ffd137",
|
|
59
|
+
400: "#ffc606",
|
|
60
|
+
500: "#ffc107",
|
|
61
|
+
600: "#cc9905",
|
|
62
|
+
700: "#997104",
|
|
63
|
+
800: "#664902",
|
|
64
|
+
900: "#332401",
|
|
65
|
+
},
|
|
66
|
+
"eui-info": {
|
|
67
|
+
50: "#a7effa",
|
|
68
|
+
100: "#82e6f8",
|
|
69
|
+
200: "#5dddf6",
|
|
70
|
+
300: "#38d3f4",
|
|
71
|
+
400: "#14caf2",
|
|
72
|
+
500: "#0dcaf0",
|
|
73
|
+
600: "#0aa0c0",
|
|
74
|
+
700: "#087690",
|
|
75
|
+
800: "#054c60",
|
|
76
|
+
900: "#032330",
|
|
77
|
+
},
|
|
78
|
+
"eui-light": {
|
|
79
|
+
50: "#ffffff",
|
|
80
|
+
100: "#fefefe",
|
|
81
|
+
200: "#fdfdfd",
|
|
82
|
+
300: "#fcfcfc",
|
|
83
|
+
400: "#fbfbfb",
|
|
84
|
+
500: "#f8f9fa",
|
|
85
|
+
600: "#c6c7c8",
|
|
86
|
+
700: "#949596",
|
|
87
|
+
800: "#626263",
|
|
88
|
+
900: "#313132",
|
|
89
|
+
},
|
|
90
|
+
"eui-dark": {
|
|
91
|
+
50: "#9ea1a4",
|
|
92
|
+
100: "#868a8d",
|
|
93
|
+
200: "#6f7376",
|
|
94
|
+
300: "#575c5f",
|
|
95
|
+
400: "#404547",
|
|
96
|
+
500: "#212529",
|
|
97
|
+
600: "#1a1d20",
|
|
98
|
+
700: "#141618",
|
|
99
|
+
800: "#0d0e10",
|
|
100
|
+
900: "#070708",
|
|
101
|
+
},
|
|
102
|
+
},
|
|
103
|
+
transitionDuration: {
|
|
104
|
+
120: "120ms",
|
|
105
|
+
180: "180ms",
|
|
106
|
+
240: "240ms",
|
|
107
|
+
250: "250ms",
|
|
108
|
+
},
|
|
109
|
+
},
|
|
110
|
+
fontFamily: { poppins: ["Poppins", "sans-serif"] },
|
|
111
|
+
},
|
|
112
|
+
variants: {
|
|
113
|
+
extend: {},
|
|
114
|
+
},
|
|
115
|
+
plugins: [],
|
|
116
|
+
};
|