@luminati-io/uikit 6.3.12 → 6.3.14

Sign up to get free protection for your applications and to get access to all the features.
@@ -36300,14 +36300,26 @@ __webpack_require__.r(__webpack_exports__);
36300
36300
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
36301
36301
  /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! styled-components */ "styled-components");
36302
36302
  /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_2__);
36303
- /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./icon */ "./src/icon.js");
36304
- /* harmony import */ var _layout__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./layout */ "./src/layout/index.js");
36303
+ /* harmony import */ var rc_util_lib_pickAttrs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rc-util/lib/pickAttrs */ "./node_modules/rc-util/lib/pickAttrs.js");
36304
+ /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./icon */ "./src/icon.js");
36305
36305
  /* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./typography */ "./src/typography/index.js");
36306
- /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./utils */ "./src/utils.js");
36306
+ /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./util */ "./src/util/index.js");
36307
+ /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./utils */ "./src/utils.js");
36307
36308
  // LICENSE_CODE ZON
36308
36309
 
36309
36310
 
36310
36311
  /*jslint react:true*/
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", "text", "children", "shape", "icon", "iconPlacement", "onIconClick", "style"];
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
+ 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
+ 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; }
36317
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
36318
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
36319
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
36320
+ 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; }
36321
+ 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; }
36322
+
36311
36323
 
36312
36324
 
36313
36325
 
@@ -36317,80 +36329,101 @@ __webpack_require__.r(__webpack_exports__);
36317
36329
 
36318
36330
  var Badge = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(function (props, ref) {
36319
36331
  var className = props.className,
36332
+ _props$classNamePrefi = props.classNamePrefix,
36333
+ classNamePrefix = _props$classNamePrefi === void 0 ? 'uikit_badge' : _props$classNamePrefi,
36334
+ _props$variant = props.variant,
36335
+ variant = _props$variant === void 0 ? 'generic' : _props$variant,
36336
+ text = props.text,
36320
36337
  children = props.children,
36321
36338
  _props$shape = props.shape,
36322
36339
  shape = _props$shape === void 0 ? 'square' : _props$shape,
36323
- _props$variant = props.variant,
36324
- variant = _props$variant === void 0 ? 'default' : _props$variant,
36325
36340
  icon = props.icon,
36326
36341
  iconPlacement = props.iconPlacement,
36327
- onClick = props.onClick;
36328
- var textColor = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(function () {
36329
- return {
36330
- "default": 'text',
36331
- negative: 'text_error',
36332
- positive: 'text_success',
36333
- gold: 'text_warning',
36334
- blue: 'text_primary'
36335
- }[variant] || 'text';
36336
- }, [variant]);
36337
- var iconColor = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(function () {
36338
- return {
36339
- "default": 'icon_accent',
36340
- negative: 'icon_error',
36341
- positive: 'icon_success',
36342
- gold: 'icon_warning',
36343
- blue: 'icon_primary'
36344
- }[variant] || 'icon_accent';
36345
- }, [variant]);
36346
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(BadgeWrapper, {
36347
- ref: ref,
36348
- className: className,
36349
- $shape: shape,
36350
- $variant: variant,
36351
- flex_direction: iconPlacement == 'right' ? 'row-reverse' : 'row'
36352
- }, icon && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_3__.Icon, {
36342
+ onIconClick = props.onIconClick,
36343
+ style = props.style,
36344
+ rest = _objectWithoutProperties(props, _excluded);
36345
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Wrapper, _extends({
36346
+ ref: ref
36347
+ }, (0,rc_util_lib_pickAttrs__WEBPACK_IMPORTED_MODULE_3__["default"])(rest), {
36348
+ $prefixCls: classNamePrefix,
36349
+ className: (0,_util__WEBPACK_IMPORTED_MODULE_6__.classNames)(null, null, className, classNamePrefix, "".concat(classNamePrefix, "_").concat(variant), "".concat(classNamePrefix, "_").concat(shape)),
36350
+ style: _objectSpread({
36351
+ flexDirection: iconPlacement == 'right' ? 'row-reverse' : 'row'
36352
+ }, style)
36353
+ }), icon && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_4__.Icon, {
36353
36354
  name: icon,
36354
36355
  size: "xxs",
36355
- color: iconColor,
36356
- onClick: onClick
36356
+ onClick: onIconClick,
36357
+ className: (0,_util__WEBPACK_IMPORTED_MODULE_6__.classNames)(classNamePrefix, {
36358
+ '-icon': true
36359
+ })
36357
36360
  }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_5__.Label, {
36358
36361
  variant: "xs",
36359
- color: textColor
36360
- }, children));
36362
+ className: (0,_util__WEBPACK_IMPORTED_MODULE_6__.classNames)(classNamePrefix, {
36363
+ '-content': true
36364
+ })
36365
+ }, text || children));
36361
36366
  });
36362
36367
  Badge.displayName = 'Badge';
36363
36368
  Badge.propTypes = {
36369
+ className: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
36370
+ classNamePrefix: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
36364
36371
  shape: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['rounded', 'square']),
36365
- variant: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['default', 'negative', 'positive', 'gold', 'blue']),
36366
- icon: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(_utils__WEBPACK_IMPORTED_MODULE_6__.iconNames),
36367
- iconPlacement: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['left', 'right'])
36372
+ variant: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['generic', 'info', 'success', 'error', 'warning']),
36373
+ icon: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(_utils__WEBPACK_IMPORTED_MODULE_7__.iconNames),
36374
+ iconPlacement: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['left', 'right']),
36375
+ onIconClick: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)
36368
36376
  };
36369
- var BadgeWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_layout__WEBPACK_IMPORTED_MODULE_4__.Flex).attrs({
36370
- gap: '01',
36371
- align_items: 'center',
36372
- padding: '02'
36373
- }).withConfig({
36374
- displayName: "BadgeWrapper",
36377
+ var prefixCls = function prefixCls(p) {
36378
+ return p.$prefixCls;
36379
+ };
36380
+ var theme = function theme(cb) {
36381
+ return function (p) {
36382
+ return cb(p.theme);
36383
+ };
36384
+ };
36385
+ var Wrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
36386
+ displayName: "Wrapper",
36375
36387
  componentId: "sc-1fckq03-0"
36376
- })(["width:fit-content;border-radius:", ";background-color:", ";"], function (_ref) {
36377
- var $shape = _ref.$shape,
36378
- spacing = _ref.theme.spacing;
36379
- return {
36380
- rounded: '16px',
36381
- square: spacing['02']
36382
- }[$shape];
36383
- }, function (_ref2) {
36384
- var $variant = _ref2.$variant,
36385
- color = _ref2.theme.color;
36386
- return {
36387
- "default": color.bg_fill_secondary,
36388
- negative: color.bg_fill_error_secondary,
36389
- positive: color.bg_fill_success_secondary,
36390
- gold: color.bg_fill_warning_secondary,
36391
- blue: color.bg_fill_primary_secondary
36392
- }[$variant] || color.bg_fill_secondary;
36393
- });
36388
+ })(["display:flex;width:fit-content;gap:", ";padding:", ";align-self:center;&.", "{&_square{border-radius:", ";}&_rounded{border-radius:", ";}&_info{background-color:", ";.", "{&-icon{color:", ";}&-content{color:", ";}}}&_success{background-color:", ";.", "{&-icon{color:", ";}&-content{color:", ";}}}&_error{background-color:", ";.", "{&-icon{color:", ";}&-content{color:", ";}}}&_warning{background-color:", ";.", "{&-icon{color:", ";}&-content{color:", ";}}}&_generic{background-color:", ";.", "{&-icon{color:", ";}&-content{color:", ";}}}}"], theme(function (t) {
36389
+ return t.spacing['01'];
36390
+ }), theme(function (t) {
36391
+ return t.spacing['02'];
36392
+ }), prefixCls, theme(function (t) {
36393
+ return t.spacing['02'];
36394
+ }), theme(function (t) {
36395
+ return t.spacing['05'];
36396
+ }), theme(function (t) {
36397
+ return t.color.bg_fill_primary_secondary;
36398
+ }), prefixCls, theme(function (t) {
36399
+ return t.color.icon_primary;
36400
+ }), theme(function (t) {
36401
+ return t.color.text_primary;
36402
+ }), theme(function (t) {
36403
+ return t.color.bg_fill_success_secondary;
36404
+ }), prefixCls, theme(function (t) {
36405
+ return t.color.icon_success;
36406
+ }), theme(function (t) {
36407
+ return t.color.text_success;
36408
+ }), theme(function (t) {
36409
+ return t.color.bg_fill_error_secondary;
36410
+ }), prefixCls, theme(function (t) {
36411
+ return t.color.icon_error;
36412
+ }), theme(function (t) {
36413
+ return t.color.text_error;
36414
+ }), theme(function (t) {
36415
+ return t.color.bg_fill_warning_secondary;
36416
+ }), prefixCls, theme(function (t) {
36417
+ return t.color.icon_warning;
36418
+ }), theme(function (t) {
36419
+ return t.color.text_warning;
36420
+ }), theme(function (t) {
36421
+ return t.color.bg_fill_secondary;
36422
+ }), prefixCls, theme(function (t) {
36423
+ return t.color.icon_accent;
36424
+ }), theme(function (t) {
36425
+ return t.color.text;
36426
+ }));
36394
36427
 
36395
36428
  /***/ }),
36396
36429
 
@@ -39948,7 +39981,7 @@ var PT_INPUT_SHARED = {
39948
39981
  onFocus: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
39949
39982
  onBlur: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
39950
39983
  onKeyDown: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
39951
- placeholder: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
39984
+ placeholder: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
39952
39985
  disabled: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
39953
39986
  invalid: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
39954
39987
  after: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
@@ -39990,32 +40023,31 @@ __webpack_require__.r(__webpack_exports__);
39990
40023
  /* harmony export */ Drawer: () => (/* reexport safe */ _drawer__WEBPACK_IMPORTED_MODULE_11__.Drawer),
39991
40024
  /* harmony export */ Icon: () => (/* reexport safe */ _icon__WEBPACK_IMPORTED_MODULE_20__.Icon),
39992
40025
  /* harmony export */ IconButton: () => (/* reexport safe */ _icon_button__WEBPACK_IMPORTED_MODULE_21__.IconButton),
39993
- /* harmony export */ InfoChip: () => (/* reexport safe */ _infochip__WEBPACK_IMPORTED_MODULE_22__.InfoChip),
39994
40026
  /* harmony export */ Input: () => (/* reexport module object */ _input__WEBPACK_IMPORTED_MODULE_1__),
39995
40027
  /* harmony export */ Layout: () => (/* reexport module object */ _layout__WEBPACK_IMPORTED_MODULE_2__),
39996
40028
  /* harmony export */ Link: () => (/* reexport safe */ _link__WEBPACK_IMPORTED_MODULE_13__.Link),
39997
40029
  /* harmony export */ Menu: () => (/* reexport safe */ _menu__WEBPACK_IMPORTED_MODULE_14__.Menu),
39998
40030
  /* harmony export */ Modal: () => (/* reexport module object */ _modal__WEBPACK_IMPORTED_MODULE_3__),
39999
- /* harmony export */ Popover: () => (/* reexport safe */ _popover__WEBPACK_IMPORTED_MODULE_25__.Popover),
40031
+ /* harmony export */ Popover: () => (/* reexport safe */ _popover__WEBPACK_IMPORTED_MODULE_24__.Popover),
40000
40032
  /* harmony export */ Progress: () => (/* reexport safe */ _progress__WEBPACK_IMPORTED_MODULE_15__.Progress),
40001
40033
  /* harmony export */ ProgressBar: () => (/* reexport safe */ _progress__WEBPACK_IMPORTED_MODULE_15__.ProgressBar),
40002
40034
  /* harmony export */ RemovableTag: () => (/* reexport safe */ _tag__WEBPACK_IMPORTED_MODULE_18__.RemovableTag),
40003
40035
  /* harmony export */ Snackbar: () => (/* reexport safe */ _snackbar__WEBPACK_IMPORTED_MODULE_16__.Snackbar),
40004
- /* harmony export */ Tab: () => (/* reexport safe */ _tab__WEBPACK_IMPORTED_MODULE_23__.Tab),
40036
+ /* harmony export */ Tab: () => (/* reexport safe */ _tab__WEBPACK_IMPORTED_MODULE_22__.Tab),
40005
40037
  /* harmony export */ Table: () => (/* reexport safe */ _table__WEBPACK_IMPORTED_MODULE_17__.Table),
40006
- /* harmony export */ Tabs: () => (/* reexport safe */ _tab__WEBPACK_IMPORTED_MODULE_23__.Tabs),
40038
+ /* harmony export */ Tabs: () => (/* reexport safe */ _tab__WEBPACK_IMPORTED_MODULE_22__.Tabs),
40007
40039
  /* harmony export */ TagGroup: () => (/* reexport safe */ _tag__WEBPACK_IMPORTED_MODULE_18__.TagGroup),
40008
- /* harmony export */ ThemeProvider: () => (/* reexport safe */ _themes__WEBPACK_IMPORTED_MODULE_26__.ThemeProvider),
40040
+ /* harmony export */ ThemeProvider: () => (/* reexport safe */ _themes__WEBPACK_IMPORTED_MODULE_25__.ThemeProvider),
40009
40041
  /* harmony export */ Toast: () => (/* reexport safe */ _toast__WEBPACK_IMPORTED_MODULE_19__.Toast),
40010
40042
  /* harmony export */ Toaster: () => (/* reexport safe */ _toast__WEBPACK_IMPORTED_MODULE_19__.Toaster),
40011
- /* harmony export */ Tooltip: () => (/* reexport safe */ _tooltip__WEBPACK_IMPORTED_MODULE_24__.Tooltip),
40012
- /* harmony export */ Tooltip2: () => (/* reexport safe */ _tooltip__WEBPACK_IMPORTED_MODULE_24__.Tooltip2),
40043
+ /* harmony export */ Tooltip: () => (/* reexport safe */ _tooltip__WEBPACK_IMPORTED_MODULE_23__.Tooltip),
40044
+ /* harmony export */ Tooltip2: () => (/* reexport safe */ _tooltip__WEBPACK_IMPORTED_MODULE_23__.Tooltip2),
40013
40045
  /* harmony export */ Typography: () => (/* reexport module object */ _typography__WEBPACK_IMPORTED_MODULE_5__),
40014
- /* harmony export */ globalConfig: () => (/* reexport safe */ _global_config__WEBPACK_IMPORTED_MODULE_27__.globalConfig),
40015
- /* harmony export */ setGlobalConfig: () => (/* reexport safe */ _global_config__WEBPACK_IMPORTED_MODULE_27__.setGlobalConfig),
40016
- /* harmony export */ theme: () => (/* reexport safe */ _themes__WEBPACK_IMPORTED_MODULE_26__.lightTheme),
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),
40017
40049
  /* harmony export */ translation: () => (/* reexport safe */ _translation__WEBPACK_IMPORTED_MODULE_4__["default"]),
