@luminati-io/uikit 1.9.15 → 1.9.17-beta.0

Sign up to get free protection for your applications and to get access to all the features.
package/dist/uikit.umd.js CHANGED
@@ -22663,13 +22663,14 @@ __webpack_require__.r(__webpack_exports__);
22663
22663
  /* harmony export */ });
22664
22664
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
22665
22665
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
22666
+ /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-dom */ "react-dom");
22667
+ /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_1__);
22666
22668
  /* harmony import */ var react_popper__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react-popper */ "./node_modules/react-popper/lib/esm/usePopper.js");
22667
- /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! styled-components */ "styled-components");
22668
- /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_1__);
22669
- /* harmony import */ var _hooks__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../hooks */ "./src/hooks/index.js");
22670
- /* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../constants */ "./src/constants.js");
22671
- /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./util */ "./src/hoc/util.js");
22672
- /* harmony import */ var _with_portal__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./with_portal */ "./src/hoc/with_portal.js");
22669
+ /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! styled-components */ "styled-components");
22670
+ /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_2__);
22671
+ /* harmony import */ var _hooks__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../hooks */ "./src/hooks/index.js");
22672
+ /* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../constants */ "./src/constants.js");
22673
+ /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./util */ "./src/hoc/util.js");
22673
22674
  // LICENSE_CODE ZON
22674
22675
 
22675
22676
 
@@ -22736,7 +22737,8 @@ var withPopover = function withPopover(Comp, PopoverComp) {
22736
22737
  options: {
22737
22738
  offset: [0, 8]
22738
22739
  }
22739
- }]
22740
+ }],
22741
+ strategy: 'fixed'
22740
22742
  }),
22741
22743
  styles = _usePopper.styles,
22742
22744
  attributes = _usePopper.attributes;
@@ -22753,10 +22755,7 @@ var withPopover = function withPopover(Comp, PopoverComp) {
22753
22755
  evt.preventDefault();
22754
22756
  hidePopover();
22755
22757
  }, [popoverVisible, hidePopover]);
22756
- (0,_hooks__WEBPACK_IMPORTED_MODULE_2__.useOutsideClick)([referenceElement, popperElement], hideAndStopEvt);
22757
- var target = (0,_hooks__WEBPACK_IMPORTED_MODULE_2__.usePortalTarget)({
22758
- portalTarget: portalTarget
22759
- });
22758
+ (0,_hooks__WEBPACK_IMPORTED_MODULE_3__.useOutsideClick)([referenceElement, popperElement], hideAndStopEvt);
22760
22759
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(RefCompContainer, {
22761
22760
  ref: setReferenceElement,
22762
22761
  className: wrapperClassName,
@@ -22770,31 +22769,34 @@ var withPopover = function withPopover(Comp, PopoverComp) {
22770
22769
  style: styles.popper,
22771
22770
  attributes: attributes.popper,
22772
22771
  visible: popoverVisible,
22773
- portalTarget: target,
22772
+ portalTarget: portalTarget,
22774
22773
  zIndex: zIndex
22775
22774
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(PopoverComp, _extends({}, restPopoverProps, {
22776
22775
  popover: popoverApi
22777
22776
  }))));
22778
22777
  });
22779
- WithPopover.displayName = "WithPopover(".concat((0,_util__WEBPACK_IMPORTED_MODULE_4__.getDisplayName)(Comp), ")");
22778
+ WithPopover.displayName = "WithPopover(".concat((0,_util__WEBPACK_IMPORTED_MODULE_5__.getDisplayName)(Comp), ")");
22780
22779
  return WithPopover;
22781
22780
  };
