@luminati-io/uikit 6.2.11-beta.0 → 6.2.12

Sign up to get free protection for your applications and to get access to all the features.
@@ -31473,7 +31473,7 @@ var BreadcrumbsItem = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forward
31473
31473
  }, [item.text, maxItemWidth]);
31474
31474
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_layout__WEBPACK_IMPORTED_MODULE_2__.Flex, {
31475
31475
  ref: ref
31476
- }, isLastItem && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tooltip__WEBPACK_IMPORTED_MODULE_4__.Tooltip, {
31476
+ }, isLastItem && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tooltip__WEBPACK_IMPORTED_MODULE_4__.Tooltip2, {
31477
31477
  tooltip: isOverflown ? item.text : undefined
31478
31478
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(StyledLabel, {
31479
31479
  ref: labelRef,
@@ -34109,7 +34109,7 @@ CodeBlock.propTypes = {
34109
34109
  var CodeBlockWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
34110
34110
  displayName: "CodeBlockWrapper",
34111
34111
  componentId: "sc-dgi5hi-0"
34112
- })(["border-radius:4px;overflow:hidden;"]);
34112
+ })(["border-radius:4px;overflow:hidden;", "{border-top-left-radius:0;border-top-right-radius:0;}"], _code_snippet__WEBPACK_IMPORTED_MODULE_4__.CodeSnipperWrapper);
34113
34113
  var CodeBlockHeader = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
34114
34114
  displayName: "CodeBlockHeader",
34115
34115
  componentId: "sc-dgi5hi-1"
@@ -34144,6 +34144,7 @@ var CodeBlockHeader = styled_components__WEBPACK_IMPORTED_MODULE_2___default().d
34144
34144
  "use strict";
34145
34145
  __webpack_require__.r(__webpack_exports__);
34146
34146
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
34147
+ /* harmony export */ CodeSnipperWrapper: () => (/* binding */ CodeSnipperWrapper),
34147
34148
  /* harmony export */ CodeSnippet: () => (/* binding */ CodeSnippet)
34148
34149
  /* harmony export */ });
34149
34150
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
@@ -34181,26 +34182,26 @@ var CodeSnippet = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)
34181
34182
  maxHeight = _ref.maxHeight,
34182
34183
  wrap = _ref.wrap;
34183
34184
  var codeRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);
34184
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(CodeBlockBody, {
34185
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(CodeSnipperWrapper, {
34185
34186
  ref: ref,
34186
34187
  className: (0,_util__WEBPACK_IMPORTED_MODULE_3__.classNames)(null, {}, className, variant),
34187
34188
  style: maxHeight ? {
34188
34189
  maxHeight: maxHeight
34189
34190
  } : undefined
34190
- }, !loading && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_code__WEBPACK_IMPORTED_MODULE_4__.Code, {
34191
+ }, !loading && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, !!copyButton && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_copy_button__WEBPACK_IMPORTED_MODULE_5__.CopyButton, {
34192
+ className: copyButtonClassName,
34193
+ code: code,
34194
+ variant: variant,
34195
+ codeRef: codeRef,
34196
+ onCopy: onCopy
34197
+ }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(CodeWrapper, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_code__WEBPACK_IMPORTED_MODULE_4__.Code, {
34191
34198
  ref: codeRef,
34192
34199
  lang: lang,
34193
34200
  code: code,
34194
34201
  variant: variant,
34195
34202
  lineNumbers: lineNumbers,
34196
34203
  wrap: wrap
34197
- }), !!copyButton && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_copy_button__WEBPACK_IMPORTED_MODULE_5__.CopyButton, {
34198
- className: copyButtonClassName,
34199
- code: code,
34200
- variant: variant,
34201
- codeRef: codeRef,
34202
- onCopy: onCopy
34203
- })), !!loading && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_skeleton__WEBPACK_IMPORTED_MODULE_6__.Skeleton, {
34204
+ }))), !!loading && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_skeleton__WEBPACK_IMPORTED_MODULE_6__.Skeleton, {
34204
34205
  variant: variant
34205
34206
  }));
34206
34207
  });
@@ -34218,33 +34219,34 @@ CodeSnippet.propTypes = {
34218
34219
  onCopy: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().func),
34219
34220
  wrap: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().bool)
34220
34221
  };
