@mui/material 5.10.7 → 5.10.8

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 (163) 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/autocompleteClasses.d.ts +54 -54
  9. package/Avatar/avatarClasses.d.ts +20 -20
  10. package/AvatarGroup/avatarGroupClasses.d.ts +10 -10
  11. package/Backdrop/backdropClasses.d.ts +10 -10
  12. package/Badge/badgeClasses.d.ts +56 -56
  13. package/BottomNavigation/BottomNavigation.js +0 -0
  14. package/BottomNavigation/bottomNavigationClasses.d.ts +8 -8
  15. package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +14 -14
  16. package/Breadcrumbs/breadcrumbsClasses.d.ts +14 -14
  17. package/Button/buttonClasses.d.ts +100 -100
  18. package/ButtonBase/buttonBaseClasses.d.ts +12 -12
  19. package/ButtonBase/touchRippleClasses.d.ts +20 -20
  20. package/ButtonGroup/ButtonGroupContext.d.ts +18 -18
  21. package/ButtonGroup/buttonGroupClasses.d.ts +58 -58
  22. package/Card/cardClasses.d.ts +8 -8
  23. package/CardActionArea/cardActionAreaClasses.d.ts +12 -12
  24. package/CardActions/cardActionsClasses.d.ts +10 -10
  25. package/CardContent/cardContentClasses.d.ts +8 -8
  26. package/CardHeader/cardHeaderClasses.d.ts +18 -18
  27. package/CardMedia/cardMediaClasses.d.ts +12 -12
  28. package/Checkbox/checkboxClasses.d.ts +18 -18
  29. package/Chip/chipClasses.d.ts +96 -96
  30. package/CircularProgress/circularProgressClasses.d.ts +26 -26
  31. package/ClickAwayListener/index.d.ts +2 -2
  32. package/Collapse/collapseClasses.d.ts +18 -18
  33. package/Container/containerClasses.d.ts +6 -6
  34. package/Dialog/DialogContext.d.ts +6 -6
  35. package/Dialog/dialogClasses.d.ts +36 -36
  36. package/DialogActions/dialogActionsClasses.d.ts +10 -10
  37. package/DialogContent/dialogContentClasses.d.ts +10 -10
  38. package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
  39. package/DialogTitle/dialogTitleClasses.d.ts +8 -8
  40. package/Divider/dividerClasses.d.ts +34 -34
  41. package/Drawer/drawerClasses.d.ts +30 -30
  42. package/Fab/Fab.js +5 -2
  43. package/Fab/fabClasses.d.ts +26 -26
  44. package/FilledInput/filledInputClasses.d.ts +40 -40
  45. package/FormControl/formControlClasses.d.ts +14 -14
  46. package/FormControlLabel/FormControlLabel.d.ts +1 -1
  47. package/FormControlLabel/formControlLabelClasses.d.ts +20 -20
  48. package/FormGroup/formGroupClasses.d.ts +12 -12
  49. package/FormHelperText/formHelperTextClasses.d.ts +22 -22
  50. package/FormLabel/formLabelClasses.d.ts +22 -22
  51. package/Grid/gridClasses.d.ts +48 -48
  52. package/Icon/iconClasses.d.ts +24 -24
  53. package/IconButton/iconButtonClasses.d.ts +26 -26
  54. package/ImageList/imageListClasses.d.ts +16 -16
  55. package/ImageListItem/imageListItemClasses.d.ts +18 -18
  56. package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
  57. package/Input/inputClasses.d.ts +34 -34
  58. package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
  59. package/InputBase/inputBaseClasses.d.ts +46 -46
  60. package/InputLabel/inputLabelClasses.d.ts +32 -32
  61. package/LinearProgress/linearProgressClasses.d.ts +42 -42
  62. package/Link/getTextDecoration.d.ts +15 -15
  63. package/Link/linkClasses.d.ts +18 -18
  64. package/List/listClasses.d.ts +14 -14
  65. package/ListItem/listItemClasses.d.ts +30 -30
  66. package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
  67. package/ListItemButton/listItemButtonClasses.d.ts +22 -22
  68. package/ListItemIcon/listItemIconClasses.d.ts +10 -10
  69. package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
  70. package/ListItemText/listItemTextClasses.d.ts +18 -18
  71. package/ListSubheader/listSubheaderClasses.d.ts +18 -18
  72. package/Menu/menuClasses.d.ts +12 -12
  73. package/MenuItem/menuItemClasses.d.ts +20 -20
  74. package/MobileStepper/mobileStepperClasses.d.ts +22 -22
  75. package/NativeSelect/nativeSelectClasses.d.ts +32 -32
  76. package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
  77. package/OverridableComponentAugmentation.d.ts +31 -31
  78. package/Pagination/paginationClasses.d.ts +14 -14
  79. package/PaginationItem/paginationItemClasses.d.ts +42 -42
  80. package/Paper/paperClasses.d.ts +39 -39
  81. package/Popover/Popover.js +1 -0
  82. package/Popover/popoverClasses.d.ts +10 -10
  83. package/Popper/Popper.d.ts +24 -24
  84. package/Radio/radioClasses.d.ts +16 -16
  85. package/RadioGroup/RadioGroupContext.d.ts +11 -11
  86. package/RadioGroup/useRadioGroup.d.ts +4 -4
  87. package/Rating/ratingClasses.d.ts +40 -40
  88. package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
  89. package/Select/selectClasses.d.ts +30 -30
  90. package/Skeleton/skeletonClasses.d.ts +26 -26
  91. package/Snackbar/snackbarClasses.d.ts +20 -20
  92. package/SnackbarContent/snackbarContentClasses.d.ts +12 -12
  93. package/SpeedDial/speedDialClasses.d.ts +22 -22
  94. package/SpeedDialAction/speedDialActionClasses.d.ts +20 -20
  95. package/SpeedDialIcon/speedDialIconClasses.d.ts +18 -18
  96. package/Step/StepContext.d.ts +20 -20
  97. package/Step/stepClasses.d.ts +16 -16
  98. package/StepButton/stepButtonClasses.d.ts +14 -14
  99. package/StepConnector/stepConnectorClasses.d.ts +26 -26
  100. package/StepContent/stepContentClasses.d.ts +12 -12
  101. package/StepIcon/stepIconClasses.d.ts +16 -16
  102. package/StepLabel/stepLabelClasses.d.ts +28 -28
  103. package/Stepper/StepperContext.d.ts +18 -18
  104. package/Stepper/stepperClasses.d.ts +14 -14
  105. package/SvgIcon/svgIconClasses.d.ts +26 -26
  106. package/Switch/switchClasses.d.ts +32 -32
  107. package/Tab/tabClasses.d.ts +26 -26
  108. package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
  109. package/Table/tableClasses.d.ts +10 -10
  110. package/TableBody/tableBodyClasses.d.ts +8 -8
  111. package/TableCell/tableCellClasses.d.ts +32 -32
  112. package/TableContainer/tableContainerClasses.d.ts +8 -8
  113. package/TableFooter/tableFooterClasses.d.ts +8 -8
  114. package/TableHead/tableHeadClasses.d.ts +8 -8
  115. package/TablePagination/tablePaginationClasses.d.ts +28 -28
  116. package/TableRow/tableRowClasses.d.ts +16 -16
  117. package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
  118. package/Tabs/tabsClasses.d.ts +32 -32
  119. package/TextField/textFieldClasses.d.ts +8 -8
  120. package/ToggleButton/toggleButtonClasses.d.ts +24 -24
  121. package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
  122. package/Toolbar/toolbarClasses.d.ts +14 -14
  123. package/Tooltip/tooltipClasses.d.ts +30 -30
  124. package/Typography/typographyClasses.d.ts +50 -50
  125. package/Unstable_Grid2/Grid2.d.ts +4 -4
  126. package/Unstable_Grid2/Grid2Props.d.ts +15 -15
  127. package/Unstable_Grid2/grid2Classes.d.ts +5 -5
  128. package/Unstable_Grid2/index.d.ts +4 -4
  129. package/className/index.d.ts +1 -1
  130. package/darkScrollbar/index.d.ts +28 -28
  131. package/esm/BottomNavigation/BottomNavigation.js +0 -0
  132. package/esm/Fab/Fab.js +5 -2
  133. package/esm/Popover/Popover.js +1 -0
  134. package/esm/locale/index.js +81 -1
  135. package/index.js +1 -1
  136. package/internal/switchBaseClasses.d.ts +12 -12
  137. package/legacy/BottomNavigation/BottomNavigation.js +0 -0
  138. package/legacy/Fab/Fab.js +7 -2
  139. package/legacy/Popover/Popover.js +1 -0
  140. package/legacy/index.js +1 -1
  141. package/legacy/locale/index.js +224 -141
  142. package/locale/index.d.ts +72 -71
  143. package/locale/index.js +83 -2
  144. package/modern/BottomNavigation/BottomNavigation.js +0 -0
  145. package/modern/Fab/Fab.js +5 -2
  146. package/modern/Popover/Popover.js +1 -0
  147. package/modern/index.js +1 -1
  148. package/modern/locale/index.js +81 -1
  149. package/package.json +4 -4
  150. package/styles/CssVarsProvider.d.ts +14 -14
  151. package/styles/excludeVariablesFromRoot.d.ts +5 -5
  152. package/transitions/index.d.ts +1 -1
  153. package/transitions/transition.d.ts +13 -13
  154. package/transitions/utils.d.ts +23 -23
  155. package/umd/material-ui.development.js +8 -4
  156. package/umd/material-ui.production.min.js +4 -4
  157. package/useMediaQuery/useMediaQuery.d.ts +31 -31
  158. package/useTouchRipple/index.d.ts +1 -1
  159. package/useTouchRipple/useTouchRipple.d.ts +28 -28
  160. package/utils/getScrollbarSize.d.ts +2 -2
  161. package/utils/ownerDocument.d.ts +2 -2
  162. package/utils/ownerWindow.d.ts +2 -2
  163. package/utils/setRef.d.ts +2 -2