40018
- /* harmony export */ useTheme: () => (/* reexport safe */ _themes__WEBPACK_IMPORTED_MODULE_26__.useTheme),
40050
+ /* harmony export */ useTheme: () => (/* reexport safe */ _themes__WEBPACK_IMPORTED_MODULE_25__.useTheme),
40019
40051
  /* harmony export */ useToaster: () => (/* reexport safe */ _toast__WEBPACK_IMPORTED_MODULE_19__.useToaster),
40020
40052
  /* harmony export */ withPopover: () => (/* reexport safe */ _hoc__WEBPACK_IMPORTED_MODULE_12__.withPopover)
40021
40053
  /* harmony export */ });
@@ -40041,12 +40073,11 @@ __webpack_require__.r(__webpack_exports__);
40041
40073
  /* harmony import */ var _toast__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./toast */ "./src/toast/index.js");
40042
40074
  /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./icon */ "./src/icon.js");
40043
40075
  /* harmony import */ var _icon_button__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./icon_button */ "./src/icon_button.js");
40044
- /* harmony import */ var _infochip__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./infochip */ "./src/infochip.js");
40045
- /* harmony import */ var _tab__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./tab */ "./src/tab/index.js");
40046
- /* harmony import */ var _tooltip__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./tooltip */ "./src/tooltip/index.js");
40047
- /* harmony import */ var _popover__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./popover */ "./src/popover/index.js");
40048
- /* harmony import */ var _themes__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./themes */ "./src/themes/index.js");
40049
- /* 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");
40050
40081
  // LICENSE_CODE ZON
40051
40082
 
40052
40083
 
@@ -40078,7 +40109,6 @@ __webpack_require__.r(__webpack_exports__);
40078
40109
 
40079
40110
 
40080
40111
 
40081
-
40082
40112
 
40083
40113
 
40084
40114
  /***/ }),
@@ -40098,13 +40128,11 @@ __webpack_require__.r(__webpack_exports__);
40098
40128
  /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
40099
40129
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
40100
40130
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
40101
- /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! styled-components */ "styled-components");
40102
- /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_2__);
40103
- /* harmony import */ var rc_drawer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rc-drawer */ "./node_modules/rc-drawer/es/index.js");
40104
- /* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../constants */ "./src/constants.js");
40105
- /* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../typography */ "./src/typography/index.js");
40106
- /* harmony import */ var _icon_button__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../icon_button */ "./src/icon_button.js");
40107
- /* 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");
40108
40136
  // LICENSE_CODE ZON
40109
40137
 
40110
40138
 
@@ -40116,7 +40144,6 @@ __webpack_require__.r(__webpack_exports__);
40116
40144
 
40117
40145
 
40118
40146
 
40119
-
40120
40147
  var Drawer = function Drawer(_ref) {
40121
40148
  var className = _ref.className,
40122
40149
  _ref$classNamePrefix = _ref.classNamePrefix,
@@ -40146,8 +40173,10 @@ var Drawer = function Drawer(_ref) {
40146
40173
  _ref$mask = _ref.mask,
40147
40174
  mask = _ref$mask === void 0 ? false : _ref$mask,
40148
40175
  styles = _ref.styles,
40149
- classNames = _ref.classNames;
40150
- var theme = (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.useTheme)();
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;
40151
40180
  var renderCancel = !footer && !!(onCancel && cancelLabel);
40152
40181
  var renderOk = !footer && !!(onOk && okLabel);
40153
40182
  var renderFooter = !!footer || renderOk || renderCancel;
@@ -40168,41 +40197,39 @@ var Drawer = function Drawer(_ref) {
40168
40197
  motionDeadline: 500
40169
40198
  };
40170
40199
  };
40171
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement((react__WEBPACK_IMPORTED_MODULE_1___default().Fragment), null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(DrawerStyle, {
40172
- $prefixCls: classNamePrefix,
40173
- $theme: theme
40174
- }), /*#__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, {
40175
40201
  width: width,
40176
40202
  height: height,
40177
40203
  open: open,
40178
40204
  onClose: onClose,
40179
40205
  placement: placement,
40180
40206
  duration: duration,
40181
- className: className,
40207
+ contentClassName: className,
40182
40208
  prefixCls: classNamePrefix,
40183
- zIndex: _constants__WEBPACK_IMPORTED_MODULE_4__.Z_INDEX.drawer,
40209
+ zIndex: zIndex,
40184
40210
  maskClosable: closable,
40185
40211
  classNames: classNames,
40186
40212
  afterOpenChange: afterOpenChange,
40187
40213
  mask: mask,
40188
40214
  styles: styles,
40189
40215
  maskMotion: maskMotion,
40190
- motion: motion
40191
- }, closable && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon_button__WEBPACK_IMPORTED_MODULE_6__.IconButton, {
40216
+ motion: motion,
40217
+ destroyOnClose: destroyOnClose
40218
+ }, closable && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon_button__WEBPACK_IMPORTED_MODULE_4__.IconButton, {
40192
40219
  className: "".concat(classNamePrefix, "-close"),
40193
40220
  size: "xs",
40194
40221
  icon: "Close",
40195
40222
  onClick: onClose
40196
40223
  }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", {
40197
40224
  className: "".concat(classNamePrefix, "-header")
40198
- }, !!title && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_5__.Header, {
40225
+ }, !!title && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_3__.Header, {
40199
40226
  className: "".concat(classNamePrefix, "-title"),
40200
40227
  color: "text"
40201
40228
  }, title)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", {
40202
40229
  className: "".concat(classNamePrefix, "-body")
40203
40230
  }, children), renderFooter && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", {
40204
40231
  className: "".concat(classNamePrefix, "-footer")
40205
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_modal_modal2__WEBPACK_IMPORTED_MODULE_7__.DialogFooter, {
40232
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_modal_modal2__WEBPACK_IMPORTED_MODULE_5__.DialogFooter, {
40206
40233
  onOk: onOk,
40207
40234
  onCancel: onCancel,
40208
40235
  okLabel: okLabel,
@@ -40211,7 +40238,7 @@ var Drawer = function Drawer(_ref) {
40211
40238
  cancelProps: cancelProps,
40212
40239
  variant: footerVariant,
40213
40240
  footer: footer
40214
- }))));
40241
+ })));
40215
40242
  };
40216
40243
  Drawer.propTypes = {
40217
40244
  className: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
@@ -40243,17 +40270,85 @@ Drawer.propTypes = {
40243
40270
  mask: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
40244
40271
  wrapper: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
40245
40272
  content: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)
40246
- })
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));
40247
40335
  };
40248
40336
  var prefixCls = function prefixCls(p) {
40249
- return p.$prefixCls;
40337
+ return p.prefixCls;
40250
40338
  };
40251
40339
  var theme = function theme(cb) {
40252
40340
  return function (p) {
40253
- return cb(p.$theme);
40341
+ return cb(p.theme);
40254
40342
  };
40255
40343
  };
40256
- var DrawerStyle = (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.createGlobalStyle)([".", "{inset:0;position:fixed;pointer-events:none;&-inline{position:absolute;}&-mask{inset:0;position:absolute;background-color:", ";background-color:", ";filter:alpha(opacity=70);pointer-events:auto;}&-content-wrapper{position:absolute;overflow:hidden;box-shadow:", ";&-hidden{display:none;}}&-left &-content-wrapper{top:0;bottom:0;left:0;}&-right &-content-wrapper{top:0;right:0;bottom:0;}&-content{position:relative;display:flex;flex-direction:column;width:100%;height:100%;background:", ";pointer-events:auto;}&-left &-content{border-right:1px solid ", ";}&-right &-content{border-left:1px solid ", ";}&-close{position:absolute;margin-top:16px;inset-inline-end:16px;z-index:1;background:transparent;}&-header{padding-top:", ";padding-right:", ";padding-bottom:", ";padding-left:", ";}&-body{flex:1;overflow:auto;padding-top:", ";padding-right:", ";padding-bottom:", ";padding-left:", ";color:", ";", "}&-footer{padding-top:", ";padding-right:", ";padding-bottom:", ";padding-left:", ";border-top:1px solid ", ";}&-mask-motion{&-enter,&-appear,&-leave{&-start{transition:none;}&-active{transition:all 0.3s;}}&-enter,&-appear{opacity:0;&-active{opacity:1;}}&-leave{opacity:1;&-active{opacity:0;}}}&-panel-motion{&-left,&-right{&-enter,&-appear,&-leave{&-start{transition:none;}&-active{transition:all 0.3s;}}&-enter,&-appear{opacity:0.7;&-active{opacity:1;}}&-leave{opacity:1;&-active{opacity:0.7;}}}&-left{&-enter,&-appear{transform:translateX(-100%);&-active{transform:none;}}&-leave{transform:none;&-active{transform:translateX(-100%);}}}&-right{&-enter,&-appear{transform:translateX(100%);&-active{transform:none;}}&-leave{transform:none;&-active{transform:translateX(100%);}}}}}"], prefixCls, theme(function (t) {
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) {
40257
40352
  return t.color.modal_shadow_bg;
40258
40353
  }), theme(function (t) {
40259
40354
  return t.color.modal2_shadow_bg;
@@ -40261,10 +40356,6 @@ var DrawerStyle = (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.createGlobal
40261
40356
  return t.shadow.medium;
40262
40357
  }), theme(function (t) {
40263
40358
  return t.color.bg_elevated;
40264
- }), theme(function (t) {
40265
- return t.color.border_secondary;
40266
- }), theme(function (t) {
40267
- return t.color.border_secondary;
40268
40359
  }), theme(function (t) {
40269
40360
  return t.spacing['05'];
40270
40361
  }), theme(function (t) {
@@ -40297,26 +40388,6 @@ var DrawerStyle = (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.createGlobal
40297
40388
  return t.color.border_secondary;
40298
40389
  }));
40299
40390
 
40300
- /***/ }),
40301
-
40302
- /***/ "./src/drawer/index.js":
40303
- /*!*****************************!*\
40304
- !*** ./src/drawer/index.js ***!
40305
- \*****************************/
40306
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
40307
-
40308
- "use strict";
40309
- __webpack_require__.r(__webpack_exports__);
40310
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
40311
- /* harmony export */ Drawer: () => (/* reexport safe */ _drawer__WEBPACK_IMPORTED_MODULE_0__.Drawer)
40312
- /* harmony export */ });
40313
- /* harmony import */ var _drawer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./drawer */ "./src/drawer/drawer.js");
40314
- // LICENSE_CODE ZON
40315
-
40316
-
40317
- /*jslint react:true*/
40318
-
40319
-
40320
40391
  /***/ }),
40321
40392
 
40322
40393
  /***/ "./src/global_config.js":
@@ -41350,103 +41421,6 @@ var StyledSvg = styled_components__WEBPACK_IMPORTED_MODULE_1___default().svg.wit
41350
41421
 
41351
41422
  /***/ }),
