@webpros/mui-theme 0.3.0 → 0.3.1
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 +23 -1
- package/dist/package.json +1 -1
- package/dist/src/components/data-display/Table/Table.theme.js +5 -6
- package/dist/src/components/feedback/Dialog/Dialog.js +0 -1
- package/dist/src/components/index.d.ts +0 -2
- package/dist/src/components/index.js +0 -2
- package/dist/src/components/inputs/Button/Button.theme.d.ts +1 -1
- package/dist/src/components/inputs/Button/Button.theme.js +3 -0
- package/dist/src/components/inputs/IconButton/IconButton.theme.js +3 -0
- package/dist/src/components/inputs/TimePicker/TimePicker.theme.js +2 -2
- package/dist/src/components/inputs/ToggleButton/ToggleButton.theme.d.ts +1 -1
- package/dist/src/components/inputs/ToggleButton/ToggleButton.theme.js +14 -14
- package/dist/src/components/inputs/ToggleButtonGroup/ToggleButtonGroup.theme.js +2 -9
- package/dist/src/constants.js +2 -2
- package/dist/src/tokens/index.d.ts +0 -2
- package/dist/src/tokens/legacyColors/LegacyDark.js +0 -10
- package/dist/src/tokens/legacyColors/LegacyLight.js +0 -10
- package/dist/src/tokens/legacyColors/ThemeColorTokensLegacy.d.ts +0 -2
- package/dist/src/tokens/legacyColors/Tone.d.ts +0 -16
- package/dist/src/utils/getMUIComponents.js +2 -2
- package/dist/src/utils/getMUIPalette.d.ts +1 -70
- package/dist/src/utils/getMUIPalette.js +177 -177
- package/dist/src/utils/getStateLayerColor.d.ts +0 -53
- package/dist/src/utils/getStateLayerColor.js +0 -58
- package/package.json +1 -1
- package/dist/src/components/data-display/DataGrid/DataGrid.d.ts +0 -4
- package/dist/src/components/data-display/DataGrid/DataGrid.js +0 -7
- package/dist/src/components/data-display/DataGrid/DataGrid.theme.d.ts +0 -11
- package/dist/src/components/data-display/DataGrid/DataGrid.theme.js +0 -21
- package/dist/src/components/data-display/DataGrid/index.d.ts +0 -1
- package/dist/src/components/data-display/DataGrid/index.js +0 -2
- package/dist/src/components/data-display/DataGrid/mock-data.d.ts +0 -18
- package/dist/src/components/data-display/DataGrid/mock-data.js +0 -184
- package/dist/src/components/surfaces/Card/Card.d.ts +0 -3
- package/dist/src/components/surfaces/Card/Card.js +0 -4
- package/dist/src/components/surfaces/Card/Card.theme.d.ts +0 -16
- package/dist/src/components/surfaces/Card/Card.theme.js +0 -100
- package/dist/src/components/surfaces/Card/index.d.ts +0 -1
- package/dist/src/components/surfaces/Card/index.js +0 -2
- package/dist/src/style/additional-color-palette.d.ts +0 -1
- package/dist/src/style/additional-color-palette.js +0 -23
- package/dist/src/tokens/legacyColors/additionalColors/additionalColors.d.ts +0 -21
- package/dist/src/tokens/legacyColors/additionalColors/additionalColors.js +0 -2
- package/dist/src/tokens/legacyColors/additionalColors/index.d.ts +0 -2
- package/dist/src/tokens/legacyColors/additionalColors/index.js +0 -6
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ yarn add @webpros/mui-theme
|
|
|
21
21
|
|
|
22
22
|
```typescript
|
|
23
23
|
// global.d.ts
|
|
24
|
-
import type _ from '@webpros
|
|
24
|
+
import type _ from '@webpros/mui-theme';
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
2. **Create new wrapper-component for the theme provider**
|
|
@@ -78,3 +78,25 @@ const App = () => (
|
|
|
78
78
|
```tsx
|
|
79
79
|
import { Box } from '@mui/material'; // NOT import { Box } from '@webpros/mui-theme';
|
|
80
80
|
```
|
|
81
|
+
|
|
82
|
+
# Tools configuration
|
|
83
|
+
|
|
84
|
+
## Webpack
|
|
85
|
+
|
|
86
|
+
If you use Webpack, you probably need to add the following rules to your configuration:
|
|
87
|
+
|
|
88
|
+
```js
|
|
89
|
+
module: {
|
|
90
|
+
rules: [
|
|
91
|
+
{
|
|
92
|
+
test: /\.m?js/,
|
|
93
|
+
type: "javascript/auto",
|
|
94
|
+
resolve: {
|
|
95
|
+
fullySpecified: false,
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
|
|
99
|
+
// your other rules
|
|
100
|
+
]
|
|
101
|
+
}
|
|
102
|
+
```
|
package/dist/package.json
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
// Copyright 2025 WebPros International GmbH. All rights reserved.
|
|
2
2
|
import { tableRowClasses, } from '@mui/material';
|
|
3
|
-
import { getStateLayerColor, StateLayer } from '../../../utils/getStateLayerColor';
|
|
4
3
|
export const getTable = (theme) => {
|
|
5
|
-
const {
|
|
4
|
+
const { colors } = theme;
|
|
6
5
|
return {
|
|
7
6
|
MuiTable: {
|
|
8
7
|
styleOverrides: {
|
|
9
8
|
root: {
|
|
10
9
|
'.MuiTableHead-root .MuiTableCell-root': {
|
|
11
|
-
color:
|
|
10
|
+
color: colors.schemes.surfaces.onSurface,
|
|
12
11
|
fontWeight: 400,
|
|
13
12
|
},
|
|
14
13
|
},
|
|
@@ -17,7 +16,7 @@ export const getTable = (theme) => {
|
|
|
17
16
|
MuiTableCell: {
|
|
18
17
|
styleOverrides: {
|
|
19
18
|
root: {
|
|
20
|
-
borderColor:
|
|
19
|
+
borderColor: colors.schemes.surfaces.outlineVariant,
|
|
21
20
|
},
|
|
22
21
|
},
|
|
23
22
|
},
|
|
@@ -25,7 +24,7 @@ export const getTable = (theme) => {
|
|
|
25
24
|
styleOverrides: {
|
|
26
25
|
root: {
|
|
27
26
|
[`&.${tableRowClasses.selected}`]: {
|
|
28
|
-
backgroundColor:
|
|
27
|
+
backgroundColor: colors.schemes.base.secondaryContainer,
|
|
29
28
|
},
|
|
30
29
|
},
|
|
31
30
|
},
|
|
@@ -33,7 +32,7 @@ export const getTable = (theme) => {
|
|
|
33
32
|
MuiTableHead: {
|
|
34
33
|
styleOverrides: {
|
|
35
34
|
root: {
|
|
36
|
-
borderColor:
|
|
35
|
+
borderColor: colors.schemes.surfaces.outlineVariant,
|
|
37
36
|
},
|
|
38
37
|
},
|
|
39
38
|
},
|
|
@@ -14,7 +14,6 @@ export * from './inputs/TimePicker';
|
|
|
14
14
|
export * from './inputs/Autocomplete';
|
|
15
15
|
export * from './data-display/Badge';
|
|
16
16
|
export * from './inputs/Button';
|
|
17
|
-
export * from './surfaces/Card';
|
|
18
17
|
export * from './inputs/Checkbox';
|
|
19
18
|
export * from './data-display/Chip';
|
|
20
19
|
export * from './navigation/Drawer';
|
|
@@ -27,7 +26,6 @@ export * from './data-display/ListItemButton';
|
|
|
27
26
|
export * from './data-display/ListItemIcon';
|
|
28
27
|
export * from './data-display/ListItemAvatar';
|
|
29
28
|
export * from './data-display/ListSubheader';
|
|
30
|
-
export * from './data-display/DataGrid';
|
|
31
29
|
export * from './data-display/Table';
|
|
32
30
|
export * from './navigation/Menu';
|
|
33
31
|
export * from './navigation/MenuItem';
|
|
@@ -15,7 +15,6 @@ export * from './inputs/TimePicker';
|
|
|
15
15
|
export * from './inputs/Autocomplete';
|
|
16
16
|
export * from './data-display/Badge';
|
|
17
17
|
export * from './inputs/Button';
|
|
18
|
-
export * from './surfaces/Card';
|
|
19
18
|
export * from './inputs/Checkbox';
|
|
20
19
|
export * from './data-display/Chip';
|
|
21
20
|
export * from './navigation/Drawer';
|
|
@@ -28,7 +27,6 @@ export * from './data-display/ListItemButton';
|
|
|
28
27
|
export * from './data-display/ListItemIcon';
|
|
29
28
|
export * from './data-display/ListItemAvatar';
|
|
30
29
|
export * from './data-display/ListSubheader';
|
|
31
|
-
export * from './data-display/DataGrid';
|
|
32
30
|
export * from './data-display/Table';
|
|
33
31
|
export * from './navigation/Menu';
|
|
34
32
|
export * from './navigation/MenuItem';
|
|
@@ -20,7 +20,7 @@ declare module '@mui/material/Button' {
|
|
|
20
20
|
}
|
|
21
21
|
interface M3Button {
|
|
22
22
|
MuiButton: {
|
|
23
|
-
defaultProps?: ComponentsProps['
|
|
23
|
+
defaultProps?: ComponentsProps['MuiButton'];
|
|
24
24
|
styleOverrides?: ComponentsOverrides<Theme>['MuiButtonBase'];
|
|
25
25
|
variants?: ComponentsVariants['MuiButton'];
|
|
26
26
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
// Copyright 2025 WebPros International GmbH. All rights reserved.
|
|
2
2
|
import '@mui/x-date-pickers/themeAugmentation';
|
|
3
3
|
export const getTimePicker = (theme) => {
|
|
4
|
-
const {
|
|
4
|
+
const { colors } = theme;
|
|
5
5
|
return {
|
|
6
6
|
MuiPickersPopper: {
|
|
7
7
|
styleOverrides: {
|
|
8
8
|
paper: {
|
|
9
|
-
background:
|
|
9
|
+
background: colors.schemes.surfaces.surfaceContainer,
|
|
10
10
|
borderRadius: 16,
|
|
11
11
|
},
|
|
12
12
|
root: {
|
|
@@ -6,6 +6,6 @@ interface M3ToggleButton {
|
|
|
6
6
|
variants?: ComponentsVariants['MuiToggleButton'];
|
|
7
7
|
};
|
|
8
8
|
}
|
|
9
|
-
export declare const getToggleButton: (
|
|
9
|
+
export declare const getToggleButton: (_theme: Theme) => M3ToggleButton;
|
|
10
10
|
declare const _default: {};
|
|
11
11
|
export default _default;
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
export const getToggleButton = (
|
|
2
|
-
const { palette } = theme;
|
|
1
|
+
export const getToggleButton = (_theme) => {
|
|
2
|
+
// const { palette } = theme;
|
|
3
3
|
return {
|
|
4
4
|
MuiToggleButton: {
|
|
5
5
|
styleOverrides: {
|
|
6
6
|
root: {
|
|
7
7
|
borderRadius: '50px',
|
|
8
8
|
textTransform: 'none',
|
|
9
|
-
color: palette.onSurface.main,
|
|
10
|
-
'&.Mui-selected': {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
},
|
|
14
|
-
'&.MuiToggleButton-primary': {
|
|
15
|
-
|
|
16
|
-
},
|
|
17
|
-
'&.MuiToggleButton-primary.Mui-selected': {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
},
|
|
9
|
+
// color: palette.onSurface.main,
|
|
10
|
+
// '&.Mui-selected': {
|
|
11
|
+
// color: palette.onSecondaryContainer.main,
|
|
12
|
+
// backgroundColor: palette.secondaryContainer.main,
|
|
13
|
+
// },
|
|
14
|
+
// '&.MuiToggleButton-primary': {
|
|
15
|
+
// borderColor: 'transparent',
|
|
16
|
+
// },
|
|
17
|
+
// '&.MuiToggleButton-primary.Mui-selected': {
|
|
18
|
+
// color: palette.onPrimary.main,
|
|
19
|
+
// backgroundColor: palette.primary.main,
|
|
20
|
+
// },
|
|
21
21
|
},
|
|
22
22
|
},
|
|
23
23
|
},
|
|
@@ -1,22 +1,15 @@
|
|
|
1
|
-
import { StateLayer, getStateLayerColor } from '../../../utils/getStateLayerColor';
|
|
2
1
|
export const getToggleButtonGroup = (theme) => {
|
|
3
|
-
const {
|
|
2
|
+
const { colors } = theme;
|
|
4
3
|
return {
|
|
5
4
|
MuiToggleButtonGroup: {
|
|
6
5
|
styleOverrides: {
|
|
7
6
|
grouped: {
|
|
8
7
|
borderRadius: '50px',
|
|
9
|
-
borderColor:
|
|
8
|
+
borderColor: colors.schemes.surfaces.outline,
|
|
10
9
|
'&:not(:first-of-type)': {
|
|
11
10
|
marginLeft: 0,
|
|
12
11
|
borderLeft: 0,
|
|
13
12
|
},
|
|
14
|
-
'&:hover': {
|
|
15
|
-
background: getStateLayerColor(StateLayer.Hover, palette.surface.main, palette.primary.main),
|
|
16
|
-
},
|
|
17
|
-
'&.Mui-selected:hover': {
|
|
18
|
-
background: getStateLayerColor(StateLayer.Hover, palette.secondaryContainer.main, palette.onSecondaryContainer.main),
|
|
19
|
-
},
|
|
20
13
|
},
|
|
21
14
|
},
|
|
22
15
|
},
|
package/dist/src/constants.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Copyright 2025 WebPros International GmbH. All rights reserved.
|
|
2
2
|
export const underlineTypographySxProps = (theme, open = false,
|
|
3
3
|
// If color is null - undeline's color will be the same as the text color
|
|
4
|
-
color = theme.
|
|
4
|
+
color = theme.colors.schemes.surfaces.onSurface) => (Object.assign({ cursor: 'pointer', '&:hover': {
|
|
5
5
|
textDecoration: 'underline',
|
|
6
6
|
textUnderlineOffset: theme.spacing(0.5),
|
|
7
7
|
textDecorationColor: color,
|
|
@@ -14,7 +14,7 @@ color = theme.palette.supportive.main) => (Object.assign({ cursor: 'pointer', '&
|
|
|
14
14
|
})));
|
|
15
15
|
export const underlineBorderSxProps = (theme, open = false,
|
|
16
16
|
// If color is null - undeline's color will be the same as the text color
|
|
17
|
-
color = theme.
|
|
17
|
+
color = theme.colors.schemes.surfaces.onSurface) => (Object.assign({ cursor: 'pointer', position: 'relative', '&:hover::after': {
|
|
18
18
|
bottom: 0,
|
|
19
19
|
position: 'absolute',
|
|
20
20
|
content: "''",
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
export type { AdditionalColorKey } from './legacyColors/additionalColors';
|
|
2
|
-
export type { AdditionalColorTone } from './legacyColors/Tone';
|
|
3
1
|
export type { TypescaleTypographyVariants } from './typography';
|
|
4
2
|
export { typographyVariants } from './typography';
|
|
5
3
|
export type { M3ShadowLayer, M3ShadowTokenName, M3ShadowTokens } from './shadows';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
// Copyright 2025 WebPros International GmbH. All rights reserved.
|
|
2
|
-
import { additionalColors } from '../../tokens/legacyColors/additionalColors';
|
|
3
2
|
// reference
|
|
4
3
|
// https://www.figma.com/design/RPLeGa2LdhKElQQ0xIXtSh/WebPros-dashboard?node-id=53699-35493&t=pvKyGGnGRUL3kYn8-1
|
|
5
4
|
export const LegacyDarkTokensDefault = {
|
|
@@ -76,13 +75,4 @@ export const LegacyDarkTokensDefault = {
|
|
|
76
75
|
undefinedContainer: '#3D464D',
|
|
77
76
|
onUndefinedContainer: '#E4EBF0',
|
|
78
77
|
supportive: '#8FAAB6',
|
|
79
|
-
// Custom accent colors matching with the theme.
|
|
80
|
-
// Should not be used in MUI components directly (i.e. for setting background/text somewhere) inside customization.
|
|
81
|
-
// Only for outer usage
|
|
82
|
-
// reference -
|
|
83
|
-
// Charts
|
|
84
|
-
// https://www.figma.com/design/RPLeGa2LdhKElQQ0xIXtSh/WebPros-dashboard?node-id=7648-60043&t=DhlQVfQGF7gEbkuU-0
|
|
85
|
-
// Colors
|
|
86
|
-
// https://www.figma.com/design/RPLeGa2LdhKElQQ0xIXtSh/WebPros-dashboard?node-id=7648-60043&t=DhlQVfQGF7gEbkuU-0
|
|
87
|
-
additionalColors,
|
|
88
78
|
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
// Copyright 2025 WebPros International GmbH. All rights reserved.
|
|
2
|
-
import { additionalColors } from '../../tokens/legacyColors/additionalColors';
|
|
3
2
|
// reference
|
|
4
3
|
// https://www.figma.com/design/RPLeGa2LdhKElQQ0xIXtSh/WebPros-dashboard?node-id=53699-35493&t=pvKyGGnGRUL3kYn8-1
|
|
5
4
|
export const LegacyLightTokensDefault = {
|
|
@@ -74,13 +73,4 @@ export const LegacyLightTokensDefault = {
|
|
|
74
73
|
undefinedContainer: '#DFE2E4',
|
|
75
74
|
onUndefinedContainer: '#263238',
|
|
76
75
|
supportive: '#546E7A',
|
|
77
|
-
// Custom accent colors matching with the theme.
|
|
78
|
-
// Should not be used in MUI components directly (i.e. for setting background/text somewhere) inside customization.
|
|
79
|
-
// Only for outer usage
|
|
80
|
-
// reference -
|
|
81
|
-
// Charts
|
|
82
|
-
// https://www.figma.com/design/RPLeGa2LdhKElQQ0xIXtSh/WebPros-dashboard?node-id=7648-60043&t=DhlQVfQGF7gEbkuU-0
|
|
83
|
-
// Colors
|
|
84
|
-
// https://www.figma.com/design/RPLeGa2LdhKElQQ0xIXtSh/WebPros-dashboard?node-id=7648-60043&t=DhlQVfQGF7gEbkuU-0
|
|
85
|
-
additionalColors,
|
|
86
76
|
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { AdditionalColors } from '../../tokens/legacyColors/additionalColors/additionalColors';
|
|
2
1
|
export type ThemeColorTokensLegacy = {
|
|
3
2
|
primary: string;
|
|
4
3
|
onPrimary: string;
|
|
@@ -70,5 +69,4 @@ export type ThemeColorTokensLegacy = {
|
|
|
70
69
|
undefinedContainer: string;
|
|
71
70
|
onUndefinedContainer: string;
|
|
72
71
|
supportive: string;
|
|
73
|
-
additionalColors: AdditionalColors;
|
|
74
72
|
};
|
|
@@ -156,19 +156,3 @@ export declare const ErrorDefault: {
|
|
|
156
156
|
'99': string;
|
|
157
157
|
'100': string;
|
|
158
158
|
};
|
|
159
|
-
export type AdditionalColorTone = {
|
|
160
|
-
50: string;
|
|
161
|
-
100: string;
|
|
162
|
-
200: string;
|
|
163
|
-
300: string;
|
|
164
|
-
400: string;
|
|
165
|
-
500: string;
|
|
166
|
-
600: string;
|
|
167
|
-
700: string;
|
|
168
|
-
800: string;
|
|
169
|
-
900: string;
|
|
170
|
-
A100: string;
|
|
171
|
-
A200: string;
|
|
172
|
-
A400: string;
|
|
173
|
-
A700: string;
|
|
174
|
-
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getAccordion, getAccordionSummary, getAccordionDetails, getAlert, getAppBar, getBackdrop, getBadge, getBreadcrumbs, getButton,
|
|
1
|
+
import { getAccordion, getAccordionSummary, getAccordionDetails, getAlert, getAppBar, getBackdrop, getBadge, getBreadcrumbs, getButton, getCheckbox, getChip, getCssBaseline, getDivider, getDrawer, getFab, getIconButton, getLink, getList, getListItem, getListItemButton, getListItemIcon, getListItemAvatar, getListSubheader, getMenu, getMenuItem, getPaginationItem, getPaper, getPopover, getSwitch, getTab, getTabs, getTextField, getToggleButton, getToggleButtonGroup, getTooltip, getTypography, getAvatar, getSelect, getInputLabel, getTimePicker, getSnackbar, getCircularProgress, getLinearProgress, getDialog, getTable, getAutocomplete, getInputBase, getSkeleton, getFormLabel, getOutlinedInput, getFormHelperText, getRadio, } from '../components';
|
|
2
2
|
export const getMUIComponents = (theme, _mode) => ({
|
|
3
|
-
components: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(
|
|
3
|
+
components: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, getCssBaseline(theme)), getBackdrop(theme)), getAccordion(theme)), getAccordionSummary(theme)), getAccordionDetails(theme)), getAlert(theme)), getAppBar(theme)), getAvatar(theme)), getBadge(theme)), getBreadcrumbs(theme)), getSelect()), getTimePicker(theme)), getInputLabel()), getButton(theme)), getCheckbox(theme)), getChip(theme)), getDivider(theme)), getDrawer(theme)), getFab(theme)), getIconButton(theme)), getLink(theme)), getList(theme)), getListItem(theme)), getListItemButton(theme)), getListItemIcon(theme)), getListItemAvatar(theme)), getListSubheader(theme)), getMenu(theme)), getMenuItem(theme)), getPaginationItem(theme)), getPaper(theme)), getPopover(theme)), getSwitch(theme)), getTab(theme)), getTabs(theme)), getTextField(theme)), getToggleButton(theme)), getToggleButtonGroup(theme)), getTooltip(theme)), getTypography(theme)), getSnackbar(theme)), getCircularProgress(theme)), getLinearProgress(theme)), getDialog(theme)), getTable(theme)), getAutocomplete()), getInputBase()), getSkeleton(theme)), getFormLabel()), getOutlinedInput()), getFormHelperText()), getRadio(theme)),
|
|
4
4
|
});
|
|
@@ -2,93 +2,24 @@ import { PaletteColor, PaletteColorOptions, ThemeOptions } from '@mui/material';
|
|
|
2
2
|
import { ThemeMode } from '../tokens/ThemeMode';
|
|
3
3
|
import { ThemeScheme } from '../tokens/ThemeScheme';
|
|
4
4
|
import { Schemes, StateLayers } from '../tokens/colors';
|
|
5
|
-
import { AdditionalColorTone } from '../tokens/legacyColors/Tone';
|
|
6
5
|
declare module '@mui/material/styles' {
|
|
7
6
|
interface M3Palette {
|
|
8
7
|
onPrimary: PaletteColor;
|
|
9
|
-
primaryContainer: PaletteColor;
|
|
10
8
|
onPrimaryContainer: PaletteColor;
|
|
11
9
|
secondary: PaletteColor;
|
|
12
|
-
onSecondary: PaletteColor;
|
|
13
|
-
secondaryContainer: PaletteColor;
|
|
14
|
-
onSecondaryContainer: PaletteColor;
|
|
15
|
-
tertiary: PaletteColor;
|
|
16
|
-
onTertiary: PaletteColor;
|
|
17
|
-
tertiaryContainer: PaletteColor;
|
|
18
|
-
onTertiaryContainer: PaletteColor;
|
|
19
10
|
onError: PaletteColor;
|
|
20
|
-
errorContainer: PaletteColor;
|
|
21
|
-
onErrorContainer: PaletteColor;
|
|
22
|
-
primaryFixed: PaletteColor;
|
|
23
|
-
primaryFixedDim: PaletteColor;
|
|
24
|
-
onPrimaryFixed: PaletteColor;
|
|
25
|
-
onPrimaryFixedVariant: PaletteColor;
|
|
26
|
-
secondaryFixed: PaletteColor;
|
|
27
|
-
secondaryFixedDim: PaletteColor;
|
|
28
|
-
onSecondaryFixed: PaletteColor;
|
|
29
|
-
onSecondaryFixedVariant: PaletteColor;
|
|
30
|
-
tertiaryFixed: PaletteColor;
|
|
31
|
-
tertiaryFixedDim: PaletteColor;
|
|
32
|
-
onTertiaryFixed: PaletteColor;
|
|
33
|
-
onTertiaryFixedVariant: PaletteColor;
|
|
34
11
|
surface: PaletteColor;
|
|
35
12
|
onSurface: PaletteColor;
|
|
36
13
|
surfaceDim: PaletteColor;
|
|
37
|
-
surfaceBright: PaletteColor;
|
|
38
14
|
surfaceContainerLowest: PaletteColor;
|
|
39
|
-
surfaceContainerLow: PaletteColor;
|
|
40
15
|
surfaceContainer: PaletteColor;
|
|
41
|
-
surfaceContainerHigh: PaletteColor;
|
|
42
|
-
surfaceContainerHighest: PaletteColor;
|
|
43
16
|
onSurfaceVariant: PaletteColor;
|
|
44
|
-
outline: PaletteColor;
|
|
45
|
-
outlineVariant: PaletteColor;
|
|
46
|
-
inversePrimary: PaletteColor;
|
|
47
|
-
inverseSurface: PaletteColor;
|
|
48
|
-
inverseOnSurface: PaletteColor;
|
|
49
|
-
shadow: PaletteColor;
|
|
50
|
-
scrim: PaletteColor;
|
|
51
|
-
onBackground: PaletteColor;
|
|
52
|
-
onInfo: PaletteColor;
|
|
53
|
-
infoContainer: PaletteColor;
|
|
54
|
-
onInfoContainer: PaletteColor;
|
|
55
|
-
onSuccess: PaletteColor;
|
|
56
|
-
successContainer: PaletteColor;
|
|
57
|
-
onSuccessContainer: PaletteColor;
|
|
58
|
-
onWarning: PaletteColor;
|
|
59
|
-
warningContainer: PaletteColor;
|
|
60
|
-
onWarningContainer: PaletteColor;
|
|
61
|
-
undefined: PaletteColor;
|
|
62
|
-
onUndefined: PaletteColor;
|
|
63
|
-
undefinedContainer: PaletteColor;
|
|
64
|
-
onUndefinedContainer: PaletteColor;
|
|
65
17
|
supportive: PaletteColor;
|
|
66
18
|
}
|
|
67
|
-
interface
|
|
68
|
-
red: AdditionalColorTone;
|
|
69
|
-
pink: AdditionalColorTone;
|
|
70
|
-
purple: AdditionalColorTone;
|
|
71
|
-
deepPurple: AdditionalColorTone;
|
|
72
|
-
indigo: AdditionalColorTone;
|
|
73
|
-
blue: AdditionalColorTone;
|
|
74
|
-
lightBlue: AdditionalColorTone;
|
|
75
|
-
cyan: AdditionalColorTone;
|
|
76
|
-
teal: AdditionalColorTone;
|
|
77
|
-
green: AdditionalColorTone;
|
|
78
|
-
lightGreen: AdditionalColorTone;
|
|
79
|
-
lime: AdditionalColorTone;
|
|
80
|
-
yellow: AdditionalColorTone;
|
|
81
|
-
amber: AdditionalColorTone;
|
|
82
|
-
orange: AdditionalColorTone;
|
|
83
|
-
deepOrange: AdditionalColorTone;
|
|
84
|
-
brown: AdditionalColorTone;
|
|
19
|
+
interface Palette extends M3Palette {
|
|
85
20
|
}
|
|
86
21
|
interface M3PaletteOptions extends Record<keyof M3Palette, PaletteColorOptions | StateLayers | Schemes> {
|
|
87
22
|
themeMode: string;
|
|
88
|
-
additional: M3AdditionalColors;
|
|
89
|
-
}
|
|
90
|
-
interface Palette extends M3Palette {
|
|
91
|
-
additional: M3AdditionalColors;
|
|
92
23
|
}
|
|
93
24
|
interface PaletteOptions extends M3PaletteOptions {
|
|
94
25
|
}
|