@luminati-io/uikit 6.2.12 → 6.2.14

Sign up to get free protection for your applications and to get access to all the features.
@@ -34109,11 +34109,11 @@ CodeBlock.propTypes = {
34109
34109
  var CodeBlockWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
34110
34110
  displayName: "CodeBlockWrapper",
34111
34111
  componentId: "sc-dgi5hi-0"
34112
- })(["border-radius:4px;overflow:hidden;", "{border-top-left-radius:0;border-top-right-radius:0;}"], _code_snippet__WEBPACK_IMPORTED_MODULE_4__.CodeSnipperWrapper);
34112
+ })(["", "{border-top-left-radius:0;border-top-right-radius:0;}"], _code_snippet__WEBPACK_IMPORTED_MODULE_4__.CodeSnipperWrapper);
34113
34113
  var CodeBlockHeader = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
34114
34114
  displayName: "CodeBlockHeader",
34115
34115
  componentId: "sc-dgi5hi-1"
34116
- })(["display:flex;align-items:center;justify-content:space-between;padding:0.9em 1em;font-family:", ";font-size:", ";&.black{background-color:", ";color:", ";}&.white{background-color:", ";color:", ";}"], function (_ref) {
34116
+ })(["display:flex;align-items:center;justify-content:space-between;padding:0.9em 1em;border-radius:4px 4px 0 0;font-family:", ";font-size:", ";&.black{background-color:", ";color:", ";}&.white{background-color:", ";color:", ";}"], function (_ref) {
34117
34117
  var font_family = _ref.theme.font_family;
34118
34118
  return font_family.sans;
34119
34119
  }, function (_ref2) {
@@ -34672,6 +34672,7 @@ __webpack_require__.r(__webpack_exports__);
34672
34672
  /* harmony export */ INPUT_VERTICAL_PADDING: () => (/* binding */ INPUT_VERTICAL_PADDING),
34673
34673
  /* harmony export */ PT_NECESSITY_INDICATOR: () => (/* binding */ PT_NECESSITY_INDICATOR),
34674
34674
  /* harmony export */ PT_TOOLTIP_PLACEMENT: () => (/* binding */ PT_TOOLTIP_PLACEMENT),
34675
+ /* harmony export */ PT_TRIGGER: () => (/* binding */ PT_TRIGGER),
34675
34676
  /* harmony export */ TOOLTIP_PLACEMENT: () => (/* binding */ TOOLTIP_PLACEMENT),
34676
34677
  /* harmony export */ Z_INDEX: () => (/* binding */ Z_INDEX)
34677
34678
  /* harmony export */ });
@@ -34683,6 +34684,7 @@ __webpack_require__.r(__webpack_exports__);
34683
34684
 
34684
34685
  var PT_NECESSITY_INDICATOR = prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['none', 'asterisk', 'text']);
34685
34686
  var PT_TOOLTIP_PLACEMENT = prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['right', 'top', 'left', 'bottom', 'topLeft', 'topRight', 'bottomLeft', 'bottomRight', 'leftTop', 'leftBottom', 'rightTop', 'rightBottom']);
34687
+ var PT_TRIGGER = prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['hover', 'click', 'focus', 'contextMenu']);
34686
34688
  var Z_INDEX = {
34687
34689
  editingCell: 1,
34688
34690
  cellResizer: 1,
@@ -34693,6 +34695,7 @@ var Z_INDEX = {
34693
34695
  popover: 1000,
34694
34696
  backdrop: 1040,
34695
34697
  drawer: 1050,
34698
+ modal: 1060,
34696
34699
  datepicker: 2000,
34697
34700
  tooltip: 9999,
34698
34701
  dropdown: 999999,
@@ -34883,7 +34886,10 @@ var Drawer = function Drawer(_ref) {
34883
34886
  footerVariant = _ref$footerVariant === void 0 ? 'horizontal' : _ref$footerVariant,
34884
34887
  afterOpenChange = _ref.afterOpenChange,
34885
34888
  _ref$mask = _ref.mask,
34886
- mask = _ref$mask === void 0 ? false : _ref$mask;
34889
+ mask = _ref$mask === void 0 ? false : _ref$mask,
34890
+ shadow = _ref.shadow,
34891
+ styles = _ref.styles,
34892
+ classNames = _ref.classNames;
34887
34893
  var theme = (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.useTheme)();
34888
34894
  var renderCancel = !footer && !!(onCancel && cancelLabel);
34889
34895
  var renderOk = !footer && !!(onOk && okLabel);
@@ -34907,7 +34913,8 @@ var Drawer = function Drawer(_ref) {
34907
34913
  };
34908
34914
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement((react__WEBPACK_IMPORTED_MODULE_1___default().Fragment), null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(DrawerStyle, {
34909
34915
  $prefixCls: classNamePrefix,
34910
- $theme: theme
34916
+ $theme: theme,
34917
+ $shadow: shadow
34911
34918
  }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(rc_drawer__WEBPACK_IMPORTED_MODULE_3__["default"], {
34912
34919
  width: width,
34913
34920
  height: height,
@@ -34919,8 +34926,10 @@ var Drawer = function Drawer(_ref) {
34919
34926
  prefixCls: classNamePrefix,
34920
34927
  zIndex: _constants__WEBPACK_IMPORTED_MODULE_4__.Z_INDEX.drawer,
34921
34928
  maskClosable: closable,
34929
+ classNames: classNames,
34922
34930
  afterOpenChange: afterOpenChange,
34923
34931
  mask: mask,
34932
+ styles: styles,
34924
34933
  maskMotion: maskMotion,
34925
34934
  motion: motion
34926
34935
  }, closable && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon_button__WEBPACK_IMPORTED_MODULE_6__.IconButton, {
@@ -34968,9 +34977,20 @@ Drawer.propTypes = {
34968
34977
  cancelProps: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
34969
34978
  footerVariant: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['vertical', 'horizontal', 'horizontal_full']),
34970
34979
  afterOpenChange: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
34971
- mask: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)
34980
+ mask: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
34981
+ shadow: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['sm', 'md', 'lg']),
34982
+ styles: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
34983
+ mask: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
34984
+ wrapper: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
34985
+ content: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)
34986
+ }),
34987
+ classNames: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
34988
+ mask: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
34989
+ wrapper: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
34990
+ content: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)
34991
+ })
34972
34992
  };
