@nutui/nutui-react-taro 2.6.3 → 2.6.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (191) hide show
  1. package/CHANGELOG.md +26 -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/BackTop.js +1 -1
  10. package/dist/esm/Badge.js +1 -1
  11. package/dist/esm/Barrage.js +1 -1
  12. package/dist/esm/Calendar.js +1 -1
  13. package/dist/esm/CalendarCard.js +1 -1
  14. package/dist/esm/CalendarItem.js +1 -1
  15. package/dist/esm/Card.js +1 -1
  16. package/dist/esm/Cascader.js +1 -1
  17. package/dist/esm/Cell.js +1 -1
  18. package/dist/esm/CellGroup.js +1 -1
  19. package/dist/esm/Checkbox.js +1 -1
  20. package/dist/esm/CheckboxGroup.js +1 -1
  21. package/dist/esm/CircleProgress.js +1 -1
  22. package/dist/esm/Col.js +1 -1
  23. package/dist/esm/Collapse.js +1 -1
  24. package/dist/esm/CollapseItem.js +1 -1
  25. package/dist/esm/CountDown.js +1 -1
  26. package/dist/esm/DatePicker.js +1 -1
  27. package/dist/esm/Dialog.js +1 -1
  28. package/dist/esm/Divider.js +1 -1
  29. package/dist/esm/Drag.js +1 -1
  30. package/dist/esm/Elevator.js +1 -1
  31. package/dist/esm/Ellipsis.js +1 -1
  32. package/dist/esm/Empty.js +1 -1
  33. package/dist/esm/FixedNav.js +1 -1
  34. package/dist/esm/Form.js +2 -3
  35. package/dist/esm/FormItem.js +1 -1
  36. package/dist/esm/Grid.js +1 -1
  37. package/dist/esm/GridItem.js +1 -1
  38. package/dist/esm/Image.js +1 -1
  39. package/dist/esm/ImagePreview.js +1 -1
  40. package/dist/esm/Indicator.js +1 -1
  41. package/dist/esm/InfiniteLoading.js +1 -1
  42. package/dist/esm/Input.js +1 -1
  43. package/dist/esm/InputNumber.js +1 -1
  44. package/dist/esm/Layout.js +1 -1
  45. package/dist/esm/Loading.js +1 -1
  46. package/dist/esm/Menu/style/style.css +1 -1
  47. package/dist/esm/Menu.js +1 -1
  48. package/dist/esm/MenuItem/style/style.css +1 -1
  49. package/dist/esm/MenuItem.js +1 -1
  50. package/dist/esm/NavBar.js +1 -1
  51. package/dist/esm/NoticeBar.js +1 -1
  52. package/dist/esm/NumberKeyboard.js +1 -1
  53. package/dist/esm/Overlay.js +1 -1
  54. package/dist/esm/Pagination.js +1 -1
  55. package/dist/esm/Picker.js +1 -1
  56. package/dist/esm/Popover.js +1 -1
  57. package/dist/esm/Popup.js +1 -1
  58. package/dist/esm/Price.js +1 -1
  59. package/dist/esm/Progress.js +1 -1
  60. package/dist/esm/Range.js +1 -1
  61. package/dist/esm/Rate.js +1 -1
  62. package/dist/esm/Row.js +1 -1
  63. package/dist/esm/SafeArea.js +1 -1
  64. package/dist/esm/SearchBar.js +1 -1
  65. package/dist/esm/ShortPassword.js +1 -1
  66. package/dist/esm/SideNavBar.js +1 -1
  67. package/dist/esm/Signature.js +1 -1
  68. package/dist/esm/Skeleton.js +1 -1
  69. package/dist/esm/Space.js +1 -1
  70. package/dist/esm/Step.js +1 -1
  71. package/dist/esm/Steps.js +1 -1
  72. package/dist/esm/Sticky.js +1 -1
  73. package/dist/esm/Swiper.js +1 -1
  74. package/dist/esm/Switch.js +1 -1
  75. package/dist/esm/Tabbar.js +1 -1
  76. package/dist/esm/TabbarItem.js +1 -1
  77. package/dist/esm/Table/style/style.css +1 -1
  78. package/dist/esm/Table.js +1 -1
  79. package/dist/esm/Tabs.js +1 -1
  80. package/dist/esm/Tag.js +1 -1
  81. package/dist/esm/TextArea.js +1 -1
  82. package/dist/esm/TimeDetail.js +1 -1
  83. package/dist/esm/TimeSelect.js +1 -1
  84. package/dist/esm/Toast.js +1 -1
  85. package/dist/esm/Tour.js +1 -1
  86. package/dist/esm/TrendArrow.js +1 -1
  87. package/dist/esm/Uploader.js +1 -1
  88. package/dist/esm/Video.js +1 -1
  89. package/dist/esm/VirtualList.js +1 -1
  90. package/dist/esm/WaterMark.js +1 -1
  91. package/dist/esm/{actionsheet.taro-Dpjoa3xo.js → actionsheet.taro-CI2b9f_3.js} +1 -2
  92. package/dist/esm/{address.taro-C_wuRkKQ.js → address.taro-6VS1YZ0V.js} +2 -3
  93. package/dist/esm/{animate.taro-Dg9jxZEu.js → animate.taro-D-A6ORRZ.js} +0 -1
  94. package/dist/esm/{audio.taro-2hRKQ2Lk.js → audio.taro-4ixA5lb2.js} +1 -1
  95. package/dist/esm/{avatar.taro-a6CX3kxV.js → avatar.taro-Dx8hhvFI.js} +4 -5
  96. package/dist/esm/{avatarcropper.taro-Dd4pAR3N.js → avatarcropper.taro-C9BoO5Lp.js} +0 -1
  97. package/dist/esm/{avatargroup.taro-bpT5kPbf.js → avatargroup.taro-ScakjsY1.js} +0 -1
  98. package/dist/esm/{backtop.taro-X1X5Uzz5.js → backtop.taro-YeEY7i4O.js} +0 -1
  99. package/dist/esm/{badge.taro-B0spW6jr.js → badge.taro-DK_UFQ5Y.js} +0 -1
  100. package/dist/esm/{barrage.taro-BNOcZsJ1.js → barrage.taro-DEJGSmY5.js} +0 -1
  101. package/dist/esm/{calendar.taro-DEsLc-lS.js → calendar.taro-CDZqFYlk.js} +2 -3
  102. package/dist/esm/{calendarcard.taro-C7P3oqAL.js → calendarcard.taro-CHDg3k5D.js} +0 -1
  103. package/dist/esm/{calendaritem.taro-B8tN2DYa.js → calendaritem.taro-DuEKmnsT.js} +3 -4
  104. package/dist/esm/{card.taro-FRirz5pW.js → card.taro-Co0BZGJI.js} +2 -3
  105. package/dist/esm/{cascader.taro-B06E-RW5.js → cascader.taro-CZkUgupN.js} +6 -7
  106. package/dist/esm/{cell.taro-CmI4m0SC.js → cell.taro-kOgCGbyn.js} +1 -2
  107. package/dist/esm/{cellgroup.taro-CYsSk-Bt.js → cellgroup.taro-BskBIgql.js} +0 -1
  108. package/dist/esm/{checkbox.taro-CUpF7Afr.js → checkbox.taro-DOSOI351.js} +2 -3
  109. package/dist/esm/{circleprogress.taro-CKSrzt8Q.js → circleprogress.taro-BuVTD1iY.js} +7 -9
  110. package/dist/esm/{col.taro-C8DUuJYh.js → col.taro-BdtbWacE.js} +0 -1
  111. package/dist/esm/{collapse.taro-BM0BsN30.js → collapse.taro-CxDgckv5.js} +1 -2
  112. package/dist/esm/{collapseitem.taro-D_m4VEdG.js → collapseitem.taro-BY06WWvK.js} +0 -1
  113. package/dist/esm/{countdown.taro-wopKr1Il.js → countdown.taro-CdEiAwr5.js} +0 -1
  114. package/dist/esm/{datepicker.taro-DEwb5whP.js → datepicker.taro-B7H4b8TO.js} +1 -1
  115. package/dist/esm/{dialog.taro-x_jRYew5.js → dialog.taro-Du4bNKvD.js} +1 -1
  116. package/dist/esm/{divider.taro-DRcO_m9e.js → divider.taro-CijVuCyt.js} +0 -1
  117. package/dist/esm/{drag.taro-CcHIO07Y.js → drag.taro-D6xGnWqk.js} +3 -4
  118. package/dist/esm/{elevator.taro-uhrF7ChY.js → elevator.taro-BzVoaYw6.js} +0 -1
  119. package/dist/esm/{ellipsis.taro-3gDXpBmX.js → ellipsis.taro-dxOx8h7S.js} +0 -1
  120. package/dist/esm/{empty.taro-C61QNHep.js → empty.taro-DgmUYpBc.js} +0 -1
  121. package/dist/esm/{fixednav.taro-CJUDQcX1.js → fixednav.taro-CewDiT-u.js} +1 -2
  122. package/dist/esm/{formitem.taro-DDNlpN_O.js → formitem.taro-Y-hHJ2oh.js} +1 -1
  123. package/dist/esm/{grid.taro-BA76RrgT.js → grid.taro-C4xSMhg4.js} +1 -2
  124. package/dist/esm/{griditem.taro-JLddv9zD.js → griditem.taro-DeXl7qNi.js} +0 -1
  125. package/dist/esm/{image.taro-BLz2WCva.js → image.taro-ESa7sdbM.js} +0 -1
  126. package/dist/esm/{imagepreview.taro-BMlwAhT0.js → imagepreview.taro-Wdlb0tIh.js} +10 -12
  127. package/dist/esm/{indicator.taro-CpHZtD9p.js → indicator.taro-Bmae9MdC.js} +0 -1
  128. package/dist/esm/{infiniteloading.taro-WiMpG-fU.js → infiniteloading.taro-Bnm-LVHC.js} +0 -1
  129. package/dist/esm/{input.taro-CAZ-rRMH.js → input.taro-sviVz6LS.js} +8 -13
  130. package/dist/esm/{inputnumber.taro-HU_Ndna2.js → inputnumber.taro-ByJ9DlU2.js} +0 -1
  131. package/dist/esm/{layout.taro-BE2868d6.js → layout.taro-C-aUcOOE.js} +0 -1
  132. package/dist/esm/{loading.taro-CRF1z5wQ.js → loading.taro-BfHqvYhy.js} +0 -1
  133. package/dist/esm/{menu.taro-J7oZoaGM.js → menu.taro-DkKY62ym.js} +1 -2
  134. package/dist/esm/{menuitem.taro-CaI5vTha.js → menuitem.taro-CKjl8_Cl.js} +2 -3
  135. package/dist/esm/{navbar.taro-B8u3DOE4.js → navbar.taro-COrKuU9p.js} +0 -1
  136. package/dist/esm/{noticebar.taro-BtudzdMD.js → noticebar.taro-cjVGemZE.js} +0 -1
  137. package/dist/esm/{numberkeyboard.taro-DjxjkImT.js → numberkeyboard.taro-CFJtMOew.js} +2 -3
  138. package/dist/esm/nutui-react.es.js +83 -83
  139. package/dist/esm/{overlay.taro--1Kf1D7C.js → overlay.taro-BJ3twlP0.js} +1 -2
  140. package/dist/esm/{pagination.taro-DAK6ddag.js → pagination.taro-B8hmHNgf.js} +0 -1
  141. package/dist/esm/{picker.taro-DR2HAkv6.js → picker.taro-CHsDIw4C.js} +2 -3
  142. package/dist/esm/{popover.taro-MnR5htLt.js → popover.taro-Dve2UnRF.js} +4 -6
  143. package/dist/esm/{popup.taro-B7_iPgl4.js → popup.taro-cT6cbAxw.js} +1 -2
  144. package/dist/esm/{price.taro-UVRHPHRD.js → price.taro-DdR5NSIA.js} +0 -1
  145. package/dist/esm/{progress.taro-rjiPI6mD.js → progress.taro-BFWQ2MvM.js} +0 -1
  146. package/dist/esm/{range.taro-CsC41L60.js → range.taro-BeVCaZ4r.js} +0 -1
  147. package/dist/esm/{rate.taro-BABLqt4h.js → rate.taro-lOoACxLq.js} +0 -1
  148. package/dist/esm/{row.taro-C3YvH_nz.js → row.taro-ItEq1Bi5.js} +0 -1
  149. package/dist/esm/{safearea.taro-BMQHr7tu.js → safearea.taro-BJpvFsMf.js} +1 -0
  150. package/dist/esm/{searchbar.taro-PfVx6o-6.js → searchbar.taro-B31m8apz.js} +6 -7
  151. package/dist/esm/{shortpassword.taro-GkcE-e__.js → shortpassword.taro-BVp4BrTs.js} +3 -3
  152. package/dist/esm/{sidenavbar.taro-5d-6iiNq.js → sidenavbar.taro-DGnJgxEe.js} +5 -6
  153. package/dist/esm/{signature.taro-Bn9VNn62.js → signature.taro-DTZCZMDZ.js} +1 -2
  154. package/dist/esm/{skeleton.taro-BwIDIf2p.js → skeleton.taro-C3vp7bWb.js} +1 -2
  155. package/dist/esm/{space.taro-CZ999etm.js → space.taro-B1KsEPZL.js} +0 -1
  156. package/dist/esm/{step.taro-DLr2GzYk.js → step.taro-CaRHnSOF.js} +0 -1
  157. package/dist/esm/{steps.taro-C8Yg1Sns.js → steps.taro-BoVGFMxx.js} +1 -2
  158. package/dist/esm/{sticky.taro-DRBk3gkQ.js → sticky.taro-CqiMtDv9.js} +0 -1
  159. package/dist/esm/{switch.taro-D1HgJoJz.js → switch.taro-Mq1wBEGz.js} +0 -1
  160. package/dist/esm/{tabbar.taro-CVp3ZaqP.js → tabbar.taro-DD5HcQgp.js} +1 -2
  161. package/dist/esm/{tabbaritem.taro-C_90fvMh.js → tabbaritem.taro-ptdJI0xv.js} +1 -1
  162. package/dist/esm/{table.taro-ClLmfqz3.js → table.taro-EwAQJ6jp.js} +1 -2
  163. package/dist/esm/{tabs.taro-B4XgogPx.js → tabs.taro-gcyv8qGG.js} +4 -5
  164. package/dist/esm/{tag.taro-rKMK0jan.js → tag.taro-CFt28RLm.js} +0 -1
  165. package/dist/esm/{textarea.taro-BJIFCpKb.js → textarea.taro-DLS0EQeJ.js} +0 -1
  166. package/dist/esm/{timedetail.taro-x6Zey1xi.js → timedetail.taro-ya5JNy2L.js} +0 -1
  167. package/dist/esm/{timeselect.taro-DkdpBJlT.js → timeselect.taro-C64SUiXS.js} +2 -3
  168. package/dist/esm/{toast.taro-B0YEmeDn.js → toast.taro-CSqE0aIO.js} +1 -1
  169. package/dist/esm/{tour.taro-CdX6pugO.js → tour.taro-DegQCG1T.js} +1 -2
  170. package/dist/esm/{trendarrow.taro-BHUetKSS.js → trendarrow.taro-B2QGvXG0.js} +0 -1
  171. package/dist/esm/{uploader.taro-DMmTl0Cp.js → uploader.taro-BE4c5x9T.js} +4 -5
  172. package/dist/esm/{video.taro-DJQeroOH.js → video.taro-Bm5bDmIG.js} +0 -1
  173. package/dist/esm/{virtuallist.taro-Cl08vfdg.js → virtuallist.taro-GLen2Ay5.js} +1 -4
  174. package/dist/esm/{watermark.taro-BxM8VfXb.js → watermark.taro-BL5bLewc.js} +0 -1
  175. package/dist/locales/base.js +1 -1
  176. package/dist/locales/en-US.js +1 -1
  177. package/dist/locales/id-ID.js +1 -1
  178. package/dist/locales/tr-TR.js +1 -1
  179. package/dist/locales/zh-CN.js +1 -1
  180. package/dist/locales/zh-TW.js +1 -1
  181. package/dist/locales/zh-UG.js +1 -1
  182. package/dist/nutui.react.es.js +158 -242
  183. package/dist/nutui.react.umd.js +158 -242
  184. package/dist/packages/menu/menu.scss +1 -0
  185. package/dist/packages/menuitem/menuitem.scss +1 -0
  186. package/dist/packages/table/table.scss +2 -1
  187. package/dist/style.css +1 -1
  188. package/dist/style.mjs +1 -1
  189. package/dist/types/packages/checkboxgroup/checkboxgroup.taro.d.ts +5 -1
  190. package/package.json +1 -1
  191. package/dist/types/utils/use-lock-fn.d.ts +0 -2
