@luminati-io/uikit 3.2.12 → 3.2.13

Sign up to get free protection for your applications and to get access to all the features.
@@ -35448,7 +35448,7 @@ var CopyButton = function CopyButton(props) {
35448
35448
  }
35449
35449
  });
35450
35450
  }, [code]);
35451
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tooltip__WEBPACK_IMPORTED_MODULE_4__["default"], {
35451
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tooltip__WEBPACK_IMPORTED_MODULE_4__.Tooltip, {
35452
35452
  tooltip: tooltips[state],
35453
35453
  placement: "right",
35454
35454
  noWrap: true
@@ -35832,10 +35832,10 @@ __webpack_require__.r(__webpack_exports__);
35832
35832
  /* harmony export */ Badge: () => (/* reexport safe */ _badge__WEBPACK_IMPORTED_MODULE_0__["default"]),
35833
35833
  /* harmony export */ Button: () => (/* reexport safe */ _button__WEBPACK_IMPORTED_MODULE_1__["default"]),
35834
35834
  /* harmony export */ Chart: () => (/* reexport safe */ _chart__WEBPACK_IMPORTED_MODULE_2__["default"]),
35835
- /* harmony export */ ClickableTag: () => (/* reexport safe */ _tag__WEBPACK_IMPORTED_MODULE_21__.ClickableTag),
35836
- /* harmony export */ Code: () => (/* reexport safe */ _code__WEBPACK_IMPORTED_MODULE_18__.Code),
35837
- /* harmony export */ CodeBlock: () => (/* reexport safe */ _code__WEBPACK_IMPORTED_MODULE_18__.CodeBlock),
35838
- /* harmony export */ CodeSnippet: () => (/* reexport safe */ _code__WEBPACK_IMPORTED_MODULE_18__.CodeSnippet),
35835
+ /* harmony export */ ClickableTag: () => (/* reexport safe */ _tag__WEBPACK_IMPORTED_MODULE_20__.ClickableTag),
35836
+ /* harmony export */ Code: () => (/* reexport safe */ _code__WEBPACK_IMPORTED_MODULE_17__.Code),
35837
+ /* harmony export */ CodeBlock: () => (/* reexport safe */ _code__WEBPACK_IMPORTED_MODULE_17__.CodeBlock),
35838
+ /* harmony export */ CodeSnippet: () => (/* reexport safe */ _code__WEBPACK_IMPORTED_MODULE_17__.CodeSnippet),
35839
35839
  /* harmony export */ ComboButton: () => (/* reexport safe */ _combo_button__WEBPACK_IMPORTED_MODULE_3__["default"]),
35840
35840
  /* harmony export */ Icon: () => (/* reexport safe */ _icon__WEBPACK_IMPORTED_MODULE_4__["default"]),
35841
35841
  /* harmony export */ IconButton: () => (/* reexport safe */ _icon_button__WEBPACK_IMPORTED_MODULE_5__["default"]),
@@ -35845,18 +35845,18 @@ __webpack_require__.r(__webpack_exports__);
35845
35845
  /* harmony export */ Link: () => (/* reexport safe */ _link__WEBPACK_IMPORTED_MODULE_9__["default"]),
35846
35846
  /* harmony export */ Menu: () => (/* reexport safe */ _menu__WEBPACK_IMPORTED_MODULE_10__["default"]),
35847
35847
  /* harmony export */ Modal: () => (/* reexport module object */ _modal__WEBPACK_IMPORTED_MODULE_11__),
35848
- /* harmony export */ Progress: () => (/* reexport safe */ _progress__WEBPACK_IMPORTED_MODULE_20__.Progress),
35849
- /* harmony export */ ProgressBar: () => (/* reexport safe */ _progress__WEBPACK_IMPORTED_MODULE_20__.ProgressBar),
35850
- /* harmony export */ RemovableTag: () => (/* reexport safe */ _tag__WEBPACK_IMPORTED_MODULE_21__.RemovableTag),
35851
- /* harmony export */ Tab: () => (/* reexport safe */ _tab__WEBPACK_IMPORTED_MODULE_16__["default"]),
35848
+ /* harmony export */ Progress: () => (/* reexport safe */ _progress__WEBPACK_IMPORTED_MODULE_19__.Progress),
35849
+ /* harmony export */ ProgressBar: () => (/* reexport safe */ _progress__WEBPACK_IMPORTED_MODULE_19__.ProgressBar),
35850
+ /* harmony export */ RemovableTag: () => (/* reexport safe */ _tag__WEBPACK_IMPORTED_MODULE_20__.RemovableTag),
35851
+ /* harmony export */ Tab: () => (/* reexport safe */ _tab__WEBPACK_IMPORTED_MODULE_15__["default"]),
35852
35852
  /* harmony export */ Table: () => (/* reexport safe */ _table__WEBPACK_IMPORTED_MODULE_12__["default"]),
35853
- /* harmony export */ TagGroup: () => (/* reexport safe */ _tag__WEBPACK_IMPORTED_MODULE_21__.TagGroup),
35854
- /* harmony export */ Tooltip: () => (/* reexport safe */ _tooltip__WEBPACK_IMPORTED_MODULE_14__["default"]),
35855
- /* harmony export */ Typography: () => (/* reexport module object */ _typography__WEBPACK_IMPORTED_MODULE_17__),
35853
+ /* harmony export */ TagGroup: () => (/* reexport safe */ _tag__WEBPACK_IMPORTED_MODULE_20__.TagGroup),
35854
+ /* harmony export */ Tooltip: () => (/* reexport safe */ _tooltip__WEBPACK_IMPORTED_MODULE_21__.Tooltip),
35855
+ /* harmony export */ Typography: () => (/* reexport module object */ _typography__WEBPACK_IMPORTED_MODULE_16__),
35856
35856
  /* harmony export */ theme: () => (/* reexport safe */ _theme__WEBPACK_IMPORTED_MODULE_13__["default"]),
35857
- /* harmony export */ translation: () => (/* reexport safe */ _translation__WEBPACK_IMPORTED_MODULE_15__["default"]),
35858
- /* harmony export */ withPopover: () => (/* reexport safe */ _hoc__WEBPACK_IMPORTED_MODULE_19__.withPopover),
35859
- /* harmony export */ withTooltip: () => (/* reexport safe */ _tooltip__WEBPACK_IMPORTED_MODULE_14__.withTooltip)
35857
+ /* harmony export */ translation: () => (/* reexport safe */ _translation__WEBPACK_IMPORTED_MODULE_14__["default"]),
35858
+ /* harmony export */ withPopover: () => (/* reexport safe */ _hoc__WEBPACK_IMPORTED_MODULE_18__.withPopover),
35859
+ /* harmony export */ withTooltip: () => (/* reexport safe */ _tooltip__WEBPACK_IMPORTED_MODULE_21__.withTooltip)
35860
35860
  /* harmony export */ });
