@mxenabled/mxui 1.3.0 → 1.3.1-alpha.bb1
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/dist/index.es.js +575 -565
- package/dist/index.es.js.map +1 -1
- package/dist/themes/Augmentations.d.ts +17 -0
- package/dist/themes/Colors.d.ts +4 -3
- package/dist/themes/MXTheme.d.ts +2 -1
- package/dist/themes/Palette.d.ts +2 -1
- package/dist/themes/Typography.d.ts +2 -1
- package/dist/types/ClientCustomizations.d.ts +30 -0
- package/package.json +1 -1
|
@@ -111,12 +111,14 @@ declare module '@mui/material/styles' {
|
|
|
111
111
|
categories: TypeCategory;
|
|
112
112
|
chart: TypeChart;
|
|
113
113
|
chartMono: TypeChartMono;
|
|
114
|
+
neutral: PaletteColor;
|
|
114
115
|
}
|
|
115
116
|
interface PaletteOptions {
|
|
116
117
|
border: Partial<Border>;
|
|
117
118
|
categories: Partial<TypeCategory>;
|
|
118
119
|
chart: Partial<TypeChart>;
|
|
119
120
|
chartMono: Partial<TypeChartMono>;
|
|
121
|
+
neutral: Partial<PaletteColor>;
|
|
120
122
|
}
|
|
121
123
|
}
|
|
122
124
|
declare module '@mui/material/Typography' {
|
|
@@ -134,3 +136,18 @@ declare module '@mui/material/Typography' {
|
|
|
134
136
|
XSmall: true;
|
|
135
137
|
}
|
|
136
138
|
}
|
|
139
|
+
declare module '@mui/material/Button' {
|
|
140
|
+
interface ButtonPropsColorOverrides {
|
|
141
|
+
neutral: true;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
declare module '@mui/material/Chip' {
|
|
145
|
+
interface ChipPropsColorOverrides {
|
|
146
|
+
neutral: true;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
declare module '@mui/material/Alert' {
|
|
150
|
+
interface AlertPropsColorOverrides {
|
|
151
|
+
neutral: true;
|
|
152
|
+
}
|
|
153
|
+
}
|
package/dist/themes/Colors.d.ts
CHANGED
|
@@ -2,15 +2,16 @@ export declare const WHITE = "#FFFFFF";
|
|
|
2
2
|
export declare const BLACK = "#000000";
|
|
3
3
|
export declare const DEFAULT_BACKGROUND_LIGHT = "#F9F9F9";
|
|
4
4
|
export declare const DEFAULT_BACKGROUND_DARK = "#1A1A1A";
|
|
5
|
-
export
|
|
5
|
+
export interface CoreColors {
|
|
6
6
|
PRIMARY: string;
|
|
7
7
|
SECONDARY: string;
|
|
8
8
|
INFO: string;
|
|
9
9
|
SUCCESS: string;
|
|
10
10
|
WARNING: string;
|
|
11
11
|
ERROR: string;
|
|
12
|
-
|
|
13
|
-
}
|
|
12
|
+
GREY: string;
|
|
13
|
+
}
|
|
14
|
+
export declare const CORE_COLORS: CoreColors;
|
|
14
15
|
export declare const CHART: {
|
|
15
16
|
CHART1: string;
|
|
16
17
|
CHART2: string;
|
package/dist/themes/MXTheme.d.ts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import { PaletteMode } from '@mui/material';
|
|
2
|
-
|
|
2
|
+
import { ClientCustomizations } from '../types/ClientCustomizations';
|
|
3
|
+
export declare const createMXTheme: (mode: PaletteMode, customizations?: ClientCustomizations) => import('@mui/material').Theme;
|
package/dist/themes/Palette.d.ts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import { PaletteMode } from '@mui/material';
|
|
2
|
-
|
|
2
|
+
import { ClientCustomizations } from '../types/ClientCustomizations';
|
|
3
|
+
export declare const getPalette: (mode: PaletteMode, paletteCustomizations?: ClientCustomizations["paletteOptions"]) => import('@mui/material').Palette;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { Palette } from '@mui/material';
|
|
2
|
+
import { TypographyOptions } from '@mui/material/styles/createTypography';
|
|
2
3
|
export declare const INTER = "Inter, Helvetica, Arial, sans-serif";
|
|
3
|
-
export declare const getTypography: (palette: Palette) => import('@mui/material').TypographyVariants;
|
|
4
|
+
export declare const getTypography: (palette: Palette, typographyOptions?: TypographyOptions) => import('@mui/material').TypographyVariants;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
interface ModeColorOptions {
|
|
2
|
+
light: string;
|
|
3
|
+
dark: string;
|
|
4
|
+
}
|
|
5
|
+
export interface ClientCustomizations {
|
|
6
|
+
paletteOptions?: {
|
|
7
|
+
primary?: string;
|
|
8
|
+
secondary?: string;
|
|
9
|
+
error?: string;
|
|
10
|
+
warning?: string;
|
|
11
|
+
info?: string;
|
|
12
|
+
success?: string;
|
|
13
|
+
grey?: string;
|
|
14
|
+
background?: {
|
|
15
|
+
default?: ModeColorOptions;
|
|
16
|
+
paper?: ModeColorOptions;
|
|
17
|
+
};
|
|
18
|
+
common?: {
|
|
19
|
+
white?: string;
|
|
20
|
+
black?: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
typographyOptions?: {
|
|
24
|
+
fontFamily?: string;
|
|
25
|
+
};
|
|
26
|
+
shapeOptions?: {
|
|
27
|
+
borderRadius?: number;
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
export {};
|