shineout 3.1.12 → 3.1.14

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.
package/cjs/index.js CHANGED
@@ -476,5 +476,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
476
476
  // 此文件由脚本自动生成,请勿直接修改。
477
477
  // This file was generated automatically by a script. Please do not modify it directly.
478
478
  var _default = exports.default = {
479
- version: '3.1.12'
479
+ version: '3.1.14'
480
480
  };
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
  /***/ }),
@@ -11949,7 +11949,7 @@ var handleStyle = function handleStyle(style) {
11949
11949
  };
11950
11950
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
11951
11951
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
11952
- /* harmony default export */ var version = ('3.1.12');
11952
+ /* harmony default export */ var version = ('3.1.14');
11953
11953
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
11954
11954
 
11955
11955
 
@@ -20229,6 +20229,7 @@ var setToken = function setToken(options) {
20229
20229
  customExtraToken = _ref.extraToken;
20230
20230
  var _getConfig = getConfig(),
20231
20231
  prefix = _getConfig.prefix;
20232
+ if (typeof window === 'undefined') return;
20232
20233
  var id = "__shineoutThemeStyleContainer__".concat(createHash(selector));
20233
20234
  var cacheTag = document.querySelector("[data-token-id=\"".concat(id, "\"]"));
20234
20235
  var tag = cacheTag || document.createElement(tagName);
@@ -20410,7 +20411,13 @@ var popoverStyle = {
20410
20411
  height: '8.4px',
20411
20412
  boxSizing: 'content-box',
20412
20413
  background: 'inherit',
20413
- borderBottom: 'none'
20414
+ borderBottom: 'none',
20415
+ '&[dir=ltr]': {
20416
+ borderLeftColor: 'transparent'
20417
+ },
20418
+ '&[dir=rtl]': {
20419
+ borderRight: 'transparent'
20420
+ }
20414
20421
  },
20415
20422
  '&[data-soui-position^="bottom"]': {
20416
20423
  marginTop: arrowGap - 2,
@@ -25111,7 +25118,8 @@ var tooltipStyle = objectSpread2_default()(objectSpread2_default()({}, tooltip_a
25111
25118
  '&[data-soui-type^="light"]': {
25112
25119
  backgroundColor: src.tooltipLightBackgroundColor,
25113
25120
  color: src.tooltipLightColor,
25114
- border: "1px solid ".concat(src.tooltipLightBorderColor)
25121
+ border: "1px solid ".concat(src.tooltipLightBorderColor),
25122
+ boxSizing: 'border-box'
25115
25123
  },
25116
25124
  '&[data-soui-type^="primary"]': {
25117
25125
  backgroundColor: src.tooltipPrimaryBackgroundColor,
@@ -25135,12 +25143,12 @@ var tooltipStyle = objectSpread2_default()(objectSpread2_default()({}, tooltip_a
25135
25143
  content: '" "',
25136
25144
  display: 'block',
25137
25145
  border: "inherit",
25138
- borderLeft: 'none',
25146
+ borderLeftColor: 'transparent',
25139
25147
  width: '8.4px',
25140
25148
  height: '8.4px',
25141
25149
  boxSizing: 'content-box',
25142
25150
  background: 'inherit',
25143
- borderBottom: 'none'
25151
+ borderBottomColor: 'transparent'
25144
25152
  },
25145
25153
  '&[data-soui-position^="bottom"]': {
25146
25154
  marginTop: tooltip_arrowGap - 2,
@@ -25623,16 +25631,35 @@ var treeStyle = {
25623
25631
  cursor: 'pointer',
25624
25632
  padding: "0 ".concat(src.treePaddingX),
25625
25633
  borderRadius: src.treeContentBorderRadius,
25634
+ position: 'relative',
25635
+ '&[data-expanded="true"]::before': {
25636
+ content: '""',
25637
+ position: 'absolute',
25638
+ top: 24,
25639
+ bottom: 0,
25640
+ left: -12,
25641
+ width: 1,
25642
+ background: '#ebebeb'
25643
+ },
25644
+ '&[dir=ltr][data-expanded="true"]::before': {
25645
+ left: -12
25646
+ },
25647
+ '&[dir=rtl][data-expanded="true"]::before': {
25648
+ right: -12
25649
+ },
25626
25650
  '&[data-active="true"]': {
25627
25651
  background: src.treeContentActiveBackgroundColor,
25628
25652
  '& $text': {
25629
25653
  color: src.treeContentActiveFontColor
25630
25654
  }
25631
25655
  },
25632
- '&[data-disabled="true"]': {
25633
- cursor: 'not-allowed'
25634
- },
25635
- '&:hover:not([data-active="true"]):not([data-disabled="true"])': {
25656
+ // '&[data-disabled="true"]': {
25657
+ // cursor: 'not-allowed',
25658
+ // },
25659
+ // '&:hover:not([data-active="true"]):not([data-disabled="true"])': {
25660
+ // background: Token.treeContentHoverBackgroundColor,
25661
+ // },
25662
+ '&:hover:not([data-active="true"])': {
25636
25663
  background: src.treeContentHoverBackgroundColor
25637
25664
  }
25638
25665
  },
@@ -25649,9 +25676,9 @@ var treeStyle = {
25649
25676
  paddingTop: src.treeTextPaddingY,
25650
25677
  paddingBottom: src.treeTextPaddingY
25651
25678
  },
25652
- textDisabled: {
25653
- color: src.treeItemDisabledFontColor
25654
- },
25679
+ // textDisabled: {
25680
+ // color: Token.treeItemDisabledFontColor,
25681
+ // },
25655
25682
  list: {},
25656
25683
  node: {
25657
25684
  position: 'relative',
@@ -27547,7 +27574,7 @@ var usePositionStyle = function usePositionStyle(config) {
27547
27574
  // EXTERNAL MODULE: external {"root":"ReactDOM","commonjs2":"react-dom","commonjs":"react-dom","amd":"react-dom"}
27548
27575
  var external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_ = __webpack_require__(5156);
27549
27576
  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_);
27550
- ;// CONCATENATED MODULE: ../../node_modules/.pnpm/@shined+reactive@0.1.2_react@18.2.0/node_modules/@shined/reactive/dist/chunk-LM54EYM4.js
27577
+ ;// CONCATENATED MODULE: ../../node_modules/.pnpm/@shined+reactive@0.1.3-alpha.0_react@18.2.0/node_modules/@shined/reactive/dist/chunk-IP2WBRUX.js
27551
27578
 
27552
27579
  // src/vanilla/ref.ts
27553
27580
  function _array_like_to_array(arr, len) {
@@ -27627,16 +27654,16 @@ function hasRef(k) {
27627
27654
  var SNAPSHOT = Symbol("SNAPSHOT");
27628
27655
  var LISTENERS = Symbol("LISTENERS");
27629
27656
  var REACTIVE = Symbol("REACTIVE");
27630
- var chunk_LM54EYM4_isProduction = (/* unused pure expression or super */ null && ("production" === "production"));
27657
+ var chunk_IP2WBRUX_isProduction = (/* unused pure expression or super */ null && ("production" === "production"));
27631
27658
  var hasOwn = Object.prototype.hasOwnProperty;
27632
- var chunk_LM54EYM4_isObject = function isObject(x) {
27659
+ var chunk_IP2WBRUX_isObject = function isObject(x) {
27633
27660
  return helpers_typeof(x) === "object" && x !== null;
27634
27661
  };
27635
27662
  var createObjectFromPrototype = function createObjectFromPrototype(target) {
27636
27663
  return Array.isArray(target) ? [] : Object.create(Object.getPrototypeOf(target));
27637
27664
  };
27638
27665
  var canProxy = function canProxy(x) {
27639
- 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);
27666
+ 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);
27640
27667
  };
27641
27668
  var numberReg = /^\d+$/;
27642
27669
  var propertyKeysToPath = function propertyKeysToPath(keys) {
@@ -27680,7 +27707,7 @@ var get = function get(object, path) {
27680
27707
  }
27681
27708
  return object;
27682
27709
  };
27683
- var chunk_LM54EYM4_shallowEqual = function shallowEqual(objA, objB) {
27710
+ var chunk_IP2WBRUX_shallowEqual = function shallowEqual(objA, objB) {
27684
27711
  if (Object.is(objA, objB)) {
27685
27712
  return true;
27686
27713
  }
@@ -27828,7 +27855,7 @@ function proxy(initState) {
27828
27855
  var preValue = Reflect.get(target, prop, receiver);
27829
27856
  var childListeners = preValue === null || preValue === void 0 ? void 0 : preValue[LISTENERS];
27830
27857
  childListeners && childListeners.delete(popPropListener(prop));
27831
- if (!chunk_LM54EYM4_isObject(value) && Object.is(preValue, value)) {
27858
+ if (!chunk_IP2WBRUX_isObject(value) && Object.is(preValue, value)) {
27832
27859
  return true;
27833
27860
  }
27834
27861
  var nextValue = value;
@@ -27901,7 +27928,7 @@ function subscribe(proxyState, callback, notifyInSync) {
27901
27928
  };
27902
27929
  }
27903
27930
  // src/vanilla/create.ts
27904
- function chunk_LM54EYM4_create(initState, options) {
27931
+ function chunk_IP2WBRUX_create(initState, options) {
27905
27932
  options !== null && options !== void 0 ? options : options = {};
27906
27933
  var proxyState = proxy(initState);
27907
27934
  var restore = function restore() {
@@ -27998,14 +28025,14 @@ function produce(obj, draftHandler) {
27998
28025
  return snapshot;
27999
28026
  }
28000
28027
 
28001
- // 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
28002
- var with_selector = __webpack_require__(314);
28003
- ;// CONCATENATED MODULE: ../../node_modules/.pnpm/@shined+reactive@0.1.2_react@18.2.0/node_modules/@shined/reactive/dist/index.js
28028
+ // 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
28029
+ var with_selector = __webpack_require__(6523);
28030
+ ;// CONCATENATED MODULE: ../../node_modules/.pnpm/@shined+reactive@0.1.3-alpha.0_react@18.2.0/node_modules/@shined/reactive/dist/index.js
28004
28031
 
28005
28032
  // src/react/use-snapshot.ts
28006
28033
 
28007
28034
 
28008
- var useSnapshot = function useSnapshot(proxyState, selectorOrOption, maybeOptions) {
28035
+ function useSnapshot(proxyState, selectorOrOption, maybeOptions) {
28009
28036
  if (selectorOrOption && typeof selectorOrOption !== "function") {
28010
28037
  maybeOptions = selectorOrOption;
28011
28038
  selectorOrOption = void 0;
@@ -28014,7 +28041,7 @@ var useSnapshot = function useSnapshot(proxyState, selectorOrOption, maybeOption
28014
28041
  tmp = _ref.sync,
28015
28042
  updateInSync = tmp === void 0 ? false : tmp,
28016
28043
  _ref_isEqual = _ref.isEqual,
28017
- isEqual = _ref_isEqual === void 0 ? chunk_LM54EYM4_shallowEqual : _ref_isEqual;
28044
+ isEqual = _ref_isEqual === void 0 ? chunk_IP2WBRUX_shallowEqual : _ref_isEqual;
28018
28045
  var _subscribe = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)(function (callback) {
28019
28046
  return subscribe(proxyState, callback, updateInSync);
28020
28047
  }, [proxyState, updateInSync]);
@@ -28026,10 +28053,10 @@ var useSnapshot = function useSnapshot(proxyState, selectorOrOption, maybeOption
28026
28053
  };
28027
28054
  var snapshot = (0,with_selector.useSyncExternalStoreWithSelector)(_subscribe, _getSnapshot, _getSnapshot, selector, isEqual);
28028
28055
  return snapshot;
28029
- };
28056
+ }
28030
28057
  // src/react/create-with-hooks.ts
28031
- var createWithHooks = function createWithHooks(initState, options) {
28032
- var store = chunk_LM54EYM4_create(initState, options);
28058
+ function createWithHooks(initState, options) {
28059
+ var store = chunk_IP2WBRUX_create(initState, options);
28033
28060
  var _useSnapshot = function _useSnapshot(selectorOrOption, maybeOptions) {
28034
28061
  if (selectorOrOption && typeof selectorOrOption !== "function") {
28035
28062
  maybeOptions = selectorOrOption;
@@ -28041,7 +28068,7 @@ var createWithHooks = function createWithHooks(initState, options) {
28041
28068
  useSnapshot: _useSnapshot
28042
28069
  });
28043
28070
  return store;
28044
- };
28071
+ }
28045
28072
 
28046
28073
  ;// CONCATENATED MODULE: ../base/src/config/index.ts
28047
28074
  /* provided dependency */ var process = __webpack_require__(147);
@@ -29690,6 +29717,58 @@ var ButtonGroup = function ButtonGroup(props) {
29690
29717
  src_button_button_0.displayName = 'ShineoutButton';
29691
29718
  src_button_button_0.Group = src_button_group;
29692
29719
  /* harmony default export */ var src_button_0 = (src_button_button_0);
29720
+ ;// CONCATENATED MODULE: ../hooks/src/common/use-unmounted-ref/index.ts
29721
+
29722
+ function useUnmountedRef() {
29723
+ var unmountedRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(false);
29724
+ (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
29725
+ unmountedRef.current = false;
29726
+ return function () {
29727
+ unmountedRef.current = true;
29728
+ };
29729
+ }, []);
29730
+ return unmountedRef;
29731
+ }
29732
+ /* harmony default export */ var use_unmounted_ref = ((/* unused pure expression or super */ null && (useUnmountedRef)));
29733
+ ;// CONCATENATED MODULE: ../hooks/src/common/use-safe-state/index.ts
29734
+
29735
+
29736
+
29737
+
29738
+ function useSafeState(initialState) {
29739
+ var unmountedRef = useUnmountedRef();
29740
+ var _useState = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(initialState),
29741
+ _useState2 = slicedToArray_default()(_useState, 2),
29742
+ state = _useState2[0],
29743
+ setState = _useState2[1];
29744
+ var setCurrentState = usePersistFn(function (currentState) {
29745
+ if (!unmountedRef.current) {
29746
+ setState(currentState);
29747
+ }
29748
+ });
29749
+ return [state, setCurrentState];
29750
+ }
29751
+ /* harmony default export */ var use_safe_state = ((/* unused pure expression or super */ null && (useSafeState)));
29752
+ ;// CONCATENATED MODULE: ../hooks/src/common/use-render/index.ts
29753
+
29754
+
29755
+
29756
+
29757
+ function useRender(callback) {
29758
+ var _useSafeState = useSafeState(undefined),
29759
+ _useSafeState2 = slicedToArray_default()(_useSafeState, 2),
29760
+ count = _useSafeState2[0],
29761
+ setCount = _useSafeState2[1];
29762
+ (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
29763
+ if (callback && count !== undefined) callback();
29764
+ }, [count]);
29765
+ return usePersistFn(function () {
29766
+ return setCount(function (count) {
29767
+ return ((count || 0) + 1) % 1000000;
29768
+ });
29769
+ });
29770
+ }
29771
+ /* harmony default export */ var use_render = (useRender);
29693
29772
  ;// CONCATENATED MODULE: ../hooks/src/common/use-drag-mock/use-drag-mock.ts
29694
29773
 
29695
29774
 
@@ -29970,6 +30049,7 @@ var Card = function Card(props) {
29970
30049
  style = _props$style === void 0 ? {} : _props$style;
29971
30050
  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);
29972
30051
  var panelRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
30052
+ var forceUpdate = useRender();
29973
30053
  var _useRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)({
29974
30054
  id: undefined
29975
30055
  }),
@@ -29989,9 +30069,12 @@ var Card = function Card(props) {
29989
30069
  activeId = _useContext.activeId,
29990
30070
  getDefaultId = _useContext.getDefaultId,
29991
30071
  onActiveChange = _useContext.onActiveChange;
29992
- if (context.id === undefined) {
29993
- context.id = getDefaultId();
29994
- }
30072
+ (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
30073
+ if (context.id === undefined) {
30074
+ context.id = getDefaultId();
30075
+ forceUpdate();
30076
+ }
30077
+ }, []);
29995
30078
  var id = (_props$id = props.id) !== null && _props$id !== void 0 ? _props$id : context.id;
29996
30079
  var collapsible = props.collapsible || inAccordion;
29997
30080
  var getCollpased = function getCollpased() {
@@ -30342,58 +30425,6 @@ CardComp.Footer = FooterComp;
30342
30425
  CardComp.Accordion = AccordionComp;
30343
30426
  CardComp.Submit = SubmitComp;
30344
30427
  /* harmony default export */ var src_card_0 = (CardComp);
30345
- ;// CONCATENATED MODULE: ../hooks/src/common/use-unmounted-ref/index.ts
30346
-
30347
- function useUnmountedRef() {
30348
- var unmountedRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(false);
30349
- (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
30350
- unmountedRef.current = false;
30351
- return function () {
30352
- unmountedRef.current = true;
30353
- };
30354
- }, []);
30355
- return unmountedRef;
30356
- }
30357
- /* harmony default export */ var use_unmounted_ref = ((/* unused pure expression or super */ null && (useUnmountedRef)));
30358
- ;// CONCATENATED MODULE: ../hooks/src/common/use-safe-state/index.ts
30359
-
30360
-
30361
-
30362
-
30363
- function useSafeState(initialState) {
30364
- var unmountedRef = useUnmountedRef();
30365
- var _useState = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(initialState),
30366
- _useState2 = slicedToArray_default()(_useState, 2),
30367
- state = _useState2[0],
30368
- setState = _useState2[1];
30369
- var setCurrentState = usePersistFn(function (currentState) {
30370
- if (!unmountedRef.current) {
30371
- setState(currentState);
30372
- }
30373
- });
30374
- return [state, setCurrentState];
30375
- }
30376
- /* harmony default export */ var use_safe_state = ((/* unused pure expression or super */ null && (useSafeState)));
30377
- ;// CONCATENATED MODULE: ../hooks/src/common/use-render/index.ts
30378
-
30379
-
30380
-
30381
-
30382
- function useRender(callback) {
30383
- var _useSafeState = useSafeState(undefined),
30384
- _useSafeState2 = slicedToArray_default()(_useSafeState, 2),
30385
- count = _useSafeState2[0],
30386
- setCount = _useSafeState2[1];
30387
- (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
30388
- if (callback && count !== undefined) callback();
30389
- }, [count]);
30390
- return usePersistFn(function () {
30391
- return setCount(function (count) {
30392
- return ((count || 0) + 1) % 1000000;
30393
- });
30394
- });
30395
- }
30396
- /* harmony default export */ var use_render = (useRender);
30397
30428
  ;// CONCATENATED MODULE: ../base/src/card-group/card-group-context.ts
30398
30429
  "use client";
30399
30430
 
@@ -31821,7 +31852,8 @@ var Popover = function Popover(props) {
31821
31852
  onMouseLeave: events.onMouseLeave,
31822
31853
  dir: config.direction,
31823
31854
  children: [showArrow && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
31824
- className: popoverStyle === null || popoverStyle === void 0 ? void 0 : popoverStyle.arrow
31855
+ className: popoverStyle === null || popoverStyle === void 0 ? void 0 : popoverStyle.arrow,
31856
+ dir: config.direction
31825
31857
  }), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
31826
31858
  style: style,
31827
31859
  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)),
@@ -35978,9 +36010,9 @@ var result_Result = function Result(props) {
35978
36010
  mounted.current = true;
35979
36011
  }, [focus]);
35980
36012
  (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
35981
- handleResetMore();
36013
+ setTimeout(handleResetMore);
35982
36014
  }, [valueProp, data]);
35983
- (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useLayoutEffect)(function () {
36015
+ (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
35984
36016
  if (shouldResetMore && more === -1 && compressed && resultRef.current && (props.value || [].length)) {
35985
36017
  var tagClassName = ".".concat(styles.tag.split(' ')[0]);
35986
36018
  if (shouldResetMore && result_isArray(value) && (value || []).length) {
@@ -47430,7 +47462,8 @@ var NodeContent = function NodeContent(props) {
47430
47462
  var contentStyle = (jssStyle === null || jssStyle === void 0 ? void 0 : jssStyle.tree()) || {};
47431
47463
  var rootClass = classnames_default()(contentStyle.contentWrapper, defineProperty_default()(defineProperty_default()({}, contentStyle.childnode, data[childrenKey] && data[childrenKey].length > 0), contentStyle.inlineContent, inlineNode));
47432
47464
  var contentClass = classnames_default()(contentStyle.content, isString(contentClassProp) && contentClassProp, isFunc(contentClassProp) && contentClassProp(data));
47433
- var textClass = classnames_default()(contentStyle.text, disabled ? contentStyle.textDisabled : '');
47465
+ // const textClass = classNames(contentStyle.text, disabled ? contentStyle.textDisabled : '');
47466
+ var textClass = classnames_default()(contentStyle.text);
47434
47467
  var hasExpandIcons = expandIcons !== undefined;
47435
47468
  var children = data[childrenKey];
47436
47469
  var hasChildren = children && children.length > 0;
@@ -47439,9 +47472,9 @@ var NodeContent = function NodeContent(props) {
47439
47472
  if (highlight) {
47440
47473
  dataProps['data-active'] = active;
47441
47474
  }
47442
- if (disabled) {
47443
- dataProps['data-disabled'] = disabled;
47444
- }
47475
+ // if (disabled) {
47476
+ // dataProps['data-disabled'] = disabled;
47477
+ // }
47445
47478
  return dataProps;
47446
47479
  };
47447
47480
  var handleIndicatorClick = function handleIndicatorClick() {
@@ -47458,7 +47491,7 @@ var NodeContent = function NodeContent(props) {
47458
47491
  }
47459
47492
  };
47460
47493
  var handleNodeClick = function handleNodeClick() {
47461
- if (disabled) return;
47494
+ // if (disabled) return;
47462
47495
  if (parentClickExpand && hasChildren) {
47463
47496
  handleIndicatorClick();
47464
47497
  } else {
@@ -47545,6 +47578,7 @@ var NodeContent = function NodeContent(props) {
47545
47578
  dir: config.direction,
47546
47579
  children: [renderIndicator(), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", objectSpread2_default()(objectSpread2_default()(objectSpread2_default()({
47547
47580
  dir: config.direction,
47581
+ "data-expanded": expanded,
47548
47582
  ref: bindContent,
47549
47583
  className: contentClass
47550
47584
  }, contentDataProps()), contentEvent), {}, {
@@ -47844,6 +47878,10 @@ var Node = function Node(props) {
47844
47878
  onChange: onChange,
47845
47879
  onToggle: onToggle,
47846
47880
  onNodeClick: onNodeClick,
47881
+ onDragOver: onDragOver,
47882
+ onDragLeave: onDragLeave,
47883
+ onDragStart: onDragStart,
47884
+ onDragEnd: onDragEnd,
47847
47885
  bindNode: bindNode,
47848
47886
  childrenClassName: childrenClass(data),
47849
47887
  childrenKey: childrenKey,
@@ -48098,6 +48136,10 @@ var Tree = function Tree(props) {
48098
48136
  onDragStart = props.onDragStart,
48099
48137
  propsDatum = props.datum,
48100
48138
  rest = objectWithoutProperties_default()(props, tree_excluded);
48139
+ var _useRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)({
48140
+ mounted: false
48141
+ }),
48142
+ context = _useRef.current;
48101
48143
  var _useTree = use_tree({
48102
48144
  mode: mode,
48103
48145
  value: value,
@@ -48213,6 +48255,11 @@ var Tree = function Tree(props) {
48213
48255
  }
48214
48256
  };
48215
48257
  (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
48258
+ // 首次渲染不更新
48259
+ if (!context.mounted) {
48260
+ return;
48261
+ }
48262
+ if (!props.expanded) return;
48216
48263
  handleUpdateExpanded(expanded);
48217
48264
  }, [expanded]);
48218
48265
  (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
@@ -48221,6 +48268,7 @@ var Tree = function Tree(props) {
48221
48268
  }, [active]);
48222
48269
  (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
48223
48270
  if (getDatum) getDatum(datum);
48271
+ context.mounted = true;
48224
48272
  }, []);
48225
48273
  return /*#__PURE__*/(0,jsx_runtime.jsx)("div", objectSpread2_default()(objectSpread2_default()({
48226
48274
  className: rootClass
@@ -62166,7 +62214,7 @@ var upload_interface = __webpack_require__(4412);
62166
62214
 
62167
62215
 
62168
62216
  /* harmony default export */ var src_0 = ({
62169
- version: '3.1.12'
62217
+ version: '3.1.14'
62170
62218
  });
62171
62219
  }();
62172
62220
  /******/ return __webpack_exports__;