@mui/material 5.11.12 → 5.11.14

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 (212) 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 +56 -56
  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/Breadcrumbs/BreadcrumbCollapsed.js +26 -3
  17. package/Breadcrumbs/Breadcrumbs.d.ts +31 -0
  18. package/Breadcrumbs/Breadcrumbs.js +30 -2
  19. package/Breadcrumbs/breadcrumbsClasses.d.ts +14 -14
  20. package/Button/buttonClasses.d.ts +100 -100
  21. package/ButtonBase/buttonBaseClasses.d.ts +12 -12
  22. package/ButtonBase/touchRippleClasses.d.ts +20 -20
  23. package/ButtonGroup/ButtonGroupContext.d.ts +18 -18
  24. package/ButtonGroup/buttonGroupClasses.d.ts +58 -58
  25. package/CHANGELOG.md +114 -5
  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/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/ListItemButton.js +4 -2
  72. package/ListItemButton/listItemButtonClasses.d.ts +22 -22
  73. package/ListItemIcon/listItemIconClasses.d.ts +10 -10
  74. package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
  75. package/ListItemText/listItemTextClasses.d.ts +18 -18
  76. package/ListSubheader/listSubheaderClasses.d.ts +18 -18
  77. package/Menu/menuClasses.d.ts +12 -12
  78. package/MenuItem/menuItemClasses.d.ts +20 -20
  79. package/MobileStepper/mobileStepperClasses.d.ts +22 -22
  80. package/NativeSelect/nativeSelectClasses.d.ts +32 -32
  81. package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
  82. package/Pagination/paginationClasses.d.ts +14 -14
  83. package/PaginationItem/paginationItemClasses.d.ts +42 -42
  84. package/Paper/paperClasses.d.ts +39 -39
  85. package/Popover/popoverClasses.d.ts +10 -10
  86. package/Popper/Popper.d.ts +55 -55
  87. package/README.md +5 -4
  88. package/Radio/radioClasses.d.ts +16 -16
  89. package/RadioGroup/RadioGroupContext.d.ts +11 -11
  90. package/RadioGroup/useRadioGroup.d.ts +4 -4
  91. package/Rating/ratingClasses.d.ts +40 -40
  92. package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
  93. package/Select/selectClasses.d.ts +30 -30
  94. package/Skeleton/skeletonClasses.d.ts +26 -26
  95. package/Slider/SliderValueLabel.d.ts +15 -15
  96. package/Slider/SliderValueLabel.types.d.ts +24 -24
  97. package/Slider/sliderClasses.d.ts +58 -58
  98. package/Snackbar/snackbarClasses.d.ts +20 -20
  99. package/SnackbarContent/snackbarContentClasses.d.ts +12 -12
  100. package/SpeedDial/speedDialClasses.d.ts +22 -22
  101. package/SpeedDialAction/speedDialActionClasses.d.ts +20 -20
  102. package/SpeedDialIcon/speedDialIconClasses.d.ts +18 -18
  103. package/Stack/stackClasses.d.ts +6 -6
  104. package/Step/StepContext.d.ts +20 -20
  105. package/Step/stepClasses.d.ts +16 -16
  106. package/StepButton/StepButton.js +4 -2
  107. package/StepButton/stepButtonClasses.d.ts +14 -14
  108. package/StepConnector/stepConnectorClasses.d.ts +26 -26
  109. package/StepContent/stepContentClasses.d.ts +12 -12
  110. package/StepIcon/stepIconClasses.d.ts +16 -16
  111. package/StepLabel/stepLabelClasses.d.ts +28 -28
  112. package/Stepper/StepperContext.d.ts +18 -18
  113. package/Stepper/stepperClasses.d.ts +14 -14
  114. package/SvgIcon/svgIconClasses.d.ts +26 -26
  115. package/Switch/switchClasses.d.ts +32 -32
  116. package/Tab/tabClasses.d.ts +26 -26
  117. package/TabScrollButton/TabScrollButton.d.ts +34 -1
  118. package/TabScrollButton/TabScrollButton.js +41 -8
  119. package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
  120. package/Table/tableClasses.d.ts +10 -10
  121. package/TableBody/tableBodyClasses.d.ts +8 -8
  122. package/TableCell/tableCellClasses.d.ts +32 -32
  123. package/TableContainer/tableContainerClasses.d.ts +8 -8
  124. package/TableFooter/tableFooterClasses.d.ts +8 -8
  125. package/TableHead/tableHeadClasses.d.ts +8 -8
  126. package/TablePagination/tablePaginationClasses.d.ts +28 -28
  127. package/TableRow/tableRowClasses.d.ts +16 -16
  128. package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
  129. package/Tabs/Tabs.d.ts +40 -0
  130. package/Tabs/Tabs.js +43 -2
  131. package/Tabs/tabsClasses.d.ts +32 -32
  132. package/TextField/textFieldClasses.d.ts +8 -8
  133. package/ToggleButton/toggleButtonClasses.d.ts +24 -24
  134. package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
  135. package/Toolbar/toolbarClasses.d.ts +14 -14
  136. package/Tooltip/tooltipClasses.d.ts +30 -30
  137. package/Typography/typographyClasses.d.ts +50 -50
  138. package/Unstable_Grid2/Grid2.d.ts +4 -4
  139. package/Unstable_Grid2/Grid2Props.d.ts +15 -15
  140. package/Unstable_Grid2/grid2Classes.d.ts +5 -5
  141. package/Unstable_Grid2/index.d.ts +4 -4
  142. package/className/index.d.ts +1 -1
  143. package/darkScrollbar/index.d.ts +28 -28
  144. package/generateUtilityClass/index.d.ts +2 -2
  145. package/generateUtilityClasses/index.d.ts +1 -1
  146. package/index.js +1 -1
  147. package/internal/switchBaseClasses.d.ts +12 -12
  148. package/legacy/BottomNavigation/BottomNavigation.js +0 -0
  149. package/legacy/Breadcrumbs/BreadcrumbCollapsed.js +25 -3
  150. package/legacy/Breadcrumbs/Breadcrumbs.js +32 -2
  151. package/legacy/ListItemButton/ListItemButton.js +4 -2
  152. package/legacy/StepButton/StepButton.js +4 -2
  153. package/legacy/TabScrollButton/TabScrollButton.js +43 -8
  154. package/legacy/Tabs/Tabs.js +45 -2
  155. package/legacy/index.js +1 -1
  156. package/legacy/locale/index.js +156 -80
  157. package/legacy/styles/createTypography.js +8 -1
  158. package/legacy/styles/experimental_extendTheme.js +1 -6
  159. package/legacy/styles/index.js +1 -0
  160. package/legacy/styles/shouldSkipGeneratingVar.js +6 -0
  161. package/locale/index.d.ts +76 -75
  162. package/locale/index.js +73 -0
  163. package/modern/BottomNavigation/BottomNavigation.js +0 -0
  164. package/modern/Breadcrumbs/BreadcrumbCollapsed.js +26 -3
  165. package/modern/Breadcrumbs/Breadcrumbs.js +30 -2
  166. package/modern/ListItemButton/ListItemButton.js +4 -2
  167. package/modern/StepButton/StepButton.js +4 -2
  168. package/modern/TabScrollButton/TabScrollButton.js +40 -8
  169. package/modern/Tabs/Tabs.js +43 -2
  170. package/modern/index.js +1 -1
  171. package/modern/locale/index.js +73 -0
  172. package/modern/styles/createTypography.js +8 -1
  173. package/modern/styles/experimental_extendTheme.js +1 -3
  174. package/modern/styles/index.js +1 -0
  175. package/modern/styles/shouldSkipGeneratingVar.js +5 -0
  176. package/node/BottomNavigation/BottomNavigation.js +0 -0
  177. package/node/Breadcrumbs/BreadcrumbCollapsed.js +26 -3
  178. package/node/Breadcrumbs/Breadcrumbs.js +29 -1
  179. package/node/ListItemButton/ListItemButton.js +4 -2
  180. package/node/StepButton/StepButton.js +4 -2
  181. package/node/TabScrollButton/TabScrollButton.js +42 -9
  182. package/node/Tabs/Tabs.js +42 -1
  183. package/node/index.js +1 -1
  184. package/node/locale/index.js +75 -1
  185. package/node/styles/createTypography.js +8 -1
  186. package/node/styles/experimental_extendTheme.js +2 -9
  187. package/node/styles/index.js +8 -0
  188. package/node/styles/shouldSkipGeneratingVar.js +12 -0
  189. package/package.json +5 -5
  190. package/styles/CssVarsProvider.d.ts +15 -15
  191. package/styles/createTypography.js +8 -1
  192. package/styles/excludeVariablesFromRoot.d.ts +5 -5
  193. package/styles/experimental_extendTheme.d.ts +5 -1
  194. package/styles/experimental_extendTheme.js +1 -6
  195. package/styles/getOverlayAlpha.d.ts +2 -2
  196. package/styles/index.d.ts +1 -0
  197. package/styles/index.js +1 -0
  198. package/styles/shouldSkipGeneratingVar.d.ts +1 -0
  199. package/styles/shouldSkipGeneratingVar.js +6 -0
  200. package/transitions/index.d.ts +1 -1
  201. package/transitions/transition.d.ts +13 -13
  202. package/transitions/utils.d.ts +23 -23
  203. package/types/OverridableComponentAugmentation.d.ts +31 -31
  204. package/umd/material-ui.development.js +335 -131
  205. package/umd/material-ui.production.min.js +20 -20
  206. package/useMediaQuery/useMediaQuery.d.ts +46 -46
  207. package/useTouchRipple/index.d.ts +1 -1
  208. package/useTouchRipple/useTouchRipple.d.ts +28 -28
  209. package/utils/getScrollbarSize.d.ts +2 -2
  210. package/utils/ownerDocument.d.ts +2 -2
  211. package/utils/ownerWindow.d.ts +2 -2
  212. package/utils/setRef.d.ts +2 -2
