@mui/material 9.0.0-alpha.4 → 9.0.0-beta.1
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.mts +1 -1
- package/Accordion/Accordion.d.ts +1 -1
- package/AccordionSummary/AccordionSummary.js +1 -0
- package/AccordionSummary/AccordionSummary.mjs +1 -0
- package/Backdrop/Backdrop.d.mts +1 -1
- package/Backdrop/Backdrop.d.ts +1 -1
- package/BottomNavigationAction/BottomNavigationAction.js +1 -0
- package/BottomNavigationAction/BottomNavigationAction.mjs +1 -0
- package/Breadcrumbs/BreadcrumbCollapsed.js +5 -1
- package/Breadcrumbs/BreadcrumbCollapsed.mjs +5 -1
- package/Button/Button.js +1 -0
- package/Button/Button.mjs +1 -0
- package/ButtonBase/ButtonBase.d.mts +5 -0
- package/ButtonBase/ButtonBase.d.ts +5 -0
- package/ButtonBase/ButtonBase.js +84 -85
- package/ButtonBase/ButtonBase.mjs +84 -85
- package/ButtonBase/useButtonBase.d.mts +91 -0
- package/ButtonBase/useButtonBase.d.ts +91 -0
- package/ButtonBase/useButtonBase.js +174 -0
- package/ButtonBase/useButtonBase.mjs +167 -0
- 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 +119 -4
- package/CardActionArea/CardActionArea.js +1 -0
- package/CardActionArea/CardActionArea.mjs +1 -0
- 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.d.mts +7 -0
- package/Chip/Chip.d.ts +7 -0
- package/Chip/Chip.js +66 -55
- package/Chip/Chip.mjs +66 -55
- 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 +8 -22
- package/Dialog/Dialog.d.ts +8 -22
- package/Dialog/Dialog.js +43 -72
- package/Dialog/Dialog.mjs +43 -72
- 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 -10
- package/Divider/Divider.mjs +2 -10
- 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 +1 -13
- package/Drawer/Drawer.d.ts +1 -13
- 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/Fab/Fab.js +1 -0
- package/Fab/Fab.mjs +1 -0
- package/FilledInput/FilledInput.js +4 -33
- package/FilledInput/FilledInput.mjs +4 -33
- package/Grid/Grid.d.mts +8 -3
- package/Grid/Grid.d.ts +8 -3
- package/Grid/Grid.js +8 -3
- package/Grid/Grid.mjs +8 -3
- package/Grid/gridClasses.js +1 -1
- package/Grid/gridClasses.mjs +1 -1
- package/IconButton/IconButton.js +1 -0
- package/IconButton/IconButton.mjs +1 -0
- 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 +4 -33
- package/Input/Input.mjs +4 -33
- package/Input/inputClasses.d.mts +0 -16
- package/Input/inputClasses.d.ts +0 -16
- package/InputAdornment/inputAdornmentClasses.d.mts +2 -2
- package/InputAdornment/inputAdornmentClasses.d.ts +2 -2
- 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 +2 -2
- package/ListItemButton/ListItemButton.mjs +2 -2
- package/ListItemIcon/ListItemIcon.js +1 -1
- package/ListItemIcon/ListItemIcon.mjs +1 -1
- 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/ListSubheader/ListSubheader.js +0 -3
- package/ListSubheader/ListSubheader.mjs +0 -3
- package/Menu/Menu.d.mts +1 -1
- package/Menu/Menu.d.ts +1 -1
- package/Menu/Menu.js +15 -32
- package/Menu/Menu.mjs +15 -32
- package/MenuItem/MenuItem.js +36 -26
- package/MenuItem/MenuItem.mjs +34 -26
- package/MenuList/MenuList.js +136 -101
- package/MenuList/MenuList.mjs +135 -100
- package/MenuList/MenuListContext.d.mts +11 -0
- package/MenuList/MenuListContext.d.ts +11 -0
- package/MenuList/MenuListContext.js +25 -0
- package/MenuList/MenuListContext.mjs +19 -0
- 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 +5 -15
- package/PaginationItem/PaginationItem.d.ts +5 -15
- package/PaginationItem/PaginationItem.js +9 -24
- package/PaginationItem/PaginationItem.mjs +9 -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/PigmentGrid/PigmentGrid.d.mts +1 -1
- package/PigmentGrid/PigmentGrid.d.ts +1 -1
- package/PigmentGrid/PigmentGrid.js +1 -1
- package/PigmentGrid/PigmentGrid.mjs +1 -1
- package/Popover/Popover.d.mts +1 -1
- package/Popover/Popover.d.ts +1 -1
- package/Popover/Popover.js +19 -7
- package/Popover/Popover.mjs +18 -6
- 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/Snackbar/Snackbar.d.mts +1 -1
- package/Snackbar/Snackbar.d.ts +1 -1
- package/SpeedDial/SpeedDial.d.mts +1 -1
- package/SpeedDial/SpeedDial.d.ts +1 -1
- package/Stack/Stack.d.mts +2 -2
- package/Stack/Stack.d.ts +2 -2
- package/StepButton/StepButton.js +44 -14
- package/StepButton/StepButton.mjs +44 -14
- 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 +2 -17
- package/StepContent/StepContent.d.ts +2 -17
- 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/Stepper/Stepper.js +54 -22
- package/Stepper/Stepper.mjs +54 -22
- package/Stepper/StepperContext.d.mts +0 -5
- package/Stepper/StepperContext.d.ts +0 -5
- package/Stepper/StepperContext.js +1 -2
- package/Stepper/StepperContext.mjs +0 -1
- 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 +18 -4
- package/Tab/Tab.mjs +18 -4
- 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/TabScrollButton/TabScrollButton.d.mts +1 -1
- package/TabScrollButton/TabScrollButton.d.ts +1 -1
- package/TabScrollButton/TabScrollButton.js +6 -2
- package/TabScrollButton/TabScrollButton.mjs +6 -2
- 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 +6 -8
- package/TableSortLabel/TableSortLabel.mjs +6 -8
- 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 +33 -24
- package/Tabs/Tabs.mjs +32 -23
- 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/ToggleButton/ToggleButton.js +1 -0
- package/ToggleButton/ToggleButton.mjs +1 -0
- 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/Tooltip/Tooltip.d.mts +1 -1
- package/Tooltip/Tooltip.d.ts +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 +2 -12
- package/internal/SwitchBase.d.ts +2 -12
- package/internal/SwitchBase.js +6 -17
- package/internal/SwitchBase.mjs +6 -17
- package/locale/psAF.js +1 -1
- package/locale/psAF.mjs +1 -1
- package/package.json +7 -7
- package/styles/createThemeWithVars.js +10 -9
- package/styles/createThemeWithVars.mjs +10 -9
- package/styles/stringifyTheme.js +1 -1
- package/styles/stringifyTheme.mjs +1 -1
- package/useAutocomplete/useAutocomplete.js +8 -0
- package/useAutocomplete/useAutocomplete.mjs +8 -0
- 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/utils/focusWithVisible.js +24 -0
- package/utils/focusWithVisible.mjs +19 -0
- package/utils/index.d.mts +0 -1
- package/utils/index.d.ts +0 -1
- package/utils/index.js +0 -7
- package/utils/index.mjs +0 -1
- package/utils/useFocusableWhenDisabled.d.mts +30 -0
- package/utils/useFocusableWhenDisabled.d.ts +30 -0
- package/utils/useFocusableWhenDisabled.js +47 -0
- package/utils/useFocusableWhenDisabled.mjs +41 -0
- package/utils/useRovingTabIndex.d.mts +1 -2
- package/utils/useRovingTabIndex.d.ts +1 -2
- package/utils/useRovingTabIndex.js +25 -4
- package/utils/useRovingTabIndex.mjs +1 -2
- package/version/index.js +2 -2
- package/version/index.mjs +2 -2
package/Popover/Popover.js
CHANGED
|
@@ -29,7 +29,7 @@ var _Modal = _interopRequireDefault(require("../Modal"));
|
|
|
29
29
|
var _Paper = _interopRequireDefault(require("../Paper"));
|
|
30
30
|
var _popoverClasses = require("./popoverClasses");
|
|
31
31
|
var _useSlot = _interopRequireDefault(require("../utils/useSlot"));
|
|
32
|
-
var
|
|
32
|
+
var _mergeSlotProps = _interopRequireDefault(require("../utils/mergeSlotProps"));
|
|
33
33
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
34
34
|
function getOffsetTop(rect, vertical) {
|
|
35
35
|
let offset = 0;
|
|
@@ -106,6 +106,7 @@ const Popover = /*#__PURE__*/React.forwardRef(function Popover(inProps, ref) {
|
|
|
106
106
|
children,
|
|
107
107
|
className,
|
|
108
108
|
container: containerProp,
|
|
109
|
+
disableAutoFocus = false,
|
|
109
110
|
elevation = 8,
|
|
110
111
|
marginThreshold = 16,
|
|
111
112
|
open,
|
|
@@ -199,11 +200,11 @@ const Popover = /*#__PURE__*/React.forwardRef(function Popover(inProps, ref) {
|
|
|
199
200
|
const widthThreshold = containerWindow.innerWidth - marginThreshold;
|
|
200
201
|
|
|
201
202
|
// Check if the vertical axis needs shifting
|
|
202
|
-
if (marginThreshold
|
|
203
|
+
if (marginThreshold != null && top < marginThreshold) {
|
|
203
204
|
const diff = top - marginThreshold;
|
|
204
205
|
top -= diff;
|
|
205
206
|
elemTransformOrigin.vertical += diff;
|
|
206
|
-
} else if (marginThreshold
|
|
207
|
+
} else if (marginThreshold != null && bottom > heightThreshold) {
|
|
207
208
|
const diff = bottom - heightThreshold;
|
|
208
209
|
top -= diff;
|
|
209
210
|
elemTransformOrigin.vertical += diff;
|
|
@@ -215,7 +216,7 @@ const Popover = /*#__PURE__*/React.forwardRef(function Popover(inProps, ref) {
|
|
|
215
216
|
}
|
|
216
217
|
|
|
217
218
|
// Check if the horizontal axis needs shifting
|
|
218
|
-
if (marginThreshold
|
|
219
|
+
if (marginThreshold != null && left < marginThreshold) {
|
|
219
220
|
const diff = left - marginThreshold;
|
|
220
221
|
left -= diff;
|
|
221
222
|
elemTransformOrigin.horizontal += diff;
|
|
@@ -237,10 +238,10 @@ const Popover = /*#__PURE__*/React.forwardRef(function Popover(inProps, ref) {
|
|
|
237
238
|
return;
|
|
238
239
|
}
|
|
239
240
|
const positioning = getPositioningStyle(element);
|
|
240
|
-
if (positioning.top
|
|
241
|
+
if (positioning.top != null) {
|
|
241
242
|
element.style.setProperty('top', positioning.top);
|
|
242
243
|
}
|
|
243
|
-
if (positioning.left
|
|
244
|
+
if (positioning.left != null) {
|
|
244
245
|
element.style.left = positioning.left;
|
|
245
246
|
}
|
|
246
247
|
element.style.transformOrigin = positioning.transformOrigin;
|
|
@@ -332,7 +333,7 @@ const Popover = /*#__PURE__*/React.forwardRef(function Popover(inProps, ref) {
|
|
|
332
333
|
backdrop: slots.backdrop
|
|
333
334
|
},
|
|
334
335
|
slotProps: {
|
|
335
|
-
backdrop: (0,
|
|
336
|
+
backdrop: (0, _mergeSlotProps.default)(typeof slotProps.backdrop === 'function' ? slotProps.backdrop(ownerState) : slotProps.backdrop, {
|
|
336
337
|
invisible: true
|
|
337
338
|
})
|
|
338
339
|
},
|
|
@@ -361,6 +362,7 @@ const Popover = /*#__PURE__*/React.forwardRef(function Popover(inProps, ref) {
|
|
|
361
362
|
...(!(0, _isHostComponent.default)(RootSlot) && {
|
|
362
363
|
slots: rootSlotsProp,
|
|
363
364
|
slotProps: rootSlotPropsProp,
|
|
365
|
+
disableAutoFocus,
|
|
364
366
|
disableScrollLock
|
|
365
367
|
}),
|
|
366
368
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(TransitionSlot, {
|
|
@@ -455,6 +457,16 @@ process.env.NODE_ENV !== "production" ? Popover.propTypes /* remove-proptypes */
|
|
|
455
457
|
* so it's simply `document.body` most of the time.
|
|
456
458
|
*/
|
|
457
459
|
container: _propTypes.default /* @typescript-to-proptypes-ignore */.oneOfType([_HTMLElementType.default, _propTypes.default.func]),
|
|
460
|
+
/**
|
|
461
|
+
* If `true`, the modal will not automatically shift focus to itself when it opens, and
|
|
462
|
+
* replace it to the last focused element when it closes.
|
|
463
|
+
* This also works correctly with any modal children that have the `disableAutoFocus` prop.
|
|
464
|
+
*
|
|
465
|
+
* Generally this should never be set to `true` as it makes the modal less
|
|
466
|
+
* accessible to assistive technologies, like screen readers.
|
|
467
|
+
* @default false
|
|
468
|
+
*/
|
|
469
|
+
disableAutoFocus: _propTypes.default.bool,
|
|
458
470
|
/**
|
|
459
471
|
* Disable the scroll lock behavior.
|
|
460
472
|
* @default false
|
package/Popover/Popover.mjs
CHANGED
|
@@ -20,7 +20,7 @@ import Modal from "../Modal/index.mjs";
|
|
|
20
20
|
import PaperBase from "../Paper/index.mjs";
|
|
21
21
|
import { getPopoverUtilityClass } from "./popoverClasses.mjs";
|
|
22
22
|
import useSlot from "../utils/useSlot.mjs";
|
|
23
|
-
import
|
|
23
|
+
import mergeSlotProps from "../utils/mergeSlotProps.mjs";
|
|
24
24
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
25
25
|
export function getOffsetTop(rect, vertical) {
|
|
26
26
|
let offset = 0;
|
|
@@ -97,6 +97,7 @@ const Popover = /*#__PURE__*/React.forwardRef(function Popover(inProps, ref) {
|
|
|
97
97
|
children,
|
|
98
98
|
className,
|
|
99
99
|
container: containerProp,
|
|
100
|
+
disableAutoFocus = false,
|
|
100
101
|
elevation = 8,
|
|
101
102
|
marginThreshold = 16,
|
|
102
103
|
open,
|
|
@@ -190,11 +191,11 @@ const Popover = /*#__PURE__*/React.forwardRef(function Popover(inProps, ref) {
|
|
|
190
191
|
const widthThreshold = containerWindow.innerWidth - marginThreshold;
|
|
191
192
|
|
|
192
193
|
// Check if the vertical axis needs shifting
|
|
193
|
-
if (marginThreshold
|
|
194
|
+
if (marginThreshold != null && top < marginThreshold) {
|
|
194
195
|
const diff = top - marginThreshold;
|
|
195
196
|
top -= diff;
|
|
196
197
|
elemTransformOrigin.vertical += diff;
|
|
197
|
-
} else if (marginThreshold
|
|
198
|
+
} else if (marginThreshold != null && bottom > heightThreshold) {
|
|
198
199
|
const diff = bottom - heightThreshold;
|
|
199
200
|
top -= diff;
|
|
200
201
|
elemTransformOrigin.vertical += diff;
|
|
@@ -206,7 +207,7 @@ const Popover = /*#__PURE__*/React.forwardRef(function Popover(inProps, ref) {
|
|
|
206
207
|
}
|
|
207
208
|
|
|
208
209
|
// Check if the horizontal axis needs shifting
|
|
209
|
-
if (marginThreshold
|
|
210
|
+
if (marginThreshold != null && left < marginThreshold) {
|
|
210
211
|
const diff = left - marginThreshold;
|
|
211
212
|
left -= diff;
|
|
212
213
|
elemTransformOrigin.horizontal += diff;
|
|
@@ -228,10 +229,10 @@ const Popover = /*#__PURE__*/React.forwardRef(function Popover(inProps, ref) {
|
|
|
228
229
|
return;
|
|
229
230
|
}
|
|
230
231
|
const positioning = getPositioningStyle(element);
|
|
231
|
-
if (positioning.top
|
|
232
|
+
if (positioning.top != null) {
|
|
232
233
|
element.style.setProperty('top', positioning.top);
|
|
233
234
|
}
|
|
234
|
-
if (positioning.left
|
|
235
|
+
if (positioning.left != null) {
|
|
235
236
|
element.style.left = positioning.left;
|
|
236
237
|
}
|
|
237
238
|
element.style.transformOrigin = positioning.transformOrigin;
|
|
@@ -352,6 +353,7 @@ const Popover = /*#__PURE__*/React.forwardRef(function Popover(inProps, ref) {
|
|
|
352
353
|
...(!isHostComponent(RootSlot) && {
|
|
353
354
|
slots: rootSlotsProp,
|
|
354
355
|
slotProps: rootSlotPropsProp,
|
|
356
|
+
disableAutoFocus,
|
|
355
357
|
disableScrollLock
|
|
356
358
|
}),
|
|
357
359
|
children: /*#__PURE__*/_jsx(TransitionSlot, {
|
|
@@ -446,6 +448,16 @@ process.env.NODE_ENV !== "production" ? Popover.propTypes /* remove-proptypes */
|
|
|
446
448
|
* so it's simply `document.body` most of the time.
|
|
447
449
|
*/
|
|
448
450
|
container: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([HTMLElementType, PropTypes.func]),
|
|
451
|
+
/**
|
|
452
|
+
* If `true`, the modal will not automatically shift focus to itself when it opens, and
|
|
453
|
+
* replace it to the last focused element when it closes.
|
|
454
|
+
* This also works correctly with any modal children that have the `disableAutoFocus` prop.
|
|
455
|
+
*
|
|
456
|
+
* Generally this should never be set to `true` as it makes the modal less
|
|
457
|
+
* accessible to assistive technologies, like screen readers.
|
|
458
|
+
* @default false
|
|
459
|
+
*/
|
|
460
|
+
disableAutoFocus: PropTypes.bool,
|
|
449
461
|
/**
|
|
450
462
|
* Disable the scroll lock behavior.
|
|
451
463
|
* @default false
|
package/Radio/Radio.js
CHANGED
|
@@ -10,7 +10,6 @@ exports.default = void 0;
|
|
|
10
10
|
var React = _interopRequireWildcard(require("react"));
|
|
11
11
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
12
12
|
var _clsx = _interopRequireDefault(require("clsx"));
|
|
13
|
-
var _refType = _interopRequireDefault(require("@mui/utils/refType"));
|
|
14
13
|
var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
|
|
15
14
|
var _SwitchBase = _interopRequireDefault(require("../internal/SwitchBase"));
|
|
16
15
|
var _RadioButtonIcon = _interopRequireDefault(require("./RadioButtonIcon"));
|
|
@@ -134,7 +133,6 @@ const Radio = /*#__PURE__*/React.forwardRef(function Radio(inProps, ref) {
|
|
|
134
133
|
disableRipple = false,
|
|
135
134
|
slots = {},
|
|
136
135
|
slotProps = {},
|
|
137
|
-
inputProps,
|
|
138
136
|
...other
|
|
139
137
|
} = props;
|
|
140
138
|
const muiFormControl = (0, _useFormControl.default)();
|
|
@@ -165,7 +163,7 @@ const Radio = /*#__PURE__*/React.forwardRef(function Radio(inProps, ref) {
|
|
|
165
163
|
name = radioGroup.name;
|
|
166
164
|
}
|
|
167
165
|
}
|
|
168
|
-
const externalInputProps = slotProps.input
|
|
166
|
+
const externalInputProps = slotProps.input;
|
|
169
167
|
const [RootSlot, rootSlotProps] = (0, _useSlot.default)('root', {
|
|
170
168
|
ref,
|
|
171
169
|
elementType: RadioRoot,
|
|
@@ -254,16 +252,6 @@ process.env.NODE_ENV !== "production" ? Radio.propTypes /* remove-proptypes */ =
|
|
|
254
252
|
* The id of the `input` element.
|
|
255
253
|
*/
|
|
256
254
|
id: _propTypes.default.string,
|
|
257
|
-
/**
|
|
258
|
-
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#attributes) applied to the `input` element.
|
|
259
|
-
* @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.
|
|
260
|
-
*/
|
|
261
|
-
inputProps: _propTypes.default.object,
|
|
262
|
-
/**
|
|
263
|
-
* Pass a ref to the `input` element.
|
|
264
|
-
* @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.
|
|
265
|
-
*/
|
|
266
|
-
inputRef: _refType.default,
|
|
267
255
|
/**
|
|
268
256
|
* Name attribute of the `input` element.
|
|
269
257
|
*/
|
package/Radio/Radio.mjs
CHANGED
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import clsx from 'clsx';
|
|
6
|
-
import refType from '@mui/utils/refType';
|
|
7
6
|
import composeClasses from '@mui/utils/composeClasses';
|
|
8
7
|
import SwitchBase from "../internal/SwitchBase.mjs";
|
|
9
8
|
import RadioButtonIcon from "./RadioButtonIcon.mjs";
|
|
@@ -127,7 +126,6 @@ const Radio = /*#__PURE__*/React.forwardRef(function Radio(inProps, ref) {
|
|
|
127
126
|
disableRipple = false,
|
|
128
127
|
slots = {},
|
|
129
128
|
slotProps = {},
|
|
130
|
-
inputProps,
|
|
131
129
|
...other
|
|
132
130
|
} = props;
|
|
133
131
|
const muiFormControl = useFormControl();
|
|
@@ -158,7 +156,7 @@ const Radio = /*#__PURE__*/React.forwardRef(function Radio(inProps, ref) {
|
|
|
158
156
|
name = radioGroup.name;
|
|
159
157
|
}
|
|
160
158
|
}
|
|
161
|
-
const externalInputProps = slotProps.input
|
|
159
|
+
const externalInputProps = slotProps.input;
|
|
162
160
|
const [RootSlot, rootSlotProps] = useSlot('root', {
|
|
163
161
|
ref,
|
|
164
162
|
elementType: RadioRoot,
|
|
@@ -247,16 +245,6 @@ process.env.NODE_ENV !== "production" ? Radio.propTypes /* remove-proptypes */ =
|
|
|
247
245
|
* The id of the `input` element.
|
|
248
246
|
*/
|
|
249
247
|
id: PropTypes.string,
|
|
250
|
-
/**
|
|
251
|
-
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#attributes) applied to the `input` element.
|
|
252
|
-
* @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.
|
|
253
|
-
*/
|
|
254
|
-
inputProps: PropTypes.object,
|
|
255
|
-
/**
|
|
256
|
-
* Pass a ref to the `input` element.
|
|
257
|
-
* @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.
|
|
258
|
-
*/
|
|
259
|
-
inputRef: refType,
|
|
260
248
|
/**
|
|
261
249
|
* Name attribute of the `input` element.
|
|
262
250
|
*/
|
package/Rating/Rating.d.mts
CHANGED
|
@@ -104,15 +104,6 @@ export interface RatingOwnProps extends RatingSlotsAndSlotProps {
|
|
|
104
104
|
* @default <Star fontSize="inherit" />
|
|
105
105
|
*/
|
|
106
106
|
icon?: React.ReactNode;
|
|
107
|
-
/**
|
|
108
|
-
* The component containing the icon.
|
|
109
|
-
* @deprecated Use `slotProps.icon.component` 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.
|
|
110
|
-
* @default function IconContainer(props) {
|
|
111
|
-
* const { value, ...other } = props;
|
|
112
|
-
* return <span {...other} />;
|
|
113
|
-
* }
|
|
114
|
-
*/
|
|
115
|
-
IconContainerComponent?: React.ElementType<IconContainerProps> | undefined;
|
|
116
107
|
/**
|
|
117
108
|
* Maximum rating.
|
|
118
109
|
* @default 5
|
package/Rating/Rating.d.ts
CHANGED
|
@@ -104,15 +104,6 @@ export interface RatingOwnProps extends RatingSlotsAndSlotProps {
|
|
|
104
104
|
* @default <Star fontSize="inherit" />
|
|
105
105
|
*/
|
|
106
106
|
icon?: React.ReactNode;
|
|
107
|
-
/**
|
|
108
|
-
* The component containing the icon.
|
|
109
|
-
* @deprecated Use `slotProps.icon.component` 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.
|
|
110
|
-
* @default function IconContainer(props) {
|
|
111
|
-
* const { value, ...other } = props;
|
|
112
|
-
* return <span {...other} />;
|
|
113
|
-
* }
|
|
114
|
-
*/
|
|
115
|
-
IconContainerComponent?: React.ElementType<IconContainerProps> | undefined;
|
|
116
107
|
/**
|
|
117
108
|
* Maximum rating.
|
|
118
109
|
* @default 5
|
package/Rating/Rating.js
CHANGED
|
@@ -217,7 +217,6 @@ function RatingItem(props) {
|
|
|
217
217
|
highlightSelectedOnly,
|
|
218
218
|
hover,
|
|
219
219
|
icon,
|
|
220
|
-
IconContainerComponent,
|
|
221
220
|
isActive,
|
|
222
221
|
itemValue,
|
|
223
222
|
labelProps,
|
|
@@ -263,9 +262,7 @@ function RatingItem(props) {
|
|
|
263
262
|
value: itemValue
|
|
264
263
|
},
|
|
265
264
|
internalForwardedProps: {
|
|
266
|
-
|
|
267
|
-
// only forward if `slots.icon` is NOT provided
|
|
268
|
-
as: IconContainerComponent
|
|
265
|
+
as: IconContainer
|
|
269
266
|
}
|
|
270
267
|
});
|
|
271
268
|
const [LabelSlot, labelSlotProps] = (0, _useSlot.default)('label', {
|
|
@@ -321,7 +318,6 @@ process.env.NODE_ENV !== "production" ? RatingItem.propTypes = {
|
|
|
321
318
|
highlightSelectedOnly: _propTypes.default.bool.isRequired,
|
|
322
319
|
hover: _propTypes.default.number.isRequired,
|
|
323
320
|
icon: _propTypes.default.node,
|
|
324
|
-
IconContainerComponent: _propTypes.default.elementType.isRequired,
|
|
325
321
|
isActive: _propTypes.default.bool.isRequired,
|
|
326
322
|
itemValue: _propTypes.default.number.isRequired,
|
|
327
323
|
labelProps: _propTypes.default.object,
|
|
@@ -361,7 +357,6 @@ const Rating = /*#__PURE__*/React.forwardRef(function Rating(inProps, ref) {
|
|
|
361
357
|
getLabelText = defaultLabelText,
|
|
362
358
|
highlightSelectedOnly = false,
|
|
363
359
|
icon = defaultIcon,
|
|
364
|
-
IconContainerComponent = IconContainer,
|
|
365
360
|
max = 5,
|
|
366
361
|
name: nameProp,
|
|
367
362
|
onChange,
|
|
@@ -504,7 +499,6 @@ const Rating = /*#__PURE__*/React.forwardRef(function Rating(inProps, ref) {
|
|
|
504
499
|
focusVisible,
|
|
505
500
|
getLabelText,
|
|
506
501
|
icon,
|
|
507
|
-
IconContainerComponent,
|
|
508
502
|
max,
|
|
509
503
|
precision,
|
|
510
504
|
readOnly,
|
|
@@ -566,7 +560,6 @@ const Rating = /*#__PURE__*/React.forwardRef(function Rating(inProps, ref) {
|
|
|
566
560
|
highlightSelectedOnly,
|
|
567
561
|
hover,
|
|
568
562
|
icon,
|
|
569
|
-
IconContainerComponent,
|
|
570
563
|
name,
|
|
571
564
|
onBlur: handleBlur,
|
|
572
565
|
onChange: handleChange,
|
|
@@ -692,15 +685,6 @@ process.env.NODE_ENV !== "production" ? Rating.propTypes /* remove-proptypes */
|
|
|
692
685
|
* @default <Star fontSize="inherit" />
|
|
693
686
|
*/
|
|
694
687
|
icon: _propTypes.default.node,
|
|
695
|
-
/**
|
|
696
|
-
* The component containing the icon.
|
|
697
|
-
* @deprecated Use `slotProps.icon.component` 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.
|
|
698
|
-
* @default function IconContainer(props) {
|
|
699
|
-
* const { value, ...other } = props;
|
|
700
|
-
* return <span {...other} />;
|
|
701
|
-
* }
|
|
702
|
-
*/
|
|
703
|
-
IconContainerComponent: _propTypes.default.elementType,
|
|
704
688
|
/**
|
|
705
689
|
* Maximum rating.
|
|
706
690
|
* @default 5
|
package/Rating/Rating.mjs
CHANGED
|
@@ -210,7 +210,6 @@ function RatingItem(props) {
|
|
|
210
210
|
highlightSelectedOnly,
|
|
211
211
|
hover,
|
|
212
212
|
icon,
|
|
213
|
-
IconContainerComponent,
|
|
214
213
|
isActive,
|
|
215
214
|
itemValue,
|
|
216
215
|
labelProps,
|
|
@@ -256,9 +255,7 @@ function RatingItem(props) {
|
|
|
256
255
|
value: itemValue
|
|
257
256
|
},
|
|
258
257
|
internalForwardedProps: {
|
|
259
|
-
|
|
260
|
-
// only forward if `slots.icon` is NOT provided
|
|
261
|
-
as: IconContainerComponent
|
|
258
|
+
as: IconContainer
|
|
262
259
|
}
|
|
263
260
|
});
|
|
264
261
|
const [LabelSlot, labelSlotProps] = useSlot('label', {
|
|
@@ -314,7 +311,6 @@ process.env.NODE_ENV !== "production" ? RatingItem.propTypes = {
|
|
|
314
311
|
highlightSelectedOnly: PropTypes.bool.isRequired,
|
|
315
312
|
hover: PropTypes.number.isRequired,
|
|
316
313
|
icon: PropTypes.node,
|
|
317
|
-
IconContainerComponent: PropTypes.elementType.isRequired,
|
|
318
314
|
isActive: PropTypes.bool.isRequired,
|
|
319
315
|
itemValue: PropTypes.number.isRequired,
|
|
320
316
|
labelProps: PropTypes.object,
|
|
@@ -354,7 +350,6 @@ const Rating = /*#__PURE__*/React.forwardRef(function Rating(inProps, ref) {
|
|
|
354
350
|
getLabelText = defaultLabelText,
|
|
355
351
|
highlightSelectedOnly = false,
|
|
356
352
|
icon = defaultIcon,
|
|
357
|
-
IconContainerComponent = IconContainer,
|
|
358
353
|
max = 5,
|
|
359
354
|
name: nameProp,
|
|
360
355
|
onChange,
|
|
@@ -497,7 +492,6 @@ const Rating = /*#__PURE__*/React.forwardRef(function Rating(inProps, ref) {
|
|
|
497
492
|
focusVisible,
|
|
498
493
|
getLabelText,
|
|
499
494
|
icon,
|
|
500
|
-
IconContainerComponent,
|
|
501
495
|
max,
|
|
502
496
|
precision,
|
|
503
497
|
readOnly,
|
|
@@ -559,7 +553,6 @@ const Rating = /*#__PURE__*/React.forwardRef(function Rating(inProps, ref) {
|
|
|
559
553
|
highlightSelectedOnly,
|
|
560
554
|
hover,
|
|
561
555
|
icon,
|
|
562
|
-
IconContainerComponent,
|
|
563
556
|
name,
|
|
564
557
|
onBlur: handleBlur,
|
|
565
558
|
onChange: handleChange,
|
|
@@ -685,15 +678,6 @@ process.env.NODE_ENV !== "production" ? Rating.propTypes /* remove-proptypes */
|
|
|
685
678
|
* @default <Star fontSize="inherit" />
|
|
686
679
|
*/
|
|
687
680
|
icon: PropTypes.node,
|
|
688
|
-
/**
|
|
689
|
-
* The component containing the icon.
|
|
690
|
-
* @deprecated Use `slotProps.icon.component` 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.
|
|
691
|
-
* @default function IconContainer(props) {
|
|
692
|
-
* const { value, ...other } = props;
|
|
693
|
-
* return <span {...other} />;
|
|
694
|
-
* }
|
|
695
|
-
*/
|
|
696
|
-
IconContainerComponent: PropTypes.elementType,
|
|
697
681
|
/**
|
|
698
682
|
* Maximum rating.
|
|
699
683
|
* @default 5
|
package/Select/SelectInput.js
CHANGED
|
@@ -16,7 +16,6 @@ var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"
|
|
|
16
16
|
var _useId = _interopRequireDefault(require("@mui/utils/useId"));
|
|
17
17
|
var _refType = _interopRequireDefault(require("@mui/utils/refType"));
|
|
18
18
|
var _ownerDocument = _interopRequireDefault(require("../utils/ownerDocument"));
|
|
19
|
-
var _capitalize = _interopRequireDefault(require("../utils/capitalize"));
|
|
20
19
|
var _Menu = _interopRequireDefault(require("../Menu/Menu"));
|
|
21
20
|
var _NativeSelectInput = require("../NativeSelect/NativeSelectInput");
|
|
22
21
|
var _utils = require("../InputBase/utils");
|
|
@@ -67,7 +66,7 @@ const SelectIcon = (0, _zeroStyled.styled)(_NativeSelectInput.StyledSelectIcon,
|
|
|
67
66
|
const {
|
|
68
67
|
ownerState
|
|
69
68
|
} = props;
|
|
70
|
-
return [styles.icon, ownerState.
|
|
69
|
+
return [styles.icon, ownerState.open && styles.iconOpen];
|
|
71
70
|
}
|
|
72
71
|
})({});
|
|
73
72
|
const SelectNativeInput = (0, _zeroStyled.styled)('input', {
|
|
@@ -94,7 +93,7 @@ const useUtilityClasses = ownerState => {
|
|
|
94
93
|
} = ownerState;
|
|
95
94
|
const slots = {
|
|
96
95
|
select: ['select', variant, disabled && 'disabled', multiple && 'multiple', error && 'error'],
|
|
97
|
-
icon: ['icon',
|
|
96
|
+
icon: ['icon', open && 'iconOpen', disabled && 'disabled'],
|
|
98
97
|
nativeInput: ['nativeInput']
|
|
99
98
|
};
|
|
100
99
|
return (0, _composeClasses.default)(slots, _selectClasses.getSelectUtilityClasses, classes);
|
package/Select/SelectInput.mjs
CHANGED
|
@@ -10,7 +10,6 @@ import composeClasses from '@mui/utils/composeClasses';
|
|
|
10
10
|
import useId from '@mui/utils/useId';
|
|
11
11
|
import refType from '@mui/utils/refType';
|
|
12
12
|
import ownerDocument from "../utils/ownerDocument.mjs";
|
|
13
|
-
import capitalize from "../utils/capitalize.mjs";
|
|
14
13
|
import Menu from "../Menu/Menu.mjs";
|
|
15
14
|
import { StyledSelectSelect, StyledSelectIcon } from "../NativeSelect/NativeSelectInput.mjs";
|
|
16
15
|
import { isFilled } from "../InputBase/utils.mjs";
|
|
@@ -60,7 +59,7 @@ const SelectIcon = styled(StyledSelectIcon, {
|
|
|
60
59
|
const {
|
|
61
60
|
ownerState
|
|
62
61
|
} = props;
|
|
63
|
-
return [styles.icon, ownerState.
|
|
62
|
+
return [styles.icon, ownerState.open && styles.iconOpen];
|
|
64
63
|
}
|
|
65
64
|
})({});
|
|
66
65
|
const SelectNativeInput = styled('input', {
|
|
@@ -87,7 +86,7 @@ const useUtilityClasses = ownerState => {
|
|
|
87
86
|
} = ownerState;
|
|
88
87
|
const slots = {
|
|
89
88
|
select: ['select', variant, disabled && 'disabled', multiple && 'multiple', error && 'error'],
|
|
90
|
-
icon: ['icon',
|
|
89
|
+
icon: ['icon', open && 'iconOpen', disabled && 'disabled'],
|
|
91
90
|
nativeInput: ['nativeInput']
|
|
92
91
|
};
|
|
93
92
|
return composeClasses(slots, getSelectUtilityClasses, classes);
|
|
@@ -19,18 +19,6 @@ export interface SelectClasses {
|
|
|
19
19
|
icon: string;
|
|
20
20
|
/** Styles applied to the icon component if the popup is open. */
|
|
21
21
|
iconOpen: string;
|
|
22
|
-
/** Styles applied to the icon component if `variant="filled"`.
|
|
23
|
-
* @deprecated Combine the [.MuiSelect-icon](/material-ui/api/select/#select-classes-MuiSelect-icon) and [.MuiSelect-filled](/material-ui/api/select/#select-classes-MuiSelect-filled) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
24
|
-
*/
|
|
25
|
-
iconFilled: string;
|
|
26
|
-
/** Styles applied to the icon component if `variant="outlined"`.
|
|
27
|
-
* @deprecated Combine the [.MuiSelect-icon](/material-ui/api/select/#select-classes-MuiSelect-icon) and [.MuiSelect-outlined](/material-ui/api/select/#select-classes-MuiSelect-outlined) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
28
|
-
*/
|
|
29
|
-
iconOutlined: string;
|
|
30
|
-
/** Styles applied to the icon component if `variant="standard"`.
|
|
31
|
-
* @deprecated Combine the [.MuiSelect-icon](/material-ui/api/select/#select-classes-MuiSelect-icon) and [.MuiSelect-standard](/material-ui/api/select/#select-classes-MuiSelect-standard) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
32
|
-
*/
|
|
33
|
-
iconStandard: string;
|
|
34
22
|
/** Styles applied to the underlying native input component. */
|
|
35
23
|
nativeInput: string;
|
|
36
24
|
/** State class applied to the root element if `error={true}`. */
|
|
@@ -19,18 +19,6 @@ export interface SelectClasses {
|
|
|
19
19
|
icon: string;
|
|
20
20
|
/** Styles applied to the icon component if the popup is open. */
|
|
21
21
|
iconOpen: string;
|
|
22
|
-
/** Styles applied to the icon component if `variant="filled"`.
|
|
23
|
-
* @deprecated Combine the [.MuiSelect-icon](/material-ui/api/select/#select-classes-MuiSelect-icon) and [.MuiSelect-filled](/material-ui/api/select/#select-classes-MuiSelect-filled) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
24
|
-
*/
|
|
25
|
-
iconFilled: string;
|
|
26
|
-
/** Styles applied to the icon component if `variant="outlined"`.
|
|
27
|
-
* @deprecated Combine the [.MuiSelect-icon](/material-ui/api/select/#select-classes-MuiSelect-icon) and [.MuiSelect-outlined](/material-ui/api/select/#select-classes-MuiSelect-outlined) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
28
|
-
*/
|
|
29
|
-
iconOutlined: string;
|
|
30
|
-
/** Styles applied to the icon component if `variant="standard"`.
|
|
31
|
-
* @deprecated Combine the [.MuiSelect-icon](/material-ui/api/select/#select-classes-MuiSelect-icon) and [.MuiSelect-standard](/material-ui/api/select/#select-classes-MuiSelect-standard) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
32
|
-
*/
|
|
33
|
-
iconStandard: string;
|
|
34
22
|
/** Styles applied to the underlying native input component. */
|
|
35
23
|
nativeInput: string;
|
|
36
24
|
/** State class applied to the root element if `error={true}`. */
|
package/Select/selectClasses.js
CHANGED
|
@@ -11,5 +11,5 @@ var _generateUtilityClass = _interopRequireDefault(require("@mui/utils/generateU
|
|
|
11
11
|
function getSelectUtilityClasses(slot) {
|
|
12
12
|
return (0, _generateUtilityClass.default)('MuiSelect', slot);
|
|
13
13
|
}
|
|
14
|
-
const selectClasses = (0, _generateUtilityClasses.default)('MuiSelect', ['root', 'select', 'multiple', 'filled', 'outlined', 'standard', 'disabled', 'focused', 'icon', 'iconOpen', '
|
|
14
|
+
const selectClasses = (0, _generateUtilityClasses.default)('MuiSelect', ['root', 'select', 'multiple', 'filled', 'outlined', 'standard', 'disabled', 'focused', 'icon', 'iconOpen', 'nativeInput', 'error']);
|
|
15
15
|
var _default = exports.default = selectClasses;
|
package/Select/selectClasses.mjs
CHANGED
|
@@ -3,5 +3,5 @@ import generateUtilityClass from '@mui/utils/generateUtilityClass';
|
|
|
3
3
|
export function getSelectUtilityClasses(slot) {
|
|
4
4
|
return generateUtilityClass('MuiSelect', slot);
|
|
5
5
|
}
|
|
6
|
-
const selectClasses = generateUtilityClasses('MuiSelect', ['root', 'select', 'multiple', 'filled', 'outlined', 'standard', 'disabled', 'focused', 'icon', 'iconOpen', '
|
|
6
|
+
const selectClasses = generateUtilityClasses('MuiSelect', ['root', 'select', 'multiple', 'filled', 'outlined', 'standard', 'disabled', 'focused', 'icon', 'iconOpen', 'nativeInput', 'error']);
|
|
7
7
|
export default selectClasses;
|
package/Slider/Slider.d.mts
CHANGED
|
@@ -101,11 +101,6 @@ export type SliderSlotsAndSlotProps = CreateSlotsAndSlotProps<SliderSlots, {
|
|
|
101
101
|
*/
|
|
102
102
|
input: SlotProps<'input', SliderInputSlotPropsOverrides, SliderOwnerState>;
|
|
103
103
|
}>;
|
|
104
|
-
|
|
105
|
-
/**
|
|
106
|
-
* @deprecated Use `SliderRootSlotPropsOverrides` instead.
|
|
107
|
-
*/
|
|
108
|
-
export interface SliderComponentsPropsOverrides {}
|
|
109
104
|
export interface SliderOwnerState extends SliderProps {
|
|
110
105
|
dragging: boolean;
|
|
111
106
|
marked: boolean;
|
package/Slider/Slider.d.ts
CHANGED
|
@@ -101,11 +101,6 @@ export type SliderSlotsAndSlotProps = CreateSlotsAndSlotProps<SliderSlots, {
|
|
|
101
101
|
*/
|
|
102
102
|
input: SlotProps<'input', SliderInputSlotPropsOverrides, SliderOwnerState>;
|
|
103
103
|
}>;
|
|
104
|
-
|
|
105
|
-
/**
|
|
106
|
-
* @deprecated Use `SliderRootSlotPropsOverrides` instead.
|
|
107
|
-
*/
|
|
108
|
-
export interface SliderComponentsPropsOverrides {}
|
|
109
104
|
export interface SliderOwnerState extends SliderProps {
|
|
110
105
|
dragging: boolean;
|
|
111
106
|
marked: boolean;
|
package/Slider/Slider.js
CHANGED
|
@@ -239,13 +239,7 @@ const SliderTrack = exports.SliderTrack = (0, _zeroStyled.styled)('span', {
|
|
|
239
239
|
}));
|
|
240
240
|
const SliderThumb = exports.SliderThumb = (0, _zeroStyled.styled)('span', {
|
|
241
241
|
name: 'MuiSlider',
|
|
242
|
-
slot: 'Thumb'
|
|
243
|
-
overridesResolver: (props, styles) => {
|
|
244
|
-
const {
|
|
245
|
-
ownerState
|
|
246
|
-
} = props;
|
|
247
|
-
return [styles.thumb, styles[`thumbColor${(0, _capitalize.default)(ownerState.color)}`], ownerState.size !== 'medium' && styles[`thumbSize${(0, _capitalize.default)(ownerState.size)}`]];
|
|
248
|
-
}
|
|
242
|
+
slot: 'Thumb'
|
|
249
243
|
})((0, _memoTheme.default)(({
|
|
250
244
|
theme
|
|
251
245
|
}) => ({
|
|
@@ -542,7 +536,7 @@ const useUtilityClasses = ownerState => {
|
|
|
542
536
|
markLabel: ['markLabel'],
|
|
543
537
|
markLabelActive: ['markLabelActive'],
|
|
544
538
|
valueLabel: ['valueLabel'],
|
|
545
|
-
thumb: ['thumb', disabled && 'disabled'
|
|
539
|
+
thumb: ['thumb', disabled && 'disabled'],
|
|
546
540
|
active: ['active'],
|
|
547
541
|
disabled: ['disabled'],
|
|
548
542
|
focusVisible: ['focusVisible']
|
package/Slider/Slider.mjs
CHANGED
|
@@ -232,13 +232,7 @@ export const SliderTrack = styled('span', {
|
|
|
232
232
|
}));
|
|
233
233
|
export const SliderThumb = styled('span', {
|
|
234
234
|
name: 'MuiSlider',
|
|
235
|
-
slot: 'Thumb'
|
|
236
|
-
overridesResolver: (props, styles) => {
|
|
237
|
-
const {
|
|
238
|
-
ownerState
|
|
239
|
-
} = props;
|
|
240
|
-
return [styles.thumb, styles[`thumbColor${capitalize(ownerState.color)}`], ownerState.size !== 'medium' && styles[`thumbSize${capitalize(ownerState.size)}`]];
|
|
241
|
-
}
|
|
235
|
+
slot: 'Thumb'
|
|
242
236
|
})(memoTheme(({
|
|
243
237
|
theme
|
|
244
238
|
}) => ({
|
|
@@ -536,7 +530,7 @@ const useUtilityClasses = ownerState => {
|
|
|
536
530
|
markLabel: ['markLabel'],
|
|
537
531
|
markLabelActive: ['markLabelActive'],
|
|
538
532
|
valueLabel: ['valueLabel'],
|
|
539
|
-
thumb: ['thumb', disabled && 'disabled'
|
|
533
|
+
thumb: ['thumb', disabled && 'disabled'],
|
|
540
534
|
active: ['active'],
|
|
541
535
|
disabled: ['disabled'],
|
|
542
536
|
focusVisible: ['focusVisible']
|
|
@@ -45,34 +45,6 @@ export interface SliderClasses {
|
|
|
45
45
|
markLabelActive: string;
|
|
46
46
|
/** Styles applied to the root element if `size="small"`. */
|
|
47
47
|
sizeSmall: string;
|
|
48
|
-
/** Styles applied to the thumb element if `color="primary"`.
|
|
49
|
-
* @deprecated Combine the [.MuiSlider-thumb](/material-ui/api/slider/#Slider-css-MuiSlider-thumb) and [.MuiSlider-colorPrimary](/material-ui/api/slider/#slider-classes-MuiSlider-colorPrimary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
50
|
-
*/
|
|
51
|
-
thumbColorPrimary: string;
|
|
52
|
-
/** Styles applied to the thumb element if `color="secondary"`.
|
|
53
|
-
* @deprecated Combine the [.MuiSlider-thumb](/material-ui/api/slider/#Slider-css-MuiSlider-thumb) and [.MuiSlider-colorSecondary](/material-ui/api/slider/#slider-classes-MuiSlider-colorSecondary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
54
|
-
*/
|
|
55
|
-
thumbColorSecondary: string;
|
|
56
|
-
/** Styles applied to the thumb element if `color="error"`.
|
|
57
|
-
* @deprecated Combine the [.MuiSlider-thumb](/material-ui/api/slider/#Slider-css-MuiSlider-thumb) and [.MuiSlider-colorError](/material-ui/api/slider/#slider-classes-MuiSlider-colorError) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
58
|
-
*/
|
|
59
|
-
thumbColorError: string;
|
|
60
|
-
/** Styles applied to the thumb element if `color="info"`.
|
|
61
|
-
* @deprecated Combine the [.MuiSlider-thumb](/material-ui/api/slider/#Slider-css-MuiSlider-thumb) and [.MuiSlider-colorInfo](/material-ui/api/slider/#slider-classes-MuiSlider-colorInfo) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
62
|
-
*/
|
|
63
|
-
thumbColorInfo: string;
|
|
64
|
-
/** Styles applied to the thumb element if `color="success"`.
|
|
65
|
-
* @deprecated Combine the [.MuiSlider-thumb](/material-ui/api/slider/#Slider-css-MuiSlider-thumb) and [.MuiSlider-colorSuccess](/material-ui/api/slider/#slider-classes-MuiSlider-colorSuccess) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
66
|
-
*/
|
|
67
|
-
thumbColorSuccess: string;
|
|
68
|
-
/** Styles applied to the thumb element if `color="warning"`.
|
|
69
|
-
* @deprecated Combine the [.MuiSlider-thumb](/material-ui/api/slider/#Slider-css-MuiSlider-thumb) and [.MuiSlider-colorWarning](/material-ui/api/slider/#slider-classes-MuiSlider-colorWarning) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
70
|
-
*/
|
|
71
|
-
thumbColorWarning: string;
|
|
72
|
-
/** Styles applied to the thumb element if `size="small"`.
|
|
73
|
-
* @deprecated Combine the [.MuiSlider-thumb](/material-ui/api/slider/#Slider-css-MuiSlider-thumb) and [.MuiSlider-sizeSmall](/material-ui/api/slider/#slider-classes-MuiSlider-sizeSmall) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
74
|
-
*/
|
|
75
|
-
thumbSizeSmall: string;
|
|
76
48
|
/** Styles applied to the thumb label element. */
|
|
77
49
|
valueLabel: string;
|
|
78
50
|
/** Styles applied to the thumb label element if it's open. */
|