@vitessce/feature-list 3.9.1 → 3.9.3

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 (2) hide show
  1. package/dist/index.js +1097 -82
  2. package/package.json +5 -5
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@ var __defProp = Object.defineProperty;
2
2
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
3
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
4
4
  import * as React from "react";
5
- import React__default, { useContext, forwardRef, useRef, useMemo, createContext, createElement, isValidElement, cloneElement, Children, useState, useEffect, useCallback } from "react";
5
+ import React__default, { useContext, forwardRef, useRef, useMemo, createContext, createElement, isValidElement, cloneElement, Children, PureComponent, useEffect, useState, useCallback } from "react";
6
6
  import { usePlotOptionsStyles, OptionsContainer, OptionSelect, useLoaders, useCoordinationScopes, useGridItemSize, useCoordination, useFeatureLabelsData, useExpandedFeatureLabelsMap, useObsFeatureMatrixIndices, useReady, useUrls, TitleInfo } from "@vitessce/vit-s";
7
7
  import * as ReactDOM from "react-dom";
8
8
  function getDefaultExportFromCjs(x) {
@@ -659,6 +659,7 @@ const ViewType = {
659
659
  OBS_SET_COMPOSITION_BAR_PLOT: "obsSetCompositionBarPlot",
660
660
  FEATURE_SET_ENRICHMENT_BAR_PLOT: "featureSetEnrichmentBarPlot",
661
661
  BIOMARKER_SELECT: "biomarkerSelect",
662
+ BIOMARKER_SELECT_ALT: "biomarkerSelectAlt",
662
663
  COMPARATIVE_HEADING: "comparativeHeading",
663
664
  LINK_CONTROLLER: "linkController",
664
665
  NEUROGLANCER: "neuroglancer",
@@ -1419,6 +1420,17 @@ const COMPONENT_COORDINATION_TYPES = {
1419
1420
  CoordinationType.OBS_SET_FILTER
1420
1421
  // TODO: create coordination types for internal state of the biomarker selection view?
1421
1422
  ],
1423
+ [ViewType.BIOMARKER_SELECT_ALT]: [
1424
+ CoordinationType.DATASET,
1425
+ CoordinationType.OBS_TYPE,
1426
+ CoordinationType.SAMPLE_TYPE,
1427
+ CoordinationType.FEATURE_SELECTION,
1428
+ CoordinationType.SAMPLE_SET_SELECTION,
1429
+ CoordinationType.SAMPLE_SET_FILTER,
1430
+ CoordinationType.OBS_SET_SELECTION,
1431
+ CoordinationType.OBS_SET_FILTER
1432
+ // TODO: create coordination types for internal state of the biomarker selection view?
1433
+ ],
1422
1434
  [ViewType.COMPARATIVE_HEADING]: [
1423
1435
  CoordinationType.DATASET,
1424
1436
  CoordinationType.OBS_TYPE,
@@ -2252,14 +2264,14 @@ var createCache = function createCache2(options) {
2252
2264
  cache.sheet.hydrate(nodesToHydrate);
2253
2265
  return cache;
2254
2266
  };
2255
- function _extends$2() {
2256
- return _extends$2 = Object.assign ? Object.assign.bind() : function(n) {
2267
+ function _extends$3() {
2268
+ return _extends$3 = Object.assign ? Object.assign.bind() : function(n) {
2257
2269
  for (var e = 1; e < arguments.length; e++) {
2258
2270
  var t = arguments[e];
2259
2271
  for (var r2 in t) ({}).hasOwnProperty.call(t, r2) && (n[r2] = t[r2]);
2260
2272
  }
2261
2273
  return n;
2262
- }, _extends$2.apply(null, arguments);
2274
+ }, _extends$3.apply(null, arguments);
2263
2275
  }
2264
2276
  var reactIs$1 = { exports: {} };
2265
2277
  var reactIs_development$1 = {};
@@ -3752,7 +3764,7 @@ var createStyled$1 = function createStyled(tag, options) {
3752
3764
  }
3753
3765
  });
3754
3766
  Styled.withComponent = function(nextTag, nextOptions) {
3755
- var newStyled2 = createStyled(nextTag, _extends$2({}, options, nextOptions, {
3767
+ var newStyled2 = createStyled(nextTag, _extends$3({}, options, nextOptions, {
3756
3768
  shouldForwardProp: composeShouldForwardProps(Styled, nextOptions, true)
3757
3769
  }));
3758
3770
  return newStyled2.apply(void 0, styles);
@@ -6739,6 +6751,56 @@ const systemDefaultTheme$1 = createTheme$1();
6739
6751
  function useTheme$1(defaultTheme2 = systemDefaultTheme$1) {
6740
6752
  return useTheme$2(defaultTheme2);
6741
6753
  }
6754
+ const splitProps = (props) => {
6755
+ var _a;
6756
+ const result = {
6757
+ systemProps: {},
6758
+ otherProps: {}
6759
+ };
6760
+ const config = ((_a = props == null ? void 0 : props.theme) == null ? void 0 : _a.unstable_sxConfig) ?? defaultSxConfig;
6761
+ Object.keys(props).forEach((prop) => {
6762
+ if (config[prop]) {
6763
+ result.systemProps[prop] = props[prop];
6764
+ } else {
6765
+ result.otherProps[prop] = props[prop];
6766
+ }
6767
+ });
6768
+ return result;
6769
+ };
6770
+ function extendSxProp$1(props) {
6771
+ const {
6772
+ sx: inSx,
6773
+ ...other
6774
+ } = props;
6775
+ const {
6776
+ systemProps,
6777
+ otherProps
6778
+ } = splitProps(other);
6779
+ let finalSx;
6780
+ if (Array.isArray(inSx)) {
6781
+ finalSx = [systemProps, ...inSx];
6782
+ } else if (typeof inSx === "function") {
6783
+ finalSx = (...args) => {
6784
+ const result = inSx(...args);
6785
+ if (!isPlainObject(result)) {
6786
+ return systemProps;
6787
+ }
6788
+ return {
6789
+ ...systemProps,
6790
+ ...result
6791
+ };
6792
+ };
6793
+ } else {
6794
+ finalSx = {
6795
+ ...systemProps,
6796
+ ...inSx
6797
+ };
6798
+ }
6799
+ return {
6800
+ ...otherProps,
6801
+ sx: finalSx
6802
+ };
6803
+ }
6742
6804
  const defaultGenerator = (componentName) => componentName;
6743
6805
  const createClassNameGenerator = () => {
6744
6806
  let generate = defaultGenerator;
@@ -8922,6 +8984,9 @@ const { tss } = createTss({
8922
8984
  "usePlugin": useMuiThemeStyleOverridesPlugin
8923
8985
  });
8924
8986
  const useStyles$3 = tss.create({});
8987
+ function internal_createExtendSxProp() {
8988
+ return extendSxProp$1;
8989
+ }
8925
8990
  const memoTheme = unstable_memoTheme;
8926
8991
  ({
8927
8992
  // ┌────────────────────────────── Warning ──────────────────────────────┐
@@ -8944,7 +9009,7 @@ function getSvgIconUtilityClass(slot) {
8944
9009
  return generateUtilityClass("MuiSvgIcon", slot);
8945
9010
  }
8946
9011
  generateUtilityClasses("MuiSvgIcon", ["root", "colorPrimary", "colorSecondary", "colorAction", "colorError", "colorDisabled", "fontSizeInherit", "fontSizeSmall", "fontSizeMedium", "fontSizeLarge"]);
8947
- const useUtilityClasses$5 = (ownerState) => {
9012
+ const useUtilityClasses$6 = (ownerState) => {
8948
9013
  const {
8949
9014
  color: color2,
8950
9015
  fontSize,
@@ -9089,7 +9154,7 @@ const SvgIcon = /* @__PURE__ */ React.forwardRef(function SvgIcon2(inProps, ref)
9089
9154
  if (!inheritViewBox) {
9090
9155
  more.viewBox = viewBox;
9091
9156
  }
9092
- const classes = useUtilityClasses$5(ownerState);
9157
+ const classes = useUtilityClasses$6(ownerState);
9093
9158
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(SvgIconRoot, {
9094
9159
  as: component,
9095
9160
  className: clsx$1(classes.root, className),
@@ -9358,14 +9423,14 @@ function chainPropTypes(propType1, propType2) {
9358
9423
  return propType1(...args) || propType2(...args);
9359
9424
  };
9360
9425
  }
9361
- function _extends$1() {
9362
- return _extends$1 = Object.assign ? Object.assign.bind() : function(n) {
9426
+ function _extends$2() {
9427
+ return _extends$2 = Object.assign ? Object.assign.bind() : function(n) {
9363
9428
  for (var e = 1; e < arguments.length; e++) {
9364
9429
  var t = arguments[e];
9365
9430
  for (var r2 in t) ({}).hasOwnProperty.call(t, r2) && (n[r2] = t[r2]);
9366
9431
  }
9367
9432
  return n;
9368
- }, _extends$1.apply(null, arguments);
9433
+ }, _extends$2.apply(null, arguments);
9369
9434
  }
9370
9435
  function _objectWithoutPropertiesLoose$1(r2, e) {
9371
9436
  if (null == r2) return {};
@@ -9376,16 +9441,16 @@ function _objectWithoutPropertiesLoose$1(r2, e) {
9376
9441
  }
9377
9442
  return t;
9378
9443
  }
9379
- function _setPrototypeOf$1(t, e) {
9380
- return _setPrototypeOf$1 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t2, e2) {
9444
+ function _setPrototypeOf$2(t, e) {
9445
+ return _setPrototypeOf$2 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t2, e2) {
9381
9446
  return t2.__proto__ = e2, t2;
9382
- }, _setPrototypeOf$1(t, e);
9447
+ }, _setPrototypeOf$2(t, e);
9383
9448
  }
9384
- function _inheritsLoose(t, o) {
9385
- t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf$1(t, o);
9449
+ function _inheritsLoose$1(t, o) {
9450
+ t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf$2(t, o);
9386
9451
  }
9387
9452
  const TransitionGroupContext = React__default.createContext(null);
9388
- function _assertThisInitialized$1(e) {
9453
+ function _assertThisInitialized$2(e) {
9389
9454
  if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
9390
9455
  return e;
9391
9456
  }
@@ -9493,11 +9558,11 @@ var defaultProps = {
9493
9558
  }
9494
9559
  };
9495
9560
  var TransitionGroup = /* @__PURE__ */ function(_React$Component) {
9496
- _inheritsLoose(TransitionGroup2, _React$Component);
9561
+ _inheritsLoose$1(TransitionGroup2, _React$Component);
9497
9562
  function TransitionGroup2(props, context) {
9498
9563
  var _this;
9499
9564
  _this = _React$Component.call(this, props, context) || this;
9500
- var handleExited = _this.handleExited.bind(_assertThisInitialized$1(_this));
9565
+ var handleExited = _this.handleExited.bind(_assertThisInitialized$2(_this));
9501
9566
  _this.state = {
9502
9567
  contextValue: {
9503
9568
  isMounting: true
@@ -9534,7 +9599,7 @@ var TransitionGroup = /* @__PURE__ */ function(_React$Component) {
9534
9599
  }
9535
9600
  if (this.mounted) {
9536
9601
  this.setState(function(state) {
9537
- var children2 = _extends$1({}, state.children);
9602
+ var children2 = _extends$2({}, state.children);
9538
9603
  delete children2[child.key];
9539
9604
  return {
9540
9605
  children: children2
@@ -10288,7 +10353,7 @@ function getButtonBaseUtilityClass(slot) {
10288
10353
  return generateUtilityClass("MuiButtonBase", slot);
10289
10354
  }
10290
10355
  const buttonBaseClasses = generateUtilityClasses("MuiButtonBase", ["root", "disabled", "focusVisible"]);
10291
- const useUtilityClasses$4 = (ownerState) => {
10356
+ const useUtilityClasses$5 = (ownerState) => {
10292
10357
  const {
10293
10358
  disabled,
10294
10359
  focusVisible,
@@ -10504,7 +10569,7 @@ const ButtonBase = /* @__PURE__ */ React.forwardRef(function ButtonBase2(inProps
10504
10569
  tabIndex,
10505
10570
  focusVisible
10506
10571
  };
10507
- const classes = useUtilityClasses$4(ownerState);
10572
+ const classes = useUtilityClasses$5(ownerState);
10508
10573
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(ButtonBaseRoot, {
10509
10574
  as: ComponentProp,
10510
10575
  className: clsx$1(classes.root, className),
@@ -10814,7 +10879,7 @@ function getSwitchBaseUtilityClass(slot) {
10814
10879
  return generateUtilityClass("PrivateSwitchBase", slot);
10815
10880
  }
10816
10881
  generateUtilityClasses("PrivateSwitchBase", ["root", "checked", "disabled", "input", "edgeStart", "edgeEnd"]);
10817
- const useUtilityClasses$3 = (ownerState) => {
10882
+ const useUtilityClasses$4 = (ownerState) => {
10818
10883
  const {
10819
10884
  classes,
10820
10885
  checked,
@@ -10951,7 +11016,7 @@ const SwitchBase = /* @__PURE__ */ React.forwardRef(function SwitchBase2(props,
10951
11016
  disableFocusRipple,
10952
11017
  edge
10953
11018
  };
10954
- const classes = useUtilityClasses$3(ownerState);
11019
+ const classes = useUtilityClasses$4(ownerState);
10955
11020
  const externalForwardedProps = {
10956
11021
  slots,
10957
11022
  slotProps: {
@@ -11160,7 +11225,7 @@ function getCheckboxUtilityClass(slot) {
11160
11225
  return generateUtilityClass("MuiCheckbox", slot);
11161
11226
  }
11162
11227
  const checkboxClasses = generateUtilityClasses("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "colorPrimary", "colorSecondary", "sizeSmall", "sizeMedium"]);
11163
- const useUtilityClasses$2 = (ownerState) => {
11228
+ const useUtilityClasses$3 = (ownerState) => {
11164
11229
  const {
11165
11230
  classes,
11166
11231
  indeterminate,
@@ -11269,7 +11334,7 @@ const Checkbox = /* @__PURE__ */ React.forwardRef(function Checkbox2(inProps, re
11269
11334
  indeterminate,
11270
11335
  size: size2
11271
11336
  };
11272
- const classes = useUtilityClasses$2(ownerState);
11337
+ const classes = useUtilityClasses$3(ownerState);
11273
11338
  const externalInputProps = slotProps.input ?? inputProps;
11274
11339
  const [RootSlot, rootSlotProps] = useSlot("root", {
11275
11340
  ref,
@@ -11418,6 +11483,266 @@ Checkbox.propTypes = {
11418
11483
  */
11419
11484
  value: PropTypes.any
11420
11485
  };
11486
+ function getTypographyUtilityClass(slot) {
11487
+ return generateUtilityClass("MuiTypography", slot);
11488
+ }
11489
+ generateUtilityClasses("MuiTypography", ["root", "h1", "h2", "h3", "h4", "h5", "h6", "subtitle1", "subtitle2", "body1", "body2", "inherit", "button", "caption", "overline", "alignLeft", "alignRight", "alignCenter", "alignJustify", "noWrap", "gutterBottom", "paragraph"]);
11490
+ const v6Colors = {
11491
+ primary: true,
11492
+ secondary: true,
11493
+ error: true,
11494
+ info: true,
11495
+ success: true,
11496
+ warning: true,
11497
+ textPrimary: true,
11498
+ textSecondary: true,
11499
+ textDisabled: true
11500
+ };
11501
+ const extendSxProp = internal_createExtendSxProp();
11502
+ const useUtilityClasses$2 = (ownerState) => {
11503
+ const {
11504
+ align,
11505
+ gutterBottom,
11506
+ noWrap,
11507
+ paragraph,
11508
+ variant,
11509
+ classes
11510
+ } = ownerState;
11511
+ const slots = {
11512
+ root: ["root", variant, ownerState.align !== "inherit" && `align${capitalize(align)}`, gutterBottom && "gutterBottom", noWrap && "noWrap", paragraph && "paragraph"]
11513
+ };
11514
+ return composeClasses(slots, getTypographyUtilityClass, classes);
11515
+ };
11516
+ const TypographyRoot = styled("span", {
11517
+ name: "MuiTypography",
11518
+ slot: "Root",
11519
+ overridesResolver: (props, styles) => {
11520
+ const {
11521
+ ownerState
11522
+ } = props;
11523
+ return [styles.root, ownerState.variant && styles[ownerState.variant], ownerState.align !== "inherit" && styles[`align${capitalize(ownerState.align)}`], ownerState.noWrap && styles.noWrap, ownerState.gutterBottom && styles.gutterBottom, ownerState.paragraph && styles.paragraph];
11524
+ }
11525
+ })(memoTheme(({
11526
+ theme
11527
+ }) => {
11528
+ var _a;
11529
+ return {
11530
+ margin: 0,
11531
+ variants: [{
11532
+ props: {
11533
+ variant: "inherit"
11534
+ },
11535
+ style: {
11536
+ // Some elements, like <button> on Chrome have default font that doesn't inherit, reset this.
11537
+ font: "inherit",
11538
+ lineHeight: "inherit",
11539
+ letterSpacing: "inherit"
11540
+ }
11541
+ }, ...Object.entries(theme.typography).filter(([variant, value]) => variant !== "inherit" && value && typeof value === "object").map(([variant, value]) => ({
11542
+ props: {
11543
+ variant
11544
+ },
11545
+ style: value
11546
+ })), ...Object.entries(theme.palette).filter(createSimplePaletteValueFilter()).map(([color2]) => ({
11547
+ props: {
11548
+ color: color2
11549
+ },
11550
+ style: {
11551
+ color: (theme.vars || theme).palette[color2].main
11552
+ }
11553
+ })), ...Object.entries(((_a = theme.palette) == null ? void 0 : _a.text) || {}).filter(([, value]) => typeof value === "string").map(([color2]) => ({
11554
+ props: {
11555
+ color: `text${capitalize(color2)}`
11556
+ },
11557
+ style: {
11558
+ color: (theme.vars || theme).palette.text[color2]
11559
+ }
11560
+ })), {
11561
+ props: ({
11562
+ ownerState
11563
+ }) => ownerState.align !== "inherit",
11564
+ style: {
11565
+ textAlign: "var(--Typography-textAlign)"
11566
+ }
11567
+ }, {
11568
+ props: ({
11569
+ ownerState
11570
+ }) => ownerState.noWrap,
11571
+ style: {
11572
+ overflow: "hidden",
11573
+ textOverflow: "ellipsis",
11574
+ whiteSpace: "nowrap"
11575
+ }
11576
+ }, {
11577
+ props: ({
11578
+ ownerState
11579
+ }) => ownerState.gutterBottom,
11580
+ style: {
11581
+ marginBottom: "0.35em"
11582
+ }
11583
+ }, {
11584
+ props: ({
11585
+ ownerState
11586
+ }) => ownerState.paragraph,
11587
+ style: {
11588
+ marginBottom: 16
11589
+ }
11590
+ }]
11591
+ };
11592
+ }));
11593
+ const defaultVariantMapping = {
11594
+ h1: "h1",
11595
+ h2: "h2",
11596
+ h3: "h3",
11597
+ h4: "h4",
11598
+ h5: "h5",
11599
+ h6: "h6",
11600
+ subtitle1: "h6",
11601
+ subtitle2: "h6",
11602
+ body1: "p",
11603
+ body2: "p",
11604
+ inherit: "p"
11605
+ };
11606
+ const Typography = /* @__PURE__ */ React.forwardRef(function Typography2(inProps, ref) {
11607
+ const {
11608
+ color: color2,
11609
+ ...themeProps
11610
+ } = useDefaultProps({
11611
+ props: inProps,
11612
+ name: "MuiTypography"
11613
+ });
11614
+ const isSxColor = !v6Colors[color2];
11615
+ const props = extendSxProp({
11616
+ ...themeProps,
11617
+ ...isSxColor && {
11618
+ color: color2
11619
+ }
11620
+ });
11621
+ const {
11622
+ align = "inherit",
11623
+ className,
11624
+ component,
11625
+ gutterBottom = false,
11626
+ noWrap = false,
11627
+ paragraph = false,
11628
+ variant = "body1",
11629
+ variantMapping = defaultVariantMapping,
11630
+ ...other
11631
+ } = props;
11632
+ const ownerState = {
11633
+ ...props,
11634
+ align,
11635
+ color: color2,
11636
+ className,
11637
+ component,
11638
+ gutterBottom,
11639
+ noWrap,
11640
+ paragraph,
11641
+ variant,
11642
+ variantMapping
11643
+ };
11644
+ const Component = component || (paragraph ? "p" : variantMapping[variant] || defaultVariantMapping[variant]) || "span";
11645
+ const classes = useUtilityClasses$2(ownerState);
11646
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(TypographyRoot, {
11647
+ as: Component,
11648
+ ref,
11649
+ className: clsx$1(classes.root, className),
11650
+ ...other,
11651
+ ownerState,
11652
+ style: {
11653
+ ...align !== "inherit" && {
11654
+ "--Typography-textAlign": align
11655
+ },
11656
+ ...other.style
11657
+ }
11658
+ });
11659
+ });
11660
+ Typography.propTypes = {
11661
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
11662
+ // │ These PropTypes are generated from the TypeScript type definitions. │
11663
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
11664
+ // └─────────────────────────────────────────────────────────────────────┘
11665
+ /**
11666
+ * Set the text-align on the component.
11667
+ * @default 'inherit'
11668
+ */
11669
+ align: PropTypes.oneOf(["center", "inherit", "justify", "left", "right"]),
11670
+ /**
11671
+ * The content of the component.
11672
+ */
11673
+ children: PropTypes.node,
11674
+ /**
11675
+ * Override or extend the styles applied to the component.
11676
+ */
11677
+ classes: PropTypes.object,
11678
+ /**
11679
+ * @ignore
11680
+ */
11681
+ className: PropTypes.string,
11682
+ /**
11683
+ * The color of the component.
11684
+ * It supports both default and custom theme colors, which can be added as shown in the
11685
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
11686
+ */
11687
+ color: PropTypes.oneOfType([PropTypes.oneOf(["primary", "secondary", "success", "error", "info", "warning", "textPrimary", "textSecondary", "textDisabled"]), PropTypes.string]),
11688
+ /**
11689
+ * The component used for the root node.
11690
+ * Either a string to use a HTML element or a component.
11691
+ */
11692
+ component: PropTypes.elementType,
11693
+ /**
11694
+ * If `true`, the text will have a bottom margin.
11695
+ * @default false
11696
+ */
11697
+ gutterBottom: PropTypes.bool,
11698
+ /**
11699
+ * If `true`, the text will not wrap, but instead will truncate with a text overflow ellipsis.
11700
+ *
11701
+ * Note that text overflow can only happen with block or inline-block level elements
11702
+ * (the element needs to have a width in order to overflow).
11703
+ * @default false
11704
+ */
11705
+ noWrap: PropTypes.bool,
11706
+ /**
11707
+ * If `true`, the element will be a paragraph element.
11708
+ * @default false
11709
+ * @deprecated Use the `component` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
11710
+ */
11711
+ paragraph: PropTypes.bool,
11712
+ /**
11713
+ * @ignore
11714
+ */
11715
+ style: PropTypes.object,
11716
+ /**
11717
+ * The system prop that allows defining system overrides as well as additional CSS styles.
11718
+ */
11719
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
11720
+ /**
11721
+ * Applies the theme typography styles.
11722
+ * @default 'body1'
11723
+ */
11724
+ variant: PropTypes.oneOfType([PropTypes.oneOf(["body1", "body2", "button", "caption", "h1", "h2", "h3", "h4", "h5", "h6", "inherit", "overline", "subtitle1", "subtitle2"]), PropTypes.string]),
11725
+ /**
11726
+ * The component maps the variant prop to a range of different HTML element types.
11727
+ * For instance, subtitle1 to `<h6>`.
11728
+ * If you wish to change that mapping, you can provide your own.
11729
+ * Alternatively, you can use the `component` prop.
11730
+ * @default {
11731
+ * h1: 'h1',
11732
+ * h2: 'h2',
11733
+ * h3: 'h3',
11734
+ * h4: 'h4',
11735
+ * h5: 'h5',
11736
+ * h6: 'h6',
11737
+ * subtitle1: 'h6',
11738
+ * subtitle2: 'h6',
11739
+ * body1: 'p',
11740
+ * body2: 'p',
11741
+ * inherit: 'p',
11742
+ * }
11743
+ */
11744
+ variantMapping: PropTypes.object
11745
+ };
11421
11746
  const TableContext = /* @__PURE__ */ React.createContext();
11422
11747
  {
11423
11748
  TableContext.displayName = "TableContext";
@@ -12028,7 +12353,7 @@ var defineProperty$1 = function(obj, key, value) {
12028
12353
  }
12029
12354
  return obj;
12030
12355
  };
12031
- var _extends = Object.assign || function(target) {
12356
+ var _extends$1 = Object.assign || function(target) {
12032
12357
  for (var i = 1; i < arguments.length; i++) {
12033
12358
  var source = arguments[i];
12034
12359
  for (var key in source) {
@@ -12040,7 +12365,7 @@ var _extends = Object.assign || function(target) {
12040
12365
  return target;
12041
12366
  };
12042
12367
  function getClientRect(offsets) {
12043
- return _extends({}, offsets, {
12368
+ return _extends$1({}, offsets, {
12044
12369
  right: offsets.left + offsets.width,
12045
12370
  bottom: offsets.top + offsets.height
12046
12371
  });
@@ -12224,7 +12549,7 @@ function computeAutoPlacement(placement, refRect, popper, reference, boundariesE
12224
12549
  }
12225
12550
  };
12226
12551
  var sortedAreas = Object.keys(rects).map(function(key) {
12227
- return _extends({
12552
+ return _extends$1({
12228
12553
  key
12229
12554
  }, rects[key], {
12230
12555
  area: getArea(rects[key])
@@ -12532,9 +12857,9 @@ function computeStyle(data, options) {
12532
12857
  var attributes = {
12533
12858
  "x-placement": data.placement
12534
12859
  };
12535
- data.attributes = _extends({}, attributes, data.attributes);
12536
- data.styles = _extends({}, styles, data.styles);
12537
- data.arrowStyles = _extends({}, data.offsets.arrow, data.arrowStyles);
12860
+ data.attributes = _extends$1({}, attributes, data.attributes);
12861
+ data.styles = _extends$1({}, styles, data.styles);
12862
+ data.arrowStyles = _extends$1({}, data.offsets.arrow, data.arrowStyles);
12538
12863
  return data;
12539
12864
  }
12540
12865
  function isModifierRequired(modifiers2, requestingName, requestedName) {
@@ -12669,7 +12994,7 @@ function flip(data, options) {
12669
12994
  variation = getOppositeVariation(variation);
12670
12995
  }
12671
12996
  data.placement = placement + (variation ? "-" + variation : "");
12672
- data.offsets.popper = _extends({}, data.offsets.popper, getPopperOffsets(data.instance.popper, data.offsets.reference, data.placement));
12997
+ data.offsets.popper = _extends$1({}, data.offsets.popper, getPopperOffsets(data.instance.popper, data.offsets.reference, data.placement));
12673
12998
  data = runModifiers(data.instance.modifiers, data, "flip");
12674
12999
  }
12675
13000
  });
@@ -12828,7 +13153,7 @@ function preventOverflow(data, options) {
12828
13153
  };
12829
13154
  order.forEach(function(placement) {
12830
13155
  var side = ["left", "top"].indexOf(placement) !== -1 ? "primary" : "secondary";
12831
- popper = _extends({}, popper, check[side](placement));
13156
+ popper = _extends$1({}, popper, check[side](placement));
12832
13157
  });
12833
13158
  data.offsets.popper = popper;
12834
13159
  return data;
@@ -12846,7 +13171,7 @@ function shift(data) {
12846
13171
  start: defineProperty$1({}, side, reference[side]),
12847
13172
  end: defineProperty$1({}, side, reference[side] + reference[measurement] - popper[measurement])
12848
13173
  };
12849
- data.offsets.popper = _extends({}, popper, shiftOffsets[shiftvariation]);
13174
+ data.offsets.popper = _extends$1({}, popper, shiftOffsets[shiftvariation]);
12850
13175
  }
12851
13176
  return data;
12852
13177
  }
@@ -13249,7 +13574,7 @@ var Popper = function() {
13249
13574
  return requestAnimationFrame(_this.update);
13250
13575
  };
13251
13576
  this.update = debounce(this.update.bind(this));
13252
- this.options = _extends({}, Popper2.Defaults, options);
13577
+ this.options = _extends$1({}, Popper2.Defaults, options);
13253
13578
  this.state = {
13254
13579
  isDestroyed: false,
13255
13580
  isCreated: false,
@@ -13258,11 +13583,11 @@ var Popper = function() {
13258
13583
  this.reference = reference && reference.jquery ? reference[0] : reference;
13259
13584
  this.popper = popper && popper.jquery ? popper[0] : popper;
13260
13585
  this.options.modifiers = {};
13261
- Object.keys(_extends({}, Popper2.Defaults.modifiers, options.modifiers)).forEach(function(name) {
13262
- _this.options.modifiers[name] = _extends({}, Popper2.Defaults.modifiers[name] || {}, options.modifiers ? options.modifiers[name] : {});
13586
+ Object.keys(_extends$1({}, Popper2.Defaults.modifiers, options.modifiers)).forEach(function(name) {
13587
+ _this.options.modifiers[name] = _extends$1({}, Popper2.Defaults.modifiers[name] || {}, options.modifiers ? options.modifiers[name] : {});
13263
13588
  });
13264
13589
  this.modifiers = Object.keys(this.options.modifiers).map(function(name) {
13265
- return _extends({
13590
+ return _extends$1({
13266
13591
  name
13267
13592
  }, _this.options.modifiers[name]);
13268
13593
  }).sort(function(a, b) {
@@ -13328,21 +13653,20 @@ Popper.Utils = (typeof window !== "undefined" ? window : global).PopperUtils;
13328
13653
  Popper.placements = placements;
13329
13654
  Popper.Defaults = Defaults;
13330
13655
  function createChainedFunction(...funcs) {
13331
- return funcs.reduce((acc, func) => {
13332
- if (func == null) {
13333
- return acc;
13334
- }
13335
- {
13336
- if (typeof func !== "function") {
13337
- console.error("Material-UI: Invalid Argument Type, must only provide functions, undefined, or null.");
13338
- }
13656
+ return funcs.reduce(
13657
+ (acc, func) => {
13658
+ if (func == null) {
13659
+ return acc;
13660
+ }
13661
+ return function chainedFunction(...args) {
13662
+ acc.apply(this, args);
13663
+ func.apply(this, args);
13664
+ };
13665
+ },
13666
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
13667
+ () => {
13339
13668
  }
13340
- return function chainedFunction(...args) {
13341
- acc.apply(this, args);
13342
- func.apply(this, args);
13343
- };
13344
- }, () => {
13345
- });
13669
+ );
13346
13670
  }
13347
13671
  function setRef(ref, value) {
13348
13672
  if (typeof ref === "function") {
@@ -13381,7 +13705,7 @@ function flipPlacement(placement, theme) {
13381
13705
  }
13382
13706
  }
13383
13707
  function getAnchorEl(anchorEl) {
13384
- return typeof anchorEl === "function" ? anchorEl() : anchorEl;
13708
+ return typeof anchorEl === "function" ? anchorEl(document.body) : anchorEl;
13385
13709
  }
13386
13710
  const useEnhancedEffect = typeof window !== "undefined" ? React.useLayoutEffect : React.useEffect;
13387
13711
  const defaultPopperOptions = {};
@@ -13411,25 +13735,18 @@ React.forwardRef((props, ref) => {
13411
13735
  }
13412
13736
  if (popperRef.current) {
13413
13737
  popperRef.current.destroy();
13414
- handlePopperRefRef.current(null);
13738
+ if (handlePopperRefRef.current) {
13739
+ setRef(handlePopperRefRef.current, null);
13740
+ }
13415
13741
  }
13416
13742
  const handlePopperUpdate = (data) => {
13417
13743
  setPlacement(data.placement);
13418
13744
  };
13419
- const resolvedAnchorEl = getAnchorEl(anchorEl);
13420
- {
13421
- if (resolvedAnchorEl && resolvedAnchorEl.nodeType === 1) {
13422
- const box = resolvedAnchorEl.getBoundingClientRect();
13423
- if (box.top === 0 && box.left === 0 && box.right === 0 && box.bottom === 0) {
13424
- console.warn([
13425
- "Material-UI: The `anchorEl` prop provided to the component is invalid.",
13426
- "The anchor element should be part of the document layout.",
13427
- "Make sure the element is present in the document or that it's not display none."
13428
- ].join("\n"));
13429
- }
13430
- }
13745
+ const anchorElement = getAnchorEl(anchorEl);
13746
+ if (!anchorElement) {
13747
+ return;
13431
13748
  }
13432
- const popper = new Popper(getAnchorEl(anchorEl), tooltipRef.current, {
13749
+ const popper = new Popper(anchorElement, tooltipRef.current, {
13433
13750
  placement: rtlPlacement,
13434
13751
  ...popperOptions,
13435
13752
  modifiers: {
@@ -13447,7 +13764,9 @@ React.forwardRef((props, ref) => {
13447
13764
  onCreate: createChainedFunction(handlePopperUpdate, popperOptions.onCreate),
13448
13765
  onUpdate: createChainedFunction(handlePopperUpdate, popperOptions.onUpdate)
13449
13766
  });
13450
- handlePopperRefRef.current(popper);
13767
+ if (handlePopperRefRef.current) {
13768
+ setRef(handlePopperRefRef.current, popper);
13769
+ }
13451
13770
  }, [anchorEl, disablePortal, modifiers2, open, rtlPlacement, popperOptions]);
13452
13771
  const handleRef = React.useCallback((node2) => {
13453
13772
  setRef(ownRef, node2);
@@ -13461,7 +13780,9 @@ React.forwardRef((props, ref) => {
13461
13780
  return;
13462
13781
  }
13463
13782
  popperRef.current.destroy();
13464
- handlePopperRefRef.current(null);
13783
+ if (handlePopperRefRef.current) {
13784
+ setRef(handlePopperRefRef.current, null);
13785
+ }
13465
13786
  };
13466
13787
  const handleExited = () => {
13467
13788
  setExited(true);
@@ -13492,10 +13813,704 @@ React.forwardRef((props, ref) => {
13492
13813
  // Fix Popper.js display issue
13493
13814
  top: 0,
13494
13815
  left: 0,
13495
- display: !open && keepMounted && !transition ? "none" : null,
13816
+ display: !open && keepMounted && !transition ? "none" : void 0,
13496
13817
  ...style2
13497
13818
  }, children: typeof children2 === "function" ? children2(childProps) : children2 }) });
13498
13819
  });
13820
+ function _extends() {
13821
+ _extends = Object.assign ? Object.assign.bind() : function(target) {
13822
+ for (var i = 1; i < arguments.length; i++) {
13823
+ var source = arguments[i];
13824
+ for (var key in source) {
13825
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
13826
+ target[key] = source[key];
13827
+ }
13828
+ }
13829
+ }
13830
+ return target;
13831
+ };
13832
+ return _extends.apply(this, arguments);
13833
+ }
13834
+ function _assertThisInitialized$1(self2) {
13835
+ if (self2 === void 0) {
13836
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
13837
+ }
13838
+ return self2;
13839
+ }
13840
+ function _setPrototypeOf$1(o, p) {
13841
+ _setPrototypeOf$1 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o2, p2) {
13842
+ o2.__proto__ = p2;
13843
+ return o2;
13844
+ };
13845
+ return _setPrototypeOf$1(o, p);
13846
+ }
13847
+ function _inheritsLoose(subClass, superClass) {
13848
+ subClass.prototype = Object.create(superClass.prototype);
13849
+ subClass.prototype.constructor = subClass;
13850
+ _setPrototypeOf$1(subClass, superClass);
13851
+ }
13852
+ var safeIsNaN = Number.isNaN || function ponyfill(value) {
13853
+ return typeof value === "number" && value !== value;
13854
+ };
13855
+ function isEqual$1(first, second) {
13856
+ if (first === second) {
13857
+ return true;
13858
+ }
13859
+ if (safeIsNaN(first) && safeIsNaN(second)) {
13860
+ return true;
13861
+ }
13862
+ return false;
13863
+ }
13864
+ function areInputsEqual(newInputs, lastInputs) {
13865
+ if (newInputs.length !== lastInputs.length) {
13866
+ return false;
13867
+ }
13868
+ for (var i = 0; i < newInputs.length; i++) {
13869
+ if (!isEqual$1(newInputs[i], lastInputs[i])) {
13870
+ return false;
13871
+ }
13872
+ }
13873
+ return true;
13874
+ }
13875
+ function memoizeOne(resultFn, isEqual2) {
13876
+ if (isEqual2 === void 0) {
13877
+ isEqual2 = areInputsEqual;
13878
+ }
13879
+ var lastThis;
13880
+ var lastArgs = [];
13881
+ var lastResult;
13882
+ var calledOnce = false;
13883
+ function memoized() {
13884
+ var newArgs = [];
13885
+ for (var _i = 0; _i < arguments.length; _i++) {
13886
+ newArgs[_i] = arguments[_i];
13887
+ }
13888
+ if (calledOnce && lastThis === this && isEqual2(newArgs, lastArgs)) {
13889
+ return lastResult;
13890
+ }
13891
+ lastResult = resultFn.apply(this, newArgs);
13892
+ calledOnce = true;
13893
+ lastThis = this;
13894
+ lastArgs = newArgs;
13895
+ return lastResult;
13896
+ }
13897
+ return memoized;
13898
+ }
13899
+ var hasNativePerformanceNow = typeof performance === "object" && typeof performance.now === "function";
13900
+ var now = hasNativePerformanceNow ? function() {
13901
+ return performance.now();
13902
+ } : function() {
13903
+ return Date.now();
13904
+ };
13905
+ function cancelTimeout(timeoutID) {
13906
+ cancelAnimationFrame(timeoutID.id);
13907
+ }
13908
+ function requestTimeout(callback, delay) {
13909
+ var start = now();
13910
+ function tick() {
13911
+ if (now() - start >= delay) {
13912
+ callback.call(null);
13913
+ } else {
13914
+ timeoutID.id = requestAnimationFrame(tick);
13915
+ }
13916
+ }
13917
+ var timeoutID = {
13918
+ id: requestAnimationFrame(tick)
13919
+ };
13920
+ return timeoutID;
13921
+ }
13922
+ var size$1 = -1;
13923
+ function getScrollbarSize(recalculate) {
13924
+ if (recalculate === void 0) {
13925
+ recalculate = false;
13926
+ }
13927
+ if (size$1 === -1 || recalculate) {
13928
+ var div = document.createElement("div");
13929
+ var style2 = div.style;
13930
+ style2.width = "50px";
13931
+ style2.height = "50px";
13932
+ style2.overflow = "scroll";
13933
+ document.body.appendChild(div);
13934
+ size$1 = div.offsetWidth - div.clientWidth;
13935
+ document.body.removeChild(div);
13936
+ }
13937
+ return size$1;
13938
+ }
13939
+ var cachedRTLResult = null;
13940
+ function getRTLOffsetType(recalculate) {
13941
+ if (recalculate === void 0) {
13942
+ recalculate = false;
13943
+ }
13944
+ if (cachedRTLResult === null || recalculate) {
13945
+ var outerDiv = document.createElement("div");
13946
+ var outerStyle = outerDiv.style;
13947
+ outerStyle.width = "50px";
13948
+ outerStyle.height = "50px";
13949
+ outerStyle.overflow = "scroll";
13950
+ outerStyle.direction = "rtl";
13951
+ var innerDiv = document.createElement("div");
13952
+ var innerStyle = innerDiv.style;
13953
+ innerStyle.width = "100px";
13954
+ innerStyle.height = "100px";
13955
+ outerDiv.appendChild(innerDiv);
13956
+ document.body.appendChild(outerDiv);
13957
+ if (outerDiv.scrollLeft > 0) {
13958
+ cachedRTLResult = "positive-descending";
13959
+ } else {
13960
+ outerDiv.scrollLeft = 1;
13961
+ if (outerDiv.scrollLeft === 0) {
13962
+ cachedRTLResult = "negative";
13963
+ } else {
13964
+ cachedRTLResult = "positive-ascending";
13965
+ }
13966
+ }
13967
+ document.body.removeChild(outerDiv);
13968
+ return cachedRTLResult;
13969
+ }
13970
+ return cachedRTLResult;
13971
+ }
13972
+ var IS_SCROLLING_DEBOUNCE_INTERVAL$1 = 150;
13973
+ var defaultItemKey$1 = function defaultItemKey3(index, data) {
13974
+ return index;
13975
+ };
13976
+ var devWarningsDirection = null;
13977
+ var devWarningsTagName$1 = null;
13978
+ {
13979
+ if (typeof window !== "undefined" && typeof window.WeakSet !== "undefined") {
13980
+ devWarningsDirection = /* @__PURE__ */ new WeakSet();
13981
+ devWarningsTagName$1 = /* @__PURE__ */ new WeakSet();
13982
+ }
13983
+ }
13984
+ function createListComponent(_ref) {
13985
+ var _class;
13986
+ var getItemOffset3 = _ref.getItemOffset, getEstimatedTotalSize4 = _ref.getEstimatedTotalSize, getItemSize3 = _ref.getItemSize, getOffsetForIndexAndAlignment5 = _ref.getOffsetForIndexAndAlignment, getStartIndexForOffset3 = _ref.getStartIndexForOffset, getStopIndexForStartIndex3 = _ref.getStopIndexForStartIndex, initInstanceProps5 = _ref.initInstanceProps, shouldResetStyleCacheOnItemSizeChange = _ref.shouldResetStyleCacheOnItemSizeChange, validateProps5 = _ref.validateProps;
13987
+ return _class = /* @__PURE__ */ function(_PureComponent) {
13988
+ _inheritsLoose(List2, _PureComponent);
13989
+ function List2(props) {
13990
+ var _this;
13991
+ _this = _PureComponent.call(this, props) || this;
13992
+ _this._instanceProps = initInstanceProps5(_this.props, _assertThisInitialized$1(_this));
13993
+ _this._outerRef = void 0;
13994
+ _this._resetIsScrollingTimeoutId = null;
13995
+ _this.state = {
13996
+ instance: _assertThisInitialized$1(_this),
13997
+ isScrolling: false,
13998
+ scrollDirection: "forward",
13999
+ scrollOffset: typeof _this.props.initialScrollOffset === "number" ? _this.props.initialScrollOffset : 0,
14000
+ scrollUpdateWasRequested: false
14001
+ };
14002
+ _this._callOnItemsRendered = void 0;
14003
+ _this._callOnItemsRendered = memoizeOne(function(overscanStartIndex, overscanStopIndex, visibleStartIndex, visibleStopIndex) {
14004
+ return _this.props.onItemsRendered({
14005
+ overscanStartIndex,
14006
+ overscanStopIndex,
14007
+ visibleStartIndex,
14008
+ visibleStopIndex
14009
+ });
14010
+ });
14011
+ _this._callOnScroll = void 0;
14012
+ _this._callOnScroll = memoizeOne(function(scrollDirection, scrollOffset, scrollUpdateWasRequested) {
14013
+ return _this.props.onScroll({
14014
+ scrollDirection,
14015
+ scrollOffset,
14016
+ scrollUpdateWasRequested
14017
+ });
14018
+ });
14019
+ _this._getItemStyle = void 0;
14020
+ _this._getItemStyle = function(index) {
14021
+ var _this$props = _this.props, direction = _this$props.direction, itemSize = _this$props.itemSize, layout = _this$props.layout;
14022
+ var itemStyleCache = _this._getItemStyleCache(shouldResetStyleCacheOnItemSizeChange && itemSize, shouldResetStyleCacheOnItemSizeChange && layout, shouldResetStyleCacheOnItemSizeChange && direction);
14023
+ var style2;
14024
+ if (itemStyleCache.hasOwnProperty(index)) {
14025
+ style2 = itemStyleCache[index];
14026
+ } else {
14027
+ var _offset = getItemOffset3(_this.props, index, _this._instanceProps);
14028
+ var size2 = getItemSize3(_this.props, index, _this._instanceProps);
14029
+ var isHorizontal = direction === "horizontal" || layout === "horizontal";
14030
+ var isRtl = direction === "rtl";
14031
+ var offsetHorizontal = isHorizontal ? _offset : 0;
14032
+ itemStyleCache[index] = style2 = {
14033
+ position: "absolute",
14034
+ left: isRtl ? void 0 : offsetHorizontal,
14035
+ right: isRtl ? offsetHorizontal : void 0,
14036
+ top: !isHorizontal ? _offset : 0,
14037
+ height: !isHorizontal ? size2 : "100%",
14038
+ width: isHorizontal ? size2 : "100%"
14039
+ };
14040
+ }
14041
+ return style2;
14042
+ };
14043
+ _this._getItemStyleCache = void 0;
14044
+ _this._getItemStyleCache = memoizeOne(function(_, __, ___) {
14045
+ return {};
14046
+ });
14047
+ _this._onScrollHorizontal = function(event) {
14048
+ var _event$currentTarget = event.currentTarget, clientWidth = _event$currentTarget.clientWidth, scrollLeft = _event$currentTarget.scrollLeft, scrollWidth = _event$currentTarget.scrollWidth;
14049
+ _this.setState(function(prevState) {
14050
+ if (prevState.scrollOffset === scrollLeft) {
14051
+ return null;
14052
+ }
14053
+ var direction = _this.props.direction;
14054
+ var scrollOffset = scrollLeft;
14055
+ if (direction === "rtl") {
14056
+ switch (getRTLOffsetType()) {
14057
+ case "negative":
14058
+ scrollOffset = -scrollLeft;
14059
+ break;
14060
+ case "positive-descending":
14061
+ scrollOffset = scrollWidth - clientWidth - scrollLeft;
14062
+ break;
14063
+ }
14064
+ }
14065
+ scrollOffset = Math.max(0, Math.min(scrollOffset, scrollWidth - clientWidth));
14066
+ return {
14067
+ isScrolling: true,
14068
+ scrollDirection: prevState.scrollOffset < scrollOffset ? "forward" : "backward",
14069
+ scrollOffset,
14070
+ scrollUpdateWasRequested: false
14071
+ };
14072
+ }, _this._resetIsScrollingDebounced);
14073
+ };
14074
+ _this._onScrollVertical = function(event) {
14075
+ var _event$currentTarget2 = event.currentTarget, clientHeight = _event$currentTarget2.clientHeight, scrollHeight = _event$currentTarget2.scrollHeight, scrollTop = _event$currentTarget2.scrollTop;
14076
+ _this.setState(function(prevState) {
14077
+ if (prevState.scrollOffset === scrollTop) {
14078
+ return null;
14079
+ }
14080
+ var scrollOffset = Math.max(0, Math.min(scrollTop, scrollHeight - clientHeight));
14081
+ return {
14082
+ isScrolling: true,
14083
+ scrollDirection: prevState.scrollOffset < scrollOffset ? "forward" : "backward",
14084
+ scrollOffset,
14085
+ scrollUpdateWasRequested: false
14086
+ };
14087
+ }, _this._resetIsScrollingDebounced);
14088
+ };
14089
+ _this._outerRefSetter = function(ref) {
14090
+ var outerRef = _this.props.outerRef;
14091
+ _this._outerRef = ref;
14092
+ if (typeof outerRef === "function") {
14093
+ outerRef(ref);
14094
+ } else if (outerRef != null && typeof outerRef === "object" && outerRef.hasOwnProperty("current")) {
14095
+ outerRef.current = ref;
14096
+ }
14097
+ };
14098
+ _this._resetIsScrollingDebounced = function() {
14099
+ if (_this._resetIsScrollingTimeoutId !== null) {
14100
+ cancelTimeout(_this._resetIsScrollingTimeoutId);
14101
+ }
14102
+ _this._resetIsScrollingTimeoutId = requestTimeout(_this._resetIsScrolling, IS_SCROLLING_DEBOUNCE_INTERVAL$1);
14103
+ };
14104
+ _this._resetIsScrolling = function() {
14105
+ _this._resetIsScrollingTimeoutId = null;
14106
+ _this.setState({
14107
+ isScrolling: false
14108
+ }, function() {
14109
+ _this._getItemStyleCache(-1, null);
14110
+ });
14111
+ };
14112
+ return _this;
14113
+ }
14114
+ List2.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps, prevState) {
14115
+ validateSharedProps$1(nextProps, prevState);
14116
+ validateProps5(nextProps);
14117
+ return null;
14118
+ };
14119
+ var _proto = List2.prototype;
14120
+ _proto.scrollTo = function scrollTo(scrollOffset) {
14121
+ scrollOffset = Math.max(0, scrollOffset);
14122
+ this.setState(function(prevState) {
14123
+ if (prevState.scrollOffset === scrollOffset) {
14124
+ return null;
14125
+ }
14126
+ return {
14127
+ scrollDirection: prevState.scrollOffset < scrollOffset ? "forward" : "backward",
14128
+ scrollOffset,
14129
+ scrollUpdateWasRequested: true
14130
+ };
14131
+ }, this._resetIsScrollingDebounced);
14132
+ };
14133
+ _proto.scrollToItem = function scrollToItem(index, align) {
14134
+ if (align === void 0) {
14135
+ align = "auto";
14136
+ }
14137
+ var _this$props2 = this.props, itemCount = _this$props2.itemCount, layout = _this$props2.layout;
14138
+ var scrollOffset = this.state.scrollOffset;
14139
+ index = Math.max(0, Math.min(index, itemCount - 1));
14140
+ var scrollbarSize2 = 0;
14141
+ if (this._outerRef) {
14142
+ var outerRef = this._outerRef;
14143
+ if (layout === "vertical") {
14144
+ scrollbarSize2 = outerRef.scrollWidth > outerRef.clientWidth ? getScrollbarSize() : 0;
14145
+ } else {
14146
+ scrollbarSize2 = outerRef.scrollHeight > outerRef.clientHeight ? getScrollbarSize() : 0;
14147
+ }
14148
+ }
14149
+ this.scrollTo(getOffsetForIndexAndAlignment5(this.props, index, align, scrollOffset, this._instanceProps, scrollbarSize2));
14150
+ };
14151
+ _proto.componentDidMount = function componentDidMount() {
14152
+ var _this$props3 = this.props, direction = _this$props3.direction, initialScrollOffset = _this$props3.initialScrollOffset, layout = _this$props3.layout;
14153
+ if (typeof initialScrollOffset === "number" && this._outerRef != null) {
14154
+ var outerRef = this._outerRef;
14155
+ if (direction === "horizontal" || layout === "horizontal") {
14156
+ outerRef.scrollLeft = initialScrollOffset;
14157
+ } else {
14158
+ outerRef.scrollTop = initialScrollOffset;
14159
+ }
14160
+ }
14161
+ this._callPropsCallbacks();
14162
+ };
14163
+ _proto.componentDidUpdate = function componentDidUpdate() {
14164
+ var _this$props4 = this.props, direction = _this$props4.direction, layout = _this$props4.layout;
14165
+ var _this$state = this.state, scrollOffset = _this$state.scrollOffset, scrollUpdateWasRequested = _this$state.scrollUpdateWasRequested;
14166
+ if (scrollUpdateWasRequested && this._outerRef != null) {
14167
+ var outerRef = this._outerRef;
14168
+ if (direction === "horizontal" || layout === "horizontal") {
14169
+ if (direction === "rtl") {
14170
+ switch (getRTLOffsetType()) {
14171
+ case "negative":
14172
+ outerRef.scrollLeft = -scrollOffset;
14173
+ break;
14174
+ case "positive-ascending":
14175
+ outerRef.scrollLeft = scrollOffset;
14176
+ break;
14177
+ default:
14178
+ var clientWidth = outerRef.clientWidth, scrollWidth = outerRef.scrollWidth;
14179
+ outerRef.scrollLeft = scrollWidth - clientWidth - scrollOffset;
14180
+ break;
14181
+ }
14182
+ } else {
14183
+ outerRef.scrollLeft = scrollOffset;
14184
+ }
14185
+ } else {
14186
+ outerRef.scrollTop = scrollOffset;
14187
+ }
14188
+ }
14189
+ this._callPropsCallbacks();
14190
+ };
14191
+ _proto.componentWillUnmount = function componentWillUnmount() {
14192
+ if (this._resetIsScrollingTimeoutId !== null) {
14193
+ cancelTimeout(this._resetIsScrollingTimeoutId);
14194
+ }
14195
+ };
14196
+ _proto.render = function render() {
14197
+ var _this$props5 = this.props, children2 = _this$props5.children, className = _this$props5.className, direction = _this$props5.direction, height2 = _this$props5.height, innerRef = _this$props5.innerRef, innerElementType = _this$props5.innerElementType, innerTagName = _this$props5.innerTagName, itemCount = _this$props5.itemCount, itemData = _this$props5.itemData, _this$props5$itemKey = _this$props5.itemKey, itemKey = _this$props5$itemKey === void 0 ? defaultItemKey$1 : _this$props5$itemKey, layout = _this$props5.layout, outerElementType = _this$props5.outerElementType, outerTagName = _this$props5.outerTagName, style2 = _this$props5.style, useIsScrolling = _this$props5.useIsScrolling, width2 = _this$props5.width;
14198
+ var isScrolling = this.state.isScrolling;
14199
+ var isHorizontal = direction === "horizontal" || layout === "horizontal";
14200
+ var onScroll6 = isHorizontal ? this._onScrollHorizontal : this._onScrollVertical;
14201
+ var _this$_getRangeToRend = this._getRangeToRender(), startIndex = _this$_getRangeToRend[0], stopIndex = _this$_getRangeToRend[1];
14202
+ var items = [];
14203
+ if (itemCount > 0) {
14204
+ for (var _index = startIndex; _index <= stopIndex; _index++) {
14205
+ items.push(createElement(children2, {
14206
+ data: itemData,
14207
+ key: itemKey(_index, itemData),
14208
+ index: _index,
14209
+ isScrolling: useIsScrolling ? isScrolling : void 0,
14210
+ style: this._getItemStyle(_index)
14211
+ }));
14212
+ }
14213
+ }
14214
+ var estimatedTotalSize = getEstimatedTotalSize4(this.props, this._instanceProps);
14215
+ return createElement(outerElementType || outerTagName || "div", {
14216
+ className,
14217
+ onScroll: onScroll6,
14218
+ ref: this._outerRefSetter,
14219
+ style: _extends({
14220
+ position: "relative",
14221
+ height: height2,
14222
+ width: width2,
14223
+ overflow: "auto",
14224
+ WebkitOverflowScrolling: "touch",
14225
+ willChange: "transform",
14226
+ direction
14227
+ }, style2)
14228
+ }, createElement(innerElementType || innerTagName || "div", {
14229
+ children: items,
14230
+ ref: innerRef,
14231
+ style: {
14232
+ height: isHorizontal ? "100%" : estimatedTotalSize,
14233
+ pointerEvents: isScrolling ? "none" : void 0,
14234
+ width: isHorizontal ? estimatedTotalSize : "100%"
14235
+ }
14236
+ }));
14237
+ };
14238
+ _proto._callPropsCallbacks = function _callPropsCallbacks() {
14239
+ if (typeof this.props.onItemsRendered === "function") {
14240
+ var itemCount = this.props.itemCount;
14241
+ if (itemCount > 0) {
14242
+ var _this$_getRangeToRend2 = this._getRangeToRender(), _overscanStartIndex = _this$_getRangeToRend2[0], _overscanStopIndex = _this$_getRangeToRend2[1], _visibleStartIndex = _this$_getRangeToRend2[2], _visibleStopIndex = _this$_getRangeToRend2[3];
14243
+ this._callOnItemsRendered(_overscanStartIndex, _overscanStopIndex, _visibleStartIndex, _visibleStopIndex);
14244
+ }
14245
+ }
14246
+ if (typeof this.props.onScroll === "function") {
14247
+ var _this$state2 = this.state, _scrollDirection = _this$state2.scrollDirection, _scrollOffset = _this$state2.scrollOffset, _scrollUpdateWasRequested = _this$state2.scrollUpdateWasRequested;
14248
+ this._callOnScroll(_scrollDirection, _scrollOffset, _scrollUpdateWasRequested);
14249
+ }
14250
+ };
14251
+ _proto._getRangeToRender = function _getRangeToRender() {
14252
+ var _this$props6 = this.props, itemCount = _this$props6.itemCount, overscanCount = _this$props6.overscanCount;
14253
+ var _this$state3 = this.state, isScrolling = _this$state3.isScrolling, scrollDirection = _this$state3.scrollDirection, scrollOffset = _this$state3.scrollOffset;
14254
+ if (itemCount === 0) {
14255
+ return [0, 0, 0, 0];
14256
+ }
14257
+ var startIndex = getStartIndexForOffset3(this.props, scrollOffset, this._instanceProps);
14258
+ var stopIndex = getStopIndexForStartIndex3(this.props, startIndex, scrollOffset, this._instanceProps);
14259
+ var overscanBackward = !isScrolling || scrollDirection === "backward" ? Math.max(1, overscanCount) : 1;
14260
+ var overscanForward = !isScrolling || scrollDirection === "forward" ? Math.max(1, overscanCount) : 1;
14261
+ return [Math.max(0, startIndex - overscanBackward), Math.max(0, Math.min(itemCount - 1, stopIndex + overscanForward)), startIndex, stopIndex];
14262
+ };
14263
+ return List2;
14264
+ }(PureComponent), _class.defaultProps = {
14265
+ direction: "ltr",
14266
+ itemData: void 0,
14267
+ layout: "vertical",
14268
+ overscanCount: 2,
14269
+ useIsScrolling: false
14270
+ }, _class;
14271
+ }
14272
+ var validateSharedProps$1 = function validateSharedProps3(_ref2, _ref3) {
14273
+ var children2 = _ref2.children, direction = _ref2.direction, height2 = _ref2.height, layout = _ref2.layout, innerTagName = _ref2.innerTagName, outerTagName = _ref2.outerTagName, width2 = _ref2.width;
14274
+ var instance = _ref3.instance;
14275
+ {
14276
+ if (innerTagName != null || outerTagName != null) {
14277
+ if (devWarningsTagName$1 && !devWarningsTagName$1.has(instance)) {
14278
+ devWarningsTagName$1.add(instance);
14279
+ console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead.");
14280
+ }
14281
+ }
14282
+ var isHorizontal = direction === "horizontal" || layout === "horizontal";
14283
+ switch (direction) {
14284
+ case "horizontal":
14285
+ case "vertical":
14286
+ if (devWarningsDirection && !devWarningsDirection.has(instance)) {
14287
+ devWarningsDirection.add(instance);
14288
+ console.warn('The direction prop should be either "ltr" (default) or "rtl". Please use the layout prop to specify "vertical" (default) or "horizontal" orientation.');
14289
+ }
14290
+ break;
14291
+ case "ltr":
14292
+ case "rtl":
14293
+ break;
14294
+ default:
14295
+ throw Error('An invalid "direction" prop has been specified. Value should be either "ltr" or "rtl". ' + ('"' + direction + '" was specified.'));
14296
+ }
14297
+ switch (layout) {
14298
+ case "horizontal":
14299
+ case "vertical":
14300
+ break;
14301
+ default:
14302
+ throw Error('An invalid "layout" prop has been specified. Value should be either "horizontal" or "vertical". ' + ('"' + layout + '" was specified.'));
14303
+ }
14304
+ if (children2 == null) {
14305
+ throw Error('An invalid "children" prop has been specified. Value should be a React component. ' + ('"' + (children2 === null ? "null" : typeof children2) + '" was specified.'));
14306
+ }
14307
+ if (isHorizontal && typeof width2 !== "number") {
14308
+ throw Error('An invalid "width" prop has been specified. Horizontal lists must specify a number for width. ' + ('"' + (width2 === null ? "null" : typeof width2) + '" was specified.'));
14309
+ } else if (!isHorizontal && typeof height2 !== "number") {
14310
+ throw Error('An invalid "height" prop has been specified. Vertical lists must specify a number for height. ' + ('"' + (height2 === null ? "null" : typeof height2) + '" was specified.'));
14311
+ }
14312
+ }
14313
+ };
14314
+ var DEFAULT_ESTIMATED_ITEM_SIZE$1 = 50;
14315
+ var getItemMetadata$1 = function getItemMetadata3(props, index, instanceProps) {
14316
+ var _ref = props, itemSize = _ref.itemSize;
14317
+ var itemMetadataMap = instanceProps.itemMetadataMap, lastMeasuredIndex = instanceProps.lastMeasuredIndex;
14318
+ if (index > lastMeasuredIndex) {
14319
+ var offset2 = 0;
14320
+ if (lastMeasuredIndex >= 0) {
14321
+ var itemMetadata = itemMetadataMap[lastMeasuredIndex];
14322
+ offset2 = itemMetadata.offset + itemMetadata.size;
14323
+ }
14324
+ for (var i = lastMeasuredIndex + 1; i <= index; i++) {
14325
+ var size2 = itemSize(i);
14326
+ itemMetadataMap[i] = {
14327
+ offset: offset2,
14328
+ size: size2
14329
+ };
14330
+ offset2 += size2;
14331
+ }
14332
+ instanceProps.lastMeasuredIndex = index;
14333
+ }
14334
+ return itemMetadataMap[index];
14335
+ };
14336
+ var findNearestItem$1 = function findNearestItem3(props, instanceProps, offset2) {
14337
+ var itemMetadataMap = instanceProps.itemMetadataMap, lastMeasuredIndex = instanceProps.lastMeasuredIndex;
14338
+ var lastMeasuredItemOffset = lastMeasuredIndex > 0 ? itemMetadataMap[lastMeasuredIndex].offset : 0;
14339
+ if (lastMeasuredItemOffset >= offset2) {
14340
+ return findNearestItemBinarySearch$1(props, instanceProps, lastMeasuredIndex, 0, offset2);
14341
+ } else {
14342
+ return findNearestItemExponentialSearch$1(props, instanceProps, Math.max(0, lastMeasuredIndex), offset2);
14343
+ }
14344
+ };
14345
+ var findNearestItemBinarySearch$1 = function findNearestItemBinarySearch3(props, instanceProps, high, low, offset2) {
14346
+ while (low <= high) {
14347
+ var middle = low + Math.floor((high - low) / 2);
14348
+ var currentOffset = getItemMetadata$1(props, middle, instanceProps).offset;
14349
+ if (currentOffset === offset2) {
14350
+ return middle;
14351
+ } else if (currentOffset < offset2) {
14352
+ low = middle + 1;
14353
+ } else if (currentOffset > offset2) {
14354
+ high = middle - 1;
14355
+ }
14356
+ }
14357
+ if (low > 0) {
14358
+ return low - 1;
14359
+ } else {
14360
+ return 0;
14361
+ }
14362
+ };
14363
+ var findNearestItemExponentialSearch$1 = function findNearestItemExponentialSearch3(props, instanceProps, index, offset2) {
14364
+ var itemCount = props.itemCount;
14365
+ var interval = 1;
14366
+ while (index < itemCount && getItemMetadata$1(props, index, instanceProps).offset < offset2) {
14367
+ index += interval;
14368
+ interval *= 2;
14369
+ }
14370
+ return findNearestItemBinarySearch$1(props, instanceProps, Math.min(index, itemCount - 1), Math.floor(index / 2), offset2);
14371
+ };
14372
+ var getEstimatedTotalSize = function getEstimatedTotalSize2(_ref2, _ref3) {
14373
+ var itemCount = _ref2.itemCount;
14374
+ var itemMetadataMap = _ref3.itemMetadataMap, estimatedItemSize = _ref3.estimatedItemSize, lastMeasuredIndex = _ref3.lastMeasuredIndex;
14375
+ var totalSizeOfMeasuredItems = 0;
14376
+ if (lastMeasuredIndex >= itemCount) {
14377
+ lastMeasuredIndex = itemCount - 1;
14378
+ }
14379
+ if (lastMeasuredIndex >= 0) {
14380
+ var itemMetadata = itemMetadataMap[lastMeasuredIndex];
14381
+ totalSizeOfMeasuredItems = itemMetadata.offset + itemMetadata.size;
14382
+ }
14383
+ var numUnmeasuredItems = itemCount - lastMeasuredIndex - 1;
14384
+ var totalSizeOfUnmeasuredItems = numUnmeasuredItems * estimatedItemSize;
14385
+ return totalSizeOfMeasuredItems + totalSizeOfUnmeasuredItems;
14386
+ };
14387
+ var VariableSizeList$1 = /* @__PURE__ */ createListComponent({
14388
+ getItemOffset: function getItemOffset(props, index, instanceProps) {
14389
+ return getItemMetadata$1(props, index, instanceProps).offset;
14390
+ },
14391
+ getItemSize: function getItemSize(props, index, instanceProps) {
14392
+ return instanceProps.itemMetadataMap[index].size;
14393
+ },
14394
+ getEstimatedTotalSize,
14395
+ getOffsetForIndexAndAlignment: function getOffsetForIndexAndAlignment3(props, index, align, scrollOffset, instanceProps, scrollbarSize2) {
14396
+ var direction = props.direction, height2 = props.height, layout = props.layout, width2 = props.width;
14397
+ var isHorizontal = direction === "horizontal" || layout === "horizontal";
14398
+ var size2 = isHorizontal ? width2 : height2;
14399
+ var itemMetadata = getItemMetadata$1(props, index, instanceProps);
14400
+ var estimatedTotalSize = getEstimatedTotalSize(props, instanceProps);
14401
+ var maxOffset = Math.max(0, Math.min(estimatedTotalSize - size2, itemMetadata.offset));
14402
+ var minOffset = Math.max(0, itemMetadata.offset - size2 + itemMetadata.size + scrollbarSize2);
14403
+ if (align === "smart") {
14404
+ if (scrollOffset >= minOffset - size2 && scrollOffset <= maxOffset + size2) {
14405
+ align = "auto";
14406
+ } else {
14407
+ align = "center";
14408
+ }
14409
+ }
14410
+ switch (align) {
14411
+ case "start":
14412
+ return maxOffset;
14413
+ case "end":
14414
+ return minOffset;
14415
+ case "center":
14416
+ return Math.round(minOffset + (maxOffset - minOffset) / 2);
14417
+ case "auto":
14418
+ default:
14419
+ if (scrollOffset >= minOffset && scrollOffset <= maxOffset) {
14420
+ return scrollOffset;
14421
+ } else if (scrollOffset < minOffset) {
14422
+ return minOffset;
14423
+ } else {
14424
+ return maxOffset;
14425
+ }
14426
+ }
14427
+ },
14428
+ getStartIndexForOffset: function getStartIndexForOffset(props, offset2, instanceProps) {
14429
+ return findNearestItem$1(props, instanceProps, offset2);
14430
+ },
14431
+ getStopIndexForStartIndex: function getStopIndexForStartIndex(props, startIndex, scrollOffset, instanceProps) {
14432
+ var direction = props.direction, height2 = props.height, itemCount = props.itemCount, layout = props.layout, width2 = props.width;
14433
+ var isHorizontal = direction === "horizontal" || layout === "horizontal";
14434
+ var size2 = isHorizontal ? width2 : height2;
14435
+ var itemMetadata = getItemMetadata$1(props, startIndex, instanceProps);
14436
+ var maxOffset = scrollOffset + size2;
14437
+ var offset2 = itemMetadata.offset + itemMetadata.size;
14438
+ var stopIndex = startIndex;
14439
+ while (stopIndex < itemCount - 1 && offset2 < maxOffset) {
14440
+ stopIndex++;
14441
+ offset2 += getItemMetadata$1(props, stopIndex, instanceProps).size;
14442
+ }
14443
+ return stopIndex;
14444
+ },
14445
+ initInstanceProps: function initInstanceProps2(props, instance) {
14446
+ var _ref4 = props, estimatedItemSize = _ref4.estimatedItemSize;
14447
+ var instanceProps = {
14448
+ itemMetadataMap: {},
14449
+ estimatedItemSize: estimatedItemSize || DEFAULT_ESTIMATED_ITEM_SIZE$1,
14450
+ lastMeasuredIndex: -1
14451
+ };
14452
+ instance.resetAfterIndex = function(index, shouldForceUpdate) {
14453
+ if (shouldForceUpdate === void 0) {
14454
+ shouldForceUpdate = true;
14455
+ }
14456
+ instanceProps.lastMeasuredIndex = Math.min(instanceProps.lastMeasuredIndex, index - 1);
14457
+ instance._getItemStyleCache(-1);
14458
+ if (shouldForceUpdate) {
14459
+ instance.forceUpdate();
14460
+ }
14461
+ };
14462
+ return instanceProps;
14463
+ },
14464
+ shouldResetStyleCacheOnItemSizeChange: false,
14465
+ validateProps: function validateProps2(_ref5) {
14466
+ var itemSize = _ref5.itemSize;
14467
+ {
14468
+ if (typeof itemSize !== "function") {
14469
+ throw Error('An invalid "itemSize" prop has been specified. Value should be a function. ' + ('"' + (itemSize === null ? "null" : typeof itemSize) + '" was specified.'));
14470
+ }
14471
+ }
14472
+ }
14473
+ });
14474
+ const VariableSizeList = VariableSizeList$1;
14475
+ const LIST_ROW_HEIGHT = 48;
14476
+ makeStyles()(() => ({
14477
+ searchInput: {
14478
+ lineHeight: "initial",
14479
+ height: "auto !important"
14480
+ }
14481
+ }));
14482
+ const OuterElementContext = React__default.createContext({});
14483
+ const OuterElementType = React__default.forwardRef((props, ref) => {
14484
+ const outerProps = React__default.useContext(OuterElementContext);
14485
+ return jsxRuntimeExports.jsx("div", { ref, ...props, ...outerProps });
14486
+ });
14487
+ function ListRow(props) {
14488
+ const { data, index, style: style2 } = props;
14489
+ const dataSet = data[index];
14490
+ const inlineStyle = {
14491
+ ...style2,
14492
+ top: style2.top + 8
14493
+ };
14494
+ const [props0, option, getItemLabel] = dataSet;
14495
+ const { key, ...optionProps } = props0;
14496
+ return jsxRuntimeExports.jsx(Typography, { component: "li", ...optionProps, noWrap: true, style: inlineStyle, children: getItemLabel(option) }, key);
14497
+ }
14498
+ function useResetCache(itemCount) {
14499
+ const ref = useRef(null);
14500
+ useEffect(() => {
14501
+ if (ref.current != null) {
14502
+ ref.current.resetAfterIndex(0, true);
14503
+ }
14504
+ }, [itemCount]);
14505
+ return ref;
14506
+ }
14507
+ React__default.forwardRef((props, ref) => {
14508
+ const { children: children2, ...other } = props;
14509
+ const items = children2;
14510
+ const itemCount = items.length;
14511
+ const gridRef = useResetCache(itemCount);
14512
+ return jsxRuntimeExports.jsx("div", { ref, children: jsxRuntimeExports.jsx(OuterElementContext.Provider, { value: other, children: jsxRuntimeExports.jsx(VariableSizeList, { height: Math.min(8, itemCount) * LIST_ROW_HEIGHT, itemSize: () => LIST_ROW_HEIGHT, width: "100%", innerElementType: "ul", outerElementType: OuterElementType, overscanCount: 5, ref: gridRef, itemCount, itemData: items, children: ListRow }) }) });
14513
+ });
13499
14514
  function _classCallCheck(a, n) {
13500
14515
  if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
13501
14516
  }
@@ -14933,8 +15948,8 @@ var Collection = /* @__PURE__ */ function(_React$PureComponent) {
14933
15948
  }, {
14934
15949
  key: "render",
14935
15950
  value: function render() {
14936
- var props = _extends$2({}, (_objectDestructuringEmpty(this.props), this.props));
14937
- return /* @__PURE__ */ React.createElement(CollectionView, _extends$2({
15951
+ var props = _extends$3({}, (_objectDestructuringEmpty(this.props), this.props));
15952
+ return /* @__PURE__ */ React.createElement(CollectionView, _extends$3({
14938
15953
  cellLayoutManager: this,
14939
15954
  isScrollingChange: this._isScrollingChange,
14940
15955
  ref: this._setCollectionViewRef
@@ -16052,7 +17067,7 @@ var Grid = /* @__PURE__ */ function(_React$PureComponent) {
16052
17067
  }, {
16053
17068
  key: "componentDidMount",
16054
17069
  value: function componentDidMount() {
16055
- var _this$props4 = this.props, getScrollbarSize = _this$props4.getScrollbarSize, height2 = _this$props4.height, scrollLeft = _this$props4.scrollLeft, scrollToColumn = _this$props4.scrollToColumn, scrollTop = _this$props4.scrollTop, scrollToRow = _this$props4.scrollToRow, width2 = _this$props4.width;
17070
+ var _this$props4 = this.props, getScrollbarSize2 = _this$props4.getScrollbarSize, height2 = _this$props4.height, scrollLeft = _this$props4.scrollLeft, scrollToColumn = _this$props4.scrollToColumn, scrollTop = _this$props4.scrollTop, scrollToRow = _this$props4.scrollToRow, width2 = _this$props4.width;
16056
17071
  var instanceProps = this.state.instanceProps;
16057
17072
  this._initialScrollTop = 0;
16058
17073
  this._initialScrollLeft = 0;
@@ -16062,7 +17077,7 @@ var Grid = /* @__PURE__ */ function(_React$PureComponent) {
16062
17077
  var stateUpdate2 = _objectSpread$4(_objectSpread$4({}, prevState), {}, {
16063
17078
  needToResetStyleCache: false
16064
17079
  });
16065
- stateUpdate2.instanceProps.scrollbarSize = getScrollbarSize();
17080
+ stateUpdate2.instanceProps.scrollbarSize = getScrollbarSize2();
16066
17081
  stateUpdate2.instanceProps.scrollbarSizeMeasured = true;
16067
17082
  return stateUpdate2;
16068
17083
  });
@@ -16227,7 +17242,7 @@ var Grid = /* @__PURE__ */ function(_React$PureComponent) {
16227
17242
  gridStyle.overflowY = totalRowsHeight + horizontalScrollBarSize <= height2 ? "hidden" : "auto";
16228
17243
  var childrenToDisplay = this._childrenToDisplay;
16229
17244
  var showNoContentRenderer = childrenToDisplay.length === 0 && height2 > 0 && width2 > 0;
16230
- return /* @__PURE__ */ React.createElement("div", _extends$2({
17245
+ return /* @__PURE__ */ React.createElement("div", _extends$3({
16231
17246
  ref: this._setScrollingContainerRef
16232
17247
  }, containerProps, {
16233
17248
  "aria-label": this.props["aria-label"],
@@ -17145,7 +18160,7 @@ var List = /* @__PURE__ */ function(_React$PureComponent) {
17145
18160
  value: function render() {
17146
18161
  var _this$props = this.props, className = _this$props.className, noRowsRenderer3 = _this$props.noRowsRenderer, scrollToIndex = _this$props.scrollToIndex, width2 = _this$props.width;
17147
18162
  var classNames = clsx("ReactVirtualized__List", className);
17148
- return /* @__PURE__ */ React.createElement(Grid, _extends$2({}, this.props, {
18163
+ return /* @__PURE__ */ React.createElement(Grid, _extends$3({}, this.props, {
17149
18164
  autoContainerWidth: true,
17150
18165
  cellRenderer: this._cellRenderer,
17151
18166
  className: classNames,
@@ -18640,7 +19655,7 @@ var MultiGrid = /* @__PURE__ */ function(_React$PureComponent) {
18640
19655
  return null;
18641
19656
  }
18642
19657
  var additionalRowCount = showVerticalScrollbar ? 1 : 0, height2 = this._getBottomGridHeight(props), width2 = this._getLeftGridWidth(props), scrollbarSize2 = this.state.showVerticalScrollbar ? this.state.scrollbarSize : 0, gridWidth = hideBottomLeftGridScrollbar ? width2 + scrollbarSize2 : width2;
18643
- var bottomLeftGrid = /* @__PURE__ */ React.createElement(Grid, _extends$2({}, props, {
19658
+ var bottomLeftGrid = /* @__PURE__ */ React.createElement(Grid, _extends$3({}, props, {
18644
19659
  cellRenderer: this._cellRendererBottomLeftGrid,
18645
19660
  className: this.props.classNameBottomLeftGrid,
18646
19661
  columnCount: fixedColumnCount,
@@ -18670,7 +19685,7 @@ var MultiGrid = /* @__PURE__ */ function(_React$PureComponent) {
18670
19685
  key: "_renderBottomRightGrid",
18671
19686
  value: function _renderBottomRightGrid(props) {
18672
19687
  var columnCount = props.columnCount, fixedColumnCount = props.fixedColumnCount, fixedRowCount = props.fixedRowCount, rowCount = props.rowCount, scrollToColumn = props.scrollToColumn, scrollToRow = props.scrollToRow;
18673
- return /* @__PURE__ */ React.createElement(Grid, _extends$2({}, props, {
19688
+ return /* @__PURE__ */ React.createElement(Grid, _extends$3({}, props, {
18674
19689
  cellRenderer: this._cellRendererBottomRightGrid,
18675
19690
  className: this.props.classNameBottomRightGrid,
18676
19691
  columnCount: Math.max(0, columnCount - fixedColumnCount),
@@ -18695,7 +19710,7 @@ var MultiGrid = /* @__PURE__ */ function(_React$PureComponent) {
18695
19710
  if (!fixedColumnCount || !fixedRowCount) {
18696
19711
  return null;
18697
19712
  }
18698
- return /* @__PURE__ */ React.createElement(Grid, _extends$2({}, props, {
19713
+ return /* @__PURE__ */ React.createElement(Grid, _extends$3({}, props, {
18699
19714
  className: this.props.classNameTopLeftGrid,
18700
19715
  columnCount: fixedColumnCount,
18701
19716
  height: this._getTopGridHeight(props),
@@ -18722,7 +19737,7 @@ var MultiGrid = /* @__PURE__ */ function(_React$PureComponent) {
18722
19737
  left: 0
18723
19738
  });
18724
19739
  }
18725
- var topRightGrid = /* @__PURE__ */ React.createElement(Grid, _extends$2({}, props, {
19740
+ var topRightGrid = /* @__PURE__ */ React.createElement(Grid, _extends$3({}, props, {
18726
19741
  cellRenderer: this._cellRendererTopRightGrid,
18727
19742
  className: this.props.classNameTopRightGrid,
18728
19743
  columnCount: Math.max(0, columnCount - fixedColumnCount) + additionalColumnCount,
@@ -18997,7 +20012,7 @@ function defaultRowRenderer(_ref) {
18997
20012
  };
18998
20013
  }
18999
20014
  }
19000
- return /* @__PURE__ */ React.createElement("div", _extends$2({}, a11yProps, {
20015
+ return /* @__PURE__ */ React.createElement("div", _extends$3({}, a11yProps, {
19001
20016
  className,
19002
20017
  key,
19003
20018
  role: "row",
@@ -19280,7 +20295,7 @@ var Table = /* @__PURE__ */ function(_React$PureComponent) {
19280
20295
  paddingRight: scrollbarWidth,
19281
20296
  width: width2
19282
20297
  }, rowStyleObject)
19283
- }), /* @__PURE__ */ React.createElement(Grid, _extends$2({}, this.props, {
20298
+ }), /* @__PURE__ */ React.createElement(Grid, _extends$3({}, this.props, {
19284
20299
  elementRef: this._setGridElementRef,
19285
20300
  "aria-readonly": null,
19286
20301
  autoContainerWidth: true,