34221
- var CodeBlockBody = styled_components__WEBPACK_IMPORTED_MODULE_1___default().div.withConfig({
34222
- displayName: "CodeBlockBody",
34222
+ var CodeSnipperWrapper = styled_components__WEBPACK_IMPORTED_MODULE_1___default().div.withConfig({
34223
+ displayName: "CodeSnipperWrapper",
34223
34224
  componentId: "sc-13u859f-0"
34224
- })(["position:relative;overflow-y:auto;min-height:60px;gap:", ";padding-top:", ";padding-right:", ";padding-bottom:", ";padding-left:", ";", " &.black{background-color:", ";}&.white{background-color:", ";}"], function (_ref2) {
34225
- var spacing = _ref2.theme.spacing;
34226
- return spacing['03'];
34225
+ })(["position:relative;min-height:48px;display:flex;border-radius:4px;&.black{background-color:", ";}&.white{background-color:", ";}"], function (_ref2) {
34226
+ var color = _ref2.theme.color;
34227
+ return color.code_bg_black;
34227
34228
  }, function (_ref3) {
34228
- var spacing = _ref3.theme.spacing;
34229
- return spacing['04'];
34230
- }, function (_ref4) {
34229
+ var color = _ref3.theme.color;
34230
+ return color.code_bg_white;
34231
+ });
34232
+ var CodeWrapper = styled_components__WEBPACK_IMPORTED_MODULE_1___default().div.withConfig({
34233
+ displayName: "CodeWrapper",
34234
+ componentId: "sc-13u859f-1"
34235
+ })(["flex:1;padding-top:", ";padding-right:", ";padding-bottom:", ";padding-left:", ";overflow:auto;", ""], function (_ref4) {
34231
34236
  var spacing = _ref4.theme.spacing;
34232
34237
  return spacing['04'];
34233
34238
  }, function (_ref5) {
34234
34239
  var spacing = _ref5.theme.spacing;
34235
- return spacing['05'];
34240
+ return spacing['04'];
34236
34241
  }, function (_ref6) {
34237
34242
  var spacing = _ref6.theme.spacing;
34238
- return spacing['04'];
34243
+ return spacing['05'];
34239
34244
  }, function (_ref7) {
34240
- var scrollbars = _ref7.theme.scrollbars;
34241
- return scrollbars.auto;
34245
+ var spacing = _ref7.theme.spacing;
34246
+ return spacing['04'];
34242
34247
  }, function (_ref8) {
34243
- var color = _ref8.theme.color;
34244
- return color.code_bg_black;
34245
- }, function (_ref9) {
34246
- var color = _ref9.theme.color;
34247
- return color.code_bg_white;
34248
+ var scrollbars = _ref8.theme.scrollbars;
34249
+ return scrollbars.auto;
34248
34250
  });
34249
34251
 
34250
34252
  /***/ }),
@@ -34323,7 +34325,7 @@ var CopyButton = function CopyButton(_ref) {
34323
34325
  resetText();
34324
34326
  });
34325
34327
  }, [code]);
