@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/node/SvgIcon/SvgIcon.js
CHANGED
|
@@ -13,13 +13,13 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
13
13
|
var _clsx = _interopRequireDefault(require("clsx"));
|
|
14
14
|
var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
|
|
15
15
|
var _capitalize = _interopRequireDefault(require("../utils/capitalize"));
|
|
16
|
-
var
|
|
17
|
-
var _styled = _interopRequireDefault(require("../styles/styled"));
|
|
16
|
+
var _zeroStyled = require("../zero-styled");
|
|
18
17
|
var _svgIconClasses = require("./svgIconClasses");
|
|
19
18
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
20
19
|
const _excluded = ["children", "className", "color", "component", "fontSize", "htmlColor", "inheritViewBox", "titleAccess", "viewBox"];
|
|
21
20
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
22
21
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
22
|
+
const useThemeProps = (0, _zeroStyled.createUseThemeProps)('MuiSvgIcon');
|
|
23
23
|
const useUtilityClasses = ownerState => {
|
|
24
24
|
const {
|
|
25
25
|
color,
|
|
@@ -31,7 +31,7 @@ const useUtilityClasses = ownerState => {
|
|
|
31
31
|
};
|
|
32
32
|
return (0, _composeClasses.default)(slots, _svgIconClasses.getSvgIconUtilityClass, classes);
|
|
33
33
|
};
|
|
34
|
-
const SvgIconRoot = (0,
|
|
34
|
+
const SvgIconRoot = (0, _zeroStyled.styled)('svg', {
|
|
35
35
|
name: 'MuiSvgIcon',
|
|
36
36
|
slot: 'Root',
|
|
37
37
|
overridesResolver: (props, styles) => {
|
|
@@ -41,38 +41,91 @@ const SvgIconRoot = (0, _styled.default)('svg', {
|
|
|
41
41
|
return [styles.root, ownerState.color !== 'inherit' && styles[`color${(0, _capitalize.default)(ownerState.color)}`], styles[`fontSize${(0, _capitalize.default)(ownerState.fontSize)}`]];
|
|
42
42
|
}
|
|
43
43
|
})(({
|
|
44
|
-
theme
|
|
45
|
-
ownerState
|
|
44
|
+
theme
|
|
46
45
|
}) => {
|
|
47
|
-
var _theme$transitions, _theme$transitions$cr, _theme$
|
|
46
|
+
var _theme$transitions, _theme$transitions$cr, _transitions, _theme$vars, _theme$typography, _theme$typography$pxT, _theme$typography2, _theme$typography2$px, _theme$typography3, _theme$typography3$px, _theme$vars2, _palette2, _theme$vars4, _palette3, _theme$vars5;
|
|
48
47
|
return {
|
|
49
48
|
userSelect: 'none',
|
|
50
49
|
width: '1em',
|
|
51
50
|
height: '1em',
|
|
52
51
|
display: 'inline-block',
|
|
53
|
-
// the <svg> will define the property that has `currentColor`
|
|
54
|
-
// for example heroicons uses fill="none" and stroke="currentColor"
|
|
55
|
-
fill: ownerState.hasSvgAsChild ? undefined : 'currentColor',
|
|
56
52
|
flexShrink: 0,
|
|
57
53
|
transition: (_theme$transitions = theme.transitions) == null || (_theme$transitions$cr = _theme$transitions.create) == null ? void 0 : _theme$transitions$cr.call(_theme$transitions, 'fill', {
|
|
58
|
-
duration: (_theme$
|
|
54
|
+
duration: (_transitions = ((_theme$vars = theme.vars) != null ? _theme$vars : theme).transitions) == null || (_transitions = _transitions.duration) == null ? void 0 : _transitions.shorter
|
|
59
55
|
}),
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
56
|
+
variants: [{
|
|
57
|
+
props: props => !props.hasSvgAsChild,
|
|
58
|
+
style: {
|
|
59
|
+
// the <svg> will define the property that has `currentColor`
|
|
60
|
+
// for example heroicons uses fill="none" and stroke="currentColor"
|
|
61
|
+
fill: 'currentColor'
|
|
62
|
+
}
|
|
63
|
+
}, {
|
|
64
|
+
props: {
|
|
65
|
+
fontSize: 'inherit'
|
|
66
|
+
},
|
|
67
|
+
style: {
|
|
68
|
+
fontSize: 'inherit'
|
|
69
|
+
}
|
|
70
|
+
}, {
|
|
71
|
+
props: {
|
|
72
|
+
fontSize: 'small'
|
|
73
|
+
},
|
|
74
|
+
style: {
|
|
75
|
+
fontSize: ((_theme$typography = theme.typography) == null || (_theme$typography$pxT = _theme$typography.pxToRem) == null ? void 0 : _theme$typography$pxT.call(_theme$typography, 20)) || '1.25rem'
|
|
76
|
+
}
|
|
77
|
+
}, {
|
|
78
|
+
props: {
|
|
79
|
+
fontSize: 'medium'
|
|
80
|
+
},
|
|
81
|
+
style: {
|
|
82
|
+
fontSize: ((_theme$typography2 = theme.typography) == null || (_theme$typography2$px = _theme$typography2.pxToRem) == null ? void 0 : _theme$typography2$px.call(_theme$typography2, 24)) || '1.5rem'
|
|
83
|
+
}
|
|
84
|
+
}, {
|
|
85
|
+
props: {
|
|
86
|
+
fontSize: 'large'
|
|
87
|
+
},
|
|
88
|
+
style: {
|
|
89
|
+
fontSize: ((_theme$typography3 = theme.typography) == null || (_theme$typography3$px = _theme$typography3.pxToRem) == null ? void 0 : _theme$typography3$px.call(_theme$typography3, 35)) || '2.1875rem'
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
// TODO v5 deprecate color prop, v6 remove for sx
|
|
93
|
+
...Object.entries(((_theme$vars2 = theme.vars) != null ? _theme$vars2 : theme).palette).filter(([, value]) => value.main).map(([color]) => {
|
|
94
|
+
var _palette, _theme$vars3;
|
|
95
|
+
return {
|
|
96
|
+
props: {
|
|
97
|
+
color
|
|
98
|
+
},
|
|
99
|
+
style: {
|
|
100
|
+
color: (_palette = ((_theme$vars3 = theme.vars) != null ? _theme$vars3 : theme).palette) == null || (_palette = _palette[color]) == null ? void 0 : _palette.main
|
|
101
|
+
}
|
|
102
|
+
};
|
|
103
|
+
}), {
|
|
104
|
+
props: {
|
|
105
|
+
color: 'action'
|
|
106
|
+
},
|
|
107
|
+
style: {
|
|
108
|
+
color: (_palette2 = ((_theme$vars4 = theme.vars) != null ? _theme$vars4 : theme).palette) == null || (_palette2 = _palette2.action) == null ? void 0 : _palette2.active
|
|
109
|
+
}
|
|
110
|
+
}, {
|
|
111
|
+
props: {
|
|
112
|
+
color: 'disabled'
|
|
113
|
+
},
|
|
114
|
+
style: {
|
|
115
|
+
color: (_palette3 = ((_theme$vars5 = theme.vars) != null ? _theme$vars5 : theme).palette) == null || (_palette3 = _palette3.action) == null ? void 0 : _palette3.disabled
|
|
116
|
+
}
|
|
117
|
+
}, {
|
|
118
|
+
props: {
|
|
119
|
+
color: 'inherit'
|
|
120
|
+
},
|
|
121
|
+
style: {
|
|
122
|
+
color: undefined
|
|
123
|
+
}
|
|
124
|
+
}]
|
|
72
125
|
};
|
|
73
126
|
});
|
|
74
127
|
const SvgIcon = /*#__PURE__*/React.forwardRef(function SvgIcon(inProps, ref) {
|
|
75
|
-
const props = (
|
|
128
|
+
const props = useThemeProps({
|
|
76
129
|
props: inProps,
|
|
77
130
|
name: 'MuiSvgIcon'
|
|
78
131
|
});
|
|
@@ -190,5 +243,7 @@ process.env.NODE_ENV !== "production" ? SvgIcon.propTypes /* remove-proptypes */
|
|
|
190
243
|
*/
|
|
191
244
|
viewBox: _propTypes.default.string
|
|
192
245
|
} : void 0;
|
|
193
|
-
SvgIcon
|
|
246
|
+
if (SvgIcon) {
|
|
247
|
+
SvgIcon.muiName = 'SvgIcon';
|
|
248
|
+
}
|
|
194
249
|
var _default = exports.default = SvgIcon;
|
|
@@ -6,41 +6,62 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
|
-
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
10
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
|
+
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
11
11
|
var React = _interopRequireWildcard(require("react"));
|
|
12
12
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
13
|
var _clsx = _interopRequireDefault(require("clsx"));
|
|
14
|
-
var
|
|
14
|
+
var _zeroStyled = require("../zero-styled");
|
|
15
|
+
var _rootShouldForwardProp = _interopRequireDefault(require("../styles/rootShouldForwardProp"));
|
|
15
16
|
var _capitalize = _interopRequireDefault(require("../utils/capitalize"));
|
|
16
17
|
var _Drawer = require("../Drawer/Drawer");
|
|
17
18
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
18
19
|
const _excluded = ["anchor", "classes", "className", "width", "style"];
|
|
19
20
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
20
21
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
21
|
-
const SwipeAreaRoot = (0,
|
|
22
|
-
shouldForwardProp:
|
|
22
|
+
const SwipeAreaRoot = (0, _zeroStyled.styled)('div', {
|
|
23
|
+
shouldForwardProp: _rootShouldForwardProp.default
|
|
23
24
|
})(({
|
|
24
|
-
theme
|
|
25
|
-
|
|
26
|
-
}) => (0, _extends2.default)({
|
|
25
|
+
theme
|
|
26
|
+
}) => ({
|
|
27
27
|
position: 'fixed',
|
|
28
28
|
top: 0,
|
|
29
29
|
left: 0,
|
|
30
30
|
bottom: 0,
|
|
31
|
-
zIndex: theme.zIndex.drawer - 1
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
31
|
+
zIndex: theme.zIndex.drawer - 1,
|
|
32
|
+
variants: [{
|
|
33
|
+
props: {
|
|
34
|
+
anchor: 'left'
|
|
35
|
+
},
|
|
36
|
+
style: {
|
|
37
|
+
right: 'auto'
|
|
38
|
+
}
|
|
39
|
+
}, {
|
|
40
|
+
props: {
|
|
41
|
+
anchor: 'right'
|
|
42
|
+
},
|
|
43
|
+
style: {
|
|
44
|
+
left: 'auto',
|
|
45
|
+
right: 0
|
|
46
|
+
}
|
|
47
|
+
}, {
|
|
48
|
+
props: {
|
|
49
|
+
anchor: 'top'
|
|
50
|
+
},
|
|
51
|
+
style: {
|
|
52
|
+
bottom: 'auto',
|
|
53
|
+
right: 0
|
|
54
|
+
}
|
|
55
|
+
}, {
|
|
56
|
+
props: {
|
|
57
|
+
anchor: 'bottom'
|
|
58
|
+
},
|
|
59
|
+
style: {
|
|
60
|
+
top: 'auto',
|
|
61
|
+
bottom: 0,
|
|
62
|
+
right: 0
|
|
63
|
+
}
|
|
64
|
+
}]
|
|
44
65
|
}));
|
|
45
66
|
|
|
46
67
|
/**
|
package/node/Tab/Tab.js
CHANGED
|
@@ -14,14 +14,14 @@ var _clsx = _interopRequireDefault(require("clsx"));
|
|
|
14
14
|
var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
|
|
15
15
|
var _ButtonBase = _interopRequireDefault(require("../ButtonBase"));
|
|
16
16
|
var _capitalize = _interopRequireDefault(require("../utils/capitalize"));
|
|
17
|
-
var
|
|
18
|
-
var _styled = _interopRequireDefault(require("../styles/styled"));
|
|
17
|
+
var _zeroStyled = require("../zero-styled");
|
|
19
18
|
var _unsupportedProp = _interopRequireDefault(require("../utils/unsupportedProp"));
|
|
20
19
|
var _tabClasses = _interopRequireWildcard(require("./tabClasses"));
|
|
21
20
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
22
21
|
const _excluded = ["className", "disabled", "disableFocusRipple", "fullWidth", "icon", "iconPosition", "indicator", "label", "onChange", "onClick", "onFocus", "selected", "selectionFollowsFocus", "textColor", "value", "wrapped"];
|
|
23
22
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
24
23
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
24
|
+
const useThemeProps = (0, _zeroStyled.createUseThemeProps)('MuiTab');
|
|
25
25
|
const useUtilityClasses = ownerState => {
|
|
26
26
|
const {
|
|
27
27
|
classes,
|
|
@@ -39,7 +39,7 @@ const useUtilityClasses = ownerState => {
|
|
|
39
39
|
};
|
|
40
40
|
return (0, _composeClasses.default)(slots, _tabClasses.getTabUtilityClass, classes);
|
|
41
41
|
};
|
|
42
|
-
const TabRoot = (0,
|
|
42
|
+
const TabRoot = (0, _zeroStyled.styled)(_ButtonBase.default, {
|
|
43
43
|
name: 'MuiTab',
|
|
44
44
|
slot: 'Root',
|
|
45
45
|
overridesResolver: (props, styles) => {
|
|
@@ -49,8 +49,7 @@ const TabRoot = (0, _styled.default)(_ButtonBase.default, {
|
|
|
49
49
|
return [styles.root, ownerState.label && ownerState.icon && styles.labelIcon, styles[`textColor${(0, _capitalize.default)(ownerState.textColor)}`], ownerState.fullWidth && styles.fullWidth, ownerState.wrapped && styles.wrapped];
|
|
50
50
|
}
|
|
51
51
|
})(({
|
|
52
|
-
theme
|
|
53
|
-
ownerState
|
|
52
|
+
theme
|
|
54
53
|
}) => (0, _extends2.default)({}, theme.typography.button, {
|
|
55
54
|
maxWidth: 360,
|
|
56
55
|
minWidth: 90,
|
|
@@ -60,60 +59,133 @@ const TabRoot = (0, _styled.default)(_ButtonBase.default, {
|
|
|
60
59
|
padding: '12px 16px',
|
|
61
60
|
overflow: 'hidden',
|
|
62
61
|
whiteSpace: 'normal',
|
|
63
|
-
textAlign: 'center'
|
|
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
|
-
|
|
106
|
-
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
}
|
|
113
|
-
|
|
62
|
+
textAlign: 'center',
|
|
63
|
+
lineHeight: 1.25,
|
|
64
|
+
variants: [{
|
|
65
|
+
props: ({
|
|
66
|
+
ownerState
|
|
67
|
+
}) => ownerState.label && (ownerState.iconPosition === 'top' || ownerState.iconPosition === 'bottom'),
|
|
68
|
+
style: {
|
|
69
|
+
flexDirection: 'column'
|
|
70
|
+
}
|
|
71
|
+
}, {
|
|
72
|
+
props: ({
|
|
73
|
+
ownerState
|
|
74
|
+
}) => ownerState.label && ownerState.iconPosition !== 'top' && ownerState.iconPosition !== 'bottom',
|
|
75
|
+
style: {
|
|
76
|
+
flexDirection: 'row'
|
|
77
|
+
}
|
|
78
|
+
}, {
|
|
79
|
+
props: ({
|
|
80
|
+
ownerState
|
|
81
|
+
}) => ownerState.icon && ownerState.label,
|
|
82
|
+
style: {
|
|
83
|
+
minHeight: 72,
|
|
84
|
+
paddingTop: 9,
|
|
85
|
+
paddingBottom: 9
|
|
86
|
+
}
|
|
87
|
+
}, {
|
|
88
|
+
props: ({
|
|
89
|
+
ownerState,
|
|
90
|
+
iconPosition
|
|
91
|
+
}) => ownerState.icon && ownerState.label && iconPosition === 'top',
|
|
92
|
+
style: {
|
|
93
|
+
[`& > .${_tabClasses.default.iconWrapper}`]: {
|
|
94
|
+
marginBottom: 6
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}, {
|
|
98
|
+
props: ({
|
|
99
|
+
ownerState,
|
|
100
|
+
iconPosition
|
|
101
|
+
}) => ownerState.icon && ownerState.label && iconPosition === 'bottom',
|
|
102
|
+
style: {
|
|
103
|
+
[`& > .${_tabClasses.default.iconWrapper}`]: {
|
|
104
|
+
marginTop: 6
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}, {
|
|
108
|
+
props: ({
|
|
109
|
+
ownerState,
|
|
110
|
+
iconPosition
|
|
111
|
+
}) => ownerState.icon && ownerState.label && iconPosition === 'start',
|
|
112
|
+
style: {
|
|
113
|
+
[`& > .${_tabClasses.default.iconWrapper}`]: {
|
|
114
|
+
marginRight: theme.spacing(1)
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}, {
|
|
118
|
+
props: ({
|
|
119
|
+
ownerState,
|
|
120
|
+
iconPosition
|
|
121
|
+
}) => ownerState.icon && ownerState.label && iconPosition === 'end',
|
|
122
|
+
style: {
|
|
123
|
+
[`& > .${_tabClasses.default.iconWrapper}`]: {
|
|
124
|
+
marginLeft: theme.spacing(1)
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}, {
|
|
128
|
+
props: {
|
|
129
|
+
textColor: 'inherit'
|
|
130
|
+
},
|
|
131
|
+
style: {
|
|
132
|
+
color: 'inherit',
|
|
133
|
+
opacity: 0.6,
|
|
134
|
+
// same opacity as theme.palette.text.secondary
|
|
135
|
+
[`&.${_tabClasses.default.selected}`]: {
|
|
136
|
+
opacity: 1
|
|
137
|
+
},
|
|
138
|
+
[`&.${_tabClasses.default.disabled}`]: {
|
|
139
|
+
opacity: (theme.vars || theme).palette.action.disabledOpacity
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}, {
|
|
143
|
+
props: {
|
|
144
|
+
textColor: 'primary'
|
|
145
|
+
},
|
|
146
|
+
style: {
|
|
147
|
+
color: (theme.vars || theme).palette.text.secondary,
|
|
148
|
+
[`&.${_tabClasses.default.selected}`]: {
|
|
149
|
+
color: (theme.vars || theme).palette.primary.main
|
|
150
|
+
},
|
|
151
|
+
[`&.${_tabClasses.default.disabled}`]: {
|
|
152
|
+
color: (theme.vars || theme).palette.text.disabled
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}, {
|
|
156
|
+
props: {
|
|
157
|
+
textColor: 'secondary'
|
|
158
|
+
},
|
|
159
|
+
style: {
|
|
160
|
+
color: (theme.vars || theme).palette.text.secondary,
|
|
161
|
+
[`&.${_tabClasses.default.selected}`]: {
|
|
162
|
+
color: (theme.vars || theme).palette.secondary.main
|
|
163
|
+
},
|
|
164
|
+
[`&.${_tabClasses.default.disabled}`]: {
|
|
165
|
+
color: (theme.vars || theme).palette.text.disabled
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}, {
|
|
169
|
+
props: ({
|
|
170
|
+
ownerState
|
|
171
|
+
}) => ownerState.fullWidth,
|
|
172
|
+
style: {
|
|
173
|
+
flexShrink: 1,
|
|
174
|
+
flexGrow: 1,
|
|
175
|
+
flexBasis: 0,
|
|
176
|
+
maxWidth: 'none'
|
|
177
|
+
}
|
|
178
|
+
}, {
|
|
179
|
+
props: ({
|
|
180
|
+
ownerState
|
|
181
|
+
}) => ownerState.wrapped,
|
|
182
|
+
style: {
|
|
183
|
+
fontSize: theme.typography.pxToRem(12)
|
|
184
|
+
}
|
|
185
|
+
}]
|
|
114
186
|
}));
|
|
115
187
|
const Tab = /*#__PURE__*/React.forwardRef(function Tab(inProps, ref) {
|
|
116
|
-
const props = (
|
|
188
|
+
const props = useThemeProps({
|
|
117
189
|
props: inProps,
|
|
118
190
|
name: 'MuiTab'
|
|
119
191
|
});
|
|
@@ -7,8 +7,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
value: true
|
|
8
8
|
});
|
|
9
9
|
exports.default = void 0;
|
|
10
|
-
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
11
10
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
|
+
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
12
12
|
var React = _interopRequireWildcard(require("react"));
|
|
13
13
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
14
14
|
var _clsx = _interopRequireDefault(require("clsx"));
|
|
@@ -18,13 +18,13 @@ var _RtlProvider = require("@mui/system/RtlProvider");
|
|
|
18
18
|
var _KeyboardArrowLeft = _interopRequireDefault(require("../internal/svg-icons/KeyboardArrowLeft"));
|
|
19
19
|
var _KeyboardArrowRight = _interopRequireDefault(require("../internal/svg-icons/KeyboardArrowRight"));
|
|
20
20
|
var _ButtonBase = _interopRequireDefault(require("../ButtonBase"));
|
|
21
|
-
var
|
|
22
|
-
var _styled = _interopRequireDefault(require("../styles/styled"));
|
|
21
|
+
var _zeroStyled = require("../zero-styled");
|
|
23
22
|
var _tabScrollButtonClasses = _interopRequireWildcard(require("./tabScrollButtonClasses"));
|
|
24
23
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
25
24
|
const _excluded = ["className", "slots", "slotProps", "direction", "orientation", "disabled"];
|
|
26
25
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
27
26
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
27
|
+
const useThemeProps = (0, _zeroStyled.createUseThemeProps)('MuiTabScrollButton');
|
|
28
28
|
const useUtilityClasses = ownerState => {
|
|
29
29
|
const {
|
|
30
30
|
classes,
|
|
@@ -36,7 +36,7 @@ const useUtilityClasses = ownerState => {
|
|
|
36
36
|
};
|
|
37
37
|
return (0, _composeClasses.default)(slots, _tabScrollButtonClasses.getTabScrollButtonUtilityClass, classes);
|
|
38
38
|
};
|
|
39
|
-
const TabScrollButtonRoot = (0,
|
|
39
|
+
const TabScrollButtonRoot = (0, _zeroStyled.styled)(_ButtonBase.default, {
|
|
40
40
|
name: 'MuiTabScrollButton',
|
|
41
41
|
slot: 'Root',
|
|
42
42
|
overridesResolver: (props, styles) => {
|
|
@@ -45,25 +45,29 @@ const TabScrollButtonRoot = (0, _styled.default)(_ButtonBase.default, {
|
|
|
45
45
|
} = props;
|
|
46
46
|
return [styles.root, ownerState.orientation && styles[ownerState.orientation]];
|
|
47
47
|
}
|
|
48
|
-
})(
|
|
49
|
-
ownerState
|
|
50
|
-
}) => (0, _extends2.default)({
|
|
48
|
+
})({
|
|
51
49
|
width: 40,
|
|
52
50
|
flexShrink: 0,
|
|
53
51
|
opacity: 0.8,
|
|
54
52
|
[`&.${_tabScrollButtonClasses.default.disabled}`]: {
|
|
55
53
|
opacity: 0
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
54
|
+
},
|
|
55
|
+
variants: [{
|
|
56
|
+
props: {
|
|
57
|
+
orientation: 'vertical'
|
|
58
|
+
},
|
|
59
|
+
style: {
|
|
60
|
+
width: '100%',
|
|
61
|
+
height: 40,
|
|
62
|
+
'& svg': {
|
|
63
|
+
transform: 'var(--TabScrollButton-svgRotate)'
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}]
|
|
67
|
+
});
|
|
64
68
|
const TabScrollButton = /*#__PURE__*/React.forwardRef(function TabScrollButton(inProps, ref) {
|
|
65
69
|
var _slots$StartScrollBut, _slots$EndScrollButto;
|
|
66
|
-
const props = (
|
|
70
|
+
const props = useThemeProps({
|
|
67
71
|
props: inProps,
|
|
68
72
|
name: 'MuiTabScrollButton'
|
|
69
73
|
});
|
|
@@ -71,7 +75,8 @@ const TabScrollButton = /*#__PURE__*/React.forwardRef(function TabScrollButton(i
|
|
|
71
75
|
className,
|
|
72
76
|
slots = {},
|
|
73
77
|
slotProps = {},
|
|
74
|
-
direction
|
|
78
|
+
direction,
|
|
79
|
+
orientation
|
|
75
80
|
} = props,
|
|
76
81
|
other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
|
|
77
82
|
const isRtl = (0, _RtlProvider.useRtl)();
|
|
@@ -105,6 +110,9 @@ const TabScrollButton = /*#__PURE__*/React.forwardRef(function TabScrollButton(i
|
|
|
105
110
|
ownerState: ownerState,
|
|
106
111
|
tabIndex: null
|
|
107
112
|
}, other, {
|
|
113
|
+
style: (0, _extends2.default)({}, other.style, orientation === 'vertical' && {
|
|
114
|
+
'--TabScrollButton-svgRotate': `rotate(${isRtl ? -90 : 90}deg)`
|
|
115
|
+
}),
|
|
108
116
|
children: direction === 'left' ? /*#__PURE__*/(0, _jsxRuntime.jsx)(StartButtonIcon, (0, _extends2.default)({}, startButtonIconProps)) : /*#__PURE__*/(0, _jsxRuntime.jsx)(EndButtonIcon, (0, _extends2.default)({}, endButtonIconProps))
|
|
109
117
|
}));
|
|
110
118
|
});
|
|
@@ -155,6 +163,10 @@ process.env.NODE_ENV !== "production" ? TabScrollButton.propTypes /* remove-prop
|
|
|
155
163
|
EndScrollButtonIcon: _propTypes.default.elementType,
|
|
156
164
|
StartScrollButtonIcon: _propTypes.default.elementType
|
|
157
165
|
}),
|
|
166
|
+
/**
|
|
167
|
+
* @ignore
|
|
168
|
+
*/
|
|
169
|
+
style: _propTypes.default.object,
|
|
158
170
|
/**
|
|
159
171
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
160
172
|
*/
|
package/node/Table/Table.js
CHANGED
|
@@ -13,13 +13,13 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
13
13
|
var _clsx = _interopRequireDefault(require("clsx"));
|
|
14
14
|
var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
|
|
15
15
|
var _TableContext = _interopRequireDefault(require("./TableContext"));
|
|
16
|
-
var
|
|
17
|
-
var _styled = _interopRequireDefault(require("../styles/styled"));
|
|
16
|
+
var _zeroStyled = require("../zero-styled");
|
|
18
17
|
var _tableClasses = require("./tableClasses");
|
|
19
18
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
20
19
|
const _excluded = ["className", "component", "padding", "size", "stickyHeader"];
|
|
21
20
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
22
21
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
22
|
+
const useThemeProps = (0, _zeroStyled.createUseThemeProps)('MuiTable');
|
|
23
23
|
const useUtilityClasses = ownerState => {
|
|
24
24
|
const {
|
|
25
25
|
classes,
|
|
@@ -30,7 +30,7 @@ const useUtilityClasses = ownerState => {
|
|
|
30
30
|
};
|
|
31
31
|
return (0, _composeClasses.default)(slots, _tableClasses.getTableUtilityClass, classes);
|
|
32
32
|
};
|
|
33
|
-
const TableRoot = (0,
|
|
33
|
+
const TableRoot = (0, _zeroStyled.styled)('table', {
|
|
34
34
|
name: 'MuiTable',
|
|
35
35
|
slot: 'Root',
|
|
36
36
|
overridesResolver: (props, styles) => {
|
|
@@ -63,7 +63,7 @@ const TableRoot = (0, _styled.default)('table', {
|
|
|
63
63
|
}));
|
|
64
64
|
const defaultComponent = 'table';
|
|
65
65
|
const Table = /*#__PURE__*/React.forwardRef(function Table(inProps, ref) {
|
|
66
|
-
const props = (
|
|
66
|
+
const props = useThemeProps({
|
|
67
67
|
props: inProps,
|
|
68
68
|
name: 'MuiTable'
|
|
69
69
|
});
|
|
@@ -13,13 +13,13 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
13
13
|
var _clsx = _interopRequireDefault(require("clsx"));
|
|
14
14
|
var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
|
|
15
15
|
var _Tablelvl2Context = _interopRequireDefault(require("../Table/Tablelvl2Context"));
|
|
16
|
-
var
|
|
17
|
-
var _styled = _interopRequireDefault(require("../styles/styled"));
|
|
16
|
+
var _zeroStyled = require("../zero-styled");
|
|
18
17
|
var _tableBodyClasses = require("./tableBodyClasses");
|
|
19
18
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
20
19
|
const _excluded = ["className", "component"];
|
|
21
20
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
22
21
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
22
|
+
const useThemeProps = (0, _zeroStyled.createUseThemeProps)('MuiTableBody');
|
|
23
23
|
const useUtilityClasses = ownerState => {
|
|
24
24
|
const {
|
|
25
25
|
classes
|
|
@@ -29,7 +29,7 @@ const useUtilityClasses = ownerState => {
|
|
|
29
29
|
};
|
|
30
30
|
return (0, _composeClasses.default)(slots, _tableBodyClasses.getTableBodyUtilityClass, classes);
|
|
31
31
|
};
|
|
32
|
-
const TableBodyRoot = (0,
|
|
32
|
+
const TableBodyRoot = (0, _zeroStyled.styled)('tbody', {
|
|
33
33
|
name: 'MuiTableBody',
|
|
34
34
|
slot: 'Root',
|
|
35
35
|
overridesResolver: (props, styles) => styles.root
|
|
@@ -41,7 +41,7 @@ const tablelvl2 = {
|
|
|
41
41
|
};
|
|
42
42
|
const defaultComponent = 'tbody';
|
|
43
43
|
const TableBody = /*#__PURE__*/React.forwardRef(function TableBody(inProps, ref) {
|
|
44
|
-
const props = (
|
|
44
|
+
const props = useThemeProps({
|
|
45
45
|
props: inProps,
|
|
46
46
|
name: 'MuiTableBody'
|
|
47
47
|
});
|