41352
41423
 
41353
- /***/ "./src/infochip.js":
41354
- /*!*************************!*\
41355
- !*** ./src/infochip.js ***!
41356
- \*************************/
41357
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
41358
-
41359
- "use strict";
41360
- __webpack_require__.r(__webpack_exports__);
41361
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
41362
- /* harmony export */ InfoChip: () => (/* binding */ InfoChip)
41363
- /* harmony export */ });
41364
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "prop-types");
41365
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
41366
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
41367
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
41368
- /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! styled-components */ "styled-components");
41369
- /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_2__);
41370
- /* harmony import */ var rc_util_lib_pickAttrs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rc-util/lib/pickAttrs */ "./node_modules/rc-util/lib/pickAttrs.js");
41371
- /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./icon */ "./src/icon.js");
41372
- /* harmony import */ var _layout__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./layout */ "./src/layout/index.js");
41373
- /* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./typography */ "./src/typography/index.js");
41374
- /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./utils */ "./src/utils.js");
41375
- // LICENSE_CODE ZON
41376
-
41377
-
41378
- /*jslint react:true*/
41379
- var _excluded = ["variant", "text", "icon"];
41380
- 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); }
41381
- 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; }
41382
- 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; }
41383
-
41384
-
41385
-
41386
-
41387
-
41388
-
41389
-
41390
-
41391
- var InfoChip = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(function (props, ref) {
41392
- var _props$variant = props.variant,
41393
- variant = _props$variant === void 0 ? 'default' : _props$variant,
41394
- text = props.text,
41395
- icon = props.icon,
41396
- rest = _objectWithoutProperties(props, _excluded);
41397
- var iconColor = {
41398
- success: 'text_success',
41399
- alert: 'text_error',
41400
- warning: 'text_warning',
41401
- info: 'text_primary'
41402
- }[variant] || 'text';
41403
- var textColor = {
41404
- success: 'icon_success',
41405
- alert: 'icon_error',
41406
- warning: 'icon_warning',
41407
- info: 'icon_primary'
41408
- }[variant] || 'icon_accent';
41409
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(InfoChipWrapper, _extends({
41410
- ref: ref,
41411
- $variant: variant
41412
- }, (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, {
41413
- size: "xxs",
41414
- color: iconColor,
41415
- name: icon
41416
- }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_6__.Label, {
41417
- variant: "xs",
41418
- color: textColor
41419
- }, text));
41420
- });
41421
- InfoChip.displayName = 'InfoChip';
41422
- InfoChip.propTypes = {
41423
- variant: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['default', 'success', 'alert', 'warning', 'info']),
41424
- text: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
41425
- icon: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(_utils__WEBPACK_IMPORTED_MODULE_7__.iconNames)
41426
- };
41427
- var InfoChipWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_layout__WEBPACK_IMPORTED_MODULE_5__.Flex).attrs({
41428
- align_items: 'center',
41429
- gap: '02',
41430
- padding_top: '0',
41431
- padding_right: '04',
41432
- padding_bottom: '0',
41433
- padding_left: '04'
41434
- }).withConfig({
41435
- displayName: "InfoChipWrapper",
41436
- componentId: "sc-qtbg7s-0"
41437
- })(["background-color:", ";border-radius:24px;width:fit-content;min-height:24px;height:24px;"], function (_ref) {
41438
- var color = _ref.theme.color,
41439
- $variant = _ref.$variant;
41440
- return color[{
41441
- success: 'bg_fill_success_secondary',
41442
- alert: 'bg_fill_error_secondary',
41443
- warning: 'bg_fill_warning_secondary',
41444
- info: 'bg_fill_primary_secondary'
41445
- }[$variant] || 'bg_fill_secondary'];
41446
- });
41447
-
41448
- /***/ }),
41449
-
41450
41424
  /***/ "./src/input/checkbox.js":
41451
41425
  /*!*******************************!*\
41452
41426
  !*** ./src/input/checkbox.js ***!
@@ -41698,8 +41672,14 @@ __webpack_require__.r(__webpack_exports__);
41698
41672
 
41699
41673
 
41700
41674
  /*jslint react:true*/
41675
+ 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); }
41701
41676
 
41702
41677
  var _excluded = ["id", "styles", "size", "async", "creatable", "isOptionDisabled", "className", "label", "labelIcon", "labelTooltip", "required", "necessityIndicator", "invalid", "helperText", "placeholder", "disabled"];
41678
+ 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; }
41679
+ 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; }
41680
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
41681
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
41682
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
41703
41683
  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); }
41704
41684
  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; }
41705
41685
  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; }
@@ -41718,26 +41698,26 @@ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t =
41718
41698
 
41719
41699
 
41720
41700
 
41721
- var CheckboxList = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().forwardRef(function (_ref, forwardRef) {
41722
- var id = _ref.id,
41723
- styles = _ref.styles,
41724
- _ref$size = _ref.size,
41725
- size = _ref$size === void 0 ? 'sm' : _ref$size,
41726
- async = _ref.async,
41727
- creatable = _ref.creatable,
41728
- isOptionDisabled = _ref.isOptionDisabled,
41729
- className = _ref.className,
41730
- label = _ref.label,
41731
- labelIcon = _ref.labelIcon,
41732
- labelTooltip = _ref.labelTooltip,
41733
- required = _ref.required,
41734
- necessityIndicator = _ref.necessityIndicator,
41735
- invalid = _ref.invalid,
41736
- helperText = _ref.helperText,
41737
- _ref$placeholder = _ref.placeholder,
41738
- placeholder = _ref$placeholder === void 0 ? 'Search...' : _ref$placeholder,
41739
- disabled = _ref.disabled,
41740
- rest = _objectWithoutProperties(_ref, _excluded);
41701
+ var CheckboxList = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().forwardRef(function (props, ref) {
41702
+ var id = props.id,
41703
+ styles = props.styles,
41704
+ _props$size = props.size,
41705
+ size = _props$size === void 0 ? 'sm' : _props$size,
41706
+ async = props.async,
41707
+ creatable = props.creatable,
41708
+ isOptionDisabled = props.isOptionDisabled,
41709
+ className = props.className,
41710
+ label = props.label,
41711
+ labelIcon = props.labelIcon,
41712
+ labelTooltip = props.labelTooltip,
41713
+ required = props.required,
41714
+ necessityIndicator = props.necessityIndicator,
41715
+ invalid = props.invalid,
41716
+ helperText = props.helperText,
41717
+ _props$placeholder = props.placeholder,
41718
+ placeholder = _props$placeholder === void 0 ? 'Search...' : _props$placeholder,
41719
+ disabled = props.disabled,
41720
+ rest = _objectWithoutProperties(props, _excluded);
41741
41721
  var labelId = (0,_hooks__WEBPACK_IMPORTED_MODULE_8__.useLabelId)(id);
41742
41722
  var t = (0,_translation__WEBPACK_IMPORTED_MODULE_10__.useTranslate)();
41743
41723
  var SelectComp = getComponent({
@@ -41759,7 +41739,7 @@ var CheckboxList = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().for
41759
41739
  });
41760
41740
  var selectProps = lodash_omit__WEBPACK_IMPORTED_MODULE_0___default()(rest, Object.keys(wrapperProps));
41761
41741
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_layout__WEBPACK_IMPORTED_MODULE_9__.Flex, _extends({
41762
- ref: forwardRef,
41742
+ ref: ref,
41763
41743
  "data-testid": "checkbox-list",
41764
41744
  className: className,
41765
41745
  flex_direction: "column",
@@ -41792,23 +41772,14 @@ var CheckboxList = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().for
41792
41772
  }, helperText));
41793
41773
  });
41794
41774
  CheckboxList.displayName = 'CheckboxList';
41795
- CheckboxList.propTypes = {
41796
- value: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().any),
41797
- onChange: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
41798
- onFocus: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
41799
- onBlur: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
41800
- placeholder: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().node),
41801
- disabled: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
41802
- required: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
41803
- necessityIndicator: _constants__WEBPACK_IMPORTED_MODULE_7__.PT_NECESSITY_INDICATOR,
41804
- invalid: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
41805
- label: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().node),
41806
- labelIcon: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
41807
- labelTooltip: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().node),
41808
- helperText: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().node),
41775
+ CheckboxList.propTypes = _objectSpread(_objectSpread({}, _constants__WEBPACK_IMPORTED_MODULE_7__.PT_INPUT_SHARED), {}, {
41809
41776
  size: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['sm', 'md', 'lg']),
41810
- virtualized: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool)
41811
- };
41777
+ virtualized: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
41778
+ /** Minimum height of the menu before flipping */
41779
+ minMenuHeight: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().number),
41780
+ /** Maximum height of the menu before scrolling */
41781
+ maxMenuHeight: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().number)
41782
+ });
41812
41783
  var getComponent = function getComponent(opt) {
41813
41784
  if (opt.async) return opt.creatable ? react_select_async_creatable__WEBPACK_IMPORTED_MODULE_5__["default"] : react_select_async__WEBPACK_IMPORTED_MODULE_4__["default"];
41814
41785
  return opt.creatable ? react_select_creatable__WEBPACK_IMPORTED_MODULE_3__["default"] : react_select__WEBPACK_IMPORTED_MODULE_15__["default"];
@@ -42158,28 +42129,26 @@ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t =
42158
42129
 
42159
42130
 
42160
42131
 
42161
- var CompareTo = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().forwardRef(function (_ref, ref) {
42162
- var _ref$size = _ref.size,
42163
- size = _ref$size === void 0 ? 'md' : _ref$size,
42164
- _ref$format = _ref.format,
42165
- fmt = _ref$format === void 0 ? 'dd/MM/yyyy' : _ref$format,
42166
- _ref$placeholder = _ref.placeholder,
42167
- placeholder = _ref$placeholder === void 0 ? 'Compare to' : _ref$placeholder,
42168
- _ref$options = _ref.options,
42169
- options = _ref$options === void 0 ? [] : _ref$options,
42170
- formatOptionLabel = _ref.formatOptionLabel,
42171
- rest = _objectWithoutProperties(_ref, _excluded);
42132
+ var CompareTo = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().forwardRef(function (props, ref) {
42133
+ var _props$size = props.size,
42134
+ size = _props$size === void 0 ? 'md' : _props$size,
42135
+ _props$format = props.format,
42136
+ fmt = _props$format === void 0 ? 'dd/MM/yyyy' : _props$format,
42137
+ _props$placeholder = props.placeholder,
42138
+ placeholder = _props$placeholder === void 0 ? 'Compare to' : _props$placeholder,
42139
+ _props$options = props.options,
42140
+ options = _props$options === void 0 ? [] : _props$options,
42141
+ formatOptionLabel = props.formatOptionLabel,
42142
+ rest = _objectWithoutProperties(props, _excluded);
42172
42143
  var _formatOptionLabel = (0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function (opt) {
42173
- if (opt && lodash_isObject__WEBPACK_IMPORTED_MODULE_0___default()(opt)) {
42174
- var str;
42175
- try {
42176
- str = opt.value != 'custom' ? opt.label : (0,date_fns_format__WEBPACK_IMPORTED_MODULE_11__["default"])(opt.from, fmt);
42177
- } catch (e) {
42178
- str = '-';
42179
- }
42180
- return "".concat(placeholder, " ").concat(str);
42144
+ if (!opt || !lodash_isObject__WEBPACK_IMPORTED_MODULE_0___default()(opt)) return '';
42145
+ var str;
42146
+ try {
42147
+ str = opt.value != 'custom' ? opt.label : (0,date_fns_format__WEBPACK_IMPORTED_MODULE_11__["default"])(opt.from, fmt);
42148
+ } catch (e) {
42149
+ str = '-';
42181
42150
  }
42182
- return '';
42151
+ return "".concat(placeholder, " ").concat(str);
42183
42152
  }, [fmt, placeholder]);
42184
42153
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_dropdown__WEBPACK_IMPORTED_MODULE_9__.Dropdown, _extends({
42185
42154
  ref: ref
@@ -42197,9 +42166,7 @@ var CompareTo = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().forwar
42197
42166
  styles: {
42198
42167
  menu: function menu(baseStyles) {
42199
42168
  return _objectSpread(_objectSpread({}, baseStyles), {}, {
42200
- padding: '8px',
42201
- margin: '0',
42202
- minWidth: '0',
42169
+ minWidth: 0,
42203
42170
  width: null
42204
42171
  });
42205
42172
  }
@@ -42252,6 +42219,14 @@ var CompareToCalendar = function CompareToCalendar(props) {
42252
42219
  _useState4 = _slicedToArray(_useState3, 2),
42253
42220
  customDate = _useState4[0],
42254
42221
  setCustomDate = _useState4[1];
42222
+ var onButtonClick = function onButtonClick() {
42223
+ var opt = {
42224
+ value: 'custom',
42225
+ label: 'Custom',
42226
+ from: customDate
42227
+ };
42228
+ onApply(opt, 'select-option');
42229
+ };
42255
42230
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_layout__WEBPACK_IMPORTED_MODULE_5__.Flex, {
42256
42231
  flex_direction: "column",
42257
42232
  padding: "04",
@@ -42275,13 +42250,7 @@ var CompareToCalendar = function CompareToCalendar(props) {
42275
42250
  variant: "primary",
42276
42251
  text: "Apply",
42277
42252
  disabled: !customDate,
42278
- onClick: function onClick() {
42279
- onApply({
42280
- value: 'custom',
42281
- label: 'Custom',
42282
- from: customDate
42283
- }, 'select-option');
42284
- },
42253
+ onClick: onButtonClick,
42285
42254
  style: {
42286
42255
  width: '100%'
42287
42256
  }
@@ -43548,11 +43517,10 @@ var MenuList = function MenuList(props) {
43548
43517
  children = props.children;
43549
43518
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_menu_shared__WEBPACK_IMPORTED_MODULE_1__.MenuContainer, _extends({
43550
43519
  ref: innerRef,
43551
- $noBorder: true,
43552
43520
  role: "menu",
43553
43521
  className: cx({
43554
43522
  menuList: true
43555
- }, className),
43523
+ }, className, 'unstyled'),
43556
43524
  style: getStyles('menuList', props)
43557
43525
  }, innerProps), react__WEBPACK_IMPORTED_MODULE_0___default().Children.map(children, function (child, ind) {
43558
43526
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(child, {
@@ -43754,9 +43722,10 @@ var useStyles = function useStyles(_ref) {
43754
43722
  minWidth: 'fit-content',
43755
43723
  maxWidth: '540px',
43756
43724
  width: '100%',
43757
- backgroundColor: color.bg_elevated,
43725
+ border: "1px solid ".concat(color.popover_border),
43726
+ backgroundColor: color.bg,
43758
43727
  borderRadius: spacing['02'],
43759
- boxShadow: shadow.medium,
43728
+ boxShadow: color.popover_shadow,
43760
43729
  zIndex: menuPortalTarget ? baseStyles.zIndex : _constants__WEBPACK_IMPORTED_MODULE_3__.Z_INDEX.dropdown
43761
43730
  });
43762
43731
  },
@@ -47694,29 +47663,34 @@ __webpack_require__.r(__webpack_exports__);
47694
47663
  /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
47695
47664
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
47696
47665
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
47697
- /* harmony import */ var _shared__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./shared */ "./src/menu/shared.js");
47666
+ /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
47667
+ /* harmony import */ var _shared__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./shared */ "./src/menu/shared.js");
47698
47668
  // LICENSE_CODE ZON
47699
47669
 
47700
47670
 
47701
47671
  /*jslint react:true*/
47702
- var _excluded = ["items", "size", "noBorder"];
47672
+ var _excluded = ["className", "items", "size", "noBorder", "unstyled"];
47703
47673
  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); }
47704
47674
  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; }
47705
47675
  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; }
47706
47676
 
47707
47677
 
47708
47678
 
47709
- var Menu = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(function (_ref, ref) {
47710
- var items = _ref.items,
47711
- _ref$size = _ref.size,
47712
- size = _ref$size === void 0 ? 'md' : _ref$size,
47713
- noBorder = _ref.noBorder,
47714
- rest = _objectWithoutProperties(_ref, _excluded);
47679
+
47680
+ var Menu = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(function (props, ref) {
47681
+ var _props$className = props.className,
47682
+ className = _props$className === void 0 ? 'uikit_menu' : _props$className,
47683
+ items = props.items,
47684
+ _props$size = props.size,
47685
+ size = _props$size === void 0 ? 'md' : _props$size,
47686
+ noBorder = props.noBorder,
47687
+ unstyled = props.unstyled,
47688
+ rest = _objectWithoutProperties(props, _excluded);
47715
47689
  if (!items || !items.length) return null;
47716
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_shared__WEBPACK_IMPORTED_MODULE_2__.MenuContainer, _extends({
47717
- ref: ref
47690
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_shared__WEBPACK_IMPORTED_MODULE_3__.MenuContainer, _extends({
47691
+ ref: ref,
47692
+ className: (0,_util__WEBPACK_IMPORTED_MODULE_2__.classNames)(null, null, className, (noBorder || unstyled) && 'unstyled')
47718
47693
  }, rest, {
47719
- $noBorder: noBorder,
47720
47694
  role: "menu",
47721
47695
  "data-testid": "menu"
47722
47696
  }), items.map(function (item, ind) {
@@ -47730,9 +47704,10 @@ var Menu = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(
47730
47704
  });
47731
47705
  Menu.displayName = 'Menu';
47732
47706
  Menu.propTypes = {
47707
+ className: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
47733
47708
  size: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['sm', 'md', 'lg']),
47734
47709
  items: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().any)).isRequired,
47735
- noBorder: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)
47710
+ unstyled: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)
47736
47711
  };
47737
47712
 
47738
47713
  /***/ }),
@@ -48071,7 +48046,7 @@ var MenuItemGroup = function MenuItemGroup(_ref) {
48071
48046
  color: "text_quaternary",
48072
48047
  role: "presentation"
48073
48048
  }, text), children && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_shared__WEBPACK_IMPORTED_MODULE_4__.MenuContainer, {
48074
- $noBorder: true,
48049
+ className: "unstyled",
48075
48050
  role: "group"
48076
48051
  }, children)));
48077
48052
  };
@@ -48095,12 +48070,10 @@ __webpack_require__.r(__webpack_exports__);
48095
48070
  /* harmony export */ });