@@ -1,50 +1,50 @@
1
- export interface TypographyClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the root element if `variant="body2"`. */
5
- body2: string;
6
- /** Styles applied to the root element if `variant="body1"`. */
7
- body1: string;
8
- /** Styles applied to the root element if `variant="caption"`. */
9
- caption: string;
10
- /** Styles applied to the root element if `variant="button"`. */
11
- button: string;
12
- /** Styles applied to the root element if `variant="h1"`. */
13
- h1: string;
14
- /** Styles applied to the root element if `variant="h2"`. */
15
- h2: string;
16
- /** Styles applied to the root element if `variant="h3"`. */
17
- h3: string;
18
- /** Styles applied to the root element if `variant="h4"`. */
19
- h4: string;
20
- /** Styles applied to the root element if `variant="h5"`. */
21
- h5: string;
22
- /** Styles applied to the root element if `variant="h6"`. */
23
- h6: string;
24
- /** Styles applied to the root element if `variant="subtitle1"`. */
25
- subtitle1: string;
26
- /** Styles applied to the root element if `variant="subtitle2"`. */
27
- subtitle2: string;
28
- /** Styles applied to the root element if `variant="overline"`. */
29
- overline: string;
30
- /** Styles applied to the root element if `variant="inherit"`. */
31
- inherit: string;
32
- /** Styles applied to the root element if `align="left"`. */
33
- alignLeft: string;
34
- /** Styles applied to the root element if `align="center"`. */
35
- alignCenter: string;
36
- /** Styles applied to the root element if `align="right"`. */
37
- alignRight: string;
38
- /** Styles applied to the root element if `align="justify"`. */
39
- alignJustify: string;
40
- /** Styles applied to the root element if `nowrap={true}`. */
41
- noWrap: string;
42
- /** Styles applied to the root element if `gutterBottom={true}`. */
43
- gutterBottom: string;
44
- /** Styles applied to the root element if `paragraph={true}`. */
45
- paragraph: string;
46
- }
47
- export declare type TypographyClassKey = keyof TypographyClasses;
48
- export declare function getTypographyUtilityClass(slot: string): string;
49
- declare const typographyClasses: TypographyClasses;
50
- export default typographyClasses;
1
+ export interface TypographyClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the root element if `variant="body2"`. */
5
+ body2: string;
6
+ /** Styles applied to the root element if `variant="body1"`. */
7
+ body1: string;
8
+ /** Styles applied to the root element if `variant="caption"`. */
9
+ caption: string;
10
+ /** Styles applied to the root element if `variant="button"`. */
11
+ button: string;
12
+ /** Styles applied to the root element if `variant="h1"`. */
13
+ h1: string;
14
+ /** Styles applied to the root element if `variant="h2"`. */
15
+ h2: string;
16
+ /** Styles applied to the root element if `variant="h3"`. */
17
+ h3: string;
18
+ /** Styles applied to the root element if `variant="h4"`. */
19
+ h4: string;
20
+ /** Styles applied to the root element if `variant="h5"`. */
21
+ h5: string;
22
+ /** Styles applied to the root element if `variant="h6"`. */
23
+ h6: string;
24
+ /** Styles applied to the root element if `variant="subtitle1"`. */
25
+ subtitle1: string;
26
+ /** Styles applied to the root element if `variant="subtitle2"`. */
27
+ subtitle2: string;
28
+ /** Styles applied to the root element if `variant="overline"`. */
29
+ overline: string;
30
+ /** Styles applied to the root element if `variant="inherit"`. */
31
+ inherit: string;
32
+ /** Styles applied to the root element if `align="left"`. */
33
+ alignLeft: string;
34
+ /** Styles applied to the root element if `align="center"`. */
35
+ alignCenter: string;
36
+ /** Styles applied to the root element if `align="right"`. */
37
+ alignRight: string;
38
+ /** Styles applied to the root element if `align="justify"`. */
39
+ alignJustify: string;
40
+ /** Styles applied to the root element if `nowrap={true}`. */
41
+ noWrap: string;
42
+ /** Styles applied to the root element if `gutterBottom={true}`. */
43
+ gutterBottom: string;
44
+ /** Styles applied to the root element if `paragraph={true}`. */
45
+ paragraph: string;
46
+ }
47
+ export declare type TypographyClassKey = keyof TypographyClasses;
48
+ export declare function getTypographyUtilityClass(slot: string): string;
49
+ declare const typographyClasses: TypographyClasses;
50
+ export default typographyClasses;
@@ -1,4 +1,4 @@
1
- import { OverridableComponent } from '@mui/types';
2
- import { Grid2TypeMap } from './Grid2Props';
3
- declare const Grid2: OverridableComponent<Grid2TypeMap<{}, "div">>;
4
- export default Grid2;
1
+ import { OverridableComponent } from '@mui/types';
2
+ import { Grid2TypeMap } from './Grid2Props';
3
+ declare const Grid2: OverridableComponent<Grid2TypeMap<{}, "div">>;
4
+ export default Grid2;
@@ -1,15 +1,15 @@
1
- import React from 'react';
2
- import { OverrideProps } from '@mui/types';
3
- import { SxProps, SystemProps } from '@mui/system';
4
- import { GridBaseProps } from '@mui/system/Unstable_Grid';
5
- import { Theme } from '../styles';
6
- export declare type Grid2Slot = 'root';
7
- export interface Grid2TypeMap<P = {}, D extends React.ElementType = 'div'> {
8
- props: P & GridBaseProps & {
9
- sx?: SxProps<Theme>;
10
- } & SystemProps<Theme>;
11
- defaultComponent: D;
12
- }
13
- export declare type Grid2Props<D extends React.ElementType = Grid2TypeMap['defaultComponent'], P = {
14
- component?: React.ElementType;
15
- }> = OverrideProps<Grid2TypeMap<P, D>, D>;
1
+ import React from 'react';
2
+ import { OverrideProps } from '@mui/types';
3
+ import { SxProps, SystemProps } from '@mui/system';
4
+ import { GridBaseProps } from '@mui/system/Unstable_Grid';
5
+ import { Theme } from '../styles';
6
+ export declare type Grid2Slot = 'root';
7
+ export interface Grid2TypeMap<P = {}, D extends React.ElementType = 'div'> {
8
+ props: P & GridBaseProps & {
9
+ sx?: SxProps<Theme>;
10
+ } & SystemProps<Theme>;
11
+ defaultComponent: D;
12
+ }
13
+ export declare type Grid2Props<D extends React.ElementType = Grid2TypeMap['defaultComponent'], P = {
14
+ component?: React.ElementType;
15
+ }> = OverrideProps<Grid2TypeMap<P, D>, D>;
@@ -1,5 +1,5 @@
1
- import { GridClasses } from '@mui/system/Unstable_Grid';
2
- export declare type Grid2ClassKey = keyof GridClasses;
3
- export declare function getGrid2UtilityClass(slot: string): string;
4
- declare const grid2Classes: GridClasses;
5
- export default grid2Classes;
1
+ import { GridClasses } from '@mui/system/Unstable_Grid';
2
+ export declare type Grid2ClassKey = keyof GridClasses;
3
+ export declare function getGrid2UtilityClass(slot: string): string;
4
+ declare const grid2Classes: GridClasses;
5
+ export default grid2Classes;
@@ -1,4 +1,4 @@
1
- export { default } from './Grid2';
2
- export * from './Grid2Props';
3
- export { default as grid2Classes } from './grid2Classes';
4
- export * from './grid2Classes';
1
+ export { default } from './Grid2';
2
+ export * from './Grid2Props';
3
+ export { default as grid2Classes } from './grid2Classes';
4
+ export * from './grid2Classes';
@@ -1 +1 @@
1
- export { unstable_ClassNameGenerator } from '@mui/utils';
1
+ export { unstable_ClassNameGenerator } from '@mui/utils';
@@ -1,28 +1,28 @@
1
- export default function darkScrollbar(options?: {
2
- track: string;
3
- thumb: string;
4
- active: string;
5
- }): {
6
- scrollbarColor: string;
7
- '&::-webkit-scrollbar, & *::-webkit-scrollbar': {
8
- backgroundColor: string;
9
- };
10
- '&::-webkit-scrollbar-thumb, & *::-webkit-scrollbar-thumb': {
11
- borderRadius: number;
12
- backgroundColor: string;
13
- minHeight: number;
14
- border: string;
15
- };
16
- '&::-webkit-scrollbar-thumb:focus, & *::-webkit-scrollbar-thumb:focus': {
17
- backgroundColor: string;
18
- };
19
- '&::-webkit-scrollbar-thumb:active, & *::-webkit-scrollbar-thumb:active': {
20
- backgroundColor: string;
21
- };
22
- '&::-webkit-scrollbar-thumb:hover, & *::-webkit-scrollbar-thumb:hover': {
23
- backgroundColor: string;
24
- };
25
- '&::-webkit-scrollbar-corner, & *::-webkit-scrollbar-corner': {
26
- backgroundColor: string;
27
- };
28
- };
1
+ export default function darkScrollbar(options?: {
2
+ track: string;
3
+ thumb: string;
4
+ active: string;
5
+ }): {
6
+ scrollbarColor: string;
7
+ '&::-webkit-scrollbar, & *::-webkit-scrollbar': {
8
+ backgroundColor: string;
9
+ };
10
+ '&::-webkit-scrollbar-thumb, & *::-webkit-scrollbar-thumb': {
11
+ borderRadius: number;
12
+ backgroundColor: string;
13
+ minHeight: number;
14
+ border: string;
15
+ };
16
+ '&::-webkit-scrollbar-thumb:focus, & *::-webkit-scrollbar-thumb:focus': {
17
+ backgroundColor: string;
18
+ };
19
+ '&::-webkit-scrollbar-thumb:active, & *::-webkit-scrollbar-thumb:active': {
20
+ backgroundColor: string;
21
+ };
22
+ '&::-webkit-scrollbar-thumb:hover, & *::-webkit-scrollbar-thumb:hover': {
23
+ backgroundColor: string;
24
+ };
25
+ '&::-webkit-scrollbar-corner, & *::-webkit-scrollbar-corner': {
26
+ backgroundColor: string;
27
+ };
28
+ };
File without changes
package/esm/Fab/Fab.js CHANGED
@@ -9,7 +9,7 @@ import ButtonBase from '../ButtonBase';
9
9
  import capitalize from '../utils/capitalize';
