@mui/material 5.7.0 → 5.8.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 (234) 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/Alert.js +1 -0
  6. package/Alert/alertClasses.d.ts +44 -44
  7. package/AlertTitle/alertTitleClasses.d.ts +8 -8
  8. package/AppBar/appBarClasses.d.ts +28 -28
  9. package/Autocomplete/Autocomplete.d.ts +23 -1
  10. package/Autocomplete/Autocomplete.js +3 -2
  11. package/Autocomplete/autocompleteClasses.d.ts +54 -54
  12. package/Avatar/avatarClasses.d.ts +20 -20
  13. package/AvatarGroup/avatarGroupClasses.d.ts +10 -10
  14. package/Backdrop/backdropClasses.d.ts +10 -10
  15. package/Badge/Badge.d.ts +1 -34
  16. package/Badge/badgeClasses.d.ts +56 -24
  17. package/BottomNavigation/BottomNavigation.js +0 -0
  18. package/BottomNavigation/bottomNavigationClasses.d.ts +8 -8
  19. package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +14 -14
  20. package/Box/Box.js +1 -1
  21. package/Breadcrumbs/breadcrumbsClasses.d.ts +14 -14
  22. package/Button/buttonClasses.d.ts +76 -76
  23. package/ButtonBase/TouchRipple.js +5 -5
  24. package/ButtonBase/buttonBaseClasses.d.ts +12 -12
  25. package/ButtonBase/touchRippleClasses.d.ts +20 -20
  26. package/ButtonGroup/ButtonGroupContext.d.ts +18 -18
  27. package/ButtonGroup/buttonGroupClasses.d.ts +58 -58
  28. package/CHANGELOG.md +201 -4
  29. package/Card/cardClasses.d.ts +8 -8
  30. package/CardActionArea/cardActionAreaClasses.d.ts +12 -12
  31. package/CardActions/cardActionsClasses.d.ts +10 -10
  32. package/CardContent/cardContentClasses.d.ts +8 -8
  33. package/CardHeader/cardHeaderClasses.d.ts +18 -18
  34. package/CardMedia/cardMediaClasses.d.ts +12 -12
  35. package/Checkbox/checkboxClasses.d.ts +18 -18
  36. package/Chip/chipClasses.d.ts +80 -80
  37. package/CircularProgress/circularProgressClasses.d.ts +26 -26
  38. package/ClickAwayListener/index.d.ts +2 -2
  39. package/Collapse/collapseClasses.d.ts +18 -18
  40. package/Container/Container.js +17 -106
  41. package/Container/containerClasses.d.ts +6 -22
  42. package/Dialog/DialogContext.d.ts +6 -6
  43. package/Dialog/dialogClasses.d.ts +36 -36
  44. package/DialogActions/dialogActionsClasses.d.ts +10 -10
  45. package/DialogContent/dialogContentClasses.d.ts +10 -10
  46. package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
  47. package/DialogTitle/dialogTitleClasses.d.ts +8 -8
  48. package/Divider/dividerClasses.d.ts +34 -34
  49. package/Drawer/drawerClasses.d.ts +30 -30
  50. package/Fab/Fab.js +3 -1
  51. package/Fab/fabClasses.d.ts +26 -26
  52. package/FilledInput/filledInputClasses.d.ts +40 -40
  53. package/FormControl/formControlClasses.d.ts +14 -14
  54. package/FormControlLabel/formControlLabelClasses.d.ts +20 -20
  55. package/FormGroup/formGroupClasses.d.ts +12 -12
  56. package/FormHelperText/formHelperTextClasses.d.ts +22 -22
  57. package/FormLabel/formLabelClasses.d.ts +22 -22
  58. package/Grid/gridClasses.d.ts +48 -48
  59. package/Grow/Grow.js +4 -3
  60. package/Icon/iconClasses.d.ts +24 -24
  61. package/IconButton/iconButtonClasses.d.ts +26 -26
  62. package/ImageList/imageListClasses.d.ts +16 -16
  63. package/ImageListItem/imageListItemClasses.d.ts +18 -18
  64. package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
  65. package/Input/inputClasses.d.ts +34 -34
  66. package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
  67. package/InputBase/inputBaseClasses.d.ts +44 -44
  68. package/InputLabel/InputLabel.d.ts +5 -0
  69. package/InputLabel/InputLabel.js +6 -0
  70. package/InputLabel/inputLabelClasses.d.ts +32 -32
  71. package/LinearProgress/linearProgressClasses.d.ts +42 -42
  72. package/Link/linkClasses.d.ts +18 -18
  73. package/List/listClasses.d.ts +14 -14
  74. package/ListItem/listItemClasses.d.ts +30 -30
  75. package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
  76. package/ListItemButton/ListItemButton.js +7 -1
  77. package/ListItemButton/listItemButtonClasses.d.ts +22 -22
  78. package/ListItemIcon/listItemIconClasses.d.ts +10 -10
  79. package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
  80. package/ListItemText/listItemTextClasses.d.ts +18 -18
  81. package/ListSubheader/listSubheaderClasses.d.ts +18 -18
  82. package/Menu/menuClasses.d.ts +12 -12
  83. package/MenuItem/menuItemClasses.d.ts +20 -20
  84. package/MenuList/MenuList.d.ts +1 -1
  85. package/MenuList/MenuList.js +1 -1
  86. package/MobileStepper/mobileStepperClasses.d.ts +22 -22
  87. package/NativeSelect/nativeSelectClasses.d.ts +32 -32
  88. package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
  89. package/Pagination/paginationClasses.d.ts +14 -14
  90. package/PaginationItem/paginationItemClasses.d.ts +42 -42
  91. package/Paper/Paper.js +20 -15
  92. package/Paper/index.d.ts +1 -1
  93. package/Paper/paperClasses.d.ts +39 -39
  94. package/Popover/popoverClasses.d.ts +10 -10
  95. package/Popper/Popper.d.ts +29 -29
  96. package/README.md +2 -1
  97. package/Radio/Radio.js +4 -4
  98. package/Radio/radioClasses.d.ts +16 -16
  99. package/RadioGroup/RadioGroupContext.d.ts +11 -11
  100. package/RadioGroup/useRadioGroup.d.ts +4 -4
  101. package/Rating/ratingClasses.d.ts +40 -40
  102. package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
  103. package/Select/SelectInput.js +2 -2
  104. package/Select/selectClasses.d.ts +30 -30
  105. package/Skeleton/skeletonClasses.d.ts +24 -24
  106. package/Slider/Slider.js +1 -5
  107. package/Snackbar/snackbarClasses.d.ts +20 -20
  108. package/SnackbarContent/snackbarContentClasses.d.ts +12 -12
  109. package/SpeedDial/speedDialClasses.d.ts +22 -22
  110. package/SpeedDialAction/speedDialActionClasses.d.ts +20 -20
  111. package/SpeedDialIcon/speedDialIconClasses.d.ts +18 -18
  112. package/Step/StepContext.d.ts +20 -20
  113. package/Step/stepClasses.d.ts +16 -16
  114. package/StepButton/stepButtonClasses.d.ts +14 -14
  115. package/StepConnector/stepConnectorClasses.d.ts +26 -26
  116. package/StepContent/stepContentClasses.d.ts +12 -12
  117. package/StepIcon/stepIconClasses.d.ts +16 -16
  118. package/StepLabel/stepLabelClasses.d.ts +28 -28
  119. package/Stepper/StepperContext.d.ts +18 -18
  120. package/Stepper/stepperClasses.d.ts +14 -14
  121. package/SvgIcon/svgIconClasses.d.ts +24 -24
  122. package/Switch/switchClasses.d.ts +32 -32
  123. package/Tab/tabClasses.d.ts +26 -26
  124. package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
  125. package/Table/tableClasses.d.ts +10 -10
  126. package/TableBody/tableBodyClasses.d.ts +8 -8
  127. package/TableCell/tableCellClasses.d.ts +32 -32
  128. package/TableContainer/tableContainerClasses.d.ts +8 -8
  129. package/TableFooter/tableFooterClasses.d.ts +8 -8
  130. package/TableHead/tableHeadClasses.d.ts +8 -8
  131. package/TablePagination/tablePaginationClasses.d.ts +28 -28
  132. package/TableRow/tableRowClasses.d.ts +16 -16
  133. package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
  134. package/Tabs/Tabs.js +2 -2
  135. package/Tabs/tabsClasses.d.ts +32 -32
  136. package/TextField/textFieldClasses.d.ts +8 -8
  137. package/ToggleButton/toggleButtonClasses.d.ts +24 -24
  138. package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
  139. package/Toolbar/toolbarClasses.d.ts +14 -14
  140. package/Tooltip/tooltipClasses.d.ts +30 -30
  141. package/Typography/typographyClasses.d.ts +50 -50
  142. package/className/index.d.ts +1 -1
  143. package/className/index.js +1 -1
  144. package/darkScrollbar/index.d.ts +28 -28
  145. package/index.js +1 -1
  146. package/internal/switchBaseClasses.d.ts +12 -12
  147. package/legacy/Alert/Alert.js +1 -0
  148. package/legacy/Autocomplete/Autocomplete.js +3 -2
  149. package/legacy/BottomNavigation/BottomNavigation.js +0 -0
  150. package/legacy/Box/Box.js +1 -1
  151. package/legacy/ButtonBase/TouchRipple.js +5 -5
  152. package/legacy/Container/Container.js +18 -103
  153. package/legacy/Fab/Fab.js +3 -1
  154. package/legacy/Grow/Grow.js +4 -3
  155. package/legacy/InputLabel/InputLabel.js +6 -0
  156. package/legacy/ListItemButton/ListItemButton.js +7 -1
  157. package/legacy/MenuList/MenuList.js +1 -1
  158. package/legacy/Paper/Paper.js +10 -7
  159. package/legacy/Radio/Radio.js +4 -4
  160. package/legacy/Select/SelectInput.js +2 -2
  161. package/legacy/Slider/Slider.js +1 -10
  162. package/legacy/Tabs/Tabs.js +2 -2
  163. package/legacy/className/index.js +1 -1
  164. package/legacy/index.js +1 -1
  165. package/legacy/locale/index.js +22 -22
  166. package/legacy/styles/createMixins.js +5 -3
  167. package/legacy/styles/createTheme.js +1 -1
  168. package/legacy/styles/experimental_extendTheme.js +22 -3
  169. package/locale/index.d.ts +71 -71
  170. package/locale/index.js +22 -22
  171. package/modern/Alert/Alert.js +1 -0
  172. package/modern/Autocomplete/Autocomplete.js +3 -2
  173. package/modern/BottomNavigation/BottomNavigation.js +0 -0
  174. package/modern/Box/Box.js +1 -1
  175. package/modern/ButtonBase/TouchRipple.js +5 -5
  176. package/modern/Container/Container.js +17 -106
  177. package/modern/Fab/Fab.js +3 -1
  178. package/modern/Grow/Grow.js +4 -3
  179. package/modern/InputLabel/InputLabel.js +6 -0
  180. package/modern/ListItemButton/ListItemButton.js +7 -1
  181. package/modern/MenuList/MenuList.js +1 -1
  182. package/modern/Paper/Paper.js +8 -7
  183. package/modern/Radio/Radio.js +4 -4
  184. package/modern/Select/SelectInput.js +2 -2
  185. package/modern/Slider/Slider.js +1 -5
  186. package/modern/Tabs/Tabs.js +2 -2
  187. package/modern/className/index.js +1 -1
  188. package/modern/index.js +1 -1
  189. package/modern/locale/index.js +22 -22
  190. package/modern/styles/createMixins.js +5 -3
  191. package/modern/styles/createTheme.js +1 -1
  192. package/modern/styles/experimental_extendTheme.js +18 -2
  193. package/node/Alert/Alert.js +1 -0
  194. package/node/Autocomplete/Autocomplete.js +4 -2
  195. package/node/BottomNavigation/BottomNavigation.js +0 -0
  196. package/node/Box/Box.js +2 -2
  197. package/node/ButtonBase/TouchRipple.js +5 -5
  198. package/node/Container/Container.js +17 -113
  199. package/node/Fab/Fab.js +3 -1
  200. package/node/Grow/Grow.js +4 -3
  201. package/node/InputLabel/InputLabel.js +6 -0
  202. package/node/ListItemButton/ListItemButton.js +7 -1
  203. package/node/MenuList/MenuList.js +1 -1
  204. package/node/Paper/Paper.js +22 -14
  205. package/node/Radio/Radio.js +4 -4
  206. package/node/Select/SelectInput.js +2 -2
  207. package/node/Slider/Slider.js +1 -5
  208. package/node/Tabs/Tabs.js +2 -2
  209. package/node/className/index.js +2 -2
  210. package/node/index.js +1 -1
  211. package/node/locale/index.js +22 -22
  212. package/node/styles/createMixins.js +5 -3
  213. package/node/styles/createTheme.js +1 -1
  214. package/node/styles/experimental_extendTheme.js +20 -3
  215. package/package.json +5 -6
  216. package/styles/createMixins.d.ts +2 -6
  217. package/styles/createMixins.js +5 -3
  218. package/styles/createPalette.d.ts +1 -1
  219. package/styles/createTheme.js +1 -1
  220. package/styles/experimental_extendTheme.d.ts +30 -0
  221. package/styles/experimental_extendTheme.js +19 -3
  222. package/styles/index.d.ts +1 -0
  223. package/transitions/index.d.ts +1 -1
  224. package/transitions/transition.d.ts +13 -13
  225. package/transitions/utils.d.ts +23 -23
  226. package/umd/material-ui.development.js +697 -585
  227. package/umd/material-ui.production.min.js +20 -20
  228. package/useMediaQuery/useMediaQuery.d.ts +31 -31
  229. package/useTouchRipple/index.d.ts +1 -1
  230. package/useTouchRipple/useTouchRipple.d.ts +28 -28
  231. package/utils/getScrollbarSize.d.ts +2 -2
  232. package/utils/ownerDocument.d.ts +2 -2
  233. package/utils/ownerWindow.d.ts +2 -2
  234. package/utils/setRef.d.ts +2 -2
