@nutui/nutui-react-taro 2.6.15-beta.0 → 2.6.15

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 (38) hide show
  1. package/CHANGELOG.md +914 -909
  2. package/README.md +21 -28
  3. package/dist/esm/Audio.js +1 -1
  4. package/dist/esm/Checkbox.js +1 -1
  5. package/dist/esm/CheckboxGroup.js +1 -1
  6. package/dist/esm/DatePicker.js +1 -1
  7. package/dist/esm/ImagePreview.js +1 -1
  8. package/dist/esm/Menu.js +1 -1
  9. package/dist/esm/PullToRefresh.js +1 -1
  10. package/dist/esm/Radio.js +1 -1
  11. package/dist/esm/RadioGroup.js +1 -1
  12. package/dist/esm/Swipe.js +1 -1
  13. package/dist/esm/Swiper.js +1 -2
  14. package/dist/esm/SwiperItem.js +1 -1
  15. package/dist/esm/Table.js +1 -1
  16. package/dist/esm/{audio.taro-DzSc40G9.js → audio.taro-CD-vP_u0.js} +7 -8
  17. package/dist/esm/{checkbox.taro-Dc054oRo.js → checkbox.taro-CgqJyhrh.js} +4 -5
  18. package/dist/esm/{datepicker.taro-DTyJrlhD.js → datepicker.taro-BxaZ3Fjv.js} +3 -4
  19. package/dist/esm/{imagepreview.taro-DtgQJEQ_.js → imagepreview.taro-CF-CCJ1Q.js} +1 -1
  20. package/dist/esm/{menu.taro-CrPdDbYM.js → menu.taro-BeuoJcj7.js} +2 -2
  21. package/dist/esm/nutui-react.es.js +10 -10
  22. package/dist/esm/{pulltorefresh.taro-CZReoWwU.js → pulltorefresh.taro-BScP6uPx.js} +0 -1
  23. package/dist/esm/{radio.taro-BNSceequ.js → radio.taro-CzOHqD3O.js} +0 -2
  24. package/dist/esm/{swipe.taro-yUhne9XU.js → swipe.taro-Bsk2fnEl.js} +0 -1
  25. package/dist/esm/{swiperitem.taro-DeiNSrJV.js → swiperitem.taro-BleF1EOs.js} +0 -5
  26. package/dist/esm/{table.taro-D2M3D2Vj.js → table.taro-B6WCKTkO.js} +6 -5
  27. package/dist/locales/base.js +1 -1
  28. package/dist/locales/en-US.js +1 -1
  29. package/dist/locales/id-ID.js +1 -1
  30. package/dist/locales/tr-TR.js +1 -1
  31. package/dist/locales/zh-CN.js +1 -1
  32. package/dist/locales/zh-TW.js +1 -1
  33. package/dist/locales/zh-UG.js +1 -1
  34. package/dist/nutui.react.es.js +187 -204
  35. package/dist/nutui.react.umd.js +187 -204
  36. package/dist/types/packages/swiperitem/swiperitem.d.ts +0 -1
  37. package/package.json +2 -2
  38. package/dist/types/packages/griditem/types.d.ts +0 -13
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react-taro v2.6.14 Wed Jul 24 2024 13:29:51 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react-taro v2.6.15 Fri Jul 26 2024 15:18:34 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -127,7 +127,6 @@ const S = m;
127
127
  const g$6 = (M) => /* @__PURE__ */ React__default.createElement(S, { ...M, name: M.name || "ArrowDown", svg64: "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiPjxwYXRoIGZpbGw9IiMxQTFBMUEiIGQ9Ik0xNTguMTcgMjg5LjgzYTQyLjY3IDQyLjY3IDAgMSAwLTYwLjM0IDYwLjM0bDM4NCAzODRhNDIuNjcgNDIuNjcgMCAwIDAgNjAuMzYgMGwzODQtMzg0YTQyLjY3IDQyLjY3IDAgMSAwLTYwLjM2LTYwLjM0TDUxMiA2NDMuNjd6Ii8+PC9zdmc+" });
128
128
  g$6.defaultProps = k;
129
129
  const g$5 = (M) => /* @__PURE__ */ React__default.createElement(S, { ...M, name: M.name || "ArrowLeft", svg64: "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiPjxwYXRoIGZpbGw9IiMxQTFBMUEiIGQ9Ik03MTIuODMgMTU4LjE3YTQyLjY3IDQyLjY3IDAgMSAwLTYwLjMzLTYwLjM0bC0zODQgMzg0YTQyLjY3IDQyLjY3IDAgMCAwIDAgNjAuMzZsMzg0IDM4NGE0Mi42NyA0Mi42NyAwIDEgMCA2MC4zMy02MC4zNkwzNTkgNTEyeiIvPjwvc3ZnPg==" });
130
- g$5.defaultProps = k;
131
130
  const a$2 = (M) => /* @__PURE__ */ React__default.createElement(S, { ...M, name: M.name || "ArrowUp", svg64: "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiPjxwYXRoIGZpbGw9IiMxQTFBMUEiIGQ9Ik0xNTguMTcgNzM0LjE3YTQyLjY3IDQyLjY3IDAgMSAxLTYwLjM0LTYwLjM0bDM4NC0zODRhNDIuNjcgNDIuNjcgMCAwIDEgNjAuMzYgMGwzODQgMzg0YTQyLjY3IDQyLjY3IDAgMSAxLTYwLjM2IDYwLjM0TDUxMiAzODAuMzN6Ii8+PC9zdmc+" });
132
131
  a$2.defaultProps = k;
133
132
  const g$4 = (M) => /* @__PURE__ */ React__default.createElement(S, { ...M, name: M.name || "CheckChecked", svg64: "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiPjxwYXRoIGZpbGw9IiMzMzMiIGQ9Ik01MDYuNjUgMi44MkMyMjguMDEgMi44Mi4wMyAyMzAuOC4wMyA1MDkuNDRzMjI3Ljk4IDUwNi42MiA1MDYuNjIgNTA2LjYyIDUwNi42Mi0yMjcuOTggNTA2LjYzLTUwNi42MlM3ODguMTEgMi44MiA1MDYuNjUgMi44Mm0wIDc4OC4wOGMtMTU0LjggMC0yODEuNDYtMTI2LjY2LTI4MS40NS0yODEuNDZzMTI2LjY2LTI4MS40NiAyODEuNDUtMjgxLjQ2IDI4MS40NiAxMjYuNjYgMjgxLjQ2IDI4MS40NlM2NjEuNDUgNzkwLjkgNTA2LjY1IDc5MC45Ii8+PHBhdGggZmlsbD0iIzMzMyIgZD0iTTM4MCA1MDkuNDRhMTI2LjY2IDEyNi42NiAwIDEgMCAyNTMuMzEgMCAxMjYuNjYgMTI2LjY2IDAgMSAwLTI1My4zMSAwIi8+PC9zdmc+" });
@@ -197,7 +196,7 @@ const ComponentDefaults = {
197
196
  style: {}
198
197
  };
199
198
  const prefixCls$2 = "nut-button";
