@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
|
@@ -14,13 +14,13 @@ var _clsx = _interopRequireDefault(require("clsx"));
|
|
|
14
14
|
var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
|
|
15
15
|
var _colorManipulator = require("@mui/system/colorManipulator");
|
|
16
16
|
var _Tablelvl2Context = _interopRequireDefault(require("../Table/Tablelvl2Context"));
|
|
17
|
-
var
|
|
18
|
-
var _styled = _interopRequireDefault(require("../styles/styled"));
|
|
17
|
+
var _zeroStyled = require("../zero-styled");
|
|
19
18
|
var _tableRowClasses = _interopRequireWildcard(require("./tableRowClasses"));
|
|
20
19
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
21
20
|
const _excluded = ["className", "component", "hover", "selected"];
|
|
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)('MuiTableRow');
|
|
24
24
|
const useUtilityClasses = ownerState => {
|
|
25
25
|
const {
|
|
26
26
|
classes,
|
|
@@ -34,7 +34,7 @@ const useUtilityClasses = ownerState => {
|
|
|
34
34
|
};
|
|
35
35
|
return (0, _composeClasses.default)(slots, _tableRowClasses.getTableRowUtilityClass, classes);
|
|
36
36
|
};
|
|
37
|
-
const TableRowRoot = (0,
|
|
37
|
+
const TableRowRoot = (0, _zeroStyled.styled)('tr', {
|
|
38
38
|
name: 'MuiTableRow',
|
|
39
39
|
slot: 'Root',
|
|
40
40
|
overridesResolver: (props, styles) => {
|
|
@@ -67,7 +67,7 @@ const defaultComponent = 'tr';
|
|
|
67
67
|
* based on the material table element parent (head, body, etc).
|
|
68
68
|
*/
|
|
69
69
|
const TableRow = /*#__PURE__*/React.forwardRef(function TableRow(inProps, ref) {
|
|
70
|
-
const props = (
|
|
70
|
+
const props = useThemeProps({
|
|
71
71
|
props: inProps,
|
|
72
72
|
name: 'MuiTableRow'
|
|
73
73
|
});
|
|
@@ -14,14 +14,14 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
14
14
|
var React = _interopRequireWildcard(require("react"));
|
|
15
15
|
var _ButtonBase = _interopRequireDefault(require("../ButtonBase"));
|
|
16
16
|
var _ArrowDownward = _interopRequireDefault(require("../internal/svg-icons/ArrowDownward"));
|
|
17
|
-
var
|
|
18
|
-
var _useThemeProps = _interopRequireDefault(require("../styles/useThemeProps"));
|
|
17
|
+
var _zeroStyled = require("../zero-styled");
|
|
19
18
|
var _capitalize = _interopRequireDefault(require("../utils/capitalize"));
|
|
20
19
|
var _tableSortLabelClasses = _interopRequireWildcard(require("./tableSortLabelClasses"));
|
|
21
20
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
22
21
|
const _excluded = ["active", "children", "className", "direction", "hideSortIcon", "IconComponent"];
|
|
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)('MuiTableSortLabel');
|
|
25
25
|
const useUtilityClasses = ownerState => {
|
|
26
26
|
const {
|
|
27
27
|
classes,
|
|
@@ -34,7 +34,7 @@ const useUtilityClasses = ownerState => {
|
|
|
34
34
|
};
|
|
35
35
|
return (0, _composeClasses.default)(slots, _tableSortLabelClasses.getTableSortLabelUtilityClass, classes);
|
|
36
36
|
};
|
|
37
|
-
const TableSortLabelRoot = (0,
|
|
37
|
+
const TableSortLabelRoot = (0, _zeroStyled.styled)(_ButtonBase.default, {
|
|
38
38
|
name: 'MuiTableSortLabel',
|
|
39
39
|
slot: 'Root',
|
|
40
40
|
overridesResolver: (props, styles) => {
|
|
@@ -68,7 +68,7 @@ const TableSortLabelRoot = (0, _styled.default)(_ButtonBase.default, {
|
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
}));
|
|
71
|
-
const TableSortLabelIcon = (0,
|
|
71
|
+
const TableSortLabelIcon = (0, _zeroStyled.styled)('span', {
|
|
72
72
|
name: 'MuiTableSortLabel',
|
|
73
73
|
slot: 'Icon',
|
|
74
74
|
overridesResolver: (props, styles) => {
|
|
@@ -109,7 +109,7 @@ const TableSortLabelIcon = (0, _styled.default)('span', {
|
|
|
109
109
|
* A button based label for placing inside `TableCell` for column sorting.
|
|
110
110
|
*/
|
|
111
111
|
const TableSortLabel = /*#__PURE__*/React.forwardRef(function TableSortLabel(inProps, ref) {
|
|
112
|
-
const props = (
|
|
112
|
+
const props = useThemeProps({
|
|
113
113
|
props: inProps,
|
|
114
114
|
name: 'MuiTableSortLabel'
|
|
115
115
|
});
|
package/node/Tabs/Tabs.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 _reactIs = require("react-is");
|
|
13
13
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
@@ -16,8 +16,7 @@ var _refType = _interopRequireDefault(require("@mui/utils/refType"));
|
|
|
16
16
|
var _utils = require("@mui/base/utils");
|
|
17
17
|
var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
|
|
18
18
|
var _RtlProvider = require("@mui/system/RtlProvider");
|
|
19
|
-
var
|
|
20
|
-
var _useThemeProps = _interopRequireDefault(require("../styles/useThemeProps"));
|
|
19
|
+
var _zeroStyled = require("../zero-styled");
|
|
21
20
|
var _useTheme = _interopRequireDefault(require("../styles/useTheme"));
|
|
22
21
|
var _debounce = _interopRequireDefault(require("../utils/debounce"));
|
|
23
22
|
var _scrollLeft = require("../utils/scrollLeft");
|
|
@@ -32,6 +31,7 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
32
31
|
const _excluded = ["aria-label", "aria-labelledby", "action", "centered", "children", "className", "component", "allowScrollButtonsMobile", "indicatorColor", "onChange", "orientation", "ScrollButtonComponent", "scrollButtons", "selectionFollowsFocus", "slots", "slotProps", "TabIndicatorProps", "TabScrollButtonProps", "textColor", "value", "variant", "visibleScrollbar"];
|
|
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)('MuiTabs');
|
|
35
35
|
const nextItem = (list, item) => {
|
|
36
36
|
if (list === item) {
|
|
37
37
|
return list.firstChild;
|
|
@@ -95,7 +95,7 @@ const useUtilityClasses = ownerState => {
|
|
|
95
95
|
};
|
|
96
96
|
return (0, _composeClasses.default)(slots, _tabsClasses.getTabsUtilityClass, classes);
|
|
97
97
|
};
|
|
98
|
-
const TabsRoot = (0,
|
|
98
|
+
const TabsRoot = (0, _zeroStyled.styled)('div', {
|
|
99
99
|
name: 'MuiTabs',
|
|
100
100
|
slot: 'Root',
|
|
101
101
|
overridesResolver: (props, styles) => {
|
|
@@ -109,24 +109,34 @@ const TabsRoot = (0, _styled.default)('div', {
|
|
|
109
109
|
}, styles.root, ownerState.vertical && styles.vertical];
|
|
110
110
|
}
|
|
111
111
|
})(({
|
|
112
|
-
ownerState,
|
|
113
112
|
theme
|
|
114
|
-
}) => (
|
|
113
|
+
}) => ({
|
|
115
114
|
overflow: 'hidden',
|
|
116
115
|
minHeight: 48,
|
|
117
116
|
// Add iOS momentum scrolling for iOS < 13.0
|
|
118
117
|
WebkitOverflowScrolling: 'touch',
|
|
119
|
-
display: 'flex'
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
118
|
+
display: 'flex',
|
|
119
|
+
variants: [{
|
|
120
|
+
props: ({
|
|
121
|
+
ownerState
|
|
122
|
+
}) => ownerState.vertical,
|
|
123
|
+
style: {
|
|
124
|
+
flexDirection: 'column'
|
|
126
125
|
}
|
|
127
|
-
}
|
|
126
|
+
}, {
|
|
127
|
+
props: ({
|
|
128
|
+
ownerState
|
|
129
|
+
}) => ownerState.scrollButtonsHideMobile,
|
|
130
|
+
style: {
|
|
131
|
+
[`& .${_tabsClasses.default.scrollButtons}`]: {
|
|
132
|
+
[theme.breakpoints.down('sm')]: {
|
|
133
|
+
display: 'none'
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}]
|
|
128
138
|
}));
|
|
129
|
-
const TabsScroller = (0,
|
|
139
|
+
const TabsScroller = (0, _zeroStyled.styled)('div', {
|
|
130
140
|
name: 'MuiTabs',
|
|
131
141
|
slot: 'Scroller',
|
|
132
142
|
overridesResolver: (props, styles) => {
|
|
@@ -135,31 +145,50 @@ const TabsScroller = (0, _styled.default)('div', {
|
|
|
135
145
|
} = props;
|
|
136
146
|
return [styles.scroller, ownerState.fixed && styles.fixed, ownerState.hideScrollbar && styles.hideScrollbar, ownerState.scrollableX && styles.scrollableX, ownerState.scrollableY && styles.scrollableY];
|
|
137
147
|
}
|
|
138
|
-
})(
|
|
139
|
-
ownerState
|
|
140
|
-
}) => (0, _extends2.default)({
|
|
148
|
+
})({
|
|
141
149
|
position: 'relative',
|
|
142
150
|
display: 'inline-block',
|
|
143
151
|
flex: '1 1 auto',
|
|
144
|
-
whiteSpace: 'nowrap'
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
152
|
+
whiteSpace: 'nowrap',
|
|
153
|
+
variants: [{
|
|
154
|
+
props: ({
|
|
155
|
+
ownerState
|
|
156
|
+
}) => ownerState.fixed,
|
|
157
|
+
style: {
|
|
158
|
+
overflowX: 'hidden',
|
|
159
|
+
width: '100%'
|
|
160
|
+
}
|
|
161
|
+
}, {
|
|
162
|
+
props: ({
|
|
163
|
+
ownerState
|
|
164
|
+
}) => ownerState.hideScrollbar,
|
|
165
|
+
style: {
|
|
166
|
+
// Hide dimensionless scrollbar on macOS
|
|
167
|
+
scrollbarWidth: 'none',
|
|
168
|
+
// Firefox
|
|
169
|
+
'&::-webkit-scrollbar': {
|
|
170
|
+
display: 'none' // Safari + Chrome
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
}, {
|
|
174
|
+
props: ({
|
|
175
|
+
ownerState
|
|
176
|
+
}) => ownerState.scrollableX,
|
|
177
|
+
style: {
|
|
178
|
+
overflowX: 'auto',
|
|
179
|
+
overflowY: 'hidden'
|
|
180
|
+
}
|
|
181
|
+
}, {
|
|
182
|
+
props: ({
|
|
183
|
+
ownerState
|
|
184
|
+
}) => ownerState.scrollableY,
|
|
185
|
+
style: {
|
|
186
|
+
overflowY: 'auto',
|
|
187
|
+
overflowX: 'hidden'
|
|
188
|
+
}
|
|
189
|
+
}]
|
|
190
|
+
});
|
|
191
|
+
const FlexContainer = (0, _zeroStyled.styled)('div', {
|
|
163
192
|
name: 'MuiTabs',
|
|
164
193
|
slot: 'FlexContainer',
|
|
165
194
|
overridesResolver: (props, styles) => {
|
|
@@ -168,38 +197,62 @@ const FlexContainer = (0, _styled.default)('div', {
|
|
|
168
197
|
} = props;
|
|
169
198
|
return [styles.flexContainer, ownerState.vertical && styles.flexContainerVertical, ownerState.centered && styles.centered];
|
|
170
199
|
}
|
|
171
|
-
})(
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
}
|
|
180
|
-
|
|
200
|
+
})({
|
|
201
|
+
display: 'flex',
|
|
202
|
+
variants: [{
|
|
203
|
+
props: ({
|
|
204
|
+
ownerState
|
|
205
|
+
}) => ownerState.vertical,
|
|
206
|
+
style: {
|
|
207
|
+
flexDirection: 'column'
|
|
208
|
+
}
|
|
209
|
+
}, {
|
|
210
|
+
props: ({
|
|
211
|
+
ownerState
|
|
212
|
+
}) => ownerState.centered,
|
|
213
|
+
style: {
|
|
214
|
+
justifyContent: 'center'
|
|
215
|
+
}
|
|
216
|
+
}]
|
|
217
|
+
});
|
|
218
|
+
const TabsIndicator = (0, _zeroStyled.styled)('span', {
|
|
181
219
|
name: 'MuiTabs',
|
|
182
220
|
slot: 'Indicator',
|
|
183
221
|
overridesResolver: (props, styles) => styles.indicator
|
|
184
222
|
})(({
|
|
185
|
-
ownerState,
|
|
186
223
|
theme
|
|
187
|
-
}) => (
|
|
224
|
+
}) => ({
|
|
188
225
|
position: 'absolute',
|
|
189
226
|
height: 2,
|
|
190
227
|
bottom: 0,
|
|
191
228
|
width: '100%',
|
|
192
|
-
transition: theme.transitions.create()
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
229
|
+
transition: theme.transitions.create(),
|
|
230
|
+
variants: [{
|
|
231
|
+
props: {
|
|
232
|
+
indicatorColor: 'primary'
|
|
233
|
+
},
|
|
234
|
+
style: {
|
|
235
|
+
backgroundColor: (theme.vars || theme).palette.primary.main
|
|
236
|
+
}
|
|
237
|
+
}, {
|
|
238
|
+
props: {
|
|
239
|
+
indicatorColor: 'secondary'
|
|
240
|
+
},
|
|
241
|
+
style: {
|
|
242
|
+
backgroundColor: (theme.vars || theme).palette.secondary.main
|
|
243
|
+
}
|
|
244
|
+
}, {
|
|
245
|
+
props: ({
|
|
246
|
+
ownerState
|
|
247
|
+
}) => ownerState.vertical,
|
|
248
|
+
style: {
|
|
249
|
+
height: '100%',
|
|
250
|
+
width: 2,
|
|
251
|
+
right: 0
|
|
252
|
+
}
|
|
253
|
+
}]
|
|
201
254
|
}));
|
|
202
|
-
const TabsScrollbarSize = (0,
|
|
255
|
+
const TabsScrollbarSize = (0, _zeroStyled.styled)(_ScrollbarSize.default)({
|
|
203
256
|
overflowX: 'auto',
|
|
204
257
|
overflowY: 'hidden',
|
|
205
258
|
// Hide dimensionless scrollbar on macOS
|
|
@@ -212,7 +265,7 @@ const TabsScrollbarSize = (0, _styled.default)(_ScrollbarSize.default)({
|
|
|
212
265
|
const defaultIndicatorStyle = {};
|
|
213
266
|
let warnedOnceTabPresent = false;
|
|
214
267
|
const Tabs = /*#__PURE__*/React.forwardRef(function Tabs(inProps, ref) {
|
|
215
|
-
const props = (
|
|
268
|
+
const props = useThemeProps({
|
|
216
269
|
props: inProps,
|
|
217
270
|
name: 'MuiTabs'
|
|
218
271
|
});
|
|
@@ -14,8 +14,7 @@ var _clsx = _interopRequireDefault(require("clsx"));
|
|
|
14
14
|
var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
|
|
15
15
|
var _useId = _interopRequireDefault(require("@mui/utils/useId"));
|
|
16
16
|
var _refType = _interopRequireDefault(require("@mui/utils/refType"));
|
|
17
|
-
var
|
|
18
|
-
var _useThemeProps = _interopRequireDefault(require("../styles/useThemeProps"));
|
|
17
|
+
var _zeroStyled = require("../zero-styled");
|
|
19
18
|
var _Input = _interopRequireDefault(require("../Input"));
|
|
20
19
|
var _FilledInput = _interopRequireDefault(require("../FilledInput"));
|
|
21
20
|
var _OutlinedInput = _interopRequireDefault(require("../OutlinedInput"));
|
|
@@ -28,6 +27,7 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
28
27
|
const _excluded = ["autoComplete", "autoFocus", "children", "className", "color", "defaultValue", "disabled", "error", "FormHelperTextProps", "fullWidth", "helperText", "id", "InputLabelProps", "inputProps", "InputProps", "inputRef", "label", "maxRows", "minRows", "multiline", "name", "onBlur", "onChange", "onFocus", "placeholder", "required", "rows", "select", "SelectProps", "type", "value", "variant"];
|
|
29
28
|
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); }
|
|
30
29
|
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; }
|
|
30
|
+
const useThemeProps = (0, _zeroStyled.createUseThemeProps)('MuiTextField');
|
|
31
31
|
const variantComponent = {
|
|
32
32
|
standard: _Input.default,
|
|
33
33
|
filled: _FilledInput.default,
|
|
@@ -42,7 +42,7 @@ const useUtilityClasses = ownerState => {
|
|
|
42
42
|
};
|
|
43
43
|
return (0, _composeClasses.default)(slots, _textFieldClasses.getTextFieldUtilityClass, classes);
|
|
44
44
|
};
|
|
45
|
-
const TextFieldRoot = (0,
|
|
45
|
+
const TextFieldRoot = (0, _zeroStyled.styled)(_FormControl.default, {
|
|
46
46
|
name: 'MuiTextField',
|
|
47
47
|
slot: 'Root',
|
|
48
48
|
overridesResolver: (props, styles) => styles.root
|
|
@@ -81,7 +81,7 @@ const TextFieldRoot = (0, _styled.default)(_FormControl.default, {
|
|
|
81
81
|
* - using the underlying components directly as shown in the demos
|
|
82
82
|
*/
|
|
83
83
|
const TextField = /*#__PURE__*/React.forwardRef(function TextField(inProps, ref) {
|
|
84
|
-
const props = (
|
|
84
|
+
const props = useThemeProps({
|
|
85
85
|
props: inProps,
|
|
86
86
|
name: 'MuiTextField'
|
|
87
87
|
});
|
package/node/Toolbar/Toolbar.js
CHANGED
|
@@ -12,13 +12,13 @@ var React = _interopRequireWildcard(require("react"));
|
|
|
12
12
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
13
|
var _clsx = _interopRequireDefault(require("clsx"));
|
|
14
14
|
var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
|
|
15
|
-
var
|
|
16
|
-
var _styled = _interopRequireDefault(require("../styles/styled"));
|
|
15
|
+
var _zeroStyled = require("../zero-styled");
|
|
17
16
|
var _toolbarClasses = require("./toolbarClasses");
|
|
18
17
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
19
18
|
const _excluded = ["className", "component", "disableGutters", "variant"];
|
|
20
19
|
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); }
|
|
21
20
|
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 useThemeProps = (0, _zeroStyled.createUseThemeProps)('MuiToolbar');
|
|
22
22
|
const useUtilityClasses = ownerState => {
|
|
23
23
|
const {
|
|
24
24
|
classes,
|
|
@@ -30,7 +30,7 @@ const useUtilityClasses = ownerState => {
|
|
|
30
30
|
};
|
|
31
31
|
return (0, _composeClasses.default)(slots, _toolbarClasses.getToolbarUtilityClass, classes);
|
|
32
32
|
};
|
|
33
|
-
const ToolbarRoot = (0,
|
|
33
|
+
const ToolbarRoot = (0, _zeroStyled.styled)('div', {
|
|
34
34
|
name: 'MuiToolbar',
|
|
35
35
|
slot: 'Root',
|
|
36
36
|
overridesResolver: (props, styles) => {
|
|
@@ -64,11 +64,7 @@ const ToolbarRoot = (0, _styled.default)('div', {
|
|
|
64
64
|
style: {
|
|
65
65
|
minHeight: 48
|
|
66
66
|
}
|
|
67
|
-
}
|
|
68
|
-
}), ({
|
|
69
|
-
theme
|
|
70
|
-
}) => ({
|
|
71
|
-
variants: [{
|
|
67
|
+
}, {
|
|
72
68
|
props: {
|
|
73
69
|
variant: 'regular'
|
|
74
70
|
},
|
|
@@ -76,7 +72,7 @@ const ToolbarRoot = (0, _styled.default)('div', {
|
|
|
76
72
|
}]
|
|
77
73
|
}));
|
|
78
74
|
const Toolbar = /*#__PURE__*/React.forwardRef(function Toolbar(inProps, ref) {
|
|
79
|
-
const props = (
|
|
75
|
+
const props = useThemeProps({
|
|
80
76
|
props: inProps,
|
|
81
77
|
name: 'MuiToolbar'
|
|
82
78
|
});
|