@mui/material 7.3.3 → 7.3.5

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 (146) hide show
  1. package/AccordionSummary/accordionSummaryClasses.d.ts +1 -1
  2. package/Alert/alertClasses.d.ts +24 -24
  3. package/Breadcrumbs/BreadcrumbCollapsed.js +0 -2
  4. package/Button/buttonClasses.d.ts +33 -33
  5. package/ButtonGroup/buttonGroupClasses.d.ts +17 -17
  6. package/CHANGELOG.md +80 -0
  7. package/Chip/chipClasses.d.ts +26 -26
  8. package/CircularProgress/circularProgressClasses.d.ts +2 -2
  9. package/Collapse/Collapse.d.ts +31 -1
  10. package/Collapse/Collapse.js +73 -30
  11. package/DefaultPropsProvider/DefaultPropsProvider.d.ts +1 -1
  12. package/Dialog/dialogClasses.d.ts +2 -2
  13. package/Divider/dividerClasses.d.ts +1 -1
  14. package/Drawer/drawerClasses.d.ts +8 -8
  15. package/GlobalStyles/GlobalStyles.js +0 -2
  16. package/ImageListItemBar/imageListItemBarClasses.d.ts +4 -4
  17. package/InitColorSchemeScript/InitColorSchemeScript.d.ts +1 -2
  18. package/InitColorSchemeScript/InitColorSchemeScript.js +0 -2
  19. package/Input/inputClasses.d.ts +4 -4
  20. package/InputBase/inputBaseClasses.d.ts +5 -5
  21. package/LinearProgress/linearProgressClasses.d.ts +9 -9
  22. package/OutlinedInput/NotchedOutline.js +0 -2
  23. package/OutlinedInput/outlinedInputClasses.d.ts +4 -4
  24. package/PaginationItem/paginationItemClasses.d.ts +4 -4
  25. package/Radio/RadioButtonIcon.js +0 -2
  26. package/Select/selectClasses.d.ts +3 -3
  27. package/Slider/sliderClasses.d.ts +7 -7
  28. package/StepConnector/stepConnectorClasses.d.ts +2 -2
  29. package/TableSortLabel/tableSortLabelClasses.d.ts +2 -2
  30. package/Tabs/Tabs.js +0 -5
  31. package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +2 -2
  32. package/Zoom/Zoom.d.ts +1 -1
  33. package/Zoom/Zoom.js +1 -1
  34. package/esm/AccordionSummary/accordionSummaryClasses.d.ts +1 -1
  35. package/esm/Alert/alertClasses.d.ts +24 -24
  36. package/esm/Breadcrumbs/BreadcrumbCollapsed.js +0 -1
  37. package/esm/Button/buttonClasses.d.ts +33 -33
  38. package/esm/ButtonGroup/buttonGroupClasses.d.ts +17 -17
  39. package/esm/Chip/chipClasses.d.ts +26 -26
  40. package/esm/CircularProgress/circularProgressClasses.d.ts +2 -2
  41. package/esm/Collapse/Collapse.d.ts +31 -1
  42. package/esm/Collapse/Collapse.js +73 -30
  43. package/esm/DefaultPropsProvider/DefaultPropsProvider.d.ts +1 -1
  44. package/esm/Dialog/dialogClasses.d.ts +2 -2
  45. package/esm/Divider/dividerClasses.d.ts +1 -1
  46. package/esm/Drawer/drawerClasses.d.ts +8 -8
  47. package/esm/GlobalStyles/GlobalStyles.js +0 -1
  48. package/esm/ImageListItemBar/imageListItemBarClasses.d.ts +4 -4
  49. package/esm/InitColorSchemeScript/InitColorSchemeScript.d.ts +1 -2
  50. package/esm/InitColorSchemeScript/InitColorSchemeScript.js +0 -1
  51. package/esm/Input/inputClasses.d.ts +4 -4
  52. package/esm/InputBase/inputBaseClasses.d.ts +5 -5
  53. package/esm/LinearProgress/linearProgressClasses.d.ts +9 -9
  54. package/esm/OutlinedInput/NotchedOutline.js +0 -1
  55. package/esm/OutlinedInput/outlinedInputClasses.d.ts +4 -4
  56. package/esm/PaginationItem/paginationItemClasses.d.ts +4 -4
  57. package/esm/Radio/RadioButtonIcon.js +0 -1
  58. package/esm/Select/selectClasses.d.ts +3 -3
  59. package/esm/Slider/sliderClasses.d.ts +7 -7
  60. package/esm/StepConnector/stepConnectorClasses.d.ts +2 -2
  61. package/esm/TableSortLabel/tableSortLabelClasses.d.ts +2 -2
  62. package/esm/Tabs/Tabs.js +0 -5
  63. package/esm/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +2 -2
  64. package/esm/Zoom/Zoom.d.ts +1 -1
  65. package/esm/Zoom/Zoom.js +1 -1
  66. package/esm/index.js +1 -1
  67. package/esm/internal/svg-icons/Add.js +0 -1
  68. package/esm/internal/svg-icons/ArrowDownward.js +0 -1
  69. package/esm/internal/svg-icons/ArrowDropDown.js +0 -1
  70. package/esm/internal/svg-icons/Cancel.js +0 -1
  71. package/esm/internal/svg-icons/CheckBox.js +0 -1
  72. package/esm/internal/svg-icons/CheckBoxOutlineBlank.js +0 -1
  73. package/esm/internal/svg-icons/CheckCircle.js +0 -1
  74. package/esm/internal/svg-icons/Close.js +0 -1
  75. package/esm/internal/svg-icons/ErrorOutline.js +0 -1
  76. package/esm/internal/svg-icons/FirstPage.js +0 -1
  77. package/esm/internal/svg-icons/IndeterminateCheckBox.js +0 -1
  78. package/esm/internal/svg-icons/InfoOutlined.js +0 -1
  79. package/esm/internal/svg-icons/KeyboardArrowLeft.js +0 -1
  80. package/esm/internal/svg-icons/KeyboardArrowRight.js +0 -1
  81. package/esm/internal/svg-icons/LastPage.js +0 -1
  82. package/esm/internal/svg-icons/MoreHoriz.js +0 -1
  83. package/esm/internal/svg-icons/NavigateBefore.js +0 -1
  84. package/esm/internal/svg-icons/NavigateNext.js +0 -1
  85. package/esm/internal/svg-icons/Person.js +0 -1
  86. package/esm/internal/svg-icons/RadioButtonChecked.js +0 -1
  87. package/esm/internal/svg-icons/RadioButtonUnchecked.js +0 -1
  88. package/esm/internal/svg-icons/ReportProblemOutlined.js +0 -1
  89. package/esm/internal/svg-icons/Star.js +0 -1
  90. package/esm/internal/svg-icons/StarBorder.js +0 -1
  91. package/esm/internal/svg-icons/SuccessOutlined.js +0 -1
  92. package/esm/internal/svg-icons/Warning.js +0 -1
  93. package/esm/locale/caES.js +45 -42
  94. package/esm/styles/ThemeProvider.d.ts +1 -1
  95. package/esm/styles/ThemeProviderWithVars.d.ts +2 -3
  96. package/esm/styles/ThemeProviderWithVars.js +0 -1
  97. package/esm/styles/createTheme.d.ts +13 -5
  98. package/esm/styles/createThemeFoundation.d.ts +279 -0
  99. package/esm/styles/createThemeFoundation.js +37 -0
  100. package/esm/styles/createThemeNoVars.d.ts +3 -1
  101. package/esm/styles/createThemeWithVars.d.ts +23 -306
  102. package/esm/styles/index.d.ts +1 -1
  103. package/esm/version/index.js +2 -2
  104. package/esm/zero-styled/index.d.ts +1 -2
  105. package/esm/zero-styled/index.js +0 -1
  106. package/index.js +1 -1
  107. package/internal/svg-icons/Add.js +0 -2
  108. package/internal/svg-icons/ArrowDownward.js +0 -2
  109. package/internal/svg-icons/ArrowDropDown.js +0 -2
  110. package/internal/svg-icons/Cancel.js +0 -2
  111. package/internal/svg-icons/CheckBox.js +0 -2
  112. package/internal/svg-icons/CheckBoxOutlineBlank.js +0 -2
  113. package/internal/svg-icons/CheckCircle.js +0 -2
  114. package/internal/svg-icons/Close.js +0 -2
  115. package/internal/svg-icons/ErrorOutline.js +0 -2
  116. package/internal/svg-icons/FirstPage.js +0 -2
  117. package/internal/svg-icons/IndeterminateCheckBox.js +0 -2
  118. package/internal/svg-icons/InfoOutlined.js +0 -2
  119. package/internal/svg-icons/KeyboardArrowLeft.js +0 -2
  120. package/internal/svg-icons/KeyboardArrowRight.js +0 -2
  121. package/internal/svg-icons/LastPage.js +0 -2
  122. package/internal/svg-icons/MoreHoriz.js +0 -2
  123. package/internal/svg-icons/NavigateBefore.js +0 -2
  124. package/internal/svg-icons/NavigateNext.js +0 -2
  125. package/internal/svg-icons/Person.js +0 -2
  126. package/internal/svg-icons/RadioButtonChecked.js +0 -2
  127. package/internal/svg-icons/RadioButtonUnchecked.js +0 -2
  128. package/internal/svg-icons/ReportProblemOutlined.js +0 -2
  129. package/internal/svg-icons/Star.js +0 -2
  130. package/internal/svg-icons/StarBorder.js +0 -2
  131. package/internal/svg-icons/SuccessOutlined.js +0 -2
  132. package/internal/svg-icons/Warning.js +0 -2
  133. package/locale/caES.js +45 -42
  134. package/package.json +7 -7
  135. package/styles/ThemeProvider.d.ts +1 -1
  136. package/styles/ThemeProviderWithVars.d.ts +2 -3
  137. package/styles/ThemeProviderWithVars.js +0 -2
  138. package/styles/createTheme.d.ts +13 -5
  139. package/styles/createThemeFoundation.d.ts +279 -0
  140. package/styles/createThemeFoundation.js +5 -0
  141. package/styles/createThemeNoVars.d.ts +3 -1
  142. package/styles/createThemeWithVars.d.ts +23 -306
  143. package/styles/index.d.ts +1 -1
  144. package/version/index.js +2 -2
  145. package/zero-styled/index.d.ts +1 -2
  146. package/zero-styled/index.js +0 -2
