@mui/material 6.0.0-alpha.4 → 6.0.0-alpha.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 (272) hide show
  1. package/Accordion/Accordion.d.ts +2 -2
  2. package/Accordion/Accordion.js +2 -2
  3. package/AccordionSummary/accordionSummaryClasses.d.ts +1 -1
  4. package/Alert/Alert.d.ts +2 -2
  5. package/Alert/Alert.js +2 -2
  6. package/Alert/alertClasses.d.ts +12 -12
  7. package/Avatar/Avatar.d.ts +1 -1
  8. package/Avatar/Avatar.js +1 -1
  9. package/Backdrop/Backdrop.d.ts +1 -1
  10. package/Backdrop/Backdrop.js +1 -1
  11. package/Badge/Badge.d.ts +2 -2
  12. package/Badge/Badge.js +2 -2
  13. package/Breadcrumbs/BreadcrumbCollapsed.js +1 -1
  14. package/Button/Button.js +1 -1
  15. package/Button/buttonClasses.d.ts +33 -33
  16. package/ButtonGroup/buttonGroupClasses.d.ts +17 -17
  17. package/CHANGELOG.md +86 -0
  18. package/Checkbox/Checkbox.js +3 -1
  19. package/Chip/chipClasses.d.ts +28 -26
  20. package/Chip/chipClasses.js +1 -1
  21. package/Collapse/Collapse.js +66 -35
  22. package/Dialog/Dialog.js +105 -61
  23. package/DialogActions/DialogActions.js +16 -12
  24. package/DialogContent/DialogContent.js +25 -15
  25. package/DialogContentText/DialogContentText.js +3 -2
  26. package/DialogTitle/DialogTitle.js +2 -2
  27. package/Divider/Divider.d.ts +1 -1
  28. package/Divider/Divider.js +1 -1
  29. package/Drawer/Drawer.js +73 -32
  30. package/Fab/Fab.js +1 -1
  31. package/FilledInput/FilledInput.d.ts +1 -0
  32. package/FilledInput/FilledInput.js +170 -87
  33. package/FormControlLabel/FormControlLabel.d.ts +21 -14
  34. package/FormControlLabel/FormControlLabel.js +22 -4
  35. package/FormHelperText/FormHelperText.js +2 -2
  36. package/FormLabel/FormLabel.js +23 -13
  37. package/Grow/Grow.js +3 -1
  38. package/Icon/Icon.js +63 -23
  39. package/ImageList/ImageList.js +2 -2
  40. package/ImageListItem/ImageListItem.js +2 -2
  41. package/ImageListItemBar/ImageListItemBar.js +2 -2
  42. package/Input/Input.d.ts +1 -0
  43. package/Input/Input.js +84 -61
  44. package/InputAdornment/InputAdornment.js +37 -21
  45. package/InputBase/InputBase.js +58 -28
  46. package/InputLabel/InputLabel.js +120 -58
  47. package/Link/Link.js +99 -54
  48. package/Link/getTextDecoration.d.ts +2 -8
  49. package/Link/getTextDecoration.js +16 -8
  50. package/List/List.js +22 -13
  51. package/ListItem/ListItem.js +2 -2
  52. package/ListItemAvatar/ListItemAvatar.js +2 -2
  53. package/ListItemButton/ListItemButton.js +3 -2
  54. package/ListItemIcon/ListItemIcon.js +14 -9
  55. package/ListItemSecondaryAction/ListItemSecondaryAction.js +2 -2
  56. package/ListItemText/ListItemText.js +2 -2
  57. package/ListSubheader/ListSubheader.js +5 -3
  58. package/Menu/Menu.js +3 -2
  59. package/MenuItem/MenuItem.js +47 -27
  60. package/NativeSelect/NativeSelectInput.js +78 -49
  61. package/OutlinedInput/NotchedOutline.js +60 -43
  62. package/OutlinedInput/OutlinedInput.js +97 -39
  63. package/Pagination/Pagination.js +2 -2
  64. package/PaginationItem/PaginationItem.d.ts +26 -14
  65. package/PaginationItem/PaginationItem.js +64 -20
  66. package/PaginationItem/paginationItemClasses.d.ts +4 -4
  67. package/Paper/Paper.js +44 -21
  68. package/Radio/Radio.js +5 -3
  69. package/Radio/RadioButtonIcon.js +1 -1
  70. package/Rating/Rating.js +3 -2
  71. package/Select/Select.js +2 -1
  72. package/Select/SelectInput.js +8 -6
  73. package/Skeleton/Skeleton.js +109 -61
  74. package/Slider/Slider.d.ts +2 -2
  75. package/Slider/Slider.js +2 -2
  76. package/Snackbar/Snackbar.js +66 -40
  77. package/SnackbarContent/SnackbarContent.js +2 -2
  78. package/SpeedDial/SpeedDial.d.ts +28 -1
  79. package/SpeedDial/SpeedDial.js +107 -49
  80. package/SpeedDialAction/SpeedDialAction.js +50 -24
  81. package/SpeedDialIcon/SpeedDialIcon.js +37 -16
  82. package/StepConnector/stepConnectorClasses.d.ts +2 -2
  83. package/StepLabel/StepLabel.d.ts +3 -3
  84. package/StepLabel/StepLabel.js +3 -3
  85. package/SvgIcon/SvgIcon.js +73 -21
  86. package/SwipeableDrawer/SwipeArea.js +39 -18
  87. package/Tab/Tab.js +127 -55
  88. package/TabScrollButton/TabScrollButton.js +27 -15
  89. package/Table/Table.js +2 -2
  90. package/TableBody/TableBody.js +2 -2
  91. package/TableCell/TableCell.js +2 -2
  92. package/TableContainer/TableContainer.js +2 -2
  93. package/TableFooter/TableFooter.js +2 -2
  94. package/TableHead/TableHead.js +2 -2
  95. package/TablePagination/TablePagination.js +2 -2
  96. package/TableRow/TableRow.js +2 -2
  97. package/TableSortLabel/TableSortLabel.js +2 -2
  98. package/Tabs/Tabs.js +107 -54
  99. package/TextField/TextField.js +2 -2
  100. package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +2 -2
  101. package/Toolbar/Toolbar.js +3 -7
  102. package/Tooltip/Tooltip.js +185 -88
  103. package/Typography/Typography.js +89 -39
  104. package/index.js +1 -1
  105. package/internal/SwitchBase.js +39 -11
  106. package/modern/Accordion/Accordion.js +2 -2
  107. package/modern/Alert/Alert.js +2 -2
  108. package/modern/Avatar/Avatar.js +1 -1
  109. package/modern/Backdrop/Backdrop.js +1 -1
  110. package/modern/Badge/Badge.js +2 -2
  111. package/modern/Breadcrumbs/BreadcrumbCollapsed.js +1 -1
  112. package/modern/Button/Button.js +1 -1
  113. package/modern/Checkbox/Checkbox.js +3 -1
  114. package/modern/Chip/chipClasses.js +1 -1
  115. package/modern/Collapse/Collapse.js +66 -35
  116. package/modern/Dialog/Dialog.js +105 -61
  117. package/modern/DialogActions/DialogActions.js +16 -12
  118. package/modern/DialogContent/DialogContent.js +25 -15
  119. package/modern/DialogContentText/DialogContentText.js +3 -2
  120. package/modern/DialogTitle/DialogTitle.js +2 -2
  121. package/modern/Divider/Divider.js +1 -1
  122. package/modern/Drawer/Drawer.js +73 -32
  123. package/modern/Fab/Fab.js +1 -1
  124. package/modern/FilledInput/FilledInput.js +170 -87
  125. package/modern/FormControlLabel/FormControlLabel.js +22 -4
  126. package/modern/FormHelperText/FormHelperText.js +2 -2
  127. package/modern/FormLabel/FormLabel.js +23 -13
  128. package/modern/Grow/Grow.js +3 -1
  129. package/modern/Icon/Icon.js +63 -23
  130. package/modern/ImageList/ImageList.js +2 -2
  131. package/modern/ImageListItem/ImageListItem.js +2 -2
  132. package/modern/ImageListItemBar/ImageListItemBar.js +2 -2
  133. package/modern/Input/Input.js +84 -61
  134. package/modern/InputAdornment/InputAdornment.js +37 -21
  135. package/modern/InputBase/InputBase.js +58 -28
  136. package/modern/InputLabel/InputLabel.js +120 -58
  137. package/modern/Link/Link.js +99 -54
  138. package/modern/Link/getTextDecoration.js +16 -8
  139. package/modern/List/List.js +22 -13
  140. package/modern/ListItem/ListItem.js +2 -2
  141. package/modern/ListItemAvatar/ListItemAvatar.js +2 -2
  142. package/modern/ListItemButton/ListItemButton.js +3 -2
  143. package/modern/ListItemIcon/ListItemIcon.js +14 -9
  144. package/modern/ListItemSecondaryAction/ListItemSecondaryAction.js +2 -2
  145. package/modern/ListItemText/ListItemText.js +2 -2
  146. package/modern/ListSubheader/ListSubheader.js +5 -3
  147. package/modern/Menu/Menu.js +3 -2
  148. package/modern/MenuItem/MenuItem.js +47 -27
  149. package/modern/NativeSelect/NativeSelectInput.js +78 -49
  150. package/modern/OutlinedInput/NotchedOutline.js +60 -43
  151. package/modern/OutlinedInput/OutlinedInput.js +97 -39
  152. package/modern/Pagination/Pagination.js +2 -2
  153. package/modern/PaginationItem/PaginationItem.js +64 -20
  154. package/modern/Paper/Paper.js +44 -21
  155. package/modern/Radio/Radio.js +5 -3
  156. package/modern/Radio/RadioButtonIcon.js +1 -1
  157. package/modern/Rating/Rating.js +3 -2
  158. package/modern/Select/Select.js +2 -1
  159. package/modern/Select/SelectInput.js +8 -6
  160. package/modern/Skeleton/Skeleton.js +109 -61
  161. package/modern/Slider/Slider.js +2 -2
  162. package/modern/Snackbar/Snackbar.js +66 -40
  163. package/modern/SnackbarContent/SnackbarContent.js +2 -2
  164. package/modern/SpeedDial/SpeedDial.js +107 -49
  165. package/modern/SpeedDialAction/SpeedDialAction.js +50 -24
  166. package/modern/SpeedDialIcon/SpeedDialIcon.js +37 -16
  167. package/modern/StepLabel/StepLabel.js +3 -3
  168. package/modern/SvgIcon/SvgIcon.js +73 -21
  169. package/modern/SwipeableDrawer/SwipeArea.js +39 -18
  170. package/modern/Tab/Tab.js +127 -55
  171. package/modern/TabScrollButton/TabScrollButton.js +27 -15
  172. package/modern/Table/Table.js +2 -2
  173. package/modern/TableBody/TableBody.js +2 -2
  174. package/modern/TableCell/TableCell.js +2 -2
  175. package/modern/TableContainer/TableContainer.js +2 -2
  176. package/modern/TableFooter/TableFooter.js +2 -2
  177. package/modern/TableHead/TableHead.js +2 -2
  178. package/modern/TablePagination/TablePagination.js +2 -2
  179. package/modern/TableRow/TableRow.js +2 -2
  180. package/modern/TableSortLabel/TableSortLabel.js +2 -2
  181. package/modern/Tabs/Tabs.js +107 -54
  182. package/modern/TextField/TextField.js +2 -2
  183. package/modern/Toolbar/Toolbar.js +3 -7
  184. package/modern/Tooltip/Tooltip.js +185 -88
  185. package/modern/Typography/Typography.js +89 -39
  186. package/modern/index.js +1 -1
  187. package/modern/internal/SwitchBase.js +39 -11
  188. package/node/Accordion/Accordion.js +2 -2
  189. package/node/Alert/Alert.js +2 -2
  190. package/node/Avatar/Avatar.js +1 -1
  191. package/node/Backdrop/Backdrop.js +1 -1
  192. package/node/Badge/Badge.js +2 -2
  193. package/node/Breadcrumbs/BreadcrumbCollapsed.js +3 -3
  194. package/node/Button/Button.js +2 -2
  195. package/node/Checkbox/Checkbox.js +3 -1
  196. package/node/Chip/chipClasses.js +1 -1
  197. package/node/Collapse/Collapse.js +70 -39
  198. package/node/Dialog/Dialog.js +110 -66
  199. package/node/DialogActions/DialogActions.js +18 -14
  200. package/node/DialogContent/DialogContent.js +27 -17
  201. package/node/DialogContentText/DialogContentText.js +6 -5
  202. package/node/DialogTitle/DialogTitle.js +4 -4
  203. package/node/Divider/Divider.js +1 -1
  204. package/node/Drawer/Drawer.js +78 -37
  205. package/node/Fab/Fab.js +2 -2
  206. package/node/FilledInput/FilledInput.js +176 -91
  207. package/node/FormControlLabel/FormControlLabel.js +23 -5
  208. package/node/FormHelperText/FormHelperText.js +4 -4
  209. package/node/FormLabel/FormLabel.js +26 -16
  210. package/node/Grow/Grow.js +3 -1
  211. package/node/Icon/Icon.js +65 -25
  212. package/node/ImageList/ImageList.js +4 -4
  213. package/node/ImageListItem/ImageListItem.js +4 -4
  214. package/node/ImageListItemBar/ImageListItemBar.js +8 -8
  215. package/node/Input/Input.js +87 -64
  216. package/node/InputAdornment/InputAdornment.js +39 -23
  217. package/node/InputBase/InputBase.js +61 -31
  218. package/node/InputLabel/InputLabel.js +123 -61
  219. package/node/Link/Link.js +101 -56
  220. package/node/Link/getTextDecoration.js +18 -10
  221. package/node/List/List.js +24 -15
  222. package/node/ListItem/ListItem.js +5 -5
  223. package/node/ListItemAvatar/ListItemAvatar.js +4 -4
  224. package/node/ListItemButton/ListItemButton.js +6 -5
  225. package/node/ListItemIcon/ListItemIcon.js +16 -11
  226. package/node/ListItemSecondaryAction/ListItemSecondaryAction.js +4 -4
  227. package/node/ListItemText/ListItemText.js +4 -4
  228. package/node/ListSubheader/ListSubheader.js +7 -5
  229. package/node/Menu/Menu.js +8 -7
  230. package/node/MenuItem/MenuItem.js +50 -30
  231. package/node/NativeSelect/NativeSelectInput.js +80 -53
  232. package/node/OutlinedInput/NotchedOutline.js +64 -47
  233. package/node/OutlinedInput/OutlinedInput.js +101 -43
  234. package/node/Pagination/Pagination.js +5 -5
  235. package/node/PaginationItem/PaginationItem.js +65 -20
  236. package/node/Paper/Paper.js +49 -28
  237. package/node/Radio/Radio.js +6 -4
  238. package/node/Radio/RadioButtonIcon.js +2 -2
  239. package/node/Rating/Rating.js +9 -8
  240. package/node/Select/Select.js +6 -5
  241. package/node/Select/SelectInput.js +9 -7
  242. package/node/Skeleton/Skeleton.js +113 -65
  243. package/node/Slider/Slider.js +2 -2
  244. package/node/Snackbar/Snackbar.js +68 -42
  245. package/node/SnackbarContent/SnackbarContent.js +6 -6
  246. package/node/SpeedDial/SpeedDial.js +111 -53
  247. package/node/SpeedDialAction/SpeedDialAction.js +54 -28
  248. package/node/SpeedDialIcon/SpeedDialIcon.js +39 -18
  249. package/node/StepLabel/StepLabel.js +3 -3
  250. package/node/SvgIcon/SvgIcon.js +79 -24
  251. package/node/SwipeableDrawer/SwipeArea.js +41 -20
  252. package/node/Tab/Tab.js +129 -57
  253. package/node/TabScrollButton/TabScrollButton.js +29 -17
  254. package/node/Table/Table.js +4 -4
  255. package/node/TableBody/TableBody.js +4 -4
  256. package/node/TableCell/TableCell.js +4 -4
  257. package/node/TableContainer/TableContainer.js +4 -4
  258. package/node/TableFooter/TableFooter.js +4 -4
  259. package/node/TableHead/TableHead.js +4 -4
  260. package/node/TablePagination/TablePagination.js +10 -10
  261. package/node/TableRow/TableRow.js +4 -4
  262. package/node/TableSortLabel/TableSortLabel.js +5 -5
  263. package/node/Tabs/Tabs.js +113 -60
  264. package/node/TextField/TextField.js +4 -4
  265. package/node/Toolbar/Toolbar.js +5 -9
  266. package/node/Tooltip/Tooltip.js +189 -92
  267. package/node/Typography/Typography.js +90 -40
  268. package/node/index.js +1 -1
  269. package/node/internal/SwitchBase.js +41 -13
  270. package/package.json +6 -6
  271. package/umd/material-ui.development.js +2777 -1334
  272. package/umd/material-ui.production.min.js +4 -4
