@mui/material 6.0.0-alpha.5 → 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 (269) 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 +48 -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 +1 -1
  34. package/FormControlLabel/FormControlLabel.js +1 -1
  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 +1 -1
  65. package/PaginationItem/PaginationItem.js +1 -1
  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/SwipeableDrawer/SwipeArea.js +39 -18
  86. package/Tab/Tab.js +127 -55
  87. package/TabScrollButton/TabScrollButton.js +27 -15
  88. package/Table/Table.js +2 -2
  89. package/TableBody/TableBody.js +2 -2
  90. package/TableCell/TableCell.js +2 -2
  91. package/TableContainer/TableContainer.js +2 -2
  92. package/TableFooter/TableFooter.js +2 -2
  93. package/TableHead/TableHead.js +2 -2
  94. package/TablePagination/TablePagination.js +2 -2
  95. package/TableRow/TableRow.js +2 -2
  96. package/TableSortLabel/TableSortLabel.js +2 -2
  97. package/Tabs/Tabs.js +107 -54
  98. package/TextField/TextField.js +2 -2
  99. package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +2 -2
  100. package/Toolbar/Toolbar.js +3 -7
  101. package/Tooltip/Tooltip.js +185 -88
  102. package/Typography/Typography.js +89 -39
  103. package/index.js +1 -1
  104. package/internal/SwitchBase.js +39 -11
  105. package/modern/Accordion/Accordion.js +2 -2
  106. package/modern/Alert/Alert.js +2 -2
  107. package/modern/Avatar/Avatar.js +1 -1
  108. package/modern/Backdrop/Backdrop.js +1 -1
  109. package/modern/Badge/Badge.js +2 -2
  110. package/modern/Breadcrumbs/BreadcrumbCollapsed.js +1 -1
  111. package/modern/Button/Button.js +1 -1
  112. package/modern/Checkbox/Checkbox.js +3 -1
  113. package/modern/Chip/chipClasses.js +1 -1
  114. package/modern/Collapse/Collapse.js +66 -35
  115. package/modern/Dialog/Dialog.js +105 -61
  116. package/modern/DialogActions/DialogActions.js +16 -12
  117. package/modern/DialogContent/DialogContent.js +25 -15
  118. package/modern/DialogContentText/DialogContentText.js +3 -2
  119. package/modern/DialogTitle/DialogTitle.js +2 -2
  120. package/modern/Divider/Divider.js +1 -1
  121. package/modern/Drawer/Drawer.js +73 -32
  122. package/modern/Fab/Fab.js +1 -1
  123. package/modern/FilledInput/FilledInput.js +170 -87
  124. package/modern/FormControlLabel/FormControlLabel.js +1 -1
  125. package/modern/FormHelperText/FormHelperText.js +2 -2
  126. package/modern/FormLabel/FormLabel.js +23 -13
  127. package/modern/Grow/Grow.js +3 -1
  128. package/modern/Icon/Icon.js +63 -23
  129. package/modern/ImageList/ImageList.js +2 -2
  130. package/modern/ImageListItem/ImageListItem.js +2 -2
  131. package/modern/ImageListItemBar/ImageListItemBar.js +2 -2
  132. package/modern/Input/Input.js +84 -61
  133. package/modern/InputAdornment/InputAdornment.js +37 -21
  134. package/modern/InputBase/InputBase.js +58 -28
  135. package/modern/InputLabel/InputLabel.js +120 -58
  136. package/modern/Link/Link.js +99 -54
  137. package/modern/Link/getTextDecoration.js +16 -8
  138. package/modern/List/List.js +22 -13
  139. package/modern/ListItem/ListItem.js +2 -2
  140. package/modern/ListItemAvatar/ListItemAvatar.js +2 -2
  141. package/modern/ListItemButton/ListItemButton.js +3 -2
  142. package/modern/ListItemIcon/ListItemIcon.js +14 -9
  143. package/modern/ListItemSecondaryAction/ListItemSecondaryAction.js +2 -2
  144. package/modern/ListItemText/ListItemText.js +2 -2
  145. package/modern/ListSubheader/ListSubheader.js +5 -3
  146. package/modern/Menu/Menu.js +3 -2
  147. package/modern/MenuItem/MenuItem.js +47 -27
  148. package/modern/NativeSelect/NativeSelectInput.js +78 -49
  149. package/modern/OutlinedInput/NotchedOutline.js +60 -43
  150. package/modern/OutlinedInput/OutlinedInput.js +97 -39
  151. package/modern/Pagination/Pagination.js +2 -2
  152. package/modern/PaginationItem/PaginationItem.js +1 -1
  153. package/modern/Paper/Paper.js +44 -21
  154. package/modern/Radio/Radio.js +5 -3
  155. package/modern/Radio/RadioButtonIcon.js +1 -1
  156. package/modern/Rating/Rating.js +3 -2
  157. package/modern/Select/Select.js +2 -1
  158. package/modern/Select/SelectInput.js +8 -6
  159. package/modern/Skeleton/Skeleton.js +109 -61
  160. package/modern/Slider/Slider.js +2 -2
  161. package/modern/Snackbar/Snackbar.js +66 -40
  162. package/modern/SnackbarContent/SnackbarContent.js +2 -2
  163. package/modern/SpeedDial/SpeedDial.js +107 -49
  164. package/modern/SpeedDialAction/SpeedDialAction.js +50 -24
  165. package/modern/SpeedDialIcon/SpeedDialIcon.js +37 -16
  166. package/modern/StepLabel/StepLabel.js +3 -3
  167. package/modern/SwipeableDrawer/SwipeArea.js +39 -18
  168. package/modern/Tab/Tab.js +127 -55
  169. package/modern/TabScrollButton/TabScrollButton.js +27 -15
  170. package/modern/Table/Table.js +2 -2
  171. package/modern/TableBody/TableBody.js +2 -2
  172. package/modern/TableCell/TableCell.js +2 -2
  173. package/modern/TableContainer/TableContainer.js +2 -2
  174. package/modern/TableFooter/TableFooter.js +2 -2
  175. package/modern/TableHead/TableHead.js +2 -2
  176. package/modern/TablePagination/TablePagination.js +2 -2
  177. package/modern/TableRow/TableRow.js +2 -2
  178. package/modern/TableSortLabel/TableSortLabel.js +2 -2
  179. package/modern/Tabs/Tabs.js +107 -54
  180. package/modern/TextField/TextField.js +2 -2
  181. package/modern/Toolbar/Toolbar.js +3 -7
  182. package/modern/Tooltip/Tooltip.js +185 -88
  183. package/modern/Typography/Typography.js +89 -39
  184. package/modern/index.js +1 -1
  185. package/modern/internal/SwitchBase.js +39 -11
  186. package/node/Accordion/Accordion.js +2 -2
  187. package/node/Alert/Alert.js +2 -2
  188. package/node/Avatar/Avatar.js +1 -1
  189. package/node/Backdrop/Backdrop.js +1 -1
  190. package/node/Badge/Badge.js +2 -2
  191. package/node/Breadcrumbs/BreadcrumbCollapsed.js +3 -3
  192. package/node/Button/Button.js +2 -2
  193. package/node/Checkbox/Checkbox.js +3 -1
  194. package/node/Chip/chipClasses.js +1 -1
  195. package/node/Collapse/Collapse.js +70 -39
  196. package/node/Dialog/Dialog.js +110 -66
  197. package/node/DialogActions/DialogActions.js +18 -14
  198. package/node/DialogContent/DialogContent.js +27 -17
  199. package/node/DialogContentText/DialogContentText.js +6 -5
  200. package/node/DialogTitle/DialogTitle.js +4 -4
  201. package/node/Divider/Divider.js +1 -1
  202. package/node/Drawer/Drawer.js +78 -37
  203. package/node/Fab/Fab.js +2 -2
  204. package/node/FilledInput/FilledInput.js +176 -91
  205. package/node/FormControlLabel/FormControlLabel.js +1 -1
  206. package/node/FormHelperText/FormHelperText.js +4 -4
  207. package/node/FormLabel/FormLabel.js +26 -16
  208. package/node/Grow/Grow.js +3 -1
  209. package/node/Icon/Icon.js +65 -25
  210. package/node/ImageList/ImageList.js +4 -4
  211. package/node/ImageListItem/ImageListItem.js +4 -4
  212. package/node/ImageListItemBar/ImageListItemBar.js +8 -8
  213. package/node/Input/Input.js +87 -64
  214. package/node/InputAdornment/InputAdornment.js +39 -23
  215. package/node/InputBase/InputBase.js +61 -31
  216. package/node/InputLabel/InputLabel.js +123 -61
  217. package/node/Link/Link.js +101 -56
  218. package/node/Link/getTextDecoration.js +18 -10
  219. package/node/List/List.js +24 -15
  220. package/node/ListItem/ListItem.js +5 -5
  221. package/node/ListItemAvatar/ListItemAvatar.js +4 -4
  222. package/node/ListItemButton/ListItemButton.js +6 -5
  223. package/node/ListItemIcon/ListItemIcon.js +16 -11
  224. package/node/ListItemSecondaryAction/ListItemSecondaryAction.js +4 -4
  225. package/node/ListItemText/ListItemText.js +4 -4
  226. package/node/ListSubheader/ListSubheader.js +7 -5
  227. package/node/Menu/Menu.js +8 -7
  228. package/node/MenuItem/MenuItem.js +50 -30
  229. package/node/NativeSelect/NativeSelectInput.js +80 -53
  230. package/node/OutlinedInput/NotchedOutline.js +64 -47
  231. package/node/OutlinedInput/OutlinedInput.js +101 -43
  232. package/node/Pagination/Pagination.js +5 -5
  233. package/node/PaginationItem/PaginationItem.js +1 -1
  234. package/node/Paper/Paper.js +49 -28
  235. package/node/Radio/Radio.js +6 -4
  236. package/node/Radio/RadioButtonIcon.js +2 -2
  237. package/node/Rating/Rating.js +9 -8
  238. package/node/Select/Select.js +6 -5
  239. package/node/Select/SelectInput.js +9 -7
  240. package/node/Skeleton/Skeleton.js +113 -65
  241. package/node/Slider/Slider.js +2 -2
  242. package/node/Snackbar/Snackbar.js +68 -42
  243. package/node/SnackbarContent/SnackbarContent.js +6 -6
  244. package/node/SpeedDial/SpeedDial.js +111 -53
  245. package/node/SpeedDialAction/SpeedDialAction.js +54 -28
  246. package/node/SpeedDialIcon/SpeedDialIcon.js +39 -18
  247. package/node/StepLabel/StepLabel.js +3 -3
  248. package/node/SwipeableDrawer/SwipeArea.js +41 -20
  249. package/node/Tab/Tab.js +129 -57
  250. package/node/TabScrollButton/TabScrollButton.js +29 -17
  251. package/node/Table/Table.js +4 -4
  252. package/node/TableBody/TableBody.js +4 -4
  253. package/node/TableCell/TableCell.js +4 -4
  254. package/node/TableContainer/TableContainer.js +4 -4
  255. package/node/TableFooter/TableFooter.js +4 -4
  256. package/node/TableHead/TableHead.js +4 -4
  257. package/node/TablePagination/TablePagination.js +10 -10
  258. package/node/TableRow/TableRow.js +4 -4
  259. package/node/TableSortLabel/TableSortLabel.js +5 -5
  260. package/node/Tabs/Tabs.js +113 -60
  261. package/node/TextField/TextField.js +4 -4
  262. package/node/Toolbar/Toolbar.js +5 -9
  263. package/node/Tooltip/Tooltip.js +189 -92
  264. package/node/Typography/Typography.js +90 -40
  265. package/node/index.js +1 -1
  266. package/node/internal/SwitchBase.js +41 -13
  267. package/package.json +4 -4
  268. package/umd/material-ui.development.js +2585 -1287
  269. package/umd/material-ui.production.min.js +4 -4
