@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
@@ -2,7 +2,7 @@
2
2
  typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("react"), require("@tarojs/taro"), require("@tarojs/components"), require("react-dom")) : typeof define === "function" && define.amd ? define(["exports", "react", "@tarojs/taro", "@tarojs/components", "react-dom"], factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, factory((global2.nutui = global2.nutui || {}, global2.nutui.react = {}), global2.React, global2.Taro, global2.components, global2.ReactDOM));
3
3
  })(this, function(exports2, React, Taro, components, ReactDOM) {
4
4
  "use strict";/*!
5
- * @nutui/nutui-react-taro v2.6.4 Fri May 10 2024 14:49:22 GMT+0800 (China Standard Time)
5
+ * @nutui/nutui-react-taro v2.6.6 Fri May 24 2024 15:06:49 GMT+0800 (China Standard Time)
6
6
  * (c) 2023 @jdf2e.
7
7
  * Released under the MIT License.
8
8
  */
@@ -213,7 +213,7 @@
213
213
  style: {}
214
214
  };
215
215
  const prefixCls$2 = "nut-button";
216
- const defaultProps$1w = {
216
+ const defaultProps$1v = {
217
217
  ...ComponentDefaults,
218
218
  color: "",
219
219
  type: "default",
@@ -247,7 +247,7 @@
247
247
  onClick,
248
248
  ...rest
249
249
  } = {
250
- ...defaultProps$1w,
250
+ ...defaultProps$1v,
251
251
  ...props
252
252
  };
253
253
  const getStyle = React.useCallback(() => {
@@ -313,7 +313,7 @@
313
313
  );
314
314
  Button.displayName = "NutButton";
315
315
  const CellGroupContext = React.createContext(null);
316
- const defaultProps$1v = {
316
+ const defaultProps$1u = {
317
317
  ...ComponentDefaults,
318
318
  title: "",
319
319
  description: "",
@@ -322,7 +322,7 @@
322
322
  const classPrefix$r = "nut-cell-group";
323
323
  const CellGroup = (props) => {
324
324
  const { children, className, title, description, divider, ...rest } = {
325
- ...defaultProps$1v,
325
+ ...defaultProps$1u,
326
326
  ...props
327
327
  };
328
328
  return /* @__PURE__ */ React.createElement("div", { className: classNames(classPrefix$r, className), ...rest }, title ? /* @__PURE__ */ React.createElement("div", { className: `${classPrefix$r}-title` }, title) : null, description ? /* @__PURE__ */ React.createElement("div", { className: `${classPrefix$r}-description` }, description) : null, /* @__PURE__ */ React.createElement(
@@ -334,7 +334,7 @@
334
334
  ));
335
335
  };
336
336
  CellGroup.displayName = "NutCellGroup";
337
- const defaultProps$1u = {
337
+ const defaultProps$1t = {
338
338
  ...ComponentDefaults,
339
339
  title: null,
340
340
  description: null,
@@ -359,7 +359,7 @@
359
359
  style,
360
360
  ...rest
361
361
  } = {
362
- ...defaultProps$1u,
362
+ ...defaultProps$1t,
363
363
  ...props
364
364
  };
365
365
  const handleClick = (event) => {
@@ -1537,7 +1537,7 @@
1537
1537
  const pxCheck = (value) => {
1538
1538
  return Number.isNaN(Number(value)) ? String(value) : `${value}px`;
1539
1539
  };
1540
- const defaultProps$1t = {
1540
+ const defaultProps$1s = {
1541
1541
  src: "",
1542
1542
  error: true,
1543
1543
  loading: true
@@ -1556,7 +1556,7 @@
1556
1556
  onLoad,
1557
1557
  onError,
1558
1558
  ...rest
1559
- } = { ...defaultProps$1t, ...props };
1559
+ } = { ...defaultProps$1s, ...props };
1560
1560
  const [innerLoading, setInnerLoading] = React.useState(true);
1561
1561
  const [isError, setIsError] = React.useState(false);
1562
1562
  const handleLoad = (e2) => {
@@ -3611,7 +3611,7 @@
3611
3611
  };
3612
3612
  Overlay.displayName = "NutOverlay";
3613
3613
  const DataContext$1 = React.createContext({});
3614
- const defaultProps$1s = {
3614
+ const defaultProps$1r = {
3615
3615
  ...ComponentDefaults,
3616
3616
  span: "24",
3617
3617
  offset: "0",
@@ -3619,7 +3619,7 @@
3619
3619
  };
3620
3620
  const Col = (props) => {
3621
3621
  const { className, style, span, offset, children, onClick } = {
3622
- ...defaultProps$1s,
3622
+ ...defaultProps$1r,
3623
3623
  ...props
3624
3624
  };
3625
3625
  const [colName, setColName] = React.useState("");
@@ -3652,7 +3652,7 @@
3652
3652
  );
3653
3653
  };
3654
3654
  Col.displayName = "NutCol";
3655
- const defaultProps$1r = {
3655
+ const defaultProps$1q = {
3656
3656
  ...ComponentDefaults,
3657
3657
  contentPosition: "center",
3658
3658
  direction: "horizontal"
@@ -3660,7 +3660,7 @@
3660
3660
  const classPrefix$o = `nut-divider`;
3661
3661
  const Divider = (props) => {
3662
3662
  const { children, contentPosition, style, className, direction, ...rest } = {
3663
- ...defaultProps$1r,
3663
+ ...defaultProps$1q,
3664
3664
  ...props
3665
3665
  };
3666
3666
  const classes = direction === "horizontal" ? classNames({
@@ -3681,7 +3681,7 @@
3681
3681
  }
3682
3682
  };
3683
3683
  const GridContext = React.createContext(gridContext);
3684
- const defaultProps$1q = {
3684
+ const defaultProps$1p = {
3685
3685
  text: "",
3686
3686
  columns: 4,
3687
3687
  gap: 0,
@@ -3707,7 +3707,7 @@
3707
3707
  onClick,
3708
3708
  ...rest
3709
3709
  } = {
3710
- ...defaultProps$1q,
3710
+ ...defaultProps$1p,
3711
3711
  ...props
3712
3712
  };
3713
3713
  const classPrefix2 = "nut-grid-item";
@@ -3766,7 +3766,7 @@
3766
3766
  );
3767
3767
  };
3768
3768
  GridItem.displayName = "NutGridItem";
3769
- const defaultProps$1p = {
3769
+ const defaultProps$1o = {
3770
3770
  columns: 4,
3771
3771
  gap: 0,
3772
3772
  center: true,
@@ -3787,7 +3787,7 @@
3787
3787
  className,
3788
3788
  onClick,
3789
3789
  ...rest
3790
- } = { ...defaultProps$1p, ...props };
3790
+ } = { ...defaultProps$1o, ...props };
3791
3791
  const childrenDom = React.Children.toArray(children);
3792
3792
  const classPrefix2 = "nut-grid";
3793
3793
  const rootClass = () => {
@@ -3823,15 +3823,14 @@
3823
3823
  };
3824
3824
  Grid.displayName = "NutGrid";
3825
3825
  Grid.Item = GridItem;
3826
- const defaultProps$1o = {};
3826
+ const defaultProps$1n = {};
3827
3827
  const Layout = (props) => {
3828
- ({ ...defaultProps$1o, ...props });
3828
+ ({ ...defaultProps$1n, ...props });
3829
3829
  return /* @__PURE__ */ React.createElement("div", { className: "nut-layout" }, "Layout");
3830
3830
  };
3831
- Layout.defaultProps = defaultProps$1o;
3832
3831
  Layout.displayName = "NutLayout";
3833
3832
  const classPrefix$n = "nut-row";
3834
- const defaultProps$1n = {
3833
+ const defaultProps$1m = {
3835
3834
  ...ComponentDefaults,
3836
3835
  type: "",
3837
3836
  justify: "start",
@@ -3851,7 +3850,7 @@
3851
3850
  gutter,
3852
3851
  onClick
3853
3852
  } = {
3854
- ...defaultProps$1n,
3853
+ ...defaultProps$1m,
3855
3854
  ...props
3856
3855
  };
3857
3856
  const getClass = (prefix, type22) => {
@@ -3885,12 +3884,12 @@
3885
3884
  };
3886
3885
  Row.displayName = "NutRow";
3887
3886
  const prefixCls$1 = "nut-space";
3888
- const defaultProps$1m = {
3887
+ const defaultProps$1l = {
3889
3888
  direction: "horizontal"
3890
3889
  };
3891
3890
  const Space = (props) => {
3892
3891
  const { className, style, children, wrap, align, direction, justify } = {
3893
- ...defaultProps$1m,
3892
+ ...defaultProps$1l,
3894
3893
  ...props
3895
3894
  };
3896
3895
  const cls = classNames(
@@ -3982,7 +3981,7 @@
3982
3981
  }
3983
3982
  return Promise.resolve(makeRect(0, 0));
3984
3983
  };
3985
- const defaultProps$1l = {
3984
+ const defaultProps$1k = {
3986
3985
  ...ComponentDefaults,
3987
3986
  position: "top",
3988
3987
  zIndex: 900
@@ -3999,7 +3998,7 @@
3999
3998
  className,
4000
3999
  onChange,
4001
4000
  ...rest
4002
- } = { ...defaultProps$1l, ...props };
4001
+ } = { ...defaultProps$1k, ...props };
4003
4002
  const stickyRef = React.useRef(null);
4004
4003
  const rootRef = React.useRef(null);
4005
4004
  const [rootRect, setRootRect] = React.useState({});
@@ -4119,7 +4118,7 @@
4119
4118
  );
4120
4119
  };
4121
4120
  SafeArea.displayName = "NutSafeArea";
4122
- const defaultProps$1k = {
4121
+ const defaultProps$1j = {
4123
4122
  ...ComponentDefaults,
4124
4123
  threshold: 200,
4125
4124
  zIndex: 900,
@@ -4128,7 +4127,7 @@
4128
4127
  const BackTop = (props) => {
4129
4128
  const rtl = useRtl();
4130
4129
  const { children, threshold, zIndex, className, duration, style, onClick } = {
4131
- ...defaultProps$1k,
4130
+ ...defaultProps$1j,
4132
4131
  ...props
4133
4132
  };
4134
4133
  const classPrefix2 = "nut-backtop";
@@ -4172,7 +4171,7 @@
4172
4171
  };
4173
4172
  BackTop.displayName = "NutBackTop";
4174
4173
  const elevatorContext = React.createContext({});
4175
- const defaultProps$1j = {
4174
+ const defaultProps$1i = {
4176
4175
  ...ComponentDefaults,
4177
4176
  height: "200px",
4178
4177
  floorKey: "title",
@@ -4199,7 +4198,7 @@
4199
4198
  children,
4200
4199
  ...rest
4201
4200
  } = {
4202
- ...defaultProps$1j,
4201
+ ...defaultProps$1i,
4203
4202
  ...props
4204
4203
  };
4205
4204
  const classPrefix2 = "nut-elevator";
@@ -4416,7 +4415,7 @@
4416
4415
  };
4417
4416
  Elevator.displayName = "NutElevator";
4418
4417
  Elevator.Context = elevatorContext;
4419
- const defaultProps$1i = {
4418
+ const defaultProps$1h = {
4420
4419
  ...ComponentDefaults,
4421
4420
  activeText: "",
4422
4421
  inactiveText: "",
@@ -4444,7 +4443,7 @@
4444
4443
  content,
4445
4444
  ...rest
4446
4445
  } = {
4447
- ...defaultProps$1i,
4446
+ ...defaultProps$1h,
4448
4447
  ...props
4449
4448
  };
4450
4449
  const classPrefix2 = "nut-fixednav";
@@ -4497,7 +4496,7 @@
4497
4496
  );
4498
4497
  };
4499
4498
  FixedNav.displayName = "NutFixedNav";
4500
- const defaultProps$1h = {
4499
+ const defaultProps$1g = {
4501
4500
  ...ComponentDefaults,
4502
4501
  left: "",
4503
4502
  right: "",
@@ -4522,7 +4521,7 @@
4522
4521
  zIndex,
4523
4522
  onBackClick
4524
4523
  } = {
4525
- ...defaultProps$1h,
4524
+ ...defaultProps$1g,
4526
4525
  ...props
4527
4526
  };
4528
4527
  const classPrefix2 = "nut-navbar";
@@ -4601,7 +4600,7 @@
4601
4600
  return /* @__PURE__ */ React.createElement(React.Fragment, null, fixed && placeholder ? /* @__PURE__ */ React.createElement(components.View, { className: `${classPrefix2}-placeholder` }, renderWrapper()) : renderWrapper());
4602
4601
  };
4603
4602
  NavBar.displayName = "NutNavBar";
4604
- const defaultProps$1g = {
4603
+ const defaultProps$1f = {
4605
4604
  ...ComponentDefaults,
4606
4605
  position: "center",
4607
4606
  transition: "",
@@ -4654,7 +4653,7 @@
4654
4653
  afterShow,
4655
4654
  afterClose,
4656
4655
  onClick
4657
- } = { ...defaultProps$1g, ...props };
4656
+ } = { ...defaultProps$1f, ...props };
4658
4657
  let innerIndex = zIndex || _zIndex;
4659
4658
  const [index, setIndex] = React.useState(innerIndex);
4660
4659
  const [innerVisible, setInnerVisible] = React.useState(visible);
@@ -4794,10 +4793,9 @@
4794
4793
  }, [position, transition]);
4795
4794
  return /* @__PURE__ */ React.createElement(React.Fragment, null, renderToContainer(portal, renderNode()));
4796
4795
  };
4797
- Popup.defaultProps = defaultProps$1g;
4798
4796
  Popup.displayName = "NutPopup";
4799
4797
  const OffsetContext = React.createContext(20);
4800
- const defaultProps$1f = {
4798
+ const defaultProps$1e = {
4801
4799
  ...ComponentDefaults,
4802
4800
  position: "left",
4803
4801
  width: "80%"
@@ -4815,7 +4813,7 @@
4815
4813
  indent,
4816
4814
  ...rest
4817
4815
  } = {
4818
- ...defaultProps$1f,
4816
+ ...defaultProps$1e,
4819
4817
  ...props
4820
4818
  };
4821
4819
  const innerIndent = indent ? Number(indent) : 20;
@@ -4873,13 +4871,13 @@
4873
4871
  title
4874
4872
  );
4875
4873
  };
4876
- const defaultProps$1e = {
4874
+ const defaultProps$1d = {
4877
4875
  open: true
4878
4876
  };
4879
4877
  const SubSideNavBar = (props) => {
4880
4878
  const classPrefix2 = "nut-subsidenavbar";
4881
4879
  const { title, value, children, onClick, open: open2, ...rest } = {
4882
- ...defaultProps$1e,
4880
+ ...defaultProps$1d,
4883
4881
  ...props
4884
4882
  };
4885
4883
  const [subShow, setSubShow] = React.useState(open2);
@@ -4957,7 +4955,7 @@
4957
4955
  );
4958
4956
  return [stateRef.current, setState];
4959
4957
  }
4960
- const defaultProps$1d = {
4958
+ const defaultProps$1c = {
4961
4959
  ...ComponentDefaults,
4962
4960
  value: "",
4963
4961
  dot: false,
@@ -4982,7 +4980,7 @@
4982
4980
  color,
4983
4981
  fill
4984
4982
  } = {
4985
- ...defaultProps$1d,
4983
+ ...defaultProps$1c,
4986
4984
  ...props
4987
4985
  };
4988
4986
  const classPrefix2 = "nut-badge";
@@ -5038,10 +5036,9 @@
5038
5036
  };
5039
5037
  return /* @__PURE__ */ React.createElement("div", { className: classes, style }, isIcon() && /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-icon` }, value), children, !isIcon() && /* @__PURE__ */ React.createElement("div", { className: contentClasses, style: getStyle() }, content()));
5040
5038
  };
5041
- Badge.defaultProps = defaultProps$1d;
5042
5039
  Badge.displayName = "NutBadge";
5043
5040
  const TabbarContext = React.createContext(null);
5044
- const defaultProps$1c = {
5041
+ const defaultProps$1b = {
5045
5042
  ...ComponentDefaults,
5046
5043
  title: "",
5047
5044
  icon: null,
@@ -5067,7 +5064,7 @@
5067
5064
  index,
5068
5065
  ...rest
5069
5066
  } = {
5070
- ...defaultProps$1c,
5067
+ ...defaultProps$1b,
5071
5068
  ...props
5072
5069
  };
5073
5070
  const active = index === (ctx == null ? void 0 : ctx.selectIndex);
@@ -5105,7 +5102,7 @@
5105
5102
  icon ? /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Badge, { ...badgeProps }, /* @__PURE__ */ React.createElement("div", { className: boxPrefix }, icon)), /* @__PURE__ */ React.createElement("div", { className: titleClass }, title)) : /* @__PURE__ */ React.createElement(Badge, { ...badgeProps }, /* @__PURE__ */ React.createElement("div", { className: titleClass }, title))
5106
5103
  );
5107
5104
  };
5108
- const defaultProps$1b = {
5105
+ const defaultProps$1a = {
5109
5106
  ...ComponentDefaults,
5110
5107
  defaultValue: 0,
5111
5108
  fixed: false,
@@ -5128,7 +5125,7 @@
5128
5125
  style,
5129
5126
  onSwitch
5130
5127
  } = {
5131
- ...defaultProps$1b,
5128
+ ...defaultProps$1a,
5132
5129
  ...props
5133
5130
  };
5134
5131
  const classPrefix2 = "nut-tabbar";
@@ -5171,14 +5168,14 @@
5171
5168
  };
5172
5169
  Tabbar.displayName = "NutTabbar";
5173
5170
  Tabbar.Item = TabbarItem;
5174
- const defaultProps$1a = {
5171
+ const defaultProps$19 = {
5175
5172
  title: "",
5176
5173
  value: "",
5177
5174
  disabled: false
5178
5175
  };
5179
5176
  const TabPane = (props) => {
5180
5177
  const { children, autoHeightClassName, className, disabled } = {
5181
- ...defaultProps$1a,
5178
+ ...defaultProps$19,
5182
5179
  ...props
5183
5180
  };
5184
5181
  const classPrefix2 = "nut-tabpane";
@@ -5219,7 +5216,7 @@
5219
5216
  const idRef = React.useRef(uniqueId());
5220
5217
  return idRef.current;
5221
5218
  }
5222
- const defaultProps$19 = {
5219
+ const defaultProps$18 = {
5223
5220
  ...ComponentDefaults,
5224
5221
  tabStyle: {},
5225
5222
  activeColor: "",
@@ -5249,7 +5246,7 @@
5249
5246
  defaultValue: outerDefaultValue,
5250
5247
  ...rest
5251
5248
  } = {
5252
- ...defaultProps$19,
5249
+ ...defaultProps$18,
5253
5250
  ...props
5254
5251
  };
5255
5252
  const uuid = useUuid();
@@ -5473,7 +5470,7 @@
5473
5470
  };
5474
5471
  Tabs.displayName = "NutTabs";
5475
5472
  Tabs.TabPane = TabPane;
5476
- const defaultProps$18 = {
5473
+ const defaultProps$17 = {
5477
5474
  type: "custom",
5478
5475
  existList: [],
5479
5476
  defaultIcon: null,
@@ -5492,7 +5489,7 @@
5492
5489
  onSelect,
5493
5490
  onSwitch,
5494
5491
  ...rest
5495
- } = { ...defaultProps$18, ...props };
5492
+ } = { ...defaultProps$17, ...props };
5496
5493
  const classPrefix2 = "nut-address";
5497
5494
  const selectedExist = (item) => {
5498
5495
  existList.forEach((list, index) => {
@@ -5654,7 +5651,7 @@
5654
5651
  return pathNodes;
5655
5652
  }
5656
5653
  }
5657
- const defaultProps$17 = {
5654
+ const defaultProps$16 = {
5658
5655
  ...ComponentDefaults,
5659
5656
  activeColor: "",
5660
5657
  activeIcon: "checklist",
@@ -5693,11 +5690,13 @@
5693
5690
  closeIconPosition,
5694
5691
  closeIcon,
5695
5692
  lazy,
5693
+ title,
5694
+ left: left2,
5696
5695
  onLoad,
5697
5696
  onClose,
5698
5697
  onChange,
5699
5698
  onPathChange
5700
- } = { ...defaultProps$17, ...props };
5699
+ } = { ...defaultProps$16, ...props };
5701
5700
  const [tabvalue, setTabvalue] = React.useState("c1");
5702
5701
  const [optionsData, setOptionsData] = React.useState([]);
5703
5702
  const isLazy = () => state.configs.lazy && Boolean(state.configs.onLoad);
@@ -5707,7 +5706,7 @@
5707
5706
  finalValue: defaultValue
5708
5707
  });
5709
5708
  const [innerVisible, setInnerVisible] = usePropsValue({
5710
- value: props.visible,
5709
+ value: visible,
5711
5710
  defaultValue: void 0,
5712
5711
  finalValue: false
5713
5712
  });
@@ -5995,8 +5994,8 @@
5995
5994
  closeIcon,
5996
5995
  closeable,
5997
5996
  closeIconPosition,
5998
- title: popup && props.title,
5999
- left: props.left,
5997
+ title: popup && title,
5998
+ left: left2,
6000
5999
  onOverlayClick: closePopup,
6001
6000
  onCloseIconClick: closePopup
6002
6001
  },
@@ -6004,9 +6003,8 @@
6004
6003
  ) : renderTabs());
6005
6004
  };
6006
6005
  const Cascader = React.forwardRef(InternalCascader);
6007
- Cascader.defaultProps = defaultProps$17;
6008
6006
  Cascader.displayName = "NutCascader";
6009
- const defaultProps$16 = {
6007
+ const defaultProps$15 = {
6010
6008
  ...ComponentDefaults,
6011
6009
  visible: false,
6012
6010
  type: "custom",
@@ -6033,7 +6031,7 @@
6033
6031
  onPathChange,
6034
6032
  ...rest
6035
6033
  } = {
6036
- ...defaultProps$16,
6034
+ ...defaultProps$15,
6037
6035
  ...props
6038
6036
  };
6039
6037
  return /* @__PURE__ */ React.createElement(React.Fragment, null, type2 === "custom" && /* @__PURE__ */ React.createElement(
@@ -6058,7 +6056,7 @@
6058
6056
  }
6059
6057
  ));
6060
6058
  };
6061
- const defaultProps$15 = {
6059
+ const defaultProps$14 = {
6062
6060
  ...ComponentDefaults,
6063
6061
  defaultValue: [],
6064
6062
  type: "custom",
@@ -6100,7 +6098,7 @@
6100
6098
  onSwitch,
6101
6099
  ...rest
6102
6100
  } = {
6103
- ...defaultProps$15,
6101
+ ...defaultProps$14,
6104
6102
  ...props
6105
6103
  };
6106
6104
  const classPrefix2 = "nut-address";
@@ -6192,7 +6190,6 @@
6192
6190
  ));
6193
6191
  };
6194
6192
  const Address = React.forwardRef(InternalAddress);
6195
- Address.defaultProps = defaultProps$15;
6196
6193
  Address.displayName = "NutAddress";
6197
6194
  const Utils = {
6198
6195
  /**
@@ -6442,7 +6439,7 @@
6442
6439
  const isStartAndEnd = (days) => {
6443
6440
  return days.length >= 2 && Utils.isEqual(days[0], days[1]);
6444
6441
  };
6445
- const defaultProps$14 = {
6442
+ const defaultProps$13 = {
6446
6443
  ...ComponentDefaults,
6447
6444
  type: "single",
6448
6445
  autoBackfill: false,
@@ -6498,11 +6495,12 @@
6498
6495
  renderDay,
6499
6496
  renderDayTop,
6500
6497
  renderDayBottom,
6498
+ value,
6501
6499
  onConfirm,
6502
6500
  onUpdate,
6503
6501
  onDayClick,
6504
6502
  onPageChange
6505
- } = { ...defaultProps$14, ...props };
6503
+ } = { ...defaultProps$13, ...props };
6506
6504
  const weekdays = locale.calendaritem.weekdays;
6507
6505
  const weeks = [
6508
6506
  ...weekdays.slice(firstDayOfWeek, 7),
@@ -6536,7 +6534,7 @@
6536
6534
  return void 0;
6537
6535
  };
6538
6536
  const [currentDate, setCurrentDate] = usePropsValue({
6539
- value: props.value,
6537
+ value,
6540
6538
  defaultValue: resetDefaultValue(),
6541
6539
  finalValue: [],
6542
6540
  onChange: (val) => {
@@ -6742,7 +6740,7 @@
6742
6740
  monthsData[current.lastCurrent],
6743
6741
  true
6744
6742
  );
6745
- } else if (props.type === "week") {
6743
+ } else if (type2 === "week") {
6746
6744
  chooseDay(
6747
6745
  { day: defaultData[2], type: "curr" },
6748
6746
  monthsData[current.current],
@@ -7055,9 +7053,8 @@
7055
7053
  };
7056
7054
  return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("div", { className: classes, style }, renderHeader(), renderContent(), popup && !autoBackfill ? renderFooter() : ""));
7057
7055
  });
7058
- CalendarItem.defaultProps = defaultProps$14;
7059
7056
  CalendarItem.displayName = "NutCalendarItem";
7060
- const defaultProps$13 = {
7057
+ const defaultProps$12 = {
7061
7058
  ...ComponentDefaults,
7062
7059
  type: "single",
7063
7060
  autoBackfill: false,
@@ -7120,7 +7117,7 @@
7120
7117
  onConfirm,
7121
7118
  onDayClick,
7122
7119
  onPageChange
7123
- } = { ...defaultProps$13, ...props };
7120
+ } = { ...defaultProps$12, ...props };
7124
7121
  const calendarRef = React.useRef(null);
7125
7122
  const close2 = () => {
7126
7123
  onClose && onClose();
@@ -7195,7 +7192,6 @@
7195
7192
  renderItem()
7196
7193
  ) : renderItem());
7197
7194
  });
7198
- Calendar.defaultProps = defaultProps$13;
7199
7195
  Calendar.displayName = "NutCalendar";
7200
7196
  const left = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxOCIgaGVpZ2h0PSIxOCIgdmlld0JveD0iMCAwIDE4IDE4Ij48cGF0aCBkPSJNNi42MDUgOS40OWEuNzcxLjc3MSAwIDAgMSAwLS45OGwzLjYtNC4zNzJhLjc3MS43NzEgMCAwIDEgMS4xOS45ODFMOC4yIDlsMy4xOTcgMy44ODFhLjc3MS43NzEgMCAxIDEtMS4xOTEuOThsLTMuNi00LjM3eiIvPjwvc3ZnPg==";
7201
7197
  const right = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxOCIgaGVpZ2h0PSIxOCIgdmlld0JveD0iMCAwIDE4IDE4Ij48cGF0aCBkPSJNMTEuMzk2IDkuNDlhLjc3MS43NzEgMCAwIDAgMC0uOThsLTMuNi00LjM3MmEuNzcxLjc3MSAwIDAgMC0xLjE5MS45ODFMOS44IDlsLTMuMTk2IDMuODgxYS43NzEuNzcxIDAgMCAwIDEuMTkuOThsMy42LTQuMzd6Ii8+PC9zdmc+";
@@ -7270,7 +7266,7 @@
7270
7266
  )
7271
7267
  ];
7272
7268
  };
7273
- const defaultProps$12 = {
7269
+ const defaultProps$11 = {
7274
7270
  ...ComponentDefaults,
7275
7271
  type: "single",
7276
7272
  firstDayOfWeek: 0
@@ -7294,7 +7290,7 @@
7294
7290
  onDayClick,
7295
7291
  onPageChange,
7296
7292
  onChange
7297
- } = { ...defaultProps$12, ...props };
7293
+ } = { ...defaultProps$11, ...props };
7298
7294
  const [month, setMonth] = React.useState(() => {
7299
7295
  let date2 = new Date(Date.now());
7300
7296
  const val = value || defaultValue;
@@ -7596,11 +7592,10 @@
7596
7592
  };
7597
7593
  return days.length > 0 ? /* @__PURE__ */ React.createElement("div", { className: classNames(prefixCls, className), style }, renderHeader(), renderContent()) : null;
7598
7594
  });
7599
- CalendarCard.defaultProps = defaultProps$12;
7600
7595
  CalendarCard.displayName = "NutCalendarCard";
7601
7596
  const CheckboxGroupContext = React.createContext(null);
7602
7597
  const Context$1 = CheckboxGroupContext;
7603
- const defaultProps$11 = {
7598
+ const defaultProps$10 = {
7604
7599
  max: void 0,
7605
7600
  min: void 0,
7606
7601
  list: false,
@@ -7630,7 +7625,7 @@
7630
7625
  direction,
7631
7626
  options,
7632
7627
  ...rest
7633
- } = { ...defaultProps$11, ...props };
7628
+ } = { ...defaultProps$10, ...props };
7634
7629
  React.useImperativeHandle(ref, () => ({
7635
7630
  toggle(state) {
7636
7631
  if (state === false) {
@@ -7722,9 +7717,9 @@
7722
7717
  );
7723
7718
  }
7724
7719
  );
7725
- CheckboxGroup.defaultProps = defaultProps$11;
7720
+ CheckboxGroup.defaultProps = defaultProps$10;
7726
7721
  CheckboxGroup.displayName = "NutCheckboxGroup";
7727
- const defaultProps$10 = {
7722
+ const defaultProps$$ = {
7728
7723
  ...ComponentDefaults,
7729
7724
  disabled: false,
7730
7725
  shape: "round",
@@ -7738,7 +7733,7 @@
7738
7733
  const classPrefix$i = "nut-checkbox";
7739
7734
  const Checkbox = (props) => {
7740
7735
  const { children } = {
7741
- ...defaultProps$10,
7736
+ ...defaultProps$$,
7742
7737
  ...props
7743
7738
  };
7744
7739
  const {
@@ -7759,8 +7754,8 @@
7759
7754
  let { labelPosition, ...rest } = others;
7760
7755
  const ctx = React.useContext(Context$1);
7761
7756
  let [innerChecked, setChecked] = usePropsValue({
7762
- value: props.checked,
7763
- defaultValue: props.defaultChecked,
7757
+ value: checked,
7758
+ defaultValue: defaultChecked,
7764
7759
  finalValue: defaultChecked,
7765
7760
  onChange
7766
7761
  });
@@ -7882,7 +7877,6 @@
7882
7877
  renderCheckboxItem()
7883
7878
  );
7884
7879
  };
7885
- Checkbox.defaultProps = defaultProps$10;
7886
7880
  Checkbox.displayName = "NutCheckBox";
7887
7881
  Checkbox.Group = CheckboxGroup;
7888
7882
  const InternalPickerPanel = (props, ref) => {
@@ -8128,7 +8122,7 @@
8128
8122
  }, []);
8129
8123
  return [refs.current, setRefs, reset];
8130
8124
  }
8131
- const defaultProps$$ = {
8125
+ const defaultProps$_ = {
8132
8126
  ...ComponentDefaults,
8133
8127
  visible: false,
8134
8128
  title: "",
@@ -8159,7 +8153,7 @@
8159
8153
  afterClose,
8160
8154
  onChange,
8161
8155
  ...rest
8162
- } = { ...defaultProps$$, ...props };
8156
+ } = { ...defaultProps$_, ...props };
8163
8157
  const classPrefix2 = "nut-picker";
8164
8158
  const classes = classNames(classPrefix2, className);
8165
8159
  const [selectedValue, setSelectedValue] = usePropsValue({
@@ -8474,7 +8468,7 @@
8474
8468
  return str;
8475
8469
  };
8476
8470
  const currentYear = (/* @__PURE__ */ new Date()).getFullYear();
8477
- const defaultProps$_ = {
8471
+ const defaultProps$Z = {
8478
8472
  ...ComponentDefaults,
8479
8473
  visible: false,
8480
8474
  title: "",
@@ -8507,7 +8501,7 @@
8507
8501
  style,
8508
8502
  ...rest
8509
8503
  } = {
8510
- ...defaultProps$_,
8504
+ ...defaultProps$Z,
8511
8505
  ...props
8512
8506
  };
8513
8507
  const { locale } = useConfig$1();
@@ -8798,7 +8792,7 @@
8798
8792
  )
8799
8793
  );
8800
8794
  };
8801
- DatePicker.defaultProps = defaultProps$_;
8795
+ DatePicker.defaultProps = defaultProps$Z;
8802
8796
  DatePicker.displayName = "NutDatePicker";
8803
8797
  const Context = React.createContext({});
8804
8798
  function _extends() {
@@ -10041,7 +10035,7 @@
10041
10035
  }
10042
10036
  return [formRef.current];
10043
10037
  };
10044
- const defaultProps$Z = {
10038
+ const defaultProps$Y = {
10045
10039
  ...ComponentDefaults,
10046
10040
  labelPosition: "right",
10047
10041
  starPosition: "left",
@@ -10072,7 +10066,7 @@
10072
10066
  starPosition,
10073
10067
  form
10074
10068
  } = {
10075
- ...defaultProps$Z,
10069
+ ...defaultProps$Y,
10076
10070
  ...props
10077
10071
  };
10078
10072
  let formInstance;
@@ -10118,7 +10112,6 @@
10118
10112
  );
10119
10113
  }
10120
10114
  );
10121
- Form.defaultProps = defaultProps$Z;
10122
10115
  Form.displayName = "NutForm";
10123
10116
  function isForwardRefComponent(component) {
10124
10117
  return component.type && component.type.$$typeof && // eslint-disable-next-line react/display-name
@@ -10129,7 +10122,7 @@
10129
10122
  }
10130
10123
  ).$$typeof === component.type.$$typeof;
10131
10124
  }
10132
- const defaultProps$Y = {
10125
+ const defaultProps$X = {
10133
10126
  ...ComponentDefaults,
10134
10127
  required: false,
10135
10128
  name: "",
@@ -10225,7 +10218,7 @@
10225
10218
  style,
10226
10219
  errorMessageAlign
10227
10220
  } = {
10228
- ...defaultProps$Y,
10221
+ ...defaultProps$X,
10229
10222
  ...this.props
10230
10223
  };
10231
10224
  const requiredInRules = rules2 == null ? void 0 : rules2.some((rule) => rule.required);
@@ -10260,6 +10253,13 @@
10260
10253
  };
10261
10254
  }
10262
10255
  componentDidMount() {
10256
+ const { store = {}, setInitialValues } = this.context.getInternal(SECRET);
10257
+ if (this.props.initialValue && this.props.name && !Object.keys(store).includes(this.props.name)) {
10258
+ setInitialValues(
10259
+ { ...store, [this.props.name]: this.props.initialValue },
10260
+ true
10261
+ );
10262
+ }
10263
10263
  const { registerField, registerUpdate } = this.context.getInternal(SECRET);
10264
10264
  this.cancelRegister = registerField(this);
10265
10265
  this.eventOff = registerUpdate(this, this.props.shouldUpdate);
@@ -10287,7 +10287,7 @@
10287
10287
  return /* @__PURE__ */ React.createElement(React.Fragment, { key: this.state.resetCount }, this.props.noStyle ? returnChildNode : this.renderLayout(returnChildNode));
10288
10288
  }
10289
10289
  };
10290
- _FormItem.defaultProps = defaultProps$Y;
10290
+ _FormItem.defaultProps = defaultProps$X;
10291
10291
  _FormItem.contextType = Context;
10292
10292
  let FormItem = _FormItem;
10293
10293
  const InnerForm = Form;
@@ -10317,11 +10317,11 @@
10317
10317
  const regExp = allowDot ? /[^-0-9.]/g : /[^-0-9]/g;
10318
10318
  return value.replace(regExp, "");
10319
10319
  }
10320
- const defaultProps$X = {
10320
+ const defaultProps$W = {
10321
10321
  ...ComponentDefaults,
10322
10322
  type: "text",
10323
10323
  name: "",
10324
- placeholder: "",
10324
+ placeholder: void 0,
10325
10325
  confirmType: "done",
10326
10326
  align: "left",
10327
10327
  required: false,
@@ -10362,12 +10362,12 @@
10362
10362
  value: _value,
10363
10363
  ...rest
10364
10364
  } = {
10365
- ...defaultProps$X,
10365
+ ...defaultProps$W,
10366
10366
  ...props
10367
10367
  };
10368
10368
  const [value, setValue] = usePropsValue({
10369
- value: props.value,
10370
- defaultValue: props.defaultValue,
10369
+ value: _value,
10370
+ defaultValue,
10371
10371
  finalValue: "",
10372
10372
  onChange
10373
10373
  });
@@ -10431,16 +10431,11 @@
10431
10431
  updateValue(value2, "onChange");
10432
10432
  };
10433
10433
  const handleBlur = (event) => {
10434
- if (Taro.getEnv() === "WEB") {
10435
- const val = event.target.value;
10436
- updateValue(val, "onBlur");
10437
- setTimeout(() => {
10438
- setActive(false);
10439
- }, 50);
10440
- } else {
10441
- updateValue(value, "onBlur");
10434
+ const val = Taro.getEnv() === "WEB" ? event.target.value : value;
10435
+ updateValue(val, "onBlur");
10436
+ setTimeout(() => {
10442
10437
  setActive(false);
10443
- }
10438
+ }, 200);
10444
10439
  };
10445
10440
  const inputType = (type22) => {
10446
10441
  if (Taro.getEnv() === Taro.ENV_TYPE.WEB) {
@@ -10484,7 +10479,7 @@
10484
10479
  type: inputType(type2),
10485
10480
  password: type2 === "password",
10486
10481
  maxlength: maxLength,
10487
- placeholder: placeholder || locale.placeholder,
10482
+ placeholder: placeholder === void 0 ? locale.placeholder : placeholder,
10488
10483
  disabled: disabled || readOnly,
10489
10484
  value,
10490
10485
  focus: autoFocus,
@@ -10501,7 +10496,8 @@
10501
10496
  {
10502
10497
  style: {
10503
10498
  display: clearable && !readOnly && active && value.length > 0 ? "flex" : "none",
10504
- alignItems: "center"
10499
+ alignItems: "center",
10500
+ cursor: "pointer"
10505
10501
  },
10506
10502
  onClick: (e2) => {
10507
10503
  e2.stopPropagation();
@@ -10516,9 +10512,8 @@
10516
10512
  );
10517
10513
  }
10518
10514
  );
10519
- Input.defaultProps = defaultProps$X;
10520
10515
  Input.displayName = "NutInput";
10521
- const defaultProps$W = {
10516
+ const defaultProps$V = {
10522
10517
  ...ComponentDefaults,
10523
10518
  disabled: false,
10524
10519
  readOnly: false,
@@ -10556,7 +10551,7 @@
10556
10551
  onChange,
10557
10552
  ...restProps
10558
10553
  } = {
10559
- ...defaultProps$W,
10554
+ ...defaultProps$V,
10560
10555
  ...props
10561
10556
  };
10562
10557
  const classes = classNames(classPrefix$h, className, {
@@ -10716,9 +10711,8 @@
10716
10711
  }
10717
10712
  )));
10718
10713
  };
10719
- InputNumber.defaultProps = defaultProps$W;
10720
10714
  InputNumber.displayName = "NutInputNumber";
10721
- const defaultProps$V = {
10715
+ const defaultProps$U = {
10722
10716
  ...ComponentDefaults,
10723
10717
  columns: 1,
10724
10718
  direction: "down",
@@ -10749,7 +10743,7 @@
10749
10743
  parent,
10750
10744
  index
10751
10745
  } = {
10752
- ...defaultProps$V,
10746
+ ...defaultProps$U,
10753
10747
  ...props
10754
10748
  };
10755
10749
  const [showPopup, setShowPopup] = React.useState(show2);
@@ -10910,7 +10904,7 @@
10910
10904
  g$3,
10911
10905
  {
10912
10906
  color: activeColor,
10913
- size: 10,
10907
+ size: 16,
10914
10908
  className: getIconCName(item.value, value)
10915
10909
  }
10916
10910
  )) : null,
@@ -10929,9 +10923,8 @@
10929
10923
  )
10930
10924
  ));
10931
10925
  });
10932
- MenuItem.defaultProps = defaultProps$V;
10933
10926
  MenuItem.displayName = "NutMenuItem";
10934
- const defaultProps$U = {
10927
+ const defaultProps$T = {
10935
10928
  ...ComponentDefaults,
10936
10929
  activeColor: "",
10937
10930
  closeOnOverlayClick: true,
@@ -10958,7 +10951,7 @@
10958
10951
  onOpen,
10959
10952
  ...rest
10960
10953
  } = {
10961
- ...defaultProps$U,
10954
+ ...defaultProps$T,
10962
10955
  ...props
10963
10956
  };
10964
10957
  const menuRef = React.useRef(null);
@@ -11083,19 +11076,8 @@
11083
11076
  cloneChildren()
11084
11077
  );
11085
11078
  };
11086
- Menu.defaultProps = defaultProps$U;
11087
11079
  Menu.displayName = "NutMenu";
11088
11080
  Menu.Item = MenuItem;
11089
- const defaultProps$T = {
11090
- ...ComponentDefaults,
11091
- visible: false,
11092
- rightActions: "",
11093
- type: "default",
11094
- custom: [],
11095
- random: false,
11096
- onClose: () => {
11097
- }
11098
- };
11099
11081
  const NumberKeyboard = (props) => {
11100
11082
  const { locale } = useConfig$1();
11101
11083
  const {
@@ -11234,7 +11216,6 @@
11234
11216
  ))))
11235
11217
  );
11236
11218
  };
11237
- NumberKeyboard.defaultProps = defaultProps$T;
11238
11219
  NumberKeyboard.displayName = "NutNumberKeyboard";
11239
11220
  const RadioContext = React.createContext(null);
11240
11221
  const defaultProps$S = {
@@ -11759,7 +11740,6 @@
11759
11740
  renderButton()
11760
11741
  ))), maxDescription !== null && /* @__PURE__ */ React.createElement("div", { className: "max" }, maxDescription || max));
11761
11742
  };
11762
- Range.defaultProps = defaultProps$Q;
11763
11743
  Range.displayName = "NutRange";
11764
11744
  const defaultProps$P = {
11765
11745
  ...ComponentDefaults,
@@ -11946,7 +11926,6 @@
11946
11926
  })
11947
11927
  );
11948
11928
  };
11949
- Rate.defaultProps = defaultProps$P;
11950
11929
  Rate.displayName = "NutRate";
11951
11930
  const defaultProps$O = {
11952
11931
  ...ComponentDefaults,
@@ -11967,8 +11946,9 @@
11967
11946
  const classPrefix2 = "nut-searchbar";
11968
11947
  const { locale } = useConfig$1();
11969
11948
  const searchRef = React.useRef(null);
11970
- const [value, setValue] = React.useState(() => props.value);
11971
11949
  const {
11950
+ value: outerValue,
11951
+ style,
11972
11952
  placeholder,
11973
11953
  shape,
11974
11954
  className,
@@ -11992,6 +11972,7 @@
11992
11972
  ...defaultProps$O,
11993
11973
  ...props
11994
11974
  };
11975
+ const [value, setValue] = React.useState(() => outerValue);
11995
11976
  const forceFocus = () => {
11996
11977
  const searchSelf = searchRef.current;
11997
11978
  searchSelf && searchSelf.focus();
@@ -12014,8 +11995,8 @@
12014
11995
  onBlur && (onBlur == null ? void 0 : onBlur(value2, event));
12015
11996
  };
12016
11997
  React.useEffect(() => {
12017
- setValue(props.value || "");
12018
- }, [props.value]);
11998
+ setValue(outerValue || "");
11999
+ }, [outerValue]);
12019
12000
  React.useEffect(() => {
12020
12001
  autoFocus && forceFocus();
12021
12002
  }, [autoFocus]);
@@ -12025,7 +12006,7 @@
12025
12006
  {
12026
12007
  className: `${classPrefix2}-input ${clearable ? `${classPrefix2}-input-clear` : ""}`,
12027
12008
  ref: searchRef,
12028
- style: { ...props.style },
12009
+ style,
12029
12010
  value: value || "",
12030
12011
  placeholder: placeholder || locale.placeholder,
12031
12012
  disabled,
@@ -12092,7 +12073,7 @@
12092
12073
  "div",
12093
12074
  {
12094
12075
  className: `${classPrefix2} ${disabled ? `${classPrefix2}-disabled` : ""} ${className || ""}`,
12095
- style: { ...props.style }
12076
+ style
12096
12077
  },
12097
12078
  renderLeft(),
12098
12079
  /* @__PURE__ */ React.createElement(
@@ -12108,7 +12089,6 @@
12108
12089
  renderRight()
12109
12090
  );
12110
12091
  };
12111
- SearchBar.defaultProps = defaultProps$O;
12112
12092
  SearchBar.displayName = "NutSearchBar";
12113
12093
  const defaultProps$N = {
12114
12094
  ...ComponentDefaults,
@@ -12126,7 +12106,7 @@
12126
12106
  title,
12127
12107
  description,
12128
12108
  tips,
12129
- visible: deleteVisible,
12109
+ visible: outerVisible,
12130
12110
  value,
12131
12111
  error,
12132
12112
  hideFooter,
@@ -12158,7 +12138,7 @@
12158
12138
  return val.slice(0, comLen);
12159
12139
  };
12160
12140
  const [visible, setVisible] = usePropsValue({
12161
- value: props.visible,
12141
+ value: outerVisible,
12162
12142
  defaultValue: false,
12163
12143
  finalValue: false
12164
12144
  });
@@ -12276,7 +12256,7 @@
12276
12256
  }).exec((res) => {
12277
12257
  Taro.canvasToTempFilePath({
12278
12258
  canvas: res[0].node,
12279
- fileType: props.type,
12259
+ fileType: type2,
12280
12260
  canvasId: `${canvasId}`,
12281
12261
  success: (res2) => {
12282
12262
  onConfirm && onConfirm(res2.tempFilePath);
@@ -12375,7 +12355,6 @@
12375
12355
  const Signature = React.forwardRef(
12376
12356
  InternalSignature
12377
12357
  );
12378
- Signature.defaultProps = defaultProps$M;
12379
12358
  Signature.displayName = "NutSignature";
12380
12359
  const defaultProps$L = {
12381
12360
  ...ComponentDefaults,
@@ -12423,7 +12402,6 @@
12423
12402
  /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-button` }, !value && /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-close-line` }), activeText && /* @__PURE__ */ React.createElement(React.Fragment, null, value ? /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-label open` }, activeText) : /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-label close` }, inactiveText)))
12424
12403
  );
12425
12404
  };
12426
- Switch.defaultProps = defaultProps$L;
12427
12405
  Switch.displayName = "NutSwitch";
12428
12406
  const defaultProps$K = {
12429
12407
  ...ComponentDefaults,
@@ -12533,7 +12511,6 @@
12533
12511
  showCount && /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-limit` }, inputValue.length, "/", maxLength < 0 ? 0 : maxLength)
12534
12512
  );
12535
12513
  };
