@mui/material 5.12.2 → 5.12.3

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 (228) hide show
  1. package/Accordion/Accordion.d.ts +71 -57
  2. package/Accordion/accordionClasses.d.ts +18 -18
  3. package/AccordionActions/accordionActionsClasses.d.ts +10 -10
  4. package/AccordionDetails/accordionDetailsClasses.d.ts +8 -8
  5. package/AccordionSummary/accordionSummaryClasses.d.ts +22 -22
  6. package/Alert/alertClasses.d.ts +44 -44
  7. package/AlertTitle/alertTitleClasses.d.ts +8 -8
  8. package/AppBar/appBarClasses.d.ts +28 -28
  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/BottomNavigationAction.js +4 -1
  17. package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +14 -14
  18. package/Breadcrumbs/breadcrumbsClasses.d.ts +14 -14
  19. package/Button/buttonClasses.d.ts +100 -100
  20. package/ButtonBase/buttonBaseClasses.d.ts +12 -12
  21. package/ButtonBase/touchRippleClasses.d.ts +20 -20
  22. package/ButtonGroup/ButtonGroup.js +8 -2
  23. package/ButtonGroup/ButtonGroupContext.d.ts +18 -18
  24. package/ButtonGroup/buttonGroupClasses.d.ts +58 -58
  25. package/CHANGELOG.md +120 -0
  26. package/Card/cardClasses.d.ts +8 -8
  27. package/CardActionArea/cardActionAreaClasses.d.ts +12 -12
  28. package/CardActions/cardActionsClasses.d.ts +10 -10
  29. package/CardContent/cardContentClasses.d.ts +8 -8
  30. package/CardHeader/cardHeaderClasses.d.ts +18 -18
  31. package/CardMedia/cardMediaClasses.d.ts +12 -12
  32. package/Checkbox/checkboxClasses.d.ts +18 -18
  33. package/Chip/Chip.js +1 -1
  34. package/Chip/chipClasses.d.ts +96 -96
  35. package/CircularProgress/circularProgressClasses.d.ts +26 -26
  36. package/ClickAwayListener/index.d.ts +2 -2
  37. package/Collapse/collapseClasses.d.ts +18 -18
  38. package/Container/containerClasses.d.ts +6 -6
  39. package/Dialog/DialogContext.d.ts +6 -6
  40. package/Dialog/dialogClasses.d.ts +36 -36
  41. package/DialogActions/dialogActionsClasses.d.ts +10 -10
  42. package/DialogContent/dialogContentClasses.d.ts +10 -10
  43. package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
  44. package/DialogTitle/dialogTitleClasses.d.ts +8 -8
  45. package/Divider/Divider.js +10 -11
  46. package/Divider/dividerClasses.d.ts +34 -34
  47. package/Drawer/drawerClasses.d.ts +30 -30
  48. package/Fab/fabClasses.d.ts +26 -26
  49. package/FilledInput/filledInputClasses.d.ts +42 -42
  50. package/FormControl/FormControlContext.d.ts +17 -17
  51. package/FormControl/formControlClasses.d.ts +14 -14
  52. package/FormControl/useFormControl.d.ts +2 -2
  53. package/FormControlLabel/formControlLabelClasses.d.ts +24 -24
  54. package/FormGroup/formGroupClasses.d.ts +12 -12
  55. package/FormHelperText/formHelperTextClasses.d.ts +22 -22
  56. package/FormLabel/formLabelClasses.d.ts +22 -22
  57. package/Grid/gridClasses.d.ts +48 -48
  58. package/Icon/iconClasses.d.ts +24 -24
  59. package/IconButton/iconButtonClasses.d.ts +34 -34
  60. package/ImageList/imageListClasses.d.ts +16 -16
  61. package/ImageListItem/imageListItemClasses.d.ts +18 -18
  62. package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
  63. package/Input/inputClasses.d.ts +38 -34
  64. package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
  65. package/InputBase/InputBase.js +1 -1
  66. package/InputBase/inputBaseClasses.d.ts +46 -46
  67. package/InputLabel/inputLabelClasses.d.ts +32 -32
  68. package/LinearProgress/linearProgressClasses.d.ts +42 -42
  69. package/Link/getTextDecoration.d.ts +15 -15
  70. package/Link/linkClasses.d.ts +18 -18
  71. package/List/listClasses.d.ts +14 -14
  72. package/ListItem/listItemClasses.d.ts +30 -30
  73. package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
  74. package/ListItemButton/listItemButtonClasses.d.ts +22 -22
  75. package/ListItemIcon/listItemIconClasses.d.ts +10 -10
  76. package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
  77. package/ListItemText/listItemTextClasses.d.ts +18 -18
  78. package/ListSubheader/listSubheaderClasses.d.ts +18 -18
  79. package/Menu/menuClasses.d.ts +12 -12
  80. package/MenuItem/menuItemClasses.d.ts +20 -20
  81. package/MobileStepper/mobileStepperClasses.d.ts +22 -22
  82. package/NativeSelect/nativeSelectClasses.d.ts +34 -34
  83. package/OutlinedInput/outlinedInputClasses.d.ts +38 -38
  84. package/Pagination/paginationClasses.d.ts +14 -14
  85. package/PaginationItem/paginationItemClasses.d.ts +42 -42
  86. package/Paper/Paper.d.ts +6 -1
  87. package/Paper/paperClasses.d.ts +39 -39
  88. package/Popover/popoverClasses.d.ts +10 -10
  89. package/Popper/Popper.d.ts +65 -55
  90. package/Popper/Popper.js +4 -3
  91. package/Radio/radioClasses.d.ts +16 -16
  92. package/RadioGroup/RadioGroupContext.d.ts +11 -11
  93. package/RadioGroup/useRadioGroup.d.ts +4 -4
  94. package/Rating/ratingClasses.d.ts +40 -40
  95. package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
  96. package/Select/SelectInput.js +4 -1
  97. package/Select/selectClasses.d.ts +32 -32
  98. package/Skeleton/skeletonClasses.d.ts +26 -26
  99. package/Slider/Slider.js +1 -1
  100. package/Slider/SliderValueLabel.d.ts +15 -15
  101. package/Slider/SliderValueLabel.types.d.ts +24 -24
  102. package/Slider/sliderClasses.d.ts +58 -58
  103. package/Snackbar/Snackbar.js +4 -3
  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/stackClasses.d.ts +6 -6
  110. package/Step/StepContext.d.ts +20 -20
  111. package/Step/stepClasses.d.ts +16 -16
  112. package/StepButton/stepButtonClasses.d.ts +14 -14
  113. package/StepConnector/stepConnectorClasses.d.ts +26 -26
  114. package/StepContent/stepContentClasses.d.ts +12 -12
  115. package/StepIcon/stepIconClasses.d.ts +16 -16
  116. package/StepLabel/stepLabelClasses.d.ts +28 -28
  117. package/Stepper/StepperContext.d.ts +18 -18
  118. package/Stepper/stepperClasses.d.ts +14 -14
  119. package/SvgIcon/svgIconClasses.d.ts +26 -26
  120. package/SwipeableDrawer/SwipeableDrawer.js +1 -1
  121. package/Switch/switchClasses.d.ts +32 -32
  122. package/Tab/tabClasses.d.ts +26 -26
  123. package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
  124. package/Table/tableClasses.d.ts +10 -10
  125. package/TableBody/tableBodyClasses.d.ts +8 -8
  126. package/TableCell/tableCellClasses.d.ts +32 -32
  127. package/TableContainer/tableContainerClasses.d.ts +8 -8
  128. package/TableFooter/tableFooterClasses.d.ts +8 -8
  129. package/TableHead/tableHeadClasses.d.ts +8 -8
  130. package/TablePagination/tablePaginationClasses.d.ts +28 -28
  131. package/TableRow/tableRowClasses.d.ts +16 -16
  132. package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
  133. package/Tabs/tabsClasses.d.ts +32 -32
  134. package/TextField/TextField.d.ts +21 -2
  135. package/TextField/TextField.js +7 -1
  136. package/TextField/textFieldClasses.d.ts +8 -8
  137. package/ToggleButton/toggleButtonClasses.d.ts +24 -24
  138. package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
  139. package/Toolbar/toolbarClasses.d.ts +14 -14
  140. package/Tooltip/tooltipClasses.d.ts +30 -30
  141. package/Typography/typographyClasses.d.ts +50 -50
  142. package/Unstable_Grid2/Grid2.d.ts +4 -4
  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/BottomNavigation/BottomNavigation.js +0 -0
  153. package/legacy/ButtonGroup/ButtonGroup.js +7 -3
  154. package/legacy/Divider/Divider.js +17 -17
  155. package/legacy/Drawer/Drawer.js +4 -4
  156. package/legacy/InputBase/InputBase.js +1 -1
  157. package/legacy/ListItem/ListItem.js +4 -4
  158. package/legacy/Menu/Menu.js +4 -4
  159. package/legacy/Popover/Popover.js +4 -4
  160. package/legacy/Popper/Popper.js +4 -3
  161. package/legacy/Slider/Slider.js +1 -1
  162. package/legacy/Snackbar/Snackbar.js +16 -15
  163. package/legacy/SpeedDial/SpeedDial.js +8 -8
  164. package/legacy/SwipeableDrawer/SwipeableDrawer.js +4 -4
  165. package/legacy/TextField/TextField.js +7 -1
  166. package/legacy/index.js +1 -1
  167. package/legacy/useMediaQuery/useMediaQuery.js +8 -0
  168. package/locale/index.d.ts +76 -76
  169. package/modern/BottomNavigation/BottomNavigation.js +0 -0
  170. package/modern/BottomNavigationAction/BottomNavigationAction.js +4 -1
  171. package/modern/ButtonGroup/ButtonGroup.js +8 -2
  172. package/modern/Chip/Chip.js +1 -1
  173. package/modern/Divider/Divider.js +10 -11
  174. package/modern/InputBase/InputBase.js +1 -1
  175. package/modern/Popper/Popper.js +4 -3
  176. package/modern/Select/SelectInput.js +4 -1
  177. package/modern/Slider/Slider.js +1 -1
  178. package/modern/Snackbar/Snackbar.js +4 -3
  179. package/modern/SwipeableDrawer/SwipeableDrawer.js +1 -1
  180. package/modern/TextField/TextField.js +7 -1
  181. package/modern/index.js +1 -1
  182. package/modern/useMediaQuery/useMediaQuery.js +8 -0
  183. package/node/BottomNavigation/BottomNavigation.js +0 -0
  184. package/node/BottomNavigationAction/BottomNavigationAction.js +4 -1
  185. package/node/ButtonBase/Ripple.js +1 -2
  186. package/node/ButtonGroup/ButtonGroup.js +8 -2
  187. package/node/Chip/Chip.js +1 -1
  188. package/node/Divider/Divider.js +10 -11
  189. package/node/Grid/Grid.js +10 -1
  190. package/node/Hidden/Hidden.js +2 -2
  191. package/node/Hidden/HiddenJs.js +1 -2
  192. package/node/InputBase/InputBase.js +1 -1
  193. package/node/Popper/Popper.js +4 -3
  194. package/node/Select/SelectInput.js +4 -1
  195. package/node/Slide/Slide.js +2 -3
  196. package/node/Slider/Slider.js +1 -1
  197. package/node/Snackbar/Snackbar.js +4 -3
  198. package/node/SpeedDialAction/SpeedDialAction.js +1 -1
  199. package/node/SwipeableDrawer/SwipeableDrawer.js +3 -4
  200. package/node/Switch/Switch.js +1 -1
  201. package/node/TabScrollButton/TabScrollButton.js +1 -0
  202. package/node/TablePagination/TablePaginationActions.js +2 -2
  203. package/node/TextField/TextField.js +7 -1
  204. package/node/ToggleButton/ToggleButton.js +1 -1
  205. package/node/index.js +1 -1
  206. package/node/styles/index.js +5 -1
  207. package/node/useMediaQuery/useMediaQuery.js +12 -0
  208. package/node/utils/createSvgIcon.js +1 -2
  209. package/package.json +5 -5
  210. package/styles/CssVarsProvider.d.ts +20 -20
  211. package/styles/excludeVariablesFromRoot.d.ts +5 -5
  212. package/styles/getOverlayAlpha.d.ts +2 -2
  213. package/styles/identifier.d.ts +2 -2
  214. package/styles/shouldSkipGeneratingVar.d.ts +1 -1
  215. package/transitions/index.d.ts +1 -1
  216. package/transitions/transition.d.ts +13 -13
  217. package/transitions/utils.d.ts +23 -23
  218. package/types/OverridableComponentAugmentation.d.ts +31 -31
  219. package/umd/material-ui.development.js +91 -72
  220. package/umd/material-ui.production.min.js +5 -5
  221. package/useMediaQuery/useMediaQuery.d.ts +46 -46
  222. package/useMediaQuery/useMediaQuery.js +8 -0
  223. package/useTouchRipple/index.d.ts +1 -1
  224. package/useTouchRipple/useTouchRipple.d.ts +28 -28
  225. package/utils/getScrollbarSize.d.ts +2 -2
  226. package/utils/ownerDocument.d.ts +2 -2
  227. package/utils/ownerWindow.d.ts +2 -2
  228. package/utils/setRef.d.ts +2 -2
