@luminati-io/uikit 3.8.0 → 3.8.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -36857,7 +36857,7 @@ __webpack_require__.r(__webpack_exports__);
36857
36857
 
36858
36858
  /*jslint react:true*/
36859
36859
  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); }
36860
- var _excluded = ["options", "classNamePrefix"];
36860
+ var _excluded = ["options", "classNamePrefix", "rounded"];
36861
36861
  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); }
36862
36862
  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; }
36863
36863
  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; }
@@ -36881,8 +36881,8 @@ var RadioTabStyled = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_r
36881
36881
  displayName: "RadioTabStyled",
36882
36882
  componentId: "sc-1cp95by-0"
36883
36883
  })(["", "{gap:0;border:1px solid ", ";border-radius:", ";}", "{padding:12px;border-bottom:1px solid ", ";&:hover{background-color:", ";}&:last-child{border:none;}}"], _common__WEBPACK_IMPORTED_MODULE_8__.GroupWrapper, _theme__WEBPACK_IMPORTED_MODULE_5__["default"].color.gray_6, function (_ref) {
36884
- var rounded = _ref.rounded;
36885
- return rounded ? '4px' : '0';
36884
+ var $rounded = _ref.$rounded;
36885
+ return $rounded ? '4px' : '0';
36886
36886
  }, _common__WEBPACK_IMPORTED_MODULE_8__.RadioWrapper, _theme__WEBPACK_IMPORTED_MODULE_5__["default"].color.gray_6, _theme__WEBPACK_IMPORTED_MODULE_5__["default"].color.gray_2);