12536
- TextArea.defaultProps = defaultProps$K;
12537
12514
  TextArea.displayName = "NutTextArea";
12538
12515
  class UploadOptions {
12539
12516
  constructor() {
@@ -12837,7 +12814,6 @@
12837
12814
  )))
12838
12815
  );
12839
12816
  };
12840
- Progress.defaultProps = defaultProps$J;
12841
12817
  Progress.displayName = "NutProgress";
12842
12818
  const Preview = ({
12843
12819
  fileList,
@@ -13154,7 +13130,7 @@
13154
13130
  });
13155
13131
  };
13156
13132
  const task = new UploaderTaro(uploadOption);
13157
- if (props.autoUpload) {
13133
+ if (autoUpload) {
13158
13134
  task.uploadTaro(Taro.uploadFile, Taro.getEnv());
13159
13135
  } else {
13160
13136
  uploadQueue.push(
@@ -13206,8 +13182,8 @@
13206
13182
  });
13207
13183
  };
13208
13184
  const filterFiles = (files) => {
13209
- const maximum = props.maxCount * 1;
13210
- const maximize = props.maxFileSize * 1;
13185
+ const maximum = maxCount * 1;
13186
+ const maximize = maxFileSize * 1;
13211
13187
  const oversizes = new Array();
13212
13188
  const filterFile = files.filter((file) => {
13213
13189
  if (file.size > maximize) {
@@ -13273,7 +13249,6 @@
13273
13249
  ));
13274
13250
  };
13275
13251
  const Uploader = React.forwardRef(InternalUploader);
13276
- Uploader.defaultProps = defaultProps$I;
13277
13252
  Uploader.displayName = "NutUploader";
13278
13253
  const defaultProps$H = {
13279
13254
  ...ComponentDefaults,
@@ -13346,7 +13321,6 @@
13346
13321
  ))
