@luminati-io/uikit 3.0.13 → 3.0.14
Sign up to get free protection for your applications and to get access to all the features.
@@ -26402,7 +26402,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
26402
26402
|
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_1__);
|
26403
26403
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "prop-types");
|
26404
26404
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
|
26405
|
-
/* harmony import */ var
|
26405
|
+
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils */ "./src/utils.js");
|
26406
|
+
/* harmony import */ var _box__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./box */ "./src/layout/box.js");
|
26406
26407
|
// LICENSE_CODE ZON
|
26407
26408
|
|
26408
26409
|
|
@@ -26415,6 +26416,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
26415
26416
|
|
26416
26417
|
|
26417
26418
|
|
26419
|
+
|
26418
26420
|
var Flex = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(function (props, ref) {
|
26419
26421
|
var inline = props.inline,
|
26420
26422
|
align_items = props.align_items,
|
@@ -26457,7 +26459,7 @@ Flex.propTypes = {
|
|
26457
26459
|
row_gap: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string),
|
26458
26460
|
column_gap: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string)
|
26459
26461
|
};
|
26460
|
-
var StyledFlex = styled_components__WEBPACK_IMPORTED_MODULE_1___default()(
|
26462
|
+
var StyledFlex = styled_components__WEBPACK_IMPORTED_MODULE_1___default()(_box__WEBPACK_IMPORTED_MODULE_4__["default"]).withConfig({
|
26461
26463
|
displayName: "StyledFlex",
|
26462
26464
|
componentId: "sc-2aqm31-0"
|
26463
26465
|
})(["display:", ";align-items:", ";align-content:", ";justify-items:", ";justify-content:", ";flex-wrap:", ";flex-direction:", ";gap:", ";row-gap:", ";column-gap:", ";"], function (props) {
|
@@ -26474,13 +26476,7 @@ var StyledFlex = styled_components__WEBPACK_IMPORTED_MODULE_1___default()(_box__
|
|
26474
26476
|
return props.$flexWrap;
|
26475
26477
|
}, function (props) {
|
26476
26478
|
return props.$flexDirection;
|
26477
|
-
},
|
26478
|
-
return props.$gap;
|
26479
|
-
}, function (props) {
|
26480
|
-
return props.$rowGap;
|
26481
|
-
}, function (props) {
|
26482
|
-
return props.$columnGap;
|
26483
|
-
});
|
26479
|
+
}, (0,_utils__WEBPACK_IMPORTED_MODULE_3__.fromTheme)('gap'), (0,_utils__WEBPACK_IMPORTED_MODULE_3__.fromTheme)('rowGap'), (0,_utils__WEBPACK_IMPORTED_MODULE_3__.fromTheme)('columnGap'));
|
26484
26480
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Flex);
|
26485
26481
|
|
26486
26482
|
/***/ }),
|
@@ -27469,12 +27465,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
27469
27465
|
/* harmony import */ var _layout__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../layout */ "./src/layout/index.js");
|
27470
27466
|
/* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../theme */ "./src/theme.js");
|
27471
27467
|
/* harmony import */ var _hoc__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../hoc */ "./src/hoc/index.js");
|
27472
|
-
/* harmony import */ var
|
27468
|
+
/* harmony import */ var _hooks__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../hooks */ "./src/hooks/index.js");
|
27469
|
+
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../constants */ "./src/constants.js");
|
27473
27470
|
// LICENSE_CODE ZON
|
27474
27471
|
|
27475
27472
|
|
27476
27473
|
/*jslint react:true*/
|
27477
|
-
var _excluded = ["show", "zIndex"];
|
27474
|
+
var _excluded = ["show", "zIndex", "onOutsideClick"];
|
27475
|
+
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); }
|
27478
27476
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
27479
27477
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
27480
27478
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
@@ -27489,13 +27487,15 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
27489
27487
|
|
27490
27488
|
|
27491
27489
|
|
27490
|
+
|
27492
27491
|
var withBackdrop = function withBackdrop(Comp) {
|
27493
27492
|
var WithBackdrop = function WithBackdrop(props) {
|
27494
|
-
// XXX davidg: support close on outside-click
|
27495
27493
|
var show = props.show,
|
27496
27494
|
_props$zIndex = props.zIndex,
|
27497
|
-
zIndex = _props$zIndex === void 0 ?
|
27495
|
+
zIndex = _props$zIndex === void 0 ? _constants__WEBPACK_IMPORTED_MODULE_6__.Z_INDEX.backdrop : _props$zIndex,
|
27496
|
+
onOutsideClick = props.onOutsideClick,
|
27498
27497
|
restProps = _objectWithoutProperties(props, _excluded);
|
27498
|
+
var popperElement = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);
|
27499
27499
|
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false),
|
27500
27500
|
_useState2 = _slicedToArray(_useState, 2),
|
27501
27501
|
visible = _useState2[0],
|
@@ -27523,6 +27523,13 @@ var withBackdrop = function withBackdrop(Comp) {
|
|
27523
27523
|
return clearTimeout(tid);
|
27524
27524
|
};
|
27525
27525
|
}, [show]);
|
27526
|
+
var hideAndStopEvt = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (evt) {
|
27527
|
+
if (!visible) return;
|
27528
|
+
evt.stopPropagation();
|
27529
|
+
evt.preventDefault();
|
27530
|
+
if (onOutsideClick) onOutsideClick();
|
27531
|
+
}, [visible, onOutsideClick]);
|
27532
|
+
(0,_hooks__WEBPACK_IMPORTED_MODULE_5__.useOutsideClick)(popperElement.current, hideAndStopEvt);
|
27526
27533
|
if (!mount) return null;
|
27527
27534
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(PopupContainer, {
|
27528
27535
|
zIndex: zIndex
|
@@ -27531,7 +27538,9 @@ var withBackdrop = function withBackdrop(Comp) {
|
|
27531
27538
|
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(CompContainer, {
|
27532
27539
|
show: visible,
|
27533
27540
|
zIndex: zIndex + 1
|
27534
|
-
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Comp,
|
27541
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Comp, _extends({
|
27542
|
+
ref: popperElement
|
27543
|
+
}, restProps))));
|
27535
27544
|
};
|
27536
27545
|
WithBackdrop.displayName = "WithBackdrop(".concat((0,_hoc__WEBPACK_IMPORTED_MODULE_4__.getDisplayName)(Comp), ")");
|
27537
27546
|
return WithBackdrop;
|
@@ -27924,7 +27933,7 @@ var TabContainer = styled_components__WEBPACK_IMPORTED_MODULE_2___default().butt
|
|
27924
27933
|
return (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.css)(["width:200px;height:40px;padding:0 12px;justify-content:space-between;gap:4px;border-radius:0 4px 4px 0;border-left:1px solid transparent;color:", ";&[aria-selected=true]{color:", ";background:", ";border-left-color:", ";}&:hover{color:", ";border-left-color:", ";}&[aria-disabled=true]{color:", ";background:0 none;border-left-color:transparent;}"], _theme__WEBPACK_IMPORTED_MODULE_3__["default"].color.gray_11_50, _theme__WEBPACK_IMPORTED_MODULE_3__["default"].color.gray_11_50, _theme__WEBPACK_IMPORTED_MODULE_3__["default"].color.blue_3, _theme__WEBPACK_IMPORTED_MODULE_3__["default"].color.blue_11, _theme__WEBPACK_IMPORTED_MODULE_3__["default"].color.gray_11_50, _theme__WEBPACK_IMPORTED_MODULE_3__["default"].color.gray_8, _theme__WEBPACK_IMPORTED_MODULE_3__["default"].color.gray_9);
|
27925
27934
|
}
|
27926
27935
|
// main
|
27927
|
-
return (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.css)(["width:fit-content;height:36px;padding:0;justify-content:center;gap:4px;color:", ";box-shadow:0px -
|
27936
|
+
return (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.css)(["width:fit-content;height:36px;padding:0;justify-content:center;gap:4px;color:", ";box-shadow:0px -1px 0px 0px ", " inset;&[aria-selected=true]{color:", ";box-shadow:0px -2px 0px 0px ", " inset;}&:hover{color:", ";box-shadow:0px -2px 0px 0px ", " inset;}&[aria-disabled=true]{color:", ";box-shadow:0px -1px 0px 0px ", " inset;}"], _theme__WEBPACK_IMPORTED_MODULE_3__["default"].color.gray_11_50, _theme__WEBPACK_IMPORTED_MODULE_3__["default"].color.gray_6, _theme__WEBPACK_IMPORTED_MODULE_3__["default"].color.blue_11, _theme__WEBPACK_IMPORTED_MODULE_3__["default"].color.blue_11, _theme__WEBPACK_IMPORTED_MODULE_3__["default"].color.gray_11_50, _theme__WEBPACK_IMPORTED_MODULE_3__["default"].color.gray_8, _theme__WEBPACK_IMPORTED_MODULE_3__["default"].color.gray_9, _theme__WEBPACK_IMPORTED_MODULE_3__["default"].color.gray_6);
|
27928
27937
|
});
|
27929
27938
|
var Left = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
|
27930
27939
|
displayName: "Left",
|
@@ -31607,8 +31616,10 @@ function fromTheme(propName, defaultValue) {
|
|
31607
31616
|
var _ref, _props$propName;
|
31608
31617
|
var value = (_ref = (_props$propName = props[propName]) !== null && _props$propName !== void 0 ? _props$propName : props["$".concat(propName)]) !== null && _ref !== void 0 ? _ref : defaultValue;
|
31609
31618
|
if (value != null) {
|
31610
|
-
|
31611
|
-
|
31619
|
+
if (propName.indexOf('padding') == 0 || propName.indexOf('margin') == 0 || ['gap', 'rowGap', 'columnGap'].includes(propName)) {
|
31620
|
+
var _theme$spacing$value;
|
31621
|
+
return (_theme$spacing$value = _theme__WEBPACK_IMPORTED_MODULE_3__["default"].spacing[value]) !== null && _theme$spacing$value !== void 0 ? _theme$spacing$value : value;
|
31622
|
+
}
|
31612
31623
|
if (['font_family', 'font_weight', 'font_size', 'line_height', 'letter_spacing', 'color', 'box_shadow'].includes(propName)) {
|
31613
31624
|
return _theme__WEBPACK_IMPORTED_MODULE_3__["default"][propName][value];
|
31614
31625
|
}
|