@luminati-io/uikit 6.3.15 → 6.3.16
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.js +3 -0
- package/dist/index.js.LICENSE.txt +1 -0
- package/dist/index.js.map +1 -0
- package/dist/umd/uikit.development.js +9 -258
- package/dist/umd/uikit.development.js.map +1 -1
- package/dist/umd/uikit.production.min.js +24 -24
- package/package.json +6 -4
- package/index.js +0 -6
@@ -36701,7 +36701,7 @@ var BreadcrumbsItem = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forward
|
|
36701
36701
|
}, [item.text, maxItemWidth]);
|
36702
36702
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_layout__WEBPACK_IMPORTED_MODULE_2__.Flex, {
|
36703
36703
|
ref: ref
|
36704
|
-
}, isLastItem && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tooltip__WEBPACK_IMPORTED_MODULE_4__.
|
36704
|
+
}, isLastItem && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tooltip__WEBPACK_IMPORTED_MODULE_4__.Tooltip, {
|
36705
36705
|
tooltip: isOverflown ? item.text : undefined
|
36706
36706
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(StyledLabel, {
|
36707
36707
|
ref: labelRef,
|
@@ -39593,7 +39593,7 @@ var CopyButton = function CopyButton(_ref) {
|
|
39593
39593
|
resetText();
|
39594
39594
|
});
|
39595
39595
|
}, [code]);
|
39596
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tooltip__WEBPACK_IMPORTED_MODULE_3__.
|
39596
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tooltip__WEBPACK_IMPORTED_MODULE_3__.Tooltip, {
|
39597
39597
|
tooltip: tooltips[state],
|
39598
39598
|
placement: "right"
|
39599
39599
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(StyledButton, {
|
@@ -39950,7 +39950,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
39950
39950
|
/* harmony export */ PT_NECESSITY_INDICATOR: () => (/* binding */ PT_NECESSITY_INDICATOR),
|
39951
39951
|
/* harmony export */ PT_TOOLTIP_PLACEMENT: () => (/* binding */ PT_TOOLTIP_PLACEMENT),
|
39952
39952
|
/* harmony export */ PT_TRIGGER: () => (/* binding */ PT_TRIGGER),
|
39953
|
-
/* harmony export */ TOOLTIP_PLACEMENT: () => (/* binding */ TOOLTIP_PLACEMENT),
|
39954
39953
|
/* harmony export */ Z_INDEX: () => (/* binding */ Z_INDEX)
|
39955
39954
|
/* harmony export */ });
|
39956
39955
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "prop-types");
|
@@ -39980,15 +39979,6 @@ var Z_INDEX = {
|
|
39980
39979
|
};
|
39981
39980
|
var INPUT_VERTICAL_PADDING = 4;
|
39982
39981
|
var INPUT_HORIZONTAL_PADDING = 12;
|
39983
|
-
var TOOLTIP_PLACEMENT = function () {
|
39984
|
-
var positions = ['auto', 'top', 'right', 'bottom', 'left'];
|
39985
|
-
var variants = ['', '-start', '-end'];
|
39986
|
-
return positions.flatMap(function (p) {
|
39987
|
-
return variants.map(function (v) {
|
39988
|
-
return p + v;
|
39989
|
-
});
|
39990
|
-
});
|
39991
|
-
}();
|
39992
39982
|
var PT_INPUT_SHARED = {
|
39993
39983
|
className: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
39994
39984
|
classNamePrefix: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
@@ -40057,7 +40047,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
40057
40047
|
/* harmony export */ Toast: () => (/* reexport safe */ _toast__WEBPACK_IMPORTED_MODULE_19__.Toast),
|
40058
40048
|
/* harmony export */ Toaster: () => (/* reexport safe */ _toast__WEBPACK_IMPORTED_MODULE_19__.Toaster),
|
40059
40049
|
/* harmony export */ Tooltip: () => (/* reexport safe */ _tooltip__WEBPACK_IMPORTED_MODULE_23__.Tooltip),
|
40060
|
-
/* harmony export */ Tooltip2: () => (/* reexport safe */ _tooltip__WEBPACK_IMPORTED_MODULE_23__.Tooltip2),
|
40061
40050
|
/* harmony export */ Typography: () => (/* reexport module object */ _typography__WEBPACK_IMPORTED_MODULE_5__),
|
40062
40051
|
/* harmony export */ globalConfig: () => (/* reexport safe */ _global_config__WEBPACK_IMPORTED_MODULE_26__.globalConfig),
|
40063
40052
|
/* harmony export */ setGlobalConfig: () => (/* reexport safe */ _global_config__WEBPACK_IMPORTED_MODULE_26__.setGlobalConfig),
|
@@ -41354,7 +41343,7 @@ var IconButton = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwa
|
|
41354
41343
|
var ic = _icons__WEBPACK_IMPORTED_MODULE_3__["default"][icon];
|
41355
41344
|
if (!ic) return null;
|
41356
41345
|
var iconSize = size == 'lg' || size == 'md' ? 18 : 16;
|
41357
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tooltip__WEBPACK_IMPORTED_MODULE_6__.
|
41346
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tooltip__WEBPACK_IMPORTED_MODULE_6__.Tooltip, {
|
41358
41347
|
tooltip: tooltip,
|
41359
41348
|
placement: tooltipPlacement
|
41360
41349
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(StyledIconButton, _extends({
|
@@ -41505,7 +41494,7 @@ var Checkbox = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forward
|
|
41505
41494
|
var newValue = !checked;
|
41506
41495
|
onChange === null || onChange === void 0 || onChange(newValue, evt);
|
41507
41496
|
};
|
41508
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_tooltip__WEBPACK_IMPORTED_MODULE_4__.
|
41497
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_tooltip__WEBPACK_IMPORTED_MODULE_4__.Tooltip, {
|
41509
41498
|
tooltip: tooltip,
|
41510
41499
|
tooltipPlacement: tooltipPlacement
|
41511
41500
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(CheckboxWrapper, _extends({
|
@@ -46138,7 +46127,7 @@ var InputLabel = function InputLabel(_ref7) {
|
|
46138
46127
|
}, t(label), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(NecessityIndicator, {
|
46139
46128
|
required: required,
|
46140
46129
|
indicator: necessityIndicator
|
46141
|
-
})), labelIcon && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_tooltip__WEBPACK_IMPORTED_MODULE_7__.
|
46130
|
+
})), labelIcon && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_tooltip__WEBPACK_IMPORTED_MODULE_7__.Tooltip, {
|
46142
46131
|
tooltip: labelTooltip
|
46143
46132
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_5__.Icon, {
|
46144
46133
|
className: (0,_util__WEBPACK_IMPORTED_MODULE_10__.classNames)(classNamePrefix, {
|
@@ -47829,7 +47818,7 @@ var MenuItem = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(fu
|
|
47829
47818
|
ref: ref,
|
47830
47819
|
as: tag,
|
47831
47820
|
role: "menuitem"
|
47832
|
-
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_tooltip__WEBPACK_IMPORTED_MODULE_5__.
|
47821
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_tooltip__WEBPACK_IMPORTED_MODULE_5__.Tooltip, {
|
47833
47822
|
tooltip: tooltip
|
47834
47823
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(MenuItemComp, _extends({}, rest, {
|
47835
47824
|
"aria-disabled": disabled ? true : undefined,
|
@@ -51494,7 +51483,7 @@ var CustomizeButtonItemAction = function CustomizeButtonItemAction(_ref10) {
|
|
51494
51483
|
icon = _ref10.icon;
|
51495
51484
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(CustomizeButtonItemActionWrapper, {
|
51496
51485
|
onClick: onClick
|
51497
|
-
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_tooltip__WEBPACK_IMPORTED_MODULE_6__.
|
51486
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_tooltip__WEBPACK_IMPORTED_MODULE_6__.Tooltip, {
|
51498
51487
|
tooltip: tooltip,
|
51499
51488
|
tooltipPlacement: "top"
|
51500
51489
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_3__.Icon, {
|
@@ -56219,18 +56208,15 @@ var useToaster = function useToaster() {
|
|
56219
56208
|
"use strict";
|
56220
56209
|
__webpack_require__.r(__webpack_exports__);
|
56221
56210
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
56222
|
-
/* harmony export */ Tooltip: () => (/* reexport safe */ _tooltip__WEBPACK_IMPORTED_MODULE_0__.Tooltip)
|
56223
|
-
/* harmony export */ Tooltip2: () => (/* reexport safe */ _tooltip2__WEBPACK_IMPORTED_MODULE_1__.Tooltip2)
|
56211
|
+
/* harmony export */ Tooltip: () => (/* reexport safe */ _tooltip__WEBPACK_IMPORTED_MODULE_0__.Tooltip)
|
56224
56212
|
/* harmony export */ });
|
56225
56213
|
/* harmony import */ var _tooltip__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./tooltip */ "./src/tooltip/tooltip.js");
|
56226
|
-
/* harmony import */ var _tooltip2__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./tooltip2 */ "./src/tooltip/tooltip2.js");
|
56227
56214
|
// LICENSE_CODE ZON
|
56228
56215
|
|
56229
56216
|
|
56230
56217
|
/*jslint react:true*/
|
56231
56218
|
|
56232
56219
|
|
56233
|
-
|
56234
56220
|
/***/ }),
|
56235
56221
|
|
56236
56222
|
/***/ "./src/tooltip/placements.js":
|
@@ -56456,240 +56442,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
56456
56442
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
|
56457
56443
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
56458
56444
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
56459
|
-
/* harmony import */ var react_popper__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react-popper */ "./node_modules/react-popper/lib/esm/usePopper.js");
|
56460
|
-
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! styled-components */ "styled-components");
|
56461
|
-
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_2__);
|
56462
|
-
/* harmony import */ var react_is__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react-is */ "./node_modules/react-is/index.js");
|
56463
|
-
/* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../typography */ "./src/typography/index.js");
|
56464
|
-
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
|
56465
|
-
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../constants */ "./src/constants.js");
|
56466
|
-
// LICENSE_CODE ZON
|
56467
|
-
|
56468
|
-
|
56469
|
-
/*jslint react:true*/
|
56470
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
56471
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
56472
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
56473
|
-
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
56474
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
56475
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
56476
|
-
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
56477
|
-
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
56478
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
56479
|
-
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
56480
|
-
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
56481
|
-
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
56482
|
-
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
56483
|
-
|
56484
|
-
|
56485
|
-
|
56486
|
-
|
56487
|
-
|
56488
|
-
|
56489
|
-
|
56490
|
-
|
56491
|
-
var isPrimitiveElement = function isPrimitiveElement(element) {
|
56492
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().isValidElement(element) && typeof element.type == 'string';
|
56493
|
-
};
|
56494
|
-
var _Tooltip = function Tooltip(_ref) {
|
56495
|
-
var children = _ref.children,
|
56496
|
-
tooltip = _ref.tooltip,
|
56497
|
-
_ref$placement = _ref.placement,
|
56498
|
-
placement = _ref$placement === void 0 ? 'top' : _ref$placement,
|
56499
|
-
wrap = _ref.wrap,
|
56500
|
-
interactive = _ref.interactive,
|
56501
|
-
_ref$trigger = _ref.trigger,
|
56502
|
-
trigger = _ref$trigger === void 0 ? 'hover' : _ref$trigger,
|
56503
|
-
className = _ref.className,
|
56504
|
-
_ref$variant = _ref.variant,
|
56505
|
-
variant = _ref$variant === void 0 ? 'black' : _ref$variant,
|
56506
|
-
_showDelay = _ref.showDelay,
|
56507
|
-
_hideDelay = _ref.hideDelay,
|
56508
|
-
_interactiveHideDelay = _ref.interactiveHideDelay;
|
56509
|
-
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(null),
|
56510
|
-
_useState2 = _slicedToArray(_useState, 2),
|
56511
|
-
referenceElement = _useState2[0],
|
56512
|
-
setReferenceElement = _useState2[1];
|
56513
|
-
var _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(null),
|
56514
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
56515
|
-
popperElement = _useState4[0],
|
56516
|
-
setPopperElement = _useState4[1];
|
56517
|
-
var _useState5 = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(null),
|
56518
|
-
_useState6 = _slicedToArray(_useState5, 2),
|
56519
|
-
arrowElement = _useState6[0],
|
56520
|
-
setArrowElement = _useState6[1];
|
56521
|
-
var _useState7 = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(false),
|
56522
|
-
_useState8 = _slicedToArray(_useState7, 2),
|
56523
|
-
visible = _useState8[0],
|
56524
|
-
setVisible = _useState8[1];
|
56525
|
-
var hideTimer = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)();
|
56526
|
-
var showTimer = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)();
|
56527
|
-
var showDelay = (0,_util__WEBPACK_IMPORTED_MODULE_5__.firstDefined)(_showDelay, _Tooltip.showDelay);
|
56528
|
-
var hideDelay = (0,_util__WEBPACK_IMPORTED_MODULE_5__.firstDefined)(_hideDelay, _Tooltip.hideDelay);
|
56529
|
-
var interactiveHideDelay = (0,_util__WEBPACK_IMPORTED_MODULE_5__.firstDefined)(_interactiveHideDelay, _Tooltip.interactiveHideDelay);
|
56530
|
-
var clearTimers = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function () {
|
56531
|
-
clearTimeout(showTimer.current);
|
56532
|
-
clearTimeout(hideTimer.current);
|
56533
|
-
}, []);
|
56534
|
-
var show = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function () {
|
56535
|
-
clearTimers();
|
56536
|
-
showTimer.current = setTimeout(function () {
|
56537
|
-
return setVisible(true);
|
56538
|
-
}, showDelay);
|
56539
|
-
}, [showDelay]);
|
56540
|
-
var hide = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function () {
|
56541
|
-
clearTimers();
|
56542
|
-
hideTimer.current = setTimeout(function () {
|
56543
|
-
return setVisible(false);
|
56544
|
-
}, interactive ? interactiveHideDelay : hideDelay);
|
56545
|
-
}, [interactive, hideDelay, interactiveHideDelay]);
|
56546
|
-
(0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function () {
|
56547
|
-
return function () {
|
56548
|
-
clearTimers();
|
56549
|
-
};
|
56550
|
-
}, []);
|
56551
|
-
var _usePopper = (0,react_popper__WEBPACK_IMPORTED_MODULE_7__.usePopper)(referenceElement, popperElement, {
|
56552
|
-
placement: placement,
|
56553
|
-
modifiers: [{
|
56554
|
-
name: 'arrow',
|
56555
|
-
options: {
|
56556
|
-
element: arrowElement
|
56557
|
-
}
|
56558
|
-
}, {
|
56559
|
-
name: 'offset',
|
56560
|
-
options: {
|
56561
|
-
offset: [0, 8]
|
56562
|
-
}
|
56563
|
-
}],
|
56564
|
-
strategy: 'fixed'
|
56565
|
-
}),
|
56566
|
-
styles = _usePopper.styles,
|
56567
|
-
attributes = _usePopper.attributes,
|
56568
|
-
update = _usePopper.update;
|
56569
|
-
var tooltipRef = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)();
|
56570
|
-
var acceptsRef = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(function () {
|
56571
|
-
return (0,react_is__WEBPACK_IMPORTED_MODULE_3__.isForwardRef)(children) || isPrimitiveElement(children);
|
56572
|
-
}, [children]);
|
56573
|
-
if (visible && tooltip != tooltipRef.current && typeof update == 'function') update();
|
56574
|
-
tooltipRef.current = tooltip;
|
56575
|
-
var triggerProps = {};
|
56576
|
-
if (trigger == 'hover') {
|
56577
|
-
triggerProps.onPointerEnter = show;
|
56578
|
-
triggerProps.onPointerLeave = hide;
|
56579
|
-
} else if (trigger == 'focus') {
|
56580
|
-
triggerProps.onFocus = show;
|
56581
|
-
triggerProps.onBlur = hide;
|
56582
|
-
}
|
56583
|
-
var tooltipNode = tooltip && visible ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(StyledTooltipBody, _extends({
|
56584
|
-
ref: setPopperElement,
|
56585
|
-
role: "tooltip",
|
56586
|
-
$variant: variant,
|
56587
|
-
style: styles.popper
|
56588
|
-
}, attributes.popper, interactive ? triggerProps : {}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_4__.Label, {
|
56589
|
-
variant: "sm",
|
56590
|
-
color: variant == 'white' ? 'black' : 'white'
|
56591
|
-
}, tooltip), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(StyledTooltipArrow, _extends({
|
56592
|
-
ref: setArrowElement,
|
56593
|
-
style: styles.arrow
|
56594
|
-
}, attributes.arrow))) : null;
|
56595
|
-
if (wrap || !acceptsRef) {
|
56596
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement((react__WEBPACK_IMPORTED_MODULE_1___default().Fragment), null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(StyledTooltipReference, _extends({
|
56597
|
-
ref: setReferenceElement,
|
56598
|
-
className: className
|
56599
|
-
}, triggerProps), children), tooltipNode);
|
56600
|
-
}
|
56601
|
-
var child = react__WEBPACK_IMPORTED_MODULE_1__.Children.only(children);
|
56602
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement((react__WEBPACK_IMPORTED_MODULE_1___default().Fragment), null, /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.cloneElement)(child, _objectSpread({
|
56603
|
-
ref: (0,_util__WEBPACK_IMPORTED_MODULE_5__.mergeRefs)(child === null || child === void 0 ? void 0 : child.ref, setReferenceElement)
|
56604
|
-
}, triggerProps)), tooltipNode);
|
56605
|
-
};
|
56606
|
-
|
56607
|
-
_Tooltip.propTypes = {
|
56608
|
-
tooltip: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
|
56609
|
-
placement: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(_constants__WEBPACK_IMPORTED_MODULE_6__.TOOLTIP_PLACEMENT),
|
56610
|
-
wrap: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
56611
|
-
interactive: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
56612
|
-
trigger: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['hover', 'focus']),
|
56613
|
-
variant: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['black', 'white']),
|
56614
|
-
showDelay: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
56615
|
-
hideDelay: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
56616
|
-
interactiveHideDelay: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)
|
56617
|
-
};
|
56618
|
-
_Tooltip.showDelay = 0;
|
56619
|
-
_Tooltip.hideDelay = 0;
|
56620
|
-
_Tooltip.interactiveHideDelay = 200;
|
56621
|
-
var StyledTooltipBody = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
|
56622
|
-
displayName: "StyledTooltipBody",
|
56623
|
-
componentId: "sc-1d5rwbm-0"
|
56624
|
-
})(["background-color:", ";padding:", ";width:fit-content;max-width:500px;border-radius:", ";transition:opacity 200ms;z-index:", ";", ";"], function (_ref2) {
|
56625
|
-
var color = _ref2.theme.color;
|
56626
|
-
return color.gray_11_50;
|
56627
|
-
}, function (_ref3) {
|
56628
|
-
var spacing = _ref3.theme.spacing;
|
56629
|
-
return spacing['03'];
|
56630
|
-
}, function (_ref4) {
|
56631
|
-
var spacing = _ref4.theme.spacing;
|
56632
|
-
return spacing['02'];
|
56633
|
-
}, _constants__WEBPACK_IMPORTED_MODULE_6__.Z_INDEX.tooltip, function (_ref5) {
|
56634
|
-
var $variant = _ref5.$variant;
|
56635
|
-
return $variant == 'white' && (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.css)(["background-color:", ";border:1px solid ", ";box-shadow:", ";"], function (_ref6) {
|
56636
|
-
var color = _ref6.theme.color;
|
56637
|
-
return color.white;
|
56638
|
-
}, function (_ref7) {
|
56639
|
-
var color = _ref7.theme.color;
|
56640
|
-
return color.gray_4;
|
56641
|
-
}, function (_ref8) {
|
56642
|
-
var shadow = _ref8.theme.shadow;
|
56643
|
-
return shadow.medium;
|
56644
|
-
});
|
56645
|
-
});
|
56646
|
-
var StyledTooltipArrow = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
|
56647
|
-
displayName: "StyledTooltipArrow",
|
56648
|
-
componentId: "sc-1d5rwbm-1"
|
56649
|
-
})(["&,&::before{position:absolute;width:", ";height:", ";background:inherit;border-radius:", ";}z-index:-1;visibility:hidden;&::before{visibility:visible;content:'';transform:rotate(45deg);}[data-popper-placement^='top'] > &{bottom:-", ";}[data-popper-placement^='right'] > &{left:-", ";}[data-popper-placement^='bottom'] > &{top:-", ";}[data-popper-placement^='left'] > &{right:-", ";}"], function (_ref9) {
|
56650
|
-
var spacing = _ref9.theme.spacing;
|
56651
|
-
return spacing['04'];
|
56652
|
-
}, function (_ref10) {
|
56653
|
-
var spacing = _ref10.theme.spacing;
|
56654
|
-
return spacing['04'];
|
56655
|
-
}, function (_ref11) {
|
56656
|
-
var spacing = _ref11.theme.spacing;
|
56657
|
-
return spacing['01'];
|
56658
|
-
}, function (_ref12) {
|
56659
|
-
var spacing = _ref12.theme.spacing;
|
56660
|
-
return spacing['02'];
|
56661
|
-
}, function (_ref13) {
|
56662
|
-
var spacing = _ref13.theme.spacing;
|
56663
|
-
return spacing['02'];
|
56664
|
-
}, function (_ref14) {
|
56665
|
-
var spacing = _ref14.theme.spacing;
|
56666
|
-
return spacing['02'];
|
56667
|
-
}, function (_ref15) {
|
56668
|
-
var spacing = _ref15.theme.spacing;
|
56669
|
-
return spacing['02'];
|
56670
|
-
});
|
56671
|
-
var StyledTooltipReference = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
|
56672
|
-
displayName: "StyledTooltipReference",
|
56673
|
-
componentId: "sc-1d5rwbm-2"
|
56674
|
-
})(["width:fit-content;"]);
|
56675
|
-
|
56676
|
-
/***/ }),
|
56677
|
-
|
56678
|
-
/***/ "./src/tooltip/tooltip2.js":
|
56679
|
-
/*!*********************************!*\
|
56680
|
-
!*** ./src/tooltip/tooltip2.js ***!
|
56681
|
-
\*********************************/
|
56682
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
56683
|
-
|
56684
|
-
"use strict";
|
56685
|
-
__webpack_require__.r(__webpack_exports__);
|
56686
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
56687
|
-
/* harmony export */ Tooltip2: () => (/* binding */ _Tooltip)
|
56688
|
-
/* harmony export */ });
|
56689
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "prop-types");
|
56690
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
|
56691
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
56692
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
56693
56445
|
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
|
56694
56446
|
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../constants */ "./src/constants.js");
|
56695
56447
|
/* harmony import */ var _placements__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./placements */ "./src/tooltip/placements.js");
|
@@ -56707,7 +56459,7 @@ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t =
|
|
56707
56459
|
|
56708
56460
|
|
56709
56461
|
|
56710
|
-
var _Tooltip = function
|
56462
|
+
var _Tooltip = function Tooltip(_ref) {
|
56711
56463
|
var id = _ref.id,
|
56712
56464
|
className = _ref.className,
|
56713
56465
|
_ref$classNamePrefix = _ref.classNamePrefix,
|
@@ -145165,7 +144917,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
145165
144917
|
/* harmony export */ Toast: () => (/* reexport safe */ _core__WEBPACK_IMPORTED_MODULE_0__.Toast),
|
145166
144918
|
/* harmony export */ Toaster: () => (/* reexport safe */ _core__WEBPACK_IMPORTED_MODULE_0__.Toaster),
|
145167
144919
|
/* harmony export */ Tooltip: () => (/* reexport safe */ _core__WEBPACK_IMPORTED_MODULE_0__.Tooltip),
|
145168
|
-
/* harmony export */ Tooltip2: () => (/* reexport safe */ _core__WEBPACK_IMPORTED_MODULE_0__.Tooltip2),
|
145169
144920
|
/* harmony export */ Typography: () => (/* reexport safe */ _core__WEBPACK_IMPORTED_MODULE_0__.Typography),
|
145170
144921
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
|
145171
144922
|
/* harmony export */ globalConfig: () => (/* reexport safe */ _core__WEBPACK_IMPORTED_MODULE_0__.globalConfig),
|