@mui/material 6.0.0-alpha.8 → 6.0.0-alpha.9
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.
- package/AccordionActions/AccordionActions.d.ts +1 -1
- package/AccordionDetails/AccordionDetails.d.ts +1 -1
- package/Alert/Alert.d.ts +1 -1
- package/AlertTitle/AlertTitle.d.ts +3 -3
- package/Autocomplete/Autocomplete.d.ts +1 -1
- package/Avatar/Avatar.js +3 -1
- package/AvatarGroup/AvatarGroup.d.ts +51 -18
- package/AvatarGroup/AvatarGroup.js +37 -18
- package/Button/Button.d.ts +1 -1
- package/ButtonBase/ButtonBase.d.ts +1 -1
- package/CHANGELOG.md +76 -0
- package/CardActions/CardActions.d.ts +1 -1
- package/CardHeader/CardHeader.d.ts +1 -1
- package/Checkbox/Checkbox.d.ts +1 -1
- package/Chip/Chip.d.ts +3 -3
- package/CircularProgress/CircularProgress.d.ts +1 -1
- package/Collapse/Collapse.d.ts +1 -1
- package/CssBaseline/CssBaseline.d.ts +1 -1
- package/Dialog/Dialog.d.ts +1 -1
- package/DialogActions/DialogActions.d.ts +1 -1
- package/DialogContent/DialogContent.d.ts +1 -1
- package/Drawer/Drawer.d.ts +1 -1
- package/Fade/Fade.d.ts +1 -1
- package/FilledInput/FilledInput.d.ts +1 -1
- package/FormControlLabel/FormControlLabel.d.ts +1 -1
- package/FormGroup/FormGroup.d.ts +1 -1
- package/GlobalStyles/GlobalStyles.d.ts +1 -1
- package/Grid/Grid.d.ts +1 -0
- package/Grid/Grid.js +1 -0
- package/Grow/Grow.d.ts +1 -1
- package/Hidden/Hidden.d.ts +2 -0
- package/Hidden/Hidden.js +2 -0
- package/ImageListItemBar/ImageListItemBar.d.ts +1 -1
- package/Input/Input.d.ts +1 -1
- package/InputBase/InputBase.d.ts +1 -1
- package/LinearProgress/LinearProgress.d.ts +1 -1
- package/ListItem/ListItem.d.ts +4 -12
- package/ListItem/ListItem.js +6 -14
- package/ListItemAvatar/ListItemAvatar.d.ts +1 -1
- package/ListItemIcon/ListItemIcon.d.ts +1 -1
- package/ListItemSecondaryAction/ListItemSecondaryAction.d.ts +5 -1
- package/ListItemSecondaryAction/ListItemSecondaryAction.js +2 -0
- package/ListItemText/ListItemText.d.ts +3 -1
- package/Menu/Menu.d.ts +1 -1
- package/MobileStepper/MobileStepper.d.ts +1 -1
- package/Modal/Modal.d.ts +1 -1
- package/NativeSelect/NativeSelect.d.ts +1 -1
- package/OutlinedInput/OutlinedInput.d.ts +3 -1
- package/OverridableComponent.d.ts +2 -2
- package/Pagination/Pagination.d.ts +1 -1
- package/Popover/Popover.d.ts +1 -1
- package/Popper/Popper.d.ts +4 -0
- package/Popper/Popper.js +4 -0
- package/Radio/Radio.d.ts +1 -1
- package/RadioGroup/RadioGroup.d.ts +1 -1
- package/Rating/Rating.d.ts +1 -1
- package/Select/Select.d.ts +1 -1
- package/Slide/Slide.d.ts +1 -1
- package/Slider/Slider.d.ts +1 -1
- package/Slider/Slider.js +1 -1
- package/Slider/SliderValueLabel.types.d.ts +1 -1
- package/Snackbar/Snackbar.d.ts +1 -1
- package/SnackbarContent/SnackbarContent.d.ts +1 -1
- package/SpeedDial/SpeedDial.d.ts +1 -1
- package/SpeedDialAction/SpeedDialAction.d.ts +1 -1
- package/SpeedDialIcon/SpeedDialIcon.d.ts +3 -1
- package/StepConnector/StepConnector.d.ts +2 -2
- package/StepContent/StepContent.d.ts +1 -1
- package/StepIcon/StepIcon.d.ts +1 -1
- package/StepLabel/StepLabel.d.ts +1 -1
- package/Switch/Switch.d.ts +1 -1
- package/Tab/Tab.d.ts +1 -1
- package/TabScrollButton/TabScrollButton.d.ts +1 -1
- package/TableCell/TableCell.d.ts +1 -1
- package/TextField/TextField.d.ts +1 -1
- package/ToggleButtonGroup/ToggleButtonGroup.d.ts +1 -1
- package/Tooltip/Tooltip.d.ts +3 -5
- package/Tooltip/Tooltip.js +2 -4
- package/Zoom/Zoom.d.ts +1 -1
- package/index.js +1 -1
- package/locale/index.d.ts +1 -0
- package/locale/index.js +74 -1
- package/modern/Avatar/Avatar.js +3 -1
- package/modern/AvatarGroup/AvatarGroup.js +37 -18
- package/modern/Grid/Grid.js +1 -0
- package/modern/Hidden/Hidden.js +2 -0
- package/modern/ListItem/ListItem.js +6 -14
- package/modern/ListItemSecondaryAction/ListItemSecondaryAction.js +2 -0
- package/modern/Popper/Popper.js +4 -0
- package/modern/Slider/Slider.js +1 -1
- package/modern/Tooltip/Tooltip.js +2 -4
- package/modern/index.js +1 -1
- package/modern/locale/index.js +74 -1
- package/modern/styles/CssVarsProvider.js +17 -6
- package/modern/styles/experimental_extendTheme.js +8 -354
- package/modern/styles/extendTheme.js +355 -0
- package/modern/styles/index.js +2 -1
- package/modern/styles/responsiveFontSizes.js +3 -0
- package/node/Avatar/Avatar.js +3 -1
- package/node/AvatarGroup/AvatarGroup.js +37 -18
- package/node/Grid/Grid.js +1 -0
- package/node/Hidden/Hidden.js +2 -0
- package/node/ListItem/ListItem.js +6 -14
- package/node/ListItemSecondaryAction/ListItemSecondaryAction.js +2 -0
- package/node/Popper/Popper.js +4 -0
- package/node/Slider/Slider.js +1 -1
- package/node/Tooltip/Tooltip.js +2 -4
- package/node/index.js +1 -1
- package/node/locale/index.js +75 -2
- package/node/styles/CssVarsProvider.js +22 -7
- package/node/styles/experimental_extendTheme.js +9 -360
- package/node/styles/extendTheme.js +367 -0
- package/node/styles/index.js +10 -0
- package/node/styles/responsiveFontSizes.js +3 -0
- package/package.json +6 -6
- package/styles/CssVarsProvider.d.ts +3 -2
- package/styles/CssVarsProvider.js +17 -6
- package/styles/experimental_extendTheme.js +8 -354
- package/styles/{experimental_extendTheme.d.ts → extendTheme.d.ts} +1 -2
- package/styles/extendTheme.js +355 -0
- package/styles/index.d.ts +2 -2
- package/styles/index.js +2 -1
- package/styles/responsiveFontSizes.js +3 -0
- package/themeCssVarsAugmentation/index.d.ts +1 -1
- package/types/OverridableComponentAugmentation.d.ts +2 -2
package/locale/index.js
CHANGED
|
@@ -991,7 +991,7 @@ export const enUS = {
|
|
|
991
991
|
},
|
|
992
992
|
labelRowsPerPage: 'Rows per page:',
|
|
993
993
|
labelDisplayedRows: ({ from, to, count }) =>
|
|
994
|
-
`${from}–${to} of ${count !== -1 ? count : `more than ${to}`}`,
|
|
994
|
+
`${from}–${to} of ${count !== -1 ? count : `more than ${to}`}`,
|
|
995
995
|
}},
|
|
996
996
|
MuiRating: { defaultProps: {
|
|
997
997
|
getLabelText: value => `${value} Star${value !== 1 ? 's' : ''}`,
|
|
@@ -3037,6 +3037,79 @@ export const plPL = {
|
|
|
3037
3037
|
}
|
|
3038
3038
|
}
|
|
3039
3039
|
};
|
|
3040
|
+
export const psAF = {
|
|
3041
|
+
components: {
|
|
3042
|
+
MuiBreadcrumbs: {
|
|
3043
|
+
defaultProps: {
|
|
3044
|
+
expandText: 'لاره ښکاره کړه'
|
|
3045
|
+
}
|
|
3046
|
+
},
|
|
3047
|
+
MuiTablePagination: {
|
|
3048
|
+
defaultProps: {
|
|
3049
|
+
getItemAriaLabel: type => {
|
|
3050
|
+
if (type === 'first') {
|
|
3051
|
+
return 'لومړۍ پاڼې ته لاړ شه';
|
|
3052
|
+
}
|
|
3053
|
+
if (type === 'last') {
|
|
3054
|
+
return 'ورستۍ پاڼې ته لاړ شه';
|
|
3055
|
+
}
|
|
3056
|
+
if (type === 'next') {
|
|
3057
|
+
return 'بلی پاڼې ته لاړ شه';
|
|
3058
|
+
}
|
|
3059
|
+
// if (type === 'previous') {
|
|
3060
|
+
return 'مخکینۍ پاڼې ته لاړ شه';
|
|
3061
|
+
},
|
|
3062
|
+
labelRowsPerPage: 'په پاڼه کی د کرښو شمیر',
|
|
3063
|
+
labelDisplayedRows: ({
|
|
3064
|
+
from,
|
|
3065
|
+
to,
|
|
3066
|
+
count
|
|
3067
|
+
}) => `${count !== -1 ? count : `${to} زیات له`} ${to}- ${from} د`
|
|
3068
|
+
}
|
|
3069
|
+
},
|
|
3070
|
+
MuiRating: {
|
|
3071
|
+
defaultProps: {
|
|
3072
|
+
getLabelText: value => `${value} ستوری`,
|
|
3073
|
+
emptyLabelText: 'خالی'
|
|
3074
|
+
}
|
|
3075
|
+
},
|
|
3076
|
+
MuiAutocomplete: {
|
|
3077
|
+
defaultProps: {
|
|
3078
|
+
clearText: 'پاک کول',
|
|
3079
|
+
closeText: 'تړل',
|
|
3080
|
+
loadingText: '... لوډ کیږی',
|
|
3081
|
+
noOptionsText: 'بی پایلی',
|
|
3082
|
+
openText: 'خلاصول'
|
|
3083
|
+
}
|
|
3084
|
+
},
|
|
3085
|
+
MuiAlert: {
|
|
3086
|
+
defaultProps: {
|
|
3087
|
+
closeText: 'تړل'
|
|
3088
|
+
}
|
|
3089
|
+
},
|
|
3090
|
+
MuiPagination: {
|
|
3091
|
+
defaultProps: {
|
|
3092
|
+
'aria-label': 'د پاڼو ترتیب',
|
|
3093
|
+
getItemAriaLabel: (type, page, selected) => {
|
|
3094
|
+
if (type === 'page') {
|
|
3095
|
+
return `${selected ? '' : ' ته لاړ شه'}پاڼې ${page}`;
|
|
3096
|
+
}
|
|
3097
|
+
if (type === 'first') {
|
|
3098
|
+
return 'لومړۍ پاڼی ته لاړ شه';
|
|
3099
|
+
}
|
|
3100
|
+
if (type === 'last') {
|
|
3101
|
+
return 'وروستۍ پاڼې ته لاړه شه';
|
|
3102
|
+
}
|
|
3103
|
+
if (type === 'next') {
|
|
3104
|
+
return 'بلې پاڼې ته لاړ شه';
|
|
3105
|
+
}
|
|
3106
|
+
// if (type === 'previous') {
|
|
3107
|
+
return 'مخکنۍ پاڼې ته لاړ شه';
|
|
3108
|
+
}
|
|
3109
|
+
}
|
|
3110
|
+
}
|
|
3111
|
+
}
|
|
3112
|
+
};
|
|
3040
3113
|
export const ptBR = {
|
|
3041
3114
|
components: {
|
|
3042
3115
|
MuiBreadcrumbs: {
|
package/modern/Avatar/Avatar.js
CHANGED
|
@@ -175,6 +175,8 @@ const Avatar = /*#__PURE__*/React.forwardRef(function Avatar(inProps, ref) {
|
|
|
175
175
|
component,
|
|
176
176
|
variant
|
|
177
177
|
};
|
|
178
|
+
// This issue explains why this is required: https://github.com/mui/material-ui/issues/42184
|
|
179
|
+
delete ownerState.ownerState;
|
|
178
180
|
const classes = useUtilityClasses(ownerState);
|
|
179
181
|
const [ImgSlot, imgSlotProps] = useSlot('img', {
|
|
180
182
|
className: classes.img,
|
|
@@ -214,10 +216,10 @@ const Avatar = /*#__PURE__*/React.forwardRef(function Avatar(inProps, ref) {
|
|
|
214
216
|
}
|
|
215
217
|
return /*#__PURE__*/_jsx(AvatarRoot, {
|
|
216
218
|
as: component,
|
|
217
|
-
ownerState: ownerState,
|
|
218
219
|
className: clsx(classes.root, className),
|
|
219
220
|
ref: ref,
|
|
220
221
|
...other,
|
|
222
|
+
ownerState: ownerState,
|
|
221
223
|
children: children
|
|
222
224
|
});
|
|
223
225
|
});
|
|
@@ -9,6 +9,7 @@ import composeClasses from '@mui/utils/composeClasses';
|
|
|
9
9
|
import { styled, createUseThemeProps } from '../zero-styled';
|
|
10
10
|
import Avatar, { avatarClasses } from '../Avatar';
|
|
11
11
|
import avatarGroupClasses, { getAvatarGroupUtilityClass } from './avatarGroupClasses';
|
|
12
|
+
import useSlot from '../utils/useSlot';
|
|
12
13
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
14
|
const SPACINGS = {
|
|
14
15
|
small: -16,
|
|
@@ -55,10 +56,11 @@ const AvatarGroup = /*#__PURE__*/React.forwardRef(function AvatarGroup(inProps,
|
|
|
55
56
|
children: childrenProp,
|
|
56
57
|
className,
|
|
57
58
|
component = 'div',
|
|
58
|
-
componentsProps
|
|
59
|
+
componentsProps,
|
|
59
60
|
max = 5,
|
|
60
61
|
renderSurplus,
|
|
61
62
|
slotProps = {},
|
|
63
|
+
slots = {},
|
|
62
64
|
spacing = 'medium',
|
|
63
65
|
total,
|
|
64
66
|
variant = 'circular',
|
|
@@ -89,22 +91,36 @@ const AvatarGroup = /*#__PURE__*/React.forwardRef(function AvatarGroup(inProps,
|
|
|
89
91
|
const maxAvatars = Math.min(children.length, clampedMax - 1);
|
|
90
92
|
const extraAvatars = Math.max(totalAvatars - clampedMax, totalAvatars - maxAvatars, 0);
|
|
91
93
|
const extraAvatarsElement = renderSurplus ? renderSurplus(extraAvatars) : `+${extraAvatars}`;
|
|
92
|
-
const additionalAvatarSlotProps = slotProps.additionalAvatar ?? componentsProps.additionalAvatar;
|
|
93
94
|
const marginValue = ownerState.spacing && SPACINGS[ownerState.spacing] !== undefined ? SPACINGS[ownerState.spacing] : -ownerState.spacing || -8;
|
|
95
|
+
const externalForwardedProps = {
|
|
96
|
+
slots,
|
|
97
|
+
slotProps: {
|
|
98
|
+
surplus: slotProps.additionalAvatar ?? componentsProps?.additionalAvatar,
|
|
99
|
+
...componentsProps,
|
|
100
|
+
...slotProps
|
|
101
|
+
}
|
|
102
|
+
};
|
|
103
|
+
const [SurplusSlot, surplusProps] = useSlot('surplus', {
|
|
104
|
+
elementType: Avatar,
|
|
105
|
+
externalForwardedProps,
|
|
106
|
+
className: classes.avatar,
|
|
107
|
+
ownerState,
|
|
108
|
+
additionalProps: {
|
|
109
|
+
variant,
|
|
110
|
+
style: {
|
|
111
|
+
'--AvatarRoot-spacing': marginValue ? `${marginValue}px` : undefined,
|
|
112
|
+
...other.style
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
});
|
|
94
116
|
return /*#__PURE__*/_jsxs(AvatarGroupRoot, {
|
|
95
117
|
as: component,
|
|
96
118
|
ownerState: ownerState,
|
|
97
119
|
className: clsx(classes.root, className),
|
|
98
120
|
ref: ref,
|
|
99
121
|
...other,
|
|
100
|
-
children: [extraAvatars ? /*#__PURE__*/_jsx(
|
|
101
|
-
|
|
102
|
-
...additionalAvatarSlotProps,
|
|
103
|
-
className: clsx(classes.avatar, additionalAvatarSlotProps?.className),
|
|
104
|
-
style: {
|
|
105
|
-
'--AvatarRoot-spacing': marginValue ? `${marginValue}px` : undefined,
|
|
106
|
-
...other.style
|
|
107
|
-
},
|
|
122
|
+
children: [extraAvatars ? /*#__PURE__*/_jsx(SurplusSlot, {
|
|
123
|
+
...surplusProps,
|
|
108
124
|
children: extraAvatarsElement
|
|
109
125
|
}) : null, children.slice(0, maxAvatars).reverse().map(child => {
|
|
110
126
|
return /*#__PURE__*/React.cloneElement(child, {
|
|
@@ -141,9 +157,8 @@ process.env.NODE_ENV !== "production" ? AvatarGroup.propTypes /* remove-proptype
|
|
|
141
157
|
* You can override the existing props or add new ones.
|
|
142
158
|
*
|
|
143
159
|
* This prop is an alias for the `slotProps` prop.
|
|
144
|
-
* It's recommended to use the `slotProps` prop instead, as `componentsProps` will be deprecated in the future.
|
|
145
160
|
*
|
|
146
|
-
* @
|
|
161
|
+
* @deprecated use the `slotProps` prop instead. This prop will be removed in v7. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
147
162
|
*/
|
|
148
163
|
componentsProps: PropTypes.shape({
|
|
149
164
|
additionalAvatar: PropTypes.object
|
|
@@ -165,15 +180,19 @@ process.env.NODE_ENV !== "production" ? AvatarGroup.propTypes /* remove-proptype
|
|
|
165
180
|
*/
|
|
166
181
|
renderSurplus: PropTypes.func,
|
|
167
182
|
/**
|
|
168
|
-
* The
|
|
169
|
-
* You can override the existing props or add new ones.
|
|
170
|
-
*
|
|
171
|
-
* This prop is an alias for the `componentsProps` prop, which will be deprecated in the future.
|
|
172
|
-
*
|
|
183
|
+
* The props used for each slot inside.
|
|
173
184
|
* @default {}
|
|
174
185
|
*/
|
|
175
186
|
slotProps: PropTypes.shape({
|
|
176
|
-
additionalAvatar: PropTypes.object
|
|
187
|
+
additionalAvatar: PropTypes.object,
|
|
188
|
+
surplus: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
189
|
+
}),
|
|
190
|
+
/**
|
|
191
|
+
* The components used for each slot inside.
|
|
192
|
+
* @default {}
|
|
193
|
+
*/
|
|
194
|
+
slots: PropTypes.shape({
|
|
195
|
+
surplus: PropTypes.elementType
|
|
177
196
|
}),
|
|
178
197
|
/**
|
|
179
198
|
* Spacing between avatars.
|
package/modern/Grid/Grid.js
CHANGED
|
@@ -530,6 +530,7 @@ process.env.NODE_ENV !== "production" ? Grid.propTypes /* remove-proptypes */ =
|
|
|
530
530
|
* Defines the `flex-wrap` style property.
|
|
531
531
|
* It's applied for all screen sizes.
|
|
532
532
|
* @default 'wrap'
|
|
533
|
+
* @deprecated Use `flexWrap` instead. This prop will be removed in v7. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
533
534
|
*/
|
|
534
535
|
wrap: PropTypes.oneOf(['nowrap', 'wrap-reverse', 'wrap']),
|
|
535
536
|
/**
|
package/modern/Hidden/Hidden.js
CHANGED
|
@@ -7,6 +7,8 @@ import HiddenCss from './HiddenCss';
|
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Responsively hides children based on the selected implementation.
|
|
10
|
+
*
|
|
11
|
+
* @deprecated The Hidden component was deprecated in Material UI v5. To learn more, see [the Hidden section](/material-ui/migration/v5-component-changes/#hidden) of the migration docs.
|
|
10
12
|
*/
|
|
11
13
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
14
|
function Hidden(props) {
|
|
@@ -223,7 +223,7 @@ const ListItem = /*#__PURE__*/React.forwardRef(function ListItem(inProps, ref) {
|
|
|
223
223
|
}, [autoFocus]);
|
|
224
224
|
const children = React.Children.toArray(childrenProp);
|
|
225
225
|
|
|
226
|
-
// v4 implementation, deprecated in
|
|
226
|
+
// v4 implementation, deprecated in v6, will be removed in v7
|
|
227
227
|
const hasSecondaryAction = children.length && isMuiElement(children[children.length - 1], ['ListItemSecondaryAction']);
|
|
228
228
|
const ownerState = {
|
|
229
229
|
...props,
|
|
@@ -254,7 +254,7 @@ const ListItem = /*#__PURE__*/React.forwardRef(function ListItem(inProps, ref) {
|
|
|
254
254
|
Component = ButtonBase;
|
|
255
255
|
}
|
|
256
256
|
|
|
257
|
-
// v4 implementation, deprecated in
|
|
257
|
+
// v4 implementation, deprecated in v6, will be removed in v7
|
|
258
258
|
if (hasSecondaryAction) {
|
|
259
259
|
// Use div by default.
|
|
260
260
|
Component = !componentProps.component && !componentProp ? 'div' : Component;
|
|
@@ -372,9 +372,7 @@ process.env.NODE_ENV !== "production" ? ListItem.propTypes /* remove-proptypes *
|
|
|
372
372
|
/**
|
|
373
373
|
* The components used for each slot inside.
|
|
374
374
|
*
|
|
375
|
-
* This prop
|
|
376
|
-
* It's recommended to use the `slots` prop instead.
|
|
377
|
-
*
|
|
375
|
+
* @deprecated Use the `slots` prop instead. This prop will be removed in v7. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
378
376
|
* @default {}
|
|
379
377
|
*/
|
|
380
378
|
components: PropTypes.shape({
|
|
@@ -384,9 +382,7 @@ process.env.NODE_ENV !== "production" ? ListItem.propTypes /* remove-proptypes *
|
|
|
384
382
|
* The extra props for the slot components.
|
|
385
383
|
* You can override the existing props or add new ones.
|
|
386
384
|
*
|
|
387
|
-
* This prop
|
|
388
|
-
* It's recommended to use the `slotProps` prop instead, as `componentsProps` will be deprecated in the future.
|
|
389
|
-
*
|
|
385
|
+
* @deprecated Use the `slotProps` prop instead. This prop will be removed in v7. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
390
386
|
* @default {}
|
|
391
387
|
*/
|
|
392
388
|
componentsProps: PropTypes.shape({
|
|
@@ -395,13 +391,13 @@ process.env.NODE_ENV !== "production" ? ListItem.propTypes /* remove-proptypes *
|
|
|
395
391
|
/**
|
|
396
392
|
* The container component used when a `ListItemSecondaryAction` is the last child.
|
|
397
393
|
* @default 'li'
|
|
398
|
-
* @deprecated
|
|
394
|
+
* @deprecated Use the `component` or `slots.root` prop instead. This prop will be removed in v7. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
399
395
|
*/
|
|
400
396
|
ContainerComponent: elementTypeAcceptingRef,
|
|
401
397
|
/**
|
|
402
398
|
* Props applied to the container component if used.
|
|
403
399
|
* @default {}
|
|
404
|
-
* @deprecated
|
|
400
|
+
* @deprecated Use the `slotProps.root` prop instead. This prop will be removed in v7. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
405
401
|
*/
|
|
406
402
|
ContainerProps: PropTypes.object,
|
|
407
403
|
/**
|
|
@@ -449,8 +445,6 @@ process.env.NODE_ENV !== "production" ? ListItem.propTypes /* remove-proptypes *
|
|
|
449
445
|
* The extra props for the slot components.
|
|
450
446
|
* You can override the existing props or add new ones.
|
|
451
447
|
*
|
|
452
|
-
* This prop is an alias for the `componentsProps` prop, which will be deprecated in the future.
|
|
453
|
-
*
|
|
454
448
|
* @default {}
|
|
455
449
|
*/
|
|
456
450
|
slotProps: PropTypes.shape({
|
|
@@ -459,8 +453,6 @@ process.env.NODE_ENV !== "production" ? ListItem.propTypes /* remove-proptypes *
|
|
|
459
453
|
/**
|
|
460
454
|
* The components used for each slot inside.
|
|
461
455
|
*
|
|
462
|
-
* This prop is an alias for the `components` prop, which will be deprecated in the future.
|
|
463
|
-
*
|
|
464
456
|
* @default {}
|
|
465
457
|
*/
|
|
466
458
|
slots: PropTypes.shape({
|
|
@@ -45,6 +45,8 @@ const ListItemSecondaryActionRoot = styled('div', {
|
|
|
45
45
|
|
|
46
46
|
/**
|
|
47
47
|
* Must be used as the last child of ListItem to function properly.
|
|
48
|
+
*
|
|
49
|
+
* @deprecated Use the `secondaryAction` prop in the `ListItem` component instead. This component will be removed in v7. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
48
50
|
*/
|
|
49
51
|
const ListItemSecondaryAction = /*#__PURE__*/React.forwardRef(function ListItemSecondaryAction(inProps, ref) {
|
|
50
52
|
const props = useThemeProps({
|
package/modern/Popper/Popper.js
CHANGED
|
@@ -99,6 +99,8 @@ process.env.NODE_ENV !== "production" ? Popper.propTypes /* remove-proptypes */
|
|
|
99
99
|
/**
|
|
100
100
|
* The components used for each slot inside the Popper.
|
|
101
101
|
* Either a string to use a HTML element or a component.
|
|
102
|
+
*
|
|
103
|
+
* @deprecated use the `slots` prop instead. This prop will be removed in v7. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
|
|
102
104
|
* @default {}
|
|
103
105
|
*/
|
|
104
106
|
components: PropTypes.shape({
|
|
@@ -106,6 +108,8 @@ process.env.NODE_ENV !== "production" ? Popper.propTypes /* remove-proptypes */
|
|
|
106
108
|
}),
|
|
107
109
|
/**
|
|
108
110
|
* The props used for each slot inside the Popper.
|
|
111
|
+
*
|
|
112
|
+
* @deprecated use the `slotProps` prop instead. This prop will be removed in v7. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
|
|
109
113
|
* @default {}
|
|
110
114
|
*/
|
|
111
115
|
componentsProps: PropTypes.shape({
|
package/modern/Slider/Slider.js
CHANGED
|
@@ -324,7 +324,7 @@ export const SliderThumb = styled('span', {
|
|
|
324
324
|
},
|
|
325
325
|
[`&.${sliderClasses.active}`]: {
|
|
326
326
|
...(theme.vars ? {
|
|
327
|
-
boxShadow: `0px 0px 0px 14px rgba(${theme.vars.palette[color].mainChannel} / 0.16)
|
|
327
|
+
boxShadow: `0px 0px 0px 14px rgba(${theme.vars.palette[color].mainChannel} / 0.16)`
|
|
328
328
|
} : {
|
|
329
329
|
boxShadow: `0px 0px 0px 14px ${alpha(theme.palette[color].main, 0.16)}`
|
|
330
330
|
})
|
|
@@ -709,8 +709,7 @@ process.env.NODE_ENV !== "production" ? Tooltip.propTypes /* remove-proptypes */
|
|
|
709
709
|
/**
|
|
710
710
|
* The components used for each slot inside.
|
|
711
711
|
*
|
|
712
|
-
* This prop
|
|
713
|
-
* It's recommended to use the `slots` prop instead.
|
|
712
|
+
* @deprecated use the `slots` prop instead. This prop will be removed in v7. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
|
|
714
713
|
*
|
|
715
714
|
* @default {}
|
|
716
715
|
*/
|
|
@@ -724,8 +723,7 @@ process.env.NODE_ENV !== "production" ? Tooltip.propTypes /* remove-proptypes */
|
|
|
724
723
|
* The extra props for the slot components.
|
|
725
724
|
* You can override the existing props or add new ones.
|
|
726
725
|
*
|
|
727
|
-
* This prop
|
|
728
|
-
* It's recommended to use the `slotProps` prop instead, as `componentsProps` will be deprecated in the future.
|
|
726
|
+
* @deprecated use the `slotProps` prop instead. This prop will be removed in v7. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
|
|
729
727
|
*
|
|
730
728
|
* @default {}
|
|
731
729
|
*/
|
package/modern/index.js
CHANGED
package/modern/locale/index.js
CHANGED
|
@@ -991,7 +991,7 @@ export const enUS = {
|
|
|
991
991
|
},
|
|
992
992
|
labelRowsPerPage: 'Rows per page:',
|
|
993
993
|
labelDisplayedRows: ({ from, to, count }) =>
|
|
994
|
-
`${from}–${to} of ${count !== -1 ? count : `more than ${to}`}`,
|
|
994
|
+
`${from}–${to} of ${count !== -1 ? count : `more than ${to}`}`,
|
|
995
995
|
}},
|
|
996
996
|
MuiRating: { defaultProps: {
|
|
997
997
|
getLabelText: value => `${value} Star${value !== 1 ? 's' : ''}`,
|
|
@@ -3037,6 +3037,79 @@ export const plPL = {
|
|
|
3037
3037
|
}
|
|
3038
3038
|
}
|
|
3039
3039
|
};
|
|
3040
|
+
export const psAF = {
|
|
3041
|
+
components: {
|
|
3042
|
+
MuiBreadcrumbs: {
|
|
3043
|
+
defaultProps: {
|
|
3044
|
+
expandText: 'لاره ښکاره کړه'
|
|
3045
|
+
}
|
|
3046
|
+
},
|
|
3047
|
+
MuiTablePagination: {
|
|
3048
|
+
defaultProps: {
|
|
3049
|
+
getItemAriaLabel: type => {
|
|
3050
|
+
if (type === 'first') {
|
|
3051
|
+
return 'لومړۍ پاڼې ته لاړ شه';
|
|
3052
|
+
}
|
|
3053
|
+
if (type === 'last') {
|
|
3054
|
+
return 'ورستۍ پاڼې ته لاړ شه';
|
|
3055
|
+
}
|
|
3056
|
+
if (type === 'next') {
|
|
3057
|
+
return 'بلی پاڼې ته لاړ شه';
|
|
3058
|
+
}
|
|
3059
|
+
// if (type === 'previous') {
|
|
3060
|
+
return 'مخکینۍ پاڼې ته لاړ شه';
|
|
3061
|
+
},
|
|
3062
|
+
labelRowsPerPage: 'په پاڼه کی د کرښو شمیر',
|
|
3063
|
+
labelDisplayedRows: ({
|
|
3064
|
+
from,
|
|
3065
|
+
to,
|
|
3066
|
+
count
|
|
3067
|
+
}) => `${count !== -1 ? count : `${to} زیات له`} ${to}- ${from} د`
|
|
3068
|
+
}
|
|
3069
|
+
},
|
|
3070
|
+
MuiRating: {
|
|
3071
|
+
defaultProps: {
|
|
3072
|
+
getLabelText: value => `${value} ستوری`,
|
|
3073
|
+
emptyLabelText: 'خالی'
|
|
3074
|
+
}
|
|
3075
|
+
},
|
|
3076
|
+
MuiAutocomplete: {
|
|
3077
|
+
defaultProps: {
|
|
3078
|
+
clearText: 'پاک کول',
|
|
3079
|
+
closeText: 'تړل',
|
|
3080
|
+
loadingText: '... لوډ کیږی',
|
|
3081
|
+
noOptionsText: 'بی پایلی',
|
|
3082
|
+
openText: 'خلاصول'
|
|
3083
|
+
}
|
|
3084
|
+
},
|
|
3085
|
+
MuiAlert: {
|
|
3086
|
+
defaultProps: {
|
|
3087
|
+
closeText: 'تړل'
|
|
3088
|
+
}
|
|
3089
|
+
},
|
|
3090
|
+
MuiPagination: {
|
|
3091
|
+
defaultProps: {
|
|
3092
|
+
'aria-label': 'د پاڼو ترتیب',
|
|
3093
|
+
getItemAriaLabel: (type, page, selected) => {
|
|
3094
|
+
if (type === 'page') {
|
|
3095
|
+
return `${selected ? '' : ' ته لاړ شه'}پاڼې ${page}`;
|
|
3096
|
+
}
|
|
3097
|
+
if (type === 'first') {
|
|
3098
|
+
return 'لومړۍ پاڼی ته لاړ شه';
|
|
3099
|
+
}
|
|
3100
|
+
if (type === 'last') {
|
|
3101
|
+
return 'وروستۍ پاڼې ته لاړه شه';
|
|
3102
|
+
}
|
|
3103
|
+
if (type === 'next') {
|
|
3104
|
+
return 'بلې پاڼې ته لاړ شه';
|
|
3105
|
+
}
|
|
3106
|
+
// if (type === 'previous') {
|
|
3107
|
+
return 'مخکنۍ پاڼې ته لاړ شه';
|
|
3108
|
+
}
|
|
3109
|
+
}
|
|
3110
|
+
}
|
|
3111
|
+
}
|
|
3112
|
+
};
|
|
3040
3113
|
export const ptBR = {
|
|
3041
3114
|
components: {
|
|
3042
3115
|
MuiBreadcrumbs: {
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
5
|
-
// @ts-ignore
|
|
3
|
+
import * as React from 'react';
|
|
6
4
|
import { unstable_createCssVarsProvider as createCssVarsProvider } from '@mui/system';
|
|
7
5
|
import styleFunctionSx from '@mui/system/styleFunctionSx';
|
|
8
|
-
import
|
|
6
|
+
import extendTheme from './extendTheme';
|
|
9
7
|
import createTypography from './createTypography';
|
|
10
8
|
import THEME_ID from './identifier';
|
|
11
|
-
|
|
9
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
|
+
const defaultTheme = extendTheme();
|
|
12
11
|
const {
|
|
13
12
|
CssVarsProvider,
|
|
14
13
|
useColorScheme,
|
|
@@ -37,4 +36,16 @@ const {
|
|
|
37
36
|
return newTheme;
|
|
38
37
|
}
|
|
39
38
|
});
|
|
40
|
-
|
|
39
|
+
let warnedOnce = false;
|
|
40
|
+
|
|
41
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
42
|
+
function Experimental_CssVarsProvider(props) {
|
|
43
|
+
if (!warnedOnce) {
|
|
44
|
+
console.warn(['MUI: The Experimental_CssVarsProvider component has been stabilized.', '', "You should use `import { CssVarsProvider } from '@mui/material/styles'`"].join('\n'));
|
|
45
|
+
warnedOnce = true;
|
|
46
|
+
}
|
|
47
|
+
return /*#__PURE__*/_jsx(CssVarsProvider, {
|
|
48
|
+
...props
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
export { useColorScheme, getInitColorSchemeScript, CssVarsProvider, Experimental_CssVarsProvider };
|