@nutui/nutui-react-taro 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 (157) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/dist/esm/ActionSheet.js +1 -1
  3. package/dist/esm/Address.js +1 -1
  4. package/dist/esm/Animate.js +1 -1
  5. package/dist/esm/Audio.js +1 -1
  6. package/dist/esm/Avatar.js +1 -1
  7. package/dist/esm/AvatarCropper.js +1 -1
  8. package/dist/esm/AvatarGroup.js +1 -1
  9. package/dist/esm/Badge.js +1 -1
  10. package/dist/esm/Barrage.js +1 -1
  11. package/dist/esm/Calendar.js +1 -1
  12. package/dist/esm/CalendarCard.js +1 -1
  13. package/dist/esm/CalendarItem.js +1 -1
  14. package/dist/esm/Card/style/style.css +1 -1
  15. package/dist/esm/Card.js +1 -1
  16. package/dist/esm/Cascader.js +1 -1
  17. package/dist/esm/Checkbox.js +1 -1
  18. package/dist/esm/CheckboxGroup.js +1 -1
  19. package/dist/esm/CircleProgress.js +1 -1
  20. package/dist/esm/Collapse.js +1 -1
  21. package/dist/esm/CollapseItem.js +1 -1
  22. package/dist/esm/CountDown.js +1 -1
  23. package/dist/esm/DatePicker.js +1 -1
  24. package/dist/esm/Drag.js +1 -1
  25. package/dist/esm/Ellipsis.js +1 -1
  26. package/dist/esm/Empty.js +1 -1
  27. package/dist/esm/Form.js +1 -2
  28. package/dist/esm/FormItem.js +1 -1
  29. package/dist/esm/ImagePreview.js +1 -1
  30. package/dist/esm/Indicator.js +1 -1
  31. package/dist/esm/InfiniteLoading.js +1 -1
  32. package/dist/esm/Input.js +1 -1
  33. package/dist/esm/InputNumber.js +1 -1
  34. package/dist/esm/Layout.js +1 -1
  35. package/dist/esm/Loading.js +1 -1
  36. package/dist/esm/Menu/style/style.css +1 -1
  37. package/dist/esm/Menu.js +1 -1
  38. package/dist/esm/MenuItem/style/style.css +1 -1
  39. package/dist/esm/MenuItem.js +1 -1
  40. package/dist/esm/NoticeBar.js +1 -1
  41. package/dist/esm/NumberKeyboard.js +1 -1
  42. package/dist/esm/Pagination.js +1 -1
  43. package/dist/esm/Picker.js +1 -1
  44. package/dist/esm/Popover.js +1 -1
  45. package/dist/esm/Popup.js +1 -1
  46. package/dist/esm/Price.js +1 -1
  47. package/dist/esm/Progress.js +1 -1
  48. package/dist/esm/Range.js +1 -1
  49. package/dist/esm/Rate.js +1 -1
  50. package/dist/esm/SearchBar.js +1 -1
  51. package/dist/esm/ShortPassword.js +1 -1
  52. package/dist/esm/SideNavBar.js +1 -1
  53. package/dist/esm/Signature.js +1 -1
  54. package/dist/esm/Skeleton.js +1 -1
  55. package/dist/esm/Step.js +1 -1
  56. package/dist/esm/Steps.js +1 -1
  57. package/dist/esm/Swiper.js +1 -1
  58. package/dist/esm/Switch.js +1 -1
  59. package/dist/esm/Tabbar.js +1 -1
  60. package/dist/esm/TabbarItem.js +1 -1
  61. package/dist/esm/Table/style/style.css +1 -1
  62. package/dist/esm/Table.js +1 -1
  63. package/dist/esm/Tag/style/style.css +1 -1
  64. package/dist/esm/Tag.js +1 -1
  65. package/dist/esm/TextArea.js +1 -1
  66. package/dist/esm/TimeDetail.js +1 -1
  67. package/dist/esm/TimeSelect.js +1 -1
  68. package/dist/esm/Tour.js +1 -1
  69. package/dist/esm/TrendArrow.js +1 -1
  70. package/dist/esm/Uploader.js +1 -1
  71. package/dist/esm/Video.js +1 -1
  72. package/dist/esm/VirtualList.js +1 -1
  73. package/dist/esm/WaterMark.js +1 -1
  74. package/dist/esm/{actionsheet.taro-DxJu0OXY.js → actionsheet.taro-CI2b9f_3.js} +1 -2
  75. package/dist/esm/{address.taro-Cc1TOQge.js → address.taro-6VS1YZ0V.js} +2 -3
  76. package/dist/esm/{animate.taro-Dg9jxZEu.js → animate.taro-D-A6ORRZ.js} +0 -1
  77. package/dist/esm/{audio.taro-2hRKQ2Lk.js → audio.taro-4ixA5lb2.js} +1 -1
  78. package/dist/esm/{avatar.taro-D_uJo0PP.js → avatar.taro-Dx8hhvFI.js} +3 -4
  79. package/dist/esm/{avatarcropper.taro-Dd4pAR3N.js → avatarcropper.taro-C9BoO5Lp.js} +0 -1
  80. package/dist/esm/{avatargroup.taro-bpT5kPbf.js → avatargroup.taro-ScakjsY1.js} +0 -1
  81. package/dist/esm/{badge.taro-B0spW6jr.js → badge.taro-DK_UFQ5Y.js} +0 -1
  82. package/dist/esm/{barrage.taro-BNOcZsJ1.js → barrage.taro-DEJGSmY5.js} +0 -1
  83. package/dist/esm/{calendar.taro-D17OsS2D.js → calendar.taro-CDZqFYlk.js} +2 -3
  84. package/dist/esm/{calendarcard.taro-C7P3oqAL.js → calendarcard.taro-CHDg3k5D.js} +0 -1
  85. package/dist/esm/{calendaritem.taro-B8tN2DYa.js → calendaritem.taro-DuEKmnsT.js} +3 -4
  86. package/dist/esm/{card.taro-FRirz5pW.js → card.taro-Co0BZGJI.js} +2 -3
  87. package/dist/esm/{cascader.taro-28xJB9fJ.js → cascader.taro-CZkUgupN.js} +5 -6
  88. package/dist/esm/{checkbox.taro-CUpF7Afr.js → checkbox.taro-DOSOI351.js} +2 -3
  89. package/dist/esm/{circleprogress.taro-CKSrzt8Q.js → circleprogress.taro-BuVTD1iY.js} +7 -9
  90. package/dist/esm/{collapse.taro-BM0BsN30.js → collapse.taro-CxDgckv5.js} +1 -2
  91. package/dist/esm/{collapseitem.taro-D_m4VEdG.js → collapseitem.taro-BY06WWvK.js} +0 -1
  92. package/dist/esm/{countdown.taro-wopKr1Il.js → countdown.taro-CdEiAwr5.js} +0 -1
  93. package/dist/esm/{datepicker.taro-zmHQR_LR.js → datepicker.taro-B7H4b8TO.js} +1 -1
  94. package/dist/esm/{drag.taro-CcHIO07Y.js → drag.taro-D6xGnWqk.js} +3 -4
  95. package/dist/esm/{ellipsis.taro-3gDXpBmX.js → ellipsis.taro-dxOx8h7S.js} +0 -1
  96. package/dist/esm/{empty.taro-C61QNHep.js → empty.taro-DgmUYpBc.js} +0 -1
  97. package/dist/esm/{formitem.taro-Y-hHJ2oh.js → formitem.taro-CAib1i9_.js} +4 -0
  98. package/dist/esm/{imagepreview.taro-BqFhQUnY.js → imagepreview.taro-CBT7aS3-.js} +6 -8
  99. package/dist/esm/{indicator.taro-CpHZtD9p.js → indicator.taro-Bmae9MdC.js} +0 -1
  100. package/dist/esm/{infiniteloading.taro-WiMpG-fU.js → infiniteloading.taro-Bnm-LVHC.js} +0 -1
  101. package/dist/esm/{input.taro-CAZ-rRMH.js → input.taro-CLMPZ7Wg.js} +10 -15
  102. package/dist/esm/{inputnumber.taro-HU_Ndna2.js → inputnumber.taro-ByJ9DlU2.js} +0 -1
  103. package/dist/esm/{layout.taro-BE2868d6.js → layout.taro-C-aUcOOE.js} +0 -1
  104. package/dist/esm/{loading.taro-CRF1z5wQ.js → loading.taro-BfHqvYhy.js} +0 -1
  105. package/dist/esm/{menu.taro-Q5-SZ5t1.js → menu.taro-DkKY62ym.js} +1 -2
  106. package/dist/esm/{menuitem.taro-DSBI0DQb.js → menuitem.taro-CKjl8_Cl.js} +1 -2
  107. package/dist/esm/{noticebar.taro-BtudzdMD.js → noticebar.taro-cjVGemZE.js} +0 -1
  108. package/dist/esm/{numberkeyboard.taro-BOK1wpU5.js → numberkeyboard.taro-CFJtMOew.js} +2 -3
  109. package/dist/esm/nutui-react.es.js +64 -64
  110. package/dist/esm/{pagination.taro-DAK6ddag.js → pagination.taro-B8hmHNgf.js} +0 -1
  111. package/dist/esm/{picker.taro-CHjN0l-b.js → picker.taro-CHsDIw4C.js} +1 -1
  112. package/dist/esm/{popover.taro-G8UcSxKq.js → popover.taro-Dve2UnRF.js} +4 -6
  113. package/dist/esm/{popup.taro-C8cIGEKf.js → popup.taro-cT6cbAxw.js} +0 -1
  114. package/dist/esm/{price.taro-UVRHPHRD.js → price.taro-DdR5NSIA.js} +0 -1
  115. package/dist/esm/{progress.taro-rjiPI6mD.js → progress.taro-BFWQ2MvM.js} +0 -1
  116. package/dist/esm/{range.taro-CsC41L60.js → range.taro-BeVCaZ4r.js} +0 -1
  117. package/dist/esm/{rate.taro-BABLqt4h.js → rate.taro-lOoACxLq.js} +0 -1
  118. package/dist/esm/{searchbar.taro-PfVx6o-6.js → searchbar.taro-B31m8apz.js} +6 -7
  119. package/dist/esm/{shortpassword.taro-CQkvedaX.js → shortpassword.taro-BVp4BrTs.js} +3 -3
  120. package/dist/esm/{sidenavbar.taro-BATNbF5l.js → sidenavbar.taro-DGnJgxEe.js} +1 -1
  121. package/dist/esm/{signature.taro-Bn9VNn62.js → signature.taro-DTZCZMDZ.js} +1 -2
  122. package/dist/esm/{skeleton.taro-BunkJQwv.js → skeleton.taro-C3vp7bWb.js} +1 -2
  123. package/dist/esm/{step.taro-DLr2GzYk.js → step.taro-CaRHnSOF.js} +0 -1
  124. package/dist/esm/{steps.taro-C8Yg1Sns.js → steps.taro-BoVGFMxx.js} +1 -2
  125. package/dist/esm/{switch.taro-D1HgJoJz.js → switch.taro-Mq1wBEGz.js} +0 -1
  126. package/dist/esm/{tabbar.taro-B7C39PTH.js → tabbar.taro-DD5HcQgp.js} +1 -1
  127. package/dist/esm/{tabbaritem.taro-C_90fvMh.js → tabbaritem.taro-ptdJI0xv.js} +1 -1
  128. package/dist/esm/{table.taro-ClLmfqz3.js → table.taro-EwAQJ6jp.js} +1 -2
  129. package/dist/esm/{tag.taro-rKMK0jan.js → tag.taro-CFt28RLm.js} +0 -1
  130. package/dist/esm/{textarea.taro-BJIFCpKb.js → textarea.taro-DLS0EQeJ.js} +0 -1
  131. package/dist/esm/{timedetail.taro-x6Zey1xi.js → timedetail.taro-ya5JNy2L.js} +0 -1
  132. package/dist/esm/{timeselect.taro-DvY7iQiu.js → timeselect.taro-C64SUiXS.js} +2 -3
  133. package/dist/esm/{tour.taro-vfvdEJ-7.js → tour.taro-DegQCG1T.js} +1 -2
  134. package/dist/esm/{trendarrow.taro-BHUetKSS.js → trendarrow.taro-B2QGvXG0.js} +0 -1
  135. package/dist/esm/{uploader.taro-DMmTl0Cp.js → uploader.taro-BE4c5x9T.js} +4 -5
  136. package/dist/esm/{video.taro-DJQeroOH.js → video.taro-Bm5bDmIG.js} +0 -1
  137. package/dist/esm/{virtuallist.taro-D8qIVGPx.js → virtuallist.taro-GLen2Ay5.js} +0 -1
  138. package/dist/esm/{watermark.taro-BxM8VfXb.js → watermark.taro-BL5bLewc.js} +0 -1
  139. package/dist/locales/base.js +1 -1
  140. package/dist/locales/en-US.js +1 -1
  141. package/dist/locales/id-ID.js +1 -1
  142. package/dist/locales/tr-TR.js +1 -1
  143. package/dist/locales/zh-CN.js +1 -1
  144. package/dist/locales/zh-TW.js +1 -1
  145. package/dist/locales/zh-UG.js +1 -1
  146. package/dist/nutui.react.es.js +152 -212
  147. package/dist/nutui.react.umd.js +152 -212
  148. package/dist/packages/menu/menu.scss +1 -0
  149. package/dist/packages/menuitem/menuitem.scss +1 -0
  150. package/dist/packages/table/table.scss +2 -1
  151. package/dist/style.css +1 -1
  152. package/dist/style.mjs +1 -1
  153. package/dist/styles/variables.scss +1 -1
  154. package/dist/types/packages/checkboxgroup/checkboxgroup.taro.d.ts +5 -1
  155. package/dist/types/packages/input/input.d.ts +1 -1
  156. package/dist/types/packages/input/input.taro.d.ts +1 -1
  157. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react-taro v2.6.4 Fri May 10 2024 14:49:22 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react-taro v2.6.6 Fri May 24 2024 15:06:49 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -197,7 +197,7 @@ const ComponentDefaults = {
197
197
  style: {}
198
198
  };