34973
- var DrawerStyle = (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.createGlobalStyle)([".", "{inset:0;position:fixed;pointer-events:none;&-inline{position:absolute;}&-mask{inset:0;position:absolute;background-color:", ";background-color:", ";filter:alpha(opacity=70);pointer-events:auto;}&-content-wrapper{position:absolute;overflow:hidden;&-hidden{display:none;}}&-left &-content-wrapper{top:0;bottom:0;left:0;}&-right &-content-wrapper{top:0;right:0;bottom:0;}&-content{position:relative;display:flex;flex-direction:column;width:100%;height:100%;background:", ";pointer-events:auto;}&-left &-content{border-right:1px solid ", ";}&-right &-content{border-left:1px solid ", ";}&-close{position:absolute;margin-top:16px;inset-inline-end:16px;z-index:1;background:transparent;}&-header{padding-top:", ";padding-right:", ";padding-bottom:", ";padding-left:", ";}&-body{flex:1;overflow:auto;padding-top:", ";padding-right:", ";padding-bottom:", ";padding-left:", ";color:", ";", "}&-footer{padding-top:", ";padding-right:", ";padding-bottom:", ";padding-left:", ";border-top:1px solid ", ";}&-mask-motion{&-enter,&-appear,&-leave{&-start{transition:none;}&-active{transition:all 0.3s;}}&-enter,&-appear{opacity:0;&-active{opacity:1;}}&-leave{opacity:1;&-active{opacity:0;}}}&-panel-motion{&-left,&-right{&-enter,&-appear,&-leave{&-start{transition:none;}&-active{transition:all 0.3s;}}&-enter,&-appear{opacity:0.7;&-active{opacity:1;}}&-leave{opacity:1;&-active{opacity:0.7;}}}&-left{&-enter,&-appear{transform:translateX(-100%);&-active{transform:none;}}&-leave{transform:none;&-active{transform:translateX(-100%);}}}&-right{&-enter,&-appear{transform:translateX(100%);&-active{transform:none;}}&-leave{transform:none;&-active{transform:translateX(100%);}}}}}"], function (_ref2) {
34993
+ var DrawerStyle = (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.createGlobalStyle)([".", "{inset:0;position:fixed;pointer-events:none;&-inline{position:absolute;}&-mask{inset:0;position:absolute;background-color:", ";background-color:", ";filter:alpha(opacity=70);pointer-events:auto;}&-content-wrapper{position:absolute;overflow:hidden;box-shadow:", ";&-hidden{display:none;}}&-left &-content-wrapper{top:0;bottom:0;left:0;}&-right &-content-wrapper{top:0;right:0;bottom:0;}&-content{position:relative;display:flex;flex-direction:column;width:100%;height:100%;background:", ";pointer-events:auto;}&-left &-content{border-right:1px solid ", ";}&-right &-content{border-left:1px solid ", ";}&-close{position:absolute;margin-top:16px;inset-inline-end:16px;z-index:1;background:transparent;}&-header{padding-top:", ";padding-right:", ";padding-bottom:", ";padding-left:", ";}&-body{flex:1;overflow:auto;padding-top:", ";padding-right:", ";padding-bottom:", ";padding-left:", ";color:", ";", "}&-footer{padding-top:", ";padding-right:", ";padding-bottom:", ";padding-left:", ";border-top:1px solid ", ";}&-mask-motion{&-enter,&-appear,&-leave{&-start{transition:none;}&-active{transition:all 0.3s;}}&-enter,&-appear{opacity:0;&-active{opacity:1;}}&-leave{opacity:1;&-active{opacity:0;}}}&-panel-motion{&-left,&-right{&-enter,&-appear,&-leave{&-start{transition:none;}&-active{transition:all 0.3s;}}&-enter,&-appear{opacity:0.7;&-active{opacity:1;}}&-leave{opacity:1;&-active{opacity:0.7;}}}&-left{&-enter,&-appear{transform:translateX(-100%);&-active{transform:none;}}&-leave{transform:none;&-active{transform:translateX(-100%);}}}&-right{&-enter,&-appear{transform:translateX(100%);&-active{transform:none;}}&-leave{transform:none;&-active{transform:translateX(100%);}}}}}"], function (_ref2) {
34974
34994
  var $prefixCls = _ref2.$prefixCls;
34975
34995
  return $prefixCls;
34976
34996
  }, function (_ref3) {
@@ -34980,58 +35000,62 @@ var DrawerStyle = (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.createGlobal
34980
35000
  var $theme = _ref4.$theme;
34981
35001
  return $theme.color.modal2_shadow_bg;
34982
35002
  }, function (_ref5) {
34983
- var $theme = _ref5.$theme;
34984
- return $theme.color.bg_elevated;
35003
+ var $shadow = _ref5.$shadow,
35004
+ $theme = _ref5.$theme;
35005
+ return $theme.box_shadow[$shadow];
34985
35006
  }, function (_ref6) {
34986
35007
  var $theme = _ref6.$theme;
34987
- return $theme.color.border_secondary;
35008
+ return $theme.color.bg_elevated;
34988
35009
  }, function (_ref7) {
34989
35010
  var $theme = _ref7.$theme;
34990
35011
  return $theme.color.border_secondary;
34991
35012
  }, function (_ref8) {
34992
35013
  var $theme = _ref8.$theme;
34993
- return $theme.spacing['05'];
35014
+ return $theme.color.border_secondary;
34994
35015
  }, function (_ref9) {
34995
35016
  var $theme = _ref9.$theme;
34996
- return $theme.spacing['08'];
35017
+ return $theme.spacing['05'];
34997
35018
  }, function (_ref10) {
34998
35019
  var $theme = _ref10.$theme;
34999
- return $theme.spacing['05'];
35020
+ return $theme.spacing['08'];
35000
35021
  }, function (_ref11) {
35001
35022
  var $theme = _ref11.$theme;
35002
35023
  return $theme.spacing['05'];
35003
35024
  }, function (_ref12) {
35004
35025
  var $theme = _ref12.$theme;
35005
- return $theme.spacing['06'];
35026
+ return $theme.spacing['05'];
35006
35027
  }, function (_ref13) {
35007
35028
  var $theme = _ref13.$theme;
35008
- return $theme.spacing['07'];
35029
+ return $theme.spacing['06'];
35009
35030
  }, function (_ref14) {
35010
35031
  var $theme = _ref14.$theme;
35011
- return $theme.spacing['06'];
35032
+ return $theme.spacing['07'];
35012
35033
  }, function (_ref15) {
35013
35034
  var $theme = _ref15.$theme;
35014
- return $theme.spacing['07'];
35035
+ return $theme.spacing['06'];
35015
35036
  }, function (_ref16) {
35016
35037
  var $theme = _ref16.$theme;
35017
- return $theme.color.text_secondary;
35038
+ return $theme.spacing['07'];
35018
35039
  }, function (_ref17) {
35019
35040
  var $theme = _ref17.$theme;
35020
- return $theme.scrollbars.thin;
35041
+ return $theme.color.text_secondary;
35021
35042
  }, function (_ref18) {
35022
35043
  var $theme = _ref18.$theme;
35023
- return $theme.spacing['05'];
35044
+ return $theme.scrollbars.thin;
35024
35045
  }, function (_ref19) {
35025
35046
  var $theme = _ref19.$theme;
35026
- return $theme.spacing['07'];
35047
+ return $theme.spacing['05'];
35027
35048
  }, function (_ref20) {
35028
35049
  var $theme = _ref20.$theme;
35029
- return $theme.spacing['05'];
35050
+ return $theme.spacing['07'];
35030
35051
  }, function (_ref21) {
35031
35052
  var $theme = _ref21.$theme;
35032
- return $theme.spacing['07'];
35053
+ return $theme.spacing['05'];
35033
35054
  }, function (_ref22) {
35034
35055
  var $theme = _ref22.$theme;
35056
+ return $theme.spacing['07'];
35057
+ }, function (_ref23) {
35058
+ var $theme = _ref23.$theme;
35035
35059
  return $theme.color.border_secondary;
35036
35060
  });
35037
35061
 
@@ -42313,32 +42337,29 @@ __webpack_require__.r(__webpack_exports__);
42313
42337
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
42314
42338
  /* harmony export */ MenuItem: () => (/* binding */ MenuItem)
42315
42339
  /* harmony export */ });
42316
- /* harmony import */ var lodash_omit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/omit */ "./node_modules/lodash/omit.js");
42317
- /* harmony import */ var lodash_omit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_omit__WEBPACK_IMPORTED_MODULE_0__);
42318
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "prop-types");
42319
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
42320
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react");
42321
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
42322
- /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! styled-components */ "styled-components");
42323
- /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_3__);
42324
- /* harmony import */ var _hoc__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../hoc */ "./src/hoc/index.js");
42325
- /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../icon */ "./src/icon.js");
42326
- /* harmony import */ var _tooltip__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../tooltip */ "./src/tooltip/index.js");
42327
- /* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../typography */ "./src/typography/index.js");
42328
- /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../utils */ "./src/utils.js");
42329
- /* harmony import */ var _menu__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./menu */ "./src/menu/menu.js");
42330
- /* harmony import */ var _menu_item_divider__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./menu_item_divider */ "./src/menu/menu_item_divider.js");
42331
- /* harmony import */ var _menu_item_group__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./menu_item_group */ "./src/menu/menu_item_group.js");
42332
- /* harmony import */ var _shared__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./shared */ "./src/menu/shared.js");
42340
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "prop-types");
42341
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
42342
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
42343
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
42344
+ /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! styled-components */ "styled-components");
42345
+ /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_2__);
42346
+ /* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../constants */ "./src/constants.js");
42347
+ /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../icon */ "./src/icon.js");
42348
+ /* harmony import */ var _tooltip__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../tooltip */ "./src/tooltip/index.js");
42349
+ /* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../typography */ "./src/typography/index.js");
42350
+ /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../utils */ "./src/utils.js");
42351
+ /* harmony import */ var _menu__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./menu */ "./src/menu/menu.js");
42352
+ /* harmony import */ var _menu_item_divider__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./menu_item_divider */ "./src/menu/menu_item_divider.js");
42353
+ /* harmony import */ var _menu_item_group__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./menu_item_group */ "./src/menu/menu_item_group.js");
42354
+ /* harmony import */ var _shared__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./shared */ "./src/menu/shared.js");
42355
+ /* harmony import */ var _menu_item_popup__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./menu_item_popup */ "./src/menu/menu_item_popup.js");
42333
42356
  // LICENSE_CODE ZON