@@ -1,14 +1,14 @@
1
- export interface BottomNavigationActionClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** State class applied to the root element if selected. */
5
- selected: string;
6
- /** State class applied to the root element if `showLabel={false}` and not selected. */
7
- iconOnly: string;
8
- /** Styles applied to the label's span element. */
9
- label: string;
10
- }
11
- export type BottomNavigationActionClassKey = keyof BottomNavigationActionClasses;
12
- export declare function getBottomNavigationActionUtilityClass(slot: string): string;
13
- declare const bottomNavigationActionClasses: BottomNavigationActionClasses;
14
- export default bottomNavigationActionClasses;
1
+ export interface BottomNavigationActionClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** State class applied to the root element if selected. */
5
+ selected: string;
6
+ /** State class applied to the root element if `showLabel={false}` and not selected. */
7
+ iconOnly: string;
8
+ /** Styles applied to the label's span element. */
9
+ label: string;
10
+ }
11
+ export type BottomNavigationActionClassKey = keyof BottomNavigationActionClasses;
12
+ export declare function getBottomNavigationActionUtilityClass(slot: string): string;
13
+ declare const bottomNavigationActionClasses: BottomNavigationActionClasses;
14
+ export default bottomNavigationActionClasses;
@@ -1,4 +1,6 @@
1
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
1
2
  import _extends from "@babel/runtime/helpers/esm/extends";
