@mui/material 9.0.0-alpha.3 → 9.0.0-alpha.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 (302) hide show
  1. package/Accordion/Accordion.d.mts +0 -14
  2. package/Accordion/Accordion.d.ts +0 -14
  3. package/Accordion/Accordion.js +3 -25
  4. package/Accordion/Accordion.mjs +3 -25
  5. package/AccordionSummary/AccordionSummary.js +1 -1
  6. package/AccordionSummary/AccordionSummary.mjs +1 -1
  7. package/AccordionSummary/accordionSummaryClasses.d.mts +0 -5
  8. package/AccordionSummary/accordionSummaryClasses.d.ts +0 -5
  9. package/AccordionSummary/accordionSummaryClasses.js +1 -1
  10. package/AccordionSummary/accordionSummaryClasses.mjs +1 -1
  11. package/Alert/Alert.d.mts +0 -23
  12. package/Alert/Alert.d.ts +0 -23
  13. package/Alert/Alert.js +4 -36
  14. package/Alert/Alert.mjs +4 -36
  15. package/Alert/alertClasses.d.mts +0 -72
  16. package/Alert/alertClasses.d.ts +0 -72
  17. package/Alert/alertClasses.js +1 -1
  18. package/Alert/alertClasses.mjs +1 -1
  19. package/Autocomplete/Autocomplete.d.mts +10 -60
  20. package/Autocomplete/Autocomplete.d.ts +10 -60
  21. package/Autocomplete/Autocomplete.js +33 -99
  22. package/Autocomplete/Autocomplete.mjs +33 -99
  23. package/Avatar/Avatar.d.mts +0 -8
  24. package/Avatar/Avatar.d.ts +0 -8
  25. package/Avatar/Avatar.js +13 -35
  26. package/Avatar/Avatar.mjs +13 -35
  27. package/AvatarGroup/AvatarGroup.d.mts +0 -15
  28. package/AvatarGroup/AvatarGroup.d.ts +0 -15
  29. package/AvatarGroup/AvatarGroup.js +1 -18
  30. package/AvatarGroup/AvatarGroup.mjs +1 -18
  31. package/Backdrop/Backdrop.d.mts +1 -31
  32. package/Backdrop/Backdrop.d.ts +1 -31
  33. package/Backdrop/Backdrop.js +2 -42
  34. package/Backdrop/Backdrop.mjs +2 -42
  35. package/Badge/Badge.d.mts +0 -20
  36. package/Badge/Badge.d.ts +0 -20
  37. package/Badge/Badge.js +2 -35
  38. package/Badge/Badge.mjs +2 -35
  39. package/Button/Button.js +6 -6
  40. package/Button/Button.mjs +6 -6
  41. package/Button/buttonClasses.d.mts +0 -132
  42. package/Button/buttonClasses.d.ts +0 -132
  43. package/Button/buttonClasses.js +1 -1
  44. package/Button/buttonClasses.mjs +1 -1
  45. package/ButtonBase/ButtonBase.js +16 -2
  46. package/ButtonBase/ButtonBase.mjs +16 -2
  47. package/CHANGELOG.md +154 -0
  48. package/CircularProgress/CircularProgress.js +2 -2
  49. package/CircularProgress/CircularProgress.mjs +2 -2
  50. package/CircularProgress/circularProgressClasses.d.mts +0 -8
  51. package/CircularProgress/circularProgressClasses.d.ts +0 -8
  52. package/CircularProgress/circularProgressClasses.js +1 -1
  53. package/CircularProgress/circularProgressClasses.mjs +1 -1
  54. package/Divider/Divider.d.mts +0 -6
  55. package/Divider/Divider.d.ts +0 -6
  56. package/Divider/Divider.js +2 -18
  57. package/Divider/Divider.mjs +2 -18
  58. package/Divider/dividerClasses.d.mts +0 -4
  59. package/Divider/dividerClasses.d.ts +0 -4
  60. package/Divider/dividerClasses.js +1 -1
  61. package/Divider/dividerClasses.mjs +1 -1
  62. package/FormControlLabel/FormControlLabel.d.mts +1 -14
  63. package/FormControlLabel/FormControlLabel.d.ts +1 -14
  64. package/FormControlLabel/FormControlLabel.js +1 -13
  65. package/FormControlLabel/FormControlLabel.mjs +1 -13
  66. package/Input/Input.js +2 -1
  67. package/Input/Input.mjs +2 -1
  68. package/Menu/Menu.d.mts +0 -13
  69. package/Menu/Menu.d.ts +0 -13
  70. package/Menu/Menu.js +5 -44
  71. package/Menu/Menu.mjs +5 -44
  72. package/MenuItem/MenuItem.js +21 -1
  73. package/MenuItem/MenuItem.mjs +23 -1
  74. package/MenuList/MenuList.js +2 -4
  75. package/MenuList/MenuList.mjs +2 -4
  76. package/MobileStepper/MobileStepper.d.mts +0 -5
  77. package/MobileStepper/MobileStepper.d.ts +0 -5
  78. package/MobileStepper/MobileStepper.js +1 -10
  79. package/MobileStepper/MobileStepper.mjs +1 -10
  80. package/Popover/Popover.d.mts +4 -48
  81. package/Popover/Popover.d.ts +4 -48
  82. package/Popover/Popover.js +4 -64
  83. package/Popover/Popover.mjs +4 -64
  84. package/Popper/Popper.d.mts +0 -17
  85. package/Popper/Popper.d.ts +0 -17
  86. package/Popper/Popper.js +2 -26
  87. package/Popper/Popper.mjs +2 -26
  88. package/Popper/index.d.mts +1 -0
  89. package/Popper/index.d.ts +1 -0
  90. package/Popper/index.js +11 -2
  91. package/Popper/index.mjs +1 -0
  92. package/Select/SelectInput.js +50 -55
  93. package/Select/SelectInput.mjs +47 -52
  94. package/Select/index.d.mts +1 -0
  95. package/Select/index.d.ts +1 -0
  96. package/Select/index.js +12 -0
  97. package/Select/index.mjs +1 -0
  98. package/Select/utils/SelectFocusSourceContext.d.mts +4 -0
  99. package/Select/utils/SelectFocusSourceContext.d.ts +4 -0
  100. package/Select/utils/SelectFocusSourceContext.js +19 -0
  101. package/Select/utils/SelectFocusSourceContext.mjs +13 -0
  102. package/Select/utils/areEqualValues.d.mts +1 -0
  103. package/Select/utils/areEqualValues.d.ts +1 -0
  104. package/Select/utils/areEqualValues.js +14 -0
  105. package/Select/utils/areEqualValues.mjs +8 -0
  106. package/Select/utils/getOpenInteractionType.d.mts +1 -0
  107. package/Select/utils/getOpenInteractionType.d.ts +1 -0
  108. package/Select/utils/getOpenInteractionType.js +18 -0
  109. package/Select/utils/getOpenInteractionType.mjs +12 -0
  110. package/Select/utils/index.d.mts +4 -0
  111. package/Select/utils/index.d.ts +4 -0
  112. package/Select/utils/index.js +40 -0
  113. package/Select/utils/index.mjs +4 -0
  114. package/Select/utils/isEmpty.d.mts +1 -0
  115. package/Select/utils/isEmpty.d.ts +1 -0
  116. package/Select/utils/isEmpty.js +9 -0
  117. package/Select/utils/isEmpty.mjs +3 -0
  118. package/Slider/Slider.d.mts +109 -77
  119. package/Slider/Slider.d.ts +109 -77
  120. package/Slider/Slider.js +42 -119
  121. package/Slider/Slider.mjs +42 -119
  122. package/Slider/sliderClasses.d.mts +7 -7
  123. package/Slider/sliderClasses.d.ts +7 -7
  124. package/Slider/useSlider.js +50 -14
  125. package/Slider/useSlider.mjs +50 -14
  126. package/Snackbar/Snackbar.d.mts +1 -27
  127. package/Snackbar/Snackbar.d.ts +1 -27
  128. package/Snackbar/Snackbar.js +5 -58
  129. package/Snackbar/Snackbar.mjs +5 -58
  130. package/SpeedDial/SpeedDial.d.mts +0 -13
  131. package/SpeedDial/SpeedDial.d.ts +0 -13
  132. package/SpeedDial/SpeedDial.js +15 -40
  133. package/SpeedDial/SpeedDial.mjs +15 -40
  134. package/SpeedDialAction/SpeedDialAction.d.mts +0 -28
  135. package/SpeedDialAction/SpeedDialAction.d.ts +0 -28
  136. package/SpeedDialAction/SpeedDialAction.js +5 -46
  137. package/SpeedDialAction/SpeedDialAction.mjs +5 -46
  138. package/TablePagination/TablePagination.d.mts +1 -1
  139. package/TablePagination/TablePagination.d.ts +1 -1
  140. package/TablePagination/TablePagination.js +4 -2
  141. package/TablePagination/TablePagination.mjs +4 -2
  142. package/Tabs/Tabs.d.mts +2 -33
  143. package/Tabs/Tabs.d.ts +2 -33
  144. package/Tabs/Tabs.js +8 -38
  145. package/Tabs/Tabs.mjs +8 -38
  146. package/TextField/TextField.d.mts +6 -49
  147. package/TextField/TextField.d.ts +6 -49
  148. package/TextField/TextField.js +18 -53
  149. package/TextField/TextField.mjs +18 -53
  150. package/Tooltip/Tooltip.d.mts +1 -55
  151. package/Tooltip/Tooltip.d.ts +1 -55
  152. package/Tooltip/Tooltip.js +9 -87
  153. package/Tooltip/Tooltip.mjs +9 -87
  154. package/Typography/Typography.d.mts +0 -6
  155. package/Typography/Typography.d.ts +0 -6
  156. package/Typography/Typography.js +3 -19
  157. package/Typography/Typography.mjs +3 -19
  158. package/Typography/typographyClasses.d.mts +0 -5
  159. package/Typography/typographyClasses.d.ts +0 -5
  160. package/Typography/typographyClasses.js +1 -1
  161. package/Typography/typographyClasses.mjs +1 -1
  162. package/index.d.mts +0 -2
  163. package/index.d.ts +0 -2
  164. package/index.js +1 -9
  165. package/index.mjs +1 -2
  166. package/locale/amET.js +4 -1
  167. package/locale/amET.mjs +3 -1
  168. package/locale/arEG.js +4 -1
  169. package/locale/arEG.mjs +3 -1
  170. package/locale/arSA.js +4 -1
  171. package/locale/arSA.mjs +3 -1
  172. package/locale/arSD.js +4 -1
  173. package/locale/arSD.mjs +3 -1
  174. package/locale/beBY.js +4 -1
  175. package/locale/beBY.mjs +3 -1
  176. package/locale/bnBD.js +4 -1
  177. package/locale/bnBD.mjs +3 -1
  178. package/locale/caES.js +4 -1
  179. package/locale/caES.mjs +3 -1
  180. package/locale/csCZ.js +4 -1
  181. package/locale/csCZ.mjs +3 -1
  182. package/locale/daDK.js +4 -1
  183. package/locale/daDK.mjs +3 -1
  184. package/locale/deDE.js +4 -1
  185. package/locale/deDE.mjs +3 -1
  186. package/locale/elGR.js +4 -1
  187. package/locale/elGR.mjs +3 -1
  188. package/locale/esES.js +4 -1
  189. package/locale/esES.mjs +3 -1
  190. package/locale/etEE.js +4 -1
  191. package/locale/etEE.mjs +3 -1
  192. package/locale/faIR.js +4 -1
  193. package/locale/faIR.mjs +3 -1
  194. package/locale/fiFI.js +4 -1
  195. package/locale/fiFI.mjs +3 -1
  196. package/locale/frFR.js +4 -1
  197. package/locale/frFR.mjs +3 -1
  198. package/locale/heIL.js +4 -1
  199. package/locale/heIL.mjs +3 -1
  200. package/locale/hiIN.js +4 -1
  201. package/locale/hiIN.mjs +3 -1
  202. package/locale/hrHR.js +5 -1
  203. package/locale/hrHR.mjs +4 -1
  204. package/locale/isIS.js +4 -1
  205. package/locale/isIS.mjs +3 -1
  206. package/locale/itIT.js +4 -1
  207. package/locale/itIT.mjs +3 -1
  208. package/locale/jaJP.js +4 -1
  209. package/locale/jaJP.mjs +3 -1
  210. package/locale/khKH.js +4 -1
  211. package/locale/khKH.mjs +3 -1
  212. package/locale/kkKZ.js +4 -1
  213. package/locale/kkKZ.mjs +3 -1
  214. package/locale/koKR.js +4 -1
  215. package/locale/koKR.mjs +3 -1
  216. package/locale/kuCKB.js +4 -1
  217. package/locale/kuCKB.mjs +3 -1
  218. package/locale/kuLatn.js +4 -1
  219. package/locale/kuLatn.mjs +3 -1
  220. package/locale/mkMK.js +5 -1
  221. package/locale/mkMK.mjs +4 -1
  222. package/locale/msMS.js +5 -1
  223. package/locale/msMS.mjs +4 -1
  224. package/locale/myMY.js +5 -1
  225. package/locale/myMY.mjs +4 -1
  226. package/locale/nbNO.js +4 -1
  227. package/locale/nbNO.mjs +3 -1
  228. package/locale/neNP.js +5 -1
  229. package/locale/neNP.mjs +4 -1
  230. package/locale/nlNL.js +4 -1
  231. package/locale/nlNL.mjs +3 -1
  232. package/locale/nnNO.js +4 -1
  233. package/locale/nnNO.mjs +3 -1
  234. package/locale/plPL.js +4 -1
  235. package/locale/plPL.mjs +3 -1
  236. package/locale/psAF.js +4 -1
  237. package/locale/psAF.mjs +3 -1
  238. package/locale/ptBR.js +4 -1
  239. package/locale/ptBR.mjs +3 -1
  240. package/locale/ptPT.js +4 -1
  241. package/locale/ptPT.mjs +3 -1
  242. package/locale/roRO.js +4 -1
  243. package/locale/roRO.mjs +3 -1
  244. package/locale/ruRU.js +4 -1
  245. package/locale/ruRU.mjs +3 -1
  246. package/locale/siLK.js +4 -1
  247. package/locale/siLK.mjs +3 -1
  248. package/locale/skSK.js +4 -1
  249. package/locale/skSK.mjs +3 -1
  250. package/locale/srRS.js +5 -1
  251. package/locale/srRS.mjs +4 -1
  252. package/locale/svSE.js +4 -1
  253. package/locale/svSE.mjs +3 -1
  254. package/locale/thTH.js +4 -1
  255. package/locale/thTH.mjs +3 -1
  256. package/locale/tlTL.js +5 -1
  257. package/locale/tlTL.mjs +4 -1
  258. package/locale/trTR.js +4 -1
  259. package/locale/trTR.mjs +3 -1
  260. package/locale/ukUA.js +4 -1
  261. package/locale/ukUA.mjs +3 -1
  262. package/locale/urPK.js +4 -1
  263. package/locale/urPK.mjs +3 -1
  264. package/locale/utils/buildFormatNumber.d.mts +2 -0
  265. package/locale/utils/buildFormatNumber.d.ts +2 -0
  266. package/locale/utils/buildFormatNumber.js +23 -0
  267. package/locale/utils/buildFormatNumber.mjs +17 -0
  268. package/locale/viVN.js +4 -1
  269. package/locale/viVN.mjs +3 -1
  270. package/locale/zhCN.js +4 -1
  271. package/locale/zhCN.mjs +3 -1
  272. package/locale/zhHK.js +4 -1
  273. package/locale/zhHK.mjs +3 -1
  274. package/locale/zhTW.js +4 -1
  275. package/locale/zhTW.mjs +3 -1
  276. package/package.json +6 -20
  277. package/styles/components.d.mts +0 -5
  278. package/styles/components.d.ts +0 -5
  279. package/styles/overrides.d.mts +0 -2
  280. package/styles/overrides.d.ts +0 -2
  281. package/styles/props.d.mts +0 -2
  282. package/styles/props.d.ts +0 -2
  283. package/useAutocomplete/useAutocomplete.d.mts +0 -12
  284. package/useAutocomplete/useAutocomplete.d.ts +0 -12
  285. package/useAutocomplete/useAutocomplete.js +29 -28
  286. package/useAutocomplete/useAutocomplete.mjs +29 -28
  287. package/version/index.js +2 -2
  288. package/version/index.mjs +2 -2
  289. package/GridLegacy/GridLegacy.d.mts +0 -160
  290. package/GridLegacy/GridLegacy.d.ts +0 -160
  291. package/GridLegacy/GridLegacy.js +0 -601
  292. package/GridLegacy/GridLegacy.mjs +0 -588
  293. package/GridLegacy/GridLegacyContext.js +0 -17
  294. package/GridLegacy/GridLegacyContext.mjs +0 -12
  295. package/GridLegacy/gridLegacyClasses.d.mts +0 -48
  296. package/GridLegacy/gridLegacyClasses.d.ts +0 -48
  297. package/GridLegacy/gridLegacyClasses.js +0 -27
  298. package/GridLegacy/gridLegacyClasses.mjs +0 -19
  299. package/GridLegacy/index.d.mts +0 -4
  300. package/GridLegacy/index.d.ts +0 -4
  301. package/GridLegacy/index.js +0 -35
  302. package/GridLegacy/index.mjs +0 -3
