@luminati-io/uikit 6.2.13 → 6.2.14
Sign up to get free protection for your applications and to get access to all the features.
@@ -34886,7 +34886,10 @@ var Drawer = function Drawer(_ref) {
|
|
34886
34886
|
footerVariant = _ref$footerVariant === void 0 ? 'horizontal' : _ref$footerVariant,
|
34887
34887
|
afterOpenChange = _ref.afterOpenChange,
|
34888
34888
|
_ref$mask = _ref.mask,
|
34889
|
-
mask = _ref$mask === void 0 ? false : _ref$mask
|
34889
|
+
mask = _ref$mask === void 0 ? false : _ref$mask,
|
34890
|
+
shadow = _ref.shadow,
|
34891
|
+
styles = _ref.styles,
|
34892
|
+
classNames = _ref.classNames;
|
34890
34893
|
var theme = (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.useTheme)();
|
34891
34894
|
var renderCancel = !footer && !!(onCancel && cancelLabel);
|
34892
34895
|
var renderOk = !footer && !!(onOk && okLabel);
|
@@ -34910,7 +34913,8 @@ var Drawer = function Drawer(_ref) {
|
|
34910
34913
|
};
|
34911
34914
|
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(DrawerStyle, {
|
34912
34915
|
$prefixCls: classNamePrefix,
|
34913
|
-
$theme: theme
|
34916
|
+
$theme: theme,
|
34917
|
+
$shadow: shadow
|
34914
34918
|
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(rc_drawer__WEBPACK_IMPORTED_MODULE_3__["default"], {
|
34915
34919
|
width: width,
|
34916
34920
|
height: height,
|
@@ -34922,8 +34926,10 @@ var Drawer = function Drawer(_ref) {
|
|
34922
34926
|
prefixCls: classNamePrefix,
|
34923
34927
|
zIndex: _constants__WEBPACK_IMPORTED_MODULE_4__.Z_INDEX.drawer,
|
34924
34928
|
maskClosable: closable,
|
34929
|
+
classNames: classNames,
|
34925
34930
|
afterOpenChange: afterOpenChange,
|
34926
34931
|
mask: mask,
|
34932
|
+
styles: styles,
|
34927
34933
|
maskMotion: maskMotion,
|
34928
34934
|
motion: motion
|
34929
34935
|
}, closable && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon_button__WEBPACK_IMPORTED_MODULE_6__.IconButton, {
|
@@ -34971,9 +34977,20 @@ Drawer.propTypes = {
|
|
34971
34977
|
cancelProps: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
|
34972
34978
|
footerVariant: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['vertical', 'horizontal', 'horizontal_full']),
|
34973
34979
|
afterOpenChange: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
34974
|
-
mask: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)
|
34980
|
+
mask: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
34981
|
+
shadow: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['sm', 'md', 'lg']),
|
34982
|
+
styles: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
34983
|
+
mask: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
|
34984
|
+
wrapper: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
|
34985
|
+
content: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)
|
34986
|
+
}),
|
34987
|
+
classNames: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
34988
|
+
mask: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
34989
|
+
wrapper: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
34990
|
+
content: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)
|
34991
|
+
})
|
34975
34992
|
};
|
34976
|
-
var DrawerStyle = (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.createGlobalStyle)([".", "{inset:0;position:fixed;pointer-events:none;&-inline{position:absolute;}&-mask{inset:0;position:absolute;background-color:", ";background-color:", ";filter:alpha(opacity=70);pointer-events:auto;}&-content-wrapper{position:absolute;overflow:hidden;&-hidden{display:none;}}&-left &-content-wrapper{top:0;bottom:0;left:0;}&-right &-content-wrapper{top:0;right:0;bottom:0;}&-content{position:relative;display:flex;flex-direction:column;width:100%;height:100%;background:", ";pointer-events:auto;}&-left &-content{border-right:1px solid ", ";}&-right &-content{border-left:1px solid ", ";}&-close{position:absolute;margin-top:16px;inset-inline-end:16px;z-index:1;background:transparent;}&-header{padding-top:", ";padding-right:", ";padding-bottom:", ";padding-left:", ";}&-body{flex:1;overflow:auto;padding-top:", ";padding-right:", ";padding-bottom:", ";padding-left:", ";color:", ";", "}&-footer{padding-top:", ";padding-right:", ";padding-bottom:", ";padding-left:", ";border-top:1px solid ", ";}&-mask-motion{&-enter,&-appear,&-leave{&-start{transition:none;}&-active{transition:all 0.3s;}}&-enter,&-appear{opacity:0;&-active{opacity:1;}}&-leave{opacity:1;&-active{opacity:0;}}}&-panel-motion{&-left,&-right{&-enter,&-appear,&-leave{&-start{transition:none;}&-active{transition:all 0.3s;}}&-enter,&-appear{opacity:0.7;&-active{opacity:1;}}&-leave{opacity:1;&-active{opacity:0.7;}}}&-left{&-enter,&-appear{transform:translateX(-100%);&-active{transform:none;}}&-leave{transform:none;&-active{transform:translateX(-100%);}}}&-right{&-enter,&-appear{transform:translateX(100%);&-active{transform:none;}}&-leave{transform:none;&-active{transform:translateX(100%);}}}}}"], function (_ref2) {
|
34993
|
+
var DrawerStyle = (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.createGlobalStyle)([".", "{inset:0;position:fixed;pointer-events:none;&-inline{position:absolute;}&-mask{inset:0;position:absolute;background-color:", ";background-color:", ";filter:alpha(opacity=70);pointer-events:auto;}&-content-wrapper{position:absolute;overflow:hidden;box-shadow:", ";&-hidden{display:none;}}&-left &-content-wrapper{top:0;bottom:0;left:0;}&-right &-content-wrapper{top:0;right:0;bottom:0;}&-content{position:relative;display:flex;flex-direction:column;width:100%;height:100%;background:", ";pointer-events:auto;}&-left &-content{border-right:1px solid ", ";}&-right &-content{border-left:1px solid ", ";}&-close{position:absolute;margin-top:16px;inset-inline-end:16px;z-index:1;background:transparent;}&-header{padding-top:", ";padding-right:", ";padding-bottom:", ";padding-left:", ";}&-body{flex:1;overflow:auto;padding-top:", ";padding-right:", ";padding-bottom:", ";padding-left:", ";color:", ";", "}&-footer{padding-top:", ";padding-right:", ";padding-bottom:", ";padding-left:", ";border-top:1px solid ", ";}&-mask-motion{&-enter,&-appear,&-leave{&-start{transition:none;}&-active{transition:all 0.3s;}}&-enter,&-appear{opacity:0;&-active{opacity:1;}}&-leave{opacity:1;&-active{opacity:0;}}}&-panel-motion{&-left,&-right{&-enter,&-appear,&-leave{&-start{transition:none;}&-active{transition:all 0.3s;}}&-enter,&-appear{opacity:0.7;&-active{opacity:1;}}&-leave{opacity:1;&-active{opacity:0.7;}}}&-left{&-enter,&-appear{transform:translateX(-100%);&-active{transform:none;}}&-leave{transform:none;&-active{transform:translateX(-100%);}}}&-right{&-enter,&-appear{transform:translateX(100%);&-active{transform:none;}}&-leave{transform:none;&-active{transform:translateX(100%);}}}}}"], function (_ref2) {
|
34977
34994
|
var $prefixCls = _ref2.$prefixCls;
|
34978
34995
|
return $prefixCls;
|
34979
34996
|
}, function (_ref3) {
|
@@ -34983,58 +35000,62 @@ var DrawerStyle = (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.createGlobal
|
|
34983
35000
|
var $theme = _ref4.$theme;
|
34984
35001
|
return $theme.color.modal2_shadow_bg;
|
34985
35002
|
}, function (_ref5) {
|
34986
|
-
var $
|
34987
|
-
|
35003
|
+
var $shadow = _ref5.$shadow,
|
35004
|
+
$theme = _ref5.$theme;
|
35005
|
+
return $theme.box_shadow[$shadow];
|
34988
35006
|
}, function (_ref6) {
|
34989
35007
|
var $theme = _ref6.$theme;
|
34990
|
-
return $theme.color.
|
35008
|
+
return $theme.color.bg_elevated;
|
34991
35009
|
}, function (_ref7) {
|
34992
35010
|
var $theme = _ref7.$theme;
|
34993
35011
|
return $theme.color.border_secondary;
|
34994
35012
|
}, function (_ref8) {
|
34995
35013
|
var $theme = _ref8.$theme;
|
34996
|
-
return $theme.
|
35014
|
+
return $theme.color.border_secondary;
|
34997
35015
|
}, function (_ref9) {
|
34998
35016
|
var $theme = _ref9.$theme;
|
34999
|
-
return $theme.spacing['
|
35017
|
+
return $theme.spacing['05'];
|
35000
35018
|
}, function (_ref10) {
|
35001
35019
|
var $theme = _ref10.$theme;
|
35002
|
-
return $theme.spacing['
|
35020
|
+
return $theme.spacing['08'];
|
35003
35021
|
}, function (_ref11) {
|
35004
35022
|
var $theme = _ref11.$theme;
|
35005
35023
|
return $theme.spacing['05'];
|
35006
35024
|
}, function (_ref12) {
|
35007
35025
|
var $theme = _ref12.$theme;
|
35008
|
-
return $theme.spacing['
|
35026
|
+
return $theme.spacing['05'];
|
35009
35027
|
}, function (_ref13) {
|
35010
35028
|
var $theme = _ref13.$theme;
|
35011
|
-
return $theme.spacing['
|
35029
|
+
return $theme.spacing['06'];
|
35012
35030
|
}, function (_ref14) {
|
35013
35031
|
var $theme = _ref14.$theme;
|
35014
|
-
return $theme.spacing['
|
35032
|
+
return $theme.spacing['07'];
|
35015
35033
|
}, function (_ref15) {
|
35016
35034
|
var $theme = _ref15.$theme;
|
35017
|
-
return $theme.spacing['
|
35035
|
+
return $theme.spacing['06'];
|
35018
35036
|
}, function (_ref16) {
|
35019
35037
|
var $theme = _ref16.$theme;
|
35020
|
-
return $theme.
|
35038
|
+
return $theme.spacing['07'];
|
35021
35039
|
}, function (_ref17) {
|
35022
35040
|
var $theme = _ref17.$theme;
|
35023
|
-
return $theme.
|
35041
|
+
return $theme.color.text_secondary;
|
35024
35042
|
}, function (_ref18) {
|
35025
35043
|
var $theme = _ref18.$theme;
|
35026
|
-
return $theme.
|
35044
|
+
return $theme.scrollbars.thin;
|
35027
35045
|
}, function (_ref19) {
|
35028
35046
|
var $theme = _ref19.$theme;
|
35029
|
-
return $theme.spacing['
|
35047
|
+
return $theme.spacing['05'];
|
35030
35048
|
}, function (_ref20) {
|
35031
35049
|
var $theme = _ref20.$theme;
|
35032
|
-
return $theme.spacing['
|
35050
|
+
return $theme.spacing['07'];
|
35033
35051
|
}, function (_ref21) {
|
35034
35052
|
var $theme = _ref21.$theme;
|
35035
|
-
return $theme.spacing['
|
35053
|
+
return $theme.spacing['05'];
|
35036
35054
|
}, function (_ref22) {
|
35037
35055
|
var $theme = _ref22.$theme;
|
35056
|
+
return $theme.spacing['07'];
|
35057
|
+
}, function (_ref23) {
|
35058
|
+
var $theme = _ref23.$theme;
|
35038
35059
|
return $theme.color.border_secondary;
|
35039
35060
|
});
|
35040
35061
|
|
@@ -43072,18 +43093,20 @@ __webpack_require__.r(__webpack_exports__);
|
|
43072
43093
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
43073
43094
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
43074
43095
|
/* 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");
|
43075
|
-
/* harmony import */ var
|
43076
|
-
/* harmony import */ var
|
43077
|
-
/* harmony import */ var
|
43078
|
-
/* harmony import */ var
|
43079
|
-
/* harmony import */ var
|
43080
|
-
/* harmony import */ var
|
43096
|
+
/* harmony import */ var rc_util_lib_pickAttrs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rc-util/lib/pickAttrs */ "./node_modules/rc-util/lib/pickAttrs.js");
|
43097
|
+
/* harmony import */ var _themes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../themes */ "./src/themes/index.js");
|
43098
|
+
/* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../typography */ "./src/typography/index.js");
|
43099
|
+
/* harmony import */ var _global_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../global_config */ "./src/global_config.js");
|
43100
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
|
43101
|
+
/* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../icon */ "./src/icon.js");
|
43102
|
+
/* harmony import */ var _modal2__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./modal2 */ "./src/modal/modal2.js");
|
43081
43103
|
// LICENSE_CODE ZON
|
43082
43104
|
|
43083
43105
|
|
43084
43106
|
/*jslint react:true*/
|
43085
43107
|
var _excluded = ["className", "classNamePrefix", "closeOnOutsideClick", "zIndex", "show", "afterClose", "closable", "onClose", "onConfirm", "okLabel", "cancelLabel", "okProps", "cancelProps", "size", "content", "title"];
|
43086
43108
|
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); }
|
43109
|
+
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); }
|
43087
43110
|
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; }
|
43088
43111
|
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; }
|
43089
43112
|
function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
|
@@ -43105,6 +43128,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
43105
43128
|
|
43106
43129
|
|
43107
43130
|
|
43131
|
+
|
43108
43132
|
var destroyFns = [];
|
43109
43133
|
var withWarn = function withWarn(props) {
|
43110
43134
|
return _objectSpread(_objectSpread({}, props), {}, {
|
@@ -43159,9 +43183,9 @@ var confirm = function confirm(config) {
|
|
43159
43183
|
var render = function render(props) {
|
43160
43184
|
clearTimeout(timeoutId);
|
43161
43185
|
timeoutId = setTimeout(function () {
|
43162
|
-
var _globalConfig = (0,
|
43186
|
+
var _globalConfig = (0,_global_config__WEBPACK_IMPORTED_MODULE_5__.globalConfig)(),
|
43163
43187
|
themeName = _globalConfig.themeName;
|
43164
|
-
(0,rc_util_lib_React_render__WEBPACK_IMPORTED_MODULE_1__.render)(/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(
|
43188
|
+
(0,rc_util_lib_React_render__WEBPACK_IMPORTED_MODULE_1__.render)(/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_themes__WEBPACK_IMPORTED_MODULE_3__.ThemeProvider, {
|
43165
43189
|
theme: themeName
|
43166
43190
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(ConfirmModal, props)), container);
|
43167
43191
|
});
|
@@ -43214,8 +43238,10 @@ var ConfirmModal = function ConfirmModal(_ref) {
|
|
43214
43238
|
content = _ref.content,
|
43215
43239
|
title = _ref.title,
|
43216
43240
|
rest = _objectWithoutProperties(_ref, _excluded);
|
43217
|
-
var icon = (0,
|
43218
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(
|
43241
|
+
var icon = (0,_util__WEBPACK_IMPORTED_MODULE_6__.firstDefined)(rest.icon, getIconByType(rest.type));
|
43242
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_modal2__WEBPACK_IMPORTED_MODULE_8__.Modal2, _extends({}, (0,rc_util_lib_pickAttrs__WEBPACK_IMPORTED_MODULE_2__["default"])(rest, {
|
43243
|
+
data: true
|
43244
|
+
}), {
|
43219
43245
|
className: className,
|
43220
43246
|
classNamePrefix: classNamePrefix,
|
43221
43247
|
onClose: function onClose() {
|
@@ -43246,32 +43272,32 @@ var ConfirmModal = function ConfirmModal(_ref) {
|
|
43246
43272
|
},
|
43247
43273
|
okProps: okProps,
|
43248
43274
|
cancelProps: cancelProps
|
43249
|
-
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(
|
43275
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_4__.Paragraph, {
|
43250
43276
|
variant: "sm"
|
43251
43277
|
}, content));
|
43252
43278
|
};
|
43253
43279
|
var getIconByType = function getIconByType(type) {
|
43254
|
-
if (type == 'warning') return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(
|
43280
|
+
if (type == 'warning') return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_7__.Icon, {
|
43255
43281
|
size: "sm",
|
43256
43282
|
name: "Warning",
|
43257
43283
|
color: "icon_warning"
|
43258
43284
|
});
|
43259
|
-
if (type == 'info') return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(
|
43285
|
+
if (type == 'info') return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_7__.Icon, {
|
43260
43286
|
size: "sm",
|
43261
43287
|
name: "Info",
|
43262
43288
|
color: "icon_primary"
|
43263
43289
|
});
|
43264
|
-
if (type == 'success') return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(
|
43290
|
+
if (type == 'success') return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_7__.Icon, {
|
43265
43291
|
size: "sm",
|
43266
43292
|
name: "CheckCircle",
|
43267
43293
|
color: "icon_success"
|
43268
43294
|
});
|
43269
|
-
if (type == 'error') return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(
|
43295
|
+
if (type == 'error') return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_7__.Icon, {
|
43270
43296
|
size: "sm",
|
43271
43297
|
name: "Warning",
|
43272
43298
|
color: "icon_error"
|
43273
43299
|
});
|
43274
|
-
if (type == 'confirm') return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(
|
43300
|
+
if (type == 'confirm') return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_7__.Icon, {
|
43275
43301
|
size: "sm",
|
43276
43302
|
name: "Question",
|
43277
43303
|
color: "icon_primary"
|
@@ -43451,12 +43477,12 @@ __webpack_require__.r(__webpack_exports__);
|
|
43451
43477
|
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! styled-components */ "styled-components");
|
43452
43478
|
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_2__);
|
43453
43479
|
/* harmony import */ var rc_dialog__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rc-dialog */ "./node_modules/rc-dialog/es/index.js");
|
43454
|
-
/* harmony import */ var
|
43455
|
-
/* harmony import */ var
|
43456
|
-
/* harmony import */ var
|
43457
|
-
/* harmony import */ var
|
43458
|
-
/* harmony import */ var
|
43459
|
-
/* harmony import */ var
|
43480
|
+
/* harmony import */ var rc_util_lib_pickAttrs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rc-util/lib/pickAttrs */ "./node_modules/rc-util/lib/pickAttrs.js");
|
43481
|
+
/* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../typography */ "./src/typography/index.js");
|
43482
|
+
/* harmony import */ var _icon_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../icon.js */ "./src/icon.js");
|
43483
|
+
/* harmony import */ var _layout__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../layout */ "./src/layout/index.js");
|
43484
|
+
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../constants */ "./src/constants.js");
|
43485
|
+
/* harmony import */ var _hooks__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../hooks */ "./src/hooks/index.js");
|
43460
43486
|
/* harmony import */ var _base_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./base.js */ "./src/modal/base.js");
|
43461
43487
|
/* harmony import */ var _modal_button_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./modal_button.js */ "./src/modal/modal_button.js");
|
43462
43488
|
// LICENSE_CODE ZON
|
@@ -43503,7 +43529,7 @@ var Modal2 = function Modal2(_ref) {
|
|
43503
43529
|
cancelProps = _ref.cancelProps,
|
43504
43530
|
icon = _ref.icon,
|
43505
43531
|
_ref$zIndex = _ref.zIndex,
|
43506
|
-
zIndex = _ref$zIndex === void 0 ?
|
43532
|
+
zIndex = _ref$zIndex === void 0 ? _constants__WEBPACK_IMPORTED_MODULE_8__.Z_INDEX.modal : _ref$zIndex,
|
43507
43533
|
children = _ref.children,
|
43508
43534
|
_ref$minHeight = _ref.minHeight,
|
43509
43535
|
minHeight = _ref$minHeight === void 0 ? 300 : _ref$minHeight,
|
@@ -43511,7 +43537,7 @@ var Modal2 = function Modal2(_ref) {
|
|
43511
43537
|
rest = _objectWithoutProperties(_ref, _excluded);
|
43512
43538
|
var theme = (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.useTheme)();
|
43513
43539
|
var width = _base_js__WEBPACK_IMPORTED_MODULE_10__.MODAL_WIDTHS[size] || _base_js__WEBPACK_IMPORTED_MODULE_10__.MODAL_WIDTHS.md;
|
43514
|
-
var _useWindowSize = (0,
|
43540
|
+
var _useWindowSize = (0,_hooks__WEBPACK_IMPORTED_MODULE_9__.useWindowSize)(),
|
43515
43541
|
windowHeight = _useWindowSize.height;
|
43516
43542
|
var maxHeight = "".concat(Math.max(windowHeight * 0.8, minHeight), "px");
|
43517
43543
|
var dialogFooter = footer !== null ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(DialogFooter, {
|
@@ -43555,7 +43581,7 @@ var Modal2 = function Modal2(_ref) {
|
|
43555
43581
|
keyboard: false,
|
43556
43582
|
animation: "zoom",
|
43557
43583
|
maskAnimation: "fade"
|
43558
|
-
}, (0,
|
43584
|
+
}, (0,rc_util_lib_pickAttrs__WEBPACK_IMPORTED_MODULE_4__["default"])(rest)), children));
|
43559
43585
|
};
|
43560
43586
|
Modal2.propTypes = {
|
43561
43587
|
className: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
@@ -43672,9 +43698,9 @@ var DialogHeader = function DialogHeader(_ref30) {
|
|
43672
43698
|
prefixCls = _ref30.prefixCls;
|
43673
43699
|
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("div", {
|
43674
43700
|
className: "".concat(prefixCls, "-title-wrap")
|
43675
|
-
}, icon, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(
|
43701
|
+
}, icon, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_5__.Header, {
|
43676
43702
|
color: "text"
|
43677
|
-
}, title)), !!subtitle && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(
|
43703
|
+
}, title)), !!subtitle && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_5__.Label, {
|
43678
43704
|
padding_right: "04",
|
43679
43705
|
color: "text_tertiary"
|
43680
43706
|
}, subtitle));
|
@@ -43715,7 +43741,7 @@ var DialogFooter = function DialogFooter(_ref31) {
|
|
43715
43741
|
// top: 0;
|
43716
43742
|
// transform: translate(0, ${$show=>$show ? '0': 'calc(50vh - 50%)'});
|
43717
43743
|
|
43718
|
-
var FooterHorizontal = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(
|
43744
|
+
var FooterHorizontal = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_layout__WEBPACK_IMPORTED_MODULE_7__.Flex).attrs({
|
43719
43745
|
gap: '04',
|
43720
43746
|
align_items: 'center',
|
43721
43747
|
justify_content: 'flex-end'
|
@@ -43723,14 +43749,14 @@ var FooterHorizontal = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(
|
|
43723
43749
|
displayName: "FooterHorizontal",
|
43724
43750
|
componentId: "sc-1p3wums-0"
|
43725
43751
|
})([""]);
|
43726
|
-
var FooterFullHorizontal = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(
|
43752
|
+
var FooterFullHorizontal = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_layout__WEBPACK_IMPORTED_MODULE_7__.Flex).attrs({
|
43727
43753
|
gap: '04',
|
43728
43754
|
align_items: 'space-between'
|
43729
43755
|
}).withConfig({
|
43730
43756
|
displayName: "FooterFullHorizontal",
|
43731
43757
|
componentId: "sc-1p3wums-1"
|
43732
43758
|
})(["button{width:100%;}"]);
|
43733
|
-
var FooterVertical = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(
|
43759
|
+
var FooterVertical = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_layout__WEBPACK_IMPORTED_MODULE_7__.Flex).attrs({
|
43734
43760
|
gap: '04',
|
43735
43761
|
flex_direction: 'column'
|
43736
43762
|
}).withConfig({
|
@@ -43743,7 +43769,7 @@ var footerLayout = {
|
|
43743
43769
|
vertical: FooterVertical
|
43744
43770
|
};
|
43745
43771
|
var CloseIcon = function CloseIcon() {
|
43746
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(
|
43772
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon_js__WEBPACK_IMPORTED_MODULE_6__.Icon, {
|
43747
43773
|
name: "Close",
|
43748
43774
|
size: "xs",
|
43749
43775
|
"data-testid": "modal_header_close_button"
|