@luminati-io/uikit 6.2.11 → 6.2.13
Sign up to get free protection for your applications and to get access to all the features.
@@ -31473,7 +31473,7 @@ var BreadcrumbsItem = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forward
|
|
31473
31473
|
}, [item.text, maxItemWidth]);
|
31474
31474
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_layout__WEBPACK_IMPORTED_MODULE_2__.Flex, {
|
31475
31475
|
ref: ref
|
31476
|
-
}, isLastItem && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tooltip__WEBPACK_IMPORTED_MODULE_4__.
|
31476
|
+
}, isLastItem && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tooltip__WEBPACK_IMPORTED_MODULE_4__.Tooltip2, {
|
31477
31477
|
tooltip: isOverflown ? item.text : undefined
|
31478
31478
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(StyledLabel, {
|
31479
31479
|
ref: labelRef,
|
@@ -34109,11 +34109,11 @@ CodeBlock.propTypes = {
|
|
34109
34109
|
var CodeBlockWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
|
34110
34110
|
displayName: "CodeBlockWrapper",
|
34111
34111
|
componentId: "sc-dgi5hi-0"
|
34112
|
-
})(["border-radius:
|
34112
|
+
})(["", "{border-top-left-radius:0;border-top-right-radius:0;}"], _code_snippet__WEBPACK_IMPORTED_MODULE_4__.CodeSnipperWrapper);
|
34113
34113
|
var CodeBlockHeader = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
|
34114
34114
|
displayName: "CodeBlockHeader",
|
34115
34115
|
componentId: "sc-dgi5hi-1"
|
34116
|
-
})(["display:flex;align-items:center;justify-content:space-between;padding:0.9em 1em;font-family:", ";font-size:", ";&.black{background-color:", ";color:", ";}&.white{background-color:", ";color:", ";}"], function (_ref) {
|
34116
|
+
})(["display:flex;align-items:center;justify-content:space-between;padding:0.9em 1em;border-radius:4px 4px 0 0;font-family:", ";font-size:", ";&.black{background-color:", ";color:", ";}&.white{background-color:", ";color:", ";}"], function (_ref) {
|
34117
34117
|
var font_family = _ref.theme.font_family;
|
34118
34118
|
return font_family.sans;
|
34119
34119
|
}, function (_ref2) {
|
@@ -34144,6 +34144,7 @@ var CodeBlockHeader = styled_components__WEBPACK_IMPORTED_MODULE_2___default().d
|
|
34144
34144
|
"use strict";
|
34145
34145
|
__webpack_require__.r(__webpack_exports__);
|
34146
34146
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
34147
|
+
/* harmony export */ CodeSnipperWrapper: () => (/* binding */ CodeSnipperWrapper),
|
34147
34148
|
/* harmony export */ CodeSnippet: () => (/* binding */ CodeSnippet)
|
34148
34149
|
/* harmony export */ });
|
34149
34150
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
@@ -34181,26 +34182,26 @@ var CodeSnippet = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)
|
|
34181
34182
|
maxHeight = _ref.maxHeight,
|
34182
34183
|
wrap = _ref.wrap;
|
34183
34184
|
var codeRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);
|
34184
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(
|
34185
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(CodeSnipperWrapper, {
|
34185
34186
|
ref: ref,
|
34186
34187
|
className: (0,_util__WEBPACK_IMPORTED_MODULE_3__.classNames)(null, {}, className, variant),
|
34187
34188
|
style: maxHeight ? {
|
34188
34189
|
maxHeight: maxHeight
|
34189
34190
|
} : undefined
|
34190
|
-
}, !loading && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(
|
34191
|
+
}, !loading && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, !!copyButton && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_copy_button__WEBPACK_IMPORTED_MODULE_5__.CopyButton, {
|
34192
|
+
className: copyButtonClassName,
|
34193
|
+
code: code,
|
34194
|
+
variant: variant,
|
34195
|
+
codeRef: codeRef,
|
34196
|
+
onCopy: onCopy
|
34197
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(CodeWrapper, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_code__WEBPACK_IMPORTED_MODULE_4__.Code, {
|
34191
34198
|
ref: codeRef,
|
34192
34199
|
lang: lang,
|
34193
34200
|
code: code,
|
34194
34201
|
variant: variant,
|
34195
34202
|
lineNumbers: lineNumbers,
|
34196
34203
|
wrap: wrap
|
34197
|
-
}), !!
|
34198
|
-
className: copyButtonClassName,
|
34199
|
-
code: code,
|
34200
|
-
variant: variant,
|
34201
|
-
codeRef: codeRef,
|
34202
|
-
onCopy: onCopy
|
34203
|
-
})), !!loading && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_skeleton__WEBPACK_IMPORTED_MODULE_6__.Skeleton, {
|
34204
|
+
}))), !!loading && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_skeleton__WEBPACK_IMPORTED_MODULE_6__.Skeleton, {
|
34204
34205
|
variant: variant
|
34205
34206
|
}));
|
34206
34207
|
});
|
@@ -34218,33 +34219,34 @@ CodeSnippet.propTypes = {
|
|
34218
34219
|
onCopy: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().func),
|
34219
34220
|
wrap: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().bool)
|
34220
34221
|
};
|
34221
|
-
var
|
34222
|
-
displayName: "
|
34222
|
+
var CodeSnipperWrapper = styled_components__WEBPACK_IMPORTED_MODULE_1___default().div.withConfig({
|
34223
|
+
displayName: "CodeSnipperWrapper",
|
34223
34224
|
componentId: "sc-13u859f-0"
|
34224
|
-
})(["position:relative;
|
34225
|
-
var
|
34226
|
-
return
|
34225
|
+
})(["position:relative;min-height:48px;display:flex;border-radius:4px;&.black{background-color:", ";}&.white{background-color:", ";}"], function (_ref2) {
|
34226
|
+
var color = _ref2.theme.color;
|
34227
|
+
return color.code_bg_black;
|
34227
34228
|
}, function (_ref3) {
|
34228
|
-
var
|
34229
|
-
return
|
34230
|
-
}
|
34229
|
+
var color = _ref3.theme.color;
|
34230
|
+
return color.code_bg_white;
|
34231
|
+
});
|
34232
|
+
var CodeWrapper = styled_components__WEBPACK_IMPORTED_MODULE_1___default().div.withConfig({
|
34233
|
+
displayName: "CodeWrapper",
|
34234
|
+
componentId: "sc-13u859f-1"
|
34235
|
+
})(["flex:1;padding-top:", ";padding-right:", ";padding-bottom:", ";padding-left:", ";overflow:auto;", ""], function (_ref4) {
|
34231
34236
|
var spacing = _ref4.theme.spacing;
|
34232
34237
|
return spacing['04'];
|
34233
34238
|
}, function (_ref5) {
|
34234
34239
|
var spacing = _ref5.theme.spacing;
|
34235
|
-
return spacing['
|
34240
|
+
return spacing['04'];
|
34236
34241
|
}, function (_ref6) {
|
34237
34242
|
var spacing = _ref6.theme.spacing;
|
34238
|
-
return spacing['
|
34243
|
+
return spacing['05'];
|
34239
34244
|
}, function (_ref7) {
|
34240
|
-
var
|
34241
|
-
return
|
34245
|
+
var spacing = _ref7.theme.spacing;
|
34246
|
+
return spacing['04'];
|
34242
34247
|
}, function (_ref8) {
|
34243
|
-
var
|
34244
|
-
return
|
34245
|
-
}, function (_ref9) {
|
34246
|
-
var color = _ref9.theme.color;
|
34247
|
-
return color.code_bg_white;
|
34248
|
+
var scrollbars = _ref8.theme.scrollbars;
|
34249
|
+
return scrollbars.auto;
|
34248
34250
|
});
|
34249
34251
|
|
34250
34252
|
/***/ }),
|
@@ -34323,7 +34325,7 @@ var CopyButton = function CopyButton(_ref) {
|
|
34323
34325
|
resetText();
|
34324
34326
|
});
|
34325
34327
|
}, [code]);
|
34326
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tooltip__WEBPACK_IMPORTED_MODULE_3__.
|
34328
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tooltip__WEBPACK_IMPORTED_MODULE_3__.Tooltip2, {
|
34327
34329
|
tooltip: tooltips[state],
|
34328
34330
|
placement: "right"
|
34329
34331
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(StyledButton, {
|
@@ -34340,7 +34342,7 @@ var CopyButton = function CopyButton(_ref) {
|
|
34340
34342
|
var StyledButton = styled_components__WEBPACK_IMPORTED_MODULE_1___default().button.withConfig({
|
34341
34343
|
displayName: "StyledButton",
|
34342
34344
|
componentId: "sc-kvxvoe-0"
|
34343
|
-
})(["position:absolute;
|
34345
|
+
})(["position:absolute;inset-inline-end:16px;bottom:8px;z-index:1;display:flex;padding:8px;align-items:flex-start;border:0 none;border-radius:32px;background:", ";svg{width:16px;height:16px;color:", ";}&:hover,&:active{background:", ";}"], function (_ref2) {
|
34344
34346
|
var $variant = _ref2.$variant,
|
34345
34347
|
color = _ref2.theme.color;
|
34346
34348
|
return $variant == 'white' ? color.code_bg_icon_white : color.code_bg_icon_black;
|
@@ -34669,6 +34671,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
34669
34671
|
/* harmony export */ INPUT_HORIZONTAL_PADDING: () => (/* binding */ INPUT_HORIZONTAL_PADDING),
|
34670
34672
|
/* harmony export */ INPUT_VERTICAL_PADDING: () => (/* binding */ INPUT_VERTICAL_PADDING),
|
34671
34673
|
/* harmony export */ PT_NECESSITY_INDICATOR: () => (/* binding */ PT_NECESSITY_INDICATOR),
|
34674
|
+
/* harmony export */ PT_TOOLTIP_PLACEMENT: () => (/* binding */ PT_TOOLTIP_PLACEMENT),
|
34675
|
+
/* harmony export */ PT_TRIGGER: () => (/* binding */ PT_TRIGGER),
|
34672
34676
|
/* harmony export */ TOOLTIP_PLACEMENT: () => (/* binding */ TOOLTIP_PLACEMENT),
|
34673
34677
|
/* harmony export */ Z_INDEX: () => (/* binding */ Z_INDEX)
|
34674
34678
|
/* harmony export */ });
|
@@ -34679,6 +34683,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
34679
34683
|
/*jslint react:true*/
|
34680
34684
|
|
34681
34685
|
var PT_NECESSITY_INDICATOR = prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['none', 'asterisk', 'text']);
|
34686
|
+
var PT_TOOLTIP_PLACEMENT = prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['right', 'top', 'left', 'bottom', 'topLeft', 'topRight', 'bottomLeft', 'bottomRight', 'leftTop', 'leftBottom', 'rightTop', 'rightBottom']);
|
34687
|
+
var PT_TRIGGER = prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['hover', 'click', 'focus', 'contextMenu']);
|
34682
34688
|
var Z_INDEX = {
|
34683
34689
|
editingCell: 1,
|
34684
34690
|
cellResizer: 1,
|
@@ -34689,6 +34695,7 @@ var Z_INDEX = {
|
|
34689
34695
|
popover: 1000,
|
34690
34696
|
backdrop: 1040,
|
34691
34697
|
drawer: 1050,
|
34698
|
+
modal: 1060,
|
34692
34699
|
datepicker: 2000,
|
34693
34700
|
tooltip: 9999,
|
34694
34701
|
dropdown: 999999,
|
@@ -34754,8 +34761,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
34754
34761
|
/* harmony export */ translation: () => (/* reexport safe */ _translation__WEBPACK_IMPORTED_MODULE_4__["default"]),
|
34755
34762
|
/* harmony export */ useTheme: () => (/* reexport safe */ _themes__WEBPACK_IMPORTED_MODULE_25__.useTheme),
|
34756
34763
|
/* harmony export */ useToaster: () => (/* reexport safe */ _toast__WEBPACK_IMPORTED_MODULE_20__.useToaster),
|
34757
|
-
/* harmony export */ withPopover: () => (/* reexport safe */ _hoc__WEBPACK_IMPORTED_MODULE_13__.withPopover)
|
34758
|
-
/* harmony export */ withTooltip: () => (/* reexport safe */ _tooltip__WEBPACK_IMPORTED_MODULE_24__.withTooltip)
|
34764
|
+
/* harmony export */ withPopover: () => (/* reexport safe */ _hoc__WEBPACK_IMPORTED_MODULE_13__.withPopover)
|
34759
34765
|
/* harmony export */ });
|
34760
34766
|
/* harmony import */ var _chart__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./chart */ "./src/chart/index.js");
|
34761
34767
|
/* harmony import */ var _input__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./input */ "./src/input/index.js");
|
@@ -35257,7 +35263,9 @@ var withPopover = function withPopover(Comp, PopoverComp) {
|
|
35257
35263
|
popoverClassName = popoverOptions.popoverClassName,
|
35258
35264
|
popoverStyle = popoverOptions.popoverStyle,
|
35259
35265
|
interactive = popoverOptions.interactive,
|
35260
|
-
delay = popoverOptions.delay
|
35266
|
+
delay = popoverOptions.delay,
|
35267
|
+
_popoverOptions$swall = popoverOptions.swallowOutsideClick,
|
35268
|
+
swallowOutsideClick = _popoverOptions$swall === void 0 ? true : _popoverOptions$swall;
|
35261
35269
|
var _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(null),
|
35262
35270
|
_useState4 = _slicedToArray(_useState3, 2),
|
35263
35271
|
referenceElement = _useState4[0],
|
@@ -35315,10 +35323,12 @@ var withPopover = function withPopover(Comp, PopoverComp) {
|
|
35315
35323
|
}, [showPopover, hidePopover, togglePopover, update, forceUpdate]);
|
35316
35324
|
var hideAndStopEvt = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (evt) {
|
35317
35325
|
if (!isOpen) return;
|
35318
|
-
evt.stopPropagation();
|
35319
|
-
evt.preventDefault();
|
35320
35326
|
hidePopover();
|
35321
|
-
|
35327
|
+
if (swallowOutsideClick) {
|
35328
|
+
evt.stopPropagation();
|
35329
|
+
evt.preventDefault();
|
35330
|
+
}
|
35331
|
+
}, [isOpen, swallowOutsideClick, hidePopover]);
|
35322
35332
|
var onPointerEnter = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (evt) {
|
35323
35333
|
var _compProps$onPointerE;
|
35324
35334
|
if (interactive) showPopover();
|
@@ -35958,7 +35968,7 @@ var IconButton = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwa
|
|
35958
35968
|
var ic = _icons__WEBPACK_IMPORTED_MODULE_3__["default"][icon];
|
35959
35969
|
if (!ic) return null;
|
35960
35970
|
var iconSize = size == 'lg' || size == 'md' ? 18 : 16;
|
35961
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tooltip__WEBPACK_IMPORTED_MODULE_6__.
|
35971
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tooltip__WEBPACK_IMPORTED_MODULE_6__.Tooltip2, {
|
35962
35972
|
tooltip: tooltip,
|
35963
35973
|
placement: tooltipPlacement
|
35964
35974
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(StyledIconButton, _extends({
|
@@ -35981,7 +35991,7 @@ IconButton.propTypes = {
|
|
35981
35991
|
disabled: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().bool),
|
35982
35992
|
active: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().bool),
|
35983
35993
|
tooltip: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().node),
|
35984
|
-
tooltipPlacement:
|
35994
|
+
tooltipPlacement: _constants__WEBPACK_IMPORTED_MODULE_4__.PT_TOOLTIP_PLACEMENT,
|
35985
35995
|
size: prop_types__WEBPACK_IMPORTED_MODULE_2___default().oneOf(['xs', 'sm', 'md', 'lg'])
|
35986
35996
|
};
|
35987
35997
|
var StyledIconButton = styled_components__WEBPACK_IMPORTED_MODULE_1___default().button.withConfig({
|
@@ -36204,7 +36214,7 @@ var Checkbox = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forward
|
|
36204
36214
|
var newValue = !checked;
|
36205
36215
|
onChange === null || onChange === void 0 || onChange(newValue, evt);
|
36206
36216
|
};
|
36207
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_tooltip__WEBPACK_IMPORTED_MODULE_4__.
|
36217
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_tooltip__WEBPACK_IMPORTED_MODULE_4__.Tooltip2, {
|
36208
36218
|
tooltip: tooltip
|
36209
36219
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(CheckboxWrapper, _extends({
|
36210
36220
|
ref: ref
|
@@ -36248,7 +36258,8 @@ Checkbox.propTypes = {
|
|
36248
36258
|
verticalAlign: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['top', 'middle', 'bottom']),
|
36249
36259
|
classNamePrefix: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
36250
36260
|
tabIndex: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
36251
|
-
readOnly: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)
|
36261
|
+
readOnly: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
36262
|
+
tooltip: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node)
|
36252
36263
|
};
|
36253
36264
|
var CheckboxWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
|
36254
36265
|
displayName: "CheckboxWrapper",
|
@@ -40801,7 +40812,7 @@ var InputLabel = function InputLabel(_ref7) {
|
|
40801
40812
|
}, t(label), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(NecessityIndicator, {
|
40802
40813
|
required: required,
|
40803
40814
|
indicator: necessityIndicator
|
40804
|
-
})), labelIcon && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_tooltip__WEBPACK_IMPORTED_MODULE_6__.
|
40815
|
+
})), labelIcon && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_tooltip__WEBPACK_IMPORTED_MODULE_6__.Tooltip2, {
|
40805
40816
|
tooltip: labelTooltip
|
40806
40817
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_4__.Icon, {
|
40807
40818
|
className: (0,_util__WEBPACK_IMPORTED_MODULE_9__.classNames)(classNamePrefix, {
|
@@ -42305,32 +42316,29 @@ __webpack_require__.r(__webpack_exports__);
|
|
42305
42316
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
42306
42317
|
/* harmony export */ MenuItem: () => (/* binding */ MenuItem)
|
42307
42318
|
/* harmony export */ });
|
42308
|
-
/* harmony import */ var
|
42309
|
-
/* harmony import */ var
|
42310
|
-
/* harmony import */ var
|
42311
|
-
/* harmony import */ var
|
42312
|
-
/* harmony import */ var
|
42313
|
-
/* harmony import */ var
|
42314
|
-
/* harmony import */ var
|
42315
|
-
/* harmony import */ var
|
42316
|
-
/* harmony import */ var
|
42317
|
-
/* harmony import */ var
|
42318
|
-
/* harmony import */ var
|
42319
|
-
/* harmony import */ var
|
42320
|
-
/* harmony import */ var
|
42321
|
-
/* harmony import */ var
|
42322
|
-
/* harmony import */ var
|
42323
|
-
/* harmony import */ var
|
42324
|
-
/* harmony import */ var _shared__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./shared */ "./src/menu/shared.js");
|
42319
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "prop-types");
|
42320
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
|
42321
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
42322
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
42323
|
+
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! styled-components */ "styled-components");
|
42324
|
+
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_2__);
|
42325
|
+
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../constants */ "./src/constants.js");
|
42326
|
+
/* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../icon */ "./src/icon.js");
|
42327
|
+
/* harmony import */ var _tooltip__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../tooltip */ "./src/tooltip/index.js");
|
42328
|
+
/* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../typography */ "./src/typography/index.js");
|
42329
|
+
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../utils */ "./src/utils.js");
|
42330
|
+
/* harmony import */ var _menu__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./menu */ "./src/menu/menu.js");
|
42331
|
+
/* harmony import */ var _menu_item_divider__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./menu_item_divider */ "./src/menu/menu_item_divider.js");
|
42332
|
+
/* harmony import */ var _menu_item_group__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./menu_item_group */ "./src/menu/menu_item_group.js");
|
42333
|
+
/* harmony import */ var _shared__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./shared */ "./src/menu/shared.js");
|
42334
|
+
/* harmony import */ var _menu_item_popup__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./menu_item_popup */ "./src/menu/menu_item_popup.js");
|
42325
42335
|
// LICENSE_CODE ZON
|
42326
42336
|
|
42327
42337
|
|
42328
42338
|
/*jslint react:true*/
|
42329
|
-
|
42330
42339
|
var _excluded = ["type", "text", "secondaryText", "tertiaryText", "description", "size", "children", "variant", "tag", "disabled", "selected", "subMenu", "tooltip", "isFirstItem", "icon", "iconPlacement"],
|
42331
42340
|
_excluded2 = ["isLeft"],
|
42332
|
-
_excluded3 = ["subItems", "
|
42333
|
-
_excluded4 = ["popover", "onClick"];
|
42341
|
+
_excluded3 = ["subItems", "popupPlacement", "popupClassName", "popupTrigger", "popupStyle"];
|
42334
42342
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
42335
42343
|
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
42336
42344
|
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
|
@@ -42346,7 +42354,8 @@ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t =
|
|
42346
42354
|
|
42347
42355
|
|
42348
42356
|
|
42349
|
-
|
42357
|
+
|
42358
|
+
var MenuItem = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(function (_ref, ref) {
|
42350
42359
|
var _ref$type = _ref.type,
|
42351
42360
|
type = _ref$type === void 0 ? 'item' : _ref$type,
|
42352
42361
|
text = _ref.text,
|
@@ -42367,7 +42376,7 @@ var MenuItem = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_2__.forwardRef)(fu
|
|
42367
42376
|
icon = _ref.icon,
|
42368
42377
|
iconPlacement = _ref.iconPlacement,
|
42369
42378
|
rest = _objectWithoutProperties(_ref, _excluded);
|
42370
|
-
if (type == 'divider') return /*#__PURE__*/
|
42379
|
+
if (type == 'divider') return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_menu_item_divider__WEBPACK_IMPORTED_MODULE_9__["default"], {
|
42371
42380
|
ref: ref
|
42372
42381
|
});
|
42373
42382
|
var subItems = buildSubItems(children, {
|
@@ -42375,13 +42384,13 @@ var MenuItem = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_2__.forwardRef)(fu
|
|
42375
42384
|
});
|
42376
42385
|
var isSubMenu = subMenu || subItems;
|
42377
42386
|
if (type == 'group') {
|
42378
|
-
return /*#__PURE__*/
|
42387
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_menu_item_group__WEBPACK_IMPORTED_MODULE_10__.MenuItemGroup, _extends({
|
42379
42388
|
ref: ref,
|
42380
42389
|
text: text,
|
42381
42390
|
isFirstItem: isFirstItem
|
42382
42391
|
}, rest), subItems);
|
42383
42392
|
}
|
42384
|
-
var _getIconProps = (0,
|
42393
|
+
var _getIconProps = (0,_utils__WEBPACK_IMPORTED_MODULE_7__.getIconProps)('MenuItem', {
|
42385
42394
|
size: size,
|
42386
42395
|
icon: icon,
|
42387
42396
|
iconPlacement: iconPlacement
|
@@ -42390,62 +42399,73 @@ var MenuItem = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_2__.forwardRef)(fu
|
|
42390
42399
|
iconProps = _objectWithoutProperties(_getIconProps, _excluded2);
|
42391
42400
|
var iconColor = disabled ? 'icon_disabled' : variant == 'negative' ? 'icon_error' : 'icon';
|
42392
42401
|
var labelColor = disabled ? 'text_disabled' : variant == 'negative' ? 'text_error' : 'text';
|
42393
|
-
return /*#__PURE__*/
|
42402
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_shared__WEBPACK_IMPORTED_MODULE_11__.MenuItemContainer, {
|
42394
42403
|
ref: ref,
|
42395
42404
|
as: tag,
|
42396
42405
|
role: "menuitem"
|
42397
|
-
}, /*#__PURE__*/
|
42406
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_tooltip__WEBPACK_IMPORTED_MODULE_5__.Tooltip2, {
|
42398
42407
|
tooltip: tooltip
|
42399
|
-
}, /*#__PURE__*/
|
42408
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(MenuItemComp, _extends({}, rest, {
|
42400
42409
|
"aria-disabled": disabled ? true : undefined,
|
42401
42410
|
size: size,
|
42402
42411
|
role: "button",
|
42403
42412
|
subItems: subItems
|
42404
|
-
}), /*#__PURE__*/
|
42413
|
+
}), /*#__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, {
|
42405
42414
|
color: iconColor
|
42406
|
-
})), /*#__PURE__*/
|
42415
|
+
})), /*#__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, {
|
42407
42416
|
$size: size,
|
42408
42417
|
color: labelColor
|
42409
|
-
}, text), !isSubMenu && /*#__PURE__*/
|
42418
|
+
}, 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, {
|
42410
42419
|
variant: "sm",
|
42411
42420
|
whiteSpace: "nowrap",
|
42412
42421
|
color: "text_tertiary"
|
42413
|
-
}, tertiaryText), !!secondaryText && /*#__PURE__*/
|
42422
|
+
}, tertiaryText), !!secondaryText && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(SecondaryText, null, secondaryText))), !!description && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Description, null, description))), isSubMenu && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(SecondaryIcon, {
|
42414
42423
|
subMenu: true
|
42415
|
-
}), !isSubMenu && !secondaryText && /*#__PURE__*/
|
42424
|
+
}), !isSubMenu && !secondaryText && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(SecondaryIcon, {
|
42416
42425
|
selected: selected
|
42417
42426
|
}))));
|
42418
42427
|
});
|
42419
42428
|
MenuItem.displayName = 'MenuItem';
|
42420
42429
|
MenuItem.propTypes = {
|
42421
|
-
text: (
|
42422
|
-
secondaryText: (
|
42423
|
-
tertiaryText: (
|
42424
|
-
description: (
|
42425
|
-
type:
|
42426
|
-
size:
|
42427
|
-
icon:
|
42430
|
+
text: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
|
42431
|
+
secondaryText: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
|
42432
|
+
tertiaryText: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
|
42433
|
+
description: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
42434
|
+
type: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['item', 'divider', 'group']),
|
42435
|
+
size: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['sm', 'md', 'lg']),
|
42436
|
+
icon: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(_utils__WEBPACK_IMPORTED_MODULE_7__.iconNames),
|
42428
42437
|
// XXX alexanderse: PT.arrayOf(PT.shape(MenuItem.propTypes)) cause parse err
|
42429
|
-
children:
|
42430
|
-
variant:
|
42431
|
-
disabled: (
|
42432
|
-
selected: (
|
42433
|
-
subMenu: (
|
42434
|
-
tooltip: (
|
42435
|
-
|
42436
|
-
|
42437
|
-
|
42438
|
-
|
42439
|
-
|
42440
|
-
|
42438
|
+
children: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)),
|
42439
|
+
variant: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['default', 'negative']),
|
42440
|
+
disabled: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
42441
|
+
selected: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
42442
|
+
subMenu: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
42443
|
+
tooltip: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
|
42444
|
+
popupPlacement: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
42445
|
+
popupClassName: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
42446
|
+
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)]),
|
42447
|
+
popupStyle: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)
|
42448
|
+
};
|
42449
|
+
var MenuItemComp = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(function (_ref2, ref) {
|
42450
|
+
var subItems = _ref2.subItems,
|
42451
|
+
popupPlacement = _ref2.popupPlacement,
|
42452
|
+
popupClassName = _ref2.popupClassName,
|
42453
|
+
popupTrigger = _ref2.popupTrigger,
|
42454
|
+
popupStyle = _ref2.popupStyle,
|
42455
|
+
rest = _objectWithoutProperties(_ref2, _excluded3);
|
42456
|
+
var button = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(MenuItemButton, _extends({
|
42441
42457
|
ref: ref
|
42442
|
-
}, rest)
|
42443
|
-
|
42444
|
-
|
42445
|
-
|
42446
|
-
|
42447
|
-
|
42448
|
-
|
42458
|
+
}, rest));
|
42459
|
+
if (subItems) {
|
42460
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_menu_item_popup__WEBPACK_IMPORTED_MODULE_12__.MenuItemPopup, {
|
42461
|
+
subItems: subItems,
|
42462
|
+
popupPlacement: popupPlacement,
|
42463
|
+
popupTrigger: popupTrigger,
|
42464
|
+
popupClassName: popupClassName,
|
42465
|
+
popupStyle: popupStyle
|
42466
|
+
}, button);
|
42467
|
+
}
|
42468
|
+
return button;
|
42449
42469
|
});
|
42450
42470
|
MenuItemComp.displayName = 'MenuItemComp';
|
42451
42471
|
var sizes = {
|
@@ -42453,76 +42473,52 @@ var sizes = {
|
|
42453
42473
|
md: 40,
|
42454
42474
|
lg: 56
|
42455
42475
|
};
|
42456
|
-
var MenuItemButton =
|
42476
|
+
var MenuItemButton = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
|
42457
42477
|
displayName: "MenuItemButton",
|
42458
42478
|
componentId: "sc-vtiffr-0"
|
42459
42479
|
})(["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) {
|
42460
|
-
return (0,
|
42480
|
+
return (0,_utils__WEBPACK_IMPORTED_MODULE_7__.toPixel)(sizes[props.size] || sizes.md);
|
42461
42481
|
}, function (props) {
|
42462
42482
|
return props['aria-disabled'] ? 'not-allowed' : 'pointer';
|
42463
|
-
}, function (_ref2) {
|
42464
|
-
var color = _ref2.theme.color;
|
42465
|
-
return color.bg_fill_secondary;
|
42466
42483
|
}, function (_ref3) {
|
42467
42484
|
var color = _ref3.theme.color;
|
42485
|
+
return color.bg_fill_secondary;
|
42486
|
+
}, function (_ref4) {
|
42487
|
+
var color = _ref4.theme.color;
|
42468
42488
|
return color.bg_fill_primary_secondary;
|
42469
42489
|
});
|
42470
|
-
var
|
42471
|
-
var popover = props.popover,
|
42472
|
-
onClick = props.onClick,
|
42473
|
-
rest = _objectWithoutProperties(props, _excluded4);
|
42474
|
-
var buttonProps = lodash_omit__WEBPACK_IMPORTED_MODULE_0___default()(rest, 'isOpen');
|
42475
|
-
var _onClick = (0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function (evt) {
|
42476
|
-
onClick === null || onClick === void 0 || onClick(evt);
|
42477
|
-
popover.toggle();
|
42478
|
-
}, [onClick, popover.toggle]);
|
42479
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(MenuItemButton, _extends({}, buttonProps, {
|
42480
|
-
onClick: _onClick
|
42481
|
-
}));
|
42482
|
-
};
|
42483
|
-
var MenuItemPopover = (0,_hoc__WEBPACK_IMPORTED_MODULE_4__.withPopover)(MenuItemPopoverTrigger, function (props) {
|
42484
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_shared__WEBPACK_IMPORTED_MODULE_12__.MenuContainer, {
|
42485
|
-
onClick: props.popover.hide
|
42486
|
-
}, props.subItems);
|
42487
|
-
}, {
|
42488
|
-
placement: 'right-start',
|
42489
|
-
wrapperStyle: {
|
42490
|
-
width: '100%'
|
42491
|
-
}
|
42492
|
-
});
|
42493
|
-
var MenuItemLeft = styled_components__WEBPACK_IMPORTED_MODULE_3___default().div.withConfig({
|
42490
|
+
var MenuItemLeft = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
|
42494
42491
|
displayName: "MenuItemLeft",
|
42495
42492
|
componentId: "sc-vtiffr-1"
|
42496
42493
|
})(["display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:8px;width:100%;min-width:0;"]);
|
42497
|
-
var MenuItemRight =
|
42494
|
+
var MenuItemRight = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
|
42498
42495
|
displayName: "MenuItemRight",
|
42499
42496
|
componentId: "sc-vtiffr-2"
|
42500
42497
|
})(["display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:4px;width:100%;min-width:0;"]);
|
42501
|
-
var MenuItemText =
|
42498
|
+
var MenuItemText = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
|
42502
42499
|
displayName: "MenuItemText",
|
42503
42500
|
componentId: "sc-vtiffr-3"
|
42504
42501
|
})(["display:flex;align-items:center;justify-content:flex-start;width:100%;gap:8px;"]);
|
42505
|
-
var SecondaryIcon = function SecondaryIcon(
|
42506
|
-
var subMenu =
|
42507
|
-
selected =
|
42508
|
-
if (subMenu) return /*#__PURE__*/
|
42502
|
+
var SecondaryIcon = function SecondaryIcon(_ref5) {
|
42503
|
+
var subMenu = _ref5.subMenu,
|
42504
|
+
selected = _ref5.selected;
|
42505
|
+
if (subMenu) return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(RightIcon, {
|
42509
42506
|
name: "ChevronRight",
|
42510
42507
|
color: "icon"
|
42511
42508
|
});
|
42512
|
-
if (selected) return /*#__PURE__*/
|
42509
|
+
if (selected) return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(RightIcon, {
|
42513
42510
|
name: "Check",
|
42514
42511
|
color: "icon_primary"
|
42515
42512
|
});
|
42516
42513
|
return null;
|
42517
42514
|
};
|
42518
|
-
|
42519
|
-
var RightIcon = styled_components__WEBPACK_IMPORTED_MODULE_3___default()(_icon__WEBPACK_IMPORTED_MODULE_5__.Icon).attrs({
|
42515
|
+
var RightIcon = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_icon__WEBPACK_IMPORTED_MODULE_4__.Icon).attrs({
|
42520
42516
|
size: 'xs'
|
42521
42517
|
}).withConfig({
|
42522
42518
|
displayName: "RightIcon",
|
42523
42519
|
componentId: "sc-vtiffr-4"
|
42524
42520
|
})(["margin-left:auto;"]);
|
42525
|
-
var PrimaryText =
|
42521
|
+
var PrimaryText = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_typography__WEBPACK_IMPORTED_MODULE_6__.Label).attrs(function (props) {
|
42526
42522
|
return {
|
42527
42523
|
variant: props.$size == 'lg' ? 'lg' : 'sm',
|
42528
42524
|
whiteSpace: 'nowrap'
|
@@ -42531,7 +42527,7 @@ var PrimaryText = styled_components__WEBPACK_IMPORTED_MODULE_3___default()(_typo
|
|
42531
42527
|
displayName: "PrimaryText",
|
42532
42528
|
componentId: "sc-vtiffr-5"
|
42533
42529
|
})(["overflow-x:clip;text-overflow:ellipsis;"]);
|
42534
|
-
var SecondaryText =
|
42530
|
+
var SecondaryText = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_typography__WEBPACK_IMPORTED_MODULE_6__.Label).attrs({
|
42535
42531
|
variant: 'sm',
|
42536
42532
|
color: 'text_secondary',
|
42537
42533
|
whiteSpace: 'nowrap'
|
@@ -42539,7 +42535,7 @@ var SecondaryText = styled_components__WEBPACK_IMPORTED_MODULE_3___default()(_ty
|
|
42539
42535
|
displayName: "SecondaryText",
|
42540
42536
|
componentId: "sc-vtiffr-6"
|
42541
42537
|
})(["margin-left:auto;"]);
|
42542
|
-
var Description =
|
42538
|
+
var Description = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_typography__WEBPACK_IMPORTED_MODULE_6__.Label).attrs({
|
42543
42539
|
variant: 'xs',
|
42544
42540
|
color: 'text_tertiary',
|
42545
42541
|
whiteSpace: 'nowrap'
|
@@ -42549,7 +42545,7 @@ var Description = styled_components__WEBPACK_IMPORTED_MODULE_3___default()(_typo
|
|
42549
42545
|
})(["width:100%;overflow-x:clip;text-overflow:ellipsis;"]);
|
42550
42546
|
var buildSubItems = function buildSubItems(children, itemProps) {
|
42551
42547
|
return Array.isArray(children) && children.length > 0 ? children.map(function (item, ind) {
|
42552
|
-
return /*#__PURE__*/
|
42548
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_menu__WEBPACK_IMPORTED_MODULE_8__.Menu.Item, _extends({
|
42553
42549
|
key: item.key
|
42554
42550
|
}, item, itemProps, {
|
42555
42551
|
isFirstItem: ind == 0
|
@@ -42654,6 +42650,190 @@ var GroupTitle = styled_components__WEBPACK_IMPORTED_MODULE_1___default()(_typog
|
|
42654
42650
|
|
42655
42651
|
/***/ }),
|
42656
42652
|
|
42653
|
+
/***/ "./src/menu/menu_item_popup.js":
|
42654
|
+
/*!*************************************!*\
|
42655
|
+
!*** ./src/menu/menu_item_popup.js ***!
|
42656
|
+
\*************************************/
|
42657
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
42658
|
+
|
42659
|
+
"use strict";
|
42660
|
+
__webpack_require__.r(__webpack_exports__);
|
42661
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
42662
|
+
/* harmony export */ MenuItemPopup: () => (/* binding */ MenuItemPopup)
|
42663
|
+
/* harmony export */ });
|
42664
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
42665
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
42666
|
+
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! styled-components */ "styled-components");
|
42667
|
+
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_1__);
|
42668
|
+
/* harmony import */ var _rc_component_trigger__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @rc-component/trigger */ "./node_modules/@rc-component/trigger/es/index.js");
|
42669
|
+
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../constants */ "./src/constants.js");
|
42670
|
+
/* harmony import */ var _shared__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./shared */ "./src/menu/shared.js");
|
42671
|
+
/* harmony import */ var _placements__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./placements */ "./src/menu/placements.js");
|
42672
|
+
// LICENSE_CODE ZON
|
42673
|
+
|
42674
|
+
|
42675
|
+
/*jslint react:true*/
|
42676
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
42677
|
+
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."); }
|
42678
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
42679
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
42680
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
42681
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
42682
|
+
|
42683
|
+
|
42684
|
+
|
42685
|
+
|
42686
|
+
|
42687
|
+
|
42688
|
+
var prefixCls = 'uikit_menu_popup';
|
42689
|
+
var MenuItemPopup = function MenuItemPopup(_ref) {
|
42690
|
+
var subItems = _ref.subItems,
|
42691
|
+
_ref$popupPlacement = _ref.popupPlacement,
|
42692
|
+
popupPlacement = _ref$popupPlacement === void 0 ? 'right' : _ref$popupPlacement,
|
42693
|
+
popupClassName = _ref.popupClassName,
|
42694
|
+
_ref$popupTrigger = _ref.popupTrigger,
|
42695
|
+
popupTrigger = _ref$popupTrigger === void 0 ? 'click' : _ref$popupTrigger,
|
42696
|
+
popupStyle = _ref.popupStyle,
|
42697
|
+
children = _ref.children;
|
42698
|
+
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false),
|
42699
|
+
_useState2 = _slicedToArray(_useState, 2),
|
42700
|
+
visible = _useState2[0],
|
42701
|
+
setVisible = _useState2[1];
|
42702
|
+
var popupMotion = {
|
42703
|
+
motionName: "".concat(prefixCls, "-motion"),
|
42704
|
+
motionAppear: true,
|
42705
|
+
motionEnter: true,
|
42706
|
+
motionLeave: true,
|
42707
|
+
motionDeadline: 500
|
42708
|
+
};
|
42709
|
+
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(MenuItemPopupStyle, {
|
42710
|
+
$prefixCls: prefixCls
|
42711
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_rc_component_trigger__WEBPACK_IMPORTED_MODULE_2__["default"], {
|
42712
|
+
prefixCls: prefixCls,
|
42713
|
+
mask: true,
|
42714
|
+
action: popupTrigger,
|
42715
|
+
popupPlacement: popupPlacement,
|
42716
|
+
popupMotion: popupMotion,
|
42717
|
+
popupClassName: popupClassName,
|
42718
|
+
popupStyle: popupStyle,
|
42719
|
+
popupVisible: visible,
|
42720
|
+
onPopupVisibleChange: setVisible,
|
42721
|
+
builtinPlacements: _placements__WEBPACK_IMPORTED_MODULE_5__.placements,
|
42722
|
+
zIndex: _constants__WEBPACK_IMPORTED_MODULE_3__.Z_INDEX.popover,
|
42723
|
+
popup: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_shared__WEBPACK_IMPORTED_MODULE_4__.MenuContainer, {
|
42724
|
+
onClick: function onClick() {
|
42725
|
+
return setVisible(false);
|
42726
|
+
}
|
42727
|
+
}, subItems)
|
42728
|
+
}, children));
|
42729
|
+
};
|
42730
|
+
var MenuItemPopupStyle = (0,styled_components__WEBPACK_IMPORTED_MODULE_1__.createGlobalStyle)([".", "{position:absolute;display:block;visibility:visible;width:fit-content;max-width:min(500px,80vw);background-color:transparent;&-hidden{display:none;}&-mask{position:fixed;inset:0;pointer-events:none;&-hidden{display:none;}}&-motion{&-enter,&-appear{opacity:0;animation-duration:0.3s;animation-fill-mode:both;animation-timing-function:cubic-bezier(0.08,0.82,0.17,1);animation-play-state:paused;}&-leave{animation-duration:0.3s;animation-fill-mode:both;animation-timing-function:cubic-bezier(0.6,0.04,0.98,0.34);animation-play-state:paused;}&-enter&-enter-active,&-appear&-appear-active{animation-name:rcMenuPopupZoomIn;animation-play-state:running;}&-leave&-leave-active{animation-name:rcMenuPopupZoomOut;animation-play-state:running;}}@keyframes rcMenuPopupZoomIn{0%{opacity:0;transform:scale(0,0);}100%{opacity:1;transform:scale(1,1);}}@keyframes rcMenuPopupZoomOut{0%{transform:scale(1,1);}100%{opacity:0;transform:scale(0,0);}}}"], function (p) {
|
42731
|
+
return p.$prefixCls;
|
42732
|
+
});
|
42733
|
+
|
42734
|
+
/***/ }),
|
42735
|
+
|
42736
|
+
/***/ "./src/menu/placements.js":
|
42737
|
+
/*!********************************!*\
|
42738
|
+
!*** ./src/menu/placements.js ***!
|
42739
|
+
\********************************/
|
42740
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
42741
|
+
|
42742
|
+
"use strict";
|
42743
|
+
__webpack_require__.r(__webpack_exports__);
|
42744
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
42745
|
+
/* harmony export */ placements: () => (/* binding */ placements)
|
42746
|
+
/* harmony export */ });
|
42747
|
+
// LICENSE_CODE ZON
|
42748
|
+
|
42749
|
+
|
42750
|
+
/*jslint react:true*/
|
42751
|
+
var autoAdjustOverflowTopBottom = {
|
42752
|
+
shiftX: 64,
|
42753
|
+
adjustY: 1
|
42754
|
+
};
|
42755
|
+
var autoAdjustOverflowLeftRight = {
|
42756
|
+
adjustX: 1,
|
42757
|
+
shiftY: true
|
42758
|
+
};
|
42759
|
+
var targetOffset = [0, 0];
|
42760
|
+
var placements = {
|
42761
|
+
top: {
|
42762
|
+
points: ['bc', 'tc'],
|
42763
|
+
overflow: autoAdjustOverflowTopBottom,
|
42764
|
+
offset: [0, -6],
|
42765
|
+
targetOffset: [-6, 0]
|
42766
|
+
},
|
42767
|
+
topLeft: {
|
42768
|
+
points: ['bl', 'tl'],
|
42769
|
+
overflow: autoAdjustOverflowTopBottom,
|
42770
|
+
offset: [-12, -6],
|
42771
|
+
targetOffset: [-6, 0]
|
42772
|
+
},
|
42773
|
+
topRight: {
|
42774
|
+
points: ['br', 'tr'],
|
42775
|
+
overflow: autoAdjustOverflowTopBottom,
|
42776
|
+
offset: [12, -6],
|
42777
|
+
targetOffset: [-6, 0]
|
42778
|
+
},
|
42779
|
+
bottom: {
|
42780
|
+
points: ['tc', 'bc'],
|
42781
|
+
overflow: autoAdjustOverflowTopBottom,
|
42782
|
+
offset: [0, 6],
|
42783
|
+
targetOffset: [-6, 0]
|
42784
|
+
},
|
42785
|
+
bottomLeft: {
|
42786
|
+
points: ['tl', 'bl'],
|
42787
|
+
overflow: autoAdjustOverflowTopBottom,
|
42788
|
+
offset: [-12, 6],
|
42789
|
+
targetOffset: [-6, 0]
|
42790
|
+
},
|
42791
|
+
bottomRight: {
|
42792
|
+
points: ['tr', 'br'],
|
42793
|
+
overflow: autoAdjustOverflowTopBottom,
|
42794
|
+
offset: [12, 6],
|
42795
|
+
targetOffset: [-6, 0]
|
42796
|
+
},
|
42797
|
+
left: {
|
42798
|
+
points: ['cr', 'cl'],
|
42799
|
+
overflow: autoAdjustOverflowLeftRight,
|
42800
|
+
offset: [-6, 0],
|
42801
|
+
targetOffset: targetOffset
|
42802
|
+
},
|
42803
|
+
leftTop: {
|
42804
|
+
points: ['tr', 'tl'],
|
42805
|
+
overflow: autoAdjustOverflowLeftRight,
|
42806
|
+
offset: [-6, 0],
|
42807
|
+
targetOffset: [0, 6]
|
42808
|
+
},
|
42809
|
+
leftBottom: {
|
42810
|
+
points: ['br', 'bl'],
|
42811
|
+
overflow: autoAdjustOverflowLeftRight,
|
42812
|
+
offset: [-6, 6],
|
42813
|
+
targetOffset: targetOffset
|
42814
|
+
},
|
42815
|
+
right: {
|
42816
|
+
points: ['cl', 'cr'],
|
42817
|
+
overflow: autoAdjustOverflowLeftRight,
|
42818
|
+
offset: [6, 0],
|
42819
|
+
targetOffset: targetOffset
|
42820
|
+
},
|
42821
|
+
rightTop: {
|
42822
|
+
points: ['tl', 'tr'],
|
42823
|
+
overflow: autoAdjustOverflowLeftRight,
|
42824
|
+
offset: [6, 0],
|
42825
|
+
targetOffset: [0, 6]
|
42826
|
+
},
|
42827
|
+
rightBottom: {
|
42828
|
+
points: ['bl', 'br'],
|
42829
|
+
overflow: autoAdjustOverflowLeftRight,
|
42830
|
+
offset: [6, 6],
|
42831
|
+
targetOffset: targetOffset
|
42832
|
+
}
|
42833
|
+
};
|
42834
|
+
|
42835
|
+
/***/ }),
|
42836
|
+
|
42657
42837
|
/***/ "./src/menu/shared.js":
|
42658
42838
|
/*!****************************!*\
|
42659
42839
|
!*** ./src/menu/shared.js ***!
|
@@ -42676,7 +42856,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
42676
42856
|
var MenuContainer = styled_components__WEBPACK_IMPORTED_MODULE_0___default().ul.withConfig({
|
42677
42857
|
displayName: "MenuContainer",
|
42678
42858
|
componentId: "sc-laozu6-0"
|
42679
|
-
})(["margin:0;padding:4px 0;box-sizing:border-box;min-width:168px;max-width:540px;background:", ";border:", ";border-radius:4px;display:flex;flex-direction:column;gap:2px;box-shadow:", ";"], function (_ref) {
|
42859
|
+
})(["margin:0;padding:4px 0;box-sizing:border-box;min-width:168px;max-width:540px;background:", ";border:", ";border-radius:4px;display:flex;flex-direction:column;gap:2px;box-shadow:", ";max-height:80vh;overflow-y:auto;", ";"], function (_ref) {
|
42680
42860
|
var color = _ref.theme.color;
|
42681
42861
|
return color.bg_elevated;
|
42682
42862
|
}, function (_ref2) {
|
@@ -42687,6 +42867,9 @@ var MenuContainer = styled_components__WEBPACK_IMPORTED_MODULE_0___default().ul.
|
|
42687
42867
|
var $noBorder = _ref3.$noBorder,
|
42688
42868
|
shadow = _ref3.theme.shadow;
|
42689
42869
|
return $noBorder ? 'none' : shadow.medium;
|
42870
|
+
}, function (_ref4) {
|
42871
|
+
var scrollbars = _ref4.theme.scrollbars;
|
42872
|
+
return scrollbars.thin;
|
42690
42873
|
});
|
42691
42874
|
var MenuItemContainer = styled_components__WEBPACK_IMPORTED_MODULE_0___default().li.withConfig({
|
42692
42875
|
displayName: "MenuItemContainer",
|
@@ -43320,7 +43503,7 @@ var Modal2 = function Modal2(_ref) {
|
|
43320
43503
|
cancelProps = _ref.cancelProps,
|
43321
43504
|
icon = _ref.icon,
|
43322
43505
|
_ref$zIndex = _ref.zIndex,
|
43323
|
-
zIndex = _ref$zIndex === void 0 ? _constants__WEBPACK_IMPORTED_MODULE_7__.Z_INDEX.
|
43506
|
+
zIndex = _ref$zIndex === void 0 ? _constants__WEBPACK_IMPORTED_MODULE_7__.Z_INDEX.modal : _ref$zIndex,
|
43324
43507
|
children = _ref.children,
|
43325
43508
|
_ref$minHeight = _ref.minHeight,
|
43326
43509
|
minHeight = _ref$minHeight === void 0 ? 300 : _ref$minHeight,
|
@@ -43379,7 +43562,7 @@ Modal2.propTypes = {
|
|
43379
43562
|
classNamePrefix: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
43380
43563
|
size: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['sm', 'md', 'lg', 'full']),
|
43381
43564
|
footerVariant: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['vertical', 'horizontal', 'horizontal_full']),
|
43382
|
-
show: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)
|
43565
|
+
show: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
43383
43566
|
closable: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
43384
43567
|
closeOnOutsideClick: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
43385
43568
|
title: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
|
@@ -45068,7 +45251,7 @@ var CustomizeButtonItemAction = function CustomizeButtonItemAction(_ref12) {
|
|
45068
45251
|
icon = _ref12.icon;
|
45069
45252
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(CustomizeButtonItemActionWrapper, {
|
45070
45253
|
onClick: onClick
|
45071
|
-
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_tooltip__WEBPACK_IMPORTED_MODULE_7__.
|
45254
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_tooltip__WEBPACK_IMPORTED_MODULE_7__.Tooltip2, {
|
45072
45255
|
tooltip: tooltip,
|
45073
45256
|
tooltipPlacement: "top"
|
45074
45257
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_4__.Icon, {
|
@@ -49597,8 +49780,7 @@ var useToaster = function useToaster() {
|
|
49597
49780
|
__webpack_require__.r(__webpack_exports__);
|
49598
49781
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
49599
49782
|
/* harmony export */ Tooltip: () => (/* reexport safe */ _tooltip__WEBPACK_IMPORTED_MODULE_0__.Tooltip),
|
49600
|
-
/* harmony export */ Tooltip2: () => (/* reexport safe */ _tooltip2__WEBPACK_IMPORTED_MODULE_1__.Tooltip2)
|
49601
|
-
/* harmony export */ withTooltip: () => (/* reexport safe */ _tooltip__WEBPACK_IMPORTED_MODULE_0__.withTooltip)
|
49783
|
+
/* harmony export */ Tooltip2: () => (/* reexport safe */ _tooltip2__WEBPACK_IMPORTED_MODULE_1__.Tooltip2)
|
49602
49784
|
/* harmony export */ });
|
49603
49785
|
/* harmony import */ var _tooltip__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./tooltip */ "./src/tooltip/tooltip.js");
|
49604
49786
|
/* harmony import */ var _tooltip2__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./tooltip2 */ "./src/tooltip/tooltip2.js");
|
@@ -49636,76 +49818,76 @@ var autoAdjustOverflowLeftRight = {
|
|
49636
49818
|
};
|
49637
49819
|
var targetOffset = [0, 0];
|
49638
49820
|
var placements = {
|
49639
|
-
left: {
|
49640
|
-
points: ['cr', 'cl'],
|
49641
|
-
overflow: autoAdjustOverflowLeftRight,
|
49642
|
-
offset: [-6, 0],
|
49643
|
-
targetOffset: targetOffset
|
49644
|
-
},
|
49645
|
-
right: {
|
49646
|
-
points: ['cl', 'cr'],
|
49647
|
-
overflow: autoAdjustOverflowLeftRight,
|
49648
|
-
offset: [6, 0],
|
49649
|
-
targetOffset: targetOffset
|
49650
|
-
},
|
49651
49821
|
top: {
|
49652
49822
|
points: ['bc', 'tc'],
|
49653
49823
|
overflow: autoAdjustOverflowTopBottom,
|
49654
49824
|
offset: [0, -6],
|
49655
|
-
targetOffset:
|
49825
|
+
targetOffset: [-6, 0]
|
49826
|
+
},
|
49827
|
+
topLeft: {
|
49828
|
+
points: ['bl', 'tl'],
|
49829
|
+
overflow: autoAdjustOverflowTopBottom,
|
49830
|
+
offset: [-12, -6],
|
49831
|
+
targetOffset: [-6, 0]
|
49832
|
+
},
|
49833
|
+
topRight: {
|
49834
|
+
points: ['br', 'tr'],
|
49835
|
+
overflow: autoAdjustOverflowTopBottom,
|
49836
|
+
offset: [12, -6],
|
49837
|
+
targetOffset: [-6, 0]
|
49656
49838
|
},
|
49657
49839
|
bottom: {
|
49658
49840
|
points: ['tc', 'bc'],
|
49659
49841
|
overflow: autoAdjustOverflowTopBottom,
|
49660
49842
|
offset: [0, 6],
|
49661
|
-
targetOffset:
|
49843
|
+
targetOffset: [-6, 0]
|
49662
49844
|
},
|
49663
|
-
|
49664
|
-
points: ['
|
49845
|
+
bottomLeft: {
|
49846
|
+
points: ['tl', 'bl'],
|
49665
49847
|
overflow: autoAdjustOverflowTopBottom,
|
49666
|
-
offset: [
|
49848
|
+
offset: [-12, 6],
|
49849
|
+
targetOffset: [-6, 0]
|
49850
|
+
},
|
49851
|
+
bottomRight: {
|
49852
|
+
points: ['tr', 'br'],
|
49853
|
+
overflow: autoAdjustOverflowTopBottom,
|
49854
|
+
offset: [12, 6],
|
49855
|
+
targetOffset: [-6, 0]
|
49856
|
+
},
|
49857
|
+
left: {
|
49858
|
+
points: ['cr', 'cl'],
|
49859
|
+
overflow: autoAdjustOverflowLeftRight,
|
49860
|
+
offset: [-6, 0],
|
49667
49861
|
targetOffset: targetOffset
|
49668
49862
|
},
|
49669
49863
|
leftTop: {
|
49670
49864
|
points: ['tr', 'tl'],
|
49671
49865
|
overflow: autoAdjustOverflowLeftRight,
|
49672
49866
|
offset: [-6, 0],
|
49867
|
+
targetOffset: [0, 6]
|
49868
|
+
},
|
49869
|
+
leftBottom: {
|
49870
|
+
points: ['br', 'bl'],
|
49871
|
+
overflow: autoAdjustOverflowLeftRight,
|
49872
|
+
offset: [-6, 6],
|
49673
49873
|
targetOffset: targetOffset
|
49674
49874
|
},
|
49675
|
-
|
49676
|
-
points: ['
|
49677
|
-
overflow:
|
49678
|
-
offset: [
|
49875
|
+
right: {
|
49876
|
+
points: ['cl', 'cr'],
|
49877
|
+
overflow: autoAdjustOverflowLeftRight,
|
49878
|
+
offset: [6, 0],
|
49679
49879
|
targetOffset: targetOffset
|
49680
49880
|
},
|
49681
49881
|
rightTop: {
|
49682
49882
|
points: ['tl', 'tr'],
|
49683
49883
|
overflow: autoAdjustOverflowLeftRight,
|
49684
49884
|
offset: [6, 0],
|
49685
|
-
targetOffset:
|
49686
|
-
},
|
49687
|
-
bottomRight: {
|
49688
|
-
points: ['tr', 'br'],
|
49689
|
-
overflow: autoAdjustOverflowTopBottom,
|
49690
|
-
offset: [0, 6],
|
49691
|
-
targetOffset: targetOffset
|
49885
|
+
targetOffset: [0, 6]
|
49692
49886
|
},
|
49693
49887
|
rightBottom: {
|
49694
49888
|
points: ['bl', 'br'],
|
49695
49889
|
overflow: autoAdjustOverflowLeftRight,
|
49696
|
-
offset: [6,
|
49697
|
-
targetOffset: targetOffset
|
49698
|
-
},
|
49699
|
-
bottomLeft: {
|
49700
|
-
points: ['tl', 'bl'],
|
49701
|
-
overflow: autoAdjustOverflowTopBottom,
|
49702
|
-
offset: [0, 6],
|
49703
|
-
targetOffset: targetOffset
|
49704
|
-
},
|
49705
|
-
leftBottom: {
|
49706
|
-
points: ['br', 'bl'],
|
49707
|
-
overflow: autoAdjustOverflowLeftRight,
|
49708
|
-
offset: [-6, 0],
|
49890
|
+
offset: [6, 6],
|
49709
49891
|
targetOffset: targetOffset
|
49710
49892
|
}
|
49711
49893
|
};
|
@@ -49721,8 +49903,7 @@ var placements = {
|
|
49721
49903
|
"use strict";
|
49722
49904
|
__webpack_require__.r(__webpack_exports__);
|
49723
49905
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
49724
|
-
/* harmony export */ Tooltip: () => (/* binding */ _Tooltip)
|
49725
|
-
/* harmony export */ withTooltip: () => (/* binding */ withTooltip)
|
49906
|
+
/* harmony export */ Tooltip: () => (/* binding */ _Tooltip)
|
49726
49907
|
/* harmony export */ });
|
49727
49908
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "prop-types");
|
49728
49909
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
|
@@ -49890,11 +50071,6 @@ _Tooltip.propTypes = {
|
|
49890
50071
|
_Tooltip.showDelay = 0;
|
49891
50072
|
_Tooltip.hideDelay = 0;
|
49892
50073
|
_Tooltip.interactiveHideDelay = 200;
|
49893
|
-
var withTooltip = function withTooltip(Comp, tooltipProps) {
|
49894
|
-
return function WithTooltip(props) {
|
49895
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Tooltip, tooltipProps, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Comp, props));
|
49896
|
-
};
|
49897
|
-
};
|
49898
50074
|
var StyledTooltipBody = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
|
49899
50075
|
displayName: "StyledTooltipBody",
|
49900
50076
|
componentId: "sc-1d5rwbm-0"
|
@@ -49987,7 +50163,6 @@ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t =
|
|
49987
50163
|
|
49988
50164
|
|
49989
50165
|
|
49990
|
-
var PT_TRIGGER = prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['hover', 'click', 'focus', 'contextMenu']);
|
49991
50166
|
var _Tooltip = function Tooltip2(_ref) {
|
49992
50167
|
var id = _ref.id,
|
49993
50168
|
className = _ref.className,
|
@@ -50009,6 +50184,7 @@ var _Tooltip = function Tooltip2(_ref) {
|
|
50009
50184
|
var mouseEnterDelay = (0,_util__WEBPACK_IMPORTED_MODULE_4__.firstDefined)(rest.showDelay, _Tooltip.showDelay);
|
50010
50185
|
var mouseLeaveDelay = (0,_util__WEBPACK_IMPORTED_MODULE_4__.firstDefined)(rest.hideDelay, _Tooltip.hideDelay);
|
50011
50186
|
var align = (0,_util__WEBPACK_IMPORTED_MODULE_4__.firstDefined)(rest.align, _placements__WEBPACK_IMPORTED_MODULE_6__.placements[placement]);
|
50187
|
+
if (!tooltip) return children;
|
50012
50188
|
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(Tooltip2Style, {
|
50013
50189
|
$prefixCls: classNamePrefix,
|
50014
50190
|
$theme: theme
|
@@ -50036,9 +50212,9 @@ _Tooltip.propTypes = {
|
|
50036
50212
|
className: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
50037
50213
|
classNamePrefix: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
50038
50214
|
variant: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['black', 'white']),
|
50039
|
-
trigger: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([PT_TRIGGER, prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf(PT_TRIGGER)]),
|
50215
|
+
trigger: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([_constants__WEBPACK_IMPORTED_MODULE_5__.PT_TRIGGER, prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf(_constants__WEBPACK_IMPORTED_MODULE_5__.PT_TRIGGER)]),
|
50040
50216
|
visible: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
50041
|
-
placement:
|
50217
|
+
placement: _constants__WEBPACK_IMPORTED_MODULE_5__.PT_TOOLTIP_PLACEMENT,
|
50042
50218
|
tooltip: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
|
50043
50219
|
showDelay: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
50044
50220
|
hideDelay: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
@@ -132596,8 +132772,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
132596
132772
|
/* harmony export */ translation: () => (/* reexport safe */ _core__WEBPACK_IMPORTED_MODULE_0__.translation),
|
132597
132773
|
/* harmony export */ useTheme: () => (/* reexport safe */ _core__WEBPACK_IMPORTED_MODULE_0__.useTheme),
|
132598
132774
|
/* harmony export */ useToaster: () => (/* reexport safe */ _core__WEBPACK_IMPORTED_MODULE_0__.useToaster),
|
132599
|
-
/* harmony export */ withPopover: () => (/* reexport safe */ _core__WEBPACK_IMPORTED_MODULE_0__.withPopover)
|
132600
|
-
/* harmony export */ withTooltip: () => (/* reexport safe */ _core__WEBPACK_IMPORTED_MODULE_0__.withTooltip)
|
132775
|
+
/* harmony export */ withPopover: () => (/* reexport safe */ _core__WEBPACK_IMPORTED_MODULE_0__.withPopover)
|
132601
132776
|
/* harmony export */ });
|
132602
132777
|
/* harmony import */ var _core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./core */ "./src/core.js");
|
132603
132778
|
// LICENSE_CODE ZON
|