13347
13322
  );
13348
13323
  };
13349
- ActionSheet.defaultProps = defaultProps$H;
13350
13324
  ActionSheet.displayName = "NutActionSheet";
13351
13325
  const Content = (props) => {
13352
13326
  const {
@@ -13695,18 +13669,18 @@
13695
13669
  } else if (translateY.current > boundaryState.bottom) {
13696
13670
  translateY.current = boundaryState.bottom;
13697
13671
  }
13698
- const transform = `translate3d(${props.direction !== "y" ? translateX.current : 0}px, ${props.direction !== "x" ? translateY.current : 0}px, 0px)`;
13672
+ const transform = `translate3d(${direction !== "y" ? translateX.current : 0}px, ${direction !== "x" ? translateY.current : 0}px, 0px)`;
13699
13673
  setCurrStyle({ transform });
13700
13674
  }
13701
13675
  };
13702
13676
  const touchEnd = (e2) => {
13703
- if (props.direction !== "y" && props.attract && dragRef.current) {
13677
+ if (direction !== "y" && attract && dragRef.current) {
13704
13678
  if (translateX.current < middleLine.current) {
13705
13679
  translateX.current = boundaryState.left;
13706
13680
  } else {
13707
13681
  translateX.current = boundaryState.right;
13708
13682
  }
13709
- const transform = `translate3d(${translateX.current}px, ${props.direction !== "x" ? translateY.current : 0}px, 0px)`;
13683
+ const transform = `translate3d(${translateX.current}px, ${direction !== "x" ? translateY.current : 0}px, 0px)`;
13710
13684
  setCurrStyle({ transform });
13711
13685
  }
13712
13686
  };
@@ -13739,7 +13713,6 @@
13739
13713
  )