35861
35861
  /* harmony import */ var _badge__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./badge */ "./src/badge.js");
35862
35862
  /* harmony import */ var _button__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./button */ "./src/button/index.js");
@@ -35872,14 +35872,14 @@ __webpack_require__.r(__webpack_exports__);
35872
35872
  /* harmony import */ var _modal__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./modal */ "./src/modal/index.js");
35873
35873
  /* harmony import */ var _table__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./table */ "./src/table/index.js");
35874
35874
  /* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./theme */ "./src/theme.js");
35875
- /* harmony import */ var _tooltip__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./tooltip */ "./src/tooltip.js");
35876
- /* harmony import */ var _translation__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./translation */ "./src/translation.js");
35877
- /* harmony import */ var _tab__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./tab */ "./src/tab/index.js");
35878
- /* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./typography */ "./src/typography/index.js");
35879
- /* harmony import */ var _code__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./code */ "./src/code/index.js");
35880
- /* harmony import */ var _hoc__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./hoc */ "./src/hoc/index.js");
35881
- /* harmony import */ var _progress__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./progress */ "./src/progress/index.js");
35882
- /* harmony import */ var _tag__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./tag */ "./src/tag/index.js");
35875
+ /* harmony import */ var _translation__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./translation */ "./src/translation.js");
35876
+ /* harmony import */ var _tab__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./tab */ "./src/tab/index.js");
35877
+ /* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./typography */ "./src/typography/index.js");
35878
+ /* harmony import */ var _code__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./code */ "./src/code/index.js");
35879
+ /* harmony import */ var _hoc__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./hoc */ "./src/hoc/index.js");
35880
+ /* harmony import */ var _progress__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./progress */ "./src/progress/index.js");
35881
+ /* harmony import */ var _tag__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./tag */ "./src/tag/index.js");
35882
+ /* harmony import */ var _tooltip__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./tooltip */ "./src/tooltip.js");
35883
35883
  // LICENSE_CODE ZON
35884
35884
 
35885
35885
 