@@ -4,6 +4,7 @@ const classPrefix = "nut-safe-area";
4
4
  const SafeArea = (props) => {
5
5
  return React__default.createElement("div", { className: classNames(classPrefix, `${classPrefix}-position-${props.position}`) });
6
6
  };
7
+ SafeArea.displayName = "NutSafeArea";
7
8
  export {
8
9
  SafeArea as S
9
10
  };
@@ -7,8 +7,8 @@ const SearchBar = (props) => {
7
7
  const classPrefix = "nut-searchbar";
8
8
  const { locale } = useConfig();
9
9
  const searchRef = useRef(null);
10
- const [value, setValue] = useState(() => props.value);
11
- const { placeholder, shape, className, disabled, maxLength, clearable, readOnly, autoFocus, backable, right, left, leftIn, rightIn, onChange, onFocus, onBlur, onClear, onSearch, onInputClick } = Object.assign(Object.assign({}, defaultProps), props);
10
+ const { value: outerValue, style, placeholder, shape, className, disabled, maxLength, clearable, readOnly, autoFocus, backable, right, left, leftIn, rightIn, onChange, onFocus, onBlur, onClear, onSearch, onInputClick } = Object.assign(Object.assign({}, defaultProps), props);
11
+ const [value, setValue] = useState(() => outerValue);
12
12
  const forceFocus = () => {
13
13
  const searchSelf = searchRef.current;
14
14
  searchSelf && searchSelf.focus();
@@ -31,13 +31,13 @@ const SearchBar = (props) => {
31
31
  onBlur && (onBlur === null || onBlur === void 0 ? void 0 : onBlur(value2, event));
32
32
  };
33
33
  useEffect(() => {
34
- setValue(props.value || "");
35
- }, [props.value]);
34
+ setValue(outerValue || "");
35
+ }, [outerValue]);
36
36
  useEffect(() => {
37
37
  autoFocus && forceFocus();
38
38
  }, [autoFocus]);
