@mui/material 5.14.7 → 5.14.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Accordion/Accordion.d.ts +2 -2
- package/AccordionSummary/AccordionSummary.d.ts +22 -20
- package/AlertTitle/AlertTitle.d.ts +1 -0
- package/AppBar/AppBar.d.ts +33 -31
- package/Avatar/Avatar.d.ts +49 -50
- package/Backdrop/Backdrop.d.ts +87 -85
- package/Badge/Badge.d.ts +2 -2
- package/BottomNavigation/BottomNavigation.d.ts +35 -33
- package/BottomNavigationAction/BottomNavigationAction.d.ts +39 -37
- package/Breadcrumbs/Breadcrumbs.d.ts +70 -67
- package/Button/Button.d.ts +72 -73
- package/Button/Button.js +4 -1
- package/ButtonBase/ButtonBase.d.ts +83 -81
- package/ButtonGroup/ButtonGroup.d.ts +72 -70
- package/ButtonGroup/ButtonGroup.js +86 -54
- package/ButtonGroup/ButtonGroupButtonContext.d.ts +6 -0
- package/ButtonGroup/ButtonGroupButtonContext.js +9 -0
- package/ButtonGroup/buttonGroupClasses.d.ts +6 -0
- package/ButtonGroup/buttonGroupClasses.js +1 -1
- package/CHANGELOG.md +235 -38
- package/Card/Card.d.ts +19 -18
- package/CardActionArea/CardActionArea.d.ts +15 -13
- package/CardContent/CardContent.d.ts +18 -16
- package/CardHeader/CardHeader.d.ts +77 -67
- package/CardMedia/CardMedia.d.ts +30 -28
- package/Chip/Chip.d.ts +84 -82
- package/CircularProgress/CircularProgress.d.ts +1 -1
- package/CircularProgress/CircularProgress.js +1 -1
- package/Container/Container.d.ts +35 -33
- package/DialogContentText/DialogContentText.d.ts +14 -12
- package/DialogTitle/DialogTitle.d.ts +19 -16
- package/Divider/Divider.d.ts +49 -50
- package/Fab/Fab.d.ts +59 -56
- package/FormControl/FormControl.d.ts +74 -72
- package/FormHelperText/FormHelperText.d.ts +52 -50
- package/FormLabel/FormLabel.d.ts +7 -4
- package/Grid/Grid.d.ts +69 -68
- package/Hidden/Hidden.d.ts +10 -10
- package/Icon/Icon.d.ts +50 -48
- package/IconButton/IconButton.d.ts +52 -50
- package/ImageList/ImageList.d.ts +41 -39
- package/ImageListItem/ImageListItem.d.ts +28 -26
- package/ImageListItem/ImageListItem.js +2 -1
- package/InputAdornment/InputAdornment.d.ts +39 -37
- package/InputBase/InputBase.js +1 -1
- package/InputLabel/InputLabel.d.ts +58 -56
- package/InputLabel/InputLabel.js +2 -1
- package/Link/Link.d.ts +37 -39
- package/List/List.d.ts +34 -35
- package/ListItem/ListItem.d.ts +53 -49
- package/ListItemButton/ListItemButton.d.ts +9 -3
- package/ListSubheader/ListSubheader.d.ts +38 -36
- package/MenuItem/MenuItem.d.ts +47 -44
- package/MenuList/MenuList.d.ts +37 -35
- package/Modal/Modal.d.ts +172 -178
- package/Modal/Modal.js +1 -1
- package/PaginationItem/PaginationItem.d.ts +85 -83
- package/Paper/Paper.d.ts +2 -2
- package/README.md +9 -198
- package/Radio/Radio.js +3 -2
- package/Radio/radioClasses.d.ts +2 -0
- package/Radio/radioClasses.js +1 -1
- package/ScopedCssBaseline/ScopedCssBaseline.d.ts +25 -23
- package/Select/SelectInput.js +9 -5
- package/Skeleton/Skeleton.d.ts +42 -40
- package/Slider/Slider.d.ts +249 -247
- package/Slider/Slider.js +9 -86
- package/Stack/Stack.d.ts +39 -38
- package/Step/Step.d.ts +46 -44
- package/StepButton/StepButton.d.ts +27 -25
- package/Stepper/Stepper.d.ts +45 -44
- package/SvgIcon/SvgIcon.d.ts +77 -75
- package/SwipeableDrawer/SwipeableDrawer.js +4 -4
- package/Tab/Tab.d.ts +52 -50
- package/TabScrollButton/TabScrollButton.d.ts +3 -2
- package/Table/Table.d.ts +35 -33
- package/TableBody/TableBody.d.ts +18 -16
- package/TableContainer/TableContainer.d.ts +18 -16
- package/TableFooter/TableFooter.d.ts +18 -16
- package/TableHead/TableHead.d.ts +18 -16
- package/TablePagination/TablePagination.d.ts +113 -112
- package/TableRow/TableRow.d.ts +28 -26
- package/TableSortLabel/TableSortLabel.d.ts +40 -36
- package/Tabs/Tabs.d.ts +153 -150
- package/Tabs/Tabs.js +1 -4
- package/ToggleButton/ToggleButton.d.ts +72 -70
- package/Toolbar/Toolbar.d.ts +29 -27
- package/Typography/Typography.d.ts +2 -2
- package/index.js +1 -1
- package/legacy/Button/Button.js +4 -1
- package/legacy/ButtonGroup/ButtonGroup.js +81 -56
- package/legacy/ButtonGroup/ButtonGroupButtonContext.js +9 -0
- package/legacy/ButtonGroup/buttonGroupClasses.js +1 -1
- package/legacy/CircularProgress/CircularProgress.js +1 -1
- package/legacy/ImageListItem/ImageListItem.js +2 -1
- package/legacy/InputBase/InputBase.js +1 -1
- package/legacy/InputLabel/InputLabel.js +2 -1
- package/legacy/Modal/Modal.js +3 -1
- package/legacy/Radio/Radio.js +3 -2
- package/legacy/Radio/radioClasses.js +1 -1
- package/legacy/Select/SelectInput.js +9 -5
- package/legacy/Slider/Slider.js +9 -86
- package/legacy/SwipeableDrawer/SwipeableDrawer.js +4 -4
- package/legacy/Tabs/Tabs.js +1 -4
- package/legacy/index.js +1 -1
- package/legacy/useTouchRipple/useTouchRipple.js +4 -4
- package/modern/Button/Button.js +4 -1
- package/modern/ButtonGroup/ButtonGroup.js +86 -54
- package/modern/ButtonGroup/ButtonGroupButtonContext.js +9 -0
- package/modern/ButtonGroup/buttonGroupClasses.js +1 -1
- package/modern/CircularProgress/CircularProgress.js +1 -1
- package/modern/ImageListItem/ImageListItem.js +2 -1
- package/modern/InputBase/InputBase.js +1 -1
- package/modern/InputLabel/InputLabel.js +2 -1
- package/modern/Modal/Modal.js +1 -1
- package/modern/Radio/Radio.js +3 -2
- package/modern/Radio/radioClasses.js +1 -1
- package/modern/Select/SelectInput.js +8 -5
- package/modern/Slider/Slider.js +9 -86
- package/modern/SwipeableDrawer/SwipeableDrawer.js +4 -4
- package/modern/Tabs/Tabs.js +1 -4
- package/modern/index.js +1 -1
- package/node/Button/Button.js +4 -1
- package/node/ButtonGroup/ButtonGroup.js +86 -54
- package/node/ButtonGroup/ButtonGroupButtonContext.js +18 -0
- package/node/ButtonGroup/buttonGroupClasses.js +1 -1
- package/node/CircularProgress/CircularProgress.js +1 -1
- package/node/ImageListItem/ImageListItem.js +2 -1
- package/node/InputBase/InputBase.js +1 -1
- package/node/InputLabel/InputLabel.js +2 -1
- package/node/Modal/Modal.js +1 -1
- package/node/Radio/Radio.js +3 -2
- package/node/Radio/radioClasses.js +1 -1
- package/node/Select/SelectInput.js +9 -5
- package/node/Slider/Slider.js +3 -73
- package/node/SwipeableDrawer/SwipeableDrawer.js +4 -4
- package/node/Tabs/Tabs.js +1 -4
- package/node/index.js +1 -1
- package/node/useTouchRipple/useTouchRipple.js +4 -4
- package/package.json +16 -16
- package/umd/material-ui.development.js +258 -254
- package/umd/material-ui.production.min.js +18 -18
- package/useTouchRipple/useTouchRipple.js +4 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @mui/material v5.14.
|
|
2
|
+
* @mui/material v5.14.9
|
|
3
3
|
*
|
|
4
4
|
* @license MIT
|
|
5
5
|
* This source code is licensed under the MIT license found in the
|
|
@@ -6950,10 +6950,20 @@
|
|
|
6950
6950
|
const maxWidth = props => {
|
|
6951
6951
|
if (props.maxWidth !== undefined && props.maxWidth !== null) {
|
|
6952
6952
|
const styleFromPropValue = propValue => {
|
|
6953
|
-
var _props$theme;
|
|
6953
|
+
var _props$theme, _props$theme2;
|
|
6954
6954
|
const breakpoint = ((_props$theme = props.theme) == null || (_props$theme = _props$theme.breakpoints) == null || (_props$theme = _props$theme.values) == null ? void 0 : _props$theme[propValue]) || values$1[propValue];
|
|
6955
|
+
if (!breakpoint) {
|
|
6956
|
+
return {
|
|
6957
|
+
maxWidth: sizingTransform(propValue)
|
|
6958
|
+
};
|
|
6959
|
+
}
|
|
6960
|
+
if (((_props$theme2 = props.theme) == null || (_props$theme2 = _props$theme2.breakpoints) == null ? void 0 : _props$theme2.unit) !== 'px') {
|
|
6961
|
+
return {
|
|
6962
|
+
maxWidth: `${breakpoint}${props.theme.breakpoints.unit}`
|
|
6963
|
+
};
|
|
6964
|
+
}
|
|
6955
6965
|
return {
|
|
6956
|
-
maxWidth: breakpoint
|
|
6966
|
+
maxWidth: breakpoint
|
|
6957
6967
|
};
|
|
6958
6968
|
};
|
|
6959
6969
|
return handleBreakpoints(props, props.maxWidth, styleFromPropValue);
|
|
@@ -8323,31 +8333,29 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8323
8333
|
return /*#__PURE__*/jsxRuntime_1("script", {
|
|
8324
8334
|
// eslint-disable-next-line react/no-danger
|
|
8325
8335
|
dangerouslySetInnerHTML: {
|
|
8326
|
-
__html: `(function() {
|
|
8327
|
-
|
|
8328
|
-
|
|
8329
|
-
|
|
8330
|
-
|
|
8331
|
-
|
|
8332
|
-
|
|
8333
|
-
|
|
8334
|
-
|
|
8335
|
-
|
|
8336
|
-
|
|
8337
|
-
|
|
8338
|
-
|
|
8339
|
-
|
|
8340
|
-
|
|
8341
|
-
|
|
8342
|
-
|
|
8343
|
-
|
|
8344
|
-
|
|
8345
|
-
|
|
8346
|
-
|
|
8347
|
-
|
|
8348
|
-
|
|
8349
|
-
}
|
|
8350
|
-
} catch (e) {} })();`
|
|
8336
|
+
__html: `(function() {
|
|
8337
|
+
try {
|
|
8338
|
+
var mode = localStorage.getItem('${modeStorageKey}') || '${defaultMode}';
|
|
8339
|
+
var colorScheme = '';
|
|
8340
|
+
if (mode === 'system') {
|
|
8341
|
+
// handle system mode
|
|
8342
|
+
var mql = window.matchMedia('(prefers-color-scheme: dark)');
|
|
8343
|
+
if (mql.matches) {
|
|
8344
|
+
colorScheme = localStorage.getItem('${colorSchemeStorageKey}-dark') || '${defaultDarkColorScheme}';
|
|
8345
|
+
} else {
|
|
8346
|
+
colorScheme = localStorage.getItem('${colorSchemeStorageKey}-light') || '${defaultLightColorScheme}';
|
|
8347
|
+
}
|
|
8348
|
+
}
|
|
8349
|
+
if (mode === 'light') {
|
|
8350
|
+
colorScheme = localStorage.getItem('${colorSchemeStorageKey}-light') || '${defaultLightColorScheme}';
|
|
8351
|
+
}
|
|
8352
|
+
if (mode === 'dark') {
|
|
8353
|
+
colorScheme = localStorage.getItem('${colorSchemeStorageKey}-dark') || '${defaultDarkColorScheme}';
|
|
8354
|
+
}
|
|
8355
|
+
if (colorScheme) {
|
|
8356
|
+
${colorSchemeNode}.setAttribute('${attribute}', colorScheme);
|
|
8357
|
+
}
|
|
8358
|
+
} catch(e){}})();`
|
|
8351
8359
|
}
|
|
8352
8360
|
}, "mui-color-scheme-init");
|
|
8353
8361
|
}
|
|
@@ -15817,51 +15825,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
15817
15825
|
return;
|
|
15818
15826
|
}
|
|
15819
15827
|
const doc = ownerDocument(rootRef.current);
|
|
15820
|
-
const contain = nativeEvent => {
|
|
15821
|
-
const {
|
|
15822
|
-
current: rootElement
|
|
15823
|
-
} = rootRef;
|
|
15824
|
-
|
|
15825
|
-
// Cleanup functions are executed lazily in React 17.
|
|
15826
|
-
// Contain can be called between the component being unmounted and its cleanup function being run.
|
|
15827
|
-
if (rootElement === null) {
|
|
15828
|
-
return;
|
|
15829
|
-
}
|
|
15830
|
-
if (!doc.hasFocus() || disableEnforceFocus || !isEnabled() || ignoreNextEnforceFocus.current) {
|
|
15831
|
-
ignoreNextEnforceFocus.current = false;
|
|
15832
|
-
return;
|
|
15833
|
-
}
|
|
15834
|
-
if (!rootElement.contains(doc.activeElement)) {
|
|
15835
|
-
// if the focus event is not coming from inside the children's react tree, reset the refs
|
|
15836
|
-
if (nativeEvent && reactFocusEventTarget.current !== nativeEvent.target || doc.activeElement !== reactFocusEventTarget.current) {
|
|
15837
|
-
reactFocusEventTarget.current = null;
|
|
15838
|
-
} else if (reactFocusEventTarget.current !== null) {
|
|
15839
|
-
return;
|
|
15840
|
-
}
|
|
15841
|
-
if (!activated.current) {
|
|
15842
|
-
return;
|
|
15843
|
-
}
|
|
15844
|
-
let tabbable = [];
|
|
15845
|
-
if (doc.activeElement === sentinelStart.current || doc.activeElement === sentinelEnd.current) {
|
|
15846
|
-
tabbable = getTabbable(rootRef.current);
|
|
15847
|
-
}
|
|
15848
|
-
if (tabbable.length > 0) {
|
|
15849
|
-
var _lastKeydown$current, _lastKeydown$current2;
|
|
15850
|
-
const isShiftTab = Boolean(((_lastKeydown$current = lastKeydown.current) == null ? void 0 : _lastKeydown$current.shiftKey) && ((_lastKeydown$current2 = lastKeydown.current) == null ? void 0 : _lastKeydown$current2.key) === 'Tab');
|
|
15851
|
-
const focusNext = tabbable[0];
|
|
15852
|
-
const focusPrevious = tabbable[tabbable.length - 1];
|
|
15853
|
-
if (typeof focusNext !== 'string' && typeof focusPrevious !== 'string') {
|
|
15854
|
-
if (isShiftTab) {
|
|
15855
|
-
focusPrevious.focus();
|
|
15856
|
-
} else {
|
|
15857
|
-
focusNext.focus();
|
|
15858
|
-
}
|
|
15859
|
-
}
|
|
15860
|
-
} else {
|
|
15861
|
-
rootElement.focus();
|
|
15862
|
-
}
|
|
15863
|
-
}
|
|
15864
|
-
};
|
|
15865
15828
|
const loopFocus = nativeEvent => {
|
|
15866
15829
|
lastKeydown.current = nativeEvent;
|
|
15867
15830
|
if (disableEnforceFocus || !isEnabled() || nativeEvent.key !== 'Tab') {
|
|
@@ -15879,6 +15842,62 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
15879
15842
|
}
|
|
15880
15843
|
}
|
|
15881
15844
|
};
|
|
15845
|
+
const contain = () => {
|
|
15846
|
+
const rootElement = rootRef.current;
|
|
15847
|
+
|
|
15848
|
+
// Cleanup functions are executed lazily in React 17.
|
|
15849
|
+
// Contain can be called between the component being unmounted and its cleanup function being run.
|
|
15850
|
+
if (rootElement === null) {
|
|
15851
|
+
return;
|
|
15852
|
+
}
|
|
15853
|
+
if (!doc.hasFocus() || !isEnabled() || ignoreNextEnforceFocus.current) {
|
|
15854
|
+
ignoreNextEnforceFocus.current = false;
|
|
15855
|
+
return;
|
|
15856
|
+
}
|
|
15857
|
+
|
|
15858
|
+
// The focus is already inside
|
|
15859
|
+
if (rootElement.contains(doc.activeElement)) {
|
|
15860
|
+
return;
|
|
15861
|
+
}
|
|
15862
|
+
|
|
15863
|
+
// The disableEnforceFocus is set and the focus is outside of the focus trap (and sentinel nodes)
|
|
15864
|
+
if (disableEnforceFocus && doc.activeElement !== sentinelStart.current && doc.activeElement !== sentinelEnd.current) {
|
|
15865
|
+
return;
|
|
15866
|
+
}
|
|
15867
|
+
|
|
15868
|
+
// if the focus event is not coming from inside the children's react tree, reset the refs
|
|
15869
|
+
if (doc.activeElement !== reactFocusEventTarget.current) {
|
|
15870
|
+
reactFocusEventTarget.current = null;
|
|
15871
|
+
} else if (reactFocusEventTarget.current !== null) {
|
|
15872
|
+
return;
|
|
15873
|
+
}
|
|
15874
|
+
if (!activated.current) {
|
|
15875
|
+
return;
|
|
15876
|
+
}
|
|
15877
|
+
let tabbable = [];
|
|
15878
|
+
if (doc.activeElement === sentinelStart.current || doc.activeElement === sentinelEnd.current) {
|
|
15879
|
+
tabbable = getTabbable(rootRef.current);
|
|
15880
|
+
}
|
|
15881
|
+
|
|
15882
|
+
// one of the sentinel nodes was focused, so move the focus
|
|
15883
|
+
// to the first/last tabbable element inside the focus trap
|
|
15884
|
+
if (tabbable.length > 0) {
|
|
15885
|
+
var _lastKeydown$current, _lastKeydown$current2;
|
|
15886
|
+
const isShiftTab = Boolean(((_lastKeydown$current = lastKeydown.current) == null ? void 0 : _lastKeydown$current.shiftKey) && ((_lastKeydown$current2 = lastKeydown.current) == null ? void 0 : _lastKeydown$current2.key) === 'Tab');
|
|
15887
|
+
const focusNext = tabbable[0];
|
|
15888
|
+
const focusPrevious = tabbable[tabbable.length - 1];
|
|
15889
|
+
if (typeof focusNext !== 'string' && typeof focusPrevious !== 'string') {
|
|
15890
|
+
if (isShiftTab) {
|
|
15891
|
+
focusPrevious.focus();
|
|
15892
|
+
} else {
|
|
15893
|
+
focusNext.focus();
|
|
15894
|
+
}
|
|
15895
|
+
}
|
|
15896
|
+
// no tabbable elements in the trap focus or the focus was outside of the focus trap
|
|
15897
|
+
} else {
|
|
15898
|
+
rootElement.focus();
|
|
15899
|
+
}
|
|
15900
|
+
};
|
|
15882
15901
|
doc.addEventListener('focusin', contain);
|
|
15883
15902
|
doc.addEventListener('keydown', loopFocus, true);
|
|
15884
15903
|
|
|
@@ -15890,7 +15909,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
15890
15909
|
// https://html.spec.whatwg.org/multipage/interaction.html#focus-fixup-rule.
|
|
15891
15910
|
const interval = setInterval(() => {
|
|
15892
15911
|
if (doc.activeElement && doc.activeElement.tagName === 'BODY') {
|
|
15893
|
-
contain(
|
|
15912
|
+
contain();
|
|
15894
15913
|
}
|
|
15895
15914
|
}, 50);
|
|
15896
15915
|
return () => {
|
|
@@ -18545,7 +18564,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
18545
18564
|
}, [open, handleClose, hasTransition, closeAfterTransition, handleOpen]);
|
|
18546
18565
|
const createHandleKeyDown = otherHandlers => event => {
|
|
18547
18566
|
var _otherHandlers$onKeyD;
|
|
18548
|
-
(_otherHandlers$onKeyD = otherHandlers.onKeyDown) == null
|
|
18567
|
+
(_otherHandlers$onKeyD = otherHandlers.onKeyDown) == null || _otherHandlers$onKeyD.call(otherHandlers, event);
|
|
18549
18568
|
|
|
18550
18569
|
// The handler doesn't take event.defaultPrevented into account:
|
|
18551
18570
|
//
|
|
@@ -18566,7 +18585,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
18566
18585
|
};
|
|
18567
18586
|
const createHandleBackdropClick = otherHandlers => event => {
|
|
18568
18587
|
var _otherHandlers$onClic;
|
|
18569
|
-
(_otherHandlers$onClic = otherHandlers.onClick) == null
|
|
18588
|
+
(_otherHandlers$onClic = otherHandlers.onClick) == null || _otherHandlers$onClic.call(otherHandlers, event);
|
|
18570
18589
|
if (event.target !== event.currentTarget) {
|
|
18571
18590
|
return;
|
|
18572
18591
|
}
|
|
@@ -18614,8 +18633,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
18614
18633
|
}
|
|
18615
18634
|
};
|
|
18616
18635
|
return {
|
|
18617
|
-
onEnter: createChainedFunction(handleEnter, children.props.onEnter),
|
|
18618
|
-
onExited: createChainedFunction(handleExited, children.props.onExited)
|
|
18636
|
+
onEnter: createChainedFunction(handleEnter, children == null ? void 0 : children.props.onEnter),
|
|
18637
|
+
onExited: createChainedFunction(handleExited, children == null ? void 0 : children.props.onExited)
|
|
18619
18638
|
};
|
|
18620
18639
|
};
|
|
18621
18640
|
return {
|
|
@@ -18784,7 +18803,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
18784
18803
|
const doc = ownerDocument(sliderRef.current);
|
|
18785
18804
|
if (!((_sliderRef$current = sliderRef.current) != null && _sliderRef$current.contains(doc.activeElement)) || Number(doc == null || (_doc$activeElement = doc.activeElement) == null ? void 0 : _doc$activeElement.getAttribute('data-index')) !== activeIndex) {
|
|
18786
18805
|
var _sliderRef$current2;
|
|
18787
|
-
(_sliderRef$current2 = sliderRef.current) == null
|
|
18806
|
+
(_sliderRef$current2 = sliderRef.current) == null || _sliderRef$current2.querySelector(`[type="range"][data-index="${activeIndex}"]`).focus();
|
|
18788
18807
|
}
|
|
18789
18808
|
if (setActive) {
|
|
18790
18809
|
setActive(activeIndex);
|
|
@@ -18933,7 +18952,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
18933
18952
|
setFocusedThumbIndex(index);
|
|
18934
18953
|
}
|
|
18935
18954
|
setOpen(index);
|
|
18936
|
-
otherHandlers == null || (_otherHandlers$onFocu = otherHandlers.onFocus) == null
|
|
18955
|
+
otherHandlers == null || (_otherHandlers$onFocu = otherHandlers.onFocus) == null || _otherHandlers$onFocu.call(otherHandlers, event);
|
|
18937
18956
|
};
|
|
18938
18957
|
const createHandleHiddenInputBlur = otherHandlers => event => {
|
|
18939
18958
|
var _otherHandlers$onBlur;
|
|
@@ -18942,7 +18961,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
18942
18961
|
setFocusedThumbIndex(-1);
|
|
18943
18962
|
}
|
|
18944
18963
|
setOpen(-1);
|
|
18945
|
-
otherHandlers == null || (_otherHandlers$onBlur = otherHandlers.onBlur) == null
|
|
18964
|
+
otherHandlers == null || (_otherHandlers$onBlur = otherHandlers.onBlur) == null || _otherHandlers$onBlur.call(otherHandlers, event);
|
|
18946
18965
|
};
|
|
18947
18966
|
useEnhancedEffect$1(() => {
|
|
18948
18967
|
if (disabled && sliderRef.current.contains(document.activeElement)) {
|
|
@@ -18951,7 +18970,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
18951
18970
|
// on a disabled element:
|
|
18952
18971
|
// https://codesandbox.io/s/mui-pr-22247-forked-h151h?file=/src/App.js
|
|
18953
18972
|
// @ts-ignore
|
|
18954
|
-
(_document$activeEleme = document.activeElement) == null
|
|
18973
|
+
(_document$activeEleme = document.activeElement) == null || _document$activeEleme.blur();
|
|
18955
18974
|
}
|
|
18956
18975
|
}, [disabled]);
|
|
18957
18976
|
if (disabled && active !== -1) {
|
|
@@ -18962,7 +18981,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
18962
18981
|
}
|
|
18963
18982
|
const createHandleHiddenInputChange = otherHandlers => event => {
|
|
18964
18983
|
var _otherHandlers$onChan;
|
|
18965
|
-
(_otherHandlers$onChan = otherHandlers.onChange) == null
|
|
18984
|
+
(_otherHandlers$onChan = otherHandlers.onChange) == null || _otherHandlers$onChan.call(otherHandlers, event);
|
|
18966
18985
|
const index = Number(event.currentTarget.getAttribute('data-index'));
|
|
18967
18986
|
const value = values[index];
|
|
18968
18987
|
const marksIndex = marksValues.indexOf(value);
|
|
@@ -19200,7 +19219,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
19200
19219
|
}, [disabled, stopListening]);
|
|
19201
19220
|
const createHandleMouseDown = otherHandlers => event => {
|
|
19202
19221
|
var _otherHandlers$onMous;
|
|
19203
|
-
(_otherHandlers$onMous = otherHandlers.onMouseDown) == null
|
|
19222
|
+
(_otherHandlers$onMous = otherHandlers.onMouseDown) == null || _otherHandlers$onMous.call(otherHandlers, event);
|
|
19204
19223
|
if (disabled) {
|
|
19205
19224
|
return;
|
|
19206
19225
|
}
|
|
@@ -19251,13 +19270,13 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
19251
19270
|
};
|
|
19252
19271
|
const createHandleMouseOver = otherHandlers => event => {
|
|
19253
19272
|
var _otherHandlers$onMous2;
|
|
19254
|
-
(_otherHandlers$onMous2 = otherHandlers.onMouseOver) == null
|
|
19273
|
+
(_otherHandlers$onMous2 = otherHandlers.onMouseOver) == null || _otherHandlers$onMous2.call(otherHandlers, event);
|
|
19255
19274
|
const index = Number(event.currentTarget.getAttribute('data-index'));
|
|
19256
19275
|
setOpen(index);
|
|
19257
19276
|
};
|
|
19258
19277
|
const createHandleMouseLeave = otherHandlers => event => {
|
|
19259
19278
|
var _otherHandlers$onMous3;
|
|
19260
|
-
(_otherHandlers$onMous3 = otherHandlers.onMouseLeave) == null
|
|
19279
|
+
(_otherHandlers$onMous3 = otherHandlers.onMouseLeave) == null || _otherHandlers$onMous3.call(otherHandlers, event);
|
|
19261
19280
|
setOpen(-1);
|
|
19262
19281
|
};
|
|
19263
19282
|
const getThumbProps = (otherHandlers = {}) => {
|
|
@@ -19333,7 +19352,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
19333
19352
|
*
|
|
19334
19353
|
* - [useSnackbar API](https://mui.com/base-ui/react-snackbar/hooks-api/#use-snackbar)
|
|
19335
19354
|
*/
|
|
19336
|
-
function useSnackbar(parameters) {
|
|
19355
|
+
function useSnackbar(parameters = {}) {
|
|
19337
19356
|
const {
|
|
19338
19357
|
autoHideDuration = null,
|
|
19339
19358
|
disableWindowBlurListener = false,
|
|
@@ -19355,7 +19374,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
19355
19374
|
// IE11, Edge (prior to using Blink?) use 'Esc'
|
|
19356
19375
|
if (nativeEvent.key === 'Escape' || nativeEvent.key === 'Esc') {
|
|
19357
19376
|
// not calling `preventDefault` since we don't know if people may ignore this event e.g. a permanently open snackbar
|
|
19358
|
-
onClose == null
|
|
19377
|
+
onClose == null || onClose(nativeEvent, 'escapeKeyDown');
|
|
19359
19378
|
}
|
|
19360
19379
|
}
|
|
19361
19380
|
}
|
|
@@ -19365,7 +19384,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
19365
19384
|
};
|
|
19366
19385
|
}, [open, onClose]);
|
|
19367
19386
|
const handleClose = useEventCallback((event, reason) => {
|
|
19368
|
-
onClose == null
|
|
19387
|
+
onClose == null || onClose(event, reason);
|
|
19369
19388
|
});
|
|
19370
19389
|
const setAutoHideTimer = useEventCallback(autoHideDurationParam => {
|
|
19371
19390
|
if (!onClose || autoHideDurationParam == null) {
|
|
@@ -19385,7 +19404,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
19385
19404
|
};
|
|
19386
19405
|
}, [open, autoHideDuration, setAutoHideTimer]);
|
|
19387
19406
|
const handleClickAway = event => {
|
|
19388
|
-
onClose == null
|
|
19407
|
+
onClose == null || onClose(event, 'clickaway');
|
|
19389
19408
|
};
|
|
19390
19409
|
|
|
19391
19410
|
// Pause the timer when the user is interacting with the Snackbar
|
|
@@ -19403,22 +19422,22 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
19403
19422
|
}, [autoHideDuration, resumeHideDuration, setAutoHideTimer]);
|
|
19404
19423
|
const createHandleBlur = otherHandlers => event => {
|
|
19405
19424
|
const onBlurCallback = otherHandlers.onBlur;
|
|
19406
|
-
onBlurCallback == null
|
|
19425
|
+
onBlurCallback == null || onBlurCallback(event);
|
|
19407
19426
|
handleResume();
|
|
19408
19427
|
};
|
|
19409
19428
|
const createHandleFocus = otherHandlers => event => {
|
|
19410
19429
|
const onFocusCallback = otherHandlers.onFocus;
|
|
19411
|
-
onFocusCallback == null
|
|
19430
|
+
onFocusCallback == null || onFocusCallback(event);
|
|
19412
19431
|
handlePause();
|
|
19413
19432
|
};
|
|
19414
19433
|
const createMouseEnter = otherHandlers => event => {
|
|
19415
19434
|
const onMouseEnterCallback = otherHandlers.onMouseEnter;
|
|
19416
|
-
onMouseEnterCallback == null
|
|
19435
|
+
onMouseEnterCallback == null || onMouseEnterCallback(event);
|
|
19417
19436
|
handlePause();
|
|
19418
19437
|
};
|
|
19419
19438
|
const createMouseLeave = otherHandlers => event => {
|
|
19420
19439
|
const onMouseLeaveCallback = otherHandlers.onMouseLeave;
|
|
19421
|
-
onMouseLeaveCallback == null
|
|
19440
|
+
onMouseLeaveCallback == null || onMouseLeaveCallback(event);
|
|
19422
19441
|
handleResume();
|
|
19423
19442
|
};
|
|
19424
19443
|
React__namespace.useEffect(() => {
|
|
@@ -19433,14 +19452,13 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
19433
19452
|
}
|
|
19434
19453
|
return undefined;
|
|
19435
19454
|
}, [disableWindowBlurListener, handleResume, open]);
|
|
19436
|
-
const getRootProps = (
|
|
19437
|
-
const
|
|
19438
|
-
const externalEventHandlers = _extends({}, propsEventHandlers, otherHandlers);
|
|
19455
|
+
const getRootProps = (externalProps = {}) => {
|
|
19456
|
+
const externalEventHandlers = _extends({}, extractEventHandlers(parameters), extractEventHandlers(externalProps));
|
|
19439
19457
|
return _extends({
|
|
19440
19458
|
// ClickAwayListener adds an `onClick` prop which results in the alert not being announced.
|
|
19441
19459
|
// See https://github.com/mui/material-ui/issues/29080
|
|
19442
19460
|
role: 'presentation'
|
|
19443
|
-
}, externalEventHandlers, {
|
|
19461
|
+
}, externalProps, externalEventHandlers, {
|
|
19444
19462
|
onBlur: createHandleBlur(externalEventHandlers),
|
|
19445
19463
|
onFocus: createHandleFocus(externalEventHandlers),
|
|
19446
19464
|
onMouseEnter: createMouseEnter(externalEventHandlers),
|
|
@@ -19601,7 +19619,18 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
19601
19619
|
});
|
|
19602
19620
|
};
|
|
19603
19621
|
React__namespace.useEffect(() => {
|
|
19604
|
-
const handleResize =
|
|
19622
|
+
const handleResize = () => {
|
|
19623
|
+
renders.current = 0;
|
|
19624
|
+
|
|
19625
|
+
// If the TextareaAutosize component is replaced by Suspense with a fallback, the last
|
|
19626
|
+
// ResizeObserver's handler that runs because of the change in the layout is trying to
|
|
19627
|
+
// access a dom node that is no longer there (as the fallback component is being shown instead).
|
|
19628
|
+
// See https://github.com/mui/material-ui/issues/32640
|
|
19629
|
+
if (inputRef.current) {
|
|
19630
|
+
syncHeightWithFlushSync();
|
|
19631
|
+
}
|
|
19632
|
+
};
|
|
19633
|
+
const handleResizeWindow = debounce$1(() => {
|
|
19605
19634
|
renders.current = 0;
|
|
19606
19635
|
|
|
19607
19636
|
// If the TextareaAutosize component is replaced by Suspense with a fallback, the last
|
|
@@ -19615,14 +19644,14 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
19615
19644
|
let resizeObserver;
|
|
19616
19645
|
const input = inputRef.current;
|
|
19617
19646
|
const containerWindow = ownerWindow(input);
|
|
19618
|
-
containerWindow.addEventListener('resize',
|
|
19647
|
+
containerWindow.addEventListener('resize', handleResizeWindow);
|
|
19619
19648
|
if (typeof ResizeObserver !== 'undefined') {
|
|
19620
19649
|
resizeObserver = new ResizeObserver(handleResize);
|
|
19621
19650
|
resizeObserver.observe(input);
|
|
19622
19651
|
}
|
|
19623
19652
|
return () => {
|
|
19624
|
-
|
|
19625
|
-
containerWindow.removeEventListener('resize',
|
|
19653
|
+
handleResizeWindow.clear();
|
|
19654
|
+
containerWindow.removeEventListener('resize', handleResizeWindow);
|
|
19626
19655
|
if (resizeObserver) {
|
|
19627
19656
|
resizeObserver.disconnect();
|
|
19628
19657
|
}
|
|
@@ -21613,7 +21642,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
21613
21642
|
type
|
|
21614
21643
|
} = ownerState;
|
|
21615
21644
|
const slots = {
|
|
21616
|
-
root: ['root', `color${capitalize(color)}`, disabled && 'disabled', error && 'error', fullWidth && 'fullWidth', focused && 'focused', formControl && 'formControl', size
|
|
21645
|
+
root: ['root', `color${capitalize(color)}`, disabled && 'disabled', error && 'error', fullWidth && 'fullWidth', focused && 'focused', formControl && 'formControl', size && size !== 'medium' && `size${capitalize(size)}`, multiline && 'multiline', startAdornment && 'adornedStart', endAdornment && 'adornedEnd', hiddenLabel && 'hiddenLabel', readOnly && 'readOnly'],
|
|
21617
21646
|
input: ['input', disabled && 'disabled', type === 'search' && 'inputTypeSearch', multiline && 'inputMultiline', size === 'small' && 'inputSizeSmall', hiddenLabel && 'inputHiddenLabel', startAdornment && 'inputAdornedStart', endAdornment && 'inputAdornedEnd', readOnly && 'readOnly']
|
|
21618
21647
|
};
|
|
21619
21648
|
return composeClasses(slots, getInputBaseUtilityClass, classes);
|
|
@@ -25154,6 +25183,15 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
25154
25183
|
}
|
|
25155
25184
|
var ButtonGroupContext$1 = ButtonGroupContext;
|
|
25156
25185
|
|
|
25186
|
+
/**
|
|
25187
|
+
* @ignore - internal component.
|
|
25188
|
+
*/
|
|
25189
|
+
const ButtonGroupButtonContext = /*#__PURE__*/React__namespace.createContext(undefined);
|
|
25190
|
+
{
|
|
25191
|
+
ButtonGroupButtonContext.displayName = 'ButtonGroupButtonContext';
|
|
25192
|
+
}
|
|
25193
|
+
var ButtonGroupButtonContext$1 = ButtonGroupButtonContext;
|
|
25194
|
+
|
|
25157
25195
|
const _excluded$1D = ["children", "color", "component", "className", "disabled", "disableElevation", "disableFocusRipple", "endIcon", "focusVisibleClassName", "fullWidth", "size", "startIcon", "type", "variant"];
|
|
25158
25196
|
const useUtilityClasses$1p = ownerState => {
|
|
25159
25197
|
const {
|
|
@@ -25359,6 +25397,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
25359
25397
|
const Button = /*#__PURE__*/React__namespace.forwardRef(function Button(inProps, ref) {
|
|
25360
25398
|
// props priority: `inProps` > `contextProps` > `themeDefaultProps`
|
|
25361
25399
|
const contextProps = React__namespace.useContext(ButtonGroupContext$1);
|
|
25400
|
+
const buttonGroupButtonContextPositionClassName = React__namespace.useContext(ButtonGroupButtonContext$1);
|
|
25362
25401
|
const resolvedProps = resolveProps(contextProps, inProps);
|
|
25363
25402
|
const props = useThemeProps({
|
|
25364
25403
|
props: resolvedProps,
|
|
@@ -25403,9 +25442,10 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
25403
25442
|
ownerState: ownerState,
|
|
25404
25443
|
children: endIconProp
|
|
25405
25444
|
});
|
|
25445
|
+
const positionClassName = buttonGroupButtonContextPositionClassName || '';
|
|
25406
25446
|
return /*#__PURE__*/jsxRuntime_2(ButtonRoot, _extends({
|
|
25407
25447
|
ownerState: ownerState,
|
|
25408
|
-
className: clsx(contextProps.className, classes.root, className),
|
|
25448
|
+
className: clsx(contextProps.className, classes.root, className, positionClassName),
|
|
25409
25449
|
component: component,
|
|
25410
25450
|
disabled: disabled,
|
|
25411
25451
|
focusRipple: !disableFocusRipple,
|
|
@@ -25516,7 +25556,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
25516
25556
|
function getButtonGroupUtilityClass(slot) {
|
|
25517
25557
|
return generateUtilityClass('MuiButtonGroup', slot);
|
|
25518
25558
|
}
|
|
25519
|
-
const buttonGroupClasses = generateUtilityClasses('MuiButtonGroup', ['root', 'contained', 'outlined', 'text', 'disableElevation', 'disabled', 'fullWidth', 'vertical', 'grouped', 'groupedHorizontal', 'groupedVertical', 'groupedText', 'groupedTextHorizontal', 'groupedTextVertical', 'groupedTextPrimary', 'groupedTextSecondary', 'groupedOutlined', 'groupedOutlinedHorizontal', 'groupedOutlinedVertical', 'groupedOutlinedPrimary', 'groupedOutlinedSecondary', 'groupedContained', 'groupedContainedHorizontal', 'groupedContainedVertical', 'groupedContainedPrimary', 'groupedContainedSecondary']);
|
|
25559
|
+
const buttonGroupClasses = generateUtilityClasses('MuiButtonGroup', ['root', 'contained', 'outlined', 'text', 'disableElevation', 'disabled', 'firstButton', 'fullWidth', 'vertical', 'grouped', 'groupedHorizontal', 'groupedVertical', 'groupedText', 'groupedTextHorizontal', 'groupedTextVertical', 'groupedTextPrimary', 'groupedTextSecondary', 'groupedOutlined', 'groupedOutlinedHorizontal', 'groupedOutlinedVertical', 'groupedOutlinedPrimary', 'groupedOutlinedSecondary', 'groupedContained', 'groupedContainedHorizontal', 'groupedContainedVertical', 'groupedContainedPrimary', 'groupedContainedSecondary', 'lastButton', 'middleButton']);
|
|
25520
25560
|
var buttonGroupClasses$1 = buttonGroupClasses;
|
|
25521
25561
|
|
|
25522
25562
|
const _excluded$1C = ["children", "className", "color", "component", "disabled", "disableElevation", "disableFocusRipple", "disableRipple", "fullWidth", "orientation", "size", "variant"];
|
|
@@ -25534,6 +25574,12 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
25534
25574
|
[`& .${buttonGroupClasses$1.grouped}`]: styles[`grouped${capitalize(ownerState.variant)}${capitalize(ownerState.orientation)}`]
|
|
25535
25575
|
}, {
|
|
25536
25576
|
[`& .${buttonGroupClasses$1.grouped}`]: styles[`grouped${capitalize(ownerState.variant)}${capitalize(ownerState.color)}`]
|
|
25577
|
+
}, {
|
|
25578
|
+
[`& .${buttonGroupClasses$1.firstButton}`]: styles.firstButton
|
|
25579
|
+
}, {
|
|
25580
|
+
[`& .${buttonGroupClasses$1.lastButton}`]: styles.lastButton
|
|
25581
|
+
}, {
|
|
25582
|
+
[`& .${buttonGroupClasses$1.middleButton}`]: styles.middleButton
|
|
25537
25583
|
}, styles.root, styles[ownerState.variant], ownerState.disableElevation === true && styles.disableElevation, ownerState.fullWidth && styles.fullWidth, ownerState.orientation === 'vertical' && styles.vertical];
|
|
25538
25584
|
};
|
|
25539
25585
|
const useUtilityClasses$1o = ownerState => {
|
|
@@ -25548,7 +25594,10 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
25548
25594
|
} = ownerState;
|
|
25549
25595
|
const slots = {
|
|
25550
25596
|
root: ['root', variant, orientation === 'vertical' && 'vertical', fullWidth && 'fullWidth', disableElevation && 'disableElevation'],
|
|
25551
|
-
grouped: ['grouped', `grouped${capitalize(orientation)}`, `grouped${capitalize(variant)}`, `grouped${capitalize(variant)}${capitalize(orientation)}`, `grouped${capitalize(variant)}${capitalize(color)}`, disabled && 'disabled']
|
|
25597
|
+
grouped: ['grouped', `grouped${capitalize(orientation)}`, `grouped${capitalize(variant)}`, `grouped${capitalize(variant)}${capitalize(orientation)}`, `grouped${capitalize(variant)}${capitalize(color)}`, disabled && 'disabled'],
|
|
25598
|
+
firstButton: ['firstButton'],
|
|
25599
|
+
lastButton: ['lastButton'],
|
|
25600
|
+
middleButton: ['middleButton']
|
|
25552
25601
|
};
|
|
25553
25602
|
return composeClasses(slots, getButtonGroupUtilityClass, classes);
|
|
25554
25603
|
};
|
|
@@ -25573,63 +25622,63 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
25573
25622
|
}, {
|
|
25574
25623
|
[`& .${buttonGroupClasses$1.grouped}`]: _extends({
|
|
25575
25624
|
minWidth: 40,
|
|
25576
|
-
'&:not(:first-of-type)': _extends({}, ownerState.orientation === 'horizontal' && {
|
|
25577
|
-
borderTopLeftRadius: 0,
|
|
25578
|
-
borderBottomLeftRadius: 0
|
|
25579
|
-
}, ownerState.orientation === 'vertical' && {
|
|
25580
|
-
borderTopRightRadius: 0,
|
|
25581
|
-
borderTopLeftRadius: 0
|
|
25582
|
-
}, ownerState.variant === 'outlined' && ownerState.orientation === 'horizontal' && {
|
|
25583
|
-
marginLeft: -1
|
|
25584
|
-
}, ownerState.variant === 'outlined' && ownerState.orientation === 'vertical' && {
|
|
25585
|
-
marginTop: -1
|
|
25586
|
-
}),
|
|
25587
|
-
'&:not(:last-of-type)': _extends({}, ownerState.orientation === 'horizontal' && {
|
|
25588
|
-
borderTopRightRadius: 0,
|
|
25589
|
-
borderBottomRightRadius: 0
|
|
25590
|
-
}, ownerState.orientation === 'vertical' && {
|
|
25591
|
-
borderBottomRightRadius: 0,
|
|
25592
|
-
borderBottomLeftRadius: 0
|
|
25593
|
-
}, ownerState.variant === 'text' && ownerState.orientation === 'horizontal' && {
|
|
25594
|
-
borderRight: theme.vars ? `1px solid rgba(${theme.vars.palette.common.onBackgroundChannel} / 0.23)` : `1px solid ${theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)'}`,
|
|
25595
|
-
[`&.${buttonGroupClasses$1.disabled}`]: {
|
|
25596
|
-
borderRight: `1px solid ${(theme.vars || theme).palette.action.disabled}`
|
|
25597
|
-
}
|
|
25598
|
-
}, ownerState.variant === 'text' && ownerState.orientation === 'vertical' && {
|
|
25599
|
-
borderBottom: theme.vars ? `1px solid rgba(${theme.vars.palette.common.onBackgroundChannel} / 0.23)` : `1px solid ${theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)'}`,
|
|
25600
|
-
[`&.${buttonGroupClasses$1.disabled}`]: {
|
|
25601
|
-
borderBottom: `1px solid ${(theme.vars || theme).palette.action.disabled}`
|
|
25602
|
-
}
|
|
25603
|
-
}, ownerState.variant === 'text' && ownerState.color !== 'inherit' && {
|
|
25604
|
-
borderColor: theme.vars ? `rgba(${theme.vars.palette[ownerState.color].mainChannel} / 0.5)` : alpha(theme.palette[ownerState.color].main, 0.5)
|
|
25605
|
-
}, ownerState.variant === 'outlined' && ownerState.orientation === 'horizontal' && {
|
|
25606
|
-
borderRightColor: 'transparent'
|
|
25607
|
-
}, ownerState.variant === 'outlined' && ownerState.orientation === 'vertical' && {
|
|
25608
|
-
borderBottomColor: 'transparent'
|
|
25609
|
-
}, ownerState.variant === 'contained' && ownerState.orientation === 'horizontal' && {
|
|
25610
|
-
borderRight: `1px solid ${(theme.vars || theme).palette.grey[400]}`,
|
|
25611
|
-
[`&.${buttonGroupClasses$1.disabled}`]: {
|
|
25612
|
-
borderRight: `1px solid ${(theme.vars || theme).palette.action.disabled}`
|
|
25613
|
-
}
|
|
25614
|
-
}, ownerState.variant === 'contained' && ownerState.orientation === 'vertical' && {
|
|
25615
|
-
borderBottom: `1px solid ${(theme.vars || theme).palette.grey[400]}`,
|
|
25616
|
-
[`&.${buttonGroupClasses$1.disabled}`]: {
|
|
25617
|
-
borderBottom: `1px solid ${(theme.vars || theme).palette.action.disabled}`
|
|
25618
|
-
}
|
|
25619
|
-
}, ownerState.variant === 'contained' && ownerState.color !== 'inherit' && {
|
|
25620
|
-
borderColor: (theme.vars || theme).palette[ownerState.color].dark
|
|
25621
|
-
}, {
|
|
25622
|
-
'&:hover': _extends({}, ownerState.variant === 'outlined' && ownerState.orientation === 'horizontal' && {
|
|
25623
|
-
borderRightColor: 'currentColor'
|
|
25624
|
-
}, ownerState.variant === 'outlined' && ownerState.orientation === 'vertical' && {
|
|
25625
|
-
borderBottomColor: 'currentColor'
|
|
25626
|
-
})
|
|
25627
|
-
}),
|
|
25628
25625
|
'&:hover': _extends({}, ownerState.variant === 'contained' && {
|
|
25629
25626
|
boxShadow: 'none'
|
|
25630
25627
|
})
|
|
25631
25628
|
}, ownerState.variant === 'contained' && {
|
|
25632
25629
|
boxShadow: 'none'
|
|
25630
|
+
}),
|
|
25631
|
+
[`& .${buttonGroupClasses$1.firstButton},& .${buttonGroupClasses$1.middleButton}`]: _extends({}, ownerState.orientation === 'horizontal' && {
|
|
25632
|
+
borderTopRightRadius: 0,
|
|
25633
|
+
borderBottomRightRadius: 0
|
|
25634
|
+
}, ownerState.orientation === 'vertical' && {
|
|
25635
|
+
borderBottomRightRadius: 0,
|
|
25636
|
+
borderBottomLeftRadius: 0
|
|
25637
|
+
}, ownerState.variant === 'text' && ownerState.orientation === 'horizontal' && {
|
|
25638
|
+
borderRight: theme.vars ? `1px solid rgba(${theme.vars.palette.common.onBackgroundChannel} / 0.23)` : `1px solid ${theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)'}`,
|
|
25639
|
+
[`&.${buttonGroupClasses$1.disabled}`]: {
|
|
25640
|
+
borderRight: `1px solid ${(theme.vars || theme).palette.action.disabled}`
|
|
25641
|
+
}
|
|
25642
|
+
}, ownerState.variant === 'text' && ownerState.orientation === 'vertical' && {
|
|
25643
|
+
borderBottom: theme.vars ? `1px solid rgba(${theme.vars.palette.common.onBackgroundChannel} / 0.23)` : `1px solid ${theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)'}`,
|
|
25644
|
+
[`&.${buttonGroupClasses$1.disabled}`]: {
|
|
25645
|
+
borderBottom: `1px solid ${(theme.vars || theme).palette.action.disabled}`
|
|
25646
|
+
}
|
|
25647
|
+
}, ownerState.variant === 'text' && ownerState.color !== 'inherit' && {
|
|
25648
|
+
borderColor: theme.vars ? `rgba(${theme.vars.palette[ownerState.color].mainChannel} / 0.5)` : alpha(theme.palette[ownerState.color].main, 0.5)
|
|
25649
|
+
}, ownerState.variant === 'outlined' && ownerState.orientation === 'horizontal' && {
|
|
25650
|
+
borderRightColor: 'transparent'
|
|
25651
|
+
}, ownerState.variant === 'outlined' && ownerState.orientation === 'vertical' && {
|
|
25652
|
+
borderBottomColor: 'transparent'
|
|
25653
|
+
}, ownerState.variant === 'contained' && ownerState.orientation === 'horizontal' && {
|
|
25654
|
+
borderRight: `1px solid ${(theme.vars || theme).palette.grey[400]}`,
|
|
25655
|
+
[`&.${buttonGroupClasses$1.disabled}`]: {
|
|
25656
|
+
borderRight: `1px solid ${(theme.vars || theme).palette.action.disabled}`
|
|
25657
|
+
}
|
|
25658
|
+
}, ownerState.variant === 'contained' && ownerState.orientation === 'vertical' && {
|
|
25659
|
+
borderBottom: `1px solid ${(theme.vars || theme).palette.grey[400]}`,
|
|
25660
|
+
[`&.${buttonGroupClasses$1.disabled}`]: {
|
|
25661
|
+
borderBottom: `1px solid ${(theme.vars || theme).palette.action.disabled}`
|
|
25662
|
+
}
|
|
25663
|
+
}, ownerState.variant === 'contained' && ownerState.color !== 'inherit' && {
|
|
25664
|
+
borderColor: (theme.vars || theme).palette[ownerState.color].dark
|
|
25665
|
+
}, {
|
|
25666
|
+
'&:hover': _extends({}, ownerState.variant === 'outlined' && ownerState.orientation === 'horizontal' && {
|
|
25667
|
+
borderRightColor: 'currentColor'
|
|
25668
|
+
}, ownerState.variant === 'outlined' && ownerState.orientation === 'vertical' && {
|
|
25669
|
+
borderBottomColor: 'currentColor'
|
|
25670
|
+
})
|
|
25671
|
+
}),
|
|
25672
|
+
[`& .${buttonGroupClasses$1.lastButton},& .${buttonGroupClasses$1.middleButton}`]: _extends({}, ownerState.orientation === 'horizontal' && {
|
|
25673
|
+
borderTopLeftRadius: 0,
|
|
25674
|
+
borderBottomLeftRadius: 0
|
|
25675
|
+
}, ownerState.orientation === 'vertical' && {
|
|
25676
|
+
borderTopRightRadius: 0,
|
|
25677
|
+
borderTopLeftRadius: 0
|
|
25678
|
+
}, ownerState.variant === 'outlined' && ownerState.orientation === 'horizontal' && {
|
|
25679
|
+
marginLeft: -1
|
|
25680
|
+
}, ownerState.variant === 'outlined' && ownerState.orientation === 'vertical' && {
|
|
25681
|
+
marginTop: -1
|
|
25633
25682
|
})
|
|
25634
25683
|
}));
|
|
25635
25684
|
const ButtonGroup = /*#__PURE__*/React__namespace.forwardRef(function ButtonGroup(inProps, ref) {
|
|
@@ -25676,6 +25725,20 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
25676
25725
|
size,
|
|
25677
25726
|
variant
|
|
25678
25727
|
}), [color, disabled, disableElevation, disableFocusRipple, disableRipple, fullWidth, size, variant, classes.grouped]);
|
|
25728
|
+
const getButtonPositionClassName = (index, childrenParam) => {
|
|
25729
|
+
const isFirstButton = index === 0;
|
|
25730
|
+
const isLastButton = index === React__namespace.Children.count(childrenParam) - 1;
|
|
25731
|
+
if (isFirstButton && isLastButton) {
|
|
25732
|
+
return '';
|
|
25733
|
+
}
|
|
25734
|
+
if (isFirstButton) {
|
|
25735
|
+
return classes.firstButton;
|
|
25736
|
+
}
|
|
25737
|
+
if (isLastButton) {
|
|
25738
|
+
return classes.lastButton;
|
|
25739
|
+
}
|
|
25740
|
+
return classes.middleButton;
|
|
25741
|
+
};
|
|
25679
25742
|
return /*#__PURE__*/jsxRuntime_1(ButtonGroupRoot, _extends({
|
|
25680
25743
|
as: component,
|
|
25681
25744
|
role: "group",
|
|
@@ -25685,7 +25748,15 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
25685
25748
|
}, other, {
|
|
25686
25749
|
children: /*#__PURE__*/jsxRuntime_1(ButtonGroupContext$1.Provider, {
|
|
25687
25750
|
value: context,
|
|
25688
|
-
children: children
|
|
25751
|
+
children: React__namespace.Children.map(children, (child, index) => {
|
|
25752
|
+
if (! /*#__PURE__*/React__namespace.isValidElement(child)) {
|
|
25753
|
+
return child;
|
|
25754
|
+
}
|
|
25755
|
+
return /*#__PURE__*/jsxRuntime_1(ButtonGroupButtonContext$1.Provider, {
|
|
25756
|
+
value: getButtonPositionClassName(index, children),
|
|
25757
|
+
children: child
|
|
25758
|
+
});
|
|
25759
|
+
})
|
|
25689
25760
|
})
|
|
25690
25761
|
}));
|
|
25691
25762
|
});
|
|
@@ -27129,7 +27200,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
27129
27200
|
/**
|
|
27130
27201
|
* The size of the component.
|
|
27131
27202
|
* If using a number, the pixel unit is assumed.
|
|
27132
|
-
* If using a string, you need to provide the CSS unit, e.g '3rem'.
|
|
27203
|
+
* If using a string, you need to provide the CSS unit, e.g. '3rem'.
|
|
27133
27204
|
* @default 40
|
|
27134
27205
|
*/
|
|
27135
27206
|
size: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
@@ -27361,7 +27432,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
27361
27432
|
const modalClasses = generateUtilityClasses('MuiModal', ['root', 'hidden', 'backdrop']);
|
|
27362
27433
|
var modalClasses$1 = modalClasses;
|
|
27363
27434
|
|
|
27364
|
-
const _excluded$1s = ["BackdropComponent", "BackdropProps", "classes", "className", "closeAfterTransition", "children", "container", "component", "components", "componentsProps", "disableAutoFocus", "disableEnforceFocus", "disableEscapeKeyDown", "disablePortal", "disableRestoreFocus", "disableScrollLock", "hideBackdrop", "keepMounted", "onBackdropClick", "onClose", "open", "slotProps", "slots", "theme"];
|
|
27435
|
+
const _excluded$1s = ["BackdropComponent", "BackdropProps", "classes", "className", "closeAfterTransition", "children", "container", "component", "components", "componentsProps", "disableAutoFocus", "disableEnforceFocus", "disableEscapeKeyDown", "disablePortal", "disableRestoreFocus", "disableScrollLock", "hideBackdrop", "keepMounted", "onBackdropClick", "onClose", "onTransitionEnter", "onTransitionExited", "open", "slotProps", "slots", "theme"];
|
|
27365
27436
|
const useUtilityClasses$1e = ownerState => {
|
|
27366
27437
|
const {
|
|
27367
27438
|
open,
|
|
@@ -32808,7 +32879,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
32808
32879
|
height,
|
|
32809
32880
|
gridColumnEnd: variant !== 'masonry' ? `span ${cols}` : undefined,
|
|
32810
32881
|
gridRowEnd: variant !== 'masonry' ? `span ${rows}` : undefined,
|
|
32811
|
-
marginBottom: variant === 'masonry' ? gap : undefined
|
|
32882
|
+
marginBottom: variant === 'masonry' ? gap : undefined,
|
|
32883
|
+
breakInside: variant === 'masonry' ? 'avoid' : undefined
|
|
32812
32884
|
}, style),
|
|
32813
32885
|
ownerState: ownerState
|
|
32814
32886
|
}, other, {
|
|
@@ -33599,7 +33671,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
33599
33671
|
required
|
|
33600
33672
|
} = ownerState;
|
|
33601
33673
|
const slots = {
|
|
33602
|
-
root: ['root', formControl && 'formControl', !disableAnimation && 'animated', shrink && 'shrink', size
|
|
33674
|
+
root: ['root', formControl && 'formControl', !disableAnimation && 'animated', shrink && 'shrink', size && size !== 'normal' && `size${capitalize(size)}`, variant],
|
|
33603
33675
|
asterisk: [required && 'asterisk']
|
|
33604
33676
|
};
|
|
33605
33677
|
const composedClasses = composeClasses(slots, getInputLabelUtilityClasses, classes);
|
|
@@ -38659,17 +38731,18 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
38659
38731
|
function getRadioUtilityClass(slot) {
|
|
38660
38732
|
return generateUtilityClass('MuiRadio', slot);
|
|
38661
38733
|
}
|
|
38662
|
-
const radioClasses = generateUtilityClasses('MuiRadio', ['root', 'checked', 'disabled', 'colorPrimary', 'colorSecondary']);
|
|
38734
|
+
const radioClasses = generateUtilityClasses('MuiRadio', ['root', 'checked', 'disabled', 'colorPrimary', 'colorSecondary', 'sizeSmall']);
|
|
38663
38735
|
var radioClasses$1 = radioClasses;
|
|
38664
38736
|
|
|
38665
38737
|
const _excluded$H = ["checked", "checkedIcon", "color", "icon", "name", "onChange", "size", "className"];
|
|
38666
38738
|
const useUtilityClasses$A = ownerState => {
|
|
38667
38739
|
const {
|
|
38668
38740
|
classes,
|
|
38669
|
-
color
|
|
38741
|
+
color,
|
|
38742
|
+
size
|
|
38670
38743
|
} = ownerState;
|
|
38671
38744
|
const slots = {
|
|
38672
|
-
root: ['root', `color${capitalize(color)}`]
|
|
38745
|
+
root: ['root', `color${capitalize(color)}`, size !== 'medium' && `size${capitalize(size)}`]
|
|
38673
38746
|
};
|
|
38674
38747
|
return _extends({}, classes, composeClasses(slots, getRadioUtilityClass, classes));
|
|
38675
38748
|
};
|
|
@@ -39779,6 +39852,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
39779
39852
|
* @ignore - internal component.
|
|
39780
39853
|
*/
|
|
39781
39854
|
const SelectInput = /*#__PURE__*/React__namespace.forwardRef(function SelectInput(props, ref) {
|
|
39855
|
+
var _MenuProps$slotProps;
|
|
39782
39856
|
const {
|
|
39783
39857
|
'aria-describedby': ariaDescribedby,
|
|
39784
39858
|
'aria-label': ariaLabel,
|
|
@@ -40102,6 +40176,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
40102
40176
|
error
|
|
40103
40177
|
});
|
|
40104
40178
|
const classes = useUtilityClasses$x(ownerState);
|
|
40179
|
+
const paperProps = _extends({}, MenuProps.PaperProps, (_MenuProps$slotProps = MenuProps.slotProps) == null ? void 0 : _MenuProps$slotProps.paper);
|
|
40105
40180
|
return /*#__PURE__*/jsxRuntime_2(React__namespace.Fragment, {
|
|
40106
40181
|
children: [/*#__PURE__*/jsxRuntime_1(SelectSelect, _extends({
|
|
40107
40182
|
ref: handleDisplayRef,
|
|
@@ -40163,11 +40238,13 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
40163
40238
|
role: 'listbox',
|
|
40164
40239
|
disableListWrap: true
|
|
40165
40240
|
}, MenuProps.MenuListProps),
|
|
40166
|
-
|
|
40167
|
-
|
|
40168
|
-
|
|
40169
|
-
|
|
40170
|
-
|
|
40241
|
+
slotProps: {
|
|
40242
|
+
paper: _extends({}, paperProps, {
|
|
40243
|
+
style: _extends({
|
|
40244
|
+
minWidth: menuMinWidth
|
|
40245
|
+
}, paperProps != null ? paperProps.style : null)
|
|
40246
|
+
})
|
|
40247
|
+
},
|
|
40171
40248
|
children: items
|
|
40172
40249
|
}))]
|
|
40173
40250
|
});
|
|
@@ -40824,7 +40901,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
40824
40901
|
/**
|
|
40825
40902
|
* @ignore - internal component.
|
|
40826
40903
|
*/
|
|
40827
|
-
function SliderValueLabel(props) {
|
|
40904
|
+
function SliderValueLabel$1(props) {
|
|
40828
40905
|
const {
|
|
40829
40906
|
children,
|
|
40830
40907
|
className,
|
|
@@ -40850,7 +40927,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
40850
40927
|
})]
|
|
40851
40928
|
}));
|
|
40852
40929
|
}
|
|
40853
|
-
SliderValueLabel.propTypes = {
|
|
40930
|
+
SliderValueLabel$1.propTypes = {
|
|
40854
40931
|
children: PropTypes.element.isRequired,
|
|
40855
40932
|
className: PropTypes.string,
|
|
40856
40933
|
value: PropTypes.node
|
|
@@ -40922,16 +40999,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
40922
40999
|
}
|
|
40923
41000
|
}
|
|
40924
41001
|
}));
|
|
40925
|
-
SliderRoot.propTypes /* remove-proptypes */ = {
|
|
40926
|
-
// ----------------------------- Warning --------------------------------
|
|
40927
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
40928
|
-
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
40929
|
-
// ----------------------------------------------------------------------
|
|
40930
|
-
/**
|
|
40931
|
-
* @ignore
|
|
40932
|
-
*/
|
|
40933
|
-
children: PropTypes.node
|
|
40934
|
-
} ;
|
|
40935
41002
|
const SliderRail = styled$1('span', {
|
|
40936
41003
|
name: 'MuiSlider',
|
|
40937
41004
|
slot: 'Rail',
|
|
@@ -40957,16 +41024,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
40957
41024
|
}, ownerState.track === 'inverted' && {
|
|
40958
41025
|
opacity: 1
|
|
40959
41026
|
}));
|
|
40960
|
-
SliderRail.propTypes /* remove-proptypes */ = {
|
|
40961
|
-
// ----------------------------- Warning --------------------------------
|
|
40962
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
40963
|
-
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
40964
|
-
// ----------------------------------------------------------------------
|
|
40965
|
-
/**
|
|
40966
|
-
* @ignore
|
|
40967
|
-
*/
|
|
40968
|
-
children: PropTypes.node
|
|
40969
|
-
} ;
|
|
40970
41027
|
const SliderTrack = styled$1('span', {
|
|
40971
41028
|
name: 'MuiSlider',
|
|
40972
41029
|
slot: 'Track',
|
|
@@ -41004,16 +41061,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
41004
41061
|
borderColor: theme.vars ? theme.vars.palette.Slider[`${ownerState.color}Track`] : color
|
|
41005
41062
|
});
|
|
41006
41063
|
});
|
|
41007
|
-
SliderTrack.propTypes /* remove-proptypes */ = {
|
|
41008
|
-
// ----------------------------- Warning --------------------------------
|
|
41009
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
41010
|
-
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
41011
|
-
// ----------------------------------------------------------------------
|
|
41012
|
-
/**
|
|
41013
|
-
* @ignore
|
|
41014
|
-
*/
|
|
41015
|
-
children: PropTypes.node
|
|
41016
|
-
} ;
|
|
41017
41064
|
const SliderThumb = styled$1('span', {
|
|
41018
41065
|
name: 'MuiSlider',
|
|
41019
41066
|
slot: 'Thumb',
|
|
@@ -41086,17 +41133,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
41086
41133
|
}
|
|
41087
41134
|
}
|
|
41088
41135
|
}));
|
|
41089
|
-
|
|
41090
|
-
// ----------------------------- Warning --------------------------------
|
|
41091
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
41092
|
-
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
41093
|
-
// ----------------------------------------------------------------------
|
|
41094
|
-
/**
|
|
41095
|
-
* @ignore
|
|
41096
|
-
*/
|
|
41097
|
-
children: PropTypes.node
|
|
41098
|
-
} ;
|
|
41099
|
-
const StyledSliderValueLabel = styled$1(SliderValueLabel, {
|
|
41136
|
+
const SliderValueLabel = styled$1(SliderValueLabel$1, {
|
|
41100
41137
|
name: 'MuiSlider',
|
|
41101
41138
|
slot: 'ValueLabel',
|
|
41102
41139
|
overridesResolver: (props, styles) => styles.valueLabel
|
|
@@ -41154,16 +41191,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
41154
41191
|
fontSize: theme.typography.pxToRem(12),
|
|
41155
41192
|
padding: '0.25rem 0.5rem'
|
|
41156
41193
|
}));
|
|
41157
|
-
StyledSliderValueLabel.propTypes /* remove-proptypes */ = {
|
|
41158
|
-
// ----------------------------- Warning --------------------------------
|
|
41159
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
41160
|
-
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
41161
|
-
// ----------------------------------------------------------------------
|
|
41162
|
-
/**
|
|
41163
|
-
* @ignore
|
|
41164
|
-
*/
|
|
41165
|
-
children: PropTypes.node
|
|
41166
|
-
} ;
|
|
41167
41194
|
const SliderMark = styled$1('span', {
|
|
41168
41195
|
name: 'MuiSlider',
|
|
41169
41196
|
slot: 'Mark',
|
|
@@ -41194,16 +41221,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
41194
41221
|
backgroundColor: (theme.vars || theme).palette.background.paper,
|
|
41195
41222
|
opacity: 0.8
|
|
41196
41223
|
}));
|
|
41197
|
-
SliderMark.propTypes /* remove-proptypes */ = {
|
|
41198
|
-
// ----------------------------- Warning --------------------------------
|
|
41199
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
41200
|
-
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
41201
|
-
// ----------------------------------------------------------------------
|
|
41202
|
-
/**
|
|
41203
|
-
* @ignore
|
|
41204
|
-
*/
|
|
41205
|
-
children: PropTypes.node
|
|
41206
|
-
} ;
|
|
41207
41224
|
const SliderMarkLabel = styled$1('span', {
|
|
41208
41225
|
name: 'MuiSlider',
|
|
41209
41226
|
slot: 'MarkLabel',
|
|
@@ -41232,16 +41249,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
41232
41249
|
}, markLabelActive && {
|
|
41233
41250
|
color: (theme.vars || theme).palette.text.primary
|
|
41234
41251
|
}));
|
|
41235
|
-
SliderMarkLabel.propTypes /* remove-proptypes */ = {
|
|
41236
|
-
// ----------------------------- Warning --------------------------------
|
|
41237
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
41238
|
-
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
41239
|
-
// ----------------------------------------------------------------------
|
|
41240
|
-
/**
|
|
41241
|
-
* @ignore
|
|
41242
|
-
*/
|
|
41243
|
-
children: PropTypes.node
|
|
41244
|
-
} ;
|
|
41245
41252
|
const useUtilityClasses$u = ownerState => {
|
|
41246
41253
|
const {
|
|
41247
41254
|
disabled,
|
|
@@ -41355,7 +41362,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
41355
41362
|
const RailSlot = (_ref2 = (_slots$rail = slots == null ? void 0 : slots.rail) != null ? _slots$rail : components.Rail) != null ? _ref2 : SliderRail;
|
|
41356
41363
|
const TrackSlot = (_ref3 = (_slots$track = slots == null ? void 0 : slots.track) != null ? _slots$track : components.Track) != null ? _ref3 : SliderTrack;
|
|
41357
41364
|
const ThumbSlot = (_ref4 = (_slots$thumb = slots == null ? void 0 : slots.thumb) != null ? _slots$thumb : components.Thumb) != null ? _ref4 : SliderThumb;
|
|
41358
|
-
const ValueLabelSlot = (_ref5 = (_slots$valueLabel = slots == null ? void 0 : slots.valueLabel) != null ? _slots$valueLabel : components.ValueLabel) != null ? _ref5 :
|
|
41365
|
+
const ValueLabelSlot = (_ref5 = (_slots$valueLabel = slots == null ? void 0 : slots.valueLabel) != null ? _slots$valueLabel : components.ValueLabel) != null ? _ref5 : SliderValueLabel;
|
|
41359
41366
|
const MarkSlot = (_ref6 = (_slots$mark = slots == null ? void 0 : slots.mark) != null ? _slots$mark : components.Mark) != null ? _ref6 : SliderMark;
|
|
41360
41367
|
const MarkLabelSlot = (_ref7 = (_slots$markLabel = slots == null ? void 0 : slots.markLabel) != null ? _slots$markLabel : components.MarkLabel) != null ? _ref7 : SliderMarkLabel;
|
|
41361
41368
|
const InputSlot = (_ref8 = (_slots$input = slots == null ? void 0 : slots.input) != null ? _slots$input : components.Input) != null ? _ref8 : 'input';
|
|
@@ -45664,7 +45671,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
45664
45671
|
*
|
|
45665
45672
|
* @default false
|
|
45666
45673
|
*/
|
|
45667
|
-
allowSwipeInChildren: PropTypes.oneOfType([PropTypes.
|
|
45674
|
+
allowSwipeInChildren: PropTypes.oneOfType([PropTypes.func, PropTypes.bool]),
|
|
45668
45675
|
/**
|
|
45669
45676
|
* @ignore
|
|
45670
45677
|
*/
|
|
@@ -45719,20 +45726,20 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
45719
45726
|
/**
|
|
45720
45727
|
* Callback fired when the component requests to be closed.
|
|
45721
45728
|
*
|
|
45722
|
-
* @param {
|
|
45729
|
+
* @param {React.SyntheticEvent<{}>} event The event source of the callback.
|
|
45723
45730
|
*/
|
|
45724
45731
|
onClose: PropTypes.func.isRequired,
|
|
45725
45732
|
/**
|
|
45726
45733
|
* Callback fired when the component requests to be opened.
|
|
45727
45734
|
*
|
|
45728
|
-
* @param {
|
|
45735
|
+
* @param {React.SyntheticEvent<{}>} event The event source of the callback.
|
|
45729
45736
|
*/
|
|
45730
45737
|
onOpen: PropTypes.func.isRequired,
|
|
45731
45738
|
/**
|
|
45732
45739
|
* If `true`, the component is shown.
|
|
45733
45740
|
* @default false
|
|
45734
45741
|
*/
|
|
45735
|
-
open: PropTypes.bool
|
|
45742
|
+
open: PropTypes.bool,
|
|
45736
45743
|
/**
|
|
45737
45744
|
* @ignore
|
|
45738
45745
|
*/
|
|
@@ -48299,10 +48306,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
48299
48306
|
width: 2,
|
|
48300
48307
|
right: 0
|
|
48301
48308
|
}));
|
|
48302
|
-
const TabsScrollbarSize = styled$1(ScrollbarSize
|
|
48303
|
-
name: 'MuiTabs',
|
|
48304
|
-
slot: 'ScrollbarSize'
|
|
48305
|
-
})({
|
|
48309
|
+
const TabsScrollbarSize = styled$1(ScrollbarSize)({
|
|
48306
48310
|
overflowX: 'auto',
|
|
48307
48311
|
overflowY: 'hidden',
|
|
48308
48312
|
// Hide dimensionless scrollbar on macOS
|
|
@@ -49882,7 +49886,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
49882
49886
|
exports.SliderRoot = SliderRoot;
|
|
49883
49887
|
exports.SliderThumb = SliderThumb;
|
|
49884
49888
|
exports.SliderTrack = SliderTrack;
|
|
49885
|
-
exports.SliderValueLabel =
|
|
49889
|
+
exports.SliderValueLabel = SliderValueLabel;
|
|
49886
49890
|
exports.Snackbar = Snackbar$1;
|
|
49887
49891
|
exports.SnackbarContent = SnackbarContent$1;
|
|
49888
49892
|
exports.SpeedDial = SpeedDial$1;
|