42334
42357
 
42335
42358
 
42336
42359
  /*jslint react:true*/
42337
-
42338
42360
  var _excluded = ["type", "text", "secondaryText", "tertiaryText", "description", "size", "children", "variant", "tag", "disabled", "selected", "subMenu", "tooltip", "isFirstItem", "icon", "iconPlacement"],
42339
42361
  _excluded2 = ["isLeft"],
42340
- _excluded3 = ["subItems", "children"],
42341
- _excluded4 = ["popover", "onClick"];
42362
+ _excluded3 = ["subItems", "popupPlacement", "popupClassName", "popupTrigger", "popupStyle"];
42342
42363
  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); }
42343
42364
  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; }
42344
42365
  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; }
@@ -42354,7 +42375,8 @@ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t =
42354
42375
 
42355
42376
 
42356
42377
 
42357
- var MenuItem = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_2__.forwardRef)(function (_ref, ref) {
42378
+
42379
+ var MenuItem = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(function (_ref, ref) {
42358
42380
  var _ref$type = _ref.type,
42359
42381
  type = _ref$type === void 0 ? 'item' : _ref$type,
42360
42382
  text = _ref.text,
@@ -42375,7 +42397,7 @@ var MenuItem = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_2__.forwardRef)(fu
42375
42397
  icon = _ref.icon,
42376
42398
  iconPlacement = _ref.iconPlacement,
42377
42399
  rest = _objectWithoutProperties(_ref, _excluded);
42378
- if (type == 'divider') return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_menu_item_divider__WEBPACK_IMPORTED_MODULE_10__["default"], {
42400
+ if (type == 'divider') return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_menu_item_divider__WEBPACK_IMPORTED_MODULE_9__["default"], {
42379
42401
  ref: ref
42380
42402
  });
42381
42403
  var subItems = buildSubItems(children, {
@@ -42383,13 +42405,13 @@ var MenuItem = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_2__.forwardRef)(fu
42383
42405
  });
42384
42406
  var isSubMenu = subMenu || subItems;
42385
42407
  if (type == 'group') {
42386
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_menu_item_group__WEBPACK_IMPORTED_MODULE_11__.MenuItemGroup, _extends({
42408
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_menu_item_group__WEBPACK_IMPORTED_MODULE_10__.MenuItemGroup, _extends({
42387
42409
  ref: ref,
42388
42410
  text: text,
42389
42411
  isFirstItem: isFirstItem
42390
42412
  }, rest), subItems);
42391
42413
  }
42392
- var _getIconProps = (0,_utils__WEBPACK_IMPORTED_MODULE_8__.getIconProps)('MenuItem', {
42414
+ var _getIconProps = (0,_utils__WEBPACK_IMPORTED_MODULE_7__.getIconProps)('MenuItem', {
42393
42415
  size: size,
42394
42416
  icon: icon,
42395
42417
  iconPlacement: iconPlacement
@@ -42398,62 +42420,73 @@ var MenuItem = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_2__.forwardRef)(fu
42398
42420
  iconProps = _objectWithoutProperties(_getIconProps, _excluded2);
42399
42421
  var iconColor = disabled ? 'icon_disabled' : variant == 'negative' ? 'icon_error' : 'icon';
42400
42422
  var labelColor = disabled ? 'text_disabled' : variant == 'negative' ? 'text_error' : 'text';
42401
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_shared__WEBPACK_IMPORTED_MODULE_12__.MenuItemContainer, {
42423
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_shared__WEBPACK_IMPORTED_MODULE_11__.MenuItemContainer, {
42402
42424
  ref: ref,
42403
42425
  as: tag,
42404
42426
  role: "menuitem"
42405
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_tooltip__WEBPACK_IMPORTED_MODULE_6__.Tooltip2, {
42427
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_tooltip__WEBPACK_IMPORTED_MODULE_5__.Tooltip2, {
42406
42428
  tooltip: tooltip
42407
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(MenuItemComp, _extends({}, rest, {
42429
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(MenuItemComp, _extends({}, rest, {
42408
42430
  "aria-disabled": disabled ? true : undefined,
42409
42431
  size: size,
42410
42432
  role: "button",
42411
42433
  subItems: subItems
42412
- }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(MenuItemLeft, null, isLeft && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_5__.Icon, _extends({}, iconProps, {
42434
+ }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(MenuItemLeft, null, isLeft && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_4__.Icon, _extends({}, iconProps, {
42413
42435
  color: iconColor
42414
- })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(MenuItemRight, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(MenuItemText, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(PrimaryText, {
42436
+ })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(MenuItemRight, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(MenuItemText, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(PrimaryText, {
42415
42437
  $size: size,
42416
42438
  color: labelColor
42417
- }, text), !isSubMenu && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement((react__WEBPACK_IMPORTED_MODULE_2___default().Fragment), null, !!tertiaryText && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_7__.Label, {
42439
+ }, text), !isSubMenu && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement((react__WEBPACK_IMPORTED_MODULE_1___default().Fragment), null, !!tertiaryText && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_6__.Label, {
42418
42440
  variant: "sm",
42419
42441
  whiteSpace: "nowrap",
42420
42442
  color: "text_tertiary"
42421
- }, tertiaryText), !!secondaryText && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(SecondaryText, null, secondaryText))), !!description && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(Description, null, description))), isSubMenu && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(SecondaryIcon, {
42443
+ }, tertiaryText), !!secondaryText && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(SecondaryText, null, secondaryText))), !!description && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Description, null, description))), isSubMenu && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(SecondaryIcon, {
42422
42444
  subMenu: true
42423
- }), !isSubMenu && !secondaryText && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(SecondaryIcon, {
42445
+ }), !isSubMenu && !secondaryText && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(SecondaryIcon, {
42424
42446
  selected: selected
42425
42447
  }))));
42426
42448
  });
42427
42449
  MenuItem.displayName = 'MenuItem';
42428
42450
  MenuItem.propTypes = {
42429
- text: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().node),
42430
- secondaryText: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().node),
42431
- tertiaryText: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().node),
42432
- description: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
42433
- type: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['item', 'divider', 'group']),
42434
- size: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['sm', 'md', 'lg']),
42435
- icon: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(_utils__WEBPACK_IMPORTED_MODULE_8__.iconNames),
42451
+ text: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
42452
+ secondaryText: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
42453
+ tertiaryText: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
42454
+ description: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
42455
+ type: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['item', 'divider', 'group']),
42456
+ size: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['sm', 'md', 'lg']),
42457
+ icon: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(_utils__WEBPACK_IMPORTED_MODULE_7__.iconNames),
42436
42458
  // XXX alexanderse: PT.arrayOf(PT.shape(MenuItem.propTypes)) cause parse err
42437
- children: prop_types__WEBPACK_IMPORTED_MODULE_1___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_1___default().object)),
42438
- variant: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['default', 'negative']),
42439
- disabled: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
42440
- selected: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
42441
- subMenu: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
42442
- tooltip: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().node)
42443
- };
42444
- var MenuItemComp = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_2__.forwardRef)(function (props, ref) {
42445
- var subItems = props.subItems,
42446
- children = props.children,
42447
- rest = _objectWithoutProperties(props, _excluded3);
42448
- if (!subItems) return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(MenuItemButton, _extends({
42459
+ children: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)),
42460
+ variant: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['default', 'negative']),
42461
+ disabled: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
42462
+ selected: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
42463
+ subMenu: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
42464
+ tooltip: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
42465
+ popupPlacement: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
42466
+ popupClassName: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
42467
+ popupTrigger: 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)]),
42468
+ popupStyle: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)
42469
+ };
42470
+ var MenuItemComp = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(function (_ref2, ref) {
42471
+ var subItems = _ref2.subItems,
42472
+ popupPlacement = _ref2.popupPlacement,
42473
+ popupClassName = _ref2.popupClassName,
42474
+ popupTrigger = _ref2.popupTrigger,
42475
+ popupStyle = _ref2.popupStyle,
42476
+ rest = _objectWithoutProperties(_ref2, _excluded3);
42477
+ var button = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(MenuItemButton, _extends({
42449
42478
  ref: ref
42450
- }, rest), children);
42451
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(MenuItemPopover, _extends({
42452
- ref: ref,
42453
- popoverProps: {
42454
- subItems: subItems
42455
- }
42456
- }, rest), children);
42479
+ }, rest));
42480
+ if (subItems) {
42481
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_menu_item_popup__WEBPACK_IMPORTED_MODULE_12__.MenuItemPopup, {
42482
+ subItems: subItems,
42483
+ popupPlacement: popupPlacement,
42484
+ popupTrigger: popupTrigger,
42485
+ popupClassName: popupClassName,
42486
+ popupStyle: popupStyle
42487
+ }, button);
42488
+ }
42489
+ return button;
42457
42490
  });
