@mui/material 5.4.1 → 5.4.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.
Files changed (150) hide show
  1. package/Accordion/accordionClasses.d.ts +18 -18
  2. package/AccordionActions/accordionActionsClasses.d.ts +10 -10
  3. package/AccordionDetails/accordionDetailsClasses.d.ts +8 -8
  4. package/AccordionSummary/accordionSummaryClasses.d.ts +22 -22
  5. package/Alert/alertClasses.d.ts +44 -44
  6. package/AlertTitle/alertTitleClasses.d.ts +8 -8
  7. package/AppBar/appBarClasses.d.ts +28 -28
  8. package/Autocomplete/autocompleteClasses.d.ts +54 -54
  9. package/Avatar/avatarClasses.d.ts +20 -20
  10. package/AvatarGroup/avatarGroupClasses.d.ts +10 -10
  11. package/BottomNavigation/BottomNavigation.js +0 -0
  12. package/BottomNavigation/bottomNavigationClasses.d.ts +8 -8
  13. package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +14 -14
  14. package/Breadcrumbs/breadcrumbsClasses.d.ts +14 -14
  15. package/Button/buttonClasses.d.ts +76 -76
  16. package/ButtonBase/buttonBaseClasses.d.ts +12 -12
  17. package/ButtonBase/touchRippleClasses.d.ts +20 -20
  18. package/ButtonGroup/ButtonGroupContext.d.ts +18 -18
  19. package/ButtonGroup/buttonGroupClasses.d.ts +58 -58
  20. package/CHANGELOG.md +65 -0
  21. package/Card/cardClasses.d.ts +8 -8
  22. package/CardActionArea/cardActionAreaClasses.d.ts +12 -12
  23. package/CardActions/cardActionsClasses.d.ts +10 -10
  24. package/CardContent/cardContentClasses.d.ts +8 -8
  25. package/CardHeader/cardHeaderClasses.d.ts +18 -18
  26. package/CardMedia/cardMediaClasses.d.ts +12 -12
  27. package/Checkbox/checkboxClasses.d.ts +18 -18
  28. package/Chip/chipClasses.d.ts +80 -80
  29. package/CircularProgress/circularProgressClasses.d.ts +26 -26
  30. package/ClickAwayListener/index.d.ts +2 -2
  31. package/Collapse/collapseClasses.d.ts +18 -18
  32. package/Container/containerClasses.d.ts +22 -22
  33. package/Dialog/DialogContext.d.ts +6 -6
  34. package/Dialog/dialogClasses.d.ts +36 -36
  35. package/DialogActions/dialogActionsClasses.d.ts +10 -10
  36. package/DialogContent/dialogContentClasses.d.ts +10 -10
  37. package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
  38. package/DialogTitle/dialogTitleClasses.d.ts +8 -8
  39. package/Divider/dividerClasses.d.ts +34 -34
  40. package/Drawer/drawerClasses.d.ts +30 -30
  41. package/Fab/fabClasses.d.ts +26 -26
  42. package/FilledInput/filledInputClasses.d.ts +40 -40
  43. package/FormControl/formControlClasses.d.ts +14 -14
  44. package/FormControlLabel/formControlLabelClasses.d.ts +20 -20
  45. package/FormGroup/formGroupClasses.d.ts +12 -12
  46. package/FormHelperText/formHelperTextClasses.d.ts +22 -22
  47. package/FormLabel/formLabelClasses.d.ts +22 -22
  48. package/Grid/gridClasses.d.ts +48 -48
  49. package/Icon/iconClasses.d.ts +24 -24
  50. package/IconButton/iconButtonClasses.d.ts +26 -26
  51. package/ImageList/imageListClasses.d.ts +16 -16
  52. package/ImageListItem/imageListItemClasses.d.ts +18 -18
  53. package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
  54. package/Input/inputClasses.d.ts +34 -34
  55. package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
  56. package/InputBase/inputBaseClasses.d.ts +44 -44
  57. package/InputLabel/inputLabelClasses.d.ts +32 -32
  58. package/LinearProgress/linearProgressClasses.d.ts +42 -42
  59. package/Link/linkClasses.d.ts +18 -18
  60. package/List/listClasses.d.ts +14 -14
  61. package/ListItem/listItemClasses.d.ts +30 -30
  62. package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
  63. package/ListItemButton/listItemButtonClasses.d.ts +22 -22
  64. package/ListItemIcon/listItemIconClasses.d.ts +10 -10
  65. package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
  66. package/ListItemText/listItemTextClasses.d.ts +18 -18
  67. package/ListSubheader/listSubheaderClasses.d.ts +18 -18
  68. package/Menu/menuClasses.d.ts +12 -12
  69. package/MenuItem/menuItemClasses.d.ts +20 -20
  70. package/MobileStepper/mobileStepperClasses.d.ts +22 -22
  71. package/NativeSelect/nativeSelectClasses.d.ts +32 -32
  72. package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
  73. package/Pagination/paginationClasses.d.ts +14 -14
  74. package/PaginationItem/paginationItemClasses.d.ts +42 -42
  75. package/Paper/paperClasses.d.ts +39 -39
  76. package/Popover/popoverClasses.d.ts +10 -10
  77. package/Popper/Popper.d.ts +17 -17
  78. package/Radio/radioClasses.d.ts +16 -16
  79. package/RadioGroup/RadioGroupContext.d.ts +11 -11
  80. package/RadioGroup/useRadioGroup.d.ts +4 -4
  81. package/Rating/ratingClasses.d.ts +40 -40
  82. package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
  83. package/Select/Select.js +19 -7
  84. package/Select/selectClasses.d.ts +30 -30
  85. package/Skeleton/skeletonClasses.d.ts +24 -24
  86. package/Snackbar/snackbarClasses.d.ts +20 -20
  87. package/SnackbarContent/snackbarContentClasses.d.ts +12 -12
  88. package/SpeedDial/speedDialClasses.d.ts +22 -22
  89. package/SpeedDialAction/speedDialActionClasses.d.ts +20 -20
  90. package/SpeedDialIcon/speedDialIconClasses.d.ts +18 -18
  91. package/Step/stepClasses.d.ts +16 -16
  92. package/StepButton/stepButtonClasses.d.ts +14 -14
  93. package/StepConnector/stepConnectorClasses.d.ts +26 -26
  94. package/StepContent/stepContentClasses.d.ts +12 -12
  95. package/StepIcon/stepIconClasses.d.ts +16 -16
  96. package/StepLabel/stepLabelClasses.d.ts +28 -28
  97. package/Stepper/stepperClasses.d.ts +14 -14
  98. package/SvgIcon/svgIconClasses.d.ts +24 -24
  99. package/Switch/switchClasses.d.ts +32 -32
  100. package/Tab/tabClasses.d.ts +26 -26
  101. package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
  102. package/Table/tableClasses.d.ts +10 -10
  103. package/TableBody/tableBodyClasses.d.ts +8 -8
  104. package/TableCell/tableCellClasses.d.ts +32 -32
  105. package/TableContainer/tableContainerClasses.d.ts +8 -8
  106. package/TableFooter/tableFooterClasses.d.ts +8 -8
  107. package/TableHead/tableHeadClasses.d.ts +8 -8
  108. package/TablePagination/tablePaginationClasses.d.ts +28 -28
  109. package/TableRow/tableRowClasses.d.ts +16 -16
  110. package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
  111. package/Tabs/tabsClasses.d.ts +32 -32
  112. package/TextField/textFieldClasses.d.ts +8 -8
  113. package/ToggleButton/ToggleButton.d.ts +15 -0
  114. package/ToggleButton/ToggleButton.js +8 -2
  115. package/ToggleButton/toggleButtonClasses.d.ts +24 -24
  116. package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
  117. package/Toolbar/toolbarClasses.d.ts +14 -14
  118. package/Tooltip/tooltipClasses.d.ts +30 -30
  119. package/Typography/typographyClasses.d.ts +50 -50
  120. package/darkScrollbar/index.d.ts +28 -28
  121. package/index.d.ts +3 -0
  122. package/index.js +3 -1
  123. package/internal/switchBaseClasses.d.ts +12 -12
  124. package/legacy/BottomNavigation/BottomNavigation.js +0 -0
  125. package/legacy/Select/Select.js +23 -7
  126. package/legacy/ToggleButton/ToggleButton.js +8 -2
  127. package/legacy/index.js +3 -1
  128. package/locale/index.d.ts +68 -68
  129. package/modern/BottomNavigation/BottomNavigation.js +0 -0
  130. package/modern/Select/Select.js +19 -7
  131. package/modern/ToggleButton/ToggleButton.js +8 -2
  132. package/modern/index.js +3 -1
  133. package/node/BottomNavigation/BottomNavigation.js +0 -0
  134. package/node/Select/Select.js +22 -9
  135. package/node/ToggleButton/ToggleButton.js +8 -2
  136. package/node/index.js +22 -1
  137. package/package.json +5 -5
  138. package/styles/index.d.ts +3 -0
  139. package/transitions/index.d.ts +1 -1
  140. package/transitions/transition.d.ts +13 -13
  141. package/transitions/utils.d.ts +23 -23
  142. package/umd/material-ui.development.js +133 -79
  143. package/umd/material-ui.production.min.js +8 -8
  144. package/useMediaQuery/useMediaQuery.d.ts +31 -31
  145. package/useTouchRipple/index.d.ts +1 -1
  146. package/useTouchRipple/useTouchRipple.d.ts +28 -28
  147. package/utils/getScrollbarSize.d.ts +2 -2
  148. package/utils/ownerDocument.d.ts +2 -2
  149. package/utils/ownerWindow.d.ts +2 -2
  150. package/utils/setRef.d.ts +2 -2
