@mui/material 6.0.0-alpha.5 → 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 +48 -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 +1 -1
- package/FormControlLabel/FormControlLabel.js +1 -1
- 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 +1 -1
- package/PaginationItem/PaginationItem.js +1 -1
- 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/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 +1 -1
- 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 +1 -1
- 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/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 +1 -1
- 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 +1 -1
- 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/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 +4 -4
- package/umd/material-ui.development.js +2585 -1287
- package/umd/material-ui.production.min.js +4 -4
|
@@ -6,18 +6,19 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
8
|
exports.default = NotchedOutline;
|
|
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
|
-
var
|
|
13
|
+
var _rootShouldForwardProp = _interopRequireDefault(require("../styles/rootShouldForwardProp"));
|
|
14
|
+
var _zeroStyled = require("../zero-styled");
|
|
14
15
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
16
|
var _span;
|
|
16
17
|
const _excluded = ["children", "classes", "className", "label", "notched"];
|
|
17
18
|
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); }
|
|
18
19
|
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; }
|
|
19
|
-
const NotchedOutlineRoot = (0,
|
|
20
|
-
shouldForwardProp:
|
|
20
|
+
const NotchedOutlineRoot = (0, _zeroStyled.styled)('fieldset', {
|
|
21
|
+
shouldForwardProp: _rootShouldForwardProp.default
|
|
21
22
|
})({
|
|
22
23
|
textAlign: 'left',
|
|
23
24
|
position: 'absolute',
|
|
@@ -34,54 +35,70 @@ const NotchedOutlineRoot = (0, _styled.default)('fieldset', {
|
|
|
34
35
|
overflow: 'hidden',
|
|
35
36
|
minWidth: '0%'
|
|
36
37
|
});
|
|
37
|
-
const NotchedOutlineLegend = (0,
|
|
38
|
-
shouldForwardProp:
|
|
38
|
+
const NotchedOutlineLegend = (0, _zeroStyled.styled)('legend', {
|
|
39
|
+
shouldForwardProp: _rootShouldForwardProp.default
|
|
39
40
|
})(({
|
|
40
|
-
ownerState,
|
|
41
41
|
theme
|
|
42
|
-
}) => (
|
|
42
|
+
}) => ({
|
|
43
43
|
float: 'unset',
|
|
44
44
|
// Fix conflict with bootstrap
|
|
45
45
|
width: 'auto',
|
|
46
46
|
// Fix conflict with bootstrap
|
|
47
|
-
overflow: 'hidden'
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
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
|
-
|
|
47
|
+
overflow: 'hidden',
|
|
48
|
+
// Fix Horizontal scroll when label too long
|
|
49
|
+
variants: [{
|
|
50
|
+
props: ({
|
|
51
|
+
ownerState
|
|
52
|
+
}) => !ownerState.withLabel,
|
|
53
|
+
style: {
|
|
54
|
+
padding: 0,
|
|
55
|
+
lineHeight: '11px',
|
|
56
|
+
// sync with `height` in `legend` styles
|
|
57
|
+
transition: theme.transitions.create('width', {
|
|
58
|
+
duration: 150,
|
|
59
|
+
easing: theme.transitions.easing.easeOut
|
|
60
|
+
})
|
|
61
|
+
}
|
|
62
|
+
}, {
|
|
63
|
+
props: ({
|
|
64
|
+
ownerState
|
|
65
|
+
}) => ownerState.withLabel,
|
|
66
|
+
style: {
|
|
67
|
+
display: 'block',
|
|
68
|
+
// Fix conflict with normalize.css and sanitize.css
|
|
69
|
+
padding: 0,
|
|
70
|
+
height: 11,
|
|
71
|
+
// sync with `lineHeight` in `legend` styles
|
|
72
|
+
fontSize: '0.75em',
|
|
73
|
+
visibility: 'hidden',
|
|
74
|
+
maxWidth: 0.01,
|
|
75
|
+
transition: theme.transitions.create('max-width', {
|
|
76
|
+
duration: 50,
|
|
77
|
+
easing: theme.transitions.easing.easeOut
|
|
78
|
+
}),
|
|
79
|
+
whiteSpace: 'nowrap',
|
|
80
|
+
'& > span': {
|
|
81
|
+
paddingLeft: 5,
|
|
82
|
+
paddingRight: 5,
|
|
83
|
+
display: 'inline-block',
|
|
84
|
+
opacity: 0,
|
|
85
|
+
visibility: 'visible'
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}, {
|
|
89
|
+
props: ({
|
|
90
|
+
ownerState
|
|
91
|
+
}) => ownerState.withLabel && ownerState.notched,
|
|
92
|
+
style: {
|
|
93
|
+
maxWidth: '100%',
|
|
94
|
+
transition: theme.transitions.create('max-width', {
|
|
95
|
+
duration: 100,
|
|
96
|
+
easing: theme.transitions.easing.easeOut,
|
|
97
|
+
delay: 50
|
|
98
|
+
})
|
|
99
|
+
}
|
|
100
|
+
}]
|
|
101
|
+
}));
|
|
85
102
|
|
|
86
103
|
/**
|
|
87
104
|
* @ignore - internal component.
|
|
@@ -115,7 +132,7 @@ function NotchedOutline(props) {
|
|
|
115
132
|
})
|
|
116
133
|
}));
|
|
117
134
|
}
|
|
118
|
-
process.env.NODE_ENV !== "production" ? NotchedOutline.propTypes = {
|
|
135
|
+
process.env.NODE_ENV !== "production" ? NotchedOutline.propTypes /* remove-proptypes */ = {
|
|
119
136
|
/**
|
|
120
137
|
* The content of the component.
|
|
121
138
|
*/
|
|
@@ -15,14 +15,15 @@ var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"
|
|
|
15
15
|
var _NotchedOutline = _interopRequireDefault(require("./NotchedOutline"));
|
|
16
16
|
var _useFormControl = _interopRequireDefault(require("../FormControl/useFormControl"));
|
|
17
17
|
var _formControlState = _interopRequireDefault(require("../FormControl/formControlState"));
|
|
18
|
-
var
|
|
18
|
+
var _rootShouldForwardProp = _interopRequireDefault(require("../styles/rootShouldForwardProp"));
|
|
19
|
+
var _zeroStyled = require("../zero-styled");
|
|
19
20
|
var _outlinedInputClasses = _interopRequireWildcard(require("./outlinedInputClasses"));
|
|
20
21
|
var _InputBase = _interopRequireWildcard(require("../InputBase/InputBase"));
|
|
21
|
-
var _useThemeProps = _interopRequireDefault(require("../styles/useThemeProps"));
|
|
22
22
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
23
23
|
const _excluded = ["components", "fullWidth", "inputComponent", "label", "multiline", "notched", "slots", "type"];
|
|
24
24
|
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); }
|
|
25
25
|
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; }
|
|
26
|
+
const useThemeProps = (0, _zeroStyled.createUseThemeProps)('MuiOutlinedInput');
|
|
26
27
|
const useUtilityClasses = ownerState => {
|
|
27
28
|
const {
|
|
28
29
|
classes
|
|
@@ -35,49 +36,83 @@ const useUtilityClasses = ownerState => {
|
|
|
35
36
|
const composedClasses = (0, _composeClasses.default)(slots, _outlinedInputClasses.getOutlinedInputUtilityClass, classes);
|
|
36
37
|
return (0, _extends2.default)({}, classes, composedClasses);
|
|
37
38
|
};
|
|
38
|
-
const OutlinedInputRoot = (0,
|
|
39
|
-
shouldForwardProp: prop => (0,
|
|
39
|
+
const OutlinedInputRoot = (0, _zeroStyled.styled)(_InputBase.InputBaseRoot, {
|
|
40
|
+
shouldForwardProp: prop => (0, _rootShouldForwardProp.default)(prop) || prop === 'classes',
|
|
40
41
|
name: 'MuiOutlinedInput',
|
|
41
42
|
slot: 'Root',
|
|
42
43
|
overridesResolver: _InputBase.rootOverridesResolver
|
|
43
44
|
})(({
|
|
44
|
-
theme
|
|
45
|
-
ownerState
|
|
45
|
+
theme
|
|
46
46
|
}) => {
|
|
47
47
|
const borderColor = theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)';
|
|
48
|
-
return
|
|
48
|
+
return {
|
|
49
49
|
position: 'relative',
|
|
50
50
|
borderRadius: (theme.vars || theme).shape.borderRadius,
|
|
51
51
|
[`&:hover .${_outlinedInputClasses.default.notchedOutline}`]: {
|
|
52
52
|
borderColor: (theme.vars || theme).palette.text.primary
|
|
53
53
|
},
|
|
54
|
-
// Reset on touch devices, it doesn't add specificity
|
|
55
|
-
'@media (hover: none)': {
|
|
56
|
-
[`&:hover .${_outlinedInputClasses.default.notchedOutline}`]: {
|
|
57
|
-
borderColor: theme.vars ? `rgba(${theme.vars.palette.common.onBackgroundChannel} / 0.23)` : borderColor
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
54
|
[`&.${_outlinedInputClasses.default.focused} .${_outlinedInputClasses.default.notchedOutline}`]: {
|
|
61
|
-
borderColor: (theme.vars || theme).palette[ownerState.color].main,
|
|
62
55
|
borderWidth: 2
|
|
63
56
|
},
|
|
64
|
-
[
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
57
|
+
variants: [...Object.entries(theme.palette).filter(([, value]) => value.main).map(([color]) => ({
|
|
58
|
+
props: {
|
|
59
|
+
color
|
|
60
|
+
},
|
|
61
|
+
style: {
|
|
62
|
+
[`&.${_outlinedInputClasses.default.focused} .${_outlinedInputClasses.default.notchedOutline}`]: {
|
|
63
|
+
borderColor: (theme.vars || theme).palette[color].main
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
})), {
|
|
67
|
+
props: {},
|
|
68
|
+
// to overide the above style
|
|
69
|
+
style: {
|
|
70
|
+
// Reset on touch devices, it doesn't add specificity
|
|
71
|
+
'@media (hover: none)': {
|
|
72
|
+
[`&:hover .${_outlinedInputClasses.default.notchedOutline}`]: {
|
|
73
|
+
borderColor: theme.vars ? `rgba(${theme.vars.palette.common.onBackgroundChannel} / 0.23)` : borderColor
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
[`&.${_outlinedInputClasses.default.error} .${_outlinedInputClasses.default.notchedOutline}`]: {
|
|
77
|
+
borderColor: (theme.vars || theme).palette.error.main
|
|
78
|
+
},
|
|
79
|
+
[`&.${_outlinedInputClasses.default.disabled} .${_outlinedInputClasses.default.notchedOutline}`]: {
|
|
80
|
+
borderColor: (theme.vars || theme).palette.action.disabled
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}, {
|
|
84
|
+
props: ({
|
|
85
|
+
ownerState
|
|
86
|
+
}) => ownerState.startAdornment,
|
|
87
|
+
style: {
|
|
88
|
+
paddingLeft: 14
|
|
89
|
+
}
|
|
90
|
+
}, {
|
|
91
|
+
props: ({
|
|
92
|
+
ownerState
|
|
93
|
+
}) => ownerState.endAdornment,
|
|
94
|
+
style: {
|
|
95
|
+
paddingRight: 14
|
|
96
|
+
}
|
|
97
|
+
}, {
|
|
98
|
+
props: ({
|
|
99
|
+
ownerState
|
|
100
|
+
}) => ownerState.multiline,
|
|
101
|
+
style: {
|
|
102
|
+
padding: '16.5px 14px'
|
|
103
|
+
}
|
|
104
|
+
}, {
|
|
105
|
+
props: ({
|
|
106
|
+
ownerState,
|
|
107
|
+
size
|
|
108
|
+
}) => ownerState.multiline && size === 'small',
|
|
109
|
+
style: {
|
|
110
|
+
padding: '8.5px 14px'
|
|
111
|
+
}
|
|
112
|
+
}]
|
|
113
|
+
};
|
|
79
114
|
});
|
|
80
|
-
const NotchedOutlineRoot = (0,
|
|
115
|
+
const NotchedOutlineRoot = (0, _zeroStyled.styled)(_NotchedOutline.default, {
|
|
81
116
|
name: 'MuiOutlinedInput',
|
|
82
117
|
slot: 'NotchedOutline',
|
|
83
118
|
overridesResolver: (props, styles) => styles.notchedOutline
|
|
@@ -89,13 +124,12 @@ const NotchedOutlineRoot = (0, _styled.default)(_NotchedOutline.default, {
|
|
|
89
124
|
borderColor: theme.vars ? `rgba(${theme.vars.palette.common.onBackgroundChannel} / 0.23)` : borderColor
|
|
90
125
|
};
|
|
91
126
|
});
|
|
92
|
-
const OutlinedInputInput = (0,
|
|
127
|
+
const OutlinedInputInput = (0, _zeroStyled.styled)(_InputBase.InputBaseInput, {
|
|
93
128
|
name: 'MuiOutlinedInput',
|
|
94
129
|
slot: 'Input',
|
|
95
130
|
overridesResolver: _InputBase.inputOverridesResolver
|
|
96
131
|
})(({
|
|
97
|
-
theme
|
|
98
|
-
ownerState
|
|
132
|
+
theme
|
|
99
133
|
}) => (0, _extends2.default)({
|
|
100
134
|
padding: '16.5px 14px'
|
|
101
135
|
}, !theme.vars && {
|
|
@@ -116,18 +150,40 @@ const OutlinedInputInput = (0, _styled.default)(_InputBase.InputBaseComponent, {
|
|
|
116
150
|
caretColor: '#fff'
|
|
117
151
|
}
|
|
118
152
|
}
|
|
119
|
-
},
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
},
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
153
|
+
}, {
|
|
154
|
+
variants: [{
|
|
155
|
+
props: {
|
|
156
|
+
size: 'small'
|
|
157
|
+
},
|
|
158
|
+
style: {
|
|
159
|
+
padding: '8.5px 14px'
|
|
160
|
+
}
|
|
161
|
+
}, {
|
|
162
|
+
props: ({
|
|
163
|
+
ownerState
|
|
164
|
+
}) => ownerState.multiline,
|
|
165
|
+
style: {
|
|
166
|
+
padding: 0
|
|
167
|
+
}
|
|
168
|
+
}, {
|
|
169
|
+
props: ({
|
|
170
|
+
ownerState
|
|
171
|
+
}) => ownerState.startAdornment,
|
|
172
|
+
style: {
|
|
173
|
+
paddingLeft: 0
|
|
174
|
+
}
|
|
175
|
+
}, {
|
|
176
|
+
props: ({
|
|
177
|
+
ownerState
|
|
178
|
+
}) => ownerState.endAdornment,
|
|
179
|
+
style: {
|
|
180
|
+
paddingRight: 0
|
|
181
|
+
}
|
|
182
|
+
}]
|
|
127
183
|
}));
|
|
128
184
|
const OutlinedInput = /*#__PURE__*/React.forwardRef(function OutlinedInput(inProps, ref) {
|
|
129
185
|
var _ref, _slots$root, _ref2, _slots$input, _React$Fragment;
|
|
130
|
-
const props = (
|
|
186
|
+
const props = useThemeProps({
|
|
131
187
|
props: inProps,
|
|
132
188
|
name: 'MuiOutlinedInput'
|
|
133
189
|
});
|
|
@@ -353,5 +409,7 @@ process.env.NODE_ENV !== "production" ? OutlinedInput.propTypes /* remove-propty
|
|
|
353
409
|
*/
|
|
354
410
|
value: _propTypes.default.any
|
|
355
411
|
} : void 0;
|
|
356
|
-
OutlinedInput
|
|
412
|
+
if (OutlinedInput) {
|
|
413
|
+
OutlinedInput.muiName = 'Input';
|
|
414
|
+
}
|
|
357
415
|
var _default = exports.default = OutlinedInput;
|
|
@@ -13,15 +13,15 @@ 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 _integerPropType = _interopRequireDefault(require("@mui/utils/integerPropType"));
|
|
16
|
-
var _useThemeProps = _interopRequireDefault(require("../styles/useThemeProps"));
|
|
17
16
|
var _paginationClasses = require("./paginationClasses");
|
|
18
17
|
var _usePagination = _interopRequireDefault(require("../usePagination"));
|
|
19
18
|
var _PaginationItem = _interopRequireDefault(require("../PaginationItem"));
|
|
20
|
-
var
|
|
19
|
+
var _zeroStyled = require("../zero-styled");
|
|
21
20
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
22
21
|
const _excluded = ["boundaryCount", "className", "color", "count", "defaultPage", "disabled", "getItemAriaLabel", "hideNextButton", "hidePrevButton", "onChange", "page", "renderItem", "shape", "showFirstButton", "showLastButton", "siblingCount", "size", "variant"];
|
|
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)('MuiPagination');
|
|
25
25
|
const useUtilityClasses = ownerState => {
|
|
26
26
|
const {
|
|
27
27
|
classes,
|
|
@@ -33,7 +33,7 @@ const useUtilityClasses = ownerState => {
|
|
|
33
33
|
};
|
|
34
34
|
return (0, _composeClasses.default)(slots, _paginationClasses.getPaginationUtilityClass, classes);
|
|
35
35
|
};
|
|
36
|
-
const PaginationRoot = (0,
|
|
36
|
+
const PaginationRoot = (0, _zeroStyled.styled)('nav', {
|
|
37
37
|
name: 'MuiPagination',
|
|
38
38
|
slot: 'Root',
|
|
39
39
|
overridesResolver: (props, styles) => {
|
|
@@ -43,7 +43,7 @@ const PaginationRoot = (0, _styled.default)('nav', {
|
|
|
43
43
|
return [styles.root, styles[ownerState.variant]];
|
|
44
44
|
}
|
|
45
45
|
})({});
|
|
46
|
-
const PaginationUl = (0,
|
|
46
|
+
const PaginationUl = (0, _zeroStyled.styled)('ul', {
|
|
47
47
|
name: 'MuiPagination',
|
|
48
48
|
slot: 'Ul',
|
|
49
49
|
overridesResolver: (props, styles) => styles.ul
|
|
@@ -62,7 +62,7 @@ function defaultGetAriaLabel(type, page, selected) {
|
|
|
62
62
|
return `Go to ${type} page`;
|
|
63
63
|
}
|
|
64
64
|
const Pagination = /*#__PURE__*/React.forwardRef(function Pagination(inProps, ref) {
|
|
65
|
-
const props = (
|
|
65
|
+
const props = useThemeProps({
|
|
66
66
|
props: inProps,
|
|
67
67
|
name: 'MuiPagination'
|
|
68
68
|
});
|
|
@@ -408,7 +408,7 @@ process.env.NODE_ENV !== "production" ? PaginationItem.propTypes /* remove-propt
|
|
|
408
408
|
* It's recommended to use the `slots` prop instead.
|
|
409
409
|
*
|
|
410
410
|
* @default {}
|
|
411
|
-
* @deprecated use the `slots` prop instead. This prop will be removed in v7. [
|
|
411
|
+
* @deprecated use the `slots` prop instead. This prop will be removed in v7. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
412
412
|
*/
|
|
413
413
|
components: _propTypes.default.shape({
|
|
414
414
|
first: _propTypes.default.elementType,
|
package/node/Paper/Paper.js
CHANGED
|
@@ -6,8 +6,8 @@ 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"));
|
|
@@ -15,15 +15,15 @@ var _integerPropType = _interopRequireDefault(require("@mui/utils/integerPropTyp
|
|
|
15
15
|
var _chainPropTypes = _interopRequireDefault(require("@mui/utils/chainPropTypes"));
|
|
16
16
|
var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
|
|
17
17
|
var _colorManipulator = require("@mui/system/colorManipulator");
|
|
18
|
-
var
|
|
18
|
+
var _zeroStyled = require("../zero-styled");
|
|
19
19
|
var _getOverlayAlpha = _interopRequireDefault(require("../styles/getOverlayAlpha"));
|
|
20
|
-
var _useThemeProps = _interopRequireDefault(require("../styles/useThemeProps"));
|
|
21
20
|
var _useTheme = _interopRequireDefault(require("../styles/useTheme"));
|
|
22
21
|
var _paperClasses = require("./paperClasses");
|
|
23
22
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
24
23
|
const _excluded = ["className", "component", "elevation", "square", "variant"];
|
|
25
24
|
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); }
|
|
26
25
|
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; }
|
|
26
|
+
const useThemeProps = (0, _zeroStyled.createUseThemeProps)('MuiPaper');
|
|
27
27
|
const useUtilityClasses = ownerState => {
|
|
28
28
|
const {
|
|
29
29
|
square,
|
|
@@ -36,7 +36,7 @@ const useUtilityClasses = ownerState => {
|
|
|
36
36
|
};
|
|
37
37
|
return (0, _composeClasses.default)(slots, _paperClasses.getPaperUtilityClass, classes);
|
|
38
38
|
};
|
|
39
|
-
const PaperRoot = (0,
|
|
39
|
+
const PaperRoot = (0, _zeroStyled.styled)('div', {
|
|
40
40
|
name: 'MuiPaper',
|
|
41
41
|
slot: 'Root',
|
|
42
42
|
overridesResolver: (props, styles) => {
|
|
@@ -46,31 +46,42 @@ const PaperRoot = (0, _styled.default)('div', {
|
|
|
46
46
|
return [styles.root, styles[ownerState.variant], !ownerState.square && styles.rounded, ownerState.variant === 'elevation' && styles[`elevation${ownerState.elevation}`]];
|
|
47
47
|
}
|
|
48
48
|
})(({
|
|
49
|
-
theme
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
},
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
}
|
|
49
|
+
theme
|
|
50
|
+
}) => ({
|
|
51
|
+
backgroundColor: (theme.vars || theme).palette.background.paper,
|
|
52
|
+
color: (theme.vars || theme).palette.text.primary,
|
|
53
|
+
transition: theme.transitions.create('box-shadow'),
|
|
54
|
+
variants: [{
|
|
55
|
+
props: ({
|
|
56
|
+
ownerState
|
|
57
|
+
}) => !ownerState.square,
|
|
58
|
+
style: {
|
|
59
|
+
borderRadius: theme.shape.borderRadius
|
|
60
|
+
}
|
|
61
|
+
}, {
|
|
62
|
+
props: {
|
|
63
|
+
variant: 'outlined'
|
|
64
|
+
},
|
|
65
|
+
style: {
|
|
66
|
+
border: `1px solid ${(theme.vars || theme).palette.divider}`
|
|
67
|
+
}
|
|
68
|
+
}, {
|
|
69
|
+
props: {
|
|
70
|
+
variant: 'elevation'
|
|
71
|
+
},
|
|
72
|
+
style: {
|
|
73
|
+
boxShadow: 'var(--Paper-shadow)',
|
|
74
|
+
backgroundImage: 'var(--Paper-overlay)'
|
|
75
|
+
}
|
|
76
|
+
}]
|
|
77
|
+
}));
|
|
69
78
|
const Paper = /*#__PURE__*/React.forwardRef(function Paper(inProps, ref) {
|
|
70
|
-
|
|
79
|
+
var _theme$overlays;
|
|
80
|
+
const props = useThemeProps({
|
|
71
81
|
props: inProps,
|
|
72
82
|
name: 'MuiPaper'
|
|
73
83
|
});
|
|
84
|
+
const theme = (0, _useTheme.default)();
|
|
74
85
|
const {
|
|
75
86
|
className,
|
|
76
87
|
component = 'div',
|
|
@@ -87,8 +98,6 @@ const Paper = /*#__PURE__*/React.forwardRef(function Paper(inProps, ref) {
|
|
|
87
98
|
});
|
|
88
99
|
const classes = useUtilityClasses(ownerState);
|
|
89
100
|
if (process.env.NODE_ENV !== 'production') {
|
|
90
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
91
|
-
const theme = (0, _useTheme.default)();
|
|
92
101
|
if (theme.shadows[elevation] === undefined) {
|
|
93
102
|
console.error([`MUI: The elevation provided <Paper elevation={${elevation}}> is not available in the theme.`, `Please make sure that \`theme.shadows[${elevation}]\` is defined.`].join('\n'));
|
|
94
103
|
}
|
|
@@ -98,7 +107,15 @@ const Paper = /*#__PURE__*/React.forwardRef(function Paper(inProps, ref) {
|
|
|
98
107
|
ownerState: ownerState,
|
|
99
108
|
className: (0, _clsx.default)(classes.root, className),
|
|
100
109
|
ref: ref
|
|
101
|
-
}, other
|
|
110
|
+
}, other, {
|
|
111
|
+
style: (0, _extends2.default)({}, variant === 'elevation' && (0, _extends2.default)({
|
|
112
|
+
'--Paper-shadow': (theme.vars || theme).shadows[elevation]
|
|
113
|
+
}, theme.vars && {
|
|
114
|
+
'--Paper-overlay': (_theme$overlays = theme.overlays) == null ? void 0 : _theme$overlays[elevation]
|
|
115
|
+
}, !theme.vars && theme.palette.mode === 'dark' && {
|
|
116
|
+
'--Paper-overlay': `linear-gradient(${(0, _colorManipulator.alpha)('#fff', (0, _getOverlayAlpha.default)(elevation))}, ${(0, _colorManipulator.alpha)('#fff', (0, _getOverlayAlpha.default)(elevation))})`
|
|
117
|
+
}), other.style)
|
|
118
|
+
}));
|
|
102
119
|
});
|
|
103
120
|
process.env.NODE_ENV !== "production" ? Paper.propTypes /* remove-proptypes */ = {
|
|
104
121
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
@@ -142,6 +159,10 @@ process.env.NODE_ENV !== "production" ? Paper.propTypes /* remove-proptypes */ =
|
|
|
142
159
|
* @default false
|
|
143
160
|
*/
|
|
144
161
|
square: _propTypes.default.bool,
|
|
162
|
+
/**
|
|
163
|
+
* @ignore
|
|
164
|
+
*/
|
|
165
|
+
style: _propTypes.default.object,
|
|
145
166
|
/**
|
|
146
167
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
147
168
|
*/
|
package/node/Radio/Radio.js
CHANGED
|
@@ -20,10 +20,10 @@ var _capitalize = _interopRequireDefault(require("../utils/capitalize"));
|
|
|
20
20
|
var _createChainedFunction = _interopRequireDefault(require("../utils/createChainedFunction"));
|
|
21
21
|
var _useRadioGroup = _interopRequireDefault(require("../RadioGroup/useRadioGroup"));
|
|
22
22
|
var _radioClasses = _interopRequireWildcard(require("./radioClasses"));
|
|
23
|
-
var
|
|
23
|
+
var _rootShouldForwardProp = _interopRequireDefault(require("../styles/rootShouldForwardProp"));
|
|
24
24
|
var _zeroStyled = require("../zero-styled");
|
|
25
25
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
26
|
-
const _excluded = ["checked", "checkedIcon", "color", "icon", "name", "onChange", "size", "className"];
|
|
26
|
+
const _excluded = ["checked", "checkedIcon", "color", "icon", "name", "onChange", "size", "className", "disableRipple"];
|
|
27
27
|
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); }
|
|
28
28
|
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; }
|
|
29
29
|
const useThemeProps = (0, _zeroStyled.createUseThemeProps)('MuiRadio');
|
|
@@ -39,7 +39,7 @@ const useUtilityClasses = ownerState => {
|
|
|
39
39
|
return (0, _extends2.default)({}, classes, (0, _composeClasses.default)(slots, _radioClasses.getRadioUtilityClass, classes));
|
|
40
40
|
};
|
|
41
41
|
const RadioRoot = (0, _zeroStyled.styled)(_SwitchBase.default, {
|
|
42
|
-
shouldForwardProp: prop => (0,
|
|
42
|
+
shouldForwardProp: prop => (0, _rootShouldForwardProp.default)(prop) || prop === 'classes',
|
|
43
43
|
name: 'MuiRadio',
|
|
44
44
|
slot: 'Root',
|
|
45
45
|
overridesResolver: (props, styles) => {
|
|
@@ -125,10 +125,12 @@ const Radio = /*#__PURE__*/React.forwardRef(function Radio(inProps, ref) {
|
|
|
125
125
|
name: nameProp,
|
|
126
126
|
onChange: onChangeProp,
|
|
127
127
|
size = 'medium',
|
|
128
|
-
className
|
|
128
|
+
className,
|
|
129
|
+
disableRipple = false
|
|
129
130
|
} = props,
|
|
130
131
|
other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
|
|
131
132
|
const ownerState = (0, _extends2.default)({}, props, {
|
|
133
|
+
disableRipple,
|
|
132
134
|
color,
|
|
133
135
|
size
|
|
134
136
|
});
|
|
@@ -11,13 +11,13 @@ var React = _interopRequireWildcard(require("react"));
|
|
|
11
11
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
12
12
|
var _RadioButtonUnchecked = _interopRequireDefault(require("../internal/svg-icons/RadioButtonUnchecked"));
|
|
13
13
|
var _RadioButtonChecked = _interopRequireDefault(require("../internal/svg-icons/RadioButtonChecked"));
|
|
14
|
-
var
|
|
14
|
+
var _rootShouldForwardProp = _interopRequireDefault(require("../styles/rootShouldForwardProp"));
|
|
15
15
|
var _zeroStyled = require("../zero-styled");
|
|
16
16
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
17
|
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); }
|
|
18
18
|
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; }
|
|
19
19
|
const RadioButtonIconRoot = (0, _zeroStyled.styled)('span', {
|
|
20
|
-
shouldForwardProp:
|
|
20
|
+
shouldForwardProp: _rootShouldForwardProp.default
|
|
21
21
|
})({
|
|
22
22
|
position: 'relative',
|
|
23
23
|
display: 'flex'
|