@mui/material 5.11.5 → 5.11.6

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 (188) hide show
  1. package/Accordion/accordionClasses.d.ts +18 -18
  2. package/AccordionActions/accordionActionsClasses.d.ts +10 -10
  3. package/AccordionDetails/accordionDetailsClasses.d.ts +8 -8
  4. package/AccordionSummary/accordionSummaryClasses.d.ts +22 -22
  5. package/Alert/alertClasses.d.ts +44 -44
  6. package/AlertTitle/alertTitleClasses.d.ts +8 -8
  7. package/AppBar/appBarClasses.d.ts +28 -28
  8. package/Autocomplete/autocompleteClasses.d.ts +54 -54
  9. package/Avatar/avatarClasses.d.ts +20 -20
  10. package/AvatarGroup/avatarGroupClasses.d.ts +10 -10
  11. package/Backdrop/backdropClasses.d.ts +10 -10
  12. package/Badge/badgeClasses.d.ts +56 -56
  13. package/BottomNavigation/BottomNavigation.js +0 -0
  14. package/BottomNavigation/bottomNavigationClasses.d.ts +8 -8
  15. package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +14 -14
  16. package/Box/Box.d.ts +3 -2
  17. package/Breadcrumbs/breadcrumbsClasses.d.ts +14 -14
  18. package/Button/Button.js +0 -2
  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/ButtonGroupContext.d.ts +18 -18
  23. package/ButtonGroup/buttonGroupClasses.d.ts +58 -58
  24. package/CHANGELOG.md +74 -0
  25. package/Card/cardClasses.d.ts +8 -8
  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/chipClasses.d.ts +96 -96
  33. package/CircularProgress/circularProgressClasses.d.ts +26 -26
  34. package/ClickAwayListener/index.d.ts +2 -2
  35. package/Collapse/collapseClasses.d.ts +18 -18
  36. package/Container/containerClasses.d.ts +6 -6
  37. package/Dialog/DialogContext.d.ts +6 -6
  38. package/Dialog/dialogClasses.d.ts +36 -36
  39. package/DialogActions/dialogActionsClasses.d.ts +10 -10
  40. package/DialogContent/dialogContentClasses.d.ts +10 -10
  41. package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
  42. package/DialogTitle/dialogTitleClasses.d.ts +8 -8
  43. package/Divider/dividerClasses.d.ts +34 -34
  44. package/Drawer/drawerClasses.d.ts +30 -30
  45. package/Fab/fabClasses.d.ts +26 -26
  46. package/FilledInput/filledInputClasses.d.ts +40 -40
  47. package/FormControl/FormControlContext.d.ts +17 -17
  48. package/FormControl/formControlClasses.d.ts +14 -14
  49. package/FormControl/useFormControl.d.ts +2 -2
  50. package/FormControlLabel/formControlLabelClasses.d.ts +20 -20
  51. package/FormGroup/formGroupClasses.d.ts +12 -12
  52. package/FormHelperText/formHelperTextClasses.d.ts +22 -22
  53. package/FormLabel/formLabelClasses.d.ts +22 -22
  54. package/Grid/gridClasses.d.ts +48 -48
  55. package/Icon/iconClasses.d.ts +24 -24
  56. package/IconButton/iconButtonClasses.d.ts +34 -34
  57. package/ImageList/imageListClasses.d.ts +16 -16
  58. package/ImageListItem/imageListItemClasses.d.ts +18 -18
  59. package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
  60. package/Input/inputClasses.d.ts +34 -34
  61. package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
  62. package/InputBase/inputBaseClasses.d.ts +46 -46
  63. package/InputLabel/inputLabelClasses.d.ts +32 -32
  64. package/LinearProgress/linearProgressClasses.d.ts +42 -42
  65. package/Link/getTextDecoration.d.ts +15 -15
  66. package/Link/linkClasses.d.ts +18 -18
  67. package/List/listClasses.d.ts +14 -14
  68. package/ListItem/listItemClasses.d.ts +30 -30
  69. package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
  70. package/ListItemButton/listItemButtonClasses.d.ts +22 -22
  71. package/ListItemIcon/listItemIconClasses.d.ts +10 -10
  72. package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
  73. package/ListItemText/listItemTextClasses.d.ts +18 -18
  74. package/ListSubheader/listSubheaderClasses.d.ts +18 -18
  75. package/Menu/menuClasses.d.ts +12 -12
  76. package/MenuItem/menuItemClasses.d.ts +20 -20
  77. package/MobileStepper/mobileStepperClasses.d.ts +22 -22
  78. package/NativeSelect/nativeSelectClasses.d.ts +32 -32
  79. package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
  80. package/Pagination/paginationClasses.d.ts +14 -14
  81. package/PaginationItem/paginationItemClasses.d.ts +42 -42
  82. package/Paper/paperClasses.d.ts +39 -39
  83. package/Popover/popoverClasses.d.ts +10 -10
  84. package/Popper/Popper.d.ts +37 -37
  85. package/Radio/radioClasses.d.ts +16 -16
  86. package/RadioGroup/RadioGroupContext.d.ts +11 -11
  87. package/RadioGroup/useRadioGroup.d.ts +4 -4
  88. package/Rating/ratingClasses.d.ts +40 -40
  89. package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
  90. package/Select/selectClasses.d.ts +30 -30
  91. package/Skeleton/skeletonClasses.d.ts +26 -26
  92. package/Slider/Slider.d.ts +215 -35
  93. package/Slider/Slider.js +7 -7
  94. package/Slider/SliderValueLabel.d.ts +15 -15
  95. package/Slider/SliderValueLabel.js +3 -0
  96. package/Slider/SliderValueLabel.types.d.ts +24 -24
  97. package/Slider/index.d.ts +2 -0
  98. package/Slider/index.js +2 -1
  99. package/Slider/sliderClasses.d.ts +58 -29
  100. package/Slider/sliderClasses.js +5 -3
  101. package/Snackbar/snackbarClasses.d.ts +20 -20
  102. package/SnackbarContent/snackbarContentClasses.d.ts +12 -12
  103. package/SpeedDial/speedDialClasses.d.ts +22 -22
  104. package/SpeedDialAction/speedDialActionClasses.d.ts +20 -20
  105. package/SpeedDialIcon/speedDialIconClasses.d.ts +18 -18
  106. package/Step/StepContext.d.ts +20 -20
  107. package/Step/stepClasses.d.ts +16 -16
  108. package/StepButton/stepButtonClasses.d.ts +14 -14
  109. package/StepConnector/stepConnectorClasses.d.ts +26 -26
  110. package/StepContent/stepContentClasses.d.ts +12 -12
  111. package/StepIcon/stepIconClasses.d.ts +16 -16
  112. package/StepLabel/stepLabelClasses.d.ts +28 -28
  113. package/Stepper/StepperContext.d.ts +18 -18
  114. package/Stepper/stepperClasses.d.ts +14 -14
  115. package/SvgIcon/svgIconClasses.d.ts +26 -26
  116. package/SwipeableDrawer/SwipeableDrawer.d.ts +15 -0
  117. package/SwipeableDrawer/SwipeableDrawer.js +48 -17
  118. package/Switch/switchClasses.d.ts +32 -32
  119. package/Tab/tabClasses.d.ts +26 -26
  120. package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
  121. package/Table/tableClasses.d.ts +10 -10
  122. package/TableBody/tableBodyClasses.d.ts +8 -8
  123. package/TableCell/tableCellClasses.d.ts +32 -32
  124. package/TableContainer/tableContainerClasses.d.ts +8 -8
  125. package/TableFooter/tableFooterClasses.d.ts +8 -8
  126. package/TableHead/tableHeadClasses.d.ts +8 -8
  127. package/TablePagination/tablePaginationClasses.d.ts +28 -28
  128. package/TableRow/tableRowClasses.d.ts +16 -16
  129. package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
  130. package/Tabs/tabsClasses.d.ts +32 -32
  131. package/TextField/textFieldClasses.d.ts +8 -8
  132. package/ToggleButton/toggleButtonClasses.d.ts +24 -24
  133. package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
  134. package/Toolbar/toolbarClasses.d.ts +14 -14
  135. package/Tooltip/tooltipClasses.d.ts +30 -30
  136. package/Typography/typographyClasses.d.ts +50 -50
  137. package/Unstable_Grid2/Grid2.d.ts +4 -4
  138. package/Unstable_Grid2/Grid2Props.d.ts +15 -15
  139. package/Unstable_Grid2/grid2Classes.d.ts +5 -5
  140. package/Unstable_Grid2/index.d.ts +4 -4
  141. package/className/index.d.ts +1 -1
  142. package/darkScrollbar/index.d.ts +28 -28
  143. package/generateUtilityClass/index.d.ts +2 -2
  144. package/generateUtilityClasses/index.d.ts +1 -1
  145. package/index.js +1 -1
  146. package/internal/switchBaseClasses.d.ts +12 -12
  147. package/legacy/BottomNavigation/BottomNavigation.js +0 -0
  148. package/legacy/Button/Button.js +0 -2
  149. package/legacy/Slider/Slider.js +7 -7
  150. package/legacy/Slider/SliderValueLabel.js +3 -0
  151. package/legacy/Slider/index.js +2 -1
  152. package/legacy/Slider/sliderClasses.js +5 -3
  153. package/legacy/SwipeableDrawer/SwipeableDrawer.js +50 -17
  154. package/legacy/index.js +1 -1
  155. package/locale/index.d.ts +75 -75
  156. package/modern/BottomNavigation/BottomNavigation.js +0 -0
  157. package/modern/Button/Button.js +0 -2
  158. package/modern/Slider/Slider.js +7 -7
  159. package/modern/Slider/SliderValueLabel.js +3 -0
  160. package/modern/Slider/index.js +2 -1
  161. package/modern/Slider/sliderClasses.js +5 -3
  162. package/modern/SwipeableDrawer/SwipeableDrawer.js +47 -17
  163. package/modern/index.js +1 -1
  164. package/node/BottomNavigation/BottomNavigation.js +0 -0
  165. package/node/Button/Button.js +0 -2
  166. package/node/Slider/Slider.js +6 -6
  167. package/node/Slider/SliderValueLabel.js +3 -0
  168. package/node/Slider/index.js +12 -2
  169. package/node/Slider/sliderClasses.js +6 -3
  170. package/node/SwipeableDrawer/SwipeableDrawer.js +48 -17
  171. package/node/index.js +1 -1
  172. package/package.json +3 -3
  173. package/styles/CssVarsProvider.d.ts +16 -16
  174. package/styles/excludeVariablesFromRoot.d.ts +5 -5
  175. package/styles/getOverlayAlpha.d.ts +2 -2
  176. package/transitions/index.d.ts +1 -1
  177. package/transitions/transition.d.ts +13 -13
  178. package/transitions/utils.d.ts +23 -23
  179. package/types/OverridableComponentAugmentation.d.ts +31 -31
  180. package/umd/material-ui.development.js +63 -33
  181. package/umd/material-ui.production.min.js +20 -20
  182. package/useMediaQuery/useMediaQuery.d.ts +31 -31
  183. package/useTouchRipple/index.d.ts +1 -1
  184. package/useTouchRipple/useTouchRipple.d.ts +28 -28
  185. package/utils/getScrollbarSize.d.ts +2 -2
  186. package/utils/ownerDocument.d.ts +2 -2
  187. package/utils/ownerWindow.d.ts +2 -2
  188. package/utils/setRef.d.ts +2 -2