@@ -36537,7 +36537,7 @@ var IconButton = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwa
36537
36537
  var ic = _icons__WEBPACK_IMPORTED_MODULE_3__["default"][icon];
36538
36538
  if (!ic) return null;
36539
36539
  var iconSize = size == 'lg' || size == 'md' ? 18 : 16;
36540
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tooltip__WEBPACK_IMPORTED_MODULE_5__["default"], {
36540
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tooltip__WEBPACK_IMPORTED_MODULE_5__.Tooltip, {
36541
36541
  tooltip: tooltip,
36542
36542
  placement: tooltipPlacement
36543
36543
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(StyledIconButton, _extends({
@@ -36765,7 +36765,7 @@ var Checkbox = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forward
36765
36765
  var newValue = !checked;
36766
36766
  onChange === null || onChange === void 0 ? void 0 : onChange(newValue, evt);
36767
36767
  };
36768
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_tooltip__WEBPACK_IMPORTED_MODULE_5__["default"], {
36768
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_tooltip__WEBPACK_IMPORTED_MODULE_5__.Tooltip, {
36769
36769
  tooltip: tooltip
36770
36770
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(CheckboxWrapper, _extends({
36771
36771
  ref: ref
@@ -38653,16 +38653,24 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
38653
38653
 
38654
38654
  var Number = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(function (props, ref) {
38655
38655
  var onChange = props.onChange,
38656
+ onBlur = props.onBlur,
38657
+ value = props.value,
38656
38658
  step = props.step,
38657
38659
  minValue = props.minValue,
38658
38660
  maxValue = props.maxValue,
38659
38661
  size = props.size,
38660
- placeholder = props.placeholder;
38662
+ placeholder = props.placeholder,
38663
+ changeOnBlur = props.changeOnBlur;
38661
38664
  var handleChange = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (e) {
38662
38665
  var v = +e.target.value;
38663
- if (typeof maxValue == 'number' && v > maxValue) v = maxValue;else if (typeof minValue == 'number' && v < minValue) v = minValue;
38664
38666
  onChange === null || onChange === void 0 ? void 0 : onChange(v, e);
38665
38667
  }, [onChange, minValue, maxValue]);
38668
+ var handleBlur = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (e) {
38669
+ onBlur === null || onBlur === void 0 ? void 0 : onBlur(e);
38670
+ if (!changeOnBlur) return;
38671
+ var v = +value;
38672
+ if (typeof maxValue == 'number' && v > maxValue) onChange === null || onChange === void 0 ? void 0 : onChange(maxValue, e);else if (typeof minValue == 'number' && v < minValue) onChange === null || onChange === void 0 ? void 0 : onChange(minValue, e);
38673
+ }, [onChange, onBlur, value, minValue, maxValue, changeOnBlur]);
38666
38674
  var heightCalculationCallback = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function () {
38667
38675
  var sizes = {
38668
38676
  'xs': 28,
@@ -38684,13 +38692,16 @@ var Number = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRe
38684
38692
  max: maxValue
38685
38693
  },
38686
38694
  Field: NumberField,
38695
+ value: value,
38687
38696
  onChange: handleChange,
38697
+ onBlur: handleBlur,
38688
38698
  placeholder: t(placeholder)
38689
38699
  }));
38690
38700
  });
38691
38701
  Number.defaultProps = {
38692
38702
  size: 'sm',
38693
- step: 1
38703
+ step: 1,
38704
+ changeOnBlur: true
38694
38705
  };
38695
38706
  Number.displayName = 'Number';
38696
38707
  Number.propTypes = {
@@ -38712,7 +38723,8 @@ Number.propTypes = {
38712
38723
  label: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().node),
38713
38724
  labelIcon: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
38714
38725
  helperText: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().node),
38715
- size: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['xs', 'sm', 'md', 'lg'])
38726
+ size: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['xs', 'sm', 'md', 'lg']),
38727
+ changeOnBlur: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool)
38716
38728
  };
38717
38729
  var NumberField = styled_components__WEBPACK_IMPORTED_MODULE_2___default().input.attrs({
38718
38730
  type: 'number'
@@ -38870,7 +38882,7 @@ var Radio = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef
38870
38882
  var handleClick = function handleClick(evt) {
38871
38883
  if (!disabled) onClick === null || onClick === void 0 ? void 0 : onClick(value, evt);
38872
38884
  };
38873
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_tooltip__WEBPACK_IMPORTED_MODULE_6__["default"], {
38885
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_tooltip__WEBPACK_IMPORTED_MODULE_6__.Tooltip, {
38874
38886
  tooltip: tooltip
38875
38887
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(RadioWrapper, _extends({
38876
38888
  ref: ref,
@@ -40075,7 +40087,7 @@ var MenuItem = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().forward
40075
40087
  ref: ref,
40076
40088
  as: tag,
40077
40089
  role: "menuitem"
40078
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_tooltip__WEBPACK_IMPORTED_MODULE_7__["default"], {
40090
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_tooltip__WEBPACK_IMPORTED_MODULE_7__.Tooltip, {
40079
40091
  tooltip: tooltip,
40080
40092
  noWrap: true
40081
40093
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(MenuItemComp, _extends({}, lodash_omit__WEBPACK_IMPORTED_MODULE_0___default()(rest, 'icon', 'iconPlacement'), {
@@ -41842,7 +41854,7 @@ var CustomizeButtonItemWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___
41842
41854
  var CustomizeButtonItemAction = function CustomizeButtonItemAction(props) {
41843
41855
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(CustomizeButtonItemActionWrapper, {
41844
41856
  onClick: props.onClick
41845
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_tooltip__WEBPACK_IMPORTED_MODULE_8__["default"], {
41857
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_tooltip__WEBPACK_IMPORTED_MODULE_8__.Tooltip, {
41846
41858
  tooltip: props.tooltip,
41847
41859
  tooltipPlacement: "top"
41848
41860
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_4__["default"], {
@@ -44205,7 +44217,7 @@ var theme = {
44205
44217
  "use strict";
44206
44218
  __webpack_require__.r(__webpack_exports__);
44207
44219
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
44208
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
44220
+ /* harmony export */ Tooltip: () => (/* binding */ Tooltip),
44209
44221
  /* harmony export */ withTooltip: () => (/* binding */ withTooltip)
44210
44222
  /* harmony export */ });
44211
44223
  /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "prop-types");
@@ -44293,7 +44305,11 @@ var Tooltip = function Tooltip(props) {
44293
44305
  strategy: 'fixed'
44294
44306
  }),
44295
44307
  styles = _usePopper.styles,
44296
- attributes = _usePopper.attributes;
44308
+ attributes = _usePopper.attributes,
44309
+ update = _usePopper.update;
44310
+ var tooltipRef = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)();
44311
+ if (visible && tooltip != tooltipRef.current && typeof update == 'function') update();
44312
+ tooltipRef.current = tooltip;
44297
44313
  if (!tooltip) return children;
44298
44314
  var tooltipNode = visible ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(StyledTooltipBody, _extends({
44299
44315
  ref: setPopperElement,
@@ -44349,7 +44365,6 @@ var StyledTooltipReference = styled_components__WEBPACK_IMPORTED_MODULE_2___defa
44349
44365
  displayName: "StyledTooltipReference",
44350
44366
  componentId: "sc-146jrck-2"
44351
44367
  })(["width:fit-content;"]);
44352
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Tooltip);
44353
44368
 
44354
44369
  /***/ }),
44355
44370
 
@@ -45084,7 +45099,7 @@ var getDataProps = function getDataProps(props) {
45084
45099
  });
45085
45100
  };
45086
45101
  var getCommonProps = function getCommonProps(props) {
45087
- return Object.assign({}, lodash_pick__WEBPACK_IMPORTED_MODULE_1___default()(props, 'id', 'className', 'style', 'onClick', 'role', 'tabIndex'), getAriaProps(props), getDataProps(props));
45102
+ return Object.assign({}, lodash_pick__WEBPACK_IMPORTED_MODULE_1___default()(props, 'id', 'className', 'style', 'role', 'tabIndex'), lodash_pick__WEBPACK_IMPORTED_MODULE_1___default()(props, 'onClick', 'onContextMenu', 'onDoubleClick', 'onDrag', 'onDragEnd', 'onDragEnter', 'onDragExit', 'onDragLeave', 'onDragOver', 'onDragStart', 'onDrop', 'onMouseDown', 'onMouseEnter', 'onMouseLeave', 'onMouseMove', 'onMouseOut', 'onMouseOver', 'onMouseUp'), lodash_pick__WEBPACK_IMPORTED_MODULE_1___default()(props, 'onPointerDown', 'onPointerMove', 'onPointerUp', 'onPointerCancel', 'onGotPointerCapture', 'onLostPointerCapture', 'onPointerEnter', 'onPointerLeave', 'onPointerOver', 'onPointerOut'), getAriaProps(props), getDataProps(props));
45088
45103
  };
45089
45104
 
45090
45105
  /***/ }),