@@ -1,55 +1,65 @@
1
- import { PopperProps as BasePopperProps } from '@mui/base/Popper';
2
- import { SxProps } from '@mui/system';
3
- import * as React from 'react';
4
- import { Theme } from '../styles';
5
- export type PopperProps = Omit<BasePopperProps, '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?: BasePopperProps['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<BasePopperProps<"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?: BasePopperProps['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 { PopperProps as BasePopperProps } from '@mui/base/Popper';
2
+ import { SxProps } from '@mui/system';
3
+ import * as React from 'react';
4
+ import { Theme } from '../styles';
5
+ export type PopperProps = Omit<BasePopperProps, 'direction'> & {
6
+ /**
7
+ * The component used for the root node.
8
+ * Either a string to use a HTML element or a component.
9
+ */
10
+ component?: React.ElementType;
11
+ /**
12
+ * The components used for each slot inside the Popper.
13
+ * Either a string to use a HTML element or a component.
14
+ * @default {}
15
+ */
16
+ components?: {
17
+ Root?: React.ElementType;
18
+ };
19
+ /**
20
+ * The props used for each slot inside the Popper.
21
+ * @default {}
22
+ */
23
+ componentsProps?: BasePopperProps['slotProps'];
24
+ /**
25
+ * The system prop that allows defining system overrides as well as additional CSS styles.
26
+ */
27
+ sx?: SxProps<Theme>;
28
+ };
29
+ /**
30
+ *
31
+ * Demos:
32
+ *
33
+ * - [Autocomplete](https://mui.com/material-ui/react-autocomplete/)
34
+ * - [Menu](https://mui.com/material-ui/react-menu/)
35
+ * - [Popper](https://mui.com/material-ui/react-popper/)
36
+ *
37
+ * API:
38
+ *
39
+ * - [Popper API](https://mui.com/material-ui/api/popper/)
40
+ */
41
+ declare const Popper: React.ForwardRefExoticComponent<Omit<BasePopperProps<"div">, "direction"> & {
42
+ /**
43
+ * The component used for the root node.
44
+ * Either a string to use a HTML element or a component.
45
+ */
46
+ component?: React.ElementType<any> | undefined;
47
+ /**
48
+ * The components used for each slot inside the Popper.
49
+ * Either a string to use a HTML element or a component.
50
+ * @default {}
51
+ */
52
+ components?: {
53
+ Root?: React.ElementType<any> | undefined;
54
+ } | undefined;
55
+ /**
56
+ * The props used for each slot inside the Popper.
57
+ * @default {}
58
+ */
59
+ componentsProps?: BasePopperProps['slotProps'];
60
+ /**
61
+ * The system prop that allows defining system overrides as well as additional CSS styles.
62
+ */
63
+ sx?: SxProps<Theme> | undefined;
64
+ } & React.RefAttributes<HTMLDivElement>>;
65
+ export default Popper;
package/Popper/Popper.js CHANGED
@@ -54,7 +54,6 @@ const Popper = /*#__PURE__*/React.forwardRef(function Popper(inProps, ref) {
54
54
  const RootComponent = (_slots$root = slots == null ? void 0 : slots.root) != null ? _slots$root : components == null ? void 0 : components.Root;
55
55
  const otherProps = _extends({
56
56
  anchorEl,
57
- component,
58
57
  container,
59
58
  disablePortal,
60
59
  keepMounted,
@@ -66,6 +65,7 @@ const Popper = /*#__PURE__*/React.forwardRef(function Popper(inProps, ref) {
66
65
  transition
67
66
  }, other);
68
67
  return /*#__PURE__*/_jsx(PopperRoot, _extends({
68
+ as: component,
69
69
  direction: theme == null ? void 0 : theme.direction,
70
70
  slots: {
71
71
  root: RootComponent
@@ -92,9 +92,10 @@ process.env.NODE_ENV !== "production" ? Popper.propTypes /* remove-proptypes */
92
92
  */
93
93
  children: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.node, PropTypes.func]),
94
94
  /**
95
- * @ignore
95
+ * The component used for the root node.
96
+ * Either a string to use a HTML element or a component.
96
97
  */
97
- component: PropTypes /* @typescript-to-proptypes-ignore */.elementType,
98
+ component: PropTypes.elementType,
98
99
  /**
99
100
  * The components used for each slot inside the Popper.
100
101
  * Either a string to use a HTML element or a component.
@@ -1,16 +1,16 @@
1
- export interface RadioClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** State class applied to the root element if `checked={true}`. */
5
- checked: string;
6
- /** State class applied to the root element if `disabled={true}`. */
7
- disabled: string;
8
- /** Styles applied to the root element if `color="primary"`. */
9
- colorPrimary: string;
10
- /** Styles applied to the root element if `color="secondary"`. */
11
- colorSecondary: string;
12
- }
13
- export type RadioClassKey = keyof RadioClasses;
14
- export declare function getRadioUtilityClass(slot: string): string;
15
- declare const radioClasses: RadioClasses;
16
- export default radioClasses;
1
+ export interface RadioClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** State class applied to the root element if `checked={true}`. */
5
+ checked: string;
6
+ /** State class applied to the root element if `disabled={true}`. */
7
+ disabled: string;
8
+ /** Styles applied to the root element if `color="primary"`. */
9
+ colorPrimary: string;
10
+ /** Styles applied to the root element if `color="secondary"`. */
11
+ colorSecondary: string;
12
+ }
13
+ export type RadioClassKey = keyof RadioClasses;
14
+ export declare function getRadioUtilityClass(slot: string): string;
15
+ declare const radioClasses: RadioClasses;
16
+ export default radioClasses;
@@ -1,11 +1,11 @@
1
- import * as React from 'react';
2
- export interface RadioGroupContextValue {
3
- name: string | undefined;
4
- onChange: (event: React.ChangeEvent<HTMLInputElement>, value: string) => void;
5
- value: any;
6
- }
7
- /**
8
- * @ignore - internal component.
9
- */
10
- declare const RadioGroupContext: React.Context<RadioGroupContextValue | undefined>;
11
- export default RadioGroupContext;
1
+ import * as React from 'react';
2
+ export interface RadioGroupContextValue {
3
+ name: string | undefined;
4
+ onChange: (event: React.ChangeEvent<HTMLInputElement>, value: string) => void;
5
+ value: any;
6
+ }
7
+ /**
8
+ * @ignore - internal component.
9
+ */
10
+ declare const RadioGroupContext: React.Context<RadioGroupContextValue | undefined>;
11
+ export default RadioGroupContext;
@@ -1,4 +1,4 @@
1
- import { RadioGroupContextValue } from './RadioGroupContext';
2
- export interface RadioGroupState extends RadioGroupContextValue {
3
- }
4
- export default function useRadioGroup(): RadioGroupState | undefined;
1
+ import { RadioGroupContextValue } from './RadioGroupContext';
2
+ export interface RadioGroupState extends RadioGroupContextValue {
3
+ }
4
+ export default function useRadioGroup(): RadioGroupState | undefined;
@@ -1,40 +1,40 @@
1
- export interface RatingClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the root element if `size="small"`. */
5
- sizeSmall: string;
6
- /** Styles applied to the root element if `size="medium"`. */
7
- sizeMedium: string;
8
- /** Styles applied to the root element if `size="large"`. */
9
- sizeLarge: string;
10
- /** Styles applied to the root element if `readOnly={true}`. */
11
- readOnly: string;
12
- /** State class applied to the root element if `disabled={true}`. */
13
- disabled: string;
14
- /** State class applied to the root element if keyboard focused. */
15
- focusVisible: string;
16
- /** Visually hide an element. */
17
- visuallyHidden: string;
18
- /** Styles applied to the label elements. */
19
- label: string;
20
- /** Styles applied to the label of the "no value" input when it is active. */
21
- labelEmptyValueActive: string;
22
- /** Styles applied to the icon wrapping elements. */
23
- icon: string;
24
- /** Styles applied to the icon wrapping elements when empty. */
25
- iconEmpty: string;
26
- /** Styles applied to the icon wrapping elements when filled. */
27
- iconFilled: string;
28
- /** Styles applied to the icon wrapping elements when hover. */
29
- iconHover: string;
30
- /** Styles applied to the icon wrapping elements when focus. */
31
- iconFocus: string;
32
- /** Styles applied to the icon wrapping elements when active. */
33
- iconActive: string;
34
- /** Styles applied to the icon wrapping elements when decimals are necessary. */
35
- decimal: string;
36
- }
37
- export type RatingClassKey = keyof RatingClasses;
38
- export declare function getRatingUtilityClass(slot: string): string;
39
- declare const ratingClasses: RatingClasses;
40
- export default ratingClasses;
1
+ export interface RatingClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the root element if `size="small"`. */
5
+ sizeSmall: string;
6
+ /** Styles applied to the root element if `size="medium"`. */
7
+ sizeMedium: string;
8
+ /** Styles applied to the root element if `size="large"`. */
9
+ sizeLarge: string;
10
+ /** Styles applied to the root element if `readOnly={true}`. */
11
+ readOnly: string;
12
+ /** State class applied to the root element if `disabled={true}`. */
13
+ disabled: string;
14
+ /** State class applied to the root element if keyboard focused. */
15
+ focusVisible: string;
16
+ /** Visually hide an element. */
17
+ visuallyHidden: string;
18
+ /** Styles applied to the label elements. */
19
+ label: string;
20
+ /** Styles applied to the label of the "no value" input when it is active. */
21
+ labelEmptyValueActive: string;
22
+ /** Styles applied to the icon wrapping elements. */
23
+ icon: string;
24
+ /** Styles applied to the icon wrapping elements when empty. */
25
+ iconEmpty: string;
26
+ /** Styles applied to the icon wrapping elements when filled. */
27
+ iconFilled: string;
28
+ /** Styles applied to the icon wrapping elements when hover. */
29
+ iconHover: string;
30
+ /** Styles applied to the icon wrapping elements when focus. */
31
+ iconFocus: string;
32
+ /** Styles applied to the icon wrapping elements when active. */
33
+ iconActive: string;
34
+ /** Styles applied to the icon wrapping elements when decimals are necessary. */
35
+ decimal: string;
36
+ }
37
+ export type RatingClassKey = keyof RatingClasses;
38
+ export declare function getRatingUtilityClass(slot: string): string;
39
+ declare const ratingClasses: RatingClasses;
40
+ export default ratingClasses;
@@ -1,8 +1,8 @@
1
- export interface ScopedCssBaselineClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- }
5
- export type ScopedCssBaselineClassKey = keyof ScopedCssBaselineClasses;
6
- export declare function getScopedCssBaselineUtilityClass(slot: string): string;
7
- declare const scopedCssBaselineClasses: Record<"root", string>;
8
- export default scopedCssBaselineClasses;
1
+ export interface ScopedCssBaselineClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ }
5
+ export type ScopedCssBaselineClassKey = keyof ScopedCssBaselineClasses;
6
+ export declare function getScopedCssBaselineUtilityClass(slot: string): string;
7
+ declare const scopedCssBaselineClasses: Record<"root", string>;
8
+ export default scopedCssBaselineClasses;
@@ -134,7 +134,10 @@ const SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, re
134
134
  readOnly,