package/locale/svSE.mjs CHANGED
@@ -1,3 +1,5 @@
1
+ import buildFormatNumber from "./utils/buildFormatNumber.mjs";
2
+ const formatNumber = buildFormatNumber('sv-SE');
1
3
  export const svSE = {
2
4
  components: {
3
5
  MuiBreadcrumbs: {
@@ -25,7 +27,7 @@ export const svSE = {
25
27
  from,
26
28
  to,
27
29
  count
28
- }) => `${from}–${to} av ${count !== -1 ? count : `fler än ${to}`}`
30
+ }) => `${formatNumber(from)}–${formatNumber(to)} av ${count !== -1 ? formatNumber(count) : `fler än ${formatNumber(to)}`}`
29
31
  }
30
32
  },
31
33
  MuiRating: {
package/locale/thTH.js CHANGED
@@ -1,9 +1,12 @@
1
1
  "use strict";
2
2
 
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
3
4
  Object.defineProperty(exports, "__esModule", {
4
5
  value: true
5
6
  });
6
7
  exports.thTH = void 0;
8
+ var _buildFormatNumber = _interopRequireDefault(require("./utils/buildFormatNumber"));
9
+ const formatNumber = (0, _buildFormatNumber.default)('th-TH');
7
10
  const thTH = exports.thTH = {
8
11
  components: {
9
12
  MuiBreadcrumbs: {
@@ -31,7 +34,7 @@ const thTH = exports.thTH = {
31
34
  from,
32
35
  to,
33
36
  count
34
- }) => `${from}–${to} จาก ${count !== -1 ? count : `มากกว่า ${to}`}`
37
+ }) => `${formatNumber(from)}–${formatNumber(to)} จาก ${count !== -1 ? formatNumber(count) : `มากกว่า ${formatNumber(to)}`}`
35
38
  }
