@luminati-io/uikit 6.3.3 → 6.3.4
Sign up to get free protection for your applications and to get access to all the features.
@@ -47622,17 +47622,16 @@ __webpack_require__.r(__webpack_exports__);
|
|
47622
47622
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
47623
47623
|
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! styled-components */ "styled-components");
|
47624
47624
|
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_2__);
|
47625
|
-
/* harmony import */ var
|
47626
|
-
/* harmony import */ var
|
47627
|
-
/* harmony import */ var
|
47628
|
-
/* harmony import */ var
|
47629
|
-
/* harmony import */ var
|
47630
|
-
/* harmony import */ var
|
47631
|
-
/* harmony import */ var
|
47632
|
-
/* harmony import */ var
|
47633
|
-
/* harmony import */ var
|
47634
|
-
/* harmony import */ var
|
47635
|
-
/* harmony import */ var _menu_item_popup__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./menu_item_popup */ "./src/menu/menu_item_popup.js");
|
47625
|
+
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../constants */ "./src/constants.js");
|
47626
|
+
/* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../icon */ "./src/icon.js");
|
47627
|
+
/* harmony import */ var _tooltip__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../tooltip */ "./src/tooltip/index.js");
|
47628
|
+
/* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../typography */ "./src/typography/index.js");
|
47629
|
+
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../utils */ "./src/utils.js");
|
47630
|
+
/* harmony import */ var _menu__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./menu */ "./src/menu/menu.js");
|
47631
|
+
/* harmony import */ var _menu_item_divider__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./menu_item_divider */ "./src/menu/menu_item_divider.js");
|
47632
|
+
/* harmony import */ var _menu_item_group__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./menu_item_group */ "./src/menu/menu_item_group.js");
|
47633
|
+
/* harmony import */ var _shared__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./shared */ "./src/menu/shared.js");
|
47634
|
+
/* harmony import */ var _menu_item_popup__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./menu_item_popup */ "./src/menu/menu_item_popup.js");
|
47636
47635
|
// LICENSE_CODE ZON
|
47637
47636
|
|
47638
47637
|
|
@@ -47646,7 +47645,7 @@ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t =
|
|
47646
47645
|
|
47647
47646
|
|
47648
47647
|
|
47649
|
-
|
47648
|
+
// import pickAttrs from 'rc-util/lib/pickAttrs';
|
47650
47649
|
|
47651
47650
|
|
47652
47651
|
|
@@ -47678,7 +47677,7 @@ var MenuItem = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(fu
|
|
47678
47677
|
icon = _ref.icon,
|
47679
47678
|
iconPlacement = _ref.iconPlacement,
|
47680
47679
|
rest = _objectWithoutProperties(_ref, _excluded);
|
47681
|
-
if (type == 'divider') return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(
|
47680
|
+
if (type == 'divider') return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_menu_item_divider__WEBPACK_IMPORTED_MODULE_9__["default"], {
|
47682
47681
|
ref: ref
|
47683
47682
|
});
|
47684
47683
|
var subItems = buildSubItems(children, {
|
@@ -47686,13 +47685,13 @@ var MenuItem = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(fu
|
|
47686
47685
|
});
|
47687
47686
|
var isSubMenu = subMenu || subItems;
|
47688
47687
|
if (type == 'group') {
|
47689
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(
|
47688
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_menu_item_group__WEBPACK_IMPORTED_MODULE_10__.MenuItemGroup, _extends({
|
47690
47689
|
ref: ref,
|
47691
47690
|
text: text,
|
47692
47691
|
isFirstItem: isFirstItem
|
47693
47692
|
}, rest), subItems);
|
47694
47693
|
}
|
47695
|
-
var _getIconProps = (0,
|
47694
|
+
var _getIconProps = (0,_utils__WEBPACK_IMPORTED_MODULE_7__.getIconProps)('MenuItem', {
|
47696
47695
|
size: size,
|
47697
47696
|
icon: icon,
|
47698
47697
|
iconPlacement: iconPlacement
|
@@ -47701,23 +47700,23 @@ var MenuItem = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(fu
|
|
47701
47700
|
iconProps = _objectWithoutProperties(_getIconProps, _excluded2);
|
47702
47701
|
var iconColor = disabled ? 'icon_disabled' : variant == 'negative' ? 'icon_error' : 'icon';
|
47703
47702
|
var labelColor = disabled ? 'text_disabled' : variant == 'negative' ? 'text_error' : 'text';
|
47704
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(
|
47703
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_shared__WEBPACK_IMPORTED_MODULE_11__.MenuItemContainer, {
|
47705
47704
|
ref: ref,
|
47706
47705
|
as: tag,
|
47707
47706
|
role: "menuitem"
|
47708
|
-
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(
|
47707
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_tooltip__WEBPACK_IMPORTED_MODULE_5__.Tooltip2, {
|
47709
47708
|
tooltip: tooltip
|
47710
47709
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(MenuItemComp, _extends({}, rest, {
|
47711
47710
|
"aria-disabled": disabled ? true : undefined,
|
47712
47711
|
size: size,
|
47713
47712
|
role: "button",
|
47714
47713
|
subItems: subItems
|
47715
|
-
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(MenuItemLeft, null, isLeft && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(
|
47714
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(MenuItemLeft, null, isLeft && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_4__.Icon, _extends({}, iconProps, {
|
47716
47715
|
color: iconColor
|
47717
47716
|
})), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(MenuItemRight, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(MenuItemText, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(PrimaryText, {
|
47718
47717
|
$size: size,
|
47719
47718
|
color: labelColor
|
47720
|
-
}, text), !isSubMenu && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement((react__WEBPACK_IMPORTED_MODULE_1___default().Fragment), null, !!tertiaryText && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(
|
47719
|
+
}, text), !isSubMenu && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement((react__WEBPACK_IMPORTED_MODULE_1___default().Fragment), null, !!tertiaryText && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_6__.Label, {
|
47721
47720
|
variant: "sm",
|
47722
47721
|
whiteSpace: "nowrap",
|
47723
47722
|
color: "text_tertiary"
|
@@ -47735,7 +47734,7 @@ MenuItem.propTypes = {
|
|
47735
47734
|
description: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
47736
47735
|
type: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['item', 'divider', 'group']),
|
47737
47736
|
size: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['sm', 'md', 'lg']),
|
47738
|
-
icon: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(
|
47737
|
+
icon: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(_utils__WEBPACK_IMPORTED_MODULE_7__.iconNames),
|
47739
47738
|
// XXX alexanderse: PT.arrayOf(PT.shape(MenuItem.propTypes)) cause parse err
|
47740
47739
|
children: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)),
|
47741
47740
|
variant: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['default', 'negative']),
|
@@ -47745,7 +47744,7 @@ MenuItem.propTypes = {
|
|
47745
47744
|
tooltip: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
|
47746
47745
|
popupPlacement: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
47747
47746
|
popupClassName: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
47748
|
-
popupTrigger: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([
|
47747
|
+
popupTrigger: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([_constants__WEBPACK_IMPORTED_MODULE_3__.PT_TRIGGER, prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf(_constants__WEBPACK_IMPORTED_MODULE_3__.PT_TRIGGER)]),
|
47749
47748
|
popupStyle: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)
|
47750
47749
|
};
|
47751
47750
|
var MenuItemComp = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(function (_ref2, ref) {
|
@@ -47757,9 +47756,9 @@ var MenuItemComp = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef
|
|
47757
47756
|
rest = _objectWithoutProperties(_ref2, _excluded3);
|
47758
47757
|
var button = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(MenuItemButton, _extends({
|
47759
47758
|
ref: ref
|
47760
|
-
},
|
47759
|
+
}, rest));
|
47761
47760
|
if (subItems) {
|
47762
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(
|
47761
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_menu_item_popup__WEBPACK_IMPORTED_MODULE_12__.MenuItemPopup, {
|
47763
47762
|
subItems: subItems,
|
47764
47763
|
popupPlacement: popupPlacement,
|
47765
47764
|
popupTrigger: popupTrigger,
|
@@ -47779,7 +47778,7 @@ var MenuItemButton = styled_components__WEBPACK_IMPORTED_MODULE_2___default().di
|
|
47779
47778
|
displayName: "MenuItemButton",
|
47780
47779
|
componentId: "sc-vtiffr-0"
|
47781
47780
|
})(["display:flex;flex-direction:row;align-items:center;justify-content:flex-start;text-decoration:none;background:0 none;border:0 none;padding:0 12px;box-sizing:border-box;width:100%;min-width:168px;max-width:540px;height:", ";gap:4px;cursor:", ";&:hover{background-color:", ";}&:hover,:visited,:focus{text-decoration:none;}&:active{background-color:", ";}"], function (props) {
|
47782
|
-
return (0,
|
47781
|
+
return (0,_utils__WEBPACK_IMPORTED_MODULE_7__.toPixel)(sizes[props.size] || sizes.md);
|
47783
47782
|
}, function (props) {
|
47784
47783
|
return props['aria-disabled'] ? 'not-allowed' : 'pointer';
|
47785
47784
|
}, function (_ref3) {
|
@@ -47814,13 +47813,13 @@ var SecondaryIcon = function SecondaryIcon(_ref5) {
|
|
47814
47813
|
});
|
47815
47814
|
return null;
|
47816
47815
|
};
|
47817
|
-
var RightIcon = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(
|
47816
|
+
var RightIcon = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_icon__WEBPACK_IMPORTED_MODULE_4__.Icon).attrs({
|
47818
47817
|
size: 'xs'
|
47819
47818
|
}).withConfig({
|
47820
47819
|
displayName: "RightIcon",
|
47821
47820
|
componentId: "sc-vtiffr-4"
|
47822
47821
|
})(["margin-left:auto;"]);
|
47823
|
-
var PrimaryText = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(
|
47822
|
+
var PrimaryText = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_typography__WEBPACK_IMPORTED_MODULE_6__.Label).attrs(function (props) {
|
47824
47823
|
return {
|
47825
47824
|
variant: props.$size == 'lg' ? 'lg' : 'sm',
|
47826
47825
|
whiteSpace: 'nowrap'
|
@@ -47829,7 +47828,7 @@ var PrimaryText = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_typo
|
|
47829
47828
|
displayName: "PrimaryText",
|
47830
47829
|
componentId: "sc-vtiffr-5"
|
47831
47830
|
})(["overflow-x:clip;text-overflow:ellipsis;"]);
|
47832
|
-
var SecondaryText = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(
|
47831
|
+
var SecondaryText = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_typography__WEBPACK_IMPORTED_MODULE_6__.Label).attrs({
|
47833
47832
|
variant: 'sm',
|
47834
47833
|
color: 'text_secondary',
|
47835
47834
|
whiteSpace: 'nowrap'
|
@@ -47837,7 +47836,7 @@ var SecondaryText = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_ty
|
|
47837
47836
|
displayName: "SecondaryText",
|
47838
47837
|
componentId: "sc-vtiffr-6"
|
47839
47838
|
})(["margin-left:auto;"]);
|
47840
|
-
var Description = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(
|
47839
|
+
var Description = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_typography__WEBPACK_IMPORTED_MODULE_6__.Label).attrs({
|
47841
47840
|
variant: 'xs',
|
47842
47841
|
color: 'text_tertiary',
|
47843
47842
|
whiteSpace: 'nowrap'
|
@@ -47847,7 +47846,7 @@ var Description = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_typo
|
|
47847
47846
|
})(["width:100%;overflow-x:clip;text-overflow:ellipsis;"]);
|
47848
47847
|
var buildSubItems = function buildSubItems(children, itemProps) {
|
47849
47848
|
return Array.isArray(children) && children.length > 0 ? children.map(function (item, ind) {
|
47850
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(
|
47849
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_menu__WEBPACK_IMPORTED_MODULE_8__.Menu.Item, _extends({
|
47851
47850
|
key: item.key
|
47852
47851
|
}, item, itemProps, {
|
47853
47852
|
isFirstItem: ind == 0
|