39
39
  const renderField = () => {
40
- return React__default.createElement("input", { className: `${classPrefix}-input ${clearable ? `${classPrefix}-input-clear` : ""}`, ref: searchRef, style: Object.assign({}, props.style), value: value || "", placeholder: placeholder || locale.placeholder, disabled, readOnly, maxLength, onKeyPress: onKeypress, onChange: (e) => change(e), onFocus: (e) => focus(e), onBlur: (e) => blur(e), onClick: (e) => clickInput(e) });
40
+ return React__default.createElement("input", { className: `${classPrefix}-input ${clearable ? `${classPrefix}-input-clear` : ""}`, ref: searchRef, style, value: value || "", placeholder: placeholder || locale.placeholder, disabled, readOnly, maxLength, onKeyPress: onKeypress, onChange: (e) => change(e), onFocus: (e) => focus(e), onBlur: (e) => blur(e), onClick: (e) => clickInput(e) });
41
41
  };
42
42
  const clickInput = (e) => {
43
43
  onInputClick && onInputClick(e);
@@ -87,7 +87,7 @@ const SearchBar = (props) => {
87
87
  };
88
88
  return React__default.createElement(
89
89
  "div",
90
- { className: `${classPrefix} ${disabled ? `${classPrefix}-disabled` : ""} ${className || ""}`, style: Object.assign({}, props.style) },
90
+ { className: `${classPrefix} ${disabled ? `${classPrefix}-disabled` : ""} ${className || ""}`, style },
91
91
  renderLeft(),
92
92
  React__default.createElement(
93
93
  "div",
@@ -100,7 +100,6 @@ const SearchBar = (props) => {
100
100
  renderRight()
101
101
  );
102
102
  };
103
- SearchBar.defaultProps = defaultProps;
104
103
  SearchBar.displayName = "NutSearchBar";
105
104
  export {
106
105
  SearchBar as S
@@ -2,14 +2,14 @@ import { _ as __rest } from "./tslib.es6-BZ8i9Q6l.js";
2
2
  import React__default, { useMemo, useImperativeHandle, useEffect } from "react";
3
3
  import { Tips } from "@nutui/icons-react-taro";
4
4
  import classNames from "classnames";
5
- import { P as Popup } from "./popup.taro-B7_iPgl4.js";
5
+ import { P as Popup } from "./popup.taro-cT6cbAxw.js";
6
6
  import { u as useConfig } from "./configprovider.taro-CyU_tvNJ.js";
7
7
  import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
8
8
  import { u as usePropsValue } from "./use-props-value-SH9krhkx.js";
9
9
  const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { value: "", visible: false, plain: false, hideFooter: true, length: 6, autoFocus: false });
10
10
  const InternalShortPassword = (props, ref) => {
11
11
  const { locale } = useConfig();
12
- const _a = Object.assign(Object.assign({}, defaultProps), props), { title, description, tips, visible: deleteVisible, value, error, hideFooter, length, plain, style, className, closeable, autoFocus, onFocus, onChange, onConfirm, onTips, onCancel, onClose, onComplete, onOverlayClick, onCloseIconClick } = _a, rest = __rest(_a, ["title", "description", "tips", "visible", "value", "error", "hideFooter", "length", "plain", "style", "className", "closeable", "autoFocus", "onFocus", "onChange", "onConfirm", "onTips", "onCancel", "onClose", "onComplete", "onOverlayClick", "onCloseIconClick"]);
12
+ const _a = Object.assign(Object.assign({}, defaultProps), props), { title, description, tips, visible: outerVisible, value, error, hideFooter, length, plain, style, className, closeable, autoFocus, onFocus, onChange, onConfirm, onTips, onCancel, onClose, onComplete, onOverlayClick, onCloseIconClick } = _a, rest = __rest(_a, ["title", "description", "tips", "visible", "value", "error", "hideFooter", "length", "plain", "style", "className", "closeable", "autoFocus", "onFocus", "onChange", "onConfirm", "onTips", "onCancel", "onClose", "onComplete", "onOverlayClick", "onCloseIconClick"]);
13
13
  const classPrefix = "nut-shortpassword";
14
14
  const comLen = useMemo(() => {
15
15
  return Math.min(Math.max(4, length || 4), 6);
@@ -18,7 +18,7 @@ const InternalShortPassword = (props, ref) => {
18
18
  return val.slice(0, comLen);
19
19
  };
20
20
  const [visible, setVisible] = usePropsValue({
21
- value: props.visible,
21
+ value: outerVisible,
22
22
  defaultValue: false,
23
23
  finalValue: false
24
24
  });
@@ -1,14 +1,14 @@
1
1
  import { _ as __rest } from "./tslib.es6-BZ8i9Q6l.js";
2
2
  import React__default, { useState } from "react";
3
3
  import classNames from "classnames";
4
- import { P as Popup } from "./popup.taro-B7_iPgl4.js";
4
+ import { P as Popup } from "./popup.taro-cT6cbAxw.js";
5
5
  import { O as OffsetContext } from "./context-4T-L2x0_.js";
6
6
  import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
7
7
  const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { position: "left", width: "80%" });
8
8
  const SideNavBar = (props) => {
9
9
  const classPrefix = "nut-sidenavbar";
10
- const _a = Object.assign(Object.assign({}, defaultProps), props), { title, visible, width, position, children, className, onClose } = _a, rest = __rest(_a, ["title", "visible", "width", "position", "children", "className", "onClose"]);
11
- const indent = props.indent ? Number(props.indent) : 20;
10
+ const _a = Object.assign(Object.assign({}, defaultProps), props), { title, visible, width, position, children, className, onClose, indent } = _a, rest = __rest(_a, ["title", "visible", "width", "position", "children", "className", "onClose", "indent"]);
11
+ const innerIndent = indent ? Number(indent) : 20;
12
12
  const [sidenavbarShow, setSidenavbarShow] = useState(true);
13
13
  const handleClick = () => {
14
14
  setSidenavbarShow(!sidenavbarShow);
@@ -27,13 +27,13 @@ const SideNavBar = (props) => {
27
27
  { className: `${classPrefix}-list ${sidenavbarShow ? "sidenavbar-show" : "sidenavbar-hide"}`, onClick: handleClick },
28
28
  React__default.createElement(
29
29
  "div",
30
- { className: `${classPrefix}-title ${classPrefix}-border-bt`, style: { paddingLeft: `${indent}px` } },
30
+ { className: `${classPrefix}-title ${classPrefix}-border-bt`, style: { paddingLeft: `${innerIndent}px` } },
31
31
  title,
32
32
  React__default.createElement("i", { className: `arrow-icon ${sidenavbarShow ? "arrow-up" : "arrow-down"}` })
33
33
  ),
34
34
  React__default.createElement(
35
35
  OffsetContext.Provider,
36
- { value: indent },
36
+ { value: innerIndent },
37
37
  React__default.createElement("div", { className: `${classPrefix}-content` }, children)
38
38
  )
39
39
  )
@@ -41,7 +41,6 @@ const SideNavBar = (props) => {
41
41
  )
42
42
  );
43
43
  };
44
- SideNavBar.defaultProps = defaultProps;
45
44
  SideNavBar.displayName = "NutSideNavBar";
46
45
  export {
47
46
  SideNavBar as S
@@ -52,7 +52,7 @@ const InternalSignature = (props, ref) => {
52
52
  }).exec((res) => {
53
53
  canvasToTempFilePath({
54
54
  canvas: res[0].node,
55
- fileType: props.type,
55
+ fileType: type,
56
56
  canvasId: `${canvasId}`,
57
57
  success: (res2) => {
58
58
  onConfirm && onConfirm(res2.tempFilePath);
@@ -129,7 +129,6 @@ const InternalSignature = (props, ref) => {
129
129
  );
130
130
  };
131
131
  const Signature = React__default.forwardRef(InternalSignature);
132
- Signature.defaultProps = defaultProps;
133
132
  Signature.displayName = "NutSignature";
134
133
  export {
135
134
  Signature as S
@@ -1,7 +1,7 @@
1
1
  import { _ as __rest } from "./tslib.es6-BZ8i9Q6l.js";
2
2
  import React__default from "react";
3
3
  import classNames from "classnames";
4
- import { A as Avatar } from "./avatar.taro-a6CX3kxV.js";
4
+ import { A as Avatar } from "./avatar.taro-Dx8hhvFI.js";
5
5
  import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
6
6
  const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { rows: 1, animated: false, title: false, avatar: false, avatarSize: "50px", visible: false, avatarShape: "round" });
7
7
  const Skeleton = (props) => {
@@ -46,7 +46,6 @@ const Skeleton = (props) => {
46
46
  )
47
47
  ));
48
48
  };
49
- Skeleton.defaultProps = defaultProps;
50
49
  Skeleton.displayName = "NutSkeleton";
51
50
  export {
52
51
  Skeleton as S
@@ -11,7 +11,6 @@ const Space = (props) => {
11
11
  return child !== null && child !== void 0 && React__default.createElement("div", { className: `${prefixCls}-item` }, child);
12
12
  }));
13
13
  };
14
- Space.defaultProps = defaultProps;
15
14
  Space.displayName = "NutSpace";
16
15
  export {
17
16
  Space as S
@@ -49,7 +49,6 @@ const Step = (props) => {
49
49
  )
50
50
  );
51
51
  };
52
- Step.defaultProps = defaultProps;
53
52
  Step.displayName = "NutStep";
54
53
  export {
55
54
  Step as S
@@ -13,7 +13,7 @@ const Steps = (props) => {
13
13
  const classPrefix = `nut-steps`;
14
14
  const classes = classNames(classPrefix, {
15
15
  [`${classPrefix}-${direction}`]: true,
16
- [`${classPrefix}-dot`]: !!props.dot
16
+ [`${classPrefix}-dot`]: !!dot
17
17
  }, className);
18
18
  return React__default.createElement(
19
19
  DataContext.Provider,
@@ -21,7 +21,6 @@ const Steps = (props) => {
21
21
  React__default.createElement("div", Object.assign({ className: classes }, restProps), children)
22
22
  );
23
23
  };
24
- Steps.defaultProps = defaultProps;
25
24
  Steps.displayName = "NutSteps";
26
25
  export {
27
26
  Steps as S
@@ -124,7 +124,6 @@ const Sticky = (props) => {
124
124
  }), ref: stickyRef, style: stickyStyle }, children)
125
125
  );
126
126
  };
127
- Sticky.defaultProps = defaultProps;
128
127
  Sticky.displayName = "NutSticky";
129
128
  export {
130
129
  Sticky as S
@@ -30,7 +30,6 @@ const Switch = (props) => {
30
30
  )
31
31
  );
32
32
  };