36
39
  },
37
40
  MuiRating: {
package/locale/thTH.mjs CHANGED
@@ -1,3 +1,5 @@
1
+ import buildFormatNumber from "./utils/buildFormatNumber.mjs";
2
+ const formatNumber = buildFormatNumber('th-TH');
1
3
  export const thTH = {
2
4
  components: {
3
5
  MuiBreadcrumbs: {
@@ -25,7 +27,7 @@ export const thTH = {
25
27
  from,
26
28
  to,
27
29
  count
28
- }) => `${from}–${to} จาก ${count !== -1 ? count : `มากกว่า ${to}`}`
30
+ }) => `${formatNumber(from)}–${formatNumber(to)} จาก ${count !== -1 ? formatNumber(count) : `มากกว่า ${formatNumber(to)}`}`
29
31
  }
30
32
  },
31
33
  MuiRating: {
package/locale/tlTL.js CHANGED
@@ -1,9 +1,13 @@
1
1
  "use strict";
2
2
 
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
3
4
  Object.defineProperty(exports, "__esModule", {
4
5
  value: true
5
6
  });
6
7
  exports.tlTL = void 0;
8
+ var _buildFormatNumber = _interopRequireDefault(require("./utils/buildFormatNumber"));
9
+ const formatNumber = (0, _buildFormatNumber.default)('tl-TL');
10
+
7
11
  // Tagalog-Tagalog
8
12
  const tlTL = exports.tlTL = {
9
13
  components: {
@@ -32,7 +36,7 @@ const tlTL = exports.tlTL = {
32
36
  from,
33
37
  to,
34
38
  count
35
- }) => `${from}–${to} ng ${count !== -1 ? count : `higit sa ${to}`}`
39
+ }) => `${formatNumber(from)}–${formatNumber(to)} ng ${count !== -1 ? formatNumber(count) : `higit sa ${formatNumber(to)}`}`
36
40
  }