42458
42491
  MenuItemComp.displayName = 'MenuItemComp';
42459
42492
  var sizes = {
@@ -42461,77 +42494,52 @@ var sizes = {
42461
42494
  md: 40,
42462
42495
  lg: 56
42463
42496
  };
42464
- var MenuItemButton = styled_components__WEBPACK_IMPORTED_MODULE_3___default().div.withConfig({
42497
+ var MenuItemButton = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
42465
42498
  displayName: "MenuItemButton",
42466
42499
  componentId: "sc-vtiffr-0"
42467
42500
  })(["display:flex;flex-direction:row;align-items:center;justify-content:flex-start;text-decoration:none;background:0 none;border:0 none;padding:0 12px;box-sizing:border-box;width:100%;min-width:168px;max-width:540px;height:", ";gap:4px;cursor:", ";&:hover{background-color:", ";}&:hover,:visited,:focus{text-decoration:none;}&:active{background-color:", ";}"], function (props) {
42468
- return (0,_utils__WEBPACK_IMPORTED_MODULE_8__.toPixel)(sizes[props.size] || sizes.md);
42501
+ return (0,_utils__WEBPACK_IMPORTED_MODULE_7__.toPixel)(sizes[props.size] || sizes.md);
42469
42502
  }, function (props) {
42470
42503
  return props['aria-disabled'] ? 'not-allowed' : 'pointer';
42471
- }, function (_ref2) {
42472
- var color = _ref2.theme.color;
42473
- return color.bg_fill_secondary;
42474
42504
  }, function (_ref3) {
42475
42505
  var color = _ref3.theme.color;
42506
+ return color.bg_fill_secondary;
42507
+ }, function (_ref4) {
42508
+ var color = _ref4.theme.color;
42476
42509
  return color.bg_fill_primary_secondary;
42477
42510
  });
42478
- var MenuItemPopoverTrigger = function MenuItemPopoverTrigger(props) {
42479
- var popover = props.popover,
42480
- onClick = props.onClick,
42481
- rest = _objectWithoutProperties(props, _excluded4);
42482
- var buttonProps = lodash_omit__WEBPACK_IMPORTED_MODULE_0___default()(rest, 'isOpen');
42483
- var _onClick = (0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function (evt) {
42484
- onClick === null || onClick === void 0 || onClick(evt);
42485
- popover.toggle();
42486
- }, [onClick, popover.toggle]);
42487
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(MenuItemButton, _extends({}, buttonProps, {
42488
- onClick: _onClick
42489
- }));
42490
- };
42491
- var MenuItemPopover = (0,_hoc__WEBPACK_IMPORTED_MODULE_4__.withPopover)(MenuItemPopoverTrigger, function (props) {
42492
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_shared__WEBPACK_IMPORTED_MODULE_12__.MenuContainer, {
42493
- onClick: props.popover.hide
42494
- }, props.subItems);
42495
- }, {
42496
- placement: 'right-start',
42497
- wrapperStyle: {
42498
- width: '100%'
42499
- },
42500
- swallowOutsideClick: false
42501
- });
42502
- var MenuItemLeft = styled_components__WEBPACK_IMPORTED_MODULE_3___default().div.withConfig({
42511
+ var MenuItemLeft = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
42503
42512
  displayName: "MenuItemLeft",
42504
42513
  componentId: "sc-vtiffr-1"
42505
42514
  })(["display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:8px;width:100%;min-width:0;"]);