200
- const defaultProps$1v = {
199
+ const defaultProps$1u = {
201
200
  ...ComponentDefaults,
202
201
  color: "",
203
202
  type: "default",
@@ -232,7 +231,7 @@ const Button = React__default.forwardRef(
232
231
  onClick,
233
232
  ...rest
234
233
  } = {
235
- ...defaultProps$1v,
234
+ ...defaultProps$1u,
236
235
  ...props
237
236
  };
238
237
  const getStyle = useCallback(() => {
@@ -299,7 +298,7 @@ const Button = React__default.forwardRef(
299
298
  );
300
299
  Button.displayName = "NutButton";
301
300
  const CellGroupContext = createContext(null);
302
- const defaultProps$1u = {
301
+ const defaultProps$1t = {
303
302
  ...ComponentDefaults,
304
303
  title: "",
305
304
  description: "",
@@ -308,7 +307,7 @@ const defaultProps$1u = {
308
307
  const classPrefix$r = "nut-cell-group";
309
308
  const CellGroup = (props) => {
310
309
  const { children, className, title, description, divider, ...rest } = {
311
- ...defaultProps$1u,
310
+ ...defaultProps$1t,
312
311
  ...props
313
312
  };
314
313
  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(
@@ -320,7 +319,7 @@ const CellGroup = (props) => {
320
319
  ));
321
320
  };
322
321
  CellGroup.displayName = "NutCellGroup";
323
- const defaultProps$1t = {
322
+ const defaultProps$1s = {
324
323
  ...ComponentDefaults,
325
324
  title: null,
326
325
  description: null,
@@ -345,7 +344,7 @@ const Cell = (props) => {
345
344
  style,
346
345
  ...rest
347
346
  } = {
348
- ...defaultProps$1t,
347
+ ...defaultProps$1s,
349
348
  ...props
350
349
  };
351
350
  const handleClick = (event) => {
@@ -1520,7 +1519,7 @@ ConfigProvider.displayName = "NutConfigProvider";
1520
1519
  const pxCheck = (value) => {
1521
1520
  return Number.isNaN(Number(value)) ? String(value) : `${value}px`;
1522
1521
  };
1523
- const defaultProps$1s = {
1522
+ const defaultProps$1r = {
1524
1523
  src: "",
1525
1524
  error: true,
1526
1525
  loading: true
@@ -1539,7 +1538,7 @@ const Image$1 = (props) => {
1539
1538
  onLoad,
1540
1539
  onError,
1541
1540
  ...rest
1542
- } = { ...defaultProps$1s, ...props };
1541
+ } = { ...defaultProps$1r, ...props };
1543
1542
  const [innerLoading, setInnerLoading] = useState(true);
1544
1543
  const [isError, setIsError] = useState(false);
1545
1544
  const handleLoad = (e2) => {
@@ -3558,7 +3557,7 @@ const Overlay = (props) => {
3558
3557
  };
3559
3558
  Overlay.displayName = "NutOverlay";
3560
3559
  const DataContext$1 = createContext({});
3561
- const defaultProps$1r = {
3560
+ const defaultProps$1q = {
3562
3561
  ...ComponentDefaults,
3563
3562
  span: "24",
3564
3563
  offset: "0",
@@ -3566,7 +3565,7 @@ const defaultProps$1r = {
3566
3565
  };
3567
3566
  const Col = (props) => {
3568
3567
  const { className, style, span, offset, children, onClick } = {
3569
- ...defaultProps$1r,
3568
+ ...defaultProps$1q,
3570
3569
  ...props
3571
3570
  };
3572
3571
  const [colName, setColName] = useState("");
@@ -3599,7 +3598,7 @@ const Col = (props) => {
3599
3598
  );
3600
3599
  };
3601
3600
  Col.displayName = "NutCol";
3602
- const defaultProps$1q = {
3601
+ const defaultProps$1p = {
3603
3602
  ...ComponentDefaults,
3604
3603
  contentPosition: "center",
3605
3604
  direction: "horizontal"
@@ -3607,7 +3606,7 @@ const defaultProps$1q = {
3607
3606
  const classPrefix$o = `nut-divider`;
3608
3607
  const Divider = (props) => {
3609
3608
  const { children, contentPosition, style, className, direction, ...rest } = {
3610
- ...defaultProps$1q,
3609
+ ...defaultProps$1p,
3611
3610
  ...props
3612
3611
  };
3613
3612
  const classes = direction === "horizontal" ? classNames({
@@ -3628,7 +3627,7 @@ const gridContext = {
3628
3627
  }
3629
3628
  };
3630
3629
  const GridContext = React__default.createContext(gridContext);
3631
- const defaultProps$1p = {
3630
+ const defaultProps$1o = {
3632
3631
  text: "",
3633
3632
  columns: 4,
3634
3633
  gap: 0,
@@ -3654,7 +3653,7 @@ const GridItem = (props) => {
3654
3653
  onClick,
3655
3654
  ...rest
3656
3655
  } = {
3657
- ...defaultProps$1p,
3656
+ ...defaultProps$1o,
3658
3657
  ...props
3659
3658
  };
3660
3659
  const classPrefix2 = "nut-grid-item";
@@ -3713,7 +3712,7 @@ const GridItem = (props) => {
3713
3712
  );
3714
3713
  };
3715
3714
  GridItem.displayName = "NutGridItem";
3716
- const defaultProps$1o = {
3715
+ const defaultProps$1n = {
3717
3716
  columns: 4,
3718
3717
  gap: 0,
3719
3718
  center: true,
@@ -3734,7 +3733,7 @@ const Grid = (props) => {
3734
3733
  className,
3735
3734
  onClick,
3736
3735
  ...rest
3737
- } = { ...defaultProps$1o, ...props };
3736
+ } = { ...defaultProps$1n, ...props };
3738
3737
  const childrenDom = React__default.Children.toArray(children);
3739
3738
  const classPrefix2 = "nut-grid";
3740
3739
  const rootClass = () => {
@@ -3770,14 +3769,14 @@ const Grid = (props) => {
3770
3769
  };
3771
3770
  Grid.displayName = "NutGrid";
3772
3771
  Grid.Item = GridItem;
3773
- const defaultProps$1n = {};
3772
+ const defaultProps$1m = {};
3774
3773
  const Layout = (props) => {
3775
- ({ ...defaultProps$1n, ...props });
3774
+ ({ ...defaultProps$1m, ...props });
3776
3775
  return /* @__PURE__ */ React__default.createElement("div", { className: "nut-layout" }, "Layout");
3777
3776
  };
3778
3777
  Layout.displayName = "NutLayout";
3779
3778
  const classPrefix$n = "nut-row";
3780
- const defaultProps$1m = {
3779
+ const defaultProps$1l = {
3781
3780
  ...ComponentDefaults,
3782
3781
  type: "",
3783
3782
  justify: "start",
@@ -3797,7 +3796,7 @@ const Row = (props) => {
3797
3796
  gutter,
3798
3797
  onClick
3799
3798
  } = {
3800
- ...defaultProps$1m,
3799
+ ...defaultProps$1l,
3801
3800
  ...props
3802
3801
  };
3803
3802
  const getClass = (prefix, type22) => {
@@ -3831,12 +3830,12 @@ const Row = (props) => {
3831
3830
  };
3832
3831
  Row.displayName = "NutRow";
3833
3832
  const prefixCls$1 = "nut-space";
3834
- const defaultProps$1l = {
3833
+ const defaultProps$1k = {
3835
3834
  direction: "horizontal"
3836
3835
  };
3837
3836
  const Space = (props) => {
3838
3837
  const { className, style, children, wrap, align, direction, justify } = {
3839
- ...defaultProps$1l,
3838
+ ...defaultProps$1k,
3840
3839
  ...props
3841
3840
  };
3842
3841
  const cls = classNames(
@@ -3928,7 +3927,7 @@ const getRectByTaro = async (element) => {
3928
3927
  }
3929
3928
  return Promise.resolve(makeRect(0, 0));
3930
3929
  };
3931
- const defaultProps$1k = {
3930
+ const defaultProps$1j = {
3932
3931
  ...ComponentDefaults,
3933
3932
  position: "top",
3934
3933
  zIndex: 900
@@ -3945,7 +3944,7 @@ const Sticky = (props) => {
3945
3944
  className,
3946
3945
  onChange,
3947
3946
  ...rest
3948
- } = { ...defaultProps$1k, ...props };
3947
+ } = { ...defaultProps$1j, ...props };
3949
3948
  const stickyRef = useRef(null);
3950
3949
  const rootRef = useRef(null);
3951
3950
  const [rootRect, setRootRect] = useState({});
@@ -4061,7 +4060,7 @@ const SafeArea = (props) => {
4061
4060
  );
4062
4061
  };
4063
4062
  SafeArea.displayName = "NutSafeArea";
4064
- const defaultProps$1j = {
4063
+ const defaultProps$1i = {
4065
4064
  ...ComponentDefaults,
4066
4065
  threshold: 200,
4067
4066
  zIndex: 900,
@@ -4070,7 +4069,7 @@ const defaultProps$1j = {
4070
4069
  const BackTop = (props) => {
4071
4070
  const rtl = useRtl();
4072
4071
  const { children, threshold, zIndex, className, duration, style, onClick } = {
4073
- ...defaultProps$1j,
4072
+ ...defaultProps$1i,
4074
4073
  ...props
4075
4074
  };
4076
4075
  const classPrefix2 = "nut-backtop";
@@ -4114,7 +4113,7 @@ const BackTop = (props) => {
4114
4113
  };
4115
4114
  BackTop.displayName = "NutBackTop";
4116
4115
  const elevatorContext = createContext({});
4117
- const defaultProps$1i = {
4116
+ const defaultProps$1h = {
4118
4117
  ...ComponentDefaults,
4119
4118
  height: "200px",
4120
4119
  floorKey: "title",
@@ -4141,7 +4140,7 @@ const Elevator = (props) => {
4141
4140
  children,
4142
4141
  ...rest
4143
4142
  } = {
4144
- ...defaultProps$1i,
4143
+ ...defaultProps$1h,
4145
4144
  ...props
4146
4145
  };
4147
4146
  const classPrefix2 = "nut-elevator";
@@ -4356,7 +4355,7 @@ const Elevator = (props) => {
4356
4355
  };
4357
4356
  Elevator.displayName = "NutElevator";
4358
4357
  Elevator.Context = elevatorContext;
4359
- const defaultProps$1h = {
4358
+ const defaultProps$1g = {
4360
4359
  ...ComponentDefaults,
4361
4360
  activeText: "",
4362
4361
  inactiveText: "",
@@ -4384,7 +4383,7 @@ const FixedNav = (props) => {
4384
4383
  content,
4385
4384
  ...rest
4386
4385
  } = {
4387
- ...defaultProps$1h,
4386
+ ...defaultProps$1g,
4388
4387
  ...props
4389
4388
  };
4390
4389
  const classPrefix2 = "nut-fixednav";
@@ -4437,7 +4436,7 @@ const FixedNav = (props) => {
4437
4436
  );
4438
4437
  };
4439
4438
  FixedNav.displayName = "NutFixedNav";
4440
- const defaultProps$1g = {
4439
+ const defaultProps$1f = {
4441
4440
  ...ComponentDefaults,
4442
4441
  left: "",
4443
4442
  right: "",
@@ -4462,7 +4461,7 @@ const NavBar = (props) => {
4462
4461
  zIndex,
4463
4462
  onBackClick
4464
4463
  } = {
4465
- ...defaultProps$1g,
4464
+ ...defaultProps$1f,
4466
4465
  ...props
4467
4466
  };
4468
4467
  const classPrefix2 = "nut-navbar";
@@ -4541,7 +4540,7 @@ const NavBar = (props) => {
4541
4540
  return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, fixed && placeholder ? /* @__PURE__ */ React__default.createElement(View, { className: `${classPrefix2}-placeholder` }, renderWrapper()) : renderWrapper());
4542
4541
  };
4543
4542
  NavBar.displayName = "NutNavBar";
4544
- const defaultProps$1f = {
4543
+ const defaultProps$1e = {
4545
4544
  ...ComponentDefaults,
4546
4545
  position: "center",
4547
4546
  transition: "",
@@ -4594,7 +4593,7 @@ const Popup = (props) => {
4594
4593
  afterShow,
4595
4594
  afterClose,
4596
4595
  onClick
4597
- } = { ...defaultProps$1f, ...props };
4596
+ } = { ...defaultProps$1e, ...props };
4598
4597
  let innerIndex = zIndex || _zIndex;
4599
4598
  const [index, setIndex] = useState(innerIndex);
4600
4599
  const [innerVisible, setInnerVisible] = useState(visible);
@@ -4736,7 +4735,7 @@ const Popup = (props) => {
4736
4735
  };
4737
4736
  Popup.displayName = "NutPopup";
4738
4737
  const OffsetContext = createContext(20);
4739
- const defaultProps$1e = {
4738
+ const defaultProps$1d = {
4740
4739
  ...ComponentDefaults,
4741
4740
  position: "left",
4742
4741
  width: "80%"
@@ -4754,7 +4753,7 @@ const SideNavBar = (props) => {
4754
4753
  indent,
4755
4754
  ...rest
4756
4755
  } = {
4757
- ...defaultProps$1e,
4756
+ ...defaultProps$1d,
4758
4757
  ...props
4759
4758
  };
4760
4759
  const innerIndent = indent ? Number(indent) : 20;
@@ -4812,13 +4811,13 @@ const SideNavBarItem = (props) => {
4812
4811
  title
4813
4812
  );
4814
4813
  };
4815
- const defaultProps$1d = {
4814
+ const defaultProps$1c = {
4816
4815
  open: true
4817
4816
  };
4818
4817
  const SubSideNavBar = (props) => {
4819
4818
  const classPrefix2 = "nut-subsidenavbar";
4820
4819
  const { title, value, children, onClick, open: open2, ...rest } = {
4821
- ...defaultProps$1d,
4820
+ ...defaultProps$1c,
4822
4821
  ...props
4823
4822
  };
4824
4823
  const [subShow, setSubShow] = useState(open2);
@@ -4896,7 +4895,7 @@ function usePropsValue({
4896
4895
  );
4897
4896
  return [stateRef.current, setState];
4898
4897
  }
4899
- const defaultProps$1c = {
4898
+ const defaultProps$1b = {
4900
4899
  ...ComponentDefaults,
4901
4900
  value: "",
4902
4901
  dot: false,
@@ -4921,7 +4920,7 @@ const Badge = (props) => {
4921
4920
  color,
4922
4921
  fill
4923
4922
  } = {
4924
- ...defaultProps$1c,
4923
+ ...defaultProps$1b,
4925
4924
  ...props
4926
4925
  };
4927
4926
  const classPrefix2 = "nut-badge";
@@ -4975,7 +4974,7 @@ const Badge = (props) => {
4975
4974
  };
4976
4975
  Badge.displayName = "NutBadge";
4977
4976
  const TabbarContext = React__default.createContext(null);
4978
- const defaultProps$1b = {
4977
+ const defaultProps$1a = {
4979
4978
  ...ComponentDefaults,
4980
4979
  title: "",
4981
4980
  icon: null,
@@ -5001,7 +5000,7 @@ const TabbarItem = (props) => {
5001
5000
  index,
5002
5001
  ...rest
5003
5002
  } = {
5004
- ...defaultProps$1b,
5003
+ ...defaultProps$1a,
5005
5004
  ...props
5006
5005
  };
5007
5006
  const active = index === (ctx == null ? void 0 : ctx.selectIndex);
@@ -5039,7 +5038,7 @@ const TabbarItem = (props) => {
5039
5038
  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))
5040
5039
  );
5041
5040
  };
5042
- const defaultProps$1a = {
5041
+ const defaultProps$19 = {
5043
5042
  ...ComponentDefaults,
5044
5043
  defaultValue: 0,
5045
5044
  fixed: false,
@@ -5062,7 +5061,7 @@ const Tabbar = (props) => {
5062
5061
  style,
5063
5062
  onSwitch
5064
5063
  } = {
5065
- ...defaultProps$1a,
5064
+ ...defaultProps$19,
5066
5065
  ...props
5067
5066
  };
5068
5067
  const classPrefix2 = "nut-tabbar";
@@ -5104,14 +5103,14 @@ const Tabbar = (props) => {
5104
5103
  };
5105
5104
  Tabbar.displayName = "NutTabbar";
5106
5105
  Tabbar.Item = TabbarItem;
5107
- const defaultProps$19 = {
5106
+ const defaultProps$18 = {
5108
5107
  title: "",
5109
5108
  value: "",
5110
5109
  disabled: false
5111
5110
  };
5112
5111
  const TabPane = (props) => {
5113
5112
  const { children, autoHeightClassName, className, disabled } = {
5114
- ...defaultProps$19,
5113
+ ...defaultProps$18,
5115
5114
  ...props
5116
5115
  };
5117
5116
  const classPrefix2 = "nut-tabpane";
@@ -5152,7 +5151,7 @@ function useUuid() {
5152
5151
  const idRef = useRef(uniqueId());
5153
5152
  return idRef.current;
5154
5153
  }
5155
- const defaultProps$18 = {
5154
+ const defaultProps$17 = {
5156
5155
  ...ComponentDefaults,
5157
5156
  tabStyle: {},
5158
5157
  activeColor: "",
@@ -5182,7 +5181,7 @@ const Tabs = (props) => {
5182
5181
  defaultValue: outerDefaultValue,
5183
5182
  ...rest
5184
5183
  } = {
5185
- ...defaultProps$18,
5184
+ ...defaultProps$17,
5186
5185
  ...props
5187
5186
  };
5188
5187
  const uuid = useUuid();
@@ -5405,7 +5404,7 @@ const Tabs = (props) => {
5405
5404
  };
5406
5405
  Tabs.displayName = "NutTabs";
5407
5406
  Tabs.TabPane = TabPane;
5408
- const defaultProps$17 = {
5407
+ const defaultProps$16 = {
5409
5408
  type: "custom",
5410
5409
  existList: [],
5411
5410
  defaultIcon: null,
@@ -5424,7 +5423,7 @@ const ExistRender = (props) => {
5424
5423
  onSelect,
5425
5424
  onSwitch,
5426
5425
  ...rest
5427
- } = { ...defaultProps$17, ...props };
5426
+ } = { ...defaultProps$16, ...props };
5428
5427
  const classPrefix2 = "nut-address";
5429
5428
  const selectedExist = (item) => {
5430
5429
  existList.forEach((list, index) => {
@@ -5586,7 +5585,7 @@ class Tree {
5586
5585
  return pathNodes;
5587
5586
  }
5588
5587
  }
5589
- const defaultProps$16 = {
5588
+ const defaultProps$15 = {
5590
5589
  ...ComponentDefaults,
5591
5590
  activeColor: "",
5592
5591
  activeIcon: "checklist",
@@ -5631,7 +5630,7 @@ const InternalCascader = (props, ref) => {
5631
5630
  onClose,
5632
5631
  onChange,
5633
5632
  onPathChange
5634
- } = { ...defaultProps$16, ...props };
5633
+ } = { ...defaultProps$15, ...props };
5635
5634
  const [tabvalue, setTabvalue] = useState("c1");
5636
5635
  const [optionsData, setOptionsData] = useState([]);
5637
5636
  const isLazy = () => state.configs.lazy && Boolean(state.configs.onLoad);
@@ -5939,7 +5938,7 @@ const InternalCascader = (props, ref) => {
5939
5938
  };
5940
5939
  const Cascader = React__default.forwardRef(InternalCascader);
5941
5940
  Cascader.displayName = "NutCascader";
5942
- const defaultProps$15 = {
5941
+ const defaultProps$14 = {
5943
5942
  ...ComponentDefaults,
5944
5943
  visible: false,
5945
5944
  type: "custom",
@@ -5966,7 +5965,7 @@ const CustomRender = (props) => {
5966
5965
  onPathChange,
5967
5966
  ...rest
5968
5967
  } = {
5969
- ...defaultProps$15,
5968
+ ...defaultProps$14,
5970
5969
  ...props
5971
5970
  };
5972
5971
  return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, type4 === "custom" && /* @__PURE__ */ React__default.createElement(
@@ -5991,7 +5990,7 @@ const CustomRender = (props) => {
5991
5990
  }
5992
5991
  ));
5993
5992
  };
5994
- const defaultProps$14 = {
5993
+ const defaultProps$13 = {
5995
5994
  ...ComponentDefaults,
5996
5995
  defaultValue: [],
5997
5996
  type: "custom",
@@ -6033,7 +6032,7 @@ const InternalAddress = (props, ref) => {
6033
6032
  onSwitch,
6034
6033
  ...rest
6035
6034
  } = {
6036
- ...defaultProps$14,
6035
+ ...defaultProps$13,
6037
6036
  ...props
6038
6037
  };
6039
6038
  const classPrefix2 = "nut-address";
@@ -6371,7 +6370,7 @@ const isEnd = (day, days) => {
6371
6370
  const isStartAndEnd = (days) => {
6372
6371
  return days.length >= 2 && Utils.isEqual(days[0], days[1]);
6373
6372
  };
6374
- const defaultProps$13 = {
6373
+ const defaultProps$12 = {
6375
6374
  ...ComponentDefaults,
6376
6375
  type: "single",
6377
6376
  autoBackfill: false,
@@ -6432,7 +6431,7 @@ const CalendarItem = React__default.forwardRef((props, ref) => {
6432
6431
  onUpdate,
6433
6432
  onDayClick,
6434
6433
  onPageChange
6435
- } = { ...defaultProps$13, ...props };
6434
+ } = { ...defaultProps$12, ...props };
6436
6435
  const weekdays = locale.calendaritem.weekdays;
6437
6436
  const weeks = [
6438
6437
  ...weekdays.slice(firstDayOfWeek, 7),
@@ -6982,7 +6981,7 @@ const CalendarItem = React__default.forwardRef((props, ref) => {
6982
6981
  return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement("div", { className: classes, style }, renderHeader(), renderContent(), popup && !autoBackfill ? renderFooter() : ""));
6983
6982
  });
6984
6983
  CalendarItem.displayName = "NutCalendarItem";
6985
- const defaultProps$12 = {
6984
+ const defaultProps$11 = {
6986
6985
  ...ComponentDefaults,
6987
6986
  type: "single",
6988
6987
  autoBackfill: false,
@@ -7045,7 +7044,7 @@ const Calendar = React__default.forwardRef((props, ref) => {
7045
7044
  onConfirm,
7046
7045
  onDayClick,
7047
7046
  onPageChange
7048
- } = { ...defaultProps$12, ...props };
7047
+ } = { ...defaultProps$11, ...props };
7049
7048
  const calendarRef = useRef(null);
7050
7049
  const close2 = () => {
7051
7050
  onClose && onClose();
@@ -7194,7 +7193,7 @@ const getCurrentWeekDays = (day, firstDayOfWeek) => {
7194
7193
  )
7195
7194
  ];
7196
7195
  };
7197
- const defaultProps$11 = {
7196
+ const defaultProps$10 = {
7198
7197
  ...ComponentDefaults,
7199
7198
  type: "single",
7200
7199
  firstDayOfWeek: 0
@@ -7218,7 +7217,7 @@ const CalendarCard = React__default.forwardRef((props, ref) => {
7218
7217
  onDayClick,
7219
7218
  onPageChange,
7220
7219
  onChange
7221
- } = { ...defaultProps$11, ...props };
7220
+ } = { ...defaultProps$10, ...props };
7222
7221
  const [month, setMonth] = useState(() => {
7223
7222
  let date4 = new Date(Date.now());
7224
7223
  const val = value || defaultValue;
@@ -7522,7 +7521,7 @@ const CalendarCard = React__default.forwardRef((props, ref) => {
7522
7521
  });
7523
7522
  CalendarCard.displayName = "NutCalendarCard";
7524
7523
  const CheckboxGroupContext = createContext(null);
7525
- const defaultProps$10 = {
7524
+ const defaultProps$$ = {
7526
7525
  max: void 0,
7527
7526
  min: void 0,
7528
7527
  list: false,
@@ -7542,17 +7541,17 @@ const CheckboxGroup = React__default.forwardRef(
7542
7541
  className,
7543
7542
  disabled,
7544
7543
  list,
7545
- onChange,
7546
7544
  value,
7547
7545
  defaultValue,
7548
7546
  max,
7549
7547
  min,
7550
- onLimit,
7551
7548
  labelPosition,
7552
7549
  direction,
7553
7550
  options,
7551
+ onChange,
7552
+ onLimit,
7554
7553
  ...rest
7555
- } = { ...defaultProps$10, ...props };
7554
+ } = { ...defaultProps$$, ...props };
7556
7555
  useImperativeHandle(ref, () => ({
7557
7556
  toggle(state) {
7558
7557
  if (state === false) {
@@ -7579,8 +7578,8 @@ const CheckboxGroup = React__default.forwardRef(
7579
7578
  }
7580
7579
  }));
7581
7580
  const [_value, setValue] = usePropsValue({
7582
- value: props.value,
7583
- defaultValue: props.defaultValue,
7581
+ value,
7582
+ defaultValue,
7584
7583
  finalValue: [],
7585
7584
  onChange
7586
7585
  });
@@ -7632,7 +7631,7 @@ const CheckboxGroup = React__default.forwardRef(
7632
7631
  className: classNames(
7633
7632
  classPrefix$j,
7634
7633
  {
7635
- [`nut-checkboxgroup-${props.direction}`]: props.direction,
7634
+ [`nut-checkboxgroup-${direction}`]: direction,
7636
7635
  [`nut-checkboxgroup-list`]: list
7637
7636
  },
7638
7637
  className
@@ -7644,9 +7643,8 @@ const CheckboxGroup = React__default.forwardRef(
7644
7643
  );
7645
7644
  }
7646
7645
  );
7647
- CheckboxGroup.defaultProps = defaultProps$10;
7648
7646
  CheckboxGroup.displayName = "NutCheckboxGroup";
7649
- const defaultProps$$ = {
7647
+ const defaultProps$_ = {
7650
7648
  ...ComponentDefaults,
7651
7649
  disabled: false,
7652
7650
  shape: "round",
@@ -7660,7 +7658,7 @@ const defaultProps$$ = {
7660
7658
  const classPrefix$i = "nut-checkbox";
7661
7659
  const Checkbox = (props) => {
7662
7660
  const { children } = {
7663
- ...defaultProps$$,
7661
+ ...defaultProps$_,
7664
7662
  ...props
7665
7663
  };
7666
7664
  const {
@@ -8041,7 +8039,7 @@ function useRefs() {
8041
8039
  }, []);
8042
8040
  return [refs.current, setRefs, reset];
8043
8041
  }
8044
- const defaultProps$_ = {
8042
+ const defaultProps$Z = {
8045
8043
  ...ComponentDefaults,
8046
8044
  visible: false,
8047
8045
  title: "",
@@ -8072,7 +8070,7 @@ const InternalPicker = (props, ref) => {
8072
8070
  afterClose,
8073
8071
  onChange,
8074
8072
  ...rest
8075
- } = { ...defaultProps$_, ...props };
8073
+ } = { ...defaultProps$Z, ...props };
8076
8074
  const classPrefix2 = "nut-picker";
8077
8075
  const classes = classNames(classPrefix2, className);
8078
8076
  const [selectedValue, setSelectedValue] = usePropsValue({
@@ -8384,7 +8382,7 @@ const padZero = (num, targetLength = 2) => {
8384
8382
  return str;
8385
8383
  };
8386
8384
  const currentYear = (/* @__PURE__ */ new Date()).getFullYear();
8387
- const defaultProps$Z = {
8385
+ const defaultProps$Y = {
8388
8386
  ...ComponentDefaults,
8389
8387
  visible: false,
8390
8388
  title: "",
@@ -8417,7 +8415,7 @@ const DatePicker = (props) => {
8417
8415
  style,
8418
8416
  ...rest
8419
8417
  } = {
8420
- ...defaultProps$Z,
8418
+ ...defaultProps$Y,
8421
8419
  ...props
8422
8420
  };
8423
8421
  const { locale } = useConfig$1();
@@ -8541,7 +8539,7 @@ const DatePicker = (props) => {
8541
8539
  if (!isEqual) {
8542
8540
  setSelectedDate(formatValue(newDate));
8543
8541
  }
8544
- props.onChange && props.onChange(
8542
+ onChange == null ? void 0 : onChange(
8545
8543
  selectedOptions,
8546
8544
  [
8547
8545
  String(newDate.getFullYear()),
@@ -8638,8 +8636,8 @@ const DatePicker = (props) => {
8638
8636
  }
8639
8637
  pickerValue[columnIndex] = (_a = arr[index]) == null ? void 0 : _a.value;
8640
8638
  setPickerValue([...pickerValue]);
8641
- if (props.filter && props.filter(type22, arr)) {
8642
- return props.filter(type22, arr);
8639
+ if (filter == null ? void 0 : filter(type22, arr)) {
8640
+ return filter == null ? void 0 : filter(type22, arr);
8643
8641
  }
8644
8642
  return arr;
8645
8643
  };
@@ -8706,7 +8704,6 @@ const DatePicker = (props) => {
8706
8704
  )
8707
8705
  );
8708
8706
  };
8709
- DatePicker.defaultProps = defaultProps$Z;
8710
8707
  DatePicker.displayName = "NutDatePicker";
8711
8708
  const Context = createContext({});
8712
8709
  function _extends() {
@@ -9943,7 +9940,7 @@ const useForm = (form) => {
9943
9940
  }
9944
9941
  return [formRef.current];
9945
9942
  };
9946
- const defaultProps$Y = {
9943
+ const defaultProps$X = {
9947
9944
  ...ComponentDefaults,
9948
9945
  labelPosition: "right",
9949
9946
  starPosition: "left",
@@ -9974,7 +9971,7 @@ const Form = React__default.forwardRef(
9974
9971
  starPosition,
9975
9972
  form
9976
9973
  } = {
9977
- ...defaultProps$Y,
9974
+ ...defaultProps$X,
9978
9975
  ...props
9979
9976
  };
9980
9977
  let formInstance;
@@ -10030,7 +10027,7 @@ function isForwardRefComponent(component) {
10030
10027
  }
10031
10028
  ).$$typeof === component.type.$$typeof;
10032
10029
  }
10033
- const defaultProps$X = {
10030
+ const defaultProps$W = {
10034
10031
  ...ComponentDefaults,
10035
10032
  required: false,
10036
10033
  name: "",
@@ -10126,7 +10123,7 @@ const _FormItem = class _FormItem extends React__default.Component {
10126
10123
  style,
10127
10124
  errorMessageAlign
10128
10125
  } = {
10129
- ...defaultProps$X,
10126
+ ...defaultProps$W,
10130
10127
  ...this.props
10131
10128
  };
10132
10129
  const requiredInRules = rules2 == null ? void 0 : rules2.some((rule) => rule.required);
@@ -10195,7 +10192,7 @@ const _FormItem = class _FormItem extends React__default.Component {
10195
10192
  return /* @__PURE__ */ React__default.createElement(React__default.Fragment, { key: this.state.resetCount }, this.props.noStyle ? returnChildNode : this.renderLayout(returnChildNode));
10196
10193
  }
10197
10194
  };
10198
- _FormItem.defaultProps = defaultProps$X;
10195
+ _FormItem.defaultProps = defaultProps$W;
10199
10196
  _FormItem.contextType = Context;
10200
10197
  let FormItem = _FormItem;
10201
10198
  const InnerForm = Form;
@@ -10225,7 +10222,7 @@ function formatNumber(value, allowDot = true, allowMinus = true) {
10225
10222
  const regExp = allowDot ? /[^-0-9.]/g : /[^-0-9]/g;
10226
10223
  return value.replace(regExp, "");
10227
10224
  }
10228
- const defaultProps$W = {
10225
+ const defaultProps$V = {
10229
10226
  ...ComponentDefaults,
10230
10227
  type: "text",
10231
10228
  name: "",
@@ -10270,7 +10267,7 @@ const Input = forwardRef(
10270
10267
  value: _value,
10271
10268
  ...rest
10272
10269
  } = {
10273
- ...defaultProps$W,
10270
+ ...defaultProps$V,
10274
10271
  ...props
10275
10272
  };
10276
10273
  const [value, setValue] = usePropsValue({
@@ -10421,7 +10418,7 @@ const Input = forwardRef(
10421
10418
  }
10422
10419
  );
10423
10420
  Input.displayName = "NutInput";
10424
- const defaultProps$V = {
10421
+ const defaultProps$U = {
10425
10422
  ...ComponentDefaults,
10426
10423
  disabled: false,
10427
10424
  readOnly: false,
@@ -10459,7 +10456,7 @@ const InputNumber = (props) => {
10459
10456
  onChange,
10460
10457
  ...restProps
10461
10458
  } = {
10462
- ...defaultProps$V,
10459
+ ...defaultProps$U,
10463
10460
  ...props
10464
10461
  };
10465
10462
  const classes = classNames(classPrefix$h, className, {
@@ -10612,7 +10609,7 @@ const InputNumber = (props) => {
10612
10609
  )));
10613
10610
  };
10614
10611
  InputNumber.displayName = "NutInputNumber";
10615
- const defaultProps$U = {
10612
+ const defaultProps$T = {
10616
10613
  ...ComponentDefaults,
10617
10614
  columns: 1,
10618
10615
  direction: "down",
@@ -10643,7 +10640,7 @@ const MenuItem = forwardRef((props, ref) => {
10643
10640
  parent,
10644
10641
  index
10645
10642
  } = {
10646
- ...defaultProps$U,
10643
+ ...defaultProps$T,
10647
10644
  ...props
10648
10645
  };
10649
10646
  const [showPopup, setShowPopup] = useState(show2);
@@ -10824,7 +10821,7 @@ const MenuItem = forwardRef((props, ref) => {
10824
10821
  ));
10825
10822
  });
10826
10823
  MenuItem.displayName = "NutMenuItem";
10827
- const defaultProps$T = {
10824
+ const defaultProps$S = {
10828
10825
  ...ComponentDefaults,
10829
10826
  activeColor: "",
10830
10827
  closeOnOverlayClick: true,
@@ -10851,7 +10848,7 @@ const Menu = (props) => {
10851
10848
  onOpen,
10852
10849
  ...rest
10853
10850
  } = {
10854
- ...defaultProps$T,
10851
+ ...defaultProps$S,
10855
10852
  ...props
10856
10853
  };
10857
10854
  const menuRef = useRef(null);
@@ -10930,14 +10927,10 @@ const Menu = (props) => {
10930
10927
  return /* @__PURE__ */ React__default.createElement(
10931
10928
  "div",
10932
10929
  {
10933
- className: classNames(
10934
- "nut-menu-title ",
10935
- {
10936
- active: showMenuItem[index],
10937
- disabled
10938
- },
10939
- className
10940
- ),
10930
+ className: classNames("nut-menu-title", `nut-menu-title-${index}`, {
10931
+ active: showMenuItem[index],
10932
+ disabled
10933
+ }),
10941
10934
  style: { color: showMenuItem[index] ? activeColor : "" },
10942
10935
  key: index,
10943
10936
  onClick: () => {
@@ -11114,7 +11107,7 @@ const NumberKeyboard = (props) => {
11114
11107
  };
11115
11108
  NumberKeyboard.displayName = "NutNumberKeyboard";
11116
11109
  const RadioContext = React__default.createContext(null);
11117
- const defaultProps$S = {
11110
+ const defaultProps$R = {
11118
11111
  labelPosition: "right",
11119
11112
  onChange: (value) => {
11120
11113
  },
@@ -11136,7 +11129,7 @@ const RadioGroup = React__default.forwardRef(
11136
11129
  options,
11137
11130
  disabled,
11138
11131
  ...rest
11139
- } = { ...defaultProps$S, ...props };
11132
+ } = { ...defaultProps$R, ...props };
11140
11133
  const [val2State, setVal2State] = usePropsValue({
11141
11134
  defaultValue: props.defaultValue,
11142
11135
  value: props.value,
@@ -11193,9 +11186,8 @@ const RadioGroup = React__default.forwardRef(
11193
11186
  );
11194
11187
  }
11195
11188
  );
11196
- RadioGroup.defaultProps = defaultProps$S;
11197
11189
  RadioGroup.displayName = "NutRadioGroup";
11198
- const defaultProps$R = {
11190
+ const defaultProps$Q = {
11199
11191
  ...ComponentDefaults,
11200
11192
  disabled: false,
11201
11193
  shape: "round",
@@ -11221,7 +11213,7 @@ const Radio = (props) => {
11221
11213
  onChange,
11222
11214
  ...others
11223
11215
  } = {
11224
- ...defaultProps$R,
11216
+ ...defaultProps$Q,
11225
11217
  ...props
11226
11218
  };
11227
11219
  let { labelPosition, disabled, ...rest } = others;
@@ -11321,10 +11313,9 @@ const Radio = (props) => {
11321
11313
  renderRadioItem()
11322
11314
  );
11323
11315
  };
11324
- Radio.defaultProps = defaultProps$R;
11325
11316
  Radio.displayName = "NutRadio";
11326
11317
  Radio.Group = RadioGroup;
11327
- const defaultProps$Q = {
11318
+ const defaultProps$P = {
11328
11319
  ...ComponentDefaults,
11329
11320
  range: false,
11330
11321
  min: 0,
@@ -11353,7 +11344,7 @@ const Range = (props) => {
11353
11344
  step,
11354
11345
  value,
11355
11346
  defaultValue
11356
- } = { ...defaultProps$Q, ...props };
11347
+ } = { ...defaultProps$P, ...props };
11357
11348
  const classPrefix2 = "nut-range";
11358
11349
  const [buttonIndex, setButtonIndex] = useState(0);
11359
11350
  const [dragStatus, setDragStatus] = useState("start");
@@ -11635,7 +11626,7 @@ const Range = (props) => {
11635
11626
  ))), maxDescription !== null && /* @__PURE__ */ React__default.createElement("div", { className: "max" }, maxDescription || max));
11636
11627
  };
11637
11628
  Range.displayName = "NutRange";
11638
- const defaultProps$P = {
11629
+ const defaultProps$O = {
11639
11630
  ...ComponentDefaults,
11640
11631
  count: 5,
11641
11632
  min: 0,
@@ -11663,7 +11654,7 @@ const Rate = (props) => {
11663
11654
  onChange,
11664
11655
  onTouchEnd
11665
11656
  } = {
11666
- ...defaultProps$P,
11657
+ ...defaultProps$O,
11667
11658
  ...props
11668
11659
  };
11669
11660
  const classPrefix2 = "nut-rate";
@@ -11820,7 +11811,7 @@ const Rate = (props) => {
11820
11811
  );
11821
11812
  };
11822
11813
  Rate.displayName = "NutRate";
11823
- const defaultProps$O = {
11814
+ const defaultProps$N = {
11824
11815
  ...ComponentDefaults,
11825
11816
  placeholder: "",
11826
11817
  shape: "square",
@@ -11862,7 +11853,7 @@ const SearchBar = (props) => {
11862
11853
  onSearch,
11863
11854
  onInputClick
11864
11855
  } = {
11865
- ...defaultProps$O,
11856
+ ...defaultProps$N,
11866
11857
  ...props
11867
11858
  };
11868
11859
  const [value, setValue] = useState(() => outerValue);
@@ -11979,7 +11970,7 @@ const SearchBar = (props) => {
11979
11970
  );
11980
11971
  };
11981
11972
  SearchBar.displayName = "NutSearchBar";
11982
- const defaultProps$N = {
11973
+ const defaultProps$M = {
11983
11974
  ...ComponentDefaults,
11984
11975
  value: "",
11985
11976
  visible: false,
@@ -12016,7 +12007,7 @@ const InternalShortPassword = (props, ref) => {
12016
12007
  onCloseIconClick,
12017
12008
  ...rest
12018
12009
  } = {
12019
- ...defaultProps$N,
12010
+ ...defaultProps$M,
12020
12011
  ...props
12021
12012
  };
12022
12013
  const classPrefix2 = "nut-shortpassword";
@@ -12076,7 +12067,7 @@ const InternalShortPassword = (props, ref) => {
12076
12067
  );
12077
12068
  };
12078
12069
  const ShortPassword = React__default.forwardRef(InternalShortPassword);
12079
- const defaultProps$M = {
12070
+ const defaultProps$L = {
12080
12071
  ...ComponentDefaults,
12081
12072
  canvasId: "spcanvas",
12082
12073
  type: "png",
@@ -12095,7 +12086,7 @@ const InternalSignature = (props, ref) => {
12095
12086
  onClear,
12096
12087
  ...rest
12097
12088
  } = {
12098
- ...defaultProps$M,
12089
+ ...defaultProps$L,
12099
12090
  ...props
12100
12091
  };
12101
12092
  const classPrefix2 = `nut-signature`;
@@ -12252,7 +12243,7 @@ const Signature = React__default.forwardRef(
12252
12243
  InternalSignature
12253
12244
  );
12254
12245
  Signature.displayName = "NutSignature";
12255
- const defaultProps$L = {
12246
+ const defaultProps$K = {
12256
12247
  ...ComponentDefaults,
12257
12248
  disabled: false,
12258
12249
  activeText: "",
@@ -12270,7 +12261,7 @@ const Switch = (props) => {
12270
12261
  onChange,
12271
12262
  ...rest
12272
12263
  } = {
12273
- ...defaultProps$L,
12264
+ ...defaultProps$K,
12274
12265
  ...props
12275
12266
  };
12276
12267
  const classPrefix2 = "nut-switch";
@@ -12298,7 +12289,7 @@ const Switch = (props) => {
12298
12289
  );
12299
12290
  };
12300
12291
  Switch.displayName = "NutSwitch";
12301
- const defaultProps$K = {
12292
+ const defaultProps$J = {
12302
12293
  ...ComponentDefaults,
12303
12294
  defaultValue: "",
12304
12295
  showCount: false,
@@ -12326,7 +12317,7 @@ const TextArea = (props) => {
12326
12317
  onBlur,
12327
12318
  onFocus,
12328
12319
  ...rest
12329
- } = { ...defaultProps$K, ...props };
12320
+ } = { ...defaultProps$J, ...props };
12330
12321
  const classPrefix2 = "nut-textarea";
12331
12322
  const compositionRef = useRef(false);
12332
12323
  const format2 = (value2) => {
@@ -12556,7 +12547,7 @@ class FileItem {
12556
12547
  this.formData = {};
12557
12548
  }
12558
12549
  }
12559
- const defaultProps$J = {
12550
+ const defaultProps$I = {
12560
12551
  ...ComponentDefaults,
12561
12552
  percent: 0,
12562
12553
  showText: false,
@@ -12580,7 +12571,7 @@ const Progress = (props) => {
12580
12571
  delay,
12581
12572
  ...rest
12582
12573
  } = {
12583
- ...defaultProps$J,
12574
+ ...defaultProps$I,
12584
12575
  ...props
12585
12576
  };
12586
12577
  const classPrefix2 = "nut-progress";
@@ -12789,7 +12780,7 @@ const Preview = ({
12789
12780
  );
12790
12781
  }));
12791
12782
  };
12792
- const defaultProps$I = {
12783
+ const defaultProps$H = {
12793
12784
  ...ComponentDefaults,
12794
12785
  url: "",
12795
12786
  maxCount: 1,
@@ -12864,7 +12855,7 @@ const InternalUploader = (props, ref) => {
12864
12855
  beforeXhrUpload,
12865
12856
  beforeDelete,
12866
12857
  ...restProps
12867
- } = { ...defaultProps$I, ...props };
12858
+ } = { ...defaultProps$H, ...props };
12868
12859
  const [fileList, setFileList] = usePropsValue({
12869
12860
  value,
12870
12861
  defaultValue,
@@ -13155,7 +13146,7 @@ const InternalUploader = (props, ref) => {
13155
13146
  };
13156
13147
  const Uploader = React__default.forwardRef(InternalUploader);
13157
13148
  Uploader.displayName = "NutUploader";
13158
- const defaultProps$H = {
13149
+ const defaultProps$G = {
13159
13150
  ...ComponentDefaults,
13160
13151
  visible: false,
13161
13152
  description: "",
@@ -13181,7 +13172,7 @@ const ActionSheet = (props) => {
13181
13172
  className,
13182
13173
  style,
13183
13174
  ...rest
13184
- } = { ...defaultProps$H, ...props };
13175
+ } = { ...defaultProps$G, ...props };
13185
13176
  const classPrefix2 = "nut-actionsheet";
13186
13177
  const cancelActionSheet = () => {
13187
13178
  onCancel && onCancel();
@@ -13319,7 +13310,7 @@ function useParams(args) {
13319
13310
  const params = stateRef.current;
13320
13311
  return { params, setParams };
13321
13312
  }
13322
- const defaultProps$G = {
13313
+ const defaultProps$F = {
13323
13314
  title: "",
13324
13315
  content: "",
13325
13316
  header: "",
@@ -13373,7 +13364,7 @@ const BaseDialog = (props) => {
13373
13364
  beforeClose
13374
13365
  },
13375
13366
  setParams
13376
- } = useParams({ ...defaultProps$G, ...props });
13367
+ } = useParams({ ...defaultProps$F, ...props });
13377
13368
  useCustomEvent(
13378
13369
  id,
13379
13370
  ({ status, options }) => {
@@ -13498,11 +13489,11 @@ function close$1(selector) {
13498
13489
  const path = useCustomEventsPath(selector);
13499
13490
  customEvents.trigger(path, { status: false });
13500
13491
  }
13501
- BaseDialog.defaultProps = defaultProps$G;
13492
+ BaseDialog.defaultProps = defaultProps$F;
13502
13493
  BaseDialog.displayName = "NutDialog";
13503
13494
  BaseDialog.open = open$1;
13504
13495
  BaseDialog.close = close$1;
13505
- const defaultProps$F = {
13496
+ const defaultProps$E = {
13506
13497
  ...ComponentDefaults,
13507
13498
  attract: false,
13508
13499
  direction: void 0,
@@ -13527,7 +13518,7 @@ const Drag = (props) => {
13527
13518
  style,
13528
13519
  ...reset
13529
13520
  } = {
13530
- ...defaultProps$F,
13521
+ ...defaultProps$E,
13531
13522
  ...props
13532
13523
  };
13533
13524
  const classPrefix2 = "nut-drag";
@@ -13640,7 +13631,7 @@ const defaultStatus = {
13640
13631
  error: "https://storage.360buyimg.com/imgtools/f3278d0ebb-0ce360c0-c0ac-11ee-8375-193101bb1a46.png",
13641
13632
  network: "https://storage.360buyimg.com/imgtools/43c30f7e29-0d483d10-c0ac-11ee-bec4-eb4d2a09a51d.png"
13642
13633
  };
13643
- const defaultProps$E = {
13634
+ const defaultProps$D = {
13644
13635
  ...ComponentDefaults,
13645
13636
  title: "",
13646
13637
  description: "",
@@ -13664,7 +13655,7 @@ const Empty = (props) => {
13664
13655
  actions,
13665
13656
  ...rest
13666
13657
  } = {
13667
- ...defaultProps$E,
13658
+ ...defaultProps$D,
13668
13659
  ...props
13669
13660
  };
13670
13661
  const [imgStyle, setImgStyle] = useState({});
@@ -13709,7 +13700,7 @@ const Empty = (props) => {
13709
13700
  })), children);
13710
13701
  };
13711
13702
  Empty.displayName = "NutEmpty";
13712
- const defaultProps$D = {
13703
+ const defaultProps$C = {
13713
13704
  ...ComponentDefaults,
13714
13705
  type: "default",
13715
13706
  hasMore: true,
@@ -13736,7 +13727,7 @@ const InfiniteLoading = (props) => {
13736
13727
  onScroll,
13737
13728
  ...rest
13738
13729
  } = {
13739
- ...defaultProps$D,
13730
+ ...defaultProps$C,
13740
13731
  ...props
13741
13732
  };
13742
13733
  const [isInfiniting, setIsInfiniting] = useState(false);
@@ -13850,7 +13841,7 @@ const loadingMap = {
13850
13841
  circular: D$5,
13851
13842
  spinner: I
13852
13843
  };
13853
- const defaultProps$C = {
13844
+ const defaultProps$B = {
13854
13845
  ...ComponentDefaults,
13855
13846
  // 对比一下,个人感觉还是Loading1比较好看一些,所以用它作为了默认的loading图标
13856
13847
  type: "circular",
@@ -13858,7 +13849,7 @@ const defaultProps$C = {
13858
13849
  };
13859
13850
  const Loading = (props) => {
13860
13851
  const { className, style, children, direction, icon, ...rest } = {
13861
- ...defaultProps$C,
13852
+ ...defaultProps$B,
13862
13853
  ...props
13863
13854
  };
13864
13855
  const classPrefix2 = "nut-loading";
@@ -13878,7 +13869,7 @@ const Loading = (props) => {
13878
13869
  );
13879
13870
  };
13880
13871
  Loading.displayName = "NutLoading";
13881
- const defaultProps$B = {
13872
+ const defaultProps$A = {
13882
13873
  ...ComponentDefaults,
13883
13874
  align: "left",
13884
13875
  direction: "horizontal",
@@ -13921,7 +13912,7 @@ const NoticeBar = (props) => {
13921
13912
  onClick,
13922
13913
  onItemClick
13923
13914
  } = {
13924
- ...defaultProps$B,
13915
+ ...defaultProps$A,
13925
13916
  ...props
13926
13917
  };
13927
13918
  const classPrefix2 = "nut-noticebar";
@@ -14295,7 +14286,7 @@ const NoticeBar = (props) => {
14295
14286
  ) : null);
14296
14287
  };
14297
14288
  NoticeBar.displayName = "NutNoticeBar";
14298
- const defaultProps$A = {
14289
+ const defaultProps$z = {
14299
14290
  ...ComponentDefaults,
14300
14291
  id: "",
14301
14292
  duration: 3e3,
@@ -14321,7 +14312,7 @@ const Notify = (props) => {
14321
14312
  duration,
14322
14313
  onClose,
14323
14314
  onClick
14324
- } = { ...defaultProps$A, ...props };
14315
+ } = { ...defaultProps$z, ...props };
14325
14316
  useCustomEvent(id, (status) => {
14326
14317
  status ? show2() : hide2();
14327
14318
  });
@@ -14392,11 +14383,11 @@ function close(selector) {
14392
14383
  const path = useCustomEventsPath(selector);
14393
14384
  customEvents.trigger(path, false);
14394
14385
  }
14395
- Notify.defaultProps = defaultProps$A;
14386
+ Notify.defaultProps = defaultProps$z;
14396
14387
  Notify.displayName = "NutNotify";
14397
14388
  Notify.open = open;
14398
14389
  Notify.close = close;
14399
- const defaultProps$z = {
14390
+ const defaultProps$y = {
14400
14391
  ...ComponentDefaults,
14401
14392
  list: [],
14402
14393
  theme: "light",
@@ -14441,7 +14432,7 @@ const Popover = (props) => {
14441
14432
  onSelect,
14442
14433
  ...rest
14443
14434
  } = {
14444
- ...defaultProps$z,
14435
+ ...defaultProps$y,
14445
14436
  ...props
14446
14437
  };
14447
14438
  const popoverRef = useRef(null);
@@ -14699,7 +14690,7 @@ function rubberbandIfOutOfBounds(position, min, max, dimension, constant = 0.15)
14699
14690
  return position;
14700
14691
  }
14701
14692
  const sleep = (time) => new Promise((resolve) => setTimeout(resolve, time));
14702
- const defaultProps$y = {
14693
+ const defaultProps$x = {
14703
14694
  ...ComponentDefaults,
14704
14695
  type: "default",
14705
14696
  pullingText: "",
@@ -14719,7 +14710,7 @@ const PullToRefresh = (p) => {
14719
14710
  const { locale } = useConfig$1();
14720
14711
  const touch = useTouch();
14721
14712
  const props = {
14722
- ...defaultProps$y,
14713
+ ...defaultProps$x,
14723
14714
  ...p,
14724
14715
  ...{
14725
14716
  pullingText: p.pullingText || locale.pullToRefresh.pullingText,
@@ -14837,10 +14828,9 @@ const PullToRefresh = (p) => {
14837
14828
  /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-content` }, props.children)
14838
14829
  );
14839
14830
  };
14840
- PullToRefresh.defaultProps = defaultProps$y;
14841
14831
  PullToRefresh.displayName = "NutPullToRefresh";
14842
14832
  const AvatarContext = createContext({});
14843
- const defaultProps$x = {
14833
+ const defaultProps$w = {
14844
14834
  ...ComponentDefaults,
14845
14835
  maxContent: "",
14846
14836
  max: "",
@@ -14851,7 +14841,7 @@ const defaultProps$x = {
14851
14841
  };
14852
14842
  const classPrefix$b = `nut-avatar-group`;
14853
14843
  const AvatarGroup = (props) => {
14854
- const propAvatarGroup = { ...defaultProps$x, ...props };
14844
+ const propAvatarGroup = { ...defaultProps$w, ...props };
14855
14845
  const { className, style, children } = propAvatarGroup;
14856
14846
  const avatarGroupRef = useRef(null);
14857
14847
  const cls = classNames(classPrefix$b, className);
@@ -14862,7 +14852,7 @@ const AvatarGroup = (props) => {
14862
14852
  return /* @__PURE__ */ React__default.createElement(AvatarContext.Provider, { value: parentAvatar }, /* @__PURE__ */ React__default.createElement("div", { className: cls, style, ref: avatarGroupRef }, children));
14863
14853
  };
14864
14854
  AvatarGroup.displayName = "NutAvatarGroup";
14865
- const defaultProps$w = {
14855
+ const defaultProps$v = {
14866
14856
  ...ComponentDefaults,
14867
14857
  size: "",
14868
14858
  shape: "round",
@@ -14892,7 +14882,7 @@ const Avatar = (props) => {
14892
14882
  onError,
14893
14883
  ...rest
14894
14884
  } = {
14895
- ...defaultProps$w,
14885
+ ...defaultProps$v,
14896
14886
  ...props
14897
14887
  };
14898
14888
  const [maxSum, setMaxSum] = useState(0);
@@ -14982,7 +14972,7 @@ const Avatar = (props) => {
14982
14972
  };
14983
14973
  Avatar.displayName = "NutAvatar";
14984
14974
  Avatar.Group = AvatarGroup;
14985
- const defaultProps$v = {
14975
+ const defaultProps$u = {
14986
14976
  ...ComponentDefaults,
14987
14977
  rows: 1,
14988
14978
  animated: false,
@@ -15005,7 +14995,7 @@ const Skeleton = (props) => {
15005
14995
  avatarShape,
15006
14996
  ...rest
15007
14997
  } = {
15008
- ...defaultProps$v,
14998
+ ...defaultProps$u,
15009
14999
  ...props
15010
15000
  };
15011
15001
  const classPrefix2 = "nut-skeleton";
@@ -15051,7 +15041,7 @@ function preventDefault(event, isStopPropagation) {
15051
15041
  event.stopPropagation();
15052
15042
  }
15053
15043
  }
15054
- const defaultProps$u = {
15044
+ const defaultProps$t = {
15055
15045
  ...ComponentDefaults,
15056
15046
  name: ""
15057
15047
  };
@@ -15071,7 +15061,7 @@ const Swipe = forwardRef((props, instanceRef) => {
15071
15061
  };
15072
15062
  nextTick(() => getWidth());
15073
15063
  });
15074
- const { children, className, style } = { ...defaultProps$u, ...props };
15064
+ const { children, className, style } = { ...defaultProps$t, ...props };
15075
15065
  const root2 = useRef();
15076
15066
  const opened = useRef(false);
15077
15067
  const lockClick = useRef(false);
@@ -15231,9 +15221,8 @@ const Swipe = forwardRef((props, instanceRef) => {
15231
15221
  /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-wrapper`, style: wrapperStyle }, renderActionContent("left"), children, renderActionContent("right"))
15232
15222
  );
15233
15223
  });
15234
- Swipe.defaultProps = defaultProps$u;
15235
15224
  Swipe.displayName = "NutSwipe";
15236
- const defaultProps$t = {
15225
+ const defaultProps$s = {
15237
15226
  ...ComponentDefaults,
15238
15227
  id: "",
15239
15228
  icon: null,
@@ -15282,7 +15271,7 @@ const Toast = (props) => {
15282
15271
  wordBreak
15283
15272
  },
15284
15273
  setParams
15285
- } = useParams({ ...defaultProps$t, ...props });
15274
+ } = useParams({ ...defaultProps$s, ...props });
15286
15275
  const timer = useRef(-1);
15287
15276
  const [innerVisible, setInnerVisible] = usePropsValue({
15288
15277
  value: visible,
@@ -15390,11 +15379,11 @@ function hide(selector) {
15390
15379
  const path = useCustomEventsPath(selector);
15391
15380
  customEvents.trigger(path, { status: false });
15392
15381
  }
15393
- Toast.defaultProps = defaultProps$t;
15382
+ Toast.defaultProps = defaultProps$s;
15394
15383
  Toast.displayName = "NutToast";
15395
15384
  Toast.show = show;
15396
15385
  Toast.hide = hide;
15397
- const defaultProps$s = {
15386
+ const defaultProps$r = {
15398
15387
  ...ComponentDefaults,
15399
15388
  type: "shake",
15400
15389
  action: "initial",
@@ -15405,7 +15394,7 @@ const defaultProps$s = {
15405
15394
  const classPrefix$8 = `nut-animate`;
15406
15395
  const Animate = (props) => {
15407
15396
  const { className, type: type4, action, loop, onClick, children, ...rest } = {
15408
- ...defaultProps$s,
15397
+ ...defaultProps$r,
15409
15398
  ...props
15410
15399
  };
15411
15400
  const [clicked, setClicked] = useState(false);
@@ -15427,7 +15416,7 @@ const Animate = (props) => {
15427
15416
  return /* @__PURE__ */ React__default.createElement("div", { className: "nut-animate" }, /* @__PURE__ */ React__default.createElement("div", { className: cls, onClick: handleClick, ...rest }, children));
15428
15417
  };
15429
15418
  Animate.displayName = "NutAnimate";
15430
- const defaultProps$r = {
15419
+ const defaultProps$q = {
15431
15420
  ...ComponentDefaults,
15432
15421
  length: 0,
15433
15422
  value: "",
@@ -15446,7 +15435,7 @@ const CountUp = (props) => {
15446
15435
  style,
15447
15436
  ...reset
15448
15437
  } = {
15449
- ...defaultProps$r,
15438
+ ...defaultProps$q,
15450
15439
  ...props
15451
15440
  };
15452
15441
  const classPrefix2 = "nut-countup";
@@ -15520,9 +15509,9 @@ const CountUp = (props) => {
15520
15509
  );
15521
15510
  })));
15522
15511
  };
15523
- CountUp.defaultProps = defaultProps$r;
15512
+ CountUp.defaultProps = defaultProps$q;
15524
15513
  CountUp.displayName = "NutCountUp";
15525
- const defaultProps$q = {};
15514
+ const defaultProps$p = {};
15526
15515
  const _AnimatingNumbers = class _AnimatingNumbers extends Component {
15527
15516
  constructor(props) {
15528
15517
  super(props);
@@ -15532,12 +15521,12 @@ const _AnimatingNumbers = class _AnimatingNumbers extends Component {
15532
15521
  return /* @__PURE__ */ React__default.createElement("div", { className: "nut-animatingnumbers" });
15533
15522
  }
15534
15523
  };
15535
- _AnimatingNumbers.defaultProps = defaultProps$q;
15524
+ _AnimatingNumbers.defaultProps = defaultProps$p;
15536
15525
  _AnimatingNumbers.displayName = "NutAnimatingNumbers";
15537
15526
  _AnimatingNumbers.CountUp = CountUp;
15538
15527
  let AnimatingNumbers = _AnimatingNumbers;
15539
15528
  AnimatingNumbers.CountUp = CountUp;
15540
- const defaultProps$p = {
15529
+ const defaultProps$o = {
15541
15530
  ...ComponentDefaults,
15542
15531
  className: "",
15543
15532
  url: "",
@@ -15581,7 +15570,7 @@ const Audio = (props) => {
15581
15570
  iconFontClassName,
15582
15571
  ...rest
15583
15572
  } = {
15584
- ...defaultProps$p,
15573
+ ...defaultProps$o,
15585
15574
  ...props
15586
15575
  };
15587
15576
  const [playing, setPlaying] = useState(false);
@@ -15600,19 +15589,19 @@ const Audio = (props) => {
15600
15589
  audioCtx.autoplay = autoplay || false;
15601
15590
  audioCtx.loop = loop || false;
15602
15591
  audioCtx.onPause(() => {
15603
- props.onPause && props.onPause(audioCtx);
15592
+ onPause == null ? void 0 : onPause(audioCtx);
15604
15593
  });
15605
15594
  audioCtx.onEnded(() => {
15606
- if (props.loop) {
15595
+ if (loop) {
15607
15596
  console.warn(locale.audio.tips || "onPlayEnd事件在loop=false时才会触发");
15608
15597
  } else {
15609
- props.onPlayEnd && props.onPlayEnd(audioCtx);
15598
+ onPlayEnd == null ? void 0 : onPlayEnd(audioCtx);
15610
15599
  }
15611
15600
  });
15612
15601
  audioCtx.onPlay(() => {
15613
15602
  const { duration } = audioCtx;
15614
15603
  setTotalSeconds(Math.floor(duration));
15615
- props.onPlay && props.onPlay(audioCtx);
15604
+ onPlay == null ? void 0 : onPlay(audioCtx);
15616
15605
  });
15617
15606
  audioCtx.onCanplay(() => {
15618
15607
  const intervalID = setInterval(function() {
@@ -15622,7 +15611,7 @@ const Audio = (props) => {
15622
15611
  }
15623
15612
  }, 500);
15624
15613
  setIsCanPlay(true);
15625
- props.onCanPlay && props.onCanPlay(audioCtx);
15614
+ onCanPlay == null ? void 0 : onCanPlay(audioCtx);
15626
15615
  });
15627
15616
  audioCtx.onTimeUpdate(() => {
15628
15617
  const time = parseInt(`${audioCtx.currentTime}`);
@@ -15654,14 +15643,14 @@ const Audio = (props) => {
15654
15643
  statusRef.current.currentTime = Math.max(currentTime - 1, 0);
15655
15644
  setCurrentDuration(formatSeconds(statusRef.current.currentTime.toString()));
15656
15645
  audioCtx.seek(statusRef.current.currentTime);
15657
- props.onFastBack && props.onFastBack(audioCtx);
15646
+ onFastBack == null ? void 0 : onFastBack(audioCtx);
15658
15647
  };
15659
15648
  const handleForward = () => {
15660
15649
  const currentTime = Math.floor(audioCtx.currentTime);
15661
15650
  statusRef.current.currentTime = Math.min(currentTime + 1, audioCtx.duration);
15662
15651
  setCurrentDuration(formatSeconds(statusRef.current.currentTime.toString()));
15663
15652
  audioCtx.seek(statusRef.current.currentTime);
15664
- props.onForward && props.onForward(audioCtx);
15653
+ onForward == null ? void 0 : onForward(audioCtx);
15665
15654
  };
15666
15655
  const handleStatusChange = () => {
15667
15656
  setPlaying(!playing);
@@ -15745,9 +15734,8 @@ const Audio = (props) => {
15745
15734
  };
15746
15735
  return /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2} ${className}`, style, ...rest }, renderAudio());
15747
15736
  };
15748
- Audio.defaultProps = defaultProps$p;
15749
15737
  Audio.displayName = "NutAudio";
15750
- const defaultProps$o = {
15738
+ const defaultProps$n = {
15751
15739
  ...ComponentDefaults,
15752
15740
  strokeWidth: 5,
15753
15741
  radius: 50,
@@ -15771,7 +15759,7 @@ const CircleProgress = (props) => {
15771
15759
  strokeLinecap,
15772
15760
  ...restProps
15773
15761
  } = {
15774
- ...defaultProps$o,
15762
+ ...defaultProps$n,
15775
15763
  ...props
15776
15764
  };
15777
15765
  const oldValue = useRef(percent);
@@ -15871,7 +15859,7 @@ const collapseContext = {
15871
15859
  rotate: 180
15872
15860
  };
15873
15861
  const CollapseContext = createContext(collapseContext);
15874
- const defaultProps$n = {
15862
+ const defaultProps$m = {
15875
15863
  ...ComponentDefaults,
15876
15864
  title: null,
15877
15865
  name: "",
@@ -15892,7 +15880,7 @@ const CollapseItem = (props) => {
15892
15880
  className,
15893
15881
  ...rest
15894
15882
  } = {
15895
- ...defaultProps$n,
15883
+ ...defaultProps$m,
15896
15884
  ...props
15897
15885
  };
15898
15886
  const classPrefix2 = "nut-collapse-item";
@@ -16005,7 +15993,7 @@ const CollapseItem = (props) => {
16005
15993
  ));
16006
15994
  };
16007
15995
  CollapseItem.displayName = "NutCollapseItem";
16008
- const defaultProps$m = {
15996
+ const defaultProps$l = {
16009
15997
  ...ComponentDefaults,
16010
15998
  defaultActiveName: [],
16011
15999
  accordion: false,
@@ -16024,7 +16012,7 @@ const Collapse = (props) => {
16024
16012
  rotate,
16025
16013
  onChange
16026
16014
  } = {
16027
- ...defaultProps$m,
16015
+ ...defaultProps$l,
16028
16016
  ...props
16029
16017
  };
16030
16018
  const classPrefix2 = "nut-collapse";
@@ -16083,7 +16071,7 @@ const Collapse = (props) => {
16083
16071
  };
16084
16072
  Collapse.displayName = "NutCollapse";
16085
16073
  Collapse.Item = CollapseItem;
16086
- const defaultProps$l = {
16074
+ const defaultProps$k = {
16087
16075
  ...ComponentDefaults,
16088
16076
  paused: false,
16089
16077
  startTime: Date.now(),
@@ -16115,7 +16103,7 @@ const InternalCountDown = (props, ref) => {
16115
16103
  onUpdate,
16116
16104
  children,
16117
16105
  ...rest
16118
- } = { ...defaultProps$l, ...props };
16106
+ } = { ...defaultProps$k, ...props };
16119
16107
  const classPrefix2 = "nut-countdown";
16120
16108
  const [restTimeStamp, setRestTime] = useState(0);
16121
16109
  const stateRef = useRef({
@@ -16320,7 +16308,7 @@ const CountDown = React__default.forwardRef(
16320
16308
  InternalCountDown
16321
16309
  );
16322
16310
  CountDown.displayName = "NutCountDown";
16323
- const defaultProps$k = {
16311
+ const defaultProps$j = {
16324
16312
  ...ComponentDefaults,
16325
16313
  content: "",
16326
16314
  direction: "end",
@@ -16348,7 +16336,7 @@ const Ellipsis = (props) => {
16348
16336
  onClick,
16349
16337
  onChange,
16350
16338
  ...rest
16351
- } = { ...defaultProps$k, ...props };
16339
+ } = { ...defaultProps$j, ...props };
16352
16340
  const maxHeight = useRef(0);
16353
16341
  const [exceeded, setExceeded] = useState(false);
16354
16342
  const [expanded, setExpanded] = useState(false);
@@ -16640,7 +16628,7 @@ const Ellipsis = (props) => {
16640
16628
  ));
16641
16629
  };
16642
16630
  Ellipsis.displayName = "NutEllipsis";
16643
- const defaultProps$j = {
16631
+ const defaultProps$i = {
16644
16632
  total: 3,
16645
16633
  current: 0,
16646
16634
  direction: "horizontal"
@@ -16648,7 +16636,7 @@ const defaultProps$j = {
16648
16636
  const classPrefix$5 = `nut-indicator`;
16649
16637
  const Indicator = (props) => {
16650
16638
  const { total, current, children, className, direction, ...rest } = {
16651
- ...defaultProps$j,
16639
+ ...defaultProps$i,
16652
16640
  ...props
16653
16641
  };
16654
16642
  const classes = classNames({
@@ -16672,7 +16660,7 @@ const Indicator = (props) => {
16672
16660
  return /* @__PURE__ */ React__default.createElement("div", { className: classNames(classPrefix$5, classes, className), ...rest }, renderElement());
16673
16661
  };
16674
16662
  Indicator.displayName = "NutIndicator";
16675
- const defaultProps$i = {
16663
+ const defaultProps$h = {
16676
16664
  direction: "horizontal",
16677
16665
  indicator: false,
16678
16666
  autoPlay: false,
@@ -16697,7 +16685,7 @@ const Swiper = forwardRef((props, ref) => {
16697
16685
  style,
16698
16686
  ...rest
16699
16687
  } = {
16700
- ...defaultProps$i,
16688
+ ...defaultProps$h,
16701
16689
  ...props
16702
16690
  };
16703
16691
  const [current, setCurrent] = useState(defaultValue);
@@ -16808,17 +16796,11 @@ const Swiper = forwardRef((props, ref) => {
16808
16796
  renderIndicator()
16809
16797
  );
16810
16798
  });
16811
- Swiper.defaultProps = defaultProps$i;
16812
16799
  Swiper.displayName = "NutSwiper";
16813
- const defaultProps$h = {
16814
- itemId: "",
16815
- skipHiddenItemLayout: false
16816
- };
16817
16800
  const SwiperItem = (props) => {
16818
16801
  const { children, ...rest } = props;
16819
16802
  return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, children);
16820
16803
  };
16821
- SwiperItem.defaultProps = defaultProps$h;
16822
16804
  SwiperItem.displayName = "NutSwiperItem";
16823
16805
  const InnerSwiper = Swiper;
16824
16806
  InnerSwiper.Item = SwiperItem;
@@ -17550,10 +17532,6 @@ const Table = (props) => {
17550
17532
  });
17551
17533
  };
17552
17534
  const renderBodyTds = (item, rowIndex) => {
17553
- const { rowRender } = item;
17554
- if (rowRender && typeof rowRender === "function") {
17555
- return rowRender(item, rowIndex);
17556
- }
17557
17535
  return sortDataItem().map(([value, render]) => {
17558
17536
  return /* @__PURE__ */ React__default.createElement(
17559
17537
  "div",
@@ -17572,7 +17550,12 @@ const Table = (props) => {
17572
17550
  };
17573
17551
  const renderBodyTrs = () => {
17574
17552
  return innerValue.map((item, index) => {
17575
- return /* @__PURE__ */ React__default.createElement("div", { className: bodyClassPrefix, key: index }, renderBodyTds(item, index));
17553
+ const inner = renderBodyTds(item, index);
17554
+ const { rowRender } = item;
17555
+ if (rowRender && typeof rowRender === "function") {
17556
+ return rowRender(item, index, { inner });
17557
+ }
17558
+ return /* @__PURE__ */ React__default.createElement("div", { className: bodyClassPrefix, key: index }, inner);
17576
17559
  });
17577
17560
  };
17578
17561
  return /* @__PURE__ */ React__default.createElement("div", { className: cls, ...rest }, /* @__PURE__ */ React__default.createElement(