@nutui/nutui-react 2.6.3 → 2.6.5

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 (98) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/dist/esm/ActionSheet.js +0 -1
  3. package/dist/esm/Address.js +0 -1
  4. package/dist/esm/Animate.js +0 -1
  5. package/dist/esm/Avatar.js +2 -3
  6. package/dist/esm/AvatarCropper.js +0 -1
  7. package/dist/esm/AvatarGroup.js +0 -1
  8. package/dist/esm/BackTop.js +0 -1
  9. package/dist/esm/Barrage.js +0 -1
  10. package/dist/esm/Calendar.js +0 -1
  11. package/dist/esm/CalendarCard.js +0 -1
  12. package/dist/esm/CalendarItem.js +3 -4
  13. package/dist/esm/Card.js +0 -1
  14. package/dist/esm/Cell.js +0 -1
  15. package/dist/esm/CellGroup.js +0 -1
  16. package/dist/esm/CircleProgress.js +3 -5
  17. package/dist/esm/Col.js +0 -1
  18. package/dist/esm/Collapse.js +0 -1
  19. package/dist/esm/CountDown.js +0 -1
  20. package/dist/esm/Divider.js +0 -1
  21. package/dist/esm/Drag.js +1 -2
  22. package/dist/esm/Elevator.js +0 -1
  23. package/dist/esm/Ellipsis.js +0 -1
  24. package/dist/esm/Empty.js +0 -1
  25. package/dist/esm/FixedNav.js +0 -1
  26. package/dist/esm/Form.js +0 -1
  27. package/dist/esm/Grid.js +0 -1
  28. package/dist/esm/Image.js +2 -3
  29. package/dist/esm/ImagePreview.js +8 -10
  30. package/dist/esm/Indicator.js +0 -1
  31. package/dist/esm/InfiniteLoading.js +0 -1
  32. package/dist/esm/Input.js +6 -9
  33. package/dist/esm/InputNumber.js +0 -1
  34. package/dist/esm/Layout.js +0 -1
  35. package/dist/esm/Loading.js +0 -1
  36. package/dist/esm/Menu/style/style.css +1 -1
  37. package/dist/esm/Menu.js +0 -1
  38. package/dist/esm/MenuItem/style/style.css +1 -1
  39. package/dist/esm/NavBar.js +0 -1
  40. package/dist/esm/NoticeBar.js +0 -1
  41. package/dist/esm/NumberKeyboard.js +1 -2
  42. package/dist/esm/Pagination.js +0 -1
  43. package/dist/esm/Popover.js +4 -8
  44. package/dist/esm/Price.js +0 -1
  45. package/dist/esm/Progress.js +0 -1
  46. package/dist/esm/Range.js +0 -1
  47. package/dist/esm/Rate.js +0 -1
  48. package/dist/esm/Row.js +0 -1
  49. package/dist/esm/SearchBar.js +6 -7
  50. package/dist/esm/ShortPassword.js +2 -2
  51. package/dist/esm/SideNavBar.js +4 -5
  52. package/dist/esm/Signature.js +0 -1
  53. package/dist/esm/Skeleton.js +0 -1
  54. package/dist/esm/Space.js +0 -1
  55. package/dist/esm/Step.js +0 -1
  56. package/dist/esm/Steps.js +1 -2
  57. package/dist/esm/Sticky.js +0 -1
  58. package/dist/esm/Switch.js +0 -1
  59. package/dist/esm/Tabbar.js +0 -1
  60. package/dist/esm/Table/style/style.css +1 -1
  61. package/dist/esm/Table.js +1 -2
  62. package/dist/esm/Tag.js +0 -1
  63. package/dist/esm/TextArea.js +0 -1
  64. package/dist/esm/TimeDetail.js +0 -1
  65. package/dist/esm/TimeSelect.js +0 -1
  66. package/dist/esm/Tour.js +0 -1
  67. package/dist/esm/TrendArrow.js +0 -1
  68. package/dist/esm/Uploader.js +2 -3
  69. package/dist/esm/Video.js +0 -1
  70. package/dist/esm/VirtualList.js +0 -1
  71. package/dist/esm/WaterMark.js +0 -1
  72. package/dist/esm/badge2.js +0 -1
  73. package/dist/esm/cascader2.js +4 -5
  74. package/dist/esm/checkbox2.js +2 -3
  75. package/dist/esm/collapseitem2.js +0 -1
  76. package/dist/esm/griditem2.js +0 -1
  77. package/dist/esm/menuitem2.js +0 -1
  78. package/dist/esm/overlay2.js +1 -2
  79. package/dist/esm/popup2.js +0 -1
  80. package/dist/esm/safearea2.js +1 -0
  81. package/dist/esm/tabs2.js +5 -6
  82. package/dist/locales/base.js +1 -1
  83. package/dist/locales/en-US.js +1 -1
  84. package/dist/locales/id-ID.js +1 -1
  85. package/dist/locales/tr-TR.js +1 -1
  86. package/dist/locales/zh-CN.js +1 -1
  87. package/dist/locales/zh-TW.js +1 -1
  88. package/dist/locales/zh-UG.js +1 -1
  89. package/dist/nutui.react.es.js +152 -230
  90. package/dist/nutui.react.umd.js +152 -230
  91. package/dist/packages/menu/menu.scss +1 -0
  92. package/dist/packages/menuitem/menuitem.scss +1 -0
  93. package/dist/packages/table/table.scss +2 -1
  94. package/dist/style.css +1 -1
  95. package/dist/style.mjs +1 -1
  96. package/dist/types/packages/checkboxgroup/checkboxgroup.d.ts +5 -1
  97. package/package.json +1 -1
  98. package/dist/types/utils/use-lock-fn.d.ts +0 -2
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react v2.6.3 Tue Apr 30 2024 14:15:24 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react v2.6.5 Fri May 17 2024 15:42:52 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1127,7 +1127,7 @@ const ComponentDefaults = {
1127
1127
  style: {}
1128
1128
  };
1129
1129
  const prefixCls$2 = "nut-button";
1130
- const defaultProps$1u = {
1130
+ const defaultProps$1t = {
1131
1131
  ...ComponentDefaults,
1132
1132
  color: "",
1133
1133
  type: "default",
@@ -1163,7 +1163,7 @@ const Button = React__default.forwardRef(
1163
1163
  onClick,
1164
1164
  ...rest
1165
1165
  } = {
1166
- ...defaultProps$1u,
1166
+ ...defaultProps$1t,
1167
1167
  ...props
1168
1168
  };
1169
1169
  const getStyle = useCallback(() => {
@@ -1222,7 +1222,7 @@ const Button = React__default.forwardRef(
1222
1222
  );
1223
1223
  Button.displayName = "NutButton";
1224
1224
  const CellGroupContext = createContext(null);
1225
- const defaultProps$1t = {
1225
+ const defaultProps$1s = {
1226
1226
  ...ComponentDefaults,
1227
1227
  title: "",
1228
1228
  description: "",
@@ -1231,7 +1231,7 @@ const defaultProps$1t = {
1231
1231
  const classPrefix$r = "nut-cell-group";
1232
1232
  const CellGroup = (props) => {
1233
1233
  const { children, className, title, description, divider, ...rest } = {
1234
- ...defaultProps$1t,
1234
+ ...defaultProps$1s,
1235
1235
  ...props
1236
1236
  };
1237
1237
  return /* @__PURE__ */ React__default.createElement("div", { className: classNames(classPrefix$r, className), ...rest }, title ? /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix$r}-title` }, title) : null, description ? /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix$r}-description` }, description) : null, /* @__PURE__ */ React__default.createElement(
@@ -1242,9 +1242,8 @@ const CellGroup = (props) => {
1242
1242
  /* @__PURE__ */ React__default.createElement(CellGroupContext.Provider, { value: { divider } }, children)
1243
1243
  ));
1244
1244
  };
1245
- CellGroup.defaultProps = defaultProps$1t;
1246
1245
  CellGroup.displayName = "NutCellGroup";
1247
- const defaultProps$1s = {
1246
+ const defaultProps$1r = {
1248
1247
  ...ComponentDefaults,
1249
1248
  title: null,
1250
1249
  description: null,
@@ -1269,7 +1268,7 @@ const Cell = (props) => {
1269
1268
  style,
1270
1269
  ...rest
1271
1270
  } = {
1272
- ...defaultProps$1s,
1271
+ ...defaultProps$1r,
1273
1272
  ...props
1274
1273
  };
1275
1274
  const handleClick2 = (event) => {
@@ -1302,7 +1301,6 @@ const Cell = (props) => {
1302
1301
  (ctx2 == null ? void 0 : ctx2.divider) ? /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix$q}-divider` }) : null
1303
1302
  );
1304
1303
  };
1305
- Cell.defaultProps = defaultProps$1s;
1306
1304
  Cell.displayName = "NutCell";
1307
1305
  Cell.Group = CellGroup;
1308
1306
  var INFINITY = 1 / 0;
@@ -2464,7 +2462,7 @@ ConfigProvider.displayName = "NutConfigProvider";
2464
2462
  const pxCheck = (value) => {
2465
2463
  return Number.isNaN(Number(value)) ? String(value) : `${value}px`;
2466
2464
  };
2467
- const defaultProps$1r = {
2465
+ const defaultProps$1q = {
2468
2466
  ...ComponentDefaults,
2469
2467
  fit: "fill",
2470
2468
  position: "center",
@@ -2490,10 +2488,11 @@ const Image$1 = (props) => {
2490
2488
  error,
2491
2489
  loading,
2492
2490
  lazy,
2491
+ draggable,
2493
2492
  onClick,
2494
2493
  onLoad,
2495
2494
  onError
2496
- } = { ...defaultProps$1r, ...props };
2495
+ } = { ...defaultProps$1q, ...props };
2497
2496
  const [innerLoading, setInnerLoading] = useState(false);
2498
2497
  const [isError, setIsError] = useState(false);
2499
2498
  const [complete, setComplete] = useState(false);
@@ -2618,7 +2617,7 @@ const Image$1 = (props) => {
2618
2617
  loading: "lazy",
2619
2618
  onLoad: handleLoad,
2620
2619
  onError: handleError,
2621
- draggable: props.draggable
2620
+ draggable
2622
2621
  }
2623
2622
  ) : /* @__PURE__ */ React__default.createElement(
2624
2623
  "img",
@@ -2630,14 +2629,13 @@ const Image$1 = (props) => {
2630
2629
  alt,
2631
2630
  onLoad: handleLoad,
2632
2631
  onError: handleError,
2633
- draggable: props.draggable
2632
+ draggable
2634
2633
  }
2635
2634
  ),
2636
2635
  renderLoading(),
2637
2636
  renderErrorImg()
2638
2637
  );
2639
2638
  };
2640
- Image$1.defaultProps = defaultProps$1r;
2641
2639
  Image$1.displayName = "NutImage";
2642
2640
  function _extends$4() {
2643
2641
  _extends$4 = Object.assign ? Object.assign.bind() : function(target) {
@@ -4598,7 +4596,7 @@ const Overlay = (props) => {
4598
4596
  setInnerVisible(false);
4599
4597
  }
4600
4598
  }, [visible]);
4601
- useLockScroll(nodeRef, !!props.lockScroll && innerVisible);
4599
+ useLockScroll(nodeRef, !!lockScroll && innerVisible);
4602
4600
  const classes = classNames(classPrefix2, className);
4603
4601
  const styles = {
4604
4602
  ...style
@@ -4638,10 +4636,9 @@ const Overlay = (props) => {
4638
4636
  )
4639
4637
  ));
4640
4638
  };
4641
- Overlay.defaultProps = defaultOverlayProps;
4642
4639
  Overlay.displayName = "NutOverlay";
4643
4640
  const DataContext$1 = createContext({});
4644
- const defaultProps$1q = {
4641
+ const defaultProps$1p = {
4645
4642
  ...ComponentDefaults,
4646
4643
  span: "24",
4647
4644
  offset: "0",
@@ -4649,7 +4646,7 @@ const defaultProps$1q = {
4649
4646
  };
4650
4647
  const Col = (props) => {
4651
4648
  const { className, style, span, offset, children, onClick } = {
4652
- ...defaultProps$1q,
4649
+ ...defaultProps$1p,
4653
4650
  ...props
4654
4651
  };
4655
4652
  const [colName, setColName] = useState("");
@@ -4681,9 +4678,8 @@ const Col = (props) => {
4681
4678
  children
4682
4679
  );
4683
4680
  };
4684
- Col.defaultProps = defaultProps$1q;
4685
4681
  Col.displayName = "NutCol";
4686
- const defaultProps$1p = {
4682
+ const defaultProps$1o = {
4687
4683
  ...ComponentDefaults,
4688
4684
  contentPosition: "center",
4689
4685
  direction: "horizontal"
@@ -4691,7 +4687,7 @@ const defaultProps$1p = {
4691
4687
  const classPrefix$n = `nut-divider`;
4692
4688
  const Divider = (props) => {
4693
4689
  const { children, contentPosition, style, className, direction, ...rest } = {
4694
- ...defaultProps$1p,
4690
+ ...defaultProps$1o,
4695
4691
  ...props
4696
4692
  };
4697
4693
  const classes = direction === "horizontal" ? classNames({
@@ -4706,14 +4702,13 @@ const Divider = (props) => {
4706
4702
  });
4707
4703
  return /* @__PURE__ */ React__default.createElement("div", { className: `${classes} ${className || ""}`, style, ...rest }, children);
4708
4704
  };
4709
- Divider.defaultProps = defaultProps$1p;
4710
4705
  Divider.displayName = "NutDivider";
4711
4706
  const gridContext = {
4712
4707
  onClick: (item, index) => {
4713
4708
  }
4714
4709
  };
4715
4710
  const GridContext = React__default.createContext(gridContext);
4716
- const defaultProps$1o = {
4711
+ const defaultProps$1n = {
4717
4712
  text: "",
4718
4713
  columns: 4,
4719
4714
  gap: 0,
@@ -4739,7 +4734,7 @@ const GridItem = (props) => {
4739
4734
  onClick,
4740
4735
  ...rest
4741
4736
  } = {
4742
- ...defaultProps$1o,
4737
+ ...defaultProps$1n,
4743
4738
  ...props
4744
4739
  };
4745
4740
  const classPrefix2 = "nut-grid-item";
@@ -4797,9 +4792,8 @@ const GridItem = (props) => {
4797
4792
  /* @__PURE__ */ React__default.createElement("div", { className: contentClass() }, children && /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, children), text && /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-text` }, text))
4798
4793
  );
4799
4794
  };
4800
- GridItem.defaultProps = defaultProps$1o;
4801
4795
  GridItem.displayName = "NutGridItem";
4802
- const defaultProps$1n = {
4796
+ const defaultProps$1m = {
4803
4797
  columns: 4,
4804
4798
  gap: 0,
4805
4799
  center: true,
@@ -4820,7 +4814,7 @@ const Grid = (props) => {
4820
4814
  className,
4821
4815
  onClick,
4822
4816
  ...rest
4823
- } = { ...defaultProps$1n, ...props };
4817
+ } = { ...defaultProps$1m, ...props };
4824
4818
  const childrenDom = React__default.Children.toArray(children);
4825
4819
  const classPrefix2 = "nut-grid";
4826
4820
  const rootClass = () => {
@@ -4854,18 +4848,16 @@ const Grid = (props) => {
4854
4848
  });
4855
4849
  })));