13740
13714
  );
13741
13715
  };
13742
- Drag.defaultProps = defaultProps$F;
13743
13716
  Drag.displayName = "NutDrag";
13744
13717
  const defaultStatus = {
13745
13718
  empty: "https://storage.360buyimg.com/imgtools/30186cfda0-0d3eee40-c0ac-11ee-9382-9125782aa3b8.png",
@@ -13814,7 +13787,6 @@
13814
13787
  );
13815
13788
  })), children);
13816
13789
  };
13817
- Empty.defaultProps = defaultProps$E;
13818
13790
  Empty.displayName = "NutEmpty";
13819
13791
  const defaultProps$D = {
13820
13792
  ...ComponentDefaults,
@@ -13950,7 +13922,6 @@
13950
13922
  /* @__PURE__ */ React.createElement("div", { className: "nut-infinite-bottom" }, isInfiniting ? /* @__PURE__ */ React.createElement("div", { className: "nut-infinite-bottom-tips" }, loadingText || locale.infiniteloading.loadText) : !hasMore && /* @__PURE__ */ React.createElement("div", { className: "nut-infinite-bottom-tips" }, loadMoreText || locale.infiniteloading.loadMoreText))
13951
13923
  );
13952
13924
  };
13953
- InfiniteLoading.defaultProps = defaultProps$D;
13954
13925
  InfiniteLoading.displayName = "NutInfiniteLoading";
