@webpros/mui-theme 0.4.10 → 0.4.12

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@webpros/mui-theme",
3
3
  "description": "MUI v7 theme for WebPros products",
4
- "version": "0.4.10",
4
+ "version": "0.4.12",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",
@@ -32,11 +32,6 @@
32
32
  "dist"
33
33
  ],
34
34
  "private": false,
35
- "engines": {
36
- "node": "^22.x",
37
- "npm": "please-use-yarn",
38
- "yarn": "^1.22.0"
39
- },
40
35
  "scripts": {
41
36
  "build": "yarn build:main && yarn build:eslint",
42
37
  "build:main": "tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json",
@@ -60,8 +55,6 @@
60
55
  "@material/material-color-utilities": "^0.3.0",
61
56
  "@mui/material": "^7.3.6",
62
57
  "@mui/utils": "^7.3.6",
63
- "@mui/x-data-grid": "^7.29.0",
64
- "@mui/x-date-pickers": "^7.29.0",
65
58
  "@phosphor-icons/react": "^2.1.0",
66
59
  "usehooks-ts": "^3.1.1"
67
60
  },
@@ -77,8 +70,6 @@
77
70
  "@material/material-color-utilities": "^0.3.0",
78
71
  "@mui/material": "^7.3.6",
79
72
  "@mui/utils": "^7.3.6",
80
- "@mui/x-data-grid": "^7.29.0",
81
- "@mui/x-date-pickers": "^7.29.0",
82
73
  "@phosphor-icons/react": "^2.1.0",
83
74
  "@storybook/addon-a11y": "^9.1.16",
84
75
  "@storybook/addon-docs": "^9.1.16",
@@ -9,6 +9,7 @@ export const getAlert = (theme) => {
9
9
  styleOverrides: {
10
10
  root: {
11
11
  borderRadius: '6px',
12
+ boxShadow: 'none', // Our customized paper has default box shadow, so we need to reset it
12
13
  },
13
14
  message: Object.assign(Object.assign({}, typography.BodySmall), { paddingTop: '10px', paddingBottom: '10px' }),
14
15
  action: { paddingTop: '0.5px' },
@@ -1,8 +1,7 @@
1
- import '@mui/x-date-pickers/themeAugmentation';
2
1
  import { ComponentsOverrides, Theme } from '@mui/material';
3
2
  export interface M3TimePicker {
4
3
  MuiPickersPopper: {
5
- styleOverrides?: ComponentsOverrides<Theme>['MuiPickersPopper'];
4
+ styleOverrides?: ComponentsOverrides<Theme>['MuiDialog'];
6
5
  };
7
6
  }
8
7
  export declare const getTimePicker: (theme: Theme) => M3TimePicker;
@@ -1,5 +1,4 @@
1
1
  // Copyright 2025 WebPros International GmbH. All rights reserved.
2
- import '@mui/x-date-pickers/themeAugmentation';
3
2
  export const getTimePicker = (theme) => {
4
3
  const { colors } = theme;
5
4
  return {
@@ -6,6 +6,10 @@ export const getMUIPalette = (themeMode, themeScheme) => {
6
6
  /** Basic MUI overrides */
7
7
  themeMode,
8
8
  mode: themeMode === 'dark' ? 'dark' : 'light', // MUI expects 'light' or 'dark' for mode
9
+ background: {
10
+ default: scheme.schemes.surfaces.surface,
11
+ paper: scheme.schemes.surfaces.surfaceContainerLowest,
12
+ },
9
13
  primary: {
10
14
  main: scheme.schemes.base.primary,
11
15
  contrastText: scheme.schemes.base.onPrimary,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@webpros/mui-theme",
3
3
  "description": "MUI v7 theme for WebPros products",
4
- "version": "0.4.10",
4
+ "version": "0.4.12",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",
@@ -32,11 +32,6 @@
32
32
  "dist"
33
33
  ],
34
34
  "private": false,
35
- "engines": {
36
- "node": "^22.x",
37
- "npm": "please-use-yarn",
38
- "yarn": "^1.22.0"
39
- },
40
35
  "scripts": {
41
36
  "build": "yarn build:main && yarn build:eslint",
42
37
  "build:main": "tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json",
@@ -60,8 +55,6 @@
60
55
  "@material/material-color-utilities": "^0.3.0",
61
56
  "@mui/material": "^7.3.6",
62
57
  "@mui/utils": "^7.3.6",
63
- "@mui/x-data-grid": "^7.29.0",
64
- "@mui/x-date-pickers": "^7.29.0",
65
58
  "@phosphor-icons/react": "^2.1.0",
66
59
  "usehooks-ts": "^3.1.1"
67
60
  },
@@ -77,8 +70,6 @@
77
70
  "@material/material-color-utilities": "^0.3.0",
78
71
  "@mui/material": "^7.3.6",
79
72
  "@mui/utils": "^7.3.6",
80
- "@mui/x-data-grid": "^7.29.0",
81
- "@mui/x-date-pickers": "^7.29.0",
82
73
  "@phosphor-icons/react": "^2.1.0",
83
74
  "@storybook/addon-a11y": "^9.1.16",
84
75
  "@storybook/addon-docs": "^9.1.16",
@@ -123,4 +114,4 @@
123
114
  "resolutions": {
124
115
  "react-is": "^18.3.1"
125
116
  }
126
- }
117
+ }