@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.
@@ -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
+ }
@@ -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 declare const CORE_COLORS: {
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
- NEUTRAL: string;
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;
@@ -1,2 +1,3 @@
1
1
  import { PaletteMode } from '@mui/material';
2
- export declare const createMXTheme: (mode: PaletteMode) => import('@mui/material').Theme;
2
+ import { ClientCustomizations } from '../types/ClientCustomizations';
3
+ export declare const createMXTheme: (mode: PaletteMode, customizations?: ClientCustomizations) => import('@mui/material').Theme;
@@ -1,2 +1,3 @@
1
1
  import { PaletteMode } from '@mui/material';
2
- export declare const getPalette: (mode: PaletteMode) => import('@mui/material').Palette;
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 {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mxenabled/mxui",
3
- "version": "1.3.0",
3
+ "version": "1.3.1-alpha.bb1",
4
4
  "description": "Package containing MX theme and common controls for MUI",
5
5
  "main": "dist/index.es.js",
6
6
  "types": "dist/index.d.ts",