@mui/material 9.0.0-alpha.2 → 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 (352) 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 +26 -60
  20. package/Autocomplete/Autocomplete.d.ts +26 -60
  21. package/Autocomplete/Autocomplete.js +76 -119
  22. package/Autocomplete/Autocomplete.mjs +76 -119
  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/Box/Box.d.mts +1 -0
  40. package/Box/Box.d.ts +1 -0
  41. package/Button/Button.d.mts +1 -0
  42. package/Button/Button.d.ts +1 -0
  43. package/Button/Button.js +6 -6
  44. package/Button/Button.mjs +6 -6
  45. package/Button/buttonClasses.d.mts +0 -132
  46. package/Button/buttonClasses.d.ts +0 -132
  47. package/Button/buttonClasses.js +1 -1
  48. package/Button/buttonClasses.mjs +1 -1
  49. package/ButtonBase/ButtonBase.js +16 -2
  50. package/ButtonBase/ButtonBase.mjs +16 -2
  51. package/CHANGELOG.md +191 -0
  52. package/CardHeader/CardHeader.js +5 -1
  53. package/CardHeader/CardHeader.mjs +5 -1
  54. package/CircularProgress/CircularProgress.js +2 -2
  55. package/CircularProgress/CircularProgress.mjs +2 -2
  56. package/CircularProgress/circularProgressClasses.d.mts +0 -8
  57. package/CircularProgress/circularProgressClasses.d.ts +0 -8
  58. package/CircularProgress/circularProgressClasses.js +1 -1
  59. package/CircularProgress/circularProgressClasses.mjs +1 -1
  60. package/Divider/Divider.d.mts +1 -6
  61. package/Divider/Divider.d.ts +1 -6
  62. package/Divider/Divider.js +2 -18
  63. package/Divider/Divider.mjs +2 -18
  64. package/Divider/dividerClasses.d.mts +0 -4
  65. package/Divider/dividerClasses.d.ts +0 -4
  66. package/Divider/dividerClasses.js +1 -1
  67. package/Divider/dividerClasses.mjs +1 -1
  68. package/FormControlLabel/FormControlLabel.d.mts +1 -14
  69. package/FormControlLabel/FormControlLabel.d.ts +1 -14
  70. package/FormControlLabel/FormControlLabel.js +1 -13
  71. package/FormControlLabel/FormControlLabel.mjs +1 -13
  72. package/Input/Input.js +2 -1
  73. package/Input/Input.mjs +2 -1
  74. package/List/List.d.mts +1 -0
  75. package/List/List.d.ts +1 -0
  76. package/ListItemButton/ListItemButton.d.mts +1 -0
  77. package/ListItemButton/ListItemButton.d.ts +1 -0
  78. package/ListItemIcon/ListItemIcon.d.mts +1 -0
  79. package/ListItemIcon/ListItemIcon.d.ts +1 -0
  80. package/ListItemText/ListItemText.d.mts +1 -0
  81. package/ListItemText/ListItemText.d.ts +1 -0
  82. package/ListItemText/ListItemText.js +5 -1
  83. package/ListItemText/ListItemText.mjs +5 -1
  84. package/ListSubheader/ListSubheader.d.mts +1 -0
  85. package/ListSubheader/ListSubheader.d.ts +1 -0
  86. package/Menu/Menu.d.mts +0 -13
  87. package/Menu/Menu.d.ts +0 -13
  88. package/Menu/Menu.js +5 -44
  89. package/Menu/Menu.mjs +5 -44
  90. package/MenuItem/MenuItem.js +21 -1
  91. package/MenuItem/MenuItem.mjs +23 -1
  92. package/MenuList/MenuList.js +77 -109
  93. package/MenuList/MenuList.mjs +77 -109
  94. package/MobileStepper/MobileStepper.d.mts +0 -5
  95. package/MobileStepper/MobileStepper.d.ts +0 -5
  96. package/MobileStepper/MobileStepper.js +1 -10
  97. package/MobileStepper/MobileStepper.mjs +1 -10
  98. package/Paper/Paper.d.mts +1 -0
  99. package/Paper/Paper.d.ts +1 -0
  100. package/Popover/Popover.d.mts +4 -48
  101. package/Popover/Popover.d.ts +4 -48
  102. package/Popover/Popover.js +4 -64
  103. package/Popover/Popover.mjs +4 -64
  104. package/Popper/Popper.d.mts +0 -17
  105. package/Popper/Popper.d.ts +0 -17
  106. package/Popper/Popper.js +2 -26
  107. package/Popper/Popper.mjs +2 -26
  108. package/Popper/index.d.mts +1 -0
  109. package/Popper/index.d.ts +1 -0
  110. package/Popper/index.js +11 -2
  111. package/Popper/index.mjs +1 -0
  112. package/Select/SelectInput.js +50 -55
  113. package/Select/SelectInput.mjs +47 -52
  114. package/Select/index.d.mts +1 -0
  115. package/Select/index.d.ts +1 -0
  116. package/Select/index.js +12 -0
  117. package/Select/index.mjs +1 -0
  118. package/Select/utils/SelectFocusSourceContext.d.mts +4 -0
  119. package/Select/utils/SelectFocusSourceContext.d.ts +4 -0
  120. package/Select/utils/SelectFocusSourceContext.js +19 -0
  121. package/Select/utils/SelectFocusSourceContext.mjs +13 -0
  122. package/Select/utils/areEqualValues.d.mts +1 -0
  123. package/Select/utils/areEqualValues.d.ts +1 -0
  124. package/Select/utils/areEqualValues.js +14 -0
  125. package/Select/utils/areEqualValues.mjs +8 -0
  126. package/Select/utils/getOpenInteractionType.d.mts +1 -0
  127. package/Select/utils/getOpenInteractionType.d.ts +1 -0
  128. package/Select/utils/getOpenInteractionType.js +18 -0
  129. package/Select/utils/getOpenInteractionType.mjs +12 -0
  130. package/Select/utils/index.d.mts +4 -0
  131. package/Select/utils/index.d.ts +4 -0
  132. package/Select/utils/index.js +40 -0
  133. package/Select/utils/index.mjs +4 -0
  134. package/Select/utils/isEmpty.d.mts +1 -0
  135. package/Select/utils/isEmpty.d.ts +1 -0
  136. package/Select/utils/isEmpty.js +9 -0
  137. package/Select/utils/isEmpty.mjs +3 -0
  138. package/Slider/Slider.d.mts +109 -77
  139. package/Slider/Slider.d.ts +109 -77
  140. package/Slider/Slider.js +42 -119
  141. package/Slider/Slider.mjs +42 -119
  142. package/Slider/sliderClasses.d.mts +7 -7
  143. package/Slider/sliderClasses.d.ts +7 -7
  144. package/Slider/useSlider.js +50 -14
  145. package/Slider/useSlider.mjs +50 -14
  146. package/Snackbar/Snackbar.d.mts +1 -27
  147. package/Snackbar/Snackbar.d.ts +1 -27
  148. package/Snackbar/Snackbar.js +5 -58
  149. package/Snackbar/Snackbar.mjs +5 -58
  150. package/SpeedDial/SpeedDial.d.mts +0 -13
  151. package/SpeedDial/SpeedDial.d.ts +0 -13
  152. package/SpeedDial/SpeedDial.js +15 -40
  153. package/SpeedDial/SpeedDial.mjs +15 -40
  154. package/SpeedDialAction/SpeedDialAction.d.mts +0 -28
  155. package/SpeedDialAction/SpeedDialAction.d.ts +0 -28
  156. package/SpeedDialAction/SpeedDialAction.js +5 -46
  157. package/SpeedDialAction/SpeedDialAction.mjs +5 -46
  158. package/Step/Step.js +7 -5
  159. package/Step/Step.mjs +7 -5
  160. package/StepButton/StepButton.js +16 -6
  161. package/StepButton/StepButton.mjs +16 -6
  162. package/StepConnector/StepConnector.js +2 -2
  163. package/StepConnector/StepConnector.mjs +2 -2
  164. package/StepContent/StepContent.js +2 -2
  165. package/StepContent/StepContent.mjs +2 -2
  166. package/StepLabel/StepLabel.js +2 -2
  167. package/StepLabel/StepLabel.mjs +2 -2
  168. package/Stepper/Stepper.js +44 -7
  169. package/Stepper/Stepper.mjs +44 -7
  170. package/Stepper/StepperContext.d.mts +7 -0
  171. package/Stepper/StepperContext.d.ts +7 -0
  172. package/Stepper/StepperContext.js +2 -1
  173. package/Stepper/StepperContext.mjs +1 -0
  174. package/Stepper/index.d.mts +0 -1
  175. package/Stepper/index.d.ts +0 -1
  176. package/Tab/Tab.js +0 -1
  177. package/Tab/Tab.mjs +0 -1
  178. package/TablePagination/TablePagination.d.mts +1 -1
  179. package/TablePagination/TablePagination.d.ts +1 -1
  180. package/TablePagination/TablePagination.js +4 -2
  181. package/TablePagination/TablePagination.mjs +4 -2
  182. package/Tabs/Tabs.d.mts +2 -33
  183. package/Tabs/Tabs.d.ts +2 -33
  184. package/Tabs/Tabs.js +54 -135
  185. package/Tabs/Tabs.mjs +54 -135
  186. package/TextField/TextField.d.mts +6 -49
  187. package/TextField/TextField.d.ts +6 -49
  188. package/TextField/TextField.js +18 -53
  189. package/TextField/TextField.mjs +18 -53
  190. package/Tooltip/Tooltip.d.mts +1 -55
  191. package/Tooltip/Tooltip.d.ts +1 -55
  192. package/Tooltip/Tooltip.js +9 -87
  193. package/Tooltip/Tooltip.mjs +9 -87
  194. package/Typography/Typography.d.mts +1 -6
  195. package/Typography/Typography.d.ts +1 -6
  196. package/Typography/Typography.js +3 -19
  197. package/Typography/Typography.mjs +3 -19
  198. package/Typography/typographyClasses.d.mts +0 -5
  199. package/Typography/typographyClasses.d.ts +0 -5
  200. package/Typography/typographyClasses.js +1 -1
  201. package/Typography/typographyClasses.mjs +1 -1
  202. package/index.d.mts +0 -2
  203. package/index.d.ts +0 -2
  204. package/index.js +1 -9
  205. package/index.mjs +1 -2
  206. package/locale/amET.js +4 -1
  207. package/locale/amET.mjs +3 -1
  208. package/locale/arEG.js +4 -1
  209. package/locale/arEG.mjs +3 -1
  210. package/locale/arSA.js +4 -1
  211. package/locale/arSA.mjs +3 -1
  212. package/locale/arSD.js +4 -1
  213. package/locale/arSD.mjs +3 -1
  214. package/locale/beBY.js +4 -1
  215. package/locale/beBY.mjs +3 -1
  216. package/locale/bnBD.js +4 -1
  217. package/locale/bnBD.mjs +3 -1
  218. package/locale/caES.js +4 -1
  219. package/locale/caES.mjs +3 -1
  220. package/locale/csCZ.js +4 -1
  221. package/locale/csCZ.mjs +3 -1
  222. package/locale/daDK.js +4 -1
  223. package/locale/daDK.mjs +3 -1
  224. package/locale/deDE.js +4 -1
  225. package/locale/deDE.mjs +3 -1
  226. package/locale/elGR.js +4 -1
  227. package/locale/elGR.mjs +3 -1
  228. package/locale/esES.js +4 -1
  229. package/locale/esES.mjs +3 -1
  230. package/locale/etEE.js +4 -1
  231. package/locale/etEE.mjs +3 -1
  232. package/locale/faIR.js +4 -1
  233. package/locale/faIR.mjs +3 -1
  234. package/locale/fiFI.js +4 -1
  235. package/locale/fiFI.mjs +3 -1
  236. package/locale/frFR.js +4 -1
  237. package/locale/frFR.mjs +3 -1
  238. package/locale/heIL.js +4 -1
  239. package/locale/heIL.mjs +3 -1
  240. package/locale/hiIN.js +4 -1
  241. package/locale/hiIN.mjs +3 -1
  242. package/locale/hrHR.js +5 -1
  243. package/locale/hrHR.mjs +4 -1
  244. package/locale/isIS.js +4 -1
  245. package/locale/isIS.mjs +3 -1
  246. package/locale/itIT.js +4 -1
  247. package/locale/itIT.mjs +3 -1
  248. package/locale/jaJP.js +4 -1
  249. package/locale/jaJP.mjs +3 -1
  250. package/locale/khKH.js +4 -1
  251. package/locale/khKH.mjs +3 -1
  252. package/locale/kkKZ.js +4 -1
  253. package/locale/kkKZ.mjs +3 -1
  254. package/locale/koKR.js +4 -1
  255. package/locale/koKR.mjs +3 -1
  256. package/locale/kuCKB.js +4 -1
  257. package/locale/kuCKB.mjs +3 -1
  258. package/locale/kuLatn.js +4 -1
  259. package/locale/kuLatn.mjs +3 -1
  260. package/locale/mkMK.js +5 -1
  261. package/locale/mkMK.mjs +4 -1
  262. package/locale/msMS.js +5 -1
  263. package/locale/msMS.mjs +4 -1
  264. package/locale/myMY.js +5 -1
  265. package/locale/myMY.mjs +4 -1
  266. package/locale/nbNO.js +4 -1
  267. package/locale/nbNO.mjs +3 -1
  268. package/locale/neNP.js +5 -1
  269. package/locale/neNP.mjs +4 -1
  270. package/locale/nlNL.js +4 -1
  271. package/locale/nlNL.mjs +3 -1
  272. package/locale/nnNO.js +4 -1
  273. package/locale/nnNO.mjs +3 -1
  274. package/locale/plPL.js +4 -1
  275. package/locale/plPL.mjs +3 -1
  276. package/locale/psAF.js +4 -1
  277. package/locale/psAF.mjs +3 -1
  278. package/locale/ptBR.js +4 -1
  279. package/locale/ptBR.mjs +3 -1
  280. package/locale/ptPT.js +4 -1
  281. package/locale/ptPT.mjs +3 -1
  282. package/locale/roRO.js +4 -1
  283. package/locale/roRO.mjs +3 -1
  284. package/locale/ruRU.js +4 -1
  285. package/locale/ruRU.mjs +3 -1
  286. package/locale/siLK.js +4 -1
  287. package/locale/siLK.mjs +3 -1
  288. package/locale/skSK.js +4 -1
  289. package/locale/skSK.mjs +3 -1
  290. package/locale/srRS.js +5 -1
  291. package/locale/srRS.mjs +4 -1
  292. package/locale/svSE.js +4 -1
  293. package/locale/svSE.mjs +3 -1
  294. package/locale/thTH.js +4 -1
  295. package/locale/thTH.mjs +3 -1
  296. package/locale/tlTL.js +5 -1
  297. package/locale/tlTL.mjs +4 -1
  298. package/locale/trTR.js +4 -1
  299. package/locale/trTR.mjs +3 -1
  300. package/locale/ukUA.js +4 -1
  301. package/locale/ukUA.mjs +3 -1
  302. package/locale/urPK.js +4 -1
  303. package/locale/urPK.mjs +3 -1
  304. package/locale/utils/buildFormatNumber.d.mts +2 -0
  305. package/locale/utils/buildFormatNumber.d.ts +2 -0
  306. package/locale/utils/buildFormatNumber.js +23 -0
  307. package/locale/utils/buildFormatNumber.mjs +17 -0
  308. package/locale/viVN.js +4 -1
  309. package/locale/viVN.mjs +3 -1
  310. package/locale/zhCN.js +4 -1
  311. package/locale/zhCN.mjs +3 -1
  312. package/locale/zhHK.js +4 -1
  313. package/locale/zhHK.mjs +3 -1
  314. package/locale/zhTW.js +4 -1
  315. package/locale/zhTW.mjs +3 -1
  316. package/package.json +236 -236
  317. package/styles/components.d.mts +0 -5
  318. package/styles/components.d.ts +0 -5
  319. package/styles/overrides.d.mts +0 -2
  320. package/styles/overrides.d.ts +0 -2
  321. package/styles/props.d.mts +0 -2
  322. package/styles/props.d.ts +0 -2
  323. package/themeCssVarsAugmentation/index.js +5 -0
  324. package/themeCssVarsAugmentation/index.mjs +5 -0
  325. package/useAutocomplete/useAutocomplete.d.mts +0 -12
  326. package/useAutocomplete/useAutocomplete.d.ts +0 -12
  327. package/useAutocomplete/useAutocomplete.js +53 -28
  328. package/useAutocomplete/useAutocomplete.mjs +53 -28
  329. package/utils/index.d.mts +2 -0
  330. package/utils/index.d.ts +2 -0
  331. package/utils/index.js +14 -0
  332. package/utils/index.mjs +2 -0
  333. package/utils/useRovingTabIndex.d.mts +2 -0
  334. package/utils/useRovingTabIndex.d.ts +2 -0
  335. package/utils/useRovingTabIndex.js +9 -0
  336. package/utils/useRovingTabIndex.mjs +2 -0
  337. package/version/index.js +2 -2
  338. package/version/index.mjs +2 -2
  339. package/GridLegacy/GridLegacy.d.mts +0 -160
  340. package/GridLegacy/GridLegacy.d.ts +0 -160
  341. package/GridLegacy/GridLegacy.js +0 -601
  342. package/GridLegacy/GridLegacy.mjs +0 -588
  343. package/GridLegacy/GridLegacyContext.js +0 -17
  344. package/GridLegacy/GridLegacyContext.mjs +0 -12
  345. package/GridLegacy/gridLegacyClasses.d.mts +0 -48
  346. package/GridLegacy/gridLegacyClasses.d.ts +0 -48
  347. package/GridLegacy/gridLegacyClasses.js +0 -27
  348. package/GridLegacy/gridLegacyClasses.mjs +0 -19
  349. package/GridLegacy/index.d.mts +0 -4
  350. package/GridLegacy/index.d.ts +0 -4
  351. package/GridLegacy/index.js +0 -35
  352. package/GridLegacy/index.mjs +0 -3
