@mui/material 5.7.0 → 5.8.0

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 (176) hide show
  1. package/Accordion/accordionClasses.d.ts +18 -18
  2. package/AccordionActions/accordionActionsClasses.d.ts +10 -10
  3. package/AccordionDetails/accordionDetailsClasses.d.ts +8 -8
  4. package/AccordionSummary/accordionSummaryClasses.d.ts +22 -22
  5. package/Alert/alertClasses.d.ts +44 -44
  6. package/AlertTitle/alertTitleClasses.d.ts +8 -8
  7. package/AppBar/appBarClasses.d.ts +28 -28
  8. package/Autocomplete/Autocomplete.d.ts +23 -1
  9. package/Autocomplete/Autocomplete.js +3 -2
  10. package/Autocomplete/autocompleteClasses.d.ts +54 -54
  11. package/Avatar/avatarClasses.d.ts +20 -20
  12. package/AvatarGroup/avatarGroupClasses.d.ts +10 -10
  13. package/Backdrop/backdropClasses.d.ts +10 -10
  14. package/Badge/Badge.d.ts +1 -34
  15. package/Badge/badgeClasses.d.ts +56 -24
  16. package/BottomNavigation/BottomNavigation.js +0 -0
  17. package/BottomNavigation/bottomNavigationClasses.d.ts +8 -8
  18. package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +14 -14
  19. package/Box/Box.js +1 -1
  20. package/Breadcrumbs/breadcrumbsClasses.d.ts +14 -14
  21. package/Button/buttonClasses.d.ts +76 -76
  22. package/ButtonBase/buttonBaseClasses.d.ts +12 -12
  23. package/ButtonBase/touchRippleClasses.d.ts +20 -20
  24. package/ButtonGroup/ButtonGroupContext.d.ts +18 -18
  25. package/ButtonGroup/buttonGroupClasses.d.ts +58 -58
  26. package/CHANGELOG.md +72 -0
  27. package/Card/cardClasses.d.ts +8 -8
  28. package/CardActionArea/cardActionAreaClasses.d.ts +12 -12
  29. package/CardActions/cardActionsClasses.d.ts +10 -10
  30. package/CardContent/cardContentClasses.d.ts +8 -8
  31. package/CardHeader/cardHeaderClasses.d.ts +18 -18
  32. package/CardMedia/cardMediaClasses.d.ts +12 -12
  33. package/Checkbox/checkboxClasses.d.ts +18 -18
  34. package/Chip/chipClasses.d.ts +80 -80
  35. package/CircularProgress/circularProgressClasses.d.ts +26 -26
  36. package/ClickAwayListener/index.d.ts +2 -2
  37. package/Collapse/collapseClasses.d.ts +18 -18
  38. package/Container/Container.js +17 -106
  39. package/Container/containerClasses.d.ts +6 -22
  40. package/Dialog/DialogContext.d.ts +6 -6
  41. package/Dialog/dialogClasses.d.ts +36 -36
  42. package/DialogActions/dialogActionsClasses.d.ts +10 -10
  43. package/DialogContent/dialogContentClasses.d.ts +10 -10
  44. package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
  45. package/DialogTitle/dialogTitleClasses.d.ts +8 -8
  46. package/Divider/dividerClasses.d.ts +34 -34
  47. package/Drawer/drawerClasses.d.ts +30 -30
  48. package/Fab/fabClasses.d.ts +26 -26
  49. package/FilledInput/filledInputClasses.d.ts +40 -40
  50. package/FormControl/formControlClasses.d.ts +14 -14
  51. package/FormControlLabel/formControlLabelClasses.d.ts +20 -20
  52. package/FormGroup/formGroupClasses.d.ts +12 -12
  53. package/FormHelperText/formHelperTextClasses.d.ts +22 -22
  54. package/FormLabel/formLabelClasses.d.ts +22 -22
  55. package/Grid/gridClasses.d.ts +48 -48
  56. package/Icon/iconClasses.d.ts +24 -24
  57. package/IconButton/iconButtonClasses.d.ts +26 -26
  58. package/ImageList/imageListClasses.d.ts +16 -16
  59. package/ImageListItem/imageListItemClasses.d.ts +18 -18
  60. package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
  61. package/Input/inputClasses.d.ts +34 -34
  62. package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
  63. package/InputBase/inputBaseClasses.d.ts +44 -44
  64. package/InputLabel/inputLabelClasses.d.ts +32 -32
  65. package/LinearProgress/linearProgressClasses.d.ts +42 -42
  66. package/Link/linkClasses.d.ts +18 -18
  67. package/List/listClasses.d.ts +14 -14
  68. package/ListItem/listItemClasses.d.ts +30 -30
  69. package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
  70. package/ListItemButton/listItemButtonClasses.d.ts +22 -22
  71. package/ListItemIcon/listItemIconClasses.d.ts +10 -10
  72. package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
  73. package/ListItemText/listItemTextClasses.d.ts +18 -18
  74. package/ListSubheader/listSubheaderClasses.d.ts +18 -18
  75. package/Menu/menuClasses.d.ts +12 -12
  76. package/MenuItem/menuItemClasses.d.ts +20 -20
  77. package/MobileStepper/mobileStepperClasses.d.ts +22 -22
  78. package/NativeSelect/nativeSelectClasses.d.ts +32 -32
  79. package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
  80. package/Pagination/paginationClasses.d.ts +14 -14
  81. package/PaginationItem/paginationItemClasses.d.ts +42 -42
  82. package/Paper/paperClasses.d.ts +39 -39
  83. package/Popover/popoverClasses.d.ts +10 -10
  84. package/Popper/Popper.d.ts +29 -29
  85. package/README.md +2 -1
  86. package/Radio/radioClasses.d.ts +16 -16
  87. package/RadioGroup/RadioGroupContext.d.ts +11 -11
  88. package/RadioGroup/useRadioGroup.d.ts +4 -4
  89. package/Rating/ratingClasses.d.ts +40 -40
  90. package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
  91. package/Select/selectClasses.d.ts +30 -30
  92. package/Skeleton/skeletonClasses.d.ts +24 -24
  93. package/Snackbar/snackbarClasses.d.ts +20 -20
  94. package/SnackbarContent/snackbarContentClasses.d.ts +12 -12
  95. package/SpeedDial/speedDialClasses.d.ts +22 -22
  96. package/SpeedDialAction/speedDialActionClasses.d.ts +20 -20
  97. package/SpeedDialIcon/speedDialIconClasses.d.ts +18 -18
  98. package/Step/StepContext.d.ts +20 -20
  99. package/Step/stepClasses.d.ts +16 -16
  100. package/StepButton/stepButtonClasses.d.ts +14 -14
  101. package/StepConnector/stepConnectorClasses.d.ts +26 -26
  102. package/StepContent/stepContentClasses.d.ts +12 -12
  103. package/StepIcon/stepIconClasses.d.ts +16 -16
  104. package/StepLabel/stepLabelClasses.d.ts +28 -28
  105. package/Stepper/StepperContext.d.ts +18 -18
  106. package/Stepper/stepperClasses.d.ts +14 -14
  107. package/SvgIcon/svgIconClasses.d.ts +24 -24
  108. package/Switch/switchClasses.d.ts +32 -32
  109. package/Tab/tabClasses.d.ts +26 -26
  110. package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
  111. package/Table/tableClasses.d.ts +10 -10
  112. package/TableBody/tableBodyClasses.d.ts +8 -8
  113. package/TableCell/tableCellClasses.d.ts +32 -32
  114. package/TableContainer/tableContainerClasses.d.ts +8 -8
  115. package/TableFooter/tableFooterClasses.d.ts +8 -8
  116. package/TableHead/tableHeadClasses.d.ts +8 -8
  117. package/TablePagination/tablePaginationClasses.d.ts +28 -28
  118. package/TableRow/tableRowClasses.d.ts +16 -16
  119. package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
  120. package/Tabs/tabsClasses.d.ts +32 -32
  121. package/TextField/textFieldClasses.d.ts +8 -8
  122. package/ToggleButton/toggleButtonClasses.d.ts +24 -24
  123. package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
  124. package/Toolbar/toolbarClasses.d.ts +14 -14
  125. package/Tooltip/tooltipClasses.d.ts +30 -30
  126. package/Typography/typographyClasses.d.ts +50 -50
  127. package/className/index.d.ts +1 -1
  128. package/className/index.js +1 -1
  129. package/darkScrollbar/index.d.ts +28 -28
  130. package/index.js +1 -1
  131. package/internal/switchBaseClasses.d.ts +12 -12
  132. package/legacy/Autocomplete/Autocomplete.js +3 -2
  133. package/legacy/BottomNavigation/BottomNavigation.js +0 -0
  134. package/legacy/Box/Box.js +1 -1
  135. package/legacy/Container/Container.js +18 -103
  136. package/legacy/className/index.js +1 -1
  137. package/legacy/index.js +1 -1
  138. package/legacy/locale/index.js +22 -22
  139. package/legacy/styles/createMixins.js +1 -1
  140. package/legacy/styles/createTheme.js +1 -1
  141. package/locale/index.d.ts +71 -71
  142. package/locale/index.js +22 -22
  143. package/modern/Autocomplete/Autocomplete.js +3 -2
  144. package/modern/BottomNavigation/BottomNavigation.js +0 -0
  145. package/modern/Box/Box.js +1 -1
  146. package/modern/Container/Container.js +17 -106
  147. package/modern/className/index.js +1 -1
  148. package/modern/index.js +1 -1
  149. package/modern/locale/index.js +22 -22
  150. package/modern/styles/createMixins.js +1 -1
  151. package/modern/styles/createTheme.js +1 -1
  152. package/node/Autocomplete/Autocomplete.js +4 -2
  153. package/node/BottomNavigation/BottomNavigation.js +0 -0
  154. package/node/Box/Box.js +2 -2
  155. package/node/Container/Container.js +17 -113
  156. package/node/className/index.js +2 -2
  157. package/node/index.js +1 -1
  158. package/node/locale/index.js +22 -22
  159. package/node/styles/createMixins.js +1 -1
  160. package/node/styles/createTheme.js +1 -1
  161. package/package.json +4 -5
  162. package/styles/createMixins.d.ts +2 -6
  163. package/styles/createMixins.js +1 -1
  164. package/styles/createTheme.js +1 -1
  165. package/transitions/index.d.ts +1 -1
  166. package/transitions/transition.d.ts +13 -13
  167. package/transitions/utils.d.ts +23 -23
  168. package/umd/material-ui.development.js +413 -351
  169. package/umd/material-ui.production.min.js +20 -20
  170. package/useMediaQuery/useMediaQuery.d.ts +31 -31
  171. package/useTouchRipple/index.d.ts +1 -1
  172. package/useTouchRipple/useTouchRipple.d.ts +28 -28
  173. package/utils/getScrollbarSize.d.ts +2 -2
  174. package/utils/ownerDocument.d.ts +2 -2
  175. package/utils/ownerWindow.d.ts +2 -2
  176. package/utils/setRef.d.ts +2 -2