135
135
  renderValue,
136
136
  SelectDisplayProps = {},
137
- tabIndex: tabIndexProp,
137
+ tabIndex: tabIndexProp
138
+ // catching `type` from Input which makes no sense for SelectInput
139
+ ,
140
+
138
141
  value: valueProp,
139
142
  variant = 'standard'
140
143
  } = props,
@@ -1,32 +1,32 @@
1
- export interface SelectClasses {
2
- /** Styles applied to the select component `select` class. */
3
- select: string;
4
- /** Styles applied to the select component if `multiple={true}`. */
5
- multiple: string;
6
- /** Styles applied to the select component if `variant="filled"`. */
7
- filled: string;
8
- /** Styles applied to the select component if `variant="outlined"`. */
9
- outlined: string;
10
- /** Styles applied to the select component if `variant="standard"`. */
11
- standard: string;
12
- /** State class applied to the select component `disabled` class. */
13
- disabled: string;
14
- /** Styles applied to the icon component. */
15
- icon: string;
16
- /** Styles applied to the icon component if the popup is open. */
17
- iconOpen: string;
18
- /** Styles applied to the icon component if `variant="filled"`. */
19
- iconFilled: string;
20
- /** Styles applied to the icon component if `variant="outlined"`. */
21
- iconOutlined: string;
22
- /** Styles applied to the icon component if `variant="standard"`. */
23
- iconStandard: string;
24
- /** Styles applied to the underlying native input component. */
25
- nativeInput: string;
26
- /** State class applied to the root element if `error={true}`. */
27
- error: string;
28
- }
29
- export type SelectClassKey = keyof SelectClasses;
30
- export declare function getSelectUtilityClasses(slot: string): string;
31
- declare const selectClasses: SelectClasses;
32
- export default selectClasses;
1
+ export interface SelectClasses {
2
+ /** Styles applied to the select component `select` class. */
3
+ select: string;
4
+ /** Styles applied to the select component if `multiple={true}`. */
5
+ multiple: string;
6
+ /** Styles applied to the select component if `variant="filled"`. */
7
+ filled: string;
8
+ /** Styles applied to the select component if `variant="outlined"`. */
9
+ outlined: string;
10
+ /** Styles applied to the select component if `variant="standard"`. */
11
+ standard: string;
12
+ /** State class applied to the select component `disabled` class. */
13
+ disabled: string;
14
+ /** Styles applied to the icon component. */
15
+ icon: string;
16
+ /** Styles applied to the icon component if the popup is open. */
17
+ iconOpen: string;
18
+ /** Styles applied to the icon component if `variant="filled"`. */
19
+ iconFilled: string;
20
+ /** Styles applied to the icon component if `variant="outlined"`. */
21
+ iconOutlined: string;
22
+ /** Styles applied to the icon component if `variant="standard"`. */
23
+ iconStandard: string;
24
+ /** Styles applied to the underlying native input component. */
25
+ nativeInput: string;
26
+ /** State class applied to the root element if `error={true}`. */
27
+ error: string;
28
+ }
29
+ export type SelectClassKey = keyof SelectClasses;
30
+ export declare function getSelectUtilityClasses(slot: string): string;
31
+ declare const selectClasses: SelectClasses;
32
+ export default selectClasses;
@@ -1,26 +1,26 @@
1
- export interface SkeletonClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the root element if `variant="text"`. */
5
- text: string;
6
- /** Styles applied to the root element if `variant="rectangular"`. */
7
- rectangular: string;
8
- /** Styles applied to the root element if `variant="rounded"`. */
9
- rounded: string;
10
- /** Styles applied to the root element if `variant="circular"`. */
11
- circular: string;
12
- /** Styles applied to the root element if `animation="pulse"`. */
13
- pulse: string;
14
- /** Styles applied to the root element if `animation="wave"`. */
15
- wave: string;
16
- /** Styles applied when the component is passed children. */
17
- withChildren: string;
18
- /** Styles applied when the component is passed children and no width. */
19
- fitContent: string;
20
- /** Styles applied when the component is passed children and no height. */
21
- heightAuto: string;
22
- }
23
- export type SkeletonClassKey = keyof SkeletonClasses;
24
- export declare function getSkeletonUtilityClass(slot: string): string;
25
- declare const skeletonClasses: SkeletonClasses;
26
- export default skeletonClasses;
1
+ export interface SkeletonClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the root element if `variant="text"`. */
5
+ text: string;
6
+ /** Styles applied to the root element if `variant="rectangular"`. */
7
+ rectangular: string;
8
+ /** Styles applied to the root element if `variant="rounded"`. */
9
+ rounded: string;
10
+ /** Styles applied to the root element if `variant="circular"`. */
11
+ circular: string;
12
+ /** Styles applied to the root element if `animation="pulse"`. */
13
+ pulse: string;
14
+ /** Styles applied to the root element if `animation="wave"`. */
15
+ wave: string;
16
+ /** Styles applied when the component is passed children. */
17
+ withChildren: string;
18
+ /** Styles applied when the component is passed children and no width. */
19
+ fitContent: string;
20
+ /** Styles applied when the component is passed children and no height. */
21
+ heightAuto: string;
22
+ }
23
+ export type SkeletonClassKey = keyof SkeletonClasses;
24
+ export declare function getSkeletonUtilityClass(slot: string): string;
25
+ declare const skeletonClasses: SkeletonClasses;
26
+ export default skeletonClasses;
package/Slider/Slider.js CHANGED
@@ -509,7 +509,7 @@ const Slider = /*#__PURE__*/React.forwardRef(function Slider(inputProps, ref) {
509
509
  trackOffset,
510
510
  trackLeap
511
511
  } = useSlider(_extends({}, ownerState, {
512
- ref
512
+ rootRef: ref
513
513
  }));
514
514
  ownerState.marked = marks.length > 0 && marks.some(mark => mark.label);
515
515
  ownerState.dragging = dragging;
@@ -1,15 +1,15 @@
1
- import * as React from 'react';
2
- import PropTypes from 'prop-types';
3
- import { SliderValueLabelProps } from './SliderValueLabel.types';
4
- /**
5
- * @ignore - internal component.
6
- */
7
- declare function SliderValueLabel(props: SliderValueLabelProps): React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
8
- declare namespace SliderValueLabel {
9
- var propTypes: {
10
- children: PropTypes.Validator<PropTypes.ReactElementLike>;
11
- className: PropTypes.Requireable<string>;
12
- value: PropTypes.Requireable<PropTypes.ReactNodeLike>;
13
- };
14
- }
15
- export default SliderValueLabel;
1
+ import * as React from 'react';
2
+ import PropTypes from 'prop-types';
3
+ import { SliderValueLabelProps } from './SliderValueLabel.types';
4
+ /**
5
+ * @ignore - internal component.
6
+ */
7
+ declare function SliderValueLabel(props: SliderValueLabelProps): React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
8
+ declare namespace SliderValueLabel {
9
+ var propTypes: {
10
+ children: PropTypes.Validator<PropTypes.ReactElementLike>;
11
+ className: PropTypes.Requireable<string>;
12
+ value: PropTypes.Requireable<PropTypes.ReactNodeLike>;
13
+ };
14
+ }
15
+ export default SliderValueLabel;
@@ -1,24 +1,24 @@
1
- /// <reference types="react" />
2
- export interface SliderValueLabelProps {
3
- children?: React.ReactElement;
4
- className?: string;
5
- style?: React.CSSProperties;
6
- /**
7
- * If `true`, the value label is visible.
8
- */
9
- open: boolean;
10
- /**
11
- * The value of the slider.
12
- * For ranged sliders, provide an array with two values.
13
- */
14
- value: number;
15
- /**
16
- * Controls when the value label is displayed:
17
- *
18
- * - `auto` the value label will display when the thumb is hovered or focused.
19
- * - `on` will display persistently.
20
- * - `off` will never display.
21
- * @default 'off'
22
- */
23
- valueLabelDisplay?: 'on' | 'auto' | 'off';
24
- }
1
+ /// <reference types="react" />
2
+ export interface SliderValueLabelProps {
3
+ children?: React.ReactElement;
4
+ className?: string;
5
+ style?: React.CSSProperties;
6
+ /**
7
+ * If `true`, the value label is visible.
8
+ */
9
+ open: boolean;
10
+ /**
11
+ * The value of the slider.
12
+ * For ranged sliders, provide an array with two values.
13
+ */
14
+ value: number;
15
+ /**
16
+ * Controls when the value label is displayed:
17
+ *
18
+ * - `auto` the value label will display when the thumb is hovered or focused.
19
+ * - `on` will display persistently.
20
+ * - `off` will never display.
21
+ * @default 'off'
22
+ */
23
+ valueLabelDisplay?: 'on' | 'auto' | 'off';
24
+ }