@mui/material 7.3.1 → 7.3.2

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 (96) hide show
  1. package/Accordion/Accordion.d.ts +3 -3
  2. package/AccordionSummary/AccordionSummary.d.ts +3 -3
  3. package/Alert/Alert.d.ts +6 -6
  4. package/Avatar/Avatar.d.ts +3 -3
  5. package/Backdrop/Backdrop.d.ts +2 -2
  6. package/Badge/Badge.d.ts +2 -2
  7. package/BottomNavigationAction/BottomNavigationAction.d.ts +2 -2
  8. package/CHANGELOG.md +92 -4
  9. package/CardActionArea/CardActionArea.d.ts +2 -2
  10. package/CardHeader/CardHeader.d.ts +6 -6
  11. package/Checkbox/Checkbox.d.ts +2 -2
  12. package/Chip/Chip.d.ts +2 -2
  13. package/Chip/Chip.js +2 -2
  14. package/Dialog/Dialog.d.ts +5 -5
  15. package/Drawer/Drawer.d.ts +6 -6
  16. package/Drawer/Drawer.js +5 -1
  17. package/InputBase/InputBase.js +1 -1
  18. package/ListItem/ListItem.js +1 -1
  19. package/ListItemText/ListItemText.d.ts +2 -2
  20. package/Menu/Menu.d.ts +5 -5
  21. package/MobileStepper/MobileStepper.d.ts +4 -4
  22. package/OutlinedInput/OutlinedInput.js +1 -1
  23. package/PaginationItem/PaginationItem.d.ts +36 -4
  24. package/Popover/Popover.d.ts +5 -5
  25. package/Popover/Popover.js +2 -2
  26. package/Radio/Radio.d.ts +2 -2
  27. package/Rating/Rating.d.ts +5 -5
  28. package/Slider/Slider.js +1 -1
  29. package/Snackbar/Snackbar.d.ts +3 -3
  30. package/SpeedDial/SpeedDial.d.ts +2 -2
  31. package/SpeedDialAction/SpeedDialAction.d.ts +4 -4
  32. package/StepContent/StepContent.d.ts +1 -1
  33. package/StepLabel/StepLabel.d.ts +3 -3
  34. package/SwipeableDrawer/SwipeableDrawer.d.ts +1 -1
  35. package/Switch/Switch.d.ts +5 -5
  36. package/TablePagination/TablePagination.d.ts +10 -10
  37. package/TablePagination/TablePagination.js +3 -3
  38. package/TablePaginationActions/TablePaginationActions.d.ts +2 -2
  39. package/TablePaginationActions/TablePaginationActions.js +2 -2
  40. package/Tabs/Tabs.d.ts +8 -8
  41. package/TextField/TextField.d.ts +6 -6
  42. package/Tooltip/Tooltip.d.ts +4 -4
  43. package/esm/Accordion/Accordion.d.ts +3 -3
  44. package/esm/AccordionSummary/AccordionSummary.d.ts +3 -3
  45. package/esm/Alert/Alert.d.ts +6 -6
  46. package/esm/Avatar/Avatar.d.ts +3 -3
  47. package/esm/Backdrop/Backdrop.d.ts +2 -2
  48. package/esm/Badge/Badge.d.ts +2 -2
  49. package/esm/BottomNavigationAction/BottomNavigationAction.d.ts +2 -2
  50. package/esm/CardActionArea/CardActionArea.d.ts +2 -2
  51. package/esm/CardHeader/CardHeader.d.ts +6 -6
  52. package/esm/Checkbox/Checkbox.d.ts +2 -2
  53. package/esm/Chip/Chip.d.ts +2 -2
  54. package/esm/Chip/Chip.js +2 -2
  55. package/esm/Dialog/Dialog.d.ts +5 -5
  56. package/esm/Drawer/Drawer.d.ts +6 -6
  57. package/esm/Drawer/Drawer.js +5 -1
  58. package/esm/InputBase/InputBase.js +1 -1
  59. package/esm/ListItem/ListItem.js +1 -1
  60. package/esm/ListItemText/ListItemText.d.ts +2 -2
  61. package/esm/Menu/Menu.d.ts +5 -5
  62. package/esm/MobileStepper/MobileStepper.d.ts +4 -4
  63. package/esm/OutlinedInput/OutlinedInput.js +1 -1
  64. package/esm/PaginationItem/PaginationItem.d.ts +36 -4
  65. package/esm/Popover/Popover.d.ts +5 -5
  66. package/esm/Popover/Popover.js +2 -2
  67. package/esm/Radio/Radio.d.ts +2 -2
  68. package/esm/Rating/Rating.d.ts +5 -5
  69. package/esm/Slider/Slider.js +1 -1
  70. package/esm/Snackbar/Snackbar.d.ts +3 -3
  71. package/esm/SpeedDial/SpeedDial.d.ts +2 -2
  72. package/esm/SpeedDialAction/SpeedDialAction.d.ts +4 -4
  73. package/esm/StepContent/StepContent.d.ts +1 -1
  74. package/esm/StepLabel/StepLabel.d.ts +3 -3
  75. package/esm/SwipeableDrawer/SwipeableDrawer.d.ts +1 -1
  76. package/esm/Switch/Switch.d.ts +5 -5
  77. package/esm/TablePagination/TablePagination.d.ts +10 -10
  78. package/esm/TablePagination/TablePagination.js +3 -3
  79. package/esm/TablePaginationActions/TablePaginationActions.d.ts +2 -2
  80. package/esm/TablePaginationActions/TablePaginationActions.js +2 -2
  81. package/esm/Tabs/Tabs.d.ts +8 -8
  82. package/esm/TextField/TextField.d.ts +6 -6
  83. package/esm/Tooltip/Tooltip.d.ts +4 -4
  84. package/esm/index.js +1 -1
  85. package/esm/internal/SwitchBase.d.ts +1 -1
  86. package/esm/utils/shouldSpreadAdditionalProps.js +1 -1
  87. package/esm/version/index.js +2 -2
  88. package/index.js +1 -1
  89. package/internal/SwitchBase.d.ts +1 -1
  90. package/package.json +35 -36
  91. package/utils/shouldSpreadAdditionalProps.js +1 -1
  92. package/version/index.js +2 -2
  93. package/esm/utils/isHostComponent.d.ts +0 -6
  94. package/esm/utils/isHostComponent.js +0 -7
  95. package/utils/isHostComponent.d.ts +0 -6
  96. package/utils/isHostComponent.js +0 -13
