@mui/material 6.0.0-alpha.4 → 6.0.0-alpha.6
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/Accordion.d.ts +2 -2
- package/Accordion/Accordion.js +2 -2
- package/AccordionSummary/accordionSummaryClasses.d.ts +1 -1
- package/Alert/Alert.d.ts +2 -2
- package/Alert/Alert.js +2 -2
- package/Alert/alertClasses.d.ts +12 -12
- package/Avatar/Avatar.d.ts +1 -1
- package/Avatar/Avatar.js +1 -1
- package/Backdrop/Backdrop.d.ts +1 -1
- package/Backdrop/Backdrop.js +1 -1
- package/Badge/Badge.d.ts +2 -2
- package/Badge/Badge.js +2 -2
- package/Breadcrumbs/BreadcrumbCollapsed.js +1 -1
- package/Button/Button.js +1 -1
- package/Button/buttonClasses.d.ts +33 -33
- package/ButtonGroup/buttonGroupClasses.d.ts +17 -17
- package/CHANGELOG.md +86 -0
- package/Checkbox/Checkbox.js +3 -1
- package/Chip/chipClasses.d.ts +28 -26
- package/Chip/chipClasses.js +1 -1
- package/Collapse/Collapse.js +66 -35
- package/Dialog/Dialog.js +105 -61
- package/DialogActions/DialogActions.js +16 -12
- package/DialogContent/DialogContent.js +25 -15
- package/DialogContentText/DialogContentText.js +3 -2
- package/DialogTitle/DialogTitle.js +2 -2
- package/Divider/Divider.d.ts +1 -1
- package/Divider/Divider.js +1 -1
- package/Drawer/Drawer.js +73 -32
- package/Fab/Fab.js +1 -1
- package/FilledInput/FilledInput.d.ts +1 -0
- package/FilledInput/FilledInput.js +170 -87
- package/FormControlLabel/FormControlLabel.d.ts +21 -14
- package/FormControlLabel/FormControlLabel.js +22 -4
- package/FormHelperText/FormHelperText.js +2 -2
- package/FormLabel/FormLabel.js +23 -13
- package/Grow/Grow.js +3 -1
- package/Icon/Icon.js +63 -23
- package/ImageList/ImageList.js +2 -2
- package/ImageListItem/ImageListItem.js +2 -2
- package/ImageListItemBar/ImageListItemBar.js +2 -2
- package/Input/Input.d.ts +1 -0
- package/Input/Input.js +84 -61
- package/InputAdornment/InputAdornment.js +37 -21
- package/InputBase/InputBase.js +58 -28
- package/InputLabel/InputLabel.js +120 -58
- package/Link/Link.js +99 -54
- package/Link/getTextDecoration.d.ts +2 -8
- package/Link/getTextDecoration.js +16 -8
- package/List/List.js +22 -13
- package/ListItem/ListItem.js +2 -2
- package/ListItemAvatar/ListItemAvatar.js +2 -2
- package/ListItemButton/ListItemButton.js +3 -2
- package/ListItemIcon/ListItemIcon.js +14 -9
- package/ListItemSecondaryAction/ListItemSecondaryAction.js +2 -2
- package/ListItemText/ListItemText.js +2 -2
- package/ListSubheader/ListSubheader.js +5 -3
- package/Menu/Menu.js +3 -2
- package/MenuItem/MenuItem.js +47 -27
- package/NativeSelect/NativeSelectInput.js +78 -49
- package/OutlinedInput/NotchedOutline.js +60 -43
- package/OutlinedInput/OutlinedInput.js +97 -39
- package/Pagination/Pagination.js +2 -2
- package/PaginationItem/PaginationItem.d.ts +26 -14
- package/PaginationItem/PaginationItem.js +64 -20
- package/PaginationItem/paginationItemClasses.d.ts +4 -4
- package/Paper/Paper.js +44 -21
- package/Radio/Radio.js +5 -3
- package/Radio/RadioButtonIcon.js +1 -1
- package/Rating/Rating.js +3 -2
- package/Select/Select.js +2 -1
- package/Select/SelectInput.js +8 -6
- package/Skeleton/Skeleton.js +109 -61
- package/Slider/Slider.d.ts +2 -2
- package/Slider/Slider.js +2 -2
- package/Snackbar/Snackbar.js +66 -40
- package/SnackbarContent/SnackbarContent.js +2 -2
- package/SpeedDial/SpeedDial.d.ts +28 -1
- package/SpeedDial/SpeedDial.js +107 -49
- package/SpeedDialAction/SpeedDialAction.js +50 -24
- package/SpeedDialIcon/SpeedDialIcon.js +37 -16
- package/StepConnector/stepConnectorClasses.d.ts +2 -2
- package/StepLabel/StepLabel.d.ts +3 -3
- package/StepLabel/StepLabel.js +3 -3
- package/SvgIcon/SvgIcon.js +73 -21
- package/SwipeableDrawer/SwipeArea.js +39 -18
- package/Tab/Tab.js +127 -55
- package/TabScrollButton/TabScrollButton.js +27 -15
- package/Table/Table.js +2 -2
- package/TableBody/TableBody.js +2 -2
- package/TableCell/TableCell.js +2 -2
- package/TableContainer/TableContainer.js +2 -2
- package/TableFooter/TableFooter.js +2 -2
- package/TableHead/TableHead.js +2 -2
- package/TablePagination/TablePagination.js +2 -2
- package/TableRow/TableRow.js +2 -2
- package/TableSortLabel/TableSortLabel.js +2 -2
- package/Tabs/Tabs.js +107 -54
- package/TextField/TextField.js +2 -2
- package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +2 -2
- package/Toolbar/Toolbar.js +3 -7
- package/Tooltip/Tooltip.js +185 -88
- package/Typography/Typography.js +89 -39
- package/index.js +1 -1
- package/internal/SwitchBase.js +39 -11
- package/modern/Accordion/Accordion.js +2 -2
- package/modern/Alert/Alert.js +2 -2
- package/modern/Avatar/Avatar.js +1 -1
- package/modern/Backdrop/Backdrop.js +1 -1
- package/modern/Badge/Badge.js +2 -2
- package/modern/Breadcrumbs/BreadcrumbCollapsed.js +1 -1
- package/modern/Button/Button.js +1 -1
- package/modern/Checkbox/Checkbox.js +3 -1
- package/modern/Chip/chipClasses.js +1 -1
- package/modern/Collapse/Collapse.js +66 -35
- package/modern/Dialog/Dialog.js +105 -61
- package/modern/DialogActions/DialogActions.js +16 -12
- package/modern/DialogContent/DialogContent.js +25 -15
- package/modern/DialogContentText/DialogContentText.js +3 -2
- package/modern/DialogTitle/DialogTitle.js +2 -2
- package/modern/Divider/Divider.js +1 -1
- package/modern/Drawer/Drawer.js +73 -32
- package/modern/Fab/Fab.js +1 -1
- package/modern/FilledInput/FilledInput.js +170 -87
- package/modern/FormControlLabel/FormControlLabel.js +22 -4
- package/modern/FormHelperText/FormHelperText.js +2 -2
- package/modern/FormLabel/FormLabel.js +23 -13
- package/modern/Grow/Grow.js +3 -1
- package/modern/Icon/Icon.js +63 -23
- package/modern/ImageList/ImageList.js +2 -2
- package/modern/ImageListItem/ImageListItem.js +2 -2
- package/modern/ImageListItemBar/ImageListItemBar.js +2 -2
- package/modern/Input/Input.js +84 -61
- package/modern/InputAdornment/InputAdornment.js +37 -21
- package/modern/InputBase/InputBase.js +58 -28
- package/modern/InputLabel/InputLabel.js +120 -58
- package/modern/Link/Link.js +99 -54
- package/modern/Link/getTextDecoration.js +16 -8
- package/modern/List/List.js +22 -13
- package/modern/ListItem/ListItem.js +2 -2
- package/modern/ListItemAvatar/ListItemAvatar.js +2 -2
- package/modern/ListItemButton/ListItemButton.js +3 -2
- package/modern/ListItemIcon/ListItemIcon.js +14 -9
- package/modern/ListItemSecondaryAction/ListItemSecondaryAction.js +2 -2
- package/modern/ListItemText/ListItemText.js +2 -2
- package/modern/ListSubheader/ListSubheader.js +5 -3
- package/modern/Menu/Menu.js +3 -2
- package/modern/MenuItem/MenuItem.js +47 -27
- package/modern/NativeSelect/NativeSelectInput.js +78 -49
- package/modern/OutlinedInput/NotchedOutline.js +60 -43
- package/modern/OutlinedInput/OutlinedInput.js +97 -39
- package/modern/Pagination/Pagination.js +2 -2
- package/modern/PaginationItem/PaginationItem.js +64 -20
- package/modern/Paper/Paper.js +44 -21
- package/modern/Radio/Radio.js +5 -3
- package/modern/Radio/RadioButtonIcon.js +1 -1
- package/modern/Rating/Rating.js +3 -2
- package/modern/Select/Select.js +2 -1
- package/modern/Select/SelectInput.js +8 -6
- package/modern/Skeleton/Skeleton.js +109 -61
- package/modern/Slider/Slider.js +2 -2
- package/modern/Snackbar/Snackbar.js +66 -40
- package/modern/SnackbarContent/SnackbarContent.js +2 -2
- package/modern/SpeedDial/SpeedDial.js +107 -49
- package/modern/SpeedDialAction/SpeedDialAction.js +50 -24
- package/modern/SpeedDialIcon/SpeedDialIcon.js +37 -16
- package/modern/StepLabel/StepLabel.js +3 -3
- package/modern/SvgIcon/SvgIcon.js +73 -21
- package/modern/SwipeableDrawer/SwipeArea.js +39 -18
- package/modern/Tab/Tab.js +127 -55
- package/modern/TabScrollButton/TabScrollButton.js +27 -15
- package/modern/Table/Table.js +2 -2
- package/modern/TableBody/TableBody.js +2 -2
- package/modern/TableCell/TableCell.js +2 -2
- package/modern/TableContainer/TableContainer.js +2 -2
- package/modern/TableFooter/TableFooter.js +2 -2
- package/modern/TableHead/TableHead.js +2 -2
- package/modern/TablePagination/TablePagination.js +2 -2
- package/modern/TableRow/TableRow.js +2 -2
- package/modern/TableSortLabel/TableSortLabel.js +2 -2
- package/modern/Tabs/Tabs.js +107 -54
- package/modern/TextField/TextField.js +2 -2
- package/modern/Toolbar/Toolbar.js +3 -7
- package/modern/Tooltip/Tooltip.js +185 -88
- package/modern/Typography/Typography.js +89 -39
- package/modern/index.js +1 -1
- package/modern/internal/SwitchBase.js +39 -11
- package/node/Accordion/Accordion.js +2 -2
- package/node/Alert/Alert.js +2 -2
- package/node/Avatar/Avatar.js +1 -1
- package/node/Backdrop/Backdrop.js +1 -1
- package/node/Badge/Badge.js +2 -2
- package/node/Breadcrumbs/BreadcrumbCollapsed.js +3 -3
- package/node/Button/Button.js +2 -2
- package/node/Checkbox/Checkbox.js +3 -1
- package/node/Chip/chipClasses.js +1 -1
- package/node/Collapse/Collapse.js +70 -39
- package/node/Dialog/Dialog.js +110 -66
- package/node/DialogActions/DialogActions.js +18 -14
- package/node/DialogContent/DialogContent.js +27 -17
- package/node/DialogContentText/DialogContentText.js +6 -5
- package/node/DialogTitle/DialogTitle.js +4 -4
- package/node/Divider/Divider.js +1 -1
- package/node/Drawer/Drawer.js +78 -37
- package/node/Fab/Fab.js +2 -2
- package/node/FilledInput/FilledInput.js +176 -91
- package/node/FormControlLabel/FormControlLabel.js +23 -5
- package/node/FormHelperText/FormHelperText.js +4 -4
- package/node/FormLabel/FormLabel.js +26 -16
- package/node/Grow/Grow.js +3 -1
- package/node/Icon/Icon.js +65 -25
- package/node/ImageList/ImageList.js +4 -4
- package/node/ImageListItem/ImageListItem.js +4 -4
- package/node/ImageListItemBar/ImageListItemBar.js +8 -8
- package/node/Input/Input.js +87 -64
- package/node/InputAdornment/InputAdornment.js +39 -23
- package/node/InputBase/InputBase.js +61 -31
- package/node/InputLabel/InputLabel.js +123 -61
- package/node/Link/Link.js +101 -56
- package/node/Link/getTextDecoration.js +18 -10
- package/node/List/List.js +24 -15
- package/node/ListItem/ListItem.js +5 -5
- package/node/ListItemAvatar/ListItemAvatar.js +4 -4
- package/node/ListItemButton/ListItemButton.js +6 -5
- package/node/ListItemIcon/ListItemIcon.js +16 -11
- package/node/ListItemSecondaryAction/ListItemSecondaryAction.js +4 -4
- package/node/ListItemText/ListItemText.js +4 -4
- package/node/ListSubheader/ListSubheader.js +7 -5
- package/node/Menu/Menu.js +8 -7
- package/node/MenuItem/MenuItem.js +50 -30
- package/node/NativeSelect/NativeSelectInput.js +80 -53
- package/node/OutlinedInput/NotchedOutline.js +64 -47
- package/node/OutlinedInput/OutlinedInput.js +101 -43
- package/node/Pagination/Pagination.js +5 -5
- package/node/PaginationItem/PaginationItem.js +65 -20
- package/node/Paper/Paper.js +49 -28
- package/node/Radio/Radio.js +6 -4
- package/node/Radio/RadioButtonIcon.js +2 -2
- package/node/Rating/Rating.js +9 -8
- package/node/Select/Select.js +6 -5
- package/node/Select/SelectInput.js +9 -7
- package/node/Skeleton/Skeleton.js +113 -65
- package/node/Slider/Slider.js +2 -2
- package/node/Snackbar/Snackbar.js +68 -42
- package/node/SnackbarContent/SnackbarContent.js +6 -6
- package/node/SpeedDial/SpeedDial.js +111 -53
- package/node/SpeedDialAction/SpeedDialAction.js +54 -28
- package/node/SpeedDialIcon/SpeedDialIcon.js +39 -18
- package/node/StepLabel/StepLabel.js +3 -3
- package/node/SvgIcon/SvgIcon.js +79 -24
- package/node/SwipeableDrawer/SwipeArea.js +41 -20
- package/node/Tab/Tab.js +129 -57
- package/node/TabScrollButton/TabScrollButton.js +29 -17
- package/node/Table/Table.js +4 -4
- package/node/TableBody/TableBody.js +4 -4
- package/node/TableCell/TableCell.js +4 -4
- package/node/TableContainer/TableContainer.js +4 -4
- package/node/TableFooter/TableFooter.js +4 -4
- package/node/TableHead/TableHead.js +4 -4
- package/node/TablePagination/TablePagination.js +10 -10
- package/node/TableRow/TableRow.js +4 -4
- package/node/TableSortLabel/TableSortLabel.js +5 -5
- package/node/Tabs/Tabs.js +113 -60
- package/node/TextField/TextField.js +4 -4
- package/node/Toolbar/Toolbar.js +5 -9
- package/node/Tooltip/Tooltip.js +189 -92
- package/node/Typography/Typography.js +90 -40
- package/node/index.js +1 -1
- package/node/internal/SwitchBase.js +41 -13
- package/package.json +6 -6
- package/umd/material-ui.development.js +2777 -1334
- package/umd/material-ui.production.min.js +4 -4
package/StepLabel/StepLabel.d.ts
CHANGED
|
@@ -42,7 +42,7 @@ export interface StepLabelProps
|
|
|
42
42
|
/**
|
|
43
43
|
* The props used for each slot inside.
|
|
44
44
|
* @default {}
|
|
45
|
-
* @deprecated use the `slotProps` prop instead. This prop will be removed in v7. [
|
|
45
|
+
* @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.
|
|
46
46
|
*/
|
|
47
47
|
componentsProps?: {
|
|
48
48
|
/**
|
|
@@ -66,12 +66,12 @@ export interface StepLabelProps
|
|
|
66
66
|
optional?: React.ReactNode;
|
|
67
67
|
/**
|
|
68
68
|
* The component to render in place of the [`StepIcon`](/material-ui/api/step-icon/).
|
|
69
|
-
* @deprecated Use `slots.stepIcon` instead. This prop will be removed in v7. [
|
|
69
|
+
* @deprecated Use `slots.stepIcon` instead. This prop will be removed in v7. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
70
70
|
*/
|
|
71
71
|
StepIconComponent?: React.ElementType<StepIconProps>;
|
|
72
72
|
/**
|
|
73
73
|
* Props applied to the [`StepIcon`](/material-ui/api/step-icon/) element.
|
|
74
|
-
* @deprecated Use `slotProps.stepIcon` instead. This prop will be removed in v7. [
|
|
74
|
+
* @deprecated Use `slotProps.stepIcon` instead. This prop will be removed in v7. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
75
75
|
*/
|
|
76
76
|
StepIconProps?: Partial<StepIconProps>;
|
|
77
77
|
/**
|
package/StepLabel/StepLabel.js
CHANGED
|
@@ -215,7 +215,7 @@ process.env.NODE_ENV !== "production" ? StepLabel.propTypes /* remove-proptypes
|
|
|
215
215
|
/**
|
|
216
216
|
* The props used for each slot inside.
|
|
217
217
|
* @default {}
|
|
218
|
-
* @deprecated use the `slotProps` prop instead. This prop will be removed in v7. [
|
|
218
|
+
* @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.
|
|
219
219
|
*/
|
|
220
220
|
componentsProps: PropTypes.shape({
|
|
221
221
|
label: PropTypes.object
|
|
@@ -251,12 +251,12 @@ process.env.NODE_ENV !== "production" ? StepLabel.propTypes /* remove-proptypes
|
|
|
251
251
|
}),
|
|
252
252
|
/**
|
|
253
253
|
* The component to render in place of the [`StepIcon`](/material-ui/api/step-icon/).
|
|
254
|
-
* @deprecated Use `slots.stepIcon` instead. This prop will be removed in v7. [
|
|
254
|
+
* @deprecated Use `slots.stepIcon` instead. This prop will be removed in v7. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
255
255
|
*/
|
|
256
256
|
StepIconComponent: PropTypes.elementType,
|
|
257
257
|
/**
|
|
258
258
|
* Props applied to the [`StepIcon`](/material-ui/api/step-icon/) element.
|
|
259
|
-
* @deprecated Use `slotProps.stepIcon` instead. This prop will be removed in v7. [
|
|
259
|
+
* @deprecated Use `slotProps.stepIcon` instead. This prop will be removed in v7. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
260
260
|
*/
|
|
261
261
|
StepIconProps: PropTypes.object,
|
|
262
262
|
/**
|
package/SvgIcon/SvgIcon.js
CHANGED
|
@@ -8,10 +8,10 @@ import PropTypes from 'prop-types';
|
|
|
8
8
|
import clsx from 'clsx';
|
|
9
9
|
import composeClasses from '@mui/utils/composeClasses';
|
|
10
10
|
import capitalize from '../utils/capitalize';
|
|
11
|
-
import
|
|
12
|
-
import styled from '../styles/styled';
|
|
11
|
+
import { styled, createUseThemeProps } from '../zero-styled';
|
|
13
12
|
import { getSvgIconUtilityClass } from './svgIconClasses';
|
|
14
13
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
|
+
const useThemeProps = createUseThemeProps('MuiSvgIcon');
|
|
15
15
|
const useUtilityClasses = ownerState => {
|
|
16
16
|
const {
|
|
17
17
|
color,
|
|
@@ -33,32 +33,82 @@ const SvgIconRoot = styled('svg', {
|
|
|
33
33
|
return [styles.root, ownerState.color !== 'inherit' && styles[`color${capitalize(ownerState.color)}`], styles[`fontSize${capitalize(ownerState.fontSize)}`]];
|
|
34
34
|
}
|
|
35
35
|
})(({
|
|
36
|
-
theme
|
|
37
|
-
ownerState
|
|
36
|
+
theme
|
|
38
37
|
}) => ({
|
|
39
38
|
userSelect: 'none',
|
|
40
39
|
width: '1em',
|
|
41
40
|
height: '1em',
|
|
42
41
|
display: 'inline-block',
|
|
43
|
-
// the <svg> will define the property that has `currentColor`
|
|
44
|
-
// for example heroicons uses fill="none" and stroke="currentColor"
|
|
45
|
-
fill: ownerState.hasSvgAsChild ? undefined : 'currentColor',
|
|
46
42
|
flexShrink: 0,
|
|
47
43
|
transition: theme.transitions?.create?.('fill', {
|
|
48
|
-
duration: theme.transitions?.duration?.shorter
|
|
44
|
+
duration: (theme.vars ?? theme).transitions?.duration?.shorter
|
|
49
45
|
}),
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
46
|
+
variants: [{
|
|
47
|
+
props: props => !props.hasSvgAsChild,
|
|
48
|
+
style: {
|
|
49
|
+
// the <svg> will define the property that has `currentColor`
|
|
50
|
+
// for example heroicons uses fill="none" and stroke="currentColor"
|
|
51
|
+
fill: 'currentColor'
|
|
52
|
+
}
|
|
53
|
+
}, {
|
|
54
|
+
props: {
|
|
55
|
+
fontSize: 'inherit'
|
|
56
|
+
},
|
|
57
|
+
style: {
|
|
58
|
+
fontSize: 'inherit'
|
|
59
|
+
}
|
|
60
|
+
}, {
|
|
61
|
+
props: {
|
|
62
|
+
fontSize: 'small'
|
|
63
|
+
},
|
|
64
|
+
style: {
|
|
65
|
+
fontSize: theme.typography?.pxToRem?.(20) || '1.25rem'
|
|
66
|
+
}
|
|
67
|
+
}, {
|
|
68
|
+
props: {
|
|
69
|
+
fontSize: 'medium'
|
|
70
|
+
},
|
|
71
|
+
style: {
|
|
72
|
+
fontSize: theme.typography?.pxToRem?.(24) || '1.5rem'
|
|
73
|
+
}
|
|
74
|
+
}, {
|
|
75
|
+
props: {
|
|
76
|
+
fontSize: 'large'
|
|
77
|
+
},
|
|
78
|
+
style: {
|
|
79
|
+
fontSize: theme.typography?.pxToRem?.(35) || '2.1875rem'
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
// TODO v5 deprecate color prop, v6 remove for sx
|
|
83
|
+
...Object.entries((theme.vars ?? theme).palette).filter(([, value]) => value.main).map(([color]) => ({
|
|
84
|
+
props: {
|
|
85
|
+
color
|
|
86
|
+
},
|
|
87
|
+
style: {
|
|
88
|
+
color: (theme.vars ?? theme).palette?.[color]?.main
|
|
89
|
+
}
|
|
90
|
+
})), {
|
|
91
|
+
props: {
|
|
92
|
+
color: 'action'
|
|
93
|
+
},
|
|
94
|
+
style: {
|
|
95
|
+
color: (theme.vars ?? theme).palette?.action?.active
|
|
96
|
+
}
|
|
97
|
+
}, {
|
|
98
|
+
props: {
|
|
99
|
+
color: 'disabled'
|
|
100
|
+
},
|
|
101
|
+
style: {
|
|
102
|
+
color: (theme.vars ?? theme).palette?.action?.disabled
|
|
103
|
+
}
|
|
104
|
+
}, {
|
|
105
|
+
props: {
|
|
106
|
+
color: 'inherit'
|
|
107
|
+
},
|
|
108
|
+
style: {
|
|
109
|
+
color: undefined
|
|
110
|
+
}
|
|
111
|
+
}]
|
|
62
112
|
}));
|
|
63
113
|
const SvgIcon = /*#__PURE__*/React.forwardRef(function SvgIcon(inProps, ref) {
|
|
64
114
|
const props = useThemeProps({
|
|
@@ -179,5 +229,7 @@ process.env.NODE_ENV !== "production" ? SvgIcon.propTypes /* remove-proptypes */
|
|
|
179
229
|
*/
|
|
180
230
|
viewBox: PropTypes.string
|
|
181
231
|
} : void 0;
|
|
182
|
-
SvgIcon
|
|
232
|
+
if (SvgIcon) {
|
|
233
|
+
SvgIcon.muiName = 'SvgIcon';
|
|
234
|
+
}
|
|
183
235
|
export default SvgIcon;
|
|
@@ -1,38 +1,59 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
4
3
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
5
5
|
const _excluded = ["anchor", "classes", "className", "width", "style"];
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
8
|
import clsx from 'clsx';
|
|
9
|
-
import
|
|
9
|
+
import { styled } from '../zero-styled';
|
|
10
|
+
import rootShouldForwardProp from '../styles/rootShouldForwardProp';
|
|
10
11
|
import capitalize from '../utils/capitalize';
|
|
11
12
|
import { isHorizontal } from '../Drawer/Drawer';
|
|
12
13
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
14
|
const SwipeAreaRoot = styled('div', {
|
|
14
15
|
shouldForwardProp: rootShouldForwardProp
|
|
15
16
|
})(({
|
|
16
|
-
theme
|
|
17
|
-
|
|
18
|
-
}) => _extends({
|
|
17
|
+
theme
|
|
18
|
+
}) => ({
|
|
19
19
|
position: 'fixed',
|
|
20
20
|
top: 0,
|
|
21
21
|
left: 0,
|
|
22
22
|
bottom: 0,
|
|
23
|
-
zIndex: theme.zIndex.drawer - 1
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
23
|
+
zIndex: theme.zIndex.drawer - 1,
|
|
24
|
+
variants: [{
|
|
25
|
+
props: {
|
|
26
|
+
anchor: 'left'
|
|
27
|
+
},
|
|
28
|
+
style: {
|
|
29
|
+
right: 'auto'
|
|
30
|
+
}
|
|
31
|
+
}, {
|
|
32
|
+
props: {
|
|
33
|
+
anchor: 'right'
|
|
34
|
+
},
|
|
35
|
+
style: {
|
|
36
|
+
left: 'auto',
|
|
37
|
+
right: 0
|
|
38
|
+
}
|
|
39
|
+
}, {
|
|
40
|
+
props: {
|
|
41
|
+
anchor: 'top'
|
|
42
|
+
},
|
|
43
|
+
style: {
|
|
44
|
+
bottom: 'auto',
|
|
45
|
+
right: 0
|
|
46
|
+
}
|
|
47
|
+
}, {
|
|
48
|
+
props: {
|
|
49
|
+
anchor: 'bottom'
|
|
50
|
+
},
|
|
51
|
+
style: {
|
|
52
|
+
top: 'auto',
|
|
53
|
+
bottom: 0,
|
|
54
|
+
right: 0
|
|
55
|
+
}
|
|
56
|
+
}]
|
|
36
57
|
}));
|
|
37
58
|
|
|
38
59
|
/**
|
package/Tab/Tab.js
CHANGED
|
@@ -9,11 +9,11 @@ import clsx from 'clsx';
|
|
|
9
9
|
import composeClasses from '@mui/utils/composeClasses';
|
|
10
10
|
import ButtonBase from '../ButtonBase';
|
|
11
11
|
import capitalize from '../utils/capitalize';
|
|
12
|
-
import
|
|
13
|
-
import styled from '../styles/styled';
|
|
12
|
+
import { styled, createUseThemeProps } from '../zero-styled';
|
|
14
13
|
import unsupportedProp from '../utils/unsupportedProp';
|
|
15
14
|
import tabClasses, { getTabUtilityClass } from './tabClasses';
|
|
16
15
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
16
|
+
const useThemeProps = createUseThemeProps('MuiTab');
|
|
17
17
|
const useUtilityClasses = ownerState => {
|
|
18
18
|
const {
|
|
19
19
|
classes,
|
|
@@ -41,8 +41,7 @@ const TabRoot = styled(ButtonBase, {
|
|
|
41
41
|
return [styles.root, ownerState.label && ownerState.icon && styles.labelIcon, styles[`textColor${capitalize(ownerState.textColor)}`], ownerState.fullWidth && styles.fullWidth, ownerState.wrapped && styles.wrapped];
|
|
42
42
|
}
|
|
43
43
|
})(({
|
|
44
|
-
theme
|
|
45
|
-
ownerState
|
|
44
|
+
theme
|
|
46
45
|
}) => _extends({}, theme.typography.button, {
|
|
47
46
|
maxWidth: 360,
|
|
48
47
|
minWidth: 90,
|
|
@@ -52,57 +51,130 @@ const TabRoot = styled(ButtonBase, {
|
|
|
52
51
|
padding: '12px 16px',
|
|
53
52
|
overflow: 'hidden',
|
|
54
53
|
whiteSpace: 'normal',
|
|
55
|
-
textAlign: 'center'
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
}
|
|
105
|
-
|
|
54
|
+
textAlign: 'center',
|
|
55
|
+
lineHeight: 1.25,
|
|
56
|
+
variants: [{
|
|
57
|
+
props: ({
|
|
58
|
+
ownerState
|
|
59
|
+
}) => ownerState.label && (ownerState.iconPosition === 'top' || ownerState.iconPosition === 'bottom'),
|
|
60
|
+
style: {
|
|
61
|
+
flexDirection: 'column'
|
|
62
|
+
}
|
|
63
|
+
}, {
|
|
64
|
+
props: ({
|
|
65
|
+
ownerState
|
|
66
|
+
}) => ownerState.label && ownerState.iconPosition !== 'top' && ownerState.iconPosition !== 'bottom',
|
|
67
|
+
style: {
|
|
68
|
+
flexDirection: 'row'
|
|
69
|
+
}
|
|
70
|
+
}, {
|
|
71
|
+
props: ({
|
|
72
|
+
ownerState
|
|
73
|
+
}) => ownerState.icon && ownerState.label,
|
|
74
|
+
style: {
|
|
75
|
+
minHeight: 72,
|
|
76
|
+
paddingTop: 9,
|
|
77
|
+
paddingBottom: 9
|
|
78
|
+
}
|
|
79
|
+
}, {
|
|
80
|
+
props: ({
|
|
81
|
+
ownerState,
|
|
82
|
+
iconPosition
|
|
83
|
+
}) => ownerState.icon && ownerState.label && iconPosition === 'top',
|
|
84
|
+
style: {
|
|
85
|
+
[`& > .${tabClasses.iconWrapper}`]: {
|
|
86
|
+
marginBottom: 6
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}, {
|
|
90
|
+
props: ({
|
|
91
|
+
ownerState,
|
|
92
|
+
iconPosition
|
|
93
|
+
}) => ownerState.icon && ownerState.label && iconPosition === 'bottom',
|
|
94
|
+
style: {
|
|
95
|
+
[`& > .${tabClasses.iconWrapper}`]: {
|
|
96
|
+
marginTop: 6
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}, {
|
|
100
|
+
props: ({
|
|
101
|
+
ownerState,
|
|
102
|
+
iconPosition
|
|
103
|
+
}) => ownerState.icon && ownerState.label && iconPosition === 'start',
|
|
104
|
+
style: {
|
|
105
|
+
[`& > .${tabClasses.iconWrapper}`]: {
|
|
106
|
+
marginRight: theme.spacing(1)
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}, {
|
|
110
|
+
props: ({
|
|
111
|
+
ownerState,
|
|
112
|
+
iconPosition
|
|
113
|
+
}) => ownerState.icon && ownerState.label && iconPosition === 'end',
|
|
114
|
+
style: {
|
|
115
|
+
[`& > .${tabClasses.iconWrapper}`]: {
|
|
116
|
+
marginLeft: theme.spacing(1)
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}, {
|
|
120
|
+
props: {
|
|
121
|
+
textColor: 'inherit'
|
|
122
|
+
},
|
|
123
|
+
style: {
|
|
124
|
+
color: 'inherit',
|
|
125
|
+
opacity: 0.6,
|
|
126
|
+
// same opacity as theme.palette.text.secondary
|
|
127
|
+
[`&.${tabClasses.selected}`]: {
|
|
128
|
+
opacity: 1
|
|
129
|
+
},
|
|
130
|
+
[`&.${tabClasses.disabled}`]: {
|
|
131
|
+
opacity: (theme.vars || theme).palette.action.disabledOpacity
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}, {
|
|
135
|
+
props: {
|
|
136
|
+
textColor: 'primary'
|
|
137
|
+
},
|
|
138
|
+
style: {
|
|
139
|
+
color: (theme.vars || theme).palette.text.secondary,
|
|
140
|
+
[`&.${tabClasses.selected}`]: {
|
|
141
|
+
color: (theme.vars || theme).palette.primary.main
|
|
142
|
+
},
|
|
143
|
+
[`&.${tabClasses.disabled}`]: {
|
|
144
|
+
color: (theme.vars || theme).palette.text.disabled
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}, {
|
|
148
|
+
props: {
|
|
149
|
+
textColor: 'secondary'
|
|
150
|
+
},
|
|
151
|
+
style: {
|
|
152
|
+
color: (theme.vars || theme).palette.text.secondary,
|
|
153
|
+
[`&.${tabClasses.selected}`]: {
|
|
154
|
+
color: (theme.vars || theme).palette.secondary.main
|
|
155
|
+
},
|
|
156
|
+
[`&.${tabClasses.disabled}`]: {
|
|
157
|
+
color: (theme.vars || theme).palette.text.disabled
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
}, {
|
|
161
|
+
props: ({
|
|
162
|
+
ownerState
|
|
163
|
+
}) => ownerState.fullWidth,
|
|
164
|
+
style: {
|
|
165
|
+
flexShrink: 1,
|
|
166
|
+
flexGrow: 1,
|
|
167
|
+
flexBasis: 0,
|
|
168
|
+
maxWidth: 'none'
|
|
169
|
+
}
|
|
170
|
+
}, {
|
|
171
|
+
props: ({
|
|
172
|
+
ownerState
|
|
173
|
+
}) => ownerState.wrapped,
|
|
174
|
+
style: {
|
|
175
|
+
fontSize: theme.typography.pxToRem(12)
|
|
176
|
+
}
|
|
177
|
+
}]
|
|
106
178
|
}));
|
|
107
179
|
const Tab = /*#__PURE__*/React.forwardRef(function Tab(inProps, ref) {
|
|
108
180
|
const props = useThemeProps({
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
/* eslint-disable jsx-a11y/aria-role */
|
|
4
|
-
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
5
4
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
5
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
6
6
|
const _excluded = ["className", "slots", "slotProps", "direction", "orientation", "disabled"];
|
|
7
7
|
import * as React from 'react';
|
|
8
8
|
import PropTypes from 'prop-types';
|
|
@@ -13,10 +13,10 @@ import { useRtl } from '@mui/system/RtlProvider';
|
|
|
13
13
|
import KeyboardArrowLeft from '../internal/svg-icons/KeyboardArrowLeft';
|
|
14
14
|
import KeyboardArrowRight from '../internal/svg-icons/KeyboardArrowRight';
|
|
15
15
|
import ButtonBase from '../ButtonBase';
|
|
16
|
-
import
|
|
17
|
-
import styled from '../styles/styled';
|
|
16
|
+
import { styled, createUseThemeProps } from '../zero-styled';
|
|
18
17
|
import tabScrollButtonClasses, { getTabScrollButtonUtilityClass } from './tabScrollButtonClasses';
|
|
19
18
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
19
|
+
const useThemeProps = createUseThemeProps('MuiTabScrollButton');
|
|
20
20
|
const useUtilityClasses = ownerState => {
|
|
21
21
|
const {
|
|
22
22
|
classes,
|
|
@@ -37,22 +37,26 @@ const TabScrollButtonRoot = styled(ButtonBase, {
|
|
|
37
37
|
} = props;
|
|
38
38
|
return [styles.root, ownerState.orientation && styles[ownerState.orientation]];
|
|
39
39
|
}
|
|
40
|
-
})(
|
|
41
|
-
ownerState
|
|
42
|
-
}) => _extends({
|
|
40
|
+
})({
|
|
43
41
|
width: 40,
|
|
44
42
|
flexShrink: 0,
|
|
45
43
|
opacity: 0.8,
|
|
46
44
|
[`&.${tabScrollButtonClasses.disabled}`]: {
|
|
47
45
|
opacity: 0
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
46
|
+
},
|
|
47
|
+
variants: [{
|
|
48
|
+
props: {
|
|
49
|
+
orientation: 'vertical'
|
|
50
|
+
},
|
|
51
|
+
style: {
|
|
52
|
+
width: '100%',
|
|
53
|
+
height: 40,
|
|
54
|
+
'& svg': {
|
|
55
|
+
transform: 'var(--TabScrollButton-svgRotate)'
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}]
|
|
59
|
+
});
|
|
56
60
|
const TabScrollButton = /*#__PURE__*/React.forwardRef(function TabScrollButton(inProps, ref) {
|
|
57
61
|
const props = useThemeProps({
|
|
58
62
|
props: inProps,
|
|
@@ -62,7 +66,8 @@ const TabScrollButton = /*#__PURE__*/React.forwardRef(function TabScrollButton(i
|
|
|
62
66
|
className,
|
|
63
67
|
slots = {},
|
|
64
68
|
slotProps = {},
|
|
65
|
-
direction
|
|
69
|
+
direction,
|
|
70
|
+
orientation
|
|
66
71
|
} = props,
|
|
67
72
|
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
68
73
|
const isRtl = useRtl();
|
|
@@ -96,6 +101,9 @@ const TabScrollButton = /*#__PURE__*/React.forwardRef(function TabScrollButton(i
|
|
|
96
101
|
ownerState: ownerState,
|
|
97
102
|
tabIndex: null
|
|
98
103
|
}, other, {
|
|
104
|
+
style: _extends({}, other.style, orientation === 'vertical' && {
|
|
105
|
+
'--TabScrollButton-svgRotate': `rotate(${isRtl ? -90 : 90}deg)`
|
|
106
|
+
}),
|
|
99
107
|
children: direction === 'left' ? /*#__PURE__*/_jsx(StartButtonIcon, _extends({}, startButtonIconProps)) : /*#__PURE__*/_jsx(EndButtonIcon, _extends({}, endButtonIconProps))
|
|
100
108
|
}));
|
|
101
109
|
});
|
|
@@ -146,6 +154,10 @@ process.env.NODE_ENV !== "production" ? TabScrollButton.propTypes /* remove-prop
|
|
|
146
154
|
EndScrollButtonIcon: PropTypes.elementType,
|
|
147
155
|
StartScrollButtonIcon: PropTypes.elementType
|
|
148
156
|
}),
|
|
157
|
+
/**
|
|
158
|
+
* @ignore
|
|
159
|
+
*/
|
|
160
|
+
style: PropTypes.object,
|
|
149
161
|
/**
|
|
150
162
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
151
163
|
*/
|
package/Table/Table.js
CHANGED
|
@@ -8,10 +8,10 @@ import PropTypes from 'prop-types';
|
|
|
8
8
|
import clsx from 'clsx';
|
|
9
9
|
import composeClasses from '@mui/utils/composeClasses';
|
|
10
10
|
import TableContext from './TableContext';
|
|
11
|
-
import
|
|
12
|
-
import styled from '../styles/styled';
|
|
11
|
+
import { styled, createUseThemeProps } from '../zero-styled';
|
|
13
12
|
import { getTableUtilityClass } from './tableClasses';
|
|
14
13
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
|
+
const useThemeProps = createUseThemeProps('MuiTable');
|
|
15
15
|
const useUtilityClasses = ownerState => {
|
|
16
16
|
const {
|
|
17
17
|
classes,
|
package/TableBody/TableBody.js
CHANGED
|
@@ -8,10 +8,10 @@ import PropTypes from 'prop-types';
|
|
|
8
8
|
import clsx from 'clsx';
|
|
9
9
|
import composeClasses from '@mui/utils/composeClasses';
|
|
10
10
|
import Tablelvl2Context from '../Table/Tablelvl2Context';
|
|
11
|
-
import
|
|
12
|
-
import styled from '../styles/styled';
|
|
11
|
+
import { styled, createUseThemeProps } from '../zero-styled';
|
|
13
12
|
import { getTableBodyUtilityClass } from './tableBodyClasses';
|
|
14
13
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
|
+
const useThemeProps = createUseThemeProps('MuiTableBody');
|
|
15
15
|
const useUtilityClasses = ownerState => {
|
|
16
16
|
const {
|
|
17
17
|
classes
|
package/TableCell/TableCell.js
CHANGED
|
@@ -11,10 +11,10 @@ import { darken, alpha, lighten } from '@mui/system/colorManipulator';
|
|
|
11
11
|
import capitalize from '../utils/capitalize';
|
|
12
12
|
import TableContext from '../Table/TableContext';
|
|
13
13
|
import Tablelvl2Context from '../Table/Tablelvl2Context';
|
|
14
|
-
import
|
|
15
|
-
import styled from '../styles/styled';
|
|
14
|
+
import { styled, createUseThemeProps } from '../zero-styled';
|
|
16
15
|
import tableCellClasses, { getTableCellUtilityClass } from './tableCellClasses';
|
|
17
16
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
17
|
+
const useThemeProps = createUseThemeProps('MuiTableCell');
|
|
18
18
|
const useUtilityClasses = ownerState => {
|
|
19
19
|
const {
|
|
20
20
|
classes,
|
|
@@ -7,10 +7,10 @@ import * as React from 'react';
|
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
8
|
import clsx from 'clsx';
|
|
9
9
|
import composeClasses from '@mui/utils/composeClasses';
|
|
10
|
-
import
|
|
11
|
-
import styled from '../styles/styled';
|
|
10
|
+
import { styled, createUseThemeProps } from '../zero-styled';
|
|
12
11
|
import { getTableContainerUtilityClass } from './tableContainerClasses';
|
|
13
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
const useThemeProps = createUseThemeProps('MuiTableContainer');
|
|
14
14
|
const useUtilityClasses = ownerState => {
|
|
15
15
|
const {
|
|
16
16
|
classes
|
|
@@ -8,10 +8,10 @@ import PropTypes from 'prop-types';
|
|
|
8
8
|
import clsx from 'clsx';
|
|
9
9
|
import composeClasses from '@mui/utils/composeClasses';
|
|
10
10
|
import Tablelvl2Context from '../Table/Tablelvl2Context';
|
|
11
|
-
import
|
|
12
|
-
import styled from '../styles/styled';
|
|
11
|
+
import { styled, createUseThemeProps } from '../zero-styled';
|
|
13
12
|
import { getTableFooterUtilityClass } from './tableFooterClasses';
|
|
14
13
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
|
+
const useThemeProps = createUseThemeProps('MuiTableFooter');
|
|
15
15
|
const useUtilityClasses = ownerState => {
|
|
16
16
|
const {
|
|
17
17
|
classes
|
package/TableHead/TableHead.js
CHANGED
|
@@ -8,10 +8,10 @@ import PropTypes from 'prop-types';
|
|
|
8
8
|
import clsx from 'clsx';
|
|
9
9
|
import composeClasses from '@mui/utils/composeClasses';
|
|
10
10
|
import Tablelvl2Context from '../Table/Tablelvl2Context';
|
|
11
|
-
import
|
|
12
|
-
import styled from '../styles/styled';
|
|
11
|
+
import { styled, createUseThemeProps } from '../zero-styled';
|
|
13
12
|
import { getTableHeadUtilityClass } from './tableHeadClasses';
|
|
14
13
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
|
+
const useThemeProps = createUseThemeProps('MuiTableHead');
|
|
15
15
|
const useUtilityClasses = ownerState => {
|
|
16
16
|
const {
|
|
17
17
|
classes
|
|
@@ -11,8 +11,7 @@ import integerPropType from '@mui/utils/integerPropType';
|
|
|
11
11
|
import chainPropTypes from '@mui/utils/chainPropTypes';
|
|
12
12
|
import { isHostComponent } from '@mui/base/utils';
|
|
13
13
|
import composeClasses from '@mui/utils/composeClasses';
|
|
14
|
-
import styled from '../
|
|
15
|
-
import useThemeProps from '../styles/useThemeProps';
|
|
14
|
+
import { styled, createUseThemeProps } from '../zero-styled';
|
|
16
15
|
import InputBase from '../InputBase';
|
|
17
16
|
import MenuItem from '../MenuItem';
|
|
18
17
|
import Select from '../Select';
|
|
@@ -23,6 +22,7 @@ import useId from '../utils/useId';
|
|
|
23
22
|
import tablePaginationClasses, { getTablePaginationUtilityClass } from './tablePaginationClasses';
|
|
24
23
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
25
24
|
import { createElement as _createElement } from "react";
|
|
25
|
+
const useThemeProps = createUseThemeProps('MuiTablePagination');
|
|
26
26
|
const TablePaginationRoot = styled(TableCell, {
|
|
27
27
|
name: 'MuiTablePagination',
|
|
28
28
|
slot: 'Root',
|
package/TableRow/TableRow.js
CHANGED
|
@@ -9,10 +9,10 @@ import clsx from 'clsx';
|
|
|
9
9
|
import composeClasses from '@mui/utils/composeClasses';
|
|
10
10
|
import { alpha } from '@mui/system/colorManipulator';
|
|
11
11
|
import Tablelvl2Context from '../Table/Tablelvl2Context';
|
|
12
|
-
import
|
|
13
|
-
import styled from '../styles/styled';
|
|
12
|
+
import { styled, createUseThemeProps } from '../zero-styled';
|
|
14
13
|
import tableRowClasses, { getTableRowUtilityClass } from './tableRowClasses';
|
|
15
14
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
|
+
const useThemeProps = createUseThemeProps('MuiTableRow');
|
|
16
16
|
const useUtilityClasses = ownerState => {
|
|
17
17
|
const {
|
|
18
18
|
classes,
|