@redsift/table 12.3.1-muiv6-alpha.4 → 12.4.0-muiv7

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.
@@ -1,11 +1,91 @@
1
- import { a as _objectWithoutProperties, b as _extends$1 } from './_rollupPluginBabelHelpers.js';
1
+ import { a as _objectWithoutProperties, b as _extends } from './_rollupPluginBabelHelpers.js';
2
2
  import * as React from 'react';
3
3
  import React__default, { forwardRef } from 'react';
4
4
  import { ButtonsColorPalette, IconButton, Button, Checkbox, Icon } from '@redsift/design-system';
5
5
  import { mdiFilterVariant, mdiViewColumn, mdiArrowUp, mdiArrowDown, mdiViewHeadline, mdiViewSequential, mdiViewStream, mdiChevronDown, mdiChevronRight, mdiTrayArrowDown } from '@redsift/icons';
6
- import { f as generateUtilityClass, g as generateUtilityClasses, _ as _objectWithoutPropertiesLoose, o as ownerDocument, n as Portal, a as _extends, p as chainPropTypes, P as PropTypes, H as HTMLElementType, m as refType, q as useForkRef, t as useEnhancedEffect, v as useSlotProps, l as composeClasses, w as useClassNamesOverride, h as styled, x as useTheme, j as useThemeProps } from './Portal.js';
6
+ import { e as generateUtilityClass, g as generateUtilityClasses, o as ownerDocument, k as Portal, l as chainPropTypes, P as PropTypes, H as HTMLElementType, j as refType, m as useForkRef, n as useEnhancedEffect, p as useSlotProps, h as composeClasses, f as styled, q as useRtl, u as useDefaultProps } from './Portal.js';
7
7
  import { j as jsxRuntimeExports } from './jsx-runtime.js';
8
8
 
9
+ const _excluded$2 = ["children", "color", "onClick", "startIcon"];
10
+ const BaseButton = /*#__PURE__*/forwardRef((props, ref) => {
11
+ var _props$className;
12
+ const {
13
+ children,
14
+ color: propsColor,
15
+ onClick,
16
+ startIcon
17
+ } = props,
18
+ forwardedProps = _objectWithoutProperties(props, _excluded$2);
19
+ const color = Object.keys(ButtonsColorPalette).includes(propsColor) ? propsColor : 'primary';
20
+ if ((_props$className = props.className) !== null && _props$className !== void 0 && _props$className.includes('redsift-condensed')) {
21
+ return /*#__PURE__*/React__default.createElement(IconButton, _extends({}, forwardedProps, {
22
+ color: color,
23
+ onClick: onClick,
24
+ ref: ref,
25
+ variant: "unstyled",
26
+ isActive: props['aria-expanded'] === 'true',
27
+ icon: typeof startIcon !== 'string' ? /*#__PURE__*/React__default.cloneElement(startIcon, {
28
+ fontSize: 'medium'
29
+ }) : startIcon,
30
+ "aria-label": children,
31
+ size: "medium"
32
+ }));
33
+ }
34
+ return /*#__PURE__*/React__default.createElement(Button, _extends({}, forwardedProps, {
35
+ color: color,
36
+ onClick: onClick,
37
+ ref: ref,
38
+ variant: "unstyled",
39
+ isActive: props['aria-expanded'] === 'true',
40
+ leftIcon: startIcon
41
+ }), children);
42
+ });
43
+
44
+ const _excluded$1 = ["checked", "indeterminate", "disabled", "onChange", "touchRippleRef"];
45
+ const BaseCheckbox = /*#__PURE__*/forwardRef((props, ref) => {
46
+ const {
47
+ checked,
48
+ indeterminate,
49
+ disabled,
50
+ onChange,
51
+ touchRippleRef: _touchRippleRef
52
+ } = props,
53
+ forwardedProps = _objectWithoutProperties(props, _excluded$1);
54
+ return /*#__PURE__*/React__default.createElement(Checkbox, _extends({}, forwardedProps, forwardedProps.inputProps, {
55
+ isSelected: checked && !indeterminate,
56
+ isDisabled: disabled,
57
+ isIndeterminate: indeterminate,
58
+ ref: ref,
59
+ onChange: (isChecked, value, name, event) => onChange(event)
60
+ }));
61
+ });
62
+
63
+ const _excluded = ["displayName"];
64
+ const muiIconToDSIcon = {
65
+ columnFilteredIcon: mdiFilterVariant,
66
+ columnSelectorIcon: mdiViewColumn,
67
+ columnSortedAscendingIcon: mdiArrowUp,
68
+ columnSortedDescendingIcon: mdiArrowDown,
69
+ densityCompactIcon: mdiViewHeadline,
70
+ densityStandardIcon: mdiViewSequential,
71
+ densityComfortableIcon: mdiViewStream,
72
+ detailPanelCollapseIcon: mdiChevronDown,
73
+ detailPanelExpandIcon: mdiChevronRight,
74
+ exportIcon: mdiTrayArrowDown,
75
+ openFilterButtonIcon: mdiFilterVariant
76
+ };
77
+ const BaseIcon = /*#__PURE__*/forwardRef((props, ref) => {
78
+ const {
79
+ displayName
80
+ } = props,
81
+ forwardedProps = _objectWithoutProperties(props, _excluded);
82
+ return /*#__PURE__*/React__default.createElement(Icon, _extends({}, forwardedProps, forwardedProps.inputProps, {
83
+ ref: ref,
84
+ size: forwardedProps.fontSize,
85
+ icon: muiIconToDSIcon[displayName]
86
+ }));
87
+ });
88
+
9
89
  var top = 'top';
