@webpros/mui-theme 0.2.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.
Files changed (61) hide show
  1. package/README.md +23 -1
  2. package/dist/package.json +17 -9
  3. package/dist/src/components/data-display/Table/Table.theme.js +5 -6
  4. package/dist/src/components/feedback/Alert/Alert.theme.js +1 -0
  5. package/dist/src/components/feedback/Dialog/Dialog.js +0 -1
  6. package/dist/src/components/feedback/Dialog/Dialog.theme.d.ts +5 -0
  7. package/dist/src/components/feedback/Dialog/Dialog.theme.js +43 -14
  8. package/dist/src/components/feedback/LinearProgress/LinearProgress.theme.js +20 -12
  9. package/dist/src/components/feedback/Snackbar/Snackbar.theme.js +4 -0
  10. package/dist/src/components/index.d.ts +0 -2
  11. package/dist/src/components/index.js +0 -2
  12. package/dist/src/components/inputs/Button/Button.theme.d.ts +1 -1
  13. package/dist/src/components/inputs/Button/Button.theme.js +3 -0
  14. package/dist/src/components/inputs/IconButton/IconButton.theme.js +3 -0
  15. package/dist/src/components/inputs/OutlinedInput/OutlinedInput.theme.js +1 -1
  16. package/dist/src/components/inputs/TimePicker/TimePicker.theme.js +2 -2
  17. package/dist/src/components/inputs/ToggleButton/ToggleButton.theme.d.ts +1 -1
  18. package/dist/src/components/inputs/ToggleButton/ToggleButton.theme.js +14 -14
  19. package/dist/src/components/inputs/ToggleButtonGroup/ToggleButtonGroup.theme.js +2 -9
  20. package/dist/src/components/navigation/Tabs/Tabs.theme.js +1 -1
  21. package/dist/src/constants.js +2 -2
  22. package/dist/src/icons/index.d.ts +4 -0
  23. package/dist/src/icons/index.js +12 -0
  24. package/dist/src/style/custom-color-palette.js +1 -1
  25. package/dist/src/tokens/colors/Dark.js +26 -2
  26. package/dist/src/tokens/colors/Light.js +62 -68
  27. package/dist/src/tokens/colors/inverseStateLayers.d.ts +14 -0
  28. package/dist/src/tokens/index.d.ts +0 -2
  29. package/dist/src/tokens/legacyColors/LegacyDark.js +0 -10
  30. package/dist/src/tokens/legacyColors/LegacyLight.js +0 -10
  31. package/dist/src/tokens/legacyColors/ThemeColorTokensLegacy.d.ts +0 -2
  32. package/dist/src/tokens/legacyColors/Tone.d.ts +0 -16
  33. package/dist/src/utils/createIcon.d.ts +12 -0
  34. package/dist/src/utils/createIcon.js +94 -0
  35. package/dist/src/utils/getMUIComponents.js +2 -2
  36. package/dist/src/utils/getMUIPalette.d.ts +3 -72
  37. package/dist/src/utils/getMUIPalette.js +177 -177
  38. package/dist/src/utils/getMUIThemeCustoimzationType.d.ts +1 -1
  39. package/dist/src/utils/getStateLayerColor.d.ts +0 -53
  40. package/dist/src/utils/getStateLayerColor.js +0 -58
  41. package/package.json +17 -9
  42. package/dist/src/components/data-display/DataGrid/DataGrid.d.ts +0 -4
  43. package/dist/src/components/data-display/DataGrid/DataGrid.js +0 -7
  44. package/dist/src/components/data-display/DataGrid/DataGrid.theme.d.ts +0 -11
  45. package/dist/src/components/data-display/DataGrid/DataGrid.theme.js +0 -21
  46. package/dist/src/components/data-display/DataGrid/index.d.ts +0 -1
  47. package/dist/src/components/data-display/DataGrid/index.js +0 -2
  48. package/dist/src/components/data-display/DataGrid/mock-data.d.ts +0 -18
  49. package/dist/src/components/data-display/DataGrid/mock-data.js +0 -184
  50. package/dist/src/components/surfaces/Card/Card.d.ts +0 -3
  51. package/dist/src/components/surfaces/Card/Card.js +0 -4
  52. package/dist/src/components/surfaces/Card/Card.theme.d.ts +0 -16
  53. package/dist/src/components/surfaces/Card/Card.theme.js +0 -100
  54. package/dist/src/components/surfaces/Card/index.d.ts +0 -1
  55. package/dist/src/components/surfaces/Card/index.js +0 -2
  56. package/dist/src/style/additional-color-palette.d.ts +0 -1
  57. package/dist/src/style/additional-color-palette.js +0 -23
  58. package/dist/src/tokens/legacyColors/additionalColors/additionalColors.d.ts +0 -21
  59. package/dist/src/tokens/legacyColors/additionalColors/additionalColors.js +0 -2
  60. package/dist/src/tokens/legacyColors/additionalColors/index.d.ts +0 -2
  61. 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/@webpros/mui-theme';
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,7 +1,7 @@
1
1
  {
2
2
  "name": "@webpros/mui-theme",
3
- "description": "MUI v6 theme for WebPros products",
4
- "version": "0.2.0",
3
+ "description": "MUI v7 theme for WebPros products",
4
+ "version": "0.3.1",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",
@@ -20,6 +20,10 @@
20
20
  ".": {
21
21
  "import": "./dist/src/index.js",
22
22
  "types": "./dist/src/index.d.ts"
23
+ },
24
+ "./icons": {
25
+ "import": "./dist/src/icons/index.js",
26
+ "types": "./dist/src/icons/index.d.ts"
23
27
  }
24
28
  },
