@luminati-io/uikit 6.3.0 → 6.3.2-beta.0
Sign up to get free protection for your applications and to get access to all the features.
@@ -36833,8 +36833,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
36833
36833
|
|
36834
36834
|
|
36835
36835
|
/*jslint react:true*/
|
36836
|
-
var _excluded = ["
|
36837
|
-
_excluded2 = ["isLeft", "isRight"];
|
36836
|
+
var _excluded = ["className", "classNamePrefix", "variant", "size", "disabled", "loading", "loadingText", "icon", "iconPlacement", "text", "children"],
|
36837
|
+
_excluded2 = ["isLeft", "isRight", "size"];
|
36838
36838
|
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); }
|
36839
36839
|
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; }
|
36840
36840
|
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; }
|
@@ -36847,7 +36847,9 @@ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t =
|
|
36847
36847
|
|
36848
36848
|
|
36849
36849
|
var Button = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(function (_ref, ref) {
|
36850
|
-
var
|
36850
|
+
var className = _ref.className,
|
36851
|
+
_ref$classNamePrefix = _ref.classNamePrefix,
|
36852
|
+
classNamePrefix = _ref$classNamePrefix === void 0 ? 'uikit_button' : _ref$classNamePrefix,
|
36851
36853
|
_ref$variant = _ref.variant,
|
36852
36854
|
variant = _ref$variant === void 0 ? 'primary' : _ref$variant,
|
36853
36855
|
_ref$size = _ref.size,
|
@@ -36859,6 +36861,8 @@ var Button = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRe
|
|
36859
36861
|
icon = _ref.icon,
|
36860
36862
|
_ref$iconPlacement = _ref.iconPlacement,
|
36861
36863
|
iconPlacement = _ref$iconPlacement === void 0 ? 'left' : _ref$iconPlacement,
|
36864
|
+
text = _ref.text,
|
36865
|
+
children = _ref.children,
|
36862
36866
|
rest = _objectWithoutProperties(_ref, _excluded);
|
36863
36867
|
var _getIconProps = (0,_utils__WEBPACK_IMPORTED_MODULE_6__.getIconProps)('Button', {
|
36864
36868
|
size: size,
|
@@ -36867,25 +36871,44 @@ var Button = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRe
|
|
36867
36871
|
}),
|
36868
36872
|
isLeft = _getIconProps.isLeft,
|
36869
36873
|
isRight = _getIconProps.isRight,
|
36874
|
+
iconSize = _getIconProps.size,
|
36870
36875
|
iconProps = _objectWithoutProperties(_getIconProps, _excluded2);
|
36876
|
+
var iconContent = !loading && (isLeft || isRight) && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_3__.Icon, _extends({
|
36877
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_5__.classNames)(classNamePrefix, {
|
36878
|
+
'-icon': true,
|
36879
|
+
'-icon-left': isLeft,
|
36880
|
+
'-icon-right': isRight
|
36881
|
+
}),
|
36882
|
+
size: iconSize
|
36883
|
+
}, iconProps));
|
36884
|
+
var buttonText = loading ? loadingText : text || children;
|
36871
36885
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(StyledButton, _extends({
|
36872
36886
|
ref: ref
|
36873
36887
|
}, rest, {
|
36888
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_5__.classNames)(null, null, className, classNamePrefix),
|
36874
36889
|
disabled: loading || disabled,
|
36875
36890
|
$variant: variant,
|
36876
36891
|
$size: size,
|
36877
36892
|
$iconPlacement: isLeft || loading ? 'left' : isRight ? 'right' : ''
|
36878
36893
|
}), loading && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_loading_icon__WEBPACK_IMPORTED_MODULE_7__.LoadingIcon, {
|
36879
|
-
|
36880
|
-
|
36894
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_5__.classNames)(classNamePrefix, {
|
36895
|
+
'-icon': true,
|
36896
|
+
'-icon-loading': true
|
36897
|
+
}),
|
36898
|
+
size: iconSize
|
36899
|
+
}), isLeft && iconContent, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_4__.Label, {
|
36900
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_5__.classNames)(classNamePrefix, {
|
36901
|
+
'-text': true
|
36902
|
+
}),
|
36881
36903
|
variant: size == 'xs' ? 'sm' : 'lg',
|
36882
36904
|
no_wrap: true,
|
36883
36905
|
"data-label": true
|
36884
|
-
},
|
36906
|
+
}, buttonText), isRight && iconContent);
|
36885
36907
|
});
|
36886
36908
|
Button.displayName = 'Button';
|
36887
36909
|
Button.propTypes = {
|
36888
|
-
|
36910
|
+
className: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
36911
|
+
classNamePrefix: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
36889
36912
|
variant: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['primary', 'secondary', 'negative', 'negative_secondary', 'positive', 'white']),
|
36890
36913
|
size: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['xs', 'sm', 'md', 'lg']),
|
36891
36914
|
icon: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(_utils__WEBPACK_IMPORTED_MODULE_6__.iconNames),
|
@@ -39282,7 +39305,7 @@ CodeBlock.propTypes = {
|
|
39282
39305
|
var CodeBlockWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
|
39283
39306
|
displayName: "CodeBlockWrapper",
|
39284
39307
|
componentId: "sc-dgi5hi-0"
|
39285
|
-
})(["", "{border-top-left-radius:0;border-top-right-radius:0;}"], _code_snippet__WEBPACK_IMPORTED_MODULE_4__.
|
39308
|
+
})(["", "{border-top-left-radius:0;border-top-right-radius:0;}"], _code_snippet__WEBPACK_IMPORTED_MODULE_4__.CodeSnippetWrapper);
|
39286
39309
|
var CodeBlockHeader = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
|
39287
39310
|
displayName: "CodeBlockHeader",
|
39288
39311
|
componentId: "sc-dgi5hi-1"
|
@@ -39317,8 +39340,8 @@ var CodeBlockHeader = styled_components__WEBPACK_IMPORTED_MODULE_2___default().d
|
|
39317
39340
|
"use strict";
|
39318
39341
|
__webpack_require__.r(__webpack_exports__);
|
39319
39342
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
39320
|
-
/* harmony export */
|
39321
|
-
/* harmony export */
|
39343
|
+
/* harmony export */ CodeSnippet: () => (/* binding */ CodeSnippet),
|
39344
|
+
/* harmony export */ CodeSnippetWrapper: () => (/* binding */ CodeSnippetWrapper)
|
39322
39345
|
/* harmony export */ });
|
39323
39346
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
39324
39347
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
@@ -39355,7 +39378,7 @@ var CodeSnippet = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)
|
|
39355
39378
|
maxHeight = _ref.maxHeight,
|
39356
39379
|
wrap = _ref.wrap;
|
39357
39380
|
var codeRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);
|
39358
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(
|
39381
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(CodeSnippetWrapper, {
|
39359
39382
|
ref: ref,
|
39360
39383
|
className: (0,_util__WEBPACK_IMPORTED_MODULE_3__.classNames)(null, {}, className, variant),
|
39361
39384
|
style: maxHeight ? {
|
@@ -39392,8 +39415,8 @@ CodeSnippet.propTypes = {
|
|
39392
39415
|
onCopy: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().func),
|
39393
39416
|
wrap: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().bool)
|
39394
39417
|
};
|
39395
|
-
var
|
39396
|
-
displayName: "
|
39418
|
+
var CodeSnippetWrapper = styled_components__WEBPACK_IMPORTED_MODULE_1___default().div.withConfig({
|
39419
|
+
displayName: "CodeSnippetWrapper",
|
39397
39420
|
componentId: "sc-13u859f-0"
|
39398
39421
|
})(["position:relative;min-height:48px;display:flex;border-radius:4px;&.black{background-color:", ";}&.white{background-color:", ";}"], function (_ref2) {
|
39399
39422
|
var color = _ref2.theme.color;
|
@@ -39405,20 +39428,11 @@ var CodeSnipperWrapper = styled_components__WEBPACK_IMPORTED_MODULE_1___default(
|
|
39405
39428
|
var CodeWrapper = styled_components__WEBPACK_IMPORTED_MODULE_1___default().div.withConfig({
|
39406
39429
|
displayName: "CodeWrapper",
|
39407
39430
|
componentId: "sc-13u859f-1"
|
39408
|
-
})(["flex:1;padding
|
39431
|
+
})(["flex:1;padding:", ";overflow:auto;", ""], function (_ref4) {
|
39409
39432
|
var spacing = _ref4.theme.spacing;
|
39410
|
-
return spacing['04'];
|
39411
|
-
}, function (_ref5) {
|
39412
|
-
var spacing = _ref5.theme.spacing;
|
39413
|
-
return spacing['04'];
|
39414
|
-
}, function (_ref6) {
|
39415
|
-
var spacing = _ref6.theme.spacing;
|
39416
39433
|
return spacing['05'];
|
39417
|
-
}, function (
|
39418
|
-
var
|
39419
|
-
return spacing['04'];
|
39420
|
-
}, function (_ref8) {
|
39421
|
-
var scrollbars = _ref8.theme.scrollbars;
|
39434
|
+
}, function (_ref5) {
|
39435
|
+
var scrollbars = _ref5.theme.scrollbars;
|
39422
39436
|
return scrollbars.auto;
|
39423
39437
|
});
|
39424
39438
|
|
@@ -39515,17 +39529,23 @@ var CopyButton = function CopyButton(_ref) {
|
|
39515
39529
|
var StyledButton = styled_components__WEBPACK_IMPORTED_MODULE_1___default().button.withConfig({
|
39516
39530
|
displayName: "StyledButton",
|
39517
39531
|
componentId: "sc-kvxvoe-0"
|
39518
|
-
})(["position:absolute;inset-inline-end:
|
39519
|
-
var
|
39520
|
-
|
39521
|
-
return $variant == 'white' ? color.code_bg_icon_white : color.code_bg_icon_black;
|
39532
|
+
})(["position:absolute;inset-inline-end:", ";top:", ";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) {
|
39533
|
+
var theme = _ref2.theme;
|
39534
|
+
return theme.spacing['05'];
|
39522
39535
|
}, function (_ref3) {
|
39523
|
-
var
|
39524
|
-
|
39525
|
-
return $variant == 'white' ? color.icon : color.icon_white;
|
39536
|
+
var theme = _ref3.theme;
|
39537
|
+
return theme.spacing['05'];
|
39526
39538
|
}, function (_ref4) {
|
39527
39539
|
var $variant = _ref4.$variant,
|
39528
39540
|
color = _ref4.theme.color;
|
39541
|
+
return $variant == 'white' ? color.code_bg_icon_white : color.code_bg_icon_black;
|
39542
|
+
}, function (_ref5) {
|
39543
|
+
var $variant = _ref5.$variant,
|
39544
|
+
color = _ref5.theme.color;
|
39545
|
+
return $variant == 'white' ? color.icon : color.icon_white;
|
39546
|
+
}, function (_ref6) {
|
39547
|
+
var $variant = _ref6.$variant,
|
39548
|
+
color = _ref6.theme.color;
|
39529
39549
|
return $variant == 'white' ? color.code_bg_icon_white_hover : color.code_bg_icon_black_hover;
|
39530
39550
|
});
|
39531
39551
|
function selectElementText(element) {
|
@@ -39915,6 +39935,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
39915
39935
|
/* harmony export */ Link: () => (/* reexport safe */ _link__WEBPACK_IMPORTED_MODULE_13__.Link),
|
39916
39936
|
/* harmony export */ Menu: () => (/* reexport safe */ _menu__WEBPACK_IMPORTED_MODULE_14__.Menu),
|
39917
39937
|
/* harmony export */ Modal: () => (/* reexport module object */ _modal__WEBPACK_IMPORTED_MODULE_3__),
|
39938
|
+
/* harmony export */ Popover: () => (/* reexport safe */ _popover__WEBPACK_IMPORTED_MODULE_25__.Popover),
|
39918
39939
|
/* harmony export */ Progress: () => (/* reexport safe */ _progress__WEBPACK_IMPORTED_MODULE_15__.Progress),
|
39919
39940
|
/* harmony export */ ProgressBar: () => (/* reexport safe */ _progress__WEBPACK_IMPORTED_MODULE_15__.ProgressBar),
|
39920
39941
|
/* harmony export */ RemovableTag: () => (/* reexport safe */ _tag__WEBPACK_IMPORTED_MODULE_18__.RemovableTag),
|
@@ -39923,17 +39944,17 @@ __webpack_require__.r(__webpack_exports__);
|
|
39923
39944
|
/* harmony export */ Table: () => (/* reexport safe */ _table__WEBPACK_IMPORTED_MODULE_17__.Table),
|
39924
39945
|
/* harmony export */ Tabs: () => (/* reexport safe */ _tab__WEBPACK_IMPORTED_MODULE_23__.Tabs),
|
39925
39946
|
/* harmony export */ TagGroup: () => (/* reexport safe */ _tag__WEBPACK_IMPORTED_MODULE_18__.TagGroup),
|
39926
|
-
/* harmony export */ ThemeProvider: () => (/* reexport safe */
|
39947
|
+
/* harmony export */ ThemeProvider: () => (/* reexport safe */ _themes__WEBPACK_IMPORTED_MODULE_26__.ThemeProvider),
|
39927
39948
|
/* harmony export */ Toast: () => (/* reexport safe */ _toast__WEBPACK_IMPORTED_MODULE_19__.Toast),
|
39928
39949
|
/* harmony export */ Toaster: () => (/* reexport safe */ _toast__WEBPACK_IMPORTED_MODULE_19__.Toaster),
|
39929
39950
|
/* harmony export */ Tooltip: () => (/* reexport safe */ _tooltip__WEBPACK_IMPORTED_MODULE_24__.Tooltip),
|
39930
39951
|
/* harmony export */ Tooltip2: () => (/* reexport safe */ _tooltip__WEBPACK_IMPORTED_MODULE_24__.Tooltip2),
|
39931
39952
|
/* harmony export */ Typography: () => (/* reexport module object */ _typography__WEBPACK_IMPORTED_MODULE_5__),
|
39932
|
-
/* harmony export */ globalConfig: () => (/* reexport safe */
|
39933
|
-
/* harmony export */ setGlobalConfig: () => (/* reexport safe */
|
39934
|
-
/* harmony export */ theme: () => (/* reexport safe */
|
39953
|
+
/* harmony export */ globalConfig: () => (/* reexport safe */ _global_config__WEBPACK_IMPORTED_MODULE_27__.globalConfig),
|
39954
|
+
/* harmony export */ setGlobalConfig: () => (/* reexport safe */ _global_config__WEBPACK_IMPORTED_MODULE_27__.setGlobalConfig),
|
39955
|
+
/* harmony export */ theme: () => (/* reexport safe */ _themes__WEBPACK_IMPORTED_MODULE_26__.lightTheme),
|
39935
39956
|
/* harmony export */ translation: () => (/* reexport safe */ _translation__WEBPACK_IMPORTED_MODULE_4__["default"]),
|
39936
|
-
/* harmony export */ useTheme: () => (/* reexport safe */
|
39957
|
+
/* harmony export */ useTheme: () => (/* reexport safe */ _themes__WEBPACK_IMPORTED_MODULE_26__.useTheme),
|
39937
39958
|
/* harmony export */ useToaster: () => (/* reexport safe */ _toast__WEBPACK_IMPORTED_MODULE_19__.useToaster),
|
39938
39959
|
/* harmony export */ withPopover: () => (/* reexport safe */ _hoc__WEBPACK_IMPORTED_MODULE_12__.withPopover)
|
39939
39960
|
/* harmony export */ });
|
@@ -39962,8 +39983,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
39962
39983
|
/* harmony import */ var _infochip__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./infochip */ "./src/infochip.js");
|
39963
39984
|
/* harmony import */ var _tab__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./tab */ "./src/tab/index.js");
|
39964
39985
|
/* harmony import */ var _tooltip__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./tooltip */ "./src/tooltip/index.js");
|
39965
|
-
/* harmony import */ var
|
39966
|
-
/* harmony import */ var
|
39986
|
+
/* harmony import */ var _popover__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./popover */ "./src/popover/index.js");
|
39987
|
+
/* harmony import */ var _themes__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./themes */ "./src/themes/index.js");
|
39988
|
+
/* harmony import */ var _global_config__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./global_config */ "./src/global_config.js");
|
39967
39989
|
// LICENSE_CODE ZON
|
39968
39990
|
|
39969
39991
|
|
@@ -39995,6 +40017,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
39995
40017
|
|
39996
40018
|
|
39997
40019
|
|
40020
|
+
|
39998
40021
|
|
39999
40022
|
|
40000
40023
|
/***/ }),
|
@@ -40601,7 +40624,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
40601
40624
|
/* harmony export */ useOutsideClick: () => (/* reexport safe */ _use_outside_click__WEBPACK_IMPORTED_MODULE_5__["default"]),
|
40602
40625
|
/* harmony export */ useResize: () => (/* reexport safe */ _use_resize__WEBPACK_IMPORTED_MODULE_6__.useResize),
|
40603
40626
|
/* harmony export */ useScroll: () => (/* reexport safe */ _use_scroll__WEBPACK_IMPORTED_MODULE_7__["default"]),
|
40604
|
-
/* harmony export */
|
40627
|
+
/* harmony export */ useStateWithEffect: () => (/* reexport safe */ _use_state_with_effect__WEBPACK_IMPORTED_MODULE_8__.useStateWithEffect),
|
40628
|
+
/* harmony export */ useWindowSize: () => (/* reexport safe */ _use_window_size__WEBPACK_IMPORTED_MODULE_9__.useWindowSize)
|
40605
40629
|
/* harmony export */ });
|
40606
40630
|
/* harmony import */ var _use_debounced_callback__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./use_debounced_callback */ "./src/hooks/use_debounced_callback.js");
|
40607
40631
|
/* harmony import */ var _use_did_update__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./use_did_update */ "./src/hooks/use_did_update.js");
|
@@ -40611,7 +40635,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
40611
40635
|
/* harmony import */ var _use_outside_click__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./use_outside_click */ "./src/hooks/use_outside_click.js");
|
40612
40636
|
/* harmony import */ var _use_resize__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./use_resize */ "./src/hooks/use_resize.js");
|
40613
40637
|
/* harmony import */ var _use_scroll__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./use_scroll */ "./src/hooks/use_scroll.js");
|
40614
|
-
/* harmony import */ var
|
40638
|
+
/* harmony import */ var _use_state_with_effect__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./use_state_with_effect */ "./src/hooks/use_state_with_effect.js");
|
40639
|
+
/* harmony import */ var _use_window_size__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./use_window_size */ "./src/hooks/use_window_size.js");
|
40615
40640
|
// LICENSE_CODE ZON
|
40616
40641
|
|
40617
40642
|
|
@@ -40627,6 +40652,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
40627
40652
|
|
40628
40653
|
|
40629
40654
|
|
40655
|
+
|
40630
40656
|
/***/ }),
|
40631
40657
|
|
40632
40658
|
/***/ "./src/hooks/use_debounced_callback.js":
|
@@ -40970,6 +40996,43 @@ var useScroll = function useScroll(scrollTarget) {
|
|
40970
40996
|
|
40971
40997
|
/***/ }),
|
40972
40998
|
|
40999
|
+
/***/ "./src/hooks/use_state_with_effect.js":
|
41000
|
+
/*!********************************************!*\
|
41001
|
+
!*** ./src/hooks/use_state_with_effect.js ***!
|
41002
|
+
\********************************************/
|
41003
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
41004
|
+
|
41005
|
+
"use strict";
|
41006
|
+
__webpack_require__.r(__webpack_exports__);
|
41007
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
41008
|
+
/* harmony export */ useStateWithEffect: () => (/* binding */ useStateWithEffect)
|
41009
|
+
/* harmony export */ });
|
41010
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
41011
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
41012
|
+
// LICENSE_CODE ZON
|
41013
|
+
|
41014
|
+
|
41015
|
+
/*jslint react:true*/
|
41016
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
41017
|
+
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."); }
|
41018
|
+
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; } }
|
41019
|
+
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; }
|
41020
|
+
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; } }
|
41021
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
41022
|
+
|
41023
|
+
var useStateWithEffect = function useStateWithEffect(initialValue) {
|
41024
|
+
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(initialValue),
|
41025
|
+
_useState2 = _slicedToArray(_useState, 2),
|
41026
|
+
value = _useState2[0],
|
41027
|
+
setValue = _useState2[1];
|
41028
|
+
(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
|
41029
|
+
return setValue(initialValue);
|
41030
|
+
}, [initialValue]);
|
41031
|
+
return [value, setValue];
|
41032
|
+
};
|
41033
|
+
|
41034
|
+
/***/ }),
|
41035
|
+
|
40973
41036
|
/***/ "./src/hooks/use_window_size.js":
|
40974
41037
|
/*!**************************************!*\
|
40975
41038
|
!*** ./src/hooks/use_window_size.js ***!
|
@@ -41345,12 +41408,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
41345
41408
|
/* harmony import */ var _tooltip__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../tooltip */ "./src/tooltip/index.js");
|
41346
41409
|
/* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../typography */ "./src/typography/index.js");
|
41347
41410
|
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
|
41411
|
+
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../constants */ "./src/constants.js");
|
41348
41412
|
// LICENSE_CODE ZON
|
41349
41413
|
|
41350
41414
|
|
41351
41415
|
/*jslint react:true*/
|
41352
41416
|
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); }
|
41353
|
-
var _excluded = ["id", "name", "checked", "onChange", "onClick", "label", "disabled", "tooltip", "indeterminate", "verticalAlign", "className", "classNamePrefix", "tabIndex", "readOnly"];
|
41417
|
+
var _excluded = ["id", "name", "checked", "onChange", "onClick", "label", "disabled", "tooltip", "indeterminate", "verticalAlign", "className", "classNamePrefix", "tabIndex", "readOnly", "tooltipPlacement"];
|
41354
41418
|
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); }
|
41355
41419
|
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
41356
41420
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
@@ -41364,6 +41428,7 @@ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t =
|
|
41364
41428
|
|
41365
41429
|
|
41366
41430
|
|
41431
|
+
|
41367
41432
|
var Checkbox = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(function (_ref, ref) {
|
41368
41433
|
var id = _ref.id,
|
41369
41434
|
name = _ref.name,
|
@@ -41381,6 +41446,7 @@ var Checkbox = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forward
|
|
41381
41446
|
_ref$tabIndex = _ref.tabIndex,
|
41382
41447
|
tabIndex = _ref$tabIndex === void 0 ? 0 : _ref$tabIndex,
|
41383
41448
|
readOnly = _ref.readOnly,
|
41449
|
+
tooltipPlacement = _ref.tooltipPlacement,
|
41384
41450
|
rest = _objectWithoutProperties(_ref, _excluded);
|
41385
41451
|
var labelId = (0,_hooks__WEBPACK_IMPORTED_MODULE_3__.useLabelId)(id);
|
41386
41452
|
var handleClick = function handleClick(evt) {
|
@@ -41390,7 +41456,8 @@ var Checkbox = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forward
|
|
41390
41456
|
onChange === null || onChange === void 0 || onChange(newValue, evt);
|
41391
41457
|
};
|
41392
41458
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_tooltip__WEBPACK_IMPORTED_MODULE_4__.Tooltip2, {
|
41393
|
-
tooltip: tooltip
|
41459
|
+
tooltip: tooltip,
|
41460
|
+
tooltipPlacement: tooltipPlacement
|
41394
41461
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(CheckboxWrapper, _extends({
|
41395
41462
|
ref: ref
|
41396
41463
|
}, rest, {
|
@@ -41434,7 +41501,8 @@ Checkbox.propTypes = {
|
|
41434
41501
|
classNamePrefix: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
41435
41502
|
tabIndex: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
41436
41503
|
readOnly: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
41437
|
-
tooltip: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node)
|
41504
|
+
tooltip: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
|
41505
|
+
tooltipPlacement: _constants__WEBPACK_IMPORTED_MODULE_7__.PT_TOOLTIP_PLACEMENT
|
41438
41506
|
};
|
41439
41507
|
var CheckboxWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
|
41440
41508
|
displayName: "CheckboxWrapper",
|
@@ -47271,13 +47339,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
47271
47339
|
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_2__);
|
47272
47340
|
/* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../icon */ "./src/icon.js");
|
47273
47341
|
/* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../typography */ "./src/typography/index.js");
|
47274
|
-
/* harmony import */ var
|
47342
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
|
47343
|
+
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils */ "./src/utils.js");
|
47275
47344
|
// LICENSE_CODE ZON
|
47276
47345
|
|
47277
47346
|
|
47278
47347
|
/*jslint react:true*/
|
47279
47348
|
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); }
|
47280
|
-
var _excluded = ["
|
47349
|
+
var _excluded = ["className", "classNamePrefix", "variant", "size", "underline", "icon", "iconPlacement", "as", "href", "target", "rel", "newTab", "text", "children"],
|
47281
47350
|
_excluded2 = ["isLeft", "isRight"];
|
47282
47351
|
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); }
|
47283
47352
|
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; }
|
@@ -47293,8 +47362,11 @@ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t =
|
|
47293
47362
|
|
47294
47363
|
|
47295
47364
|
|
47365
|
+
|
47296
47366
|
var Link = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(function (_ref, ref) {
|
47297
|
-
var
|
47367
|
+
var className = _ref.className,
|
47368
|
+
_ref$classNamePrefix = _ref.classNamePrefix,
|
47369
|
+
classNamePrefix = _ref$classNamePrefix === void 0 ? 'uikit_link' : _ref$classNamePrefix,
|
47298
47370
|
_ref$variant = _ref.variant,
|
47299
47371
|
variant = _ref$variant === void 0 ? 'primary' : _ref$variant,
|
47300
47372
|
_ref$size = _ref.size,
|
@@ -47308,8 +47380,11 @@ var Link = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(
|
|
47308
47380
|
target = _ref.target,
|
47309
47381
|
rel = _ref.rel,
|
47310
47382
|
newTab = _ref.newTab,
|
47383
|
+
text = _ref.text,
|
47384
|
+
children = _ref.children,
|
47311
47385
|
rest = _objectWithoutProperties(_ref, _excluded);
|
47312
|
-
var
|
47386
|
+
var mergedText = text || children;
|
47387
|
+
var lnkProps = _objectSpread(_objectSpread({}, rest), getLinkProps({
|
47313
47388
|
as: as,
|
47314
47389
|
href: href,
|
47315
47390
|
target: target,
|
@@ -47318,8 +47393,8 @@ var Link = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(
|
|
47318
47393
|
}));
|
47319
47394
|
if (variant == 'inline') return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(InlineLink, _extends({
|
47320
47395
|
ref: ref
|
47321
|
-
},
|
47322
|
-
var _getIconProps = (0,
|
47396
|
+
}, lnkProps), mergedText);
|
47397
|
+
var _getIconProps = (0,_utils__WEBPACK_IMPORTED_MODULE_6__.getIconProps)('Link', {
|
47323
47398
|
size: size,
|
47324
47399
|
icon: icon,
|
47325
47400
|
iconPlacement: iconPlacement
|
@@ -47327,29 +47402,43 @@ var Link = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(
|
|
47327
47402
|
isLeft = _getIconProps.isLeft,
|
47328
47403
|
isRight = _getIconProps.isRight,
|
47329
47404
|
iconProps = _objectWithoutProperties(_getIconProps, _excluded2);
|
47330
|
-
|
47405
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(StyledLink, _extends({
|
47406
|
+
ref: ref
|
47407
|
+
}, lnkProps, {
|
47408
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_5__.classNames)(null, null, className, classNamePrefix),
|
47409
|
+
$variant: variant,
|
47410
|
+
$underline: underline,
|
47411
|
+
$size: size,
|
47412
|
+
$classNamePrefix: classNamePrefix
|
47413
|
+
}), isLeft && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_3__.Icon, _extends({
|
47414
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_5__.classNames)(classNamePrefix, {
|
47415
|
+
'-icon': true,
|
47416
|
+
'-icon-left': true
|
47417
|
+
})
|
47418
|
+
}, iconProps)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_4__.Label, {
|
47419
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_5__.classNames)(classNamePrefix, {
|
47420
|
+
'-text': true
|
47421
|
+
}),
|
47331
47422
|
variant: {
|
47332
47423
|
lg: 'lg',
|
47333
47424
|
sm: 'xs'
|
47334
47425
|
}[size] || 'base',
|
47335
|
-
children: text,
|
47336
47426
|
no_wrap: true,
|
47337
|
-
|
47338
|
-
}
|
47339
|
-
|
47340
|
-
|
47341
|
-
|
47342
|
-
|
47343
|
-
|
47344
|
-
$size: size
|
47345
|
-
}), isLeft && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_3__.Icon, iconProps), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_4__.Label, labelProps), isRight && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_3__.Icon, iconProps));
|
47427
|
+
"data-label": "true"
|
47428
|
+
}, mergedText), isRight && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_3__.Icon, _extends({
|
47429
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_5__.classNames)(classNamePrefix, {
|
47430
|
+
'-icon': true,
|
47431
|
+
'-icon-right': true
|
47432
|
+
})
|
47433
|
+
}, iconProps)));
|
47346
47434
|
});
|
47347
47435
|
Link.displayName = 'Link';
|
47348
47436
|
Link.propTypes = {
|
47349
|
-
|
47437
|
+
className: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
47438
|
+
classNamePrefix: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
47350
47439
|
variant: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['primary', 'secondary', 'inline']),
|
47351
47440
|
size: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['sm', 'md', 'lg']),
|
47352
|
-
icon: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(
|
47441
|
+
icon: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(_utils__WEBPACK_IMPORTED_MODULE_6__.iconNames),
|
47353
47442
|
iconPlacement: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['left', 'right']),
|
47354
47443
|
href: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
47355
47444
|
newTab: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
@@ -47376,8 +47465,8 @@ var getLinkProps = function getLinkProps(opt) {
|
|
47376
47465
|
var StyledLink = styled_components__WEBPACK_IMPORTED_MODULE_2___default().a.withConfig({
|
47377
47466
|
displayName: "StyledLink",
|
47378
47467
|
componentId: "sc-1ilmd36-0"
|
47379
|
-
})(["display:inline-flex;align-items:center;justify-content:
|
47380
|
-
return (0,
|
47468
|
+
})(["display:inline-flex;align-items:center;justify-content:flex-start;text-decoration:none;background:0 none;border:0 none;padding:0;gap:", ";color:", ";[data-label]{text-decoration:", ";}cursor:pointer;&:disabled{cursor:not-allowed;}&:hover:not(:disabled){color:", ";[data-label]{text-decoration:", ";}}&:hover,:visited,:focus{text-decoration:none;}.", "-icon-right{margin-left:auto;}"], function (props) {
|
47469
|
+
return (0,_utils__WEBPACK_IMPORTED_MODULE_6__.toPixel)(props.$size == 'lg' ? 8 : 4);
|
47381
47470
|
}, function (_ref2) {
|
47382
47471
|
var $variant = _ref2.$variant,
|
47383
47472
|
color = _ref2.theme.color;
|
@@ -47390,6 +47479,9 @@ var StyledLink = styled_components__WEBPACK_IMPORTED_MODULE_2___default().a.with
|
|
47390
47479
|
return $variant == 'primary' ? color.link_primary_hover : color.link_secondary_hover;
|
47391
47480
|
}, function (props) {
|
47392
47481
|
return props.$underline || props.$variant == 'primary' ? 'underline' : 'none';
|
47482
|
+
}, function (_ref4) {
|
47483
|
+
var $classNamePrefix = _ref4.$classNamePrefix;
|
47484
|
+
return $classNamePrefix;
|
47393
47485
|
});
|
47394
47486
|
var InlineLink = styled_components__WEBPACK_IMPORTED_MODULE_2___default().a.withConfig({
|
47395
47487
|
displayName: "InlineLink",
|
@@ -47497,16 +47589,17 @@ __webpack_require__.r(__webpack_exports__);
|
|
47497
47589
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
47498
47590
|
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! styled-components */ "styled-components");
|
47499
47591
|
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_2__);
|
47500
|
-
/* harmony import */ var
|
47501
|
-
/* harmony import */ var
|
47502
|
-
/* harmony import */ var
|
47503
|
-
/* harmony import */ var
|
47504
|
-
/* harmony import */ var
|
47505
|
-
/* harmony import */ var
|
47506
|
-
/* harmony import */ var
|
47507
|
-
/* harmony import */ var
|
47508
|
-
/* harmony import */ var
|
47509
|
-
/* harmony import */ var
|
47592
|
+
/* harmony import */ var rc_util_lib_pickAttrs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rc-util/lib/pickAttrs */ "./node_modules/rc-util/lib/pickAttrs.js");
|
47593
|
+
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../constants */ "./src/constants.js");
|
47594
|
+
/* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../icon */ "./src/icon.js");
|
47595
|
+
/* harmony import */ var _tooltip__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../tooltip */ "./src/tooltip/index.js");
|
47596
|
+
/* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../typography */ "./src/typography/index.js");
|
47597
|
+
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../utils */ "./src/utils.js");
|
47598
|
+
/* harmony import */ var _menu__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./menu */ "./src/menu/menu.js");
|
47599
|
+
/* harmony import */ var _menu_item_divider__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./menu_item_divider */ "./src/menu/menu_item_divider.js");
|
47600
|
+
/* harmony import */ var _menu_item_group__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./menu_item_group */ "./src/menu/menu_item_group.js");
|
47601
|
+
/* harmony import */ var _shared__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./shared */ "./src/menu/shared.js");
|
47602
|
+
/* harmony import */ var _menu_item_popup__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./menu_item_popup */ "./src/menu/menu_item_popup.js");
|
47510
47603
|
// LICENSE_CODE ZON
|
47511
47604
|
|
47512
47605
|
|
@@ -47530,6 +47623,7 @@ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t =
|
|
47530
47623
|
|
47531
47624
|
|
47532
47625
|
|
47626
|
+
|
47533
47627
|
var MenuItem = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(function (_ref, ref) {
|
47534
47628
|
var _ref$type = _ref.type,
|
47535
47629
|
type = _ref$type === void 0 ? 'item' : _ref$type,
|
@@ -47551,7 +47645,7 @@ var MenuItem = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(fu
|
|
47551
47645
|
icon = _ref.icon,
|
47552
47646
|
iconPlacement = _ref.iconPlacement,
|
47553
47647
|
rest = _objectWithoutProperties(_ref, _excluded);
|
47554
|
-
if (type == 'divider') return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(
|
47648
|
+
if (type == 'divider') return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_menu_item_divider__WEBPACK_IMPORTED_MODULE_10__["default"], {
|
47555
47649
|
ref: ref
|
47556
47650
|
});
|
47557
47651
|
var subItems = buildSubItems(children, {
|
@@ -47559,13 +47653,13 @@ var MenuItem = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(fu
|
|
47559
47653
|
});
|
47560
47654
|
var isSubMenu = subMenu || subItems;
|
47561
47655
|
if (type == 'group') {
|
47562
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(
|
47656
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_menu_item_group__WEBPACK_IMPORTED_MODULE_11__.MenuItemGroup, _extends({
|
47563
47657
|
ref: ref,
|
47564
47658
|
text: text,
|
47565
47659
|
isFirstItem: isFirstItem
|
47566
47660
|
}, rest), subItems);
|
47567
47661
|
}
|
47568
|
-
var _getIconProps = (0,
|
47662
|
+
var _getIconProps = (0,_utils__WEBPACK_IMPORTED_MODULE_8__.getIconProps)('MenuItem', {
|
47569
47663
|
size: size,
|
47570
47664
|
icon: icon,
|
47571
47665
|
iconPlacement: iconPlacement
|
@@ -47574,23 +47668,23 @@ var MenuItem = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(fu
|
|
47574
47668
|
iconProps = _objectWithoutProperties(_getIconProps, _excluded2);
|
47575
47669
|
var iconColor = disabled ? 'icon_disabled' : variant == 'negative' ? 'icon_error' : 'icon';
|
47576
47670
|
var labelColor = disabled ? 'text_disabled' : variant == 'negative' ? 'text_error' : 'text';
|
47577
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(
|
47671
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_shared__WEBPACK_IMPORTED_MODULE_12__.MenuItemContainer, {
|
47578
47672
|
ref: ref,
|
47579
47673
|
as: tag,
|
47580
47674
|
role: "menuitem"
|
47581
|
-
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(
|
47675
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_tooltip__WEBPACK_IMPORTED_MODULE_6__.Tooltip2, {
|
47582
47676
|
tooltip: tooltip
|
47583
47677
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(MenuItemComp, _extends({}, rest, {
|
47584
47678
|
"aria-disabled": disabled ? true : undefined,
|
47585
47679
|
size: size,
|
47586
47680
|
role: "button",
|
47587
47681
|
subItems: subItems
|
47588
|
-
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(MenuItemLeft, null, isLeft && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(
|
47682
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(MenuItemLeft, null, isLeft && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_5__.Icon, _extends({}, iconProps, {
|
47589
47683
|
color: iconColor
|
47590
47684
|
})), /*#__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, {
|
47591
47685
|
$size: size,
|
47592
47686
|
color: labelColor
|
47593
|
-
}, 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(
|
47687
|
+
}, 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_7__.Label, {
|
47594
47688
|
variant: "sm",
|
47595
47689
|
whiteSpace: "nowrap",
|
47596
47690
|
color: "text_tertiary"
|
@@ -47608,7 +47702,7 @@ MenuItem.propTypes = {
|
|
47608
47702
|
description: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
47609
47703
|
type: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['item', 'divider', 'group']),
|
47610
47704
|
size: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['sm', 'md', 'lg']),
|
47611
|
-
icon: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(
|
47705
|
+
icon: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(_utils__WEBPACK_IMPORTED_MODULE_8__.iconNames),
|
47612
47706
|
// XXX alexanderse: PT.arrayOf(PT.shape(MenuItem.propTypes)) cause parse err
|
47613
47707
|
children: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)),
|
47614
47708
|
variant: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['default', 'negative']),
|
@@ -47618,7 +47712,7 @@ MenuItem.propTypes = {
|
|
47618
47712
|
tooltip: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
|
47619
47713
|
popupPlacement: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
47620
47714
|
popupClassName: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
47621
|
-
popupTrigger: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([
|
47715
|
+
popupTrigger: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([_constants__WEBPACK_IMPORTED_MODULE_4__.PT_TRIGGER, prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf(_constants__WEBPACK_IMPORTED_MODULE_4__.PT_TRIGGER)]),
|
47622
47716
|
popupStyle: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)
|
47623
47717
|
};
|
47624
47718
|
var MenuItemComp = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(function (_ref2, ref) {
|
@@ -47630,9 +47724,9 @@ var MenuItemComp = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef
|
|
47630
47724
|
rest = _objectWithoutProperties(_ref2, _excluded3);
|
47631
47725
|
var button = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(MenuItemButton, _extends({
|
47632
47726
|
ref: ref
|
47633
|
-
}, rest));
|
47727
|
+
}, (0,rc_util_lib_pickAttrs__WEBPACK_IMPORTED_MODULE_3__["default"])(rest)));
|
47634
47728
|
if (subItems) {
|
47635
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(
|
47729
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_menu_item_popup__WEBPACK_IMPORTED_MODULE_13__.MenuItemPopup, {
|
47636
47730
|
subItems: subItems,
|
47637
47731
|
popupPlacement: popupPlacement,
|
47638
47732
|
popupTrigger: popupTrigger,
|
@@ -47652,7 +47746,7 @@ var MenuItemButton = styled_components__WEBPACK_IMPORTED_MODULE_2___default().di
|
|
47652
47746
|
displayName: "MenuItemButton",
|
47653
47747
|
componentId: "sc-vtiffr-0"
|
47654
47748
|
})(["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) {
|
47655
|
-
return (0,
|
47749
|
+
return (0,_utils__WEBPACK_IMPORTED_MODULE_8__.toPixel)(sizes[props.size] || sizes.md);
|
47656
47750
|
}, function (props) {
|
47657
47751
|
return props['aria-disabled'] ? 'not-allowed' : 'pointer';
|
47658
47752
|
}, function (_ref3) {
|
@@ -47687,13 +47781,13 @@ var SecondaryIcon = function SecondaryIcon(_ref5) {
|
|
47687
47781
|
});
|
47688
47782
|
return null;
|
47689
47783
|
};
|
47690
|
-
var RightIcon = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(
|
47784
|
+
var RightIcon = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_icon__WEBPACK_IMPORTED_MODULE_5__.Icon).attrs({
|
47691
47785
|
size: 'xs'
|
47692
47786
|
}).withConfig({
|
47693
47787
|
displayName: "RightIcon",
|
47694
47788
|
componentId: "sc-vtiffr-4"
|
47695
47789
|
})(["margin-left:auto;"]);
|
47696
|
-
var PrimaryText = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(
|
47790
|
+
var PrimaryText = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_typography__WEBPACK_IMPORTED_MODULE_7__.Label).attrs(function (props) {
|
47697
47791
|
return {
|
47698
47792
|
variant: props.$size == 'lg' ? 'lg' : 'sm',
|
47699
47793
|
whiteSpace: 'nowrap'
|
@@ -47702,7 +47796,7 @@ var PrimaryText = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_typo
|
|
47702
47796
|
displayName: "PrimaryText",
|
47703
47797
|
componentId: "sc-vtiffr-5"
|
47704
47798
|
})(["overflow-x:clip;text-overflow:ellipsis;"]);
|
47705
|
-
var SecondaryText = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(
|
47799
|
+
var SecondaryText = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_typography__WEBPACK_IMPORTED_MODULE_7__.Label).attrs({
|
47706
47800
|
variant: 'sm',
|
47707
47801
|
color: 'text_secondary',
|
47708
47802
|
whiteSpace: 'nowrap'
|
@@ -47710,7 +47804,7 @@ var SecondaryText = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_ty
|
|
47710
47804
|
displayName: "SecondaryText",
|
47711
47805
|
componentId: "sc-vtiffr-6"
|
47712
47806
|
})(["margin-left:auto;"]);
|
47713
|
-
var Description = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(
|
47807
|
+
var Description = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_typography__WEBPACK_IMPORTED_MODULE_7__.Label).attrs({
|
47714
47808
|
variant: 'xs',
|
47715
47809
|
color: 'text_tertiary',
|
47716
47810
|
whiteSpace: 'nowrap'
|
@@ -47720,7 +47814,7 @@ var Description = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_typo
|
|
47720
47814
|
})(["width:100%;overflow-x:clip;text-overflow:ellipsis;"]);
|
47721
47815
|
var buildSubItems = function buildSubItems(children, itemProps) {
|
47722
47816
|
return Array.isArray(children) && children.length > 0 ? children.map(function (item, ind) {
|
47723
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(
|
47817
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_menu__WEBPACK_IMPORTED_MODULE_9__.Menu.Item, _extends({
|
47724
47818
|
key: item.key
|
47725
47819
|
}, item, itemProps, {
|
47726
47820
|
isFirstItem: ind == 0
|
@@ -49232,6 +49326,272 @@ var CompContainer = styled_components__WEBPACK_IMPORTED_MODULE_1___default().div
|
|
49232
49326
|
|
49233
49327
|
/***/ }),
|
49234
49328
|
|
49329
|
+
/***/ "./src/popover/index.js":
|
49330
|
+
/*!******************************!*\
|
49331
|
+
!*** ./src/popover/index.js ***!
|
49332
|
+
\******************************/
|
49333
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
49334
|
+
|
49335
|
+
"use strict";
|
49336
|
+
__webpack_require__.r(__webpack_exports__);
|
49337
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
49338
|
+
/* harmony export */ Popover: () => (/* reexport safe */ _popover__WEBPACK_IMPORTED_MODULE_0__.Popover)
|
49339
|
+
/* harmony export */ });
|
49340
|
+
/* harmony import */ var _popover__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./popover */ "./src/popover/popover.js");
|
49341
|
+
// LICENSE_CODE ZON
|
49342
|
+
|
49343
|
+
|
49344
|
+
/*jslint react:true*/
|
49345
|
+
|
49346
|
+
|
49347
|
+
/***/ }),
|
49348
|
+
|
49349
|
+
/***/ "./src/popover/placements.js":
|
49350
|
+
/*!***********************************!*\
|
49351
|
+
!*** ./src/popover/placements.js ***!
|
49352
|
+
\***********************************/
|
49353
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
49354
|
+
|
49355
|
+
"use strict";
|
49356
|
+
__webpack_require__.r(__webpack_exports__);
|
49357
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
49358
|
+
/* harmony export */ placements: () => (/* binding */ placements)
|
49359
|
+
/* harmony export */ });
|
49360
|
+
// LICENSE_CODE ZON
|
49361
|
+
|
49362
|
+
|
49363
|
+
/*jslint react:true*/
|
49364
|
+
var autoAdjustOverflowTopBottom = {
|
49365
|
+
shiftX: 64,
|
49366
|
+
adjustY: 1
|
49367
|
+
};
|
49368
|
+
var autoAdjustOverflowLeftRight = {
|
49369
|
+
adjustX: 1,
|
49370
|
+
shiftY: true
|
49371
|
+
};
|
49372
|
+
var targetOffset = [0, 0];
|
49373
|
+
var placements = {
|
49374
|
+
top: {
|
49375
|
+
points: ['bc', 'tc'],
|
49376
|
+
overflow: autoAdjustOverflowTopBottom,
|
49377
|
+
offset: [0, -6],
|
49378
|
+
targetOffset: targetOffset
|
49379
|
+
},
|
49380
|
+
topLeft: {
|
49381
|
+
points: ['bl', 'tl'],
|
49382
|
+
overflow: autoAdjustOverflowTopBottom,
|
49383
|
+
offset: [0, -6],
|
49384
|
+
targetOffset: targetOffset
|
49385
|
+
},
|
49386
|
+
topRight: {
|
49387
|
+
points: ['br', 'tr'],
|
49388
|
+
overflow: autoAdjustOverflowTopBottom,
|
49389
|
+
offset: [0, -6],
|
49390
|
+
targetOffset: targetOffset
|
49391
|
+
},
|
49392
|
+
bottom: {
|
49393
|
+
points: ['tc', 'bc'],
|
49394
|
+
overflow: autoAdjustOverflowTopBottom,
|
49395
|
+
offset: [0, 6],
|
49396
|
+
targetOffset: targetOffset
|
49397
|
+
},
|
49398
|
+
bottomLeft: {
|
49399
|
+
points: ['tl', 'bl'],
|
49400
|
+
overflow: autoAdjustOverflowTopBottom,
|
49401
|
+
offset: [0, 6],
|
49402
|
+
targetOffset: targetOffset
|
49403
|
+
},
|
49404
|
+
bottomRight: {
|
49405
|
+
points: ['tr', 'br'],
|
49406
|
+
overflow: autoAdjustOverflowTopBottom,
|
49407
|
+
offset: [0, 6],
|
49408
|
+
targetOffset: targetOffset
|
49409
|
+
},
|
49410
|
+
left: {
|
49411
|
+
points: ['cr', 'cl'],
|
49412
|
+
overflow: autoAdjustOverflowLeftRight,
|
49413
|
+
offset: [-6, 0],
|
49414
|
+
targetOffset: targetOffset
|
49415
|
+
},
|
49416
|
+
leftTop: {
|
49417
|
+
points: ['tr', 'tl'],
|
49418
|
+
overflow: autoAdjustOverflowLeftRight,
|
49419
|
+
offset: [-6, 0],
|
49420
|
+
targetOffset: targetOffset
|
49421
|
+
},
|
49422
|
+
leftBottom: {
|
49423
|
+
points: ['br', 'bl'],
|
49424
|
+
overflow: autoAdjustOverflowLeftRight,
|
49425
|
+
offset: [-6, 0],
|
49426
|
+
targetOffset: targetOffset
|
49427
|
+
},
|
49428
|
+
right: {
|
49429
|
+
points: ['cl', 'cr'],
|
49430
|
+
overflow: autoAdjustOverflowLeftRight,
|
49431
|
+
offset: [6, 0],
|
49432
|
+
targetOffset: targetOffset
|
49433
|
+
},
|
49434
|
+
rightTop: {
|
49435
|
+
points: ['tl', 'tr'],
|
49436
|
+
overflow: autoAdjustOverflowLeftRight,
|
49437
|
+
offset: [6, 0],
|
49438
|
+
targetOffset: targetOffset
|
49439
|
+
},
|
49440
|
+
rightBottom: {
|
49441
|
+
points: ['bl', 'br'],
|
49442
|
+
overflow: autoAdjustOverflowLeftRight,
|
49443
|
+
offset: [6, 0],
|
49444
|
+
targetOffset: targetOffset
|
49445
|
+
}
|
49446
|
+
};
|
49447
|
+
|
49448
|
+
/***/ }),
|
49449
|
+
|
49450
|
+
/***/ "./src/popover/popover.js":
|
49451
|
+
/*!********************************!*\
|
49452
|
+
!*** ./src/popover/popover.js ***!
|
49453
|
+
\********************************/
|
49454
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
49455
|
+
|
49456
|
+
"use strict";
|
49457
|
+
__webpack_require__.r(__webpack_exports__);
|
49458
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
49459
|
+
/* harmony export */ Popover: () => (/* binding */ _Popover)
|
49460
|
+
/* harmony export */ });
|
49461
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "prop-types");
|
49462
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
|
49463
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
49464
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
49465
|
+
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! styled-components */ "styled-components");
|
49466
|
+
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_2__);
|
49467
|
+
/* harmony import */ var _rc_component_trigger__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @rc-component/trigger */ "./node_modules/@rc-component/trigger/es/index.js");
|
49468
|
+
/* harmony import */ var dom_helpers_listen__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! dom-helpers/listen */ "./node_modules/dom-helpers/esm/listen.js");
|
49469
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
|
49470
|
+
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../constants */ "./src/constants.js");
|
49471
|
+
/* harmony import */ var _hooks__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../hooks */ "./src/hooks/index.js");
|
49472
|
+
/* harmony import */ var _placements__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./placements */ "./src/popover/placements.js");
|
49473
|
+
// LICENSE_CODE ZON
|
49474
|
+
|
49475
|
+
|
49476
|
+
/*jslint react:true*/
|
49477
|
+
var _excluded = ["className", "classNamePrefix", "style", "trigger", "visible", "placement", "popover", "onVisibleChange", "afterVisibleChange", "children", "hideOnScroll", "getScrollDOMNode"];
|
49478
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
49479
|
+
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."); }
|
49480
|
+
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; } }
|
49481
|
+
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; }
|
49482
|
+
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; } }
|
49483
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
49484
|
+
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; }
|
49485
|
+
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; }
|
49486
|
+
|
49487
|
+
|
49488
|
+
|
49489
|
+
|
49490
|
+
|
49491
|
+
|
49492
|
+
|
49493
|
+
|
49494
|
+
|
49495
|
+
var _Popover = function Popover(_ref) {
|
49496
|
+
var className = _ref.className,
|
49497
|
+
_ref$classNamePrefix = _ref.classNamePrefix,
|
49498
|
+
classNamePrefix = _ref$classNamePrefix === void 0 ? 'uikit_popover' : _ref$classNamePrefix,
|
49499
|
+
style = _ref.style,
|
49500
|
+
trigger = _ref.trigger,
|
49501
|
+
visible = _ref.visible,
|
49502
|
+
_ref$placement = _ref.placement,
|
49503
|
+
placement = _ref$placement === void 0 ? 'bottom' : _ref$placement,
|
49504
|
+
popover = _ref.popover,
|
49505
|
+
onVisibleChange = _ref.onVisibleChange,
|
49506
|
+
afterVisibleChange = _ref.afterVisibleChange,
|
49507
|
+
children = _ref.children,
|
49508
|
+
hideOnScroll = _ref.hideOnScroll,
|
49509
|
+
getScrollDOMNode = _ref.getScrollDOMNode,
|
49510
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
49511
|
+
var theme = (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.useTheme)();
|
49512
|
+
var mouseEnterDelay = (0,_util__WEBPACK_IMPORTED_MODULE_5__.firstDefined)(rest.showDelay, _Popover.showDelay);
|
49513
|
+
var mouseLeaveDelay = (0,_util__WEBPACK_IMPORTED_MODULE_5__.firstDefined)(rest.hideDelay, _Popover.hideDelay);
|
49514
|
+
var popupMotion = {
|
49515
|
+
motionName: "".concat(classNamePrefix, "-motion"),
|
49516
|
+
motionAppear: true,
|
49517
|
+
motionEnter: true,
|
49518
|
+
motionLeave: true,
|
49519
|
+
motionDeadline: 500
|
49520
|
+
};
|
49521
|
+
var _useStateWithEffect = (0,_hooks__WEBPACK_IMPORTED_MODULE_7__.useStateWithEffect)(visible),
|
49522
|
+
_useStateWithEffect2 = _slicedToArray(_useStateWithEffect, 2),
|
49523
|
+
popupVisible = _useStateWithEffect2[0],
|
49524
|
+
setPopupVisible = _useStateWithEffect2[1];
|
49525
|
+
var onPopupVisibleChange = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function (value) {
|
49526
|
+
setPopupVisible(value);
|
49527
|
+
onVisibleChange === null || onVisibleChange === void 0 || onVisibleChange(value);
|
49528
|
+
}, [onVisibleChange]);
|
49529
|
+
(0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function () {
|
49530
|
+
if (!hideOnScroll || !popupVisible) return;
|
49531
|
+
var htmlElement = typeof getScrollDOMNode == 'function' ? getScrollDOMNode() : window;
|
49532
|
+
if (htmlElement) {
|
49533
|
+
return (0,dom_helpers_listen__WEBPACK_IMPORTED_MODULE_4__["default"])(htmlElement, 'scroll', function () {
|
49534
|
+
return onPopupVisibleChange(false);
|
49535
|
+
});
|
49536
|
+
}
|
49537
|
+
}, [hideOnScroll, popupVisible, getScrollDOMNode, onPopupVisibleChange]);
|
49538
|
+
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(PopoverStyle, {
|
49539
|
+
$prefixCls: classNamePrefix,
|
49540
|
+
$theme: theme
|
49541
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_rc_component_trigger__WEBPACK_IMPORTED_MODULE_3__["default"], {
|
49542
|
+
prefixCls: classNamePrefix,
|
49543
|
+
mask: true,
|
49544
|
+
action: trigger,
|
49545
|
+
popupPlacement: placement,
|
49546
|
+
popupMotion: popupMotion,
|
49547
|
+
popupClassName: className,
|
49548
|
+
popupStyle: style,
|
49549
|
+
popupVisible: popupVisible,
|
49550
|
+
onPopupVisibleChange: onPopupVisibleChange,
|
49551
|
+
builtinPlacements: _placements__WEBPACK_IMPORTED_MODULE_8__.placements,
|
49552
|
+
zIndex: _constants__WEBPACK_IMPORTED_MODULE_6__.Z_INDEX.popover,
|
49553
|
+
afterPopupVisibleChange: afterVisibleChange,
|
49554
|
+
mouseEnterDelay: mouseEnterDelay,
|
49555
|
+
mouseLeaveDelay: mouseLeaveDelay,
|
49556
|
+
popup: popover
|
49557
|
+
}, children));
|
49558
|
+
};
|
49559
|
+
|
49560
|
+
_Popover.propTypes = {
|
49561
|
+
className: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
49562
|
+
classNamePrefix: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
49563
|
+
style: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
|
49564
|
+
trigger: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([_constants__WEBPACK_IMPORTED_MODULE_6__.PT_TRIGGER, prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf(_constants__WEBPACK_IMPORTED_MODULE_6__.PT_TRIGGER)]),
|
49565
|
+
visible: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
49566
|
+
placement: _constants__WEBPACK_IMPORTED_MODULE_6__.PT_TOOLTIP_PLACEMENT,
|
49567
|
+
popover: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
|
49568
|
+
showDelay: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
49569
|
+
hideDelay: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
49570
|
+
onVisibleChange: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
49571
|
+
afterVisibleChange: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
49572
|
+
hideOnScroll: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
49573
|
+
getScrollDOMNode: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)
|
49574
|
+
};
|
49575
|
+
_Popover.showDelay = 0.1;
|
49576
|
+
_Popover.hideDelay = 0.1;
|
49577
|
+
var prefixCls = function prefixCls(p) {
|
49578
|
+
return p.$prefixCls;
|
49579
|
+
};
|
49580
|
+
var theme = function theme(cb) {
|
49581
|
+
return function (p) {
|
49582
|
+
return cb(p.$theme);
|
49583
|
+
};
|
49584
|
+
};
|
49585
|
+
var PopoverStyle = (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.createGlobalStyle)([".", "{position:absolute;display:block;visibility:visible;width:fit-content;border-radius:4px;border:1px solid ", ";background:", ";box-shadow:", ";&-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:rcPopoverZoomIn;animation-play-state:running;}&-leave&-leave-active{animation-name:rcPopoverZoomOut;animation-play-state:running;}}@keyframes rcPopoverZoomIn{0%{opacity:0;transform:scale(0,0);}100%{opacity:1;transform:scale(1,1);}}@keyframes rcPopoverZoomOut{0%{opacity:1;transform:scale(1,1);}100%{opacity:0;transform:scale(0,0);}}}"], prefixCls, theme(function (t) {
|
49586
|
+
return t.color.border_secondary;
|
49587
|
+
}), theme(function (t) {
|
49588
|
+
return t.color.bg_elevated;
|
49589
|
+
}), theme(function (t) {
|
49590
|
+
return t.shadow.medium;
|
49591
|
+
}));
|
49592
|
+
|
49593
|
+
/***/ }),
|
49594
|
+
|
49235
49595
|
/***/ "./src/progress/index.js":
|
49236
49596
|
/*!*******************************!*\
|
49237
49597
|
!*** ./src/progress/index.js ***!
|
@@ -50001,7 +50361,7 @@ var theme = function theme(cb) {
|
|
50001
50361
|
return cb(p.$theme);
|
50002
50362
|
};
|
50003
50363
|
};
|
50004
|
-
var TabsStyle = (0,styled_components__WEBPACK_IMPORTED_MODULE_4__.createGlobalStyle)([".", "{box-sizing:border-box;margin:0;padding:0;list-style:none;display:flex;&-top,&-bottom{flex-direction:column;.", "-nav-list{flex-direction:row;}}&-left,&-right{flex-direction:row;.", "-nav-list{flex-direction:column;}}&-nav{position:relative;display:flex;flex:none;align-items:center;&-wrap{position:relative;display:flex;flex:auto;align-self:stretch;white-space:nowrap;transform:translate(0);}&-list{position:relative;display:flex;transition:opacity 0.3s;justify-content:flex-start;align-items:center;box-sizing:border-box;width:fit-content;}}&-content-holder{flex:auto;min-width:0;min-height:0;box-sizing:border-box;}&-content{position:relative;width:100%;}&-tabpane{outline:none;&-hidden{display:none;}}&-tab{&-btn{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;border:0 none;background:transparent;min-width:0;width:fit-content;cursor:pointer;white-space:nowrap;font-family:", ";line-height:", ";letter-spacing:", ";}&-disabled{.", "-tab-btn{cursor:not-allowed;}}}&-main{.", "-nav-list{gap:24px;}.", "-tab{.", "-tab-btn{height:36px;padding:0;justify-content:center;gap:4px;color:", ";box-shadow:0px -1px 0px 0px ", " inset;font-size:", ";font-weight:", ";&:hover{color:", ";box-shadow:0px -2px 0px 0px ", " inset;}}&-active{.", "-tab-btn,.", "-tab-btn:hover{color:", ";box-shadow:0px -2px 0px 0px ", " inset;}}&-disabled{.", "-tab-btn,.", "-tab-btn:hover{color:", ";box-shadow:0px -1px 0px 0px ", " inset;}}}}&-underline{.", "-tab{.", "-tab-btn{height:24px;padding:0 16px;justify-content:center;gap:4px;color:", ";box-shadow:0px -1px 0px 0px ", " inset;font-size:", ";font-weight:", ";&:hover{color:", ";box-shadow:0px -2px 0px 0px ", " inset;}}&-active{.", "-tab-btn,.", "-tab-btn:hover{color:", ";box-shadow:0px -2px 0px 0px ", " inset;}}&-disabled{.", "-tab-btn,.", "-tab-btn:hover{color:", ";box-shadow:0px -1px 0px 0px ", " inset;}}}}&-contain{.", "-nav-list{padding:2px;gap:2px;border-radius:4px;background:", ";}.", "-tab{.", "-tab-btn{height:32px;padding:0px 8px;justify-content:center;gap:6px;border-radius:4px;color:", ";font-size:", ";font-weight:", ";&:hover{color:", ";background:", ";}}&-active{.", "-tab-btn,.", "-tab-btn:hover{background:", ";border:1px solid ", ";box-shadow:", ";font-weight:", ";}}&-disabled{.", "-tab-btn,.", "-tab-btn:hover{color:", ";background:", ";}}}}&-vertical{.", "-tab{.", "-tab-btn{width:200px;height:40px;padding:0 12px;justify-content:flex-start;gap:4px;border-radius:0 4px 4px 0;border-left:1px solid transparent;color:", ";overflow-x:clip;text-overflow:ellipsis;&:hover{border-left-color:", ";}}&-active{.", "-tab-btn{background:", ";border-left-color:", ";}}&-disabled{.", "-tab-btn,.", "-tab-btn:hover{color:", ";border-left-color:transparent;}}}}}"], prefixCls, prefixCls, prefixCls, theme(function (t) {
|
50364
|
+
var TabsStyle = (0,styled_components__WEBPACK_IMPORTED_MODULE_4__.createGlobalStyle)([".", "{box-sizing:border-box;margin:0;padding:0;list-style:none;display:flex;&-top,&-bottom{flex-direction:column;.", "-nav-list{flex-direction:row;}}&-left,&-right{flex-direction:row;.", "-nav-list{flex-direction:column;}}&-nav{position:relative;display:flex;flex:none;align-items:center;&-wrap{position:relative;display:flex;flex:auto;align-self:stretch;white-space:nowrap;transform:translate(0);}&-list{position:relative;display:flex;transition:opacity 0.3s;justify-content:flex-start;align-items:center;box-sizing:border-box;width:fit-content;}&-operations{display:flex;align-self:stretch;&-hidden{position:absolute;visibility:hidden;pointer-events:none;}}}&-content-holder{flex:auto;min-width:0;min-height:0;box-sizing:border-box;}&-content{position:relative;width:100%;}&-tabpane{outline:none;&-hidden{display:none;}}&-tab{&-btn{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;border:0 none;background:transparent;min-width:0;width:fit-content;cursor:pointer;white-space:nowrap;font-family:", ";line-height:", ";letter-spacing:", ";}&-disabled{.", "-tab-btn{cursor:not-allowed;}}}&-main{.", "-nav-list{gap:24px;}.", "-tab{.", "-tab-btn{height:36px;padding:0;justify-content:center;gap:4px;color:", ";box-shadow:0px -1px 0px 0px ", " inset;font-size:", ";font-weight:", ";&:hover{color:", ";box-shadow:0px -2px 0px 0px ", " inset;}}&-active{.", "-tab-btn,.", "-tab-btn:hover{color:", ";box-shadow:0px -2px 0px 0px ", " inset;}}&-disabled{.", "-tab-btn,.", "-tab-btn:hover{color:", ";box-shadow:0px -1px 0px 0px ", " inset;}}}}&-underline{.", "-tab{.", "-tab-btn{height:24px;padding:0 16px;justify-content:center;gap:4px;color:", ";box-shadow:0px -1px 0px 0px ", " inset;font-size:", ";font-weight:", ";&:hover{color:", ";box-shadow:0px -2px 0px 0px ", " inset;}}&-active{.", "-tab-btn,.", "-tab-btn:hover{color:", ";box-shadow:0px -2px 0px 0px ", " inset;}}&-disabled{.", "-tab-btn,.", "-tab-btn:hover{color:", ";box-shadow:0px -1px 0px 0px ", " inset;}}}}&-contain{.", "-nav-list{padding:2px;gap:2px;border-radius:4px;background:", ";}.", "-tab{.", "-tab-btn{height:32px;padding:0px 8px;justify-content:center;gap:6px;border-radius:4px;color:", ";font-size:", ";font-weight:", ";&:hover{color:", ";background:", ";}}&-active{.", "-tab-btn,.", "-tab-btn:hover{background:", ";border:1px solid ", ";box-shadow:", ";font-weight:", ";}}&-disabled{.", "-tab-btn,.", "-tab-btn:hover{color:", ";background:", ";}}}}&-vertical{.", "-tab{.", "-tab-btn{width:200px;height:40px;padding:0 12px;justify-content:flex-start;gap:4px;border-radius:0 4px 4px 0;border-left:1px solid transparent;color:", ";overflow-x:clip;text-overflow:ellipsis;&:hover{border-left-color:", ";}}&-active{.", "-tab-btn{background:", ";border-left-color:", ";}}&-disabled{.", "-tab-btn,.", "-tab-btn:hover{color:", ";border-left-color:transparent;}}}}&-ink-bar{display:none;position:absolute;pointer-events:none;}}"], prefixCls, prefixCls, prefixCls, theme(function (t) {
|
50005
50365
|
return t.font_family.sans;
|
50006
50366
|
}), theme(function (t) {
|
50007
50367
|
return t.line_height.none;
|
@@ -61578,6 +61938,153 @@ debounce.debounce = debounce;
|
|
61578
61938
|
module.exports = debounce;
|
61579
61939
|
|
61580
61940
|
|
61941
|
+
/***/ }),
|
61942
|
+
|
61943
|
+
/***/ "./node_modules/dom-helpers/esm/addEventListener.js":
|
61944
|
+
/*!**********************************************************!*\
|
61945
|
+
!*** ./node_modules/dom-helpers/esm/addEventListener.js ***!
|
61946
|
+
\**********************************************************/
|
61947
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
61948
|
+
|
61949
|
+
"use strict";
|
61950
|
+
__webpack_require__.r(__webpack_exports__);
|
61951
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
61952
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
|
61953
|
+
/* harmony export */ onceSupported: () => (/* binding */ onceSupported),
|
61954
|
+
/* harmony export */ optionsSupported: () => (/* binding */ optionsSupported)
|
61955
|
+
/* harmony export */ });
|
61956
|
+
/* harmony import */ var _canUseDOM__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./canUseDOM */ "./node_modules/dom-helpers/esm/canUseDOM.js");
|
61957
|
+
/* eslint-disable no-return-assign */
|
61958
|
+
|
61959
|
+
var optionsSupported = false;
|
61960
|
+
var onceSupported = false;
|
61961
|
+
|
61962
|
+
try {
|
61963
|
+
var options = {
|
61964
|
+
get passive() {
|
61965
|
+
return optionsSupported = true;
|
61966
|
+
},
|
61967
|
+
|
61968
|
+
get once() {
|
61969
|
+
// eslint-disable-next-line no-multi-assign
|
61970
|
+
return onceSupported = optionsSupported = true;
|
61971
|
+
}
|
61972
|
+
|
61973
|
+
};
|
61974
|
+
|
61975
|
+
if (_canUseDOM__WEBPACK_IMPORTED_MODULE_0__["default"]) {
|
61976
|
+
window.addEventListener('test', options, options);
|
61977
|
+
window.removeEventListener('test', options, true);
|
61978
|
+
}
|
61979
|
+
} catch (e) {
|
61980
|
+
/* */
|
61981
|
+
}
|
61982
|
+
|
61983
|
+
/**
|
61984
|
+
* An `addEventListener` ponyfill, supports the `once` option
|
61985
|
+
*
|
61986
|
+
* @param node the element
|
61987
|
+
* @param eventName the event name
|
61988
|
+
* @param handle the handler
|
61989
|
+
* @param options event options
|
61990
|
+
*/
|
61991
|
+
function addEventListener(node, eventName, handler, options) {
|
61992
|
+
if (options && typeof options !== 'boolean' && !onceSupported) {
|
61993
|
+
var once = options.once,
|
61994
|
+
capture = options.capture;
|
61995
|
+
var wrappedHandler = handler;
|
61996
|
+
|
61997
|
+
if (!onceSupported && once) {
|
61998
|
+
wrappedHandler = handler.__once || function onceHandler(event) {
|
61999
|
+
this.removeEventListener(eventName, onceHandler, capture);
|
62000
|
+
handler.call(this, event);
|
62001
|
+
};
|
62002
|
+
|
62003
|
+
handler.__once = wrappedHandler;
|
62004
|
+
}
|
62005
|
+
|
62006
|
+
node.addEventListener(eventName, wrappedHandler, optionsSupported ? options : capture);
|
62007
|
+
}
|
62008
|
+
|
62009
|
+
node.addEventListener(eventName, handler, options);
|
62010
|
+
}
|
62011
|
+
|
62012
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (addEventListener);
|
62013
|
+
|
62014
|
+
/***/ }),
|
62015
|
+
|
62016
|
+
/***/ "./node_modules/dom-helpers/esm/canUseDOM.js":
|
62017
|
+
/*!***************************************************!*\
|
62018
|
+
!*** ./node_modules/dom-helpers/esm/canUseDOM.js ***!
|
62019
|
+
\***************************************************/
|
62020
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
62021
|
+
|
62022
|
+
"use strict";
|
62023
|
+
__webpack_require__.r(__webpack_exports__);
|
62024
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
62025
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
62026
|
+
/* harmony export */ });
|
62027
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (!!(typeof window !== 'undefined' && window.document && window.document.createElement));
|
62028
|
+
|
62029
|
+
/***/ }),
|
62030
|
+
|
62031
|
+
/***/ "./node_modules/dom-helpers/esm/listen.js":
|
62032
|
+
/*!************************************************!*\
|
62033
|
+
!*** ./node_modules/dom-helpers/esm/listen.js ***!
|
62034
|
+
\************************************************/
|
62035
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
62036
|
+
|
62037
|
+
"use strict";
|
62038
|
+
__webpack_require__.r(__webpack_exports__);
|
62039
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
62040
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
62041
|
+
/* harmony export */ });
|
62042
|
+
/* harmony import */ var _addEventListener__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./addEventListener */ "./node_modules/dom-helpers/esm/addEventListener.js");
|
62043
|
+
/* harmony import */ var _removeEventListener__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./removeEventListener */ "./node_modules/dom-helpers/esm/removeEventListener.js");
|
62044
|
+
|
62045
|
+
|
62046
|
+
|
62047
|
+
function listen(node, eventName, handler, options) {
|
62048
|
+
(0,_addEventListener__WEBPACK_IMPORTED_MODULE_0__["default"])(node, eventName, handler, options);
|
62049
|
+
return function () {
|
62050
|
+
(0,_removeEventListener__WEBPACK_IMPORTED_MODULE_1__["default"])(node, eventName, handler, options);
|
62051
|
+
};
|
62052
|
+
}
|
62053
|
+
|
62054
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (listen);
|
62055
|
+
|
62056
|
+
/***/ }),
|
62057
|
+
|
62058
|
+
/***/ "./node_modules/dom-helpers/esm/removeEventListener.js":
|
62059
|
+
/*!*************************************************************!*\
|
62060
|
+
!*** ./node_modules/dom-helpers/esm/removeEventListener.js ***!
|
62061
|
+
\*************************************************************/
|
62062
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
62063
|
+
|
62064
|
+
"use strict";
|
62065
|
+
__webpack_require__.r(__webpack_exports__);
|
62066
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
62067
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
62068
|
+
/* harmony export */ });
|
62069
|
+
/**
|
62070
|
+
* A `removeEventListener` ponyfill
|
62071
|
+
*
|
62072
|
+
* @param node the element
|
62073
|
+
* @param eventName the event name
|
62074
|
+
* @param handle the handler
|
62075
|
+
* @param options event options
|
62076
|
+
*/
|
62077
|
+
function removeEventListener(node, eventName, handler, options) {
|
62078
|
+
var capture = options && typeof options !== 'boolean' ? options.capture : options;
|
62079
|
+
node.removeEventListener(eventName, handler, capture);
|
62080
|
+
|
62081
|
+
if (handler.__once) {
|
62082
|
+
node.removeEventListener(eventName, handler.__once, capture);
|
62083
|
+
}
|
62084
|
+
}
|
62085
|
+
|
62086
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (removeEventListener);
|
62087
|
+
|
61581
62088
|
/***/ }),
|
61582
62089
|
|
61583
62090
|
/***/ "./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js":
|
@@ -143670,6 +144177,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
143670
144177
|
/* harmony export */ Link: () => (/* reexport safe */ _core__WEBPACK_IMPORTED_MODULE_0__.Link),
|
143671
144178
|
/* harmony export */ Menu: () => (/* reexport safe */ _core__WEBPACK_IMPORTED_MODULE_0__.Menu),
|
143672
144179
|
/* harmony export */ Modal: () => (/* reexport safe */ _core__WEBPACK_IMPORTED_MODULE_0__.Modal),
|
144180
|
+
/* harmony export */ Popover: () => (/* reexport safe */ _core__WEBPACK_IMPORTED_MODULE_0__.Popover),
|
143673
144181
|
/* harmony export */ Progress: () => (/* reexport safe */ _core__WEBPACK_IMPORTED_MODULE_0__.Progress),
|
143674
144182
|
/* harmony export */ ProgressBar: () => (/* reexport safe */ _core__WEBPACK_IMPORTED_MODULE_0__.ProgressBar),
|
143675
144183
|
/* harmony export */ RemovableTag: () => (/* reexport safe */ _core__WEBPACK_IMPORTED_MODULE_0__.RemovableTag),
|