@mui/material 5.8.3 → 5.8.6
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/Alert/Alert.js +19 -11
- package/AppBar/AppBar.js +22 -5
- package/Autocomplete/autocompleteClasses.d.ts +1 -1
- package/Avatar/Avatar.js +7 -4
- package/Badge/Badge.js +2 -2
- package/Button/buttonClasses.d.ts +24 -0
- package/Button/buttonClasses.js +1 -1
- package/CHANGELOG.md +224 -14
- package/Chip/Chip.js +31 -30
- package/Dialog/Dialog.js +11 -6
- package/FilledInput/FilledInput.js +28 -13
- package/Grid/Grid.d.ts +73 -52
- package/Grid/Grid.js +94 -40
- package/Grow/Grow.js +1 -2
- package/Hidden/withWidth.js +0 -2
- package/Input/Input.js +1 -1
- package/InputBase/InputBase.js +2 -2
- package/LinearProgress/LinearProgress.js +6 -2
- package/Link/Link.js +10 -17
- package/Link/getTextDecoration.d.ts +15 -0
- package/Link/getTextDecoration.js +29 -0
- package/Modal/Modal.d.ts +2 -0
- package/Modal/Modal.js +25 -8
- package/OutlinedInput/OutlinedInput.js +40 -10
- package/Popover/Popover.d.ts +7 -0
- package/Popover/index.js +1 -0
- package/README.md +6 -9
- package/Skeleton/Skeleton.js +8 -3
- package/Slider/Slider.d.ts +3 -1
- package/Slider/Slider.js +24 -22
- package/Snackbar/Snackbar.js +6 -20
- package/SnackbarContent/SnackbarContent.js +3 -3
- package/SpeedDialAction/SpeedDialAction.js +7 -7
- package/Stack/Stack.js +1 -1
- package/StepConnector/StepConnector.js +14 -11
- package/StepContent/StepContent.js +1 -1
- package/StepIcon/StepIcon.js +2 -1
- package/Switch/Switch.js +11 -11
- package/Tab/Tab.d.ts +0 -1
- package/TableCell/TableCell.js +5 -5
- package/Tabs/Tabs.js +16 -2
- package/Tooltip/Tooltip.js +1 -1
- package/index.js +1 -1
- package/legacy/Alert/Alert.js +19 -11
- package/legacy/AppBar/AppBar.js +23 -4
- package/legacy/Avatar/Avatar.js +7 -4
- package/legacy/Badge/Badge.js +2 -2
- package/legacy/Button/buttonClasses.js +1 -1
- package/legacy/Chip/Chip.js +31 -30
- package/legacy/Dialog/Dialog.js +11 -6
- package/legacy/FilledInput/FilledInput.js +28 -14
- package/legacy/Grid/Grid.js +97 -48
- package/legacy/Grow/Grow.js +1 -2
- package/legacy/Hidden/withWidth.js +0 -2
- package/legacy/Input/Input.js +1 -1
- package/legacy/InputBase/InputBase.js +2 -2
- package/legacy/LinearProgress/LinearProgress.js +6 -2
- package/legacy/Link/Link.js +10 -17
- package/legacy/Link/getTextDecoration.js +28 -0
- package/legacy/Modal/Modal.js +23 -7
- package/legacy/OutlinedInput/OutlinedInput.js +36 -9
- package/legacy/Popover/index.js +1 -0
- package/legacy/Skeleton/Skeleton.js +2 -2
- package/legacy/Slider/Slider.js +24 -22
- package/legacy/Snackbar/Snackbar.js +6 -21
- package/legacy/SnackbarContent/SnackbarContent.js +3 -3
- package/legacy/SpeedDialAction/SpeedDialAction.js +7 -7
- package/legacy/Stack/Stack.js +2 -1
- package/legacy/StepConnector/StepConnector.js +2 -1
- package/legacy/StepContent/StepContent.js +1 -1
- package/legacy/StepIcon/StepIcon.js +2 -1
- package/legacy/Switch/Switch.js +11 -11
- package/legacy/TableCell/TableCell.js +5 -5
- package/legacy/Tabs/Tabs.js +16 -2
- package/legacy/Tooltip/Tooltip.js +1 -1
- package/legacy/index.js +1 -1
- package/legacy/styles/CssVarsProvider.js +4 -2
- package/legacy/styles/experimental_extendTheme.js +153 -18
- package/modern/Alert/Alert.js +19 -11
- package/modern/AppBar/AppBar.js +22 -5
- package/modern/Avatar/Avatar.js +7 -4
- package/modern/Badge/Badge.js +2 -2
- package/modern/Button/buttonClasses.js +1 -1
- package/modern/Chip/Chip.js +31 -30
- package/modern/Dialog/Dialog.js +11 -6
- package/modern/FilledInput/FilledInput.js +27 -12
- package/modern/Grid/Grid.js +94 -40
- package/modern/Grow/Grow.js +1 -2
- package/modern/Hidden/withWidth.js +0 -2
- package/modern/Input/Input.js +1 -1
- package/modern/InputBase/InputBase.js +2 -2
- package/modern/LinearProgress/LinearProgress.js +6 -2
- package/modern/Link/Link.js +10 -17
- package/modern/Link/getTextDecoration.js +29 -0
- package/modern/Modal/Modal.js +24 -7
- package/modern/OutlinedInput/OutlinedInput.js +40 -10
- package/modern/Popover/index.js +1 -0
- package/modern/Skeleton/Skeleton.js +7 -2
- package/modern/Slider/Slider.js +24 -22
- package/modern/Snackbar/Snackbar.js +6 -20
- package/modern/SnackbarContent/SnackbarContent.js +3 -3
- package/modern/SpeedDialAction/SpeedDialAction.js +7 -7
- package/modern/Stack/Stack.js +1 -1
- package/modern/StepConnector/StepConnector.js +14 -11
- package/modern/StepContent/StepContent.js +1 -1
- package/modern/StepIcon/StepIcon.js +2 -1
- package/modern/Switch/Switch.js +11 -11
- package/modern/TableCell/TableCell.js +5 -5
- package/modern/Tabs/Tabs.js +16 -2
- package/modern/Tooltip/Tooltip.js +1 -1
- package/modern/index.js +1 -1
- package/modern/styles/CssVarsProvider.js +2 -2
- package/modern/styles/experimental_extendTheme.js +154 -18
- package/node/Alert/Alert.js +19 -11
- package/node/AppBar/AppBar.js +22 -5
- package/node/Avatar/Avatar.js +7 -4
- package/node/Badge/Badge.js +2 -2
- package/node/Button/buttonClasses.js +1 -1
- package/node/Chip/Chip.js +31 -30
- package/node/Dialog/Dialog.js +11 -6
- package/node/FilledInput/FilledInput.js +28 -13
- package/node/Grid/Grid.js +95 -40
- package/node/Grow/Grow.js +1 -2
- package/node/Hidden/withWidth.js +0 -3
- package/node/Input/Input.js +1 -1
- package/node/InputBase/InputBase.js +2 -2
- package/node/LinearProgress/LinearProgress.js +6 -2
- package/node/Link/Link.js +12 -20
- package/node/Link/getTextDecoration.js +39 -0
- package/node/Modal/Modal.js +25 -8
- package/node/OutlinedInput/OutlinedInput.js +38 -10
- package/node/Popover/index.js +13 -3
- package/node/Skeleton/Skeleton.js +7 -2
- package/node/Slider/Slider.js +24 -22
- package/node/Snackbar/Snackbar.js +6 -18
- package/node/SnackbarContent/SnackbarContent.js +3 -3
- package/node/SpeedDialAction/SpeedDialAction.js +7 -7
- package/node/Stack/Stack.js +1 -1
- package/node/StepConnector/StepConnector.js +14 -11
- package/node/StepContent/StepContent.js +1 -1
- package/node/StepIcon/StepIcon.js +2 -1
- package/node/Switch/Switch.js +11 -11
- package/node/TableCell/TableCell.js +5 -5
- package/node/Tabs/Tabs.js +16 -2
- package/node/Tooltip/Tooltip.js +1 -1
- package/node/index.js +1 -1
- package/node/styles/CssVarsProvider.js +6 -2
- package/node/styles/experimental_extendTheme.js +152 -17
- package/package.json +6 -7
- package/styles/CssVarsProvider.d.ts +10 -28
- package/styles/CssVarsProvider.js +6 -2
- package/styles/createPalette.d.ts +0 -26
- package/styles/experimental_extendTheme.d.ts +225 -37
- package/styles/experimental_extendTheme.js +154 -18
- package/styles/index.d.ts +24 -1
- package/themeCssVarsAugmentation/index.d.ts +61 -0
- package/umd/material-ui.development.js +1048 -541
- package/umd/material-ui.production.min.js +27 -22
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MUI v5.8.
|
|
1
|
+
/** @license MUI v5.8.6
|
|
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.
|
|
@@ -1330,32 +1330,6 @@
|
|
|
1330
1330
|
var reactIs_5 = reactIs.Memo;
|
|
1331
1331
|
reactIs.isValidElementType;
|
|
1332
1332
|
|
|
1333
|
-
/**
|
|
1334
|
-
* Copyright 2015, Yahoo! Inc.
|
|
1335
|
-
* Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
|
|
1336
|
-
*/
|
|
1337
|
-
var REACT_STATICS = {
|
|
1338
|
-
childContextTypes: true,
|
|
1339
|
-
contextType: true,
|
|
1340
|
-
contextTypes: true,
|
|
1341
|
-
defaultProps: true,
|
|
1342
|
-
displayName: true,
|
|
1343
|
-
getDefaultProps: true,
|
|
1344
|
-
getDerivedStateFromError: true,
|
|
1345
|
-
getDerivedStateFromProps: true,
|
|
1346
|
-
mixins: true,
|
|
1347
|
-
propTypes: true,
|
|
1348
|
-
type: true
|
|
1349
|
-
};
|
|
1350
|
-
var KNOWN_STATICS = {
|
|
1351
|
-
name: true,
|
|
1352
|
-
length: true,
|
|
1353
|
-
prototype: true,
|
|
1354
|
-
caller: true,
|
|
1355
|
-
callee: true,
|
|
1356
|
-
arguments: true,
|
|
1357
|
-
arity: true
|
|
1358
|
-
};
|
|
1359
1333
|
var FORWARD_REF_STATICS = {
|
|
1360
1334
|
'$$typeof': true,
|
|
1361
1335
|
render: true,
|
|
@@ -1375,61 +1349,6 @@
|
|
|
1375
1349
|
TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
|
|
1376
1350
|
TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
|
|
1377
1351
|
|
|
1378
|
-
function getStatics(component) {
|
|
1379
|
-
// React v16.11 and below
|
|
1380
|
-
if (reactIs.isMemo(component)) {
|
|
1381
|
-
return MEMO_STATICS;
|
|
1382
|
-
} // React v16.12 and above
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
return TYPE_STATICS[component['$$typeof']] || REACT_STATICS;
|
|
1386
|
-
}
|
|
1387
|
-
|
|
1388
|
-
var defineProperty = Object.defineProperty;
|
|
1389
|
-
var getOwnPropertyNames = Object.getOwnPropertyNames;
|
|
1390
|
-
var getOwnPropertySymbols$1 = Object.getOwnPropertySymbols;
|
|
1391
|
-
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
1392
|
-
var getPrototypeOf = Object.getPrototypeOf;
|
|
1393
|
-
var objectPrototype = Object.prototype;
|
|
1394
|
-
function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
|
|
1395
|
-
if (typeof sourceComponent !== 'string') {
|
|
1396
|
-
// don't hoist over string (html) components
|
|
1397
|
-
if (objectPrototype) {
|
|
1398
|
-
var inheritedComponent = getPrototypeOf(sourceComponent);
|
|
1399
|
-
|
|
1400
|
-
if (inheritedComponent && inheritedComponent !== objectPrototype) {
|
|
1401
|
-
hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);
|
|
1402
|
-
}
|
|
1403
|
-
}
|
|
1404
|
-
|
|
1405
|
-
var keys = getOwnPropertyNames(sourceComponent);
|
|
1406
|
-
|
|
1407
|
-
if (getOwnPropertySymbols$1) {
|
|
1408
|
-
keys = keys.concat(getOwnPropertySymbols$1(sourceComponent));
|
|
1409
|
-
}
|
|
1410
|
-
|
|
1411
|
-
var targetStatics = getStatics(targetComponent);
|
|
1412
|
-
var sourceStatics = getStatics(sourceComponent);
|
|
1413
|
-
|
|
1414
|
-
for (var i = 0; i < keys.length; ++i) {
|
|
1415
|
-
var key = keys[i];
|
|
1416
|
-
|
|
1417
|
-
if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {
|
|
1418
|
-
var descriptor = getOwnPropertyDescriptor(sourceComponent, key);
|
|
1419
|
-
|
|
1420
|
-
try {
|
|
1421
|
-
// Avoid failures from read-only properties
|
|
1422
|
-
defineProperty(targetComponent, key, descriptor);
|
|
1423
|
-
} catch (e) {}
|
|
1424
|
-
}
|
|
1425
|
-
}
|
|
1426
|
-
}
|
|
1427
|
-
|
|
1428
|
-
return targetComponent;
|
|
1429
|
-
}
|
|
1430
|
-
|
|
1431
|
-
var hoistNonReactStatics_cjs = hoistNonReactStatics;
|
|
1432
|
-
|
|
1433
1352
|
var isBrowser$4 = typeof document !== 'undefined';
|
|
1434
1353
|
function getRegisteredStyles(registered, registeredStyles, classNames) {
|
|
1435
1354
|
var rawClassName = '';
|
|
@@ -4705,7 +4624,7 @@
|
|
|
4705
4624
|
injectFirst: PropTypes.bool
|
|
4706
4625
|
} ;
|
|
4707
4626
|
|
|
4708
|
-
function isEmpty$
|
|
4627
|
+
function isEmpty$4(obj) {
|
|
4709
4628
|
return obj === undefined || obj === null || Object.keys(obj).length === 0;
|
|
4710
4629
|
}
|
|
4711
4630
|
|
|
@@ -4714,7 +4633,7 @@
|
|
|
4714
4633
|
styles,
|
|
4715
4634
|
defaultTheme = {}
|
|
4716
4635
|
} = props;
|
|
4717
|
-
const globalStyles = typeof styles === 'function' ? themeInput => styles(isEmpty$
|
|
4636
|
+
const globalStyles = typeof styles === 'function' ? themeInput => styles(isEmpty$4(themeInput) ? defaultTheme : themeInput) : styles;
|
|
4718
4637
|
return /*#__PURE__*/jsxRuntime_1(Global, {
|
|
4719
4638
|
styles: globalStyles
|
|
4720
4639
|
});
|
|
@@ -4793,7 +4712,7 @@
|
|
|
4793
4712
|
|
|
4794
4713
|
if (element == null || // When server-side rendering React doesn't warn either.
|
|
4795
4714
|
// This is not an accurate check for SSR.
|
|
4796
|
-
// This is only in place for
|
|
4715
|
+
// This is only in place for Emotion compat.
|
|
4797
4716
|
// TODO: Revisit once https://github.com/facebook/react/issues/20047 is resolved.
|
|
4798
4717
|
typeof window === 'undefined') {
|
|
4799
4718
|
return null;
|
|
@@ -5545,7 +5464,12 @@
|
|
|
5545
5464
|
return requiredInteger(props, propName, ...other);
|
|
5546
5465
|
}
|
|
5547
5466
|
|
|
5467
|
+
function validatorNoop() {
|
|
5468
|
+
return null;
|
|
5469
|
+
}
|
|
5470
|
+
|
|
5548
5471
|
validator.isRequired = requiredInteger;
|
|
5472
|
+
validatorNoop.isRequired = validatorNoop;
|
|
5549
5473
|
var integerPropType = validator;
|
|
5550
5474
|
|
|
5551
5475
|
/**
|
|
@@ -5609,26 +5533,26 @@
|
|
|
5609
5533
|
var ClassNameGenerator$1 = ClassNameGenerator;
|
|
5610
5534
|
|
|
5611
5535
|
const globalStateClassesMapping = {
|
|
5612
|
-
active: '
|
|
5613
|
-
checked: '
|
|
5614
|
-
completed: '
|
|
5615
|
-
disabled: '
|
|
5616
|
-
error: '
|
|
5617
|
-
expanded: '
|
|
5618
|
-
focused: '
|
|
5619
|
-
focusVisible: '
|
|
5620
|
-
required: '
|
|
5621
|
-
selected: '
|
|
5622
|
-
};
|
|
5623
|
-
function generateUtilityClass(componentName, slot) {
|
|
5536
|
+
active: 'active',
|
|
5537
|
+
checked: 'checked',
|
|
5538
|
+
completed: 'completed',
|
|
5539
|
+
disabled: 'disabled',
|
|
5540
|
+
error: 'error',
|
|
5541
|
+
expanded: 'expanded',
|
|
5542
|
+
focused: 'focused',
|
|
5543
|
+
focusVisible: 'focusVisible',
|
|
5544
|
+
required: 'required',
|
|
5545
|
+
selected: 'selected'
|
|
5546
|
+
};
|
|
5547
|
+
function generateUtilityClass(componentName, slot, globalStatePrefix = 'Mui') {
|
|
5624
5548
|
const globalStateClass = globalStateClassesMapping[slot];
|
|
5625
|
-
return globalStateClass
|
|
5549
|
+
return globalStateClass ? `${globalStatePrefix}-${globalStateClass}` : `${ClassNameGenerator$1.generate(componentName)}-${slot}`;
|
|
5626
5550
|
}
|
|
5627
5551
|
|
|
5628
|
-
function generateUtilityClasses(componentName, slots) {
|
|
5552
|
+
function generateUtilityClasses(componentName, slots, globalStatePrefix = 'Mui') {
|
|
5629
5553
|
const result = {};
|
|
5630
5554
|
slots.forEach(slot => {
|
|
5631
|
-
result[slot] = generateUtilityClass(componentName, slot);
|
|
5555
|
+
result[slot] = generateUtilityClass(componentName, slot, globalStatePrefix);
|
|
5632
5556
|
});
|
|
5633
5557
|
return result;
|
|
5634
5558
|
}
|
|
@@ -5762,9 +5686,11 @@
|
|
|
5762
5686
|
if (Array.isArray(breakpointValues)) {
|
|
5763
5687
|
acc[breakpoint] = breakpointValues[i] != null ? breakpointValues[i] : breakpointValues[previous];
|
|
5764
5688
|
previous = i;
|
|
5765
|
-
} else {
|
|
5766
|
-
acc[breakpoint] = breakpointValues[breakpoint] != null ? breakpointValues[breakpoint] : breakpointValues[previous]
|
|
5689
|
+
} else if (typeof breakpointValues === 'object') {
|
|
5690
|
+
acc[breakpoint] = breakpointValues[breakpoint] != null ? breakpointValues[breakpoint] : breakpointValues[previous];
|
|
5767
5691
|
previous = breakpoint;
|
|
5692
|
+
} else {
|
|
5693
|
+
acc[breakpoint] = breakpointValues;
|
|
5768
5694
|
}
|
|
5769
5695
|
|
|
5770
5696
|
return acc;
|
|
@@ -6468,7 +6394,7 @@
|
|
|
6468
6394
|
} = props || {};
|
|
6469
6395
|
|
|
6470
6396
|
if (!sx) {
|
|
6471
|
-
return null; //
|
|
6397
|
+
return null; // Emotion & styled-components will neglect null
|
|
6472
6398
|
}
|
|
6473
6399
|
/*
|
|
6474
6400
|
* Receive `sxInput` as object or callback
|
|
@@ -6534,7 +6460,7 @@
|
|
|
6534
6460
|
styleFunctionSx.filterProps = ['sx'];
|
|
6535
6461
|
var defaultStyleFunctionSx = styleFunctionSx;
|
|
6536
6462
|
|
|
6537
|
-
const _excluded$
|
|
6463
|
+
const _excluded$2m = ["sx"];
|
|
6538
6464
|
|
|
6539
6465
|
const splitProps = props => {
|
|
6540
6466
|
const result = {
|
|
@@ -6555,7 +6481,7 @@
|
|
|
6555
6481
|
const {
|
|
6556
6482
|
sx: inSx
|
|
6557
6483
|
} = props,
|
|
6558
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
6484
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$2m);
|
|
6559
6485
|
|
|
6560
6486
|
const {
|
|
6561
6487
|
systemProps,
|
|
@@ -6634,7 +6560,7 @@
|
|
|
6634
6560
|
return str;
|
|
6635
6561
|
}
|
|
6636
6562
|
|
|
6637
|
-
const _excluded$
|
|
6563
|
+
const _excluded$2l = ["values", "unit", "step"];
|
|
6638
6564
|
|
|
6639
6565
|
const sortBreakpointsValues = values => {
|
|
6640
6566
|
const breakpointsAsArray = Object.keys(values).map(key => ({
|
|
@@ -6670,7 +6596,7 @@
|
|
|
6670
6596
|
unit = 'px',
|
|
6671
6597
|
step = 5
|
|
6672
6598
|
} = breakpoints,
|
|
6673
|
-
other = _objectWithoutPropertiesLoose(breakpoints, _excluded$
|
|
6599
|
+
other = _objectWithoutPropertiesLoose(breakpoints, _excluded$2l);
|
|
6674
6600
|
|
|
6675
6601
|
const sortedValues = sortBreakpointsValues(values);
|
|
6676
6602
|
const keys = Object.keys(sortedValues);
|
|
@@ -6762,7 +6688,7 @@
|
|
|
6762
6688
|
return spacing;
|
|
6763
6689
|
}
|
|
6764
6690
|
|
|
6765
|
-
const _excluded$
|
|
6691
|
+
const _excluded$2k = ["breakpoints", "palette", "spacing", "shape"];
|
|
6766
6692
|
|
|
6767
6693
|
function createTheme$1(options = {}, ...args) {
|
|
6768
6694
|
const {
|
|
@@ -6771,7 +6697,7 @@
|
|
|
6771
6697
|
spacing: spacingInput,
|
|
6772
6698
|
shape: shapeInput = {}
|
|
6773
6699
|
} = options,
|
|
6774
|
-
other = _objectWithoutPropertiesLoose(options, _excluded$
|
|
6700
|
+
other = _objectWithoutPropertiesLoose(options, _excluded$2k);
|
|
6775
6701
|
|
|
6776
6702
|
const breakpoints = createBreakpoints(breakpointsInput);
|
|
6777
6703
|
const spacing = createSpacing(spacingInput);
|
|
@@ -6893,7 +6819,7 @@
|
|
|
6893
6819
|
return useTheme$2(defaultTheme);
|
|
6894
6820
|
}
|
|
6895
6821
|
|
|
6896
|
-
const _excluded$
|
|
6822
|
+
const _excluded$2j = ["className", "component"];
|
|
6897
6823
|
function createBox(options = {}) {
|
|
6898
6824
|
const {
|
|
6899
6825
|
defaultTheme,
|
|
@@ -6910,7 +6836,7 @@
|
|
|
6910
6836
|
className,
|
|
6911
6837
|
component = 'div'
|
|
6912
6838
|
} = _extendSxProp,
|
|
6913
|
-
other = _objectWithoutPropertiesLoose(_extendSxProp, _excluded$
|
|
6839
|
+
other = _objectWithoutPropertiesLoose(_extendSxProp, _excluded$2j);
|
|
6914
6840
|
|
|
6915
6841
|
return /*#__PURE__*/jsxRuntime_1(BoxRoot, _extends({
|
|
6916
6842
|
as: component,
|
|
@@ -6922,9 +6848,9 @@
|
|
|
6922
6848
|
return Box;
|
|
6923
6849
|
}
|
|
6924
6850
|
|
|
6925
|
-
const _excluded$
|
|
6851
|
+
const _excluded$2i = ["variant"];
|
|
6926
6852
|
|
|
6927
|
-
function isEmpty$
|
|
6853
|
+
function isEmpty$3(string) {
|
|
6928
6854
|
return string.length === 0;
|
|
6929
6855
|
}
|
|
6930
6856
|
/**
|
|
@@ -6938,24 +6864,24 @@
|
|
|
6938
6864
|
const {
|
|
6939
6865
|
variant
|
|
6940
6866
|
} = props,
|
|
6941
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
6867
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$2i);
|
|
6942
6868
|
|
|
6943
6869
|
let classKey = variant || '';
|
|
6944
6870
|
Object.keys(other).sort().forEach(key => {
|
|
6945
6871
|
if (key === 'color') {
|
|
6946
|
-
classKey += isEmpty$
|
|
6872
|
+
classKey += isEmpty$3(classKey) ? props[key] : capitalize(props[key]);
|
|
6947
6873
|
} else {
|
|
6948
|
-
classKey += `${isEmpty$
|
|
6874
|
+
classKey += `${isEmpty$3(classKey) ? key : capitalize(key)}${capitalize(props[key].toString())}`;
|
|
6949
6875
|
}
|
|
6950
6876
|
});
|
|
6951
6877
|
return classKey;
|
|
6952
6878
|
}
|
|
6953
6879
|
|
|
6954
|
-
const _excluded$
|
|
6880
|
+
const _excluded$2h = ["name", "slot", "skipVariantsResolver", "skipSx", "overridesResolver"],
|
|
6955
6881
|
_excluded2$c = ["theme"],
|
|
6956
6882
|
_excluded3$1 = ["theme"];
|
|
6957
6883
|
|
|
6958
|
-
function isEmpty$
|
|
6884
|
+
function isEmpty$2(obj) {
|
|
6959
6885
|
return Object.keys(obj).length === 0;
|
|
6960
6886
|
}
|
|
6961
6887
|
|
|
@@ -7034,7 +6960,7 @@
|
|
|
7034
6960
|
skipSx: inputSkipSx,
|
|
7035
6961
|
overridesResolver
|
|
7036
6962
|
} = inputOptions,
|
|
7037
|
-
options = _objectWithoutPropertiesLoose(inputOptions, _excluded$
|
|
6963
|
+
options = _objectWithoutPropertiesLoose(inputOptions, _excluded$2h); // if skipVariantsResolver option is defined, take the value, otherwise, true for root and false for other slots.
|
|
7038
6964
|
|
|
7039
6965
|
|
|
7040
6966
|
const skipVariantsResolver = inputSkipVariantsResolver !== undefined ? inputSkipVariantsResolver : componentSlot && componentSlot !== 'Root' || false;
|
|
@@ -7063,7 +6989,7 @@
|
|
|
7063
6989
|
|
|
7064
6990
|
const muiStyledResolver = (styleArg, ...expressions) => {
|
|
7065
6991
|
const expressionsWithDefaultTheme = expressions ? expressions.map(stylesArg => {
|
|
7066
|
-
// On the server
|
|
6992
|
+
// On the server Emotion doesn't use React.forwardRef for creating components, so the created
|
|
7067
6993
|
// component stays as a function. This condition makes sure that we do not interpolate functions
|
|
7068
6994
|
// which are basically components used as a selectors.
|
|
7069
6995
|
// eslint-disable-next-line no-underscore-dangle
|
|
@@ -7074,7 +7000,7 @@
|
|
|
7074
7000
|
other = _objectWithoutPropertiesLoose(_ref, _excluded2$c);
|
|
7075
7001
|
|
|
7076
7002
|
return stylesArg(_extends({
|
|
7077
|
-
theme: isEmpty$
|
|
7003
|
+
theme: isEmpty$2(themeInput) ? defaultTheme : themeInput
|
|
7078
7004
|
}, other));
|
|
7079
7005
|
} : stylesArg;
|
|
7080
7006
|
}) : [];
|
|
@@ -7082,7 +7008,7 @@
|
|
|
7082
7008
|
|
|
7083
7009
|
if (componentName && overridesResolver) {
|
|
7084
7010
|
expressionsWithDefaultTheme.push(props => {
|
|
7085
|
-
const theme = isEmpty$
|
|
7011
|
+
const theme = isEmpty$2(props.theme) ? defaultTheme : props.theme;
|
|
7086
7012
|
const styleOverrides = getStyleOverrides(componentName, theme);
|
|
7087
7013
|
|
|
7088
7014
|
if (styleOverrides) {
|
|
@@ -7101,14 +7027,14 @@
|
|
|
7101
7027
|
|
|
7102
7028
|
if (componentName && !skipVariantsResolver) {
|
|
7103
7029
|
expressionsWithDefaultTheme.push(props => {
|
|
7104
|
-
const theme = isEmpty$
|
|
7030
|
+
const theme = isEmpty$2(props.theme) ? defaultTheme : props.theme;
|
|
7105
7031
|
return variantsResolver(props, getVariantStyles(componentName, theme), theme, componentName);
|
|
7106
7032
|
});
|
|
7107
7033
|
}
|
|
7108
7034
|
|
|
7109
7035
|
if (!skipSx) {
|
|
7110
7036
|
expressionsWithDefaultTheme.push(props => {
|
|
7111
|
-
const theme = isEmpty$
|
|
7037
|
+
const theme = isEmpty$2(props.theme) ? defaultTheme : props.theme;
|
|
7112
7038
|
return styleFunctionSx(_extends({}, props, {
|
|
7113
7039
|
theme
|
|
7114
7040
|
}));
|
|
@@ -7122,7 +7048,7 @@
|
|
|
7122
7048
|
|
|
7123
7049
|
transformedStyleArg = [...styleArg, ...placeholders];
|
|
7124
7050
|
transformedStyleArg.raw = [...styleArg.raw, ...placeholders];
|
|
7125
|
-
} else if (typeof styleArg === 'function' && // On the server
|
|
7051
|
+
} else if (typeof styleArg === 'function' && // On the server Emotion doesn't use React.forwardRef for creating components, so the created
|
|
7126
7052
|
// component stays as a function. This condition makes sure that we do not interpolate functions
|
|
7127
7053
|
// which are basically components used as a selectors.
|
|
7128
7054
|
// eslint-disable-next-line no-underscore-dangle
|
|
@@ -7135,7 +7061,7 @@
|
|
|
7135
7061
|
other = _objectWithoutPropertiesLoose(_ref2, _excluded3$1);
|
|
7136
7062
|
|
|
7137
7063
|
return styleArg(_extends({
|
|
7138
|
-
theme: isEmpty$
|
|
7064
|
+
theme: isEmpty$2(themeInput) ? defaultTheme : themeInput
|
|
7139
7065
|
}, other));
|
|
7140
7066
|
};
|
|
7141
7067
|
}
|
|
@@ -7243,7 +7169,7 @@
|
|
|
7243
7169
|
* Returns an object with the type and values of a color.
|
|
7244
7170
|
*
|
|
7245
7171
|
* Note: Does not support rgb % values.
|
|
7246
|
-
* @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
|
|
7172
|
+
* @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()
|
|
7247
7173
|
* @returns {object} - A MUI color object: {type: string, values: number[]}
|
|
7248
7174
|
*/
|
|
7249
7175
|
|
|
@@ -7295,7 +7221,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
7295
7221
|
/**
|
|
7296
7222
|
* Returns a channel created from the input color.
|
|
7297
7223
|
*
|
|
7298
|
-
* @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
|
|
7224
|
+
* @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()
|
|
7299
7225
|
* @returns {string} - The channel for the color, that can be used in rgba or hsla colors
|
|
7300
7226
|
*/
|
|
7301
7227
|
|
|
@@ -7306,7 +7232,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
7306
7232
|
/**
|
|
7307
7233
|
* Converts a color object with type and values to a string.
|
|
7308
7234
|
* @param {object} color - Decomposed color
|
|
7309
|
-
* @param {string} color.type - One of: 'rgb', 'rgba', 'hsl', 'hsla'
|
|
7235
|
+
* @param {string} color.type - One of: 'rgb', 'rgba', 'hsl', 'hsla', 'color'
|
|
7310
7236
|
* @param {array} color.values - [n,n,n] or [n,n,n,n]
|
|
7311
7237
|
* @returns {string} A CSS color string
|
|
7312
7238
|
*/
|
|
@@ -7716,6 +7642,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
7716
7642
|
const DEFAULT_ATTRIBUTE = 'data-color-scheme';
|
|
7717
7643
|
function getInitColorSchemeScript$1(options) {
|
|
7718
7644
|
const {
|
|
7645
|
+
enableColorScheme = true,
|
|
7719
7646
|
enableSystem = false,
|
|
7720
7647
|
defaultLightColorScheme = 'light',
|
|
7721
7648
|
defaultDarkColorScheme = 'dark',
|
|
@@ -7729,13 +7656,16 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
7729
7656
|
dangerouslySetInnerHTML: {
|
|
7730
7657
|
__html: `(function() { try {
|
|
7731
7658
|
var mode = localStorage.getItem('${modeStorageKey}');
|
|
7659
|
+
var cssColorScheme = mode;
|
|
7732
7660
|
var colorScheme = '';
|
|
7733
7661
|
if (mode === 'system' || (!mode && !!${enableSystem})) {
|
|
7734
7662
|
// handle system mode
|
|
7735
7663
|
var mql = window.matchMedia('(prefers-color-scheme: dark)');
|
|
7736
7664
|
if (mql.matches) {
|
|
7665
|
+
cssColorScheme = 'dark';
|
|
7737
7666
|
colorScheme = localStorage.getItem('${colorSchemeStorageKey}-dark') || '${defaultDarkColorScheme}';
|
|
7738
7667
|
} else {
|
|
7668
|
+
cssColorScheme = 'light';
|
|
7739
7669
|
colorScheme = localStorage.getItem('${colorSchemeStorageKey}-light') || '${defaultLightColorScheme}';
|
|
7740
7670
|
}
|
|
7741
7671
|
}
|
|
@@ -7748,6 +7678,9 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
7748
7678
|
if (colorScheme) {
|
|
7749
7679
|
${colorSchemeNode}.setAttribute('${attribute}', colorScheme);
|
|
7750
7680
|
}
|
|
7681
|
+
if (${enableColorScheme} && !!cssColorScheme) {
|
|
7682
|
+
${colorSchemeNode}.style.setProperty('color-scheme', cssColorScheme);
|
|
7683
|
+
}
|
|
7751
7684
|
} catch (e) {} })();`
|
|
7752
7685
|
}
|
|
7753
7686
|
});
|
|
@@ -8005,7 +7938,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8005
7938
|
return getCssVar;
|
|
8006
7939
|
}
|
|
8007
7940
|
|
|
8008
|
-
const _excluded$
|
|
7941
|
+
const _excluded$2g = ["colorSchemes", "components"];
|
|
8009
7942
|
const DISABLE_CSS_TRANSITION = '*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}';
|
|
8010
7943
|
function createCssVarsProvider(options) {
|
|
8011
7944
|
const {
|
|
@@ -8060,7 +7993,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8060
7993
|
colorSchemes = {},
|
|
8061
7994
|
components = {}
|
|
8062
7995
|
} = themeProp,
|
|
8063
|
-
restThemeProp = _objectWithoutPropertiesLoose(themeProp, _excluded$
|
|
7996
|
+
restThemeProp = _objectWithoutPropertiesLoose(themeProp, _excluded$2g);
|
|
8064
7997
|
|
|
8065
7998
|
const allColorSchemes = Object.keys(colorSchemes);
|
|
8066
7999
|
const defaultLightColorScheme = typeof defaultColorScheme === 'string' ? defaultColorScheme : defaultColorScheme.light;
|
|
@@ -8307,7 +8240,8 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8307
8240
|
const getInitColorSchemeScript = params => getInitColorSchemeScript$1(_extends({
|
|
8308
8241
|
attribute: defaultAttribute,
|
|
8309
8242
|
colorSchemeStorageKey: defaultColorSchemeStorageKey,
|
|
8310
|
-
modeStorageKey: defaultModeStorageKey
|
|
8243
|
+
modeStorageKey: defaultModeStorageKey,
|
|
8244
|
+
enableColorScheme: designSystemEnableColorScheme
|
|
8311
8245
|
}, params));
|
|
8312
8246
|
|
|
8313
8247
|
return {
|
|
@@ -8317,7 +8251,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8317
8251
|
};
|
|
8318
8252
|
}
|
|
8319
8253
|
|
|
8320
|
-
const _excluded$
|
|
8254
|
+
const _excluded$2f = ["className", "component", "disableGutters", "fixed", "maxWidth", "classes"];
|
|
8321
8255
|
const defaultTheme$4 = createTheme$1();
|
|
8322
8256
|
const defaultCreateStyledComponent = systemStyled('div', {
|
|
8323
8257
|
name: 'MuiContainer',
|
|
@@ -8419,7 +8353,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8419
8353
|
fixed = false,
|
|
8420
8354
|
maxWidth = 'lg'
|
|
8421
8355
|
} = props,
|
|
8422
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
8356
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$2f);
|
|
8423
8357
|
|
|
8424
8358
|
const ownerState = _extends({}, props, {
|
|
8425
8359
|
component,
|
|
@@ -8459,7 +8393,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8459
8393
|
return Container;
|
|
8460
8394
|
}
|
|
8461
8395
|
|
|
8462
|
-
const _excluded$
|
|
8396
|
+
const _excluded$2e = ["defaultProps", "mixins", "overrides", "palette", "props", "styleOverrides"],
|
|
8463
8397
|
_excluded2$b = ["type", "mode"];
|
|
8464
8398
|
function adaptV4Theme(inputTheme) {
|
|
8465
8399
|
{
|
|
@@ -8474,7 +8408,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8474
8408
|
props = {},
|
|
8475
8409
|
styleOverrides = {}
|
|
8476
8410
|
} = inputTheme,
|
|
8477
|
-
other = _objectWithoutPropertiesLoose(inputTheme, _excluded$
|
|
8411
|
+
other = _objectWithoutPropertiesLoose(inputTheme, _excluded$2e);
|
|
8478
8412
|
|
|
8479
8413
|
const theme = _extends({}, other, {
|
|
8480
8414
|
components: {}
|
|
@@ -8546,22 +8480,183 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8546
8480
|
return typeof element === 'string';
|
|
8547
8481
|
}
|
|
8548
8482
|
|
|
8483
|
+
/**
|
|
8484
|
+
* Type of the ownerState based on the type of an element it applies to.
|
|
8485
|
+
* This resolves to the provided OwnerState for React components and `undefined` for host components.
|
|
8486
|
+
* Falls back to `OwnerState | undefined` when the exact type can't be determined in development time.
|
|
8487
|
+
*/
|
|
8488
|
+
|
|
8549
8489
|
/**
|
|
8550
8490
|
* Appends the ownerState object to the props, merging with the existing one if necessary.
|
|
8551
8491
|
*
|
|
8552
|
-
* @param elementType Type of the element that owns the `existingProps`. If the element is a DOM node, `ownerState`
|
|
8553
|
-
* @param
|
|
8492
|
+
* @param elementType Type of the element that owns the `existingProps`. If the element is a DOM node, `ownerState` is not applied.
|
|
8493
|
+
* @param otherProps Props of the element.
|
|
8554
8494
|
* @param ownerState
|
|
8555
8495
|
*/
|
|
8556
|
-
|
|
8557
|
-
function appendOwnerState(elementType, existingProps = {}, ownerState) {
|
|
8496
|
+
function appendOwnerState(elementType, otherProps = {}, ownerState) {
|
|
8558
8497
|
if (isHostComponent(elementType)) {
|
|
8559
|
-
return
|
|
8498
|
+
return otherProps;
|
|
8499
|
+
}
|
|
8500
|
+
|
|
8501
|
+
return _extends({}, otherProps, {
|
|
8502
|
+
ownerState: _extends({}, otherProps.ownerState, ownerState)
|
|
8503
|
+
});
|
|
8504
|
+
}
|
|
8505
|
+
|
|
8506
|
+
/**
|
|
8507
|
+
* Extracts event handlers from a given object.
|
|
8508
|
+
* A prop is considered an event handler if it is a function and its name starts with `on`.
|
|
8509
|
+
*
|
|
8510
|
+
* @param object An object to extract event handlers from.
|
|
8511
|
+
* @param excludeKeys An array of keys to exclude from the returned object.
|
|
8512
|
+
*/
|
|
8513
|
+
function extractEventHandlers(object, excludeKeys = []) {
|
|
8514
|
+
if (object === undefined) {
|
|
8515
|
+
return {};
|
|
8516
|
+
}
|
|
8517
|
+
|
|
8518
|
+
const result = {};
|
|
8519
|
+
Object.keys(object).filter(prop => prop.match(/^on[A-Z]/) && typeof object[prop] === 'function' && !excludeKeys.includes(prop)).forEach(prop => {
|
|
8520
|
+
result[prop] = object[prop];
|
|
8521
|
+
});
|
|
8522
|
+
return result;
|
|
8523
|
+
}
|
|
8524
|
+
|
|
8525
|
+
/**
|
|
8526
|
+
* If `componentProps` is a function, calls it with the provided `ownerState`.
|
|
8527
|
+
* Otherwise, just returns `componentProps`.
|
|
8528
|
+
*/
|
|
8529
|
+
function resolveComponentProps(componentProps, ownerState) {
|
|
8530
|
+
if (typeof componentProps === 'function') {
|
|
8531
|
+
return componentProps(ownerState);
|
|
8532
|
+
}
|
|
8533
|
+
|
|
8534
|
+
return componentProps;
|
|
8535
|
+
}
|
|
8536
|
+
|
|
8537
|
+
/**
|
|
8538
|
+
* Creates a type that is T with removed properties that are functions with names beginning with `on`.
|
|
8539
|
+
* Note that it does not exactly follow the logic of `omitEventHandlers` as it also removes fields where
|
|
8540
|
+
* `on` is followed by a non-letter character,
|
|
8541
|
+
*/
|
|
8542
|
+
|
|
8543
|
+
/**
|
|
8544
|
+
* Removes event handlers from the given object.
|
|
8545
|
+
* A field is considered an event handler if it is a function with a name beginning with `on`.
|
|
8546
|
+
*
|
|
8547
|
+
* @param object Object to remove event handlers from.
|
|
8548
|
+
* @returns Object with event handlers removed.
|
|
8549
|
+
*/
|
|
8550
|
+
function omitEventHandlers(object) {
|
|
8551
|
+
if (object === undefined) {
|
|
8552
|
+
return {};
|
|
8560
8553
|
}
|
|
8561
8554
|
|
|
8562
|
-
|
|
8563
|
-
|
|
8555
|
+
const result = {};
|
|
8556
|
+
Object.keys(object).filter(prop => !(prop.match(/^on[A-Z]/) && typeof object[prop] === 'function')).forEach(prop => {
|
|
8557
|
+
result[prop] = object[prop];
|
|
8564
8558
|
});
|
|
8559
|
+
return result;
|
|
8560
|
+
}
|
|
8561
|
+
|
|
8562
|
+
/**
|
|
8563
|
+
* Merges the slot component internal props (usually coming from a hook)
|
|
8564
|
+
* with the externally provided ones.
|
|
8565
|
+
*
|
|
8566
|
+
* The merge order is (the latter overrides the former):
|
|
8567
|
+
* 1. The internal props (specified as a getter function to work with get*Props hook result)
|
|
8568
|
+
* 2. Additional props (specified internally on an unstyled component)
|
|
8569
|
+
* 3. External props specified on the owner component. These should only be used on a root slot.
|
|
8570
|
+
* 4. External props specified in the `componentsProps.*` prop.
|
|
8571
|
+
* 5. The `className` prop - combined from all the above.
|
|
8572
|
+
* @param parameters
|
|
8573
|
+
* @returns
|
|
8574
|
+
*/
|
|
8575
|
+
function mergeSlotProps(parameters) {
|
|
8576
|
+
const {
|
|
8577
|
+
getSlotProps,
|
|
8578
|
+
additionalProps,
|
|
8579
|
+
externalSlotProps,
|
|
8580
|
+
externalForwardedProps,
|
|
8581
|
+
className
|
|
8582
|
+
} = parameters;
|
|
8583
|
+
|
|
8584
|
+
if (!getSlotProps) {
|
|
8585
|
+
// The simpler case - getSlotProps is not defined, so no internal event handlers are defined,
|
|
8586
|
+
// so we can simply merge all the props without having to worry about extracting event handlers.
|
|
8587
|
+
const joinedClasses = clsx(externalForwardedProps == null ? void 0 : externalForwardedProps.className, externalSlotProps == null ? void 0 : externalSlotProps.className, className, additionalProps == null ? void 0 : additionalProps.className);
|
|
8588
|
+
|
|
8589
|
+
const mergedStyle = _extends({}, additionalProps == null ? void 0 : additionalProps.style, externalForwardedProps == null ? void 0 : externalForwardedProps.style, externalSlotProps == null ? void 0 : externalSlotProps.style);
|
|
8590
|
+
|
|
8591
|
+
const props = _extends({}, additionalProps, externalForwardedProps, externalSlotProps);
|
|
8592
|
+
|
|
8593
|
+
if (joinedClasses.length > 0) {
|
|
8594
|
+
props.className = joinedClasses;
|
|
8595
|
+
}
|
|
8596
|
+
|
|
8597
|
+
if (Object.keys(mergedStyle).length > 0) {
|
|
8598
|
+
props.style = mergedStyle;
|
|
8599
|
+
}
|
|
8600
|
+
|
|
8601
|
+
return {
|
|
8602
|
+
props,
|
|
8603
|
+
internalRef: undefined
|
|
8604
|
+
};
|
|
8605
|
+
} // In this case, getSlotProps is responsible for calling the external event handlers.
|
|
8606
|
+
// We don't need to include them in the merged props because of this.
|
|
8607
|
+
|
|
8608
|
+
|
|
8609
|
+
const eventHandlers = extractEventHandlers(_extends({}, externalForwardedProps, externalSlotProps));
|
|
8610
|
+
const componentsPropsWithoutEventHandlers = omitEventHandlers(externalSlotProps);
|
|
8611
|
+
const otherPropsWithoutEventHandlers = omitEventHandlers(externalForwardedProps);
|
|
8612
|
+
const internalSlotProps = getSlotProps(eventHandlers);
|
|
8613
|
+
const joinedClasses = clsx(externalForwardedProps == null ? void 0 : externalForwardedProps.className, externalSlotProps == null ? void 0 : externalSlotProps.className, className, additionalProps == null ? void 0 : additionalProps.className, internalSlotProps == null ? void 0 : internalSlotProps.className);
|
|
8614
|
+
|
|
8615
|
+
const mergedStyle = _extends({}, internalSlotProps == null ? void 0 : internalSlotProps.style, additionalProps == null ? void 0 : additionalProps.style, externalForwardedProps == null ? void 0 : externalForwardedProps.style, externalSlotProps == null ? void 0 : externalSlotProps.style);
|
|
8616
|
+
|
|
8617
|
+
const props = _extends({}, internalSlotProps, additionalProps, otherPropsWithoutEventHandlers, componentsPropsWithoutEventHandlers);
|
|
8618
|
+
|
|
8619
|
+
if (joinedClasses.length > 0) {
|
|
8620
|
+
props.className = joinedClasses;
|
|
8621
|
+
}
|
|
8622
|
+
|
|
8623
|
+
if (Object.keys(mergedStyle).length > 0) {
|
|
8624
|
+
props.style = mergedStyle;
|
|
8625
|
+
}
|
|
8626
|
+
|
|
8627
|
+
return {
|
|
8628
|
+
props,
|
|
8629
|
+
internalRef: internalSlotProps.ref
|
|
8630
|
+
};
|
|
8631
|
+
}
|
|
8632
|
+
|
|
8633
|
+
const _excluded$2d = ["elementType", "externalSlotProps", "ownerState"];
|
|
8634
|
+
|
|
8635
|
+
/**
|
|
8636
|
+
* Builds the props to be passed into the slot of an unstyled component.
|
|
8637
|
+
* It merges the internal props of the component with the ones supplied by the user, allowing to customize the behavior.
|
|
8638
|
+
* If the slot component is not a host component, it also merges in the `ownerState`.
|
|
8639
|
+
*
|
|
8640
|
+
* @param parameters.getSlotProps - A function that returns the props to be passed to the slot component.
|
|
8641
|
+
*/
|
|
8642
|
+
function useSlotProps(parameters) {
|
|
8643
|
+
var _parameters$additiona;
|
|
8644
|
+
|
|
8645
|
+
const {
|
|
8646
|
+
elementType,
|
|
8647
|
+
externalSlotProps,
|
|
8648
|
+
ownerState
|
|
8649
|
+
} = parameters,
|
|
8650
|
+
rest = _objectWithoutPropertiesLoose(parameters, _excluded$2d);
|
|
8651
|
+
|
|
8652
|
+
const resolvedComponentsProps = resolveComponentProps(externalSlotProps, ownerState);
|
|
8653
|
+
const merged = mergeSlotProps(_extends({}, rest, {
|
|
8654
|
+
externalSlotProps: resolvedComponentsProps
|
|
8655
|
+
}));
|
|
8656
|
+
const props = appendOwnerState(elementType, _extends({}, merged.props, {
|
|
8657
|
+
ref: useForkRef(merged.internalRef, useForkRef(resolvedComponentsProps == null ? void 0 : resolvedComponentsProps.ref, (_parameters$additiona = parameters.additionalProps) == null ? void 0 : _parameters$additiona.ref))
|
|
8658
|
+
}), ownerState);
|
|
8659
|
+
return props;
|
|
8565
8660
|
}
|
|
8566
8661
|
|
|
8567
8662
|
// Give up on IE11 support for this feature
|
|
@@ -9637,7 +9732,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
9637
9732
|
}
|
|
9638
9733
|
generateUtilityClasses('BaseBadge', ['root', 'badge', 'invisible']);
|
|
9639
9734
|
|
|
9640
|
-
const _excluded$2c = ["badgeContent", "component", "children", "
|
|
9735
|
+
const _excluded$2c = ["badgeContent", "component", "children", "components", "componentsProps", "invisible", "max", "showZero"];
|
|
9641
9736
|
|
|
9642
9737
|
const useUtilityClasses$1O = ownerState => {
|
|
9643
9738
|
const {
|
|
@@ -9662,12 +9757,9 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
9662
9757
|
|
|
9663
9758
|
|
|
9664
9759
|
const BadgeUnstyled = /*#__PURE__*/React__namespace.forwardRef(function BadgeUnstyled(props, ref) {
|
|
9665
|
-
var _componentsProps$root, _componentsProps$badg;
|
|
9666
|
-
|
|
9667
9760
|
const {
|
|
9668
9761
|
component,
|
|
9669
9762
|
children,
|
|
9670
|
-
className,
|
|
9671
9763
|
components = {},
|
|
9672
9764
|
componentsProps = {},
|
|
9673
9765
|
max: maxProp = 99,
|
|
@@ -9693,14 +9785,23 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
9693
9785
|
|
|
9694
9786
|
const classes = useUtilityClasses$1O(ownerState);
|
|
9695
9787
|
const Root = component || components.Root || 'span';
|
|
9696
|
-
const rootProps =
|
|
9697
|
-
|
|
9698
|
-
|
|
9699
|
-
|
|
9788
|
+
const rootProps = useSlotProps({
|
|
9789
|
+
elementType: Root,
|
|
9790
|
+
externalSlotProps: componentsProps.root,
|
|
9791
|
+
externalForwardedProps: other,
|
|
9792
|
+
additionalProps: {
|
|
9793
|
+
ref
|
|
9794
|
+
},
|
|
9795
|
+
ownerState,
|
|
9796
|
+
className: classes.root
|
|
9797
|
+
});
|
|
9700
9798
|
const Badge = components.Badge || 'span';
|
|
9701
|
-
const badgeProps =
|
|
9702
|
-
|
|
9703
|
-
|
|
9799
|
+
const badgeProps = useSlotProps({
|
|
9800
|
+
elementType: Badge,
|
|
9801
|
+
externalSlotProps: componentsProps.badge,
|
|
9802
|
+
ownerState,
|
|
9803
|
+
className: classes.badge
|
|
9804
|
+
});
|
|
9704
9805
|
return /*#__PURE__*/jsxRuntime_2(Root, _extends({}, rootProps, {
|
|
9705
9806
|
children: [children, /*#__PURE__*/jsxRuntime_1(Badge, _extends({}, badgeProps, {
|
|
9706
9807
|
children: displayValue
|
|
@@ -9725,11 +9826,6 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
9725
9826
|
*/
|
|
9726
9827
|
children: PropTypes.node,
|
|
9727
9828
|
|
|
9728
|
-
/**
|
|
9729
|
-
* @ignore
|
|
9730
|
-
*/
|
|
9731
|
-
className: PropTypes.string,
|
|
9732
|
-
|
|
9733
9829
|
/**
|
|
9734
9830
|
* The component used for the root node.
|
|
9735
9831
|
* Either a string to use a HTML element or a component.
|
|
@@ -9751,8 +9847,8 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
9751
9847
|
* @default {}
|
|
9752
9848
|
*/
|
|
9753
9849
|
componentsProps: PropTypes.shape({
|
|
9754
|
-
badge: PropTypes.object,
|
|
9755
|
-
root: PropTypes.object
|
|
9850
|
+
badge: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
9851
|
+
root: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
9756
9852
|
}),
|
|
9757
9853
|
|
|
9758
9854
|
/**
|
|
@@ -12378,11 +12474,23 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
12378
12474
|
return parseInt(ownerWindow(element).getComputedStyle(element).paddingRight, 10) || 0;
|
|
12379
12475
|
}
|
|
12380
12476
|
|
|
12477
|
+
function isAriaHiddenForbiddenOnElement(element) {
|
|
12478
|
+
// The forbidden HTML tags are the ones from ARIA specification that
|
|
12479
|
+
// can be children of body and can't have aria-hidden attribute.
|
|
12480
|
+
// cf. https://www.w3.org/TR/html-aria/#docconformance
|
|
12481
|
+
const forbiddenTagNames = ['TEMPLATE', 'SCRIPT', 'STYLE', 'LINK', 'MAP', 'META', 'NOSCRIPT', 'PICTURE', 'COL', 'COLGROUP', 'PARAM', 'SLOT', 'SOURCE', 'TRACK'];
|
|
12482
|
+
const isForbiddenTagName = forbiddenTagNames.indexOf(element.tagName) !== -1;
|
|
12483
|
+
const isInputHidden = element.tagName === 'INPUT' && element.getAttribute('type') === 'hidden';
|
|
12484
|
+
return isForbiddenTagName || isInputHidden;
|
|
12485
|
+
}
|
|
12486
|
+
|
|
12381
12487
|
function ariaHiddenSiblings(container, mountElement, currentElement, elementsToExclude = [], show) {
|
|
12382
12488
|
const blacklist = [mountElement, currentElement, ...elementsToExclude];
|
|
12383
|
-
const blacklistTagNames = ['TEMPLATE', 'SCRIPT', 'STYLE'];
|
|
12384
12489
|
[].forEach.call(container.children, element => {
|
|
12385
|
-
|
|
12490
|
+
const isNotExcludedElement = blacklist.indexOf(element) === -1;
|
|
12491
|
+
const isNotForbiddenElement = !isAriaHiddenForbiddenOnElement(element);
|
|
12492
|
+
|
|
12493
|
+
if (isNotExcludedElement && isNotForbiddenElement) {
|
|
12386
12494
|
ariaHidden(element, show);
|
|
12387
12495
|
}
|
|
12388
12496
|
});
|
|
@@ -12426,15 +12534,22 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
12426
12534
|
});
|
|
12427
12535
|
element.style.paddingRight = `${getPaddingRight(element) + scrollbarSize}px`;
|
|
12428
12536
|
});
|
|
12429
|
-
}
|
|
12430
|
-
// https://css-tricks.com/snippets/css/force-vertical-scrollbar/
|
|
12537
|
+
}
|
|
12431
12538
|
|
|
12539
|
+
let scrollContainer;
|
|
12432
12540
|
|
|
12433
|
-
|
|
12434
|
-
|
|
12435
|
-
|
|
12541
|
+
if (container.parentNode instanceof DocumentFragment) {
|
|
12542
|
+
scrollContainer = ownerDocument(container).body;
|
|
12543
|
+
} else {
|
|
12544
|
+
// Improve Gatsby support
|
|
12545
|
+
// https://css-tricks.com/snippets/css/force-vertical-scrollbar/
|
|
12546
|
+
const parent = container.parentElement;
|
|
12547
|
+
const containerWindow = ownerWindow(container);
|
|
12548
|
+
scrollContainer = (parent == null ? void 0 : parent.nodeName) === 'HTML' && containerWindow.getComputedStyle(parent).overflowY === 'scroll' ? parent : container;
|
|
12549
|
+
} // Block the scroll even if no scrollbar is visible to account for mobile keyboard
|
|
12436
12550
|
// screensize shrink.
|
|
12437
12551
|
|
|
12552
|
+
|
|
12438
12553
|
restoreStyle.push({
|
|
12439
12554
|
value: scrollContainer.style.overflow,
|
|
12440
12555
|
property: 'overflow',
|
|
@@ -12534,7 +12649,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
12534
12649
|
}
|
|
12535
12650
|
}
|
|
12536
12651
|
|
|
12537
|
-
remove(modal) {
|
|
12652
|
+
remove(modal, ariaHiddenState = true) {
|
|
12538
12653
|
const modalIndex = this.modals.indexOf(modal);
|
|
12539
12654
|
|
|
12540
12655
|
if (modalIndex === -1) {
|
|
@@ -12554,7 +12669,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
12554
12669
|
|
|
12555
12670
|
if (modal.modalRef) {
|
|
12556
12671
|
// In case the modal wasn't in the DOM yet.
|
|
12557
|
-
ariaHidden(modal.modalRef,
|
|
12672
|
+
ariaHidden(modal.modalRef, ariaHiddenState);
|
|
12558
12673
|
}
|
|
12559
12674
|
|
|
12560
12675
|
ariaHiddenSiblings(containerInfo.container, modal.mount, modal.modalRef, containerInfo.hiddenSiblings, false);
|
|
@@ -12942,7 +13057,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
12942
13057
|
const modalUnstyledClasses = generateUtilityClasses('MuiModal', ['root', 'hidden']);
|
|
12943
13058
|
var modalUnstyledClasses$1 = modalUnstyledClasses;
|
|
12944
13059
|
|
|
12945
|
-
const _excluded$2a = ["
|
|
13060
|
+
const _excluded$2a = ["children", "classes", "className", "closeAfterTransition", "component", "components", "componentsProps", "container", "disableAutoFocus", "disableEnforceFocus", "disableEscapeKeyDown", "disablePortal", "disableRestoreFocus", "disableScrollLock", "hideBackdrop", "keepMounted", "manager", "onBackdropClick", "onClose", "onKeyDown", "open", "onTransitionEnter", "onTransitionExited"];
|
|
12946
13061
|
|
|
12947
13062
|
const useUtilityClasses$1N = ownerState => {
|
|
12948
13063
|
const {
|
|
@@ -12982,9 +13097,9 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
12982
13097
|
*/
|
|
12983
13098
|
|
|
12984
13099
|
const ModalUnstyled = /*#__PURE__*/React__namespace.forwardRef(function ModalUnstyled(props, ref) {
|
|
13100
|
+
var _props$ariaHidden, _componentsProps$root;
|
|
13101
|
+
|
|
12985
13102
|
const {
|
|
12986
|
-
BackdropComponent,
|
|
12987
|
-
BackdropProps,
|
|
12988
13103
|
children,
|
|
12989
13104
|
classes: classesProp,
|
|
12990
13105
|
className,
|
|
@@ -13010,7 +13125,6 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
13010
13125
|
open,
|
|
13011
13126
|
|
|
13012
13127
|
/* eslint-disable react/prop-types */
|
|
13013
|
-
theme,
|
|
13014
13128
|
onTransitionEnter,
|
|
13015
13129
|
onTransitionExited
|
|
13016
13130
|
} = props,
|
|
@@ -13022,6 +13136,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
13022
13136
|
const modalRef = React__namespace.useRef(null);
|
|
13023
13137
|
const handleRef = useForkRef(modalRef, ref);
|
|
13024
13138
|
const hasTransition = getHasTransition(props);
|
|
13139
|
+
const ariaHiddenProp = (_props$ariaHidden = props['aria-hidden']) != null ? _props$ariaHidden : true;
|
|
13025
13140
|
|
|
13026
13141
|
const getDoc = () => ownerDocument(mountNodeRef.current);
|
|
13027
13142
|
|
|
@@ -13058,12 +13173,12 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
13058
13173
|
if (open && isTopModal()) {
|
|
13059
13174
|
handleMounted();
|
|
13060
13175
|
} else {
|
|
13061
|
-
ariaHidden(modalRef.current,
|
|
13176
|
+
ariaHidden(modalRef.current, ariaHiddenProp);
|
|
13062
13177
|
}
|
|
13063
13178
|
});
|
|
13064
13179
|
const handleClose = React__namespace.useCallback(() => {
|
|
13065
|
-
manager.remove(getModal());
|
|
13066
|
-
}, [manager]);
|
|
13180
|
+
manager.remove(getModal(), ariaHiddenProp);
|
|
13181
|
+
}, [manager, ariaHiddenProp]);
|
|
13067
13182
|
React__namespace.useEffect(() => {
|
|
13068
13183
|
return () => {
|
|
13069
13184
|
handleClose();
|
|
@@ -13169,26 +13284,25 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
13169
13284
|
}
|
|
13170
13285
|
|
|
13171
13286
|
const Root = components.Root || component;
|
|
13172
|
-
const rootProps =
|
|
13287
|
+
const rootProps = appendOwnerState(Root, _extends({
|
|
13288
|
+
role: 'presentation'
|
|
13289
|
+
}, other, componentsProps.root, {
|
|
13290
|
+
ref: handleRef,
|
|
13291
|
+
onKeyDown: handleKeyDown,
|
|
13292
|
+
className: clsx(classes.root, (_componentsProps$root = componentsProps.root) == null ? void 0 : _componentsProps$root.className, className)
|
|
13293
|
+
}), ownerState);
|
|
13294
|
+
const BackdropComponent = components.Backdrop;
|
|
13295
|
+
const backdropProps = appendOwnerState(BackdropComponent, _extends({
|
|
13296
|
+
'aria-hidden': true,
|
|
13297
|
+
open,
|
|
13298
|
+
onClick: handleBackdropClick
|
|
13299
|
+
}, componentsProps.backdrop), ownerState);
|
|
13173
13300
|
return /*#__PURE__*/jsxRuntime_1(Portal$1, {
|
|
13174
13301
|
ref: handlePortalRef,
|
|
13175
13302
|
container: container,
|
|
13176
13303
|
disablePortal: disablePortal,
|
|
13177
|
-
children: /*#__PURE__*/jsxRuntime_2(Root, _extends({
|
|
13178
|
-
|
|
13179
|
-
}, rootProps, !isHostComponent(Root) && {
|
|
13180
|
-
as: component,
|
|
13181
|
-
ownerState: _extends({}, ownerState, rootProps.ownerState),
|
|
13182
|
-
theme
|
|
13183
|
-
}, other, {
|
|
13184
|
-
ref: handleRef,
|
|
13185
|
-
onKeyDown: handleKeyDown,
|
|
13186
|
-
className: clsx(classes.root, rootProps.className, className),
|
|
13187
|
-
children: [!hideBackdrop && BackdropComponent ? /*#__PURE__*/jsxRuntime_1(BackdropComponent, _extends({
|
|
13188
|
-
"aria-hidden": true,
|
|
13189
|
-
open: open,
|
|
13190
|
-
onClick: handleBackdropClick
|
|
13191
|
-
}, BackdropProps)) : null, /*#__PURE__*/jsxRuntime_1(TrapFocus, {
|
|
13304
|
+
children: /*#__PURE__*/jsxRuntime_2(Root, _extends({}, rootProps, {
|
|
13305
|
+
children: [!hideBackdrop && BackdropComponent ? /*#__PURE__*/jsxRuntime_1(BackdropComponent, _extends({}, backdropProps)) : null, /*#__PURE__*/jsxRuntime_1(TrapFocus, {
|
|
13192
13306
|
disableEnforceFocus: disableEnforceFocus,
|
|
13193
13307
|
disableAutoFocus: disableAutoFocus,
|
|
13194
13308
|
disableRestoreFocus: disableRestoreFocus,
|
|
@@ -13207,16 +13321,6 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
13207
13321
|
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
13208
13322
|
// ----------------------------------------------------------------------
|
|
13209
13323
|
|
|
13210
|
-
/**
|
|
13211
|
-
* A backdrop component. This prop enables custom backdrop rendering.
|
|
13212
|
-
*/
|
|
13213
|
-
BackdropComponent: PropTypes.elementType,
|
|
13214
|
-
|
|
13215
|
-
/**
|
|
13216
|
-
* Props applied to the backdrop element.
|
|
13217
|
-
*/
|
|
13218
|
-
BackdropProps: PropTypes.object,
|
|
13219
|
-
|
|
13220
13324
|
/**
|
|
13221
13325
|
* A single child content element.
|
|
13222
13326
|
*/
|
|
@@ -13250,6 +13354,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
13250
13354
|
* @default {}
|
|
13251
13355
|
*/
|
|
13252
13356
|
components: PropTypes.shape({
|
|
13357
|
+
Backdrop: PropTypes.elementType,
|
|
13253
13358
|
Root: PropTypes.elementType
|
|
13254
13359
|
}),
|
|
13255
13360
|
|
|
@@ -13258,6 +13363,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
13258
13363
|
* @default {}
|
|
13259
13364
|
*/
|
|
13260
13365
|
componentsProps: PropTypes.shape({
|
|
13366
|
+
backdrop: PropTypes.object,
|
|
13261
13367
|
root: PropTypes.object
|
|
13262
13368
|
}),
|
|
13263
13369
|
|
|
@@ -13460,7 +13566,6 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
13460
13566
|
})]
|
|
13461
13567
|
}));
|
|
13462
13568
|
}
|
|
13463
|
-
|
|
13464
13569
|
SliderValueLabelUnstyled.propTypes = {
|
|
13465
13570
|
children: PropTypes.element.isRequired,
|
|
13466
13571
|
className: PropTypes.string,
|
|
@@ -13700,7 +13805,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
13700
13805
|
onFocus: handleFocusVisible,
|
|
13701
13806
|
ref: focusVisibleRef
|
|
13702
13807
|
} = useIsFocusVisible();
|
|
13703
|
-
const [
|
|
13808
|
+
const [focusedThumbIndex, setFocusedThumbIndex] = React__namespace.useState(-1);
|
|
13704
13809
|
const sliderRef = React__namespace.useRef();
|
|
13705
13810
|
const handleFocusRef = useForkRef(focusVisibleRef, sliderRef);
|
|
13706
13811
|
const handleRef = useForkRef(ref, handleFocusRef);
|
|
@@ -13712,7 +13817,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
13712
13817
|
handleFocusVisible(event);
|
|
13713
13818
|
|
|
13714
13819
|
if (isFocusVisibleRef.current === true) {
|
|
13715
|
-
|
|
13820
|
+
setFocusedThumbIndex(index);
|
|
13716
13821
|
}
|
|
13717
13822
|
|
|
13718
13823
|
setOpen(index);
|
|
@@ -13725,7 +13830,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
13725
13830
|
handleBlurVisible(event);
|
|
13726
13831
|
|
|
13727
13832
|
if (isFocusVisibleRef.current === false) {
|
|
13728
|
-
|
|
13833
|
+
setFocusedThumbIndex(-1);
|
|
13729
13834
|
}
|
|
13730
13835
|
|
|
13731
13836
|
setOpen(-1);
|
|
@@ -13748,8 +13853,8 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
13748
13853
|
setActive(-1);
|
|
13749
13854
|
}
|
|
13750
13855
|
|
|
13751
|
-
if (disabled &&
|
|
13752
|
-
|
|
13856
|
+
if (disabled && focusedThumbIndex !== -1) {
|
|
13857
|
+
setFocusedThumbIndex(-1);
|
|
13753
13858
|
}
|
|
13754
13859
|
|
|
13755
13860
|
const createHandleHiddenInputChange = otherHandlers => event => {
|
|
@@ -13798,7 +13903,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
13798
13903
|
}
|
|
13799
13904
|
|
|
13800
13905
|
setValueState(newValue);
|
|
13801
|
-
|
|
13906
|
+
setFocusedThumbIndex(index);
|
|
13802
13907
|
|
|
13803
13908
|
if (handleChange) {
|
|
13804
13909
|
handleChange(event, newValue, index);
|
|
@@ -14109,13 +14214,12 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
14109
14214
|
onMouseOver: createHandleMouseOver(otherHandlers || {}),
|
|
14110
14215
|
onMouseLeave: createHandleMouseLeave(otherHandlers || {})
|
|
14111
14216
|
};
|
|
14112
|
-
|
|
14113
|
-
const mergedEventHandlers = _extends({}, otherHandlers, ownEventHandlers);
|
|
14114
|
-
|
|
14115
|
-
return _extends({}, mergedEventHandlers);
|
|
14217
|
+
return _extends({}, otherHandlers, ownEventHandlers);
|
|
14116
14218
|
};
|
|
14117
14219
|
|
|
14118
14220
|
const getHiddenInputProps = (otherHandlers = {}) => {
|
|
14221
|
+
var _parameters$step;
|
|
14222
|
+
|
|
14119
14223
|
const ownEventHandlers = {
|
|
14120
14224
|
onChange: createHandleHiddenInputChange(otherHandlers || {}),
|
|
14121
14225
|
onFocus: createHandleHiddenInputFocus(otherHandlers || {}),
|
|
@@ -14134,7 +14238,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
14134
14238
|
type: 'range',
|
|
14135
14239
|
min: parameters.min,
|
|
14136
14240
|
max: parameters.max,
|
|
14137
|
-
step: parameters.step,
|
|
14241
|
+
step: (_parameters$step = parameters.step) != null ? _parameters$step : undefined,
|
|
14138
14242
|
disabled
|
|
14139
14243
|
}, mergedEventHandlers, {
|
|
14140
14244
|
style: _extends({}, visuallyHidden$1, {
|
|
@@ -14148,14 +14252,14 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
14148
14252
|
|
|
14149
14253
|
return {
|
|
14150
14254
|
active,
|
|
14151
|
-
axis,
|
|
14255
|
+
axis: axis,
|
|
14152
14256
|
axisProps,
|
|
14153
14257
|
dragging,
|
|
14154
|
-
|
|
14258
|
+
focusedThumbIndex,
|
|
14155
14259
|
getHiddenInputProps,
|
|
14156
14260
|
getRootProps,
|
|
14157
14261
|
getThumbProps,
|
|
14158
|
-
marks,
|
|
14262
|
+
marks: marks,
|
|
14159
14263
|
open,
|
|
14160
14264
|
range,
|
|
14161
14265
|
trackLeap,
|
|
@@ -14164,7 +14268,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
14164
14268
|
};
|
|
14165
14269
|
}
|
|
14166
14270
|
|
|
14167
|
-
const _excluded$29 = ["aria-label", "aria-valuetext", "className", "component", "classes", "disableSwap", "disabled", "getAriaLabel", "getAriaValueText", "marks", "max", "min", "name", "onChange", "onChangeCommitted", "
|
|
14271
|
+
const _excluded$29 = ["aria-label", "aria-valuetext", "className", "component", "classes", "disableSwap", "disabled", "getAriaLabel", "getAriaValueText", "marks", "max", "min", "name", "onChange", "onChangeCommitted", "orientation", "scale", "step", "tabIndex", "track", "value", "valueLabelDisplay", "valueLabelFormat", "isRtl", "components", "componentsProps"];
|
|
14168
14272
|
|
|
14169
14273
|
const Identity = x => x;
|
|
14170
14274
|
|
|
@@ -14214,7 +14318,6 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
14214
14318
|
marks: marksProp = false,
|
|
14215
14319
|
max = 100,
|
|
14216
14320
|
min = 0,
|
|
14217
|
-
onMouseDown,
|
|
14218
14321
|
orientation = 'horizontal',
|
|
14219
14322
|
scale = Identity,
|
|
14220
14323
|
step = 1,
|
|
@@ -14253,7 +14356,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
14253
14356
|
active,
|
|
14254
14357
|
axis,
|
|
14255
14358
|
range,
|
|
14256
|
-
|
|
14359
|
+
focusedThumbIndex,
|
|
14257
14360
|
dragging,
|
|
14258
14361
|
marks,
|
|
14259
14362
|
values,
|
|
@@ -14264,37 +14367,69 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
14264
14367
|
}));
|
|
14265
14368
|
ownerState.marked = marks.length > 0 && marks.some(mark => mark.label);
|
|
14266
14369
|
ownerState.dragging = dragging;
|
|
14370
|
+
ownerState.focusedThumbIndex = focusedThumbIndex;
|
|
14371
|
+
const classes = useUtilityClasses$1M(ownerState);
|
|
14267
14372
|
const Root = (_ref = component != null ? component : components.Root) != null ? _ref : 'span';
|
|
14268
|
-
const rootProps =
|
|
14373
|
+
const rootProps = useSlotProps({
|
|
14374
|
+
elementType: Root,
|
|
14375
|
+
getSlotProps: getRootProps,
|
|
14376
|
+
externalSlotProps: componentsProps.root,
|
|
14377
|
+
externalForwardedProps: other,
|
|
14378
|
+
ownerState,
|
|
14379
|
+
className: [classes.root, className]
|
|
14380
|
+
});
|
|
14269
14381
|
const Rail = (_components$Rail = components.Rail) != null ? _components$Rail : 'span';
|
|
14270
|
-
const railProps =
|
|
14382
|
+
const railProps = useSlotProps({
|
|
14383
|
+
elementType: Rail,
|
|
14384
|
+
externalSlotProps: componentsProps.rail,
|
|
14385
|
+
ownerState,
|
|
14386
|
+
className: classes.rail
|
|
14387
|
+
});
|
|
14271
14388
|
const Track = (_components$Track = components.Track) != null ? _components$Track : 'span';
|
|
14272
|
-
const trackProps =
|
|
14273
|
-
|
|
14274
|
-
|
|
14275
|
-
|
|
14389
|
+
const trackProps = useSlotProps({
|
|
14390
|
+
elementType: Track,
|
|
14391
|
+
externalSlotProps: componentsProps.track,
|
|
14392
|
+
additionalProps: {
|
|
14393
|
+
style: _extends({}, axisProps[axis].offset(trackOffset), axisProps[axis].leap(trackLeap))
|
|
14394
|
+
},
|
|
14395
|
+
ownerState,
|
|
14396
|
+
className: classes.track
|
|
14397
|
+
});
|
|
14276
14398
|
const Thumb = (_components$Thumb = components.Thumb) != null ? _components$Thumb : 'span';
|
|
14277
|
-
const thumbProps =
|
|
14399
|
+
const thumbProps = useSlotProps({
|
|
14400
|
+
elementType: Thumb,
|
|
14401
|
+
getSlotProps: getThumbProps,
|
|
14402
|
+
externalSlotProps: componentsProps.thumb,
|
|
14403
|
+
ownerState
|
|
14404
|
+
});
|
|
14278
14405
|
const ValueLabel = (_components$ValueLabe = components.ValueLabel) != null ? _components$ValueLabe : SliderValueLabelUnstyled;
|
|
14279
|
-
const valueLabelProps =
|
|
14406
|
+
const valueLabelProps = useSlotProps({
|
|
14407
|
+
elementType: ValueLabel,
|
|
14408
|
+
externalSlotProps: componentsProps.valueLabel,
|
|
14409
|
+
ownerState
|
|
14410
|
+
});
|
|
14280
14411
|
const Mark = (_components$Mark = components.Mark) != null ? _components$Mark : 'span';
|
|
14281
|
-
const markProps =
|
|
14412
|
+
const markProps = useSlotProps({
|
|
14413
|
+
elementType: Mark,
|
|
14414
|
+
externalSlotProps: componentsProps.mark,
|
|
14415
|
+
ownerState,
|
|
14416
|
+
className: classes.mark
|
|
14417
|
+
});
|
|
14282
14418
|
const MarkLabel = (_components$MarkLabel = components.MarkLabel) != null ? _components$MarkLabel : 'span';
|
|
14283
|
-
const markLabelProps =
|
|
14419
|
+
const markLabelProps = useSlotProps({
|
|
14420
|
+
elementType: MarkLabel,
|
|
14421
|
+
externalSlotProps: componentsProps.markLabel,
|
|
14422
|
+
ownerState
|
|
14423
|
+
});
|
|
14284
14424
|
const Input = components.Input || 'input';
|
|
14285
|
-
const inputProps =
|
|
14286
|
-
|
|
14287
|
-
|
|
14288
|
-
|
|
14289
|
-
|
|
14290
|
-
})
|
|
14291
|
-
|
|
14292
|
-
children: [/*#__PURE__*/jsxRuntime_1(Rail, _extends({}, railProps, {
|
|
14293
|
-
className: clsx(classes.rail, railProps.className)
|
|
14294
|
-
})), /*#__PURE__*/jsxRuntime_1(Track, _extends({}, trackProps, {
|
|
14295
|
-
className: clsx(classes.track, trackProps.className),
|
|
14296
|
-
style: _extends({}, trackStyle, trackProps.style)
|
|
14297
|
-
})), marks.filter(mark => mark.value >= min && mark.value <= max).map((mark, index) => {
|
|
14425
|
+
const inputProps = useSlotProps({
|
|
14426
|
+
elementType: Input,
|
|
14427
|
+
getSlotProps: getHiddenInputProps,
|
|
14428
|
+
externalSlotProps: componentsProps.input,
|
|
14429
|
+
ownerState
|
|
14430
|
+
});
|
|
14431
|
+
return /*#__PURE__*/jsxRuntime_2(Root, _extends({}, rootProps, {
|
|
14432
|
+
children: [/*#__PURE__*/jsxRuntime_1(Rail, _extends({}, railProps)), /*#__PURE__*/jsxRuntime_1(Track, _extends({}, trackProps)), marks.filter(mark => mark.value >= min && mark.value <= max).map((mark, index) => {
|
|
14298
14433
|
const percent = valueToPercent(mark.value, min, max);
|
|
14299
14434
|
const style = axisProps[axis].offset(percent);
|
|
14300
14435
|
let markActive;
|
|
@@ -14312,7 +14447,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
14312
14447
|
markActive
|
|
14313
14448
|
}, {
|
|
14314
14449
|
style: _extends({}, style, markProps.style),
|
|
14315
|
-
className: clsx(
|
|
14450
|
+
className: clsx(markProps.className, markActive && classes.markActive)
|
|
14316
14451
|
})), mark.label != null ? /*#__PURE__*/jsxRuntime_1(MarkLabel, _extends({
|
|
14317
14452
|
"aria-hidden": true,
|
|
14318
14453
|
"data-index": index
|
|
@@ -14339,23 +14474,20 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
14339
14474
|
}, valueLabelProps, {
|
|
14340
14475
|
className: clsx(classes.valueLabel, valueLabelProps.className),
|
|
14341
14476
|
children: /*#__PURE__*/jsxRuntime_1(Thumb, _extends({
|
|
14342
|
-
"data-index": index
|
|
14343
|
-
|
|
14344
|
-
|
|
14477
|
+
"data-index": index,
|
|
14478
|
+
"data-focusvisible": focusedThumbIndex === index
|
|
14479
|
+
}, thumbProps, {
|
|
14480
|
+
className: clsx(classes.thumb, thumbProps.className, active === index && classes.active, focusedThumbIndex === index && classes.focusVisible),
|
|
14345
14481
|
style: _extends({}, style, {
|
|
14346
14482
|
pointerEvents: disableSwap && active !== index ? 'none' : undefined
|
|
14347
14483
|
}, thumbProps.style),
|
|
14348
|
-
children: /*#__PURE__*/jsxRuntime_1(Input, _extends({
|
|
14484
|
+
children: /*#__PURE__*/jsxRuntime_1(Input, _extends({
|
|
14349
14485
|
"data-index": index,
|
|
14350
14486
|
"aria-label": getAriaLabel ? getAriaLabel(index) : ariaLabel,
|
|
14351
14487
|
"aria-valuenow": scale(value),
|
|
14352
14488
|
"aria-valuetext": getAriaValueText ? getAriaValueText(scale(value), index) : ariaValuetext,
|
|
14353
14489
|
value: values[index]
|
|
14354
|
-
},
|
|
14355
|
-
ownerState: _extends({}, ownerState, inputProps.ownerState)
|
|
14356
|
-
}, inputProps, {
|
|
14357
|
-
style: _extends({}, hiddenInputProps.style, inputProps.style)
|
|
14358
|
-
}))
|
|
14490
|
+
}, inputProps))
|
|
14359
14491
|
}))
|
|
14360
14492
|
}))
|
|
14361
14493
|
}, index);
|
|
@@ -14443,22 +14575,24 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
14443
14575
|
* @default {}
|
|
14444
14576
|
*/
|
|
14445
14577
|
componentsProps: PropTypes.shape({
|
|
14446
|
-
input: PropTypes.object,
|
|
14447
|
-
mark: PropTypes.object,
|
|
14448
|
-
markLabel: PropTypes.object,
|
|
14449
|
-
rail: PropTypes.object,
|
|
14450
|
-
root: PropTypes.object,
|
|
14451
|
-
thumb: PropTypes.object,
|
|
14452
|
-
track: PropTypes.object,
|
|
14453
|
-
valueLabel: PropTypes.shape({
|
|
14578
|
+
input: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
14579
|
+
mark: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
14580
|
+
markLabel: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
14581
|
+
rail: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
14582
|
+
root: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
14583
|
+
thumb: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
14584
|
+
track: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
14585
|
+
valueLabel: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
|
|
14586
|
+
children: PropTypes.element,
|
|
14454
14587
|
className: PropTypes.string,
|
|
14455
14588
|
components: PropTypes.shape({
|
|
14456
14589
|
Root: PropTypes.elementType
|
|
14457
14590
|
}),
|
|
14591
|
+
open: PropTypes.bool,
|
|
14458
14592
|
style: PropTypes.object,
|
|
14459
|
-
value: PropTypes.
|
|
14593
|
+
value: PropTypes.number,
|
|
14460
14594
|
valueLabelDisplay: PropTypes.oneOf(['auto', 'off', 'on'])
|
|
14461
|
-
})
|
|
14595
|
+
})])
|
|
14462
14596
|
}),
|
|
14463
14597
|
|
|
14464
14598
|
/**
|
|
@@ -14550,11 +14684,6 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
14550
14684
|
*/
|
|
14551
14685
|
onChangeCommitted: PropTypes.func,
|
|
14552
14686
|
|
|
14553
|
-
/**
|
|
14554
|
-
* @ignore
|
|
14555
|
-
*/
|
|
14556
|
-
onMouseDown: PropTypes.func,
|
|
14557
|
-
|
|
14558
14687
|
/**
|
|
14559
14688
|
* The component orientation.
|
|
14560
14689
|
* @default 'horizontal'
|
|
@@ -14642,6 +14771,11 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
14642
14771
|
transform: 'translateZ(0)'
|
|
14643
14772
|
}
|
|
14644
14773
|
};
|
|
14774
|
+
|
|
14775
|
+
function isEmpty$1(obj) {
|
|
14776
|
+
return obj === undefined || obj === null || Object.keys(obj).length === 0;
|
|
14777
|
+
}
|
|
14778
|
+
|
|
14645
14779
|
const TextareaAutosize = /*#__PURE__*/React__namespace.forwardRef(function TextareaAutosize(props, ref) {
|
|
14646
14780
|
const {
|
|
14647
14781
|
onChange,
|
|
@@ -14660,13 +14794,13 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
14660
14794
|
const shadowRef = React__namespace.useRef(null);
|
|
14661
14795
|
const renders = React__namespace.useRef(0);
|
|
14662
14796
|
const [state, setState] = React__namespace.useState({});
|
|
14663
|
-
const
|
|
14797
|
+
const getUpdatedState = React__namespace.useCallback(() => {
|
|
14664
14798
|
const input = inputRef.current;
|
|
14665
14799
|
const containerWindow = ownerWindow(input);
|
|
14666
14800
|
const computedStyle = containerWindow.getComputedStyle(input); // If input's width is shrunk and it's not visible, don't sync height.
|
|
14667
14801
|
|
|
14668
14802
|
if (computedStyle.width === '0px') {
|
|
14669
|
-
return;
|
|
14803
|
+
return {};
|
|
14670
14804
|
}
|
|
14671
14805
|
|
|
14672
14806
|
const inputShallow = shadowRef.current;
|
|
@@ -14703,30 +14837,77 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
14703
14837
|
|
|
14704
14838
|
const outerHeightStyle = outerHeight + (boxSizing === 'border-box' ? padding + border : 0);
|
|
14705
14839
|
const overflow = Math.abs(outerHeight - innerHeight) <= 1;
|
|
14706
|
-
|
|
14707
|
-
|
|
14708
|
-
|
|
14709
|
-
|
|
14710
|
-
|
|
14711
|
-
return {
|
|
14712
|
-
overflow,
|
|
14713
|
-
outerHeightStyle
|
|
14714
|
-
};
|
|
14715
|
-
}
|
|
14840
|
+
return {
|
|
14841
|
+
outerHeightStyle,
|
|
14842
|
+
overflow
|
|
14843
|
+
};
|
|
14844
|
+
}, [maxRows, minRows, props.placeholder]);
|
|
14716
14845
|
|
|
14717
|
-
|
|
14718
|
-
|
|
14719
|
-
|
|
14720
|
-
|
|
14846
|
+
const updateState = (prevState, newState) => {
|
|
14847
|
+
const {
|
|
14848
|
+
outerHeightStyle,
|
|
14849
|
+
overflow
|
|
14850
|
+
} = newState; // Need a large enough difference to update the height.
|
|
14851
|
+
// This prevents infinite rendering loop.
|
|
14852
|
+
|
|
14853
|
+
if (renders.current < 20 && (outerHeightStyle > 0 && Math.abs((prevState.outerHeightStyle || 0) - outerHeightStyle) > 1 || prevState.overflow !== overflow)) {
|
|
14854
|
+
renders.current += 1;
|
|
14855
|
+
return {
|
|
14856
|
+
overflow,
|
|
14857
|
+
outerHeightStyle
|
|
14858
|
+
};
|
|
14859
|
+
}
|
|
14860
|
+
|
|
14861
|
+
{
|
|
14862
|
+
if (renders.current === 20) {
|
|
14863
|
+
console.error(['MUI: Too many re-renders. The layout is unstable.', 'TextareaAutosize limits the number of renders to prevent an infinite loop.'].join('\n'));
|
|
14721
14864
|
}
|
|
14865
|
+
}
|
|
14722
14866
|
|
|
14723
|
-
|
|
14867
|
+
return prevState;
|
|
14868
|
+
};
|
|
14869
|
+
|
|
14870
|
+
const syncHeight = React__namespace.useCallback(() => {
|
|
14871
|
+
const newState = getUpdatedState();
|
|
14872
|
+
|
|
14873
|
+
if (isEmpty$1(newState)) {
|
|
14874
|
+
return;
|
|
14875
|
+
}
|
|
14876
|
+
|
|
14877
|
+
setState(prevState => {
|
|
14878
|
+
return updateState(prevState, newState);
|
|
14724
14879
|
});
|
|
14725
|
-
}, [
|
|
14880
|
+
}, [getUpdatedState]);
|
|
14881
|
+
|
|
14882
|
+
const syncHeightWithFlushSycn = () => {
|
|
14883
|
+
const newState = getUpdatedState();
|
|
14884
|
+
|
|
14885
|
+
if (isEmpty$1(newState)) {
|
|
14886
|
+
return;
|
|
14887
|
+
} // In React 18, state updates in a ResizeObserver's callback are happening after the paint which causes flickering
|
|
14888
|
+
// when doing some visual updates in it. Using flushSync ensures that the dom will be painted after the states updates happen
|
|
14889
|
+
// Related issue - https://github.com/facebook/react/issues/24331
|
|
14890
|
+
|
|
14891
|
+
|
|
14892
|
+
ReactDOM.flushSync(() => {
|
|
14893
|
+
setState(prevState => {
|
|
14894
|
+
return updateState(prevState, newState);
|
|
14895
|
+
});
|
|
14896
|
+
});
|
|
14897
|
+
};
|
|
14898
|
+
|
|
14726
14899
|
React__namespace.useEffect(() => {
|
|
14727
14900
|
const handleResize = debounce$1(() => {
|
|
14728
|
-
renders.current = 0;
|
|
14729
|
-
|
|
14901
|
+
renders.current = 0; // If the TextareaAutosize component is replaced by Suspense with a fallback, the last
|
|
14902
|
+
// ResizeObserver's handler that runs because of the change in the layout is trying to
|
|
14903
|
+
// access a dom node that is no longer there (as the fallback component is being shown instead).
|
|
14904
|
+
// See https://github.com/mui/material-ui/issues/32640
|
|
14905
|
+
// TODO: Add tests that will ensure the component is not failing when
|
|
14906
|
+
// replaced by Suspense with a fallback, once React is updated to version 18
|
|
14907
|
+
|
|
14908
|
+
if (inputRef.current) {
|
|
14909
|
+
syncHeightWithFlushSycn();
|
|
14910
|
+
}
|
|
14730
14911
|
});
|
|
14731
14912
|
const containerWindow = ownerWindow(inputRef.current);
|
|
14732
14913
|
containerWindow.addEventListener('resize', handleResize);
|
|
@@ -14745,7 +14926,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
14745
14926
|
resizeObserver.disconnect();
|
|
14746
14927
|
}
|
|
14747
14928
|
};
|
|
14748
|
-
}
|
|
14929
|
+
});
|
|
14749
14930
|
useEnhancedEffect$1(() => {
|
|
14750
14931
|
syncHeight();
|
|
14751
14932
|
});
|
|
@@ -15899,6 +16080,19 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
15899
16080
|
const overlay = getOverlayAlpha(index);
|
|
15900
16081
|
return `linear-gradient(rgba(255 255 255 / ${overlay}), rgba(255 255 255 / ${overlay}))`;
|
|
15901
16082
|
});
|
|
16083
|
+
|
|
16084
|
+
function assignNode(obj, keys) {
|
|
16085
|
+
keys.forEach(k => {
|
|
16086
|
+
if (!obj[k]) {
|
|
16087
|
+
obj[k] = {};
|
|
16088
|
+
}
|
|
16089
|
+
});
|
|
16090
|
+
}
|
|
16091
|
+
|
|
16092
|
+
function setColor(obj, key, defaultValue) {
|
|
16093
|
+
obj[key] = obj[key] || defaultValue;
|
|
16094
|
+
}
|
|
16095
|
+
|
|
15902
16096
|
function extendTheme(options = {}, ...args) {
|
|
15903
16097
|
var _colorSchemesInput$li, _colorSchemesInput$da, _colorSchemesInput$li2, _colorSchemesInput$li3, _colorSchemesInput$da2, _colorSchemesInput$da3;
|
|
15904
16098
|
|
|
@@ -15928,16 +16122,20 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
15928
16122
|
light: _extends({}, colorSchemesInput.light, {
|
|
15929
16123
|
palette: lightPalette,
|
|
15930
16124
|
opacity: _extends({
|
|
15931
|
-
|
|
15932
|
-
|
|
16125
|
+
inputPlaceholder: 0.42,
|
|
16126
|
+
inputUnderline: 0.42,
|
|
16127
|
+
switchTrackDisabled: 0.12,
|
|
16128
|
+
switchTrack: 0.38
|
|
15933
16129
|
}, (_colorSchemesInput$li2 = colorSchemesInput.light) == null ? void 0 : _colorSchemesInput$li2.opacity),
|
|
15934
16130
|
overlays: ((_colorSchemesInput$li3 = colorSchemesInput.light) == null ? void 0 : _colorSchemesInput$li3.overlays) || []
|
|
15935
16131
|
}),
|
|
15936
16132
|
dark: _extends({}, colorSchemesInput.dark, {
|
|
15937
16133
|
palette: darkPalette,
|
|
15938
16134
|
opacity: _extends({
|
|
15939
|
-
|
|
15940
|
-
|
|
16135
|
+
inputPlaceholder: 0.5,
|
|
16136
|
+
inputUnderline: 0.7,
|
|
16137
|
+
switchTrackDisabled: 0.2,
|
|
16138
|
+
switchTrack: 0.3
|
|
15941
16139
|
}, (_colorSchemesInput$da2 = colorSchemesInput.dark) == null ? void 0 : _colorSchemesInput$da2.opacity),
|
|
15942
16140
|
overlays: ((_colorSchemesInput$da3 = colorSchemesInput.dark) == null ? void 0 : _colorSchemesInput$da3.overlays) || defaultDarkOverlays
|
|
15943
16141
|
})
|
|
@@ -15947,23 +16145,138 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
15947
16145
|
Object.keys(theme.colorSchemes).forEach(key => {
|
|
15948
16146
|
const palette = theme.colorSchemes[key].palette; // attach black & white channels to common node
|
|
15949
16147
|
|
|
15950
|
-
if (key === '
|
|
15951
|
-
palette.common
|
|
15952
|
-
palette.common
|
|
16148
|
+
if (key === 'light') {
|
|
16149
|
+
setColor(palette.common, 'background', '#fff');
|
|
16150
|
+
setColor(palette.common, 'onBackground', '#000');
|
|
16151
|
+
} else {
|
|
16152
|
+
setColor(palette.common, 'background', '#000');
|
|
16153
|
+
setColor(palette.common, 'onBackground', '#fff');
|
|
16154
|
+
} // assign component variables
|
|
16155
|
+
|
|
16156
|
+
|
|
16157
|
+
assignNode(palette, ['Alert', 'AppBar', 'Avatar', 'Chip', 'FilledInput', 'LinearProgress', 'Skeleton', 'Slider', 'SnackbarContent', 'SpeedDialAction', 'StepConnector', 'StepContent', 'Switch', 'TableCell', 'Tooltip']);
|
|
16158
|
+
|
|
16159
|
+
if (key === 'light') {
|
|
16160
|
+
setColor(palette.Alert, 'errorColor', darken(palette.error.light, 0.6));
|
|
16161
|
+
setColor(palette.Alert, 'infoColor', darken(palette.info.light, 0.6));
|
|
16162
|
+
setColor(palette.Alert, 'successColor', darken(palette.success.light, 0.6));
|
|
16163
|
+
setColor(palette.Alert, 'warningColor', darken(palette.warning.light, 0.6));
|
|
16164
|
+
setColor(palette.Alert, 'errorFilledBg', 'var(--mui-palette-error-main)');
|
|
16165
|
+
setColor(palette.Alert, 'infoFilledBg', 'var(--mui-palette-info-main)');
|
|
16166
|
+
setColor(palette.Alert, 'successFilledBg', 'var(--mui-palette-success-main)');
|
|
16167
|
+
setColor(palette.Alert, 'warningFilledBg', 'var(--mui-palette-warning-main)');
|
|
16168
|
+
setColor(palette.Alert, 'errorFilledColor', lightPalette.getContrastText(palette.error.main));
|
|
16169
|
+
setColor(palette.Alert, 'infoFilledColor', lightPalette.getContrastText(palette.info.main));
|
|
16170
|
+
setColor(palette.Alert, 'successFilledColor', lightPalette.getContrastText(palette.success.main));
|
|
16171
|
+
setColor(palette.Alert, 'warningFilledColor', lightPalette.getContrastText(palette.warning.main));
|
|
16172
|
+
setColor(palette.Alert, 'errorStandardBg', lighten(palette.error.light, 0.9));
|
|
16173
|
+
setColor(palette.Alert, 'infoStandardBg', lighten(palette.info.light, 0.9));
|
|
16174
|
+
setColor(palette.Alert, 'successStandardBg', lighten(palette.success.light, 0.9));
|
|
16175
|
+
setColor(palette.Alert, 'warningStandardBg', lighten(palette.warning.light, 0.9));
|
|
16176
|
+
setColor(palette.Alert, 'errorIconColor', 'var(--mui-palette-error-light)');
|
|
16177
|
+
setColor(palette.Alert, 'infoIconColor', 'var(--mui-palette-info-light)');
|
|
16178
|
+
setColor(palette.Alert, 'successIconColor', 'var(--mui-palette-success-light)');
|
|
16179
|
+
setColor(palette.Alert, 'warningIconColor', 'var(--mui-palette-warning-light)');
|
|
16180
|
+
setColor(palette.AppBar, 'defaultBg', 'var(--mui-palette-grey-100)');
|
|
16181
|
+
setColor(palette.Avatar, 'defaultBg', 'var(--mui-palette-grey-400)');
|
|
16182
|
+
setColor(palette.Chip, 'defaultBorder', 'var(--mui-palette-grey-400)');
|
|
16183
|
+
setColor(palette.Chip, 'defaultAvatarColor', 'var(--mui-palette-grey-700)');
|
|
16184
|
+
setColor(palette.Chip, 'defaultIconColor', 'var(--mui-palette-grey-700)');
|
|
16185
|
+
setColor(palette.FilledInput, 'bg', 'rgba(0, 0, 0, 0.06)');
|
|
16186
|
+
setColor(palette.FilledInput, 'hoverBg', 'rgba(0, 0, 0, 0.09)');
|
|
16187
|
+
setColor(palette.FilledInput, 'disabledBg', 'rgba(0, 0, 0, 0.12)');
|
|
16188
|
+
setColor(palette.LinearProgress, 'primaryBg', lighten(palette.primary.main, 0.62));
|
|
16189
|
+
setColor(palette.LinearProgress, 'secondaryBg', lighten(palette.secondary.main, 0.62));
|
|
16190
|
+
setColor(palette.LinearProgress, 'errorBg', lighten(palette.error.main, 0.62));
|
|
16191
|
+
setColor(palette.LinearProgress, 'infoBg', lighten(palette.info.main, 0.62));
|
|
16192
|
+
setColor(palette.LinearProgress, 'successBg', lighten(palette.success.main, 0.62));
|
|
16193
|
+
setColor(palette.LinearProgress, 'warningBg', lighten(palette.warning.main, 0.62));
|
|
16194
|
+
setColor(palette.Skeleton, 'bg', 'rgba(var(--mui-palette-text-primaryChannel) / 0.11)');
|
|
16195
|
+
setColor(palette.Slider, 'primaryTrack', lighten(palette.primary.main, 0.62));
|
|
16196
|
+
setColor(palette.Slider, 'secondaryTrack', lighten(palette.secondary.main, 0.62));
|
|
16197
|
+
setColor(palette.Slider, 'errorTrack', lighten(palette.error.main, 0.62));
|
|
16198
|
+
setColor(palette.Slider, 'infoTrack', lighten(palette.info.main, 0.62));
|
|
16199
|
+
setColor(palette.Slider, 'successTrack', lighten(palette.success.main, 0.62));
|
|
16200
|
+
setColor(palette.Slider, 'warningTrack', lighten(palette.warning.main, 0.62));
|
|
16201
|
+
setColor(palette.SnackbarContent, 'bg', emphasize(palette.background.default, 0.8));
|
|
16202
|
+
setColor(palette.SpeedDialAction, 'fabHoverBg', emphasize(palette.background.paper, 0.15));
|
|
16203
|
+
setColor(palette.StepConnector, 'border', 'var(--mui-palette-grey-400)');
|
|
16204
|
+
setColor(palette.StepContent, 'border', 'var(--mui-palette-grey-400)');
|
|
16205
|
+
setColor(palette.Switch, 'defaultColor', 'var(--mui-palette-common-white)');
|
|
16206
|
+
setColor(palette.Switch, 'defaultDisabledColor', 'var(--mui-palette-grey-100)');
|
|
16207
|
+
setColor(palette.Switch, 'primaryDisabledColor', lighten(palette.primary.main, 0.62));
|
|
16208
|
+
setColor(palette.Switch, 'secondaryDisabledColor', lighten(palette.secondary.main, 0.62));
|
|
16209
|
+
setColor(palette.Switch, 'errorDisabledColor', lighten(palette.error.main, 0.62));
|
|
16210
|
+
setColor(palette.Switch, 'infoDisabledColor', lighten(palette.info.main, 0.62));
|
|
16211
|
+
setColor(palette.Switch, 'successDisabledColor', lighten(palette.success.main, 0.62));
|
|
16212
|
+
setColor(palette.Switch, 'warningDisabledColor', lighten(palette.warning.main, 0.62));
|
|
16213
|
+
setColor(palette.TableCell, 'border', lighten(alpha(palette.divider, 1), 0.88));
|
|
16214
|
+
setColor(palette.Tooltip, 'bg', alpha(palette.grey[700], 0.92));
|
|
15953
16215
|
} else {
|
|
15954
|
-
palette.
|
|
15955
|
-
palette.
|
|
16216
|
+
setColor(palette.Alert, 'errorColor', lighten(palette.error.light, 0.6));
|
|
16217
|
+
setColor(palette.Alert, 'infoColor', lighten(palette.info.light, 0.6));
|
|
16218
|
+
setColor(palette.Alert, 'successColor', lighten(palette.success.light, 0.6));
|
|
16219
|
+
setColor(palette.Alert, 'warningColor', lighten(palette.warning.light, 0.6));
|
|
16220
|
+
setColor(palette.Alert, 'errorFilledBg', 'var(--mui-palette-error-dark)');
|
|
16221
|
+
setColor(palette.Alert, 'infoFilledBg', 'var(--mui-palette-info-dark)');
|
|
16222
|
+
setColor(palette.Alert, 'successFilledBg', 'var(--mui-palette-success-dark)');
|
|
16223
|
+
setColor(palette.Alert, 'warningFilledBg', 'var(--mui-palette-warning-dark)');
|
|
16224
|
+
setColor(palette.Alert, 'errorFilledColor', darkPalette.getContrastText(palette.error.dark));
|
|
16225
|
+
setColor(palette.Alert, 'infoFilledColor', darkPalette.getContrastText(palette.info.dark));
|
|
16226
|
+
setColor(palette.Alert, 'successFilledColor', darkPalette.getContrastText(palette.success.dark));
|
|
16227
|
+
setColor(palette.Alert, 'warningFilledColor', darkPalette.getContrastText(palette.warning.dark));
|
|
16228
|
+
setColor(palette.Alert, 'errorStandardBg', darken(palette.error.light, 0.9));
|
|
16229
|
+
setColor(palette.Alert, 'infoStandardBg', darken(palette.info.light, 0.9));
|
|
16230
|
+
setColor(palette.Alert, 'successStandardBg', darken(palette.success.light, 0.9));
|
|
16231
|
+
setColor(palette.Alert, 'warningStandardBg', darken(palette.warning.light, 0.9));
|
|
16232
|
+
setColor(palette.Alert, 'errorIconColor', 'var(--mui-palette-error-main)');
|
|
16233
|
+
setColor(palette.Alert, 'infoIconColor', 'var(--mui-palette-info-main)');
|
|
16234
|
+
setColor(palette.Alert, 'successIconColor', 'var(--mui-palette-success-main)');
|
|
16235
|
+
setColor(palette.Alert, 'warningIconColor', 'var(--mui-palette-warning-main)');
|
|
16236
|
+
setColor(palette.AppBar, 'defaultBg', 'var(--mui-palette-grey-900)');
|
|
16237
|
+
setColor(palette.AppBar, 'darkBg', 'var(--mui-palette-background-paper)'); // specific for dark mode
|
|
16238
|
+
|
|
16239
|
+
setColor(palette.AppBar, 'darkColor', 'var(--mui-palette-text-primary)'); // specific for dark mode
|
|
16240
|
+
|
|
16241
|
+
setColor(palette.Avatar, 'defaultBg', 'var(--mui-palette-grey-600)');
|
|
16242
|
+
setColor(palette.Chip, 'defaultBorder', 'var(--mui-palette-grey-700)');
|
|
16243
|
+
setColor(palette.Chip, 'defaultAvatarColor', 'var(--mui-palette-grey-300)');
|
|
16244
|
+
setColor(palette.Chip, 'defaultIconColor', 'var(--mui-palette-grey-300)');
|
|
16245
|
+
setColor(palette.FilledInput, 'bg', 'rgba(255, 255, 255, 0.09)');
|
|
16246
|
+
setColor(palette.FilledInput, 'hoverBg', 'rgba(255, 255, 255, 0.13)');
|
|
16247
|
+
setColor(palette.FilledInput, 'disabledBg', 'rgba(255, 255, 255, 0.12)');
|
|
16248
|
+
setColor(palette.LinearProgress, 'primaryBg', darken(palette.primary.main, 0.5));
|
|
16249
|
+
setColor(palette.LinearProgress, 'secondaryBg', darken(palette.secondary.main, 0.5));
|
|
16250
|
+
setColor(palette.LinearProgress, 'errorBg', darken(palette.error.main, 0.5));
|
|
16251
|
+
setColor(palette.LinearProgress, 'infoBg', darken(palette.info.main, 0.5));
|
|
16252
|
+
setColor(palette.LinearProgress, 'successBg', darken(palette.success.main, 0.5));
|
|
16253
|
+
setColor(palette.LinearProgress, 'warningBg', darken(palette.warning.main, 0.5));
|
|
16254
|
+
setColor(palette.Skeleton, 'bg', 'rgba(var(--mui-palette-text-primaryChannel) / 0.13)');
|
|
16255
|
+
setColor(palette.Slider, 'primaryTrack', darken(palette.primary.main, 0.5));
|
|
16256
|
+
setColor(palette.Slider, 'secondaryTrack', darken(palette.secondary.main, 0.5));
|
|
16257
|
+
setColor(palette.Slider, 'errorTrack', darken(palette.error.main, 0.5));
|
|
16258
|
+
setColor(palette.Slider, 'infoTrack', darken(palette.info.main, 0.5));
|
|
16259
|
+
setColor(palette.Slider, 'successTrack', darken(palette.success.main, 0.5));
|
|
16260
|
+
setColor(palette.Slider, 'warningTrack', darken(palette.warning.main, 0.5));
|
|
16261
|
+
setColor(palette.SnackbarContent, 'bg', emphasize(palette.background.default, 0.98));
|
|
16262
|
+
setColor(palette.SpeedDialAction, 'fabHoverBg', emphasize(palette.background.paper, 0.15));
|
|
16263
|
+
setColor(palette.StepConnector, 'border', 'var(--mui-palette-grey-600)');
|
|
16264
|
+
setColor(palette.StepContent, 'border', 'var(--mui-palette-grey-600)');
|
|
16265
|
+
setColor(palette.Switch, 'defaultColor', 'var(--mui-palette-grey-300)');
|
|
16266
|
+
setColor(palette.Switch, 'defaultDisabledColor', 'var(--mui-palette-grey-600)');
|
|
16267
|
+
setColor(palette.Switch, 'primaryDisabledColor', darken(palette.primary.main, 0.55));
|
|
16268
|
+
setColor(palette.Switch, 'secondaryDisabledColor', darken(palette.secondary.main, 0.55));
|
|
16269
|
+
setColor(palette.Switch, 'errorDisabledColor', darken(palette.error.main, 0.55));
|
|
16270
|
+
setColor(palette.Switch, 'infoDisabledColor', darken(palette.info.main, 0.55));
|
|
16271
|
+
setColor(palette.Switch, 'successDisabledColor', darken(palette.success.main, 0.55));
|
|
16272
|
+
setColor(palette.Switch, 'warningDisabledColor', darken(palette.warning.main, 0.55));
|
|
16273
|
+
setColor(palette.TableCell, 'border', darken(alpha(palette.divider, 1), 0.68));
|
|
16274
|
+
setColor(palette.Tooltip, 'bg', alpha(palette.grey[700], 0.92));
|
|
15956
16275
|
}
|
|
15957
16276
|
|
|
15958
16277
|
palette.common.backgroundChannel = colorChannel(palette.common.background);
|
|
15959
16278
|
palette.common.onBackgroundChannel = colorChannel(palette.common.onBackground);
|
|
15960
|
-
palette.dividerChannel = colorChannel(palette.divider);
|
|
15961
|
-
// TODO: consider adding `main`, and `light` to palette.grey to make it consistent.
|
|
15962
|
-
|
|
15963
|
-
if (!palette.grey.dark) {
|
|
15964
|
-
palette.grey.dark = palette.grey[700];
|
|
15965
|
-
}
|
|
15966
|
-
|
|
16279
|
+
palette.dividerChannel = colorChannel(palette.divider);
|
|
15967
16280
|
Object.keys(palette).forEach(color => {
|
|
15968
16281
|
const colors = palette[color]; // Color palettes: primary, secondary, error, info, success, and warning
|
|
15969
16282
|
|
|
@@ -15990,12 +16303,16 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
15990
16303
|
|
|
15991
16304
|
if (colors.secondary) {
|
|
15992
16305
|
palette[color].secondaryChannel = colorChannel(colors.secondary);
|
|
15993
|
-
} // Action colors: action.
|
|
16306
|
+
} // Action colors: action.active, action.selected
|
|
15994
16307
|
|
|
15995
16308
|
|
|
15996
16309
|
if (colors.active) {
|
|
15997
16310
|
palette[color].activeChannel = colorChannel(colors.active);
|
|
15998
16311
|
}
|
|
16312
|
+
|
|
16313
|
+
if (colors.selected) {
|
|
16314
|
+
palette[color].selectedChannel = colorChannel(colors.selected);
|
|
16315
|
+
}
|
|
15999
16316
|
});
|
|
16000
16317
|
});
|
|
16001
16318
|
theme = args.reduce((acc, argument) => deepmerge(acc, argument), theme);
|
|
@@ -16016,7 +16333,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
16016
16333
|
light: 'light',
|
|
16017
16334
|
dark: 'dark'
|
|
16018
16335
|
},
|
|
16019
|
-
prefix: '
|
|
16336
|
+
prefix: 'mui',
|
|
16020
16337
|
resolveTheme: theme => {
|
|
16021
16338
|
const newTheme = _extends({}, theme, {
|
|
16022
16339
|
typography: createTypography(theme.palette, theme.typography)
|
|
@@ -16024,7 +16341,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
16024
16341
|
|
|
16025
16342
|
return newTheme;
|
|
16026
16343
|
},
|
|
16027
|
-
shouldSkipGeneratingVar: keys =>
|
|
16344
|
+
shouldSkipGeneratingVar: keys => {
|
|
16345
|
+
var _keys$;
|
|
16346
|
+
|
|
16347
|
+
return !!keys[0].match(/(typography|mixins|breakpoints|direction|transitions)/) || keys[0] === 'palette' && !!((_keys$ = keys[1]) != null && _keys$.match(/(mode|contrastThreshold|tonalOffset)/));
|
|
16348
|
+
}
|
|
16028
16349
|
});
|
|
16029
16350
|
|
|
16030
16351
|
function getSvgIconUtilityClass(slot) {
|
|
@@ -19566,22 +19887,30 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
19566
19887
|
display: 'flex',
|
|
19567
19888
|
padding: '6px 16px'
|
|
19568
19889
|
}, color && ownerState.variant === 'standard' && {
|
|
19569
|
-
color: getColor(theme.palette[color].light, 0.6),
|
|
19570
|
-
backgroundColor: getBackgroundColor(theme.palette[color].light, 0.9),
|
|
19571
|
-
[`& .${alertClasses$1.icon}`]: {
|
|
19890
|
+
color: theme.vars ? theme.vars.palette.Alert[`${color}Color`] : getColor(theme.palette[color].light, 0.6),
|
|
19891
|
+
backgroundColor: theme.vars ? theme.vars.palette.Alert[`${color}StandardBg`] : getBackgroundColor(theme.palette[color].light, 0.9),
|
|
19892
|
+
[`& .${alertClasses$1.icon}`]: theme.vars ? {
|
|
19893
|
+
color: theme.vars.palette.Alert[`${color}IconColor`]
|
|
19894
|
+
} : {
|
|
19572
19895
|
color: theme.palette.mode === 'dark' ? theme.palette[color].main : theme.palette[color].light
|
|
19573
19896
|
}
|
|
19574
19897
|
}, color && ownerState.variant === 'outlined' && {
|
|
19575
|
-
color: getColor(theme.palette[color].light, 0.6),
|
|
19576
|
-
border: `1px solid ${theme.palette[color].light}`,
|
|
19577
|
-
[`& .${alertClasses$1.icon}`]: {
|
|
19898
|
+
color: theme.vars ? theme.vars.palette.Alert[`${color}Color`] : getColor(theme.palette[color].light, 0.6),
|
|
19899
|
+
border: `1px solid ${(theme.vars || theme).palette[color].light}`,
|
|
19900
|
+
[`& .${alertClasses$1.icon}`]: theme.vars ? {
|
|
19901
|
+
color: theme.vars.palette.Alert[`${color}IconColor`]
|
|
19902
|
+
} : {
|
|
19578
19903
|
color: theme.palette.mode === 'dark' ? theme.palette[color].main : theme.palette[color].light
|
|
19579
19904
|
}
|
|
19580
|
-
}, color && ownerState.variant === 'filled' && {
|
|
19581
|
-
|
|
19582
|
-
|
|
19583
|
-
|
|
19584
|
-
|
|
19905
|
+
}, color && ownerState.variant === 'filled' && _extends({
|
|
19906
|
+
fontWeight: theme.typography.fontWeightMedium
|
|
19907
|
+
}, theme.vars ? {
|
|
19908
|
+
color: theme.vars.palette.Alert[`${color}FilledColor`],
|
|
19909
|
+
backgroundColor: theme.vars.palette.Alert[`${color}FilledBg`]
|
|
19910
|
+
} : {
|
|
19911
|
+
backgroundColor: theme.palette.mode === 'dark' ? theme.palette[color].dark : theme.palette[color].main,
|
|
19912
|
+
color: theme.palette.getContrastText(theme.palette.mode === 'dark' ? theme.palette[color].dark : theme.palette[color].main)
|
|
19913
|
+
}));
|
|
19585
19914
|
});
|
|
19586
19915
|
const AlertIcon = styled$1('div', {
|
|
19587
19916
|
name: 'MuiAlert',
|
|
@@ -20100,7 +20429,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
20100
20429
|
root: ['root', `color${capitalize(color)}`, `position${capitalize(position)}`]
|
|
20101
20430
|
};
|
|
20102
20431
|
return composeClasses(slots, getAppBarUtilityClass, classes);
|
|
20103
|
-
};
|
|
20432
|
+
}; // var2 is the fallback.
|
|
20433
|
+
// Ex. var1: 'var(--a)', var2: 'var(--b)'; return: 'var(--a, var(--b))'
|
|
20434
|
+
|
|
20435
|
+
|
|
20436
|
+
const joinVars = (var1, var2) => `${var1 == null ? void 0 : var1.replace(')', '')}, ${var2})`;
|
|
20104
20437
|
|
|
20105
20438
|
const AppBarRoot = styled$1(Paper$1, {
|
|
20106
20439
|
name: 'MuiAppBar',
|
|
@@ -20125,7 +20458,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
20125
20458
|
flexShrink: 0
|
|
20126
20459
|
}, ownerState.position === 'fixed' && {
|
|
20127
20460
|
position: 'fixed',
|
|
20128
|
-
zIndex: theme.zIndex.appBar,
|
|
20461
|
+
zIndex: (theme.vars || theme).zIndex.appBar,
|
|
20129
20462
|
top: 0,
|
|
20130
20463
|
left: 'auto',
|
|
20131
20464
|
right: 0,
|
|
@@ -20135,14 +20468,14 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
20135
20468
|
}
|
|
20136
20469
|
}, ownerState.position === 'absolute' && {
|
|
20137
20470
|
position: 'absolute',
|
|
20138
|
-
zIndex: theme.zIndex.appBar,
|
|
20471
|
+
zIndex: (theme.vars || theme).zIndex.appBar,
|
|
20139
20472
|
top: 0,
|
|
20140
20473
|
left: 'auto',
|
|
20141
20474
|
right: 0
|
|
20142
20475
|
}, ownerState.position === 'sticky' && {
|
|
20143
20476
|
// ⚠️ sticky is not supported by IE11.
|
|
20144
20477
|
position: 'sticky',
|
|
20145
|
-
zIndex: theme.zIndex.appBar,
|
|
20478
|
+
zIndex: (theme.vars || theme).zIndex.appBar,
|
|
20146
20479
|
top: 0,
|
|
20147
20480
|
left: 'auto',
|
|
20148
20481
|
right: 0
|
|
@@ -20150,7 +20483,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
20150
20483
|
position: 'static'
|
|
20151
20484
|
}, ownerState.position === 'relative' && {
|
|
20152
20485
|
position: 'relative'
|
|
20153
|
-
}, ownerState.color === 'default' && {
|
|
20486
|
+
}, !theme.vars && _extends({}, ownerState.color === 'default' && {
|
|
20154
20487
|
backgroundColor: backgroundColorDefault,
|
|
20155
20488
|
color: theme.palette.getContrastText(backgroundColorDefault)
|
|
20156
20489
|
}, ownerState.color && ownerState.color !== 'default' && ownerState.color !== 'inherit' && ownerState.color !== 'transparent' && {
|
|
@@ -20166,6 +20499,19 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
20166
20499
|
color: 'inherit'
|
|
20167
20500
|
}, theme.palette.mode === 'dark' && {
|
|
20168
20501
|
backgroundImage: 'none'
|
|
20502
|
+
})), theme.vars && _extends({}, ownerState.color === 'default' && {
|
|
20503
|
+
'--AppBar-background': ownerState.enableColorOnDark ? theme.vars.palette.AppBar.defaultBg : joinVars(theme.vars.palette.AppBar.darkBg, theme.vars.palette.AppBar.defaultBg),
|
|
20504
|
+
'--AppBar-color': ownerState.enableColorOnDark ? theme.vars.palette.text.primary : joinVars(theme.vars.palette.AppBar.darkColor, theme.vars.palette.text.primary)
|
|
20505
|
+
}, ownerState.color && !ownerState.color.match(/^(default|inherit|transparent)$/) && {
|
|
20506
|
+
'--AppBar-background': ownerState.enableColorOnDark ? theme.vars.palette[ownerState.color].main : joinVars(theme.vars.palette.AppBar.darkBg, theme.vars.palette[ownerState.color].main),
|
|
20507
|
+
'--AppBar-color': ownerState.enableColorOnDark ? theme.vars.palette[ownerState.color].contrastText : joinVars(theme.vars.palette.AppBar.darkColor, theme.vars.palette[ownerState.color].contrastText)
|
|
20508
|
+
}, {
|
|
20509
|
+
backgroundColor: 'var(--AppBar-background)',
|
|
20510
|
+
color: ownerState.color === 'inherit' ? 'inherit' : 'var(--AppBar-color)'
|
|
20511
|
+
}, ownerState.color === 'transparent' && {
|
|
20512
|
+
backgroundImage: 'none',
|
|
20513
|
+
backgroundColor: 'transparent',
|
|
20514
|
+
color: 'inherit'
|
|
20169
20515
|
}));
|
|
20170
20516
|
});
|
|
20171
20517
|
const AppBar = /*#__PURE__*/React__namespace.forwardRef(function AppBar(inProps, ref) {
|
|
@@ -20615,6 +20961,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
20615
20961
|
ownerState
|
|
20616
20962
|
}) => {
|
|
20617
20963
|
const deleteIconColor = alpha(theme.palette.text.primary, 0.26);
|
|
20964
|
+
const textColor = theme.palette.mode === 'light' ? theme.palette.grey[700] : theme.palette.grey[300];
|
|
20618
20965
|
return _extends({
|
|
20619
20966
|
maxWidth: '100%',
|
|
20620
20967
|
fontFamily: theme.typography.fontFamily,
|
|
@@ -20623,8 +20970,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
20623
20970
|
alignItems: 'center',
|
|
20624
20971
|
justifyContent: 'center',
|
|
20625
20972
|
height: 32,
|
|
20626
|
-
color: theme.palette.text.primary,
|
|
20627
|
-
backgroundColor: theme.palette.action.selected,
|
|
20973
|
+
color: (theme.vars || theme).palette.text.primary,
|
|
20974
|
+
backgroundColor: (theme.vars || theme).palette.action.selected,
|
|
20628
20975
|
borderRadius: 32 / 2,
|
|
20629
20976
|
whiteSpace: 'nowrap',
|
|
20630
20977
|
transition: theme.transitions.create(['background-color', 'box-shadow']),
|
|
@@ -20640,7 +20987,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
20640
20987
|
verticalAlign: 'middle',
|
|
20641
20988
|
boxSizing: 'border-box',
|
|
20642
20989
|
[`&.${chipClasses$1.disabled}`]: {
|
|
20643
|
-
opacity: theme.palette.action.disabledOpacity,
|
|
20990
|
+
opacity: (theme.vars || theme).palette.action.disabledOpacity,
|
|
20644
20991
|
pointerEvents: 'none'
|
|
20645
20992
|
},
|
|
20646
20993
|
[`& .${chipClasses$1.avatar}`]: {
|
|
@@ -20648,16 +20995,16 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
20648
20995
|
marginRight: -6,
|
|
20649
20996
|
width: 24,
|
|
20650
20997
|
height: 24,
|
|
20651
|
-
color: theme.
|
|
20998
|
+
color: theme.vars ? theme.vars.palette.Chip.defaultAvatarColor : textColor,
|
|
20652
20999
|
fontSize: theme.typography.pxToRem(12)
|
|
20653
21000
|
},
|
|
20654
21001
|
[`& .${chipClasses$1.avatarColorPrimary}`]: {
|
|
20655
|
-
color: theme.palette.primary.contrastText,
|
|
20656
|
-
backgroundColor: theme.palette.primary.dark
|
|
21002
|
+
color: (theme.vars || theme).palette.primary.contrastText,
|
|
21003
|
+
backgroundColor: (theme.vars || theme).palette.primary.dark
|
|
20657
21004
|
},
|
|
20658
21005
|
[`& .${chipClasses$1.avatarColorSecondary}`]: {
|
|
20659
|
-
color: theme.palette.secondary.contrastText,
|
|
20660
|
-
backgroundColor: theme.palette.secondary.dark
|
|
21006
|
+
color: (theme.vars || theme).palette.secondary.contrastText,
|
|
21007
|
+
backgroundColor: (theme.vars || theme).palette.secondary.dark
|
|
20661
21008
|
},
|
|
20662
21009
|
[`& .${chipClasses$1.avatarSmall}`]: {
|
|
20663
21010
|
marginLeft: 4,
|
|
@@ -20667,7 +21014,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
20667
21014
|
fontSize: theme.typography.pxToRem(10)
|
|
20668
21015
|
},
|
|
20669
21016
|
[`& .${chipClasses$1.icon}`]: _extends({
|
|
20670
|
-
color: theme.
|
|
21017
|
+
color: theme.vars ? theme.vars.palette.Chip.defaultIconColor : textColor,
|
|
20671
21018
|
marginLeft: 5,
|
|
20672
21019
|
marginRight: -6
|
|
20673
21020
|
}, ownerState.size === 'small' && {
|
|
@@ -20679,35 +21026,35 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
20679
21026
|
}),
|
|
20680
21027
|
[`& .${chipClasses$1.deleteIcon}`]: _extends({
|
|
20681
21028
|
WebkitTapHighlightColor: 'transparent',
|
|
20682
|
-
color: deleteIconColor,
|
|
21029
|
+
color: theme.vars ? `rgba(${theme.vars.palette.text.primaryChannel} / 0.26)` : deleteIconColor,
|
|
20683
21030
|
fontSize: 22,
|
|
20684
21031
|
cursor: 'pointer',
|
|
20685
21032
|
margin: '0 5px 0 -6px',
|
|
20686
21033
|
'&:hover': {
|
|
20687
|
-
color: alpha(deleteIconColor, 0.4)
|
|
21034
|
+
color: theme.vars ? `rgba(${theme.vars.palette.text.primaryChannel} / 0.4)` : alpha(deleteIconColor, 0.4)
|
|
20688
21035
|
}
|
|
20689
21036
|
}, ownerState.size === 'small' && {
|
|
20690
21037
|
fontSize: 16,
|
|
20691
21038
|
marginRight: 4,
|
|
20692
21039
|
marginLeft: -4
|
|
20693
21040
|
}, ownerState.color !== 'default' && {
|
|
20694
|
-
color: alpha(theme.palette[ownerState.color].contrastText, 0.7),
|
|
21041
|
+
color: theme.vars ? `rgba(${theme.vars.palette[ownerState.color].contrastTextChannel} / 0.7)` : alpha(theme.palette[ownerState.color].contrastText, 0.7),
|
|
20695
21042
|
'&:hover, &:active': {
|
|
20696
|
-
color: theme.palette[ownerState.color].contrastText
|
|
21043
|
+
color: (theme.vars || theme).palette[ownerState.color].contrastText
|
|
20697
21044
|
}
|
|
20698
21045
|
})
|
|
20699
21046
|
}, ownerState.size === 'small' && {
|
|
20700
21047
|
height: 24
|
|
20701
21048
|
}, ownerState.color !== 'default' && {
|
|
20702
|
-
backgroundColor: theme.palette[ownerState.color].main,
|
|
20703
|
-
color: theme.palette[ownerState.color].contrastText
|
|
21049
|
+
backgroundColor: (theme.vars || theme).palette[ownerState.color].main,
|
|
21050
|
+
color: (theme.vars || theme).palette[ownerState.color].contrastText
|
|
20704
21051
|
}, ownerState.onDelete && {
|
|
20705
21052
|
[`&.${chipClasses$1.focusVisible}`]: {
|
|
20706
|
-
backgroundColor: alpha(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
|
|
21053
|
+
backgroundColor: theme.vars ? `rgba(${theme.vars.palette.action.selectedChannel} / calc(${theme.vars.palette.action.selectedOpacity + theme.vars.palette.action.focusOpacity}))` : alpha(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
|
|
20707
21054
|
}
|
|
20708
21055
|
}, ownerState.onDelete && ownerState.color !== 'default' && {
|
|
20709
21056
|
[`&.${chipClasses$1.focusVisible}`]: {
|
|
20710
|
-
backgroundColor: theme.palette[ownerState.color].dark
|
|
21057
|
+
backgroundColor: (theme.vars || theme).palette[ownerState.color].dark
|
|
20711
21058
|
}
|
|
20712
21059
|
});
|
|
20713
21060
|
}, ({
|
|
@@ -20718,29 +21065,29 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
20718
21065
|
WebkitTapHighlightColor: 'transparent',
|
|
20719
21066
|
cursor: 'pointer',
|
|
20720
21067
|
'&:hover': {
|
|
20721
|
-
backgroundColor: alpha(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity)
|
|
21068
|
+
backgroundColor: theme.vars ? `rgba(${theme.vars.palette.action.selectedChannel} / calc(${theme.vars.palette.action.selectedOpacity + theme.vars.palette.action.hoverOpacity}))` : alpha(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity)
|
|
20722
21069
|
},
|
|
20723
21070
|
[`&.${chipClasses$1.focusVisible}`]: {
|
|
20724
|
-
backgroundColor: alpha(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
|
|
21071
|
+
backgroundColor: theme.vars ? `rgba(${theme.vars.palette.action.selectedChannel} / calc(${theme.vars.palette.action.selectedOpacity + theme.vars.palette.action.focusOpacity}))` : alpha(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
|
|
20725
21072
|
},
|
|
20726
21073
|
'&:active': {
|
|
20727
|
-
boxShadow: theme.shadows[1]
|
|
21074
|
+
boxShadow: (theme.vars || theme).shadows[1]
|
|
20728
21075
|
}
|
|
20729
21076
|
}, ownerState.clickable && ownerState.color !== 'default' && {
|
|
20730
21077
|
[`&:hover, &.${chipClasses$1.focusVisible}`]: {
|
|
20731
|
-
backgroundColor: theme.palette[ownerState.color].dark
|
|
21078
|
+
backgroundColor: (theme.vars || theme).palette[ownerState.color].dark
|
|
20732
21079
|
}
|
|
20733
21080
|
}), ({
|
|
20734
21081
|
theme,
|
|
20735
21082
|
ownerState
|
|
20736
21083
|
}) => _extends({}, ownerState.variant === 'outlined' && {
|
|
20737
21084
|
backgroundColor: 'transparent',
|
|
20738
|
-
border: `1px solid ${theme.palette.mode === 'light' ? theme.palette.grey[400] : theme.palette.grey[700]}`,
|
|
21085
|
+
border: theme.vars ? `1px solid ${theme.vars.palette.Chip.defaultBorder}` : `1px solid ${theme.palette.mode === 'light' ? theme.palette.grey[400] : theme.palette.grey[700]}`,
|
|
20739
21086
|
[`&.${chipClasses$1.clickable}:hover`]: {
|
|
20740
|
-
backgroundColor: theme.palette.action.hover
|
|
21087
|
+
backgroundColor: (theme.vars || theme).palette.action.hover
|
|
20741
21088
|
},
|
|
20742
21089
|
[`&.${chipClasses$1.focusVisible}`]: {
|
|
20743
|
-
backgroundColor: theme.palette.action.focus
|
|
21090
|
+
backgroundColor: (theme.vars || theme).palette.action.focus
|
|
20744
21091
|
},
|
|
20745
21092
|
[`& .${chipClasses$1.avatar}`]: {
|
|
20746
21093
|
marginLeft: 4
|
|
@@ -20761,18 +21108,18 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
20761
21108
|
marginRight: 3
|
|
20762
21109
|
}
|
|
20763
21110
|
}, ownerState.variant === 'outlined' && ownerState.color !== 'default' && {
|
|
20764
|
-
color: theme.palette[ownerState.color].main,
|
|
20765
|
-
border: `1px solid ${alpha(theme.palette[ownerState.color].main, 0.7)}`,
|
|
21111
|
+
color: (theme.vars || theme).palette[ownerState.color].main,
|
|
21112
|
+
border: `1px solid ${theme.vars ? `rgba(${theme.vars.palette[ownerState.color].mainChannel} / 0.7)` : alpha(theme.palette[ownerState.color].main, 0.7)}`,
|
|
20766
21113
|
[`&.${chipClasses$1.clickable}:hover`]: {
|
|
20767
|
-
backgroundColor: alpha(theme.palette[ownerState.color].main, theme.palette.action.hoverOpacity)
|
|
21114
|
+
backgroundColor: theme.vars ? `rgba(${theme.vars.palette[ownerState.color].mainChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(theme.palette[ownerState.color].main, theme.palette.action.hoverOpacity)
|
|
20768
21115
|
},
|
|
20769
21116
|
[`&.${chipClasses$1.focusVisible}`]: {
|
|
20770
|
-
backgroundColor: alpha(theme.palette[ownerState.color].main, theme.palette.action.focusOpacity)
|
|
21117
|
+
backgroundColor: theme.vars ? `rgba(${theme.vars.palette[ownerState.color].mainChannel} / ${theme.vars.palette.action.focusOpacity})` : alpha(theme.palette[ownerState.color].main, theme.palette.action.focusOpacity)
|
|
20771
21118
|
},
|
|
20772
21119
|
[`& .${chipClasses$1.deleteIcon}`]: {
|
|
20773
|
-
color: alpha(theme.palette[ownerState.color].main, 0.7),
|
|
21120
|
+
color: theme.vars ? `rgba(${theme.vars.palette[ownerState.color].mainChannel} / 0.7)` : alpha(theme.palette[ownerState.color].main, 0.7),
|
|
20774
21121
|
'&:hover, &:active': {
|
|
20775
|
-
color: theme.palette[ownerState.color].main
|
|
21122
|
+
color: (theme.vars || theme).palette[ownerState.color].main
|
|
20776
21123
|
}
|
|
20777
21124
|
}
|
|
20778
21125
|
}));
|
|
@@ -21236,7 +21583,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
21236
21583
|
const placeholder = _extends({
|
|
21237
21584
|
color: 'currentColor'
|
|
21238
21585
|
}, theme.vars ? {
|
|
21239
|
-
opacity: theme.vars.opacity.
|
|
21586
|
+
opacity: theme.vars.opacity.inputPlaceholder
|
|
21240
21587
|
} : {
|
|
21241
21588
|
opacity: light ? 0.42 : 0.5
|
|
21242
21589
|
}, {
|
|
@@ -21249,7 +21596,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
21249
21596
|
opacity: '0 !important'
|
|
21250
21597
|
};
|
|
21251
21598
|
const placeholderVisible = theme.vars ? {
|
|
21252
|
-
opacity: theme.vars.opacity.
|
|
21599
|
+
opacity: theme.vars.opacity.inputPlaceholder
|
|
21253
21600
|
} : {
|
|
21254
21601
|
opacity: light ? 0.42 : 0.5
|
|
21255
21602
|
};
|
|
@@ -23026,13 +23373,16 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
23026
23373
|
overflow: 'hidden',
|
|
23027
23374
|
userSelect: 'none'
|
|
23028
23375
|
}, ownerState.variant === 'rounded' && {
|
|
23029
|
-
borderRadius: theme.shape.borderRadius
|
|
23376
|
+
borderRadius: (theme.vars || theme).shape.borderRadius
|
|
23030
23377
|
}, ownerState.variant === 'square' && {
|
|
23031
23378
|
borderRadius: 0
|
|
23032
|
-
}, ownerState.colorDefault && {
|
|
23033
|
-
color: theme.palette.background.default
|
|
23379
|
+
}, ownerState.colorDefault && _extends({
|
|
23380
|
+
color: (theme.vars || theme).palette.background.default
|
|
23381
|
+
}, theme.vars ? {
|
|
23382
|
+
backgroundColor: theme.vars.palette.Avatar.defaultBg
|
|
23383
|
+
} : {
|
|
23034
23384
|
backgroundColor: theme.palette.mode === 'light' ? theme.palette.grey[400] : theme.palette.grey[600]
|
|
23035
|
-
}));
|
|
23385
|
+
})));
|
|
23036
23386
|
const AvatarImg = styled$1('img', {
|
|
23037
23387
|
name: 'MuiAvatar',
|
|
23038
23388
|
slot: 'Img',
|
|
@@ -24143,8 +24493,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
24143
24493
|
* @default {}
|
|
24144
24494
|
*/
|
|
24145
24495
|
componentsProps: PropTypes.shape({
|
|
24146
|
-
badge: PropTypes.object,
|
|
24147
|
-
root: PropTypes.object
|
|
24496
|
+
badge: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
24497
|
+
root: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
24148
24498
|
}),
|
|
24149
24499
|
|
|
24150
24500
|
/**
|
|
@@ -24827,7 +25177,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
24827
25177
|
function getButtonUtilityClass(slot) {
|
|
24828
25178
|
return generateUtilityClass('MuiButton', slot);
|
|
24829
25179
|
}
|
|
24830
|
-
const buttonClasses = generateUtilityClasses('MuiButton', ['root', 'text', 'textInherit', 'textPrimary', 'textSecondary', 'outlined', 'outlinedInherit', 'outlinedPrimary', 'outlinedSecondary', 'contained', 'containedInherit', 'containedPrimary', 'containedSecondary', 'disableElevation', 'focusVisible', 'disabled', 'colorInherit', 'textSizeSmall', 'textSizeMedium', 'textSizeLarge', 'outlinedSizeSmall', 'outlinedSizeMedium', 'outlinedSizeLarge', 'containedSizeSmall', 'containedSizeMedium', 'containedSizeLarge', 'sizeMedium', 'sizeSmall', 'sizeLarge', 'fullWidth', 'startIcon', 'endIcon', 'iconSizeSmall', 'iconSizeMedium', 'iconSizeLarge']);
|
|
25180
|
+
const buttonClasses = generateUtilityClasses('MuiButton', ['root', 'text', 'textInherit', 'textPrimary', 'textSecondary', 'textSuccess', 'textError', 'textInfo', 'textWarning', 'outlined', 'outlinedInherit', 'outlinedPrimary', 'outlinedSecondary', 'outlinedSuccess', 'outlinedError', 'outlinedInfo', 'outlinedWarning', 'contained', 'containedInherit', 'containedPrimary', 'containedSecondary', 'containedSuccess', 'containedError', 'containedInfo', 'containedWarning', 'disableElevation', 'focusVisible', 'disabled', 'colorInherit', 'textSizeSmall', 'textSizeMedium', 'textSizeLarge', 'outlinedSizeSmall', 'outlinedSizeMedium', 'outlinedSizeLarge', 'containedSizeSmall', 'containedSizeMedium', 'containedSizeLarge', 'sizeMedium', 'sizeSmall', 'sizeLarge', 'fullWidth', 'startIcon', 'endIcon', 'iconSizeSmall', 'iconSizeMedium', 'iconSizeLarge']);
|
|
24831
25181
|
var buttonClasses$1 = buttonClasses;
|
|
24832
25182
|
|
|
24833
25183
|
/**
|
|
@@ -27282,7 +27632,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
27282
27632
|
};
|
|
27283
27633
|
}
|
|
27284
27634
|
|
|
27285
|
-
const _excluded$1t = ["BackdropComponent", "closeAfterTransition", "children", "components", "componentsProps", "disableAutoFocus", "disableEnforceFocus", "disableEscapeKeyDown", "disablePortal", "disableRestoreFocus", "disableScrollLock", "hideBackdrop", "keepMounted"];
|
|
27635
|
+
const _excluded$1t = ["BackdropComponent", "BackdropProps", "closeAfterTransition", "children", "component", "components", "componentsProps", "disableAutoFocus", "disableEnforceFocus", "disableEscapeKeyDown", "disablePortal", "disableRestoreFocus", "disableScrollLock", "hideBackdrop", "keepMounted", "theme"];
|
|
27286
27636
|
const modalClasses = modalUnstyledClasses$1;
|
|
27287
27637
|
|
|
27288
27638
|
const extendUtilityClasses$1 = ownerState => {
|
|
@@ -27335,7 +27685,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
27335
27685
|
*/
|
|
27336
27686
|
|
|
27337
27687
|
const Modal = /*#__PURE__*/React__namespace.forwardRef(function Modal(inProps, ref) {
|
|
27338
|
-
var
|
|
27688
|
+
var _ref, _components$Root;
|
|
27339
27689
|
|
|
27340
27690
|
const props = useThemeProps({
|
|
27341
27691
|
name: 'MuiModal',
|
|
@@ -27344,8 +27694,10 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
27344
27694
|
|
|
27345
27695
|
const {
|
|
27346
27696
|
BackdropComponent = ModalBackdrop,
|
|
27697
|
+
BackdropProps,
|
|
27347
27698
|
closeAfterTransition = false,
|
|
27348
27699
|
children,
|
|
27700
|
+
component,
|
|
27349
27701
|
components = {},
|
|
27350
27702
|
componentsProps = {},
|
|
27351
27703
|
disableAutoFocus = false,
|
|
@@ -27355,7 +27707,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
27355
27707
|
disableRestoreFocus = false,
|
|
27356
27708
|
disableScrollLock = false,
|
|
27357
27709
|
hideBackdrop = false,
|
|
27358
|
-
keepMounted = false
|
|
27710
|
+
keepMounted = false,
|
|
27711
|
+
// eslint-disable-next-line react/prop-types
|
|
27712
|
+
theme
|
|
27359
27713
|
} = props,
|
|
27360
27714
|
other = _objectWithoutPropertiesLoose(props, _excluded$1t);
|
|
27361
27715
|
|
|
@@ -27377,16 +27731,19 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
27377
27731
|
});
|
|
27378
27732
|
|
|
27379
27733
|
const classes = extendUtilityClasses$1(ownerState);
|
|
27734
|
+
const Root = (_ref = (_components$Root = components.Root) != null ? _components$Root : component) != null ? _ref : ModalRoot;
|
|
27380
27735
|
return /*#__PURE__*/jsxRuntime_1(ModalUnstyled$1, _extends({
|
|
27381
27736
|
components: _extends({
|
|
27382
|
-
Root
|
|
27737
|
+
Root,
|
|
27738
|
+
Backdrop: BackdropComponent
|
|
27383
27739
|
}, components),
|
|
27384
27740
|
componentsProps: {
|
|
27385
|
-
root: _extends({}, componentsProps.root,
|
|
27386
|
-
|
|
27387
|
-
|
|
27741
|
+
root: _extends({}, componentsProps.root, !isHostComponent(Root) && {
|
|
27742
|
+
as: component,
|
|
27743
|
+
theme
|
|
27744
|
+
}),
|
|
27745
|
+
backdrop: _extends({}, BackdropProps, componentsProps.backdrop)
|
|
27388
27746
|
},
|
|
27389
|
-
BackdropComponent: BackdropComponent,
|
|
27390
27747
|
onTransitionEnter: () => setExited(false),
|
|
27391
27748
|
onTransitionExited: () => setExited(true),
|
|
27392
27749
|
ref: ref
|
|
@@ -27406,6 +27763,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
27406
27763
|
|
|
27407
27764
|
/**
|
|
27408
27765
|
* A backdrop component. This prop enables custom backdrop rendering.
|
|
27766
|
+
* @deprecated Use `components.Backdrop` instead.
|
|
27409
27767
|
* @default styled(Backdrop, {
|
|
27410
27768
|
* name: 'MuiModal',
|
|
27411
27769
|
* slot: 'Backdrop',
|
|
@@ -27420,6 +27778,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
27420
27778
|
|
|
27421
27779
|
/**
|
|
27422
27780
|
* Props applied to the [`Backdrop`](/material-ui/api/backdrop/) element.
|
|
27781
|
+
* @deprecated Use `componentsProps.backdrop` instead.
|
|
27423
27782
|
*/
|
|
27424
27783
|
BackdropProps: PropTypes.object,
|
|
27425
27784
|
|
|
@@ -27439,12 +27798,19 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
27439
27798
|
*/
|
|
27440
27799
|
closeAfterTransition: PropTypes.bool,
|
|
27441
27800
|
|
|
27801
|
+
/**
|
|
27802
|
+
* The component used for the root node.
|
|
27803
|
+
* Either a string to use a HTML element or a component.
|
|
27804
|
+
*/
|
|
27805
|
+
component: PropTypes.elementType,
|
|
27806
|
+
|
|
27442
27807
|
/**
|
|
27443
27808
|
* The components used for each slot inside the Modal.
|
|
27444
27809
|
* Either a string to use a HTML element or a component.
|
|
27445
27810
|
* @default {}
|
|
27446
27811
|
*/
|
|
27447
27812
|
components: PropTypes.shape({
|
|
27813
|
+
Backdrop: PropTypes.elementType,
|
|
27448
27814
|
Root: PropTypes.elementType
|
|
27449
27815
|
}),
|
|
27450
27816
|
|
|
@@ -27453,6 +27819,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
27453
27819
|
* @default {}
|
|
27454
27820
|
*/
|
|
27455
27821
|
componentsProps: PropTypes.shape({
|
|
27822
|
+
backdrop: PropTypes.object,
|
|
27456
27823
|
root: PropTypes.object
|
|
27457
27824
|
}),
|
|
27458
27825
|
|
|
@@ -27676,7 +28043,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
27676
28043
|
maxWidth: 'calc(100% - 64px)'
|
|
27677
28044
|
}
|
|
27678
28045
|
}
|
|
27679
|
-
}, ownerState.maxWidth !== 'xs' && {
|
|
28046
|
+
}, ownerState.maxWidth && ownerState.maxWidth !== 'xs' && {
|
|
27680
28047
|
maxWidth: `${theme.breakpoints.values[ownerState.maxWidth]}${theme.breakpoints.unit}`,
|
|
27681
28048
|
[`&.${dialogClasses$1.paperScrollBody}`]: {
|
|
27682
28049
|
[theme.breakpoints.down(theme.breakpoints.values[ownerState.maxWidth] + 32 * 2)]: {
|
|
@@ -27777,12 +28144,16 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
27777
28144
|
}, [ariaLabelledby]);
|
|
27778
28145
|
return /*#__PURE__*/jsxRuntime_1(DialogRoot, _extends({
|
|
27779
28146
|
className: clsx(classes.root, className),
|
|
27780
|
-
BackdropProps: _extends({
|
|
27781
|
-
transitionDuration,
|
|
27782
|
-
as: BackdropComponent
|
|
27783
|
-
}, BackdropProps),
|
|
27784
28147
|
closeAfterTransition: true,
|
|
27785
|
-
|
|
28148
|
+
components: {
|
|
28149
|
+
Backdrop: DialogBackdrop
|
|
28150
|
+
},
|
|
28151
|
+
componentsProps: {
|
|
28152
|
+
backdrop: _extends({
|
|
28153
|
+
transitionDuration,
|
|
28154
|
+
as: BackdropComponent
|
|
28155
|
+
}, BackdropProps)
|
|
28156
|
+
},
|
|
27786
28157
|
disableEscapeKeyDown: disableEscapeKeyDown,
|
|
27787
28158
|
onClose: onClose,
|
|
27788
28159
|
open: open,
|
|
@@ -27838,6 +28209,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
27838
28209
|
|
|
27839
28210
|
/**
|
|
27840
28211
|
* A backdrop component. This prop enables custom backdrop rendering.
|
|
28212
|
+
* @deprecated Use `components.Backdrop` instead.
|
|
27841
28213
|
* @default styled(Backdrop, {
|
|
27842
28214
|
* name: 'MuiModal',
|
|
27843
28215
|
* slot: 'Backdrop',
|
|
@@ -29552,36 +29924,38 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
29552
29924
|
theme,
|
|
29553
29925
|
ownerState
|
|
29554
29926
|
}) => {
|
|
29555
|
-
var
|
|
29927
|
+
var _palette;
|
|
29556
29928
|
|
|
29557
29929
|
const light = theme.palette.mode === 'light';
|
|
29558
29930
|
const bottomLineColor = light ? 'rgba(0, 0, 0, 0.42)' : 'rgba(255, 255, 255, 0.7)';
|
|
29559
29931
|
const backgroundColor = light ? 'rgba(0, 0, 0, 0.06)' : 'rgba(255, 255, 255, 0.09)';
|
|
29932
|
+
const hoverBackground = light ? 'rgba(0, 0, 0, 0.09)' : 'rgba(255, 255, 255, 0.13)';
|
|
29933
|
+
const disabledBackground = light ? 'rgba(0, 0, 0, 0.12)' : 'rgba(255, 255, 255, 0.12)';
|
|
29560
29934
|
return _extends({
|
|
29561
29935
|
position: 'relative',
|
|
29562
|
-
backgroundColor,
|
|
29563
|
-
borderTopLeftRadius: theme.shape.borderRadius,
|
|
29564
|
-
borderTopRightRadius: theme.shape.borderRadius,
|
|
29936
|
+
backgroundColor: theme.vars ? theme.vars.palette.FilledInput.bg : backgroundColor,
|
|
29937
|
+
borderTopLeftRadius: (theme.vars || theme).shape.borderRadius,
|
|
29938
|
+
borderTopRightRadius: (theme.vars || theme).shape.borderRadius,
|
|
29565
29939
|
transition: theme.transitions.create('background-color', {
|
|
29566
29940
|
duration: theme.transitions.duration.shorter,
|
|
29567
29941
|
easing: theme.transitions.easing.easeOut
|
|
29568
29942
|
}),
|
|
29569
29943
|
'&:hover': {
|
|
29570
|
-
backgroundColor:
|
|
29944
|
+
backgroundColor: theme.vars ? theme.vars.palette.FilledInput.hoverBg : hoverBackground,
|
|
29571
29945
|
// Reset on touch devices, it doesn't add specificity
|
|
29572
29946
|
'@media (hover: none)': {
|
|
29573
|
-
backgroundColor
|
|
29947
|
+
backgroundColor: theme.vars ? theme.vars.palette.FilledInput.bg : backgroundColor
|
|
29574
29948
|
}
|
|
29575
29949
|
},
|
|
29576
29950
|
[`&.${filledInputClasses$1.focused}`]: {
|
|
29577
|
-
backgroundColor
|
|
29951
|
+
backgroundColor: theme.vars ? theme.vars.palette.FilledInput.bg : backgroundColor
|
|
29578
29952
|
},
|
|
29579
29953
|
[`&.${filledInputClasses$1.disabled}`]: {
|
|
29580
|
-
backgroundColor:
|
|
29954
|
+
backgroundColor: theme.vars ? theme.vars.palette.FilledInput.disabledBg : disabledBackground
|
|
29581
29955
|
}
|
|
29582
29956
|
}, !ownerState.disableUnderline && {
|
|
29583
29957
|
'&:after': {
|
|
29584
|
-
borderBottom: `2px solid ${(
|
|
29958
|
+
borderBottom: `2px solid ${(_palette = (theme.vars || theme).palette[ownerState.color || 'primary']) == null ? void 0 : _palette.main}`,
|
|
29585
29959
|
left: 0,
|
|
29586
29960
|
bottom: 0,
|
|
29587
29961
|
// Doing the other way around crash on IE11 "''" https://github.com/cssinjs/jss/issues/242
|
|
@@ -29602,12 +29976,12 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
29602
29976
|
transform: 'scaleX(1) translateX(0)'
|
|
29603
29977
|
},
|
|
29604
29978
|
[`&.${filledInputClasses$1.error}:after`]: {
|
|
29605
|
-
borderBottomColor: theme.palette.error.main,
|
|
29979
|
+
borderBottomColor: (theme.vars || theme).palette.error.main,
|
|
29606
29980
|
transform: 'scaleX(1)' // error is always underlined in red
|
|
29607
29981
|
|
|
29608
29982
|
},
|
|
29609
29983
|
'&:before': {
|
|
29610
|
-
borderBottom: `1px solid ${bottomLineColor}`,
|
|
29984
|
+
borderBottom: `1px solid ${theme.vars ? `rgba(${theme.vars.palette.common.onBackgroundChannel} / ${theme.vars.opacity.inputUnderline})` : bottomLineColor}`,
|
|
29611
29985
|
left: 0,
|
|
29612
29986
|
bottom: 0,
|
|
29613
29987
|
// Doing the other way around crash on IE11 "''" https://github.com/cssinjs/jss/issues/242
|
|
@@ -29621,7 +29995,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
29621
29995
|
|
|
29622
29996
|
},
|
|
29623
29997
|
[`&:hover:not(.${filledInputClasses$1.disabled}):before`]: {
|
|
29624
|
-
borderBottom: `1px solid ${theme.palette.text.primary}`
|
|
29998
|
+
borderBottom: `1px solid ${(theme.vars || theme).palette.text.primary}`
|
|
29625
29999
|
},
|
|
29626
30000
|
[`&.${filledInputClasses$1.disabled}:before`]: {
|
|
29627
30001
|
borderBottomStyle: 'dotted'
|
|
@@ -29651,7 +30025,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
29651
30025
|
paddingTop: 25,
|
|
29652
30026
|
paddingRight: 12,
|
|
29653
30027
|
paddingBottom: 8,
|
|
29654
|
-
paddingLeft: 12
|
|
30028
|
+
paddingLeft: 12
|
|
30029
|
+
}, !theme.vars && {
|
|
29655
30030
|
'&:-webkit-autofill': {
|
|
29656
30031
|
WebkitBoxShadow: theme.palette.mode === 'light' ? null : '0 0 0 100px #266798 inset',
|
|
29657
30032
|
WebkitTextFillColor: theme.palette.mode === 'light' ? null : '#fff',
|
|
@@ -29659,6 +30034,18 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
29659
30034
|
borderTopLeftRadius: 'inherit',
|
|
29660
30035
|
borderTopRightRadius: 'inherit'
|
|
29661
30036
|
}
|
|
30037
|
+
}, theme.vars && {
|
|
30038
|
+
'&:-webkit-autofill': {
|
|
30039
|
+
borderTopLeftRadius: 'inherit',
|
|
30040
|
+
borderTopRightRadius: 'inherit'
|
|
30041
|
+
},
|
|
30042
|
+
[theme.getColorSchemeSelector('dark')]: {
|
|
30043
|
+
'&:-webkit-autofill': {
|
|
30044
|
+
WebkitBoxShadow: '0 0 0 100px #266798 inset',
|
|
30045
|
+
WebkitTextFillColor: '#fff',
|
|
30046
|
+
caretColor: '#fff'
|
|
30047
|
+
}
|
|
30048
|
+
}
|
|
29662
30049
|
}, ownerState.size === 'small' && {
|
|
29663
30050
|
paddingTop: 21,
|
|
29664
30051
|
paddingBottom: 4
|
|
@@ -30968,7 +31355,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
30968
31355
|
...GRID_SIZES.map(size => `grid-xs-${size}`), ...GRID_SIZES.map(size => `grid-sm-${size}`), ...GRID_SIZES.map(size => `grid-md-${size}`), ...GRID_SIZES.map(size => `grid-lg-${size}`), ...GRID_SIZES.map(size => `grid-xl-${size}`)]);
|
|
30969
31356
|
var gridClasses$1 = gridClasses;
|
|
30970
31357
|
|
|
30971
|
-
const _excluded$1d = ["className", "columns", "columnSpacing", "component", "container", "direction", "item", "
|
|
31358
|
+
const _excluded$1d = ["className", "columns", "columnSpacing", "component", "container", "direction", "item", "rowSpacing", "spacing", "wrap", "zeroMinWidth"];
|
|
30972
31359
|
|
|
30973
31360
|
function getOffset(val) {
|
|
30974
31361
|
const parse = parseFloat(val);
|
|
@@ -31148,26 +31535,27 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
31148
31535
|
|
|
31149
31536
|
return styles;
|
|
31150
31537
|
}
|
|
31151
|
-
function
|
|
31152
|
-
//
|
|
31153
|
-
if (!
|
|
31538
|
+
function resolveSpacingStyles(spacing, breakpoints, styles = {}) {
|
|
31539
|
+
// undefined/null or `spacing` <= 0
|
|
31540
|
+
if (!spacing || spacing <= 0) {
|
|
31154
31541
|
return [];
|
|
31155
31542
|
} // in case of string/number `spacing`
|
|
31156
31543
|
|
|
31157
31544
|
|
|
31158
31545
|
if (typeof spacing === 'string' && !Number.isNaN(Number(spacing)) || typeof spacing === 'number') {
|
|
31159
|
-
return [styles[`spacing-xs-${String(spacing)}`]
|
|
31546
|
+
return [styles[`spacing-xs-${String(spacing)}`]];
|
|
31160
31547
|
} // in case of object `spacing`
|
|
31161
31548
|
|
|
31162
31549
|
|
|
31163
|
-
const
|
|
31164
|
-
|
|
31165
|
-
|
|
31166
|
-
|
|
31167
|
-
|
|
31168
|
-
|
|
31169
|
-
|
|
31170
|
-
|
|
31550
|
+
const spacingStyles = [];
|
|
31551
|
+
breakpoints.forEach(breakpoint => {
|
|
31552
|
+
const value = spacing[breakpoint];
|
|
31553
|
+
|
|
31554
|
+
if (Number(value) > 0) {
|
|
31555
|
+
spacingStyles.push(styles[`spacing-${breakpoint}-${String(value)}`]);
|
|
31556
|
+
}
|
|
31557
|
+
});
|
|
31558
|
+
return spacingStyles;
|
|
31171
31559
|
} // Default CSS values
|
|
31172
31560
|
// flex: '0 1 auto',
|
|
31173
31561
|
// flexDirection: 'row',
|
|
@@ -31179,20 +31567,33 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
31179
31567
|
name: 'MuiGrid',
|
|
31180
31568
|
slot: 'Root',
|
|
31181
31569
|
overridesResolver: (props, styles) => {
|
|
31570
|
+
const {
|
|
31571
|
+
ownerState
|
|
31572
|
+
} = props;
|
|
31182
31573
|
const {
|
|
31183
31574
|
container,
|
|
31184
31575
|
direction,
|
|
31185
31576
|
item,
|
|
31186
|
-
lg,
|
|
31187
|
-
md,
|
|
31188
|
-
sm,
|
|
31189
31577
|
spacing,
|
|
31190
31578
|
wrap,
|
|
31191
|
-
|
|
31192
|
-
|
|
31193
|
-
|
|
31194
|
-
|
|
31195
|
-
|
|
31579
|
+
zeroMinWidth,
|
|
31580
|
+
breakpoints
|
|
31581
|
+
} = ownerState;
|
|
31582
|
+
let spacingStyles = []; // in case of grid item
|
|
31583
|
+
|
|
31584
|
+
if (container) {
|
|
31585
|
+
spacingStyles = resolveSpacingStyles(spacing, breakpoints, styles);
|
|
31586
|
+
}
|
|
31587
|
+
|
|
31588
|
+
const breakpointsStyles = [];
|
|
31589
|
+
breakpoints.forEach(breakpoint => {
|
|
31590
|
+
const value = ownerState[breakpoint];
|
|
31591
|
+
|
|
31592
|
+
if (value) {
|
|
31593
|
+
breakpointsStyles.push(styles[`grid-${breakpoint}-${String(value)}`]);
|
|
31594
|
+
}
|
|
31595
|
+
});
|
|
31596
|
+
return [styles.root, container && styles.container, item && styles.item, zeroMinWidth && styles.zeroMinWidth, ...spacingStyles, direction !== 'row' && styles[`direction-xs-${String(direction)}`], wrap !== 'wrap' && styles[`wrap-xs-${String(wrap)}`], ...breakpointsStyles];
|
|
31196
31597
|
}
|
|
31197
31598
|
})(({
|
|
31198
31599
|
ownerState
|
|
@@ -31210,6 +31611,29 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
31210
31611
|
}, ownerState.wrap !== 'wrap' && {
|
|
31211
31612
|
flexWrap: ownerState.wrap
|
|
31212
31613
|
}), generateDirection, generateRowGap, generateColumnGap, generateGrid);
|
|
31614
|
+
function resolveSpacingClasses(spacing, breakpoints) {
|
|
31615
|
+
// undefined/null or `spacing` <= 0
|
|
31616
|
+
if (!spacing || spacing <= 0) {
|
|
31617
|
+
return [];
|
|
31618
|
+
} // in case of string/number `spacing`
|
|
31619
|
+
|
|
31620
|
+
|
|
31621
|
+
if (typeof spacing === 'string' && !Number.isNaN(Number(spacing)) || typeof spacing === 'number') {
|
|
31622
|
+
return [`spacing-xs-${String(spacing)}`];
|
|
31623
|
+
} // in case of object `spacing`
|
|
31624
|
+
|
|
31625
|
+
|
|
31626
|
+
const classes = [];
|
|
31627
|
+
breakpoints.forEach(breakpoint => {
|
|
31628
|
+
const value = spacing[breakpoint];
|
|
31629
|
+
|
|
31630
|
+
if (Number(value) > 0) {
|
|
31631
|
+
const className = `spacing-${breakpoint}-${String(value)}`;
|
|
31632
|
+
classes.push(className);
|
|
31633
|
+
}
|
|
31634
|
+
});
|
|
31635
|
+
return classes;
|
|
31636
|
+
}
|
|
31213
31637
|
|
|
31214
31638
|
const useUtilityClasses$_ = ownerState => {
|
|
31215
31639
|
const {
|
|
@@ -31217,17 +31641,27 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
31217
31641
|
container,
|
|
31218
31642
|
direction,
|
|
31219
31643
|
item,
|
|
31220
|
-
lg,
|
|
31221
|
-
md,
|
|
31222
|
-
sm,
|
|
31223
31644
|
spacing,
|
|
31224
31645
|
wrap,
|
|
31225
|
-
|
|
31226
|
-
|
|
31227
|
-
zeroMinWidth
|
|
31646
|
+
zeroMinWidth,
|
|
31647
|
+
breakpoints
|
|
31228
31648
|
} = ownerState;
|
|
31649
|
+
let spacingClasses = []; // in case of grid item
|
|
31650
|
+
|
|
31651
|
+
if (container) {
|
|
31652
|
+
spacingClasses = resolveSpacingClasses(spacing, breakpoints);
|
|
31653
|
+
}
|
|
31654
|
+
|
|
31655
|
+
const breakpointsClasses = [];
|
|
31656
|
+
breakpoints.forEach(breakpoint => {
|
|
31657
|
+
const value = ownerState[breakpoint];
|
|
31658
|
+
|
|
31659
|
+
if (value) {
|
|
31660
|
+
breakpointsClasses.push(`grid-${breakpoint}-${String(value)}`);
|
|
31661
|
+
}
|
|
31662
|
+
});
|
|
31229
31663
|
const slots = {
|
|
31230
|
-
root: ['root', container && 'container', item && 'item', zeroMinWidth && 'zeroMinWidth', ...
|
|
31664
|
+
root: ['root', container && 'container', item && 'item', zeroMinWidth && 'zeroMinWidth', ...spacingClasses, direction !== 'row' && `direction-xs-${String(direction)}`, wrap !== 'wrap' && `wrap-xs-${String(wrap)}`, ...breakpointsClasses]
|
|
31231
31665
|
};
|
|
31232
31666
|
return composeClasses(slots, getGridUtilityClass, classes);
|
|
31233
31667
|
};
|
|
@@ -31237,6 +31671,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
31237
31671
|
props: inProps,
|
|
31238
31672
|
name: 'MuiGrid'
|
|
31239
31673
|
});
|
|
31674
|
+
const {
|
|
31675
|
+
breakpoints
|
|
31676
|
+
} = useTheme();
|
|
31240
31677
|
const props = extendSxProp(themeProps);
|
|
31241
31678
|
|
|
31242
31679
|
const {
|
|
@@ -31247,14 +31684,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
31247
31684
|
container = false,
|
|
31248
31685
|
direction = 'row',
|
|
31249
31686
|
item = false,
|
|
31250
|
-
lg = false,
|
|
31251
|
-
md = false,
|
|
31252
31687
|
rowSpacing: rowSpacingProp,
|
|
31253
|
-
sm = false,
|
|
31254
31688
|
spacing = 0,
|
|
31255
31689
|
wrap = 'wrap',
|
|
31256
|
-
xl = false,
|
|
31257
|
-
xs = false,
|
|
31258
31690
|
zeroMinWidth = false
|
|
31259
31691
|
} = props,
|
|
31260
31692
|
other = _objectWithoutPropertiesLoose(props, _excluded$1d);
|
|
@@ -31264,21 +31696,29 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
31264
31696
|
const columnsContext = React__namespace.useContext(GridContext$1); // columns set with default breakpoint unit of 12
|
|
31265
31697
|
|
|
31266
31698
|
const columns = container ? columnsProp || 12 : columnsContext;
|
|
31699
|
+
const breakpointsValues = {};
|
|
31700
|
+
|
|
31701
|
+
const otherFiltered = _extends({}, other);
|
|
31702
|
+
|
|
31703
|
+
breakpoints.keys.forEach(breakpoint => {
|
|
31704
|
+
if (other[breakpoint] != null) {
|
|
31705
|
+
breakpointsValues[breakpoint] = other[breakpoint];
|
|
31706
|
+
delete otherFiltered[breakpoint];
|
|
31707
|
+
}
|
|
31708
|
+
});
|
|
31267
31709
|
|
|
31268
31710
|
const ownerState = _extends({}, props, {
|
|
31269
31711
|
columns,
|
|
31270
31712
|
container,
|
|
31271
31713
|
direction,
|
|
31272
31714
|
item,
|
|
31273
|
-
lg,
|
|
31274
|
-
md,
|
|
31275
|
-
sm,
|
|
31276
31715
|
rowSpacing,
|
|
31277
31716
|
columnSpacing,
|
|
31278
31717
|
wrap,
|
|
31279
|
-
|
|
31280
|
-
|
|
31281
|
-
|
|
31718
|
+
zeroMinWidth,
|
|
31719
|
+
spacing
|
|
31720
|
+
}, breakpointsValues, {
|
|
31721
|
+
breakpoints: breakpoints.keys
|
|
31282
31722
|
});
|
|
31283
31723
|
|
|
31284
31724
|
const classes = useUtilityClasses$_(ownerState);
|
|
@@ -31289,7 +31729,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
31289
31729
|
className: clsx(classes.root, className),
|
|
31290
31730
|
as: component,
|
|
31291
31731
|
ref: ref
|
|
31292
|
-
},
|
|
31732
|
+
}, otherFiltered))
|
|
31293
31733
|
});
|
|
31294
31734
|
});
|
|
31295
31735
|
Grid.propTypes
|
|
@@ -31478,10 +31918,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
31478
31918
|
/*
|
|
31479
31919
|
TODO v6: remove
|
|
31480
31920
|
Conditionally apply a workaround for the CSS transition bug in Safari 15.4 / WebKit browsers.
|
|
31481
|
-
Remove this workaround once the WebKit bug fix is released.
|
|
31482
31921
|
*/
|
|
31483
31922
|
|
|
31484
|
-
const isWebKit154 = typeof navigator !== 'undefined' && /^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent) && /(os |version\/)15(.|_)
|
|
31923
|
+
const isWebKit154 = typeof navigator !== 'undefined' && /^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent) && /(os |version\/)15(.|_)4/i.test(navigator.userAgent);
|
|
31485
31924
|
/**
|
|
31486
31925
|
* The Grow transition is used by the [Tooltip](/material-ui/react-tooltip/) and
|
|
31487
31926
|
* [Popover](/material-ui/react-popover/) components.
|
|
@@ -31963,7 +32402,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
31963
32402
|
WithWidth.displayName = `WithWidth(${getDisplayName(Component)})`;
|
|
31964
32403
|
}
|
|
31965
32404
|
|
|
31966
|
-
hoistNonReactStatics_cjs(WithWidth, Component);
|
|
31967
32405
|
return WithWidth;
|
|
31968
32406
|
};
|
|
31969
32407
|
|
|
@@ -33250,7 +33688,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
33250
33688
|
let bottomLineColor = light ? 'rgba(0, 0, 0, 0.42)' : 'rgba(255, 255, 255, 0.7)';
|
|
33251
33689
|
|
|
33252
33690
|
if (theme.vars) {
|
|
33253
|
-
bottomLineColor = `rgba(${theme.vars.palette.common.onBackgroundChannel} / ${theme.vars.opacity.
|
|
33691
|
+
bottomLineColor = `rgba(${theme.vars.palette.common.onBackgroundChannel} / ${theme.vars.opacity.inputUnderline})`;
|
|
33254
33692
|
}
|
|
33255
33693
|
|
|
33256
33694
|
return _extends({
|
|
@@ -34046,6 +34484,10 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
34046
34484
|
return 'currentColor';
|
|
34047
34485
|
}
|
|
34048
34486
|
|
|
34487
|
+
if (theme.vars) {
|
|
34488
|
+
return theme.vars.palette.LinearProgress[`${color}Bg`];
|
|
34489
|
+
}
|
|
34490
|
+
|
|
34049
34491
|
return theme.palette.mode === 'light' ? lighten(theme.palette[color].main, 0.62) : darken(theme.palette[color].main, 0.5);
|
|
34050
34492
|
};
|
|
34051
34493
|
|
|
@@ -34138,7 +34580,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
34138
34580
|
top: 0,
|
|
34139
34581
|
transition: 'transform 0.2s linear',
|
|
34140
34582
|
transformOrigin: 'left',
|
|
34141
|
-
backgroundColor: ownerState.color === 'inherit' ? 'currentColor' : theme.palette[ownerState.color].main
|
|
34583
|
+
backgroundColor: ownerState.color === 'inherit' ? 'currentColor' : (theme.vars || theme).palette[ownerState.color].main
|
|
34142
34584
|
}, ownerState.variant === 'determinate' && {
|
|
34143
34585
|
transition: `transform .${TRANSITION_DURATION}s linear`
|
|
34144
34586
|
}, ownerState.variant === 'buffer' && {
|
|
@@ -34171,7 +34613,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
34171
34613
|
transition: 'transform 0.2s linear',
|
|
34172
34614
|
transformOrigin: 'left'
|
|
34173
34615
|
}, ownerState.variant !== 'buffer' && {
|
|
34174
|
-
backgroundColor: ownerState.color === 'inherit' ? 'currentColor' : theme.palette[ownerState.color].main
|
|
34616
|
+
backgroundColor: ownerState.color === 'inherit' ? 'currentColor' : (theme.vars || theme).palette[ownerState.color].main
|
|
34175
34617
|
}, ownerState.color === 'inherit' && {
|
|
34176
34618
|
opacity: 0.3
|
|
34177
34619
|
}, ownerState.variant === 'buffer' && {
|
|
@@ -34331,7 +34773,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
34331
34773
|
const linkClasses = generateUtilityClasses('MuiLink', ['root', 'underlineNone', 'underlineHover', 'underlineAlways', 'button', 'focusVisible']);
|
|
34332
34774
|
var linkClasses$1 = linkClasses;
|
|
34333
34775
|
|
|
34334
|
-
const _excluded$10 = ["className", "color", "component", "onBlur", "onFocus", "TypographyClasses", "underline", "variant", "sx"];
|
|
34335
34776
|
const colorTransformations = {
|
|
34336
34777
|
primary: 'primary.main',
|
|
34337
34778
|
textPrimary: 'text.primary',
|
|
@@ -34344,6 +34785,25 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
34344
34785
|
return colorTransformations[color] || color;
|
|
34345
34786
|
};
|
|
34346
34787
|
|
|
34788
|
+
const getTextDecoration = ({
|
|
34789
|
+
theme,
|
|
34790
|
+
ownerState
|
|
34791
|
+
}) => {
|
|
34792
|
+
const transformedColor = transformDeprecatedColors(ownerState.color);
|
|
34793
|
+
const color = getPath(theme, `palette.${transformedColor}`, false) || ownerState.color;
|
|
34794
|
+
const channelColor = getPath(theme, `palette.${transformedColor}Channel`);
|
|
34795
|
+
|
|
34796
|
+
if ('vars' in theme && channelColor) {
|
|
34797
|
+
return `rgba(${channelColor} / 0.4)`;
|
|
34798
|
+
}
|
|
34799
|
+
|
|
34800
|
+
return alpha(color, 0.4);
|
|
34801
|
+
};
|
|
34802
|
+
|
|
34803
|
+
var getTextDecoration$1 = getTextDecoration;
|
|
34804
|
+
|
|
34805
|
+
const _excluded$10 = ["className", "color", "component", "onBlur", "onFocus", "TypographyClasses", "underline", "variant", "sx"];
|
|
34806
|
+
|
|
34347
34807
|
const useUtilityClasses$Q = ownerState => {
|
|
34348
34808
|
const {
|
|
34349
34809
|
classes,
|
|
@@ -34370,7 +34830,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
34370
34830
|
theme,
|
|
34371
34831
|
ownerState
|
|
34372
34832
|
}) => {
|
|
34373
|
-
const color = getPath(theme, `palette.${transformDeprecatedColors(ownerState.color)}`) || ownerState.color;
|
|
34374
34833
|
return _extends({}, ownerState.underline === 'none' && {
|
|
34375
34834
|
textDecoration: 'none'
|
|
34376
34835
|
}, ownerState.underline === 'hover' && {
|
|
@@ -34378,13 +34837,18 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
34378
34837
|
'&:hover': {
|
|
34379
34838
|
textDecoration: 'underline'
|
|
34380
34839
|
}
|
|
34381
|
-
}, ownerState.underline === 'always' && {
|
|
34382
|
-
textDecoration: 'underline'
|
|
34383
|
-
|
|
34840
|
+
}, ownerState.underline === 'always' && _extends({
|
|
34841
|
+
textDecoration: 'underline'
|
|
34842
|
+
}, ownerState.color !== 'inherit' && {
|
|
34843
|
+
textDecorationColor: getTextDecoration$1({
|
|
34844
|
+
theme,
|
|
34845
|
+
ownerState
|
|
34846
|
+
})
|
|
34847
|
+
}, {
|
|
34384
34848
|
'&:hover': {
|
|
34385
34849
|
textDecorationColor: 'inherit'
|
|
34386
34850
|
}
|
|
34387
|
-
}, ownerState.component === 'button' && {
|
|
34851
|
+
}), ownerState.component === 'button' && {
|
|
34388
34852
|
position: 'relative',
|
|
34389
34853
|
WebkitTapHighlightColor: 'transparent',
|
|
34390
34854
|
backgroundColor: 'transparent',
|
|
@@ -37907,25 +38371,25 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
37907
38371
|
const borderColor = theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)';
|
|
37908
38372
|
return _extends({
|
|
37909
38373
|
position: 'relative',
|
|
37910
|
-
borderRadius: theme.shape.borderRadius,
|
|
38374
|
+
borderRadius: (theme.vars || theme).shape.borderRadius,
|
|
37911
38375
|
[`&:hover .${outlinedInputClasses$1.notchedOutline}`]: {
|
|
37912
|
-
borderColor: theme.palette.text.primary
|
|
38376
|
+
borderColor: (theme.vars || theme).palette.text.primary
|
|
37913
38377
|
},
|
|
37914
38378
|
// Reset on touch devices, it doesn't add specificity
|
|
37915
38379
|
'@media (hover: none)': {
|
|
37916
38380
|
[`&:hover .${outlinedInputClasses$1.notchedOutline}`]: {
|
|
37917
|
-
borderColor
|
|
38381
|
+
borderColor: theme.vars ? `rgba(${theme.vars.palette.common.onBackgroundChannel} / 0.23)` : borderColor
|
|
37918
38382
|
}
|
|
37919
38383
|
},
|
|
37920
38384
|
[`&.${outlinedInputClasses$1.focused} .${outlinedInputClasses$1.notchedOutline}`]: {
|
|
37921
|
-
borderColor: theme.palette[ownerState.color].main,
|
|
38385
|
+
borderColor: (theme.vars || theme).palette[ownerState.color].main,
|
|
37922
38386
|
borderWidth: 2
|
|
37923
38387
|
},
|
|
37924
38388
|
[`&.${outlinedInputClasses$1.error} .${outlinedInputClasses$1.notchedOutline}`]: {
|
|
37925
|
-
borderColor: theme.palette.error.main
|
|
38389
|
+
borderColor: (theme.vars || theme).palette.error.main
|
|
37926
38390
|
},
|
|
37927
38391
|
[`&.${outlinedInputClasses$1.disabled} .${outlinedInputClasses$1.notchedOutline}`]: {
|
|
37928
|
-
borderColor: theme.palette.action.disabled
|
|
38392
|
+
borderColor: (theme.vars || theme).palette.action.disabled
|
|
37929
38393
|
}
|
|
37930
38394
|
}, ownerState.startAdornment && {
|
|
37931
38395
|
paddingLeft: 14
|
|
@@ -37943,9 +38407,12 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
37943
38407
|
overridesResolver: (props, styles) => styles.notchedOutline
|
|
37944
38408
|
})(({
|
|
37945
38409
|
theme
|
|
37946
|
-
}) =>
|
|
37947
|
-
borderColor
|
|
37948
|
-
|
|
38410
|
+
}) => {
|
|
38411
|
+
const borderColor = theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)';
|
|
38412
|
+
return {
|
|
38413
|
+
borderColor: theme.vars ? `rgba(${theme.vars.palette.common.onBackgroundChannel} / 0.23)` : borderColor
|
|
38414
|
+
};
|
|
38415
|
+
});
|
|
37949
38416
|
const OutlinedInputInput = styled$1(InputBaseComponent, {
|
|
37950
38417
|
name: 'MuiOutlinedInput',
|
|
37951
38418
|
slot: 'Input',
|
|
@@ -37954,13 +38421,25 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
37954
38421
|
theme,
|
|
37955
38422
|
ownerState
|
|
37956
38423
|
}) => _extends({
|
|
37957
|
-
padding: '16.5px 14px'
|
|
38424
|
+
padding: '16.5px 14px'
|
|
38425
|
+
}, !theme.vars && {
|
|
37958
38426
|
'&:-webkit-autofill': {
|
|
37959
38427
|
WebkitBoxShadow: theme.palette.mode === 'light' ? null : '0 0 0 100px #266798 inset',
|
|
37960
38428
|
WebkitTextFillColor: theme.palette.mode === 'light' ? null : '#fff',
|
|
37961
38429
|
caretColor: theme.palette.mode === 'light' ? null : '#fff',
|
|
37962
38430
|
borderRadius: 'inherit'
|
|
37963
38431
|
}
|
|
38432
|
+
}, theme.vars && {
|
|
38433
|
+
'&:-webkit-autofill': {
|
|
38434
|
+
borderRadius: 'inherit'
|
|
38435
|
+
},
|
|
38436
|
+
[theme.getColorSchemeSelector('dark')]: {
|
|
38437
|
+
'&:-webkit-autofill': {
|
|
38438
|
+
WebkitBoxShadow: '0 0 0 100px #266798 inset',
|
|
38439
|
+
WebkitTextFillColor: '#fff',
|
|
38440
|
+
caretColor: '#fff'
|
|
38441
|
+
}
|
|
38442
|
+
}
|
|
37964
38443
|
}, ownerState.size === 'small' && {
|
|
37965
38444
|
padding: '8.5px 14px'
|
|
37966
38445
|
}, ownerState.multiline && {
|
|
@@ -37996,12 +38475,27 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
37996
38475
|
muiFormControl,
|
|
37997
38476
|
states: ['required']
|
|
37998
38477
|
});
|
|
38478
|
+
|
|
38479
|
+
const ownerState = _extends({}, props, {
|
|
38480
|
+
color: fcs.color || 'primary',
|
|
38481
|
+
disabled: fcs.disabled,
|
|
38482
|
+
error: fcs.error,
|
|
38483
|
+
focused: fcs.focused,
|
|
38484
|
+
formControl: muiFormControl,
|
|
38485
|
+
fullWidth,
|
|
38486
|
+
hiddenLabel: fcs.hiddenLabel,
|
|
38487
|
+
multiline,
|
|
38488
|
+
size: fcs.size,
|
|
38489
|
+
type
|
|
38490
|
+
});
|
|
38491
|
+
|
|
37999
38492
|
return /*#__PURE__*/jsxRuntime_1(InputBase$1, _extends({
|
|
38000
38493
|
components: _extends({
|
|
38001
38494
|
Root: OutlinedInputRoot,
|
|
38002
38495
|
Input: OutlinedInputInput
|
|
38003
38496
|
}, components),
|
|
38004
38497
|
renderSuffix: state => /*#__PURE__*/jsxRuntime_1(NotchedOutlineRoot, {
|
|
38498
|
+
ownerState: ownerState,
|
|
38005
38499
|
className: classes.notchedOutline,
|
|
38006
38500
|
label: label != null && label !== '' && fcs.required ? _React$Fragment || (_React$Fragment = /*#__PURE__*/jsxRuntime_2(React__namespace.Fragment, {
|
|
38007
38501
|
children: [label, "\xA0", '*']
|
|
@@ -41289,7 +41783,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
41289
41783
|
return _extends({
|
|
41290
41784
|
display: 'block',
|
|
41291
41785
|
// Create a "on paper" color with sufficient contrast retaining the color
|
|
41292
|
-
backgroundColor: alpha(theme.palette.text.primary, theme.palette.mode === 'light' ? 0.11 : 0.13),
|
|
41786
|
+
backgroundColor: theme.vars ? theme.vars.palette.Skeleton.bg : alpha(theme.palette.text.primary, theme.palette.mode === 'light' ? 0.11 : 0.13),
|
|
41293
41787
|
height: '1.2em'
|
|
41294
41788
|
}, ownerState.variant === 'text' && {
|
|
41295
41789
|
marginTop: 0,
|
|
@@ -41328,7 +41822,12 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
41328
41822
|
|
|
41329
41823
|
&::after {
|
|
41330
41824
|
animation: ${0} 1.6s linear 0.5s infinite;
|
|
41331
|
-
background: linear-gradient(
|
|
41825
|
+
background: linear-gradient(
|
|
41826
|
+
90deg,
|
|
41827
|
+
transparent,
|
|
41828
|
+
${0},
|
|
41829
|
+
transparent
|
|
41830
|
+
);
|
|
41332
41831
|
content: '';
|
|
41333
41832
|
position: absolute;
|
|
41334
41833
|
transform: translateX(-100%); /* Avoid flash during server-side hydration */
|
|
@@ -41337,7 +41836,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
41337
41836
|
right: 0;
|
|
41338
41837
|
top: 0;
|
|
41339
41838
|
}
|
|
41340
|
-
`), waveKeyframe, theme.palette.action.hover));
|
|
41839
|
+
`), waveKeyframe, (theme.vars || theme).palette.action.hover));
|
|
41341
41840
|
const Skeleton = /*#__PURE__*/React__namespace.forwardRef(function Skeleton(inProps, ref) {
|
|
41342
41841
|
const props = useThemeProps({
|
|
41343
41842
|
props: inProps,
|
|
@@ -41464,7 +41963,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
41464
41963
|
position: 'relative',
|
|
41465
41964
|
cursor: 'pointer',
|
|
41466
41965
|
touchAction: 'none',
|
|
41467
|
-
color: theme.palette[ownerState.color].main,
|
|
41966
|
+
color: (theme.vars || theme).palette[ownerState.color].main,
|
|
41468
41967
|
WebkitTapHighlightColor: 'transparent'
|
|
41469
41968
|
}, ownerState.orientation === 'horizontal' && _extends({
|
|
41470
41969
|
height: 4,
|
|
@@ -41499,7 +41998,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
41499
41998
|
[`&.${sliderClasses.disabled}`]: {
|
|
41500
41999
|
pointerEvents: 'none',
|
|
41501
42000
|
cursor: 'default',
|
|
41502
|
-
color: theme.palette.grey[400]
|
|
42001
|
+
color: (theme.vars || theme).palette.grey[400]
|
|
41503
42002
|
},
|
|
41504
42003
|
[`&.${sliderClasses.dragging}`]: {
|
|
41505
42004
|
[`& .${sliderClasses.thumb}, & .${sliderClasses.track}`]: {
|
|
@@ -41590,8 +42089,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
41590
42089
|
}, ownerState.track === false && {
|
|
41591
42090
|
display: 'none'
|
|
41592
42091
|
}, ownerState.track === 'inverted' && {
|
|
41593
|
-
backgroundColor: color,
|
|
41594
|
-
borderColor: color
|
|
42092
|
+
backgroundColor: theme.vars ? theme.vars.palette.Slider[`${ownerState.color}Track`] : color,
|
|
42093
|
+
borderColor: theme.vars ? theme.vars.palette.Slider[`${ownerState.color}Track`] : color
|
|
41595
42094
|
});
|
|
41596
42095
|
});
|
|
41597
42096
|
SliderTrack.propTypes
|
|
@@ -41649,7 +42148,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
41649
42148
|
borderRadius: 'inherit',
|
|
41650
42149
|
width: '100%',
|
|
41651
42150
|
height: '100%',
|
|
41652
|
-
boxShadow: theme.shadows[2]
|
|
42151
|
+
boxShadow: (theme.vars || theme).shadows[2]
|
|
41653
42152
|
}, ownerState.size === 'small' && {
|
|
41654
42153
|
boxShadow: 'none'
|
|
41655
42154
|
}),
|
|
@@ -41665,13 +42164,13 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
41665
42164
|
transform: 'translate(-50%, -50%)'
|
|
41666
42165
|
},
|
|
41667
42166
|
[`&:hover, &.${sliderClasses.focusVisible}`]: {
|
|
41668
|
-
boxShadow: `0px 0px 0px 8px ${alpha(theme.palette[ownerState.color].main, 0.16)}`,
|
|
42167
|
+
boxShadow: `0px 0px 0px 8px ${theme.vars ? `rgba(${theme.vars.palette[ownerState.color].mainChannel} / 0.16)` : alpha(theme.palette[ownerState.color].main, 0.16)}`,
|
|
41669
42168
|
'@media (hover: none)': {
|
|
41670
42169
|
boxShadow: 'none'
|
|
41671
42170
|
}
|
|
41672
42171
|
},
|
|
41673
42172
|
[`&.${sliderClasses.active}`]: {
|
|
41674
|
-
boxShadow: `0px 0px 0px 14px ${alpha(theme.palette[ownerState.color].main, 0.16)}`
|
|
42173
|
+
boxShadow: `0px 0px 0px 14px ${theme.vars ? `rgba(${theme.vars.palette[ownerState.color].mainChannel} / 0.16)` : alpha(theme.palette[ownerState.color].main, 0.16)}`
|
|
41675
42174
|
},
|
|
41676
42175
|
[`&.${sliderClasses.disabled}`]: {
|
|
41677
42176
|
'&:hover': {
|
|
@@ -41713,9 +42212,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
41713
42212
|
transformOrigin: 'bottom center',
|
|
41714
42213
|
transform: 'translateY(-100%) scale(0)',
|
|
41715
42214
|
position: 'absolute',
|
|
41716
|
-
backgroundColor: theme.palette.grey[600],
|
|
42215
|
+
backgroundColor: (theme.vars || theme).palette.grey[600],
|
|
41717
42216
|
borderRadius: 2,
|
|
41718
|
-
color: theme.palette.common.white,
|
|
42217
|
+
color: (theme.vars || theme).palette.common.white,
|
|
41719
42218
|
display: 'flex',
|
|
41720
42219
|
alignItems: 'center',
|
|
41721
42220
|
justifyContent: 'center',
|
|
@@ -41784,7 +42283,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
41784
42283
|
left: '50%',
|
|
41785
42284
|
transform: 'translate(-50%, 1px)'
|
|
41786
42285
|
}, markActive && {
|
|
41787
|
-
backgroundColor: theme.palette.background.paper,
|
|
42286
|
+
backgroundColor: (theme.vars || theme).palette.background.paper,
|
|
41788
42287
|
opacity: 0.8
|
|
41789
42288
|
}));
|
|
41790
42289
|
SliderMark.propTypes
|
|
@@ -41810,7 +42309,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
41810
42309
|
ownerState,
|
|
41811
42310
|
markLabelActive
|
|
41812
42311
|
}) => _extends({}, theme.typography.body2, {
|
|
41813
|
-
color: theme.palette.text.secondary,
|
|
42312
|
+
color: (theme.vars || theme).palette.text.secondary,
|
|
41814
42313
|
position: 'absolute',
|
|
41815
42314
|
whiteSpace: 'nowrap'
|
|
41816
42315
|
}, ownerState.orientation === 'horizontal' && {
|
|
@@ -41826,7 +42325,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
41826
42325
|
left: 44
|
|
41827
42326
|
}
|
|
41828
42327
|
}, markLabelActive && {
|
|
41829
|
-
color: theme.palette.text.primary
|
|
42328
|
+
color: (theme.vars || theme).palette.text.primary
|
|
41830
42329
|
}));
|
|
41831
42330
|
SliderMarkLabel.propTypes
|
|
41832
42331
|
/* remove-proptypes */
|
|
@@ -42002,22 +42501,24 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
42002
42501
|
* @default {}
|
|
42003
42502
|
*/
|
|
42004
42503
|
componentsProps: PropTypes.shape({
|
|
42005
|
-
input: PropTypes.object,
|
|
42006
|
-
mark: PropTypes.object,
|
|
42007
|
-
markLabel: PropTypes.object,
|
|
42008
|
-
rail: PropTypes.object,
|
|
42009
|
-
root: PropTypes.object,
|
|
42010
|
-
thumb: PropTypes.object,
|
|
42011
|
-
track: PropTypes.object,
|
|
42012
|
-
valueLabel: PropTypes.shape({
|
|
42504
|
+
input: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
42505
|
+
mark: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
42506
|
+
markLabel: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
42507
|
+
rail: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
42508
|
+
root: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
42509
|
+
thumb: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
42510
|
+
track: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
42511
|
+
valueLabel: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
|
|
42512
|
+
children: PropTypes.element,
|
|
42013
42513
|
className: PropTypes.string,
|
|
42014
42514
|
components: PropTypes.shape({
|
|
42015
42515
|
Root: PropTypes.elementType
|
|
42016
42516
|
}),
|
|
42517
|
+
open: PropTypes.bool,
|
|
42017
42518
|
style: PropTypes.object,
|
|
42018
|
-
value: PropTypes.
|
|
42519
|
+
value: PropTypes.number,
|
|
42019
42520
|
valueLabelDisplay: PropTypes.oneOf(['auto', 'off', 'on'])
|
|
42020
|
-
})
|
|
42521
|
+
})])
|
|
42021
42522
|
}),
|
|
42022
42523
|
|
|
42023
42524
|
/**
|
|
@@ -42218,13 +42719,13 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
42218
42719
|
const emphasis = theme.palette.mode === 'light' ? 0.8 : 0.98;
|
|
42219
42720
|
const backgroundColor = emphasize(theme.palette.background.default, emphasis);
|
|
42220
42721
|
return _extends({}, theme.typography.body2, {
|
|
42221
|
-
color: theme.palette.getContrastText(backgroundColor),
|
|
42222
|
-
backgroundColor,
|
|
42722
|
+
color: theme.vars ? theme.vars.palette.text.primary : theme.palette.getContrastText(backgroundColor),
|
|
42723
|
+
backgroundColor: theme.vars ? theme.vars.palette.SnackbarContent.bg : backgroundColor,
|
|
42223
42724
|
display: 'flex',
|
|
42224
42725
|
alignItems: 'center',
|
|
42225
42726
|
flexWrap: 'wrap',
|
|
42226
42727
|
padding: '6px 16px',
|
|
42227
|
-
borderRadius: theme.shape.borderRadius,
|
|
42728
|
+
borderRadius: (theme.vars || theme).shape.borderRadius,
|
|
42228
42729
|
flexGrow: 1,
|
|
42229
42730
|
[theme.breakpoints.up('sm')]: {
|
|
42230
42731
|
flexGrow: 'initial',
|
|
@@ -42361,16 +42862,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
42361
42862
|
theme,
|
|
42362
42863
|
ownerState
|
|
42363
42864
|
}) => {
|
|
42364
|
-
const center =
|
|
42865
|
+
const center = {
|
|
42365
42866
|
left: '50%',
|
|
42366
42867
|
right: 'auto',
|
|
42367
42868
|
transform: 'translateX(-50%)'
|
|
42368
|
-
}
|
|
42369
|
-
right: '50%',
|
|
42370
|
-
left: 'auto',
|
|
42371
|
-
transform: 'translateX(50%)'
|
|
42372
|
-
});
|
|
42373
|
-
|
|
42869
|
+
};
|
|
42374
42870
|
return _extends({
|
|
42375
42871
|
zIndex: (theme.vars || theme).zIndex.snackbar,
|
|
42376
42872
|
position: 'fixed',
|
|
@@ -42392,19 +42888,13 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
42392
42888
|
top: 24
|
|
42393
42889
|
} : {
|
|
42394
42890
|
bottom: 24
|
|
42395
|
-
}, ownerState.anchorOrigin.horizontal === 'center' && center, ownerState.anchorOrigin.horizontal === 'left' &&
|
|
42891
|
+
}, ownerState.anchorOrigin.horizontal === 'center' && center, ownerState.anchorOrigin.horizontal === 'left' && {
|
|
42396
42892
|
left: 24,
|
|
42397
42893
|
right: 'auto'
|
|
42398
|
-
}, ownerState.
|
|
42399
|
-
right: 24,
|
|
42400
|
-
left: 'auto'
|
|
42401
|
-
}), ownerState.anchorOrigin.horizontal === 'right' && _extends({}, !ownerState.isRtl && {
|
|
42894
|
+
}, ownerState.anchorOrigin.horizontal === 'right' && {
|
|
42402
42895
|
right: 24,
|
|
42403
42896
|
left: 'auto'
|
|
42404
|
-
}
|
|
42405
|
-
left: 24,
|
|
42406
|
-
right: 'auto'
|
|
42407
|
-
}))
|
|
42897
|
+
})
|
|
42408
42898
|
});
|
|
42409
42899
|
});
|
|
42410
42900
|
const Snackbar = /*#__PURE__*/React__namespace.forwardRef(function Snackbar(inProps, ref) {
|
|
@@ -42451,14 +42941,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
42451
42941
|
TransitionProps = _objectWithoutPropertiesLoose(props.TransitionProps, _excluded$z),
|
|
42452
42942
|
other = _objectWithoutPropertiesLoose(props, _excluded2$2);
|
|
42453
42943
|
|
|
42454
|
-
const isRtl = theme.direction === 'rtl';
|
|
42455
|
-
|
|
42456
42944
|
const ownerState = _extends({}, props, {
|
|
42457
42945
|
anchorOrigin: {
|
|
42458
42946
|
vertical,
|
|
42459
42947
|
horizontal
|
|
42460
|
-
}
|
|
42461
|
-
isRtl
|
|
42948
|
+
}
|
|
42462
42949
|
});
|
|
42463
42950
|
|
|
42464
42951
|
const classes = useUtilityClasses$s(ownerState);
|
|
@@ -43659,7 +44146,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
43659
44146
|
theme,
|
|
43660
44147
|
ownerState
|
|
43661
44148
|
}) => _extends({
|
|
43662
|
-
backgroundColor: theme.vars ?
|
|
44149
|
+
backgroundColor: theme.vars ? theme.vars.palette.Tooltip.bg : alpha(theme.palette.grey[700], 0.92),
|
|
43663
44150
|
borderRadius: (theme.vars || theme).shape.borderRadius,
|
|
43664
44151
|
color: (theme.vars || theme).palette.common.white,
|
|
43665
44152
|
fontFamily: theme.typography.fontFamily,
|
|
@@ -44403,10 +44890,10 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
44403
44890
|
ownerState
|
|
44404
44891
|
}) => _extends({
|
|
44405
44892
|
margin: 8,
|
|
44406
|
-
color: theme.palette.text.secondary,
|
|
44407
|
-
backgroundColor: theme.palette.background.paper,
|
|
44893
|
+
color: (theme.vars || theme).palette.text.secondary,
|
|
44894
|
+
backgroundColor: (theme.vars || theme).palette.background.paper,
|
|
44408
44895
|
'&:hover': {
|
|
44409
|
-
backgroundColor: emphasize(theme.palette.background.paper, 0.15)
|
|
44896
|
+
backgroundColor: theme.vars ? theme.vars.palette.SpeedDialAction.fabHoverBg : emphasize(theme.palette.background.paper, 0.15)
|
|
44410
44897
|
},
|
|
44411
44898
|
transition: `${theme.transitions.create('transform', {
|
|
44412
44899
|
duration: theme.transitions.duration.shorter
|
|
@@ -44459,10 +44946,10 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
44459
44946
|
}) => _extends({
|
|
44460
44947
|
position: 'absolute'
|
|
44461
44948
|
}, theme.typography.body1, {
|
|
44462
|
-
backgroundColor: theme.palette.background.paper,
|
|
44463
|
-
borderRadius: theme.shape.borderRadius,
|
|
44464
|
-
boxShadow: theme.shadows[1],
|
|
44465
|
-
color: theme.palette.text.secondary,
|
|
44949
|
+
backgroundColor: (theme.vars || theme).palette.background.paper,
|
|
44950
|
+
borderRadius: (theme.vars || theme).shape.borderRadius,
|
|
44951
|
+
boxShadow: (theme.vars || theme).shadows[1],
|
|
44952
|
+
color: (theme.vars || theme).palette.text.secondary,
|
|
44466
44953
|
padding: '4px 16px',
|
|
44467
44954
|
wordBreak: 'keep-all'
|
|
44468
44955
|
}));
|
|
@@ -44820,7 +45307,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
44820
45307
|
if (ownerState.spacing) {
|
|
44821
45308
|
const transformer = createUnarySpacing(theme);
|
|
44822
45309
|
const base = Object.keys(theme.breakpoints.values).reduce((acc, breakpoint) => {
|
|
44823
|
-
if (ownerState.spacing[breakpoint] != null || ownerState.direction[breakpoint] != null) {
|
|
45310
|
+
if (typeof ownerState.spacing === 'object' && ownerState.spacing[breakpoint] != null || typeof ownerState.direction === 'object' && ownerState.direction[breakpoint] != null) {
|
|
44824
45311
|
acc[breakpoint] = true;
|
|
44825
45312
|
}
|
|
44826
45313
|
|
|
@@ -45263,8 +45750,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
45263
45750
|
})), /*#__PURE__*/jsxRuntime_1(StepIconText, {
|
|
45264
45751
|
className: classes.text,
|
|
45265
45752
|
x: "12",
|
|
45266
|
-
y: "
|
|
45753
|
+
y: "12",
|
|
45267
45754
|
textAnchor: "middle",
|
|
45755
|
+
dominantBaseline: "central",
|
|
45268
45756
|
ownerState: ownerState,
|
|
45269
45757
|
children: icon
|
|
45270
45758
|
})]
|
|
@@ -45749,17 +46237,20 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
45749
46237
|
})(({
|
|
45750
46238
|
ownerState,
|
|
45751
46239
|
theme
|
|
45752
|
-
}) =>
|
|
45753
|
-
|
|
45754
|
-
|
|
45755
|
-
|
|
45756
|
-
|
|
45757
|
-
|
|
45758
|
-
|
|
45759
|
-
|
|
45760
|
-
|
|
45761
|
-
|
|
45762
|
-
|
|
46240
|
+
}) => {
|
|
46241
|
+
const borderColor = theme.palette.mode === 'light' ? theme.palette.grey[400] : theme.palette.grey[600];
|
|
46242
|
+
return _extends({
|
|
46243
|
+
display: 'block',
|
|
46244
|
+
borderColor: theme.vars ? theme.vars.palette.StepConnector.border : borderColor
|
|
46245
|
+
}, ownerState.orientation === 'horizontal' && {
|
|
46246
|
+
borderTopStyle: 'solid',
|
|
46247
|
+
borderTopWidth: 1
|
|
46248
|
+
}, ownerState.orientation === 'vertical' && {
|
|
46249
|
+
borderLeftStyle: 'solid',
|
|
46250
|
+
borderLeftWidth: 1,
|
|
46251
|
+
minHeight: 24
|
|
46252
|
+
});
|
|
46253
|
+
});
|
|
45763
46254
|
const StepConnector = /*#__PURE__*/React__namespace.forwardRef(function StepConnector(inProps, ref) {
|
|
45764
46255
|
const props = useThemeProps({
|
|
45765
46256
|
props: inProps,
|
|
@@ -45864,7 +46355,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
45864
46355
|
paddingLeft: 8 + 12,
|
|
45865
46356
|
// margin + half icon
|
|
45866
46357
|
paddingRight: 8,
|
|
45867
|
-
borderLeft: `1px solid ${theme.palette.mode === 'light' ? theme.palette.grey[400] : theme.palette.grey[600]}`
|
|
46358
|
+
borderLeft: theme.vars ? `1px solid ${theme.vars.palette.StepContent.border}` : `1px solid ${theme.palette.mode === 'light' ? theme.palette.grey[400] : theme.palette.grey[600]}`
|
|
45868
46359
|
}, ownerState.last && {
|
|
45869
46360
|
borderLeft: 'none'
|
|
45870
46361
|
}));
|
|
@@ -46918,7 +47409,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
46918
47409
|
left: 0,
|
|
46919
47410
|
zIndex: 1,
|
|
46920
47411
|
// Render above the focus ripple.
|
|
46921
|
-
color: theme.palette.mode === 'light' ? theme.palette.common.white : theme.palette.grey[300]
|
|
47412
|
+
color: theme.vars ? theme.vars.palette.Switch.defaultColor : `${theme.palette.mode === 'light' ? theme.palette.common.white : theme.palette.grey[300]}`,
|
|
46922
47413
|
transition: theme.transitions.create(['left', 'transform'], {
|
|
46923
47414
|
duration: theme.transitions.duration.shortest
|
|
46924
47415
|
}),
|
|
@@ -46926,13 +47417,13 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
46926
47417
|
transform: 'translateX(20px)'
|
|
46927
47418
|
},
|
|
46928
47419
|
[`&.${switchClasses$1.disabled}`]: {
|
|
46929
|
-
color: theme.palette.mode === 'light' ? theme.palette.grey[100] : theme.palette.grey[600]
|
|
47420
|
+
color: theme.vars ? theme.vars.palette.Switch.defaultDisabledColor : `${theme.palette.mode === 'light' ? theme.palette.grey[100] : theme.palette.grey[600]}`
|
|
46930
47421
|
},
|
|
46931
47422
|
[`&.${switchClasses$1.checked} + .${switchClasses$1.track}`]: {
|
|
46932
47423
|
opacity: 0.5
|
|
46933
47424
|
},
|
|
46934
47425
|
[`&.${switchClasses$1.disabled} + .${switchClasses$1.track}`]: {
|
|
46935
|
-
opacity: theme.palette.mode === 'light' ? 0.12 : 0.2
|
|
47426
|
+
opacity: theme.vars ? theme.vars.opacity.switchTrackDisabled : `${theme.palette.mode === 'light' ? 0.12 : 0.2}`
|
|
46936
47427
|
},
|
|
46937
47428
|
[`& .${switchClasses$1.input}`]: {
|
|
46938
47429
|
left: '-100%',
|
|
@@ -46943,7 +47434,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
46943
47434
|
ownerState
|
|
46944
47435
|
}) => _extends({
|
|
46945
47436
|
'&:hover': {
|
|
46946
|
-
backgroundColor: alpha(theme.palette.action.active, theme.palette.action.hoverOpacity),
|
|
47437
|
+
backgroundColor: theme.vars ? `rgba(${theme.vars.palette.action.activeChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(theme.palette.action.active, theme.palette.action.hoverOpacity),
|
|
46947
47438
|
// Reset on touch devices, it doesn't add specificity
|
|
46948
47439
|
'@media (hover: none)': {
|
|
46949
47440
|
backgroundColor: 'transparent'
|
|
@@ -46951,19 +47442,19 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
46951
47442
|
}
|
|
46952
47443
|
}, ownerState.color !== 'default' && {
|
|
46953
47444
|
[`&.${switchClasses$1.checked}`]: {
|
|
46954
|
-
color: theme.palette[ownerState.color].main,
|
|
47445
|
+
color: (theme.vars || theme).palette[ownerState.color].main,
|
|
46955
47446
|
'&:hover': {
|
|
46956
|
-
backgroundColor: alpha(theme.palette[ownerState.color].main, theme.palette.action.hoverOpacity),
|
|
47447
|
+
backgroundColor: theme.vars ? `rgba(${theme.vars.palette[ownerState.color].mainChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(theme.palette[ownerState.color].main, theme.palette.action.hoverOpacity),
|
|
46957
47448
|
'@media (hover: none)': {
|
|
46958
47449
|
backgroundColor: 'transparent'
|
|
46959
47450
|
}
|
|
46960
47451
|
},
|
|
46961
47452
|
[`&.${switchClasses$1.disabled}`]: {
|
|
46962
|
-
color: theme.palette.mode === 'light' ? lighten(theme.palette[ownerState.color].main, 0.62) : darken(theme.palette[ownerState.color].main, 0.55)
|
|
47453
|
+
color: theme.vars ? theme.vars.palette.Switch[`${ownerState.color}DisabledColor`] : `${theme.palette.mode === 'light' ? lighten(theme.palette[ownerState.color].main, 0.62) : darken(theme.palette[ownerState.color].main, 0.55)}`
|
|
46963
47454
|
}
|
|
46964
47455
|
},
|
|
46965
47456
|
[`&.${switchClasses$1.checked} + .${switchClasses$1.track}`]: {
|
|
46966
|
-
backgroundColor: theme.palette[ownerState.color].main
|
|
47457
|
+
backgroundColor: (theme.vars || theme).palette[ownerState.color].main
|
|
46967
47458
|
}
|
|
46968
47459
|
}));
|
|
46969
47460
|
const SwitchTrack = styled$1('span', {
|
|
@@ -46980,8 +47471,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
46980
47471
|
transition: theme.transitions.create(['opacity', 'background-color'], {
|
|
46981
47472
|
duration: theme.transitions.duration.shortest
|
|
46982
47473
|
}),
|
|
46983
|
-
backgroundColor: theme.palette.mode === 'light' ? theme.palette.common.black : theme.palette.common.white
|
|
46984
|
-
opacity: theme.palette.mode === 'light' ? 0.38 : 0.3
|
|
47474
|
+
backgroundColor: theme.vars ? theme.vars.palette.common.onBackground : `${theme.palette.mode === 'light' ? theme.palette.common.black : theme.palette.common.white}`,
|
|
47475
|
+
opacity: theme.vars ? theme.vars.opacity.switchTrack : `${theme.palette.mode === 'light' ? 0.38 : 0.3}`
|
|
46985
47476
|
}));
|
|
46986
47477
|
const SwitchThumb = styled$1('span', {
|
|
46987
47478
|
name: 'MuiSwitch',
|
|
@@ -46990,7 +47481,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
46990
47481
|
})(({
|
|
46991
47482
|
theme
|
|
46992
47483
|
}) => ({
|
|
46993
|
-
boxShadow: theme.shadows[1],
|
|
47484
|
+
boxShadow: (theme.vars || theme).shadows[1],
|
|
46994
47485
|
backgroundColor: 'currentColor',
|
|
46995
47486
|
width: 20,
|
|
46996
47487
|
height: 20,
|
|
@@ -47743,18 +48234,18 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
47743
48234
|
verticalAlign: 'inherit',
|
|
47744
48235
|
// Workaround for a rendering bug with spanned columns in Chrome 62.0.
|
|
47745
48236
|
// Removes the alpha (sets it to 1), and lightens or darkens the theme color.
|
|
47746
|
-
borderBottom: `1px solid
|
|
48237
|
+
borderBottom: theme.vars ? `1px solid ${theme.vars.palette.TableCell.border}` : `1px solid
|
|
47747
48238
|
${theme.palette.mode === 'light' ? lighten(alpha(theme.palette.divider, 1), 0.88) : darken(alpha(theme.palette.divider, 1), 0.68)}`,
|
|
47748
48239
|
textAlign: 'left',
|
|
47749
48240
|
padding: 16
|
|
47750
48241
|
}, ownerState.variant === 'head' && {
|
|
47751
|
-
color: theme.palette.text.primary,
|
|
48242
|
+
color: (theme.vars || theme).palette.text.primary,
|
|
47752
48243
|
lineHeight: theme.typography.pxToRem(24),
|
|
47753
48244
|
fontWeight: theme.typography.fontWeightMedium
|
|
47754
48245
|
}, ownerState.variant === 'body' && {
|
|
47755
|
-
color: theme.palette.text.primary
|
|
48246
|
+
color: (theme.vars || theme).palette.text.primary
|
|
47756
48247
|
}, ownerState.variant === 'footer' && {
|
|
47757
|
-
color: theme.palette.text.secondary,
|
|
48248
|
+
color: (theme.vars || theme).palette.text.secondary,
|
|
47758
48249
|
lineHeight: theme.typography.pxToRem(21),
|
|
47759
48250
|
fontSize: theme.typography.pxToRem(12)
|
|
47760
48251
|
}, ownerState.size === 'small' && {
|
|
@@ -47786,7 +48277,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
47786
48277
|
position: 'sticky',
|
|
47787
48278
|
top: 0,
|
|
47788
48279
|
zIndex: 2,
|
|
47789
|
-
backgroundColor: theme.palette.background.default
|
|
48280
|
+
backgroundColor: (theme.vars || theme).palette.background.default
|
|
47790
48281
|
}));
|
|
47791
48282
|
/**
|
|
47792
48283
|
* The component renders a `<th>` element when the parent context is a header
|
|
@@ -49833,6 +50324,12 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
49833
50324
|
const tab = children[i];
|
|
49834
50325
|
|
|
49835
50326
|
if (totalSize + tab[clientSize] > containerSize) {
|
|
50327
|
+
// If the first item is longer than the container size, then only scroll
|
|
50328
|
+
// by the container size.
|
|
50329
|
+
if (i === 0) {
|
|
50330
|
+
totalSize = containerSize;
|
|
50331
|
+
}
|
|
50332
|
+
|
|
49836
50333
|
break;
|
|
49837
50334
|
}
|
|
49838
50335
|
|
|
@@ -49942,8 +50439,16 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
49942
50439
|
});
|
|
49943
50440
|
React__namespace.useEffect(() => {
|
|
49944
50441
|
const handleResize = debounce$1(() => {
|
|
49945
|
-
|
|
49946
|
-
|
|
50442
|
+
// If the Tabs component is replaced by Suspense with a fallback, the last
|
|
50443
|
+
// ResizeObserver's handler that runs because of the change in the layout is trying to
|
|
50444
|
+
// access a dom node that is no longer there (as the fallback component is being shown instead).
|
|
50445
|
+
// See https://github.com/mui/material-ui/issues/33276
|
|
50446
|
+
// TODO: Add tests that will ensure the component is not failing when
|
|
50447
|
+
// replaced by Suspense with a fallback, once React is updated to version 18
|
|
50448
|
+
if (tabsRef.current) {
|
|
50449
|
+
updateIndicatorState();
|
|
50450
|
+
updateScrollButtonState();
|
|
50451
|
+
}
|
|
49947
50452
|
});
|
|
49948
50453
|
const win = ownerWindow(tabsRef.current);
|
|
49949
50454
|
win.addEventListener('resize', handleResize);
|
|
@@ -51520,6 +52025,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
51520
52025
|
exports.getMobileStepperUtilityClass = getMobileStepperUtilityClass;
|
|
51521
52026
|
exports.getModalUtilityClass = getModalUtilityClass;
|
|
51522
52027
|
exports.getNativeSelectUtilityClasses = getNativeSelectUtilityClasses;
|
|
52028
|
+
exports.getOffsetLeft = getOffsetLeft;
|
|
52029
|
+
exports.getOffsetTop = getOffsetTop;
|
|
51523
52030
|
exports.getOutlinedInputUtilityClass = getOutlinedInputUtilityClass;
|
|
51524
52031
|
exports.getPaginationItemUtilityClass = getPaginationItemUtilityClass;
|
|
51525
52032
|
exports.getPaginationUtilityClass = getPaginationUtilityClass;
|