@m4l/styles 0.0.2 → 0.0.4
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/config.d.ts +13 -0
- package/index.d.ts +1 -0
- package/index.js +1141 -623
- package/package.json +1 -1
- package/theme/defaultThemeOptions.d.ts +1 -2
- package/theme/index.d.ts +4 -2
- package/theme/overrides/M4LExtendedComponents/M4LButton.d.ts +1 -5
- package/theme/overrides/M4LExtendedComponents/M4LIcon.d.ts +1 -2
- package/theme/overrides/M4LExtendedComponents/M4LImageButton.d.ts +35 -1
- package/theme/overrides/M4LExtendedComponents/M4LNavLink.d.ts +10 -0
- package/theme/overrides/M4LExtendedComponents/M4LPopover.d.ts +5 -1
- package/theme/overrides/M4LExtendedComponents/M4LTypography.d.ts +5 -2
- package/theme/overrides/M4LExtendedComponents/M4LanguagePopover.d.ts +1 -4
- package/theme/overrides/M4LExtendedComponents/M4LoadingButton.d.ts +6 -0
- package/theme/overrides/M4LRHFComponents/M4LRHFAutocomplete.d.ts +10 -0
- package/theme/overrides/M4LRHFComponents/M4LRHFAutocompleteAsync.d.ts +10 -0
- package/theme/overrides/M4LRHFComponents/M4LRHFCheckbox.d.ts +46 -1
- package/theme/overrides/M4LRHFComponents/M4LRHFTextField.d.ts +1 -11
- package/theme/overrides/M4LRHFComponents/M4LRHFTextFieldPassword.d.ts +5 -2
- package/theme/overrides/MUIComponents/Accordion.d.ts +36 -16
- package/theme/overrides/MUIComponents/Autocomplete.d.ts +0 -3
- package/theme/overrides/MUIComponents/ButtonGroup.d.ts +8 -0
- package/theme/overrides/MUIComponents/ControlLabel.d.ts +36 -16
- package/theme/overrides/MUIComponents/DataGrid.d.ts +72 -32
- package/theme/overrides/MUIComponents/Fab.d.ts +1 -1
- package/theme/overrides/MUIComponents/Input.d.ts +72 -32
- package/theme/overrides/MUIComponents/LoadingButton.d.ts +36 -16
- package/theme/overrides/MUIComponents/Paper.d.ts +35 -0
- package/theme/overrides/MUIComponents/Table.d.ts +144 -64
- package/theme/overrides/MUIComponents/Tabs.d.ts +36 -16
- package/theme/overrides/MUIComponents/Typography.d.ts +5 -0
- package/theme/palette.d.ts +169 -30
- package/theme/shadows.d.ts +5 -50
- package/theme/typography.d.ts +146 -18
- package/types/types.d.ts +65 -1
- package/utils/getColorPresets.d.ts +9 -105
- package/utils/getColorState.d.ts +15 -0
- package/utils/getFontValue.d.ts +1 -1
- package/utils/index.d.ts +1 -0
package/theme/typography.d.ts
CHANGED
|
@@ -1,10 +1,54 @@
|
|
|
1
|
+
export interface TypographyVariants {
|
|
2
|
+
subtitle: {
|
|
3
|
+
fontSize: string;
|
|
4
|
+
fontWeight: number;
|
|
5
|
+
lineHeight: string;
|
|
6
|
+
letterSpacing: string;
|
|
7
|
+
};
|
|
8
|
+
subtitleDens: {
|
|
9
|
+
fontSize: string;
|
|
10
|
+
fontWeight: number;
|
|
11
|
+
lineHeight: string;
|
|
12
|
+
letterSpacing: string;
|
|
13
|
+
};
|
|
14
|
+
paragraph: {
|
|
15
|
+
fontSize: string;
|
|
16
|
+
fontWeight: number;
|
|
17
|
+
lineHeight: string;
|
|
18
|
+
letterSpacing: string;
|
|
19
|
+
};
|
|
20
|
+
paragraphDens: {
|
|
21
|
+
fontSize: string;
|
|
22
|
+
fontWeight: number;
|
|
23
|
+
lineHeight: string;
|
|
24
|
+
letterSpacing: string;
|
|
25
|
+
};
|
|
26
|
+
body: {
|
|
27
|
+
fontSize: string;
|
|
28
|
+
fontWeight: number;
|
|
29
|
+
lineHeight: string;
|
|
30
|
+
letterSpacing: string;
|
|
31
|
+
};
|
|
32
|
+
bodyDens: {
|
|
33
|
+
fontSize: string;
|
|
34
|
+
fontWeight: number;
|
|
35
|
+
lineHeight: string;
|
|
36
|
+
letterSpacing: string;
|
|
37
|
+
};
|
|
38
|
+
action: {
|
|
39
|
+
fontSize: string;
|
|
40
|
+
fontWeight: number;
|
|
41
|
+
lineHeight: string;
|
|
42
|
+
letterSpacing: string;
|
|
43
|
+
};
|
|
44
|
+
}
|
|
1
45
|
export declare const typography: {
|
|
2
|
-
readonly fontFamily: "
|
|
46
|
+
readonly fontFamily: "Poppins, sans-serif";
|
|
3
47
|
readonly fontWeightRegular: 400;
|
|
4
48
|
readonly fontWeightMedium: 600;
|
|
5
49
|
readonly fontWeightBold: 700;
|
|
6
50
|
readonly h1: {
|
|
7
|
-
readonly '@media (min-width:
|
|
51
|
+
readonly '@media (min-width:0px)': {
|
|
8
52
|
fontSize: string;
|
|
9
53
|
};
|
|
10
54
|
readonly '@media (min-width:900px)': {
|
|
@@ -14,12 +58,10 @@ export declare const typography: {
|
|
|
14
58
|
fontSize: string;
|
|
15
59
|
};
|
|
16
60
|
readonly fontWeight: 700;
|
|
17
|
-
readonly lineHeight:
|
|
18
|
-
readonly fontSize: string;
|
|
19
|
-
readonly letterSpacing: 2;
|
|
61
|
+
readonly lineHeight: 1.5;
|
|
20
62
|
};
|
|
21
63
|
readonly h2: {
|
|
22
|
-
readonly '@media (min-width:
|
|
64
|
+
readonly '@media (min-width:0px)': {
|
|
23
65
|
fontSize: string;
|
|
24
66
|
};
|
|
25
67
|
readonly '@media (min-width:900px)': {
|
|
@@ -29,11 +71,10 @@ export declare const typography: {
|
|
|
29
71
|
fontSize: string;
|
|
30
72
|
};
|
|
31
73
|
readonly fontWeight: 700;
|
|
32
|
-
readonly lineHeight:
|
|
33
|
-
readonly fontSize: string;
|
|
74
|
+
readonly lineHeight: 1;
|
|
34
75
|
};
|
|
35
76
|
readonly h3: {
|
|
36
|
-
readonly '@media (min-width:
|
|
77
|
+
readonly '@media (min-width:0px)': {
|
|
37
78
|
fontSize: string;
|
|
38
79
|
};
|
|
39
80
|
readonly '@media (min-width:900px)': {
|
|
@@ -42,12 +83,11 @@ export declare const typography: {
|
|
|
42
83
|
readonly '@media (min-width:1200px)': {
|
|
43
84
|
fontSize: string;
|
|
44
85
|
};
|
|
45
|
-
readonly fontWeight:
|
|
86
|
+
readonly fontWeight: 600;
|
|
46
87
|
readonly lineHeight: 1.5;
|
|
47
|
-
readonly fontSize: string;
|
|
48
88
|
};
|
|
49
89
|
readonly h4: {
|
|
50
|
-
readonly '@media (min-width:
|
|
90
|
+
readonly '@media (min-width:0px)': {
|
|
51
91
|
fontSize: string;
|
|
52
92
|
};
|
|
53
93
|
readonly '@media (min-width:900px)': {
|
|
@@ -58,10 +98,9 @@ export declare const typography: {
|
|
|
58
98
|
};
|
|
59
99
|
readonly fontWeight: 700;
|
|
60
100
|
readonly lineHeight: 1.5;
|
|
61
|
-
readonly fontSize: string;
|
|
62
101
|
};
|
|
63
102
|
readonly h5: {
|
|
64
|
-
readonly '@media (min-width:
|
|
103
|
+
readonly '@media (min-width:0px)': {
|
|
65
104
|
fontSize: string;
|
|
66
105
|
};
|
|
67
106
|
readonly '@media (min-width:900px)': {
|
|
@@ -70,12 +109,11 @@ export declare const typography: {
|
|
|
70
109
|
readonly '@media (min-width:1200px)': {
|
|
71
110
|
fontSize: string;
|
|
72
111
|
};
|
|
73
|
-
readonly fontWeight:
|
|
112
|
+
readonly fontWeight: 600;
|
|
74
113
|
readonly lineHeight: 1.5;
|
|
75
|
-
readonly fontSize: string;
|
|
76
114
|
};
|
|
77
115
|
readonly h6: {
|
|
78
|
-
readonly '@media (min-width:
|
|
116
|
+
readonly '@media (min-width:0px)': {
|
|
79
117
|
fontSize: string;
|
|
80
118
|
};
|
|
81
119
|
readonly '@media (min-width:900px)': {
|
|
@@ -86,7 +124,58 @@ export declare const typography: {
|
|
|
86
124
|
};
|
|
87
125
|
readonly fontWeight: 700;
|
|
88
126
|
readonly lineHeight: number;
|
|
89
|
-
|
|
127
|
+
};
|
|
128
|
+
readonly subtitle: {
|
|
129
|
+
readonly '@media (min-width:0px)': {
|
|
130
|
+
fontSize: string;
|
|
131
|
+
};
|
|
132
|
+
readonly '@media (min-width:900px)': {
|
|
133
|
+
fontSize: string;
|
|
134
|
+
};
|
|
135
|
+
readonly '@media (min-width:1200px)': {
|
|
136
|
+
fontSize: string;
|
|
137
|
+
};
|
|
138
|
+
readonly fontWeight: 400;
|
|
139
|
+
readonly lineHeight: 1.5;
|
|
140
|
+
};
|
|
141
|
+
readonly subtitleDens: {
|
|
142
|
+
readonly '@media (min-width:0px)': {
|
|
143
|
+
fontSize: string;
|
|
144
|
+
};
|
|
145
|
+
readonly '@media (min-width:900px)': {
|
|
146
|
+
fontSize: string;
|
|
147
|
+
};
|
|
148
|
+
readonly '@media (min-width:1200px)': {
|
|
149
|
+
fontSize: string;
|
|
150
|
+
};
|
|
151
|
+
readonly fontWeight: 700;
|
|
152
|
+
readonly lineHeight: 1.5;
|
|
153
|
+
};
|
|
154
|
+
readonly paragraph: {
|
|
155
|
+
readonly '@media (min-width:0px)': {
|
|
156
|
+
fontSize: string;
|
|
157
|
+
};
|
|
158
|
+
readonly '@media (min-width:900px)': {
|
|
159
|
+
fontSize: string;
|
|
160
|
+
};
|
|
161
|
+
readonly '@media (min-width:1200px)': {
|
|
162
|
+
fontSize: string;
|
|
163
|
+
};
|
|
164
|
+
readonly fontWeight: 400;
|
|
165
|
+
readonly lineHeight: 1.429;
|
|
166
|
+
};
|
|
167
|
+
readonly paragraphDens: {
|
|
168
|
+
readonly '@media (min-width:0px)': {
|
|
169
|
+
fontSize: string;
|
|
170
|
+
};
|
|
171
|
+
readonly '@media (min-width:900px)': {
|
|
172
|
+
fontSize: string;
|
|
173
|
+
};
|
|
174
|
+
readonly '@media (min-width:1200px)': {
|
|
175
|
+
fontSize: string;
|
|
176
|
+
};
|
|
177
|
+
readonly fontWeight: 600;
|
|
178
|
+
readonly lineHeight: 1.429;
|
|
90
179
|
};
|
|
91
180
|
readonly subtitle1: {
|
|
92
181
|
readonly fontWeight: 600;
|
|
@@ -98,6 +187,32 @@ export declare const typography: {
|
|
|
98
187
|
readonly lineHeight: 1.5;
|
|
99
188
|
readonly fontSize: string;
|
|
100
189
|
};
|
|
190
|
+
readonly body: {
|
|
191
|
+
readonly '@media (min-width:0px)': {
|
|
192
|
+
fontSize: string;
|
|
193
|
+
};
|
|
194
|
+
readonly '@media (min-width:900px)': {
|
|
195
|
+
fontSize: string;
|
|
196
|
+
};
|
|
197
|
+
readonly '@media (min-width:1200px)': {
|
|
198
|
+
fontSize: string;
|
|
199
|
+
};
|
|
200
|
+
readonly fontWeight: 400;
|
|
201
|
+
readonly lineHeight: 1.143;
|
|
202
|
+
};
|
|
203
|
+
readonly bodyDens: {
|
|
204
|
+
readonly '@media (min-width:0px)': {
|
|
205
|
+
fontSize: string;
|
|
206
|
+
};
|
|
207
|
+
readonly '@media (min-width:900px)': {
|
|
208
|
+
fontSize: string;
|
|
209
|
+
};
|
|
210
|
+
readonly '@media (min-width:1200px)': {
|
|
211
|
+
fontSize: string;
|
|
212
|
+
};
|
|
213
|
+
readonly fontWeight: 700;
|
|
214
|
+
readonly lineHeight: 1.143;
|
|
215
|
+
};
|
|
101
216
|
readonly body0: {
|
|
102
217
|
readonly lineHeight: 1.5;
|
|
103
218
|
readonly fontWeight: 400;
|
|
@@ -129,4 +244,17 @@ export declare const typography: {
|
|
|
129
244
|
readonly fontSize: string;
|
|
130
245
|
readonly textTransform: "capitalize";
|
|
131
246
|
};
|
|
247
|
+
readonly action: {
|
|
248
|
+
readonly '@media (min-width:0px)': {
|
|
249
|
+
fontSize: string;
|
|
250
|
+
};
|
|
251
|
+
readonly '@media (min-width:900px)': {
|
|
252
|
+
fontSize: string;
|
|
253
|
+
};
|
|
254
|
+
readonly '@media (min-width:1200px)': {
|
|
255
|
+
fontSize: string;
|
|
256
|
+
};
|
|
257
|
+
readonly fontWeight: 500;
|
|
258
|
+
readonly lineHeight: 1.667;
|
|
259
|
+
};
|
|
132
260
|
};
|
package/types/types.d.ts
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
|
+
import { Patronus, PatronusConstantColors } from '../theme/palette';
|
|
1
2
|
import {CustomShadowOptions } from '../theme'
|
|
3
|
+
import { ColorStateOptions } from '../utils/getColorState';
|
|
4
|
+
import { TypographyVariants } from '../theme/typography';
|
|
2
5
|
|
|
3
6
|
export {};
|
|
4
7
|
|
|
5
|
-
export declare type ThemeColorPresets = '
|
|
8
|
+
export declare type ThemeColorPresets = 'patronus' | 'turqui' | 'grass' | 'candy' | 'blaze';
|
|
6
9
|
|
|
7
10
|
declare module '@mui/material/styles' {
|
|
8
11
|
interface Theme {
|
|
@@ -14,8 +17,46 @@ declare module '@mui/material/styles' {
|
|
|
14
17
|
stretch?: boolean;
|
|
15
18
|
customShadows?: CustomShadowOptions;
|
|
16
19
|
}
|
|
20
|
+
|
|
21
|
+
interface TypographyVariants {
|
|
22
|
+
subtitle: Record<any>;
|
|
23
|
+
subtitleDens: Record<any>;
|
|
24
|
+
paragraph: Record<any>;
|
|
25
|
+
paragraphDens: Record<any>;
|
|
26
|
+
body: Record<any>;
|
|
27
|
+
bodyDens: Record<any>;
|
|
28
|
+
action: Record<any>;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
// allow configuration using `createTheme`
|
|
34
|
+
interface TypographyVariantsOptions {
|
|
35
|
+
subtitle: React.CSSProperties;
|
|
36
|
+
subtitleDens: React.CSSProperties;
|
|
37
|
+
paragraph: React.CSSProperties;
|
|
38
|
+
paragraphDens: React.CSSProperties;
|
|
39
|
+
body: React.CSSProperties;
|
|
40
|
+
bodyDens: React.CSSProperties;
|
|
41
|
+
action: React.CSSProperties;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
17
46
|
}
|
|
18
47
|
|
|
48
|
+
declare module '@mui/material/Typography' {
|
|
49
|
+
interface TypographyPropsVariantOverrides {
|
|
50
|
+
subtitle: true;
|
|
51
|
+
subtitleDens: true;
|
|
52
|
+
paragraph: true;
|
|
53
|
+
paragraphDens: true;
|
|
54
|
+
body: true;
|
|
55
|
+
bodyDens: true;
|
|
56
|
+
action: true;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
19
60
|
export interface GridPaletteOptions {
|
|
20
61
|
sectionHeader: string;
|
|
21
62
|
rowHover: string;
|
|
@@ -38,6 +79,10 @@ export interface GradientsPaletteOptions {
|
|
|
38
79
|
error: string;
|
|
39
80
|
}
|
|
40
81
|
|
|
82
|
+
/* interface AgumentationInfoOptions extends Pick<PaletteColor, 'lighter' | 'light' | 'main' | 'dark' | 'darker' >{
|
|
83
|
+
opacity: string
|
|
84
|
+
}
|
|
85
|
+
*/
|
|
41
86
|
declare module '@mui/material/styles/createPalette' {
|
|
42
87
|
interface TypeBackground {
|
|
43
88
|
neutral: string;
|
|
@@ -59,11 +104,15 @@ declare module '@mui/material/styles/createPalette' {
|
|
|
59
104
|
LightSelectedHover?: string;
|
|
60
105
|
DarkSelected?: string;
|
|
61
106
|
DarkSelectedHover?: string;
|
|
107
|
+
opacity?: string;
|
|
62
108
|
}
|
|
63
109
|
interface Palette {
|
|
64
110
|
gradients?: GradientsPaletteOptions;
|
|
65
111
|
chart: ChartPaletteOptions;
|
|
66
112
|
grid?: GridPaletteOptions;
|
|
113
|
+
patronus?: PatronusConstantColors;
|
|
114
|
+
state: ColorStateOptions;
|
|
115
|
+
/* info: AgumentationInfoOptions; */ /* Organizar cada caso con los valores específicos. */
|
|
67
116
|
}
|
|
68
117
|
interface PaletteOptions {
|
|
69
118
|
gradients?: GradientsPaletteOptions;
|
|
@@ -72,6 +121,12 @@ declare module '@mui/material/styles/createPalette' {
|
|
|
72
121
|
}
|
|
73
122
|
}
|
|
74
123
|
|
|
124
|
+
/* declare module '@material-ui/core/styles/createTypography' {
|
|
125
|
+
interface TypographyOptions extends TypographyVariants {}
|
|
126
|
+
}
|
|
127
|
+
*/
|
|
128
|
+
|
|
129
|
+
|
|
75
130
|
declare module '@mui/material' {
|
|
76
131
|
interface Color {
|
|
77
132
|
0: string;
|
|
@@ -85,3 +140,12 @@ declare module '@mui/material' {
|
|
|
85
140
|
500_80: string;
|
|
86
141
|
}
|
|
87
142
|
}
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
/* import { TypographyProps } from '@material-ui/core/Typography'; */
|
|
146
|
+
|
|
147
|
+
declare module '@material-ui/core/Typography' {
|
|
148
|
+
interface TypographyProps {
|
|
149
|
+
variant?: 'subtitle';
|
|
150
|
+
}
|
|
151
|
+
}
|
|
@@ -1,17 +1,5 @@
|
|
|
1
1
|
import { ThemeColorPresets } from '../types';
|
|
2
|
-
export declare
|
|
3
|
-
LightSelected: string;
|
|
4
|
-
LightSelectedHover: string;
|
|
5
|
-
DarkSelected: string;
|
|
6
|
-
DarkSelectedHover: string;
|
|
7
|
-
contrastText: string;
|
|
8
|
-
lighter: string;
|
|
9
|
-
light: string;
|
|
10
|
-
main: string;
|
|
11
|
-
dark: string;
|
|
12
|
-
darker: string;
|
|
13
|
-
name: string;
|
|
14
|
-
} | {
|
|
2
|
+
export declare type ColorVariants = {
|
|
15
3
|
name: string;
|
|
16
4
|
lighter: string;
|
|
17
5
|
light: string;
|
|
@@ -19,20 +7,8 @@ export declare const colorPresets: ({
|
|
|
19
7
|
dark: string;
|
|
20
8
|
darker: string;
|
|
21
9
|
contrastText: string;
|
|
22
|
-
}
|
|
23
|
-
export declare const
|
|
24
|
-
LightSelected: string;
|
|
25
|
-
LightSelectedHover: string;
|
|
26
|
-
DarkSelected: string;
|
|
27
|
-
DarkSelectedHover: string;
|
|
28
|
-
contrastText: string;
|
|
29
|
-
lighter: string;
|
|
30
|
-
light: string;
|
|
31
|
-
main: string;
|
|
32
|
-
dark: string;
|
|
33
|
-
darker: string;
|
|
34
|
-
name: string;
|
|
35
|
-
} | {
|
|
10
|
+
};
|
|
11
|
+
export declare const colorPresets: {
|
|
36
12
|
name: string;
|
|
37
13
|
lighter: string;
|
|
38
14
|
light: string;
|
|
@@ -40,20 +16,8 @@ export declare const defaultPreset: {
|
|
|
40
16
|
dark: string;
|
|
41
17
|
darker: string;
|
|
42
18
|
contrastText: string;
|
|
43
|
-
};
|
|
44
|
-
export declare const
|
|
45
|
-
LightSelected: string;
|
|
46
|
-
LightSelectedHover: string;
|
|
47
|
-
DarkSelected: string;
|
|
48
|
-
DarkSelectedHover: string;
|
|
49
|
-
contrastText: string;
|
|
50
|
-
lighter: string;
|
|
51
|
-
light: string;
|
|
52
|
-
main: string;
|
|
53
|
-
dark: string;
|
|
54
|
-
darker: string;
|
|
55
|
-
name: string;
|
|
56
|
-
} | {
|
|
19
|
+
}[];
|
|
20
|
+
export declare const defaultPreset: {
|
|
57
21
|
name: string;
|
|
58
22
|
lighter: string;
|
|
59
23
|
light: string;
|
|
@@ -62,19 +26,7 @@ export declare const purplePreset: {
|
|
|
62
26
|
darker: string;
|
|
63
27
|
contrastText: string;
|
|
64
28
|
};
|
|
65
|
-
export declare const
|
|
66
|
-
LightSelected: string;
|
|
67
|
-
LightSelectedHover: string;
|
|
68
|
-
DarkSelected: string;
|
|
69
|
-
DarkSelectedHover: string;
|
|
70
|
-
contrastText: string;
|
|
71
|
-
lighter: string;
|
|
72
|
-
light: string;
|
|
73
|
-
main: string;
|
|
74
|
-
dark: string;
|
|
75
|
-
darker: string;
|
|
76
|
-
name: string;
|
|
77
|
-
} | {
|
|
29
|
+
export declare const turqui: {
|
|
78
30
|
name: string;
|
|
79
31
|
lighter: string;
|
|
80
32
|
light: string;
|
|
@@ -83,19 +35,7 @@ export declare const cyanPreset: {
|
|
|
83
35
|
darker: string;
|
|
84
36
|
contrastText: string;
|
|
85
37
|
};
|
|
86
|
-
export declare const
|
|
87
|
-
LightSelected: string;
|
|
88
|
-
LightSelectedHover: string;
|
|
89
|
-
DarkSelected: string;
|
|
90
|
-
DarkSelectedHover: string;
|
|
91
|
-
contrastText: string;
|
|
92
|
-
lighter: string;
|
|
93
|
-
light: string;
|
|
94
|
-
main: string;
|
|
95
|
-
dark: string;
|
|
96
|
-
darker: string;
|
|
97
|
-
name: string;
|
|
98
|
-
} | {
|
|
38
|
+
export declare const grass: {
|
|
99
39
|
name: string;
|
|
100
40
|
lighter: string;
|
|
101
41
|
light: string;
|
|
@@ -104,19 +44,7 @@ export declare const bluePreset: {
|
|
|
104
44
|
darker: string;
|
|
105
45
|
contrastText: string;
|
|
106
46
|
};
|
|
107
|
-
export declare const
|
|
108
|
-
LightSelected: string;
|
|
109
|
-
LightSelectedHover: string;
|
|
110
|
-
DarkSelected: string;
|
|
111
|
-
DarkSelectedHover: string;
|
|
112
|
-
contrastText: string;
|
|
113
|
-
lighter: string;
|
|
114
|
-
light: string;
|
|
115
|
-
main: string;
|
|
116
|
-
dark: string;
|
|
117
|
-
darker: string;
|
|
118
|
-
name: string;
|
|
119
|
-
} | {
|
|
47
|
+
export declare const candy: {
|
|
120
48
|
name: string;
|
|
121
49
|
lighter: string;
|
|
122
50
|
light: string;
|
|
@@ -125,19 +53,7 @@ export declare const orangePreset: {
|
|
|
125
53
|
darker: string;
|
|
126
54
|
contrastText: string;
|
|
127
55
|
};
|
|
128
|
-
export declare const
|
|
129
|
-
LightSelected: string;
|
|
130
|
-
LightSelectedHover: string;
|
|
131
|
-
DarkSelected: string;
|
|
132
|
-
DarkSelectedHover: string;
|
|
133
|
-
contrastText: string;
|
|
134
|
-
lighter: string;
|
|
135
|
-
light: string;
|
|
136
|
-
main: string;
|
|
137
|
-
dark: string;
|
|
138
|
-
darker: string;
|
|
139
|
-
name: string;
|
|
140
|
-
} | {
|
|
56
|
+
export declare const blaze: {
|
|
141
57
|
name: string;
|
|
142
58
|
lighter: string;
|
|
143
59
|
light: string;
|
|
@@ -147,18 +63,6 @@ export declare const redPreset: {
|
|
|
147
63
|
contrastText: string;
|
|
148
64
|
};
|
|
149
65
|
export declare function getColorPresets(presetsKey: ThemeColorPresets): {
|
|
150
|
-
LightSelected: string;
|
|
151
|
-
LightSelectedHover: string;
|
|
152
|
-
DarkSelected: string;
|
|
153
|
-
DarkSelectedHover: string;
|
|
154
|
-
contrastText: string;
|
|
155
|
-
lighter: string;
|
|
156
|
-
light: string;
|
|
157
|
-
main: string;
|
|
158
|
-
dark: string;
|
|
159
|
-
darker: string;
|
|
160
|
-
name: string;
|
|
161
|
-
} | {
|
|
162
66
|
name: string;
|
|
163
67
|
lighter: string;
|
|
164
68
|
light: string;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { StateDefault, StateSkeleton } from "../theme";
|
|
2
|
+
import { ThemeColorPresets } from "../types";
|
|
3
|
+
export interface ColorStateOptions {
|
|
4
|
+
active12: string;
|
|
5
|
+
active: string;
|
|
6
|
+
focus: string;
|
|
7
|
+
hover: string;
|
|
8
|
+
default: string;
|
|
9
|
+
info: StateDefault;
|
|
10
|
+
success: StateDefault;
|
|
11
|
+
warning: StateDefault;
|
|
12
|
+
error: StateDefault;
|
|
13
|
+
skeleton: StateSkeleton;
|
|
14
|
+
}
|
|
15
|
+
export declare const getColorState: (presetsKey: ThemeColorPresets, mode: 'light' | 'dark') => ColorStateOptions;
|
package/utils/getFontValue.d.ts
CHANGED
package/utils/index.d.ts
CHANGED