@@ -36,17 +36,17 @@ export interface AccordionRegionSlotPropsOverrides {}
36
36
  export type AccordionSlotsAndSlotProps = CreateSlotsAndSlotProps<AccordionSlots, {
37
37
  /**
38
38
  * Props forwarded to the root slot.
39
- * By default, the avaible props are based on the Paper element.
39
+ * By default, the available props are based on the Paper element.
40
40
  */
41
41
  root: SlotProps<React.ElementType<PaperProps>, AccordionRootSlotPropsOverrides, AccordionOwnerState>;
42
42
  /**
43
43
  * Props forwarded to the heading slot.
44
- * By default, the avaible props are based on the h3 element.
44
+ * By default, the available props are based on the h3 element.
45
45
  */
46
46
  heading: SlotProps<'h3', AccordionHeadingSlotPropsOverrides, AccordionOwnerState>;
47
47
  /**
48
48
  * Props forwarded to the transition slot.
49
- * By default, the avaible props are based on the [Collapse](https://mui.com/material-ui/api/collapse/#props) component.
49
+ * By default, the available props are based on the [Collapse](https://mui.com/material-ui/api/collapse/#props) component.
50
50
  */
51
51
  transition: SlotComponentProps<React.ElementType, TransitionProps & AccordionTransitionSlotPropsOverrides, AccordionOwnerState>;
52
52
  /**
@@ -28,17 +28,17 @@ export interface AccordionSummaryExpandIconWrapperSlotPropsOverrides {}
28
28
  export type AccordionSummarySlotsAndSlotProps = CreateSlotsAndSlotProps<AccordionSummarySlots, {
29
29
  /**
30
30
  * Props forwarded to the root slot.
31
- * By default, the avaible props are based on the [ButtonBase](https://mui.com/material-ui/api/button-base/#props) component.
31
+ * By default, the available props are based on the [ButtonBase](https://mui.com/material-ui/api/button-base/#props) component.
32
32
  */
33
33
  root: SlotProps<React.ElementType<ButtonBaseProps>, AccordionSummaryRootSlotPropsOverrides, AccordionSummaryOwnerState>;
34
34
  /**
35
35
  * Props forwarded to the content slot.
36
- * By default, the avaible props are based on a div element.
36
+ * By default, the available props are based on a div element.
37
37
  */
38
38
  content: SlotProps<'div', AccordionSummaryContentSlotPropsOverrides, AccordionSummaryOwnerState>;
39
39
  /**
40
40
  * Props forwarded to the expand icon wrapper slot.
41
- * By default, the avaible props are based on a div element.
41
+ * By default, the available props are based on a div element.
42
42
  */
43
43
  expandIconWrapper: SlotProps<'div', AccordionSummaryExpandIconWrapperSlotPropsOverrides, AccordionSummaryOwnerState>;
44
44
  }>;