42506
- var MenuItemRight = styled_components__WEBPACK_IMPORTED_MODULE_3___default().div.withConfig({
42515
+ var MenuItemRight = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
42507
42516
  displayName: "MenuItemRight",
42508
42517
  componentId: "sc-vtiffr-2"
42509
42518
  })(["display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:4px;width:100%;min-width:0;"]);
42510
- var MenuItemText = styled_components__WEBPACK_IMPORTED_MODULE_3___default().div.withConfig({
42519
+ var MenuItemText = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
42511
42520
  displayName: "MenuItemText",
42512
42521
  componentId: "sc-vtiffr-3"
42513
42522
  })(["display:flex;align-items:center;justify-content:flex-start;width:100%;gap:8px;"]);
42514
- var SecondaryIcon = function SecondaryIcon(props) {
42515
- var subMenu = props.subMenu,
42516
- selected = props.selected;
42517
- if (subMenu) return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(RightIcon, {
42523
+ var SecondaryIcon = function SecondaryIcon(_ref5) {
42524
+ var subMenu = _ref5.subMenu,
42525
+ selected = _ref5.selected;
42526
+ if (subMenu) return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(RightIcon, {
42518
42527
  name: "ChevronRight",
42519
42528
  color: "icon"
42520
42529
  });
42521
- if (selected) return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(RightIcon, {
42530
+ if (selected) return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(RightIcon, {
42522
42531
  name: "Check",
42523
42532
  color: "icon_primary"
42524
42533
  });
42525
42534
  return null;
42526
42535
  };
42527
- SecondaryIcon.displayName = 'SecondaryIcon';
42528
- var RightIcon = styled_components__WEBPACK_IMPORTED_MODULE_3___default()(_icon__WEBPACK_IMPORTED_MODULE_5__.Icon).attrs({
42536
+ var RightIcon = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_icon__WEBPACK_IMPORTED_MODULE_4__.Icon).attrs({
42529
42537
  size: 'xs'
42530
42538
  }).withConfig({
42531
42539
  displayName: "RightIcon",
42532
42540
  componentId: "sc-vtiffr-4"
42533
42541
  })(["margin-left:auto;"]);
42534
- var PrimaryText = styled_components__WEBPACK_IMPORTED_MODULE_3___default()(_typography__WEBPACK_IMPORTED_MODULE_7__.Label).attrs(function (props) {
42542
+ var PrimaryText = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_typography__WEBPACK_IMPORTED_MODULE_6__.Label).attrs(function (props) {
42535
42543
  return {
42536
42544
  variant: props.$size == 'lg' ? 'lg' : 'sm',
42537
42545
  whiteSpace: 'nowrap'
@@ -42540,7 +42548,7 @@ var PrimaryText = styled_components__WEBPACK_IMPORTED_MODULE_3___default()(_typo
42540
42548
  displayName: "PrimaryText",
42541
42549
  componentId: "sc-vtiffr-5"
42542
42550
  })(["overflow-x:clip;text-overflow:ellipsis;"]);
42543
- var SecondaryText = styled_components__WEBPACK_IMPORTED_MODULE_3___default()(_typography__WEBPACK_IMPORTED_MODULE_7__.Label).attrs({
42551
+ var SecondaryText = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_typography__WEBPACK_IMPORTED_MODULE_6__.Label).attrs({
42544
42552
  variant: 'sm',
42545
42553
  color: 'text_secondary',
42546
42554
  whiteSpace: 'nowrap'
@@ -42548,7 +42556,7 @@ var SecondaryText = styled_components__WEBPACK_IMPORTED_MODULE_3___default()(_ty
42548
42556
  displayName: "SecondaryText",
42549
42557
  componentId: "sc-vtiffr-6"
42550
42558
  })(["margin-left:auto;"]);
42551
- var Description = styled_components__WEBPACK_IMPORTED_MODULE_3___default()(_typography__WEBPACK_IMPORTED_MODULE_7__.Label).attrs({
42559
+ var Description = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_typography__WEBPACK_IMPORTED_MODULE_6__.Label).attrs({
42552
42560
  variant: 'xs',
42553
42561
  color: 'text_tertiary',
42554
42562
  whiteSpace: 'nowrap'
@@ -42558,7 +42566,7 @@ var Description = styled_components__WEBPACK_IMPORTED_MODULE_3___default()(_typo
42558
42566
  })(["width:100%;overflow-x:clip;text-overflow:ellipsis;"]);
42559
42567
  var buildSubItems = function buildSubItems(children, itemProps) {
42560
42568
  return Array.isArray(children) && children.length > 0 ? children.map(function (item, ind) {
42561
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_menu__WEBPACK_IMPORTED_MODULE_9__.Menu.Item, _extends({
42569
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_menu__WEBPACK_IMPORTED_MODULE_8__.Menu.Item, _extends({
42562
42570
  key: item.key
42563
42571
  }, item, itemProps, {
42564
42572
  isFirstItem: ind == 0
@@ -42663,6 +42671,190 @@ var GroupTitle = styled_components__WEBPACK_IMPORTED_MODULE_1___default()(_typog
42663
42671
 
42664
42672
  /***/ }),
42665
42673
 
42674
+ /***/ "./src/menu/menu_item_popup.js":
42675
+ /*!*************************************!*\
42676
+ !*** ./src/menu/menu_item_popup.js ***!
42677
+ \*************************************/
42678
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
42679
+
42680
+ "use strict";
42681
+ __webpack_require__.r(__webpack_exports__);
42682
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
42683
+ /* harmony export */ MenuItemPopup: () => (/* binding */ MenuItemPopup)
42684
+ /* harmony export */ });
42685
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
42686
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
42687
+ /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! styled-components */ "styled-components");
42688
+ /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_1__);
42689
+ /* harmony import */ var _rc_component_trigger__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @rc-component/trigger */ "./node_modules/@rc-component/trigger/es/index.js");
42690
+ /* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../constants */ "./src/constants.js");
42691
+ /* harmony import */ var _shared__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./shared */ "./src/menu/shared.js");
42692
+ /* harmony import */ var _placements__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./placements */ "./src/menu/placements.js");
42693
+ // LICENSE_CODE ZON
42694
+
42695
+
42696
+ /*jslint react:true*/
42697
+ function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
42698
+ 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."); }
42699
+ 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; } }
42700
+ 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; }
42701
+ 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; } }
42702
+ function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
42703
+
42704
+
42705
+
42706
+
42707
+
42708
+
42709
+ var prefixCls = 'uikit_menu_popup';
42710
+ var MenuItemPopup = function MenuItemPopup(_ref) {
42711
+ var subItems = _ref.subItems,
42712
+ _ref$popupPlacement = _ref.popupPlacement,
42713
+ popupPlacement = _ref$popupPlacement === void 0 ? 'right' : _ref$popupPlacement,
42714
+ popupClassName = _ref.popupClassName,
42715
+ _ref$popupTrigger = _ref.popupTrigger,
42716
+ popupTrigger = _ref$popupTrigger === void 0 ? 'click' : _ref$popupTrigger,
42717
+ popupStyle = _ref.popupStyle,
42718
+ children = _ref.children;
42719
+ var _useState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false),
42720
+ _useState2 = _slicedToArray(_useState, 2),
42721
+ visible = _useState2[0],
42722
+ setVisible = _useState2[1];
42723
+ var popupMotion = {
42724
+ motionName: "".concat(prefixCls, "-motion"),
42725
+ motionAppear: true,
42726
+ motionEnter: true,
42727
+ motionLeave: true,
42728
+ motionDeadline: 500
42729
+ };
42730
+ 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, {
42731
+ $prefixCls: prefixCls
42732
+ }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_rc_component_trigger__WEBPACK_IMPORTED_MODULE_2__["default"], {
42733
+ prefixCls: prefixCls,
42734
+ mask: true,
42735
+ action: popupTrigger,
42736
+ popupPlacement: popupPlacement,
42737
+ popupMotion: popupMotion,
42738
+ popupClassName: popupClassName,
42739
+ popupStyle: popupStyle,
42740
+ popupVisible: visible,
42741
+ onPopupVisibleChange: setVisible,
42742
+ builtinPlacements: _placements__WEBPACK_IMPORTED_MODULE_5__.placements,
42743
+ zIndex: _constants__WEBPACK_IMPORTED_MODULE_3__.Z_INDEX.popover,
42744
+ popup: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_shared__WEBPACK_IMPORTED_MODULE_4__.MenuContainer, {
42745
+ onClick: function onClick() {
42746
+ return setVisible(false);
42747
+ }
42748
+ }, subItems)
42749
+ }, children));
42750
+ };
42751
+ 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) {
42752
+ return p.$prefixCls;
42753
+ });
42754
+
42755
+ /***/ }),
42756
+
42757
+ /***/ "./src/menu/placements.js":
42758
+ /*!********************************!*\
42759
+ !*** ./src/menu/placements.js ***!
42760
+ \********************************/
42761
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
42762
+
42763
+ "use strict";
42764
+ __webpack_require__.r(__webpack_exports__);
42765
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
42766
+ /* harmony export */ placements: () => (/* binding */ placements)
42767
+ /* harmony export */ });
42768
+ // LICENSE_CODE ZON
42769
+
42770
+
42771
+ /*jslint react:true*/
42772
+ var autoAdjustOverflowTopBottom = {
42773
+ shiftX: 64,
42774
+ adjustY: 1
42775
+ };
42776
+ var autoAdjustOverflowLeftRight = {
42777
+ adjustX: 1,
42778
+ shiftY: true
42779
+ };
42780
+ var targetOffset = [0, 0];
42781
+ var placements = {
42782
+ top: {
42783
+ points: ['bc', 'tc'],
42784
+ overflow: autoAdjustOverflowTopBottom,
42785
+ offset: [0, -6],
42786
+ targetOffset: [-6, 0]
42787
+ },
42788
+ topLeft: {
42789
+ points: ['bl', 'tl'],
42790
+ overflow: autoAdjustOverflowTopBottom,
42791
+ offset: [-12, -6],
42792
+ targetOffset: [-6, 0]
42793
+ },
42794
+ topRight: {
42795
+ points: ['br', 'tr'],
42796
+ overflow: autoAdjustOverflowTopBottom,
42797
+ offset: [12, -6],
42798
+ targetOffset: [-6, 0]
42799
+ },
42800
+ bottom: {
42801
+ points: ['tc', 'bc'],
42802
+ overflow: autoAdjustOverflowTopBottom,
42803
+ offset: [0, 6],
42804
+ targetOffset: [-6, 0]
42805
+ },
42806
+ bottomLeft: {
42807
+ points: ['tl', 'bl'],
42808
+ overflow: autoAdjustOverflowTopBottom,
42809
+ offset: [-12, 6],
42810
+ targetOffset: [-6, 0]
42811
+ },
42812
+ bottomRight: {
42813
+ points: ['tr', 'br'],
42814
+ overflow: autoAdjustOverflowTopBottom,
42815
+ offset: [12, 6],
42816
+ targetOffset: [-6, 0]
42817
+ },
42818
+ left: {
42819
+ points: ['cr', 'cl'],
42820
+ overflow: autoAdjustOverflowLeftRight,
42821
+ offset: [-6, 0],
42822
+ targetOffset: targetOffset
42823
+ },
42824
+ leftTop: {
42825
+ points: ['tr', 'tl'],
42826
+ overflow: autoAdjustOverflowLeftRight,
42827
+ offset: [-6, 0],
42828
+ targetOffset: [0, 6]
42829
+ },
42830
+ leftBottom: {
42831
+ points: ['br', 'bl'],
42832
+ overflow: autoAdjustOverflowLeftRight,
42833
+ offset: [-6, 6],
42834
+ targetOffset: targetOffset
42835
+ },
42836
+ right: {
42837
+ points: ['cl', 'cr'],
42838
+ overflow: autoAdjustOverflowLeftRight,
42839
+ offset: [6, 0],
42840
+ targetOffset: targetOffset
42841
+ },
42842
+ rightTop: {
42843
+ points: ['tl', 'tr'],
42844
+ overflow: autoAdjustOverflowLeftRight,
42845
+ offset: [6, 0],
42846
+ targetOffset: [0, 6]
42847
+ },
42848
+ rightBottom: {
42849
+ points: ['bl', 'br'],
42850
+ overflow: autoAdjustOverflowLeftRight,
42851
+ offset: [6, 6],
42852
+ targetOffset: targetOffset
42853
+ }
42854
+ };
42855
+
42856
+ /***/ }),
42857
+
42666
42858
  /***/ "./src/menu/shared.js":