48096
48071
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
48097
48072
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
48098
- /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! styled-components */ "styled-components");
48099
- /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_1__);
48100
- /* harmony import */ var _rc_component_trigger__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @rc-component/trigger */ "./node_modules/@rc-component/trigger/es/index.js");
48101
- /* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../constants */ "./src/constants.js");
48102
- /* harmony import */ var _shared__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./shared */ "./src/menu/shared.js");
48103
- /* 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");
48104
48077
  // LICENSE_CODE ZON
48105
48078
 
48106
48079
 
@@ -48116,7 +48089,6 @@ function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
48116
48089
 
48117
48090
 
48118
48091
 
48119
-
48120
48092
  var prefixCls = 'uikit_menu_popup';
48121
48093
  var MenuItemPopup = function MenuItemPopup(_ref) {
48122
48094
  var subItems = _ref.subItems,
@@ -48138,9 +48110,7 @@ var MenuItemPopup = function MenuItemPopup(_ref) {
48138
48110
  motionLeave: true,
48139
48111
  motionDeadline: 500
48140
48112
  };
48141
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(MenuItemPopupStyle, {
48142
- $prefixCls: prefixCls
48143
- }), /*#__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, {
48144
48114
  prefixCls: prefixCls,
48145
48115
  mask: true,
48146
48116
  action: popupTrigger,
@@ -48150,18 +48120,15 @@ var MenuItemPopup = function MenuItemPopup(_ref) {
48150
48120
  popupStyle: popupStyle,
48151
48121
  popupVisible: visible,
48152
48122
  onPopupVisibleChange: setVisible,
48153
- builtinPlacements: _placements__WEBPACK_IMPORTED_MODULE_5__.placements,
48154
- zIndex: _constants__WEBPACK_IMPORTED_MODULE_3__.Z_INDEX.popover,
48155
- popup: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_shared__WEBPACK_IMPORTED_MODULE_4__.MenuContainer, {
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, {
48156
48126
  onClick: function onClick() {
48157
48127
  return setVisible(false);
48158
48128
  }
48159
48129
  }, subItems)
48160
- }, children));
48130
+ }, children);
48161
48131
  };
48162
- 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) {
48163
- return p.$prefixCls;
48164
- });
48165
48132
 
48166
48133
  /***/ }),
48167
48134
 
@@ -48288,20 +48255,18 @@ __webpack_require__.r(__webpack_exports__);
48288
48255
  var MenuContainer = styled_components__WEBPACK_IMPORTED_MODULE_0___default().ul.withConfig({
48289
48256
  displayName: "MenuContainer",
48290
48257
  componentId: "sc-laozu6-0"
48291
- })(["margin:0;padding:4px 0;box-sizing:border-box;min-width:168px;max-width:540px;background:", ";border:", ";border-radius:4px;display:flex;flex-direction:column;gap:2px;box-shadow:", ";max-height:80vh;overflow-y:auto;", ";"], function (_ref) {
48292
- var color = _ref.theme.color;
48293
- return color.bg_elevated;
48258
+ })(["margin:0;padding:4px 0;box-sizing:border-box;min-width:168px;max-width:540px;border-radius:4px;display:flex;flex-direction:column;gap:2px;max-height:80vh;overflow-y:auto;", ";&:not(.unstyled){background:", ";border:", ";box-shadow:", ";}"], function (_ref) {
48259
+ var scrollbars = _ref.theme.scrollbars;
48260
+ return scrollbars.thin;
48294
48261
  }, function (_ref2) {
48295
- var $noBorder = _ref2.$noBorder,
48296
- color = _ref2.theme.color;
48297
- return $noBorder ? '0 none' : "1px solid ".concat(color.border_secondary);
48262
+ var color = _ref2.theme.color;
48263
+ return color.bg;
48298
48264
  }, function (_ref3) {
48299
- var $noBorder = _ref3.$noBorder,
48300
- shadow = _ref3.theme.shadow;
48301
- return $noBorder ? 'none' : shadow.medium;
48265
+ var color = _ref3.theme.color;
48266
+ return "1px solid ".concat(color.popover_border);
48302
48267
  }, function (_ref4) {
48303
- var scrollbars = _ref4.theme.scrollbars;
48304
- return scrollbars.thin;
48268
+ var color = _ref4.theme.color;
48269
+ return color.popover_shadow;
48305
48270
  });
48306
48271
  var MenuItemContainer = styled_components__WEBPACK_IMPORTED_MODULE_0___default().li.withConfig({
48307
48272
  displayName: "MenuItemContainer",
@@ -48310,6 +48275,63 @@ var MenuItemContainer = styled_components__WEBPACK_IMPORTED_MODULE_0___default()
48310
48275
 
48311
48276
  /***/ }),
48312
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
+
48313
48335
  /***/ "./src/modal/base.js":
48314
48336
  /*!***************************!*\
48315
48337
  !*** ./src/modal/base.js ***!
@@ -48887,15 +48909,15 @@ __webpack_require__.r(__webpack_exports__);
48887
48909
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
48888
48910
  /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! styled-components */ "styled-components");
48889
48911
  /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_2__);
48890
- /* harmony import */ var rc_dialog__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rc-dialog */ "./node_modules/rc-dialog/es/index.js");
48891
- /* harmony import */ var rc_util_lib_pickAttrs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rc-util/lib/pickAttrs */ "./node_modules/rc-util/lib/pickAttrs.js");
48892
- /* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../typography */ "./src/typography/index.js");
48893
- /* harmony import */ var _icon_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../icon.js */ "./src/icon.js");
48894
- /* harmony import */ var _layout__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../layout */ "./src/layout/index.js");
48895
- /* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../constants */ "./src/constants.js");
48896
- /* harmony import */ var _hooks__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../hooks */ "./src/hooks/index.js");
48897
- /* harmony import */ var _base_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./base.js */ "./src/modal/base.js");
48898
- /* harmony import */ var _modal_button_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./modal_button.js */ "./src/modal/modal_button.js");
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");
48899
48921
  // LICENSE_CODE ZON
48900
48922
 
48901
48923
 
