@redsift/table 12.0.0-muiv5 → 12.0.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,90 @@
1
- import { b as _objectWithoutProperties, a 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 { j as generateUtilityClass, h as generateUtilityClasses, _ as _objectWithoutPropertiesLoose, p as ownerDocument, q as Portal, a as _extends, t as chainPropTypes, P as PropTypes, H as HTMLElementType, o as refType, v as useForkRef, w as useEnhancedEffect, x as useSlotProps, n as composeClasses, y as useClassNamesOverride, k as styled, f as useTheme, l 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"];
45
+ const BaseCheckbox = /*#__PURE__*/forwardRef((props, ref) => {
46
+ const {
47
+ checked,
48
+ indeterminate,
49
+ disabled,
50
+ onChange
51
+ } = props,
52
+ forwardedProps = _objectWithoutProperties(props, _excluded$1);
53
+ return /*#__PURE__*/React__default.createElement(Checkbox, _extends({}, forwardedProps, forwardedProps.inputProps, {
54
+ isSelected: checked && !indeterminate,
55
+ isDisabled: disabled,
56
+ isIndeterminate: indeterminate,
57
+ ref: ref,
58
+ onChange: (isChecked, value, name, event) => onChange(event)
59
+ }));
60
+ });
61
+
62
+ const _excluded = ["displayName"];
63
+ const muiIconToDSIcon = {
64
+ columnFilteredIcon: mdiFilterVariant,
65
+ columnSelectorIcon: mdiViewColumn,
66
+ columnSortedAscendingIcon: mdiArrowUp,
67
+ columnSortedDescendingIcon: mdiArrowDown,
68
+ densityCompactIcon: mdiViewHeadline,
69
+ densityStandardIcon: mdiViewSequential,
70
+ densityComfortableIcon: mdiViewStream,
71
+ detailPanelCollapseIcon: mdiChevronDown,
72
+ detailPanelExpandIcon: mdiChevronRight,
73
+ exportIcon: mdiTrayArrowDown,
74
+ openFilterButtonIcon: mdiFilterVariant
75
+ };
76
+ const BaseIcon = /*#__PURE__*/forwardRef((props, ref) => {
77
+ const {
78
+ displayName
79
+ } = props,
80
+ forwardedProps = _objectWithoutProperties(props, _excluded);
81
+ return /*#__PURE__*/React__default.createElement(Icon, _extends({}, forwardedProps, forwardedProps.inputProps, {
82
+ ref: ref,
83
+ size: forwardedProps.fontSize,
84
+ icon: muiIconToDSIcon[displayName]
85
+ }));
86
+ });
87
+
9
88
  var top = 'top';
10
89
  var bottom = 'bottom';
11
90
  var right = 'right';
@@ -1802,8 +1881,6 @@ function getPopperUtilityClass(slot) {
1802
1881
  }
1803
1882
  generateUtilityClasses('MuiPopper', ['root']);
1804
1883
 
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
1884
  function flipPlacement(placement, direction) {
1808
1885
  if (direction === 'ltr') {
1809
1886
  return placement;
@@ -1830,32 +1907,35 @@ function isHTMLElement(element) {
1830
1907
  function isVirtualElement(element) {
1831
1908
  return !isHTMLElement(element);
1832
1909
  }
1833
- const useUtilityClasses = () => {
1910
+ const useUtilityClasses = ownerState => {
1911
+ const {
1912
+ classes
1913
+ } = ownerState;
1834
1914
  const slots = {
1835
1915
  root: ['root']
1836
1916
  };
1837
- return composeClasses(slots, useClassNamesOverride(getPopperUtilityClass));
1917
+ return composeClasses(slots, getPopperUtilityClass, classes);
1838
1918
  };
1839
1919
  const defaultPopperOptions = {};
1840
1920
  const PopperTooltip = /*#__PURE__*/React.forwardRef(function PopperTooltip(props, forwardedRef) {
1841
- var _slots$root;
1842
1921
  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);
1922
+ anchorEl,
1923
+ children,
1924
+ direction,
1925
+ disablePortal,
1926
+ modifiers,
1927
+ open,
1928
+ placement: initialPlacement,
1929
+ popperOptions,
1930
+ popperRef: popperRefProp,
1931
+ slotProps = {},
1932
+ slots = {},
1933
+ TransitionProps,
1934
+ // @ts-ignore internal logic
1935
+ ownerState: ownerStateProp,
1936
+ // prevent from spreading to DOM, it can come from the parent component e.g. Select.
1937
+ ...other
1938
+ } = props;
1859
1939
  const tooltipRef = React.useRef(null);
1860
1940
  const ownRef = useForkRef(tooltipRef, forwardedRef);
1861
1941
  const popperRef = React.useRef(null);
@@ -1923,11 +2003,11 @@ const PopperTooltip = /*#__PURE__*/React.forwardRef(function PopperTooltip(props
1923
2003
  if (popperOptions && popperOptions.modifiers != null) {
1924
2004
  popperModifiers = popperModifiers.concat(popperOptions.modifiers);
1925
2005
  }
1926
- const popper = createPopper(resolvedAnchorElement, tooltipRef.current, _extends({
1927
- placement: rtlPlacement
1928
- }, popperOptions, {
2006
+ const popper = createPopper(resolvedAnchorElement, tooltipRef.current, {
2007
+ placement: rtlPlacement,
2008
+ ...popperOptions,
1929
2009
  modifiers: popperModifiers
1930
- }));
2010
+ });
1931
2011
  handlePopperRefRef.current(popper);
1932
2012
  return () => {
1933
2013
  popper.destroy();
@@ -1940,8 +2020,8 @@ const PopperTooltip = /*#__PURE__*/React.forwardRef(function PopperTooltip(props
1940
2020
  if (TransitionProps !== null) {
1941
2021
  childProps.TransitionProps = TransitionProps;
1942
2022
  }
1943
- const classes = useUtilityClasses();
1944
- const Root = (_slots$root = slots.root) != null ? _slots$root : 'div';
2023
+ const classes = useUtilityClasses(props);
2024
+ const Root = slots.root ?? 'div';
1945
2025
  const rootProps = useSlotProps({
1946
2026
  elementType: Root,
1947
2027
  externalSlotProps: slotProps.root,
@@ -1953,41 +2033,34 @@ const PopperTooltip = /*#__PURE__*/React.forwardRef(function PopperTooltip(props
1953
2033
  ownerState: props,
1954
2034
  className: classes.root
1955
2035
  });
1956
- return /*#__PURE__*/jsxRuntimeExports.jsx(Root, _extends({}, rootProps, {
2036
+ return /*#__PURE__*/jsxRuntimeExports.jsx(Root, {
2037
+ ...rootProps,
1957
2038
  children: typeof children === 'function' ? children(childProps) : children
1958
- }));
2039
+ });
1959
2040
  });
1960
2041
 
1961
2042
  /**
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)
2043
+ * @ignore - internal component.
1971
2044
  */
1972
2045
  const Popper$2 = /*#__PURE__*/React.forwardRef(function Popper(props, forwardedRef) {
1973
2046
  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);
2047
+ anchorEl,
2048
+ children,
2049
+ container: containerProp,
2050
+ direction = 'ltr',
2051
+ disablePortal = false,
2052
+ keepMounted = false,
2053
+ modifiers,
2054
+ open,
2055
+ placement = 'bottom',
2056
+ popperOptions = defaultPopperOptions,
2057
+ popperRef,
2058
+ style,
2059
+ transition = false,
2060
+ slotProps = {},
2061
+ slots = {},
2062
+ ...other
2063
+ } = props;
1991
2064
  const [exited, setExited] = React.useState(true);
1992
2065
  const handleEnter = () => {
1993
2066
  setExited(false);
@@ -2018,7 +2091,7 @@ const Popper$2 = /*#__PURE__*/React.forwardRef(function Popper(props, forwardedR
2018
2091
  return /*#__PURE__*/jsxRuntimeExports.jsx(Portal, {
2019
2092
  disablePortal: disablePortal,
2020
2093
  container: container,
2021
- children: /*#__PURE__*/jsxRuntimeExports.jsx(PopperTooltip, _extends({
2094
+ children: /*#__PURE__*/jsxRuntimeExports.jsx(PopperTooltip, {
2022
2095
  anchorEl: anchorEl,
2023
2096
  direction: direction,
2024
2097
  disablePortal: disablePortal,
@@ -2029,26 +2102,27 @@ const Popper$2 = /*#__PURE__*/React.forwardRef(function Popper(props, forwardedR
2029
2102
  popperOptions: popperOptions,
2030
2103
  popperRef: popperRef,
2031
2104
  slotProps: slotProps,
2032
- slots: slots
2033
- }, other, {
2034
- style: _extends({
2105
+ slots: slots,
2106
+ ...other,
2107
+ style: {
2035
2108
  // Prevents scroll issue, waiting for Popper.js to add this style once initiated.
2036
2109
  position: 'fixed',
2037
2110
  // Fix Popper.js display issue
2038
2111
  top: 0,
2039
2112
  left: 0,
2040
- display
2041
- }, style),
2113
+ display,
2114
+ ...style
2115
+ },
2042
2116
  TransitionProps: transitionProps,
2043
2117
  children: children
2044
- }))
2118
+ })
2045
2119
  });
2046
2120
  });
2047
2121
  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
- // ----------------------------------------------------------------------
2122
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
2123
+ // These PropTypes are generated from the TypeScript type definitions.
2124
+ // To update them, edit the TypeScript types and run `pnpm proptypes`. │
2125
+ // └─────────────────────────────────────────────────────────────────────┘
2052
2126
  /**
2053
2127
  * An HTML element, [virtualElement](https://popper.js.org/docs/v2/virtual-elements/),
2054
2128
  * or a function that returns either.
@@ -2077,6 +2151,9 @@ process.env.NODE_ENV !== "production" ? Popper$2.propTypes /* remove-proptypes *
2077
2151
  * An HTML element or function that returns one.
2078
2152
  * The `container` will have the portal children appended to it.
2079
2153
  *
2154
+ * You can also provide a callback, which is called in a React layout effect.
2155
+ * This lets you set the container from a ref, and also makes server-side rendering possible.
2156
+ *
2080
2157
  * By default, it uses the body of the top-level document object,
2081
2158
  * so it's simply `document.body` most of the time.
2082
2159
  */
@@ -2164,86 +2241,6 @@ process.env.NODE_ENV !== "production" ? Popper$2.propTypes /* remove-proptypes *
2164
2241
  } : void 0;
2165
2242
  var BasePopper$1 = Popper$2;
2166
2243
 
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
2244
  const PopperRoot = styled(BasePopper$1, {
2248
2245
  name: 'MuiPopper',
2249
2246
  slot: 'Root',
@@ -2254,41 +2251,40 @@ const PopperRoot = styled(BasePopper$1, {
2254
2251
  *
2255
2252
  * Demos:
2256
2253
  *
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/)
2254
+ * - [Autocomplete](https://v6.mui.com/material-ui/react-autocomplete/)
2255
+ * - [Menu](https://v6.mui.com/material-ui/react-menu/)
2256
+ * - [Popper](https://v6.mui.com/material-ui/react-popper/)
2260
2257
  *
2261
2258
  * API:
2262
2259
  *
2263
- * - [Popper API](https://mui.com/material-ui/api/popper/)
2260
+ * - [Popper API](https://v6.mui.com/material-ui/api/popper/)
2264
2261
  */
2265
2262
  const Popper = /*#__PURE__*/React.forwardRef(function Popper(inProps, ref) {
2266
- var _slots$root;
2267
- const theme = useTheme();
2268
- const props = useThemeProps({
2263
+ const isRtl = useRtl();
2264
+ const props = useDefaultProps({
2269
2265
  props: inProps,
2270
2266
  name: 'MuiPopper'
2271
2267
  });
2272
2268
  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({
2269
+ anchorEl,
2270
+ component,
2271
+ components,
2272
+ componentsProps,
2273
+ container,
2274
+ disablePortal,
2275
+ keepMounted,
2276
+ modifiers,
2277
+ open,
2278
+ placement,
2279
+ popperOptions,
2280
+ popperRef,
2281
+ transition,
2282
+ slots,
2283
+ slotProps,
2284
+ ...other
2285
+ } = props;
2286
+ const RootComponent = slots?.root ?? components?.Root;
2287
+ const otherProps = {
2292
2288
  anchorEl,
2293
2289
  container,
2294
2290
  disablePortal,
@@ -2298,24 +2294,25 @@ const Popper = /*#__PURE__*/React.forwardRef(function Popper(inProps, ref) {
2298
2294
  placement,
2299
2295
  popperOptions,
2300
2296
  popperRef,
2301
- transition
2302
- }, other);
2303
- return /*#__PURE__*/jsxRuntimeExports.jsx(PopperRoot, _extends({
2297
+ transition,
2298
+ ...other
2299
+ };
2300
+ return /*#__PURE__*/jsxRuntimeExports.jsx(PopperRoot, {
2304
2301
  as: component,
2305
- direction: theme == null ? void 0 : theme.direction,
2302
+ direction: isRtl ? 'rtl' : 'ltr',
2306
2303
  slots: {
2307
2304
  root: RootComponent
2308
2305
  },
2309
- slotProps: slotProps != null ? slotProps : componentsProps
2310
- }, otherProps, {
2306
+ slotProps: slotProps ?? componentsProps,
2307
+ ...otherProps,
2311
2308
  ref: ref
2312
- }));
2309
+ });
2313
2310
  });
2314
2311
  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
- // ----------------------------------------------------------------------
2312
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
2313
+ // These PropTypes are generated from the TypeScript type definitions.
2314
+ // To update them, edit the TypeScript types and run `pnpm proptypes`. │
2315
+ // └─────────────────────────────────────────────────────────────────────┘
2319
2316
  /**
2320
2317
  * An HTML element, [virtualElement](https://popper.js.org/docs/v2/virtual-elements/),
2321
2318
  * or a function that returns either.
@@ -2335,6 +2332,8 @@ process.env.NODE_ENV !== "production" ? Popper.propTypes /* remove-proptypes */
2335
2332
  /**
2336
2333
  * The components used for each slot inside the Popper.
2337
2334
  * Either a string to use a HTML element or a component.
2335
+ *
2336
+ * @deprecated use the `slots` prop instead. This prop will be removed in v7. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
2338
2337
  * @default {}
2339
2338
  */
2340
2339
  components: PropTypes.shape({
@@ -2342,6 +2341,8 @@ process.env.NODE_ENV !== "production" ? Popper.propTypes /* remove-proptypes */
2342
2341
  }),
2343
2342
  /**
2344
2343
  * The props used for each slot inside the Popper.
2344
+ *
2345
+ * @deprecated use the `slotProps` prop instead. This prop will be removed in v7. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
2345
2346
  * @default {}
2346
2347
  */
2347
2348
  componentsProps: PropTypes.shape({
@@ -2351,6 +2352,9 @@ process.env.NODE_ENV !== "production" ? Popper.propTypes /* remove-proptypes */
2351
2352
  * An HTML element or function that returns one.
2352
2353
  * The `container` will have the portal children appended to it.
2353
2354
  *
2355
+ * You can also provide a callback, which is called in a React layout effect.
2356
+ * This lets you set the container from a ref, and also makes server-side rendering possible.
2357
+ *
2354
2358
  * By default, it uses the body of the top-level document object,
2355
2359
  * so it's simply `document.body` most of the time.
2356
2360
  */
@@ -2438,7 +2442,7 @@ process.env.NODE_ENV !== "production" ? Popper.propTypes /* remove-proptypes */
2438
2442
  var Popper$1 = Popper;
2439
2443
 
2440
2444
  const BasePopper = /*#__PURE__*/forwardRef((props, ref) => {
2441
- return /*#__PURE__*/React__default.createElement(Popper$1, _extends$1({}, props, {
2445
+ return /*#__PURE__*/React__default.createElement(Popper$1, _extends({}, props, {
2442
2446
  ref: ref,
2443
2447
  container: () => document.getElementById('redsift-app-container')
2444
2448
  }));