@@ -1,245 +1,10 @@
1
- import { OverridableStringUnion } from '@mui/types';
2
- import { SxConfig, SxProps, CSSObject, ApplyStyles } from '@mui/system';
3
- import { ExtractTypographyTokens } from '@mui/system/cssVars';
4
1
  import { ThemeOptions, Theme } from "./createThemeNoVars.js";
5
- import { Palette, PaletteOptions } from "./createPalette.js";
6
- import { Shadows } from "./shadows.js";
7
- import { ZIndex } from "./zIndex.js";
8
2
  import { Components } from "./components.js";
3
+ import { DefaultColorScheme, ColorSchemeOverrides, ExtendedColorScheme, SupportedColorScheme, Opacity, Overlays, PaletteBackgroundChannel, PaletteCommonChannel, PaletteColorChannel, PaletteActionChannel, PaletteTextChannel, PaletteAlert, PaletteAppBar, PaletteAvatar, PaletteButton, PaletteChip, PaletteFilledInput, PaletteLinearProgress, PaletteSkeleton, PaletteSlider, PaletteSnackbarContent, PaletteSpeedDialAction, PaletteStepConnector, PaletteStepContent, PaletteSwitch, PaletteTableCell, PaletteTooltip, ColorSystemOptions, CssVarsPalette, ColorSystem, ThemeVars, ThemeCssVarOverrides, ThemeCssVar, CssVarsTheme, Shape, ShapeOptions } from "./createThemeFoundation.js";
9
4
 