42667
42859
  /*!****************************!*\
42668
42860
  !*** ./src/menu/shared.js ***!
@@ -42901,18 +43093,20 @@ __webpack_require__.r(__webpack_exports__);
42901
43093
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
42902
43094
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
42903
43095
  /* harmony import */ var rc_util_lib_React_render__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-util/lib/React/render */ "./node_modules/rc-util/lib/React/render.js");
42904
- /* harmony import */ var _themes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../themes */ "./src/themes/index.js");
42905
- /* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../typography */ "./src/typography/index.js");
42906
- /* harmony import */ var _global_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../global_config */ "./src/global_config.js");
42907
- /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
42908
- /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../icon */ "./src/icon.js");
42909
- /* harmony import */ var _modal2__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./modal2 */ "./src/modal/modal2.js");
43096
+ /* harmony import */ var rc_util_lib_pickAttrs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rc-util/lib/pickAttrs */ "./node_modules/rc-util/lib/pickAttrs.js");
43097
+ /* harmony import */ var _themes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../themes */ "./src/themes/index.js");
43098
+ /* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../typography */ "./src/typography/index.js");
43099
+ /* harmony import */ var _global_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../global_config */ "./src/global_config.js");
43100
+ /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
43101
+ /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../icon */ "./src/icon.js");
43102
+ /* harmony import */ var _modal2__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./modal2 */ "./src/modal/modal2.js");
42910
43103
  // LICENSE_CODE ZON