@@ -85,26 +85,26 @@ export var arEG = {
85
85
  components: {
86
86
  MuiBreadcrumbs: {
87
87
  defaultProps: {
88
- expandText: 'ظهر العنوان'
88
+ expandText: 'إظهار المسار'
89
89
  }
90
90
  },
91
91
  MuiTablePagination: {
92
92
  defaultProps: {
93
93
  getItemAriaLabel: function getItemAriaLabel(type) {
94
94
  if (type === 'first') {
95
- return 'امش للصفحة الأولى';
95
+ return 'انتقل إلى الصفحة الأولى';
96
96
  }
97
97
 
98
98
  if (type === 'last') {
99
- return 'امش للصفحة الأخيرة';
99
+ return 'انتقل إلى الصفحة الأخيرة';
100
100
  }
101
101
 
102
102
  if (type === 'next') {
103
- return 'امش للصفحة التالية';
103
+ return 'انتقل إلى الصفحة التالية';
104
104
  } // if (type === 'previous') {
105
105
 
106
106
 
107
- return 'امش للصفحة السابقة';
107
+ return 'انتقل إلى الصفحة السابقة';
108
108
  },
109
109
  labelRowsPerPage: 'عدد الصفوف في الصفحة:',
110
110
  labelDisplayedRows: function labelDisplayedRows(_ref2) {
@@ -127,7 +127,7 @@ export var arEG = {
127
127
  defaultProps: {
128
128
  clearText: 'مسح',
129
129
  closeText: 'إغلاق',
130
- loadingText: 'يتم التحميل…',
130
+ loadingText: 'جار التحميل...',
131
131
  noOptionsText: 'لا يوجد خيارات',
132
132
  openText: 'فتح'
133
133
  }
@@ -142,23 +142,23 @@ export var arEG = {
142
142
  'aria-label': 'التنقل عبر الصفحات',
143
143
  getItemAriaLabel: function getItemAriaLabel(type, page, selected) {
144
144
  if (type === 'page') {
145
- return "".concat(selected ? '' : 'امش إلى ', " \u0635\u0641\u062D\u0629 ").concat(page);
145
+ return "".concat(selected ? '' : 'انتقل إلى ', " \u0635\u0641\u062D\u0629 ").concat(page);
146
146
  }
147
147
 
148
148
  if (type === 'first') {
149
- return 'امش للصفحة الأولى';
149
+ return 'انتقل إلى الصفحة الأولى';
150
150
  }
151
151
 
152
152
  if (type === 'last') {
153
- return 'امش للصفحة الأخيرة';
153
+ return 'انتقل إلى الصفحة الأخيرة';
154
154
  }
155
155
 
156
156
  if (type === 'next') {
157
- return 'امش للصفحة التالية';
157
+ return 'انتقل إلى الصفحة التالية';
158
158
  } // if (type === 'previous') {
159
159
 
160
160
 
161
- return 'امش للصفحة السابقة';
161
+ return 'انتقل إلى الصفحة السابقة';
162
162
  }
163
163
  }
164
164
  }
@@ -168,26 +168,26 @@ export var arSD = {
168
168
  components: {
169
169
  MuiBreadcrumbs: {
170
170
  defaultProps: {
171
- expandText: 'إظهر العنوان'
171
+ expandText: 'إظهار المسار'
172
172
  }
173
173
  },
174
174
  MuiTablePagination: {
175
175
  defaultProps: {
176
176
  getItemAriaLabel: function getItemAriaLabel(type) {
177
177
  if (type === 'first') {
178
- return 'إذهب الى الصفحة الأولى';
178
+ return 'انتقل إلى الصفحة الأولى';
179
179
  }
180
180
 
181
181
  if (type === 'last') {
182
- return 'إذهب الي الصفحة الأخيرة';
182
+ return 'انتقل إلى الصفحة الأخيرة';
183
183
  }
184
184
 
185
185
  if (type === 'next') {
186
- return 'إذهب الى الصفحة التالية';
186
+ return 'انتقل إلى الصفحة التالية';
187
187
  } // if (type === 'previous') {
188
188
 
189
189
 
190
- return 'إذهب الى الصفحة السابقة';
190
+ return 'انتقل إلى الصفحة السابقة';
191
191
  },
192
192
  labelRowsPerPage: 'عدد الصفوف في الصفحة:',
193
193
  labelDisplayedRows: function labelDisplayedRows(_ref3) {
@@ -210,7 +210,7 @@ export var arSD = {
210
210
  defaultProps: {
211
211
  clearText: 'مسح',
212
212
  closeText: 'إغلاق',
213
- loadingText: 'يتم التحميل…',
213
+ loadingText: 'جار التحميل...',
214
214
  noOptionsText: 'لا يوجد خيارات',
215
215
  openText: 'فتح'
216
216
  }
@@ -225,23 +225,23 @@ export var arSD = {
225
225
  'aria-label': 'التنقل عبر الصفحات',
226
226
  getItemAriaLabel: function getItemAriaLabel(type, page, selected) {
227
227
  if (type === 'page') {
228
- return "".concat(selected ? '' : 'إذهب إلى ', " \u0635\u0641\u062D\u0629 ").concat(page);
228
+ return "".concat(selected ? '' : 'انتقل إلى ', " \u0635\u0641\u062D\u0629 ").concat(page);
229
229
  }
230
230
 
231
231
  if (type === 'first') {
232
- return 'إذهب الى الصفحة الأولى';
232
+ return 'انتقل إلى الصفحة الأولى';
233
233
  }
234
234
 
235
235
  if (type === 'last') {
236
- return 'إذهب الي الصفحة الأخيرة';
236
+ return 'انتقل الي الصفحة الأخيرة';
237
237
  }
238
238
 
239
239
  if (type === 'next') {
240
- return 'إذهب الى الصفحة التالية';
240
+ return 'انتقل إلى الصفحة التالية';
241
241
  } // if (type === 'previous') {
242
242
 
243
243
 
244
- return 'إذهب الى الصفحة السابقة';
244
+ return 'انتقل إلى الصفحة السابقة';
245
245
  }
246
246
  }
247
247
  }
@@ -1,13 +1,15 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
2
2
  import _extends from "@babel/runtime/helpers/esm/extends";
3
- export default function createMixins(breakpoints, spacing, mixins) {
3
+ export default function createMixins(breakpoints, mixins) {
4
4
  var _toolbar;
5
5
 
6
6
  return _extends({
7
7
  toolbar: (_toolbar = {
8
8
  minHeight: 56
9
- }, _defineProperty(_toolbar, "".concat(breakpoints.up('xs'), " and (orientation: landscape)"), {
10
- minHeight: 48
9
+ }, _defineProperty(_toolbar, breakpoints.up('xs'), {
10
+ '@media (orientation: landscape)': {
11
+ minHeight: 48
12
+ }
11
13
  }), _defineProperty(_toolbar, breakpoints.up('sm'), {
12
14
  minHeight: 64
13
15
  }), _toolbar)
@@ -30,7 +30,7 @@ function createTheme() {
30
30
  var palette = createPalette(paletteInput);
31
31
  var systemTheme = systemCreateTheme(options);
32
32
  var muiTheme = deepmerge(systemTheme, {
33
- mixins: createMixins(systemTheme.breakpoints, systemTheme.spacing, mixinsInput),
33
+ mixins: createMixins(systemTheme.breakpoints, mixinsInput),
34
34
  palette: palette,
35
35
  // Don't use [...shadows] until you've verified its transpiled code is not invoking the iterator protocol.
36
36
  shadows: shadows.slice(),
@@ -1,10 +1,22 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
3
+ import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
3
4
  import { deepmerge } from '@mui/utils';
4
5
  import { colorChannel } from '@mui/system';
5
6
  import createThemeWithoutVars from './createTheme';
7
+ import { getOverlayAlpha } from '../Paper/Paper';
8
+
9
+ var defaultDarkOverlays = _toConsumableArray(Array(25)).map(function (_, index) {
10
+ if (index === 0) {
11
+ return undefined;
12
+ }
13
+
14
+ var overlay = getOverlayAlpha(index);
15
+ return "linear-gradient(rgba(255 255 255 / ".concat(overlay, "), rgba(255 255 255 / ").concat(overlay, "))");
16
+ });
17
+
6
18
  export default function extendTheme() {
7
- var _colorSchemesInput$li, _colorSchemesInput$da, _colorSchemesInput$li2, _colorSchemesInput$da2;
19
+ var _colorSchemesInput$li, _colorSchemesInput$da, _colorSchemesInput$li2, _colorSchemesInput$li3, _colorSchemesInput$da2, _colorSchemesInput$da3;
8
20
 
9
21
  var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
10
22
 
@@ -32,14 +44,16 @@ export default function extendTheme() {
32
44
  opacity: _extends({
33
45
  placeholder: 0.42,
34
46
  inputTouchBottomLine: 0.42
35
- }, (_colorSchemesInput$li2 = colorSchemesInput.light) == null ? void 0 : _colorSchemesInput$li2.opacity)
47
+ }, (_colorSchemesInput$li2 = colorSchemesInput.light) == null ? void 0 : _colorSchemesInput$li2.opacity),
48
+ overlays: ((_colorSchemesInput$li3 = colorSchemesInput.light) == null ? void 0 : _colorSchemesInput$li3.overlays) || []
36
49
  }),
37
50
  dark: _extends({}, colorSchemesInput.dark, {
38
51
  palette: darkPalette,
39
52
  opacity: _extends({
40
53
  placeholder: 0.5,
41
54
  inputTouchBottomLine: 0.7
42
- }, (_colorSchemesInput$da2 = colorSchemesInput.dark) == null ? void 0 : _colorSchemesInput$da2.opacity)
55
+ }, (_colorSchemesInput$da2 = colorSchemesInput.dark) == null ? void 0 : _colorSchemesInput$da2.opacity),
56
+ overlays: ((_colorSchemesInput$da3 = colorSchemesInput.dark) == null ? void 0 : _colorSchemesInput$da3.overlays) || defaultDarkOverlays
43
57
  })
44
58
  })
45
59
  });
@@ -90,6 +104,11 @@ export default function extendTheme() {
90
104
 
91
105
  if (colors.secondary) {
92
106
  palette[color].secondaryChannel = colorChannel(colors.secondary);
107
+ } // Action colors: action.activeChannel
108
+
109
+
110
+ if (colors.active) {
111
+ palette[color].activeChannel = colorChannel(colors.active);
93
112
  }
94
113
  });
95
114
  });
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
  }
@@ -164,6 +164,7 @@ const Alert = /*#__PURE__*/React.forwardRef(function Alert(inProps, ref) {
164
164
  className: classes.message,
165
165
  children: children
166
166
  }), action != null ? /*#__PURE__*/_jsx(AlertAction, {
167
+ ownerState: ownerState,
167
168
  className: classes.action,
168
169
  children: action
169
170
  }) : null, action == null && onClose ? /*#__PURE__*/_jsx(AlertAction, {
@@ -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();
@@ -192,12 +192,12 @@ const TouchRipple = /*#__PURE__*/React.forwardRef(function TouchRipple(inProps,
192
192
 
193
193
  } = options;
194
194
 
195
- if (event.type === 'mousedown' && ignoringMouseDown.current) {
195
+ if (event?.type === 'mousedown' && ignoringMouseDown.current) {
196
196
  ignoringMouseDown.current = false;
197
197
  return;
198
198
  }
199
199
 
200
- if (event.type === 'touchstart') {
200
+ if (event?.type === 'touchstart') {
201
201
  ignoringMouseDown.current = true;
202
202
  }
203
203
 
@@ -213,7 +213,7 @@ const TouchRipple = /*#__PURE__*/React.forwardRef(function TouchRipple(inProps,
213
213
  let rippleY;
214
214
  let rippleSize;
215
215
 
216
- if (center || event.clientX === 0 && event.clientY === 0 || !event.clientX && !event.touches) {
216
+ if (center || event === undefined || event.clientX === 0 && event.clientY === 0 || !event.clientX && !event.touches) {
217
217
  rippleX = Math.round(rect.width / 2);
218
218
  rippleY = Math.round(rect.height / 2);
219
219
  } else {
@@ -238,7 +238,7 @@ const TouchRipple = /*#__PURE__*/React.forwardRef(function TouchRipple(inProps,
238
238
  } // Touche devices
239
239
 
240
240
 
241
- if (event.touches) {
241
+ if (event?.touches) {
242
242
  // check that this isn't another touchstart due to multitouch
243
243
  // otherwise we will only clear a single timer when unmounting while two
244
244
  // are running
@@ -281,7 +281,7 @@ const TouchRipple = /*#__PURE__*/React.forwardRef(function TouchRipple(inProps,
281
281
  clearTimeout(startTimer.current); // The touch interaction occurs too quickly.
282
282
  // We still want to show ripple effect.
283
283
 
284
- if (event.type === 'touchend' && startTimerCommit.current) {
284
+ if (event?.type === 'touchend' && startTimerCommit.current) {
285
285
  startTimerCommit.current();
286
286
  startTimerCommit.current = null;
287
287
  startTimer.current = setTimeout(() => {