package/Alert/Alert.d.ts CHANGED
@@ -52,32 +52,32 @@ export interface AlertSlots {
52
52
  export type AlertSlotsAndSlotProps = CreateSlotsAndSlotProps<AlertSlots, {
53
53
  /**
54
54
  * Props forwarded to the root slot.
55
- * By default, the avaible props are based on the [Paper](https://mui.com/material-ui/api/paper/#props) component.
55
+ * By default, the available props are based on the [Paper](https://mui.com/material-ui/api/paper/#props) component.
56
56
  */
57
57
  root: SlotProps<React.ElementType<PaperProps>, AlertRootSlotPropsOverrides, AlertOwnerState>;
58
58
  /**
59
59
  * Props forwarded to the icon slot.
60
- * By default, the avaible props are based on a div element.
60
+ * By default, the available props are based on a div element.
61
61
  */
62
62
  icon: SlotProps<'div', AlertIconSlotPropsOverrides, AlertOwnerState>;
63
63
  /**
64
64
  * Props forwarded to the message slot.
65
- * By default, the avaible props are based on a div element.
65
+ * By default, the available props are based on a div element.
66
66
  */
67
67
  message: SlotProps<'div', AlertMessageSlotPropsOverrides, AlertOwnerState>;
68
68
  /**
69
69
  * Props forwarded to the action slot.
70
- * By default, the avaible props are based on a div element.
70
+ * By default, the available props are based on a div element.
71
71
  */
72
72
  action: SlotProps<'div', AlertActionSlotPropsOverrides, AlertOwnerState>;
73
73
  /**
74
74
  * Props forwarded to the closeButton slot.
75
- * By default, the avaible props are based on the [IconButton](https://mui.com/material-ui/api/icon-button/#props) component.
75
+ * By default, the available props are based on the [IconButton](https://mui.com/material-ui/api/icon-button/#props) component.
76
76
  */
77
77
  closeButton: SlotProps<React.ElementType<IconButtonProps>, AlertCloseButtonSlotPropsOverrides, AlertOwnerState>;
78
78
  /**
79
79
  * Props forwarded to the closeIcon slot.
80
- * By default, the avaible props are based on the [SvgIcon](https://mui.com/material-ui/api/svg-icon/#props) component.
80
+ * By default, the available props are based on the [SvgIcon](https://mui.com/material-ui/api/svg-icon/#props) component.
81
81
  */
82
82
  closeIcon: SlotProps<React.ElementType<SvgIconProps>, AlertCloseIconSlotPropsOverrides, AlertOwnerState>;
83
83
  }>;
@@ -30,17 +30,17 @@ export interface AvatarFallbackSlotPropsOverrides {}
30
30
  export type AvatarSlotsAndSlotProps = CreateSlotsAndSlotProps<AvatarSlots, {
31
31
  /**
32
32
  * Props forwarded to the root slot.
33
- * By default, the avaible props are based on the div element.
33
+ * By default, the available props are based on the div element.
34
34
  */
35
35
  root: SlotProps<'div', AvatarRootSlotPropsOverrides, AvatarOwnProps>;
36
36
  /**
37
37
  * Props forwarded to the img slot.
38
- * By default, the avaible props are based on the img element.
38
+ * By default, the available props are based on the img element.
39
39
  */
40
40
  img: SlotProps<'img', AvatarImgSlotPropsOverrides, AvatarOwnProps>;
41
41
  /**
42
42
  * Props forwarded to the fallback slot.
43
- * By default, the avaible props are based on the [SvgIcon](https://mui.com/material-ui/api/svg-icon/#props) component.
43
+ * By default, the available props are based on the [SvgIcon](https://mui.com/material-ui/api/svg-icon/#props) component.
44
44
  */
45
45
  fallback: SlotProps<React.ElementType<SvgIconProps>, AvatarFallbackSlotPropsOverrides, AvatarOwnProps>;
46
46
  }>;
@@ -24,12 +24,12 @@ export interface BackdropTransitionSlotPropsOverrides {}
24
24
  export type BackdropSlotsAndSlotProps = CreateSlotsAndSlotProps<BackdropSlots, {
25
25
  /**
26
26
  * Props forwarded to the transition slot.
27
- * By default, the avaible props are based on the div element.
27
+ * By default, the available props are based on the div element.
28
28
  */
29
29
  root: SlotProps<'div', BackdropComponentsPropsOverrides, BackdropOwnerState>;
30
30
  /**
31
31
  * Props forwarded to the transition slot.
32
- * By default, the avaible props are based on the [Fade](https://mui.com/material-ui/api/fade/#props) component.
32
+ * By default, the available props are based on the [Fade](https://mui.com/material-ui/api/fade/#props) component.
33
33
  */
34
34
  transition: SlotComponentProps<React.ElementType, TransitionProps & BackdropTransitionSlotPropsOverrides, BackdropOwnerState>;
35
35
  }>;
package/Badge/Badge.d.ts CHANGED
@@ -24,12 +24,12 @@ export interface BadgeSlots {
24
24
  export type BadgeSlotsAndSlotProps = CreateSlotsAndSlotProps<BadgeSlots, {
25
25
  /**
26
26
  * Props forwarded to the root slot.
27
- * By default, the avaible props are based on the span element.
27
+ * By default, the available props are based on the span element.
28
28
  */
29
29
  root: SlotProps<'span', BadgeRootSlotPropsOverrides, BadgeOwnerState>;
30
30
  /**
31
31
  * Props forwarded to the label slot.
32
- * By default, the avaible props are based on the span element.
32
+ * By default, the available props are based on the span element.
33
33
  */
34
34
  badge: SlotProps<'span', BadgeBadgeSlotPropsOverrides, BadgeOwnerState>;
35
35
  }>;
@@ -20,12 +20,12 @@ export interface BottomNavigationActionSlots {
20
20
  export type BottomNavigationActionSlotsAndSlotProps = CreateSlotsAndSlotProps<BottomNavigationActionSlots, {
21
21
  /**
22
22
  * Props forwarded to the root slot.
23
- * By default, the avaible props are based on the ButtonBase element.
23
+ * By default, the available props are based on the ButtonBase element.
24
24
  */
25
25
  root: SlotProps<React.ElementType<ButtonBaseProps>, {}, BottomNavigationActionOwnerState>;
26
26
  /**
27
27
  * Props forwarded to the label slot.
28
- * By default, the avaible props are based on the span element.
28
+ * By default, the available props are based on the span element.
29
29
  */
30
30
  label: SlotProps<'span', {}, BottomNavigationActionOwnerState>;
31
31
  }>;
package/CHANGELOG.md CHANGED
@@ -1,5 +1,93 @@
1
1
  # [Versions](https://mui.com/versions/)
2
2
 
3
+ ## 7.3.2
4
+
5
+ <!-- generated comparing v7.3.1..master -->
6
+
7
+ _Sep 1, 2025_
8
+
9
+ A big thanks to the 16 contributors who made this release possible.
10
+
11
+ ### `@mui/material@7.3.2`
12
+
13
+ - [Chip] Remove unnecessary optional chaining from key event handlers (#46752) @ZeeshanTamboli
14
+ - [Drawer] Add dialog role and aria-modal for `temporary` variant (#46690) @Yashkanekar
15
+ - [PaginationItem] Add slot descriptions and default components in API documentation (#46677) @sai6855
16
+ - [utils] Remove duplicate isHostComponent function (#46721) @frontman-git
17
+
18
+ ### `@mui/codemod@7.3.2`
19
+
20
+ - Add codemod to convert top-level to path imports (#46657) @neemski
21
+
22
+ ### Docs
23
+
24
+ - Remove outdated Next.js lint command (#46847) @oliviertassinari
25
+ - Add `View as Markdown` to component link header (#46835) @siriwatknp
26
+ - Add a link to open `llms.txt` (#46832) @siriwatknp
27
+ - Fix typos in Material UI API docs (#46787) @noritaka1166
28
+ - Fix typo extra "to" word (#46783) @danpeleg4
29
+ - Remove past employees from about page (#46780) @Janpot
30
+ - Fix typos in `docs/pages` folder (#46761) @noritaka1166
31
+ - Add clarification on `react-is` resolution with Material UI v6 and v7 for React 18 and below (#46633) @alisasanib
32
+ - Fix typos in `joy` and `utils` package (#46713) @noritaka1166
33
+ - [autocomplete] Fix console in unstyled demo (#46804) @oliviertassinari
34
+ - [autocomplete] Fix Google Maps brand attribution (#46803) @oliviertassinari
35
+ - [autocomplete] Fix header sentence case (#46805) @oliviertassinari
36
+ - [autocomplete] Fix Google Maps demo (#46793) @oliviertassinari
37
+ - [Select] Fix labeling issues in grouped select demo (#46722) @mj12albert
38
+ - [table] Remove outdated unstyled section (#46786) @mj12albert
39
+ - [TextField] Add note about removal of `sizeMedium` class from InputLabel in v7 upgrade guide (#46693) @checcoux
40
+
41
+ ### Core
42
+
43
+ - Update `cipher-base` transitive dependency (#46800) @Janpot
44
+ - [charts] Marked Treemap chart as Pro (#46691) @prakhargupta1
45
+ - [code-infra] Remove some csbci references (#46797) @Janpot
46
+ - [code-infra] update build tool (#46801) @Janpot
47
+ - [code-infra] Align pkg.pr.new with other projects (#46467) @Janpot
48
+ - [code-infra] Prepare for incoming `execa` update (#46781) @Janpot
49
+ - [code-infra] Remove `@mui/internal-babel-plugin-resolve-imports` override config (#46754) @ZeeshanTamboli
50
+ - [core] Fix typo in `docs/mui-vale` folder (#46760) @noritaka1166
51
+ - [core] Fix typos in `docs/data/material` folder (#46757) @noritaka1166
52
+ - [core] Fix typos in `netlify` folder (#46756) @noritaka1166
53
+ - [core] Upgrade brace-expansion (#46747) @oliviertassinari
54
+ - [core] Fix typos in Joy UI docs and `test` folder (#46738) @noritaka1166
55
+ - [core] Upgrade KaTeX (#46731) @oliviertassinari
56
+ - [core] Avoid Polynomial regex backtracking (#46732) @oliviertassinari
57
+ - [core] Remove dead @toolpad/core dependency (#46730) @oliviertassinari
58
+ - [core] Fix typos in `markdown` and `system` packages (#46720) @noritaka1166
59
+ - [core] Fix typos in `api-docs-builder` package (#46719) @noritaka1166
60
+ - [core] Fix typos in `codemod` package (#46715) @noritaka1166
61
+ - [core] pnpm prettier:all (#46685) @oliviertassinari
62
+ - [docs-infra] Set origin to generated `llms.txt` (#46833) @siriwatknp
63
+ - [docs-infra] Fix AbortController error (#46408) @oliviertassinari
64
+ - [docs-infra] Block than more feedback submissions (#46824) @oliviertassinari
65
+ - [docs-infra] Fix ESLint references (#46680) @oliviertassinari
66
+ - [infra] Migrate away from airbnb's eslint config (#46794) @brijeshb42
67
+ - [infra] Remove `fs-extra` from docs scripts (#46749) @bernardobelchior
68
+ - [infra] Remove dependency on `react-spring` (but keep `@react-spring/web`) (#46748) @bernardobelchior
69
+ - [infra] Remove `fs-extra` from `mui-icons-material` (#46745) @bernardobelchior
70
+ - [infra] Remove `api-docs-builder` dependency on `fs-extra` (#46742) @bernardobelchior
71
+ - [infra] Migrate build command to code-infra (#46614) @brijeshb42
72
+ - [infra] move testBuiltTypes step (#46735) @Janpot
73
+ - [infra] Remove `fs-extra` from `netlify-plugin-cache-docs` (#46740) @bernardobelchior
74
+ - [infra] Supply `document` to `userEvent.setup()` (#46714) @Janpot
75
+ - [infra] Remove useless test step (#46679) @Janpot
76
+ - [infra] Stagger daily cron jobs to avoid browserstack timeouts (#46676) @Janpot
77
+ - [internal] Improve useControlled() strict mode handling (#46807) @oliviertassinari
78
+ - [internal] Sentence case (55a9d8f) @oliviertassinari
79
+ - [internal] Fix typos in code comments (#46784) @noritaka1166
80
+ - [internal] Fix console regression in dev mode (925f02b) @oliviertassinari
81
+ - [internal] Prettier all if dependencies changes (1f63b03) @oliviertassinari
82
+ - [internal] Fix renovate.json (84be632) @oliviertassinari
83
+ - [internal] Polish renovate schedule (#46727) @oliviertassinari
84
+ - [internal] Update link to GitHub labels (8ab4813) @oliviertassinari
85
+ - [internal] Bump brace-expansion (06de338) @oliviertassinari
86
+ - [internal] Normalize Action description (4a2fbcb) @oliviertassinari
87
+ - [toolpad] Remove it from website and docs (#46595) @prakhargupta1
88
+
89
+ All contributors of this release in alphabetical order: @alisasanib, @bernardobelchior, @brijeshb42, @checcoux, @danpeleg4, @frontman-git, @Janpot, @mj12albert, @neemski, @noritaka1166, @oliviertassinari, @prakhargupta1, @sai6855, @siriwatknp, @Yashkanekar, @ZeeshanTamboli
90
+
3
91
  ## 7.3.1
4
92
 
5
93
  <!-- generated comparing v7.3.0..master -->
@@ -71,7 +159,7 @@ A big thanks to the 24 contributors who made this release possible. Here are som
71
159
  - Fix unpinned version regression (#46438) @oliviertassinari
72
160
  - [code-infra] Accomodate build requirements from mui-x (#46551) @brijeshb42
73
161
  - [code-infra] Extend renovate preset from infra repo (#46483) @brijeshb42
74
- - [code-infra] Use flat eslint config (#46258) @brijeshb42
162
+ - [code-infra] Use flat ESLint config (#46258) @brijeshb42
75
163
  - [docs-infra] Remove comment saving in G-sheet option (#46617) @alexfauquette
76
164
  - [docs-infra] Move `Open in MUI Chat` to Demo toolbar and adjust styles (#46579) @siriwatknp
77
165
  - [docs-infra] Fix codeblock issues (#46323) @atharva3333
@@ -143,11 +231,11 @@ A big thanks to the 17 contributors who made this release possible. Here are the
143
231
  ### Core
144
232
 
145
233
  - pnpm docs:sync-team (3641a0b) @oliviertassinari
146
- - Add cross-env to eslint script (#46358) @ZeeshanTamboli
234
+ - Add cross-env to ESLint script (#46358) @ZeeshanTamboli
147
235
  - Support merging of className and style from theme (#45975) @sai6855
148
236
  - [code-infra] Create bundle size package (#45911) @Janpot
149
237
  - [docs-infra] Add a script to generate Material UI `llms.txt` and docs markdown. (#46308) @siriwatknp
150
- - [docs-infra] Fix stackblitz for js projects (#46220) @Janpot
238
+ - [docs-infra] Fix StackBlitz for js projects (#46220) @Janpot
151
239
  - [infra] Add emotion as external for bundle monitor (#46372) @Janpot
152
240
  - [infra] Create update PR on every canary publish for internal packages (#46367) @Janpot
153
241
  - [infra] Remove deprecated esmExternals (#46365) @Janpot
@@ -225,7 +313,7 @@ A big thanks to the 15 contributors who made this release possible.
225
313
  ### Core
226
314
 
227
315
  - [code-infra] Add plugin to check for index file access (#46178) @Janpot
228
- - [code-infra] Bump eslint to v9 (#46222) @brijeshb42
316
+ - [code-infra] Bump ESLint to v9 (#46222) @brijeshb42
229
317
  - [code-infra] Move packages to mui/mui-public (#46155) @Janpot
230
318
  - [code-infra] Move `chai` to peerDep (#46227) @JCQuintas
231
319
  - [code-infra] Avoid loading barrel file during type checking (#46177) @Janpot
@@ -20,12 +20,12 @@ export interface CardActionAreaSlots {
20
20
  export type CardActionAreaSlotsAndSlotProps = CreateSlotsAndSlotProps<CardActionAreaSlots, {
21
21
  /**
22
22
  * Props forwarded to the root slot.
23
- * By default, the avaible props are based on the span element.
23
+ * By default, the available props are based on the span element.
24
24
  */
25
25
  root: SlotProps<React.ElementType<ButtonBaseProps>, {}, CardActionAreaOwnerState>;
26
26
  /**
27
27
  * Props forwarded to the focusHighlight slot.
28
- * By default, the avaible props are based on the span element.
28
+ * By default, the available props are based on the span element.
29
29
  */
30
30
  focusHighlight: SlotProps<'span', {}, CardActionAreaOwnerState>;
31
31
  }>;
@@ -48,32 +48,32 @@ export interface CardHeaderSlots {
48
48
  export type CardHeaderSlotsAndSlotProps = CreateSlotsAndSlotProps<CardHeaderSlots, {
49
49
  /**
50
50
  * Props forwarded to the root slot.
51
- * By default, the avaible props are based on the div element.
51
+ * By default, the available props are based on the div element.
52
52
  */
53
53
  root: SlotProps<'div', CardHeaderRootSlotPropsOverrides, CardHeaderOwnerState>;
54
54
  /**
55
55
  * Props forwarded to the avatar slot.
56
- * By default, the avaible props are based on the div element.
56
+ * By default, the available props are based on the div element.
57
57
  */
58
58
  avatar: SlotProps<'div', CardHeaderAvatarSlotPropsOverrides, CardHeaderOwnerState>;
59
59
  /**
60
60
  * Props forwarded to the action slot.
61
- * By default, the avaible props are based on the div element.
61
+ * By default, the available props are based on the div element.
62
62
  */
63
63
  action: SlotProps<'div', CardHeaderActionSlotPropsOverrides, CardHeaderOwnerState>;
64
64
  /**
65
65
  * Props forwarded to the content slot.
66
- * By default, the avaible props are based on the div element.
66
+ * By default, the available props are based on the div element.
67
67
  */
68
68
  content: SlotProps<'div', CardHeaderContentSlotPropsOverrides, CardHeaderOwnerState>;
69
69
  /**
70
70
  * Props forwarded to the title slot (as long as disableTypography is not `true`).
71
- * By default, the avaible props are based on the [Typography](https://mui.com/material-ui/api/typography/#props) component.
71
+ * By default, the available props are based on the [Typography](https://mui.com/material-ui/api/typography/#props) component.
72
72
  */
73
73
  title: SlotProps<React.ElementType<TypographyProps>, CardHeaderTitleSlotPropsOverrides, CardHeaderOwnerState>;
74
74
  /**
75
75
  * Props forwarded to the subheader slot (as long as disableTypography is not `true`).
76
- * By default, the avaible props are based on the [Typography](https://mui.com/material-ui/api/typography/#props) component.
76
+ * By default, the available props are based on the [Typography](https://mui.com/material-ui/api/typography/#props) component.
77
77
  */
78
78
  subheader: SlotProps<React.ElementType<TypographyProps>, CardHeaderSubheaderSlotPropsOverrides, CardHeaderOwnerState>;
79
79
  }>;
@@ -25,12 +25,12 @@ export interface CheckboxSlots {
25
25
  export type CheckboxSlotsAndSlotProps = CreateSlotsAndSlotProps<CheckboxSlots, {
26
26
  /**
27
27
  * Props forwarded to the root slot.
28
- * By default, the avaible props are based on the div element.
28
+ * By default, the available props are based on the div element.
29
29
  */
30
30
  root: SlotProps<React.ElementType<SwitchBaseProps>, CheckboxRootSlotPropsOverrides, CheckboxOwnerState>;
31
31
  /**
32
32
  * Props forwarded to the input slot.
33
- * By default, the avaible props are based on the input element.
33
+ * By default, the available props are based on the input element.
34
34
  */
35
35
  input: SlotProps<'input', CheckboxInputSlotPropsOverrides, CheckboxOwnerState>;
36
36
  }>;
package/Chip/Chip.d.ts CHANGED
@@ -20,12 +20,12 @@ export interface ChipSlots {
20
20
  export type ChipSlotsAndSlotProps = CreateSlotsAndSlotProps<ChipSlots, {
21
21
  /**
22
22
  * Props forwarded to the root slot.
23
- * By default, the avaible props are based on the div element.
23
+ * By default, the available props are based on the div element.
24
24
  */
25
25
  root: SlotProps<'div', {}, ChipOwnerState>;
26
26
  /**
27
27
  * Props forwarded to the label slot.
28
- * By default, the avaible props are based on the span element.
28
+ * By default, the available props are based on the span element.
29
29
  */
30
30
  label: SlotProps<'span', {}, ChipOwnerState>;
31
31
  }>;
package/Chip/Chip.js CHANGED
@@ -490,11 +490,11 @@ const Chip = /*#__PURE__*/React.forwardRef(function Chip(inProps, ref) {
490
490
  },
491
491
  onKeyDown: event => {
492
492
  handlers.onKeyDown?.(event);
493
- handleKeyDown?.(event);
493
+ handleKeyDown(event);
494
494
  },
495
495
  onKeyUp: event => {
496
496
  handlers.onKeyUp?.(event);
497
- handleKeyUp?.(event);
497
+ handleKeyUp(event);
498
498
  }
499
499
  })
500
500
  });
@@ -41,27 +41,27 @@ export interface DialogRootSlotPropsOverrides {}
41
41
  export type DialogSlotsAndSlotProps = CreateSlotsAndSlotProps<DialogSlots, {
42
42
  /**
43
43
  * Props forwarded to the root slot.
44
- * By default, the avaible props are based on the [Modal](https://mui.com/material-ui/api/modal/#props) component.
44
+ * By default, the available props are based on the [Modal](https://mui.com/material-ui/api/modal/#props) component.
45
45
  */
46
46
  root: SlotProps<React.ElementType<ModalProps>, DialogRootSlotPropsOverrides, DialogOwnerState>;
47
47
  /**
48
48
  * Props forwarded to the backdrop slot.
49
- * By default, the avaible props are based on the [Backdrop](https://mui.com/material-ui/api/backdrop/#props) component.
49
+ * By default, the available props are based on the [Backdrop](https://mui.com/material-ui/api/backdrop/#props) component.
50
50
  */
51
51
  backdrop: SlotProps<React.ElementType<BackdropProps>, DialogBackdropSlotPropsOverrides, DialogOwnerState>;
52
52
  /**
53
53
  * Props forwarded to the container slot.
54
- * By default, the avaible props are based on a div element.
54
+ * By default, the available props are based on a div element.
55
55
  */
56
56
  container: SlotProps<'div', DialogContainerSlotPropsOverrides, DialogOwnerState>;
57
57
  /**
58
58
  * Props forwarded to the transition slot.
59
- * By default, the avaible props are based on the [Fade](https://mui.com/material-ui/api/fade/#props) component.
59
+ * By default, the available props are based on the [Fade](https://mui.com/material-ui/api/fade/#props) component.
60
60
  */
61
61
  transition: SlotComponentProps<React.ElementType, TransitionProps & DialogTransitionSlotPropsOverrides, DialogOwnerState>;
62
62
  /**
63
63
  * Props forwarded to the paper slot.
64
- * By default, the avaible props are based on the [Paper](https://mui.com/material-ui/api/paper/#props) component.
64
+ * By default, the available props are based on the [Paper](https://mui.com/material-ui/api/paper/#props) component.
65
65
  */
66
66
  paper: SlotProps<React.ElementType<PaperProps>, DialogPaperSlotPropsOverrides, DialogOwnerState>;
67
67
  }>;
@@ -45,27 +45,27 @@ export interface DrawerSlots {
45
45
  export type DrawerSlotsAndSlotProps = CreateSlotsAndSlotProps<DrawerSlots, {
46
46
  /**
47
47
  * Props forwarded to the root slot.
48
- * By default, the avaible props are based on the [Modal](https://mui.com/material-ui/api/modal/#props) component.
48
+ * By default, the available props are based on the [Modal](https://mui.com/material-ui/api/modal/#props) component.
49
49
  */
50
50
  root: SlotProps<React.ElementType<ModalProps>, DrawerRootSlotPropsOverrides, DrawerOwnerState>;
51
51
  /**
52
52
  * Props forwarded to the backdrop slot.
53
- * By default, the avaible props are based on the [Backdrop](https://mui.com/material-ui/api/backdrop/#props) component.
53
+ * By default, the available props are based on the [Backdrop](https://mui.com/material-ui/api/backdrop/#props) component.
54
54
  */
55
55
  backdrop: SlotProps<React.ElementType<BackdropProps>, DrawerBackdropSlotPropsOverrides, DrawerOwnerState>;
56
56
  /**
57
57
  * Props forwarded to the docked slot.
58
- * By default, the avaible props are based on a div element.
58
+ * By default, the available props are based on a div element.
59
59
  */
60
60
  docked: SlotProps<'div', DrawerDockedSlotPropsOverrides, DrawerOwnerState>;
61
61
  /**
62
62
  * Props forwarded to the paper slot.
63
- * By default, the avaible props are based on the [Paper](https://mui.com/material-ui/api/paper/#props) component.
63
+ * By default, the available props are based on the [Paper](https://mui.com/material-ui/api/paper/#props) component.
64
64
  */
65
65
  paper: SlotProps<React.ElementType<PaperProps>, DrawerPaperSlotPropsOverrides, DrawerOwnerState>;
66
66
  /**
67
67
  * Props forwarded to the transition slot.
68
- * By default, the avaible props are based on the [Slide](https://mui.com/material-ui/api/slide/#props) component.
68
+ * By default, the available props are based on the [Slide](https://mui.com/material-ui/api/slide/#props) component.
69
69
  */
70
70
  transition: SlotProps<React.ElementType, TransitionProps & DrawerTransitionSlotPropsOverrides, DrawerOwnerState>;
71
71
  }>;
@@ -137,7 +137,7 @@ export interface DrawerProps extends StandardProps<ModalProps, 'open' | 'childre
137
137
  variant?: 'permanent' | 'persistent' | 'temporary';
138
138
  }
139
139
 
140
- // omit `slots` and `slotProps` to prevent recusion
140
+ // omit `slots` and `slotProps` to prevent recursion
141
141
  export interface DrawerOwnerState extends Omit<DrawerProps, 'slots' | 'slotProps'> {}
142
142
 
143
143
  /**
package/Drawer/Drawer.js CHANGED
@@ -281,7 +281,11 @@ const Drawer = /*#__PURE__*/React.forwardRef(function Drawer(inProps, ref) {
281
281
  externalForwardedProps,
282
282
  additionalProps: {
283
283
  elevation: variant === 'temporary' ? elevation : 0,
284
- square: true
284
+ square: true,
285
+ ...(variant === 'temporary' && {
286
+ role: 'dialog',
287
+ 'aria-modal': 'true'
288
+ })
285
289
  }
286
290
  });
287
291
  const [DockedSlot, dockedSlotProps] = (0, _useSlot.default)('docked', {
@@ -14,8 +14,8 @@ var _clsx = _interopRequireDefault(require("clsx"));
14
14
  var _elementTypeAcceptingRef = _interopRequireDefault(require("@mui/utils/elementTypeAcceptingRef"));
15
15
  var _refType = _interopRequireDefault(require("@mui/utils/refType"));
16
16
  var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
17
+ var _isHostComponent = _interopRequireDefault(require("@mui/utils/isHostComponent"));
17
18
  var _TextareaAutosize = _interopRequireDefault(require("../TextareaAutosize"));
18
- var _isHostComponent = _interopRequireDefault(require("../utils/isHostComponent"));
19
19
  var _formControlState = _interopRequireDefault(require("../FormControl/formControlState"));
20
20
  var _FormControlContext = _interopRequireDefault(require("../FormControl/FormControlContext"));
21
21
  var _useFormControl = _interopRequireDefault(require("../FormControl/useFormControl"));
@@ -13,7 +13,7 @@ var _clsx = _interopRequireDefault(require("clsx"));
13
13
  var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
14
14
  var _elementTypeAcceptingRef = _interopRequireDefault(require("@mui/utils/elementTypeAcceptingRef"));
15
15
  var _chainPropTypes = _interopRequireDefault(require("@mui/utils/chainPropTypes"));
16
- var _isHostComponent = _interopRequireDefault(require("../utils/isHostComponent"));
16
+ var _isHostComponent = _interopRequireDefault(require("@mui/utils/isHostComponent"));
17
17
  var _zeroStyled = require("../zero-styled");
18
18
  var _memoTheme = _interopRequireDefault(require("../utils/memoTheme"));
19
19
  var _DefaultPropsProvider = require("../DefaultPropsProvider");
@@ -24,12 +24,12 @@ export interface ListItemTextSlots {
24
24
  }
25
25
  export type ListItemTextSlotsAndSlotProps = CreateSlotsAndSlotProps<ListItemTextSlots, {
26
26
  /**
27
- * Props forwared to the root slot.
27
+ * Props forwarded to the root slot.
28
28
  * By default, the available props are based on `div` element.
29
29
  */
30
30
  root: SlotProps<'div', {}, ListItemTextOwnerState>;
31
31
  /**
32
- * Props forwared to the primary slot (as long as disableTypography is not `true`)
32
+ * Props forwarded to the primary slot (as long as disableTypography is not `true`)
33
33
  * By default, the available props are based on the [Typography](https://mui.com/material-ui/api/typography/#props) component
34
34
  */
35
35
  primary: SlotProps<React.ElementType<TypographyProps>, {}, ListItemTextOwnerState>;
package/Menu/Menu.d.ts CHANGED
@@ -45,29 +45,29 @@ export interface MenuSlots {
45
45
  export type MenuSlotsAndSlotProps = CreateSlotsAndSlotProps<MenuSlots, {
46
46
  /**
47
47
  * Props forwarded to the root slot.
48
- * By default, the avaible props are based on the [Popover](https://mui.com/material-ui/api/popover/#props) component.
48
+ * By default, the available props are based on the [Popover](https://mui.com/material-ui/api/popover/#props) component.
49
49
  */
50
50
  root: SlotProps<React.ElementType<ModalProps>, MenuRootSlotPropsOverrides, MenuOwnerState>;
51
51
  /**
52
52
  * Props forwarded to the paper slot.
53
- * By default, the avaible props are based on the [Paper](https://mui.com/material-ui/api/paper/#props) component.
53
+ * By default, the available props are based on the [Paper](https://mui.com/material-ui/api/paper/#props) component.
54
54
  */
55
55
  paper: SlotProps<React.ElementType<PaperProps>, MenuPaperSlotPropsOverrides, MenuOwnerState>;
56
56
  /**
57
57
  * Props forwarded to the list slot.
58
- * By default, the avaible props are based on the [MenuList](https://mui.com/material-ui/api/menu-list/#props) component.
58
+ * By default, the available props are based on the [MenuList](https://mui.com/material-ui/api/menu-list/#props) component.
59
59
  */
60
60
  list: SlotProps<React.ElementType<MenuListProps>, MenuListSlotPropsOverrides, MenuOwnerState>;
61
61
  /**
62
62
  * Props forwarded to the transition slot.
63
- * By default, the avaible props are based on the [Grow](https://mui.com/material-ui/api/grow/#props) component.
63
+ * By default, the available props are based on the [Grow](https://mui.com/material-ui/api/grow/#props) component.
64
64
  */
65
65
  transition: SlotComponentProps<
66
66
  // use SlotComponentProps because transition slot does not support `component` and `sx` prop
67
67
  React.ElementType, TransitionProps & MenuTransitionSlotPropsOverrides, MenuOwnerState>;
68
68
  /**
69
69
  * Props forwarded to the backdrop slot.
70
- * By default, the avaible props are based on the [Backdrop](https://mui.com/material-ui/api/backdrop/#props) component.
70
+ * By default, the available props are based on the [Backdrop](https://mui.com/material-ui/api/backdrop/#props) component.
71
71
  */
72
72
  backdrop: SlotProps<React.ElementType<BackdropProps>, MenuBackdropSlotPropsOverrides, MenuOwnerState>;
73
73
  }>;
@@ -35,22 +35,22 @@ export interface MobileStepperDotSlotPropsOverrides {}
35
35
  export type MobileStepperSlotsAndSlotProps = CreateSlotsAndSlotProps<MobileStepperSlots, {
36
36
  /**
37
37
  * Props forwarded to the root slot.
38
- * By default, the avaible props are based on the [Paper](https://mui.com/material-ui/api/paper/#props) component.
38
+ * By default, the available props are based on the [Paper](https://mui.com/material-ui/api/paper/#props) component.
39
39
  */
40
40
  root: SlotProps<React.ElementType<PaperProps>, MobileStepperRootSlotPropsOverrides, MobileStepperOwnerState>;
41
41
  /**
42
42
  * Props forwarded to the progress slot.
43
- * By default, the avaible props are based on the [LinearProgress](https://mui.com/material-ui/api/linear-progress/#props) component.
43
+ * By default, the available props are based on the [LinearProgress](https://mui.com/material-ui/api/linear-progress/#props) component.
44
44
  */
45
45
  progress: SlotProps<React.ElementType<LinearProgressProps>, MobileStepperProgressSlotPropsOverrides, MobileStepperOwnerState>;
46
46
  /**
47
47
  * Props forwarded to the dots slot.
48
- * By default, the avaible props are based on the div element.
48
+ * By default, the available props are based on the div element.
49
49
  */
50
50
  dots: SlotProps<'div', MobileStepperDotsSlotPropsOverrides, MobileStepperOwnerState>;
51
51
  /**
52
52
  * Props forwarded to the dot slot.
53
- * By default, the avaible props are based on the div element.
53
+ * By default, the available props are based on the div element.
54
54
  */
55
55
  dot: SlotProps<'div', MobileStepperDotSlotPropsOverrides, MobileStepperOwnerState>;
56
56
  }>;
@@ -74,7 +74,7 @@ const OutlinedInputRoot = (0, _zeroStyled.styled)(_InputBase.InputBaseRoot, {
74
74
  }
75
75
  })), {
76
76
  props: {},
77
- // to overide the above style
77
+ // to override the above style
78
78
  style: {
79
79
  [`&.${_outlinedInputClasses.default.error} .${_outlinedInputClasses.default.notchedOutline}`]: {
80
80
  borderColor: (theme.vars || theme).palette.error.main