42911
43104
 
42912
43105
 
42913
43106
  /*jslint react:true*/
42914
43107
  var _excluded = ["className", "classNamePrefix", "closeOnOutsideClick", "zIndex", "show", "afterClose", "closable", "onClose", "onConfirm", "okLabel", "cancelLabel", "okProps", "cancelProps", "size", "content", "title"];
42915
43108
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
43109
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
42916
43110
  function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
42917
43111
  function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
42918
43112
  function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
@@ -42934,6 +43128,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
42934
43128
 
42935
43129
 
42936
43130
 
43131
+
42937
43132
  var destroyFns = [];
42938
43133
  var withWarn = function withWarn(props) {
42939
43134
  return _objectSpread(_objectSpread({}, props), {}, {
@@ -42988,9 +43183,9 @@ var confirm = function confirm(config) {
42988
43183
  var render = function render(props) {
42989
43184
  clearTimeout(timeoutId);
42990
43185
  timeoutId = setTimeout(function () {
42991
- var _globalConfig = (0,_global_config__WEBPACK_IMPORTED_MODULE_4__.globalConfig)(),
43186
+ var _globalConfig = (0,_global_config__WEBPACK_IMPORTED_MODULE_5__.globalConfig)(),
42992
43187
  themeName = _globalConfig.themeName;
42993
- (0,rc_util_lib_React_render__WEBPACK_IMPORTED_MODULE_1__.render)(/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_themes__WEBPACK_IMPORTED_MODULE_2__.ThemeProvider, {
43188
+ (0,rc_util_lib_React_render__WEBPACK_IMPORTED_MODULE_1__.render)(/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_themes__WEBPACK_IMPORTED_MODULE_3__.ThemeProvider, {
42994
43189
  theme: themeName
42995
43190
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(ConfirmModal, props)), container);
42996
43191
  });
@@ -43043,8 +43238,10 @@ var ConfirmModal = function ConfirmModal(_ref) {
43043
43238
  content = _ref.content,
43044
43239
  title = _ref.title,
43045
43240
  rest = _objectWithoutProperties(_ref, _excluded);
43046
- var icon = (0,_util__WEBPACK_IMPORTED_MODULE_5__.firstDefined)(rest.icon, getIconByType(rest.type));
43047
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_modal2__WEBPACK_IMPORTED_MODULE_7__.Modal2, {
43241
+ var icon = (0,_util__WEBPACK_IMPORTED_MODULE_6__.firstDefined)(rest.icon, getIconByType(rest.type));
43242
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_modal2__WEBPACK_IMPORTED_MODULE_8__.Modal2, _extends({}, (0,rc_util_lib_pickAttrs__WEBPACK_IMPORTED_MODULE_2__["default"])(rest, {
43243
+ data: true
43244
+ }), {
43048
43245
  className: className,
43049
43246
  classNamePrefix: classNamePrefix,
43050
43247
  onClose: function onClose() {
@@ -43075,32 +43272,32 @@ var ConfirmModal = function ConfirmModal(_ref) {
43075
43272
  },
43076
43273
  okProps: okProps,
43077
43274
  cancelProps: cancelProps
43078
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_3__.Paragraph, {
43275
+ }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_4__.Paragraph, {
43079
43276
  variant: "sm"
43080
43277
  }, content));
43081
43278
  };
43082
43279
  var getIconByType = function getIconByType(type) {
43083
- if (type == 'warning') return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_6__.Icon, {
43280
+ if (type == 'warning') return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_7__.Icon, {
43084
43281
  size: "sm",
43085
43282
  name: "Warning",
43086
43283
  color: "icon_warning"
43087
43284
  });
43088
- if (type == 'info') return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_6__.Icon, {
43285
+ if (type == 'info') return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_7__.Icon, {
43089
43286
  size: "sm",
43090
43287
  name: "Info",
43091
43288
  color: "icon_primary"
43092
43289
  });
43093
- if (type == 'success') return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_6__.Icon, {
43290
+ if (type == 'success') return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_7__.Icon, {
43094
43291
  size: "sm",
43095
43292
  name: "CheckCircle",
43096
43293
  color: "icon_success"
43097
43294
  });
43098
- if (type == 'error') return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_6__.Icon, {
43295
+ if (type == 'error') return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_7__.Icon, {
43099
43296
  size: "sm",
43100
43297
  name: "Warning",
43101
43298
  color: "icon_error"
43102
43299
  });
43103
- if (type == 'confirm') return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_6__.Icon, {
43300
+ if (type == 'confirm') return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_7__.Icon, {
43104
43301
  size: "sm",
43105
43302
  name: "Question",
43106
43303
  color: "icon_primary"
@@ -43280,12 +43477,12 @@ __webpack_require__.r(__webpack_exports__);
43280
43477
  /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! styled-components */ "styled-components");
43281
43478
  /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_2__);
43282
43479
  /* harmony import */ var rc_dialog__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rc-dialog */ "./node_modules/rc-dialog/es/index.js");
43283
- /* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../typography */ "./src/typography/index.js");
43284
- /* harmony import */ var _icon_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../icon.js */ "./src/icon.js");
43285
- /* harmony import */ var _layout__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../layout */ "./src/layout/index.js");
43286
- /* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../constants */ "./src/constants.js");
43287
- /* harmony import */ var _hooks__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../hooks */ "./src/hooks/index.js");
43288
- /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
43480
+ /* harmony import */ var rc_util_lib_pickAttrs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rc-util/lib/pickAttrs */ "./node_modules/rc-util/lib/pickAttrs.js");
43481
+ /* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../typography */ "./src/typography/index.js");
43482
+ /* harmony import */ var _icon_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../icon.js */ "./src/icon.js");
43483
+ /* harmony import */ var _layout__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../layout */ "./src/layout/index.js");
43484
+ /* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../constants */ "./src/constants.js");
43485
+ /* harmony import */ var _hooks__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../hooks */ "./src/hooks/index.js");
43289
43486
  /* harmony import */ var _base_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./base.js */ "./src/modal/base.js");