@@ -48940,7 +48962,7 @@ var Modal2 = function Modal2(_ref) {
48940
48962
  cancelProps = _ref.cancelProps,
48941
48963
  icon = _ref.icon,
48942
48964
  _ref$zIndex = _ref.zIndex,
48943
- zIndex = _ref$zIndex === void 0 ? _constants__WEBPACK_IMPORTED_MODULE_8__.Z_INDEX.modal : _ref$zIndex,
48965
+ zIndex = _ref$zIndex === void 0 ? _constants__WEBPACK_IMPORTED_MODULE_7__.Z_INDEX.modal : _ref$zIndex,
48944
48966
  children = _ref.children,
48945
48967
  _ref$minHeight = _ref.minHeight,
48946
48968
  minHeight = _ref$minHeight === void 0 ? 300 : _ref$minHeight,
@@ -48948,9 +48970,8 @@ var Modal2 = function Modal2(_ref) {
48948
48970
  _ref$destroyOnClose = _ref.destroyOnClose,
48949
48971
  destroyOnClose = _ref$destroyOnClose === void 0 ? true : _ref$destroyOnClose,
48950
48972
  rest = _objectWithoutProperties(_ref, _excluded);
48951
- var theme = (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.useTheme)();
48952
- var width = _base_js__WEBPACK_IMPORTED_MODULE_10__.MODAL_WIDTHS[size] || _base_js__WEBPACK_IMPORTED_MODULE_10__.MODAL_WIDTHS.md;
48953
- 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)(),
48954
48975
  windowHeight = _useWindowSize.height;
48955
48976
  var maxHeight = "".concat(Math.max(windowHeight * 0.8, minHeight), "px");
48956
48977
  var dialogFooter = footer !== null ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(DialogFooter, {
@@ -48963,14 +48984,11 @@ var Modal2 = function Modal2(_ref) {
48963
48984
  variant: footerVariant,
48964
48985
  footer: footer
48965
48986
  }) : null;
48966
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement((react__WEBPACK_IMPORTED_MODULE_1___default().Fragment), null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Modal2Style, {
48967
- $prefixCls: classNamePrefix,
48968
- $theme: theme
48969
- }), /*#__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({
48970
48988
  "data-testid": "modal_general",
48971
48989
  visible: show,
48972
48990
  onClose: onClose,
48973
- className: className,
48991
+ modalClassName: className,
48974
48992
  prefixCls: classNamePrefix,
48975
48993
  closable: closable,
48976
48994
  closeIcon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(CloseIcon, null),
@@ -48995,7 +49013,7 @@ var Modal2 = function Modal2(_ref) {
48995
49013
  keyboard: false,
48996
49014
  animation: "zoom",
48997
49015
  maskAnimation: "fade"
48998
- }, (0,rc_util_lib_pickAttrs__WEBPACK_IMPORTED_MODULE_4__["default"])(rest)), children));
49016
+ }, (0,rc_util_lib_pickAttrs__WEBPACK_IMPORTED_MODULE_3__["default"])(rest)), children);
48999
49017
  };
49000
49018
  Modal2.propTypes = {
49001
49019
  className: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
@@ -49021,69 +49039,6 @@ Modal2.propTypes = {
49021
49039
  icon: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
49022
49040
  destroyOnClose: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)
49023
49041
  };
49024
- var prefixCls = function prefixCls(p) {
49025
- return p.$prefixCls;
49026
- };
49027
- var theme = function theme(cb) {
49028
- return function (p) {
49029
- return cb(p.$theme);
49030
- };
49031
- };
49032
- 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) {
49033
- return t.color.modal_shadow_bg;
49034
- }), theme(function (t) {
49035
- return t.color.modal2_shadow_bg;
49036
- }), theme(function (t) {
49037
- return t.spacing['05'];
49038
- }), theme(function (t) {
49039
- return t.color.bg;
49040
- }), theme(function (t) {
49041
- return t.spacing['02'];
49042
- }), theme(function (t) {
49043
- return t.font_family.sans;
49044
- }), theme(function (t) {
49045
- return t.shadow.large;
49046
- }), theme(function (t) {
49047
- return t.color.icon_button_icon_default;
49048
- }), theme(function (t) {
49049
- return t.color.icon_button_bg_hover;
49050
- }), theme(function (t) {
49051
- return t.color.icon_button_icon_hover;
49052
- }), theme(function (t) {
49053
- return t.spacing['03'];
49054
- }), theme(function (t) {
49055
- return t.spacing['08'];
49056
- }), theme(function (t) {
49057
- return t.spacing['03'];
49058
- }), theme(function (t) {
49059
- return t.spacing['07'];
49060
- }), theme(function (t) {
49061
- return t.spacing['03'];
49062
- }), theme(function (t) {
49063
- return t.spacing['03'];
49064
- }), theme(function (t) {
49065
- return t.spacing['06'];
49066
- }), theme(function (t) {
49067
- return t.spacing['07'];
49068
- }), theme(function (t) {
49069
- return t.spacing['08'];
49070
- }), theme(function (t) {
49071
- return t.spacing['07'];
49072
- }), theme(function (t) {
49073
- return t.color.text_secondary;
49074
- }), theme(function (t) {
49075
- return t.scrollbars.thin;
49076
- }), theme(function (t) {
49077
- return t.spacing['04'];
49078
- }), theme(function (t) {
49079
- return t.spacing['07'];
49080
- }), theme(function (t) {
49081
- return t.spacing['04'];
49082
- }), theme(function (t) {
49083
- return t.spacing['07'];
49084
- }), theme(function (t) {
49085
- return t.color.border_secondary;
49086
- }));
49087
49042
  var DialogHeader = function DialogHeader(_ref2) {
49088
49043
  var icon = _ref2.icon,
49089
49044
  title = _ref2.title,
@@ -49091,9 +49046,9 @@ var DialogHeader = function DialogHeader(_ref2) {
49091
49046
  _prexifCls = _ref2.prefixCls;
49092
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", {
49093
49048
  className: "".concat(_prexifCls, "-title-wrap")
49094
- }, icon, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_5__.Header, {
49049
+ }, icon, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_4__.Header, {
49095
49050
  color: "text"
49096
- }, title)), !!subtitle && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_5__.Label, {
49051
+ }, title)), !!subtitle && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_4__.Label, {
49097
49052
  padding_right: "04",
49098
49053
  color: "text_tertiary"
49099
49054
  }, subtitle));
@@ -49111,7 +49066,7 @@ var DialogFooter = function DialogFooter(_ref3) {
49111
49066
  var renderOk = !footer && !!(onOk && okLabel);
49112
49067
  var renderFooter = !!footer || renderOk || renderCancel;
49113
49068
  var FooterLayout = footerLayout[variant] || FooterHorizontal;
49114
- 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_11__.ModalButton, _extends({
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({
49115
49070
  size: "sm",
49116
49071
  text: cancelLabel,
49117
49072
  hotKey: "Escape",
@@ -49119,7 +49074,7 @@ var DialogFooter = function DialogFooter(_ref3) {
49119
49074
  onClick: onCancel
49120
49075
  }, cancelProps, {
49121
49076
  "data-testid": "modal_footer_cancel_button"
49122
- })), renderOk && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_modal_button_js__WEBPACK_IMPORTED_MODULE_11__.ModalButton, _extends({
49077
+ })), renderOk && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_modal_button_js__WEBPACK_IMPORTED_MODULE_10__.ModalButton, _extends({
49123
49078
  size: "sm",
49124
49079
  text: okLabel,
49125
49080
  hotKey: "Enter",
@@ -49129,7 +49084,7 @@ var DialogFooter = function DialogFooter(_ref3) {
49129
49084
  "data-testid": "modal_footer_ok_button"
49130
49085
  })));
49131
49086
  };
49132
- var FooterHorizontal = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_layout__WEBPACK_IMPORTED_MODULE_7__.Flex).attrs({
49087
+ var FooterHorizontal = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_layout__WEBPACK_IMPORTED_MODULE_6__.Flex).attrs({
49133
49088
  gap: '04',
49134
49089
  align_items: 'center',
49135
49090
  justify_content: 'flex-end'
@@ -49137,14 +49092,14 @@ var FooterHorizontal = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(
49137
49092
  displayName: "FooterHorizontal",
49138
49093
  componentId: "sc-1p3wums-0"
49139
49094
  })([""]);
49140
- var FooterFullHorizontal = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_layout__WEBPACK_IMPORTED_MODULE_7__.Flex).attrs({
49095
+ var FooterFullHorizontal = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_layout__WEBPACK_IMPORTED_MODULE_6__.Flex).attrs({
49141
49096
  gap: '04',
49142
49097
  align_items: 'space-between'
49143
49098
  }).withConfig({
49144
49099
  displayName: "FooterFullHorizontal",
49145
49100
  componentId: "sc-1p3wums-1"
49146
49101
  })(["button{width:100%;}"]);
49147
- var FooterVertical = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_layout__WEBPACK_IMPORTED_MODULE_7__.Flex).attrs({
49102
+ var FooterVertical = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_layout__WEBPACK_IMPORTED_MODULE_6__.Flex).attrs({
49148
49103
  gap: '04',
49149
49104
  flex_direction: 'column'
49150
49105
  }).withConfig({
@@ -49157,7 +49112,7 @@ var footerLayout = {
49157
49112
  vertical: FooterVertical
49158
49113
  };
49159
49114
  var CloseIcon = function CloseIcon() {
49160
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon_js__WEBPACK_IMPORTED_MODULE_6__.Icon, {
49115
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon_js__WEBPACK_IMPORTED_MODULE_5__.Icon, {
49161
49116
  name: "Close",
49162
49117
  size: "xs",
49163
49118
  "data-testid": "modal_header_close_button"
@@ -49234,6 +49189,115 @@ var getHotKeyIcon = function getHotKeyIcon(hotKey) {
49234
49189
 
49235
49190
  /***/ }),
49236
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
+
49237
49301
  /***/ "./src/modal/util.js":
49238
49302
  /*!***************************!*\
49239
49303
  !*** ./src/modal/util.js ***!
@@ -49624,19 +49688,17 @@ __webpack_require__.r(__webpack_exports__);
49624
49688
  /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
49625
49689
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
49626
49690
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
49627
- /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! styled-components */ "styled-components");
49628
- /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_2__);
49629
- /* harmony import */ var _rc_component_trigger__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @rc-component/trigger */ "./node_modules/@rc-component/trigger/es/index.js");
49630
- /* harmony import */ var dom_helpers_listen__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! dom-helpers/listen */ "./node_modules/dom-helpers/esm/listen.js");
49631
- /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
49632
- /* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../constants */ "./src/constants.js");
49633
- /* harmony import */ var _hooks__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../hooks */ "./src/hooks/index.js");
49634
- /* 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");
49635
49697
  // LICENSE_CODE ZON
49636
49698
 
49637
49699
 
49638
49700
  /*jslint react:true*/
49639
- 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"];
49640
49702
  function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
49641
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."); }
49642
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; } }
@@ -49653,7 +49715,6 @@ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t =
49653
49715
 
49654
49716
 
49655
49717
 