3
+ const _excluded = ["slots", "slotProps"];
2
4
  import * as React from 'react';
3
5
  import PropTypes from 'prop-types';
4
6
  import { emphasize } from '@mui/system';
@@ -42,19 +44,40 @@ const BreadcrumbCollapsedIcon = styled(MoreHorizIcon)({
42
44
  * @ignore - internal component.
43
45
  */
44
46
  function BreadcrumbCollapsed(props) {
47
+ const {
48
+ slots = {},
49
+ slotProps = {}
50
+ } = props,
51
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded);
45
52
  const ownerState = props;
46
53
  return /*#__PURE__*/_jsx("li", {
47
54
  children: /*#__PURE__*/_jsx(BreadcrumbCollapsedButton, _extends({
48
55
  focusRipple: true
49
- }, props, {
56
+ }, otherProps, {
50
57
  ownerState: ownerState,
51
- children: /*#__PURE__*/_jsx(BreadcrumbCollapsedIcon, {
58
+ children: /*#__PURE__*/_jsx(BreadcrumbCollapsedIcon, _extends({
59
+ as: slots.CollapsedIcon,
52
60
  ownerState: ownerState
53
- })
61
+ }, slotProps.collapsedIcon))
54
62
  }))
55
63
  });
56
64
  }
57
65
  process.env.NODE_ENV !== "production" ? BreadcrumbCollapsed.propTypes = {
66
+ /**
67
+ * The props used for the CollapsedIcon slot.
68
+ * @default {}
69
+ */
70
+ slotProps: PropTypes.shape({
71
+ collapsedIcon: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
72
+ }),
73
+ /**
74
+ * The components used for each slot inside the BreadcumbCollapsed.
75
+ * Either a string to use a HTML element or a component.
76
+ * @default {}
77
+ */
78
+ slots: PropTypes.shape({
79
+ CollapsedIcon: PropTypes.elementType
80
+ }),
58
81
  /**
59
82
  * The system prop that allows defining system overrides as well as additional CSS styles.
60
83
  */
@@ -1,8 +1,16 @@
1
1
  import * as React from 'react';
2
2
  import { SxProps } from '@mui/system';
3
+ import { SlotComponentProps } from '@mui/base';
3
4
  import { Theme } from '../styles';
4
5
  import { OverridableComponent, OverrideProps } from '../OverridableComponent';
5
6
  import { BreadcrumbsClasses } from './breadcrumbsClasses';
7
+ import SvgIcon from '../SvgIcon';
8
+
9
+ export interface BreadcrumbsCollapsedIconSlotPropsOverrides {}
10
+
11
+ export interface BreadcrumbsOwnerState extends BreadcrumbsProps {
12
+ expanded: boolean;
13
+ }
6
14
 
7
15
  export interface BreadcrumbsTypeMap<P = {}, D extends React.ElementType = 'nav'> {
8
16
  props: P & {
@@ -14,6 +22,29 @@ export interface BreadcrumbsTypeMap<P = {}, D extends React.ElementType = 'nav'>
14
22
  * Override or extend the styles applied to the component.
15
23
  */
16
24
  classes?: Partial<BreadcrumbsClasses>;
25
+ /**
26
+ * The components used for each slot inside the Breadcumb.
27
+ * Either a string to use a HTML element or a component.
28
+ * @default {}
29
+ */
30
+ slots?: {
31
+ CollapsedIcon?: React.ElementType;
32
+ };
33
+ /**
34
+ * The props used for each slot inside the Breadcumb.
35
+ * @default {}
36
+ */
37
+ slotProps?: {
38
+ /**
39
+ * Props applied to the CollapsedIcon slot.
40
+ * @default {}
41
+ */
42
+ collapsedIcon?: SlotComponentProps<
43
+ typeof SvgIcon,
44
+ BreadcrumbsCollapsedIconSlotPropsOverrides,
45
+ BreadcrumbsOwnerState
46
+ >;
47
+ };
17
48
  /**
18
49
  * Override the default label for the expand button.
19
50
  *
@@ -1,12 +1,12 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
- const _excluded = ["children", "className", "component", "expandText", "itemsAfterCollapse", "itemsBeforeCollapse", "maxItems", "separator"];
3
+ const _excluded = ["children", "className", "component", "slots", "slotProps", "expandText", "itemsAfterCollapse", "itemsBeforeCollapse", "maxItems", "separator"];
4
4
  import * as React from 'react';
5
5
  import { isFragment } from 'react-is';
6
6
  import PropTypes from 'prop-types';
7
7
  import clsx from 'clsx';
8
8
  import { integerPropType } from '@mui/utils';
9
- import { unstable_composeClasses as composeClasses } from '@mui/base';
9
+ import { unstable_composeClasses as composeClasses, useSlotProps } from '@mui/base';
10
10
  import styled from '../styles/styled';
11
11
  import useThemeProps from '../styles/useThemeProps';
12
12
  import Typography from '../Typography';
@@ -80,6 +80,8 @@ const Breadcrumbs = /*#__PURE__*/React.forwardRef(function Breadcrumbs(inProps,
80
80
  children,
81
81
  className,
82
82
  component = 'nav',
83
+ slots = {},
84
+ slotProps = {},
83
85
  expandText = 'Show path',
84
86
  itemsAfterCollapse = 1,
85
87
  itemsBeforeCollapse = 1,
@@ -98,6 +100,11 @@ const Breadcrumbs = /*#__PURE__*/React.forwardRef(function Breadcrumbs(inProps,
98
100
  separator
99
101
  });
100
102
  const classes = useUtilityClasses(ownerState);
103
+ const collapsedIconSlotProps = useSlotProps({
104
+ elementType: slots.CollapsedIcon,
105
+ externalSlotProps: slotProps.collapsedIcon,
106
+ ownerState
107
+ });
101
108
  const listRef = React.useRef(null);
102
109
  const renderItemsBeforeAndAfter = allItems => {
103
110
  const handleClickExpand = () => {
@@ -123,6 +130,12 @@ const Breadcrumbs = /*#__PURE__*/React.forwardRef(function Breadcrumbs(inProps,
123
130
  }
124
131
  return [...allItems.slice(0, itemsBeforeCollapse), /*#__PURE__*/_jsx(BreadcrumbCollapsed, {
125
132
  "aria-label": expandText,
133
+ slots: {
134
+ CollapsedIcon: slots.CollapsedIcon
135
+ },
136
+ slotProps: {
137
+ collapsedIcon: collapsedIconSlotProps
138
+ },
126
139
  onClick: handleClickExpand
127
140
  }, "ellipsis"), ...allItems.slice(allItems.length - itemsAfterCollapse, allItems.length)];
128
141
  };
@@ -203,6 +216,21 @@ process.env.NODE_ENV !== "production" ? Breadcrumbs.propTypes /* remove-proptype
203
216
  * @default '/'
204
217
  */
205
218
  separator: PropTypes.node,
219
+ /**
220
+ * The props used for each slot inside the Breadcumb.
221
+ * @default {}
222
+ */
223
+ slotProps: PropTypes.shape({
224
+ collapsedIcon: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
225
+ }),
226
+ /**
227
+ * The components used for each slot inside the Breadcumb.
228
+ * Either a string to use a HTML element or a component.
229
+ * @default {}
230
+ */
231
+ slots: PropTypes.shape({
232
+ CollapsedIcon: PropTypes.elementType
233
+ }),
206
234
  /**
207
235
  * The system prop that allows defining system overrides as well as additional CSS styles.
208
236
  */
@@ -1,14 +1,14 @@
1
- export interface BreadcrumbsClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the ol element. */
5
- ol: string;
6
- /** Styles applied to the li element. */
7
- li: string;
8
- /** Styles applied to the separator element. */
9
- separator: string;
10
- }
11
- export type BreadcrumbsClassKey = keyof BreadcrumbsClasses;
12
- export declare function getBreadcrumbsUtilityClass(slot: string): string;
13
- declare const breadcrumbsClasses: BreadcrumbsClasses;
14
- export default breadcrumbsClasses;
1
+ export interface BreadcrumbsClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the ol element. */
5
+ ol: string;
6
+ /** Styles applied to the li element. */
7
+ li: string;
8
+ /** Styles applied to the separator element. */
9
+ separator: string;
10
+ }
11
+ export type BreadcrumbsClassKey = keyof BreadcrumbsClasses;
12
+ export declare function getBreadcrumbsUtilityClass(slot: string): string;
13
+ declare const breadcrumbsClasses: BreadcrumbsClasses;
14
+ export default breadcrumbsClasses;
@@ -1,100 +1,100 @@
1
- export interface ButtonClasses {
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="text"` and `color="inherit"`. */
7
- textInherit: string;
8
- /** Styles applied to the root element if `variant="text"` and `color="primary"`. */
9
- textPrimary: string;
10
- /** Styles applied to the root element if `variant="text"` and `color="secondary"`. */
11
- textSecondary: string;
12
- /** Styles applied to the root element if `variant="text"` and `color="success"`. */
13
- textSuccess: string;
14
- /** Styles applied to the root element if `variant="text"` and `color="error"`. */
15
- textError: string;
16
- /** Styles applied to the root element if `variant="text"` and `color="info"`. */
17
- textInfo: string;
18
- /** Styles applied to the root element if `variant="text"` and `color="warning"`. */
19
- textWarning: string;
20
- /** Styles applied to the root element if `variant="outlined"`. */
21
- outlined: string;
22
- /** Styles applied to the root element if `variant="outlined"` and `color="inherit"`. */
23
- outlinedInherit: string;
24
- /** Styles applied to the root element if `variant="outlined"` and `color="primary"`. */
25
- outlinedPrimary: string;
26
- /** Styles applied to the root element if `variant="outlined"` and `color="secondary"`. */
27
- outlinedSecondary: string;
28
- /** Styles applied to the root element if `variant="outlined"` and `color="success"`. */
29
- outlinedSuccess: string;
30
- /** Styles applied to the root element if `variant="outlined"` and `color="error"`. */
31
- outlinedError: string;
32
- /** Styles applied to the root element if `variant="outlined"` and `color="info"`. */
33
- outlinedInfo: string;
34
- /** Styles applied to the root element if `variant="outlined"` and `color="warning"`. */
35
- outlinedWarning: string;
36
- /** Styles applied to the root element if `variant="contained"`. */
37
- contained: string;
38
- /** Styles applied to the root element if `variant="contained"` and `color="inherit"`. */
39
- containedInherit: string;
40
- /** Styles applied to the root element if `variant="contained"` and `color="primary"`. */
41
- containedPrimary: string;
42
- /** Styles applied to the root element if `variant="contained"` and `color="secondary"`. */
43
- containedSecondary: string;
44
- /** Styles applied to the root element if `variant="contained"` and `color="success"`. */
45
- containedSuccess: string;
46
- /** Styles applied to the root element if `variant="contained"` and `color="info"`. */
47
- containedInfo: string;
48
- /** Styles applied to the root element if `variant="contained"` and `color="error"`. */
49
- containedError: string;
50
- /** Styles applied to the root element if `variant="contained"` and `color="warning"`. */
51
- containedWarning: string;
52
- /** Styles applied to the root element if `disableElevation={true}`. */
53
- disableElevation: string;
54
- /** State class applied to the ButtonBase root element if the button is keyboard focused. */
55
- focusVisible: string;
56
- /** State class applied to the root element if `disabled={true}`. */
57
- disabled: string;
58
- /** Styles applied to the root element if `color="inherit"`. */
59
- colorInherit: string;
60
- /** Styles applied to the root element if `size="small"` and `variant="text"`. */
61
- textSizeSmall: string;
62
- /** Styles applied to the root element if `size="medium"` and `variant="text"`. */
63
- textSizeMedium: string;
64
- /** Styles applied to the root element if `size="large"` and `variant="text"`. */
65
- textSizeLarge: string;
66
- /** Styles applied to the root element if `size="small"` and `variant="outlined"`. */
67
- outlinedSizeSmall: string;
68
- /** Styles applied to the root element if `size="medium"` and `variant="outlined"`. */
69
- outlinedSizeMedium: string;
70
- /** Styles applied to the root element if `size="large"` and `variant="outlined"`. */
71
- outlinedSizeLarge: string;
72
- /** Styles applied to the root element if `size="small"` and `variant="contained"`. */
73
- containedSizeSmall: string;
74
- /** Styles applied to the root element if `size="medium"` and `variant="contained"`. */
75
- containedSizeMedium: string;
76
- /** Styles applied to the root element if `size="large"` and `variant="contained"`. */
77
- containedSizeLarge: string;
78
- /** Styles applied to the root element if `size="small"`. */
79
- sizeSmall: string;
80
- /** Styles applied to the root element if `size="medium"`. */
81
- sizeMedium: string;
82
- /** Styles applied to the root element if `size="large"`. */
83
- sizeLarge: string;
84
- /** Styles applied to the root element if `fullWidth={true}`. */
85
- fullWidth: string;
86
- /** Styles applied to the startIcon element if supplied. */
87
- startIcon: string;
88
- /** Styles applied to the endIcon element if supplied. */
89
- endIcon: string;
90
- /** Styles applied to the icon element if supplied and `size="small"`. */
91
- iconSizeSmall: string;
92
- /** Styles applied to the icon element if supplied and `size="medium"`. */
93
- iconSizeMedium: string;
94
- /** Styles applied to the icon element if supplied and `size="large"`. */
95
- iconSizeLarge: string;
96
- }
97
- export type ButtonClassKey = keyof ButtonClasses;
98
- export declare function getButtonUtilityClass(slot: string): string;
99
- declare const buttonClasses: ButtonClasses;
100
- export default buttonClasses;
1
+ export interface ButtonClasses {
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="text"` and `color="inherit"`. */
7
+ textInherit: string;
8
+ /** Styles applied to the root element if `variant="text"` and `color="primary"`. */
9
+ textPrimary: string;
10
+ /** Styles applied to the root element if `variant="text"` and `color="secondary"`. */
11
+ textSecondary: string;
12
+ /** Styles applied to the root element if `variant="text"` and `color="success"`. */
13
+ textSuccess: string;
14
+ /** Styles applied to the root element if `variant="text"` and `color="error"`. */
15
+ textError: string;
16
+ /** Styles applied to the root element if `variant="text"` and `color="info"`. */
17
+ textInfo: string;
18
+ /** Styles applied to the root element if `variant="text"` and `color="warning"`. */
19
+ textWarning: string;
20
+ /** Styles applied to the root element if `variant="outlined"`. */
21
+ outlined: string;
22
+ /** Styles applied to the root element if `variant="outlined"` and `color="inherit"`. */
23
+ outlinedInherit: string;
24
+ /** Styles applied to the root element if `variant="outlined"` and `color="primary"`. */
25
+ outlinedPrimary: string;
26
+ /** Styles applied to the root element if `variant="outlined"` and `color="secondary"`. */
27
+ outlinedSecondary: string;
28
+ /** Styles applied to the root element if `variant="outlined"` and `color="success"`. */
29
+ outlinedSuccess: string;
30
+ /** Styles applied to the root element if `variant="outlined"` and `color="error"`. */
31
+ outlinedError: string;
32
+ /** Styles applied to the root element if `variant="outlined"` and `color="info"`. */
33
+ outlinedInfo: string;
34
+ /** Styles applied to the root element if `variant="outlined"` and `color="warning"`. */
35
+ outlinedWarning: string;
36
+ /** Styles applied to the root element if `variant="contained"`. */
37
+ contained: string;
38
+ /** Styles applied to the root element if `variant="contained"` and `color="inherit"`. */
39
+ containedInherit: string;
40
+ /** Styles applied to the root element if `variant="contained"` and `color="primary"`. */
41
+ containedPrimary: string;
42
+ /** Styles applied to the root element if `variant="contained"` and `color="secondary"`. */
43
+ containedSecondary: string;
44
+ /** Styles applied to the root element if `variant="contained"` and `color="success"`. */
45
+ containedSuccess: string;
46
+ /** Styles applied to the root element if `variant="contained"` and `color="info"`. */
47
+ containedInfo: string;
48
+ /** Styles applied to the root element if `variant="contained"` and `color="error"`. */
49
+ containedError: string;
50
+ /** Styles applied to the root element if `variant="contained"` and `color="warning"`. */
51
+ containedWarning: string;
52
+ /** Styles applied to the root element if `disableElevation={true}`. */
53
+ disableElevation: string;
54
+ /** State class applied to the ButtonBase root element if the button is keyboard focused. */
55
+ focusVisible: string;
56
+ /** State class applied to the root element if `disabled={true}`. */
57
+ disabled: string;
58
+ /** Styles applied to the root element if `color="inherit"`. */
59
+ colorInherit: string;
60
+ /** Styles applied to the root element if `size="small"` and `variant="text"`. */
61
+ textSizeSmall: string;
62
+ /** Styles applied to the root element if `size="medium"` and `variant="text"`. */
63
+ textSizeMedium: string;
64
+ /** Styles applied to the root element if `size="large"` and `variant="text"`. */
65
+ textSizeLarge: string;
66
+ /** Styles applied to the root element if `size="small"` and `variant="outlined"`. */
67
+ outlinedSizeSmall: string;
68
+ /** Styles applied to the root element if `size="medium"` and `variant="outlined"`. */
69
+ outlinedSizeMedium: string;
70
+ /** Styles applied to the root element if `size="large"` and `variant="outlined"`. */
71
+ outlinedSizeLarge: string;
72
+ /** Styles applied to the root element if `size="small"` and `variant="contained"`. */
73
+ containedSizeSmall: string;
74
+ /** Styles applied to the root element if `size="medium"` and `variant="contained"`. */
75
+ containedSizeMedium: string;
76
+ /** Styles applied to the root element if `size="large"` and `variant="contained"`. */
77
+ containedSizeLarge: string;
78
+ /** Styles applied to the root element if `size="small"`. */
79
+ sizeSmall: string;
80
+ /** Styles applied to the root element if `size="medium"`. */
81
+ sizeMedium: string;
82
+ /** Styles applied to the root element if `size="large"`. */
83
+ sizeLarge: string;
84
+ /** Styles applied to the root element if `fullWidth={true}`. */
85
+ fullWidth: string;
86
+ /** Styles applied to the startIcon element if supplied. */
87
+ startIcon: string;
88
+ /** Styles applied to the endIcon element if supplied. */
89
+ endIcon: string;
90
+ /** Styles applied to the icon element if supplied and `size="small"`. */
91
+ iconSizeSmall: string;
92
+ /** Styles applied to the icon element if supplied and `size="medium"`. */
93
+ iconSizeMedium: string;
94
+ /** Styles applied to the icon element if supplied and `size="large"`. */
95
+ iconSizeLarge: string;
96
+ }
97
+ export type ButtonClassKey = keyof ButtonClasses;
98
+ export declare function getButtonUtilityClass(slot: string): string;
99
+ declare const buttonClasses: ButtonClasses;
100
+ export default buttonClasses;
@@ -1,12 +1,12 @@
1
- export interface ButtonBaseClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** State class applied to the root element if `disabled={true}`. */
5
- disabled: string;
6
- /** State class applied to the root element if keyboard focused. */
7
- focusVisible: string;
8
- }
9
- export type ButtonBaseClassKey = keyof ButtonBaseClasses;
10
- export declare function getButtonBaseUtilityClass(slot: string): string;
11
- declare const buttonBaseClasses: ButtonBaseClasses;
12
- export default buttonBaseClasses;
1
+ export interface ButtonBaseClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** State class applied to the root element if `disabled={true}`. */
5
+ disabled: string;
6
+ /** State class applied to the root element if keyboard focused. */
7
+ focusVisible: string;
8
+ }
9
+ export type ButtonBaseClassKey = keyof ButtonBaseClasses;
10
+ export declare function getButtonBaseUtilityClass(slot: string): string;
11
+ declare const buttonBaseClasses: ButtonBaseClasses;
12
+ export default buttonBaseClasses;
@@ -1,20 +1,20 @@
1
- export interface TouchRippleClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the internal `Ripple` components `ripple` class. */
5
- ripple: string;
6
- /** Styles applied to the internal `Ripple` components `rippleVisible` class. */
7
- rippleVisible: string;
8
- /** Styles applied to the internal `Ripple` components `ripplePulsate` class. */
9
- ripplePulsate: string;
10
- /** Styles applied to the internal `Ripple` components `child` class. */
11
- child: string;
12
- /** Styles applied to the internal `Ripple` components `childLeaving` class. */
13
- childLeaving: string;
14
- /** Styles applied to the internal `Ripple` components `childPulsate` class. */
15
- childPulsate: string;
16
- }
17
- export type TouchRippleClassKey = keyof TouchRippleClasses;
18
- export declare function getTouchRippleUtilityClass(slot: string): string;
19
- declare const touchRippleClasses: TouchRippleClasses;
20
- export default touchRippleClasses;
1
+ export interface TouchRippleClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the internal `Ripple` components `ripple` class. */
5
+ ripple: string;
6
+ /** Styles applied to the internal `Ripple` components `rippleVisible` class. */
7
+ rippleVisible: string;
8
+ /** Styles applied to the internal `Ripple` components `ripplePulsate` class. */
9
+ ripplePulsate: string;
10
+ /** Styles applied to the internal `Ripple` components `child` class. */
11
+ child: string;
12
+ /** Styles applied to the internal `Ripple` components `childLeaving` class. */
13
+ childLeaving: string;
14
+ /** Styles applied to the internal `Ripple` components `childPulsate` class. */
15
+ childPulsate: string;
16
+ }
17
+ export type TouchRippleClassKey = keyof TouchRippleClasses;
18
+ export declare function getTouchRippleUtilityClass(slot: string): string;
19
+ declare const touchRippleClasses: TouchRippleClasses;
20
+ export default touchRippleClasses;
@@ -1,18 +1,18 @@
1
- import * as React from 'react';
2
- import type { ButtonGroupProps } from './ButtonGroup';
3
- interface IButtonGroupContext {
4
- className?: string;
5
- color?: ButtonGroupProps['color'];
6
- disabled?: boolean;
7
- disableElevation?: boolean;
8
- disableFocusRipple?: boolean;
9
- disableRipple?: boolean;
10
- fullWidth?: boolean;
11
- size?: ButtonGroupProps['size'];
12
- variant?: ButtonGroupProps['variant'];
13
- }
14
- /**
15
- * @ignore - internal component.
16
- */
17
- declare const ButtonGroupContext: React.Context<IButtonGroupContext>;
18
- export default ButtonGroupContext;
1
+ import * as React from 'react';
2
+ import type { ButtonGroupProps } from './ButtonGroup';
3
+ interface IButtonGroupContext {
4
+ className?: string;
5
+ color?: ButtonGroupProps['color'];
6
+ disabled?: boolean;
7
+ disableElevation?: boolean;
8
+ disableFocusRipple?: boolean;
9
+ disableRipple?: boolean;
10
+ fullWidth?: boolean;
11
+ size?: ButtonGroupProps['size'];
12
+ variant?: ButtonGroupProps['variant'];
13
+ }
14
+ /**
15
+ * @ignore - internal component.
16
+ */
17
+ declare const ButtonGroupContext: React.Context<IButtonGroupContext>;
18
+ export default ButtonGroupContext;