37
41
  },
38
42
  MuiRating: {
package/locale/tlTL.mjs CHANGED
@@ -1,3 +1,6 @@
1
+ import buildFormatNumber from "./utils/buildFormatNumber.mjs";
2
+ const formatNumber = buildFormatNumber('tl-TL');
3
+
1
4
  // Tagalog-Tagalog
2
5
  export const tlTL = {
3
6
  components: {
@@ -26,7 +29,7 @@ export const tlTL = {
26
29
  from,
27
30
  to,
28
31
  count
29
- }) => `${from}–${to} ng ${count !== -1 ? count : `higit sa ${to}`}`
32
+ }) => `${formatNumber(from)}–${formatNumber(to)} ng ${count !== -1 ? formatNumber(count) : `higit sa ${formatNumber(to)}`}`
30
33
  }
31
34
  },
32
35
  MuiRating: {
package/locale/trTR.js CHANGED
@@ -1,9 +1,12 @@
1
1
  "use strict";
2
2
 
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
3
4
  Object.defineProperty(exports, "__esModule", {
4
5
  value: true
5
6
  });
6
7
  exports.trTR = void 0;
8
+ var _buildFormatNumber = _interopRequireDefault(require("./utils/buildFormatNumber"));
9
+ const formatNumber = (0, _buildFormatNumber.default)('tr-TR');
7
10
  const trTR = exports.trTR = {
8
11
  components: {
9
12
  MuiBreadcrumbs: {
@@ -31,7 +34,7 @@ const trTR = exports.trTR = {
31
34
  from,
32
35
  to,
33
36
  count
34
- }) => `${from}-${to} / ${count !== -1 ? count : `${to}'den fazla`}`
37
+ }) => `${formatNumber(from)}-${formatNumber(to)} / ${count !== -1 ? formatNumber(count) : `${formatNumber(to)}'den fazla`}`
35
38
  }
36
39
  },
37
40
  MuiRating: {
package/locale/trTR.mjs CHANGED
@@ -1,3 +1,5 @@
1
+ import buildFormatNumber from "./utils/buildFormatNumber.mjs";
2
+ const formatNumber = buildFormatNumber('tr-TR');
1
3
  export const trTR = {
2
4
  components: {
3
5
  MuiBreadcrumbs: {
@@ -25,7 +27,7 @@ export const trTR = {
25
27
  from,
26
28
  to,
27
29
  count
28
- }) => `${from}-${to} / ${count !== -1 ? count : `${to}'den fazla`}`
30
+ }) => `${formatNumber(from)}-${formatNumber(to)} / ${count !== -1 ? formatNumber(count) : `${formatNumber(to)}'den fazla`}`
29
31
  }
30
32
  },