@@ -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;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -0,0 +1,5 @@
1
+ export {};
2
+ /**
3
+ * Enhance the theme types to include new properties from the CssVarsProvider.
4
+ * The theme is typed with CSS variables in `styled`, `sx`, `useTheme`, etc.
5
+ */
@@ -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>[]`.
@@ -64,6 +64,7 @@ const defaultFilterOptions = createFilterOptions();
64
64
  // Number of options to jump in list box when `Page Up` and `Page Down` keys are used.
65
65
  const pageSize = 5;
66
66
  const defaultIsActiveElementInListbox = listboxRef => listboxRef.current !== null && listboxRef.current.parentElement?.contains(document.activeElement);
67
+ const defaultIsOptionEqualToValue = (option, value) => option === value;
67
68
  const MULTIPLE_DEFAULT_VALUE = [];
68
69
  function getInputValue(value, multiple, getOptionLabel, renderValue) {
69
70
  if (multiple || value == null || renderValue) {
@@ -102,7 +103,7 @@ function useAutocomplete(props) {
102
103
  id: idProp,
103
104
  includeInputInList = false,
104
105
  inputValue: inputValueProp,
105
- isOptionEqualToValue = (option, value) => option === value,
106
+ isOptionEqualToValue = defaultIsOptionEqualToValue,
106
107
  multiple = false,
107
108
  onChange,
108
109
  onClose,
@@ -134,6 +135,7 @@ function useAutocomplete(props) {
134
135
  const firstFocus = React.useRef(true);
135
136
  const inputRef = React.useRef(null);
136
137
  const listboxRef = React.useRef(null);
138
+ const windowLostFocus = React.useRef(false);
137
139
  const [anchorEl, setAnchorEl] = React.useState(null);
138
140
  const [focusedItem, setFocusedItem] = React.useState(-1);
139
141
  const defaultHighlighted = autoHighlight ? 0 : -1;
@@ -179,8 +181,30 @@ function useAutocomplete(props) {
179
181
  const [inputPristine, setInputPristine] = React.useState(true);
180
182
  const inputValueIsSelectedValue = !multiple && value != null && inputValue === getOptionLabel(value);
181
183
  const popupOpen = open && !readOnly;
184
+ const selectedValues = React.useMemo(() => {
185
+ if (multiple) {
186
+ return value;
187
+ }
188
+ if (value != null) {
189
+ return [value];
190
+ }
191
+ return [];
192
+ }, [multiple, value]);
193
+ const selectedValuesSet = React.useMemo(() => {
194
+ // Fast path for the default strict equality comparator to avoid O(n^2) option checks.
195
+ if (isOptionEqualToValue !== defaultIsOptionEqualToValue || selectedValues.length === 0) {
196
+ return null;
197
+ }
198
+ return new Set(selectedValues);
199
+ }, [isOptionEqualToValue, selectedValues]);
200
+ const isOptionSelected = React.useCallback(option => {
201
+ if (selectedValuesSet) {
202
+ return selectedValuesSet.has(option);
203
+ }
204
+ return selectedValues.some(value2 => value2 != null && isOptionEqualToValue(option, value2));
205
+ }, [isOptionEqualToValue, selectedValues, selectedValuesSet]);
182
206
  const filteredOptions = popupOpen ? filterOptions(options.filter(option => {
183
- if (filterSelectedOptions && (multiple ? value : [value]).some(value2 => value2 !== null && isOptionEqualToValue(option, value2))) {
207
+ if (filterSelectedOptions && isOptionSelected(option)) {
184
208
  return false;
185
209
  }
186
210
  return true;
@@ -213,9 +237,7 @@ function useAutocomplete(props) {
213
237
  if (itemToFocus === -1) {
214
238
  inputRef.current.focus();
215
239
  } else {
216
- // Using `data-tag-index` for deprecated `renderTags`. Remove when `renderTags` is gone.
217
- const indexType = renderValue ? 'data-item-index' : 'data-tag-index';
218
- anchorEl.querySelector(`[${indexType}="${itemToFocus}"]`).focus();
240
+ anchorEl.querySelector(`[data-item-index="${itemToFocus}"]`).focus();
219
241
  }
220
242
  });
221
243
 
@@ -498,6 +520,21 @@ function useAutocomplete(props) {
498
520
  syncHighlightedIndex();
499
521
  }
500
522
  }, [syncHighlightedIndex, filteredOptionsChanged, popupOpen, disableCloseOnSelect]);
523
+
524
+ // Listen for browser window blur to detect when the user switches tabs or windows.
525
+ // This helps prevent the popup from reopening automatically when the window regains focus.
526
+ React.useEffect(() => {
527
+ if (typeof window === 'undefined') {
528
+ return undefined;
529
+ }
530
+ const handleWindowBlur = () => {
531
+ windowLostFocus.current = true;
532
+ };
533
+ window.addEventListener('blur', handleWindowBlur);
534
+ return () => {
535
+ window.removeEventListener('blur', handleWindowBlur);
536
+ };
537
+ }, []);
501
538
  const handleOpen = event => {
502
539
  if (open) {
503
540
  return;
@@ -571,10 +608,7 @@ function useAutocomplete(props) {
571
608
  if (direction === 'next' && nextFocus === value.length || direction === 'previous' && nextFocus === -1) {
572
609
  return -1;
573
610
  }
574
-
575
- // Using `data-tag-index` for deprecated `renderTags`. Remove when `renderTags` is removed.
576
- const indexType = renderValue ? 'data-item-index' : 'data-tag-index';
577
- const option = anchorEl.querySelector(`[${indexType}="${nextFocus}"]`);
611
+ const option = anchorEl.querySelector(`[data-item-index="${nextFocus}"]`);
578
612
 
579
613
  // Same logic as MenuList.js
580
614
  if (!option || !option.hasAttribute('tabindex') || option.disabled || option.getAttribute('aria-disabled') === 'true') {
@@ -833,6 +867,14 @@ function useAutocomplete(props) {
833
867
  // Ensure DOM focus lands on the input
834
868
  focusItem(-1);
835
869
  }
870
+
871
+ // If the window previously lost focus while the popup was open,
872
+ // ignore this focus event to prevent unintended reopening.
873
+ // Reset the flag so normal focus behavior resumes.
874
+ if (windowLostFocus.current) {
875
+ windowLostFocus.current = false;
876
+ return;
877
+ }
836
878
  if (openOnFocus && !ignoreFocus.current) {
837
879
  handleOpen(event);
838
880
  }
@@ -1023,11 +1065,7 @@ function useAutocomplete(props) {
1023
1065
  ...(multiple && {
1024
1066
  key: index
1025
1067
  }),
1026
- ...(renderValue ? {
1027
- 'data-item-index': index
1028
- } : {
1029
- 'data-tag-index': index
1030
- }),
1068
+ 'data-item-index': index,
1031
1069
  tabIndex: -1,
1032
1070
  ...(!readOnly && {
1033
1071
  onDelete: multiple ? handleItemDelete(index) : handleSingleItemDelete
@@ -1038,17 +1076,6 @@ function useAutocomplete(props) {
1038
1076
  type: 'button',
1039
1077
  onClick: handlePopupIndicator
1040
1078
  }),
1041
- // deprecated
1042
- getTagProps: ({
1043
- index
1044
- }) => ({
1045
- key: index,
1046
- 'data-tag-index': index,
1047
- tabIndex: -1,
1048
- ...(!readOnly && {
1049
- onDelete: handleItemDelete(index)
1050
- })
1051
- }),
1052
1079
  getListboxProps: () => ({
1053
1080
  role: 'listbox',
1054
1081
  id: `${id}-listbox`,
@@ -1064,7 +1091,7 @@ function useAutocomplete(props) {
1064
1091
  index,
1065
1092
  option
1066
1093
  }) => {
1067
- const selected = (multiple ? value : [value]).some(value2 => value2 != null && isOptionEqualToValue(option, value2));
1094
+ const selected = isOptionSelected(option);
1068
1095
  const disabled = getOptionDisabled ? getOptionDisabled(option) : false;
1069
1096
  return {
1070
1097
  key: getOptionKey?.(option) ?? getOptionLabel(option),
@@ -1089,8 +1116,6 @@ function useAutocomplete(props) {
1089
1116
  anchorEl,
1090
1117
  setAnchorEl,
1091
1118
  focusedItem,
1092
- // deprecated
1093
- focusedTag: focusedItem,
1094
1119
  groupedOptions
1095
1120
  };
1096
1121
  }
@@ -56,6 +56,7 @@ const defaultFilterOptions = createFilterOptions();
56
56
  // Number of options to jump in list box when `Page Up` and `Page Down` keys are used.
57
57
  const pageSize = 5;
58
58
  const defaultIsActiveElementInListbox = listboxRef => listboxRef.current !== null && listboxRef.current.parentElement?.contains(document.activeElement);
59
+ const defaultIsOptionEqualToValue = (option, value) => option === value;
59
60
  const MULTIPLE_DEFAULT_VALUE = [];
60
61
  function getInputValue(value, multiple, getOptionLabel, renderValue) {
61
62
  if (multiple || value == null || renderValue) {
@@ -94,7 +95,7 @@ function useAutocomplete(props) {
94
95
  id: idProp,
95
96
  includeInputInList = false,
96
97
  inputValue: inputValueProp,
97
- isOptionEqualToValue = (option, value) => option === value,
98
+ isOptionEqualToValue = defaultIsOptionEqualToValue,
98
99
  multiple = false,
99
100
  onChange,
100
101
  onClose,
@@ -126,6 +127,7 @@ function useAutocomplete(props) {
126
127
  const firstFocus = React.useRef(true);
127
128
  const inputRef = React.useRef(null);
128
129
  const listboxRef = React.useRef(null);
130
+ const windowLostFocus = React.useRef(false);
129
131
  const [anchorEl, setAnchorEl] = React.useState(null);
130
132
  const [focusedItem, setFocusedItem] = React.useState(-1);
131
133
  const defaultHighlighted = autoHighlight ? 0 : -1;
@@ -171,8 +173,30 @@ function useAutocomplete(props) {
171
173
  const [inputPristine, setInputPristine] = React.useState(true);
172
174
  const inputValueIsSelectedValue = !multiple && value != null && inputValue === getOptionLabel(value);
173
175
  const popupOpen = open && !readOnly;
176
+ const selectedValues = React.useMemo(() => {
177
+ if (multiple) {
178
+ return value;
179
+ }
180
+ if (value != null) {
181
+ return [value];
182
+ }
183
+ return [];
184
+ }, [multiple, value]);
185
+ const selectedValuesSet = React.useMemo(() => {
186
+ // Fast path for the default strict equality comparator to avoid O(n^2) option checks.
187
+ if (isOptionEqualToValue !== defaultIsOptionEqualToValue || selectedValues.length === 0) {
188
+ return null;
189
+ }
190
+ return new Set(selectedValues);
191
+ }, [isOptionEqualToValue, selectedValues]);
192
+ const isOptionSelected = React.useCallback(option => {
193
+ if (selectedValuesSet) {
194
+ return selectedValuesSet.has(option);
195
+ }
196
+ return selectedValues.some(value2 => value2 != null && isOptionEqualToValue(option, value2));
197
+ }, [isOptionEqualToValue, selectedValues, selectedValuesSet]);
174
198
  const filteredOptions = popupOpen ? filterOptions(options.filter(option => {
175
- if (filterSelectedOptions && (multiple ? value : [value]).some(value2 => value2 !== null && isOptionEqualToValue(option, value2))) {
199
+ if (filterSelectedOptions && isOptionSelected(option)) {
176
200
  return false;
177
201
  }
178
202
  return true;
@@ -205,9 +229,7 @@ function useAutocomplete(props) {
205
229
  if (itemToFocus === -1) {
206
230
  inputRef.current.focus();
207
231
  } else {
208
- // Using `data-tag-index` for deprecated `renderTags`. Remove when `renderTags` is gone.
209
- const indexType = renderValue ? 'data-item-index' : 'data-tag-index';
210
- anchorEl.querySelector(`[${indexType}="${itemToFocus}"]`).focus();
232
+ anchorEl.querySelector(`[data-item-index="${itemToFocus}"]`).focus();
211
233
  }
212
234
  });
213
235
 
@@ -490,6 +512,21 @@ function useAutocomplete(props) {
490
512
  syncHighlightedIndex();
491
513
  }
492
514
  }, [syncHighlightedIndex, filteredOptionsChanged, popupOpen, disableCloseOnSelect]);
515
+
516
+ // Listen for browser window blur to detect when the user switches tabs or windows.
517
+ // This helps prevent the popup from reopening automatically when the window regains focus.
518
+ React.useEffect(() => {
519
+ if (typeof window === 'undefined') {
520
+ return undefined;
521
+ }
522
+ const handleWindowBlur = () => {
523
+ windowLostFocus.current = true;
524
+ };
525
+ window.addEventListener('blur', handleWindowBlur);
526
+ return () => {
527
+ window.removeEventListener('blur', handleWindowBlur);
528
+ };
529
+ }, []);
493
530
  const handleOpen = event => {
494
531
  if (open) {
495
532
  return;
@@ -563,10 +600,7 @@ function useAutocomplete(props) {
563
600
  if (direction === 'next' && nextFocus === value.length || direction === 'previous' && nextFocus === -1) {
564
601
  return -1;
565
602
  }
566
-
567
- // Using `data-tag-index` for deprecated `renderTags`. Remove when `renderTags` is removed.
568
- const indexType = renderValue ? 'data-item-index' : 'data-tag-index';
569
- const option = anchorEl.querySelector(`[${indexType}="${nextFocus}"]`);
603
+ const option = anchorEl.querySelector(`[data-item-index="${nextFocus}"]`);
570
604
 
571
605
  // Same logic as MenuList.js
572
606
  if (!option || !option.hasAttribute('tabindex') || option.disabled || option.getAttribute('aria-disabled') === 'true') {
@@ -825,6 +859,14 @@ function useAutocomplete(props) {
825
859
  // Ensure DOM focus lands on the input
826
860
  focusItem(-1);
827
861
  }
862
+
863
+ // If the window previously lost focus while the popup was open,
864
+ // ignore this focus event to prevent unintended reopening.
865
+ // Reset the flag so normal focus behavior resumes.
866
+ if (windowLostFocus.current) {
867
+ windowLostFocus.current = false;
868
+ return;
869
+ }
828
870
  if (openOnFocus && !ignoreFocus.current) {
829
871
  handleOpen(event);
830
872
  }
@@ -1015,11 +1057,7 @@ function useAutocomplete(props) {
1015
1057
  ...(multiple && {
1016
1058
  key: index
1017
1059
  }),
1018
- ...(renderValue ? {
1019
- 'data-item-index': index
1020
- } : {
1021
- 'data-tag-index': index
1022
- }),
1060
+ 'data-item-index': index,
1023
1061
  tabIndex: -1,
1024
1062
  ...(!readOnly && {
1025
1063
  onDelete: multiple ? handleItemDelete(index) : handleSingleItemDelete
@@ -1030,17 +1068,6 @@ function useAutocomplete(props) {
1030
1068
  type: 'button',
1031
1069
  onClick: handlePopupIndicator
1032
1070
  }),
1033
- // deprecated
1034
- getTagProps: ({
1035
- index
1036
- }) => ({
1037
- key: index,
1038
- 'data-tag-index': index,
1039
- tabIndex: -1,
1040
- ...(!readOnly && {
1041
- onDelete: handleItemDelete(index)
1042
- })
1043
- }),
1044
1071
  getListboxProps: () => ({
1045
1072
  role: 'listbox',
1046
1073
  id: `${id}-listbox`,
@@ -1056,7 +1083,7 @@ function useAutocomplete(props) {
1056
1083
  index,
1057
1084
  option
1058
1085
  }) => {
1059
- const selected = (multiple ? value : [value]).some(value2 => value2 != null && isOptionEqualToValue(option, value2));
1086
+ const selected = isOptionSelected(option);
1060
1087
  const disabled = getOptionDisabled ? getOptionDisabled(option) : false;
1061
1088
  return {
1062
1089
  key: getOptionKey?.(option) ?? getOptionLabel(option),
@@ -1081,8 +1108,6 @@ function useAutocomplete(props) {
1081
1108
  anchorEl,
1082
1109
  setAnchorEl,
1083
1110
  focusedItem,
1084
- // deprecated
1085
- focusedTag: focusedItem,
1086
1111
  groupedOptions
1087
1112
  };
1088
1113
  }
package/utils/index.d.mts CHANGED
@@ -5,6 +5,7 @@ export { default as createSvgIcon } from "./createSvgIcon.mjs";
5
5
  export { default as debounce } from "./debounce.mjs";
6
6
  export { default as deprecatedPropType } from "./deprecatedPropType.mjs";
7
7
  export { default as isMuiElement } from "./isMuiElement.mjs";
8
+ export { default as getActiveElement } from "./getActiveElement.mjs";
8
9
  export { default as unstable_memoTheme } from "./memoTheme.mjs";
9
10
  export { default as ownerDocument } from "./ownerDocument.mjs";
10
11
  export { default as ownerWindow } from "./ownerWindow.mjs";
@@ -15,6 +16,7 @@ export { default as unstable_useId } from "./useId.mjs";
15
16
  export { default as unsupportedProp } from "./unsupportedProp.mjs";
16
17
  export { default as useControlled } from "./useControlled.mjs";
17
18
  export { default as useEventCallback } from "./useEventCallback.mjs";
19
+ export { default as useRovingTabIndex } from "./useRovingTabIndex.mjs";
18
20
  export { default as useForkRef } from "./useForkRef.mjs";
19
21
  export { default as mergeSlotProps } from "./mergeSlotProps.mjs";
20
22
  export * from "./types.mjs";
package/utils/index.d.ts CHANGED
@@ -5,6 +5,7 @@ export { default as createSvgIcon } from "./createSvgIcon.js";
5
5
  export { default as debounce } from "./debounce.js";
6
6
  export { default as deprecatedPropType } from "./deprecatedPropType.js";
7
7
  export { default as isMuiElement } from "./isMuiElement.js";
8
+ export { default as getActiveElement } from "./getActiveElement.js";
8
9
  export { default as unstable_memoTheme } from "./memoTheme.js";
9
10
  export { default as ownerDocument } from "./ownerDocument.js";
10
11
  export { default as ownerWindow } from "./ownerWindow.js";
@@ -15,6 +16,7 @@ export { default as unstable_useId } from "./useId.js";
15
16
  export { default as unsupportedProp } from "./unsupportedProp.js";
16
17
  export { default as useControlled } from "./useControlled.js";
17
18
  export { default as useEventCallback } from "./useEventCallback.js";
19
+ export { default as useRovingTabIndex } from "./useRovingTabIndex.js";
18
20
  export { default as useForkRef } from "./useForkRef.js";
19
21
  export { default as mergeSlotProps } from "./mergeSlotProps.js";
20
22
  export * from "./types.js";
package/utils/index.js CHANGED
@@ -35,6 +35,12 @@ Object.defineProperty(exports, "deprecatedPropType", {
35
35
  return _deprecatedPropType.default;
36
36
  }
37
37
  });
38
+ Object.defineProperty(exports, "getActiveElement", {
39
+ enumerable: true,
40
+ get: function () {
41
+ return _getActiveElement.default;
42
+ }
43
+ });
38
44
  Object.defineProperty(exports, "isMuiElement", {
39
45
  enumerable: true,
40
46
  get: function () {
@@ -114,6 +120,12 @@ Object.defineProperty(exports, "useForkRef", {
114
120
  return _useForkRef.default;
115
121
  }
116
122
  });
123
+ Object.defineProperty(exports, "useRovingTabIndex", {
124
+ enumerable: true,
125
+ get: function () {
126
+ return _useRovingTabIndex.default;
127
+ }
128
+ });
117
129
  var _ClassNameGenerator = _interopRequireDefault(require("@mui/utils/ClassNameGenerator"));
118
130
  var _capitalize = _interopRequireDefault(require("./capitalize"));
119
131
  var _createChainedFunction = _interopRequireDefault(require("./createChainedFunction"));
@@ -121,6 +133,7 @@ var _createSvgIcon = _interopRequireDefault(require("./createSvgIcon"));
121
133
  var _debounce = _interopRequireDefault(require("./debounce"));
122
134
  var _deprecatedPropType = _interopRequireDefault(require("./deprecatedPropType"));
123
135
  var _isMuiElement = _interopRequireDefault(require("./isMuiElement"));
136
+ var _getActiveElement = _interopRequireDefault(require("./getActiveElement"));
124
137
  var _memoTheme = _interopRequireDefault(require("./memoTheme"));
125
138
  var _ownerDocument = _interopRequireDefault(require("./ownerDocument"));
126
139
  var _ownerWindow = _interopRequireDefault(require("./ownerWindow"));
@@ -131,6 +144,7 @@ var _useId = _interopRequireDefault(require("./useId"));
131
144
  var _unsupportedProp = _interopRequireDefault(require("./unsupportedProp"));
132
145
  var _useControlled = _interopRequireDefault(require("./useControlled"));
133
146
  var _useEventCallback = _interopRequireDefault(require("./useEventCallback"));
147
+ var _useRovingTabIndex = _interopRequireDefault(require("./useRovingTabIndex"));
134
148
  var _useForkRef = _interopRequireDefault(require("./useForkRef"));
135
149
  var _mergeSlotProps = _interopRequireDefault(require("./mergeSlotProps"));
136
150
  // TODO: remove this export once ClassNameGenerator is stable
package/utils/index.mjs CHANGED
@@ -7,6 +7,7 @@ export { default as createSvgIcon } from "./createSvgIcon.mjs";
7
7
  export { default as debounce } from "./debounce.mjs";
8
8
  export { default as deprecatedPropType } from "./deprecatedPropType.mjs";
9
9
  export { default as isMuiElement } from "./isMuiElement.mjs";
10
+ export { default as getActiveElement } from "./getActiveElement.mjs";
10
11
  export { default as unstable_memoTheme } from "./memoTheme.mjs";
11
12
  export { default as ownerDocument } from "./ownerDocument.mjs";
12
13
  export { default as ownerWindow } from "./ownerWindow.mjs";
@@ -17,6 +18,7 @@ export { default as unstable_useId } from "./useId.mjs";
17
18
  export { default as unsupportedProp } from "./unsupportedProp.mjs";
18
19
  export { default as useControlled } from "./useControlled.mjs";
19
20
  export { default as useEventCallback } from "./useEventCallback.mjs";
21
+ export { default as useRovingTabIndex } from "./useRovingTabIndex.mjs";
20
22
  export { default as useForkRef } from "./useForkRef.mjs";
21
23
  export { default as mergeSlotProps } from "./mergeSlotProps.mjs";
22
24
  // TODO: remove this export once ClassNameGenerator is stable
@@ -0,0 +1,2 @@
1
+ import useRovingTabIndex from '@mui/utils/useRovingTabIndex';
2
+ export default useRovingTabIndex;
@@ -0,0 +1,2 @@
1
+ import useRovingTabIndex from '@mui/utils/useRovingTabIndex';
2
+ export default useRovingTabIndex;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.default = void 0;
8
+ var _useRovingTabIndex = _interopRequireDefault(require("@mui/utils/useRovingTabIndex"));
9
+ var _default = exports.default = _useRovingTabIndex.default;
@@ -0,0 +1,2 @@
1
+ import useRovingTabIndex from '@mui/utils/useRovingTabIndex';
2
+ export default useRovingTabIndex;
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 = "9.0.0-alpha.2";
7
+ const version = exports.version = "9.0.0-alpha.4";
8
8
  const major = exports.major = Number("9");
9
9
  const minor = exports.minor = Number("0");
10
10
  const patch = exports.patch = Number("0");
11
- const prerelease = exports.prerelease = "alpha.2";
11
+ const prerelease = exports.prerelease = "alpha.4";
12
12
  var _default = exports.default = version;
package/version/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
- export const version = "9.0.0-alpha.2";
1
+ export const version = "9.0.0-alpha.4";
2
2
  export const major = Number("9");
3
3
  export const minor = Number("0");
4
4
  export const patch = Number("0");
5
- export const prerelease = "alpha.2";
5
+ export const prerelease = "alpha.4";
6
6
  export default version;