@vitessce/tooltip 3.0.1 → 3.1.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.
Files changed (2) hide show
  1. package/dist/index.js +102 -88
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -1795,7 +1795,24 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
1795
1795
  }
1796
1796
  var propTypesExports = propTypes.exports;
1797
1797
  const PropTypes = /* @__PURE__ */ getDefaultExportFromCjs(propTypesExports);
1798
- function _defineProperty(obj, key, value) {
1798
+ function _toPrimitive(input, hint) {
1799
+ if (_typeof$2(input) !== "object" || input === null)
1800
+ return input;
1801
+ var prim = input[Symbol.toPrimitive];
1802
+ if (prim !== void 0) {
1803
+ var res = prim.call(input, hint || "default");
1804
+ if (_typeof$2(res) !== "object")
1805
+ return res;
1806
+ throw new TypeError("@@toPrimitive must return a primitive value.");
1807
+ }
1808
+ return (hint === "string" ? String : Number)(input);
1809
+ }
1810
+ function _toPropertyKey(arg) {
1811
+ var key = _toPrimitive(arg, "string");
1812
+ return _typeof$2(key) === "symbol" ? key : String(key);
1813
+ }
1814
+ function _defineProperty$1(obj, key, value) {
1815
+ key = _toPropertyKey(key);
1799
1816
  if (key in obj) {
1800
1817
  Object.defineProperty(obj, key, {
1801
1818
  value,
@@ -1810,7 +1827,7 @@ function _defineProperty(obj, key, value) {
1810
1827
  }
1811
1828
  var specialProperty = "exact-prop: ​";
1812
1829
  function exactProp(propTypes2) {
1813
- return _extends$2({}, propTypes2, _defineProperty({}, specialProperty, function(props) {
1830
+ return _extends$2({}, propTypes2, _defineProperty$1({}, specialProperty, function(props) {
1814
1831
  var unsupportedProps = Object.keys(props).filter(function(prop) {
1815
1832
  return !propTypes2.hasOwnProperty(prop);
1816
1833
  });
@@ -2183,6 +2200,19 @@ function lighten(color, coefficient) {
2183
2200
  }
2184
2201
  return recomposeColor(color);
2185
2202
  }
2203
+ function _defineProperty(obj, key, value) {
2204
+ if (key in obj) {
2205
+ Object.defineProperty(obj, key, {
2206
+ value,
2207
+ enumerable: true,
2208
+ configurable: true,
2209
+ writable: true
2210
+ });
2211
+ } else {
2212
+ obj[key] = value;
2213
+ }
2214
+ return obj;
2215
+ }
2186
2216
  function _objectWithoutPropertiesLoose$1(source, excluded) {
2187
2217
  if (source == null)
2188
2218
  return {};
@@ -2215,6 +2245,20 @@ function _objectWithoutProperties(source, excluded) {
2215
2245
  }
2216
2246
  return target;
2217
2247
  }
2248
+ function _extends$1() {
2249
+ _extends$1 = Object.assign ? Object.assign.bind() : function(target) {
2250
+ for (var i = 1; i < arguments.length; i++) {
2251
+ var source = arguments[i];
2252
+ for (var key in source) {
2253
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
2254
+ target[key] = source[key];
2255
+ }
2256
+ }
2257
+ }
2258
+ return target;
2259
+ };
2260
+ return _extends$1.apply(this, arguments);
2261
+ }
2218
2262
  var keys = ["xs", "sm", "md", "lg", "xl"];
2219
2263
  function createBreakpoints(breakpoints) {
2220
2264
  var _breakpoints$values = breakpoints.values, values = _breakpoints$values === void 0 ? {
@@ -2257,7 +2301,7 @@ function createBreakpoints(breakpoints) {
2257
2301
  }
2258
2302
  return values[key];
2259
2303
  }
2260
- return _extends$2({
2304
+ return _extends$1({
2261
2305
  keys,
2262
2306
  values,
2263
2307
  up,
@@ -2269,14 +2313,14 @@ function createBreakpoints(breakpoints) {
2269
2313
  }
2270
2314
  function createMixins(breakpoints, spacing, mixins) {
2271
2315
  var _toolbar;
2272
- return _extends$2({
2316
+ return _extends$1({
2273
2317
  gutters: function gutters() {
2274
2318
  var styles3 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
2275
2319
  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"));
2276
- return _extends$2({
2320
+ return _extends$1({
2277
2321
  paddingLeft: spacing(2),
2278
2322
  paddingRight: spacing(2)
2279
- }, styles3, _defineProperty({}, breakpoints.up("sm"), _extends$2({
2323
+ }, styles3, _defineProperty({}, breakpoints.up("sm"), _extends$1({
2280
2324
  paddingLeft: spacing(3),
2281
2325
  paddingRight: spacing(3)
2282
2326
  }, styles3[breakpoints.up("sm")])));
@@ -2410,7 +2454,7 @@ function createPalette(palette) {
2410
2454
  var mainShade = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 500;
2411
2455
  var lightShade = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 300;
2412
2456
  var darkShade = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 700;
2413
- color = _extends$2({}, color);
2457
+ color = _extends$1({}, color);
2414
2458
  if (!color.main && color[mainShade]) {
2415
2459
  color.main = color[mainShade];
2416
2460
  }
@@ -2436,7 +2480,7 @@ function createPalette(palette) {
2436
2480
  console.error("Material-UI: The palette type `".concat(type, "` is not supported."));
2437
2481
  }
2438
2482
  }
2439
- var paletteOutput = deepmerge(_extends$2({
2483
+ var paletteOutput = deepmerge(_extends$1({
2440
2484
  // A collection of common colors.
2441
2485
  common: common$1,
2442
2486
  // The palette type, can be light or dark.
@@ -2501,7 +2545,7 @@ function createTypography(palette, typography) {
2501
2545
  return "".concat(size / htmlFontSize * coef, "rem");
2502
2546
  };
2503
2547
  var buildVariant = function buildVariant2(fontWeight, size, lineHeight, letterSpacing, casing) {
2504
- return _extends$2({
2548
+ return _extends$1({
2505
2549
  fontFamily,
2506
2550
  fontWeight,
2507
2551
  fontSize: pxToRem(size),
@@ -2526,7 +2570,7 @@ function createTypography(palette, typography) {
2526
2570
  caption: buildVariant(fontWeightRegular, 12, 1.66, 0.4),
2527
2571
  overline: buildVariant(fontWeightRegular, 12, 2.66, 1, caseAllCaps)
2528
2572
  };
2529
- return deepmerge(_extends$2({
2573
+ return deepmerge(_extends$1({
2530
2574
  htmlFontSize,
2531
2575
  pxToRem,
2532
2576
  round: roundWithDeprecationWarning,
@@ -2556,6 +2600,14 @@ var shape = {
2556
2600
  const shape$1 = shape;
2557
2601
  var responsivePropType = PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.object, PropTypes.array]);
2558
2602
  const responsivePropType$1 = responsivePropType;
2603
+ function _typeof$1(obj) {
2604
+ "@babel/helpers - typeof";
2605
+ return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj2) {
2606
+ return typeof obj2;
2607
+ } : function(obj2) {
2608
+ return obj2 && "function" == typeof Symbol && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
2609
+ }, _typeof$1(obj);
2610
+ }
2559
2611
  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"];
2560
2612
  function createUnarySpacing(theme) {
2561
2613
  var themeSpacing = theme.spacing || 8;
@@ -2839,50 +2891,12 @@ function warning(condition, message) {
2839
2891
  }
2840
2892
  }
2841
2893
  }
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) {
2894
+ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function(obj) {
2857
2895
  return typeof obj;
2858
2896
  } : function(obj) {
2859
2897
  return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
2860
2898
  };
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
- }
2899
+ var isBrowser$1 = (typeof window === "undefined" ? "undefined" : _typeof(window)) === "object" && (typeof document === "undefined" ? "undefined" : _typeof(document)) === "object" && document.nodeType === 9;
2886
2900
  function _defineProperties(target, props) {
2887
2901
  for (var i = 0; i < props.length; i++) {
2888
2902
  var descriptor = props[i];
@@ -3160,7 +3174,7 @@ var StyleRule = /* @__PURE__ */ function(_BaseStyleRule) {
3160
3174
  _proto2.toString = function toString(options) {
3161
3175
  var sheet = this.options.sheet;
3162
3176
  var link = sheet ? sheet.options.link : false;
3163
- var opts = link ? _extends$1({}, options, {
3177
+ var opts = link ? _extends$2({}, options, {
3164
3178
  allowEmpty: true
3165
3179
  }) : options;
3166
3180
  return toCss(this.selectorText, this.style, opts);
@@ -3207,7 +3221,7 @@ var ConditionalRule = /* @__PURE__ */ function() {
3207
3221
  this.at = atMatch ? atMatch[1] : "unknown";
3208
3222
  this.query = options.name || "@" + this.at;
3209
3223
  this.options = options;
3210
- this.rules = new RuleList(_extends$1({}, options, {
3224
+ this.rules = new RuleList(_extends$2({}, options, {
3211
3225
  parent: this
3212
3226
  }));
3213
3227
  for (var name in styles3) {
@@ -3279,11 +3293,11 @@ var KeyframesRule = /* @__PURE__ */ function() {
3279
3293
  this.options = options;
3280
3294
  var scoped = options.scoped, sheet = options.sheet, generateId = options.generateId;
3281
3295
  this.id = scoped === false ? this.name : escape(generateId(this, sheet));
3282
- this.rules = new RuleList(_extends$1({}, options, {
3296
+ this.rules = new RuleList(_extends$2({}, options, {
3283
3297
  parent: this
3284
3298
  }));
3285
3299
  for (var name in frames) {
3286
- this.rules.add(name, frames[name], _extends$1({}, options, {
3300
+ this.rules.add(name, frames[name], _extends$2({}, options, {
3287
3301
  parent: this
3288
3302
  }));
3289
3303
  }
@@ -3368,7 +3382,7 @@ var KeyframeRule = /* @__PURE__ */ function(_BaseStyleRule) {
3368
3382
  _proto.toString = function toString(options) {
3369
3383
  var sheet = this.options.sheet;
3370
3384
  var link = sheet ? sheet.options.link : false;
3371
- var opts = link ? _extends$1({}, options, {
3385
+ var opts = link ? _extends$2({}, options, {
3372
3386
  allowEmpty: true
3373
3387
  }) : options;
3374
3388
  return toCss(this.key, this.style, opts);
@@ -3492,7 +3506,7 @@ var RuleList = /* @__PURE__ */ function() {
3492
3506
  var _proto = RuleList2.prototype;
3493
3507
  _proto.add = function add(name, decl, ruleOptions) {
3494
3508
  var _this$options = this.options, parent = _this$options.parent, sheet = _this$options.sheet, jss2 = _this$options.jss, Renderer = _this$options.Renderer, generateId = _this$options.generateId, scoped = _this$options.scoped;
3495
- var options = _extends$1({
3509
+ var options = _extends$2({
3496
3510
  classes: this.classes,
3497
3511
  parent,
3498
3512
  sheet,
@@ -3528,7 +3542,7 @@ var RuleList = /* @__PURE__ */ function() {
3528
3542
  }
3529
3543
  var options = ruleOptions;
3530
3544
  if (oldIndex !== -1)
3531
- options = _extends$1({}, ruleOptions, {
3545
+ options = _extends$2({}, ruleOptions, {
3532
3546
  index: oldIndex
3533
3547
  });
3534
3548
  return this.add(name, decl, options);
@@ -3641,7 +3655,7 @@ var StyleSheet = /* @__PURE__ */ function() {
3641
3655
  this.deployed = false;
3642
3656
  this.classes = {};
3643
3657
  this.keyframes = {};
3644
- this.options = _extends$1({}, options, {
3658
+ this.options = _extends$2({}, options, {
3645
3659
  sheet: this,
3646
3660
  parent: this,
3647
3661
  classes: this.classes,
@@ -4260,7 +4274,7 @@ var Jss = /* @__PURE__ */ function() {
4260
4274
  this.options.createGenerateId = options.createGenerateId;
4261
4275
  }
4262
4276
  if (options.id) {
4263
- this.options.id = _extends$1({}, this.options.id, options.id);
4277
+ this.options.id = _extends$2({}, this.options.id, options.id);
4264
4278
  }
4265
4279
  if (options.createGenerateId || options.id) {
4266
4280
  this.generateId = this.options.createGenerateId(this.options.id);
@@ -4282,7 +4296,7 @@ var Jss = /* @__PURE__ */ function() {
4282
4296
  if (typeof index !== "number") {
4283
4297
  index = sheets.index === 0 ? 0 : sheets.index + 1;
4284
4298
  }
4285
- var sheet = new StyleSheet(styles3, _extends$1({}, options, {
4299
+ var sheet = new StyleSheet(styles3, _extends$2({}, options, {
4286
4300
  jss: this,
4287
4301
  generateId: options.generateId || this.generateId,
4288
4302
  insertionPoint: this.options.insertionPoint,
@@ -4307,7 +4321,7 @@ var Jss = /* @__PURE__ */ function() {
4307
4321
  if (typeof name === "object") {
4308
4322
  return this.createRule(void 0, name, style);
4309
4323
  }
4310
- var ruleOptions = _extends$1({}, options, {
4324
+ var ruleOptions = _extends$2({}, options, {
4311
4325
  name,
4312
4326
  jss: this,
4313
4327
  Renderer: this.options.Renderer
@@ -4418,7 +4432,7 @@ var GlobalContainerRule = /* @__PURE__ */ function() {
4418
4432
  this.isProcessed = false;
4419
4433
  this.key = key;
4420
4434
  this.options = options;
4421
- this.rules = new RuleList(_extends$2({}, options, {
4435
+ this.rules = new RuleList(_extends$1({}, options, {
4422
4436
  parent: this
4423
4437
  }));
4424
4438
  for (var selector in styles3) {
@@ -4458,7 +4472,7 @@ var GlobalPrefixedRule = /* @__PURE__ */ function() {
4458
4472
  this.key = key;
4459
4473
  this.options = options;
4460
4474
  var selector = key.substr(atPrefix.length);
4461
- this.rule = options.jss.createRule(selector, style, _extends$2({}, options, {
4475
+ this.rule = options.jss.createRule(selector, style, _extends$1({}, options, {
4462
4476
  parent: this
4463
4477
  }));
4464
4478
  }
@@ -4485,7 +4499,7 @@ function handleNestedGlobalContainerRule(rule, sheet) {
4485
4499
  if (!rules)
4486
4500
  return;
4487
4501
  for (var name in rules) {
4488
- sheet.addRule(name, rules[name], _extends$2({}, options, {
4502
+ sheet.addRule(name, rules[name], _extends$1({}, options, {
4489
4503
  selector: addScope(name, rule.selector)
4490
4504
  }));
4491
4505
  }
@@ -4497,7 +4511,7 @@ function handlePrefixedGlobalRule(rule, sheet) {
4497
4511
  if (prop[0] !== "@" || prop.substr(0, at.length) !== at)
4498
4512
  continue;
4499
4513
  var selector = addScope(prop.substr(at.length), rule.selector);
4500
- sheet.addRule(selector, style[prop], _extends$2({}, options, {
4514
+ sheet.addRule(selector, style[prop], _extends$1({}, options, {
4501
4515
  selector
4502
4516
  }));
4503
4517
  delete style[prop];
@@ -4566,12 +4580,12 @@ function jssNested() {
4566
4580
  }
4567
4581
  function getOptions(rule, container, prevOptions) {
4568
4582
  if (prevOptions)
4569
- return _extends$1({}, prevOptions, {
4583
+ return _extends$2({}, prevOptions, {
4570
4584
  index: prevOptions.index + 1
4571
4585
  });
4572
4586
  var nestingLevel = rule.options.nestingLevel;
4573
4587
  nestingLevel = nestingLevel === void 0 ? 1 : nestingLevel + 1;
4574
- var options = _extends$1({}, rule.options, {
4588
+ var options = _extends$2({}, rule.options, {
4575
4589
  nestingLevel,
4576
4590
  index: container.indexOf(rule) + 1
4577
4591
  // We don't need the parent name to be set options for chlid.
@@ -4599,11 +4613,11 @@ function jssNested() {
4599
4613
  selector = selector.replace(refRegExp, replaceRef3);
4600
4614
  var name = styleRule.key + "-" + prop;
4601
4615
  if ("replaceRule" in container) {
4602
- container.replaceRule(name, style[prop], _extends$1({}, options, {
4616
+ container.replaceRule(name, style[prop], _extends$2({}, options, {
4603
4617
  selector
4604
4618
  }));
4605
4619
  } else {
4606
- container.addRule(name, style[prop], _extends$1({}, options, {
4620
+ container.addRule(name, style[prop], _extends$2({}, options, {
4607
4621
  selector
4608
4622
  }));
4609
4623
  }
@@ -5373,7 +5387,7 @@ function mergeClasses() {
5373
5387
  if (!newClasses) {
5374
5388
  return baseClasses;
5375
5389
  }
5376
- var nextClasses = _extends$2({}, baseClasses);
5390
+ var nextClasses = _extends$1({}, baseClasses);
5377
5391
  {
5378
5392
  if (typeof newClasses === "string") {
5379
5393
  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"));
@@ -5445,7 +5459,7 @@ var injectFirstNode;
5445
5459
  function StylesProvider(props) {
5446
5460
  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"]);
5447
5461
  var outerOptions = React__default.useContext(StylesContext);
5448
- var context = _extends$2({}, outerOptions, {
5462
+ var context = _extends$1({}, outerOptions, {
5449
5463
  disableGeneration
5450
5464
  }, localOptions);
5451
5465
  {
@@ -5550,7 +5564,7 @@ const noopTheme$1 = noopTheme;
5550
5564
  function getStylesCreator(stylesOrCreator) {
5551
5565
  var themingEnabled = typeof stylesOrCreator === "function";
5552
5566
  {
5553
- if (_typeof$2(stylesOrCreator) !== "object" && !themingEnabled) {
5567
+ if (_typeof$1(stylesOrCreator) !== "object" && !themingEnabled) {
5554
5568
  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"));
5555
5569
  }
5556
5570
  }
@@ -5571,7 +5585,7 @@ function getStylesCreator(stylesOrCreator) {
5571
5585
  return styles3;
5572
5586
  }
5573
5587
  var overrides = theme.overrides[name];
5574
- var stylesWithOverrides = _extends$2({}, styles3);
5588
+ var stylesWithOverrides = _extends$1({}, styles3);
5575
5589
  Object.keys(overrides).forEach(function(key) {
5576
5590
  {
5577
5591
  if (!stylesWithOverrides[key]) {
@@ -5632,7 +5646,7 @@ function attach(_ref2, props) {
5632
5646
  };
5633
5647
  multiKeyStore$1.set(stylesOptions.sheetsManager, stylesCreator, theme, sheetManager);
5634
5648
  }
5635
- var options = _extends$2({}, stylesCreator.options, stylesOptions, {
5649
+ var options = _extends$1({}, stylesCreator.options, stylesOptions, {
5636
5650
  theme,
5637
5651
  flip: typeof stylesOptions.flip === "boolean" ? stylesOptions.flip : theme.direction === "rtl"
5638
5652
  });
@@ -5645,7 +5659,7 @@ function attach(_ref2, props) {
5645
5659
  }
5646
5660
  var styles3 = stylesCreator.create(theme, name);
5647
5661
  if (!staticSheet) {
5648
- staticSheet = stylesOptions.jss.createStyleSheet(styles3, _extends$2({
5662
+ staticSheet = stylesOptions.jss.createStyleSheet(styles3, _extends$1({
5649
5663
  link: false
5650
5664
  }, options));
5651
5665
  staticSheet.attach();
@@ -5660,7 +5674,7 @@ function attach(_ref2, props) {
5660
5674
  sheetManager.dynamicStyles = getDynamicStyles(styles3);
5661
5675
  }
5662
5676
  if (sheetManager.dynamicStyles) {
5663
- var dynamicSheet = stylesOptions.jss.createStyleSheet(sheetManager.dynamicStyles, _extends$2({
5677
+ var dynamicSheet = stylesOptions.jss.createStyleSheet(sheetManager.dynamicStyles, _extends$1({
5664
5678
  link: true
5665
5679
  }, options));
5666
5680
  dynamicSheet.update(props);
@@ -5742,7 +5756,7 @@ function makeStyles$1(stylesOrCreator) {
5742
5756
  var useStyles2 = function useStyles3() {
5743
5757
  var props = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
5744
5758
  var theme = useTheme() || defaultTheme2;
5745
- var stylesOptions = _extends$2({}, React__default.useContext(StylesContext), stylesOptions2);
5759
+ var stylesOptions = _extends$1({}, React__default.useContext(StylesContext), stylesOptions2);
5746
5760
  var instance = React__default.useRef();
5747
5761
  var shouldUpdate = React__default.useRef();
5748
5762
  useSynchronousEffect(function() {
@@ -5892,7 +5906,7 @@ var withStyles$1 = function withStyles(stylesOrCreator) {
5892
5906
  }
5893
5907
  }
5894
5908
  }
5895
- var useStyles2 = makeStyles$1(stylesOrCreator, _extends$2({
5909
+ var useStyles2 = makeStyles$1(stylesOrCreator, _extends$1({
5896
5910
  defaultTheme: defaultTheme2,
5897
5911
  Component,
5898
5912
  name: name || Component.displayName,
@@ -5901,7 +5915,7 @@ var withStyles$1 = function withStyles(stylesOrCreator) {
5901
5915
  var WithStyles = /* @__PURE__ */ React__default.forwardRef(function WithStyles2(props, ref) {
5902
5916
  props.classes;
5903
5917
  var innerRef = props.innerRef, other = _objectWithoutProperties(props, ["classes", "innerRef"]);
5904
- var classes = useStyles2(_extends$2({}, Component.defaultProps, props));
5918
+ var classes = useStyles2(_extends$1({}, Component.defaultProps, props));
5905
5919
  var theme;
5906
5920
  var more = other;
5907
5921
  if (typeof name === "string" || withTheme) {
@@ -5917,7 +5931,7 @@ var withStyles$1 = function withStyles(stylesOrCreator) {
5917
5931
  more.theme = theme;
5918
5932
  }
5919
5933
  }
5920
- return /* @__PURE__ */ React__default.createElement(Component, _extends$2({
5934
+ return /* @__PURE__ */ React__default.createElement(Component, _extends$1({
5921
5935
  ref: innerRef || ref,
5922
5936
  classes
5923
5937
  }, more));
@@ -5955,12 +5969,12 @@ var defaultTheme = createTheme();
5955
5969
  const defaultTheme$1 = defaultTheme;
5956
5970
  function makeStyles(stylesOrCreator) {
5957
5971
  var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
5958
- return makeStyles$1(stylesOrCreator, _extends$2({
5972
+ return makeStyles$1(stylesOrCreator, _extends$1({
5959
5973
  defaultTheme: defaultTheme$1
5960
5974
  }, options));
5961
5975
  }
5962
5976
  function withStyles2(stylesOrCreator, options) {
5963
- return withStylesWithoutDefault(stylesOrCreator, _extends$2({
5977
+ return withStylesWithoutDefault(stylesOrCreator, _extends$1({
5964
5978
  defaultTheme: defaultTheme$1
5965
5979
  }, options));
5966
5980
  }
@@ -6022,7 +6036,7 @@ var styles$1 = function styles(theme) {
6022
6036
  boxShadow: shadow
6023
6037
  };
6024
6038
  });
6025
- return _extends$2({
6039
+ return _extends$1({
6026
6040
  /* Styles applied to the root element. */
6027
6041
  root: {
6028
6042
  backgroundColor: theme.palette.background.paper,
@@ -6041,7 +6055,7 @@ var styles$1 = function styles(theme) {
6041
6055
  };
6042
6056
  var Paper = /* @__PURE__ */ React.forwardRef(function Paper2(props, ref) {
6043
6057
  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"]);
6044
- return /* @__PURE__ */ React.createElement(Component, _extends$2({
6058
+ return /* @__PURE__ */ React.createElement(Component, _extends$1({
6045
6059
  className: clsx(classes.root, className, variant === "outlined" ? classes.outlined : classes["elevation".concat(elevation)], !square && classes.rounded),
6046
6060
  ref
6047
6061
  }, other));
@@ -7773,10 +7787,10 @@ var Popper = /* @__PURE__ */ React.forwardRef(function Popper2(props, ref) {
7773
7787
  }
7774
7788
  }
7775
7789
  }
7776
- var popper = new PopperJs(getAnchorEl(anchorEl), tooltipRef.current, _extends$2({
7790
+ var popper = new PopperJs(getAnchorEl(anchorEl), tooltipRef.current, _extends$1({
7777
7791
  placement: rtlPlacement
7778
7792
  }, popperOptions, {
7779
- modifiers: _extends$2({}, disablePortal ? {} : {
7793
+ modifiers: _extends$1({}, disablePortal ? {} : {
7780
7794
  // It's using scrollParent by default, we can use the viewport when using a portal.
7781
7795
  preventOverflow: {
7782
7796
  boundariesElement: "window"
@@ -7833,11 +7847,11 @@ var Popper = /* @__PURE__ */ React.forwardRef(function Popper2(props, ref) {
7833
7847
  return /* @__PURE__ */ React.createElement(Portal$1, {
7834
7848
  disablePortal,
7835
7849
  container
7836
- }, /* @__PURE__ */ React.createElement("div", _extends$2({
7850
+ }, /* @__PURE__ */ React.createElement("div", _extends$1({
7837
7851
  ref: handleRef,
7838
7852
  role: "tooltip"
7839
7853
  }, other, {
7840
- style: _extends$2({
7854
+ style: _extends$1({
7841
7855
  // Prevents scroll issue, waiting for Popper.js to add this style once initiated.
7842
7856
  position: "fixed",
7843
7857
  // Fix Popper.js display issue
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitessce/tooltip",
3
- "version": "3.0.1",
3
+ "version": "3.1.1",
4
4
  "author": "Gehlenborg Lab",
5
5
  "homepage": "http://vitessce.io",
6
6
  "repository": {
@@ -17,7 +17,7 @@
17
17
  ],
18
18
  "dependencies": {
19
19
  "@material-ui/core": "~4.12.3",
20
- "@vitessce/vit-s": "3.0.1"
20
+ "@vitessce/vit-s": "3.1.1"
21
21
  },
22
22
  "devDependencies": {
23
23
  "react": "^18.0.0",