@mui/material 5.11.14 → 5.11.16

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 (209) 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/Autocomplete.js +12 -1
  9. package/Autocomplete/autocompleteClasses.d.ts +56 -56
  10. package/Avatar/avatarClasses.d.ts +20 -20
  11. package/AvatarGroup/avatarGroupClasses.d.ts +10 -10
  12. package/Backdrop/backdropClasses.d.ts +10 -10
  13. package/Badge/badgeClasses.d.ts +56 -56
  14. package/BottomNavigation/BottomNavigation.js +0 -0
  15. package/BottomNavigation/bottomNavigationClasses.d.ts +8 -8
  16. package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +14 -14
  17. package/Breadcrumbs/breadcrumbsClasses.d.ts +14 -14
  18. package/Button/buttonClasses.d.ts +100 -100
  19. package/ButtonBase/buttonBaseClasses.d.ts +12 -12
  20. package/ButtonBase/touchRippleClasses.d.ts +20 -20
  21. package/ButtonGroup/ButtonGroupContext.d.ts +18 -18
  22. package/ButtonGroup/buttonGroupClasses.d.ts +58 -58
  23. package/CHANGELOG.md +118 -4
  24. package/Card/cardClasses.d.ts +8 -8
  25. package/CardActionArea/CardActionArea.js +2 -0
  26. package/CardActionArea/cardActionAreaClasses.d.ts +12 -12
  27. package/CardActions/cardActionsClasses.d.ts +10 -10
  28. package/CardContent/cardContentClasses.d.ts +8 -8
  29. package/CardHeader/cardHeaderClasses.d.ts +18 -18
  30. package/CardMedia/cardMediaClasses.d.ts +12 -12
  31. package/Checkbox/checkboxClasses.d.ts +18 -18
  32. package/Chip/Chip.js +2 -3
  33. package/Chip/chipClasses.d.ts +96 -96
  34. package/CircularProgress/circularProgressClasses.d.ts +26 -26
  35. package/ClickAwayListener/index.d.ts +2 -2
  36. package/Collapse/collapseClasses.d.ts +18 -18
  37. package/Container/containerClasses.d.ts +6 -6
  38. package/Dialog/DialogContext.d.ts +6 -6
  39. package/Dialog/dialogClasses.d.ts +36 -36
  40. package/DialogActions/dialogActionsClasses.d.ts +10 -10
  41. package/DialogContent/dialogContentClasses.d.ts +10 -10
  42. package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
  43. package/DialogTitle/dialogTitleClasses.d.ts +8 -8
  44. package/Divider/dividerClasses.d.ts +34 -34
  45. package/Drawer/drawerClasses.d.ts +30 -30
  46. package/Fab/fabClasses.d.ts +26 -26
  47. package/FilledInput/filledInputClasses.d.ts +40 -40
  48. package/FormControl/FormControlContext.d.ts +17 -17
  49. package/FormControl/formControlClasses.d.ts +14 -14
  50. package/FormControl/useFormControl.d.ts +2 -2
  51. package/FormControlLabel/formControlLabelClasses.d.ts +20 -20
  52. package/FormGroup/formGroupClasses.d.ts +12 -12
  53. package/FormHelperText/formHelperTextClasses.d.ts +22 -22
  54. package/FormLabel/formLabelClasses.d.ts +22 -22
  55. package/Grid/gridClasses.d.ts +48 -48
  56. package/Icon/iconClasses.d.ts +24 -24
  57. package/IconButton/iconButtonClasses.d.ts +34 -34
  58. package/ImageList/imageListClasses.d.ts +16 -16
  59. package/ImageListItem/imageListItemClasses.d.ts +18 -18
  60. package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
  61. package/Input/inputClasses.d.ts +34 -34
  62. package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
  63. package/InputBase/inputBaseClasses.d.ts +46 -46
  64. package/InputLabel/inputLabelClasses.d.ts +32 -32
  65. package/LinearProgress/linearProgressClasses.d.ts +42 -42
  66. package/Link/getTextDecoration.d.ts +15 -15
  67. package/Link/linkClasses.d.ts +18 -18
  68. package/List/listClasses.d.ts +14 -14
  69. package/ListItem/listItemClasses.d.ts +30 -30
  70. package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
  71. package/ListItemButton/listItemButtonClasses.d.ts +22 -22
  72. package/ListItemIcon/listItemIconClasses.d.ts +10 -10
  73. package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
  74. package/ListItemText/listItemTextClasses.d.ts +18 -18
  75. package/ListSubheader/listSubheaderClasses.d.ts +18 -18
  76. package/Menu/menuClasses.d.ts +12 -12
  77. package/MenuItem/menuItemClasses.d.ts +20 -20
  78. package/MobileStepper/mobileStepperClasses.d.ts +22 -22
  79. package/NativeSelect/NativeSelectInput.d.ts +1 -0
  80. package/NativeSelect/NativeSelectInput.js +12 -5
  81. package/NativeSelect/nativeSelectClasses.d.ts +34 -32
  82. package/NativeSelect/nativeSelectClasses.js +1 -1
  83. package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
  84. package/Pagination/paginationClasses.d.ts +14 -14
  85. package/PaginationItem/paginationItemClasses.d.ts +42 -42
  86. package/Paper/paperClasses.d.ts +39 -39
  87. package/Popover/popoverClasses.d.ts +10 -10
  88. package/Popper/Popper.d.ts +55 -55
  89. package/Radio/radioClasses.d.ts +16 -16
  90. package/RadioGroup/RadioGroupContext.d.ts +11 -11
  91. package/RadioGroup/useRadioGroup.d.ts +4 -4
  92. package/Rating/ratingClasses.d.ts +40 -40
  93. package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
  94. package/Select/Select.js +14 -9
  95. package/Select/SelectInput.d.ts +1 -0
  96. package/Select/SelectInput.js +14 -4
  97. package/Select/selectClasses.d.ts +32 -30
  98. package/Select/selectClasses.js +1 -1
  99. package/Skeleton/skeletonClasses.d.ts +26 -26
  100. package/Slider/Slider.js +6 -6
  101. package/Slider/SliderValueLabel.d.ts +15 -15
  102. package/Slider/SliderValueLabel.types.d.ts +24 -24
  103. package/Slider/sliderClasses.d.ts +58 -58
  104. package/Snackbar/snackbarClasses.d.ts +20 -20
  105. package/SnackbarContent/snackbarContentClasses.d.ts +12 -12
  106. package/SpeedDial/speedDialClasses.d.ts +22 -22
  107. package/SpeedDialAction/speedDialActionClasses.d.ts +20 -20
  108. package/SpeedDialIcon/speedDialIconClasses.d.ts +18 -18
  109. package/Stack/Stack.d.ts +10 -0
  110. package/Stack/Stack.js +11 -1
  111. package/Stack/stackClasses.d.ts +6 -6
  112. package/Step/StepContext.d.ts +20 -20
  113. package/Step/stepClasses.d.ts +16 -16
  114. package/StepButton/stepButtonClasses.d.ts +14 -14
  115. package/StepConnector/stepConnectorClasses.d.ts +26 -26
  116. package/StepContent/stepContentClasses.d.ts +12 -12
  117. package/StepIcon/stepIconClasses.d.ts +16 -16
  118. package/StepLabel/stepLabelClasses.d.ts +28 -28
  119. package/Stepper/StepperContext.d.ts +18 -18
  120. package/Stepper/stepperClasses.d.ts +14 -14
  121. package/SvgIcon/svgIconClasses.d.ts +26 -26
  122. package/Switch/switchClasses.d.ts +32 -32
  123. package/Tab/tabClasses.d.ts +26 -26
  124. package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
  125. package/Table/tableClasses.d.ts +10 -10
  126. package/TableBody/tableBodyClasses.d.ts +8 -8
  127. package/TableCell/tableCellClasses.d.ts +32 -32
  128. package/TableContainer/tableContainerClasses.d.ts +8 -8
  129. package/TableFooter/tableFooterClasses.d.ts +8 -8
  130. package/TableHead/tableHeadClasses.d.ts +8 -8
  131. package/TablePagination/tablePaginationClasses.d.ts +28 -28
  132. package/TableRow/tableRowClasses.d.ts +16 -16
  133. package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
  134. package/Tabs/tabsClasses.d.ts +32 -32
  135. package/TextField/textFieldClasses.d.ts +8 -8
  136. package/ToggleButton/toggleButtonClasses.d.ts +24 -24
  137. package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
  138. package/Toolbar/toolbarClasses.d.ts +14 -14
  139. package/Tooltip/tooltipClasses.d.ts +30 -30
  140. package/Typography/typographyClasses.d.ts +50 -50
  141. package/Unstable_Grid2/Grid2.d.ts +4 -4
  142. package/Unstable_Grid2/Grid2.js +1 -0
  143. package/Unstable_Grid2/Grid2Props.d.ts +15 -15
  144. package/Unstable_Grid2/grid2Classes.d.ts +5 -5
  145. package/Unstable_Grid2/index.d.ts +4 -4
  146. package/className/index.d.ts +1 -1
  147. package/darkScrollbar/index.d.ts +28 -28
  148. package/generateUtilityClass/index.d.ts +2 -2
  149. package/generateUtilityClasses/index.d.ts +1 -1
  150. package/index.js +1 -1
  151. package/internal/switchBaseClasses.d.ts +12 -12
  152. package/legacy/Autocomplete/Autocomplete.js +11 -3
  153. package/legacy/BottomNavigation/BottomNavigation.js +0 -0
  154. package/legacy/CardActionArea/CardActionArea.js +2 -0
  155. package/legacy/Chip/Chip.js +2 -3
  156. package/legacy/NativeSelect/NativeSelectInput.js +12 -5
  157. package/legacy/NativeSelect/nativeSelectClasses.js +1 -1
  158. package/legacy/Select/Select.js +14 -9
  159. package/legacy/Select/SelectInput.js +14 -5
  160. package/legacy/Select/selectClasses.js +1 -1
  161. package/legacy/Slider/Slider.js +6 -6
  162. package/legacy/Stack/Stack.js +11 -1
  163. package/legacy/Unstable_Grid2/Grid2.js +1 -0
  164. package/legacy/index.js +1 -1
  165. package/locale/index.d.ts +76 -76
  166. package/modern/Autocomplete/Autocomplete.js +12 -1
  167. package/modern/BottomNavigation/BottomNavigation.js +0 -0
  168. package/modern/CardActionArea/CardActionArea.js +2 -0
  169. package/modern/Chip/Chip.js +2 -3
  170. package/modern/NativeSelect/NativeSelectInput.js +12 -5
  171. package/modern/NativeSelect/nativeSelectClasses.js +1 -1
  172. package/modern/Select/Select.js +14 -9
  173. package/modern/Select/SelectInput.js +14 -4
  174. package/modern/Select/selectClasses.js +1 -1
  175. package/modern/Slider/Slider.js +6 -6
  176. package/modern/Stack/Stack.js +11 -1
  177. package/modern/Unstable_Grid2/Grid2.js +1 -0
  178. package/modern/index.js +1 -1
  179. package/node/Autocomplete/Autocomplete.js +12 -1
  180. package/node/BottomNavigation/BottomNavigation.js +0 -0
  181. package/node/CardActionArea/CardActionArea.js +2 -0
  182. package/node/Chip/Chip.js +2 -3
  183. package/node/NativeSelect/NativeSelectInput.js +12 -5
  184. package/node/NativeSelect/nativeSelectClasses.js +1 -1
  185. package/node/Select/Select.js +14 -9
  186. package/node/Select/SelectInput.js +14 -4
  187. package/node/Select/selectClasses.js +1 -1
  188. package/node/Slider/Slider.js +6 -6
  189. package/node/Stack/Stack.js +11 -1
  190. package/node/Unstable_Grid2/Grid2.js +1 -0
  191. package/node/index.js +1 -1
  192. package/package.json +5 -5
  193. package/styles/CssVarsProvider.d.ts +15 -15
  194. package/styles/excludeVariablesFromRoot.d.ts +5 -5
  195. package/styles/getOverlayAlpha.d.ts +2 -2
  196. package/styles/shouldSkipGeneratingVar.d.ts +1 -1
  197. package/transitions/index.d.ts +1 -1
  198. package/transitions/transition.d.ts +13 -13
  199. package/transitions/utils.d.ts +23 -23
  200. package/types/OverridableComponentAugmentation.d.ts +31 -31
  201. package/umd/material-ui.development.js +142 -102
  202. package/umd/material-ui.production.min.js +20 -20
  203. package/useMediaQuery/useMediaQuery.d.ts +46 -46
  204. package/useTouchRipple/index.d.ts +1 -1
  205. package/useTouchRipple/useTouchRipple.d.ts +28 -28
  206. package/utils/getScrollbarSize.d.ts +2 -2
  207. package/utils/ownerDocument.d.ts +2 -2
  208. package/utils/ownerWindow.d.ts +2 -2
  209. package/utils/setRef.d.ts +2 -2
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/material v5.11.14
2
+ * @mui/material v5.11.16
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -6450,36 +6450,6 @@
6450
6450
  });