25
29
  "type": "module",
@@ -43,15 +47,16 @@
43
47
  "prettier:test": "prettier --check \"**/*.{ts,tsx}\"",
44
48
  "prettier:write": "prettier --write \"**/*.{ts,tsx}\"",
45
49
  "typecheck": "tsc --noEmit",
46
- "extract-tokens": "node tools/extractM3Tokens.js"
50
+ "extract-tokens": "node tools/extractM3Tokens.js",
51
+ "generate:icons": "node scripts/generate-icons.cjs"
47
52
  },
48
53
  "peerDependencies": {
49
54
  "@emotion/react": "^11.14.0",
50
55
  "@emotion/styled": "^11.14.1",
51
56
  "@fontsource/roboto": "^5.2.6",
52
57
  "@material/material-color-utilities": "^0.3.0",
53
- "@mui/material": "^6.4.0",
54
- "@mui/utils": "^6.4.0",
58
+ "@mui/material": "^7.3.6",
59
+ "@mui/utils": "^7.3.6",
55
60
  "@mui/x-data-grid": "^7.29.0",
56
61
  "@mui/x-date-pickers": "^7.29.0",
57
62
  "@phosphor-icons/react": "^2.1.0",
@@ -67,8 +72,8 @@
67
72
  "@eslint/js": "^9.38.0",
68
73
  "@fontsource/roboto": "^5.2.6",
69
74
  "@material/material-color-utilities": "^0.3.0",
70
- "@mui/material": "^6.4.0",
71
- "@mui/utils": "^6.4.0",
75
+ "@mui/material": "^7.3.6",
76
+ "@mui/utils": "^7.3.6",
72
77
  "@mui/x-data-grid": "^7.29.0",
73
78
  "@mui/x-date-pickers": "^7.29.0",
74
79
  "@phosphor-icons/react": "^2.1.0",
@@ -80,8 +85,8 @@
80
85
  "@storybook/react-vite": "^9.1.16",
81
86
  "@stylistic/eslint-plugin": "^5.5.0",
82
87
  "@types/node": "^24.8.1",
83
- "@types/react": "^19.2.2",
84
- "@types/react-dom": "^19.2.2",
88
+ "@types/react": "18.3.1",
89
+ "@types/react-dom": "^18.3.1",
85
90
  "@vitejs/plugin-react": "^5.0.4",
86
91
  "eslint": "^9.38.0",
87
92
  "eslint-config-prettier": "^10.1.8",
@@ -112,5 +117,8 @@
112
117
  "extends": [
113
118
  "plugin:storybook/recommended"
114
119
  ]
120
+ },
121
+ "resolutions": {
122
+ "react-is": "^18.3.1"
115
123
  }
116
124
  }