13955
13926
  const loadingMap = {
13956
13927
  circular: D$5,
@@ -13983,7 +13954,6 @@
13983
13954
  children ? /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-text` }, children) : ""
13984
13955
  );
13985
13956
  };
13986
- Loading.defaultProps = defaultProps$C;
13987
13957
  Loading.displayName = "NutLoading";
13988
13958
  const defaultProps$B = {
13989
13959
  ...ComponentDefaults,
@@ -14405,7 +14375,6 @@
14405
14375
  )
14406
14376
  ) : null);
14407
14377
  };
14408
- NoticeBar.defaultProps = defaultProps$B;
14409
14378
  NoticeBar.displayName = "NutNoticeBar";
14410
14379
  const defaultProps$A = {
14411
14380
  ...ComponentDefaults,
@@ -14611,7 +14580,7 @@
14611
14580
  };
14612
14581
  const clickAway = () => {
14613
14582
  if (closeOnOutsideClick) {
14614
- props.onClick && props.onClick();
14583
+ onClick && onClick();
14615
14584
  onClose && onClose();
14616
14585
  }
14617
14586
  };
@@ -14687,7 +14656,7 @@
14687
14656
  const direction = location.split("-")[0];
14688
14657
  const skew = location.split("-")[1];
14689
14658
  const base = 16;
14690
- if (props.arrowOffset !== 0) {
14659
+ if (arrowOffset !== 0) {
14691
14660
  const dir = rtl ? "right" : "left";
14692
14661
  const dir2 = rtl ? "left" : "right";
14693
14662
  if (["bottom", "top"].includes(direction)) {
@@ -14716,12 +14685,11 @@
14716
14685
  return styles;
14717
14686
  };
14718
14687
  const handleSelect = (item, index) => {
14719
- var _a;
14720
14688
  if (!item.disabled) {
14721
14689
  onSelect == null ? void 0 : onSelect(item, index);
14722
14690
  }
14723
14691
  if (closeOnActionClick) {
14724
- (_a = props.onClick) == null ? void 0 : _a.call(props);
14692
+ onClick == null ? void 0 : onClick();
14725
14693
  onClose == null ? void 0 : onClose();
14726
14694
  }
14727
14695
  };
@@ -14789,7 +14757,6 @@
14789
14757
  }
14790
14758
  )));
14791
14759
  };
14792
- Popover.defaultProps = defaultProps$z;
14793
14760
  Popover.displayName = "NutPopover";
14794
14761
  function bound(position, min, max) {
14795
14762
  let ret = position;
@@ -14981,7 +14948,6 @@
14981
14948
  };
14982
14949
  return /* @__PURE__ */ React.createElement(AvatarContext.Provider, { value: parentAvatar }, /* @__PURE__ */ React.createElement("div", { className: cls, style, ref: avatarGroupRef }, children));
14983
14950
  };
14984
- AvatarGroup.defaultProps = defaultProps$x;
14985
14951
  AvatarGroup.displayName = "NutAvatarGroup";
14986
14952
  const defaultProps$w = {
14987
14953
  ...ComponentDefaults,
@@ -15070,8 +15036,8 @@
15070
15036
  }
15071
15037
  };
15072
15038
  const errorEvent = () => {
15073
- if (props.onError) {
15074
- props.onError();
15039
+ if (onError) {
15040
+ onError();
15075
15041
  }
15076
15042
  };
15077
15043
  const clickAvatar = (e2) => {
@@ -15101,7 +15067,6 @@
15101
15067
  showMax && /* @__PURE__ */ React.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)}`)