36887
36887
  var Img = styled_components__WEBPACK_IMPORTED_MODULE_2___default().img.withConfig({
36888
36888
  displayName: "Img",
@@ -36923,9 +36923,11 @@ var radioTabPrefix = 'radioTab';
36923
36923
  var RadioTab = function RadioTab(props) {
36924
36924
  var options = props.options,
36925
36925
  classNamePrefix = props.classNamePrefix,
36926
+ rounded = props.rounded,
36926
36927
  rest = _objectWithoutProperties(props, _excluded);
36927
36928
  var cnPrefix = classNamePrefix ? "".concat(classNamePrefix, "_").concat(radioTabPrefix) : radioTabPrefix;
36928
36929
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(RadioTabStyled, _extends({}, rest, {
36930
+ $rounded: rounded,
36929
36931
  classNamePrefix: cnPrefix,
36930
36932
  options: options.map(function (o) {
36931
36933
  return _objectSpread(_objectSpread({}, o), {}, {
@@ -38741,11 +38743,12 @@ var MenuItemPopoverTrigger = function MenuItemPopoverTrigger(props) {
38741
38743
  var popover = props.popover,
38742
38744
  onClick = props.onClick,
38743
38745
  rest = _objectWithoutProperties(props, _excluded4);
38746
+ var buttonProps = lodash_omit__WEBPACK_IMPORTED_MODULE_0___default()(rest, 'isOpen');
38744
38747
  var _onClick = (0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function (evt) {
38745
38748
  onClick === null || onClick === void 0 || onClick(evt);
38746
38749
  popover.toggle();
38747
38750
  }, [onClick, popover.toggle]);
38748
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(MenuItemButton, _extends({}, rest, {
38751
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(MenuItemButton, _extends({}, buttonProps, {
38749
38752
  onClick: _onClick
38750
38753
  }));
38751
38754
  };
@@ -44784,7 +44787,9 @@ var Tooltip = function Tooltip(props) {
44784
44787
  placement = props.placement,
44785
44788
  noWrap = props.noWrap,
44786
44789
  interactive = props.interactive,
44787
- trigger = props.trigger;
44790
+ trigger = props.trigger,
44791
+ className = props.className,
44792
+ variant = props.variant;
44788
44793
  var _useState = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(null),
44789
44794
  _useState2 = _slicedToArray(_useState, 2),
44790
44795
  referenceElement = _useState2[0],
@@ -44850,10 +44855,11 @@ var Tooltip = function Tooltip(props) {
44850
44855
  var tooltipNode = visible ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(StyledTooltipBody, _extends({
44851
44856
  ref: setPopperElement,
44852
44857
  role: "tooltip",
44858
+ $variant: variant,
44853
44859
  style: styles.popper
44854
44860
  }, attributes.popper, interactive ? triggerProps : {}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_4__.Label, {
44855
44861
  variant: "sm",
44856
- color: "white"
44862
+ color: variant == 'white' ? 'black' : 'white'
44857
44863
  }, tooltip), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(StyledTooltipArrow, _extends({
44858
44864
  ref: setArrowElement,
44859
44865
  style: styles.arrow
@@ -44865,19 +44871,22 @@ var Tooltip = function Tooltip(props) {
44865
44871
  }, triggerProps)), tooltipNode);
44866
44872
  }
44867
44873
  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({
44868
- ref: setReferenceElement
44874
+ ref: setReferenceElement,
44875
+ className: className
44869
44876
  }, triggerProps), children), tooltipNode);
44870
44877
  };
44871
44878
  Tooltip.defaultProps = {
44872
44879
  placement: 'top',
44873
- trigger: 'hover'
44880
+ trigger: 'hover',
44881
+ variant: 'black'
44874
44882
  };
44875
44883
  Tooltip.propTypes = {
44876
44884
  tooltip: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
44877
44885
  placement: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(_util__WEBPACK_IMPORTED_MODULE_5__.tooltipPlacement),
44878
44886
  noWrap: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
44879
44887
  interactive: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
44880
- trigger: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['hover', 'focus'])
44888
+ trigger: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['hover', 'focus']),
44889
+ variant: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['black', 'white'])
44881
44890
  };
44882
44891
  var withTooltip = function withTooltip(Comp, tooltipProps) {
44883
44892
  return function WithTooltip(props) {
@@ -44887,7 +44896,9 @@ var withTooltip = function withTooltip(Comp, tooltipProps) {
44887
44896
  var StyledTooltipBody = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
44888
44897
  displayName: "StyledTooltipBody",
44889
44898
  componentId: "sc-146jrck-0"
44890
- })(["background-color:", ";padding:", ";width:fit-content;max-width:500px;border-radius:", ";transition:opacity 200ms;z-index:", ";"], _theme__WEBPACK_IMPORTED_MODULE_3__["default"].color.gray_11_50, _theme__WEBPACK_IMPORTED_MODULE_3__["default"].spacing['03'], _theme__WEBPACK_IMPORTED_MODULE_3__["default"].spacing['02'], _constants__WEBPACK_IMPORTED_MODULE_6__.Z_INDEX.tooltip);
44899
+ })(["background-color:", ";padding:", ";width:fit-content;max-width:500px;border-radius:", ";transition:opacity 200ms;z-index:", ";", ";"], _theme__WEBPACK_IMPORTED_MODULE_3__["default"].color.gray_11_50, _theme__WEBPACK_IMPORTED_MODULE_3__["default"].spacing['03'], _theme__WEBPACK_IMPORTED_MODULE_3__["default"].spacing['02'], _constants__WEBPACK_IMPORTED_MODULE_6__.Z_INDEX.tooltip, function (props) {
44900
+ return props.$variant == 'white' && (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.css)(["background-color:", ";border:1px solid ", ";box-shadow:", ";"], _theme__WEBPACK_IMPORTED_MODULE_3__["default"].color.white, _theme__WEBPACK_IMPORTED_MODULE_3__["default"].color.gray_4, _theme__WEBPACK_IMPORTED_MODULE_3__["default"].box_shadow['md']);
44901
+ });
44891
44902
  var StyledTooltipArrow = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
44892
44903
  displayName: "StyledTooltipArrow",
44893
44904
  componentId: "sc-146jrck-1"