@mui/material 6.0.0-alpha.5 → 6.0.0-alpha.7
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/Autocomplete/Autocomplete.d.ts +78 -12
- package/Autocomplete/Autocomplete.js +120 -59
- 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 +95 -0
- package/Checkbox/Checkbox.js +3 -1
- package/Chip/chipClasses.d.ts +28 -26
- package/Chip/chipClasses.js +1 -1
- package/CircularProgress/circularProgressClasses.d.ts +6 -2
- 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 +4 -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/Autocomplete/Autocomplete.js +120 -59
- 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/Autocomplete/Autocomplete.js +120 -60
- 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 +6 -6
- package/umd/material-ui.development.js +2705 -1353
- package/umd/material-ui.production.min.js +4 -4
|
@@ -13,14 +13,14 @@ var _integerPropType = _interopRequireDefault(require("@mui/utils/integerPropTyp
|
|
|
13
13
|
var _clsx = _interopRequireDefault(require("clsx"));
|
|
14
14
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
15
15
|
var React = _interopRequireWildcard(require("react"));
|
|
16
|
-
var
|
|
17
|
-
var _useThemeProps = _interopRequireDefault(require("../styles/useThemeProps"));
|
|
16
|
+
var _zeroStyled = require("../zero-styled");
|
|
18
17
|
var _imageListClasses = require("./imageListClasses");
|
|
19
18
|
var _ImageListContext = _interopRequireDefault(require("./ImageListContext"));
|
|
20
19
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
21
20
|
const _excluded = ["children", "className", "cols", "component", "rowHeight", "gap", "style", "variant"];
|
|
22
21
|
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); }
|
|
23
22
|
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; }
|
|
23
|
+
const useThemeProps = (0, _zeroStyled.createUseThemeProps)('MuiImageList');
|
|
24
24
|
const useUtilityClasses = ownerState => {
|
|
25
25
|
const {
|
|
26
26
|
classes,
|
|
@@ -31,7 +31,7 @@ const useUtilityClasses = ownerState => {
|
|
|
31
31
|
};
|
|
32
32
|
return (0, _composeClasses.default)(slots, _imageListClasses.getImageListUtilityClass, classes);
|
|
33
33
|
};
|
|
34
|
-
const ImageListRoot = (0,
|
|
34
|
+
const ImageListRoot = (0, _zeroStyled.styled)('ul', {
|
|
35
35
|
name: 'MuiImageList',
|
|
36
36
|
slot: 'Root',
|
|
37
37
|
overridesResolver: (props, styles) => {
|
|
@@ -57,7 +57,7 @@ const ImageListRoot = (0, _styled.default)('ul', {
|
|
|
57
57
|
}]
|
|
58
58
|
});
|
|
59
59
|
const ImageList = /*#__PURE__*/React.forwardRef(function ImageList(inProps, ref) {
|
|
60
|
-
const props = (
|
|
60
|
+
const props = useThemeProps({
|
|
61
61
|
props: inProps,
|
|
62
62
|
name: 'MuiImageList'
|
|
63
63
|
});
|
|
@@ -15,14 +15,14 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
15
15
|
var React = _interopRequireWildcard(require("react"));
|
|
16
16
|
var _reactIs = require("react-is");
|
|
17
17
|
var _ImageListContext = _interopRequireDefault(require("../ImageList/ImageListContext"));
|
|
18
|
-
var
|
|
19
|
-
var _useThemeProps = _interopRequireDefault(require("../styles/useThemeProps"));
|
|
18
|
+
var _zeroStyled = require("../zero-styled");
|
|
20
19
|
var _isMuiElement = _interopRequireDefault(require("../utils/isMuiElement"));
|
|
21
20
|
var _imageListItemClasses = _interopRequireWildcard(require("./imageListItemClasses"));
|
|
22
21
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
23
22
|
const _excluded = ["children", "className", "cols", "component", "rows", "style"];
|
|
24
23
|
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
24
|
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; }
|
|
25
|
+
const useThemeProps = (0, _zeroStyled.createUseThemeProps)('MuiImageListItem');
|
|
26
26
|
const useUtilityClasses = ownerState => {
|
|
27
27
|
const {
|
|
28
28
|
classes,
|
|
@@ -34,7 +34,7 @@ const useUtilityClasses = ownerState => {
|
|
|
34
34
|
};
|
|
35
35
|
return (0, _composeClasses.default)(slots, _imageListItemClasses.getImageListItemUtilityClass, classes);
|
|
36
36
|
};
|
|
37
|
-
const ImageListItemRoot = (0,
|
|
37
|
+
const ImageListItemRoot = (0, _zeroStyled.styled)('li', {
|
|
38
38
|
name: 'MuiImageListItem',
|
|
39
39
|
slot: 'Root',
|
|
40
40
|
overridesResolver: (props, styles) => {
|
|
@@ -87,7 +87,7 @@ const ImageListItemRoot = (0, _styled.default)('li', {
|
|
|
87
87
|
}]
|
|
88
88
|
});
|
|
89
89
|
const ImageListItem = /*#__PURE__*/React.forwardRef(function ImageListItem(inProps, ref) {
|
|
90
|
-
const props = (
|
|
90
|
+
const props = useThemeProps({
|
|
91
91
|
props: inProps,
|
|
92
92
|
name: 'MuiImageListItem'
|
|
93
93
|
});
|
|
@@ -12,14 +12,14 @@ var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"
|
|
|
12
12
|
var _clsx = _interopRequireDefault(require("clsx"));
|
|
13
13
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
14
14
|
var React = _interopRequireWildcard(require("react"));
|
|
15
|
-
var
|
|
16
|
-
var _useThemeProps = _interopRequireDefault(require("../styles/useThemeProps"));
|
|
15
|
+
var _zeroStyled = require("../zero-styled");
|
|
17
16
|
var _capitalize = _interopRequireDefault(require("../utils/capitalize"));
|
|
18
17
|
var _imageListItemBarClasses = require("./imageListItemBarClasses");
|
|
19
18
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
20
19
|
const _excluded = ["actionIcon", "actionPosition", "className", "subtitle", "title", "position"];
|
|
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)('MuiImageListItemBar');
|
|
23
23
|
const useUtilityClasses = ownerState => {
|
|
24
24
|
const {
|
|
25
25
|
classes,
|
|
@@ -36,7 +36,7 @@ const useUtilityClasses = ownerState => {
|
|
|
36
36
|
};
|
|
37
37
|
return (0, _composeClasses.default)(slots, _imageListItemBarClasses.getImageListItemBarUtilityClass, classes);
|
|
38
38
|
};
|
|
39
|
-
const ImageListItemBarRoot = (0,
|
|
39
|
+
const ImageListItemBarRoot = (0, _zeroStyled.styled)('div', {
|
|
40
40
|
name: 'MuiImageListItemBar',
|
|
41
41
|
slot: 'Root',
|
|
42
42
|
overridesResolver: (props, styles) => {
|
|
@@ -82,7 +82,7 @@ const ImageListItemBarRoot = (0, _styled.default)('div', {
|
|
|
82
82
|
}]
|
|
83
83
|
};
|
|
84
84
|
});
|
|
85
|
-
const ImageListItemBarTitleWrap = (0,
|
|
85
|
+
const ImageListItemBarTitleWrap = (0, _zeroStyled.styled)('div', {
|
|
86
86
|
name: 'MuiImageListItemBar',
|
|
87
87
|
slot: 'TitleWrap',
|
|
88
88
|
overridesResolver: (props, styles) => {
|
|
@@ -124,7 +124,7 @@ const ImageListItemBarTitleWrap = (0, _styled.default)('div', {
|
|
|
124
124
|
}]
|
|
125
125
|
};
|
|
126
126
|
});
|
|
127
|
-
const ImageListItemBarTitle = (0,
|
|
127
|
+
const ImageListItemBarTitle = (0, _zeroStyled.styled)('div', {
|
|
128
128
|
name: 'MuiImageListItemBar',
|
|
129
129
|
slot: 'Title',
|
|
130
130
|
overridesResolver: (props, styles) => styles.title
|
|
@@ -139,7 +139,7 @@ const ImageListItemBarTitle = (0, _styled.default)('div', {
|
|
|
139
139
|
whiteSpace: 'nowrap'
|
|
140
140
|
};
|
|
141
141
|
});
|
|
142
|
-
const ImageListItemBarSubtitle = (0,
|
|
142
|
+
const ImageListItemBarSubtitle = (0, _zeroStyled.styled)('div', {
|
|
143
143
|
name: 'MuiImageListItemBar',
|
|
144
144
|
slot: 'Subtitle',
|
|
145
145
|
overridesResolver: (props, styles) => styles.subtitle
|
|
@@ -154,7 +154,7 @@ const ImageListItemBarSubtitle = (0, _styled.default)('div', {
|
|
|
154
154
|
whiteSpace: 'nowrap'
|
|
155
155
|
};
|
|
156
156
|
});
|
|
157
|
-
const ImageListItemBarActionIcon = (0,
|
|
157
|
+
const ImageListItemBarActionIcon = (0, _zeroStyled.styled)('div', {
|
|
158
158
|
name: 'MuiImageListItemBar',
|
|
159
159
|
slot: 'ActionIcon',
|
|
160
160
|
overridesResolver: (props, styles) => {
|
|
@@ -174,7 +174,7 @@ const ImageListItemBarActionIcon = (0, _styled.default)('div', {
|
|
|
174
174
|
}]
|
|
175
175
|
});
|
|
176
176
|
const ImageListItemBar = /*#__PURE__*/React.forwardRef(function ImageListItemBar(inProps, ref) {
|
|
177
|
-
const props = (
|
|
177
|
+
const props = useThemeProps({
|
|
178
178
|
props: inProps,
|
|
179
179
|
name: 'MuiImageListItemBar'
|
|
180
180
|
});
|
package/node/Input/Input.js
CHANGED
|
@@ -14,14 +14,15 @@ var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"
|
|
|
14
14
|
var _deepmerge = _interopRequireDefault(require("@mui/utils/deepmerge"));
|
|
15
15
|
var _refType = _interopRequireDefault(require("@mui/utils/refType"));
|
|
16
16
|
var _InputBase = _interopRequireDefault(require("../InputBase"));
|
|
17
|
-
var
|
|
18
|
-
var
|
|
17
|
+
var _rootShouldForwardProp = _interopRequireDefault(require("../styles/rootShouldForwardProp"));
|
|
18
|
+
var _zeroStyled = require("../zero-styled");
|
|
19
19
|
var _inputClasses = _interopRequireWildcard(require("./inputClasses"));
|
|
20
20
|
var _InputBase2 = require("../InputBase/InputBase");
|
|
21
21
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
22
22
|
const _excluded = ["disableUnderline", "components", "componentsProps", "fullWidth", "inputComponent", "multiline", "slotProps", "slots", "type"];
|
|
23
23
|
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
24
|
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; }
|
|
25
|
+
const useThemeProps = (0, _zeroStyled.createUseThemeProps)('MuiInput');
|
|
25
26
|
const useUtilityClasses = ownerState => {
|
|
26
27
|
const {
|
|
27
28
|
classes,
|
|
@@ -34,8 +35,8 @@ const useUtilityClasses = ownerState => {
|
|
|
34
35
|
const composedClasses = (0, _composeClasses.default)(slots, _inputClasses.getInputUtilityClass, classes);
|
|
35
36
|
return (0, _extends2.default)({}, classes, composedClasses);
|
|
36
37
|
};
|
|
37
|
-
const InputRoot = (0,
|
|
38
|
-
shouldForwardProp: prop => (0,
|
|
38
|
+
const InputRoot = (0, _zeroStyled.styled)(_InputBase2.InputBaseRoot, {
|
|
39
|
+
shouldForwardProp: prop => (0, _rootShouldForwardProp.default)(prop) || prop === 'classes',
|
|
39
40
|
name: 'MuiInput',
|
|
40
41
|
slot: 'Root',
|
|
41
42
|
overridesResolver: (props, styles) => {
|
|
@@ -45,84 +46,103 @@ const InputRoot = (0, _styled.default)(_InputBase2.InputBaseRoot, {
|
|
|
45
46
|
return [...(0, _InputBase2.rootOverridesResolver)(props, styles), !ownerState.disableUnderline && styles.underline];
|
|
46
47
|
}
|
|
47
48
|
})(({
|
|
48
|
-
theme
|
|
49
|
-
ownerState
|
|
49
|
+
theme
|
|
50
50
|
}) => {
|
|
51
51
|
const light = theme.palette.mode === 'light';
|
|
52
52
|
let bottomLineColor = light ? 'rgba(0, 0, 0, 0.42)' : 'rgba(255, 255, 255, 0.7)';
|
|
53
53
|
if (theme.vars) {
|
|
54
54
|
bottomLineColor = `rgba(${theme.vars.palette.common.onBackgroundChannel} / ${theme.vars.opacity.inputUnderline})`;
|
|
55
55
|
}
|
|
56
|
-
return
|
|
57
|
-
position: 'relative'
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
bottom: 0,
|
|
67
|
-
// Doing the other way around crash on IE11 "''" https://github.com/cssinjs/jss/issues/242
|
|
68
|
-
content: '""',
|
|
69
|
-
position: 'absolute',
|
|
70
|
-
right: 0,
|
|
71
|
-
transform: 'scaleX(0)',
|
|
72
|
-
transition: theme.transitions.create('transform', {
|
|
73
|
-
duration: theme.transitions.duration.shorter,
|
|
74
|
-
easing: theme.transitions.easing.easeOut
|
|
75
|
-
}),
|
|
76
|
-
pointerEvents: 'none' // Transparent to the hover style.
|
|
77
|
-
},
|
|
78
|
-
[`&.${_inputClasses.default.focused}:after`]: {
|
|
79
|
-
// translateX(0) is a workaround for Safari transform scale bug
|
|
80
|
-
// See https://github.com/mui/material-ui/issues/31766
|
|
81
|
-
transform: 'scaleX(1) translateX(0)'
|
|
82
|
-
},
|
|
83
|
-
[`&.${_inputClasses.default.error}`]: {
|
|
84
|
-
'&::before, &::after': {
|
|
85
|
-
borderBottomColor: (theme.vars || theme).palette.error.main
|
|
56
|
+
return {
|
|
57
|
+
position: 'relative',
|
|
58
|
+
variants: [{
|
|
59
|
+
props: ({
|
|
60
|
+
ownerState
|
|
61
|
+
}) => ownerState.formControl,
|
|
62
|
+
style: {
|
|
63
|
+
'label + &': {
|
|
64
|
+
marginTop: 16
|
|
65
|
+
}
|
|
86
66
|
}
|
|
87
|
-
},
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
67
|
+
}, {
|
|
68
|
+
props: ({
|
|
69
|
+
ownerState
|
|
70
|
+
}) => !ownerState.disableUnderline,
|
|
71
|
+
style: {
|
|
72
|
+
'&::after': {
|
|
73
|
+
left: 0,
|
|
74
|
+
bottom: 0,
|
|
75
|
+
// Doing the other way around crash on IE11 "''" https://github.com/cssinjs/jss/issues/242
|
|
76
|
+
content: '""',
|
|
77
|
+
position: 'absolute',
|
|
78
|
+
right: 0,
|
|
79
|
+
transform: 'scaleX(0)',
|
|
80
|
+
transition: theme.transitions.create('transform', {
|
|
81
|
+
duration: theme.transitions.duration.shorter,
|
|
82
|
+
easing: theme.transitions.easing.easeOut
|
|
83
|
+
}),
|
|
84
|
+
pointerEvents: 'none' // Transparent to the hover style.
|
|
85
|
+
},
|
|
86
|
+
[`&.${_inputClasses.default.focused}:after`]: {
|
|
87
|
+
// translateX(0) is a workaround for Safari transform scale bug
|
|
88
|
+
// See https://github.com/mui/material-ui/issues/31766
|
|
89
|
+
transform: 'scaleX(1) translateX(0)'
|
|
90
|
+
},
|
|
91
|
+
[`&.${_inputClasses.default.error}`]: {
|
|
92
|
+
'&::before, &::after': {
|
|
93
|
+
borderBottomColor: (theme.vars || theme).palette.error.main
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
'&::before': {
|
|
97
|
+
borderBottom: `1px solid ${bottomLineColor}`,
|
|
98
|
+
left: 0,
|
|
99
|
+
bottom: 0,
|
|
100
|
+
// Doing the other way around crash on IE11 "''" https://github.com/cssinjs/jss/issues/242
|
|
101
|
+
content: '"\\00a0"',
|
|
102
|
+
position: 'absolute',
|
|
103
|
+
right: 0,
|
|
104
|
+
transition: theme.transitions.create('border-bottom-color', {
|
|
105
|
+
duration: theme.transitions.duration.shorter
|
|
106
|
+
}),
|
|
107
|
+
pointerEvents: 'none' // Transparent to the hover style.
|
|
108
|
+
},
|
|
109
|
+
[`&:hover:not(.${_inputClasses.default.disabled}, .${_inputClasses.default.error}):before`]: {
|
|
110
|
+
borderBottom: `2px solid ${(theme.vars || theme).palette.text.primary}`,
|
|
111
|
+
// Reset on touch devices, it doesn't add specificity
|
|
112
|
+
'@media (hover: none)': {
|
|
113
|
+
borderBottom: `1px solid ${bottomLineColor}`
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
[`&.${_inputClasses.default.disabled}:before`]: {
|
|
117
|
+
borderBottomStyle: 'dotted'
|
|
118
|
+
}
|
|
106
119
|
}
|
|
107
|
-
},
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
120
|
+
}, ...Object.entries(theme.palette).filter(([, value]) => value.main).map(([color]) => ({
|
|
121
|
+
props: {
|
|
122
|
+
color,
|
|
123
|
+
disableUnderline: false
|
|
124
|
+
},
|
|
125
|
+
style: {
|
|
126
|
+
'&::after': {
|
|
127
|
+
borderBottom: `2px solid ${(theme.vars || theme).palette[color].main}`
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}))]
|
|
131
|
+
};
|
|
112
132
|
});
|
|
113
|
-
const InputInput = (0,
|
|
133
|
+
const InputInput = (0, _zeroStyled.styled)(_InputBase2.InputBaseInput, {
|
|
114
134
|
name: 'MuiInput',
|
|
115
135
|
slot: 'Input',
|
|
116
136
|
overridesResolver: _InputBase2.inputOverridesResolver
|
|
117
137
|
})({});
|
|
118
138
|
const Input = /*#__PURE__*/React.forwardRef(function Input(inProps, ref) {
|
|
119
139
|
var _ref, _slots$root, _ref2, _slots$input;
|
|
120
|
-
const props = (
|
|
140
|
+
const props = useThemeProps({
|
|
121
141
|
props: inProps,
|
|
122
142
|
name: 'MuiInput'
|
|
123
143
|
});
|
|
124
144
|
const {
|
|
125
|
-
disableUnderline,
|
|
145
|
+
disableUnderline = false,
|
|
126
146
|
components = {},
|
|
127
147
|
componentsProps: componentsPropsProp,
|
|
128
148
|
fullWidth = false,
|
|
@@ -222,6 +242,7 @@ process.env.NODE_ENV !== "production" ? Input.propTypes /* remove-proptypes */ =
|
|
|
222
242
|
disabled: _propTypes.default.bool,
|
|
223
243
|
/**
|
|
224
244
|
* If `true`, the `input` will not have an underline.
|
|
245
|
+
* @default false
|
|
225
246
|
*/
|
|
226
247
|
disableUnderline: _propTypes.default.bool,
|
|
227
248
|
/**
|
|
@@ -346,5 +367,7 @@ process.env.NODE_ENV !== "production" ? Input.propTypes /* remove-proptypes */ =
|
|
|
346
367
|
*/
|
|
347
368
|
value: _propTypes.default.any
|
|
348
369
|
} : void 0;
|
|
349
|
-
Input
|
|
370
|
+
if (Input) {
|
|
371
|
+
Input.muiName = 'Input';
|
|
372
|
+
}
|
|
350
373
|
var _default = exports.default = Input;
|
|
@@ -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"));
|
|
@@ -16,14 +16,14 @@ var _capitalize = _interopRequireDefault(require("../utils/capitalize"));
|
|
|
16
16
|
var _Typography = _interopRequireDefault(require("../Typography"));
|
|
17
17
|
var _FormControlContext = _interopRequireDefault(require("../FormControl/FormControlContext"));
|
|
18
18
|
var _useFormControl = _interopRequireDefault(require("../FormControl/useFormControl"));
|
|
19
|
-
var
|
|
19
|
+
var _zeroStyled = require("../zero-styled");
|
|
20
20
|
var _inputAdornmentClasses = _interopRequireWildcard(require("./inputAdornmentClasses"));
|
|
21
|
-
var _useThemeProps = _interopRequireDefault(require("../styles/useThemeProps"));
|
|
22
21
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
23
22
|
var _span;
|
|
24
23
|
const _excluded = ["children", "className", "component", "disablePointerEvents", "disableTypography", "position", "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)('MuiInputAdornment');
|
|
27
27
|
const overridesResolver = (props, styles) => {
|
|
28
28
|
const {
|
|
29
29
|
ownerState
|
|
@@ -44,38 +44,54 @@ const useUtilityClasses = ownerState => {
|
|
|
44
44
|
};
|
|
45
45
|
return (0, _composeClasses.default)(slots, _inputAdornmentClasses.getInputAdornmentUtilityClass, classes);
|
|
46
46
|
};
|
|
47
|
-
const InputAdornmentRoot = (0,
|
|
47
|
+
const InputAdornmentRoot = (0, _zeroStyled.styled)('div', {
|
|
48
48
|
name: 'MuiInputAdornment',
|
|
49
49
|
slot: 'Root',
|
|
50
50
|
overridesResolver
|
|
51
51
|
})(({
|
|
52
|
-
theme
|
|
53
|
-
|
|
54
|
-
}) => (0, _extends2.default)({
|
|
52
|
+
theme
|
|
53
|
+
}) => ({
|
|
55
54
|
display: 'flex',
|
|
56
55
|
height: '0.01em',
|
|
57
56
|
// Fix IE11 flexbox alignment. To remove at some point.
|
|
58
57
|
maxHeight: '2em',
|
|
59
58
|
alignItems: 'center',
|
|
60
59
|
whiteSpace: 'nowrap',
|
|
61
|
-
color: (theme.vars || theme).palette.action.active
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
60
|
+
color: (theme.vars || theme).palette.action.active,
|
|
61
|
+
variants: [{
|
|
62
|
+
props: {
|
|
63
|
+
variant: 'filled'
|
|
64
|
+
},
|
|
65
|
+
style: {
|
|
66
|
+
[`&.${_inputAdornmentClasses.default.positionStart}&:not(.${_inputAdornmentClasses.default.hiddenLabel})`]: {
|
|
67
|
+
marginTop: 16
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}, {
|
|
71
|
+
props: {
|
|
72
|
+
position: 'start'
|
|
73
|
+
},
|
|
74
|
+
style: {
|
|
75
|
+
marginRight: 8
|
|
76
|
+
}
|
|
77
|
+
}, {
|
|
78
|
+
props: {
|
|
79
|
+
position: 'end'
|
|
80
|
+
},
|
|
81
|
+
style: {
|
|
82
|
+
marginLeft: 8
|
|
83
|
+
}
|
|
84
|
+
}, {
|
|
85
|
+
props: {
|
|
86
|
+
disablePointerEvents: true
|
|
87
|
+
},
|
|
88
|
+
style: {
|
|
89
|
+
pointerEvents: 'none'
|
|
90
|
+
}
|
|
91
|
+
}]
|
|
76
92
|
}));
|
|
77
93
|
const InputAdornment = /*#__PURE__*/React.forwardRef(function InputAdornment(inProps, ref) {
|
|
78
|
-
const props = (
|
|
94
|
+
const props = useThemeProps({
|
|
79
95
|
props: inProps,
|
|
80
96
|
name: 'MuiInputAdornment'
|
|
81
97
|
});
|
|
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.rootOverridesResolver = exports.inputOverridesResolver = exports.default = exports.InputBaseRoot = exports.
|
|
8
|
+
exports.rootOverridesResolver = exports.inputOverridesResolver = exports.default = exports.InputBaseRoot = exports.InputBaseInput = void 0;
|
|
9
9
|
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
10
10
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
11
|
var _formatMuiErrorMessage2 = _interopRequireDefault(require("@mui/utils/formatMuiErrorMessage"));
|
|
@@ -20,8 +20,7 @@ var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"
|
|
|
20
20
|
var _formControlState = _interopRequireDefault(require("../FormControl/formControlState"));
|
|
21
21
|
var _FormControlContext = _interopRequireDefault(require("../FormControl/FormControlContext"));
|
|
22
22
|
var _useFormControl = _interopRequireDefault(require("../FormControl/useFormControl"));
|
|
23
|
-
var
|
|
24
|
-
var _useThemeProps = _interopRequireDefault(require("../styles/useThemeProps"));
|
|
23
|
+
var _zeroStyled = require("../zero-styled");
|
|
25
24
|
var _capitalize = _interopRequireDefault(require("../utils/capitalize"));
|
|
26
25
|
var _useForkRef = _interopRequireDefault(require("../utils/useForkRef"));
|
|
27
26
|
var _useEnhancedEffect = _interopRequireDefault(require("../utils/useEnhancedEffect"));
|
|
@@ -32,6 +31,7 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
32
31
|
const _excluded = ["aria-describedby", "autoComplete", "autoFocus", "className", "color", "components", "componentsProps", "defaultValue", "disabled", "disableInjectingGlobalStyles", "endAdornment", "error", "fullWidth", "id", "inputComponent", "inputProps", "inputRef", "margin", "maxRows", "minRows", "multiline", "name", "onBlur", "onChange", "onClick", "onFocus", "onKeyDown", "onKeyUp", "placeholder", "readOnly", "renderSuffix", "rows", "size", "slotProps", "slots", "startAdornment", "type", "value"];
|
|
33
32
|
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); }
|
|
34
33
|
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; }
|
|
34
|
+
const useThemeProps = (0, _zeroStyled.createUseThemeProps)('MuiInputBase');
|
|
35
35
|
const rootOverridesResolver = (props, styles) => {
|
|
36
36
|
const {
|
|
37
37
|
ownerState
|
|
@@ -69,13 +69,12 @@ const useUtilityClasses = ownerState => {
|
|
|
69
69
|
};
|
|
70
70
|
return (0, _composeClasses.default)(slots, _inputBaseClasses.getInputBaseUtilityClass, classes);
|
|
71
71
|
};
|
|
72
|
-
const InputBaseRoot = exports.InputBaseRoot = (0,
|
|
72
|
+
const InputBaseRoot = exports.InputBaseRoot = (0, _zeroStyled.styled)('div', {
|
|
73
73
|
name: 'MuiInputBase',
|
|
74
74
|
slot: 'Root',
|
|
75
75
|
overridesResolver: rootOverridesResolver
|
|
76
76
|
})(({
|
|
77
|
-
theme
|
|
78
|
-
ownerState
|
|
77
|
+
theme
|
|
79
78
|
}) => (0, _extends2.default)({}, theme.typography.body1, {
|
|
80
79
|
color: (theme.vars || theme).palette.text.primary,
|
|
81
80
|
lineHeight: '1.4375em',
|
|
@@ -89,21 +88,37 @@ const InputBaseRoot = exports.InputBaseRoot = (0, _styled.default)('div', {
|
|
|
89
88
|
[`&.${_inputBaseClasses.default.disabled}`]: {
|
|
90
89
|
color: (theme.vars || theme).palette.text.disabled,
|
|
91
90
|
cursor: 'default'
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
91
|
+
},
|
|
92
|
+
variants: [{
|
|
93
|
+
props: ({
|
|
94
|
+
ownerState
|
|
95
|
+
}) => ownerState.multiline,
|
|
96
|
+
style: {
|
|
97
|
+
padding: '4px 0 5px'
|
|
98
|
+
}
|
|
99
|
+
}, {
|
|
100
|
+
props: ({
|
|
101
|
+
ownerState,
|
|
102
|
+
size
|
|
103
|
+
}) => ownerState.multiline && size === 'small',
|
|
104
|
+
style: {
|
|
105
|
+
paddingTop: 1
|
|
106
|
+
}
|
|
107
|
+
}, {
|
|
108
|
+
props: ({
|
|
109
|
+
ownerState
|
|
110
|
+
}) => ownerState.fullWidth,
|
|
111
|
+
style: {
|
|
112
|
+
width: '100%'
|
|
113
|
+
}
|
|
114
|
+
}]
|
|
99
115
|
}));
|
|
100
|
-
const
|
|
116
|
+
const InputBaseInput = exports.InputBaseInput = (0, _zeroStyled.styled)('input', {
|
|
101
117
|
name: 'MuiInputBase',
|
|
102
118
|
slot: 'Input',
|
|
103
119
|
overridesResolver: inputOverridesResolver
|
|
104
120
|
})(({
|
|
105
|
-
theme
|
|
106
|
-
ownerState
|
|
121
|
+
theme
|
|
107
122
|
}) => {
|
|
108
123
|
const light = theme.palette.mode === 'light';
|
|
109
124
|
const placeholder = (0, _extends2.default)({
|
|
@@ -125,7 +140,7 @@ const InputBaseComponent = exports.InputBaseComponent = (0, _styled.default)('in
|
|
|
125
140
|
} : {
|
|
126
141
|
opacity: light ? 0.42 : 0.5
|
|
127
142
|
};
|
|
128
|
-
return
|
|
143
|
+
return {
|
|
129
144
|
font: 'inherit',
|
|
130
145
|
letterSpacing: 'inherit',
|
|
131
146
|
color: 'currentColor',
|
|
@@ -187,18 +202,33 @@ const InputBaseComponent = exports.InputBaseComponent = (0, _styled.default)('in
|
|
|
187
202
|
'&:-webkit-autofill': {
|
|
188
203
|
animationDuration: '5000s',
|
|
189
204
|
animationName: 'mui-auto-fill'
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
205
|
+
},
|
|
206
|
+
variants: [{
|
|
207
|
+
props: {
|
|
208
|
+
size: 'small'
|
|
209
|
+
},
|
|
210
|
+
style: {
|
|
211
|
+
paddingTop: 1
|
|
212
|
+
}
|
|
213
|
+
}, {
|
|
214
|
+
props: ({
|
|
215
|
+
ownerState
|
|
216
|
+
}) => ownerState.multiline,
|
|
217
|
+
style: {
|
|
218
|
+
height: 'auto',
|
|
219
|
+
resize: 'none',
|
|
220
|
+
padding: 0,
|
|
221
|
+
paddingTop: 0
|
|
222
|
+
}
|
|
223
|
+
}, {
|
|
224
|
+
props: {
|
|
225
|
+
type: 'search'
|
|
226
|
+
},
|
|
227
|
+
style: {
|
|
228
|
+
MozAppearance: 'textfield' // Improve type search style.
|
|
229
|
+
}
|
|
230
|
+
}]
|
|
231
|
+
};
|
|
202
232
|
});
|
|
203
233
|
const inputGlobalStyles = /*#__PURE__*/(0, _jsxRuntime.jsx)(_GlobalStyles.default, {
|
|
204
234
|
styles: {
|
|
@@ -222,7 +252,7 @@ const inputGlobalStyles = /*#__PURE__*/(0, _jsxRuntime.jsx)(_GlobalStyles.defaul
|
|
|
222
252
|
*/
|
|
223
253
|
const InputBase = /*#__PURE__*/React.forwardRef(function InputBase(inProps, ref) {
|
|
224
254
|
var _slotProps$input;
|
|
225
|
-
const props = (
|
|
255
|
+
const props = useThemeProps({
|
|
226
256
|
props: inProps,
|
|
227
257
|
name: 'MuiInputBase'
|
|
228
258
|
});
|
|
@@ -439,7 +469,7 @@ const InputBase = /*#__PURE__*/React.forwardRef(function InputBase(inProps, ref)
|
|
|
439
469
|
const classes = useUtilityClasses(ownerState);
|
|
440
470
|
const Root = slots.root || components.Root || InputBaseRoot;
|
|
441
471
|
const rootProps = slotProps.root || componentsProps.root || {};
|
|
442
|
-
const Input = slots.input || components.Input ||
|
|
472
|
+
const Input = slots.input || components.Input || InputBaseInput;
|
|
443
473
|
inputProps = (0, _extends2.default)({}, inputProps, (_slotProps$input = slotProps.input) != null ? _slotProps$input : componentsProps.input);
|
|
444
474
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
|
|
445
475
|
children: [!disableInjectingGlobalStyles && inputGlobalStyles, /*#__PURE__*/(0, _jsxRuntime.jsxs)(Root, (0, _extends2.default)({}, rootProps, !(0, _utils.isHostComponent)(Root) && {
|