@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,20 +1,20 @@
1
- export interface MenuItemClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** State class applied to the root element if keyboard focused. */
5
- focusVisible: string;
6
- /** Styles applied to the root element if dense. */
7
- dense: string;
8
- /** State class applied to the root element if `disabled={true}`. */
9
- disabled: string;
10
- /** Styles applied to the root element if `divider={true}`. */
11
- divider: string;
12
- /** Styles applied to the inner `component` element unless `disableGutters={true}`. */
13
- gutters: string;
14
- /** State class applied to the root element if `selected={true}`. */
15
- selected: string;
16
- }
17
- export type MenuItemClassKey = keyof MenuItemClasses;
18
- export declare function getMenuItemUtilityClass(slot: string): string;
19
- declare const menuItemClasses: MenuItemClasses;
20
- export default menuItemClasses;
1
+ export interface MenuItemClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** State class applied to the root element if keyboard focused. */
5
+ focusVisible: string;
6
+ /** Styles applied to the root element if dense. */
7
+ dense: string;
8
+ /** State class applied to the root element if `disabled={true}`. */
9
+ disabled: string;
10
+ /** Styles applied to the root element if `divider={true}`. */
11
+ divider: string;
12
+ /** Styles applied to the inner `component` element unless `disableGutters={true}`. */
13
+ gutters: string;
14
+ /** State class applied to the root element if `selected={true}`. */
15
+ selected: string;
16
+ }
17
+ export type MenuItemClassKey = keyof MenuItemClasses;
18
+ export declare function getMenuItemUtilityClass(slot: string): string;
19
+ declare const menuItemClasses: MenuItemClasses;
20
+ export default menuItemClasses;
@@ -1,22 +1,22 @@
1
- export interface MobileStepperClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the root element if `position="bottom"`. */
5
- positionBottom: string;
6
- /** Styles applied to the root element if `position="top"`. */
7
- positionTop: string;
8
- /** Styles applied to the root element if `position="static"`. */
9
- positionStatic: string;
10
- /** Styles applied to the dots container if `variant="dots"`. */
11
- dots: string;
12
- /** Styles applied to each dot if `variant="dots"`. */
13
- dot: string;
14
- /** Styles applied to a dot if `variant="dots"` and this is the active step. */
15
- dotActive: string;
16
- /** Styles applied to the Linear Progress component if `variant="progress"`. */
17
- progress: string;
18
- }
19
- export type MobileStepperClassKey = keyof MobileStepperClasses;
20
- export declare function getMobileStepperUtilityClass(slot: string): string;
21
- declare const mobileStepperClasses: MobileStepperClasses;
22
- export default mobileStepperClasses;
1
+ export interface MobileStepperClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the root element if `position="bottom"`. */
5
+ positionBottom: string;
6
+ /** Styles applied to the root element if `position="top"`. */
7
+ positionTop: string;
8
+ /** Styles applied to the root element if `position="static"`. */
9
+ positionStatic: string;
10
+ /** Styles applied to the dots container if `variant="dots"`. */
11
+ dots: string;
12
+ /** Styles applied to each dot if `variant="dots"`. */
13
+ dot: string;
14
+ /** Styles applied to a dot if `variant="dots"` and this is the active step. */
15
+ dotActive: string;
16
+ /** Styles applied to the Linear Progress component if `variant="progress"`. */
17
+ progress: string;
18
+ }
19
+ export type MobileStepperClassKey = keyof MobileStepperClasses;
20
+ export declare function getMobileStepperUtilityClass(slot: string): string;
21
+ declare const mobileStepperClasses: MobileStepperClasses;
22
+ export default mobileStepperClasses;
@@ -7,6 +7,7 @@ export interface NativeSelectInputProps extends React.SelectHTMLAttributes<HTMLS
7
7
  IconComponent: React.ElementType;
8
8
  inputRef?: React.Ref<HTMLSelectElement>;
9
9
  variant?: 'standard' | 'outlined' | 'filled';
10
+ error?: boolean;
10
11
  sx?: SxProps<Theme>;
11
12
  }
12
13
 
@@ -1,6 +1,6 @@
1
1
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
2
2
  import _extends from "@babel/runtime/helpers/esm/extends";
3
- const _excluded = ["className", "disabled", "IconComponent", "inputRef", "variant"];
3
+ const _excluded = ["className", "disabled", "error", "IconComponent", "inputRef", "variant"];
4
4
  import * as React from 'react';
