@luminati-io/uikit 6.3.13 → 6.3.14
Sign up to get free protection for your applications and to get access to all the features.
@@ -36310,7 +36310,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
36310
36310
|
|
36311
36311
|
/*jslint react:true*/
|
36312
36312
|
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); }
|
36313
|
-
var _excluded = ["className", "classNamePrefix", "variant", "children", "shape", "icon", "iconPlacement", "onIconClick", "style"];
|
36313
|
+
var _excluded = ["className", "classNamePrefix", "variant", "text", "children", "shape", "icon", "iconPlacement", "onIconClick", "style"];
|
36314
36314
|
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); }
|
36315
36315
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
36316
36316
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
@@ -36333,6 +36333,7 @@ var Badge = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef
|
|
36333
36333
|
classNamePrefix = _props$classNamePrefi === void 0 ? 'uikit_badge' : _props$classNamePrefi,
|
36334
36334
|
_props$variant = props.variant,
|
36335
36335
|
variant = _props$variant === void 0 ? 'generic' : _props$variant,
|
36336
|
+
text = props.text,
|
36336
36337
|
children = props.children,
|
36337
36338
|
_props$shape = props.shape,
|
36338
36339
|
shape = _props$shape === void 0 ? 'square' : _props$shape,
|
@@ -36361,7 +36362,7 @@ var Badge = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef
|
|
36361
36362
|
className: (0,_util__WEBPACK_IMPORTED_MODULE_6__.classNames)(classNamePrefix, {
|
36362
36363
|
'-content': true
|
36363
36364
|
})
|
36364
|
-
}, children));
|
36365
|
+
}, text || children));
|
36365
36366
|
});
|
36366
36367
|
Badge.displayName = 'Badge';
|
36367
36368
|
Badge.propTypes = {
|
@@ -40022,32 +40023,31 @@ __webpack_require__.r(__webpack_exports__);
|
|
40022
40023
|
/* harmony export */ Drawer: () => (/* reexport safe */ _drawer__WEBPACK_IMPORTED_MODULE_11__.Drawer),
|
40023
40024
|
/* harmony export */ Icon: () => (/* reexport safe */ _icon__WEBPACK_IMPORTED_MODULE_20__.Icon),
|
40024
40025
|
/* harmony export */ IconButton: () => (/* reexport safe */ _icon_button__WEBPACK_IMPORTED_MODULE_21__.IconButton),
|
40025
|
-
/* harmony export */ InfoChip: () => (/* reexport safe */ _infochip__WEBPACK_IMPORTED_MODULE_22__.InfoChip),
|
40026
40026
|
/* harmony export */ Input: () => (/* reexport module object */ _input__WEBPACK_IMPORTED_MODULE_1__),
|
40027
40027
|
/* harmony export */ Layout: () => (/* reexport module object */ _layout__WEBPACK_IMPORTED_MODULE_2__),
|
40028
40028
|
/* harmony export */ Link: () => (/* reexport safe */ _link__WEBPACK_IMPORTED_MODULE_13__.Link),
|
40029
40029
|
/* harmony export */ Menu: () => (/* reexport safe */ _menu__WEBPACK_IMPORTED_MODULE_14__.Menu),
|
40030
40030
|
/* harmony export */ Modal: () => (/* reexport module object */ _modal__WEBPACK_IMPORTED_MODULE_3__),
|
40031
|
-
/* harmony export */ Popover: () => (/* reexport safe */
|
40031
|
+
/* harmony export */ Popover: () => (/* reexport safe */ _popover__WEBPACK_IMPORTED_MODULE_24__.Popover),
|
40032
40032
|
/* harmony export */ Progress: () => (/* reexport safe */ _progress__WEBPACK_IMPORTED_MODULE_15__.Progress),
|
40033
40033
|
/* harmony export */ ProgressBar: () => (/* reexport safe */ _progress__WEBPACK_IMPORTED_MODULE_15__.ProgressBar),
|
40034
40034
|
/* harmony export */ RemovableTag: () => (/* reexport safe */ _tag__WEBPACK_IMPORTED_MODULE_18__.RemovableTag),
|
40035
40035
|
/* harmony export */ Snackbar: () => (/* reexport safe */ _snackbar__WEBPACK_IMPORTED_MODULE_16__.Snackbar),
|
40036
|
-
/* harmony export */ Tab: () => (/* reexport safe */
|
40036
|
+
/* harmony export */ Tab: () => (/* reexport safe */ _tab__WEBPACK_IMPORTED_MODULE_22__.Tab),
|
40037
40037
|
/* harmony export */ Table: () => (/* reexport safe */ _table__WEBPACK_IMPORTED_MODULE_17__.Table),
|
40038
|
-
/* harmony export */ Tabs: () => (/* reexport safe */
|
40038
|
+
/* harmony export */ Tabs: () => (/* reexport safe */ _tab__WEBPACK_IMPORTED_MODULE_22__.Tabs),
|
40039
40039
|
/* harmony export */ TagGroup: () => (/* reexport safe */ _tag__WEBPACK_IMPORTED_MODULE_18__.TagGroup),
|
40040
|
-
/* harmony export */ ThemeProvider: () => (/* reexport safe */
|
40040
|
+
/* harmony export */ ThemeProvider: () => (/* reexport safe */ _themes__WEBPACK_IMPORTED_MODULE_25__.ThemeProvider),
|
40041
40041
|
/* harmony export */ Toast: () => (/* reexport safe */ _toast__WEBPACK_IMPORTED_MODULE_19__.Toast),
|
40042
40042
|
/* harmony export */ Toaster: () => (/* reexport safe */ _toast__WEBPACK_IMPORTED_MODULE_19__.Toaster),
|
40043
|
-
/* harmony export */ Tooltip: () => (/* reexport safe */
|
40044
|
-
/* harmony export */ Tooltip2: () => (/* reexport safe */
|
40043
|
+
/* harmony export */ Tooltip: () => (/* reexport safe */ _tooltip__WEBPACK_IMPORTED_MODULE_23__.Tooltip),
|
40044
|
+
/* harmony export */ Tooltip2: () => (/* reexport safe */ _tooltip__WEBPACK_IMPORTED_MODULE_23__.Tooltip2),
|
40045
40045
|
/* harmony export */ Typography: () => (/* reexport module object */ _typography__WEBPACK_IMPORTED_MODULE_5__),
|
40046
|
-
/* harmony export */ globalConfig: () => (/* reexport safe */
|
40047
|
-
/* harmony export */ setGlobalConfig: () => (/* reexport safe */
|
40048
|
-
/* harmony export */ theme: () => (/* reexport safe */
|
40046
|
+
/* harmony export */ globalConfig: () => (/* reexport safe */ _global_config__WEBPACK_IMPORTED_MODULE_26__.globalConfig),
|
40047
|
+
/* harmony export */ setGlobalConfig: () => (/* reexport safe */ _global_config__WEBPACK_IMPORTED_MODULE_26__.setGlobalConfig),
|
40048
|
+
/* harmony export */ theme: () => (/* reexport safe */ _themes__WEBPACK_IMPORTED_MODULE_25__.lightTheme),
|
40049
40049
|
/* harmony export */ translation: () => (/* reexport safe */ _translation__WEBPACK_IMPORTED_MODULE_4__["default"]),
|
40050
|
-
/* harmony export */ useTheme: () => (/* reexport safe */
|
40050
|
+
/* harmony export */ useTheme: () => (/* reexport safe */ _themes__WEBPACK_IMPORTED_MODULE_25__.useTheme),
|
40051
40051
|
/* harmony export */ useToaster: () => (/* reexport safe */ _toast__WEBPACK_IMPORTED_MODULE_19__.useToaster),
|
40052
40052
|
/* harmony export */ withPopover: () => (/* reexport safe */ _hoc__WEBPACK_IMPORTED_MODULE_12__.withPopover)
|
40053
40053
|
/* harmony export */ });
|
@@ -40073,12 +40073,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
40073
40073
|
/* harmony import */ var _toast__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./toast */ "./src/toast/index.js");
|
40074
40074
|
/* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./icon */ "./src/icon.js");
|
40075
40075
|
/* harmony import */ var _icon_button__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./icon_button */ "./src/icon_button.js");
|
40076
|
-
/* harmony import */ var
|
40077
|
-
/* harmony import */ var
|
40078
|
-
/* harmony import */ var
|
40079
|
-
/* harmony import */ var
|
40080
|
-
/* harmony import */ var
|
40081
|
-
/* harmony import */ var _global_config__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./global_config */ "./src/global_config.js");
|
40076
|
+
/* harmony import */ var _tab__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./tab */ "./src/tab/index.js");
|
40077
|
+
/* harmony import */ var _tooltip__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./tooltip */ "./src/tooltip/index.js");
|
40078
|
+
/* harmony import */ var _popover__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./popover */ "./src/popover/index.js");
|
40079
|
+
/* harmony import */ var _themes__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./themes */ "./src/themes/index.js");
|
40080
|
+
/* harmony import */ var _global_config__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./global_config */ "./src/global_config.js");
|
40082
40081
|
// LICENSE_CODE ZON
|
40083
40082
|
|
40084
40083
|
|
@@ -40110,7 +40109,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
40110
40109
|
|
40111
40110
|
|
40112
40111
|
|
40113
|
-
|
40114
40112
|
|
40115
40113
|
|
40116
40114
|
/***/ }),
|
@@ -40130,13 +40128,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
40130
40128
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
|
40131
40129
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
40132
40130
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
40133
|
-
/* harmony import */ var
|
40134
|
-
/* harmony import */ var
|
40135
|
-
/* harmony import */ var
|
40136
|
-
/* harmony import */ var
|
40137
|
-
/* harmony import */ var
|
40138
|
-
/* harmony import */ var _icon_button__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../icon_button */ "./src/icon_button.js");
|
40139
|
-
/* harmony import */ var _modal_modal2__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../modal/modal2 */ "./src/modal/modal2.js");
|
40131
|
+
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../constants */ "./src/constants.js");
|
40132
|
+
/* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../typography */ "./src/typography/index.js");
|
40133
|
+
/* harmony import */ var _icon_button__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../icon_button */ "./src/icon_button.js");
|
40134
|
+
/* harmony import */ var _modal_modal2__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../modal/modal2 */ "./src/modal/modal2.js");
|
40135
|
+
/* harmony import */ var _styled__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./styled */ "./src/drawer/styled.js");
|
40140
40136
|
// LICENSE_CODE ZON
|
40141
40137
|
|
40142
40138
|
|
@@ -40148,7 +40144,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
40148
40144
|
|
40149
40145
|
|
40150
40146
|
|
40151
|
-
|
40152
40147
|
var Drawer = function Drawer(_ref) {
|
40153
40148
|
var className = _ref.className,
|
40154
40149
|
_ref$classNamePrefix = _ref.classNamePrefix,
|
@@ -40178,8 +40173,10 @@ var Drawer = function Drawer(_ref) {
|
|
40178
40173
|
_ref$mask = _ref.mask,
|
40179
40174
|
mask = _ref$mask === void 0 ? false : _ref$mask,
|
40180
40175
|
styles = _ref.styles,
|
40181
|
-
classNames = _ref.classNames
|
40182
|
-
|
40176
|
+
classNames = _ref.classNames,
|
40177
|
+
_ref$zIndex = _ref.zIndex,
|
40178
|
+
zIndex = _ref$zIndex === void 0 ? _constants__WEBPACK_IMPORTED_MODULE_2__.Z_INDEX.drawer : _ref$zIndex,
|
40179
|
+
destroyOnClose = _ref.destroyOnClose;
|
40183
40180
|
var renderCancel = !footer && !!(onCancel && cancelLabel);
|
40184
40181
|
var renderOk = !footer && !!(onOk && okLabel);
|
40185
40182
|
var renderFooter = !!footer || renderOk || renderCancel;
|
@@ -40200,41 +40197,39 @@ var Drawer = function Drawer(_ref) {
|
|
40200
40197
|
motionDeadline: 500
|
40201
40198
|
};
|
40202
40199
|
};
|
40203
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(
|
40204
|
-
$prefixCls: classNamePrefix,
|
40205
|
-
$theme: theme
|
40206
|
-
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(rc_drawer__WEBPACK_IMPORTED_MODULE_3__["default"], {
|
40200
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_styled__WEBPACK_IMPORTED_MODULE_6__.StyledDrawer, {
|
40207
40201
|
width: width,
|
40208
40202
|
height: height,
|
40209
40203
|
open: open,
|
40210
40204
|
onClose: onClose,
|
40211
40205
|
placement: placement,
|
40212
40206
|
duration: duration,
|
40213
|
-
|
40207
|
+
contentClassName: className,
|
40214
40208
|
prefixCls: classNamePrefix,
|
40215
|
-
zIndex:
|
40209
|
+
zIndex: zIndex,
|
40216
40210
|
maskClosable: closable,
|
40217
40211
|
classNames: classNames,
|
40218
40212
|
afterOpenChange: afterOpenChange,
|
40219
40213
|
mask: mask,
|
40220
40214
|
styles: styles,
|
40221
40215
|
maskMotion: maskMotion,
|
40222
|
-
motion: motion
|
40223
|
-
|
40216
|
+
motion: motion,
|
40217
|
+
destroyOnClose: destroyOnClose
|
40218
|
+
}, closable && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon_button__WEBPACK_IMPORTED_MODULE_4__.IconButton, {
|
40224
40219
|
className: "".concat(classNamePrefix, "-close"),
|
40225
40220
|
size: "xs",
|
40226
40221
|
icon: "Close",
|
40227
40222
|
onClick: onClose
|
40228
40223
|
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", {
|
40229
40224
|
className: "".concat(classNamePrefix, "-header")
|
40230
|
-
}, !!title && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(
|
40225
|
+
}, !!title && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_3__.Header, {
|
40231
40226
|
className: "".concat(classNamePrefix, "-title"),
|
40232
40227
|
color: "text"
|
40233
40228
|
}, title)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", {
|
40234
40229
|
className: "".concat(classNamePrefix, "-body")
|
40235
40230
|
}, children), renderFooter && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", {
|
40236
40231
|
className: "".concat(classNamePrefix, "-footer")
|
40237
|
-
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(
|
40232
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_modal_modal2__WEBPACK_IMPORTED_MODULE_5__.DialogFooter, {
|
40238
40233
|
onOk: onOk,
|
40239
40234
|
onCancel: onCancel,
|
40240
40235
|
okLabel: okLabel,
|
@@ -40243,7 +40238,7 @@ var Drawer = function Drawer(_ref) {
|
|
40243
40238
|
cancelProps: cancelProps,
|
40244
40239
|
variant: footerVariant,
|
40245
40240
|
footer: footer
|
40246
|
-
})))
|
40241
|
+
})));
|
40247
40242
|
};
|
40248
40243
|
Drawer.propTypes = {
|
40249
40244
|
className: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
@@ -40275,17 +40270,85 @@ Drawer.propTypes = {
|
|
40275
40270
|
mask: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
40276
40271
|
wrapper: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
40277
40272
|
content: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)
|
40278
|
-
})
|
40273
|
+
}),
|
40274
|
+
zIndex: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
40275
|
+
destroyOnClose: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)
|
40276
|
+
};
|
40277
|
+
|
40278
|
+
/***/ }),
|
40279
|
+
|
40280
|
+
/***/ "./src/drawer/index.js":
|
40281
|
+
/*!*****************************!*\
|
40282
|
+
!*** ./src/drawer/index.js ***!
|
40283
|
+
\*****************************/
|
40284
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
40285
|
+
|
40286
|
+
"use strict";
|
40287
|
+
__webpack_require__.r(__webpack_exports__);
|
40288
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
40289
|
+
/* harmony export */ Drawer: () => (/* reexport safe */ _drawer__WEBPACK_IMPORTED_MODULE_0__.Drawer)
|
40290
|
+
/* harmony export */ });
|
40291
|
+
/* harmony import */ var _drawer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./drawer */ "./src/drawer/drawer.js");
|
40292
|
+
// LICENSE_CODE ZON
|
40293
|
+
|
40294
|
+
|
40295
|
+
/*jslint react:true*/
|
40296
|
+
|
40297
|
+
|
40298
|
+
/***/ }),
|
40299
|
+
|
40300
|
+
/***/ "./src/drawer/styled.js":
|
40301
|
+
/*!******************************!*\
|
40302
|
+
!*** ./src/drawer/styled.js ***!
|
40303
|
+
\******************************/
|
40304
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
40305
|
+
|
40306
|
+
"use strict";
|
40307
|
+
__webpack_require__.r(__webpack_exports__);
|
40308
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
40309
|
+
/* harmony export */ StyledDrawer: () => (/* binding */ StyledDrawer)
|
40310
|
+
/* harmony export */ });
|
40311
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
40312
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
40313
|
+
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! styled-components */ "styled-components");
|
40314
|
+
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_1__);
|
40315
|
+
/* harmony import */ var rc_drawer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rc-drawer */ "./node_modules/rc-drawer/es/index.js");
|
40316
|
+
// LICENSE_CODE ZON
|
40317
|
+
|
40318
|
+
|
40319
|
+
/*jslint react:true*/
|
40320
|
+
var _excluded = ["className", "contentClassName"];
|
40321
|
+
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); }
|
40322
|
+
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; }
|
40323
|
+
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; }
|
40324
|
+
|
40325
|
+
|
40326
|
+
|
40327
|
+
var DrawerAdaptor = function DrawerAdaptor(_ref) {
|
40328
|
+
var className = _ref.className,
|
40329
|
+
contentClassName = _ref.contentClassName,
|
40330
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
40331
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(rc_drawer__WEBPACK_IMPORTED_MODULE_2__["default"], _extends({
|
40332
|
+
className: contentClassName,
|
40333
|
+
rootClassName: className
|
40334
|
+
}, rest));
|
40279
40335
|
};
|
40280
40336
|
var prefixCls = function prefixCls(p) {
|
40281
|
-
return p
|
40337
|
+
return p.prefixCls;
|
40282
40338
|
};
|
40283
40339
|
var theme = function theme(cb) {
|
40284
40340
|
return function (p) {
|
40285
|
-
return cb(p
|
40341
|
+
return cb(p.theme);
|
40286
40342
|
};
|
40287
40343
|
};
|
40288
|
-
var
|
40344
|
+
var StyledDrawer = styled_components__WEBPACK_IMPORTED_MODULE_1___default()(DrawerAdaptor).withConfig({
|
40345
|
+
displayName: "StyledDrawer",
|
40346
|
+
componentId: "sc-12ycvcn-0"
|
40347
|
+
})(["&.", "{inset:0;position:fixed;pointer-events:none;&-inline{position:absolute;}&-left .", "-content-wrapper{top:0;bottom:0;left:0;}&-right .", "-content-wrapper{top:0;right:0;bottom:0;}&-left .", "-content{border-right:1px solid ", ";}&-right .", "-content{border-left:1px solid ", ";}}.", "{&-mask{inset:0;position:absolute;background-color:", ";background-color:", ";filter:alpha(opacity=70);pointer-events:auto;}&-content-wrapper{position:absolute;overflow:hidden;box-shadow:", ";&-hidden{display:none;}}&-content{position:relative;display:flex;flex-direction:column;width:100%;height:100%;background:", ";pointer-events:auto;}&-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%);}}}}}"], prefixCls, prefixCls, prefixCls, prefixCls, theme(function (t) {
|
40348
|
+
return t.color.border_secondary;
|
40349
|
+
}), prefixCls, theme(function (t) {
|
40350
|
+
return t.color.border_secondary;
|
40351
|
+
}), prefixCls, theme(function (t) {
|
40289
40352
|
return t.color.modal_shadow_bg;
|
40290
40353
|
}), theme(function (t) {
|
40291
40354
|
return t.color.modal2_shadow_bg;
|
@@ -40293,10 +40356,6 @@ var DrawerStyle = (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.createGlobal
|
|
40293
40356
|
return t.shadow.medium;
|
40294
40357
|
}), theme(function (t) {
|
40295
40358
|
return t.color.bg_elevated;
|
40296
|
-
}), theme(function (t) {
|
40297
|
-
return t.color.border_secondary;
|
40298
|
-
}), theme(function (t) {
|
40299
|
-
return t.color.border_secondary;
|
40300
40359
|
}), theme(function (t) {
|
40301
40360
|
return t.spacing['05'];
|
40302
40361
|
}), theme(function (t) {
|
@@ -40329,26 +40388,6 @@ var DrawerStyle = (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.createGlobal
|
|
40329
40388
|
return t.color.border_secondary;
|
40330
40389
|
}));
|
40331
40390
|
|
40332
|
-
/***/ }),
|
40333
|
-
|
40334
|
-
/***/ "./src/drawer/index.js":
|
40335
|
-
/*!*****************************!*\
|
40336
|
-
!*** ./src/drawer/index.js ***!
|
40337
|
-
\*****************************/
|
40338
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
40339
|
-
|
40340
|
-
"use strict";
|
40341
|
-
__webpack_require__.r(__webpack_exports__);
|
40342
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
40343
|
-
/* harmony export */ Drawer: () => (/* reexport safe */ _drawer__WEBPACK_IMPORTED_MODULE_0__.Drawer)
|
40344
|
-
/* harmony export */ });
|
40345
|
-
/* harmony import */ var _drawer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./drawer */ "./src/drawer/drawer.js");
|
40346
|
-
// LICENSE_CODE ZON
|
40347
|
-
|
40348
|
-
|
40349
|
-
/*jslint react:true*/
|
40350
|
-
|
40351
|
-
|
40352
40391
|
/***/ }),
|
40353
40392
|
|
40354
40393
|
/***/ "./src/global_config.js":
|
@@ -41382,103 +41421,6 @@ var StyledSvg = styled_components__WEBPACK_IMPORTED_MODULE_1___default().svg.wit
|
|
41382
41421
|
|
41383
41422
|
/***/ }),
|
41384
41423
|
|
41385
|
-
/***/ "./src/infochip.js":
|
41386
|
-
/*!*************************!*\
|
41387
|
-
!*** ./src/infochip.js ***!
|
41388
|
-
\*************************/
|
41389
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
41390
|
-
|
41391
|
-
"use strict";
|
41392
|
-
__webpack_require__.r(__webpack_exports__);
|
41393
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
41394
|
-
/* harmony export */ InfoChip: () => (/* binding */ InfoChip)
|
41395
|
-
/* harmony export */ });
|
41396
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "prop-types");
|
41397
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
|
41398
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
41399
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
41400
|
-
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! styled-components */ "styled-components");
|
41401
|
-
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_2__);
|
41402
|
-
/* harmony import */ var rc_util_lib_pickAttrs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rc-util/lib/pickAttrs */ "./node_modules/rc-util/lib/pickAttrs.js");
|
41403
|
-
/* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./icon */ "./src/icon.js");
|
41404
|
-
/* harmony import */ var _layout__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./layout */ "./src/layout/index.js");
|
41405
|
-
/* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./typography */ "./src/typography/index.js");
|
41406
|
-
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./utils */ "./src/utils.js");
|
41407
|
-
// LICENSE_CODE ZON
|
41408
|
-
|
41409
|
-
|
41410
|
-
/*jslint react:true*/
|
41411
|
-
var _excluded = ["variant", "text", "icon"];
|
41412
|
-
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); }
|
41413
|
-
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; }
|
41414
|
-
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; }
|
41415
|
-
|
41416
|
-
|
41417
|
-
|
41418
|
-
|
41419
|
-
|
41420
|
-
|
41421
|
-
|
41422
|
-
|
41423
|
-
var InfoChip = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(function (props, ref) {
|
41424
|
-
var _props$variant = props.variant,
|
41425
|
-
variant = _props$variant === void 0 ? 'default' : _props$variant,
|
41426
|
-
text = props.text,
|
41427
|
-
icon = props.icon,
|
41428
|
-
rest = _objectWithoutProperties(props, _excluded);
|
41429
|
-
var iconColor = {
|
41430
|
-
success: 'text_success',
|
41431
|
-
alert: 'text_error',
|
41432
|
-
warning: 'text_warning',
|
41433
|
-
info: 'text_primary'
|
41434
|
-
}[variant] || 'text';
|
41435
|
-
var textColor = {
|
41436
|
-
success: 'icon_success',
|
41437
|
-
alert: 'icon_error',
|
41438
|
-
warning: 'icon_warning',
|
41439
|
-
info: 'icon_primary'
|
41440
|
-
}[variant] || 'icon_accent';
|
41441
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(InfoChipWrapper, _extends({
|
41442
|
-
ref: ref,
|
41443
|
-
$variant: variant
|
41444
|
-
}, (0,rc_util_lib_pickAttrs__WEBPACK_IMPORTED_MODULE_3__["default"])(rest)), icon && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_4__.Icon, {
|
41445
|
-
size: "xxs",
|
41446
|
-
color: iconColor,
|
41447
|
-
name: icon
|
41448
|
-
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_6__.Label, {
|
41449
|
-
variant: "xs",
|
41450
|
-
color: textColor
|
41451
|
-
}, text));
|
41452
|
-
});
|
41453
|
-
InfoChip.displayName = 'InfoChip';
|
41454
|
-
InfoChip.propTypes = {
|
41455
|
-
variant: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['default', 'success', 'alert', 'warning', 'info']),
|
41456
|
-
text: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
|
41457
|
-
icon: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(_utils__WEBPACK_IMPORTED_MODULE_7__.iconNames)
|
41458
|
-
};
|
41459
|
-
var InfoChipWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_layout__WEBPACK_IMPORTED_MODULE_5__.Flex).attrs({
|
41460
|
-
align_items: 'center',
|
41461
|
-
gap: '02',
|
41462
|
-
padding_top: '0',
|
41463
|
-
padding_right: '04',
|
41464
|
-
padding_bottom: '0',
|
41465
|
-
padding_left: '04'
|
41466
|
-
}).withConfig({
|
41467
|
-
displayName: "InfoChipWrapper",
|
41468
|
-
componentId: "sc-qtbg7s-0"
|
41469
|
-
})(["background-color:", ";border-radius:24px;width:fit-content;min-height:24px;height:24px;"], function (_ref) {
|
41470
|
-
var color = _ref.theme.color,
|
41471
|
-
$variant = _ref.$variant;
|
41472
|
-
return color[{
|
41473
|
-
success: 'bg_fill_success_secondary',
|
41474
|
-
alert: 'bg_fill_error_secondary',
|
41475
|
-
warning: 'bg_fill_warning_secondary',
|
41476
|
-
info: 'bg_fill_primary_secondary'
|
41477
|
-
}[$variant] || 'bg_fill_secondary'];
|
41478
|
-
});
|
41479
|
-
|
41480
|
-
/***/ }),
|
41481
|
-
|
41482
41424
|
/***/ "./src/input/checkbox.js":
|
41483
41425
|
/*!*******************************!*\
|
41484
41426
|
!*** ./src/input/checkbox.js ***!
|
@@ -48128,12 +48070,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
48128
48070
|
/* harmony export */ });
|
48129
48071
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
48130
48072
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
48131
|
-
/* harmony import */ var
|
48132
|
-
/* harmony import */ var
|
48133
|
-
/* harmony import */ var
|
48134
|
-
/* harmony import */ var
|
48135
|
-
/* harmony import */ var _shared__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./shared */ "./src/menu/shared.js");
|
48136
|
-
/* harmony import */ var _placements__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./placements */ "./src/menu/placements.js");
|
48073
|
+
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../constants */ "./src/constants.js");
|
48074
|
+
/* harmony import */ var _shared__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./shared */ "./src/menu/shared.js");
|
48075
|
+
/* harmony import */ var _placements__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./placements */ "./src/menu/placements.js");
|
48076
|
+
/* harmony import */ var _styled__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./styled */ "./src/menu/styled.js");
|
48137
48077
|
// LICENSE_CODE ZON
|
48138
48078
|
|
48139
48079
|
|
@@ -48149,7 +48089,6 @@ function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
48149
48089
|
|
48150
48090
|
|
48151
48091
|
|
48152
|
-
|
48153
48092
|
var prefixCls = 'uikit_menu_popup';
|
48154
48093
|
var MenuItemPopup = function MenuItemPopup(_ref) {
|
48155
48094
|
var subItems = _ref.subItems,
|
@@ -48171,9 +48110,7 @@ var MenuItemPopup = function MenuItemPopup(_ref) {
|
|
48171
48110
|
motionLeave: true,
|
48172
48111
|
motionDeadline: 500
|
48173
48112
|
};
|
48174
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(
|
48175
|
-
$prefixCls: prefixCls
|
48176
|
-
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_rc_component_trigger__WEBPACK_IMPORTED_MODULE_2__["default"], {
|
48113
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_styled__WEBPACK_IMPORTED_MODULE_4__.StyledMenuItemPopup, {
|
48177
48114
|
prefixCls: prefixCls,
|
48178
48115
|
mask: true,
|
48179
48116
|
action: popupTrigger,
|
@@ -48183,18 +48120,15 @@ var MenuItemPopup = function MenuItemPopup(_ref) {
|
|
48183
48120
|
popupStyle: popupStyle,
|
48184
48121
|
popupVisible: visible,
|
48185
48122
|
onPopupVisibleChange: setVisible,
|
48186
|
-
builtinPlacements:
|
48187
|
-
zIndex:
|
48188
|
-
popup: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(
|
48123
|
+
builtinPlacements: _placements__WEBPACK_IMPORTED_MODULE_3__.placements,
|
48124
|
+
zIndex: _constants__WEBPACK_IMPORTED_MODULE_1__.Z_INDEX.popover,
|
48125
|
+
popup: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_shared__WEBPACK_IMPORTED_MODULE_2__.MenuContainer, {
|
48189
48126
|
onClick: function onClick() {
|
48190
48127
|
return setVisible(false);
|
48191
48128
|
}
|
48192
48129
|
}, subItems)
|
48193
|
-
}, children)
|
48130
|
+
}, children);
|
48194
48131
|
};
|
48195
|
-
var MenuItemPopupStyle = (0,styled_components__WEBPACK_IMPORTED_MODULE_1__.createGlobalStyle)([".", "{position:absolute;display:block;visibility:visible;width:fit-content;max-width:min(500px,80vw);background-color:transparent;&-hidden{display:none;}&-mask{position:fixed;inset:0;pointer-events:none;&-hidden{display:none;}}&-motion{&-enter,&-appear{opacity:0;animation-duration:0.3s;animation-fill-mode:both;animation-timing-function:cubic-bezier(0.08,0.82,0.17,1);animation-play-state:paused;}&-leave{animation-duration:0.3s;animation-fill-mode:both;animation-timing-function:cubic-bezier(0.6,0.04,0.98,0.34);animation-play-state:paused;}&-enter&-enter-active,&-appear&-appear-active{animation-name:rcMenuPopupZoomIn;animation-play-state:running;}&-leave&-leave-active{animation-name:rcMenuPopupZoomOut;animation-play-state:running;}}@keyframes rcMenuPopupZoomIn{0%{opacity:0;transform:scale(0,0);}100%{opacity:1;transform:scale(1,1);}}@keyframes rcMenuPopupZoomOut{0%{transform:scale(1,1);}100%{opacity:0;transform:scale(0,0);}}}"], function (p) {
|
48196
|
-
return p.$prefixCls;
|
48197
|
-
});
|
48198
48132
|
|
48199
48133
|
/***/ }),
|
48200
48134
|
|
@@ -48341,6 +48275,63 @@ var MenuItemContainer = styled_components__WEBPACK_IMPORTED_MODULE_0___default()
|
|
48341
48275
|
|
48342
48276
|
/***/ }),
|
48343
48277
|
|
48278
|
+
/***/ "./src/menu/styled.js":
|
48279
|
+
/*!****************************!*\
|
48280
|
+
!*** ./src/menu/styled.js ***!
|
48281
|
+
\****************************/
|
48282
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
48283
|
+
|
48284
|
+
"use strict";
|
48285
|
+
__webpack_require__.r(__webpack_exports__);
|
48286
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
48287
|
+
/* harmony export */ StyledMenuItemPopup: () => (/* binding */ StyledMenuItemPopup)
|
48288
|
+
/* harmony export */ });
|
48289
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
48290
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
48291
|
+
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! styled-components */ "styled-components");
|
48292
|
+
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_1__);
|
48293
|
+
/* harmony import */ var _rc_component_trigger__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @rc-component/trigger */ "./node_modules/@rc-component/trigger/es/index.js");
|
48294
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
|
48295
|
+
// LICENSE_CODE ZON
|
48296
|
+
|
48297
|
+
|
48298
|
+
/*jslint react:true*/
|
48299
|
+
var _excluded = ["className", "popupClassName"];
|
48300
|
+
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); }
|
48301
|
+
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; }
|
48302
|
+
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; }
|
48303
|
+
|
48304
|
+
|
48305
|
+
|
48306
|
+
|
48307
|
+
var PopoverAdaptor = function PopoverAdaptor(_ref) {
|
48308
|
+
var className = _ref.className,
|
48309
|
+
popupClassName = _ref.popupClassName,
|
48310
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
48311
|
+
// Motion
|
48312
|
+
var maskMotion = {
|
48313
|
+
motionName: "".concat(className, " .").concat(rest.prefixCls, "-mask"),
|
48314
|
+
motionAppear: false,
|
48315
|
+
motionEnter: true,
|
48316
|
+
motionLeave: false
|
48317
|
+
};
|
48318
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_rc_component_trigger__WEBPACK_IMPORTED_MODULE_2__["default"], _extends({
|
48319
|
+
popupClassName: (0,_util__WEBPACK_IMPORTED_MODULE_3__.classNames)(null, null, className, popupClassName),
|
48320
|
+
maskMotion: maskMotion
|
48321
|
+
}, rest));
|
48322
|
+
};
|
48323
|
+
var rcZoomIn = (0,styled_components__WEBPACK_IMPORTED_MODULE_1__.keyframes)(["0%{opacity:0;transform:scale(0,0);}100%{opacity:1;transform:scale(1,1);}"]);
|
48324
|
+
var rcZoomOut = (0,styled_components__WEBPACK_IMPORTED_MODULE_1__.keyframes)(["0%{opacity:1;transform:scale(1,1);}100%{opacity:0;transform:scale(0,0);}"]);
|
48325
|
+
var prefixCls = function prefixCls(p) {
|
48326
|
+
return p.prefixCls;
|
48327
|
+
};
|
48328
|
+
var StyledMenuItemPopup = styled_components__WEBPACK_IMPORTED_MODULE_1___default()(PopoverAdaptor).withConfig({
|
48329
|
+
displayName: "StyledMenuItemPopup",
|
48330
|
+
componentId: "sc-18082hw-0"
|
48331
|
+
})(["&.", "{position:absolute;display:block;visibility:visible;width:fit-content;max-width:min(500px,80vw);background-color:transparent;&-hidden{display:none;}&-mask{position:fixed;inset:0;pointer-events:none;&-hidden{display:none;}}&-motion{&-enter,&-appear{opacity:0;animation-duration:0.3s;animation-fill-mode:both;animation-timing-function:cubic-bezier(0.08,0.82,0.17,1);animation-play-state:paused;}&-leave{animation-duration:0.3s;animation-fill-mode:both;animation-timing-function:cubic-bezier(0.6,0.04,0.98,0.34);animation-play-state:paused;}&-enter-active,&-appear-active{animation-name:", ";animation-play-state:running;}&-leave-active{animation-name:", ";animation-play-state:running;}}}"], prefixCls, rcZoomIn, rcZoomOut);
|
48332
|
+
|
48333
|
+
/***/ }),
|
48334
|
+
|
48344
48335
|
/***/ "./src/modal/base.js":
|
48345
48336
|
/*!***************************!*\
|
48346
48337
|
!*** ./src/modal/base.js ***!
|
@@ -48918,15 +48909,15 @@ __webpack_require__.r(__webpack_exports__);
|
|
48918
48909
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
48919
48910
|
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! styled-components */ "styled-components");
|
48920
48911
|
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_2__);
|
48921
|
-
/* harmony import */ var
|
48922
|
-
/* harmony import */ var
|
48923
|
-
/* harmony import */ var
|
48924
|
-
/* harmony import */ var
|
48925
|
-
/* harmony import */ var
|
48926
|
-
/* harmony import */ var
|
48927
|
-
/* harmony import */ var
|
48928
|
-
/* harmony import */ var
|
48929
|
-
/* harmony import */ var
|
48912
|
+
/* harmony import */ var rc_util_lib_pickAttrs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rc-util/lib/pickAttrs */ "./node_modules/rc-util/lib/pickAttrs.js");
|
48913
|
+
/* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../typography */ "./src/typography/index.js");
|
48914
|
+
/* harmony import */ var _icon_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../icon.js */ "./src/icon.js");
|
48915
|
+
/* harmony import */ var _layout__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../layout */ "./src/layout/index.js");
|
48916
|
+
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../constants */ "./src/constants.js");
|
48917
|
+
/* harmony import */ var _hooks__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../hooks */ "./src/hooks/index.js");
|
48918
|
+
/* harmony import */ var _base_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./base.js */ "./src/modal/base.js");
|
48919
|
+
/* harmony import */ var _modal_button_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./modal_button.js */ "./src/modal/modal_button.js");
|
48920
|
+
/* harmony import */ var _styled_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./styled.js */ "./src/modal/styled.js");
|
48930
48921
|
// LICENSE_CODE ZON
|
48931
48922
|
|
48932
48923
|
|
@@ -48971,7 +48962,7 @@ var Modal2 = function Modal2(_ref) {
|
|
48971
48962
|
cancelProps = _ref.cancelProps,
|
48972
48963
|
icon = _ref.icon,
|
48973
48964
|
_ref$zIndex = _ref.zIndex,
|
48974
|
-
zIndex = _ref$zIndex === void 0 ?
|
48965
|
+
zIndex = _ref$zIndex === void 0 ? _constants__WEBPACK_IMPORTED_MODULE_7__.Z_INDEX.modal : _ref$zIndex,
|
48975
48966
|
children = _ref.children,
|
48976
48967
|
_ref$minHeight = _ref.minHeight,
|
48977
48968
|
minHeight = _ref$minHeight === void 0 ? 300 : _ref$minHeight,
|
@@ -48979,9 +48970,8 @@ var Modal2 = function Modal2(_ref) {
|
|
48979
48970
|
_ref$destroyOnClose = _ref.destroyOnClose,
|
48980
48971
|
destroyOnClose = _ref$destroyOnClose === void 0 ? true : _ref$destroyOnClose,
|
48981
48972
|
rest = _objectWithoutProperties(_ref, _excluded);
|
48982
|
-
var
|
48983
|
-
var
|
48984
|
-
var _useWindowSize = (0,_hooks__WEBPACK_IMPORTED_MODULE_9__.useWindowSize)(),
|
48973
|
+
var width = _base_js__WEBPACK_IMPORTED_MODULE_9__.MODAL_WIDTHS[size] || _base_js__WEBPACK_IMPORTED_MODULE_9__.MODAL_WIDTHS.md;
|
48974
|
+
var _useWindowSize = (0,_hooks__WEBPACK_IMPORTED_MODULE_8__.useWindowSize)(),
|
48985
48975
|
windowHeight = _useWindowSize.height;
|
48986
48976
|
var maxHeight = "".concat(Math.max(windowHeight * 0.8, minHeight), "px");
|
48987
48977
|
var dialogFooter = footer !== null ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(DialogFooter, {
|
@@ -48994,14 +48984,11 @@ var Modal2 = function Modal2(_ref) {
|
|
48994
48984
|
variant: footerVariant,
|
48995
48985
|
footer: footer
|
48996
48986
|
}) : null;
|
48997
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(
|
48998
|
-
$prefixCls: classNamePrefix,
|
48999
|
-
$theme: theme
|
49000
|
-
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(rc_dialog__WEBPACK_IMPORTED_MODULE_3__["default"], _extends({
|
48987
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_styled_js__WEBPACK_IMPORTED_MODULE_11__.StyledModal, _extends({
|
49001
48988
|
"data-testid": "modal_general",
|
49002
48989
|
visible: show,
|
49003
48990
|
onClose: onClose,
|
49004
|
-
|
48991
|
+
modalClassName: className,
|
49005
48992
|
prefixCls: classNamePrefix,
|
49006
48993
|
closable: closable,
|
49007
48994
|
closeIcon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(CloseIcon, null),
|
@@ -49026,7 +49013,7 @@ var Modal2 = function Modal2(_ref) {
|
|
49026
49013
|
keyboard: false,
|
49027
49014
|
animation: "zoom",
|
49028
49015
|
maskAnimation: "fade"
|
49029
|
-
}, (0,
|
49016
|
+
}, (0,rc_util_lib_pickAttrs__WEBPACK_IMPORTED_MODULE_3__["default"])(rest)), children);
|
49030
49017
|
};
|
49031
49018
|
Modal2.propTypes = {
|
49032
49019
|
className: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
@@ -49052,69 +49039,6 @@ Modal2.propTypes = {
|
|
49052
49039
|
icon: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
|
49053
49040
|
destroyOnClose: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)
|
49054
49041
|
};
|
49055
|
-
var prefixCls = function prefixCls(p) {
|
49056
|
-
return p.$prefixCls;
|
49057
|
-
};
|
49058
|
-
var theme = function theme(cb) {
|
49059
|
-
return function (p) {
|
49060
|
-
return cb(p.$theme);
|
49061
|
-
};
|
49062
|
-
};
|
49063
|
-
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);}}}"], prefixCls, theme(function (t) {
|
49064
|
-
return t.color.modal_shadow_bg;
|
49065
|
-
}), theme(function (t) {
|
49066
|
-
return t.color.modal2_shadow_bg;
|
49067
|
-
}), theme(function (t) {
|
49068
|
-
return t.spacing['05'];
|
49069
|
-
}), theme(function (t) {
|
49070
|
-
return t.color.bg;
|
49071
|
-
}), theme(function (t) {
|
49072
|
-
return t.spacing['02'];
|
49073
|
-
}), theme(function (t) {
|
49074
|
-
return t.font_family.sans;
|
49075
|
-
}), theme(function (t) {
|
49076
|
-
return t.shadow.large;
|
49077
|
-
}), theme(function (t) {
|
49078
|
-
return t.color.icon_button_icon_default;
|
49079
|
-
}), theme(function (t) {
|
49080
|
-
return t.color.icon_button_bg_hover;
|
49081
|
-
}), theme(function (t) {
|
49082
|
-
return t.color.icon_button_icon_hover;
|
49083
|
-
}), theme(function (t) {
|
49084
|
-
return t.spacing['03'];
|
49085
|
-
}), theme(function (t) {
|
49086
|
-
return t.spacing['08'];
|
49087
|
-
}), theme(function (t) {
|
49088
|
-
return t.spacing['03'];
|
49089
|
-
}), theme(function (t) {
|
49090
|
-
return t.spacing['07'];
|
49091
|
-
}), theme(function (t) {
|
49092
|
-
return t.spacing['03'];
|
49093
|
-
}), theme(function (t) {
|
49094
|
-
return t.spacing['03'];
|
49095
|
-
}), theme(function (t) {
|
49096
|
-
return t.spacing['06'];
|
49097
|
-
}), theme(function (t) {
|
49098
|
-
return t.spacing['07'];
|
49099
|
-
}), theme(function (t) {
|
49100
|
-
return t.spacing['08'];
|
49101
|
-
}), theme(function (t) {
|
49102
|
-
return t.spacing['07'];
|
49103
|
-
}), theme(function (t) {
|
49104
|
-
return t.color.text_secondary;
|
49105
|
-
}), theme(function (t) {
|
49106
|
-
return t.scrollbars.thin;
|
49107
|
-
}), theme(function (t) {
|
49108
|
-
return t.spacing['04'];
|
49109
|
-
}), theme(function (t) {
|
49110
|
-
return t.spacing['07'];
|
49111
|
-
}), theme(function (t) {
|
49112
|
-
return t.spacing['04'];
|
49113
|
-
}), theme(function (t) {
|
49114
|
-
return t.spacing['07'];
|
49115
|
-
}), theme(function (t) {
|
49116
|
-
return t.color.border_secondary;
|
49117
|
-
}));
|
49118
49042
|
var DialogHeader = function DialogHeader(_ref2) {
|
49119
49043
|
var icon = _ref2.icon,
|
49120
49044
|
title = _ref2.title,
|
@@ -49122,9 +49046,9 @@ var DialogHeader = function DialogHeader(_ref2) {
|
|
49122
49046
|
_prexifCls = _ref2.prefixCls;
|
49123
49047
|
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", {
|
49124
49048
|
className: "".concat(_prexifCls, "-title-wrap")
|
49125
|
-
}, icon, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(
|
49049
|
+
}, icon, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_4__.Header, {
|
49126
49050
|
color: "text"
|
49127
|
-
}, title)), !!subtitle && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(
|
49051
|
+
}, title)), !!subtitle && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_4__.Label, {
|
49128
49052
|
padding_right: "04",
|
49129
49053
|
color: "text_tertiary"
|
49130
49054
|
}, subtitle));
|
@@ -49142,7 +49066,7 @@ var DialogFooter = function DialogFooter(_ref3) {
|
|
49142
49066
|
var renderOk = !footer && !!(onOk && okLabel);
|
49143
49067
|
var renderFooter = !!footer || renderOk || renderCancel;
|
49144
49068
|
var FooterLayout = footerLayout[variant] || FooterHorizontal;
|
49145
|
-
return renderFooter && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(FooterLayout, null, footer, renderCancel && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(
|
49069
|
+
return renderFooter && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(FooterLayout, null, footer, renderCancel && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_modal_button_js__WEBPACK_IMPORTED_MODULE_10__.ModalButton, _extends({
|
49146
49070
|
size: "sm",
|
49147
49071
|
text: cancelLabel,
|
49148
49072
|
hotKey: "Escape",
|
@@ -49150,7 +49074,7 @@ var DialogFooter = function DialogFooter(_ref3) {
|
|
49150
49074
|
onClick: onCancel
|
49151
49075
|
}, cancelProps, {
|
49152
49076
|
"data-testid": "modal_footer_cancel_button"
|
49153
|
-
})), renderOk && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(
|
49077
|
+
})), renderOk && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_modal_button_js__WEBPACK_IMPORTED_MODULE_10__.ModalButton, _extends({
|
49154
49078
|
size: "sm",
|
49155
49079
|
text: okLabel,
|
49156
49080
|
hotKey: "Enter",
|
@@ -49160,7 +49084,7 @@ var DialogFooter = function DialogFooter(_ref3) {
|
|
49160
49084
|
"data-testid": "modal_footer_ok_button"
|
49161
49085
|
})));
|
49162
49086
|
};
|
49163
|
-
var FooterHorizontal = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(
|
49087
|
+
var FooterHorizontal = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_layout__WEBPACK_IMPORTED_MODULE_6__.Flex).attrs({
|
49164
49088
|
gap: '04',
|
49165
49089
|
align_items: 'center',
|
49166
49090
|
justify_content: 'flex-end'
|
@@ -49168,14 +49092,14 @@ var FooterHorizontal = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(
|
|
49168
49092
|
displayName: "FooterHorizontal",
|
49169
49093
|
componentId: "sc-1p3wums-0"
|
49170
49094
|
})([""]);
|
49171
|
-
var FooterFullHorizontal = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(
|
49095
|
+
var FooterFullHorizontal = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_layout__WEBPACK_IMPORTED_MODULE_6__.Flex).attrs({
|
49172
49096
|
gap: '04',
|
49173
49097
|
align_items: 'space-between'
|
49174
49098
|
}).withConfig({
|
49175
49099
|
displayName: "FooterFullHorizontal",
|
49176
49100
|
componentId: "sc-1p3wums-1"
|
49177
49101
|
})(["button{width:100%;}"]);
|
49178
|
-
var FooterVertical = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(
|
49102
|
+
var FooterVertical = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_layout__WEBPACK_IMPORTED_MODULE_6__.Flex).attrs({
|
49179
49103
|
gap: '04',
|
49180
49104
|
flex_direction: 'column'
|
49181
49105
|
}).withConfig({
|
@@ -49188,7 +49112,7 @@ var footerLayout = {
|
|
49188
49112
|
vertical: FooterVertical
|
49189
49113
|
};
|
49190
49114
|
var CloseIcon = function CloseIcon() {
|
49191
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(
|
49115
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon_js__WEBPACK_IMPORTED_MODULE_5__.Icon, {
|
49192
49116
|
name: "Close",
|
49193
49117
|
size: "xs",
|
49194
49118
|
"data-testid": "modal_header_close_button"
|
@@ -49265,6 +49189,115 @@ var getHotKeyIcon = function getHotKeyIcon(hotKey) {
|
|
49265
49189
|
|
49266
49190
|
/***/ }),
|
49267
49191
|
|
49192
|
+
/***/ "./src/modal/styled.js":
|
49193
|
+
/*!*****************************!*\
|
49194
|
+
!*** ./src/modal/styled.js ***!
|
49195
|
+
\*****************************/
|
49196
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
49197
|
+
|
49198
|
+
"use strict";
|
49199
|
+
__webpack_require__.r(__webpack_exports__);
|
49200
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
49201
|
+
/* harmony export */ StyledModal: () => (/* binding */ StyledModal)
|
49202
|
+
/* harmony export */ });
|
49203
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
49204
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
49205
|
+
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! styled-components */ "styled-components");
|
49206
|
+
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_1__);
|
49207
|
+
/* harmony import */ var rc_dialog__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rc-dialog */ "./node_modules/rc-dialog/es/index.js");
|
49208
|
+
// LICENSE_CODE ZON
|
49209
|
+
|
49210
|
+
|
49211
|
+
/*jslint react:true*/
|
49212
|
+
var _excluded = ["className", "modalClassName"];
|
49213
|
+
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); }
|
49214
|
+
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; }
|
49215
|
+
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; }
|
49216
|
+
|
49217
|
+
|
49218
|
+
|
49219
|
+
var ModalAdaptor = function ModalAdaptor(_ref) {
|
49220
|
+
var className = _ref.className,
|
49221
|
+
modalClassName = _ref.modalClassName,
|
49222
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
49223
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(rc_dialog__WEBPACK_IMPORTED_MODULE_2__["default"], _extends({
|
49224
|
+
className: modalClassName,
|
49225
|
+
rootClassName: className
|
49226
|
+
}, rest));
|
49227
|
+
};
|
49228
|
+
var rcFadeIn = (0,styled_components__WEBPACK_IMPORTED_MODULE_1__.keyframes)(["0%{opacity:0;}100%{opacity:1;}"]);
|
49229
|
+
var rcFadeOut = (0,styled_components__WEBPACK_IMPORTED_MODULE_1__.keyframes)(["0%{opacity:1;}100%{opacity:0;}"]);
|
49230
|
+
var rcZoomIn = (0,styled_components__WEBPACK_IMPORTED_MODULE_1__.keyframes)(["0%{opacity:0;transform:scale(0,0);}100%{opacity:1;transform:scale(1,1);}"]);
|
49231
|
+
var rcZoomOut = (0,styled_components__WEBPACK_IMPORTED_MODULE_1__.keyframes)(["0%{opacity:1;transform:scale(1,1);}100%{opacity:0;transform:scale(0,0);}"]);
|
49232
|
+
var prefixCls = function prefixCls(p) {
|
49233
|
+
return p.prefixCls;
|
49234
|
+
};
|
49235
|
+
var theme = function theme(cb) {
|
49236
|
+
return function (p) {
|
49237
|
+
return cb(p.theme);
|
49238
|
+
};
|
49239
|
+
};
|
49240
|
+
var StyledModal = styled_components__WEBPACK_IMPORTED_MODULE_1___default()(ModalAdaptor).withConfig({
|
49241
|
+
displayName: "StyledModal",
|
49242
|
+
componentId: "sc-flnd5c-0"
|
49243
|
+
})(["&.", "-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,&-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;}&-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;}&-enter-active,&-appear-active{animation-name:", ";animation-play-state:running;}&-leave-active{animation-name:", ";animation-play-state:running;}}&-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,&-appear{opacity:0;animation-duration:0.3s;animation-fill-mode:both;animation-timing-function:cubic-bezier(0.08,0.82,0.17,1);animation-play-state:paused;}&-leave{animation-duration:0.3s;animation-fill-mode:both;animation-timing-function:cubic-bezier(0.6,0.04,0.98,0.34);animation-play-state:paused;}&-enter-active,&-appear-active{animation-name:", ";animation-play-state:running;}&-leave-active{animation-name:", ";animation-play-state:running;}}}"], prefixCls, prefixCls, theme(function (t) {
|
49244
|
+
return t.color.modal_shadow_bg;
|
49245
|
+
}), theme(function (t) {
|
49246
|
+
return t.color.modal2_shadow_bg;
|
49247
|
+
}), rcFadeIn, rcFadeOut, theme(function (t) {
|
49248
|
+
return t.spacing['05'];
|
49249
|
+
}), theme(function (t) {
|
49250
|
+
return t.color.bg;
|
49251
|
+
}), theme(function (t) {
|
49252
|
+
return t.spacing['02'];
|
49253
|
+
}), theme(function (t) {
|
49254
|
+
return t.font_family.sans;
|
49255
|
+
}), theme(function (t) {
|
49256
|
+
return t.shadow.large;
|
49257
|
+
}), theme(function (t) {
|
49258
|
+
return t.color.icon_button_icon_default;
|
49259
|
+
}), theme(function (t) {
|
49260
|
+
return t.color.icon_button_bg_hover;
|
49261
|
+
}), theme(function (t) {
|
49262
|
+
return t.color.icon_button_icon_hover;
|
49263
|
+
}), theme(function (t) {
|
49264
|
+
return t.spacing['03'];
|
49265
|
+
}), theme(function (t) {
|
49266
|
+
return t.spacing['08'];
|
49267
|
+
}), theme(function (t) {
|
49268
|
+
return t.spacing['03'];
|
49269
|
+
}), theme(function (t) {
|
49270
|
+
return t.spacing['07'];
|
49271
|
+
}), theme(function (t) {
|
49272
|
+
return t.spacing['03'];
|
49273
|
+
}), theme(function (t) {
|
49274
|
+
return t.spacing['03'];
|
49275
|
+
}), theme(function (t) {
|
49276
|
+
return t.spacing['06'];
|
49277
|
+
}), theme(function (t) {
|
49278
|
+
return t.spacing['07'];
|
49279
|
+
}), theme(function (t) {
|
49280
|
+
return t.spacing['08'];
|
49281
|
+
}), theme(function (t) {
|
49282
|
+
return t.spacing['07'];
|
49283
|
+
}), theme(function (t) {
|
49284
|
+
return t.color.text_secondary;
|
49285
|
+
}), theme(function (t) {
|
49286
|
+
return t.scrollbars.thin;
|
49287
|
+
}), theme(function (t) {
|
49288
|
+
return t.spacing['04'];
|
49289
|
+
}), theme(function (t) {
|
49290
|
+
return t.spacing['07'];
|
49291
|
+
}), theme(function (t) {
|
49292
|
+
return t.spacing['04'];
|
49293
|
+
}), theme(function (t) {
|
49294
|
+
return t.spacing['07'];
|
49295
|
+
}), theme(function (t) {
|
49296
|
+
return t.color.border_secondary;
|
49297
|
+
}), rcZoomIn, rcZoomOut);
|
49298
|
+
|
49299
|
+
/***/ }),
|
49300
|
+
|
49268
49301
|
/***/ "./src/modal/util.js":
|
49269
49302
|
/*!***************************!*\
|
49270
49303
|
!*** ./src/modal/util.js ***!
|
@@ -49655,19 +49688,17 @@ __webpack_require__.r(__webpack_exports__);
|
|
49655
49688
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
|
49656
49689
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
49657
49690
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
49658
|
-
/* harmony import */ var
|
49659
|
-
/* harmony import */ var
|
49660
|
-
/* harmony import */ var
|
49661
|
-
/* harmony import */ var
|
49662
|
-
/* harmony import */ var
|
49663
|
-
/* harmony import */ var
|
49664
|
-
/* harmony import */ var _hooks__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../hooks */ "./src/hooks/index.js");
|
49665
|
-
/* harmony import */ var _placements__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./placements */ "./src/popover/placements.js");
|
49691
|
+
/* harmony import */ var dom_helpers_listen__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! dom-helpers/listen */ "./node_modules/dom-helpers/esm/listen.js");
|
49692
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
|
49693
|
+
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../constants */ "./src/constants.js");
|
49694
|
+
/* harmony import */ var _hooks__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../hooks */ "./src/hooks/index.js");
|
49695
|
+
/* harmony import */ var _placements__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./placements */ "./src/popover/placements.js");
|
49696
|
+
/* harmony import */ var _styled__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./styled */ "./src/popover/styled.js");
|
49666
49697
|
// LICENSE_CODE ZON
|
49667
49698
|
|
49668
49699
|
|
49669
49700
|
/*jslint react:true*/
|
49670
|
-
var _excluded = ["className", "classNamePrefix", "style", "trigger", "visible", "placement", "popover", "onVisibleChange", "afterVisibleChange", "children", "hideOnScroll", "getScrollDOMNode", "destroyOnClose"];
|
49701
|
+
var _excluded = ["className", "classNamePrefix", "style", "trigger", "visible", "placement", "popover", "onVisibleChange", "afterVisibleChange", "children", "hideOnScroll", "getScrollDOMNode", "destroyOnClose", "zIndex"];
|
49671
49702
|
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
49672
49703
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
49673
49704
|
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
@@ -49684,7 +49715,6 @@ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t =
|
|
49684
49715
|
|
49685
49716
|
|
49686
49717
|
|
49687
|
-
|
49688
49718
|
var _Popover = function Popover(_ref) {
|
49689
49719
|
var className = _ref.className,
|
49690
49720
|
_ref$classNamePrefix = _ref.classNamePrefix,
|
@@ -49702,10 +49732,11 @@ var _Popover = function Popover(_ref) {
|
|
49702
49732
|
getScrollDOMNode = _ref.getScrollDOMNode,
|
49703
49733
|
_ref$destroyOnClose = _ref.destroyOnClose,
|
49704
49734
|
destroyOnClose = _ref$destroyOnClose === void 0 ? true : _ref$destroyOnClose,
|
49735
|
+
_ref$zIndex = _ref.zIndex,
|
49736
|
+
zIndex = _ref$zIndex === void 0 ? _constants__WEBPACK_IMPORTED_MODULE_4__.Z_INDEX.popover : _ref$zIndex,
|
49705
49737
|
rest = _objectWithoutProperties(_ref, _excluded);
|
49706
|
-
var
|
49707
|
-
var
|
49708
|
-
var mouseLeaveDelay = (0,_util__WEBPACK_IMPORTED_MODULE_5__.firstDefined)(rest.hideDelay, _Popover.hideDelay);
|
49738
|
+
var mouseEnterDelay = (0,_util__WEBPACK_IMPORTED_MODULE_3__.firstDefined)(rest.showDelay, _Popover.showDelay);
|
49739
|
+
var mouseLeaveDelay = (0,_util__WEBPACK_IMPORTED_MODULE_3__.firstDefined)(rest.hideDelay, _Popover.hideDelay);
|
49709
49740
|
var popupMotion = {
|
49710
49741
|
motionName: "".concat(classNamePrefix, "-motion"),
|
49711
49742
|
motionAppear: true,
|
@@ -49713,7 +49744,7 @@ var _Popover = function Popover(_ref) {
|
|
49713
49744
|
motionLeave: true,
|
49714
49745
|
motionDeadline: 500
|
49715
49746
|
};
|
49716
|
-
var _useStateWithEffect = (0,
|
49747
|
+
var _useStateWithEffect = (0,_hooks__WEBPACK_IMPORTED_MODULE_5__.useStateWithEffect)(visible),
|
49717
49748
|
_useStateWithEffect2 = _slicedToArray(_useStateWithEffect, 2),
|
49718
49749
|
popupVisible = _useStateWithEffect2[0],
|
49719
49750
|
setPopupVisible = _useStateWithEffect2[1];
|
@@ -49725,15 +49756,12 @@ var _Popover = function Popover(_ref) {
|
|
49725
49756
|
if (!hideOnScroll || !popupVisible) return;
|
49726
49757
|
var htmlElement = typeof getScrollDOMNode == 'function' ? getScrollDOMNode() : window;
|
49727
49758
|
if (htmlElement) {
|
49728
|
-
return (0,
|
49759
|
+
return (0,dom_helpers_listen__WEBPACK_IMPORTED_MODULE_2__["default"])(htmlElement, 'scroll', function () {
|
49729
49760
|
return onPopupVisibleChange(false);
|
49730
49761
|
});
|
49731
49762
|
}
|
49732
49763
|
}, [hideOnScroll, popupVisible, getScrollDOMNode, onPopupVisibleChange]);
|
49733
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(
|
49734
|
-
$prefixCls: classNamePrefix,
|
49735
|
-
$theme: theme
|
49736
|
-
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_rc_component_trigger__WEBPACK_IMPORTED_MODULE_3__["default"], {
|
49764
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_styled__WEBPACK_IMPORTED_MODULE_7__.StyledPopover, {
|
49737
49765
|
prefixCls: classNamePrefix,
|
49738
49766
|
mask: true,
|
49739
49767
|
action: trigger,
|
@@ -49743,23 +49771,23 @@ var _Popover = function Popover(_ref) {
|
|
49743
49771
|
popupStyle: style,
|
49744
49772
|
popupVisible: popupVisible,
|
49745
49773
|
onPopupVisibleChange: onPopupVisibleChange,
|
49746
|
-
builtinPlacements:
|
49747
|
-
zIndex:
|
49774
|
+
builtinPlacements: _placements__WEBPACK_IMPORTED_MODULE_6__.placements,
|
49775
|
+
zIndex: zIndex,
|
49748
49776
|
afterPopupVisibleChange: afterVisibleChange,
|
49749
49777
|
mouseEnterDelay: mouseEnterDelay,
|
49750
49778
|
mouseLeaveDelay: mouseLeaveDelay,
|
49751
49779
|
popup: popover,
|
49752
|
-
|
49753
|
-
}, children)
|
49780
|
+
autoDestroy: destroyOnClose
|
49781
|
+
}, children);
|
49754
49782
|
};
|
49755
49783
|
|
49756
49784
|
_Popover.propTypes = {
|
49757
49785
|
className: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
49758
49786
|
classNamePrefix: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
49759
49787
|
style: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
|
49760
|
-
trigger: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([
|
49788
|
+
trigger: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([_constants__WEBPACK_IMPORTED_MODULE_4__.PT_TRIGGER, prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf(_constants__WEBPACK_IMPORTED_MODULE_4__.PT_TRIGGER)]),
|
49761
49789
|
visible: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
49762
|
-
placement:
|
49790
|
+
placement: _constants__WEBPACK_IMPORTED_MODULE_4__.PT_TOOLTIP_PLACEMENT,
|
49763
49791
|
popover: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
|
49764
49792
|
showDelay: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
49765
49793
|
hideDelay: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
@@ -49767,25 +49795,79 @@ _Popover.propTypes = {
|
|
49767
49795
|
afterVisibleChange: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
49768
49796
|
hideOnScroll: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
49769
49797
|
getScrollDOMNode: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
49770
|
-
destroyOnClose: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)
|
49798
|
+
destroyOnClose: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
49799
|
+
zIndex: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)
|
49771
49800
|
};
|
49772
49801
|
_Popover.showDelay = 0.1;
|
49773
49802
|
_Popover.hideDelay = 0.1;
|
49803
|
+
|
49804
|
+
/***/ }),
|
49805
|
+
|
49806
|
+
/***/ "./src/popover/styled.js":
|
49807
|
+
/*!*******************************!*\
|
49808
|
+
!*** ./src/popover/styled.js ***!
|
49809
|
+
\*******************************/
|
49810
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
49811
|
+
|
49812
|
+
"use strict";
|
49813
|
+
__webpack_require__.r(__webpack_exports__);
|
49814
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
49815
|
+
/* harmony export */ StyledPopover: () => (/* binding */ StyledPopover)
|
49816
|
+
/* harmony export */ });
|
49817
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
49818
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
49819
|
+
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! styled-components */ "styled-components");
|
49820
|
+
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_1__);
|
49821
|
+
/* harmony import */ var _rc_component_trigger__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @rc-component/trigger */ "./node_modules/@rc-component/trigger/es/index.js");
|
49822
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
|
49823
|
+
// LICENSE_CODE ZON
|
49824
|
+
|
49825
|
+
|
49826
|
+
/*jslint react:true*/
|
49827
|
+
var _excluded = ["className", "popupClassName"];
|
49828
|
+
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); }
|
49829
|
+
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; }
|
49830
|
+
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; }
|
49831
|
+
|
49832
|
+
|
49833
|
+
|
49834
|
+
|
49835
|
+
var PopoverAdaptor = function PopoverAdaptor(_ref) {
|
49836
|
+
var className = _ref.className,
|
49837
|
+
popupClassName = _ref.popupClassName,
|
49838
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
49839
|
+
// Motion
|
49840
|
+
var maskMotion = {
|
49841
|
+
motionName: "".concat(className, " .").concat(rest.prefixCls, "-mask"),
|
49842
|
+
motionAppear: false,
|
49843
|
+
motionEnter: true,
|
49844
|
+
motionLeave: false
|
49845
|
+
};
|
49846
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_rc_component_trigger__WEBPACK_IMPORTED_MODULE_2__["default"], _extends({
|
49847
|
+
popupClassName: (0,_util__WEBPACK_IMPORTED_MODULE_3__.classNames)(null, null, className, popupClassName),
|
49848
|
+
maskMotion: maskMotion
|
49849
|
+
}, rest));
|
49850
|
+
};
|
49851
|
+
var rcZoomIn = (0,styled_components__WEBPACK_IMPORTED_MODULE_1__.keyframes)(["0%{opacity:0;transform:scale(0,0);}100%{opacity:1;transform:scale(1,1);}"]);
|
49852
|
+
var rcZoomOut = (0,styled_components__WEBPACK_IMPORTED_MODULE_1__.keyframes)(["0%{opacity:1;transform:scale(1,1);}100%{opacity:0;transform:scale(0,0);}"]);
|
49774
49853
|
var prefixCls = function prefixCls(p) {
|
49775
|
-
return p
|
49854
|
+
return p.prefixCls;
|
49776
49855
|
};
|
49777
49856
|
var theme = function theme(cb) {
|
49778
49857
|
return function (p) {
|
49779
|
-
return cb(p
|
49858
|
+
return cb(p.theme);
|
49780
49859
|
};
|
49781
49860
|
};
|
49782
|
-
var
|
49861
|
+
var StyledPopover = styled_components__WEBPACK_IMPORTED_MODULE_1___default()(PopoverAdaptor).withConfig({
|
49862
|
+
displayName: "StyledPopover",
|
49863
|
+
componentId: "sc-5py21r-0"
|
49864
|
+
})(["&.", "{position:absolute;display:block;visibility:visible;width:fit-content;border-radius:4px;border:1px solid ", ";background:", ";box-shadow:", ";&-hidden{display:none;}&-mask{position:fixed;inset:0;pointer-events:none;&-hidden{display:none;}}&-motion{&-enter,&-appear{opacity:0;animation-duration:0.3s;animation-fill-mode:both;animation-timing-function:cubic-bezier(0.08,0.82,0.17,1);animation-play-state:paused;}&-leave{animation-duration:0.3s;animation-fill-mode:both;animation-timing-function:cubic-bezier(0.6,0.04,0.98,0.34);animation-play-state:paused;}&-enter-active,&-appear-active{animation-name:", ";animation-play-state:running;}&-leave-active{animation-name:", ";animation-play-state:running;}}}"], prefixCls, theme(function (t) {
|
49783
49865
|
return t.color.popover_border;
|
49784
49866
|
}), theme(function (t) {
|
49785
49867
|
return t.color.bg;
|
49786
49868
|
}), theme(function (t) {
|
49787
49869
|
return t.color.popover_shadow;
|
49788
|
-
}));
|
49870
|
+
}), rcZoomIn, rcZoomOut);
|
49789
49871
|
|
49790
49872
|
/***/ }),
|
49791
49873
|
|
@@ -50368,6 +50450,123 @@ _tab__WEBPACK_IMPORTED_MODULE_1__["default"].Group = _group__WEBPACK_IMPORTED_MO
|
|
50368
50450
|
|
50369
50451
|
|
50370
50452
|
|
50453
|
+
/***/ }),
|
50454
|
+
|
50455
|
+
/***/ "./src/tab/styled.js":
|
50456
|
+
/*!***************************!*\
|
50457
|
+
!*** ./src/tab/styled.js ***!
|
50458
|
+
\***************************/
|
50459
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
50460
|
+
|
50461
|
+
"use strict";
|
50462
|
+
__webpack_require__.r(__webpack_exports__);
|
50463
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
50464
|
+
/* harmony export */ StyledTabs: () => (/* binding */ StyledTabs)
|
50465
|
+
/* harmony export */ });
|
50466
|
+
/* harmony import */ var rc_tabs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rc-tabs */ "./node_modules/rc-tabs/es/index.js");
|
50467
|
+
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! styled-components */ "styled-components");
|
50468
|
+
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_1__);
|
50469
|
+
// LICENSE_CODE ZON
|
50470
|
+
|
50471
|
+
|
50472
|
+
/*jslint react:true*/
|
50473
|
+
|
50474
|
+
|
50475
|
+
var prefixCls = function prefixCls(p) {
|
50476
|
+
return p.prefixCls;
|
50477
|
+
};
|
50478
|
+
var theme = function theme(cb) {
|
50479
|
+
return function (p) {
|
50480
|
+
return cb(p.theme);
|
50481
|
+
};
|
50482
|
+
};
|
50483
|
+
var StyledTabs = styled_components__WEBPACK_IMPORTED_MODULE_1___default()(rc_tabs__WEBPACK_IMPORTED_MODULE_0__["default"]).withConfig({
|
50484
|
+
displayName: "StyledTabs",
|
50485
|
+
componentId: "sc-1skhq03-0"
|
50486
|
+
})(["&.", "{box-sizing:border-box;margin:0;padding:0;list-style:none;display:flex;&-top,&-bottom{flex-direction:column;.", "-nav-list{flex-direction:row;}}&-left,&-right{flex-direction:row;.", "-nav-list{flex-direction:column;}}&-main{.", "-nav-list{width:fit-content;align-items:center;gap:24px;}.", "-tab{.", "-tab-btn{height:36px;padding:0;justify-content:center;gap:4px;color:", ";box-shadow:0px -1px 0px 0px ", " inset;font-size:", ";font-weight:", ";&:hover{color:", ";box-shadow:0px -2px 0px 0px ", " inset;}}&-active{.", "-tab-btn,.", "-tab-btn:hover{color:", ";box-shadow:0px -2px 0px 0px ", " inset;}}&-disabled{.", "-tab-btn,.", "-tab-btn:hover{color:", ";box-shadow:0px -1px 0px 0px ", " inset;}}}}&-underline{.", "-nav-list{width:fit-content;align-items:center;}.", "-tab{.", "-tab-btn{height:24px;padding:0 16px;justify-content:center;gap:4px;color:", ";box-shadow:0px -1px 0px 0px ", " inset;font-size:", ";font-weight:", ";&:hover{color:", ";box-shadow:0px -2px 0px 0px ", " inset;}}&-active{.", "-tab-btn,.", "-tab-btn:hover{color:", ";box-shadow:0px -2px 0px 0px ", " inset;}}&-disabled{.", "-tab-btn,.", "-tab-btn:hover{color:", ";box-shadow:0px -1px 0px 0px ", " inset;}}}}&-contain{.", "-nav-list{width:fit-content;padding:2px;gap:2px;border-radius:4px;background:", ";align-items:center;}.", "-tab{.", "-tab-btn{height:32px;padding:0px 8px;justify-content:center;gap:6px;border-radius:4px;color:", ";font-size:", ";font-weight:", ";&:hover{color:", ";background:", ";}}&-active{.", "-tab-btn{background:", ";border:1px solid ", ";box-shadow:", ";color:", ";}}&-disabled{.", "-tab-btn,.", "-tab-btn:hover{color:", ";background:", ";font-weight:", ";}}}}&-vertical{.", "-nav-list{width:100%;align-items:stretch;}.", "-tab{.", "-tab-btn{width:100%;height:40px;padding:0 12px;justify-content:flex-start;gap:4px;border-radius:0 4px 4px 0;border-left:1px solid transparent;color:", ";overflow-x:clip;text-overflow:ellipsis;&:hover{border-left-color:", ";}}&-active{.", "-tab-btn{background:", ";border-left-color:", ";}}&-disabled{.", "-tab-btn,.", "-tab-btn:hover{color:", ";border-left-color:transparent;}}}}}.", "{&-nav{position:relative;display:flex;flex:none;align-items:center;&-wrap{position:relative;display:flex;flex:auto;align-self:stretch;white-space:nowrap;transform:translate(0);box-sizing:border-box;width:100%;}&-list{position:relative;display:flex;transition:opacity 0.3s;justify-content:flex-start;box-sizing:border-box;}&-operations{display:flex;align-self:stretch;&-hidden{position:absolute;visibility:hidden;pointer-events:none;}}}&-content-holder{flex:auto;min-width:0;min-height:0;box-sizing:border-box;}&-content{position:relative;width:100%;}&-tabpane{outline:none;&-hidden{display:none;}}&-tab{&-btn{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;border:0 none;background:transparent;min-width:0;width:fit-content;cursor:pointer;white-space:nowrap;font-family:", ";line-height:", ";letter-spacing:", ";}&-disabled{.", "-tab-btn{cursor:not-allowed;}}}&-ink-bar{display:none;position:absolute;pointer-events:none;}}"], prefixCls, prefixCls, prefixCls, prefixCls, prefixCls, prefixCls, theme(function (t) {
|
50487
|
+
return t.color.text;
|
50488
|
+
}), theme(function (t) {
|
50489
|
+
return t.color.border_teritary;
|
50490
|
+
}), theme(function (t) {
|
50491
|
+
return t.font_size.md;
|
50492
|
+
}), theme(function (t) {
|
50493
|
+
return t.font_weight.semibold;
|
50494
|
+
}), theme(function (t) {
|
50495
|
+
return t.color.text;
|
50496
|
+
}), theme(function (t) {
|
50497
|
+
return t.color.border;
|
50498
|
+
}), prefixCls, prefixCls, theme(function (t) {
|
50499
|
+
return t.color.text_primary;
|
50500
|
+
}), theme(function (t) {
|
50501
|
+
return t.color.border_primary;
|
50502
|
+
}), prefixCls, prefixCls, theme(function (t) {
|
50503
|
+
return t.color.text_disabled;
|
50504
|
+
}), theme(function (t) {
|
50505
|
+
return t.color.border_disabled;
|
50506
|
+
}), prefixCls, prefixCls, prefixCls, theme(function (t) {
|
50507
|
+
return t.color.text_tertiary;
|
50508
|
+
}), theme(function (t) {
|
50509
|
+
return t.color.border_secondary;
|
50510
|
+
}), theme(function (t) {
|
50511
|
+
return t.font_size.xs;
|
50512
|
+
}), theme(function (t) {
|
50513
|
+
return t.font_weight.regular;
|
50514
|
+
}), theme(function (t) {
|
50515
|
+
return t.color.text_tertiary;
|
50516
|
+
}), theme(function (t) {
|
50517
|
+
return t.color.border;
|
50518
|
+
}), prefixCls, prefixCls, theme(function (t) {
|
50519
|
+
return t.color.text_primary;
|
50520
|
+
}), theme(function (t) {
|
50521
|
+
return t.color.border_primary;
|
50522
|
+
}), prefixCls, prefixCls, theme(function (t) {
|
50523
|
+
return t.color.text_disabled;
|
50524
|
+
}), theme(function (t) {
|
50525
|
+
return t.color.border_disabled;
|
50526
|
+
}), prefixCls, theme(function (t) {
|
50527
|
+
return t.color.tab_contained_bg;
|
50528
|
+
}), prefixCls, prefixCls, theme(function (t) {
|
50529
|
+
return t.color.text_tertiary;
|
50530
|
+
}), theme(function (t) {
|
50531
|
+
return t.font_size.md;
|
50532
|
+
}), theme(function (t) {
|
50533
|
+
return t.font_weight.semibold;
|
50534
|
+
}), theme(function (t) {
|
50535
|
+
return t.color.text_tertiary;
|
50536
|
+
}), theme(function (t) {
|
50537
|
+
return t.color.bg_fill_primary_secondary;
|
50538
|
+
}), prefixCls, theme(function (t) {
|
50539
|
+
return t.color.bg;
|
50540
|
+
}), theme(function (t) {
|
50541
|
+
return t.color.border;
|
50542
|
+
}), theme(function (t) {
|
50543
|
+
return t.shadow.meduim;
|
50544
|
+
}), theme(function (t) {
|
50545
|
+
return t.color.text_primary;
|
50546
|
+
}), prefixCls, prefixCls, theme(function (t) {
|
50547
|
+
return t.color.text_disabled;
|
50548
|
+
}), theme(function (t) {
|
50549
|
+
return t.color.bg_fill_teritary;
|
50550
|
+
}), theme(function (t) {
|
50551
|
+
return t.font_weight.regular;
|
50552
|
+
}), prefixCls, prefixCls, prefixCls, theme(function (t) {
|
50553
|
+
return t.color.text;
|
50554
|
+
}), theme(function (t) {
|
50555
|
+
return t.color.border;
|
50556
|
+
}), prefixCls, theme(function (t) {
|
50557
|
+
return t.color.bg_fill_primary_secondary;
|
50558
|
+
}), theme(function (t) {
|
50559
|
+
return t.color.bg_fill_primary_secondary;
|
50560
|
+
}), prefixCls, prefixCls, theme(function (t) {
|
50561
|
+
return t.color.text_disabled;
|
50562
|
+
}), prefixCls, theme(function (t) {
|
50563
|
+
return t.font_family.sans;
|
50564
|
+
}), theme(function (t) {
|
50565
|
+
return t.line_height.none;
|
50566
|
+
}), theme(function (t) {
|
50567
|
+
return t.letter_spacing.normal;
|
50568
|
+
}), prefixCls);
|
50569
|
+
|
50371
50570
|
/***/ }),
|
50372
50571
|
|
50373
50572
|
/***/ "./src/tab/tab.js":
|
@@ -50497,12 +50696,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
50497
50696
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
|
50498
50697
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
50499
50698
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
50500
|
-
/* harmony import */ var
|
50501
|
-
/* harmony import */ var
|
50502
|
-
/* harmony import */ var
|
50503
|
-
/* harmony import */ var
|
50504
|
-
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
|
50505
|
-
/* harmony import */ var _use_legacy_items__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./use_legacy_items */ "./src/tab/use_legacy_items.js");
|
50699
|
+
/* harmony import */ var rc_util_lib_pickAttrs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rc-util/lib/pickAttrs */ "./node_modules/rc-util/lib/pickAttrs.js");
|
50700
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
|
50701
|
+
/* harmony import */ var _styled__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./styled */ "./src/tab/styled.js");
|
50702
|
+
/* harmony import */ var _use_legacy_items__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./use_legacy_items */ "./src/tab/use_legacy_items.js");
|
50506
50703
|
// LICENSE_CODE ZON
|
50507
50704
|
|
50508
50705
|
|
@@ -50517,7 +50714,6 @@ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t =
|
|
50517
50714
|
|
50518
50715
|
|
50519
50716
|
|
50520
|
-
|
50521
50717
|
var Tabs = function Tabs(_ref) {
|
50522
50718
|
var className = _ref.className,
|
50523
50719
|
_ref$classNamePrefix = _ref.classNamePrefix,
|
@@ -50541,14 +50737,10 @@ var Tabs = function Tabs(_ref) {
|
|
50541
50737
|
activeKey = _ref.activeKey,
|
50542
50738
|
renderTabBar = _ref.renderTabBar,
|
50543
50739
|
rest = _objectWithoutProperties(_ref, _excluded);
|
50544
|
-
var
|
50545
|
-
|
50546
|
-
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(TabsStyle, {
|
50547
|
-
$prefixCls: classNamePrefix,
|
50548
|
-
$theme: theme
|
50549
|
-
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(rc_tabs__WEBPACK_IMPORTED_MODULE_2__["default"], _extends({}, (0,rc_util_lib_pickAttrs__WEBPACK_IMPORTED_MODULE_3__["default"])(rest), {
|
50740
|
+
var mergedItems = (0,_use_legacy_items__WEBPACK_IMPORTED_MODULE_5__.useLegacyItems)(items, children);
|
50741
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_styled__WEBPACK_IMPORTED_MODULE_4__.StyledTabs, _extends({}, (0,rc_util_lib_pickAttrs__WEBPACK_IMPORTED_MODULE_2__["default"])(rest), {
|
50550
50742
|
items: mergedItems,
|
50551
|
-
className: (0,
|
50743
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_3__.classNames)(null, null, className, "".concat(classNamePrefix, "-").concat(variant)),
|
50552
50744
|
popupClassName: popupClassName,
|
50553
50745
|
style: style
|
50554
50746
|
// more={{
|
@@ -50569,7 +50761,7 @@ var Tabs = function Tabs(_ref) {
|
|
50569
50761
|
locale: locale,
|
50570
50762
|
activeKey: activeKey,
|
50571
50763
|
renderTabBar: renderTabBar
|
50572
|
-
}))
|
50764
|
+
}));
|
50573
50765
|
};
|
50574
50766
|
Tabs.propTypes = {
|
50575
50767
|
className: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
@@ -50595,97 +50787,6 @@ Tabs.propTypes = {
|
|
50595
50787
|
activeKey: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
50596
50788
|
renderTabBar: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)
|
50597
50789
|
};
|
50598
|
-
var prefixCls = function prefixCls(p) {
|
50599
|
-
return p.$prefixCls;
|
50600
|
-
};
|
50601
|
-
var theme = function theme(cb) {
|
50602
|
-
return function (p) {
|
50603
|
-
return cb(p.$theme);
|
50604
|
-
};
|
50605
|
-
};
|
50606
|
-
var TabsStyle = (0,styled_components__WEBPACK_IMPORTED_MODULE_4__.createGlobalStyle)([".", "{box-sizing:border-box;margin:0;padding:0;list-style:none;display:flex;&-top,&-bottom{flex-direction:column;.", "-nav-list{flex-direction:row;}}&-left,&-right{flex-direction:row;.", "-nav-list{flex-direction:column;}}&-nav{position:relative;display:flex;flex:none;align-items:center;&-wrap{position:relative;display:flex;flex:auto;align-self:stretch;white-space:nowrap;transform:translate(0);}&-list{position:relative;display:flex;transition:opacity 0.3s;justify-content:flex-start;align-items:center;box-sizing:border-box;width:fit-content;}&-operations{display:flex;align-self:stretch;&-hidden{position:absolute;visibility:hidden;pointer-events:none;}}}&-content-holder{flex:auto;min-width:0;min-height:0;box-sizing:border-box;}&-content{position:relative;width:100%;}&-tabpane{outline:none;&-hidden{display:none;}}&-tab{&-btn{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;border:0 none;background:transparent;min-width:0;width:fit-content;cursor:pointer;white-space:nowrap;font-family:", ";line-height:", ";letter-spacing:", ";}&-disabled{.", "-tab-btn{cursor:not-allowed;}}}&-main{.", "-nav-list{gap:24px;}.", "-tab{.", "-tab-btn{height:36px;padding:0;justify-content:center;gap:4px;color:", ";box-shadow:0px -1px 0px 0px ", " inset;font-size:", ";font-weight:", ";&:hover{color:", ";box-shadow:0px -2px 0px 0px ", " inset;}}&-active{.", "-tab-btn,.", "-tab-btn:hover{color:", ";box-shadow:0px -2px 0px 0px ", " inset;}}&-disabled{.", "-tab-btn,.", "-tab-btn:hover{color:", ";box-shadow:0px -1px 0px 0px ", " inset;}}}}&-underline{.", "-tab{.", "-tab-btn{height:24px;padding:0 16px;justify-content:center;gap:4px;color:", ";box-shadow:0px -1px 0px 0px ", " inset;font-size:", ";font-weight:", ";&:hover{color:", ";box-shadow:0px -2px 0px 0px ", " inset;}}&-active{.", "-tab-btn,.", "-tab-btn:hover{color:", ";box-shadow:0px -2px 0px 0px ", " inset;}}&-disabled{.", "-tab-btn,.", "-tab-btn:hover{color:", ";box-shadow:0px -1px 0px 0px ", " inset;}}}}&-contain{.", "-nav-list{padding:2px;gap:2px;border-radius:4px;background:", ";}.", "-tab{.", "-tab-btn{height:32px;padding:0px 8px;justify-content:center;gap:6px;border-radius:4px;color:", ";font-size:", ";font-weight:", ";&:hover{color:", ";background:", ";}}&-active{.", "-tab-btn{background:", ";border:1px solid ", ";box-shadow:", ";color:", ";}}&-disabled{.", "-tab-btn,.", "-tab-btn:hover{color:", ";background:", ";font-weight:", ";}}}}&-vertical{.", "-tab{.", "-tab-btn{width:200px;height:40px;padding:0 12px;justify-content:flex-start;gap:4px;border-radius:0 4px 4px 0;border-left:1px solid transparent;color:", ";overflow-x:clip;text-overflow:ellipsis;&:hover{border-left-color:", ";}}&-active{.", "-tab-btn{background:", ";border-left-color:", ";}}&-disabled{.", "-tab-btn,.", "-tab-btn:hover{color:", ";border-left-color:transparent;}}}}&-ink-bar{display:none;position:absolute;pointer-events:none;}}"], prefixCls, prefixCls, prefixCls, theme(function (t) {
|
50607
|
-
return t.font_family.sans;
|
50608
|
-
}), theme(function (t) {
|
50609
|
-
return t.line_height.none;
|
50610
|
-
}), theme(function (t) {
|
50611
|
-
return t.letter_spacing.normal;
|
50612
|
-
}), prefixCls, prefixCls, prefixCls, prefixCls, theme(function (t) {
|
50613
|
-
return t.color.text;
|
50614
|
-
}), theme(function (t) {
|
50615
|
-
return t.color.border_teritary;
|
50616
|
-
}), theme(function (t) {
|
50617
|
-
return t.font_size.md;
|
50618
|
-
}), theme(function (t) {
|
50619
|
-
return t.font_weight.semibold;
|
50620
|
-
}), theme(function (t) {
|
50621
|
-
return t.color.text;
|
50622
|
-
}), theme(function (t) {
|
50623
|
-
return t.color.border;
|
50624
|
-
}), prefixCls, prefixCls, theme(function (t) {
|
50625
|
-
return t.color.text_primary;
|
50626
|
-
}), theme(function (t) {
|
50627
|
-
return t.color.border_primary;
|
50628
|
-
}), prefixCls, prefixCls, theme(function (t) {
|
50629
|
-
return t.color.text_disabled;
|
50630
|
-
}), theme(function (t) {
|
50631
|
-
return t.color.border_disabled;
|
50632
|
-
}), prefixCls, prefixCls, theme(function (t) {
|
50633
|
-
return t.color.text_tertiary;
|
50634
|
-
}), theme(function (t) {
|
50635
|
-
return t.color.border_secondary;
|
50636
|
-
}), theme(function (t) {
|
50637
|
-
return t.font_size.xs;
|
50638
|
-
}), theme(function (t) {
|
50639
|
-
return t.font_weight.regular;
|
50640
|
-
}), theme(function (t) {
|
50641
|
-
return t.color.text_tertiary;
|
50642
|
-
}), theme(function (t) {
|
50643
|
-
return t.color.border;
|
50644
|
-
}), prefixCls, prefixCls, theme(function (t) {
|
50645
|
-
return t.color.text_primary;
|
50646
|
-
}), theme(function (t) {
|
50647
|
-
return t.color.border_primary;
|
50648
|
-
}), prefixCls, prefixCls, theme(function (t) {
|
50649
|
-
return t.color.text_disabled;
|
50650
|
-
}), theme(function (t) {
|
50651
|
-
return t.color.border_disabled;
|
50652
|
-
}), prefixCls, theme(function (t) {
|
50653
|
-
return t.color.tab_contained_bg;
|
50654
|
-
}), prefixCls, prefixCls, theme(function (t) {
|
50655
|
-
return t.color.text_tertiary;
|
50656
|
-
}), theme(function (t) {
|
50657
|
-
return t.font_size.md;
|
50658
|
-
}), theme(function (t) {
|
50659
|
-
return t.font_weight.semibold;
|
50660
|
-
}), theme(function (t) {
|
50661
|
-
return t.color.text_tertiary;
|
50662
|
-
}), theme(function (t) {
|
50663
|
-
return t.color.bg_fill_primary_secondary;
|
50664
|
-
}), prefixCls, theme(function (t) {
|
50665
|
-
return t.color.bg;
|
50666
|
-
}), theme(function (t) {
|
50667
|
-
return t.color.border;
|
50668
|
-
}), theme(function (t) {
|
50669
|
-
return t.shadow.meduim;
|
50670
|
-
}), theme(function (t) {
|
50671
|
-
return t.color.text_primary;
|
50672
|
-
}), prefixCls, prefixCls, theme(function (t) {
|
50673
|
-
return t.color.text_disabled;
|
50674
|
-
}), theme(function (t) {
|
50675
|
-
return t.color.bg_fill_teritary;
|
50676
|
-
}), theme(function (t) {
|
50677
|
-
return t.font_weight.regular;
|
50678
|
-
}), prefixCls, prefixCls, theme(function (t) {
|
50679
|
-
return t.color.text;
|
50680
|
-
}), theme(function (t) {
|
50681
|
-
return t.color.border;
|
50682
|
-
}), prefixCls, theme(function (t) {
|
50683
|
-
return t.color.bg_fill_primary_secondary;
|
50684
|
-
}), theme(function (t) {
|
50685
|
-
return t.color.bg_fill_primary_secondary;
|
50686
|
-
}), prefixCls, prefixCls, theme(function (t) {
|
50687
|
-
return t.color.text_disabled;
|
50688
|
-
}));
|
50689
50790
|
|
50690
50791
|
/***/ }),
|
50691
50792
|
|
@@ -56214,6 +56315,113 @@ var placements = {
|
|
56214
56315
|
|
56215
56316
|
/***/ }),
|
56216
56317
|
|
56318
|
+
/***/ "./src/tooltip/styled.js":
|
56319
|
+
/*!*******************************!*\
|
56320
|
+
!*** ./src/tooltip/styled.js ***!
|
56321
|
+
\*******************************/
|
56322
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
56323
|
+
|
56324
|
+
"use strict";
|
56325
|
+
__webpack_require__.r(__webpack_exports__);
|
56326
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
56327
|
+
/* harmony export */ StyledTooltip: () => (/* binding */ StyledTooltip)
|
56328
|
+
/* harmony export */ });
|
56329
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
56330
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
56331
|
+
/* harmony import */ var rc_tooltip__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-tooltip */ "./node_modules/rc-tooltip/es/index.js");
|
56332
|
+
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! styled-components */ "styled-components");
|
56333
|
+
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_2__);
|
56334
|
+
// LICENSE_CODE ZON
|
56335
|
+
|
56336
|
+
|
56337
|
+
/*jslint react:true*/
|
56338
|
+
var _excluded = ["className"];
|
56339
|
+
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); }
|
56340
|
+
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; }
|
56341
|
+
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; }
|
56342
|
+
|
56343
|
+
|
56344
|
+
|
56345
|
+
var prefixCls = function prefixCls(p) {
|
56346
|
+
return p.prefixCls;
|
56347
|
+
};
|
56348
|
+
var theme = function theme(cb) {
|
56349
|
+
return function (p) {
|
56350
|
+
return cb(p.theme);
|
56351
|
+
};
|
56352
|
+
};
|
56353
|
+
var TooltipAdaptor = function TooltipAdaptor(_ref) {
|
56354
|
+
var className = _ref.className,
|
56355
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
56356
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(rc_tooltip__WEBPACK_IMPORTED_MODULE_1__["default"], _extends({
|
56357
|
+
overlayClassName: className
|
56358
|
+
}, rest));
|
56359
|
+
};
|
56360
|
+
var StyledTooltip = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(TooltipAdaptor).withConfig({
|
56361
|
+
displayName: "StyledTooltip",
|
56362
|
+
componentId: "sc-148yrjz-0"
|
56363
|
+
})(["&.", "{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:", ";}}}"], prefixCls, theme(function (t) {
|
56364
|
+
return t.font_family.sans;
|
56365
|
+
}), theme(function (t) {
|
56366
|
+
return t.font_size.sm;
|
56367
|
+
}), theme(function (t) {
|
56368
|
+
return t.font_weight.regular;
|
56369
|
+
}), theme(function (t) {
|
56370
|
+
return t.line_height.snug;
|
56371
|
+
}), prefixCls, theme(function (t) {
|
56372
|
+
return t.spacing['02'];
|
56373
|
+
}), theme(function (t) {
|
56374
|
+
return t.shadow.medium;
|
56375
|
+
}), theme(function (t) {
|
56376
|
+
return t.font_size.sm;
|
56377
|
+
}), prefixCls, prefixCls, prefixCls, prefixCls, prefixCls, prefixCls, prefixCls, prefixCls, prefixCls, prefixCls, prefixCls, prefixCls, prefixCls, prefixCls, prefixCls, prefixCls, prefixCls, prefixCls, prefixCls, prefixCls, prefixCls, prefixCls, prefixCls, prefixCls, prefixCls, prefixCls, prefixCls, prefixCls, prefixCls, prefixCls, prefixCls, prefixCls, prefixCls, prefixCls, prefixCls, prefixCls, prefixCls, prefixCls, prefixCls, prefixCls, theme(function (t) {
|
56378
|
+
return t.color.tooltip_text_white;
|
56379
|
+
}), theme(function (t) {
|
56380
|
+
return t.color.tooltip_bg_white;
|
56381
|
+
}), theme(function (t) {
|
56382
|
+
return t.color.tooltip_border_white;
|
56383
|
+
}), prefixCls, prefixCls, prefixCls, prefixCls, theme(function (t) {
|
56384
|
+
return t.color.tooltip_border_white;
|
56385
|
+
}), prefixCls, prefixCls, prefixCls, theme(function (t) {
|
56386
|
+
return t.color.tooltip_bg_white;
|
56387
|
+
}), prefixCls, prefixCls, prefixCls, theme(function (t) {
|
56388
|
+
return t.color.tooltip_border_white;
|
56389
|
+
}), prefixCls, prefixCls, prefixCls, theme(function (t) {
|
56390
|
+
return t.color.tooltip_bg_white;
|
56391
|
+
}), prefixCls, prefixCls, prefixCls, theme(function (t) {
|
56392
|
+
return t.color.tooltip_border_white;
|
56393
|
+
}), prefixCls, prefixCls, prefixCls, theme(function (t) {
|
56394
|
+
return t.color.tooltip_bg_white;
|
56395
|
+
}), prefixCls, prefixCls, prefixCls, theme(function (t) {
|
56396
|
+
return t.color.tooltip_border_white;
|
56397
|
+
}), prefixCls, prefixCls, prefixCls, theme(function (t) {
|
56398
|
+
return t.color.tooltip_bg_white;
|
56399
|
+
}), prefixCls, prefixCls, theme(function (t) {
|
56400
|
+
return t.color.tooltip_text_black;
|
56401
|
+
}), theme(function (t) {
|
56402
|
+
return t.color.tooltip_bg_black;
|
56403
|
+
}), theme(function (t) {
|
56404
|
+
return t.color.tooltip_bg_black;
|
56405
|
+
}), prefixCls, prefixCls, prefixCls, prefixCls, theme(function (t) {
|
56406
|
+
return t.color.tooltip_bg_black;
|
56407
|
+
}), prefixCls, prefixCls, prefixCls, theme(function (t) {
|
56408
|
+
return t.color.tooltip_bg_black;
|
56409
|
+
}), prefixCls, prefixCls, prefixCls, theme(function (t) {
|
56410
|
+
return t.color.tooltip_bg_black;
|
56411
|
+
}), prefixCls, prefixCls, prefixCls, theme(function (t) {
|
56412
|
+
return t.color.tooltip_bg_black;
|
56413
|
+
}), prefixCls, prefixCls, prefixCls, theme(function (t) {
|
56414
|
+
return t.color.tooltip_bg_black;
|
56415
|
+
}), prefixCls, prefixCls, prefixCls, theme(function (t) {
|
56416
|
+
return t.color.tooltip_bg_black;
|
56417
|
+
}), prefixCls, prefixCls, prefixCls, theme(function (t) {
|
56418
|
+
return t.color.tooltip_bg_black;
|
56419
|
+
}), prefixCls, prefixCls, prefixCls, theme(function (t) {
|
56420
|
+
return t.color.tooltip_bg_black;
|
56421
|
+
}));
|
56422
|
+
|
56423
|
+
/***/ }),
|
56424
|
+
|
56217
56425
|
/***/ "./src/tooltip/tooltip.js":
|
56218
56426
|
/*!********************************!*\
|
56219
56427
|
!*** ./src/tooltip/tooltip.js ***!
|
@@ -56463,17 +56671,15 @@ __webpack_require__.r(__webpack_exports__);
|
|
56463
56671
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
|
56464
56672
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
56465
56673
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
56466
|
-
/* harmony import */ var
|
56467
|
-
/* harmony import */ var
|
56468
|
-
/* harmony import */ var
|
56469
|
-
/* harmony import */ var
|
56470
|
-
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../constants */ "./src/constants.js");
|
56471
|
-
/* harmony import */ var _placements__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./placements */ "./src/tooltip/placements.js");
|
56674
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
|
56675
|
+
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../constants */ "./src/constants.js");
|
56676
|
+
/* harmony import */ var _placements__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./placements */ "./src/tooltip/placements.js");
|
56677
|
+
/* harmony import */ var _styled__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./styled */ "./src/tooltip/styled.js");
|
56472
56678
|
// LICENSE_CODE ZON
|
56473
56679
|
|
56474
56680
|
|
56475
56681
|
/*jslint react:true*/
|
56476
|
-
var _excluded = ["id", "className", "classNamePrefix", "variant", "trigger", "visible", "placement", "tooltip", "showArrow", "onVisibleChange", "afterVisibleChange", "children", "destroyOnClose"];
|
56682
|
+
var _excluded = ["id", "className", "classNamePrefix", "variant", "trigger", "visible", "placement", "tooltip", "showArrow", "onVisibleChange", "afterVisibleChange", "children", "destroyOnClose", "zIndex"];
|
56477
56683
|
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; }
|
56478
56684
|
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; }
|
56479
56685
|
|
@@ -56482,7 +56688,6 @@ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t =
|
|
56482
56688
|
|
56483
56689
|
|
56484
56690
|
|
56485
|
-
|
56486
56691
|
var _Tooltip = function Tooltip2(_ref) {
|
56487
56692
|
var id = _ref.id,
|
56488
56693
|
className = _ref.className,
|
@@ -56501,19 +56706,17 @@ var _Tooltip = function Tooltip2(_ref) {
|
|
56501
56706
|
children = _ref.children,
|
56502
56707
|
_ref$destroyOnClose = _ref.destroyOnClose,
|
56503
56708
|
destroyOnClose = _ref$destroyOnClose === void 0 ? true : _ref$destroyOnClose,
|
56709
|
+
_ref$zIndex = _ref.zIndex,
|
56710
|
+
zIndex = _ref$zIndex === void 0 ? _constants__WEBPACK_IMPORTED_MODULE_3__.Z_INDEX.tooltip : _ref$zIndex,
|
56504
56711
|
rest = _objectWithoutProperties(_ref, _excluded);
|
56505
|
-
var
|
56506
|
-
var
|
56507
|
-
var
|
56508
|
-
var align = (0,_util__WEBPACK_IMPORTED_MODULE_4__.firstDefined)(rest.align, _placements__WEBPACK_IMPORTED_MODULE_6__.placements[placement]);
|
56712
|
+
var mouseEnterDelay = (0,_util__WEBPACK_IMPORTED_MODULE_2__.firstDefined)(rest.showDelay, _Tooltip.showDelay);
|
56713
|
+
var mouseLeaveDelay = (0,_util__WEBPACK_IMPORTED_MODULE_2__.firstDefined)(rest.hideDelay, _Tooltip.hideDelay);
|
56714
|
+
var align = (0,_util__WEBPACK_IMPORTED_MODULE_2__.firstDefined)(rest.align, _placements__WEBPACK_IMPORTED_MODULE_4__.placements[placement]);
|
56509
56715
|
if (!tooltip) return children;
|
56510
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(
|
56511
|
-
|
56512
|
-
$theme: theme
|
56513
|
-
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(rc_tooltip__WEBPACK_IMPORTED_MODULE_2__["default"], {
|
56514
|
-
prefixCls: "".concat(classNamePrefix, "_").concat(variant),
|
56716
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_styled__WEBPACK_IMPORTED_MODULE_5__.StyledTooltip, {
|
56717
|
+
prefixCls: classNamePrefix,
|
56515
56718
|
id: id,
|
56516
|
-
|
56719
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_2__.classNames)(null, null, className, "".concat(classNamePrefix, "-").concat(variant)),
|
56517
56720
|
overlay: tooltip,
|
56518
56721
|
trigger: trigger,
|
56519
56722
|
visible: visible,
|
@@ -56521,13 +56724,13 @@ var _Tooltip = function Tooltip2(_ref) {
|
|
56521
56724
|
animation: "zoom",
|
56522
56725
|
mouseEnterDelay: mouseEnterDelay,
|
56523
56726
|
mouseLeaveDelay: mouseLeaveDelay,
|
56524
|
-
zIndex:
|
56727
|
+
zIndex: zIndex,
|
56525
56728
|
align: align,
|
56526
56729
|
showArrow: showArrow,
|
56527
56730
|
onVisibleChange: onVisibleChange,
|
56528
56731
|
afterVisibleChange: afterVisibleChange,
|
56529
56732
|
destroyOnClose: destroyOnClose
|
56530
|
-
}, children)
|
56733
|
+
}, children);
|
56531
56734
|
};
|
56532
56735
|
|
56533
56736
|
_Tooltip.propTypes = {
|
@@ -56535,9 +56738,9 @@ _Tooltip.propTypes = {
|
|
56535
56738
|
className: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
56536
56739
|
classNamePrefix: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
56537
56740
|
variant: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['black', 'white']),
|
56538
|
-
trigger: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([
|
56741
|
+
trigger: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([_constants__WEBPACK_IMPORTED_MODULE_3__.PT_TRIGGER, prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf(_constants__WEBPACK_IMPORTED_MODULE_3__.PT_TRIGGER)]),
|
56539
56742
|
visible: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
56540
|
-
placement:
|
56743
|
+
placement: _constants__WEBPACK_IMPORTED_MODULE_3__.PT_TOOLTIP_PLACEMENT,
|
56541
56744
|
tooltip: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
|
56542
56745
|
showDelay: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
56543
56746
|
hideDelay: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
@@ -56545,77 +56748,11 @@ _Tooltip.propTypes = {
|
|
56545
56748
|
showArrow: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
56546
56749
|
onVisibleChange: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
56547
56750
|
afterVisibleChange: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
56548
|
-
destroyOnClose: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)
|
56751
|
+
destroyOnClose: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
56752
|
+
zIndex: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)
|
56549
56753
|
};
|
56550
56754
|
_Tooltip.showDelay = 0.1;
|
56551
56755
|
_Tooltip.hideDelay = 0.1;
|
56552
|
-
var prefixCls = function prefixCls(p) {
|
56553
|
-
return p.$prefixCls;
|
56554
|
-
};
|
56555
|
-
var theme = function theme(cb) {
|
56556
|
-
return function (p) {
|
56557
|
-
return cb(p.$theme);
|
56558
|
-
};
|
56559
|
-
};
|
56560
|
-
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:", ";}}}"], prefixCls, theme(function (t) {
|
56561
|
-
return t.font_family.sans;
|
56562
|
-
}), theme(function (t) {
|
56563
|
-
return t.font_size.sm;
|
56564
|
-
}), theme(function (t) {
|
56565
|
-
return t.font_weight.regular;
|
56566
|
-
}), theme(function (t) {
|
56567
|
-
return t.line_height.snug;
|
56568
|
-
}), theme(function (t) {
|
56569
|
-
return t.spacing['02'];
|
56570
|
-
}), theme(function (t) {
|
56571
|
-
return t.shadow.medium;
|
56572
|
-
}), theme(function (t) {
|
56573
|
-
return t.font_size.sm;
|
56574
|
-
}), theme(function (t) {
|
56575
|
-
return t.color.tooltip_text_white;
|
56576
|
-
}), theme(function (t) {
|
56577
|
-
return t.color.tooltip_bg_white;
|
56578
|
-
}), theme(function (t) {
|
56579
|
-
return t.color.tooltip_border_white;
|
56580
|
-
}), theme(function (t) {
|
56581
|
-
return t.color.tooltip_border_white;
|
56582
|
-
}), theme(function (t) {
|
56583
|
-
return t.color.tooltip_bg_white;
|
56584
|
-
}), theme(function (t) {
|
56585
|
-
return t.color.tooltip_border_white;
|
56586
|
-
}), theme(function (t) {
|
56587
|
-
return t.color.tooltip_bg_white;
|
56588
|
-
}), theme(function (t) {
|
56589
|
-
return t.color.tooltip_border_white;
|
56590
|
-
}), theme(function (t) {
|
56591
|
-
return t.color.tooltip_bg_white;
|
56592
|
-
}), theme(function (t) {
|
56593
|
-
return t.color.tooltip_border_white;
|
56594
|
-
}), theme(function (t) {
|
56595
|
-
return t.color.tooltip_bg_white;
|
56596
|
-
}), theme(function (t) {
|
56597
|
-
return t.color.tooltip_text_black;
|
56598
|
-
}), theme(function (t) {
|
56599
|
-
return t.color.tooltip_bg_black;
|
56600
|
-
}), theme(function (t) {
|
56601
|
-
return t.color.tooltip_bg_black;
|
56602
|
-
}), theme(function (t) {
|
56603
|
-
return t.color.tooltip_bg_black;
|
56604
|
-
}), theme(function (t) {
|
56605
|
-
return t.color.tooltip_bg_black;
|
56606
|
-
}), theme(function (t) {
|
56607
|
-
return t.color.tooltip_bg_black;
|
56608
|
-
}), theme(function (t) {
|
56609
|
-
return t.color.tooltip_bg_black;
|
56610
|
-
}), theme(function (t) {
|
56611
|
-
return t.color.tooltip_bg_black;
|
56612
|
-
}), theme(function (t) {
|
56613
|
-
return t.color.tooltip_bg_black;
|
56614
|
-
}), theme(function (t) {
|
56615
|
-
return t.color.tooltip_bg_black;
|
56616
|
-
}), theme(function (t) {
|
56617
|
-
return t.color.tooltip_bg_black;
|
56618
|
-
}));
|
56619
56756
|
|
56620
56757
|
/***/ }),
|
56621
56758
|
|
@@ -144675,7 +144812,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
144675
144812
|
/* harmony export */ Drawer: () => (/* reexport safe */ _core__WEBPACK_IMPORTED_MODULE_0__.Drawer),
|
144676
144813
|
/* harmony export */ Icon: () => (/* reexport safe */ _core__WEBPACK_IMPORTED_MODULE_0__.Icon),
|
144677
144814
|
/* harmony export */ IconButton: () => (/* reexport safe */ _core__WEBPACK_IMPORTED_MODULE_0__.IconButton),
|
144678
|
-
/* harmony export */ InfoChip: () => (/* reexport safe */ _core__WEBPACK_IMPORTED_MODULE_0__.InfoChip),
|
144679
144815
|
/* harmony export */ Input: () => (/* reexport safe */ _core__WEBPACK_IMPORTED_MODULE_0__.Input),
|
144680
144816
|
/* harmony export */ Layout: () => (/* reexport safe */ _core__WEBPACK_IMPORTED_MODULE_0__.Layout),
|
144681
144817
|
/* harmony export */ Link: () => (/* reexport safe */ _core__WEBPACK_IMPORTED_MODULE_0__.Link),
|