4856
4850
  };
4857
- Grid.defaultProps = defaultProps$1n;
4858
4851
  Grid.displayName = "NutGrid";
4859
4852
  Grid.Item = GridItem;
4860
- const defaultProps$1m = {};
4853
+ const defaultProps$1l = {};
4861
4854
  const Layout = (props) => {
4862
- ({ ...defaultProps$1m, ...props });
4855
+ ({ ...defaultProps$1l, ...props });
4863
4856
  return /* @__PURE__ */ React__default.createElement("div", { className: "nut-layout" }, "Layout");
4864
4857
  };
4865
- Layout.defaultProps = defaultProps$1m;
4866
4858
  Layout.displayName = "NutLayout";
4867
4859
  const classPrefix$m = "nut-row";
4868
- const defaultProps$1l = {
4860
+ const defaultProps$1k = {
4869
4861
  ...ComponentDefaults,
4870
4862
  type: "",
4871
4863
  justify: "start",
@@ -4885,7 +4877,7 @@ const Row = (props) => {
4885
4877
  gutter,
4886
4878
  onClick
4887
4879
  } = {
4888
- ...defaultProps$1l,
4880
+ ...defaultProps$1k,
4889
4881
  ...props
4890
4882
  };
4891
4883
  const getClass = (prefix2, type22) => {
@@ -4917,15 +4909,14 @@ const Row = (props) => {
4917
4909
  children
4918
4910
  ));
4919
4911
  };
4920
- Row.defaultProps = defaultProps$1l;
4921
4912
  Row.displayName = "NutRow";
4922
4913
  const prefixCls$1 = "nut-space";
4923
- const defaultProps$1k = {
4914
+ const defaultProps$1j = {
4924
4915
  direction: "horizontal"
4925
4916
  };
4926
4917
  const Space = (props) => {
4927
4918
  const { className, style, children, wrap, align, direction, justify } = {
4928
- ...defaultProps$1k,
4919
+ ...defaultProps$1j,
4929
4920
  ...props
4930
4921
  };
4931
4922
  const cls = classNames(
@@ -4940,7 +4931,6 @@ const Space = (props) => {
4940
4931
  return child !== null && child !== void 0 && /* @__PURE__ */ React__default.createElement("div", { className: `${prefixCls$1}-item` }, child);
4941
4932
  }));
4942
4933
  };
4943
- Space.defaultProps = defaultProps$1k;
4944
4934
  Space.displayName = "NutSpace";
4945
4935
  function isWindow(val) {
4946
4936
  return val === window;
@@ -4994,7 +4984,7 @@ function useWatch(dep, callback, config2 = { immediate: false }) {
4994
4984
  stop2.current = true;
4995
4985
  };
4996
4986
  }
4997
- const defaultProps$1j = {
4987
+ const defaultProps$1i = {
4998
4988
  ...ComponentDefaults,
4999
4989
  position: "top",
5000
4990
  threshold: 0,
@@ -5012,7 +5002,7 @@ const Sticky = (props) => {
5012
5002
  threshold,
5013
5003
  onChange,
5014
5004
  ...rest
5015
- } = { ...defaultProps$1j, ...props };
5005
+ } = { ...defaultProps$1i, ...props };
5016
5006
  const stickyRef = useRef(null);
5017
5007
  const rootRef = useRef(null);
5018
5008
  const [isFixed, setIsFixed] = useState(false);
@@ -5128,7 +5118,6 @@ const Sticky = (props) => {
5128
5118
  /* @__PURE__ */ React__default.createElement("div", { className: "nut-sticky-box", ref: stickyRef, style: stickyStyle }, children)
5129
5119
  );
5130
5120
  };
5131
- Sticky.defaultProps = defaultProps$1j;
5132
5121
  Sticky.displayName = "NutSticky";
5133
5122
  const classPrefix$k = "nut-safe-area";
5134
5123
  const SafeArea = (props) => {
@@ -5142,7 +5131,8 @@ const SafeArea = (props) => {
5142
5131
  }
5143
5132
  );
5144
5133
  };
5145
- const defaultProps$1i = {
5134
+ SafeArea.displayName = "NutSafeArea";
5135
+ const defaultProps$1h = {
5146
5136
  ...ComponentDefaults,
5147
5137
  target: "",
5148
5138
  threshold: 200,
@@ -5161,7 +5151,7 @@ const BackTop = (props) => {
5161
5151
  style,
5162
5152
  onClick
5163
5153
  } = {
5164
- ...defaultProps$1i,
5154
+ ...defaultProps$1h,
5165
5155
  ...props
5166
5156
  };
5167
5157
  const classPrefix2 = "nut-backtop";
@@ -5258,7 +5248,6 @@ const BackTop = (props) => {
5258
5248
  children || /* @__PURE__ */ React__default.createElement(e$1, { width: 19, height: 19, className: "nut-backtop-main" })
5259
5249
  );
5260
5250
  };
5261
- BackTop.defaultProps = defaultProps$1i;
5262
5251
  BackTop.displayName = "NutBackTop";
5263
5252
  function clamp$2(v, min, max) {
5264
5253
  return Math.max(min, Math.min(v, max));
@@ -10376,7 +10365,7 @@ const host = createHost(primitives, {
10376
10365
  });
10377
10366
  const animated = host.animated;
10378
10367
  const elevatorContext = createContext({});
10379
- const defaultProps$1h = {
10368
+ const defaultProps$1g = {
10380
10369
  ...ComponentDefaults,
10381
10370
  height: "200px",
10382
10371
  floorKey: "title",
@@ -10402,7 +10391,7 @@ const Elevator = (props) => {
10402
10391
  children,
10403
10392
  ...rest
10404
10393
  } = {
10405
- ...defaultProps$1h,
10394
+ ...defaultProps$1g,
10406
10395
  ...props
10407
10396
  };
10408
10397
  const classPrefix2 = "nut-elevator";
@@ -10578,10 +10567,9 @@ const Elevator = (props) => {
10578
10567
  })
10579
10568
  ))) : null);
10580
10569
  };
10581
- Elevator.defaultProps = defaultProps$1h;
10582
10570
  Elevator.displayName = "NutElevator";
10583
10571
  Elevator.Context = elevatorContext;
