@mui/material 5.2.5 → 5.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Autocomplete/Autocomplete.d.ts +2 -0
- package/Autocomplete/Autocomplete.js +10 -6
- package/Avatar/Avatar.d.ts +3 -1
- package/Backdrop/Backdrop.js +3 -1
- package/Badge/Badge.d.ts +25 -0
- package/Badge/Badge.js +31 -15
- package/ButtonGroup/ButtonGroupContext.d.ts +1 -1
- package/CHANGELOG.md +245 -32
- package/FilledInput/FilledInput.js +4 -1
- package/FormControlLabel/FormControlLabel.js +3 -1
- package/Input/Input.js +4 -1
- package/InputBase/InputBase.js +4 -1
- package/InputLabel/InputLabel.js +4 -0
- package/ListItem/ListItem.js +3 -1
- package/Modal/Modal.js +3 -1
- package/README.md +19 -24
- package/Select/Select.d.ts +9 -1
- package/Select/Select.js +10 -1
- package/Select/SelectInput.d.ts +1 -0
- package/Select/SelectInput.js +25 -4
- package/Slider/Slider.d.ts +2 -0
- package/Slider/Slider.js +126 -53
- package/StepLabel/StepLabel.js +3 -1
- package/SvgIcon/SvgIcon.d.ts +8 -0
- package/SvgIcon/SvgIcon.js +19 -3
- package/TextField/TextField.d.ts +1 -0
- package/TextField/TextField.js +1 -0
- package/Tooltip/Tooltip.js +6 -1
- package/index.js +1 -1
- package/legacy/Autocomplete/Autocomplete.js +10 -6
- package/legacy/Backdrop/Backdrop.js +3 -1
- package/legacy/Badge/Badge.js +36 -16
- package/legacy/FilledInput/FilledInput.js +4 -1
- package/legacy/FormControlLabel/FormControlLabel.js +3 -1
- package/legacy/Input/Input.js +4 -1
- package/legacy/InputBase/InputBase.js +4 -1
- package/legacy/InputLabel/InputLabel.js +4 -0
- package/legacy/ListItem/ListItem.js +3 -1
- package/legacy/Modal/Modal.js +3 -1
- package/legacy/Select/Select.js +11 -1
- package/legacy/Select/SelectInput.js +29 -7
- package/legacy/Slider/Slider.js +127 -54
- package/legacy/StepLabel/StepLabel.js +3 -1
- package/legacy/SvgIcon/SvgIcon.js +20 -3
- package/legacy/TextField/TextField.js +1 -0
- package/legacy/Tooltip/Tooltip.js +6 -1
- package/legacy/index.js +1 -1
- package/legacy/locale/index.js +224 -130
- package/legacy/utils/shouldSpreadAdditionalProps.js +7 -0
- package/locale/index.d.ts +1 -0
- package/locale/index.js +140 -50
- package/modern/Autocomplete/Autocomplete.js +9 -5
- package/modern/Backdrop/Backdrop.js +3 -1
- package/modern/Badge/Badge.js +31 -15
- package/modern/FilledInput/FilledInput.js +4 -1
- package/modern/FormControlLabel/FormControlLabel.js +3 -1
- package/modern/Input/Input.js +4 -1
- package/modern/InputBase/InputBase.js +4 -1
- package/modern/InputLabel/InputLabel.js +4 -0
- package/modern/ListItem/ListItem.js +3 -1
- package/modern/Modal/Modal.js +3 -1
- package/modern/Select/Select.js +10 -1
- package/modern/Select/SelectInput.js +25 -4
- package/modern/Slider/Slider.js +126 -53
- package/modern/StepLabel/StepLabel.js +3 -1
- package/modern/SvgIcon/SvgIcon.js +19 -3
- package/modern/TextField/TextField.js +1 -0
- package/modern/Tooltip/Tooltip.js +6 -1
- package/modern/index.js +1 -1
- package/modern/locale/index.js +140 -50
- package/modern/utils/shouldSpreadAdditionalProps.js +7 -0
- package/node/Autocomplete/Autocomplete.js +10 -6
- package/node/Backdrop/Backdrop.js +3 -1
- package/node/Badge/Badge.js +33 -16
- package/node/FilledInput/FilledInput.js +4 -1
- package/node/FormControlLabel/FormControlLabel.js +3 -1
- package/node/Input/Input.js +4 -1
- package/node/InputBase/InputBase.js +4 -1
- package/node/InputLabel/InputLabel.js +4 -0
- package/node/ListItem/ListItem.js +3 -1
- package/node/Modal/Modal.js +3 -1
- package/node/Select/Select.js +10 -1
- package/node/Select/SelectInput.js +25 -4
- package/node/Slider/Slider.js +112 -45
- package/node/StepLabel/StepLabel.js +3 -1
- package/node/SvgIcon/SvgIcon.js +19 -3
- package/node/TextField/TextField.js +1 -0
- package/node/Tooltip/Tooltip.js +6 -1
- package/node/index.js +1 -1
- package/node/locale/index.js +142 -51
- package/node/utils/shouldSpreadAdditionalProps.js +15 -0
- package/package.json +7 -7
- package/styles/components.d.ts +452 -113
- package/styles/createTheme.d.ts +12 -6
- package/styles/overrides.d.ts +16 -4
- package/styles/useThemeProps.d.ts +2 -1
- package/umd/material-ui.development.js +703 -332
- package/umd/material-ui.production.min.js +21 -21
- package/utils/shouldSpreadAdditionalProps.js +7 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MUI v5.
|
|
1
|
+
/** @license MUI v5.3.0
|
|
2
2
|
*
|
|
3
3
|
* This source code is licensed under the MIT license found in the
|
|
4
4
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -477,14 +477,11 @@
|
|
|
477
477
|
}
|
|
478
478
|
|
|
479
479
|
return target;
|
|
480
|
-
};
|
|
481
|
-
|
|
482
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
480
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
483
481
|
return _extends.apply(this, arguments);
|
|
484
482
|
}
|
|
485
483
|
|
|
486
|
-
module.exports = _extends;
|
|
487
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
484
|
+
module.exports = _extends, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
488
485
|
});
|
|
489
486
|
|
|
490
487
|
unwrapExports(_extends_1);
|
|
@@ -755,8 +752,9 @@
|
|
|
755
752
|
|
|
756
753
|
var fixedElements = /* #__PURE__ */new WeakMap();
|
|
757
754
|
var compat = function compat(element) {
|
|
758
|
-
if (element.type !== 'rule' || !element.parent || // .length indicates
|
|
759
|
-
|
|
755
|
+
if (element.type !== 'rule' || !element.parent || // positive .length indicates that this rule contains pseudo
|
|
756
|
+
// negative .length indicates that this rule has been already prefixed
|
|
757
|
+
element.length < 1) {
|
|
760
758
|
return;
|
|
761
759
|
}
|
|
762
760
|
|
|
@@ -2008,7 +2006,7 @@
|
|
|
2008
2006
|
|
|
2009
2007
|
var pkg = {
|
|
2010
2008
|
name: "@emotion/react",
|
|
2011
|
-
version: "11.7.
|
|
2009
|
+
version: "11.7.1",
|
|
2012
2010
|
main: "dist/emotion-react.cjs.js",
|
|
2013
2011
|
module: "dist/emotion-react.esm.js",
|
|
2014
2012
|
browser: {
|
|
@@ -2035,7 +2033,7 @@
|
|
|
2035
2033
|
},
|
|
2036
2034
|
dependencies: {
|
|
2037
2035
|
"@babel/runtime": "^7.13.10",
|
|
2038
|
-
"@emotion/cache": "^11.
|
|
2036
|
+
"@emotion/cache": "^11.7.1",
|
|
2039
2037
|
"@emotion/serialize": "^1.0.2",
|
|
2040
2038
|
"@emotion/sheet": "^1.1.0",
|
|
2041
2039
|
"@emotion/utils": "^1.0.0",
|
|
@@ -2056,8 +2054,8 @@
|
|
|
2056
2054
|
},
|
|
2057
2055
|
devDependencies: {
|
|
2058
2056
|
"@babel/core": "^7.13.10",
|
|
2059
|
-
"@emotion/css": "11.
|
|
2060
|
-
"@emotion/css-prettifier": "1.0.
|
|
2057
|
+
"@emotion/css": "11.7.1",
|
|
2058
|
+
"@emotion/css-prettifier": "1.0.1",
|
|
2061
2059
|
"@emotion/server": "11.4.0",
|
|
2062
2060
|
"@emotion/styled": "11.6.0",
|
|
2063
2061
|
"@types/react": "^16.9.11",
|
|
@@ -6184,6 +6182,9 @@
|
|
|
6184
6182
|
const letterSpacing = style$2({
|
|
6185
6183
|
prop: 'letterSpacing'
|
|
6186
6184
|
});
|
|
6185
|
+
const textTransform = style$2({
|
|
6186
|
+
prop: 'textTransform'
|
|
6187
|
+
});
|
|
6187
6188
|
const lineHeight = style$2({
|
|
6188
6189
|
prop: 'lineHeight'
|
|
6189
6190
|
});
|
|
@@ -6195,7 +6196,7 @@
|
|
|
6195
6196
|
cssProperty: false,
|
|
6196
6197
|
themeKey: 'typography'
|
|
6197
6198
|
});
|
|
6198
|
-
const typography = compose(typographyVariant, fontFamily, fontSize, fontStyle, fontWeight, letterSpacing, lineHeight, textAlign);
|
|
6199
|
+
const typography = compose(typographyVariant, fontFamily, fontSize, fontStyle, fontWeight, letterSpacing, lineHeight, textAlign, textTransform);
|
|
6199
6200
|
var typography$1 = typography;
|
|
6200
6201
|
|
|
6201
6202
|
const filterPropsMapping = {
|
|
@@ -6872,7 +6873,11 @@
|
|
|
6872
6873
|
const styleOverrides = getStyleOverrides(componentName, theme);
|
|
6873
6874
|
|
|
6874
6875
|
if (styleOverrides) {
|
|
6875
|
-
|
|
6876
|
+
const resolvedStyleOverrides = {};
|
|
6877
|
+
Object.entries(styleOverrides).forEach(([slotKey, slotStyle]) => {
|
|
6878
|
+
resolvedStyleOverrides[slotKey] = typeof slotStyle === 'function' ? slotStyle(props) : slotStyle;
|
|
6879
|
+
});
|
|
6880
|
+
return overridesResolver(props, resolvedStyleOverrides);
|
|
6876
6881
|
}
|
|
6877
6882
|
|
|
6878
6883
|
return null;
|
|
@@ -6935,6 +6940,10 @@
|
|
|
6935
6940
|
return Component;
|
|
6936
6941
|
};
|
|
6937
6942
|
|
|
6943
|
+
if (defaultStyledResolver.withConfig) {
|
|
6944
|
+
muiStyledResolver.withConfig = defaultStyledResolver.withConfig;
|
|
6945
|
+
}
|
|
6946
|
+
|
|
6938
6947
|
return muiStyledResolver;
|
|
6939
6948
|
};
|
|
6940
6949
|
}
|
|
@@ -7942,7 +7951,11 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
7942
7951
|
};
|
|
7943
7952
|
|
|
7944
7953
|
const handleValue = (event, newValue, reason, details) => {
|
|
7945
|
-
if (value
|
|
7954
|
+
if (Array.isArray(value)) {
|
|
7955
|
+
if (value.length === newValue.length && value.every((val, i) => val === newValue[i])) {
|
|
7956
|
+
return;
|
|
7957
|
+
}
|
|
7958
|
+
} else if (value === newValue) {
|
|
7946
7959
|
return;
|
|
7947
7960
|
}
|
|
7948
7961
|
|
|
@@ -8390,7 +8403,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8390
8403
|
// only have an opinion about this when closed
|
|
8391
8404
|
'aria-activedescendant': popupOpen ? '' : null,
|
|
8392
8405
|
'aria-autocomplete': autoComplete ? 'both' : 'list',
|
|
8393
|
-
'aria-controls': listboxAvailable ? `${id}-listbox` :
|
|
8406
|
+
'aria-controls': listboxAvailable ? `${id}-listbox` : undefined,
|
|
8394
8407
|
// Disable browser's suggestion that might overlap with the popup.
|
|
8395
8408
|
// Handle autocomplete but not autofill.
|
|
8396
8409
|
autoComplete: 'off',
|
|
@@ -8619,7 +8632,9 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8619
8632
|
* The props used for each slot inside the Backdrop.
|
|
8620
8633
|
* @default {}
|
|
8621
8634
|
*/
|
|
8622
|
-
componentsProps: propTypes.
|
|
8635
|
+
componentsProps: propTypes.shape({
|
|
8636
|
+
root: propTypes.object
|
|
8637
|
+
}),
|
|
8623
8638
|
|
|
8624
8639
|
/**
|
|
8625
8640
|
* If `true`, the backdrop is invisible.
|
|
@@ -8630,25 +8645,70 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8630
8645
|
} ;
|
|
8631
8646
|
var BackdropUnstyled$1 = BackdropUnstyled;
|
|
8632
8647
|
|
|
8648
|
+
function useBadge(props) {
|
|
8649
|
+
const {
|
|
8650
|
+
anchorOrigin: anchorOriginProp = {
|
|
8651
|
+
vertical: 'top',
|
|
8652
|
+
horizontal: 'right'
|
|
8653
|
+
},
|
|
8654
|
+
badgeContent: badgeContentProp,
|
|
8655
|
+
invisible: invisibleProp,
|
|
8656
|
+
max: maxProp = 99,
|
|
8657
|
+
showZero = false,
|
|
8658
|
+
variant: variantProp = 'standard'
|
|
8659
|
+
} = props;
|
|
8660
|
+
const prevProps = usePreviousProps$1({
|
|
8661
|
+
anchorOrigin: anchorOriginProp,
|
|
8662
|
+
badgeContent: badgeContentProp,
|
|
8663
|
+
max: maxProp,
|
|
8664
|
+
variant: variantProp
|
|
8665
|
+
});
|
|
8666
|
+
let invisible = invisibleProp;
|
|
8667
|
+
|
|
8668
|
+
if (invisibleProp == null && (badgeContentProp === 0 && !showZero || badgeContentProp == null && variantProp !== 'dot')) {
|
|
8669
|
+
invisible = true;
|
|
8670
|
+
}
|
|
8671
|
+
|
|
8672
|
+
const {
|
|
8673
|
+
anchorOrigin = anchorOriginProp,
|
|
8674
|
+
badgeContent,
|
|
8675
|
+
max = maxProp,
|
|
8676
|
+
variant = variantProp
|
|
8677
|
+
} = invisible ? prevProps : props;
|
|
8678
|
+
let displayValue = '';
|
|
8679
|
+
|
|
8680
|
+
if (variant !== 'dot') {
|
|
8681
|
+
displayValue = badgeContent && Number(badgeContent) > max ? `${max}+` : badgeContent;
|
|
8682
|
+
}
|
|
8683
|
+
|
|
8684
|
+
return {
|
|
8685
|
+
anchorOrigin,
|
|
8686
|
+
badgeContent,
|
|
8687
|
+
invisible,
|
|
8688
|
+
max,
|
|
8689
|
+
variant,
|
|
8690
|
+
displayValue
|
|
8691
|
+
};
|
|
8692
|
+
}
|
|
8693
|
+
|
|
8633
8694
|
function getBadgeUtilityClass(slot) {
|
|
8634
8695
|
return generateUtilityClass('MuiBadge', slot);
|
|
8635
8696
|
}
|
|
8636
|
-
const badgeUnstyledClasses = generateUtilityClasses('MuiBadge', ['root', 'badge', 'dot', 'standard', '
|
|
8697
|
+
const badgeUnstyledClasses = generateUtilityClasses('MuiBadge', ['root', 'badge', 'dot', 'standard', 'anchorOriginTopLeft', 'anchorOriginTopRight', 'anchorOriginBottomLeft', 'anchorOriginBottomRight', 'invisible']);
|
|
8637
8698
|
var badgeUnstyledClasses$1 = badgeUnstyledClasses;
|
|
8638
8699
|
|
|
8639
|
-
const _excluded$2l = ["anchorOrigin", "classes", "badgeContent", "component", "children", "className", "components", "componentsProps", "invisible", "max", "
|
|
8700
|
+
const _excluded$2l = ["anchorOrigin", "classes", "badgeContent", "component", "children", "className", "components", "componentsProps", "invisible", "max", "showZero", "variant"];
|
|
8640
8701
|
|
|
8641
8702
|
const useUtilityClasses$1S = ownerState => {
|
|
8642
8703
|
const {
|
|
8643
8704
|
variant,
|
|
8644
8705
|
anchorOrigin,
|
|
8645
|
-
overlap,
|
|
8646
8706
|
invisible,
|
|
8647
8707
|
classes
|
|
8648
8708
|
} = ownerState;
|
|
8649
8709
|
const slots = {
|
|
8650
8710
|
root: ['root'],
|
|
8651
|
-
badge: ['badge', variant, `anchorOrigin${capitalize(anchorOrigin.vertical)}${capitalize(anchorOrigin.horizontal)}
|
|
8711
|
+
badge: ['badge', variant, `anchorOrigin${capitalize(anchorOrigin.vertical)}${capitalize(anchorOrigin.horizontal)}`, invisible && 'invisible']
|
|
8652
8712
|
};
|
|
8653
8713
|
return composeClasses(slots, getBadgeUtilityClass, classes);
|
|
8654
8714
|
};
|
|
@@ -8660,40 +8720,29 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8660
8720
|
horizontal: 'right'
|
|
8661
8721
|
},
|
|
8662
8722
|
classes: classesProp,
|
|
8663
|
-
badgeContent: badgeContentProp,
|
|
8664
8723
|
component,
|
|
8665
8724
|
children,
|
|
8666
8725
|
className,
|
|
8667
8726
|
components = {},
|
|
8668
8727
|
componentsProps = {},
|
|
8669
|
-
invisible: invisibleProp,
|
|
8670
8728
|
max: maxProp = 99,
|
|
8671
|
-
overlap: overlapProp = 'rectangular',
|
|
8672
8729
|
showZero = false,
|
|
8673
8730
|
variant: variantProp = 'standard'
|
|
8674
8731
|
} = props,
|
|
8675
8732
|
other = _objectWithoutPropertiesLoose(props, _excluded$2l);
|
|
8676
8733
|
|
|
8677
|
-
const
|
|
8734
|
+
const {
|
|
8735
|
+
anchorOrigin,
|
|
8736
|
+
badgeContent,
|
|
8737
|
+
max,
|
|
8738
|
+
variant,
|
|
8739
|
+
displayValue,
|
|
8740
|
+
invisible
|
|
8741
|
+
} = useBadge(_extends({}, props, {
|
|
8678
8742
|
anchorOrigin: anchorOriginProp,
|
|
8679
|
-
badgeContent: badgeContentProp,
|
|
8680
8743
|
max: maxProp,
|
|
8681
|
-
overlap: overlapProp,
|
|
8682
8744
|
variant: variantProp
|
|
8683
|
-
});
|
|
8684
|
-
let invisible = invisibleProp;
|
|
8685
|
-
|
|
8686
|
-
if (invisibleProp == null && (badgeContentProp === 0 && !showZero || badgeContentProp == null && variantProp !== 'dot')) {
|
|
8687
|
-
invisible = true;
|
|
8688
|
-
}
|
|
8689
|
-
|
|
8690
|
-
const {
|
|
8691
|
-
anchorOrigin = anchorOriginProp,
|
|
8692
|
-
badgeContent,
|
|
8693
|
-
max = maxProp,
|
|
8694
|
-
overlap = overlapProp,
|
|
8695
|
-
variant = variantProp
|
|
8696
|
-
} = invisible ? prevProps : props;
|
|
8745
|
+
}));
|
|
8697
8746
|
|
|
8698
8747
|
const ownerState = _extends({}, props, {
|
|
8699
8748
|
anchorOrigin,
|
|
@@ -8701,16 +8750,10 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8701
8750
|
classes: classesProp,
|
|
8702
8751
|
invisible,
|
|
8703
8752
|
max,
|
|
8704
|
-
|
|
8705
|
-
|
|
8753
|
+
variant,
|
|
8754
|
+
showZero
|
|
8706
8755
|
});
|
|
8707
8756
|
|
|
8708
|
-
let displayValue = '';
|
|
8709
|
-
|
|
8710
|
-
if (variant !== 'dot') {
|
|
8711
|
-
displayValue = badgeContent > max ? `${max}+` : badgeContent;
|
|
8712
|
-
}
|
|
8713
|
-
|
|
8714
8757
|
const classes = useUtilityClasses$1S(ownerState);
|
|
8715
8758
|
const Root = component || components.Root || 'span';
|
|
8716
8759
|
const rootProps = appendOwnerState(Root, _extends({}, other, componentsProps.root), ownerState);
|
|
@@ -8786,7 +8829,10 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8786
8829
|
* The props used for each slot inside the Badge.
|
|
8787
8830
|
* @default {}
|
|
8788
8831
|
*/
|
|
8789
|
-
componentsProps: propTypes.
|
|
8832
|
+
componentsProps: propTypes.shape({
|
|
8833
|
+
badge: propTypes.object,
|
|
8834
|
+
root: propTypes.object
|
|
8835
|
+
}),
|
|
8790
8836
|
|
|
8791
8837
|
/**
|
|
8792
8838
|
* If `true`, the badge is invisible.
|
|
@@ -8799,12 +8845,6 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8799
8845
|
*/
|
|
8800
8846
|
max: propTypes.number,
|
|
8801
8847
|
|
|
8802
|
-
/**
|
|
8803
|
-
* Wrapped shape the badge should overlap.
|
|
8804
|
-
* @default 'rectangular'
|
|
8805
|
-
*/
|
|
8806
|
-
overlap: propTypes.oneOf(['circular', 'rectangular']),
|
|
8807
|
-
|
|
8808
8848
|
/**
|
|
8809
8849
|
* Controls whether the badge is hidden when `badgeContent` is zero.
|
|
8810
8850
|
* @default false
|
|
@@ -9142,7 +9182,9 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
9142
9182
|
/**
|
|
9143
9183
|
* @ignore
|
|
9144
9184
|
*/
|
|
9145
|
-
componentsProps: propTypes.
|
|
9185
|
+
componentsProps: propTypes.shape({
|
|
9186
|
+
root: propTypes.object
|
|
9187
|
+
}),
|
|
9146
9188
|
|
|
9147
9189
|
/**
|
|
9148
9190
|
* If `true`, the component is disabled.
|
|
@@ -9532,7 +9574,9 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
9532
9574
|
/**
|
|
9533
9575
|
* @ignore
|
|
9534
9576
|
*/
|
|
9535
|
-
componentsProps: propTypes.
|
|
9577
|
+
componentsProps: propTypes.shape({
|
|
9578
|
+
root: propTypes.object
|
|
9579
|
+
}),
|
|
9536
9580
|
|
|
9537
9581
|
/**
|
|
9538
9582
|
* @ignore
|
|
@@ -9847,7 +9891,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
9847
9891
|
if (rows) {
|
|
9848
9892
|
{
|
|
9849
9893
|
if (minRows || maxRows) {
|
|
9850
|
-
console.warn('
|
|
9894
|
+
console.warn('MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set.');
|
|
9851
9895
|
}
|
|
9852
9896
|
}
|
|
9853
9897
|
|
|
@@ -9938,7 +9982,10 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
9938
9982
|
* The props used for each slot inside the Input.
|
|
9939
9983
|
* @default {}
|
|
9940
9984
|
*/
|
|
9941
|
-
componentsProps: propTypes.
|
|
9985
|
+
componentsProps: propTypes.shape({
|
|
9986
|
+
input: propTypes.object,
|
|
9987
|
+
root: propTypes.object
|
|
9988
|
+
}),
|
|
9942
9989
|
|
|
9943
9990
|
/**
|
|
9944
9991
|
* The default value. Use when the component is not controlled.
|
|
@@ -11042,7 +11089,9 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
11042
11089
|
* The props used for each slot inside the Modal.
|
|
11043
11090
|
* @default {}
|
|
11044
11091
|
*/
|
|
11045
|
-
componentsProps: propTypes.
|
|
11092
|
+
componentsProps: propTypes.shape({
|
|
11093
|
+
root: propTypes.object
|
|
11094
|
+
}),
|
|
11046
11095
|
|
|
11047
11096
|
/**
|
|
11048
11097
|
* An HTML element or function that returns one.
|
|
@@ -13463,7 +13512,6 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
13463
13512
|
value: propTypes.node
|
|
13464
13513
|
} ;
|
|
13465
13514
|
|
|
13466
|
-
const _excluded$2f = ["aria-label", "aria-labelledby", "aria-valuetext", "className", "component", "classes", "defaultValue", "disableSwap", "disabled", "getAriaLabel", "getAriaValueText", "marks", "max", "min", "name", "onChange", "onChangeCommitted", "onMouseDown", "orientation", "scale", "step", "tabIndex", "track", "value", "valueLabelDisplay", "valueLabelFormat", "isRtl", "components", "componentsProps"];
|
|
13467
13515
|
const INTENTIONAL_DRAG_COUNT_THRESHOLD = 2;
|
|
13468
13516
|
|
|
13469
13517
|
function asc(a, b) {
|
|
@@ -13479,9 +13527,11 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
13479
13527
|
}
|
|
13480
13528
|
|
|
13481
13529
|
function findClosest(values, currentValue) {
|
|
13530
|
+
var _values$reduce;
|
|
13531
|
+
|
|
13482
13532
|
const {
|
|
13483
13533
|
index: closestIndex
|
|
13484
|
-
} = values.reduce((acc, value, index) => {
|
|
13534
|
+
} = (_values$reduce = values.reduce((acc, value, index) => {
|
|
13485
13535
|
const distance = Math.abs(currentValue - value);
|
|
13486
13536
|
|
|
13487
13537
|
if (acc === null || distance < acc.distance || distance === acc.distance) {
|
|
@@ -13492,9 +13542,10 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
13492
13542
|
}
|
|
13493
13543
|
|
|
13494
13544
|
return acc;
|
|
13495
|
-
}, null);
|
|
13545
|
+
}, null)) != null ? _values$reduce : {};
|
|
13496
13546
|
return closestIndex;
|
|
13497
|
-
}
|
|
13547
|
+
} // TODO: Set the correct event type
|
|
13548
|
+
|
|
13498
13549
|
|
|
13499
13550
|
function trackFinger(event, touchId) {
|
|
13500
13551
|
if (touchId.current !== undefined && event.changedTouches) {
|
|
@@ -13559,10 +13610,15 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
13559
13610
|
activeIndex,
|
|
13560
13611
|
setActive
|
|
13561
13612
|
}) {
|
|
13613
|
+
var _sliderRef$current, _doc$activeElement;
|
|
13614
|
+
|
|
13562
13615
|
const doc = ownerDocument(sliderRef.current);
|
|
13563
13616
|
|
|
13564
|
-
if (!sliderRef.current.contains(doc.activeElement) || Number(doc.activeElement.getAttribute('data-index')) !== activeIndex) {
|
|
13565
|
-
|
|
13617
|
+
if (!((_sliderRef$current = sliderRef.current) != null && _sliderRef$current.contains(doc.activeElement)) || Number(doc == null ? void 0 : (_doc$activeElement = doc.activeElement) == null ? void 0 : _doc$activeElement.getAttribute('data-index')) !== activeIndex) {
|
|
13618
|
+
var _sliderRef$current2;
|
|
13619
|
+
|
|
13620
|
+
// @ts-ignore TODO: Property focus does not exists on type string
|
|
13621
|
+
(_sliderRef$current2 = sliderRef.current) == null ? void 0 : _sliderRef$current2.querySelector(`[type="range"][data-index="${activeIndex}"]`).focus();
|
|
13566
13622
|
}
|
|
13567
13623
|
|
|
13568
13624
|
if (setActive) {
|
|
@@ -13596,8 +13652,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
13596
13652
|
})
|
|
13597
13653
|
}
|
|
13598
13654
|
};
|
|
13599
|
-
|
|
13600
|
-
const Identity = x => x; // TODO: remove support for Safari < 13.
|
|
13655
|
+
const Identity$1 = x => x; // TODO: remove support for Safari < 13.
|
|
13601
13656
|
// https://caniuse.com/#search=touch-action
|
|
13602
13657
|
//
|
|
13603
13658
|
// Safari, on iOS, supports touch action since v13.
|
|
@@ -13608,7 +13663,6 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
13608
13663
|
// is supported on both Edge@12 and IE if CSS.supports is not available that means that
|
|
13609
13664
|
// touch-action will be supported
|
|
13610
13665
|
|
|
13611
|
-
|
|
13612
13666
|
let cachedSupportsTouchActionNone;
|
|
13613
13667
|
|
|
13614
13668
|
function doesSupportTouchActionNone() {
|
|
@@ -13623,70 +13677,26 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
13623
13677
|
return cachedSupportsTouchActionNone;
|
|
13624
13678
|
}
|
|
13625
13679
|
|
|
13626
|
-
|
|
13627
|
-
const {
|
|
13628
|
-
disabled,
|
|
13629
|
-
dragging,
|
|
13630
|
-
marked,
|
|
13631
|
-
orientation,
|
|
13632
|
-
track,
|
|
13633
|
-
classes
|
|
13634
|
-
} = ownerState;
|
|
13635
|
-
const slots = {
|
|
13636
|
-
root: ['root', disabled && 'disabled', dragging && 'dragging', marked && 'marked', orientation === 'vertical' && 'vertical', track === 'inverted' && 'trackInverted', track === false && 'trackFalse'],
|
|
13637
|
-
rail: ['rail'],
|
|
13638
|
-
track: ['track'],
|
|
13639
|
-
mark: ['mark'],
|
|
13640
|
-
markActive: ['markActive'],
|
|
13641
|
-
markLabel: ['markLabel'],
|
|
13642
|
-
markLabelActive: ['markLabelActive'],
|
|
13643
|
-
valueLabel: ['valueLabel'],
|
|
13644
|
-
thumb: ['thumb', disabled && 'disabled'],
|
|
13645
|
-
active: ['active'],
|
|
13646
|
-
disabled: ['disabled'],
|
|
13647
|
-
focusVisible: ['focusVisible']
|
|
13648
|
-
};
|
|
13649
|
-
return composeClasses(slots, getSliderUtilityClass, classes);
|
|
13650
|
-
};
|
|
13651
|
-
|
|
13652
|
-
const Forward = ({
|
|
13653
|
-
children
|
|
13654
|
-
}) => children;
|
|
13655
|
-
|
|
13656
|
-
const SliderUnstyled = /*#__PURE__*/React__namespace.forwardRef(function SliderUnstyled(props, ref) {
|
|
13680
|
+
function useSlider(props) {
|
|
13657
13681
|
const {
|
|
13658
|
-
|
|
13682
|
+
ref,
|
|
13659
13683
|
'aria-labelledby': ariaLabelledby,
|
|
13660
|
-
'aria-valuetext': ariaValuetext,
|
|
13661
|
-
className,
|
|
13662
|
-
component = 'span',
|
|
13663
|
-
classes: classesProp,
|
|
13664
13684
|
defaultValue,
|
|
13665
13685
|
disableSwap = false,
|
|
13666
13686
|
disabled = false,
|
|
13667
|
-
getAriaLabel,
|
|
13668
|
-
getAriaValueText,
|
|
13669
13687
|
marks: marksProp = false,
|
|
13670
13688
|
max = 100,
|
|
13671
13689
|
min = 0,
|
|
13672
13690
|
name,
|
|
13673
13691
|
onChange,
|
|
13674
13692
|
onChangeCommitted,
|
|
13675
|
-
onMouseDown,
|
|
13676
13693
|
orientation = 'horizontal',
|
|
13677
|
-
scale = Identity,
|
|
13694
|
+
scale = Identity$1,
|
|
13678
13695
|
step = 1,
|
|
13679
13696
|
tabIndex,
|
|
13680
|
-
track = 'normal',
|
|
13681
13697
|
value: valueProp,
|
|
13682
|
-
|
|
13683
|
-
|
|
13684
|
-
isRtl = false,
|
|
13685
|
-
components = {},
|
|
13686
|
-
componentsProps = {}
|
|
13687
|
-
} = props,
|
|
13688
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$2f);
|
|
13689
|
-
|
|
13698
|
+
isRtl = false
|
|
13699
|
+
} = props;
|
|
13690
13700
|
const touchId = React__namespace.useRef(); // We can't use the :active browser pseudo-classes.
|
|
13691
13701
|
// - The active state isn't triggered when clicking on the rail.
|
|
13692
13702
|
// - The active state isn't transferred when inversing a range slider.
|
|
@@ -13706,7 +13716,9 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
13706
13716
|
// This allows seamless integration with the most popular form libraries.
|
|
13707
13717
|
// https://github.com/mui-org/material-ui/issues/13485#issuecomment-676048492
|
|
13708
13718
|
// Clone the event to not override `target` of the original event.
|
|
13709
|
-
|
|
13719
|
+
// @ts-ignore nativeEvent does not exists on Event
|
|
13720
|
+
const nativeEvent = event.nativeEvent || event; // @ts-ignore TODO: check this again
|
|
13721
|
+
|
|
13710
13722
|
const clonedEvent = new nativeEvent.constructor(nativeEvent.type, nativeEvent);
|
|
13711
13723
|
Object.defineProperty(clonedEvent, 'target', {
|
|
13712
13724
|
writable: true,
|
|
@@ -13714,7 +13726,8 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
13714
13726
|
value,
|
|
13715
13727
|
name
|
|
13716
13728
|
}
|
|
13717
|
-
});
|
|
13729
|
+
}); // @ts-ignore TODO: value could be undefined?
|
|
13730
|
+
|
|
13718
13731
|
onChange(clonedEvent, value, thumbIndex);
|
|
13719
13732
|
});
|
|
13720
13733
|
|
|
@@ -13724,6 +13737,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
13724
13737
|
const marks = marksProp === true && step !== null ? [...Array(Math.floor((max - min) / step) + 1)].map((_, index) => ({
|
|
13725
13738
|
value: min + step * index
|
|
13726
13739
|
})) : marksProp || [];
|
|
13740
|
+
const marksValues = marks.map(mark => mark.value);
|
|
13727
13741
|
const {
|
|
13728
13742
|
isFocusVisibleRef,
|
|
13729
13743
|
onBlur: handleBlurVisible,
|
|
@@ -13735,7 +13749,9 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
13735
13749
|
const handleFocusRef = useForkRef(focusVisibleRef, sliderRef);
|
|
13736
13750
|
const handleRef = useForkRef(ref, handleFocusRef);
|
|
13737
13751
|
|
|
13738
|
-
const
|
|
13752
|
+
const createHandleHiddenInputFocus = otherHandlers => event => {
|
|
13753
|
+
var _otherHandlers$onFocu;
|
|
13754
|
+
|
|
13739
13755
|
const index = Number(event.currentTarget.getAttribute('data-index'));
|
|
13740
13756
|
handleFocusVisible(event);
|
|
13741
13757
|
|
|
@@ -13744,9 +13760,12 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
13744
13760
|
}
|
|
13745
13761
|
|
|
13746
13762
|
setOpen(index);
|
|
13763
|
+
otherHandlers == null ? void 0 : (_otherHandlers$onFocu = otherHandlers.onFocus) == null ? void 0 : _otherHandlers$onFocu.call(otherHandlers, event);
|
|
13747
13764
|
};
|
|
13748
13765
|
|
|
13749
|
-
const
|
|
13766
|
+
const createHandleHidenInputBlur = otherHandlers => event => {
|
|
13767
|
+
var _otherHandlers$onBlur;
|
|
13768
|
+
|
|
13750
13769
|
handleBlurVisible(event);
|
|
13751
13770
|
|
|
13752
13771
|
if (isFocusVisibleRef.current === false) {
|
|
@@ -13754,21 +13773,18 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
13754
13773
|
}
|
|
13755
13774
|
|
|
13756
13775
|
setOpen(-1);
|
|
13776
|
+
otherHandlers == null ? void 0 : (_otherHandlers$onBlur = otherHandlers.onBlur) == null ? void 0 : _otherHandlers$onBlur.call(otherHandlers, event);
|
|
13757
13777
|
};
|
|
13758
13778
|
|
|
13759
|
-
const handleMouseOver = useEventCallback(event => {
|
|
13760
|
-
const index = Number(event.currentTarget.getAttribute('data-index'));
|
|
13761
|
-
setOpen(index);
|
|
13762
|
-
});
|
|
13763
|
-
const handleMouseLeave = useEventCallback(() => {
|
|
13764
|
-
setOpen(-1);
|
|
13765
|
-
});
|
|
13766
13779
|
useEnhancedEffect$1(() => {
|
|
13767
13780
|
if (disabled && sliderRef.current.contains(document.activeElement)) {
|
|
13781
|
+
var _document$activeEleme;
|
|
13782
|
+
|
|
13768
13783
|
// This is necessary because Firefox and Safari will keep focus
|
|
13769
13784
|
// on a disabled element:
|
|
13770
13785
|
// https://codesandbox.io/s/mui-pr-22247-forked-h151h?file=/src/App.js
|
|
13771
|
-
|
|
13786
|
+
// @ts-ignore
|
|
13787
|
+
(_document$activeEleme = document.activeElement) == null ? void 0 : _document$activeEleme.blur();
|
|
13772
13788
|
}
|
|
13773
13789
|
}, [disabled]);
|
|
13774
13790
|
|
|
@@ -13780,11 +13796,14 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
13780
13796
|
setFocusVisible(-1);
|
|
13781
13797
|
}
|
|
13782
13798
|
|
|
13783
|
-
const
|
|
13799
|
+
const createHandleHiddenInputChange = otherHandlers => event => {
|
|
13800
|
+
var _otherHandlers$onChan;
|
|
13801
|
+
|
|
13802
|
+
(_otherHandlers$onChan = otherHandlers.onChange) == null ? void 0 : _otherHandlers$onChan.call(otherHandlers, event);
|
|
13784
13803
|
const index = Number(event.currentTarget.getAttribute('data-index'));
|
|
13785
13804
|
const value = values[index];
|
|
13786
|
-
const
|
|
13787
|
-
|
|
13805
|
+
const marksIndex = marksValues.indexOf(value); // @ts-ignore
|
|
13806
|
+
|
|
13788
13807
|
let newValue = event.target.valueAsNumber;
|
|
13789
13808
|
|
|
13790
13809
|
if (marks && step == null) {
|
|
@@ -13794,9 +13813,8 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
13794
13813
|
newValue = clamp$2(newValue, min, max);
|
|
13795
13814
|
|
|
13796
13815
|
if (marks && step == null) {
|
|
13797
|
-
const
|
|
13798
|
-
|
|
13799
|
-
newValue = newValue < values[index] ? markValues[currentMarkIndex - 1] : markValues[currentMarkIndex + 1];
|
|
13816
|
+
const currentMarkIndex = marksValues.indexOf(values[index]);
|
|
13817
|
+
newValue = newValue < values[index] ? marksValues[currentMarkIndex - 1] : marksValues[currentMarkIndex + 1];
|
|
13800
13818
|
}
|
|
13801
13819
|
|
|
13802
13820
|
if (range) {
|
|
@@ -13838,7 +13856,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
13838
13856
|
const previousIndex = React__namespace.useRef();
|
|
13839
13857
|
let axis = orientation;
|
|
13840
13858
|
|
|
13841
|
-
if (isRtl && orientation
|
|
13859
|
+
if (isRtl && orientation === 'horizontal') {
|
|
13842
13860
|
axis += '-reverse';
|
|
13843
13861
|
}
|
|
13844
13862
|
|
|
@@ -13874,7 +13892,6 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
13874
13892
|
if (step) {
|
|
13875
13893
|
newValue = roundValueToStep(newValue, step, min);
|
|
13876
13894
|
} else {
|
|
13877
|
-
const marksValues = marks.map(mark => mark.value);
|
|
13878
13895
|
const closestIndex = findClosest(marksValues, newValue);
|
|
13879
13896
|
newValue = marksValues[closestIndex];
|
|
13880
13897
|
}
|
|
@@ -13921,6 +13938,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
13921
13938
|
}
|
|
13922
13939
|
|
|
13923
13940
|
moveCount.current += 1; // Cancel move in case some other element consumed a mouseup event and it was not fired.
|
|
13941
|
+
// @ts-ignore buttons doesn't not exists on touch event
|
|
13924
13942
|
|
|
13925
13943
|
if (nativeEvent.type === 'mousemove' && nativeEvent.buttons === 0) {
|
|
13926
13944
|
// eslint-disable-next-line @typescript-eslint/no-use-before-define
|
|
@@ -13993,22 +14011,25 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
13993
14011
|
}
|
|
13994
14012
|
|
|
13995
14013
|
const finger = trackFinger(nativeEvent, touchId);
|
|
13996
|
-
const {
|
|
13997
|
-
newValue,
|
|
13998
|
-
activeIndex
|
|
13999
|
-
} = getFingerNewValue({
|
|
14000
|
-
finger,
|
|
14001
|
-
values
|
|
14002
|
-
});
|
|
14003
|
-
focusThumb({
|
|
14004
|
-
sliderRef,
|
|
14005
|
-
activeIndex,
|
|
14006
|
-
setActive
|
|
14007
|
-
});
|
|
14008
|
-
setValueState(newValue);
|
|
14009
14014
|
|
|
14010
|
-
if (
|
|
14011
|
-
|
|
14015
|
+
if (finger !== false) {
|
|
14016
|
+
const {
|
|
14017
|
+
newValue,
|
|
14018
|
+
activeIndex
|
|
14019
|
+
} = getFingerNewValue({
|
|
14020
|
+
finger,
|
|
14021
|
+
values
|
|
14022
|
+
});
|
|
14023
|
+
focusThumb({
|
|
14024
|
+
sliderRef,
|
|
14025
|
+
activeIndex,
|
|
14026
|
+
setActive
|
|
14027
|
+
});
|
|
14028
|
+
setValueState(newValue);
|
|
14029
|
+
|
|
14030
|
+
if (handleChange) {
|
|
14031
|
+
handleChange(nativeEvent, newValue, activeIndex);
|
|
14032
|
+
}
|
|
14012
14033
|
}
|
|
14013
14034
|
|
|
14014
14035
|
moveCount.current = 0;
|
|
@@ -14031,6 +14052,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
14031
14052
|
passive: doesSupportTouchActionNone()
|
|
14032
14053
|
});
|
|
14033
14054
|
return () => {
|
|
14055
|
+
// @ts-ignore
|
|
14034
14056
|
slider.removeEventListener('touchstart', handleTouchStart, {
|
|
14035
14057
|
passive: doesSupportTouchActionNone()
|
|
14036
14058
|
});
|
|
@@ -14042,9 +14064,14 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
14042
14064
|
stopListening();
|
|
14043
14065
|
}
|
|
14044
14066
|
}, [disabled, stopListening]);
|
|
14045
|
-
|
|
14046
|
-
|
|
14047
|
-
|
|
14067
|
+
|
|
14068
|
+
const createHandleMouseDown = otherHandlers => event => {
|
|
14069
|
+
var _otherHandlers$onMous;
|
|
14070
|
+
|
|
14071
|
+
(_otherHandlers$onMous = otherHandlers.onMouseDown) == null ? void 0 : _otherHandlers$onMous.call(otherHandlers, event);
|
|
14072
|
+
|
|
14073
|
+
if (event.defaultPrevented) {
|
|
14074
|
+
return;
|
|
14048
14075
|
} // Only handle left clicks
|
|
14049
14076
|
|
|
14050
14077
|
|
|
@@ -14055,56 +14082,193 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
14055
14082
|
|
|
14056
14083
|
event.preventDefault();
|
|
14057
14084
|
const finger = trackFinger(event, touchId);
|
|
14058
|
-
const {
|
|
14059
|
-
newValue,
|
|
14060
|
-
activeIndex
|
|
14061
|
-
} = getFingerNewValue({
|
|
14062
|
-
finger,
|
|
14063
|
-
values
|
|
14064
|
-
});
|
|
14065
|
-
focusThumb({
|
|
14066
|
-
sliderRef,
|
|
14067
|
-
activeIndex,
|
|
14068
|
-
setActive
|
|
14069
|
-
});
|
|
14070
|
-
setValueState(newValue);
|
|
14071
14085
|
|
|
14072
|
-
if (
|
|
14073
|
-
|
|
14086
|
+
if (finger !== false) {
|
|
14087
|
+
const {
|
|
14088
|
+
newValue,
|
|
14089
|
+
activeIndex
|
|
14090
|
+
} = getFingerNewValue({
|
|
14091
|
+
finger,
|
|
14092
|
+
values
|
|
14093
|
+
});
|
|
14094
|
+
focusThumb({
|
|
14095
|
+
sliderRef,
|
|
14096
|
+
activeIndex,
|
|
14097
|
+
setActive
|
|
14098
|
+
});
|
|
14099
|
+
setValueState(newValue);
|
|
14100
|
+
|
|
14101
|
+
if (handleChange) {
|
|
14102
|
+
handleChange(event, newValue, activeIndex);
|
|
14103
|
+
}
|
|
14074
14104
|
}
|
|
14075
14105
|
|
|
14076
14106
|
moveCount.current = 0;
|
|
14077
14107
|
const doc = ownerDocument(sliderRef.current);
|
|
14078
14108
|
doc.addEventListener('mousemove', handleTouchMove);
|
|
14079
14109
|
doc.addEventListener('mouseup', handleTouchEnd);
|
|
14080
|
-
}
|
|
14110
|
+
};
|
|
14111
|
+
|
|
14081
14112
|
const trackOffset = valueToPercent(range ? values[0] : min, min, max);
|
|
14082
14113
|
const trackLeap = valueToPercent(values[values.length - 1], min, max) - trackOffset;
|
|
14083
14114
|
|
|
14084
|
-
const
|
|
14115
|
+
const getRootProps = otherHandlers => {
|
|
14116
|
+
const ownEventHandlers = {
|
|
14117
|
+
onMouseDown: createHandleMouseDown(otherHandlers || {})
|
|
14118
|
+
};
|
|
14085
14119
|
|
|
14086
|
-
|
|
14087
|
-
|
|
14088
|
-
|
|
14089
|
-
|
|
14090
|
-
|
|
14091
|
-
|
|
14092
|
-
|
|
14093
|
-
const
|
|
14094
|
-
|
|
14095
|
-
|
|
14096
|
-
|
|
14097
|
-
|
|
14098
|
-
|
|
14099
|
-
|
|
14120
|
+
const mergedEventHandlers = _extends({}, otherHandlers, ownEventHandlers);
|
|
14121
|
+
|
|
14122
|
+
return _extends({
|
|
14123
|
+
ref: handleRef
|
|
14124
|
+
}, mergedEventHandlers);
|
|
14125
|
+
};
|
|
14126
|
+
|
|
14127
|
+
const createHandleMouseOver = otherHandlers => event => {
|
|
14128
|
+
var _otherHandlers$onMous2;
|
|
14129
|
+
|
|
14130
|
+
(_otherHandlers$onMous2 = otherHandlers.onMouseOver) == null ? void 0 : _otherHandlers$onMous2.call(otherHandlers, event);
|
|
14131
|
+
const index = Number(event.currentTarget.getAttribute('data-index'));
|
|
14132
|
+
setOpen(index);
|
|
14133
|
+
};
|
|
14134
|
+
|
|
14135
|
+
const createHandleMouseLeave = otherHandlers => event => {
|
|
14136
|
+
var _otherHandlers$onMous3;
|
|
14137
|
+
|
|
14138
|
+
(_otherHandlers$onMous3 = otherHandlers.onMouseLeave) == null ? void 0 : _otherHandlers$onMous3.call(otherHandlers, event);
|
|
14139
|
+
setOpen(-1);
|
|
14140
|
+
};
|
|
14141
|
+
|
|
14142
|
+
const getThumbProps = otherHandlers => {
|
|
14143
|
+
const ownEventHandlers = {
|
|
14144
|
+
onMouseOver: createHandleMouseOver(otherHandlers || {}),
|
|
14145
|
+
onMouseLeave: createHandleMouseLeave(otherHandlers || {})
|
|
14146
|
+
};
|
|
14147
|
+
|
|
14148
|
+
const mergedEventHandlers = _extends({}, otherHandlers, ownEventHandlers);
|
|
14149
|
+
|
|
14150
|
+
return _extends({}, mergedEventHandlers);
|
|
14151
|
+
};
|
|
14152
|
+
|
|
14153
|
+
const getHiddenInputProps = otherHandlers => {
|
|
14154
|
+
const ownEventHandlers = {
|
|
14155
|
+
onChange: createHandleHiddenInputChange(otherHandlers || {}),
|
|
14156
|
+
onFocus: createHandleHiddenInputFocus(otherHandlers || {}),
|
|
14157
|
+
onBlur: createHandleHidenInputBlur(otherHandlers || {})
|
|
14158
|
+
};
|
|
14159
|
+
|
|
14160
|
+
const mergedEventHandlers = _extends({}, otherHandlers, ownEventHandlers);
|
|
14161
|
+
|
|
14162
|
+
return _extends({
|
|
14163
|
+
tabIndex,
|
|
14164
|
+
'aria-labelledby': ariaLabelledby,
|
|
14165
|
+
'aria-orientation': orientation,
|
|
14166
|
+
'aria-valuemax': scale(max),
|
|
14167
|
+
'aria-valuemin': scale(min),
|
|
14168
|
+
name,
|
|
14169
|
+
type: 'range',
|
|
14170
|
+
min: props.min,
|
|
14171
|
+
max: props.max,
|
|
14172
|
+
step: props.step,
|
|
14173
|
+
disabled
|
|
14174
|
+
}, mergedEventHandlers, {
|
|
14175
|
+
style: _extends({}, visuallyHidden$1, {
|
|
14176
|
+
direction: isRtl ? 'rtl' : 'ltr',
|
|
14177
|
+
// So that VoiceOver's focus indicator matches the thumb's dimensions
|
|
14178
|
+
width: '100%',
|
|
14179
|
+
height: '100%'
|
|
14180
|
+
})
|
|
14181
|
+
});
|
|
14182
|
+
};
|
|
14183
|
+
|
|
14184
|
+
return {
|
|
14185
|
+
axis,
|
|
14186
|
+
axisProps,
|
|
14187
|
+
getRootProps,
|
|
14188
|
+
getHiddenInputProps,
|
|
14189
|
+
getThumbProps,
|
|
14190
|
+
dragging,
|
|
14191
|
+
marks,
|
|
14192
|
+
values,
|
|
14193
|
+
active,
|
|
14194
|
+
focusVisible,
|
|
14195
|
+
open,
|
|
14196
|
+
range,
|
|
14197
|
+
trackOffset,
|
|
14198
|
+
trackLeap
|
|
14199
|
+
};
|
|
14200
|
+
}
|
|
14201
|
+
|
|
14202
|
+
const _excluded$2f = ["aria-label", "aria-valuetext", "className", "component", "classes", "disableSwap", "disabled", "getAriaLabel", "getAriaValueText", "marks", "max", "min", "name", "onChange", "onChangeCommitted", "onMouseDown", "orientation", "scale", "step", "tabIndex", "track", "value", "valueLabelDisplay", "valueLabelFormat", "isRtl", "components", "componentsProps"];
|
|
14203
|
+
|
|
14204
|
+
const Identity = x => x;
|
|
14205
|
+
|
|
14206
|
+
const useUtilityClasses$1P = ownerState => {
|
|
14207
|
+
const {
|
|
14208
|
+
disabled,
|
|
14209
|
+
dragging,
|
|
14210
|
+
marked,
|
|
14211
|
+
orientation,
|
|
14212
|
+
track,
|
|
14213
|
+
classes
|
|
14214
|
+
} = ownerState;
|
|
14215
|
+
const slots = {
|
|
14216
|
+
root: ['root', disabled && 'disabled', dragging && 'dragging', marked && 'marked', orientation === 'vertical' && 'vertical', track === 'inverted' && 'trackInverted', track === false && 'trackFalse'],
|
|
14217
|
+
rail: ['rail'],
|
|
14218
|
+
track: ['track'],
|
|
14219
|
+
mark: ['mark'],
|
|
14220
|
+
markActive: ['markActive'],
|
|
14221
|
+
markLabel: ['markLabel'],
|
|
14222
|
+
markLabelActive: ['markLabelActive'],
|
|
14223
|
+
valueLabel: ['valueLabel'],
|
|
14224
|
+
thumb: ['thumb', disabled && 'disabled'],
|
|
14225
|
+
active: ['active'],
|
|
14226
|
+
disabled: ['disabled'],
|
|
14227
|
+
focusVisible: ['focusVisible']
|
|
14228
|
+
};
|
|
14229
|
+
return composeClasses(slots, getSliderUtilityClass, classes);
|
|
14230
|
+
};
|
|
14231
|
+
|
|
14232
|
+
const Forward = ({
|
|
14233
|
+
children
|
|
14234
|
+
}) => children;
|
|
14235
|
+
|
|
14236
|
+
const SliderUnstyled = /*#__PURE__*/React__namespace.forwardRef(function SliderUnstyled(props, ref) {
|
|
14237
|
+
var _ref, _components$Rail, _components$Track, _components$Thumb, _components$ValueLabe, _components$Mark, _components$MarkLabel;
|
|
14238
|
+
|
|
14239
|
+
const {
|
|
14240
|
+
'aria-label': ariaLabel,
|
|
14241
|
+
'aria-valuetext': ariaValuetext,
|
|
14242
|
+
className,
|
|
14243
|
+
component,
|
|
14244
|
+
classes: classesProp,
|
|
14245
|
+
disableSwap = false,
|
|
14246
|
+
disabled = false,
|
|
14247
|
+
getAriaLabel,
|
|
14248
|
+
getAriaValueText,
|
|
14249
|
+
marks: marksProp = false,
|
|
14250
|
+
max = 100,
|
|
14251
|
+
min = 0,
|
|
14252
|
+
onMouseDown,
|
|
14253
|
+
orientation = 'horizontal',
|
|
14254
|
+
scale = Identity,
|
|
14255
|
+
step = 1,
|
|
14256
|
+
track = 'normal',
|
|
14257
|
+
valueLabelDisplay = 'off',
|
|
14258
|
+
valueLabelFormat = Identity,
|
|
14259
|
+
isRtl = false,
|
|
14260
|
+
components = {},
|
|
14261
|
+
componentsProps = {}
|
|
14262
|
+
} = props,
|
|
14263
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$2f); // all props with defaults
|
|
14100
14264
|
// consider extracting to hook an reusing the lint rule for the varints
|
|
14101
14265
|
|
|
14266
|
+
|
|
14102
14267
|
const ownerState = _extends({}, props, {
|
|
14268
|
+
mark: marksProp,
|
|
14103
14269
|
classes: classesProp,
|
|
14104
14270
|
disabled,
|
|
14105
|
-
dragging,
|
|
14106
14271
|
isRtl,
|
|
14107
|
-
marked: marks.length > 0 && marks.some(mark => mark.label),
|
|
14108
14272
|
max,
|
|
14109
14273
|
min,
|
|
14110
14274
|
orientation,
|
|
@@ -14115,22 +14279,54 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
14115
14279
|
valueLabelFormat
|
|
14116
14280
|
});
|
|
14117
14281
|
|
|
14282
|
+
const {
|
|
14283
|
+
axisProps,
|
|
14284
|
+
getRootProps,
|
|
14285
|
+
getHiddenInputProps,
|
|
14286
|
+
getThumbProps,
|
|
14287
|
+
open,
|
|
14288
|
+
active,
|
|
14289
|
+
axis,
|
|
14290
|
+
range,
|
|
14291
|
+
focusVisible,
|
|
14292
|
+
dragging,
|
|
14293
|
+
marks,
|
|
14294
|
+
values,
|
|
14295
|
+
trackOffset,
|
|
14296
|
+
trackLeap
|
|
14297
|
+
} = useSlider(_extends({}, ownerState, {
|
|
14298
|
+
ref
|
|
14299
|
+
}));
|
|
14300
|
+
ownerState.marked = marks.length > 0 && marks.some(mark => mark.label);
|
|
14301
|
+
ownerState.dragging = dragging;
|
|
14302
|
+
const Root = (_ref = component != null ? component : components.Root) != null ? _ref : 'span';
|
|
14303
|
+
const rootProps = appendOwnerState(Root, _extends({}, other, componentsProps.root), ownerState);
|
|
14304
|
+
const Rail = (_components$Rail = components.Rail) != null ? _components$Rail : 'span';
|
|
14305
|
+
const railProps = appendOwnerState(Rail, componentsProps.rail, ownerState);
|
|
14306
|
+
const Track = (_components$Track = components.Track) != null ? _components$Track : 'span';
|
|
14307
|
+
const trackProps = appendOwnerState(Track, componentsProps.track, ownerState);
|
|
14308
|
+
|
|
14309
|
+
const trackStyle = _extends({}, axisProps[axis].offset(trackOffset), axisProps[axis].leap(trackLeap));
|
|
14310
|
+
|
|
14311
|
+
const Thumb = (_components$Thumb = components.Thumb) != null ? _components$Thumb : 'span';
|
|
14312
|
+
const thumbProps = appendOwnerState(Thumb, componentsProps.thumb, ownerState);
|
|
14313
|
+
const ValueLabel = (_components$ValueLabe = components.ValueLabel) != null ? _components$ValueLabe : SliderValueLabelUnstyled;
|
|
14314
|
+
const valueLabelProps = appendOwnerState(ValueLabel, componentsProps.valueLabel, ownerState);
|
|
14315
|
+
const Mark = (_components$Mark = components.Mark) != null ? _components$Mark : 'span';
|
|
14316
|
+
const markProps = appendOwnerState(Mark, componentsProps.mark, ownerState);
|
|
14317
|
+
const MarkLabel = (_components$MarkLabel = components.MarkLabel) != null ? _components$MarkLabel : 'span';
|
|
14318
|
+
const markLabelProps = appendOwnerState(MarkLabel, componentsProps.markLabel, ownerState);
|
|
14319
|
+
const Input = components.Input || 'input';
|
|
14320
|
+
const inputProps = appendOwnerState(Input, componentsProps.input, ownerState);
|
|
14321
|
+
const hiddenInputProps = getHiddenInputProps();
|
|
14118
14322
|
const classes = useUtilityClasses$1P(ownerState);
|
|
14119
|
-
return /*#__PURE__*/jsxRuntime_2(Root, _extends({
|
|
14120
|
-
|
|
14121
|
-
|
|
14122
|
-
}, rootProps, !isHostComponent(Root) && {
|
|
14123
|
-
as: component,
|
|
14124
|
-
ownerState: _extends({}, ownerState, rootProps.ownerState)
|
|
14125
|
-
}, other, {
|
|
14323
|
+
return /*#__PURE__*/jsxRuntime_2(Root, _extends({}, rootProps, getRootProps({
|
|
14324
|
+
onMouseDown
|
|
14325
|
+
}), {
|
|
14126
14326
|
className: clsx(classes.root, rootProps.className, className),
|
|
14127
|
-
children: [/*#__PURE__*/jsxRuntime_1(Rail, _extends({}, railProps,
|
|
14128
|
-
ownerState: _extends({}, ownerState, railProps.ownerState)
|
|
14129
|
-
}, {
|
|
14327
|
+
children: [/*#__PURE__*/jsxRuntime_1(Rail, _extends({}, railProps, {
|
|
14130
14328
|
className: clsx(classes.rail, railProps.className)
|
|
14131
|
-
})), /*#__PURE__*/jsxRuntime_1(Track, _extends({}, trackProps,
|
|
14132
|
-
ownerState: _extends({}, ownerState, trackProps.ownerState)
|
|
14133
|
-
}, {
|
|
14329
|
+
})), /*#__PURE__*/jsxRuntime_1(Track, _extends({}, trackProps, {
|
|
14134
14330
|
className: clsx(classes.track, trackProps.className),
|
|
14135
14331
|
style: _extends({}, trackStyle, trackProps.style)
|
|
14136
14332
|
})), marks.map((mark, index) => {
|
|
@@ -14148,7 +14344,6 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
14148
14344
|
children: [/*#__PURE__*/jsxRuntime_1(Mark, _extends({
|
|
14149
14345
|
"data-index": index
|
|
14150
14346
|
}, markProps, !isHostComponent(Mark) && {
|
|
14151
|
-
ownerState: _extends({}, ownerState, markProps.ownerState),
|
|
14152
14347
|
markActive
|
|
14153
14348
|
}, {
|
|
14154
14349
|
style: _extends({}, style, markProps.style),
|
|
@@ -14157,9 +14352,8 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
14157
14352
|
"aria-hidden": true,
|
|
14158
14353
|
"data-index": index
|
|
14159
14354
|
}, markLabelProps, !isHostComponent(MarkLabel) && {
|
|
14160
|
-
|
|
14355
|
+
markLabelActive: markActive
|
|
14161
14356
|
}, {
|
|
14162
|
-
markLabelActive: markActive,
|
|
14163
14357
|
style: _extends({}, style, markLabelProps.style),
|
|
14164
14358
|
className: clsx(classes.markLabel, markLabelProps.className, markActive && classes.markLabelActive),
|
|
14165
14359
|
children: mark.label
|
|
@@ -14170,23 +14364,18 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
14170
14364
|
const style = axisProps[axis].offset(percent);
|
|
14171
14365
|
const ValueLabelComponent = valueLabelDisplay === 'off' ? Forward : ValueLabel;
|
|
14172
14366
|
return /*#__PURE__*/jsxRuntime_1(React__namespace.Fragment, {
|
|
14173
|
-
children: /*#__PURE__*/jsxRuntime_1(ValueLabelComponent, _extends({
|
|
14174
|
-
valueLabelFormat
|
|
14175
|
-
valueLabelDisplay
|
|
14367
|
+
children: /*#__PURE__*/jsxRuntime_1(ValueLabelComponent, _extends({}, !isHostComponent(ValueLabelComponent) && {
|
|
14368
|
+
valueLabelFormat,
|
|
14369
|
+
valueLabelDisplay,
|
|
14176
14370
|
value: typeof valueLabelFormat === 'function' ? valueLabelFormat(scale(value), index) : valueLabelFormat,
|
|
14177
|
-
index
|
|
14371
|
+
index,
|
|
14178
14372
|
open: open === index || active === index || valueLabelDisplay === 'on',
|
|
14179
|
-
disabled
|
|
14373
|
+
disabled
|
|
14180
14374
|
}, valueLabelProps, {
|
|
14181
|
-
className: clsx(classes.valueLabel, valueLabelProps.className)
|
|
14182
|
-
}, !isHostComponent(ValueLabel) && {
|
|
14183
|
-
ownerState: _extends({}, ownerState, valueLabelProps.ownerState)
|
|
14184
|
-
}, {
|
|
14375
|
+
className: clsx(classes.valueLabel, valueLabelProps.className),
|
|
14185
14376
|
children: /*#__PURE__*/jsxRuntime_1(Thumb, _extends({
|
|
14186
|
-
"data-index": index
|
|
14187
|
-
|
|
14188
|
-
onMouseLeave: handleMouseLeave
|
|
14189
|
-
}, thumbProps, {
|
|
14377
|
+
"data-index": index
|
|
14378
|
+
}, thumbProps, getThumbProps(), {
|
|
14190
14379
|
className: clsx(classes.thumb, thumbProps.className, active === index && classes.active, focusVisible === index && classes.focusVisible)
|
|
14191
14380
|
}, !isHostComponent(Thumb) && {
|
|
14192
14381
|
ownerState: _extends({}, ownerState, thumbProps.ownerState)
|
|
@@ -14194,33 +14383,17 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
14194
14383
|
style: _extends({}, style, {
|
|
14195
14384
|
pointerEvents: disableSwap && active !== index ? 'none' : undefined
|
|
14196
14385
|
}, thumbProps.style),
|
|
14197
|
-
children: /*#__PURE__*/jsxRuntime_1(
|
|
14198
|
-
tabIndex: tabIndex,
|
|
14386
|
+
children: /*#__PURE__*/jsxRuntime_1(Input, _extends({}, hiddenInputProps, {
|
|
14199
14387
|
"data-index": index,
|
|
14200
14388
|
"aria-label": getAriaLabel ? getAriaLabel(index) : ariaLabel,
|
|
14201
|
-
"aria-labelledby": ariaLabelledby,
|
|
14202
|
-
"aria-orientation": orientation,
|
|
14203
|
-
"aria-valuemax": scale(max),
|
|
14204
|
-
"aria-valuemin": scale(min),
|
|
14205
14389
|
"aria-valuenow": scale(value),
|
|
14206
14390
|
"aria-valuetext": getAriaValueText ? getAriaValueText(scale(value), index) : ariaValuetext,
|
|
14207
|
-
|
|
14208
|
-
|
|
14209
|
-
|
|
14210
|
-
|
|
14211
|
-
|
|
14212
|
-
|
|
14213
|
-
step: props.step,
|
|
14214
|
-
disabled: disabled,
|
|
14215
|
-
value: values[index],
|
|
14216
|
-
onChange: handleHiddenInputChange,
|
|
14217
|
-
style: _extends({}, visuallyHidden$1, {
|
|
14218
|
-
direction: isRtl ? 'rtl' : 'ltr',
|
|
14219
|
-
// So that VoiceOver's focus indicator matches the thumb's dimensions
|
|
14220
|
-
width: '100%',
|
|
14221
|
-
height: '100%'
|
|
14222
|
-
})
|
|
14223
|
-
})
|
|
14391
|
+
value: values[index]
|
|
14392
|
+
}, !isHostComponent(Input) && {
|
|
14393
|
+
ownerState: _extends({}, ownerState, inputProps.ownerState)
|
|
14394
|
+
}, inputProps, {
|
|
14395
|
+
style: _extends({}, hiddenInputProps.style, inputProps.style)
|
|
14396
|
+
}))
|
|
14224
14397
|
}))
|
|
14225
14398
|
}))
|
|
14226
14399
|
}, index);
|
|
@@ -14293,6 +14466,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
14293
14466
|
* @default {}
|
|
14294
14467
|
*/
|
|
14295
14468
|
components: propTypes.shape({
|
|
14469
|
+
Input: propTypes.elementType,
|
|
14296
14470
|
Mark: propTypes.elementType,
|
|
14297
14471
|
MarkLabel: propTypes.elementType,
|
|
14298
14472
|
Rail: propTypes.elementType,
|
|
@@ -14306,7 +14480,24 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
14306
14480
|
* The props used for each slot inside the Slider.
|
|
14307
14481
|
* @default {}
|
|
14308
14482
|
*/
|
|
14309
|
-
componentsProps: propTypes.
|
|
14483
|
+
componentsProps: propTypes.shape({
|
|
14484
|
+
input: propTypes.object,
|
|
14485
|
+
mark: propTypes.object,
|
|
14486
|
+
markLabel: propTypes.object,
|
|
14487
|
+
rail: propTypes.object,
|
|
14488
|
+
root: propTypes.object,
|
|
14489
|
+
thumb: propTypes.object,
|
|
14490
|
+
track: propTypes.object,
|
|
14491
|
+
valueLabel: propTypes.shape({
|
|
14492
|
+
className: propTypes.string,
|
|
14493
|
+
components: propTypes.shape({
|
|
14494
|
+
Root: propTypes.elementType
|
|
14495
|
+
}),
|
|
14496
|
+
style: propTypes.object,
|
|
14497
|
+
value: propTypes.oneOfType([propTypes.arrayOf(propTypes.number), propTypes.number]),
|
|
14498
|
+
valueLabelDisplay: propTypes.oneOf(['auto', 'off', 'on'])
|
|
14499
|
+
})
|
|
14500
|
+
}),
|
|
14310
14501
|
|
|
14311
14502
|
/**
|
|
14312
14503
|
* The default value. Use when the component is not controlled.
|
|
@@ -14703,7 +14894,12 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
14703
14894
|
* The props used for each slot inside the Switch.
|
|
14704
14895
|
* @default {}
|
|
14705
14896
|
*/
|
|
14706
|
-
componentsProps: propTypes.
|
|
14897
|
+
componentsProps: propTypes.shape({
|
|
14898
|
+
input: propTypes.object,
|
|
14899
|
+
root: propTypes.object,
|
|
14900
|
+
thumb: propTypes.object,
|
|
14901
|
+
track: propTypes.object
|
|
14902
|
+
}),
|
|
14707
14903
|
|
|
14708
14904
|
/**
|
|
14709
14905
|
* The default checked state. Use when the component is not controlled.
|
|
@@ -14945,7 +15141,9 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
14945
15141
|
* The props used for each slot inside the Tabs.
|
|
14946
15142
|
* @default {}
|
|
14947
15143
|
*/
|
|
14948
|
-
componentsProps: propTypes.
|
|
15144
|
+
componentsProps: propTypes.shape({
|
|
15145
|
+
root: propTypes.object
|
|
15146
|
+
}),
|
|
14949
15147
|
|
|
14950
15148
|
/**
|
|
14951
15149
|
* The default value. Use when the component is not controlled.
|
|
@@ -15105,7 +15303,9 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
15105
15303
|
* The props used for each slot inside the TabPanel.
|
|
15106
15304
|
* @default {}
|
|
15107
15305
|
*/
|
|
15108
|
-
componentsProps: propTypes.
|
|
15306
|
+
componentsProps: propTypes.shape({
|
|
15307
|
+
root: propTypes.object
|
|
15308
|
+
}),
|
|
15109
15309
|
|
|
15110
15310
|
/**
|
|
15111
15311
|
* The value of the TabPanel. It will be shown when the Tab with the corresponding value is selected.
|
|
@@ -15404,7 +15604,9 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
15404
15604
|
* The props used for each slot inside the TabsList.
|
|
15405
15605
|
* @default {}
|
|
15406
15606
|
*/
|
|
15407
|
-
componentsProps: propTypes.
|
|
15607
|
+
componentsProps: propTypes.shape({
|
|
15608
|
+
root: propTypes.object
|
|
15609
|
+
})
|
|
15408
15610
|
} ;
|
|
15409
15611
|
var TabsListUnstyled$1 = TabsListUnstyled;
|
|
15410
15612
|
|
|
@@ -15610,7 +15812,9 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
15610
15812
|
* The props used for each slot inside the Tab.
|
|
15611
15813
|
* @default {}
|
|
15612
15814
|
*/
|
|
15613
|
-
componentsProps: propTypes.
|
|
15815
|
+
componentsProps: propTypes.shape({
|
|
15816
|
+
root: propTypes.object
|
|
15817
|
+
}),
|
|
15614
15818
|
|
|
15615
15819
|
/**
|
|
15616
15820
|
* If `true`, the component is disabled.
|
|
@@ -16739,7 +16943,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
16739
16943
|
const svgIconClasses = generateUtilityClasses('MuiSvgIcon', ['root', 'colorPrimary', 'colorSecondary', 'colorAction', 'colorError', 'colorDisabled', 'fontSizeInherit', 'fontSizeSmall', 'fontSizeMedium', 'fontSizeLarge']);
|
|
16740
16944
|
var svgIconClasses$1 = svgIconClasses;
|
|
16741
16945
|
|
|
16742
|
-
const _excluded$23 = ["children", "className", "color", "component", "fontSize", "htmlColor", "titleAccess", "viewBox"];
|
|
16946
|
+
const _excluded$23 = ["children", "className", "color", "component", "fontSize", "htmlColor", "inheritViewBox", "titleAccess", "viewBox"];
|
|
16743
16947
|
|
|
16744
16948
|
const useUtilityClasses$1K = ownerState => {
|
|
16745
16949
|
const {
|
|
@@ -16805,6 +17009,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
16805
17009
|
component = 'svg',
|
|
16806
17010
|
fontSize = 'medium',
|
|
16807
17011
|
htmlColor,
|
|
17012
|
+
inheritViewBox = false,
|
|
16808
17013
|
titleAccess,
|
|
16809
17014
|
viewBox = '0 0 24 24'
|
|
16810
17015
|
} = props,
|
|
@@ -16814,21 +17019,27 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
16814
17019
|
color,
|
|
16815
17020
|
component,
|
|
16816
17021
|
fontSize,
|
|
17022
|
+
inheritViewBox,
|
|
16817
17023
|
viewBox
|
|
16818
17024
|
});
|
|
16819
17025
|
|
|
17026
|
+
const more = {};
|
|
17027
|
+
|
|
17028
|
+
if (!inheritViewBox) {
|
|
17029
|
+
more.viewBox = viewBox;
|
|
17030
|
+
}
|
|
17031
|
+
|
|
16820
17032
|
const classes = useUtilityClasses$1K(ownerState);
|
|
16821
17033
|
return /*#__PURE__*/jsxRuntime_2(SvgIconRoot, _extends({
|
|
16822
17034
|
as: component,
|
|
16823
17035
|
className: clsx(classes.root, className),
|
|
16824
17036
|
ownerState: ownerState,
|
|
16825
17037
|
focusable: "false",
|
|
16826
|
-
viewBox: viewBox,
|
|
16827
17038
|
color: htmlColor,
|
|
16828
17039
|
"aria-hidden": titleAccess ? undefined : true,
|
|
16829
17040
|
role: titleAccess ? 'img' : undefined,
|
|
16830
17041
|
ref: ref
|
|
16831
|
-
}, other, {
|
|
17042
|
+
}, more, other, {
|
|
16832
17043
|
children: [children, titleAccess ? /*#__PURE__*/jsxRuntime_1("title", {
|
|
16833
17044
|
children: titleAccess
|
|
16834
17045
|
}) : null]
|
|
@@ -16885,6 +17096,15 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
16885
17096
|
*/
|
|
16886
17097
|
htmlColor: propTypes.string,
|
|
16887
17098
|
|
|
17099
|
+
/**
|
|
17100
|
+
* If `true`, the root node will inherit the custom `component`'s viewBox and the `viewBox`
|
|
17101
|
+
* prop will be ignored.
|
|
17102
|
+
* Useful when you want to reference a custom `component` and have `SvgIcon` pass that
|
|
17103
|
+
* `component`'s viewBox to the root node.
|
|
17104
|
+
* @default false
|
|
17105
|
+
*/
|
|
17106
|
+
inheritViewBox: propTypes.bool,
|
|
17107
|
+
|
|
16888
17108
|
/**
|
|
16889
17109
|
* The shape-rendering attribute. The behavior of the different options is described on the
|
|
16890
17110
|
* [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/shape-rendering).
|
|
@@ -22230,7 +22450,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
22230
22450
|
}
|
|
22231
22451
|
});
|
|
22232
22452
|
const Autocomplete = /*#__PURE__*/React__namespace.forwardRef(function Autocomplete(inProps, ref) {
|
|
22233
|
-
var _componentsProps$clea;
|
|
22453
|
+
var _componentsProps$clea, _componentsProps$pape;
|
|
22234
22454
|
|
|
22235
22455
|
const props = useThemeProps({
|
|
22236
22456
|
props: inProps,
|
|
@@ -22451,10 +22671,11 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
22451
22671
|
role: "presentation",
|
|
22452
22672
|
anchorEl: anchorEl,
|
|
22453
22673
|
open: true,
|
|
22454
|
-
children: /*#__PURE__*/jsxRuntime_2(AutocompletePaper, {
|
|
22455
|
-
as: PaperComponent,
|
|
22456
|
-
className: classes.paper,
|
|
22674
|
+
children: /*#__PURE__*/jsxRuntime_2(AutocompletePaper, _extends({
|
|
22457
22675
|
ownerState: ownerState,
|
|
22676
|
+
as: PaperComponent
|
|
22677
|
+
}, componentsProps.paper, {
|
|
22678
|
+
className: clsx(classes.paper, (_componentsProps$pape = componentsProps.paper) == null ? void 0 : _componentsProps$pape.className),
|
|
22458
22679
|
children: [loading && groupedOptions.length === 0 ? /*#__PURE__*/jsxRuntime_1(AutocompleteLoading, {
|
|
22459
22680
|
className: classes.loading,
|
|
22460
22681
|
ownerState: ownerState,
|
|
@@ -22485,7 +22706,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
22485
22706
|
return renderListOption(option, index);
|
|
22486
22707
|
})
|
|
22487
22708
|
})) : null]
|
|
22488
|
-
})
|
|
22709
|
+
}))
|
|
22489
22710
|
}) : null]
|
|
22490
22711
|
});
|
|
22491
22712
|
});
|
|
@@ -22586,7 +22807,10 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
22586
22807
|
* The props used for each slot inside.
|
|
22587
22808
|
* @default {}
|
|
22588
22809
|
*/
|
|
22589
|
-
componentsProps: propTypes.
|
|
22810
|
+
componentsProps: propTypes.shape({
|
|
22811
|
+
clearIndicator: propTypes.object,
|
|
22812
|
+
paper: propTypes.object
|
|
22813
|
+
}),
|
|
22590
22814
|
|
|
22591
22815
|
/**
|
|
22592
22816
|
* The default value. Use when the component is not controlled.
|
|
@@ -23733,7 +23957,9 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
23733
23957
|
* The props used for each slot inside the Backdrop.
|
|
23734
23958
|
* @default {}
|
|
23735
23959
|
*/
|
|
23736
|
-
componentsProps: propTypes.
|
|
23960
|
+
componentsProps: propTypes.shape({
|
|
23961
|
+
root: propTypes.object
|
|
23962
|
+
}),
|
|
23737
23963
|
|
|
23738
23964
|
/**
|
|
23739
23965
|
* If `true`, the backdrop is invisible.
|
|
@@ -23764,18 +23990,27 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
23764
23990
|
} ;
|
|
23765
23991
|
var Backdrop$1 = Backdrop;
|
|
23766
23992
|
|
|
23767
|
-
const
|
|
23768
|
-
|
|
23993
|
+
const shouldSpreadAdditionalProps = Slot => {
|
|
23994
|
+
return !Slot || !isHostComponent(Slot);
|
|
23995
|
+
};
|
|
23996
|
+
|
|
23997
|
+
var shouldSpreadAdditionalProps$1 = shouldSpreadAdditionalProps;
|
|
23998
|
+
|
|
23999
|
+
const _excluded$1K = ["anchorOrigin", "component", "components", "componentsProps", "overlap", "color", "invisible", "badgeContent", "showZero", "variant"];
|
|
24000
|
+
const badgeClasses = _extends({}, badgeUnstyledClasses$1, generateUtilityClasses('MuiBadge', ['colorError', 'colorInfo', 'colorPrimary', 'colorSecondary', 'colorSuccess', 'colorWarning', 'overlapRectangular', 'overlapCircular', // TODO: v6 remove the overlap value from these class keys
|
|
24001
|
+
'anchorOriginTopLeftCircular', 'anchorOriginTopLeftRectangular', 'anchorOriginTopRightCircular', 'anchorOriginTopRightRectangular', 'anchorOriginBottomLeftCircular', 'anchorOriginBottomLeftRectangular', 'anchorOriginBottomRightCircular', 'anchorOriginBottomRightRectangular']));
|
|
23769
24002
|
const RADIUS_STANDARD = 10;
|
|
23770
24003
|
const RADIUS_DOT = 4;
|
|
23771
24004
|
|
|
23772
24005
|
const extendUtilityClasses$2 = ownerState => {
|
|
23773
24006
|
const {
|
|
23774
24007
|
color,
|
|
24008
|
+
anchorOrigin,
|
|
24009
|
+
overlap,
|
|
23775
24010
|
classes = {}
|
|
23776
24011
|
} = ownerState;
|
|
23777
24012
|
return _extends({}, classes, {
|
|
23778
|
-
badge: clsx(classes.badge, color !== 'default' && [getBadgeUtilityClass(`color${capitalize(color)}`), classes[`color${capitalize(color)}`]])
|
|
24013
|
+
badge: clsx(classes.badge, getBadgeUtilityClass(`anchorOrigin${capitalize(anchorOrigin.vertical)}${capitalize(anchorOrigin.horizontal)}${capitalize(overlap)}`), getBadgeUtilityClass(`overlap${capitalize(overlap)}`), color !== 'default' && [getBadgeUtilityClass(`color${capitalize(color)}`), classes[`color${capitalize(color)}`]])
|
|
23779
24014
|
});
|
|
23780
24015
|
};
|
|
23781
24016
|
|
|
@@ -23903,11 +24138,6 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
23903
24138
|
duration: theme.transitions.duration.leavingScreen
|
|
23904
24139
|
})
|
|
23905
24140
|
}));
|
|
23906
|
-
|
|
23907
|
-
const shouldSpreadAdditionalProps = Slot => {
|
|
23908
|
-
return !Slot || !isHostComponent(Slot);
|
|
23909
|
-
};
|
|
23910
|
-
|
|
23911
24141
|
const Badge = /*#__PURE__*/React__namespace.forwardRef(function Badge(inProps, ref) {
|
|
23912
24142
|
var _componentsProps$root, _componentsProps$badg;
|
|
23913
24143
|
|
|
@@ -23917,9 +24147,14 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
23917
24147
|
});
|
|
23918
24148
|
|
|
23919
24149
|
const {
|
|
24150
|
+
anchorOrigin: anchorOriginProp = {
|
|
24151
|
+
vertical: 'top',
|
|
24152
|
+
horizontal: 'right'
|
|
24153
|
+
},
|
|
23920
24154
|
component = 'span',
|
|
23921
24155
|
components = {},
|
|
23922
24156
|
componentsProps = {},
|
|
24157
|
+
overlap: overlapProp = 'rectangular',
|
|
23923
24158
|
color: colorProp = 'default',
|
|
23924
24159
|
invisible: invisibleProp,
|
|
23925
24160
|
badgeContent: badgeContentProp,
|
|
@@ -23929,7 +24164,9 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
23929
24164
|
other = _objectWithoutPropertiesLoose(props, _excluded$1K);
|
|
23930
24165
|
|
|
23931
24166
|
const prevProps = usePreviousProps$1({
|
|
23932
|
-
|
|
24167
|
+
anchorOrigin: anchorOriginProp,
|
|
24168
|
+
color: colorProp,
|
|
24169
|
+
overlap: overlapProp
|
|
23933
24170
|
});
|
|
23934
24171
|
let invisible = invisibleProp;
|
|
23935
24172
|
|
|
@@ -23938,16 +24175,21 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
23938
24175
|
}
|
|
23939
24176
|
|
|
23940
24177
|
const {
|
|
23941
|
-
color = colorProp
|
|
24178
|
+
color = colorProp,
|
|
24179
|
+
overlap = overlapProp,
|
|
24180
|
+
anchorOrigin = anchorOriginProp
|
|
23942
24181
|
} = invisible ? prevProps : props;
|
|
23943
24182
|
|
|
23944
24183
|
const ownerState = _extends({}, props, {
|
|
24184
|
+
anchorOrigin,
|
|
23945
24185
|
invisible,
|
|
23946
|
-
color
|
|
24186
|
+
color,
|
|
24187
|
+
overlap
|
|
23947
24188
|
});
|
|
23948
24189
|
|
|
23949
24190
|
const classes = extendUtilityClasses$2(ownerState);
|
|
23950
24191
|
return /*#__PURE__*/jsxRuntime_1(BadgeUnstyled$1, _extends({
|
|
24192
|
+
anchorOrigin: anchorOrigin,
|
|
23951
24193
|
invisible: invisibleProp,
|
|
23952
24194
|
badgeContent: badgeContentProp,
|
|
23953
24195
|
showZero: showZero,
|
|
@@ -23958,15 +24200,17 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
23958
24200
|
Badge: BadgeBadge
|
|
23959
24201
|
}, components),
|
|
23960
24202
|
componentsProps: {
|
|
23961
|
-
root: _extends({}, componentsProps.root, shouldSpreadAdditionalProps(components.Root) && {
|
|
24203
|
+
root: _extends({}, componentsProps.root, shouldSpreadAdditionalProps$1(components.Root) && {
|
|
23962
24204
|
as: component,
|
|
23963
24205
|
ownerState: _extends({}, (_componentsProps$root = componentsProps.root) == null ? void 0 : _componentsProps$root.ownerState, {
|
|
23964
|
-
color
|
|
24206
|
+
color,
|
|
24207
|
+
overlap
|
|
23965
24208
|
})
|
|
23966
24209
|
}),
|
|
23967
|
-
badge: _extends({}, componentsProps.badge, shouldSpreadAdditionalProps(components.Badge) && {
|
|
24210
|
+
badge: _extends({}, componentsProps.badge, shouldSpreadAdditionalProps$1(components.Badge) && {
|
|
23968
24211
|
ownerState: _extends({}, (_componentsProps$badg = componentsProps.badge) == null ? void 0 : _componentsProps$badg.ownerState, {
|
|
23969
|
-
color
|
|
24212
|
+
color,
|
|
24213
|
+
overlap
|
|
23970
24214
|
})
|
|
23971
24215
|
})
|
|
23972
24216
|
},
|
|
@@ -24037,7 +24281,10 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
24037
24281
|
* The props used for each slot inside the Badge.
|
|
24038
24282
|
* @default {}
|
|
24039
24283
|
*/
|
|
24040
|
-
componentsProps: propTypes.
|
|
24284
|
+
componentsProps: propTypes.shape({
|
|
24285
|
+
badge: propTypes.object,
|
|
24286
|
+
root: propTypes.object
|
|
24287
|
+
}),
|
|
24041
24288
|
|
|
24042
24289
|
/**
|
|
24043
24290
|
* If `true`, the badge is invisible.
|
|
@@ -27437,7 +27684,9 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
27437
27684
|
* The props used for each slot inside the Modal.
|
|
27438
27685
|
* @default {}
|
|
27439
27686
|
*/
|
|
27440
|
-
componentsProps: propTypes.
|
|
27687
|
+
componentsProps: propTypes.shape({
|
|
27688
|
+
root: propTypes.object
|
|
27689
|
+
}),
|
|
27441
27690
|
|
|
27442
27691
|
/**
|
|
27443
27692
|
* An HTML element or function that returns one.
|
|
@@ -30079,7 +30328,10 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
30079
30328
|
* The props used for each slot inside the Input.
|
|
30080
30329
|
* @default {}
|
|
30081
30330
|
*/
|
|
30082
|
-
componentsProps: propTypes.
|
|
30331
|
+
componentsProps: propTypes.shape({
|
|
30332
|
+
input: propTypes.object,
|
|
30333
|
+
root: propTypes.object
|
|
30334
|
+
}),
|
|
30083
30335
|
|
|
30084
30336
|
/**
|
|
30085
30337
|
* The default value. Use when the component is not controlled.
|
|
@@ -30506,7 +30758,10 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
30506
30758
|
* The props used for each slot inside the Input.
|
|
30507
30759
|
* @default {}
|
|
30508
30760
|
*/
|
|
30509
|
-
componentsProps: propTypes.
|
|
30761
|
+
componentsProps: propTypes.shape({
|
|
30762
|
+
input: propTypes.object,
|
|
30763
|
+
root: propTypes.object
|
|
30764
|
+
}),
|
|
30510
30765
|
|
|
30511
30766
|
/**
|
|
30512
30767
|
* The default value. Use when the component is not controlled.
|
|
@@ -31127,7 +31382,9 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
31127
31382
|
* The props used for each slot inside.
|
|
31128
31383
|
* @default {}
|
|
31129
31384
|
*/
|
|
31130
|
-
componentsProps: propTypes.
|
|
31385
|
+
componentsProps: propTypes.shape({
|
|
31386
|
+
typography: propTypes.object
|
|
31387
|
+
}),
|
|
31131
31388
|
|
|
31132
31389
|
/**
|
|
31133
31390
|
* A control element. For instance, it can be a `Radio`, a `Switch` or a `Checkbox`.
|
|
@@ -34055,7 +34312,10 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
34055
34312
|
* The props used for each slot inside the Input.
|
|
34056
34313
|
* @default {}
|
|
34057
34314
|
*/
|
|
34058
|
-
componentsProps: propTypes.
|
|
34315
|
+
componentsProps: propTypes.shape({
|
|
34316
|
+
input: propTypes.object,
|
|
34317
|
+
root: propTypes.object
|
|
34318
|
+
}),
|
|
34059
34319
|
|
|
34060
34320
|
/**
|
|
34061
34321
|
* The default value. Use when the component is not controlled.
|
|
@@ -34463,6 +34723,8 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
34463
34723
|
}, ownerState.size === 'small' && {
|
|
34464
34724
|
transform: 'translate(12px, 13px) scale(1)'
|
|
34465
34725
|
}, ownerState.shrink && _extends({
|
|
34726
|
+
userSelect: 'none',
|
|
34727
|
+
pointerEvents: 'auto',
|
|
34466
34728
|
transform: 'translate(12px, 7px) scale(0.75)',
|
|
34467
34729
|
maxWidth: 'calc(133% - 24px)'
|
|
34468
34730
|
}, ownerState.size === 'small' && {
|
|
@@ -34476,6 +34738,8 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
34476
34738
|
}, ownerState.size === 'small' && {
|
|
34477
34739
|
transform: 'translate(14px, 9px) scale(1)'
|
|
34478
34740
|
}, ownerState.shrink && {
|
|
34741
|
+
userSelect: 'none',
|
|
34742
|
+
pointerEvents: 'auto',
|
|
34479
34743
|
maxWidth: 'calc(133% - 24px)',
|
|
34480
34744
|
transform: 'translate(14px, -9px) scale(0.75)'
|
|
34481
34745
|
})));
|
|
@@ -36009,7 +36273,9 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
36009
36273
|
* The props used for each slot inside the Input.
|
|
36010
36274
|
* @default {}
|
|
36011
36275
|
*/
|
|
36012
|
-
componentsProps: propTypes.
|
|
36276
|
+
componentsProps: propTypes.shape({
|
|
36277
|
+
root: propTypes.object
|
|
36278
|
+
}),
|
|
36013
36279
|
|
|
36014
36280
|
/**
|
|
36015
36281
|
* The container component used when a `ListItemSecondaryAction` is the last child.
|
|
@@ -40832,7 +41098,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
40832
41098
|
const selectClasses = generateUtilityClasses('MuiSelect', ['select', 'multiple', 'filled', 'outlined', 'standard', 'disabled', 'focused', 'icon', 'iconOpen', 'iconFilled', 'iconOutlined', 'iconStandard', 'nativeInput']);
|
|
40833
41099
|
var selectClasses$1 = selectClasses;
|
|
40834
41100
|
|
|
40835
|
-
const _excluded$E = ["aria-describedby", "aria-label", "autoFocus", "autoWidth", "children", "className", "defaultValue", "disabled", "displayEmpty", "IconComponent", "inputRef", "labelId", "MenuProps", "multiple", "name", "onBlur", "onChange", "onClose", "onFocus", "onOpen", "open", "readOnly", "renderValue", "SelectDisplayProps", "tabIndex", "type", "value", "variant"];
|
|
41101
|
+
const _excluded$E = ["aria-describedby", "aria-label", "autoFocus", "autoWidth", "children", "className", "defaultOpen", "defaultValue", "disabled", "displayEmpty", "IconComponent", "inputRef", "labelId", "MenuProps", "multiple", "name", "onBlur", "onChange", "onClose", "onFocus", "onOpen", "open", "readOnly", "renderValue", "SelectDisplayProps", "tabIndex", "type", "value", "variant"];
|
|
40836
41102
|
const SelectSelect = styled$1('div', {
|
|
40837
41103
|
name: 'MuiSelect',
|
|
40838
41104
|
slot: 'Select',
|
|
@@ -40927,6 +41193,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
40927
41193
|
autoWidth,
|
|
40928
41194
|
children,
|
|
40929
41195
|
className,
|
|
41196
|
+
defaultOpen,
|
|
40930
41197
|
defaultValue,
|
|
40931
41198
|
disabled,
|
|
40932
41199
|
displayEmpty,
|
|
@@ -40956,6 +41223,11 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
40956
41223
|
default: defaultValue,
|
|
40957
41224
|
name: 'Select'
|
|
40958
41225
|
});
|
|
41226
|
+
const [openState, setOpenState] = useControlled({
|
|
41227
|
+
controlled: openProp,
|
|
41228
|
+
default: defaultOpen,
|
|
41229
|
+
name: 'Select'
|
|
41230
|
+
});
|
|
40959
41231
|
const inputRef = React__namespace.useRef(null);
|
|
40960
41232
|
const displayRef = React__namespace.useRef(null);
|
|
40961
41233
|
const [displayNode, setDisplayNode] = React__namespace.useState(null);
|
|
@@ -40963,7 +41235,6 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
40963
41235
|
current: isOpenControlled
|
|
40964
41236
|
} = React__namespace.useRef(openProp != null);
|
|
40965
41237
|
const [menuMinWidthState, setMenuMinWidthState] = React__namespace.useState();
|
|
40966
|
-
const [openState, setOpenState] = React__namespace.useState(false);
|
|
40967
41238
|
const handleRef = useForkRef(ref, inputRefProp);
|
|
40968
41239
|
const handleDisplayRef = React__namespace.useCallback(node => {
|
|
40969
41240
|
displayRef.current = node;
|
|
@@ -40978,7 +41249,17 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
40978
41249
|
},
|
|
40979
41250
|
node: inputRef.current,
|
|
40980
41251
|
value
|
|
40981
|
-
}), [value]);
|
|
41252
|
+
}), [value]); // Resize menu on `defaultOpen` automatic toggle.
|
|
41253
|
+
|
|
41254
|
+
React__namespace.useEffect(() => {
|
|
41255
|
+
if (defaultOpen && openState && displayNode && !isOpenControlled) {
|
|
41256
|
+
setMenuMinWidthState(autoWidth ? null : displayNode.clientWidth);
|
|
41257
|
+
displayRef.current.focus();
|
|
41258
|
+
} // eslint-disable-next-line react-hooks/exhaustive-deps
|
|
41259
|
+
|
|
41260
|
+
}, [displayNode, autoWidth]); // `isOpenControlled` is ignored because the component should never switch between controlled and uncontrolled modes.
|
|
41261
|
+
// `defaultOpen` and `openState` are ignored to avoid unnecessary callbacks.
|
|
41262
|
+
|
|
40982
41263
|
React__namespace.useEffect(() => {
|
|
40983
41264
|
if (autoFocus) {
|
|
40984
41265
|
displayRef.current.focus();
|
|
@@ -41114,7 +41395,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
41114
41395
|
}
|
|
41115
41396
|
};
|
|
41116
41397
|
|
|
41117
|
-
const open = displayNode !== null &&
|
|
41398
|
+
const open = displayNode !== null && openState;
|
|
41118
41399
|
|
|
41119
41400
|
const handleBlur = event => {
|
|
41120
41401
|
// if open event.stopImmediatePropagation
|
|
@@ -41373,6 +41654,12 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
41373
41654
|
*/
|
|
41374
41655
|
className: propTypes.string,
|
|
41375
41656
|
|
|
41657
|
+
/**
|
|
41658
|
+
* If `true`, the component is toggled on mount. Use when the component open state is not controlled.
|
|
41659
|
+
* You can only use it when the `native` prop is `false` (default).
|
|
41660
|
+
*/
|
|
41661
|
+
defaultOpen: propTypes.bool,
|
|
41662
|
+
|
|
41376
41663
|
/**
|
|
41377
41664
|
* The default value. Use when the component is not controlled.
|
|
41378
41665
|
*/
|
|
@@ -41502,7 +41789,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
41502
41789
|
|
|
41503
41790
|
var _Input, _FilledInput;
|
|
41504
41791
|
|
|
41505
|
-
const _excluded$D = ["autoWidth", "children", "classes", "className", "displayEmpty", "IconComponent", "id", "input", "inputProps", "label", "labelId", "MenuProps", "multiple", "native", "onClose", "onOpen", "open", "renderValue", "SelectDisplayProps", "variant"];
|
|
41792
|
+
const _excluded$D = ["autoWidth", "children", "classes", "className", "defaultOpen", "displayEmpty", "IconComponent", "id", "input", "inputProps", "label", "labelId", "MenuProps", "multiple", "native", "onClose", "onOpen", "open", "renderValue", "SelectDisplayProps", "variant"];
|
|
41506
41793
|
|
|
41507
41794
|
const useUtilityClasses$v = ownerState => {
|
|
41508
41795
|
const {
|
|
@@ -41522,6 +41809,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
41522
41809
|
children,
|
|
41523
41810
|
classes: classesProp = {},
|
|
41524
41811
|
className,
|
|
41812
|
+
defaultOpen = false,
|
|
41525
41813
|
displayEmpty = false,
|
|
41526
41814
|
IconComponent = ArrowDropDownIcon,
|
|
41527
41815
|
id,
|
|
@@ -41578,6 +41866,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
41578
41866
|
id
|
|
41579
41867
|
} : {
|
|
41580
41868
|
autoWidth,
|
|
41869
|
+
defaultOpen,
|
|
41581
41870
|
displayEmpty,
|
|
41582
41871
|
labelId,
|
|
41583
41872
|
MenuProps,
|
|
@@ -41632,6 +41921,13 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
41632
41921
|
*/
|
|
41633
41922
|
className: propTypes.string,
|
|
41634
41923
|
|
|
41924
|
+
/**
|
|
41925
|
+
* If `true`, the component is initially open. Use when the component open state is not controlled (i.e. the `open` prop is not defined).
|
|
41926
|
+
* You can only use it when the `native` prop is `false` (default).
|
|
41927
|
+
* @default false
|
|
41928
|
+
*/
|
|
41929
|
+
defaultOpen: propTypes.bool,
|
|
41930
|
+
|
|
41635
41931
|
/**
|
|
41636
41932
|
* The default value. Use when the component is not controlled.
|
|
41637
41933
|
*/
|
|
@@ -41996,7 +42292,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
41996
42292
|
} ;
|
|
41997
42293
|
var Skeleton$1 = Skeleton;
|
|
41998
42294
|
|
|
41999
|
-
const _excluded$B = ["components", "componentsProps", "color", "size"];
|
|
42295
|
+
const _excluded$B = ["component", "components", "componentsProps", "color", "size"];
|
|
42000
42296
|
const sliderClasses = _extends({}, sliderUnstyledClasses$1, generateUtilityClasses('MuiSlider', ['colorPrimary', 'colorSecondary', 'thumbColorPrimary', 'thumbColorSecondary', 'sizeSmall', 'thumbSizeSmall']));
|
|
42001
42297
|
const SliderRoot = styled$1('span', {
|
|
42002
42298
|
name: 'MuiSlider',
|
|
@@ -42064,6 +42360,19 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
42064
42360
|
}
|
|
42065
42361
|
}
|
|
42066
42362
|
}));
|
|
42363
|
+
SliderRoot.propTypes
|
|
42364
|
+
/* remove-proptypes */
|
|
42365
|
+
= {
|
|
42366
|
+
// ----------------------------- Warning --------------------------------
|
|
42367
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
42368
|
+
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
42369
|
+
// ----------------------------------------------------------------------
|
|
42370
|
+
|
|
42371
|
+
/**
|
|
42372
|
+
* @ignore
|
|
42373
|
+
*/
|
|
42374
|
+
children: propTypes.node
|
|
42375
|
+
} ;
|
|
42067
42376
|
const SliderRail = styled$1('span', {
|
|
42068
42377
|
name: 'MuiSlider',
|
|
42069
42378
|
slot: 'Rail',
|
|
@@ -42089,6 +42398,19 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
42089
42398
|
}, ownerState.track === 'inverted' && {
|
|
42090
42399
|
opacity: 1
|
|
42091
42400
|
}));
|
|
42401
|
+
SliderRail.propTypes
|
|
42402
|
+
/* remove-proptypes */
|
|
42403
|
+
= {
|
|
42404
|
+
// ----------------------------- Warning --------------------------------
|
|
42405
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
42406
|
+
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
42407
|
+
// ----------------------------------------------------------------------
|
|
42408
|
+
|
|
42409
|
+
/**
|
|
42410
|
+
* @ignore
|
|
42411
|
+
*/
|
|
42412
|
+
children: propTypes.node
|
|
42413
|
+
} ;
|
|
42092
42414
|
const SliderTrack = styled$1('span', {
|
|
42093
42415
|
name: 'MuiSlider',
|
|
42094
42416
|
slot: 'Track',
|
|
@@ -42125,6 +42447,19 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
42125
42447
|
borderColor: color
|
|
42126
42448
|
});
|
|
42127
42449
|
});
|
|
42450
|
+
SliderTrack.propTypes
|
|
42451
|
+
/* remove-proptypes */
|
|
42452
|
+
= {
|
|
42453
|
+
// ----------------------------- Warning --------------------------------
|
|
42454
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
42455
|
+
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
42456
|
+
// ----------------------------------------------------------------------
|
|
42457
|
+
|
|
42458
|
+
/**
|
|
42459
|
+
* @ignore
|
|
42460
|
+
*/
|
|
42461
|
+
children: propTypes.node
|
|
42462
|
+
} ;
|
|
42128
42463
|
const SliderThumb = styled$1('span', {
|
|
42129
42464
|
name: 'MuiSlider',
|
|
42130
42465
|
slot: 'Thumb',
|
|
@@ -42197,6 +42532,19 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
42197
42532
|
}
|
|
42198
42533
|
}
|
|
42199
42534
|
}));
|
|
42535
|
+
SliderThumb.propTypes
|
|
42536
|
+
/* remove-proptypes */
|
|
42537
|
+
= {
|
|
42538
|
+
// ----------------------------- Warning --------------------------------
|
|
42539
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
42540
|
+
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
42541
|
+
// ----------------------------------------------------------------------
|
|
42542
|
+
|
|
42543
|
+
/**
|
|
42544
|
+
* @ignore
|
|
42545
|
+
*/
|
|
42546
|
+
children: propTypes.node
|
|
42547
|
+
} ;
|
|
42200
42548
|
const SliderValueLabel = styled$1(SliderValueLabelUnstyled, {
|
|
42201
42549
|
name: 'MuiSlider',
|
|
42202
42550
|
slot: 'ValueLabel',
|
|
@@ -42241,6 +42589,19 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
42241
42589
|
backgroundColor: 'inherit'
|
|
42242
42590
|
}
|
|
42243
42591
|
}));
|
|
42592
|
+
SliderValueLabel.propTypes
|
|
42593
|
+
/* remove-proptypes */
|
|
42594
|
+
= {
|
|
42595
|
+
// ----------------------------- Warning --------------------------------
|
|
42596
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
42597
|
+
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
42598
|
+
// ----------------------------------------------------------------------
|
|
42599
|
+
|
|
42600
|
+
/**
|
|
42601
|
+
* @ignore
|
|
42602
|
+
*/
|
|
42603
|
+
children: propTypes.node
|
|
42604
|
+
} ;
|
|
42244
42605
|
const SliderMark = styled$1('span', {
|
|
42245
42606
|
name: 'MuiSlider',
|
|
42246
42607
|
slot: 'Mark',
|
|
@@ -42266,6 +42627,19 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
42266
42627
|
backgroundColor: theme.palette.background.paper,
|
|
42267
42628
|
opacity: 0.8
|
|
42268
42629
|
}));
|
|
42630
|
+
SliderMark.propTypes
|
|
42631
|
+
/* remove-proptypes */
|
|
42632
|
+
= {
|
|
42633
|
+
// ----------------------------- Warning --------------------------------
|
|
42634
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
42635
|
+
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
42636
|
+
// ----------------------------------------------------------------------
|
|
42637
|
+
|
|
42638
|
+
/**
|
|
42639
|
+
* @ignore
|
|
42640
|
+
*/
|
|
42641
|
+
children: propTypes.node
|
|
42642
|
+
} ;
|
|
42269
42643
|
const SliderMarkLabel = styled$1('span', {
|
|
42270
42644
|
name: 'MuiSlider',
|
|
42271
42645
|
slot: 'MarkLabel',
|
|
@@ -42294,7 +42668,9 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
42294
42668
|
}, markLabelActive && {
|
|
42295
42669
|
color: theme.palette.text.primary
|
|
42296
42670
|
}));
|
|
42297
|
-
|
|
42671
|
+
SliderMarkLabel.propTypes
|
|
42672
|
+
/* remove-proptypes */
|
|
42673
|
+
= {
|
|
42298
42674
|
// ----------------------------- Warning --------------------------------
|
|
42299
42675
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
42300
42676
|
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
@@ -42303,40 +42679,8 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
42303
42679
|
/**
|
|
42304
42680
|
* @ignore
|
|
42305
42681
|
*/
|
|
42306
|
-
children: propTypes.node
|
|
42307
|
-
|
|
42308
|
-
/**
|
|
42309
|
-
* @ignore
|
|
42310
|
-
*/
|
|
42311
|
-
ownerState: propTypes.shape({
|
|
42312
|
-
'aria-label': propTypes.string,
|
|
42313
|
-
'aria-labelledby': propTypes.string,
|
|
42314
|
-
'aria-valuetext': propTypes.string,
|
|
42315
|
-
classes: propTypes.object,
|
|
42316
|
-
color: propTypes.oneOf(['primary', 'secondary']),
|
|
42317
|
-
defaultValue: propTypes.oneOfType([propTypes.arrayOf(propTypes.number), propTypes.number]),
|
|
42318
|
-
disabled: propTypes.bool,
|
|
42319
|
-
getAriaLabel: propTypes.func,
|
|
42320
|
-
getAriaValueText: propTypes.func,
|
|
42321
|
-
isRtl: propTypes.bool,
|
|
42322
|
-
marks: propTypes.oneOfType([propTypes.arrayOf(propTypes.shape({
|
|
42323
|
-
label: propTypes.node,
|
|
42324
|
-
value: propTypes.number.isRequired
|
|
42325
|
-
})), propTypes.bool]),
|
|
42326
|
-
max: propTypes.number,
|
|
42327
|
-
min: propTypes.number,
|
|
42328
|
-
name: propTypes.string,
|
|
42329
|
-
onChange: propTypes.func,
|
|
42330
|
-
onChangeCommitted: propTypes.func,
|
|
42331
|
-
orientation: propTypes.oneOf(['horizontal', 'vertical']),
|
|
42332
|
-
scale: propTypes.func,
|
|
42333
|
-
step: propTypes.number,
|
|
42334
|
-
track: propTypes.oneOf(['inverted', 'normal', false]),
|
|
42335
|
-
value: propTypes.oneOfType([propTypes.arrayOf(propTypes.number), propTypes.number]),
|
|
42336
|
-
valueLabelDisplay: propTypes.oneOf(['auto', 'off', 'on']),
|
|
42337
|
-
valueLabelFormat: propTypes.oneOfType([propTypes.func, propTypes.string])
|
|
42338
|
-
})
|
|
42339
|
-
};
|
|
42682
|
+
children: propTypes.node
|
|
42683
|
+
} ;
|
|
42340
42684
|
|
|
42341
42685
|
const extendUtilityClasses = ownerState => {
|
|
42342
42686
|
const {
|
|
@@ -42350,10 +42694,6 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
42350
42694
|
});
|
|
42351
42695
|
};
|
|
42352
42696
|
|
|
42353
|
-
const shouldSpreadOwnerState = Component => {
|
|
42354
|
-
return !Component || !isHostComponent(Component);
|
|
42355
|
-
};
|
|
42356
|
-
|
|
42357
42697
|
const Slider = /*#__PURE__*/React__namespace.forwardRef(function Slider(inputProps, ref) {
|
|
42358
42698
|
var _componentsProps$root, _componentsProps$thum, _componentsProps$trac, _componentsProps$valu;
|
|
42359
42699
|
|
|
@@ -42365,6 +42705,8 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
42365
42705
|
const isRtl = theme.direction === 'rtl';
|
|
42366
42706
|
|
|
42367
42707
|
const {
|
|
42708
|
+
// eslint-disable-next-line react/prop-types
|
|
42709
|
+
component = 'span',
|
|
42368
42710
|
components = {},
|
|
42369
42711
|
componentsProps = {},
|
|
42370
42712
|
color = 'primary',
|
|
@@ -42390,25 +42732,26 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
42390
42732
|
MarkLabel: SliderMarkLabel
|
|
42391
42733
|
}, components),
|
|
42392
42734
|
componentsProps: _extends({}, componentsProps, {
|
|
42393
|
-
root: _extends({}, componentsProps.root,
|
|
42735
|
+
root: _extends({}, componentsProps.root, shouldSpreadAdditionalProps$1(components.Root) && {
|
|
42736
|
+
as: component,
|
|
42394
42737
|
ownerState: _extends({}, (_componentsProps$root = componentsProps.root) == null ? void 0 : _componentsProps$root.ownerState, {
|
|
42395
42738
|
color,
|
|
42396
42739
|
size
|
|
42397
42740
|
})
|
|
42398
42741
|
}),
|
|
42399
|
-
thumb: _extends({}, componentsProps.thumb,
|
|
42742
|
+
thumb: _extends({}, componentsProps.thumb, shouldSpreadAdditionalProps$1(components.Thumb) && {
|
|
42400
42743
|
ownerState: _extends({}, (_componentsProps$thum = componentsProps.thumb) == null ? void 0 : _componentsProps$thum.ownerState, {
|
|
42401
42744
|
color,
|
|
42402
42745
|
size
|
|
42403
42746
|
})
|
|
42404
42747
|
}),
|
|
42405
|
-
track: _extends({}, componentsProps.track,
|
|
42748
|
+
track: _extends({}, componentsProps.track, shouldSpreadAdditionalProps$1(components.Track) && {
|
|
42406
42749
|
ownerState: _extends({}, (_componentsProps$trac = componentsProps.track) == null ? void 0 : _componentsProps$trac.ownerState, {
|
|
42407
42750
|
color,
|
|
42408
42751
|
size
|
|
42409
42752
|
})
|
|
42410
42753
|
}),
|
|
42411
|
-
valueLabel: _extends({}, componentsProps.valueLabel,
|
|
42754
|
+
valueLabel: _extends({}, componentsProps.valueLabel, shouldSpreadAdditionalProps$1(components.ValueLabel) && {
|
|
42412
42755
|
ownerState: _extends({}, (_componentsProps$valu = componentsProps.valueLabel) == null ? void 0 : _componentsProps$valu.ownerState, {
|
|
42413
42756
|
color,
|
|
42414
42757
|
size
|
|
@@ -42482,6 +42825,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
42482
42825
|
* @default {}
|
|
42483
42826
|
*/
|
|
42484
42827
|
components: propTypes.shape({
|
|
42828
|
+
Input: propTypes.elementType,
|
|
42485
42829
|
Mark: propTypes.elementType,
|
|
42486
42830
|
MarkLabel: propTypes.elementType,
|
|
42487
42831
|
Rail: propTypes.elementType,
|
|
@@ -42495,7 +42839,24 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
42495
42839
|
* The props used for each slot inside the Slider.
|
|
42496
42840
|
* @default {}
|
|
42497
42841
|
*/
|
|
42498
|
-
componentsProps: propTypes.
|
|
42842
|
+
componentsProps: propTypes.shape({
|
|
42843
|
+
input: propTypes.object,
|
|
42844
|
+
mark: propTypes.object,
|
|
42845
|
+
markLabel: propTypes.object,
|
|
42846
|
+
rail: propTypes.object,
|
|
42847
|
+
root: propTypes.object,
|
|
42848
|
+
thumb: propTypes.object,
|
|
42849
|
+
track: propTypes.object,
|
|
42850
|
+
valueLabel: propTypes.shape({
|
|
42851
|
+
className: propTypes.string,
|
|
42852
|
+
components: propTypes.shape({
|
|
42853
|
+
Root: propTypes.elementType
|
|
42854
|
+
}),
|
|
42855
|
+
style: propTypes.object,
|
|
42856
|
+
value: propTypes.oneOfType([propTypes.arrayOf(propTypes.number), propTypes.number]),
|
|
42857
|
+
valueLabelDisplay: propTypes.oneOf(['auto', 'off', 'on'])
|
|
42858
|
+
})
|
|
42859
|
+
}),
|
|
42499
42860
|
|
|
42500
42861
|
/**
|
|
42501
42862
|
* The default value. Use when the component is not controlled.
|
|
@@ -44687,7 +45048,12 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
44687
45048
|
* and `componentsProps.transition` prop values win over `TransitionProps` if both are applied.
|
|
44688
45049
|
* @default {}
|
|
44689
45050
|
*/
|
|
44690
|
-
componentsProps: propTypes.
|
|
45051
|
+
componentsProps: propTypes.shape({
|
|
45052
|
+
arrow: propTypes.object,
|
|
45053
|
+
popper: propTypes.object,
|
|
45054
|
+
tooltip: propTypes.object,
|
|
45055
|
+
transition: propTypes.object
|
|
45056
|
+
}),
|
|
44691
45057
|
|
|
44692
45058
|
/**
|
|
44693
45059
|
* Set to `true` if the `title` acts as an accessible description.
|
|
@@ -45969,7 +46335,9 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
45969
46335
|
* The props used for each slot inside.
|
|
45970
46336
|
* @default {}
|
|
45971
46337
|
*/
|
|
45972
|
-
componentsProps: propTypes.
|
|
46338
|
+
componentsProps: propTypes.shape({
|
|
46339
|
+
label: propTypes.object
|
|
46340
|
+
}),
|
|
45973
46341
|
|
|
45974
46342
|
/**
|
|
45975
46343
|
* If `true`, the step is marked as failed.
|
|
@@ -50987,6 +51355,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
50987
51355
|
|
|
50988
51356
|
/**
|
|
50989
51357
|
* Props applied to the [`InputLabel`](/api/input-label/) element.
|
|
51358
|
+
* Pointer events like `onClick` are enabled if and only if `shrink` is `true`.
|
|
50990
51359
|
*/
|
|
50991
51360
|
InputLabelProps: propTypes.object,
|
|
50992
51361
|
|
|
@@ -52117,6 +52486,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
52117
52486
|
exports.unstable_useId = useId;
|
|
52118
52487
|
exports.unsupportedProp = unsupportedProp;
|
|
52119
52488
|
exports.useAutocomplete = useAutocomplete;
|
|
52489
|
+
exports.useBadge = useBadge;
|
|
52120
52490
|
exports.useButton = useButton;
|
|
52121
52491
|
exports.useControlled = useControlled;
|
|
52122
52492
|
exports.useEventCallback = useEventCallback;
|
|
@@ -52129,6 +52499,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
52129
52499
|
exports.usePagination = usePagination;
|
|
52130
52500
|
exports.useRadioGroup = useRadioGroup;
|
|
52131
52501
|
exports.useScrollTrigger = useScrollTrigger;
|
|
52502
|
+
exports.useSlider = useSlider;
|
|
52132
52503
|
exports.useSwitch = useSwitch;
|
|
52133
52504
|
exports.useTab = useTab$1;
|
|
52134
52505
|
exports.useTabContext = useTabContext;
|