package/locale/index.d.ts CHANGED
@@ -1,71 +1,71 @@
1
- import { ComponentsPropsList } from '../styles/props';
2
- export interface Localization {
3
- components?: {
4
- MuiAlert?: {
5
- defaultProps: Pick<ComponentsPropsList['MuiAlert'], 'closeText'>;
6
- };
7
- MuiBreadcrumbs?: {
8
- defaultProps: Pick<ComponentsPropsList['MuiBreadcrumbs'], 'expandText'>;
9
- };
10
- MuiTablePagination?: {
11
- defaultProps: Pick<ComponentsPropsList['MuiTablePagination'], 'labelRowsPerPage' | 'labelDisplayedRows' | 'getItemAriaLabel'>;
12
- };
13
- MuiRating?: {
14
- defaultProps: Pick<ComponentsPropsList['MuiRating'], 'emptyLabelText' | 'getLabelText'>;
15
- };
16
- MuiAutocomplete?: {
17
- defaultProps: Pick<ComponentsPropsList['MuiAutocomplete'], 'clearText' | 'closeText' | 'loadingText' | 'noOptionsText' | 'openText'>;
18
- };
19
- MuiPagination?: {
20
- defaultProps: Pick<ComponentsPropsList['MuiPagination'], 'aria-label' | 'getItemAriaLabel'>;
21
- };
22
- };
23
- }
24
- export declare const amET: Localization;
25
- export declare const arEG: Localization;
26
- export declare const arSD: Localization;
27
- export declare const azAZ: Localization;
28
- export declare const bnBD: Localization;
29
- export declare const bgBG: Localization;
30
- export declare const caES: Localization;
31
- export declare const csCZ: Localization;
32
- export declare const daDK: Localization;
33
- export declare const deDE: Localization;
34
- export declare const elGR: Localization;
35
- export declare const enUS: Localization;
36
- export declare const esES: Localization;
37
- export declare const etEE: Localization;
38
- export declare const faIR: Localization;
39
- export declare const fiFI: Localization;
40
- export declare const frFR: Localization;
41
- export declare const heIL: Localization;
42
- export declare const hiIN: Localization;
43
- export declare const hrHR: Localization;
44
- export declare const huHU: Localization;
45
- export declare const hyAM: Localization;
46
- export declare const idID: Localization;
47
- export declare const isIS: Localization;
48
- export declare const itIT: Localization;
49
- export declare const jaJP: Localization;
50
- export declare const khKH: Localization;
51
- export declare const koKR: Localization;
52
- export declare const kzKZ: Localization;
53
- export declare const mkMK: Localization;
54
- export declare const nbNO: Localization;
55
- export declare const nlNL: Localization;
56
- export declare const plPL: Localization;
57
- export declare const ptBR: Localization;
58
- export declare const ptPT: Localization;
59
- export declare const roRO: Localization;
60
- export declare const srRS: Localization;
61
- export declare const ruRU: Localization;
62
- export declare const siLK: Localization;
63
- export declare const skSK: Localization;
64
- export declare const svSE: Localization;
65
- export declare const thTH: Localization;
66
- export declare const trTR: Localization;
67
- export declare const ukUA: Localization;
68
- export declare const viVN: Localization;
69
- export declare const zhCN: Localization;
70
- export declare const zhHK: Localization;
71
- export declare const zhTW: Localization;
1
+ import { ComponentsPropsList } from '../styles/props';
2
+ export interface Localization {
3
+ components?: {
4
+ MuiAlert?: {
5
+ defaultProps: Pick<ComponentsPropsList['MuiAlert'], 'closeText'>;
6
+ };
7
+ MuiBreadcrumbs?: {
8
+ defaultProps: Pick<ComponentsPropsList['MuiBreadcrumbs'], 'expandText'>;
9
+ };
10
+ MuiTablePagination?: {
11
+ defaultProps: Pick<ComponentsPropsList['MuiTablePagination'], 'labelRowsPerPage' | 'labelDisplayedRows' | 'getItemAriaLabel'>;
12
+ };
13
+ MuiRating?: {
14
+ defaultProps: Pick<ComponentsPropsList['MuiRating'], 'emptyLabelText' | 'getLabelText'>;
15
+ };
16
+ MuiAutocomplete?: {
17
+ defaultProps: Pick<ComponentsPropsList['MuiAutocomplete'], 'clearText' | 'closeText' | 'loadingText' | 'noOptionsText' | 'openText'>;
18
+ };
19
+ MuiPagination?: {
20
+ defaultProps: Pick<ComponentsPropsList['MuiPagination'], 'aria-label' | 'getItemAriaLabel'>;
21
+ };
22
+ };
23
+ }
24
+ export declare const amET: Localization;
25
+ export declare const arEG: Localization;
26
+ export declare const arSD: Localization;
27
+ export declare const azAZ: Localization;
28
+ export declare const bnBD: Localization;
29
+ export declare const bgBG: Localization;
30
+ export declare const caES: Localization;
31
+ export declare const csCZ: Localization;
32
+ export declare const daDK: Localization;
33
+ export declare const deDE: Localization;
34
+ export declare const elGR: Localization;
35
+ export declare const enUS: Localization;
36
+ export declare const esES: Localization;
37
+ export declare const etEE: Localization;
38
+ export declare const faIR: Localization;
39
+ export declare const fiFI: Localization;
40
+ export declare const frFR: Localization;
41
+ export declare const heIL: Localization;
42
+ export declare const hiIN: Localization;
43
+ export declare const hrHR: Localization;
44
+ export declare const huHU: Localization;
45
+ export declare const hyAM: Localization;
46
+ export declare const idID: Localization;
47
+ export declare const isIS: Localization;
48
+ export declare const itIT: Localization;
49
+ export declare const jaJP: Localization;
50
+ export declare const khKH: Localization;
51
+ export declare const koKR: Localization;
52
+ export declare const kzKZ: Localization;
53
+ export declare const mkMK: Localization;
54
+ export declare const nbNO: Localization;
55
+ export declare const nlNL: Localization;
56
+ export declare const plPL: Localization;
57
+ export declare const ptBR: Localization;
58
+ export declare const ptPT: Localization;
59
+ export declare const roRO: Localization;
60
+ export declare const srRS: Localization;
61
+ export declare const ruRU: Localization;
62
+ export declare const siLK: Localization;
63
+ export declare const skSK: Localization;
64
+ export declare const svSE: Localization;
65
+ export declare const thTH: Localization;
66
+ export declare const trTR: Localization;
67
+ export declare const ukUA: Localization;
68
+ export declare const viVN: Localization;
69
+ export declare const zhCN: Localization;
70
+ export declare const zhHK: Localization;
71
+ export declare const zhTW: Localization;
package/locale/index.js CHANGED
@@ -82,26 +82,26 @@ export const arEG = {
82
82
  components: {
83
83
  MuiBreadcrumbs: {
84
84
  defaultProps: {
85
- expandText: 'ظهر العنوان'
85
+ expandText: 'إظهار المسار'
86
86
  }
87
87
  },
88
88
  MuiTablePagination: {
89
89
  defaultProps: {
90
90
  getItemAriaLabel: type => {
91
91
  if (type === 'first') {
92
- return 'امش للصفحة الأولى';
92
+ return 'انتقل إلى الصفحة الأولى';
93
93
  }
94
94
 
95
95
  if (type === 'last') {
96
- return 'امش للصفحة الأخيرة';
96
+ return 'انتقل إلى الصفحة الأخيرة';
97
97
  }
98
98
 
99
99
  if (type === 'next') {
100
- return 'امش للصفحة التالية';
100
+ return 'انتقل إلى الصفحة التالية';
101
101
  } // if (type === 'previous') {
102
102
 
103
103
 
104
- return 'امش للصفحة السابقة';
104
+ return 'انتقل إلى الصفحة السابقة';
105
105
  },
106
106
  labelRowsPerPage: 'عدد الصفوف في الصفحة:',
107
107
  labelDisplayedRows: ({
@@ -121,7 +121,7 @@ export const arEG = {
121
121
  defaultProps: {
122
122
  clearText: 'مسح',
123
123
  closeText: 'إغلاق',
124
- loadingText: 'يتم التحميل…',
124
+ loadingText: 'جار التحميل...',
125
125
  noOptionsText: 'لا يوجد خيارات',
126
126
  openText: 'فتح'
127
127
  }
@@ -136,23 +136,23 @@ export const arEG = {
136
136
  'aria-label': 'التنقل عبر الصفحات',
137
137
  getItemAriaLabel: (type, page, selected) => {
138
138
  if (type === 'page') {
139
- return `${selected ? '' : 'امش إلى '} صفحة ${page}`;
139
+ return `${selected ? '' : 'انتقل إلى '} صفحة ${page}`;
140
140
  }
141
141
 
142
142
  if (type === 'first') {
143
- return 'امش للصفحة الأولى';
143
+ return 'انتقل إلى الصفحة الأولى';
144
144
  }
145
145
 
146
146
  if (type === 'last') {
147
- return 'امش للصفحة الأخيرة';
147
+ return 'انتقل إلى الصفحة الأخيرة';
148
148
  }
149
149
 
150
150
  if (type === 'next') {
151
- return 'امش للصفحة التالية';
151
+ return 'انتقل إلى الصفحة التالية';
152
152
  } // if (type === 'previous') {
153
153
 
154
154
 
155
- return 'امش للصفحة السابقة';
155
+ return 'انتقل إلى الصفحة السابقة';
156
156
  }
157
157
  }
158
158
  }
@@ -162,26 +162,26 @@ export const arSD = {
162
162
  components: {
163
163
  MuiBreadcrumbs: {
164
164
  defaultProps: {
165
- expandText: 'إظهر العنوان'
165
+ expandText: 'إظهار المسار'
166
166
  }
167
167
  },
168
168
  MuiTablePagination: {
169
169
  defaultProps: {
170
170
  getItemAriaLabel: type => {
171
171
  if (type === 'first') {
172
- return 'إذهب الى الصفحة الأولى';
172
+ return 'انتقل إلى الصفحة الأولى';
173
173
  }
174
174
 
175
175
  if (type === 'last') {
176
- return 'إذهب الي الصفحة الأخيرة';
176
+ return 'انتقل إلى الصفحة الأخيرة';
177
177
  }
178
178
 
179
179
  if (type === 'next') {
180
- return 'إذهب الى الصفحة التالية';
180
+ return 'انتقل إلى الصفحة التالية';
181
181
  } // if (type === 'previous') {
182
182
 
183
183
 
184
- return 'إذهب الى الصفحة السابقة';
184
+ return 'انتقل إلى الصفحة السابقة';
185
185
  },
186
186
  labelRowsPerPage: 'عدد الصفوف في الصفحة:',
187
187
  labelDisplayedRows: ({
@@ -201,7 +201,7 @@ export const arSD = {
201
201
  defaultProps: {
202
202
  clearText: 'مسح',
203
203
  closeText: 'إغلاق',
204
- loadingText: 'يتم التحميل…',
204
+ loadingText: 'جار التحميل...',
205
205
  noOptionsText: 'لا يوجد خيارات',
206
206
  openText: 'فتح'
207
207
  }
@@ -216,23 +216,23 @@ export const arSD = {
216
216
  'aria-label': 'التنقل عبر الصفحات',
217
217
  getItemAriaLabel: (type, page, selected) => {
218
218
  if (type === 'page') {
219
- return `${selected ? '' : 'إذهب إلى '} صفحة ${page}`;
219
+ return `${selected ? '' : 'انتقل إلى '} صفحة ${page}`;
220
220
  }
221
221
 
222
222
  if (type === 'first') {
223
- return 'إذهب الى الصفحة الأولى';
223
+ return 'انتقل إلى الصفحة الأولى';
224
224
  }
225
225
 
226
226
  if (type === 'last') {
227
- return 'إذهب الي الصفحة الأخيرة';
227
+ return 'انتقل الي الصفحة الأخيرة';
228
228
  }
229
229
 
230
230
  if (type === 'next') {
231
- return 'إذهب الى الصفحة التالية';
231
+ return 'انتقل إلى الصفحة التالية';
232
232
  } // if (type === 'previous') {
233
233
 
234
234
 
235
- return 'إذهب الى الصفحة السابقة';
235
+ return 'انتقل إلى الصفحة السابقة';
236
236
  }
237
237
  }
238
238
  }
@@ -433,7 +433,7 @@ const Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps
433
433
  componentName: 'Autocomplete'
434
434
  }));
435
435
  const hasClearIcon = !disableClearable && !disabled && dirty && !readOnly;
436
- const hasPopupIcon = (!freeSolo || forcePopupIcon === true) && forcePopupIcon !== false;
436
+ const hasPopupIcon = (!freeSolo || forcePopupIcon === true) && forcePopupIcon !== false; // If you modify this, make sure to keep the `AutocompleteOwnerState` type in sync.
437
437
 
438
438
  const ownerState = _extends({}, props, {
439
439
  disablePortal,
@@ -456,7 +456,7 @@ const Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps
456
456
  }, getTagProps(params));
457
457
 
458
458
  if (renderTags) {
459
- startAdornment = renderTags(value, getCustomizedTagProps);
459
+ startAdornment = renderTags(value, getCustomizedTagProps, ownerState);
460
460
  } else {
461
461
  startAdornment = value.map((option, index) => /*#__PURE__*/_jsx(Chip, _extends({
462
462
  label: getOptionLabel(option),
@@ -1033,6 +1033,7 @@ process.env.NODE_ENV !== "production" ? Autocomplete.propTypes
1033
1033
  *
1034
1034
  * @param {T[]} value The `value` provided to the component.
1035
1035
  * @param {function} getTagProps A tag props getter.
1036
+ * @param {object} ownerState The state of the Autocomplete component.
1036
1037
  * @returns {ReactNode}
1037
1038
  */
1038
1039
  renderTags: PropTypes.func,
File without changes
package/modern/Box/Box.js CHANGED
@@ -1,5 +1,5 @@
1
- import PropTypes from 'prop-types';
2
1
  import { createBox } from '@mui/system';
2
+ import PropTypes from 'prop-types';
3
3
  import { unstable_ClassNameGenerator as ClassNameGenerator } from '../className';
4
4
  import { createTheme } from '../styles';
5
5
  const defaultTheme = createTheme();
@@ -1,108 +1,24 @@
1
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
2
- import _extends from "@babel/runtime/helpers/esm/extends";
3
- const _excluded = ["className", "component", "disableGutters", "fixed", "maxWidth"];
4
- import * as React from 'react';
1
+ /* eslint-disable material-ui/mui-name-matches-component-name */
5
2
  import PropTypes from 'prop-types';
6
- import clsx from 'clsx';
7
- import { unstable_composeClasses as composeClasses } from '@mui/base';
8
- import useThemeProps from '../styles/useThemeProps';
9
- import styled from '../styles/styled';
10
- import { getContainerUtilityClass } from './containerClasses';
3
+ import { createContainer } from '@mui/system';
11
4
  import capitalize from '../utils/capitalize';
12
- import { jsx as _jsx } from "react/jsx-runtime";
13
-
14
- const useUtilityClasses = ownerState => {
15
- const {
16
- classes,
17
- fixed,
18
- disableGutters,
19
- maxWidth
20
- } = ownerState;
21
- const slots = {
22
- root: ['root', maxWidth && `maxWidth${capitalize(String(maxWidth))}`, fixed && 'fixed', disableGutters && 'disableGutters']
23
- };
24
- return composeClasses(slots, getContainerUtilityClass, classes);
25
- };
26
-
27
- const ContainerRoot = styled('div', {
28
- name: 'MuiContainer',
29
- slot: 'Root',
30
- overridesResolver: (props, styles) => {
31
- const {
32
- ownerState
33
- } = props;
34
- return [styles.root, styles[`maxWidth${capitalize(String(ownerState.maxWidth))}`], ownerState.fixed && styles.fixed, ownerState.disableGutters && styles.disableGutters];
35
- }
36
- })(({
37
- theme,
38
- ownerState
39
- }) => _extends({
40
- width: '100%',
41
- marginLeft: 'auto',
42
- boxSizing: 'border-box',
43
- marginRight: 'auto',
44
- display: 'block'
45
- }, !ownerState.disableGutters && {
46
- paddingLeft: theme.spacing(2),
47
- paddingRight: theme.spacing(2),
48
- [theme.breakpoints.up('sm')]: {
49
- paddingLeft: theme.spacing(3),
50
- paddingRight: theme.spacing(3)
51
- }
52
- }), ({
53
- theme,
54
- ownerState
55
- }) => ownerState.fixed && Object.keys(theme.breakpoints.values).reduce((acc, breakpoint) => {
56
- const value = theme.breakpoints.values[breakpoint];
57
-
58
- if (value !== 0) {
59
- acc[theme.breakpoints.up(breakpoint)] = {
60
- maxWidth: `${value}${theme.breakpoints.unit}`
61
- };
62
- }
63
-
64
- return acc;
65
- }, {}), ({
66
- theme,
67
- ownerState
68
- }) => _extends({}, ownerState.maxWidth === 'xs' && {
69
- [theme.breakpoints.up('xs')]: {
70
- maxWidth: Math.max(theme.breakpoints.values.xs, 444)
71
- }
72
- }, ownerState.maxWidth && ownerState.maxWidth !== 'xs' && {
73
- [theme.breakpoints.up(ownerState.maxWidth)]: {
74
- maxWidth: `${theme.breakpoints.values[ownerState.maxWidth]}${theme.breakpoints.unit}`
75
- }
76
- }));
77
- const Container = /*#__PURE__*/React.forwardRef(function Container(inProps, ref) {
78
- const props = useThemeProps({
5
+ import styled from '../styles/styled';
6
+ import useThemeProps from '../styles/useThemeProps';
7
+ const Container = createContainer({
8
+ createStyledComponent: styled('div', {
9
+ name: 'MuiContainer',
10
+ slot: 'Root',
11
+ overridesResolver: (props, styles) => {
12
+ const {
13
+ ownerState
14
+ } = props;
15
+ return [styles.root, styles[`maxWidth${capitalize(String(ownerState.maxWidth))}`], ownerState.fixed && styles.fixed, ownerState.disableGutters && styles.disableGutters];
16
+ }
17
+ }),
18
+ useThemeProps: inProps => useThemeProps({
79
19
  props: inProps,
80
20
  name: 'MuiContainer'
81
- });
82
-
83
- const {
84
- className,
85
- component = 'div',
86
- disableGutters = false,
87
- fixed = false,
88
- maxWidth = 'lg'
89
- } = props,
90
- other = _objectWithoutPropertiesLoose(props, _excluded);
91
-
92
- const ownerState = _extends({}, props, {
93
- component,
94
- disableGutters,
95
- fixed,
96
- maxWidth
97
- });
98
-
99
- const classes = useUtilityClasses(ownerState);
100
- return /*#__PURE__*/_jsx(ContainerRoot, _extends({
101
- as: component,
102
- ownerState: ownerState,
103
- className: clsx(classes.root, className),
104
- ref: ref
105
- }, other));
21
+ })
106
22
  });
107
23
  process.env.NODE_ENV !== "production" ? Container.propTypes
108
24
  /* remove-proptypes */
@@ -122,11 +38,6 @@ process.env.NODE_ENV !== "production" ? Container.propTypes
122
38
  */
123
39
  classes: PropTypes.object,
124
40
 
125
- /**
126
- * @ignore
127
- */
128
- className: PropTypes.string,
129
-
130
41
  /**
131
42
  * The component used for the root node.
132
43
  * Either a string to use a HTML element or a component.
@@ -1,2 +1,2 @@
1
1
  // eslint-disable-next-line import/prefer-default-export
2
- export { unstable_ClassNameGenerator } from '@mui/private-classnames';
2
+ export { unstable_ClassNameGenerator } from '@mui/utils';
package/modern/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.7.0
1
+ /** @license MUI v5.8.0
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
@@ -82,26 +82,26 @@ export const arEG = {
82
82
  components: {
83
83
  MuiBreadcrumbs: {
84
84
  defaultProps: {
85
- expandText: 'ظهر العنوان'
85
+ expandText: 'إظهار المسار'
86
86
  }
87
87
  },
88
88
  MuiTablePagination: {
89
89
  defaultProps: {
90
90
  getItemAriaLabel: type => {
91
91
  if (type === 'first') {
92
- return 'امش للصفحة الأولى';
92
+ return 'انتقل إلى الصفحة الأولى';
93
93
  }
94
94
 
95
95
  if (type === 'last') {
96
- return 'امش للصفحة الأخيرة';
96
+ return 'انتقل إلى الصفحة الأخيرة';
97
97
  }
98
98
 
99
99
  if (type === 'next') {
100
- return 'امش للصفحة التالية';
100
+ return 'انتقل إلى الصفحة التالية';
101
101
  } // if (type === 'previous') {
102
102
 
103
103
 
104
- return 'امش للصفحة السابقة';
104
+ return 'انتقل إلى الصفحة السابقة';
105
105
  },
106
106
  labelRowsPerPage: 'عدد الصفوف في الصفحة:',
107
107
  labelDisplayedRows: ({
@@ -121,7 +121,7 @@ export const arEG = {
121
121
  defaultProps: {
122
122
  clearText: 'مسح',
123
123
  closeText: 'إغلاق',
124
- loadingText: 'يتم التحميل…',
124
+ loadingText: 'جار التحميل...',
125
125
  noOptionsText: 'لا يوجد خيارات',
126
126
  openText: 'فتح'
127
127
  }
@@ -136,23 +136,23 @@ export const arEG = {
136
136
  'aria-label': 'التنقل عبر الصفحات',
137
137
  getItemAriaLabel: (type, page, selected) => {
138
138
  if (type === 'page') {
139
- return `${selected ? '' : 'امش إلى '} صفحة ${page}`;
139
+ return `${selected ? '' : 'انتقل إلى '} صفحة ${page}`;
140
140
  }
141
141
 
142
142
  if (type === 'first') {
143
- return 'امش للصفحة الأولى';
143
+ return 'انتقل إلى الصفحة الأولى';
144
144
  }
145
145
 
146
146
  if (type === 'last') {
147
- return 'امش للصفحة الأخيرة';
147
+ return 'انتقل إلى الصفحة الأخيرة';
148
148
  }
149
149
 
150
150
  if (type === 'next') {
151
- return 'امش للصفحة التالية';
151
+ return 'انتقل إلى الصفحة التالية';
152
152
  } // if (type === 'previous') {
153
153
 
154
154
 
155
- return 'امش للصفحة السابقة';
155
+ return 'انتقل إلى الصفحة السابقة';
156
156
  }
157
157
  }
158
158
  }
@@ -162,26 +162,26 @@ export const arSD = {
162
162
  components: {
163
163
  MuiBreadcrumbs: {
164
164
  defaultProps: {
165
- expandText: 'إظهر العنوان'
165
+ expandText: 'إظهار المسار'
166
166
  }
167
167
  },
168
168
  MuiTablePagination: {
169
169
  defaultProps: {
170
170
  getItemAriaLabel: type => {
171
171
  if (type === 'first') {
172
- return 'إذهب الى الصفحة الأولى';
172
+ return 'انتقل إلى الصفحة الأولى';
173
173
  }
174
174
 
175
175
  if (type === 'last') {
176
- return 'إذهب الي الصفحة الأخيرة';
176
+ return 'انتقل إلى الصفحة الأخيرة';
177
177
  }
178
178
 
179
179
  if (type === 'next') {
180
- return 'إذهب الى الصفحة التالية';
180
+ return 'انتقل إلى الصفحة التالية';
181
181
  } // if (type === 'previous') {
182
182
 
183
183
 
184
- return 'إذهب الى الصفحة السابقة';
184
+ return 'انتقل إلى الصفحة السابقة';
185
185
  },
186
186
  labelRowsPerPage: 'عدد الصفوف في الصفحة:',
187
187
  labelDisplayedRows: ({
@@ -201,7 +201,7 @@ export const arSD = {
201
201
  defaultProps: {
202
202
  clearText: 'مسح',
203
203
  closeText: 'إغلاق',
204
- loadingText: 'يتم التحميل…',
204
+ loadingText: 'جار التحميل...',
205
205
  noOptionsText: 'لا يوجد خيارات',
206
206
  openText: 'فتح'
207
207
  }
@@ -216,23 +216,23 @@ export const arSD = {
216
216
  'aria-label': 'التنقل عبر الصفحات',
217
217
  getItemAriaLabel: (type, page, selected) => {
218
218
  if (type === 'page') {
219
- return `${selected ? '' : 'إذهب إلى '} صفحة ${page}`;
219
+ return `${selected ? '' : 'انتقل إلى '} صفحة ${page}`;
220
220
  }
221
221
 
222
222
  if (type === 'first') {
223
- return 'إذهب الى الصفحة الأولى';
223
+ return 'انتقل إلى الصفحة الأولى';
224
224
  }
225
225
 
226
226
  if (type === 'last') {
227
- return 'إذهب الي الصفحة الأخيرة';
227
+ return 'انتقل الي الصفحة الأخيرة';
228
228
  }
229
229
 
230
230
  if (type === 'next') {
231
- return 'إذهب الى الصفحة التالية';
231
+ return 'انتقل إلى الصفحة التالية';
232
232
  } // if (type === 'previous') {
233
233
 
234
234
 
235
- return 'إذهب الى الصفحة السابقة';
235
+ return 'انتقل إلى الصفحة السابقة';
236
236
  }
237
237
  }
238
238
  }
@@ -1,5 +1,5 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
- export default function createMixins(breakpoints, spacing, mixins) {
2
+ export default function createMixins(breakpoints, mixins) {
3
3
  return _extends({
4
4
  toolbar: {
5
5
  minHeight: 56,
@@ -23,7 +23,7 @@ function createTheme(options = {}, ...args) {
23
23
  const palette = createPalette(paletteInput);
24
24
  const systemTheme = systemCreateTheme(options);
25
25
  let muiTheme = deepmerge(systemTheme, {
26
- mixins: createMixins(systemTheme.breakpoints, systemTheme.spacing, mixinsInput),
26
+ mixins: createMixins(systemTheme.breakpoints, mixinsInput),
27
27
  palette,
28
28
  // Don't use [...shadows] until you've verified its transpiled code is not invoking the iterator protocol.
29
29
  shadows: shadows.slice(),
@@ -478,7 +478,8 @@ const Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps
478
478
  componentName: 'Autocomplete'
479
479
  }));
480
480
  const hasClearIcon = !disableClearable && !disabled && dirty && !readOnly;
481
- const hasPopupIcon = (!freeSolo || forcePopupIcon === true) && forcePopupIcon !== false;
481
+ const hasPopupIcon = (!freeSolo || forcePopupIcon === true) && forcePopupIcon !== false; // If you modify this, make sure to keep the `AutocompleteOwnerState` type in sync.
482
+
482
483
  const ownerState = (0, _extends2.default)({}, props, {
483
484
  disablePortal,
484
485
  focused,
@@ -499,7 +500,7 @@ const Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps
499
500
  }, getTagProps(params));
500
501
 
501
502
  if (renderTags) {
502
- startAdornment = renderTags(value, getCustomizedTagProps);
503
+ startAdornment = renderTags(value, getCustomizedTagProps, ownerState);
503
504
  } else {
504
505
  startAdornment = value.map((option, index) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_Chip.default, (0, _extends2.default)({
505
506
  label: getOptionLabel(option),
@@ -1076,6 +1077,7 @@ process.env.NODE_ENV !== "production" ? Autocomplete.propTypes
1076
1077
  *
1077
1078
  * @param {T[]} value The `value` provided to the component.
1078
1079
  * @param {function} getTagProps A tag props getter.
1080
+ * @param {object} ownerState The state of the Autocomplete component.
1079
1081
  * @returns {ReactNode}
1080
1082
  */
1081
1083
  renderTags: _propTypes.default.func,
File without changes