10584
- const defaultProps$1g = {
10572
+ const defaultProps$1f = {
10585
10573
  ...ComponentDefaults,
10586
10574
  activeText: "",
10587
10575
  inactiveText: "",
@@ -10609,7 +10597,7 @@ const FixedNav = (props) => {
10609
10597
  content,
10610
10598
  ...rest
10611
10599
  } = {
10612
- ...defaultProps$1g,
10600
+ ...defaultProps$1f,
10613
10601
  ...props
10614
10602
  };
10615
10603
  const classPrefix2 = "nut-fixednav";
@@ -10661,9 +10649,8 @@ const FixedNav = (props) => {
10661
10649
  /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-btn`, onClick: () => onUpdateValue() }, content || /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(e$d, { color: "#fff" }), /* @__PURE__ */ React__default.createElement("div", { className: "text" }, visible ? activeText || locale.fixednav.activeText : inactiveText || locale.fixednav.inactiveText)))
10662
10650
  );
10663
10651
  };
10664
- FixedNav.defaultProps = defaultProps$1g;
10665
10652
  FixedNav.displayName = "NutFixedNav";
10666
- const defaultProps$1f = {
10653
+ const defaultProps$1e = {
10667
10654
  ...ComponentDefaults,
10668
10655
  left: "",
10669
10656
  right: "",
@@ -10688,7 +10675,7 @@ const NavBar = (props) => {
10688
10675
  zIndex,
10689
10676
  onBackClick
10690
10677
  } = {
10691
- ...defaultProps$1f,
10678
+ ...defaultProps$1e,
10692
10679
  ...props
10693
10680
  };
10694
10681
  const classPrefix2 = "nut-navbar";
@@ -10764,9 +10751,8 @@ const NavBar = (props) => {
10764
10751
  const cls = classNames(classPrefix2, classes, className);
10765
10752
  return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, fixed && placeholder ? /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-placeholder` }, renderWrapper()) : renderWrapper());
10766
10753
  };
10767
- NavBar.defaultProps = defaultProps$1f;
10768
10754
  NavBar.displayName = "NutNavBar";
10769
- const defaultProps$1e = {
10755
+ const defaultProps$1d = {
10770
10756
  ...ComponentDefaults,
10771
10757
  position: "center",
10772
10758
  transition: "",
@@ -10819,7 +10805,7 @@ const Popup = (props) => {
10819
10805
  afterShow,
10820
10806
  afterClose,
10821
10807
  onClick
10822
- } = { ...defaultProps$1e, ...props };
10808
+ } = { ...defaultProps$1d, ...props };
10823
10809
  const nodeRef = React__default.useRef(null);
10824
10810
  let innerIndex = zIndex || _zIndex;
10825
10811
  const [index, setIndex] = useState(innerIndex);
@@ -10960,7 +10946,6 @@ const Popup = (props) => {
10960
10946
  }, [position, transition]);
10961
10947
  return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, renderToContainer(portal, renderNode()));
10962
10948
  };
10963
- Popup.defaultProps = defaultProps$1e;
10964
10949
  Popup.displayName = "NutPopup";
10965
10950
  const handleClick = (e2) => {
10966
10951
  e2.stopPropagation();
@@ -10976,7 +10961,7 @@ const handleClick = (e2) => {
10976
10961
  }
10977
10962
  };
10978
10963
  const OffsetContext = createContext(20);
10979
- const defaultProps$1d = {
10964
+ const defaultProps$1c = {
10980
10965
  ...ComponentDefaults,
10981
10966
  position: "left",
10982
10967
  width: "80%"
@@ -10991,12 +10976,13 @@ const SideNavBar = (props) => {
10991
10976
  children,
10992
10977
  className,
10993
10978
  onClose,
10979
+ indent,
10994
10980
  ...rest
10995
10981
  } = {
10996
- ...defaultProps$1d,
10982
+ ...defaultProps$1c,
10997
10983
  ...props
10998
10984
  };
10999
- const indent = props.indent ? Number(props.indent) : 20;
10985
+ const innerIndent = indent ? Number(indent) : 20;
11000
10986
  return /* @__PURE__ */ React__default.createElement(
11001
10987
  Popup,
11002
10988
  {
@@ -11015,17 +11001,16 @@ const SideNavBar = (props) => {
11015
11001
  "div",
11016
11002
  {
11017
11003
  className: `${classPrefix2}-title ${classPrefix2}-border-bt`,
11018
- style: { paddingLeft: `${indent}px` }
11004
+ style: { paddingLeft: `${innerIndent}px` }
11019
11005
  },
11020
11006
  title,
11021
11007
  " ",
11022
11008
  /* @__PURE__ */ React__default.createElement("i", { className: "arrow-icon arrow-down" })
11023
11009
  ),
11024
- /* @__PURE__ */ React__default.createElement(OffsetContext.Provider, { value: indent }, /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-content` }, children))
11010
+ /* @__PURE__ */ React__default.createElement(OffsetContext.Provider, { value: innerIndent }, /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-content` }, children))
11025
11011
  )))
11026
11012
  );
11027
11013
  };
11028
- SideNavBar.defaultProps = defaultProps$1d;
11029
11014
  SideNavBar.displayName = "NutSideNavBar";
11030
11015
  const SideNavBarItem = (props) => {
11031
11016
  const classPrefix2 = "nut-subsidenavbar";
@@ -11044,13 +11029,13 @@ const SideNavBarItem = (props) => {
11044
11029
  title
11045
11030
  );
11046
11031
  };
11047
- const defaultProps$1c = {
11032
+ const defaultProps$1b = {
11048
11033
  open: true
11049
11034
  };
11050
11035
  const SubSideNavBar = (props) => {
11051
11036
  const classPrefix2 = "nut-subsidenavbar";
11052
11037
  const { title, value, children, onClick, open, ...rest } = {
11053
- ...defaultProps$1c,
11038
+ ...defaultProps$1b,
11054
11039
  ...props
11055
11040
  };
11056
11041
  const offset = useContext(OffsetContext);
@@ -11127,7 +11112,7 @@ function usePropsValue({
11127
11112
  );
11128
11113
  return [stateRef.current, setState];
11129
11114
  }
11130
- const defaultProps$1b = {
11115
+ const defaultProps$1a = {
11131
11116
  ...ComponentDefaults,
11132
11117
  value: "",
11133
11118
  dot: false,
@@ -11152,7 +11137,7 @@ const Badge = (props) => {
11152
11137
  color,
11153
11138
  fill
11154
11139
  } = {
11155
- ...defaultProps$1b,
11140
+ ...defaultProps$1a,
11156
11141
  ...props
11157
11142
  };
11158
11143
  const classPrefix2 = "nut-badge";
@@ -11208,10 +11193,9 @@ const Badge = (props) => {
11208
11193
  };
11209
11194
  return /* @__PURE__ */ React__default.createElement("div", { className: classes, style }, isIcon() && /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-icon` }, value), children, !isIcon() && /* @__PURE__ */ React__default.createElement("div", { className: contentClasses, style: getStyle() }, content()));
11210
11195
  };
11211
- Badge.defaultProps = defaultProps$1b;
11212
11196
  Badge.displayName = "NutBadge";
11213
11197
  const TabbarContext = React__default.createContext(null);
11214
- const defaultProps$1a = {
11198
+ const defaultProps$19 = {
11215
11199
  ...ComponentDefaults,
11216
11200
  title: "",
11217
11201
  icon: null,
@@ -11237,7 +11221,7 @@ const TabbarItem = (props) => {
11237
11221
  index,
11238
11222
  ...rest
11239
11223
  } = {
11240
- ...defaultProps$1a,
11224
+ ...defaultProps$19,
11241
11225
  ...props
11242
11226
  };
11243
11227
  const active = index === (ctx2 == null ? void 0 : ctx2.selectIndex);
@@ -11275,7 +11259,7 @@ const TabbarItem = (props) => {
11275
11259
  icon ? /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(Badge, { ...badgeProps }, /* @__PURE__ */ React__default.createElement("div", { className: boxPrefix }, icon)), /* @__PURE__ */ React__default.createElement("div", { className: titleClass }, title)) : /* @__PURE__ */ React__default.createElement(Badge, { ...badgeProps }, /* @__PURE__ */ React__default.createElement("div", { className: titleClass }, title))
11276
11260
  );
11277
11261
  };
11278
- const defaultProps$19 = {
11262
+ const defaultProps$18 = {
11279
11263
  ...ComponentDefaults,
11280
11264
  defaultValue: 0,
11281
11265
  fixed: false,
@@ -11298,7 +11282,7 @@ const Tabbar = (props) => {
11298
11282
  style,
11299
11283
  onSwitch
11300
11284
  } = {
11301
- ...defaultProps$19,
11285
+ ...defaultProps$18,
11302
11286
  ...props
11303
11287
  };
11304
11288
  const classPrefix2 = "nut-tabbar";
@@ -11339,17 +11323,16 @@ const Tabbar = (props) => {
11339
11323
  (fixed || safeArea) && /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-safe-area` })
11340
11324
  );
11341
11325
  };
11342
- Tabbar.defaultProps = defaultProps$19;
11343
11326
  Tabbar.displayName = "NutTabbar";
11344
11327
  Tabbar.Item = TabbarItem;
11345
- const defaultProps$18 = {
11328
+ const defaultProps$17 = {
11346
11329
  title: "",
11347
11330
  value: "",
11348
11331
  disabled: false
11349
11332
  };
11350
11333
  const TabPane = (props) => {
11351
11334
  const { children, autoHeightClassName, className, disabled } = {
11352
- ...defaultProps$18,
11335
+ ...defaultProps$17,
11353
11336
  ...props
11354
11337
  };
11355
11338
  const classPrefix2 = "nut-tabpane";
@@ -11363,7 +11346,7 @@ const TabPane = (props) => {
11363
11346
  );
11364
11347
  return children ? /* @__PURE__ */ React__default.createElement("div", { className: classes }, !disabled && children) : null;
11365
11348
  };
11366
- const defaultProps$17 = {
11349
+ const defaultProps$16 = {
11367
11350
  ...ComponentDefaults,
11368
11351
  tabStyle: {},
11369
11352
  activeColor: "",
@@ -11388,14 +11371,16 @@ const Tabs = (props) => {
11388
11371
  onChange,
11389
11372
  className,
11390
11373
  autoHeight,
11374
+ value: outerValue,
11375
+ defaultValue: outerDefaultValue,
11391
11376
  ...rest
11392
11377
  } = {
11393
- ...defaultProps$17,
11378
+ ...defaultProps$16,
11394
11379
  ...props
11395
11380
  };
11396
11381
  const [value, setValue] = usePropsValue({
11397
- value: props.value,
11398
- defaultValue: props.defaultValue,
11382
+ value: outerValue,
11383
+ defaultValue: outerDefaultValue,
11399
11384
  finalValue: 0,
11400
11385
  onChange
11401
11386
  });
@@ -11425,13 +11410,13 @@ const Tabs = (props) => {
11425
11410
  }
11426
11411
  const title2 = titleItem[index];
11427
11412
  let to2 = 0;
11428
- if (props.direction === "vertical") {
11413
+ if (direction === "vertical") {
11429
11414
  const runTop = title2.offsetTop - nav.offsetTop + 10;
11430
11415
  to2 = runTop - (nav.offsetHeight - title2.offsetHeight) / 2;
11431
11416
  } else {
11432
11417
  to2 = title2.offsetLeft - (nav.offsetWidth - title2.offsetWidth) / 2;
11433
11418
  }
11434
- scrollDirection(nav, to2, immediate ? 0 : 0.3, props.direction);
11419
+ scrollDirection(nav, to2, immediate ? 0 : 0.3, direction);
11435
11420
  };
11436
11421
  const getTitles = () => {
11437
11422
  const titles2 = [];
@@ -11561,7 +11546,6 @@ const Tabs = (props) => {
11561
11546
  return React__default.cloneElement(child, childProps);
11562
11547
  }))));
11563
11548
  };
11564
- Tabs.defaultProps = defaultProps$17;
11565
11549
  Tabs.displayName = "NutTabs";
11566
11550
  Tabs.TabPane = TabPane;
11567
11551
  const formatTree = (tree, parent, config2) => tree.map((node) => {
@@ -11697,7 +11681,7 @@ class Tree {
11697
11681
  return pathNodes;
11698
11682
  }
11699
11683
  }
11700
- const defaultProps$16 = {
11684
+ const defaultProps$15 = {
11701
11685
  ...ComponentDefaults,
11702
11686
  activeColor: "",
11703
11687
  activeIcon: "checklist",
@@ -11736,11 +11720,13 @@ const InternalCascader = (props, ref) => {
11736
11720
  closeIconPosition,
11737
11721
  closeIcon,
11738
11722
  lazy,
11723
+ title,
11724
+ left,
11739
11725
  onLoad,
11740
11726
  onClose,
11741
11727
  onChange,
11742
11728
  onPathChange
11743
- } = { ...defaultProps$16, ...props };
11729
+ } = { ...defaultProps$15, ...props };
11744
11730
  const [tabvalue, setTabvalue] = useState("c1");
11745
11731
  const [optionsData, setOptionsData] = useState([]);
11746
11732
  const isLazy = () => state.configs.lazy && Boolean(state.configs.onLoad);
@@ -11750,7 +11736,7 @@ const InternalCascader = (props, ref) => {
11750
11736
  finalValue: defaultValue
11751
11737
  });
11752
11738
  const [innerVisible, setInnerVisible] = usePropsValue({
11753
- value: props.visible,
11739
+ value: visible,
11754
11740
  defaultValue: void 0,
11755
11741
  finalValue: false
11756
11742
  });
@@ -12037,8 +12023,8 @@ const InternalCascader = (props, ref) => {
12037
12023
  closeIcon,
12038
12024
  closeable,
12039
12025
  closeIconPosition,
12040
- title: popup && props.title,
12041
- left: props.left,
12026
+ title: popup && title,
12027
+ left,
12042
12028
  onOverlayClick: closePopup,
12043
12029
  onCloseIconClick: closePopup
12044
12030
  },
@@ -12046,9 +12032,8 @@ const InternalCascader = (props, ref) => {
12046
12032
  ) : renderTabs());
12047
12033
  };
12048
12034
  const Cascader = React__default.forwardRef(InternalCascader);
12049
- Cascader.defaultProps = defaultProps$16;
12050
12035
  Cascader.displayName = "NutCascader";
12051
- const defaultProps$15 = {
12036
+ const defaultProps$14 = {
12052
12037
  ...ComponentDefaults,
12053
12038
  visible: false,
12054
12039
  type: "custom",
@@ -12075,7 +12060,7 @@ const CustomRender = (props) => {
12075
12060
  onPathChange,
12076
12061
  ...rest
12077
12062
  } = {
12078
- ...defaultProps$15,
12063
+ ...defaultProps$14,
12079
12064
  ...props
12080
12065
  };
12081
12066
  return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, type4 === "custom" && /* @__PURE__ */ React__default.createElement(
@@ -12100,7 +12085,7 @@ const CustomRender = (props) => {
12100
12085
  }
12101
12086
  ));
12102
12087
  };
12103
- const defaultProps$14 = {
12088
+ const defaultProps$13 = {
12104
12089
  type: "custom",
12105
12090
  existList: [],
12106
12091
  defaultIcon: null,
@@ -12119,7 +12104,7 @@ const ExistRender = (props) => {
12119
12104
  onSelect,
12120
12105
  onSwitch,
12121
12106
  ...rest
12122
- } = { ...defaultProps$14, ...props };
12107
+ } = { ...defaultProps$13, ...props };
12123
12108
  const classPrefix2 = "nut-address";
12124
12109
  const selectedExist = (item) => {
12125
12110
  existList.forEach((list, index) => {
@@ -12148,7 +12133,7 @@ const ExistRender = (props) => {
12148
12133
  );
12149
12134
  })), (custom || custom && locale.address.chooseAnotherAddress) && /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-footer`, onClick }, /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-footer-btn` }, custom)));
12150
12135
  };
12151
- const defaultProps$13 = {
12136
+ const defaultProps$12 = {
12152
12137
  ...ComponentDefaults,
12153
12138
  defaultValue: [],
12154
12139
  type: "custom",
@@ -12190,7 +12175,7 @@ const InternalAddress = (props, ref) => {
12190
12175
  onSwitch,
12191
12176
  ...rest
12192
12177
  } = {
12193
- ...defaultProps$13,
12178
+ ...defaultProps$12,
12194
12179
  ...props
12195
12180
  };
12196
12181
  const classPrefix2 = "nut-address";
@@ -12282,7 +12267,6 @@ const InternalAddress = (props, ref) => {
12282
12267
  ));
12283
12268
  };
12284
12269
  const Address = forwardRef(InternalAddress);
12285
- Address.defaultProps = defaultProps$13;
12286
12270
  Address.displayName = "NutAddress";
12287
12271
  const Utils = {
12288
12272
  /**
@@ -12532,7 +12516,7 @@ const isEnd = (day, days) => {
12532
12516
  const isStartAndEnd = (days) => {
12533
12517
  return days.length >= 2 && Utils.isEqual(days[0], days[1]);
12534
12518
  };
12535
- const defaultProps$12 = {
12519
+ const defaultProps$11 = {
12536
12520
  ...ComponentDefaults,
12537
12521
  type: "single",
12538
12522
  autoBackfill: false,
@@ -12588,11 +12572,12 @@ const CalendarItem = React__default.forwardRef((props, ref) => {
12588
12572
  renderDay,
12589
12573
  renderDayTop,
12590
12574
  renderDayBottom,
12575
+ value,
12591
12576
  onConfirm,
12592
12577
  onUpdate,
12593
12578
  onDayClick,
12594
12579
  onPageChange
12595
- } = { ...defaultProps$12, ...props };
12580
+ } = { ...defaultProps$11, ...props };
12596
12581
  const weekdays = locale.calendaritem.weekdays;
12597
12582
  const weeks = [
12598
12583
  ...weekdays.slice(firstDayOfWeek, 7),
@@ -12624,7 +12609,7 @@ const CalendarItem = React__default.forwardRef((props, ref) => {
12624
12609
  return void 0;
12625
12610
  };
12626
12611
  const [currentDate, setCurrentDate] = usePropsValue({
12627
- value: props.value,
12612
+ value,
12628
12613
  defaultValue: resetDefaultValue(),
12629
12614
  finalValue: [],
12630
12615
  onChange: (val) => {
@@ -12830,7 +12815,7 @@ const CalendarItem = React__default.forwardRef((props, ref) => {
12830
12815
  monthsData[current.lastCurrent],
12831
12816
  true
12832
12817
  );
12833
- } else if (props.type === "week") {
12818
+ } else if (type4 === "week") {
12834
12819
  chooseDay(
12835
12820
  { day: defaultData[2], type: "curr" },
12836
12821
  monthsData[current.current],
@@ -13134,9 +13119,8 @@ const CalendarItem = React__default.forwardRef((props, ref) => {
13134
13119
  };
13135
13120
  return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement("div", { className: classes, style }, renderHeader(), renderContent(), popup && !autoBackfill ? renderFooter() : ""));
13136
13121
  });
13137
- CalendarItem.defaultProps = defaultProps$12;
13138
13122
  CalendarItem.displayName = "NutCalendarItem";
13139
- const defaultProps$11 = {
13123
+ const defaultProps$10 = {
13140
13124
  ...ComponentDefaults,
13141
13125
  type: "single",
13142
13126
  autoBackfill: false,
@@ -13199,7 +13183,7 @@ const Calendar = React__default.forwardRef((props, ref) => {
13199
13183
  onConfirm,
13200
13184
  onDayClick,
13201
13185
  onPageChange
13202
- } = { ...defaultProps$11, ...props };
13186
+ } = { ...defaultProps$10, ...props };
13203
13187
  const calendarRef = useRef(null);
13204
13188
  const close = () => {
13205
13189
  onClose && onClose();
@@ -13274,7 +13258,6 @@ const Calendar = React__default.forwardRef((props, ref) => {
13274
13258
  renderItem()
13275
13259
  ) : renderItem());
13276
13260
  });
13277
- Calendar.defaultProps = defaultProps$11;
13278
13261
  Calendar.displayName = "NutCalendar";
13279
13262
  const ArrowLeft = () => {
13280
13263
  return /* @__PURE__ */ React__default.createElement(
@@ -13380,7 +13363,7 @@ const getCurrentWeekDays = (day, firstDayOfWeek) => {
13380
13363
  )
13381
13364
  ];
13382
13365
  };
13383
- const defaultProps$10 = {
13366
+ const defaultProps$$ = {
13384
13367
  ...ComponentDefaults,
13385
13368
  type: "single",
13386
13369
  firstDayOfWeek: 0
@@ -13404,7 +13387,7 @@ const CalendarCard = React__default.forwardRef((props, ref) => {
13404
13387
  onDayClick,
13405
13388
  onPageChange,
13406
13389
  onChange
13407
- } = { ...defaultProps$10, ...props };
13390
+ } = { ...defaultProps$$, ...props };
13408
13391
  const [month, setMonth] = useState(() => {
13409
13392
  let date4 = new Date(Date.now());
13410
13393
  const val = value || defaultValue;
@@ -13706,11 +13689,10 @@ const CalendarCard = React__default.forwardRef((props, ref) => {
13706
13689
  };
13707
13690
  return days.length > 0 ? /* @__PURE__ */ React__default.createElement("div", { className: classNames(prefixCls, className), style }, renderHeader(), renderContent()) : null;
13708
13691
  });
13709
- CalendarCard.defaultProps = defaultProps$10;
13710
13692
  CalendarCard.displayName = "NutCalendarCard";
13711
13693
  const CheckboxGroupContext = createContext(null);
13712
13694
  const Context$1 = CheckboxGroupContext;
13713
- const defaultProps$$ = {
13695
+ const defaultProps$_ = {
13714
13696
  max: void 0,
13715
13697
  min: void 0,
13716
13698
  list: false,
@@ -13740,7 +13722,7 @@ const CheckboxGroup = React__default.forwardRef(
13740
13722
  direction,
13741
13723
  options: options2,
13742
13724
  ...rest
13743
- } = { ...defaultProps$$, ...props };
13725
+ } = { ...defaultProps$_, ...props };
13744
13726
  useImperativeHandle(ref, () => ({
13745
13727
  toggle(state) {
13746
13728
  if (state === false) {
@@ -13832,9 +13814,9 @@ const CheckboxGroup = React__default.forwardRef(
13832
13814
  );
13833
13815
  }
13834
13816
  );
13835
- CheckboxGroup.defaultProps = defaultProps$$;
13817
+ CheckboxGroup.defaultProps = defaultProps$_;
13836
13818
  CheckboxGroup.displayName = "NutCheckboxGroup";
13837
- const defaultProps$_ = {
13819
+ const defaultProps$Z = {
13838
13820
  ...ComponentDefaults,
13839
13821
  disabled: false,
13840
13822
  shape: "round",
@@ -13848,7 +13830,7 @@ const defaultProps$_ = {
13848
13830
  const classPrefix$h = "nut-checkbox";
13849
13831
  const Checkbox = (props) => {
13850
13832
  const { children } = {
13851
- ...defaultProps$_,
13833
+ ...defaultProps$Z,
13852
13834
  ...props
13853
13835
  };
13854
13836
  const {
@@ -13869,8 +13851,8 @@ const Checkbox = (props) => {
13869
13851
  let { labelPosition, ...rest } = others;
13870
13852
  const ctx2 = useContext(Context$1);
13871
13853
  let [innerChecked, setChecked] = usePropsValue({
13872
- value: props.checked,
13873
- defaultValue: props.defaultChecked,
13854
+ value: checked,
13855
+ defaultValue: defaultChecked,
13874
13856
  finalValue: defaultChecked,
13875
13857
  onChange
13876
13858
  });
@@ -13992,7 +13974,6 @@ const Checkbox = (props) => {
13992
13974
  renderCheckboxItem()
13993
13975
  );
13994
13976
  };
13995
- Checkbox.defaultProps = defaultProps$_;
13996
13977
  Checkbox.displayName = "NutCheckBox";
13997
13978
  Checkbox.Group = CheckboxGroup;
13998
13979
  const InternalPickerPanel = (props, ref) => {
@@ -14234,7 +14215,7 @@ function useRefs() {
14234
14215
  }, []);
14235
14216
  return [refs.current, setRefs, reset];
14236
14217
  }
14237
- const defaultProps$Z = {
14218
+ const defaultProps$Y = {
14238
14219
  ...ComponentDefaults,
14239
14220
  title: "",
14240
14221
  options: [],
@@ -14264,7 +14245,7 @@ const InternalPicker = (props, ref) => {
14264
14245
  afterClose,
14265
14246
  onChange,
14266
14247
  ...rest
14267
- } = { ...defaultProps$Z, ...props };
14248
+ } = { ...defaultProps$Y, ...props };
14268
14249
  const classPrefix2 = "nut-picker";
14269
14250
  const classes = classNames(classPrefix2, className);
14270
14251
  const [selectedValue, setSelectedValue] = usePropsValue({
@@ -14508,7 +14489,7 @@ const padZero = (num, targetLength = 2) => {
14508
14489
  return str;
14509
14490
  };
14510
14491
  const currentYear = (/* @__PURE__ */ new Date()).getFullYear();
14511
- const defaultProps$Y = {
14492
+ const defaultProps$X = {
14512
14493
  ...ComponentDefaults,
14513
14494
  visible: false,
14514
14495
  title: "",
@@ -14541,7 +14522,7 @@ const DatePicker = (props) => {
14541
14522
  style,
14542
14523
  ...rest
14543
14524
  } = {
14544
- ...defaultProps$Y,
14525
+ ...defaultProps$X,
14545
14526
  ...props
14546
14527
  };
14547
14528
  const { locale } = useConfig();
@@ -14823,7 +14804,7 @@ const DatePicker = (props) => {
14823
14804
  }
14824
14805
  ));
14825
14806
  };
14826
- DatePicker.defaultProps = defaultProps$Y;
14807
+ DatePicker.defaultProps = defaultProps$X;
14827
14808
  DatePicker.displayName = "NutDatePicker";
14828
14809
  const Context = createContext({});
14829
14810
  function _extends() {
@@ -16061,7 +16042,7 @@ const useForm = (form) => {
16061
16042
  }
16062
16043
  return [formRef.current];
16063
16044
  };
16064
- const defaultProps$X = {
16045
+ const defaultProps$W = {
16065
16046
  ...ComponentDefaults,
16066
16047
  labelPosition: "right",
16067
16048
  starPosition: "left",
@@ -16092,7 +16073,7 @@ const Form = React__default.forwardRef(
16092
16073
  starPosition,
16093
16074
  form
16094
16075
  } = {
16095
- ...defaultProps$X,
16076
+ ...defaultProps$W,
16096
16077
  ...props
16097
16078
  };
16098
16079
  let formInstance;
@@ -16138,7 +16119,6 @@ const Form = React__default.forwardRef(
16138
16119
  );
16139
16120
  }
16140
16121
  );
16141
- Form.defaultProps = defaultProps$X;
16142
16122
  Form.displayName = "NutForm";
16143
16123
  function isForwardRefComponent(component) {
16144
16124
  return component.type && component.type.$$typeof && // eslint-disable-next-line react/display-name
@@ -16149,7 +16129,7 @@ function isForwardRefComponent(component) {
16149
16129
  }
16150
16130
  ).$$typeof === component.type.$$typeof;
16151
16131
  }
16152
- const defaultProps$W = {
16132
+ const defaultProps$V = {
16153
16133
  ...ComponentDefaults,
16154
16134
  required: false,
16155
16135
  name: "",
@@ -16244,7 +16224,7 @@ const _FormItem = class _FormItem extends React__default.Component {
16244
16224
  style,
16245
16225
  errorMessageAlign
16246
16226
  } = {
16247
- ...defaultProps$W,
16227
+ ...defaultProps$V,
16248
16228
  ...this.props
16249
16229
  };
16250
16230
  const requiredInRules = rules2 == null ? void 0 : rules2.some((rule) => rule.required);
@@ -16303,7 +16283,7 @@ const _FormItem = class _FormItem extends React__default.Component {
16303
16283
  return /* @__PURE__ */ React__default.createElement(React__default.Fragment, { key: this.state.resetCount }, this.props.noStyle ? returnChildNode : this.renderLayout(returnChildNode));
16304
16284
  }
16305
16285
  };
16306
- _FormItem.defaultProps = defaultProps$W;
16286
+ _FormItem.defaultProps = defaultProps$V;
16307
16287
  _FormItem.contextType = Context;
16308
16288
  let FormItem = _FormItem;
16309
16289
  const InnerForm = Form;
@@ -16333,7 +16313,7 @@ function formatNumber(value, allowDot = true, allowMinus = true) {
16333
16313
  const regExp = allowDot ? /[^-0-9.]/g : /[^-0-9]/g;
16334
16314
  return value.replace(regExp, "");
16335
16315
  }
16336
- const defaultProps$V = {
16316
+ const defaultProps$U = {
16337
16317
  ...ComponentDefaults,
16338
16318
  type: "text",
16339
16319
  name: "",
@@ -16375,14 +16355,16 @@ const Input = forwardRef(
16375
16355
  confirmType,
16376
16356
  defaultValue,
16377
16357
  value: _value,
16358
+ onCompositionStart,
16359
+ onCompositionEnd,
16378
16360
  ...rest
16379
16361
  } = {
16380
- ...defaultProps$V,
16362
+ ...defaultProps$U,
16381
16363
  ...props
16382
16364
  };
16383
16365
  const [value, setValue] = usePropsValue({
16384
- value: props.value,
16385
- defaultValue: props.defaultValue,
16366
+ value: _value,
16367
+ defaultValue,
16386
16368
  finalValue: "",
16387
16369
  onChange
16388
16370
  });
@@ -16496,21 +16478,19 @@ const Input = forwardRef(
16496
16478
  handleInput(e2.currentTarget.value);
16497
16479
  },
16498
16480
  onCompositionStart: (e2) => {
16499
- var _a;
16500
16481
  composingRef.current = true;
16501
- (_a = props.onCompositionStart) == null ? void 0 : _a.call(props, e2);
16482
+ onCompositionStart == null ? void 0 : onCompositionStart(e2);
16502
16483
  },
16503
16484
  onCompositionEnd: (e2) => {
16504
- var _a;
16505
16485
  composingRef.current = false;
16506
- (_a = props.onCompositionEnd) == null ? void 0 : _a.call(props, e2);
16486
+ onCompositionEnd == null ? void 0 : onCompositionEnd(e2);
16507
16487
  }
16508
16488
  }
16509
16489
  ),
16510
16490
  clearable && !readOnly && active && value.length > 0 ? /* @__PURE__ */ React__default.createElement(
16511
16491
  "span",
16512
16492
  {
16513
- style: { display: "flex", alignItems: "center" },
16493
+ style: { display: "flex", alignItems: "center", cursor: "pointer" },
16514
16494
  onClick: () => {
16515
16495
  if (!disabled) {
16516
16496
  setValue("");
@@ -16523,9 +16503,8 @@ const Input = forwardRef(
16523
16503
  );
16524
16504
  }
16525
16505
  );
16526
- Input.defaultProps = defaultProps$V;
16527
16506
  Input.displayName = "NutInput";
16528
- const defaultProps$U = {
16507
+ const defaultProps$T = {
16529
16508
  ...ComponentDefaults,
16530
16509
  disabled: false,
16531
16510
  readOnly: false,
@@ -16561,7 +16540,7 @@ const InputNumber = (props) => {
16561
16540
  onChange,
16562
16541
  ...restProps
16563
16542
  } = {
16564
- ...defaultProps$U,
16543
+ ...defaultProps$T,
16565
16544
  ...props
16566
16545
  };
16567
16546
  const classes = classNames(classPrefix$g, className, {
@@ -16719,7 +16698,6 @@ const InputNumber = (props) => {
16719
16698
  }
16720
16699
  )));
16721
16700
  };
16722
- InputNumber.defaultProps = defaultProps$U;
16723
16701
  InputNumber.displayName = "NutInputNumber";
16724
16702
  const isObject = (val) => val !== null && typeof val === "object";
16725
16703
  const isFunction = (val) => typeof val === "function";
@@ -16770,7 +16748,7 @@ function useClickAway(onClickAway, target, eventName = "click", useCapture, isLi
16770
16748
  };
16771
16749
  }, [target]);
16772
16750
  }
16773
- const defaultProps$T = {
16751
+ const defaultProps$S = {
16774
16752
  ...ComponentDefaults,
16775
16753
  columns: 1,
16776
16754
  direction: "down",
@@ -16801,7 +16779,7 @@ const MenuItem = forwardRef((props, ref) => {
16801
16779
  parent,
16802
16780
  index
16803
16781
  } = {
16804
- ...defaultProps$T,
16782
+ ...defaultProps$S,
16805
16783
  ...props
16806
16784
  };
16807
16785
  const [showPopup, setShowPopup] = useState(show2);
@@ -16970,9 +16948,8 @@ const MenuItem = forwardRef((props, ref) => {
16970
16948
  )
16971
16949
  ));
16972
16950
  });
16973
- MenuItem.defaultProps = defaultProps$T;
16974
16951
  MenuItem.displayName = "NutMenuItem";
16975
- const defaultProps$S = {
16952
+ const defaultProps$R = {
16976
16953
  ...ComponentDefaults,
16977
16954
  activeColor: "",
16978
16955
  closeOnOverlayClick: true,
@@ -16999,7 +16976,7 @@ const Menu = (props) => {
16999
16976
  onOpen,
17000
16977
  ...rest
17001
16978
  } = {
17002
- ...defaultProps$S,
16979
+ ...defaultProps$R,
17003
16980
  ...props
17004
16981
  };
17005
16982
  const menuRef = useRef(null);
@@ -17139,19 +17116,8 @@ const Menu = (props) => {
17139
17116
  cloneChildren()
17140
17117
  );
17141
17118
  };
17142
- Menu.defaultProps = defaultProps$S;
17143
17119
  Menu.displayName = "NutMenu";
17144
17120
  Menu.Item = MenuItem;
17145
- const defaultProps$R = {
17146
- ...ComponentDefaults,
17147
- visible: false,
17148
- rightActions: "",
17149
- type: "default",
17150
- custom: [],
17151
- random: false,
17152
- onClose: () => {
17153
- }
17154
- };
17155
17121
  const NumberKeyboard = (props) => {
17156
17122
  const { locale } = useConfig();
17157
17123
  const {
@@ -17296,7 +17262,6 @@ const NumberKeyboard = (props) => {
17296
17262
  ))))
17297
17263
  );
17298
17264
  };
17299
- NumberKeyboard.defaultProps = defaultProps$R;
17300
17265
  NumberKeyboard.displayName = "NutNumberKeyboard";
17301
17266
  const RadioContext = React__default.createContext(null);
17302
17267
  const defaultProps$Q = {
@@ -17819,7 +17784,6 @@ const Range = (props) => {
17819
17784
  renderButton()
17820
17785
  ))), maxDescription !== null && /* @__PURE__ */ React__default.createElement("div", { className: "max" }, maxDescription || max));
17821
17786
  };
17822
- Range.defaultProps = defaultProps$O;
17823
17787
  Range.displayName = "NutRange";
17824
17788
  const defaultProps$N = {
17825
17789
  ...ComponentDefaults,
@@ -18015,7 +17979,6 @@ const Rate = (props) => {
18015
17979
  })
18016
17980
  );
18017
17981
  };
18018
- Rate.defaultProps = defaultProps$N;
18019
17982
  Rate.displayName = "NutRate";
18020
17983
  const defaultProps$M = {
18021
17984
  ...ComponentDefaults,
@@ -18036,8 +17999,9 @@ const SearchBar = (props) => {
18036
17999
  const classPrefix2 = "nut-searchbar";
18037
18000
  const { locale } = useConfig();
18038
18001
  const searchRef = useRef(null);
18039
- const [value, setValue] = useState(() => props.value);
18040
18002
  const {
18003
+ value: outerValue,
18004
+ style,
18041
18005
  placeholder,
18042
18006
  shape,
18043
18007
  className,
@@ -18061,6 +18025,7 @@ const SearchBar = (props) => {
18061
18025
  ...defaultProps$M,
18062
18026
  ...props
18063
18027
  };
18028
+ const [value, setValue] = useState(() => outerValue);
18064
18029
  const forceFocus = () => {
18065
18030
  const searchSelf = searchRef.current;
18066
18031
  searchSelf && searchSelf.focus();
@@ -18081,8 +18046,8 @@ const SearchBar = (props) => {
18081
18046
  onBlur && (onBlur == null ? void 0 : onBlur(value2, event));
18082
18047
  };
18083
18048
  useEffect(() => {
18084
- setValue(props.value);
18085
- }, [props.value]);
18049
+ setValue(outerValue);
18050
+ }, [outerValue]);
18086
18051
  useEffect(() => {
18087
18052
  autoFocus && forceFocus();
18088
18053
  }, [autoFocus]);
@@ -18092,7 +18057,7 @@ const SearchBar = (props) => {
18092
18057
  {
18093
18058
  className: `${classPrefix2}-input ${clearable ? `${classPrefix2}-input-clear` : ""}`,
18094
18059
  ref: searchRef,
18095
- style: { ...props.style },
18060
+ style,
18096
18061
  value: value || "",
18097
18062
  placeholder: placeholder || locale.placeholder,
18098
18063
  disabled,
@@ -18160,7 +18125,7 @@ const SearchBar = (props) => {
18160
18125
  "div",
18161
18126
  {
18162
18127
  className: `${classPrefix2} ${disabled ? `${classPrefix2}-disabled` : ""} ${className || ""}`,
18163
- style: { ...props.style }
18128
+ style
18164
18129
  },
18165
18130
  renderLeft(),
18166
18131
  /* @__PURE__ */ React__default.createElement(
@@ -18176,7 +18141,6 @@ const SearchBar = (props) => {
18176
18141
  renderRight()
18177
18142
  );
18178
18143
  };
18179
- SearchBar.defaultProps = defaultProps$M;
18180
18144
  SearchBar.displayName = "NutSearchBar";
18181
18145
  const defaultProps$L = {
18182
18146
  ...ComponentDefaults,
@@ -18194,7 +18158,7 @@ const InternalShortPassword = (props, ref) => {
18194
18158
  title,
18195
18159
  description,
18196
18160
  tips,
18197
- visible: deleteVisible,
18161
+ visible: outerVisible,
18198
18162
  value,
18199
18163
  error,
18200
18164
  hideFooter,
@@ -18226,7 +18190,7 @@ const InternalShortPassword = (props, ref) => {
18226
18190
  return val.slice(0, comLen);
18227
18191
  };
18228
18192
  const [visible, setVisible] = usePropsValue({
18229
- value: props.visible,
18193
+ value: outerVisible,
18230
18194
  defaultValue: false,
18231
18195
  finalValue: false
18232
18196
  });
@@ -18402,7 +18366,6 @@ const InternalSignature = (props, ref) => {
18402
18366
  const Signature = React__default.forwardRef(
18403
18367
  InternalSignature
18404
18368
  );
18405
- Signature.defaultProps = defaultProps$K;
18406
18369
  Signature.displayName = "NutSignature";
18407
18370
  const defaultProps$J = {
18408
18371
  ...ComponentDefaults,
@@ -18450,7 +18413,6 @@ const Switch = (props) => {
18450
18413
  /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-button` }, !value && /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-close-line` }), activeText && /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, value ? /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-label open` }, activeText) : /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-label close` }, inactiveText)))
18451
18414
  );
18452
18415
  };
18453
- Switch.defaultProps = defaultProps$J;
18454
18416
  Switch.displayName = "NutSwitch";
18455
18417
  const defaultProps$I = {
18456
18418
  ...ComponentDefaults,
@@ -18569,7 +18531,6 @@ const TextArea = (props) => {
18569
18531
  showCount && /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-limit` }, inputValue.length, "/", maxLength < 0 ? 0 : maxLength)
18570
18532
  );
18571
18533
  };
18572
- TextArea.defaultProps = defaultProps$I;
18573
18534
  TextArea.displayName = "NutTextArea";
18574
18535
  class UploadOptions {
18575
18536
  constructor() {
@@ -18770,7 +18731,6 @@ const Progress = (props) => {
18770
18731
  )))
18771
18732
  );
18772
18733
  };
18773
- Progress.defaultProps = defaultProps$H;
18774
18734
  Progress.displayName = "NutProgress";
18775
18735
  const Preview = ({
18776
18736
  fileList,
@@ -19047,7 +19007,7 @@ const InternalUploader = (props, ref) => {
19047
19007
  });
19048
19008
  };
19049
19009
  const task = new Upload(uploadOption);
19050
- if (props.autoUpload) {
19010
+ if (autoUpload) {
19051
19011
  task.upload();
19052
19012
  } else {
19053
19013
  uploadQueue.push(
@@ -19086,7 +19046,7 @@ const InternalUploader = (props, ref) => {
19086
19046
  });
19087
19047
  };
19088
19048
  const filterFiles = (files) => {
19089
- const maximum = props.maxCount * 1;
19049
+ const maximum = maxCount * 1;
19090
19050
  const oversizes = new Array();
19091
19051
  const filterFile = files.filter((file) => {
19092
19052
  if (file.size > maxFileSize) {
@@ -19193,7 +19153,6 @@ const InternalUploader = (props, ref) => {
19193
19153
  ));
19194
19154
  };
19195
19155
  const Uploader = React__default.forwardRef(InternalUploader);
19196
- Uploader.defaultProps = defaultProps$G;
19197
19156
  Uploader.displayName = "NutUploader";
19198
19157
  const defaultProps$F = {
19199
19158
  ...ComponentDefaults,
@@ -19266,7 +19225,6 @@ const ActionSheet = (props) => {
19266
19225
  ))
19267
19226
  );
19268
19227
  };
19269
- ActionSheet.defaultProps = defaultProps$F;
19270
19228
  ActionSheet.displayName = "NutActionSheet";
19271
19229
  const fullClone = {
19272
19230
  ...ReactDOM
@@ -19689,7 +19647,7 @@ const Drag = (props) => {
19689
19647
  ({ down, last, offset: [x, y] }) => {
19690
19648
  api.start({ x, y, immediate: down });
19691
19649
  if (last) {
19692
- if (props.direction !== "y" && props.attract) {
19650
+ if (direction !== "y" && attract) {
19693
19651
  if (x < middleLine.current) {
19694
19652
  api.start({ x: boundaryState.left, y, immediate: down });
19695
19653
  } else {
@@ -19722,7 +19680,6 @@ const Drag = (props) => {
19722
19680
  /* @__PURE__ */ React__default.createElement(animated.div, { style: currstyle, ...bind() }, children)
19723
19681
  );
19724
19682
  };
19725
- Drag.defaultProps = defaultProps$D;
19726
19683
  Drag.displayName = "NutDrag";
19727
19684
  const defaultStatus = {
19728
19685
  empty: "https://storage.360buyimg.com/imgtools/30186cfda0-0d3eee40-c0ac-11ee-9382-9125782aa3b8.png",
@@ -19797,7 +19754,6 @@ const Empty = (props) => {
19797
19754
  );
19798
19755
  })), children);
19799
19756
  };
19800
- Empty.defaultProps = defaultProps$C;
19801
19757
  Empty.displayName = "NutEmpty";
19802
19758
  const defaultProps$B = {
19803
19759
  ...ComponentDefaults,
@@ -19966,7 +19922,6 @@ const InfiniteLoading = (props) => {
19966
19922
  /* @__PURE__ */ React__default.createElement("div", { className: "nut-infinite-bottom" }, isInfiniting ? /* @__PURE__ */ React__default.createElement("div", { className: "nut-infinite-bottom-tips" }, loadingText || locale.infiniteloading.loadText) : !hasMore && /* @__PURE__ */ React__default.createElement("div", { className: "nut-infinite-bottom-tips" }, loadMoreText || locale.infiniteloading.loadMoreText))
19967
19923
  );
19968
19924
  };
19969
- InfiniteLoading.defaultProps = defaultProps$B;
19970
19925
  InfiniteLoading.displayName = "NutInfiniteLoading";
19971
19926
  const loadingMap = {
19972
19927
  circular: c,
@@ -19999,7 +19954,6 @@ const Loading = (props) => {
19999
19954
  children ? /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-text` }, children) : ""
20000
19955
  );
20001
19956
  };
20002
- Loading.defaultProps = defaultProps$A;
20003
19957
  Loading.displayName = "NutLoading";
20004
19958
  const defaultProps$z = {
20005
19959
  ...ComponentDefaults,
@@ -20407,7 +20361,6 @@ const NoticeBar = (props) => {
20407
20361
  )
20408
20362
  ) : null);
20409
20363
  };
20410
- NoticeBar.defaultProps = defaultProps$z;
20411
20364
  NoticeBar.displayName = "NutNoticeBar";
20412
20365
  const classPrefix$c = "nut-notify";
20413
20366
  let Notification$1 = class Notification extends React.PureComponent {
@@ -20654,8 +20607,7 @@ const Popover = (props) => {
20654
20607
  }
20655
20608
  useClickAway(
20656
20609
  () => {
20657
- var _a;
20658
- (_a = props.onClick) == null ? void 0 : _a.call(props);
20610
+ onClick == null ? void 0 : onClick();
20659
20611
  onClose == null ? void 0 : onClose();
20660
20612
  },
20661
20613
  targetSet,
@@ -20744,7 +20696,7 @@ const Popover = (props) => {
20744
20696
  const direction = location.split("-")[0];
20745
20697
  const skew = location.split("-")[1];
20746
20698
  const base = 16;
20747
- if (props.arrowOffset !== 0) {
20699
+ if (arrowOffset !== 0) {
20748
20700
  const dir = rtl ? "right" : "left";
20749
20701
  const dir2 = rtl ? "left" : "right";
20750
20702
  if (["bottom", "top"].includes(direction)) {
@@ -20773,12 +20725,11 @@ const Popover = (props) => {
20773
20725
  return styles;
20774
20726
  };
20775
20727
  const handleSelect = (item, index) => {
20776
- var _a;
20777
20728
  if (!item.disabled) {
20778
20729
  onSelect == null ? void 0 : onSelect(item, index);
20779
20730
  }
20780
20731
  if (closeOnActionClick) {
20781
- (_a = props.onClick) == null ? void 0 : _a.call(props);
20732
+ onClick == null ? void 0 : onClick();
20782
20733
  onClose == null ? void 0 : onClose();
20783
20734
  }
20784
20735
  };
@@ -20788,8 +20739,7 @@ const Popover = (props) => {
20788
20739
  className: "nut-popover-wrapper",
20789
20740
  ref: popoverRef,
20790
20741
  onClick: () => {
20791
- var _a;
20792
- (_a = props.onClick) == null ? void 0 : _a.call(props);
20742
+ onClick == null ? void 0 : onClick();
20793
20743
  if (!visible) {
20794
20744
  onOpen == null ? void 0 : onOpen();
20795
20745
  } else {
@@ -20852,7 +20802,6 @@ const Popover = (props) => {
20852
20802
  document.body
20853
20803
  ));
20854
20804
  };
20855
- Popover.defaultProps = defaultProps$y;
20856
20805
  Popover.displayName = "NutPopover";
20857
20806
  function bound(position, min, max) {
20858
20807
  let ret = position;
@@ -21069,7 +21018,6 @@ const AvatarGroup = (props) => {
21069
21018
  };
21070
21019
  return /* @__PURE__ */ React__default.createElement(AvatarContext.Provider, { value: parentAvatar }, /* @__PURE__ */ React__default.createElement("div", { className: cls, style, ref: avatarGroupRef }, children));
21071
21020
  };
21072
- AvatarGroup.defaultProps = defaultProps$w;
21073
21021
  AvatarGroup.displayName = "NutAvatarGroup";
21074
21022
  const defaultProps$v = {
21075
21023
  ...ComponentDefaults,
@@ -21151,8 +21099,8 @@ const Avatar = (props) => {
21151
21099
  }
21152
21100
  };
21153
21101
  const errorEvent = () => {
21154
- if (props.onError) {
21155
- props.onError();
21102
+ if (onError) {
21103
+ onError();
21156
21104
  }
21157
21105
  };
21158
21106
  const clickAvatar = (e2) => {
@@ -21183,7 +21131,6 @@ const Avatar = (props) => {
21183
21131
  showMax && /* @__PURE__ */ React__default.createElement("div", { className: "text" }, ((_l = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _l.maxContent) ? (_m = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _m.maxContent : `+ ${avatarIndex - Number(((_n = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _n.max) || 0)}`)
21184
21132
  ));
21185
21133
  };
21186
- Avatar.defaultProps = defaultProps$v;
21187
21134
  Avatar.displayName = "NutAvatar";
21188
21135
  Avatar.Group = AvatarGroup;
21189
21136
  const defaultProps$u = {
@@ -21245,7 +21192,6 @@ const Skeleton = (props) => {
21245
21192
  return /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-block`, key: index });
21246
21193
  })))));
21247
21194
  };
21248
- Skeleton.defaultProps = defaultProps$u;
21249
21195
  Skeleton.displayName = "NutSkeleton";
21250
21196
  function preventDefault(event, isStopPropagation) {
21251
21197
  if (typeof event.cancelable !== "boolean" || event.cancelable) {
@@ -21674,7 +21620,6 @@ const Animate = (props) => {
21674
21620
  };
21675
21621
  return /* @__PURE__ */ React__default.createElement("div", { className: "nut-animate" }, /* @__PURE__ */ React__default.createElement("div", { className: cls, onClick: handleClick2, ...rest }, children));
21676
21622
  };
21677
- Animate.defaultProps = defaultProps$s;
21678
21623
  Animate.displayName = "NutAnimate";
21679
21624
  const defaultProps$r = {
21680
21625
  ...ComponentDefaults,
@@ -22077,11 +22022,10 @@ const CircleProgress = (props) => {
22077
22022
  return `M 50 50 m -45 0 a 45 45 0 1 ${isWise} 90 0 a 45 45 0 1 ${isWise} -90 0`;
22078
22023
  };
22079
22024
  const stop2 = () => {
22080
- if (!isObject(props.color)) {
22025
+ if (!isObject(color)) {
22081
22026
  return;
22082
22027
  }
22083
- const color2 = props.color;
22084
- const colorArr = Object.keys(color2).sort(
22028
+ const colorArr = Object.keys(color).sort(
22085
22029
  (a2, b) => parseFloat(a2) - parseFloat(b)
22086
22030
  );
22087
22031
  const stopArr = [];
@@ -22091,7 +22035,7 @@ const CircleProgress = (props) => {
22091
22035
  value: ""
22092
22036
  };
22093
22037
  obj.key = item;
22094
- obj.value = color2[item];
22038
+ obj.value = color[item];
22095
22039
  stopArr.push(obj);
22096
22040
  });
22097
22041
  return stopArr;
@@ -22120,7 +22064,6 @@ const CircleProgress = (props) => {
22120
22064
  }
22121
22065
  )), /* @__PURE__ */ React__default.createElement("div", { className: "nut-circleprogress-text" }, children));
22122
22066
  };
22123
- CircleProgress.defaultProps = defaultProps$o;
22124
22067
  CircleProgress.displayName = "NutCircleProgress";
22125
22068
  const collapseContext = {
22126
22069
  isOpen: (name) => {
@@ -22230,7 +22173,6 @@ const CollapseItem = (props) => {
22230
22173
  /* @__PURE__ */ React__default.createElement("div", { ref: contentRef, className: `${classPrefix2}-content-text` }, children)
22231
22174
  ));
22232
22175
  };
22233
- CollapseItem.defaultProps = defaultProps$n;
22234
22176
  CollapseItem.displayName = "NutCollapseItem";
22235
22177
  const defaultProps$m = {
22236
22178
  ...ComponentDefaults,
@@ -22308,7 +22250,6 @@ const Collapse = (props) => {
22308
22250
  /* @__PURE__ */ React__default.createElement("div", { className: classNames(classPrefix2, className), style }, children)
22309
22251
  );
22310
22252
  };
22311
- Collapse.defaultProps = defaultProps$m;
22312
22253
  Collapse.displayName = "NutCollapse";
22313
22254
  Collapse.Item = CollapseItem;
22314
22255
  const defaultProps$l = {
@@ -22549,7 +22490,6 @@ const InternalCountDown = (props, ref) => {
22549
22490
  const CountDown = React__default.forwardRef(
22550
22491
  InternalCountDown
22551
22492
  );
22552
- CountDown.defaultProps = defaultProps$l;
22553
22493
  CountDown.displayName = "NutCountDown";
22554
22494
  const useIsomorphicLayoutEffect = canUseDom ? useLayoutEffect : useEffect;
22555
22495
  const defaultProps$k = {
@@ -22730,7 +22670,6 @@ const Ellipsis = (props) => {
22730
22670
  collapseText
22731
22671
  ) : null) : null);
22732
22672
  };
22733
- Ellipsis.defaultProps = defaultProps$k;
22734
22673
  Ellipsis.displayName = "NutEllipsis";
22735
22674
  const defaultProps$j = {
22736
22675
  ...ComponentDefaults,
@@ -22810,7 +22749,6 @@ const Video = (props) => {
22810
22749
  /* @__PURE__ */ React__default.createElement("track", { kind: "captions" })
22811
22750
  ));
22812
22751
  };
22813
- Video.defaultProps = defaultProps$j;
22814
22752
  Video.displayName = "NutVideo";
22815
22753
  const defaultProps$i = {
22816
22754
  total: 3,
@@ -22843,7 +22781,6 @@ const Indicator = (props) => {
22843
22781
  };
22844
22782
  return /* @__PURE__ */ React__default.createElement("div", { className: classNames(classPrefix$3, classes, className), ...rest }, renderElement());
22845
22783
  };
22846
- Indicator.defaultProps = defaultProps$i;
22847
22784
  Indicator.displayName = "NutIndicator";
22848
22785
  const getRefValue = (ref) => {
22849
22786
  return ref.current;
@@ -23272,6 +23209,7 @@ const defaultProps$f = {
23272
23209
  };
23273
23210
  const ImagePreview = (props) => {
23274
23211
  const {
23212
+ value,
23275
23213
  className,
23276
23214
  style,
23277
23215
  images,
@@ -23284,17 +23222,17 @@ const ImagePreview = (props) => {
23284
23222
  closeOnContentClick,
23285
23223
  closeIcon,
23286
23224
  closeIconPosition,
23287
- onClose
23288
- } = props;
23225
+ onClose,
23226
+ onChange
23227
+ } = { ...defaultProps$f, ...props };
23289
23228
  const classPrefix2 = "nut-imagepreview";
23290
23229
  const ref = useRef(null);
23291
23230
  const [innerNo, setInnerNo] = usePropsValue({
23292
- value: props.value,
23231
+ value,
23293
23232
  defaultValue,
23294
23233
  finalValue: defaultValue,
23295
23234
  onChange: (val) => {
23296
- var _a;
23297
- (_a = props.onChange) == null ? void 0 : _a.call(props, val);
23235
+ onChange == null ? void 0 : onChange(val);
23298
23236
  }
23299
23237
  });
23300
23238
  const [showPop, setShowPop] = useState(visible);
@@ -23405,11 +23343,11 @@ const ImagePreview = (props) => {
23405
23343
  );
23406
23344
  };
23407
23345
  const slideChangeEnd = (page) => {
23408
- var _a;
23409
23346
  setActive(page + 1);
23410
- (_a = props.onChange) == null ? void 0 : _a.call(props, page + 1);
23347
+ onChange == null ? void 0 : onChange(page + 1);
23411
23348
  };
23412
- const onCloseInner = () => {
23349
+ const onCloseInner = (e2) => {
23350
+ e2.stopPropagation();
23413
23351
  setShowPop(false);
23414
23352
  setActive(innerNo);
23415
23353
  scaleNow();
@@ -23419,9 +23357,9 @@ const ImagePreview = (props) => {
23419
23357
  scale: 1
23420
23358
  });
23421
23359
  };
23422
- const closeOnImg = () => {
23360
+ const closeOnImg = (e2) => {
23423
23361
  if (closeOnContentClick) {
23424
- onCloseInner();
23362
+ onCloseInner(e2);
23425
23363
  }
23426
23364
  };
23427
23365
  const duration = typeof autoPlay === "string" ? parseInt(autoPlay) : autoPlay;
@@ -23477,7 +23415,6 @@ const ImagePreview = (props) => {
23477
23415
  ) : null
23478
23416
  );
23479
23417
  };
23480
- ImagePreview.defaultProps = defaultProps$f;
23481
23418
  ImagePreview.displayName = "NutImagePreview";
23482
23419
  const defaultProps$e = {
23483
23420
  ...ComponentDefaults,
@@ -23589,7 +23526,6 @@ const Pagination = (props) => {
23589
23526
  next || locale.pagination.next
23590
23527
  )), mode === "lite" && /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-lite` }, /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-lite-active` }, 2), /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-lite-default` }, 8))));
23591
23528
  };
23592
- Pagination.defaultProps = defaultProps$e;
23593
23529
  Pagination.displayName = "NutPagination";
23594
23530
  const defaultProps$d = {
23595
23531
  ...ComponentDefaults,
@@ -23682,7 +23618,6 @@ const Price = (props) => {
23682
23618
  symbol && position === "after" ? renderSymbol() : null
23683
23619
  );
23684
23620
  };
23685
- Price.defaultProps = defaultProps$d;
23686
23621
  Price.displayName = "NutPrice";
23687
23622
  const DataContext = createContext({});
23688
23623
  const defaultProps$c = {
@@ -23728,7 +23663,6 @@ const Step = (props) => {
23728
23663
  };
23729
23664
  return /* @__PURE__ */ React__default.createElement("div", { className: classes, ...restProps, onClick: handleClickStep }, /* @__PURE__ */ React__default.createElement("div", { className: "nut-step-head" }, /* @__PURE__ */ React__default.createElement("div", { className: "nut-step-line" }), /* @__PURE__ */ React__default.createElement("div", { className: renderIconClass() }, icon || !dot && /* @__PURE__ */ React__default.createElement("span", { className: "nut-step-inner" }, value))), (title || description) && /* @__PURE__ */ React__default.createElement("div", { className: "nut-step-main" }, /* @__PURE__ */ React__default.createElement("span", { className: "nut-step-title" }, title), description && /* @__PURE__ */ React__default.createElement("span", { className: "nut-step-description" }, description)));
23730
23665
  };
23731
- Step.defaultProps = defaultProps$c;
23732
23666
  Step.displayName = "NutStep";
23733
23667
  const defaultProps$b = {
23734
23668
  ...ComponentDefaults,
@@ -23755,13 +23689,12 @@ const Steps = (props) => {
23755
23689
  classPrefix2,
23756
23690
  {
23757
23691
  [`${classPrefix2}-${direction}`]: true,
23758
- [`${classPrefix2}-dot`]: !!props.dot
23692
+ [`${classPrefix2}-dot`]: !!dot
23759
23693
  },
23760
23694
  className
23761
23695
  );
23762
23696
  return /* @__PURE__ */ React__default.createElement(DataContext.Provider, { value: parentSteps }, /* @__PURE__ */ React__default.createElement("div", { className: classes, ...restProps }, children));
23763
23697
  };
23764
- Steps.defaultProps = defaultProps$b;
23765
23698
  Steps.displayName = "NutSteps";
23766
23699
  function useTableSticky(columns, rtl = false) {
23767
23700
  const [isSticky, setIsSticky] = useState(false);
@@ -23902,7 +23835,7 @@ const Table = (props) => {
23902
23835
  };
23903
23836
  const cellClasses = (item) => {
23904
23837
  return {
23905
- [`${headerClassPrefix}-border`]: props.bordered,
23838
+ [`${headerClassPrefix}-border`]: bordered,
23906
23839
  [`${headerClassPrefix}-align${item.align ? item.align : ""}`]: true
23907
23840
  };
23908
23841
  };
@@ -23988,7 +23921,6 @@ const Table = (props) => {
23988
23921
  }
23989
23922
  )) : null, (summary || innerValue.length === 0) && /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-summary` }, summary || noData));
23990
23923
  };
23991
- Table.defaultProps = defaultProps$a;
23992
23924
  Table.displayName = "NutTable";
23993
23925
  const defaultProps$9 = {
23994
23926
  ...ComponentDefaults,
@@ -24091,7 +24023,6 @@ const Tag = (props) => {
24091
24023
  children && /* @__PURE__ */ React__default.createElement("span", { className: `${classPrefix2}-text` }, children)
24092
24024
  ));
24093
24025
  };
24094
- Tag.defaultProps = defaultProps$9;
24095
24026
  Tag.displayName = "NutTag";
24096
24027
  const defaultProps$8 = {
24097
24028
  ...ComponentDefaults,
@@ -24249,7 +24180,6 @@ const Tour = (props) => {
24249
24180
  )));
24250
24181
  }));
24251
24182
  };
24252
- Tour.defaultProps = defaultProps$8;
24253
24183
  Tour.displayName = "NutTour";
24254
24184
  const initPositinoCache = (reaItemSize, length = 0) => {
24255
24185
  let index = 0;
@@ -24554,7 +24484,6 @@ const VirtualList = (props) => {
24554
24484
  )
24555
24485
  );
24556
24486
  };
24557
- VirtualList.defaultProps = defaultProps$7;
24558
24487
  VirtualList.displayName = "NutVirtualList";
24559
24488
  const defaultProps$6 = {
24560
24489
  ...ComponentDefaults,
@@ -24662,7 +24591,6 @@ const InternalBarrage = (props, ref) => {
24662
24591
  const Barrage = React__default.forwardRef(
24663
24592
  InternalBarrage
24664
24593
  );
24665
- Barrage.defaultProps = defaultProps$6;
24666
24594
  Barrage.displayName = "NutBarrage";
24667
24595
  const defaultProps$5 = {
24668
24596
  ...ComponentDefaults,
@@ -24708,7 +24636,6 @@ const Card = (props) => {
24708
24636
  }
24709
24637
  )), /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-right-other` }, tag || /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(Tag, { type: "danger" }, shopDescription), /* @__PURE__ */ React__default.createElement(Tag, { plain: true }, delivery))), /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-right-shop` }, /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-right-shop-name` }, shopName), extra)));