33
- Switch.defaultProps = defaultProps;
34
33
  Switch.displayName = "NutSwitch";
35
34
  export {
36
35
  Switch as S
@@ -2,7 +2,7 @@ import React__default from "react";
2
2
  import classNames from "classnames";
3
3
  import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
4
4
  import { u as usePropsValue } from "./use-props-value-SH9krhkx.js";
5
- import { a as TabbarContext, T as TabbarItem } from "./tabbaritem.taro-C_90fvMh.js";
5
+ import { a as TabbarContext, T as TabbarItem } from "./tabbaritem.taro-ptdJI0xv.js";
6
6
  const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { defaultValue: 0, fixed: false, inactiveColor: "", activeColor: "", safeArea: false, onSwitch: (value) => {
7
7
  } });
8
8
  const Tabbar = (props) => {
@@ -36,7 +36,6 @@ const Tabbar = (props) => {
36
36
  (fixed || safeArea) && React__default.createElement("div", { className: `${classPrefix}-safe-area` })
37
37
  );
38
38
  };
39
- Tabbar.defaultProps = defaultProps;
40
39
  Tabbar.displayName = "NutTabbar";
41
40
  Tabbar.Item = TabbarItem;
42
41
  export {
@@ -2,7 +2,7 @@ import { _ as __rest } from "./tslib.es6-BZ8i9Q6l.js";
2
2
  import React__default, { useContext } from "react";
3
3
  import classNames from "classnames";
4
4
  import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
5
- import { B as Badge } from "./badge.taro-B0spW6jr.js";
5
+ import { B as Badge } from "./badge.taro-DK_UFQ5Y.js";
6
6
  const TabbarContext = React__default.createContext(null);
7
7
  const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { title: "", icon: null, value: "", dot: false, max: 99, top: "0", right: "5" });
