@redsift/table 12.5.2-muiv6 → 12.5.2-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 === null || onChange === void 0 ? void 0 : 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,87 +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", "touchRippleRef"];
2203
- const BaseCheckbox = /*#__PURE__*/forwardRef((props, ref) => {
2204
- const {
2205
- checked,
2206
- indeterminate,
2207
- disabled,
2208
- onChange,
2209
- touchRippleRef: _touchRippleRef
2210
- } = props,
2211
- forwardedProps = _objectWithoutProperties(props, _excluded$2);
2212
- return /*#__PURE__*/React__default.createElement(Checkbox, _extends$1({}, forwardedProps, forwardedProps.inputProps, {
2213
- isSelected: checked && !indeterminate,
2214
- isDisabled: disabled,
2215
- isIndeterminate: indeterminate,
2216
- ref: ref,
2217
- onChange: (isChecked, value, name, event) => onChange(event)
2218
- }));
2219
- });
2220
-
2221
- const _excluded$1 = ["displayName"];
2222
- const muiIconToDSIcon = {
2223
- ColumnFilteredIcon: mdiFilterVariant,
2224
- ColumnSelectorIcon: mdiViewColumn,
2225
- ColumnSortedAscendingIcon: mdiArrowUp,
2226
- ColumnSortedDescendingIcon: mdiArrowDown,
2227
- DensityCompactIcon: mdiViewHeadline,
2228
- DensityStandardIcon: mdiViewSequential,
2229
- DensityComfortableIcon: mdiViewStream,
2230
- DetailPanelCollapseIcon: mdiChevronDown,
2231
- DetailPanelExpandIcon: mdiChevronRight,
2232
- ExportIcon: mdiTrayArrowDown,
2233
- OpenFilterButtonIcon: mdiFilterVariant
2234
- };
2235
- const BaseIcon = /*#__PURE__*/forwardRef((props, ref) => {
2236
- const {
2237
- displayName
2238
- } = props,
2239
- forwardedProps = _objectWithoutProperties(props, _excluded$1);
2240
- return /*#__PURE__*/React__default.createElement(Icon, _extends$1({}, forwardedProps, forwardedProps.inputProps, {
2241
- ref: ref,
2242
- size: forwardedProps.fontSize,
2243
- icon: muiIconToDSIcon[displayName]
2244
- }));
2245
- });
2246
-
2247
- const _excluded = ["anchorEl", "component", "components", "componentsProps", "container", "disablePortal", "keepMounted", "modifiers", "open", "placement", "popperOptions", "popperRef", "transition", "slots", "slotProps"];
2248
2245
  const PopperRoot = styled(BasePopper$1, {
2249
2246
  name: 'MuiPopper',
2250
2247
  slot: 'Root',
@@ -2255,41 +2252,40 @@ const PopperRoot = styled(BasePopper$1, {
2255
2252
  *
2256
2253
  * Demos:
2257
2254
  *
2258
- * - [Autocomplete](https://mui.com/material-ui/react-autocomplete/)
2259
- * - [Menu](https://mui.com/material-ui/react-menu/)
2260
- * - [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/)
2261
2258
  *
2262
2259
  * API:
2263
2260
  *
2264
- * - [Popper API](https://mui.com/material-ui/api/popper/)
2261
+ * - [Popper API](https://v6.mui.com/material-ui/api/popper/)
2265
2262
  */
2266
2263
  const Popper = /*#__PURE__*/React.forwardRef(function Popper(inProps, ref) {
2267
- var _slots$root;
2268
- const theme = useTheme();
2269
- const props = useThemeProps({
2264
+ const isRtl = useRtl();
2265
+ const props = useDefaultProps({
2270
2266
  props: inProps,
2271
2267
  name: 'MuiPopper'
2272
2268
  });
2273
2269
  const {
2274
- anchorEl,
2275
- component,
2276
- components,
2277
- componentsProps,
2278
- container,
2279
- disablePortal,
2280
- keepMounted,
2281
- modifiers,
2282
- open,
2283
- placement,
2284
- popperOptions,
2285
- popperRef,
2286
- transition,
2287
- slots,
2288
- slotProps
2289
- } = props,
2290
- other = _objectWithoutPropertiesLoose(props, _excluded);
2291
- const RootComponent = (_slots$root = slots == null ? void 0 : slots.root) != null ? _slots$root : components == null ? void 0 : components.Root;
2292
- 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 = {
2293
2289
  anchorEl,
2294
2290
  container,
2295
2291
  disablePortal,
@@ -2299,24 +2295,25 @@ const Popper = /*#__PURE__*/React.forwardRef(function Popper(inProps, ref) {
2299
2295
  placement,
2300
2296
  popperOptions,
2301
2297
  popperRef,
2302
- transition
2303
- }, other);
2304
- return /*#__PURE__*/jsxRuntimeExports.jsx(PopperRoot, _extends({
2298
+ transition,
2299
+ ...other
2300
+ };
2301
+ return /*#__PURE__*/jsxRuntimeExports.jsx(PopperRoot, {
2305
2302
  as: component,
2306
- direction: theme == null ? void 0 : theme.direction,
2303
+ direction: isRtl ? 'rtl' : 'ltr',
2307
2304
  slots: {
2308
2305
  root: RootComponent
2309
2306
  },
2310
- slotProps: slotProps != null ? slotProps : componentsProps
2311
- }, otherProps, {
2307
+ slotProps: slotProps ?? componentsProps,
2308
+ ...otherProps,
2312
2309
  ref: ref
2313
- }));
2310
+ });
2314
2311
  });
2315
2312
  process.env.NODE_ENV !== "production" ? Popper.propTypes /* remove-proptypes */ = {
2316
- // ----------------------------- Warning --------------------------------
2317
- // | These PropTypes are generated from the TypeScript type definitions |
2318
- // | To update them edit TypeScript types and run "yarn proptypes" |
2319
- // ----------------------------------------------------------------------
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
+ // └─────────────────────────────────────────────────────────────────────┘
2320
2317
  /**
2321
2318
  * An HTML element, [virtualElement](https://popper.js.org/docs/v2/virtual-elements/),
2322
2319
  * or a function that returns either.
@@ -2336,6 +2333,8 @@ process.env.NODE_ENV !== "production" ? Popper.propTypes /* remove-proptypes */
2336
2333
  /**
2337
2334
  * The components used for each slot inside the Popper.
2338
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/).
2339
2338
  * @default {}
2340
2339
  */
2341
2340
  components: PropTypes.shape({
@@ -2343,6 +2342,8 @@ process.env.NODE_ENV !== "production" ? Popper.propTypes /* remove-proptypes */
2343
2342
  }),
2344
2343
  /**
2345
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/).
2346
2347
  * @default {}
2347
2348
  */
2348
2349
  componentsProps: PropTypes.shape({
@@ -2352,6 +2353,9 @@ process.env.NODE_ENV !== "production" ? Popper.propTypes /* remove-proptypes */
2352
2353
  * An HTML element or function that returns one.
2353
2354
  * The `container` will have the portal children appended to it.
2354
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
+ *
2355
2359
  * By default, it uses the body of the top-level document object,
2356
2360
  * so it's simply `document.body` most of the time.
2357
2361
  */
@@ -2439,7 +2443,7 @@ process.env.NODE_ENV !== "production" ? Popper.propTypes /* remove-proptypes */
2439
2443
  var Popper$1 = Popper;
2440
2444
 
2441
2445
  const BasePopper = /*#__PURE__*/forwardRef((props, ref) => {
2442
- return /*#__PURE__*/React__default.createElement(Popper$1, _extends$1({}, props, {
2446
+ return /*#__PURE__*/React__default.createElement(Popper$1, _extends({}, props, {
2443
2447
  ref: ref,
2444
2448
  container: () => document.getElementById('redsift-app-container')
2445
2449
  }));