@luminati-io/uikit 3.8.0 → 3.8.1
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
|
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({},
|
38751
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(MenuItemButton, _extends({}, buttonProps, {
|
38749
38752
|
onClick: _onClick
|
38750
38753
|
}));
|
38751
38754
|
};
|
@@ -44784,7 +44787,8 @@ 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;
|
44788
44792
|
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(null),
|
44789
44793
|
_useState2 = _slicedToArray(_useState, 2),
|
44790
44794
|
referenceElement = _useState2[0],
|
@@ -44865,7 +44869,8 @@ var Tooltip = function Tooltip(props) {
|
|
44865
44869
|
}, triggerProps)), tooltipNode);
|
44866
44870
|
}
|
44867
44871
|
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
|
44872
|
+
ref: setReferenceElement,
|
44873
|
+
className: className
|
44869
44874
|
}, triggerProps), children), tooltipNode);
|
44870
44875
|
};
|
44871
44876
|
Tooltip.defaultProps = {
|