34326
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tooltip__WEBPACK_IMPORTED_MODULE_3__.Tooltip, {
34328
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tooltip__WEBPACK_IMPORTED_MODULE_3__.Tooltip2, {
34327
34329
  tooltip: tooltips[state],
34328
34330
  placement: "right"
34329
34331
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(StyledButton, {
@@ -34340,7 +34342,7 @@ var CopyButton = function CopyButton(_ref) {
34340
34342
  var StyledButton = styled_components__WEBPACK_IMPORTED_MODULE_1___default().button.withConfig({
34341
34343
  displayName: "StyledButton",
34342
34344
  componentId: "sc-kvxvoe-0"
34343
- })(["position:absolute;right:16px;display:flex;padding:8px;align-items:flex-start;border:0 none;border-radius:32px;background:", ";svg{width:16px;height:16px;color:", ";}&:hover,&:active{background:", ";}"], function (_ref2) {
34345
+ })(["position:absolute;inset-inline-end:16px;bottom:8px;z-index:1;display:flex;padding:8px;align-items:flex-start;border:0 none;border-radius:32px;background:", ";svg{width:16px;height:16px;color:", ";}&:hover,&:active{background:", ";}"], function (_ref2) {
34344
34346
  var $variant = _ref2.$variant,
34345
34347
  color = _ref2.theme.color;
34346
34348
  return $variant == 'white' ? color.code_bg_icon_white : color.code_bg_icon_black;
@@ -34669,6 +34671,7 @@ __webpack_require__.r(__webpack_exports__);
34669
34671
  /* harmony export */ INPUT_HORIZONTAL_PADDING: () => (/* binding */ INPUT_HORIZONTAL_PADDING),
34670
34672
  /* harmony export */ INPUT_VERTICAL_PADDING: () => (/* binding */ INPUT_VERTICAL_PADDING),
34671
34673
  /* harmony export */ PT_NECESSITY_INDICATOR: () => (/* binding */ PT_NECESSITY_INDICATOR),
34674
+ /* harmony export */ PT_TOOLTIP_PLACEMENT: () => (/* binding */ PT_TOOLTIP_PLACEMENT),
34672
34675
  /* harmony export */ TOOLTIP_PLACEMENT: () => (/* binding */ TOOLTIP_PLACEMENT),
34673
34676
  /* harmony export */ Z_INDEX: () => (/* binding */ Z_INDEX)
34674
34677
  /* harmony export */ });
@@ -34679,6 +34682,7 @@ __webpack_require__.r(__webpack_exports__);
34679
34682
  /*jslint react:true*/
34680
34683
 
34681
34684
  var PT_NECESSITY_INDICATOR = prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['none', 'asterisk', 'text']);
34685
+ var PT_TOOLTIP_PLACEMENT = prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['right', 'top', 'left', 'bottom', 'topLeft', 'topRight', 'bottomLeft', 'bottomRight', 'leftTop', 'leftBottom', 'rightTop', 'rightBottom']);
34682
34686
  var Z_INDEX = {
34683
34687
  editingCell: 1,
34684
34688
  cellResizer: 1,
@@ -34754,8 +34758,7 @@ __webpack_require__.r(__webpack_exports__);
34754
34758
  /* harmony export */ translation: () => (/* reexport safe */ _translation__WEBPACK_IMPORTED_MODULE_4__["default"]),
34755
34759
  /* harmony export */ useTheme: () => (/* reexport safe */ _themes__WEBPACK_IMPORTED_MODULE_25__.useTheme),
34756
34760
  /* harmony export */ useToaster: () => (/* reexport safe */ _toast__WEBPACK_IMPORTED_MODULE_20__.useToaster),
34757
- /* harmony export */ withPopover: () => (/* reexport safe */ _hoc__WEBPACK_IMPORTED_MODULE_13__.withPopover),
34758
- /* harmony export */ withTooltip: () => (/* reexport safe */ _tooltip__WEBPACK_IMPORTED_MODULE_24__.withTooltip)
34761
+ /* harmony export */ withPopover: () => (/* reexport safe */ _hoc__WEBPACK_IMPORTED_MODULE_13__.withPopover)
34759
34762
  /* harmony export */ });
34760
34763
  /* harmony import */ var _chart__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./chart */ "./src/chart/index.js");
34761
34764
  /* harmony import */ var _input__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./input */ "./src/input/index.js");
@@ -35257,7 +35260,9 @@ var withPopover = function withPopover(Comp, PopoverComp) {
35257
35260
  popoverClassName = popoverOptions.popoverClassName,
35258
35261
  popoverStyle = popoverOptions.popoverStyle,
35259
35262
  interactive = popoverOptions.interactive,
35260
- delay = popoverOptions.delay;
35263
+ delay = popoverOptions.delay,
35264
+ _popoverOptions$swall = popoverOptions.swallowOutsideClick,
35265
+ swallowOutsideClick = _popoverOptions$swall === void 0 ? true : _popoverOptions$swall;
35261
35266
  var _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(null),
35262
35267
  _useState4 = _slicedToArray(_useState3, 2),
35263
35268
  referenceElement = _useState4[0],
@@ -35315,10 +35320,12 @@ var withPopover = function withPopover(Comp, PopoverComp) {
35315
35320
  }, [showPopover, hidePopover, togglePopover, update, forceUpdate]);
