@mui/material 5.8.5 → 5.9.0
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/Alert/Alert.js +19 -11
- package/Autocomplete/Autocomplete.d.ts +2 -0
- package/Autocomplete/Autocomplete.js +14 -10
- package/CHANGELOG.md +190 -0
- package/FilledInput/FilledInput.js +1 -1
- package/Input/Input.js +1 -1
- package/Modal/Modal.js +6 -6
- package/OutlinedInput/OutlinedInput.js +15 -0
- package/Popper/Popper.d.ts +1 -6
- package/README.md +60 -23
- package/ScopedCssBaseline/ScopedCssBaseline.d.ts +6 -0
- package/ScopedCssBaseline/ScopedCssBaseline.js +6 -1
- package/Select/Select.d.ts +1 -1
- package/Select/Select.js +1 -1
- package/Slider/Slider.js +9 -9
- package/SnackbarContent/SnackbarContent.js +1 -1
- package/Tabs/Tabs.js +10 -2
- package/Tooltip/Tooltip.js +6 -5
- package/Unstable_Grid2/Grid2.d.ts +4 -0
- package/Unstable_Grid2/Grid2.js +34 -0
- package/Unstable_Grid2/Grid2Props.d.ts +15 -0
- package/Unstable_Grid2/Grid2Props.js +1 -0
- package/Unstable_Grid2/grid2Classes.d.ts +5 -0
- package/Unstable_Grid2/grid2Classes.js +14 -0
- package/Unstable_Grid2/index.d.ts +4 -0
- package/Unstable_Grid2/index.js +4 -0
- package/Unstable_Grid2/package.json +6 -0
- package/index.d.ts +3 -0
- package/index.js +3 -1
- package/legacy/Alert/Alert.js +19 -11
- package/legacy/Autocomplete/Autocomplete.js +14 -10
- package/legacy/FilledInput/FilledInput.js +1 -1
- package/legacy/Input/Input.js +1 -1
- package/legacy/Modal/Modal.js +13 -9
- package/legacy/OutlinedInput/OutlinedInput.js +15 -0
- package/legacy/ScopedCssBaseline/ScopedCssBaseline.js +6 -1
- package/legacy/Select/Select.js +1 -1
- package/legacy/Slider/Slider.js +9 -9
- package/legacy/SnackbarContent/SnackbarContent.js +1 -1
- package/legacy/Tabs/Tabs.js +10 -2
- package/legacy/Tooltip/Tooltip.js +6 -5
- package/legacy/Unstable_Grid2/Grid2.js +38 -0
- package/legacy/Unstable_Grid2/Grid2Props.js +1 -0
- package/legacy/Unstable_Grid2/grid2Classes.js +27 -0
- package/legacy/Unstable_Grid2/index.js +4 -0
- package/legacy/index.js +3 -1
- package/legacy/styles/CssVarsProvider.js +10 -8
- package/legacy/styles/experimental_extendTheme.js +85 -29
- package/modern/Alert/Alert.js +19 -11
- package/modern/Autocomplete/Autocomplete.js +13 -9
- package/modern/FilledInput/FilledInput.js +1 -1
- package/modern/Input/Input.js +1 -1
- package/modern/Modal/Modal.js +6 -6
- package/modern/OutlinedInput/OutlinedInput.js +15 -0
- package/modern/ScopedCssBaseline/ScopedCssBaseline.js +6 -1
- package/modern/Select/Select.js +1 -1
- package/modern/Slider/Slider.js +9 -9
- package/modern/SnackbarContent/SnackbarContent.js +1 -1
- package/modern/Tabs/Tabs.js +10 -2
- package/modern/Tooltip/Tooltip.js +6 -5
- package/modern/Unstable_Grid2/Grid2.js +34 -0
- package/modern/Unstable_Grid2/Grid2Props.js +1 -0
- package/modern/Unstable_Grid2/grid2Classes.js +14 -0
- package/modern/Unstable_Grid2/index.js +4 -0
- package/modern/index.js +3 -1
- package/modern/styles/CssVarsProvider.js +6 -6
- package/modern/styles/experimental_extendTheme.js +80 -30
- package/node/Alert/Alert.js +19 -11
- package/node/Autocomplete/Autocomplete.js +14 -10
- package/node/FilledInput/FilledInput.js +1 -1
- package/node/Input/Input.js +1 -1
- package/node/Modal/Modal.js +9 -9
- package/node/OutlinedInput/OutlinedInput.js +13 -0
- package/node/ScopedCssBaseline/ScopedCssBaseline.js +6 -1
- package/node/Select/Select.js +1 -1
- package/node/Slider/Slider.js +9 -9
- package/node/SnackbarContent/SnackbarContent.js +1 -1
- package/node/Tabs/Tabs.js +10 -2
- package/node/Tooltip/Tooltip.js +6 -5
- package/node/Unstable_Grid2/Grid2.js +47 -0
- package/node/Unstable_Grid2/Grid2Props.js +5 -0
- package/node/Unstable_Grid2/grid2Classes.js +25 -0
- package/node/Unstable_Grid2/index.js +56 -0
- package/node/index.js +22 -1
- package/node/styles/CssVarsProvider.js +11 -6
- package/node/styles/experimental_extendTheme.js +84 -31
- package/package.json +7 -7
- package/styles/CssVarsProvider.d.ts +14 -28
- package/styles/CssVarsProvider.js +10 -6
- package/styles/components.d.ts +5 -0
- package/styles/createPalette.d.ts +0 -89
- package/styles/createTheme.d.ts +1 -1
- package/styles/experimental_extendTheme.d.ts +315 -35
- package/styles/experimental_extendTheme.js +80 -30
- package/styles/index.d.ts +35 -1
- package/styles/overrides.d.ts +3 -1
- package/styles/props.d.ts +2 -0
- package/themeCssVarsAugmentation/index.d.ts +26 -0
- package/umd/material-ui.development.js +1211 -559
- package/umd/material-ui.production.min.js +20 -25
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
CssVarsTheme,
|
|
3
|
+
CssVarsPalette,
|
|
4
|
+
PaletteCommonChannel,
|
|
5
|
+
PaletteColorChannel,
|
|
6
|
+
PaletteTextChannel,
|
|
7
|
+
PaletteActionChannel,
|
|
8
|
+
} from '../styles/experimental_extendTheme';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Enhance the theme types to include new properties from the CssVarsProvider.
|
|
12
|
+
* The theme is typed with CSS variables in `styled`, `sx`, `useTheme`, etc.
|
|
13
|
+
*/
|
|
14
|
+
declare module '@mui/material/styles' {
|
|
15
|
+
// The palette must be extended in each node.
|
|
16
|
+
interface Theme extends Omit<CssVarsTheme, 'palette'> {}
|
|
17
|
+
|
|
18
|
+
// Extend the type that will be used in palette
|
|
19
|
+
interface CommonColors extends PaletteCommonChannel {}
|
|
20
|
+
interface PaletteColor extends PaletteColorChannel {}
|
|
21
|
+
interface TypeText extends PaletteTextChannel {}
|
|
22
|
+
interface TypeAction extends PaletteActionChannel {}
|
|
23
|
+
|
|
24
|
+
// The extended Palette should be in sync with `extendTheme`
|
|
25
|
+
interface Palette extends CssVarsPalette {}
|
|
26
|
+
}
|