@@ -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 { palette } = theme;
4
+ const { colors } = theme;
6
5
  return {
7
6
  MuiTable: {
8
7
  styleOverrides: {
9
8
  root: {
10
9
  '.MuiTableHead-root .MuiTableCell-root': {
11
- color: palette.supportive.main,
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: palette.outlineVariant.main,
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: getStateLayerColor(StateLayer.Active, palette.secondary.main),
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: palette.outlineVariant.main,
35
+ borderColor: colors.schemes.surfaces.outlineVariant,
37
36
  },
38
37
  },
39
38
  },
@@ -11,6 +11,7 @@ export const getAlert = (theme) => {
11
11
  styleOverrides: {
12
12
  root: {
13
13
  borderRadius: '6px',
14
+ padding: '8px',
14
15
  '& svg': {
15
16
  width: '20px',
16
17
  height: '20px',
@@ -1,5 +1,4 @@
1
1
  // Copyright 2025 WebPros International GmbH. All rights reserved.
2
- // eslint-disable-next-line no-restricted-imports
3
2
  import { Dialog as MuiDialog } from '@mui/material';
4
3
  import './Dialog.theme';
5
4
  export const Dialog = MuiDialog;
@@ -1,4 +1,9 @@
1
1
  import { Theme, ComponentsProps, ComponentsOverrides, ComponentsVariants } from '@mui/material';
2
+ declare module '@mui/material/DialogActions' {
3
+ interface DialogActionsProps {
4
+ alignment?: 'left' | 'right';
5
+ }
6
+ }
2
7
  interface M3Dialog {
3
8
  MuiDialog: {
4
9
  defaultProps?: ComponentsProps['MuiDialog'];
@@ -1,7 +1,12 @@
1
1
  // Copyright 2025 WebPros International GmbH. All rights reserved.
2
- import { modalClasses, dialogContentClasses, dialogClasses, } from '@mui/material';
2
+ import { modalClasses, dialogContentClasses, dialogClasses, iconButtonClasses, } from '@mui/material';
3
3
  export const getDialog = (theme) => {
4
- const { spacing, palette } = theme;
4
+ const { spacing, palette, colors } = theme;
5
+ const closeButtonPosition = {
6
+ position: 'absolute',
7
+ right: spacing(3),
8
+ top: 25,
9
+ };
5
10
  return {
6
11
  MuiDialogTitle: {
7
12
  defaultProps: {
@@ -9,21 +14,29 @@ export const getDialog = (theme) => {
9
14
  },
10
15
  styleOverrides: {
11
16
  root: {
12
- padding: `${spacing(2)} ${spacing(3)} ${spacing(1.5)}`,
13
- // By default, MUI removes top padding from DialogContent when it follows DialogTitle,
14
- // which can cause content to appear 'behind' the title. We're changing default padding to
15
- // create proper spacing between title and content without adjusting design of all dialogs
16
- // important set because with value 1 it does not work
17
+ padding: spacing(3.75, 8.25, 2.375, 4.5),
18
+ color: palette.onSurface.main,
17
19
  [`& + .${dialogContentClasses.root}`]: {
18
- paddingTop: `${spacing(1)} !important`,
20
+ paddingTop: '0 !important',
19
21
  },
22
+ [`& .${iconButtonClasses.root}`]: closeButtonPosition,
20
23
  },
21
24
  },
22
25
  },
23
26
  MuiDialog: {
27
+ defaultProps: {
28
+ PaperProps: {
29
+ elevation: 3,
30
+ },
31
+ },
24
32
  styleOverrides: {
25
33
  paper: {
26
- borderRadius: spacing(3.5),
34
+ borderRadius: 10,
35
+ backgroundColor: colors.schemes.surfaces.elevatedContainer,
36
+ [`& > .${iconButtonClasses.root}`]: closeButtonPosition,
37
+ [`& > .${iconButtonClasses.root} + .${dialogContentClasses.root}`]: {
38
+ paddingTop: spacing(5.125),
39
+ },
27
40
  [`&.${dialogClasses.paperFullScreen}`]: {
28
41
  borderRadius: 0,
29
42
  maxWidth: 'none',
@@ -34,9 +47,8 @@ export const getDialog = (theme) => {
34
47
  height: 'auto',
35
48
  [`&.${modalClasses.root}.${dialogClasses.root} .${dialogClasses.paper}`]: {
36
49
  height: 'auto',
37
- minHeight: '200px',
50
+ minHeight: spacing(25),
38
51
  },
39
- borderRadius: spacing(1),
40
52
  },
41
53
  },
42
54
  },
@@ -44,17 +56,34 @@ export const getDialog = (theme) => {
44
56
  styleOverrides: {
45
57
  root: {
46
58
  color: palette.onSurfaceVariant.main,
47
- padding: `0 ${spacing(3)} ${spacing(3)}`,
59
+ padding: spacing(0, 4.5, 1, 4.5),
60
+ },
61
+ dividers: {
62
+ padding: spacing(2, 4.5),
63
+ borderColor: colors.schemes.surfaces.outlineVariant,
48
64
  },
49
65
  },
50
66
  },
51
67
  MuiDialogActions: {
52
68
  styleOverrides: {
53
69
  root: {
54
- padding: `${spacing(1)} ${spacing(3)} ${spacing(3)}`,
55
- justifyContent: 'flex-start',
70
+ padding: spacing(2, 4.25, 2.5, 2.375),
71
+ justifyContent: 'flex-end',
72
+ gap: spacing(0.5),
73
+ '& > :not(style) ~ :not(style)': {
74
+ marginLeft: 0,
75
+ },
56
76
  },
57
77
  },
78
+ variants: [
79
+ {
80
+ props: { alignment: 'left' },
81
+ style: {
82
+ justifyContent: 'flex-start',
83
+ padding: spacing(2, 2.375, 2.5, 4.25),
84
+ },
85
+ },
86
+ ],
58
87
  },
59
88
  MuiDialogContentText: {
60
89
  styleOverrides: {
@@ -7,31 +7,40 @@ export const getLinearProgress = (theme) => {
7
7
  const palette = colors[schemesPath];
8
8
  const layers = colors[layersPath];
9
9
  const colorMap = {
10
- primary: { primary: palette.base.primary, secondary: layers.base.primary.opacity28 },
10
+ primary: {
11
+ primary: palette.base.primary,
12
+ secondary: layers.base.primary.opacity28,
13
+ },
11
14
  secondary: {
12
15
  primary: palette.base.secondary,
13
16
  secondary: layers.base.secondary.opacity12,
14
17
  },
15
- error: { primary: palette.status.error, secondary: layers.status.error.opacity28 },
16
- info: { primary: palette.status.info, secondary: layers.status.undefined.opacity28 },
18
+ error: {
19
+ primary: palette.status.error,
20
+ secondary: layers.status.error.opacity28,
21
+ },
22
+ info: {
23
+ primary: palette.status.info,
24
+ secondary: layers.status.info.opacity28,
25
+ },
17
26
  success: {
18
27
  primary: palette.status.success,
19
28
  secondary: layers.status.success.opacity28,
20
29
  },
21
30
  warning: {
22
31
  primary: palette.status.warning,
23
- secondary: layers.status.undefined.opacity28,
32
+ secondary: layers.status.warning.opacity28,
33
+ },
34
+ inherit: {
35
+ primary: palette.surfaces.onSurface,
36
+ secondary: layers.surfaces.onSurface.opacity28,
24
37
  },
25
- inherit: { primary: 'inherit', secondary: 'inherit' },
26
38
  };
27
39
  const simpleVariants = ['determinate', 'indeterminate', 'query'].map((variant) => ({
28
40
  props: { color, viewContext, variant },
29
41
  style: {
30
42
  background: colorMap[color].secondary,
31
- '.MuiLinearProgress-bar1': {
32
- background: colorMap[color].primary,
33
- },
34
- '.MuiLinearProgress-bar2': {
43
+ '.MuiLinearProgress-bar': {
35
44
  background: colorMap[color].primary,
36
45
  },
37
46
  },
@@ -58,14 +67,13 @@ export const getLinearProgress = (theme) => {
58
67
  MuiLinearProgress: {
59
68
  styleOverrides: {
60
69
  root: {
61
- borderRadius: '20px',
70
+ borderRadius: '2px',
62
71
  '.MuiLinearProgress-bar': {
63
72
  strokeLinecap: 'round',
64
- borderRadius: '20px',
73
+ borderRadius: '2px',
65
74
  },
66
75
  },
67
76
  },
68
- // @ts-expect-error
69
77
  variants: [
70
78
  ...getLinearProgressColors('primary'),
71
79
  ...getLinearProgressColors('secondary'),
@@ -9,6 +9,10 @@ export const getSnackbar = (theme) => {
9
9
  '& .MuiSnackbarContent-root': {
10
10
  backgroundColor: colors.inverseSchemes.surfaces.elevatedContainerLowest,
11
11
  alignItems: 'baseline',
12
+ paddingTop: 0,
13
+ },
14
+ '& .MuiSnackbarContent-action': {
15
+ marginRight: 0,
12
16
  },
13
17
  },
14
18
  },
@@ -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['MuiButtonBase'];
23
+ defaultProps?: ComponentsProps['MuiButton'];
24
24
  styleOverrides?: ComponentsOverrides<Theme>['MuiButtonBase'];
25
25
  variants?: ComponentsVariants['MuiButton'];
26
26
  };
@@ -75,6 +75,9 @@ export const getButton = (theme) => {
75
75
  };
76
76
  return {
77
77
  MuiButton: {
78
+ defaultProps: {
79
+ variant: 'ghost',
80
+ },
78
81
  styleOverrides: {
79
82
  root: {
80
83
  textTransform: 'none',
@@ -83,6 +83,9 @@ export const getIconButton = (theme) => {
83
83
  };
84
84
  return {
85
85
  MuiIconButton: {
86
+ defaultProps: {
87
+ variant: 'ghost',
88
+ },
86
89
  styleOverrides: {
87
90
  root: {
88
91
  padding: 0,
@@ -54,7 +54,7 @@ export const getOutlinedInput = () => {
54
54
  },
55
55
  },
56
56
  {
57
- props: ({ ownerState }) => ownerState.multiline,
57
+ props: ({ ownerState }) => !!ownerState.multiline,
58
58
  style: {
59
59
  padding: 0,
60
60
  },
@@ -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 { palette } = theme;
4
+ const { colors } = theme;
5
5
  return {
6
6
  MuiPickersPopper: {
7
7
  styleOverrides: {
8
8
  paper: {
9
- background: palette.surfaceContainer.main,
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: (theme: Theme) => M3ToggleButton;
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 = (theme) => {
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
- 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
- },
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 { palette } = theme;
2
+ const { colors } = theme;
4
3
  return {
5
4
  MuiToggleButtonGroup: {
6
5
  styleOverrides: {
7
6
  grouped: {
8
7
  borderRadius: '50px',
9
- borderColor: palette.outline.main,
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
  },
@@ -28,7 +28,7 @@ export const getTabs = (theme) => ({
28
28
  root: {
29
29
  [`&.${tabsClasses.vertical}`]: {
30
30
  [`& .${tabClasses.root}`]: {
31
- padding: '10px 16px 10px 10px',
31
+ padding: '10px 52px 10px 10px',
32
32
  flexDirection: 'row',
33
33
  justifyContent: 'flex-start',
34
34
  textAlign: 'left',
@@ -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.palette.supportive.main) => (Object.assign({ cursor: 'pointer', '&:hover': {
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.palette.supportive.main) => (Object.assign({ cursor: 'pointer', position: 'relative', '&:hover::after': {
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: "''",
@@ -0,0 +1,4 @@
1
+ export declare const CaretDoubleRightSmall: import("@phosphor-icons/react").Icon;
2
+ export declare const CloseSmall: import("@phosphor-icons/react").Icon;
3
+ export declare const Domino: import("@phosphor-icons/react").Icon;
4
+ export declare const Error: import("@phosphor-icons/react").Icon;
@@ -0,0 +1,12 @@
1
+ // Copyright 2025 WebPros International GmbH. All rights reserved.
2
+ // This file is auto-generated by scripts/generate-icons.cjs
3
+ // Do not edit manually. Run "yarn generate:icons" to regenerate.
4
+ import { createIcon, createStaticIcon } from '../utils/createIcon';
5
+ import caretDoubleRightSmallSvg from './svg/caret-double-right-small.svg?raw';
6
+ import closeSmallSvg from './svg/close-small.svg?raw';
7
+ import dominoSvg from './svg/domino.svg?raw';
8
+ import errorSvg from './svg/error.svg?raw';
9
+ export const CaretDoubleRightSmall = createIcon('CaretDoubleRightSmall', caretDoubleRightSmallSvg);
10
+ export const CloseSmall = createIcon('CloseSmall', closeSmallSvg);
11
+ export const Domino = createIcon('Domino', dominoSvg);
12
+ export const Error = createStaticIcon('Error', errorSvg);
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  // Copyright 2025 WebPros International GmbH. All rights reserved.
3
- import Grid from '@mui/material/Grid2/Grid2';
3
+ import Grid from '@mui/material/Grid';
4
4
  import { ColorItem } from '@storybook/addon-docs/blocks';
5
5
  import { LegacyDarkTokensDefault, LegacyLightTokensDefault, } from '../tokens/legacyColors';
6
6
  export const CustomColorPalette = ({ mode }) => {
@@ -319,7 +319,7 @@ export const DarkStateLayers = {
319
319
  opacity08: 'rgba(86, 150, 206, 0.08)',
320
320
  opacity12: 'rgba(86, 150, 206, 0.12)',
321
321
  opacity16: 'rgba(86, 150, 206, 0.16)',
322
- opacity28: 'rgba(86, 150, 206, 0.2)',
322
+ opacity28: 'rgba(86, 150, 206, 0.28)',
323
323
  opacity48: 'rgba(86, 150, 206, 0.48)',
324
324
  },
325
325
  success: {
@@ -780,6 +780,20 @@ export const DarkInverseStateLayers = {
780
780
  opacity28: 'rgba(191, 197, 202, 0.28)',
781
781
  opacity38: 'rgba(191, 197, 202, 0.38)',
782
782
  },
783
+ info: {
784
+ opacity08: 'rgba(71, 189, 243, 0.08)',
785
+ opacity12: 'rgba(71, 189, 243, 0.12)',
786
+ opacity16: 'rgba(71, 189, 243, 0.2)',
787
+ opacity28: 'rgba(71, 189, 243, 0.28)',
788
+ opacity38: 'rgba(68, 119, 187, 0.38)',
789
+ },
790
+ warning: {
791
+ opacity08: 'rgba(242, 154, 66, 0.08)',
792
+ opacity12: 'rgba(242, 154, 66, 0.12)',
793
+ opacity16: 'rgba(242, 154, 66, 0.2)',
794
+ opacity28: 'rgba(242, 154, 66, 0.28)',
795
+ opacity38: 'rgba(242, 154, 66, 0.38)',
796
+ },
783
797
  },
784
798
  };
785
799
  export const DarkSchemesGenerated = {
@@ -1025,7 +1039,7 @@ export const DarkStateLayersGenerated = {
1025
1039
  'stateLayers.status.info.opacity08': { r: 86, g: 150, b: 206, a: 0.08 },
1026
1040
  'stateLayers.status.info.opacity12': { r: 86, g: 150, b: 206, a: 0.12 },
1027
1041
  'stateLayers.status.info.opacity16': { r: 86, g: 150, b: 206, a: 0.16 },
1028
- 'stateLayers.status.info.opacity28': { r: 86, g: 150, b: 206, a: 0.2 },
1042
+ 'stateLayers.status.info.opacity28': { r: 86, g: 150, b: 206, a: 0.28 },
1029
1043
  'stateLayers.status.info.opacity48': { r: 86, g: 150, b: 206, a: 0.48 },
1030
1044
  'stateLayers.status.success.opacity08': { r: 110, g: 187, b: 114, a: 0.08 },
1031
1045
  'stateLayers.status.success.opacity12': { r: 110, g: 187, b: 114, a: 0.12 },
@@ -1395,4 +1409,14 @@ export const DarkInverseStateLayersGenerated = {
1395
1409
  'inverseStateLayers.status.onUndefinedContainer.opacity16': { r: 191, g: 197, b: 202, a: 0.16 },
1396
1410
  'inverseStateLayers.status.onUndefinedContainer.opacity28': { r: 191, g: 197, b: 202, a: 0.28 },
1397
1411
  'inverseStateLayers.status.onUndefinedContainer.opacity38': { r: 191, g: 197, b: 202, a: 0.38 },
1412
+ 'inverseStateLayers.status.info.opacity08': { r: 71, g: 189, b: 243, a: 0.08 },
1413
+ 'inverseStateLayers.status.info.opacity12': { r: 71, g: 189, b: 243, a: 0.12 },
1414
+ 'inverseStateLayers.status.info.opacity16': { r: 71, g: 189, b: 243, a: 0.2 },
1415
+ 'inverseStateLayers.status.info.opacity28': { r: 71, g: 189, b: 243, a: 0.28 },
1416
+ 'inverseStateLayers.status.info.opacity38': { r: 68, g: 119, b: 187, a: 0.38 },
1417
+ 'inverseStateLayers.status.warning.opacity08': { r: 242, g: 154, b: 66, a: 0.08 },
1418
+ 'inverseStateLayers.status.warning.opacity12': { r: 242, g: 154, b: 66, a: 0.12 },
1419
+ 'inverseStateLayers.status.warning.opacity16': { r: 242, g: 154, b: 66, a: 0.2 },
1420
+ 'inverseStateLayers.status.warning.opacity28': { r: 242, g: 154, b: 66, a: 0.28 },
1421
+ 'inverseStateLayers.status.warning.opacity38': { r: 242, g: 154, b: 66, a: 0.38 },
1398
1422
  };