35316
35321
  var hideAndStopEvt = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (evt) {
35317
35322
  if (!isOpen) return;
35318
- evt.stopPropagation();
35319
- evt.preventDefault();
35320
35323
  hidePopover();
35321
- }, [isOpen, hidePopover]);
35324
+ if (swallowOutsideClick) {
35325
+ evt.stopPropagation();
35326
+ evt.preventDefault();
35327
+ }
35328
+ }, [isOpen, swallowOutsideClick, hidePopover]);
35322
35329
  var onPointerEnter = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (evt) {
35323
35330
  var _compProps$onPointerE;
35324
35331
  if (interactive) showPopover();
@@ -35958,7 +35965,7 @@ var IconButton = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwa
35958
35965
  var ic = _icons__WEBPACK_IMPORTED_MODULE_3__["default"][icon];
35959
35966
  if (!ic) return null;
35960
35967
  var iconSize = size == 'lg' || size == 'md' ? 18 : 16;
35961
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tooltip__WEBPACK_IMPORTED_MODULE_6__.Tooltip, {
35968
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tooltip__WEBPACK_IMPORTED_MODULE_6__.Tooltip2, {
35962
35969
  tooltip: tooltip,
35963
35970
  placement: tooltipPlacement
35964
35971
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(StyledIconButton, _extends({
@@ -35981,7 +35988,7 @@ IconButton.propTypes = {
35981
35988
  disabled: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().bool),
35982
35989
  active: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().bool),
35983
35990
  tooltip: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().node),
35984
- tooltipPlacement: prop_types__WEBPACK_IMPORTED_MODULE_2___default().oneOf(_constants__WEBPACK_IMPORTED_MODULE_4__.TOOLTIP_PLACEMENT),
35991
+ tooltipPlacement: _constants__WEBPACK_IMPORTED_MODULE_4__.PT_TOOLTIP_PLACEMENT,
35985
35992
  size: prop_types__WEBPACK_IMPORTED_MODULE_2___default().oneOf(['xs', 'sm', 'md', 'lg'])
35986
35993
  };
35987
35994
  var StyledIconButton = styled_components__WEBPACK_IMPORTED_MODULE_1___default().button.withConfig({
@@ -36204,7 +36211,7 @@ var Checkbox = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forward
36204
36211
  var newValue = !checked;
36205
36212
  onChange === null || onChange === void 0 || onChange(newValue, evt);
36206
36213
  };
36207
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_tooltip__WEBPACK_IMPORTED_MODULE_4__.Tooltip, {
36214
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_tooltip__WEBPACK_IMPORTED_MODULE_4__.Tooltip2, {
36208
36215
  tooltip: tooltip
36209
36216
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(CheckboxWrapper, _extends({
36210
36217
  ref: ref
@@ -36248,7 +36255,8 @@ Checkbox.propTypes = {
36248
36255
  verticalAlign: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['top', 'middle', 'bottom']),
36249
36256
  classNamePrefix: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
36250
36257
  tabIndex: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
36251
- readOnly: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)
36258
+ readOnly: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
36259
+ tooltip: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node)
36252
36260
  };
36253
36261
  var CheckboxWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
36254
36262
  displayName: "CheckboxWrapper",
@@ -40801,7 +40809,7 @@ var InputLabel = function InputLabel(_ref7) {
40801
40809
  }, t(label), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(NecessityIndicator, {
40802
40810
  required: required,
40803
40811
  indicator: necessityIndicator
40804
- })), labelIcon && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_tooltip__WEBPACK_IMPORTED_MODULE_6__.Tooltip, {
40812
+ })), labelIcon && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_tooltip__WEBPACK_IMPORTED_MODULE_6__.Tooltip2, {
40805
40813
  tooltip: labelTooltip
40806
40814
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_4__.Icon, {
40807
40815
  className: (0,_util__WEBPACK_IMPORTED_MODULE_9__.classNames)(classNamePrefix, {
@@ -42394,7 +42402,7 @@ var MenuItem = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_2__.forwardRef)(fu
42394
42402
  ref: ref,
42395
42403
  as: tag,
42396
42404
  role: "menuitem"
42397
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_tooltip__WEBPACK_IMPORTED_MODULE_6__.Tooltip, {
42405
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_tooltip__WEBPACK_IMPORTED_MODULE_6__.Tooltip2, {
42398
42406
  tooltip: tooltip
42399
42407
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(MenuItemComp, _extends({}, rest, {
42400
42408
  "aria-disabled": disabled ? true : undefined,
@@ -42488,7 +42496,8 @@ var MenuItemPopover = (0,_hoc__WEBPACK_IMPORTED_MODULE_4__.withPopover)(MenuItem
42488
42496
  placement: 'right-start',
42489
42497
  wrapperStyle: {
42490
42498
  width: '100%'
42491
- }
42499
+ },
42500
+ swallowOutsideClick: false
42492
42501
  });
42493
42502
  var MenuItemLeft = styled_components__WEBPACK_IMPORTED_MODULE_3___default().div.withConfig({
42494
42503
  displayName: "MenuItemLeft",
@@ -42676,7 +42685,7 @@ __webpack_require__.r(__webpack_exports__);
42676
42685
  var MenuContainer = styled_components__WEBPACK_IMPORTED_MODULE_0___default().ul.withConfig({
42677
42686
  displayName: "MenuContainer",
42678
42687
  componentId: "sc-laozu6-0"
42679
- })(["margin:0;padding:4px 0;box-sizing:border-box;min-width:168px;max-width:540px;background:", ";border:", ";border-radius:4px;display:flex;flex-direction:column;gap:2px;box-shadow:", ";"], function (_ref) {
42688
+ })(["margin:0;padding:4px 0;box-sizing:border-box;min-width:168px;max-width:540px;background:", ";border:", ";border-radius:4px;display:flex;flex-direction:column;gap:2px;box-shadow:", ";max-height:80vh;overflow-y:auto;", ";"], function (_ref) {
42680
42689
  var color = _ref.theme.color;
42681
42690
  return color.bg_elevated;
42682
42691
  }, function (_ref2) {
@@ -42687,6 +42696,9 @@ var MenuContainer = styled_components__WEBPACK_IMPORTED_MODULE_0___default().ul.
42687
42696
  var $noBorder = _ref3.$noBorder,
42688
42697
  shadow = _ref3.theme.shadow;
42689
42698
  return $noBorder ? 'none' : shadow.medium;
42699
+ }, function (_ref4) {
42700
+ var scrollbars = _ref4.theme.scrollbars;
42701
+ return scrollbars.thin;
42690
42702
  });
42691
42703
  var MenuItemContainer = styled_components__WEBPACK_IMPORTED_MODULE_0___default().li.withConfig({
42692
42704
  displayName: "MenuItemContainer",
@@ -43379,7 +43391,7 @@ Modal2.propTypes = {
43379
43391
  classNamePrefix: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
43380
43392
  size: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['sm', 'md', 'lg', 'full']),
43381
43393
  footerVariant: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['vertical', 'horizontal', 'horizontal_full']),
43382
- show: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool).isRequired,
43394
+ show: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
43383
43395
  closable: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
43384
43396
  closeOnOutsideClick: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
43385
43397
  title: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
@@ -45068,7 +45080,7 @@ var CustomizeButtonItemAction = function CustomizeButtonItemAction(_ref12) {
45068
45080
  icon = _ref12.icon;
45069
45081
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(CustomizeButtonItemActionWrapper, {
45070
45082
  onClick: onClick
45071
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_tooltip__WEBPACK_IMPORTED_MODULE_7__.Tooltip, {
45083
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_tooltip__WEBPACK_IMPORTED_MODULE_7__.Tooltip2, {
45072
45084
  tooltip: tooltip,
45073
45085
  tooltipPlacement: "top"
45074
45086
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_4__.Icon, {
@@ -49597,8 +49609,7 @@ var useToaster = function useToaster() {
49597
49609
  __webpack_require__.r(__webpack_exports__);
49598
49610
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
49599
49611
  /* harmony export */ Tooltip: () => (/* reexport safe */ _tooltip__WEBPACK_IMPORTED_MODULE_0__.Tooltip),
49600
- /* harmony export */ Tooltip2: () => (/* reexport safe */ _tooltip2__WEBPACK_IMPORTED_MODULE_1__.Tooltip2),
49601
- /* harmony export */ withTooltip: () => (/* reexport safe */ _tooltip__WEBPACK_IMPORTED_MODULE_0__.withTooltip)
49612
+ /* harmony export */ Tooltip2: () => (/* reexport safe */ _tooltip2__WEBPACK_IMPORTED_MODULE_1__.Tooltip2)
49602
49613
  /* harmony export */ });
49603
49614
  /* harmony import */ var _tooltip__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./tooltip */ "./src/tooltip/tooltip.js");
49604
49615
  /* harmony import */ var _tooltip2__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./tooltip2 */ "./src/tooltip/tooltip2.js");
@@ -49636,76 +49647,76 @@ var autoAdjustOverflowLeftRight = {
49636
49647
  };
49637
49648
  var targetOffset = [0, 0];
49638
49649
  var placements = {
49639
- left: {
49640
- points: ['cr', 'cl'],
49641
- overflow: autoAdjustOverflowLeftRight,
49642
- offset: [-6, 0],
49643
- targetOffset: targetOffset
49644
- },
49645
- right: {
49646
- points: ['cl', 'cr'],
49647
- overflow: autoAdjustOverflowLeftRight,
49648
- offset: [6, 0],
49649
- targetOffset: targetOffset
49650
- },
49651
49650
  top: {
49652
49651
  points: ['bc', 'tc'],
49653
49652
  overflow: autoAdjustOverflowTopBottom,
49654
49653
  offset: [0, -6],
49655
- targetOffset: targetOffset
49654
+ targetOffset: [-6, 0]
49655
+ },
49656
+ topLeft: {
49657
+ points: ['bl', 'tl'],
49658
+ overflow: autoAdjustOverflowTopBottom,
49659
+ offset: [-12, -6],
49660
+ targetOffset: [-6, 0]
49661
+ },
49662
+ topRight: {
49663
+ points: ['br', 'tr'],
49664
+ overflow: autoAdjustOverflowTopBottom,
49665
+ offset: [12, -6],
49666
+ targetOffset: [-6, 0]
49656
49667
  },
49657
49668
  bottom: {
49658
49669
  points: ['tc', 'bc'],
49659
49670
  overflow: autoAdjustOverflowTopBottom,
49660
49671
  offset: [0, 6],
49661
- targetOffset: targetOffset
49672
+ targetOffset: [-6, 0]
49662
49673
  },
49663
- topLeft: {
49664
- points: ['bl', 'tl'],
49674
+ bottomLeft: {
49675
+ points: ['tl', 'bl'],
49665
49676
  overflow: autoAdjustOverflowTopBottom,
49666
- offset: [0, -6],
49677
+ offset: [-12, 6],
49678
+ targetOffset: [-6, 0]
49679
+ },
49680
+ bottomRight: {
49681
+ points: ['tr', 'br'],
49682
+ overflow: autoAdjustOverflowTopBottom,
49683
+ offset: [12, 6],
49684
+ targetOffset: [-6, 0]
49685
+ },
49686
+ left: {
49687
+ points: ['cr', 'cl'],
49688
+ overflow: autoAdjustOverflowLeftRight,
49689
+ offset: [-6, 0],
49667
49690
  targetOffset: targetOffset
49668
49691
  },
49669
49692
  leftTop: {
49670
49693
  points: ['tr', 'tl'],
49671
49694
  overflow: autoAdjustOverflowLeftRight,
49672
49695
  offset: [-6, 0],
49696
+ targetOffset: [0, 6]
49697
+ },
49698
+ leftBottom: {
49699
+ points: ['br', 'bl'],
49700
+ overflow: autoAdjustOverflowLeftRight,
49701
+ offset: [-6, 6],
49673
49702
  targetOffset: targetOffset
49674
49703
  },
49675
- topRight: {
49676
- points: ['br', 'tr'],
49677
- overflow: autoAdjustOverflowTopBottom,
49678
- offset: [0, -6],
49704
+ right: {
49705
+ points: ['cl', 'cr'],
49706
+ overflow: autoAdjustOverflowLeftRight,
49707
+ offset: [6, 0],
49679
49708
  targetOffset: targetOffset
49680
49709
  },
49681
49710
  rightTop: {
49682
49711
  points: ['tl', 'tr'],
49683
49712
  overflow: autoAdjustOverflowLeftRight,
49684
49713
  offset: [6, 0],
49685
- targetOffset: targetOffset
49686
- },
49687
- bottomRight: {
49688
- points: ['tr', 'br'],
49689
- overflow: autoAdjustOverflowTopBottom,
49690
- offset: [0, 6],
49691
- targetOffset: targetOffset
49714
+ targetOffset: [0, 6]
49692
49715
  },
49693
49716
  rightBottom: {
49694
49717
  points: ['bl', 'br'],
49695
49718
  overflow: autoAdjustOverflowLeftRight,
49696
- offset: [6, 0],
49697
- targetOffset: targetOffset
49698
- },
49699
- bottomLeft: {
49700
- points: ['tl', 'bl'],
49701
- overflow: autoAdjustOverflowTopBottom,
49702
- offset: [0, 6],
49703
- targetOffset: targetOffset
49704
- },
49705
- leftBottom: {
49706
- points: ['br', 'bl'],
49707
- overflow: autoAdjustOverflowLeftRight,
49708
- offset: [-6, 0],
49719
+ offset: [6, 6],
49709
49720
  targetOffset: targetOffset
49710
49721
  }
49711
49722
  };
@@ -49721,8 +49732,7 @@ var placements = {
49721
49732
  "use strict";
49722
49733
  __webpack_require__.r(__webpack_exports__);
49723
49734
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
49724
- /* harmony export */ Tooltip: () => (/* binding */ _Tooltip),
49725
- /* harmony export */ withTooltip: () => (/* binding */ withTooltip)
49735
+ /* harmony export */ Tooltip: () => (/* binding */ _Tooltip)
49726
49736
  /* harmony export */ });
49727
49737
  /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "prop-types");
49728
49738
  /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
@@ -49890,11 +49900,6 @@ _Tooltip.propTypes = {
49890
49900
  _Tooltip.showDelay = 0;
49891
49901
  _Tooltip.hideDelay = 0;
49892
49902
  _Tooltip.interactiveHideDelay = 200;
49893
- var withTooltip = function withTooltip(Comp, tooltipProps) {
49894
- return function WithTooltip(props) {
49895
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Tooltip, tooltipProps, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Comp, props));
49896
- };
49897
- };
49898
49903
  var StyledTooltipBody = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
49899
49904
  displayName: "StyledTooltipBody",
49900
49905
  componentId: "sc-1d5rwbm-0"
@@ -50009,6 +50014,7 @@ var _Tooltip = function Tooltip2(_ref) {
50009
50014
  var mouseEnterDelay = (0,_util__WEBPACK_IMPORTED_MODULE_4__.firstDefined)(rest.showDelay, _Tooltip.showDelay);
50010
50015
  var mouseLeaveDelay = (0,_util__WEBPACK_IMPORTED_MODULE_4__.firstDefined)(rest.hideDelay, _Tooltip.hideDelay);
50011
50016
  var align = (0,_util__WEBPACK_IMPORTED_MODULE_4__.firstDefined)(rest.align, _placements__WEBPACK_IMPORTED_MODULE_6__.placements[placement]);
50017
+ if (!tooltip) return children;
50012
50018
  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(Tooltip2Style, {
50013
50019
  $prefixCls: classNamePrefix,
50014
50020
  $theme: theme
@@ -50038,7 +50044,7 @@ _Tooltip.propTypes = {
50038
50044
  variant: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['black', 'white']),
50039
50045
  trigger: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([PT_TRIGGER, prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf(PT_TRIGGER)]),
50040
50046
  visible: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
50041
- placement: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['right', 'top', 'left', 'right', 'bottom', 'topLeft', 'topRight', 'bottomLeft', 'bottomRight', 'leftTop', 'leftBottom', 'rightTop', 'rightBottom']),
50047
+ placement: _constants__WEBPACK_IMPORTED_MODULE_5__.PT_TOOLTIP_PLACEMENT,
50042
50048
  tooltip: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
50043
50049
  showDelay: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
50044
50050
  hideDelay: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
@@ -132596,8 +132602,7 @@ __webpack_require__.r(__webpack_exports__);
132596
132602
  /* harmony export */ translation: () => (/* reexport safe */ _core__WEBPACK_IMPORTED_MODULE_0__.translation),
132597
132603
  /* harmony export */ useTheme: () => (/* reexport safe */ _core__WEBPACK_IMPORTED_MODULE_0__.useTheme),
132598
132604
  /* harmony export */ useToaster: () => (/* reexport safe */ _core__WEBPACK_IMPORTED_MODULE_0__.useToaster),
132599
- /* harmony export */ withPopover: () => (/* reexport safe */ _core__WEBPACK_IMPORTED_MODULE_0__.withPopover),
132600
- /* harmony export */ withTooltip: () => (/* reexport safe */ _core__WEBPACK_IMPORTED_MODULE_0__.withTooltip)
132605
+ /* harmony export */ withPopover: () => (/* reexport safe */ _core__WEBPACK_IMPORTED_MODULE_0__.withPopover)
132601
132606
  /* harmony export */ });
132602
132607
  /* harmony import */ var _core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./core */ "./src/core.js");
132603
132608
  // LICENSE_CODE ZON