49656
-
49657
49718
  var _Popover = function Popover(_ref) {
49658
49719
  var className = _ref.className,
49659
49720
  _ref$classNamePrefix = _ref.classNamePrefix,
@@ -49671,10 +49732,11 @@ var _Popover = function Popover(_ref) {
49671
49732
  getScrollDOMNode = _ref.getScrollDOMNode,
49672
49733
  _ref$destroyOnClose = _ref.destroyOnClose,
49673
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,
49674
49737
  rest = _objectWithoutProperties(_ref, _excluded);
49675
- var theme = (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.useTheme)();
49676
- var mouseEnterDelay = (0,_util__WEBPACK_IMPORTED_MODULE_5__.firstDefined)(rest.showDelay, _Popover.showDelay);
49677
- 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);
49678
49740
  var popupMotion = {
49679
49741
  motionName: "".concat(classNamePrefix, "-motion"),
49680
49742
  motionAppear: true,
@@ -49682,7 +49744,7 @@ var _Popover = function Popover(_ref) {
49682
49744
  motionLeave: true,
49683
49745
  motionDeadline: 500
49684
49746
  };
49685
- var _useStateWithEffect = (0,_hooks__WEBPACK_IMPORTED_MODULE_7__.useStateWithEffect)(visible),
49747
+ var _useStateWithEffect = (0,_hooks__WEBPACK_IMPORTED_MODULE_5__.useStateWithEffect)(visible),
49686
49748
  _useStateWithEffect2 = _slicedToArray(_useStateWithEffect, 2),
49687
49749
  popupVisible = _useStateWithEffect2[0],
49688
49750
  setPopupVisible = _useStateWithEffect2[1];
@@ -49694,15 +49756,12 @@ var _Popover = function Popover(_ref) {
49694
49756
  if (!hideOnScroll || !popupVisible) return;
49695
49757
  var htmlElement = typeof getScrollDOMNode == 'function' ? getScrollDOMNode() : window;
49696
49758
  if (htmlElement) {
49697
- return (0,dom_helpers_listen__WEBPACK_IMPORTED_MODULE_4__["default"])(htmlElement, 'scroll', function () {
49759
+ return (0,dom_helpers_listen__WEBPACK_IMPORTED_MODULE_2__["default"])(htmlElement, 'scroll', function () {
49698
49760
  return onPopupVisibleChange(false);
49699
49761
  });
49700
49762
  }
49701
49763
  }, [hideOnScroll, popupVisible, getScrollDOMNode, onPopupVisibleChange]);
49702
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement((react__WEBPACK_IMPORTED_MODULE_1___default().Fragment), null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(PopoverStyle, {
49703
- $prefixCls: classNamePrefix,
49704
- $theme: theme
49705
- }), /*#__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, {
49706
49765
  prefixCls: classNamePrefix,
49707
49766
  mask: true,
49708
49767
  action: trigger,
@@ -49712,23 +49771,23 @@ var _Popover = function Popover(_ref) {
49712
49771
  popupStyle: style,
49713
49772
  popupVisible: popupVisible,
49714
49773
  onPopupVisibleChange: onPopupVisibleChange,
49715
- builtinPlacements: _placements__WEBPACK_IMPORTED_MODULE_8__.placements,
49716
- zIndex: _constants__WEBPACK_IMPORTED_MODULE_6__.Z_INDEX.popover,
49774
+ builtinPlacements: _placements__WEBPACK_IMPORTED_MODULE_6__.placements,
49775
+ zIndex: zIndex,
49717
49776
  afterPopupVisibleChange: afterVisibleChange,
49718
49777
  mouseEnterDelay: mouseEnterDelay,
49719
49778
  mouseLeaveDelay: mouseLeaveDelay,
49720
49779
  popup: popover,
49721
- destroyOnClose: destroyOnClose
49722
- }, children));
49780
+ autoDestroy: destroyOnClose
49781
+ }, children);
49723
49782
  };
49724
49783
 
49725
49784
  _Popover.propTypes = {
49726
49785
  className: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
49727
49786
  classNamePrefix: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
49728
49787
  style: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
49729
- trigger: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([_constants__WEBPACK_IMPORTED_MODULE_6__.PT_TRIGGER, prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf(_constants__WEBPACK_IMPORTED_MODULE_6__.PT_TRIGGER)]),
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)]),
49730
49789
  visible: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
49731
- placement: _constants__WEBPACK_IMPORTED_MODULE_6__.PT_TOOLTIP_PLACEMENT,
49790
+ placement: _constants__WEBPACK_IMPORTED_MODULE_4__.PT_TOOLTIP_PLACEMENT,
49732
49791
  popover: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
49733
49792
  showDelay: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
49734
49793
  hideDelay: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
@@ -49736,25 +49795,79 @@ _Popover.propTypes = {
49736
49795
  afterVisibleChange: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
49737
49796
  hideOnScroll: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
49738
49797
  getScrollDOMNode: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
49739
- 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)
49740
49800
  };
49741
49801
  _Popover.showDelay = 0.1;
49742
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);}"]);
49743
49853
  var prefixCls = function prefixCls(p) {
49744
- return p.$prefixCls;
49854
+ return p.prefixCls;
49745
49855
  };
49746
49856
  var theme = function theme(cb) {
49747
49857
  return function (p) {
49748
- return cb(p.$theme);
49858
+ return cb(p.theme);
49749
49859
  };
49750
49860
  };
49751
- var PopoverStyle = (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.createGlobalStyle)([".", "{position:absolute;display:block;visibility:visible;width:fit-content;border-radius:4px;border:1px solid ", ";background:", ";box-shadow:", ";&-hidden{display:none;}&-mask{position:fixed;inset:0;pointer-events:none;&-hidden{display:none;}}&-motion{&-enter,&-appear{opacity:0;animation-duration:0.3s;animation-fill-mode:both;animation-timing-function:cubic-bezier(0.08,0.82,0.17,1);animation-play-state:paused;}&-leave{animation-duration:0.3s;animation-fill-mode:both;animation-timing-function:cubic-bezier(0.6,0.04,0.98,0.34);animation-play-state:paused;}&-enter&-enter-active,&-appear&-appear-active{animation-name:rcPopoverZoomIn;animation-play-state:running;}&-leave&-leave-active{animation-name:rcPopoverZoomOut;animation-play-state:running;}}@keyframes rcPopoverZoomIn{0%{opacity:0;transform:scale(0,0);}100%{opacity:1;transform:scale(1,1);}}@keyframes rcPopoverZoomOut{0%{opacity:1;transform:scale(1,1);}100%{opacity:0;transform:scale(0,0);}}}"], prefixCls, theme(function (t) {
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) {
49752
49865
  return t.color.popover_border;
49753
49866
  }), theme(function (t) {
49754
49867
  return t.color.bg;
49755
49868
  }), theme(function (t) {
49756
49869
  return t.color.popover_shadow;
49757
- }));
49870
+ }), rcZoomIn, rcZoomOut);
49758
49871
 
49759
49872
  /***/ }),
49760
49873
 
@@ -49946,13 +50059,14 @@ __webpack_require__.r(__webpack_exports__);
49946
50059
  /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! styled-components */ "styled-components");
49947
50060
  /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_2__);
49948
50061
  /* harmony import */ var rc_util_lib_pickAttrs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rc-util/lib/pickAttrs */ "./node_modules/rc-util/lib/pickAttrs.js");
49949
- /* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../typography */ "./src/typography/index.js");
49950
- /* harmony import */ var _snackbar_icon__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./snackbar_icon */ "./src/snackbar/snackbar_icon.js");
50062
+ /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
50063
+ /* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../typography */ "./src/typography/index.js");
50064
+ /* harmony import */ var _snackbar_icon__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./snackbar_icon */ "./src/snackbar/snackbar_icon.js");
49951
50065
  // LICENSE_CODE ZON
49952
50066
 
49953
50067
 
49954
50068
  /*jslint react:true*/
49955
- var _excluded = ["type", "showIcon", "header", "children", "container_style"];
50069
+ var _excluded = ["className", "classNamePrefix", "variant", "type", "showIcon", "header", "children", "contentStyle", "container_style"];
49956
50070
  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); }
49957
50071
  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; }
49958
50072
  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; }
@@ -49962,54 +50076,95 @@ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t =
49962
50076
 
49963
50077
 
49964
50078
 
49965
- var Snackbar = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(function (_ref, ref) {
49966
- var _ref$type = _ref.type,
49967
- type = _ref$type === void 0 ? 'info' : _ref$type,
49968
- showIcon = _ref.showIcon,
49969
- header = _ref.header,
49970
- children = _ref.children,
49971
- container_style = _ref.container_style,
49972
- rest = _objectWithoutProperties(_ref, _excluded);
49973
- var content = typeof children == 'string' ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_4__.Paragraph, {
50079
+
50080
+ var Snackbar = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(function (props, ref) {
50081
+ var className = props.className,
50082
+ _props$classNamePrefi = props.classNamePrefix,
50083
+ classNamePrefix = _props$classNamePrefi === void 0 ? 'uikit_snackbar' : _props$classNamePrefi,
50084
+ _props$variant = props.variant,
50085
+ variant = _props$variant === void 0 ? 'generic' : _props$variant,
50086
+ type = props.type,
50087
+ showIcon = props.showIcon,
50088
+ header = props.header,
50089
+ children = props.children,
50090
+ contentStyle = props.contentStyle,
50091
+ container_style = props.container_style,
50092
+ rest = _objectWithoutProperties(props, _excluded);
50093
+ var _variant = type || variant;
50094
+ var content = typeof children == 'string' ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_5__.Paragraph, {
49974
50095
  variant: "lg_snug",
49975
50096
  color: "text"
49976
50097
  }, children) : children;
49977
50098
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Wrapper, _extends({
49978
- ref: ref,
49979
- $type: type
49980
- }, (0,rc_util_lib_pickAttrs__WEBPACK_IMPORTED_MODULE_3__["default"])(rest)), !!showIcon && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_snackbar_icon__WEBPACK_IMPORTED_MODULE_5__.SnackbarIcon, {
49981
- type: type
49982
- }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Container, {
49983
- style: container_style
49984
- }, !!header && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_4__.Label, {
50099
+ ref: ref
50100
+ }, (0,rc_util_lib_pickAttrs__WEBPACK_IMPORTED_MODULE_3__["default"])(rest), {
50101
+ $prefixCls: classNamePrefix,
50102
+ className: (0,_util__WEBPACK_IMPORTED_MODULE_4__.classNames)(null, null, className, classNamePrefix, "".concat(classNamePrefix, "_").concat(_variant))
50103
+ }), !!showIcon && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_snackbar_icon__WEBPACK_IMPORTED_MODULE_6__.SnackbarIcon, {
50104
+ variant: _variant,
50105
+ className: (0,_util__WEBPACK_IMPORTED_MODULE_4__.classNames)(classNamePrefix, {
50106
+ '-icon': true
50107
+ })
50108
+ }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Content, {
50109
+ className: (0,_util__WEBPACK_IMPORTED_MODULE_4__.classNames)(classNamePrefix, {
50110
+ '-content': true
50111
+ }),
50112
+ style: container_style || contentStyle
50113
+ }, !!header && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_5__.Label, {
49985
50114
  variant: "lg",
49986
- color: "text"
50115
+ color: "text",
50116
+ className: (0,_util__WEBPACK_IMPORTED_MODULE_4__.classNames)(classNamePrefix, {
50117
+ '-header': true
50118
+ })
49987
50119
  }, header), content));
49988
50120
  });
49989
50121
  Snackbar.displayName = 'Snackbar';
49990
50122
  Snackbar.propTypes = {
49991
- container_style: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
49992
- type: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['info', 'success', 'error', 'warning', 'generic']),
50123
+ className: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
50124
+ classNamePrefix: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
50125
+ contentStyle: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
50126
+ variant: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['generic', 'info', 'success', 'error', 'warning']),
49993
50127
  header: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
49994
50128
  showIcon: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)
49995
50129
  };
50130
+ var prefixCls = function prefixCls(p) {
50131
+ return p.$prefixCls;
50132
+ };
50133
+ var theme = function theme(cb) {
50134
+ return function (p) {
50135
+ return cb(p.theme);
50136
+ };
50137
+ };
49996
50138
  var Wrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
49997
50139
  displayName: "Wrapper",
49998
50140
  componentId: "sc-6ku6mu-0"
49999
- })(["display:flex;flex-direction:row;justify-content:flex-start;align-items:flex-start;padding:16px;gap:16px;border-radius:4px;background-color:", ";"], function (_ref2) {
50000
- var $type = _ref2.$type,
50001
- color = _ref2.theme.color;
50002
- return {
50003
- info: color.bg_fill_primary_secondary,
50004
- success: color.bg_fill_success_secondary,
50005
- error: color.bg_fill_error_secondary,
50006
- warning: color.bg_fill_warning_secondary
50007
- }[$type] || color.bg_fill_secondary;
50008
- });
50009
- var Container = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
50010
- displayName: "Container",
50141
+ })(["display:flex;flex-direction:row;justify-content:flex-start;align-items:flex-start;padding:16px;gap:16px;border-radius:4px;&.", "{&_info{background-color:", ";.", "-icon{color:", ";}}&_success{background-color:", ";.", "-icon{color:", ";}}&_error{background-color:", ";.", "-icon{color:", ";}}&_warning{background-color:", ";.", "-icon{color:", ";}}&_generic{background-color:", ";.", "-icon{color:", ";}}}"], prefixCls, theme(function (t) {
50142
+ return t.color.bg_fill_primary_secondary;
50143
+ }), prefixCls, theme(function (t) {
50144
+ return t.color.icon_primary;
50145
+ }), theme(function (t) {
50146
+ return t.color.bg_fill_success_secondary;
50147
+ }), prefixCls, theme(function (t) {
50148
+ return t.color.icon_success;
50149
+ }), theme(function (t) {
50150
+ return t.color.bg_fill_error_secondary;
50151
+ }), prefixCls, theme(function (t) {
50152
+ return t.color.icon_error;
50153
+ }), theme(function (t) {
50154
+ return t.color.bg_fill_warning_secondary;
50155
+ }), prefixCls, theme(function (t) {
50156
+ return t.color.icon_warning;
50157
+ }), theme(function (t) {
50158
+ return t.color.bg_fill_secondary;
50159
+ }), prefixCls, theme(function (t) {
50160
+ return t.color.icon;
50161
+ }));
50162
+ var Content = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
50163
+ displayName: "Content",
50011
50164
  componentId: "sc-6ku6mu-1"
50012
- })(["display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:16px;"]);
50165
+ })(["display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:", ";"], theme(function (t) {
50166
+ return t.spacing['05'];
50167
+ }));
50013
50168
 
50014
50169
  /***/ }),
50015
50170
 
@@ -50033,25 +50188,21 @@ __webpack_require__.r(__webpack_exports__);
50033
50188
  /*jslint react:true*/
50034
50189
 
50035
50190
 
50036
- var SnackbarIcon = function SnackbarIcon(props) {
50037
- var type = props.type;
50191
+ var SnackbarIcon = function SnackbarIcon(_ref) {
50192
+ var _ref$variant = _ref.variant,
50193
+ variant = _ref$variant === void 0 ? 'info' : _ref$variant,
50194
+ className = _ref.className;
50038
50195
  var name = {
50039
50196
  info: 'Info',
50040
50197
  success: 'CheckCircle',
50041
50198
  error: 'Warning',
50042
50199
  warning: 'Warning',
50043
50200
  generic: 'Info'
50044
- }[type] || 'Info';
50045
- var color = {
50046
- info: 'icon_primary',
50047
- success: 'icon_success',
50048
- error: 'icon_error',
50049
- warning: 'icon_warning'
50050
- }[type] || 'icon';
50201
+ }[variant] || 'Info';
50051
50202
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_1__.Icon, {
50052
50203
  name: name,
50053
- color: color,
50054
- size: "sm"
50204
+ size: "sm",
50205
+ className: className
50055
50206
  });
50056
50207
  };
50057
50208
 
@@ -50299,6 +50450,123 @@ _tab__WEBPACK_IMPORTED_MODULE_1__["default"].Group = _group__WEBPACK_IMPORTED_MO
50299
50450
 
50300
50451
 