6451
6451
  compose(width, maxWidth, minWidth, height, maxHeight, minHeight, boxSizing);
6452
6452
 
6453
- const createFontStyleFunction = prop => {
6454
- return props => {
6455
- if (props[prop] !== undefined && props[prop] !== null) {
6456
- const styleFromPropValue = propValue => {
6457
- var _props$theme$typograp;
6458
- // fetch the value directly defined in the theme, like fontWeightLight
6459
- let value = (_props$theme$typograp = props.theme.typography) == null ? void 0 : _props$theme$typograp[propValue];
6460
- if (typeof value === 'object') {
6461
- // typography variant was pulled, but these props can't be an object
6462
- value = null;
6463
- }
6464
- if (!value) {
6465
- var _props$theme$typograp2, _props$prop;
6466
- // fetch fontWeightLight when the value is 'light'
6467
- value = (_props$theme$typograp2 = props.theme.typography) == null ? void 0 : _props$theme$typograp2[`${prop}${props[prop] === 'default' || props[prop] === prop ? '' : capitalize((_props$prop = props[prop]) == null ? void 0 : _props$prop.toString())}`];
6468
- }
6469
- if (!value) {
6470
- var _props$theme$typograp3, _props$theme$typograp4, _props$theme$typograp5;
6471
- // fetch the value from the typography variant or default to the propValue
6472
- value = (_props$theme$typograp3 = (_props$theme$typograp4 = props.theme.typography) == null ? void 0 : (_props$theme$typograp5 = _props$theme$typograp4[propValue]) == null ? void 0 : _props$theme$typograp5[prop]) != null ? _props$theme$typograp3 : propValue;
6473
- }
6474
- return {
6475
- [prop]: value
6476
- };
6477
- };
6478
- return handleBreakpoints(props, props[prop], styleFromPropValue);
6479
- }
6480
- return null;
6481
- };
6482
- };
6483
6453
  const defaultSxConfig = {
6484
6454
  // borders
6485
6455
  border: {
@@ -6738,19 +6708,16 @@
6738
6708
  boxSizing: {},
6739
6709
  // typography
6740
6710
  fontFamily: {
6741
- themeKey: 'typography',
6742
- style: createFontStyleFunction('fontFamily')
6711
+ themeKey: 'typography'
6743
6712
  },
6744
6713
  fontSize: {
6745
- themeKey: 'typography',
6746
- style: createFontStyleFunction('fontSize')
6714
+ themeKey: 'typography'
6747
6715
  },
6748
6716
  fontStyle: {
6749
6717
  themeKey: 'typography'
6750
6718
  },
6751
6719
  fontWeight: {
6752
- themeKey: 'typography',
6753
- style: createFontStyleFunction('fontWeight')
6720
+ themeKey: 'typography'
6754
6721
  },
6755
6722
  letterSpacing: {},
6756
6723
  textTransform: {},
@@ -6794,6 +6761,11 @@
6794
6761
  if (val == null) {
6795
6762
  return null;
6796
6763
  }
6764
+ if (themeKey === 'typography' && val === 'inherit') {
6765
+ return {
6766
+ [prop]: val
6767
+ };
6768
+ }
6797
6769
  const themeMapping = getPath(theme, themeKey) || {};
6798
6770
  if (style) {
6799
6771
  return style(props);
@@ -8735,12 +8707,18 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8735
8707
  return Container;
8736
8708
  }
8737
8709
 
8710
+ function appendLevel(level) {
8711
+ if (!level) {
8712
+ return '';
8713
+ }
8714
+ return `Level${level}`;
8715
+ }
8738
8716
  function isNestedContainer(ownerState) {
8739
8717
  return ownerState.level > 0 && ownerState.container;
8740
8718
  }
8741
8719
  function createGetSelfSpacing(ownerState) {
8742
8720
  return function getSelfSpacing(axis) {
8743
- return `var(--Grid-${axis}Spacing${ownerState.level || ''})`;
8721
+ return `var(--Grid-${axis}Spacing${appendLevel(ownerState.level)})`;
8744
8722
  };
8745
8723
  }
8746
8724
  function createGetParentSpacing(ownerState) {
@@ -8748,9 +8726,15 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8748
8726
  if (ownerState.level === 0) {
8749
8727
  return `var(--Grid-${axis}Spacing)`;
8750
8728
  }
8751
- return `var(--Grid-${axis}Spacing${ownerState.level - 1 || ''})`;
8729
+ return `var(--Grid-${axis}Spacing${appendLevel(ownerState.level - 1)})`;
8752
8730
  };
8753
8731
  }
8732
+ function getParentColumns(ownerState) {
8733
+ if (ownerState.level === 0) {
8734
+ return `var(--Grid-columns)`;
8735
+ }
8736
+ return `var(--Grid-columns${appendLevel(ownerState.level - 1)})`;
8737
+ }
8754
8738
  const filterBreakpointKeys = (breakpointsKeys, responsiveKeys) => breakpointsKeys.filter(key => responsiveKeys.includes(key));
8755
8739
  const traverseBreakpoints = (breakpoints, responsive, iterator) => {
8756
8740
  const smallestBreakpoint = breakpoints.keys[0]; // the keys is sorted from smallest to largest by `createBreakpoints`.
@@ -8821,7 +8805,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8821
8805
  style = {
8822
8806
  flexGrow: 0,
8823
8807
  flexBasis: 'auto',
8824
- width: `calc(100% * ${value} / var(--Grid-columns)${isNestedContainer(ownerState) ? ` + ${getSelfSpacing('column')}` : ''})`
8808
+ width: `calc(100% * ${value} / ${getParentColumns(ownerState)}${isNestedContainer(ownerState) ? ` + ${getSelfSpacing('column')}` : ''})`
8825
8809
  };
8826
8810
  }
8827
8811
  appendStyle(styles, style);
@@ -8842,7 +8826,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8842
8826
  }
