@m4l/styles 3.2.3 → 6.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/index.js +20 -20
- package/package.json +1 -1
- package/theme/defaultThemeOptions-DVY68pts.js +125 -0
- package/theme/defaultThemeOptions.d.ts +2 -1
- package/theme/index.d.ts +1 -1
- package/theme/overrides/M4LExtendedComponents/{index-C4PXddLa.js → index-BO_x8lkT.js} +256 -255
- package/theme/overrides/M4LRHFComponents/{index-BRZVeOM5.js → index-Dv4h8DSV.js} +34 -34
- package/theme/overrides/MUIComponents/Avatar.d.ts +1 -1
- package/theme/overrides/MUIComponents/Input.d.ts +1 -1
- package/theme/overrides/MUIComponents/Progress.d.ts +1 -1
- package/theme/overrides/MUIComponents/ToggleButton.d.ts +2 -2
- package/theme/overrides/MUIComponents/{index-XoLdmZP6.js → index-DrBJTI1s.js} +61 -62
- package/theme/overrides/{index-B9xZa27y.js → index-BOMUIneQ.js} +15 -15
- package/theme/palette/baseOpacityColors.d.ts +3 -0
- package/theme/palette/defaultColors.d.ts +14 -0
- package/theme/palette/index.d.ts +0 -1
- package/theme/palette/presetColors.d.ts +18 -4
- package/theme/palette/semanticColors.d.ts +16 -0
- package/theme/palette-voCQl3kP.js +792 -0
- package/theme/{shadows-GTYqExFA.js → shadows-Cek_1mpN.js} +1 -1
- package/types/augmentations.d.ts +160 -155
- package/types/types.d.ts +72 -31
- package/utils/{getColorPresets-CXZaM9oS.js → getColorPresets-DgmrCj5l.js} +1 -1
- package/utils/getColorPresets.d.ts +4 -4
- package/utils/getColorState.d.ts +2 -2
- package/utils/getPaletteByPreset.d.ts +127 -0
- package/utils/index.d.ts +1 -0
- package/vite-env.d.ts +3 -3
- package/theme/defaultThemeOptions-BlJvKCE6.js +0 -24
- package/theme/palette/palette.d.ts +0 -6
- package/theme/palette/stateColors.d.ts +0 -2
- package/theme/palette-DM0gXxA2.js +0 -584
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { alpha as a } from "@mui/material/styles";
|
|
2
|
-
import { G as n, B as s, C as e } from "./palette-
|
|
2
|
+
import { G as n, B as s, C as e } from "./palette-voCQl3kP.js";
|
|
3
3
|
const o = n[500], c = "#000000", t = (r) => {
|
|
4
4
|
const p = a(r, 0.2), x = a(r, 0.14), $ = a(r, 0.12);
|
|
5
5
|
return [
|
package/types/augmentations.d.ts
CHANGED
|
@@ -1,155 +1,160 @@
|
|
|
1
|
-
import { Breakpoints } from '@mui/material';
|
|
2
|
-
|
|
3
|
-
import type { CustomShadowOptions } from '../theme';
|
|
4
|
-
|
|
5
|
-
declare module '@mui/material' {
|
|
6
|
-
interface Color {
|
|
7
|
-
0: string;
|
|
8
|
-
500_8: string;
|
|
9
|
-
500_12: string;
|
|
10
|
-
500_16: string;
|
|
11
|
-
500_24: string;
|
|
12
|
-
500_32: string;
|
|
13
|
-
500_48: string;
|
|
14
|
-
500_56: string;
|
|
15
|
-
500_80: string;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
declare module '@mui/material/styles' {
|
|
20
|
-
interface PaletteColor {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
};
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
interface
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
interface
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
1
|
+
import { Breakpoints } from '@mui/material';
|
|
2
|
+
|
|
3
|
+
import type { CustomShadowOptions } from '../theme';
|
|
4
|
+
|
|
5
|
+
declare module '@mui/material' {
|
|
6
|
+
interface Color {
|
|
7
|
+
0: string;
|
|
8
|
+
500_8: string;
|
|
9
|
+
500_12: string;
|
|
10
|
+
500_16: string;
|
|
11
|
+
500_24: string;
|
|
12
|
+
500_32: string;
|
|
13
|
+
500_48: string;
|
|
14
|
+
500_56: string;
|
|
15
|
+
500_80: string;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
declare module '@mui/material/styles' {
|
|
20
|
+
interface PaletteColor {
|
|
21
|
+
//TODO: Documentar los colores segun figma
|
|
22
|
+
// light: string; *** Por compatibilidad con MUI
|
|
23
|
+
// main: string; ***
|
|
24
|
+
// dark: string; *** Por compatibilidad con MUI
|
|
25
|
+
// contrastText: string; ***
|
|
26
|
+
|
|
27
|
+
focusActive: string;
|
|
28
|
+
focusVisible: string;
|
|
29
|
+
hover: string;
|
|
30
|
+
hoverOpacity: string;
|
|
31
|
+
opacity: string;
|
|
32
|
+
toneOpacity: string;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export interface TypeBackground {
|
|
36
|
+
neutral: string;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/* interface SimplePaletteColorOptions {
|
|
40
|
+
lighter?: string;
|
|
41
|
+
darker?: string;
|
|
42
|
+
active: string;
|
|
43
|
+
primary: string;
|
|
44
|
+
activeOpacity: string;
|
|
45
|
+
hover: string;
|
|
46
|
+
focusVisible: string;
|
|
47
|
+
toneOpacity: string;
|
|
48
|
+
} */
|
|
49
|
+
|
|
50
|
+
interface Palette {
|
|
51
|
+
mode: 'light' | 'dark';
|
|
52
|
+
secondary: never;
|
|
53
|
+
skeleton: { default: string; transition: string };
|
|
54
|
+
default: PaletteColor;
|
|
55
|
+
border: {
|
|
56
|
+
main: string;
|
|
57
|
+
default: string;
|
|
58
|
+
secondary: string;
|
|
59
|
+
dens: string;
|
|
60
|
+
disabled: string;
|
|
61
|
+
error: string;
|
|
62
|
+
};
|
|
63
|
+
general: {
|
|
64
|
+
scrollBar: string;
|
|
65
|
+
gridHover: string;
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Interfaz de colores de material-ui, define las opciones de personalización de la paleta de colores que se
|
|
71
|
+
* pueden usar al crear un tema con la función `createTheme`.
|
|
72
|
+
*/
|
|
73
|
+
interface PaletteOptions {
|
|
74
|
+
mode: 'light' | 'dark';
|
|
75
|
+
secondary: never;
|
|
76
|
+
skeleton: { default: string; transition: string };
|
|
77
|
+
border: {
|
|
78
|
+
main: string;
|
|
79
|
+
default: string;
|
|
80
|
+
secondary: string;
|
|
81
|
+
dens: string;
|
|
82
|
+
disabled: string;
|
|
83
|
+
error: string;
|
|
84
|
+
};
|
|
85
|
+
default: PaletteColorOptions;
|
|
86
|
+
general: {
|
|
87
|
+
scrollBar: string;
|
|
88
|
+
gridHover: string;
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
interface ColorSchemeOverrides {
|
|
93
|
+
finalTheme?: true;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
interface CssVarsTheme {
|
|
97
|
+
generalSettings: {
|
|
98
|
+
isMobile: boolean;
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
interface Theme extends CssVarsTheme {
|
|
103
|
+
stretch: boolean;
|
|
104
|
+
customShadows: CustomShadowOptions;
|
|
105
|
+
breakpoints: Breakpoints;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
interface CssVarsThemeOptions {
|
|
109
|
+
generalSettings: {
|
|
110
|
+
isMobile: boolean;
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
interface ThemeVars {
|
|
115
|
+
customShadows: CustomShadowOptions;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
interface ColorSystem {
|
|
119
|
+
typography: TypographyVariants;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
interface TypeBackground {
|
|
123
|
+
default: string,
|
|
124
|
+
neutral: string,
|
|
125
|
+
surface: string,
|
|
126
|
+
hover: string,
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
interface TypographyVariants {
|
|
130
|
+
subtitle: Record<string, any>;
|
|
131
|
+
subtitleDens: Record<string, any>;
|
|
132
|
+
paragraph: Record<string, any>;
|
|
133
|
+
paragraphDens: Record<string, any>;
|
|
134
|
+
body: Record<string, any>;
|
|
135
|
+
bodyDens: Record<string, any>;
|
|
136
|
+
action: Record<string, any>;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
interface TypographyVariantsOptions {
|
|
140
|
+
subtitle: React.CSSProperties;
|
|
141
|
+
subtitleDens: React.CSSProperties;
|
|
142
|
+
paragraph: React.CSSProperties;
|
|
143
|
+
paragraphDens: React.CSSProperties;
|
|
144
|
+
body: React.CSSProperties;
|
|
145
|
+
bodyDens: React.CSSProperties;
|
|
146
|
+
action: React.CSSProperties;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
declare module '@mui/material/Typography' {
|
|
151
|
+
interface TypographyPropsVariantOverrides {
|
|
152
|
+
subtitle: true;
|
|
153
|
+
subtitleDens: true;
|
|
154
|
+
paragraph: true;
|
|
155
|
+
paragraphDens: true;
|
|
156
|
+
body: true;
|
|
157
|
+
bodyDens: true;
|
|
158
|
+
action: true;
|
|
159
|
+
}
|
|
160
|
+
}
|
package/types/types.d.ts
CHANGED
|
@@ -1,16 +1,29 @@
|
|
|
1
|
-
import { PaletteColor } from '@mui/material/styles';
|
|
1
|
+
import { PaletteColor, Theme } from '@mui/material/styles';
|
|
2
2
|
/**
|
|
3
3
|
* type usado para tipar las props sizes de los componentes o sus derivaciones
|
|
4
4
|
*/
|
|
5
5
|
export declare type Sizes = 'small' | 'medium' | 'large';
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export declare type
|
|
6
|
+
/**
|
|
7
|
+
* Opciones de color seleccionables por un usuario con los que se puede pintar la aplicación.
|
|
8
|
+
*/
|
|
9
|
+
export declare type ThemeColorOptionsType = 'patronus' | 'turqui' | 'grass' | 'brown' | 'blaze';
|
|
10
|
+
/**
|
|
11
|
+
* Lista de colores semánticos disponibles en la aplicación.
|
|
12
|
+
*/
|
|
13
|
+
export declare type SemanticColorOptionsType = 'info' | 'success' | 'warning' | 'error';
|
|
14
|
+
/**
|
|
15
|
+
* Son los conjuntos de colores que se pueden usar en los componentes y corresponde al tipo PaletteColor
|
|
16
|
+
*/
|
|
17
|
+
export declare type ComponentPalletColor = 'primary' | 'default' | SemanticColorOptionsType;
|
|
10
18
|
export declare type BasePalettes = 'patronusBlue' | 'crayonBlue' | 'middleYellow' | 'acidGreen' | 'grassGreen' | 'desertBeige' | 'turquiBlue' | 'blazeOrange' | 'flameRed' | 'coolGrey' | 'brown' | 'marbleLight' | 'onyx' | 'mint' | 'oxford';
|
|
11
|
-
export declare type BaseOpacityPalettes = 'patronus' | 'turqui' | 'grass' | 'brown' | 'beige' | '
|
|
19
|
+
export declare type BaseOpacityPalettes = 'patronus' | 'turqui' | 'grass' | 'brown' | 'beige' | 'blaze' | 'cool' | 'marble' | 'mint' | 'oxford' | 'middle' | 'acid' | 'flame' | 'crayon';
|
|
12
20
|
export interface Colors {
|
|
13
|
-
|
|
21
|
+
/**
|
|
22
|
+
* ToneOpacity se usa para colorear el fondo de los celdas en el compksonente grid.
|
|
23
|
+
* Requiere un todo de 100 en alpha pero basado en el color de opacidad con fondo ligth o dark.
|
|
24
|
+
*/
|
|
25
|
+
'toneOpacity10': string;
|
|
26
|
+
'toneOpacity20': string;
|
|
14
27
|
10: string;
|
|
15
28
|
20: string;
|
|
16
29
|
30: string;
|
|
@@ -23,36 +36,64 @@ export interface Colors {
|
|
|
23
36
|
100: string;
|
|
24
37
|
}
|
|
25
38
|
export interface OpacityColors {
|
|
26
|
-
4: string;
|
|
27
|
-
6: string;
|
|
28
|
-
8: string;
|
|
29
39
|
10: string;
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
32: string;
|
|
37
|
-
48: string;
|
|
38
|
-
60?: string;
|
|
39
|
-
72?: string;
|
|
40
|
+
20: string;
|
|
41
|
+
30: string;
|
|
42
|
+
40: string;
|
|
43
|
+
50: string;
|
|
44
|
+
60: string;
|
|
45
|
+
70: string;
|
|
40
46
|
}
|
|
41
|
-
export interface
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
47
|
+
export interface PresetColor {
|
|
48
|
+
main: string;
|
|
49
|
+
contrastText: string;
|
|
50
|
+
light: string;
|
|
51
|
+
lighter: string;
|
|
52
|
+
toneOpacityLight: string;
|
|
53
|
+
/**
|
|
54
|
+
* Permite definir fondos de componentes en estados hover y focus dependiendo de la necesidad.
|
|
55
|
+
*/
|
|
56
|
+
opacityLight: string;
|
|
57
|
+
opacityDark: string;
|
|
58
|
+
dark: string;
|
|
59
|
+
darker: string;
|
|
60
|
+
toneOpacityDark: string;
|
|
61
|
+
/**
|
|
62
|
+
* Permite mantener consitencia en el color de tema para los borders en caso de estar en un estado de usuario focus.
|
|
63
|
+
*/
|
|
64
|
+
borderMainDark: string;
|
|
65
|
+
borderMainLight: string;
|
|
48
66
|
}
|
|
67
|
+
/**
|
|
68
|
+
* Lista de colores base en formato Colors
|
|
69
|
+
*/
|
|
49
70
|
export declare type BaseConstantColors = Record<BasePalettes, Colors>;
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
export declare type
|
|
71
|
+
/**
|
|
72
|
+
* Son los colores de las las ocpiones del tema, en formato PresetColor (Mas amplio que el PaletteColor)
|
|
73
|
+
*/
|
|
74
|
+
export declare type ThemePresetColors = Record<ThemeColorOptionsType, PresetColor>;
|
|
75
|
+
/**
|
|
76
|
+
* Son los colores semanticos en formato PresetColor
|
|
77
|
+
*/
|
|
78
|
+
export declare type SemanticPresetColors = Record<SemanticColorOptionsType, PresetColor>;
|
|
79
|
+
/**
|
|
80
|
+
* Son los colores de las ocpiones del tema, en formato PalletColor
|
|
81
|
+
*/
|
|
82
|
+
export declare type ThemePaletteColors = Record<ThemeColorOptionsType, PaletteColor>;
|
|
83
|
+
/**
|
|
84
|
+
* Son las opcines de paleta de colores semánticos en formato PaletteColor
|
|
85
|
+
*/
|
|
86
|
+
export declare type SemanticsPaletteColors = Record<SemanticColorOptionsType, PaletteColor>;
|
|
87
|
+
/**
|
|
88
|
+
* Es la configuración de color que se usa fabricar la paleta "default", se encuentra en formato PaletteColor.
|
|
89
|
+
*/
|
|
90
|
+
export declare type DefaultPresetColor = Omit<PresetColor, 'borderMainDark' | 'borderMainLight' | 'main' | 'contrastText'> & {
|
|
91
|
+
mainLight: string;
|
|
92
|
+
mainDark: string;
|
|
93
|
+
};
|
|
54
94
|
export declare type PresetsOptions = Array<{
|
|
55
95
|
name: string | undefined;
|
|
56
96
|
value: string;
|
|
57
97
|
}>;
|
|
58
98
|
export declare type ColorState = 'warning' | 'delete' | 'info' | 'success';
|
|
99
|
+
export declare type OurTheme = Pick<Theme, 'palette' | 'typography' | 'customShadows' | 'stretch'>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const DEFAULT_PRESET:
|
|
3
|
-
export declare const defaultPresetColors:
|
|
4
|
-
export declare function getColorPresets(presetsKey:
|
|
1
|
+
import { PresetColor, ThemeColorOptionsType } from '../types';
|
|
2
|
+
export declare const DEFAULT_PRESET: ThemeColorOptionsType;
|
|
3
|
+
export declare const defaultPresetColors: PresetColor;
|
|
4
|
+
export declare function getColorPresets(presetsKey: ThemeColorOptionsType): PresetColor;
|
|
5
5
|
export default getColorPresets;
|
package/utils/getColorState.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ComponentPalletColor } from '../types/types';
|
|
2
2
|
import { Theme } from '@mui/material';
|
|
3
|
-
export declare const getColorState: (color:
|
|
3
|
+
export declare const getColorState: (color: ComponentPalletColor, palette: Theme['palette'] | Theme['vars']['palette']) => string;
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import type { ThemeColorOptionsType } from '../types';
|
|
2
|
+
export declare const getPaletteByPreset: (presetColor: ThemeColorOptionsType) => {
|
|
3
|
+
readonly light: {
|
|
4
|
+
readonly info: import("@mui/material").PaletteColor;
|
|
5
|
+
readonly success: import("@mui/material").PaletteColor;
|
|
6
|
+
readonly warning: import("@mui/material").PaletteColor;
|
|
7
|
+
readonly error: import("@mui/material").PaletteColor;
|
|
8
|
+
readonly mode: "light";
|
|
9
|
+
readonly common: import("@mui/material").CommonColors;
|
|
10
|
+
readonly primary: {
|
|
11
|
+
readonly light: string;
|
|
12
|
+
readonly main: string;
|
|
13
|
+
readonly dark: string;
|
|
14
|
+
readonly contrastText: string;
|
|
15
|
+
readonly focusActive: string;
|
|
16
|
+
readonly focusVisible: string;
|
|
17
|
+
readonly hover: string;
|
|
18
|
+
readonly hoverOpacity: string;
|
|
19
|
+
readonly opacity: string;
|
|
20
|
+
readonly toneOpacity: string;
|
|
21
|
+
};
|
|
22
|
+
readonly default: {
|
|
23
|
+
readonly focusVisible: string;
|
|
24
|
+
readonly contrastText: string;
|
|
25
|
+
readonly light: string;
|
|
26
|
+
readonly main: string;
|
|
27
|
+
readonly dark: string;
|
|
28
|
+
readonly focusActive: string;
|
|
29
|
+
readonly hover: string;
|
|
30
|
+
readonly hoverOpacity: string;
|
|
31
|
+
readonly opacity: string;
|
|
32
|
+
readonly toneOpacity: string;
|
|
33
|
+
};
|
|
34
|
+
readonly divider: string;
|
|
35
|
+
readonly text: {
|
|
36
|
+
readonly primary: string;
|
|
37
|
+
readonly secondary: string;
|
|
38
|
+
readonly disabled: string;
|
|
39
|
+
};
|
|
40
|
+
readonly background: {
|
|
41
|
+
readonly default: string;
|
|
42
|
+
readonly neutral: string;
|
|
43
|
+
readonly surface: string;
|
|
44
|
+
readonly hover: string;
|
|
45
|
+
readonly paper: "";
|
|
46
|
+
};
|
|
47
|
+
readonly border: {
|
|
48
|
+
readonly main: string;
|
|
49
|
+
readonly default: string;
|
|
50
|
+
readonly secondary: string;
|
|
51
|
+
readonly dens: string;
|
|
52
|
+
readonly disabled: string;
|
|
53
|
+
readonly error: string;
|
|
54
|
+
};
|
|
55
|
+
readonly general: {
|
|
56
|
+
readonly scrollBar: string;
|
|
57
|
+
readonly gridHover: string;
|
|
58
|
+
};
|
|
59
|
+
readonly grey: import("@mui/material").Color;
|
|
60
|
+
readonly skeleton: {
|
|
61
|
+
readonly default: string;
|
|
62
|
+
readonly transition: string;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
readonly dark: {
|
|
66
|
+
readonly info: import("@mui/material").PaletteColor;
|
|
67
|
+
readonly success: import("@mui/material").PaletteColor;
|
|
68
|
+
readonly warning: import("@mui/material").PaletteColor;
|
|
69
|
+
readonly error: import("@mui/material").PaletteColor;
|
|
70
|
+
readonly mode: "dark";
|
|
71
|
+
readonly common: import("@mui/material").CommonColors;
|
|
72
|
+
readonly primary: {
|
|
73
|
+
readonly light: string;
|
|
74
|
+
readonly main: string;
|
|
75
|
+
readonly dark: string;
|
|
76
|
+
readonly contrastText: string;
|
|
77
|
+
readonly focusActive: string;
|
|
78
|
+
readonly focusVisible: string;
|
|
79
|
+
readonly hover: string;
|
|
80
|
+
readonly hoverOpacity: string;
|
|
81
|
+
readonly opacity: string;
|
|
82
|
+
readonly toneOpacity: string;
|
|
83
|
+
};
|
|
84
|
+
readonly default: {
|
|
85
|
+
readonly focusVisible: string;
|
|
86
|
+
readonly contrastText: string;
|
|
87
|
+
readonly light: string;
|
|
88
|
+
readonly main: string;
|
|
89
|
+
readonly dark: string;
|
|
90
|
+
readonly focusActive: string;
|
|
91
|
+
readonly hover: string;
|
|
92
|
+
readonly hoverOpacity: string;
|
|
93
|
+
readonly opacity: string;
|
|
94
|
+
readonly toneOpacity: string;
|
|
95
|
+
};
|
|
96
|
+
readonly text: {
|
|
97
|
+
readonly primary: string;
|
|
98
|
+
readonly secondary: string;
|
|
99
|
+
readonly disabled: string;
|
|
100
|
+
};
|
|
101
|
+
readonly divider: string;
|
|
102
|
+
readonly background: {
|
|
103
|
+
readonly default: string;
|
|
104
|
+
readonly neutral: string;
|
|
105
|
+
readonly surface: string;
|
|
106
|
+
readonly hover: string;
|
|
107
|
+
readonly paper: "";
|
|
108
|
+
};
|
|
109
|
+
readonly border: {
|
|
110
|
+
readonly main: string;
|
|
111
|
+
readonly default: string;
|
|
112
|
+
readonly secondary: string;
|
|
113
|
+
readonly dens: string;
|
|
114
|
+
readonly disabled: string;
|
|
115
|
+
readonly error: string;
|
|
116
|
+
};
|
|
117
|
+
readonly general: {
|
|
118
|
+
readonly scrollBar: string;
|
|
119
|
+
readonly gridHover: string;
|
|
120
|
+
};
|
|
121
|
+
readonly grey: import("@mui/material").Color;
|
|
122
|
+
readonly skeleton: {
|
|
123
|
+
readonly default: string;
|
|
124
|
+
readonly transition: string;
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
};
|
package/utils/index.d.ts
CHANGED
package/vite-env.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/// <reference types="vite/client" />
|
|
2
|
-
/// <reference types="vitest" />
|
|
3
|
-
/// <reference types="vitest/importMeta" />
|
|
1
|
+
/// <reference types="vite/client" />
|
|
2
|
+
/// <reference types="vitest" />
|
|
3
|
+
/// <reference types="vitest/importMeta" />
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { createTheme as a, alpha as s } from "@mui/material/styles";
|
|
2
|
-
import { t as o } from "./typography-BsOO459U.js";
|
|
3
|
-
import { s as r, c as m } from "./shadows-GTYqExFA.js";
|
|
4
|
-
import { g as p } from "./palette-DM0gXxA2.js";
|
|
5
|
-
import { g as h, D as t } from "../utils/getColorPresets-CXZaM9oS.js";
|
|
6
|
-
const e = a(), f = {
|
|
7
|
-
...e,
|
|
8
|
-
typography: o,
|
|
9
|
-
palette: {
|
|
10
|
-
...e.palette,
|
|
11
|
-
...p(t).light,
|
|
12
|
-
mode: "light"
|
|
13
|
-
},
|
|
14
|
-
shape: { borderRadius: 8 },
|
|
15
|
-
shadows: r.dark,
|
|
16
|
-
customShadows: {
|
|
17
|
-
primary: `0 8px 16px 0 ${s(h(t).main, 0.2)}`,
|
|
18
|
-
...m("dark")
|
|
19
|
-
},
|
|
20
|
-
stretch: !0
|
|
21
|
-
};
|
|
22
|
-
export {
|
|
23
|
-
f as d
|
|
24
|
-
};
|