@mui/material 5.12.0 → 5.12.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Autocomplete/Autocomplete.js +2 -2
- package/Badge/Badge.d.ts +3 -6
- package/Button/Button.js +4 -2
- package/CHANGELOG.md +142 -0
- package/FilledInput/filledInputClasses.d.ts +2 -0
- package/FormControl/FormControl.js +1 -1
- package/FormControlLabel/FormControlLabel.d.ts +4 -0
- package/FormControlLabel/FormControlLabel.js +34 -14
- package/FormControlLabel/formControlLabelClasses.d.ts +4 -0
- package/FormControlLabel/formControlLabelClasses.js +1 -1
- package/Modal/Modal.d.ts +6 -3
- package/Modal/Modal.js +11 -3
- package/Modal/index.d.ts +1 -1
- package/Modal/index.js +1 -1
- package/OutlinedInput/outlinedInputClasses.d.ts +2 -0
- package/OverridableComponent.d.ts +1 -1
- package/Popper/Popper.d.ts +5 -5
- package/Popper/Popper.js +28 -4
- package/Popper/index.d.ts +1 -1
- package/Stack/Stack.d.ts +1 -1
- package/Stack/Stack.js +1 -1
- package/Tabs/ScrollbarSize.js +2 -2
- package/index.js +1 -1
- package/legacy/Autocomplete/Autocomplete.js +2 -2
- package/legacy/Button/Button.js +4 -2
- package/legacy/FormControl/FormControl.js +1 -1
- package/legacy/FormControlLabel/FormControlLabel.js +35 -14
- package/legacy/FormControlLabel/formControlLabelClasses.js +1 -1
- package/legacy/Modal/Modal.js +11 -3
- package/legacy/Modal/index.js +1 -1
- package/legacy/Popper/Popper.js +29 -5
- package/legacy/Stack/Stack.js +1 -1
- package/legacy/Tabs/ScrollbarSize.js +2 -2
- package/legacy/index.js +1 -1
- package/legacy/styles/ThemeProvider.js +8 -1
- package/legacy/styles/experimental_extendTheme.js +5 -1
- package/modern/Autocomplete/Autocomplete.js +2 -2
- package/modern/Button/Button.js +100 -96
- package/modern/FormControl/FormControl.js +1 -1
- package/modern/FormControlLabel/FormControlLabel.js +33 -13
- package/modern/FormControlLabel/formControlLabelClasses.js +1 -1
- package/modern/Modal/Modal.js +11 -3
- package/modern/Modal/index.js +1 -1
- package/modern/Popper/Popper.js +28 -4
- package/modern/Stack/Stack.js +1 -1
- package/modern/Tabs/ScrollbarSize.js +2 -2
- package/modern/index.js +1 -1
- package/modern/styles/ThemeProvider.js +8 -1
- package/modern/styles/experimental_extendTheme.js +5 -1
- package/node/Autocomplete/Autocomplete.js +2 -2
- package/node/Button/Button.js +4 -2
- package/node/FormControl/FormControl.js +1 -1
- package/node/FormControlLabel/FormControlLabel.js +35 -15
- package/node/FormControlLabel/formControlLabelClasses.js +1 -1
- package/node/Modal/Modal.js +13 -5
- package/node/Modal/index.js +15 -18
- package/node/Popper/Popper.js +28 -4
- package/node/Stack/Stack.js +1 -1
- package/node/Tabs/ScrollbarSize.js +1 -1
- package/node/index.js +1 -1
- package/node/styles/ThemeProvider.js +8 -1
- package/node/styles/experimental_extendTheme.js +5 -1
- package/package.json +4 -4
- package/styles/ThemeProvider.js +8 -1
- package/styles/experimental_extendTheme.d.ts +7 -0
- package/styles/experimental_extendTheme.js +5 -1
- package/umd/material-ui.development.js +170 -82
- package/umd/material-ui.production.min.js +21 -21
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @mui/material v5.12.
|
|
2
|
+
* @mui/material v5.12.2
|
|
3
3
|
*
|
|
4
4
|
* @license MIT
|
|
5
5
|
* This source code is licensed under the MIT license found in the
|
|
@@ -7342,6 +7342,9 @@
|
|
|
7342
7342
|
}
|
|
7343
7343
|
Component.displayName = displayName;
|
|
7344
7344
|
}
|
|
7345
|
+
if (tag.muiName) {
|
|
7346
|
+
Component.muiName = tag.muiName;
|
|
7347
|
+
}
|
|
7345
7348
|
return Component;
|
|
7346
7349
|
};
|
|
7347
7350
|
if (defaultStyledResolver.withConfig) {
|
|
@@ -8639,11 +8642,14 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8639
8642
|
const generateCssVars = colorScheme => {
|
|
8640
8643
|
if (!colorScheme) {
|
|
8641
8644
|
return {
|
|
8642
|
-
css: rootCss,
|
|
8645
|
+
css: _extends({}, rootCss),
|
|
8643
8646
|
vars: rootVars
|
|
8644
8647
|
};
|
|
8645
8648
|
}
|
|
8646
|
-
return
|
|
8649
|
+
return {
|
|
8650
|
+
css: _extends({}, colorSchemesMap[colorScheme].css),
|
|
8651
|
+
vars: colorSchemesMap[colorScheme].vars
|
|
8652
|
+
};
|
|
8647
8653
|
};
|
|
8648
8654
|
return {
|
|
8649
8655
|
vars: themeVars,
|
|
@@ -8790,26 +8796,26 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8790
8796
|
return `Level${level}`;
|
|
8791
8797
|
}
|
|
8792
8798
|
function isNestedContainer(ownerState) {
|
|
8793
|
-
return ownerState.
|
|
8799
|
+
return ownerState.unstable_level > 0 && ownerState.container;
|
|
8794
8800
|
}
|
|
8795
8801
|
function createGetSelfSpacing(ownerState) {
|
|
8796
8802
|
return function getSelfSpacing(axis) {
|
|
8797
|
-
return `var(--Grid-${axis}Spacing${appendLevel(ownerState.
|
|
8803
|
+
return `var(--Grid-${axis}Spacing${appendLevel(ownerState.unstable_level)})`;
|
|
8798
8804
|
};
|
|
8799
8805
|
}
|
|
8800
8806
|
function createGetParentSpacing(ownerState) {
|
|
8801
8807
|
return function getParentSpacing(axis) {
|
|
8802
|
-
if (ownerState.
|
|
8808
|
+
if (ownerState.unstable_level === 0) {
|
|
8803
8809
|
return `var(--Grid-${axis}Spacing)`;
|
|
8804
8810
|
}
|
|
8805
|
-
return `var(--Grid-${axis}Spacing${appendLevel(ownerState.
|
|
8811
|
+
return `var(--Grid-${axis}Spacing${appendLevel(ownerState.unstable_level - 1)})`;
|
|
8806
8812
|
};
|
|
8807
8813
|
}
|
|
8808
8814
|
function getParentColumns(ownerState) {
|
|
8809
|
-
if (ownerState.
|
|
8815
|
+
if (ownerState.unstable_level === 0) {
|
|
8810
8816
|
return `var(--Grid-columns)`;
|
|
8811
8817
|
}
|
|
8812
|
-
return `var(--Grid-columns${appendLevel(ownerState.
|
|
8818
|
+
return `var(--Grid-columns${appendLevel(ownerState.unstable_level - 1)})`;
|
|
8813
8819
|
}
|
|
8814
8820
|
const filterBreakpointKeys = (breakpointsKeys, responsiveKeys) => breakpointsKeys.filter(key => responsiveKeys.includes(key));
|
|
8815
8821
|
const traverseBreakpoints = (breakpoints, responsive, iterator) => {
|
|
@@ -8917,13 +8923,13 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8917
8923
|
return {};
|
|
8918
8924
|
}
|
|
8919
8925
|
const styles = isNestedContainer(ownerState) ? {
|
|
8920
|
-
[`--Grid-columns${appendLevel(ownerState.
|
|
8926
|
+
[`--Grid-columns${appendLevel(ownerState.unstable_level)}`]: getParentColumns(ownerState)
|
|
8921
8927
|
} : {
|
|
8922
8928
|
'--Grid-columns': 12
|
|
8923
8929
|
};
|
|
8924
8930
|
traverseBreakpoints(theme.breakpoints, ownerState.columns, (appendStyle, value) => {
|
|
8925
8931
|
appendStyle(styles, {
|
|
8926
|
-
[`--Grid-columns${appendLevel(ownerState.
|
|
8932
|
+
[`--Grid-columns${appendLevel(ownerState.unstable_level)}`]: value
|
|
8927
8933
|
});
|
|
8928
8934
|
});
|
|
8929
8935
|
return styles;
|
|
@@ -8939,12 +8945,12 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8939
8945
|
const styles = isNestedContainer(ownerState) ? {
|
|
8940
8946
|
// Set the default spacing as its parent spacing.
|
|
8941
8947
|
// It will be overridden if spacing props are provided
|
|
8942
|
-
[`--Grid-rowSpacing${appendLevel(ownerState.
|
|
8948
|
+
[`--Grid-rowSpacing${appendLevel(ownerState.unstable_level)}`]: getParentSpacing('row')
|
|
8943
8949
|
} : {};
|
|
8944
8950
|
traverseBreakpoints(theme.breakpoints, ownerState.rowSpacing, (appendStyle, value) => {
|
|
8945
8951
|
var _theme$spacing;
|
|
8946
8952
|
appendStyle(styles, {
|
|
8947
|
-
[`--Grid-rowSpacing${appendLevel(ownerState.
|
|
8953
|
+
[`--Grid-rowSpacing${appendLevel(ownerState.unstable_level)}`]: typeof value === 'string' ? value : (_theme$spacing = theme.spacing) == null ? void 0 : _theme$spacing.call(theme, value)
|
|
8948
8954
|
});
|
|
8949
8955
|
});
|
|
8950
8956
|
return styles;
|
|
@@ -8960,12 +8966,12 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8960
8966
|
const styles = isNestedContainer(ownerState) ? {
|
|
8961
8967
|
// Set the default spacing as its parent spacing.
|
|
8962
8968
|
// It will be overridden if spacing props are provided
|
|
8963
|
-
[`--Grid-columnSpacing${appendLevel(ownerState.
|
|
8969
|
+
[`--Grid-columnSpacing${appendLevel(ownerState.unstable_level)}`]: getParentSpacing('column')
|
|
8964
8970
|
} : {};
|
|
8965
8971
|
traverseBreakpoints(theme.breakpoints, ownerState.columnSpacing, (appendStyle, value) => {
|
|
8966
8972
|
var _theme$spacing2;
|
|
8967
8973
|
appendStyle(styles, {
|
|
8968
|
-
[`--Grid-columnSpacing${appendLevel(ownerState.
|
|
8974
|
+
[`--Grid-columnSpacing${appendLevel(ownerState.unstable_level)}`]: typeof value === 'string' ? value : (_theme$spacing2 = theme.spacing) == null ? void 0 : _theme$spacing2.call(theme, value)
|
|
8969
8975
|
});
|
|
8970
8976
|
});
|
|
8971
8977
|
return styles;
|
|
@@ -9048,7 +9054,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
9048
9054
|
return [`direction-xs-${String(direction)}`];
|
|
9049
9055
|
};
|
|
9050
9056
|
|
|
9051
|
-
const _excluded$2g = ["className", "columns", "container", "component", "direction", "wrap", "spacing", "rowSpacing", "columnSpacing", "disableEqualOverflow"];
|
|
9057
|
+
const _excluded$2g = ["className", "children", "columns", "container", "component", "direction", "wrap", "spacing", "rowSpacing", "columnSpacing", "disableEqualOverflow", "unstable_level"];
|
|
9052
9058
|
const defaultTheme$5 = createTheme$1();
|
|
9053
9059
|
|
|
9054
9060
|
// widening Theme to any so that the consumer can own the theme structure.
|
|
@@ -9071,7 +9077,6 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
9071
9077
|
useThemeProps = useThemePropsDefault$1,
|
|
9072
9078
|
componentName = 'MuiGrid'
|
|
9073
9079
|
} = options;
|
|
9074
|
-
const NestedContext = /*#__PURE__*/React__namespace.createContext(0);
|
|
9075
9080
|
const OverflowContext = /*#__PURE__*/React__namespace.createContext(undefined);
|
|
9076
9081
|
const useUtilityClasses = (ownerState, theme) => {
|
|
9077
9082
|
const {
|
|
@@ -9092,10 +9097,10 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
9092
9097
|
const theme = useTheme$2();
|
|
9093
9098
|
const themeProps = useThemeProps(inProps);
|
|
9094
9099
|
const props = extendSxProp(themeProps); // `color` type conflicts with html color attribute.
|
|
9095
|
-
const level = React__namespace.useContext(NestedContext);
|
|
9096
9100
|
const overflow = React__namespace.useContext(OverflowContext);
|
|
9097
9101
|
const {
|
|
9098
9102
|
className,
|
|
9103
|
+
children,
|
|
9099
9104
|
columns: columnsProp = 12,
|
|
9100
9105
|
container = false,
|
|
9101
9106
|
component = 'div',
|
|
@@ -9104,7 +9109,8 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
9104
9109
|
spacing: spacingProp = 0,
|
|
9105
9110
|
rowSpacing: rowSpacingProp = spacingProp,
|
|
9106
9111
|
columnSpacing: columnSpacingProp = spacingProp,
|
|
9107
|
-
disableEqualOverflow: themeDisableEqualOverflow
|
|
9112
|
+
disableEqualOverflow: themeDisableEqualOverflow,
|
|
9113
|
+
unstable_level: level = 0
|
|
9108
9114
|
} = props,
|
|
9109
9115
|
rest = _objectWithoutPropertiesLoose(props, _excluded$2g);
|
|
9110
9116
|
// Because `disableEqualOverflow` can be set from the theme's defaultProps, the **nested** grid should look at the instance props instead.
|
|
@@ -9151,13 +9157,17 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
9151
9157
|
as: component,
|
|
9152
9158
|
ownerState: ownerState,
|
|
9153
9159
|
className: clsx(classes.root, className)
|
|
9154
|
-
}, other
|
|
9155
|
-
|
|
9156
|
-
|
|
9157
|
-
|
|
9158
|
-
|
|
9159
|
-
|
|
9160
|
-
|
|
9160
|
+
}, other, {
|
|
9161
|
+
children: React__namespace.Children.map(children, child => {
|
|
9162
|
+
if ( /*#__PURE__*/React__namespace.isValidElement(child) && isMuiElement(child, ['Grid'])) {
|
|
9163
|
+
var _child$props$unstable;
|
|
9164
|
+
return /*#__PURE__*/React__namespace.cloneElement(child, {
|
|
9165
|
+
unstable_level: (_child$props$unstable = child.props.unstable_level) != null ? _child$props$unstable : level + 1
|
|
9166
|
+
});
|
|
9167
|
+
}
|
|
9168
|
+
return child;
|
|
9169
|
+
})
|
|
9170
|
+
}));
|
|
9161
9171
|
if (disableEqualOverflow !== undefined && disableEqualOverflow !== (overflow != null ? overflow : false)) {
|
|
9162
9172
|
// There are 2 possibilities that should wrap with the OverflowContext to communicate with the nested grids:
|
|
9163
9173
|
// 1. It is the root grid with `disableEqualOverflow`.
|
|
@@ -9193,6 +9203,9 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
9193
9203
|
xs: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number, PropTypes.bool]),
|
|
9194
9204
|
xsOffset: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number])
|
|
9195
9205
|
} ;
|
|
9206
|
+
|
|
9207
|
+
// @ts-ignore internal logic for nested grid
|
|
9208
|
+
Grid.muiName = 'Grid';
|
|
9196
9209
|
return Grid;
|
|
9197
9210
|
}
|
|
9198
9211
|
|
|
@@ -10257,7 +10270,14 @@ Use unitless line heights instead.` );
|
|
|
10257
10270
|
}));
|
|
10258
10271
|
}
|
|
10259
10272
|
ThemeProvider.propTypes = {
|
|
10260
|
-
|
|
10273
|
+
/**
|
|
10274
|
+
* Your component tree.
|
|
10275
|
+
*/
|
|
10276
|
+
children: PropTypes.node,
|
|
10277
|
+
/**
|
|
10278
|
+
* A theme object. You can provide a function to extend the outer theme.
|
|
10279
|
+
*/
|
|
10280
|
+
theme: PropTypes.oneOfType([PropTypes.object, PropTypes.func]).isRequired
|
|
10261
10281
|
} ;
|
|
10262
10282
|
|
|
10263
10283
|
function makeStyles() {
|
|
@@ -10402,7 +10422,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
10402
10422
|
}
|
|
10403
10423
|
|
|
10404
10424
|
// assign component variables
|
|
10405
|
-
assignNode(palette, ['Alert', 'AppBar', 'Avatar', 'Chip', 'FilledInput', 'LinearProgress', 'Skeleton', 'Slider', 'SnackbarContent', 'SpeedDialAction', 'StepConnector', 'StepContent', 'Switch', 'TableCell', 'Tooltip']);
|
|
10425
|
+
assignNode(palette, ['Alert', 'AppBar', 'Avatar', 'Button', 'Chip', 'FilledInput', 'LinearProgress', 'Skeleton', 'Slider', 'SnackbarContent', 'SpeedDialAction', 'StepConnector', 'StepContent', 'Switch', 'TableCell', 'Tooltip']);
|
|
10406
10426
|
if (key === 'light') {
|
|
10407
10427
|
setColor(palette.Alert, 'errorColor', private_safeDarken(palette.error.light, 0.6));
|
|
10408
10428
|
setColor(palette.Alert, 'infoColor', private_safeDarken(palette.info.light, 0.6));
|
|
@@ -10426,6 +10446,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
10426
10446
|
setColor(palette.Alert, 'warningIconColor', setCssVarColor('palette-warning-main'));
|
|
10427
10447
|
setColor(palette.AppBar, 'defaultBg', setCssVarColor('palette-grey-100'));
|
|
10428
10448
|
setColor(palette.Avatar, 'defaultBg', setCssVarColor('palette-grey-400'));
|
|
10449
|
+
setColor(palette.Button, 'inheritContainedBg', setCssVarColor('palette-grey-300'));
|
|
10450
|
+
setColor(palette.Button, 'inheritContainedHoverBg', setCssVarColor('palette-grey-A100'));
|
|
10429
10451
|
setColor(palette.Chip, 'defaultBorder', setCssVarColor('palette-grey-400'));
|
|
10430
10452
|
setColor(palette.Chip, 'defaultAvatarColor', setCssVarColor('palette-grey-700'));
|
|
10431
10453
|
setColor(palette.Chip, 'defaultIconColor', setCssVarColor('palette-grey-700'));
|
|
@@ -10486,6 +10508,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
10486
10508
|
setColor(palette.AppBar, 'darkBg', setCssVarColor('palette-background-paper')); // specific for dark mode
|
|
10487
10509
|
setColor(palette.AppBar, 'darkColor', setCssVarColor('palette-text-primary')); // specific for dark mode
|
|
10488
10510
|
setColor(palette.Avatar, 'defaultBg', setCssVarColor('palette-grey-600'));
|
|
10511
|
+
setColor(palette.Button, 'inheritContainedBg', setCssVarColor('palette-grey-800'));
|
|
10512
|
+
setColor(palette.Button, 'inheritContainedHoverBg', setCssVarColor('palette-grey-700'));
|
|
10489
10513
|
setColor(palette.Chip, 'defaultBorder', setCssVarColor('palette-grey-700'));
|
|
10490
10514
|
setColor(palette.Chip, 'defaultAvatarColor', setCssVarColor('palette-grey-300'));
|
|
10491
10515
|
setColor(palette.Chip, 'defaultIconColor', setCssVarColor('palette-grey-300'));
|
|
@@ -10657,6 +10681,10 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
10657
10681
|
});
|
|
10658
10682
|
}
|
|
10659
10683
|
|
|
10684
|
+
function areArraysEqual(array1, array2, itemComparer = (a, b) => a === b) {
|
|
10685
|
+
return array1.length === array2.length && array1.every((value, index) => itemComparer(value, array2[index]));
|
|
10686
|
+
}
|
|
10687
|
+
|
|
10660
10688
|
const defaultContextValue = {
|
|
10661
10689
|
disableDefaultClasses: false
|
|
10662
10690
|
};
|
|
@@ -10734,7 +10762,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
10734
10762
|
*
|
|
10735
10763
|
* The merge order is (the latter overrides the former):
|
|
10736
10764
|
* 1. The internal props (specified as a getter function to work with get*Props hook result)
|
|
10737
|
-
* 2. Additional props (specified internally on
|
|
10765
|
+
* 2. Additional props (specified internally on a Base UI component)
|
|
10738
10766
|
* 3. External props specified on the owner component. These should only be used on a root slot.
|
|
10739
10767
|
* 4. External props specified in the `slotProps.*` prop.
|
|
10740
10768
|
* 5. The `className` prop - combined from all the above.
|
|
@@ -10829,7 +10857,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
10829
10857
|
*
|
|
10830
10858
|
* Demos:
|
|
10831
10859
|
*
|
|
10832
|
-
* - [
|
|
10860
|
+
* - [Badge](https://mui.com/base/react-badge/#hook)
|
|
10833
10861
|
*
|
|
10834
10862
|
* API:
|
|
10835
10863
|
*
|
|
@@ -13410,7 +13438,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
13410
13438
|
}
|
|
13411
13439
|
var Portal$1 = Portal;
|
|
13412
13440
|
|
|
13413
|
-
function
|
|
13441
|
+
function getPopperUtilityClass(slot) {
|
|
13414
13442
|
return generateUtilityClass('MuiPopper', slot);
|
|
13415
13443
|
}
|
|
13416
13444
|
generateUtilityClasses('MuiPopper', ['root']);
|
|
@@ -13447,7 +13475,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
13447
13475
|
const slots = {
|
|
13448
13476
|
root: ['root']
|
|
13449
13477
|
};
|
|
13450
|
-
return composeClasses(slots, useClassNamesOverride(
|
|
13478
|
+
return composeClasses(slots, useClassNamesOverride(getPopperUtilityClass));
|
|
13451
13479
|
};
|
|
13452
13480
|
const defaultPopperOptions = {};
|
|
13453
13481
|
const PopperTooltip = /*#__PURE__*/React__namespace.forwardRef(function PopperTooltip(props, ref) {
|
|
@@ -13575,13 +13603,13 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
13575
13603
|
*
|
|
13576
13604
|
* Demos:
|
|
13577
13605
|
*
|
|
13578
|
-
* - [
|
|
13606
|
+
* - [Popper](https://mui.com/base/react-popper/)
|
|
13579
13607
|
*
|
|
13580
13608
|
* API:
|
|
13581
13609
|
*
|
|
13582
|
-
* - [
|
|
13610
|
+
* - [Popper API](https://mui.com/base/react-popper/components-api/#popper)
|
|
13583
13611
|
*/
|
|
13584
|
-
const
|
|
13612
|
+
const Popper$2 = /*#__PURE__*/React__namespace.forwardRef(function Popper(props, ref) {
|
|
13585
13613
|
const {
|
|
13586
13614
|
anchorEl,
|
|
13587
13615
|
children,
|
|
@@ -13656,7 +13684,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
13656
13684
|
}))
|
|
13657
13685
|
});
|
|
13658
13686
|
});
|
|
13659
|
-
|
|
13687
|
+
Popper$2.propTypes /* remove-proptypes */ = {
|
|
13660
13688
|
// ----------------------------- Warning --------------------------------
|
|
13661
13689
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
13662
13690
|
// | To update them edit TypeScript types and run "yarn proptypes" |
|
|
@@ -13778,7 +13806,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
13778
13806
|
*/
|
|
13779
13807
|
transition: PropTypes.bool
|
|
13780
13808
|
} ;
|
|
13781
|
-
var
|
|
13809
|
+
var BasePopper = Popper$2;
|
|
13782
13810
|
|
|
13783
13811
|
// Is a vertical scrollbar displayed?
|
|
13784
13812
|
function isOverflowing(container) {
|
|
@@ -13996,8 +14024,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
13996
14024
|
function getModalUtilityClass(slot) {
|
|
13997
14025
|
return generateUtilityClass('MuiModal', slot);
|
|
13998
14026
|
}
|
|
13999
|
-
const
|
|
14000
|
-
var modalUnstyledClasses
|
|
14027
|
+
const modalClasses$1 = generateUtilityClasses('MuiModal', ['root', 'hidden', 'backdrop']);
|
|
14028
|
+
var modalUnstyledClasses = modalClasses$1;
|
|
14001
14029
|
|
|
14002
14030
|
const _excluded$25 = ["children", "closeAfterTransition", "component", "container", "disableAutoFocus", "disableEnforceFocus", "disableEscapeKeyDown", "disablePortal", "disableRestoreFocus", "disableScrollLock", "hideBackdrop", "keepMounted", "manager", "onBackdropClick", "onClose", "onKeyDown", "open", "onTransitionEnter", "onTransitionExited", "slotProps", "slots"];
|
|
14003
14031
|
const useUtilityClasses$1N = ownerState => {
|
|
@@ -14037,13 +14065,13 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
14037
14065
|
*
|
|
14038
14066
|
* Demos:
|
|
14039
14067
|
*
|
|
14040
|
-
* - [
|
|
14068
|
+
* - [Modal](https://mui.com/base/react-modal/)
|
|
14041
14069
|
*
|
|
14042
14070
|
* API:
|
|
14043
14071
|
*
|
|
14044
|
-
* - [
|
|
14072
|
+
* - [Modal API](https://mui.com/base/react-modal/components-api/#modal)
|
|
14045
14073
|
*/
|
|
14046
|
-
const
|
|
14074
|
+
const Modal$2 = /*#__PURE__*/React__namespace.forwardRef(function Modal(props, forwardedRef) {
|
|
14047
14075
|
var _props$ariaHidden, _ref;
|
|
14048
14076
|
const {
|
|
14049
14077
|
children,
|
|
@@ -14246,7 +14274,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
14246
14274
|
}))
|
|
14247
14275
|
});
|
|
14248
14276
|
});
|
|
14249
|
-
|
|
14277
|
+
Modal$2.propTypes /* remove-proptypes */ = {
|
|
14250
14278
|
// ----------------------------- Warning --------------------------------
|
|
14251
14279
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
14252
14280
|
// | To update them edit TypeScript types and run "yarn proptypes" |
|
|
@@ -14363,7 +14391,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
14363
14391
|
root: PropTypes.elementType
|
|
14364
14392
|
})
|
|
14365
14393
|
} ;
|
|
14366
|
-
var ModalUnstyled
|
|
14394
|
+
var ModalUnstyled = Modal$2;
|
|
14367
14395
|
|
|
14368
14396
|
/**
|
|
14369
14397
|
* NoSsr purposely removes components from the subject of Server Side Rendering (SSR).
|
|
@@ -14525,6 +14553,15 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
14525
14553
|
setActive(activeIndex);
|
|
14526
14554
|
}
|
|
14527
14555
|
}
|
|
14556
|
+
function areValuesEqual(newValue, oldValue) {
|
|
14557
|
+
if (typeof newValue === 'number' && typeof oldValue === 'number') {
|
|
14558
|
+
return newValue === oldValue;
|
|
14559
|
+
}
|
|
14560
|
+
if (typeof newValue === 'object' && typeof oldValue === 'object') {
|
|
14561
|
+
return areArraysEqual(newValue, oldValue);
|
|
14562
|
+
}
|
|
14563
|
+
return false;
|
|
14564
|
+
}
|
|
14528
14565
|
const axisProps = {
|
|
14529
14566
|
horizontal: {
|
|
14530
14567
|
offset: percent => ({
|
|
@@ -14578,7 +14615,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
14578
14615
|
*
|
|
14579
14616
|
* Demos:
|
|
14580
14617
|
*
|
|
14581
|
-
* - [
|
|
14618
|
+
* - [Slider](https://mui.com/base/react-slider/#hook)
|
|
14582
14619
|
*
|
|
14583
14620
|
* API:
|
|
14584
14621
|
*
|
|
@@ -14727,7 +14764,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
14727
14764
|
}
|
|
14728
14765
|
setValueState(newValue);
|
|
14729
14766
|
setFocusedThumbIndex(index);
|
|
14730
|
-
if (handleChange) {
|
|
14767
|
+
if (handleChange && !areValuesEqual(newValue, valueDerived)) {
|
|
14731
14768
|
handleChange(event, newValue, index);
|
|
14732
14769
|
}
|
|
14733
14770
|
if (onChangeCommitted) {
|
|
@@ -14830,7 +14867,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
14830
14867
|
if (!dragging && moveCount.current > INTENTIONAL_DRAG_COUNT_THRESHOLD) {
|
|
14831
14868
|
setDragging(true);
|
|
14832
14869
|
}
|
|
14833
|
-
if (handleChange && newValue
|
|
14870
|
+
if (handleChange && !areValuesEqual(newValue, valueDerived)) {
|
|
14834
14871
|
handleChange(nativeEvent, newValue, activeIndex);
|
|
14835
14872
|
}
|
|
14836
14873
|
});
|
|
@@ -14885,7 +14922,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
14885
14922
|
setActive
|
|
14886
14923
|
});
|
|
14887
14924
|
setValueState(newValue);
|
|
14888
|
-
if (handleChange) {
|
|
14925
|
+
if (handleChange && !areValuesEqual(newValue, valueDerived)) {
|
|
14889
14926
|
handleChange(nativeEvent, newValue, activeIndex);
|
|
14890
14927
|
}
|
|
14891
14928
|
}
|
|
@@ -14952,7 +14989,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
14952
14989
|
setActive
|
|
14953
14990
|
});
|
|
14954
14991
|
setValueState(newValue);
|
|
14955
|
-
if (handleChange) {
|
|
14992
|
+
if (handleChange && !areValuesEqual(newValue, valueDerived)) {
|
|
14956
14993
|
handleChange(event, newValue, activeIndex);
|
|
14957
14994
|
}
|
|
14958
14995
|
}
|
|
@@ -15042,7 +15079,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
15042
15079
|
*
|
|
15043
15080
|
* Demos:
|
|
15044
15081
|
*
|
|
15045
|
-
* - [
|
|
15082
|
+
* - [Snackbar](https://mui.com/base/react-snackbar/#hook)
|
|
15046
15083
|
*
|
|
15047
15084
|
* API:
|
|
15048
15085
|
*
|
|
@@ -20524,8 +20561,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
20524
20561
|
} ;
|
|
20525
20562
|
var AppBar$1 = AppBar;
|
|
20526
20563
|
|
|
20527
|
-
const _excluded$1R = ["components", "componentsProps", "slots", "slotProps"];
|
|
20528
|
-
const PopperRoot = styled$1(
|
|
20564
|
+
const _excluded$1R = ["anchorEl", "component", "components", "componentsProps", "container", "disablePortal", "keepMounted", "modifiers", "open", "placement", "popperOptions", "popperRef", "transition", "slots", "slotProps"];
|
|
20565
|
+
const PopperRoot = styled$1(BasePopper, {
|
|
20529
20566
|
name: 'MuiPopper',
|
|
20530
20567
|
slot: 'Root',
|
|
20531
20568
|
overridesResolver: (props, styles) => styles.root
|
|
@@ -20551,20 +20588,44 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
20551
20588
|
name: 'MuiPopper'
|
|
20552
20589
|
});
|
|
20553
20590
|
const {
|
|
20591
|
+
anchorEl,
|
|
20592
|
+
component,
|
|
20554
20593
|
components,
|
|
20555
20594
|
componentsProps,
|
|
20595
|
+
container,
|
|
20596
|
+
disablePortal,
|
|
20597
|
+
keepMounted,
|
|
20598
|
+
modifiers,
|
|
20599
|
+
open,
|
|
20600
|
+
placement,
|
|
20601
|
+
popperOptions,
|
|
20602
|
+
popperRef,
|
|
20603
|
+
transition,
|
|
20556
20604
|
slots,
|
|
20557
20605
|
slotProps
|
|
20558
20606
|
} = props,
|
|
20559
20607
|
other = _objectWithoutPropertiesLoose(props, _excluded$1R);
|
|
20560
20608
|
const RootComponent = (_slots$root = slots == null ? void 0 : slots.root) != null ? _slots$root : components == null ? void 0 : components.Root;
|
|
20609
|
+
const otherProps = _extends({
|
|
20610
|
+
anchorEl,
|
|
20611
|
+
component,
|
|
20612
|
+
container,
|
|
20613
|
+
disablePortal,
|
|
20614
|
+
keepMounted,
|
|
20615
|
+
modifiers,
|
|
20616
|
+
open,
|
|
20617
|
+
placement,
|
|
20618
|
+
popperOptions,
|
|
20619
|
+
popperRef,
|
|
20620
|
+
transition
|
|
20621
|
+
}, other);
|
|
20561
20622
|
return /*#__PURE__*/jsxRuntime_1(PopperRoot, _extends({
|
|
20562
20623
|
direction: theme == null ? void 0 : theme.direction,
|
|
20563
20624
|
slots: {
|
|
20564
20625
|
root: RootComponent
|
|
20565
20626
|
},
|
|
20566
20627
|
slotProps: slotProps != null ? slotProps : componentsProps
|
|
20567
|
-
},
|
|
20628
|
+
}, otherProps, {
|
|
20568
20629
|
ref: ref
|
|
20569
20630
|
}));
|
|
20570
20631
|
});
|
|
@@ -22232,7 +22293,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
22232
22293
|
paddingRight: 52 + 4 + 9
|
|
22233
22294
|
},
|
|
22234
22295
|
[`& .${autocompleteClasses$1.input}`]: {
|
|
22235
|
-
padding: '7.5px 4px 7.5px
|
|
22296
|
+
padding: '7.5px 4px 7.5px 5px'
|
|
22236
22297
|
},
|
|
22237
22298
|
[`& .${autocompleteClasses$1.endAdornment}`]: {
|
|
22238
22299
|
right: 9
|
|
@@ -22245,7 +22306,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
22245
22306
|
paddingBottom: 6,
|
|
22246
22307
|
paddingLeft: 6,
|
|
22247
22308
|
[`& .${autocompleteClasses$1.input}`]: {
|
|
22248
|
-
padding: '2.5px 4px 2.5px
|
|
22309
|
+
padding: '2.5px 4px 2.5px 8px'
|
|
22249
22310
|
}
|
|
22250
22311
|
},
|
|
22251
22312
|
[`& .${filledInputClasses$1.root}`]: {
|
|
@@ -25001,6 +25062,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
25001
25062
|
ownerState
|
|
25002
25063
|
}) => {
|
|
25003
25064
|
var _theme$palette$getCon, _theme$palette;
|
|
25065
|
+
const inheritContainedBackgroundColor = theme.palette.mode === 'light' ? theme.palette.grey[300] : theme.palette.grey[800];
|
|
25066
|
+
const inheritContainedHoverBackgroundColor = theme.palette.mode === 'light' ? theme.palette.grey.A100 : theme.palette.grey[700];
|
|
25004
25067
|
return _extends({}, theme.typography.button, {
|
|
25005
25068
|
minWidth: 64,
|
|
25006
25069
|
padding: '6px 16px',
|
|
@@ -25029,7 +25092,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
25029
25092
|
backgroundColor: 'transparent'
|
|
25030
25093
|
}
|
|
25031
25094
|
}, ownerState.variant === 'contained' && {
|
|
25032
|
-
backgroundColor:
|
|
25095
|
+
backgroundColor: theme.vars ? theme.vars.palette.Button.inheritContainedHoverBg : inheritContainedHoverBackgroundColor,
|
|
25033
25096
|
boxShadow: (theme.vars || theme).shadows[4],
|
|
25034
25097
|
// Reset on touch devices, it doesn't add specificity
|
|
25035
25098
|
'@media (hover: none)': {
|
|
@@ -25072,7 +25135,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
25072
25135
|
color: theme.vars ?
|
|
25073
25136
|
// this is safe because grey does not change between default light/dark mode
|
|
25074
25137
|
theme.vars.palette.text.primary : (_theme$palette$getCon = (_theme$palette = theme.palette).getContrastText) == null ? void 0 : _theme$palette$getCon.call(_theme$palette, theme.palette.grey[300]),
|
|
25075
|
-
backgroundColor:
|
|
25138
|
+
backgroundColor: theme.vars ? theme.vars.palette.Button.inheritContainedBg : inheritContainedBackgroundColor,
|
|
25076
25139
|
boxShadow: (theme.vars || theme).shadows[2]
|
|
25077
25140
|
}, ownerState.variant === 'contained' && ownerState.color !== 'inherit' && {
|
|
25078
25141
|
color: (theme.vars || theme).palette[ownerState.color].contrastText,
|
|
@@ -27146,8 +27209,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
27146
27209
|
};
|
|
27147
27210
|
}
|
|
27148
27211
|
|
|
27149
|
-
const _excluded$1s = ["BackdropComponent", "BackdropProps", "classes", "className", "closeAfterTransition", "children", "component", "components", "componentsProps", "disableAutoFocus", "disableEnforceFocus", "disableEscapeKeyDown", "disablePortal", "disableRestoreFocus", "disableScrollLock", "hideBackdrop", "keepMounted", "slotProps", "slots", "theme"];
|
|
27150
|
-
const modalClasses = modalUnstyledClasses
|
|
27212
|
+
const _excluded$1s = ["BackdropComponent", "BackdropProps", "classes", "className", "closeAfterTransition", "children", "container", "component", "components", "componentsProps", "disableAutoFocus", "disableEnforceFocus", "disableEscapeKeyDown", "disablePortal", "disableRestoreFocus", "disableScrollLock", "hideBackdrop", "keepMounted", "onBackdropClick", "onClose", "open", "slotProps", "slots", "theme"];
|
|
27213
|
+
const modalClasses = modalUnstyledClasses;
|
|
27151
27214
|
const ModalRoot = styled$1('div', {
|
|
27152
27215
|
name: 'MuiModal',
|
|
27153
27216
|
slot: 'Root',
|
|
@@ -27206,6 +27269,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
27206
27269
|
className,
|
|
27207
27270
|
closeAfterTransition = false,
|
|
27208
27271
|
children,
|
|
27272
|
+
container,
|
|
27209
27273
|
component,
|
|
27210
27274
|
components = {},
|
|
27211
27275
|
componentsProps = {},
|
|
@@ -27217,6 +27281,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
27217
27281
|
disableScrollLock = false,
|
|
27218
27282
|
hideBackdrop = false,
|
|
27219
27283
|
keepMounted = false,
|
|
27284
|
+
onBackdropClick,
|
|
27285
|
+
onClose,
|
|
27286
|
+
open,
|
|
27220
27287
|
slotProps,
|
|
27221
27288
|
slots,
|
|
27222
27289
|
// eslint-disable-next-line react/prop-types
|
|
@@ -27225,6 +27292,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
27225
27292
|
other = _objectWithoutPropertiesLoose(props, _excluded$1s);
|
|
27226
27293
|
const [exited, setExited] = React__namespace.useState(true);
|
|
27227
27294
|
const commonProps = {
|
|
27295
|
+
container,
|
|
27228
27296
|
closeAfterTransition,
|
|
27229
27297
|
disableAutoFocus,
|
|
27230
27298
|
disableEnforceFocus,
|
|
@@ -27233,7 +27301,10 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
27233
27301
|
disableRestoreFocus,
|
|
27234
27302
|
disableScrollLock,
|
|
27235
27303
|
hideBackdrop,
|
|
27236
|
-
keepMounted
|
|
27304
|
+
keepMounted,
|
|
27305
|
+
onBackdropClick,
|
|
27306
|
+
onClose,
|
|
27307
|
+
open
|
|
27237
27308
|
};
|
|
27238
27309
|
const ownerState = _extends({}, props, commonProps, {
|
|
27239
27310
|
exited
|
|
@@ -27242,7 +27313,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
27242
27313
|
const BackdropSlot = (_ref2 = (_slots$backdrop = slots == null ? void 0 : slots.backdrop) != null ? _slots$backdrop : components.Backdrop) != null ? _ref2 : BackdropComponent;
|
|
27243
27314
|
const rootSlotProps = (_slotProps$root = slotProps == null ? void 0 : slotProps.root) != null ? _slotProps$root : componentsProps.root;
|
|
27244
27315
|
const backdropSlotProps = (_slotProps$backdrop = slotProps == null ? void 0 : slotProps.backdrop) != null ? _slotProps$backdrop : componentsProps.backdrop;
|
|
27245
|
-
return /*#__PURE__*/jsxRuntime_1(ModalUnstyled
|
|
27316
|
+
return /*#__PURE__*/jsxRuntime_1(ModalUnstyled, _extends({
|
|
27246
27317
|
slots: {
|
|
27247
27318
|
root: RootSlot,
|
|
27248
27319
|
backdrop: BackdropSlot
|
|
@@ -29767,7 +29838,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
29767
29838
|
if (!isMuiElement(child, ['Input', 'Select'])) {
|
|
29768
29839
|
return;
|
|
29769
29840
|
}
|
|
29770
|
-
if (isFilled(child.props, true)) {
|
|
29841
|
+
if (isFilled(child.props, true) || isFilled(child.props.inputProps, true)) {
|
|
29771
29842
|
initialFilled = true;
|
|
29772
29843
|
}
|
|
29773
29844
|
});
|
|
@@ -29919,20 +29990,22 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
29919
29990
|
function getFormControlLabelUtilityClasses(slot) {
|
|
29920
29991
|
return generateUtilityClass('MuiFormControlLabel', slot);
|
|
29921
29992
|
}
|
|
29922
|
-
const formControlLabelClasses = generateUtilityClasses('MuiFormControlLabel', ['root', 'labelPlacementStart', 'labelPlacementTop', 'labelPlacementBottom', 'disabled', 'label', 'error']);
|
|
29993
|
+
const formControlLabelClasses = generateUtilityClasses('MuiFormControlLabel', ['root', 'labelPlacementStart', 'labelPlacementTop', 'labelPlacementBottom', 'disabled', 'label', 'error', 'required', 'asterisk']);
|
|
29923
29994
|
var formControlLabelClasses$1 = formControlLabelClasses;
|
|
29924
29995
|
|
|
29925
|
-
const _excluded$1g = ["checked", "className", "componentsProps", "control", "disabled", "disableTypography", "inputRef", "label", "labelPlacement", "name", "onChange", "slotProps", "value"];
|
|
29996
|
+
const _excluded$1g = ["checked", "className", "componentsProps", "control", "disabled", "disableTypography", "inputRef", "label", "labelPlacement", "name", "onChange", "required", "slotProps", "value"];
|
|
29926
29997
|
const useUtilityClasses$13 = ownerState => {
|
|
29927
29998
|
const {
|
|
29928
29999
|
classes,
|
|
29929
30000
|
disabled,
|
|
29930
30001
|
labelPlacement,
|
|
29931
|
-
error
|
|
30002
|
+
error,
|
|
30003
|
+
required
|
|
29932
30004
|
} = ownerState;
|
|
29933
30005
|
const slots = {
|
|
29934
|
-
root: ['root', disabled && 'disabled', `labelPlacement${capitalize(labelPlacement)}`, error && 'error'],
|
|
29935
|
-
label: ['label', disabled && 'disabled']
|
|
30006
|
+
root: ['root', disabled && 'disabled', `labelPlacement${capitalize(labelPlacement)}`, error && 'error', required && 'required'],
|
|
30007
|
+
label: ['label', disabled && 'disabled'],
|
|
30008
|
+
asterisk: ['asterisk', error && 'error']
|
|
29936
30009
|
};
|
|
29937
30010
|
return composeClasses(slots, getFormControlLabelUtilityClasses, classes);
|
|
29938
30011
|
};
|
|
@@ -29981,13 +30054,24 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
29981
30054
|
}
|
|
29982
30055
|
}
|
|
29983
30056
|
}));
|
|
30057
|
+
const AsteriskComponent$1 = styled$1('span', {
|
|
30058
|
+
name: 'MuiFormControlLabel',
|
|
30059
|
+
slot: 'Asterisk',
|
|
30060
|
+
overridesResolver: (props, styles) => styles.asterisk
|
|
30061
|
+
})(({
|
|
30062
|
+
theme
|
|
30063
|
+
}) => ({
|
|
30064
|
+
[`&.${formControlLabelClasses$1.error}`]: {
|
|
30065
|
+
color: (theme.vars || theme).palette.error.main
|
|
30066
|
+
}
|
|
30067
|
+
}));
|
|
29984
30068
|
|
|
29985
30069
|
/**
|
|
29986
30070
|
* Drop-in replacement of the `Radio`, `Switch` and `Checkbox` component.
|
|
29987
30071
|
* Use this component if you want to display an extra label.
|
|
29988
30072
|
*/
|
|
29989
30073
|
const FormControlLabel = /*#__PURE__*/React__namespace.forwardRef(function FormControlLabel(inProps, ref) {
|
|
29990
|
-
var _slotProps$typography;
|
|
30074
|
+
var _ref, _slotProps$typography;
|
|
29991
30075
|
const props = useThemeProps({
|
|
29992
30076
|
props: inProps,
|
|
29993
30077
|
name: 'MuiFormControlLabel'
|
|
@@ -30000,19 +30084,16 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
30000
30084
|
disableTypography,
|
|
30001
30085
|
label: labelProp,
|
|
30002
30086
|
labelPlacement = 'end',
|
|
30087
|
+
required: requiredProp,
|
|
30003
30088
|
slotProps = {}
|
|
30004
30089
|
} = props,
|
|
30005
30090
|
other = _objectWithoutPropertiesLoose(props, _excluded$1g);
|
|
30006
30091
|
const muiFormControl = useFormControl();
|
|
30007
|
-
|
|
30008
|
-
|
|
30009
|
-
disabled = control.props.disabled;
|
|
30010
|
-
}
|
|
30011
|
-
if (typeof disabled === 'undefined' && muiFormControl) {
|
|
30012
|
-
disabled = muiFormControl.disabled;
|
|
30013
|
-
}
|
|
30092
|
+
const disabled = (_ref = disabledProp != null ? disabledProp : control.props.disabled) != null ? _ref : muiFormControl == null ? void 0 : muiFormControl.disabled;
|
|
30093
|
+
const required = requiredProp != null ? requiredProp : control.props.required;
|
|
30014
30094
|
const controlProps = {
|
|
30015
|
-
disabled
|
|
30095
|
+
disabled,
|
|
30096
|
+
required
|
|
30016
30097
|
};
|
|
30017
30098
|
['checked', 'name', 'onChange', 'value', 'inputRef'].forEach(key => {
|
|
30018
30099
|
if (typeof control.props[key] === 'undefined' && typeof props[key] !== 'undefined') {
|
|
@@ -30027,6 +30108,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
30027
30108
|
const ownerState = _extends({}, props, {
|
|
30028
30109
|
disabled,
|
|
30029
30110
|
labelPlacement,
|
|
30111
|
+
required,
|
|
30030
30112
|
error: fcs.error
|
|
30031
30113
|
});
|
|
30032
30114
|
const classes = useUtilityClasses$13(ownerState);
|
|
@@ -30045,7 +30127,12 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
30045
30127
|
ownerState: ownerState,
|
|
30046
30128
|
ref: ref
|
|
30047
30129
|
}, other, {
|
|
30048
|
-
children: [/*#__PURE__*/React__namespace.cloneElement(control, controlProps), label
|
|
30130
|
+
children: [/*#__PURE__*/React__namespace.cloneElement(control, controlProps), label, required && /*#__PURE__*/jsxRuntime_2(AsteriskComponent$1, {
|
|
30131
|
+
ownerState: ownerState,
|
|
30132
|
+
"aria-hidden": true,
|
|
30133
|
+
className: classes.asterisk,
|
|
30134
|
+
children: ["\u2009", '*']
|
|
30135
|
+
})]
|
|
30049
30136
|
}));
|
|
30050
30137
|
});
|
|
30051
30138
|
FormControlLabel.propTypes /* remove-proptypes */ = {
|
|
@@ -30108,6 +30195,10 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
30108
30195
|
* You can pull out the new checked state by accessing `event.target.checked` (boolean).
|
|
30109
30196
|
*/
|
|
30110
30197
|
onChange: PropTypes.func,
|
|
30198
|
+
/**
|
|
30199
|
+
* If `true`, the label will indicate that the `input` is required.
|
|
30200
|
+
*/
|
|
30201
|
+
required: PropTypes.bool,
|
|
30111
30202
|
/**
|
|
30112
30203
|
* The props used for each slot inside.
|
|
30113
30204
|
* @default {}
|
|
@@ -43535,7 +43626,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
43535
43626
|
/**
|
|
43536
43627
|
* If `true`, the CSS flexbox `gap` is used instead of applying `margin` to children.
|
|
43537
43628
|
*
|
|
43538
|
-
* While CSS `gap` removes the [known limitations](https://mui.com/joy-ui/react-stack
|
|
43629
|
+
* While CSS `gap` removes the [known limitations](https://mui.com/joy-ui/react-stack/#limitations),
|
|
43539
43630
|
* it is not fully supported in some browsers. We recommend checking https://caniuse.com/?search=flex%20gap before using this flag.
|
|
43540
43631
|
*
|
|
43541
43632
|
* To enable this flag globally, follow the [theme's default props](https://mui.com/material-ui/customization/theme-components/#default-props) configuration.
|
|
@@ -47498,7 +47589,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
47498
47589
|
const setMeasurements = () => {
|
|
47499
47590
|
scrollbarHeight.current = nodeRef.current.offsetHeight - nodeRef.current.clientHeight;
|
|
47500
47591
|
};
|
|
47501
|
-
|
|
47592
|
+
useEnhancedEffect$1(() => {
|
|
47502
47593
|
const handleResize = debounce$1(() => {
|
|
47503
47594
|
const prevHeight = scrollbarHeight.current;
|
|
47504
47595
|
setMeasurements();
|
|
@@ -49482,7 +49573,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
49482
49573
|
exports.alertTitleClasses = alertTitleClasses$1;
|
|
49483
49574
|
exports.alpha = alpha;
|
|
49484
49575
|
exports.appBarClasses = appBarClasses$1;
|
|
49485
|
-
exports.ariaHidden = ariaHidden;
|
|
49486
49576
|
exports.autocompleteClasses = autocompleteClasses$1;
|
|
49487
49577
|
exports.avatarClasses = avatarClasses$1;
|
|
49488
49578
|
exports.avatarGroupClasses = avatarGroupClasses$1;
|
|
@@ -49611,7 +49701,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
49611
49701
|
exports.getMenuItemUtilityClass = getMenuItemUtilityClass;
|
|
49612
49702
|
exports.getMenuUtilityClass = getMenuUtilityClass;
|
|
49613
49703
|
exports.getMobileStepperUtilityClass = getMobileStepperUtilityClass;
|
|
49614
|
-
exports.getModalUtilityClass = getModalUtilityClass;
|
|
49615
49704
|
exports.getNativeSelectUtilityClasses = getNativeSelectUtilityClasses;
|
|
49616
49705
|
exports.getOffsetLeft = getOffsetLeft;
|
|
49617
49706
|
exports.getOffsetTop = getOffsetTop;
|
|
@@ -49691,7 +49780,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
49691
49780
|
exports.menuItemClasses = menuItemClasses$1;
|
|
49692
49781
|
exports.mobileStepperClasses = mobileStepperClasses$1;
|
|
49693
49782
|
exports.modalClasses = modalClasses;
|
|
49694
|
-
exports.modalUnstyledClasses = modalUnstyledClasses$1;
|
|
49695
49783
|
exports.nativeSelectClasses = nativeSelectClasses$1;
|
|
49696
49784
|
exports.outlinedInputClasses = outlinedInputClasses$1;
|
|
49697
49785
|
exports.ownerDocument = ownerDocument;
|