@redsift/table 12.0.0-muiv7 → 12.1.0-muiv6

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,90 +1,11 @@
1
- import { a as _objectWithoutProperties, b as _extends } from './_rollupPluginBabelHelpers.js';
1
+ import { a as _objectWithoutProperties, b as _extends$1 } 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 { 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';
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';
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
-
88
9
  var top = 'top';
89
10
  var bottom = 'bottom';
90
11
  var right = 'right';
@@ -1881,6 +1802,8 @@ function getPopperUtilityClass(slot) {
1881
1802
  }
1882
1803
  generateUtilityClasses('MuiPopper', ['root']);
1883
1804
 
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"];
1884
1807
  function flipPlacement(placement, direction) {
1885
1808
  if (direction === 'ltr') {
1886
1809
  return placement;
@@ -1907,35 +1830,32 @@ function isHTMLElement(element) {
1907
1830
  function isVirtualElement(element) {
1908
1831
  return !isHTMLElement(element);
1909
1832
  }
1910
- const useUtilityClasses = ownerState => {
1911
- const {
1912
- classes
1913
- } = ownerState;
1833
+ const useUtilityClasses = () => {
1914
1834
  const slots = {
1915
1835
  root: ['root']
1916
1836
  };
1917
- return composeClasses(slots, getPopperUtilityClass, classes);
1837
+ return composeClasses(slots, useClassNamesOverride(getPopperUtilityClass));
1918
1838
  };
1919
1839
  const defaultPopperOptions = {};
1920
1840
  const PopperTooltip = /*#__PURE__*/React.forwardRef(function PopperTooltip(props, forwardedRef) {
1841
+ var _slots$root;
1921
1842
  const {
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;
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);
1939
1859
  const tooltipRef = React.useRef(null);
1940
1860
  const ownRef = useForkRef(tooltipRef, forwardedRef);
1941
1861
  const popperRef = React.useRef(null);
@@ -2003,11 +1923,11 @@ const PopperTooltip = /*#__PURE__*/React.forwardRef(function PopperTooltip(props
2003
1923
  if (popperOptions && popperOptions.modifiers != null) {
2004
1924
  popperModifiers = popperModifiers.concat(popperOptions.modifiers);
2005
1925
  }
2006
- const popper = createPopper(resolvedAnchorElement, tooltipRef.current, {
2007
- placement: rtlPlacement,
2008
- ...popperOptions,
1926
+ const popper = createPopper(resolvedAnchorElement, tooltipRef.current, _extends({
1927
+ placement: rtlPlacement
1928
+ }, popperOptions, {
2009
1929
  modifiers: popperModifiers
2010
- });
1930
+ }));
2011
1931
  handlePopperRefRef.current(popper);
2012
1932
  return () => {
2013
1933
  popper.destroy();
@@ -2020,8 +1940,8 @@ const PopperTooltip = /*#__PURE__*/React.forwardRef(function PopperTooltip(props
2020
1940
  if (TransitionProps !== null) {
2021
1941
  childProps.TransitionProps = TransitionProps;
2022
1942
  }
2023
- const classes = useUtilityClasses(props);
2024
- const Root = slots.root ?? 'div';
1943
+ const classes = useUtilityClasses();
1944
+ const Root = (_slots$root = slots.root) != null ? _slots$root : 'div';
2025
1945
  const rootProps = useSlotProps({
2026
1946
  elementType: Root,
2027
1947
  externalSlotProps: slotProps.root,
@@ -2033,34 +1953,41 @@ const PopperTooltip = /*#__PURE__*/React.forwardRef(function PopperTooltip(props
2033
1953
  ownerState: props,
2034
1954
  className: classes.root
2035
1955
  });
2036
- return /*#__PURE__*/jsxRuntimeExports.jsx(Root, {
2037
- ...rootProps,
1956
+ return /*#__PURE__*/jsxRuntimeExports.jsx(Root, _extends({}, rootProps, {
2038
1957
  children: typeof children === 'function' ? children(childProps) : children
2039
- });
1958
+ }));
2040
1959
  });
2041
1960
 
2042
1961
  /**
2043
- * @ignore - internal component.
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
1971
  */
2045
1972
  const Popper$2 = /*#__PURE__*/React.forwardRef(function Popper(props, forwardedRef) {
2046
1973
  const {
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;
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);
2064
1991
  const [exited, setExited] = React.useState(true);
2065
1992
  const handleEnter = () => {
2066
1993
  setExited(false);
@@ -2091,7 +2018,7 @@ const Popper$2 = /*#__PURE__*/React.forwardRef(function Popper(props, forwardedR
2091
2018
  return /*#__PURE__*/jsxRuntimeExports.jsx(Portal, {
2092
2019
  disablePortal: disablePortal,
2093
2020
  container: container,
2094
- children: /*#__PURE__*/jsxRuntimeExports.jsx(PopperTooltip, {
2021
+ children: /*#__PURE__*/jsxRuntimeExports.jsx(PopperTooltip, _extends({
2095
2022
  anchorEl: anchorEl,
2096
2023
  direction: direction,
2097
2024
  disablePortal: disablePortal,
@@ -2102,27 +2029,26 @@ const Popper$2 = /*#__PURE__*/React.forwardRef(function Popper(props, forwardedR
2102
2029
  popperOptions: popperOptions,
2103
2030
  popperRef: popperRef,
2104
2031
  slotProps: slotProps,
2105
- slots: slots,
2106
- ...other,
2107
- style: {
2032
+ slots: slots
2033
+ }, other, {
2034
+ style: _extends({
2108
2035
  // Prevents scroll issue, waiting for Popper.js to add this style once initiated.
2109
2036
  position: 'fixed',
2110
2037
  // Fix Popper.js display issue
2111
2038
  top: 0,
2112
2039
  left: 0,
2113
- display,
2114
- ...style
2115
- },
2040
+ display
2041
+ }, style),
2116
2042
  TransitionProps: transitionProps,
2117
2043
  children: children
2118
- })
2044
+ }))
2119
2045
  });
2120
2046
  });
2121
2047
  process.env.NODE_ENV !== "production" ? Popper$2.propTypes /* remove-proptypes */ = {
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
- // └─────────────────────────────────────────────────────────────────────┘
2048
+ // ----------------------------- Warning --------------------------------
2049
+ // | These PropTypes are generated from the TypeScript type definitions |
2050
+ // | To update them edit TypeScript types and run "yarn proptypes" |
2051
+ // ----------------------------------------------------------------------
2126
2052
  /**
2127
2053
  * An HTML element, [virtualElement](https://popper.js.org/docs/v2/virtual-elements/),
2128
2054
  * or a function that returns either.
@@ -2151,9 +2077,6 @@ process.env.NODE_ENV !== "production" ? Popper$2.propTypes /* remove-proptypes *
2151
2077
  * An HTML element or function that returns one.
2152
2078
  * The `container` will have the portal children appended to it.
2153
2079
  *
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
- *
2157
2080
  * By default, it uses the body of the top-level document object,
2158
2081
  * so it's simply `document.body` most of the time.
2159
2082
  */
@@ -2241,6 +2164,86 @@ process.env.NODE_ENV !== "production" ? Popper$2.propTypes /* remove-proptypes *
2241
2164
  } : void 0;
2242
2165
  var BasePopper$1 = Popper$2;
2243
2166
 
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"];
2244
2247
  const PopperRoot = styled(BasePopper$1, {
2245
2248
  name: 'MuiPopper',
2246
2249
  slot: 'Root',
@@ -2251,40 +2254,41 @@ const PopperRoot = styled(BasePopper$1, {
2251
2254
  *
2252
2255
  * Demos:
2253
2256
  *
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/)
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/)
2257
2260
  *
2258
2261
  * API:
2259
2262
  *
2260
- * - [Popper API](https://v6.mui.com/material-ui/api/popper/)
2263
+ * - [Popper API](https://mui.com/material-ui/api/popper/)
2261
2264
  */
2262
2265
  const Popper = /*#__PURE__*/React.forwardRef(function Popper(inProps, ref) {
2263
- const isRtl = useRtl();
2264
- const props = useDefaultProps({
2266
+ var _slots$root;
2267
+ const theme = useTheme();
2268
+ const props = useThemeProps({
2265
2269
  props: inProps,
2266
2270
  name: 'MuiPopper'
2267
2271
  });
2268
2272
  const {
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 = {
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({
2288
2292
  anchorEl,
2289
2293
  container,
2290
2294
  disablePortal,
@@ -2294,25 +2298,24 @@ const Popper = /*#__PURE__*/React.forwardRef(function Popper(inProps, ref) {
2294
2298
  placement,
2295
2299
  popperOptions,
2296
2300
  popperRef,
2297
- transition,
2298
- ...other
2299
- };
2300
- return /*#__PURE__*/jsxRuntimeExports.jsx(PopperRoot, {
2301
+ transition
2302
+ }, other);
2303
+ return /*#__PURE__*/jsxRuntimeExports.jsx(PopperRoot, _extends({
2301
2304
  as: component,
2302
- direction: isRtl ? 'rtl' : 'ltr',
2305
+ direction: theme == null ? void 0 : theme.direction,
2303
2306
  slots: {
2304
2307
  root: RootComponent
2305
2308
  },
2306
- slotProps: slotProps ?? componentsProps,
2307
- ...otherProps,
2309
+ slotProps: slotProps != null ? slotProps : componentsProps
2310
+ }, otherProps, {
2308
2311
  ref: ref
2309
- });
2312
+ }));
2310
2313
  });
2311
2314
  process.env.NODE_ENV !== "production" ? Popper.propTypes /* remove-proptypes */ = {
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
- // └─────────────────────────────────────────────────────────────────────┘
2315
+ // ----------------------------- Warning --------------------------------
2316
+ // | These PropTypes are generated from the TypeScript type definitions |
2317
+ // | To update them edit TypeScript types and run "yarn proptypes" |
2318
+ // ----------------------------------------------------------------------
2316
2319
  /**
2317
2320
  * An HTML element, [virtualElement](https://popper.js.org/docs/v2/virtual-elements/),
2318
2321
  * or a function that returns either.
@@ -2332,8 +2335,6 @@ process.env.NODE_ENV !== "production" ? Popper.propTypes /* remove-proptypes */
2332
2335
  /**
2333
2336
  * The components used for each slot inside the Popper.
2334
2337
  * 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/).
2337
2338
  * @default {}
2338
2339
  */
2339
2340
  components: PropTypes.shape({
@@ -2341,8 +2342,6 @@ process.env.NODE_ENV !== "production" ? Popper.propTypes /* remove-proptypes */
2341
2342
  }),
2342
2343
  /**
2343
2344
  * 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/).
2346
2345
  * @default {}
2347
2346
  */
2348
2347
  componentsProps: PropTypes.shape({
@@ -2352,9 +2351,6 @@ process.env.NODE_ENV !== "production" ? Popper.propTypes /* remove-proptypes */
2352
2351
  * An HTML element or function that returns one.
2353
2352
  * The `container` will have the portal children appended to it.
2354
2353
  *
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
- *
2358
2354
  * By default, it uses the body of the top-level document object,
2359
2355
  * so it's simply `document.body` most of the time.
2360
2356
  */
@@ -2442,7 +2438,7 @@ process.env.NODE_ENV !== "production" ? Popper.propTypes /* remove-proptypes */
2442
2438
  var Popper$1 = Popper;
2443
2439
 
2444
2440
  const BasePopper = /*#__PURE__*/forwardRef((props, ref) => {
2445
- return /*#__PURE__*/React__default.createElement(Popper$1, _extends({}, props, {
2441
+ return /*#__PURE__*/React__default.createElement(Popper$1, _extends$1({}, props, {
2446
2442
  ref: ref,
2447
2443
  container: () => document.getElementById('redsift-app-container')
2448
2444
  }));