15102
15068
  ));
15103
15069
  };
15104
- Avatar.defaultProps = defaultProps$w;
15105
15070
  Avatar.displayName = "NutAvatar";
15106
15071
  Avatar.Group = AvatarGroup;
15107
15072
  const defaultProps$v = {
@@ -15164,7 +15129,6 @@
15164
15129
  return /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-block`, key: index });
15165
15130
  })))));
15166
15131
  };
15167
- Skeleton.defaultProps = defaultProps$v;
15168
15132
  Skeleton.displayName = "NutSkeleton";
15169
15133
  function preventDefault(event, isStopPropagation) {
15170
15134
  if (typeof event.cancelable !== "boolean" || event.cancelable) {
@@ -15549,7 +15513,6 @@
15549
15513
  };
15550
15514
  return /* @__PURE__ */ React.createElement("div", { className: "nut-animate" }, /* @__PURE__ */ React.createElement("div", { className: cls, onClick: handleClick, ...rest }, children));
15551
15515
  };
15552
- Animate.defaultProps = defaultProps$s;
15553
15516
  Animate.displayName = "NutAnimate";
15554
15517
  const defaultProps$r = {
15555
15518
  ...ComponentDefaults,
@@ -15929,11 +15892,10 @@
15929
15892
  return () => window.cancelAnimationFrame(animateIdRef.current);
15930
15893
  }, [percent]);
15931
15894
  const stop = () => {
15932
- if (!isObject(props.color)) {
15895
+ if (!isObject(color)) {
15933
15896
  return [];
15934
15897
  }
15935
- const color2 = props.color;
15936
- const colorArr = Object.keys(color2).sort(
15898
+ const colorArr = Object.keys(color).sort(
15937
15899
  (a2, b) => parseFloat(a2) - parseFloat(b)
15938
15900
  );
15939
15901
  const stopArr = [];
@@ -15943,7 +15905,7 @@
15943
15905
  value: ""
15944
15906
  };
15945
15907
  obj.key = item;
15946
- obj.value = color2[item];
15908
+ obj.value = color[item];
15947
15909
  stopArr.push(obj);
15948
15910
  });
15949
15911
  return stopArr;
@@ -15967,15 +15929,15 @@
15967
15929
  const perimeter = 283;
15968
15930
  const progress = +oldValue.current;
15969
15931
  const offset = perimeter * Number(format2(parseFloat(progress.toFixed(1)))) / 100;
15970
- const isWise = props.clockwise ? 1 : 0;
15971
- const color2 = isObject(props.color) ? `url(%23${refRandomId})` : transColor(props.color);
15932
+ const isWise = clockwise ? 1 : 0;
15933
+ const realColor = isObject(color) ? `url(%23${refRandomId})` : transColor(color);
15972
15934
  const d = `M 50 50 m 0 -45 a 45 45 0 1 ${isWise} 0 90 a 45 45 0 1, ${isWise} 0 -90`;
15973
15935
  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`;
15974
15936
  const path = `%3Cpath d='${d}' stroke-width='${strokeWidth}' stroke='${transColor(
15975
- props.background
15937
+ background
15976
15938
  )}' fill='none'/%3E`;
15977
15939
  const path1 = `%3Cpath d='${d}' stroke-width='${strokeWidth}' stroke-dasharray='${offset},${perimeter}' stroke-linecap='round' stroke='${transColor(
15978
- color2
15940
+ realColor
15979
15941
  )}' fill='none'/%3E`;
15980
15942
  return {
15981
15943
  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")`,
@@ -15985,7 +15947,6 @@
15985
15947
  };
15986
15948
  return /* @__PURE__ */ React.createElement("div", { className: classes, style: styles, ...restProps }, /* @__PURE__ */ React.createElement("div", { style: circleStyle() }), /* @__PURE__ */ React.createElement("div", { className: "nut-circleprogress-text" }, children));
15987
15949
  };