8843
8827
  if (typeof value === 'number') {
8844
8828
  style = {
8845
- marginLeft: value === 0 ? '0px' : `calc(100% * ${value} / var(--Grid-columns))`
8829
+ marginLeft: value === 0 ? '0px' : `calc(100% * ${value} / ${getParentColumns(ownerState)})`
8846
8830
  };
8847
8831
  }
8848
8832
  appendStyle(styles, style);
@@ -8856,12 +8840,14 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8856
8840
  if (!ownerState.container) {
8857
8841
  return {};
8858
8842
  }
8859
- const styles = {
8843
+ const styles = isNestedContainer(ownerState) ? {
8844
+ [`--Grid-columns${appendLevel(ownerState.level)}`]: getParentColumns(ownerState)
8845
+ } : {
8860
8846
  '--Grid-columns': 12
8861
8847
  };
8862
8848
  traverseBreakpoints(theme.breakpoints, ownerState.columns, (appendStyle, value) => {
8863
8849
  appendStyle(styles, {
8864
- '--Grid-columns': value
8850
+ [`--Grid-columns${appendLevel(ownerState.level)}`]: value
8865
8851
  });
8866
8852
  });
8867
8853
  return styles;
@@ -8877,12 +8863,12 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8877
8863
  const styles = isNestedContainer(ownerState) ? {
8878
8864
  // Set the default spacing as its parent spacing.
8879
8865
  // It will be overridden if spacing props are provided
8880
- [`--Grid-rowSpacing${ownerState.level || ''}`]: getParentSpacing('row')
8866
+ [`--Grid-rowSpacing${appendLevel(ownerState.level)}`]: getParentSpacing('row')
8881
8867
  } : {};
8882
8868
  traverseBreakpoints(theme.breakpoints, ownerState.rowSpacing, (appendStyle, value) => {
8883
8869
  var _theme$spacing;
8884
8870
  appendStyle(styles, {
8885
- [`--Grid-rowSpacing${ownerState.level || ''}`]: typeof value === 'string' ? value : (_theme$spacing = theme.spacing) == null ? void 0 : _theme$spacing.call(theme, value)
8871
+ [`--Grid-rowSpacing${appendLevel(ownerState.level)}`]: typeof value === 'string' ? value : (_theme$spacing = theme.spacing) == null ? void 0 : _theme$spacing.call(theme, value)
8886
8872
  });
8887
8873
  });
8888
8874
  return styles;
@@ -8898,12 +8884,12 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8898
8884
  const styles = isNestedContainer(ownerState) ? {
8899
8885
  // Set the default spacing as its parent spacing.
8900
8886
  // It will be overridden if spacing props are provided
8901
- [`--Grid-columnSpacing${ownerState.level || ''}`]: getParentSpacing('column')
8887
+ [`--Grid-columnSpacing${appendLevel(ownerState.level)}`]: getParentSpacing('column')
8902
8888
  } : {};
8903
8889
  traverseBreakpoints(theme.breakpoints, ownerState.columnSpacing, (appendStyle, value) => {
8904
8890
  var _theme$spacing2;
8905
8891
  appendStyle(styles, {
8906
- [`--Grid-columnSpacing${ownerState.level || ''}`]: typeof value === 'string' ? value : (_theme$spacing2 = theme.spacing) == null ? void 0 : _theme$spacing2.call(theme, value)
8892
+ [`--Grid-columnSpacing${appendLevel(ownerState.level)}`]: typeof value === 'string' ? value : (_theme$spacing2 = theme.spacing) == null ? void 0 : _theme$spacing2.call(theme, value)
8907
8893
  });
8908
8894
  });
8909
8895
  return styles;
@@ -9134,7 +9120,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
9134
9120
  return Grid;
9135
9121
  }
