shineout 3.2.0-rc.4 → 3.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/cjs/form/form-field.d.ts +1 -1
  2. package/cjs/form/index.d.ts +1 -1
  3. package/cjs/index.js +1 -1
  4. package/cjs/input/number.js +2 -1
  5. package/cjs/menu/index.d.ts +6 -0
  6. package/cjs/menu/index.js +4 -0
  7. package/cjs/menu/interface.d.ts +1 -0
  8. package/cjs/menu/menu.js +2 -1
  9. package/cjs/menu/search.d.ts +4 -0
  10. package/cjs/menu/search.js +27 -0
  11. package/cjs/menu/search.type.d.ts +2 -0
  12. package/cjs/menu/search.type.js +5 -0
  13. package/cjs/modal/modal.d.ts +6 -6
  14. package/cjs/modal/submit.js +2 -1
  15. package/cjs/tests/setupTest.d.ts +1 -0
  16. package/cjs/tests/setupTest.js +19 -0
  17. package/cjs/tests/utils.d.ts +1 -0
  18. package/cjs/tests/utils.js +4 -3
  19. package/cjs/upload/use-upload-common.d.ts +1 -1
  20. package/dist/shineout.js +1432 -987
  21. package/dist/shineout.js.map +1 -1
  22. package/dist/shineout.min.js +1 -1
  23. package/dist/shineout.min.js.map +1 -1
  24. package/esm/form/form-field.d.ts +1 -1
  25. package/esm/form/index.d.ts +1 -1
  26. package/esm/index.js +1 -1
  27. package/esm/input/number.js +3 -2
  28. package/esm/menu/index.d.ts +6 -0
  29. package/esm/menu/index.js +4 -0
  30. package/esm/menu/interface.d.ts +1 -0
  31. package/esm/menu/menu.js +3 -2
  32. package/esm/menu/search.d.ts +4 -0
  33. package/esm/menu/search.js +20 -0
  34. package/esm/menu/search.type.d.ts +2 -0
  35. package/esm/menu/search.type.js +1 -0
  36. package/esm/modal/modal.d.ts +6 -6
  37. package/esm/modal/submit.js +3 -2
  38. package/esm/tests/setupTest.d.ts +1 -0
  39. package/esm/tests/setupTest.js +17 -0
  40. package/esm/tests/utils.d.ts +1 -0
  41. package/esm/tests/utils.js +4 -4
  42. package/esm/upload/use-upload-common.d.ts +1 -1
  43. package/package.json +5 -5
package/dist/shineout.js CHANGED
@@ -2954,7 +2954,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof =
2954
2954
 
2955
2955
  /***/ }),
2956
2956
 
2957
- /***/ 158:
2957
+ /***/ 3644:
2958
2958
  /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
2959
2959
 
2960
2960
  "use strict";
@@ -3026,7 +3026,7 @@ exports.useSyncExternalStore = void 0 !== e.useSyncExternalStore ? e.useSyncExte
3026
3026
 
3027
3027
  /***/ }),
3028
3028
 
3029
- /***/ 4709:
3029
+ /***/ 2518:
3030
3030
  /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
3031
3031
 
3032
3032
  "use strict";
@@ -3042,7 +3042,7 @@ exports.useSyncExternalStore = void 0 !== e.useSyncExternalStore ? e.useSyncExte
3042
3042
 
3043
3043
 
3044
3044
  var h = __webpack_require__(9787),
3045
- n = __webpack_require__(6097);
3045
+ n = __webpack_require__(9625);
3046
3046
  function p(a, b) {
3047
3047
  return a === b && (0 !== a || 1 / a === 1 / b) || a !== a && b !== b;
3048
3048
  }
@@ -3101,26 +3101,26 @@ exports.useSyncExternalStoreWithSelector = function (a, b, e, l, g) {
3101
3101
 
3102
3102
  /***/ }),
3103
3103
 
3104
- /***/ 6097:
3104
+ /***/ 9625:
3105
3105
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
3106
3106
 
3107
3107
  "use strict";
3108
3108
 
3109
3109
 
3110
3110
  if (true) {
3111
- module.exports = __webpack_require__(158);
3111
+ module.exports = __webpack_require__(3644);
3112
3112
  } else {}
3113
3113
 
3114
3114
  /***/ }),
3115
3115
 
3116
- /***/ 314:
3116
+ /***/ 6523:
3117
3117
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
3118
3118
 
3119
3119
  "use strict";
3120
3120
 
3121
3121
 
3122
3122
  if (true) {
3123
- module.exports = __webpack_require__(4709);
3123
+ module.exports = __webpack_require__(2518);
3124
3124
  } else {}
3125
3125
 
3126
3126
  /***/ }),
@@ -4116,6 +4116,13 @@ const figma = [
4116
4116
  describe: '',
4117
4117
  locked: true,
4118
4118
  },
4119
+ {
4120
+ name: '填充色',
4121
+ token: 'Neutral-fill-8',
4122
+ value: '#333E59',
4123
+ describe: '',
4124
+ locked: true,
4125
+ },
4119
4126
  {
4120
4127
  name: 'colorFillActive',
4121
4128
  token: 'Neutral-fill-4',
@@ -6883,7 +6890,8 @@ var config = {
6883
6890
  },
6884
6891
  menu: {
6885
6892
  CollapseArrow: icons.ArrowDown,
6886
- FrontSolidArrowDown: icons.PcArrowFillDown
6893
+ FrontSolidArrowDown: icons.PcArrowFillDown,
6894
+ Search: icons.Search
6887
6895
  },
6888
6896
  modal: {
6889
6897
  Close: icons === null || icons === void 0 ? void 0 : icons.Close
@@ -7096,9 +7104,12 @@ var Alert = function Alert(props) {
7096
7104
  onClick: handleClose
7097
7105
  });
7098
7106
  return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
7099
- className: alertStyle.close,
7100
- onClick: handleClose,
7101
- children: closeItem || icons_config.alert.Close
7107
+ className: alertStyle.closeWrapper,
7108
+ children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
7109
+ className: alertStyle.close,
7110
+ onClick: handleClose,
7111
+ children: closeItem || icons_config.alert.Close
7112
+ })
7102
7113
  });
7103
7114
  };
7104
7115
  if (dismiss === HIDE) {
@@ -11949,7 +11960,7 @@ var handleStyle = function handleStyle(style) {
11949
11960
  };
11950
11961
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
11951
11962
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
11952
- /* harmony default export */ var version = ('3.2.0-rc.4');
11963
+ /* harmony default export */ var version = ('3.2.0');
11953
11964
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
11954
11965
 
11955
11966
 
@@ -12111,7 +12122,7 @@ function replaceNonAlphanumeric(str) {
12111
12122
  return result;
12112
12123
  }
12113
12124
  function camelCaseToDash(str) {
12114
- return str.replace(/(?<=.)([A-Z])/g, '-$1').toLowerCase();
12125
+ return str.replace(/([A-Z])/g, '-$1').toLowerCase().replace(/^-/, '');
12115
12126
  }
12116
12127
  var cssvar = function cssvar(str, value, key, _size) {
12117
12128
  var _getConfig = getConfig(),
@@ -12123,6 +12134,11 @@ var cssvar = function cssvar(str, value, key, _size) {
12123
12134
  }
12124
12135
  return "var(--".concat(prefix, "-").concat(camelCaseToDash(key), ",var(--").concat(prefix, "-").concat(replaceNonAlphanumeric(str), ",").concat(value, "))");
12125
12136
  };
12137
+ var getTokenName = function getTokenName(key) {
12138
+ var _getConfig2 = getConfig(),
12139
+ prefix = _getConfig2.prefix;
12140
+ return "--".concat(prefix, "-").concat(camelCaseToDash(key));
12141
+ };
12126
12142
  ;// CONCATENATED MODULE: ../theme/src/token/token.ts
12127
12143
 
12128
12144
 
@@ -12268,6 +12284,7 @@ var Token = {
12268
12284
  'Neutral-fill-9': '#141737',
12269
12285
  'Neutral-fill-10': '#020B18',
12270
12286
  'Neutral-fill-6': '#999DA8',
12287
+ 'Neutral-fill-8': '#333E59',
12271
12288
  'Neutral-fill-4': '#CCCFD7',
12272
12289
  'Neutral-fill-3': '#E8EBF0',
12273
12290
  'Neutral-fill-2': '#F4F5F8',
@@ -12425,7 +12442,6 @@ var Token = {
12425
12442
 
12426
12443
  // @ts-ignore
12427
12444
  var CommonToken = {};
12428
- var CommonTokenMap = (/* unused pure expression or super */ null && (Token));
12429
12445
  Object.keys(Token).forEach(function (key) {
12430
12446
  var _getConfig = getConfig(),
12431
12447
  prefix = _getConfig.prefix;
@@ -13405,6 +13421,7 @@ var formTokens = {
13405
13421
  formItemLabelWidth: '140px',
13406
13422
  formItemLabelPaddingY: 'Spacing-5',
13407
13423
  formItemLabelMarginXEnd: 'Spacing-8',
13424
+ formItemLabelTopPaddingY: 'Spacing-4',
13408
13425
  formItemDangerColor: 'Danger-6',
13409
13426
  formItemTipMinHeight: 'Size-10',
13410
13427
  formItemTipFontSize: 'Font-12',
@@ -13570,14 +13587,12 @@ var listTokens = {
13570
13587
  // This file was generated automatically by a script. Please do not modify it directly.
13571
13588
 
13572
13589
  var menuTokens = {
13590
+ menuCollpaseWidth: 'Spacing-40',
13573
13591
  menuFontSize: 'Font-14',
13574
13592
  menuFontColor: 'Neutral-text-5',
13575
13593
  menuIconColor: 'Neutral-text-4',
13576
- menuCollapseWidth: 'Size-20',
13577
- menuCollapseItemDisabledFontColor: 'Neutral-text-2',
13578
- menuCollapseItemDisabledBackgroundColor: 'Neutral-fill-1',
13579
- menuCollapseItemActiveFontColor: 'Brand-6',
13580
- menuCollapseItemActiveBackgroundColor: 'Neutral-fill-1',
13594
+ menuIconMarginX: 'Spacing-8',
13595
+ menuPopoverPaddingY: 'Spacing-4',
13581
13596
  menuItemBackgroundColor: 'Neutral-fill-1',
13582
13597
  menuItemFontColor: 'Neutral-text-5',
13583
13598
  menuItemHoverBackgroundColor: 'Neutral-fill-2',
@@ -13585,14 +13600,20 @@ var menuTokens = {
13585
13600
  menuItemActiveBackgroundColor: 'Brand-1',
13586
13601
  menuItemActiveHoverBackgroundColor: 'Brand-2',
13587
13602
  menuItemActiveFontColor: 'Brand-6',
13603
+ menuItemActiveDisabledFontColor: 'Brand-3',
13588
13604
  menuItemDisabledBackgroundColor: 'Neutral-fill-1',
13589
13605
  menuItemDisabledFontColor: 'Neutral-text-2',
13590
- menuTitlePaddingX: '13px',
13591
- menuTitlePaddingY: '9px',
13592
- menuExpandWidth: '46px',
13593
- menuExpandSize: '14px',
13606
+ menuItemCollpaseActiveBackgroundColor: 'Brand-6',
13607
+ menuItemCollpaseActiveFontColor: 'Neutral-text-1',
13608
+ menuTitlePaddingX: 'Spacing-16',
13609
+ menuTitlePaddingY: 'Spacing-9',
13610
+ menuExpandWidth: 'Spacing-46',
13611
+ menuExpandSize: 'Spacing-14',
13594
13612
  menuExpandHoverBackgroundColor: 'Neutral-fill-3',
13595
13613
  menuChildrenBoxShadow: '0 2px 8px rgba(0, 0, 0, 0.15)',
13614
+ menuHeaderBorderColor: 'Neutral-border-1',
13615
+ menuHeaderPaddingX: 'Spacing-12',
13616
+ menuHeaderPaddingY: 'Spacing-12',
13596
13617
  menuDarkFontColor: 'Neutral-text-1',
13597
13618
  menuDarkItemBackgroundColor: 'Neutral-fill-10',
13598
13619
  menuDarkItemFontColor: 'Neutral-text-1',
@@ -13604,14 +13625,33 @@ var menuTokens = {
13604
13625
  menuDarkItemOpenFontColor: 'Neutral-text-1',
13605
13626
  menuDarkItemDisabledBackgroundColor: 'Neutral-fill-10',
13606
13627
  menuDarkItemDisabledFontColor: 'Neutral-text-4',
13607
- menuDarkCollapseItemFontColor: 'Brand-1',
13608
- menuDarkCollapseItemBackgroundColor: 'Neutral-fill-9',
13609
- menuDarkCollapseItemActiveFontColor: 'Neutral-text-1',
13610
- menuDarkCollapseItemActiveBackgroundColor: 'Brand-6',
13611
- menuDarkCollapseItemDisabledFontColor: 'Neutral-text-4',
13612
- menuDarkCollapseItemDisabledBackgroundColor: 'Neutral-fill-9',
13613
- menuDarkCollapseItemHoverFontColor: 'Neutral-text-1',
13614
- menuDarkCollapseItemHoverBackgroundColor: 'Brand-9'
13628
+ menuDarkItemCollpaseActiveBackgroundColor: 'Brand-6',
13629
+ menuDarkItemCollpaseActiveFontColor: 'Neutral-text-1',
13630
+ menuDarkHeaderBorderColor: 'Neutral-fill-8',
13631
+ menuSearchBorderRadius: 'Radius-full',
13632
+ menuSearchBorderColor: 'Neutral-border-2',
13633
+ menuSearchCollpaseSize: 'Size-16',
13634
+ menuSearchIconSize: 'Size-7',
13635
+ menuSearchIconColor: 'Neutral-text-4',
13636
+ menuSearchIconMarginX: 'Spacing-8',
13637
+ menuSearchBackgroundColor: 'Neutral-fill-2',
13638
+ menuSearchClearColor: 'Neutral-text-2',
13639
+ menuSearchHoverClearColor: 'Neutral-text-4',
13640
+ menuSearchHoverBorderColor: 'Brand-5',
13641
+ menuSearchHoverBackgroundColor: 'Neutral-fill-1',
13642
+ menuSearchDisabledBackgroundColor: 'Neutral-fill-3',
13643
+ menuSearchDarkFontColor: 'Neutral-text-1',
13644
+ menuSearchDarkBorderColor: 'Neutral-fill-8',
13645
+ menuSearchDarkBackgroundColor: 'Neutral-fill-8',
13646
+ menuSearchDarkIconColor: 'Neutral-text-1',
13647
+ menuSearchDarkClearColor: 'Neutral-text-3',
13648
+ menuSearchDarkPlaceholderFontColor: 'Neutral-text-2',
13649
+ menuSearchDarkHoverBorderColor: 'Brand-5',
13650
+ menuSearchDarkHoverBackgroundColor: 'Neutral-fill-9',
13651
+ menuSearchDarkHoverClearColor: 'Neutral-text-2',
13652
+ menuSearchDarkFocusBorderColor: 'Brand-5',
13653
+ menuSearchDarkFocusBackgroundColor: 'Neutral-fill-9',
13654
+ menuSearchDarkFocusShadow: 'Brand-9'
13615
13655
  };
13616
13656
  /* harmony default export */ var menu = (menuTokens);
13617
13657
  ;// CONCATENATED MODULE: ../theme/src/menu/index.ts
@@ -14807,6 +14847,8 @@ var src_Tokens = objectSpread2_default()(objectSpread2_default()(objectSpread2_d
14807
14847
  var ComponentTokenMap = objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()({}, src_alert_alert), breadcrumb), button_button), card), card_group), carousel), cascader), checkbox_checkbox), collapse), common_common), date_picker), descriptions), divider), dropdown), editable_area), empty), form_form), icon_icon), image_image), input), list), menu), message), modal), pagination), popover), progress), radio_radio), rate), select_select), slider), spin), steps), sticky), switch_switch), table), tabs), tag), textarea_textarea), tooltip), transfer), tree), tree_select), upload);
14808
14848
 
14809
14849
 
14850
+
14851
+
14810
14852
  /* harmony default export */ var src = (src_Tokens);
14811
14853
  ;// CONCATENATED MODULE: ../shineout-style/src/alert/alert.ts
14812
14854
 
@@ -14895,7 +14937,7 @@ var alertStyle = {
14895
14937
  width: src.alertFontSize,
14896
14938
  color: src.alertCloseFontColor,
14897
14939
  fontSize: src.alertFontSize,
14898
- height: src.lineHeightDynamic,
14940
+ height: src.alertFontSize,
14899
14941
  flex: '0 0 auto',
14900
14942
  display: 'flex',
14901
14943
  alignItems: 'center',
@@ -14905,8 +14947,15 @@ var alertStyle = {
14905
14947
  color: src.alertCloseHoverColor
14906
14948
  }
14907
14949
  },
14950
+ closeWrapper: {
14951
+ width: src.alertFontSize,
14952
+ height: src.lineHeightDynamic,
14953
+ display: 'flex',
14954
+ alignItems: 'center'
14955
+ },
14908
14956
  content: {
14909
14957
  flex: '1 1 0',
14958
+ minWidth: 0,
14910
14959
  wordBreak: 'break-all'
14911
14960
  },
14912
14961
  pending: {
@@ -15243,12 +15292,17 @@ var textBeforeLine = function textBeforeLine() {
15243
15292
  }
15244
15293
  };
15245
15294
  };