10
10
  import useThemeProps from '../styles/useThemeProps';
11
11
  import fabClasses, { getFabUtilityClass } from './fabClasses';
12
- import styled from '../styles/styled';
12
+ import styled, { rootShouldForwardProp } from '../styles/styled';
13
13
  import { jsx as _jsx } from "react/jsx-runtime";
14
14
 
15
15
  const useUtilityClasses = ownerState => {
@@ -22,12 +22,14 @@ const useUtilityClasses = ownerState => {
22
22
  const slots = {
23
23
  root: ['root', variant, `size${capitalize(size)}`, color === 'inherit' ? 'colorInherit' : color]
24
24
  };
25
- return composeClasses(slots, getFabUtilityClass, classes);
25
+ const composedClasses = composeClasses(slots, getFabUtilityClass, classes);
26
+ return _extends({}, classes, composedClasses);
26
27
  };
27
28
 
28
29
  const FabRoot = styled(ButtonBase, {
29
30
  name: 'MuiFab',
30
31
  slot: 'Root',
32
+ shouldForwardProp: prop => rootShouldForwardProp(prop) || prop === 'classes',
31
33
  overridesResolver: (props, styles) => {
32
34
  const {
33
35
  ownerState
@@ -153,6 +155,7 @@ const Fab = /*#__PURE__*/React.forwardRef(function Fab(inProps, ref) {
153
155
  ownerState: ownerState,
154
156
  ref: ref
155
157
  }, other, {
158
+ classes: classes,
156
159
  children: children
157
160
  }));
158
161
  });
@@ -321,6 +321,7 @@ const Popover = /*#__PURE__*/React.forwardRef(function Popover(inProps, ref) {
321
321
  }, PaperProps, {
322
322
  ref: handlePaperRef,
323
323
  className: clsx(classes.paper, PaperProps.className),
324
+ ownerState: ownerState,
324
325
  children: children
325
326
  }))
326
327
  }))