199
199
  const prefixCls$2 = "nut-button";
200
- const defaultProps$1w = {
200
+ const defaultProps$1v = {
201
201
  ...ComponentDefaults,
202
202
  color: "",
203
203
  type: "default",
@@ -231,7 +231,7 @@ const Button = React__default.forwardRef(
231
231
  onClick,
232
232
  ...rest
233
233
  } = {
234
- ...defaultProps$1w,
234
+ ...defaultProps$1v,
235
235
  ...props
236
236
  };
237
237
  const getStyle = useCallback(() => {
@@ -297,7 +297,7 @@ const Button = React__default.forwardRef(
297
297
  );
298
298
  Button.displayName = "NutButton";
299
299
  const CellGroupContext = createContext(null);
300
- const defaultProps$1v = {
300
+ const defaultProps$1u = {
301
301
  ...ComponentDefaults,
302
302
  title: "",
303
303
  description: "",
@@ -306,7 +306,7 @@ const defaultProps$1v = {
306
306
  const classPrefix$r = "nut-cell-group";
307
307
  const CellGroup = (props) => {
308
308
  const { children, className, title, description, divider, ...rest } = {
309
- ...defaultProps$1v,
309
+ ...defaultProps$1u,
310
310
  ...props
311
311
  };
312
312
  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(
@@ -318,7 +318,7 @@ const CellGroup = (props) => {
318
318
  ));
319
319
  };
320
320
  CellGroup.displayName = "NutCellGroup";
321
- const defaultProps$1u = {
321
+ const defaultProps$1t = {
322
322
  ...ComponentDefaults,
323
323
  title: null,
324
324
  description: null,
@@ -343,7 +343,7 @@ const Cell = (props) => {
343
343
  style,
344
344
  ...rest
345
345
  } = {
346
- ...defaultProps$1u,
346
+ ...defaultProps$1t,
347
347
  ...props
348
348
  };
349
349
  const handleClick = (event) => {
@@ -1521,7 +1521,7 @@ ConfigProvider.displayName = "NutConfigProvider";
1521
1521
  const pxCheck = (value) => {
1522
1522
  return Number.isNaN(Number(value)) ? String(value) : `${value}px`;
1523
1523
  };
1524
- const defaultProps$1t = {
1524
+ const defaultProps$1s = {
1525
1525
  src: "",
1526
1526
  error: true,
1527
1527
  loading: true
@@ -1540,7 +1540,7 @@ const Image$1 = (props) => {
1540
1540
  onLoad,
1541
1541
  onError,
1542
1542
  ...rest
1543
- } = { ...defaultProps$1t, ...props };
1543
+ } = { ...defaultProps$1s, ...props };
1544
1544
  const [innerLoading, setInnerLoading] = useState(true);
1545
1545
  const [isError, setIsError] = useState(false);
1546
1546
  const handleLoad = (e2) => {
@@ -3595,7 +3595,7 @@ const Overlay = (props) => {
3595
3595
  };
3596
3596
  Overlay.displayName = "NutOverlay";
3597
3597
  const DataContext$1 = createContext({});
3598
- const defaultProps$1s = {
3598
+ const defaultProps$1r = {
3599
3599
  ...ComponentDefaults,
3600
3600
  span: "24",
3601
3601
  offset: "0",
@@ -3603,7 +3603,7 @@ const defaultProps$1s = {
3603
3603
  };
3604
3604
  const Col = (props) => {
3605
3605
  const { className, style, span, offset, children, onClick } = {
3606
- ...defaultProps$1s,
3606
+ ...defaultProps$1r,
3607
3607
  ...props
3608
3608
  };
3609
3609
  const [colName, setColName] = useState("");
@@ -3636,7 +3636,7 @@ const Col = (props) => {
3636
3636
  );
3637
3637
  };
3638
3638
  Col.displayName = "NutCol";
3639
- const defaultProps$1r = {
3639
+ const defaultProps$1q = {
3640
3640
  ...ComponentDefaults,
3641
3641
  contentPosition: "center",
3642
3642
  direction: "horizontal"
@@ -3644,7 +3644,7 @@ const defaultProps$1r = {
3644
3644
  const classPrefix$o = `nut-divider`;
3645
3645
  const Divider = (props) => {
3646
3646
  const { children, contentPosition, style, className, direction, ...rest } = {
3647
- ...defaultProps$1r,
3647
+ ...defaultProps$1q,
3648
3648
  ...props
3649
3649
  };
3650
3650
  const classes = direction === "horizontal" ? classNames({
@@ -3665,7 +3665,7 @@ const gridContext = {
3665
3665
  }
3666
3666
  };
3667
3667
  const GridContext = React__default.createContext(gridContext);
3668
- const defaultProps$1q = {
3668
+ const defaultProps$1p = {
3669
3669
  text: "",
3670
3670
  columns: 4,
3671
3671
  gap: 0,
@@ -3691,7 +3691,7 @@ const GridItem = (props) => {
3691
3691
  onClick,
3692
3692
  ...rest
3693
3693
  } = {
3694
- ...defaultProps$1q,
3694
+ ...defaultProps$1p,
3695
3695
  ...props
3696
3696
  };
3697
3697
  const classPrefix2 = "nut-grid-item";
@@ -3750,7 +3750,7 @@ const GridItem = (props) => {
3750
3750
  );
3751
3751
  };
3752
3752
  GridItem.displayName = "NutGridItem";
3753
- const defaultProps$1p = {
3753
+ const defaultProps$1o = {
3754
3754
  columns: 4,
3755
3755
  gap: 0,
3756
3756
  center: true,
@@ -3771,7 +3771,7 @@ const Grid = (props) => {
3771
3771
  className,
3772
3772
  onClick,
3773
3773
  ...rest
3774
- } = { ...defaultProps$1p, ...props };
3774
+ } = { ...defaultProps$1o, ...props };
3775
3775
  const childrenDom = React__default.Children.toArray(children);
3776
3776
  const classPrefix2 = "nut-grid";
3777
3777
  const rootClass = () => {
@@ -3807,15 +3807,14 @@ const Grid = (props) => {
3807
3807
  };
3808
3808
  Grid.displayName = "NutGrid";
3809
3809
  Grid.Item = GridItem;
3810
- const defaultProps$1o = {};
3810
+ const defaultProps$1n = {};
3811
3811
  const Layout = (props) => {
3812
- ({ ...defaultProps$1o, ...props });
3812
+ ({ ...defaultProps$1n, ...props });
3813
3813
  return /* @__PURE__ */ React__default.createElement("div", { className: "nut-layout" }, "Layout");
3814
3814
  };
3815
- Layout.defaultProps = defaultProps$1o;
3816
3815
  Layout.displayName = "NutLayout";
3817
3816
  const classPrefix$n = "nut-row";
3818
- const defaultProps$1n = {
3817
+ const defaultProps$1m = {
3819
3818
  ...ComponentDefaults,
3820
3819
  type: "",
3821
3820
  justify: "start",
@@ -3835,7 +3834,7 @@ const Row = (props) => {
3835
3834
  gutter,
3836
3835
  onClick
3837
3836
  } = {
3838
- ...defaultProps$1n,
3837
+ ...defaultProps$1m,
3839
3838
  ...props
3840
3839
  };
3841
3840
  const getClass = (prefix, type22) => {
@@ -3869,12 +3868,12 @@ const Row = (props) => {
3869
3868
  };
3870
3869
  Row.displayName = "NutRow";
3871
3870
  const prefixCls$1 = "nut-space";
3872
- const defaultProps$1m = {
3871
+ const defaultProps$1l = {
3873
3872
  direction: "horizontal"
3874
3873
  };
3875
3874
  const Space = (props) => {
3876
3875
  const { className, style, children, wrap, align, direction, justify } = {
3877
- ...defaultProps$1m,
3876
+ ...defaultProps$1l,
3878
3877
  ...props
3879
3878
  };
3880
3879
  const cls = classNames(
@@ -3966,7 +3965,7 @@ const getRectByTaro = async (element) => {
3966
3965
  }
3967
3966
  return Promise.resolve(makeRect(0, 0));
3968
3967
  };
3969
- const defaultProps$1l = {
3968
+ const defaultProps$1k = {
3970
3969
  ...ComponentDefaults,
3971
3970
  position: "top",
3972
3971
  zIndex: 900
@@ -3983,7 +3982,7 @@ const Sticky = (props) => {
3983
3982
  className,
3984
3983
  onChange,
3985
3984
  ...rest
3986
- } = { ...defaultProps$1l, ...props };
3985
+ } = { ...defaultProps$1k, ...props };
3987
3986
  const stickyRef = useRef(null);
3988
3987
  const rootRef = useRef(null);
3989
3988
  const [rootRect, setRootRect] = useState({});
@@ -4103,7 +4102,7 @@ const SafeArea = (props) => {
4103
4102
  );
4104
4103
  };
4105
4104
  SafeArea.displayName = "NutSafeArea";
4106
- const defaultProps$1k = {
4105
+ const defaultProps$1j = {
4107
4106
  ...ComponentDefaults,
4108
4107
  threshold: 200,
4109
4108
  zIndex: 900,
@@ -4112,7 +4111,7 @@ const defaultProps$1k = {
4112
4111
  const BackTop = (props) => {
4113
4112
  const rtl = useRtl();
4114
4113
  const { children, threshold, zIndex, className, duration, style, onClick } = {
4115
- ...defaultProps$1k,
4114
+ ...defaultProps$1j,
4116
4115
  ...props
4117
4116
  };
4118
4117
  const classPrefix2 = "nut-backtop";
@@ -4156,7 +4155,7 @@ const BackTop = (props) => {
4156
4155
  };
4157
4156
  BackTop.displayName = "NutBackTop";
4158
4157
  const elevatorContext = createContext({});
4159
- const defaultProps$1j = {
4158
+ const defaultProps$1i = {
4160
4159
  ...ComponentDefaults,
4161
4160
  height: "200px",
4162
4161
  floorKey: "title",
@@ -4183,7 +4182,7 @@ const Elevator = (props) => {
4183
4182
  children,
4184
4183
  ...rest
4185
4184
  } = {
4186
- ...defaultProps$1j,
4185
+ ...defaultProps$1i,
4187
4186
  ...props
4188
4187
  };
4189
4188
  const classPrefix2 = "nut-elevator";
@@ -4400,7 +4399,7 @@ const Elevator = (props) => {
4400
4399
  };
4401
4400
  Elevator.displayName = "NutElevator";
4402
4401
  Elevator.Context = elevatorContext;
4403
- const defaultProps$1i = {
4402
+ const defaultProps$1h = {
4404
4403
  ...ComponentDefaults,
4405
4404
  activeText: "",
4406
4405
  inactiveText: "",
@@ -4428,7 +4427,7 @@ const FixedNav = (props) => {
4428
4427
  content,
4429
4428
  ...rest
4430
4429
  } = {
4431
- ...defaultProps$1i,
4430
+ ...defaultProps$1h,
4432
4431
  ...props
4433
4432
  };
4434
4433
  const classPrefix2 = "nut-fixednav";
@@ -4481,7 +4480,7 @@ const FixedNav = (props) => {
4481
4480
  );
4482
4481
  };
4483
4482
  FixedNav.displayName = "NutFixedNav";
4484
- const defaultProps$1h = {
4483
+ const defaultProps$1g = {
4485
4484
  ...ComponentDefaults,
4486
4485
  left: "",
4487
4486
  right: "",
@@ -4506,7 +4505,7 @@ const NavBar = (props) => {
4506
4505
  zIndex,
4507
4506
  onBackClick
4508
4507
  } = {
4509
- ...defaultProps$1h,
4508
+ ...defaultProps$1g,
4510
4509
  ...props
4511
4510
  };
4512
4511
  const classPrefix2 = "nut-navbar";
@@ -4585,7 +4584,7 @@ const NavBar = (props) => {
4585
4584
  return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, fixed && placeholder ? /* @__PURE__ */ React__default.createElement(View, { className: `${classPrefix2}-placeholder` }, renderWrapper()) : renderWrapper());
4586
4585
  };
4587
4586
  NavBar.displayName = "NutNavBar";
4588
- const defaultProps$1g = {
4587
+ const defaultProps$1f = {
4589
4588
  ...ComponentDefaults,
4590
4589
  position: "center",
4591
4590
  transition: "",
@@ -4638,7 +4637,7 @@ const Popup = (props) => {
4638
4637
  afterShow,
4639
4638
  afterClose,
4640
4639
  onClick
4641
- } = { ...defaultProps$1g, ...props };
4640
+ } = { ...defaultProps$1f, ...props };
4642
4641
  let innerIndex = zIndex || _zIndex;
4643
4642
  const [index, setIndex] = useState(innerIndex);
4644
4643
  const [innerVisible, setInnerVisible] = useState(visible);
@@ -4778,10 +4777,9 @@ const Popup = (props) => {
4778
4777
  }, [position, transition]);
4779
4778
  return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, renderToContainer(portal, renderNode()));
4780
4779
  };
4781
- Popup.defaultProps = defaultProps$1g;
4782
4780
  Popup.displayName = "NutPopup";
4783
4781
  const OffsetContext = createContext(20);
4784
- const defaultProps$1f = {
4782
+ const defaultProps$1e = {
4785
4783
  ...ComponentDefaults,
4786
4784
  position: "left",
4787
4785
  width: "80%"
@@ -4799,7 +4797,7 @@ const SideNavBar = (props) => {
4799
4797
  indent,
4800
4798
  ...rest
4801
4799
  } = {
4802
- ...defaultProps$1f,
4800
+ ...defaultProps$1e,
4803
4801
  ...props
4804
4802
  };
4805
4803
  const innerIndent = indent ? Number(indent) : 20;
@@ -4857,13 +4855,13 @@ const SideNavBarItem = (props) => {
4857
4855
  title
4858
4856
  );
4859
4857
  };
4860
- const defaultProps$1e = {
4858
+ const defaultProps$1d = {
4861
4859
  open: true
4862
4860
  };
4863
4861
  const SubSideNavBar = (props) => {
4864
4862
  const classPrefix2 = "nut-subsidenavbar";
4865
4863
  const { title, value, children, onClick, open: open2, ...rest } = {
4866
- ...defaultProps$1e,
4864
+ ...defaultProps$1d,
4867
4865
  ...props
4868
4866
  };
4869
4867
  const [subShow, setSubShow] = useState(open2);
@@ -4941,7 +4939,7 @@ function usePropsValue({
4941
4939
  );
4942
4940
  return [stateRef.current, setState];
4943
4941
  }
4944
- const defaultProps$1d = {
4942
+ const defaultProps$1c = {
4945
4943
  ...ComponentDefaults,
4946
4944
  value: "",
4947
4945
  dot: false,
@@ -4966,7 +4964,7 @@ const Badge = (props) => {
4966
4964
  color,
4967
4965
  fill
4968
4966
  } = {
4969
- ...defaultProps$1d,
4967
+ ...defaultProps$1c,
4970
4968
  ...props
4971
4969
  };
4972
4970
  const classPrefix2 = "nut-badge";
@@ -5022,10 +5020,9 @@ const Badge = (props) => {
5022
5020
  };
5023
5021
  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()));
5024
5022
  };
5025
- Badge.defaultProps = defaultProps$1d;
5026
5023
  Badge.displayName = "NutBadge";
5027
5024
  const TabbarContext = React__default.createContext(null);
5028
- const defaultProps$1c = {
5025
+ const defaultProps$1b = {
5029
5026
  ...ComponentDefaults,
5030
5027
  title: "",
5031
5028
  icon: null,
@@ -5051,7 +5048,7 @@ const TabbarItem = (props) => {
5051
5048
  index,
5052
5049
  ...rest
5053
5050
  } = {
5054
- ...defaultProps$1c,
5051
+ ...defaultProps$1b,
5055
5052
  ...props
5056
5053
  };
5057
5054
  const active = index === (ctx == null ? void 0 : ctx.selectIndex);
@@ -5089,7 +5086,7 @@ const TabbarItem = (props) => {
5089
5086
  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))
5090
5087
  );
5091
5088
  };
5092
- const defaultProps$1b = {
5089
+ const defaultProps$1a = {
5093
5090
  ...ComponentDefaults,
5094
5091
  defaultValue: 0,
5095
5092
  fixed: false,
@@ -5112,7 +5109,7 @@ const Tabbar = (props) => {
5112
5109
  style,
5113
5110
  onSwitch
5114
5111
  } = {
5115
- ...defaultProps$1b,
5112
+ ...defaultProps$1a,
5116
5113
  ...props
5117
5114
  };
5118
5115
  const classPrefix2 = "nut-tabbar";
@@ -5155,14 +5152,14 @@ const Tabbar = (props) => {
5155
5152
  };
5156
5153
  Tabbar.displayName = "NutTabbar";
5157
5154
  Tabbar.Item = TabbarItem;
5158
- const defaultProps$1a = {
5155
+ const defaultProps$19 = {
5159
5156
  title: "",
5160
5157
  value: "",
5161
5158
  disabled: false
5162
5159
  };
5163
5160
  const TabPane = (props) => {
5164
5161
  const { children, autoHeightClassName, className, disabled } = {
5165
- ...defaultProps$1a,
5162
+ ...defaultProps$19,
5166
5163
  ...props
5167
5164
  };
5168
5165
  const classPrefix2 = "nut-tabpane";
@@ -5203,7 +5200,7 @@ function useUuid() {
5203
5200
  const idRef = useRef(uniqueId());
5204
5201
  return idRef.current;
5205
5202
  }
5206
- const defaultProps$19 = {
5203
+ const defaultProps$18 = {
5207
5204
  ...ComponentDefaults,
5208
5205
  tabStyle: {},
5209
5206
  activeColor: "",
@@ -5233,7 +5230,7 @@ const Tabs = (props) => {
5233
5230
  defaultValue: outerDefaultValue,
5234
5231
  ...rest
5235
5232
  } = {
5236
- ...defaultProps$19,
5233
+ ...defaultProps$18,
5237
5234
  ...props
5238
5235
  };
5239
5236
  const uuid = useUuid();
@@ -5457,7 +5454,7 @@ const Tabs = (props) => {
5457
5454
  };
5458
5455
  Tabs.displayName = "NutTabs";
5459
5456
  Tabs.TabPane = TabPane;
5460
- const defaultProps$18 = {
5457
+ const defaultProps$17 = {
5461
5458
  type: "custom",
5462
5459
  existList: [],
5463
5460
  defaultIcon: null,
@@ -5476,7 +5473,7 @@ const ExistRender = (props) => {
5476
5473
  onSelect,
5477
5474
  onSwitch,
5478
5475
  ...rest
5479
- } = { ...defaultProps$18, ...props };
5476
+ } = { ...defaultProps$17, ...props };
5480
5477
  const classPrefix2 = "nut-address";
5481
5478
  const selectedExist = (item) => {
5482
5479
  existList.forEach((list, index) => {
@@ -5638,7 +5635,7 @@ class Tree {
5638
5635
  return pathNodes;
5639
5636
  }
5640
5637
  }
5641
- const defaultProps$17 = {
5638
+ const defaultProps$16 = {
5642
5639
  ...ComponentDefaults,
5643
5640
  activeColor: "",
5644
5641
  activeIcon: "checklist",
@@ -5677,11 +5674,13 @@ const InternalCascader = (props, ref) => {
5677
5674
  closeIconPosition,
5678
5675
  closeIcon,
5679
5676
  lazy,
5677
+ title,
5678
+ left: left2,
5680
5679
  onLoad,
5681
5680
  onClose,
5682
5681
  onChange,
5683
5682
  onPathChange
5684
- } = { ...defaultProps$17, ...props };
5683
+ } = { ...defaultProps$16, ...props };
5685
5684
  const [tabvalue, setTabvalue] = useState("c1");
5686
5685
  const [optionsData, setOptionsData] = useState([]);
5687
5686
  const isLazy = () => state.configs.lazy && Boolean(state.configs.onLoad);
@@ -5691,7 +5690,7 @@ const InternalCascader = (props, ref) => {
5691
5690
  finalValue: defaultValue
5692
5691
  });
5693
5692
  const [innerVisible, setInnerVisible] = usePropsValue({
5694
- value: props.visible,
5693
+ value: visible,
5695
5694
  defaultValue: void 0,
5696
5695
  finalValue: false
5697
5696
  });
@@ -5979,8 +5978,8 @@ const InternalCascader = (props, ref) => {
5979
5978
  closeIcon,
5980
5979
  closeable,
5981
5980
  closeIconPosition,
5982
- title: popup && props.title,
5983
- left: props.left,
5981
+ title: popup && title,
5982
+ left: left2,
5984
5983
  onOverlayClick: closePopup,
5985
5984
  onCloseIconClick: closePopup
5986
5985
  },
@@ -5988,9 +5987,8 @@ const InternalCascader = (props, ref) => {
5988
5987
  ) : renderTabs());
5989
5988
  };
5990
5989
  const Cascader = React__default.forwardRef(InternalCascader);
5991
- Cascader.defaultProps = defaultProps$17;
5992
5990
  Cascader.displayName = "NutCascader";
5993
- const defaultProps$16 = {
5991
+ const defaultProps$15 = {
5994
5992
  ...ComponentDefaults,
5995
5993
  visible: false,
5996
5994
  type: "custom",
@@ -6017,7 +6015,7 @@ const CustomRender = (props) => {
6017
6015
  onPathChange,
6018
6016
  ...rest
6019
6017
  } = {
6020
- ...defaultProps$16,
6018
+ ...defaultProps$15,
6021
6019
  ...props
6022
6020
  };
6023
6021
  return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, type4 === "custom" && /* @__PURE__ */ React__default.createElement(
@@ -6042,7 +6040,7 @@ const CustomRender = (props) => {
6042
6040
  }
6043
6041
  ));
6044
6042
  };
6045
- const defaultProps$15 = {
6043
+ const defaultProps$14 = {
6046
6044
  ...ComponentDefaults,
6047
6045
  defaultValue: [],
6048
6046
  type: "custom",
@@ -6084,7 +6082,7 @@ const InternalAddress = (props, ref) => {
6084
6082
  onSwitch,
6085
6083
  ...rest
6086
6084
  } = {
6087
- ...defaultProps$15,
6085
+ ...defaultProps$14,
6088
6086
  ...props
6089
6087
  };
6090
6088
  const classPrefix2 = "nut-address";
@@ -6176,7 +6174,6 @@ const InternalAddress = (props, ref) => {
6176
6174
  ));
6177
6175
  };
6178
6176
  const Address = forwardRef(InternalAddress);
6179
- Address.defaultProps = defaultProps$15;
6180
6177
  Address.displayName = "NutAddress";
6181
6178
  const Utils = {
6182
6179
  /**
@@ -6426,7 +6423,7 @@ const isEnd = (day, days) => {
6426
6423
  const isStartAndEnd = (days) => {
6427
6424
  return days.length >= 2 && Utils.isEqual(days[0], days[1]);
6428
6425
  };
6429
- const defaultProps$14 = {
6426
+ const defaultProps$13 = {
6430
6427
  ...ComponentDefaults,
6431
6428
  type: "single",
6432
6429
  autoBackfill: false,
@@ -6482,11 +6479,12 @@ const CalendarItem = React__default.forwardRef((props, ref) => {
6482
6479
  renderDay,
6483
6480
  renderDayTop,
6484
6481
  renderDayBottom,
6482
+ value,
6485
6483
  onConfirm,
6486
6484
  onUpdate,
6487
6485
  onDayClick,
6488
6486
  onPageChange
6489
- } = { ...defaultProps$14, ...props };
6487
+ } = { ...defaultProps$13, ...props };
6490
6488
  const weekdays = locale.calendaritem.weekdays;
6491
6489
  const weeks = [
6492
6490
  ...weekdays.slice(firstDayOfWeek, 7),
@@ -6520,7 +6518,7 @@ const CalendarItem = React__default.forwardRef((props, ref) => {
6520
6518
  return void 0;
6521
6519
  };
6522
6520
  const [currentDate, setCurrentDate] = usePropsValue({
6523
- value: props.value,
6521
+ value,
6524
6522
  defaultValue: resetDefaultValue(),
6525
6523
  finalValue: [],
6526
6524
  onChange: (val) => {
@@ -6726,7 +6724,7 @@ const CalendarItem = React__default.forwardRef((props, ref) => {
6726
6724
  monthsData[current.lastCurrent],
6727
6725
  true
6728
6726
  );
6729
- } else if (props.type === "week") {
6727
+ } else if (type4 === "week") {
6730
6728
  chooseDay(
6731
6729
  { day: defaultData[2], type: "curr" },
6732
6730
  monthsData[current.current],
@@ -7039,9 +7037,8 @@ const CalendarItem = React__default.forwardRef((props, ref) => {
7039
7037
  };
7040
7038
  return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement("div", { className: classes, style }, renderHeader(), renderContent(), popup && !autoBackfill ? renderFooter() : ""));
7041
7039
  });
7042
- CalendarItem.defaultProps = defaultProps$14;
7043
7040
  CalendarItem.displayName = "NutCalendarItem";
7044
- const defaultProps$13 = {
7041
+ const defaultProps$12 = {
7045
7042
  ...ComponentDefaults,
7046
7043
  type: "single",
7047
7044
  autoBackfill: false,
@@ -7104,7 +7101,7 @@ const Calendar = React__default.forwardRef((props, ref) => {
7104
7101
  onConfirm,
7105
7102
  onDayClick,
7106
7103
  onPageChange
7107
- } = { ...defaultProps$13, ...props };
7104
+ } = { ...defaultProps$12, ...props };
7108
7105
  const calendarRef = useRef(null);
7109
7106
  const close2 = () => {
7110
7107
  onClose && onClose();
@@ -7179,7 +7176,6 @@ const Calendar = React__default.forwardRef((props, ref) => {
7179
7176
  renderItem()
7180
7177
  ) : renderItem());
7181
7178
  });
7182
- Calendar.defaultProps = defaultProps$13;
7183
7179
  Calendar.displayName = "NutCalendar";
7184
7180
  const left = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxOCIgaGVpZ2h0PSIxOCIgdmlld0JveD0iMCAwIDE4IDE4Ij48cGF0aCBkPSJNNi42MDUgOS40OWEuNzcxLjc3MSAwIDAgMSAwLS45OGwzLjYtNC4zNzJhLjc3MS43NzEgMCAwIDEgMS4xOS45ODFMOC4yIDlsMy4xOTcgMy44ODFhLjc3MS43NzEgMCAxIDEtMS4xOTEuOThsLTMuNi00LjM3eiIvPjwvc3ZnPg==";
7185
7181
  const right = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxOCIgaGVpZ2h0PSIxOCIgdmlld0JveD0iMCAwIDE4IDE4Ij48cGF0aCBkPSJNMTEuMzk2IDkuNDlhLjc3MS43NzEgMCAwIDAgMC0uOThsLTMuNi00LjM3MmEuNzcxLjc3MSAwIDAgMC0xLjE5MS45ODFMOS44IDlsLTMuMTk2IDMuODgxYS43NzEuNzcxIDAgMCAwIDEuMTkuOThsMy42LTQuMzd6Ii8+PC9zdmc+";
@@ -7254,7 +7250,7 @@ const getCurrentWeekDays = (day, firstDayOfWeek) => {
7254
7250
  )
7255
7251
  ];
7256
7252
  };
7257
- const defaultProps$12 = {
7253
+ const defaultProps$11 = {
7258
7254
  ...ComponentDefaults,
7259
7255
  type: "single",
7260
7256
  firstDayOfWeek: 0
@@ -7278,7 +7274,7 @@ const CalendarCard = React__default.forwardRef((props, ref) => {
7278
7274
  onDayClick,
7279
7275
  onPageChange,
7280
7276
  onChange
7281
- } = { ...defaultProps$12, ...props };
7277
+ } = { ...defaultProps$11, ...props };
7282
7278
  const [month, setMonth] = useState(() => {
7283
7279
  let date4 = new Date(Date.now());
7284
7280
  const val = value || defaultValue;
@@ -7580,11 +7576,10 @@ const CalendarCard = React__default.forwardRef((props, ref) => {
7580
7576
  };
7581
7577
  return days.length > 0 ? /* @__PURE__ */ React__default.createElement("div", { className: classNames(prefixCls, className), style }, renderHeader(), renderContent()) : null;
7582
7578
  });
7583
- CalendarCard.defaultProps = defaultProps$12;
7584
7579
  CalendarCard.displayName = "NutCalendarCard";
7585
7580
  const CheckboxGroupContext = createContext(null);
7586
7581
  const Context$1 = CheckboxGroupContext;
7587
- const defaultProps$11 = {
7582
+ const defaultProps$10 = {
7588
7583
  max: void 0,
7589
7584
  min: void 0,
7590
7585
  list: false,
@@ -7614,7 +7609,7 @@ const CheckboxGroup = React__default.forwardRef(
7614
7609
  direction,
7615
7610
  options,
7616
7611
  ...rest
7617
- } = { ...defaultProps$11, ...props };
7612
+ } = { ...defaultProps$10, ...props };
7618
7613
  useImperativeHandle(ref, () => ({
7619
7614
  toggle(state) {
7620
7615
  if (state === false) {
@@ -7706,9 +7701,9 @@ const CheckboxGroup = React__default.forwardRef(
7706
7701
  );
7707
7702
  }
7708
7703
  );
7709
- CheckboxGroup.defaultProps = defaultProps$11;
7704
+ CheckboxGroup.defaultProps = defaultProps$10;
7710
7705
  CheckboxGroup.displayName = "NutCheckboxGroup";
7711
- const defaultProps$10 = {
7706
+ const defaultProps$$ = {
7712
7707
  ...ComponentDefaults,
7713
7708
  disabled: false,
7714
7709
  shape: "round",
@@ -7722,7 +7717,7 @@ const defaultProps$10 = {
7722
7717
  const classPrefix$i = "nut-checkbox";
7723
7718
  const Checkbox = (props) => {
7724
7719
  const { children } = {
7725
- ...defaultProps$10,
7720
+ ...defaultProps$$,
7726
7721
  ...props
7727
7722
  };
7728
7723
  const {
@@ -7743,8 +7738,8 @@ const Checkbox = (props) => {
7743
7738
  let { labelPosition, ...rest } = others;
7744
7739
  const ctx = useContext(Context$1);
7745
7740
  let [innerChecked, setChecked] = usePropsValue({
7746
- value: props.checked,
7747
- defaultValue: props.defaultChecked,
7741
+ value: checked,
7742
+ defaultValue: defaultChecked,
7748
7743
  finalValue: defaultChecked,
7749
7744
  onChange
7750
7745
  });
@@ -7866,7 +7861,6 @@ const Checkbox = (props) => {
7866
7861
  renderCheckboxItem()
7867
7862
  );
7868
7863
  };
7869
- Checkbox.defaultProps = defaultProps$10;
7870
7864
  Checkbox.displayName = "NutCheckBox";
7871
7865
  Checkbox.Group = CheckboxGroup;
7872
7866
  const InternalPickerPanel = (props, ref) => {
@@ -8112,7 +8106,7 @@ function useRefs() {
8112
8106
  }, []);
8113
8107
  return [refs.current, setRefs, reset];
8114
8108
  }
8115
- const defaultProps$$ = {
8109
+ const defaultProps$_ = {
8116
8110
  ...ComponentDefaults,
8117
8111
  visible: false,
8118
8112
  title: "",
@@ -8143,7 +8137,7 @@ const InternalPicker = (props, ref) => {
8143
8137
  afterClose,
8144
8138
  onChange,
8145
8139
  ...rest
8146
- } = { ...defaultProps$$, ...props };
8140
+ } = { ...defaultProps$_, ...props };
8147
8141
  const classPrefix2 = "nut-picker";
8148
8142
  const classes = classNames(classPrefix2, className);
8149
8143
  const [selectedValue, setSelectedValue] = usePropsValue({
@@ -8458,7 +8452,7 @@ const padZero = (num, targetLength = 2) => {
8458
8452
  return str;
8459
8453
  };
8460
8454
  const currentYear = (/* @__PURE__ */ new Date()).getFullYear();
8461
- const defaultProps$_ = {
8455
+ const defaultProps$Z = {
8462
8456
  ...ComponentDefaults,
8463
8457
  visible: false,
8464
8458
  title: "",
@@ -8491,7 +8485,7 @@ const DatePicker = (props) => {
8491
8485
  style,
8492
8486
  ...rest
8493
8487
  } = {
8494
- ...defaultProps$_,
8488
+ ...defaultProps$Z,
8495
8489
  ...props
8496
8490
  };
8497
8491
  const { locale } = useConfig$1();
@@ -8782,7 +8776,7 @@ const DatePicker = (props) => {
8782
8776
  )
8783
8777
  );
8784
8778
  };
8785
- DatePicker.defaultProps = defaultProps$_;
8779
+ DatePicker.defaultProps = defaultProps$Z;
8786
8780
  DatePicker.displayName = "NutDatePicker";
8787
8781
  const Context = createContext({});
8788
8782
  function _extends() {
@@ -10025,7 +10019,7 @@ const useForm = (form) => {
10025
10019
  }
10026
10020
  return [formRef.current];
10027
10021
  };
10028
- const defaultProps$Z = {
10022
+ const defaultProps$Y = {
10029
10023
  ...ComponentDefaults,
10030
10024
  labelPosition: "right",
10031
10025
  starPosition: "left",
@@ -10056,7 +10050,7 @@ const Form = React__default.forwardRef(
10056
10050
  starPosition,
10057
10051
  form
10058
10052
  } = {
10059
- ...defaultProps$Z,
10053
+ ...defaultProps$Y,
10060
10054
  ...props
10061
10055
  };
10062
10056
  let formInstance;
@@ -10102,7 +10096,6 @@ const Form = React__default.forwardRef(
10102
10096
  );
10103
10097
  }
10104
10098
  );
10105
- Form.defaultProps = defaultProps$Z;
10106
10099
  Form.displayName = "NutForm";
10107
10100
  function isForwardRefComponent(component) {
10108
10101
  return component.type && component.type.$$typeof && // eslint-disable-next-line react/display-name
@@ -10113,7 +10106,7 @@ function isForwardRefComponent(component) {
10113
10106
  }
10114
10107
  ).$$typeof === component.type.$$typeof;
10115
10108
  }
10116
- const defaultProps$Y = {
10109
+ const defaultProps$X = {
10117
10110
  ...ComponentDefaults,
10118
10111
  required: false,
10119
10112
  name: "",
@@ -10209,7 +10202,7 @@ const _FormItem = class _FormItem extends React__default.Component {
10209
10202
  style,
10210
10203
  errorMessageAlign
10211
10204
  } = {
10212
- ...defaultProps$Y,
10205
+ ...defaultProps$X,
10213
10206
  ...this.props
10214
10207
  };
10215
10208
  const requiredInRules = rules2 == null ? void 0 : rules2.some((rule) => rule.required);
@@ -10244,6 +10237,13 @@ const _FormItem = class _FormItem extends React__default.Component {
10244
10237
  };
10245
10238
  }
10246
10239
  componentDidMount() {
10240
+ const { store = {}, setInitialValues } = this.context.getInternal(SECRET);
10241
+ if (this.props.initialValue && this.props.name && !Object.keys(store).includes(this.props.name)) {
10242
+ setInitialValues(
10243
+ { ...store, [this.props.name]: this.props.initialValue },
10244
+ true
10245
+ );
10246
+ }
10247
10247
  const { registerField, registerUpdate } = this.context.getInternal(SECRET);
10248
10248
  this.cancelRegister = registerField(this);
10249
10249
  this.eventOff = registerUpdate(this, this.props.shouldUpdate);
@@ -10271,7 +10271,7 @@ const _FormItem = class _FormItem extends React__default.Component {
10271
10271
  return /* @__PURE__ */ React__default.createElement(React__default.Fragment, { key: this.state.resetCount }, this.props.noStyle ? returnChildNode : this.renderLayout(returnChildNode));
10272
10272
  }
10273
10273
  };
10274
- _FormItem.defaultProps = defaultProps$Y;
10274
+ _FormItem.defaultProps = defaultProps$X;
10275
10275
  _FormItem.contextType = Context;
10276
10276
  let FormItem = _FormItem;
10277
10277
  const InnerForm = Form;
@@ -10301,11 +10301,11 @@ function formatNumber(value, allowDot = true, allowMinus = true) {
10301
10301
  const regExp = allowDot ? /[^-0-9.]/g : /[^-0-9]/g;
10302
10302
  return value.replace(regExp, "");
10303
10303
  }
10304
- const defaultProps$X = {
10304
+ const defaultProps$W = {
10305
10305
  ...ComponentDefaults,
10306
10306
  type: "text",
10307
10307
  name: "",
10308
- placeholder: "",
10308
+ placeholder: void 0,
10309
10309
  confirmType: "done",
10310
10310
  align: "left",
10311
10311
  required: false,
@@ -10346,12 +10346,12 @@ const Input = forwardRef(
10346
10346
  value: _value,
10347
10347
  ...rest
10348
10348
  } = {
10349
- ...defaultProps$X,
10349
+ ...defaultProps$W,
10350
10350
  ...props
10351
10351
  };
10352
10352
  const [value, setValue] = usePropsValue({
10353
- value: props.value,
10354
- defaultValue: props.defaultValue,
10353
+ value: _value,
10354
+ defaultValue,
10355
10355
  finalValue: "",
10356
10356
  onChange
10357
10357
  });
@@ -10415,16 +10415,11 @@ const Input = forwardRef(
10415
10415
  updateValue(value2, "onChange");
10416
10416
  };
10417
10417
  const handleBlur = (event) => {
10418
- if (Taro.getEnv() === "WEB") {
10419
- const val = event.target.value;
10420
- updateValue(val, "onBlur");
10421
- setTimeout(() => {
10422
- setActive(false);
10423
- }, 50);
10424
- } else {
10425
- updateValue(value, "onBlur");
10418
+ const val = Taro.getEnv() === "WEB" ? event.target.value : value;
10419
+ updateValue(val, "onBlur");
10420
+ setTimeout(() => {
10426
10421
  setActive(false);
10427
- }
10422
+ }, 200);
10428
10423
  };
10429
10424
  const inputType = (type22) => {
10430
10425
  if (getEnv() === ENV_TYPE.WEB) {
@@ -10468,7 +10463,7 @@ const Input = forwardRef(
10468
10463
  type: inputType(type4),
10469
10464
  password: type4 === "password",
10470
10465
  maxlength: maxLength,
10471
- placeholder: placeholder || locale.placeholder,
10466
+ placeholder: placeholder === void 0 ? locale.placeholder : placeholder,
10472
10467
  disabled: disabled || readOnly,
10473
10468
  value,
10474
10469
  focus: autoFocus,
@@ -10485,7 +10480,8 @@ const Input = forwardRef(
10485
10480
  {
10486
10481
  style: {
10487
10482
  display: clearable && !readOnly && active && value.length > 0 ? "flex" : "none",
10488
- alignItems: "center"
10483
+ alignItems: "center",
10484
+ cursor: "pointer"
10489
10485
  },
10490
10486
  onClick: (e2) => {
10491
10487
  e2.stopPropagation();
@@ -10500,9 +10496,8 @@ const Input = forwardRef(
10500
10496
  );
10501
10497
  }
10502
10498
  );
10503
- Input.defaultProps = defaultProps$X;
10504
10499
  Input.displayName = "NutInput";
10505
- const defaultProps$W = {
10500
+ const defaultProps$V = {
10506
10501
  ...ComponentDefaults,
10507
10502
  disabled: false,
10508
10503
  readOnly: false,
@@ -10540,7 +10535,7 @@ const InputNumber = (props) => {
10540
10535
  onChange,
10541
10536
  ...restProps
10542
10537
  } = {
10543
- ...defaultProps$W,
10538
+ ...defaultProps$V,
10544
10539
  ...props
10545
10540
  };
10546
10541
  const classes = classNames(classPrefix$h, className, {
@@ -10700,9 +10695,8 @@ const InputNumber = (props) => {
10700
10695
  }
10701
10696
  )));
10702
10697
  };
10703
- InputNumber.defaultProps = defaultProps$W;
10704
10698
  InputNumber.displayName = "NutInputNumber";
10705
- const defaultProps$V = {
10699
+ const defaultProps$U = {
10706
10700
  ...ComponentDefaults,
10707
10701
  columns: 1,
10708
10702
  direction: "down",
@@ -10733,7 +10727,7 @@ const MenuItem = forwardRef((props, ref) => {
10733
10727
  parent,
10734
10728
  index
10735
10729
  } = {
10736
- ...defaultProps$V,
10730
+ ...defaultProps$U,
10737
10731
  ...props
10738
10732
  };
10739
10733
  const [showPopup, setShowPopup] = useState(show2);
@@ -10894,7 +10888,7 @@ const MenuItem = forwardRef((props, ref) => {
10894
10888
  g$3,
10895
10889
  {
10896
10890
  color: activeColor,
10897
- size: 10,
10891
+ size: 16,
10898
10892
  className: getIconCName(item.value, value)
10899
10893
  }
10900
10894
  )) : null,
@@ -10913,9 +10907,8 @@ const MenuItem = forwardRef((props, ref) => {
10913
10907
  )
10914
10908
  ));
10915
10909
  });
10916
- MenuItem.defaultProps = defaultProps$V;
10917
10910
  MenuItem.displayName = "NutMenuItem";
10918
- const defaultProps$U = {
10911
+ const defaultProps$T = {
10919
10912
  ...ComponentDefaults,
10920
10913
  activeColor: "",
10921
10914
  closeOnOverlayClick: true,
@@ -10942,7 +10935,7 @@ const Menu = (props) => {
10942
10935
  onOpen,
10943
10936
  ...rest
10944
10937
  } = {
10945
- ...defaultProps$U,
10938
+ ...defaultProps$T,
10946
10939
  ...props
10947
10940
  };
10948
10941
  const menuRef = useRef(null);
@@ -11067,19 +11060,8 @@ const Menu = (props) => {
11067
11060
  cloneChildren()
11068
11061
  );
11069
11062
  };
11070
- Menu.defaultProps = defaultProps$U;
11071
11063
  Menu.displayName = "NutMenu";
11072
11064
  Menu.Item = MenuItem;
11073
- const defaultProps$T = {
11074
- ...ComponentDefaults,
11075
- visible: false,
11076
- rightActions: "",
11077
- type: "default",
11078
- custom: [],
11079
- random: false,
11080
- onClose: () => {
11081
- }
11082
- };
11083
11065
  const NumberKeyboard = (props) => {
11084
11066
  const { locale } = useConfig$1();
11085
11067
  const {
@@ -11218,7 +11200,6 @@ const NumberKeyboard = (props) => {
11218
11200
  ))))
11219
11201
  );
11220
11202
  };
11221
- NumberKeyboard.defaultProps = defaultProps$T;
11222
11203
  NumberKeyboard.displayName = "NutNumberKeyboard";
11223
11204
  const RadioContext = React__default.createContext(null);
11224
11205
  const defaultProps$S = {
@@ -11743,7 +11724,6 @@ const Range = (props) => {
11743
11724
  renderButton()
11744
11725
  ))), maxDescription !== null && /* @__PURE__ */ React__default.createElement("div", { className: "max" }, maxDescription || max));
11745
11726
  };
11746
- Range.defaultProps = defaultProps$Q;
11747
11727
  Range.displayName = "NutRange";
11748
11728
  const defaultProps$P = {
11749
11729
  ...ComponentDefaults,
@@ -11930,7 +11910,6 @@ const Rate = (props) => {
11930
11910
  })
11931
11911
  );
11932
11912
  };
11933
- Rate.defaultProps = defaultProps$P;
11934
11913
  Rate.displayName = "NutRate";
11935
11914
  const defaultProps$O = {
11936
11915
  ...ComponentDefaults,
@@ -11951,8 +11930,9 @@ const SearchBar = (props) => {
11951
11930
  const classPrefix2 = "nut-searchbar";
11952
11931
  const { locale } = useConfig$1();
11953
11932
  const searchRef = useRef(null);
11954
- const [value, setValue] = useState(() => props.value);
11955
11933
  const {
11934
+ value: outerValue,
11935
+ style,
11956
11936
  placeholder,
11957
11937
  shape,
11958
11938
  className,
@@ -11976,6 +11956,7 @@ const SearchBar = (props) => {
11976
11956
  ...defaultProps$O,
11977
11957
  ...props
11978
11958
  };
11959
+ const [value, setValue] = useState(() => outerValue);
11979
11960
  const forceFocus = () => {
11980
11961
  const searchSelf = searchRef.current;
11981
11962
  searchSelf && searchSelf.focus();
@@ -11998,8 +11979,8 @@ const SearchBar = (props) => {
11998
11979
  onBlur && (onBlur == null ? void 0 : onBlur(value2, event));
11999
11980
  };
12000
11981
  useEffect(() => {
12001
- setValue(props.value || "");
12002
- }, [props.value]);
11982
+ setValue(outerValue || "");
11983
+ }, [outerValue]);
12003
11984
  useEffect(() => {
12004
11985
  autoFocus && forceFocus();
12005
11986
  }, [autoFocus]);
@@ -12009,7 +11990,7 @@ const SearchBar = (props) => {
12009
11990
  {
12010
11991
  className: `${classPrefix2}-input ${clearable ? `${classPrefix2}-input-clear` : ""}`,
12011
11992
  ref: searchRef,
12012
- style: { ...props.style },
11993
+ style,
12013
11994
  value: value || "",
12014
11995
  placeholder: placeholder || locale.placeholder,
12015
11996
  disabled,
@@ -12076,7 +12057,7 @@ const SearchBar = (props) => {
12076
12057
  "div",
12077
12058
  {
12078
12059
  className: `${classPrefix2} ${disabled ? `${classPrefix2}-disabled` : ""} ${className || ""}`,
12079
- style: { ...props.style }
12060
+ style
12080
12061
  },
12081
12062
  renderLeft(),
12082
12063
  /* @__PURE__ */ React__default.createElement(
@@ -12092,7 +12073,6 @@ const SearchBar = (props) => {
12092
12073
  renderRight()
12093
12074
  );
12094
12075
  };
12095
- SearchBar.defaultProps = defaultProps$O;
12096
12076
  SearchBar.displayName = "NutSearchBar";
12097
12077
  const defaultProps$N = {
12098
12078
  ...ComponentDefaults,
@@ -12110,7 +12090,7 @@ const InternalShortPassword = (props, ref) => {
12110
12090
  title,
12111
12091
  description,
12112
12092
  tips,
12113
- visible: deleteVisible,
12093
+ visible: outerVisible,
12114
12094
  value,
12115
12095
  error,
12116
12096
  hideFooter,
@@ -12142,7 +12122,7 @@ const InternalShortPassword = (props, ref) => {
12142
12122
  return val.slice(0, comLen);
12143
12123
  };
12144
12124
  const [visible, setVisible] = usePropsValue({
12145
- value: props.visible,
12125
+ value: outerVisible,
12146
12126
  defaultValue: false,
12147
12127
  finalValue: false
12148
12128
  });
@@ -12260,7 +12240,7 @@ const InternalSignature = (props, ref) => {
12260
12240
  }).exec((res) => {
12261
12241
  canvasToTempFilePath({
12262
12242
  canvas: res[0].node,
12263
- fileType: props.type,
12243
+ fileType: type4,
12264
12244
  canvasId: `${canvasId}`,
12265
12245
  success: (res2) => {
12266
12246
  onConfirm && onConfirm(res2.tempFilePath);
@@ -12359,7 +12339,6 @@ const InternalSignature = (props, ref) => {
12359
12339
  const Signature = React__default.forwardRef(
12360
12340
  InternalSignature
12361
12341
  );
12362
- Signature.defaultProps = defaultProps$M;
12363
12342
  Signature.displayName = "NutSignature";
12364
12343
  const defaultProps$L = {
12365
12344
  ...ComponentDefaults,
@@ -12407,7 +12386,6 @@ const Switch = (props) => {
12407
12386
  /* @__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)))
12408
12387
  );
12409
12388
  };
12410
- Switch.defaultProps = defaultProps$L;
12411
12389
  Switch.displayName = "NutSwitch";
12412
12390
  const defaultProps$K = {
12413
12391
  ...ComponentDefaults,
@@ -12517,7 +12495,6 @@ const TextArea = (props) => {
12517
12495
  showCount && /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-limit` }, inputValue.length, "/", maxLength < 0 ? 0 : maxLength)
12518
12496
  );
12519
12497
  };
12520
- TextArea.defaultProps = defaultProps$K;
12521
12498
  TextArea.displayName = "NutTextArea";
12522
12499
  class UploadOptions {
12523
12500
  constructor() {
@@ -12821,7 +12798,6 @@ const Progress = (props) => {
12821
12798
  )))
12822
12799
  );
12823
12800
  };
12824
- Progress.defaultProps = defaultProps$J;
12825
12801
  Progress.displayName = "NutProgress";
12826
12802
  const Preview = ({
12827
12803
  fileList,
@@ -13138,7 +13114,7 @@ const InternalUploader = (props, ref) => {
13138
13114
  });
13139
13115
  };
13140
13116
  const task = new UploaderTaro(uploadOption);
13141
- if (props.autoUpload) {
13117
+ if (autoUpload) {
13142
13118
  task.uploadTaro(uploadFile, getEnv());
13143
13119
  } else {
13144
13120
  uploadQueue.push(
@@ -13190,8 +13166,8 @@ const InternalUploader = (props, ref) => {
13190
13166
  });
13191
13167
  };
13192
13168
  const filterFiles = (files) => {
13193
- const maximum = props.maxCount * 1;
13194
- const maximize = props.maxFileSize * 1;
13169
+ const maximum = maxCount * 1;
13170
+ const maximize = maxFileSize * 1;
13195
13171
  const oversizes = new Array();
13196
13172
  const filterFile = files.filter((file) => {
13197
13173
  if (file.size > maximize) {
@@ -13257,7 +13233,6 @@ const InternalUploader = (props, ref) => {
13257
13233
  ));
13258
13234
  };
13259
13235
  const Uploader = React__default.forwardRef(InternalUploader);
13260
- Uploader.defaultProps = defaultProps$I;
13261
13236
  Uploader.displayName = "NutUploader";
13262
13237
  const defaultProps$H = {
13263
13238
  ...ComponentDefaults,
@@ -13330,7 +13305,6 @@ const ActionSheet = (props) => {
13330
13305
  ))
13331
13306
  );
13332
13307
  };
13333
- ActionSheet.defaultProps = defaultProps$H;
13334
13308
  ActionSheet.displayName = "NutActionSheet";
13335
13309
  const Content = (props) => {
13336
13310
  const {
@@ -13679,18 +13653,18 @@ const Drag = (props) => {
13679
13653
  } else if (translateY.current > boundaryState.bottom) {
13680
13654
  translateY.current = boundaryState.bottom;
13681
13655
  }
13682
- const transform = `translate3d(${props.direction !== "y" ? translateX.current : 0}px, ${props.direction !== "x" ? translateY.current : 0}px, 0px)`;
13656
+ const transform = `translate3d(${direction !== "y" ? translateX.current : 0}px, ${direction !== "x" ? translateY.current : 0}px, 0px)`;
13683
13657
  setCurrStyle({ transform });
13684
13658
  }
13685
13659
  };
13686
13660
  const touchEnd = (e2) => {
13687
- if (props.direction !== "y" && props.attract && dragRef.current) {
13661
+ if (direction !== "y" && attract && dragRef.current) {
13688
13662
  if (translateX.current < middleLine.current) {
13689
13663
  translateX.current = boundaryState.left;
13690
13664
  } else {
13691
13665
  translateX.current = boundaryState.right;
13692
13666
  }
13693
- const transform = `translate3d(${translateX.current}px, ${props.direction !== "x" ? translateY.current : 0}px, 0px)`;
13667
+ const transform = `translate3d(${translateX.current}px, ${direction !== "x" ? translateY.current : 0}px, 0px)`;
13694
13668
  setCurrStyle({ transform });
13695
13669
  }
13696
13670
  };
@@ -13723,7 +13697,6 @@ const Drag = (props) => {
13723
13697
  )
13724
13698
  );
13725
13699
  };
13726
- Drag.defaultProps = defaultProps$F;
13727
13700
  Drag.displayName = "NutDrag";
13728
13701
  const defaultStatus = {
13729
13702
  empty: "https://storage.360buyimg.com/imgtools/30186cfda0-0d3eee40-c0ac-11ee-9382-9125782aa3b8.png",
@@ -13798,7 +13771,6 @@ const Empty = (props) => {
13798
13771
  );
13799
13772
  })), children);
13800
13773
  };
13801
- Empty.defaultProps = defaultProps$E;
13802
13774
  Empty.displayName = "NutEmpty";
13803
13775
  const defaultProps$D = {
13804
13776
  ...ComponentDefaults,
@@ -13934,7 +13906,6 @@ const InfiniteLoading = (props) => {
13934
13906
  /* @__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))
13935
13907
  );
13936
13908
  };
13937
- InfiniteLoading.defaultProps = defaultProps$D;
13938
13909
  InfiniteLoading.displayName = "NutInfiniteLoading";
13939
13910
  const loadingMap = {
13940
13911
  circular: D$5,
@@ -13967,7 +13938,6 @@ const Loading = (props) => {
13967
13938
  children ? /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-text` }, children) : ""
13968
13939
  );
13969
13940
  };
13970
- Loading.defaultProps = defaultProps$C;
13971
13941
  Loading.displayName = "NutLoading";
13972
13942
  const defaultProps$B = {
13973
13943
  ...ComponentDefaults,
@@ -14389,7 +14359,6 @@ const NoticeBar = (props) => {
14389
14359
  )
14390
14360
  ) : null);
14391
14361
  };
14392
- NoticeBar.defaultProps = defaultProps$B;
14393
14362
  NoticeBar.displayName = "NutNoticeBar";
14394
14363
  const defaultProps$A = {
14395
14364
  ...ComponentDefaults,
@@ -14595,7 +14564,7 @@ const Popover = (props) => {
14595
14564
  };
14596
14565
  const clickAway = () => {
14597
14566
  if (closeOnOutsideClick) {
14598
- props.onClick && props.onClick();
14567
+ onClick && onClick();
14599
14568
  onClose && onClose();
14600
14569
  }
14601
14570
  };
@@ -14671,7 +14640,7 @@ const Popover = (props) => {
14671
14640
  const direction = location.split("-")[0];
14672
14641
  const skew = location.split("-")[1];
14673
14642
  const base = 16;
14674
- if (props.arrowOffset !== 0) {
14643
+ if (arrowOffset !== 0) {
14675
14644
  const dir = rtl ? "right" : "left";
14676
14645
  const dir2 = rtl ? "left" : "right";
14677
14646
  if (["bottom", "top"].includes(direction)) {
@@ -14700,12 +14669,11 @@ const Popover = (props) => {
14700
14669
  return styles;
14701
14670
  };
14702
14671
  const handleSelect = (item, index) => {
14703
- var _a;
14704
14672
  if (!item.disabled) {
14705
14673
  onSelect == null ? void 0 : onSelect(item, index);
14706
14674
  }
14707
14675
  if (closeOnActionClick) {
14708
- (_a = props.onClick) == null ? void 0 : _a.call(props);
14676
+ onClick == null ? void 0 : onClick();
14709
14677
  onClose == null ? void 0 : onClose();
14710
14678
  }
14711
14679
  };
@@ -14773,7 +14741,6 @@ const Popover = (props) => {
14773
14741
  }
14774
14742
  )));
14775
14743
  };
14776
- Popover.defaultProps = defaultProps$z;
14777
14744
  Popover.displayName = "NutPopover";
14778
14745
  function bound(position, min, max) {
14779
14746
  let ret = position;
@@ -14965,7 +14932,6 @@ const AvatarGroup = (props) => {
14965
14932
  };
14966
14933
  return /* @__PURE__ */ React__default.createElement(AvatarContext.Provider, { value: parentAvatar }, /* @__PURE__ */ React__default.createElement("div", { className: cls, style, ref: avatarGroupRef }, children));
14967
14934
  };
14968
- AvatarGroup.defaultProps = defaultProps$x;
14969
14935
  AvatarGroup.displayName = "NutAvatarGroup";
14970
14936
  const defaultProps$w = {
14971
14937
  ...ComponentDefaults,
@@ -15054,8 +15020,8 @@ const Avatar = (props) => {
15054
15020
  }
15055
15021
  };
15056
15022
  const errorEvent = () => {
15057
- if (props.onError) {
15058
- props.onError();
15023
+ if (onError) {
15024
+ onError();
15059
15025
  }
15060
15026
  };
15061
15027
  const clickAvatar = (e2) => {
@@ -15085,7 +15051,6 @@ const Avatar = (props) => {
15085
15051
  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)}`)
15086
15052
  ));
15087
15053
  };
15088
- Avatar.defaultProps = defaultProps$w;
15089
15054
  Avatar.displayName = "NutAvatar";
15090
15055
  Avatar.Group = AvatarGroup;
15091
15056
  const defaultProps$v = {
@@ -15148,7 +15113,6 @@ const Skeleton = (props) => {
15148
15113
  return /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-block`, key: index });
15149
15114
  })))));
15150
15115
  };
15151
- Skeleton.defaultProps = defaultProps$v;
15152
15116
  Skeleton.displayName = "NutSkeleton";
15153
15117
  function preventDefault(event, isStopPropagation) {
15154
15118
  if (typeof event.cancelable !== "boolean" || event.cancelable) {
@@ -15533,7 +15497,6 @@ const Animate = (props) => {
15533
15497
  };
15534
15498
  return /* @__PURE__ */ React__default.createElement("div", { className: "nut-animate" }, /* @__PURE__ */ React__default.createElement("div", { className: cls, onClick: handleClick, ...rest }, children));
15535
15499
  };
15536
- Animate.defaultProps = defaultProps$s;
15537
15500
  Animate.displayName = "NutAnimate";
15538
15501
  const defaultProps$r = {
15539
15502
  ...ComponentDefaults,
@@ -15913,11 +15876,10 @@ const CircleProgress = (props) => {
15913
15876
  return () => window.cancelAnimationFrame(animateIdRef.current);
15914
15877
  }, [percent]);
15915
15878
  const stop = () => {
15916
- if (!isObject(props.color)) {
15879
+ if (!isObject(color)) {
15917
15880
  return [];
15918
15881
  }
15919
- const color2 = props.color;
15920
- const colorArr = Object.keys(color2).sort(
15882
+ const colorArr = Object.keys(color).sort(
15921
15883
  (a2, b) => parseFloat(a2) - parseFloat(b)
15922
15884
  );
15923
15885
  const stopArr = [];
@@ -15927,7 +15889,7 @@ const CircleProgress = (props) => {
15927
15889
  value: ""
15928
15890
  };
15929
15891
  obj.key = item;
15930
- obj.value = color2[item];
15892
+ obj.value = color[item];
15931
15893
  stopArr.push(obj);
15932
15894
  });
15933
15895
  return stopArr;
@@ -15951,15 +15913,15 @@ const CircleProgress = (props) => {
15951
15913
  const perimeter = 283;
15952
15914
  const progress = +oldValue.current;
15953
15915
  const offset = perimeter * Number(format2(parseFloat(progress.toFixed(1)))) / 100;
15954
- const isWise = props.clockwise ? 1 : 0;
15955
- const color2 = isObject(props.color) ? `url(%23${refRandomId})` : transColor(props.color);
15916
+ const isWise = clockwise ? 1 : 0;
15917
+ const realColor = isObject(color) ? `url(%23${refRandomId})` : transColor(color);
15956
15918
  const d = `M 50 50 m 0 -45 a 45 45 0 1 ${isWise} 0 90 a 45 45 0 1, ${isWise} 0 -90`;
15957
15919
  const pa = `%3Cdefs%3E%3ClinearGradient id='${refRandomId}' x1='100%25' y1='0%25' x2='0%25' y2='0%25'%3E${stopDom}%3C/linearGradient%3E%3C/defs%3E`;
15958
15920
  const path = `%3Cpath d='${d}' stroke-width='${strokeWidth}' stroke='${transColor(
15959
- props.background
15921
+ background
15960
15922
  )}' fill='none'/%3E`;
15961
15923
  const path1 = `%3Cpath d='${d}' stroke-width='${strokeWidth}' stroke-dasharray='${offset},${perimeter}' stroke-linecap='round' stroke='${transColor(
15962
- color2
15924
+ realColor
15963
15925
  )}' fill='none'/%3E`;
15964
15926
  return {
15965
15927
  background: `url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E${pa}${path}${path1}%3C/svg%3E")`,
@@ -15969,7 +15931,6 @@ const CircleProgress = (props) => {
15969
15931
  };
15970
15932
  return /* @__PURE__ */ React__default.createElement("div", { className: classes, style: styles, ...restProps }, /* @__PURE__ */ React__default.createElement("div", { style: circleStyle() }), /* @__PURE__ */ React__default.createElement("div", { className: "nut-circleprogress-text" }, children));
15971
15933
  };
15972
- CircleProgress.defaultProps = defaultProps$o;
15973
15934
  CircleProgress.displayName = "NutCircleProgress";
15974
15935
  const collapseContext = {
15975
15936
  isOpen: (name) => {
@@ -16114,7 +16075,6 @@ const CollapseItem = (props) => {
16114
16075
  )
16115
16076
  ));
16116
16077
  };
16117
- CollapseItem.defaultProps = defaultProps$n;
16118
16078
  CollapseItem.displayName = "NutCollapseItem";
16119
16079
  const defaultProps$m = {
16120
16080
  ...ComponentDefaults,
@@ -16192,7 +16152,6 @@ const Collapse = (props) => {
16192
16152
  /* @__PURE__ */ React__default.createElement("div", { className: classNames(classPrefix2, className), style }, children)
16193
16153
  );
16194
16154
  };
16195
- Collapse.defaultProps = defaultProps$m;
16196
16155
  Collapse.displayName = "NutCollapse";
16197
16156
  Collapse.Item = CollapseItem;
16198
16157
  const defaultProps$l = {
@@ -16433,7 +16392,6 @@ const InternalCountDown = (props, ref) => {
16433
16392
  const CountDown = React__default.forwardRef(
16434
16393
  InternalCountDown
16435
16394
  );
16436
- CountDown.defaultProps = defaultProps$l;
16437
16395
  CountDown.displayName = "NutCountDown";
16438
16396
  const defaultProps$k = {
16439
16397
  ...ComponentDefaults,
@@ -16756,7 +16714,6 @@ const Ellipsis = (props) => {
16756
16714
  symbolText()
16757
16715
  ));
16758
16716
  };
16759
- Ellipsis.defaultProps = defaultProps$k;
16760
16717
  Ellipsis.displayName = "NutEllipsis";
16761
16718
  const defaultProps$j = {
16762
16719
  total: 3,
@@ -16789,7 +16746,6 @@ const Indicator = (props) => {
16789
16746
  };
16790
16747
  return /* @__PURE__ */ React__default.createElement("div", { className: classNames(classPrefix$5, classes, className), ...rest }, renderElement());
16791
16748
  };
16792
- Indicator.defaultProps = defaultProps$j;
16793
16749
  Indicator.displayName = "NutIndicator";
16794
16750
  const defaultProps$i = {
16795
16751
  direction: "horizontal",
@@ -16962,6 +16918,7 @@ const defaultProps$g = {
16962
16918
  };
16963
16919
  const ImagePreview = (props) => {
16964
16920
  const {
16921
+ value,
16965
16922
  className,
16966
16923
  style,
16967
16924
  images,
@@ -16975,17 +16932,17 @@ const ImagePreview = (props) => {
16975
16932
  closeIcon,
16976
16933
  closeIconPosition,
16977
16934
  showMenuByLongpress,
16978
- onClose
16979
- } = props;
16935
+ onClose,
16936
+ onChange
16937
+ } = { ...defaultProps$g, ...props };
16980
16938
  const classPrefix2 = "nut-imagepreview";
16981
16939
  const ref = useRef(null);
16982
16940
  const [innerNo, setInnerNo] = usePropsValue({
16983
- value: props.value,
16941
+ value,
16984
16942
  defaultValue,
16985
16943
  finalValue: defaultValue,
16986
16944
  onChange: (val) => {
16987
- var _a;
16988
- (_a = props.onChange) == null ? void 0 : _a.call(props, val);
16945
+ onChange == null ? void 0 : onChange(val);
16989
16946
  }
16990
16947
  });
16991
16948
  const [showPop, setShowPop] = useState(visible);
@@ -17096,9 +17053,8 @@ const ImagePreview = (props) => {
17096
17053
  );
17097
17054
  };
17098
17055
  const slideChangeEnd = (page) => {
17099
- var _a;
17100
17056
  setActive(page + 1);
17101
- (_a = props.onChange) == null ? void 0 : _a.call(props, page + 1);
17057
+ onChange == null ? void 0 : onChange(page + 1);
17102
17058
  };
17103
17059
  const onCloseInner = (e2) => {
17104
17060
  e2.stopPropagation();
@@ -17112,6 +17068,7 @@ const ImagePreview = (props) => {
17112
17068
  });
17113
17069
  };
17114
17070
  const closeOnImg = (e2) => {
17071
+ e2.stopPropagation();
17115
17072
  if (closeOnContentClick) {
17116
17073
  onCloseInner(e2);
17117
17074
  }
@@ -17201,7 +17158,6 @@ const ImagePreview = (props) => {
17201
17158
  ) : null
17202
17159
  );
17203
17160
  };
17204
- ImagePreview.defaultProps = defaultProps$g;
17205
17161
  ImagePreview.displayName = "NutImagePreview";
17206
17162
  const defaultProps$f = {
17207
17163
  ...ComponentDefaults,
@@ -17313,7 +17269,6 @@ const Pagination = (props) => {
17313
17269
  next || locale.pagination.next
17314
17270
  )), 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))));
17315
17271
  };
17316
- Pagination.defaultProps = defaultProps$f;
17317
17272
  Pagination.displayName = "NutPagination";
17318
17273
  const defaultProps$e = {
17319
17274
  ...ComponentDefaults,
@@ -17415,7 +17370,6 @@ const Price = (props) => {
17415
17370
  symbol && position === "after" ? renderSymbol() : null
17416
17371
  );
17417
17372
  };
17418
- Price.defaultProps = defaultProps$e;
17419
17373
  Price.displayName = "NutPrice";
17420
17374
  const DataContext = createContext({});
17421
17375
  const defaultProps$d = {
@@ -17461,7 +17415,6 @@ const Step = (props) => {
17461
17415
  };
17462
17416
  return /* @__PURE__ */ React__default.createElement("div", { className: classes, ...restProps, onClick: handleClickStep }, /* @__PURE__ */ React__default.createElement(View, { className: "nut-step-head" }, /* @__PURE__ */ React__default.createElement(View, { className: "nut-step-line" }), /* @__PURE__ */ React__default.createElement(View, { className: renderIconClass() }, icon || !dot && /* @__PURE__ */ React__default.createElement("span", { className: "nut-step-inner" }, value))), (title || description) && /* @__PURE__ */ React__default.createElement(View, { 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)));
17463
17417
  };
17464
- Step.defaultProps = defaultProps$d;
17465
17418
  Step.displayName = "NutStep";
17466
17419
  const defaultProps$c = {
17467
17420
  ...ComponentDefaults,
@@ -17488,13 +17441,12 @@ const Steps = (props) => {
17488
17441
  classPrefix2,
17489
17442
  {
17490
17443
  [`${classPrefix2}-${direction}`]: true,
17491
- [`${classPrefix2}-dot`]: !!props.dot
17444
+ [`${classPrefix2}-dot`]: !!dot
17492
17445
  },
17493
17446
  className
17494
17447
  );
17495
17448
  return /* @__PURE__ */ React__default.createElement(DataContext.Provider, { value: parentSteps }, /* @__PURE__ */ React__default.createElement("div", { className: classes, ...restProps }, children));
17496
17449
  };
17497
- Steps.defaultProps = defaultProps$c;
17498
17450
  Steps.displayName = "NutSteps";
17499
17451
  function useTableSticky(columns, rtl = false) {
17500
17452
  const [isSticky, setIsSticky] = useState(false);
@@ -17635,7 +17587,7 @@ const Table = (props) => {
17635
17587
  };
17636
17588
  const cellClasses = (item) => {
17637
17589
  return {
17638
- [`${headerClassPrefix}-border`]: props.bordered,
17590
+ [`${headerClassPrefix}-border`]: bordered,
17639
17591
  [`${headerClassPrefix}-align${item.align ? item.align : ""}`]: true
17640
17592
  };
17641
17593
  };
@@ -17721,7 +17673,6 @@ const Table = (props) => {
17721
17673
  }
17722
17674
  )) : null, (summary || innerValue.length === 0) && /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-summary` }, summary || noData));
17723
17675
  };
17724
- Table.defaultProps = defaultProps$b;
17725
17676
  Table.displayName = "NutTable";
17726
17677
  const defaultProps$a = {
17727
17678
  ...ComponentDefaults,
@@ -17823,7 +17774,6 @@ const Tag = (props) => {
17823
17774
  children && /* @__PURE__ */ React__default.createElement("span", { className: `${classPrefix2}-text` }, children)
17824
17775
  ));
17825
17776
  };
17826
- Tag.defaultProps = defaultProps$a;
17827
17777
  Tag.displayName = "NutTag";
17828
17778
  const getTaroRectById = (id) => {
17829
17779
  return new Promise((resolve, reject) => {
@@ -18021,7 +17971,6 @@ const Tour = (props) => {
18021
17971
  )));
18022
17972
  }));
18023
17973
  };
18024
- Tour.defaultProps = defaultProps$9;
18025
17974
  Tour.displayName = "NutTour";
18026
17975
  const defaultProps$8 = {
18027
17976
  source: {
@@ -18072,7 +18021,6 @@ const Video = (props) => {
18072
18021
  }
18073
18022
  ));
18074
18023
  };
18075
- Video.defaultProps = defaultProps$8;
18076
18024
  Video.displayName = "NutVideo";
18077
18025
  const initPositinoCache = (reaItemSize, length = 0) => {
18078
18026
  let index = 0;
@@ -18281,7 +18229,6 @@ const VirtualList = (props) => {
18281
18229
  )
18282
18230
  );
18283
18231
  };
18284
- VirtualList.defaultProps = defaultProps$7;
18285
18232
  VirtualList.displayName = "NutVirtualList";
18286
18233
  const defaultProps$6 = {
18287
18234
  ...ComponentDefaults,
@@ -18403,7 +18350,6 @@ const InternalBarrage = (props, ref) => {
18403
18350
  const Barrage = React__default.forwardRef(
18404
18351
  InternalBarrage
18405
18352
  );
18406
- Barrage.defaultProps = defaultProps$6;
18407
18353
  Barrage.displayName = "NutBarrage";
18408
18354
  const defaultProps$5 = {
18409
18355
  ...ComponentDefaults,
@@ -18449,7 +18395,6 @@ const Card = (props) => {
18449
18395
  }
18450
18396
  )), /* @__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)));
18451
18397
  };
18452
- Card.defaultProps = defaultProps$5;
18453
18398
  Card.displayName = "NutCard";
18454
18399
  const defaultProps$4 = {
18455
18400
  ...ComponentDefaults,
@@ -18504,7 +18449,6 @@ const TimeDetail = (props) => {
18504
18449
  item[optionKey.textKey]
18505
18450
  )));
18506
18451
  };
18507
- TimeDetail.defaultProps = defaultProps$4;
18508
18452
  TimeDetail.displayName = "NutTimeDetail";
18509
18453
  const defaultProps$3 = {
18510
18454
  ...ComponentDefaults,
@@ -18642,7 +18586,6 @@ const TimeSelect = (props) => {
18642
18586
  )))
18643
18587
  );
18644
18588
  };
18645
- TimeSelect.defaultProps = defaultProps$3;
18646
18589
  TimeSelect.displayName = "NutTimeSelect";
18647
18590
  const defaultProps$2 = {
18648
18591
  ...ComponentDefaults,
@@ -18723,7 +18666,6 @@ const TrendArrow = (props) => {
18723
18666
  };
18724
18667
  return /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2} ${className}`, style, ...rest }, !left2 && renderContent(!left2), 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(c, { color: calcIconProps.color })) : /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, dropIcon || /* @__PURE__ */ React__default.createElement(e, { color: calcIconProps.color }))), left2 && renderContent(!left2));
18725
18668
  };
18726
- TrendArrow.defaultProps = defaultProps$2;
18727
18669
  TrendArrow.displayName = "NutTrendArrow";
18728
18670
  const defaultProps$1 = {
18729
18671
  ...ComponentDefaults,
@@ -18854,7 +18796,6 @@ const WaterMark = (props) => {
18854
18796
  }
18855
18797
  );
18856
18798
  };
18857
- WaterMark.defaultProps = defaultProps$1;
18858
18799
  WaterMark.displayName = "NutWaterMark";
18859
18800
  const defaultProps = {
18860
18801
  ...ComponentDefaults,
@@ -19389,7 +19330,6 @@ const AvatarCropper = (props) => {
19389
19330
  };
19390
19331
  return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement("div", { className: cls, ...rest, style }, children, /* @__PURE__ */ React__default.createElement("div", { className: "nut-avatar-cropper-edit-text", onClick: chooseImage2 }, editText)), CropperPopup());
19391
19332
  };
19392
- AvatarCropper.defaultProps = defaultProps;
19393
19333
  AvatarCropper.displayName = "NutAvatarCropper";
19394
19334
  export {
19395
19335
  ActionSheet,