@vitessce/tooltip 2.0.3 → 3.0.1

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.
@@ -2,6 +2,9 @@ import * as React from "react";
2
2
  import React__default, { useRef, useState, useEffect } from "react";
3
3
  import { useVitessceContainer } from "@vitessce/vit-s";
4
4
  import * as ReactDOM from "react-dom";
5
+ function getDefaultExportFromCjs(x) {
6
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
7
+ }
5
8
  var jsxRuntime = { exports: {} };
6
9
  var reactJsxRuntime_development = {};
7
10
  /**
@@ -84,7 +87,11 @@ var reactJsxRuntime_development = {};
84
87
  return true;
85
88
  }
86
89
  if (typeof type === "object" && type !== null) {
87
- if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== void 0) {
90
+ if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object
91
+ // types supported by any Flight configuration anywhere since
92
+ // we don't know which Flight build this will end up being used
93
+ // with.
94
+ type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== void 0) {
88
95
  return true;
89
96
  }
90
97
  }
@@ -564,11 +571,14 @@ var reactJsxRuntime_development = {};
564
571
  }
565
572
  var ReactElement = function(type, key, ref, self2, source, owner, props) {
566
573
  var element = {
574
+ // This tag allows us to uniquely identify this as a React Element
567
575
  $$typeof: REACT_ELEMENT_TYPE,
576
+ // Built-in properties that belong on the element
568
577
  type,
569
578
  key,
570
579
  ref,
571
580
  props,
581
+ // Record the component responsible for creating this element.
572
582
  _owner: owner
573
583
  };
574
584
  {
@@ -762,7 +772,9 @@ var reactJsxRuntime_development = {};
762
772
  var propTypes2;
763
773
  if (typeof type === "function") {
764
774
  propTypes2 = type.propTypes;
765
- } else if (typeof type === "object" && (type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_MEMO_TYPE)) {
775
+ } else if (typeof type === "object" && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
776
+ // Inner props are checked in the reconciler.
777
+ type.$$typeof === REACT_MEMO_TYPE)) {
766
778
  propTypes2 = type.propTypes;
767
779
  } else {
768
780
  return;
@@ -867,28 +879,148 @@ var reactJsxRuntime_development = {};
867
879
  return jsxWithValidation(type, props, key, false);
868
880
  }
869
881
  }
870
- var jsx2 = jsxWithValidationDynamic;
871
- var jsxs2 = jsxWithValidationStatic;
882
+ var jsx = jsxWithValidationDynamic;
883
+ var jsxs = jsxWithValidationStatic;
872
884
  reactJsxRuntime_development.Fragment = REACT_FRAGMENT_TYPE;
873
- reactJsxRuntime_development.jsx = jsx2;
874
- reactJsxRuntime_development.jsxs = jsxs2;
885
+ reactJsxRuntime_development.jsx = jsx;
886
+ reactJsxRuntime_development.jsxs = jsxs;
875
887
  })();
876
888
  }
877
- (function(module) {
878
- {
879
- module.exports = reactJsxRuntime_development;
880
- }
881
- })(jsxRuntime);
882
- const Fragment = jsxRuntime.exports.Fragment;
883
- const jsx = jsxRuntime.exports.jsx;
884
- const jsxs = jsxRuntime.exports.jsxs;
889
+ {
890
+ jsxRuntime.exports = reactJsxRuntime_development;
891
+ }
892
+ var jsxRuntimeExports = jsxRuntime.exports;
893
+ var common = {
894
+ black: "#000",
895
+ white: "#fff"
896
+ };
897
+ const common$1 = common;
898
+ var red = {
899
+ 50: "#ffebee",
900
+ 100: "#ffcdd2",
901
+ 200: "#ef9a9a",
902
+ 300: "#e57373",
903
+ 400: "#ef5350",
904
+ 500: "#f44336",
905
+ 600: "#e53935",
906
+ 700: "#d32f2f",
907
+ 800: "#c62828",
908
+ 900: "#b71c1c",
909
+ A100: "#ff8a80",
910
+ A200: "#ff5252",
911
+ A400: "#ff1744",
912
+ A700: "#d50000"
913
+ };
914
+ const red$1 = red;
915
+ var pink = {
916
+ 50: "#fce4ec",
917
+ 100: "#f8bbd0",
918
+ 200: "#f48fb1",
919
+ 300: "#f06292",
920
+ 400: "#ec407a",
921
+ 500: "#e91e63",
922
+ 600: "#d81b60",
923
+ 700: "#c2185b",
924
+ 800: "#ad1457",
925
+ 900: "#880e4f",
926
+ A100: "#ff80ab",
927
+ A200: "#ff4081",
928
+ A400: "#f50057",
929
+ A700: "#c51162"
930
+ };
931
+ const pink$1 = pink;
932
+ var indigo = {
933
+ 50: "#e8eaf6",
934
+ 100: "#c5cae9",
935
+ 200: "#9fa8da",
936
+ 300: "#7986cb",
937
+ 400: "#5c6bc0",
938
+ 500: "#3f51b5",
939
+ 600: "#3949ab",
940
+ 700: "#303f9f",
941
+ 800: "#283593",
942
+ 900: "#1a237e",
943
+ A100: "#8c9eff",
944
+ A200: "#536dfe",
945
+ A400: "#3d5afe",
946
+ A700: "#304ffe"
947
+ };
948
+ const indigo$1 = indigo;
949
+ var blue = {
950
+ 50: "#e3f2fd",
951
+ 100: "#bbdefb",
952
+ 200: "#90caf9",
953
+ 300: "#64b5f6",
954
+ 400: "#42a5f5",
955
+ 500: "#2196f3",
956
+ 600: "#1e88e5",
957
+ 700: "#1976d2",
958
+ 800: "#1565c0",
959
+ 900: "#0d47a1",
960
+ A100: "#82b1ff",
961
+ A200: "#448aff",
962
+ A400: "#2979ff",
963
+ A700: "#2962ff"
964
+ };
965
+ const blue$1 = blue;
966
+ var green = {
967
+ 50: "#e8f5e9",
968
+ 100: "#c8e6c9",
969
+ 200: "#a5d6a7",
970
+ 300: "#81c784",
971
+ 400: "#66bb6a",
972
+ 500: "#4caf50",
973
+ 600: "#43a047",
974
+ 700: "#388e3c",
975
+ 800: "#2e7d32",
976
+ 900: "#1b5e20",
977
+ A100: "#b9f6ca",
978
+ A200: "#69f0ae",
979
+ A400: "#00e676",
980
+ A700: "#00c853"
981
+ };
982
+ const green$1 = green;
983
+ var orange = {
984
+ 50: "#fff3e0",
985
+ 100: "#ffe0b2",
986
+ 200: "#ffcc80",
987
+ 300: "#ffb74d",
988
+ 400: "#ffa726",
989
+ 500: "#ff9800",
990
+ 600: "#fb8c00",
991
+ 700: "#f57c00",
992
+ 800: "#ef6c00",
993
+ 900: "#e65100",
994
+ A100: "#ffd180",
995
+ A200: "#ffab40",
996
+ A400: "#ff9100",
997
+ A700: "#ff6d00"
998
+ };
999
+ const orange$1 = orange;
1000
+ var grey = {
1001
+ 50: "#fafafa",
1002
+ 100: "#f5f5f5",
1003
+ 200: "#eeeeee",
1004
+ 300: "#e0e0e0",
1005
+ 400: "#bdbdbd",
1006
+ 500: "#9e9e9e",
1007
+ 600: "#757575",
1008
+ 700: "#616161",
1009
+ 800: "#424242",
1010
+ 900: "#212121",
1011
+ A100: "#d5d5d5",
1012
+ A200: "#aaaaaa",
1013
+ A400: "#303030",
1014
+ A700: "#616161"
1015
+ };
1016
+ const grey$1 = grey;
885
1017
  function chainPropTypes(propType1, propType2) {
886
1018
  return function validate() {
887
1019
  return propType1.apply(void 0, arguments) || propType2.apply(void 0, arguments);
888
1020
  };
889
1021
  }
890
- function _extends$1() {
891
- _extends$1 = Object.assign ? Object.assign.bind() : function(target) {
1022
+ function _extends$2() {
1023
+ _extends$2 = Object.assign ? Object.assign.bind() : function(target) {
892
1024
  for (var i = 1; i < arguments.length; i++) {
893
1025
  var source = arguments[i];
894
1026
  for (var key in source) {
@@ -899,24 +1031,24 @@ function _extends$1() {
899
1031
  }
900
1032
  return target;
901
1033
  };
902
- return _extends$1.apply(this, arguments);
1034
+ return _extends$2.apply(this, arguments);
903
1035
  }
904
- function _typeof$1(obj) {
1036
+ function _typeof$2(obj) {
905
1037
  "@babel/helpers - typeof";
906
- return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj2) {
1038
+ return _typeof$2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj2) {
907
1039
  return typeof obj2;
908
1040
  } : function(obj2) {
909
1041
  return obj2 && "function" == typeof Symbol && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
910
- }, _typeof$1(obj);
1042
+ }, _typeof$2(obj);
911
1043
  }
912
1044
  function isPlainObject(item) {
913
- return item && _typeof$1(item) === "object" && item.constructor === Object;
1045
+ return item && _typeof$2(item) === "object" && item.constructor === Object;
914
1046
  }
915
1047
  function deepmerge(target, source) {
916
1048
  var options = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
917
1049
  clone: true
918
1050
  };
919
- var output = options.clone ? _extends$1({}, target) : target;
1051
+ var output = options.clone ? _extends$2({}, target) : target;
920
1052
  if (isPlainObject(target) && isPlainObject(source)) {
921
1053
  Object.keys(source).forEach(function(key) {
922
1054
  if (key === "__proto__") {
@@ -964,7 +1096,8 @@ var reactIs_development$1 = {};
964
1096
  var REACT_RESPONDER_TYPE = hasSymbol2 ? Symbol.for("react.responder") : 60118;
965
1097
  var REACT_SCOPE_TYPE = hasSymbol2 ? Symbol.for("react.scope") : 60119;
966
1098
  function isValidElementType(type) {
967
- return typeof type === "string" || typeof type === "function" || type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === "object" && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
1099
+ return typeof type === "string" || typeof type === "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
1100
+ type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === "object" && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
968
1101
  }
969
1102
  function typeOf(object) {
970
1103
  if (typeof object === "object" && object !== null) {
@@ -1005,7 +1138,7 @@ var reactIs_development$1 = {};
1005
1138
  var ContextProvider = REACT_PROVIDER_TYPE;
1006
1139
  var Element = REACT_ELEMENT_TYPE;
1007
1140
  var ForwardRef = REACT_FORWARD_REF_TYPE;
1008
- var Fragment2 = REACT_FRAGMENT_TYPE;
1141
+ var Fragment = REACT_FRAGMENT_TYPE;
1009
1142
  var Lazy = REACT_LAZY_TYPE;
1010
1143
  var Memo = REACT_MEMO_TYPE;
1011
1144
  var Portal3 = REACT_PORTAL_TYPE;
@@ -1064,7 +1197,7 @@ var reactIs_development$1 = {};
1064
1197
  reactIs_development$1.ContextProvider = ContextProvider;
1065
1198
  reactIs_development$1.Element = Element;
1066
1199
  reactIs_development$1.ForwardRef = ForwardRef;
1067
- reactIs_development$1.Fragment = Fragment2;
1200
+ reactIs_development$1.Fragment = Fragment;
1068
1201
  reactIs_development$1.Lazy = Lazy;
1069
1202
  reactIs_development$1.Memo = Memo;
1070
1203
  reactIs_development$1.Portal = Portal3;
@@ -1088,11 +1221,10 @@ var reactIs_development$1 = {};
1088
1221
  reactIs_development$1.typeOf = typeOf;
1089
1222
  })();
1090
1223
  }
1091
- (function(module) {
1092
- {
1093
- module.exports = reactIs_development$1;
1094
- }
1095
- })(reactIs$2);
1224
+ {
1225
+ reactIs$2.exports = reactIs_development$1;
1226
+ }
1227
+ var reactIsExports$1 = reactIs$2.exports;
1096
1228
  /*
1097
1229
  object-assign
1098
1230
  (c) Sindre Sorhus
@@ -1220,7 +1352,7 @@ checkPropTypes$1.resetWarningCache = function() {
1220
1352
  }
1221
1353
  };
1222
1354
  var checkPropTypes_1 = checkPropTypes$1;
1223
- var ReactIs$1 = reactIs$2.exports;
1355
+ var ReactIs$1 = reactIsExports$1;
1224
1356
  var assign = objectAssign;
1225
1357
  var ReactPropTypesSecret = ReactPropTypesSecret_1;
1226
1358
  var has = has$2;
@@ -1303,7 +1435,8 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
1303
1435
  throw err;
1304
1436
  } else if (typeof console !== "undefined") {
1305
1437
  var cacheKey = componentName + ":" + propName;
1306
- if (!manualPropTypeCallCache[cacheKey] && manualPropTypeWarningCount < 3) {
1438
+ if (!manualPropTypeCallCache[cacheKey] && // Avoid spamming the console because they are often not actionable except for lib authors
1439
+ manualPropTypeWarningCount < 3) {
1307
1440
  printWarning(
1308
1441
  "You are manually calling a React.PropTypes validation function for the `" + propFullName + "` prop on `" + componentName + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
1309
1442
  );
@@ -1656,10 +1789,12 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
1656
1789
  return ReactPropTypes;
1657
1790
  };
1658
1791
  {
1659
- var ReactIs = reactIs$2.exports;
1792
+ var ReactIs = reactIsExports$1;
1660
1793
  var throwOnDirectAccess = true;
1661
1794
  propTypes.exports = factoryWithTypeCheckers(ReactIs.isElement, throwOnDirectAccess);
1662
1795
  }
1796
+ var propTypesExports = propTypes.exports;
1797
+ const PropTypes = /* @__PURE__ */ getDefaultExportFromCjs(propTypesExports);
1663
1798
  function _defineProperty(obj, key, value) {
1664
1799
  if (key in obj) {
1665
1800
  Object.defineProperty(obj, key, {
@@ -1673,9 +1808,9 @@ function _defineProperty(obj, key, value) {
1673
1808
  }
1674
1809
  return obj;
1675
1810
  }
1676
- var specialProperty = "exact-prop: \u200B";
1811
+ var specialProperty = "exact-prop: ​";
1677
1812
  function exactProp(propTypes2) {
1678
- return _extends$1({}, propTypes2, _defineProperty({}, specialProperty, function(props) {
1813
+ return _extends$2({}, propTypes2, _defineProperty({}, specialProperty, function(props) {
1679
1814
  var unsupportedProps = Object.keys(props).filter(function(prop) {
1680
1815
  return !propTypes2.hasOwnProperty(prop);
1681
1816
  });
@@ -1790,7 +1925,7 @@ var reactIs_development = {};
1790
1925
  var ContextProvider = REACT_PROVIDER_TYPE;
1791
1926
  var Element = REACT_ELEMENT_TYPE;
1792
1927
  var ForwardRef = REACT_FORWARD_REF_TYPE;
1793
- var Fragment2 = REACT_FRAGMENT_TYPE;
1928
+ var Fragment = REACT_FRAGMENT_TYPE;
1794
1929
  var Lazy = REACT_LAZY_TYPE;
1795
1930
  var Memo = REACT_MEMO_TYPE;
1796
1931
  var Portal3 = REACT_PORTAL_TYPE;
@@ -1854,7 +1989,7 @@ var reactIs_development = {};
1854
1989
  reactIs_development.ContextProvider = ContextProvider;
1855
1990
  reactIs_development.Element = Element;
1856
1991
  reactIs_development.ForwardRef = ForwardRef;
1857
- reactIs_development.Fragment = Fragment2;
1992
+ reactIs_development.Fragment = Fragment;
1858
1993
  reactIs_development.Lazy = Lazy;
1859
1994
  reactIs_development.Memo = Memo;
1860
1995
  reactIs_development.Portal = Portal3;
@@ -1878,11 +2013,10 @@ var reactIs_development = {};
1878
2013
  reactIs_development.typeOf = typeOf;
1879
2014
  })();
1880
2015
  }
1881
- (function(module) {
1882
- {
1883
- module.exports = reactIs_development;
1884
- }
1885
- })(reactIs$1);
2016
+ {
2017
+ reactIs$1.exports = reactIs_development;
2018
+ }
2019
+ var reactIsExports = reactIs$1.exports;
1886
2020
  var fnNameMatchRegex = /^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;
1887
2021
  function getFunctionName(fn) {
1888
2022
  var match = "".concat(fn).match(fnNameMatchRegex);
@@ -1907,11 +2041,11 @@ function getDisplayName(Component) {
1907
2041
  if (typeof Component === "function") {
1908
2042
  return getFunctionComponentName(Component, "Component");
1909
2043
  }
1910
- if (_typeof$1(Component) === "object") {
2044
+ if (_typeof$2(Component) === "object") {
1911
2045
  switch (Component.$$typeof) {
1912
- case reactIs$1.exports.ForwardRef:
2046
+ case reactIsExports.ForwardRef:
1913
2047
  return getWrappedName(Component, Component.render, "ForwardRef");
1914
- case reactIs$1.exports.Memo:
2048
+ case reactIsExports.Memo:
1915
2049
  return getWrappedName(Component, Component.type, "memo");
1916
2050
  default:
1917
2051
  return void 0;
@@ -1930,7 +2064,7 @@ function HTMLElementType(props, propName, componentName, location, propFullName)
1930
2064
  }
1931
2065
  return null;
1932
2066
  }
1933
- var refType = propTypes.exports.oneOfType([propTypes.exports.func, propTypes.exports.object]);
2067
+ var refType = PropTypes.oneOfType([PropTypes.func, PropTypes.object]);
1934
2068
  const refType$1 = refType;
1935
2069
  function clamp(value) {
1936
2070
  var min = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
@@ -2049,7 +2183,7 @@ function lighten(color, coefficient) {
2049
2183
  }
2050
2184
  return recomposeColor(color);
2051
2185
  }
2052
- function _objectWithoutPropertiesLoose(source, excluded) {
2186
+ function _objectWithoutPropertiesLoose$1(source, excluded) {
2053
2187
  if (source == null)
2054
2188
  return {};
2055
2189
  var target = {};
@@ -2066,7 +2200,7 @@ function _objectWithoutPropertiesLoose(source, excluded) {
2066
2200
  function _objectWithoutProperties(source, excluded) {
2067
2201
  if (source == null)
2068
2202
  return {};
2069
- var target = _objectWithoutPropertiesLoose(source, excluded);
2203
+ var target = _objectWithoutPropertiesLoose$1(source, excluded);
2070
2204
  var key, i;
2071
2205
  if (Object.getOwnPropertySymbols) {
2072
2206
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -2123,7 +2257,7 @@ function createBreakpoints(breakpoints) {
2123
2257
  }
2124
2258
  return values[key];
2125
2259
  }
2126
- return _extends$1({
2260
+ return _extends$2({
2127
2261
  keys,
2128
2262
  values,
2129
2263
  up,
@@ -2135,14 +2269,14 @@ function createBreakpoints(breakpoints) {
2135
2269
  }
2136
2270
  function createMixins(breakpoints, spacing, mixins) {
2137
2271
  var _toolbar;
2138
- return _extends$1({
2272
+ return _extends$2({
2139
2273
  gutters: function gutters() {
2140
2274
  var styles3 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
2141
2275
  console.warn(["Material-UI: theme.mixins.gutters() is deprecated.", "You can use the source of the mixin directly:", "\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3),\n },\n "].join("\n"));
2142
- return _extends$1({
2276
+ return _extends$2({
2143
2277
  paddingLeft: spacing(2),
2144
2278
  paddingRight: spacing(2)
2145
- }, styles3, _defineProperty({}, breakpoints.up("sm"), _extends$1({
2279
+ }, styles3, _defineProperty({}, breakpoints.up("sm"), _extends$2({
2146
2280
  paddingLeft: spacing(3),
2147
2281
  paddingRight: spacing(3)
2148
2282
  }, styles3[breakpoints.up("sm")])));
@@ -2156,149 +2290,39 @@ function createMixins(breakpoints, spacing, mixins) {
2156
2290
  }), _toolbar)
2157
2291
  }, mixins);
2158
2292
  }
2159
- var common = {
2160
- black: "#000",
2161
- white: "#fff"
2162
- };
2163
- const common$1 = common;
2164
- var grey = {
2165
- 50: "#fafafa",
2166
- 100: "#f5f5f5",
2167
- 200: "#eeeeee",
2168
- 300: "#e0e0e0",
2169
- 400: "#bdbdbd",
2170
- 500: "#9e9e9e",
2171
- 600: "#757575",
2172
- 700: "#616161",
2173
- 800: "#424242",
2174
- 900: "#212121",
2175
- A100: "#d5d5d5",
2176
- A200: "#aaaaaa",
2177
- A400: "#303030",
2178
- A700: "#616161"
2179
- };
2180
- const grey$1 = grey;
2181
- var indigo = {
2182
- 50: "#e8eaf6",
2183
- 100: "#c5cae9",
2184
- 200: "#9fa8da",
2185
- 300: "#7986cb",
2186
- 400: "#5c6bc0",
2187
- 500: "#3f51b5",
2188
- 600: "#3949ab",
2189
- 700: "#303f9f",
2190
- 800: "#283593",
2191
- 900: "#1a237e",
2192
- A100: "#8c9eff",
2193
- A200: "#536dfe",
2194
- A400: "#3d5afe",
2195
- A700: "#304ffe"
2196
- };
2197
- const indigo$1 = indigo;
2198
- var pink = {
2199
- 50: "#fce4ec",
2200
- 100: "#f8bbd0",
2201
- 200: "#f48fb1",
2202
- 300: "#f06292",
2203
- 400: "#ec407a",
2204
- 500: "#e91e63",
2205
- 600: "#d81b60",
2206
- 700: "#c2185b",
2207
- 800: "#ad1457",
2208
- 900: "#880e4f",
2209
- A100: "#ff80ab",
2210
- A200: "#ff4081",
2211
- A400: "#f50057",
2212
- A700: "#c51162"
2213
- };
2214
- const pink$1 = pink;
2215
- var red = {
2216
- 50: "#ffebee",
2217
- 100: "#ffcdd2",
2218
- 200: "#ef9a9a",
2219
- 300: "#e57373",
2220
- 400: "#ef5350",
2221
- 500: "#f44336",
2222
- 600: "#e53935",
2223
- 700: "#d32f2f",
2224
- 800: "#c62828",
2225
- 900: "#b71c1c",
2226
- A100: "#ff8a80",
2227
- A200: "#ff5252",
2228
- A400: "#ff1744",
2229
- A700: "#d50000"
2230
- };
2231
- const red$1 = red;
2232
- var orange = {
2233
- 50: "#fff3e0",
2234
- 100: "#ffe0b2",
2235
- 200: "#ffcc80",
2236
- 300: "#ffb74d",
2237
- 400: "#ffa726",
2238
- 500: "#ff9800",
2239
- 600: "#fb8c00",
2240
- 700: "#f57c00",
2241
- 800: "#ef6c00",
2242
- 900: "#e65100",
2243
- A100: "#ffd180",
2244
- A200: "#ffab40",
2245
- A400: "#ff9100",
2246
- A700: "#ff6d00"
2247
- };
2248
- const orange$1 = orange;
2249
- var blue = {
2250
- 50: "#e3f2fd",
2251
- 100: "#bbdefb",
2252
- 200: "#90caf9",
2253
- 300: "#64b5f6",
2254
- 400: "#42a5f5",
2255
- 500: "#2196f3",
2256
- 600: "#1e88e5",
2257
- 700: "#1976d2",
2258
- 800: "#1565c0",
2259
- 900: "#0d47a1",
2260
- A100: "#82b1ff",
2261
- A200: "#448aff",
2262
- A400: "#2979ff",
2263
- A700: "#2962ff"
2264
- };
2265
- const blue$1 = blue;
2266
- var green = {
2267
- 50: "#e8f5e9",
2268
- 100: "#c8e6c9",
2269
- 200: "#a5d6a7",
2270
- 300: "#81c784",
2271
- 400: "#66bb6a",
2272
- 500: "#4caf50",
2273
- 600: "#43a047",
2274
- 700: "#388e3c",
2275
- 800: "#2e7d32",
2276
- 900: "#1b5e20",
2277
- A100: "#b9f6ca",
2278
- A200: "#69f0ae",
2279
- A400: "#00e676",
2280
- A700: "#00c853"
2281
- };
2282
- const green$1 = green;
2283
2293
  var light = {
2294
+ // The colors used to style the text.
2284
2295
  text: {
2296
+ // The most important text.
2285
2297
  primary: "rgba(0, 0, 0, 0.87)",
2298
+ // Secondary text.
2286
2299
  secondary: "rgba(0, 0, 0, 0.54)",
2300
+ // Disabled text have even lower visual prominence.
2287
2301
  disabled: "rgba(0, 0, 0, 0.38)",
2302
+ // Text hints.
2288
2303
  hint: "rgba(0, 0, 0, 0.38)"
2289
2304
  },
2305
+ // The color used to divide different elements.
2290
2306
  divider: "rgba(0, 0, 0, 0.12)",
2307
+ // The background colors used to style the surfaces.
2308
+ // Consistency between these values is important.
2291
2309
  background: {
2292
2310
  paper: common$1.white,
2293
2311
  default: grey$1[50]
2294
2312
  },
2313
+ // The colors used to style the action elements.
2295
2314
  action: {
2315
+ // The color of an active action like an icon button.
2296
2316
  active: "rgba(0, 0, 0, 0.54)",
2317
+ // The color of an hovered action.
2297
2318
  hover: "rgba(0, 0, 0, 0.04)",
2298
2319
  hoverOpacity: 0.04,
2320
+ // The color of a selected action.
2299
2321
  selected: "rgba(0, 0, 0, 0.08)",
2300
2322
  selectedOpacity: 0.08,
2323
+ // The color of a disabled action.
2301
2324
  disabled: "rgba(0, 0, 0, 0.26)",
2325
+ // The background color of a disabled action.
2302
2326
  disabledBackground: "rgba(0, 0, 0, 0.12)",
2303
2327
  disabledOpacity: 0.38,
2304
2328
  focus: "rgba(0, 0, 0, 0.12)",
@@ -2386,7 +2410,7 @@ function createPalette(palette) {
2386
2410
  var mainShade = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 500;
2387
2411
  var lightShade = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 300;
2388
2412
  var darkShade = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 700;
2389
- color = _extends$1({}, color);
2413
+ color = _extends$2({}, color);
2390
2414
  if (!color.main && color[mainShade]) {
2391
2415
  color.main = color[mainShade];
2392
2416
  }
@@ -2394,7 +2418,7 @@ function createPalette(palette) {
2394
2418
  throw new Error("Material-UI: The color provided to augmentColor(color) is invalid.\nThe color object needs to have a `main` property or a `".concat(mainShade, "` property."));
2395
2419
  }
2396
2420
  if (typeof color.main !== "string") {
2397
- throw new Error("Material-UI: The color provided to augmentColor(color) is invalid.\n`color.main` should be a string, but `".concat(JSON.stringify(color.main), '` was provided instead.\n\nDid you intend to use one of the following approaches?\n\nimport {\xA0green } from "@material-ui/core/colors";\n\nconst theme1 = createTheme({ palette: {\n primary: green,\n} });\n\nconst theme2 = createTheme({ palette: {\n primary: { main: green[500] },\n} });'));
2421
+ throw new Error("Material-UI: The color provided to augmentColor(color) is invalid.\n`color.main` should be a string, but `".concat(JSON.stringify(color.main), '` was provided instead.\n\nDid you intend to use one of the following approaches?\n\nimport { green } from "@material-ui/core/colors";\n\nconst theme1 = createTheme({ palette: {\n primary: green,\n} });\n\nconst theme2 = createTheme({ palette: {\n primary: { main: green[500] },\n} });'));
2398
2422
  }
2399
2423
  addLightOrDark(color, "light", lightShade, tonalOffset);
2400
2424
  addLightOrDark(color, "dark", darkShade, tonalOffset);
@@ -2412,19 +2436,35 @@ function createPalette(palette) {
2412
2436
  console.error("Material-UI: The palette type `".concat(type, "` is not supported."));
2413
2437
  }
2414
2438
  }
2415
- var paletteOutput = deepmerge(_extends$1({
2439
+ var paletteOutput = deepmerge(_extends$2({
2440
+ // A collection of common colors.
2416
2441
  common: common$1,
2442
+ // The palette type, can be light or dark.
2417
2443
  type,
2444
+ // The colors used to represent primary interface elements for a user.
2418
2445
  primary: augmentColor(primary),
2446
+ // The colors used to represent secondary interface elements for a user.
2419
2447
  secondary: augmentColor(secondary, "A400", "A200", "A700"),
2448
+ // The colors used to represent interface elements that the user should be made aware of.
2420
2449
  error: augmentColor(error),
2450
+ // The colors used to represent potentially dangerous actions or important messages.
2421
2451
  warning: augmentColor(warning2),
2452
+ // The colors used to present information to the user that is neutral and not necessarily important.
2422
2453
  info: augmentColor(info),
2454
+ // The colors used to indicate the successful completion of an action that user triggered.
2423
2455
  success: augmentColor(success),
2456
+ // The grey colors.
2424
2457
  grey: grey$1,
2458
+ // Used by `getContrastText()` to maximize the contrast between
2459
+ // the background and the text.
2425
2460
  contrastThreshold,
2461
+ // Takes a background color and returns the text color that maximizes the contrast.
2426
2462
  getContrastText,
2463
+ // Generate a rich color object.
2427
2464
  augmentColor,
2465
+ // Used by the functions below to shift a color's luminance by approximately
2466
+ // two indexes within its tonal palette.
2467
+ // E.g., shift from Red 500 to Red 300 or Red 700.
2428
2468
  tonalOffset
2429
2469
  }, types[type]), other);
2430
2470
  return paletteOutput;
@@ -2461,10 +2501,11 @@ function createTypography(palette, typography) {
2461
2501
  return "".concat(size / htmlFontSize * coef, "rem");
2462
2502
  };
2463
2503
  var buildVariant = function buildVariant2(fontWeight, size, lineHeight, letterSpacing, casing) {
2464
- return _extends$1({
2504
+ return _extends$2({
2465
2505
  fontFamily,
2466
2506
  fontWeight,
2467
2507
  fontSize: pxToRem(size),
2508
+ // Unitless following https://meyerweb.com/eric/thoughts/2006/02/08/unitless-line-heights/
2468
2509
  lineHeight
2469
2510
  }, fontFamily === defaultFontFamily ? {
2470
2511
  letterSpacing: "".concat(round(letterSpacing / size), "em")
@@ -2485,10 +2526,11 @@ function createTypography(palette, typography) {
2485
2526
  caption: buildVariant(fontWeightRegular, 12, 1.66, 0.4),
2486
2527
  overline: buildVariant(fontWeightRegular, 12, 2.66, 1, caseAllCaps)
2487
2528
  };
2488
- return deepmerge(_extends$1({
2529
+ return deepmerge(_extends$2({
2489
2530
  htmlFontSize,
2490
2531
  pxToRem,
2491
2532
  round: roundWithDeprecationWarning,
2533
+ // TODO v5: remove
2492
2534
  fontFamily,
2493
2535
  fontSize,
2494
2536
  fontWeightLight,
@@ -2497,6 +2539,7 @@ function createTypography(palette, typography) {
2497
2539
  fontWeightBold
2498
2540
  }, variants), other, {
2499
2541
  clone: false
2542
+ // No need to clone deep
2500
2543
  });
2501
2544
  }
2502
2545
  var shadowKeyUmbraOpacity = 0.2;
@@ -2511,43 +2554,8 @@ var shape = {
2511
2554
  borderRadius: 4
2512
2555
  };
2513
2556
  const shape$1 = shape;
2514
- var responsivePropType = propTypes.exports.oneOfType([propTypes.exports.number, propTypes.exports.string, propTypes.exports.object, propTypes.exports.array]);
2557
+ var responsivePropType = PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.object, PropTypes.array]);
2515
2558
  const responsivePropType$1 = responsivePropType;
2516
- function _arrayLikeToArray(arr, len) {
2517
- if (len == null || len > arr.length)
2518
- len = arr.length;
2519
- for (var i = 0, arr2 = new Array(len); i < len; i++) {
2520
- arr2[i] = arr[i];
2521
- }
2522
- return arr2;
2523
- }
2524
- function _arrayWithoutHoles(arr) {
2525
- if (Array.isArray(arr))
2526
- return _arrayLikeToArray(arr);
2527
- }
2528
- function _iterableToArray(iter) {
2529
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
2530
- return Array.from(iter);
2531
- }
2532
- function _unsupportedIterableToArray(o, minLen) {
2533
- if (!o)
2534
- return;
2535
- if (typeof o === "string")
2536
- return _arrayLikeToArray(o, minLen);
2537
- var n = Object.prototype.toString.call(o).slice(8, -1);
2538
- if (n === "Object" && o.constructor)
2539
- n = o.constructor.name;
2540
- if (n === "Map" || n === "Set")
2541
- return Array.from(o);
2542
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
2543
- return _arrayLikeToArray(o, minLen);
2544
- }
2545
- function _nonIterableSpread() {
2546
- throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
2547
- }
2548
- function _toConsumableArray(arr) {
2549
- return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
2550
- }
2551
2559
  var spacingKeys = ["m", "mt", "mr", "mb", "ml", "mx", "my", "p", "pt", "pr", "pb", "pl", "px", "py", "margin", "marginTop", "marginRight", "marginBottom", "marginLeft", "marginX", "marginY", "padding", "paddingTop", "paddingRight", "paddingBottom", "paddingLeft", "paddingX", "paddingY"];
2552
2560
  function createUnarySpacing(theme) {
2553
2561
  var themeSpacing = theme.spacing || 8;
@@ -2632,18 +2640,27 @@ function createSpacing() {
2632
2640
  return spacing;
2633
2641
  }
2634
2642
  var easing = {
2643
+ // This is the most common easing curve.
2635
2644
  easeInOut: "cubic-bezier(0.4, 0, 0.2, 1)",
2645
+ // Objects enter the screen at full velocity from off-screen and
2646
+ // slowly decelerate to a resting point.
2636
2647
  easeOut: "cubic-bezier(0.0, 0, 0.2, 1)",
2648
+ // Objects leave the screen at full velocity. They do not decelerate when off-screen.
2637
2649
  easeIn: "cubic-bezier(0.4, 0, 1, 1)",
2650
+ // The sharp curve is used by objects that may return to the screen at any time.
2638
2651
  sharp: "cubic-bezier(0.4, 0, 0.6, 1)"
2639
2652
  };
2640
2653
  var duration = {
2641
2654
  shortest: 150,
2642
2655
  shorter: 200,
2643
2656
  short: 250,
2657
+ // most basic recommended timing
2644
2658
  standard: 300,
2659
+ // this is to be used in complex animations
2645
2660
  complex: 375,
2661
+ // recommended when something is entering screen
2646
2662
  enteringScreen: 225,
2663
+ // recommended when something is leaving screen
2647
2664
  leavingScreen: 195
2648
2665
  };
2649
2666
  function formatMs(milliseconds) {
@@ -2712,8 +2729,10 @@ function createTheme() {
2712
2729
  direction: "ltr",
2713
2730
  mixins: createMixins(breakpoints, spacing, mixinsInput),
2714
2731
  overrides: {},
2732
+ // Inject custom styles
2715
2733
  palette,
2716
2734
  props: {},
2735
+ // Provide default props
2717
2736
  shadows: shadows$1,
2718
2737
  typography: createTypography(palette, typographyInput),
2719
2738
  spacing,
@@ -2820,12 +2839,50 @@ function warning(condition, message) {
2820
2839
  }
2821
2840
  }
2822
2841
  }
2823
- var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function(obj) {
2842
+ function _extends$1() {
2843
+ _extends$1 = Object.assign ? Object.assign.bind() : function(target) {
2844
+ for (var i = 1; i < arguments.length; i++) {
2845
+ var source = arguments[i];
2846
+ for (var key in source) {
2847
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
2848
+ target[key] = source[key];
2849
+ }
2850
+ }
2851
+ }
2852
+ return target;
2853
+ };
2854
+ return _extends$1.apply(this, arguments);
2855
+ }
2856
+ var _typeof$1 = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function(obj) {
2824
2857
  return typeof obj;
2825
2858
  } : function(obj) {
2826
2859
  return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
2827
2860
  };
2828
- var isBrowser$1 = (typeof window === "undefined" ? "undefined" : _typeof(window)) === "object" && (typeof document === "undefined" ? "undefined" : _typeof(document)) === "object" && document.nodeType === 9;
2861
+ var isBrowser$1 = (typeof window === "undefined" ? "undefined" : _typeof$1(window)) === "object" && (typeof document === "undefined" ? "undefined" : _typeof$1(document)) === "object" && document.nodeType === 9;
2862
+ function _typeof(obj) {
2863
+ "@babel/helpers - typeof";
2864
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj2) {
2865
+ return typeof obj2;
2866
+ } : function(obj2) {
2867
+ return obj2 && "function" == typeof Symbol && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
2868
+ }, _typeof(obj);
2869
+ }
2870
+ function _toPrimitive(input, hint) {
2871
+ if (_typeof(input) !== "object" || input === null)
2872
+ return input;
2873
+ var prim = input[Symbol.toPrimitive];
2874
+ if (prim !== void 0) {
2875
+ var res = prim.call(input, hint || "default");
2876
+ if (_typeof(res) !== "object")
2877
+ return res;
2878
+ throw new TypeError("@@toPrimitive must return a primitive value.");
2879
+ }
2880
+ return (hint === "string" ? String : Number)(input);
2881
+ }
2882
+ function _toPropertyKey(arg) {
2883
+ var key = _toPrimitive(arg, "string");
2884
+ return _typeof(key) === "symbol" ? key : String(key);
2885
+ }
2829
2886
  function _defineProperties(target, props) {
2830
2887
  for (var i = 0; i < props.length; i++) {
2831
2888
  var descriptor = props[i];
@@ -2833,7 +2890,7 @@ function _defineProperties(target, props) {
2833
2890
  descriptor.configurable = true;
2834
2891
  if ("value" in descriptor)
2835
2892
  descriptor.writable = true;
2836
- Object.defineProperty(target, descriptor.key, descriptor);
2893
+ Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
2837
2894
  }
2838
2895
  }
2839
2896
  function _createClass(Constructor, protoProps, staticProps) {
@@ -2862,7 +2919,21 @@ function _assertThisInitialized(self2) {
2862
2919
  if (self2 === void 0) {
2863
2920
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2864
2921
  }
2865
- return self2;
2922
+ return self2;
2923
+ }
2924
+ function _objectWithoutPropertiesLoose(source, excluded) {
2925
+ if (source == null)
2926
+ return {};
2927
+ var target = {};
2928
+ var sourceKeys = Object.keys(source);
2929
+ var key, i;
2930
+ for (i = 0; i < sourceKeys.length; i++) {
2931
+ key = sourceKeys[i];
2932
+ if (excluded.indexOf(key) >= 0)
2933
+ continue;
2934
+ target[key] = source[key];
2935
+ }
2936
+ return target;
2866
2937
  }
2867
2938
  var plainObjectConstrurctor = {}.constructor;
2868
2939
  function cloneStyle(style) {
@@ -3263,6 +3334,7 @@ var pluginKeyframesRule = {
3263
3334
  onCreateRule: function onCreateRule3(key, frames, options) {
3264
3335
  return typeof key === "string" && keyRegExp$1.test(key) ? new KeyframesRule(key, frames, options) : null;
3265
3336
  },
3337
+ // Animation name ref replacer.
3266
3338
  onProcessStyle: function onProcessStyle(style, rule, sheet) {
3267
3339
  if (rule.type !== "style" || !sheet)
3268
3340
  return style;
@@ -3402,6 +3474,10 @@ var defaultUpdateOptions = {
3402
3474
  var forceUpdateOptions = {
3403
3475
  force: true,
3404
3476
  process: true
3477
+ /**
3478
+ * Contains rules objects and allows adding/removing etc.
3479
+ * Is used for e.g. by `StyleSheet` or `ConditionalRule`.
3480
+ */
3405
3481
  };
3406
3482
  var RuleList = /* @__PURE__ */ function() {
3407
3483
  function RuleList2(options) {
@@ -3666,7 +3742,9 @@ var StyleSheet = /* @__PURE__ */ function() {
3666
3742
  };
3667
3743
  _proto.deleteRule = function deleteRule(name) {
3668
3744
  var rule = typeof name === "object" ? name : this.rules.get(name);
3669
- if (!rule || this.attached && !rule.renderable) {
3745
+ if (!rule || // Style sheet was created without link: true and attached, in this case we
3746
+ // won't be able to remove the CSS rule from the DOM.
3747
+ this.attached && !rule.renderable) {
3670
3748
  return false;
3671
3749
  }
3672
3750
  this.rules.remove(rule);
@@ -3824,6 +3902,9 @@ var SheetsRegistry = /* @__PURE__ */ function() {
3824
3902
  };
3825
3903
  _createClass(SheetsRegistry2, [{
3826
3904
  key: "index",
3905
+ /**
3906
+ * Current highest index number.
3907
+ */
3827
3908
  get: function get2() {
3828
3909
  return this.registry.length === 0 ? 0 : this.registry[this.registry.length - 1].options.index;
3829
3910
  }
@@ -4337,7 +4418,7 @@ var GlobalContainerRule = /* @__PURE__ */ function() {
4337
4418
  this.isProcessed = false;
4338
4419
  this.key = key;
4339
4420
  this.options = options;
4340
- this.rules = new RuleList(_extends$1({}, options, {
4421
+ this.rules = new RuleList(_extends$2({}, options, {
4341
4422
  parent: this
4342
4423
  }));
4343
4424
  for (var selector in styles3) {
@@ -4377,7 +4458,7 @@ var GlobalPrefixedRule = /* @__PURE__ */ function() {
4377
4458
  this.key = key;
4378
4459
  this.options = options;
4379
4460
  var selector = key.substr(atPrefix.length);
4380
- this.rule = options.jss.createRule(selector, style, _extends$1({}, options, {
4461
+ this.rule = options.jss.createRule(selector, style, _extends$2({}, options, {
4381
4462
  parent: this
4382
4463
  }));
4383
4464
  }
@@ -4404,7 +4485,7 @@ function handleNestedGlobalContainerRule(rule, sheet) {
4404
4485
  if (!rules)
4405
4486
  return;
4406
4487
  for (var name in rules) {
4407
- sheet.addRule(name, rules[name], _extends$1({}, options, {
4488
+ sheet.addRule(name, rules[name], _extends$2({}, options, {
4408
4489
  selector: addScope(name, rule.selector)
4409
4490
  }));
4410
4491
  }
@@ -4416,7 +4497,7 @@ function handlePrefixedGlobalRule(rule, sheet) {
4416
4497
  if (prop[0] !== "@" || prop.substr(0, at.length) !== at)
4417
4498
  continue;
4418
4499
  var selector = addScope(prop.substr(at.length), rule.selector);
4419
- sheet.addRule(selector, style[prop], _extends$1({}, options, {
4500
+ sheet.addRule(selector, style[prop], _extends$2({}, options, {
4420
4501
  selector
4421
4502
  }));
4422
4503
  delete style[prop];
@@ -4493,6 +4574,7 @@ function jssNested() {
4493
4574
  var options = _extends$1({}, rule.options, {
4494
4575
  nestingLevel,
4495
4576
  index: container.indexOf(rule) + 1
4577
+ // We don't need the parent name to be set options for chlid.
4496
4578
  });
4497
4579
  delete options.name;
4498
4580
  return options;
@@ -4594,12 +4676,15 @@ var px = hasCSSTOMSupport && CSS ? CSS.px : "px";
4594
4676
  var ms = hasCSSTOMSupport && CSS ? CSS.ms : "ms";
4595
4677
  var percent = hasCSSTOMSupport && CSS ? CSS.percent : "%";
4596
4678
  var defaultUnits = {
4679
+ // Animation properties
4597
4680
  "animation-delay": ms,
4598
4681
  "animation-duration": ms,
4682
+ // Background properties
4599
4683
  "background-position": px,
4600
4684
  "background-position-x": px,
4601
4685
  "background-position-y": px,
4602
4686
  "background-size": px,
4687
+ // Border Properties
4603
4688
  border: px,
4604
4689
  "border-bottom": px,
4605
4690
  "border-bottom-left-radius": px,
@@ -4631,6 +4716,7 @@ var defaultUnits = {
4631
4716
  "border-start-end-radius": px,
4632
4717
  "border-end-start-radius": px,
4633
4718
  "border-end-end-radius": px,
4719
+ // Margin properties
4634
4720
  margin: px,
4635
4721
  "margin-bottom": px,
4636
4722
  "margin-left": px,
@@ -4642,6 +4728,7 @@ var defaultUnits = {
4642
4728
  "margin-inline": px,
4643
4729
  "margin-inline-end": px,
4644
4730
  "margin-inline-start": px,
4731
+ // Padding properties
4645
4732
  padding: px,
4646
4733
  "padding-bottom": px,
4647
4734
  "padding-left": px,
@@ -4653,15 +4740,18 @@ var defaultUnits = {
4653
4740
  "padding-inline": px,
4654
4741
  "padding-inline-end": px,
4655
4742
  "padding-inline-start": px,
4743
+ // Mask properties
4656
4744
  "mask-position-x": px,
4657
4745
  "mask-position-y": px,
4658
4746
  "mask-size": px,
4747
+ // Width and height properties
4659
4748
  height: px,
4660
4749
  width: px,
4661
4750
  "min-height": px,
4662
4751
  "max-height": px,
4663
4752
  "min-width": px,
4664
4753
  "max-width": px,
4754
+ // Position properties
4665
4755
  bottom: px,
4666
4756
  left: px,
4667
4757
  top: px,
@@ -4673,12 +4763,15 @@ var defaultUnits = {
4673
4763
  "inset-inline": px,
4674
4764
  "inset-inline-end": px,
4675
4765
  "inset-inline-start": px,
4766
+ // Shadow properties
4676
4767
  "box-shadow": px,
4677
4768
  "text-shadow": px,
4769
+ // Column properties
4678
4770
  "column-gap": px,
4679
4771
  "column-rule": px,
4680
4772
  "column-rule-width": px,
4681
4773
  "column-width": px,
4774
+ // Font and text properties
4682
4775
  "font-size": px,
4683
4776
  "font-size-delta": px,
4684
4777
  "letter-spacing": px,
@@ -4687,25 +4780,33 @@ var defaultUnits = {
4687
4780
  "text-stroke": px,
4688
4781
  "text-stroke-width": px,
4689
4782
  "word-spacing": px,
4783
+ // Motion properties
4690
4784
  motion: px,
4691
4785
  "motion-offset": px,
4786
+ // Outline properties
4692
4787
  outline: px,
4693
4788
  "outline-offset": px,
4694
4789
  "outline-width": px,
4790
+ // Perspective properties
4695
4791
  perspective: px,
4696
4792
  "perspective-origin-x": percent,
4697
4793
  "perspective-origin-y": percent,
4794
+ // Transform properties
4698
4795
  "transform-origin": percent,
4699
4796
  "transform-origin-x": percent,
4700
4797
  "transform-origin-y": percent,
4701
4798
  "transform-origin-z": percent,
4799
+ // Transition properties
4702
4800
  "transition-delay": ms,
4703
4801
  "transition-duration": ms,
4802
+ // Alignment properties
4704
4803
  "vertical-align": px,
4705
4804
  "flex-basis": px,
4805
+ // Some random properties
4706
4806
  "shape-margin": px,
4707
4807
  size: px,
4708
4808
  gap: px,
4809
+ // Grid properties
4709
4810
  grid: px,
4710
4811
  "grid-gap": px,
4711
4812
  "row-gap": px,
@@ -4715,6 +4816,8 @@ var defaultUnits = {
4715
4816
  "grid-template-columns": px,
4716
4817
  "grid-auto-rows": px,
4717
4818
  "grid-auto-columns": px,
4819
+ // Not existing properties.
4820
+ // Used to avoid issues with jss-plugin-expand integration.
4718
4821
  "box-shadow-x": px,
4719
4822
  "box-shadow-y": px,
4720
4823
  "box-shadow-blur": px,
@@ -4784,6 +4887,40 @@ function defaultUnit(options) {
4784
4887
  onChangeValue: onChangeValue2
4785
4888
  };
4786
4889
  }
4890
+ function _arrayLikeToArray(arr, len) {
4891
+ if (len == null || len > arr.length)
4892
+ len = arr.length;
4893
+ for (var i = 0, arr2 = new Array(len); i < len; i++)
4894
+ arr2[i] = arr[i];
4895
+ return arr2;
4896
+ }
4897
+ function _arrayWithoutHoles(arr) {
4898
+ if (Array.isArray(arr))
4899
+ return _arrayLikeToArray(arr);
4900
+ }
4901
+ function _iterableToArray(iter) {
4902
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
4903
+ return Array.from(iter);
4904
+ }
4905
+ function _unsupportedIterableToArray(o, minLen) {
4906
+ if (!o)
4907
+ return;
4908
+ if (typeof o === "string")
4909
+ return _arrayLikeToArray(o, minLen);
4910
+ var n = Object.prototype.toString.call(o).slice(8, -1);
4911
+ if (n === "Object" && o.constructor)
4912
+ n = o.constructor.name;
4913
+ if (n === "Map" || n === "Set")
4914
+ return Array.from(o);
4915
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
4916
+ return _arrayLikeToArray(o, minLen);
4917
+ }
4918
+ function _nonIterableSpread() {
4919
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
4920
+ }
4921
+ function _toConsumableArray(arr) {
4922
+ return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
4923
+ }
4787
4924
  var js = "";
4788
4925
  var css = "";
4789
4926
  var vendor = "";
@@ -5002,6 +5139,7 @@ var propMap = {
5002
5139
  order: "flex-order",
5003
5140
  "align-items": "flex-align",
5004
5141
  "align-content": "flex-line-pack"
5142
+ // 'align-self' is handled by 'align-self' plugin.
5005
5143
  };
5006
5144
  var flex2012 = {
5007
5145
  supportedProperty: function supportedProperty15(prop, style) {
@@ -5221,6 +5359,9 @@ function jssPreset() {
5221
5359
  jssNested(),
5222
5360
  camelCase(),
5223
5361
  defaultUnit(),
5362
+ // Disable the vendor prefixer server-side, it does nothing.
5363
+ // This way, we can get a performance boost.
5364
+ // In the documentation, we are using `autoprefixer` to solve this problem.
5224
5365
  typeof window === "undefined" ? null : jssVendorPrefixer(),
5225
5366
  jssPropsSort()
5226
5367
  ]
@@ -5232,7 +5373,7 @@ function mergeClasses() {
5232
5373
  if (!newClasses) {
5233
5374
  return baseClasses;
5234
5375
  }
5235
- var nextClasses = _extends$1({}, baseClasses);
5376
+ var nextClasses = _extends$2({}, baseClasses);
5236
5377
  {
5237
5378
  if (typeof newClasses === "string") {
5238
5379
  console.error(["Material-UI: The value `".concat(newClasses, "` ") + "provided to the classes prop of ".concat(getDisplayName(Component), " is incorrect."), "You might want to use the className prop instead."].join("\n"));
@@ -5304,7 +5445,7 @@ var injectFirstNode;
5304
5445
  function StylesProvider(props) {
5305
5446
  var children = props.children, _props$injectFirst = props.injectFirst, injectFirst = _props$injectFirst === void 0 ? false : _props$injectFirst, _props$disableGenerat = props.disableGeneration, disableGeneration = _props$disableGenerat === void 0 ? false : _props$disableGenerat, localOptions = _objectWithoutProperties(props, ["children", "injectFirst", "disableGeneration"]);
5306
5447
  var outerOptions = React__default.useContext(StylesContext);
5307
- var context = _extends$1({}, outerOptions, {
5448
+ var context = _extends$2({}, outerOptions, {
5308
5449
  disableGeneration
5309
5450
  }, localOptions);
5310
5451
  {
@@ -5338,15 +5479,58 @@ function StylesProvider(props) {
5338
5479
  }, children);
5339
5480
  }
5340
5481
  StylesProvider.propTypes = {
5341
- children: propTypes.exports.node.isRequired,
5342
- disableGeneration: propTypes.exports.bool,
5343
- generateClassName: propTypes.exports.func,
5344
- injectFirst: propTypes.exports.bool,
5345
- jss: propTypes.exports.object,
5346
- serverGenerateClassName: propTypes.exports.func,
5347
- sheetsCache: propTypes.exports.object,
5348
- sheetsManager: propTypes.exports.object,
5349
- sheetsRegistry: propTypes.exports.object
5482
+ /**
5483
+ * Your component tree.
5484
+ */
5485
+ children: PropTypes.node.isRequired,
5486
+ /**
5487
+ * You can disable the generation of the styles with this option.
5488
+ * It can be useful when traversing the React tree outside of the HTML
5489
+ * rendering step on the server.
5490
+ * Let's say you are using react-apollo to extract all
5491
+ * the queries made by the interface server-side - you can significantly speed up the traversal with this prop.
5492
+ */
5493
+ disableGeneration: PropTypes.bool,
5494
+ /**
5495
+ * JSS's class name generator.
5496
+ */
5497
+ generateClassName: PropTypes.func,
5498
+ /**
5499
+ * By default, the styles are injected last in the <head> element of the page.
5500
+ * As a result, they gain more specificity than any other style sheet.
5501
+ * If you want to override Material-UI's styles, set this prop.
5502
+ */
5503
+ injectFirst: PropTypes.bool,
5504
+ /**
5505
+ * JSS's instance.
5506
+ */
5507
+ jss: PropTypes.object,
5508
+ /**
5509
+ * @ignore
5510
+ */
5511
+ serverGenerateClassName: PropTypes.func,
5512
+ /**
5513
+ * @ignore
5514
+ *
5515
+ * Beta feature.
5516
+ *
5517
+ * Cache for the sheets.
5518
+ */
5519
+ sheetsCache: PropTypes.object,
5520
+ /**
5521
+ * @ignore
5522
+ *
5523
+ * The sheetsManager is used to deduplicate style sheet injection in the page.
5524
+ * It's deduplicating using the (theme, styles) couple.
5525
+ * On the server, you should provide a new instance for each request.
5526
+ */
5527
+ sheetsManager: PropTypes.object,
5528
+ /**
5529
+ * @ignore
5530
+ *
5531
+ * Collect the sheets.
5532
+ */
5533
+ sheetsRegistry: PropTypes.object
5350
5534
  };
5351
5535
  {
5352
5536
  StylesProvider.propTypes = exactProp(StylesProvider.propTypes);
@@ -5366,7 +5550,7 @@ const noopTheme$1 = noopTheme;
5366
5550
  function getStylesCreator(stylesOrCreator) {
5367
5551
  var themingEnabled = typeof stylesOrCreator === "function";
5368
5552
  {
5369
- if (_typeof$1(stylesOrCreator) !== "object" && !themingEnabled) {
5553
+ if (_typeof$2(stylesOrCreator) !== "object" && !themingEnabled) {
5370
5554
  console.error(["Material-UI: The `styles` argument provided is invalid.", "You need to provide a function generating the styles or a styles object."].join("\n"));
5371
5555
  }
5372
5556
  }
@@ -5387,7 +5571,7 @@ function getStylesCreator(stylesOrCreator) {
5387
5571
  return styles3;
5388
5572
  }
5389
5573
  var overrides = theme.overrides[name];
5390
- var stylesWithOverrides = _extends$1({}, styles3);
5574
+ var stylesWithOverrides = _extends$2({}, styles3);
5391
5575
  Object.keys(overrides).forEach(function(key) {
5392
5576
  {
5393
5577
  if (!stylesWithOverrides[key]) {
@@ -5408,8 +5592,11 @@ function getClasses(_ref, classes, Component) {
5408
5592
  }
5409
5593
  if (!state.cacheClasses) {
5410
5594
  state.cacheClasses = {
5595
+ // Cache for the finalized classes value.
5411
5596
  value: null,
5597
+ // Cache for the last used classes prop pointer.
5412
5598
  lastProp: null,
5599
+ // Cache for the last used rendered classes pointer.
5413
5600
  lastJSS: {}
5414
5601
  };
5415
5602
  }
@@ -5445,7 +5632,7 @@ function attach(_ref2, props) {
5445
5632
  };
5446
5633
  multiKeyStore$1.set(stylesOptions.sheetsManager, stylesCreator, theme, sheetManager);
5447
5634
  }
5448
- var options = _extends$1({}, stylesCreator.options, stylesOptions, {
5635
+ var options = _extends$2({}, stylesCreator.options, stylesOptions, {
5449
5636
  theme,
5450
5637
  flip: typeof stylesOptions.flip === "boolean" ? stylesOptions.flip : theme.direction === "rtl"
5451
5638
  });
@@ -5458,7 +5645,7 @@ function attach(_ref2, props) {
5458
5645
  }
5459
5646
  var styles3 = stylesCreator.create(theme, name);
5460
5647
  if (!staticSheet) {
5461
- staticSheet = stylesOptions.jss.createStyleSheet(styles3, _extends$1({
5648
+ staticSheet = stylesOptions.jss.createStyleSheet(styles3, _extends$2({
5462
5649
  link: false
5463
5650
  }, options));
5464
5651
  staticSheet.attach();
@@ -5473,7 +5660,7 @@ function attach(_ref2, props) {
5473
5660
  sheetManager.dynamicStyles = getDynamicStyles(styles3);
5474
5661
  }
5475
5662
  if (sheetManager.dynamicStyles) {
5476
- var dynamicSheet = stylesOptions.jss.createStyleSheet(sheetManager.dynamicStyles, _extends$1({
5663
+ var dynamicSheet = stylesOptions.jss.createStyleSheet(sheetManager.dynamicStyles, _extends$2({
5477
5664
  link: true
5478
5665
  }, options));
5479
5666
  dynamicSheet.update(props);
@@ -5538,6 +5725,7 @@ function useSynchronousEffect(func, values) {
5538
5725
  };
5539
5726
  },
5540
5727
  [currentKey]
5728
+ // eslint-disable-line react-hooks/exhaustive-deps
5541
5729
  );
5542
5730
  }
5543
5731
  function makeStyles$1(stylesOrCreator) {
@@ -5554,7 +5742,7 @@ function makeStyles$1(stylesOrCreator) {
5554
5742
  var useStyles2 = function useStyles3() {
5555
5743
  var props = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
5556
5744
  var theme = useTheme() || defaultTheme2;
5557
- var stylesOptions = _extends$1({}, React__default.useContext(StylesContext), stylesOptions2);
5745
+ var stylesOptions = _extends$2({}, React__default.useContext(StylesContext), stylesOptions2);
5558
5746
  var instance = React__default.useRef();
5559
5747
  var shouldUpdate = React__default.useRef();
5560
5748
  useSynchronousEffect(function() {
@@ -5604,7 +5792,7 @@ function clsx() {
5604
5792
  (e = arguments[f++]) && (t = r(e)) && (n && (n += " "), n += t);
5605
5793
  return n;
5606
5794
  }
5607
- var reactIs = reactIs$2.exports;
5795
+ var reactIs = reactIsExports$1;
5608
5796
  var REACT_STATICS = {
5609
5797
  childContextTypes: true,
5610
5798
  contextType: true,
@@ -5685,6 +5873,7 @@ function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
5685
5873
  return targetComponent;
5686
5874
  }
5687
5875
  var hoistNonReactStatics_cjs = hoistNonReactStatics;
5876
+ const hoistNonReactStatics$1 = /* @__PURE__ */ getDefaultExportFromCjs(hoistNonReactStatics_cjs);
5688
5877
  var withStyles$1 = function withStyles(stylesOrCreator) {
5689
5878
  var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
5690
5879
  return function(Component) {
@@ -5703,7 +5892,7 @@ var withStyles$1 = function withStyles(stylesOrCreator) {
5703
5892
  }
5704
5893
  }
5705
5894
  }
5706
- var useStyles2 = makeStyles$1(stylesOrCreator, _extends$1({
5895
+ var useStyles2 = makeStyles$1(stylesOrCreator, _extends$2({
5707
5896
  defaultTheme: defaultTheme2,
5708
5897
  Component,
5709
5898
  name: name || Component.displayName,
@@ -5712,7 +5901,7 @@ var withStyles$1 = function withStyles(stylesOrCreator) {
5712
5901
  var WithStyles = /* @__PURE__ */ React__default.forwardRef(function WithStyles2(props, ref) {
5713
5902
  props.classes;
5714
5903
  var innerRef = props.innerRef, other = _objectWithoutProperties(props, ["classes", "innerRef"]);
5715
- var classes = useStyles2(_extends$1({}, Component.defaultProps, props));
5904
+ var classes = useStyles2(_extends$2({}, Component.defaultProps, props));
5716
5905
  var theme;
5717
5906
  var more = other;
5718
5907
  if (typeof name === "string" || withTheme) {
@@ -5728,14 +5917,21 @@ var withStyles$1 = function withStyles(stylesOrCreator) {
5728
5917
  more.theme = theme;
5729
5918
  }
5730
5919
  }
5731
- return /* @__PURE__ */ React__default.createElement(Component, _extends$1({
5920
+ return /* @__PURE__ */ React__default.createElement(Component, _extends$2({
5732
5921
  ref: innerRef || ref,
5733
5922
  classes
5734
5923
  }, more));
5735
5924
  });
5736
5925
  WithStyles.propTypes = {
5737
- classes: propTypes.exports.object,
5738
- innerRef: chainPropTypes(propTypes.exports.oneOfType([propTypes.exports.func, propTypes.exports.object]), function(props) {
5926
+ /**
5927
+ * Override or extend the styles applied to the component.
5928
+ */
5929
+ classes: PropTypes.object,
5930
+ /**
5931
+ * Use that prop to pass a ref to the decorated component.
5932
+ * @deprecated
5933
+ */
5934
+ innerRef: chainPropTypes(PropTypes.oneOfType([PropTypes.func, PropTypes.object]), function(props) {
5739
5935
  if (props.innerRef == null) {
5740
5936
  return null;
5741
5937
  }
@@ -5745,7 +5941,7 @@ var withStyles$1 = function withStyles(stylesOrCreator) {
5745
5941
  {
5746
5942
  WithStyles.displayName = "WithStyles(".concat(getDisplayName(Component), ")");
5747
5943
  }
5748
- hoistNonReactStatics_cjs(WithStyles, Component);
5944
+ hoistNonReactStatics$1(WithStyles, Component);
5749
5945
  {
5750
5946
  WithStyles.Naked = Component;
5751
5947
  WithStyles.options = options;
@@ -5759,15 +5955,66 @@ var defaultTheme = createTheme();
5759
5955
  const defaultTheme$1 = defaultTheme;
5760
5956
  function makeStyles(stylesOrCreator) {
5761
5957
  var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
5762
- return makeStyles$1(stylesOrCreator, _extends$1({
5958
+ return makeStyles$1(stylesOrCreator, _extends$2({
5763
5959
  defaultTheme: defaultTheme$1
5764
5960
  }, options));
5765
5961
  }
5766
5962
  function withStyles2(stylesOrCreator, options) {
5767
- return withStylesWithoutDefault(stylesOrCreator, _extends$1({
5963
+ return withStylesWithoutDefault(stylesOrCreator, _extends$2({
5768
5964
  defaultTheme: defaultTheme$1
5769
5965
  }, options));
5770
5966
  }
5967
+ function createChainedFunction() {
5968
+ for (var _len = arguments.length, funcs = new Array(_len), _key = 0; _key < _len; _key++) {
5969
+ funcs[_key] = arguments[_key];
5970
+ }
5971
+ return funcs.reduce(function(acc, func) {
5972
+ if (func == null) {
5973
+ return acc;
5974
+ }
5975
+ {
5976
+ if (typeof func !== "function") {
5977
+ console.error("Material-UI: Invalid Argument Type, must only provide functions, undefined, or null.");
5978
+ }
5979
+ }
5980
+ return function chainedFunction() {
5981
+ for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
5982
+ args[_key2] = arguments[_key2];
5983
+ }
5984
+ acc.apply(this, args);
5985
+ func.apply(this, args);
5986
+ };
5987
+ }, function() {
5988
+ });
5989
+ }
5990
+ function deprecatedPropType(validator, reason) {
5991
+ return function(props, propName, componentName, location, propFullName) {
5992
+ var componentNameSafe = componentName || "<<anonymous>>";
5993
+ var propFullNameSafe = propFullName || propName;
5994
+ if (typeof props[propName] !== "undefined") {
5995
+ return new Error("The ".concat(location, " `").concat(propFullNameSafe, "` of ") + "`".concat(componentNameSafe, "` is deprecated. ").concat(reason));
5996
+ }
5997
+ return null;
5998
+ };
5999
+ }
6000
+ function setRef(ref, value) {
6001
+ if (typeof ref === "function") {
6002
+ ref(value);
6003
+ } else if (ref) {
6004
+ ref.current = value;
6005
+ }
6006
+ }
6007
+ function useForkRef(refA, refB) {
6008
+ return React.useMemo(function() {
6009
+ if (refA == null && refB == null) {
6010
+ return null;
6011
+ }
6012
+ return function(refValue) {
6013
+ setRef(refA, refValue);
6014
+ setRef(refB, refValue);
6015
+ };
6016
+ }, [refA, refB]);
6017
+ }
5771
6018
  var styles$1 = function styles(theme) {
5772
6019
  var elevations = {};
5773
6020
  theme.shadows.forEach(function(shadow, index) {
@@ -5775,15 +6022,18 @@ var styles$1 = function styles(theme) {
5775
6022
  boxShadow: shadow
5776
6023
  };
5777
6024
  });
5778
- return _extends$1({
6025
+ return _extends$2({
6026
+ /* Styles applied to the root element. */
5779
6027
  root: {
5780
6028
  backgroundColor: theme.palette.background.paper,
5781
6029
  color: theme.palette.text.primary,
5782
6030
  transition: theme.transitions.create("box-shadow")
5783
6031
  },
6032
+ /* Styles applied to the root element if `square={false}`. */
5784
6033
  rounded: {
5785
6034
  borderRadius: theme.shape.borderRadius
5786
6035
  },
6036
+ /* Styles applied to the root element if `variant="outlined"`. */
5787
6037
  outlined: {
5788
6038
  border: "1px solid ".concat(theme.palette.divider)
5789
6039
  }
@@ -5791,17 +6041,39 @@ var styles$1 = function styles(theme) {
5791
6041
  };
5792
6042
  var Paper = /* @__PURE__ */ React.forwardRef(function Paper2(props, ref) {
5793
6043
  var classes = props.classes, className = props.className, _props$component = props.component, Component = _props$component === void 0 ? "div" : _props$component, _props$square = props.square, square = _props$square === void 0 ? false : _props$square, _props$elevation = props.elevation, elevation = _props$elevation === void 0 ? 1 : _props$elevation, _props$variant = props.variant, variant = _props$variant === void 0 ? "elevation" : _props$variant, other = _objectWithoutProperties(props, ["classes", "className", "component", "square", "elevation", "variant"]);
5794
- return /* @__PURE__ */ React.createElement(Component, _extends$1({
6044
+ return /* @__PURE__ */ React.createElement(Component, _extends$2({
5795
6045
  className: clsx(classes.root, className, variant === "outlined" ? classes.outlined : classes["elevation".concat(elevation)], !square && classes.rounded),
5796
6046
  ref
5797
6047
  }, other));
5798
6048
  });
5799
6049
  Paper.propTypes = {
5800
- children: propTypes.exports.node,
5801
- classes: propTypes.exports.object,
5802
- className: propTypes.exports.string,
5803
- component: propTypes.exports.elementType,
5804
- elevation: chainPropTypes(propTypes.exports.number, function(props) {
6050
+ // ----------------------------- Warning --------------------------------
6051
+ // | These PropTypes are generated from the TypeScript type definitions |
6052
+ // | To update them edit the d.ts file and run "yarn proptypes" |
6053
+ // ----------------------------------------------------------------------
6054
+ /**
6055
+ * The content of the component.
6056
+ */
6057
+ children: PropTypes.node,
6058
+ /**
6059
+ * Override or extend the styles applied to the component.
6060
+ * See [CSS API](#css) below for more details.
6061
+ */
6062
+ classes: PropTypes.object,
6063
+ /**
6064
+ * @ignore
6065
+ */
6066
+ className: PropTypes.string,
6067
+ /**
6068
+ * The component used for the root node.
6069
+ * Either a string to use a HTML element or a component.
6070
+ */
6071
+ component: PropTypes.elementType,
6072
+ /**
6073
+ * Shadow depth, corresponds to `dp` in the spec.
6074
+ * It accepts values between 0 and 24 inclusive.
6075
+ */
6076
+ elevation: chainPropTypes(PropTypes.number, function(props) {
5805
6077
  var classes = props.classes, elevation = props.elevation;
5806
6078
  if (classes === void 0) {
5807
6079
  return null;
@@ -5811,12 +6083,90 @@ Paper.propTypes = {
5811
6083
  }
5812
6084
  return null;
5813
6085
  }),
5814
- square: propTypes.exports.bool,
5815
- variant: propTypes.exports.oneOf(["elevation", "outlined"])
6086
+ /**
6087
+ * If `true`, rounded corners are disabled.
6088
+ */
6089
+ square: PropTypes.bool,
6090
+ /**
6091
+ * The variant to use.
6092
+ */
6093
+ variant: PropTypes.oneOf(["elevation", "outlined"])
5816
6094
  };
5817
6095
  const Paper$1 = withStyles2(styles$1, {
5818
6096
  name: "MuiPaper"
5819
6097
  })(Paper);
6098
+ function getContainer(container) {
6099
+ container = typeof container === "function" ? container() : container;
6100
+ return ReactDOM.findDOMNode(container);
6101
+ }
6102
+ var useEnhancedEffect$1 = typeof window !== "undefined" ? React.useLayoutEffect : React.useEffect;
6103
+ var Portal = /* @__PURE__ */ React.forwardRef(function Portal2(props, ref) {
6104
+ var children = props.children, container = props.container, _props$disablePortal = props.disablePortal, disablePortal = _props$disablePortal === void 0 ? false : _props$disablePortal, onRendered = props.onRendered;
6105
+ var _React$useState = React.useState(null), mountNode = _React$useState[0], setMountNode = _React$useState[1];
6106
+ var handleRef = useForkRef(/* @__PURE__ */ React.isValidElement(children) ? children.ref : null, ref);
6107
+ useEnhancedEffect$1(function() {
6108
+ if (!disablePortal) {
6109
+ setMountNode(getContainer(container) || document.body);
6110
+ }
6111
+ }, [container, disablePortal]);
6112
+ useEnhancedEffect$1(function() {
6113
+ if (mountNode && !disablePortal) {
6114
+ setRef(ref, mountNode);
6115
+ return function() {
6116
+ setRef(ref, null);
6117
+ };
6118
+ }
6119
+ return void 0;
6120
+ }, [ref, mountNode, disablePortal]);
6121
+ useEnhancedEffect$1(function() {
6122
+ if (onRendered && (mountNode || disablePortal)) {
6123
+ onRendered();
6124
+ }
6125
+ }, [onRendered, mountNode, disablePortal]);
6126
+ if (disablePortal) {
6127
+ if (/* @__PURE__ */ React.isValidElement(children)) {
6128
+ return /* @__PURE__ */ React.cloneElement(children, {
6129
+ ref: handleRef
6130
+ });
6131
+ }
6132
+ return children;
6133
+ }
6134
+ return mountNode ? /* @__PURE__ */ ReactDOM.createPortal(children, mountNode) : mountNode;
6135
+ });
6136
+ Portal.propTypes = {
6137
+ // ----------------------------- Warning --------------------------------
6138
+ // | These PropTypes are generated from the TypeScript type definitions |
6139
+ // | To update them edit the d.ts file and run "yarn proptypes" |
6140
+ // ----------------------------------------------------------------------
6141
+ /**
6142
+ * The children to render into the `container`.
6143
+ */
6144
+ children: PropTypes.node,
6145
+ /**
6146
+ * A HTML element, component instance, or function that returns either.
6147
+ * The `container` will have the portal children appended to it.
6148
+ *
6149
+ * By default, it uses the body of the top-level document object,
6150
+ * so it's simply `document.body` most of the time.
6151
+ */
6152
+ container: PropTypes.oneOfType([HTMLElementType, PropTypes.instanceOf(React.Component), PropTypes.func]),
6153
+ /**
6154
+ * Disable the portal behavior.
6155
+ * The children stay within it's parent DOM hierarchy.
6156
+ */
6157
+ disablePortal: PropTypes.bool,
6158
+ /**
6159
+ * Callback fired once the children has been mounted into the `container`.
6160
+ *
6161
+ * This prop will be removed in v5, the ref can be used instead.
6162
+ * @deprecated Use the ref instead.
6163
+ */
6164
+ onRendered: deprecatedPropType(PropTypes.func, "Use the ref instead.")
6165
+ };
6166
+ {
6167
+ Portal["propTypes"] = exactProp(Portal.propTypes);
6168
+ }
6169
+ const Portal$1 = Portal;
5820
6170
  /**!
5821
6171
  * @fileOverview Kickass library to create and place poppers near their reference elements.
5822
6172
  * @version 1.16.1-lts
@@ -6915,81 +7265,359 @@ function inner(data) {
6915
7265
  return data;
6916
7266
  }
6917
7267
  var modifiers = {
7268
+ /**
7269
+ * Modifier used to shift the popper on the start or end of its reference
7270
+ * element.<br />
7271
+ * It will read the variation of the `placement` property.<br />
7272
+ * It can be one either `-end` or `-start`.
7273
+ * @memberof modifiers
7274
+ * @inner
7275
+ */
6918
7276
  shift: {
7277
+ /** @prop {number} order=100 - Index used to define the order of execution */
6919
7278
  order: 100,
7279
+ /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */
6920
7280
  enabled: true,
7281
+ /** @prop {ModifierFn} */
6921
7282
  fn: shift
6922
7283
  },
7284
+ /**
7285
+ * The `offset` modifier can shift your popper on both its axis.
7286
+ *
7287
+ * It accepts the following units:
7288
+ * - `px` or unit-less, interpreted as pixels
7289
+ * - `%` or `%r`, percentage relative to the length of the reference element
7290
+ * - `%p`, percentage relative to the length of the popper element
7291
+ * - `vw`, CSS viewport width unit
7292
+ * - `vh`, CSS viewport height unit
7293
+ *
7294
+ * For length is intended the main axis relative to the placement of the popper.<br />
7295
+ * This means that if the placement is `top` or `bottom`, the length will be the
7296
+ * `width`. In case of `left` or `right`, it will be the `height`.
7297
+ *
7298
+ * You can provide a single value (as `Number` or `String`), or a pair of values
7299
+ * as `String` divided by a comma or one (or more) white spaces.<br />
7300
+ * The latter is a deprecated method because it leads to confusion and will be
7301
+ * removed in v2.<br />
7302
+ * Additionally, it accepts additions and subtractions between different units.
7303
+ * Note that multiplications and divisions aren't supported.
7304
+ *
7305
+ * Valid examples are:
7306
+ * ```
7307
+ * 10
7308
+ * '10%'
7309
+ * '10, 10'
7310
+ * '10%, 10'
7311
+ * '10 + 10%'
7312
+ * '10 - 5vh + 3%'
7313
+ * '-10px + 5vh, 5px - 6%'
7314
+ * ```
7315
+ * > **NB**: If you desire to apply offsets to your poppers in a way that may make them overlap
7316
+ * > with their reference element, unfortunately, you will have to disable the `flip` modifier.
7317
+ * > You can read more on this at this [issue](https://github.com/FezVrasta/popper.js/issues/373).
7318
+ *
7319
+ * @memberof modifiers
7320
+ * @inner
7321
+ */
6923
7322
  offset: {
7323
+ /** @prop {number} order=200 - Index used to define the order of execution */
6924
7324
  order: 200,
7325
+ /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */
6925
7326
  enabled: true,
7327
+ /** @prop {ModifierFn} */
6926
7328
  fn: offset,
7329
+ /** @prop {Number|String} offset=0
7330
+ * The offset value as described in the modifier description
7331
+ */
6927
7332
  offset: 0
6928
7333
  },
7334
+ /**
7335
+ * Modifier used to prevent the popper from being positioned outside the boundary.
7336
+ *
7337
+ * A scenario exists where the reference itself is not within the boundaries.<br />
7338
+ * We can say it has "escaped the boundaries" — or just "escaped".<br />
7339
+ * In this case we need to decide whether the popper should either:
7340
+ *
7341
+ * - detach from the reference and remain "trapped" in the boundaries, or
7342
+ * - if it should ignore the boundary and "escape with its reference"
7343
+ *
7344
+ * When `escapeWithReference` is set to`true` and reference is completely
7345
+ * outside its boundaries, the popper will overflow (or completely leave)
7346
+ * the boundaries in order to remain attached to the edge of the reference.
7347
+ *
7348
+ * @memberof modifiers
7349
+ * @inner
7350
+ */
6929
7351
  preventOverflow: {
7352
+ /** @prop {number} order=300 - Index used to define the order of execution */
6930
7353
  order: 300,
7354
+ /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */
6931
7355
  enabled: true,
7356
+ /** @prop {ModifierFn} */
6932
7357
  fn: preventOverflow,
7358
+ /**
7359
+ * @prop {Array} [priority=['left','right','top','bottom']]
7360
+ * Popper will try to prevent overflow following these priorities by default,
7361
+ * then, it could overflow on the left and on top of the `boundariesElement`
7362
+ */
6933
7363
  priority: ["left", "right", "top", "bottom"],
7364
+ /**
7365
+ * @prop {number} padding=5
7366
+ * Amount of pixel used to define a minimum distance between the boundaries
7367
+ * and the popper. This makes sure the popper always has a little padding
7368
+ * between the edges of its container
7369
+ */
6934
7370
  padding: 5,
7371
+ /**
7372
+ * @prop {String|HTMLElement} boundariesElement='scrollParent'
7373
+ * Boundaries used by the modifier. Can be `scrollParent`, `window`,
7374
+ * `viewport` or any DOM element.
7375
+ */
6935
7376
  boundariesElement: "scrollParent"
6936
7377
  },
7378
+ /**
7379
+ * Modifier used to make sure the reference and its popper stay near each other
7380
+ * without leaving any gap between the two. Especially useful when the arrow is
7381
+ * enabled and you want to ensure that it points to its reference element.
7382
+ * It cares only about the first axis. You can still have poppers with margin
7383
+ * between the popper and its reference element.
7384
+ * @memberof modifiers
7385
+ * @inner
7386
+ */
6937
7387
  keepTogether: {
7388
+ /** @prop {number} order=400 - Index used to define the order of execution */
6938
7389
  order: 400,
7390
+ /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */
6939
7391
  enabled: true,
7392
+ /** @prop {ModifierFn} */
6940
7393
  fn: keepTogether
6941
7394
  },
7395
+ /**
7396
+ * This modifier is used to move the `arrowElement` of the popper to make
7397
+ * sure it is positioned between the reference element and its popper element.
7398
+ * It will read the outer size of the `arrowElement` node to detect how many
7399
+ * pixels of conjunction are needed.
7400
+ *
7401
+ * It has no effect if no `arrowElement` is provided.
7402
+ * @memberof modifiers
7403
+ * @inner
7404
+ */
6942
7405
  arrow: {
7406
+ /** @prop {number} order=500 - Index used to define the order of execution */
6943
7407
  order: 500,
7408
+ /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */
6944
7409
  enabled: true,
7410
+ /** @prop {ModifierFn} */
6945
7411
  fn: arrow,
7412
+ /** @prop {String|HTMLElement} element='[x-arrow]' - Selector or node used as arrow */
6946
7413
  element: "[x-arrow]"
6947
7414
  },
7415
+ /**
7416
+ * Modifier used to flip the popper's placement when it starts to overlap its
7417
+ * reference element.
7418
+ *
7419
+ * Requires the `preventOverflow` modifier before it in order to work.
7420
+ *
7421
+ * **NOTE:** this modifier will interrupt the current update cycle and will
7422
+ * restart it if it detects the need to flip the placement.
7423
+ * @memberof modifiers
7424
+ * @inner
7425
+ */
6948
7426
  flip: {
7427
+ /** @prop {number} order=600 - Index used to define the order of execution */
6949
7428
  order: 600,
7429
+ /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */
6950
7430
  enabled: true,
7431
+ /** @prop {ModifierFn} */
6951
7432
  fn: flip,
7433
+ /**
7434
+ * @prop {String|Array} behavior='flip'
7435
+ * The behavior used to change the popper's placement. It can be one of
7436
+ * `flip`, `clockwise`, `counterclockwise` or an array with a list of valid
7437
+ * placements (with optional variations)
7438
+ */
6952
7439
  behavior: "flip",
7440
+ /**
7441
+ * @prop {number} padding=5
7442
+ * The popper will flip if it hits the edges of the `boundariesElement`
7443
+ */
6953
7444
  padding: 5,
7445
+ /**
7446
+ * @prop {String|HTMLElement} boundariesElement='viewport'
7447
+ * The element which will define the boundaries of the popper position.
7448
+ * The popper will never be placed outside of the defined boundaries
7449
+ * (except if `keepTogether` is enabled)
7450
+ */
6954
7451
  boundariesElement: "viewport",
7452
+ /**
7453
+ * @prop {Boolean} flipVariations=false
7454
+ * The popper will switch placement variation between `-start` and `-end` when
7455
+ * the reference element overlaps its boundaries.
7456
+ *
7457
+ * The original placement should have a set variation.
7458
+ */
6955
7459
  flipVariations: false,
7460
+ /**
7461
+ * @prop {Boolean} flipVariationsByContent=false
7462
+ * The popper will switch placement variation between `-start` and `-end` when
7463
+ * the popper element overlaps its reference boundaries.
7464
+ *
7465
+ * The original placement should have a set variation.
7466
+ */
6956
7467
  flipVariationsByContent: false
6957
7468
  },
7469
+ /**
7470
+ * Modifier used to make the popper flow toward the inner of the reference element.
7471
+ * By default, when this modifier is disabled, the popper will be placed outside
7472
+ * the reference element.
7473
+ * @memberof modifiers
7474
+ * @inner
7475
+ */
6958
7476
  inner: {
7477
+ /** @prop {number} order=700 - Index used to define the order of execution */
6959
7478
  order: 700,
7479
+ /** @prop {Boolean} enabled=false - Whether the modifier is enabled or not */
6960
7480
  enabled: false,
7481
+ /** @prop {ModifierFn} */
6961
7482
  fn: inner
6962
7483
  },
7484
+ /**
7485
+ * Modifier used to hide the popper when its reference element is outside of the
7486
+ * popper boundaries. It will set a `x-out-of-boundaries` attribute which can
7487
+ * be used to hide with a CSS selector the popper when its reference is
7488
+ * out of boundaries.
7489
+ *
7490
+ * Requires the `preventOverflow` modifier before it in order to work.
7491
+ * @memberof modifiers
7492
+ * @inner
7493
+ */
6963
7494
  hide: {
7495
+ /** @prop {number} order=800 - Index used to define the order of execution */
6964
7496
  order: 800,
7497
+ /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */
6965
7498
  enabled: true,
7499
+ /** @prop {ModifierFn} */
6966
7500
  fn: hide
6967
7501
  },
7502
+ /**
7503
+ * Computes the style that will be applied to the popper element to gets
7504
+ * properly positioned.
7505
+ *
7506
+ * Note that this modifier will not touch the DOM, it just prepares the styles
7507
+ * so that `applyStyle` modifier can apply it. This separation is useful
7508
+ * in case you need to replace `applyStyle` with a custom implementation.
7509
+ *
7510
+ * This modifier has `850` as `order` value to maintain backward compatibility
7511
+ * with previous versions of Popper.js. Expect the modifiers ordering method
7512
+ * to change in future major versions of the library.
7513
+ *
7514
+ * @memberof modifiers
7515
+ * @inner
7516
+ */
6968
7517
  computeStyle: {
7518
+ /** @prop {number} order=850 - Index used to define the order of execution */
6969
7519
  order: 850,
7520
+ /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */
6970
7521
  enabled: true,
7522
+ /** @prop {ModifierFn} */
6971
7523
  fn: computeStyle,
7524
+ /**
7525
+ * @prop {Boolean} gpuAcceleration=true
7526
+ * If true, it uses the CSS 3D transformation to position the popper.
7527
+ * Otherwise, it will use the `top` and `left` properties
7528
+ */
6972
7529
  gpuAcceleration: true,
7530
+ /**
7531
+ * @prop {string} [x='bottom']
7532
+ * Where to anchor the X axis (`bottom` or `top`). AKA X offset origin.
7533
+ * Change this if your popper should grow in a direction different from `bottom`
7534
+ */
6973
7535
  x: "bottom",
7536
+ /**
7537
+ * @prop {string} [x='left']
7538
+ * Where to anchor the Y axis (`left` or `right`). AKA Y offset origin.
7539
+ * Change this if your popper should grow in a direction different from `right`
7540
+ */
6974
7541
  y: "right"
6975
7542
  },
7543
+ /**
7544
+ * Applies the computed styles to the popper element.
7545
+ *
7546
+ * All the DOM manipulations are limited to this modifier. This is useful in case
7547
+ * you want to integrate Popper.js inside a framework or view library and you
7548
+ * want to delegate all the DOM manipulations to it.
7549
+ *
7550
+ * Note that if you disable this modifier, you must make sure the popper element
7551
+ * has its position set to `absolute` before Popper.js can do its work!
7552
+ *
7553
+ * Just disable this modifier and define your own to achieve the desired effect.
7554
+ *
7555
+ * @memberof modifiers
7556
+ * @inner
7557
+ */
6976
7558
  applyStyle: {
7559
+ /** @prop {number} order=900 - Index used to define the order of execution */
6977
7560
  order: 900,
7561
+ /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */
6978
7562
  enabled: true,
7563
+ /** @prop {ModifierFn} */
6979
7564
  fn: applyStyle,
7565
+ /** @prop {Function} */
6980
7566
  onLoad: applyStyleOnLoad,
7567
+ /**
7568
+ * @deprecated since version 1.10.0, the property moved to `computeStyle` modifier
7569
+ * @prop {Boolean} gpuAcceleration=true
7570
+ * If true, it uses the CSS 3D transformation to position the popper.
7571
+ * Otherwise, it will use the `top` and `left` properties
7572
+ */
6981
7573
  gpuAcceleration: void 0
6982
7574
  }
6983
7575
  };
6984
7576
  var Defaults = {
7577
+ /**
7578
+ * Popper's placement.
7579
+ * @prop {Popper.placements} placement='bottom'
7580
+ */
6985
7581
  placement: "bottom",
7582
+ /**
7583
+ * Set this to true if you want popper to position it self in 'fixed' mode
7584
+ * @prop {Boolean} positionFixed=false
7585
+ */
6986
7586
  positionFixed: false,
7587
+ /**
7588
+ * Whether events (resize, scroll) are initially enabled.
7589
+ * @prop {Boolean} eventsEnabled=true
7590
+ */
6987
7591
  eventsEnabled: true,
7592
+ /**
7593
+ * Set to true if you want to automatically remove the popper when
7594
+ * you call the `destroy` method.
7595
+ * @prop {Boolean} removeOnDestroy=false
7596
+ */
6988
7597
  removeOnDestroy: false,
7598
+ /**
7599
+ * Callback called when the popper is created.<br />
7600
+ * By default, it is set to no-op.<br />
7601
+ * Access Popper.js instance with `data.instance`.
7602
+ * @prop {onCreate}
7603
+ */
6989
7604
  onCreate: function onCreate() {
6990
7605
  },
7606
+ /**
7607
+ * Callback called when the popper is updated. This callback is not called
7608
+ * on the initialization/creation of the popper, but only on subsequent
7609
+ * updates.<br />
7610
+ * By default, it is set to no-op.<br />
7611
+ * Access Popper.js instance with `data.instance`.
7612
+ * @prop {onUpdate}
7613
+ */
6991
7614
  onUpdate: function onUpdate() {
6992
7615
  },
7616
+ /**
7617
+ * List of modifiers used to modify the offsets before they are applied to the popper.
7618
+ * They provide most of the functionalities of Popper.js.
7619
+ * @prop {modifiers}
7620
+ */
6993
7621
  modifiers
6994
7622
  };
6995
7623
  var Popper$2 = function() {
@@ -7052,6 +7680,27 @@ var Popper$2 = function() {
7052
7680
  value: function disableEventListeners$$1() {
7053
7681
  return disableEventListeners.call(this);
7054
7682
  }
7683
+ /**
7684
+ * Schedules an update. It will run on the next UI update available.
7685
+ * @method scheduleUpdate
7686
+ * @memberof Popper
7687
+ */
7688
+ /**
7689
+ * Collection of utilities useful when writing custom modifiers.
7690
+ * Starting from version 1.7, this method is available only if you
7691
+ * include `popper-utils.js` before `popper.js`.
7692
+ *
7693
+ * **DEPRECATION**: This way to access PopperUtils is deprecated
7694
+ * and will be removed in v2! Use the PopperUtils module directly instead.
7695
+ * Due to the high instability of the methods contained in Utils, we can't
7696
+ * guarantee them to follow semver. Use them at your own risk!
7697
+ * @static
7698
+ * @private
7699
+ * @type {Object}
7700
+ * @deprecated since version 1.8
7701
+ * @member Utils
7702
+ * @memberof Popper
7703
+ */
7055
7704
  }]);
7056
7705
  return Popper3;
7057
7706
  }();
@@ -7059,105 +7708,6 @@ Popper$2.Utils = (typeof window !== "undefined" ? window : global).PopperUtils;
7059
7708
  Popper$2.placements = placements;
7060
7709
  Popper$2.Defaults = Defaults;
7061
7710
  const PopperJs = Popper$2;
7062
- function deprecatedPropType(validator, reason) {
7063
- return function(props, propName, componentName, location, propFullName) {
7064
- var componentNameSafe = componentName || "<<anonymous>>";
7065
- var propFullNameSafe = propFullName || propName;
7066
- if (typeof props[propName] !== "undefined") {
7067
- return new Error("The ".concat(location, " `").concat(propFullNameSafe, "` of ") + "`".concat(componentNameSafe, "` is deprecated. ").concat(reason));
7068
- }
7069
- return null;
7070
- };
7071
- }
7072
- function setRef(ref, value) {
7073
- if (typeof ref === "function") {
7074
- ref(value);
7075
- } else if (ref) {
7076
- ref.current = value;
7077
- }
7078
- }
7079
- function useForkRef(refA, refB) {
7080
- return React.useMemo(function() {
7081
- if (refA == null && refB == null) {
7082
- return null;
7083
- }
7084
- return function(refValue) {
7085
- setRef(refA, refValue);
7086
- setRef(refB, refValue);
7087
- };
7088
- }, [refA, refB]);
7089
- }
7090
- function getContainer(container) {
7091
- container = typeof container === "function" ? container() : container;
7092
- return ReactDOM.findDOMNode(container);
7093
- }
7094
- var useEnhancedEffect$1 = typeof window !== "undefined" ? React.useLayoutEffect : React.useEffect;
7095
- var Portal = /* @__PURE__ */ React.forwardRef(function Portal2(props, ref) {
7096
- var children = props.children, container = props.container, _props$disablePortal = props.disablePortal, disablePortal = _props$disablePortal === void 0 ? false : _props$disablePortal, onRendered = props.onRendered;
7097
- var _React$useState = React.useState(null), mountNode = _React$useState[0], setMountNode = _React$useState[1];
7098
- var handleRef = useForkRef(/* @__PURE__ */ React.isValidElement(children) ? children.ref : null, ref);
7099
- useEnhancedEffect$1(function() {
7100
- if (!disablePortal) {
7101
- setMountNode(getContainer(container) || document.body);
7102
- }
7103
- }, [container, disablePortal]);
7104
- useEnhancedEffect$1(function() {
7105
- if (mountNode && !disablePortal) {
7106
- setRef(ref, mountNode);
7107
- return function() {
7108
- setRef(ref, null);
7109
- };
7110
- }
7111
- return void 0;
7112
- }, [ref, mountNode, disablePortal]);
7113
- useEnhancedEffect$1(function() {
7114
- if (onRendered && (mountNode || disablePortal)) {
7115
- onRendered();
7116
- }
7117
- }, [onRendered, mountNode, disablePortal]);
7118
- if (disablePortal) {
7119
- if (/* @__PURE__ */ React.isValidElement(children)) {
7120
- return /* @__PURE__ */ React.cloneElement(children, {
7121
- ref: handleRef
7122
- });
7123
- }
7124
- return children;
7125
- }
7126
- return mountNode ? /* @__PURE__ */ ReactDOM.createPortal(children, mountNode) : mountNode;
7127
- });
7128
- Portal.propTypes = {
7129
- children: propTypes.exports.node,
7130
- container: propTypes.exports.oneOfType([HTMLElementType, propTypes.exports.instanceOf(React.Component), propTypes.exports.func]),
7131
- disablePortal: propTypes.exports.bool,
7132
- onRendered: deprecatedPropType(propTypes.exports.func, "Use the ref instead.")
7133
- };
7134
- {
7135
- Portal["propTypes"] = exactProp(Portal.propTypes);
7136
- }
7137
- const Portal$1 = Portal;
7138
- function createChainedFunction() {
7139
- for (var _len = arguments.length, funcs = new Array(_len), _key = 0; _key < _len; _key++) {
7140
- funcs[_key] = arguments[_key];
7141
- }
7142
- return funcs.reduce(function(acc, func) {
7143
- if (func == null) {
7144
- return acc;
7145
- }
7146
- {
7147
- if (typeof func !== "function") {
7148
- console.error("Material-UI: Invalid Argument Type, must only provide functions, undefined, or null.");
7149
- }
7150
- }
7151
- return function chainedFunction() {
7152
- for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
7153
- args[_key2] = arguments[_key2];
7154
- }
7155
- acc.apply(this, args);
7156
- func.apply(this, args);
7157
- };
7158
- }, function() {
7159
- });
7160
- }
7161
7711
  function flipPlacement(placement, theme) {
7162
7712
  var direction = theme && theme.direction || "ltr";
7163
7713
  if (direction === "ltr") {
@@ -7223,14 +7773,17 @@ var Popper = /* @__PURE__ */ React.forwardRef(function Popper2(props, ref) {
7223
7773
  }
7224
7774
  }
7225
7775
  }
7226
- var popper = new PopperJs(getAnchorEl(anchorEl), tooltipRef.current, _extends$1({
7776
+ var popper = new PopperJs(getAnchorEl(anchorEl), tooltipRef.current, _extends$2({
7227
7777
  placement: rtlPlacement
7228
7778
  }, popperOptions, {
7229
- modifiers: _extends$1({}, disablePortal ? {} : {
7779
+ modifiers: _extends$2({}, disablePortal ? {} : {
7780
+ // It's using scrollParent by default, we can use the viewport when using a portal.
7230
7781
  preventOverflow: {
7231
7782
  boundariesElement: "window"
7232
7783
  }
7233
7784
  }, modifiers2, popperOptions.modifiers),
7785
+ // We could have been using a custom modifier like react-popper is doing.
7786
+ // But it seems this is the best public API for this use case.
7234
7787
  onCreate: createChainedFunction(handlePopperUpdate, popperOptions.onCreate),
7235
7788
  onUpdate: createChainedFunction(handlePopperUpdate, popperOptions.onUpdate)
7236
7789
  }));
@@ -7280,12 +7833,14 @@ var Popper = /* @__PURE__ */ React.forwardRef(function Popper2(props, ref) {
7280
7833
  return /* @__PURE__ */ React.createElement(Portal$1, {
7281
7834
  disablePortal,
7282
7835
  container
7283
- }, /* @__PURE__ */ React.createElement("div", _extends$1({
7836
+ }, /* @__PURE__ */ React.createElement("div", _extends$2({
7284
7837
  ref: handleRef,
7285
7838
  role: "tooltip"
7286
7839
  }, other, {
7287
- style: _extends$1({
7840
+ style: _extends$2({
7841
+ // Prevents scroll issue, waiting for Popper.js to add this style once initiated.
7288
7842
  position: "fixed",
7843
+ // Fix Popper.js display issue
7289
7844
  top: 0,
7290
7845
  left: 0,
7291
7846
  display: !open && keepMounted && !transition2 ? "none" : null
@@ -7293,7 +7848,17 @@ var Popper = /* @__PURE__ */ React.forwardRef(function Popper2(props, ref) {
7293
7848
  }), typeof children === "function" ? children(childProps) : children));
7294
7849
  });
7295
7850
  Popper.propTypes = {
7296
- anchorEl: chainPropTypes(propTypes.exports.oneOfType([HTMLElementType, propTypes.exports.object, propTypes.exports.func]), function(props) {
7851
+ // ----------------------------- Warning --------------------------------
7852
+ // | These PropTypes are generated from the TypeScript type definitions |
7853
+ // | To update them edit the d.ts file and run "yarn proptypes" |
7854
+ // ----------------------------------------------------------------------
7855
+ /**
7856
+ * A HTML element, [referenceObject](https://popper.js.org/docs/v1/#referenceObject),
7857
+ * or a function that returns either.
7858
+ * It's used to set the position of the popper.
7859
+ * The return value will passed as the reference object of the Popper instance.
7860
+ */
7861
+ anchorEl: chainPropTypes(PropTypes.oneOfType([HTMLElementType, PropTypes.object, PropTypes.func]), function(props) {
7297
7862
  if (props.open) {
7298
7863
  var resolvedAnchorEl = getAnchorEl(props.anchorEl);
7299
7864
  if (resolvedAnchorEl && resolvedAnchorEl.nodeType === 1) {
@@ -7307,20 +7872,66 @@ Popper.propTypes = {
7307
7872
  }
7308
7873
  return null;
7309
7874
  }),
7310
- children: propTypes.exports.oneOfType([propTypes.exports.node, propTypes.exports.func]).isRequired,
7311
- container: propTypes.exports.oneOfType([HTMLElementType, propTypes.exports.instanceOf(React.Component), propTypes.exports.func]),
7312
- disablePortal: propTypes.exports.bool,
7313
- keepMounted: propTypes.exports.bool,
7314
- modifiers: propTypes.exports.object,
7315
- open: propTypes.exports.bool.isRequired,
7316
- placement: propTypes.exports.oneOf(["bottom-end", "bottom-start", "bottom", "left-end", "left-start", "left", "right-end", "right-start", "right", "top-end", "top-start", "top"]),
7317
- popperOptions: propTypes.exports.object,
7875
+ /**
7876
+ * Popper render function or node.
7877
+ */
7878
+ children: PropTypes.oneOfType([PropTypes.node, PropTypes.func]).isRequired,
7879
+ /**
7880
+ * A HTML element, component instance, or function that returns either.
7881
+ * The `container` will have the portal children appended to it.
7882
+ *
7883
+ * By default, it uses the body of the top-level document object,
7884
+ * so it's simply `document.body` most of the time.
7885
+ */
7886
+ container: PropTypes.oneOfType([HTMLElementType, PropTypes.instanceOf(React.Component), PropTypes.func]),
7887
+ /**
7888
+ * Disable the portal behavior.
7889
+ * The children stay within it's parent DOM hierarchy.
7890
+ */
7891
+ disablePortal: PropTypes.bool,
7892
+ /**
7893
+ * Always keep the children in the DOM.
7894
+ * This prop can be useful in SEO situation or
7895
+ * when you want to maximize the responsiveness of the Popper.
7896
+ */
7897
+ keepMounted: PropTypes.bool,
7898
+ /**
7899
+ * Popper.js is based on a "plugin-like" architecture,
7900
+ * most of its features are fully encapsulated "modifiers".
7901
+ *
7902
+ * A modifier is a function that is called each time Popper.js needs to
7903
+ * compute the position of the popper.
7904
+ * For this reason, modifiers should be very performant to avoid bottlenecks.
7905
+ * To learn how to create a modifier, [read the modifiers documentation](https://popper.js.org/docs/v1/#modifiers).
7906
+ */
7907
+ modifiers: PropTypes.object,
7908
+ /**
7909
+ * If `true`, the popper is visible.
7910
+ */
7911
+ open: PropTypes.bool.isRequired,
7912
+ /**
7913
+ * Popper placement.
7914
+ */
7915
+ placement: PropTypes.oneOf(["bottom-end", "bottom-start", "bottom", "left-end", "left-start", "left", "right-end", "right-start", "right", "top-end", "top-start", "top"]),
7916
+ /**
7917
+ * Options provided to the [`popper.js`](https://popper.js.org/docs/v1/) instance.
7918
+ */
7919
+ popperOptions: PropTypes.object,
7920
+ /**
7921
+ * A ref that points to the used popper instance.
7922
+ */
7318
7923
  popperRef: refType$1,
7319
- style: propTypes.exports.object,
7320
- transition: propTypes.exports.bool
7924
+ /**
7925
+ * @ignore
7926
+ */
7927
+ style: PropTypes.object,
7928
+ /**
7929
+ * Help supporting a react-transition-group/Transition component.
7930
+ */
7931
+ transition: PropTypes.bool
7321
7932
  };
7322
7933
  const Popper$1 = Popper;
7323
- const styles2 = makeStyles(() => ({
7934
+ const styles2 = makeStyles((theme) => ({
7324
7935
  tooltipAnchor: {
7325
7936
  position: "relative",
7326
7937
  width: "0px",
@@ -7332,14 +7943,24 @@ const styles2 = makeStyles(() => ({
7332
7943
  opacity: 0.9,
7333
7944
  padding: "5px",
7334
7945
  pointerEvents: "none",
7946
+ backgroundColor: theme.palette.gridLayoutBackground,
7335
7947
  "& table > tbody > tr > th, & table > tbody > tr > td": {
7336
- fontSize: "80%",
7948
+ border: "none",
7949
+ fontSize: "12px",
7950
+ lineHeight: 1.43,
7337
7951
  opacity: 0.8,
7338
7952
  outline: 0,
7339
- padding: "0 2px"
7953
+ padding: "0 2px !important",
7954
+ textAlign: "left",
7955
+ color: theme.palette.tooltipText,
7956
+ backgroundColor: theme.palette.gridLayoutBackground
7957
+ },
7958
+ "& table > tr:nth-child(2)": {
7959
+ backgroundColor: "inherit !important"
7340
7960
  },
7341
7961
  "& table": {
7342
- borderCollapse: "collapse"
7962
+ borderCollapse: "collapse",
7963
+ marginBottom: "0px"
7343
7964
  }
7344
7965
  }
7345
7966
  }));
@@ -7366,22 +7987,24 @@ function Tooltip(props) {
7366
7987
  ref.current.style.top = `${y + (flipY ? -20 : 5)}px`;
7367
7988
  }
7368
7989
  }, [x, y, parentWidth, parentHeight]);
7369
- return /* @__PURE__ */ jsx("div", {
7370
- ref,
7371
- className: classes.tooltipAnchor,
7372
- children: ref && ref.current ? /* @__PURE__ */ jsx(Popper$1, {
7373
- open: true,
7374
- anchorEl: ref.current,
7375
- container: getTooltipContainer,
7376
- transition: true,
7377
- placement: `${placementY}-${placementX}`,
7378
- children: /* @__PURE__ */ jsx(Paper$1, {
7379
- elevation: 4,
7380
- className: classes.tooltipContent,
7381
- children
7382
- })
7383
- }) : null
7384
- });
7990
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
7991
+ "div",
7992
+ {
7993
+ ref,
7994
+ className: classes.tooltipAnchor,
7995
+ children: ref && ref.current ? /* @__PURE__ */ jsxRuntimeExports.jsx(
7996
+ Popper$1,
7997
+ {
7998
+ open: true,
7999
+ anchorEl: ref.current,
8000
+ container: getTooltipContainer,
8001
+ transition: true,
8002
+ placement: `${placementY}-${placementX}`,
8003
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(Paper$1, { elevation: 4, className: classes.tooltipContent, children })
8004
+ }
8005
+ ) : null
8006
+ }
8007
+ );
7385
8008
  }
7386
8009
  const useStyles = makeStyles((theme) => ({
7387
8010
  cellEmphasisCrosshair: {
@@ -7408,58 +8031,54 @@ function Tooltip2D(props) {
7408
8031
  }
7409
8032
  const isTooltipVisible = parentUuid === sourceUuid;
7410
8033
  const crosshairWidth = 1;
7411
- return /* @__PURE__ */ jsx(Fragment, {
7412
- children: isTooltipVisible ? /* @__PURE__ */ jsx(Tooltip, {
8034
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: isTooltipVisible ? /* @__PURE__ */ jsxRuntimeExports.jsx(
8035
+ Tooltip,
8036
+ {
7413
8037
  x,
7414
8038
  y,
7415
8039
  parentWidth,
7416
8040
  parentHeight,
7417
8041
  children
7418
- }) : /* @__PURE__ */ jsxs(Fragment, {
7419
- children: [
7420
- x !== null ? /* @__PURE__ */ jsx("div", {
7421
- className: classes.cellEmphasisCrosshair,
7422
- style: {
7423
- left: `${x - crosshairWidth / 2}px`,
7424
- top: 0,
7425
- width: `${crosshairWidth}px`,
7426
- height: `${parentHeight}px`
7427
- }
7428
- }) : null,
7429
- y !== null ? /* @__PURE__ */ jsx("div", {
7430
- className: classes.cellEmphasisCrosshair,
7431
- style: {
7432
- left: 0,
7433
- top: `${y - crosshairWidth / 2}px`,
7434
- width: `${parentWidth}px`,
7435
- height: `${crosshairWidth}px`
7436
- }
7437
- }) : null
7438
- ]
7439
- })
7440
- });
8042
+ }
8043
+ ) : /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
8044
+ x !== null ? /* @__PURE__ */ jsxRuntimeExports.jsx(
8045
+ "div",
8046
+ {
8047
+ className: classes.cellEmphasisCrosshair,
8048
+ style: {
8049
+ left: `${x - crosshairWidth / 2}px`,
8050
+ top: 0,
8051
+ width: `${crosshairWidth}px`,
8052
+ height: `${parentHeight}px`
8053
+ }
8054
+ }
8055
+ ) : null,
8056
+ y !== null ? /* @__PURE__ */ jsxRuntimeExports.jsx(
8057
+ "div",
8058
+ {
8059
+ className: classes.cellEmphasisCrosshair,
8060
+ style: {
8061
+ left: 0,
8062
+ top: `${y - crosshairWidth / 2}px`,
8063
+ width: `${parentWidth}px`,
8064
+ height: `${crosshairWidth}px`
8065
+ }
8066
+ }
8067
+ ) : null
8068
+ ] }) });
7441
8069
  }
7442
8070
  function TooltipContent(props) {
7443
8071
  const {
7444
8072
  info
7445
8073
  } = props;
7446
- return /* @__PURE__ */ jsx("table", {
7447
- children: /* @__PURE__ */ jsx("tbody", {
7448
- children: Object.entries(info).map(([key, value]) => /* @__PURE__ */ jsxs("tr", {
7449
- children: [
7450
- /* @__PURE__ */ jsx("th", {
7451
- children: key
7452
- }),
7453
- /* @__PURE__ */ jsx("td", {
7454
- children: value
7455
- })
7456
- ]
7457
- }, key))
7458
- })
7459
- });
8074
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("table", { children: /* @__PURE__ */ jsxRuntimeExports.jsx("tbody", { children: Object.entries(info).map(([key, value]) => /* @__PURE__ */ jsxRuntimeExports.jsxs("tr", { children: [
8075
+ /* @__PURE__ */ jsxRuntimeExports.jsx("th", { children: key }),
8076
+ /* @__PURE__ */ jsxRuntimeExports.jsx("td", { children: value })
8077
+ ] }, key)) }) });
7460
8078
  }
7461
8079
  export {
7462
8080
  Tooltip,
7463
8081
  Tooltip2D,
7464
- TooltipContent
8082
+ TooltipContent,
8083
+ styles2 as useTooltipStyles
7465
8084
  };