10
- /**
11
- * default MD color-schemes
12
- */
13
- export type DefaultColorScheme = 'light' | 'dark';
14
-
15
- /**
16
- * The application can add more color-scheme by extending this interface via module augmentation
17
- *
18
- * Ex.
19
- * declare module @mui/material/styles {
20
- * interface ColorSchemeOverrides {
21
- * foo: true;
22
- * }
23
- * }
24
- *
25
- * // SupportedColorScheme = 'light' | 'dark' | 'foo';
26
- */
27
- export interface ColorSchemeOverrides {}
28
- export type ExtendedColorScheme = OverridableStringUnion<never, ColorSchemeOverrides>;
29
-
30
- /**
31
- * All color-schemes that the application has
32
- */
33
- export type SupportedColorScheme = DefaultColorScheme | ExtendedColorScheme;
34
- export interface Opacity {
35
- inputPlaceholder: number;
36
- inputUnderline: number;
37
- switchTrackDisabled: number;
38
- switchTrack: number;
39
- }
40
- export type Overlays = [string | undefined, string | undefined, string | undefined, string | undefined, string | undefined, string | undefined, string | undefined, string | undefined, string | undefined, string | undefined, string | undefined, string | undefined, string | undefined, string | undefined, string | undefined, string | undefined, string | undefined, string | undefined, string | undefined, string | undefined, string | undefined, string | undefined, string | undefined, string | undefined, string | undefined];
41
- export interface PaletteBackgroundChannel {
42
- defaultChannel: string;
43
- paperChannel: string;
44
- }
45
- export interface PaletteCommonChannel {
46
- background: string;
47
- backgroundChannel: string;
48
- onBackground: string;
49
- onBackgroundChannel: string;
50
- }
51
- export interface PaletteColorChannel {
52
- mainChannel: string;
53
- lightChannel: string;
54
- darkChannel: string;
55
- contrastTextChannel: string;
56
- }
57
- export interface PaletteActionChannel {
58
- activeChannel: string;
59
- selectedChannel: string;
60
- }
61
- export interface PaletteTextChannel {
62
- primaryChannel: string;
63
- secondaryChannel: string;
64
- }
65
- export interface PaletteAlert {
66
- errorColor: string;
67
- infoColor: string;
68
- successColor: string;
69
- warningColor: string;
70
- errorFilledBg: string;
71
- infoFilledBg: string;
72
- successFilledBg: string;
73
- warningFilledBg: string;
74
- errorFilledColor: string;
75
- infoFilledColor: string;
76
- successFilledColor: string;
77
- warningFilledColor: string;
78
- errorStandardBg: string;
79
- infoStandardBg: string;
80
- successStandardBg: string;
81
- warningStandardBg: string;
82
- errorIconColor: string;
83
- infoIconColor: string;
84
- successIconColor: string;
85
- warningIconColor: string;
86
- }
87
- export interface PaletteAppBar {
88
- defaultBg: string;
89
- darkBg: string;
90
- darkColor: string;
91
- }
92
- export interface PaletteAvatar {
93
- defaultBg: string;
94
- }
95
- export interface PaletteButton {
96
- inheritContainedBg: string;
97
- inheritContainedHoverBg: string;
98
- }
99
- export interface PaletteChip {
100
- defaultBorder: string;
101
- defaultAvatarColor: string;
102
- defaultIconColor: string;
103
- }
104
- export interface PaletteFilledInput {
105
- bg: string;
106
- hoverBg: string;
107
- disabledBg: string;
108
- }
109
- export interface PaletteLinearProgress {
110
- primaryBg: string;
111
- secondaryBg: string;
112
- errorBg: string;
113
- infoBg: string;
114
- successBg: string;
115
- warningBg: string;
116
- }
117
- export interface PaletteSkeleton {
118
- bg: string;
119
- }
120
- export interface PaletteSlider {
121
- primaryTrack: string;
122
- secondaryTrack: string;
123
- errorTrack: string;
124
- infoTrack: string;
125
- successTrack: string;
126
- warningTrack: string;
127
- }
128
- export interface PaletteSnackbarContent {
129
- bg: string;
130
- color: string;
131
- }
132
- export interface PaletteSpeedDialAction {
133
- fabHoverBg: string;
134
- }
135
- export interface PaletteStepConnector {
136
- border: string;
137
- }
138
- export interface PaletteStepContent {
139
- border: string;
140
- }
141
- export interface PaletteSwitch {
142
- defaultColor: string;
143
- defaultDisabledColor: string;
144
- primaryDisabledColor: string;
145
- secondaryDisabledColor: string;
146
- errorDisabledColor: string;
147
- infoDisabledColor: string;
148
- successDisabledColor: string;
149
- warningDisabledColor: string;
150
- }
151
- export interface PaletteTableCell {
152
- border: string;
153
- }
154
- export interface PaletteTooltip {
155
- bg: string;
156
- }
157
-
158
- // The Palette should be sync with `../themeCssVarsAugmentation/index.d.ts`
159
- export interface ColorSystemOptions {
160
- palette?: PaletteOptions & {
161
- background?: Partial<PaletteBackgroundChannel>;
162
- common?: Partial<PaletteCommonChannel>;
163
- primary?: Partial<PaletteColorChannel>;
164
- secondary?: Partial<PaletteColorChannel>;
165
- error?: Partial<PaletteColorChannel>;
166
- info?: Partial<PaletteColorChannel>;
167
- success?: Partial<PaletteColorChannel>;
168
- text?: Partial<PaletteTextChannel>;
169
- dividerChannel?: Partial<string>;
170
- action?: Partial<PaletteActionChannel>;
171
- Alert?: Partial<PaletteAlert>;
172
- AppBar?: Partial<PaletteAppBar>;
173
- Avatar?: Partial<PaletteAvatar>;
174
- Button?: Partial<PaletteButton>;
175
- Chip?: Partial<PaletteChip>;
176
- FilledInput?: Partial<PaletteFilledInput>;
177
- LinearProgress?: Partial<PaletteLinearProgress>;
178
- Skeleton?: Partial<PaletteSkeleton>;
179
- Slider?: Partial<PaletteSlider>;
180
- SnackbarContent?: Partial<PaletteSnackbarContent>;
181
- SpeedDialAction?: Partial<PaletteSpeedDialAction>;
182
- StepConnector?: Partial<PaletteStepConnector>;
183
- StepContent?: Partial<PaletteStepContent>;
184
- Switch?: Partial<PaletteSwitch>;
185
- TableCell?: Partial<PaletteTableCell>;
186
- Tooltip?: Partial<PaletteTooltip>;
187
- };
188
- opacity?: Partial<Opacity>;
189
- overlays?: Overlays;
190
- }
191
- export interface CssVarsPalette {
192
- common: PaletteCommonChannel;
193
- primary: PaletteColorChannel;
194
- secondary: PaletteColorChannel;
195
- error: PaletteColorChannel;
196
- info: PaletteColorChannel;
197
- success: PaletteColorChannel;
198
- warning: PaletteColorChannel;
199
- text: PaletteTextChannel;
200
- background: PaletteBackgroundChannel;
201
- dividerChannel: string;
202
- action: PaletteActionChannel;
203
- Alert: PaletteAlert;
204
- AppBar: PaletteAppBar;
205
- Avatar: PaletteAvatar;
206
- Button: PaletteButton;
207
- Chip: PaletteChip;
208
- FilledInput: PaletteFilledInput;
209
- LinearProgress: PaletteLinearProgress;
210
- Skeleton: PaletteSkeleton;
211
- Slider: PaletteSlider;
212
- SnackbarContent: PaletteSnackbarContent;
213
- SpeedDialAction: PaletteSpeedDialAction;
214
- StepConnector: PaletteStepConnector;
215
- StepContent: PaletteStepContent;
216
- Switch: PaletteSwitch;
217
- TableCell: PaletteTableCell;
218
- Tooltip: PaletteTooltip;
219
- }
220
- export interface ColorSystem {
221
- palette: Palette & CssVarsPalette;
222
- opacity: Opacity;
223
- overlays: Overlays;
224
- }
5
+ // Re-export all types from foundation to maintain backward compatibility
6
+ export type { DefaultColorScheme, ColorSchemeOverrides, ExtendedColorScheme, SupportedColorScheme, Opacity, Overlays, PaletteBackgroundChannel, PaletteCommonChannel, PaletteColorChannel, PaletteActionChannel, PaletteTextChannel, PaletteAlert, PaletteAppBar, PaletteAvatar, PaletteButton, PaletteChip, PaletteFilledInput, PaletteLinearProgress, PaletteSkeleton, PaletteSlider, PaletteSnackbarContent, PaletteSpeedDialAction, PaletteStepConnector, PaletteStepContent, PaletteSwitch, PaletteTableCell, PaletteTooltip, ColorSystemOptions, CssVarsPalette, ColorSystem, ThemeVars, ThemeCssVarOverrides, ThemeCssVar, CssVarsTheme, Shape, ShapeOptions };
225
7
  export interface CssVarsThemeOptions extends Omit<ThemeOptions, 'palette' | 'components'> {
226
- /**
227
- * @default 'light'
228
- */
229
- defaultColorScheme?: SupportedColorScheme;
230
- /**
231
- * Prefix of the generated CSS variables
232
- * @default 'mui'
233
- */
234
- cssVarPrefix?: string;
235
- /**
236
- * Theme components
237
- */
238
- components?: Components<Omit<Theme, 'components' | 'palette'> & CssVarsTheme>;
239
- /**
240
- * Color schemes configuration
241
- */
242
- colorSchemes?: Partial<Record<DefaultColorScheme, boolean | ColorSystemOptions>> & (ExtendedColorScheme extends string ? Record<ExtendedColorScheme, ColorSystemOptions> : {});
243
8
  /**
244
9
  * The strategy to generate CSS variables
245
10
  *
@@ -254,12 +19,10 @@ export interface CssVarsThemeOptions extends Omit<ThemeOptions, 'palette' | 'com
254
19
  */
255
20
  colorSchemeSelector?: 'media' | 'class' | 'data' | string;
256
21
  /**
257
- * The selector to generate the global CSS variables (non-color-scheme related)
258
- * @default ':root'
259
- * @example ':host' // (for shadow DOM)
260
- * @see https://mui.com/material-ui/customization/shadow-dom/#3-css-theme-variables-optional
22
+ * Prefix of the generated CSS variables
23
+ * @default 'mui'
261
24
  */
262
- rootSelector?: string;
25
+ cssVarPrefix?: string;
263
26
  /**
264
27
  * If `true`, the CSS color-scheme will not be set.
265
28
  * https://developer.mozilla.org/en-US/docs/Web/CSS/color-scheme
@@ -270,6 +33,13 @@ export interface CssVarsThemeOptions extends Omit<ThemeOptions, 'palette' | 'com
270
33
  * If `true`, the CSS relative color will be used.
271
34
  */
272
35
  nativeColor?: boolean;
36
+ /**
37
+ * The selector to generate the global CSS variables (non-color-scheme related)
38
+ * @default ':root'
39
+ * @example ':host' // (for shadow DOM)
40
+ * @see https://mui.com/material-ui/customization/shadow-dom/#3-css-theme-variables-optional
41
+ */
42
+ rootSelector?: string;
273
43
  /**
274
44
  * A function to determine if the key, value should be attached as CSS Variable
275
45
  * `keys` is an array that represents the object path keys.
@@ -278,71 +48,18 @@ export interface CssVarsThemeOptions extends Omit<ThemeOptions, 'palette' | 'com
278
48
  * value = 'var(--test)'
279
49
  */
280
50
  shouldSkipGeneratingVar?: (keys: string[], value: string | number) => boolean;
281
- }
282
-
283
- // should not include keys defined in `shouldSkipGeneratingVar` and have value typeof function
284
- export interface ThemeVars {
285
- font: ExtractTypographyTokens<Theme['typography']>;
286
- palette: Omit<ColorSystem['palette'], 'colorScheme' | 'mode' | 'contrastThreshold' | 'tonalOffset' | 'getContrastText' | 'augmentColor'>;
287
- opacity: Opacity;
288
- overlays: Overlays;
289
- shadows: Shadows;
290
- shape: Theme['shape'];
291
- spacing: string;
292
- zIndex: ZIndex;
293
- }
294
- type Split<T, K extends keyof T = keyof T> = K extends string | number ? { [k in K]: Exclude<T[K], undefined> } : never;
295
- type ConcatDeep<T> = T extends Record<string | number, infer V> ? keyof T extends string | number ? V extends string | number ? keyof T : keyof V extends string | number ? `${keyof T}-${ConcatDeep<Split<V>>}` : never : never : never;
296
-
297
- /**
298
- * Does not work for these cases:
299
- * - { borderRadius: string | number } // the value can't be a union
300
- * - { shadows: [string, string, ..., string] } // the value can't be an array
301
- */
302
- type NormalizeVars<T> = ConcatDeep<Split<T>>;
303
-
304
- // shut off automatic exporting for the Generics above
305
- export {};
306
- export interface ThemeCssVarOverrides {}
307
- export type ThemeCssVar = OverridableStringUnion<NormalizeVars<Omit<ThemeVars, 'overlays' | 'shadows' | 'shape'>> | 'shape-borderRadius' | 'shadows-0' | 'shadows-1' | 'shadows-2' | 'shadows-3' | 'shadows-4' | 'shadows-5' | 'shadows-6' | 'shadows-7' | 'shadows-8' | 'shadows-9' | 'shadows-10' | 'shadows-11' | 'shadows-12' | 'shadows-13' | 'shadows-14' | 'shadows-15' | 'shadows-16' | 'shadows-17' | 'shadows-18' | 'shadows-19' | 'shadows-20' | 'shadows-21' | 'shadows-22' | 'shadows-23' | 'shadows-24' | 'overlays-0' | 'overlays-1' | 'overlays-2' | 'overlays-3' | 'overlays-4' | 'overlays-5' | 'overlays-6' | 'overlays-7' | 'overlays-8' | 'overlays-9' | 'overlays-10' | 'overlays-11' | 'overlays-12' | 'overlays-13' | 'overlays-14' | 'overlays-15' | 'overlays-16' | 'overlays-17' | 'overlays-18' | 'overlays-19' | 'overlays-20' | 'overlays-21' | 'overlays-22' | 'overlays-23' | 'overlays-24', ThemeCssVarOverrides>;
308
-
309
- /**
310
- * Theme properties generated by extendTheme and CssVarsProvider
311
- */
312
- export interface CssVarsTheme extends ColorSystem {
313
- colorSchemes: Partial<Record<SupportedColorScheme, ColorSystem>>;
314
- rootSelector: string;
315
- colorSchemeSelector: 'media' | 'class' | 'data' | string;
316
- cssVarPrefix: string;
317
- defaultColorScheme: SupportedColorScheme;
318
- vars: ThemeVars;
319
- getCssVar: (field: ThemeCssVar, ...vars: ThemeCssVar[]) => string;
320
- getColorSchemeSelector: (colorScheme: SupportedColorScheme) => string;
321
- generateThemeVars: () => ThemeVars;
322
- generateStyleSheets: () => Array<Record<string, any>>;
323
- generateSpacing: () => Theme['spacing'];
324
-
325
- // Default theme tokens
326
- spacing: Theme['spacing'];
327
- breakpoints: Theme['breakpoints'];
328
- shape: Theme['shape'];
329
- typography: Theme['typography'];
330
- transitions: Theme['transitions'];
331
- shadows: Theme['shadows'];
332
- mixins: Theme['mixins'];
333
- zIndex: Theme['zIndex'];
334
- direction: Theme['direction'];
335
51
  /**
336
- * A function to determine if the key, value should be attached as CSS Variable
337
- * `keys` is an array that represents the object path keys.
338
- * Ex, if the theme is { foo: { bar: 'var(--test)' } }
339
- * then, keys = ['foo', 'bar']
340
- * value = 'var(--test)'
52
+ * @default 'light'
53
+ */
54
+ defaultColorScheme?: SupportedColorScheme;
55
+ /**
56
+ * Theme components
341
57
  */
342
- shouldSkipGeneratingVar: (keys: string[], value: string | number) => boolean;
343
- unstable_sxConfig: SxConfig;
344
- unstable_sx: (props: SxProps<CssVarsTheme>) => CSSObject;
345
- applyStyles: ApplyStyles<SupportedColorScheme>;
58
+ components?: Components<Omit<Theme, 'components' | 'palette'> & CssVarsTheme>;
59
+ /**
60
+ * Color schemes configuration
61
+ */
62
+ colorSchemes?: Partial<Record<DefaultColorScheme, boolean | ColorSystemOptions>> & (ExtendedColorScheme extends string ? Record<ExtendedColorScheme, ColorSystemOptions> : {});
346
63
  }