@@ -6,8 +6,8 @@ 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 _reactIs = require("react-is");
13
13
  var _propTypes = _interopRequireDefault(require("prop-types"));
@@ -15,8 +15,7 @@ var _clsx = _interopRequireDefault(require("clsx"));
15
15
  var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
16
16
  var _useTimeout = _interopRequireDefault(require("@mui/utils/useTimeout"));
17
17
  var _clamp = _interopRequireDefault(require("@mui/utils/clamp"));
18
- var _styled = _interopRequireDefault(require("../styles/styled"));
19
- var _useThemeProps = _interopRequireDefault(require("../styles/useThemeProps"));
18
+ var _zeroStyled = require("../zero-styled");
20
19
  var _useTheme = _interopRequireDefault(require("../styles/useTheme"));
21
20
  var _Zoom = _interopRequireDefault(require("../Zoom"));
22
21
  var _Fab = _interopRequireDefault(require("../Fab"));
@@ -25,12 +24,14 @@ var _isMuiElement = _interopRequireDefault(require("../utils/isMuiElement"));
25
24
  var _useForkRef = _interopRequireDefault(require("../utils/useForkRef"));
26
25
  var _useControlled = _interopRequireDefault(require("../utils/useControlled"));
27
26
  var _speedDialClasses = _interopRequireWildcard(require("./speedDialClasses"));