31
33
  MuiRating: {
package/locale/ukUA.js CHANGED
@@ -1,9 +1,12 @@
1
1
  "use strict";
2
2
 
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
3
4
  Object.defineProperty(exports, "__esModule", {
4
5
  value: true
5
6
  });
6
7
  exports.ukUA = void 0;
8
+ var _buildFormatNumber = _interopRequireDefault(require("./utils/buildFormatNumber"));
9
+ const formatNumber = (0, _buildFormatNumber.default)('uk-UA');
7
10
  const ukUA = exports.ukUA = {
8
11
  components: {
9
12
  MuiBreadcrumbs: {
@@ -31,7 +34,7 @@ const ukUA = exports.ukUA = {
31
34
  from,
32
35
  to,
33
36
  count
34
- }) => `${from}–${to} з ${count !== -1 ? count : `понад ${to}`}`
37
+ }) => `${formatNumber(from)}–${formatNumber(to)} з ${count !== -1 ? formatNumber(count) : `понад ${formatNumber(to)}`}`
35
38
  }
36
39
  },
37
40
  MuiRating: {
package/locale/ukUA.mjs CHANGED
@@ -1,3 +1,5 @@
1
+ import buildFormatNumber from "./utils/buildFormatNumber.mjs";
2
+ const formatNumber = buildFormatNumber('uk-UA');
1
3
  export const ukUA = {
2
4
  components: {
3
5
  MuiBreadcrumbs: {
@@ -25,7 +27,7 @@ export const ukUA = {
25
27
  from,
26
28
  to,
27
29
  count
28
- }) => `${from}–${to} з ${count !== -1 ? count : `понад ${to}`}`
30
+ }) => `${formatNumber(from)}–${formatNumber(to)} з ${count !== -1 ? formatNumber(count) : `понад ${formatNumber(to)}`}`
29
31
  }
30
32
  },
31
33
  MuiRating: {
package/locale/urPK.js CHANGED
@@ -1,9 +1,12 @@
1
1
  "use strict";
2
2
 
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
3
4
  Object.defineProperty(exports, "__esModule", {
4
5
  value: true
5
6
  });
6
7
  exports.urPK = void 0;
8
+ var _buildFormatNumber = _interopRequireDefault(require("./utils/buildFormatNumber"));
9
+ const formatNumber = (0, _buildFormatNumber.default)('ur-PK');
7
10
  const urPK = exports.urPK = {
8
11
  components: {
9
12
  MuiBreadcrumbs: {
@@ -31,7 +34,7 @@ const urPK = exports.urPK = {
31
34
  from,
32
35
  to,
33
36
  count
34
- }) => `${count !== -1 ? `${count} میں سے` : `${to} سے ذیادہ میں سے`} ${from} سے ${to} قطاریں`
37
+ }) => `${count !== -1 ? `${formatNumber(count)} میں سے` : `${formatNumber(to)} سے ذیادہ میں سے`} ${formatNumber(from)} سے ${formatNumber(to)} قطاریں`
35
38
  }
36
39
  },
37
40
  MuiRating: {
package/locale/urPK.mjs CHANGED
@@ -1,3 +1,5 @@
1
+ import buildFormatNumber from "./utils/buildFormatNumber.mjs";
2
+ const formatNumber = buildFormatNumber('ur-PK');
1
3
  export const urPK = {
2
4
  components: {
3
5
  MuiBreadcrumbs: {
@@ -25,7 +27,7 @@ export const urPK = {
25
27
  from,
26
28
  to,
27
29
  count
28
- }) => `${count !== -1 ? `${count} میں سے` : `${to} سے ذیادہ میں سے`} ${from} سے ${to} قطاریں`
30
+ }) => `${count !== -1 ? `${formatNumber(count)} میں سے` : `${formatNumber(to)} سے ذیادہ میں سے`} ${formatNumber(from)} سے ${formatNumber(to)} قطاریں`
29
31
  }
30
32
  },
31
33
  MuiRating: {
@@ -0,0 +1,2 @@
1
+ declare const buildFormatNumber: (locale: string) => (value: number) => string;
2
+ export default buildFormatNumber;
@@ -0,0 +1,2 @@
1
+ declare const buildFormatNumber: (locale: string) => (value: number) => string;
2
+ export default buildFormatNumber;
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ const buildFormatNumber = locale => {
8
+ let formatter;
9
+ if (typeof Intl !== 'undefined' && Intl.NumberFormat) {
10
+ try {
11
+ formatter = new Intl.NumberFormat(locale);
12
+ } catch {
13
+ // fallback to String()
14
+ }
15
+ }
16
+ return value => {
17
+ if (!Number.isFinite(value)) {
18
+ return String(value);
19
+ }
20
+ return formatter ? formatter.format(value) : String(value);
21
+ };
22
+ };
23
+ var _default = exports.default = buildFormatNumber;
@@ -0,0 +1,17 @@
1
+ const buildFormatNumber = locale => {
2
+ let formatter;
3
+ if (typeof Intl !== 'undefined' && Intl.NumberFormat) {
4
+ try {
5
+ formatter = new Intl.NumberFormat(locale);
6
+ } catch {
7
+ // fallback to String()
8
+ }
9
+ }
10
+ return value => {
11
+ if (!Number.isFinite(value)) {
12
+ return String(value);
13
+ }
14
+ return formatter ? formatter.format(value) : String(value);
15
+ };
16
+ };
17
+ export default buildFormatNumber;
package/locale/viVN.js CHANGED
@@ -1,9 +1,12 @@
1
1
  "use strict";
2
2
 
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
3
4
  Object.defineProperty(exports, "__esModule", {
4
5
  value: true
5
6
  });
6
7
  exports.viVN = void 0;
8
+ var _buildFormatNumber = _interopRequireDefault(require("./utils/buildFormatNumber"));
9
+ const formatNumber = (0, _buildFormatNumber.default)('vi-VN');
7
10
  const viVN = exports.viVN = {
8
11
  components: {
9
12
  MuiBreadcrumbs: {
@@ -31,7 +34,7 @@ const viVN = exports.viVN = {
31
34
  from,
32
35
  to,
33
36
  count
34
- }) => `${from}–${to} trong ${count !== -1 ? count : `nhiều hơn ${to}`}`
37
+ }) => `${formatNumber(from)}–${formatNumber(to)} trong ${count !== -1 ? formatNumber(count) : `nhiều hơn ${formatNumber(to)}`}`
35
38
  }
