@mui/material 5.6.4 → 5.8.1
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/Accordion/accordionClasses.d.ts +18 -18
- package/AccordionActions/accordionActionsClasses.d.ts +10 -10
- package/AccordionDetails/accordionDetailsClasses.d.ts +8 -8
- package/AccordionSummary/accordionSummaryClasses.d.ts +22 -22
- package/Alert/Alert.js +1 -0
- package/Alert/alertClasses.d.ts +44 -44
- package/AlertTitle/alertTitleClasses.d.ts +8 -8
- package/AppBar/appBarClasses.d.ts +28 -28
- package/Autocomplete/Autocomplete.d.ts +23 -1
- package/Autocomplete/Autocomplete.js +18 -16
- package/Autocomplete/autocompleteClasses.d.ts +54 -54
- package/Avatar/avatarClasses.d.ts +20 -20
- package/AvatarGroup/avatarGroupClasses.d.ts +10 -10
- package/Backdrop/backdropClasses.d.ts +10 -10
- package/Badge/Badge.d.ts +1 -34
- package/Badge/badgeClasses.d.ts +56 -24
- package/BottomNavigation/BottomNavigation.js +0 -0
- package/BottomNavigation/bottomNavigationClasses.d.ts +8 -8
- package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +14 -14
- package/Box/Box.js +1 -1
- package/Breadcrumbs/breadcrumbsClasses.d.ts +14 -14
- package/Button/buttonClasses.d.ts +76 -76
- package/ButtonBase/TouchRipple.js +5 -5
- package/ButtonBase/buttonBaseClasses.d.ts +12 -12
- package/ButtonBase/touchRippleClasses.d.ts +20 -20
- package/ButtonGroup/ButtonGroup.js +10 -10
- package/ButtonGroup/ButtonGroupContext.d.ts +18 -18
- package/ButtonGroup/buttonGroupClasses.d.ts +58 -58
- package/CHANGELOG.md +241 -0
- package/Card/cardClasses.d.ts +8 -8
- package/CardActionArea/CardActionArea.js +2 -2
- package/CardActionArea/cardActionAreaClasses.d.ts +12 -12
- package/CardActions/cardActionsClasses.d.ts +10 -10
- package/CardContent/cardContentClasses.d.ts +8 -8
- package/CardHeader/cardHeaderClasses.d.ts +18 -18
- package/CardMedia/cardMediaClasses.d.ts +12 -12
- package/Checkbox/checkboxClasses.d.ts +18 -18
- package/Chip/chipClasses.d.ts +80 -80
- package/CircularProgress/circularProgressClasses.d.ts +26 -26
- package/ClickAwayListener/index.d.ts +2 -2
- package/Collapse/collapseClasses.d.ts +18 -18
- package/Container/Container.js +17 -106
- package/Container/containerClasses.d.ts +6 -22
- package/CssBaseline/CssBaseline.js +4 -4
- package/Dialog/DialogContext.d.ts +6 -6
- package/Dialog/dialogClasses.d.ts +36 -36
- package/DialogActions/dialogActionsClasses.d.ts +10 -10
- package/DialogContent/DialogContent.js +2 -2
- package/DialogContent/dialogContentClasses.d.ts +10 -10
- package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
- package/DialogTitle/dialogTitleClasses.d.ts +8 -8
- package/Divider/Divider.js +4 -4
- package/Divider/dividerClasses.d.ts +34 -34
- package/Drawer/Drawer.js +6 -6
- package/Drawer/drawerClasses.d.ts +30 -30
- package/Fab/Fab.js +72 -66
- package/Fab/fabClasses.d.ts +26 -26
- package/FilledInput/filledInputClasses.d.ts +40 -40
- package/FormControl/formControlClasses.d.ts +14 -14
- package/FormControlLabel/FormControlLabel.js +1 -1
- package/FormControlLabel/formControlLabelClasses.d.ts +20 -20
- package/FormGroup/formGroupClasses.d.ts +12 -12
- package/FormHelperText/FormHelperText.js +3 -3
- package/FormHelperText/formHelperTextClasses.d.ts +22 -22
- package/FormLabel/FormLabel.js +5 -5
- package/FormLabel/formLabelClasses.d.ts +22 -22
- package/Grid/gridClasses.d.ts +48 -48
- package/Icon/Icon.js +8 -8
- package/Icon/iconClasses.d.ts +24 -24
- package/IconButton/IconButton.js +5 -5
- package/IconButton/iconButtonClasses.d.ts +26 -26
- package/ImageList/imageListClasses.d.ts +16 -16
- package/ImageListItem/imageListItemClasses.d.ts +18 -18
- package/ImageListItemBar/ImageListItemBar.js +1 -1
- package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
- package/Input/Input.js +9 -4
- package/Input/inputClasses.d.ts +34 -34
- package/InputAdornment/InputAdornment.js +1 -1
- package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
- package/InputBase/InputBase.js +16 -8
- package/InputBase/inputBaseClasses.d.ts +44 -44
- package/InputLabel/inputLabelClasses.d.ts +32 -32
- package/LinearProgress/linearProgressClasses.d.ts +42 -42
- package/Link/Link.js +3 -8
- package/Link/linkClasses.d.ts +18 -18
- package/List/listClasses.d.ts +14 -14
- package/ListItem/ListItem.js +8 -8
- package/ListItem/listItemClasses.d.ts +30 -30
- package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
- package/ListItemButton/ListItemButton.js +15 -9
- package/ListItemButton/listItemButtonClasses.d.ts +22 -22
- package/ListItemIcon/ListItemIcon.js +1 -1
- package/ListItemIcon/listItemIconClasses.d.ts +10 -10
- package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
- package/ListItemText/listItemTextClasses.d.ts +18 -18
- package/ListSubheader/ListSubheader.js +3 -3
- package/ListSubheader/listSubheaderClasses.d.ts +18 -18
- package/Menu/menuClasses.d.ts +12 -12
- package/MenuItem/MenuItem.js +8 -8
- package/MenuItem/menuItemClasses.d.ts +20 -20
- package/MenuList/MenuList.d.ts +1 -1
- package/MenuList/MenuList.js +1 -1
- package/MobileStepper/MobileStepper.js +5 -5
- package/MobileStepper/mobileStepperClasses.d.ts +22 -22
- package/Modal/Modal.js +1 -1
- package/NativeSelect/nativeSelectClasses.d.ts +32 -32
- package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
- package/Pagination/paginationClasses.d.ts +14 -14
- package/PaginationItem/PaginationItem.js +27 -27
- package/PaginationItem/paginationItemClasses.d.ts +42 -42
- package/Paper/Paper.js +20 -15
- package/Paper/index.d.ts +1 -1
- package/Paper/paperClasses.d.ts +39 -39
- package/Popover/popoverClasses.d.ts +10 -10
- package/Popper/Popper.d.ts +29 -29
- package/README.md +2 -1
- package/Radio/Radio.js +4 -4
- package/Radio/radioClasses.d.ts +16 -16
- package/RadioGroup/RadioGroupContext.d.ts +11 -11
- package/RadioGroup/useRadioGroup.d.ts +4 -4
- package/Rating/Rating.js +2 -2
- package/Rating/ratingClasses.d.ts +40 -40
- package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
- package/Select/SelectInput.js +2 -2
- package/Select/selectClasses.d.ts +30 -30
- package/Skeleton/skeletonClasses.d.ts +24 -24
- package/Slider/Slider.js +1 -5
- package/Snackbar/Snackbar.js +1 -1
- package/Snackbar/snackbarClasses.d.ts +20 -20
- package/SnackbarContent/snackbarContentClasses.d.ts +12 -12
- package/SpeedDial/SpeedDial.js +1 -1
- package/SpeedDial/speedDialClasses.d.ts +22 -22
- package/SpeedDialAction/speedDialActionClasses.d.ts +20 -20
- package/SpeedDialIcon/speedDialIconClasses.d.ts +18 -18
- package/Step/StepContext.d.ts +20 -20
- package/Step/stepClasses.d.ts +16 -16
- package/StepButton/stepButtonClasses.d.ts +14 -14
- package/StepConnector/stepConnectorClasses.d.ts +26 -26
- package/StepContent/stepContentClasses.d.ts +12 -12
- package/StepIcon/StepIcon.js +5 -5
- package/StepIcon/stepIconClasses.d.ts +16 -16
- package/StepLabel/StepLabel.js +4 -4
- package/StepLabel/stepLabelClasses.d.ts +28 -28
- package/Stepper/StepperContext.d.ts +18 -0
- package/Stepper/StepperContext.js +10 -2
- package/Stepper/index.d.ts +3 -0
- package/Stepper/index.js +3 -1
- package/Stepper/stepperClasses.d.ts +14 -14
- package/SvgIcon/SvgIcon.js +4 -4
- package/SvgIcon/svgIconClasses.d.ts +24 -24
- package/Switch/switchClasses.d.ts +32 -32
- package/Tab/Tab.js +7 -7
- package/Tab/tabClasses.d.ts +26 -26
- package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
- package/Table/Table.js +1 -1
- package/Table/tableClasses.d.ts +10 -10
- package/TableBody/tableBodyClasses.d.ts +8 -8
- package/TableCell/tableCellClasses.d.ts +32 -32
- package/TableContainer/tableContainerClasses.d.ts +8 -8
- package/TableFooter/tableFooterClasses.d.ts +8 -8
- package/TableHead/tableHeadClasses.d.ts +8 -8
- package/TablePagination/TablePagination.js +1 -1
- package/TablePagination/tablePaginationClasses.d.ts +28 -28
- package/TableRow/TableRow.js +3 -3
- package/TableRow/tableRowClasses.d.ts +16 -16
- package/TableSortLabel/TableSortLabel.js +4 -4
- package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
- package/Tabs/Tabs.js +4 -4
- package/Tabs/tabsClasses.d.ts +32 -32
- package/TextField/textFieldClasses.d.ts +8 -8
- package/ToggleButton/ToggleButton.js +17 -10
- package/ToggleButton/toggleButtonClasses.d.ts +24 -24
- package/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
- package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
- package/Toolbar/toolbarClasses.d.ts +14 -14
- package/Tooltip/Tooltip.js +5 -5
- package/Tooltip/tooltipClasses.d.ts +30 -30
- package/Typography/typographyClasses.d.ts +50 -50
- package/className/index.d.ts +1 -8
- package/className/index.js +1 -8
- package/darkScrollbar/index.d.ts +28 -28
- package/index.js +1 -1
- package/internal/switchBaseClasses.d.ts +12 -12
- package/legacy/Alert/Alert.js +1 -0
- package/legacy/Autocomplete/Autocomplete.js +18 -16
- package/legacy/BottomNavigation/BottomNavigation.js +0 -0
- package/legacy/Box/Box.js +1 -1
- package/legacy/ButtonBase/TouchRipple.js +5 -5
- package/legacy/ButtonGroup/ButtonGroup.js +10 -10
- package/legacy/CardActionArea/CardActionArea.js +2 -2
- package/legacy/Container/Container.js +18 -103
- package/legacy/CssBaseline/CssBaseline.js +4 -4
- package/legacy/DialogContent/DialogContent.js +2 -2
- package/legacy/Divider/Divider.js +4 -4
- package/legacy/Drawer/Drawer.js +6 -6
- package/legacy/Fab/Fab.js +20 -18
- package/legacy/FormControlLabel/FormControlLabel.js +1 -1
- package/legacy/FormHelperText/FormHelperText.js +3 -3
- package/legacy/FormLabel/FormLabel.js +5 -5
- package/legacy/Icon/Icon.js +8 -8
- package/legacy/IconButton/IconButton.js +5 -5
- package/legacy/ImageListItemBar/ImageListItemBar.js +1 -1
- package/legacy/Input/Input.js +8 -3
- package/legacy/InputAdornment/InputAdornment.js +1 -1
- package/legacy/InputBase/InputBase.js +16 -8
- package/legacy/Link/Link.js +3 -9
- package/legacy/ListItem/ListItem.js +8 -8
- package/legacy/ListItemButton/ListItemButton.js +15 -9
- package/legacy/ListItemIcon/ListItemIcon.js +1 -1
- package/legacy/ListSubheader/ListSubheader.js +3 -3
- package/legacy/MenuItem/MenuItem.js +8 -8
- package/legacy/MenuList/MenuList.js +1 -1
- package/legacy/MobileStepper/MobileStepper.js +5 -5
- package/legacy/Modal/Modal.js +1 -1
- package/legacy/PaginationItem/PaginationItem.js +27 -27
- package/legacy/Paper/Paper.js +10 -7
- package/legacy/Radio/Radio.js +4 -4
- package/legacy/Rating/Rating.js +2 -2
- package/legacy/Select/SelectInput.js +2 -2
- package/legacy/Slider/Slider.js +1 -10
- package/legacy/Snackbar/Snackbar.js +1 -1
- package/legacy/SpeedDial/SpeedDial.js +1 -1
- package/legacy/StepIcon/StepIcon.js +5 -5
- package/legacy/StepLabel/StepLabel.js +4 -4
- package/legacy/Stepper/StepperContext.js +10 -2
- package/legacy/Stepper/index.js +3 -1
- package/legacy/SvgIcon/SvgIcon.js +4 -4
- package/legacy/Tab/Tab.js +7 -7
- package/legacy/Table/Table.js +1 -1
- package/legacy/TablePagination/TablePagination.js +1 -1
- package/legacy/TableRow/TableRow.js +3 -3
- package/legacy/TableSortLabel/TableSortLabel.js +4 -4
- package/legacy/Tabs/Tabs.js +4 -4
- package/legacy/ToggleButton/ToggleButton.js +16 -9
- package/legacy/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
- package/legacy/Tooltip/Tooltip.js +5 -5
- package/legacy/className/index.js +1 -8
- package/legacy/index.js +1 -1
- package/legacy/locale/index.js +22 -22
- package/legacy/styles/createMixins.js +5 -3
- package/legacy/styles/createPalette.js +2 -1
- package/legacy/styles/createTheme.js +1 -1
- package/legacy/styles/experimental_extendTheme.js +70 -42
- package/locale/index.d.ts +71 -71
- package/locale/index.js +22 -22
- package/modern/Alert/Alert.js +1 -0
- package/modern/Autocomplete/Autocomplete.js +18 -16
- package/modern/BottomNavigation/BottomNavigation.js +0 -0
- package/modern/Box/Box.js +1 -1
- package/modern/ButtonBase/TouchRipple.js +5 -5
- package/modern/ButtonGroup/ButtonGroup.js +10 -10
- package/modern/CardActionArea/CardActionArea.js +2 -2
- package/modern/Container/Container.js +17 -106
- package/modern/CssBaseline/CssBaseline.js +4 -4
- package/modern/DialogContent/DialogContent.js +2 -2
- package/modern/Divider/Divider.js +4 -4
- package/modern/Drawer/Drawer.js +6 -6
- package/modern/Fab/Fab.js +19 -17
- package/modern/FormControlLabel/FormControlLabel.js +1 -1
- package/modern/FormHelperText/FormHelperText.js +3 -3
- package/modern/FormLabel/FormLabel.js +5 -5
- package/modern/Icon/Icon.js +8 -8
- package/modern/IconButton/IconButton.js +5 -5
- package/modern/ImageListItemBar/ImageListItemBar.js +1 -1
- package/modern/Input/Input.js +9 -4
- package/modern/InputAdornment/InputAdornment.js +1 -1
- package/modern/InputBase/InputBase.js +16 -8
- package/modern/Link/Link.js +3 -8
- package/modern/ListItem/ListItem.js +8 -8
- package/modern/ListItemButton/ListItemButton.js +15 -9
- package/modern/ListItemIcon/ListItemIcon.js +1 -1
- package/modern/ListSubheader/ListSubheader.js +3 -3
- package/modern/MenuItem/MenuItem.js +8 -8
- package/modern/MenuList/MenuList.js +1 -1
- package/modern/MobileStepper/MobileStepper.js +5 -5
- package/modern/Modal/Modal.js +1 -1
- package/modern/PaginationItem/PaginationItem.js +27 -27
- package/modern/Paper/Paper.js +8 -7
- package/modern/Radio/Radio.js +4 -4
- package/modern/Rating/Rating.js +2 -2
- package/modern/Select/SelectInput.js +2 -2
- package/modern/Slider/Slider.js +1 -5
- package/modern/Snackbar/Snackbar.js +1 -1
- package/modern/SpeedDial/SpeedDial.js +1 -1
- package/modern/StepIcon/StepIcon.js +5 -5
- package/modern/StepLabel/StepLabel.js +4 -4
- package/modern/Stepper/StepperContext.js +10 -2
- package/modern/Stepper/index.js +3 -1
- package/modern/SvgIcon/SvgIcon.js +3 -3
- package/modern/Tab/Tab.js +7 -7
- package/modern/Table/Table.js +1 -1
- package/modern/TablePagination/TablePagination.js +1 -1
- package/modern/TableRow/TableRow.js +3 -3
- package/modern/TableSortLabel/TableSortLabel.js +4 -4
- package/modern/Tabs/Tabs.js +4 -4
- package/modern/ToggleButton/ToggleButton.js +17 -10
- package/modern/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
- package/modern/Tooltip/Tooltip.js +5 -5
- package/modern/className/index.js +1 -8
- package/modern/index.js +1 -1
- package/modern/locale/index.js +22 -22
- package/modern/styles/createMixins.js +5 -3
- package/modern/styles/createPalette.js +2 -1
- package/modern/styles/createTheme.js +1 -1
- package/modern/styles/experimental_extendTheme.js +71 -44
- package/node/Alert/Alert.js +1 -0
- package/node/Autocomplete/Autocomplete.js +19 -16
- package/node/BottomNavigation/BottomNavigation.js +0 -0
- package/node/Box/Box.js +2 -2
- package/node/ButtonBase/TouchRipple.js +5 -5
- package/node/ButtonGroup/ButtonGroup.js +10 -10
- package/node/CardActionArea/CardActionArea.js +2 -2
- package/node/Container/Container.js +17 -113
- package/node/CssBaseline/CssBaseline.js +4 -4
- package/node/DialogContent/DialogContent.js +2 -2
- package/node/Divider/Divider.js +4 -4
- package/node/Drawer/Drawer.js +6 -6
- package/node/Fab/Fab.js +72 -66
- package/node/FormControlLabel/FormControlLabel.js +1 -1
- package/node/FormHelperText/FormHelperText.js +3 -3
- package/node/FormLabel/FormLabel.js +5 -5
- package/node/Icon/Icon.js +8 -8
- package/node/IconButton/IconButton.js +5 -5
- package/node/ImageListItemBar/ImageListItemBar.js +1 -1
- package/node/Input/Input.js +9 -4
- package/node/InputAdornment/InputAdornment.js +1 -1
- package/node/InputBase/InputBase.js +14 -8
- package/node/Link/Link.js +3 -9
- package/node/ListItem/ListItem.js +8 -8
- package/node/ListItemButton/ListItemButton.js +15 -9
- package/node/ListItemIcon/ListItemIcon.js +1 -1
- package/node/ListSubheader/ListSubheader.js +3 -3
- package/node/MenuItem/MenuItem.js +8 -8
- package/node/MenuList/MenuList.js +1 -1
- package/node/MobileStepper/MobileStepper.js +5 -5
- package/node/Modal/Modal.js +1 -1
- package/node/PaginationItem/PaginationItem.js +27 -27
- package/node/Paper/Paper.js +22 -14
- package/node/Radio/Radio.js +4 -4
- package/node/Rating/Rating.js +2 -2
- package/node/Select/SelectInput.js +2 -2
- package/node/Slider/Slider.js +1 -5
- package/node/Snackbar/Snackbar.js +1 -1
- package/node/SpeedDial/SpeedDial.js +1 -1
- package/node/StepIcon/StepIcon.js +5 -5
- package/node/StepLabel/StepLabel.js +4 -4
- package/node/Stepper/StepperContext.js +11 -1
- package/node/Stepper/index.js +22 -1
- package/node/SvgIcon/SvgIcon.js +4 -4
- package/node/Tab/Tab.js +7 -7
- package/node/Table/Table.js +1 -1
- package/node/TablePagination/TablePagination.js +1 -1
- package/node/TableRow/TableRow.js +3 -3
- package/node/TableSortLabel/TableSortLabel.js +4 -4
- package/node/Tabs/Tabs.js +4 -4
- package/node/ToggleButton/ToggleButton.js +17 -10
- package/node/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
- package/node/Tooltip/Tooltip.js +5 -5
- package/node/className/index.js +2 -2
- package/node/index.js +1 -1
- package/node/locale/index.js +22 -22
- package/node/styles/createMixins.js +5 -3
- package/node/styles/createPalette.js +2 -1
- package/node/styles/createTheme.js +1 -1
- package/node/styles/experimental_extendTheme.js +72 -45
- package/package.json +5 -5
- package/styles/ThemeProvider.d.ts +1 -1
- package/styles/createMixins.d.ts +2 -6
- package/styles/createMixins.js +5 -3
- package/styles/createPalette.d.ts +10 -3
- package/styles/createPalette.js +2 -1
- package/styles/createTheme.js +1 -1
- package/styles/experimental_extendTheme.d.ts +43 -16
- package/styles/experimental_extendTheme.js +72 -45
- package/styles/index.d.ts +1 -0
- package/transitions/index.d.ts +1 -1
- package/transitions/transition.d.ts +13 -13
- package/transitions/utils.d.ts +23 -23
- package/umd/material-ui.development.js +1079 -894
- package/umd/material-ui.production.min.js +21 -21
- package/useMediaQuery/useMediaQuery.d.ts +31 -31
- package/useTouchRipple/index.d.ts +1 -1
- package/useTouchRipple/useTouchRipple.d.ts +28 -28
- package/utils/getScrollbarSize.d.ts +2 -2
- package/utils/ownerDocument.d.ts +2 -2
- package/utils/ownerWindow.d.ts +2 -2
- package/utils/setRef.d.ts +2 -2
package/modern/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 ? '' : '
|
|
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 ? '' : '
|
|
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,10 +1,12 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
-
export default function createMixins(breakpoints,
|
|
2
|
+
export default function createMixins(breakpoints, mixins) {
|
|
3
3
|
return _extends({
|
|
4
4
|
toolbar: {
|
|
5
5
|
minHeight: 56,
|
|
6
|
-
[
|
|
7
|
-
|
|
6
|
+
[breakpoints.up('xs')]: {
|
|
7
|
+
'@media (orientation: landscape)': {
|
|
8
|
+
minHeight: 48
|
|
9
|
+
}
|
|
8
10
|
},
|
|
9
11
|
[breakpoints.up('sm')]: {
|
|
10
12
|
minHeight: 64
|
|
@@ -278,7 +278,8 @@ const theme2 = createTheme({ palette: {
|
|
|
278
278
|
|
|
279
279
|
const paletteOutput = deepmerge(_extends({
|
|
280
280
|
// A collection of common colors.
|
|
281
|
-
common,
|
|
281
|
+
common: _extends({}, common),
|
|
282
|
+
// prevent mutable object.
|
|
282
283
|
// The palette mode, can be light or dark.
|
|
283
284
|
mode,
|
|
284
285
|
// The colors used to represent primary interface elements for a user.
|
|
@@ -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,
|
|
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(),
|
|
@@ -1,34 +1,32 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
3
|
-
const _excluded = ["colorSchemes"
|
|
3
|
+
const _excluded = ["colorSchemes"],
|
|
4
4
|
_excluded2 = ["palette"];
|
|
5
5
|
import { deepmerge } from '@mui/utils';
|
|
6
6
|
import { colorChannel } from '@mui/system';
|
|
7
7
|
import createThemeWithoutVars from './createTheme';
|
|
8
|
-
import
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
function
|
|
8
|
+
import { getOverlayAlpha } from '../Paper/Paper';
|
|
9
|
+
const defaultDarkOverlays = [...Array(25)].map((_, index) => {
|
|
10
|
+
if (index === 0) {
|
|
11
|
+
return undefined;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
const overlay = getOverlayAlpha(index);
|
|
15
|
+
return `linear-gradient(rgba(255 255 255 / ${overlay}), rgba(255 255 255 / ${overlay}))`;
|
|
16
|
+
});
|
|
17
|
+
export default function extendTheme(options = {}, ...args) {
|
|
18
18
|
const {
|
|
19
|
-
colorSchemes: colorSchemesInput = {}
|
|
20
|
-
opacity: opacityInput = {}
|
|
19
|
+
colorSchemes: colorSchemesInput = {}
|
|
21
20
|
} = options,
|
|
22
|
-
input = _objectWithoutPropertiesLoose(options, _excluded);
|
|
23
|
-
|
|
21
|
+
input = _objectWithoutPropertiesLoose(options, _excluded);
|
|
24
22
|
|
|
25
|
-
|
|
23
|
+
const _createThemeWithoutVa = createThemeWithoutVars(_extends({}, input, colorSchemesInput.light && {
|
|
26
24
|
palette: colorSchemesInput.light?.palette
|
|
27
25
|
})),
|
|
28
|
-
|
|
26
|
+
{
|
|
29
27
|
palette: lightPalette
|
|
30
28
|
} = _createThemeWithoutVa,
|
|
31
|
-
|
|
29
|
+
muiTheme = _objectWithoutPropertiesLoose(_createThemeWithoutVa, _excluded2);
|
|
32
30
|
|
|
33
31
|
const {
|
|
34
32
|
palette: darkPalette
|
|
@@ -37,17 +35,50 @@ function createTheme(options = {}, ...args) {
|
|
|
37
35
|
mode: 'dark'
|
|
38
36
|
}, colorSchemesInput.dark?.palette)
|
|
39
37
|
});
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
38
|
+
|
|
39
|
+
let theme = _extends({}, muiTheme, {
|
|
40
|
+
colorSchemes: _extends({}, colorSchemesInput, {
|
|
41
|
+
light: _extends({}, colorSchemesInput.light, {
|
|
42
|
+
palette: lightPalette,
|
|
43
|
+
opacity: _extends({
|
|
44
|
+
placeholder: 0.42,
|
|
45
|
+
inputTouchBottomLine: 0.42
|
|
46
|
+
}, colorSchemesInput.light?.opacity),
|
|
47
|
+
overlays: colorSchemesInput.light?.overlays || []
|
|
48
|
+
}),
|
|
49
|
+
dark: _extends({}, colorSchemesInput.dark, {
|
|
50
|
+
palette: darkPalette,
|
|
51
|
+
opacity: _extends({
|
|
52
|
+
placeholder: 0.5,
|
|
53
|
+
inputTouchBottomLine: 0.7
|
|
54
|
+
}, colorSchemesInput.dark?.opacity),
|
|
55
|
+
overlays: colorSchemesInput.dark?.overlays || defaultDarkOverlays
|
|
56
|
+
})
|
|
57
|
+
})
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
Object.keys(theme.colorSchemes).forEach(key => {
|
|
61
|
+
const palette = theme.colorSchemes[key].palette; // attach black & white channels to common node
|
|
62
|
+
|
|
63
|
+
if (key === 'dark') {
|
|
64
|
+
palette.common.background = palette.common.background || '#000';
|
|
65
|
+
palette.common.onBackground = palette.common.onBackground || '#fff';
|
|
66
|
+
} else {
|
|
67
|
+
palette.common.background = palette.common.background || '#fff';
|
|
68
|
+
palette.common.onBackground = palette.common.onBackground || '#000';
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
palette.common.backgroundChannel = colorChannel(palette.common.background);
|
|
72
|
+
palette.common.onBackgroundChannel = colorChannel(palette.common.onBackground);
|
|
73
|
+
palette.dividerChannel = colorChannel(palette.divider); // special token for Tooltip
|
|
74
|
+
// TODO: consider adding `main`, and `light` to palette.grey to make it consistent.
|
|
75
|
+
|
|
76
|
+
if (!palette.grey.dark) {
|
|
77
|
+
palette.grey.dark = palette.grey[700];
|
|
78
|
+
}
|
|
79
|
+
|
|
49
80
|
Object.keys(palette).forEach(color => {
|
|
50
|
-
const colors = palette[color];
|
|
81
|
+
const colors = palette[color]; // Color palettes: primary, secondary, error, info, success, and warning
|
|
51
82
|
|
|
52
83
|
if (colors.main) {
|
|
53
84
|
palette[color].mainChannel = colorChannel(colors.main);
|
|
@@ -61,29 +92,25 @@ function createTheme(options = {}, ...args) {
|
|
|
61
92
|
palette[color].darkChannel = colorChannel(colors.dark);
|
|
62
93
|
}
|
|
63
94
|
|
|
95
|
+
if (colors.contrastText) {
|
|
96
|
+
palette[color].contrastTextChannel = colorChannel(colors.contrastText);
|
|
97
|
+
} // Text colors: text.primary, text.secondary
|
|
98
|
+
|
|
99
|
+
|
|
64
100
|
if (colors.primary) {
|
|
65
101
|
palette[color].primaryChannel = colorChannel(colors.primary);
|
|
66
102
|
}
|
|
67
103
|
|
|
68
104
|
if (colors.secondary) {
|
|
69
105
|
palette[color].secondaryChannel = colorChannel(colors.secondary);
|
|
70
|
-
}
|
|
106
|
+
} // Action colors: action.activeChannel
|
|
71
107
|
|
|
72
|
-
|
|
73
|
-
|
|
108
|
+
|
|
109
|
+
if (colors.active) {
|
|
110
|
+
palette[color].activeChannel = colorChannel(colors.active);
|
|
74
111
|
}
|
|
75
112
|
});
|
|
76
|
-
colorSchemes[key] = {
|
|
77
|
-
palette
|
|
78
|
-
};
|
|
79
113
|
});
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
muiTheme.colorSchemes = colorSchemes;
|
|
84
|
-
muiTheme.opacity = opacity;
|
|
85
|
-
muiTheme = args.reduce((acc, argument) => deepmerge(acc, argument), muiTheme);
|
|
86
|
-
return muiTheme;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
export default createTheme;
|
|
114
|
+
theme = args.reduce((acc, argument) => deepmerge(acc, argument), theme);
|
|
115
|
+
return theme;
|
|
116
|
+
}
|
package/node/Alert/Alert.js
CHANGED
|
@@ -191,6 +191,7 @@ const Alert = /*#__PURE__*/React.forwardRef(function Alert(inProps, ref) {
|
|
|
191
191
|
className: classes.message,
|
|
192
192
|
children: children
|
|
193
193
|
}), action != null ? /*#__PURE__*/(0, _jsxRuntime.jsx)(AlertAction, {
|
|
194
|
+
ownerState: ownerState,
|
|
194
195
|
className: classes.action,
|
|
195
196
|
children: action
|
|
196
197
|
}) : null, action == null && onClose ? /*#__PURE__*/(0, _jsxRuntime.jsx)(AlertAction, {
|
|
@@ -277,7 +277,7 @@ const AutocompletePopper = (0, _styled.default)(_Popper.default, {
|
|
|
277
277
|
theme,
|
|
278
278
|
ownerState
|
|
279
279
|
}) => (0, _extends2.default)({
|
|
280
|
-
zIndex: theme.zIndex.modal
|
|
280
|
+
zIndex: (theme.vars || theme).zIndex.modal
|
|
281
281
|
}, ownerState.disablePortal && {
|
|
282
282
|
position: 'absolute'
|
|
283
283
|
}));
|
|
@@ -297,7 +297,7 @@ const AutocompleteLoading = (0, _styled.default)('div', {
|
|
|
297
297
|
})(({
|
|
298
298
|
theme
|
|
299
299
|
}) => ({
|
|
300
|
-
color: theme.palette.text.secondary,
|
|
300
|
+
color: (theme.vars || theme).palette.text.secondary,
|
|
301
301
|
padding: '14px 16px'
|
|
302
302
|
}));
|
|
303
303
|
const AutocompleteNoOptions = (0, _styled.default)('div', {
|
|
@@ -307,7 +307,7 @@ const AutocompleteNoOptions = (0, _styled.default)('div', {
|
|
|
307
307
|
})(({
|
|
308
308
|
theme
|
|
309
309
|
}) => ({
|
|
310
|
-
color: theme.palette.text.secondary,
|
|
310
|
+
color: (theme.vars || theme).palette.text.secondary,
|
|
311
311
|
padding: '14px 16px'
|
|
312
312
|
}));
|
|
313
313
|
const AutocompleteListbox = (0, _styled.default)('div', {
|
|
@@ -340,30 +340,30 @@ const AutocompleteListbox = (0, _styled.default)('div', {
|
|
|
340
340
|
minHeight: 'auto'
|
|
341
341
|
},
|
|
342
342
|
[`&.${_autocompleteClasses.default.focused}`]: {
|
|
343
|
-
backgroundColor: theme.palette.action.hover,
|
|
343
|
+
backgroundColor: (theme.vars || theme).palette.action.hover,
|
|
344
344
|
// Reset on touch devices, it doesn't add specificity
|
|
345
345
|
'@media (hover: none)': {
|
|
346
346
|
backgroundColor: 'transparent'
|
|
347
347
|
}
|
|
348
348
|
},
|
|
349
349
|
'&[aria-disabled="true"]': {
|
|
350
|
-
opacity: theme.palette.action.disabledOpacity,
|
|
350
|
+
opacity: (theme.vars || theme).palette.action.disabledOpacity,
|
|
351
351
|
pointerEvents: 'none'
|
|
352
352
|
},
|
|
353
353
|
[`&.${_autocompleteClasses.default.focusVisible}`]: {
|
|
354
|
-
backgroundColor: theme.palette.action.focus
|
|
354
|
+
backgroundColor: (theme.vars || theme).palette.action.focus
|
|
355
355
|
},
|
|
356
356
|
'&[aria-selected="true"]': {
|
|
357
|
-
backgroundColor: (0, _system.alpha)(theme.palette.primary.main, theme.palette.action.selectedOpacity),
|
|
357
|
+
backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / ${theme.vars.palette.action.selectedOpacity})` : (0, _system.alpha)(theme.palette.primary.main, theme.palette.action.selectedOpacity),
|
|
358
358
|
[`&.${_autocompleteClasses.default.focused}`]: {
|
|
359
|
-
backgroundColor: (0, _system.alpha)(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
|
|
359
|
+
backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.hoverOpacity}))` : (0, _system.alpha)(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
|
|
360
360
|
// Reset on touch devices, it doesn't add specificity
|
|
361
361
|
'@media (hover: none)': {
|
|
362
|
-
backgroundColor: theme.palette.action.selected
|
|
362
|
+
backgroundColor: (theme.vars || theme).palette.action.selected
|
|
363
363
|
}
|
|
364
364
|
},
|
|
365
365
|
[`&.${_autocompleteClasses.default.focusVisible}`]: {
|
|
366
|
-
backgroundColor: (0, _system.alpha)(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
|
|
366
|
+
backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.focusOpacity}))` : (0, _system.alpha)(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
|
|
367
367
|
}
|
|
368
368
|
}
|
|
369
369
|
}
|
|
@@ -375,7 +375,7 @@ const AutocompleteGroupLabel = (0, _styled.default)(_ListSubheader.default, {
|
|
|
375
375
|
})(({
|
|
376
376
|
theme
|
|
377
377
|
}) => ({
|
|
378
|
-
backgroundColor: theme.palette.background.paper,
|
|
378
|
+
backgroundColor: (theme.vars || theme).palette.background.paper,
|
|
379
379
|
top: -8
|
|
380
380
|
}));
|
|
381
381
|
const AutocompleteGroupUl = (0, _styled.default)('ul', {
|
|
@@ -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),
|
|
@@ -568,10 +569,11 @@ const Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps
|
|
|
568
569
|
fullWidth: true,
|
|
569
570
|
size: size === 'small' ? 'small' : undefined,
|
|
570
571
|
InputLabelProps: getInputLabelProps(),
|
|
571
|
-
InputProps: {
|
|
572
|
+
InputProps: (0, _extends2.default)({
|
|
572
573
|
ref: setAnchorEl,
|
|
573
574
|
className: classes.inputRoot,
|
|
574
|
-
startAdornment
|
|
575
|
+
startAdornment
|
|
576
|
+
}, (hasClearIcon || hasPopupIcon) && {
|
|
575
577
|
endAdornment: /*#__PURE__*/(0, _jsxRuntime.jsxs)(AutocompleteEndAdornment, {
|
|
576
578
|
className: classes.endAdornment,
|
|
577
579
|
ownerState: ownerState,
|
|
@@ -591,7 +593,7 @@ const Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps
|
|
|
591
593
|
children: popupIcon
|
|
592
594
|
})) : null]
|
|
593
595
|
})
|
|
594
|
-
},
|
|
596
|
+
}),
|
|
595
597
|
inputProps: (0, _extends2.default)({
|
|
596
598
|
className: (0, _clsx.default)(classes.input),
|
|
597
599
|
disabled,
|
|
@@ -1075,6 +1077,7 @@ process.env.NODE_ENV !== "production" ? Autocomplete.propTypes
|
|
|
1075
1077
|
*
|
|
1076
1078
|
* @param {T[]} value The `value` provided to the component.
|
|
1077
1079
|
* @param {function} getTagProps A tag props getter.
|
|
1080
|
+
* @param {object} ownerState The state of the Autocomplete component.
|
|
1078
1081
|
* @returns {ReactNode}
|
|
1079
1082
|
*/
|
|
1080
1083
|
renderTags: _propTypes.default.func,
|
|
File without changes
|
package/node/Box/Box.js
CHANGED
|
@@ -7,10 +7,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
9
|
|
|
10
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
-
|
|
12
10
|
var _system = require("@mui/system");
|
|
13
11
|
|
|
12
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
|
+
|
|
14
14
|
var _className = require("../className");
|
|
15
15
|
|
|
16
16
|
var _styles = require("../styles");
|
|
@@ -219,12 +219,12 @@ const TouchRipple = /*#__PURE__*/React.forwardRef(function TouchRipple(inProps,
|
|
|
219
219
|
|
|
220
220
|
} = options;
|
|
221
221
|
|
|
222
|
-
if (event.type === 'mousedown' && ignoringMouseDown.current) {
|
|
222
|
+
if ((event == null ? void 0 : event.type) === 'mousedown' && ignoringMouseDown.current) {
|
|
223
223
|
ignoringMouseDown.current = false;
|
|
224
224
|
return;
|
|
225
225
|
}
|
|
226
226
|
|
|
227
|
-
if (event.type === 'touchstart') {
|
|
227
|
+
if ((event == null ? void 0 : event.type) === 'touchstart') {
|
|
228
228
|
ignoringMouseDown.current = true;
|
|
229
229
|
}
|
|
230
230
|
|
|
@@ -240,7 +240,7 @@ const TouchRipple = /*#__PURE__*/React.forwardRef(function TouchRipple(inProps,
|
|
|
240
240
|
let rippleY;
|
|
241
241
|
let rippleSize;
|
|
242
242
|
|
|
243
|
-
if (center || event.clientX === 0 && event.clientY === 0 || !event.clientX && !event.touches) {
|
|
243
|
+
if (center || event === undefined || event.clientX === 0 && event.clientY === 0 || !event.clientX && !event.touches) {
|
|
244
244
|
rippleX = Math.round(rect.width / 2);
|
|
245
245
|
rippleY = Math.round(rect.height / 2);
|
|
246
246
|
} else {
|
|
@@ -265,7 +265,7 @@ const TouchRipple = /*#__PURE__*/React.forwardRef(function TouchRipple(inProps,
|
|
|
265
265
|
} // Touche devices
|
|
266
266
|
|
|
267
267
|
|
|
268
|
-
if (event.touches) {
|
|
268
|
+
if (event != null && event.touches) {
|
|
269
269
|
// check that this isn't another touchstart due to multitouch
|
|
270
270
|
// otherwise we will only clear a single timer when unmounting while two
|
|
271
271
|
// are running
|
|
@@ -308,7 +308,7 @@ const TouchRipple = /*#__PURE__*/React.forwardRef(function TouchRipple(inProps,
|
|
|
308
308
|
clearTimeout(startTimer.current); // The touch interaction occurs too quickly.
|
|
309
309
|
// We still want to show ripple effect.
|
|
310
310
|
|
|
311
|
-
if (event.type === 'touchend' && startTimerCommit.current) {
|
|
311
|
+
if ((event == null ? void 0 : event.type) === 'touchend' && startTimerCommit.current) {
|
|
312
312
|
startTimerCommit.current();
|
|
313
313
|
startTimerCommit.current = null;
|
|
314
314
|
startTimer.current = setTimeout(() => {
|
|
@@ -82,9 +82,9 @@ const ButtonGroupRoot = (0, _styled.default)('div', {
|
|
|
82
82
|
ownerState
|
|
83
83
|
}) => (0, _extends2.default)({
|
|
84
84
|
display: 'inline-flex',
|
|
85
|
-
borderRadius: theme.shape.borderRadius
|
|
85
|
+
borderRadius: (theme.vars || theme).shape.borderRadius
|
|
86
86
|
}, ownerState.variant === 'contained' && {
|
|
87
|
-
boxShadow: theme.shadows[2]
|
|
87
|
+
boxShadow: (theme.vars || theme).shadows[2]
|
|
88
88
|
}, ownerState.disableElevation && {
|
|
89
89
|
boxShadow: 'none'
|
|
90
90
|
}, ownerState.fullWidth && {
|
|
@@ -112,27 +112,27 @@ const ButtonGroupRoot = (0, _styled.default)('div', {
|
|
|
112
112
|
borderBottomRightRadius: 0,
|
|
113
113
|
borderBottomLeftRadius: 0
|
|
114
114
|
}, ownerState.variant === 'text' && ownerState.orientation === 'horizontal' && {
|
|
115
|
-
borderRight: `1px solid ${theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)'}`
|
|
115
|
+
borderRight: theme.vars ? `1px solid rgba(${theme.vars.palette.common.onBackgroundChannel} / 0.23)` : `1px solid ${theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)'}`
|
|
116
116
|
}, ownerState.variant === 'text' && ownerState.orientation === 'vertical' && {
|
|
117
|
-
borderBottom: `1px solid ${theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)'}`
|
|
117
|
+
borderBottom: theme.vars ? `1px solid rgba(${theme.vars.palette.common.onBackgroundChannel} / 0.23)` : `1px solid ${theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)'}`
|
|
118
118
|
}, ownerState.variant === 'text' && ownerState.color !== 'inherit' && {
|
|
119
|
-
borderColor: (0, _system.alpha)(theme.palette[ownerState.color].main, 0.5)
|
|
119
|
+
borderColor: theme.vars ? `rgba(${theme.vars.palette[ownerState.color].mainChannel} / 0.5)` : (0, _system.alpha)(theme.palette[ownerState.color].main, 0.5)
|
|
120
120
|
}, ownerState.variant === 'outlined' && ownerState.orientation === 'horizontal' && {
|
|
121
121
|
borderRightColor: 'transparent'
|
|
122
122
|
}, ownerState.variant === 'outlined' && ownerState.orientation === 'vertical' && {
|
|
123
123
|
borderBottomColor: 'transparent'
|
|
124
124
|
}, ownerState.variant === 'contained' && ownerState.orientation === 'horizontal' && {
|
|
125
|
-
borderRight: `1px solid ${theme.palette.grey[400]}`,
|
|
125
|
+
borderRight: `1px solid ${(theme.vars || theme).palette.grey[400]}`,
|
|
126
126
|
[`&.${_buttonGroupClasses.default.disabled}`]: {
|
|
127
|
-
borderRight: `1px solid ${theme.palette.action.disabled}`
|
|
127
|
+
borderRight: `1px solid ${(theme.vars || theme).palette.action.disabled}`
|
|
128
128
|
}
|
|
129
129
|
}, ownerState.variant === 'contained' && ownerState.orientation === 'vertical' && {
|
|
130
|
-
borderBottom: `1px solid ${theme.palette.grey[400]}`,
|
|
130
|
+
borderBottom: `1px solid ${(theme.vars || theme).palette.grey[400]}`,
|
|
131
131
|
[`&.${_buttonGroupClasses.default.disabled}`]: {
|
|
132
|
-
borderBottom: `1px solid ${theme.palette.action.disabled}`
|
|
132
|
+
borderBottom: `1px solid ${(theme.vars || theme).palette.action.disabled}`
|
|
133
133
|
}
|
|
134
134
|
}, ownerState.variant === 'contained' && ownerState.color !== 'inherit' && {
|
|
135
|
-
borderColor: theme.palette[ownerState.color].dark
|
|
135
|
+
borderColor: (theme.vars || theme).palette[ownerState.color].dark
|
|
136
136
|
}, {
|
|
137
137
|
'&:hover': (0, _extends2.default)({}, ownerState.variant === 'outlined' && ownerState.orientation === 'horizontal' && {
|
|
138
138
|
borderRightColor: 'currentColor'
|
|
@@ -57,13 +57,13 @@ const CardActionAreaRoot = (0, _styled.default)(_ButtonBase.default, {
|
|
|
57
57
|
textAlign: 'inherit',
|
|
58
58
|
width: '100%',
|
|
59
59
|
[`&:hover .${_cardActionAreaClasses.default.focusHighlight}`]: {
|
|
60
|
-
opacity: theme.palette.action.hoverOpacity,
|
|
60
|
+
opacity: (theme.vars || theme).palette.action.hoverOpacity,
|
|
61
61
|
'@media (hover: none)': {
|
|
62
62
|
opacity: 0
|
|
63
63
|
}
|
|
64
64
|
},
|
|
65
65
|
[`&.${_cardActionAreaClasses.default.focusVisible} .${_cardActionAreaClasses.default.focusHighlight}`]: {
|
|
66
|
-
opacity: theme.palette.action.focusOpacity
|
|
66
|
+
opacity: (theme.vars || theme).palette.action.focusOpacity
|
|
67
67
|
}
|
|
68
68
|
}));
|
|
69
69
|
const CardActionAreaFocusHighlight = (0, _styled.default)('span', {
|