8
8
  const TabbarItem = (props) => {
@@ -106,7 +106,7 @@ const Table = (props) => {
106
106
  };
107
107
  const cellClasses = (item) => {
108
108
  return {
109
- [`${headerClassPrefix}-border`]: props.bordered,
109
+ [`${headerClassPrefix}-border`]: bordered,
110
110
  [`${headerClassPrefix}-align${item.align ? item.align : ""}`]: true
111
111
  };
112
112
  };
@@ -167,7 +167,6 @@ const Table = (props) => {
167
167
  (summary || innerValue.length === 0) && React__default.createElement("div", { className: `${classPrefix}-summary` }, summary || noData)
168
168
  );
169
169
  };
170
- Table.defaultProps = defaultProps;
171
170
  Table.displayName = "NutTable";
172
171
  export {
173
172
  Table as T
@@ -15,11 +15,11 @@ const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { tabSt
15
15
  const classPrefix = "nut-tabs";
16
16
  const Tabs = (props) => {
17
17
  const rtl = useRtl();
18
- const _a = Object.assign(Object.assign({}, defaultProps), props), { activeColor, tabStyle, direction, activeType, duration, align, title, name, children, onClick, onChange, className, autoHeight } = _a, rest = __rest(_a, ["activeColor", "tabStyle", "direction", "activeType", "duration", "align", "title", "name", "children", "onClick", "onChange", "className", "autoHeight"]);
18
+ const _a = Object.assign(Object.assign({}, defaultProps), props), { activeColor, tabStyle, direction, activeType, duration, align, title, name, children, onClick, onChange, className, autoHeight, value: outerValue, defaultValue: outerDefaultValue } = _a, rest = __rest(_a, ["activeColor", "tabStyle", "direction", "activeType", "duration", "align", "title", "name", "children", "onClick", "onChange", "className", "autoHeight", "value", "defaultValue"]);
19
19
  const uuid = useUuid();
20
20
  const [value, setValue] = usePropsValue({
21
- value: props.value,
22
- defaultValue: props.defaultValue,
21
+ value: outerValue,
22
+ defaultValue: outerDefaultValue,
23
23
  finalValue: 0,
24
24
  onChange
25
25
  });
@@ -113,7 +113,7 @@ const Tabs = (props) => {
113
113
  if (!titleRect)
114
114
  return;
115
115
  let to = 0;
116
- if (props.direction === "vertical") {
116
+ if (direction === "vertical") {
117
117
  const top = titleRects.slice(0, index).reduce((prev, curr) => prev + curr.height, 0);
118
118
  to = top - (navRectRef.current.height - titleRect.height) / 2;
119
119
  } else {
@@ -192,7 +192,6 @@ const Tabs = (props) => {
192
192
  )
193
193
  );
194
194
  };
195
- Tabs.defaultProps = defaultProps;
196
195
  Tabs.displayName = "NutTabs";
197
196
  Tabs.TabPane = TabPane;
198
197
  export {
@@ -49,7 +49,6 @@ const Tag = (props) => {
49
49
  } })
50
50
  ) : React__default.createElement("div", { className: classes, style: Object.assign(Object.assign({}, style), getStyle()), onClick: (e) => handleClick(e) }, children && React__default.createElement("span", { className: `${classPrefix}-text` }, children)));
51
51
  };