5
5
  import PropTypes from 'prop-types';
6
6
  import clsx from 'clsx';
@@ -17,10 +17,11 @@ const useUtilityClasses = ownerState => {
17
17
  variant,
18
18
  disabled,
19
19
  multiple,
20
- open
20
+ open,
21
+ error
21
22
  } = ownerState;
22
23
  const slots = {
23
- select: ['select', variant, disabled && 'disabled', multiple && 'multiple'],
24
+ select: ['select', variant, disabled && 'disabled', multiple && 'multiple', error && 'error'],
24
25
  icon: ['icon', `icon${capitalize(variant)}`, open && 'iconOpen', disabled && 'disabled']
25
26
  };
26
27
  return composeClasses(slots, getNativeSelectUtilityClasses, classes);
@@ -87,7 +88,7 @@ const NativeSelectSelect = styled('select', {
87
88
  const {
88
89
  ownerState
89
90
  } = props;
90
- return [styles.select, styles[ownerState.variant], {
91
+ return [styles.select, styles[ownerState.variant], ownerState.error && styles.error, {
91
92
  [`&.${nativeSelectClasses.multiple}`]: styles.multiple
92
93
  }];
93
94
  }
@@ -133,6 +134,7 @@ const NativeSelectInput = /*#__PURE__*/React.forwardRef(function NativeSelectInp
133
134
  const {
134
135
  className,
135
136
  disabled,
137
+ error,
136
138
  IconComponent,
137
139
  inputRef,
138
140
  variant = 'standard'
@@ -140,7 +142,8 @@ const NativeSelectInput = /*#__PURE__*/React.forwardRef(function NativeSelectInp
140
142
  other = _objectWithoutPropertiesLoose(props, _excluded);
141
143
  const ownerState = _extends({}, props, {
142
144
  disabled,
143
- variant
145
+ variant,
146
+ error
144
147
  });
145
148
  const classes = useUtilityClasses(ownerState);
146
149
  return /*#__PURE__*/_jsxs(React.Fragment, {
@@ -175,6 +178,10 @@ process.env.NODE_ENV !== "production" ? NativeSelectInput.propTypes = {
175
178
  * If `true`, the select is disabled.
176
179
  */
177
180
  disabled: PropTypes.bool,
181
+ /**
182
+ * If `true`, the `select input` will indicate an error.
183
+ */
184
+ error: PropTypes.bool,
178
185
  /**
179
186
  * The icon that displays the arrow.
180
187
  */
@@ -1,32 +1,34 @@
1
- export interface NativeSelectClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the select component `select` class. */
5
- select: string;
6
- /** Styles applied to the select component if `multiple={true}`. */
7
- multiple: string;
8
- /** Styles applied to the select component if `variant="filled"`. */
9
- filled: string;
10
- /** Styles applied to the select component if `variant="outlined"`. */
11
- outlined: string;
12
- /** Styles applied to the select component if `variant="standard"`. */
13
- standard: string;
14
- /** State class applied to the select component `disabled` class. */
15
- disabled: string;
16
- /** Styles applied to the icon component. */
17
- icon: string;
18
- /** Styles applied to the icon component if the popup is open. */
19
- iconOpen: string;
20
- /** Styles applied to the icon component if `variant="filled"`. */
21
- iconFilled: string;
22
- /** Styles applied to the icon component if `variant="outlined"`. */
23
- iconOutlined: string;
24
- /** Styles applied to the icon component if `variant="standard"`. */
25
- iconStandard: string;
26
- /** Styles applied to the underlying native input component. */
27
- nativeInput: string;
28
- }
29
- export type NativeSelectClassKey = keyof NativeSelectClasses;
30
- export declare function getNativeSelectUtilityClasses(slot: string): string;
31
- declare const nativeSelectClasses: NativeSelectClasses;
32
- export default nativeSelectClasses;
1
+ export interface NativeSelectClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the select component `select` class. */
5
+ select: string;
6
+ /** Styles applied to the select component if `multiple={true}`. */
7
+ multiple: string;
8
+ /** Styles applied to the select component if `variant="filled"`. */
9
+ filled: string;
10
+ /** Styles applied to the select component if `variant="outlined"`. */
11
+ outlined: string;
12
+ /** Styles applied to the select component if `variant="standard"`. */
13
+ standard: string;
14
+ /** State class applied to the select component `disabled` class. */
15
+ disabled: string;
16
+ /** Styles applied to the icon component. */
17
+ icon: string;
18
+ /** Styles applied to the icon component if the popup is open. */
19
+ iconOpen: string;
20
+ /** Styles applied to the icon component if `variant="filled"`. */
21
+ iconFilled: string;
22
+ /** Styles applied to the icon component if `variant="outlined"`. */
23
+ iconOutlined: string;
24
+ /** Styles applied to the icon component if `variant="standard"`. */
25
+ iconStandard: string;
26
+ /** Styles applied to the underlying native input component. */
27
+ nativeInput: string;
28
+ /** State class applied to the select component `error` class. */
29
+ error: string;
30
+ }
31
+ export type NativeSelectClassKey = keyof NativeSelectClasses;
32
+ export declare function getNativeSelectUtilityClasses(slot: string): string;
33
+ declare const nativeSelectClasses: NativeSelectClasses;
34
+ export default nativeSelectClasses;
@@ -3,5 +3,5 @@ import generateUtilityClass from '../generateUtilityClass';
3
3
  export function getNativeSelectUtilityClasses(slot) {
4
4
  return generateUtilityClass('MuiNativeSelect', slot);
5
5
  }
6
- const nativeSelectClasses = generateUtilityClasses('MuiNativeSelect', ['root', 'select', 'multiple', 'filled', 'outlined', 'standard', 'disabled', 'icon', 'iconOpen', 'iconFilled', 'iconOutlined', 'iconStandard', 'nativeInput']);
6
+ const nativeSelectClasses = generateUtilityClasses('MuiNativeSelect', ['root', 'select', 'multiple', 'filled', 'outlined', 'standard', 'disabled', 'icon', 'iconOpen', 'iconFilled', 'iconOutlined', 'iconStandard', 'nativeInput', 'error']);
7
7
  export default nativeSelectClasses;
@@ -1,36 +1,36 @@
1
- export interface OutlinedInputClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the root element if the color is secondary. */
5
- colorSecondary: string;
6
- /** Styles applied to the root element if the component is focused. */
7
- focused: string;
8
- /** Styles applied to the root element if `disabled={true}`. */
9
- disabled: string;
10
- /** Styles applied to the root element if `startAdornment` is provided. */
11
- adornedStart: string;
12
- /** Styles applied to the root element if `endAdornment` is provided. */
13
- adornedEnd: string;
14
- /** State class applied to the root element if `error={true}`. */
15
- error: string;
16
- /** Styles applied to the input element if `size="small"`. */
17
- sizeSmall: string;
18
- /** Styles applied to the root element if `multiline={true}`. */
19
- multiline: string;
20
- /** Styles applied to the NotchedOutline element. */
21
- notchedOutline: string;
22
- /** Styles applied to the input element. */
23
- input: string;
24
- /** Styles applied to the input element if `size="small"`. */
25
- inputSizeSmall: string;
26
- /** Styles applied to the input element if `multiline={true}`. */
27
- inputMultiline: string;
28
- /** Styles applied to the input element if `startAdornment` is provided. */
29
- inputAdornedStart: string;
30
- /** Styles applied to the input element if `endAdornment` is provided. */
31
- inputAdornedEnd: string;
32
- }
33
- export type OutlinedInputClassKey = keyof OutlinedInputClasses;
34
- export declare function getOutlinedInputUtilityClass(slot: string): string;
35
- declare const outlinedInputClasses: OutlinedInputClasses;
36
- export default outlinedInputClasses;
1
+ export interface OutlinedInputClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the root element if the color is secondary. */
5
+ colorSecondary: string;
6
+ /** Styles applied to the root element if the component is focused. */
7
+ focused: string;
8
+ /** Styles applied to the root element if `disabled={true}`. */
9
+ disabled: string;
10
+ /** Styles applied to the root element if `startAdornment` is provided. */
11
+ adornedStart: string;
12
+ /** Styles applied to the root element if `endAdornment` is provided. */
13
+ adornedEnd: string;
14
+ /** State class applied to the root element if `error={true}`. */
15
+ error: string;
16
+ /** Styles applied to the input element if `size="small"`. */
17
+ sizeSmall: string;
18
+ /** Styles applied to the root element if `multiline={true}`. */
19
+ multiline: string;
20
+ /** Styles applied to the NotchedOutline element. */
21
+ notchedOutline: string;
22
+ /** Styles applied to the input element. */
23
+ input: string;
24
+ /** Styles applied to the input element if `size="small"`. */
25
+ inputSizeSmall: string;
26
+ /** Styles applied to the input element if `multiline={true}`. */
27
+ inputMultiline: string;
28
+ /** Styles applied to the input element if `startAdornment` is provided. */
29
+ inputAdornedStart: string;
30
+ /** Styles applied to the input element if `endAdornment` is provided. */
31
+ inputAdornedEnd: string;
32
+ }
33
+ export type OutlinedInputClassKey = keyof OutlinedInputClasses;
34
+ export declare function getOutlinedInputUtilityClass(slot: string): string;
35
+ declare const outlinedInputClasses: OutlinedInputClasses;
36
+ export default outlinedInputClasses;
@@ -1,14 +1,14 @@
1
- export interface PaginationClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the ul element. */
5
- ul: string;
6
- /** Styles applied to the root element if `variant="outlined"`. */
7
- outlined: string;
8
- /** Styles applied to the root element if `variant="text"`. */
9
- text: string;
10
- }
11
- export type PaginationClassKey = keyof PaginationClasses;
12
- export declare function getPaginationUtilityClass(slot: string): string;
13
- declare const paginationClasses: PaginationClasses;
14
- export default paginationClasses;
1
+ export interface PaginationClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the ul element. */
5
+ ul: string;
6
+ /** Styles applied to the root element if `variant="outlined"`. */
7
+ outlined: string;
8
+ /** Styles applied to the root element if `variant="text"`. */
9
+ text: string;
10
+ }
11
+ export type PaginationClassKey = keyof PaginationClasses;
12
+ export declare function getPaginationUtilityClass(slot: string): string;
13
+ declare const paginationClasses: PaginationClasses;
14
+ export default paginationClasses;
@@ -1,42 +1,42 @@
1
- export interface PaginationItemClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the root element if `type="page"`. */
5
- page: string;
6
- /** Styles applied to the root element if `size="small"`. */
7
- sizeSmall: string;
8
- /** Styles applied to the root element if `size="large"`. */
9
- sizeLarge: string;
10
- /** Styles applied to the root element if `variant="text"`. */
11
- text: string;
12
- /** Styles applied to the root element if `variant="text"` and `color="primary"`. */
13
- textPrimary: string;
14
- /** Styles applied to the root element if `variant="text"` and `color="secondary"`. */
15
- textSecondary: string;
16
- /** Styles applied to the root element if `variant="outlined"`. */
17
- outlined: string;
18
- /** Styles applied to the root element if `variant="outlined"` and `color="primary"`. */
19
- outlinedPrimary: string;
20
- /** Styles applied to the root element if `variant="outlined"` and `color="secondary"`. */
21
- outlinedSecondary: string;
22
- /** Styles applied to the root element if `rounded="true"`. */
23
- rounded: string;
24
- /** Styles applied to the root element if `type="start-ellipsis"` or `type="end-ellipsis"`. */
25
- ellipsis: string;
26
- /** Styles applyed to the root element if `type="first"` or type="last". */
27
- firstLast: string;
28
- /** Styles applyed to the root element if `type="previous"` or type="next". */
29
- previousNext: string;
30
- /** State class applied to the root element if keyboard focused. */
31
- focusVisible: string;
32
- /** State class applied to the root element if `disabled={true}`. */
33
- disabled: string;
34
- /** State class applied to the root element if `selected={true}`. */
35
- selected: string;
36
- /** Styles applied to the icon to display. */
37
- icon: string;
38
- }
39
- export type PaginationItemClassKey = keyof PaginationItemClasses;
40
- export declare function getPaginationItemUtilityClass(slot: string): string;
41
- declare const paginationItemClasses: PaginationItemClasses;
42
- export default paginationItemClasses;
1
+ export interface PaginationItemClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the root element if `type="page"`. */
5
+ page: string;
6
+ /** Styles applied to the root element if `size="small"`. */
7
+ sizeSmall: string;
8
+ /** Styles applied to the root element if `size="large"`. */
9
+ sizeLarge: string;
10
+ /** Styles applied to the root element if `variant="text"`. */
11
+ text: string;
12
+ /** Styles applied to the root element if `variant="text"` and `color="primary"`. */
13
+ textPrimary: string;
14
+ /** Styles applied to the root element if `variant="text"` and `color="secondary"`. */
15
+ textSecondary: string;
16
+ /** Styles applied to the root element if `variant="outlined"`. */
17
+ outlined: string;
18
+ /** Styles applied to the root element if `variant="outlined"` and `color="primary"`. */
19
+ outlinedPrimary: string;
20
+ /** Styles applied to the root element if `variant="outlined"` and `color="secondary"`. */
21
+ outlinedSecondary: string;
22
+ /** Styles applied to the root element if `rounded="true"`. */
23
+ rounded: string;
24
+ /** Styles applied to the root element if `type="start-ellipsis"` or `type="end-ellipsis"`. */
25
+ ellipsis: string;
26
+ /** Styles applyed to the root element if `type="first"` or type="last". */
27
+ firstLast: string;
28
+ /** Styles applyed to the root element if `type="previous"` or type="next". */
29
+ previousNext: string;
30
+ /** State class applied to the root element if keyboard focused. */
31
+ focusVisible: string;
32
+ /** State class applied to the root element if `disabled={true}`. */
33
+ disabled: string;
34
+ /** State class applied to the root element if `selected={true}`. */
35
+ selected: string;
36
+ /** Styles applied to the icon to display. */
37
+ icon: string;
38
+ }
39
+ export type PaginationItemClassKey = keyof PaginationItemClasses;
40
+ export declare function getPaginationItemUtilityClass(slot: string): string;
41
+ declare const paginationItemClasses: PaginationItemClasses;
42
+ export default paginationItemClasses;
@@ -1,39 +1,39 @@
1
- export interface PaperClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the root element unless `square={true}`. */
5
- rounded: string;
6
- /** Styles applied to the root element if `variant="outlined"`. */
7
- outlined: string;
8
- /** Styles applied to the root element if `variant="elevation"`. */
9
- elevation: string;
10
- elevation0: string;
11
- elevation1: string;
12
- elevation2: string;
13
- elevation3: string;
14
- elevation4: string;
15
- elevation5: string;
16
- elevation6: string;
17
- elevation7: string;
18
- elevation8: string;
19
- elevation9: string;
20
- elevation10: string;
21
- elevation11: string;
22
- elevation12: string;
23
- elevation13: string;
24
- elevation14: string;
25
- elevation15: string;
26
- elevation16: string;
27
- elevation17: string;
28
- elevation18: string;
29
- elevation19: string;
30
- elevation20: string;
31
- elevation21: string;
32
- elevation22: string;
33
- elevation23: string;
34
- elevation24: string;
35
- }
36
- export type PaperClassKey = keyof PaperClasses;
37
- export declare function getPaperUtilityClass(slot: string): string;
38
- declare const paperClasses: PaperClasses;
39
- export default paperClasses;
1
+ export interface PaperClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the root element unless `square={true}`. */
5
+ rounded: string;
6
+ /** Styles applied to the root element if `variant="outlined"`. */
7
+ outlined: string;
8
+ /** Styles applied to the root element if `variant="elevation"`. */
9
+ elevation: string;
10
+ elevation0: string;
11
+ elevation1: string;
12
+ elevation2: string;
13
+ elevation3: string;
14
+ elevation4: string;
15
+ elevation5: string;
16
+ elevation6: string;
17
+ elevation7: string;
18
+ elevation8: string;
19
+ elevation9: string;
20
+ elevation10: string;
21
+ elevation11: string;
22
+ elevation12: string;
23
+ elevation13: string;
24
+ elevation14: string;
25
+ elevation15: string;
26
+ elevation16: string;
27
+ elevation17: string;
28
+ elevation18: string;
29
+ elevation19: string;
30
+ elevation20: string;
31
+ elevation21: string;
32
+ elevation22: string;
33
+ elevation23: string;
34
+ elevation24: string;
35
+ }
36
+ export type PaperClassKey = keyof PaperClasses;
37
+ export declare function getPaperUtilityClass(slot: string): string;
38
+ declare const paperClasses: PaperClasses;
39
+ export default paperClasses;
@@ -1,10 +1,10 @@
1
- export interface PopoverClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the Paper component. */
5
- paper: string;
6
- }
7
- export type PopoverClassKey = keyof PopoverClasses;
8
- export declare function getPopoverUtilityClass(slot: string): string;
9
- declare const popoverClasses: PopoverClasses;
10
- export default popoverClasses;
1
+ export interface PopoverClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the Paper component. */
5
+ paper: string;
6
+ }
7
+ export type PopoverClassKey = keyof PopoverClasses;
8
+ export declare function getPopoverUtilityClass(slot: string): string;
9
+ declare const popoverClasses: PopoverClasses;
10
+ export default popoverClasses;
@@ -1,55 +1,55 @@
1
- import { PopperUnstyledProps } from '@mui/base/PopperUnstyled';
2
- import { SxProps } from '@mui/system';
3
- import * as React from 'react';
4
- import { Theme } from '../styles';
5
- export type PopperProps = Omit<PopperUnstyledProps, 'direction'> & {
6
- /**
7
- * The components used for each slot inside the Popper.
8
- * Either a string to use a HTML element or a component.
9
- * @default {}
10
- */
11
- components?: {
12
- Root?: React.ElementType;
13
- };
14
- /**
15
- * The props used for each slot inside the Popper.
16
- * @default {}
17
- */
18
- componentsProps?: PopperUnstyledProps['slotProps'];
19
- /**
20
- * The system prop that allows defining system overrides as well as additional CSS styles.
21
- */
22
- sx?: SxProps<Theme>;
23
- };
24
- /**
25
- *
26
- * Demos:
27
- *
28
- * - [Autocomplete](https://mui.com/material-ui/react-autocomplete/)
29
- * - [Menu](https://mui.com/material-ui/react-menu/)
30
- * - [Popper](https://mui.com/material-ui/react-popper/)
31
- *
32
- * API:
33
- *
34
- * - [Popper API](https://mui.com/material-ui/api/popper/)
35
- */
36
- declare const Popper: React.ForwardRefExoticComponent<Omit<PopperUnstyledProps<"div", {}>, "direction"> & {
37
- /**
38
- * The components used for each slot inside the Popper.
39
- * Either a string to use a HTML element or a component.
40
- * @default {}
41
- */
42
- components?: {
43
- Root?: React.ElementType<any> | undefined;
44
- } | undefined;
45
- /**
46
- * The props used for each slot inside the Popper.
47
- * @default {}
48
- */
49
- componentsProps?: PopperUnstyledProps['slotProps'];
50
- /**
51
- * The system prop that allows defining system overrides as well as additional CSS styles.
52
- */
53
- sx?: SxProps<Theme> | undefined;
54
- } & React.RefAttributes<HTMLDivElement>>;
55
- export default Popper;
1
+ import { PopperUnstyledProps } from '@mui/base/PopperUnstyled';
2
+ import { SxProps } from '@mui/system';
3
+ import * as React from 'react';
4
+ import { Theme } from '../styles';
5
+ export type PopperProps = Omit<PopperUnstyledProps, 'direction'> & {
6
+ /**
7
+ * The components used for each slot inside the Popper.
8
+ * Either a string to use a HTML element or a component.
9
+ * @default {}
10
+ */
11
+ components?: {
12
+ Root?: React.ElementType;
13
+ };
14
+ /**
15
+ * The props used for each slot inside the Popper.
16
+ * @default {}
17
+ */
18
+ componentsProps?: PopperUnstyledProps['slotProps'];
19
+ /**
20
+ * The system prop that allows defining system overrides as well as additional CSS styles.
21
+ */
22
+ sx?: SxProps<Theme>;
23
+ };
24
+ /**
25
+ *
26
+ * Demos:
27
+ *
28
+ * - [Autocomplete](https://mui.com/material-ui/react-autocomplete/)
29
+ * - [Menu](https://mui.com/material-ui/react-menu/)
30
+ * - [Popper](https://mui.com/material-ui/react-popper/)
31
+ *
32
+ * API:
33
+ *
34
+ * - [Popper API](https://mui.com/material-ui/api/popper/)
35
+ */
36
+ declare const Popper: React.ForwardRefExoticComponent<Omit<PopperUnstyledProps<"div", {}>, "direction"> & {
37
+ /**
38
+ * The components used for each slot inside the Popper.
39
+ * Either a string to use a HTML element or a component.
40
+ * @default {}
41
+ */
42
+ components?: {
43
+ Root?: React.ElementType<any> | undefined;
44
+ } | undefined;
45
+ /**
46
+ * The props used for each slot inside the Popper.
47
+ * @default {}
48
+ */
49
+ componentsProps?: PopperUnstyledProps['slotProps'];
50
+ /**
51
+ * The system prop that allows defining system overrides as well as additional CSS styles.
52
+ */
53
+ sx?: SxProps<Theme> | undefined;
54
+ } & React.RefAttributes<HTMLDivElement>>;
55
+ export default Popper;