50301
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
+
50302
50570
  /***/ }),
50303
50571
 
50304
50572
  /***/ "./src/tab/tab.js":
@@ -50428,12 +50696,10 @@ __webpack_require__.r(__webpack_exports__);
50428
50696
  /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
50429
50697
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
50430
50698
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
50431
- /* harmony import */ var rc_tabs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rc-tabs */ "./node_modules/rc-tabs/es/index.js");
50432
- /* harmony import */ var rc_util_lib_pickAttrs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rc-util/lib/pickAttrs */ "./node_modules/rc-util/lib/pickAttrs.js");
50433
- /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! styled-components */ "styled-components");
50434
- /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_4__);
50435
- /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
50436
- /* 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");
50437
50703
  // LICENSE_CODE ZON
50438
50704
 
50439
50705
 
@@ -50448,7 +50714,6 @@ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t =
50448
50714
 
50449
50715
 
50450
50716
 
50451
-
50452
50717
  var Tabs = function Tabs(_ref) {
50453
50718
  var className = _ref.className,
50454
50719
  _ref$classNamePrefix = _ref.classNamePrefix,
@@ -50472,14 +50737,10 @@ var Tabs = function Tabs(_ref) {
50472
50737
  activeKey = _ref.activeKey,
50473
50738
  renderTabBar = _ref.renderTabBar,
50474
50739
  rest = _objectWithoutProperties(_ref, _excluded);
50475
- var theme = (0,styled_components__WEBPACK_IMPORTED_MODULE_4__.useTheme)();
50476
- var mergedItems = (0,_use_legacy_items__WEBPACK_IMPORTED_MODULE_6__.useLegacyItems)(items, children);
50477
- 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, {
50478
- $prefixCls: classNamePrefix,
50479
- $theme: theme
50480
- }), /*#__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), {
50481
50742
  items: mergedItems,
50482
- className: (0,_util__WEBPACK_IMPORTED_MODULE_5__.classNames)(null, null, className, variant && "".concat(classNamePrefix, "-").concat(variant)),
50743
+ className: (0,_util__WEBPACK_IMPORTED_MODULE_3__.classNames)(null, null, className, "".concat(classNamePrefix, "-").concat(variant)),
50483
50744
  popupClassName: popupClassName,
50484
50745
  style: style
50485
50746
  // more={{
@@ -50500,7 +50761,7 @@ var Tabs = function Tabs(_ref) {
50500
50761
  locale: locale,
50501
50762
  activeKey: activeKey,
50502
50763
  renderTabBar: renderTabBar
50503
- })));
50764
+ }));
50504
50765
  };
50505
50766
  Tabs.propTypes = {
50506
50767
  className: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
@@ -50526,97 +50787,6 @@ Tabs.propTypes = {
50526
50787
  activeKey: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
50527
50788
  renderTabBar: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)
50528
50789
  };
50529
- var prefixCls = function prefixCls(p) {
50530
- return p.$prefixCls;
50531
- };
50532
- var theme = function theme(cb) {
50533
- return function (p) {
50534
- return cb(p.$theme);
50535
- };
50536
- };
50537
- 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) {
50538
- return t.font_family.sans;
50539
- }), theme(function (t) {
50540
- return t.line_height.none;
50541
- }), theme(function (t) {
50542
- return t.letter_spacing.normal;
50543
- }), prefixCls, prefixCls, prefixCls, prefixCls, theme(function (t) {
50544
- return t.color.text;
50545
- }), theme(function (t) {
50546
- return t.color.border_teritary;
50547
- }), theme(function (t) {
50548
- return t.font_size.md;
50549
- }), theme(function (t) {
50550
- return t.font_weight.semibold;
50551
- }), theme(function (t) {
50552
- return t.color.text;
50553
- }), theme(function (t) {
50554
- return t.color.border;
50555
- }), prefixCls, prefixCls, theme(function (t) {
50556
- return t.color.text_primary;
50557
- }), theme(function (t) {
50558
- return t.color.border_primary;
50559
- }), prefixCls, prefixCls, theme(function (t) {
50560
- return t.color.text_disabled;
50561
- }), theme(function (t) {
50562
- return t.color.border_disabled;
50563
- }), prefixCls, prefixCls, theme(function (t) {
50564
- return t.color.text_tertiary;
50565
- }), theme(function (t) {
50566
- return t.color.border_secondary;
50567
- }), theme(function (t) {
50568
- return t.font_size.xs;
50569
- }), theme(function (t) {
50570
- return t.font_weight.regular;
50571
- }), theme(function (t) {
50572
- return t.color.text_tertiary;
50573
- }), theme(function (t) {
50574
- return t.color.border;
50575
- }), prefixCls, prefixCls, theme(function (t) {
50576
- return t.color.text_primary;
50577
- }), theme(function (t) {
50578
- return t.color.border_primary;
50579
- }), prefixCls, prefixCls, theme(function (t) {
50580
- return t.color.text_disabled;
50581
- }), theme(function (t) {
50582
- return t.color.border_disabled;
50583
- }), prefixCls, theme(function (t) {
50584
- return t.color.tab_contained_bg;
50585
- }), prefixCls, prefixCls, theme(function (t) {
50586
- return t.color.text_tertiary;
50587
- }), theme(function (t) {
50588
- return t.font_size.md;
50589
- }), theme(function (t) {
50590
- return t.font_weight.semibold;
50591
- }), theme(function (t) {
50592
- return t.color.text_tertiary;
50593
- }), theme(function (t) {
50594
- return t.color.bg_fill_primary_secondary;
50595
- }), prefixCls, theme(function (t) {
50596
- return t.color.bg;
50597
- }), theme(function (t) {
50598
- return t.color.border;
50599
- }), theme(function (t) {
50600
- return t.shadow.meduim;
50601
- }), theme(function (t) {
50602
- return t.color.text_primary;
50603
- }), prefixCls, prefixCls, theme(function (t) {
50604
- return t.color.text_disabled;
50605
- }), theme(function (t) {
50606
- return t.color.bg_fill_teritary;
50607
- }), theme(function (t) {
50608
- return t.font_weight.regular;
50609
- }), prefixCls, prefixCls, theme(function (t) {
50610
- return t.color.text;
50611
- }), theme(function (t) {
50612
- return t.color.border;
50613
- }), prefixCls, theme(function (t) {
50614
- return t.color.bg_fill_primary_secondary;
50615
- }), theme(function (t) {
50616
- return t.color.bg_fill_primary_secondary;
50617
- }), prefixCls, prefixCls, theme(function (t) {
50618
- return t.color.text_disabled;
50619
- }));
50620
50790
 
50621
50791
  /***/ }),
50622
50792
 
@@ -55354,6 +55524,7 @@ __webpack_require__.r(__webpack_exports__);
55354
55524
  /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! styled-components */ "styled-components");
55355
55525
  /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_2__);
55356
55526
  /* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./constant */ "./src/themes/constant.js");
55527
+ /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./util */ "./src/themes/util.js");
55357
55528
  // LICENSE_CODE ZON
55358
55529
 
55359
55530
 
@@ -55368,6 +55539,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
55368
55539
 
55369
55540
 
55370
55541
 
55542
+
55371
55543
  var baseTheme = {
55372
55544
  font_family: _constant__WEBPACK_IMPORTED_MODULE_3__.fontFamily,
55373
55545
  font_size: _constant__WEBPACK_IMPORTED_MODULE_3__.fontSize,
@@ -55393,14 +55565,12 @@ var lightTheme = _objectSpread(_objectSpread({}, baseTheme), {}, {
55393
55565
  color: _objectSpread(_objectSpread(_objectSpread({}, _constant__WEBPACK_IMPORTED_MODULE_3__.color), _constant__WEBPACK_IMPORTED_MODULE_3__.semanticLight), _constant__WEBPACK_IMPORTED_MODULE_3__.componentLight)
55394
55566
  });
55395
55567
  lightTheme.scrollbars = (0,_constant__WEBPACK_IMPORTED_MODULE_3__.scrollbars)(lightTheme);
55396
- // addVar('--uikit-', lightTheme.color);
55397
-
55568
+ (0,_util__WEBPACK_IMPORTED_MODULE_4__.addVar)('--uikit-', lightTheme.color);
55398
55569
  var darkTheme = _objectSpread(_objectSpread({}, baseTheme), {}, {
55399
55570
  color: _objectSpread(_objectSpread(_objectSpread({}, _constant__WEBPACK_IMPORTED_MODULE_3__.color), _constant__WEBPACK_IMPORTED_MODULE_3__.semanticDark), _constant__WEBPACK_IMPORTED_MODULE_3__.componentDark)
55400
55571
  });
55401
55572
  darkTheme.scrollbars = (0,_constant__WEBPACK_IMPORTED_MODULE_3__.scrollbars)(darkTheme);
55402
- // addVar('--uikit-', darkTheme.color);
55403
-
55573
+ (0,_util__WEBPACK_IMPORTED_MODULE_4__.addVar)('--uikit-', darkTheme.color);
55404
55574
  var PT_THEME = prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['light', 'dark']);
55405
55575
  var ThemeProvider = function ThemeProvider(_ref) {
55406
55576
  var theme = _ref.theme,
@@ -55446,6 +55616,47 @@ ThemeProvider.propTypes = {
55446
55616
 
55447
55617
 
55448
55618
 
55619
+ /***/ }),
55620
+
55621
+ /***/ "./src/themes/util.js":
55622
+ /*!****************************!*\
55623
+ !*** ./src/themes/util.js ***!
55624
+ \****************************/
55625
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
55626
+
55627
+ "use strict";
55628
+ __webpack_require__.r(__webpack_exports__);
55629
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
55630
+ /* harmony export */ addVar: () => (/* binding */ addVar),
55631
+ /* harmony export */ buildVars: () => (/* binding */ buildVars)
55632
+ /* harmony export */ });
55633
+ // LICENSE_CODE ZON
55634
+
55635
+
55636
+ /*jslint react:true*/
55637
+ function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
55638
+ 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."); }
55639
+ 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; } }
55640
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
55641
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
55642
+ function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
55643
+ var buildVars = function buildVars(prefix, obj) {
55644
+ var res = '';
55645
+ Object.entries(obj).forEach(function (_ref) {
55646
+ var _ref2 = _slicedToArray(_ref, 2),
55647
+ k = _ref2[0],
55648
+ v = _ref2[1];
55649
+ res += prefix + k.replaceAll('_', '-') + ': ' + v + ';\n';
55650
+ });
55651
+ return res;
55652
+ };
55653
+ var addVar = function addVar(prefix, obj) {
55654
+ Object.keys(obj).forEach(function (k) {
55655
+ if (typeof obj[k] != 'string' || obj[k].includes(',')) return;
55656
+ obj[k] = 'var(' + prefix + k.replaceAll('_', '-') + ', ' + obj[k] + ')';
55657
+ });
55658
+ };
55659
+
55449
55660
  /***/ }),
55450
55661
 
55451
55662
  /***/ "./src/toast/context.js":
@@ -56104,6 +56315,113 @@ var placements = {
56104
56315
 
56105
56316
  /***/ }),
56106
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
+
56107
56425
  /***/ "./src/tooltip/tooltip.js":
56108
56426
  /*!********************************!*\
56109
56427
  !*** ./src/tooltip/tooltip.js ***!
@@ -56353,17 +56671,15 @@ __webpack_require__.r(__webpack_exports__);
56353
56671
  /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
56354
56672
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
56355
56673
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
56356
- /* harmony import */ var rc_tooltip__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rc-tooltip */ "./node_modules/rc-tooltip/es/index.js");
56357
- /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! styled-components */ "styled-components");
56358
- /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_3__);
56359
- /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
56360
- /* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../constants */ "./src/constants.js");
56361
- /* 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");
56362
56678
  // LICENSE_CODE ZON
56363
56679
 
56364
56680
 
56365
56681
  /*jslint react:true*/
56366
- 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"];
56367
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; }
56368
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; }
56369
56685
 
@@ -56372,7 +56688,6 @@ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t =
56372
56688
 
56373
56689
 
56374
56690
 
56375
-
56376
56691
  var _Tooltip = function Tooltip2(_ref) {
56377
56692
  var id = _ref.id,
56378
56693
  className = _ref.className,
@@ -56391,19 +56706,17 @@ var _Tooltip = function Tooltip2(_ref) {
56391
56706
  children = _ref.children,
56392
56707
  _ref$destroyOnClose = _ref.destroyOnClose,
56393
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,
56394
56711
  rest = _objectWithoutProperties(_ref, _excluded);
56395
- var theme = (0,styled_components__WEBPACK_IMPORTED_MODULE_3__.useTheme)();
56396
- var mouseEnterDelay = (0,_util__WEBPACK_IMPORTED_MODULE_4__.firstDefined)(rest.showDelay, _Tooltip.showDelay);
56397
- var mouseLeaveDelay = (0,_util__WEBPACK_IMPORTED_MODULE_4__.firstDefined)(rest.hideDelay, _Tooltip.hideDelay);
56398
- 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]);
56399
56715
  if (!tooltip) return children;