36
39
  },
37
40
  MuiRating: {
package/locale/viVN.mjs CHANGED
@@ -1,3 +1,5 @@
1
+ import buildFormatNumber from "./utils/buildFormatNumber.mjs";
2
+ const formatNumber = buildFormatNumber('vi-VN');
1
3
  export const viVN = {
2
4
  components: {
3
5
  MuiBreadcrumbs: {
@@ -25,7 +27,7 @@ export const viVN = {
25
27
  from,
26
28
  to,
27
29
  count
28
- }) => `${from}–${to} trong ${count !== -1 ? count : `nhiều hơn ${to}`}`
30
+ }) => `${formatNumber(from)}–${formatNumber(to)} trong ${count !== -1 ? formatNumber(count) : `nhiều hơn ${formatNumber(to)}`}`
29
31
  }
30
32
  },
31
33
  MuiRating: {
package/locale/zhCN.js CHANGED
@@ -1,9 +1,12 @@
1
1
  "use strict";
2
2
 
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
3
4
  Object.defineProperty(exports, "__esModule", {
4
5
  value: true
5
6
  });
6
7
  exports.zhCN = void 0;
8
+ var _buildFormatNumber = _interopRequireDefault(require("./utils/buildFormatNumber"));
9
+ const formatNumber = (0, _buildFormatNumber.default)('zh-CN');
7
10
  const zhCN = exports.zhCN = {
8
11
  components: {
9
12
  MuiBreadcrumbs: {
@@ -30,7 +33,7 @@ const zhCN = exports.zhCN = {
30
33
  from,
31
34
  to,
32
35
  count
33
- }) => `第 ${from} 条到第 ${to} 条,${count !== -1 ? `共 ${count} 条` : `至少 ${to} 条`}`
36
+ }) => `第 ${formatNumber(from)} 条到第 ${formatNumber(to)} 条,${count !== -1 ? `共 ${formatNumber(count)} 条` : `至少 ${formatNumber(to)} 条`}`
34
37
  }
35
38
  },
36
39
  MuiRating: {
package/locale/zhCN.mjs CHANGED
@@ -1,3 +1,5 @@
1
+ import buildFormatNumber from "./utils/buildFormatNumber.mjs";
2
+ const formatNumber = buildFormatNumber('zh-CN');
1
3
  export const zhCN = {
2
4
  components: {
3
5
  MuiBreadcrumbs: {
@@ -24,7 +26,7 @@ export const zhCN = {
24
26
  from,
25
27
  to,
26
28
  count
27
- }) => `第 ${from} 条到第 ${to} 条,${count !== -1 ? `共 ${count} 条` : `至少 ${to} 条`}`
29
+ }) => `第 ${formatNumber(from)} 条到第 ${formatNumber(to)} 条,${count !== -1 ? `共 ${formatNumber(count)} 条` : `至少 ${formatNumber(to)} 条`}`
28
30
  }
29
31
  },
30
32
  MuiRating: {
package/locale/zhHK.js CHANGED
@@ -1,9 +1,12 @@
1
1
  "use strict";
2
2
 
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
3
4
  Object.defineProperty(exports, "__esModule", {
4
5
  value: true
5
6
  });
6
7
  exports.zhHK = void 0;
8
+ var _buildFormatNumber = _interopRequireDefault(require("./utils/buildFormatNumber"));
9
+ const formatNumber = (0, _buildFormatNumber.default)('zh-HK');
7
10
  const zhHK = exports.zhHK = {
8
11
  components: {
9
12
  MuiBreadcrumbs: {
@@ -30,7 +33,7 @@ const zhHK = exports.zhHK = {
30
33
  from,
31
34
  to,
32
35
  count
33
- }) => `第 ${from} 項至第 ${to} 項,${count !== -1 ? `共 ${count} 項` : `超過 ${to} 項`}`
36
+ }) => `第 ${formatNumber(from)} 項至第 ${formatNumber(to)} 項,${count !== -1 ? `共 ${formatNumber(count)} 項` : `超過 ${formatNumber(to)} 項`}`
34
37
  }
35
38
  },
36
39
  MuiRating: {
package/locale/zhHK.mjs CHANGED
@@ -1,3 +1,5 @@
1
+ import buildFormatNumber from "./utils/buildFormatNumber.mjs";
2
+ const formatNumber = buildFormatNumber('zh-HK');
1
3
  export const zhHK = {
2
4
  components: {
3
5
  MuiBreadcrumbs: {
@@ -24,7 +26,7 @@ export const zhHK = {
24
26
  from,
25
27
  to,
26
28
  count
27
- }) => `第 ${from} 項至第 ${to} 項,${count !== -1 ? `共 ${count} 項` : `超過 ${to} 項`}`
29
+ }) => `第 ${formatNumber(from)} 項至第 ${formatNumber(to)} 項,${count !== -1 ? `共 ${formatNumber(count)} 項` : `超過 ${formatNumber(to)} 項`}`
28
30
  }
29
31
  },
30
32
  MuiRating: {
package/locale/zhTW.js CHANGED
@@ -1,9 +1,12 @@
1
1
  "use strict";
2
2
 
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
3
4
  Object.defineProperty(exports, "__esModule", {
4
5
  value: true
5
6
  });
6
7
  exports.zhTW = void 0;
8
+ var _buildFormatNumber = _interopRequireDefault(require("./utils/buildFormatNumber"));
9
+ const formatNumber = (0, _buildFormatNumber.default)('zh-TW');
7
10
  const zhTW = exports.zhTW = {
8
11
  components: {
9
12
  MuiBreadcrumbs: {
@@ -30,7 +33,7 @@ const zhTW = exports.zhTW = {
30
33
  from,
31
34
  to,
32
35
  count
33
- }) => `${from} ~ ${to} / ${count !== -1 ? count : `${to} 以上`}`
36
+ }) => `${formatNumber(from)} ~ ${formatNumber(to)} / ${count !== -1 ? formatNumber(count) : `${formatNumber(to)} 以上`}`
34
37
  }
