@mui/material 9.0.0-alpha.4 → 9.0.0-beta.0
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/ButtonGroup/ButtonGroup.js +1 -9
- package/ButtonGroup/ButtonGroup.mjs +1 -9
- package/ButtonGroup/buttonGroupClasses.d.mts +0 -68
- package/ButtonGroup/buttonGroupClasses.d.ts +0 -68
- package/ButtonGroup/buttonGroupClasses.js +1 -1
- package/ButtonGroup/buttonGroupClasses.mjs +1 -1
- package/CHANGELOG.md +71 -4
- package/CardHeader/CardHeader.d.mts +13 -21
- package/CardHeader/CardHeader.d.ts +13 -21
- package/CardHeader/CardHeader.js +3 -21
- package/CardHeader/CardHeader.mjs +3 -21
- package/Checkbox/Checkbox.js +1 -7
- package/Checkbox/Checkbox.mjs +1 -7
- package/Chip/Chip.js +48 -54
- package/Chip/Chip.mjs +48 -54
- package/Chip/chipClasses.d.mts +0 -104
- package/Chip/chipClasses.d.ts +0 -104
- package/Chip/chipClasses.js +1 -1
- package/Chip/chipClasses.mjs +1 -1
- package/Dialog/Dialog.d.mts +0 -21
- package/Dialog/Dialog.d.ts +0 -21
- package/Dialog/Dialog.js +36 -73
- package/Dialog/Dialog.mjs +36 -73
- package/Dialog/dialogClasses.d.mts +0 -8
- package/Dialog/dialogClasses.d.ts +0 -8
- package/Dialog/dialogClasses.js +1 -1
- package/Dialog/dialogClasses.mjs +1 -1
- package/Divider/Divider.js +2 -2
- package/Divider/Divider.mjs +2 -2
- package/Divider/dividerClasses.d.mts +0 -4
- package/Divider/dividerClasses.d.ts +0 -4
- package/Divider/dividerClasses.js +1 -1
- package/Divider/dividerClasses.mjs +1 -1
- package/Drawer/Drawer.d.mts +0 -12
- package/Drawer/Drawer.d.ts +0 -12
- package/Drawer/Drawer.js +6 -40
- package/Drawer/Drawer.mjs +6 -40
- package/Drawer/drawerClasses.d.mts +0 -32
- package/Drawer/drawerClasses.d.ts +0 -32
- package/Drawer/drawerClasses.js +1 -1
- package/Drawer/drawerClasses.mjs +1 -1
- package/FilledInput/FilledInput.js +3 -32
- package/FilledInput/FilledInput.mjs +3 -32
- package/ImageListItemBar/ImageListItemBar.js +4 -17
- package/ImageListItemBar/ImageListItemBar.mjs +4 -17
- package/ImageListItemBar/imageListItemBarClasses.d.mts +0 -16
- package/ImageListItemBar/imageListItemBarClasses.d.ts +0 -16
- package/ImageListItemBar/imageListItemBarClasses.js +1 -1
- package/ImageListItemBar/imageListItemBarClasses.mjs +1 -1
- package/Input/Input.js +3 -32
- package/Input/Input.mjs +3 -32
- package/Input/inputClasses.d.mts +0 -16
- package/Input/inputClasses.d.ts +0 -16
- package/InputBase/InputBase.d.mts +0 -27
- package/InputBase/InputBase.d.ts +0 -27
- package/InputBase/InputBase.js +6 -35
- package/InputBase/InputBase.mjs +6 -35
- package/InputBase/inputBaseClasses.d.mts +0 -20
- package/InputBase/inputBaseClasses.d.ts +0 -20
- package/InputBase/inputBaseClasses.js +1 -1
- package/InputBase/inputBaseClasses.mjs +1 -1
- package/InputLabel/InputLabel.js +1 -1
- package/InputLabel/InputLabel.mjs +1 -1
- package/LinearProgress/LinearProgress.js +6 -18
- package/LinearProgress/LinearProgress.mjs +6 -18
- package/LinearProgress/linearProgressClasses.d.mts +0 -36
- package/LinearProgress/linearProgressClasses.d.ts +0 -36
- package/LinearProgress/linearProgressClasses.js +1 -1
- package/LinearProgress/linearProgressClasses.mjs +1 -1
- package/Link/Link.d.mts +1 -1
- package/Link/Link.d.ts +1 -1
- package/ListItem/ListItem.d.mts +2 -36
- package/ListItem/ListItem.d.ts +2 -36
- package/ListItem/ListItem.js +27 -152
- package/ListItem/ListItem.mjs +27 -152
- package/ListItem/listItemClasses.d.mts +2 -4
- package/ListItem/listItemClasses.d.ts +2 -4
- package/ListItem/listItemClasses.js +1 -1
- package/ListItem/listItemClasses.mjs +1 -1
- package/ListItemButton/ListItemButton.d.mts +1 -2
- package/ListItemButton/ListItemButton.d.ts +1 -2
- package/ListItemButton/ListItemButton.js +1 -2
- package/ListItemButton/ListItemButton.mjs +1 -2
- package/ListItemSecondaryAction/ListItemSecondaryAction.d.mts +10 -6
- package/ListItemSecondaryAction/ListItemSecondaryAction.d.ts +10 -6
- package/ListItemSecondaryAction/ListItemSecondaryAction.js +7 -2
- package/ListItemSecondaryAction/ListItemSecondaryAction.mjs +7 -2
- package/ListItemText/ListItemText.d.mts +12 -20
- package/ListItemText/ListItemText.d.ts +12 -20
- package/ListItemText/ListItemText.js +2 -20
- package/ListItemText/ListItemText.mjs +2 -20
- package/Modal/Modal.d.mts +1 -41
- package/Modal/Modal.d.ts +1 -41
- package/Modal/Modal.js +5 -58
- package/Modal/Modal.mjs +5 -58
- package/OutlinedInput/OutlinedInput.js +2 -14
- package/OutlinedInput/OutlinedInput.mjs +2 -14
- package/OutlinedInput/outlinedInputClasses.d.mts +0 -16
- package/OutlinedInput/outlinedInputClasses.d.ts +0 -16
- package/PaginationItem/PaginationItem.d.mts +0 -15
- package/PaginationItem/PaginationItem.d.ts +0 -15
- package/PaginationItem/PaginationItem.js +3 -24
- package/PaginationItem/PaginationItem.mjs +3 -24
- package/PaginationItem/paginationItemClasses.d.mts +0 -16
- package/PaginationItem/paginationItemClasses.d.ts +0 -16
- package/PaginationItem/paginationItemClasses.js +1 -1
- package/PaginationItem/paginationItemClasses.mjs +1 -1
- package/Radio/Radio.js +1 -13
- package/Radio/Radio.mjs +1 -13
- package/Rating/Rating.d.mts +0 -9
- package/Rating/Rating.d.ts +0 -9
- package/Rating/Rating.js +1 -17
- package/Rating/Rating.mjs +1 -17
- package/Select/SelectInput.js +2 -3
- package/Select/SelectInput.mjs +2 -3
- package/Select/selectClasses.d.mts +0 -12
- package/Select/selectClasses.d.ts +0 -12
- package/Select/selectClasses.js +1 -1
- package/Select/selectClasses.mjs +1 -1
- package/Slider/Slider.d.mts +0 -5
- package/Slider/Slider.d.ts +0 -5
- package/Slider/Slider.js +2 -8
- package/Slider/Slider.mjs +2 -8
- package/Slider/sliderClasses.d.mts +0 -28
- package/Slider/sliderClasses.d.ts +0 -28
- package/Slider/sliderClasses.js +1 -1
- package/Slider/sliderClasses.mjs +1 -1
- package/Stack/Stack.d.mts +2 -2
- package/Stack/Stack.d.ts +2 -2
- package/StepConnector/StepConnector.js +2 -8
- package/StepConnector/StepConnector.mjs +2 -8
- package/StepConnector/stepConnectorClasses.d.mts +0 -8
- package/StepConnector/stepConnectorClasses.d.ts +0 -8
- package/StepConnector/stepConnectorClasses.js +1 -1
- package/StepConnector/stepConnectorClasses.mjs +1 -1
- package/StepContent/StepContent.d.mts +1 -16
- package/StepContent/StepContent.d.ts +1 -16
- package/StepContent/StepContent.js +3 -22
- package/StepContent/StepContent.mjs +3 -22
- package/StepLabel/StepLabel.d.mts +0 -22
- package/StepLabel/StepLabel.d.ts +0 -22
- package/StepLabel/StepLabel.js +2 -31
- package/StepLabel/StepLabel.mjs +2 -31
- package/SvgIcon/createSvgIcon.d.mts +2 -0
- package/SvgIcon/createSvgIcon.d.ts +2 -0
- package/SvgIcon/createSvgIcon.js +31 -0
- package/SvgIcon/createSvgIcon.mjs +26 -0
- package/SvgIcon/index.d.mts +1 -0
- package/SvgIcon/index.d.ts +1 -0
- package/SvgIcon/index.js +8 -0
- package/SvgIcon/index.mjs +1 -0
- package/SwipeableDrawer/SwipeableDrawer.d.mts +0 -5
- package/SwipeableDrawer/SwipeableDrawer.d.ts +0 -5
- package/SwipeableDrawer/SwipeableDrawer.js +6 -37
- package/SwipeableDrawer/SwipeableDrawer.mjs +6 -37
- package/Switch/Switch.js +0 -11
- package/Switch/Switch.mjs +0 -11
- package/Tab/Tab.js +1 -3
- package/Tab/Tab.mjs +1 -3
- package/Tab/tabClasses.d.mts +0 -4
- package/Tab/tabClasses.d.ts +0 -4
- package/Tab/tabClasses.js +1 -1
- package/Tab/tabClasses.mjs +1 -1
- package/TablePagination/TablePagination.d.mts +0 -24
- package/TablePagination/TablePagination.d.ts +0 -24
- package/TablePagination/TablePagination.js +1 -29
- package/TablePagination/TablePagination.mjs +1 -29
- package/TablePaginationActions/TablePaginationActions.d.mts +0 -10
- package/TablePaginationActions/TablePaginationActions.d.ts +0 -10
- package/TablePaginationActions/TablePaginationActions.js +2 -14
- package/TablePaginationActions/TablePaginationActions.mjs +2 -14
- package/TableSortLabel/TableSortLabel.js +2 -7
- package/TableSortLabel/TableSortLabel.mjs +2 -7
- package/TableSortLabel/tableSortLabelClasses.d.mts +0 -8
- package/TableSortLabel/tableSortLabelClasses.d.ts +0 -8
- package/TableSortLabel/tableSortLabelClasses.js +1 -1
- package/TableSortLabel/tableSortLabelClasses.mjs +1 -1
- package/Tabs/Tabs.js +3 -3
- package/Tabs/Tabs.mjs +3 -3
- package/Tabs/tabsClasses.d.mts +0 -6
- package/Tabs/tabsClasses.d.ts +0 -6
- package/Tabs/tabsClasses.js +1 -1
- package/Tabs/tabsClasses.mjs +1 -1
- package/ToggleButtonGroup/ToggleButtonGroup.js +1 -4
- package/ToggleButtonGroup/ToggleButtonGroup.mjs +1 -4
- package/ToggleButtonGroup/toggleButtonGroupClasses.d.mts +0 -8
- package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +0 -8
- package/ToggleButtonGroup/toggleButtonGroupClasses.js +1 -1
- package/ToggleButtonGroup/toggleButtonGroupClasses.mjs +1 -1
- package/Typography/Typography.d.mts +3 -3
- package/Typography/Typography.d.ts +3 -3
- package/Typography/Typography.js +2 -24
- package/Typography/Typography.mjs +3 -25
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/internal/SwitchBase.d.mts +0 -10
- package/internal/SwitchBase.d.ts +0 -10
- package/internal/SwitchBase.js +1 -16
- package/internal/SwitchBase.mjs +1 -16
- package/package.json +7 -7
- package/styles/createThemeWithVars.js +1 -0
- package/styles/createThemeWithVars.mjs +1 -0
- package/styles/stringifyTheme.js +1 -1
- package/styles/stringifyTheme.mjs +1 -1
- package/utils/createSvgIcon.d.mts +4 -2
- package/utils/createSvgIcon.d.ts +4 -2
- package/utils/createSvgIcon.js +6 -24
- package/utils/createSvgIcon.mjs +2 -24
- package/version/index.js +2 -2
- package/version/index.mjs +2 -2
|
@@ -33,12 +33,10 @@ const TablePaginationActions = /*#__PURE__*/React.forwardRef(function TablePagin
|
|
|
33
33
|
name: 'MuiTablePaginationActions'
|
|
34
34
|
});
|
|
35
35
|
const {
|
|
36
|
-
backIconButtonProps,
|
|
37
36
|
className,
|
|
38
37
|
count,
|
|
39
38
|
disabled = false,
|
|
40
39
|
getItemAriaLabel,
|
|
41
|
-
nextIconButtonProps,
|
|
42
40
|
onPageChange,
|
|
43
41
|
page,
|
|
44
42
|
rowsPerPage,
|
|
@@ -100,7 +98,7 @@ const TablePaginationActions = /*#__PURE__*/React.forwardRef(function TablePagin
|
|
|
100
98
|
color: "inherit",
|
|
101
99
|
"aria-label": getItemAriaLabel('previous', page),
|
|
102
100
|
title: getItemAriaLabel('previous', page),
|
|
103
|
-
...
|
|
101
|
+
...previousButtonSlotProps,
|
|
104
102
|
children: isRtl ? /*#__PURE__*/_jsx(NextButtonIcon, {
|
|
105
103
|
...slotProps.nextButtonIcon
|
|
106
104
|
}) : /*#__PURE__*/_jsx(PreviousButtonIcon, {
|
|
@@ -112,7 +110,7 @@ const TablePaginationActions = /*#__PURE__*/React.forwardRef(function TablePagin
|
|
|
112
110
|
color: "inherit",
|
|
113
111
|
"aria-label": getItemAriaLabel('next', page),
|
|
114
112
|
title: getItemAriaLabel('next', page),
|
|
115
|
-
...
|
|
113
|
+
...nextButtonSlotProps,
|
|
116
114
|
children: isRtl ? /*#__PURE__*/_jsx(PreviousButtonIcon, {
|
|
117
115
|
...slotProps.previousButtonIcon
|
|
118
116
|
}) : /*#__PURE__*/_jsx(NextButtonIcon, {
|
|
@@ -137,11 +135,6 @@ process.env.NODE_ENV !== "production" ? TablePaginationActions.propTypes /* remo
|
|
|
137
135
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
138
136
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
139
137
|
// └─────────────────────────────────────────────────────────────────────┘
|
|
140
|
-
/**
|
|
141
|
-
* This prop is an alias for `slotProps.previousButton` and will be overridden by it if both are used.
|
|
142
|
-
* @deprecated Use `slotProps.previousButton` instead.
|
|
143
|
-
*/
|
|
144
|
-
backIconButtonProps: PropTypes.object,
|
|
145
138
|
/**
|
|
146
139
|
* @ignore
|
|
147
140
|
*/
|
|
@@ -172,11 +165,6 @@ process.env.NODE_ENV !== "production" ? TablePaginationActions.propTypes /* remo
|
|
|
172
165
|
* @returns {string}
|
|
173
166
|
*/
|
|
174
167
|
getItemAriaLabel: PropTypes.func.isRequired,
|
|
175
|
-
/**
|
|
176
|
-
* This prop is an alias for `slotProps.nextButton` and will be overridden by it if both are used.
|
|
177
|
-
* @deprecated Use `slotProps.nextButton` instead.
|
|
178
|
-
*/
|
|
179
|
-
nextIconButtonProps: PropTypes.object,
|
|
180
168
|
/**
|
|
181
169
|
* @ignore
|
|
182
170
|
*/
|
|
@@ -28,7 +28,7 @@ const useUtilityClasses = ownerState => {
|
|
|
28
28
|
} = ownerState;
|
|
29
29
|
const slots = {
|
|
30
30
|
root: ['root', active && 'active', `direction${(0, _capitalize.default)(direction)}`],
|
|
31
|
-
icon: ['icon'
|
|
31
|
+
icon: ['icon']
|
|
32
32
|
};
|
|
33
33
|
return (0, _composeClasses.default)(slots, _tableSortLabelClasses.getTableSortLabelUtilityClass, classes);
|
|
34
34
|
};
|
|
@@ -69,12 +69,7 @@ const TableSortLabelRoot = (0, _zeroStyled.styled)(_ButtonBase.default, {
|
|
|
69
69
|
const TableSortLabelIcon = (0, _zeroStyled.styled)('span', {
|
|
70
70
|
name: 'MuiTableSortLabel',
|
|
71
71
|
slot: 'Icon',
|
|
72
|
-
overridesResolver: (props, styles) =>
|
|
73
|
-
const {
|
|
74
|
-
ownerState
|
|
75
|
-
} = props;
|
|
76
|
-
return [styles.icon, styles[`iconDirection${(0, _capitalize.default)(ownerState.direction)}`]];
|
|
77
|
-
}
|
|
72
|
+
overridesResolver: (props, styles) => styles.icon
|
|
78
73
|
})((0, _memoTheme.default)(({
|
|
79
74
|
theme
|
|
80
75
|
}) => ({
|
|
@@ -21,7 +21,7 @@ const useUtilityClasses = ownerState => {
|
|
|
21
21
|
} = ownerState;
|
|
22
22
|
const slots = {
|
|
23
23
|
root: ['root', active && 'active', `direction${capitalize(direction)}`],
|
|
24
|
-
icon: ['icon'
|
|
24
|
+
icon: ['icon']
|
|
25
25
|
};
|
|
26
26
|
return composeClasses(slots, getTableSortLabelUtilityClass, classes);
|
|
27
27
|
};
|
|
@@ -62,12 +62,7 @@ const TableSortLabelRoot = styled(ButtonBase, {
|
|
|
62
62
|
const TableSortLabelIcon = styled('span', {
|
|
63
63
|
name: 'MuiTableSortLabel',
|
|
64
64
|
slot: 'Icon',
|
|
65
|
-
overridesResolver: (props, styles) =>
|
|
66
|
-
const {
|
|
67
|
-
ownerState
|
|
68
|
-
} = props;
|
|
69
|
-
return [styles.icon, styles[`iconDirection${capitalize(ownerState.direction)}`]];
|
|
70
|
-
}
|
|
65
|
+
overridesResolver: (props, styles) => styles.icon
|
|
71
66
|
})(memoTheme(({
|
|
72
67
|
theme
|
|
73
68
|
}) => ({
|
|
@@ -9,14 +9,6 @@ export interface TableSortLabelClasses {
|
|
|
9
9
|
active: string;
|
|
10
10
|
/** Styles applied to the icon component. */
|
|
11
11
|
icon: string;
|
|
12
|
-
/** Styles applied to the icon component if `direction="desc"`.
|
|
13
|
-
* @deprecated Combine the [.MuiTableSortLabel-icon](/material-ui/api/table-sort-label/#TableSortLabel-css-MuiTableSortLabel-icon) and [.MuiTableSortLabel-directionDesc](/material-ui/api/table-sort-label/#table-sort-label-classes-MuiTableSortLabel-directionDesc) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
14
|
-
*/
|
|
15
|
-
iconDirectionDesc: string;
|
|
16
|
-
/** Styles applied to the icon component if `direction="asc"`.
|
|
17
|
-
* @deprecated Combine the [.MuiTableSortLabel-icon](/material-ui/api/table-sort-label/#TableSortLabel-css-MuiTableSortLabel-icon) and [.MuiTableSortLabel-directionAsc](/material-ui/api/table-sort-label/#table-sort-label-classes-MuiTableSortLabel-directionAsc) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
18
|
-
*/
|
|
19
|
-
iconDirectionAsc: string;
|
|
20
12
|
}
|
|
21
13
|
export type TableSortLabelClassKey = keyof TableSortLabelClasses;
|
|
22
14
|
export declare function getTableSortLabelUtilityClass(slot: string): string;
|
|
@@ -9,14 +9,6 @@ export interface TableSortLabelClasses {
|
|
|
9
9
|
active: string;
|
|
10
10
|
/** Styles applied to the icon component. */
|
|
11
11
|
icon: string;
|
|
12
|
-
/** Styles applied to the icon component if `direction="desc"`.
|
|
13
|
-
* @deprecated Combine the [.MuiTableSortLabel-icon](/material-ui/api/table-sort-label/#TableSortLabel-css-MuiTableSortLabel-icon) and [.MuiTableSortLabel-directionDesc](/material-ui/api/table-sort-label/#table-sort-label-classes-MuiTableSortLabel-directionDesc) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
14
|
-
*/
|
|
15
|
-
iconDirectionDesc: string;
|
|
16
|
-
/** Styles applied to the icon component if `direction="asc"`.
|
|
17
|
-
* @deprecated Combine the [.MuiTableSortLabel-icon](/material-ui/api/table-sort-label/#TableSortLabel-css-MuiTableSortLabel-icon) and [.MuiTableSortLabel-directionAsc](/material-ui/api/table-sort-label/#table-sort-label-classes-MuiTableSortLabel-directionAsc) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
18
|
-
*/
|
|
19
|
-
iconDirectionAsc: string;
|
|
20
12
|
}
|
|
21
13
|
export type TableSortLabelClassKey = keyof TableSortLabelClasses;
|
|
22
14
|
export declare function getTableSortLabelUtilityClass(slot: string): string;
|
|
@@ -11,5 +11,5 @@ var _generateUtilityClass = _interopRequireDefault(require("@mui/utils/generateU
|
|
|
11
11
|
function getTableSortLabelUtilityClass(slot) {
|
|
12
12
|
return (0, _generateUtilityClass.default)('MuiTableSortLabel', slot);
|
|
13
13
|
}
|
|
14
|
-
const tableSortLabelClasses = (0, _generateUtilityClasses.default)('MuiTableSortLabel', ['root', 'active', 'icon', '
|
|
14
|
+
const tableSortLabelClasses = (0, _generateUtilityClasses.default)('MuiTableSortLabel', ['root', 'active', 'icon', 'directionDesc', 'directionAsc']);
|
|
15
15
|
var _default = exports.default = tableSortLabelClasses;
|
|
@@ -3,5 +3,5 @@ import generateUtilityClass from '@mui/utils/generateUtilityClass';
|
|
|
3
3
|
export function getTableSortLabelUtilityClass(slot) {
|
|
4
4
|
return generateUtilityClass('MuiTableSortLabel', slot);
|
|
5
5
|
}
|
|
6
|
-
const tableSortLabelClasses = generateUtilityClasses('MuiTableSortLabel', ['root', 'active', 'icon', '
|
|
6
|
+
const tableSortLabelClasses = generateUtilityClasses('MuiTableSortLabel', ['root', 'active', 'icon', 'directionDesc', 'directionAsc']);
|
|
7
7
|
export default tableSortLabelClasses;
|
package/Tabs/Tabs.js
CHANGED
|
@@ -43,7 +43,7 @@ const useUtilityClasses = ownerState => {
|
|
|
43
43
|
const slots = {
|
|
44
44
|
root: ['root', vertical && 'vertical'],
|
|
45
45
|
scroller: ['scroller', fixed && 'fixed', hideScrollbar && 'hideScrollbar', scrollableX && 'scrollableX', scrollableY && 'scrollableY'],
|
|
46
|
-
list: ['list',
|
|
46
|
+
list: ['list', vertical && 'vertical', centered && 'centered'],
|
|
47
47
|
indicator: ['indicator'],
|
|
48
48
|
scrollButtons: ['scrollButtons', scrollButtonsHideMobile && 'scrollButtonsHideMobile'],
|
|
49
49
|
scrollableX: [scrollableX && 'scrollableX'],
|
|
@@ -151,7 +151,7 @@ const List = (0, _zeroStyled.styled)('div', {
|
|
|
151
151
|
const {
|
|
152
152
|
ownerState
|
|
153
153
|
} = props;
|
|
154
|
-
return [styles.list,
|
|
154
|
+
return [styles.list, ownerState.centered && styles.centered];
|
|
155
155
|
}
|
|
156
156
|
})({
|
|
157
157
|
display: 'flex',
|
|
@@ -704,7 +704,7 @@ const Tabs = /*#__PURE__*/React.forwardRef(function Tabs(inProps, ref) {
|
|
|
704
704
|
};
|
|
705
705
|
const [ListSlot, listSlotProps] = (0, _useSlot.default)('list', {
|
|
706
706
|
ref: mergedRef,
|
|
707
|
-
className:
|
|
707
|
+
className: classes.list,
|
|
708
708
|
elementType: List,
|
|
709
709
|
externalForwardedProps,
|
|
710
710
|
ownerState,
|
package/Tabs/Tabs.mjs
CHANGED
|
@@ -36,7 +36,7 @@ const useUtilityClasses = ownerState => {
|
|
|
36
36
|
const slots = {
|
|
37
37
|
root: ['root', vertical && 'vertical'],
|
|
38
38
|
scroller: ['scroller', fixed && 'fixed', hideScrollbar && 'hideScrollbar', scrollableX && 'scrollableX', scrollableY && 'scrollableY'],
|
|
39
|
-
list: ['list',
|
|
39
|
+
list: ['list', vertical && 'vertical', centered && 'centered'],
|
|
40
40
|
indicator: ['indicator'],
|
|
41
41
|
scrollButtons: ['scrollButtons', scrollButtonsHideMobile && 'scrollButtonsHideMobile'],
|
|
42
42
|
scrollableX: [scrollableX && 'scrollableX'],
|
|
@@ -144,7 +144,7 @@ const List = styled('div', {
|
|
|
144
144
|
const {
|
|
145
145
|
ownerState
|
|
146
146
|
} = props;
|
|
147
|
-
return [styles.list,
|
|
147
|
+
return [styles.list, ownerState.centered && styles.centered];
|
|
148
148
|
}
|
|
149
149
|
})({
|
|
150
150
|
display: 'flex',
|
|
@@ -697,7 +697,7 @@ const Tabs = /*#__PURE__*/React.forwardRef(function Tabs(inProps, ref) {
|
|
|
697
697
|
};
|
|
698
698
|
const [ListSlot, listSlotProps] = useSlot('list', {
|
|
699
699
|
ref: mergedRef,
|
|
700
|
-
className:
|
|
700
|
+
className: classes.list,
|
|
701
701
|
elementType: List,
|
|
702
702
|
externalForwardedProps,
|
|
703
703
|
ownerState,
|
package/Tabs/tabsClasses.d.mts
CHANGED
|
@@ -3,12 +3,6 @@ export interface TabsClasses {
|
|
|
3
3
|
root: string;
|
|
4
4
|
/** Styles applied to the root element if `orientation="vertical"`. */
|
|
5
5
|
vertical: string;
|
|
6
|
-
/** Styles applied to the flex container element. */
|
|
7
|
-
/** @deprecated use `list` instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details. */
|
|
8
|
-
flexContainer: string;
|
|
9
|
-
/** Styles applied to the flex container element if `orientation="vertical"`. */
|
|
10
|
-
/** @deprecated use a combination of `list` and `vertical` instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details. */
|
|
11
|
-
flexContainerVertical: string;
|
|
12
6
|
/** Styles applied to the list element. */
|
|
13
7
|
list: string;
|
|
14
8
|
/** Styles applied to the flex container element if `centered={true}` & `!variant="scrollable"`. */
|
package/Tabs/tabsClasses.d.ts
CHANGED
|
@@ -3,12 +3,6 @@ export interface TabsClasses {
|
|
|
3
3
|
root: string;
|
|
4
4
|
/** Styles applied to the root element if `orientation="vertical"`. */
|
|
5
5
|
vertical: string;
|
|
6
|
-
/** Styles applied to the flex container element. */
|
|
7
|
-
/** @deprecated use `list` instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details. */
|
|
8
|
-
flexContainer: string;
|
|
9
|
-
/** Styles applied to the flex container element if `orientation="vertical"`. */
|
|
10
|
-
/** @deprecated use a combination of `list` and `vertical` instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details. */
|
|
11
|
-
flexContainerVertical: string;
|
|
12
6
|
/** Styles applied to the list element. */
|
|
13
7
|
list: string;
|
|
14
8
|
/** Styles applied to the flex container element if `centered={true}` & `!variant="scrollable"`. */
|
package/Tabs/tabsClasses.js
CHANGED
|
@@ -11,5 +11,5 @@ var _generateUtilityClass = _interopRequireDefault(require("@mui/utils/generateU
|
|
|
11
11
|
function getTabsUtilityClass(slot) {
|
|
12
12
|
return (0, _generateUtilityClass.default)('MuiTabs', slot);
|
|
13
13
|
}
|
|
14
|
-
const tabsClasses = (0, _generateUtilityClasses.default)('MuiTabs', ['root', 'vertical', 'list', '
|
|
14
|
+
const tabsClasses = (0, _generateUtilityClasses.default)('MuiTabs', ['root', 'vertical', 'list', 'centered', 'scroller', 'fixed', 'scrollableX', 'scrollableY', 'hideScrollbar', 'scrollButtons', 'scrollButtonsHideMobile', 'indicator']);
|
|
15
15
|
var _default = exports.default = tabsClasses;
|
package/Tabs/tabsClasses.mjs
CHANGED
|
@@ -3,5 +3,5 @@ import generateUtilityClass from '@mui/utils/generateUtilityClass';
|
|
|
3
3
|
export function getTabsUtilityClass(slot) {
|
|
4
4
|
return generateUtilityClass('MuiTabs', slot);
|
|
5
5
|
}
|
|
6
|
-
const tabsClasses = generateUtilityClasses('MuiTabs', ['root', 'vertical', 'list', '
|
|
6
|
+
const tabsClasses = generateUtilityClasses('MuiTabs', ['root', 'vertical', 'list', 'centered', 'scroller', 'fixed', 'scrollableX', 'scrollableY', 'hideScrollbar', 'scrollButtons', 'scrollButtonsHideMobile', 'indicator']);
|
|
7
7
|
export default tabsClasses;
|
|
@@ -16,7 +16,6 @@ var _getValidReactChildren = _interopRequireDefault(require("@mui/utils/getValid
|
|
|
16
16
|
var _zeroStyled = require("../zero-styled");
|
|
17
17
|
var _memoTheme = _interopRequireDefault(require("../utils/memoTheme"));
|
|
18
18
|
var _DefaultPropsProvider = require("../DefaultPropsProvider");
|
|
19
|
-
var _capitalize = _interopRequireDefault(require("../utils/capitalize"));
|
|
20
19
|
var _toggleButtonGroupClasses = _interopRequireWildcard(require("./toggleButtonGroupClasses"));
|
|
21
20
|
var _ToggleButtonGroupContext = _interopRequireDefault(require("./ToggleButtonGroupContext"));
|
|
22
21
|
var _ToggleButtonGroupButtonContext = _interopRequireDefault(require("./ToggleButtonGroupButtonContext"));
|
|
@@ -31,7 +30,7 @@ const useUtilityClasses = ownerState => {
|
|
|
31
30
|
} = ownerState;
|
|
32
31
|
const slots = {
|
|
33
32
|
root: ['root', orientation, fullWidth && 'fullWidth'],
|
|
34
|
-
grouped: ['grouped',
|
|
33
|
+
grouped: ['grouped', disabled && 'disabled'],
|
|
35
34
|
firstButton: ['firstButton'],
|
|
36
35
|
lastButton: ['lastButton'],
|
|
37
36
|
middleButton: ['middleButton']
|
|
@@ -47,8 +46,6 @@ const ToggleButtonGroupRoot = (0, _zeroStyled.styled)('div', {
|
|
|
47
46
|
} = props;
|
|
48
47
|
return [{
|
|
49
48
|
[`& .${_toggleButtonGroupClasses.default.grouped}`]: styles.grouped
|
|
50
|
-
}, {
|
|
51
|
-
[`& .${_toggleButtonGroupClasses.default.grouped}`]: styles[`grouped${(0, _capitalize.default)(ownerState.orientation)}`]
|
|
52
49
|
}, {
|
|
53
50
|
[`& .${_toggleButtonGroupClasses.default.firstButton}`]: styles.firstButton
|
|
54
51
|
}, {
|
|
@@ -9,7 +9,6 @@ import getValidReactChildren from '@mui/utils/getValidReactChildren';
|
|
|
9
9
|
import { styled } from "../zero-styled/index.mjs";
|
|
10
10
|
import memoTheme from "../utils/memoTheme.mjs";
|
|
11
11
|
import { useDefaultProps } from "../DefaultPropsProvider/index.mjs";
|
|
12
|
-
import capitalize from "../utils/capitalize.mjs";
|
|
13
12
|
import toggleButtonGroupClasses, { getToggleButtonGroupUtilityClass } from "./toggleButtonGroupClasses.mjs";
|
|
14
13
|
import ToggleButtonGroupContext from "./ToggleButtonGroupContext.mjs";
|
|
15
14
|
import ToggleButtonGroupButtonContext from "./ToggleButtonGroupButtonContext.mjs";
|
|
@@ -24,7 +23,7 @@ const useUtilityClasses = ownerState => {
|
|
|
24
23
|
} = ownerState;
|
|
25
24
|
const slots = {
|
|
26
25
|
root: ['root', orientation, fullWidth && 'fullWidth'],
|
|
27
|
-
grouped: ['grouped',
|
|
26
|
+
grouped: ['grouped', disabled && 'disabled'],
|
|
28
27
|
firstButton: ['firstButton'],
|
|
29
28
|
lastButton: ['lastButton'],
|
|
30
29
|
middleButton: ['middleButton']
|
|
@@ -40,8 +39,6 @@ const ToggleButtonGroupRoot = styled('div', {
|
|
|
40
39
|
} = props;
|
|
41
40
|
return [{
|
|
42
41
|
[`& .${toggleButtonGroupClasses.grouped}`]: styles.grouped
|
|
43
|
-
}, {
|
|
44
|
-
[`& .${toggleButtonGroupClasses.grouped}`]: styles[`grouped${capitalize(ownerState.orientation)}`]
|
|
45
42
|
}, {
|
|
46
43
|
[`& .${toggleButtonGroupClasses.firstButton}`]: styles.firstButton
|
|
47
44
|
}, {
|
|
@@ -11,14 +11,6 @@ export interface ToggleButtonGroupClasses {
|
|
|
11
11
|
disabled: string;
|
|
12
12
|
/** Styles applied to the children. */
|
|
13
13
|
grouped: string;
|
|
14
|
-
/** Styles applied to the children if `orientation="horizontal"`.
|
|
15
|
-
* @deprecated Combine the [.MuiToggleButtonGroup-horizontal](/material-ui/api/toggle-button-group/#toggle-button-group-classes-MuiToggleButtonGroup-horizontal) and [.MuiToggleButtonGroup-grouped](/material-ui/api/toggle-button-group/#toggle-button-group-classes-MuiToggleButtonGroup-grouped) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
16
|
-
*/
|
|
17
|
-
groupedHorizontal: string;
|
|
18
|
-
/** Styles applied to the children if `orientation="vertical"`.
|
|
19
|
-
* @deprecated Combine the [.MuiToggleButtonGroup-vertical](/material-ui/api/toggle-button-group/#toggle-button-group-classes-MuiToggleButtonGroup-vertical) and [.MuiToggleButtonGroup-grouped](/material-ui/api/toggle-button-group/#toggle-button-group-classes-MuiToggleButtonGroup-grouped) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
20
|
-
*/
|
|
21
|
-
groupedVertical: string;
|
|
22
14
|
/** Styles applied to the root element if `fullWidth={true}`. */
|
|
23
15
|
fullWidth: string;
|
|
24
16
|
/** Styles applied to the first button in the toggle button group. */
|
|
@@ -11,14 +11,6 @@ export interface ToggleButtonGroupClasses {
|
|
|
11
11
|
disabled: string;
|
|
12
12
|
/** Styles applied to the children. */
|
|
13
13
|
grouped: string;
|
|
14
|
-
/** Styles applied to the children if `orientation="horizontal"`.
|
|
15
|
-
* @deprecated Combine the [.MuiToggleButtonGroup-horizontal](/material-ui/api/toggle-button-group/#toggle-button-group-classes-MuiToggleButtonGroup-horizontal) and [.MuiToggleButtonGroup-grouped](/material-ui/api/toggle-button-group/#toggle-button-group-classes-MuiToggleButtonGroup-grouped) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
16
|
-
*/
|
|
17
|
-
groupedHorizontal: string;
|
|
18
|
-
/** Styles applied to the children if `orientation="vertical"`.
|
|
19
|
-
* @deprecated Combine the [.MuiToggleButtonGroup-vertical](/material-ui/api/toggle-button-group/#toggle-button-group-classes-MuiToggleButtonGroup-vertical) and [.MuiToggleButtonGroup-grouped](/material-ui/api/toggle-button-group/#toggle-button-group-classes-MuiToggleButtonGroup-grouped) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
20
|
-
*/
|
|
21
|
-
groupedVertical: string;
|
|
22
14
|
/** Styles applied to the root element if `fullWidth={true}`. */
|
|
23
15
|
fullWidth: string;
|
|
24
16
|
/** Styles applied to the first button in the toggle button group. */
|
|
@@ -11,5 +11,5 @@ var _generateUtilityClass = _interopRequireDefault(require("@mui/utils/generateU
|
|
|
11
11
|
function getToggleButtonGroupUtilityClass(slot) {
|
|
12
12
|
return (0, _generateUtilityClass.default)('MuiToggleButtonGroup', slot);
|
|
13
13
|
}
|
|
14
|
-
const toggleButtonGroupClasses = (0, _generateUtilityClasses.default)('MuiToggleButtonGroup', ['root', 'selected', 'horizontal', 'vertical', 'disabled', 'grouped', '
|
|
14
|
+
const toggleButtonGroupClasses = (0, _generateUtilityClasses.default)('MuiToggleButtonGroup', ['root', 'selected', 'horizontal', 'vertical', 'disabled', 'grouped', 'fullWidth', 'firstButton', 'lastButton', 'middleButton']);
|
|
15
15
|
var _default = exports.default = toggleButtonGroupClasses;
|
|
@@ -3,5 +3,5 @@ import generateUtilityClass from '@mui/utils/generateUtilityClass';
|
|
|
3
3
|
export function getToggleButtonGroupUtilityClass(slot) {
|
|
4
4
|
return generateUtilityClass('MuiToggleButtonGroup', slot);
|
|
5
5
|
}
|
|
6
|
-
const toggleButtonGroupClasses = generateUtilityClasses('MuiToggleButtonGroup', ['root', 'selected', 'horizontal', 'vertical', 'disabled', 'grouped', '
|
|
6
|
+
const toggleButtonGroupClasses = generateUtilityClasses('MuiToggleButtonGroup', ['root', 'selected', 'horizontal', 'vertical', 'disabled', 'grouped', 'fullWidth', 'firstButton', 'lastButton', 'middleButton']);
|
|
7
7
|
export default toggleButtonGroupClasses;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { OverridableStringUnion } from '@mui/types';
|
|
3
|
-
import { SxProps
|
|
3
|
+
import { SxProps } from '@mui/system';
|
|
4
4
|
import { Theme, TypeText } from "../styles/index.mjs";
|
|
5
5
|
import { OverrideProps, OverridableComponent } from "../OverridableComponent/index.mjs";
|
|
6
6
|
import { TypographyVariant } from "../styles/createTypography.mjs";
|
|
7
7
|
import { TypographyClasses } from "./typographyClasses.mjs";
|
|
8
8
|
export interface TypographyPropsVariantOverrides {}
|
|
9
9
|
export interface TypographyPropsColorOverrides {}
|
|
10
|
-
export interface TypographyOwnProps
|
|
10
|
+
export interface TypographyOwnProps {
|
|
11
11
|
/**
|
|
12
12
|
* Set the text-align on the component.
|
|
13
13
|
* @default 'inherit'
|
|
@@ -26,7 +26,7 @@ export interface TypographyOwnProps extends Omit<SystemProps<Theme>, 'color'> {
|
|
|
26
26
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
27
27
|
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
28
28
|
*/
|
|
29
|
-
color?: OverridableStringUnion<'primary' | 'secondary' | 'success' | 'error' | 'info' | 'warning' | `text${Capitalize<keyof TypeText>}`, TypographyPropsColorOverrides> | (string & {}) | undefined;
|
|
29
|
+
color?: OverridableStringUnion<'primary' | 'secondary' | 'success' | 'error' | 'info' | 'warning' | `text${Capitalize<keyof TypeText>}`, TypographyPropsColorOverrides> | (string & {}) | undefined;
|
|
30
30
|
/**
|
|
31
31
|
* If `true`, the text will have a bottom margin.
|
|
32
32
|
* @default false
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { OverridableStringUnion } from '@mui/types';
|
|
3
|
-
import { SxProps
|
|
3
|
+
import { SxProps } from '@mui/system';
|
|
4
4
|
import { Theme, TypeText } from "../styles/index.js";
|
|
5
5
|
import { OverrideProps, OverridableComponent } from "../OverridableComponent/index.js";
|
|
6
6
|
import { TypographyVariant } from "../styles/createTypography.js";
|
|
7
7
|
import { TypographyClasses } from "./typographyClasses.js";
|
|
8
8
|
export interface TypographyPropsVariantOverrides {}
|
|
9
9
|
export interface TypographyPropsColorOverrides {}
|
|
10
|
-
export interface TypographyOwnProps
|
|
10
|
+
export interface TypographyOwnProps {
|
|
11
11
|
/**
|
|
12
12
|
* Set the text-align on the component.
|
|
13
13
|
* @default 'inherit'
|
|
@@ -26,7 +26,7 @@ export interface TypographyOwnProps extends Omit<SystemProps<Theme>, 'color'> {
|
|
|
26
26
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
27
27
|
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
28
28
|
*/
|
|
29
|
-
color?: OverridableStringUnion<'primary' | 'secondary' | 'success' | 'error' | 'info' | 'warning' | `text${Capitalize<keyof TypeText>}`, TypographyPropsColorOverrides> | (string & {}) | undefined;
|
|
29
|
+
color?: OverridableStringUnion<'primary' | 'secondary' | 'success' | 'error' | 'info' | 'warning' | `text${Capitalize<keyof TypeText>}`, TypographyPropsColorOverrides> | (string & {}) | undefined;
|
|
30
30
|
/**
|
|
31
31
|
* If `true`, the text will have a bottom margin.
|
|
32
32
|
* @default false
|
package/Typography/Typography.js
CHANGED
|
@@ -18,18 +18,6 @@ var _capitalize = _interopRequireDefault(require("../utils/capitalize"));
|
|
|
18
18
|
var _createSimplePaletteValueFilter = _interopRequireDefault(require("../utils/createSimplePaletteValueFilter"));
|
|
19
19
|
var _typographyClasses = require("./typographyClasses");
|
|
20
20
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
21
|
-
const v6Colors = {
|
|
22
|
-
primary: true,
|
|
23
|
-
secondary: true,
|
|
24
|
-
error: true,
|
|
25
|
-
info: true,
|
|
26
|
-
success: true,
|
|
27
|
-
warning: true,
|
|
28
|
-
textPrimary: true,
|
|
29
|
-
textSecondary: true,
|
|
30
|
-
textDisabled: true
|
|
31
|
-
};
|
|
32
|
-
const extendSxProp = (0, _zeroStyled.internal_createExtendSxProp)();
|
|
33
21
|
const useUtilityClasses = ownerState => {
|
|
34
22
|
const {
|
|
35
23
|
align,
|
|
@@ -124,22 +112,12 @@ const defaultVariantMapping = {
|
|
|
124
112
|
inherit: 'p'
|
|
125
113
|
};
|
|
126
114
|
const Typography = /*#__PURE__*/React.forwardRef(function Typography(inProps, ref) {
|
|
127
|
-
const {
|
|
128
|
-
color,
|
|
129
|
-
...themeProps
|
|
130
|
-
} = (0, _DefaultPropsProvider.useDefaultProps)({
|
|
115
|
+
const props = (0, _DefaultPropsProvider.useDefaultProps)({
|
|
131
116
|
props: inProps,
|
|
132
117
|
name: 'MuiTypography'
|
|
133
118
|
});
|
|
134
|
-
const isSxColor = !v6Colors[color];
|
|
135
|
-
// TODO: Remove `extendSxProp` in v7
|
|
136
|
-
const props = extendSxProp({
|
|
137
|
-
...themeProps,
|
|
138
|
-
...(isSxColor && {
|
|
139
|
-
color
|
|
140
|
-
})
|
|
141
|
-
});
|
|
142
119
|
const {
|
|
120
|
+
color,
|
|
143
121
|
align = 'inherit',
|
|
144
122
|
className,
|
|
145
123
|
component,
|
|
@@ -4,25 +4,13 @@ import * as React from 'react';
|
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import clsx from 'clsx';
|
|
6
6
|
import composeClasses from '@mui/utils/composeClasses';
|
|
7
|
-
import { styled
|
|
7
|
+
import { styled } from "../zero-styled/index.mjs";
|
|
8
8
|
import memoTheme from "../utils/memoTheme.mjs";
|
|
9
9
|
import { useDefaultProps } from "../DefaultPropsProvider/index.mjs";
|
|
10
10
|
import capitalize from "../utils/capitalize.mjs";
|
|
11
11
|
import createSimplePaletteValueFilter from "../utils/createSimplePaletteValueFilter.mjs";
|
|
12
12
|
import { getTypographyUtilityClass } from "./typographyClasses.mjs";
|
|
13
13
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
|
-
const v6Colors = {
|
|
15
|
-
primary: true,
|
|
16
|
-
secondary: true,
|
|
17
|
-
error: true,
|
|
18
|
-
info: true,
|
|
19
|
-
success: true,
|
|
20
|
-
warning: true,
|
|
21
|
-
textPrimary: true,
|
|
22
|
-
textSecondary: true,
|
|
23
|
-
textDisabled: true
|
|
24
|
-
};
|
|
25
|
-
const extendSxProp = internal_createExtendSxProp();
|
|
26
14
|
const useUtilityClasses = ownerState => {
|
|
27
15
|
const {
|
|
28
16
|
align,
|
|
@@ -117,22 +105,12 @@ const defaultVariantMapping = {
|
|
|
117
105
|
inherit: 'p'
|
|
118
106
|
};
|
|
119
107
|
const Typography = /*#__PURE__*/React.forwardRef(function Typography(inProps, ref) {
|
|
120
|
-
const {
|
|
121
|
-
color,
|
|
122
|
-
...themeProps
|
|
123
|
-
} = useDefaultProps({
|
|
108
|
+
const props = useDefaultProps({
|
|
124
109
|
props: inProps,
|
|
125
110
|
name: 'MuiTypography'
|
|
126
111
|
});
|
|
127
|
-
const isSxColor = !v6Colors[color];
|
|
128
|
-
// TODO: Remove `extendSxProp` in v7
|
|
129
|
-
const props = extendSxProp({
|
|
130
|
-
...themeProps,
|
|
131
|
-
...(isSxColor && {
|
|
132
|
-
color
|
|
133
|
-
})
|
|
134
|
-
});
|
|
135
112
|
const {
|
|
113
|
+
color,
|
|
136
114
|
align = 'inherit',
|
|
137
115
|
className,
|
|
138
116
|
component,
|
package/index.js
CHANGED
package/index.mjs
CHANGED
|
@@ -68,16 +68,6 @@ export interface SwitchBaseProps extends StandardProps<ButtonBaseProps, 'childre
|
|
|
68
68
|
* The id of the `input` element.
|
|
69
69
|
*/
|
|
70
70
|
id?: string | undefined;
|
|
71
|
-
/**
|
|
72
|
-
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#attributes) applied to the `input` element.
|
|
73
|
-
* @deprecated Use `slotProps.input` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
74
|
-
*/
|
|
75
|
-
inputProps?: React.InputHTMLAttributes<HTMLInputElement> | undefined;
|
|
76
|
-
/**
|
|
77
|
-
* Pass a ref to the `input` element.
|
|
78
|
-
* @deprecated Use `slotProps.input.ref` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
79
|
-
*/
|
|
80
|
-
inputRef?: React.Ref<any> | undefined;
|
|
81
71
|
/**
|
|
82
72
|
* Name attribute of the `input` element.
|
|
83
73
|
*/
|
package/internal/SwitchBase.d.ts
CHANGED
|
@@ -68,16 +68,6 @@ export interface SwitchBaseProps extends StandardProps<ButtonBaseProps, 'childre
|
|
|
68
68
|
* The id of the `input` element.
|
|
69
69
|
*/
|
|
70
70
|
id?: string | undefined;
|
|
71
|
-
/**
|
|
72
|
-
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#attributes) applied to the `input` element.
|
|
73
|
-
* @deprecated Use `slotProps.input` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
74
|
-
*/
|
|
75
|
-
inputProps?: React.InputHTMLAttributes<HTMLInputElement> | undefined;
|
|
76
|
-
/**
|
|
77
|
-
* Pass a ref to the `input` element.
|
|
78
|
-
* @deprecated Use `slotProps.input.ref` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
79
|
-
*/
|
|
80
|
-
inputRef?: React.Ref<any> | undefined;
|
|
81
71
|
/**
|
|
82
72
|
* Name attribute of the `input` element.
|
|
83
73
|
*/
|
package/internal/SwitchBase.js
CHANGED
|
@@ -9,7 +9,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
9
9
|
exports.default = void 0;
|
|
10
10
|
var React = _interopRequireWildcard(require("react"));
|
|
11
11
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
12
|
-
var _refType = _interopRequireDefault(require("@mui/utils/refType"));
|
|
13
12
|
var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
|
|
14
13
|
var _capitalize = _interopRequireDefault(require("../utils/capitalize"));
|
|
15
14
|
var _rootShouldForwardProp = _interopRequireDefault(require("../styles/rootShouldForwardProp"));
|
|
@@ -102,8 +101,6 @@ const SwitchBase = /*#__PURE__*/React.forwardRef(function SwitchBase(props, ref)
|
|
|
102
101
|
edge = false,
|
|
103
102
|
icon,
|
|
104
103
|
id,
|
|
105
|
-
inputProps,
|
|
106
|
-
inputRef,
|
|
107
104
|
name,
|
|
108
105
|
onBlur,
|
|
109
106
|
onChange,
|
|
@@ -169,10 +166,7 @@ const SwitchBase = /*#__PURE__*/React.forwardRef(function SwitchBase(props, ref)
|
|
|
169
166
|
const classes = useUtilityClasses(ownerState);
|
|
170
167
|
const externalForwardedProps = {
|
|
171
168
|
slots,
|
|
172
|
-
slotProps
|
|
173
|
-
input: inputProps,
|
|
174
|
-
...slotProps
|
|
175
|
-
}
|
|
169
|
+
slotProps
|
|
176
170
|
};
|
|
177
171
|
const [RootSlot, rootSlotProps] = (0, _useSlot.default)('root', {
|
|
178
172
|
ref,
|
|
@@ -204,7 +198,6 @@ const SwitchBase = /*#__PURE__*/React.forwardRef(function SwitchBase(props, ref)
|
|
|
204
198
|
}
|
|
205
199
|
});
|
|
206
200
|
const [InputSlot, inputSlotProps] = (0, _useSlot.default)('input', {
|
|
207
|
-
ref: inputRef,
|
|
208
201
|
elementType: SwitchBaseInput,
|
|
209
202
|
className: classes.input,
|
|
210
203
|
externalForwardedProps,
|
|
@@ -292,14 +285,6 @@ process.env.NODE_ENV !== "production" ? SwitchBase.propTypes = {
|
|
|
292
285
|
* The id of the `input` element.
|
|
293
286
|
*/
|
|
294
287
|
id: _propTypes.default.string,
|
|
295
|
-
/**
|
|
296
|
-
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#attributes) applied to the `input` element.
|
|
297
|
-
*/
|
|
298
|
-
inputProps: _propTypes.default.object,
|
|
299
|
-
/**
|
|
300
|
-
* Pass a ref to the `input` element.
|
|
301
|
-
*/
|
|
302
|
-
inputRef: _refType.default,
|
|
303
288
|
/*
|
|
304
289
|
* @ignore
|
|
305
290
|
*/
|