@mui/material 5.8.1 → 5.8.4
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 +3 -1
- package/Autocomplete/autocompleteClasses.d.ts +1 -1
- package/Button/buttonClasses.d.ts +24 -0
- package/Button/buttonClasses.js +1 -1
- package/CHANGELOG.md +217 -8
- package/Checkbox/Checkbox.js +4 -4
- package/Grid/Grid.d.ts +73 -52
- package/Grid/Grid.js +94 -40
- package/Grow/Grow.js +4 -4
- package/Hidden/withWidth.js +0 -2
- package/InputLabel/InputLabel.d.ts +5 -0
- package/InputLabel/InputLabel.js +6 -0
- package/Link/Link.js +10 -17
- package/Link/getTextDecoration.d.ts +15 -0
- package/Link/getTextDecoration.js +29 -0
- package/Popover/Popover.d.ts +7 -0
- package/Popover/index.js +1 -0
- package/README.md +13 -12
- package/Slider/Slider.d.ts +3 -1
- package/Slider/Slider.js +23 -8
- package/Snackbar/Snackbar.js +6 -20
- package/Stack/Stack.js +1 -1
- package/StepIcon/StepIcon.js +2 -1
- package/Tab/Tab.d.ts +0 -1
- package/Tabs/Tabs.js +16 -0
- package/index.js +1 -1
- package/legacy/Alert/Alert.js +3 -1
- package/legacy/Button/buttonClasses.js +1 -1
- package/legacy/Checkbox/Checkbox.js +4 -4
- package/legacy/Grid/Grid.js +97 -48
- package/legacy/Grow/Grow.js +4 -4
- package/legacy/Hidden/withWidth.js +0 -2
- package/legacy/InputLabel/InputLabel.js +6 -0
- package/legacy/Link/Link.js +10 -17
- package/legacy/Link/getTextDecoration.js +28 -0
- package/legacy/Popover/index.js +1 -0
- package/legacy/Slider/Slider.js +23 -8
- package/legacy/Snackbar/Snackbar.js +6 -21
- package/legacy/Stack/Stack.js +2 -1
- package/legacy/StepIcon/StepIcon.js +2 -1
- package/legacy/Tabs/Tabs.js +16 -0
- package/legacy/index.js +1 -1
- package/legacy/styles/CssVarsProvider.js +3 -0
- package/modern/Alert/Alert.js +3 -1
- package/modern/Button/buttonClasses.js +1 -1
- package/modern/Checkbox/Checkbox.js +4 -4
- package/modern/Grid/Grid.js +94 -40
- package/modern/Grow/Grow.js +4 -4
- package/modern/Hidden/withWidth.js +0 -2
- package/modern/InputLabel/InputLabel.js +6 -0
- package/modern/Link/Link.js +10 -17
- package/modern/Link/getTextDecoration.js +29 -0
- package/modern/Popover/index.js +1 -0
- package/modern/Slider/Slider.js +23 -8
- package/modern/Snackbar/Snackbar.js +6 -20
- package/modern/Stack/Stack.js +1 -1
- package/modern/StepIcon/StepIcon.js +2 -1
- package/modern/Tabs/Tabs.js +16 -0
- package/modern/index.js +1 -1
- package/modern/styles/CssVarsProvider.js +3 -0
- package/node/Alert/Alert.js +3 -1
- package/node/Button/buttonClasses.js +1 -1
- package/node/Checkbox/Checkbox.js +4 -4
- package/node/Grid/Grid.js +95 -40
- package/node/Grow/Grow.js +4 -4
- package/node/Hidden/withWidth.js +0 -3
- package/node/InputLabel/InputLabel.js +6 -0
- package/node/Link/Link.js +12 -20
- package/node/Link/getTextDecoration.js +39 -0
- package/node/Popover/index.js +13 -3
- package/node/Slider/Slider.js +23 -8
- package/node/Snackbar/Snackbar.js +6 -18
- package/node/Stack/Stack.js +1 -1
- package/node/StepIcon/StepIcon.js +2 -1
- package/node/Tabs/Tabs.js +16 -0
- package/node/index.js +1 -1
- package/node/styles/CssVarsProvider.js +3 -0
- package/package.json +6 -7
- package/styles/CssVarsProvider.js +3 -0
- package/umd/material-ui.development.js +291 -227
- package/umd/material-ui.production.min.js +21 -21
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MUI v5.8.
|
|
1
|
+
/** @license MUI v5.8.4
|
|
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 = '';
|
|
@@ -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;
|
|
@@ -5762,9 +5681,11 @@
|
|
|
5762
5681
|
if (Array.isArray(breakpointValues)) {
|
|
5763
5682
|
acc[breakpoint] = breakpointValues[i] != null ? breakpointValues[i] : breakpointValues[previous];
|
|
5764
5683
|
previous = i;
|
|
5765
|
-
} else {
|
|
5766
|
-
acc[breakpoint] = breakpointValues[breakpoint] != null ? breakpointValues[breakpoint] : breakpointValues[previous]
|
|
5684
|
+
} else if (typeof breakpointValues === 'object') {
|
|
5685
|
+
acc[breakpoint] = breakpointValues[breakpoint] != null ? breakpointValues[breakpoint] : breakpointValues[previous];
|
|
5767
5686
|
previous = breakpoint;
|
|
5687
|
+
} else {
|
|
5688
|
+
acc[breakpoint] = breakpointValues;
|
|
5768
5689
|
}
|
|
5769
5690
|
|
|
5770
5691
|
return acc;
|
|
@@ -6468,7 +6389,7 @@
|
|
|
6468
6389
|
} = props || {};
|
|
6469
6390
|
|
|
6470
6391
|
if (!sx) {
|
|
6471
|
-
return null; //
|
|
6392
|
+
return null; // Emotion & styled-components will neglect null
|
|
6472
6393
|
}
|
|
6473
6394
|
/*
|
|
6474
6395
|
* Receive `sxInput` as object or callback
|
|
@@ -7063,7 +6984,7 @@
|
|
|
7063
6984
|
|
|
7064
6985
|
const muiStyledResolver = (styleArg, ...expressions) => {
|
|
7065
6986
|
const expressionsWithDefaultTheme = expressions ? expressions.map(stylesArg => {
|
|
7066
|
-
// On the server
|
|
6987
|
+
// On the server Emotion doesn't use React.forwardRef for creating components, so the created
|
|
7067
6988
|
// component stays as a function. This condition makes sure that we do not interpolate functions
|
|
7068
6989
|
// which are basically components used as a selectors.
|
|
7069
6990
|
// eslint-disable-next-line no-underscore-dangle
|
|
@@ -7122,7 +7043,7 @@
|
|
|
7122
7043
|
|
|
7123
7044
|
transformedStyleArg = [...styleArg, ...placeholders];
|
|
7124
7045
|
transformedStyleArg.raw = [...styleArg.raw, ...placeholders];
|
|
7125
|
-
} else if (typeof styleArg === 'function' && // On the server
|
|
7046
|
+
} else if (typeof styleArg === 'function' && // On the server Emotion doesn't use React.forwardRef for creating components, so the created
|
|
7126
7047
|
// component stays as a function. This condition makes sure that we do not interpolate functions
|
|
7127
7048
|
// which are basically components used as a selectors.
|
|
7128
7049
|
// eslint-disable-next-line no-underscore-dangle
|
|
@@ -7243,7 +7164,7 @@
|
|
|
7243
7164
|
* Returns an object with the type and values of a color.
|
|
7244
7165
|
*
|
|
7245
7166
|
* Note: Does not support rgb % values.
|
|
7246
|
-
* @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
|
|
7167
|
+
* @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()
|
|
7247
7168
|
* @returns {object} - A MUI color object: {type: string, values: number[]}
|
|
7248
7169
|
*/
|
|
7249
7170
|
|
|
@@ -7295,7 +7216,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
7295
7216
|
/**
|
|
7296
7217
|
* Returns a channel created from the input color.
|
|
7297
7218
|
*
|
|
7298
|
-
* @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
|
|
7219
|
+
* @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()
|
|
7299
7220
|
* @returns {string} - The channel for the color, that can be used in rgba or hsla colors
|
|
7300
7221
|
*/
|
|
7301
7222
|
|
|
@@ -7306,7 +7227,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
7306
7227
|
/**
|
|
7307
7228
|
* Converts a color object with type and values to a string.
|
|
7308
7229
|
* @param {object} color - Decomposed color
|
|
7309
|
-
* @param {string} color.type - One of: 'rgb', 'rgba', 'hsl', 'hsla'
|
|
7230
|
+
* @param {string} color.type - One of: 'rgb', 'rgba', 'hsl', 'hsla', 'color'
|
|
7310
7231
|
* @param {array} color.values - [n,n,n] or [n,n,n,n]
|
|
7311
7232
|
* @returns {string} A CSS color string
|
|
7312
7233
|
*/
|
|
@@ -7711,9 +7632,9 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
7711
7632
|
};
|
|
7712
7633
|
}
|
|
7713
7634
|
|
|
7714
|
-
const DEFAULT_MODE_STORAGE_KEY = '
|
|
7715
|
-
const DEFAULT_COLOR_SCHEME_STORAGE_KEY = '
|
|
7716
|
-
const DEFAULT_ATTRIBUTE = 'data-
|
|
7635
|
+
const DEFAULT_MODE_STORAGE_KEY = 'mode';
|
|
7636
|
+
const DEFAULT_COLOR_SCHEME_STORAGE_KEY = 'color-scheme';
|
|
7637
|
+
const DEFAULT_ATTRIBUTE = 'data-color-scheme';
|
|
7717
7638
|
function getInitColorSchemeScript$1(options) {
|
|
7718
7639
|
const {
|
|
7719
7640
|
enableSystem = false,
|
|
@@ -8010,6 +7931,9 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8010
7931
|
function createCssVarsProvider(options) {
|
|
8011
7932
|
const {
|
|
8012
7933
|
theme: defaultTheme = {},
|
|
7934
|
+
attribute: defaultAttribute = DEFAULT_ATTRIBUTE,
|
|
7935
|
+
modeStorageKey: defaultModeStorageKey = DEFAULT_MODE_STORAGE_KEY,
|
|
7936
|
+
colorSchemeStorageKey: defaultColorSchemeStorageKey = DEFAULT_COLOR_SCHEME_STORAGE_KEY,
|
|
8013
7937
|
defaultMode: desisgnSystemMode = 'light',
|
|
8014
7938
|
defaultColorScheme: designSystemColorScheme,
|
|
8015
7939
|
disableTransitionOnChange: designSystemTransitionOnChange = false,
|
|
@@ -8039,9 +7963,9 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8039
7963
|
children,
|
|
8040
7964
|
theme: themeProp = defaultTheme,
|
|
8041
7965
|
prefix = designSystemPrefix,
|
|
8042
|
-
modeStorageKey =
|
|
8043
|
-
colorSchemeStorageKey =
|
|
8044
|
-
attribute =
|
|
7966
|
+
modeStorageKey = defaultModeStorageKey,
|
|
7967
|
+
colorSchemeStorageKey = defaultColorSchemeStorageKey,
|
|
7968
|
+
attribute = defaultAttribute,
|
|
8045
7969
|
defaultMode = desisgnSystemMode,
|
|
8046
7970
|
defaultColorScheme = designSystemColorScheme,
|
|
8047
7971
|
disableTransitionOnChange = designSystemTransitionOnChange,
|
|
@@ -8109,7 +8033,8 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8109
8033
|
colorSchemes,
|
|
8110
8034
|
prefix,
|
|
8111
8035
|
vars: rootVars,
|
|
8112
|
-
getCssVar: createGetCssVar(prefix)
|
|
8036
|
+
getCssVar: createGetCssVar(prefix),
|
|
8037
|
+
getColorSchemeSelector: targetColorScheme => `[${attribute}="${targetColorScheme}"] &`
|
|
8113
8038
|
});
|
|
8114
8039
|
const defaultColorSchemeStyleSheet = {};
|
|
8115
8040
|
const otherColorSchemesStyleSheet = {};
|
|
@@ -8299,10 +8224,17 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8299
8224
|
*/
|
|
8300
8225
|
theme: PropTypes.object
|
|
8301
8226
|
} ;
|
|
8227
|
+
|
|
8228
|
+
const getInitColorSchemeScript = params => getInitColorSchemeScript$1(_extends({
|
|
8229
|
+
attribute: defaultAttribute,
|
|
8230
|
+
colorSchemeStorageKey: defaultColorSchemeStorageKey,
|
|
8231
|
+
modeStorageKey: defaultModeStorageKey
|
|
8232
|
+
}, params));
|
|
8233
|
+
|
|
8302
8234
|
return {
|
|
8303
8235
|
CssVarsProvider,
|
|
8304
8236
|
useColorScheme,
|
|
8305
|
-
getInitColorSchemeScript
|
|
8237
|
+
getInitColorSchemeScript
|
|
8306
8238
|
};
|
|
8307
8239
|
}
|
|
8308
8240
|
|
|
@@ -9591,13 +9523,13 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
9591
9523
|
};
|
|
9592
9524
|
}
|
|
9593
9525
|
|
|
9594
|
-
function useBadge(
|
|
9526
|
+
function useBadge(parameters) {
|
|
9595
9527
|
const {
|
|
9596
9528
|
badgeContent: badgeContentProp,
|
|
9597
9529
|
invisible: invisibleProp = false,
|
|
9598
9530
|
max: maxProp = 99,
|
|
9599
9531
|
showZero = false
|
|
9600
|
-
} =
|
|
9532
|
+
} = parameters;
|
|
9601
9533
|
const prevProps = usePreviousProps$1({
|
|
9602
9534
|
badgeContent: badgeContentProp,
|
|
9603
9535
|
max: maxProp
|
|
@@ -9611,7 +9543,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
9611
9543
|
const {
|
|
9612
9544
|
badgeContent,
|
|
9613
9545
|
max = maxProp
|
|
9614
|
-
} = invisible ? prevProps :
|
|
9546
|
+
} = invisible ? prevProps : parameters;
|
|
9615
9547
|
const displayValue = badgeContent && Number(badgeContent) > max ? `${max}+` : badgeContent;
|
|
9616
9548
|
return {
|
|
9617
9549
|
badgeContent,
|
|
@@ -9638,8 +9570,21 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
9638
9570
|
};
|
|
9639
9571
|
return composeClasses(slots, getBadgeUnstyledUtilityClass, undefined);
|
|
9640
9572
|
};
|
|
9573
|
+
/**
|
|
9574
|
+
*
|
|
9575
|
+
* Demos:
|
|
9576
|
+
*
|
|
9577
|
+
* - [Badge](https://mui.com/base/react-badge/)
|
|
9578
|
+
*
|
|
9579
|
+
* API:
|
|
9580
|
+
*
|
|
9581
|
+
* - [BadgeUnstyled API](https://mui.com/base/api/badge-unstyled/)
|
|
9582
|
+
*/
|
|
9583
|
+
|
|
9641
9584
|
|
|
9642
9585
|
const BadgeUnstyled = /*#__PURE__*/React__namespace.forwardRef(function BadgeUnstyled(props, ref) {
|
|
9586
|
+
var _componentsProps$root, _componentsProps$badg;
|
|
9587
|
+
|
|
9643
9588
|
const {
|
|
9644
9589
|
component,
|
|
9645
9590
|
children,
|
|
@@ -9669,15 +9614,16 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
9669
9614
|
|
|
9670
9615
|
const classes = useUtilityClasses$1O(ownerState);
|
|
9671
9616
|
const Root = component || components.Root || 'span';
|
|
9672
|
-
const rootProps = appendOwnerState(Root, _extends({}, other, componentsProps.root
|
|
9617
|
+
const rootProps = appendOwnerState(Root, _extends({}, other, componentsProps.root, {
|
|
9618
|
+
ref,
|
|
9619
|
+
className: clsx(classes.root, (_componentsProps$root = componentsProps.root) == null ? void 0 : _componentsProps$root.className, className)
|
|
9620
|
+
}), ownerState);
|
|
9673
9621
|
const Badge = components.Badge || 'span';
|
|
9674
|
-
const badgeProps = appendOwnerState(Badge, componentsProps.badge,
|
|
9622
|
+
const badgeProps = appendOwnerState(Badge, _extends({}, componentsProps.badge, {
|
|
9623
|
+
className: clsx(classes.badge, (_componentsProps$badg = componentsProps.badge) == null ? void 0 : _componentsProps$badg.className)
|
|
9624
|
+
}), ownerState);
|
|
9675
9625
|
return /*#__PURE__*/jsxRuntime_2(Root, _extends({}, rootProps, {
|
|
9676
|
-
ref: ref
|
|
9677
|
-
}, other, {
|
|
9678
|
-
className: clsx(classes.root, rootProps.className, className),
|
|
9679
9626
|
children: [children, /*#__PURE__*/jsxRuntime_1(Badge, _extends({}, badgeProps, {
|
|
9680
|
-
className: clsx(classes.badge, badgeProps.className),
|
|
9681
9627
|
children: displayValue
|
|
9682
9628
|
}))]
|
|
9683
9629
|
}));
|
|
@@ -9687,7 +9633,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
9687
9633
|
= {
|
|
9688
9634
|
// ----------------------------- Warning --------------------------------
|
|
9689
9635
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
9690
|
-
// | To update them edit
|
|
9636
|
+
// | To update them edit TypeScript types and run "yarn proptypes" |
|
|
9691
9637
|
// ----------------------------------------------------------------------
|
|
9692
9638
|
|
|
9693
9639
|
/**
|
|
@@ -12353,11 +12299,23 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
12353
12299
|
return parseInt(ownerWindow(element).getComputedStyle(element).paddingRight, 10) || 0;
|
|
12354
12300
|
}
|
|
12355
12301
|
|
|
12302
|
+
function isAriaHiddenForbiddenOnElement(element) {
|
|
12303
|
+
// The forbidden HTML tags are the ones from ARIA specification that
|
|
12304
|
+
// can be children of body and can't have aria-hidden attribute.
|
|
12305
|
+
// cf. https://www.w3.org/TR/html-aria/#docconformance
|
|
12306
|
+
const forbiddenTagNames = ['TEMPLATE', 'SCRIPT', 'STYLE', 'LINK', 'MAP', 'META', 'NOSCRIPT', 'PICTURE', 'COL', 'COLGROUP', 'PARAM', 'SLOT', 'SOURCE', 'TRACK'];
|
|
12307
|
+
const isForbiddenTagName = forbiddenTagNames.indexOf(element.tagName) !== -1;
|
|
12308
|
+
const isInputHidden = element.tagName === 'INPUT' && element.getAttribute('type') === 'hidden';
|
|
12309
|
+
return isForbiddenTagName || isInputHidden;
|
|
12310
|
+
}
|
|
12311
|
+
|
|
12356
12312
|
function ariaHiddenSiblings(container, mountElement, currentElement, elementsToExclude = [], show) {
|
|
12357
12313
|
const blacklist = [mountElement, currentElement, ...elementsToExclude];
|
|
12358
|
-
const blacklistTagNames = ['TEMPLATE', 'SCRIPT', 'STYLE'];
|
|
12359
12314
|
[].forEach.call(container.children, element => {
|
|
12360
|
-
|
|
12315
|
+
const isNotExcludedElement = blacklist.indexOf(element) === -1;
|
|
12316
|
+
const isNotForbiddenElement = !isAriaHiddenForbiddenOnElement(element);
|
|
12317
|
+
|
|
12318
|
+
if (isNotExcludedElement && isNotForbiddenElement) {
|
|
12361
12319
|
ariaHidden(element, show);
|
|
12362
12320
|
}
|
|
12363
12321
|
});
|
|
@@ -12509,7 +12467,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
12509
12467
|
}
|
|
12510
12468
|
}
|
|
12511
12469
|
|
|
12512
|
-
remove(modal) {
|
|
12470
|
+
remove(modal, ariaHiddenState = true) {
|
|
12513
12471
|
const modalIndex = this.modals.indexOf(modal);
|
|
12514
12472
|
|
|
12515
12473
|
if (modalIndex === -1) {
|
|
@@ -12529,7 +12487,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
12529
12487
|
|
|
12530
12488
|
if (modal.modalRef) {
|
|
12531
12489
|
// In case the modal wasn't in the DOM yet.
|
|
12532
|
-
ariaHidden(modal.modalRef,
|
|
12490
|
+
ariaHidden(modal.modalRef, ariaHiddenState);
|
|
12533
12491
|
}
|
|
12534
12492
|
|
|
12535
12493
|
ariaHiddenSiblings(containerInfo.container, modal.mount, modal.modalRef, containerInfo.hiddenSiblings, false);
|
|
@@ -12957,6 +12915,8 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
12957
12915
|
*/
|
|
12958
12916
|
|
|
12959
12917
|
const ModalUnstyled = /*#__PURE__*/React__namespace.forwardRef(function ModalUnstyled(props, ref) {
|
|
12918
|
+
var _props$ariaHidden;
|
|
12919
|
+
|
|
12960
12920
|
const {
|
|
12961
12921
|
BackdropComponent,
|
|
12962
12922
|
BackdropProps,
|
|
@@ -12997,6 +12957,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
12997
12957
|
const modalRef = React__namespace.useRef(null);
|
|
12998
12958
|
const handleRef = useForkRef(modalRef, ref);
|
|
12999
12959
|
const hasTransition = getHasTransition(props);
|
|
12960
|
+
const ariaHiddenProp = (_props$ariaHidden = props['aria-hidden']) != null ? _props$ariaHidden : true;
|
|
13000
12961
|
|
|
13001
12962
|
const getDoc = () => ownerDocument(mountNodeRef.current);
|
|
13002
12963
|
|
|
@@ -13033,12 +12994,12 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
13033
12994
|
if (open && isTopModal()) {
|
|
13034
12995
|
handleMounted();
|
|
13035
12996
|
} else {
|
|
13036
|
-
ariaHidden(modalRef.current,
|
|
12997
|
+
ariaHidden(modalRef.current, ariaHiddenProp);
|
|
13037
12998
|
}
|
|
13038
12999
|
});
|
|
13039
13000
|
const handleClose = React__namespace.useCallback(() => {
|
|
13040
|
-
manager.remove(getModal());
|
|
13041
|
-
}, [manager]);
|
|
13001
|
+
manager.remove(getModal(), ariaHiddenProp);
|
|
13002
|
+
}, [manager, ariaHiddenProp]);
|
|
13042
13003
|
React__namespace.useEffect(() => {
|
|
13043
13004
|
return () => {
|
|
13044
13005
|
handleClose();
|
|
@@ -13435,7 +13396,6 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
13435
13396
|
})]
|
|
13436
13397
|
}));
|
|
13437
13398
|
}
|
|
13438
|
-
|
|
13439
13399
|
SliderValueLabelUnstyled.propTypes = {
|
|
13440
13400
|
children: PropTypes.element.isRequired,
|
|
13441
13401
|
className: PropTypes.string,
|
|
@@ -13610,13 +13570,13 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
13610
13570
|
return cachedSupportsTouchActionNone;
|
|
13611
13571
|
}
|
|
13612
13572
|
|
|
13613
|
-
function useSlider(
|
|
13573
|
+
function useSlider(parameters) {
|
|
13614
13574
|
const {
|
|
13615
|
-
ref,
|
|
13616
13575
|
'aria-labelledby': ariaLabelledby,
|
|
13617
13576
|
defaultValue,
|
|
13618
|
-
disableSwap = false,
|
|
13619
13577
|
disabled = false,
|
|
13578
|
+
disableSwap = false,
|
|
13579
|
+
isRtl = false,
|
|
13620
13580
|
marks: marksProp = false,
|
|
13621
13581
|
max = 100,
|
|
13622
13582
|
min = 0,
|
|
@@ -13624,12 +13584,12 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
13624
13584
|
onChange,
|
|
13625
13585
|
onChangeCommitted,
|
|
13626
13586
|
orientation = 'horizontal',
|
|
13587
|
+
ref,
|
|
13627
13588
|
scale = Identity$1,
|
|
13628
13589
|
step = 1,
|
|
13629
13590
|
tabIndex,
|
|
13630
|
-
value: valueProp
|
|
13631
|
-
|
|
13632
|
-
} = props;
|
|
13591
|
+
value: valueProp
|
|
13592
|
+
} = parameters;
|
|
13633
13593
|
const touchId = React__namespace.useRef(); // We can't use the :active browser pseudo-classes.
|
|
13634
13594
|
// - The active state isn't triggered when clicking on the rail.
|
|
13635
13595
|
// - The active state isn't transferred when inversing a range slider.
|
|
@@ -14052,7 +14012,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
14052
14012
|
const trackOffset = valueToPercent(range ? values[0] : min, min, max);
|
|
14053
14013
|
const trackLeap = valueToPercent(values[values.length - 1], min, max) - trackOffset;
|
|
14054
14014
|
|
|
14055
|
-
const getRootProps = otherHandlers => {
|
|
14015
|
+
const getRootProps = (otherHandlers = {}) => {
|
|
14056
14016
|
const ownEventHandlers = {
|
|
14057
14017
|
onMouseDown: createHandleMouseDown(otherHandlers || {})
|
|
14058
14018
|
};
|
|
@@ -14079,7 +14039,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
14079
14039
|
setOpen(-1);
|
|
14080
14040
|
};
|
|
14081
14041
|
|
|
14082
|
-
const getThumbProps = otherHandlers => {
|
|
14042
|
+
const getThumbProps = (otherHandlers = {}) => {
|
|
14083
14043
|
const ownEventHandlers = {
|
|
14084
14044
|
onMouseOver: createHandleMouseOver(otherHandlers || {}),
|
|
14085
14045
|
onMouseLeave: createHandleMouseLeave(otherHandlers || {})
|
|
@@ -14090,7 +14050,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
14090
14050
|
return _extends({}, mergedEventHandlers);
|
|
14091
14051
|
};
|
|
14092
14052
|
|
|
14093
|
-
const getHiddenInputProps = otherHandlers => {
|
|
14053
|
+
const getHiddenInputProps = (otherHandlers = {}) => {
|
|
14094
14054
|
const ownEventHandlers = {
|
|
14095
14055
|
onChange: createHandleHiddenInputChange(otherHandlers || {}),
|
|
14096
14056
|
onFocus: createHandleHiddenInputFocus(otherHandlers || {}),
|
|
@@ -14107,9 +14067,9 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
14107
14067
|
'aria-valuemin': scale(min),
|
|
14108
14068
|
name,
|
|
14109
14069
|
type: 'range',
|
|
14110
|
-
min:
|
|
14111
|
-
max:
|
|
14112
|
-
step:
|
|
14070
|
+
min: parameters.min,
|
|
14071
|
+
max: parameters.max,
|
|
14072
|
+
step: parameters.step,
|
|
14113
14073
|
disabled
|
|
14114
14074
|
}, mergedEventHandlers, {
|
|
14115
14075
|
style: _extends({}, visuallyHidden$1, {
|
|
@@ -14122,20 +14082,20 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
14122
14082
|
};
|
|
14123
14083
|
|
|
14124
14084
|
return {
|
|
14085
|
+
active,
|
|
14125
14086
|
axis,
|
|
14126
14087
|
axisProps,
|
|
14127
|
-
|
|
14088
|
+
dragging,
|
|
14089
|
+
focusVisible,
|
|
14128
14090
|
getHiddenInputProps,
|
|
14091
|
+
getRootProps,
|
|
14129
14092
|
getThumbProps,
|
|
14130
|
-
dragging,
|
|
14131
14093
|
marks,
|
|
14132
|
-
values,
|
|
14133
|
-
active,
|
|
14134
|
-
focusVisible,
|
|
14135
14094
|
open,
|
|
14136
14095
|
range,
|
|
14096
|
+
trackLeap,
|
|
14137
14097
|
trackOffset,
|
|
14138
|
-
|
|
14098
|
+
values
|
|
14139
14099
|
};
|
|
14140
14100
|
}
|
|
14141
14101
|
|
|
@@ -14316,10 +14276,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
14316
14276
|
children: /*#__PURE__*/jsxRuntime_1(Thumb, _extends({
|
|
14317
14277
|
"data-index": index
|
|
14318
14278
|
}, thumbProps, getThumbProps(), {
|
|
14319
|
-
className: clsx(classes.thumb, thumbProps.className, active === index && classes.active, focusVisible === index && classes.focusVisible)
|
|
14320
|
-
}, !isHostComponent(Thumb) && {
|
|
14321
|
-
ownerState: _extends({}, ownerState, thumbProps.ownerState)
|
|
14322
|
-
}, {
|
|
14279
|
+
className: clsx(classes.thumb, thumbProps.className, active === index && classes.active, focusVisible === index && classes.focusVisible),
|
|
14323
14280
|
style: _extends({}, style, {
|
|
14324
14281
|
pointerEvents: disableSwap && active !== index ? 'none' : undefined
|
|
14325
14282
|
}, thumbProps.style),
|
|
@@ -14429,12 +14386,14 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
14429
14386
|
thumb: PropTypes.object,
|
|
14430
14387
|
track: PropTypes.object,
|
|
14431
14388
|
valueLabel: PropTypes.shape({
|
|
14389
|
+
children: PropTypes.element,
|
|
14432
14390
|
className: PropTypes.string,
|
|
14433
14391
|
components: PropTypes.shape({
|
|
14434
14392
|
Root: PropTypes.elementType
|
|
14435
14393
|
}),
|
|
14394
|
+
open: PropTypes.bool,
|
|
14436
14395
|
style: PropTypes.object,
|
|
14437
|
-
value: PropTypes.
|
|
14396
|
+
value: PropTypes.number,
|
|
14438
14397
|
valueLabelDisplay: PropTypes.oneOf(['auto', 'off', 'on'])
|
|
14439
14398
|
})
|
|
14440
14399
|
}),
|
|
@@ -15987,6 +15946,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
15987
15946
|
getInitColorSchemeScript
|
|
15988
15947
|
} = createCssVarsProvider({
|
|
15989
15948
|
theme: defaultTheme$1,
|
|
15949
|
+
attribute: 'data-mui-color-scheme',
|
|
15950
|
+
modeStorageKey: 'mui-mode',
|
|
15951
|
+
colorSchemeStorageKey: 'mui-color-scheme',
|
|
15990
15952
|
defaultColorScheme: {
|
|
15991
15953
|
light: 'light',
|
|
15992
15954
|
dark: 'dark'
|
|
@@ -19574,7 +19536,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
19574
19536
|
slot: 'Message',
|
|
19575
19537
|
overridesResolver: (props, styles) => styles.message
|
|
19576
19538
|
})({
|
|
19577
|
-
padding: '8px 0'
|
|
19539
|
+
padding: '8px 0',
|
|
19540
|
+
minWidth: 0,
|
|
19541
|
+
overflow: 'auto'
|
|
19578
19542
|
});
|
|
19579
19543
|
const AlertAction = styled$1('div', {
|
|
19580
19544
|
name: 'MuiAlert',
|
|
@@ -24800,7 +24764,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
24800
24764
|
function getButtonUtilityClass(slot) {
|
|
24801
24765
|
return generateUtilityClass('MuiButton', slot);
|
|
24802
24766
|
}
|
|
24803
|
-
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']);
|
|
24767
|
+
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']);
|
|
24804
24768
|
var buttonClasses$1 = buttonClasses;
|
|
24805
24769
|
|
|
24806
24770
|
/**
|
|
@@ -26593,10 +26557,10 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
26593
26557
|
theme,
|
|
26594
26558
|
ownerState
|
|
26595
26559
|
}) => _extends({
|
|
26596
|
-
color: theme.palette.text.secondary
|
|
26560
|
+
color: (theme.vars || theme).palette.text.secondary
|
|
26597
26561
|
}, !ownerState.disableRipple && {
|
|
26598
26562
|
'&:hover': {
|
|
26599
|
-
backgroundColor: alpha(ownerState.color === 'default' ? theme.palette.action.active : theme.palette[ownerState.color].main, theme.palette.action.hoverOpacity),
|
|
26563
|
+
backgroundColor: theme.vars ? `rgba(${ownerState.color === 'default' ? theme.vars.palette.action.activeChannel : theme.vars.palette.primary.mainChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(ownerState.color === 'default' ? theme.palette.action.active : theme.palette[ownerState.color].main, theme.palette.action.hoverOpacity),
|
|
26600
26564
|
// Reset on touch devices, it doesn't add specificity
|
|
26601
26565
|
'@media (hover: none)': {
|
|
26602
26566
|
backgroundColor: 'transparent'
|
|
@@ -26604,10 +26568,10 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
26604
26568
|
}
|
|
26605
26569
|
}, ownerState.color !== 'default' && {
|
|
26606
26570
|
[`&.${checkboxClasses$1.checked}, &.${checkboxClasses$1.indeterminate}`]: {
|
|
26607
|
-
color: theme.palette[ownerState.color].main
|
|
26571
|
+
color: (theme.vars || theme).palette[ownerState.color].main
|
|
26608
26572
|
},
|
|
26609
26573
|
[`&.${checkboxClasses$1.disabled}`]: {
|
|
26610
|
-
color: theme.palette.action.disabled
|
|
26574
|
+
color: (theme.vars || theme).palette.action.disabled
|
|
26611
26575
|
}
|
|
26612
26576
|
}));
|
|
26613
26577
|
|
|
@@ -30941,7 +30905,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
30941
30905
|
...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}`)]);
|
|
30942
30906
|
var gridClasses$1 = gridClasses;
|
|
30943
30907
|
|
|
30944
|
-
const _excluded$1d = ["className", "columns", "columnSpacing", "component", "container", "direction", "item", "
|
|
30908
|
+
const _excluded$1d = ["className", "columns", "columnSpacing", "component", "container", "direction", "item", "rowSpacing", "spacing", "wrap", "zeroMinWidth"];
|
|
30945
30909
|
|
|
30946
30910
|
function getOffset(val) {
|
|
30947
30911
|
const parse = parseFloat(val);
|
|
@@ -31121,26 +31085,27 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
31121
31085
|
|
|
31122
31086
|
return styles;
|
|
31123
31087
|
}
|
|
31124
|
-
function
|
|
31125
|
-
//
|
|
31126
|
-
if (!
|
|
31088
|
+
function resolveSpacingStyles(spacing, breakpoints, styles = {}) {
|
|
31089
|
+
// undefined/null or `spacing` <= 0
|
|
31090
|
+
if (!spacing || spacing <= 0) {
|
|
31127
31091
|
return [];
|
|
31128
31092
|
} // in case of string/number `spacing`
|
|
31129
31093
|
|
|
31130
31094
|
|
|
31131
31095
|
if (typeof spacing === 'string' && !Number.isNaN(Number(spacing)) || typeof spacing === 'number') {
|
|
31132
|
-
return [styles[`spacing-xs-${String(spacing)}`]
|
|
31096
|
+
return [styles[`spacing-xs-${String(spacing)}`]];
|
|
31133
31097
|
} // in case of object `spacing`
|
|
31134
31098
|
|
|
31135
31099
|
|
|
31136
|
-
const
|
|
31137
|
-
|
|
31138
|
-
|
|
31139
|
-
|
|
31140
|
-
|
|
31141
|
-
|
|
31142
|
-
|
|
31143
|
-
|
|
31100
|
+
const spacingStyles = [];
|
|
31101
|
+
breakpoints.forEach(breakpoint => {
|
|
31102
|
+
const value = spacing[breakpoint];
|
|
31103
|
+
|
|
31104
|
+
if (Number(value) > 0) {
|
|
31105
|
+
spacingStyles.push(styles[`spacing-${breakpoint}-${String(value)}`]);
|
|
31106
|
+
}
|
|
31107
|
+
});
|
|
31108
|
+
return spacingStyles;
|
|
31144
31109
|
} // Default CSS values
|
|
31145
31110
|
// flex: '0 1 auto',
|
|
31146
31111
|
// flexDirection: 'row',
|
|
@@ -31152,20 +31117,33 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
31152
31117
|
name: 'MuiGrid',
|
|
31153
31118
|
slot: 'Root',
|
|
31154
31119
|
overridesResolver: (props, styles) => {
|
|
31120
|
+
const {
|
|
31121
|
+
ownerState
|
|
31122
|
+
} = props;
|
|
31155
31123
|
const {
|
|
31156
31124
|
container,
|
|
31157
31125
|
direction,
|
|
31158
31126
|
item,
|
|
31159
|
-
lg,
|
|
31160
|
-
md,
|
|
31161
|
-
sm,
|
|
31162
31127
|
spacing,
|
|
31163
31128
|
wrap,
|
|
31164
|
-
|
|
31165
|
-
|
|
31166
|
-
|
|
31167
|
-
|
|
31168
|
-
|
|
31129
|
+
zeroMinWidth,
|
|
31130
|
+
breakpoints
|
|
31131
|
+
} = ownerState;
|
|
31132
|
+
let spacingStyles = []; // in case of grid item
|
|
31133
|
+
|
|
31134
|
+
if (container) {
|
|
31135
|
+
spacingStyles = resolveSpacingStyles(spacing, breakpoints, styles);
|
|
31136
|
+
}
|
|
31137
|
+
|
|
31138
|
+
const breakpointsStyles = [];
|
|
31139
|
+
breakpoints.forEach(breakpoint => {
|
|
31140
|
+
const value = ownerState[breakpoint];
|
|
31141
|
+
|
|
31142
|
+
if (value) {
|
|
31143
|
+
breakpointsStyles.push(styles[`grid-${breakpoint}-${String(value)}`]);
|
|
31144
|
+
}
|
|
31145
|
+
});
|
|
31146
|
+
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];
|
|
31169
31147
|
}
|
|
31170
31148
|
})(({
|
|
31171
31149
|
ownerState
|
|
@@ -31183,6 +31161,29 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
31183
31161
|
}, ownerState.wrap !== 'wrap' && {
|
|
31184
31162
|
flexWrap: ownerState.wrap
|
|
31185
31163
|
}), generateDirection, generateRowGap, generateColumnGap, generateGrid);
|
|
31164
|
+
function resolveSpacingClasses(spacing, breakpoints) {
|
|
31165
|
+
// undefined/null or `spacing` <= 0
|
|
31166
|
+
if (!spacing || spacing <= 0) {
|
|
31167
|
+
return [];
|
|
31168
|
+
} // in case of string/number `spacing`
|
|
31169
|
+
|
|
31170
|
+
|
|
31171
|
+
if (typeof spacing === 'string' && !Number.isNaN(Number(spacing)) || typeof spacing === 'number') {
|
|
31172
|
+
return [`spacing-xs-${String(spacing)}`];
|
|
31173
|
+
} // in case of object `spacing`
|
|
31174
|
+
|
|
31175
|
+
|
|
31176
|
+
const classes = [];
|
|
31177
|
+
breakpoints.forEach(breakpoint => {
|
|
31178
|
+
const value = spacing[breakpoint];
|
|
31179
|
+
|
|
31180
|
+
if (Number(value) > 0) {
|
|
31181
|
+
const className = `spacing-${breakpoint}-${String(value)}`;
|
|
31182
|
+
classes.push(className);
|
|
31183
|
+
}
|
|
31184
|
+
});
|
|
31185
|
+
return classes;
|
|
31186
|
+
}
|
|
31186
31187
|
|
|
31187
31188
|
const useUtilityClasses$_ = ownerState => {
|
|
31188
31189
|
const {
|
|
@@ -31190,17 +31191,27 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
31190
31191
|
container,
|
|
31191
31192
|
direction,
|
|
31192
31193
|
item,
|
|
31193
|
-
lg,
|
|
31194
|
-
md,
|
|
31195
|
-
sm,
|
|
31196
31194
|
spacing,
|
|
31197
31195
|
wrap,
|
|
31198
|
-
|
|
31199
|
-
|
|
31200
|
-
zeroMinWidth
|
|
31196
|
+
zeroMinWidth,
|
|
31197
|
+
breakpoints
|
|
31201
31198
|
} = ownerState;
|
|
31199
|
+
let spacingClasses = []; // in case of grid item
|
|
31200
|
+
|
|
31201
|
+
if (container) {
|
|
31202
|
+
spacingClasses = resolveSpacingClasses(spacing, breakpoints);
|
|
31203
|
+
}
|
|
31204
|
+
|
|
31205
|
+
const breakpointsClasses = [];
|
|
31206
|
+
breakpoints.forEach(breakpoint => {
|
|
31207
|
+
const value = ownerState[breakpoint];
|
|
31208
|
+
|
|
31209
|
+
if (value) {
|
|
31210
|
+
breakpointsClasses.push(`grid-${breakpoint}-${String(value)}`);
|
|
31211
|
+
}
|
|
31212
|
+
});
|
|
31202
31213
|
const slots = {
|
|
31203
|
-
root: ['root', container && 'container', item && 'item', zeroMinWidth && 'zeroMinWidth', ...
|
|
31214
|
+
root: ['root', container && 'container', item && 'item', zeroMinWidth && 'zeroMinWidth', ...spacingClasses, direction !== 'row' && `direction-xs-${String(direction)}`, wrap !== 'wrap' && `wrap-xs-${String(wrap)}`, ...breakpointsClasses]
|
|
31204
31215
|
};
|
|
31205
31216
|
return composeClasses(slots, getGridUtilityClass, classes);
|
|
31206
31217
|
};
|
|
@@ -31210,6 +31221,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
31210
31221
|
props: inProps,
|
|
31211
31222
|
name: 'MuiGrid'
|
|
31212
31223
|
});
|
|
31224
|
+
const {
|
|
31225
|
+
breakpoints
|
|
31226
|
+
} = useTheme();
|
|
31213
31227
|
const props = extendSxProp(themeProps);
|
|
31214
31228
|
|
|
31215
31229
|
const {
|
|
@@ -31220,14 +31234,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
31220
31234
|
container = false,
|
|
31221
31235
|
direction = 'row',
|
|
31222
31236
|
item = false,
|
|
31223
|
-
lg = false,
|
|
31224
|
-
md = false,
|
|
31225
31237
|
rowSpacing: rowSpacingProp,
|
|
31226
|
-
sm = false,
|
|
31227
31238
|
spacing = 0,
|
|
31228
31239
|
wrap = 'wrap',
|
|
31229
|
-
xl = false,
|
|
31230
|
-
xs = false,
|
|
31231
31240
|
zeroMinWidth = false
|
|
31232
31241
|
} = props,
|
|
31233
31242
|
other = _objectWithoutPropertiesLoose(props, _excluded$1d);
|
|
@@ -31237,21 +31246,29 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
31237
31246
|
const columnsContext = React__namespace.useContext(GridContext$1); // columns set with default breakpoint unit of 12
|
|
31238
31247
|
|
|
31239
31248
|
const columns = container ? columnsProp || 12 : columnsContext;
|
|
31249
|
+
const breakpointsValues = {};
|
|
31250
|
+
|
|
31251
|
+
const otherFiltered = _extends({}, other);
|
|
31252
|
+
|
|
31253
|
+
breakpoints.keys.forEach(breakpoint => {
|
|
31254
|
+
if (other[breakpoint] != null) {
|
|
31255
|
+
breakpointsValues[breakpoint] = other[breakpoint];
|
|
31256
|
+
delete otherFiltered[breakpoint];
|
|
31257
|
+
}
|
|
31258
|
+
});
|
|
31240
31259
|
|
|
31241
31260
|
const ownerState = _extends({}, props, {
|
|
31242
31261
|
columns,
|
|
31243
31262
|
container,
|
|
31244
31263
|
direction,
|
|
31245
31264
|
item,
|
|
31246
|
-
lg,
|
|
31247
|
-
md,
|
|
31248
|
-
sm,
|
|
31249
31265
|
rowSpacing,
|
|
31250
31266
|
columnSpacing,
|
|
31251
31267
|
wrap,
|
|
31252
|
-
|
|
31253
|
-
|
|
31254
|
-
|
|
31268
|
+
zeroMinWidth,
|
|
31269
|
+
spacing
|
|
31270
|
+
}, breakpointsValues, {
|
|
31271
|
+
breakpoints: breakpoints.keys
|
|
31255
31272
|
});
|
|
31256
31273
|
|
|
31257
31274
|
const classes = useUtilityClasses$_(ownerState);
|
|
@@ -31262,7 +31279,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
31262
31279
|
className: clsx(classes.root, className),
|
|
31263
31280
|
as: component,
|
|
31264
31281
|
ref: ref
|
|
31265
|
-
},
|
|
31282
|
+
}, otherFiltered))
|
|
31266
31283
|
});
|
|
31267
31284
|
});
|
|
31268
31285
|
Grid.propTypes
|
|
@@ -31448,12 +31465,12 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
31448
31465
|
transform: 'none'
|
|
31449
31466
|
}
|
|
31450
31467
|
};
|
|
31451
|
-
|
|
31452
|
-
|
|
31453
|
-
|
|
31468
|
+
/*
|
|
31469
|
+
TODO v6: remove
|
|
31470
|
+
Conditionally apply a workaround for the CSS transition bug in Safari 15.4 / WebKit browsers.
|
|
31454
31471
|
*/
|
|
31455
31472
|
|
|
31456
|
-
const isWebKit154 = typeof navigator !== 'undefined' && /^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent) && /(os |version\/)15(.|_)
|
|
31473
|
+
const isWebKit154 = typeof navigator !== 'undefined' && /^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent) && /(os |version\/)15(.|_)4/i.test(navigator.userAgent);
|
|
31457
31474
|
/**
|
|
31458
31475
|
* The Grow transition is used by the [Tooltip](/material-ui/react-tooltip/) and
|
|
31459
31476
|
* [Popover](/material-ui/react-popover/) components.
|
|
@@ -31935,7 +31952,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
31935
31952
|
WithWidth.displayName = `WithWidth(${getDisplayName(Component)})`;
|
|
31936
31953
|
}
|
|
31937
31954
|
|
|
31938
|
-
hoistNonReactStatics_cjs(WithWidth, Component);
|
|
31939
31955
|
return WithWidth;
|
|
31940
31956
|
};
|
|
31941
31957
|
|
|
@@ -33914,6 +33930,12 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
33914
33930
|
*/
|
|
33915
33931
|
shrink: PropTypes.bool,
|
|
33916
33932
|
|
|
33933
|
+
/**
|
|
33934
|
+
* The size of the component.
|
|
33935
|
+
* @default 'normal'
|
|
33936
|
+
*/
|
|
33937
|
+
size: PropTypes.oneOf(['normal', 'small']),
|
|
33938
|
+
|
|
33917
33939
|
/**
|
|
33918
33940
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
33919
33941
|
*/
|
|
@@ -34297,7 +34319,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
34297
34319
|
const linkClasses = generateUtilityClasses('MuiLink', ['root', 'underlineNone', 'underlineHover', 'underlineAlways', 'button', 'focusVisible']);
|
|
34298
34320
|
var linkClasses$1 = linkClasses;
|
|
34299
34321
|
|
|
34300
|
-
const _excluded$10 = ["className", "color", "component", "onBlur", "onFocus", "TypographyClasses", "underline", "variant", "sx"];
|
|
34301
34322
|
const colorTransformations = {
|
|
34302
34323
|
primary: 'primary.main',
|
|
34303
34324
|
textPrimary: 'text.primary',
|
|
@@ -34310,6 +34331,25 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
34310
34331
|
return colorTransformations[color] || color;
|
|
34311
34332
|
};
|
|
34312
34333
|
|
|
34334
|
+
const getTextDecoration = ({
|
|
34335
|
+
theme,
|
|
34336
|
+
ownerState
|
|
34337
|
+
}) => {
|
|
34338
|
+
const transformedColor = transformDeprecatedColors(ownerState.color);
|
|
34339
|
+
const color = getPath(theme, `palette.${transformedColor}`, false) || ownerState.color;
|
|
34340
|
+
const channelColor = getPath(theme, `palette.${transformedColor}Channel`);
|
|
34341
|
+
|
|
34342
|
+
if ('vars' in theme && channelColor) {
|
|
34343
|
+
return `rgba(${channelColor} / 0.4)`;
|
|
34344
|
+
}
|
|
34345
|
+
|
|
34346
|
+
return alpha(color, 0.4);
|
|
34347
|
+
};
|
|
34348
|
+
|
|
34349
|
+
var getTextDecoration$1 = getTextDecoration;
|
|
34350
|
+
|
|
34351
|
+
const _excluded$10 = ["className", "color", "component", "onBlur", "onFocus", "TypographyClasses", "underline", "variant", "sx"];
|
|
34352
|
+
|
|
34313
34353
|
const useUtilityClasses$Q = ownerState => {
|
|
34314
34354
|
const {
|
|
34315
34355
|
classes,
|
|
@@ -34336,7 +34376,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
34336
34376
|
theme,
|
|
34337
34377
|
ownerState
|
|
34338
34378
|
}) => {
|
|
34339
|
-
const color = getPath(theme, `palette.${transformDeprecatedColors(ownerState.color)}`) || ownerState.color;
|
|
34340
34379
|
return _extends({}, ownerState.underline === 'none' && {
|
|
34341
34380
|
textDecoration: 'none'
|
|
34342
34381
|
}, ownerState.underline === 'hover' && {
|
|
@@ -34344,13 +34383,18 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
34344
34383
|
'&:hover': {
|
|
34345
34384
|
textDecoration: 'underline'
|
|
34346
34385
|
}
|
|
34347
|
-
}, ownerState.underline === 'always' && {
|
|
34348
|
-
textDecoration: 'underline'
|
|
34349
|
-
|
|
34386
|
+
}, ownerState.underline === 'always' && _extends({
|
|
34387
|
+
textDecoration: 'underline'
|
|
34388
|
+
}, ownerState.color !== 'inherit' && {
|
|
34389
|
+
textDecorationColor: getTextDecoration$1({
|
|
34390
|
+
theme,
|
|
34391
|
+
ownerState
|
|
34392
|
+
})
|
|
34393
|
+
}, {
|
|
34350
34394
|
'&:hover': {
|
|
34351
34395
|
textDecorationColor: 'inherit'
|
|
34352
34396
|
}
|
|
34353
|
-
}, ownerState.component === 'button' && {
|
|
34397
|
+
}), ownerState.component === 'button' && {
|
|
34354
34398
|
position: 'relative',
|
|
34355
34399
|
WebkitTapHighlightColor: 'transparent',
|
|
34356
34400
|
backgroundColor: 'transparent',
|
|
@@ -41676,7 +41720,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
41676
41720
|
transition: theme.transitions.create(['transform'], {
|
|
41677
41721
|
duration: theme.transitions.duration.shortest
|
|
41678
41722
|
}),
|
|
41679
|
-
top: -10,
|
|
41680
41723
|
transformOrigin: 'bottom center',
|
|
41681
41724
|
transform: 'translateY(-100%) scale(0)',
|
|
41682
41725
|
position: 'absolute',
|
|
@@ -41687,20 +41730,34 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
41687
41730
|
alignItems: 'center',
|
|
41688
41731
|
justifyContent: 'center',
|
|
41689
41732
|
padding: '0.25rem 0.75rem'
|
|
41690
|
-
}, ownerState.
|
|
41691
|
-
|
|
41692
|
-
padding: '0.25rem 0.5rem'
|
|
41693
|
-
}, {
|
|
41733
|
+
}, ownerState.orientation === 'horizontal' && {
|
|
41734
|
+
top: '-10px',
|
|
41694
41735
|
'&:before': {
|
|
41695
41736
|
position: 'absolute',
|
|
41696
41737
|
content: '""',
|
|
41697
41738
|
width: 8,
|
|
41698
41739
|
height: 8,
|
|
41740
|
+
transform: 'translate(-50%, 50%) rotate(45deg)',
|
|
41741
|
+
backgroundColor: 'inherit',
|
|
41699
41742
|
bottom: 0,
|
|
41700
|
-
left: '50%'
|
|
41743
|
+
left: '50%'
|
|
41744
|
+
}
|
|
41745
|
+
}, ownerState.orientation === 'vertical' && {
|
|
41746
|
+
right: '30px',
|
|
41747
|
+
top: '25px',
|
|
41748
|
+
'&:before': {
|
|
41749
|
+
position: 'absolute',
|
|
41750
|
+
content: '""',
|
|
41751
|
+
width: 8,
|
|
41752
|
+
height: 8,
|
|
41701
41753
|
transform: 'translate(-50%, 50%) rotate(45deg)',
|
|
41702
|
-
backgroundColor: 'inherit'
|
|
41754
|
+
backgroundColor: 'inherit',
|
|
41755
|
+
right: '-20%',
|
|
41756
|
+
top: '25%'
|
|
41703
41757
|
}
|
|
41758
|
+
}, ownerState.size === 'small' && {
|
|
41759
|
+
fontSize: theme.typography.pxToRem(12),
|
|
41760
|
+
padding: '0.25rem 0.5rem'
|
|
41704
41761
|
}));
|
|
41705
41762
|
SliderValueLabel.propTypes
|
|
41706
41763
|
/* remove-proptypes */
|
|
@@ -41963,12 +42020,14 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
41963
42020
|
thumb: PropTypes.object,
|
|
41964
42021
|
track: PropTypes.object,
|
|
41965
42022
|
valueLabel: PropTypes.shape({
|
|
42023
|
+
children: PropTypes.element,
|
|
41966
42024
|
className: PropTypes.string,
|
|
41967
42025
|
components: PropTypes.shape({
|
|
41968
42026
|
Root: PropTypes.elementType
|
|
41969
42027
|
}),
|
|
42028
|
+
open: PropTypes.bool,
|
|
41970
42029
|
style: PropTypes.object,
|
|
41971
|
-
value: PropTypes.
|
|
42030
|
+
value: PropTypes.number,
|
|
41972
42031
|
valueLabelDisplay: PropTypes.oneOf(['auto', 'off', 'on'])
|
|
41973
42032
|
})
|
|
41974
42033
|
}),
|
|
@@ -42314,16 +42373,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
42314
42373
|
theme,
|
|
42315
42374
|
ownerState
|
|
42316
42375
|
}) => {
|
|
42317
|
-
const center =
|
|
42376
|
+
const center = {
|
|
42318
42377
|
left: '50%',
|
|
42319
42378
|
right: 'auto',
|
|
42320
42379
|
transform: 'translateX(-50%)'
|
|
42321
|
-
}
|
|
42322
|
-
right: '50%',
|
|
42323
|
-
left: 'auto',
|
|
42324
|
-
transform: 'translateX(50%)'
|
|
42325
|
-
});
|
|
42326
|
-
|
|
42380
|
+
};
|
|
42327
42381
|
return _extends({
|
|
42328
42382
|
zIndex: (theme.vars || theme).zIndex.snackbar,
|
|
42329
42383
|
position: 'fixed',
|
|
@@ -42345,19 +42399,13 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
42345
42399
|
top: 24
|
|
42346
42400
|
} : {
|
|
42347
42401
|
bottom: 24
|
|
42348
|
-
}, ownerState.anchorOrigin.horizontal === 'center' && center, ownerState.anchorOrigin.horizontal === 'left' &&
|
|
42402
|
+
}, ownerState.anchorOrigin.horizontal === 'center' && center, ownerState.anchorOrigin.horizontal === 'left' && {
|
|
42349
42403
|
left: 24,
|
|
42350
42404
|
right: 'auto'
|
|
42351
|
-
}, ownerState.
|
|
42352
|
-
right: 24,
|
|
42353
|
-
left: 'auto'
|
|
42354
|
-
}), ownerState.anchorOrigin.horizontal === 'right' && _extends({}, !ownerState.isRtl && {
|
|
42405
|
+
}, ownerState.anchorOrigin.horizontal === 'right' && {
|
|
42355
42406
|
right: 24,
|
|
42356
42407
|
left: 'auto'
|
|
42357
|
-
}
|
|
42358
|
-
left: 24,
|
|
42359
|
-
right: 'auto'
|
|
42360
|
-
}))
|
|
42408
|
+
})
|
|
42361
42409
|
});
|
|
42362
42410
|
});
|
|
42363
42411
|
const Snackbar = /*#__PURE__*/React__namespace.forwardRef(function Snackbar(inProps, ref) {
|
|
@@ -42404,14 +42452,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
42404
42452
|
TransitionProps = _objectWithoutPropertiesLoose(props.TransitionProps, _excluded$z),
|
|
42405
42453
|
other = _objectWithoutPropertiesLoose(props, _excluded2$2);
|
|
42406
42454
|
|
|
42407
|
-
const isRtl = theme.direction === 'rtl';
|
|
42408
|
-
|
|
42409
42455
|
const ownerState = _extends({}, props, {
|
|
42410
42456
|
anchorOrigin: {
|
|
42411
42457
|
vertical,
|
|
42412
42458
|
horizontal
|
|
42413
|
-
}
|
|
42414
|
-
isRtl
|
|
42459
|
+
}
|
|
42415
42460
|
});
|
|
42416
42461
|
|
|
42417
42462
|
const classes = useUtilityClasses$s(ownerState);
|
|
@@ -44773,7 +44818,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
44773
44818
|
if (ownerState.spacing) {
|
|
44774
44819
|
const transformer = createUnarySpacing(theme);
|
|
44775
44820
|
const base = Object.keys(theme.breakpoints.values).reduce((acc, breakpoint) => {
|
|
44776
|
-
if (ownerState.spacing[breakpoint] != null || ownerState.direction[breakpoint] != null) {
|
|
44821
|
+
if (typeof ownerState.spacing === 'object' && ownerState.spacing[breakpoint] != null || typeof ownerState.direction === 'object' && ownerState.direction[breakpoint] != null) {
|
|
44777
44822
|
acc[breakpoint] = true;
|
|
44778
44823
|
}
|
|
44779
44824
|
|
|
@@ -45216,8 +45261,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
45216
45261
|
})), /*#__PURE__*/jsxRuntime_1(StepIconText, {
|
|
45217
45262
|
className: classes.text,
|
|
45218
45263
|
x: "12",
|
|
45219
|
-
y: "
|
|
45264
|
+
y: "12",
|
|
45220
45265
|
textAnchor: "middle",
|
|
45266
|
+
dominantBaseline: "central",
|
|
45221
45267
|
ownerState: ownerState,
|
|
45222
45268
|
children: icon
|
|
45223
45269
|
})]
|
|
@@ -49777,10 +49823,26 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
49777
49823
|
scroll(scrollValue);
|
|
49778
49824
|
};
|
|
49779
49825
|
|
|
49826
|
+
const getFirstVisibleTab = tabs => {
|
|
49827
|
+
const containerSize = tabsRef.current[clientSize];
|
|
49828
|
+
const containerStartBound = Math.round(tabsRef.current[scrollStart]);
|
|
49829
|
+
const containerEndBound = Math.round(containerStartBound + containerSize);
|
|
49830
|
+
const offset = vertical ? 'offsetTop' : 'offsetLeft';
|
|
49831
|
+
return tabs.find(tab => {
|
|
49832
|
+
const centerPoint = tab[offset] + tab[clientSize] / 2;
|
|
49833
|
+
return centerPoint >= containerStartBound && centerPoint <= containerEndBound;
|
|
49834
|
+
});
|
|
49835
|
+
};
|
|
49836
|
+
|
|
49780
49837
|
const getScrollSize = () => {
|
|
49781
49838
|
const containerSize = tabsRef.current[clientSize];
|
|
49782
49839
|
let totalSize = 0;
|
|
49783
49840
|
const children = Array.from(tabListRef.current.children);
|
|
49841
|
+
const firstVisibleTab = getFirstVisibleTab(children);
|
|
49842
|
+
|
|
49843
|
+
if (firstVisibleTab && firstVisibleTab[clientSize] > containerSize) {
|
|
49844
|
+
return firstVisibleTab[clientSize];
|
|
49845
|
+
}
|
|
49784
49846
|
|
|
49785
49847
|
for (let i = 0; i < children.length; i += 1) {
|
|
49786
49848
|
const tab = children[i];
|
|
@@ -51473,6 +51535,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
51473
51535
|
exports.getMobileStepperUtilityClass = getMobileStepperUtilityClass;
|
|
51474
51536
|
exports.getModalUtilityClass = getModalUtilityClass;
|
|
51475
51537
|
exports.getNativeSelectUtilityClasses = getNativeSelectUtilityClasses;
|
|
51538
|
+
exports.getOffsetLeft = getOffsetLeft;
|
|
51539
|
+
exports.getOffsetTop = getOffsetTop;
|
|
51476
51540
|
exports.getOutlinedInputUtilityClass = getOutlinedInputUtilityClass;
|
|
51477
51541
|
exports.getPaginationItemUtilityClass = getPaginationItemUtilityClass;
|
|
51478
51542
|
exports.getPaginationUtilityClass = getPaginationUtilityClass;
|