22782
- var PopoverContainer = (0,_with_portal__WEBPACK_IMPORTED_MODULE_5__["default"])( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(function _PopoverContainer(props, ref) {
22781
+ var PopoverContainer = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(function (props, ref) {
22783
22782
  var children = props.children,
22784
22783
  attributes = props.attributes,
22785
22784
  _props$zIndex = props.zIndex,
22786
- zIndex = _props$zIndex === void 0 ? _constants__WEBPACK_IMPORTED_MODULE_3__.Z_INDEX.popover : _props$zIndex,
22787
- visible = props.visible;
22785
+ zIndex = _props$zIndex === void 0 ? _constants__WEBPACK_IMPORTED_MODULE_4__.Z_INDEX.popover : _props$zIndex,
22786
+ visible = props.visible,
22787
+ portalTarget = props.portalTarget;
22788
22788
  var style = assign({}, props.style, {
22789
22789
  zIndex: zIndex,
22790
22790
  visibility: visible ? 'visible' : 'hidden'
22791
22791
  });
22792
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(RefCompContainer, _extends({
22792
+ var comp = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(RefCompContainer, _extends({
22793
22793
  ref: ref,
22794
22794
  style: style
22795
22795
  }, attributes), children);
22796
- }));
22797
- var RefCompContainer = styled_components__WEBPACK_IMPORTED_MODULE_1___default().div.withConfig({
22796
+ return portalTarget ? /*#__PURE__*/react_dom__WEBPACK_IMPORTED_MODULE_1___default().createPortal(comp, portalTarget) : comp;
22797
+ });
22798
+ PopoverContainer.displayName = 'PopoverContainer';
22799
+ var RefCompContainer = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
22798
22800
  displayName: "RefCompContainer",
22799
22801
  componentId: "sc-1hvrlux-0"
22800
22802
  })(["width:fit-content;"]);
@@ -22815,49 +22817,6 @@ var useStateWithCallback = function useStateWithCallback(initialValue, callback)
22815
22817
 
22816
22818
  /***/ }),
22817
22819
 
22818
- /***/ "./src/hoc/with_portal.js":
22819
- /*!********************************!*\
22820
- !*** ./src/hoc/with_portal.js ***!
22821
- \********************************/
22822
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
22823
-
22824
- "use strict";
22825
- __webpack_require__.r(__webpack_exports__);
22826
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
22827
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
22828
- /* harmony export */ });
22829
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
22830
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
22831
- /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-dom */ "react-dom");
22832
- /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_1__);
22833
- /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./util */ "./src/hoc/util.js");
22834
- // LICENSE_CODE ZON
22835
-
22836
-
22837
- /*jslint react:true*/
22838
- var _excluded = ["portalTarget"];
22839
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
22840
- function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
22841
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
22842
-
22843
-
22844
-
22845
- var withPortal = function withPortal(Comp) {
22846
- var WithPortal = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(function (props, ref) {
22847
- var portalTarget = props.portalTarget,
22848
- rest = _objectWithoutProperties(props, _excluded);
22849
- var comp = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Comp, _extends({
22850
- ref: ref
22851
- }, rest));
22852
- return portalTarget ? /*#__PURE__*/react_dom__WEBPACK_IMPORTED_MODULE_1___default().createPortal(comp, portalTarget) : comp;
22853
- });
22854
- WithPortal.displayName = "WithPortal(".concat((0,_util__WEBPACK_IMPORTED_MODULE_2__.getDisplayName)(Comp), ")");
22855
- return WithPortal;
22856
- };
22857
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (withPortal);
22858
-
22859
- /***/ }),
22860
-
22861
22820
  /***/ "./src/hooks/index.js":
22862
22821
  /*!****************************!*\
22863
22822
  !*** ./src/hooks/index.js ***!
@@ -29347,6 +29306,7 @@ var theme = {
29347
29306
  mono: "'Monaco', sans-serif"
29348
29307
  },
29349
29308
  font_size: {
29309
+ xxs: '11px',
29350
29310
  xs: '12px',
29351
29311
  sm: '13px',
29352
29312
  md: '14px',
@@ -29915,6 +29875,7 @@ var Paragraph = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwar
29915
29875
  var t = (0,_translation__WEBPACK_IMPORTED_MODULE_2__.useReactTranslate)();
29916
29876
  var typographyProps = _objectSpread(_objectSpread({}, (0,_utils__WEBPACK_IMPORTED_MODULE_3__.getTypographyProps)(props)), {}, {
29917
29877
  font_size: {
29878
+ xxs: 'xxs',
29918
29879
  xs: 'xs',
29919
29880
  sm: 'sm'
29920
29881
  }[props.variant] || 'md',
@@ -29932,7 +29893,7 @@ Paragraph.defaultProps = {
29932
29893
  variant: 'lg_snug'
29933
29894
  };
29934
29895
  Paragraph.propTypes = {
29935
- variant: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['xs', 'sm', 'lg_snug', 'lg_loose'])
29896
+ variant: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['xxs', 'xs', 'sm', 'lg_snug', 'lg_loose'])
29936
29897
  };
29937
29898
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Paragraph);
29938
29899