52
- Tag.defaultProps = defaultProps;
53
52
  Tag.displayName = "NutTag";
54
53
  export {
55
54
  Tag as T
@@ -86,7 +86,6 @@ const TextArea = (props) => {
86
86
  )
87
87
  );
88
88
  };
89
- TextArea.defaultProps = defaultProps;
90
89
  TextArea.displayName = "NutTextArea";
91
90
  export {
92
91
  TextArea as T
@@ -31,7 +31,6 @@ const TimeDetail = (props) => {
31
31
  active: isActive(item[optionKey.valueKey])
32
32
  }), key: item[optionKey.valueKey], onClick: () => onSelect(item) }, item[optionKey.textKey])));
33
33
  };
34
- TimeDetail.defaultProps = defaultProps;
35
34
  TimeDetail.displayName = "NutTimeDetail";
36
35
  export {
37
36
  TimeDetail as T
@@ -1,8 +1,8 @@
1
1
  import { _ as __rest } from "./tslib.es6-BZ8i9Q6l.js";
2
2
  import React__default, { useState } from "react";
3
3
  import classNames from "classnames";
4
- import { P as Popup } from "./popup.taro-B7_iPgl4.js";
5
- import { T as TimeDetail } from "./timedetail.taro-x6Zey1xi.js";
4
+ import { P as Popup } from "./popup.taro-cT6cbAxw.js";
5
+ import { T as TimeDetail } from "./timedetail.taro-ya5JNy2L.js";
6
6
  import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
7
7
  import { u as useConfig } from "./configprovider.taro-CyU_tvNJ.js";
8
8
  const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { visible: false, multiple: false, defaultValue: [], options: [], optionKey: {
@@ -93,7 +93,6 @@ const TimeSelect = (props) => {
93
93
  )
94
94
  );
95
95
  };
96
- TimeSelect.defaultProps = defaultProps;
97
96
  TimeSelect.displayName = "NutTimeSelect";
98
97
  export {
99
98
  TimeSelect as T
@@ -1,7 +1,7 @@
1
1
  import React__default, { useRef, useEffect } from "react";
2
2
  import classNames from "classnames";
3
3
  import { Success, Failure, Tips, Loading } from "@nutui/icons-react-taro";
4
- import { O as Overlay } from "./overlay.taro--1Kf1D7C.js";
4
+ import { O as Overlay } from "./overlay.taro-BJ3twlP0.js";
5
5
  import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
6
6
  import { b as useParams, u as useCustomEvent, a as useCustomEventsPath, c as customEvents } from "./use-custom-event-DuP4onEm.js";
7
7
  import { u as usePropsValue } from "./use-props-value-SH9krhkx.js";
@@ -2,7 +2,7 @@ import { _ as __rest } from "./tslib.es6-BZ8i9Q6l.js";
2
2
  import React__default, { useState, useEffect } from "react";
3
3
  import { Close } from "@nutui/icons-react-taro";
4
4
  import classNames from "classnames";
5
- import { P as Popover } from "./popover.taro-MnR5htLt.js";
5
+ import { P as Popover } from "./popover.taro-Dve2UnRF.js";
6
6
  import Taro, { createSelectorQuery } from "@tarojs/taro";
7
7
  import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
8
8
  import { useConfig } from "./ConfigProvider.js";
@@ -160,7 +160,6 @@ const Tour = (props) => {
160
160
  })
161
161
  );