15988
- CircleProgress.defaultProps = defaultProps$o;
15989
15950
  CircleProgress.displayName = "NutCircleProgress";
15990
15951
  const collapseContext = {
15991
15952
  isOpen: (name) => {
@@ -16130,7 +16091,6 @@
16130
16091
  )
16131
16092
  ));
16132
16093
  };
16133
- CollapseItem.defaultProps = defaultProps$n;
16134
16094
  CollapseItem.displayName = "NutCollapseItem";
16135
16095
  const defaultProps$m = {
16136
16096
  ...ComponentDefaults,
@@ -16208,7 +16168,6 @@
16208
16168
  /* @__PURE__ */ React.createElement("div", { className: classNames(classPrefix2, className), style }, children)
16209
16169
  );
16210
16170
  };
16211
- Collapse.defaultProps = defaultProps$m;
16212
16171
  Collapse.displayName = "NutCollapse";
16213
16172
  Collapse.Item = CollapseItem;
16214
16173
  const defaultProps$l = {
@@ -16449,7 +16408,6 @@
16449
16408
  const CountDown = React.forwardRef(
16450
16409
  InternalCountDown
16451
16410
  );
16452
- CountDown.defaultProps = defaultProps$l;
16453
16411
  CountDown.displayName = "NutCountDown";
16454
16412
  const defaultProps$k = {
16455
16413
  ...ComponentDefaults,
@@ -16772,7 +16730,6 @@
16772
16730
  symbolText()
16773
16731
  ));
16774
16732
  };
16775
- Ellipsis.defaultProps = defaultProps$k;
16776
16733
  Ellipsis.displayName = "NutEllipsis";
16777
16734
  const defaultProps$j = {
16778
16735
  total: 3,
@@ -16805,7 +16762,6 @@
16805
16762
  };
16806
16763
  return /* @__PURE__ */ React.createElement("div", { className: classNames(classPrefix$5, classes, className), ...rest }, renderElement());
16807
16764
  };
16808
- Indicator.defaultProps = defaultProps$j;
16809
16765
  Indicator.displayName = "NutIndicator";
16810
16766
  const defaultProps$i = {
16811
16767
  direction: "horizontal",
@@ -16978,6 +16934,7 @@
16978
16934
  };
16979
16935
  const ImagePreview = (props) => {
16980
16936
  const {
16937
+ value,
16981
16938
  className,
16982
16939
  style,
16983
16940
  images,
@@ -16991,17 +16948,17 @@
16991
16948
  closeIcon,
16992
16949
  closeIconPosition,
16993
16950
  showMenuByLongpress,
16994
- onClose
16995
- } = props;
16951
+ onClose,
16952
+ onChange
16953
+ } = { ...defaultProps$g, ...props };
16996
16954
  const classPrefix2 = "nut-imagepreview";
16997
16955
  const ref = React.useRef(null);
16998
16956
  const [innerNo, setInnerNo] = usePropsValue({
16999
- value: props.value,
16957
+ value,
17000
16958
  defaultValue,
17001
16959
  finalValue: defaultValue,
17002
16960
  onChange: (val) => {
17003
- var _a;
17004
- (_a = props.onChange) == null ? void 0 : _a.call(props, val);
16961
+ onChange == null ? void 0 : onChange(val);
17005
16962
  }
17006
16963
  });
17007
16964
  const [showPop, setShowPop] = React.useState(visible);
@@ -17112,9 +17069,8 @@
17112
17069
  );
17113
17070
  };
17114
17071
  const slideChangeEnd = (page) => {
17115
- var _a;
17116
17072
  setActive(page + 1);
17117
- (_a = props.onChange) == null ? void 0 : _a.call(props, page + 1);
17073
+ onChange == null ? void 0 : onChange(page + 1);
17118
17074
  };