@@ -1,23 +1,23 @@
1
- import * as React from 'react';
2
- export declare const reflow: (node: Element) => number;
3
- interface ComponentProps {
4
- easing: string | {
5
- enter?: string;
6
- exit?: string;
7
- } | undefined;
8
- style: React.CSSProperties | undefined;
9
- timeout: number | {
10
- enter?: number;
11
- exit?: number;
12
- };
13
- }
14
- interface Options {
15
- mode: 'enter' | 'exit';
16
- }
17
- interface TransitionProps {
18
- duration: string | number;
19
- easing: string | undefined;
20
- delay: string | undefined;
21
- }
22
- export declare function getTransitionProps(props: ComponentProps, options: Options): TransitionProps;
23
- export {};
1
+ import * as React from 'react';
2
+ export declare const reflow: (node: Element) => number;
3
+ interface ComponentProps {
4
+ easing: string | {
5
+ enter?: string;
6
+ exit?: string;
7
+ } | undefined;
8
+ style: React.CSSProperties | undefined;
9
+ timeout: number | {
10
+ enter?: number;
11
+ exit?: number;
12
+ };
13
+ }
14
+ interface Options {
15
+ mode: 'enter' | 'exit';
16
+ }
17
+ interface TransitionProps {
18
+ duration: string | number;
19
+ easing: string | undefined;
20
+ delay: string | undefined;
21
+ }
22
+ export declare function getTransitionProps(props: ComponentProps, options: Options): TransitionProps;
23
+ export {};
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.4.1
1
+ /** @license MUI v5.4.2
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.
@@ -6281,17 +6281,6 @@
6281
6281
  return acc;
6282
6282
  }, {});
6283
6283
 
6284
- function getThemeValue(prop, value, theme) {
6285
- const inputProps = {
6286
- [prop]: value,
6287
- theme
6288
- };
6289
- const styleFunction = propToStyleFunction[prop];
6290
- return styleFunction ? styleFunction(inputProps) : {
6291
- [prop]: value
6292
- };
6293
- }
6294
-
6295
6284
  function objectsHaveSameKeys(...objects) {
6296
6285
  const allKeys = objects.reduce((keys, object) => keys.concat(Object.keys(object)), []);
6297
6286
  const union = new Set(allKeys);
@@ -6300,72 +6289,100 @@
6300
6289
 
6301
6290
  function callIfFn(maybeFn, arg) {
6302
6291
  return typeof maybeFn === 'function' ? maybeFn(arg) : maybeFn;
6303
- }
6292
+ } // eslint-disable-next-line @typescript-eslint/naming-convention
6304
6293
 
6305
- function styleFunctionSx(props) {
6306
- const {
6307
- sx,
6308
- theme = {}
6309
- } = props || {};
6310
6294
 
6311
- if (!sx) {
6312
- return null; // emotion & styled-components will neglect null
6313
- }
6314
- /*
6315
- * Receive `sxInput` as object or callback
6316
- * and then recursively check keys & values to create media query object styles.
6317
- * (the result will be used in `styled`)
6318
- */
6295
+ function unstable_createStyleFunctionSx(styleFunctionMapping$1 = styleFunctionMapping) {
6296
+ const propToStyleFunction = Object.keys(styleFunctionMapping$1).reduce((acc, styleFnName) => {
6297
+ styleFunctionMapping$1[styleFnName].filterProps.forEach(propName => {
6298
+ acc[propName] = styleFunctionMapping$1[styleFnName];
6299
+ });
6300
+ return acc;
6301
+ }, {});
6319
6302
 
6303
+ function getThemeValue(prop, value, theme) {
6304
+ const inputProps = {
6305
+ [prop]: value,
6306
+ theme
6307
+ };
6308
+ const styleFunction = propToStyleFunction[prop];
6309
+ return styleFunction ? styleFunction(inputProps) : {
6310
+ [prop]: value
6311
+ };
6312
+ }
6320
6313
 
6321
- function traverse(sxInput) {
6322
- let sxObject = sxInput;
6314
+ function styleFunctionSx(props) {
6315
+ const {
6316
+ sx,
6317
+ theme = {}
6318
+ } = props || {};
6323
6319
 
6324
- if (typeof sxInput === 'function') {
6325
- sxObject = sxInput(theme);
6326
- } else if (typeof sxInput !== 'object') {
6327
- // value
6328
- return sxInput;
6320
+ if (!sx) {
6321
+ return null; // emotion & styled-components will neglect null
6329
6322
  }
6323
+ /*
6324
+ * Receive `sxInput` as object or callback
6325
+ * and then recursively check keys & values to create media query object styles.
6326
+ * (the result will be used in `styled`)
6327
+ */
6330
6328
 
6331
- const emptyBreakpoints = createEmptyBreakpointObject(theme.breakpoints);
6332
- const breakpointsKeys = Object.keys(emptyBreakpoints);
6333
- let css = emptyBreakpoints;
6334
- Object.keys(sxObject).forEach(styleKey => {
6335
- const value = callIfFn(sxObject[styleKey], theme);
6336
6329
 
6337
- if (value !== null && value !== undefined) {
6338
- if (typeof value === 'object') {
6339
- if (propToStyleFunction[styleKey]) {
6340
- css = merge(css, getThemeValue(styleKey, value, theme));
6341
- } else {
6342
- const breakpointsValues = handleBreakpoints({
6343
- theme
6344
- }, value, x => ({
6345
- [styleKey]: x
6346
- }));
6347
-
6348
- if (objectsHaveSameKeys(breakpointsValues, value)) {
6349
- css[styleKey] = styleFunctionSx({
6350
- sx: value,
6351
- theme
6352
- });
6330
+ function traverse(sxInput) {
6331
+ let sxObject = sxInput;
6332
+
6333
+ if (typeof sxInput === 'function') {
6334
+ sxObject = sxInput(theme);
6335
+ } else if (typeof sxInput !== 'object') {
6336
+ // value
6337
+ return sxInput;
6338
+ }
6339
+
6340
+ if (!sxObject) {
6341
+ return null;
6342
+ }
6343
+
6344
+ const emptyBreakpoints = createEmptyBreakpointObject(theme.breakpoints);
6345
+ const breakpointsKeys = Object.keys(emptyBreakpoints);
6346
+ let css = emptyBreakpoints;
6347
+ Object.keys(sxObject).forEach(styleKey => {
6348
+ const value = callIfFn(sxObject[styleKey], theme);
6349
+
6350
+ if (value !== null && value !== undefined) {
6351
+ if (typeof value === 'object') {
6352
+ if (propToStyleFunction[styleKey]) {
6353
+ css = merge(css, getThemeValue(styleKey, value, theme));
6353
6354
  } else {
6354
- css = merge(css, breakpointsValues);
6355
+ const breakpointsValues = handleBreakpoints({
6356
+ theme
6357
+ }, value, x => ({
6358
+ [styleKey]: x
6359
+ }));
6360
+
6361
+ if (objectsHaveSameKeys(breakpointsValues, value)) {
6362
+ css[styleKey] = styleFunctionSx({
6363
+ sx: value,
6364
+ theme
6365
+ });
6366
+ } else {
6367
+ css = merge(css, breakpointsValues);
6368
+ }
6355
6369
  }
6370
+ } else {
6371
+ css = merge(css, getThemeValue(styleKey, value, theme));
6356
6372
  }
6357
- } else {
6358
- css = merge(css, getThemeValue(styleKey, value, theme));
6359
6373
  }
6360
- }
6361
- });
6362
- return removeUnusedBreakpoints(breakpointsKeys, css);
6374
+ });
6375
+ return removeUnusedBreakpoints(breakpointsKeys, css);
6376
+ }
6377
+
6378
+ return Array.isArray(sx) ? sx.map(traverse) : traverse(sx);
6363
6379
  }
6364
6380
 
6365
- return Array.isArray(sx) ? sx.map(traverse) : traverse(sx);
6381
+ return styleFunctionSx;
6366
6382
  }
6367
-
6383
+ const styleFunctionSx = unstable_createStyleFunctionSx();
6368
6384
  styleFunctionSx.filterProps = ['sx'];
6385
+ var defaultStyleFunctionSx = styleFunctionSx;
6369
6386
 
6370
6387
  const _excluded$2k = ["sx"];
6371
6388
 
@@ -6420,7 +6437,7 @@
6420
6437
  function sx(styles) {
6421
6438
  return ({
6422
6439
  theme
6423
- }) => styleFunctionSx({
6440
+ }) => defaultStyleFunctionSx({
6424
6441
  sx: styles,
6425
6442
  theme
6426
6443
  });
@@ -6469,6 +6486,21 @@
6469
6486
 
6470
6487
  const _excluded$2j = ["values", "unit", "step"];
6471
6488
 
6489
+ const sortBreakpointsValues = values => {
6490
+ const breakpointsAsArray = Object.keys(values).map(key => ({
6491
+ key,
6492
+ val: values[key]
6493
+ })) || []; // Sort in ascending order
6494
+
6495
+ breakpointsAsArray.sort((breakpoint1, breakpoint2) => breakpoint1.val - breakpoint2.val);
6496
+ return breakpointsAsArray.reduce((acc, obj) => {
6497
+ return _extends({}, acc, {
6498
+ [obj.key]: obj.val
6499
+ });
6500
+ }, {});
6501
+ }; // Keep in mind that @media is inclusive by the CSS specification.
6502
+
6503
+
6472
6504
  function createBreakpoints(breakpoints) {
6473
6505
  const {
6474
6506
  // The breakpoint **start** at this value.
@@ -6490,7 +6522,8 @@
6490
6522
  } = breakpoints,
6491
6523
  other = _objectWithoutPropertiesLoose(breakpoints, _excluded$2j);
6492
6524
 
6493
- const keys = Object.keys(values);
6525
+ const sortedValues = sortBreakpointsValues(values);
6526
+ const keys = Object.keys(sortedValues);
6494
6527
 
6495
6528
  function up(key) {
6496
6529
  const value = typeof values[key] === 'number' ? values[key] : key;
@@ -6532,7 +6565,7 @@
6532
6565
 
6533
6566
  return _extends({
6534
6567
  keys,
6535
- values,
6568
+ values: sortedValues,
6536
6569
  up,
6537
6570
  down,
6538
6571
  between,
@@ -6715,7 +6748,8 @@
6715
6748
  const {
6716
6749
  defaultTheme,
6717
6750
  defaultClassName = 'MuiBox-root',
6718
- generateClassName
6751
+ generateClassName,
6752
+ styleFunctionSx = defaultStyleFunctionSx
6719
6753
  } = options;
6720
6754
  const BoxRoot = styled$2('div')(styleFunctionSx);
6721
6755
  const Box = /*#__PURE__*/React__namespace.forwardRef(function Box(inProps, ref) {
@@ -6847,7 +6881,8 @@
6847
6881
  }
6848
6882
 
6849
6883
  return variantsStyles;
6850
- };
6884
+ }; // Update /system/styled/#api in case if this changes
6885
+
6851
6886
 
6852
6887
  function shouldForwardProp(prop) {
6853
6888
  return prop !== 'ownerState' && prop !== 'theme' && prop !== 'sx' && prop !== 'as';
@@ -6862,7 +6897,8 @@
6862
6897
  const {
6863
6898
  defaultTheme = systemDefaultTheme,
6864
6899
  rootShouldForwardProp = shouldForwardProp,
6865
- slotShouldForwardProp = shouldForwardProp
6900
+ slotShouldForwardProp = shouldForwardProp,
6901
+ styleFunctionSx = defaultStyleFunctionSx
6866
6902
  } = input;
6867
6903
  return (tag, inputOptions = {}) => {
6868
6904
  const {
@@ -12739,7 +12775,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
12739
12775
  otherHandlers == null ? void 0 : (_otherHandlers$onFocu = otherHandlers.onFocus) == null ? void 0 : _otherHandlers$onFocu.call(otherHandlers, event);
12740
12776
  };
12741
12777
 
12742
- const createHandleHidenInputBlur = otherHandlers => event => {
12778
+ const createHandleHiddenInputBlur = otherHandlers => event => {
12743
12779
  var _otherHandlers$onBlur;
12744
12780
 
12745
12781
  handleBlurVisible(event);
@@ -13130,7 +13166,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
13130
13166
  const ownEventHandlers = {
13131
13167
  onChange: createHandleHiddenInputChange(otherHandlers || {}),
13132
13168
  onFocus: createHandleHiddenInputFocus(otherHandlers || {}),
13133
- onBlur: createHandleHidenInputBlur(otherHandlers || {})
13169
+ onBlur: createHandleHiddenInputBlur(otherHandlers || {})
13134
13170
  };
13135
13171
 
13136
13172
  const mergedEventHandlers = _extends({}, otherHandlers, ownEventHandlers);
@@ -39638,7 +39674,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
39638
39674
  } ;
39639
39675
  var SelectInput$1 = SelectInput;
39640
39676
 
39641
- var _Input, _FilledInput;
39677
+ var _StyledInput, _StyledFilledInput;
39642
39678
 
39643
39679
  const _excluded$D = ["autoWidth", "children", "classes", "className", "defaultOpen", "displayEmpty", "IconComponent", "id", "input", "inputProps", "label", "labelId", "MenuProps", "multiple", "native", "onClose", "onOpen", "open", "renderValue", "SelectDisplayProps", "variant"];
39644
39680
 
@@ -39649,6 +39685,15 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
39649
39685
  return classes;
39650
39686
  };
39651
39687
 
39688
+ const styledRootConfig = {
39689
+ name: 'MuiSelect',
39690
+ overridesResolver: (props, styles) => styles.root,
39691
+ shouldForwardProp: prop => rootShouldForwardProp(prop) && prop !== 'variant',
39692
+ slot: 'Root'
39693
+ };
39694
+ const StyledInput = styled$1(Input$1, styledRootConfig)('');
39695
+ const StyledOutlinedInput = styled$1(OutlinedInput$1, styledRootConfig)('');
39696
+ const StyledFilledInput = styled$1(FilledInput$1, styledRootConfig)('');
39652
39697
  const Select = /*#__PURE__*/React__namespace.forwardRef(function Select(inProps, ref) {
39653
39698
  const props = useThemeProps({
39654
39699
  name: 'MuiSelect',
@@ -39676,7 +39721,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
39676
39721
  open,
39677
39722
  renderValue,
39678
39723
  SelectDisplayProps,
39679
- variant: variantProps = 'outlined'
39724
+ variant: variantProp = 'outlined'
39680
39725
  } = props,
39681
39726
  other = _objectWithoutPropertiesLoose(props, _excluded$D);
39682
39727
 
@@ -39687,16 +39732,17 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
39687
39732
  muiFormControl,
39688
39733
  states: ['variant']
39689
39734
  });
39690
- const variant = fcs.variant || variantProps;
39735
+ const variant = fcs.variant || variantProp;
39691
39736
  const InputComponent = input || {
39692
- standard: _Input || (_Input = /*#__PURE__*/jsxRuntime_1(Input$1, {})),
39693
- outlined: /*#__PURE__*/jsxRuntime_1(OutlinedInput$1, {
39737
+ standard: _StyledInput || (_StyledInput = /*#__PURE__*/jsxRuntime_1(StyledInput, {})),
39738
+ outlined: /*#__PURE__*/jsxRuntime_1(StyledOutlinedInput, {
39694
39739
  label: label
39695
39740
  }),
39696
- filled: _FilledInput || (_FilledInput = /*#__PURE__*/jsxRuntime_1(FilledInput$1, {}))
39741
+ filled: _StyledFilledInput || (_StyledFilledInput = /*#__PURE__*/jsxRuntime_1(StyledFilledInput, {}))
39697
39742
  }[variant];
39698
39743
 
39699
39744
  const ownerState = _extends({}, props, {
39745
+ variant,
39700
39746
  classes: classesProp
39701
39747
  });
39702
39748
 
@@ -39735,7 +39781,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
39735
39781
  notched: true
39736
39782
  } : {}, {
39737
39783
  ref: inputComponentRef,
39738
- className: clsx(InputComponent.props.className, className)
39784
+ className: clsx(InputComponent.props.className, className),
39785
+ variant
39739
39786
  }, other));
39740
39787
  });
39741
39788
  Select.propTypes
@@ -49535,12 +49582,18 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
49535
49582
  fullWidth: PropTypes.bool,
49536
49583
 
49537
49584
  /**
49538
- * @ignore
49585
+ * Callback fired when the state changes.
49586
+ *
49587
+ * @param {React.MouseEvent<HTMLElement>} event The event source of the callback.
49588
+ * @param {any} value of the selected button.
49539
49589
  */
49540
49590
  onChange: PropTypes.func,
49541
49591
 
49542
49592
  /**
49543
- * @ignore
49593
+ * Callback fired when the button is clicked.
49594
+ *
49595
+ * @param {React.MouseEvent<HTMLElement>} event The event source of the callback.
49596
+ * @param {any} value of the selected button.
49544
49597
  */
49545
49598
  onClick: PropTypes.func,
49546
49599
 
@@ -49972,6 +50025,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
49972
50025
  exports.Paper = Paper$1;
49973
50026
  exports.Popover = Popover$1;
49974
50027
  exports.Popper = Popper$1;
50028
+ exports.Portal = Portal$1;
49975
50029
  exports.Radio = Radio$1;
49976
50030
  exports.RadioGroup = RadioGroup$1;
49977
50031
  exports.Rating = Rating$1;