@mui/material 5.13.2 → 5.13.3
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/accordionClasses.d.ts +18 -18
- package/AccordionActions/accordionActionsClasses.d.ts +10 -10
- package/AccordionDetails/accordionDetailsClasses.d.ts +8 -8
- package/AccordionSummary/accordionSummaryClasses.d.ts +22 -22
- package/Alert/alertClasses.d.ts +44 -44
- package/AlertTitle/alertTitleClasses.d.ts +8 -8
- package/AppBar/appBarClasses.d.ts +28 -28
- package/Autocomplete/Autocomplete.d.ts +1 -0
- package/Autocomplete/Autocomplete.js +14 -2
- package/Autocomplete/autocompleteClasses.d.ts +56 -56
- package/Avatar/avatarClasses.d.ts +20 -20
- package/AvatarGroup/avatarGroupClasses.d.ts +10 -10
- package/Backdrop/backdropClasses.d.ts +10 -10
- package/Badge/badgeClasses.d.ts +56 -56
- package/BottomNavigation/BottomNavigation.js +0 -0
- package/BottomNavigation/bottomNavigationClasses.d.ts +8 -8
- package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +14 -14
- package/Breadcrumbs/breadcrumbsClasses.d.ts +14 -14
- package/Button/buttonClasses.d.ts +100 -100
- package/ButtonBase/buttonBaseClasses.d.ts +12 -12
- package/ButtonBase/touchRippleClasses.d.ts +20 -20
- package/ButtonGroup/ButtonGroupContext.d.ts +18 -18
- package/ButtonGroup/buttonGroupClasses.d.ts +58 -58
- package/CHANGELOG.md +52 -0
- package/Card/cardClasses.d.ts +8 -8
- package/CardActionArea/cardActionAreaClasses.d.ts +12 -12
- package/CardActions/cardActionsClasses.d.ts +10 -10
- package/CardContent/cardContentClasses.d.ts +8 -8
- package/CardHeader/cardHeaderClasses.d.ts +18 -18
- package/CardMedia/cardMediaClasses.d.ts +12 -12
- package/Checkbox/checkboxClasses.d.ts +18 -18
- package/Chip/chipClasses.d.ts +96 -96
- package/CircularProgress/circularProgressClasses.d.ts +26 -26
- package/ClickAwayListener/index.d.ts +2 -2
- package/Collapse/collapseClasses.d.ts +18 -18
- package/Container/containerClasses.d.ts +6 -6
- package/Dialog/DialogContext.d.ts +6 -6
- package/Dialog/dialogClasses.d.ts +36 -36
- package/DialogActions/dialogActionsClasses.d.ts +10 -10
- package/DialogContent/dialogContentClasses.d.ts +10 -10
- package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
- package/DialogTitle/dialogTitleClasses.d.ts +8 -8
- package/Divider/dividerClasses.d.ts +34 -34
- package/Drawer/drawerClasses.d.ts +30 -30
- package/Fab/fabClasses.d.ts +26 -26
- package/FilledInput/filledInputClasses.d.ts +42 -42
- package/FormControl/FormControlContext.d.ts +17 -17
- package/FormControl/formControlClasses.d.ts +14 -14
- package/FormControl/useFormControl.d.ts +2 -2
- package/FormControlLabel/formControlLabelClasses.d.ts +24 -24
- package/FormGroup/formGroupClasses.d.ts +12 -12
- package/FormHelperText/formHelperTextClasses.d.ts +22 -22
- package/FormLabel/formLabelClasses.d.ts +22 -22
- package/Grid/gridClasses.d.ts +48 -48
- package/Hidden/Hidden.js +10 -10
- package/Hidden/withWidth.js +1 -1
- package/Icon/iconClasses.d.ts +24 -24
- package/IconButton/iconButtonClasses.d.ts +34 -34
- package/ImageList/imageListClasses.d.ts +16 -16
- package/ImageListItem/imageListItemClasses.d.ts +18 -18
- package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
- package/Input/inputClasses.d.ts +38 -38
- package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
- package/InputBase/inputBaseClasses.d.ts +46 -46
- package/InputLabel/inputLabelClasses.d.ts +32 -32
- package/LinearProgress/linearProgressClasses.d.ts +42 -42
- package/Link/getTextDecoration.d.ts +15 -15
- package/Link/linkClasses.d.ts +18 -18
- package/List/listClasses.d.ts +14 -14
- package/ListItem/listItemClasses.d.ts +30 -30
- package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
- package/ListItemButton/listItemButtonClasses.d.ts +22 -22
- package/ListItemIcon/listItemIconClasses.d.ts +10 -10
- package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
- package/ListItemText/listItemTextClasses.d.ts +18 -18
- package/ListSubheader/listSubheaderClasses.d.ts +18 -18
- package/Menu/menuClasses.d.ts +12 -12
- package/MenuItem/menuItemClasses.d.ts +20 -20
- package/MobileStepper/mobileStepperClasses.d.ts +22 -22
- package/Modal/Modal.js +1 -1
- package/NativeSelect/nativeSelectClasses.d.ts +34 -34
- package/OutlinedInput/outlinedInputClasses.d.ts +38 -38
- package/Pagination/paginationClasses.d.ts +14 -14
- package/PaginationItem/paginationItemClasses.d.ts +42 -42
- package/Paper/paperClasses.d.ts +39 -39
- package/Popover/popoverClasses.d.ts +10 -10
- package/Popper/Popper.d.ts +65 -65
- package/Radio/radioClasses.d.ts +16 -16
- package/RadioGroup/RadioGroupContext.d.ts +11 -11
- package/RadioGroup/useRadioGroup.d.ts +4 -4
- package/Rating/ratingClasses.d.ts +40 -40
- package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
- package/Select/selectClasses.d.ts +32 -32
- package/Skeleton/skeletonClasses.d.ts +26 -26
- package/Slider/SliderValueLabel.d.ts +15 -15
- package/Slider/SliderValueLabel.types.d.ts +24 -24
- package/Slider/sliderClasses.d.ts +58 -58
- package/Snackbar/snackbarClasses.d.ts +20 -20
- package/SnackbarContent/snackbarContentClasses.d.ts +12 -12
- package/SpeedDial/speedDialClasses.d.ts +22 -22
- package/SpeedDialAction/speedDialActionClasses.d.ts +20 -20
- package/SpeedDialIcon/speedDialIconClasses.d.ts +18 -18
- package/Stack/stackClasses.d.ts +6 -6
- package/Step/StepContext.d.ts +20 -20
- package/Step/stepClasses.d.ts +16 -16
- package/StepButton/stepButtonClasses.d.ts +14 -14
- package/StepConnector/stepConnectorClasses.d.ts +26 -26
- package/StepContent/stepContentClasses.d.ts +12 -12
- package/StepIcon/stepIconClasses.d.ts +16 -16
- package/StepLabel/stepLabelClasses.d.ts +28 -28
- package/Stepper/StepperContext.d.ts +18 -18
- package/Stepper/stepperClasses.d.ts +14 -14
- package/SvgIcon/svgIconClasses.d.ts +26 -26
- package/Switch/switchClasses.d.ts +32 -32
- package/Tab/tabClasses.d.ts +26 -26
- package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
- package/Table/tableClasses.d.ts +10 -10
- package/TableBody/tableBodyClasses.d.ts +8 -8
- package/TableCell/tableCellClasses.d.ts +32 -32
- package/TableContainer/tableContainerClasses.d.ts +8 -8
- package/TableFooter/tableFooterClasses.d.ts +8 -8
- package/TableHead/tableHeadClasses.d.ts +8 -8
- package/TablePagination/tablePaginationClasses.d.ts +28 -28
- package/TableRow/tableRowClasses.d.ts +16 -16
- package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
- package/Tabs/tabsClasses.d.ts +32 -32
- package/TextField/textFieldClasses.d.ts +8 -8
- package/ToggleButton/toggleButtonClasses.d.ts +24 -24
- package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
- package/Toolbar/toolbarClasses.d.ts +14 -14
- package/Tooltip/tooltipClasses.d.ts +30 -30
- package/Typography/typographyClasses.d.ts +50 -50
- package/Unstable_Grid2/Grid2.d.ts +4 -4
- package/Unstable_Grid2/Grid2Props.d.ts +15 -15
- package/Unstable_Grid2/grid2Classes.d.ts +5 -5
- package/Unstable_Grid2/index.d.ts +4 -4
- package/className/index.d.ts +1 -1
- package/darkScrollbar/index.d.ts +28 -28
- package/generateUtilityClass/index.d.ts +2 -2
- package/generateUtilityClasses/index.d.ts +1 -1
- package/index.js +1 -1
- package/internal/switchBaseClasses.d.ts +12 -12
- package/legacy/Autocomplete/Autocomplete.js +12 -2
- package/legacy/BottomNavigation/BottomNavigation.js +0 -0
- package/legacy/Hidden/Hidden.js +10 -10
- package/legacy/Hidden/withWidth.js +1 -1
- package/legacy/Modal/Modal.js +1 -1
- package/legacy/index.js +1 -1
- package/locale/index.d.ts +80 -80
- package/modern/Autocomplete/Autocomplete.js +14 -2
- package/modern/BottomNavigation/BottomNavigation.js +0 -0
- package/modern/Hidden/Hidden.js +10 -10
- package/modern/Hidden/withWidth.js +1 -1
- package/modern/Modal/Modal.js +1 -1
- package/modern/index.js +1 -1
- package/node/Autocomplete/Autocomplete.js +14 -2
- package/node/BottomNavigation/BottomNavigation.js +0 -0
- package/node/Hidden/Hidden.js +10 -10
- package/node/Hidden/withWidth.js +1 -1
- package/node/Modal/Modal.js +1 -1
- package/node/index.js +1 -1
- package/package.json +3 -3
- package/styles/CssVarsProvider.d.ts +20 -20
- package/styles/excludeVariablesFromRoot.d.ts +5 -5
- package/styles/getOverlayAlpha.d.ts +2 -2
- package/styles/identifier.d.ts +2 -2
- package/styles/shouldSkipGeneratingVar.d.ts +1 -1
- package/transitions/index.d.ts +1 -1
- package/transitions/transition.d.ts +13 -13
- package/transitions/utils.d.ts +23 -23
- package/types/OverridableComponentAugmentation.d.ts +31 -31
- package/umd/material-ui.development.js +34 -23
- package/umd/material-ui.production.min.js +16 -16
- package/useMediaQuery/useMediaQuery.d.ts +46 -46
- package/useTouchRipple/index.d.ts +1 -1
- package/useTouchRipple/useTouchRipple.d.ts +28 -28
- package/utils/getScrollbarSize.d.ts +2 -2
- package/utils/ownerDocument.d.ts +2 -2
- package/utils/ownerWindow.d.ts +2 -2
- package/utils/setRef.d.ts +2 -2
|
@@ -34,9 +34,11 @@ var _useThemeProps = _interopRequireDefault(require("../styles/useThemeProps"));
|
|
|
34
34
|
var _styled = _interopRequireDefault(require("../styles/styled"));
|
|
35
35
|
var _autocompleteClasses = _interopRequireWildcard(require("./autocompleteClasses"));
|
|
36
36
|
var _capitalize = _interopRequireDefault(require("../utils/capitalize"));
|
|
37
|
+
var _useForkRef = _interopRequireDefault(require("../utils/useForkRef"));
|
|
37
38
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
38
39
|
var _ClearIcon, _ArrowDropDownIcon;
|
|
39
|
-
const _excluded = ["autoComplete", "autoHighlight", "autoSelect", "blurOnSelect", "ChipProps", "className", "clearIcon", "clearOnBlur", "clearOnEscape", "clearText", "closeText", "componentsProps", "defaultValue", "disableClearable", "disableCloseOnSelect", "disabled", "disabledItemsFocusable", "disableListWrap", "disablePortal", "filterOptions", "filterSelectedOptions", "forcePopupIcon", "freeSolo", "fullWidth", "getLimitTagsText", "getOptionDisabled", "getOptionLabel", "isOptionEqualToValue", "groupBy", "handleHomeEndKeys", "id", "includeInputInList", "inputValue", "limitTags", "ListboxComponent", "ListboxProps", "loading", "loadingText", "multiple", "noOptionsText", "onChange", "onClose", "onHighlightChange", "onInputChange", "onOpen", "open", "openOnFocus", "openText", "options", "PaperComponent", "PopperComponent", "popupIcon", "readOnly", "renderGroup", "renderInput", "renderOption", "renderTags", "selectOnFocus", "size", "slotProps", "value"]
|
|
40
|
+
const _excluded = ["autoComplete", "autoHighlight", "autoSelect", "blurOnSelect", "ChipProps", "className", "clearIcon", "clearOnBlur", "clearOnEscape", "clearText", "closeText", "componentsProps", "defaultValue", "disableClearable", "disableCloseOnSelect", "disabled", "disabledItemsFocusable", "disableListWrap", "disablePortal", "filterOptions", "filterSelectedOptions", "forcePopupIcon", "freeSolo", "fullWidth", "getLimitTagsText", "getOptionDisabled", "getOptionLabel", "isOptionEqualToValue", "groupBy", "handleHomeEndKeys", "id", "includeInputInList", "inputValue", "limitTags", "ListboxComponent", "ListboxProps", "loading", "loadingText", "multiple", "noOptionsText", "onChange", "onClose", "onHighlightChange", "onInputChange", "onOpen", "open", "openOnFocus", "openText", "options", "PaperComponent", "PopperComponent", "popupIcon", "readOnly", "renderGroup", "renderInput", "renderOption", "renderTags", "selectOnFocus", "size", "slotProps", "value"],
|
|
41
|
+
_excluded2 = ["ref"];
|
|
40
42
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
41
43
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
42
44
|
const useUtilityClasses = ownerState => {
|
|
@@ -469,6 +471,15 @@ const Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps
|
|
|
469
471
|
const {
|
|
470
472
|
onMouseDown: handleInputMouseDown
|
|
471
473
|
} = getInputProps();
|
|
474
|
+
const {
|
|
475
|
+
ref: externalListboxRef
|
|
476
|
+
} = ListboxProps != null ? ListboxProps : {};
|
|
477
|
+
const _getListboxProps = getListboxProps(),
|
|
478
|
+
{
|
|
479
|
+
ref: listboxRef
|
|
480
|
+
} = _getListboxProps,
|
|
481
|
+
otherListboxProps = (0, _objectWithoutPropertiesLoose2.default)(_getListboxProps, _excluded2);
|
|
482
|
+
const combinedListboxRef = (0, _useForkRef.default)(listboxRef, externalListboxRef);
|
|
472
483
|
|
|
473
484
|
// If you modify this, make sure to keep the `AutocompleteOwnerState` type in sync.
|
|
474
485
|
const ownerState = (0, _extends2.default)({}, props, {
|
|
@@ -627,7 +638,8 @@ const Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps
|
|
|
627
638
|
as: ListboxComponent,
|
|
628
639
|
className: classes.listbox,
|
|
629
640
|
ownerState: ownerState
|
|
630
|
-
},
|
|
641
|
+
}, otherListboxProps, ListboxProps, {
|
|
642
|
+
ref: combinedListboxRef,
|
|
631
643
|
children: groupedOptions.map((option, index) => {
|
|
632
644
|
if (groupBy) {
|
|
633
645
|
return renderGroup({
|
|
File without changes
|
package/node/Hidden/Hidden.js
CHANGED
|
@@ -88,22 +88,22 @@ process.env.NODE_ENV !== "production" ? Hidden.propTypes /* remove-proptypes */
|
|
|
88
88
|
*/
|
|
89
89
|
initialWidth: _propTypes.default.oneOf(['xs', 'sm', 'md', 'lg', 'xl']),
|
|
90
90
|
/**
|
|
91
|
-
* If `true`, screens
|
|
91
|
+
* If `true`, component is hidden on screens below (but not including) this size.
|
|
92
92
|
* @default false
|
|
93
93
|
*/
|
|
94
94
|
lgDown: _propTypes.default.bool,
|
|
95
95
|
/**
|
|
96
|
-
* If `true`, screens this size and
|
|
96
|
+
* If `true`, component is hidden on screens this size and above.
|
|
97
97
|
* @default false
|
|
98
98
|
*/
|
|
99
99
|
lgUp: _propTypes.default.bool,
|
|
100
100
|
/**
|
|
101
|
-
* If `true`, screens
|
|
101
|
+
* If `true`, component is hidden on screens below (but not including) this size.
|
|
102
102
|
* @default false
|
|
103
103
|
*/
|
|
104
104
|
mdDown: _propTypes.default.bool,
|
|
105
105
|
/**
|
|
106
|
-
* If `true`, screens this size and
|
|
106
|
+
* If `true`, component is hidden on screens this size and above.
|
|
107
107
|
* @default false
|
|
108
108
|
*/
|
|
109
109
|
mdUp: _propTypes.default.bool,
|
|
@@ -112,32 +112,32 @@ process.env.NODE_ENV !== "production" ? Hidden.propTypes /* remove-proptypes */
|
|
|
112
112
|
*/
|
|
113
113
|
only: _propTypes.default.oneOfType([_propTypes.default.oneOf(['xs', 'sm', 'md', 'lg', 'xl']), _propTypes.default.arrayOf(_propTypes.default.oneOf(['xs', 'sm', 'md', 'lg', 'xl']).isRequired)]),
|
|
114
114
|
/**
|
|
115
|
-
* If `true`, screens
|
|
115
|
+
* If `true`, component is hidden on screens below (but not including) this size.
|
|
116
116
|
* @default false
|
|
117
117
|
*/
|
|
118
118
|
smDown: _propTypes.default.bool,
|
|
119
119
|
/**
|
|
120
|
-
* If `true`, screens this size and
|
|
120
|
+
* If `true`, component is hidden on screens this size and above.
|
|
121
121
|
* @default false
|
|
122
122
|
*/
|
|
123
123
|
smUp: _propTypes.default.bool,
|
|
124
124
|
/**
|
|
125
|
-
* If `true`, screens
|
|
125
|
+
* If `true`, component is hidden on screens below (but not including) this size.
|
|
126
126
|
* @default false
|
|
127
127
|
*/
|
|
128
128
|
xlDown: _propTypes.default.bool,
|
|
129
129
|
/**
|
|
130
|
-
* If `true`, screens this size and
|
|
130
|
+
* If `true`, component is hidden on screens this size and above.
|
|
131
131
|
* @default false
|
|
132
132
|
*/
|
|
133
133
|
xlUp: _propTypes.default.bool,
|
|
134
134
|
/**
|
|
135
|
-
* If `true`, screens
|
|
135
|
+
* If `true`, component is hidden on screens below (but not including) this size.
|
|
136
136
|
* @default false
|
|
137
137
|
*/
|
|
138
138
|
xsDown: _propTypes.default.bool,
|
|
139
139
|
/**
|
|
140
|
-
* If `true`, screens this size and
|
|
140
|
+
* If `true`, component is hidden on screens this size and above.
|
|
141
141
|
* @default false
|
|
142
142
|
*/
|
|
143
143
|
xsUp: _propTypes.default.bool
|
package/node/Hidden/withWidth.js
CHANGED
|
@@ -28,7 +28,7 @@ const isWidthUp = (breakpoint, width, inclusive = true) => {
|
|
|
28
28
|
return breakpointKeys.indexOf(breakpoint) < breakpointKeys.indexOf(width);
|
|
29
29
|
};
|
|
30
30
|
|
|
31
|
-
// By default, returns true if screen width is
|
|
31
|
+
// By default, returns true if screen width is less than the given breakpoint.
|
|
32
32
|
exports.isWidthUp = isWidthUp;
|
|
33
33
|
const isWidthDown = (breakpoint, width, inclusive = false) => {
|
|
34
34
|
if (inclusive) {
|
package/node/Modal/Modal.js
CHANGED
|
@@ -137,7 +137,7 @@ const Modal = /*#__PURE__*/React.forwardRef(function Modal(inProps, ref) {
|
|
|
137
137
|
className: (0, _clsx.default)(className, rootSlotProps == null ? void 0 : rootSlotProps.className, classes == null ? void 0 : classes.root, !ownerState.open && ownerState.exited && (classes == null ? void 0 : classes.hidden))
|
|
138
138
|
}),
|
|
139
139
|
backdrop: () => (0, _extends2.default)({}, BackdropProps, (0, _utils.resolveComponentProps)(backdropSlotProps, ownerState), {
|
|
140
|
-
className: (0, _clsx.default)(backdropSlotProps == null ? void 0 : backdropSlotProps.className, classes == null ? void 0 : classes.backdrop)
|
|
140
|
+
className: (0, _clsx.default)(backdropSlotProps == null ? void 0 : backdropSlotProps.className, BackdropProps == null ? void 0 : BackdropProps.className, classes == null ? void 0 : classes.backdrop)
|
|
141
141
|
})
|
|
142
142
|
},
|
|
143
143
|
onTransitionEnter: () => setExited(false),
|
package/node/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/material",
|
|
3
|
-
"version": "5.13.
|
|
3
|
+
"version": "5.13.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "MUI Team",
|
|
6
6
|
"description": "React components that implement Google's Material Design.",
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"@babel/runtime": "^7.21.0",
|
|
49
|
-
"@mui/base": "5.0.0-beta.
|
|
50
|
-
"@mui/core-downloads-tracker": "^5.13.
|
|
49
|
+
"@mui/base": "5.0.0-beta.3",
|
|
50
|
+
"@mui/core-downloads-tracker": "^5.13.3",
|
|
51
51
|
"@mui/system": "^5.13.2",
|
|
52
52
|
"@mui/types": "^7.2.4",
|
|
53
53
|
"@mui/utils": "^5.13.1",
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { SupportedColorScheme } from './experimental_extendTheme';
|
|
3
|
-
declare const CssVarsProvider: (props: import("react").PropsWithChildren<Partial<import("@mui/system").CssVarsProviderConfig<SupportedColorScheme>> & {
|
|
4
|
-
theme?: {
|
|
5
|
-
cssVarPrefix?: string | undefined;
|
|
6
|
-
colorSchemes: Record<SupportedColorScheme, Record<string, any>>;
|
|
7
|
-
} | {
|
|
8
|
-
$$material: {
|
|
9
|
-
cssVarPrefix?: string | undefined;
|
|
10
|
-
colorSchemes: Record<SupportedColorScheme, Record<string, any>>;
|
|
11
|
-
};
|
|
12
|
-
} | undefined;
|
|
13
|
-
documentNode?: Document | null | undefined;
|
|
14
|
-
colorSchemeNode?: Element | null | undefined;
|
|
15
|
-
colorSchemeSelector?: string | undefined;
|
|
16
|
-
storageWindow?: Window | null | undefined;
|
|
17
|
-
disableNestedContext?: boolean | undefined;
|
|
18
|
-
disableStyleSheetGeneration?: boolean | undefined;
|
|
19
|
-
}>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>, useColorScheme: () => import("@mui/system").ColorSchemeContextValue<SupportedColorScheme>, getInitColorSchemeScript: typeof import("@mui/system").getInitColorSchemeScript;
|
|
20
|
-
export { useColorScheme, getInitColorSchemeScript, CssVarsProvider as Experimental_CssVarsProvider, };
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { SupportedColorScheme } from './experimental_extendTheme';
|
|
3
|
+
declare const CssVarsProvider: (props: import("react").PropsWithChildren<Partial<import("@mui/system").CssVarsProviderConfig<SupportedColorScheme>> & {
|
|
4
|
+
theme?: {
|
|
5
|
+
cssVarPrefix?: string | undefined;
|
|
6
|
+
colorSchemes: Record<SupportedColorScheme, Record<string, any>>;
|
|
7
|
+
} | {
|
|
8
|
+
$$material: {
|
|
9
|
+
cssVarPrefix?: string | undefined;
|
|
10
|
+
colorSchemes: Record<SupportedColorScheme, Record<string, any>>;
|
|
11
|
+
};
|
|
12
|
+
} | undefined;
|
|
13
|
+
documentNode?: Document | null | undefined;
|
|
14
|
+
colorSchemeNode?: Element | null | undefined;
|
|
15
|
+
colorSchemeSelector?: string | undefined;
|
|
16
|
+
storageWindow?: Window | null | undefined;
|
|
17
|
+
disableNestedContext?: boolean | undefined;
|
|
18
|
+
disableStyleSheetGeneration?: boolean | undefined;
|
|
19
|
+
}>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>, useColorScheme: () => import("@mui/system").ColorSchemeContextValue<SupportedColorScheme>, getInitColorSchemeScript: typeof import("@mui/system").getInitColorSchemeScript;
|
|
20
|
+
export { useColorScheme, getInitColorSchemeScript, CssVarsProvider as Experimental_CssVarsProvider, };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @internal These variables should not appear in the :root stylesheet when the `defaultMode="dark"`
|
|
3
|
-
*/
|
|
4
|
-
declare const excludeVariablesFromRoot: (cssVarPrefix: string) => string[];
|
|
5
|
-
export default excludeVariablesFromRoot;
|
|
1
|
+
/**
|
|
2
|
+
* @internal These variables should not appear in the :root stylesheet when the `defaultMode="dark"`
|
|
3
|
+
*/
|
|
4
|
+
declare const excludeVariablesFromRoot: (cssVarPrefix: string) => string[];
|
|
5
|
+
export default excludeVariablesFromRoot;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const getOverlayAlpha: (elevation: number) => string;
|
|
2
|
-
export default getOverlayAlpha;
|
|
1
|
+
declare const getOverlayAlpha: (elevation: number) => string;
|
|
2
|
+
export default getOverlayAlpha;
|
package/styles/identifier.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "$$material";
|
|
2
|
-
export default _default;
|
|
1
|
+
declare const _default: "$$material";
|
|
2
|
+
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function shouldSkipGeneratingVar(keys: string[]): boolean;
|
|
1
|
+
export default function shouldSkipGeneratingVar(keys: string[]): boolean;
|
package/transitions/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './transition';
|
|
1
|
+
export * from './transition';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { TransitionProps as _TransitionProps, TransitionActions } from 'react-transition-group/Transition';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
export type TransitionHandlerKeys = 'onEnter' | 'onEntering' | 'onEntered' | 'onExit' | 'onExiting' | 'onExited';
|
|
4
|
-
export type TransitionHandlerProps = Pick<_TransitionProps, TransitionHandlerKeys>;
|
|
5
|
-
export interface EasingProps {
|
|
6
|
-
easing: string | {
|
|
7
|
-
enter?: string;
|
|
8
|
-
exit?: string;
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
export type TransitionKeys = 'in' | 'mountOnEnter' | 'unmountOnExit' | 'timeout' | 'easing' | 'addEndListener' | TransitionHandlerKeys;
|
|
12
|
-
export interface TransitionProps extends TransitionActions, Partial<Pick<_TransitionProps & EasingProps, TransitionKeys>>, React.HTMLAttributes<HTMLElement> {
|
|
13
|
-
}
|
|
1
|
+
import { TransitionProps as _TransitionProps, TransitionActions } from 'react-transition-group/Transition';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export type TransitionHandlerKeys = 'onEnter' | 'onEntering' | 'onEntered' | 'onExit' | 'onExiting' | 'onExited';
|
|
4
|
+
export type TransitionHandlerProps = Pick<_TransitionProps, TransitionHandlerKeys>;
|
|
5
|
+
export interface EasingProps {
|
|
6
|
+
easing: string | {
|
|
7
|
+
enter?: string;
|
|
8
|
+
exit?: string;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export type TransitionKeys = 'in' | 'mountOnEnter' | 'unmountOnExit' | 'timeout' | 'easing' | 'addEndListener' | TransitionHandlerKeys;
|
|
12
|
+
export interface TransitionProps extends TransitionActions, Partial<Pick<_TransitionProps & EasingProps, TransitionKeys>>, React.HTMLAttributes<HTMLElement> {
|
|
13
|
+
}
|
package/transitions/utils.d.ts
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export declare const reflow: (node: Element) => number;
|
|
3
|
-
interface ComponentProps {
|
|
4
|
-
easing: string | {
|
|
5
|
-
enter?: string;
|
|
6
|
-
exit?: string;
|
|
7
|
-
} | undefined;
|
|
8
|
-
style: React.CSSProperties | undefined;
|
|
9
|
-
timeout: number | {
|
|
10
|
-
enter?: number;
|
|
11
|
-
exit?: number;
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
interface Options {
|
|
15
|
-
mode: 'enter' | 'exit';
|
|
16
|
-
}
|
|
17
|
-
interface TransitionProps {
|
|
18
|
-
duration: string | number;
|
|
19
|
-
easing: string | undefined;
|
|
20
|
-
delay: string | undefined;
|
|
21
|
-
}
|
|
22
|
-
export declare function getTransitionProps(props: ComponentProps, options: Options): TransitionProps;
|
|
23
|
-
export {};
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare const reflow: (node: Element) => number;
|
|
3
|
+
interface ComponentProps {
|
|
4
|
+
easing: string | {
|
|
5
|
+
enter?: string;
|
|
6
|
+
exit?: string;
|
|
7
|
+
} | undefined;
|
|
8
|
+
style: React.CSSProperties | undefined;
|
|
9
|
+
timeout: number | {
|
|
10
|
+
enter?: number;
|
|
11
|
+
exit?: number;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
interface Options {
|
|
15
|
+
mode: 'enter' | 'exit';
|
|
16
|
+
}
|
|
17
|
+
interface TransitionProps {
|
|
18
|
+
duration: string | number;
|
|
19
|
+
easing: string | undefined;
|
|
20
|
+
delay: string | undefined;
|
|
21
|
+
}
|
|
22
|
+
export declare function getTransitionProps(props: ComponentProps, options: Options): TransitionProps;
|
|
23
|
+
export {};
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { DistributiveOmit } from '@mui/types';
|
|
3
|
-
declare module '@mui/material/OverridableComponent' {
|
|
4
|
-
/**
|
|
5
|
-
* A component whose root component can be controlled via a `component` prop.
|
|
6
|
-
*
|
|
7
|
-
* Adjusts valid props based on the type of `component`.
|
|
8
|
-
*/
|
|
9
|
-
interface OverridableComponent<M extends OverridableTypeMap> {
|
|
10
|
-
<C extends React.ElementType>(props: {
|
|
11
|
-
/**
|
|
12
|
-
* The component used for the root node.
|
|
13
|
-
* Either a string to use a HTML element or a component.
|
|
14
|
-
*/
|
|
15
|
-
component: C;
|
|
16
|
-
} & OverridePropsVer2<M, C>): JSX.Element;
|
|
17
|
-
(props: DefaultComponentPropsVer2<M>): JSX.Element;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Props of the component if `component={Component}` is used.
|
|
21
|
-
*/
|
|
22
|
-
type OverridePropsVer2<M extends OverridableTypeMap, C extends React.ElementType> = (BaseProps<M> & DistributiveOmit<React.ComponentPropsWithoutRef<C>, keyof BaseProps<M>> & {
|
|
23
|
-
ref?: React.Ref<Element>;
|
|
24
|
-
});
|
|
25
|
-
/**
|
|
26
|
-
* Props if `component={Component}` is NOT used.
|
|
27
|
-
*/
|
|
28
|
-
type DefaultComponentPropsVer2<M extends OverridableTypeMap> = BaseProps<M> & DistributiveOmit<React.ComponentPropsWithoutRef<M['defaultComponent']>, keyof BaseProps<M>> & {
|
|
29
|
-
ref?: React.Ref<Element>;
|
|
30
|
-
};
|
|
31
|
-
}
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { DistributiveOmit } from '@mui/types';
|
|
3
|
+
declare module '@mui/material/OverridableComponent' {
|
|
4
|
+
/**
|
|
5
|
+
* A component whose root component can be controlled via a `component` prop.
|
|
6
|
+
*
|
|
7
|
+
* Adjusts valid props based on the type of `component`.
|
|
8
|
+
*/
|
|
9
|
+
interface OverridableComponent<M extends OverridableTypeMap> {
|
|
10
|
+
<C extends React.ElementType>(props: {
|
|
11
|
+
/**
|
|
12
|
+
* The component used for the root node.
|
|
13
|
+
* Either a string to use a HTML element or a component.
|
|
14
|
+
*/
|
|
15
|
+
component: C;
|
|
16
|
+
} & OverridePropsVer2<M, C>): JSX.Element;
|
|
17
|
+
(props: DefaultComponentPropsVer2<M>): JSX.Element;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Props of the component if `component={Component}` is used.
|
|
21
|
+
*/
|
|
22
|
+
type OverridePropsVer2<M extends OverridableTypeMap, C extends React.ElementType> = (BaseProps<M> & DistributiveOmit<React.ComponentPropsWithoutRef<C>, keyof BaseProps<M>> & {
|
|
23
|
+
ref?: React.Ref<Element>;
|
|
24
|
+
});
|
|
25
|
+
/**
|
|
26
|
+
* Props if `component={Component}` is NOT used.
|
|
27
|
+
*/
|
|
28
|
+
type DefaultComponentPropsVer2<M extends OverridableTypeMap> = BaseProps<M> & DistributiveOmit<React.ComponentPropsWithoutRef<M['defaultComponent']>, keyof BaseProps<M>> & {
|
|
29
|
+
ref?: React.Ref<Element>;
|
|
30
|
+
};
|
|
31
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @mui/material v5.13.
|
|
2
|
+
* @mui/material v5.13.3
|
|
3
3
|
*
|
|
4
4
|
* @license MIT
|
|
5
5
|
* This source code is licensed under the MIT license found in the
|
|
@@ -9028,7 +9028,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
9028
9028
|
}
|
|
9029
9029
|
|
|
9030
9030
|
const _excluded$2i = ["colorSchemes", "components"],
|
|
9031
|
-
_excluded2$
|
|
9031
|
+
_excluded2$d = ["light"];
|
|
9032
9032
|
function prepareCssVars(theme, parserConfig) {
|
|
9033
9033
|
// @ts-ignore - ignore components do not exist
|
|
9034
9034
|
const {
|
|
@@ -9045,7 +9045,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
9045
9045
|
const {
|
|
9046
9046
|
light
|
|
9047
9047
|
} = colorSchemes,
|
|
9048
|
-
otherColorSchemes = _objectWithoutPropertiesLoose(colorSchemes, _excluded2$
|
|
9048
|
+
otherColorSchemes = _objectWithoutPropertiesLoose(colorSchemes, _excluded2$d);
|
|
9049
9049
|
Object.entries(otherColorSchemes || {}).forEach(([key, scheme]) => {
|
|
9050
9050
|
const {
|
|
9051
9051
|
vars,
|
|
@@ -9797,7 +9797,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
9797
9797
|
}
|
|
9798
9798
|
|
|
9799
9799
|
const _excluded$2e = ["defaultProps", "mixins", "overrides", "palette", "props", "styleOverrides"],
|
|
9800
|
-
_excluded2$
|
|
9800
|
+
_excluded2$c = ["type", "mode"];
|
|
9801
9801
|
function adaptV4Theme(inputTheme) {
|
|
9802
9802
|
{
|
|
9803
9803
|
console.warn(['MUI: adaptV4Theme() is deprecated.', 'Follow the upgrade guide on https://mui.com/r/migration-v4#theme.'].join('\n'));
|
|
@@ -9862,7 +9862,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
9862
9862
|
type: typeInput,
|
|
9863
9863
|
mode: modeInput
|
|
9864
9864
|
} = palette,
|
|
9865
|
-
paletteRest = _objectWithoutPropertiesLoose(palette, _excluded2$
|
|
9865
|
+
paletteRest = _objectWithoutPropertiesLoose(palette, _excluded2$c);
|
|
9866
9866
|
const finalMode = modeInput || typeInput || 'light';
|
|
9867
9867
|
theme.palette = _extends({
|
|
9868
9868
|
// theme.palette.text.hint
|
|
@@ -10750,7 +10750,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
10750
10750
|
var getOverlayAlpha$1 = getOverlayAlpha;
|
|
10751
10751
|
|
|
10752
10752
|
const _excluded$28 = ["colorSchemes", "cssVarPrefix", "shouldSkipGeneratingVar"],
|
|
10753
|
-
_excluded2$
|
|
10753
|
+
_excluded2$b = ["palette"];
|
|
10754
10754
|
const defaultDarkOverlays = [...Array(25)].map((_, index) => {
|
|
10755
10755
|
if (index === 0) {
|
|
10756
10756
|
return undefined;
|
|
@@ -10801,7 +10801,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
10801
10801
|
{
|
|
10802
10802
|
palette: lightPalette
|
|
10803
10803
|
} = _createThemeWithoutVa,
|
|
10804
|
-
muiTheme = _objectWithoutPropertiesLoose(_createThemeWithoutVa, _excluded2$
|
|
10804
|
+
muiTheme = _objectWithoutPropertiesLoose(_createThemeWithoutVa, _excluded2$b);
|
|
10805
10805
|
const {
|
|
10806
10806
|
palette: darkPalette
|
|
10807
10807
|
} = createTheme({
|
|
@@ -13876,7 +13876,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
13876
13876
|
generateUtilityClasses('MuiPopper', ['root']);
|
|
13877
13877
|
|
|
13878
13878
|
const _excluded$26 = ["anchorEl", "children", "direction", "disablePortal", "modifiers", "open", "placement", "popperOptions", "popperRef", "slotProps", "slots", "TransitionProps", "ownerState"],
|
|
13879
|
-
_excluded2$
|
|
13879
|
+
_excluded2$a = ["anchorEl", "children", "container", "direction", "disablePortal", "keepMounted", "modifiers", "open", "placement", "popperOptions", "popperRef", "style", "transition", "slotProps", "slots"];
|
|
13880
13880
|
function flipPlacement(placement, direction) {
|
|
13881
13881
|
if (direction === 'ltr') {
|
|
13882
13882
|
return placement;
|
|
@@ -14060,7 +14060,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
14060
14060
|
slotProps = {},
|
|
14061
14061
|
slots = {}
|
|
14062
14062
|
} = props,
|
|
14063
|
-
other = _objectWithoutPropertiesLoose(props, _excluded2$
|
|
14063
|
+
other = _objectWithoutPropertiesLoose(props, _excluded2$a);
|
|
14064
14064
|
const [exited, setExited] = React__namespace.useState(true);
|
|
14065
14065
|
const handleEnter = () => {
|
|
14066
14066
|
setExited(false);
|
|
@@ -22612,7 +22612,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
22612
22612
|
var autocompleteClasses$1 = autocompleteClasses;
|
|
22613
22613
|
|
|
22614
22614
|
var _ClearIcon, _ArrowDropDownIcon;
|
|
22615
|
-
const _excluded$1N = ["autoComplete", "autoHighlight", "autoSelect", "blurOnSelect", "ChipProps", "className", "clearIcon", "clearOnBlur", "clearOnEscape", "clearText", "closeText", "componentsProps", "defaultValue", "disableClearable", "disableCloseOnSelect", "disabled", "disabledItemsFocusable", "disableListWrap", "disablePortal", "filterOptions", "filterSelectedOptions", "forcePopupIcon", "freeSolo", "fullWidth", "getLimitTagsText", "getOptionDisabled", "getOptionLabel", "isOptionEqualToValue", "groupBy", "handleHomeEndKeys", "id", "includeInputInList", "inputValue", "limitTags", "ListboxComponent", "ListboxProps", "loading", "loadingText", "multiple", "noOptionsText", "onChange", "onClose", "onHighlightChange", "onInputChange", "onOpen", "open", "openOnFocus", "openText", "options", "PaperComponent", "PopperComponent", "popupIcon", "readOnly", "renderGroup", "renderInput", "renderOption", "renderTags", "selectOnFocus", "size", "slotProps", "value"]
|
|
22615
|
+
const _excluded$1N = ["autoComplete", "autoHighlight", "autoSelect", "blurOnSelect", "ChipProps", "className", "clearIcon", "clearOnBlur", "clearOnEscape", "clearText", "closeText", "componentsProps", "defaultValue", "disableClearable", "disableCloseOnSelect", "disabled", "disabledItemsFocusable", "disableListWrap", "disablePortal", "filterOptions", "filterSelectedOptions", "forcePopupIcon", "freeSolo", "fullWidth", "getLimitTagsText", "getOptionDisabled", "getOptionLabel", "isOptionEqualToValue", "groupBy", "handleHomeEndKeys", "id", "includeInputInList", "inputValue", "limitTags", "ListboxComponent", "ListboxProps", "loading", "loadingText", "multiple", "noOptionsText", "onChange", "onClose", "onHighlightChange", "onInputChange", "onOpen", "open", "openOnFocus", "openText", "options", "PaperComponent", "PopperComponent", "popupIcon", "readOnly", "renderGroup", "renderInput", "renderOption", "renderTags", "selectOnFocus", "size", "slotProps", "value"],
|
|
22616
|
+
_excluded2$9 = ["ref"];
|
|
22616
22617
|
const useUtilityClasses$1w = ownerState => {
|
|
22617
22618
|
const {
|
|
22618
22619
|
classes,
|
|
@@ -23043,6 +23044,15 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
23043
23044
|
const {
|
|
23044
23045
|
onMouseDown: handleInputMouseDown
|
|
23045
23046
|
} = getInputProps();
|
|
23047
|
+
const {
|
|
23048
|
+
ref: externalListboxRef
|
|
23049
|
+
} = ListboxProps != null ? ListboxProps : {};
|
|
23050
|
+
const _getListboxProps = getListboxProps(),
|
|
23051
|
+
{
|
|
23052
|
+
ref: listboxRef
|
|
23053
|
+
} = _getListboxProps,
|
|
23054
|
+
otherListboxProps = _objectWithoutPropertiesLoose(_getListboxProps, _excluded2$9);
|
|
23055
|
+
const combinedListboxRef = useForkRef(listboxRef, externalListboxRef);
|
|
23046
23056
|
|
|
23047
23057
|
// If you modify this, make sure to keep the `AutocompleteOwnerState` type in sync.
|
|
23048
23058
|
const ownerState = _extends({}, props, {
|
|
@@ -23201,7 +23211,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
23201
23211
|
as: ListboxComponent,
|
|
23202
23212
|
className: classes.listbox,
|
|
23203
23213
|
ownerState: ownerState
|
|
23204
|
-
},
|
|
23214
|
+
}, otherListboxProps, ListboxProps, {
|
|
23215
|
+
ref: combinedListboxRef,
|
|
23205
23216
|
children: groupedOptions.map((option, index) => {
|
|
23206
23217
|
if (groupBy) {
|
|
23207
23218
|
return renderGroup({
|
|
@@ -27769,7 +27780,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
27769
27780
|
className: clsx(className, rootSlotProps == null ? void 0 : rootSlotProps.className, classes == null ? void 0 : classes.root, !ownerState.open && ownerState.exited && (classes == null ? void 0 : classes.hidden))
|
|
27770
27781
|
}),
|
|
27771
27782
|
backdrop: () => _extends({}, BackdropProps, resolveComponentProps(backdropSlotProps, ownerState), {
|
|
27772
|
-
className: clsx(backdropSlotProps == null ? void 0 : backdropSlotProps.className, classes == null ? void 0 : classes.backdrop)
|
|
27783
|
+
className: clsx(backdropSlotProps == null ? void 0 : backdropSlotProps.className, BackdropProps == null ? void 0 : BackdropProps.className, classes == null ? void 0 : classes.backdrop)
|
|
27773
27784
|
})
|
|
27774
27785
|
},
|
|
27775
27786
|
onTransitionEnter: () => setExited(false),
|
|
@@ -32067,7 +32078,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
32067
32078
|
return breakpointKeys.indexOf(breakpoint) < breakpointKeys.indexOf(width);
|
|
32068
32079
|
};
|
|
32069
32080
|
|
|
32070
|
-
// By default, returns true if screen width is
|
|
32081
|
+
// By default, returns true if screen width is less than the given breakpoint.
|
|
32071
32082
|
const isWidthDown = (breakpoint, width, inclusive = false) => {
|
|
32072
32083
|
if (inclusive) {
|
|
32073
32084
|
return breakpointKeys.indexOf(width) <= breakpointKeys.indexOf(breakpoint);
|
|
@@ -32510,22 +32521,22 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
32510
32521
|
*/
|
|
32511
32522
|
initialWidth: PropTypes.oneOf(['xs', 'sm', 'md', 'lg', 'xl']),
|
|
32512
32523
|
/**
|
|
32513
|
-
* If `true`, screens
|
|
32524
|
+
* If `true`, component is hidden on screens below (but not including) this size.
|
|
32514
32525
|
* @default false
|
|
32515
32526
|
*/
|
|
32516
32527
|
lgDown: PropTypes.bool,
|
|
32517
32528
|
/**
|
|
32518
|
-
* If `true`, screens this size and
|
|
32529
|
+
* If `true`, component is hidden on screens this size and above.
|
|
32519
32530
|
* @default false
|
|
32520
32531
|
*/
|
|
32521
32532
|
lgUp: PropTypes.bool,
|
|
32522
32533
|
/**
|
|
32523
|
-
* If `true`, screens
|
|
32534
|
+
* If `true`, component is hidden on screens below (but not including) this size.
|
|
32524
32535
|
* @default false
|
|
32525
32536
|
*/
|
|
32526
32537
|
mdDown: PropTypes.bool,
|
|
32527
32538
|
/**
|
|
32528
|
-
* If `true`, screens this size and
|
|
32539
|
+
* If `true`, component is hidden on screens this size and above.
|
|
32529
32540
|
* @default false
|
|
32530
32541
|
*/
|
|
32531
32542
|
mdUp: PropTypes.bool,
|
|
@@ -32534,32 +32545,32 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
32534
32545
|
*/
|
|
32535
32546
|
only: PropTypes.oneOfType([PropTypes.oneOf(['xs', 'sm', 'md', 'lg', 'xl']), PropTypes.arrayOf(PropTypes.oneOf(['xs', 'sm', 'md', 'lg', 'xl']).isRequired)]),
|
|
32536
32547
|
/**
|
|
32537
|
-
* If `true`, screens
|
|
32548
|
+
* If `true`, component is hidden on screens below (but not including) this size.
|
|
32538
32549
|
* @default false
|
|
32539
32550
|
*/
|
|
32540
32551
|
smDown: PropTypes.bool,
|
|
32541
32552
|
/**
|
|
32542
|
-
* If `true`, screens this size and
|
|
32553
|
+
* If `true`, component is hidden on screens this size and above.
|
|
32543
32554
|
* @default false
|
|
32544
32555
|
*/
|
|
32545
32556
|
smUp: PropTypes.bool,
|
|
32546
32557
|
/**
|
|
32547
|
-
* If `true`, screens
|
|
32558
|
+
* If `true`, component is hidden on screens below (but not including) this size.
|
|
32548
32559
|
* @default false
|
|
32549
32560
|
*/
|
|
32550
32561
|
xlDown: PropTypes.bool,
|
|
32551
32562
|
/**
|
|
32552
|
-
* If `true`, screens this size and
|
|
32563
|
+
* If `true`, component is hidden on screens this size and above.
|
|
32553
32564
|
* @default false
|
|
32554
32565
|
*/
|
|
32555
32566
|
xlUp: PropTypes.bool,
|
|
32556
32567
|
/**
|
|
32557
|
-
* If `true`, screens
|
|
32568
|
+
* If `true`, component is hidden on screens below (but not including) this size.
|
|
32558
32569
|
* @default false
|
|
32559
32570
|
*/
|
|
32560
32571
|
xsDown: PropTypes.bool,
|
|
32561
32572
|
/**
|
|
32562
|
-
* If `true`, screens this size and
|
|
32573
|
+
* If `true`, component is hidden on screens this size and above.
|
|
32563
32574
|
* @default false
|
|
32564
32575
|
*/
|
|
32565
32576
|
xsUp: PropTypes.bool
|