17119
17075
  const onCloseInner = (e2) => {
17120
17076
  e2.stopPropagation();
@@ -17128,6 +17084,7 @@
17128
17084
  });
17129
17085
  };
17130
17086
  const closeOnImg = (e2) => {
17087
+ e2.stopPropagation();
17131
17088
  if (closeOnContentClick) {
17132
17089
  onCloseInner(e2);
17133
17090
  }
@@ -17217,7 +17174,6 @@
17217
17174
  ) : null
17218
17175
  );
17219
17176
  };
17220
- ImagePreview.defaultProps = defaultProps$g;
17221
17177
  ImagePreview.displayName = "NutImagePreview";
17222
17178
  const defaultProps$f = {
17223
17179
  ...ComponentDefaults,
@@ -17329,7 +17285,6 @@
17329
17285
  next || locale.pagination.next
17330
17286
  )), mode === "lite" && /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-lite` }, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-lite-active` }, 2), /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-lite-default` }, 8))));
17331
17287
  };
17332
- Pagination.defaultProps = defaultProps$f;
17333
17288
  Pagination.displayName = "NutPagination";
17334
17289
  const defaultProps$e = {
17335
17290
  ...ComponentDefaults,
@@ -17431,7 +17386,6 @@
17431
17386
  symbol && position === "after" ? renderSymbol() : null
17432
17387
  );
17433
17388
  };
17434
- Price.defaultProps = defaultProps$e;
17435
17389
  Price.displayName = "NutPrice";
17436
17390
  const DataContext = React.createContext({});
17437
17391
  const defaultProps$d = {
@@ -17477,7 +17431,6 @@
17477
17431
  };
17478
17432
  return /* @__PURE__ */ React.createElement("div", { className: classes, ...restProps, onClick: handleClickStep }, /* @__PURE__ */ React.createElement(components.View, { className: "nut-step-head" }, /* @__PURE__ */ React.createElement(components.View, { className: "nut-step-line" }), /* @__PURE__ */ React.createElement(components.View, { className: renderIconClass() }, icon || !dot && /* @__PURE__ */ React.createElement("span", { className: "nut-step-inner" }, value))), (title || description) && /* @__PURE__ */ React.createElement(components.View, { className: "nut-step-main" }, /* @__PURE__ */ React.createElement("span", { className: "nut-step-title" }, title), description && /* @__PURE__ */ React.createElement("span", { className: "nut-step-description" }, description)));
17479
17433
  };
17480
- Step.defaultProps = defaultProps$d;
17481
17434
  Step.displayName = "NutStep";
17482
17435
  const defaultProps$c = {
17483
17436
  ...ComponentDefaults,
@@ -17504,13 +17457,12 @@
17504
17457
  classPrefix2,
17505
17458
  {
17506
17459
  [`${classPrefix2}-${direction}`]: true,
17507
- [`${classPrefix2}-dot`]: !!props.dot
17460
+ [`${classPrefix2}-dot`]: !!dot
17508
17461
  },
17509
17462
  className
17510
17463
  );
17511
17464
  return /* @__PURE__ */ React.createElement(DataContext.Provider, { value: parentSteps }, /* @__PURE__ */ React.createElement("div", { className: classes, ...restProps }, children));
17512
17465
  };
17513
- Steps.defaultProps = defaultProps$c;
17514
17466
  Steps.displayName = "NutSteps";
17515
17467
  function useTableSticky(columns, rtl = false) {
17516
17468
  const [isSticky, setIsSticky] = React.useState(false);
@@ -17651,7 +17603,7 @@
17651
17603
  };
17652
17604
  const cellClasses = (item) => {
17653
17605
  return {
17654
- [`${headerClassPrefix}-border`]: props.bordered,
17606
+ [`${headerClassPrefix}-border`]: bordered,
17655
17607
  [`${headerClassPrefix}-align${item.align ? item.align : ""}`]: true
17656
17608
  };
17657
17609
  };
@@ -17737,7 +17689,6 @@
17737
17689
  }
17738
17690
  )) : null, (summary || innerValue.length === 0) && /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-summary` }, summary || noData));
17739
17691
  };
17740
- Table.defaultProps = defaultProps$b;
17741
17692
  Table.displayName = "NutTable";
17742
17693
  const defaultProps$a = {
17743
17694
  ...ComponentDefaults,
@@ -17839,7 +17790,6 @@
17839
17790
  children && /* @__PURE__ */ React.createElement("span", { className: `${classPrefix2}-text` }, children)
17840
17791
  ));
17841
17792
  };
17842
- Tag.defaultProps = defaultProps$a;
17843
17793
  Tag.displayName = "NutTag";
17844
17794
  const getTaroRectById = (id) => {
17845
17795
  return new Promise((resolve, reject) => {
@@ -18037,7 +17987,6 @@
18037
17987
  )));
18038
17988
  }));
18039
17989
  };
18040
- Tour.defaultProps = defaultProps$9;
18041
17990
  Tour.displayName = "NutTour";
18042
17991
  const defaultProps$8 = {
18043
17992
  source: {
@@ -18088,7 +18037,6 @@
18088
18037
  }
18089
18038
  ));
18090
18039
  };
18091
- Video.defaultProps = defaultProps$8;
18092
18040
  Video.displayName = "NutVideo";
18093
18041
  const initPositinoCache = (reaItemSize, length = 0) => {
18094
18042
  let index = 0;
@@ -18297,7 +18245,6 @@
18297
18245
  )
18298
18246
  );
18299
18247
  };
18300
- VirtualList.defaultProps = defaultProps$7;
18301
18248
  VirtualList.displayName = "NutVirtualList";
18302
18249
  const defaultProps$6 = {
18303
18250
  ...ComponentDefaults,
@@ -18419,7 +18366,6 @@
18419
18366
  const Barrage = React.forwardRef(
18420
18367
  InternalBarrage
18421
18368
  );
18422
- Barrage.defaultProps = defaultProps$6;
18423
18369
  Barrage.displayName = "NutBarrage";
18424
18370
  const defaultProps$5 = {
18425
18371
  ...ComponentDefaults,
@@ -18465,7 +18411,6 @@
18465
18411
  }
18466
18412
  )), /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-right-other` }, tag || /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Tag, { type: "danger" }, shopDescription), /* @__PURE__ */ React.createElement(Tag, { plain: true }, delivery))), /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-right-shop` }, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-right-shop-name` }, shopName), extra)));
18467
18413
  };
18468
- Card.defaultProps = defaultProps$5;
18469
18414
  Card.displayName = "NutCard";
18470
18415
  const defaultProps$4 = {
18471
18416
  ...ComponentDefaults,
@@ -18520,7 +18465,6 @@
18520
18465
  item[optionKey.textKey]
18521
18466
  )));
18522
18467
  };
18523
- TimeDetail.defaultProps = defaultProps$4;
18524
18468
  TimeDetail.displayName = "NutTimeDetail";
18525
18469
  const defaultProps$3 = {
18526
18470
  ...ComponentDefaults,
@@ -18658,7 +18602,6 @@
18658
18602
  )))
18659
18603
  );
18660
18604
  };
18661
- TimeSelect.defaultProps = defaultProps$3;
18662
18605
  TimeSelect.displayName = "NutTimeSelect";
18663
18606
  const defaultProps$2 = {
18664
18607
  ...ComponentDefaults,
@@ -18739,7 +18682,6 @@
18739
18682
  };
18740
18683
  return /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2} ${className}`, style, ...rest }, !left2 && renderContent(!left2), Number(value) !== 0 && /* @__PURE__ */ React.createElement(React.Fragment, null, rateTrend.current ? /* @__PURE__ */ React.createElement(React.Fragment, null, riseIcon || /* @__PURE__ */ React.createElement(c, { color: calcIconProps.color })) : /* @__PURE__ */ React.createElement(React.Fragment, null, dropIcon || /* @__PURE__ */ React.createElement(e, { color: calcIconProps.color }))), left2 && renderContent(!left2));
18741
18684
  };
18742
- TrendArrow.defaultProps = defaultProps$2;
18743
18685
  TrendArrow.displayName = "NutTrendArrow";
18744
18686
  const defaultProps$1 = {
18745
18687
  ...ComponentDefaults,
@@ -18870,7 +18812,6 @@
18870
18812
  }
18871
18813
  );
18872
18814
  };
18873
- WaterMark.defaultProps = defaultProps$1;
18874
18815
  WaterMark.displayName = "NutWaterMark";
18875
18816
  const defaultProps = {
18876
18817
  ...ComponentDefaults,
@@ -19405,7 +19346,6 @@
19405
19346
  };
19406
19347
  return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("div", { className: cls, ...rest, style }, children, /* @__PURE__ */ React.createElement("div", { className: "nut-avatar-cropper-edit-text", onClick: chooseImage }, editText)), CropperPopup());
19407
19348
  };
19408
- AvatarCropper.defaultProps = defaultProps;
19409
19349
  AvatarCropper.displayName = "NutAvatarCropper";
19410
19350
  exports2.ActionSheet = ActionSheet;
19411
19351
  exports2.Address = Address;