9136
9122
 
9137
- const _excluded$2e = ["component", "direction", "spacing", "divider", "children", "className"];
9123
+ const _excluded$2e = ["component", "direction", "spacing", "divider", "children", "className", "useFlexGap"];
9138
9124
  const defaultTheme$4 = createTheme$1();
9139
9125
  // widening Theme to any so that the consumer can own the theme structure.
9140
9126
  const defaultCreateStyledComponent = systemStyled('div', {
@@ -9218,6 +9204,11 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
9218
9204
  });
9219
9205
  }
9220
9206
  const styleFromPropValue = (propValue, breakpoint) => {
9207
+ if (ownerState.useFlexGap) {
9208
+ return {
9209
+ gap: getValue(transformer, propValue)
9210
+ };
9211
+ }
9221
9212
  return {
9222
9213
  '& > :not(style) + :not(style)': {
9223
9214
  margin: 0,
@@ -9255,12 +9246,14 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
9255
9246
  spacing = 0,
9256
9247
  divider,
9257
9248
  children,
9258
- className
9249
+ className,
9250
+ useFlexGap = false
9259
9251
  } = props,
9260
9252
  other = _objectWithoutPropertiesLoose(props, _excluded$2e);
9261
9253
  const ownerState = {
9262
9254
  direction,
9263
- spacing
9255
+ spacing,
9256
+ useFlexGap
9264
9257
  };
9265
9258
  const classes = useUtilityClasses();
9266
9259
  return /*#__PURE__*/jsxRuntime_1(StackRoot, _extends({
@@ -10745,7 +10738,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
10745
10738
  *
10746
10739
  * API:
10747
10740
  *
10748
- * - [useBadge API](https://mui.com/base/api/use-badge/)
10741
+ * - [useBadge API](https://mui.com/base/react-badge/hooks-api/#use-badge)
10749
10742
  */
10750
10743
  function useBadge(parameters) {
10751
10744
  const {
@@ -10791,7 +10784,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
10791
10784
  *
10792
10785
  * API:
10793
10786
  *
10794
- * - [ClickAwayListener API](https://mui.com/base/api/click-away-listener/)
10787
+ * - [ClickAwayListener API](https://mui.com/base/react-click-away-listener/components-api/#click-away-listener)
10795
10788
  */
10796
10789
  function ClickAwayListener(props) {
10797
10790
  const {
@@ -11019,7 +11012,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
11019
11012
  *
11020
11013
  * API:
11021
11014
  *
11022
- * - [FocusTrap API](https://mui.com/base/api/focus-trap/)
11015
+ * - [FocusTrap API](https://mui.com/base/react-focus-trap/components-api/#focus-trap)
11023
11016
  */
11024
11017
  function FocusTrap(props) {
11025
11018
  const {
@@ -11429,7 +11422,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
11429
11422
  function getUAString() {
11430
11423
  var uaData = navigator.userAgentData;
11431
11424
 
11432
- if (uaData != null && uaData.brands) {
11425
+ if (uaData != null && uaData.brands && Array.isArray(uaData.brands)) {
11433
11426
  return uaData.brands.map(function (item) {
11434
11427
  return item.brand + "/" + item.version;
11435
11428
  }).join(' ');
@@ -11757,10 +11750,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
11757
11750
  // Zooming can change the DPR, but it seems to report a value that will
11758
11751
  // cleanly divide the values into the appropriate subpixels.
11759
11752
 
11760
- function roundOffsetsByDPR(_ref) {
11753
+ function roundOffsetsByDPR(_ref, win) {
11761
11754
  var x = _ref.x,
11762
11755
  y = _ref.y;
11763
- var win = window;
11764
11756
  var dpr = win.devicePixelRatio || 1;
11765
11757
  return {
11766
11758
  x: round$1(x * dpr) / dpr || 0,
@@ -11843,7 +11835,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
11843
11835
  var _ref4 = roundOffsets === true ? roundOffsetsByDPR({
11844
11836
  x: x,
11845
11837
  y: y
11846
- }) : {
11838
+ }, getWindow(popper)) : {
11847
11839
  x: x,
11848
11840
  y: y
11849
11841
  };
@@ -13254,7 +13246,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
13254
13246
  *
13255
13247
  * API:
13256
13248
  *
13257
- * - [Portal API](https://mui.com/base/api/portal/)
13249
+ * - [Portal API](https://mui.com/base/react-portal/components-api/#portal)
13258
13250
  */
13259
13251
  const Portal = /*#__PURE__*/React__namespace.forwardRef(function Portal(props, ref) {
13260
13252
  const {
@@ -13493,7 +13485,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
13493
13485
  *
13494
13486
  * API:
13495
13487
  *
13496
- * - [PopperUnstyled API](https://mui.com/base/api/popper-unstyled/)
13488
+ * - [PopperUnstyled API](https://mui.com/base/react-popper/components-api/#popper-unstyled)
13497
13489
  */
13498
13490
  const PopperUnstyled = /*#__PURE__*/React__namespace.forwardRef(function PopperUnstyled(props, ref) {
13499
13491
  const {
@@ -13955,7 +13947,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
13955
13947
  *
13956
13948
  * API:
13957
13949
  *
13958
- * - [ModalUnstyled API](https://mui.com/base/api/modal-unstyled/)
13950
+ * - [ModalUnstyled API](https://mui.com/base/react-modal/components-api/#modal-unstyled)
13959
13951
  */
13960
13952
  const ModalUnstyled = /*#__PURE__*/React__namespace.forwardRef(function ModalUnstyled(props, forwardedRef) {
13961
13953
  var _props$ariaHidden, _ref;
@@ -14295,7 +14287,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
14295
14287
  *
14296
14288
  * API:
14297
14289
  *
14298
- * - [NoSsr API](https://mui.com/base/api/no-ssr/)
14290
+ * - [NoSsr API](https://mui.com/base/react-no-ssr/components-api/#no-ssr)
14299
14291
  */
14300
14292
  function NoSsr(props) {
14301
14293
  const {
@@ -14496,7 +14488,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
14496
14488
  *
14497
14489
  * API:
14498
14490
  *
14499
- * - [useSlider API](https://mui.com/base/api/use-slider/)
14491
+ * - [useSlider API](https://mui.com/base/react-slider/hooks-api/#use-slider)
14500
14492
  */
14501
14493
  function useSlider(parameters) {
14502
14494
  const {
@@ -14960,7 +14952,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
14960
14952
  *
14961
14953
  * API:
14962
14954
  *
14963
- * - [useSnackbar API](https://mui.com/base/api/use-snackbar/)
14955
+ * - [useSnackbar API](https://mui.com/base/react-snackbar/hooks-api/#use-snackbar)
14964
14956
  */
14965
14957
  function useSnackbar(parameters) {
14966
14958
  const {
@@ -15116,7 +15108,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
15116
15108
  *
15117
15109
  * API:
15118
15110
  *
15119
- * - [TextareaAutosize API](https://mui.com/base/api/textarea-autosize/)
15111
+ * - [TextareaAutosize API](https://mui.com/base/react-textarea-autosize/components-api/#textarea-autosize)
15120
15112
  */
15121
15113
  const TextareaAutosize = /*#__PURE__*/React__namespace.forwardRef(function TextareaAutosize(props, ref) {
15122
15114
  const {
@@ -16116,12 +16108,15 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
16116
16108
  handleOpen(event);
16117
16109
  }
16118
16110
  };
16119
- const handleOptionMouseOver = event => {
16120
- setHighlightedIndex({
16121
- event,
16122
- index: Number(event.currentTarget.getAttribute('data-option-index')),
16123
- reason: 'mouse'
16124
- });
16111
+ const handleOptionMouseMove = event => {
16112
+ const index = Number(event.currentTarget.getAttribute('data-option-index'));
16113
+ if (highlightedIndexRef.current !== index) {
16114
+ setHighlightedIndex({
16115
+ event,
16116
+ index,
16117
+ reason: 'mouse'
16118
+ });
16119
+ }
16125
16120
  };
16126
16121
  const handleOptionTouchStart = event => {
16127
16122
  setHighlightedIndex({
@@ -16275,7 +16270,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
16275
16270
  tabIndex: -1,
16276
16271
  role: 'option',
16277
16272
  id: `${id}-option-${index}`,
16278
- onMouseOver: handleOptionMouseOver,
16273
+ onMouseMove: handleOptionMouseMove,
16279
16274
  onClick: handleOptionClick,
16280
16275
  onTouchStart: handleOptionTouchStart,
16281
16276
  'data-option-index': index,
@@ -20814,7 +20809,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
20814
20809
  theme,
20815
20810
  ownerState
20816
20811
  }) => {
20817
- const deleteIconColor = alpha(theme.palette.text.primary, 0.26);
20818
20812
  const textColor = theme.palette.mode === 'light' ? theme.palette.grey[700] : theme.palette.grey[300];
20819
20813
  return _extends({
20820
20814
  maxWidth: '100%',
@@ -20881,12 +20875,12 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
20881
20875
  })),
20882
20876
  [`& .${chipClasses$1.deleteIcon}`]: _extends({
20883
20877
  WebkitTapHighlightColor: 'transparent',
20884
- color: theme.vars ? `rgba(${theme.vars.palette.text.primaryChannel} / 0.26)` : deleteIconColor,
20878
+ color: theme.vars ? `rgba(${theme.vars.palette.text.primaryChannel} / 0.26)` : alpha(theme.palette.text.primary, 0.26),
20885
20879
  fontSize: 22,
20886
20880
  cursor: 'pointer',
20887
20881
  margin: '0 5px 0 -6px',
20888
20882
  '&:hover': {
20889
- color: theme.vars ? `rgba(${theme.vars.palette.text.primaryChannel} / 0.4)` : alpha(deleteIconColor, 0.4)
20883
+ color: theme.vars ? `rgba(${theme.vars.palette.text.primaryChannel} / 0.4)` : alpha(theme.palette.text.primary, 0.4)
20890
20884
  }
20891
20885
  }, ownerState.size === 'small' && {
20892
20886
  fontSize: 16,
@@ -22463,6 +22457,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
22463
22457
  }));
22464
22458
  const hasClearIcon = !disableClearable && !disabled && dirty && !readOnly;
22465
22459
  const hasPopupIcon = (!freeSolo || forcePopupIcon === true) && forcePopupIcon !== false;
22460
+ const {
22461
+ onMouseDown: handleInputMouseDown
22462
+ } = getInputProps();
22466
22463
 
22467
22464
  // If you modify this, make sure to keep the `AutocompleteOwnerState` type in sync.
22468
22465
  const ownerState = _extends({}, props, {
@@ -22553,7 +22550,12 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
22553
22550
  InputProps: _extends({
22554
22551
  ref: setAnchorEl,
22555
22552
  className: classes.inputRoot,
22556
- startAdornment
22553
+ startAdornment,
22554
+ onClick: event => {
22555
+ if (event.target === event.currentTarget) {
22556
+ handleInputMouseDown(event);
22557
+ }
22558
+ }
22557
22559
  }, (hasClearIcon || hasPopupIcon) && {
22558
22560
  endAdornment: /*#__PURE__*/jsxRuntime_2(AutocompleteEndAdornment, {
22559
22561
  className: classes.endAdornment,
@@ -22653,6 +22655,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
22653
22655
  * If `true`, the selected option becomes the value of the input
22654
22656
  * when the Autocomplete loses focus unless the user chooses
22655
22657
  * a different option or changes the character string in the input.
22658
+ *
22659
+ * When using `freeSolo` mode, the typed value will be the input value
22660
+ * if the Autocomplete loses focus without highlighting an option.
22656
22661
  * @default false
22657
22662
  */
22658
22663
  autoSelect: PropTypes.bool,
@@ -25569,6 +25574,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
25569
25574
  }) => ({
25570
25575
  display: 'block',
25571
25576
  textAlign: 'inherit',
25577
+ borderRadius: 'inherit',
25578
+ // for Safari to work https://github.com/mui/material-ui/issues/36285.
25572
25579
  width: '100%',
25573
25580
  [`&:hover .${cardActionAreaClasses$1.focusHighlight}`]: {
25574
25581
  opacity: (theme.vars || theme).palette.action.hoverOpacity,
@@ -31015,6 +31022,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
31015
31022
  const Grid2 = createGrid({
31016
31023
  createStyledComponent: styled$1('div', {
31017
31024
  name: 'MuiGrid2',
31025
+ slot: 'Root',
31018
31026
  overridesResolver: (props, styles) => styles.root
31019
31027
  }),
31020
31028
  componentName: 'MuiGrid2',
@@ -36468,20 +36476,21 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
36468
36476
  function getNativeSelectUtilityClasses(slot) {
36469
36477
  return generateUtilityClass('MuiNativeSelect', slot);
36470
36478
  }
36471
- const nativeSelectClasses = generateUtilityClasses('MuiNativeSelect', ['root', 'select', 'multiple', 'filled', 'outlined', 'standard', 'disabled', 'icon', 'iconOpen', 'iconFilled', 'iconOutlined', 'iconStandard', 'nativeInput']);
36479
+ const nativeSelectClasses = generateUtilityClasses('MuiNativeSelect', ['root', 'select', 'multiple', 'filled', 'outlined', 'standard', 'disabled', 'icon', 'iconOpen', 'iconFilled', 'iconOutlined', 'iconStandard', 'nativeInput', 'error']);
36472
36480
  var nativeSelectClasses$1 = nativeSelectClasses;
36473
36481
 
36474
- const _excluded$O = ["className", "disabled", "IconComponent", "inputRef", "variant"];
36482
+ const _excluded$O = ["className", "disabled", "error", "IconComponent", "inputRef", "variant"];
36475
36483
  const useUtilityClasses$F = ownerState => {
36476
36484
  const {
36477
36485
  classes,
36478
36486
  variant,
36479
36487
  disabled,
36480
36488
  multiple,
36481
- open
36489
+ open,
36490
+ error
36482
36491
  } = ownerState;
36483
36492
  const slots = {
36484
- select: ['select', variant, disabled && 'disabled', multiple && 'multiple'],
36493
+ select: ['select', variant, disabled && 'disabled', multiple && 'multiple', error && 'error'],
36485
36494
  icon: ['icon', `icon${capitalize(variant)}`, open && 'iconOpen', disabled && 'disabled']
36486
36495
  };
36487
36496
  return composeClasses(slots, getNativeSelectUtilityClasses, classes);
@@ -36548,7 +36557,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
36548
36557
  const {
36549
36558
  ownerState
36550
36559
  } = props;
36551
- return [styles.select, styles[ownerState.variant], {
36560
+ return [styles.select, styles[ownerState.variant], ownerState.error && styles.error, {
36552
36561
  [`&.${nativeSelectClasses$1.multiple}`]: styles.multiple
36553
36562
  }];
36554
36563
  }
@@ -36594,6 +36603,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
36594
36603
  const {
36595
36604
  className,
36596
36605
  disabled,
36606
+ error,
36597
36607
  IconComponent,
36598
36608
  inputRef,
36599
36609
  variant = 'standard'
@@ -36601,7 +36611,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
36601
36611
  other = _objectWithoutPropertiesLoose(props, _excluded$O);
36602
36612
  const ownerState = _extends({}, props, {
36603
36613
  disabled,
36604
- variant
36614
+ variant,
36615
+ error
36605
36616
  });
36606
36617
  const classes = useUtilityClasses$F(ownerState);
36607
36618
  return /*#__PURE__*/jsxRuntime_2(React__namespace.Fragment, {
@@ -36636,6 +36647,10 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
36636
36647
  * If `true`, the select is disabled.
36637
36648
  */
36638
36649
  disabled: PropTypes.bool,
36650
+ /**
36651
+ * If `true`, the `select input` will indicate an error.
36652
+ */
36653
+ error: PropTypes.bool,
36639
36654
  /**
36640
36655
  * The icon that displays the arrow.
36641
36656
  */
@@ -39077,11 +39092,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
39077
39092
  function getSelectUtilityClasses(slot) {
39078
39093
  return generateUtilityClass('MuiSelect', slot);
39079
39094
  }
39080
- const selectClasses = generateUtilityClasses('MuiSelect', ['select', 'multiple', 'filled', 'outlined', 'standard', 'disabled', 'focused', 'icon', 'iconOpen', 'iconFilled', 'iconOutlined', 'iconStandard', 'nativeInput']);
39095
+ const selectClasses = generateUtilityClasses('MuiSelect', ['select', 'multiple', 'filled', 'outlined', 'standard', 'disabled', 'focused', 'icon', 'iconOpen', 'iconFilled', 'iconOutlined', 'iconStandard', 'nativeInput', 'error']);
39081
39096
  var selectClasses$1 = selectClasses;
39082
39097
 
39083
39098
  var _span;
39084
- const _excluded$D = ["aria-describedby", "aria-label", "autoFocus", "autoWidth", "children", "className", "defaultOpen", "defaultValue", "disabled", "displayEmpty", "IconComponent", "inputRef", "labelId", "MenuProps", "multiple", "name", "onBlur", "onChange", "onClose", "onFocus", "onOpen", "open", "readOnly", "renderValue", "SelectDisplayProps", "tabIndex", "type", "value", "variant"];
39099
+ const _excluded$D = ["aria-describedby", "aria-label", "autoFocus", "autoWidth", "children", "className", "defaultOpen", "defaultValue", "disabled", "displayEmpty", "error", "IconComponent", "inputRef", "labelId", "MenuProps", "multiple", "name", "onBlur", "onChange", "onClose", "onFocus", "onOpen", "open", "readOnly", "renderValue", "SelectDisplayProps", "tabIndex", "type", "value", "variant"];
39085
39100
  const SelectSelect = styled$1('div', {
39086
39101
  name: 'MuiSelect',
39087
39102
  slot: 'Select',
@@ -39095,6 +39110,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
39095
39110
  [`&.${selectClasses$1.select}`]: styles.select
39096
39111
  }, {
39097
39112
  [`&.${selectClasses$1.select}`]: styles[ownerState.variant]
39113
+ }, {
39114
+ [`&.${selectClasses$1.error}`]: styles.error
39098
39115
  }, {
39099
39116
  [`&.${selectClasses$1.multiple}`]: styles.multiple
39100
39117
  }];
@@ -39152,10 +39169,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
39152
39169
  variant,
39153
39170
  disabled,
39154
39171
  multiple,
39155
- open
39172
+ open,
39173
+ error
39156
39174
  } = ownerState;
39157
39175
  const slots = {
39158
- select: ['select', variant, disabled && 'disabled', multiple && 'multiple'],
39176
+ select: ['select', variant, disabled && 'disabled', multiple && 'multiple', error && 'error'],
39159
39177
  icon: ['icon', `icon${capitalize(variant)}`, open && 'iconOpen', disabled && 'disabled'],
39160
39178
  nativeInput: ['nativeInput']
39161
39179
  };
@@ -39177,6 +39195,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
39177
39195
  defaultValue,
39178
39196
  disabled,
39179
39197
  displayEmpty,
39198
+ error = false,
39180
39199
  IconComponent,
39181
39200
  inputRef: inputRefProp,
39182
39201
  labelId,
@@ -39482,7 +39501,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
39482
39501
  const ownerState = _extends({}, props, {
39483
39502
  variant,
39484
39503
  value,
39485
- open
39504
+ open,
39505
+ error
39486
39506
  });
39487
39507
  const classes = useUtilityClasses$x(ownerState);
39488
39508
  return /*#__PURE__*/jsxRuntime_2(React__namespace.Fragment, {
@@ -39512,6 +39532,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
39512
39532
  children: "\u200B"
39513
39533
  })) : display
39514
39534
  })), /*#__PURE__*/jsxRuntime_1(SelectNativeInput, _extends({
39535
+ "aria-invalid": error,
39515
39536
  value: Array.isArray(value) ? value.join(',') : value,
39516
39537
  name: name,
39517
39538
  ref: inputRef,
@@ -39603,6 +39624,10 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
39603
39624
  * If `true`, the selected item is displayed even if its value is empty.
39604
39625
  */
39605
39626
  displayEmpty: PropTypes.bool,
39627
+ /**
39628
+ * If `true`, the `select input` will indicate an error.
39629
+ */
39630
+ error: PropTypes.bool,
39606
39631
  /**
39607
39632
  * The icon that displays the arrow.
39608
39633
  */
@@ -39697,7 +39722,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
39697
39722
  } ;
39698
39723
  var SelectInput$1 = SelectInput;
39699
39724
 
39700
- var _StyledInput, _StyledFilledInput;
39701
39725
  const _excluded$C = ["autoWidth", "children", "classes", "className", "defaultOpen", "displayEmpty", "IconComponent", "id", "input", "inputProps", "label", "labelId", "MenuProps", "multiple", "native", "onClose", "onOpen", "open", "renderValue", "SelectDisplayProps", "variant"];
39702
39726
  const useUtilityClasses$w = ownerState => {
39703
39727
  const {
@@ -39748,21 +39772,26 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
39748
39772
  const fcs = formControlState({
39749
39773
  props,
39750
39774
  muiFormControl,
39751
- states: ['variant']
39775
+ states: ['variant', 'error']
39752
39776
  });
39753
39777
  const variant = fcs.variant || variantProp;
39754
- const InputComponent = input || {
39755
- standard: _StyledInput || (_StyledInput = /*#__PURE__*/jsxRuntime_1(StyledInput, {})),
39756
- outlined: /*#__PURE__*/jsxRuntime_1(StyledOutlinedInput, {
39757
- label: label
39758
- }),
39759
- filled: _StyledFilledInput || (_StyledFilledInput = /*#__PURE__*/jsxRuntime_1(StyledFilledInput, {}))
39760
- }[variant];
39761
39778
  const ownerState = _extends({}, props, {
39762
39779
  variant,
39763
39780
  classes: classesProp
39764
39781
  });
39765
39782
  const classes = useUtilityClasses$w(ownerState);
39783
+ const InputComponent = input || {
39784
+ standard: /*#__PURE__*/jsxRuntime_1(StyledInput, {
39785
+ ownerState: ownerState
39786
+ }),
39787
+ outlined: /*#__PURE__*/jsxRuntime_1(StyledOutlinedInput, {
39788
+ label: label,
39789
+ ownerState: ownerState
39790
+ }),
39791
+ filled: /*#__PURE__*/jsxRuntime_1(StyledFilledInput, {
39792
+ ownerState: ownerState
39793
+ })
39794
+ }[variant];
39766
39795
  const inputComponentRef = useForkRef(ref, InputComponent.ref);
39767
39796
  return /*#__PURE__*/jsxRuntime_1(React__namespace.Fragment, {
39768
39797
  children: /*#__PURE__*/React__namespace.cloneElement(InputComponent, _extends({
@@ -39771,6 +39800,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
39771
39800
  inputComponent,
39772
39801
  inputProps: _extends({
39773
39802
  children,
39803
+ error: fcs.error,
39774
39804
  IconComponent,
39775
39805
  variant,
39776
39806
  type: undefined,
@@ -40476,7 +40506,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
40476
40506
  ownerState
40477
40507
  }) => _extends({
40478
40508
  [`&.${sliderClasses$1.valueLabelOpen}`]: {
40479
- transform: 'translateY(-100%) scale(1)'
40509
+ transform: `${ownerState.orientation === 'vertical' ? 'translateY(-50%)' : 'translateY(-100%)'} scale(1)`
40480
40510
  },
40481
40511
  zIndex: 1,
40482
40512
  whiteSpace: 'nowrap'
@@ -40485,7 +40515,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
40485
40515
  transition: theme.transitions.create(['transform'], {
40486
40516
  duration: theme.transitions.duration.shortest
40487
40517
  }),
40488
- transform: 'translateY(-100%) scale(0)',
40518
+ transform: `${ownerState.orientation === 'vertical' ? 'translateY(-50%)' : 'translateY(-100%)'} scale(0)`,
40489
40519
  position: 'absolute',
40490
40520
  backgroundColor: (theme.vars || theme).palette.grey[600],
40491
40521
  borderRadius: 2,
@@ -40508,18 +40538,18 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
40508
40538
  left: '50%'
40509
40539
  }
40510
40540
  }, ownerState.orientation === 'vertical' && {
40511
- right: '30px',
40512
- top: '24px',
40541
+ right: ownerState.size === 'small' ? '20px' : '30px',
40542
+ top: '50%',
40513
40543
  transformOrigin: 'right center',
40514
40544
  '&:before': {
40515
40545
  position: 'absolute',
40516
40546
  content: '""',
40517
40547
  width: 8,
40518
40548
  height: 8,
40519
- transform: 'translate(-50%, 50%) rotate(45deg)',
40549
+ transform: 'translate(-50%, -50%) rotate(45deg)',
40520
40550
  backgroundColor: 'inherit',
40521
40551
  right: '-20%',
40522
- top: '25%'
40552
+ top: '50%'
40523
40553
  }
40524
40554
  }, ownerState.size === 'small' && {
40525
40555
  fontSize: theme.typography.pxToRem(12),
@@ -43411,7 +43441,17 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
43411
43441
  /**
43412
43442
  * The system prop, which allows defining system overrides as well as additional CSS styles.
43413
43443
  */
43414
- sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
43444
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
43445
+ /**
43446
+ * If `true`, the CSS flexbox `gap` is used instead of applying `margin` to children.
43447
+ *
43448
+ * While CSS `gap` removes the [known limitations](https://mui.com/joy-ui/react-stack#limitations),
43449
+ * it is not fully supported in some browsers. We recommend checking https://caniuse.com/?search=flex%20gap before using this flag.
43450
+ *
43451
+ * To enable this flag globally, follow the [theme's default props](https://mui.com/material-ui/customization/theme-components/#default-props) configuration.
43452
+ * @default false
43453
+ */
43454
+ useFlexGap: PropTypes.bool
43415
43455
  } ;
43416
43456
  var Stack$1 = Stack;
43417
43457