@webpros/mui-theme 0.3.0 → 0.3.2
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/colors/Dark.js +10 -0
- package/dist/src/tokens/colors/Light.js +24 -14
- package/dist/src/tokens/colors/stateLayers.d.ts +5 -0
- 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/tokens/typography/typography.js +4 -4
- 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: "''",
|
|
@@ -298,6 +298,8 @@ export const DarkStateLayers = {
|
|
|
298
298
|
opacity12: 'rgba(140, 49, 72, 0.12)',
|
|
299
299
|
opacity16: 'rgba(140, 49, 72, 0.16)',
|
|
300
300
|
opacity10: 'rgba(140, 49, 72, 0.1)',
|
|
301
|
+
opacity56: 'rgba(140, 49, 72, 0.56)',
|
|
302
|
+
opacity78: 'rgba(140, 49, 72, 0.78)',
|
|
301
303
|
},
|
|
302
304
|
onErrorContainer: {
|
|
303
305
|
opacity08: 'rgba(255, 242, 245, 0.08)',
|
|
@@ -399,6 +401,8 @@ export const DarkStateLayers = {
|
|
|
399
401
|
opacity08: 'rgba(123, 60, 15, 0.08)',
|
|
400
402
|
opacity12: 'rgba(123, 60, 15, 0.12)',
|
|
401
403
|
opacity16: 'rgba(123, 60, 15, 0.16)',
|
|
404
|
+
opacity56: 'rgba(123, 60, 15, 0.56)',
|
|
405
|
+
opacity78: 'rgba(123, 60, 15, 0.78)',
|
|
402
406
|
},
|
|
403
407
|
successContainer: {
|
|
404
408
|
opacity08: 'rgba(18, 95, 22, 0.08)',
|
|
@@ -470,6 +474,7 @@ export const DarkStateLayers = {
|
|
|
470
474
|
opacity16: 'rgba(159, 162, 179, 0.16)',
|
|
471
475
|
opacity38: 'rgba(159, 162, 179, 0.38)',
|
|
472
476
|
opacity10: 'rgba(159, 162, 179, 0.1)',
|
|
477
|
+
opacity78: 'rgba(159, 162, 179, 0.78)',
|
|
473
478
|
},
|
|
474
479
|
shadow: {
|
|
475
480
|
opacity08: 'rgba(0, 0, 0, 0.08)',
|
|
@@ -1024,6 +1029,8 @@ export const DarkStateLayersGenerated = {
|
|
|
1024
1029
|
'stateLayers.status.errorContainer.opacity12': { r: 140, g: 49, b: 72, a: 0.12 },
|
|
1025
1030
|
'stateLayers.status.errorContainer.opacity16': { r: 140, g: 49, b: 72, a: 0.16 },
|
|
1026
1031
|
'stateLayers.status.errorContainer.opacity10': { r: 140, g: 49, b: 72, a: 0.1 },
|
|
1032
|
+
'stateLayers.status.errorContainer.opacity56': { r: 140, g: 49, b: 72, a: 0.56 },
|
|
1033
|
+
'stateLayers.status.errorContainer.opacity78': { r: 140, g: 49, b: 72, a: 0.78 },
|
|
1027
1034
|
'stateLayers.status.onErrorContainer.opacity08': { r: 255, g: 242, b: 245, a: 0.08 },
|
|
1028
1035
|
'stateLayers.status.onErrorContainer.opacity12': { r: 255, g: 242, b: 245, a: 0.12 },
|
|
1029
1036
|
'stateLayers.status.onErrorContainer.opacity16': { r: 255, g: 242, b: 245, a: 0.16 },
|
|
@@ -1097,6 +1104,8 @@ export const DarkStateLayersGenerated = {
|
|
|
1097
1104
|
'stateLayers.status.warningContainer.opacity08': { r: 123, g: 60, b: 15, a: 0.08 },
|
|
1098
1105
|
'stateLayers.status.warningContainer.opacity12': { r: 123, g: 60, b: 15, a: 0.12 },
|
|
1099
1106
|
'stateLayers.status.warningContainer.opacity16': { r: 123, g: 60, b: 15, a: 0.16 },
|
|
1107
|
+
'stateLayers.status.warningContainer.opacity56': { r: 123, g: 60, b: 15, a: 0.56 },
|
|
1108
|
+
'stateLayers.status.warningContainer.opacity78': { r: 123, g: 60, b: 15, a: 0.78 },
|
|
1100
1109
|
'stateLayers.status.successContainer.opacity08': { r: 18, g: 95, b: 22, a: 0.08 },
|
|
1101
1110
|
'stateLayers.status.successContainer.opacity12': { r: 18, g: 95, b: 22, a: 0.12 },
|
|
1102
1111
|
'stateLayers.status.successContainer.opacity16': { r: 18, g: 95, b: 22, a: 0.16 },
|
|
@@ -1146,6 +1155,7 @@ export const DarkStateLayersGenerated = {
|
|
|
1146
1155
|
'stateLayers.surfaces.onSurfaceVariant.opacity16': { r: 159, g: 162, b: 179, a: 0.16 },
|
|
1147
1156
|
'stateLayers.surfaces.onSurfaceVariant.opacity38': { r: 159, g: 162, b: 179, a: 0.38 },
|
|
1148
1157
|
'stateLayers.surfaces.onSurfaceVariant.opacity10': { r: 159, g: 162, b: 179, a: 0.1 },
|
|
1158
|
+
'stateLayers.surfaces.onSurfaceVariant.opacity78': { r: 159, g: 162, b: 179, a: 0.78 },
|
|
1149
1159
|
'stateLayers.surfaces.shadow.opacity08': { r: 0, g: 0, b: 0, a: 0.08 },
|
|
1150
1160
|
'stateLayers.surfaces.shadow.opacity12': { r: 0, g: 0, b: 0, a: 0.12 },
|
|
1151
1161
|
'stateLayers.surfaces.shadow.opacity16': { r: 0, g: 0, b: 0, a: 0.16 },
|
|
@@ -4,7 +4,7 @@ export const LightSchemes = {
|
|
|
4
4
|
base: {
|
|
5
5
|
primary: 'rgba(95, 77, 152, 1)',
|
|
6
6
|
onPrimary: 'rgba(255, 255, 255, 1)',
|
|
7
|
-
primaryContainer: 'rgba(
|
|
7
|
+
primaryContainer: 'rgba(227, 224, 252, 1)',
|
|
8
8
|
onPrimaryContainer: 'rgba(84, 66, 138, 1)',
|
|
9
9
|
secondary: 'rgba(95, 102, 144, 1)',
|
|
10
10
|
onSecondary: 'rgba(255, 255, 255, 1)',
|
|
@@ -14,7 +14,7 @@ export const LightSchemes = {
|
|
|
14
14
|
onTertiary: 'rgba(255, 255, 255, 1)',
|
|
15
15
|
tertiaryContainer: 'rgba(218, 233, 240, 1)',
|
|
16
16
|
onTertiaryContainer: 'rgba(17, 38, 47, 1)',
|
|
17
|
-
primaryVariant: 'rgba(
|
|
17
|
+
primaryVariant: 'rgba(115, 95, 173, 1)',
|
|
18
18
|
onPrimaryVariant: 'rgba(230, 228, 235, 1)',
|
|
19
19
|
onPrimaryBase: 'rgba(255, 255, 255, 1)',
|
|
20
20
|
onPrimaryBaseVariant: 'rgba(230, 228, 235, 1)',
|
|
@@ -23,7 +23,7 @@ export const LightSchemes = {
|
|
|
23
23
|
surfaceTint: 'rgba(86, 77, 130, 1)',
|
|
24
24
|
background: 'rgba(233, 235, 246, 1)',
|
|
25
25
|
onBackground: 'rgba(27, 28, 33, 1)',
|
|
26
|
-
surface: 'rgba(
|
|
26
|
+
surface: 'rgba(235, 235, 244, 1)',
|
|
27
27
|
onSurface: 'rgba(27, 28, 33, 1)',
|
|
28
28
|
surfaceVariant: 'rgba(247, 247, 252, 1)',
|
|
29
29
|
onSurfaceVariant: 'rgba(83, 86, 111, 1)',
|
|
@@ -128,10 +128,10 @@ export const LightStateLayers = {
|
|
|
128
128
|
opacity28: 'rgba(255, 255, 255, 0.28)',
|
|
129
129
|
},
|
|
130
130
|
primaryContainer: {
|
|
131
|
-
opacity08: 'rgba(
|
|
132
|
-
opacity12: 'rgba(
|
|
133
|
-
opacity16: 'rgba(
|
|
134
|
-
opacity10: 'rgba(
|
|
131
|
+
opacity08: 'rgba(227, 224, 252, 0.08)',
|
|
132
|
+
opacity12: 'rgba(227, 224, 252, 0.12)',
|
|
133
|
+
opacity16: 'rgba(227, 224, 252, 0.16)',
|
|
134
|
+
opacity10: 'rgba(227, 224, 252, 0.1)',
|
|
135
135
|
},
|
|
136
136
|
onPrimaryContainer: {
|
|
137
137
|
opacity08: 'rgba(84, 66, 138, 0.08)',
|
|
@@ -298,6 +298,8 @@ export const LightStateLayers = {
|
|
|
298
298
|
opacity12: 'rgba(255, 233, 230, 0.12)',
|
|
299
299
|
opacity16: 'rgba(255, 233, 230, 0.16)',
|
|
300
300
|
opacity10: 'rgba(255, 233, 230, 0.1)',
|
|
301
|
+
opacity56: 'rgba(255, 233, 230, 0.56)',
|
|
302
|
+
opacity78: 'rgba(255, 233, 230, 0.78)',
|
|
301
303
|
},
|
|
302
304
|
onErrorContainer: {
|
|
303
305
|
opacity08: 'rgba(155, 30, 30, 0.08)',
|
|
@@ -399,6 +401,8 @@ export const LightStateLayers = {
|
|
|
399
401
|
opacity08: 'rgba(255, 239, 210, 0.08)',
|
|
400
402
|
opacity12: 'rgba(255, 239, 210, 0.12)',
|
|
401
403
|
opacity16: 'rgba(255, 239, 210, 0.16)',
|
|
404
|
+
opacity56: 'rgba(255, 239, 210, 0.56)',
|
|
405
|
+
opacity78: 'rgba(255, 239, 210, 0.78)',
|
|
402
406
|
},
|
|
403
407
|
successContainer: {
|
|
404
408
|
opacity08: 'rgba(225, 245, 227, 0.08)',
|
|
@@ -470,6 +474,7 @@ export const LightStateLayers = {
|
|
|
470
474
|
opacity16: 'rgba(83, 86, 111, 0.07)',
|
|
471
475
|
opacity38: 'rgba(83, 86, 111, 0.38)',
|
|
472
476
|
opacity10: 'rgba(83, 86, 111, 0.1)',
|
|
477
|
+
opacity78: 'rgba(83, 86, 111, 0.78)',
|
|
473
478
|
},
|
|
474
479
|
shadow: {
|
|
475
480
|
opacity08: 'rgba(0, 0, 0, 0.08)',
|
|
@@ -799,7 +804,7 @@ export const LightInverseStateLayers = {
|
|
|
799
804
|
export const LightSchemesGenerated = {
|
|
800
805
|
'schemes.base.primary': { r: 95, g: 77, b: 152, a: 1 },
|
|
801
806
|
'schemes.base.onPrimary': { r: 255, g: 255, b: 255, a: 1 },
|
|
802
|
-
'schemes.base.primaryContainer': { r:
|
|
807
|
+
'schemes.base.primaryContainer': { r: 227, g: 224, b: 252, a: 1 },
|
|
803
808
|
'schemes.base.onPrimaryContainer': { r: 84, g: 66, b: 138, a: 1 },
|
|
804
809
|
'schemes.base.secondary': { r: 95, g: 102, b: 144, a: 1 },
|
|
805
810
|
'schemes.base.onSecondary': { r: 255, g: 255, b: 255, a: 1 },
|
|
@@ -809,14 +814,14 @@ export const LightSchemesGenerated = {
|
|
|
809
814
|
'schemes.base.onTertiary': { r: 255, g: 255, b: 255, a: 1 },
|
|
810
815
|
'schemes.base.tertiaryContainer': { r: 218, g: 233, b: 240, a: 1 },
|
|
811
816
|
'schemes.base.onTertiaryContainer': { r: 17, g: 38, b: 47, a: 1 },
|
|
812
|
-
'schemes.base.primaryVariant': { r:
|
|
817
|
+
'schemes.base.primaryVariant': { r: 115, g: 95, b: 173, a: 1 },
|
|
813
818
|
'schemes.base.onPrimaryVariant': { r: 230, g: 228, b: 235, a: 1 },
|
|
814
819
|
'schemes.base.onPrimaryBase': { r: 255, g: 255, b: 255, a: 1 },
|
|
815
820
|
'schemes.base.onPrimaryBaseVariant': { r: 230, g: 228, b: 235, a: 1 },
|
|
816
821
|
'schemes.surfaces.surfaceTint': { r: 86, g: 77, b: 130, a: 1 },
|
|
817
822
|
'schemes.surfaces.background': { r: 233, g: 235, b: 246, a: 1 },
|
|
818
823
|
'schemes.surfaces.onBackground': { r: 27, g: 28, b: 33, a: 1 },
|
|
819
|
-
'schemes.surfaces.surface': { r:
|
|
824
|
+
'schemes.surfaces.surface': { r: 235, g: 235, b: 244, a: 1 },
|
|
820
825
|
'schemes.surfaces.onSurface': { r: 27, g: 28, b: 33, a: 1 },
|
|
821
826
|
'schemes.surfaces.surfaceVariant': { r: 247, g: 247, b: 252, a: 1 },
|
|
822
827
|
'schemes.surfaces.onSurfaceVariant': { r: 83, g: 86, b: 111, a: 1 },
|
|
@@ -906,10 +911,10 @@ export const LightStateLayersGenerated = {
|
|
|
906
911
|
'stateLayers.base.onPrimary.opacity10': { r: 255, g: 255, b: 255, a: 0.1 },
|
|
907
912
|
'stateLayers.base.onPrimary.opacity38': { r: 255, g: 255, b: 255, a: 0.38 },
|
|
908
913
|
'stateLayers.base.onPrimary.opacity28': { r: 255, g: 255, b: 255, a: 0.28 },
|
|
909
|
-
'stateLayers.base.primaryContainer.opacity08': { r:
|
|
910
|
-
'stateLayers.base.primaryContainer.opacity12': { r:
|
|
911
|
-
'stateLayers.base.primaryContainer.opacity16': { r:
|
|
912
|
-
'stateLayers.base.primaryContainer.opacity10': { r:
|
|
914
|
+
'stateLayers.base.primaryContainer.opacity08': { r: 227, g: 224, b: 252, a: 0.08 },
|
|
915
|
+
'stateLayers.base.primaryContainer.opacity12': { r: 227, g: 224, b: 252, a: 0.12 },
|
|
916
|
+
'stateLayers.base.primaryContainer.opacity16': { r: 227, g: 224, b: 252, a: 0.16 },
|
|
917
|
+
'stateLayers.base.primaryContainer.opacity10': { r: 227, g: 224, b: 252, a: 0.1 },
|
|
913
918
|
'stateLayers.base.onPrimaryContainer.opacity08': { r: 84, g: 66, b: 138, a: 0.08 },
|
|
914
919
|
'stateLayers.base.onPrimaryContainer.opacity12': { r: 84, g: 66, b: 138, a: 0.12 },
|
|
915
920
|
'stateLayers.base.onPrimaryContainer.opacity16': { r: 84, g: 66, b: 138, a: 0.16 },
|
|
@@ -1024,6 +1029,8 @@ export const LightStateLayersGenerated = {
|
|
|
1024
1029
|
'stateLayers.status.errorContainer.opacity12': { r: 255, g: 233, b: 230, a: 0.12 },
|
|
1025
1030
|
'stateLayers.status.errorContainer.opacity16': { r: 255, g: 233, b: 230, a: 0.16 },
|
|
1026
1031
|
'stateLayers.status.errorContainer.opacity10': { r: 255, g: 233, b: 230, a: 0.1 },
|
|
1032
|
+
'stateLayers.status.errorContainer.opacity56': { r: 255, g: 233, b: 230, a: 0.56 },
|
|
1033
|
+
'stateLayers.status.errorContainer.opacity78': { r: 255, g: 233, b: 230, a: 0.78 },
|
|
1027
1034
|
'stateLayers.status.onErrorContainer.opacity08': { r: 155, g: 30, b: 30, a: 0.08 },
|
|
1028
1035
|
'stateLayers.status.onErrorContainer.opacity12': { r: 155, g: 30, b: 30, a: 0.12 },
|
|
1029
1036
|
'stateLayers.status.onErrorContainer.opacity16': { r: 155, g: 30, b: 30, a: 0.16 },
|
|
@@ -1097,6 +1104,8 @@ export const LightStateLayersGenerated = {
|
|
|
1097
1104
|
'stateLayers.status.warningContainer.opacity08': { r: 255, g: 239, b: 210, a: 0.08 },
|
|
1098
1105
|
'stateLayers.status.warningContainer.opacity12': { r: 255, g: 239, b: 210, a: 0.12 },
|
|
1099
1106
|
'stateLayers.status.warningContainer.opacity16': { r: 255, g: 239, b: 210, a: 0.16 },
|
|
1107
|
+
'stateLayers.status.warningContainer.opacity56': { r: 255, g: 239, b: 210, a: 0.56 },
|
|
1108
|
+
'stateLayers.status.warningContainer.opacity78': { r: 255, g: 239, b: 210, a: 0.78 },
|
|
1100
1109
|
'stateLayers.status.successContainer.opacity08': { r: 225, g: 245, b: 227, a: 0.08 },
|
|
1101
1110
|
'stateLayers.status.successContainer.opacity12': { r: 225, g: 245, b: 227, a: 0.12 },
|
|
1102
1111
|
'stateLayers.status.successContainer.opacity16': { r: 225, g: 245, b: 227, a: 0.16 },
|
|
@@ -1146,6 +1155,7 @@ export const LightStateLayersGenerated = {
|
|
|
1146
1155
|
'stateLayers.surfaces.onSurfaceVariant.opacity16': { r: 83, g: 86, b: 111, a: 0.07 },
|
|
1147
1156
|
'stateLayers.surfaces.onSurfaceVariant.opacity38': { r: 83, g: 86, b: 111, a: 0.38 },
|
|
1148
1157
|
'stateLayers.surfaces.onSurfaceVariant.opacity10': { r: 83, g: 86, b: 111, a: 0.1 },
|
|
1158
|
+
'stateLayers.surfaces.onSurfaceVariant.opacity78': { r: 83, g: 86, b: 111, a: 0.78 },
|
|
1149
1159
|
'stateLayers.surfaces.shadow.opacity08': { r: 0, g: 0, b: 0, a: 0.08 },
|
|
1150
1160
|
'stateLayers.surfaces.shadow.opacity12': { r: 0, g: 0, b: 0, a: 0.12 },
|
|
1151
1161
|
'stateLayers.surfaces.shadow.opacity16': { r: 0, g: 0, b: 0, a: 0.16 },
|
|
@@ -189,6 +189,8 @@ export type StateLayers = {
|
|
|
189
189
|
opacity12: string;
|
|
190
190
|
opacity16: string;
|
|
191
191
|
opacity10: string;
|
|
192
|
+
opacity56: string;
|
|
193
|
+
opacity78: string;
|
|
192
194
|
};
|
|
193
195
|
onErrorContainer: {
|
|
194
196
|
opacity08: string;
|
|
@@ -290,6 +292,8 @@ export type StateLayers = {
|
|
|
290
292
|
opacity08: string;
|
|
291
293
|
opacity12: string;
|
|
292
294
|
opacity16: string;
|
|
295
|
+
opacity56: string;
|
|
296
|
+
opacity78: string;
|
|
293
297
|
};
|
|
294
298
|
successContainer: {
|
|
295
299
|
opacity08: string;
|
|
@@ -361,6 +365,7 @@ export type StateLayers = {
|
|
|
361
365
|
opacity16: string;
|
|
362
366
|
opacity38: string;
|
|
363
367
|
opacity10: string;
|
|
368
|
+
opacity78: string;
|
|
364
369
|
};
|
|
365
370
|
shadow: {
|
|
366
371
|
opacity08: string;
|
|
@@ -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
|
-
};
|
|
@@ -57,8 +57,8 @@ export const typographyVariants = {
|
|
|
57
57
|
},
|
|
58
58
|
DisplaySmall: {
|
|
59
59
|
fontFamily: 'Roboto',
|
|
60
|
-
fontSize: '
|
|
61
|
-
lineHeight: '
|
|
60
|
+
fontSize: '26px',
|
|
61
|
+
lineHeight: '44px',
|
|
62
62
|
letterSpacing: '0px',
|
|
63
63
|
fontWeight: 400,
|
|
64
64
|
},
|
|
@@ -71,8 +71,8 @@ export const typographyVariants = {
|
|
|
71
71
|
},
|
|
72
72
|
HeadlineLarge: {
|
|
73
73
|
fontFamily: 'Roboto',
|
|
74
|
-
fontSize: '
|
|
75
|
-
lineHeight: '
|
|
74
|
+
fontSize: '19px',
|
|
75
|
+
lineHeight: '32px',
|
|
76
76
|
letterSpacing: '0px',
|
|
77
77
|
fontWeight: 400,
|
|
78
78
|
},
|
|
@@ -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
|
});
|