27
+ var _useSlot = _interopRequireDefault(require("../utils/useSlot"));
28
28
  var _jsxRuntime = require("react/jsx-runtime");
29
29
  const _excluded = ["ref"],
30
- _excluded2 = ["ariaLabel", "FabProps", "children", "className", "direction", "hidden", "icon", "onBlur", "onClose", "onFocus", "onKeyDown", "onMouseEnter", "onMouseLeave", "onOpen", "open", "openIcon", "TransitionComponent", "transitionDuration", "TransitionProps"],
30
+ _excluded2 = ["ariaLabel", "FabProps", "children", "className", "direction", "hidden", "icon", "onBlur", "onClose", "onFocus", "onKeyDown", "onMouseEnter", "onMouseLeave", "onOpen", "open", "openIcon", "slots", "slotProps", "TransitionComponent", "TransitionProps", "transitionDuration"],
31
31
  _excluded3 = ["ref"];
32
32
  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); }
33
33
  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; }
34
+ const useThemeProps = (0, _zeroStyled.createUseThemeProps)('MuiSpeedDial');
34
35
  const useUtilityClasses = ownerState => {
35
36
  const {
36
37
  classes,
@@ -55,7 +56,7 @@ function getOrientation(direction) {
55
56
  }
56
57
  const dialRadius = 32;
57
58
  const spacingActions = 16;
58
- const SpeedDialRoot = (0, _styled.default)('div', {
59
+ const SpeedDialRoot = (0, _zeroStyled.styled)('div', {
59
60
  name: 'MuiSpeedDial',
60
61
  slot: 'Root',
61
62
  overridesResolver: (props, styles) => {
@@ -65,50 +66,70 @@ const SpeedDialRoot = (0, _styled.default)('div', {
65
66
  return [styles.root, styles[`direction${(0, _capitalize.default)(ownerState.direction)}`]];
66
67
  }
67
68
  })(({
68
- theme,
69
- ownerState
70
- }) => (0, _extends2.default)({
69
+ theme
70
+ }) => ({
71
71
  zIndex: (theme.vars || theme).zIndex.speedDial,
72
72
  display: 'flex',
73
73
  alignItems: 'center',
74
- pointerEvents: 'none'
75
- }, ownerState.direction === 'up' && {
76
- flexDirection: 'column-reverse',
77
- [`& .${_speedDialClasses.default.actions}`]: {
78
- flexDirection: 'column-reverse',
79
- marginBottom: -dialRadius,
80
- paddingBottom: spacingActions + dialRadius
81
- }
82
- }, ownerState.direction === 'down' && {
83
- flexDirection: 'column',
84
- [`& .${_speedDialClasses.default.actions}`]: {
85
- flexDirection: 'column',
86
- marginTop: -dialRadius,
87
- paddingTop: spacingActions + dialRadius
88
- }
89
- }, ownerState.direction === 'left' && {
90
- flexDirection: 'row-reverse',
91
- [`& .${_speedDialClasses.default.actions}`]: {
92
- flexDirection: 'row-reverse',
93
- marginRight: -dialRadius,
94
- paddingRight: spacingActions + dialRadius
95
- }
96
- }, ownerState.direction === 'right' && {
97
- flexDirection: 'row',
98
- [`& .${_speedDialClasses.default.actions}`]: {
99
- flexDirection: 'row',
100
- marginLeft: -dialRadius,
101
- paddingLeft: spacingActions + dialRadius
102
- }
74
+ pointerEvents: 'none',
75
+ variants: [{
76
+ props: {
77
+ direction: 'up'
78
+ },
79
+ style: {
80
+ flexDirection: 'column-reverse',
81
+ [`& .${_speedDialClasses.default.actions}`]: {
82
+ flexDirection: 'column-reverse',
83
+ marginBottom: -dialRadius,
84
+ paddingBottom: spacingActions + dialRadius
85
+ }
86
+ }
87
+ }, {
88
+ props: {
89
+ direction: 'down'
90
+ },
91
+ style: {
92
+ flexDirection: 'column',
93
+ [`& .${_speedDialClasses.default.actions}`]: {
94
+ flexDirection: 'column',
95
+ marginTop: -dialRadius,
96
+ paddingTop: spacingActions + dialRadius
97
+ }
98
+ }
99
+ }, {
100
+ props: {
101
+ direction: 'left'
102
+ },
103
+ style: {
104
+ flexDirection: 'row-reverse',
105
+ [`& .${_speedDialClasses.default.actions}`]: {
106
+ flexDirection: 'row-reverse',
107
+ marginRight: -dialRadius,
108
+ paddingRight: spacingActions + dialRadius
109
+ }
110
+ }
111
+ }, {
112
+ props: {
113
+ direction: 'right'
114
+ },
115
+ style: {
116
+ flexDirection: 'row',
117
+ [`& .${_speedDialClasses.default.actions}`]: {
118
+ flexDirection: 'row',
119
+ marginLeft: -dialRadius,
120
+ paddingLeft: spacingActions + dialRadius
121
+ }
122
+ }
123
+ }]
103
124
  }));
104
- const SpeedDialFab = (0, _styled.default)(_Fab.default, {
125
+ const SpeedDialFab = (0, _zeroStyled.styled)(_Fab.default, {
105
126
  name: 'MuiSpeedDial',
106
127
  slot: 'Fab',
107
128
  overridesResolver: (props, styles) => styles.fab
108
129
  })(() => ({
109
130
  pointerEvents: 'auto'
110
131
  }));
111
- const SpeedDialActions = (0, _styled.default)('div', {
132
+ const SpeedDialActions = (0, _zeroStyled.styled)('div', {
112
133
  name: 'MuiSpeedDial',
113
134
  slot: 'Actions',
114
135
  overridesResolver: (props, styles) => {
@@ -117,17 +138,21 @@ const SpeedDialActions = (0, _styled.default)('div', {
117
138
  } = props;
118
139
  return [styles.actions, !ownerState.open && styles.actionsClosed];
119
140
  }
120
- })(({
121
- ownerState
122
- }) => (0, _extends2.default)({
141
+ })({
123
142
  display: 'flex',
124
- pointerEvents: 'auto'
125
- }, !ownerState.open && {
126
- transition: 'top 0s linear 0.2s',
127
- pointerEvents: 'none'
128
- }));
143
+ pointerEvents: 'auto',
144
+ variants: [{
145
+ props: ({
146
+ ownerState
147
+ }) => !ownerState.open,
148
+ style: {
149
+ transition: 'top 0s linear 0.2s',
150
+ pointerEvents: 'none'
151
+ }
152
+ }]
153
+ });
129
154
  const SpeedDial = /*#__PURE__*/React.forwardRef(function SpeedDial(inProps, ref) {
130
- const props = (0, _useThemeProps.default)({
155
+ const props = useThemeProps({
131
156
  props: inProps,
132
157
  name: 'MuiSpeedDial'
133
158
  });
@@ -154,9 +179,11 @@ const SpeedDial = /*#__PURE__*/React.forwardRef(function SpeedDial(inProps, ref)
154
179
  onMouseLeave,
155
180
  onOpen,
156
181
  open: openProp,
157
- TransitionComponent = _Zoom.default,
158
- transitionDuration = defaultTransitionDuration,
159
- TransitionProps
182
+ slots = {},
183
+ slotProps = {},
184
+ TransitionComponent: TransitionComponentProp,
185
+ TransitionProps: TransitionPropsProp,
186
+ transitionDuration = defaultTransitionDuration
160
187
  } = props,
161
188
  FabProps = (0, _objectWithoutPropertiesLoose2.default)(props.FabProps, _excluded),
162
189
  other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded2);
@@ -344,6 +371,21 @@ const SpeedDial = /*#__PURE__*/React.forwardRef(function SpeedDial(inProps, ref)
344
371
  id: `${id}-action-${index}`
345
372
  });
346
373
  });
374
+ const backwardCompatibleSlots = (0, _extends2.default)({
375
+ transition: TransitionComponentProp
376
+ }, slots);
377
+ const backwardCompatibleSlotProps = (0, _extends2.default)({
378
+ transition: TransitionPropsProp
379
+ }, slotProps);
380
+ const externalForwardedProps = {
381
+ slots: backwardCompatibleSlots,
382
+ slotProps: backwardCompatibleSlotProps
383
+ };
384
+ const [TransitionSlot, transitionProps] = (0, _useSlot.default)('transition', {
385
+ elementType: _Zoom.default,
386
+ externalForwardedProps,
387
+ ownerState
388
+ });
347
389
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(SpeedDialRoot, (0, _extends2.default)({
348
390
  className: (0, _clsx.default)(classes.root, className),
349
391
  ref: ref,
@@ -355,11 +397,11 @@ const SpeedDial = /*#__PURE__*/React.forwardRef(function SpeedDial(inProps, ref)
355
397
  onMouseLeave: handleClose,
356
398
  ownerState: ownerState
357
399
  }, other, {
358
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(TransitionComponent, (0, _extends2.default)({
400
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(TransitionSlot, (0, _extends2.default)({
359
401
  in: !hidden,
360
402
  timeout: transitionDuration,
361
403
  unmountOnExit: true
362
- }, TransitionProps, {
404
+ }, transitionProps, {
363
405
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(SpeedDialFab, (0, _extends2.default)({
364
406
  color: "primary",
365
407
  "aria-label": ariaLabel,
@@ -469,6 +511,20 @@ process.env.NODE_ENV !== "production" ? SpeedDial.propTypes /* remove-proptypes
469
511
  * The icon to display in the SpeedDial Fab when the SpeedDial is open.
470
512
  */
471
513
  openIcon: _propTypes.default.node,
514
+ /**
515
+ * The props used for each slot inside.
516
+ * @default {}
517
+ */
518
+ slotProps: _propTypes.default.shape({
519
+ transition: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object])
520
+ }),
521
+ /**
522
+ * The components used for each slot inside.
523
+ * @default {}
524
+ */
525
+ slots: _propTypes.default.shape({
526
+ transition: _propTypes.default.elementType
527
+ }),
472
528
  /**
473
529
  * The system prop that allows defining system overrides as well as additional CSS styles.
474
530
  */
@@ -477,6 +533,7 @@ process.env.NODE_ENV !== "production" ? SpeedDial.propTypes /* remove-proptypes
477
533
  * The component used for the transition.
478
534
  * [Follow this guide](/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
479
535
  * @default Zoom
536
+ * * @deprecated Use `slots.transition` instead. This prop will be removed in v7. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
480
537
  */
481
538
  TransitionComponent: _propTypes.default.elementType,
482
539
  /**
@@ -495,6 +552,7 @@ process.env.NODE_ENV !== "production" ? SpeedDial.propTypes /* remove-proptypes
495
552
  /**
496
553
  * Props applied to the transition element.
497
554
  * By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.
555
+ * @deprecated Use `slotProps.transition` instead. This prop will be removed in v7. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
498
556
  */
499
557
  TransitionProps: _propTypes.default.object
500
558
  } : void 0;
@@ -14,8 +14,7 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
14
14
  var _clsx = _interopRequireDefault(require("clsx"));
15
15
  var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
16
16
  var _colorManipulator = require("@mui/system/colorManipulator");
17
- var _styled = _interopRequireDefault(require("../styles/styled"));
18
- var _useThemeProps = _interopRequireDefault(require("../styles/useThemeProps"));
17
+ var _zeroStyled = require("../zero-styled");
19
18
  var _Fab = _interopRequireDefault(require("../Fab"));
20
19
  var _Tooltip = _interopRequireDefault(require("../Tooltip"));
21
20
  var _capitalize = _interopRequireDefault(require("../utils/capitalize"));
@@ -24,6 +23,7 @@ var _jsxRuntime = require("react/jsx-runtime");
24
23
  const _excluded = ["className", "delay", "FabProps", "icon", "id", "open", "TooltipClasses", "tooltipOpen", "tooltipPlacement", "tooltipTitle"];
25
24
  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); }
26
25
  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; }
26
+ const useThemeProps = (0, _zeroStyled.createUseThemeProps)('MuiSpeedDialAction');
27
27
  const useUtilityClasses = ownerState => {
28
28
  const {
29
29
  open,
@@ -37,7 +37,7 @@ const useUtilityClasses = ownerState => {
37
37
  };
38
38
  return (0, _composeClasses.default)(slots, _speedDialActionClasses.getSpeedDialActionUtilityClass, classes);
39
39
  };
40
- const SpeedDialActionFab = (0, _styled.default)(_Fab.default, {
40
+ const SpeedDialActionFab = (0, _zeroStyled.styled)(_Fab.default, {
41
41
  name: 'MuiSpeedDialAction',
42
42
  slot: 'Fab',
43
43
  skipVariantsResolver: false,
@@ -48,9 +48,8 @@ const SpeedDialActionFab = (0, _styled.default)(_Fab.default, {
48
48
  return [styles.fab, !ownerState.open && styles.fabClosed];
49
49
  }
50
50
  })(({
51
- theme,
52
- ownerState
53
- }) => (0, _extends2.default)({
51
+ theme
52
+ }) => ({
54
53
  margin: 8,
55
54
  color: (theme.vars || theme).palette.text.secondary,
56
55
  backgroundColor: (theme.vars || theme).palette.background.paper,
@@ -60,12 +59,18 @@ const SpeedDialActionFab = (0, _styled.default)(_Fab.default, {
60
59
  transition: `${theme.transitions.create('transform', {
61
60
  duration: theme.transitions.duration.shorter
62
61
  })}, opacity 0.8s`,
63
- opacity: 1
64
- }, !ownerState.open && {
65
- opacity: 0,
66
- transform: 'scale(0)'
62
+ opacity: 1,
63
+ variants: [{
64
+ props: ({
65
+ ownerState
66
+ }) => !ownerState.open,
67
+ style: {
68
+ opacity: 0,
69
+ transform: 'scale(0)'
70
+ }
71
+ }]
67
72
  }));
68
- const SpeedDialActionStaticTooltip = (0, _styled.default)('span', {
73
+ const SpeedDialActionStaticTooltip = (0, _zeroStyled.styled)('span', {
69
74
  name: 'MuiSpeedDialAction',
70
75
  slot: 'StaticTooltip',
71
76
  overridesResolver: (props, styles) => {
@@ -75,31 +80,52 @@ const SpeedDialActionStaticTooltip = (0, _styled.default)('span', {
75
80
  return [styles.staticTooltip, !ownerState.open && styles.staticTooltipClosed, styles[`tooltipPlacement${(0, _capitalize.default)(ownerState.tooltipPlacement)}`]];
76
81
  }
77
82
  })(({
78
- theme,
79
- ownerState
83
+ theme
80
84
  }) => ({
81
85
  position: 'relative',
82
86
  display: 'flex',
83
87
  alignItems: 'center',
84
- [`& .${_speedDialActionClasses.default.staticTooltipLabel}`]: (0, _extends2.default)({
88
+ [`& .${_speedDialActionClasses.default.staticTooltipLabel}`]: {
85
89
  transition: theme.transitions.create(['transform', 'opacity'], {
86
90
  duration: theme.transitions.duration.shorter
87
91
  }),
88
92
  opacity: 1
89
- }, !ownerState.open && {
90
- opacity: 0,
91
- transform: 'scale(0.5)'
92
- }, ownerState.tooltipPlacement === 'left' && {
93
- transformOrigin: '100% 50%',
94
- right: '100%',
95
- marginRight: 8
96
- }, ownerState.tooltipPlacement === 'right' && {
97
- transformOrigin: '0% 50%',
98
- left: '100%',
99
- marginLeft: 8
100
- })
93
+ },
94
+ variants: [{
95
+ props: ({
96
+ ownerState
97
+ }) => !ownerState.open,
98
+ style: {
99
+ [`& .${_speedDialActionClasses.default.staticTooltipLabel}`]: {
100
+ opacity: 0,
101
+ transform: 'scale(0.5)'
102
+ }
103
+ }
104
+ }, {
105
+ props: {
106
+ tooltipPlacement: 'left'
107
+ },
108
+ style: {
109
+ [`& .${_speedDialActionClasses.default.staticTooltipLabel}`]: {
110
+ transformOrigin: '100% 50%',
111
+ right: '100%',
112
+ marginRight: 8
113
+ }
114
+ }
115
+ }, {
116
+ props: {
117
+ tooltipPlacement: 'right'
118
+ },
119
+ style: {
120
+ [`& .${_speedDialActionClasses.default.staticTooltipLabel}`]: {
121
+ transformOrigin: '0% 50%',
122
+ left: '100%',
123
+ marginLeft: 8
124
+ }
125
+ }
126
+ }]
101
127
  }));
102
- const SpeedDialActionStaticTooltipLabel = (0, _styled.default)('span', {
128
+ const SpeedDialActionStaticTooltipLabel = (0, _zeroStyled.styled)('span', {
103
129
  name: 'MuiSpeedDialAction',
104
130
  slot: 'StaticTooltipLabel',
105
131
  overridesResolver: (props, styles) => styles.staticTooltipLabel
@@ -116,7 +142,7 @@ const SpeedDialActionStaticTooltipLabel = (0, _styled.default)('span', {
116
142
  wordBreak: 'keep-all'
117
143
  }));
118
144
  const SpeedDialAction = /*#__PURE__*/React.forwardRef(function SpeedDialAction(inProps, ref) {
119
- const props = (0, _useThemeProps.default)({
145
+ const props = useThemeProps({
120
146
  props: inProps,
121
147
  name: 'MuiSpeedDialAction'
122
148
  });
@@ -6,20 +6,20 @@ 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
14
  var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
15
- var _styled = _interopRequireDefault(require("../styles/styled"));
16
- var _useThemeProps = _interopRequireDefault(require("../styles/useThemeProps"));
15
+ var _zeroStyled = require("../zero-styled");
17
16
  var _Add = _interopRequireDefault(require("../internal/svg-icons/Add"));
18
17
  var _speedDialIconClasses = _interopRequireWildcard(require("./speedDialIconClasses"));
19
18
  var _jsxRuntime = require("react/jsx-runtime");
20
19
  const _excluded = ["className", "icon", "open", "openIcon"];
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)('MuiSpeedDialIcon');
23
23
  const useUtilityClasses = ownerState => {
24
24
  const {
25
25
  classes,
@@ -33,7 +33,7 @@ const useUtilityClasses = ownerState => {
33
33
  };
34
34
  return (0, _composeClasses.default)(slots, _speedDialIconClasses.getSpeedDialIconUtilityClass, classes);
35
35
  };
36
- const SpeedDialIconRoot = (0, _styled.default)('span', {
36
+ const SpeedDialIconRoot = (0, _zeroStyled.styled)('span', {
37
37
  name: 'MuiSpeedDialIcon',
38
38
  slot: 'Root',
39
39
  overridesResolver: (props, styles) => {
@@ -53,33 +53,54 @@ const SpeedDialIconRoot = (0, _styled.default)('span', {
53
53
  }, styles.root];
54
54
  }
55
55
  })(({
56
- theme,
57
- ownerState
56
+ theme
58
57
  }) => ({
59
58
  height: 24,
60
- [`& .${_speedDialIconClasses.default.icon}`]: (0, _extends2.default)({
59
+ [`& .${_speedDialIconClasses.default.icon}`]: {
61
60
  transition: theme.transitions.create(['transform', 'opacity'], {
62
61
  duration: theme.transitions.duration.short
63
62
  })
64
- }, ownerState.open && (0, _extends2.default)({
65
- transform: 'rotate(45deg)'
66
- }, ownerState.openIcon && {
67
- opacity: 0
68
- })),
69
- [`& .${_speedDialIconClasses.default.openIcon}`]: (0, _extends2.default)({
63
+ },
64
+ [`& .${_speedDialIconClasses.default.openIcon}`]: {
70
65
  position: 'absolute',
71
66
  transition: theme.transitions.create(['transform', 'opacity'], {
72
67
  duration: theme.transitions.duration.short
73
68
  }),
74
69
  opacity: 0,
75
70
  transform: 'rotate(-45deg)'
76
- }, ownerState.open && {
77
- transform: 'rotate(0deg)',
78
- opacity: 1
79
- })
71
+ },
72
+ variants: [{
73
+ props: ({
74
+ ownerState
75
+ }) => ownerState.open,
76
+ style: {
77
+ [`& .${_speedDialIconClasses.default.icon}`]: {
78
+ transform: 'rotate(45deg)'
79
+ }
80
+ }
81
+ }, {
82
+ props: ({
83
+ ownerState
84
+ }) => ownerState.open && ownerState.openIcon,
85
+ style: {
86
+ [`& .${_speedDialIconClasses.default.icon}`]: {
87
+ opacity: 0
88
+ }
89
+ }
90
+ }, {
91
+ props: ({
92
+ ownerState
93
+ }) => ownerState.open,
94
+ style: {
95
+ [`& .${_speedDialIconClasses.default.openIcon}`]: {
96
+ transform: 'rotate(0deg)',
97
+ opacity: 1
98
+ }
99
+ }
100
+ }]
80
101
  }));
81
102
  const SpeedDialIcon = /*#__PURE__*/React.forwardRef(function SpeedDialIcon(inProps, ref) {
82
- const props = (0, _useThemeProps.default)({
103
+ const props = useThemeProps({
83
104
  props: inProps,
84
105
  name: 'MuiSpeedDialIcon'
85
106
  });
@@ -223,7 +223,7 @@ process.env.NODE_ENV !== "production" ? StepLabel.propTypes /* remove-proptypes
223
223
  /**
224
224
  * The props used for each slot inside.
225
225
  * @default {}
226
- * @deprecated use the `slotProps` prop instead. This prop will be removed in v7. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
226
+ * @deprecated use the `slotProps` prop instead. This prop will be removed in v7. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
227
227
  */
228
228
  componentsProps: _propTypes.default.shape({
229
229
  label: _propTypes.default.object
@@ -259,12 +259,12 @@ process.env.NODE_ENV !== "production" ? StepLabel.propTypes /* remove-proptypes
259
259
  }),
260
260
  /**
261
261
  * The component to render in place of the [`StepIcon`](/material-ui/api/step-icon/).
262
- * @deprecated Use `slots.stepIcon` instead. This prop will be removed in v7. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
262
+ * @deprecated Use `slots.stepIcon` instead. This prop will be removed in v7. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
263
263
  */
264
264
  StepIconComponent: _propTypes.default.elementType,
265
265
  /**
266
266
  * Props applied to the [`StepIcon`](/material-ui/api/step-icon/) element.
267
- * @deprecated Use `slotProps.stepIcon` instead. This prop will be removed in v7. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
267
+ * @deprecated Use `slotProps.stepIcon` instead. This prop will be removed in v7. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
268
268
  */
269
269
  StepIconProps: _propTypes.default.object,
270
270
  /**
@@ -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
  /**