@luminati-io/uikit 6.2.8-beta.4 → 6.2.9-beta.0
Sign up to get free protection for your applications and to get access to all the features.
@@ -34688,6 +34688,7 @@ var Z_INDEX = {
|
|
34688
34688
|
stickyHeader: 3,
|
34689
34689
|
popover: 1000,
|
34690
34690
|
backdrop: 1040,
|
34691
|
+
drawer: 1050,
|
34691
34692
|
datepicker: 2000,
|
34692
34693
|
tooltip: 9999,
|
34693
34694
|
dropdown: 999999,
|
@@ -34720,40 +34721,41 @@ __webpack_require__.r(__webpack_exports__);
|
|
34720
34721
|
/* harmony export */ Breadcrumbs: () => (/* reexport safe */ _breadcrumbs__WEBPACK_IMPORTED_MODULE_9__.Breadcrumbs),
|
34721
34722
|
/* harmony export */ Button: () => (/* reexport safe */ _button__WEBPACK_IMPORTED_MODULE_8__.Button),
|
34722
34723
|
/* harmony export */ Chart: () => (/* reexport safe */ _chart__WEBPACK_IMPORTED_MODULE_0__["default"]),
|
34723
|
-
/* harmony export */ ClickableTag: () => (/* reexport safe */
|
34724
|
+
/* harmony export */ ClickableTag: () => (/* reexport safe */ _tag__WEBPACK_IMPORTED_MODULE_19__.ClickableTag),
|
34724
34725
|
/* harmony export */ Code: () => (/* reexport safe */ _code__WEBPACK_IMPORTED_MODULE_10__.Code),
|
34725
34726
|
/* harmony export */ CodeBlock: () => (/* reexport safe */ _code__WEBPACK_IMPORTED_MODULE_10__.CodeBlock),
|
34726
34727
|
/* harmony export */ CodeSnippet: () => (/* reexport safe */ _code__WEBPACK_IMPORTED_MODULE_10__.CodeSnippet),
|
34727
34728
|
/* harmony export */ ComboButton: () => (/* reexport safe */ _combo_button__WEBPACK_IMPORTED_MODULE_11__.ComboButton),
|
34728
|
-
/* harmony export */
|
34729
|
-
/* harmony export */
|
34730
|
-
/* harmony export */
|
34729
|
+
/* harmony export */ Drawer: () => (/* reexport safe */ _drawer__WEBPACK_IMPORTED_MODULE_12__.Drawer),
|
34730
|
+
/* harmony export */ Icon: () => (/* reexport safe */ _icon__WEBPACK_IMPORTED_MODULE_21__.Icon),
|
34731
|
+
/* harmony export */ IconButton: () => (/* reexport safe */ _icon_button__WEBPACK_IMPORTED_MODULE_22__.IconButton),
|
34732
|
+
/* harmony export */ InfoChip: () => (/* reexport safe */ _infochip__WEBPACK_IMPORTED_MODULE_23__.InfoChip),
|
34731
34733
|
/* harmony export */ Input: () => (/* reexport module object */ _input__WEBPACK_IMPORTED_MODULE_1__),
|
34732
34734
|
/* harmony export */ Layout: () => (/* reexport module object */ _layout__WEBPACK_IMPORTED_MODULE_2__),
|
34733
|
-
/* harmony export */ Link: () => (/* reexport safe */
|
34734
|
-
/* harmony export */ Menu: () => (/* reexport safe */
|
34735
|
+
/* harmony export */ Link: () => (/* reexport safe */ _link__WEBPACK_IMPORTED_MODULE_14__.Link),
|
34736
|
+
/* harmony export */ Menu: () => (/* reexport safe */ _menu__WEBPACK_IMPORTED_MODULE_15__.Menu),
|
34735
34737
|
/* harmony export */ Modal: () => (/* reexport module object */ _modal__WEBPACK_IMPORTED_MODULE_3__),
|
34736
|
-
/* harmony export */ Progress: () => (/* reexport safe */
|
34737
|
-
/* harmony export */ ProgressBar: () => (/* reexport safe */
|
34738
|
-
/* harmony export */ RemovableTag: () => (/* reexport safe */
|
34739
|
-
/* harmony export */ Snackbar: () => (/* reexport safe */
|
34738
|
+
/* harmony export */ Progress: () => (/* reexport safe */ _progress__WEBPACK_IMPORTED_MODULE_16__.Progress),
|
34739
|
+
/* harmony export */ ProgressBar: () => (/* reexport safe */ _progress__WEBPACK_IMPORTED_MODULE_16__.ProgressBar),
|
34740
|
+
/* harmony export */ RemovableTag: () => (/* reexport safe */ _tag__WEBPACK_IMPORTED_MODULE_19__.RemovableTag),
|
34741
|
+
/* harmony export */ Snackbar: () => (/* reexport safe */ _snackbar__WEBPACK_IMPORTED_MODULE_17__.Snackbar),
|
34740
34742
|
/* harmony export */ Tab: () => (/* reexport safe */ _tab__WEBPACK_IMPORTED_MODULE_5__["default"]),
|
34741
|
-
/* harmony export */ Table: () => (/* reexport safe */
|
34742
|
-
/* harmony export */ TagGroup: () => (/* reexport safe */
|
34743
|
-
/* harmony export */ ThemeProvider: () => (/* reexport safe */
|
34744
|
-
/* harmony export */ Toast: () => (/* reexport safe */
|
34745
|
-
/* harmony export */ Toaster: () => (/* reexport safe */
|
34746
|
-
/* harmony export */ Tooltip: () => (/* reexport safe */
|
34747
|
-
/* harmony export */ Tooltip2: () => (/* reexport safe */
|
34743
|
+
/* harmony export */ Table: () => (/* reexport safe */ _table__WEBPACK_IMPORTED_MODULE_18__.Table),
|
34744
|
+
/* harmony export */ TagGroup: () => (/* reexport safe */ _tag__WEBPACK_IMPORTED_MODULE_19__.TagGroup),
|
34745
|
+
/* harmony export */ ThemeProvider: () => (/* reexport safe */ _themes__WEBPACK_IMPORTED_MODULE_25__.ThemeProvider),
|
34746
|
+
/* harmony export */ Toast: () => (/* reexport safe */ _toast__WEBPACK_IMPORTED_MODULE_20__.Toast),
|
34747
|
+
/* harmony export */ Toaster: () => (/* reexport safe */ _toast__WEBPACK_IMPORTED_MODULE_20__.Toaster),
|
34748
|
+
/* harmony export */ Tooltip: () => (/* reexport safe */ _tooltip__WEBPACK_IMPORTED_MODULE_24__.Tooltip),
|
34749
|
+
/* harmony export */ Tooltip2: () => (/* reexport safe */ _tooltip__WEBPACK_IMPORTED_MODULE_24__.Tooltip2),
|
34748
34750
|
/* harmony export */ Typography: () => (/* reexport module object */ _typography__WEBPACK_IMPORTED_MODULE_6__),
|
34749
|
-
/* harmony export */ globalConfig: () => (/* reexport safe */
|
34750
|
-
/* harmony export */ setGlobalConfig: () => (/* reexport safe */
|
34751
|
-
/* harmony export */ theme: () => (/* reexport safe */
|
34751
|
+
/* harmony export */ globalConfig: () => (/* reexport safe */ _global_config__WEBPACK_IMPORTED_MODULE_26__.globalConfig),
|
34752
|
+
/* harmony export */ setGlobalConfig: () => (/* reexport safe */ _global_config__WEBPACK_IMPORTED_MODULE_26__.setGlobalConfig),
|
34753
|
+
/* harmony export */ theme: () => (/* reexport safe */ _themes__WEBPACK_IMPORTED_MODULE_25__.lightTheme),
|
34752
34754
|
/* harmony export */ translation: () => (/* reexport safe */ _translation__WEBPACK_IMPORTED_MODULE_4__["default"]),
|
34753
|
-
/* harmony export */ useTheme: () => (/* reexport safe */
|
34754
|
-
/* harmony export */ useToaster: () => (/* reexport safe */
|
34755
|
-
/* harmony export */ withPopover: () => (/* reexport safe */
|
34756
|
-
/* harmony export */ withTooltip: () => (/* reexport safe */
|
34755
|
+
/* harmony export */ useTheme: () => (/* reexport safe */ _themes__WEBPACK_IMPORTED_MODULE_25__.useTheme),
|
34756
|
+
/* harmony export */ useToaster: () => (/* reexport safe */ _toast__WEBPACK_IMPORTED_MODULE_20__.useToaster),
|
34757
|
+
/* harmony export */ withPopover: () => (/* reexport safe */ _hoc__WEBPACK_IMPORTED_MODULE_13__.withPopover),
|
34758
|
+
/* harmony export */ withTooltip: () => (/* reexport safe */ _tooltip__WEBPACK_IMPORTED_MODULE_24__.withTooltip)
|
34757
34759
|
/* harmony export */ });
|
34758
34760
|
/* harmony import */ var _chart__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./chart */ "./src/chart/index.js");
|
34759
34761
|
/* harmony import */ var _input__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./input */ "./src/input/index.js");
|
@@ -34767,20 +34769,21 @@ __webpack_require__.r(__webpack_exports__);
|
|
34767
34769
|
/* harmony import */ var _breadcrumbs__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./breadcrumbs */ "./src/breadcrumbs/index.js");
|
34768
34770
|
/* harmony import */ var _code__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./code */ "./src/code/index.js");
|
34769
34771
|
/* harmony import */ var _combo_button__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./combo_button */ "./src/combo_button/index.js");
|
34770
|
-
/* harmony import */ var
|
34771
|
-
/* harmony import */ var
|
34772
|
-
/* harmony import */ var
|
34773
|
-
/* harmony import */ var
|
34774
|
-
/* harmony import */ var
|
34775
|
-
/* harmony import */ var
|
34776
|
-
/* harmony import */ var
|
34777
|
-
/* harmony import */ var
|
34778
|
-
/* harmony import */ var
|
34779
|
-
/* harmony import */ var
|
34780
|
-
/* harmony import */ var
|
34781
|
-
/* harmony import */ var
|
34782
|
-
/* harmony import */ var
|
34783
|
-
/* harmony import */ var
|
34772
|
+
/* harmony import */ var _drawer__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./drawer */ "./src/drawer/index.js");
|
34773
|
+
/* harmony import */ var _hoc__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./hoc */ "./src/hoc/index.js");
|
34774
|
+
/* harmony import */ var _link__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./link */ "./src/link/index.js");
|
34775
|
+
/* harmony import */ var _menu__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./menu */ "./src/menu/index.js");
|
34776
|
+
/* harmony import */ var _progress__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./progress */ "./src/progress/index.js");
|
34777
|
+
/* harmony import */ var _snackbar__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./snackbar */ "./src/snackbar/index.js");
|
34778
|
+
/* harmony import */ var _table__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./table */ "./src/table/index.js");
|
34779
|
+
/* harmony import */ var _tag__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./tag */ "./src/tag/index.js");
|
34780
|
+
/* harmony import */ var _toast__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./toast */ "./src/toast/index.js");
|
34781
|
+
/* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./icon */ "./src/icon.js");
|
34782
|
+
/* harmony import */ var _icon_button__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./icon_button */ "./src/icon_button.js");
|
34783
|
+
/* harmony import */ var _infochip__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./infochip */ "./src/infochip.js");
|
34784
|
+
/* harmony import */ var _tooltip__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./tooltip */ "./src/tooltip/index.js");
|
34785
|
+
/* harmony import */ var _themes__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./themes */ "./src/themes/index.js");
|
34786
|
+
/* harmony import */ var _global_config__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./global_config */ "./src/global_config.js");
|
34784
34787
|
// LICENSE_CODE ZON
|
34785
34788
|
|
34786
34789
|
|
@@ -34811,6 +34814,238 @@ __webpack_require__.r(__webpack_exports__);
|
|
34811
34814
|
|
34812
34815
|
|
34813
34816
|
|
34817
|
+
|
34818
|
+
|
34819
|
+
|
34820
|
+
/***/ }),
|
34821
|
+
|
34822
|
+
/***/ "./src/drawer/drawer.js":
|
34823
|
+
/*!******************************!*\
|
34824
|
+
!*** ./src/drawer/drawer.js ***!
|
34825
|
+
\******************************/
|
34826
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
34827
|
+
|
34828
|
+
"use strict";
|
34829
|
+
__webpack_require__.r(__webpack_exports__);
|
34830
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
34831
|
+
/* harmony export */ Drawer: () => (/* binding */ Drawer)
|
34832
|
+
/* harmony export */ });
|
34833
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "prop-types");
|
34834
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
|
34835
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
34836
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
34837
|
+
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! styled-components */ "styled-components");
|
34838
|
+
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_2__);
|
34839
|
+
/* harmony import */ var rc_drawer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rc-drawer */ "./node_modules/rc-drawer/es/index.js");
|
34840
|
+
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../constants */ "./src/constants.js");
|
34841
|
+
/* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../typography */ "./src/typography/index.js");
|
34842
|
+
/* harmony import */ var _icon_button__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../icon_button */ "./src/icon_button.js");
|
34843
|
+
/* harmony import */ var _modal_modal2__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../modal/modal2 */ "./src/modal/modal2.js");
|
34844
|
+
// LICENSE_CODE ZON
|
34845
|
+
|
34846
|
+
|
34847
|
+
/*jslint react:true*/
|
34848
|
+
|
34849
|
+
|
34850
|
+
|
34851
|
+
|
34852
|
+
|
34853
|
+
|
34854
|
+
|
34855
|
+
|
34856
|
+
var Drawer = function Drawer(_ref) {
|
34857
|
+
var className = _ref.className,
|
34858
|
+
_ref$classNamePrefix = _ref.classNamePrefix,
|
34859
|
+
classNamePrefix = _ref$classNamePrefix === void 0 ? 'uikit_drawer' : _ref$classNamePrefix,
|
34860
|
+
open = _ref.open,
|
34861
|
+
_ref$placement = _ref.placement,
|
34862
|
+
placement = _ref$placement === void 0 ? 'right' : _ref$placement,
|
34863
|
+
_ref$width = _ref.width,
|
34864
|
+
width = _ref$width === void 0 ? '45vw' : _ref$width,
|
34865
|
+
height = _ref.height,
|
34866
|
+
duration = _ref.duration,
|
34867
|
+
title = _ref.title,
|
34868
|
+
_ref$closable = _ref.closable,
|
34869
|
+
closable = _ref$closable === void 0 ? true : _ref$closable,
|
34870
|
+
children = _ref.children,
|
34871
|
+
footer = _ref.footer,
|
34872
|
+
onClose = _ref.onClose,
|
34873
|
+
okLabel = _ref.okLabel,
|
34874
|
+
onOk = _ref.onOk,
|
34875
|
+
okProps = _ref.okProps,
|
34876
|
+
cancelLabel = _ref.cancelLabel,
|
34877
|
+
onCancel = _ref.onCancel,
|
34878
|
+
cancelProps = _ref.cancelProps,
|
34879
|
+
_ref$footerVariant = _ref.footerVariant,
|
34880
|
+
footerVariant = _ref$footerVariant === void 0 ? 'horizontal' : _ref$footerVariant,
|
34881
|
+
afterOpenChange = _ref.afterOpenChange;
|
34882
|
+
var theme = (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.useTheme)();
|
34883
|
+
var renderCancel = !footer && !!(onCancel && cancelLabel);
|
34884
|
+
var renderOk = !footer && !!(onOk && okLabel);
|
34885
|
+
var renderFooter = !!footer || renderOk || renderCancel;
|
34886
|
+
// Motion
|
34887
|
+
var maskMotion = {
|
34888
|
+
motionName: "".concat(classNamePrefix, "-mask-motion"),
|
34889
|
+
motionAppear: true,
|
34890
|
+
motionEnter: true,
|
34891
|
+
motionLeave: true,
|
34892
|
+
motionDeadline: 500
|
34893
|
+
};
|
34894
|
+
var motion = function motion(motionPlacement) {
|
34895
|
+
return {
|
34896
|
+
motionName: "".concat(classNamePrefix, "-panel-motion-").concat(motionPlacement),
|
34897
|
+
motionAppear: true,
|
34898
|
+
motionEnter: true,
|
34899
|
+
motionLeave: true,
|
34900
|
+
motionDeadline: 500
|
34901
|
+
};
|
34902
|
+
};
|
34903
|
+
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, {
|
34904
|
+
$prefixCls: classNamePrefix,
|
34905
|
+
$theme: theme
|
34906
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(rc_drawer__WEBPACK_IMPORTED_MODULE_3__["default"], {
|
34907
|
+
width: width,
|
34908
|
+
height: height,
|
34909
|
+
open: open,
|
34910
|
+
onClose: onClose,
|
34911
|
+
placement: placement,
|
34912
|
+
duration: duration,
|
34913
|
+
className: className,
|
34914
|
+
prefixCls: classNamePrefix,
|
34915
|
+
zIndex: _constants__WEBPACK_IMPORTED_MODULE_4__.Z_INDEX.drawer,
|
34916
|
+
maskClosable: closable,
|
34917
|
+
afterOpenChange: afterOpenChange,
|
34918
|
+
maskMotion: maskMotion,
|
34919
|
+
motion: motion
|
34920
|
+
}, closable && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon_button__WEBPACK_IMPORTED_MODULE_6__.IconButton, {
|
34921
|
+
className: "".concat(classNamePrefix, "-close"),
|
34922
|
+
size: "xs",
|
34923
|
+
icon: "Close",
|
34924
|
+
onClick: onClose
|
34925
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", {
|
34926
|
+
className: "".concat(classNamePrefix, "-header")
|
34927
|
+
}, !!title && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_5__.Header, {
|
34928
|
+
className: "".concat(classNamePrefix, "-title"),
|
34929
|
+
color: "text"
|
34930
|
+
}, title)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", {
|
34931
|
+
className: "".concat(classNamePrefix, "-body")
|
34932
|
+
}, children), renderFooter && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", {
|
34933
|
+
className: "".concat(classNamePrefix, "-footer")
|
34934
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_modal_modal2__WEBPACK_IMPORTED_MODULE_7__.DialogFooter, {
|
34935
|
+
onOk: onOk,
|
34936
|
+
onCancel: onCancel,
|
34937
|
+
okLabel: okLabel,
|
34938
|
+
cancelLabel: cancelLabel,
|
34939
|
+
okProps: okProps,
|
34940
|
+
cancelProps: cancelProps,
|
34941
|
+
variant: footerVariant,
|
34942
|
+
footer: footer
|
34943
|
+
}))));
|
34944
|
+
};
|
34945
|
+
Drawer.propTypes = {
|
34946
|
+
className: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
34947
|
+
classNamePrefix: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
34948
|
+
placement: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['right', 'left']),
|
34949
|
+
open: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
34950
|
+
title: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
|
34951
|
+
closable: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
34952
|
+
width: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)]),
|
34953
|
+
height: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)]),
|
34954
|
+
duration: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
34955
|
+
footer: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
|
34956
|
+
onClose: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
34957
|
+
okLabel: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
|
34958
|
+
onOk: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
34959
|
+
okProps: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
|
34960
|
+
cancelLabel: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
|
34961
|
+
onCancel: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
34962
|
+
cancelProps: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
|
34963
|
+
footerVariant: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['vertical', 'horizontal', 'horizontal_full']),
|
34964
|
+
afterOpenChange: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)
|
34965
|
+
};
|
34966
|
+
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) {
|
34967
|
+
var $prefixCls = _ref2.$prefixCls;
|
34968
|
+
return $prefixCls;
|
34969
|
+
}, function (_ref3) {
|
34970
|
+
var $theme = _ref3.$theme;
|
34971
|
+
return $theme.color.modal_shadow_bg;
|
34972
|
+
}, function (_ref4) {
|
34973
|
+
var $theme = _ref4.$theme;
|
34974
|
+
return $theme.color.modal2_shadow_bg;
|
34975
|
+
}, function (_ref5) {
|
34976
|
+
var $theme = _ref5.$theme;
|
34977
|
+
return $theme.color.bg_elevated;
|
34978
|
+
}, function (_ref6) {
|
34979
|
+
var $theme = _ref6.$theme;
|
34980
|
+
return $theme.color.border_secondary;
|
34981
|
+
}, function (_ref7) {
|
34982
|
+
var $theme = _ref7.$theme;
|
34983
|
+
return $theme.color.border_secondary;
|
34984
|
+
}, function (_ref8) {
|
34985
|
+
var $theme = _ref8.$theme;
|
34986
|
+
return $theme.spacing['05'];
|
34987
|
+
}, function (_ref9) {
|
34988
|
+
var $theme = _ref9.$theme;
|
34989
|
+
return $theme.spacing['08'];
|
34990
|
+
}, function (_ref10) {
|
34991
|
+
var $theme = _ref10.$theme;
|
34992
|
+
return $theme.spacing['05'];
|
34993
|
+
}, function (_ref11) {
|
34994
|
+
var $theme = _ref11.$theme;
|
34995
|
+
return $theme.spacing['05'];
|
34996
|
+
}, function (_ref12) {
|
34997
|
+
var $theme = _ref12.$theme;
|
34998
|
+
return $theme.spacing['06'];
|
34999
|
+
}, function (_ref13) {
|
35000
|
+
var $theme = _ref13.$theme;
|
35001
|
+
return $theme.spacing['07'];
|
35002
|
+
}, function (_ref14) {
|
35003
|
+
var $theme = _ref14.$theme;
|
35004
|
+
return $theme.spacing['06'];
|
35005
|
+
}, function (_ref15) {
|
35006
|
+
var $theme = _ref15.$theme;
|
35007
|
+
return $theme.spacing['07'];
|
35008
|
+
}, function (_ref16) {
|
35009
|
+
var $theme = _ref16.$theme;
|
35010
|
+
return $theme.color.text_secondary;
|
35011
|
+
}, function (_ref17) {
|
35012
|
+
var $theme = _ref17.$theme;
|
35013
|
+
return $theme.scrollbars.thin;
|
35014
|
+
}, function (_ref18) {
|
35015
|
+
var $theme = _ref18.$theme;
|
35016
|
+
return $theme.spacing['05'];
|
35017
|
+
}, function (_ref19) {
|
35018
|
+
var $theme = _ref19.$theme;
|
35019
|
+
return $theme.spacing['07'];
|
35020
|
+
}, function (_ref20) {
|
35021
|
+
var $theme = _ref20.$theme;
|
35022
|
+
return $theme.spacing['05'];
|
35023
|
+
}, function (_ref21) {
|
35024
|
+
var $theme = _ref21.$theme;
|
35025
|
+
return $theme.spacing['07'];
|
35026
|
+
}, function (_ref22) {
|
35027
|
+
var $theme = _ref22.$theme;
|
35028
|
+
return $theme.color.border_secondary;
|
35029
|
+
});
|
35030
|
+
|
35031
|
+
/***/ }),
|
35032
|
+
|
35033
|
+
/***/ "./src/drawer/index.js":
|
35034
|
+
/*!*****************************!*\
|
35035
|
+
!*** ./src/drawer/index.js ***!
|
35036
|
+
\*****************************/
|
35037
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
35038
|
+
|
35039
|
+
"use strict";
|
35040
|
+
__webpack_require__.r(__webpack_exports__);
|
35041
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
35042
|
+
/* harmony export */ Drawer: () => (/* reexport safe */ _drawer__WEBPACK_IMPORTED_MODULE_0__.Drawer)
|
35043
|
+
/* harmony export */ });
|
35044
|
+
/* harmony import */ var _drawer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./drawer */ "./src/drawer/drawer.js");
|
35045
|
+
// LICENSE_CODE ZON
|
35046
|
+
|
35047
|
+
|
35048
|
+
/*jslint react:true*/
|
34814
35049
|
|
34815
35050
|
|
34816
35051
|
/***/ }),
|
@@ -38347,17 +38582,22 @@ __webpack_require__.r(__webpack_exports__);
|
|
38347
38582
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
|
38348
38583
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
38349
38584
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
38350
|
-
/* harmony import */ var
|
38351
|
-
/* harmony import */ var
|
38352
|
-
/* harmony import */ var
|
38353
|
-
/* harmony import */ var
|
38354
|
-
/* harmony import */ var
|
38355
|
-
/* harmony import */ var
|
38585
|
+
/* harmony import */ var rc_util_lib_pickAttrs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rc-util/lib/pickAttrs */ "./node_modules/rc-util/lib/pickAttrs.js");
|
38586
|
+
/* harmony import */ var _layout__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../layout */ "./src/layout/index.js");
|
38587
|
+
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../constants */ "./src/constants.js");
|
38588
|
+
/* harmony import */ var _shared__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../shared */ "./src/input/shared.js");
|
38589
|
+
/* harmony import */ var _upload_base__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./upload_base */ "./src/input/file_uploader/upload_base.js");
|
38590
|
+
/* harmony import */ var _upload_item__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./upload_item */ "./src/input/file_uploader/upload_item.js");
|
38591
|
+
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./constants */ "./src/input/file_uploader/constants.js");
|
38356
38592
|
// LICENSE_CODE ZON
|
38357
38593
|
|
38358
38594
|
|
38359
38595
|
/*jslint react:true*/
|
38596
|
+
var _excluded = ["labelId", "label", "labelIcon", "labelTooltip", "labelVariant", "uploadDescription", "necessityIndicator", "className", "antiVirusScanText", "accept", "required", "invalid", "multi", "files", "fileInfoFormatter", "onFileUpload", "onFileDelete", "showDropzone"];
|
38360
38597
|
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); }
|
38598
|
+
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; }
|
38599
|
+
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; }
|
38600
|
+
|
38361
38601
|
|
38362
38602
|
|
38363
38603
|
|
@@ -38392,12 +38632,13 @@ var FileUploader = function FileUploader(_ref) {
|
|
38392
38632
|
onFileUpload = _ref.onFileUpload,
|
38393
38633
|
onFileDelete = _ref.onFileDelete,
|
38394
38634
|
_ref$showDropzone = _ref.showDropzone,
|
38395
|
-
showDropzone = _ref$showDropzone === void 0 ? true : _ref$showDropzone
|
38396
|
-
|
38635
|
+
showDropzone = _ref$showDropzone === void 0 ? true : _ref$showDropzone,
|
38636
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
38637
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_layout__WEBPACK_IMPORTED_MODULE_3__.Flex, _extends({
|
38397
38638
|
flex_direction: "column",
|
38398
38639
|
className: className,
|
38399
38640
|
gap: "03"
|
38400
|
-
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(
|
38641
|
+
}, (0,rc_util_lib_pickAttrs__WEBPACK_IMPORTED_MODULE_2__["default"])(rest)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_shared__WEBPACK_IMPORTED_MODULE_5__.InputLabel, {
|
38401
38642
|
id: labelId,
|
38402
38643
|
label: label,
|
38403
38644
|
labelIcon: labelIcon,
|
@@ -38406,10 +38647,10 @@ var FileUploader = function FileUploader(_ref) {
|
|
38406
38647
|
necessityIndicator: necessityIndicator,
|
38407
38648
|
classNamePrefix: className,
|
38408
38649
|
variant: labelVariant
|
38409
|
-
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(
|
38650
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_layout__WEBPACK_IMPORTED_MODULE_3__.Flex, {
|
38410
38651
|
flex_direction: "column",
|
38411
38652
|
gap: "03"
|
38412
|
-
}, showDropzone && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(
|
38653
|
+
}, showDropzone && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_upload_base__WEBPACK_IMPORTED_MODULE_6__.UploadBase, {
|
38413
38654
|
uploadDescription: uploadDescription,
|
38414
38655
|
onFileUpload: onFileUpload,
|
38415
38656
|
multi: multi,
|
@@ -38417,7 +38658,7 @@ var FileUploader = function FileUploader(_ref) {
|
|
38417
38658
|
invalid: invalid,
|
38418
38659
|
required: required
|
38419
38660
|
}), files.map(function (file) {
|
38420
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(
|
38661
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_upload_item__WEBPACK_IMPORTED_MODULE_7__.UploadItem, _extends({
|
38421
38662
|
key: file.id,
|
38422
38663
|
fileInfoFormatter: fileInfoFormatter,
|
38423
38664
|
antiVirusScanText: antiVirusScanText,
|
@@ -38437,14 +38678,14 @@ FileUploader.propTypes = {
|
|
38437
38678
|
labelIcon: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
38438
38679
|
labelTooltip: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
|
38439
38680
|
labelVariant: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['sm', 'lg']),
|
38440
|
-
necessityIndicator:
|
38681
|
+
necessityIndicator: _constants__WEBPACK_IMPORTED_MODULE_4__.PT_NECESSITY_INDICATOR,
|
38441
38682
|
files: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
38442
38683
|
id: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string).isRequired,
|
38443
38684
|
type: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
38444
38685
|
createTime: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
38445
38686
|
size: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
38446
38687
|
name: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
38447
|
-
status: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(Object.values(
|
38688
|
+
status: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(Object.values(_constants__WEBPACK_IMPORTED_MODULE_8__.FILE_STATUS)),
|
38448
38689
|
error: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
38449
38690
|
progress: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
38450
38691
|
icon: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().any),
|
@@ -42590,13 +42831,12 @@ __webpack_require__.r(__webpack_exports__);
|
|
42590
42831
|
/* harmony import */ var _global_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../global_config */ "./src/global_config.js");
|
42591
42832
|
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
|
42592
42833
|
/* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../icon */ "./src/icon.js");
|
42593
|
-
/* harmony import */ var
|
42594
|
-
/* harmony import */ var _modal2__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./modal2 */ "./src/modal/modal2.js");
|
42834
|
+
/* harmony import */ var _modal2__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./modal2 */ "./src/modal/modal2.js");
|
42595
42835
|
// LICENSE_CODE ZON
|
42596
42836
|
|
42597
42837
|
|
42598
42838
|
/*jslint react:true*/
|
42599
|
-
var _excluded = ["className", "classNamePrefix", "closeOnOutsideClick", "zIndex", "show", "afterClose", "closable", "onClose", "onConfirm", "okLabel", "cancelLabel", "okProps", "cancelProps", "size", "content", "
|
42839
|
+
var _excluded = ["className", "classNamePrefix", "closeOnOutsideClick", "zIndex", "show", "afterClose", "closable", "onClose", "onConfirm", "okLabel", "cancelLabel", "okProps", "cancelProps", "size", "content", "title"];
|
42600
42840
|
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
42841
|
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
42842
|
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; }
|
@@ -42619,7 +42859,6 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
42619
42859
|
|
42620
42860
|
|
42621
42861
|
|
42622
|
-
|
42623
42862
|
var destroyFns = [];
|
42624
42863
|
var withWarn = function withWarn(props) {
|
42625
42864
|
return _objectSpread(_objectSpread({}, props), {}, {
|
@@ -42727,14 +42966,10 @@ var ConfirmModal = function ConfirmModal(_ref) {
|
|
42727
42966
|
_ref$size = _ref.size,
|
42728
42967
|
size = _ref$size === void 0 ? 'sm' : _ref$size,
|
42729
42968
|
content = _ref.content,
|
42730
|
-
|
42969
|
+
title = _ref.title,
|
42731
42970
|
rest = _objectWithoutProperties(_ref, _excluded);
|
42732
|
-
var icon = (0,_util__WEBPACK_IMPORTED_MODULE_5__.firstDefined)(rest.icon, getIconByType(type));
|
42733
|
-
|
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, {
|
42971
|
+
var icon = (0,_util__WEBPACK_IMPORTED_MODULE_5__.firstDefined)(rest.icon, getIconByType(rest.type));
|
42972
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_modal2__WEBPACK_IMPORTED_MODULE_7__.Modal2, {
|
42738
42973
|
className: className,
|
42739
42974
|
classNamePrefix: classNamePrefix,
|
42740
42975
|
onClose: function onClose() {
|
@@ -42745,6 +42980,7 @@ var ConfirmModal = function ConfirmModal(_ref) {
|
|
42745
42980
|
},
|
42746
42981
|
show: show,
|
42747
42982
|
title: title,
|
42983
|
+
icon: icon,
|
42748
42984
|
closeOnOutsideClick: closeOnOutsideClick,
|
42749
42985
|
size: size,
|
42750
42986
|
zIndex: zIndex,
|
@@ -42959,8 +43195,8 @@ var Popup = (0,_with_backdrop__WEBPACK_IMPORTED_MODULE_4__.withBackdrop)(General
|
|
42959
43195
|
"use strict";
|
42960
43196
|
__webpack_require__.r(__webpack_exports__);
|
42961
43197
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
42962
|
-
/* harmony export */
|
42963
|
-
/* harmony export */
|
43198
|
+
/* harmony export */ DialogFooter: () => (/* binding */ DialogFooter),
|
43199
|
+
/* harmony export */ Modal2: () => (/* binding */ Modal2)
|
42964
43200
|
/* harmony export */ });
|
42965
43201
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "prop-types");
|
42966
43202
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
|
@@ -42981,7 +43217,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
42981
43217
|
|
42982
43218
|
|
42983
43219
|
/*jslint react:true*/
|
42984
|
-
var _excluded = ["className", "classNamePrefix", "size", "footerVariant", "show", "closable", "closeOnOutsideClick", "title", "subtitle", "footer", "onClose", "okLabel", "onOk", "okProps", "cancelLabel", "onCancel", "cancelProps", "zIndex", "children", "minHeight", "afterClose"];
|
43220
|
+
var _excluded = ["className", "classNamePrefix", "size", "footerVariant", "show", "closable", "closeOnOutsideClick", "title", "subtitle", "footer", "onClose", "okLabel", "onOk", "okProps", "cancelLabel", "onCancel", "cancelProps", "icon", "zIndex", "children", "minHeight", "afterClose"];
|
42985
43221
|
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); }
|
42986
43222
|
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; }
|
42987
43223
|
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; }
|
@@ -43019,6 +43255,7 @@ var Modal2 = function Modal2(_ref) {
|
|
43019
43255
|
cancelLabel = _ref.cancelLabel,
|
43020
43256
|
onCancel = _ref.onCancel,
|
43021
43257
|
cancelProps = _ref.cancelProps,
|
43258
|
+
icon = _ref.icon,
|
43022
43259
|
_ref$zIndex = _ref.zIndex,
|
43023
43260
|
zIndex = _ref$zIndex === void 0 ? _constants__WEBPACK_IMPORTED_MODULE_7__.Z_INDEX.popover : _ref$zIndex,
|
43024
43261
|
children = _ref.children,
|
@@ -43031,13 +43268,7 @@ var Modal2 = function Modal2(_ref) {
|
|
43031
43268
|
var _useWindowSize = (0,_hooks__WEBPACK_IMPORTED_MODULE_8__.useWindowSize)(),
|
43032
43269
|
windowHeight = _useWindowSize.height;
|
43033
43270
|
var maxHeight = "".concat(Math.max(windowHeight * 0.8, minHeight), "px");
|
43034
|
-
var
|
43035
|
-
color: "text"
|
43036
|
-
}, title), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_4__.Label, {
|
43037
|
-
padding_right: "04",
|
43038
|
-
color: "text_tertiary"
|
43039
|
-
}, subtitle));
|
43040
|
-
var dialogFooter = footer !== null ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(ModalFooter, {
|
43271
|
+
var dialogFooter = footer !== null ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(DialogFooter, {
|
43041
43272
|
onOk: onOk,
|
43042
43273
|
onCancel: onCancel,
|
43043
43274
|
okLabel: okLabel,
|
@@ -43060,7 +43291,12 @@ var Modal2 = function Modal2(_ref) {
|
|
43060
43291
|
closeIcon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(CloseIcon, null),
|
43061
43292
|
size: size,
|
43062
43293
|
maskClosable: closeOnOutsideClick && onClose,
|
43063
|
-
title:
|
43294
|
+
title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(DialogHeader, {
|
43295
|
+
icon: icon,
|
43296
|
+
title: title,
|
43297
|
+
subtitle: subtitle,
|
43298
|
+
prefixCls: classNamePrefix
|
43299
|
+
}),
|
43064
43300
|
footer: dialogFooter,
|
43065
43301
|
zIndex: zIndex,
|
43066
43302
|
width: width,
|
@@ -43095,9 +43331,10 @@ Modal2.propTypes = {
|
|
43095
43331
|
cancelProps: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
|
43096
43332
|
zIndex: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
43097
43333
|
minHeight: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
43098
|
-
afterClose: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)
|
43334
|
+
afterClose: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
43335
|
+
icon: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node)
|
43099
43336
|
};
|
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:
|
43337
|
+
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;margin-top:8px;inset-inline-end:16px;z-index:1;padding:4px;text-decoration:none;background:transparent;border-radius:4px;width:24px;height:24px;border:0;outline:0;cursor:pointer;svg{color:", ";}&:hover{background-color:", ";svg{color:", ";}}}&-header{padding-top:", ";padding-right:", ";padding-bottom:", ";padding-left:", ";}&-title{display:flex;flex-direction:column;gap:", ";}&-title-wrap{display:flex;flex-direction:row;align-items:center;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) {
|
43101
43338
|
var $prefixCls = _ref2.$prefixCls;
|
43102
43339
|
return $prefixCls;
|
43103
43340
|
}, function (_ref3) {
|
@@ -43122,72 +43359,89 @@ var Modal2Style = (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.createGlobal
|
|
43122
43359
|
var $theme = _ref9.$theme;
|
43123
43360
|
return $theme.shadow.large;
|
43124
43361
|
}, function (_ref10) {
|
43125
|
-
var
|
43126
|
-
return
|
43362
|
+
var color = _ref10.theme.color;
|
43363
|
+
return color.icon_button_icon_default;
|
43127
43364
|
}, function (_ref11) {
|
43128
|
-
var
|
43129
|
-
return
|
43365
|
+
var color = _ref11.theme.color;
|
43366
|
+
return color.icon_button_bg_hover;
|
43130
43367
|
}, function (_ref12) {
|
43131
|
-
var
|
43132
|
-
return
|
43368
|
+
var color = _ref12.theme.color;
|
43369
|
+
return color.icon_button_icon_hover;
|
43133
43370
|
}, function (_ref13) {
|
43134
43371
|
var $theme = _ref13.$theme;
|
43135
|
-
return $theme.spacing['
|
43372
|
+
return $theme.spacing['03'];
|
43136
43373
|
}, function (_ref14) {
|
43137
43374
|
var $theme = _ref14.$theme;
|
43138
|
-
return $theme.spacing['
|
43375
|
+
return $theme.spacing['08'];
|
43139
43376
|
}, function (_ref15) {
|
43140
43377
|
var $theme = _ref15.$theme;
|
43141
|
-
return $theme.spacing['
|
43378
|
+
return $theme.spacing['03'];
|
43142
43379
|
}, function (_ref16) {
|
43143
43380
|
var $theme = _ref16.$theme;
|
43144
|
-
return $theme.spacing['
|
43381
|
+
return $theme.spacing['07'];
|
43145
43382
|
}, function (_ref17) {
|
43146
43383
|
var $theme = _ref17.$theme;
|
43147
43384
|
return $theme.spacing['03'];
|
43148
43385
|
}, function (_ref18) {
|
43149
43386
|
var $theme = _ref18.$theme;
|
43150
|
-
return $theme.spacing['
|
43387
|
+
return $theme.spacing['03'];
|
43151
43388
|
}, function (_ref19) {
|
43152
43389
|
var $theme = _ref19.$theme;
|
43153
|
-
return $theme.spacing['
|
43390
|
+
return $theme.spacing['06'];
|
43154
43391
|
}, function (_ref20) {
|
43155
43392
|
var $theme = _ref20.$theme;
|
43156
|
-
return $theme.spacing['
|
43393
|
+
return $theme.spacing['07'];
|
43157
43394
|
}, function (_ref21) {
|
43158
43395
|
var $theme = _ref21.$theme;
|
43159
|
-
return $theme.spacing['
|
43396
|
+
return $theme.spacing['08'];
|
43160
43397
|
}, function (_ref22) {
|
43161
43398
|
var $theme = _ref22.$theme;
|
43162
|
-
return $theme.
|
43399
|
+
return $theme.spacing['07'];
|
43163
43400
|
}, function (_ref23) {
|
43164
43401
|
var $theme = _ref23.$theme;
|
43165
|
-
return $theme.
|
43402
|
+
return $theme.color.text_secondary;
|
43166
43403
|
}, function (_ref24) {
|
43167
43404
|
var $theme = _ref24.$theme;
|
43168
|
-
return $theme.
|
43405
|
+
return $theme.scrollbars.thin;
|
43169
43406
|
}, function (_ref25) {
|
43170
43407
|
var $theme = _ref25.$theme;
|
43171
|
-
return $theme.spacing['
|
43408
|
+
return $theme.spacing['04'];
|
43172
43409
|
}, function (_ref26) {
|
43173
43410
|
var $theme = _ref26.$theme;
|
43174
|
-
return $theme.spacing['
|
43411
|
+
return $theme.spacing['07'];
|
43175
43412
|
}, function (_ref27) {
|
43176
43413
|
var $theme = _ref27.$theme;
|
43177
|
-
return $theme.spacing['
|
43414
|
+
return $theme.spacing['04'];
|
43178
43415
|
}, function (_ref28) {
|
43179
43416
|
var $theme = _ref28.$theme;
|
43417
|
+
return $theme.spacing['07'];
|
43418
|
+
}, function (_ref29) {
|
43419
|
+
var $theme = _ref29.$theme;
|
43180
43420
|
return $theme.color.border_secondary;
|
43181
43421
|
});
|
43182
|
-
var
|
43183
|
-
var
|
43184
|
-
|
43185
|
-
|
43186
|
-
|
43187
|
-
|
43188
|
-
|
43189
|
-
|
43190
|
-
|
43422
|
+
var DialogHeader = function DialogHeader(_ref30) {
|
43423
|
+
var icon = _ref30.icon,
|
43424
|
+
title = _ref30.title,
|
43425
|
+
subtitle = _ref30.subtitle,
|
43426
|
+
prefixCls = _ref30.prefixCls;
|
43427
|
+
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", {
|
43428
|
+
className: "".concat(prefixCls, "-title-wrap")
|
43429
|
+
}, icon, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_4__.Header, {
|
43430
|
+
color: "text"
|
43431
|
+
}, title)), !!subtitle && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_4__.Label, {
|
43432
|
+
padding_right: "04",
|
43433
|
+
color: "text_tertiary"
|
43434
|
+
}, subtitle));
|
43435
|
+
};
|
43436
|
+
var DialogFooter = function DialogFooter(_ref31) {
|
43437
|
+
var onOk = _ref31.onOk,
|
43438
|
+
onCancel = _ref31.onCancel,
|
43439
|
+
okLabel = _ref31.okLabel,
|
43440
|
+
cancelLabel = _ref31.cancelLabel,
|
43441
|
+
okProps = _ref31.okProps,
|
43442
|
+
cancelProps = _ref31.cancelProps,
|
43443
|
+
variant = _ref31.variant,
|
43444
|
+
footer = _ref31.footer;
|
43191
43445
|
var renderCancel = !footer && !!(onCancel && cancelLabel);
|
43192
43446
|
var renderOk = !footer && !!(onOk && okLabel);
|
43193
43447
|
var renderFooter = !!footer || renderOk || renderCancel;
|
@@ -43242,26 +43496,13 @@ var footerLayout = {
|
|
43242
43496
|
horizontal_full: FooterFullHorizontal,
|
43243
43497
|
vertical: FooterVertical
|
43244
43498
|
};
|
43245
|
-
var CloseIcon =
|
43246
|
-
|
43247
|
-
|
43248
|
-
|
43249
|
-
|
43250
|
-
|
43251
|
-
|
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
|
-
});
|
43499
|
+
var CloseIcon = function CloseIcon() {
|
43500
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon_js__WEBPACK_IMPORTED_MODULE_5__.Icon, {
|
43501
|
+
name: "Close",
|
43502
|
+
size: "xs",
|
43503
|
+
"data-testid": "modal_header_close_button"
|
43504
|
+
});
|
43505
|
+
};
|
43265
43506
|
|
43266
43507
|
/***/ }),
|
43267
43508
|
|
@@ -46797,7 +47038,8 @@ var getRowMenuCellProps = function getRowMenuCellProps(props, _ref3) {
|
|
46797
47038
|
position: 'sticky',
|
46798
47039
|
right: 0,
|
46799
47040
|
overflow: 'visible'
|
46800
|
-
}
|
47041
|
+
},
|
47042
|
+
isMenuCell: true
|
46801
47043
|
}];
|
46802
47044
|
}
|
46803
47045
|
return props;
|
@@ -47617,16 +47859,16 @@ var TableCell = function TableCell(props) {
|
|
47617
47859
|
var doneEditing = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function () {
|
47618
47860
|
columnDoneEditing(columnId, rowId);
|
47619
47861
|
}, [columnDoneEditing, columnId, rowId]);
|
47862
|
+
var cellProps = cell.getCellProps([getColumnProps(column), getCellProps(cell)]);
|
47620
47863
|
var onClick = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (evt) {
|
47621
|
-
if (isEditable) {
|
47864
|
+
if (isEditable || cellProps.isMenuCell) {
|
47622
47865
|
evt.stopPropagation();
|
47623
47866
|
onStartEdit === null || onStartEdit === void 0 || onStartEdit(cell, {
|
47624
47867
|
startEditing: startEditing,
|
47625
47868
|
doneEditing: doneEditing
|
47626
47869
|
});
|
47627
47870
|
}
|
47628
|
-
}, [isEditable, onStartEdit, startEditing, doneEditing]);
|
47629
|
-
var cellProps = cell.getCellProps([getColumnProps(column), getCellProps(cell)]);
|
47871
|
+
}, [isEditable, onStartEdit, startEditing, doneEditing, cellProps.isMenuCell]);
|
47630
47872
|
cellProps.className = (0,_util__WEBPACK_IMPORTED_MODULE_2__.classNames)(null, null, (0,_util__WEBPACK_IMPORTED_MODULE_2__.classNames)(column.className, {
|
47631
47873
|
cell: true
|
47632
47874
|
}), (0,_util__WEBPACK_IMPORTED_MODULE_2__.classNames)(className, {
|
@@ -48584,7 +48826,12 @@ var componentLight = {
|
|
48584
48826
|
modal2_shadow_bg: '#11171FB3',
|
48585
48827
|
tab_contained_bg: color.gray_3,
|
48586
48828
|
table_cell_hover: color.gray_3,
|
48587
|
-
table_nesting: color.blue_6
|
48829
|
+
table_nesting: color.blue_6,
|
48830
|
+
tooltip_bg_black: color.gray_12,
|
48831
|
+
tooltip_bg_white: color.white,
|
48832
|
+
tooltip_text_black: color.white,
|
48833
|
+
tooltip_text_white: semanticLight.text_secondary,
|
48834
|
+
tooltip_border_white: semanticLight.border
|
48588
48835
|
};
|
48589
48836
|
var lightTheme = _objectSpread(_objectSpread({}, baseTheme), {}, {
|
48590
48837
|
color: _objectSpread(_objectSpread(_objectSpread({}, color), semanticLight), componentLight)
|
@@ -48717,7 +48964,12 @@ var componentDark = _objectSpread(_objectSpread({}, componentLight), {}, {
|
|
48717
48964
|
modal2_shadow_bg: '#2F3132B3',
|
48718
48965
|
tab_contained_bg: semanticDark.bg_elevated,
|
48719
48966
|
table_cell_hover: color.gray_11_75,
|
48720
|
-
table_nesting: color.blue_8
|
48967
|
+
table_nesting: color.blue_8,
|
48968
|
+
tooltip_bg_black: color.gray_11_50,
|
48969
|
+
tooltip_bg_white: color.white,
|
48970
|
+
tooltip_text_black: color.white,
|
48971
|
+
tooltip_text_white: color.gray_11_50,
|
48972
|
+
tooltip_border_white: semanticDark.border
|
48721
48973
|
});
|
48722
48974
|
var darkTheme = _objectSpread(_objectSpread({}, baseTheme), {}, {
|
48723
48975
|
color: _objectSpread(_objectSpread(_objectSpread({}, color), semanticDark), componentDark)
|
@@ -49729,7 +49981,7 @@ _Tooltip.propTypes = {
|
|
49729
49981
|
};
|
49730
49982
|
_Tooltip.showDelay = 0.1;
|
49731
49983
|
_Tooltip.hideDelay = 0.1;
|
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
|
49984
|
+
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::before{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::before,&-placement-topLeft &-arrow::before,&-placement-topRight &-arrow::before{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::before,&-placement-rightTop &-arrow::before,&-placement-rightBottom &-arrow::before{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::before,&-placement-leftTop &-arrow::before,&-placement-leftBottom &-arrow::before{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::before,&-placement-bottomLeft &-arrow::before,&-placement-bottomRight &-arrow::before{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::before,&-placement-topLeft &-arrow::before,&-placement-topRight &-arrow::before{content:'';border-top-color:", ";}&-placement-right &-arrow,&-placement-rightTop &-arrow,&-placement-rightBottom &-arrow{border-right-color:", ";}&-placement-right &-arrow::before,&-placement-rightTop &-arrow::before,&-placement-rightBottom &-arrow::before{content:'';border-right-color:", ";}&-placement-left &-arrow,&-placement-leftTop &-arrow,&-placement-leftBottom &-arrow{border-left-color:", ";}&-placement-left &-arrow::before,&-placement-leftTop &-arrow::before,&-placement-leftBottom &-arrow::before{content:'';border-left-color:", ";}&-placement-bottom &-arrow,&-placement-bottomLeft &-arrow,&-placement-bottomRight &-arrow{border-bottom-color:", ";}&-placement-bottom &-arrow::before,&-placement-bottomLeft &-arrow::before,&-placement-bottomRight &-arrow::before{content:'';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::before,&-placement-topLeft &-arrow::before,&-placement-topRight &-arrow::before{border-top-color:", ";}&-placement-right &-arrow,&-placement-rightTop &-arrow,&-placement-rightBottom &-arrow{border-right-color:", ";}&-placement-right &-arrow::before,&-placement-rightTop &-arrow::before,&-placement-rightBottom &-arrow::before{border-right-color:", ";}&-placement-left &-arrow,&-placement-leftTop &-arrow,&-placement-leftBottom &-arrow{border-left-color:", ";}&-placement-left &-arrow::before,&-placement-leftTop &-arrow::before,&-placement-leftBottom &-arrow::before{border-left-color:", ";}&-placement-bottom &-arrow,&-placement-bottomLeft &-arrow,&-placement-bottomRight &-arrow{border-bottom-color:", ";}&-placement-bottom &-arrow::before,&-placement-bottomLeft &-arrow::before,&-placement-bottomRight &-arrow::before{border-bottom-color:", ";}}}"], function (_ref2) {
|
49733
49985
|
var $prefixCls = _ref2.$prefixCls;
|
49734
49986
|
return $prefixCls;
|
49735
49987
|
}, function (_ref3) {
|
@@ -49743,7 +49995,7 @@ var Tooltip2Style = (0,styled_components__WEBPACK_IMPORTED_MODULE_3__.createGlob
|
|
49743
49995
|
return $theme.font_weight.regular;
|
49744
49996
|
}, function (_ref6) {
|
49745
49997
|
var $theme = _ref6.$theme;
|
49746
|
-
return $theme.line_height.
|
49998
|
+
return $theme.line_height.snug;
|
49747
49999
|
}, function (_ref7) {
|
49748
50000
|
var $theme = _ref7.$theme;
|
49749
50001
|
return $theme.spacing['02'];
|
@@ -49755,70 +50007,70 @@ var Tooltip2Style = (0,styled_components__WEBPACK_IMPORTED_MODULE_3__.createGlob
|
|
49755
50007
|
return $theme.font_size.sm;
|
49756
50008
|
}, function (_ref10) {
|
49757
50009
|
var $theme = _ref10.$theme;
|
49758
|
-
return $theme.color.
|
50010
|
+
return $theme.color.tooltip_text_white;
|
49759
50011
|
}, function (_ref11) {
|
49760
50012
|
var $theme = _ref11.$theme;
|
49761
|
-
return $theme.color.
|
50013
|
+
return $theme.color.tooltip_bg_white;
|
49762
50014
|
}, function (_ref12) {
|
49763
50015
|
var $theme = _ref12.$theme;
|
49764
|
-
return $theme.color.
|
50016
|
+
return $theme.color.tooltip_border_white;
|
49765
50017
|
}, function (_ref13) {
|
49766
50018
|
var $theme = _ref13.$theme;
|
49767
|
-
return $theme.color.
|
50019
|
+
return $theme.color.tooltip_border_white;
|
49768
50020
|
}, function (_ref14) {
|
49769
50021
|
var $theme = _ref14.$theme;
|
49770
|
-
return $theme.color.
|
50022
|
+
return $theme.color.tooltip_bg_white;
|
49771
50023
|
}, function (_ref15) {
|
49772
50024
|
var $theme = _ref15.$theme;
|
49773
|
-
return $theme.color.
|
50025
|
+
return $theme.color.tooltip_border_white;
|
49774
50026
|
}, function (_ref16) {
|
49775
50027
|
var $theme = _ref16.$theme;
|
49776
|
-
return $theme.color.
|
50028
|
+
return $theme.color.tooltip_bg_white;
|
49777
50029
|
}, function (_ref17) {
|
49778
50030
|
var $theme = _ref17.$theme;
|
49779
|
-
return $theme.color.
|
50031
|
+
return $theme.color.tooltip_border_white;
|
49780
50032
|
}, function (_ref18) {
|
49781
50033
|
var $theme = _ref18.$theme;
|
49782
|
-
return $theme.color.
|
50034
|
+
return $theme.color.tooltip_bg_white;
|
49783
50035
|
}, function (_ref19) {
|
49784
50036
|
var $theme = _ref19.$theme;
|
49785
|
-
return $theme.color.
|
50037
|
+
return $theme.color.tooltip_border_white;
|
49786
50038
|
}, function (_ref20) {
|
49787
50039
|
var $theme = _ref20.$theme;
|
49788
|
-
return $theme.color.
|
50040
|
+
return $theme.color.tooltip_bg_white;
|
49789
50041
|
}, function (_ref21) {
|
49790
50042
|
var $theme = _ref21.$theme;
|
49791
|
-
return $theme.color.
|
50043
|
+
return $theme.color.tooltip_text_black;
|
49792
50044
|
}, function (_ref22) {
|
49793
50045
|
var $theme = _ref22.$theme;
|
49794
|
-
return $theme.color.
|
50046
|
+
return $theme.color.tooltip_bg_black;
|
49795
50047
|
}, function (_ref23) {
|
49796
50048
|
var $theme = _ref23.$theme;
|
49797
|
-
return $theme.color.
|
50049
|
+
return $theme.color.tooltip_bg_black;
|
49798
50050
|
}, function (_ref24) {
|
49799
50051
|
var $theme = _ref24.$theme;
|
49800
|
-
return $theme.color.
|
50052
|
+
return $theme.color.tooltip_bg_black;
|
49801
50053
|
}, function (_ref25) {
|
49802
50054
|
var $theme = _ref25.$theme;
|
49803
|
-
return $theme.color.
|
50055
|
+
return $theme.color.tooltip_bg_black;
|
49804
50056
|
}, function (_ref26) {
|
49805
50057
|
var $theme = _ref26.$theme;
|
49806
|
-
return $theme.color.
|
50058
|
+
return $theme.color.tooltip_bg_black;
|
49807
50059
|
}, function (_ref27) {
|
49808
50060
|
var $theme = _ref27.$theme;
|
49809
|
-
return $theme.color.
|
50061
|
+
return $theme.color.tooltip_bg_black;
|
49810
50062
|
}, function (_ref28) {
|
49811
50063
|
var $theme = _ref28.$theme;
|
49812
|
-
return $theme.color.
|
50064
|
+
return $theme.color.tooltip_bg_black;
|
49813
50065
|
}, function (_ref29) {
|
49814
50066
|
var $theme = _ref29.$theme;
|
49815
|
-
return $theme.color.
|
50067
|
+
return $theme.color.tooltip_bg_black;
|
49816
50068
|
}, function (_ref30) {
|
49817
50069
|
var $theme = _ref30.$theme;
|
49818
|
-
return $theme.color.
|
50070
|
+
return $theme.color.tooltip_bg_black;
|
49819
50071
|
}, function (_ref31) {
|
49820
50072
|
var $theme = _ref31.$theme;
|
49821
|
-
return $theme.color.
|
50073
|
+
return $theme.color.tooltip_bg_black;
|
49822
50074
|
});
|
49823
50075
|
|
49824
50076
|
/***/ }),
|
@@ -68681,6 +68933,573 @@ function offset(el) {
|
|
68681
68933
|
|
68682
68934
|
/***/ }),
|
68683
68935
|
|
68936
|
+
/***/ "./node_modules/rc-drawer/es/Drawer.js":
|
68937
|
+
/*!*********************************************!*\
|
68938
|
+
!*** ./node_modules/rc-drawer/es/Drawer.js ***!
|
68939
|
+
\*********************************************/
|
68940
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
68941
|
+
|
68942
|
+
"use strict";
|
68943
|
+
__webpack_require__.r(__webpack_exports__);
|
68944
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
68945
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
68946
|
+
/* harmony export */ });
|
68947
|
+
/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js");
|
68948
|
+
/* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/slicedToArray */ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js");
|
68949
|
+
/* harmony import */ var _rc_component_portal__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @rc-component/portal */ "./node_modules/@rc-component/portal/es/index.js");
|
68950
|
+
/* harmony import */ var rc_util_es_hooks_useLayoutEffect__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rc-util/es/hooks/useLayoutEffect */ "./node_modules/rc-util/es/hooks/useLayoutEffect.js");
|
68951
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "react");
|
68952
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
|
68953
|
+
/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./context */ "./node_modules/rc-drawer/es/context.js");
|
68954
|
+
/* harmony import */ var _DrawerPopup__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./DrawerPopup */ "./node_modules/rc-drawer/es/DrawerPopup.js");
|
68955
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./util */ "./node_modules/rc-drawer/es/util.js");
|
68956
|
+
|
68957
|
+
|
68958
|
+
|
68959
|
+
|
68960
|
+
|
68961
|
+
|
68962
|
+
|
68963
|
+
|
68964
|
+
var Drawer = function Drawer(props) {
|
68965
|
+
var _props$open = props.open,
|
68966
|
+
open = _props$open === void 0 ? false : _props$open,
|
68967
|
+
_props$prefixCls = props.prefixCls,
|
68968
|
+
prefixCls = _props$prefixCls === void 0 ? 'rc-drawer' : _props$prefixCls,
|
68969
|
+
_props$placement = props.placement,
|
68970
|
+
placement = _props$placement === void 0 ? 'right' : _props$placement,
|
68971
|
+
_props$autoFocus = props.autoFocus,
|
68972
|
+
autoFocus = _props$autoFocus === void 0 ? true : _props$autoFocus,
|
68973
|
+
_props$keyboard = props.keyboard,
|
68974
|
+
keyboard = _props$keyboard === void 0 ? true : _props$keyboard,
|
68975
|
+
_props$width = props.width,
|
68976
|
+
width = _props$width === void 0 ? 378 : _props$width,
|
68977
|
+
_props$mask = props.mask,
|
68978
|
+
mask = _props$mask === void 0 ? true : _props$mask,
|
68979
|
+
_props$maskClosable = props.maskClosable,
|
68980
|
+
maskClosable = _props$maskClosable === void 0 ? true : _props$maskClosable,
|
68981
|
+
getContainer = props.getContainer,
|
68982
|
+
forceRender = props.forceRender,
|
68983
|
+
afterOpenChange = props.afterOpenChange,
|
68984
|
+
destroyOnClose = props.destroyOnClose,
|
68985
|
+
onMouseEnter = props.onMouseEnter,
|
68986
|
+
onMouseOver = props.onMouseOver,
|
68987
|
+
onMouseLeave = props.onMouseLeave,
|
68988
|
+
onClick = props.onClick,
|
68989
|
+
onKeyDown = props.onKeyDown,
|
68990
|
+
onKeyUp = props.onKeyUp,
|
68991
|
+
panelRef = props.panelRef;
|
68992
|
+
var _React$useState = react__WEBPACK_IMPORTED_MODULE_4__.useState(false),
|
68993
|
+
_React$useState2 = (0,_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_1__["default"])(_React$useState, 2),
|
68994
|
+
animatedVisible = _React$useState2[0],
|
68995
|
+
setAnimatedVisible = _React$useState2[1];
|
68996
|
+
|
68997
|
+
// ============================= Warn =============================
|
68998
|
+
if (true) {
|
68999
|
+
(0,_util__WEBPACK_IMPORTED_MODULE_7__.warnCheck)(props);
|
69000
|
+
}
|
69001
|
+
|
69002
|
+
// ============================= Open =============================
|
69003
|
+
var _React$useState3 = react__WEBPACK_IMPORTED_MODULE_4__.useState(false),
|
69004
|
+
_React$useState4 = (0,_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_1__["default"])(_React$useState3, 2),
|
69005
|
+
mounted = _React$useState4[0],
|
69006
|
+
setMounted = _React$useState4[1];
|
69007
|
+
(0,rc_util_es_hooks_useLayoutEffect__WEBPACK_IMPORTED_MODULE_3__["default"])(function () {
|
69008
|
+
setMounted(true);
|
69009
|
+
}, []);
|
69010
|
+
var mergedOpen = mounted ? open : false;
|
69011
|
+
|
69012
|
+
// ============================ Focus =============================
|
69013
|
+
var popupRef = react__WEBPACK_IMPORTED_MODULE_4__.useRef();
|
69014
|
+
var lastActiveRef = react__WEBPACK_IMPORTED_MODULE_4__.useRef();
|
69015
|
+
(0,rc_util_es_hooks_useLayoutEffect__WEBPACK_IMPORTED_MODULE_3__["default"])(function () {
|
69016
|
+
if (mergedOpen) {
|
69017
|
+
lastActiveRef.current = document.activeElement;
|
69018
|
+
}
|
69019
|
+
}, [mergedOpen]);
|
69020
|
+
|
69021
|
+
// ============================= Open =============================
|
69022
|
+
var internalAfterOpenChange = function internalAfterOpenChange(nextVisible) {
|
69023
|
+
var _popupRef$current;
|
69024
|
+
setAnimatedVisible(nextVisible);
|
69025
|
+
afterOpenChange === null || afterOpenChange === void 0 || afterOpenChange(nextVisible);
|
69026
|
+
if (!nextVisible && lastActiveRef.current && !((_popupRef$current = popupRef.current) !== null && _popupRef$current !== void 0 && _popupRef$current.contains(lastActiveRef.current))) {
|
69027
|
+
var _lastActiveRef$curren;
|
69028
|
+
(_lastActiveRef$curren = lastActiveRef.current) === null || _lastActiveRef$curren === void 0 || _lastActiveRef$curren.focus({
|
69029
|
+
preventScroll: true
|
69030
|
+
});
|
69031
|
+
}
|
69032
|
+
};
|
69033
|
+
|
69034
|
+
// =========================== Context ============================
|
69035
|
+
var refContext = react__WEBPACK_IMPORTED_MODULE_4__.useMemo(function () {
|
69036
|
+
return {
|
69037
|
+
panel: panelRef
|
69038
|
+
};
|
69039
|
+
}, [panelRef]);
|
69040
|
+
|
69041
|
+
// ============================ Render ============================
|
69042
|
+
if (!forceRender && !animatedVisible && !mergedOpen && destroyOnClose) {
|
69043
|
+
return null;
|
69044
|
+
}
|
69045
|
+
var eventHandlers = {
|
69046
|
+
onMouseEnter: onMouseEnter,
|
69047
|
+
onMouseOver: onMouseOver,
|
69048
|
+
onMouseLeave: onMouseLeave,
|
69049
|
+
onClick: onClick,
|
69050
|
+
onKeyDown: onKeyDown,
|
69051
|
+
onKeyUp: onKeyUp
|
69052
|
+
};
|
69053
|
+
var drawerPopupProps = (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])({}, props), {}, {
|
69054
|
+
open: mergedOpen,
|
69055
|
+
prefixCls: prefixCls,
|
69056
|
+
placement: placement,
|
69057
|
+
autoFocus: autoFocus,
|
69058
|
+
keyboard: keyboard,
|
69059
|
+
width: width,
|
69060
|
+
mask: mask,
|
69061
|
+
maskClosable: maskClosable,
|
69062
|
+
inline: getContainer === false,
|
69063
|
+
afterOpenChange: internalAfterOpenChange,
|
69064
|
+
ref: popupRef
|
69065
|
+
}, eventHandlers);
|
69066
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__.createElement(_context__WEBPACK_IMPORTED_MODULE_5__.RefContext.Provider, {
|
69067
|
+
value: refContext
|
69068
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__.createElement(_rc_component_portal__WEBPACK_IMPORTED_MODULE_2__["default"], {
|
69069
|
+
open: mergedOpen || forceRender || animatedVisible,
|
69070
|
+
autoDestroy: false,
|
69071
|
+
getContainer: getContainer,
|
69072
|
+
autoLock: mask && (mergedOpen || animatedVisible)
|
69073
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__.createElement(_DrawerPopup__WEBPACK_IMPORTED_MODULE_6__["default"], drawerPopupProps)));
|
69074
|
+
};
|
69075
|
+
if (true) {
|
69076
|
+
Drawer.displayName = 'Drawer';
|
69077
|
+
}
|
69078
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Drawer);
|
69079
|
+
|
69080
|
+
/***/ }),
|
69081
|
+
|
69082
|
+
/***/ "./node_modules/rc-drawer/es/DrawerPanel.js":
|
69083
|
+
/*!**************************************************!*\
|
69084
|
+
!*** ./node_modules/rc-drawer/es/DrawerPanel.js ***!
|
69085
|
+
\**************************************************/
|
69086
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
69087
|
+
|
69088
|
+
"use strict";
|
69089
|
+
__webpack_require__.r(__webpack_exports__);
|
69090
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
69091
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
69092
|
+
/* harmony export */ });
|
69093
|
+
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js");
|
69094
|
+
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutProperties */ "./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js");
|
69095
|
+
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
|
69096
|
+
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
|
69097
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "react");
|
69098
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
|
69099
|
+
/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./context */ "./node_modules/rc-drawer/es/context.js");
|
69100
|
+
/* harmony import */ var rc_util_es_pickAttrs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! rc-util/es/pickAttrs */ "./node_modules/rc-util/es/pickAttrs.js");
|
69101
|
+
/* harmony import */ var rc_util_es_ref__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! rc-util/es/ref */ "./node_modules/rc-util/es/ref.js");
|
69102
|
+
|
69103
|
+
|
69104
|
+
var _excluded = ["prefixCls", "className", "containerRef"];
|
69105
|
+
|
69106
|
+
|
69107
|
+
|
69108
|
+
|
69109
|
+
|
69110
|
+
var DrawerPanel = function DrawerPanel(props) {
|
69111
|
+
var prefixCls = props.prefixCls,
|
69112
|
+
className = props.className,
|
69113
|
+
containerRef = props.containerRef,
|
69114
|
+
restProps = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__["default"])(props, _excluded);
|
69115
|
+
var _React$useContext = react__WEBPACK_IMPORTED_MODULE_3__.useContext(_context__WEBPACK_IMPORTED_MODULE_4__.RefContext),
|
69116
|
+
panelRef = _React$useContext.panel;
|
69117
|
+
var mergedRef = (0,rc_util_es_ref__WEBPACK_IMPORTED_MODULE_6__.useComposeRef)(panelRef, containerRef);
|
69118
|
+
|
69119
|
+
// =============================== Render ===============================
|
69120
|
+
|
69121
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement("div", (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
|
69122
|
+
className: classnames__WEBPACK_IMPORTED_MODULE_2___default()("".concat(prefixCls, "-content"), className),
|
69123
|
+
role: "dialog",
|
69124
|
+
ref: mergedRef
|
69125
|
+
}, (0,rc_util_es_pickAttrs__WEBPACK_IMPORTED_MODULE_5__["default"])(props, {
|
69126
|
+
aria: true
|
69127
|
+
}), {
|
69128
|
+
"aria-modal": "true"
|
69129
|
+
}, restProps));
|
69130
|
+
};
|
69131
|
+
if (true) {
|
69132
|
+
DrawerPanel.displayName = 'DrawerPanel';
|
69133
|
+
}
|
69134
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (DrawerPanel);
|
69135
|
+
|
69136
|
+
/***/ }),
|
69137
|
+
|
69138
|
+
/***/ "./node_modules/rc-drawer/es/DrawerPopup.js":
|
69139
|
+
/*!**************************************************!*\
|
69140
|
+
!*** ./node_modules/rc-drawer/es/DrawerPopup.js ***!
|
69141
|
+
\**************************************************/
|
69142
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
69143
|
+
|
69144
|
+
"use strict";
|
69145
|
+
__webpack_require__.r(__webpack_exports__);
|
69146
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
69147
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
69148
|
+
/* harmony export */ });
|
69149
|
+
/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
|
69150
|
+
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js");
|
69151
|
+
/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js");
|
69152
|
+
/* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/slicedToArray */ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js");
|
69153
|
+
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
|
69154
|
+
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_4__);
|
69155
|
+
/* harmony import */ var rc_motion__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! rc-motion */ "./node_modules/rc-motion/es/index.js");
|
69156
|
+
/* harmony import */ var rc_util_es_KeyCode__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! rc-util/es/KeyCode */ "./node_modules/rc-util/es/KeyCode.js");
|
69157
|
+
/* harmony import */ var rc_util_es_pickAttrs__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! rc-util/es/pickAttrs */ "./node_modules/rc-util/es/pickAttrs.js");
|
69158
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! react */ "react");
|
69159
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_8__);
|
69160
|
+
/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./context */ "./node_modules/rc-drawer/es/context.js");
|
69161
|
+
/* harmony import */ var _DrawerPanel__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./DrawerPanel */ "./node_modules/rc-drawer/es/DrawerPanel.js");
|
69162
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./util */ "./node_modules/rc-drawer/es/util.js");
|
69163
|
+
|
69164
|
+
|
69165
|
+
|
69166
|
+
|
69167
|
+
|
69168
|
+
|
69169
|
+
|
69170
|
+
|
69171
|
+
|
69172
|
+
|
69173
|
+
|
69174
|
+
|
69175
|
+
var sentinelStyle = {
|
69176
|
+
width: 0,
|
69177
|
+
height: 0,
|
69178
|
+
overflow: 'hidden',
|
69179
|
+
outline: 'none',
|
69180
|
+
position: 'absolute'
|
69181
|
+
};
|
69182
|
+
function DrawerPopup(props, ref) {
|
69183
|
+
var _ref, _pushConfig$distance, _pushConfig;
|
69184
|
+
var prefixCls = props.prefixCls,
|
69185
|
+
open = props.open,
|
69186
|
+
placement = props.placement,
|
69187
|
+
inline = props.inline,
|
69188
|
+
push = props.push,
|
69189
|
+
forceRender = props.forceRender,
|
69190
|
+
autoFocus = props.autoFocus,
|
69191
|
+
keyboard = props.keyboard,
|
69192
|
+
drawerClassNames = props.classNames,
|
69193
|
+
rootClassName = props.rootClassName,
|
69194
|
+
rootStyle = props.rootStyle,
|
69195
|
+
zIndex = props.zIndex,
|
69196
|
+
className = props.className,
|
69197
|
+
id = props.id,
|
69198
|
+
style = props.style,
|
69199
|
+
motion = props.motion,
|
69200
|
+
width = props.width,
|
69201
|
+
height = props.height,
|
69202
|
+
children = props.children,
|
69203
|
+
mask = props.mask,
|
69204
|
+
maskClosable = props.maskClosable,
|
69205
|
+
maskMotion = props.maskMotion,
|
69206
|
+
maskClassName = props.maskClassName,
|
69207
|
+
maskStyle = props.maskStyle,
|
69208
|
+
afterOpenChange = props.afterOpenChange,
|
69209
|
+
onClose = props.onClose,
|
69210
|
+
onMouseEnter = props.onMouseEnter,
|
69211
|
+
onMouseOver = props.onMouseOver,
|
69212
|
+
onMouseLeave = props.onMouseLeave,
|
69213
|
+
onClick = props.onClick,
|
69214
|
+
onKeyDown = props.onKeyDown,
|
69215
|
+
onKeyUp = props.onKeyUp,
|
69216
|
+
styles = props.styles,
|
69217
|
+
drawerRender = props.drawerRender;
|
69218
|
+
|
69219
|
+
// ================================ Refs ================================
|
69220
|
+
var panelRef = react__WEBPACK_IMPORTED_MODULE_8__.useRef();
|
69221
|
+
var sentinelStartRef = react__WEBPACK_IMPORTED_MODULE_8__.useRef();
|
69222
|
+
var sentinelEndRef = react__WEBPACK_IMPORTED_MODULE_8__.useRef();
|
69223
|
+
react__WEBPACK_IMPORTED_MODULE_8__.useImperativeHandle(ref, function () {
|
69224
|
+
return panelRef.current;
|
69225
|
+
});
|
69226
|
+
var onPanelKeyDown = function onPanelKeyDown(event) {
|
69227
|
+
var keyCode = event.keyCode,
|
69228
|
+
shiftKey = event.shiftKey;
|
69229
|
+
switch (keyCode) {
|
69230
|
+
// Tab active
|
69231
|
+
case rc_util_es_KeyCode__WEBPACK_IMPORTED_MODULE_6__["default"].TAB:
|
69232
|
+
{
|
69233
|
+
if (keyCode === rc_util_es_KeyCode__WEBPACK_IMPORTED_MODULE_6__["default"].TAB) {
|
69234
|
+
if (!shiftKey && document.activeElement === sentinelEndRef.current) {
|
69235
|
+
var _sentinelStartRef$cur;
|
69236
|
+
(_sentinelStartRef$cur = sentinelStartRef.current) === null || _sentinelStartRef$cur === void 0 || _sentinelStartRef$cur.focus({
|
69237
|
+
preventScroll: true
|
69238
|
+
});
|
69239
|
+
} else if (shiftKey && document.activeElement === sentinelStartRef.current) {
|
69240
|
+
var _sentinelEndRef$curre;
|
69241
|
+
(_sentinelEndRef$curre = sentinelEndRef.current) === null || _sentinelEndRef$curre === void 0 || _sentinelEndRef$curre.focus({
|
69242
|
+
preventScroll: true
|
69243
|
+
});
|
69244
|
+
}
|
69245
|
+
}
|
69246
|
+
break;
|
69247
|
+
}
|
69248
|
+
|
69249
|
+
// Close
|
69250
|
+
case rc_util_es_KeyCode__WEBPACK_IMPORTED_MODULE_6__["default"].ESC:
|
69251
|
+
{
|
69252
|
+
if (onClose && keyboard) {
|
69253
|
+
event.stopPropagation();
|
69254
|
+
onClose(event);
|
69255
|
+
}
|
69256
|
+
break;
|
69257
|
+
}
|
69258
|
+
}
|
69259
|
+
};
|
69260
|
+
|
69261
|
+
// ========================== Control ===========================
|
69262
|
+
// Auto Focus
|
69263
|
+
react__WEBPACK_IMPORTED_MODULE_8__.useEffect(function () {
|
69264
|
+
if (open && autoFocus) {
|
69265
|
+
var _panelRef$current;
|
69266
|
+
(_panelRef$current = panelRef.current) === null || _panelRef$current === void 0 || _panelRef$current.focus({
|
69267
|
+
preventScroll: true
|
69268
|
+
});
|
69269
|
+
}
|
69270
|
+
}, [open]);
|
69271
|
+
|
69272
|
+
// ============================ Push ============================
|
69273
|
+
var _React$useState = react__WEBPACK_IMPORTED_MODULE_8__.useState(false),
|
69274
|
+
_React$useState2 = (0,_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_3__["default"])(_React$useState, 2),
|
69275
|
+
pushed = _React$useState2[0],
|
69276
|
+
setPushed = _React$useState2[1];
|
69277
|
+
var parentContext = react__WEBPACK_IMPORTED_MODULE_8__.useContext(_context__WEBPACK_IMPORTED_MODULE_9__["default"]);
|
69278
|
+
|
69279
|
+
// Merge push distance
|
69280
|
+
var pushConfig;
|
69281
|
+
if (typeof push === 'boolean') {
|
69282
|
+
pushConfig = push ? {} : {
|
69283
|
+
distance: 0
|
69284
|
+
};
|
69285
|
+
} else {
|
69286
|
+
pushConfig = push || {};
|
69287
|
+
}
|
69288
|
+
var pushDistance = (_ref = (_pushConfig$distance = (_pushConfig = pushConfig) === null || _pushConfig === void 0 ? void 0 : _pushConfig.distance) !== null && _pushConfig$distance !== void 0 ? _pushConfig$distance : parentContext === null || parentContext === void 0 ? void 0 : parentContext.pushDistance) !== null && _ref !== void 0 ? _ref : 180;
|
69289
|
+
var mergedContext = react__WEBPACK_IMPORTED_MODULE_8__.useMemo(function () {
|
69290
|
+
return {
|
69291
|
+
pushDistance: pushDistance,
|
69292
|
+
push: function push() {
|
69293
|
+
setPushed(true);
|
69294
|
+
},
|
69295
|
+
pull: function pull() {
|
69296
|
+
setPushed(false);
|
69297
|
+
}
|
69298
|
+
};
|
69299
|
+
}, [pushDistance]);
|
69300
|
+
|
69301
|
+
// ========================= ScrollLock =========================
|
69302
|
+
// Tell parent to push
|
69303
|
+
react__WEBPACK_IMPORTED_MODULE_8__.useEffect(function () {
|
69304
|
+
if (open) {
|
69305
|
+
var _parentContext$push;
|
69306
|
+
parentContext === null || parentContext === void 0 || (_parentContext$push = parentContext.push) === null || _parentContext$push === void 0 || _parentContext$push.call(parentContext);
|
69307
|
+
} else {
|
69308
|
+
var _parentContext$pull;
|
69309
|
+
parentContext === null || parentContext === void 0 || (_parentContext$pull = parentContext.pull) === null || _parentContext$pull === void 0 || _parentContext$pull.call(parentContext);
|
69310
|
+
}
|
69311
|
+
}, [open]);
|
69312
|
+
|
69313
|
+
// Clean up
|
69314
|
+
react__WEBPACK_IMPORTED_MODULE_8__.useEffect(function () {
|
69315
|
+
return function () {
|
69316
|
+
var _parentContext$pull2;
|
69317
|
+
parentContext === null || parentContext === void 0 || (_parentContext$pull2 = parentContext.pull) === null || _parentContext$pull2 === void 0 || _parentContext$pull2.call(parentContext);
|
69318
|
+
};
|
69319
|
+
}, []);
|
69320
|
+
|
69321
|
+
// ============================ Mask ============================
|
69322
|
+
var maskNode = mask && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8__.createElement(rc_motion__WEBPACK_IMPORTED_MODULE_5__["default"], (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({
|
69323
|
+
key: "mask"
|
69324
|
+
}, maskMotion, {
|
69325
|
+
visible: open
|
69326
|
+
}), function (_ref2, maskRef) {
|
69327
|
+
var motionMaskClassName = _ref2.className,
|
69328
|
+
motionMaskStyle = _ref2.style;
|
69329
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8__.createElement("div", {
|
69330
|
+
className: classnames__WEBPACK_IMPORTED_MODULE_4___default()("".concat(prefixCls, "-mask"), motionMaskClassName, drawerClassNames === null || drawerClassNames === void 0 ? void 0 : drawerClassNames.mask, maskClassName),
|
69331
|
+
style: (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__["default"])((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__["default"])((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__["default"])({}, motionMaskStyle), maskStyle), styles === null || styles === void 0 ? void 0 : styles.mask),
|
69332
|
+
onClick: maskClosable && open ? onClose : undefined,
|
69333
|
+
ref: maskRef
|
69334
|
+
});
|
69335
|
+
});
|
69336
|
+
|
69337
|
+
// =========================== Panel ============================
|
69338
|
+
var motionProps = typeof motion === 'function' ? motion(placement) : motion;
|
69339
|
+
var wrapperStyle = {};
|
69340
|
+
if (pushed && pushDistance) {
|
69341
|
+
switch (placement) {
|
69342
|
+
case 'top':
|
69343
|
+
wrapperStyle.transform = "translateY(".concat(pushDistance, "px)");
|
69344
|
+
break;
|
69345
|
+
case 'bottom':
|
69346
|
+
wrapperStyle.transform = "translateY(".concat(-pushDistance, "px)");
|
69347
|
+
break;
|
69348
|
+
case 'left':
|
69349
|
+
wrapperStyle.transform = "translateX(".concat(pushDistance, "px)");
|
69350
|
+
break;
|
69351
|
+
default:
|
69352
|
+
wrapperStyle.transform = "translateX(".concat(-pushDistance, "px)");
|
69353
|
+
break;
|
69354
|
+
}
|
69355
|
+
}
|
69356
|
+
if (placement === 'left' || placement === 'right') {
|
69357
|
+
wrapperStyle.width = (0,_util__WEBPACK_IMPORTED_MODULE_11__.parseWidthHeight)(width);
|
69358
|
+
} else {
|
69359
|
+
wrapperStyle.height = (0,_util__WEBPACK_IMPORTED_MODULE_11__.parseWidthHeight)(height);
|
69360
|
+
}
|
69361
|
+
var eventHandlers = {
|
69362
|
+
onMouseEnter: onMouseEnter,
|
69363
|
+
onMouseOver: onMouseOver,
|
69364
|
+
onMouseLeave: onMouseLeave,
|
69365
|
+
onClick: onClick,
|
69366
|
+
onKeyDown: onKeyDown,
|
69367
|
+
onKeyUp: onKeyUp
|
69368
|
+
};
|
69369
|
+
var panelNode = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8__.createElement(rc_motion__WEBPACK_IMPORTED_MODULE_5__["default"], (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({
|
69370
|
+
key: "panel"
|
69371
|
+
}, motionProps, {
|
69372
|
+
visible: open,
|
69373
|
+
forceRender: forceRender,
|
69374
|
+
onVisibleChanged: function onVisibleChanged(nextVisible) {
|
69375
|
+
afterOpenChange === null || afterOpenChange === void 0 || afterOpenChange(nextVisible);
|
69376
|
+
},
|
69377
|
+
removeOnLeave: false,
|
69378
|
+
leavedClassName: "".concat(prefixCls, "-content-wrapper-hidden")
|
69379
|
+
}), function (_ref3, motionRef) {
|
69380
|
+
var motionClassName = _ref3.className,
|
69381
|
+
motionStyle = _ref3.style;
|
69382
|
+
var content = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8__.createElement(_DrawerPanel__WEBPACK_IMPORTED_MODULE_10__["default"], (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({
|
69383
|
+
id: id,
|
69384
|
+
containerRef: motionRef,
|
69385
|
+
prefixCls: prefixCls,
|
69386
|
+
className: classnames__WEBPACK_IMPORTED_MODULE_4___default()(className, drawerClassNames === null || drawerClassNames === void 0 ? void 0 : drawerClassNames.content),
|
69387
|
+
style: (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__["default"])((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__["default"])({}, style), styles === null || styles === void 0 ? void 0 : styles.content)
|
69388
|
+
}, (0,rc_util_es_pickAttrs__WEBPACK_IMPORTED_MODULE_7__["default"])(props, {
|
69389
|
+
aria: true
|
69390
|
+
}), eventHandlers), children);
|
69391
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8__.createElement("div", (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({
|
69392
|
+
className: classnames__WEBPACK_IMPORTED_MODULE_4___default()("".concat(prefixCls, "-content-wrapper"), drawerClassNames === null || drawerClassNames === void 0 ? void 0 : drawerClassNames.wrapper, motionClassName),
|
69393
|
+
style: (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__["default"])((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__["default"])((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__["default"])({}, wrapperStyle), motionStyle), styles === null || styles === void 0 ? void 0 : styles.wrapper)
|
69394
|
+
}, (0,rc_util_es_pickAttrs__WEBPACK_IMPORTED_MODULE_7__["default"])(props, {
|
69395
|
+
data: true
|
69396
|
+
})), drawerRender ? drawerRender(content) : content);
|
69397
|
+
});
|
69398
|
+
|
69399
|
+
// =========================== Render ===========================
|
69400
|
+
var containerStyle = (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__["default"])({}, rootStyle);
|
69401
|
+
if (zIndex) {
|
69402
|
+
containerStyle.zIndex = zIndex;
|
69403
|
+
}
|
69404
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8__.createElement(_context__WEBPACK_IMPORTED_MODULE_9__["default"].Provider, {
|
69405
|
+
value: mergedContext
|
69406
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8__.createElement("div", {
|
69407
|
+
className: classnames__WEBPACK_IMPORTED_MODULE_4___default()(prefixCls, "".concat(prefixCls, "-").concat(placement), rootClassName, (0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])((0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])({}, "".concat(prefixCls, "-open"), open), "".concat(prefixCls, "-inline"), inline)),
|
69408
|
+
style: containerStyle,
|
69409
|
+
tabIndex: -1,
|
69410
|
+
ref: panelRef,
|
69411
|
+
onKeyDown: onPanelKeyDown
|
69412
|
+
}, maskNode, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8__.createElement("div", {
|
69413
|
+
tabIndex: 0,
|
69414
|
+
ref: sentinelStartRef,
|
69415
|
+
style: sentinelStyle,
|
69416
|
+
"aria-hidden": "true",
|
69417
|
+
"data-sentinel": "start"
|
69418
|
+
}), panelNode, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8__.createElement("div", {
|
69419
|
+
tabIndex: 0,
|
69420
|
+
ref: sentinelEndRef,
|
69421
|
+
style: sentinelStyle,
|
69422
|
+
"aria-hidden": "true",
|
69423
|
+
"data-sentinel": "end"
|
69424
|
+
})));
|
69425
|
+
}
|
69426
|
+
var RefDrawerPopup = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8__.forwardRef(DrawerPopup);
|
69427
|
+
if (true) {
|
69428
|
+
RefDrawerPopup.displayName = 'DrawerPopup';
|
69429
|
+
}
|
69430
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (RefDrawerPopup);
|
69431
|
+
|
69432
|
+
/***/ }),
|
69433
|
+
|
69434
|
+
/***/ "./node_modules/rc-drawer/es/context.js":
|
69435
|
+
/*!**********************************************!*\
|
69436
|
+
!*** ./node_modules/rc-drawer/es/context.js ***!
|
69437
|
+
\**********************************************/
|
69438
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
69439
|
+
|
69440
|
+
"use strict";
|
69441
|
+
__webpack_require__.r(__webpack_exports__);
|
69442
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
69443
|
+
/* harmony export */ RefContext: () => (/* binding */ RefContext),
|
69444
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
69445
|
+
/* harmony export */ });
|
69446
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
69447
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
69448
|
+
|
69449
|
+
var DrawerContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createContext(null);
|
69450
|
+
var RefContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createContext({});
|
69451
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (DrawerContext);
|
69452
|
+
|
69453
|
+
/***/ }),
|
69454
|
+
|
69455
|
+
/***/ "./node_modules/rc-drawer/es/index.js":
|
69456
|
+
/*!********************************************!*\
|
69457
|
+
!*** ./node_modules/rc-drawer/es/index.js ***!
|
69458
|
+
\********************************************/
|
69459
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
69460
|
+
|
69461
|
+
"use strict";
|
69462
|
+
__webpack_require__.r(__webpack_exports__);
|
69463
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
69464
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
69465
|
+
/* harmony export */ });
|
69466
|
+
/* harmony import */ var _Drawer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Drawer */ "./node_modules/rc-drawer/es/Drawer.js");
|
69467
|
+
// export this package's api
|
69468
|
+
|
69469
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_Drawer__WEBPACK_IMPORTED_MODULE_0__["default"]);
|
69470
|
+
|
69471
|
+
/***/ }),
|
69472
|
+
|
69473
|
+
/***/ "./node_modules/rc-drawer/es/util.js":
|
69474
|
+
/*!*******************************************!*\
|
69475
|
+
!*** ./node_modules/rc-drawer/es/util.js ***!
|
69476
|
+
\*******************************************/
|
69477
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
69478
|
+
|
69479
|
+
"use strict";
|
69480
|
+
__webpack_require__.r(__webpack_exports__);
|
69481
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
69482
|
+
/* harmony export */ parseWidthHeight: () => (/* binding */ parseWidthHeight),
|
69483
|
+
/* harmony export */ warnCheck: () => (/* binding */ warnCheck)
|
69484
|
+
/* harmony export */ });
|
69485
|
+
/* harmony import */ var rc_util_es_warning__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rc-util/es/warning */ "./node_modules/rc-util/es/warning.js");
|
69486
|
+
/* harmony import */ var rc_util_es_Dom_canUseDom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-util/es/Dom/canUseDom */ "./node_modules/rc-util/es/Dom/canUseDom.js");
|
69487
|
+
|
69488
|
+
|
69489
|
+
function parseWidthHeight(value) {
|
69490
|
+
if (typeof value === 'string' && String(Number(value)) === value) {
|
69491
|
+
(0,rc_util_es_warning__WEBPACK_IMPORTED_MODULE_0__["default"])(false, 'Invalid value type of `width` or `height` which should be number type instead.');
|
69492
|
+
return Number(value);
|
69493
|
+
}
|
69494
|
+
return value;
|
69495
|
+
}
|
69496
|
+
function warnCheck(props) {
|
69497
|
+
(0,rc_util_es_warning__WEBPACK_IMPORTED_MODULE_0__["default"])(!('wrapperClassName' in props), "'wrapperClassName' is removed. Please use 'rootClassName' instead.");
|
69498
|
+
(0,rc_util_es_warning__WEBPACK_IMPORTED_MODULE_0__["default"])((0,rc_util_es_Dom_canUseDom__WEBPACK_IMPORTED_MODULE_1__["default"])() || !props.open, "Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.");
|
69499
|
+
}
|
69500
|
+
|
69501
|
+
/***/ }),
|
69502
|
+
|
68684
69503
|
/***/ "./node_modules/rc-motion/es/CSSMotion.js":
|
68685
69504
|
/*!************************************************!*\
|
68686
69505
|
!*** ./node_modules/rc-motion/es/CSSMotion.js ***!
|
@@ -131680,6 +132499,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
131680
132499
|
/* harmony export */ CodeBlock: () => (/* reexport safe */ _core__WEBPACK_IMPORTED_MODULE_0__.CodeBlock),
|
131681
132500
|
/* harmony export */ CodeSnippet: () => (/* reexport safe */ _core__WEBPACK_IMPORTED_MODULE_0__.CodeSnippet),
|
131682
132501
|
/* harmony export */ ComboButton: () => (/* reexport safe */ _core__WEBPACK_IMPORTED_MODULE_0__.ComboButton),
|
132502
|
+
/* harmony export */ Drawer: () => (/* reexport safe */ _core__WEBPACK_IMPORTED_MODULE_0__.Drawer),
|
131683
132503
|
/* harmony export */ Icon: () => (/* reexport safe */ _core__WEBPACK_IMPORTED_MODULE_0__.Icon),
|
131684
132504
|
/* harmony export */ IconButton: () => (/* reexport safe */ _core__WEBPACK_IMPORTED_MODULE_0__.IconButton),
|
131685
132505
|
/* harmony export */ InfoChip: () => (/* reexport safe */ _core__WEBPACK_IMPORTED_MODULE_0__.InfoChip),
|