347
64
 
348
65
  /**
package/styles/index.d.ts CHANGED
@@ -59,7 +59,7 @@ export { default as withTheme } from "./withTheme.js";
59
59
  export * from "./ThemeProviderWithVars.js";
60
60
  export type { StorageManager } from '@mui/system/cssVars';
61
61
  export { default as extendTheme } from "./createThemeWithVars.js";
62
- export type { ColorSchemeOverrides, SupportedColorScheme, ColorSystem, CssVarsPalette, Opacity, Overlays, PaletteAlert, PaletteActionChannel, PaletteAppBar, PaletteAvatar, PaletteChip, PaletteColorChannel, PaletteCommonChannel, PaletteFilledInput, PaletteLinearProgress, PaletteSkeleton, PaletteSlider, PaletteSnackbarContent, PaletteSpeedDialAction, PaletteStepConnector, PaletteStepContent, PaletteSwitch, PaletteTableCell, PaletteTextChannel, PaletteTooltip, CssVarsThemeOptions, CssVarsTheme, ThemeVars, ThemeCssVar, ThemeCssVarOverrides, ColorSystemOptions } from "./createThemeWithVars.js";
62
+ export type { ColorSchemeOverrides, SupportedColorScheme, ColorSystem, CssVarsPalette, Opacity, Overlays, PaletteAlert, PaletteActionChannel, PaletteAppBar, PaletteAvatar, PaletteChip, PaletteColorChannel, PaletteCommonChannel, PaletteFilledInput, PaletteLinearProgress, PaletteSkeleton, PaletteSlider, PaletteSnackbarContent, PaletteSpeedDialAction, PaletteStepConnector, PaletteStepContent, PaletteSwitch, PaletteTableCell, PaletteTextChannel, PaletteTooltip, CssVarsThemeOptions, CssVarsTheme, ThemeVars, ThemeCssVar, ThemeCssVarOverrides, ColorSystemOptions, Shape, ShapeOptions } from "./createThemeWithVars.js";
63
63
  export { default as getOverlayAlpha } from "./getOverlayAlpha.js";
64
64
  export { default as shouldSkipGeneratingVar } from "./shouldSkipGeneratingVar.js";
65
65
 
package/version/index.js CHANGED
@@ -4,9 +4,9 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.version = exports.prerelease = exports.patch = exports.minor = exports.major = exports.default = void 0;
7
- const version = exports.version = "7.3.3";
7
+ const version = exports.version = "7.3.5";
8
8
  const major = exports.major = Number("7");
9
9
  const minor = exports.minor = Number("3");
10
- const patch = exports.patch = Number("3");
10
+ const patch = exports.patch = Number("5");
11
11
  const prerelease = exports.prerelease = undefined;
12
12
  var _default = exports.default = version;
@@ -1,4 +1,3 @@
1
- import * as React from 'react';
2
1
  import { Interpolation } from '@mui/system';
3
2
  import { extendSxProp } from '@mui/system/styleFunctionSx';
4
3
  import { Theme } from "../styles/createTheme.js";
@@ -7,6 +6,6 @@ export { css, keyframes } from '@mui/system';
7
6
  export { default as styled } from "../styles/styled.js";
8
7
  export declare function globalCss(styles: Interpolation<{
9
8
  theme: Theme;
10
- }>): (props: Record<string, any>) => React.JSX.Element;
9
+ }>): (props: Record<string, any>) => import("react/jsx-runtime").JSX.Element;
11
10
  export declare function internal_createExtendSxProp(): typeof extendSxProp;
12
11
  export { useTheme };
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
- var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
@@ -31,7 +30,6 @@ Object.defineProperty(exports, "useTheme", {
31
30
  return _useTheme.default;
32
31
  }
33
32
  });
34
- var React = _interopRequireWildcard(require("react"));
35
33
  var _styleFunctionSx = require("@mui/system/styleFunctionSx");
36
34
  var _useTheme = _interopRequireDefault(require("../styles/useTheme"));
37
35
  var _GlobalStyles = _interopRequireDefault(require("../GlobalStyles"));