162
162
  };
163
- Tour.defaultProps = defaultProps;
164
163
  Tour.displayName = "NutTour";
165
164
  export {
166
165
  Tour as T
@@ -51,7 +51,6 @@ const TrendArrow = (props) => {
51
51
  left && renderContent(!left)
52
52
  );
53
53
  };
54
- TrendArrow.defaultProps = defaultProps;
55
54
  TrendArrow.displayName = "NutTrendArrow";
56
55
  export {
57
56
  TrendArrow as T
@@ -9,7 +9,7 @@ import { a as isPromise } from "./index-DeNfBlua.js";
9
9
  import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
10
10
  import { u as usePropsValue } from "./use-props-value-SH9krhkx.js";
11
11
  import { Image } from "@tarojs/components";
12
- import { P as Progress } from "./progress.taro-rjiPI6mD.js";
12
+ import { P as Progress } from "./progress.taro-BFWQ2MvM.js";
13
13
  class UploadOptions {
14
14
  constructor() {
15
15
  this.url = "";
@@ -354,7 +354,7 @@ const InternalUploader = (props, ref) => {
354
354
  });
355
355
  };
356
356
  const task = new UploaderTaro(uploadOption);
357
- if (props.autoUpload) {
357
+ if (autoUpload) {
358
358
  task.uploadTaro(uploadFile, getEnv());
359
359
  } else {
360
360
  uploadQueue.push(new Promise((resolve, reject) => {
@@ -404,8 +404,8 @@ const InternalUploader = (props, ref) => {
404
404
  });
405
405
  };
406
406
  const filterFiles = (files) => {
407
- const maximum = props.maxCount * 1;
408
- const maximize = props.maxFileSize * 1;
407
+ const maximum = maxCount * 1;
408
+ const maximize = maxFileSize * 1;
409
409
  const oversizes = new Array();
410
410
  const filterFile = files.filter((file) => {
411
411
  if (file.size > maximize) {
@@ -484,7 +484,6 @@ const InternalUploader = (props, ref) => {
484
484
  );
485
485
  };
486
486
  const Uploader = React__default.forwardRef(InternalUploader);
487
- Uploader.defaultProps = defaultProps;
488
487
  Uploader.displayName = "NutUploader";
489
488
  export {
490
489
  Uploader as U
@@ -27,7 +27,6 @@ const Video = (props) => {
27
27
  React__default.createElement(Video$1, Object.assign({ className: "nut-video-player", muted: options.muted, autoplay: options.autoplay, loop: options.loop, poster: options.poster, controls: options.controls, src: source.src, onPlay, onPause, onEnded: onPlayEnd }, restProps))
28
28
  );
29
29
  };
30
- Video.defaultProps = defaultProps;
31
30
  Video.displayName = "NutVideo";
32
31
  export {
33
32
  Video as V
@@ -87,7 +87,6 @@ const VirtualList = (props) => {
87
87
  const pos = initPositinoCache(itemHeight + margin, list.length);
88
88
  setPositions(pos);
89
89
  }, [itemHeight, list]);
90
- const prevListLength = useRef(list.length);
91
90
  const getContainerHeight = () => {
92
91
  const initH = (itemHeight + margin) * list.length;
93
92
  return initH < clientHeight ? initH + overscan * (itemHeight + margin) - 5 : Math.min(containerHeight, clientHeight);
@@ -124,9 +123,8 @@ const VirtualList = (props) => {
124
123
  start.current = Math.floor(scrollTop / (itemHeight + margin));
125
124
  setStartOffset(scrollTop - scrollTop % (itemHeight + margin));
126
125
  const endIndex = end();
127
- if (endIndex > list.length - 1 && prevListLength.current < list.length) {
126
+ if (endIndex > list.length - 1) {
128
127
  onScroll && onScroll();
129
- prevListLength.current = list.length;
130
128
  }
131
129
  };
132
130
  return React__default.createElement(
@@ -150,7 +148,6 @@ const VirtualList = (props) => {
150
148
  )
151
149
  );
152
150
  };
153
- VirtualList.defaultProps = defaultProps;
154
151
  VirtualList.displayName = "NutVirtualList";
155
152
  export {
156
153
  VirtualList as V
@@ -76,7 +76,6 @@ const WaterMark = (props) => {
76
76
  };
77
77
  return React__default.createElement("div", { className: cls, style: Object.assign({ zIndex, backgroundSize: `${gapX + width}px`, backgroundImage: `url('${base64Url}')` }, style) });
78
78
  };
79
- WaterMark.defaultProps = defaultProps;
80
79
  WaterMark.displayName = "NutWaterMark";
81
80
  export {
82
81
  WaterMark as W
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react-taro v2.6.3 Tue Apr 30 2024 14:13:52 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react-taro v2.6.5 Fri May 17 2024 15:40:11 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react-taro v2.6.3 Tue Apr 30 2024 14:13:52 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react-taro v2.6.5 Fri May 17 2024 15:40:11 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react-taro v2.6.3 Tue Apr 30 2024 14:13:52 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react-taro v2.6.5 Fri May 17 2024 15:40:11 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react-taro v2.6.3 Tue Apr 30 2024 14:13:52 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react-taro v2.6.5 Fri May 17 2024 15:40:11 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react-taro v2.6.3 Tue Apr 30 2024 14:13:52 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react-taro v2.6.5 Fri May 17 2024 15:40:11 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react-taro v2.6.3 Tue Apr 30 2024 14:13:52 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react-taro v2.6.5 Fri May 17 2024 15:40:11 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react-taro v2.6.3 Tue Apr 30 2024 14:13:52 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react-taro v2.6.5 Fri May 17 2024 15:40:11 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */