@nutui/nutui-react 2.6.4 → 2.6.6

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 (84) hide show
  1. package/CHANGELOG.md +27 -2
  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/Barrage.js +0 -1
  9. package/dist/esm/Calendar.js +0 -1
  10. package/dist/esm/CalendarCard.js +0 -1
  11. package/dist/esm/CalendarItem.js +3 -4
  12. package/dist/esm/Card/style/style.css +1 -1
  13. package/dist/esm/Card.js +0 -1
  14. package/dist/esm/CircleProgress.js +3 -5
  15. package/dist/esm/Collapse.js +0 -1
  16. package/dist/esm/CountDown.js +0 -1
  17. package/dist/esm/Drag.js +1 -2
  18. package/dist/esm/Ellipsis.js +0 -1
  19. package/dist/esm/Empty.js +0 -1
  20. package/dist/esm/Form.js +0 -1
  21. package/dist/esm/ImagePreview.js +5 -7
  22. package/dist/esm/Indicator.js +0 -1
  23. package/dist/esm/InfiniteLoading.js +0 -1
  24. package/dist/esm/Input.js +8 -11
  25. package/dist/esm/InputNumber.js +0 -1
  26. package/dist/esm/Layout.js +0 -1
  27. package/dist/esm/Loading.js +0 -1
  28. package/dist/esm/Menu/style/style.css +1 -1
  29. package/dist/esm/Menu.js +0 -1
  30. package/dist/esm/MenuItem/style/style.css +1 -1
  31. package/dist/esm/NoticeBar.js +0 -1
  32. package/dist/esm/NumberKeyboard.js +1 -2
  33. package/dist/esm/Pagination.js +0 -1
  34. package/dist/esm/Popover.js +4 -8
  35. package/dist/esm/Price.js +0 -1
  36. package/dist/esm/Progress.js +0 -1
  37. package/dist/esm/Range.js +0 -1
  38. package/dist/esm/Rate.js +0 -1
  39. package/dist/esm/SearchBar.js +6 -7
  40. package/dist/esm/ShortPassword.js +2 -2
  41. package/dist/esm/Signature.js +0 -1
  42. package/dist/esm/Skeleton.js +0 -1
  43. package/dist/esm/Step.js +0 -1
  44. package/dist/esm/Steps.js +1 -2
  45. package/dist/esm/Switch.js +0 -1
  46. package/dist/esm/Table/style/style.css +1 -1
  47. package/dist/esm/Table.js +1 -2
  48. package/dist/esm/Tag/style/style.css +1 -1
  49. package/dist/esm/Tag.js +0 -1
  50. package/dist/esm/TextArea.js +0 -1
  51. package/dist/esm/TimeDetail.js +0 -1
  52. package/dist/esm/TimeSelect.js +0 -1
  53. package/dist/esm/Tour.js +0 -1
  54. package/dist/esm/TrendArrow.js +0 -1
  55. package/dist/esm/Uploader.js +2 -3
  56. package/dist/esm/Video.js +0 -1
  57. package/dist/esm/VirtualList.js +0 -1
  58. package/dist/esm/WaterMark.js +0 -1
  59. package/dist/esm/badge2.js +0 -1
  60. package/dist/esm/cascader2.js +4 -5
  61. package/dist/esm/checkbox2.js +2 -3
  62. package/dist/esm/collapseitem2.js +0 -1
  63. package/dist/esm/formitem2.js +4 -0
  64. package/dist/esm/menuitem2.js +0 -1
  65. package/dist/esm/popup2.js +0 -1
  66. package/dist/locales/base.js +1 -1
  67. package/dist/locales/en-US.js +1 -1
  68. package/dist/locales/id-ID.js +1 -1
  69. package/dist/locales/tr-TR.js +1 -1
  70. package/dist/locales/zh-CN.js +1 -1
  71. package/dist/locales/zh-TW.js +1 -1
  72. package/dist/locales/zh-UG.js +1 -1
  73. package/dist/nutui.react.es.js +143 -201
  74. package/dist/nutui.react.umd.js +143 -201
  75. package/dist/packages/menu/menu.scss +1 -0
  76. package/dist/packages/menuitem/menuitem.scss +1 -0
  77. package/dist/packages/table/table.scss +2 -1
  78. package/dist/style.css +1 -1
  79. package/dist/style.mjs +1 -1
  80. package/dist/styles/variables.scss +1 -1
  81. package/dist/types/packages/checkboxgroup/checkboxgroup.d.ts +5 -1
  82. package/dist/types/packages/input/input.d.ts +1 -1
  83. package/dist/types/packages/input/input.taro.d.ts +1 -1
  84. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react v2.6.4 Fri May 10 2024 14:45:06 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react v2.6.6 Fri May 24 2024 15:03:59 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(
@@ -1243,7 +1243,7 @@ const CellGroup = (props) => {
1243
1243
  ));
1244
1244
  };
1245
1245
  CellGroup.displayName = "NutCellGroup";
1246
- const defaultProps$1s = {
1246
+ const defaultProps$1r = {
1247
1247
  ...ComponentDefaults,
1248
1248
  title: null,
1249
1249
  description: null,
@@ -1268,7 +1268,7 @@ const Cell = (props) => {
1268
1268
  style,
1269
1269
  ...rest
1270
1270
  } = {
1271
- ...defaultProps$1s,
1271
+ ...defaultProps$1r,
1272
1272
  ...props
1273
1273
  };
1274
1274
  const handleClick2 = (event) => {
@@ -2462,7 +2462,7 @@ ConfigProvider.displayName = "NutConfigProvider";
2462
2462
  const pxCheck = (value) => {
2463
2463
  return Number.isNaN(Number(value)) ? String(value) : `${value}px`;
2464
2464
  };
2465
- const defaultProps$1r = {
2465
+ const defaultProps$1q = {
2466
2466
  ...ComponentDefaults,
2467
2467
  fit: "fill",
2468
2468
  position: "center",
@@ -2492,7 +2492,7 @@ const Image$1 = (props) => {
2492
2492
  onClick,
2493
2493
  onLoad,
2494
2494
  onError
2495
- } = { ...defaultProps$1r, ...props };
2495
+ } = { ...defaultProps$1q, ...props };
2496
2496
  const [innerLoading, setInnerLoading] = useState(false);
2497
2497
  const [isError, setIsError] = useState(false);
2498
2498
  const [complete, setComplete] = useState(false);
@@ -4638,7 +4638,7 @@ const Overlay = (props) => {
4638
4638
  };
4639
4639
  Overlay.displayName = "NutOverlay";
4640
4640
  const DataContext$1 = createContext({});
4641
- const defaultProps$1q = {
4641
+ const defaultProps$1p = {
4642
4642
  ...ComponentDefaults,
4643
4643
  span: "24",
4644
4644
  offset: "0",
@@ -4646,7 +4646,7 @@ const defaultProps$1q = {
4646
4646
  };
4647
4647
  const Col = (props) => {
4648
4648
  const { className, style, span, offset, children, onClick } = {
4649
- ...defaultProps$1q,
4649
+ ...defaultProps$1p,
4650
4650
  ...props
4651
4651
  };
4652
4652
  const [colName, setColName] = useState("");
@@ -4679,7 +4679,7 @@ const Col = (props) => {
4679
4679
  );
4680
4680
  };
4681
4681
  Col.displayName = "NutCol";
4682
- const defaultProps$1p = {
4682
+ const defaultProps$1o = {
4683
4683
  ...ComponentDefaults,
4684
4684
  contentPosition: "center",
4685
4685
  direction: "horizontal"
@@ -4687,7 +4687,7 @@ const defaultProps$1p = {
4687
4687
  const classPrefix$n = `nut-divider`;
4688
4688
  const Divider = (props) => {
4689
4689
  const { children, contentPosition, style, className, direction, ...rest } = {
4690
- ...defaultProps$1p,
4690
+ ...defaultProps$1o,
4691
4691
  ...props
4692
4692
  };
4693
4693
  const classes = direction === "horizontal" ? classNames({
@@ -4708,7 +4708,7 @@ const gridContext = {
4708
4708
  }
4709
4709
  };
4710
4710
  const GridContext = React__default.createContext(gridContext);
4711
- const defaultProps$1o = {
4711
+ const defaultProps$1n = {
4712
4712
  text: "",
4713
4713
  columns: 4,
4714
4714
  gap: 0,
@@ -4734,7 +4734,7 @@ const GridItem = (props) => {
4734
4734
  onClick,
4735
4735
  ...rest
4736
4736
  } = {
4737
- ...defaultProps$1o,
4737
+ ...defaultProps$1n,
4738
4738
  ...props
4739
4739
  };
4740
4740
  const classPrefix2 = "nut-grid-item";
@@ -4793,7 +4793,7 @@ const GridItem = (props) => {
4793
4793
  );
4794
4794
  };
4795
4795
  GridItem.displayName = "NutGridItem";
4796
- const defaultProps$1n = {
4796
+ const defaultProps$1m = {
4797
4797
  columns: 4,
4798
4798
  gap: 0,
4799
4799
  center: true,
@@ -4814,7 +4814,7 @@ const Grid = (props) => {
4814
4814
  className,
4815
4815
  onClick,
4816
4816
  ...rest
4817
- } = { ...defaultProps$1n, ...props };
4817
+ } = { ...defaultProps$1m, ...props };
4818
4818
  const childrenDom = React__default.Children.toArray(children);
4819
4819
  const classPrefix2 = "nut-grid";
4820
4820
  const rootClass = () => {
@@ -4850,15 +4850,14 @@ const Grid = (props) => {
4850
4850
  };
4851
4851
  Grid.displayName = "NutGrid";
4852
4852
  Grid.Item = GridItem;
4853
- const defaultProps$1m = {};
4853
+ const defaultProps$1l = {};
4854
4854
  const Layout = (props) => {
4855
- ({ ...defaultProps$1m, ...props });
4855
+ ({ ...defaultProps$1l, ...props });
4856
4856
  return /* @__PURE__ */ React__default.createElement("div", { className: "nut-layout" }, "Layout");
4857
4857
  };
4858
- Layout.defaultProps = defaultProps$1m;
4859
4858
  Layout.displayName = "NutLayout";
4860
4859
  const classPrefix$m = "nut-row";
4861
- const defaultProps$1l = {
4860
+ const defaultProps$1k = {
4862
4861
  ...ComponentDefaults,
4863
4862
  type: "",
4864
4863
  justify: "start",
@@ -4878,7 +4877,7 @@ const Row = (props) => {
4878
4877
  gutter,
4879
4878
  onClick
4880
4879
  } = {
4881
- ...defaultProps$1l,
4880
+ ...defaultProps$1k,
4882
4881
  ...props
4883
4882
  };
4884
4883
  const getClass = (prefix2, type22) => {
@@ -4912,12 +4911,12 @@ const Row = (props) => {
4912
4911
  };
4913
4912
  Row.displayName = "NutRow";
4914
4913
  const prefixCls$1 = "nut-space";
4915
- const defaultProps$1k = {
4914
+ const defaultProps$1j = {
4916
4915
  direction: "horizontal"
4917
4916
  };
4918
4917
  const Space = (props) => {
4919
4918
  const { className, style, children, wrap, align, direction, justify } = {
4920
- ...defaultProps$1k,
4919
+ ...defaultProps$1j,
4921
4920
  ...props
4922
4921
  };
4923
4922
  const cls = classNames(
@@ -4985,7 +4984,7 @@ function useWatch(dep, callback, config2 = { immediate: false }) {
4985
4984
  stop2.current = true;
4986
4985
  };
4987
4986
  }
4988
- const defaultProps$1j = {
4987
+ const defaultProps$1i = {
4989
4988
  ...ComponentDefaults,
4990
4989
  position: "top",
4991
4990
  threshold: 0,
@@ -5003,7 +5002,7 @@ const Sticky = (props) => {
5003
5002
  threshold,
5004
5003
  onChange,
5005
5004
  ...rest
5006
- } = { ...defaultProps$1j, ...props };
5005
+ } = { ...defaultProps$1i, ...props };
5007
5006
  const stickyRef = useRef(null);
5008
5007
  const rootRef = useRef(null);
5009
5008
  const [isFixed, setIsFixed] = useState(false);
@@ -5133,7 +5132,7 @@ const SafeArea = (props) => {
5133
5132
  );
5134
5133
  };
5135
5134
  SafeArea.displayName = "NutSafeArea";
5136
- const defaultProps$1i = {
5135
+ const defaultProps$1h = {
5137
5136
  ...ComponentDefaults,
5138
5137
  target: "",
5139
5138
  threshold: 200,
@@ -5152,7 +5151,7 @@ const BackTop = (props) => {
5152
5151
  style,
5153
5152
  onClick
5154
5153
  } = {
5155
- ...defaultProps$1i,
5154
+ ...defaultProps$1h,
5156
5155
  ...props
5157
5156
  };
5158
5157
  const classPrefix2 = "nut-backtop";
@@ -10366,7 +10365,7 @@ const host = createHost(primitives, {
10366
10365
  });
10367
10366
  const animated = host.animated;
10368
10367
  const elevatorContext = createContext({});
10369
- const defaultProps$1h = {
10368
+ const defaultProps$1g = {
10370
10369
  ...ComponentDefaults,
10371
10370
  height: "200px",
10372
10371
  floorKey: "title",
@@ -10392,7 +10391,7 @@ const Elevator = (props) => {
10392
10391
  children,
10393
10392
  ...rest
10394
10393
  } = {
10395
- ...defaultProps$1h,
10394
+ ...defaultProps$1g,
10396
10395
  ...props
10397
10396
  };
10398
10397
  const classPrefix2 = "nut-elevator";
@@ -10570,7 +10569,7 @@ const Elevator = (props) => {
10570
10569
  };
10571
10570
  Elevator.displayName = "NutElevator";
10572
10571
  Elevator.Context = elevatorContext;
10573
- const defaultProps$1g = {
10572
+ const defaultProps$1f = {
10574
10573
  ...ComponentDefaults,
10575
10574
  activeText: "",
10576
10575
  inactiveText: "",
@@ -10598,7 +10597,7 @@ const FixedNav = (props) => {
10598
10597
  content,
10599
10598
  ...rest
10600
10599
  } = {
10601
- ...defaultProps$1g,
10600
+ ...defaultProps$1f,
10602
10601
  ...props
10603
10602
  };
10604
10603
  const classPrefix2 = "nut-fixednav";
@@ -10651,7 +10650,7 @@ const FixedNav = (props) => {
10651
10650
  );
10652
10651
  };
10653
10652
  FixedNav.displayName = "NutFixedNav";
10654
- const defaultProps$1f = {
10653
+ const defaultProps$1e = {
10655
10654
  ...ComponentDefaults,
10656
10655
  left: "",
10657
10656
  right: "",
@@ -10676,7 +10675,7 @@ const NavBar = (props) => {
10676
10675
  zIndex,
10677
10676
  onBackClick
10678
10677
  } = {
10679
- ...defaultProps$1f,
10678
+ ...defaultProps$1e,
10680
10679
  ...props
10681
10680
  };
10682
10681
  const classPrefix2 = "nut-navbar";
@@ -10753,7 +10752,7 @@ const NavBar = (props) => {
10753
10752
  return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, fixed && placeholder ? /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-placeholder` }, renderWrapper()) : renderWrapper());
10754
10753
  };
10755
10754
  NavBar.displayName = "NutNavBar";
10756
- const defaultProps$1e = {
10755
+ const defaultProps$1d = {
10757
10756
  ...ComponentDefaults,
10758
10757
  position: "center",
10759
10758
  transition: "",
@@ -10806,7 +10805,7 @@ const Popup = (props) => {
10806
10805
  afterShow,
10807
10806
  afterClose,
10808
10807
  onClick
10809
- } = { ...defaultProps$1e, ...props };
10808
+ } = { ...defaultProps$1d, ...props };
10810
10809
  const nodeRef = React__default.useRef(null);
10811
10810
  let innerIndex = zIndex || _zIndex;
10812
10811
  const [index, setIndex] = useState(innerIndex);
@@ -10947,7 +10946,6 @@ const Popup = (props) => {
10947
10946
  }, [position, transition]);
10948
10947
  return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, renderToContainer(portal, renderNode()));
10949
10948
  };
10950
- Popup.defaultProps = defaultProps$1e;
10951
10949
  Popup.displayName = "NutPopup";
10952
10950
  const handleClick = (e2) => {
10953
10951
  e2.stopPropagation();
@@ -10963,7 +10961,7 @@ const handleClick = (e2) => {
10963
10961
  }
10964
10962
  };
10965
10963
  const OffsetContext = createContext(20);
10966
- const defaultProps$1d = {
10964
+ const defaultProps$1c = {
10967
10965
  ...ComponentDefaults,
10968
10966
  position: "left",
10969
10967
  width: "80%"
@@ -10981,7 +10979,7 @@ const SideNavBar = (props) => {
10981
10979
  indent,
10982
10980
  ...rest
10983
10981
  } = {
10984
- ...defaultProps$1d,
10982
+ ...defaultProps$1c,
10985
10983
  ...props
10986
10984
  };
10987
10985
  const innerIndent = indent ? Number(indent) : 20;
@@ -11031,13 +11029,13 @@ const SideNavBarItem = (props) => {
11031
11029
  title
11032
11030
  );
11033
11031
  };
11034
- const defaultProps$1c = {
11032
+ const defaultProps$1b = {
11035
11033
  open: true
11036
11034
  };
11037
11035
  const SubSideNavBar = (props) => {
11038
11036
  const classPrefix2 = "nut-subsidenavbar";
11039
11037
  const { title, value, children, onClick, open, ...rest } = {
11040
- ...defaultProps$1c,
11038
+ ...defaultProps$1b,
11041
11039
  ...props
11042
11040
  };
11043
11041
  const offset = useContext(OffsetContext);
@@ -11114,7 +11112,7 @@ function usePropsValue({
11114
11112
  );
11115
11113
  return [stateRef.current, setState];
11116
11114
  }
11117
- const defaultProps$1b = {
11115
+ const defaultProps$1a = {
11118
11116
  ...ComponentDefaults,
11119
11117
  value: "",
11120
11118
  dot: false,
@@ -11139,7 +11137,7 @@ const Badge = (props) => {
11139
11137
  color,
11140
11138
  fill
11141
11139
  } = {
11142
- ...defaultProps$1b,
11140
+ ...defaultProps$1a,
11143
11141
  ...props
11144
11142
  };
11145
11143
  const classPrefix2 = "nut-badge";
@@ -11195,10 +11193,9 @@ const Badge = (props) => {
11195
11193
  };
11196
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()));
11197
11195
  };
11198
- Badge.defaultProps = defaultProps$1b;
11199
11196
  Badge.displayName = "NutBadge";
11200
11197
  const TabbarContext = React__default.createContext(null);
11201
- const defaultProps$1a = {
11198
+ const defaultProps$19 = {
11202
11199
  ...ComponentDefaults,
11203
11200
  title: "",
11204
11201
  icon: null,
@@ -11224,7 +11221,7 @@ const TabbarItem = (props) => {
11224
11221
  index,
11225
11222
  ...rest
11226
11223
  } = {
11227
- ...defaultProps$1a,
11224
+ ...defaultProps$19,
11228
11225
  ...props
11229
11226
  };
11230
11227
  const active = index === (ctx2 == null ? void 0 : ctx2.selectIndex);
@@ -11262,7 +11259,7 @@ const TabbarItem = (props) => {
11262
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))
11263
11260
  );
11264
11261
  };
11265
- const defaultProps$19 = {
11262
+ const defaultProps$18 = {
11266
11263
  ...ComponentDefaults,
11267
11264
  defaultValue: 0,
11268
11265
  fixed: false,
@@ -11285,7 +11282,7 @@ const Tabbar = (props) => {
11285
11282
  style,
11286
11283
  onSwitch
11287
11284
  } = {
11288
- ...defaultProps$19,
11285
+ ...defaultProps$18,
11289
11286
  ...props
11290
11287
  };
11291
11288
  const classPrefix2 = "nut-tabbar";
@@ -11328,14 +11325,14 @@ const Tabbar = (props) => {
11328
11325
  };
11329
11326
  Tabbar.displayName = "NutTabbar";
11330
11327
  Tabbar.Item = TabbarItem;
11331
- const defaultProps$18 = {
11328
+ const defaultProps$17 = {
11332
11329
  title: "",
11333
11330
  value: "",
11334
11331
  disabled: false
11335
11332
  };
11336
11333
  const TabPane = (props) => {
11337
11334
  const { children, autoHeightClassName, className, disabled } = {
11338
- ...defaultProps$18,
11335
+ ...defaultProps$17,
11339
11336
  ...props
11340
11337
  };
11341
11338
  const classPrefix2 = "nut-tabpane";
@@ -11349,7 +11346,7 @@ const TabPane = (props) => {
11349
11346
  );
11350
11347
  return children ? /* @__PURE__ */ React__default.createElement("div", { className: classes }, !disabled && children) : null;
11351
11348
  };
11352
- const defaultProps$17 = {
11349
+ const defaultProps$16 = {
11353
11350
  ...ComponentDefaults,
11354
11351
  tabStyle: {},
11355
11352
  activeColor: "",
@@ -11378,7 +11375,7 @@ const Tabs = (props) => {
11378
11375
  defaultValue: outerDefaultValue,
11379
11376
  ...rest
11380
11377
  } = {
11381
- ...defaultProps$17,
11378
+ ...defaultProps$16,
11382
11379
  ...props
11383
11380
  };
11384
11381
  const [value, setValue] = usePropsValue({
@@ -11684,7 +11681,7 @@ class Tree {
11684
11681
  return pathNodes;
11685
11682
  }
11686
11683
  }
11687
- const defaultProps$16 = {
11684
+ const defaultProps$15 = {
11688
11685
  ...ComponentDefaults,
11689
11686
  activeColor: "",
11690
11687
  activeIcon: "checklist",
@@ -11723,11 +11720,13 @@ const InternalCascader = (props, ref) => {
11723
11720
  closeIconPosition,
11724
11721
  closeIcon,
11725
11722
  lazy,
11723
+ title,
11724
+ left,
11726
11725
  onLoad,
11727
11726
  onClose,
11728
11727
  onChange,
11729
11728
  onPathChange
11730
- } = { ...defaultProps$16, ...props };
11729
+ } = { ...defaultProps$15, ...props };
11731
11730
  const [tabvalue, setTabvalue] = useState("c1");
11732
11731
  const [optionsData, setOptionsData] = useState([]);
11733
11732
  const isLazy = () => state.configs.lazy && Boolean(state.configs.onLoad);
@@ -11737,7 +11736,7 @@ const InternalCascader = (props, ref) => {
11737
11736
  finalValue: defaultValue
11738
11737
  });
11739
11738
  const [innerVisible, setInnerVisible] = usePropsValue({
11740
- value: props.visible,
11739
+ value: visible,
11741
11740
  defaultValue: void 0,
11742
11741
  finalValue: false
11743
11742
  });
@@ -12024,8 +12023,8 @@ const InternalCascader = (props, ref) => {
12024
12023
  closeIcon,
12025
12024
  closeable,
12026
12025
  closeIconPosition,
12027
- title: popup && props.title,
12028
- left: props.left,
12026
+ title: popup && title,
12027
+ left,
12029
12028
  onOverlayClick: closePopup,
12030
12029
  onCloseIconClick: closePopup
12031
12030
  },
@@ -12033,9 +12032,8 @@ const InternalCascader = (props, ref) => {
12033
12032
  ) : renderTabs());
12034
12033
  };
12035
12034
  const Cascader = React__default.forwardRef(InternalCascader);
12036
- Cascader.defaultProps = defaultProps$16;
12037
12035
  Cascader.displayName = "NutCascader";
12038
- const defaultProps$15 = {
12036
+ const defaultProps$14 = {
12039
12037
  ...ComponentDefaults,
12040
12038
  visible: false,
12041
12039
  type: "custom",
@@ -12062,7 +12060,7 @@ const CustomRender = (props) => {
12062
12060
  onPathChange,
12063
12061
  ...rest
12064
12062
  } = {
12065
- ...defaultProps$15,
12063
+ ...defaultProps$14,
12066
12064
  ...props
12067
12065
  };
12068
12066
  return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, type4 === "custom" && /* @__PURE__ */ React__default.createElement(
@@ -12087,7 +12085,7 @@ const CustomRender = (props) => {
12087
12085
  }
12088
12086
  ));
12089
12087
  };
12090
- const defaultProps$14 = {
12088
+ const defaultProps$13 = {
12091
12089
  type: "custom",
12092
12090
  existList: [],
12093
12091
  defaultIcon: null,
@@ -12106,7 +12104,7 @@ const ExistRender = (props) => {
12106
12104
  onSelect,
12107
12105
  onSwitch,
12108
12106
  ...rest
12109
- } = { ...defaultProps$14, ...props };
12107
+ } = { ...defaultProps$13, ...props };
12110
12108
  const classPrefix2 = "nut-address";
12111
12109
  const selectedExist = (item) => {
12112
12110
  existList.forEach((list, index) => {
@@ -12135,7 +12133,7 @@ const ExistRender = (props) => {
12135
12133
  );
12136
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)));
12137
12135
  };
12138
- const defaultProps$13 = {
12136
+ const defaultProps$12 = {
12139
12137
  ...ComponentDefaults,
12140
12138
  defaultValue: [],
12141
12139
  type: "custom",
@@ -12177,7 +12175,7 @@ const InternalAddress = (props, ref) => {
12177
12175
  onSwitch,
12178
12176
  ...rest
12179
12177
  } = {
12180
- ...defaultProps$13,
12178
+ ...defaultProps$12,
12181
12179
  ...props
12182
12180
  };
12183
12181
  const classPrefix2 = "nut-address";
@@ -12269,7 +12267,6 @@ const InternalAddress = (props, ref) => {
12269
12267
  ));
12270
12268
  };
12271
12269
  const Address = forwardRef(InternalAddress);
12272
- Address.defaultProps = defaultProps$13;
12273
12270
  Address.displayName = "NutAddress";
12274
12271
  const Utils = {
12275
12272
  /**
@@ -12519,7 +12516,7 @@ const isEnd = (day, days) => {
12519
12516
  const isStartAndEnd = (days) => {
12520
12517
  return days.length >= 2 && Utils.isEqual(days[0], days[1]);
12521
12518
  };
12522
- const defaultProps$12 = {
12519
+ const defaultProps$11 = {
12523
12520
  ...ComponentDefaults,
12524
12521
  type: "single",
12525
12522
  autoBackfill: false,
@@ -12575,11 +12572,12 @@ const CalendarItem = React__default.forwardRef((props, ref) => {
12575
12572
  renderDay,
12576
12573
  renderDayTop,
12577
12574
  renderDayBottom,
12575
+ value,
12578
12576
  onConfirm,
12579
12577
  onUpdate,
12580
12578
  onDayClick,
12581
12579
  onPageChange
12582
- } = { ...defaultProps$12, ...props };
12580
+ } = { ...defaultProps$11, ...props };
12583
12581
  const weekdays = locale.calendaritem.weekdays;
12584
12582
  const weeks = [
12585
12583
  ...weekdays.slice(firstDayOfWeek, 7),
@@ -12611,7 +12609,7 @@ const CalendarItem = React__default.forwardRef((props, ref) => {
12611
12609
  return void 0;
12612
12610
  };
12613
12611
  const [currentDate, setCurrentDate] = usePropsValue({
12614
- value: props.value,
12612
+ value,
12615
12613
  defaultValue: resetDefaultValue(),
12616
12614
  finalValue: [],
12617
12615
  onChange: (val) => {
@@ -12817,7 +12815,7 @@ const CalendarItem = React__default.forwardRef((props, ref) => {
12817
12815
  monthsData[current.lastCurrent],
12818
12816
  true
12819
12817
  );
12820
- } else if (props.type === "week") {
12818
+ } else if (type4 === "week") {
12821
12819
  chooseDay(
12822
12820
  { day: defaultData[2], type: "curr" },
12823
12821
  monthsData[current.current],
@@ -13121,9 +13119,8 @@ const CalendarItem = React__default.forwardRef((props, ref) => {
13121
13119
  };
13122
13120
  return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement("div", { className: classes, style }, renderHeader(), renderContent(), popup && !autoBackfill ? renderFooter() : ""));
13123
13121
  });
13124
- CalendarItem.defaultProps = defaultProps$12;
13125
13122
  CalendarItem.displayName = "NutCalendarItem";
13126
- const defaultProps$11 = {
13123
+ const defaultProps$10 = {
13127
13124
  ...ComponentDefaults,
13128
13125
  type: "single",
13129
13126
  autoBackfill: false,
@@ -13186,7 +13183,7 @@ const Calendar = React__default.forwardRef((props, ref) => {
13186
13183
  onConfirm,
13187
13184
  onDayClick,
13188
13185
  onPageChange
13189
- } = { ...defaultProps$11, ...props };
13186
+ } = { ...defaultProps$10, ...props };
13190
13187
  const calendarRef = useRef(null);
13191
13188
  const close = () => {
13192
13189
  onClose && onClose();
@@ -13261,7 +13258,6 @@ const Calendar = React__default.forwardRef((props, ref) => {
13261
13258
  renderItem()
13262
13259
  ) : renderItem());
13263
13260
  });
13264
- Calendar.defaultProps = defaultProps$11;
13265
13261
  Calendar.displayName = "NutCalendar";
13266
13262
  const ArrowLeft = () => {
13267
13263
  return /* @__PURE__ */ React__default.createElement(
@@ -13367,7 +13363,7 @@ const getCurrentWeekDays = (day, firstDayOfWeek) => {
13367
13363
  )
13368
13364
  ];
13369
13365
  };
13370
- const defaultProps$10 = {
13366
+ const defaultProps$$ = {
13371
13367
  ...ComponentDefaults,
13372
13368
  type: "single",
13373
13369
  firstDayOfWeek: 0
@@ -13391,7 +13387,7 @@ const CalendarCard = React__default.forwardRef((props, ref) => {
13391
13387
  onDayClick,
13392
13388
  onPageChange,
13393
13389
  onChange
13394
- } = { ...defaultProps$10, ...props };
13390
+ } = { ...defaultProps$$, ...props };
13395
13391
  const [month, setMonth] = useState(() => {
13396
13392
  let date4 = new Date(Date.now());
13397
13393
  const val = value || defaultValue;
@@ -13693,11 +13689,10 @@ const CalendarCard = React__default.forwardRef((props, ref) => {
13693
13689
  };
13694
13690
  return days.length > 0 ? /* @__PURE__ */ React__default.createElement("div", { className: classNames(prefixCls, className), style }, renderHeader(), renderContent()) : null;
13695
13691
  });
13696
- CalendarCard.defaultProps = defaultProps$10;
13697
13692
  CalendarCard.displayName = "NutCalendarCard";
13698
13693
  const CheckboxGroupContext = createContext(null);
13699
13694
  const Context$1 = CheckboxGroupContext;
13700
- const defaultProps$$ = {
13695
+ const defaultProps$_ = {
13701
13696
  max: void 0,
13702
13697
  min: void 0,
13703
13698
  list: false,
@@ -13727,7 +13722,7 @@ const CheckboxGroup = React__default.forwardRef(
13727
13722
  direction,
13728
13723
  options: options2,
13729
13724
  ...rest
13730
- } = { ...defaultProps$$, ...props };
13725
+ } = { ...defaultProps$_, ...props };
13731
13726
  useImperativeHandle(ref, () => ({
13732
13727
  toggle(state) {
13733
13728
  if (state === false) {
@@ -13819,9 +13814,9 @@ const CheckboxGroup = React__default.forwardRef(
13819
13814
  );
13820
13815
  }
13821
13816
  );
13822
- CheckboxGroup.defaultProps = defaultProps$$;
13817
+ CheckboxGroup.defaultProps = defaultProps$_;
13823
13818
  CheckboxGroup.displayName = "NutCheckboxGroup";
13824
- const defaultProps$_ = {
13819
+ const defaultProps$Z = {
13825
13820
  ...ComponentDefaults,
13826
13821
  disabled: false,
13827
13822
  shape: "round",
@@ -13835,7 +13830,7 @@ const defaultProps$_ = {
13835
13830
  const classPrefix$h = "nut-checkbox";
13836
13831
  const Checkbox = (props) => {
13837
13832
  const { children } = {
13838
- ...defaultProps$_,
13833
+ ...defaultProps$Z,
13839
13834
  ...props
13840
13835
  };
13841
13836
  const {
@@ -13856,8 +13851,8 @@ const Checkbox = (props) => {
13856
13851
  let { labelPosition, ...rest } = others;
13857
13852
  const ctx2 = useContext(Context$1);
13858
13853
  let [innerChecked, setChecked] = usePropsValue({
13859
- value: props.checked,
13860
- defaultValue: props.defaultChecked,
13854
+ value: checked,
13855
+ defaultValue: defaultChecked,
13861
13856
  finalValue: defaultChecked,
13862
13857
  onChange
13863
13858
  });
@@ -13979,7 +13974,6 @@ const Checkbox = (props) => {
13979
13974
  renderCheckboxItem()
13980
13975
  );
13981
13976
  };
13982
- Checkbox.defaultProps = defaultProps$_;
13983
13977
  Checkbox.displayName = "NutCheckBox";
13984
13978
  Checkbox.Group = CheckboxGroup;
13985
13979
  const InternalPickerPanel = (props, ref) => {
@@ -14221,7 +14215,7 @@ function useRefs() {
14221
14215
  }, []);
14222
14216
  return [refs.current, setRefs, reset];
14223
14217
  }
14224
- const defaultProps$Z = {
14218
+ const defaultProps$Y = {
14225
14219
  ...ComponentDefaults,
14226
14220
  title: "",
14227
14221
  options: [],
@@ -14251,7 +14245,7 @@ const InternalPicker = (props, ref) => {
14251
14245
  afterClose,
14252
14246
  onChange,
14253
14247
  ...rest
14254
- } = { ...defaultProps$Z, ...props };
14248
+ } = { ...defaultProps$Y, ...props };
14255
14249
  const classPrefix2 = "nut-picker";
14256
14250
  const classes = classNames(classPrefix2, className);
14257
14251
  const [selectedValue, setSelectedValue] = usePropsValue({
@@ -14495,7 +14489,7 @@ const padZero = (num, targetLength = 2) => {
14495
14489
  return str;
14496
14490
  };
14497
14491
  const currentYear = (/* @__PURE__ */ new Date()).getFullYear();
14498
- const defaultProps$Y = {
14492
+ const defaultProps$X = {
14499
14493
  ...ComponentDefaults,
14500
14494
  visible: false,
14501
14495
  title: "",
@@ -14528,7 +14522,7 @@ const DatePicker = (props) => {
14528
14522
  style,
14529
14523
  ...rest
14530
14524
  } = {
14531
- ...defaultProps$Y,
14525
+ ...defaultProps$X,
14532
14526
  ...props
14533
14527
  };
14534
14528
  const { locale } = useConfig();
@@ -14810,7 +14804,7 @@ const DatePicker = (props) => {
14810
14804
  }
14811
14805
  ));
14812
14806
  };
14813
- DatePicker.defaultProps = defaultProps$Y;
14807
+ DatePicker.defaultProps = defaultProps$X;
14814
14808
  DatePicker.displayName = "NutDatePicker";
14815
14809
  const Context = createContext({});
14816
14810
  function _extends() {
@@ -16048,7 +16042,7 @@ const useForm = (form) => {
16048
16042
  }
16049
16043
  return [formRef.current];
16050
16044
  };
16051
- const defaultProps$X = {
16045
+ const defaultProps$W = {
16052
16046
  ...ComponentDefaults,
16053
16047
  labelPosition: "right",
16054
16048
  starPosition: "left",
@@ -16079,7 +16073,7 @@ const Form = React__default.forwardRef(
16079
16073
  starPosition,
16080
16074
  form
16081
16075
  } = {
16082
- ...defaultProps$X,
16076
+ ...defaultProps$W,
16083
16077
  ...props
16084
16078
  };
16085
16079
  let formInstance;
@@ -16125,7 +16119,6 @@ const Form = React__default.forwardRef(
16125
16119
  );
16126
16120
  }
16127
16121
  );
16128
- Form.defaultProps = defaultProps$X;
16129
16122
  Form.displayName = "NutForm";
16130
16123
  function isForwardRefComponent(component) {
16131
16124
  return component.type && component.type.$$typeof && // eslint-disable-next-line react/display-name
@@ -16136,7 +16129,7 @@ function isForwardRefComponent(component) {
16136
16129
  }
16137
16130
  ).$$typeof === component.type.$$typeof;
16138
16131
  }
16139
- const defaultProps$W = {
16132
+ const defaultProps$V = {
16140
16133
  ...ComponentDefaults,
16141
16134
  required: false,
16142
16135
  name: "",
@@ -16231,7 +16224,7 @@ const _FormItem = class _FormItem extends React__default.Component {
16231
16224
  style,
16232
16225
  errorMessageAlign
16233
16226
  } = {
16234
- ...defaultProps$W,
16227
+ ...defaultProps$V,
16235
16228
  ...this.props
16236
16229
  };
16237
16230
  const requiredInRules = rules2 == null ? void 0 : rules2.some((rule) => rule.required);
@@ -16263,6 +16256,13 @@ const _FormItem = class _FormItem extends React__default.Component {
16263
16256
  };
16264
16257
  }
16265
16258
  componentDidMount() {
16259
+ const { store = {}, setInitialValues } = this.context.getInternal(SECRET);
16260
+ if (this.props.initialValue && this.props.name && !Object.keys(store).includes(this.props.name)) {
16261
+ setInitialValues(
16262
+ { ...store, [this.props.name]: this.props.initialValue },
16263
+ true
16264
+ );
16265
+ }
16266
16266
  const { registerField, registerUpdate } = this.context.getInternal(SECRET);
16267
16267
  this.cancelRegister = registerField(this);
16268
16268
  this.eventOff = registerUpdate(this, this.props.shouldUpdate);
@@ -16290,7 +16290,7 @@ const _FormItem = class _FormItem extends React__default.Component {
16290
16290
  return /* @__PURE__ */ React__default.createElement(React__default.Fragment, { key: this.state.resetCount }, this.props.noStyle ? returnChildNode : this.renderLayout(returnChildNode));
16291
16291
  }
16292
16292
  };
16293
- _FormItem.defaultProps = defaultProps$W;
16293
+ _FormItem.defaultProps = defaultProps$V;
16294
16294
  _FormItem.contextType = Context;
16295
16295
  let FormItem = _FormItem;
16296
16296
  const InnerForm = Form;
@@ -16320,11 +16320,11 @@ function formatNumber(value, allowDot = true, allowMinus = true) {
16320
16320
  const regExp = allowDot ? /[^-0-9.]/g : /[^-0-9]/g;
16321
16321
  return value.replace(regExp, "");
16322
16322
  }
16323
- const defaultProps$V = {
16323
+ const defaultProps$U = {
16324
16324
  ...ComponentDefaults,
16325
16325
  type: "text",
16326
16326
  name: "",
16327
- placeholder: "",
16327
+ placeholder: void 0,
16328
16328
  confirmType: "done",
16329
16329
  align: "left",
16330
16330
  required: false,
@@ -16362,14 +16362,16 @@ const Input = forwardRef(
16362
16362
  confirmType,
16363
16363
  defaultValue,
16364
16364
  value: _value,
16365
+ onCompositionStart,
16366
+ onCompositionEnd,
16365
16367
  ...rest
16366
16368
  } = {
16367
- ...defaultProps$V,
16369
+ ...defaultProps$U,
16368
16370
  ...props
16369
16371
  };
16370
16372
  const [value, setValue] = usePropsValue({
16371
- value: props.value,
16372
- defaultValue: props.defaultValue,
16373
+ value: _value,
16374
+ defaultValue,
16373
16375
  finalValue: "",
16374
16376
  onChange
16375
16377
  });
@@ -16467,7 +16469,7 @@ const Input = forwardRef(
16467
16469
  },
16468
16470
  type: inputType(type4),
16469
16471
  maxLength,
16470
- placeholder: placeholder || locale.placeholder,
16472
+ placeholder: placeholder === void 0 ? locale.placeholder : placeholder,
16471
16473
  disabled,
16472
16474
  readOnly,
16473
16475
  value,
@@ -16483,21 +16485,19 @@ const Input = forwardRef(
16483
16485
  handleInput(e2.currentTarget.value);
16484
16486
  },
16485
16487
  onCompositionStart: (e2) => {
16486
- var _a;
16487
16488
  composingRef.current = true;
16488
- (_a = props.onCompositionStart) == null ? void 0 : _a.call(props, e2);
16489
+ onCompositionStart == null ? void 0 : onCompositionStart(e2);
16489
16490
  },
16490
16491
  onCompositionEnd: (e2) => {
16491
- var _a;
16492
16492
  composingRef.current = false;
16493
- (_a = props.onCompositionEnd) == null ? void 0 : _a.call(props, e2);
16493
+ onCompositionEnd == null ? void 0 : onCompositionEnd(e2);
16494
16494
  }
16495
16495
  }
16496
16496
  ),
16497
16497
  clearable && !readOnly && active && value.length > 0 ? /* @__PURE__ */ React__default.createElement(
16498
16498
  "span",
16499
16499
  {
16500
- style: { display: "flex", alignItems: "center" },
16500
+ style: { display: "flex", alignItems: "center", cursor: "pointer" },
16501
16501
  onClick: () => {
16502
16502
  if (!disabled) {
16503
16503
  setValue("");
@@ -16510,9 +16510,8 @@ const Input = forwardRef(
16510
16510
  );
16511
16511
  }
16512
16512
  );
16513
- Input.defaultProps = defaultProps$V;
16514
16513
  Input.displayName = "NutInput";
16515
- const defaultProps$U = {
16514
+ const defaultProps$T = {
16516
16515
  ...ComponentDefaults,
16517
16516
  disabled: false,
16518
16517
  readOnly: false,
@@ -16548,7 +16547,7 @@ const InputNumber = (props) => {
16548
16547
  onChange,
16549
16548
  ...restProps
16550
16549
  } = {
16551
- ...defaultProps$U,
16550
+ ...defaultProps$T,
16552
16551
  ...props
16553
16552
  };
16554
16553
  const classes = classNames(classPrefix$g, className, {
@@ -16706,7 +16705,6 @@ const InputNumber = (props) => {
16706
16705
  }
16707
16706
  )));
16708
16707
  };
16709
- InputNumber.defaultProps = defaultProps$U;
16710
16708
  InputNumber.displayName = "NutInputNumber";
16711
16709
  const isObject = (val) => val !== null && typeof val === "object";
16712
16710
  const isFunction = (val) => typeof val === "function";
@@ -16757,7 +16755,7 @@ function useClickAway(onClickAway, target, eventName = "click", useCapture, isLi
16757
16755
  };
16758
16756
  }, [target]);
16759
16757
  }
16760
- const defaultProps$T = {
16758
+ const defaultProps$S = {
16761
16759
  ...ComponentDefaults,
16762
16760
  columns: 1,
16763
16761
  direction: "down",
@@ -16788,7 +16786,7 @@ const MenuItem = forwardRef((props, ref) => {
16788
16786
  parent,
16789
16787
  index
16790
16788
  } = {
16791
- ...defaultProps$T,
16789
+ ...defaultProps$S,
16792
16790
  ...props
16793
16791
  };
16794
16792
  const [showPopup, setShowPopup] = useState(show2);
@@ -16957,9 +16955,8 @@ const MenuItem = forwardRef((props, ref) => {
16957
16955
  )
16958
16956
  ));
16959
16957
  });
16960
- MenuItem.defaultProps = defaultProps$T;
16961
16958
  MenuItem.displayName = "NutMenuItem";
16962
- const defaultProps$S = {
16959
+ const defaultProps$R = {
16963
16960
  ...ComponentDefaults,
16964
16961
  activeColor: "",
16965
16962
  closeOnOverlayClick: true,
@@ -16986,7 +16983,7 @@ const Menu = (props) => {
16986
16983
  onOpen,
16987
16984
  ...rest
16988
16985
  } = {
16989
- ...defaultProps$S,
16986
+ ...defaultProps$R,
16990
16987
  ...props
16991
16988
  };
16992
16989
  const menuRef = useRef(null);
@@ -17126,19 +17123,8 @@ const Menu = (props) => {
17126
17123
  cloneChildren()
17127
17124
  );
17128
17125
  };
17129
- Menu.defaultProps = defaultProps$S;
17130
17126
  Menu.displayName = "NutMenu";
17131
17127
  Menu.Item = MenuItem;
17132
- const defaultProps$R = {
17133
- ...ComponentDefaults,
17134
- visible: false,
17135
- rightActions: "",
17136
- type: "default",
17137
- custom: [],
17138
- random: false,
17139
- onClose: () => {
17140
- }
17141
- };
17142
17128
  const NumberKeyboard = (props) => {
17143
17129
  const { locale } = useConfig();
17144
17130
  const {
@@ -17283,7 +17269,6 @@ const NumberKeyboard = (props) => {
17283
17269
  ))))
17284
17270
  );
17285
17271
  };
17286
- NumberKeyboard.defaultProps = defaultProps$R;
17287
17272
  NumberKeyboard.displayName = "NutNumberKeyboard";
17288
17273
  const RadioContext = React__default.createContext(null);
17289
17274
  const defaultProps$Q = {
@@ -17806,7 +17791,6 @@ const Range = (props) => {
17806
17791
  renderButton()
17807
17792
  ))), maxDescription !== null && /* @__PURE__ */ React__default.createElement("div", { className: "max" }, maxDescription || max));
17808
17793
  };
17809
- Range.defaultProps = defaultProps$O;
17810
17794
  Range.displayName = "NutRange";
17811
17795
  const defaultProps$N = {
17812
17796
  ...ComponentDefaults,
@@ -18002,7 +17986,6 @@ const Rate = (props) => {
18002
17986
  })
18003
17987
  );
18004
17988
  };
18005
- Rate.defaultProps = defaultProps$N;
18006
17989
  Rate.displayName = "NutRate";
18007
17990
  const defaultProps$M = {
18008
17991
  ...ComponentDefaults,
@@ -18023,8 +18006,9 @@ const SearchBar = (props) => {
18023
18006
  const classPrefix2 = "nut-searchbar";
18024
18007
  const { locale } = useConfig();
18025
18008
  const searchRef = useRef(null);
18026
- const [value, setValue] = useState(() => props.value);
18027
18009
  const {
18010
+ value: outerValue,
18011
+ style,
18028
18012
  placeholder,
18029
18013
  shape,
18030
18014
  className,
@@ -18048,6 +18032,7 @@ const SearchBar = (props) => {
18048
18032
  ...defaultProps$M,
18049
18033
  ...props
18050
18034
  };
18035
+ const [value, setValue] = useState(() => outerValue);
18051
18036
  const forceFocus = () => {
18052
18037
  const searchSelf = searchRef.current;
18053
18038
  searchSelf && searchSelf.focus();
@@ -18068,8 +18053,8 @@ const SearchBar = (props) => {
18068
18053
  onBlur && (onBlur == null ? void 0 : onBlur(value2, event));
18069
18054
  };
18070
18055
  useEffect(() => {
18071
- setValue(props.value);
18072
- }, [props.value]);
18056
+ setValue(outerValue);
18057
+ }, [outerValue]);
18073
18058
  useEffect(() => {
18074
18059
  autoFocus && forceFocus();
18075
18060
  }, [autoFocus]);
@@ -18079,7 +18064,7 @@ const SearchBar = (props) => {
18079
18064
  {
18080
18065
  className: `${classPrefix2}-input ${clearable ? `${classPrefix2}-input-clear` : ""}`,
18081
18066
  ref: searchRef,
18082
- style: { ...props.style },
18067
+ style,
18083
18068
  value: value || "",
18084
18069
  placeholder: placeholder || locale.placeholder,
18085
18070
  disabled,
@@ -18147,7 +18132,7 @@ const SearchBar = (props) => {
18147
18132
  "div",
18148
18133
  {
18149
18134
  className: `${classPrefix2} ${disabled ? `${classPrefix2}-disabled` : ""} ${className || ""}`,
18150
- style: { ...props.style }
18135
+ style
18151
18136
  },
18152
18137
  renderLeft(),
18153
18138
  /* @__PURE__ */ React__default.createElement(
@@ -18163,7 +18148,6 @@ const SearchBar = (props) => {
18163
18148
  renderRight()
18164
18149
  );
18165
18150
  };
18166
- SearchBar.defaultProps = defaultProps$M;
18167
18151
  SearchBar.displayName = "NutSearchBar";
18168
18152
  const defaultProps$L = {
18169
18153
  ...ComponentDefaults,
@@ -18181,7 +18165,7 @@ const InternalShortPassword = (props, ref) => {
18181
18165
  title,
18182
18166
  description,
18183
18167
  tips,
18184
- visible: deleteVisible,
18168
+ visible: outerVisible,
18185
18169
  value,
18186
18170
  error,
18187
18171
  hideFooter,
@@ -18213,7 +18197,7 @@ const InternalShortPassword = (props, ref) => {
18213
18197
  return val.slice(0, comLen);
18214
18198
  };
18215
18199
  const [visible, setVisible] = usePropsValue({
18216
- value: props.visible,
18200
+ value: outerVisible,
18217
18201
  defaultValue: false,
18218
18202
  finalValue: false
18219
18203
  });
@@ -18389,7 +18373,6 @@ const InternalSignature = (props, ref) => {
18389
18373
  const Signature = React__default.forwardRef(
18390
18374
  InternalSignature
18391
18375
  );
18392
- Signature.defaultProps = defaultProps$K;
18393
18376
  Signature.displayName = "NutSignature";
18394
18377
  const defaultProps$J = {
18395
18378
  ...ComponentDefaults,
@@ -18437,7 +18420,6 @@ const Switch = (props) => {
18437
18420
  /* @__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)))
18438
18421
  );
18439
18422
  };
18440
- Switch.defaultProps = defaultProps$J;
18441
18423
  Switch.displayName = "NutSwitch";
18442
18424
  const defaultProps$I = {
18443
18425
  ...ComponentDefaults,
@@ -18556,7 +18538,6 @@ const TextArea = (props) => {
18556
18538
  showCount && /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-limit` }, inputValue.length, "/", maxLength < 0 ? 0 : maxLength)
18557
18539
  );
18558
18540
  };
18559
- TextArea.defaultProps = defaultProps$I;
18560
18541
  TextArea.displayName = "NutTextArea";
18561
18542
  class UploadOptions {
18562
18543
  constructor() {
@@ -18757,7 +18738,6 @@ const Progress = (props) => {
18757
18738
  )))
18758
18739
  );
18759
18740
  };
18760
- Progress.defaultProps = defaultProps$H;
18761
18741
  Progress.displayName = "NutProgress";
18762
18742
  const Preview = ({
18763
18743
  fileList,
@@ -19034,7 +19014,7 @@ const InternalUploader = (props, ref) => {
19034
19014
  });
19035
19015
  };
19036
19016
  const task = new Upload(uploadOption);
19037
- if (props.autoUpload) {
19017
+ if (autoUpload) {
19038
19018
  task.upload();
19039
19019
  } else {
19040
19020
  uploadQueue.push(
@@ -19073,7 +19053,7 @@ const InternalUploader = (props, ref) => {
19073
19053
  });
19074
19054
  };
19075
19055
  const filterFiles = (files) => {
19076
- const maximum = props.maxCount * 1;
19056
+ const maximum = maxCount * 1;
19077
19057
  const oversizes = new Array();
19078
19058
  const filterFile = files.filter((file) => {
19079
19059
  if (file.size > maxFileSize) {
@@ -19180,7 +19160,6 @@ const InternalUploader = (props, ref) => {
19180
19160
  ));
19181
19161
  };
19182
19162
  const Uploader = React__default.forwardRef(InternalUploader);
19183
- Uploader.defaultProps = defaultProps$G;
19184
19163
  Uploader.displayName = "NutUploader";
19185
19164
  const defaultProps$F = {
19186
19165
  ...ComponentDefaults,
@@ -19253,7 +19232,6 @@ const ActionSheet = (props) => {
19253
19232
  ))
19254
19233
  );
19255
19234
  };
19256
- ActionSheet.defaultProps = defaultProps$F;
19257
19235
  ActionSheet.displayName = "NutActionSheet";
19258
19236
  const fullClone = {
19259
19237
  ...ReactDOM
@@ -19676,7 +19654,7 @@ const Drag = (props) => {
19676
19654
  ({ down, last, offset: [x, y] }) => {
19677
19655
  api.start({ x, y, immediate: down });
19678
19656
  if (last) {
19679
- if (props.direction !== "y" && props.attract) {
19657
+ if (direction !== "y" && attract) {
19680
19658
  if (x < middleLine.current) {
19681
19659
  api.start({ x: boundaryState.left, y, immediate: down });
19682
19660
  } else {
@@ -19709,7 +19687,6 @@ const Drag = (props) => {
19709
19687
  /* @__PURE__ */ React__default.createElement(animated.div, { style: currstyle, ...bind() }, children)
19710
19688
  );
19711
19689
  };
19712
- Drag.defaultProps = defaultProps$D;
19713
19690
  Drag.displayName = "NutDrag";
19714
19691
  const defaultStatus = {
19715
19692
  empty: "https://storage.360buyimg.com/imgtools/30186cfda0-0d3eee40-c0ac-11ee-9382-9125782aa3b8.png",
@@ -19784,7 +19761,6 @@ const Empty = (props) => {
19784
19761
  );
19785
19762
  })), children);
19786
19763
  };
19787
- Empty.defaultProps = defaultProps$C;
19788
19764
  Empty.displayName = "NutEmpty";
19789
19765
  const defaultProps$B = {
19790
19766
  ...ComponentDefaults,
@@ -19953,7 +19929,6 @@ const InfiniteLoading = (props) => {
19953
19929
  /* @__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))
19954
19930
  );
19955
19931
  };
19956
- InfiniteLoading.defaultProps = defaultProps$B;
19957
19932
  InfiniteLoading.displayName = "NutInfiniteLoading";
19958
19933
  const loadingMap = {
19959
19934
  circular: c,
@@ -19986,7 +19961,6 @@ const Loading = (props) => {
19986
19961
  children ? /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-text` }, children) : ""
19987
19962
  );
19988
19963
  };
19989
- Loading.defaultProps = defaultProps$A;
19990
19964
  Loading.displayName = "NutLoading";
19991
19965
  const defaultProps$z = {
19992
19966
  ...ComponentDefaults,
@@ -20394,7 +20368,6 @@ const NoticeBar = (props) => {
20394
20368
  )
20395
20369
  ) : null);
20396
20370
  };
20397
- NoticeBar.defaultProps = defaultProps$z;
20398
20371
  NoticeBar.displayName = "NutNoticeBar";
20399
20372
  const classPrefix$c = "nut-notify";
20400
20373
  let Notification$1 = class Notification extends React.PureComponent {
@@ -20641,8 +20614,7 @@ const Popover = (props) => {
20641
20614
  }
20642
20615
  useClickAway(
20643
20616
  () => {
20644
- var _a;
20645
- (_a = props.onClick) == null ? void 0 : _a.call(props);
20617
+ onClick == null ? void 0 : onClick();
20646
20618
  onClose == null ? void 0 : onClose();
20647
20619
  },
20648
20620
  targetSet,
@@ -20731,7 +20703,7 @@ const Popover = (props) => {
20731
20703
  const direction = location.split("-")[0];
20732
20704
  const skew = location.split("-")[1];
20733
20705
  const base = 16;
20734
- if (props.arrowOffset !== 0) {
20706
+ if (arrowOffset !== 0) {
20735
20707
  const dir = rtl ? "right" : "left";
20736
20708
  const dir2 = rtl ? "left" : "right";
20737
20709
  if (["bottom", "top"].includes(direction)) {
@@ -20760,12 +20732,11 @@ const Popover = (props) => {
20760
20732
  return styles;
20761
20733
  };
20762
20734
  const handleSelect = (item, index) => {
20763
- var _a;
20764
20735
  if (!item.disabled) {
20765
20736
  onSelect == null ? void 0 : onSelect(item, index);
20766
20737
  }
20767
20738
  if (closeOnActionClick) {
20768
- (_a = props.onClick) == null ? void 0 : _a.call(props);
20739
+ onClick == null ? void 0 : onClick();
20769
20740
  onClose == null ? void 0 : onClose();
20770
20741
  }
20771
20742
  };
@@ -20775,8 +20746,7 @@ const Popover = (props) => {
20775
20746
  className: "nut-popover-wrapper",
20776
20747
  ref: popoverRef,
20777
20748
  onClick: () => {
20778
- var _a;
20779
- (_a = props.onClick) == null ? void 0 : _a.call(props);
20749
+ onClick == null ? void 0 : onClick();
20780
20750
  if (!visible) {
20781
20751
  onOpen == null ? void 0 : onOpen();
20782
20752
  } else {
@@ -20839,7 +20809,6 @@ const Popover = (props) => {
20839
20809
  document.body
20840
20810
  ));
20841
20811
  };
20842
- Popover.defaultProps = defaultProps$y;
20843
20812
  Popover.displayName = "NutPopover";
20844
20813
  function bound(position, min, max) {
20845
20814
  let ret = position;
@@ -21056,7 +21025,6 @@ const AvatarGroup = (props) => {
21056
21025
  };
21057
21026
  return /* @__PURE__ */ React__default.createElement(AvatarContext.Provider, { value: parentAvatar }, /* @__PURE__ */ React__default.createElement("div", { className: cls, style, ref: avatarGroupRef }, children));
21058
21027
  };
21059
- AvatarGroup.defaultProps = defaultProps$w;
21060
21028
  AvatarGroup.displayName = "NutAvatarGroup";
21061
21029
  const defaultProps$v = {
21062
21030
  ...ComponentDefaults,
@@ -21138,8 +21106,8 @@ const Avatar = (props) => {
21138
21106
  }
21139
21107
  };
21140
21108
  const errorEvent = () => {
21141
- if (props.onError) {
21142
- props.onError();
21109
+ if (onError) {
21110
+ onError();
21143
21111
  }
21144
21112
  };
21145
21113
  const clickAvatar = (e2) => {
@@ -21170,7 +21138,6 @@ const Avatar = (props) => {
21170
21138
  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)}`)
21171
21139
  ));
21172
21140
  };
21173
- Avatar.defaultProps = defaultProps$v;
21174
21141
  Avatar.displayName = "NutAvatar";
21175
21142
  Avatar.Group = AvatarGroup;
21176
21143
  const defaultProps$u = {
@@ -21232,7 +21199,6 @@ const Skeleton = (props) => {
21232
21199
  return /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-block`, key: index });
21233
21200
  })))));
21234
21201
  };
21235
- Skeleton.defaultProps = defaultProps$u;
21236
21202
  Skeleton.displayName = "NutSkeleton";
21237
21203
  function preventDefault(event, isStopPropagation) {
21238
21204
  if (typeof event.cancelable !== "boolean" || event.cancelable) {
@@ -21661,7 +21627,6 @@ const Animate = (props) => {
21661
21627
  };
21662
21628
  return /* @__PURE__ */ React__default.createElement("div", { className: "nut-animate" }, /* @__PURE__ */ React__default.createElement("div", { className: cls, onClick: handleClick2, ...rest }, children));
21663
21629
  };
21664
- Animate.defaultProps = defaultProps$s;
21665
21630
  Animate.displayName = "NutAnimate";
21666
21631
  const defaultProps$r = {
21667
21632
  ...ComponentDefaults,
@@ -22064,11 +22029,10 @@ const CircleProgress = (props) => {
22064
22029
  return `M 50 50 m -45 0 a 45 45 0 1 ${isWise} 90 0 a 45 45 0 1 ${isWise} -90 0`;
22065
22030
  };
22066
22031
  const stop2 = () => {
22067
- if (!isObject(props.color)) {
22032
+ if (!isObject(color)) {
22068
22033
  return;
22069
22034
  }
22070
- const color2 = props.color;
22071
- const colorArr = Object.keys(color2).sort(
22035
+ const colorArr = Object.keys(color).sort(
22072
22036
  (a2, b) => parseFloat(a2) - parseFloat(b)
22073
22037
  );
22074
22038
  const stopArr = [];
@@ -22078,7 +22042,7 @@ const CircleProgress = (props) => {
22078
22042
  value: ""
22079
22043
  };
22080
22044
  obj.key = item;
22081
- obj.value = color2[item];
22045
+ obj.value = color[item];
22082
22046
  stopArr.push(obj);
22083
22047
  });
22084
22048
  return stopArr;
@@ -22107,7 +22071,6 @@ const CircleProgress = (props) => {
22107
22071
  }
22108
22072
  )), /* @__PURE__ */ React__default.createElement("div", { className: "nut-circleprogress-text" }, children));
22109
22073
  };
22110
- CircleProgress.defaultProps = defaultProps$o;
22111
22074
  CircleProgress.displayName = "NutCircleProgress";
22112
22075
  const collapseContext = {
22113
22076
  isOpen: (name) => {
@@ -22217,7 +22180,6 @@ const CollapseItem = (props) => {
22217
22180
  /* @__PURE__ */ React__default.createElement("div", { ref: contentRef, className: `${classPrefix2}-content-text` }, children)
22218
22181
  ));
22219
22182
  };
22220
- CollapseItem.defaultProps = defaultProps$n;
22221
22183
  CollapseItem.displayName = "NutCollapseItem";
22222
22184
  const defaultProps$m = {
22223
22185
  ...ComponentDefaults,
@@ -22295,7 +22257,6 @@ const Collapse = (props) => {
22295
22257
  /* @__PURE__ */ React__default.createElement("div", { className: classNames(classPrefix2, className), style }, children)
22296
22258
  );
22297
22259
  };
22298
- Collapse.defaultProps = defaultProps$m;
22299
22260
  Collapse.displayName = "NutCollapse";
22300
22261
  Collapse.Item = CollapseItem;
22301
22262
  const defaultProps$l = {
@@ -22536,7 +22497,6 @@ const InternalCountDown = (props, ref) => {
22536
22497
  const CountDown = React__default.forwardRef(
22537
22498
  InternalCountDown
22538
22499
  );
22539
- CountDown.defaultProps = defaultProps$l;
22540
22500
  CountDown.displayName = "NutCountDown";
22541
22501
  const useIsomorphicLayoutEffect = canUseDom ? useLayoutEffect : useEffect;
22542
22502
  const defaultProps$k = {
@@ -22717,7 +22677,6 @@ const Ellipsis = (props) => {
22717
22677
  collapseText
22718
22678
  ) : null) : null);
22719
22679
  };
22720
- Ellipsis.defaultProps = defaultProps$k;
22721
22680
  Ellipsis.displayName = "NutEllipsis";
22722
22681
  const defaultProps$j = {
22723
22682
  ...ComponentDefaults,
@@ -22797,7 +22756,6 @@ const Video = (props) => {
22797
22756
  /* @__PURE__ */ React__default.createElement("track", { kind: "captions" })
22798
22757
  ));
22799
22758
  };
22800
- Video.defaultProps = defaultProps$j;
22801
22759
  Video.displayName = "NutVideo";
22802
22760
  const defaultProps$i = {
22803
22761
  total: 3,
@@ -22830,7 +22788,6 @@ const Indicator = (props) => {
22830
22788
  };
22831
22789
  return /* @__PURE__ */ React__default.createElement("div", { className: classNames(classPrefix$3, classes, className), ...rest }, renderElement());
22832
22790
  };
22833
- Indicator.defaultProps = defaultProps$i;
22834
22791
  Indicator.displayName = "NutIndicator";
22835
22792
  const getRefValue = (ref) => {
22836
22793
  return ref.current;
@@ -23259,6 +23216,7 @@ const defaultProps$f = {
23259
23216
  };
23260
23217
  const ImagePreview = (props) => {
23261
23218
  const {
23219
+ value,
23262
23220
  className,
23263
23221
  style,
23264
23222
  images,
@@ -23271,17 +23229,17 @@ const ImagePreview = (props) => {
23271
23229
  closeOnContentClick,
23272
23230
  closeIcon,
23273
23231
  closeIconPosition,
23274
- onClose
23275
- } = props;
23232
+ onClose,
23233
+ onChange
23234
+ } = { ...defaultProps$f, ...props };
23276
23235
  const classPrefix2 = "nut-imagepreview";
23277
23236
  const ref = useRef(null);
23278
23237
  const [innerNo, setInnerNo] = usePropsValue({
23279
- value: props.value,
23238
+ value,
23280
23239
  defaultValue,
23281
23240
  finalValue: defaultValue,
23282
23241
  onChange: (val) => {
23283
- var _a;
23284
- (_a = props.onChange) == null ? void 0 : _a.call(props, val);
23242
+ onChange == null ? void 0 : onChange(val);
23285
23243
  }
23286
23244
  });
23287
23245
  const [showPop, setShowPop] = useState(visible);
@@ -23392,9 +23350,8 @@ const ImagePreview = (props) => {
23392
23350
  );
23393
23351
  };
23394
23352
  const slideChangeEnd = (page) => {
23395
- var _a;
23396
23353
  setActive(page + 1);
23397
- (_a = props.onChange) == null ? void 0 : _a.call(props, page + 1);
23354
+ onChange == null ? void 0 : onChange(page + 1);
23398
23355
  };
23399
23356
  const onCloseInner = (e2) => {
23400
23357
  e2.stopPropagation();
@@ -23408,6 +23365,7 @@ const ImagePreview = (props) => {
23408
23365
  });
23409
23366
  };
23410
23367
  const closeOnImg = (e2) => {
23368
+ e2.stopPropagation();
23411
23369
  if (closeOnContentClick) {
23412
23370
  onCloseInner(e2);
23413
23371
  }
@@ -23465,7 +23423,6 @@ const ImagePreview = (props) => {
23465
23423
  ) : null
23466
23424
  );
23467
23425
  };
23468
- ImagePreview.defaultProps = defaultProps$f;
23469
23426
  ImagePreview.displayName = "NutImagePreview";
23470
23427
  const defaultProps$e = {
23471
23428
  ...ComponentDefaults,
@@ -23577,7 +23534,6 @@ const Pagination = (props) => {
23577
23534
  next || locale.pagination.next
23578
23535
  )), 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))));
23579
23536
  };
23580
- Pagination.defaultProps = defaultProps$e;
23581
23537
  Pagination.displayName = "NutPagination";
23582
23538
  const defaultProps$d = {
23583
23539
  ...ComponentDefaults,
@@ -23670,7 +23626,6 @@ const Price = (props) => {
23670
23626
  symbol && position === "after" ? renderSymbol() : null
23671
23627
  );
23672
23628
  };
23673
- Price.defaultProps = defaultProps$d;
23674
23629
  Price.displayName = "NutPrice";
23675
23630
  const DataContext = createContext({});
23676
23631
  const defaultProps$c = {
@@ -23716,7 +23671,6 @@ const Step = (props) => {
23716
23671
  };
23717
23672
  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)));
23718
23673
  };
23719
- Step.defaultProps = defaultProps$c;
23720
23674
  Step.displayName = "NutStep";
23721
23675
  const defaultProps$b = {
23722
23676
  ...ComponentDefaults,
@@ -23743,13 +23697,12 @@ const Steps = (props) => {
23743
23697
  classPrefix2,
23744
23698
  {
23745
23699
  [`${classPrefix2}-${direction}`]: true,
23746
- [`${classPrefix2}-dot`]: !!props.dot
23700
+ [`${classPrefix2}-dot`]: !!dot
23747
23701
  },
23748
23702
  className
23749
23703
  );
23750
23704
  return /* @__PURE__ */ React__default.createElement(DataContext.Provider, { value: parentSteps }, /* @__PURE__ */ React__default.createElement("div", { className: classes, ...restProps }, children));
23751
23705
  };
23752
- Steps.defaultProps = defaultProps$b;
23753
23706
  Steps.displayName = "NutSteps";
23754
23707
  function useTableSticky(columns, rtl = false) {
23755
23708
  const [isSticky, setIsSticky] = useState(false);
@@ -23890,7 +23843,7 @@ const Table = (props) => {
23890
23843
  };
23891
23844
  const cellClasses = (item) => {
23892
23845
  return {
23893
- [`${headerClassPrefix}-border`]: props.bordered,
23846
+ [`${headerClassPrefix}-border`]: bordered,
23894
23847
  [`${headerClassPrefix}-align${item.align ? item.align : ""}`]: true
23895
23848
  };
23896
23849
  };
@@ -23976,7 +23929,6 @@ const Table = (props) => {
23976
23929
  }
23977
23930
  )) : null, (summary || innerValue.length === 0) && /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-summary` }, summary || noData));
23978
23931
  };
23979
- Table.defaultProps = defaultProps$a;
23980
23932
  Table.displayName = "NutTable";
23981
23933
  const defaultProps$9 = {
23982
23934
  ...ComponentDefaults,
@@ -24079,7 +24031,6 @@ const Tag = (props) => {
24079
24031
  children && /* @__PURE__ */ React__default.createElement("span", { className: `${classPrefix2}-text` }, children)
24080
24032
  ));
24081
24033
  };
24082
- Tag.defaultProps = defaultProps$9;
24083
24034
  Tag.displayName = "NutTag";
24084
24035
  const defaultProps$8 = {
24085
24036
  ...ComponentDefaults,
@@ -24237,7 +24188,6 @@ const Tour = (props) => {
24237
24188
  )));
24238
24189
  }));
24239
24190
  };
24240
- Tour.defaultProps = defaultProps$8;
24241
24191
  Tour.displayName = "NutTour";
24242
24192
  const initPositinoCache = (reaItemSize, length = 0) => {
24243
24193
  let index = 0;
@@ -24542,7 +24492,6 @@ const VirtualList = (props) => {
24542
24492
  )
24543
24493
  );
24544
24494
  };
24545
- VirtualList.defaultProps = defaultProps$7;
24546
24495
  VirtualList.displayName = "NutVirtualList";
24547
24496
  const defaultProps$6 = {
24548
24497
  ...ComponentDefaults,
@@ -24650,7 +24599,6 @@ const InternalBarrage = (props, ref) => {
24650
24599
  const Barrage = React__default.forwardRef(
24651
24600
  InternalBarrage
24652
24601
  );
24653
- Barrage.defaultProps = defaultProps$6;
24654
24602
  Barrage.displayName = "NutBarrage";
24655
24603
  const defaultProps$5 = {
24656
24604
  ...ComponentDefaults,
@@ -24696,7 +24644,6 @@ const Card = (props) => {
24696
24644
  }
24697
24645
  )), /* @__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)));
24698
24646
  };
24699
- Card.defaultProps = defaultProps$5;
24700
24647
  Card.displayName = "NutCard";
24701
24648
  const defaultProps$4 = {
24702
24649
  ...ComponentDefaults,
@@ -24751,7 +24698,6 @@ const TimeDetail = (props) => {
24751
24698
  item[optionKey.textKey]
24752
24699
  )));
24753
24700
  };
24754
- TimeDetail.defaultProps = defaultProps$4;
24755
24701
  TimeDetail.displayName = "NutTimeDetail";
24756
24702
  const defaultProps$3 = {
24757
24703
  ...ComponentDefaults,
@@ -24889,7 +24835,6 @@ const TimeSelect = (props) => {
24889
24835
  )))
24890
24836
  );
24891
24837
  };
24892
- TimeSelect.defaultProps = defaultProps$3;
24893
24838
  TimeSelect.displayName = "NutTimeSelect";
24894
24839
  const defaultProps$2 = {
24895
24840
  ...ComponentDefaults,
@@ -24970,7 +24915,6 @@ const TrendArrow = (props) => {
24970
24915
  };
24971
24916
  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));
24972
24917
  };
24973
- TrendArrow.defaultProps = defaultProps$2;
24974
24918
  TrendArrow.displayName = "NutTrendArrow";
24975
24919
  const defaultProps$1 = {
24976
24920
  ...ComponentDefaults,
@@ -25082,7 +25026,6 @@ const WaterMark = (props) => {
25082
25026
  }
25083
25027
  );
25084
25028
  };
25085
- WaterMark.defaultProps = defaultProps$1;
25086
25029
  WaterMark.displayName = "NutWaterMark";
25087
25030
  const defaultProps = {
25088
25031
  ...ComponentDefaults,
@@ -25445,7 +25388,6 @@ const AvatarCropper = (props) => {
25445
25388
  }
25446
25389
  ), /* @__PURE__ */ React__default.createElement("div", { className: "nut-avatar-cropper-edit-text" }, editText)), CropperPopup());
25447
25390
  };
25448
- AvatarCropper.defaultProps = defaultProps;
25449
25391
  AvatarCropper.displayName = "NutAvatarCropper";
25450
25392
  export {
25451
25393
  ActionSheet,