@@ -158,6 +158,86 @@ export const arEG = {
158
158
  }
159
159
  }
160
160
  };
161
+ export const arSA = {
162
+ components: {
163
+ MuiBreadcrumbs: {
164
+ defaultProps: {
165
+ expandText: 'إظهار المسار'
166
+ }
167
+ },
168
+ MuiTablePagination: {
169
+ defaultProps: {
170
+ getItemAriaLabel: type => {
171
+ if (type === 'first') {
172
+ return 'الانتقال إلى الصفحة الأولى';
173
+ }
174
+
175
+ if (type === 'last') {
176
+ return 'الانتقال إلى الصفحة الأخيرة';
177
+ }
178
+
179
+ if (type === 'next') {
180
+ return 'الانتقال إلى الصفحة التالية';
181
+ } // if (type === 'previous') {
182
+
183
+
184
+ return 'الانتقال إلى الصفحة السابقة';
185
+ },
186
+ labelRowsPerPage: 'عدد الصفوف في الصفحة:',
187
+ labelDisplayedRows: ({
188
+ from,
189
+ to,
190
+ count
191
+ }) => `${from}–${to} من ${count !== -1 ? count : ` أكثر من${to}`}`
192
+ }
193
+ },
194
+ MuiRating: {
195
+ defaultProps: {
196
+ getLabelText: value => `${value} ${value !== 1 ? 'نجوم' : 'نجمة'}`,
197
+ emptyLabelText: 'فارغ'
198
+ }
199
+ },
200
+ MuiAutocomplete: {
201
+ defaultProps: {
202
+ clearText: 'مسح',
203
+ closeText: 'إغلاق',
204
+ loadingText: 'جار التحميل...',
205
+ noOptionsText: 'لا توجد خيارات',
206
+ openText: 'فتح'
207
+ }
208
+ },
209
+ MuiAlert: {
210
+ defaultProps: {
211
+ closeText: 'إغلاق'
212
+ }
213
+ },
214
+ MuiPagination: {
215
+ defaultProps: {
216
+ 'aria-label': 'التنقل عبر الصفحات',
217
+ getItemAriaLabel: (type, page, selected) => {
218
+ if (type === 'page') {
219
+ return `${selected ? '' : 'الانتقال إلى '} صفحة ${page}`;
220
+ }
221
+
222
+ if (type === 'first') {
223
+ return 'الانتقال إلى الصفحة الأولى';
224
+ }
225
+
226
+ if (type === 'last') {
227
+ return 'الانتقال الي الصفحة الأخيرة';
228
+ }
229
+
230
+ if (type === 'next') {
231
+ return 'الانتقال إلى الصفحة التالية';
232
+ } // if (type === 'previous') {
233
+
234
+
235
+ return 'الانتقال إلى الصفحة السابقة';
236
+ }
237
+ }
238
+ }
239
+ }
240
+ };
161
241
  export const arSD = {
162
242
  components: {
163
243
  MuiBreadcrumbs: {
@@ -3752,7 +3832,7 @@ export const zhTW = {
3752
3832
 
3753
3833
  return '上一頁';
3754
3834
  },
3755
- labelRowsPerPage: '每行行數:',
3835
+ labelRowsPerPage: '每頁行數:',
3756
3836
  labelDisplayedRows: ({
3757
3837
  from,
3758
3838
  to,
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.10.7
1
+ /** @license MUI v5.10.8
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.
@@ -1,12 +1,12 @@
1
- export interface SwitchBaseClasses {
2
- root: string;
3
- checked: string;
4
- disabled: string;
5
- input: string;
6
- edgeStart: string;
7
- edgeEnd: string;
8
- }
9
- export declare type SwitchBaseClassKey = keyof SwitchBaseClasses;
10
- export declare function getSwitchBaseUtilityClass(slot: string): string;
11
- declare const switchBaseClasses: SwitchBaseClasses;
12
- export default switchBaseClasses;
1
+ export interface SwitchBaseClasses {
2
+ root: string;
3
+ checked: string;
4
+ disabled: string;
5
+ input: string;
6
+ edgeStart: string;
7
+ edgeEnd: string;
8
+ }
9
+ export declare type SwitchBaseClassKey = keyof SwitchBaseClasses;
10
+ export declare function getSwitchBaseUtilityClass(slot: string): string;
11
+ declare const switchBaseClasses: SwitchBaseClasses;
12
+ export default switchBaseClasses;
File without changes
package/legacy/Fab/Fab.js CHANGED
@@ -9,7 +9,7 @@ import ButtonBase from '../ButtonBase';
9
9
  import capitalize from '../utils/capitalize';
10
10
  import useThemeProps from '../styles/useThemeProps';
11
11
  import fabClasses, { getFabUtilityClass } from './fabClasses';
12
- import styled from '../styles/styled';
12
+ import styled, { rootShouldForwardProp } from '../styles/styled';
13
13
  import { jsx as _jsx } from "react/jsx-runtime";
14
14
 
15
15
  var useUtilityClasses = function useUtilityClasses(ownerState) {
@@ -20,12 +20,16 @@ var useUtilityClasses = function useUtilityClasses(ownerState) {
20
20
  var slots = {
21
21
  root: ['root', variant, "size".concat(capitalize(size)), color === 'inherit' ? 'colorInherit' : color]
22
22
  };
23
- return composeClasses(slots, getFabUtilityClass, classes);
23
+ var composedClasses = composeClasses(slots, getFabUtilityClass, classes);
24
+ return _extends({}, classes, composedClasses);
24
25
  };
25
26
 
26
27
  var FabRoot = styled(ButtonBase, {
27
28
  name: 'MuiFab',
28
29
  slot: 'Root',
30
+ shouldForwardProp: function shouldForwardProp(prop) {
31
+ return rootShouldForwardProp(prop) || prop === 'classes';
32
+ },
29
33
  overridesResolver: function overridesResolver(props, styles) {
30
34
  var ownerState = props.ownerState;
31
35
  return [styles.root, styles[ownerState.variant], styles["size".concat(capitalize(ownerState.size))], ownerState.color === 'inherit' && styles.colorInherit, styles[capitalize(ownerState.size)], styles[ownerState.color]];
@@ -151,6 +155,7 @@ var Fab = /*#__PURE__*/React.forwardRef(function Fab(inProps, ref) {
151
155
  ownerState: ownerState,
152
156
  ref: ref
153
157
  }, other, {
158
+ classes: classes,
154
159
  children: children
155
160
  }));
156
161
  });
@@ -334,6 +334,7 @@ var Popover = /*#__PURE__*/React.forwardRef(function Popover(inProps, ref) {
334
334
  }, PaperProps, {
335
335
  ref: handlePaperRef,
336
336
  className: clsx(classes.paper, PaperProps.className),
337
+ ownerState: ownerState,
337
338
  children: children
338
339
  }))
339
340
  }))
package/legacy/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.10.7
1
+ /** @license MUI v5.10.8
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.