43290
43487
  /* harmony import */ var _modal_button_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./modal_button.js */ "./src/modal/modal_button.js");
43291
43488
  // LICENSE_CODE ZON
@@ -43332,7 +43529,7 @@ var Modal2 = function Modal2(_ref) {
43332
43529
  cancelProps = _ref.cancelProps,
43333
43530
  icon = _ref.icon,
43334
43531
  _ref$zIndex = _ref.zIndex,
43335
- zIndex = _ref$zIndex === void 0 ? _constants__WEBPACK_IMPORTED_MODULE_7__.Z_INDEX.popover : _ref$zIndex,
43532
+ zIndex = _ref$zIndex === void 0 ? _constants__WEBPACK_IMPORTED_MODULE_8__.Z_INDEX.modal : _ref$zIndex,
43336
43533
  children = _ref.children,
43337
43534
  _ref$minHeight = _ref.minHeight,
43338
43535
  minHeight = _ref$minHeight === void 0 ? 300 : _ref$minHeight,
@@ -43340,7 +43537,7 @@ var Modal2 = function Modal2(_ref) {
43340
43537
  rest = _objectWithoutProperties(_ref, _excluded);
43341
43538
  var theme = (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.useTheme)();
43342
43539
  var width = _base_js__WEBPACK_IMPORTED_MODULE_10__.MODAL_WIDTHS[size] || _base_js__WEBPACK_IMPORTED_MODULE_10__.MODAL_WIDTHS.md;
43343
- var _useWindowSize = (0,_hooks__WEBPACK_IMPORTED_MODULE_8__.useWindowSize)(),
43540
+ var _useWindowSize = (0,_hooks__WEBPACK_IMPORTED_MODULE_9__.useWindowSize)(),
43344
43541
  windowHeight = _useWindowSize.height;
43345
43542
  var maxHeight = "".concat(Math.max(windowHeight * 0.8, minHeight), "px");
43346
43543
  var dialogFooter = footer !== null ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(DialogFooter, {
@@ -43384,7 +43581,7 @@ var Modal2 = function Modal2(_ref) {
43384
43581
  keyboard: false,
43385
43582
  animation: "zoom",
43386
43583
  maskAnimation: "fade"
43387
- }, (0,_util__WEBPACK_IMPORTED_MODULE_9__.getCommonProps)(rest)), children));
43584
+ }, (0,rc_util_lib_pickAttrs__WEBPACK_IMPORTED_MODULE_4__["default"])(rest)), children));
43388
43585
  };
43389
43586
  Modal2.propTypes = {
43390
43587
  className: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
@@ -43501,9 +43698,9 @@ var DialogHeader = function DialogHeader(_ref30) {
43501
43698
  prefixCls = _ref30.prefixCls;
43502
43699
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement((react__WEBPACK_IMPORTED_MODULE_1___default().Fragment), null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", {
43503
43700
  className: "".concat(prefixCls, "-title-wrap")
43504
- }, icon, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_4__.Header, {
43701
+ }, icon, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_5__.Header, {
43505
43702
  color: "text"
43506
- }, title)), !!subtitle && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_4__.Label, {
43703
+ }, title)), !!subtitle && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_5__.Label, {
43507
43704
  padding_right: "04",
43508
43705
  color: "text_tertiary"
43509
43706
  }, subtitle));
@@ -43544,7 +43741,7 @@ var DialogFooter = function DialogFooter(_ref31) {
43544
43741
  // top: 0;
43545
43742
  // transform: translate(0, ${$show=>$show ? '0': 'calc(50vh - 50%)'});
43546
43743
 
43547
- var FooterHorizontal = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_layout__WEBPACK_IMPORTED_MODULE_6__.Flex).attrs({
43744
+ var FooterHorizontal = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_layout__WEBPACK_IMPORTED_MODULE_7__.Flex).attrs({
43548
43745
  gap: '04',
43549
43746
  align_items: 'center',
43550
43747
  justify_content: 'flex-end'
@@ -43552,14 +43749,14 @@ var FooterHorizontal = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(
43552
43749
  displayName: "FooterHorizontal",
43553
43750
  componentId: "sc-1p3wums-0"
43554
43751
  })([""]);
43555
- var FooterFullHorizontal = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_layout__WEBPACK_IMPORTED_MODULE_6__.Flex).attrs({
43752
+ var FooterFullHorizontal = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_layout__WEBPACK_IMPORTED_MODULE_7__.Flex).attrs({
43556
43753
  gap: '04',
43557
43754
  align_items: 'space-between'
43558
43755
  }).withConfig({
43559
43756
  displayName: "FooterFullHorizontal",
43560
43757
  componentId: "sc-1p3wums-1"
43561
43758
  })(["button{width:100%;}"]);
43562
- var FooterVertical = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_layout__WEBPACK_IMPORTED_MODULE_6__.Flex).attrs({
43759
+ var FooterVertical = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_layout__WEBPACK_IMPORTED_MODULE_7__.Flex).attrs({
43563
43760
  gap: '04',
43564
43761
  flex_direction: 'column'
43565
43762
  }).withConfig({
@@ -43572,7 +43769,7 @@ var footerLayout = {
43572
43769
  vertical: FooterVertical
43573
43770
  };
43574
43771
  var CloseIcon = function CloseIcon() {
43575
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon_js__WEBPACK_IMPORTED_MODULE_5__.Icon, {
43772
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon_js__WEBPACK_IMPORTED_MODULE_6__.Icon, {
43576
43773
  name: "Close",
43577
43774
  size: "xs",
43578
43775
  "data-testid": "modal_header_close_button"
@@ -49992,7 +50189,6 @@ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t =
49992
50189
 
49993
50190
 
49994
50191
 
49995
- var PT_TRIGGER = prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['hover', 'click', 'focus', 'contextMenu']);
49996
50192
  var _Tooltip = function Tooltip2(_ref) {
49997
50193
  var id = _ref.id,
49998
50194
  className = _ref.className,
@@ -50042,7 +50238,7 @@ _Tooltip.propTypes = {
50042
50238
  className: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
50043
50239
  classNamePrefix: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
50044
50240
  variant: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['black', 'white']),
50045
- trigger: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([PT_TRIGGER, prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf(PT_TRIGGER)]),
50241
+ 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)]),
50046
50242
  visible: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
50047
50243
  placement: _constants__WEBPACK_IMPORTED_MODULE_5__.PT_TOOLTIP_PLACEMENT,
50048
50244
  tooltip: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),