@@ -13,13 +13,13 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
13
13
  var _clsx = _interopRequireDefault(require("clsx"));
14
14
  var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
15
15
  var _capitalize = _interopRequireDefault(require("../utils/capitalize"));
16
- var _useThemeProps = _interopRequireDefault(require("../styles/useThemeProps"));
17
- var _styled = _interopRequireDefault(require("../styles/styled"));
16
+ var _zeroStyled = require("../zero-styled");
18
17
  var _svgIconClasses = require("./svgIconClasses");
19
18
  var _jsxRuntime = require("react/jsx-runtime");
20
19
  const _excluded = ["children", "className", "color", "component", "fontSize", "htmlColor", "inheritViewBox", "titleAccess", "viewBox"];
21
20
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
22
21
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
22
+ const useThemeProps = (0, _zeroStyled.createUseThemeProps)('MuiSvgIcon');
23
23
  const useUtilityClasses = ownerState => {
24
24
  const {
25
25
  color,
@@ -31,7 +31,7 @@ const useUtilityClasses = ownerState => {
31
31
  };
32
32
  return (0, _composeClasses.default)(slots, _svgIconClasses.getSvgIconUtilityClass, classes);
33
33
  };
34
- const SvgIconRoot = (0, _styled.default)('svg', {
34
+ const SvgIconRoot = (0, _zeroStyled.styled)('svg', {
35
35
  name: 'MuiSvgIcon',
36
36
  slot: 'Root',
37
37
  overridesResolver: (props, styles) => {
@@ -41,38 +41,91 @@ const SvgIconRoot = (0, _styled.default)('svg', {
41
41
  return [styles.root, ownerState.color !== 'inherit' && styles[`color${(0, _capitalize.default)(ownerState.color)}`], styles[`fontSize${(0, _capitalize.default)(ownerState.fontSize)}`]];
42
42
  }
43
43
  })(({
44
- theme,
45
- ownerState
44
+ theme
46
45
  }) => {
47
- var _theme$transitions, _theme$transitions$cr, _theme$transitions2, _theme$typography, _theme$typography$pxT, _theme$typography2, _theme$typography2$px, _theme$typography3, _theme$typography3$px, _palette$ownerState$c, _palette, _palette2, _palette3;
46
+ var _theme$transitions, _theme$transitions$cr, _transitions, _theme$vars, _theme$typography, _theme$typography$pxT, _theme$typography2, _theme$typography2$px, _theme$typography3, _theme$typography3$px, _theme$vars2, _palette2, _theme$vars4, _palette3, _theme$vars5;
48
47
  return {
49
48
  userSelect: 'none',
50
49
  width: '1em',
51
50
  height: '1em',
52
51
  display: 'inline-block',
53
- // the <svg> will define the property that has `currentColor`
54
- // for example heroicons uses fill="none" and stroke="currentColor"
55
- fill: ownerState.hasSvgAsChild ? undefined : 'currentColor',
56
52
  flexShrink: 0,
57
53
  transition: (_theme$transitions = theme.transitions) == null || (_theme$transitions$cr = _theme$transitions.create) == null ? void 0 : _theme$transitions$cr.call(_theme$transitions, 'fill', {
58
- duration: (_theme$transitions2 = theme.transitions) == null || (_theme$transitions2 = _theme$transitions2.duration) == null ? void 0 : _theme$transitions2.shorter
54
+ duration: (_transitions = ((_theme$vars = theme.vars) != null ? _theme$vars : theme).transitions) == null || (_transitions = _transitions.duration) == null ? void 0 : _transitions.shorter
59
55
  }),
60
- fontSize: {
61
- inherit: 'inherit',
62
- small: ((_theme$typography = theme.typography) == null || (_theme$typography$pxT = _theme$typography.pxToRem) == null ? void 0 : _theme$typography$pxT.call(_theme$typography, 20)) || '1.25rem',
63
- medium: ((_theme$typography2 = theme.typography) == null || (_theme$typography2$px = _theme$typography2.pxToRem) == null ? void 0 : _theme$typography2$px.call(_theme$typography2, 24)) || '1.5rem',
64
- large: ((_theme$typography3 = theme.typography) == null || (_theme$typography3$px = _theme$typography3.pxToRem) == null ? void 0 : _theme$typography3$px.call(_theme$typography3, 35)) || '2.1875rem'
65
- }[ownerState.fontSize],
66
- // TODO v5 deprecate, v6 remove for sx
67
- color: (_palette$ownerState$c = (_palette = (theme.vars || theme).palette) == null || (_palette = _palette[ownerState.color]) == null ? void 0 : _palette.main) != null ? _palette$ownerState$c : {
68
- action: (_palette2 = (theme.vars || theme).palette) == null || (_palette2 = _palette2.action) == null ? void 0 : _palette2.active,
69
- disabled: (_palette3 = (theme.vars || theme).palette) == null || (_palette3 = _palette3.action) == null ? void 0 : _palette3.disabled,
70
- inherit: undefined
71
- }[ownerState.color]
56
+ variants: [{
57
+ props: props => !props.hasSvgAsChild,
58
+ style: {
59
+ // the <svg> will define the property that has `currentColor`
60
+ // for example heroicons uses fill="none" and stroke="currentColor"
61
+ fill: 'currentColor'
62
+ }
63
+ }, {
64
+ props: {
65
+ fontSize: 'inherit'
66
+ },
67
+ style: {
68
+ fontSize: 'inherit'
69
+ }
70
+ }, {
71
+ props: {
72
+ fontSize: 'small'
73
+ },
74
+ style: {
75
+ fontSize: ((_theme$typography = theme.typography) == null || (_theme$typography$pxT = _theme$typography.pxToRem) == null ? void 0 : _theme$typography$pxT.call(_theme$typography, 20)) || '1.25rem'
76
+ }
77
+ }, {
78
+ props: {
79
+ fontSize: 'medium'
80
+ },
81
+ style: {
82
+ fontSize: ((_theme$typography2 = theme.typography) == null || (_theme$typography2$px = _theme$typography2.pxToRem) == null ? void 0 : _theme$typography2$px.call(_theme$typography2, 24)) || '1.5rem'
83
+ }
84
+ }, {
85
+ props: {
86
+ fontSize: 'large'
87
+ },
88
+ style: {
89
+ fontSize: ((_theme$typography3 = theme.typography) == null || (_theme$typography3$px = _theme$typography3.pxToRem) == null ? void 0 : _theme$typography3$px.call(_theme$typography3, 35)) || '2.1875rem'
90
+ }
91
+ },
92
+ // TODO v5 deprecate color prop, v6 remove for sx
93
+ ...Object.entries(((_theme$vars2 = theme.vars) != null ? _theme$vars2 : theme).palette).filter(([, value]) => value.main).map(([color]) => {
94
+ var _palette, _theme$vars3;
95
+ return {
96
+ props: {
97
+ color
98
+ },
99
+ style: {
100
+ color: (_palette = ((_theme$vars3 = theme.vars) != null ? _theme$vars3 : theme).palette) == null || (_palette = _palette[color]) == null ? void 0 : _palette.main
101
+ }
102
+ };
103
+ }), {
104
+ props: {
105
+ color: 'action'
106
+ },
107
+ style: {
108
+ color: (_palette2 = ((_theme$vars4 = theme.vars) != null ? _theme$vars4 : theme).palette) == null || (_palette2 = _palette2.action) == null ? void 0 : _palette2.active
109
+ }
110
+ }, {
111
+ props: {
112
+ color: 'disabled'
113
+ },
114
+ style: {
115
+ color: (_palette3 = ((_theme$vars5 = theme.vars) != null ? _theme$vars5 : theme).palette) == null || (_palette3 = _palette3.action) == null ? void 0 : _palette3.disabled
116
+ }
117
+ }, {
118
+ props: {
119
+ color: 'inherit'
120
+ },
121
+ style: {
122
+ color: undefined
123
+ }
124
+ }]
72
125
  };
73
126
  });
74
127
  const SvgIcon = /*#__PURE__*/React.forwardRef(function SvgIcon(inProps, ref) {
75
- const props = (0, _useThemeProps.default)({
128
+ const props = useThemeProps({
76
129
  props: inProps,
77
130
  name: 'MuiSvgIcon'
78
131
  });
@@ -190,5 +243,7 @@ process.env.NODE_ENV !== "production" ? SvgIcon.propTypes /* remove-proptypes */
190
243
  */
191
244
  viewBox: _propTypes.default.string
192
245
  } : void 0;
193
- SvgIcon.muiName = 'SvgIcon';
246
+ if (SvgIcon) {
247
+ SvgIcon.muiName = 'SvgIcon';
248
+ }
194
249
  var _default = exports.default = SvgIcon;
@@ -6,41 +6,62 @@ Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
8
  exports.default = void 0;
9
- var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
10
9
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
10
+ var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
11
11
  var React = _interopRequireWildcard(require("react"));
12
12
  var _propTypes = _interopRequireDefault(require("prop-types"));
13
13
  var _clsx = _interopRequireDefault(require("clsx"));
14
- var _styled = _interopRequireWildcard(require("../styles/styled"));
14
+ var _zeroStyled = require("../zero-styled");
15
+ var _rootShouldForwardProp = _interopRequireDefault(require("../styles/rootShouldForwardProp"));
15
16
  var _capitalize = _interopRequireDefault(require("../utils/capitalize"));
16
17
  var _Drawer = require("../Drawer/Drawer");
17
18
  var _jsxRuntime = require("react/jsx-runtime");
18
19
  const _excluded = ["anchor", "classes", "className", "width", "style"];
19
20
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
20
21
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
21
- const SwipeAreaRoot = (0, _styled.default)('div', {
22
- shouldForwardProp: _styled.rootShouldForwardProp
22
+ const SwipeAreaRoot = (0, _zeroStyled.styled)('div', {
23
+ shouldForwardProp: _rootShouldForwardProp.default
23
24
  })(({
24
- theme,
25
- ownerState
26
- }) => (0, _extends2.default)({
25
+ theme
26
+ }) => ({
27
27
  position: 'fixed',
28
28
  top: 0,
29
29
  left: 0,
30
30
  bottom: 0,
31
- zIndex: theme.zIndex.drawer - 1
32
- }, ownerState.anchor === 'left' && {
33
- right: 'auto'
34
- }, ownerState.anchor === 'right' && {
35
- left: 'auto',
36
- right: 0
37
- }, ownerState.anchor === 'top' && {
38
- bottom: 'auto',
39
- right: 0
40
- }, ownerState.anchor === 'bottom' && {
41
- top: 'auto',
42
- bottom: 0,
43
- right: 0
31
+ zIndex: theme.zIndex.drawer - 1,
32
+ variants: [{
33
+ props: {
34
+ anchor: 'left'
35
+ },
36
+ style: {
37
+ right: 'auto'
38
+ }
39
+ }, {
40
+ props: {
41
+ anchor: 'right'
42
+ },
43
+ style: {
44
+ left: 'auto',
45
+ right: 0
46
+ }
47
+ }, {
48
+ props: {
49
+ anchor: 'top'
50
+ },
51
+ style: {
52
+ bottom: 'auto',
53
+ right: 0
54
+ }
55
+ }, {
56
+ props: {
57
+ anchor: 'bottom'
58
+ },
59
+ style: {
60
+ top: 'auto',
61
+ bottom: 0,
62
+ right: 0
63
+ }
64
+ }]
44
65
  }));
45
66
 
46
67
  /**
package/node/Tab/Tab.js CHANGED
@@ -14,14 +14,14 @@ var _clsx = _interopRequireDefault(require("clsx"));
14
14
  var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
15
15
  var _ButtonBase = _interopRequireDefault(require("../ButtonBase"));
16
16
  var _capitalize = _interopRequireDefault(require("../utils/capitalize"));
17
- var _useThemeProps = _interopRequireDefault(require("../styles/useThemeProps"));
18
- var _styled = _interopRequireDefault(require("../styles/styled"));
17
+ var _zeroStyled = require("../zero-styled");
19
18
  var _unsupportedProp = _interopRequireDefault(require("../utils/unsupportedProp"));
20
19
  var _tabClasses = _interopRequireWildcard(require("./tabClasses"));
21
20
  var _jsxRuntime = require("react/jsx-runtime");
22
21
  const _excluded = ["className", "disabled", "disableFocusRipple", "fullWidth", "icon", "iconPosition", "indicator", "label", "onChange", "onClick", "onFocus", "selected", "selectionFollowsFocus", "textColor", "value", "wrapped"];
23
22
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
24
23
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
24
+ const useThemeProps = (0, _zeroStyled.createUseThemeProps)('MuiTab');
25
25
  const useUtilityClasses = ownerState => {
26
26
  const {
27
27
  classes,
@@ -39,7 +39,7 @@ const useUtilityClasses = ownerState => {
39
39
  };
40
40
  return (0, _composeClasses.default)(slots, _tabClasses.getTabUtilityClass, classes);
41
41
  };
42
- const TabRoot = (0, _styled.default)(_ButtonBase.default, {
42
+ const TabRoot = (0, _zeroStyled.styled)(_ButtonBase.default, {
43
43
  name: 'MuiTab',
44
44
  slot: 'Root',
45
45
  overridesResolver: (props, styles) => {
@@ -49,8 +49,7 @@ const TabRoot = (0, _styled.default)(_ButtonBase.default, {
49
49
  return [styles.root, ownerState.label && ownerState.icon && styles.labelIcon, styles[`textColor${(0, _capitalize.default)(ownerState.textColor)}`], ownerState.fullWidth && styles.fullWidth, ownerState.wrapped && styles.wrapped];
50
50
  }
51
51
  })(({
52
- theme,
53
- ownerState
52
+ theme
54
53
  }) => (0, _extends2.default)({}, theme.typography.button, {
55
54
  maxWidth: 360,
56
55
  minWidth: 90,
@@ -60,60 +59,133 @@ const TabRoot = (0, _styled.default)(_ButtonBase.default, {
60
59
  padding: '12px 16px',
61
60
  overflow: 'hidden',
62
61
  whiteSpace: 'normal',
63
- textAlign: 'center'
64
- }, ownerState.label && {
65
- flexDirection: ownerState.iconPosition === 'top' || ownerState.iconPosition === 'bottom' ? 'column' : 'row'
66
- }, {
67
- lineHeight: 1.25
68
- }, ownerState.icon && ownerState.label && {
69
- minHeight: 72,
70
- paddingTop: 9,
71
- paddingBottom: 9,
72
- [`& > .${_tabClasses.default.iconWrapper}`]: (0, _extends2.default)({}, ownerState.iconPosition === 'top' && {
73
- marginBottom: 6
74
- }, ownerState.iconPosition === 'bottom' && {
75
- marginTop: 6
76
- }, ownerState.iconPosition === 'start' && {
77
- marginRight: theme.spacing(1)
78
- }, ownerState.iconPosition === 'end' && {
79
- marginLeft: theme.spacing(1)
80
- })
81
- }, ownerState.textColor === 'inherit' && {
82
- color: 'inherit',
83
- opacity: 0.6,
84
- // same opacity as theme.palette.text.secondary
85
- [`&.${_tabClasses.default.selected}`]: {
86
- opacity: 1
87
- },
88
- [`&.${_tabClasses.default.disabled}`]: {
89
- opacity: (theme.vars || theme).palette.action.disabledOpacity
90
- }
91
- }, ownerState.textColor === 'primary' && {
92
- color: (theme.vars || theme).palette.text.secondary,
93
- [`&.${_tabClasses.default.selected}`]: {
94
- color: (theme.vars || theme).palette.primary.main
95
- },
96
- [`&.${_tabClasses.default.disabled}`]: {
97
- color: (theme.vars || theme).palette.text.disabled
98
- }
99
- }, ownerState.textColor === 'secondary' && {
100
- color: (theme.vars || theme).palette.text.secondary,
101
- [`&.${_tabClasses.default.selected}`]: {
102
- color: (theme.vars || theme).palette.secondary.main
103
- },
104
- [`&.${_tabClasses.default.disabled}`]: {
105
- color: (theme.vars || theme).palette.text.disabled
106
- }
107
- }, ownerState.fullWidth && {
108
- flexShrink: 1,
109
- flexGrow: 1,
110
- flexBasis: 0,
111
- maxWidth: 'none'
112
- }, ownerState.wrapped && {
113
- fontSize: theme.typography.pxToRem(12)
62
+ textAlign: 'center',
63
+ lineHeight: 1.25,
64
+ variants: [{
65
+ props: ({
66
+ ownerState
67
+ }) => ownerState.label && (ownerState.iconPosition === 'top' || ownerState.iconPosition === 'bottom'),
68
+ style: {
69
+ flexDirection: 'column'
70
+ }
71
+ }, {
72
+ props: ({
73
+ ownerState
74
+ }) => ownerState.label && ownerState.iconPosition !== 'top' && ownerState.iconPosition !== 'bottom',
75
+ style: {
76
+ flexDirection: 'row'
77
+ }
78
+ }, {
79
+ props: ({
80
+ ownerState
81
+ }) => ownerState.icon && ownerState.label,
82
+ style: {
83
+ minHeight: 72,
84
+ paddingTop: 9,
85
+ paddingBottom: 9
86
+ }
87
+ }, {
88
+ props: ({
89
+ ownerState,
90
+ iconPosition
91
+ }) => ownerState.icon && ownerState.label && iconPosition === 'top',
92
+ style: {
93
+ [`& > .${_tabClasses.default.iconWrapper}`]: {
94
+ marginBottom: 6
95
+ }
96
+ }
97
+ }, {
98
+ props: ({
99
+ ownerState,
100
+ iconPosition
101
+ }) => ownerState.icon && ownerState.label && iconPosition === 'bottom',
102
+ style: {
103
+ [`& > .${_tabClasses.default.iconWrapper}`]: {
104
+ marginTop: 6
105
+ }
106
+ }
107
+ }, {
108
+ props: ({
109
+ ownerState,
110
+ iconPosition
111
+ }) => ownerState.icon && ownerState.label && iconPosition === 'start',
112
+ style: {
113
+ [`& > .${_tabClasses.default.iconWrapper}`]: {
114
+ marginRight: theme.spacing(1)
115
+ }
116
+ }
117
+ }, {
118
+ props: ({
119
+ ownerState,
120
+ iconPosition
121
+ }) => ownerState.icon && ownerState.label && iconPosition === 'end',
122
+ style: {
123
+ [`& > .${_tabClasses.default.iconWrapper}`]: {
124
+ marginLeft: theme.spacing(1)
125
+ }
126
+ }
127
+ }, {
128
+ props: {
129
+ textColor: 'inherit'
130
+ },
131
+ style: {
132
+ color: 'inherit',
133
+ opacity: 0.6,
134
+ // same opacity as theme.palette.text.secondary
135
+ [`&.${_tabClasses.default.selected}`]: {
136
+ opacity: 1
137
+ },
138
+ [`&.${_tabClasses.default.disabled}`]: {
139
+ opacity: (theme.vars || theme).palette.action.disabledOpacity
140
+ }
141
+ }
142
+ }, {
143
+ props: {
144
+ textColor: 'primary'
145
+ },
146
+ style: {
147
+ color: (theme.vars || theme).palette.text.secondary,
148
+ [`&.${_tabClasses.default.selected}`]: {
149
+ color: (theme.vars || theme).palette.primary.main
150
+ },
151
+ [`&.${_tabClasses.default.disabled}`]: {
152
+ color: (theme.vars || theme).palette.text.disabled
153
+ }
154
+ }
155
+ }, {
156
+ props: {
157
+ textColor: 'secondary'
158
+ },
159
+ style: {
160
+ color: (theme.vars || theme).palette.text.secondary,
161
+ [`&.${_tabClasses.default.selected}`]: {
162
+ color: (theme.vars || theme).palette.secondary.main
163
+ },
164
+ [`&.${_tabClasses.default.disabled}`]: {
165
+ color: (theme.vars || theme).palette.text.disabled
166
+ }
167
+ }
168
+ }, {
169
+ props: ({
170
+ ownerState
171
+ }) => ownerState.fullWidth,
172
+ style: {
173
+ flexShrink: 1,
174
+ flexGrow: 1,
175
+ flexBasis: 0,
176
+ maxWidth: 'none'
177
+ }
178
+ }, {
179
+ props: ({
180
+ ownerState
181
+ }) => ownerState.wrapped,
182
+ style: {
183
+ fontSize: theme.typography.pxToRem(12)
184
+ }
185
+ }]
114
186
  }));
115
187
  const Tab = /*#__PURE__*/React.forwardRef(function Tab(inProps, ref) {
116
- const props = (0, _useThemeProps.default)({
188
+ const props = useThemeProps({
117
189
  props: inProps,
118
190
  name: 'MuiTab'
119
191
  });
@@ -7,8 +7,8 @@ Object.defineProperty(exports, "__esModule", {
7
7
  value: true
8
8
  });
9
9
  exports.default = void 0;
10
- var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
11
10
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
+ var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
12
12
  var React = _interopRequireWildcard(require("react"));
13
13
  var _propTypes = _interopRequireDefault(require("prop-types"));
14
14
  var _clsx = _interopRequireDefault(require("clsx"));
@@ -18,13 +18,13 @@ var _RtlProvider = require("@mui/system/RtlProvider");
18
18
  var _KeyboardArrowLeft = _interopRequireDefault(require("../internal/svg-icons/KeyboardArrowLeft"));
19
19
  var _KeyboardArrowRight = _interopRequireDefault(require("../internal/svg-icons/KeyboardArrowRight"));
20
20
  var _ButtonBase = _interopRequireDefault(require("../ButtonBase"));
21
- var _useThemeProps = _interopRequireDefault(require("../styles/useThemeProps"));
22
- var _styled = _interopRequireDefault(require("../styles/styled"));
21
+ var _zeroStyled = require("../zero-styled");
23
22
  var _tabScrollButtonClasses = _interopRequireWildcard(require("./tabScrollButtonClasses"));
24
23
  var _jsxRuntime = require("react/jsx-runtime");
25
24
  const _excluded = ["className", "slots", "slotProps", "direction", "orientation", "disabled"];
26
25
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
27
26
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
27
+ const useThemeProps = (0, _zeroStyled.createUseThemeProps)('MuiTabScrollButton');
28
28
  const useUtilityClasses = ownerState => {
29
29
  const {
30
30
  classes,
@@ -36,7 +36,7 @@ const useUtilityClasses = ownerState => {
36
36
  };
37
37
  return (0, _composeClasses.default)(slots, _tabScrollButtonClasses.getTabScrollButtonUtilityClass, classes);
38
38
  };
39
- const TabScrollButtonRoot = (0, _styled.default)(_ButtonBase.default, {
39
+ const TabScrollButtonRoot = (0, _zeroStyled.styled)(_ButtonBase.default, {
40
40
  name: 'MuiTabScrollButton',
41
41
  slot: 'Root',
42
42
  overridesResolver: (props, styles) => {
@@ -45,25 +45,29 @@ const TabScrollButtonRoot = (0, _styled.default)(_ButtonBase.default, {
45
45
  } = props;
46
46
  return [styles.root, ownerState.orientation && styles[ownerState.orientation]];
47
47
  }
48
- })(({
49
- ownerState
50
- }) => (0, _extends2.default)({
48
+ })({
51
49
  width: 40,
52
50
  flexShrink: 0,
53
51
  opacity: 0.8,
54
52
  [`&.${_tabScrollButtonClasses.default.disabled}`]: {
55
53
  opacity: 0
56
- }
57
- }, ownerState.orientation === 'vertical' && {
58
- width: '100%',
59
- height: 40,
60
- '& svg': {
61
- transform: `rotate(${ownerState.isRtl ? -90 : 90}deg)`
62
- }
63
- }));
54
+ },
55
+ variants: [{
56
+ props: {
57
+ orientation: 'vertical'
58
+ },
59
+ style: {
60
+ width: '100%',
61
+ height: 40,
62
+ '& svg': {
63
+ transform: 'var(--TabScrollButton-svgRotate)'
64
+ }
65
+ }
66
+ }]
67
+ });
64
68
  const TabScrollButton = /*#__PURE__*/React.forwardRef(function TabScrollButton(inProps, ref) {
65
69
  var _slots$StartScrollBut, _slots$EndScrollButto;
66
- const props = (0, _useThemeProps.default)({
70
+ const props = useThemeProps({
67
71
  props: inProps,
68
72
  name: 'MuiTabScrollButton'
69
73
  });
@@ -71,7 +75,8 @@ const TabScrollButton = /*#__PURE__*/React.forwardRef(function TabScrollButton(i
71
75
  className,
72
76
  slots = {},
73
77
  slotProps = {},
74
- direction
78
+ direction,
79
+ orientation
75
80
  } = props,
76
81
  other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
77
82
  const isRtl = (0, _RtlProvider.useRtl)();
@@ -105,6 +110,9 @@ const TabScrollButton = /*#__PURE__*/React.forwardRef(function TabScrollButton(i
105
110
  ownerState: ownerState,
106
111
  tabIndex: null
107
112
  }, other, {
113
+ style: (0, _extends2.default)({}, other.style, orientation === 'vertical' && {
114
+ '--TabScrollButton-svgRotate': `rotate(${isRtl ? -90 : 90}deg)`
115
+ }),
108
116
  children: direction === 'left' ? /*#__PURE__*/(0, _jsxRuntime.jsx)(StartButtonIcon, (0, _extends2.default)({}, startButtonIconProps)) : /*#__PURE__*/(0, _jsxRuntime.jsx)(EndButtonIcon, (0, _extends2.default)({}, endButtonIconProps))
109
117
  }));
110
118
  });
@@ -155,6 +163,10 @@ process.env.NODE_ENV !== "production" ? TabScrollButton.propTypes /* remove-prop
155
163
  EndScrollButtonIcon: _propTypes.default.elementType,
156
164
  StartScrollButtonIcon: _propTypes.default.elementType
157
165
  }),
166
+ /**
167
+ * @ignore
168
+ */
169
+ style: _propTypes.default.object,
158
170
  /**
159
171
  * The system prop that allows defining system overrides as well as additional CSS styles.
160
172
  */
@@ -13,13 +13,13 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
13
13
  var _clsx = _interopRequireDefault(require("clsx"));
14
14
  var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
15
15
  var _TableContext = _interopRequireDefault(require("./TableContext"));
16
- var _useThemeProps = _interopRequireDefault(require("../styles/useThemeProps"));
17
- var _styled = _interopRequireDefault(require("../styles/styled"));
16
+ var _zeroStyled = require("../zero-styled");
18
17
  var _tableClasses = require("./tableClasses");
19
18
  var _jsxRuntime = require("react/jsx-runtime");
20
19
  const _excluded = ["className", "component", "padding", "size", "stickyHeader"];
21
20
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
22
21
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
22
+ const useThemeProps = (0, _zeroStyled.createUseThemeProps)('MuiTable');
23
23
  const useUtilityClasses = ownerState => {
24
24
  const {
25
25
  classes,
@@ -30,7 +30,7 @@ const useUtilityClasses = ownerState => {
30
30
  };
31
31
  return (0, _composeClasses.default)(slots, _tableClasses.getTableUtilityClass, classes);
32
32
  };
33
- const TableRoot = (0, _styled.default)('table', {
33
+ const TableRoot = (0, _zeroStyled.styled)('table', {
34
34
  name: 'MuiTable',
35
35
  slot: 'Root',
36
36
  overridesResolver: (props, styles) => {
@@ -63,7 +63,7 @@ const TableRoot = (0, _styled.default)('table', {
63
63
  }));
64
64
  const defaultComponent = 'table';
65
65
  const Table = /*#__PURE__*/React.forwardRef(function Table(inProps, ref) {
66
- const props = (0, _useThemeProps.default)({
66
+ const props = useThemeProps({
67
67
  props: inProps,
68
68
  name: 'MuiTable'
69
69
  });
@@ -13,13 +13,13 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
13
13
  var _clsx = _interopRequireDefault(require("clsx"));
14
14
  var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
15
15
  var _Tablelvl2Context = _interopRequireDefault(require("../Table/Tablelvl2Context"));
16
- var _useThemeProps = _interopRequireDefault(require("../styles/useThemeProps"));
17
- var _styled = _interopRequireDefault(require("../styles/styled"));
16
+ var _zeroStyled = require("../zero-styled");
18
17
  var _tableBodyClasses = require("./tableBodyClasses");
19
18
  var _jsxRuntime = require("react/jsx-runtime");
20
19
  const _excluded = ["className", "component"];
21
20
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
22
21
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
22
+ const useThemeProps = (0, _zeroStyled.createUseThemeProps)('MuiTableBody');
23
23
  const useUtilityClasses = ownerState => {
24
24
  const {
25
25
  classes
@@ -29,7 +29,7 @@ const useUtilityClasses = ownerState => {
29
29
  };
30
30
  return (0, _composeClasses.default)(slots, _tableBodyClasses.getTableBodyUtilityClass, classes);
31
31
  };
32
- const TableBodyRoot = (0, _styled.default)('tbody', {
32
+ const TableBodyRoot = (0, _zeroStyled.styled)('tbody', {
33
33
  name: 'MuiTableBody',
34
34
  slot: 'Root',
35
35
  overridesResolver: (props, styles) => styles.root
@@ -41,7 +41,7 @@ const tablelvl2 = {
41
41
  };
42
42
  const defaultComponent = 'tbody';
43
43
  const TableBody = /*#__PURE__*/React.forwardRef(function TableBody(inProps, ref) {
44
- const props = (0, _useThemeProps.default)({
44
+ const props = useThemeProps({
45
45
  props: inProps,
46
46
  name: 'MuiTableBody'
47
47
  });