@mui/material 5.14.8 → 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/AlertTitle/AlertTitle.d.ts +1 -0
- package/Breadcrumbs/Breadcrumbs.d.ts +1 -0
- package/Button/Button.js +4 -1
- 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 +124 -19
- package/DialogTitle/DialogTitle.d.ts +1 -0
- package/Modal/Modal.js +1 -1
- package/README.md +9 -198
- package/Slider/Slider.js +9 -86
- package/Tabs/Tabs.js +1 -4
- 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/Modal/Modal.js +3 -1
- package/legacy/Slider/Slider.js +9 -86
- 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/Modal/Modal.js +1 -1
- package/modern/Slider/Slider.js +9 -86
- 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/Modal/Modal.js +1 -1
- package/node/Slider/Slider.js +3 -73
- 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 +209 -232
- 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
|
|
@@ -8333,31 +8333,29 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8333
8333
|
return /*#__PURE__*/jsxRuntime_1("script", {
|
|
8334
8334
|
// eslint-disable-next-line react/no-danger
|
|
8335
8335
|
dangerouslySetInnerHTML: {
|
|
8336
|
-
__html: `(function() {
|
|
8337
|
-
|
|
8338
|
-
|
|
8339
|
-
|
|
8340
|
-
|
|
8341
|
-
|
|
8342
|
-
|
|
8343
|
-
|
|
8344
|
-
|
|
8345
|
-
|
|
8346
|
-
|
|
8347
|
-
|
|
8348
|
-
|
|
8349
|
-
|
|
8350
|
-
|
|
8351
|
-
|
|
8352
|
-
|
|
8353
|
-
|
|
8354
|
-
|
|
8355
|
-
|
|
8356
|
-
|
|
8357
|
-
|
|
8358
|
-
|
|
8359
|
-
}
|
|
8360
|
-
} 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){}})();`
|
|
8361
8359
|
}
|
|
8362
8360
|
}, "mui-color-scheme-init");
|
|
8363
8361
|
}
|
|
@@ -15827,51 +15825,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
15827
15825
|
return;
|
|
15828
15826
|
}
|
|
15829
15827
|
const doc = ownerDocument(rootRef.current);
|
|
15830
|
-
const contain = nativeEvent => {
|
|
15831
|
-
const {
|
|
15832
|
-
current: rootElement
|
|
15833
|
-
} = rootRef;
|
|
15834
|
-
|
|
15835
|
-
// Cleanup functions are executed lazily in React 17.
|
|
15836
|
-
// Contain can be called between the component being unmounted and its cleanup function being run.
|
|
15837
|
-
if (rootElement === null) {
|
|
15838
|
-
return;
|
|
15839
|
-
}
|
|
15840
|
-
if (!doc.hasFocus() || disableEnforceFocus || !isEnabled() || ignoreNextEnforceFocus.current) {
|
|
15841
|
-
ignoreNextEnforceFocus.current = false;
|
|
15842
|
-
return;
|
|
15843
|
-
}
|
|
15844
|
-
if (!rootElement.contains(doc.activeElement)) {
|
|
15845
|
-
// if the focus event is not coming from inside the children's react tree, reset the refs
|
|
15846
|
-
if (nativeEvent && reactFocusEventTarget.current !== nativeEvent.target || doc.activeElement !== reactFocusEventTarget.current) {
|
|
15847
|
-
reactFocusEventTarget.current = null;
|
|
15848
|
-
} else if (reactFocusEventTarget.current !== null) {
|
|
15849
|
-
return;
|
|
15850
|
-
}
|
|
15851
|
-
if (!activated.current) {
|
|
15852
|
-
return;
|
|
15853
|
-
}
|
|
15854
|
-
let tabbable = [];
|
|
15855
|
-
if (doc.activeElement === sentinelStart.current || doc.activeElement === sentinelEnd.current) {
|
|
15856
|
-
tabbable = getTabbable(rootRef.current);
|
|
15857
|
-
}
|
|
15858
|
-
if (tabbable.length > 0) {
|
|
15859
|
-
var _lastKeydown$current, _lastKeydown$current2;
|
|
15860
|
-
const isShiftTab = Boolean(((_lastKeydown$current = lastKeydown.current) == null ? void 0 : _lastKeydown$current.shiftKey) && ((_lastKeydown$current2 = lastKeydown.current) == null ? void 0 : _lastKeydown$current2.key) === 'Tab');
|
|
15861
|
-
const focusNext = tabbable[0];
|
|
15862
|
-
const focusPrevious = tabbable[tabbable.length - 1];
|
|
15863
|
-
if (typeof focusNext !== 'string' && typeof focusPrevious !== 'string') {
|
|
15864
|
-
if (isShiftTab) {
|
|
15865
|
-
focusPrevious.focus();
|
|
15866
|
-
} else {
|
|
15867
|
-
focusNext.focus();
|
|
15868
|
-
}
|
|
15869
|
-
}
|
|
15870
|
-
} else {
|
|
15871
|
-
rootElement.focus();
|
|
15872
|
-
}
|
|
15873
|
-
}
|
|
15874
|
-
};
|
|
15875
15828
|
const loopFocus = nativeEvent => {
|
|
15876
15829
|
lastKeydown.current = nativeEvent;
|
|
15877
15830
|
if (disableEnforceFocus || !isEnabled() || nativeEvent.key !== 'Tab') {
|
|
@@ -15889,6 +15842,62 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
15889
15842
|
}
|
|
15890
15843
|
}
|
|
15891
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
|
+
};
|
|
15892
15901
|
doc.addEventListener('focusin', contain);
|
|
15893
15902
|
doc.addEventListener('keydown', loopFocus, true);
|
|
15894
15903
|
|
|
@@ -15900,7 +15909,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
15900
15909
|
// https://html.spec.whatwg.org/multipage/interaction.html#focus-fixup-rule.
|
|
15901
15910
|
const interval = setInterval(() => {
|
|
15902
15911
|
if (doc.activeElement && doc.activeElement.tagName === 'BODY') {
|
|
15903
|
-
contain(
|
|
15912
|
+
contain();
|
|
15904
15913
|
}
|
|
15905
15914
|
}, 50);
|
|
15906
15915
|
return () => {
|
|
@@ -18555,7 +18564,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
18555
18564
|
}, [open, handleClose, hasTransition, closeAfterTransition, handleOpen]);
|
|
18556
18565
|
const createHandleKeyDown = otherHandlers => event => {
|
|
18557
18566
|
var _otherHandlers$onKeyD;
|
|
18558
|
-
(_otherHandlers$onKeyD = otherHandlers.onKeyDown) == null
|
|
18567
|
+
(_otherHandlers$onKeyD = otherHandlers.onKeyDown) == null || _otherHandlers$onKeyD.call(otherHandlers, event);
|
|
18559
18568
|
|
|
18560
18569
|
// The handler doesn't take event.defaultPrevented into account:
|
|
18561
18570
|
//
|
|
@@ -18576,7 +18585,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
18576
18585
|
};
|
|
18577
18586
|
const createHandleBackdropClick = otherHandlers => event => {
|
|
18578
18587
|
var _otherHandlers$onClic;
|
|
18579
|
-
(_otherHandlers$onClic = otherHandlers.onClick) == null
|
|
18588
|
+
(_otherHandlers$onClic = otherHandlers.onClick) == null || _otherHandlers$onClic.call(otherHandlers, event);
|
|
18580
18589
|
if (event.target !== event.currentTarget) {
|
|
18581
18590
|
return;
|
|
18582
18591
|
}
|
|
@@ -18624,8 +18633,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
18624
18633
|
}
|
|
18625
18634
|
};
|
|
18626
18635
|
return {
|
|
18627
|
-
onEnter: createChainedFunction(handleEnter, children.props.onEnter),
|
|
18628
|
-
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)
|
|
18629
18638
|
};
|
|
18630
18639
|
};
|
|
18631
18640
|
return {
|
|
@@ -18794,7 +18803,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
18794
18803
|
const doc = ownerDocument(sliderRef.current);
|
|
18795
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) {
|
|
18796
18805
|
var _sliderRef$current2;
|
|
18797
|
-
(_sliderRef$current2 = sliderRef.current) == null
|
|
18806
|
+
(_sliderRef$current2 = sliderRef.current) == null || _sliderRef$current2.querySelector(`[type="range"][data-index="${activeIndex}"]`).focus();
|
|
18798
18807
|
}
|
|
18799
18808
|
if (setActive) {
|
|
18800
18809
|
setActive(activeIndex);
|
|
@@ -18943,7 +18952,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
18943
18952
|
setFocusedThumbIndex(index);
|
|
18944
18953
|
}
|
|
18945
18954
|
setOpen(index);
|
|
18946
|
-
otherHandlers == null || (_otherHandlers$onFocu = otherHandlers.onFocus) == null
|
|
18955
|
+
otherHandlers == null || (_otherHandlers$onFocu = otherHandlers.onFocus) == null || _otherHandlers$onFocu.call(otherHandlers, event);
|
|
18947
18956
|
};
|
|
18948
18957
|
const createHandleHiddenInputBlur = otherHandlers => event => {
|
|
18949
18958
|
var _otherHandlers$onBlur;
|
|
@@ -18952,7 +18961,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
18952
18961
|
setFocusedThumbIndex(-1);
|
|
18953
18962
|
}
|
|
18954
18963
|
setOpen(-1);
|
|
18955
|
-
otherHandlers == null || (_otherHandlers$onBlur = otherHandlers.onBlur) == null
|
|
18964
|
+
otherHandlers == null || (_otherHandlers$onBlur = otherHandlers.onBlur) == null || _otherHandlers$onBlur.call(otherHandlers, event);
|
|
18956
18965
|
};
|
|
18957
18966
|
useEnhancedEffect$1(() => {
|
|
18958
18967
|
if (disabled && sliderRef.current.contains(document.activeElement)) {
|
|
@@ -18961,7 +18970,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
18961
18970
|
// on a disabled element:
|
|
18962
18971
|
// https://codesandbox.io/s/mui-pr-22247-forked-h151h?file=/src/App.js
|
|
18963
18972
|
// @ts-ignore
|
|
18964
|
-
(_document$activeEleme = document.activeElement) == null
|
|
18973
|
+
(_document$activeEleme = document.activeElement) == null || _document$activeEleme.blur();
|
|
18965
18974
|
}
|
|
18966
18975
|
}, [disabled]);
|
|
18967
18976
|
if (disabled && active !== -1) {
|
|
@@ -18972,7 +18981,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
18972
18981
|
}
|
|
18973
18982
|
const createHandleHiddenInputChange = otherHandlers => event => {
|
|
18974
18983
|
var _otherHandlers$onChan;
|
|
18975
|
-
(_otherHandlers$onChan = otherHandlers.onChange) == null
|
|
18984
|
+
(_otherHandlers$onChan = otherHandlers.onChange) == null || _otherHandlers$onChan.call(otherHandlers, event);
|
|
18976
18985
|
const index = Number(event.currentTarget.getAttribute('data-index'));
|
|
18977
18986
|
const value = values[index];
|
|
18978
18987
|
const marksIndex = marksValues.indexOf(value);
|
|
@@ -19210,7 +19219,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
19210
19219
|
}, [disabled, stopListening]);
|
|
19211
19220
|
const createHandleMouseDown = otherHandlers => event => {
|
|
19212
19221
|
var _otherHandlers$onMous;
|
|
19213
|
-
(_otherHandlers$onMous = otherHandlers.onMouseDown) == null
|
|
19222
|
+
(_otherHandlers$onMous = otherHandlers.onMouseDown) == null || _otherHandlers$onMous.call(otherHandlers, event);
|
|
19214
19223
|
if (disabled) {
|
|
19215
19224
|
return;
|
|
19216
19225
|
}
|
|
@@ -19261,13 +19270,13 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
19261
19270
|
};
|
|
19262
19271
|
const createHandleMouseOver = otherHandlers => event => {
|
|
19263
19272
|
var _otherHandlers$onMous2;
|
|
19264
|
-
(_otherHandlers$onMous2 = otherHandlers.onMouseOver) == null
|
|
19273
|
+
(_otherHandlers$onMous2 = otherHandlers.onMouseOver) == null || _otherHandlers$onMous2.call(otherHandlers, event);
|
|
19265
19274
|
const index = Number(event.currentTarget.getAttribute('data-index'));
|
|
19266
19275
|
setOpen(index);
|
|
19267
19276
|
};
|
|
19268
19277
|
const createHandleMouseLeave = otherHandlers => event => {
|
|
19269
19278
|
var _otherHandlers$onMous3;
|
|
19270
|
-
(_otherHandlers$onMous3 = otherHandlers.onMouseLeave) == null
|
|
19279
|
+
(_otherHandlers$onMous3 = otherHandlers.onMouseLeave) == null || _otherHandlers$onMous3.call(otherHandlers, event);
|
|
19271
19280
|
setOpen(-1);
|
|
19272
19281
|
};
|
|
19273
19282
|
const getThumbProps = (otherHandlers = {}) => {
|
|
@@ -19343,7 +19352,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
19343
19352
|
*
|
|
19344
19353
|
* - [useSnackbar API](https://mui.com/base-ui/react-snackbar/hooks-api/#use-snackbar)
|
|
19345
19354
|
*/
|
|
19346
|
-
function useSnackbar(parameters) {
|
|
19355
|
+
function useSnackbar(parameters = {}) {
|
|
19347
19356
|
const {
|
|
19348
19357
|
autoHideDuration = null,
|
|
19349
19358
|
disableWindowBlurListener = false,
|
|
@@ -19365,7 +19374,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
19365
19374
|
// IE11, Edge (prior to using Blink?) use 'Esc'
|
|
19366
19375
|
if (nativeEvent.key === 'Escape' || nativeEvent.key === 'Esc') {
|
|
19367
19376
|
// not calling `preventDefault` since we don't know if people may ignore this event e.g. a permanently open snackbar
|
|
19368
|
-
onClose == null
|
|
19377
|
+
onClose == null || onClose(nativeEvent, 'escapeKeyDown');
|
|
19369
19378
|
}
|
|
19370
19379
|
}
|
|
19371
19380
|
}
|
|
@@ -19375,7 +19384,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
19375
19384
|
};
|
|
19376
19385
|
}, [open, onClose]);
|
|
19377
19386
|
const handleClose = useEventCallback((event, reason) => {
|
|
19378
|
-
onClose == null
|
|
19387
|
+
onClose == null || onClose(event, reason);
|
|
19379
19388
|
});
|
|
19380
19389
|
const setAutoHideTimer = useEventCallback(autoHideDurationParam => {
|
|
19381
19390
|
if (!onClose || autoHideDurationParam == null) {
|
|
@@ -19395,7 +19404,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
19395
19404
|
};
|
|
19396
19405
|
}, [open, autoHideDuration, setAutoHideTimer]);
|
|
19397
19406
|
const handleClickAway = event => {
|
|
19398
|
-
onClose == null
|
|
19407
|
+
onClose == null || onClose(event, 'clickaway');
|
|
19399
19408
|
};
|
|
19400
19409
|
|
|
19401
19410
|
// Pause the timer when the user is interacting with the Snackbar
|
|
@@ -19413,22 +19422,22 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
19413
19422
|
}, [autoHideDuration, resumeHideDuration, setAutoHideTimer]);
|
|
19414
19423
|
const createHandleBlur = otherHandlers => event => {
|
|
19415
19424
|
const onBlurCallback = otherHandlers.onBlur;
|
|
19416
|
-
onBlurCallback == null
|
|
19425
|
+
onBlurCallback == null || onBlurCallback(event);
|
|
19417
19426
|
handleResume();
|
|
19418
19427
|
};
|
|
19419
19428
|
const createHandleFocus = otherHandlers => event => {
|
|
19420
19429
|
const onFocusCallback = otherHandlers.onFocus;
|
|
19421
|
-
onFocusCallback == null
|
|
19430
|
+
onFocusCallback == null || onFocusCallback(event);
|
|
19422
19431
|
handlePause();
|
|
19423
19432
|
};
|
|
19424
19433
|
const createMouseEnter = otherHandlers => event => {
|
|
19425
19434
|
const onMouseEnterCallback = otherHandlers.onMouseEnter;
|
|
19426
|
-
onMouseEnterCallback == null
|
|
19435
|
+
onMouseEnterCallback == null || onMouseEnterCallback(event);
|
|
19427
19436
|
handlePause();
|
|
19428
19437
|
};
|
|
19429
19438
|
const createMouseLeave = otherHandlers => event => {
|
|
19430
19439
|
const onMouseLeaveCallback = otherHandlers.onMouseLeave;
|
|
19431
|
-
onMouseLeaveCallback == null
|
|
19440
|
+
onMouseLeaveCallback == null || onMouseLeaveCallback(event);
|
|
19432
19441
|
handleResume();
|
|
19433
19442
|
};
|
|
19434
19443
|
React__namespace.useEffect(() => {
|
|
@@ -19443,14 +19452,13 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
19443
19452
|
}
|
|
19444
19453
|
return undefined;
|
|
19445
19454
|
}, [disableWindowBlurListener, handleResume, open]);
|
|
19446
|
-
const getRootProps = (
|
|
19447
|
-
const
|
|
19448
|
-
const externalEventHandlers = _extends({}, propsEventHandlers, otherHandlers);
|
|
19455
|
+
const getRootProps = (externalProps = {}) => {
|
|
19456
|
+
const externalEventHandlers = _extends({}, extractEventHandlers(parameters), extractEventHandlers(externalProps));
|
|
19449
19457
|
return _extends({
|
|
19450
19458
|
// ClickAwayListener adds an `onClick` prop which results in the alert not being announced.
|
|
19451
19459
|
// See https://github.com/mui/material-ui/issues/29080
|
|
19452
19460
|
role: 'presentation'
|
|
19453
|
-
}, externalEventHandlers, {
|
|
19461
|
+
}, externalProps, externalEventHandlers, {
|
|
19454
19462
|
onBlur: createHandleBlur(externalEventHandlers),
|
|
19455
19463
|
onFocus: createHandleFocus(externalEventHandlers),
|
|
19456
19464
|
onMouseEnter: createMouseEnter(externalEventHandlers),
|
|
@@ -25175,6 +25183,15 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
25175
25183
|
}
|
|
25176
25184
|
var ButtonGroupContext$1 = ButtonGroupContext;
|
|
25177
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
|
+
|
|
25178
25195
|
const _excluded$1D = ["children", "color", "component", "className", "disabled", "disableElevation", "disableFocusRipple", "endIcon", "focusVisibleClassName", "fullWidth", "size", "startIcon", "type", "variant"];
|
|
25179
25196
|
const useUtilityClasses$1p = ownerState => {
|
|
25180
25197
|
const {
|
|
@@ -25380,6 +25397,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
25380
25397
|
const Button = /*#__PURE__*/React__namespace.forwardRef(function Button(inProps, ref) {
|
|
25381
25398
|
// props priority: `inProps` > `contextProps` > `themeDefaultProps`
|
|
25382
25399
|
const contextProps = React__namespace.useContext(ButtonGroupContext$1);
|
|
25400
|
+
const buttonGroupButtonContextPositionClassName = React__namespace.useContext(ButtonGroupButtonContext$1);
|
|
25383
25401
|
const resolvedProps = resolveProps(contextProps, inProps);
|
|
25384
25402
|
const props = useThemeProps({
|
|
25385
25403
|
props: resolvedProps,
|
|
@@ -25424,9 +25442,10 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
25424
25442
|
ownerState: ownerState,
|
|
25425
25443
|
children: endIconProp
|
|
25426
25444
|
});
|
|
25445
|
+
const positionClassName = buttonGroupButtonContextPositionClassName || '';
|
|
25427
25446
|
return /*#__PURE__*/jsxRuntime_2(ButtonRoot, _extends({
|
|
25428
25447
|
ownerState: ownerState,
|
|
25429
|
-
className: clsx(contextProps.className, classes.root, className),
|
|
25448
|
+
className: clsx(contextProps.className, classes.root, className, positionClassName),
|
|
25430
25449
|
component: component,
|
|
25431
25450
|
disabled: disabled,
|
|
25432
25451
|
focusRipple: !disableFocusRipple,
|
|
@@ -25537,7 +25556,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
25537
25556
|
function getButtonGroupUtilityClass(slot) {
|
|
25538
25557
|
return generateUtilityClass('MuiButtonGroup', slot);
|
|
25539
25558
|
}
|
|
25540
|
-
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']);
|
|
25541
25560
|
var buttonGroupClasses$1 = buttonGroupClasses;
|
|
25542
25561
|
|
|
25543
25562
|
const _excluded$1C = ["children", "className", "color", "component", "disabled", "disableElevation", "disableFocusRipple", "disableRipple", "fullWidth", "orientation", "size", "variant"];
|
|
@@ -25555,6 +25574,12 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
25555
25574
|
[`& .${buttonGroupClasses$1.grouped}`]: styles[`grouped${capitalize(ownerState.variant)}${capitalize(ownerState.orientation)}`]
|
|
25556
25575
|
}, {
|
|
25557
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
|
|
25558
25583
|
}, styles.root, styles[ownerState.variant], ownerState.disableElevation === true && styles.disableElevation, ownerState.fullWidth && styles.fullWidth, ownerState.orientation === 'vertical' && styles.vertical];
|
|
25559
25584
|
};
|
|
25560
25585
|
const useUtilityClasses$1o = ownerState => {
|
|
@@ -25569,7 +25594,10 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
25569
25594
|
} = ownerState;
|
|
25570
25595
|
const slots = {
|
|
25571
25596
|
root: ['root', variant, orientation === 'vertical' && 'vertical', fullWidth && 'fullWidth', disableElevation && 'disableElevation'],
|
|
25572
|
-
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']
|
|
25573
25601
|
};
|
|
25574
25602
|
return composeClasses(slots, getButtonGroupUtilityClass, classes);
|
|
25575
25603
|
};
|
|
@@ -25594,63 +25622,63 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
25594
25622
|
}, {
|
|
25595
25623
|
[`& .${buttonGroupClasses$1.grouped}`]: _extends({
|
|
25596
25624
|
minWidth: 40,
|
|
25597
|
-
'&:not(:first-of-type)': _extends({}, ownerState.orientation === 'horizontal' && {
|
|
25598
|
-
borderTopLeftRadius: 0,
|
|
25599
|
-
borderBottomLeftRadius: 0
|
|
25600
|
-
}, ownerState.orientation === 'vertical' && {
|
|
25601
|
-
borderTopRightRadius: 0,
|
|
25602
|
-
borderTopLeftRadius: 0
|
|
25603
|
-
}, ownerState.variant === 'outlined' && ownerState.orientation === 'horizontal' && {
|
|
25604
|
-
marginLeft: -1
|
|
25605
|
-
}, ownerState.variant === 'outlined' && ownerState.orientation === 'vertical' && {
|
|
25606
|
-
marginTop: -1
|
|
25607
|
-
}),
|
|
25608
|
-
'&:not(:last-of-type)': _extends({}, ownerState.orientation === 'horizontal' && {
|
|
25609
|
-
borderTopRightRadius: 0,
|
|
25610
|
-
borderBottomRightRadius: 0
|
|
25611
|
-
}, ownerState.orientation === 'vertical' && {
|
|
25612
|
-
borderBottomRightRadius: 0,
|
|
25613
|
-
borderBottomLeftRadius: 0
|
|
25614
|
-
}, ownerState.variant === 'text' && ownerState.orientation === 'horizontal' && {
|
|
25615
|
-
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)'}`,
|
|
25616
|
-
[`&.${buttonGroupClasses$1.disabled}`]: {
|
|
25617
|
-
borderRight: `1px solid ${(theme.vars || theme).palette.action.disabled}`
|
|
25618
|
-
}
|
|
25619
|
-
}, ownerState.variant === 'text' && ownerState.orientation === 'vertical' && {
|
|
25620
|
-
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)'}`,
|
|
25621
|
-
[`&.${buttonGroupClasses$1.disabled}`]: {
|
|
25622
|
-
borderBottom: `1px solid ${(theme.vars || theme).palette.action.disabled}`
|
|
25623
|
-
}
|
|
25624
|
-
}, ownerState.variant === 'text' && ownerState.color !== 'inherit' && {
|
|
25625
|
-
borderColor: theme.vars ? `rgba(${theme.vars.palette[ownerState.color].mainChannel} / 0.5)` : alpha(theme.palette[ownerState.color].main, 0.5)
|
|
25626
|
-
}, ownerState.variant === 'outlined' && ownerState.orientation === 'horizontal' && {
|
|
25627
|
-
borderRightColor: 'transparent'
|
|
25628
|
-
}, ownerState.variant === 'outlined' && ownerState.orientation === 'vertical' && {
|
|
25629
|
-
borderBottomColor: 'transparent'
|
|
25630
|
-
}, ownerState.variant === 'contained' && ownerState.orientation === 'horizontal' && {
|
|
25631
|
-
borderRight: `1px solid ${(theme.vars || theme).palette.grey[400]}`,
|
|
25632
|
-
[`&.${buttonGroupClasses$1.disabled}`]: {
|
|
25633
|
-
borderRight: `1px solid ${(theme.vars || theme).palette.action.disabled}`
|
|
25634
|
-
}
|
|
25635
|
-
}, ownerState.variant === 'contained' && ownerState.orientation === 'vertical' && {
|
|
25636
|
-
borderBottom: `1px solid ${(theme.vars || theme).palette.grey[400]}`,
|
|
25637
|
-
[`&.${buttonGroupClasses$1.disabled}`]: {
|
|
25638
|
-
borderBottom: `1px solid ${(theme.vars || theme).palette.action.disabled}`
|
|
25639
|
-
}
|
|
25640
|
-
}, ownerState.variant === 'contained' && ownerState.color !== 'inherit' && {
|
|
25641
|
-
borderColor: (theme.vars || theme).palette[ownerState.color].dark
|
|
25642
|
-
}, {
|
|
25643
|
-
'&:hover': _extends({}, ownerState.variant === 'outlined' && ownerState.orientation === 'horizontal' && {
|
|
25644
|
-
borderRightColor: 'currentColor'
|
|
25645
|
-
}, ownerState.variant === 'outlined' && ownerState.orientation === 'vertical' && {
|
|
25646
|
-
borderBottomColor: 'currentColor'
|
|
25647
|
-
})
|
|
25648
|
-
}),
|
|
25649
25625
|
'&:hover': _extends({}, ownerState.variant === 'contained' && {
|
|
25650
25626
|
boxShadow: 'none'
|
|
25651
25627
|
})
|
|
25652
25628
|
}, ownerState.variant === 'contained' && {
|
|
25653
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
|
|
25654
25682
|
})
|
|
25655
25683
|
}));
|
|
25656
25684
|
const ButtonGroup = /*#__PURE__*/React__namespace.forwardRef(function ButtonGroup(inProps, ref) {
|
|
@@ -25697,6 +25725,20 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
25697
25725
|
size,
|
|
25698
25726
|
variant
|
|
25699
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
|
+
};
|
|
25700
25742
|
return /*#__PURE__*/jsxRuntime_1(ButtonGroupRoot, _extends({
|
|
25701
25743
|
as: component,
|
|
25702
25744
|
role: "group",
|
|
@@ -25706,7 +25748,15 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
25706
25748
|
}, other, {
|
|
25707
25749
|
children: /*#__PURE__*/jsxRuntime_1(ButtonGroupContext$1.Provider, {
|
|
25708
25750
|
value: context,
|
|
25709
|
-
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
|
+
})
|
|
25710
25760
|
})
|
|
25711
25761
|
}));
|
|
25712
25762
|
});
|
|
@@ -27382,7 +27432,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
27382
27432
|
const modalClasses = generateUtilityClasses('MuiModal', ['root', 'hidden', 'backdrop']);
|
|
27383
27433
|
var modalClasses$1 = modalClasses;
|
|
27384
27434
|
|
|
27385
|
-
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"];
|
|
27386
27436
|
const useUtilityClasses$1e = ownerState => {
|
|
27387
27437
|
const {
|
|
27388
27438
|
open,
|
|
@@ -40851,7 +40901,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
40851
40901
|
/**
|
|
40852
40902
|
* @ignore - internal component.
|
|
40853
40903
|
*/
|
|
40854
|
-
function SliderValueLabel(props) {
|
|
40904
|
+
function SliderValueLabel$1(props) {
|
|
40855
40905
|
const {
|
|
40856
40906
|
children,
|
|
40857
40907
|
className,
|
|
@@ -40877,7 +40927,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
40877
40927
|
})]
|
|
40878
40928
|
}));
|
|
40879
40929
|
}
|
|
40880
|
-
SliderValueLabel.propTypes = {
|
|
40930
|
+
SliderValueLabel$1.propTypes = {
|
|
40881
40931
|
children: PropTypes.element.isRequired,
|
|
40882
40932
|
className: PropTypes.string,
|
|
40883
40933
|
value: PropTypes.node
|
|
@@ -40949,16 +40999,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
40949
40999
|
}
|
|
40950
41000
|
}
|
|
40951
41001
|
}));
|
|
40952
|
-
SliderRoot.propTypes /* remove-proptypes */ = {
|
|
40953
|
-
// ----------------------------- Warning --------------------------------
|
|
40954
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
40955
|
-
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
40956
|
-
// ----------------------------------------------------------------------
|
|
40957
|
-
/**
|
|
40958
|
-
* @ignore
|
|
40959
|
-
*/
|
|
40960
|
-
children: PropTypes.node
|
|
40961
|
-
} ;
|
|
40962
41002
|
const SliderRail = styled$1('span', {
|
|
40963
41003
|
name: 'MuiSlider',
|
|
40964
41004
|
slot: 'Rail',
|
|
@@ -40984,16 +41024,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
40984
41024
|
}, ownerState.track === 'inverted' && {
|
|
40985
41025
|
opacity: 1
|
|
40986
41026
|
}));
|
|
40987
|
-
SliderRail.propTypes /* remove-proptypes */ = {
|
|
40988
|
-
// ----------------------------- Warning --------------------------------
|
|
40989
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
40990
|
-
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
40991
|
-
// ----------------------------------------------------------------------
|
|
40992
|
-
/**
|
|
40993
|
-
* @ignore
|
|
40994
|
-
*/
|
|
40995
|
-
children: PropTypes.node
|
|
40996
|
-
} ;
|
|
40997
41027
|
const SliderTrack = styled$1('span', {
|
|
40998
41028
|
name: 'MuiSlider',
|
|
40999
41029
|
slot: 'Track',
|
|
@@ -41031,16 +41061,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
41031
41061
|
borderColor: theme.vars ? theme.vars.palette.Slider[`${ownerState.color}Track`] : color
|
|
41032
41062
|
});
|
|
41033
41063
|
});
|
|
41034
|
-
SliderTrack.propTypes /* remove-proptypes */ = {
|
|
41035
|
-
// ----------------------------- Warning --------------------------------
|
|
41036
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
41037
|
-
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
41038
|
-
// ----------------------------------------------------------------------
|
|
41039
|
-
/**
|
|
41040
|
-
* @ignore
|
|
41041
|
-
*/
|
|
41042
|
-
children: PropTypes.node
|
|
41043
|
-
} ;
|
|
41044
41064
|
const SliderThumb = styled$1('span', {
|
|
41045
41065
|
name: 'MuiSlider',
|
|
41046
41066
|
slot: 'Thumb',
|
|
@@ -41113,17 +41133,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
41113
41133
|
}
|
|
41114
41134
|
}
|
|
41115
41135
|
}));
|
|
41116
|
-
|
|
41117
|
-
// ----------------------------- Warning --------------------------------
|
|
41118
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
41119
|
-
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
41120
|
-
// ----------------------------------------------------------------------
|
|
41121
|
-
/**
|
|
41122
|
-
* @ignore
|
|
41123
|
-
*/
|
|
41124
|
-
children: PropTypes.node
|
|
41125
|
-
} ;
|
|
41126
|
-
const StyledSliderValueLabel = styled$1(SliderValueLabel, {
|
|
41136
|
+
const SliderValueLabel = styled$1(SliderValueLabel$1, {
|
|
41127
41137
|
name: 'MuiSlider',
|
|
41128
41138
|
slot: 'ValueLabel',
|
|
41129
41139
|
overridesResolver: (props, styles) => styles.valueLabel
|
|
@@ -41181,16 +41191,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
41181
41191
|
fontSize: theme.typography.pxToRem(12),
|
|
41182
41192
|
padding: '0.25rem 0.5rem'
|
|
41183
41193
|
}));
|
|
41184
|
-
StyledSliderValueLabel.propTypes /* remove-proptypes */ = {
|
|
41185
|
-
// ----------------------------- Warning --------------------------------
|
|
41186
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
41187
|
-
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
41188
|
-
// ----------------------------------------------------------------------
|
|
41189
|
-
/**
|
|
41190
|
-
* @ignore
|
|
41191
|
-
*/
|
|
41192
|
-
children: PropTypes.node
|
|
41193
|
-
} ;
|
|
41194
41194
|
const SliderMark = styled$1('span', {
|
|
41195
41195
|
name: 'MuiSlider',
|
|
41196
41196
|
slot: 'Mark',
|
|
@@ -41221,16 +41221,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
41221
41221
|
backgroundColor: (theme.vars || theme).palette.background.paper,
|
|
41222
41222
|
opacity: 0.8
|
|
41223
41223
|
}));
|
|
41224
|
-
SliderMark.propTypes /* remove-proptypes */ = {
|
|
41225
|
-
// ----------------------------- Warning --------------------------------
|
|
41226
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
41227
|
-
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
41228
|
-
// ----------------------------------------------------------------------
|
|
41229
|
-
/**
|
|
41230
|
-
* @ignore
|
|
41231
|
-
*/
|
|
41232
|
-
children: PropTypes.node
|
|
41233
|
-
} ;
|
|
41234
41224
|
const SliderMarkLabel = styled$1('span', {
|
|
41235
41225
|
name: 'MuiSlider',
|
|
41236
41226
|
slot: 'MarkLabel',
|
|
@@ -41259,16 +41249,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
41259
41249
|
}, markLabelActive && {
|
|
41260
41250
|
color: (theme.vars || theme).palette.text.primary
|
|
41261
41251
|
}));
|
|
41262
|
-
SliderMarkLabel.propTypes /* remove-proptypes */ = {
|
|
41263
|
-
// ----------------------------- Warning --------------------------------
|
|
41264
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
41265
|
-
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
41266
|
-
// ----------------------------------------------------------------------
|
|
41267
|
-
/**
|
|
41268
|
-
* @ignore
|
|
41269
|
-
*/
|
|
41270
|
-
children: PropTypes.node
|
|
41271
|
-
} ;
|
|
41272
41252
|
const useUtilityClasses$u = ownerState => {
|
|
41273
41253
|
const {
|
|
41274
41254
|
disabled,
|
|
@@ -41382,7 +41362,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
41382
41362
|
const RailSlot = (_ref2 = (_slots$rail = slots == null ? void 0 : slots.rail) != null ? _slots$rail : components.Rail) != null ? _ref2 : SliderRail;
|
|
41383
41363
|
const TrackSlot = (_ref3 = (_slots$track = slots == null ? void 0 : slots.track) != null ? _slots$track : components.Track) != null ? _ref3 : SliderTrack;
|
|
41384
41364
|
const ThumbSlot = (_ref4 = (_slots$thumb = slots == null ? void 0 : slots.thumb) != null ? _slots$thumb : components.Thumb) != null ? _ref4 : SliderThumb;
|
|
41385
|
-
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;
|
|
41386
41366
|
const MarkSlot = (_ref6 = (_slots$mark = slots == null ? void 0 : slots.mark) != null ? _slots$mark : components.Mark) != null ? _ref6 : SliderMark;
|
|
41387
41367
|
const MarkLabelSlot = (_ref7 = (_slots$markLabel = slots == null ? void 0 : slots.markLabel) != null ? _slots$markLabel : components.MarkLabel) != null ? _ref7 : SliderMarkLabel;
|
|
41388
41368
|
const InputSlot = (_ref8 = (_slots$input = slots == null ? void 0 : slots.input) != null ? _slots$input : components.Input) != null ? _ref8 : 'input';
|
|
@@ -48326,10 +48306,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
48326
48306
|
width: 2,
|
|
48327
48307
|
right: 0
|
|
48328
48308
|
}));
|
|
48329
|
-
const TabsScrollbarSize = styled$1(ScrollbarSize
|
|
48330
|
-
name: 'MuiTabs',
|
|
48331
|
-
slot: 'ScrollbarSize'
|
|
48332
|
-
})({
|
|
48309
|
+
const TabsScrollbarSize = styled$1(ScrollbarSize)({
|
|
48333
48310
|
overflowX: 'auto',
|
|
48334
48311
|
overflowY: 'hidden',
|
|
48335
48312
|
// Hide dimensionless scrollbar on macOS
|
|
@@ -49909,7 +49886,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
49909
49886
|
exports.SliderRoot = SliderRoot;
|
|
49910
49887
|
exports.SliderThumb = SliderThumb;
|
|
49911
49888
|
exports.SliderTrack = SliderTrack;
|
|
49912
|
-
exports.SliderValueLabel =
|
|
49889
|
+
exports.SliderValueLabel = SliderValueLabel;
|
|
49913
49890
|
exports.Snackbar = Snackbar$1;
|
|
49914
49891
|
exports.SnackbarContent = SnackbarContent$1;
|
|
49915
49892
|
exports.SpeedDial = SpeedDial$1;
|