35
38
  },
36
39
  MuiRating: {
package/locale/zhTW.mjs CHANGED
@@ -1,3 +1,5 @@
1
+ import buildFormatNumber from "./utils/buildFormatNumber.mjs";
2
+ const formatNumber = buildFormatNumber('zh-TW');
1
3
  export const zhTW = {
2
4
  components: {
3
5
  MuiBreadcrumbs: {
@@ -24,7 +26,7 @@ export const zhTW = {
24
26
  from,
25
27
  to,
26
28
  count
27
- }) => `${from} ~ ${to} / ${count !== -1 ? count : `${to} 以上`}`
29
+ }) => `${formatNumber(from)} ~ ${formatNumber(to)} / ${count !== -1 ? formatNumber(count) : `${formatNumber(to)} 以上`}`
28
30
  }
29
31
  },
30
32
  MuiRating: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/material",
3
- "version": "9.0.0-alpha.3",
3
+ "version": "9.0.0-alpha.4",
4
4
  "author": "MUI Team",
5
5
  "description": "Material UI is an open-source React component library that implements Google's Material Design. It's comprehensive and can be used in production out of the box.",
6
6
  "keywords": [
@@ -33,10 +33,10 @@
33
33
  "prop-types": "^15.8.1",
34
34
  "react-is": "^19.2.4",
35
35
  "react-transition-group": "^4.4.5",
36
- "@mui/core-downloads-tracker": "^9.0.0-alpha.3",
37
- "@mui/system": "9.0.0-alpha.3",
38
- "@mui/utils": "9.0.0-alpha.3",
39
- "@mui/types": "^9.0.0-alpha.3"
36
+ "@mui/core-downloads-tracker": "^9.0.0-alpha.4",
37
+ "@mui/types": "^9.0.0-alpha.3",
38
+ "@mui/system": "9.0.0-alpha.4",
39
+ "@mui/utils": "9.0.0-alpha.4"
40
40
  },
41
41
  "peerDependencies": {
42
42
  "@emotion/react": "^11.5.0",
@@ -44,7 +44,7 @@
44
44
  "@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0",
45
45
  "react": "^17.0.0 || ^18.0.0 || ^19.0.0",
46
46
  "react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0",
47
- "@mui/material-pigment-css": "9.0.0-alpha.3"
47
+ "@mui/material-pigment-css": "9.0.0-alpha.4"
48
48
  },
49
49
  "peerDependenciesMeta": {
50
50
  "@types/react": {
@@ -1034,20 +1034,6 @@
1034
1034
  "default": "./GlobalStyles/index.mjs"
1035
1035
  }
1036
1036
  },