@@ -1,7 +1,7 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
3
  const _excluded = ["BackdropProps"],
4
- _excluded2 = ["anchor", "disableBackdropTransition", "disableDiscovery", "disableSwipeToOpen", "hideBackdrop", "hysteresis", "minFlingVelocity", "ModalProps", "onClose", "onOpen", "open", "PaperProps", "SwipeAreaProps", "swipeAreaWidth", "transitionDuration", "variant"];
4
+ _excluded2 = ["anchor", "disableBackdropTransition", "disableDiscovery", "disableSwipeToOpen", "hideBackdrop", "hysteresis", "allowSwipeInChildren", "minFlingVelocity", "ModalProps", "onClose", "onOpen", "open", "PaperProps", "SwipeAreaProps", "swipeAreaWidth", "transitionDuration", "variant"];
5
5
  import * as React from 'react';
6
6
  import { flushSync } from 'react-dom';
7
7
  import PropTypes from 'prop-types';
@@ -133,6 +133,7 @@ const SwipeableDrawer = /*#__PURE__*/React.forwardRef(function SwipeableDrawer(i
133
133
  disableSwipeToOpen = iOS,
134
134
  hideBackdrop,
135
135
  hysteresis = 0.52,
136
+ allowSwipeInChildren = false,
136
137
  minFlingVelocity = 450,
137
138
  ModalProps: {
138
139
  BackdropProps
@@ -252,6 +253,30 @@ const SwipeableDrawer = /*#__PURE__*/React.forwardRef(function SwipeableDrawer(i
252
253
  });
253
254
  }
254
255
  });