56400
- 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(Tooltip2Style, {
56401
- $prefixCls: classNamePrefix,
56402
- $theme: theme
56403
- }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(rc_tooltip__WEBPACK_IMPORTED_MODULE_2__["default"], {
56404
- prefixCls: "".concat(classNamePrefix, "_").concat(variant),
56716
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_styled__WEBPACK_IMPORTED_MODULE_5__.StyledTooltip, {
56717
+ prefixCls: classNamePrefix,
56405
56718
  id: id,
56406
- overlayClassName: className,
56719
+ className: (0,_util__WEBPACK_IMPORTED_MODULE_2__.classNames)(null, null, className, "".concat(classNamePrefix, "-").concat(variant)),
56407
56720
  overlay: tooltip,
56408
56721
  trigger: trigger,
56409
56722
  visible: visible,
@@ -56411,13 +56724,13 @@ var _Tooltip = function Tooltip2(_ref) {
56411
56724
  animation: "zoom",
56412
56725
  mouseEnterDelay: mouseEnterDelay,
56413
56726
  mouseLeaveDelay: mouseLeaveDelay,
56414
- zIndex: _constants__WEBPACK_IMPORTED_MODULE_5__.Z_INDEX.tooltip,
56727
+ zIndex: zIndex,
56415
56728
  align: align,
56416
56729
  showArrow: showArrow,
56417
56730
  onVisibleChange: onVisibleChange,
56418
56731
  afterVisibleChange: afterVisibleChange,
56419
56732
  destroyOnClose: destroyOnClose
56420
- }, children));
56733
+ }, children);
56421
56734
  };
56422
56735
 
56423
56736
  _Tooltip.propTypes = {
@@ -56425,9 +56738,9 @@ _Tooltip.propTypes = {
56425
56738
  className: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
56426
56739
  classNamePrefix: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
56427
56740
  variant: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['black', 'white']),
56428
- trigger: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([_constants__WEBPACK_IMPORTED_MODULE_5__.PT_TRIGGER, prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf(_constants__WEBPACK_IMPORTED_MODULE_5__.PT_TRIGGER)]),
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)]),
56429
56742
  visible: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
56430
- placement: _constants__WEBPACK_IMPORTED_MODULE_5__.PT_TOOLTIP_PLACEMENT,
56743
+ placement: _constants__WEBPACK_IMPORTED_MODULE_3__.PT_TOOLTIP_PLACEMENT,
56431
56744
  tooltip: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
56432
56745
  showDelay: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
56433
56746
  hideDelay: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
@@ -56435,77 +56748,11 @@ _Tooltip.propTypes = {
56435
56748
  showArrow: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
56436
56749
  onVisibleChange: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
56437
56750
  afterVisibleChange: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
56438
- 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)
56439
56753
  };
56440
56754
  _Tooltip.showDelay = 0.1;
56441
56755
  _Tooltip.hideDelay = 0.1;
56442
- var prefixCls = function prefixCls(p) {
56443
- return p.$prefixCls;
56444
- };
56445
- var theme = function theme(cb) {
56446
- return function (p) {
56447
- return cb(p.$theme);
56448
- };
56449
- };
56450
- 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) {
56451
- return t.font_family.sans;
56452
- }), theme(function (t) {
56453
- return t.font_size.sm;
56454
- }), theme(function (t) {
56455
- return t.font_weight.regular;
56456
- }), theme(function (t) {
56457
- return t.line_height.snug;
56458
- }), theme(function (t) {
56459
- return t.spacing['02'];
56460
- }), theme(function (t) {
56461
- return t.shadow.medium;
56462
- }), theme(function (t) {
56463
- return t.font_size.sm;
56464
- }), theme(function (t) {
56465
- return t.color.tooltip_text_white;
56466
- }), theme(function (t) {
56467
- return t.color.tooltip_bg_white;
56468
- }), theme(function (t) {
56469
- return t.color.tooltip_border_white;
56470
- }), theme(function (t) {
56471
- return t.color.tooltip_border_white;
56472
- }), theme(function (t) {
56473
- return t.color.tooltip_bg_white;
56474
- }), theme(function (t) {
56475
- return t.color.tooltip_border_white;
56476
- }), theme(function (t) {
56477
- return t.color.tooltip_bg_white;
56478
- }), theme(function (t) {
56479
- return t.color.tooltip_border_white;
56480
- }), theme(function (t) {
56481
- return t.color.tooltip_bg_white;
56482
- }), theme(function (t) {
56483
- return t.color.tooltip_border_white;
56484
- }), theme(function (t) {
56485
- return t.color.tooltip_bg_white;
56486
- }), theme(function (t) {
56487
- return t.color.tooltip_text_black;
56488
- }), theme(function (t) {
56489
- return t.color.tooltip_bg_black;
56490
- }), theme(function (t) {
56491
- return t.color.tooltip_bg_black;
56492
- }), theme(function (t) {
56493
- return t.color.tooltip_bg_black;
56494
- }), theme(function (t) {
56495
- return t.color.tooltip_bg_black;
56496
- }), theme(function (t) {
56497
- return t.color.tooltip_bg_black;
56498
- }), theme(function (t) {
56499
- return t.color.tooltip_bg_black;
56500
- }), theme(function (t) {
56501
- return t.color.tooltip_bg_black;
56502
- }), theme(function (t) {
56503
- return t.color.tooltip_bg_black;
56504
- }), theme(function (t) {
56505
- return t.color.tooltip_bg_black;
56506
- }), theme(function (t) {
56507
- return t.color.tooltip_bg_black;
56508
- }));
56509
56756
 
56510
56757
  /***/ }),
56511
56758
 
@@ -57808,6 +58055,9 @@ var StyledList = styled_components__WEBPACK_IMPORTED_MODULE_3___default()(react_
57808
58055
  var scrollbars = _ref2.theme.scrollbars;
57809
58056
  return scrollbars.thin;
57810
58057
  });
58058
+ var defaultValueGetter = function defaultValueGetter(item) {
58059
+ return item && item.value;
58060
+ };
57811
58061
  var ListVirtualizedComponent = function ListVirtualizedComponent(props) {
57812
58062
  var listComponent;
57813
58063
  var _useState = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(undefined),
@@ -57818,15 +58068,20 @@ var ListVirtualizedComponent = function ListVirtualizedComponent(props) {
57818
58068
  _useState4 = _slicedToArray(_useState3, 2),
57819
58069
  queueScrollToIdx = _useState4[0],
57820
58070
  setQueueScrollToIdx = _useState4[1];
57821
- var maxHeight = props.maxHeight,
58071
+ var _props$maxHeight = props.maxHeight,
58072
+ maxHeight = _props$maxHeight === void 0 ? 200 : _props$maxHeight,
58073
+ _props$minimumBatchSi = props.minimumBatchSize,
58074
+ minimumBatchSize = _props$minimumBatchSi === void 0 ? 100 : _props$minimumBatchSi,
57822
58075
  children = props.children,
57823
58076
  optionHeight = props.optionHeight,
57824
58077
  options = props.options,
57825
58078
  selectedValue = props.selectedValue,
57826
58079
  defaultValue = props.defaultValue,
57827
- valueGetter = props.valueGetter,
58080
+ _props$valueGetter = props.valueGetter,
58081
+ valueGetter = _props$valueGetter === void 0 ? defaultValueGetter : _props$valueGetter,
57828
58082
  formatOptionLabel = props.formatOptionLabel,
57829
- Option = props.Option;
58083
+ Option = props.Option,
58084
+ threshold = props.threshold;
57830
58085
  (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function () {
57831
58086
  // only scroll to index when we have something in the queue of focused
57832
58087
  // and not visible
@@ -57838,7 +58093,8 @@ var ListVirtualizedComponent = function ListVirtualizedComponent(props) {
57838
58093
  var onOptionFocused = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function (_ref3) {
57839
58094
  var index = _ref3.index,
57840
58095
  isVisible = _ref3.isVisible;
57841
- // enqueue the changes to the task queue so we do not interrupt rendering
58096
+ // enqueue the changes to the task queue so we do not interrupt
58097
+ // rendering
57842
58098
  setTimeout(function () {
57843
58099
  if (index !== undefined && focusedItemIndex !== index && isVisible) setFocusedItemIndex(index);else if (index !== undefined && !isVisible && !queueScrollToIdx) setQueueScrollToIdx(index);
57844
58100
  }, 100);
@@ -57878,16 +58134,17 @@ var ListVirtualizedComponent = function ListVirtualizedComponent(props) {
57878
58134
  stopIndex = _ref5.stopIndex;
57879
58135
  for (var i = startIndex; i <= stopIndex; i++) list.push(children[i]);
57880
58136
  }, 100);
58137
+ var rowCount = (children === null || children === void 0 ? void 0 : children.length) || 0;
57881
58138
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(react_virtualized__WEBPACK_IMPORTED_MODULE_2__.AutoSizer, {
57882
58139
  disableHeight: true
57883
58140
  }, function (_ref6) {
57884
58141
  var width = _ref6.width;
57885
58142
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(react_virtualized__WEBPACK_IMPORTED_MODULE_2__.InfiniteLoader, {
57886
58143
  isRowLoaded: isRowLoaded,
57887
- threshold: props.threshold,
58144
+ threshold: threshold,
57888
58145
  loadMoreRows: loadMoreRows,
57889
- rowCount: props.children.length || 0,
57890
- minimumBatchSize: props.minimumBatchSize
58146
+ rowCount: rowCount,
58147
+ minimumBatchSize: minimumBatchSize
57891
58148
  }, function (_ref7) {
57892
58149
  var onRowsRendered = _ref7.onRowsRendered,
57893
58150
  registerChild = _ref7.registerChild;
@@ -57902,8 +58159,8 @@ var ListVirtualizedComponent = function ListVirtualizedComponent(props) {
57902
58159
  onRowsRendered: onRowsRendered,
57903
58160
  height: height,
57904
58161
  scrollToIndex: scrollToIndex,
57905
- rowCount: props.children.length,
57906
- rowHeight: props.optionHeight,
58162
+ rowCount: rowCount,
58163
+ rowHeight: optionHeight,
57907
58164
  rowRenderer: rowRenderer,
57908
58165
  width: width
57909
58166
  });
@@ -57922,13 +58179,6 @@ ListVirtualized.propTypes = {
57922
58179
  options: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().array).isRequired,
57923
58180
  minimumBatchSize: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)
57924
58181
  };
57925
- ListVirtualized.defaultProps = {
57926
- valueGetter: function valueGetter(item) {
57927
- return item && item.value;
57928
- },
57929
- maxHeight: 200,
57930
- minimumBatchSize: 100
57931
- };
57932
58182
  var VirtualizedListRowRenderer = function VirtualizedListRowRenderer(_ref8) {
57933
58183
  var children = _ref8.children,
57934
58184
  onOptionFocused = _ref8.onOptionFocused,
@@ -57948,12 +58198,14 @@ var VirtualizedListRowRenderer = function VirtualizedListRowRenderer(_ref8) {
57948
58198
  var className = thisProps.cx({
57949
58199
  'virtualized-item': true
57950
58200
  });
57951
- if (thisProps.isFocused && !isScrolling) onOptionFocused({
57952
- data: thisProps.data,
57953
- index: index,
57954
- isVisible: isVisible,
57955
- isScrolling: isScrolling
57956
- });
58201
+ if (thisProps.isFocused && !isScrolling) {
58202
+ onOptionFocused({
58203
+ data: thisProps.data,
58204
+ index: index,
58205
+ isVisible: isVisible,
58206
+ isScrolling: isScrolling
58207
+ });
58208
+ }
57957
58209
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", {
57958
58210
  className: className,
57959
58211
  key: key,
@@ -144560,7 +144812,6 @@ __webpack_require__.r(__webpack_exports__);
144560
144812
  /* harmony export */ Drawer: () => (/* reexport safe */ _core__WEBPACK_IMPORTED_MODULE_0__.Drawer),
144561
144813
  /* harmony export */ Icon: () => (/* reexport safe */ _core__WEBPACK_IMPORTED_MODULE_0__.Icon),
144562
144814
  /* harmony export */ IconButton: () => (/* reexport safe */ _core__WEBPACK_IMPORTED_MODULE_0__.IconButton),
144563
- /* harmony export */ InfoChip: () => (/* reexport safe */ _core__WEBPACK_IMPORTED_MODULE_0__.InfoChip),
144564
144815
  /* harmony export */ Input: () => (/* reexport safe */ _core__WEBPACK_IMPORTED_MODULE_0__.Input),
144565
144816
  /* harmony export */ Layout: () => (/* reexport safe */ _core__WEBPACK_IMPORTED_MODULE_0__.Layout),
144566
144817
  /* harmony export */ Link: () => (/* reexport safe */ _core__WEBPACK_IMPORTED_MODULE_0__.Link),