@mui/material 7.3.2 → 7.3.4

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 (282) hide show
  1. package/CHANGELOG.md +86 -0
  2. package/CircularProgress/CircularProgress.d.ts +6 -0
  3. package/CircularProgress/CircularProgress.js +31 -4
  4. package/CircularProgress/circularProgressClasses.d.ts +2 -0
  5. package/CircularProgress/circularProgressClasses.js +1 -1
  6. package/Divider/Divider.js +1 -1
  7. package/MenuItem/MenuItem.js +1 -1
  8. package/SnackbarContent/SnackbarContent.js +1 -1
  9. package/TextField/TextField.js +1 -1
  10. package/esm/CircularProgress/CircularProgress.d.ts +6 -0
  11. package/esm/CircularProgress/CircularProgress.js +32 -5
  12. package/esm/CircularProgress/circularProgressClasses.d.ts +2 -0
  13. package/esm/CircularProgress/circularProgressClasses.js +1 -1
  14. package/esm/Divider/Divider.js +1 -1
  15. package/esm/MenuItem/MenuItem.js +1 -1
  16. package/esm/SnackbarContent/SnackbarContent.js +1 -1
  17. package/esm/TextField/TextField.js +1 -1
  18. package/esm/index.js +1 -1
  19. package/esm/locale/amET.d.ts +2 -0
  20. package/esm/locale/amET.js +73 -0
  21. package/esm/locale/arEG.d.ts +2 -0
  22. package/esm/locale/arEG.js +73 -0
  23. package/esm/locale/arSA.d.ts +2 -0
  24. package/esm/locale/arSA.js +73 -0
  25. package/esm/locale/arSD.d.ts +2 -0
  26. package/esm/locale/arSD.js +73 -0
  27. package/esm/locale/azAZ.d.ts +2 -0
  28. package/esm/locale/azAZ.js +77 -0
  29. package/esm/locale/beBY.d.ts +2 -0
  30. package/esm/locale/beBY.js +85 -0
  31. package/esm/locale/bgBG.d.ts +2 -0
  32. package/esm/locale/bgBG.js +70 -0
  33. package/esm/locale/bnBD.d.ts +2 -0
  34. package/esm/locale/bnBD.js +73 -0
  35. package/esm/locale/caES.d.ts +2 -0
  36. package/esm/locale/caES.js +70 -0
  37. package/esm/locale/csCZ.d.ts +2 -0
  38. package/esm/locale/csCZ.js +81 -0
  39. package/esm/locale/daDK.d.ts +2 -0
  40. package/esm/locale/daDK.js +73 -0
  41. package/esm/locale/deDE.d.ts +2 -0
  42. package/esm/locale/deDE.js +73 -0
  43. package/esm/locale/elGR.d.ts +2 -0
  44. package/esm/locale/elGR.js +75 -0
  45. package/esm/locale/enUS.d.ts +2 -0
  46. package/esm/locale/enUS.js +61 -0
  47. package/esm/locale/esES.d.ts +2 -0
  48. package/esm/locale/esES.js +73 -0
  49. package/esm/locale/etEE.d.ts +2 -0
  50. package/esm/locale/etEE.js +73 -0
  51. package/esm/locale/faIR.d.ts +2 -0
  52. package/esm/locale/faIR.js +78 -0
  53. package/esm/locale/fiFI.d.ts +2 -0
  54. package/esm/locale/fiFI.js +73 -0
  55. package/esm/locale/frFR.d.ts +2 -0
  56. package/esm/locale/frFR.js +73 -0
  57. package/esm/locale/heIL.d.ts +2 -0
  58. package/esm/locale/heIL.js +73 -0
  59. package/esm/locale/hiIN.d.ts +2 -0
  60. package/esm/locale/hiIN.js +73 -0
  61. package/esm/locale/hrHR.d.ts +2 -0
  62. package/esm/locale/hrHR.js +81 -0
  63. package/esm/locale/huHU.d.ts +2 -0
  64. package/esm/locale/huHU.js +70 -0
  65. package/esm/locale/hyAM.d.ts +2 -0
  66. package/esm/locale/hyAM.js +70 -0
  67. package/esm/locale/idID.d.ts +2 -0
  68. package/esm/locale/idID.js +70 -0
  69. package/esm/locale/index.d.ts +60 -82
  70. package/esm/locale/index.js +60 -4327
  71. package/esm/locale/isIS.d.ts +2 -0
  72. package/esm/locale/isIS.js +73 -0
  73. package/esm/locale/itIT.d.ts +2 -0
  74. package/esm/locale/itIT.js +73 -0
  75. package/esm/locale/jaJP.d.ts +2 -0
  76. package/esm/locale/jaJP.js +73 -0
  77. package/esm/locale/khKH.d.ts +2 -0
  78. package/esm/locale/khKH.js +73 -0
  79. package/esm/locale/kkKZ.d.ts +2 -0
  80. package/esm/locale/kkKZ.js +76 -0
  81. package/esm/locale/koKR.d.ts +2 -0
  82. package/esm/locale/koKR.js +73 -0
  83. package/esm/locale/kuCKB.d.ts +2 -0
  84. package/esm/locale/kuCKB.js +73 -0
  85. package/esm/locale/kuLatn.d.ts +2 -0
  86. package/esm/locale/kuLatn.js +73 -0
  87. package/esm/locale/mkMK.d.ts +2 -0
  88. package/esm/locale/mkMK.js +77 -0
  89. package/esm/locale/msMS.d.ts +2 -0
  90. package/esm/locale/msMS.js +77 -0
  91. package/esm/locale/myMY.d.ts +2 -0
  92. package/esm/locale/myMY.js +77 -0
  93. package/esm/locale/nbNO.d.ts +2 -0
  94. package/esm/locale/nbNO.js +73 -0
  95. package/esm/locale/neNP.d.ts +2 -0
  96. package/esm/locale/neNP.js +77 -0
  97. package/esm/locale/nlNL.d.ts +2 -0
  98. package/esm/locale/nlNL.js +73 -0
  99. package/esm/locale/nnNO.d.ts +2 -0
  100. package/esm/locale/nnNO.js +73 -0
  101. package/esm/locale/plPL.d.ts +2 -0
  102. package/esm/locale/plPL.js +82 -0
  103. package/esm/locale/psAF.d.ts +2 -0
  104. package/esm/locale/psAF.js +73 -0
  105. package/esm/locale/ptBR.d.ts +2 -0
  106. package/esm/locale/ptBR.js +73 -0
  107. package/esm/locale/ptPT.d.ts +2 -0
  108. package/esm/locale/ptPT.js +73 -0
  109. package/esm/locale/roRO.d.ts +2 -0
  110. package/esm/locale/roRO.js +73 -0
  111. package/esm/locale/ruRU.d.ts +2 -0
  112. package/esm/locale/ruRU.js +85 -0
  113. package/esm/locale/siLK.d.ts +2 -0
  114. package/esm/locale/siLK.js +73 -0
  115. package/esm/locale/skSK.d.ts +2 -0
  116. package/esm/locale/skSK.js +81 -0
  117. package/esm/locale/srRS.d.ts +2 -0
  118. package/esm/locale/srRS.js +81 -0
  119. package/esm/locale/svSE.d.ts +2 -0
  120. package/esm/locale/svSE.js +73 -0
  121. package/esm/locale/thTH.d.ts +2 -0
  122. package/esm/locale/thTH.js +73 -0
  123. package/esm/locale/tlTL.d.ts +2 -0
  124. package/esm/locale/tlTL.js +74 -0
  125. package/esm/locale/trTR.d.ts +2 -0
  126. package/esm/locale/trTR.js +73 -0
  127. package/esm/locale/ukUA.d.ts +2 -0
  128. package/esm/locale/ukUA.js +82 -0
  129. package/esm/locale/urPK.d.ts +2 -0
  130. package/esm/locale/urPK.js +73 -0
  131. package/esm/locale/utils/LocaleTextApi.d.ts +23 -0
  132. package/esm/locale/utils/LocaleTextApi.js +1 -0
  133. package/esm/locale/viVN.d.ts +2 -0
  134. package/esm/locale/viVN.js +73 -0
  135. package/esm/locale/zhCN.d.ts +2 -0
  136. package/esm/locale/zhCN.js +51 -0
  137. package/esm/locale/zhHK.d.ts +2 -0
  138. package/esm/locale/zhHK.js +51 -0
  139. package/esm/locale/zhTW.d.ts +2 -0
  140. package/esm/locale/zhTW.js +51 -0
  141. package/esm/styles/createColorScheme.js +2 -2
  142. package/esm/styles/createTheme.d.ts +13 -5
  143. package/esm/styles/createTheme.js +2 -2
  144. package/esm/styles/createThemeFoundation.d.ts +277 -0
  145. package/esm/styles/createThemeFoundation.js +37 -0
  146. package/esm/styles/createThemeNoVars.d.ts +1 -1
  147. package/esm/styles/createThemeWithVars.d.ts +23 -306
  148. package/esm/useAutocomplete/useAutocomplete.js +2 -2
  149. package/esm/version/index.js +2 -2
  150. package/index.js +1 -1
  151. package/locale/amET.d.ts +2 -0
  152. package/locale/amET.js +79 -0
  153. package/locale/arEG.d.ts +2 -0
  154. package/locale/arEG.js +79 -0
  155. package/locale/arSA.d.ts +2 -0
  156. package/locale/arSA.js +79 -0
  157. package/locale/arSD.d.ts +2 -0
  158. package/locale/arSD.js +79 -0
  159. package/locale/azAZ.d.ts +2 -0
  160. package/locale/azAZ.js +83 -0
  161. package/locale/beBY.d.ts +2 -0
  162. package/locale/beBY.js +91 -0
  163. package/locale/bgBG.d.ts +2 -0
  164. package/locale/bgBG.js +76 -0
  165. package/locale/bnBD.d.ts +2 -0
  166. package/locale/bnBD.js +79 -0
  167. package/locale/caES.d.ts +2 -0
  168. package/locale/caES.js +76 -0
  169. package/locale/csCZ.d.ts +2 -0
  170. package/locale/csCZ.js +87 -0
  171. package/locale/daDK.d.ts +2 -0
  172. package/locale/daDK.js +79 -0
  173. package/locale/deDE.d.ts +2 -0
  174. package/locale/deDE.js +79 -0
  175. package/locale/elGR.d.ts +2 -0
  176. package/locale/elGR.js +81 -0
  177. package/locale/enUS.d.ts +2 -0
  178. package/locale/enUS.js +67 -0
  179. package/locale/esES.d.ts +2 -0
  180. package/locale/esES.js +79 -0
  181. package/locale/etEE.d.ts +2 -0
  182. package/locale/etEE.js +79 -0
  183. package/locale/faIR.d.ts +2 -0
  184. package/locale/faIR.js +84 -0
  185. package/locale/fiFI.d.ts +2 -0
  186. package/locale/fiFI.js +79 -0
  187. package/locale/frFR.d.ts +2 -0
  188. package/locale/frFR.js +79 -0
  189. package/locale/heIL.d.ts +2 -0
  190. package/locale/heIL.js +79 -0
  191. package/locale/hiIN.d.ts +2 -0
  192. package/locale/hiIN.js +79 -0
  193. package/locale/hrHR.d.ts +2 -0
  194. package/locale/hrHR.js +87 -0
  195. package/locale/huHU.d.ts +2 -0
  196. package/locale/huHU.js +76 -0
  197. package/locale/hyAM.d.ts +2 -0
  198. package/locale/hyAM.js +76 -0
  199. package/locale/idID.d.ts +2 -0
  200. package/locale/idID.js +76 -0
  201. package/locale/index.d.ts +60 -82
  202. package/locale/index.js +660 -4328
  203. package/locale/isIS.d.ts +2 -0
  204. package/locale/isIS.js +79 -0
  205. package/locale/itIT.d.ts +2 -0
  206. package/locale/itIT.js +79 -0
  207. package/locale/jaJP.d.ts +2 -0
  208. package/locale/jaJP.js +79 -0
  209. package/locale/khKH.d.ts +2 -0
  210. package/locale/khKH.js +79 -0
  211. package/locale/kkKZ.d.ts +2 -0
  212. package/locale/kkKZ.js +82 -0
  213. package/locale/koKR.d.ts +2 -0
  214. package/locale/koKR.js +79 -0
  215. package/locale/kuCKB.d.ts +2 -0
  216. package/locale/kuCKB.js +79 -0
  217. package/locale/kuLatn.d.ts +2 -0
  218. package/locale/kuLatn.js +79 -0
  219. package/locale/mkMK.d.ts +2 -0
  220. package/locale/mkMK.js +83 -0
  221. package/locale/msMS.d.ts +2 -0
  222. package/locale/msMS.js +83 -0
  223. package/locale/myMY.d.ts +2 -0
  224. package/locale/myMY.js +83 -0
  225. package/locale/nbNO.d.ts +2 -0
  226. package/locale/nbNO.js +79 -0
  227. package/locale/neNP.d.ts +2 -0
  228. package/locale/neNP.js +83 -0
  229. package/locale/nlNL.d.ts +2 -0
  230. package/locale/nlNL.js +79 -0
  231. package/locale/nnNO.d.ts +2 -0
  232. package/locale/nnNO.js +79 -0
  233. package/locale/plPL.d.ts +2 -0
  234. package/locale/plPL.js +88 -0
  235. package/locale/psAF.d.ts +2 -0
  236. package/locale/psAF.js +79 -0
  237. package/locale/ptBR.d.ts +2 -0
  238. package/locale/ptBR.js +79 -0
  239. package/locale/ptPT.d.ts +2 -0
  240. package/locale/ptPT.js +79 -0
  241. package/locale/roRO.d.ts +2 -0
  242. package/locale/roRO.js +79 -0
  243. package/locale/ruRU.d.ts +2 -0
  244. package/locale/ruRU.js +91 -0
  245. package/locale/siLK.d.ts +2 -0
  246. package/locale/siLK.js +79 -0
  247. package/locale/skSK.d.ts +2 -0
  248. package/locale/skSK.js +87 -0
  249. package/locale/srRS.d.ts +2 -0
  250. package/locale/srRS.js +87 -0
  251. package/locale/svSE.d.ts +2 -0
  252. package/locale/svSE.js +79 -0
  253. package/locale/thTH.d.ts +2 -0
  254. package/locale/thTH.js +79 -0
  255. package/locale/tlTL.d.ts +2 -0
  256. package/locale/tlTL.js +80 -0
  257. package/locale/trTR.d.ts +2 -0
  258. package/locale/trTR.js +79 -0
  259. package/locale/ukUA.d.ts +2 -0
  260. package/locale/ukUA.js +88 -0
  261. package/locale/urPK.d.ts +2 -0
  262. package/locale/urPK.js +79 -0
  263. package/locale/utils/LocaleTextApi.d.ts +23 -0
  264. package/locale/utils/LocaleTextApi.js +5 -0
  265. package/locale/viVN.d.ts +2 -0
  266. package/locale/viVN.js +79 -0
  267. package/locale/zhCN.d.ts +2 -0
  268. package/locale/zhCN.js +57 -0
  269. package/locale/zhHK.d.ts +2 -0
  270. package/locale/zhHK.js +57 -0
  271. package/locale/zhTW.d.ts +2 -0
  272. package/locale/zhTW.js +57 -0
  273. package/package.json +8 -8
  274. package/styles/createColorScheme.js +2 -2
  275. package/styles/createTheme.d.ts +13 -5
  276. package/styles/createTheme.js +2 -2
  277. package/styles/createThemeFoundation.d.ts +277 -0
  278. package/styles/createThemeFoundation.js +5 -0
  279. package/styles/createThemeNoVars.d.ts +1 -1
  280. package/styles/createThemeWithVars.d.ts +23 -306
  281. package/useAutocomplete/useAutocomplete.js +2 -2
  282. package/version/index.js +2 -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 } 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 };
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
  /**
@@ -494,10 +494,10 @@ function useAutocomplete(props) {
494
494
  }, [componentName]);
495
495
  }
496
496
  React.useEffect(() => {
497
- if (filteredOptionsChanged) {
497
+ if (filteredOptionsChanged || popupOpen) {
498
498
  syncHighlightedIndex();
499
499
  }
500
- }, [syncHighlightedIndex, filteredOptionsChanged]);
500
+ }, [syncHighlightedIndex, filteredOptionsChanged, popupOpen]);
501
501
  const handleOpen = event => {
502
502
  if (open) {
503
503
  return;
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.2";
7
+ const version = exports.version = "7.3.4";
8
8
  const major = exports.major = Number("7");
9
9
  const minor = exports.minor = Number("3");
10
- const patch = exports.patch = Number("2");
10
+ const patch = exports.patch = Number("4");
11
11
  const prerelease = exports.prerelease = undefined;
12
12
  var _default = exports.default = version;