256
+ const startMaybeSwiping = (force = false) => {
257
+ if (!maybeSwiping) {
258
+ // on Safari Mobile, if you want to be able to have the 'click' event fired on child elements, nothing in the DOM can be changed.
259
+ // this is because Safari Mobile will not fire any mouse events (still fires touch though) if the DOM changes during mousemove.
260
+ // so do this change on first touchmove instead of touchstart
261
+ if (force || !(disableDiscovery && allowSwipeInChildren)) {
262
+ flushSync(() => {
263
+ setMaybeSwiping(true);
264
+ });
265
+ }
266
+ const horizontalSwipe = isHorizontal(anchor);
267
+ if (!open && paperRef.current) {
268
+ // The ref may be null when a parent component updates while swiping.
269
+ setPosition(getMaxTranslate(horizontalSwipe, paperRef.current) + (disableDiscovery ? 15 : -DRAG_STARTED_SIGNAL), {
270
+ changeTransition: false
271
+ });
272
+ }
273
+ swipeInstance.current.velocity = 0;
274
+ swipeInstance.current.lastTime = null;
275
+ swipeInstance.current.lastTranslate = null;
276
+ swipeInstance.current.paperHit = false;
277
+ touchDetected.current = true;
278
+ }
279
+ };
255
280
  const handleBodyTouchMove = useEventCallback(nativeEvent => {
256
281
  // the ref may be null when a parent component updates while swiping
257
282
  if (!paperRef.current || !touchDetected.current) {
@@ -262,6 +287,7 @@ const SwipeableDrawer = /*#__PURE__*/React.forwardRef(function SwipeableDrawer(i
262
287
  if (claimedSwipeInstance !== null && claimedSwipeInstance !== swipeInstance.current) {
263
288
  return;
264
289
  }
290
+ startMaybeSwiping(true);
265
291
  const anchorRtl = getAnchor(theme, anchor);
266
292
  const horizontalSwipe = isHorizontal(anchor);
267
293
  const currentX = calculateCurrentX(anchorRtl, nativeEvent.touches, ownerDocument(nativeEvent.currentTarget));
@@ -372,7 +398,12 @@ const SwipeableDrawer = /*#__PURE__*/React.forwardRef(function SwipeableDrawer(i
372
398
  const currentX = calculateCurrentX(anchorRtl, nativeEvent.touches, ownerDocument(nativeEvent.currentTarget));
373
399
  const currentY = calculateCurrentY(anchorRtl, nativeEvent.touches, ownerWindow(nativeEvent.currentTarget));
374
400
  if (!open) {
375
- if (disableSwipeToOpen || nativeEvent.target !== swipeAreaRef.current) {
401
+ var _paperRef$current;
402
+ // logic for if swipe should be ignored:
403
+ // if disableSwipeToOpen
404
+ // if target != swipeArea, and target is not a child of paper ref
405
+ // if is a child of paper ref, and `allowSwipeInChildren` does not allow it
406
+ if (disableSwipeToOpen || !(nativeEvent.target === swipeAreaRef.current || (_paperRef$current = paperRef.current) != null && _paperRef$current.contains(nativeEvent.target) && (typeof allowSwipeInChildren === 'function' ? allowSwipeInChildren(nativeEvent, swipeAreaRef.current, paperRef.current) : allowSwipeInChildren))) {
376
407
  return;
377
408
  }
378
409
  if (horizontalSwipe) {
@@ -387,20 +418,7 @@ const SwipeableDrawer = /*#__PURE__*/React.forwardRef(function SwipeableDrawer(i
387
418
  claimedSwipeInstance = null;
388
419
  swipeInstance.current.startX = currentX;
389
420
  swipeInstance.current.startY = currentY;
390
- flushSync(() => {
391
- setMaybeSwiping(true);
392
- });
393
- if (!open && paperRef.current) {
394
- // The ref may be null when a parent component updates while swiping.
395
- setPosition(getMaxTranslate(horizontalSwipe, paperRef.current) + (disableDiscovery ? 15 : -DRAG_STARTED_SIGNAL), {
396
- changeTransition: false
397
- });
398
- }
399
- swipeInstance.current.velocity = 0;
400
- swipeInstance.current.lastTime = null;
401
- swipeInstance.current.lastTranslate = null;
402
- swipeInstance.current.paperHit = false;
403
- touchDetected.current = true;
421
+ startMaybeSwiping();
404
422
  });
405
423
  React.useEffect(() => {
406
424
  if (variant === 'temporary') {
@@ -448,7 +466,7 @@ const SwipeableDrawer = /*#__PURE__*/React.forwardRef(function SwipeableDrawer(i
448
466
  hideBackdrop: hideBackdrop,
449
467
  PaperProps: _extends({}, PaperProps, {
450
468
  style: _extends({
451
- pointerEvents: variant === 'temporary' && !open ? 'none' : ''
469
+ pointerEvents: variant === 'temporary' && !open && !allowSwipeInChildren ? 'none' : ''
452
470
  }, PaperProps.style),
453
471
  ref: handleRef
454
472
  }),
@@ -470,6 +488,19 @@ process.env.NODE_ENV !== "production" ? SwipeableDrawer.propTypes /* remove-prop
470
488
  // | These PropTypes are generated from the TypeScript type definitions |
471
489
  // | To update them edit the d.ts file and run "yarn proptypes" |
472
490
  // ----------------------------------------------------------------------
491
+ /**
492
+ * If set to true, the swipe event will open the drawer even if the user begins the swipe on one of the drawer's children.
493
+ * This can be useful in scenarios where the drawer is partially visible.
494
+ * You can customize it further with a callback that determines which children the user can drag over to open the drawer
495
+ * (for example, to ignore other elements that handle touch move events, like sliders).
496
+ *
497
+ * @param {TouchEvent} event The 'touchstart' event
498
+ * @param {HTMLDivElement} swipeArea The swipe area element
499
+ * @param {HTMLDivElement} paper The drawer's paper element
500
+ *
501
+ * @default false
502
+ */
503
+ allowSwipeInChildren: PropTypes.oneOfType([PropTypes.bool, PropTypes.func]),
473
504
  /**
474
505
  * @ignore
475
506
  */
@@ -1,32 +1,32 @@
1
- export interface SwitchClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the root element if `edge="start"`. */
5
- edgeStart: string;
6
- /** Styles applied to the root element if `edge="end"`. */
7
- edgeEnd: string;
8
- /** Styles applied to the internal `SwitchBase` component's `root` class. */
9
- switchBase: string;
10
- /** Styles applied to the internal SwitchBase component's root element if `color="primary"`. */
11
- colorPrimary: string;
12
- /** Styles applied to the internal SwitchBase component's root element if `color="secondary"`. */
13
- colorSecondary: string;
14
- /** Styles applied to the root element if `size="small"`. */
15
- sizeSmall: string;
16
- /** Styles applied to the root element if `size="medium"`. */
17
- sizeMedium: string;
18
- /** State class applied to the internal `SwitchBase` component's `checked` class. */
19
- checked: string;
20
- /** State class applied to the internal SwitchBase component's disabled class. */
21
- disabled: string;
22
- /** Styles applied to the internal SwitchBase component's input element. */
23
- input: string;
24
- /** Styles used to create the thumb passed to the internal `SwitchBase` component `icon` prop. */
25
- thumb: string;
26
- /** Styles applied to the track element. */
27
- track: string;
28
- }
29
- export type SwitchClassKey = keyof SwitchClasses;
30
- export declare function getSwitchUtilityClass(slot: string): string;
31
- declare const switchClasses: SwitchClasses;
32
- export default switchClasses;
1
+ export interface SwitchClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the root element if `edge="start"`. */
5
+ edgeStart: string;
6
+ /** Styles applied to the root element if `edge="end"`. */
7
+ edgeEnd: string;
8
+ /** Styles applied to the internal `SwitchBase` component's `root` class. */
9
+ switchBase: string;
10
+ /** Styles applied to the internal SwitchBase component's root element if `color="primary"`. */
11
+ colorPrimary: string;
12
+ /** Styles applied to the internal SwitchBase component's root element if `color="secondary"`. */
13
+ colorSecondary: string;
14
+ /** Styles applied to the root element if `size="small"`. */
15
+ sizeSmall: string;
16
+ /** Styles applied to the root element if `size="medium"`. */
17
+ sizeMedium: string;
18
+ /** State class applied to the internal `SwitchBase` component's `checked` class. */
19
+ checked: string;
20
+ /** State class applied to the internal SwitchBase component's disabled class. */
21
+ disabled: string;
22
+ /** Styles applied to the internal SwitchBase component's input element. */
23
+ input: string;
24
+ /** Styles used to create the thumb passed to the internal `SwitchBase` component `icon` prop. */
25
+ thumb: string;
26
+ /** Styles applied to the track element. */
27
+ track: string;
28
+ }
29
+ export type SwitchClassKey = keyof SwitchClasses;
30
+ export declare function getSwitchUtilityClass(slot: string): string;
31
+ declare const switchClasses: SwitchClasses;
32
+ export default switchClasses;
@@ -1,26 +1,26 @@
1
- export interface TabClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the root element if both `icon` and `label` are provided. */
5
- labelIcon: string;
6
- /** Styles applied to the root element if the parent [`Tabs`](/material-ui/api/tabs/) has `textColor="inherit"`. */
7
- textColorInherit: string;
8
- /** Styles applied to the root element if the parent [`Tabs`](/material-ui/api/tabs/) has `textColor="primary"`. */
9
- textColorPrimary: string;
10
- /** Styles applied to the root element if the parent [`Tabs`](/material-ui/api/tabs/) has `textColor="secondary"`. */
11
- textColorSecondary: string;
12
- /** State class applied to the root element if `selected={true}` (controlled by the Tabs component). */
13
- selected: string;
14
- /** State class applied to the root element if `disabled={true}` (controlled by the Tabs component). */
15
- disabled: string;
16
- /** Styles applied to the root element if `fullWidth={true}` (controlled by the Tabs component). */
17
- fullWidth: string;
18
- /** Styles applied to the root element if `wrapped={true}`. */
19
- wrapped: string;
20
- /** Styles applied to the wrapper element of `icon` if `icon` is provided. */
21
- iconWrapper: string;
22
- }
23
- export type TabClassKey = keyof TabClasses;
24
- export declare function getTabUtilityClass(slot: string): string;
25
- declare const tabClasses: TabClasses;
26
- export default tabClasses;
1
+ export interface TabClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the root element if both `icon` and `label` are provided. */
5
+ labelIcon: string;
6
+ /** Styles applied to the root element if the parent [`Tabs`](/material-ui/api/tabs/) has `textColor="inherit"`. */
7
+ textColorInherit: string;
8
+ /** Styles applied to the root element if the parent [`Tabs`](/material-ui/api/tabs/) has `textColor="primary"`. */
9
+ textColorPrimary: string;
10
+ /** Styles applied to the root element if the parent [`Tabs`](/material-ui/api/tabs/) has `textColor="secondary"`. */
11
+ textColorSecondary: string;
12
+ /** State class applied to the root element if `selected={true}` (controlled by the Tabs component). */
13
+ selected: string;
14
+ /** State class applied to the root element if `disabled={true}` (controlled by the Tabs component). */
15
+ disabled: string;
16
+ /** Styles applied to the root element if `fullWidth={true}` (controlled by the Tabs component). */
17
+ fullWidth: string;
18
+ /** Styles applied to the root element if `wrapped={true}`. */
19
+ wrapped: string;
20
+ /** Styles applied to the wrapper element of `icon` if `icon` is provided. */
21
+ iconWrapper: string;
22
+ }
23
+ export type TabClassKey = keyof TabClasses;
24
+ export declare function getTabUtilityClass(slot: string): string;
25
+ declare const tabClasses: TabClasses;
26
+ export default tabClasses;
@@ -1,12 +1,12 @@
1
- export interface TabScrollButtonClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the root element if `orientation="vertical"`. */
5
- vertical: string;
6
- /** State class applied to the root element if `disabled={true}`. */
7
- disabled: string;
8
- }
9
- export type TabScrollButtonClassKey = keyof TabScrollButtonClasses;
10
- export declare function getTabScrollButtonUtilityClass(slot: string): string;
11
- declare const tabScrollButtonClasses: TabScrollButtonClasses;
12
- export default tabScrollButtonClasses;
1
+ export interface TabScrollButtonClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the root element if `orientation="vertical"`. */
5
+ vertical: string;
6
+ /** State class applied to the root element if `disabled={true}`. */
7
+ disabled: string;
8
+ }
9
+ export type TabScrollButtonClassKey = keyof TabScrollButtonClasses;
10
+ export declare function getTabScrollButtonUtilityClass(slot: string): string;
11
+ declare const tabScrollButtonClasses: TabScrollButtonClasses;
12
+ export default tabScrollButtonClasses;
@@ -1,10 +1,10 @@
1
- export interface TableClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the root element if `stickyHeader={true}`. */
5
- stickyHeader: string;
6
- }
7
- export type TableClassKey = keyof TableClasses;
8
- export declare function getTableUtilityClass(slot: string): string;
9
- declare const tableClasses: TableClasses;
10
- export default tableClasses;
1
+ export interface TableClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the root element if `stickyHeader={true}`. */
5
+ stickyHeader: string;
6
+ }
7
+ export type TableClassKey = keyof TableClasses;
8
+ export declare function getTableUtilityClass(slot: string): string;
9
+ declare const tableClasses: TableClasses;
10
+ export default tableClasses;
@@ -1,8 +1,8 @@
1
- export interface TableBodyClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- }
5
- export type TableBodyClassKey = keyof TableBodyClasses;
6
- export declare function getTableBodyUtilityClass(slot: string): string;
7
- declare const tableBodyClasses: TableBodyClasses;
8
- export default tableBodyClasses;
1
+ export interface TableBodyClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ }
5
+ export type TableBodyClassKey = keyof TableBodyClasses;
6
+ export declare function getTableBodyUtilityClass(slot: string): string;
7
+ declare const tableBodyClasses: TableBodyClasses;
8
+ export default tableBodyClasses;
@@ -1,32 +1,32 @@
1
- export interface TableCellClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the root element if `variant="head"` or `context.table.head`. */
5
- head: string;
6
- /** Styles applied to the root element if `variant="body"` or `context.table.body`. */
7
- body: string;
8
- /** Styles applied to the root element if `variant="footer"` or `context.table.footer`. */
9
- footer: string;
10
- /** Styles applied to the root element if `size="small"`. */
11
- sizeSmall: string;
12
- /** Styles applied to the root element if `size="medium"`. */
13
- sizeMedium: string;
14
- /** Styles applied to the root element if `padding="checkbox"`. */
15
- paddingCheckbox: string;
16
- /** Styles applied to the root element if `padding="none"`. */
17
- paddingNone: string;
18
- /** Styles applied to the root element if `align="left"`. */
19
- alignLeft: string;
20
- /** Styles applied to the root element if `align="center"`. */
21
- alignCenter: string;
22
- /** Styles applied to the root element if `align="right"`. */
23
- alignRight: string;
24
- /** Styles applied to the root element if `align="justify"`. */
25
- alignJustify: string;
26
- /** Styles applied to the root element if `context.table.stickyHeader={true}`. */
27
- stickyHeader: string;
28
- }
29
- export type TableCellClassKey = keyof TableCellClasses;
30
- export declare function getTableCellUtilityClass(slot: string): string;
31
- declare const tableCellClasses: TableCellClasses;
32
- export default tableCellClasses;
1
+ export interface TableCellClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the root element if `variant="head"` or `context.table.head`. */
5
+ head: string;
6
+ /** Styles applied to the root element if `variant="body"` or `context.table.body`. */
7
+ body: string;
8
+ /** Styles applied to the root element if `variant="footer"` or `context.table.footer`. */
9
+ footer: string;
10
+ /** Styles applied to the root element if `size="small"`. */
11
+ sizeSmall: string;
12
+ /** Styles applied to the root element if `size="medium"`. */
13
+ sizeMedium: string;
14
+ /** Styles applied to the root element if `padding="checkbox"`. */
15
+ paddingCheckbox: string;
16
+ /** Styles applied to the root element if `padding="none"`. */
17
+ paddingNone: string;
18
+ /** Styles applied to the root element if `align="left"`. */
19
+ alignLeft: string;
20
+ /** Styles applied to the root element if `align="center"`. */
21
+ alignCenter: string;
22
+ /** Styles applied to the root element if `align="right"`. */
23
+ alignRight: string;
24
+ /** Styles applied to the root element if `align="justify"`. */
25
+ alignJustify: string;
26
+ /** Styles applied to the root element if `context.table.stickyHeader={true}`. */
27
+ stickyHeader: string;
28
+ }
29
+ export type TableCellClassKey = keyof TableCellClasses;
30
+ export declare function getTableCellUtilityClass(slot: string): string;
31
+ declare const tableCellClasses: TableCellClasses;
32
+ export default tableCellClasses;
@@ -1,8 +1,8 @@
1
- export interface TableContainerClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- }
5
- export type TableContainerClassKey = keyof TableContainerClasses;
6
- export declare function getTableContainerUtilityClass(slot: string): string;
7
- declare const tableContainerClasses: TableContainerClasses;
8
- export default tableContainerClasses;
1
+ export interface TableContainerClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ }
5
+ export type TableContainerClassKey = keyof TableContainerClasses;
6
+ export declare function getTableContainerUtilityClass(slot: string): string;
7
+ declare const tableContainerClasses: TableContainerClasses;
8
+ export default tableContainerClasses;
@@ -1,8 +1,8 @@
1
- export interface TableFooterClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- }
5
- export type TableFooterClassKey = keyof TableFooterClasses;
6
- export declare function getTableFooterUtilityClass(slot: string): string;
7
- declare const tableFooterClasses: TableFooterClasses;
8
- export default tableFooterClasses;
1
+ export interface TableFooterClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ }
5
+ export type TableFooterClassKey = keyof TableFooterClasses;
6
+ export declare function getTableFooterUtilityClass(slot: string): string;
7
+ declare const tableFooterClasses: TableFooterClasses;
8
+ export default tableFooterClasses;
@@ -1,8 +1,8 @@
1
- export interface TableHeadClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- }
5
- export type TableHeadClassKey = keyof TableHeadClasses;
6
- export declare function getTableHeadUtilityClass(slot: string): string;
7
- declare const tableHeadClasses: TableHeadClasses;
8
- export default tableHeadClasses;
1
+ export interface TableHeadClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ }
5
+ export type TableHeadClassKey = keyof TableHeadClasses;
6
+ export declare function getTableHeadUtilityClass(slot: string): string;
7
+ declare const tableHeadClasses: TableHeadClasses;
8
+ export default tableHeadClasses;
@@ -1,28 +1,28 @@
1
- export interface TablePaginationClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the Toolbar component. */
5
- toolbar: string;
6
- /** Styles applied to the spacer element. */
7
- spacer: string;
8
- /** Styles applied to the select label Typography element. */
9
- selectLabel: string;
10
- /** Styles applied to the Select component `root` element. */
11
- selectRoot: string;
12
- /** Styles applied to the Select component `select` class. */
13
- select: string;
14
- /** Styles applied to the Select component `icon` class. */
15
- selectIcon: string;
16
- /** Styles applied to the Select component `root` element. */
17
- input: string;
18
- /** Styles applied to the MenuItem component. */
19
- menuItem: string;
20
- /** Styles applied to the displayed rows Typography element. */
21
- displayedRows: string;
22
- /** Styles applied to the internal `TablePaginationActions` component. */
23
- actions: string;
24
- }
25
- export type TablePaginationClassKey = keyof TablePaginationClasses;
26
- export declare function getTablePaginationUtilityClass(slot: string): string;
27
- declare const tablePaginationClasses: TablePaginationClasses;
28
- export default tablePaginationClasses;
1
+ export interface TablePaginationClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the Toolbar component. */
5
+ toolbar: string;
6
+ /** Styles applied to the spacer element. */
7
+ spacer: string;
8
+ /** Styles applied to the select label Typography element. */
9
+ selectLabel: string;
10
+ /** Styles applied to the Select component `root` element. */
11
+ selectRoot: string;
12
+ /** Styles applied to the Select component `select` class. */
13
+ select: string;
14
+ /** Styles applied to the Select component `icon` class. */
15
+ selectIcon: string;
16
+ /** Styles applied to the Select component `root` element. */
17
+ input: string;
18
+ /** Styles applied to the MenuItem component. */
19
+ menuItem: string;
20
+ /** Styles applied to the displayed rows Typography element. */
21
+ displayedRows: string;
22
+ /** Styles applied to the internal `TablePaginationActions` component. */
23
+ actions: string;
24
+ }
25
+ export type TablePaginationClassKey = keyof TablePaginationClasses;
26
+ export declare function getTablePaginationUtilityClass(slot: string): string;
27
+ declare const tablePaginationClasses: TablePaginationClasses;
28
+ export default tablePaginationClasses;
@@ -1,16 +1,16 @@
1
- export interface TableRowClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** State class applied to the root element if `selected={true}`. */
5
- selected: string;
6
- /** State class applied to the root element if `hover={true}`. */
7
- hover: string;
8
- /** Styles applied to the root element if table variant="head". */
9
- head: string;
10
- /** Styles applied to the root element if table variant="footer". */
11
- footer: string;
12
- }
13
- export type TableRowClassKey = keyof TableRowClasses;
14
- export declare function getTableRowUtilityClass(slot: string): string;
15
- declare const tableRowClasses: TableRowClasses;
16
- export default tableRowClasses;
1
+ export interface TableRowClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** State class applied to the root element if `selected={true}`. */
5
+ selected: string;
6
+ /** State class applied to the root element if `hover={true}`. */
7
+ hover: string;
8
+ /** Styles applied to the root element if table variant="head". */
9
+ head: string;
10
+ /** Styles applied to the root element if table variant="footer". */
11
+ footer: string;
12
+ }
13
+ export type TableRowClassKey = keyof TableRowClasses;
14
+ export declare function getTableRowUtilityClass(slot: string): string;
15
+ declare const tableRowClasses: TableRowClasses;
16
+ export default tableRowClasses;
@@ -1,16 +1,16 @@
1
- export interface TableSortLabelClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** State class applied to the root element if `active={true}`. */
5
- active: string;
6
- /** Styles applied to the icon component. */
7
- icon: string;
8
- /** Styles applied to the icon component if `direction="desc"`. */
9
- iconDirectionDesc: string;
10
- /** Styles applied to the icon component if `direction="asc"`. */
11
- iconDirectionAsc: string;
12
- }
13
- export type TableSortLabelClassKey = keyof TableSortLabelClasses;
14
- export declare function getTableSortLabelUtilityClass(slot: string): string;
15
- declare const tableSortLabelClasses: TableSortLabelClasses;
16
- export default tableSortLabelClasses;
1
+ export interface TableSortLabelClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** State class applied to the root element if `active={true}`. */
5
+ active: string;
6
+ /** Styles applied to the icon component. */
7
+ icon: string;
8
+ /** Styles applied to the icon component if `direction="desc"`. */
9
+ iconDirectionDesc: string;
10
+ /** Styles applied to the icon component if `direction="asc"`. */
11
+ iconDirectionAsc: string;
12
+ }
13
+ export type TableSortLabelClassKey = keyof TableSortLabelClasses;
14
+ export declare function getTableSortLabelUtilityClass(slot: string): string;
15
+ declare const tableSortLabelClasses: TableSortLabelClasses;
16
+ export default tableSortLabelClasses;
@@ -1,32 +1,32 @@
1
- export interface TabsClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the root element if `orientation="vertical"`. */
5
- vertical: string;
6
- /** Styles applied to the flex container element. */
7
- flexContainer: string;
8
- /** Styles applied to the flex container element if `orientation="vertical"`. */
9
- flexContainerVertical: string;
10
- /** Styles applied to the flex container element if `centered={true}` & `!variant="scrollable"`. */
11
- centered: string;
12
- /** Styles applied to the tablist element. */
13
- scroller: string;
14
- /** Styles applied to the tablist element if `!variant="scrollable"`. */
15
- fixed: string;
16
- /** Styles applied to the tablist element if `variant="scrollable"` and `orientation="horizontal"`. */
17
- scrollableX: string;
18
- /** Styles applied to the tablist element if `variant="scrollable"` and `orientation="vertical"`. */
19
- scrollableY: string;
20
- /** Styles applied to the tablist element if `variant="scrollable"` and `visibleScrollbar={false}`. */
21
- hideScrollbar: string;
22
- /** Styles applied to the ScrollButtonComponent component. */
23
- scrollButtons: string;
24
- /** Styles applied to the ScrollButtonComponent component if `allowScrollButtonsMobile={true}`. */
25
- scrollButtonsHideMobile: string;
26
- /** Styles applied to the TabIndicator component. */
27
- indicator: string;
28
- }
29
- export type TabsClassKey = keyof TabsClasses;
30
- export declare function getTabsUtilityClass(slot: string): string;
31
- declare const tabsClasses: TabsClasses;
32
- export default tabsClasses;
1
+ export interface TabsClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the root element if `orientation="vertical"`. */
5
+ vertical: string;
6
+ /** Styles applied to the flex container element. */
7
+ flexContainer: string;
8
+ /** Styles applied to the flex container element if `orientation="vertical"`. */
9
+ flexContainerVertical: string;
10
+ /** Styles applied to the flex container element if `centered={true}` & `!variant="scrollable"`. */
11
+ centered: string;
12
+ /** Styles applied to the tablist element. */
13
+ scroller: string;
14
+ /** Styles applied to the tablist element if `!variant="scrollable"`. */
15
+ fixed: string;
16
+ /** Styles applied to the tablist element if `variant="scrollable"` and `orientation="horizontal"`. */
17
+ scrollableX: string;
18
+ /** Styles applied to the tablist element if `variant="scrollable"` and `orientation="vertical"`. */
19
+ scrollableY: string;
20
+ /** Styles applied to the tablist element if `variant="scrollable"` and `visibleScrollbar={false}`. */
21
+ hideScrollbar: string;
22
+ /** Styles applied to the ScrollButtonComponent component. */
23
+ scrollButtons: string;
24
+ /** Styles applied to the ScrollButtonComponent component if `allowScrollButtonsMobile={true}`. */
25
+ scrollButtonsHideMobile: string;
26
+ /** Styles applied to the TabIndicator component. */
27
+ indicator: string;
28
+ }
29
+ export type TabsClassKey = keyof TabsClasses;
30
+ export declare function getTabsUtilityClass(slot: string): string;
31
+ declare const tabsClasses: TabsClasses;
32
+ export default tabsClasses;
@@ -1,8 +1,8 @@
1
- export interface TextFieldClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- }
5
- export type TextFieldClassKey = keyof TextFieldClasses;
6
- export declare function getTextFieldUtilityClass(slot: string): string;
7
- declare const textFieldClasses: TextFieldClasses;
8
- export default textFieldClasses;
1
+ export interface TextFieldClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ }
5
+ export type TextFieldClassKey = keyof TextFieldClasses;
6
+ export declare function getTextFieldUtilityClass(slot: string): string;
7
+ declare const textFieldClasses: TextFieldClasses;
8
+ export default textFieldClasses;