10
90
  var bottom = 'bottom';
11
91
  var right = 'right';
@@ -1802,8 +1882,6 @@ function getPopperUtilityClass(slot) {
1802
1882
  }
1803
1883
  generateUtilityClasses('MuiPopper', ['root']);
1804
1884
 
1805
- const _excluded$4 = ["anchorEl", "children", "direction", "disablePortal", "modifiers", "open", "placement", "popperOptions", "popperRef", "slotProps", "slots", "TransitionProps", "ownerState"],
1806
- _excluded2 = ["anchorEl", "children", "container", "direction", "disablePortal", "keepMounted", "modifiers", "open", "placement", "popperOptions", "popperRef", "style", "transition", "slotProps", "slots"];
1807
1885
  function flipPlacement(placement, direction) {
1808
1886
  if (direction === 'ltr') {
1809
1887
  return placement;
@@ -1830,32 +1908,35 @@ function isHTMLElement(element) {
1830
1908
  function isVirtualElement(element) {
1831
1909
  return !isHTMLElement(element);
1832
1910
  }
1833
- const useUtilityClasses = () => {
1911
+ const useUtilityClasses = ownerState => {
1912
+ const {
1913
+ classes
1914
+ } = ownerState;
1834
1915
  const slots = {
1835
1916
  root: ['root']
1836
1917
  };
1837
- return composeClasses(slots, useClassNamesOverride(getPopperUtilityClass));
1918
+ return composeClasses(slots, getPopperUtilityClass, classes);
1838
1919
  };
1839
1920
  const defaultPopperOptions = {};
1840
1921
  const PopperTooltip = /*#__PURE__*/React.forwardRef(function PopperTooltip(props, forwardedRef) {
1841
- var _slots$root;
1842
1922
  const {
1843
- anchorEl,
1844
- children,
1845
- direction,
1846
- disablePortal,
1847
- modifiers,
1848
- open,
1849
- placement: initialPlacement,
1850
- popperOptions,
1851
- popperRef: popperRefProp,
1852
- slotProps = {},
1853
- slots = {},
1854
- TransitionProps
1855
- // @ts-ignore internal logic
1856
- // prevent from spreading to DOM, it can come from the parent component e.g. Select.
1857
- } = props,
1858
- other = _objectWithoutPropertiesLoose(props, _excluded$4);
1923
+ anchorEl,
1924
+ children,
1925
+ direction,
1926
+ disablePortal,
1927
+ modifiers,
1928
+ open,
1929
+ placement: initialPlacement,
1930
+ popperOptions,
1931
+ popperRef: popperRefProp,
1932
+ slotProps = {},
1933
+ slots = {},
1934
+ TransitionProps,
1935
+ // @ts-ignore internal logic
1936
+ ownerState: ownerStateProp,
1937
+ // prevent from spreading to DOM, it can come from the parent component e.g. Select.
1938
+ ...other
1939
+ } = props;
1859
1940
  const tooltipRef = React.useRef(null);
1860
1941
  const ownRef = useForkRef(tooltipRef, forwardedRef);
1861
1942
  const popperRef = React.useRef(null);
@@ -1923,11 +2004,11 @@ const PopperTooltip = /*#__PURE__*/React.forwardRef(function PopperTooltip(props
1923
2004
  if (popperOptions && popperOptions.modifiers != null) {
1924
2005
  popperModifiers = popperModifiers.concat(popperOptions.modifiers);
1925
2006
  }
1926
- const popper = createPopper(resolvedAnchorElement, tooltipRef.current, _extends({
1927
- placement: rtlPlacement
1928
- }, popperOptions, {
2007
+ const popper = createPopper(resolvedAnchorElement, tooltipRef.current, {
2008
+ placement: rtlPlacement,
2009
+ ...popperOptions,
1929
2010
  modifiers: popperModifiers
1930
- }));
2011
+ });
1931
2012
  handlePopperRefRef.current(popper);
1932
2013
  return () => {
1933
2014
  popper.destroy();
@@ -1940,8 +2021,8 @@ const PopperTooltip = /*#__PURE__*/React.forwardRef(function PopperTooltip(props
1940
2021
  if (TransitionProps !== null) {
1941
2022
  childProps.TransitionProps = TransitionProps;
1942
2023
  }
1943
- const classes = useUtilityClasses();
1944
- const Root = (_slots$root = slots.root) != null ? _slots$root : 'div';
2024
+ const classes = useUtilityClasses(props);
2025
+ const Root = slots.root ?? 'div';
1945
2026
  const rootProps = useSlotProps({
1946
2027
  elementType: Root,
1947
2028
  externalSlotProps: slotProps.root,
@@ -1953,41 +2034,34 @@ const PopperTooltip = /*#__PURE__*/React.forwardRef(function PopperTooltip(props
1953
2034
  ownerState: props,
1954
2035
  className: classes.root
1955
2036
  });
1956
- return /*#__PURE__*/jsxRuntimeExports.jsx(Root, _extends({}, rootProps, {
2037
+ return /*#__PURE__*/jsxRuntimeExports.jsx(Root, {
2038
+ ...rootProps,
1957
2039
  children: typeof children === 'function' ? children(childProps) : children
1958
- }));
2040
+ });
1959
2041
  });
1960
2042
 
1961
2043
  /**
1962
- * Poppers rely on the 3rd party library [Popper.js](https://popper.js.org/docs/v2/) for positioning.
1963
- *
1964
- * Demos:
1965
- *
1966
- * - [Popper](https://mui.com/base/react-popper/)
1967
- *
1968
- * API:
1969
- *
1970
- * - [Popper API](https://mui.com/base/react-popper/components-api/#popper)
2044
+ * @ignore - internal component.
1971
2045
  */
1972
2046
  const Popper$2 = /*#__PURE__*/React.forwardRef(function Popper(props, forwardedRef) {
1973
2047
  const {
1974
- anchorEl,
1975
- children,
1976
- container: containerProp,
1977
- direction = 'ltr',
1978
- disablePortal = false,
1979
- keepMounted = false,
1980
- modifiers,
1981
- open,
1982
- placement = 'bottom',
1983
- popperOptions = defaultPopperOptions,
1984
- popperRef,
1985
- style,
1986
- transition = false,
1987
- slotProps = {},
1988
- slots = {}
1989
- } = props,
1990
- other = _objectWithoutPropertiesLoose(props, _excluded2);
2048
+ anchorEl,
2049
+ children,
2050
+ container: containerProp,
2051
+ direction = 'ltr',
2052
+ disablePortal = false,
2053
+ keepMounted = false,
2054
+ modifiers,
2055
+ open,
2056
+ placement = 'bottom',
2057
+ popperOptions = defaultPopperOptions,
2058
+ popperRef,
2059
+ style,
2060
+ transition = false,
2061
+ slotProps = {},
2062
+ slots = {},
2063
+ ...other
2064
+ } = props;
1991
2065
  const [exited, setExited] = React.useState(true);
1992
2066
  const handleEnter = () => {
1993
2067
  setExited(false);
@@ -2018,7 +2092,7 @@ const Popper$2 = /*#__PURE__*/React.forwardRef(function Popper(props, forwardedR
2018
2092
  return /*#__PURE__*/jsxRuntimeExports.jsx(Portal, {
2019
2093
  disablePortal: disablePortal,
2020
2094
  container: container,
2021
- children: /*#__PURE__*/jsxRuntimeExports.jsx(PopperTooltip, _extends({
2095
+ children: /*#__PURE__*/jsxRuntimeExports.jsx(PopperTooltip, {
2022
2096
  anchorEl: anchorEl,
2023
2097
  direction: direction,
2024
2098
  disablePortal: disablePortal,
@@ -2029,26 +2103,27 @@ const Popper$2 = /*#__PURE__*/React.forwardRef(function Popper(props, forwardedR
2029
2103
  popperOptions: popperOptions,
2030
2104
  popperRef: popperRef,
2031
2105
  slotProps: slotProps,
2032
- slots: slots
2033
- }, other, {
2034
- style: _extends({
2106
+ slots: slots,
2107
+ ...other,
2108
+ style: {
2035
2109
  // Prevents scroll issue, waiting for Popper.js to add this style once initiated.
2036
2110
  position: 'fixed',
2037
2111
  // Fix Popper.js display issue
2038
2112
  top: 0,
2039
2113
  left: 0,
2040
- display
2041
- }, style),
2114
+ display,
2115
+ ...style
2116
+ },
2042
2117
  TransitionProps: transitionProps,
2043
2118
  children: children
2044
- }))
2119
+ })
2045
2120
  });
2046
2121
  });
2047
2122
  process.env.NODE_ENV !== "production" ? Popper$2.propTypes /* remove-proptypes */ = {
2048
- // ----------------------------- Warning --------------------------------
2049
- // | These PropTypes are generated from the TypeScript type definitions |
2050
- // | To update them edit TypeScript types and run "yarn proptypes" |
2051
- // ----------------------------------------------------------------------
2123
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
2124
+ // These PropTypes are generated from the TypeScript type definitions.
2125
+ // To update them, edit the TypeScript types and run `pnpm proptypes`. │
2126
+ // └─────────────────────────────────────────────────────────────────────┘
2052
2127
  /**
2053
2128
  * An HTML element, [virtualElement](https://popper.js.org/docs/v2/virtual-elements/),
2054
2129
  * or a function that returns either.
@@ -2077,6 +2152,9 @@ process.env.NODE_ENV !== "production" ? Popper$2.propTypes /* remove-proptypes *
2077
2152
  * An HTML element or function that returns one.
2078
2153
  * The `container` will have the portal children appended to it.
2079
2154
  *
2155
+ * You can also provide a callback, which is called in a React layout effect.
2156
+ * This lets you set the container from a ref, and also makes server-side rendering possible.
2157
+ *
2080
2158
  * By default, it uses the body of the top-level document object,
2081
2159
  * so it's simply `document.body` most of the time.
2082
2160
  */
@@ -2164,86 +2242,6 @@ process.env.NODE_ENV !== "production" ? Popper$2.propTypes /* remove-proptypes *
2164
2242
  } : void 0;
2165
2243
  var BasePopper$1 = Popper$2;
2166
2244
 
2167
- const _excluded$3 = ["children", "color", "onClick", "startIcon"];
2168
- const BaseButton = /*#__PURE__*/forwardRef((props, ref) => {
2169
- var _props$className;
2170
- const {
2171
- children,
2172
- color: propsColor,
2173
- onClick,
2174
- startIcon
2175
- } = props,
2176
- forwardedProps = _objectWithoutProperties(props, _excluded$3);
2177
- const color = Object.keys(ButtonsColorPalette).includes(propsColor) ? propsColor : 'primary';
2178
- if ((_props$className = props.className) !== null && _props$className !== void 0 && _props$className.includes('redsift-condensed')) {
2179
- return /*#__PURE__*/React__default.createElement(IconButton, _extends$1({}, forwardedProps, {
2180
- color: color,
2181
- onClick: onClick,
2182
- ref: ref,
2183
- variant: "unstyled",
2184
- isActive: props['aria-expanded'] === 'true',
2185
- icon: typeof startIcon !== 'string' ? /*#__PURE__*/React__default.cloneElement(startIcon, {
2186
- fontSize: 'medium'
2187
- }) : startIcon,
2188
- "aria-label": children,
2189
- size: "medium"
2190
- }));
2191
- }
2192
- return /*#__PURE__*/React__default.createElement(Button, _extends$1({}, forwardedProps, {
2193
- color: color,
2194
- onClick: onClick,
2195
- ref: ref,
2196
- variant: "unstyled",
2197
- isActive: props['aria-expanded'] === 'true',
2198
- leftIcon: startIcon
2199
- }), children);
2200
- });
2201
-
2202
- const _excluded$2 = ["checked", "indeterminate", "disabled", "onChange"];
2203
- const BaseCheckbox = /*#__PURE__*/forwardRef((props, ref) => {
2204
- const {
2205
- checked,
2206
- indeterminate,
2207
- disabled,
2208
- onChange
2209
- } = props,
2210
- forwardedProps = _objectWithoutProperties(props, _excluded$2);
2211
- return /*#__PURE__*/React__default.createElement(Checkbox, _extends$1({}, forwardedProps, forwardedProps.inputProps, {
2212
- isSelected: checked && !indeterminate,
2213
- isDisabled: disabled,
2214
- isIndeterminate: indeterminate,
2215
- ref: ref,
2216
- onChange: (isChecked, value, name, event) => onChange(event)
2217
- }));
2218
- });
2219
-
2220
- const _excluded$1 = ["displayName"];
2221
- const muiIconToDSIcon = {
2222
- ColumnFilteredIcon: mdiFilterVariant,
2223
- ColumnSelectorIcon: mdiViewColumn,
2224
- ColumnSortedAscendingIcon: mdiArrowUp,
2225
- ColumnSortedDescendingIcon: mdiArrowDown,
2226
- DensityCompactIcon: mdiViewHeadline,
2227
- DensityStandardIcon: mdiViewSequential,
2228
- DensityComfortableIcon: mdiViewStream,
2229
- DetailPanelCollapseIcon: mdiChevronDown,
2230
- DetailPanelExpandIcon: mdiChevronRight,
2231
- ExportIcon: mdiTrayArrowDown,
2232
- OpenFilterButtonIcon: mdiFilterVariant
2233
- };
2234
- const BaseIcon = /*#__PURE__*/forwardRef((props, ref) => {
2235
- const {
2236
- displayName
2237
- } = props,
2238
- forwardedProps = _objectWithoutProperties(props, _excluded$1);
2239
- return /*#__PURE__*/React__default.createElement(Icon, _extends$1({}, forwardedProps, forwardedProps.inputProps, {
2240
- ref: ref,
2241
- size: forwardedProps.fontSize,
2242
- icon: muiIconToDSIcon[displayName]
2243
- }));
2244
- });
2245
-
2246
- const _excluded = ["anchorEl", "component", "components", "componentsProps", "container", "disablePortal", "keepMounted", "modifiers", "open", "placement", "popperOptions", "popperRef", "transition", "slots", "slotProps"];
2247
2245
  const PopperRoot = styled(BasePopper$1, {
2248
2246
  name: 'MuiPopper',
2249
2247
  slot: 'Root',
@@ -2254,41 +2252,40 @@ const PopperRoot = styled(BasePopper$1, {
2254
2252
  *
2255
2253
  * Demos:
2256
2254
  *
2257
- * - [Autocomplete](https://mui.com/material-ui/react-autocomplete/)
2258
- * - [Menu](https://mui.com/material-ui/react-menu/)
2259
- * - [Popper](https://mui.com/material-ui/react-popper/)
2255
+ * - [Autocomplete](https://v6.mui.com/material-ui/react-autocomplete/)
2256
+ * - [Menu](https://v6.mui.com/material-ui/react-menu/)
2257
+ * - [Popper](https://v6.mui.com/material-ui/react-popper/)
2260
2258
  *
2261
2259
  * API:
2262
2260
  *
2263
- * - [Popper API](https://mui.com/material-ui/api/popper/)
2261
+ * - [Popper API](https://v6.mui.com/material-ui/api/popper/)
2264
2262
  */
2265
2263
  const Popper = /*#__PURE__*/React.forwardRef(function Popper(inProps, ref) {
2266
- var _slots$root;
2267
- const theme = useTheme();
2268
- const props = useThemeProps({
2264
+ const isRtl = useRtl();
2265
+ const props = useDefaultProps({
2269
2266
  props: inProps,
2270
2267
  name: 'MuiPopper'
2271
2268
  });
2272
2269
  const {
2273
- anchorEl,
2274
- component,
2275
- components,
2276
- componentsProps,
2277
- container,
2278
- disablePortal,
2279
- keepMounted,
2280
- modifiers,
2281
- open,
2282
- placement,
2283
- popperOptions,
2284
- popperRef,
2285
- transition,
2286
- slots,
2287
- slotProps
2288
- } = props,
2289
- other = _objectWithoutPropertiesLoose(props, _excluded);
2290
- const RootComponent = (_slots$root = slots == null ? void 0 : slots.root) != null ? _slots$root : components == null ? void 0 : components.Root;
2291
- const otherProps = _extends({
2270
+ anchorEl,
2271
+ component,
2272
+ components,
2273
+ componentsProps,
2274
+ container,
2275
+ disablePortal,
2276
+ keepMounted,
2277
+ modifiers,
2278
+ open,
2279
+ placement,
2280
+ popperOptions,
2281
+ popperRef,
2282
+ transition,
2283
+ slots,
2284
+ slotProps,
2285
+ ...other
2286
+ } = props;
2287
+ const RootComponent = slots?.root ?? components?.Root;
2288
+ const otherProps = {
2292
2289
  anchorEl,
2293
2290
  container,
2294
2291
  disablePortal,
@@ -2298,24 +2295,25 @@ const Popper = /*#__PURE__*/React.forwardRef(function Popper(inProps, ref) {
2298
2295
  placement,
2299
2296
  popperOptions,
2300
2297
  popperRef,
2301
- transition
2302
- }, other);
2303
- return /*#__PURE__*/jsxRuntimeExports.jsx(PopperRoot, _extends({
2298
+ transition,
2299
+ ...other
2300
+ };
2301
+ return /*#__PURE__*/jsxRuntimeExports.jsx(PopperRoot, {
2304
2302
  as: component,
2305
- direction: theme == null ? void 0 : theme.direction,
2303
+ direction: isRtl ? 'rtl' : 'ltr',
2306
2304
  slots: {
2307
2305
  root: RootComponent
2308
2306
  },
2309
- slotProps: slotProps != null ? slotProps : componentsProps
2310
- }, otherProps, {
2307
+ slotProps: slotProps ?? componentsProps,
2308
+ ...otherProps,
2311
2309
  ref: ref
2312
- }));
2310
+ });
2313
2311
  });
2314
2312
  process.env.NODE_ENV !== "production" ? Popper.propTypes /* remove-proptypes */ = {
2315
- // ----------------------------- Warning --------------------------------
2316
- // | These PropTypes are generated from the TypeScript type definitions |
2317
- // | To update them edit TypeScript types and run "yarn proptypes" |
2318
- // ----------------------------------------------------------------------
2313
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
2314
+ // These PropTypes are generated from the TypeScript type definitions.
2315
+ // To update them, edit the TypeScript types and run `pnpm proptypes`. │
2316
+ // └─────────────────────────────────────────────────────────────────────┘
2319
2317
  /**
2320
2318
  * An HTML element, [virtualElement](https://popper.js.org/docs/v2/virtual-elements/),
2321
2319
  * or a function that returns either.
@@ -2335,6 +2333,8 @@ process.env.NODE_ENV !== "production" ? Popper.propTypes /* remove-proptypes */
2335
2333
  /**
2336
2334
  * The components used for each slot inside the Popper.
2337
2335
  * Either a string to use a HTML element or a component.
2336
+ *
2337
+ * @deprecated use the `slots` prop instead. This prop will be removed in v7. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
2338
2338
  * @default {}
2339
2339
  */
2340
2340
  components: PropTypes.shape({
@@ -2342,6 +2342,8 @@ process.env.NODE_ENV !== "production" ? Popper.propTypes /* remove-proptypes */
2342
2342
  }),
2343
2343
  /**
2344
2344
  * The props used for each slot inside the Popper.
2345
+ *
2346
+ * @deprecated use the `slotProps` prop instead. This prop will be removed in v7. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
2345
2347
  * @default {}
2346
2348
  */
2347
2349
  componentsProps: PropTypes.shape({
@@ -2351,6 +2353,9 @@ process.env.NODE_ENV !== "production" ? Popper.propTypes /* remove-proptypes */
2351
2353
  * An HTML element or function that returns one.
2352
2354
  * The `container` will have the portal children appended to it.
2353
2355
  *
2356
+ * You can also provide a callback, which is called in a React layout effect.
2357
+ * This lets you set the container from a ref, and also makes server-side rendering possible.
2358
+ *
2354
2359
  * By default, it uses the body of the top-level document object,
2355
2360
  * so it's simply `document.body` most of the time.
2356
2361
  */
@@ -2438,7 +2443,7 @@ process.env.NODE_ENV !== "production" ? Popper.propTypes /* remove-proptypes */
2438
2443
  var Popper$1 = Popper;
2439
2444
 
2440
2445
  const BasePopper = /*#__PURE__*/forwardRef((props, ref) => {
2441
- return /*#__PURE__*/React__default.createElement(Popper$1, _extends$1({}, props, {
2446
+ return /*#__PURE__*/React__default.createElement(Popper$1, _extends({}, props, {
2442
2447
  ref: ref,
2443
2448
  container: () => document.getElementById('redsift-app-container')
2444
2449
  }));