@vitessce/tooltip 3.3.12 → 3.4.0
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.
- package/dist/index.js +77 -67
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1033,16 +1033,16 @@ function _extends$2() {
|
|
|
1033
1033
|
};
|
|
1034
1034
|
return _extends$2.apply(this, arguments);
|
|
1035
1035
|
}
|
|
1036
|
-
function _typeof$
|
|
1036
|
+
function _typeof$1(obj) {
|
|
1037
1037
|
"@babel/helpers - typeof";
|
|
1038
|
-
return _typeof$
|
|
1038
|
+
return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj2) {
|
|
1039
1039
|
return typeof obj2;
|
|
1040
1040
|
} : function(obj2) {
|
|
1041
1041
|
return obj2 && "function" == typeof Symbol && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
|
|
1042
|
-
}, _typeof$
|
|
1042
|
+
}, _typeof$1(obj);
|
|
1043
1043
|
}
|
|
1044
1044
|
function isPlainObject(item) {
|
|
1045
|
-
return item && _typeof$
|
|
1045
|
+
return item && _typeof$1(item) === "object" && item.constructor === Object;
|
|
1046
1046
|
}
|
|
1047
1047
|
function deepmerge(target, source) {
|
|
1048
1048
|
var options = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
|
|
@@ -1796,12 +1796,12 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
1796
1796
|
var propTypesExports = propTypes.exports;
|
|
1797
1797
|
const PropTypes = /* @__PURE__ */ getDefaultExportFromCjs(propTypesExports);
|
|
1798
1798
|
function _toPrimitive(input, hint) {
|
|
1799
|
-
if (_typeof$
|
|
1799
|
+
if (_typeof$1(input) !== "object" || input === null)
|
|
1800
1800
|
return input;
|
|
1801
1801
|
var prim = input[Symbol.toPrimitive];
|
|
1802
1802
|
if (prim !== void 0) {
|
|
1803
1803
|
var res = prim.call(input, hint || "default");
|
|
1804
|
-
if (_typeof$
|
|
1804
|
+
if (_typeof$1(res) !== "object")
|
|
1805
1805
|
return res;
|
|
1806
1806
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
1807
1807
|
}
|
|
@@ -1809,7 +1809,7 @@ function _toPrimitive(input, hint) {
|
|
|
1809
1809
|
}
|
|
1810
1810
|
function _toPropertyKey(arg) {
|
|
1811
1811
|
var key = _toPrimitive(arg, "string");
|
|
1812
|
-
return _typeof$
|
|
1812
|
+
return _typeof$1(key) === "symbol" ? key : String(key);
|
|
1813
1813
|
}
|
|
1814
1814
|
function _defineProperty$1(obj, key, value) {
|
|
1815
1815
|
key = _toPropertyKey(key);
|
|
@@ -2058,7 +2058,7 @@ function getDisplayName(Component) {
|
|
|
2058
2058
|
if (typeof Component === "function") {
|
|
2059
2059
|
return getFunctionComponentName(Component, "Component");
|
|
2060
2060
|
}
|
|
2061
|
-
if (_typeof$
|
|
2061
|
+
if (_typeof$1(Component) === "object") {
|
|
2062
2062
|
switch (Component.$$typeof) {
|
|
2063
2063
|
case reactIsExports.ForwardRef:
|
|
2064
2064
|
return getWrappedName(Component, Component.render, "ForwardRef");
|
|
@@ -2227,7 +2227,7 @@ function _objectWithoutPropertiesLoose$1(source, excluded) {
|
|
|
2227
2227
|
}
|
|
2228
2228
|
return target;
|
|
2229
2229
|
}
|
|
2230
|
-
function _objectWithoutProperties(source, excluded) {
|
|
2230
|
+
function _objectWithoutProperties$1(source, excluded) {
|
|
2231
2231
|
if (source == null)
|
|
2232
2232
|
return {};
|
|
2233
2233
|
var target = _objectWithoutPropertiesLoose$1(source, excluded);
|
|
@@ -2267,7 +2267,7 @@ function createBreakpoints(breakpoints) {
|
|
|
2267
2267
|
md: 960,
|
|
2268
2268
|
lg: 1280,
|
|
2269
2269
|
xl: 1920
|
|
2270
|
-
} : _breakpoints$values, _breakpoints$unit = breakpoints.unit, unit = _breakpoints$unit === void 0 ? "px" : _breakpoints$unit, _breakpoints$step = breakpoints.step, step = _breakpoints$step === void 0 ? 5 : _breakpoints$step, other = _objectWithoutProperties(breakpoints, ["values", "unit", "step"]);
|
|
2270
|
+
} : _breakpoints$values, _breakpoints$unit = breakpoints.unit, unit = _breakpoints$unit === void 0 ? "px" : _breakpoints$unit, _breakpoints$step = breakpoints.step, step = _breakpoints$step === void 0 ? 5 : _breakpoints$step, other = _objectWithoutProperties$1(breakpoints, ["values", "unit", "step"]);
|
|
2271
2271
|
function up(key) {
|
|
2272
2272
|
var value = typeof values[key] === "number" ? values[key] : key;
|
|
2273
2273
|
return "@media (min-width:".concat(value).concat(unit, ")");
|
|
@@ -2439,7 +2439,7 @@ function createPalette(palette) {
|
|
|
2439
2439
|
light: green$1[300],
|
|
2440
2440
|
main: green$1[500],
|
|
2441
2441
|
dark: green$1[700]
|
|
2442
|
-
} : _palette$success, _palette$type = palette.type, type = _palette$type === void 0 ? "light" : _palette$type, _palette$contrastThre = palette.contrastThreshold, contrastThreshold = _palette$contrastThre === void 0 ? 3 : _palette$contrastThre, _palette$tonalOffset = palette.tonalOffset, tonalOffset = _palette$tonalOffset === void 0 ? 0.2 : _palette$tonalOffset, other = _objectWithoutProperties(palette, ["primary", "secondary", "error", "warning", "info", "success", "type", "contrastThreshold", "tonalOffset"]);
|
|
2442
|
+
} : _palette$success, _palette$type = palette.type, type = _palette$type === void 0 ? "light" : _palette$type, _palette$contrastThre = palette.contrastThreshold, contrastThreshold = _palette$contrastThre === void 0 ? 3 : _palette$contrastThre, _palette$tonalOffset = palette.tonalOffset, tonalOffset = _palette$tonalOffset === void 0 ? 0.2 : _palette$tonalOffset, other = _objectWithoutProperties$1(palette, ["primary", "secondary", "error", "warning", "info", "success", "type", "contrastThreshold", "tonalOffset"]);
|
|
2443
2443
|
function getContrastText(background) {
|
|
2444
2444
|
var contrastText = getContrastRatio(background, dark.text.primary) >= contrastThreshold ? dark.text.primary : light.text.primary;
|
|
2445
2445
|
{
|
|
@@ -2531,7 +2531,7 @@ var caseAllCaps = {
|
|
|
2531
2531
|
};
|
|
2532
2532
|
var defaultFontFamily = '"Roboto", "Helvetica", "Arial", sans-serif';
|
|
2533
2533
|
function createTypography(palette, typography) {
|
|
2534
|
-
var _ref = typeof typography === "function" ? typography(palette) : typography, _ref$fontFamily = _ref.fontFamily, fontFamily = _ref$fontFamily === void 0 ? defaultFontFamily : _ref$fontFamily, _ref$fontSize = _ref.fontSize, fontSize = _ref$fontSize === void 0 ? 14 : _ref$fontSize, _ref$fontWeightLight = _ref.fontWeightLight, fontWeightLight = _ref$fontWeightLight === void 0 ? 300 : _ref$fontWeightLight, _ref$fontWeightRegula = _ref.fontWeightRegular, fontWeightRegular = _ref$fontWeightRegula === void 0 ? 400 : _ref$fontWeightRegula, _ref$fontWeightMedium = _ref.fontWeightMedium, fontWeightMedium = _ref$fontWeightMedium === void 0 ? 500 : _ref$fontWeightMedium, _ref$fontWeightBold = _ref.fontWeightBold, fontWeightBold = _ref$fontWeightBold === void 0 ? 700 : _ref$fontWeightBold, _ref$htmlFontSize = _ref.htmlFontSize, htmlFontSize = _ref$htmlFontSize === void 0 ? 16 : _ref$htmlFontSize, allVariants = _ref.allVariants, pxToRem2 = _ref.pxToRem, other = _objectWithoutProperties(_ref, ["fontFamily", "fontSize", "fontWeightLight", "fontWeightRegular", "fontWeightMedium", "fontWeightBold", "htmlFontSize", "allVariants", "pxToRem"]);
|
|
2534
|
+
var _ref = typeof typography === "function" ? typography(palette) : typography, _ref$fontFamily = _ref.fontFamily, fontFamily = _ref$fontFamily === void 0 ? defaultFontFamily : _ref$fontFamily, _ref$fontSize = _ref.fontSize, fontSize = _ref$fontSize === void 0 ? 14 : _ref$fontSize, _ref$fontWeightLight = _ref.fontWeightLight, fontWeightLight = _ref$fontWeightLight === void 0 ? 300 : _ref$fontWeightLight, _ref$fontWeightRegula = _ref.fontWeightRegular, fontWeightRegular = _ref$fontWeightRegula === void 0 ? 400 : _ref$fontWeightRegula, _ref$fontWeightMedium = _ref.fontWeightMedium, fontWeightMedium = _ref$fontWeightMedium === void 0 ? 500 : _ref$fontWeightMedium, _ref$fontWeightBold = _ref.fontWeightBold, fontWeightBold = _ref$fontWeightBold === void 0 ? 700 : _ref$fontWeightBold, _ref$htmlFontSize = _ref.htmlFontSize, htmlFontSize = _ref$htmlFontSize === void 0 ? 16 : _ref$htmlFontSize, allVariants = _ref.allVariants, pxToRem2 = _ref.pxToRem, other = _objectWithoutProperties$1(_ref, ["fontFamily", "fontSize", "fontWeightLight", "fontWeightRegular", "fontWeightMedium", "fontWeightBold", "htmlFontSize", "allVariants", "pxToRem"]);
|
|
2535
2535
|
{
|
|
2536
2536
|
if (typeof fontSize !== "number") {
|
|
2537
2537
|
console.error("Material-UI: `fontSize` is required to be a number.");
|
|
@@ -2600,13 +2600,39 @@ var shape = {
|
|
|
2600
2600
|
const shape$1 = shape;
|
|
2601
2601
|
var responsivePropType = PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.object, PropTypes.array]);
|
|
2602
2602
|
const responsivePropType$1 = responsivePropType;
|
|
2603
|
-
function
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
|
|
2603
|
+
function _arrayLikeToArray(arr, len) {
|
|
2604
|
+
if (len == null || len > arr.length)
|
|
2605
|
+
len = arr.length;
|
|
2606
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
2607
|
+
arr2[i] = arr[i];
|
|
2608
|
+
return arr2;
|
|
2609
|
+
}
|
|
2610
|
+
function _arrayWithoutHoles(arr) {
|
|
2611
|
+
if (Array.isArray(arr))
|
|
2612
|
+
return _arrayLikeToArray(arr);
|
|
2613
|
+
}
|
|
2614
|
+
function _iterableToArray(iter) {
|
|
2615
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
2616
|
+
return Array.from(iter);
|
|
2617
|
+
}
|
|
2618
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
2619
|
+
if (!o)
|
|
2620
|
+
return;
|
|
2621
|
+
if (typeof o === "string")
|
|
2622
|
+
return _arrayLikeToArray(o, minLen);
|
|
2623
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
2624
|
+
if (n === "Object" && o.constructor)
|
|
2625
|
+
n = o.constructor.name;
|
|
2626
|
+
if (n === "Map" || n === "Set")
|
|
2627
|
+
return Array.from(o);
|
|
2628
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
2629
|
+
return _arrayLikeToArray(o, minLen);
|
|
2630
|
+
}
|
|
2631
|
+
function _nonIterableSpread() {
|
|
2632
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
2633
|
+
}
|
|
2634
|
+
function _toConsumableArray(arr) {
|
|
2635
|
+
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
2610
2636
|
}
|
|
2611
2637
|
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"];
|
|
2612
2638
|
function createUnarySpacing(theme) {
|
|
@@ -2724,7 +2750,7 @@ const transitions = {
|
|
|
2724
2750
|
create: function create() {
|
|
2725
2751
|
var props = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ["all"];
|
|
2726
2752
|
var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
2727
|
-
var _options$duration = options.duration, durationOption = _options$duration === void 0 ? duration.standard : _options$duration, _options$easing = options.easing, easingOption = _options$easing === void 0 ? easing.easeInOut : _options$easing, _options$delay = options.delay, delay = _options$delay === void 0 ? 0 : _options$delay, other = _objectWithoutProperties(options, ["duration", "easing", "delay"]);
|
|
2753
|
+
var _options$duration = options.duration, durationOption = _options$duration === void 0 ? duration.standard : _options$duration, _options$easing = options.easing, easingOption = _options$easing === void 0 ? easing.easeInOut : _options$easing, _options$delay = options.delay, delay = _options$delay === void 0 ? 0 : _options$delay, other = _objectWithoutProperties$1(options, ["duration", "easing", "delay"]);
|
|
2728
2754
|
{
|
|
2729
2755
|
var isString = function isString2(value) {
|
|
2730
2756
|
return typeof value === "string";
|
|
@@ -2772,7 +2798,7 @@ var zIndex = {
|
|
|
2772
2798
|
const zIndex$1 = zIndex;
|
|
2773
2799
|
function createTheme() {
|
|
2774
2800
|
var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
2775
|
-
var _options$breakpoints = options.breakpoints, breakpointsInput = _options$breakpoints === void 0 ? {} : _options$breakpoints, _options$mixins = options.mixins, mixinsInput = _options$mixins === void 0 ? {} : _options$mixins, _options$palette = options.palette, paletteInput = _options$palette === void 0 ? {} : _options$palette, spacingInput = options.spacing, _options$typography = options.typography, typographyInput = _options$typography === void 0 ? {} : _options$typography, other = _objectWithoutProperties(options, ["breakpoints", "mixins", "palette", "spacing", "typography"]);
|
|
2801
|
+
var _options$breakpoints = options.breakpoints, breakpointsInput = _options$breakpoints === void 0 ? {} : _options$breakpoints, _options$mixins = options.mixins, mixinsInput = _options$mixins === void 0 ? {} : _options$mixins, _options$palette = options.palette, paletteInput = _options$palette === void 0 ? {} : _options$palette, spacingInput = options.spacing, _options$typography = options.typography, typographyInput = _options$typography === void 0 ? {} : _options$typography, other = _objectWithoutProperties$1(options, ["breakpoints", "mixins", "palette", "spacing", "typography"]);
|
|
2776
2802
|
var palette = createPalette(paletteInput);
|
|
2777
2803
|
var breakpoints = createBreakpoints(breakpointsInput);
|
|
2778
2804
|
var spacing = createSpacing(spacingInput);
|
|
@@ -4901,40 +4927,6 @@ function defaultUnit(options) {
|
|
|
4901
4927
|
onChangeValue: onChangeValue2
|
|
4902
4928
|
};
|
|
4903
4929
|
}
|
|
4904
|
-
function _arrayLikeToArray(arr, len) {
|
|
4905
|
-
if (len == null || len > arr.length)
|
|
4906
|
-
len = arr.length;
|
|
4907
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
4908
|
-
arr2[i] = arr[i];
|
|
4909
|
-
return arr2;
|
|
4910
|
-
}
|
|
4911
|
-
function _arrayWithoutHoles(arr) {
|
|
4912
|
-
if (Array.isArray(arr))
|
|
4913
|
-
return _arrayLikeToArray(arr);
|
|
4914
|
-
}
|
|
4915
|
-
function _iterableToArray(iter) {
|
|
4916
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
4917
|
-
return Array.from(iter);
|
|
4918
|
-
}
|
|
4919
|
-
function _unsupportedIterableToArray(o, minLen) {
|
|
4920
|
-
if (!o)
|
|
4921
|
-
return;
|
|
4922
|
-
if (typeof o === "string")
|
|
4923
|
-
return _arrayLikeToArray(o, minLen);
|
|
4924
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
4925
|
-
if (n === "Object" && o.constructor)
|
|
4926
|
-
n = o.constructor.name;
|
|
4927
|
-
if (n === "Map" || n === "Set")
|
|
4928
|
-
return Array.from(o);
|
|
4929
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
4930
|
-
return _arrayLikeToArray(o, minLen);
|
|
4931
|
-
}
|
|
4932
|
-
function _nonIterableSpread() {
|
|
4933
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
4934
|
-
}
|
|
4935
|
-
function _toConsumableArray(arr) {
|
|
4936
|
-
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
4937
|
-
}
|
|
4938
4930
|
var js = "";
|
|
4939
4931
|
var css = "";
|
|
4940
4932
|
var vendor = "";
|
|
@@ -5381,13 +5373,31 @@ function jssPreset() {
|
|
|
5381
5373
|
]
|
|
5382
5374
|
};
|
|
5383
5375
|
}
|
|
5376
|
+
function _objectWithoutProperties(source, excluded) {
|
|
5377
|
+
if (source == null)
|
|
5378
|
+
return {};
|
|
5379
|
+
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
5380
|
+
var key, i;
|
|
5381
|
+
if (Object.getOwnPropertySymbols) {
|
|
5382
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
5383
|
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
5384
|
+
key = sourceSymbolKeys[i];
|
|
5385
|
+
if (excluded.indexOf(key) >= 0)
|
|
5386
|
+
continue;
|
|
5387
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key))
|
|
5388
|
+
continue;
|
|
5389
|
+
target[key] = source[key];
|
|
5390
|
+
}
|
|
5391
|
+
}
|
|
5392
|
+
return target;
|
|
5393
|
+
}
|
|
5384
5394
|
function mergeClasses() {
|
|
5385
5395
|
var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
5386
5396
|
var baseClasses = options.baseClasses, newClasses = options.newClasses, Component = options.Component;
|
|
5387
5397
|
if (!newClasses) {
|
|
5388
5398
|
return baseClasses;
|
|
5389
5399
|
}
|
|
5390
|
-
var nextClasses = _extends$
|
|
5400
|
+
var nextClasses = _extends$2({}, baseClasses);
|
|
5391
5401
|
{
|
|
5392
5402
|
if (typeof newClasses === "string") {
|
|
5393
5403
|
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"));
|
|
@@ -5459,7 +5469,7 @@ var injectFirstNode;
|
|
|
5459
5469
|
function StylesProvider(props) {
|
|
5460
5470
|
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"]);
|
|
5461
5471
|
var outerOptions = React__default.useContext(StylesContext);
|
|
5462
|
-
var context = _extends$
|
|
5472
|
+
var context = _extends$2({}, outerOptions, {
|
|
5463
5473
|
disableGeneration
|
|
5464
5474
|
}, localOptions);
|
|
5465
5475
|
{
|
|
@@ -5585,7 +5595,7 @@ function getStylesCreator(stylesOrCreator) {
|
|
|
5585
5595
|
return styles3;
|
|
5586
5596
|
}
|
|
5587
5597
|
var overrides = theme.overrides[name];
|
|
5588
|
-
var stylesWithOverrides = _extends$
|
|
5598
|
+
var stylesWithOverrides = _extends$2({}, styles3);
|
|
5589
5599
|
Object.keys(overrides).forEach(function(key) {
|
|
5590
5600
|
{
|
|
5591
5601
|
if (!stylesWithOverrides[key]) {
|
|
@@ -5646,7 +5656,7 @@ function attach(_ref2, props) {
|
|
|
5646
5656
|
};
|
|
5647
5657
|
multiKeyStore$1.set(stylesOptions.sheetsManager, stylesCreator, theme, sheetManager);
|
|
5648
5658
|
}
|
|
5649
|
-
var options = _extends$
|
|
5659
|
+
var options = _extends$2({}, stylesCreator.options, stylesOptions, {
|
|
5650
5660
|
theme,
|
|
5651
5661
|
flip: typeof stylesOptions.flip === "boolean" ? stylesOptions.flip : theme.direction === "rtl"
|
|
5652
5662
|
});
|
|
@@ -5659,7 +5669,7 @@ function attach(_ref2, props) {
|
|
|
5659
5669
|
}
|
|
5660
5670
|
var styles3 = stylesCreator.create(theme, name);
|
|
5661
5671
|
if (!staticSheet) {
|
|
5662
|
-
staticSheet = stylesOptions.jss.createStyleSheet(styles3, _extends$
|
|
5672
|
+
staticSheet = stylesOptions.jss.createStyleSheet(styles3, _extends$2({
|
|
5663
5673
|
link: false
|
|
5664
5674
|
}, options));
|
|
5665
5675
|
staticSheet.attach();
|
|
@@ -5674,7 +5684,7 @@ function attach(_ref2, props) {
|
|
|
5674
5684
|
sheetManager.dynamicStyles = getDynamicStyles(styles3);
|
|
5675
5685
|
}
|
|
5676
5686
|
if (sheetManager.dynamicStyles) {
|
|
5677
|
-
var dynamicSheet = stylesOptions.jss.createStyleSheet(sheetManager.dynamicStyles, _extends$
|
|
5687
|
+
var dynamicSheet = stylesOptions.jss.createStyleSheet(sheetManager.dynamicStyles, _extends$2({
|
|
5678
5688
|
link: true
|
|
5679
5689
|
}, options));
|
|
5680
5690
|
dynamicSheet.update(props);
|
|
@@ -5756,7 +5766,7 @@ function makeStyles$1(stylesOrCreator) {
|
|
|
5756
5766
|
var useStyles2 = function useStyles3() {
|
|
5757
5767
|
var props = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
5758
5768
|
var theme = useTheme() || defaultTheme2;
|
|
5759
|
-
var stylesOptions = _extends$
|
|
5769
|
+
var stylesOptions = _extends$2({}, React__default.useContext(StylesContext), stylesOptions2);
|
|
5760
5770
|
var instance = React__default.useRef();
|
|
5761
5771
|
var shouldUpdate = React__default.useRef();
|
|
5762
5772
|
useSynchronousEffect(function() {
|
|
@@ -5906,7 +5916,7 @@ var withStyles$1 = function withStyles(stylesOrCreator) {
|
|
|
5906
5916
|
}
|
|
5907
5917
|
}
|
|
5908
5918
|
}
|
|
5909
|
-
var useStyles2 = makeStyles$1(stylesOrCreator, _extends$
|
|
5919
|
+
var useStyles2 = makeStyles$1(stylesOrCreator, _extends$2({
|
|
5910
5920
|
defaultTheme: defaultTheme2,
|
|
5911
5921
|
Component,
|
|
5912
5922
|
name: name || Component.displayName,
|
|
@@ -5915,7 +5925,7 @@ var withStyles$1 = function withStyles(stylesOrCreator) {
|
|
|
5915
5925
|
var WithStyles = /* @__PURE__ */ React__default.forwardRef(function WithStyles2(props, ref) {
|
|
5916
5926
|
props.classes;
|
|
5917
5927
|
var innerRef = props.innerRef, other = _objectWithoutProperties(props, ["classes", "innerRef"]);
|
|
5918
|
-
var classes = useStyles2(_extends$
|
|
5928
|
+
var classes = useStyles2(_extends$2({}, Component.defaultProps, props));
|
|
5919
5929
|
var theme;
|
|
5920
5930
|
var more = other;
|
|
5921
5931
|
if (typeof name === "string" || withTheme) {
|
|
@@ -5931,7 +5941,7 @@ var withStyles$1 = function withStyles(stylesOrCreator) {
|
|
|
5931
5941
|
more.theme = theme;
|
|
5932
5942
|
}
|
|
5933
5943
|
}
|
|
5934
|
-
return /* @__PURE__ */ React__default.createElement(Component, _extends$
|
|
5944
|
+
return /* @__PURE__ */ React__default.createElement(Component, _extends$2({
|
|
5935
5945
|
ref: innerRef || ref,
|
|
5936
5946
|
classes
|
|
5937
5947
|
}, more));
|
|
@@ -6054,7 +6064,7 @@ var styles$1 = function styles(theme) {
|
|
|
6054
6064
|
}, elevations);
|
|
6055
6065
|
};
|
|
6056
6066
|
var Paper = /* @__PURE__ */ React.forwardRef(function Paper2(props, ref) {
|
|
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"]);
|
|
6067
|
+
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$1(props, ["classes", "className", "component", "square", "elevation", "variant"]);
|
|
6058
6068
|
return /* @__PURE__ */ React.createElement(Component, _extends$1({
|
|
6059
6069
|
className: clsx(classes.root, className, variant === "outlined" ? classes.outlined : classes["elevation".concat(elevation)], !square && classes.rounded),
|
|
6060
6070
|
ref
|
|
@@ -7746,7 +7756,7 @@ function getAnchorEl(anchorEl) {
|
|
|
7746
7756
|
var useEnhancedEffect = typeof window !== "undefined" ? React.useLayoutEffect : React.useEffect;
|
|
7747
7757
|
var defaultPopperOptions = {};
|
|
7748
7758
|
var Popper = /* @__PURE__ */ React.forwardRef(function Popper2(props, ref) {
|
|
7749
|
-
var anchorEl = props.anchorEl, children = props.children, container = props.container, _props$disablePortal = props.disablePortal, disablePortal = _props$disablePortal === void 0 ? false : _props$disablePortal, _props$keepMounted = props.keepMounted, keepMounted = _props$keepMounted === void 0 ? false : _props$keepMounted, modifiers2 = props.modifiers, open = props.open, _props$placement = props.placement, initialPlacement = _props$placement === void 0 ? "bottom" : _props$placement, _props$popperOptions = props.popperOptions, popperOptions = _props$popperOptions === void 0 ? defaultPopperOptions : _props$popperOptions, popperRefProp = props.popperRef, style = props.style, _props$transition = props.transition, transition2 = _props$transition === void 0 ? false : _props$transition, other = _objectWithoutProperties(props, ["anchorEl", "children", "container", "disablePortal", "keepMounted", "modifiers", "open", "placement", "popperOptions", "popperRef", "style", "transition"]);
|
|
7759
|
+
var anchorEl = props.anchorEl, children = props.children, container = props.container, _props$disablePortal = props.disablePortal, disablePortal = _props$disablePortal === void 0 ? false : _props$disablePortal, _props$keepMounted = props.keepMounted, keepMounted = _props$keepMounted === void 0 ? false : _props$keepMounted, modifiers2 = props.modifiers, open = props.open, _props$placement = props.placement, initialPlacement = _props$placement === void 0 ? "bottom" : _props$placement, _props$popperOptions = props.popperOptions, popperOptions = _props$popperOptions === void 0 ? defaultPopperOptions : _props$popperOptions, popperRefProp = props.popperRef, style = props.style, _props$transition = props.transition, transition2 = _props$transition === void 0 ? false : _props$transition, other = _objectWithoutProperties$1(props, ["anchorEl", "children", "container", "disablePortal", "keepMounted", "modifiers", "open", "placement", "popperOptions", "popperRef", "style", "transition"]);
|
|
7750
7760
|
var tooltipRef = React.useRef(null);
|
|
7751
7761
|
var ownRef = useForkRef(tooltipRef, ref);
|
|
7752
7762
|
var popperRef = React.useRef(null);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitessce/tooltip",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.4.0",
|
|
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.
|
|
20
|
+
"@vitessce/vit-s": "3.4.0"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"react": "^18.0.0",
|