24710
24638
  };
24711
- Card.defaultProps = defaultProps$5;
24712
24639
  Card.displayName = "NutCard";
24713
24640
  const defaultProps$4 = {
24714
24641
  ...ComponentDefaults,
@@ -24763,7 +24690,6 @@ const TimeDetail = (props) => {
24763
24690
  item[optionKey.textKey]
24764
24691
  )));
24765
24692
  };
24766
- TimeDetail.defaultProps = defaultProps$4;
24767
24693
  TimeDetail.displayName = "NutTimeDetail";
24768
24694
  const defaultProps$3 = {
24769
24695
  ...ComponentDefaults,
@@ -24901,7 +24827,6 @@ const TimeSelect = (props) => {
24901
24827
  )))
24902
24828
  );
24903
24829
  };
24904
- TimeSelect.defaultProps = defaultProps$3;
24905
24830
  TimeSelect.displayName = "NutTimeSelect";
24906
24831
  const defaultProps$2 = {
24907
24832
  ...ComponentDefaults,
@@ -24982,7 +24907,6 @@ const TrendArrow = (props) => {
24982
24907
  };
24983
24908
  return /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2} ${className}`, style, ...rest }, !left && renderContent(!left), Number(value) !== 0 && /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, rateTrend.current ? /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, riseIcon || /* @__PURE__ */ React__default.createElement(o, { color: calcIconProps.color })) : /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, dropIcon || /* @__PURE__ */ React__default.createElement(e, { color: calcIconProps.color }))), left && renderContent(!left));
24984
24909
  };
24985
- TrendArrow.defaultProps = defaultProps$2;
24986
24910
  TrendArrow.displayName = "NutTrendArrow";
24987
24911
  const defaultProps$1 = {
24988
24912
  ...ComponentDefaults,
@@ -25094,7 +25018,6 @@ const WaterMark = (props) => {
25094
25018
  }
25095
25019
  );
25096
25020
  };
25097
- WaterMark.defaultProps = defaultProps$1;
25098
25021
  WaterMark.displayName = "NutWaterMark";
25099
25022
  const defaultProps = {
25100
25023
  ...ComponentDefaults,
@@ -25457,7 +25380,6 @@ const AvatarCropper = (props) => {
25457
25380
  }
25458
25381
  ), /* @__PURE__ */ React__default.createElement("div", { className: "nut-avatar-cropper-edit-text" }, editText)), CropperPopup());
25459
25382
  };
25460
- AvatarCropper.defaultProps = defaultProps;
25461
25383
  AvatarCropper.displayName = "NutAvatarCropper";
25462
25384
  export {
25463
25385
  ActionSheet,