1037
- "./GridLegacy": {
1038
- "import": {
1039
- "types": "./GridLegacy/index.d.mts",
1040
- "default": "./GridLegacy/index.mjs"
1041
- },
1042
- "require": {
1043
- "types": "./GridLegacy/index.d.ts",
1044
- "default": "./GridLegacy/index.js"
1045
- },
1046
- "default": {
1047
- "types": "./GridLegacy/index.d.mts",
1048
- "default": "./GridLegacy/index.mjs"
1049
- }
1050
- },
1051
1037
  "./Grow": {
1052
1038
  "import": {
1053
1039
  "types": "./Grow/index.d.mts",
@@ -227,11 +227,6 @@ export interface Components<Theme = unknown> {
227
227
  styleOverrides?: ComponentsOverrides<Theme>['MuiFormLabel'] | undefined;
228
228
  variants?: ComponentsVariants<Theme>['MuiFormLabel'] | undefined;
229
229
  } | undefined;
230
- MuiGridLegacy?: {
231
- defaultProps?: ComponentsProps['MuiGridLegacy'] | undefined;
232
- styleOverrides?: ComponentsOverrides<Theme>['MuiGridLegacy'] | undefined;
233
- variants?: ComponentsVariants<Theme>['MuiGridLegacy'] | undefined;
234
- } | undefined;
235
230
  MuiGrid?: {
236
231
  defaultProps?: ComponentsProps['MuiGrid'] | undefined;
237
232
  styleOverrides?: ComponentsOverrides<Theme>['MuiGrid'] | undefined;
@@ -227,11 +227,6 @@ export interface Components<Theme = unknown> {
227
227
  styleOverrides?: ComponentsOverrides<Theme>['MuiFormLabel'] | undefined;
228
228
  variants?: ComponentsVariants<Theme>['MuiFormLabel'] | undefined;
229
229
  } | undefined;
230
- MuiGridLegacy?: {
231
- defaultProps?: ComponentsProps['MuiGridLegacy'] | undefined;
232
- styleOverrides?: ComponentsOverrides<Theme>['MuiGridLegacy'] | undefined;
233
- variants?: ComponentsVariants<Theme>['MuiGridLegacy'] | undefined;
234
- } | undefined;
235
230
  MuiGrid?: {
236
231
  defaultProps?: ComponentsProps['MuiGrid'] | undefined;
237
232
  styleOverrides?: ComponentsOverrides<Theme>['MuiGrid'] | undefined;
@@ -44,7 +44,6 @@ import { FormControlLabelClassKey } from "../FormControlLabel/index.mjs";
44
44
  import { FormGroupClassKey } from "../FormGroup/index.mjs";
45
45
  import { FormHelperTextClassKey } from "../FormHelperText/index.mjs";
46
46
  import { FormLabelClassKey } from "../FormLabel/index.mjs";
47
- import { GridLegacyClassKey } from "../GridLegacy/index.mjs";
48
47
  import { GridClassKey } from "../Grid/index.mjs";
49
48
  import { IconButtonClassKey } from "../IconButton/index.mjs";
50
49
  import { IconClassKey } from "../Icon/index.mjs";
@@ -168,7 +167,6 @@ export interface ComponentNameToClassKey {
168
167
  MuiFormGroup: FormGroupClassKey;
169
168
  MuiFormHelperText: FormHelperTextClassKey;
170
169
  MuiFormLabel: FormLabelClassKey;
171
- MuiGridLegacy: GridLegacyClassKey;
172
170
  MuiGrid: GridClassKey;
173
171
  MuiIcon: IconClassKey;
174
172
  MuiIconButton: IconButtonClassKey;
@@ -44,7 +44,6 @@ import { FormControlLabelClassKey } from "../FormControlLabel/index.js";
44
44
  import { FormGroupClassKey } from "../FormGroup/index.js";
45
45
  import { FormHelperTextClassKey } from "../FormHelperText/index.js";
46
46
  import { FormLabelClassKey } from "../FormLabel/index.js";
47
- import { GridLegacyClassKey } from "../GridLegacy/index.js";
48
47
  import { GridClassKey } from "../Grid/index.js";
49
48
  import { IconButtonClassKey } from "../IconButton/index.js";
50
49
  import { IconClassKey } from "../Icon/index.js";
@@ -168,7 +167,6 @@ export interface ComponentNameToClassKey {
168
167
  MuiFormGroup: FormGroupClassKey;
169
168
  MuiFormHelperText: FormHelperTextClassKey;
170
169
  MuiFormLabel: FormLabelClassKey;
171
- MuiGridLegacy: GridLegacyClassKey;
172
170
  MuiGrid: GridClassKey;
173
171
  MuiIcon: IconClassKey;
174
172
  MuiIconButton: IconButtonClassKey;
@@ -42,7 +42,6 @@ import { FormControlProps } from "../FormControl/index.mjs";
42
42
  import { FormGroupProps } from "../FormGroup/index.mjs";
43
43
  import { FormHelperTextProps } from "../FormHelperText/index.mjs";
44
44
  import { FormLabelProps } from "../FormLabel/index.mjs";
45
- import { GridLegacyProps } from "../GridLegacy/index.mjs";
46
45
  import { GridProps } from "../Grid/index.mjs";
47
46
  import { IconButtonProps } from "../IconButton/index.mjs";
48
47
  import { IconProps } from "../Icon/index.mjs";
@@ -163,7 +162,6 @@ export interface ComponentsPropsList {
163
162
  MuiFormGroup: FormGroupProps;
164
163
  MuiFormHelperText: FormHelperTextProps;
165
164
  MuiFormLabel: FormLabelProps;
166
- MuiGridLegacy: GridLegacyProps;
167
165
  MuiGrid: GridProps;
168
166
  MuiImageList: ImageListProps;
169
167
  MuiImageListItem: ImageListItemProps;
package/styles/props.d.ts CHANGED
@@ -42,7 +42,6 @@ import { FormControlProps } from "../FormControl/index.js";
42
42
  import { FormGroupProps } from "../FormGroup/index.js";
43
43
  import { FormHelperTextProps } from "../FormHelperText/index.js";
44
44
  import { FormLabelProps } from "../FormLabel/index.js";
45
- import { GridLegacyProps } from "../GridLegacy/index.js";
46
45
  import { GridProps } from "../Grid/index.js";
47
46
  import { IconButtonProps } from "../IconButton/index.js";
48
47
  import { IconProps } from "../Icon/index.js";
@@ -163,7 +162,6 @@ export interface ComponentsPropsList {
163
162
  MuiFormGroup: FormGroupProps;
164
163
  MuiFormHelperText: FormHelperTextProps;
165
164
  MuiFormLabel: FormLabelProps;
166
- MuiGridLegacy: GridLegacyProps;
167
165
  MuiGrid: GridProps;
168
166
  MuiImageList: ImageListProps;
169
167
  MuiImageListItem: ImageListItemProps;
@@ -346,12 +346,6 @@ export interface UseAutocompleteReturnValue<Value, Multiple extends boolean | un
346
346
  * @returns props that should be spread on the popup icon
347
347
  */
348
348
  getPopupIndicatorProps: () => React.HTMLAttributes<HTMLButtonElement>;
349
- /**
350
- * @deprecated Use `getItemProps` instead
351
- *
352
- * A tag props getter.
353
- */
354
- getTagProps: AutocompleteGetTagProps;
355
349
  /**
356
350
  * Resolver for the listbox component's props.
357
351
  * @returns props that should be spread on the listbox component
@@ -406,12 +400,6 @@ export interface UseAutocompleteReturnValue<Value, Multiple extends boolean | un
406
400
  * Index of the focused item for the component.
407
401
  */
408
402
  focusedItem: number;
409
- /**
410
- * @deprecated Use `focusedItem` instead
411
- *
412
- * Index of the focused tag for the component.
413
- */
414
- focusedTag: number;
415
403
  /**
416
404
  * The options to render.
417
405
  * - If `groupBy` is provided, the options are grouped and represented as `AutocompleteGroupedOption<Value>[]`.
@@ -346,12 +346,6 @@ export interface UseAutocompleteReturnValue<Value, Multiple extends boolean | un
346
346
  * @returns props that should be spread on the popup icon
347
347
  */
348
348
  getPopupIndicatorProps: () => React.HTMLAttributes<HTMLButtonElement>;
349
- /**
350
- * @deprecated Use `getItemProps` instead
351
- *
352
- * A tag props getter.
353
- */
354
- getTagProps: AutocompleteGetTagProps;
355
349
  /**
356
350
  * Resolver for the listbox component's props.
357
351
  * @returns props that should be spread on the listbox component
@@ -406,12 +400,6 @@ export interface UseAutocompleteReturnValue<Value, Multiple extends boolean | un
406
400
  * Index of the focused item for the component.
407
401
  */
408
402
  focusedItem: number;
409
- /**
410
- * @deprecated Use `focusedItem` instead
411
- *
412
- * Index of the focused tag for the component.
413
- */
414
- focusedTag: number;
415
403
  /**
416
404
  * The options to render.
417
405
  * - If `groupBy` is provided, the options are grouped and represented as `AutocompleteGroupedOption<Value>[]`.