@luminati-io/uikit 6.2.8-beta.2 → 6.2.8-beta.4
Sign up to get free protection for your applications and to get access to all the features.
@@ -42586,15 +42586,20 @@ __webpack_require__.r(__webpack_exports__);
|
|
42586
42586
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
42587
42587
|
/* harmony import */ var rc_util_lib_React_render__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-util/lib/React/render */ "./node_modules/rc-util/lib/React/render.js");
|
42588
42588
|
/* harmony import */ var _themes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../themes */ "./src/themes/index.js");
|
42589
|
-
/* harmony import */ var
|
42590
|
-
/* harmony import */ var
|
42591
|
-
/* harmony import */ var
|
42592
|
-
/* harmony import */ var
|
42589
|
+
/* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../typography */ "./src/typography/index.js");
|
42590
|
+
/* harmony import */ var _global_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../global_config */ "./src/global_config.js");
|
42591
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
|
42592
|
+
/* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../icon */ "./src/icon.js");
|
42593
|
+
/* harmony import */ var _layout__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../layout */ "./src/layout/index.js");
|
42594
|
+
/* harmony import */ var _modal2__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./modal2 */ "./src/modal/modal2.js");
|
42593
42595
|
// LICENSE_CODE ZON
|
42594
42596
|
|
42595
42597
|
|
42596
42598
|
/*jslint react:true*/
|
42599
|
+
var _excluded = ["className", "classNamePrefix", "closeOnOutsideClick", "zIndex", "show", "afterClose", "closable", "onClose", "onConfirm", "okLabel", "cancelLabel", "okProps", "cancelProps", "size", "content", "type"];
|
42597
42600
|
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); }
|
42601
|
+
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; }
|
42602
|
+
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; }
|
42598
42603
|
function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
|
42599
42604
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
42600
42605
|
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; } }
|
@@ -42613,6 +42618,8 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
42613
42618
|
|
42614
42619
|
|
42615
42620
|
|
42621
|
+
|
42622
|
+
|
42616
42623
|
var destroyFns = [];
|
42617
42624
|
var withWarn = function withWarn(props) {
|
42618
42625
|
return _objectSpread(_objectSpread({}, props), {}, {
|
@@ -42667,7 +42674,7 @@ var confirm = function confirm(config) {
|
|
42667
42674
|
var render = function render(props) {
|
42668
42675
|
clearTimeout(timeoutId);
|
42669
42676
|
timeoutId = setTimeout(function () {
|
42670
|
-
var _globalConfig = (0,
|
42677
|
+
var _globalConfig = (0,_global_config__WEBPACK_IMPORTED_MODULE_4__.globalConfig)(),
|
42671
42678
|
themeName = _globalConfig.themeName;
|
42672
42679
|
(0,rc_util_lib_React_render__WEBPACK_IMPORTED_MODULE_1__.render)(/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_themes__WEBPACK_IMPORTED_MODULE_2__.ThemeProvider, {
|
42673
42680
|
theme: themeName
|
@@ -42715,10 +42722,19 @@ var ConfirmModal = function ConfirmModal(_ref) {
|
|
42715
42722
|
onConfirm = _ref.onConfirm,
|
42716
42723
|
okLabel = _ref.okLabel,
|
42717
42724
|
cancelLabel = _ref.cancelLabel,
|
42725
|
+
okProps = _ref.okProps,
|
42726
|
+
cancelProps = _ref.cancelProps,
|
42718
42727
|
_ref$size = _ref.size,
|
42719
42728
|
size = _ref$size === void 0 ? 'sm' : _ref$size,
|
42720
|
-
content = _ref.content
|
42721
|
-
|
42729
|
+
content = _ref.content,
|
42730
|
+
type = _ref.type,
|
42731
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
42732
|
+
var icon = (0,_util__WEBPACK_IMPORTED_MODULE_5__.firstDefined)(rest.icon, getIconByType(type));
|
42733
|
+
var title = rest.title && icon ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_layout__WEBPACK_IMPORTED_MODULE_7__.Flex, {
|
42734
|
+
gap: "03",
|
42735
|
+
align_items: "center"
|
42736
|
+
}, icon, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", null, rest.title)) : rest.title;
|
42737
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_modal2__WEBPACK_IMPORTED_MODULE_8__.Modal2, {
|
42722
42738
|
className: className,
|
42723
42739
|
classNamePrefix: classNamePrefix,
|
42724
42740
|
onClose: function onClose() {
|
@@ -42728,20 +42744,12 @@ var ConfirmModal = function ConfirmModal(_ref) {
|
|
42728
42744
|
onConfirm === null || onConfirm === void 0 || onConfirm(false);
|
42729
42745
|
},
|
42730
42746
|
show: show,
|
42731
|
-
title:
|
42747
|
+
title: title,
|
42732
42748
|
closeOnOutsideClick: closeOnOutsideClick,
|
42733
42749
|
size: size,
|
42734
42750
|
zIndex: zIndex,
|
42735
42751
|
closable: closable,
|
42736
42752
|
afterClose: afterClose,
|
42737
|
-
footer: null
|
42738
|
-
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_layout__WEBPACK_IMPORTED_MODULE_3__.Flex, {
|
42739
|
-
flex_direction: "column",
|
42740
|
-
gap: "07"
|
42741
|
-
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_4__.Label, {
|
42742
|
-
variant: "lg",
|
42743
|
-
color: "text"
|
42744
|
-
}, content), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_modal2__WEBPACK_IMPORTED_MODULE_6__.ModalFooter, {
|
42745
42753
|
okLabel: okLabel,
|
42746
42754
|
cancelLabel: cancelLabel,
|
42747
42755
|
onOk: function onOk() {
|
@@ -42753,8 +42761,39 @@ var ConfirmModal = function ConfirmModal(_ref) {
|
|
42753
42761
|
onCancel: function onCancel() {
|
42754
42762
|
_onClose === null || _onClose === void 0 || _onClose();
|
42755
42763
|
onConfirm === null || onConfirm === void 0 || onConfirm(false);
|
42756
|
-
}
|
42757
|
-
|
42764
|
+
},
|
42765
|
+
okProps: okProps,
|
42766
|
+
cancelProps: cancelProps
|
42767
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_3__.Paragraph, {
|
42768
|
+
variant: "sm"
|
42769
|
+
}, content));
|
42770
|
+
};
|
42771
|
+
var getIconByType = function getIconByType(type) {
|
42772
|
+
if (type == 'warning') return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_6__.Icon, {
|
42773
|
+
size: "sm",
|
42774
|
+
name: "Warning",
|
42775
|
+
color: "icon_warning"
|
42776
|
+
});
|
42777
|
+
if (type == 'info') return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_6__.Icon, {
|
42778
|
+
size: "sm",
|
42779
|
+
name: "Info",
|
42780
|
+
color: "icon_primary"
|
42781
|
+
});
|
42782
|
+
if (type == 'success') return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_6__.Icon, {
|
42783
|
+
size: "sm",
|
42784
|
+
name: "CheckCircle",
|
42785
|
+
color: "icon_success"
|
42786
|
+
});
|
42787
|
+
if (type == 'error') return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_6__.Icon, {
|
42788
|
+
size: "sm",
|
42789
|
+
name: "Warning",
|
42790
|
+
color: "icon_error"
|
42791
|
+
});
|
42792
|
+
if (type == 'confirm') return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_6__.Icon, {
|
42793
|
+
size: "sm",
|
42794
|
+
name: "Question",
|
42795
|
+
color: "icon_primary"
|
42796
|
+
});
|
42758
42797
|
};
|
42759
42798
|
|
42760
42799
|
/***/ }),
|
@@ -42798,6 +42837,18 @@ __webpack_require__.r(__webpack_exports__);
|
|
42798
42837
|
|
42799
42838
|
|
42800
42839
|
_modal2__WEBPACK_IMPORTED_MODULE_6__.Modal2.Button = _modal_button__WEBPACK_IMPORTED_MODULE_2__.ModalButton;
|
42840
|
+
_modal2__WEBPACK_IMPORTED_MODULE_6__.Modal2.warn = function warnFn(props) {
|
42841
|
+
return (0,_confirm__WEBPACK_IMPORTED_MODULE_1__.confirm)((0,_confirm__WEBPACK_IMPORTED_MODULE_1__.withWarn)(props));
|
42842
|
+
};
|
42843
|
+
_modal2__WEBPACK_IMPORTED_MODULE_6__.Modal2.info = function infoFn(props) {
|
42844
|
+
return (0,_confirm__WEBPACK_IMPORTED_MODULE_1__.confirm)((0,_confirm__WEBPACK_IMPORTED_MODULE_1__.withInfo)(props));
|
42845
|
+
};
|
42846
|
+
_modal2__WEBPACK_IMPORTED_MODULE_6__.Modal2.success = function successFn(props) {
|
42847
|
+
return (0,_confirm__WEBPACK_IMPORTED_MODULE_1__.confirm)((0,_confirm__WEBPACK_IMPORTED_MODULE_1__.withSuccess)(props));
|
42848
|
+
};
|
42849
|
+
_modal2__WEBPACK_IMPORTED_MODULE_6__.Modal2.error = function errorFn(props) {
|
42850
|
+
return (0,_confirm__WEBPACK_IMPORTED_MODULE_1__.confirm)((0,_confirm__WEBPACK_IMPORTED_MODULE_1__.withError)(props));
|
42851
|
+
};
|
42801
42852
|
_modal2__WEBPACK_IMPORTED_MODULE_6__.Modal2.confirm = function confirmFn(props) {
|
42802
42853
|
return (0,_confirm__WEBPACK_IMPORTED_MODULE_1__.confirm)((0,_confirm__WEBPACK_IMPORTED_MODULE_1__.withConfirm)(props));
|
42803
42854
|
};
|
@@ -42949,7 +43000,7 @@ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t =
|
|
42949
43000
|
var Modal2 = function Modal2(_ref) {
|
42950
43001
|
var className = _ref.className,
|
42951
43002
|
_ref$classNamePrefix = _ref.classNamePrefix,
|
42952
|
-
classNamePrefix = _ref$classNamePrefix === void 0 ? '
|
43003
|
+
classNamePrefix = _ref$classNamePrefix === void 0 ? 'uikit_modal' : _ref$classNamePrefix,
|
42953
43004
|
_ref$size = _ref.size,
|
42954
43005
|
size = _ref$size === void 0 ? 'md' : _ref$size,
|
42955
43006
|
_ref$footerVariant = _ref.footerVariant,
|
@@ -42983,7 +43034,8 @@ var Modal2 = function Modal2(_ref) {
|
|
42983
43034
|
var dialogTitle = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement((react__WEBPACK_IMPORTED_MODULE_1___default().Fragment), null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_4__.Header, {
|
42984
43035
|
color: "text"
|
42985
43036
|
}, title), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_4__.Label, {
|
42986
|
-
padding_right: "04"
|
43037
|
+
padding_right: "04",
|
43038
|
+
color: "text_tertiary"
|
42987
43039
|
}, subtitle));
|
42988
43040
|
var dialogFooter = footer !== null ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(ModalFooter, {
|
42989
43041
|
onOk: onOk,
|
@@ -42995,12 +43047,6 @@ var Modal2 = function Modal2(_ref) {
|
|
42995
43047
|
variant: footerVariant,
|
42996
43048
|
footer: footer
|
42997
43049
|
}) : null;
|
42998
|
-
var closeIcon = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon_js__WEBPACK_IMPORTED_MODULE_5__.Icon, {
|
42999
|
-
name: "CloseSmall",
|
43000
|
-
size: "xs",
|
43001
|
-
color: "icon",
|
43002
|
-
"data-testid": "modal_header_close_button"
|
43003
|
-
});
|
43004
43050
|
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(Modal2Style, {
|
43005
43051
|
$prefixCls: classNamePrefix,
|
43006
43052
|
$theme: theme
|
@@ -43011,7 +43057,7 @@ var Modal2 = function Modal2(_ref) {
|
|
43011
43057
|
className: className,
|
43012
43058
|
prefixCls: classNamePrefix,
|
43013
43059
|
closable: closable,
|
43014
|
-
closeIcon:
|
43060
|
+
closeIcon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(CloseIcon, null),
|
43015
43061
|
size: size,
|
43016
43062
|
maskClosable: closeOnOutsideClick && onClose,
|
43017
43063
|
title: dialogTitle,
|
@@ -43051,7 +43097,7 @@ Modal2.propTypes = {
|
|
43051
43097
|
minHeight: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
43052
43098
|
afterClose: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)
|
43053
43099
|
};
|
43054
|
-
var Modal2Style = (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.createGlobalStyle)([".", "{&-root{div[role=\"dialog\"]{margin:10vh auto 0;}}&-mask{position:fixed;inset:0;height:100%;background-color:", ";background-color:", ";filter:alpha(opacity=70);pointer-events:none;&-hidden{display:none;}}&-fade-enter,&-fade-appear{opacity:0;animation-duration:0.3s;animation-fill-mode:both;animation-timing-function:cubic-bezier(0.55,0,0.55,0.2);animation-play-state:paused;}&-fade-leave{animation-duration:0.3s;animation-fill-mode:both;animation-timing-function:cubic-bezier(0.55,0,0.55,0.2);animation-play-state:paused;}&-fade-enter&-fade-enter-active,&-fade-appear&-fade-appear-active{animation-name:rcDialogFadeIn;animation-play-state:running;}&-fade-leave&-fade-leave-active{animation-name:rcDialogFadeOut;animation-play-state:running;}@keyframes rcDialogFadeIn{0%{opacity:0;}100%{opacity:1;}}@keyframes rcDialogFadeOut{0%{opacity:1;}100%{opacity:0;}}&-wrap{position:fixed;inset:0;overflow:auto;outline:0;-webkit-overflow-scrolling:touch;}&-content{position:relative;display:flex;flex-direction:column;box-sizing:border-box;padding-top:", ";background-color:", ";border-radius:", ";font-family:", ";box-shadow:", ";pointer-events:auto;}&-close{position:absolute;top:", ";inset-inline-end:", ";z-index:1;padding:0;text-decoration:none;background:transparent;border-radius:4px;width:32px;height:32px;border:0;outline:0;cursor:pointer;}&-header{display:flex;flex-direction:column;padding-top:", ";padding-right:", ";padding-bottom:", ";padding-left:", ";gap:", ";}&-body{overflow-y:auto;padding-top:", ";padding-right:", ";padding-bottom:", ";padding-left:", ";", "}&-footer{padding-top:", ";padding-right:", ";padding-bottom:", ";padding-left:", ";border-top:1px solid ", ";}&-zoom-enter,&-zoom-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;}&-zoom-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;}&-zoom-enter&-zoom-enter-active,&-zoom-appear&-zoom-appear-active{animation-name:rcDialogZoomIn;animation-play-state:running;}&-zoom-leave&-zoom-leave-active{animation-name:rcDialogZoomOut;animation-play-state:running;}@keyframes rcDialogZoomIn{0%{opacity:0;transform:scale(0,0);}100%{opacity:1;transform:scale(1,1);}}@keyframes rcDialogZoomOut{0%{transform:scale(1,1);}100%{opacity:0;transform:scale(0,0);}}}"], function (_ref2) {
|
43100
|
+
var Modal2Style = (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.createGlobalStyle)([".", "{&-root{div[role=\"dialog\"]{margin:10vh auto 0;}}&-mask{position:fixed;inset:0;height:100%;background-color:", ";background-color:", ";filter:alpha(opacity=70);pointer-events:none;&-hidden{display:none;}}&-fade-enter,&-fade-appear{opacity:0;animation-duration:0.3s;animation-fill-mode:both;animation-timing-function:cubic-bezier(0.55,0,0.55,0.2);animation-play-state:paused;}&-fade-leave{animation-duration:0.3s;animation-fill-mode:both;animation-timing-function:cubic-bezier(0.55,0,0.55,0.2);animation-play-state:paused;}&-fade-enter&-fade-enter-active,&-fade-appear&-fade-appear-active{animation-name:rcDialogFadeIn;animation-play-state:running;}&-fade-leave&-fade-leave-active{animation-name:rcDialogFadeOut;animation-play-state:running;}@keyframes rcDialogFadeIn{0%{opacity:0;}100%{opacity:1;}}@keyframes rcDialogFadeOut{0%{opacity:1;}100%{opacity:0;}}&-wrap{position:fixed;inset:0;overflow:auto;outline:0;-webkit-overflow-scrolling:touch;}&-content{position:relative;display:flex;flex-direction:column;box-sizing:border-box;padding-top:", ";background-color:", ";border-radius:", ";font-family:", ";box-shadow:", ";pointer-events:auto;}&-close{position:absolute;top:", ";inset-inline-end:", ";z-index:1;padding:0;text-decoration:none;background:transparent;border-radius:4px;width:32px;height:32px;border:0;outline:0;cursor:pointer;}&-header{display:flex;flex-direction:column;padding-top:", ";padding-right:", ";padding-bottom:", ";padding-left:", ";gap:", ";}&-title{display:flex;flex-direction:column;gap:", ";}&-body{overflow-y:auto;padding-top:", ";padding-right:", ";padding-bottom:", ";padding-left:", ";color:", ";", "}&-footer{padding-top:", ";padding-right:", ";padding-bottom:", ";padding-left:", ";border-top:1px solid ", ";}&-zoom-enter,&-zoom-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;}&-zoom-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;}&-zoom-enter&-zoom-enter-active,&-zoom-appear&-zoom-appear-active{animation-name:rcDialogZoomIn;animation-play-state:running;}&-zoom-leave&-zoom-leave-active{animation-name:rcDialogZoomOut;animation-play-state:running;}@keyframes rcDialogZoomIn{0%{opacity:0;transform:scale(0,0);}100%{opacity:1;transform:scale(1,1);}}@keyframes rcDialogZoomOut{0%{transform:scale(1,1);}100%{opacity:0;transform:scale(0,0);}}}"], function (_ref2) {
|
43055
43101
|
var $prefixCls = _ref2.$prefixCls;
|
43056
43102
|
return $prefixCls;
|
43057
43103
|
}, function (_ref3) {
|
@@ -43098,25 +43144,25 @@ var Modal2Style = (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.createGlobal
|
|
43098
43144
|
return $theme.spacing['03'];
|
43099
43145
|
}, function (_ref17) {
|
43100
43146
|
var $theme = _ref17.$theme;
|
43101
|
-
return $theme.spacing['
|
43147
|
+
return $theme.spacing['03'];
|
43102
43148
|
}, function (_ref18) {
|
43103
43149
|
var $theme = _ref18.$theme;
|
43104
|
-
return $theme.spacing['
|
43150
|
+
return $theme.spacing['06'];
|
43105
43151
|
}, function (_ref19) {
|
43106
43152
|
var $theme = _ref19.$theme;
|
43107
|
-
return $theme.spacing['
|
43153
|
+
return $theme.spacing['07'];
|
43108
43154
|
}, function (_ref20) {
|
43109
43155
|
var $theme = _ref20.$theme;
|
43110
|
-
return $theme.spacing['
|
43156
|
+
return $theme.spacing['08'];
|
43111
43157
|
}, function (_ref21) {
|
43112
43158
|
var $theme = _ref21.$theme;
|
43113
|
-
return $theme.
|
43159
|
+
return $theme.spacing['07'];
|
43114
43160
|
}, function (_ref22) {
|
43115
43161
|
var $theme = _ref22.$theme;
|
43116
|
-
return $theme.
|
43162
|
+
return $theme.color.text_secondary;
|
43117
43163
|
}, function (_ref23) {
|
43118
43164
|
var $theme = _ref23.$theme;
|
43119
|
-
return $theme.
|
43165
|
+
return $theme.scrollbars.thin;
|
43120
43166
|
}, function (_ref24) {
|
43121
43167
|
var $theme = _ref24.$theme;
|
43122
43168
|
return $theme.spacing['04'];
|
@@ -43125,17 +43171,23 @@ var Modal2Style = (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.createGlobal
|
|
43125
43171
|
return $theme.spacing['07'];
|
43126
43172
|
}, function (_ref26) {
|
43127
43173
|
var $theme = _ref26.$theme;
|
43174
|
+
return $theme.spacing['04'];
|
43175
|
+
}, function (_ref27) {
|
43176
|
+
var $theme = _ref27.$theme;
|
43177
|
+
return $theme.spacing['07'];
|
43178
|
+
}, function (_ref28) {
|
43179
|
+
var $theme = _ref28.$theme;
|
43128
43180
|
return $theme.color.border_secondary;
|
43129
43181
|
});
|
43130
|
-
var ModalFooter = function ModalFooter(
|
43131
|
-
var onOk =
|
43132
|
-
onCancel =
|
43133
|
-
okLabel =
|
43134
|
-
cancelLabel =
|
43135
|
-
okProps =
|
43136
|
-
cancelProps =
|
43137
|
-
variant =
|
43138
|
-
footer =
|
43182
|
+
var ModalFooter = function ModalFooter(_ref29) {
|
43183
|
+
var onOk = _ref29.onOk,
|
43184
|
+
onCancel = _ref29.onCancel,
|
43185
|
+
okLabel = _ref29.okLabel,
|
43186
|
+
cancelLabel = _ref29.cancelLabel,
|
43187
|
+
okProps = _ref29.okProps,
|
43188
|
+
cancelProps = _ref29.cancelProps,
|
43189
|
+
variant = _ref29.variant,
|
43190
|
+
footer = _ref29.footer;
|
43139
43191
|
var renderCancel = !footer && !!(onCancel && cancelLabel);
|
43140
43192
|
var renderOk = !footer && !!(onOk && okLabel);
|
43141
43193
|
var renderFooter = !!footer || renderOk || renderCancel;
|
@@ -43190,6 +43242,26 @@ var footerLayout = {
|
|
43190
43242
|
horizontal_full: FooterFullHorizontal,
|
43191
43243
|
vertical: FooterVertical
|
43192
43244
|
};
|
43245
|
+
var CloseIcon = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_icon_js__WEBPACK_IMPORTED_MODULE_5__.Icon).attrs({
|
43246
|
+
name: 'CloseSmall',
|
43247
|
+
size: 'xs',
|
43248
|
+
'data-testid': 'modal_header_close_button'
|
43249
|
+
}).withConfig({
|
43250
|
+
displayName: "CloseIcon",
|
43251
|
+
componentId: "sc-1p3wums-3"
|
43252
|
+
})(["background-color:", ";color:", ";&:hover{background-color:", ";color:", ";}"], function (_ref30) {
|
43253
|
+
var color = _ref30.theme.color;
|
43254
|
+
return color.icon_button_bg;
|
43255
|
+
}, function (_ref31) {
|
43256
|
+
var color = _ref31.theme.color;
|
43257
|
+
return color.icon_button_icon_default;
|
43258
|
+
}, function (_ref32) {
|
43259
|
+
var color = _ref32.theme.color;
|
43260
|
+
return color.icon_button_bg_hover;
|
43261
|
+
}, function (_ref33) {
|
43262
|
+
var color = _ref33.theme.color;
|
43263
|
+
return color.icon_button_icon_hover;
|
43264
|
+
});
|
43193
43265
|
|
43194
43266
|
/***/ }),
|
43195
43267
|
|
@@ -44783,14 +44855,10 @@ var DroppableBody = function DroppableBody(props) {
|
|
44783
44855
|
var _useRowHoverActions = (0,_row_hover_actions__WEBPACK_IMPORTED_MODULE_2__.useRowHoverActions)(),
|
44784
44856
|
renderHoverActions = _useRowHoverActions.renderHoverActions,
|
44785
44857
|
rowHoverEvents = _useRowHoverActions.rowHoverEvents;
|
44786
|
-
|
44787
|
-
return
|
44788
|
-
|
44789
|
-
|
44790
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(DraggableWrapper, {
|
44791
|
-
key: row.id,
|
44792
|
-
row: row,
|
44793
|
-
index: index,
|
44858
|
+
var prepared_rows = react__WEBPACK_IMPORTED_MODULE_0___default().useMemo(function () {
|
44859
|
+
return rows.map(function (row, index) {
|
44860
|
+
return {
|
44861
|
+
original: row,
|
44794
44862
|
render: function render(wrapperProps, dragHandleProps) {
|
44795
44863
|
return renderRow({
|
44796
44864
|
row: row,
|
@@ -44802,6 +44870,20 @@ var DroppableBody = function DroppableBody(props) {
|
|
44802
44870
|
})
|
44803
44871
|
});
|
44804
44872
|
}
|
44873
|
+
};
|
44874
|
+
});
|
44875
|
+
}, [rows]);
|
44876
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(react_beautiful_dnd__WEBPACK_IMPORTED_MODULE_3__.Droppable, droppableProps, function (provided) {
|
44877
|
+
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("div", _extends({
|
44878
|
+
ref: provided.innerRef
|
44879
|
+
}, provided.droppableProps), prepared_rows.map(function (_ref, index) {
|
44880
|
+
var row = _ref.original,
|
44881
|
+
render = _ref.render;
|
44882
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(DraggableWrapper, {
|
44883
|
+
key: row.id,
|
44884
|
+
row: row,
|
44885
|
+
index: index,
|
44886
|
+
render: render
|
44805
44887
|
});
|
44806
44888
|
}), provided.placeholder), renderHoverActions());
|
44807
44889
|
});
|
@@ -49585,7 +49667,7 @@ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t =
|
|
49585
49667
|
|
49586
49668
|
|
49587
49669
|
|
49588
|
-
var PT_TRIGGER = prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['hover', 'click', 'focus']);
|
49670
|
+
var PT_TRIGGER = prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['hover', 'click', 'focus', 'contextMenu']);
|
49589
49671
|
var _Tooltip = function Tooltip2(_ref) {
|
49590
49672
|
var id = _ref.id,
|
49591
49673
|
className = _ref.className,
|
@@ -49645,9 +49727,9 @@ _Tooltip.propTypes = {
|
|
49645
49727
|
onVisibleChange: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
49646
49728
|
afterVisibleChange: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)
|
49647
49729
|
};
|
49648
|
-
_Tooltip.showDelay = 0;
|
49730
|
+
_Tooltip.showDelay = 0.1;
|
49649
49731
|
_Tooltip.hideDelay = 0.1;
|
49650
|
-
var Tooltip2Style = (0,styled_components__WEBPACK_IMPORTED_MODULE_3__.createGlobalStyle)([".", "{&_white,&_black{position:absolute;display:block;visibility:visible;font-family:", ";font-size:", ";font-weight:", ";line-height:", ";padding:1px;width:fit-content;max-width:min(500px,80vw);background-color:transparent;&-hidden{display:none;}&-inner{padding:8px 10px;text-align:left;text-decoration:none;border-radius:", ";box-shadow:", ";min-height:", ";}&-arrow,&-arrow-inner{position:absolute;width:0;height:0;border-color:transparent;border-style:solid;}&-placement-top &-arrow,&-placement-topLeft &-arrow,&-placement-topRight &-arrow{transform:translate(-50%,5px);margin-left:-6px;border-width:6px 6px 0;}&-placement-top &-arrow-inner,&-placement-topLeft &-arrow-inner,&-placement-topRight &-arrow-inner{bottom:1px;margin-left:-6px;border-width:6px 6px 0;}&-placement-top &-arrow{left:50%;}&-placement-topLeft &-arrow{left:15%;}&-placement-topRight &-arrow{right:15%;}&-placement-right &-arrow,&-placement-rightTop &-arrow,&-placement-rightBottom &-arrow{left:-5px;margin-top:-6px;border-width:6px 6px 6px 0;transform:translateX(calc(-100% + 1px));}&-placement-right &-arrow-inner,&-placement-rightTop &-arrow-inner,&-placement-rightBottom &-arrow-inner{left:1px;margin-top:-6px;border-width:6px 6px 6px 0;}&-placement-right &-arrow{top:50%;}&-placement-rightTop &-arrow{top:15%;margin-top:0;}&-placement-rightBottom &-arrow{bottom:15%;}&-placement-left &-arrow,&-placement-leftTop &-arrow,&-placement-leftBottom &-arrow{right:-5px;margin-top:-6px;border-width:6px 0 6px 6px;transform:translateX(calc(100% - 1px));}&-placement-left &-arrow-inner,&-placement-leftTop &-arrow-inner,&-placement-leftBottom &-arrow-inner{right:1px;margin-top:-6px;border-width:6px 0 6px 6px;}&-placement-left &-arrow{top:50%;}&-placement-leftTop &-arrow{top:15%;margin-top:0;}&-placement-leftBottom &-arrow{bottom:15%;}&-placement-bottom &-arrow,&-placement-bottomLeft &-arrow,&-placement-bottomRight &-arrow{transform:translate(-50%,-5px);margin-left:-6px;border-width:0 6px 6px;}&-placement-bottom &-arrow-inner,&-placement-bottomLeft &-arrow-inner,&-placement-bottomRight &-arrow-inner{top:1px;margin-left:-6px;border-width:0 6px 6px;}&-placement-bottom &-arrow{left:50%;}&-placement-bottomLeft &-arrow{left:15%;}&-placement-bottomRight &-arrow{right:15%;}&&-zoom-appear,&&-zoom-enter{opacity:0;}&&-zoom-enter,&&-zoom-leave{display:block;}&-zoom-enter,&-zoom-appear{opacity:0;animation-duration:0.
|
49732
|
+
var Tooltip2Style = (0,styled_components__WEBPACK_IMPORTED_MODULE_3__.createGlobalStyle)([".", "{&_white,&_black{position:absolute;display:block;visibility:visible;font-family:", ";font-size:", ";font-weight:", ";line-height:", ";padding:1px;width:fit-content;max-width:min(500px,80vw);background-color:transparent;&-hidden{display:none;}&-inner{padding:8px 10px;text-align:left;text-decoration:none;border-radius:", ";box-shadow:", ";min-height:", ";}&-arrow,&-arrow-inner{position:absolute;width:0;height:0;border-color:transparent;border-style:solid;}&-placement-top &-arrow,&-placement-topLeft &-arrow,&-placement-topRight &-arrow{transform:translate(-50%,5px);margin-left:-6px;border-width:6px 6px 0;}&-placement-top &-arrow-inner,&-placement-topLeft &-arrow-inner,&-placement-topRight &-arrow-inner{bottom:1px;margin-left:-6px;border-width:6px 6px 0;}&-placement-top &-arrow{left:50%;}&-placement-topLeft &-arrow{left:15%;}&-placement-topRight &-arrow{right:15%;}&-placement-right &-arrow,&-placement-rightTop &-arrow,&-placement-rightBottom &-arrow{left:-5px;margin-top:-6px;border-width:6px 6px 6px 0;transform:translateX(calc(-100% + 1px));}&-placement-right &-arrow-inner,&-placement-rightTop &-arrow-inner,&-placement-rightBottom &-arrow-inner{left:1px;margin-top:-6px;border-width:6px 6px 6px 0;}&-placement-right &-arrow{top:50%;}&-placement-rightTop &-arrow{top:15%;margin-top:0;}&-placement-rightBottom &-arrow{bottom:15%;}&-placement-left &-arrow,&-placement-leftTop &-arrow,&-placement-leftBottom &-arrow{right:-5px;margin-top:-6px;border-width:6px 0 6px 6px;transform:translateX(calc(100% - 1px));}&-placement-left &-arrow-inner,&-placement-leftTop &-arrow-inner,&-placement-leftBottom &-arrow-inner{right:1px;margin-top:-6px;border-width:6px 0 6px 6px;}&-placement-left &-arrow{top:50%;}&-placement-leftTop &-arrow{top:15%;margin-top:0;}&-placement-leftBottom &-arrow{bottom:15%;}&-placement-bottom &-arrow,&-placement-bottomLeft &-arrow,&-placement-bottomRight &-arrow{transform:translate(-50%,-5px);margin-left:-6px;border-width:0 6px 6px;}&-placement-bottom &-arrow-inner,&-placement-bottomLeft &-arrow-inner,&-placement-bottomRight &-arrow-inner{top:1px;margin-left:-6px;border-width:0 6px 6px;}&-placement-bottom &-arrow{left:50%;}&-placement-bottomLeft &-arrow{left:15%;}&-placement-bottomRight &-arrow{right:15%;}&&-zoom-appear,&&-zoom-enter{opacity:0;}&&-zoom-enter,&&-zoom-leave{display:block;}&-zoom-enter,&-zoom-appear{opacity:0;animation-duration:0.1s;animation-fill-mode:both;animation-timing-function:cubic-bezier(0.08,0.82,0.17,1);animation-play-state:paused;}&-zoom-leave{animation-duration:0.1s;animation-fill-mode:both;animation-timing-function:cubic-bezier(0.78,0.14,0.15,0.86);animation-play-state:paused;}&-zoom-enter&-zoom-enter-active,&-zoom-appear&-zoom-appear-active{animation-name:rcToolTipZoomIn;animation-play-state:running;}&-zoom-leave&-zoom-leave-active{animation-name:rcToolTipZoomOut;animation-play-state:running;}@keyframes rcToolTipZoomIn{0%{opacity:0;transform-origin:50% 50%;transform:scale(0,0);}100%{opacity:1;transform-origin:50% 50%;transform:scale(1,1);}}@keyframes rcToolTipZoomOut{0%{opacity:1;transform-origin:50% 50%;transform:scale(1,1);}100%{opacity:0;transform-origin:50% 50%;transform:scale(0,0);}}}&_white{&-inner{color:", ";background-color:", ";border:1px solid ", ";}&-placement-top &-arrow,&-placement-topLeft &-arrow,&-placement-topRight &-arrow{border-top-color:", ";}&-placement-top &-arrow-inner,&-placement-topLeft &-arrow-inner,&-placement-topRight &-arrow-inner{border-top-color:", ";}&-placement-right &-arrow,&-placement-rightTop &-arrow,&-placement-rightBottom &-arrow{border-right-color:", ";}&-placement-right &-arrow-inner,&-placement-rightTop &-arrow-inner,&-placement-rightBottom &-arrow-inner{border-right-color:", ";}&-placement-left &-arrow,&-placement-leftTop &-arrow,&-placement-leftBottom &-arrow{border-left-color:", ";}&-placement-left &-arrow-inner,&-placement-leftTop &-arrow-inner,&-placement-leftBottom &-arrow-inner{border-left-color:", ";}&-placement-bottom &-arrow,&-placement-bottomLeft &-arrow,&-placement-bottomRight &-arrow{border-bottom-color:", ";}&-placement-bottom &-arrow-inner,&-placement-bottomLeft &-arrow-inner,&-placement-bottomRight &-arrow-inner{border-bottom-color:", ";}}&_black{&-inner{color:", ";background-color:", ";border:1px solid ", ";}&-placement-top &-arrow,&-placement-topLeft &-arrow,&-placement-topRight &-arrow{border-top-color:", ";}&-placement-top &-arrow-inner,&-placement-topLeft &-arrow-inner,&-placement-topRight &-arrow-inner{border-top-color:", ";}&-placement-right &-arrow,&-placement-rightTop &-arrow,&-placement-rightBottom &-arrow{border-right-color:", ";}&-placement-right &-arrow-inner,&-placement-rightTop &-arrow-inner,&-placement-rightBottom &-arrow-inner{border-right-color:", ";}&-placement-left &-arrow,&-placement-leftTop &-arrow,&-placement-leftBottom &-arrow{border-left-color:", ";}&-placement-left &-arrow-inner,&-placement-leftTop &-arrow-inner,&-placement-leftBottom &-arrow-inner{border-left-color:", ";}&-placement-bottom &-arrow,&-placement-bottomLeft &-arrow,&-placement-bottomRight &-arrow{border-bottom-color:", ";}&-placement-bottom &-arrow-inner,&-placement-bottomLeft &-arrow-inner,&-placement-bottomRight &-arrow-inner{border-bottom-color:", ";}}}"], function (_ref2) {
|
49651
49733
|
var $prefixCls = _ref2.$prefixCls;
|
49652
49734
|
return $prefixCls;
|
49653
49735
|
}, function (_ref3) {
|
@@ -49658,7 +49740,7 @@ var Tooltip2Style = (0,styled_components__WEBPACK_IMPORTED_MODULE_3__.createGlob
|
|
49658
49740
|
return $theme.font_size.sm;
|
49659
49741
|
}, function (_ref5) {
|
49660
49742
|
var $theme = _ref5.$theme;
|
49661
|
-
return $theme.font_weight.
|
49743
|
+
return $theme.font_weight.regular;
|
49662
49744
|
}, function (_ref6) {
|
49663
49745
|
var $theme = _ref6.$theme;
|
49664
49746
|
return $theme.line_height.none;
|