15246
- var loading = function loading(type, styles) {
15247
- var buttonStyle = button_button_button(type, styles);
15248
- return {
15249
- '&$loading': objectSpread2_default()({}, buttonStyle['&$disabled'])
15250
- };
15251
- };
15295
+
15296
+ // const loading = (type: ButtonTypeWithoutLink, styles: ButtonStyleType) => {
15297
+ // const buttonStyle = button(type, styles);
15298
+
15299
+ // return {
15300
+ // '&$loading': {
15301
+ // ...buttonStyle['&$disabled'],
15302
+ // },
15303
+ // };
15304
+ // };
15305
+
15252
15306
  var ButtonStyle = {
15253
15307
  button: {
15254
15308
  outline: 'none',
@@ -15369,13 +15423,26 @@ var ButtonStyle = {
15369
15423
  cursor: 'not-allowed'
15370
15424
  },
15371
15425
  loading: {
15372
- cursor: 'not-allowed',
15373
- '&$default': objectSpread2_default()({}, loading('Secondary', '')),
15374
- '&$primary': objectSpread2_default()({}, loading('Primary', '')),
15375
- '&$success': objectSpread2_default()({}, loading('Success', '')),
15376
- '&$danger': objectSpread2_default()({}, loading('Danger', '')),
15377
- '&$warning': objectSpread2_default()({}, loading('Warning', '')),
15378
- '&$secondary': objectSpread2_default()({}, loading('Secondary', ''))
15426
+ cursor: 'not-allowed'
15427
+
15428
+ // '&$default': {
15429
+ // ...loading('Secondary', ''),
15430
+ // },
15431
+ // '&$primary': {
15432
+ // ...loading('Primary', ''),
15433
+ // },
15434
+ // '&$success': {
15435
+ // ...loading('Success', ''),
15436
+ // },
15437
+ // '&$danger': {
15438
+ // ...loading('Danger', ''),
15439
+ // },
15440
+ // '&$warning': {
15441
+ // ...loading('Warning', ''),
15442
+ // },
15443
+ // '&$secondary': {
15444
+ // ...loading('Secondary', ''),
15445
+ // },
15379
15446
  },
15380
15447
  groupItem: {},
15381
15448
  group: {
@@ -15522,6 +15589,13 @@ var useButtonStyle = styled(src_button_button, 'button');
15522
15589
  /* harmony default export */ var shineout_style_src_button = ((/* unused pure expression or super */ null && (useButtonStyle)));
15523
15590
  ;// CONCATENATED MODULE: ../shineout-style/src/card/card.ts
15524
15591
 
15592
+
15593
+ var headerCommon = {
15594
+ fontSize: src.cardTitleFontSize,
15595
+ lineHeight: src.lineHeightDynamic,
15596
+ fontWeight: 'bold',
15597
+ minWidth: 0
15598
+ };
15525
15599
  var cardStyle = {
15526
15600
  wrapper: {
15527
15601
  display: 'flex',
@@ -15574,13 +15648,12 @@ var cardStyle = {
15574
15648
  cursor: 'pointer'
15575
15649
  }
15576
15650
  },
15577
- headerContent: {
15578
- fontSize: src.cardTitleFontSize,
15579
- lineHeight: src.lineHeightDynamic,
15580
- fontWeight: 'bold',
15581
- flex: 1,
15582
- minWidth: 0
15583
- },
15651
+ headerContent: objectSpread2_default()(objectSpread2_default()({}, headerCommon), {}, {
15652
+ flex: 1
15653
+ }),
15654
+ simpleHeader: objectSpread2_default()(objectSpread2_default()({}, headerCommon), {}, {
15655
+ display: 'block'
15656
+ }),
15584
15657
  center: {
15585
15658
  textAlign: 'center'
15586
15659
  },
@@ -15612,7 +15685,7 @@ var cardStyle = {
15612
15685
  }
15613
15686
  },
15614
15687
  body: {
15615
- '$wrapperSplit $header+&, $wrapperSplit $header+$bodyCollapse>&': {
15688
+ '$wrapperSplit>$header+&, $wrapperSplit>$header+$bodyCollapse>&': {
15616
15689
  borderTop: "1px solid ".concat(src.cardBorderColor)
15617
15690
  },
15618
15691
  padding: "".concat(src.cardPaddingY, " ").concat(src.cardPaddingX),
@@ -15623,7 +15696,7 @@ var cardStyle = {
15623
15696
  },
15624
15697
  bodyCollapse: {},
15625
15698
  footer: {
15626
- '$wrapperSplit $body+&, $wrapperSplit $bodyCollapse+&': {
15699
+ '$wrapperSplit>$body+&, $wrapperSplit>$bodyCollapse+&': {
15627
15700
  borderTop: "1px solid ".concat(src.cardBorderColor)
15628
15701
  },
15629
15702
  padding: "".concat(src.cardPaddingY, " ").concat(src.cardPaddingX),
@@ -16055,6 +16128,7 @@ var useCarouselStyle = styled(carousel_carousel, 'carousel');
16055
16128
  color: token.fontColor,
16056
16129
  lineHeight: token.lineHeight,
16057
16130
  fontSize: token.fontSize,
16131
+ // verticalAlign: 'top',
16058
16132
  fontWeight: token.fontWeight,
16059
16133
  verticalAlign: 'top',
16060
16134
  transition: "border-color .15s ease-in-out,box-shadow .15s ease-in-out;",
@@ -16427,7 +16501,7 @@ var cascaderStyle = objectSpread2_default()(objectSpread2_default()({
16427
16501
  },
16428
16502
  compressedWrapper: {
16429
16503
  width: 0,
16430
- overflow: 'hidden'
16504
+ overflow: 'auto'
16431
16505
  },
16432
16506
  controlMouse: {
16433
16507
  '& $optionInner:hover': {
@@ -16540,6 +16614,7 @@ var cascaderStyle = objectSpread2_default()(objectSpread2_default()({
16540
16614
  overflow: 'auto'
16541
16615
  },
16542
16616
  tag: {
16617
+ flexShrink: 0,
16543
16618
  '&$tag + &$tag': {
16544
16619
  marginLeft: 0
16545
16620
  },
@@ -16552,6 +16627,10 @@ var cascaderStyle = objectSpread2_default()(objectSpread2_default()({
16552
16627
  marginRight: 0
16553
16628
  }
16554
16629
  },
16630
+ tagOnly: {
16631
+ flexShrink: 1,
16632
+ minWidth: 42
16633
+ },
16555
16634
  space: {
16556
16635
  marginTop: src.cascaderPlaceholderMarginY,
16557
16636
  marginBottom: src.cascaderPlaceholderMarginY
@@ -17019,6 +17098,7 @@ var datePickerStyle = objectSpread2_default()(objectSpread2_default()({
17019
17098
  position: 'relative',
17020
17099
  // width: token.datePickerDateWidth,
17021
17100
  width: 240,
17101
+ cursor: 'pointer',
17022
17102
  '&[data-soui-type="datetime"]': {
17023
17103
  // width: token.datePickerDatetimeWidth,
17024
17104
  width: 240
@@ -18289,6 +18369,7 @@ var formItemStyle = {
18289
18369
  textAlign: 'start',
18290
18370
  width: 'auto',
18291
18371
  paddingTop: '0',
18372
+ paddingBottom: src.formItemLabelTopPaddingY,
18292
18373
  margin: '0'
18293
18374
  }
18294
18375
  },
@@ -19209,6 +19290,7 @@ var input_input = objectSpread2_default()(objectSpread2_default()(objectSpread2_
19209
19290
  left: '0'
19210
19291
  },
19211
19292
  top: '100%',
19293
+ zIndex: 1000,
19212
19294
  transformOrigin: '100% 0',
19213
19295
  marginTop: '10px',
19214
19296
  animation: 'so-input-fade .16s ease-in',
@@ -19383,47 +19465,133 @@ var useListStyle = styled(list_list, 'list');
19383
19465
  /* harmony default export */ var shineout_style_src_list = ((/* unused pure expression or super */ null && (useListStyle)));
19384
19466
  ;// CONCATENATED MODULE: ../shineout-style/src/menu/menu.ts
19385
19467
 
19386
-
19387
- var menuIndex = 1000;
19388
- var arrow = {
19389
- content: '""',
19390
- position: 'absolute',
19391
- left: 0,
19392
- transform: 'translateY(-50%)',
19393
- border: '6px solid transparent',
19394
- borderRightColor: src.menuItemBackgroundColor,
19395
- marginLeft: '-10px'
19396
- };
19468
+ var animationDuration = '.25s';
19469
+ var collpaseWidth = src.menuCollpaseWidth;
19470
+ var transitionFunc = 'ease-out';
19397
19471
  var menuStyle = {
19398
19472
  wrapper: {
19399
19473
  height: '100%',
19400
- transition: 'width 0.3s',
19401
- backgroundColor: src.menuItemBackgroundColor
19474
+ width: '100%',
19475
+ backgroundColor: src.menuItemBackgroundColor,
19476
+ transition: "width ".concat(animationDuration, " ").concat(transitionFunc),
19477
+ color: src.menuFontColor,
19478
+ display: 'flex',
19479
+ flexDirection: 'column'
19402
19480
  },
19403
19481
  wrapperLight: {},
19404
19482
  wrapperDark: {
19405
19483
  backgroundColor: src.menuDarkItemBackgroundColor
19406
19484
  },
19407
- collapse: {
19408
- width: src.menuCollapseWidth,
19409
- boxSizing: 'content-box',
19410
- '& $root': {
19411
- width: src.menuCollapseWidth
19485
+ wrapperCollpase: {
19486
+ width: "".concat(collpaseWidth, "!important"),
19487
+ '& $title': {
19488
+ paddingLeft: '0'
19489
+ },
19490
+ '& $expand': {
19491
+ opacity: 0
19492
+ },
19493
+ '& $titleIcon': {
19494
+ width: "".concat(collpaseWidth, "!important"),
19495
+ flexShrink: 0,
19496
+ justifyContent: 'center'
19497
+ },
19498
+ '& $titleContent': {
19499
+ alignItems: 'center',
19500
+ whiteSpace: 'nowrap',
19501
+ overflow: 'hidden'
19502
+ },
19503
+ '&$wrapperLight': {
19504
+ '$menuRoot > $itemActive > $itemContent': {
19505
+ backgroundColor: src.menuItemBackgroundColor
19506
+ }
19507
+ }
19508
+ },
19509
+ wrapperInTransition: {
19510
+ '& $titleContent, & $header': {
19511
+ whiteSpace: 'nowrap',
19512
+ overflow: 'hidden'
19513
+ },
19514
+ '& $expand': {
19515
+ opacity: 0
19516
+ }
19517
+ },
19518
+ popover: {
19519
+ '&&': {
19520
+ border: 'none',
19521
+ boxShadow: '0 2px 8px rgba(0, 0, 0, 0.15)',
19522
+ borderRadius: '4px',
19523
+ backgroundColor: src.menuItemBackgroundColor
19524
+ },
19525
+ '&[data-soui-theme=dark]': {
19526
+ backgroundColor: src.menuDarkItemBackgroundColor
19527
+ },
19528
+ '& $children': {
19529
+ borderRadius: '4px',
19530
+ padding: "".concat(src.menuPopoverPaddingY, " 0")
19531
+ // '& > :first-child > $itemContent': {
19532
+ // borderTopRightRadius: '4px',
19533
+ // borderTopLeftRadius: '4px',
19534
+ // },
19535
+ // '& > :last-child > $itemContent': {
19536
+ // borderBottomRightRadius: '4px',
19537
+ // borderBottomLeftRadius: '4px',
19538
+ // },
19539
+ }
19540
+ },
19541
+ popArrow: {
19542
+ '&&&': {
19543
+ boxShadow: '0 2px 8px rgba(0, 0, 0, 0.15)',
19544
+ width: '6px',
19545
+ height: '6px'
19546
+ }
19547
+ },
19548
+ popArrowDark: {
19549
+ '&&&': {
19550
+ backgroundColor: src.menuDarkItemBackgroundColor,
19551
+ boxShadow: '0 2px 8px rgba(0, 0, 0, 0.15)'
19412
19552
  }
19413
19553
  },
19414
19554
  scrollbox: {
19555
+ flex: 1,
19556
+ minWidth: 0,
19557
+ minHeight: 0,
19558
+ overflow: 'auto',
19559
+ // scrollbarWidth: 'thin',
19560
+ // '$wrapperLight &': {
19561
+ // scrollbarColor: 'rgba(0, 0, 0, 0.1) transparent',
19562
+ // '&::-moz-scrollbar-thumb:hover': {
19563
+ // backgroundColor: 'rgba(0, 0, 0, 0.2)',
19564
+ // },
19565
+ // },
19566
+ // '$wrapperDark &': {
19567
+ // scrollbarColor: 'rgba(255, 255, 255, 0.4) transparent',
19568
+ // },
19415
19569
  '$wrapperVertical &': {
19416
- overflow: 'hidden',
19417
- height: '100%'
19570
+ overflowX: 'hidden'
19418
19571
  },
19419
19572
  '$wrapperHorizontal &': {
19420
- overflow: 'hidden'
19573
+ overflowY: 'hidden'
19421
19574
  },
19422
- '$wrapperHasOpen$wrapperVertical &': {
19423
- width: '100vw'
19575
+ '&::-webkit-scrollbar': {
19576
+ width: '6px',
19577
+ height: '6px'
19424
19578
  },
19425
- '$wrapperHasOpen$wrapperHorizontal &': {
19426
- height: '100vh'
19579
+ '&::-webkit-scrollbar-thumb': {
19580
+ border: '0px solid transparent',
19581
+ backgroundClip: 'content-box',
19582
+ borderRadius: '11px',
19583
+ '$wrapperLight &': {
19584
+ backgroundColor: 'rgba(0, 0, 0, 0.05)',
19585
+ '&:hover': {
19586
+ backgroundColor: 'rgba(0, 0, 0, 0.1)'
19587
+ }
19588
+ },
19589
+ '$wrapperDark &': {
19590
+ backgroundColor: 'rgba(255, 255, 255, 0.4)',
19591
+ '&:hover': {
19592
+ backgroundColor: 'rgba(255, 255, 255, 0.5)'
19593
+ }
19594
+ }
19427
19595
  }
19428
19596
  },
19429
19597
  root: {
@@ -19438,167 +19606,26 @@ var menuStyle = {
19438
19606
  }
19439
19607
  },
19440
19608
  wrapperInline: {},
19441
- wrapperVertical: {
19442
- position: 'relative',
19443
- zIndex: menuIndex
19444
- },
19609
+ wrapperVertical: {},
19445
19610
  wrapperHorizontal: {
19446
- height: '42px',
19447
- position: 'relative',
19448
- zIndex: menuIndex
19611
+ flexDirection: 'row'
19449
19612
  },
19450
19613
  wrapperHasOpen: {},
19451
19614
  children: {
19452
19615
  padding: '0',
19616
+ margin: '0',
19453
19617
  display: 'none',
19454
19618
  minWidth: '100%',
19455
19619
  whiteSpace: 'nowrap',
19456
- '$itemOpen > &': {
19620
+ '$itemOpen > &, $childrenShow&': {
19457
19621
  display: 'block'
19458
- },
19459
- '$wrapper:not($wrapperInline) &': {
19460
- boxShadow: '0 2px 8px rgba(0, 0, 0, 0.15)'
19461
- },
19462
- '$wrapperHorizontal &': {
19463
- position: 'absolute',
19464
- bottom: '-2px',
19465
- left: 0,
19466
- transform: 'translateY(100%)'
19467
- },
19468
- '$wrapperHorizontal & &': {
19469
- position: 'absolute',
19470
- left: 'auto',
19471
- bottom: 'auto',
19472
- top: 0,
19473
- right: '-2px',
19474
- transform: 'translateX(100%)'
19475
- },
19476
- '$wrapperVertical &': {
19477
- position: 'absolute',
19478
- top: 0,
19479
- '&[dir=ltr]': {
19480
- right: '-6px',
19481
- transform: 'translateX(100%)'
19482
- },
19483
- '&[dir=rtl]': {
19484
- left: '-6px',
19485
- transform: 'translateX(-100%)'
19486
- },
19487
- minWidth: 'auto',
19488
- borderRadius: '4px',
19489
- '& > :first-child > $itemContent': {
19490
- borderTopRightRadius: '4px',
19491
- borderTopLeftRadius: '4px'
19492
- },
19493
- '& > :last-child > $itemContent': {
19494
- borderBottomRightRadius: '4px',
19495
- borderBottomLeftRadius: '4px'
19496
- },
19497
- '&$childrenUp': {
19498
- top: 'auto',
19499
- bottom: 0
19500
- },
19501
- '&$childrenUp::before': objectSpread2_default()(objectSpread2_default()({
19502
- top: 'auto',
19503
- bottom: '20%'
19504
- }, arrow), {}, {
19505
- '$wrapperDark&': {
19506
- borderRightColor: src.menuDarkItemBackgroundColor
19507
- }
19508
- }),
19509
- '&::before': objectSpread2_default()(objectSpread2_default()({
19510
- top: '20%'
19511
- }, arrow), {}, {
19512
- '$wrapperDark&': {
19513
- borderRightColor: src.menuDarkItemBackgroundColor
19514
- }
19515
- })
19516
19622
  }
19517
19623
  },
19624
+ childrenShow: {},
19518
19625
  childrenUp: {},
19519
19626
  item: {
19520
19627
  listStyle: 'none',
19521
- flexShrink: 0,
19522
- position: 'relative',
19523
- '$wrapperVertical &, $wrapperHorizontal &': {
19524
- position: 'relative'
19525
- }
19526
- },
19527
- collapseItem: {
19528
- // width: 40,
19529
- cursor: 'pointer',
19530
- opacity: 1,
19531
- height: src.menuCollapseWidth,
19532
- transition: 'all ease .3s',
19533
- color: 'inherit',
19534
- position: 'relative',
19535
- '$wrapperLight &': {
19536
- background: src.menuItemBackgroundColor,
19537
- '&:hover': {
19538
- background: src.menuItemHoverBackgroundColor,
19539
- color: src.menuItemHoverFontColor
19540
- }
19541
- },
19542
- '$wrapperLight $itemDisabled > &&': {
19543
- cursor: 'not-allowed',
19544
- color: src.menuCollapseItemDisabledFontColor,
19545
- background: src.menuCollapseItemDisabledBackgroundColor
19546
- },
19547
- '$wrapperDark $itemDisabled > &&': {
19548
- cursor: 'not-allowed',
19549
- color: src.menuDarkCollapseItemDisabledFontColor,
19550
- background: src.menuDarkCollapseItemDisabledBackgroundColor
19551
- },
19552
- '$wrapperDark &': {
19553
- color: src.menuDarkCollapseItemFontColor,
19554
- background: src.menuDarkCollapseItemBackgroundColor,
19555
- '&:hover': {
19556
- background: src.menuDarkCollapseItemHoverBackgroundColor,
19557
- color: src.menuDarkCollapseItemHoverFontColor
19558
- }
19559
- },
19560
- '$itemActive > &&': {
19561
- '$wrapperLight &': {
19562
- color: src.menuCollapseItemActiveFontColor,
19563
- background: src.menuCollapseItemActiveBackgroundColor
19564
- },
19565
- '$wrapperDark &': {
19566
- color: src.menuDarkCollapseItemActiveFontColor,
19567
- background: src.menuDarkCollapseItemActiveBackgroundColor
19568
- }
19569
- },
19570
- '&$collapseItemInPath': {
19571
- // background: token.menuItemBackgroundColor,
19572
- '&::after': {
19573
- content: '""',
19574
- position: 'absolute',
19575
- left: 0,
19576
- top: 0,
19577
- bottom: 0,
19578
- width: 3,
19579
- transition: 'all ease 0.3s',
19580
- backgroundColor: src.menuCollapseItemActiveFontColor
19581
- }
19582
- }
19583
- },
19584
- collapseItemInPath: {},
19585
- collapseItemHide: {
19586
- opacity: 0,
19587
- width: 0,
19588
- // height: 0,
19589
- // zIndex: -1,
19590
- position: 'absolute',
19591
- top: 0,
19592
- color: 'transparent',
19593
- background: 'transparent',
19594
- '&$collapseItemInPath': {
19595
- // background: token.menuItemBackgroundColor,
19596
- '&::after': {
19597
- top: 20,
19598
- bottom: 20,
19599
- backgroundColor: 'transparent'
19600
- }
19601
- }
19628
+ flexShrink: 0
19602
19629
  },
19603
19630
  itemActive: {},
19604
19631
  itemDisabled: {},
@@ -19612,9 +19639,10 @@ var menuStyle = {
19612
19639
  alignItems: 'center',
19613
19640
  cursor: 'pointer',
19614
19641
  position: 'relative',
19615
- // opacity: 1,
19616
- transition: 'all ease 0.3s',
19617
- '$wrapperLight &': {
19642
+ '& a': {
19643
+ transition: 'none'
19644
+ },
19645
+ '[data-soui-theme=light] &': {
19618
19646
  color: src.menuItemFontColor,
19619
19647
  backgroundColor: src.menuItemBackgroundColor,
19620
19648
  '&:hover': {
@@ -19622,7 +19650,7 @@ var menuStyle = {
19622
19650
  backgroundColor: src.menuItemHoverBackgroundColor
19623
19651
  }
19624
19652
  },
19625
- '$wrapperDark &': {
19653
+ '[data-soui-theme=dark] &': {
19626
19654
  color: src.menuDarkFontColor,
19627
19655
  backgroundColor: src.menuDarkItemBackgroundColor,
19628
19656
  '&:hover': {
@@ -19630,7 +19658,7 @@ var menuStyle = {
19630
19658
  backgroundColor: src.menuDarkItemHoverBackgroundColor
19631
19659
  }
19632
19660
  },
19633
- '$wrapperDark $itemOpen > &': {
19661
+ '[data-soui-theme=dark] $itemOpen > &': {
19634
19662
  color: src.menuDarkItemOpenFontColor,
19635
19663
  backgroundColor: src.menuDarkItemOpenBackgroundColor,
19636
19664
  '& $icon': {
@@ -19638,13 +19666,19 @@ var menuStyle = {
19638
19666
  }
19639
19667
  },
19640
19668
  '$itemInPath > &&': {
19641
- '$wrapperLight &': {
19669
+ '[data-soui-theme=light] &': {
19642
19670
  color: src.menuItemActiveFontColor,
19643
19671
  '& $icon': {
19644
19672
  color: src.menuItemActiveFontColor
19645
19673
  }
19646
19674
  },
19647
- '$wrapperDark$wrapperInline &::before, $wrapperDark$wrapperVertical &::before': {
19675
+ '[data-soui-theme=light] $itemDisabled&': {
19676
+ color: src.menuItemActiveDisabledFontColor,
19677
+ '& $icon': {
19678
+ color: src.menuItemActiveDisabledFontColor
19679
+ }
19680
+ },
19681
+ '[data-soui-theme=dark][data-soui-mode=inline] &::before, [data-soui-theme=dark][data-soui-mode=vertical] &::before': {
19648
19682
  content: '""',
19649
19683
  position: 'absolute',
19650
19684
  left: 0,
@@ -19653,49 +19687,106 @@ var menuStyle = {
19653
19687
  width: '3px',
19654
19688
  backgroundColor: src.menuDarkItemActiveBackgroundColor
19655
19689
  },
19656
- '$wrapperLight$wrapperVertical &': {
19657
- '&::before': {
19658
- display: 'block',
19659
- content: '""',
19660
- position: 'absolute',
19661
- right: 0,
19662
- top: 0,
19663
- bottom: 0,
19664
- width: '4px',
19665
- borderTopLeftRadius: '4px',
19666
- borderBottomLeftRadius: '4px',
19667
- backgroundColor: src.menuItemActiveFontColor
19690
+ '$wrapperCollpase[data-soui-theme=light] $root > &': {
19691
+ color: src.menuItemCollpaseActiveFontColor,
19692
+ backgroundColor: src.menuItemCollpaseActiveBackgroundColor,
19693
+ '& $icon': {
19694
+ color: src.menuItemCollpaseActiveFontColor
19695
+ }
19696
+ },
19697
+ '$wrapperCollpase[data-soui-theme=dark] $root > &': {
19698
+ color: src.menuDarkItemCollpaseActiveFontColor,
19699
+ backgroundColor: src.menuDarkItemCollpaseActiveBackgroundColor,
19700
+ '& $icon': {
19701
+ color: src.menuDarkItemCollpaseActiveFontColor
19668
19702
  }
19703
+ },
19704
+ '$wrapperCollpase $root > &::before': {
19705
+ display: 'none'
19669
19706
  }
19707
+
19708
+ // '[data-soui-theme=light][data-soui-mode=vertical]:not($wrapperCollpase) &': {
19709
+ // '&::before': {
19710
+ // display: 'block',
19711
+ // content: '""',
19712
+ // position: 'absolute',
19713
+ // right: 0,
19714
+ // top: 0,
19715
+ // bottom: 0,
19716
+ // width: '4px',
19717
+ // borderTopLeftRadius: '4px',
19718
+ // borderBottomLeftRadius: '4px',
19719
+ // backgroundColor: token.menuItemActiveFontColor,
19720
+ // },
19721
+ // },
19670
19722
  },
19671
19723
  '$itemActive > &&': {
19672
- '$wrapperLight &': {
19724
+ '[data-soui-theme=light] &': {
19673
19725
  color: src.menuItemActiveFontColor,
19674
19726
  backgroundColor: src.menuItemActiveBackgroundColor,
19675
19727
  '& $icon': {
19676
19728
  color: src.menuItemActiveFontColor
19677
19729
  }
19678
19730
  },
19679
- '$wrapperDark &': {
19731
+ '[data-soui-theme=light] $itemDisabled&': {
19732
+ color: src.menuItemActiveDisabledFontColor,
19733
+ '& $icon': {
19734
+ color: src.menuItemActiveDisabledFontColor
19735
+ }
19736
+ },
19737
+ '$wrapperCollpase[data-soui-theme=light] $root > &': {
19738
+ color: src.menuItemCollpaseActiveFontColor,
19739
+ backgroundColor: src.menuItemCollpaseActiveBackgroundColor,
19740
+ '& $icon': {
19741
+ color: src.menuItemCollpaseActiveFontColor
19742
+ }
19743
+ },
19744
+ '$wrapperCollpase[data-soui-theme=dark] $root > &': {
19745
+ color: src.menuDarkItemCollpaseActiveFontColor,
19746
+ backgroundColor: src.menuDarkItemCollpaseActiveBackgroundColor,
19747
+ '& $icon': {
19748
+ color: src.menuDarkItemCollpaseActiveFontColor
19749
+ }
19750
+ },
19751
+ '$wrapperCollpase $root > &::before': {
19752
+ display: 'none'
19753
+ },
19754
+ '[data-soui-theme=dark]:not($wrapperCollpase) &': {
19680
19755
  color: src.menuDarkItemActiveFontColor,
19681
19756
  backgroundColor: src.menuDarkItemActiveBackgroundColor,
19682
19757
  '& $icon': {
19683
19758
  color: src.menuDarkItemActiveFontColor
19684
19759
  }
19685
19760
  },
19686
- '$wrapperLight$wrapperInline &, $wrapperLight$wrapperHorizontal &': {
19761
+ '[data-soui-theme=dark]$wrapperCollpase &': {
19687
19762
  '&::before': {
19688
19763
  content: '""',
19689
19764
  position: 'absolute',
19690
- display: 'block',
19765
+ left: 0,
19691
19766
  top: 0,
19692
- right: 0,
19767
+ bottom: 0,
19693
19768
  width: '3px',
19694
- height: '100%',
19695
- backgroundColor: src.menuItemActiveFontColor
19696
- }
19697
- },
19698
- '$wrapperLight$wrapperHorizontal $root > &::before': {
19769
+ backgroundColor: src.menuDarkItemActiveBackgroundColor
19770
+ }
19771
+ },
19772
+ // '[data-soui-theme=light][data-soui-mode=inline] &, [data-soui-theme=light][data-soui-mode=horizontal] &':
19773
+ // {
19774
+ // '&::before': {
19775
+ // content: '""',
19776
+ // position: 'absolute',
19777
+ // display: 'block!important',
19778
+ // top: 0,
19779
+ // right: 0,
19780
+ // width: '3px',
19781
+ // height: '100%',
19782
+ // backgroundColor: token.menuItemActiveFontColor,
19783
+ // },
19784
+ // },
19785
+ '[data-soui-theme=light][data-soui-mode=horizontal] $root > &::before': {
19786
+ content: '""',
19787
+ position: 'absolute',
19788
+ display: 'block!important',
19789
+ backgroundColor: src.menuItemActiveFontColor,
19699
19790
  width: '100%',
19700
19791
  height: '2px',
19701
19792
  top: 'auto',
@@ -19704,7 +19795,7 @@ var menuStyle = {
19704
19795
  right: 'auto'
19705
19796
  }
19706
19797
  },
19707
- '$wrapperLight $itemDisabled > &&': {
19798
+ '[data-soui-theme=light] $itemDisabled > &&': {
19708
19799
  cursor: 'not-allowed',
19709
19800
  color: src.menuItemDisabledFontColor,
19710
19801
  backgroundColor: src.menuItemDisabledBackgroundColor,
@@ -19712,7 +19803,7 @@ var menuStyle = {
19712
19803
  color: src.menuItemDisabledFontColor
19713
19804
  }
19714
19805
  },
19715
- '$wrapperDark $itemDisabled > &&': {
19806
+ '[data-soui-theme=dark] $itemDisabled > &&': {
19716
19807
  cursor: 'not-allowed',
19717
19808
  color: src.menuDarkItemDisabledFontColor,
19718
19809
  backgroundColor: src.menuDarkItemDisabledBackgroundColor,
@@ -19721,23 +19812,32 @@ var menuStyle = {
19721
19812
  }
19722
19813
  }
19723
19814
  },
19724
- itemContentHide: {
19725
- position: 'absolute',
19726
- overflow: 'hidden',
19727
- pointerEvents: 'none',
19728
- // opacity: 0,
19729
- visibility: 'hidden',
19730
- '& $title': {
19731
- pointerEvents: 'none',
19732
- whiteSpace: 'nowrap'
19815
+ itemContentFront: {},
19816
+ itemContentBack: {},
19817
+ header: {
19818
+ padding: "".concat(src.menuHeaderPaddingX, " ").concat(src.menuHeaderPaddingY),
19819
+ width: '100%',
19820
+ transition: "width ".concat(animationDuration, " ").concat(transitionFunc),
19821
+ color: src.menuFontColor,
19822
+ '$wrapperDark &': {
19823
+ color: src.menuDarkFontColor
19733
19824
  },
19734
- '& $menuIcon': {
19735
- opacity: 0
19825
+ '$wrapperCollpase &': {
19826
+ paddingLeft: '0',
19827
+ paddingRight: '0',
19828
+ display: 'flex',
19829
+ flexDirection: 'column',
19830
+ alignItems: 'center'
19831
+ },
19832
+ '& + div': {
19833
+ borderTop: "1px solid ".concat(src.menuHeaderBorderColor),
19834
+ '$wrapperDark &': {
19835
+ borderTop: "1px solid ".concat(src.menuDarkHeaderBorderColor)
19836
+ }
19736
19837
  }
19737
19838
  },
19738
- itemContentFront: {},
19739
- itemContentBack: {},
19740
19839
  title: {
19840
+ cursor: 'inherit',
19741
19841
  '&:hover': {
19742
19842
  color: 'inherit'
19743
19843
  },
@@ -19749,13 +19849,13 @@ var menuStyle = {
19749
19849
  minWidth: 0,
19750
19850
  padding: "".concat(src.menuTitlePaddingY, " ").concat(src.menuTitlePaddingX),
19751
19851
  '$wrapperInline $childrenHasExpand $item:not($itemHasChildren) $itemContentBack > &': {
19752
- paddingRight: src.menuExpandWidth
19852
+ paddingRight: "calc(".concat(src.menuIconMarginX, " + ").concat(src.menuTitlePaddingX, " + ").concat(src.menuExpandSize, ")")
19753
19853
  },
19754
19854
  '$wrapperInline $itemHasChildren > $itemContentBack > &': {
19755
19855
  paddingRight: 0
19756
19856
  },
19757
19857
  '$childrenHasExpand > $item:not($itemHasChildren) > $itemContentBack > &': {
19758
- paddingRight: src.menuExpandWidth
19858
+ paddingRight: "calc(".concat(src.menuIconMarginX, " + ").concat(src.menuTitlePaddingX, " + ").concat(src.menuExpandSize, ")")
19759
19859
  },
19760
19860
  '$childrenHasExpand $itemHasChildren > $itemContentBack > &': {
19761
19861
  paddingRight: 0
@@ -19764,35 +19864,46 @@ var menuStyle = {
19764
19864
  paddingLeft: 0
19765
19865
  }
19766
19866
  },
19867
+ titleIcon: {
19868
+ '& + $titleContent': {
19869
+ paddingLeft: src.menuIconMarginX
19870
+ },
19871
+ lineHeight: 1,
19872
+ display: 'inline-flex'
19873
+ },
19874
+ titleContent: {
19875
+ whiteSpace: 'pre-wrap'
19876
+ // '$wrapperCollpase &': {
19877
+ // transition: `opacity ${animationDuration} ${transitionFunc}`,
19878
+ // },
19879
+ // opacity: 1,
19880
+ },
19767
19881
  expand: {
19768
19882
  alignSelf: 'stretch',
19769
19883
  display: 'flex',
19770
19884
  justifyContent: 'center',
19771
19885
  alignItems: 'center',
19772
- '$wrapperLight &': {
19886
+ '[data-soui-theme=light] &': {
19773
19887
  color: src.menuIconColor
19774
19888
  },
19775
19889
  '& > $icon': {
19776
19890
  lineHeight: 1,
19777
- opacity: 1,
19778
19891
  width: src.menuExpandSize,
19779
19892
  height: src.menuExpandSize,
19780
19893
  '$wrapper:not($wrapperVertical) $itemOpen > $itemContent &': {
19781
19894
  transform: 'rotate(180deg)'
19782
19895
  }
19783
- },
19784
- '$wrapperVertical &': {
19785
- '&[dir=ltr]': {
19786
- transform: 'rotate(-90deg)'
19787
- },
19788
- '&[dir=rtl]': {
19789
- transform: 'rotate(90deg)'
19790
- }
19791
19896
  }
19792
19897
  },
19793
- icon: {
19794
- transition: 'all ease 0.3s'
19898
+ expandVertical: {
19899
+ '&[dir=ltr] svg': {
19900
+ transform: 'rotate(-90deg)'
19901
+ },
19902
+ '&[dir=rtl] svg': {
19903
+ transform: 'rotate(90deg)'
19904
+ }
19795
19905
  },
19906
+ icon: {},
19796
19907
  expandHover: {
19797
19908
  '&:hover': {
19798
19909
  backgroundColor: src.menuExpandHoverBackgroundColor
@@ -19805,13 +19916,14 @@ var menuStyle = {
19805
19916
  width: 'auto',
19806
19917
  visibility: 'hidden',
19807
19918
  paddingLeft: src.menuTitlePaddingX,
19808
- paddingRight: '8px',
19919
+ paddingRight: src.menuIconMarginX,
19809
19920
  '$itemHasChildren > $itemContent &': {
19810
19921
  visibility: 'visible'
19811
19922
  }
19812
19923
  },
19813
19924
  expandBack: {
19814
- width: src.menuExpandWidth
19925
+ paddingRight: src.menuTitlePaddingX,
19926
+ paddingLeft: src.menuIconMarginX
19815
19927
  },
19816
19928
  scrollbar: {
19817
19929
  position: 'absolute',
@@ -19862,16 +19974,66 @@ var menuStyle = {
19862
19974
  scrollbarDragging: {}
19863
19975
  };
19864
19976
  /* harmony default export */ var menu_menu = (menuStyle);
19977
+ ;// CONCATENATED MODULE: ../shineout-style/src/menu/search.ts
19978
+
19979
+ var _wrapperDark;
19980
+
19981
+ var menuSearchStyle = {
19982
+ wrapper: defineProperty_default()({}, getTokenName('inputBorderRadius'), src.menuSearchBorderRadius),
19983
+ wrapperDark: (_wrapperDark = {}, defineProperty_default()(defineProperty_default()(defineProperty_default()(defineProperty_default()(defineProperty_default()(defineProperty_default()(defineProperty_default()(defineProperty_default()(defineProperty_default()(defineProperty_default()(_wrapperDark, getTokenName('inputClearColor'), src.menuSearchDarkClearColor), getTokenName('inputHoverClearColor'), src.menuSearchDarkHoverClearColor), getTokenName('inputBorderColor'), src.menuSearchDarkBackgroundColor), getTokenName('inputBackgroundColor'), src.menuSearchDarkBackgroundColor), getTokenName('inputFontColor'), src.menuSearchDarkFontColor), getTokenName('inputPlaceholderFontColor'), src.menuSearchDarkPlaceholderFontColor), getTokenName('inputHoverBorderColor'), src.menuSearchDarkHoverBorderColor), getTokenName('inputHoverBackgroundColor'), src.menuSearchDarkHoverBackgroundColor), getTokenName('inputFocusBorderColor'), src.menuSearchDarkFocusBorderColor), getTokenName('inputFocusBackgroundColor'), src.menuSearchDarkFocusBackgroundColor), defineProperty_default()(defineProperty_default()(defineProperty_default()(defineProperty_default()(defineProperty_default()(_wrapperDark, getTokenName('inputFocusShadow'), src.menuSearchDarkFocusShadow), getTokenName('inputDisabledBorderColor'), src.menuSearchDarkBackgroundColor), getTokenName('inputDisabledBackgroundColor'), src.menuSearchDarkBackgroundColor), getTokenName('inputDisabledFontColor'), src.menuSearchDarkFontColor), getTokenName('inputDisabledPlaceholderFontColor'), src.menuSearchDarkPlaceholderFontColor)),
19984
+ wrapperLight: defineProperty_default()(defineProperty_default()(defineProperty_default()(defineProperty_default()(defineProperty_default()(defineProperty_default()(defineProperty_default()(defineProperty_default()({}, getTokenName('inputBorderColor'), src.menuSearchBackgroundColor), getTokenName('inputBackgroundColor'), src.menuSearchBackgroundColor), getTokenName('inputHoverBorderColor'), src.menuSearchHoverBorderColor), getTokenName('inputHoverBackgroundColor'), src.menuSearchHoverBackgroundColor), getTokenName('inputDisabledBorderColor'), src.menuSearchDisabledBackgroundColor), getTokenName('inputDisabledBackgroundColor'), src.menuSearchDisabledBackgroundColor), getTokenName('inputClearColor'), src.menuSearchClearColor), getTokenName('inputHoverClearColor'), src.menuSearchHoverClearColor),
19985
+ wrapperCollapsed: {
19986
+ cursor: 'pointer',
19987
+ width: src.menuSearchCollpaseSize,
19988
+ height: src.menuSearchCollpaseSize,
19989
+ lineHeight: 1,
19990
+ '& input': {
19991
+ opacity: 0
19992
+ }
19993
+ },
19994
+ wrapperDisabled: {
19995
+ cursor: 'not-allowed',
19996
+ '&$wrapperDark': {
19997
+ opacity: 0.3
19998
+ }
19999
+ },
20000
+ input: {
20001
+ width: '100%'
20002
+ },
20003
+ search: {
20004
+ width: src.menuSearchIconSize,
20005
+ height: src.menuSearchIconSize,
20006
+ cursor: 'pointer',
20007
+ display: 'flex',
20008
+ justifyContent: 'center',
20009
+ marginRight: src.menuSearchIconMarginX,
20010
+ color: src.menuSearchIconColor,
20011
+ '$wrapperDisabled &': {
20012
+ color: src.inputDisabledFontColor,
20013
+ cursor: 'not-allowed'
20014
+ },
20015
+ '$wrapperDark &': {
20016
+ color: src.menuSearchDarkIconColor
20017
+ },
20018
+ '$wrapperCollapsed &': {
20019
+ marginRight: 0
20020
+ }
20021
+ }
20022
+ };
20023
+ /* harmony default export */ var menu_search = (menuSearchStyle);
19865
20024
  ;// CONCATENATED MODULE: ../shineout-style/src/menu/index.ts
19866
20025
 
19867
20026
 
20027
+
19868
20028
  var useMenuStyle = styled(menu_menu, 'menu');
19869
20029
 
19870
20030
  /* harmony default export */ var shineout_style_src_menu = ((/* unused pure expression or super */ null && (useMenuStyle)));
20031
+ var useMenuSearchStyle = styled(menu_search, 'menu-search');
20032
+
19871
20033
  ;// CONCATENATED MODULE: ../shineout-style/src/message/message.ts
19872
20034
 
19873
20035
 
19874
- var animationDuration = '0.2s';
20036
+ var message_animationDuration = '0.2s';
19875
20037
  var messageMargin = src.messageMarginBottom;
19876
20038
  var message_animations = {
19877
20039
  '@keyframes left-in': {
@@ -19964,21 +20126,21 @@ var messageStyle = objectSpread2_default()(objectSpread2_default()({}, message_a
19964
20126
  },
19965
20127
  itemDismissed: {
19966
20128
  ' [data-soui-position="bottom-left"] &': {
19967
- animation: "$left-out ".concat(animationDuration, " ease-in-out")
20129
+ animation: "$left-out ".concat(message_animationDuration, " ease-in-out")
19968
20130
  },
19969
20131
  ' [data-soui-position="bottom-right"] &': {
19970
- animation: "$right-out ".concat(animationDuration, " ease-in-out")
20132
+ animation: "$right-out ".concat(message_animationDuration, " ease-in-out")
19971
20133
  }
19972
20134
  },
19973
20135
  itemShow: {
19974
20136
  '[data-soui-position="top-left"] &, [data-soui-position="bottom-left"] &': {
19975
- animation: "$left-in ".concat(animationDuration, " ease-in-out")
20137
+ animation: "$left-in ".concat(message_animationDuration, " ease-in-out")
19976
20138
  },
19977
20139
  '[data-soui-position="top-right"] &, [data-soui-position="bottom-right"] &': {
19978
- animation: "$right-in ".concat(animationDuration, " ease-in-out")
20140
+ animation: "$right-in ".concat(message_animationDuration, " ease-in-out")
19979
20141
  },
19980
20142
  '[data-soui-position="middle"] &, [data-soui-position="top"] &': {
19981
- animation: "$middle-in ".concat(animationDuration, " ease-in-out")
20143
+ animation: "$middle-in ".concat(message_animationDuration, " ease-in-out")
19982
20144
  }
19983
20145
  },
19984
20146
  message: {
@@ -20148,7 +20310,7 @@ var modalStyle = objectSpread2_default()(objectSpread2_default()({}, animationSt
20148
20310
  zIndex: modalIndex,
20149
20311
  top: 0,
20150
20312
  left: 0,
20151
- // overflow: 'auto',
20313
+ overflow: 'auto',
20152
20314
  wordWrap: 'break-word',
20153
20315
  width: '100%',
20154
20316
  boxSizing: 'border-box',
@@ -20312,6 +20474,10 @@ var modalStyle = objectSpread2_default()(objectSpread2_default()({}, animationSt
20312
20474
  display: 'flex',
20313
20475
  marginBottom: src.modalPanelGap
20314
20476
  },
20477
+ headerEmptyTitle: {
20478
+ marginBottom: 0,
20479
+ height: 0
20480
+ },
20315
20481
  headerIcon: {
20316
20482
  '$wrapper &': {
20317
20483
  marginRight: src.modalHeaderIconMarginEnd,
@@ -20483,6 +20649,7 @@ var setToken = function setToken(options) {
20483
20649
  customExtraToken = _ref.extraToken;
20484
20650
  var _getConfig = getConfig(),
20485
20651
  prefix = _getConfig.prefix;
20652
+ if (typeof window === 'undefined') return;
20486
20653
  var id = "__shineoutThemeStyleContainer__".concat(createHash(selector));
20487
20654
  var cacheTag = document.querySelector("[data-token-id=\"".concat(id, "\"]"));
20488
20655
  var tag = cacheTag || document.createElement(tagName);
@@ -20642,7 +20809,9 @@ var usePaginationStyle = styled(pagination_pagination, 'pagination');
20642
20809
  /* harmony default export */ var shineout_style_src_pagination = ((/* unused pure expression or super */ null && (usePaginationStyle)));
20643
20810
  ;// CONCATENATED MODULE: ../shineout-style/src/popover/popover.ts
20644
20811
 
20645
- var arrowGap = 10;
20812
+
20813
+ var popover_cssvar = '--popover-arrow-gap';
20814
+ var hideArrowGap = "var(".concat(popover_cssvar, ", 10px)");
20646
20815
  var arrowMargin = '8px';
20647
20816
  var popoverStyle = {
20648
20817
  wrapper: {
@@ -20664,10 +20833,17 @@ var popoverStyle = {
20664
20833
  height: '8.4px',
20665
20834
  boxSizing: 'content-box',
20666
20835
  background: 'inherit',
20667
- borderBottom: 'none'
20836
+ borderBottom: 'none',
20837
+ '&[dir=ltr]': {
20838
+ borderLeftColor: 'transparent'
20839
+ },
20840
+ '&[dir=rtl]': {
20841
+ borderRight: 'transparent'
20842
+ }
20668
20843
  },
20844
+ '&$hideArrow': defineProperty_default()({}, popover_cssvar, '4px'),
20669
20845
  '&[data-soui-position^="bottom"]': {
20670
- marginTop: arrowGap - 2,
20846
+ marginTop: "calc(".concat(hideArrowGap, " - 2px)"),
20671
20847
  '& $arrow': {
20672
20848
  top: '0',
20673
20849
  transform: 'translate(0, -50%) rotate(-45deg)',
@@ -20676,17 +20852,18 @@ var popoverStyle = {
20676
20852
  margin: 'auto'
20677
20853
  },
20678
20854
  '&::after': {
20679
- top: arrowGap * -1,
20855
+ top: "calc(".concat(hideArrowGap, " * -1)"),
20680
20856
  left: '0',
20681
20857
  right: '0',
20682
20858
  content: '" "',
20683
20859
  display: 'block',
20684
- height: arrowGap,
20860
+ height: hideArrowGap,
20685
20861
  position: 'absolute'
20686
20862
  }
20687
20863
  },
20688
20864
  '&[data-soui-position^="top"]': {
20689
- marginTop: (arrowGap - 2) * -1,
20865
+ // marginTop: (arrowGap - 2) * -1,
20866
+ marginTop: "calc((".concat(hideArrowGap, " - 2px) * -1)"),
20690
20867
  '& $arrow': {
20691
20868
  bottom: '0',
20692
20869
  transform: 'translate(0, 50%) rotate(135deg)',
@@ -20695,21 +20872,25 @@ var popoverStyle = {
20695
20872
  margin: 'auto'
20696
20873
  },
20697
20874
  '&::after': {
20698
- bottom: arrowGap * -1,
20875
+ // bottom: arrowGap * -1,
20876
+ bottom: "calc(".concat(hideArrowGap, " * -1)"),
20699
20877
  left: '0',
20700
20878
  right: '0',
20701
20879
  content: '" "',
20702
20880
  display: 'block',
20703
- height: arrowGap,
20881
+ // height: arrowGap,
20882
+ height: hideArrowGap,
20704
20883
  position: 'absolute'
20705
20884
  }
20706
20885
  },
20707
20886
  '&[data-soui-position^="left"]': {
20887
+ // '&[dir=ltr]': { marginLeft: (arrowGap - 2) * -1 },
20708
20888
  '&[dir=ltr]': {
20709
- marginLeft: (arrowGap - 2) * -1
20889
+ marginLeft: "calc((".concat(hideArrowGap, " - 2px) * -1)")
20710
20890
  },
20891
+ // '&[dir=rtl]': { marginRight: (arrowGap - 2) * -1 },
20711
20892
  '&[dir=rtl]': {
20712
- marginRight: (arrowGap - 2) * -1
20893
+ marginRight: "calc((".concat(hideArrowGap, " - 2px) * -1)")
20713
20894
  },
20714
20895
  '& $arrow': {
20715
20896
  right: src.popoverBorderWidth,
@@ -20719,21 +20900,24 @@ var popoverStyle = {
20719
20900
  margin: 'auto'
20720
20901
  },
20721
20902
  '&::after': {
20722
- left: arrowGap * -1,
20903
+ // left: arrowGap * -1,
20904
+ left: "calc(".concat(hideArrowGap, " * -1)"),
20723
20905
  top: '0',
20724
20906
  bottom: '0',
20725
20907
  content: '" "',
20726
20908
  display: 'block',
20727
- width: arrowGap,
20909
+ width: hideArrowGap,
20728
20910
  position: 'absolute'
20729
20911
  }
20730
20912
  },
20731
20913
  '&[data-soui-position^="right"]': {
20914
+ // '&[dir=ltr]': { marginLeft: arrowGap - 2 },
20732
20915
  '&[dir=ltr]': {
20733
- marginLeft: arrowGap - 2
20916
+ marginLeft: "calc(".concat(hideArrowGap, " - 2px)")
20734
20917
  },
20918
+ // '&[dir=rtl]': { marginRight: arrowGap - 2 },
20735
20919
  '&[dir=rtl]': {
20736
- marginRight: arrowGap - 2
20920
+ marginRight: "calc(".concat(hideArrowGap, " - 2px)")
20737
20921
  },
20738
20922
  '& $arrow': {
20739
20923
  left: '0',
@@ -20743,12 +20927,14 @@ var popoverStyle = {
20743
20927
  margin: 'auto'
20744
20928
  },
20745
20929
  '&::after': {
20746
- left: arrowGap * -1,
20930
+ // left: arrowGap * -1,
20931
+ left: "calc(".concat(hideArrowGap, " * -1)"),
20747
20932
  top: '0',
20748
20933
  bottom: '0',
20749
20934
  content: '" "',
20750
20935
  display: 'block',
20751
- width: arrowGap,
20936
+ // width: arrowGap,
20937
+ width: hideArrowGap,
20752
20938
  position: 'absolute'
20753
20939
  }
20754
20940
  },
@@ -20796,6 +20982,7 @@ var popoverStyle = {
20796
20982
  display: 'block'
20797
20983
  },
20798
20984
  arrow: {},
20985
+ hideArrow: {},
20799
20986
  content: {
20800
20987
  position: 'relative',
20801
20988
  zIndex: 2,
@@ -21501,7 +21688,7 @@ var selectStyle = objectSpread2_default()(objectSpread2_default()({
21501
21688
  },
21502
21689
  compressedWrapper: {
21503
21690
  width: 0,
21504
- overflow: 'hidden'
21691
+ overflow: 'auto'
21505
21692
  },
21506
21693
  controlMouse: {
21507
21694
  '& $optionInner:not($optionDisabled):not($optionActive):hover': {
@@ -21646,6 +21833,7 @@ var selectStyle = objectSpread2_default()(objectSpread2_default()({
21646
21833
  }
21647
21834
  },
21648
21835
  tag: {
21836
+ flexShrink: 0,
21649
21837
  '&$tag + &$tag': {
21650
21838
  marginLeft: 0
21651
21839
  },
@@ -21658,6 +21846,10 @@ var selectStyle = objectSpread2_default()(objectSpread2_default()({
21658
21846
  marginRight: 0
21659
21847
  }
21660
21848
  },
21849
+ tagOnly: {
21850
+ flexShrink: 1,
21851
+ minWidth: 42
21852
+ },
21661
21853
  space: {
21662
21854
  marginTop: src.selectPlaceholderMarginY,
21663
21855
  marginBottom: src.selectPlaceholderMarginY
@@ -21681,7 +21873,8 @@ var selectStyle = objectSpread2_default()(objectSpread2_default()({
21681
21873
  },
21682
21874
  virtualList: {
21683
21875
  margin: 0,
21684
- padding: 0
21876
+ padding: 0,
21877
+ width: '100%'
21685
21878
  },
21686
21879
  option: {
21687
21880
  listStyle: 'none',
@@ -21974,7 +22167,7 @@ var sliderStyle = {
21974
22167
  bottom: '100%',
21975
22168
  '&[dir=ltr]': {
21976
22169
  left: 0,
21977
- transform: 'translate(-50%, 10px)'
22170
+ transform: 'translate(-50%, -10px)'
21978
22171
  },
21979
22172
  '&[dir=rtl]': {
21980
22173
  right: 0,
@@ -23545,8 +23738,12 @@ var switchStyle = objectSpread2_default()(objectSpread2_default()({}, switch_ani
23545
23738
  display: 'inline-block',
23546
23739
  padding: "0 ".concat(src.switchTextPaddingX)
23547
23740
  },
23548
- wrapperSmall: {},
23549
- wrapperLarge: {},
23741
+ wrapperSmall: {
23742
+ fontSize: src.switchSmallFontSize
23743
+ },
23744
+ wrapperLarge: {
23745
+ fontSize: src.switchLargeFontSize
23746
+ },
23550
23747
  indicator: {
23551
23748
  width: src.switchCircleSize,
23552
23749
  height: src.switchCircleSize,
@@ -23614,9 +23811,23 @@ var switchStyle = objectSpread2_default()(objectSpread2_default()({}, switch_ani
23614
23811
  lineHeight: 1,
23615
23812
  paddingLeft: src.switchCircleSize,
23616
23813
  transition: "padding ".concat(switch_transition),
23814
+ '$wrapperSmall &': {
23815
+ paddingLeft: src.switchSmallCircleSize
23816
+ },
23817
+ '$wrapperLarge &': {
23818
+ paddingLeft: src.switchLargeCircleSize
23819
+ },
23617
23820
  '$wrapperChecked &': {
23618
23821
  paddingLeft: 0,
23619
- paddingRight: src.switchCircleSize
23822
+ paddingRight: src.switchCircleSize,
23823
+ '$wrapperSmall&': {
23824
+ paddingLeft: 0,
23825
+ paddingRight: src.switchSmallCircleSize
23826
+ },
23827
+ '$wrapperLarge&': {
23828
+ paddingLeft: 0,
23829
+ paddingRight: src.switchLargeCircleSize
23830
+ }
23620
23831
  }
23621
23832
  },
23622
23833
  wrapperDisabled: {
@@ -23707,10 +23918,10 @@ var tableStyle = objectSpread2_default()(objectSpread2_default()({}, globalStyle
23707
23918
  background: src.tableCellBorderColor,
23708
23919
  borderLeft: "1px solid ".concat(src.tableCellBorderColor)
23709
23920
  },
23710
- '&[dir=ltr]::after': {
23921
+ '[dir=ltr]&::after': {
23711
23922
  right: 0
23712
23923
  },
23713
- '&[dir=rtl]::after': {
23924
+ '[dir=rtl]&::after': {
23714
23925
  left: 0
23715
23926
  }
23716
23927
  }
@@ -24082,7 +24293,7 @@ var tableStyle = objectSpread2_default()(objectSpread2_default()({}, globalStyle
24082
24293
  iconWrapper: {
24083
24294
  display: 'inline-block',
24084
24295
  verticalAlign: 'top',
24085
- lineHeight: '1.85',
24296
+ lineHeight: '1.9',
24086
24297
  height: '14px'
24087
24298
  },
24088
24299
  rowStriped: {
@@ -24604,6 +24815,12 @@ var tabsStyle = {
24604
24815
  width: '100%',
24605
24816
  alignItems: 'center'
24606
24817
  },
24818
+ '& $next': {
24819
+ marginLeft: src.tabsNearlyMargin
24820
+ },
24821
+ '& $prev': {
24822
+ marginRight: src.tabsNearlyMargin
24823
+ },
24607
24824
  '& $next,& $prev': {
24608
24825
  lineHeight: 0,
24609
24826
  padding: "".concat(src.tabsActionHorizontalPaddingY, " ").concat(src.tabsActionHorizontalPaddingX)
@@ -25098,7 +25315,6 @@ var TagStyle = {
25098
25315
  wrapper: {
25099
25316
  lineHeight: src.lineHeightDynamic
25100
25317
  },
25101
- container: {},
25102
25318
  inline: {
25103
25319
  display: 'inline-block',
25104
25320
  flex: 1,
@@ -25120,9 +25336,6 @@ var TagStyle = {
25120
25336
  small: {
25121
25337
  lineHeight: "calc(".concat(src.tagSmallFontSize, " + 6px)"),
25122
25338
  padding: "0 ".concat(src.tagSmallPaddingX),
25123
- '& $container': {
25124
- lineHeight: "calc(".concat(src.tagSmallFontSize, " + 6px)")
25125
- },
25126
25339
  '& $wrapper': {
25127
25340
  lineHeight: "calc(".concat(src.tagSmallFontSize, " + 6px)")
25128
25341
  },
@@ -25275,6 +25488,7 @@ var textarea_input = objectSpread2_default()(objectSpread2_default()(objectSprea
25275
25488
  },
25276
25489
  info: {
25277
25490
  position: 'absolute',
25491
+ zIndex: 1000,
25278
25492
  '&[dir=ltr]': {
25279
25493
  right: '0'
25280
25494
  },
@@ -25343,7 +25557,7 @@ var useTextareaStyle = styled(src_textarea_textarea, 'textarea');
25343
25557
  ;// CONCATENATED MODULE: ../shineout-style/src/tooltip/tooltip.ts
25344
25558
 
25345
25559
 
25346
- var tooltip_arrowGap = 12;
25560
+ var arrowGap = 12;
25347
25561
  var tooltip_arrowMargin = '8px';
25348
25562
  var tooltip_animation = {
25349
25563
  '@keyframes fadeIn': {
@@ -25397,10 +25611,12 @@ var tooltipStyle = objectSpread2_default()(objectSpread2_default()({}, tooltip_a
25397
25611
  boxShadow: src.tooltipShadow,
25398
25612
  color: src.tooltipColor,
25399
25613
  wordWrap: 'break-word',
25614
+ pointerEvents: 'none',
25400
25615
  '&[data-soui-type^="light"]': {
25401
25616
  backgroundColor: src.tooltipLightBackgroundColor,
25402
25617
  color: src.tooltipLightColor,
25403
- border: "1px solid ".concat(src.tooltipLightBorderColor)
25618
+ border: "1px solid ".concat(src.tooltipLightBorderColor),
25619
+ boxSizing: 'border-box'
25404
25620
  },
25405
25621
  '&[data-soui-type^="primary"]': {
25406
25622
  backgroundColor: src.tooltipPrimaryBackgroundColor,
@@ -25424,33 +25640,39 @@ var tooltipStyle = objectSpread2_default()(objectSpread2_default()({}, tooltip_a
25424
25640
  content: '" "',
25425
25641
  display: 'block',
25426
25642
  border: "inherit",
25643
+ borderLeftColor: 'transparent',
25427
25644
  width: '8.4px',
25428
25645
  height: '8.4px',
25429
25646
  boxSizing: 'content-box',
25430
25647
  background: 'inherit',
25431
- borderBottom: 'none'
25648
+ borderBottomColor: 'transparent'
25432
25649
  },
25433
25650
  '&[data-soui-position^="bottom"]': {
25434
- marginTop: tooltip_arrowGap - 2,
25651
+ marginTop: arrowGap - 2,
25435
25652
  '&::before': {
25436
25653
  top: '0',
25437
- transform: 'translate(0, -50%) rotate(-45deg)',
25438
25654
  left: '0',
25439
25655
  right: '0',
25440
25656
  margin: 'auto'
25441
25657
  },
25658
+ '&[dir=ltr]::before': {
25659
+ transform: 'translate(0, -50%) rotate(-45deg)'
25660
+ },
25661
+ '&[dir=rtl]::before': {
25662
+ transform: 'translate(0, -50%) rotate(45deg)'
25663
+ },
25442
25664
  '&::after': {
25443
- top: tooltip_arrowGap * -1,
25665
+ top: arrowGap * -1,
25444
25666
  left: '0',
25445
25667
  right: '0',
25446
25668
  content: '" "',
25447
25669
  display: 'block',
25448
- height: tooltip_arrowGap,
25670
+ height: arrowGap,
25449
25671
  position: 'absolute'
25450
25672
  }
25451
25673
  },
25452
25674
  '&[data-soui-position^="top"]': {
25453
- marginTop: (tooltip_arrowGap - 2) * -1,
25675
+ marginTop: (arrowGap - 2) * -1,
25454
25676
  '&::before': {
25455
25677
  bottom: '0',
25456
25678
  transform: 'translate(0, 50%) rotate(135deg)',
@@ -25458,63 +25680,79 @@ var tooltipStyle = objectSpread2_default()(objectSpread2_default()({}, tooltip_a
25458
25680
  right: '0',
25459
25681
  margin: 'auto'
25460
25682
  },
25683
+ '&[dir=ltr]::before': {
25684
+ transform: 'translate(0, 50%) rotate(135deg)'
25685
+ },
25686
+ '&[dir=rtl]::before': {
25687
+ transform: 'translate(0, 50%) rotate(-135deg)'
25688
+ },
25461
25689
  '&::after': {
25462
- bottom: tooltip_arrowGap * -1,
25690
+ bottom: arrowGap * -1,
25463
25691
  left: '0',
25464
25692
  right: '0',
25465
25693
  content: '" "',
25466
25694
  display: 'block',
25467
- height: tooltip_arrowGap,
25695
+ height: arrowGap,
25468
25696
  position: 'absolute'
25469
25697
  }
25470
25698
  },
25471
25699
  '&[data-soui-position^="left"]': {
25472
- marginLeft: (tooltip_arrowGap - 2) * -1,
25700
+ marginLeft: (arrowGap - 2) * -1,
25473
25701
  '&[dir=ltr]': {
25474
- marginLeft: (tooltip_arrowGap - 2) * -1
25702
+ marginLeft: (arrowGap - 2) * -1
25475
25703
  },
25476
25704
  '&[dir=rtl]': {
25477
- marginRight: (tooltip_arrowGap - 2) * -1
25705
+ marginRight: (arrowGap - 2) * -1
25478
25706
  },
25479
25707
  '&::before': {
25480
25708
  right: 0,
25481
- transform: 'translate(50%, 0) rotate(45deg)',
25482
25709
  top: '0',
25483
25710
  bottom: '0',
25484
25711
  margin: 'auto'
25485
25712
  },
25713
+ '&[dir=ltr]::before': {
25714
+ transform: 'translate(50%, 0) rotate(45deg)'
25715
+ },
25716
+ '&[dir=rtl]::before': {
25717
+ transform: 'translate(50%, 0) rotate(135deg)'
25718
+ },
25486
25719
  '&::after': {
25487
- left: tooltip_arrowGap * -1,
25720
+ left: arrowGap * -1,
25488
25721
  top: '0',
25489
25722
  bottom: '0',
25490
25723
  content: '" "',
25491
25724
  display: 'block',
25492
- width: tooltip_arrowGap,
25725
+ width: arrowGap,
25493
25726
  position: 'absolute'
25494
25727
  }
25495
25728
  },
25496
25729
  '&[data-soui-position^="right"]': {
25497
- marginLeft: tooltip_arrowGap - 2,
25730
+ marginLeft: arrowGap - 2,
25498
25731
  '&[dir=ltr]': {
25499
- marginLeft: tooltip_arrowGap - 2
25732
+ marginLeft: arrowGap - 2
25500
25733
  },
25501
25734
  '&[dir=rtl]': {
25502
- marginRight: tooltip_arrowGap - 2
25735
+ marginRight: arrowGap - 2
25503
25736
  },
25504
25737
  '&::before': {
25505
25738
  left: '0',
25506
- transform: 'translate(-50%, 0) rotate(-135deg)',
25507
25739
  top: '0',
25508
25740
  bottom: '0',
25509
25741
  margin: 'auto'
25510
25742
  },
25743
+ '&[dir=ltr]::before': {
25744
+ transform: 'translate(-50%, 0) rotate(-135deg)'
25745
+ },
25746
+ '&[dir=rtl]::before': {
25747
+ transform: 'translate(-50%, 0) rotate(-45deg)'
25748
+ },
25511
25749
  '&::after': {
25512
- left: tooltip_arrowGap * -1,
25750
+ left: arrowGap * -1,
25513
25751
  top: '0',
25514
25752
  bottom: '0',
25515
25753
  content: '" "',
25516
25754
  display: 'block',
25517
- width: tooltip_arrowGap,
25755
+ width: arrowGap,
25518
25756
  position: 'absolute'
25519
25757
  }
25520
25758
  },
@@ -25890,16 +26128,35 @@ var treeStyle = {
25890
26128
  cursor: 'pointer',
25891
26129
  padding: "0 ".concat(src.treePaddingX),
25892
26130
  borderRadius: src.treeContentBorderRadius,
26131
+ position: 'relative',
26132
+ '&[data-expanded="true"]::before': {
26133
+ content: '""',
26134
+ position: 'absolute',
26135
+ top: 24,
26136
+ bottom: 0,
26137
+ left: -12,
26138
+ width: 1,
26139
+ background: '#ebebeb'
26140
+ },
26141
+ '&[dir=ltr][data-expanded="true"]::before': {
26142
+ left: -12
26143
+ },
26144
+ '&[dir=rtl][data-expanded="true"]::before': {
26145
+ right: -12
26146
+ },
25893
26147
  '&[data-active="true"]': {
25894
26148
  background: src.treeContentActiveBackgroundColor,
25895
26149
  '& $text': {
25896
26150
  color: src.treeContentActiveFontColor
25897
26151
  }
25898
26152
  },
25899
- '&[data-disabled="true"]': {
25900
- cursor: 'not-allowed'
25901
- },
25902
- '&:hover:not([data-active="true"]):not([data-disabled="true"])': {
26153
+ // '&[data-disabled="true"]': {
26154
+ // cursor: 'not-allowed',
26155
+ // },
26156
+ // '&:hover:not([data-active="true"]):not([data-disabled="true"])': {
26157
+ // background: Token.treeContentHoverBackgroundColor,
26158
+ // },
26159
+ '&:hover:not([data-active="true"])': {
25903
26160
  background: src.treeContentHoverBackgroundColor
25904
26161
  }
25905
26162
  },
@@ -25917,9 +26174,9 @@ var treeStyle = {
25917
26174
  paddingTop: src.treeTextPaddingY,
25918
26175
  paddingBottom: src.treeTextPaddingY
25919
26176
  },
25920
- textDisabled: {
25921
- color: src.treeItemDisabledFontColor
25922
- },
26177
+ // textDisabled: {
26178
+ // color: Token.treeItemDisabledFontColor,
26179
+ // },
25923
26180
  list: {},
25924
26181
  node: {
25925
26182
  position: 'relative',
@@ -26231,7 +26488,7 @@ var treeSelectStyle = objectSpread2_default()(objectSpread2_default()({
26231
26488
  },
26232
26489
  compressedWrapper: {
26233
26490
  width: 0,
26234
- overflow: 'hidden'
26491
+ overflow: 'auto'
26235
26492
  },
26236
26493
  controlMouse: {
26237
26494
  '& $optionInner:hover': {
@@ -26350,6 +26607,7 @@ var treeSelectStyle = objectSpread2_default()(objectSpread2_default()({
26350
26607
  }
26351
26608
  },
26352
26609
  tag: {
26610
+ flexShrink: 0,
26353
26611
  '&$tag + &$tag': {
26354
26612
  marginLeft: 0
26355
26613
  },
@@ -26362,6 +26620,10 @@ var treeSelectStyle = objectSpread2_default()(objectSpread2_default()({
26362
26620
  marginRight: 0
26363
26621
  }
26364
26622
  },
26623
+ tagOnly: {
26624
+ flexShrink: 1,
26625
+ minWidth: 42
26626
+ },
26365
26627
  space: {
26366
26628
  marginTop: src.treeSelectPlaceholderMarginY,
26367
26629
  marginBottom: src.treeSelectPlaceholderMarginY
@@ -27824,7 +28086,7 @@ var usePositionStyle = function usePositionStyle(config) {
27824
28086
  // EXTERNAL MODULE: external {"root":"ReactDOM","commonjs2":"react-dom","commonjs":"react-dom","amd":"react-dom"}
27825
28087
  var external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_ = __webpack_require__(5156);
27826
28088
  var external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_default = /*#__PURE__*/__webpack_require__.n(external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_);
27827
- ;// CONCATENATED MODULE: ../../node_modules/.pnpm/@shined+reactive@0.1.2_react@18.2.0/node_modules/@shined/reactive/dist/chunk-LM54EYM4.js
28089
+ ;// CONCATENATED MODULE: ../../node_modules/.pnpm/@shined+reactive@0.1.3-alpha.0_react@18.2.0/node_modules/@shined/reactive/dist/chunk-IP2WBRUX.js
27828
28090
 
27829
28091
  // src/vanilla/ref.ts
27830
28092
  function _array_like_to_array(arr, len) {
@@ -27904,16 +28166,16 @@ function hasRef(k) {
27904
28166
  var SNAPSHOT = Symbol("SNAPSHOT");
27905
28167
  var LISTENERS = Symbol("LISTENERS");
27906
28168
  var REACTIVE = Symbol("REACTIVE");
27907
- var chunk_LM54EYM4_isProduction = (/* unused pure expression or super */ null && ("production" === "production"));
28169
+ var chunk_IP2WBRUX_isProduction = (/* unused pure expression or super */ null && ("production" === "production"));
27908
28170
  var hasOwn = Object.prototype.hasOwnProperty;
27909
- var chunk_LM54EYM4_isObject = function isObject(x) {
28171
+ var chunk_IP2WBRUX_isObject = function isObject(x) {
27910
28172
  return helpers_typeof(x) === "object" && x !== null;
27911
28173
  };
27912
28174
  var createObjectFromPrototype = function createObjectFromPrototype(target) {
27913
28175
  return Array.isArray(target) ? [] : Object.create(Object.getPrototypeOf(target));
27914
28176
  };
27915
28177
  var canProxy = function canProxy(x) {
27916
- return chunk_LM54EYM4_isObject(x) && !hasRef(x) && (Array.isArray(x) || !(Symbol.iterator in x)) && !_instanceof(x, WeakMap) && !_instanceof(x, WeakSet) && !_instanceof(x, Error) && !_instanceof(x, Number) && !_instanceof(x, Date) && !_instanceof(x, String) && !_instanceof(x, RegExp) && !_instanceof(x, ArrayBuffer);
28178
+ return chunk_IP2WBRUX_isObject(x) && !hasRef(x) && (Array.isArray(x) || !(Symbol.iterator in x)) && !_instanceof(x, WeakMap) && !_instanceof(x, WeakSet) && !_instanceof(x, Error) && !_instanceof(x, Number) && !_instanceof(x, Date) && !_instanceof(x, String) && !_instanceof(x, RegExp) && !_instanceof(x, ArrayBuffer);
27917
28179
  };
27918
28180
  var numberReg = /^\d+$/;
27919
28181
  var propertyKeysToPath = function propertyKeysToPath(keys) {
@@ -27957,7 +28219,7 @@ var get = function get(object, path) {
27957
28219
  }
27958
28220
  return object;
27959
28221
  };
27960
- var chunk_LM54EYM4_shallowEqual = function shallowEqual(objA, objB) {
28222
+ var chunk_IP2WBRUX_shallowEqual = function shallowEqual(objA, objB) {
27961
28223
  if (Object.is(objA, objB)) {
27962
28224
  return true;
27963
28225
  }
@@ -28105,7 +28367,7 @@ function proxy(initState) {
28105
28367
  var preValue = Reflect.get(target, prop, receiver);
28106
28368
  var childListeners = preValue === null || preValue === void 0 ? void 0 : preValue[LISTENERS];
28107
28369
  childListeners && childListeners.delete(popPropListener(prop));
28108
- if (!chunk_LM54EYM4_isObject(value) && Object.is(preValue, value)) {
28370
+ if (!chunk_IP2WBRUX_isObject(value) && Object.is(preValue, value)) {
28109
28371
  return true;
28110
28372
  }
28111
28373
  var nextValue = value;
@@ -28178,7 +28440,7 @@ function subscribe(proxyState, callback, notifyInSync) {
28178
28440
  };
28179
28441
  }
28180
28442
  // src/vanilla/create.ts
28181
- function chunk_LM54EYM4_create(initState, options) {
28443
+ function chunk_IP2WBRUX_create(initState, options) {
28182
28444
  options !== null && options !== void 0 ? options : options = {};
28183
28445
  var proxyState = proxy(initState);
28184
28446
  var restore = function restore() {
@@ -28275,14 +28537,14 @@ function produce(obj, draftHandler) {
28275
28537
  return snapshot;
28276
28538
  }
28277
28539
 
28278
- // EXTERNAL MODULE: ../../node_modules/.pnpm/use-sync-external-store@1.2.0_react@18.2.0/node_modules/use-sync-external-store/shim/with-selector.js
28279
- var with_selector = __webpack_require__(314);
28280
- ;// CONCATENATED MODULE: ../../node_modules/.pnpm/@shined+reactive@0.1.2_react@18.2.0/node_modules/@shined/reactive/dist/index.js
28540
+ // EXTERNAL MODULE: ../../node_modules/.pnpm/use-sync-external-store@1.2.2_react@18.2.0/node_modules/use-sync-external-store/shim/with-selector.js
28541
+ var with_selector = __webpack_require__(6523);
28542
+ ;// CONCATENATED MODULE: ../../node_modules/.pnpm/@shined+reactive@0.1.3-alpha.0_react@18.2.0/node_modules/@shined/reactive/dist/index.js
28281
28543
 
28282
28544
  // src/react/use-snapshot.ts
28283
28545
 
28284
28546
 
28285
- var useSnapshot = function useSnapshot(proxyState, selectorOrOption, maybeOptions) {
28547
+ function useSnapshot(proxyState, selectorOrOption, maybeOptions) {
28286
28548
  if (selectorOrOption && typeof selectorOrOption !== "function") {
28287
28549
  maybeOptions = selectorOrOption;
28288
28550
  selectorOrOption = void 0;
@@ -28291,7 +28553,7 @@ var useSnapshot = function useSnapshot(proxyState, selectorOrOption, maybeOption
28291
28553
  tmp = _ref.sync,
28292
28554
  updateInSync = tmp === void 0 ? false : tmp,
28293
28555
  _ref_isEqual = _ref.isEqual,
28294
- isEqual = _ref_isEqual === void 0 ? chunk_LM54EYM4_shallowEqual : _ref_isEqual;
28556
+ isEqual = _ref_isEqual === void 0 ? chunk_IP2WBRUX_shallowEqual : _ref_isEqual;
28295
28557
  var _subscribe = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)(function (callback) {
28296
28558
  return subscribe(proxyState, callback, updateInSync);
28297
28559
  }, [proxyState, updateInSync]);
@@ -28303,10 +28565,10 @@ var useSnapshot = function useSnapshot(proxyState, selectorOrOption, maybeOption
28303
28565
  };
28304
28566
  var snapshot = (0,with_selector.useSyncExternalStoreWithSelector)(_subscribe, _getSnapshot, _getSnapshot, selector, isEqual);
28305
28567
  return snapshot;
28306
- };
28568
+ }
28307
28569
  // src/react/create-with-hooks.ts
28308
- var createWithHooks = function createWithHooks(initState, options) {
28309
- var store = chunk_LM54EYM4_create(initState, options);
28570
+ function createWithHooks(initState, options) {
28571
+ var store = chunk_IP2WBRUX_create(initState, options);
28310
28572
  var _useSnapshot = function _useSnapshot(selectorOrOption, maybeOptions) {
28311
28573
  if (selectorOrOption && typeof selectorOrOption !== "function") {
28312
28574
  maybeOptions = selectorOrOption;
@@ -28318,7 +28580,7 @@ var createWithHooks = function createWithHooks(initState, options) {
28318
28580
  useSnapshot: _useSnapshot
28319
28581
  });
28320
28582
  return store;
28321
- };
28583
+ }
28322
28584
 
28323
28585
  ;// CONCATENATED MODULE: ../base/src/config/index.ts
28324
28586
  /* provided dependency */ var process = __webpack_require__(147);
@@ -28329,9 +28591,9 @@ var _process;
28329
28591
 
28330
28592
  var processEnv = typeof process !== 'undefined' ? (_process = process) === null || process === void 0 ? void 0 : ({"NODE_ENV":"production","PUBLIC_PATH":"/"}) : {};
28331
28593
  var src_config_config = {
28332
- prefix: 'so',
28594
+ prefix: 'soui',
28333
28595
  locale: processEnv.LOCALE || 'en-US',
28334
- delay: 0,
28596
+ delay: 400,
28335
28597
  trim: undefined,
28336
28598
  spin: 'ring',
28337
28599
  direction: 'ltr',
@@ -28359,7 +28621,7 @@ var config_setConfig = function setConfig(option) {
28359
28621
  var _Object$entries$_i = slicedToArray_default()(_Object$entries[_i], 2),
28360
28622
  key = _Object$entries$_i[0],
28361
28623
  value = _Object$entries$_i[1];
28362
- if (value && key in src_config_config) {
28624
+ if (key in src_config_config) {
28363
28625
  var k = key;
28364
28626
  // @ts-ignore
28365
28627
  state.mutate[k] = value;
@@ -28565,7 +28827,10 @@ function useClickAway(params) {
28565
28827
  }
28566
28828
  return function () {
28567
28829
  // @ts-ignore
28568
- document.removeEventListener(event, handleClickAway);
28830
+ document.removeEventListener(event, handleClickAway, {
28831
+ // 解决 点击后立刻删除dom导致获取不到元素; contains(target) 为 false 的问题
28832
+ capture: true
28833
+ });
28569
28834
  };
28570
28835
  }, [effect]);
28571
28836
  }
@@ -29272,7 +29537,7 @@ var useButton = function useButton() {
29272
29537
  return mergedEventHandlers;
29273
29538
  };
29274
29539
  return {
29275
- disabled: disabled,
29540
+ disabled: disabled || loading,
29276
29541
  getAnchorProps: getAnchorProps,
29277
29542
  getButtonProps: getButtonProps,
29278
29543
  getSpaceChildren: getSpaceChildren
@@ -29967,6 +30232,58 @@ var ButtonGroup = function ButtonGroup(props) {
29967
30232
  src_button_button_0.displayName = 'ShineoutButton';
29968
30233
  src_button_button_0.Group = src_button_group;
29969
30234
  /* harmony default export */ var src_button_0 = (src_button_button_0);
30235
+ ;// CONCATENATED MODULE: ../hooks/src/common/use-unmounted-ref/index.ts
30236
+
30237
+ function useUnmountedRef() {
30238
+ var unmountedRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(false);
30239
+ (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
30240
+ unmountedRef.current = false;
30241
+ return function () {
30242
+ unmountedRef.current = true;
30243
+ };
30244
+ }, []);
30245
+ return unmountedRef;
30246
+ }
30247
+ /* harmony default export */ var use_unmounted_ref = ((/* unused pure expression or super */ null && (useUnmountedRef)));
30248
+ ;// CONCATENATED MODULE: ../hooks/src/common/use-safe-state/index.ts
30249
+
30250
+
30251
+
30252
+
30253
+ function useSafeState(initialState) {
30254
+ var unmountedRef = useUnmountedRef();
30255
+ var _useState = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(initialState),
30256
+ _useState2 = slicedToArray_default()(_useState, 2),
30257
+ state = _useState2[0],
30258
+ setState = _useState2[1];
30259
+ var setCurrentState = usePersistFn(function (currentState) {
30260
+ if (!unmountedRef.current) {
30261
+ setState(currentState);
30262
+ }
30263
+ });
30264
+ return [state, setCurrentState];
30265
+ }
30266
+ /* harmony default export */ var use_safe_state = ((/* unused pure expression or super */ null && (useSafeState)));
30267
+ ;// CONCATENATED MODULE: ../hooks/src/common/use-render/index.ts
30268
+
30269
+
30270
+
30271
+
30272
+ function useRender(callback) {
30273
+ var _useSafeState = useSafeState(undefined),
30274
+ _useSafeState2 = slicedToArray_default()(_useSafeState, 2),
30275
+ count = _useSafeState2[0],
30276
+ setCount = _useSafeState2[1];
30277
+ (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
30278
+ if (callback && count !== undefined) callback();
30279
+ }, [count]);
30280
+ return usePersistFn(function () {
30281
+ return setCount(function (count) {
30282
+ return ((count || 0) + 1) % 1000000;
30283
+ });
30284
+ });
30285
+ }
30286
+ /* harmony default export */ var use_render = (useRender);
29970
30287
  ;// CONCATENATED MODULE: ../hooks/src/common/use-drag-mock/use-drag-mock.ts
29971
30288
 
29972
30289
 
@@ -30247,6 +30564,7 @@ var Card = function Card(props) {
30247
30564
  style = _props$style === void 0 ? {} : _props$style;
30248
30565
  var cardClasses = (_props$jssStyle = props.jssStyle) === null || _props$jssStyle === void 0 || (_props$jssStyle$card = _props$jssStyle.card) === null || _props$jssStyle$card === void 0 ? void 0 : _props$jssStyle$card.call(_props$jssStyle);
30249
30566
  var panelRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
30567
+ var forceUpdate = useRender();
30250
30568
  var _useRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)({
30251
30569
  id: undefined
30252
30570
  }),
@@ -30266,9 +30584,12 @@ var Card = function Card(props) {
30266
30584
  activeId = _useContext.activeId,
30267
30585
  getDefaultId = _useContext.getDefaultId,
30268
30586
  onActiveChange = _useContext.onActiveChange;
30269
- if (context.id === undefined) {
30270
- context.id = getDefaultId();
30271
- }
30587
+ (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
30588
+ if (context.id === undefined) {
30589
+ context.id = getDefaultId();
30590
+ forceUpdate();
30591
+ }
30592
+ }, []);
30272
30593
  var id = (_props$id = props.id) !== null && _props$id !== void 0 ? _props$id : context.id;
30273
30594
  var collapsible = props.collapsible || inAccordion;
30274
30595
  var getCollpased = function getCollpased() {
@@ -30358,6 +30679,7 @@ var card_jssStyle = {
30358
30679
 
30359
30680
 
30360
30681
 
30682
+
30361
30683
  var CardHeader = function CardHeader(props) {
30362
30684
  var _props$jssStyle, _props$jssStyle$card;
30363
30685
  var align = props.align;
@@ -30378,12 +30700,24 @@ var CardHeader = function CardHeader(props) {
30378
30700
  })
30379
30701
  });
30380
30702
  };
30381
- var headerContentClassName = classnames_default()(cardClasses === null || cardClasses === void 0 ? void 0 : cardClasses.headerContent, align === 'center' && (cardClasses === null || cardClasses === void 0 ? void 0 : cardClasses.center), align === 'right' && (cardClasses === null || cardClasses === void 0 ? void 0 : cardClasses.right));
30382
- return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
30703
+ var alignClass = classnames_default()(align === 'center' && (cardClasses === null || cardClasses === void 0 ? void 0 : cardClasses.center), align === 'right' && (cardClasses === null || cardClasses === void 0 ? void 0 : cardClasses.right));
30704
+ var headerContentClassName = classnames_default()(cardClasses === null || cardClasses === void 0 ? void 0 : cardClasses.headerContent, alignClass);
30705
+ var commonHeaderProps = {
30383
30706
  onMouseDown: handleDragMouseDown,
30384
30707
  onClick: onCollapse,
30385
- className: classnames_default()(props.className, cardClasses === null || cardClasses === void 0 ? void 0 : cardClasses.header),
30386
- style: props.style,
30708
+ style: props.style
30709
+ };
30710
+ if (!props.extra && !collapsible) {
30711
+ var simpleHeaderClassName = classnames_default()(cardClasses === null || cardClasses === void 0 ? void 0 : cardClasses.header, cardClasses === null || cardClasses === void 0 ? void 0 : cardClasses.simpleHeader, alignClass, props.className);
30712
+ return /*#__PURE__*/(0,jsx_runtime.jsx)("div", objectSpread2_default()(objectSpread2_default()({
30713
+ className: simpleHeaderClassName
30714
+ }, commonHeaderProps), {}, {
30715
+ children: props.children
30716
+ }));
30717
+ }
30718
+ return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", objectSpread2_default()(objectSpread2_default()({
30719
+ className: classnames_default()(props.className, cardClasses === null || cardClasses === void 0 ? void 0 : cardClasses.header)
30720
+ }, commonHeaderProps), {}, {
30387
30721
  children: [renderIndicator(), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
30388
30722
  className: headerContentClassName,
30389
30723
  children: props.children
@@ -30391,7 +30725,7 @@ var CardHeader = function CardHeader(props) {
30391
30725
  className: cardClasses === null || cardClasses === void 0 ? void 0 : cardClasses.headerExtra,
30392
30726
  children: props.extra
30393
30727
  })]
30394
- });
30728
+ }));
30395
30729
  };
30396
30730
  /* harmony default export */ var card_header = (CardHeader);
30397
30731
  ;// CONCATENATED MODULE: ./src/card/header.tsx
@@ -30579,7 +30913,8 @@ var ModalSubmit = function ModalSubmit(props) {
30579
30913
 
30580
30914
 
30581
30915
  var submit_jssStyle = {
30582
- button: useButtonStyle
30916
+ button: useButtonStyle,
30917
+ spin: useSpinStyle
30583
30918
  };
30584
30919
  var Submit = function Submit(props) {
30585
30920
  return /*#__PURE__*/(0,jsx_runtime.jsx)(modal_submit, objectSpread2_default()({
@@ -30612,58 +30947,6 @@ CardComp.Footer = FooterComp;
30612
30947
  CardComp.Accordion = AccordionComp;
30613
30948
  CardComp.Submit = SubmitComp;
30614
30949
  /* harmony default export */ var src_card_0 = (CardComp);
30615
- ;// CONCATENATED MODULE: ../hooks/src/common/use-unmounted-ref/index.ts
30616
-
30617
- function useUnmountedRef() {
30618
- var unmountedRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(false);
30619
- (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
30620
- unmountedRef.current = false;
30621
- return function () {
30622
- unmountedRef.current = true;
30623
- };
30624
- }, []);
30625
- return unmountedRef;
30626
- }
30627
- /* harmony default export */ var use_unmounted_ref = ((/* unused pure expression or super */ null && (useUnmountedRef)));
30628
- ;// CONCATENATED MODULE: ../hooks/src/common/use-safe-state/index.ts
30629
-
30630
-
30631
-
30632
-
30633
- function useSafeState(initialState) {
30634
- var unmountedRef = useUnmountedRef();
30635
- var _useState = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(initialState),
30636
- _useState2 = slicedToArray_default()(_useState, 2),
30637
- state = _useState2[0],
30638
- setState = _useState2[1];
30639
- var setCurrentState = usePersistFn(function (currentState) {
30640
- if (!unmountedRef.current) {
30641
- setState(currentState);
30642
- }
30643
- });
30644
- return [state, setCurrentState];
30645
- }
30646
- /* harmony default export */ var use_safe_state = ((/* unused pure expression or super */ null && (useSafeState)));
30647
- ;// CONCATENATED MODULE: ../hooks/src/common/use-render/index.ts
30648
-
30649
-
30650
-
30651
-
30652
- function useRender(callback) {
30653
- var _useSafeState = useSafeState(undefined),
30654
- _useSafeState2 = slicedToArray_default()(_useSafeState, 2),
30655
- count = _useSafeState2[0],
30656
- setCount = _useSafeState2[1];
30657
- (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
30658
- if (callback && count !== undefined) callback();
30659
- }, [count]);
30660
- return usePersistFn(function () {
30661
- return setCount(function (count) {
30662
- return ((count || 0) + 1) % 1000000;
30663
- });
30664
- });
30665
- }
30666
- /* harmony default export */ var use_render = (useRender);
30667
30950
  ;// CONCATENATED MODULE: ../base/src/card-group/card-group-context.ts
30668
30951
  "use client";
30669
30952
 
@@ -32051,7 +32334,7 @@ var Popover = function Popover(props) {
32051
32334
  }
32052
32335
  };
32053
32336
  });
32054
- var noRender = !open && !context.rendered;
32337
+ var noRender = props.lazy && !open && !context.rendered;
32055
32338
  if (!targetRef.current || !children || noRender) {
32056
32339
  return /*#__PURE__*/(0,jsx_runtime.jsx)("noscript", {
32057
32340
  ref: function ref(el) {
@@ -32080,18 +32363,22 @@ var Popover = function Popover(props) {
32080
32363
  popupGap: 0,
32081
32364
  destroy: destroy,
32082
32365
  zIndex: zIndex,
32083
- children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", objectSpread2_default()(objectSpread2_default()({
32084
- className: classnames_default()(className, popoverStyle === null || popoverStyle === void 0 ? void 0 : popoverStyle.wrapper, open && (popoverStyle === null || popoverStyle === void 0 ? void 0 : popoverStyle.wrapperOpen)),
32366
+ adjust: props.adjust,
32367
+ lazy: props.lazy,
32368
+ children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", objectSpread2_default()(objectSpread2_default()(objectSpread2_default()({
32369
+ className: classnames_default()(className, popoverStyle === null || popoverStyle === void 0 ? void 0 : popoverStyle.wrapper, open && (popoverStyle === null || popoverStyle === void 0 ? void 0 : popoverStyle.wrapperOpen), !showArrow && (popoverStyle === null || popoverStyle === void 0 ? void 0 : popoverStyle.hideArrow)),
32085
32370
  style: colorStyle
32086
32371
  }, getDataAttribute({
32087
32372
  position: position,
32088
32373
  type: type
32089
- })), {}, {
32374
+ })), props.attributes), {}, {
32090
32375
  ref: popupRef,
32091
32376
  onMouseLeave: events.onMouseLeave,
32377
+ onMouseEnter: events.onMouseEnter,
32092
32378
  dir: config.direction,
32093
32379
  children: [showArrow && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
32094
- className: popoverStyle === null || popoverStyle === void 0 ? void 0 : popoverStyle.arrow
32380
+ className: classnames_default()(popoverStyle === null || popoverStyle === void 0 ? void 0 : popoverStyle.arrow, props.arrowClass),
32381
+ dir: config.direction
32095
32382
  }), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
32096
32383
  style: style,
32097
32384
  className: classnames_default()(popoverStyle === null || popoverStyle === void 0 ? void 0 : popoverStyle.content, (typeof childrened === 'string' || props.useTextStyle) && (popoverStyle === null || popoverStyle === void 0 ? void 0 : popoverStyle.text)),
@@ -32505,6 +32792,7 @@ var useInputCommon = function useInputCommon(props0) {
32505
32792
  if (!res) return null;
32506
32793
  var isError = res instanceof Error;
32507
32794
  var text = isError ? res.message : res;
32795
+ if (!isError && !focused) return null;
32508
32796
  return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
32509
32797
  style: {
32510
32798
  minWidth: 'auto'
@@ -32557,7 +32845,7 @@ var useInputCommon = function useInputCommon(props0) {
32557
32845
 
32558
32846
 
32559
32847
  var input_Input = function Input(props) {
32560
- var _ref, _commonProps$trim;
32848
+ var _ref, _commonProps$trim, _inputFormatProps$val;
32561
32849
  var commonProps = use_input_common(props);
32562
32850
  var config = useConfig();
32563
32851
  var inputFormatParams = {
@@ -32577,7 +32865,7 @@ var input_Input = function Input(props) {
32577
32865
  }, inputFormatParams));
32578
32866
  var forwardProps = removeProps(commonProps, objectSpread2_default()({}, inputFormatParams));
32579
32867
  return /*#__PURE__*/(0,jsx_runtime.jsx)(simple_input, objectSpread2_default()(objectSpread2_default()(objectSpread2_default()({}, forwardProps), inputFormatProps), {}, {
32580
- value: inputFormatProps.value || '',
32868
+ value: (_inputFormatProps$val = inputFormatProps.value) !== null && _inputFormatProps$val !== void 0 ? _inputFormatProps$val : '',
32581
32869
  hasSuffix: !!props.suffix
32582
32870
  }));
32583
32871
  };
@@ -34503,6 +34791,11 @@ var useFilter = function useFilter(props) {
34503
34791
 
34504
34792
 
34505
34793
 
34794
+ function use_tree_toArray(value) {
34795
+ if (!value) return [];
34796
+ if (!Array.isArray(value)) return [value];
34797
+ return value;
34798
+ }
34506
34799
  var MODE = {
34507
34800
  /**
34508
34801
  * 返回全选数据,包含父节点和子节点
@@ -34562,7 +34855,6 @@ var useTree = function useTree(props) {
34562
34855
  valueMap: new Map(),
34563
34856
  updateMap: new Map(),
34564
34857
  unmatchedValueMap: new Map(),
34565
- disabled: false,
34566
34858
  value: undefined,
34567
34859
  data: [],
34568
34860
  cachedValue: [],
@@ -34652,14 +34944,14 @@ var useTree = function useTree(props) {
34652
34944
  var getPath = function getPath(id) {
34653
34945
  return context.pathMap.get(id);
34654
34946
  };
34655
- var getDisabled = function getDisabled() {
34947
+ var getDisabled = usePersistFn(function () {
34656
34948
  if (isFunc(disabledProps)) {
34657
34949
  return disabledProps;
34658
34950
  }
34659
34951
  return function () {
34660
- return !!disabledProps;
34952
+ return false;
34661
34953
  };
34662
- };
34954
+ });
34663
34955
  var getChecked = function getChecked(id) {
34664
34956
  var value = get(id);
34665
34957
  var checked = value === 1;
@@ -34714,8 +35006,8 @@ var useTree = function useTree(props) {
34714
35006
  // 制作 data mapping
34715
35007
  context.dataMap.set(id, item);
34716
35008
  var _isDisabled = !!disabled;
34717
- if (_isDisabled === false && isFunc(context.disabled)) {
34718
- _isDisabled = context.disabled(item);
35009
+ if (_isDisabled === false) {
35010
+ _isDisabled = getDisabled()(item);
34719
35011
  }
34720
35012
  var indexPath = [].concat(toConsumableArray_default()(index), [i]);
34721
35013
  ids.push(id);
@@ -34790,16 +35082,19 @@ var useTree = function useTree(props) {
34790
35082
  return checked;
34791
35083
  };
34792
35084
  var setValue = function setValue(value) {
34793
- context.value = value;
34794
- if (value && value !== context.cachedValue) {
35085
+ context.value = use_tree_toArray(value);
35086
+ if (value !== context.cachedValue) {
34795
35087
  initValue();
34796
35088
  }
34797
35089
  setUnmatedValue();
34798
35090
  };
34799
35091
  var isDisabled = function isDisabled(id) {
34800
- var node = context.pathMap.get(id);
34801
- if (node) return node.isDisabled;
34802
- return false;
35092
+ if (isFunc(disabledProps)) {
35093
+ var node = context.pathMap.get(id);
35094
+ if (node) return node.isDisabled;
35095
+ return false;
35096
+ }
35097
+ return !!disabledProps;
34803
35098
  };
34804
35099
  var checkStatusStack = function checkStatusStack(stack, defaultStatus) {
34805
35100
  if (!stack || stack.length <= 0) return defaultStatus;
@@ -34819,10 +35114,9 @@ var useTree = function useTree(props) {
34819
35114
  context.dataMap = new Map();
34820
35115
  context.valueMap = new Map();
34821
35116
  context.unmatchedValueMap = new Map();
34822
- context.disabled = getDisabled();
34823
- context.data = data;
35117
+ context.data = use_tree_toArray(data);
34824
35118
  if (!data) return;
34825
- initData(data, []);
35119
+ initData(context.data, []);
34826
35120
  initValue();
34827
35121
  setValue(prevValue);
34828
35122
  };
@@ -35535,6 +35829,7 @@ var ResultInput = function ResultInput(props) {
35535
35829
  onChange: onChange,
35536
35830
  onBlur: handleBlur,
35537
35831
  open: focus,
35832
+ disabled: props.disabled,
35538
35833
  onPaste: handlePaste
35539
35834
  }), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
35540
35835
  className: styles.inputMirror,
@@ -35705,6 +36000,7 @@ var tag_excluded = ["jssStyle", "className", "type", "color", "size", "disabled"
35705
36000
 
35706
36001
 
35707
36002
 
36003
+
35708
36004
  var tag_Done = 2;
35709
36005
  var tag_Pendding = 1;
35710
36006
  var Tag = function Tag(props) {
@@ -35766,15 +36062,12 @@ var Tag = function Tag(props) {
35766
36062
  if (onClose) {
35767
36063
  return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
35768
36064
  className: classnames_default()(tagStyle.wrapper, inlineStyle && tagStyle.inline),
35769
- children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
35770
- className: tagStyle.container,
35771
- children: children
35772
- })
36065
+ children: wrapSpan(children)
35773
36066
  });
35774
36067
  }
35775
- return /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
36068
+ return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
35776
36069
  className: classnames_default()(tagStyle.wrapper, inlineStyle && tagStyle.inline),
35777
- children: children
36070
+ children: wrapSpan(children)
35778
36071
  });
35779
36072
  };
35780
36073
  var renderInput = function renderInput() {
@@ -35833,7 +36126,6 @@ Tag.Input = tag_input;
35833
36126
 
35834
36127
 
35835
36128
 
35836
-
35837
36129
  function getResetMore(onFilter, container, doms) {
35838
36130
  if (!container || !doms || !doms.length) return -1;
35839
36131
  var items = Array.from(doms);
@@ -35923,14 +36215,26 @@ var More = function More(props) {
35923
36215
  });
35924
36216
  itemsLength = after.length;
35925
36217
  }
35926
- if (after && after.length > 0) {
35927
- after = external_root_React_commonjs2_react_commonjs_react_amd_react_.Children.map(after, function (item) {
35928
- return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().cloneElement(item, objectSpread2_default()(objectSpread2_default()({}, item.props), {}, {
36218
+ if (showNum < 0 || showNum >= data.length) {
36219
+ return /*#__PURE__*/(0,jsx_runtime.jsxs)((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Fragment, {
36220
+ children: [data, /*#__PURE__*/(0,jsx_runtime.jsx)(base_src_tag_tag, {
36221
+ className: styles.tag,
36222
+ jssStyle: jssStyle,
36223
+ size: size,
35929
36224
  style: {
35930
- opcacity: 1
35931
- }
35932
- }));
35933
- }) || after;
36225
+ position: 'absolute',
36226
+ zIndex: -100,
36227
+ userSelect: 'none',
36228
+ msUserSelect: 'none',
36229
+ contain: 'layout'
36230
+ },
36231
+ mode: visible ? 'fill' : 'bright',
36232
+ color: visible ? 'info' : 'default',
36233
+ children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
36234
+ children: "+"
36235
+ })
36236
+ }, 'hidden')]
36237
+ });
35934
36238
  }
35935
36239
  return /*#__PURE__*/(0,jsx_runtime.jsxs)((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Fragment, {
35936
36240
  children: [shouldShowMore ? data : before, /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
@@ -36021,6 +36325,7 @@ var result_Result = function Result(props) {
36021
36325
  _useState4 = slicedToArray_default()(_useState3, 2),
36022
36326
  shouldResetMore = _useState4[0],
36023
36327
  setShouldResetMore = _useState4[1];
36328
+ var render = useRender();
36024
36329
  var resultRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
36025
36330
  var prevMore = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(more);
36026
36331
  var showInput = allowOnFilter;
@@ -36084,7 +36389,8 @@ var result_Result = function Result(props) {
36084
36389
  convertBr: convertBr,
36085
36390
  onInputBlur: onInputBlur,
36086
36391
  onClearCreatedData: onClearCreatedData,
36087
- placeholder: placeholder2
36392
+ placeholder: placeholder2,
36393
+ disabled: isFunc(disabled) ? false : !!disabled
36088
36394
  })
36089
36395
  }, 'input');
36090
36396
  };
@@ -36125,10 +36431,7 @@ var result_Result = function Result(props) {
36125
36431
  return /*#__PURE__*/(0,jsx_runtime.jsx)(base_src_tag_tag, objectSpread2_default()(objectSpread2_default()({
36126
36432
  disabled: isDisabled,
36127
36433
  size: size,
36128
- style: {
36129
- opacity: more === index ? 0 : 1
36130
- },
36131
- className: classnames_default()(styles.tag, resultClassName),
36434
+ className: classnames_default()(styles.tag, more === 1 && styles.tagOnly, resultClassName),
36132
36435
  closable: closeable && 'only',
36133
36436
  onClose: closeable && handleClose,
36134
36437
  onClick: handleClick,
@@ -36246,11 +36549,15 @@ var result_Result = function Result(props) {
36246
36549
  }
36247
36550
  mounted.current = true;
36248
36551
  }, [focus]);
36249
- (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
36552
+ (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useLayoutEffect)(function () {
36250
36553
  handleResetMore();
36251
36554
  }, [valueProp, data]);
36252
36555
  (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useLayoutEffect)(function () {
36253
- if (shouldResetMore && more === -1 && compressed && resultRef.current && (props.value || [].length)) {
36556
+ // datum.getDataByValues(value); 需要等待 useTree useEffect 执行完毕 才能获取到
36557
+ render();
36558
+ }, [data]);
36559
+ (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useLayoutEffect)(function () {
36560
+ if (shouldResetMore && more === -1 && compressed && resultRef.current && (props.value || []).length) {
36254
36561
  var tagClassName = ".".concat(styles.tag.split(' ')[0]);
36255
36562
  if (shouldResetMore && result_isArray(value) && (value || []).length) {
36256
36563
  var newMore = getResetMore(showInput, resultRef.current, resultRef.current.querySelectorAll(tagClassName));
@@ -36260,7 +36567,7 @@ var result_Result = function Result(props) {
36260
36567
  } else {
36261
36568
  setShouldResetMore(false);
36262
36569
  }
36263
- } else {
36570
+ } else if (shouldResetMore) {
36264
36571
  setShouldResetMore(false);
36265
36572
  }
36266
36573
  }, [shouldResetMore]);
@@ -36936,10 +37243,20 @@ var useFormFunc = function useFormFunc() {
36936
37243
  ;// CONCATENATED MODULE: ../hooks/src/components/use-form/use-form-flow/use-form-datum.tsx
36937
37244
 
36938
37245
 
37246
+
37247
+
37248
+
36939
37249
  var useFormDatum = function useFormDatum() {
36940
37250
  var formFunc = useFormFunc();
37251
+ var set = usePersistFn(function (vals, value) {
37252
+ if (typeof_default()(vals) === 'object') {
37253
+ formFunc === null || formFunc === void 0 || formFunc.setValue(vals);
37254
+ } else {
37255
+ formFunc === null || formFunc === void 0 || formFunc.setValue(defineProperty_default()({}, vals, value));
37256
+ }
37257
+ });
36941
37258
  var func = use_latest_obj({
36942
- set: formFunc === null || formFunc === void 0 ? void 0 : formFunc.setValue,
37259
+ set: set,
36943
37260
  get: formFunc === null || formFunc === void 0 ? void 0 : formFunc.getValue
36944
37261
  });
36945
37262
  var datum = formFunc ? func : undefined;
@@ -37175,6 +37492,7 @@ function wrapFormError(error) {
37175
37492
 
37176
37493
 
37177
37494
 
37495
+
37178
37496
  function getRule(rule, props) {
37179
37497
  var po = props;
37180
37498
  var rulePo = rule;
@@ -37196,7 +37514,7 @@ function getRule(rule, props) {
37196
37514
  max: max,
37197
37515
  args: args
37198
37516
  });
37199
- po.message = typeof message === 'function' ? message(po) : message;
37517
+ po.message = typeof message === 'function' ? message(po) : substitute(message, po);
37200
37518
  var cb = function cb() {};
37201
37519
  if (func) {
37202
37520
  cb = function cb(value, formData, callback) {
@@ -40180,7 +40498,8 @@ var TimeScroll = function TimeScroll(props) {
40180
40498
  var elRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
40181
40499
  var _useRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)({
40182
40500
  timer: null,
40183
- changeTimer: null
40501
+ changeTimer: null,
40502
+ controlScroll: false
40184
40503
  }),
40185
40504
  context = _useRef.current;
40186
40505
  var _useResize = useResize({
@@ -40193,11 +40512,12 @@ var TimeScroll = function TimeScroll(props) {
40193
40512
  var el = elRef.current;
40194
40513
  if (!el) return;
40195
40514
  var lineHeight = el.childNodes[0].clientHeight;
40515
+ context.controlScroll = true;
40196
40516
  el.scrollTop = lineHeight * index;
40197
40517
  }, immudiate ? 0 : 30);
40198
40518
  };
40199
40519
  var changeToIndex = function changeToIndex(index) {
40200
- if (!times[index] || times[index].disabled || index === currentIndex) {
40520
+ if (!times[index] || times[index].disabled || index === currentIndex && !props.isEmpty) {
40201
40521
  return;
40202
40522
  }
40203
40523
  onChange(times[index].date);
@@ -40205,6 +40525,10 @@ var TimeScroll = function TimeScroll(props) {
40205
40525
  var handleScroll = function handleScroll(e) {
40206
40526
  if (context.changeTimer) clearTimeout(context.changeTimer);
40207
40527
  var el = e.currentTarget;
40528
+ if (context.controlScroll) {
40529
+ context.controlScroll = false;
40530
+ return;
40531
+ }
40208
40532
  context.changeTimer = setTimeout(function () {
40209
40533
  if (!el) return;
40210
40534
  var lineHeight = el.childNodes[0].clientHeight;
@@ -40305,6 +40629,7 @@ var Time = function Time(props) {
40305
40629
  jssStyle: props.jssStyle,
40306
40630
  times: item.times,
40307
40631
  currentIndex: item.currentIndex,
40632
+ isEmpty: props.value === null || props.value === undefined,
40308
40633
  onChange: func.handleChange
40309
40634
  }, item.mode);
40310
40635
  })
@@ -42544,10 +42869,9 @@ var Modal = function Modal(props) {
42544
42869
  return function () {
42545
42870
  var _props$shouldDestroy2;
42546
42871
  (_props$shouldDestroy2 = props.shouldDestroy) === null || _props$shouldDestroy2 === void 0 || _props$shouldDestroy2.call(props, true);
42547
- if (props.autoShow) {
42548
- var _props$onClose2;
42549
- (_props$onClose2 = props.onClose) === null || _props$onClose2 === void 0 || _props$onClose2.call(props);
42550
- }
42872
+ // if (props.autoShow) {
42873
+ // props.onClose?.();
42874
+ // }
42551
42875
  if (context.isMask) {
42552
42876
  context.isMask = false;
42553
42877
  hasMask = false;
@@ -42571,8 +42895,9 @@ var Modal = function Modal(props) {
42571
42895
  };
42572
42896
  var renderHeader = function renderHeader() {
42573
42897
  var showCloseIcon = maskCloseAble === null || !!maskCloseAble;
42898
+ var isEmptyTitle = !props.title && props.title !== 0;
42574
42899
  return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
42575
- className: modalClasses === null || modalClasses === void 0 ? void 0 : modalClasses.header,
42900
+ className: classnames_default()(modalClasses === null || modalClasses === void 0 ? void 0 : modalClasses.header, isEmptyTitle && (modalClasses === null || modalClasses === void 0 ? void 0 : modalClasses.headerEmptyTitle)),
42576
42901
  onMouseDown: props.moveable ? moveInfo.handleMouseDown : undefined,
42577
42902
  children: [renderIcon(), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
42578
42903
  className: modalClasses === null || modalClasses === void 0 ? void 0 : modalClasses.headerTitle,
@@ -42779,6 +43104,7 @@ var method = function method(type, jssStyle) {
42779
43104
  children: options.content || options.children
42780
43105
  }));
42781
43106
  ReactRender(Content, root);
43107
+ return destroyModal;
42782
43108
  };
42783
43109
  };
42784
43110
  /* harmony default export */ var modal_func = ({
@@ -42797,19 +43123,34 @@ var modal_Modal = function Modal(props) {
42797
43123
  var _useContainer = use_container({
42798
43124
  container: props.container
42799
43125
  }),
42800
- getRoot = _useContainer.getRoot;
43126
+ getRoot = _useContainer.getRoot,
43127
+ unMount = _useContainer.unMount;
42801
43128
  var _useState = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(true),
42802
43129
  _useState2 = slicedToArray_default()(_useState, 2),
42803
43130
  canDestroy = _useState2[0],
42804
43131
  seCanDestroy = _useState2[1];
42805
- var root = getRoot();
42806
- if (props.destroy && !props.visible && canDestroy) {
43132
+ var _useRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)({
43133
+ rendered: false
43134
+ }),
43135
+ context = _useRef.current;
43136
+ var destroyed = props.destroy && !props.visible && canDestroy;
43137
+ (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
43138
+ if (destroyed) {
43139
+ unMount();
43140
+ }
43141
+ }, [destroyed]);
43142
+ if (destroyed) {
43143
+ return null;
43144
+ }
43145
+ if (!context.rendered && !props.visible) {
42807
43146
  return null;
42808
43147
  }
43148
+ context.rendered = true;
42809
43149
  var Content = /*#__PURE__*/(0,jsx_runtime.jsx)(modal_content, objectSpread2_default()(objectSpread2_default()({}, props), {}, {
42810
43150
  shouldDestroy: seCanDestroy,
42811
43151
  autoShow: false
42812
43152
  }));
43153
+ var root = getRoot();
42813
43154
  if (!root) return null;
42814
43155
  return /*#__PURE__*/external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_default().createPortal(Content, root);
42815
43156
  };
@@ -43566,6 +43907,7 @@ var textarea_Textarea = function Textarea(props0) {
43566
43907
  if (!res) return null;
43567
43908
  var isError = res instanceof Error;
43568
43909
  var text = isError ? res.message : res;
43910
+ if (!isError && !focused) return null;
43569
43911
  return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
43570
43912
  style: {
43571
43913
  minWidth: 'auto'
@@ -44092,7 +44434,7 @@ var useForm = function useForm(props) {
44092
44434
  removeArr: new Set(),
44093
44435
  names: new Set(),
44094
44436
  submitLock: false,
44095
- value: props.value || emptyObj,
44437
+ value: deepClone(props.value) || emptyObj,
44096
44438
  errors: {},
44097
44439
  serverErrors: {},
44098
44440
  lastValue: props.value || emptyObj,
@@ -44419,6 +44761,13 @@ var useForm = function useForm(props) {
44419
44761
  size: size
44420
44762
  };
44421
44763
  }, [labelWidth, labelAlign, labelVerticalAlign, keepErrorHeight, inline, disabled, size]);
44764
+ var updateValue = function updateValue() {
44765
+ if (props.value !== context.lastValue && props.value !== context.value) {
44766
+ context.value = deepClone(props.value) || emptyObj;
44767
+ context.lastValue = props.value;
44768
+ }
44769
+ };
44770
+ updateValue();
44422
44771
  external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect(function () {
44423
44772
  // 服务端错误更新
44424
44773
  if (!props.error) context.serverErrors = {};else {
@@ -44435,8 +44784,8 @@ var useForm = function useForm(props) {
44435
44784
  // 默认值更新
44436
44785
  external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect(function () {
44437
44786
  context.removeLock = false;
44438
- if (props.value === context.lastValue) return;
44439
- context.value = deepClone(props.value) || emptyObj;
44787
+ // 内部 onChange 改的 value, 不需要更新
44788
+ if (props.value === context.value) return;
44440
44789
  if (initValidate && !context.resetTime) {
44441
44790
  var keys = Object.keys(context.validateMap).filter(function (key) {
44442
44791
  var oldValue = deepGet(context.lastValue || emptyObj, key);
@@ -44663,9 +45012,9 @@ var form_item_excluded = ["children", "jssStyle", "className", "style", "label",
44663
45012
  style: style,
44664
45013
  children: [label !== undefined ? /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
44665
45014
  className: classnames_default()(formItemClasses === null || formItemClasses === void 0 ? void 0 : formItemClasses.label, labelAlign === 'left' && (formItemClasses === null || formItemClasses === void 0 ? void 0 : formItemClasses.labelLeft)),
44666
- style: {
45015
+ style: labelAlign !== 'top' || inline ? {
44667
45016
  width: labelWidth
44668
- },
45017
+ } : undefined,
44669
45018
  children: label
44670
45019
  }) : null, /*#__PURE__*/(0,jsx_runtime.jsxs)("div", objectSpread2_default()(objectSpread2_default()({
44671
45020
  className: formItemClasses === null || formItemClasses === void 0 ? void 0 : formItemClasses.control
@@ -45022,7 +45371,7 @@ var Gap = function Gap(props) {
45022
45371
  marginBottom: -Number(row),
45023
45372
  marginRight: -Number(column)
45024
45373
  };
45025
- var itemStyle = supportFlexGap ? undefined : objectSpread2_default()(objectSpread2_default()({}, itemStyleProps), {}, {
45374
+ var itemStyle = supportFlexGap ? itemStyleProps : objectSpread2_default()(objectSpread2_default()({}, itemStyleProps), {}, {
45026
45375
  marginBottom: row,
45027
45376
  marginRight: column
45028
45377
  });
@@ -45074,13 +45423,9 @@ function util_createStyle(text, id) {
45074
45423
  if (!is_isBrowser()) {
45075
45424
  return;
45076
45425
  }
45077
- var style = document.head.querySelector("#".concat(id));
45078
- if (style) {
45079
- return;
45080
- }
45081
- style = document.createElement('style');
45426
+ var style = document.createElement('style');
45082
45427
  style.type = 'text/css';
45083
- style.id = id;
45428
+ style.setAttribute('data-id', id);
45084
45429
  style.innerHTML = text;
45085
45430
  document.head.appendChild(style);
45086
45431
  }
@@ -46423,7 +46768,9 @@ var input_input_Input = function Input(props) {
46423
46768
  });
46424
46769
  var _useWithFormConfig = use_with_form_config(props),
46425
46770
  size = _useWithFormConfig.size,
46426
- disabled = _useWithFormConfig.disabled;
46771
+ disabled = _useWithFormConfig.disabled,
46772
+ status = _useWithFormConfig.status,
46773
+ error = _useWithFormConfig.error;
46427
46774
  var getProps = function getProps(child) {
46428
46775
  ref.current.propsMap.set(child, {
46429
46776
  onFocus: child.props.onFocus,
@@ -46455,7 +46802,7 @@ var input_input_Input = function Input(props) {
46455
46802
  className = props.className,
46456
46803
  width = props.width,
46457
46804
  style = props.style;
46458
- var rootClass = classnames_default()(className, inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.group, size === 'small' && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.groupSmall), size === 'large' && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.groupLarge), !!disabled && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.groupDisabled), !!focus && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.groupFocus));
46805
+ var rootClass = classnames_default()(className, inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.group, size === 'small' && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.groupSmall), size === 'large' && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.groupLarge), !!disabled && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.groupDisabled), !!focus && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.groupFocus), (status === 'error' || error) && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.groupError));
46459
46806
  return /*#__PURE__*/(0,jsx_runtime.jsx)("div", objectSpread2_default()(objectSpread2_default()({}, getDataAttribute({
46460
46807
  role: 'input-group'
46461
46808
  })), {}, {
@@ -46739,7 +47086,7 @@ var useNumberFormat = function useNumberFormat(props) {
46739
47086
  ;// CONCATENATED MODULE: ../base/src/input/input-number.tsx
46740
47087
 
46741
47088
 
46742
- var input_number_excluded = ["jssStyle"],
47089
+ var input_number_excluded = ["jssStyle", "hideArrow"],
46743
47090
  input_number_excluded2 = ["onMinus", "onPlus"];
46744
47091
 
46745
47092
 
@@ -46753,6 +47100,7 @@ var InputNumber = function InputNumber(props) {
46753
47100
  var _jssStyle$input;
46754
47101
  var commonProps = use_input_common(props);
46755
47102
  var jssStyle = commonProps.jssStyle,
47103
+ hideArrow = commonProps.hideArrow,
46756
47104
  restProps = objectWithoutProperties_default()(commonProps, input_number_excluded);
46757
47105
  var inputStyle = jssStyle === null || jssStyle === void 0 || (_jssStyle$input = jssStyle.input) === null || _jssStyle$input === void 0 ? void 0 : _jssStyle$input.call(jssStyle);
46758
47106
  var numberFormatParams = {
@@ -46775,7 +47123,7 @@ var InputNumber = function InputNumber(props) {
46775
47123
  onPlus = _useInputNumber.onPlus,
46776
47124
  numberFormatProps = objectWithoutProperties_default()(_useInputNumber, input_number_excluded2);
46777
47125
  var forwardProps = removeProps(commonProps, objectSpread2_default()({}, numberFormatParams));
46778
- var addEnd = props.hideArrow ? null : /*#__PURE__*/(0,jsx_runtime.jsx)((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Fragment, {
47126
+ var addEnd = hideArrow ? null : /*#__PURE__*/(0,jsx_runtime.jsx)((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Fragment, {
46779
47127
  children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
46780
47128
  className: inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.numberStep,
46781
47129
  children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
@@ -46825,7 +47173,8 @@ var InputNumber = function InputNumber(props) {
46825
47173
 
46826
47174
  var number_jssStyle = {
46827
47175
  input: useInputStyle,
46828
- innerTitle: useInnerTitleStyle
47176
+ innerTitle: useInnerTitleStyle,
47177
+ popover: usePopoverStyle
46829
47178
  };
46830
47179
  var number_InputNumber = function InputNumber(props) {
46831
47180
  return /*#__PURE__*/(0,jsx_runtime.jsx)(input_number, objectSpread2_default()(objectSpread2_default()({}, props), {}, {
@@ -46934,11 +47283,15 @@ var Scroll = function Scroll(props) {
46934
47283
  height: '100%',
46935
47284
  width: '100%',
46936
47285
  display: 'inline-flex',
47286
+ overflow: 'hidden',
46937
47287
  position: 'sticky'
46938
47288
  }, isRtl ? 'right' : 'left', 0), "top", 0);
46939
- var placeStyle = defineProperty_default()(defineProperty_default()(defineProperty_default()(defineProperty_default()({
46940
- marginTop: Math.max(0, Math.floor(scrollHeight - height))
46941
- }, "margin".concat(isRtl ? 'Left' : 'Right'), scrollWidth), "height", 0), "width", 0), "overflow", 'hidden');
47289
+ var placeStyle = {
47290
+ paddingTop: height > 0 && scrollHeight > 0 ? Math.max(0, Math.floor(scrollHeight - height)) : 0,
47291
+ width: scrollWidth,
47292
+ overflow: 'hidden',
47293
+ lineHeight: 0
47294
+ };
46942
47295
  var handleScroll = usePersistFn(function (e) {
46943
47296
  var target = e.currentTarget;
46944
47297
  var scrollLeft = target.scrollLeft,
@@ -46989,9 +47342,9 @@ var Scroll = function Scroll(props) {
46989
47342
  style: containerStyle,
46990
47343
  ref: containerRef,
46991
47344
  children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
46992
- style: {
47345
+ style: objectSpread2_default()({
46993
47346
  flexGrow: 1
46994
- },
47347
+ }, props.childrenStyle),
46995
47348
  children: props.children
46996
47349
  })
46997
47350
  })), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
@@ -47077,6 +47430,9 @@ var VirtualList = function VirtualList(props) {
47077
47430
  scrollWidth: 0,
47078
47431
  scrollHeight: scrollHeight,
47079
47432
  wrapperRef: wrapperRef,
47433
+ childrenStyle: {
47434
+ width: '100%'
47435
+ },
47080
47436
  onScroll: handleScroll,
47081
47437
  onMouseMove: handleMouseMove,
47082
47438
  children: /*#__PURE__*/(0,jsx_runtime.jsx)(Tag, {
@@ -47674,7 +48030,8 @@ var NodeContent = function NodeContent(props) {
47674
48030
  var contentStyle = (jssStyle === null || jssStyle === void 0 ? void 0 : jssStyle.tree()) || {};
47675
48031
  var rootClass = classnames_default()(contentStyle.contentWrapper, defineProperty_default()(defineProperty_default()({}, contentStyle.childnode, data[childrenKey] && data[childrenKey].length > 0), contentStyle.inlineContent, inlineNode));
47676
48032
  var contentClass = classnames_default()(contentStyle.content, isString(contentClassProp) && contentClassProp, isFunc(contentClassProp) && contentClassProp(data));
47677
- var textClass = classnames_default()(contentStyle.text, disabled ? contentStyle.textDisabled : '');
48033
+ // const textClass = classNames(contentStyle.text, disabled ? contentStyle.textDisabled : '');
48034
+ var textClass = classnames_default()(contentStyle.text);
47678
48035
  var hasExpandIcons = expandIcons !== undefined;
47679
48036
  var children = data[childrenKey];
47680
48037
  var hasChildren = children && children.length > 0;
@@ -47683,9 +48040,9 @@ var NodeContent = function NodeContent(props) {
47683
48040
  if (highlight) {
47684
48041
  dataProps['data-active'] = active;
47685
48042
  }
47686
- if (disabled) {
47687
- dataProps['data-disabled'] = disabled;
47688
- }
48043
+ // if (disabled) {
48044
+ // dataProps['data-disabled'] = disabled;
48045
+ // }
47689
48046
  return dataProps;
47690
48047
  };
47691
48048
  var handleIndicatorClick = function handleIndicatorClick() {
@@ -47702,7 +48059,7 @@ var NodeContent = function NodeContent(props) {
47702
48059
  }
47703
48060
  };
47704
48061
  var handleNodeClick = function handleNodeClick() {
47705
- if (disabled) return;
48062
+ // if (disabled) return;
47706
48063
  if (parentClickExpand && hasChildren) {
47707
48064
  handleIndicatorClick();
47708
48065
  } else {
@@ -47789,6 +48146,7 @@ var NodeContent = function NodeContent(props) {
47789
48146
  dir: config.direction,
47790
48147
  children: [renderIndicator(), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", objectSpread2_default()(objectSpread2_default()(objectSpread2_default()({
47791
48148
  dir: config.direction,
48149
+ "data-expanded": expanded,
47792
48150
  ref: bindContent,
47793
48151
  className: contentClass
47794
48152
  }, contentDataProps()), contentEvent), {}, {
@@ -48088,6 +48446,10 @@ var Node = function Node(props) {
48088
48446
  onChange: onChange,
48089
48447
  onToggle: onToggle,
48090
48448
  onNodeClick: onNodeClick,
48449
+ onDragOver: onDragOver,
48450
+ onDragLeave: onDragLeave,
48451
+ onDragStart: onDragStart,
48452
+ onDragEnd: onDragEnd,
48091
48453
  bindNode: bindNode,
48092
48454
  childrenClassName: childrenClass(data),
48093
48455
  childrenKey: childrenKey,
@@ -48342,6 +48704,10 @@ var Tree = function Tree(props) {
48342
48704
  onDragStart = props.onDragStart,
48343
48705
  propsDatum = props.datum,
48344
48706
  rest = objectWithoutProperties_default()(props, tree_excluded);
48707
+ var _useRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)({
48708
+ mounted: false
48709
+ }),
48710
+ context = _useRef.current;
48345
48711
  var _useTree = use_tree({
48346
48712
  mode: mode,
48347
48713
  value: value,
@@ -48457,6 +48823,11 @@ var Tree = function Tree(props) {
48457
48823
  }
48458
48824
  };
48459
48825
  (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
48826
+ // 首次渲染不更新
48827
+ if (!context.mounted) {
48828
+ return;
48829
+ }
48830
+ if (!props.expanded) return;
48460
48831
  handleUpdateExpanded(expanded);
48461
48832
  }, [expanded]);
48462
48833
  (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
@@ -48465,6 +48836,7 @@ var Tree = function Tree(props) {
48465
48836
  }, [active]);
48466
48837
  (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
48467
48838
  if (getDatum) getDatum(datum);
48839
+ context.mounted = true;
48468
48840
  }, []);
48469
48841
  return /*#__PURE__*/(0,jsx_runtime.jsx)("div", objectSpread2_default()(objectSpread2_default()({
48470
48842
  className: rootClass
@@ -49129,16 +49501,6 @@ function Select(props0) {
49129
49501
  }),
49130
49502
  groupData = _useGroup.data,
49131
49503
  groupKey = _useGroup.groupKey;
49132
-
49133
- // const triggerOpen = usePersistFn(() => {
49134
- // if (disabled === true) return;
49135
- // if (open) {
49136
- // closePop();
49137
- // } else {
49138
- // openPop();
49139
- // }
49140
- // });
49141
-
49142
49504
  var focusAndOpen = function focusAndOpen() {
49143
49505
  if (!focused) {
49144
49506
  var _inputRef$current2;
@@ -49546,7 +49908,7 @@ function Select(props0) {
49546
49908
  children: [tipNode, renderResult(), /*#__PURE__*/(0,jsx_runtime.jsx)(absolute_list, {
49547
49909
  adjust: adjust,
49548
49910
  focus: open,
49549
- fixedWidth: autoAdapt ? 'min' : true,
49911
+ fixedWidth: !props.columns && (autoAdapt ? 'min' : true),
49550
49912
  absolute: props.absolute,
49551
49913
  zIndex: props.zIndex,
49552
49914
  position: position,
@@ -50638,7 +51000,8 @@ var useMenu = function useMenu(props) {
50638
51000
  var _useRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)({
50639
51001
  updateMap: new Map(),
50640
51002
  activeId: '',
50641
- cachedOpenKeys: props.openKeys || []
51003
+ cachedOpenKeys: props.openKeys || [],
51004
+ updateTimer: 0
50642
51005
  }),
50643
51006
  context = _useRef.current;
50644
51007
  var render = use_render();
@@ -50693,14 +51056,23 @@ var useMenu = function useMenu(props) {
50693
51056
  updateItem(getStatus);
50694
51057
  });
50695
51058
  });
51059
+ var updateWithThreshold = use_persist_fn(function () {
51060
+ if (context.updateTimer) clearTimeout(context.updateTimer);
51061
+ context.updateTimer = window.setTimeout(function () {
51062
+ update();
51063
+ // 需要更新两次 否则 inPath 状态错误
51064
+ update();
51065
+ }, 50);
51066
+ });
50696
51067
  var bindUpdate = function bindUpdate(id, updateItem) {
50697
51068
  context.updateMap.set(id, updateItem);
51069
+ updateWithThreshold();
50698
51070
  };
50699
51071
  var unbindUpdate = function unbindUpdate(id) {
50700
51072
  context.updateMap.delete(id);
50701
51073
  };
50702
51074
  (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
50703
- update();
51075
+ updateWithThreshold();
50704
51076
  });
50705
51077
  return {
50706
51078
  openKeys: value,
@@ -50719,15 +51091,13 @@ var useMenu = function useMenu(props) {
50719
51091
  var useMenuItem = function useMenuItem(props) {
50720
51092
  var _useRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)({
50721
51093
  id: '',
50722
- timer: null,
50723
- isUp: false
51094
+ timer: null
50724
51095
  }),
50725
51096
  context = _useRef.current;
50726
51097
  var _props$parentId = props.parentId,
50727
51098
  parentId = _props$parentId === void 0 ? '' : _props$parentId,
50728
- dataItem = props.dataItem,
50729
- _props$toggleDuration = props.toggleDuration,
50730
- toggleDuration = _props$toggleDuration === void 0 ? 200 : _props$toggleDuration;
51099
+ dataItem = props.dataItem;
51100
+ var isLeaf = ((dataItem || {}).children || []).length === 0;
50731
51101
  if (!context.id) {
50732
51102
  context.id = "".concat(parentId, ",").concat(getUidStr());
50733
51103
  }
@@ -50742,6 +51112,10 @@ var useMenuItem = function useMenuItem(props) {
50742
51112
  _useState4 = slicedToArray_default()(_useState3, 2),
50743
51113
  isInPath = _useState4[0],
50744
51114
  setInPath = _useState4[1];
51115
+ var _useState5 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(false),
51116
+ _useState6 = slicedToArray_default()(_useState5, 2),
51117
+ isUp = _useState6[0],
51118
+ setIsUp = _useState6[1];
50745
51119
  var update = use_persist_fn(function (getStatus) {
50746
51120
  var status = getStatus(context.id, props.dataItem);
50747
51121
  if (isChecked !== status.isChecked) {
@@ -50774,8 +51148,11 @@ var useMenuItem = function useMenuItem(props) {
50774
51148
  props.onClick(dataItem);
50775
51149
  }
50776
51150
  }
50777
- var isLeaf = ((dataItem || {}).children || []).length === 0;
50778
- if (!isLeaf) e.nativeEvent.stopImmediatePropagation();
51151
+ // 阻止冒泡
51152
+ if (!isLeaf) {
51153
+ e.stopPropagation();
51154
+ e.nativeEvent.stopImmediatePropagation();
51155
+ }
50779
51156
  });
50780
51157
  var handleExpandClick = use_persist_fn(function (e) {
50781
51158
  e.stopPropagation();
@@ -50792,29 +51169,29 @@ var useMenuItem = function useMenuItem(props) {
50792
51169
  }
50793
51170
  });
50794
51171
  var handleMouseLeave = use_persist_fn(function () {
50795
- if (expandAble && props.mode !== 'inline') {
50796
- if (context.timer) {
50797
- clearTimeout(context.timer);
50798
- context.timer = null;
50799
- }
50800
- context.timer = setTimeout(function () {
50801
- props.onOpenChange(function (before) {
50802
- var openKeySet = new Set(before);
50803
- openKeySet.delete(props.keyResult);
50804
- return Array.from(openKeySet);
50805
- });
50806
- }, toggleDuration);
50807
- document.removeEventListener('click', handleMouseLeave);
50808
- }
51172
+ // if (expandAble && props.mode !== 'inline') {
51173
+ // if (context.timer) {
51174
+ // clearTimeout(context.timer);
51175
+ // context.timer = null;
51176
+ // }
51177
+ // context.timer = setTimeout(() => {
51178
+ // props.onOpenChange((before) => {
51179
+ // const openKeySet = new Set(before);
51180
+ // openKeySet.delete(props.keyResult);
51181
+ // return Array.from(openKeySet);
51182
+ // });
51183
+ // }, toggleDuration);
51184
+ // document.removeEventListener('click', handleMouseLeave);
51185
+ // }
50809
51186
  });
50810
51187
  var handleMouseEnter = use_persist_fn(function (e) {
50811
51188
  if (expandAble && props.mode !== 'inline') {
50812
51189
  var _props$scrollRef;
50813
- if (context.timer) {
50814
- clearTimeout(context.timer);
50815
- context.timer = null;
50816
- }
50817
- var isUp = false;
51190
+ // if (context.timer) {
51191
+ // clearTimeout(context.timer);
51192
+ // context.timer = null;
51193
+ // }
51194
+ var up = false;
50818
51195
  if (props.mode === 'vertical-auto' && (_props$scrollRef = props.scrollRef) !== null && _props$scrollRef !== void 0 && _props$scrollRef.current) {
50819
51196
  var _props$scrollRef$curr;
50820
51197
  var target = e.currentTarget;
@@ -50822,15 +51199,17 @@ var useMenuItem = function useMenuItem(props) {
50822
51199
  var scrollRect = (_props$scrollRef$curr = props.scrollRef.current) === null || _props$scrollRef$curr === void 0 ? void 0 : _props$scrollRef$curr.getBoundingClientRect();
50823
51200
  var topLine = scrollRect === null || scrollRect === void 0 ? void 0 : scrollRect.top;
50824
51201
  var bottomLine = scrollRect === null || scrollRect === void 0 ? void 0 : scrollRect.bottom;
50825
- isUp = rect.bottom - topLine > (bottomLine - topLine) / 2;
51202
+ up = rect.bottom - topLine > (bottomLine - topLine) / 2;
50826
51203
  }
50827
- context.isUp = isUp;
50828
- props.onOpenChange(function (before) {
50829
- var openKeySet = new Set(before);
50830
- openKeySet.add(props.keyResult);
50831
- return Array.from(openKeySet);
50832
- });
50833
- document.addEventListener('click', handleMouseLeave);
51204
+ if (isUp !== up) {
51205
+ setIsUp(up);
51206
+ }
51207
+ // props.onOpenChange((before) => {
51208
+ // const openKeySet = new Set(before);
51209
+ // openKeySet.add(props.keyResult);
51210
+ // return Array.from(openKeySet);
51211
+ // });
51212
+ // document.addEventListener('click', handleMouseLeave);
50834
51213
  }
50835
51214
  });
50836
51215
  (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
@@ -50846,11 +51225,12 @@ var useMenuItem = function useMenuItem(props) {
50846
51225
  isOpen: gopenKeySet.has(props.keyResult),
50847
51226
  isDisabled: isDisabled,
50848
51227
  expandAble: expandAble,
50849
- isUp: context.isUp,
51228
+ isUp: isUp,
50850
51229
  handleItemClick: handleItemClick,
50851
51230
  handleMouseEnter: handleMouseEnter,
50852
51231
  handleMouseLeave: handleMouseLeave,
50853
- handleExpandClick: handleExpandClick
51232
+ handleExpandClick: handleExpandClick,
51233
+ isLeaf: isLeaf
50854
51234
  };
50855
51235
  };
50856
51236
  /* harmony default export */ var use_menu_item = (useMenuItem);
@@ -50864,21 +51244,37 @@ var useMenuItem = function useMenuItem(props) {
50864
51244
 
50865
51245
 
50866
51246
 
51247
+
51248
+
51249
+
50867
51250
  var MenuItem = function MenuItem(props) {
50868
51251
  var _props$jssStyle, _props$jssStyle$menu;
50869
51252
  var classes = (_props$jssStyle = props.jssStyle) === null || _props$jssStyle === void 0 || (_props$jssStyle$menu = _props$jssStyle.menu) === null || _props$jssStyle$menu === void 0 ? void 0 : _props$jssStyle$menu.call(_props$jssStyle);
50870
51253
  var children = props.dataItem.children || [];
50871
- var itemContentRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
50872
- var timer = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
50873
51254
  var _props$inlineIndent = props.inlineIndent,
50874
51255
  inlineIndent = _props$inlineIndent === void 0 ? 24 : _props$inlineIndent,
50875
51256
  _props$frontCaretType = props.frontCaretType,
50876
51257
  frontCaretType = _props$frontCaretType === void 0 ? 'solid' : _props$frontCaretType,
50877
- collapse = props.collapse;
51258
+ mode = props.mode,
51259
+ _props$toggleDuration = props.toggleDuration,
51260
+ toggleDuration = _props$toggleDuration === void 0 ? 50 : _props$toggleDuration;
50878
51261
  var config = useConfig();
51262
+ var shoudPop = mode === 'vertical' || mode === 'vertical-auto' || mode === 'horizontal';
51263
+ var isVertical = mode === 'vertical' || mode === 'vertical-auto';
51264
+ var isSubHorizontal = mode === 'horizontal' && props.level > 0;
51265
+ var isRootHorizontal = mode === 'horizontal' && props.level === 0;
51266
+ var _useState = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(false),
51267
+ _useState2 = slicedToArray_default()(_useState, 2),
51268
+ popOpen = _useState2[0],
51269
+ setOpen = _useState2[1];
50879
51270
  var hasExpandAbleChildren = children.some(function (item) {
50880
51271
  return item && item.children && (props.looseChildren || item.children.length);
50881
51272
  });
51273
+ var handleVisibleChange = usePersistFn(function (visible) {
51274
+ if (isRootHorizontal) {
51275
+ setOpen(visible);
51276
+ }
51277
+ });
50882
51278
  var _useMenuItem = use_menu_item({
50883
51279
  dataItem: props.dataItem,
50884
51280
  keyResult: props.keyResult,
@@ -50891,7 +51287,6 @@ var MenuItem = function MenuItem(props) {
50891
51287
  parentId: props.parentId,
50892
51288
  looseChildren: props.looseChildren,
50893
51289
  parentSelectable: props.parentSelectable,
50894
- toggleDuration: props.toggleDuration,
50895
51290
  disabled: props.disabled,
50896
51291
  mode: props.mode,
50897
51292
  scrollRef: props.scrollRef
@@ -50907,41 +51302,109 @@ var MenuItem = function MenuItem(props) {
50907
51302
  handleItemClick = _useMenuItem.handleItemClick,
50908
51303
  handleMouseEnter = _useMenuItem.handleMouseEnter,
50909
51304
  handleMouseLeave = _useMenuItem.handleMouseLeave;
51305
+ var renderChildren = function renderChildren() {
51306
+ var _items;
51307
+ var items = children;
51308
+ var isTitle = false;
51309
+ if (!((_items = items) !== null && _items !== void 0 && _items.length)) {
51310
+ if (props.level === 0 && props.collapse && shoudPop) {
51311
+ items = [props.dataItem];
51312
+ isTitle = true;
51313
+ } else {
51314
+ return null;
51315
+ }
51316
+ }
51317
+ var content = function content(close) {
51318
+ return /*#__PURE__*/(0,jsx_runtime.jsx)("ul", {
51319
+ className: classnames_default()(shoudPop && (classes === null || classes === void 0 ? void 0 : classes.childrenShow), classes === null || classes === void 0 ? void 0 : classes.children, isUp && (classes === null || classes === void 0 ? void 0 : classes.childrenUp), hasExpandAbleChildren && (classes === null || classes === void 0 ? void 0 : classes.childrenHasExpand))
51320
+ // 子菜单点击弹出
51321
+ ,
51322
+ onClick: close,
51323
+ dir: config.direction,
51324
+ children: items.map(function (item, index) {
51325
+ var key = getKey(props.keygen, item, index);
51326
+ return /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.createElement)(MenuItem, objectSpread2_default()(objectSpread2_default()({}, props), {}, {
51327
+ mode: mode,
51328
+ parentId: id,
51329
+ dataItem: item,
51330
+ key: key,
51331
+ index: index,
51332
+ keyResult: key,
51333
+ level: props.level + 1,
51334
+ renderIcon: isTitle ? undefined : props.renderIcon
51335
+ }));
51336
+ })
51337
+ });
51338
+ };
51339
+ if (shoudPop) {
51340
+ var position = isVertical || isSubHorizontal ? isUp ? 'right-bottom' : 'right-top' : 'bottom';
51341
+ return /*#__PURE__*/(0,jsx_runtime.jsx)(src_popover_popover, {
51342
+ mouseLeaveDelay: toggleDuration,
51343
+ className: classnames_default()(classes === null || classes === void 0 ? void 0 : classes.popover),
51344
+ attributes: getDataAttribute({
51345
+ theme: props.theme || 'light',
51346
+ mode: isVertical ? 'vertical' : mode
51347
+ }),
51348
+ onVisibleChange: handleVisibleChange,
51349
+ jssStyle: props.jssStyle,
51350
+ arrowClass: classnames_default()(classes === null || classes === void 0 ? void 0 : classes.popArrow, props.theme === 'dark' && (classes === null || classes === void 0 ? void 0 : classes.popArrowDark)),
51351
+ showArrow: mode !== 'horizontal',
51352
+ position: position,
51353
+ lazy: false,
51354
+ children: function children(close) {
51355
+ return content(close);
51356
+ }
51357
+ });
51358
+ }
51359
+ return content();
51360
+ };
50910
51361
  var renderItem = function renderItem() {
51362
+ var icon = isFunc(props.renderIcon) ? props.renderIcon(props.dataItem) : null;
51363
+ var iconEl = icon ? /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
51364
+ className: classes === null || classes === void 0 ? void 0 : classes.titleIcon,
51365
+ children: icon
51366
+ }) : null;
51367
+ var indent = props.mode === 'inline' && props.level ? /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
51368
+ style: {
51369
+ width: props.level * inlineIndent,
51370
+ flexShrink: 0
51371
+ }
51372
+ }) : null;
50911
51373
  var item = render_render(props.renderItem, props.dataItem, props.index);
50912
51374
  var link = props.linkKey ? getKey(props.linkKey, props.dataItem, props.index) : undefined;
50913
51375
  var title = null;
50914
51376
  if (isLink(item)) {
50915
51377
  var mergeClass = classnames_default()(classes === null || classes === void 0 ? void 0 : classes.title, item.props && item.props.className);
50916
51378
  title = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.cloneElement)(item, {
50917
- className: mergeClass
51379
+ className: mergeClass,
51380
+ children: /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
51381
+ children: [indent, iconEl, /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
51382
+ className: classes === null || classes === void 0 ? void 0 : classes.titleContent,
51383
+ children: item.props.children
51384
+ })]
51385
+ })
50918
51386
  });
50919
51387
  } else {
50920
51388
  var linkProps = {
50921
51389
  className: classes === null || classes === void 0 ? void 0 : classes.title,
50922
51390
  href: link
50923
51391
  };
50924
- title = /*#__PURE__*/(0,jsx_runtime.jsx)("a", objectSpread2_default()(objectSpread2_default()({}, linkProps), {}, {
50925
- children: wrapSpan(item)
51392
+ title = /*#__PURE__*/(0,jsx_runtime.jsxs)("a", objectSpread2_default()(objectSpread2_default()({}, linkProps), {}, {
51393
+ children: [indent, iconEl, /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
51394
+ className: classes === null || classes === void 0 ? void 0 : classes.titleContent,
51395
+ children: wrapSpan(item)
51396
+ })]
50926
51397
  }));
50927
51398
  }
50928
- var indent = props.mode === 'inline' && props.level ? /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
50929
- style: {
50930
- width: props.level * inlineIndent,
50931
- flexShrink: 0
50932
- }
50933
- }) : null;
50934
- var isFirstCollapseItem = collapse && props.level === 0;
50935
51399
  if (props.frontCaret) {
50936
51400
  return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
50937
- ref: itemContentRef,
50938
- className: classnames_default()(classes === null || classes === void 0 ? void 0 : classes.itemContent, classes === null || classes === void 0 ? void 0 : classes.itemContentFront, isFirstCollapseItem && (classes === null || classes === void 0 ? void 0 : classes.itemContentHide)),
51401
+ className: classnames_default()(classes === null || classes === void 0 ? void 0 : classes.itemContent, classes === null || classes === void 0 ? void 0 : classes.itemContentFront),
50939
51402
  onClick: handleItemClick,
50940
- children: [indent, /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
51403
+ children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
50941
51404
  style: {
50942
51405
  color: props.caretColor
50943
51406
  },
50944
- className: classnames_default()(classes === null || classes === void 0 ? void 0 : classes.expand, classes === null || classes === void 0 ? void 0 : classes.expandFront, props.parentSelectable && (classes === null || classes === void 0 ? void 0 : classes.expandHover)),
51407
+ className: classnames_default()(classes === null || classes === void 0 ? void 0 : classes.expand, classes === null || classes === void 0 ? void 0 : classes.expandFront, (isVertical || isSubHorizontal) && (classes === null || classes === void 0 ? void 0 : classes.expandVertical), props.parentSelectable && (classes === null || classes === void 0 ? void 0 : classes.expandHover)),
50945
51408
  onClick: handleExpandClick,
50946
51409
  dir: config.direction,
50947
51410
  children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
@@ -50952,15 +51415,14 @@ var MenuItem = function MenuItem(props) {
50952
51415
  });
50953
51416
  } else {
50954
51417
  return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
50955
- ref: itemContentRef,
50956
- className: classnames_default()(classes === null || classes === void 0 ? void 0 : classes.itemContent, classes === null || classes === void 0 ? void 0 : classes.itemContentBack, isFirstCollapseItem && (classes === null || classes === void 0 ? void 0 : classes.itemContentHide)),
51418
+ className: classnames_default()(classes === null || classes === void 0 ? void 0 : classes.itemContent, classes === null || classes === void 0 ? void 0 : classes.itemContentBack),
50957
51419
  onClick: handleItemClick,
50958
- children: [indent, title, expandAble && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
51420
+ children: [title, expandAble && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
50959
51421
  onClick: handleExpandClick,
50960
51422
  style: {
50961
51423
  color: props.caretColor
50962
51424
  },
50963
- className: classnames_default()(classes === null || classes === void 0 ? void 0 : classes.expand, classes === null || classes === void 0 ? void 0 : classes.expandBack, props.parentSelectable && (classes === null || classes === void 0 ? void 0 : classes.expandHover)),
51425
+ className: classnames_default()(classes === null || classes === void 0 ? void 0 : classes.expand, classes === null || classes === void 0 ? void 0 : classes.expandBack, (isVertical || isSubHorizontal) && (classes === null || classes === void 0 ? void 0 : classes.expandVertical), props.parentSelectable && (classes === null || classes === void 0 ? void 0 : classes.expandHover)),
50964
51426
  dir: config.direction,
50965
51427
  children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
50966
51428
  className: classes === null || classes === void 0 ? void 0 : classes.icon,
@@ -50970,250 +51432,15 @@ var MenuItem = function MenuItem(props) {
50970
51432
  });
50971
51433
  }
50972
51434
  };
50973
- var renderCollapseItem = function renderCollapseItem() {
50974
- if (!props.renderCollapse) return null;
50975
- var isFirstCollapseItem = props.level === 0 && collapse;
50976
- return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
50977
- className: classnames_default()(classes === null || classes === void 0 ? void 0 : classes.collapseItem, isInPath && (classes === null || classes === void 0 ? void 0 : classes.collapseItemInPath), !isFirstCollapseItem && (classes === null || classes === void 0 ? void 0 : classes.collapseItemHide)),
50978
- onClick: handleItemClick,
50979
- children: props.renderCollapse(props.dataItem, props.index)
50980
- });
50981
- };
50982
- (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
50983
- if (!itemContentRef.current) return;
50984
- if (collapse === undefined) return;
50985
- if (timer.current) clearTimeout(timer.current);
50986
- itemContentRef.current.style.overflow = 'hidden';
50987
- itemContentRef.current.style.whiteSpace = 'nowrap';
50988
- timer.current = setTimeout(function () {
50989
- if (!itemContentRef.current) return;
50990
- itemContentRef.current.style.overflow = '';
50991
- itemContentRef.current.style.whiteSpace = '';
50992
- }, 300);
50993
- return function () {
50994
- if (timer.current) clearTimeout(timer.current);
50995
- };
50996
- }, [collapse]);
50997
51435
  return /*#__PURE__*/(0,jsx_runtime.jsxs)("li", {
50998
- className: classnames_default()(classes === null || classes === void 0 ? void 0 : classes.item, isDisabled && (classes === null || classes === void 0 ? void 0 : classes.itemDisabled), isInPath && (classes === null || classes === void 0 ? void 0 : classes.itemInPath), isOpen && (classes === null || classes === void 0 ? void 0 : classes.itemOpen), isChecked && (classes === null || classes === void 0 ? void 0 : classes.itemActive), expandAble && (classes === null || classes === void 0 ? void 0 : classes.itemHasChildren)),
51436
+ className: classnames_default()(classes === null || classes === void 0 ? void 0 : classes.item, isDisabled && (classes === null || classes === void 0 ? void 0 : classes.itemDisabled), isInPath && (classes === null || classes === void 0 ? void 0 : classes.itemInPath), (isOpen || popOpen) && (classes === null || classes === void 0 ? void 0 : classes.itemOpen), isChecked && (classes === null || classes === void 0 ? void 0 : classes.itemActive), expandAble && (classes === null || classes === void 0 ? void 0 : classes.itemHasChildren)),
50999
51437
  onMouseEnter: handleMouseEnter,
51000
51438
  onMouseLeave: handleMouseLeave,
51001
51439
  dir: config.direction,
51002
- children: [renderItem(), renderCollapseItem(), children.length > 0 && /*#__PURE__*/(0,jsx_runtime.jsx)("ul", {
51003
- className: classnames_default()(classes === null || classes === void 0 ? void 0 : classes.children, isUp && (classes === null || classes === void 0 ? void 0 : classes.childrenUp), hasExpandAbleChildren && (classes === null || classes === void 0 ? void 0 : classes.childrenHasExpand)),
51004
- dir: config.direction,
51005
- children: children.map(function (item, index) {
51006
- var key = getKey(props.keygen, item, index);
51007
- return /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.createElement)(MenuItem, objectSpread2_default()(objectSpread2_default()({}, props), {}, {
51008
- parentId: id,
51009
- dataItem: item,
51010
- key: key,
51011
- index: index,
51012
- keyResult: key,
51013
- level: props.level + 1
51014
- }));
51015
- })
51016
- })]
51440
+ children: [renderItem(), renderChildren()]
51017
51441
  });
51018
51442
  };
51019
51443
  /* harmony default export */ var menu_item = (MenuItem);
51020
- ;// CONCATENATED MODULE: ../base/src/menu/scrollbar.tsx
51021
-
51022
-
51023
-
51024
-
51025
-
51026
- var Scrollbar = function Scrollbar(props) {
51027
- var _props$jssStyle, _props$jssStyle$menu;
51028
- var classes = (_props$jssStyle = props.jssStyle) === null || _props$jssStyle === void 0 || (_props$jssStyle$menu = _props$jssStyle.menu) === null || _props$jssStyle$menu === void 0 ? void 0 : _props$jssStyle$menu.call(_props$jssStyle);
51029
- var show = props.scrollLength > props.length;
51030
- var config = useConfig();
51031
- var isRtl = config.direction === 'rtl';
51032
- var _useRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)({
51033
- cachedOffset: props.offset
51034
- }),
51035
- context = _useRef.current;
51036
- var barLength = props.length * props.length / props.scrollLength;
51037
- if (barLength < 20) barLength = 20;
51038
- var onDragStart = usePersistFn(function () {
51039
- context.cachedOffset = props.offset;
51040
- });
51041
- var onDragMove = usePersistFn(function (deltaX, deltaY) {
51042
- var value = props.direction === 'x' ? deltaX : deltaY;
51043
- var newOffset;
51044
- if (props.direction === 'x' && isRtl) {
51045
- newOffset = context.cachedOffset - value / (props.length - barLength);
51046
- } else {
51047
- newOffset = context.cachedOffset + value / (props.length - barLength);
51048
- }
51049
- if (newOffset < 0) newOffset = 0;
51050
- if (newOffset > 1) newOffset = 1;
51051
- if (newOffset === context.cachedOffset) return;
51052
- context.cachedOffset = newOffset;
51053
- props.onScroll(newOffset);
51054
- });
51055
- var handleBgClick = usePersistFn(function (e) {
51056
- if (e.target !== e.currentTarget) return;
51057
- var inner = e.target.firstChild;
51058
- if (!inner) return;
51059
- var rect = inner.getBoundingClientRect();
51060
- var newOffset = props.offset;
51061
- var page = props.length / (props.scrollLength - props.length);
51062
- var plus = isRtl ? e.clientX < rect.left : e.clientX > rect.left;
51063
- var add = isRtl ? e.clientX > rect.left : e.clientX < rect.left;
51064
- if (props.direction === 'x' && add || props.direction === 'y' && e.clientY < rect.top) {
51065
- newOffset = props.offset - page;
51066
- if (newOffset < 0) newOffset = 0;
51067
- } else if (props.direction === 'x' && plus || props.direction === 'y' && e.clientY > rect.top) {
51068
- newOffset = props.offset + page;
51069
- if (newOffset > 1) newOffset = 1;
51070
- }
51071
- props.onScroll(newOffset);
51072
- });
51073
- var _useDragMock = use_drag_mock({
51074
- onDragStart: onDragStart,
51075
- onDragMove: onDragMove
51076
- }),
51077
- handleMouseDown = _useDragMock.handleMouseDown,
51078
- isDragging = _useDragMock.isDragging;
51079
- if (!show) return null;
51080
- var style = {};
51081
- var value = (props.length - barLength) * props.offset;
51082
- var x = isRtl ? 'right' : 'left';
51083
- if (props.scrollLength > 0) {
51084
- if (props.direction === 'x') {
51085
- style.width = "".concat(props.length / props.scrollLength * 100, "%");
51086
- style[x] = value;
51087
- } else {
51088
- style.height = "".concat(props.length / props.scrollLength * 100, "%");
51089
- style.top = value;
51090
- }
51091
- }
51092
- return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
51093
- className: classnames_default()(classes === null || classes === void 0 ? void 0 : classes.scrollbar, props.direction === 'x' && (classes === null || classes === void 0 ? void 0 : classes.scrollbarX), props.direction === 'y' && (classes === null || classes === void 0 ? void 0 : classes.scrollbarY), isDragging && (classes === null || classes === void 0 ? void 0 : classes.scrollbarDragging)),
51094
- dir: config.direction,
51095
- onClick: handleBgClick,
51096
- children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
51097
- className: classes === null || classes === void 0 ? void 0 : classes.scrolbarHandler,
51098
- onMouseDown: handleMouseDown,
51099
- style: style
51100
- })
51101
- });
51102
- };
51103
- /* harmony default export */ var scrollbar = (Scrollbar);
51104
- ;// CONCATENATED MODULE: ../base/src/menu/scroll.tsx
51105
-
51106
-
51107
-
51108
-
51109
-
51110
- var scroll_Scroll = function Scroll(props) {
51111
- var _useRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)({
51112
- timer: 0
51113
- }),
51114
- context = _useRef.current;
51115
- var _useState = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(0),
51116
- _useState2 = slicedToArray_default()(_useState, 2),
51117
- offset = _useState2[0],
51118
- setScroll = _useState2[1];
51119
- var _useState3 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)({
51120
- width: 0,
51121
- scrollWidth: 0,
51122
- height: 0,
51123
- scrollHeight: 0
51124
- }),
51125
- _useState4 = slicedToArray_default()(_useState3, 2),
51126
- info = _useState4[0],
51127
- setInfo = _useState4[1];
51128
- var scrollLength = props.direction === 'x' ? info.scrollWidth : info.scrollHeight;
51129
- var length = props.direction === 'x' ? info.width : info.height;
51130
- var show = scrollLength > length;
51131
- var handleResize = usePersistFn(function () {
51132
- var target = props.targetRef.current;
51133
- if (!target) return;
51134
- if (context.timer) {
51135
- clearTimeout(context.timer);
51136
- context.timer = null;
51137
- }
51138
- context.timer = setTimeout(function () {
51139
- var scrollWidth = target.scrollWidth,
51140
- scrollHeight = target.scrollHeight,
51141
- clientHeight = target.clientHeight,
51142
- clientWidth = target.clientWidth;
51143
- setInfo({
51144
- width: clientWidth,
51145
- scrollWidth: scrollWidth,
51146
- height: clientHeight,
51147
- scrollHeight: scrollHeight
51148
- });
51149
- }, 200);
51150
- });
51151
- useResize({
51152
- targetRef: props.targetRef,
51153
- cb: handleResize,
51154
- timer: 0
51155
- });
51156
- var handleWheel = usePersistFn(function (e) {
51157
- e.preventDefault();
51158
- var target = e.currentTarget;
51159
- var wheel = normalize_wheel(e);
51160
- var delta = props.direction === 'x' ? wheel.pixelX : wheel.pixelY;
51161
- if (props.direction === 'x') {
51162
- target.scrollLeft += delta;
51163
- } else {
51164
- target.scrollTop += delta;
51165
- }
51166
- var newOffset = offset + delta / (scrollLength - length);
51167
- if (newOffset < 0) newOffset = 0;
51168
- if (newOffset > 1) newOffset = 1;
51169
- setScroll(newOffset);
51170
- });
51171
- var handleScroll = usePersistFn(function (percent) {
51172
- var target = props.targetRef.current;
51173
- if (!target) return;
51174
- if (props.direction === 'x') {
51175
- target.scrollLeft = percent * (info.scrollWidth - info.width);
51176
- } else {
51177
- target.scrollTop = percent * (info.scrollHeight - info.height);
51178
- }
51179
- setScroll(percent);
51180
- });
51181
- (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
51182
- var target = props.targetRef.current;
51183
- if (target) {
51184
- if (show) {
51185
- target.addEventListener('wheel', handleWheel, {
51186
- passive: false
51187
- });
51188
- } else {
51189
- target.removeEventListener('wheel', handleWheel);
51190
- }
51191
- }
51192
- return function () {
51193
- if (target) {
51194
- target.removeEventListener('wheel', handleWheel);
51195
- }
51196
- };
51197
- }, [show, props.targetRef.current]);
51198
- (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
51199
- handleResize();
51200
- return function () {
51201
- if (context.timer) {
51202
- clearTimeout(context.timer);
51203
- context.timer = null;
51204
- }
51205
- };
51206
- }, [props.data]);
51207
- return /*#__PURE__*/(0,jsx_runtime.jsx)(scrollbar, {
51208
- direction: props.direction,
51209
- length: props.direction === 'x' ? info.width : info.height,
51210
- scrollLength: props.direction === 'x' ? info.scrollWidth : info.scrollHeight,
51211
- offset: offset,
51212
- onScroll: handleScroll,
51213
- jssStyle: props.jssStyle
51214
- });
51215
- };
51216
- /* harmony default export */ var menu_scroll = (scroll_Scroll);
51217
51444
  ;// CONCATENATED MODULE: ../base/src/menu/menu.tsx
51218
51445
 
51219
51446
 
@@ -51221,12 +51448,12 @@ var scroll_Scroll = function Scroll(props) {
51221
51448
 
51222
51449
 
51223
51450
 
51224
-
51451
+ // import Scroll from './scroll';
51225
51452
 
51226
51453
 
51227
51454
  var menu_emptyArray = [];
51228
51455
  var Menu = function Menu(props) {
51229
- var _props$jssStyle, _props$jssStyle$menu, _props$style;
51456
+ var _props$jssStyle, _props$jssStyle$menu;
51230
51457
  var _props$data = props.data,
51231
51458
  data = _props$data === void 0 ? menu_emptyArray : _props$data,
51232
51459
  _props$mode = props.mode,
@@ -51234,24 +51461,32 @@ var Menu = function Menu(props) {
51234
51461
  _props$theme = props.theme,
51235
51462
  theme = _props$theme === void 0 ? 'light' : _props$theme,
51236
51463
  collapse = props.collapse;
51237
- var mode = collapse ? 'vertical' : modeProps;
51464
+ var render = useRender();
51465
+
51466
+ // const [inTransition, setInTransition] = useState(false);
51467
+ var mode = collapse ? 'vertical-auto' : modeProps;
51468
+ var _useRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)({
51469
+ inTransition: false,
51470
+ lastCollapse: !!props.collapse
51471
+ }),
51472
+ context = _useRef.current;
51473
+ if (props.mode !== 'horizontal' && !!context.lastCollapse !== !!collapse) {
51474
+ context.inTransition = true;
51475
+ context.lastCollapse = !!props.collapse;
51476
+ }
51238
51477
  var classes = (_props$jssStyle = props.jssStyle) === null || _props$jssStyle === void 0 || (_props$jssStyle$menu = _props$jssStyle.menu) === null || _props$jssStyle$menu === void 0 ? void 0 : _props$jssStyle$menu.call(_props$jssStyle);
51239
51478
  var isVertical = mode === 'vertical' || mode === 'vertical-auto';
51240
- var isHorizontal = mode === 'horizontal';
51479
+ // const isHorizontal = mode === 'horizontal';
51241
51480
  var _useState = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(false),
51242
51481
  _useState2 = slicedToArray_default()(_useState, 2),
51243
51482
  hasOpen = _useState2[0],
51244
51483
  setHasOpen = _useState2[1];
51245
- var _useState3 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)([]),
51246
- _useState4 = slicedToArray_default()(_useState3, 2),
51247
- collapseOpenKeys = _useState4[0],
51248
- setCollapseOpenKeys = _useState4[1];
51249
51484
  var _useMenu = use_menu({
51250
51485
  data: data,
51251
51486
  active: props.active,
51252
51487
  defaultOpenKeys: props.defaultOpenKeys,
51253
- openKeys: props.collapse ? collapseOpenKeys : props.openKeys,
51254
- onOpenChange: props.collapse ? setCollapseOpenKeys : props.onOpenChange
51488
+ openKeys: props.openKeys,
51489
+ onOpenChange: props.onOpenChange
51255
51490
  }),
51256
51491
  openKeys = _useMenu.openKeys,
51257
51492
  onOpenChange = _useMenu.onOpenChange,
@@ -51262,12 +51497,19 @@ var Menu = function Menu(props) {
51262
51497
  var hasExpand = data.some(function (item) {
51263
51498
  return item && item.children && (props.looseChildren || item.children.length);
51264
51499
  });
51265
- var showScrollBar = isHorizontal || isVertical;
51266
- var style = objectSpread2_default()({}, props.style);
51267
- if (collapse) delete style.width;
51268
- var listStyle = isVertical && !collapse ? {
51269
- width: (_props$style = props.style) === null || _props$style === void 0 ? void 0 : _props$style.width
51270
- } : undefined;
51500
+
51501
+ // const showScrollBar = isHorizontal || isVertical;
51502
+
51503
+ var renderHeader = function renderHeader() {
51504
+ if (modeProps === 'horizontal') return;
51505
+ if (props.header) {
51506
+ return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
51507
+ className: classes === null || classes === void 0 ? void 0 : classes.header,
51508
+ children: props.header
51509
+ });
51510
+ }
51511
+ return null;
51512
+ };
51271
51513
  (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
51272
51514
  var newOpen = (openKeys || []).filter(function (k) {
51273
51515
  return data.find(function (d, i) {
@@ -51278,24 +51520,32 @@ var Menu = function Menu(props) {
51278
51520
  setHasOpen(newOpen);
51279
51521
  }
51280
51522
  }, [data, openKeys]);
51281
- return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
51282
- className: classnames_default()(props.className, classes === null || classes === void 0 ? void 0 : classes.wrapper, mode === 'inline' && (classes === null || classes === void 0 ? void 0 : classes.wrapperInline), (mode === 'vertical' || mode === 'vertical-auto') && (classes === null || classes === void 0 ? void 0 : classes.wrapperVertical), mode === 'horizontal' && (classes === null || classes === void 0 ? void 0 : classes.wrapperHorizontal), hasOpen && (classes === null || classes === void 0 ? void 0 : classes.wrapperHasOpen), theme === 'dark' ? classes === null || classes === void 0 ? void 0 : classes.wrapperDark : classes === null || classes === void 0 ? void 0 : classes.wrapperLight, collapse && (classes === null || classes === void 0 ? void 0 : classes.collapse)),
51523
+ return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", objectSpread2_default()(objectSpread2_default()({
51524
+ className: classnames_default()(props.className, classes === null || classes === void 0 ? void 0 : classes.wrapper, mode === 'inline' && (classes === null || classes === void 0 ? void 0 : classes.wrapperInline), (mode === 'vertical' || mode === 'vertical-auto') && (classes === null || classes === void 0 ? void 0 : classes.wrapperVertical), mode === 'horizontal' && (classes === null || classes === void 0 ? void 0 : classes.wrapperHorizontal), hasOpen && (classes === null || classes === void 0 ? void 0 : classes.wrapperHasOpen), theme === 'dark' ? classes === null || classes === void 0 ? void 0 : classes.wrapperDark : classes === null || classes === void 0 ? void 0 : classes.wrapperLight, collapse && (classes === null || classes === void 0 ? void 0 : classes.wrapperCollpase), context.inTransition && (classes === null || classes === void 0 ? void 0 : classes.wrapperInTransition))
51525
+ }, getDataAttribute({
51526
+ theme: theme,
51527
+ mode: isVertical ? 'vertical' : mode
51528
+ })), {}, {
51283
51529
  style: objectSpread2_default()({
51284
51530
  height: props.height
51285
- }, style),
51286
- children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
51531
+ }, props.style),
51532
+ onTransitionEnd: function onTransitionEnd(e) {
51533
+ if (e.target === e.currentTarget) {
51534
+ context.inTransition = false;
51535
+ render();
51536
+ }
51537
+ },
51538
+ children: [renderHeader(), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
51287
51539
  className: classes === null || classes === void 0 ? void 0 : classes.scrollbox,
51288
51540
  ref: scrollRef,
51289
51541
  children: /*#__PURE__*/(0,jsx_runtime.jsx)("ul", {
51290
51542
  className: classnames_default()(classes === null || classes === void 0 ? void 0 : classes.root, hasExpand && (classes === null || classes === void 0 ? void 0 : classes.childrenHasExpand)),
51291
- style: listStyle,
51292
51543
  children: data.map(function (item, index) {
51293
51544
  var key = getKey(props.keygen, item, index);
51294
51545
  return /*#__PURE__*/(0,jsx_runtime.jsx)(menu_item, {
51295
51546
  level: 0,
51296
51547
  index: index,
51297
51548
  parentId: "",
51298
- collapse: collapse,
51299
51549
  dataItem: item,
51300
51550
  keyResult: key,
51301
51551
  openKeys: openKeys,
@@ -51310,7 +51560,6 @@ var Menu = function Menu(props) {
51310
51560
  toggleDuration: props.toggleDuration,
51311
51561
  disabled: props.disabled,
51312
51562
  renderItem: props.renderItem,
51313
- renderCollapse: props.renderCollapse,
51314
51563
  keygen: props.keygen,
51315
51564
  jssStyle: props.jssStyle,
51316
51565
  linkKey: props.linkKey,
@@ -51318,17 +51567,15 @@ var Menu = function Menu(props) {
51318
51567
  frontCaretType: props.frontCaretType,
51319
51568
  caretColor: props.caretColor,
51320
51569
  inlineIndent: props.inlineIndent,
51321
- scrollRef: scrollRef
51570
+ scrollRef: scrollRef,
51571
+ theme: theme,
51572
+ renderIcon: props.renderIcon,
51573
+ collapse: collapse
51322
51574
  }, key);
51323
51575
  })
51324
51576
  })
51325
- }), showScrollBar && /*#__PURE__*/(0,jsx_runtime.jsx)(menu_scroll, {
51326
- targetRef: scrollRef,
51327
- direction: mode === 'vertical' || mode === 'vertical-auto' ? 'y' : 'x',
51328
- data: data,
51329
- jssStyle: props.jssStyle
51330
51577
  })]
51331
- });
51578
+ }));
51332
51579
  };
51333
51580
  /* harmony default export */ var src_menu_menu = (Menu);
51334
51581
  ;// CONCATENATED MODULE: ./src/menu/menu.tsx
@@ -51338,17 +51585,79 @@ var Menu = function Menu(props) {
51338
51585
 
51339
51586
 
51340
51587
  var menu_jssStyle = {
51341
- menu: useMenuStyle
51588
+ menu: useMenuStyle,
51589
+ popover: usePopoverStyle
51342
51590
  };
51343
51591
  /* harmony default export */ var src_menu_menu_0 = (function (props) {
51344
51592
  return /*#__PURE__*/(0,jsx_runtime.jsx)(src_menu_menu, objectSpread2_default()({
51345
51593
  jssStyle: menu_jssStyle
51346
51594
  }, props));
51347
51595
  });
51596
+ ;// CONCATENATED MODULE: ../base/src/menu/search.tsx
51597
+
51598
+
51599
+ var search_excluded = ["tip", "status", "innerTitle", "placeTitle", "onSearchClick", "collpase", "theme", "jssStyle", "className", "style"];
51600
+
51601
+
51602
+
51603
+
51604
+
51605
+ var Search = function Search(props) {
51606
+ var _jssStyle$menuSearch;
51607
+ var _tip = props.tip,
51608
+ _status = props.status,
51609
+ _innerTitle = props.innerTitle,
51610
+ _placeTitle = props.placeTitle,
51611
+ onSearchClick = props.onSearchClick,
51612
+ collpase = props.collpase,
51613
+ _props$theme = props.theme,
51614
+ theme = _props$theme === void 0 ? 'light' : _props$theme,
51615
+ jssStyle = props.jssStyle,
51616
+ className = props.className,
51617
+ style = props.style,
51618
+ rest = objectWithoutProperties_default()(props, search_excluded);
51619
+ var classes = jssStyle === null || jssStyle === void 0 || (_jssStyle$menuSearch = jssStyle.menuSearch) === null || _jssStyle$menuSearch === void 0 ? void 0 : _jssStyle$menuSearch.call(jssStyle);
51620
+ var Search = /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
51621
+ className: classes === null || classes === void 0 ? void 0 : classes.search,
51622
+ children: icons_config.menu.Search
51623
+ });
51624
+ return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
51625
+ className: classnames_default()(classes === null || classes === void 0 ? void 0 : classes.wrapper, theme === 'light' && (classes === null || classes === void 0 ? void 0 : classes.wrapperLight), theme === 'dark' && (classes === null || classes === void 0 ? void 0 : classes.wrapperDark), !!rest.disabled && (classes === null || classes === void 0 ? void 0 : classes.wrapperDisabled), collpase && (classes === null || classes === void 0 ? void 0 : classes.wrapperCollapsed), className),
51626
+ style: style,
51627
+ onClick: !props.disabled ? onSearchClick : undefined,
51628
+ children: /*#__PURE__*/(0,jsx_runtime.jsx)(base_src_input_input, objectSpread2_default()(objectSpread2_default()({
51629
+ prefix: Search,
51630
+ className: classes === null || classes === void 0 ? void 0 : classes.input
51631
+ }, rest), {}, {
51632
+ jssStyle: jssStyle
51633
+ }))
51634
+ });
51635
+ };
51636
+ /* harmony default export */ var src_menu_search = (Search);
51637
+ ;// CONCATENATED MODULE: ./src/menu/search.tsx
51638
+
51639
+
51640
+
51641
+
51642
+
51643
+ var search_jssStyle = {
51644
+ menuSearch: useMenuSearchStyle,
51645
+ input: useInputStyle,
51646
+ popover: usePopoverStyle
51647
+ };
51648
+ /* harmony default export */ var src_menu_search_0 = (function (props) {
51649
+ return /*#__PURE__*/(0,jsx_runtime.jsx)(src_menu_search, objectSpread2_default()({
51650
+ jssStyle: search_jssStyle
51651
+ }, props));
51652
+ });
51348
51653
  ;// CONCATENATED MODULE: ./src/menu/index.ts
51349
51654
 
51655
+
51656
+ var SearchComp = src_menu_search_0;
51657
+ SearchComp.displayName = 'ShineoutMenuSearch';
51350
51658
  var MenuComp = src_menu_menu_0;
51351
51659
  MenuComp.displayName = 'ShineoutMenu';
51660
+ MenuComp.Search = SearchComp;
51352
51661
  /* harmony default export */ var src_menu_0 = (MenuComp);
51353
51662
  ;// CONCATENATED MODULE: ../base/src/message/message.tsx
51354
51663
  'use client';
@@ -51481,9 +51790,11 @@ var message_Message = /*#__PURE__*/function (_React$PureComponent) {
51481
51790
  _this = _super.call(this, props);
51482
51791
  defineProperty_default()(assertThisInitialized_default()(_this), "cachedHeight", void 0);
51483
51792
  defineProperty_default()(assertThisInitialized_default()(_this), "timeoutMap", void 0);
51793
+ defineProperty_default()(assertThisInitialized_default()(_this), "messages", void 0);
51484
51794
  _this.state = {
51485
51795
  messages: []
51486
51796
  };
51797
+ _this.messages = [];
51487
51798
  _this.cachedHeight = {};
51488
51799
  _this.timeoutMap = {};
51489
51800
  _this.removeMessage = _this.removeMessage.bind(assertThisInitialized_default()(_this));
@@ -51491,16 +51802,24 @@ var message_Message = /*#__PURE__*/function (_React$PureComponent) {
51491
51802
  return _this;
51492
51803
  }
51493
51804
  createClass_default()(Message, [{
51805
+ key: "setMessages",
51806
+ value: function setMessages(messages) {
51807
+ this.messages = messages;
51808
+ this.setState({
51809
+ messages: messages
51810
+ });
51811
+ }
51812
+ }, {
51494
51813
  key: "addMessage",
51495
51814
  value: function addMessage(msg) {
51496
51815
  var _this2 = this;
51497
51816
  var id = message_getUidStr();
51498
- var newState = message_produce(this.state, function (state) {
51499
- state.messages.push(Object.assign({
51817
+ var newMessages = message_produce(this.messages, function (messages) {
51818
+ messages.push(Object.assign({
51500
51819
  id: id
51501
51820
  }, msg));
51502
51821
  });
51503
- this.setState(newState);
51822
+ this.setMessages(newMessages);
51504
51823
  if (msg.duration > 0) {
51505
51824
  var closeTimeDelay = setTimeout(function () {
51506
51825
  _this2.closeMessageForAnimation(id, dismissDuration, _this2.cachedHeight[id]);
@@ -51513,7 +51832,7 @@ var message_Message = /*#__PURE__*/function (_React$PureComponent) {
51513
51832
  key: "removeMessage",
51514
51833
  value: function removeMessage(id) {
51515
51834
  var callback;
51516
- var messages = this.state.messages.filter(function (m) {
51835
+ var messages = this.messages.filter(function (m) {
51517
51836
  if (m.id !== id) return true;
51518
51837
  if (m.onClose) {
51519
51838
  callback = m.onClose;
@@ -51524,9 +51843,7 @@ var message_Message = /*#__PURE__*/function (_React$PureComponent) {
51524
51843
  var _this$props$onDestroy, _this$props;
51525
51844
  (_this$props$onDestroy = (_this$props = this.props).onDestroy) === null || _this$props$onDestroy === void 0 || _this$props$onDestroy.call(_this$props);
51526
51845
  } else {
51527
- this.setState({
51528
- messages: messages
51529
- });
51846
+ this.setMessages(messages);
51530
51847
  }
51531
51848
  if (callback) callback();
51532
51849
  }
@@ -51535,16 +51852,15 @@ var message_Message = /*#__PURE__*/function (_React$PureComponent) {
51535
51852
  value: function closeMessageForAnimation(id, duration, msgHeight) {
51536
51853
  var _this3 = this;
51537
51854
  // duration animation duration time
51538
- this.setState(function (preState) {
51539
- return message_produce(preState, function (state) {
51540
- state.messages.forEach(function (m) {
51541
- if (m.id === id) {
51542
- m.dismiss = true;
51543
- m.h = msgHeight || 0;
51544
- }
51545
- });
51855
+ var newMessages = message_produce(this.messages, function (messages) {
51856
+ messages.forEach(function (m) {
51857
+ if (m.id === id) {
51858
+ m.dismiss = true;
51859
+ m.h = msgHeight || 0;
51860
+ }
51546
51861
  });
51547
51862
  });
51863
+ this.setMessages(newMessages);
51548
51864
  setTimeout(function () {
51549
51865
  _this3.removeMessage(id);
51550
51866
  }, duration);
@@ -51786,6 +52102,8 @@ var Confirm = function Confirm(props) {
51786
52102
  callback.then(function () {
51787
52103
  close();
51788
52104
  setOk(false);
52105
+ }).catch(function () {
52106
+ setOk(false);
51789
52107
  });
51790
52108
  } else {
51791
52109
  close();
@@ -51800,6 +52118,8 @@ var Confirm = function Confirm(props) {
51800
52118
  callback.then(function () {
51801
52119
  close();
51802
52120
  setCancel(false);
52121
+ }).catch(function () {
52122
+ setCancel(false);
51803
52123
  });
51804
52124
  } else {
51805
52125
  close();
@@ -53505,9 +53825,11 @@ StepsComp.Step = StepsStep;
53505
53825
 
53506
53826
 
53507
53827
 
53828
+
53508
53829
  var sticky_cssSupport = cssSupport;
53509
53830
  var supportSticky = sticky_cssSupport('position', 'sticky');
53510
53831
  var defaultZIndex = 900;
53832
+ var events = ['scroll', 'pageshow', 'load', 'resize'];
53511
53833
 
53512
53834
  // const getFirstScrollParent = (el: HTMLElement) => {
53513
53835
  // let parent = el.parentNode as HTMLElement;
@@ -53526,17 +53848,19 @@ var defaultZIndex = 900;
53526
53848
  // };
53527
53849
 
53528
53850
  var Sticky = function Sticky(props) {
53529
- var _props$style;
53530
53851
  var children = props.children,
53531
53852
  top = props.top,
53532
53853
  bottom = props.bottom;
53533
- var css = props.css || props.target;
53854
+ // 是否使用css sticky
53855
+ var css = (props.css || props.target) && supportSticky;
53856
+ var forceUpdate = useRender();
53534
53857
  var _useRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)({
53535
53858
  target: null,
53536
53859
  div: null,
53537
- observer: null,
53860
+ position: '',
53861
+ targetObserver: null,
53538
53862
  parentObserver: null,
53539
- isTop: false
53863
+ fixedObserver: null
53540
53864
  }),
53541
53865
  context = _useRef.current;
53542
53866
  var _useState = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)({}),
@@ -53551,12 +53875,7 @@ var Sticky = function Sticky(props) {
53551
53875
  _useState6 = slicedToArray_default()(_useState5, 2),
53552
53876
  parentVisible = _useState6[0],
53553
53877
  setParentVisible = _useState6[1];
53554
- var forceRender = useRender();
53555
53878
  var elementRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
53556
- var elementSize = useResize({
53557
- targetRef: elementRef,
53558
- timer: 0
53559
- });
53560
53879
  var getTarget = function getTarget() {
53561
53880
  var scrollContainer = props.scrollContainer;
53562
53881
  if (typeof scrollContainer === 'string') {
@@ -53566,22 +53885,19 @@ var Sticky = function Sticky(props) {
53566
53885
  if (scrollContainer && scrollContainer.nodeType === 1) {
53567
53886
  return scrollContainer;
53568
53887
  }
53569
- return document.body;
53888
+ return null;
53570
53889
  };
53890
+
53891
+ // window resize 时需要重新计算底部附着的位置
53571
53892
  var updateStyle = usePersistFn(function () {
53572
- if (context.div && !context.isTop && show) {
53573
- var shouldFixed = context.target === document.body;
53893
+ if (context.div && context.position === 'bottom' && show) {
53574
53894
  var scrollRect = context.target.getBoundingClientRect();
53575
53895
  var targetRect = elementRef.current.getBoundingClientRect();
53576
53896
  var targetLeft = targetRect.left;
53577
- var width = targetRect.width,
53578
- height = targetRect.height;
53579
53897
  if (typeof bottom === 'number') {
53580
53898
  var outRootRect = context.target.getBoundingClientRect();
53581
53899
  var _style = {
53582
- position: shouldFixed ? 'fixed' : 'absolute',
53583
- width: "".concat(width, "px"),
53584
- height: "".concat(height, "px"),
53900
+ position: 'absolute',
53585
53901
  top: "".concat(scrollRect.bottom - (props.bottom || 0) - outRootRect.top, "px"),
53586
53902
  left: "".concat(targetLeft - outRootRect.left, "px"),
53587
53903
  transform: 'translateY(-100%)'
@@ -53590,30 +53906,22 @@ var Sticky = function Sticky(props) {
53590
53906
  }
53591
53907
  }
53592
53908
  });
53593
- var handlePosition = usePersistFn(function (entries) {
53909
+
53910
+ // 有滚动容器时的定位
53911
+ var handleTargetPosition = usePersistFn(function (entries) {
53594
53912
  var entry = entries[0];
53595
53913
  var scrollRect = entry.rootBounds;
53596
53914
  var targetRect = entry.boundingClientRect;
53597
- var shouldFixed = context.target === document.body;
53598
53915
  if (!entry.isIntersecting) {
53599
53916
  var targetLeft = targetRect.left;
53600
- var outRootRect = shouldFixed ? {
53601
- top: 0,
53602
- bottom: 0,
53603
- left: 0,
53604
- right: 0
53605
- } : context.div.getBoundingClientRect();
53606
- var width = targetRect.width,
53607
- height = targetRect.height;
53917
+ var outRootRect = context.div.getBoundingClientRect();
53608
53918
  if (scrollRect && targetRect.bottom < scrollRect.bottom) {
53609
53919
  // top in
53610
- context.isTop = true;
53920
+ context.position = 'top';
53611
53921
  if (typeof top === 'number') {
53612
53922
  setShow(true);
53613
53923
  var _style2 = {
53614
- position: shouldFixed ? 'fixed' : 'absolute',
53615
- width: "".concat(width, "px"),
53616
- height: "".concat(height, "px"),
53924
+ position: 'absolute',
53617
53925
  top: "".concat(scrollRect.top - outRootRect.top, "px"),
53618
53926
  left: "".concat(targetLeft - outRootRect.left, "px")
53619
53927
  };
@@ -53621,16 +53929,13 @@ var Sticky = function Sticky(props) {
53621
53929
  }
53622
53930
  } else if (scrollRect) {
53623
53931
  // bottom in
53624
- context.isTop = false;
53932
+ context.position = 'bottom';
53625
53933
  if (typeof bottom === 'number') {
53626
53934
  setShow(true);
53627
- var _outRootRect = context.target.getBoundingClientRect();
53628
53935
  var _style3 = {
53629
- position: shouldFixed ? 'fixed' : 'absolute',
53630
- width: "".concat(width, "px"),
53631
- height: "".concat(height, "px"),
53632
- top: "".concat(scrollRect.bottom - _outRootRect.top, "px"),
53633
- left: "".concat(targetLeft - _outRootRect.left, "px"),
53936
+ position: 'absolute',
53937
+ top: "".concat(scrollRect.bottom - outRootRect.top, "px"),
53938
+ left: "".concat(targetLeft - outRootRect.left, "px"),
53634
53939
  transform: 'translateY(-100%)'
53635
53940
  };
53636
53941
  setStyle(_style3);
@@ -53639,8 +53944,11 @@ var Sticky = function Sticky(props) {
53639
53944
  }
53640
53945
  if (entry.isIntersecting) {
53641
53946
  setShow(false);
53947
+ context.position = '';
53642
53948
  }
53643
53949
  });
53950
+
53951
+ // 父元素是否可见
53644
53952
  var handleParentVisible = usePersistFn(function (entries) {
53645
53953
  var entry = entries[0];
53646
53954
  if (entry.isIntersecting) {
@@ -53649,35 +53957,118 @@ var Sticky = function Sticky(props) {
53649
53957
  setParentVisible(false);
53650
53958
  }
53651
53959
  });
53652
- var cleanEvents = function cleanEvents() {
53653
- if (context.observer) {
53654
- context.observer.disconnect();
53655
- context.observer = null;
53960
+ var setFixedStyle = usePersistFn(function (s, m) {
53961
+ var l = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
53962
+ if (s !== show) {
53963
+ setShow(s);
53656
53964
  }
53657
- if (context.parentObserver) {
53658
- context.parentObserver.disconnect();
53659
- context.parentObserver = null;
53965
+ if (s && m) {
53966
+ var newStyle = defineProperty_default()(defineProperty_default()({
53967
+ position: 'fixed'
53968
+ }, m, m === 'top' ? top : bottom), "left", l);
53969
+ if (!shallowEqual(style, newStyle)) {
53970
+ setStyle(newStyle);
53971
+ }
53972
+ }
53973
+ });
53974
+
53975
+ // 无滚动容器的时候,body 滚动 resize 计算
53976
+ var handleFixedPosition = usePersistFn(function () {
53977
+ if (css || context.target) return;
53978
+ var element = elementRef.current;
53979
+ if (!parentVisible) {
53980
+ setFixedStyle(false);
53981
+ return;
53982
+ }
53983
+ if (!element) return;
53984
+ var selfRect = element.getBoundingClientRect();
53985
+ if (selfRect === null) return;
53986
+ // If the element is hidden, the width and height will be 0
53987
+ if (selfRect && selfRect.width === 0 && selfRect.height === 0) return;
53988
+ var scrollRect = document.body.getBoundingClientRect();
53989
+ var top = props.top,
53990
+ bottom = props.bottom;
53991
+ if (top !== undefined && Math.ceil(selfRect.top) <= top) {
53992
+ setFixedStyle(true, 'top', selfRect.left);
53993
+ return;
53994
+ } else if (bottom !== undefined && Math.ceil(selfRect.bottom) + bottom > scrollRect.bottom) {
53995
+ setFixedStyle(true, 'bottom', selfRect.left);
53996
+ return;
53997
+ } else {
53998
+ setFixedStyle(false);
53999
+ }
54000
+ });
54001
+
54002
+ // 无滚动容器时内滚场景触发
54003
+ var handleFixedInter = usePersistFn(function (entries) {
54004
+ if (!parentVisible) {
54005
+ setFixedStyle(false);
54006
+ return;
54007
+ }
54008
+ var entry = entries[0];
54009
+ var scrollRect = entry.rootBounds;
54010
+ var targetRect = entry.boundingClientRect;
54011
+ if (scrollRect && scrollRect.top === 0 && scrollRect.bottom === 0) {
54012
+ return;
54013
+ }
54014
+ if (!entry.isIntersecting) {
54015
+ var targetLeft = targetRect.left;
54016
+ var outRootRect = document.body.getBoundingClientRect();
54017
+ if (scrollRect && targetRect.bottom < scrollRect.bottom) {
54018
+ // top in
54019
+ if (typeof top === 'number') {
54020
+ setFixedStyle(true, 'top', targetLeft - outRootRect.left);
54021
+ }
54022
+ } else if (scrollRect) {
54023
+ // bottom in
54024
+ if (typeof bottom === 'number') {
54025
+ setFixedStyle(true, 'bottom', targetLeft - outRootRect.left);
54026
+ }
54027
+ }
54028
+ }
54029
+ if (entry.isIntersecting) {
54030
+ setFixedStyle(false);
54031
+ }
54032
+ });
54033
+ var elementSize = useResize({
54034
+ targetRef: elementRef,
54035
+ timer: 10,
54036
+ cb: handleFixedPosition
54037
+ });
54038
+ var cancelFixedObserver = function cancelFixedObserver() {
54039
+ if (context.fixedObserver) {
54040
+ context.fixedObserver.disconnect();
54041
+ context.fixedObserver = null;
54042
+ }
54043
+ };
54044
+ var createFixedObserver = function createFixedObserver() {
54045
+ cancelFixedObserver();
54046
+ context.fixedObserver = new IntersectionObserver(handleFixedInter, {
54047
+ root: null,
54048
+ rootMargin: "-".concat(top || 0, "px 0px -").concat(bottom || 0, "px 0px"),
54049
+ threshold: 1.0
54050
+ });
54051
+ };
54052
+ var cancelObserver = function cancelObserver() {
54053
+ if (context.targetObserver) {
54054
+ context.targetObserver.disconnect();
54055
+ context.targetObserver = null;
53660
54056
  }
53661
- window.removeEventListener('resize', updateStyle);
53662
54057
  };
53663
54058
  var createObserver = function createObserver() {
53664
- var target = getTarget();
53665
- if (!context.div && target !== document.body) {
54059
+ if (!context.div) {
53666
54060
  context.div = document.createElement('div');
53667
54061
  context.div.style.position = 'relative';
53668
54062
  }
53669
- if (target && target !== context.target) {
53670
- forceRender();
53671
- context.target = target;
53672
- cleanEvents();
54063
+ if (context.target) {
53673
54064
  if (context.div) {
53674
54065
  // append div
53675
- if (target === document.body) {
53676
- document.body.appendChild(context.div);
54066
+ if (context.target === document.body) {
54067
+ document.body.insertBefore(context.div, document.body.firstChild);
53677
54068
  } else {
53678
- target.parentNode.insertBefore(context.div, target);
54069
+ context.target.parentNode.insertBefore(context.div, context.target);
53679
54070
  }
53680
- var _style4 = window.getComputedStyle(target);
54071
+ var _style4 = window.getComputedStyle(context.target);
53681
54072
  if (_style4.position === 'absolute' || _style4.position === 'fixed') {
53682
54073
  context.div.style.position = _style4.position;
53683
54074
  context.div.style.top = _style4.top;
@@ -53686,59 +54077,109 @@ var Sticky = function Sticky(props) {
53686
54077
  context.div.style.bottom = _style4.bottom;
53687
54078
  }
53688
54079
  }
54080
+ cancelFixedObserver();
53689
54081
  if (window.IntersectionObserver) {
53690
- var observer = new IntersectionObserver(handlePosition, {
53691
- root: target,
54082
+ var observer = new IntersectionObserver(handleTargetPosition, {
54083
+ root: context.target,
53692
54084
  rootMargin: "-".concat(top || 0, "px 0px -").concat(bottom || 0, "px 0px"),
53693
54085
  threshold: 1.0
53694
54086
  });
53695
- context.observer = observer;
53696
- context.parentObserver = new IntersectionObserver(handleParentVisible, {
53697
- root: target,
53698
- rootMargin: "-".concat(top || 0, "px 0px -").concat(bottom || 0, "px 0px"),
53699
- threshold: 0
53700
- });
54087
+ context.targetObserver = observer;
53701
54088
  }
53702
54089
  }
53703
54090
  };
54091
+ var cancelParentObserver = function cancelParentObserver() {
54092
+ if (context.parentObserver) {
54093
+ context.parentObserver.disconnect();
54094
+ context.parentObserver = null;
54095
+ }
54096
+ };
54097
+ var createParentObserver = function createParentObserver() {
54098
+ if (!props.parent) return;
54099
+ cancelParentObserver();
54100
+ context.parentObserver = new IntersectionObserver(handleParentVisible, {
54101
+ root: context.target,
54102
+ rootMargin: "-".concat(top || 0, "px 0px -").concat(bottom || 0, "px 0px"),
54103
+ threshold: 0
54104
+ });
54105
+ context.parentObserver.observe(props.parent);
54106
+ };
54107
+
54108
+ // 存在滚动容器时的定位
54109
+ var createTargetEvents = function createTargetEvents() {
54110
+ createObserver();
54111
+ window.addEventListener('resize', updateStyle);
54112
+ };
54113
+ var cancelTargetEvents = function cancelTargetEvents() {
54114
+ cancelObserver();
54115
+ window.removeEventListener('resize', updateStyle);
54116
+ if (context.div) {
54117
+ context.div.remove();
54118
+ context.div = null;
54119
+ }
54120
+ };
54121
+ var createFixedEvents = function createFixedEvents() {
54122
+ createFixedObserver();
54123
+ events.forEach(function (event) {
54124
+ window.addEventListener(event, handleFixedPosition);
54125
+ });
54126
+ };
54127
+ var cancelFixedEvents = function cancelFixedEvents() {
54128
+ cancelFixedObserver();
54129
+ events.forEach(function (event) {
54130
+ window.removeEventListener(event, handleFixedPosition);
54131
+ });
54132
+ };
53704
54133
  var handleElementRef = function handleElementRef(el) {
53705
54134
  if (el) {
53706
54135
  elementRef.current = el;
53707
- if (el && context.observer) {
53708
- context.observer.observe(el);
54136
+ if (context.targetObserver) {
54137
+ if (!el) {
54138
+ context.targetObserver.disconnect();
54139
+ } else {
54140
+ context.targetObserver.observe(el);
54141
+ }
54142
+ }
54143
+ if (context.fixedObserver) {
54144
+ if (!el) {
54145
+ context.fixedObserver.disconnect();
54146
+ } else {
54147
+ context.fixedObserver.observe(el);
54148
+ }
53709
54149
  }
53710
54150
  }
53711
54151
  };
53712
- (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
53713
- if (!css) {
53714
- createObserver();
53715
- window.addEventListener('resize', updateStyle);
54152
+ (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useLayoutEffect)(function () {
54153
+ if (css) return;
54154
+ var target = getTarget();
54155
+ if (context.target !== target) {
54156
+ context.target = target;
54157
+ forceUpdate();
53716
54158
  }
53717
- return function () {
53718
- cleanEvents();
53719
- if (context.div) {
53720
- context.div.remove();
53721
- context.div = null;
53722
- }
53723
- };
53724
- }, [css]);
53725
- (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
53726
- if (props.parent && context.parentObserver) {
54159
+ if (context.target) {
54160
+ createTargetEvents();
54161
+ return cancelTargetEvents;
54162
+ } else {
54163
+ // fixed 布局
54164
+ createFixedEvents();
54165
+ return cancelFixedEvents;
54166
+ }
54167
+ }, [css, top, bottom]);
54168
+ (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useLayoutEffect)(function () {
54169
+ if (props.parent && !css) {
54170
+ // createParentObserver 用到context.target
54171
+ createParentObserver();
53727
54172
  context.parentObserver.observe(props.parent);
53728
54173
  }
53729
- return function () {
53730
- if (context.parentObserver) {
53731
- context.parentObserver.disconnect();
53732
- }
53733
- };
53734
- }, [props.parent]);
54174
+ return cancelParentObserver;
54175
+ }, [props.parent, css, context.target, top, bottom]);
53735
54176
 
53736
54177
  // 纯css方法 直接使用css
53737
54178
  // js方法
53738
54179
  // 1. 不指定滚动容器 基于document.body 使用fixed + js计算
53739
54180
  // 2. 指定滚动容器 在滚动容器上方插入一个dom占位 基于该dom渲染和定位
53740
54181
  // 3. 使用 intersectionObserver 来判断是否需要sticky
53741
- if (css && supportSticky) {
54182
+ if (css) {
53742
54183
  return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
53743
54184
  className: props.className,
53744
54185
  style: objectSpread2_default()(objectSpread2_default()({
@@ -53762,12 +54203,14 @@ var Sticky = function Sticky(props) {
53762
54203
  })
53763
54204
  }) : null;
53764
54205
  var isFixed = style.position === 'fixed';
54206
+ var hideStyle = {
54207
+ opacity: 0,
54208
+ pointerEvents: 'none'
54209
+ };
53765
54210
  return /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
53766
54211
  children: [isFixed ? StickyEl : context.target && context.div && /*#__PURE__*/(0,external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_.createPortal)(StickyEl, context.div), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
53767
54212
  className: props.className,
53768
- style: objectSpread2_default()(objectSpread2_default()({}, props.style), {}, {
53769
- opacity: show && parentVisible ? 0 : (_props$style = props.style) === null || _props$style === void 0 ? void 0 : _props$style.opacity
53770
- }),
54213
+ style: objectSpread2_default()(objectSpread2_default()({}, props.style), show && parentVisible ? hideStyle : {}),
53771
54214
  ref: handleElementRef,
53772
54215
  children: children
53773
54216
  })]
@@ -55251,10 +55694,7 @@ var useTableGroup = function useTableGroup(props) {
55251
55694
  style: fixedStyle,
55252
55695
  dir: config.direction,
55253
55696
  children: [showSelectAll && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
55254
- style: {
55255
- lineHeight: 1,
55256
- verticalAlign: 'middle'
55257
- },
55697
+ className: tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.iconWrapper,
55258
55698
  children: props.radio ? null : /*#__PURE__*/(0,jsx_runtime.jsx)(base_src_checkbox_checkbox, {
55259
55699
  disabled: props.disabled === true,
55260
55700
  checked: props.datum.getCheckedStatus(props.treeCheckAll ? props.treeColumnsName : undefined),
@@ -55527,7 +55967,7 @@ var Tr = function Tr(props) {
55527
55967
  transform: "translate3d(".concat(0 - props.fixRightNum, "px, 0, 0)")
55528
55968
  };
55529
55969
  }
55530
- var right = props.colgroup.slice(index + 1 + colSpan).reduce(function (a, b) {
55970
+ var right = props.colgroup.slice(index + colSpan).reduce(function (a, b) {
55531
55971
  return (a || 0) + (b || 0);
55532
55972
  }, 0);
55533
55973
  return {
@@ -56602,6 +57042,7 @@ var useTransform = function useTransform(props) {
56602
57042
  if (!containerDimension || !targetDimension) return;
56603
57043
  if (targetDimension <= containerDimension) {
56604
57044
  setShouldScroll(false);
57045
+ setDelta(0);
56605
57046
  } else {
56606
57047
  setShouldScroll(true);
56607
57048
  }
@@ -57906,7 +58347,13 @@ var TransferList = function TransferList(props) {
57906
58347
  value: value,
57907
58348
  onSelected: onSelectChange
57908
58349
  });
57909
- if (custom) return custom;
58350
+ if (custom) return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
58351
+ className: listClass,
58352
+ style: objectSpread2_default()(objectSpread2_default()({}, listStyle), {}, {
58353
+ height: listHeight
58354
+ }),
58355
+ children: custom
58356
+ });
57910
58357
  }
57911
58358
  if (data && data.length === 0) {
57912
58359
  return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
@@ -58151,7 +58598,7 @@ var Transfer = function Transfer(props) {
58151
58598
  simple: simple,
58152
58599
  disabled: disabled,
58153
58600
  value: listValue,
58154
- selectedKeys: selectedKeys,
58601
+ selectedKeys: listValue,
58155
58602
  itemClass: itemClass,
58156
58603
  customRender: children,
58157
58604
  searchPlaceholder: placeholder,
@@ -59145,10 +59592,9 @@ var useUpload = function useUpload(props) {
59145
59592
  });
59146
59593
  });
59147
59594
  };
59148
- var getCurrent = use_persist_fn(function () {
59149
- return {
59150
- filesState: filesState
59151
- };
59595
+ var latestState = use_latest_obj({
59596
+ filesState: filesState,
59597
+ value: value
59152
59598
  });
59153
59599
  var uploadFile = function uploadFile(id, file, data) {
59154
59600
  var request = props.request || xhr;
@@ -59169,8 +59615,7 @@ var useUpload = function useUpload(props) {
59169
59615
  throttle = false;
59170
59616
  }, 16);
59171
59617
  var percent = typeof e.percent === 'number' ? e.percent : e.loaded / e.total * 100;
59172
- var _getCurrent = getCurrent(),
59173
- filesState = _getCurrent.filesState;
59618
+ var filesState = latestState.filesState;
59174
59619
  var newFiles = objectSpread2_default()({}, filesState);
59175
59620
  if (!newFiles[id]) return;
59176
59621
  newFiles[id].process = percent;
@@ -59207,7 +59652,7 @@ var useUpload = function useUpload(props) {
59207
59652
  });
59208
59653
  });
59209
59654
  // add value
59210
- var values = utils_immer_produce(value, function (draft) {
59655
+ var values = utils_immer_produce(latestState.value, function (draft) {
59211
59656
  draft.push(result);
59212
59657
  });
59213
59658
  props.onChange(values);
@@ -59260,7 +59705,7 @@ var useUpload = function useUpload(props) {
59260
59705
  reader.readAsDataURL(blob);
59261
59706
  });
59262
59707
  };
59263
- var addFiles = /*#__PURE__*/function () {
59708
+ var addFiles = use_persist_fn( /*#__PURE__*/function () {
59264
59709
  var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2(files) {
59265
59710
  var fileList, newFiles, resetLength, list, _loop, _ret, i;
59266
59711
  return regeneratorRuntime_default()().wrap(function _callee2$(_context3) {
@@ -59399,11 +59844,11 @@ var useUpload = function useUpload(props) {
59399
59844
  }
59400
59845
  }, _callee2);
59401
59846
  }));
59402
- return function addFiles(_x3) {
59847
+ return function (_x3) {
59403
59848
  return _ref2.apply(this, arguments);
59404
59849
  };
59405
- }();
59406
- var removeFile = function removeFile(id) {
59850
+ }());
59851
+ var removeFile = use_persist_fn(function (id) {
59407
59852
  var beforeCancel = props.beforeCancel,
59408
59853
  onErrorRemove = props.onErrorRemove;
59409
59854
  var file = filesState[id];
@@ -59421,8 +59866,8 @@ var useUpload = function useUpload(props) {
59421
59866
  onErrorRemove(file.xhr, file.blob, file);
59422
59867
  }
59423
59868
  }
59424
- };
59425
- var removeValue = function removeValue(index) {
59869
+ });
59870
+ var removeValue = use_persist_fn(function (index) {
59426
59871
  if (props.disabled) return;
59427
59872
  var recoverAble = props.recoverAble,
59428
59873
  beforeRemove = props.beforeRemove;
@@ -59434,15 +59879,15 @@ var useUpload = function useUpload(props) {
59434
59879
  newRecycle.push(value[index]);
59435
59880
  }
59436
59881
  setRecycleValues(newRecycle);
59437
- var newValue = utils_immer_produce(props.value, function (draft) {
59882
+ var newValue = utils_immer_produce(latestState.value, function (draft) {
59438
59883
  draft.splice(index, 1);
59439
59884
  });
59440
59885
  props.onChange(newValue);
59441
59886
  }).catch(function () {});
59442
- };
59443
- var recoverValue = function recoverValue(index) {
59887
+ });
59888
+ var recoverValue = use_persist_fn(function (index) {
59444
59889
  if (props.disabled) return;
59445
- props.onChange(utils_immer_produce(props.value, function (draft) {
59890
+ props.onChange(utils_immer_produce(latestState.value, function (draft) {
59446
59891
  draft.push(recycleValues[index]);
59447
59892
  }));
59448
59893
  setRecycleValues(function (pre) {
@@ -59450,7 +59895,7 @@ var useUpload = function useUpload(props) {
59450
59895
  newRecycle.splice(index, 1);
59451
59896
  return newRecycle;
59452
59897
  });
59453
- };
59898
+ });
59454
59899
  var func = use_latest_obj({
59455
59900
  addFiles: addFiles,
59456
59901
  removeFile: removeFile,
@@ -62455,7 +62900,7 @@ var upload_interface = __webpack_require__(4412);
62455
62900
 
62456
62901
 
62457
62902
  /* harmony default export */ var src_0 = ({
62458
- version: '3.2.0-rc.4'
62903
+ version: '3.2.0'
62459
62904
  });
62460
62905
  }();
62461
62906
  /******/ return __webpack_exports__;