@nutui/nutui-react-taro 2.3.11 → 2.3.12

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 (332) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/esm/ActionSheet.js +1 -13
  3. package/dist/esm/Address.js +1 -21
  4. package/dist/esm/Animate.js +1 -4
  5. package/dist/esm/AnimatingNumbers.js +8 -22
  6. package/dist/esm/Audio.js +1 -15
  7. package/dist/esm/Avatar.js +1 -10
  8. package/dist/esm/AvatarCropper.js +1 -10
  9. package/dist/esm/AvatarGroup.js +1 -4
  10. package/dist/esm/BackTop.js +1 -6
  11. package/dist/esm/Badge.js +1 -4
  12. package/dist/esm/Barrage.js +1 -7
  13. package/dist/esm/Button.js +1 -6
  14. package/dist/esm/Calendar.js +1 -20
  15. package/dist/esm/CalendarCard.js +1 -8
  16. package/dist/esm/CalendarItem.js +1 -12
  17. package/dist/esm/Card.js +1 -7
  18. package/dist/esm/Cascader.js +1 -18
  19. package/dist/esm/Cell.js +1 -5
  20. package/dist/esm/CellGroup.js +1 -4
  21. package/dist/esm/Checkbox.js +1 -7
  22. package/dist/esm/CheckboxGroup.js +1 -7
  23. package/dist/esm/CircleProgress.js +1 -6
  24. package/dist/esm/Col.js +1 -5
  25. package/dist/esm/Collapse.js +1 -8
  26. package/dist/esm/CollapseItem.js +1 -5
  27. package/dist/esm/ConfigProvider.js +4 -6
  28. package/dist/esm/CountDown.js +1 -7
  29. package/dist/esm/DatePicker.js +1 -21
  30. package/dist/esm/Dialog.js +1 -16
  31. package/dist/esm/Divider.js +1 -4
  32. package/dist/esm/Drag.js +1 -4
  33. package/dist/esm/Elevator.js +1 -6
  34. package/dist/esm/Ellipsis.js +1 -7
  35. package/dist/esm/Empty.js +1 -9
  36. package/dist/esm/FixedNav.js +1 -13
  37. package/dist/esm/Form.js +7 -18
  38. package/dist/esm/FormItem.js +1 -6
  39. package/dist/esm/Grid.js +1 -7
  40. package/dist/esm/GridItem.js +1 -6
  41. package/dist/esm/Image.js +1 -7
  42. package/dist/esm/ImagePreview.js +1 -20
  43. package/dist/esm/Indicator.js +1 -3
  44. package/dist/esm/InfiniteLoading.js +1 -8
  45. package/dist/esm/Input.js +1 -11
  46. package/dist/esm/InputNumber.js +1 -7
  47. package/dist/esm/Layout.js +1 -2
  48. package/dist/esm/Loading.js +1 -5
  49. package/dist/esm/Menu.js +1 -15
  50. package/dist/esm/MenuItem.js +1 -14
  51. package/dist/esm/NavBar.js +1 -7
  52. package/dist/esm/NoticeBar.js +1 -7
  53. package/dist/esm/Notify.js +1 -9
  54. package/dist/esm/NumberKeyboard.js +1 -15
  55. package/dist/esm/Overlay.js +1 -9
  56. package/dist/esm/Pagination.js +1 -8
  57. package/dist/esm/Picker.js +1 -19
  58. package/dist/esm/Popover.js +1 -14
  59. package/dist/esm/Popup.js +1 -12
  60. package/dist/esm/Price.js +1 -3
  61. package/dist/esm/Progress.js +1 -4
  62. package/dist/esm/PullToRefresh.js +1 -10
  63. package/dist/esm/Radio.js +1 -7
  64. package/dist/esm/RadioGroup.js +1 -7
  65. package/dist/esm/Range.js +1 -10
  66. package/dist/esm/Rate.js +1 -11
  67. package/dist/esm/Row.js +1 -5
  68. package/dist/esm/SafeArea.js +1 -3
  69. package/dist/esm/SearchBar.js +1 -7
  70. package/dist/esm/ShortPassword.js +1 -17
  71. package/dist/esm/SideNavBar.js +1 -14
  72. package/dist/esm/SideNavBarItem.js +1 -2
  73. package/dist/esm/Signature.js +1 -4
  74. package/dist/esm/Skeleton.js +1 -11
  75. package/dist/esm/Space.js +1 -3
  76. package/dist/esm/Step.js +1 -6
  77. package/dist/esm/Steps.js +1 -5
  78. package/dist/esm/Sticky.js +1 -7
  79. package/dist/esm/SubSideNavBar.js +1 -3
  80. package/dist/esm/Swipe.js +1 -8
  81. package/dist/esm/Swiper.js +9 -11
  82. package/dist/esm/SwiperItem.js +1 -2
  83. package/dist/esm/Switch.js +1 -5
  84. package/dist/esm/TabPane.js +1 -3
  85. package/dist/esm/Tabbar.js +1 -8
  86. package/dist/esm/TabbarItem.js +1 -5
  87. package/dist/esm/Table.js +1 -9
  88. package/dist/esm/Tabs.js +1 -11
  89. package/dist/esm/Tag.js +1 -5
  90. package/dist/esm/TextArea.js +1 -10
  91. package/dist/esm/TimeDetail.js +1 -4
  92. package/dist/esm/TimeSelect.js +1 -16
  93. package/dist/esm/Toast.js +1 -15
  94. package/dist/esm/Tour.js +1 -16
  95. package/dist/esm/TrendArrow.js +1 -4
  96. package/dist/esm/Uploader.js +1 -14
  97. package/dist/esm/Video.js +1 -4
  98. package/dist/esm/VirtualList.js +1 -6
  99. package/dist/esm/WaterMark.js +1 -7
  100. package/dist/esm/{actionsheet.taro-kKhb0Vwt.js → actionsheet.taro-C5BqWoML.js} +9 -17
  101. package/dist/esm/{address.taro-zQuxQEce.js → address.taro-DjlXNWie.js} +19 -44
  102. package/dist/esm/{animate.taro-m67VyUHP.js → animate.taro-Dg9jxZEu.js} +6 -14
  103. package/dist/esm/{audio.taro-dJgj5qIu.js → audio.taro-DXxWGngO.js} +14 -30
  104. package/dist/esm/avatar.taro-a6CX3kxV.js +86 -0
  105. package/dist/esm/{avatarcropper.taro-GIZxzMJ_.js → avatarcropper.taro-BFvFmK4t.js} +47 -90
  106. package/dist/esm/{avatargroup.taro-h6dpv6UX.js → avatargroup.taro-bpT5kPbf.js} +3 -11
  107. package/dist/esm/{backtop.taro-Cfld7ina.js → backtop.taro-B-zl6AEC.js} +4 -15
  108. package/dist/esm/{badge.taro-993L861f.js → badge.taro-CyDqBb9Z.js} +4 -15
  109. package/dist/esm/{barrage.taro-6nbq7wtt.js → barrage.taro-BNOcZsJ1.js} +18 -28
  110. package/dist/esm/{button.taro-3IIFy1M2.js → button.taro-OKGsDVW7.js} +8 -23
  111. package/dist/esm/{calendar.taro-iNNHje7V.js → calendar.taro-DbHJEx4G.js} +12 -39
  112. package/dist/esm/{calendarcard.taro-9s7naGmU.js → calendarcard.taro-BHGCq5zX.js} +10 -14
  113. package/dist/esm/{calendaritem.taro-o6Z8OOGY.js → calendaritem.taro-B8tN2DYa.js} +11 -36
  114. package/dist/esm/{card.taro-p4PTy-IU.js → card.taro-uLorQW97.js} +7 -22
  115. package/dist/esm/{cascader.taro-M2nZWxiB.js → cascader.taro-CpofskUL.js} +47 -83
  116. package/dist/esm/{cell.taro-jD6MoFTj.js → cell.taro-CCnLF6RC.js} +9 -23
  117. package/dist/esm/{cellgroup.taro-08A3XAze.js → cellgroup.taro-Dz69kT6e.js} +5 -12
  118. package/dist/esm/{checkbox.taro-xMxWdpyI.js → checkbox.taro-D9F_HM7f.js} +19 -29
  119. package/dist/esm/{circleprogress.taro-myZgamBw.js → circleprogress.taro-CKSrzt8Q.js} +8 -22
  120. package/dist/esm/{col.taro-5FMpttLE.js → col.taro-C8DUuJYh.js} +5 -13
  121. package/dist/esm/{collapse.taro-sZibDygv.js → collapse.taro-BM0BsN30.js} +5 -14
  122. package/dist/esm/{collapseitem.taro-AaQ_msgd.js → collapseitem.taro-D_m4VEdG.js} +7 -16
  123. package/dist/esm/configprovider.taro-CyU_tvNJ.js +202 -0
  124. package/dist/esm/{countdown.taro-XZlfWBrA.js → countdown.taro-Dfa9kpmZ.js} +8 -18
  125. package/dist/esm/{datepicker.taro-DrXkqJkN.js → datepicker.taro-DshCn7Rn.js} +13 -25
  126. package/dist/esm/{dialog.taro-dmQGDu3o.js → dialog.taro-xsQhsC1V.js} +19 -19
  127. package/dist/esm/{divider.taro-H5fKry4P.js → divider.taro-DRcO_m9e.js} +5 -11
  128. package/dist/esm/{drag.taro-BwcleRuB.js → drag.taro-CcHIO07Y.js} +10 -18
  129. package/dist/esm/{elevator.taro-2nbUM3vH.js → elevator.taro-uhrF7ChY.js} +5 -17
  130. package/dist/esm/{ellipsis.taro-VApVqS_j.js → ellipsis.taro-B_mTyNyk.js} +25 -34
  131. package/dist/esm/{empty.taro-gwvOr1xf.js → empty.taro-Brkv6B2Z.js} +8 -18
  132. package/dist/esm/{fixednav.taro-QVBXysDj.js → fixednav.taro-WTBxWxOo.js} +10 -21
  133. package/dist/esm/formitem.taro-Brz5dj_8.js +330 -0
  134. package/dist/esm/{get-rect-by-taro-piSHvCGp.js → get-rect-by-taro-CSN0TGnD.js} +3 -2
  135. package/dist/esm/{grid.taro-3X-_AhXw.js → grid.taro-BA76RrgT.js} +5 -4
  136. package/dist/esm/{griditem.taro-TJDJVeQy.js → griditem.taro-JLddv9zD.js} +6 -11
  137. package/dist/esm/{image.taro-FfeikBlO.js → image.taro-BLz2WCva.js} +5 -6
  138. package/dist/esm/{imagepreview.taro--fVrJUOE.js → imagepreview.taro-Bb1TkBCV.js} +13 -31
  139. package/dist/esm/{indicator.taro-ZH6MICsS.js → indicator.taro-CpHZtD9p.js} +3 -5
  140. package/dist/esm/{infiniteloading.taro-BO0_y46K.js → infiniteloading.taro-Ccq4bEzk.js} +14 -21
  141. package/dist/esm/{input.taro-xCoGdppk.js → input.taro-BVC8gEuk.js} +14 -31
  142. package/dist/esm/{inputnumber.taro-WPpS0Xl9.js → inputnumber.taro-F3jNGr_V.js} +16 -27
  143. package/dist/esm/{layout.taro-lnN-wB0Y.js → layout.taro-BE2868d6.js} +1 -1
  144. package/dist/esm/{loading.taro-aHN6xLIT.js → loading.taro-CRF1z5wQ.js} +5 -8
  145. package/dist/esm/{menu.taro-ODwHYGFM.js → menu.taro-BAiJPGR7.js} +12 -25
  146. package/dist/esm/{menuitem.taro-9nyTDLpt.js → menuitem.taro-oLv6ZYC5.js} +15 -36
  147. package/dist/esm/{navbar.taro-AuKPDCaW.js → navbar.taro-B8u3DOE4.js} +14 -29
  148. package/dist/esm/{noticebar.taro-bHnEzTvL.js → noticebar.taro-CMdfOp2g.js} +16 -32
  149. package/dist/esm/{notify.taro-mA9KS8qh.js → notify.taro-jP7y9zMU.js} +6 -15
  150. package/dist/esm/{numberkeyboard.taro-bF6VCXry.js → numberkeyboard.taro-B9rMgy7D.js} +9 -16
  151. package/dist/esm/nutui-react.es.js +93 -118
  152. package/dist/esm/{overlay.taro-HsGeVyPh.js → overlay.taro-BaBu-3-F.js} +10 -22
  153. package/dist/esm/{pagination.taro-C4_Ey5KC.js → pagination.taro-DAK6ddag.js} +7 -19
  154. package/dist/esm/{picker.taro-csU3SZPF.js → picker.taro-Cmng9GW9.js} +34 -43
  155. package/dist/esm/{popover.taro-qldQwLPC.js → popover.taro-CcKwnX27.js} +23 -41
  156. package/dist/esm/{popup.taro-ObEUml4r.js → popup.taro-Iy_WQZ-m.js} +8 -32
  157. package/dist/esm/{price.taro-Z1zR8YWV.js → price.taro-UVRHPHRD.js} +5 -16
  158. package/dist/esm/{progress.taro-pStvlrbA.js → progress.taro-BOHykt7X.js} +8 -14
  159. package/dist/esm/{pulltorefresh.taro-2jER8Mat.js → pulltorefresh.taro-BJdQj5sL.js} +31 -47
  160. package/dist/esm/{radio.taro-EKJXMjnX.js → radio.taro-CjJgX9o2.js} +20 -33
  161. package/dist/esm/{range.taro-mDYY3SXA.js → range.taro-BxMDs5Cy.js} +20 -22
  162. package/dist/esm/{rate.taro-_5Mjd_EO.js → rate.taro-BABLqt4h.js} +7 -20
  163. package/dist/esm/{row.taro-IxNlKKQM.js → row.taro-D8chDydP.js} +4 -14
  164. package/dist/esm/{searchbar.taro-hVzdT6nI.js → searchbar.taro-PfVx6o-6.js} +9 -26
  165. package/dist/esm/{shortpassword.taro-JBWXzk6I.js → shortpassword.taro-BXsxku33.js} +9 -19
  166. package/dist/esm/{sidenavbar.taro-8qoGZg5n.js → sidenavbar.taro-eK5vaZPR.js} +7 -13
  167. package/dist/esm/sidenavbaritem.taro-L7HbsCLn.js +14 -0
  168. package/dist/esm/{signature.taro-y3qxnKMv.js → signature.taro-KPm_xs66.js} +11 -19
  169. package/dist/esm/{skeleton.taro--AtiA7MK.js → skeleton.taro-BwIDIf2p.js} +6 -17
  170. package/dist/esm/{space.taro-q3R_yq79.js → space.taro-CZ999etm.js} +1 -4
  171. package/dist/esm/{step.taro-_DEZqFGb.js → step.taro-DLr2GzYk.js} +8 -16
  172. package/dist/esm/steps.taro-C8Yg1Sns.js +28 -0
  173. package/dist/esm/{sticky.taro-p-evMNR-.js → sticky.taro-DRBk3gkQ.js} +12 -15
  174. package/dist/esm/{subsidenavbar.taro-Zy52MDDG.js → subsidenavbar.taro-ByxYpgfP.js} +7 -9
  175. package/dist/esm/{swipe.taro-p2ONOq1o.js → swipe.taro-wm7YWwaj.js} +29 -31
  176. package/dist/esm/{swiperitem.taro-BC1CE0T-.js → swiperitem.taro-8JXI24f0.js} +3 -1
  177. package/dist/esm/{switch.taro-L0BAbMeu.js → switch.taro-D1HgJoJz.js} +6 -13
  178. package/dist/esm/{tabbar.taro-QE0rjSKE.js → tabbar.taro-8_SmJofa.js} +7 -18
  179. package/dist/esm/tabbaritem.taro-Cb-yfOln.js +58 -0
  180. package/dist/esm/{table.taro-0zRh2hq6.js → table.taro-0BcEBB0F.js} +7 -18
  181. package/dist/esm/{tabpane.taro-5k7wWimS.js → tabpane.taro-BAe86j3t.js} +1 -4
  182. package/dist/esm/{tabs.taro-Yj7vgtSg.js → tabs.taro-HgAoKBAc.js} +14 -30
  183. package/dist/esm/{tag.taro-5KC_wObY.js → tag.taro-BsmY5QfN.js} +7 -22
  184. package/dist/esm/{textarea.taro-9zQLTCwU.js → textarea.taro-BJIFCpKb.js} +11 -20
  185. package/dist/esm/{timedetail.taro-TF9Wcblh.js → timedetail.taro-x6Zey1xi.js} +11 -21
  186. package/dist/esm/{timeselect.taro-j8LgSCe5.js → timeselect.taro-BXq4APSJ.js} +20 -33
  187. package/dist/esm/{toast.taro-xnEQSCDJ.js → toast.taro-BIR_7Wgb.js} +8 -26
  188. package/dist/esm/{tour.taro-CGEjzzN_.js → tour.taro-CMagdKcp.js} +7 -24
  189. package/dist/esm/{trendarrow.taro-hsM6-XsQ.js → trendarrow.taro-BHUetKSS.js} +6 -18
  190. package/dist/esm/tslib.es6-BZ8i9Q6l.js +47 -0
  191. package/dist/esm/types/src/packages/button/demos/h5/demo1.d.ts +3 -0
  192. package/dist/esm/types/src/packages/button/demos/h5/demo2.d.ts +3 -0
  193. package/dist/esm/types/src/packages/button/demos/h5/demo3.d.ts +3 -0
  194. package/dist/esm/types/src/packages/button/demos/h5/demo4.d.ts +3 -0
  195. package/dist/esm/types/src/packages/button/demos/h5/demo5.d.ts +3 -0
  196. package/dist/esm/types/src/packages/button/demos/h5/demo6.d.ts +3 -0
  197. package/dist/esm/types/src/packages/button/demos/h5/demo7.d.ts +3 -0
  198. package/dist/esm/types/src/packages/button/demos/h5/demo8.d.ts +3 -0
  199. package/dist/esm/types/src/packages/button/demos/h5/demo9.d.ts +3 -0
  200. package/dist/esm/types/src/packages/button/demos/taro/demo1.d.ts +3 -0
  201. package/dist/esm/types/src/packages/button/demos/taro/demo10.d.ts +3 -0
  202. package/dist/esm/types/src/packages/button/demos/taro/demo2.d.ts +3 -0
  203. package/dist/esm/types/src/packages/button/demos/taro/demo3.d.ts +3 -0
  204. package/dist/esm/types/src/packages/button/demos/taro/demo4.d.ts +3 -0
  205. package/dist/esm/types/src/packages/button/demos/taro/demo5.d.ts +3 -0
  206. package/dist/esm/types/src/packages/button/demos/taro/demo6.d.ts +3 -0
  207. package/dist/esm/types/src/packages/button/demos/taro/demo7.d.ts +3 -0
  208. package/dist/esm/types/src/packages/button/demos/taro/demo8.d.ts +3 -0
  209. package/dist/esm/types/src/packages/button/demos/taro/demo9.d.ts +3 -0
  210. package/dist/esm/types/src/packages/configprovider/configprovider.d.ts +1 -0
  211. package/dist/esm/types/src/packages/configprovider/configprovider.taro.d.ts +1 -0
  212. package/dist/esm/types/src/packages/configprovider/index.d.ts +2 -2
  213. package/dist/esm/types/src/packages/configprovider/index.taro.d.ts +2 -2
  214. package/dist/esm/types/src/packages/inputnumber/inputnumber.taro.d.ts +2 -0
  215. package/dist/esm/{uploader.taro-bRF02TR9.js → uploader.taro-CuaIVvya.js} +47 -99
  216. package/dist/esm/{use-custom-event-XvsODK8c.js → use-custom-event-DuP4onEm.js} +5 -5
  217. package/dist/esm/{use-props-value-vKr0R0AX.js → use-props-value-SH9krhkx.js} +2 -2
  218. package/dist/esm/{video.taro-csvHwS2v.js → video.taro-CEMVfhCS.js} +3 -5
  219. package/dist/esm/{virtuallist.taro-AeTVtFFa.js → virtuallist.taro-C5vZAyza.js} +7 -17
  220. package/dist/esm/{watermark.taro-nvSmcwu-.js → watermark.taro-BxM8VfXb.js} +5 -30
  221. package/dist/locales/base.js +1 -1
  222. package/dist/locales/en-US.js +1 -1
  223. package/dist/locales/id-ID.js +1 -1
  224. package/dist/locales/tr-TR.js +1 -1
  225. package/dist/locales/zh-CN.js +1 -1
  226. package/dist/locales/zh-TW.js +1 -1
  227. package/dist/locales/zh-UG.js +1 -1
  228. package/dist/nutui.react.es.js +305 -332
  229. package/dist/nutui.react.umd.js +306 -333
  230. package/dist/style.mjs +1 -1
  231. package/dist/styles/variables-jmapp.scss +4 -0
  232. package/dist/types/index.d.ts +98 -98
  233. package/dist/types/packages/actionsheet/actionsheet.d.ts +1 -1
  234. package/dist/types/packages/actionsheet/actionsheet.taro.d.ts +1 -1
  235. package/dist/types/packages/address/address.d.ts +1 -1
  236. package/dist/types/packages/address/address.taro.d.ts +1 -1
  237. package/dist/types/packages/address/customRender.d.ts +1 -1
  238. package/dist/types/packages/address/customRender.taro.d.ts +1 -1
  239. package/dist/types/packages/avatar/avatar.d.ts +1 -1
  240. package/dist/types/packages/avatar/avatar.taro.d.ts +1 -1
  241. package/dist/types/packages/button/demos/h5/demo1.d.ts +3 -0
  242. package/dist/types/packages/button/demos/h5/demo2.d.ts +3 -0
  243. package/dist/types/packages/button/demos/h5/demo3.d.ts +3 -0
  244. package/dist/types/packages/button/demos/h5/demo4.d.ts +3 -0
  245. package/dist/types/packages/button/demos/h5/demo5.d.ts +3 -0
  246. package/dist/types/packages/button/demos/h5/demo6.d.ts +3 -0
  247. package/dist/types/packages/button/demos/h5/demo7.d.ts +3 -0
  248. package/dist/types/packages/button/demos/h5/demo8.d.ts +3 -0
  249. package/dist/types/packages/button/demos/h5/demo9.d.ts +3 -0
  250. package/dist/types/packages/button/demos/taro/demo1.d.ts +3 -0
  251. package/dist/types/packages/button/demos/taro/demo10.d.ts +3 -0
  252. package/dist/types/packages/button/demos/taro/demo2.d.ts +3 -0
  253. package/dist/types/packages/button/demos/taro/demo3.d.ts +3 -0
  254. package/dist/types/packages/button/demos/taro/demo4.d.ts +3 -0
  255. package/dist/types/packages/button/demos/taro/demo5.d.ts +3 -0
  256. package/dist/types/packages/button/demos/taro/demo6.d.ts +3 -0
  257. package/dist/types/packages/button/demos/taro/demo7.d.ts +3 -0
  258. package/dist/types/packages/button/demos/taro/demo8.d.ts +3 -0
  259. package/dist/types/packages/button/demos/taro/demo9.d.ts +3 -0
  260. package/dist/types/packages/calendaritem/calendaritem.d.ts +1 -1
  261. package/dist/types/packages/calendaritem/calendaritem.taro.d.ts +1 -1
  262. package/dist/types/packages/cascader/cascader.d.ts +1 -1
  263. package/dist/types/packages/cascader/cascader.taro.d.ts +1 -1
  264. package/dist/types/packages/cell/cell.d.ts +1 -1
  265. package/dist/types/packages/cell/cell.taro.d.ts +1 -1
  266. package/dist/types/packages/checkbox/checkbox.d.ts +2 -2
  267. package/dist/types/packages/checkbox/checkbox.taro.d.ts +2 -2
  268. package/dist/types/packages/checkboxgroup/checkboxgroup.d.ts +2 -2
  269. package/dist/types/packages/checkboxgroup/checkboxgroup.taro.d.ts +2 -2
  270. package/dist/types/packages/configprovider/configprovider.d.ts +1 -0
  271. package/dist/types/packages/configprovider/configprovider.taro.d.ts +1 -0
  272. package/dist/types/packages/configprovider/index.d.ts +2 -2
  273. package/dist/types/packages/configprovider/index.taro.d.ts +2 -2
  274. package/dist/types/packages/datepicker/datepicker.d.ts +1 -1
  275. package/dist/types/packages/datepicker/datepicker.taro.d.ts +1 -1
  276. package/dist/types/packages/dialog/dialogwrap.d.ts +1 -1
  277. package/dist/types/packages/empty/empty.d.ts +1 -1
  278. package/dist/types/packages/empty/empty.taro.d.ts +15 -3
  279. package/dist/types/packages/fixednav/fixednav.d.ts +1 -1
  280. package/dist/types/packages/fixednav/fixednav.taro.d.ts +1 -1
  281. package/dist/types/packages/form/form.d.ts +1 -1
  282. package/dist/types/packages/form/form.taro.d.ts +1 -1
  283. package/dist/types/packages/form/index.d.ts +1 -1
  284. package/dist/types/packages/form/index.taro.d.ts +1 -1
  285. package/dist/types/packages/inputnumber/inputnumber.taro.d.ts +6 -0
  286. package/dist/types/packages/menu/menu.d.ts +1 -1
  287. package/dist/types/packages/menu/menu.taro.d.ts +1 -1
  288. package/dist/types/packages/numberkeyboard/numberkeyboard.d.ts +1 -1
  289. package/dist/types/packages/numberkeyboard/numberkeyboard.taro.d.ts +1 -1
  290. package/dist/types/packages/nutui.react.build.d.ts +98 -98
  291. package/dist/types/packages/nutui.react.d.ts +98 -98
  292. package/dist/types/packages/nutui.react.taro.d.ts +98 -98
  293. package/dist/types/packages/picker/picker.d.ts +1 -1
  294. package/dist/types/packages/picker/picker.taro.d.ts +1 -1
  295. package/dist/types/packages/popover/popover.d.ts +1 -1
  296. package/dist/types/packages/popover/popover.taro.d.ts +1 -1
  297. package/dist/types/packages/popup/popup.d.ts +1 -1
  298. package/dist/types/packages/popup/popup.taro.d.ts +1 -1
  299. package/dist/types/packages/radio/radio.d.ts +2 -2
  300. package/dist/types/packages/radio/radio.taro.d.ts +2 -2
  301. package/dist/types/packages/shortpassword/shortpassword.d.ts +1 -1
  302. package/dist/types/packages/shortpassword/shortpassword.taro.d.ts +1 -1
  303. package/dist/types/packages/swiper/index.d.ts +1 -1
  304. package/dist/types/packages/swiper/index.taro.d.ts +1 -1
  305. package/dist/types/packages/tabs/tabs.d.ts +1 -1
  306. package/dist/types/packages/tabs/tabs.taro.d.ts +1 -1
  307. package/dist/types/packages/timedetail/timedetail.d.ts +1 -1
  308. package/dist/types/packages/timedetail/timedetail.taro.d.ts +1 -1
  309. package/dist/types/packages/tour/tour.d.ts +1 -1
  310. package/dist/types/packages/tour/tour.taro.d.ts +1 -1
  311. package/package.json +5 -1
  312. package/dist/esm/avatar.taro-7ltbzIdY.js +0 -109
  313. package/dist/esm/configprovider.taro-q5J2gQbi.js +0 -486
  314. package/dist/esm/formitem.taro-viaUkMmm.js +0 -1435
  315. package/dist/esm/index-oitVOJp9.js +0 -661
  316. package/dist/esm/sidenavbaritem.taro-AxJNRAdi.js +0 -13
  317. package/dist/esm/steps.taro-PH0qWPla.js +0 -32
  318. package/dist/esm/tabbaritem.taro-t9C07OYX.js +0 -73
  319. /package/dist/esm/{UserContext-9BL0cq8w.js → UserContext-BlM0373q.js} +0 -0
  320. /package/dist/esm/{context-6mGEMLsx.js → context-4T-L2x0_.js} +0 -0
  321. /package/dist/esm/{context-9BL0cq8w.js → context-BlM0373q.js} +0 -0
  322. /package/dist/esm/{date-nxKOxj5-.js → date-D0pth0qC.js} +0 -0
  323. /package/dist/esm/{get-scroll-parent-uywvoQMl.js → get-scroll-parent-DB1VRg11.js} +0 -0
  324. /package/dist/esm/{index-YvHA__3D.js → index-DeNfBlua.js} +0 -0
  325. /package/dist/esm/{pad-zero-iY-0-oys.js → pad-zero-B2OUQfh7.js} +0 -0
  326. /package/dist/esm/{px-check-JiWLYN2v.js → px-check-D1Xbd9pj.js} +0 -0
  327. /package/dist/esm/{raf-UzmDvMUW.js → raf-zwv-SBjP.js} +0 -0
  328. /package/dist/esm/{safearea.taro-afu_mY7g.js → safearea.taro-BMQHr7tu.js} +0 -0
  329. /package/dist/esm/{typings-buMpDfSR.js → typings-DV9RBfhj.js} +0 -0
  330. /package/dist/esm/{use-force-update-0oEVD8Nr.js → use-force-update-CudFjCsy.js} +0 -0
  331. /package/dist/esm/{use-refs-IdrY0ww3.js → use-refs-BeEmziIR.js} +0 -0
  332. /package/dist/esm/{use-touch-BUFdkOSA.js → use-touch-OfEaR5qi.js} +0 -0
@@ -1,14 +1,8 @@
1
1
  (function(global2, factory) {
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
- "use strict";var __defProp = Object.defineProperty;
5
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6
- var __publicField = (obj, key, value) => {
7
- __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
8
- return value;
9
- };
10
- /*!
11
- * @nutui/nutui-react-taro v2.3.11 Fri Feb 23 2024 19:40:58 GMT+0800 (China Standard Time)
4
+ "use strict";/*!
5
+ * @nutui/nutui-react-taro v2.3.12 Fri Mar 01 2024 16:07:31 GMT+0800 (China Standard Time)
12
6
  * (c) 2023 @jdf2e.
13
7
  * Released under the MIT License.
14
8
  */
@@ -44,34 +38,44 @@ var __publicField = (obj, key, value) => {
44
38
  (function() {
45
39
  var hasOwn = {}.hasOwnProperty;
46
40
  function classNames2() {
47
- var classes = [];
41
+ var classes = "";
48
42
  for (var i2 = 0; i2 < arguments.length; i2++) {
49
43
  var arg = arguments[i2];
50
- if (!arg)
51
- continue;
52
- var argType = typeof arg;
53
- if (argType === "string" || argType === "number") {
54
- classes.push(arg);
55
- } else if (Array.isArray(arg)) {
56
- if (arg.length) {
57
- var inner = classNames2.apply(null, arg);
58
- if (inner) {
59
- classes.push(inner);
60
- }
61
- }
62
- } else if (argType === "object") {
63
- if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes("[native code]")) {
64
- classes.push(arg.toString());
65
- continue;
66
- }
67
- for (var key in arg) {
68
- if (hasOwn.call(arg, key) && arg[key]) {
69
- classes.push(key);
70
- }
71
- }
44
+ if (arg) {
45
+ classes = appendClass(classes, parseValue(arg));
46
+ }
47
+ }
48
+ return classes;
49
+ }
50
+ function parseValue(arg) {
51
+ if (typeof arg === "string" || typeof arg === "number") {
52
+ return arg;
53
+ }
54
+ if (typeof arg !== "object") {
55
+ return "";
56
+ }
57
+ if (Array.isArray(arg)) {
58
+ return classNames2.apply(null, arg);
59
+ }
60
+ if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes("[native code]")) {
61
+ return arg.toString();
62
+ }
63
+ var classes = "";
64
+ for (var key in arg) {
65
+ if (hasOwn.call(arg, key) && arg[key]) {
66
+ classes = appendClass(classes, key);
72
67
  }
73
68
  }
74
- return classes.join(" ");
69
+ return classes;
70
+ }
71
+ function appendClass(value, newClass) {
72
+ if (!newClass) {
73
+ return value;
74
+ }
75
+ if (value) {
76
+ return value + " " + newClass;
77
+ }
78
+ return value + newClass;
75
79
  }
76
80
  if (module2.exports) {
77
81
  classNames2.default = classNames2;
@@ -763,8 +767,8 @@ var __publicField = (obj, key, value) => {
763
767
  var reIsNative = RegExp(
764
768
  "^" + funcToString.call(hasOwnProperty).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
765
769
  );
766
- var Buffer2 = moduleExports ? root2.Buffer : void 0, Symbol2 = root2.Symbol, Uint8Array2 = root2.Uint8Array, propertyIsEnumerable = objectProto2.propertyIsEnumerable, splice = arrayProto.splice, symToStringTag = Symbol2 ? Symbol2.toStringTag : void 0;
767
- var nativeGetSymbols = Object.getOwnPropertySymbols, nativeIsBuffer = Buffer2 ? Buffer2.isBuffer : void 0, nativeKeys = overArg(Object.keys, Object);
770
+ var Buffer = moduleExports ? root2.Buffer : void 0, Symbol2 = root2.Symbol, Uint8Array = root2.Uint8Array, propertyIsEnumerable = objectProto2.propertyIsEnumerable, splice = arrayProto.splice, symToStringTag = Symbol2 ? Symbol2.toStringTag : void 0;
771
+ var nativeGetSymbols = Object.getOwnPropertySymbols, nativeIsBuffer = Buffer ? Buffer.isBuffer : void 0, nativeKeys = overArg(Object.keys, Object);
768
772
  var DataView = getNative(root2, "DataView"), Map2 = getNative(root2, "Map"), Promise2 = getNative(root2, "Promise"), Set = getNative(root2, "Set"), WeakMap = getNative(root2, "WeakMap"), nativeCreate = getNative(Object, "create");
769
773
  var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map2), promiseCtorString = toSource(Promise2), setCtorString = toSource(Set), weakMapCtorString = toSource(WeakMap);
770
774
  var symbolProto2 = Symbol2 ? Symbol2.prototype : void 0, symbolValueOf = symbolProto2 ? symbolProto2.valueOf : void 0;
@@ -1096,7 +1100,7 @@ var __publicField = (obj, key, value) => {
1096
1100
  object2 = object2.buffer;
1097
1101
  other = other.buffer;
1098
1102
  case arrayBufferTag:
1099
- if (object2.byteLength != other.byteLength || !equalFunc(new Uint8Array2(object2), new Uint8Array2(other))) {
1103
+ if (object2.byteLength != other.byteLength || !equalFunc(new Uint8Array(object2), new Uint8Array(other))) {
1100
1104
  return false;
1101
1105
  }
1102
1106
  return true;
@@ -1474,16 +1478,21 @@ var __publicField = (obj, key, value) => {
1474
1478
  });
1475
1479
  return cssVars;
1476
1480
  }
1481
+ const useRtl = () => {
1482
+ const { direction } = useConfig$1();
1483
+ return direction === "rtl";
1484
+ };
1477
1485
  const ConfigProvider = (props) => {
1478
1486
  const { style, className, children, direction, ...config2 } = props;
1479
1487
  const mergedConfig = useMemo(
1480
1488
  () => {
1481
1489
  return {
1482
1490
  ...getDefaultConfig$1(),
1483
- ...config2
1491
+ ...config2,
1492
+ direction
1484
1493
  };
1485
1494
  },
1486
- [config2],
1495
+ [config2, direction],
1487
1496
  (prev, next) => prev.some((prevTheme, index) => {
1488
1497
  const nextTheme = next[index];
1489
1498
  return !isequal(prevTheme, nextTheme);
@@ -1631,72 +1640,111 @@ var __publicField = (obj, key, value) => {
1631
1640
  _setPrototypeOf$1(subClass, superClass);
1632
1641
  }
1633
1642
  var propTypes = { exports: {} };
1634
- var ReactPropTypesSecret_1;
1635
- var hasRequiredReactPropTypesSecret;
1636
- function requireReactPropTypesSecret() {
1637
- if (hasRequiredReactPropTypesSecret)
1638
- return ReactPropTypesSecret_1;
1639
- hasRequiredReactPropTypesSecret = 1;
1640
- var ReactPropTypesSecret = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
1641
- ReactPropTypesSecret_1 = ReactPropTypesSecret;
1642
- return ReactPropTypesSecret_1;
1643
- }
1644
- var factoryWithThrowingShims;
1645
- var hasRequiredFactoryWithThrowingShims;
1646
- function requireFactoryWithThrowingShims() {
1647
- if (hasRequiredFactoryWithThrowingShims)
1648
- return factoryWithThrowingShims;
1649
- hasRequiredFactoryWithThrowingShims = 1;
1650
- var ReactPropTypesSecret = requireReactPropTypesSecret();
1651
- function emptyFunction() {
1652
- }
1653
- function emptyFunctionWithReset() {
1654
- }
1655
- emptyFunctionWithReset.resetWarningCache = emptyFunction;
1656
- factoryWithThrowingShims = function() {
1657
- function shim(props, propName, componentName, location, propFullName, secret) {
1658
- if (secret === ReactPropTypesSecret) {
1659
- return;
1643
+ var reactIs = { exports: {} };
1644
+ var reactIs_production_min = {};
1645
+ /** @license React v16.13.1
1646
+ * react-is.production.min.js
1647
+ *
1648
+ * Copyright (c) Facebook, Inc. and its affiliates.
1649
+ *
1650
+ * This source code is licensed under the MIT license found in the
1651
+ * LICENSE file in the root directory of this source tree.
1652
+ */
1653
+ var hasRequiredReactIs_production_min;
1654
+ function requireReactIs_production_min() {
1655
+ if (hasRequiredReactIs_production_min)
1656
+ return reactIs_production_min;
1657
+ hasRequiredReactIs_production_min = 1;
1658
+ var b = "function" === typeof Symbol && Symbol.for, c2 = b ? Symbol.for("react.element") : 60103, d2 = b ? Symbol.for("react.portal") : 60106, e2 = b ? Symbol.for("react.fragment") : 60107, f = b ? Symbol.for("react.strict_mode") : 60108, g2 = b ? Symbol.for("react.profiler") : 60114, h2 = b ? Symbol.for("react.provider") : 60109, k = b ? Symbol.for("react.context") : 60110, l = b ? Symbol.for("react.async_mode") : 60111, m = b ? Symbol.for("react.concurrent_mode") : 60111, n = b ? Symbol.for("react.forward_ref") : 60112, p = b ? Symbol.for("react.suspense") : 60113, q = b ? Symbol.for("react.suspense_list") : 60120, r = b ? Symbol.for("react.memo") : 60115, t2 = b ? Symbol.for("react.lazy") : 60116, v = b ? Symbol.for("react.block") : 60121, w2 = b ? Symbol.for("react.fundamental") : 60117, x = b ? Symbol.for("react.responder") : 60118, y = b ? Symbol.for("react.scope") : 60119;
1659
+ function z2(a2) {
1660
+ if ("object" === typeof a2 && null !== a2) {
1661
+ var u = a2.$$typeof;
1662
+ switch (u) {
1663
+ case c2:
1664
+ switch (a2 = a2.type, a2) {
1665
+ case l:
1666
+ case m:
1667
+ case e2:
1668
+ case g2:
1669
+ case f:
1670
+ case p:
1671
+ return a2;
1672
+ default:
1673
+ switch (a2 = a2 && a2.$$typeof, a2) {
1674
+ case k:
1675
+ case n:
1676
+ case t2:
1677
+ case r:
1678
+ case h2:
1679
+ return a2;
1680
+ default:
1681
+ return u;
1682
+ }
1683
+ }
1684
+ case d2:
1685
+ return u;
1660
1686
  }
1661
- var err = new Error(
1662
- "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
1663
- );
1664
- err.name = "Invariant Violation";
1665
- throw err;
1666
- }
1667
- shim.isRequired = shim;
1668
- function getShim() {
1669
- return shim;
1670
1687
  }
1671
- var ReactPropTypes = {
1672
- array: shim,
1673
- bigint: shim,
1674
- bool: shim,
1675
- func: shim,
1676
- number: shim,
1677
- object: shim,
1678
- string: shim,
1679
- symbol: shim,
1680
- any: shim,
1681
- arrayOf: getShim,
1682
- element: shim,
1683
- elementType: shim,
1684
- instanceOf: getShim,
1685
- node: shim,
1686
- objectOf: getShim,
1687
- oneOf: getShim,
1688
- oneOfType: getShim,
1689
- shape: getShim,
1690
- exact: getShim,
1691
- checkPropTypes: emptyFunctionWithReset,
1692
- resetWarningCache: emptyFunction
1693
- };
1694
- ReactPropTypes.PropTypes = ReactPropTypes;
1695
- return ReactPropTypes;
1688
+ }
1689
+ function A2(a2) {
1690
+ return z2(a2) === m;
1691
+ }
1692
+ reactIs_production_min.AsyncMode = l;
1693
+ reactIs_production_min.ConcurrentMode = m;
1694
+ reactIs_production_min.ContextConsumer = k;
1695
+ reactIs_production_min.ContextProvider = h2;
1696
+ reactIs_production_min.Element = c2;
1697
+ reactIs_production_min.ForwardRef = n;
1698
+ reactIs_production_min.Fragment = e2;
1699
+ reactIs_production_min.Lazy = t2;
1700
+ reactIs_production_min.Memo = r;
1701
+ reactIs_production_min.Portal = d2;
1702
+ reactIs_production_min.Profiler = g2;
1703
+ reactIs_production_min.StrictMode = f;
1704
+ reactIs_production_min.Suspense = p;
1705
+ reactIs_production_min.isAsyncMode = function(a2) {
1706
+ return A2(a2) || z2(a2) === l;
1696
1707
  };
1697
- return factoryWithThrowingShims;
1708
+ reactIs_production_min.isConcurrentMode = A2;
1709
+ reactIs_production_min.isContextConsumer = function(a2) {
1710
+ return z2(a2) === k;
1711
+ };
1712
+ reactIs_production_min.isContextProvider = function(a2) {
1713
+ return z2(a2) === h2;
1714
+ };
1715
+ reactIs_production_min.isElement = function(a2) {
1716
+ return "object" === typeof a2 && null !== a2 && a2.$$typeof === c2;
1717
+ };
1718
+ reactIs_production_min.isForwardRef = function(a2) {
1719
+ return z2(a2) === n;
1720
+ };
1721
+ reactIs_production_min.isFragment = function(a2) {
1722
+ return z2(a2) === e2;
1723
+ };
1724
+ reactIs_production_min.isLazy = function(a2) {
1725
+ return z2(a2) === t2;
1726
+ };
1727
+ reactIs_production_min.isMemo = function(a2) {
1728
+ return z2(a2) === r;
1729
+ };
1730
+ reactIs_production_min.isPortal = function(a2) {
1731
+ return z2(a2) === d2;
1732
+ };
1733
+ reactIs_production_min.isProfiler = function(a2) {
1734
+ return z2(a2) === g2;
1735
+ };
1736
+ reactIs_production_min.isStrictMode = function(a2) {
1737
+ return z2(a2) === f;
1738
+ };
1739
+ reactIs_production_min.isSuspense = function(a2) {
1740
+ return z2(a2) === p;
1741
+ };
1742
+ reactIs_production_min.isValidElementType = function(a2) {
1743
+ return "string" === typeof a2 || "function" === typeof a2 || a2 === e2 || a2 === m || a2 === g2 || a2 === f || a2 === p || a2 === q || "object" === typeof a2 && null !== a2 && (a2.$$typeof === t2 || a2.$$typeof === r || a2.$$typeof === h2 || a2.$$typeof === k || a2.$$typeof === n || a2.$$typeof === w2 || a2.$$typeof === x || a2.$$typeof === y || a2.$$typeof === v);
1744
+ };
1745
+ reactIs_production_min.typeOf = z2;
1746
+ return reactIs_production_min;
1698
1747
  }
1699
- var reactIs = { exports: {} };
1700
1748
  var reactIs_development = {};
1701
1749
  /** @license React v16.13.1
1702
1750
  * react-is.development.js
@@ -1860,110 +1908,6 @@ var __publicField = (obj, key, value) => {
1860
1908
  }
1861
1909
  return reactIs_development;
1862
1910
  }
1863
- var reactIs_production_min = {};
1864
- /** @license React v16.13.1
1865
- * react-is.production.min.js
1866
- *
1867
- * Copyright (c) Facebook, Inc. and its affiliates.
1868
- *
1869
- * This source code is licensed under the MIT license found in the
1870
- * LICENSE file in the root directory of this source tree.
1871
- */
1872
- var hasRequiredReactIs_production_min;
1873
- function requireReactIs_production_min() {
1874
- if (hasRequiredReactIs_production_min)
1875
- return reactIs_production_min;
1876
- hasRequiredReactIs_production_min = 1;
1877
- var b = "function" === typeof Symbol && Symbol.for, c2 = b ? Symbol.for("react.element") : 60103, d2 = b ? Symbol.for("react.portal") : 60106, e2 = b ? Symbol.for("react.fragment") : 60107, f = b ? Symbol.for("react.strict_mode") : 60108, g2 = b ? Symbol.for("react.profiler") : 60114, h2 = b ? Symbol.for("react.provider") : 60109, k = b ? Symbol.for("react.context") : 60110, l = b ? Symbol.for("react.async_mode") : 60111, m = b ? Symbol.for("react.concurrent_mode") : 60111, n = b ? Symbol.for("react.forward_ref") : 60112, p = b ? Symbol.for("react.suspense") : 60113, q = b ? Symbol.for("react.suspense_list") : 60120, r = b ? Symbol.for("react.memo") : 60115, t2 = b ? Symbol.for("react.lazy") : 60116, v = b ? Symbol.for("react.block") : 60121, w2 = b ? Symbol.for("react.fundamental") : 60117, x = b ? Symbol.for("react.responder") : 60118, y = b ? Symbol.for("react.scope") : 60119;
1878
- function z2(a2) {
1879
- if ("object" === typeof a2 && null !== a2) {
1880
- var u = a2.$$typeof;
1881
- switch (u) {
1882
- case c2:
1883
- switch (a2 = a2.type, a2) {
1884
- case l:
1885
- case m:
1886
- case e2:
1887
- case g2:
1888
- case f:
1889
- case p:
1890
- return a2;
1891
- default:
1892
- switch (a2 = a2 && a2.$$typeof, a2) {
1893
- case k:
1894
- case n:
1895
- case t2:
1896
- case r:
1897
- case h2:
1898
- return a2;
1899
- default:
1900
- return u;
1901
- }
1902
- }
1903
- case d2:
1904
- return u;
1905
- }
1906
- }
1907
- }
1908
- function A2(a2) {
1909
- return z2(a2) === m;
1910
- }
1911
- reactIs_production_min.AsyncMode = l;
1912
- reactIs_production_min.ConcurrentMode = m;
1913
- reactIs_production_min.ContextConsumer = k;
1914
- reactIs_production_min.ContextProvider = h2;
1915
- reactIs_production_min.Element = c2;
1916
- reactIs_production_min.ForwardRef = n;
1917
- reactIs_production_min.Fragment = e2;
1918
- reactIs_production_min.Lazy = t2;
1919
- reactIs_production_min.Memo = r;
1920
- reactIs_production_min.Portal = d2;
1921
- reactIs_production_min.Profiler = g2;
1922
- reactIs_production_min.StrictMode = f;
1923
- reactIs_production_min.Suspense = p;
1924
- reactIs_production_min.isAsyncMode = function(a2) {
1925
- return A2(a2) || z2(a2) === l;
1926
- };
1927
- reactIs_production_min.isConcurrentMode = A2;
1928
- reactIs_production_min.isContextConsumer = function(a2) {
1929
- return z2(a2) === k;
1930
- };
1931
- reactIs_production_min.isContextProvider = function(a2) {
1932
- return z2(a2) === h2;
1933
- };
1934
- reactIs_production_min.isElement = function(a2) {
1935
- return "object" === typeof a2 && null !== a2 && a2.$$typeof === c2;
1936
- };
1937
- reactIs_production_min.isForwardRef = function(a2) {
1938
- return z2(a2) === n;
1939
- };
1940
- reactIs_production_min.isFragment = function(a2) {
1941
- return z2(a2) === e2;
1942
- };
1943
- reactIs_production_min.isLazy = function(a2) {
1944
- return z2(a2) === t2;
1945
- };
1946
- reactIs_production_min.isMemo = function(a2) {
1947
- return z2(a2) === r;
1948
- };
1949
- reactIs_production_min.isPortal = function(a2) {
1950
- return z2(a2) === d2;
1951
- };
1952
- reactIs_production_min.isProfiler = function(a2) {
1953
- return z2(a2) === g2;
1954
- };
1955
- reactIs_production_min.isStrictMode = function(a2) {
1956
- return z2(a2) === f;
1957
- };
1958
- reactIs_production_min.isSuspense = function(a2) {
1959
- return z2(a2) === p;
1960
- };
1961
- reactIs_production_min.isValidElementType = function(a2) {
1962
- return "string" === typeof a2 || "function" === typeof a2 || a2 === e2 || a2 === m || a2 === g2 || a2 === f || a2 === p || a2 === q || "object" === typeof a2 && null !== a2 && (a2.$$typeof === t2 || a2.$$typeof === r || a2.$$typeof === h2 || a2.$$typeof === k || a2.$$typeof === n || a2.$$typeof === w2 || a2.$$typeof === x || a2.$$typeof === y || a2.$$typeof === v);
1963
- };
1964
- reactIs_production_min.typeOf = z2;
1965
- return reactIs_production_min;
1966
- }
1967
1911
  var hasRequiredReactIs;
1968
1912
  function requireReactIs() {
1969
1913
  if (hasRequiredReactIs)
@@ -2052,6 +1996,16 @@ var __publicField = (obj, key, value) => {
2052
1996
  };
2053
1997
  return objectAssign;
2054
1998
  }
1999
+ var ReactPropTypesSecret_1;
2000
+ var hasRequiredReactPropTypesSecret;
2001
+ function requireReactPropTypesSecret() {
2002
+ if (hasRequiredReactPropTypesSecret)
2003
+ return ReactPropTypesSecret_1;
2004
+ hasRequiredReactPropTypesSecret = 1;
2005
+ var ReactPropTypesSecret = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
2006
+ ReactPropTypesSecret_1 = ReactPropTypesSecret;
2007
+ return ReactPropTypesSecret_1;
2008
+ }
2055
2009
  var has;
2056
2010
  var hasRequiredHas;
2057
2011
  function requireHas() {
@@ -2569,6 +2523,61 @@ var __publicField = (obj, key, value) => {
2569
2523
  };
2570
2524
  return factoryWithTypeCheckers;
2571
2525
  }
2526
+ var factoryWithThrowingShims;
2527
+ var hasRequiredFactoryWithThrowingShims;
2528
+ function requireFactoryWithThrowingShims() {
2529
+ if (hasRequiredFactoryWithThrowingShims)
2530
+ return factoryWithThrowingShims;
2531
+ hasRequiredFactoryWithThrowingShims = 1;
2532
+ var ReactPropTypesSecret = requireReactPropTypesSecret();
2533
+ function emptyFunction() {
2534
+ }
2535
+ function emptyFunctionWithReset() {
2536
+ }
2537
+ emptyFunctionWithReset.resetWarningCache = emptyFunction;
2538
+ factoryWithThrowingShims = function() {
2539
+ function shim(props, propName, componentName, location, propFullName, secret) {
2540
+ if (secret === ReactPropTypesSecret) {
2541
+ return;
2542
+ }
2543
+ var err = new Error(
2544
+ "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
2545
+ );
2546
+ err.name = "Invariant Violation";
2547
+ throw err;
2548
+ }
2549
+ shim.isRequired = shim;
2550
+ function getShim() {
2551
+ return shim;
2552
+ }
2553
+ var ReactPropTypes = {
2554
+ array: shim,
2555
+ bigint: shim,
2556
+ bool: shim,
2557
+ func: shim,
2558
+ number: shim,
2559
+ object: shim,
2560
+ string: shim,
2561
+ symbol: shim,
2562
+ any: shim,
2563
+ arrayOf: getShim,
2564
+ element: shim,
2565
+ elementType: shim,
2566
+ instanceOf: getShim,
2567
+ node: shim,
2568
+ objectOf: getShim,
2569
+ oneOf: getShim,
2570
+ oneOfType: getShim,
2571
+ shape: getShim,
2572
+ exact: getShim,
2573
+ checkPropTypes: emptyFunctionWithReset,
2574
+ resetWarningCache: emptyFunction
2575
+ };
2576
+ ReactPropTypes.PropTypes = ReactPropTypes;
2577
+ return ReactPropTypes;
2578
+ };
2579
+ return factoryWithThrowingShims;
2580
+ }
2572
2581
  if (process.env.NODE_ENV !== "production") {
2573
2582
  var ReactIs = requireReactIs();
2574
2583
  var throwOnDirectAccess = true;
@@ -5539,22 +5548,19 @@ var __publicField = (obj, key, value) => {
5539
5548
  };
5540
5549
  class Tree {
5541
5550
  constructor(nodes, config2) {
5542
- __publicField(this, "nodes");
5543
- __publicField(this, "config");
5544
- // eslint-disable-next-line class-methods-use-this
5545
- __publicField(this, "isLeaf", (node, lazy) => {
5551
+ this.isLeaf = (node, lazy) => {
5546
5552
  const { leaf, children } = node;
5547
5553
  const hasChildren = Array.isArray(children) && Boolean(children.length);
5548
5554
  return leaf || !hasChildren && !lazy;
5549
- });
5550
- __publicField(this, "hasChildren", (node, lazy) => {
5555
+ };
5556
+ this.hasChildren = (node, lazy) => {
5551
5557
  const isLeaf = this.isLeaf(node, lazy);
5552
5558
  if (isLeaf) {
5553
5559
  return false;
5554
5560
  }
5555
5561
  const { children } = node;
5556
5562
  return Array.isArray(children) && Boolean(children.length);
5557
- });
5563
+ };
5558
5564
  this.config = {
5559
5565
  value: "value",
5560
5566
  text: "text",
@@ -5601,7 +5607,6 @@ var __publicField = (obj, key, value) => {
5601
5607
  return pathNodes;
5602
5608
  }
5603
5609
  }
5604
- const Tree$1 = Tree;
5605
5610
  const defaultProps$17 = {
5606
5611
  ...ComponentDefaults,
5607
5612
  activeColor: "",
@@ -5677,7 +5682,7 @@ var __publicField = (obj, key, value) => {
5677
5682
  paneKey: ""
5678
5683
  }
5679
5684
  ],
5680
- tree: new Tree$1([], {}),
5685
+ tree: new Tree([], {}),
5681
5686
  tabsCursor: 0,
5682
5687
  // 选中的tab项
5683
5688
  initLoading: false,
@@ -5707,7 +5712,7 @@ var __publicField = (obj, key, value) => {
5707
5712
  } else {
5708
5713
  state.optionsData = options;
5709
5714
  }
5710
- state.tree = new Tree$1(state.optionsData, {
5715
+ state.tree = new Tree(state.optionsData, {
5711
5716
  value: state.configs.optionKey.valueKey,
5712
5717
  text: state.configs.optionKey.textKey,
5713
5718
  children: state.configs.optionKey.childrenKey
@@ -9766,21 +9771,13 @@ var __publicField = (obj, key, value) => {
9766
9771
  const SECRET = "NUT_FORM_INTERNAL";
9767
9772
  class FormStore {
9768
9773
  constructor() {
9769
- // 初始化数据
9770
- __publicField(this, "initialValues", {});
9771
- __publicField(this, "updateList", []);
9772
- // 存放表单中所有的数据 eg. {password: "ddd",username: "123"}
9773
- __publicField(this, "store", {});
9774
- // 所有的组件实例
9775
- __publicField(this, "fieldEntities", []);
9776
- // 校验成功或失败的回调,onFinish、onFinishFailed
9777
- __publicField(this, "callbacks", {});
9778
- __publicField(this, "errors", {});
9779
- /**
9780
- * 注册组件实例
9781
- * @param field
9782
- */
9783
- __publicField(this, "registerField", (field) => {
9774
+ this.initialValues = {};
9775
+ this.updateList = [];
9776
+ this.store = {};
9777
+ this.fieldEntities = [];
9778
+ this.callbacks = {};
9779
+ this.errors = {};
9780
+ this.registerField = (field) => {
9784
9781
  this.fieldEntities.push(field);
9785
9782
  return () => {
9786
9783
  this.fieldEntities = this.fieldEntities.filter((item) => item !== field);
@@ -9788,19 +9785,12 @@ var __publicField = (obj, key, value) => {
9788
9785
  delete this.store[field.props.name];
9789
9786
  }
9790
9787
  };
9791
- });
9792
- /**
9793
- * 获取 formItem 的值
9794
- * @param name
9795
- */
9796
- __publicField(this, "getFieldValue", (name) => {
9788
+ };
9789
+ this.getFieldValue = (name) => {
9797
9790
  var _a;
9798
9791
  return (_a = this.store) == null ? void 0 : _a[name];
9799
- });
9800
- /**
9801
- * 获取全部字段
9802
- */
9803
- __publicField(this, "getFieldsValue", (nameList) => {
9792
+ };
9793
+ this.getFieldsValue = (nameList) => {
9804
9794
  if (typeof nameList === "boolean") {
9805
9795
  return JSON.parse(JSON.stringify(this.store));
9806
9796
  }
@@ -9809,23 +9799,14 @@ var __publicField = (obj, key, value) => {
9809
9799
  fieldsValue[field] = this.getFieldValue(field);
9810
9800
  });
9811
9801
  return fieldsValue;
9812
- });
9813
- /**
9814
- * 设置 form 的初始值,之后在 reset 的时候使用
9815
- * @param values
9816
- * @param init
9817
- */
9818
- __publicField(this, "setInitialValues", (values, init) => {
9802
+ };
9803
+ this.setInitialValues = (values, init) => {
9819
9804
  if (init) {
9820
9805
  this.initialValues = values;
9821
9806
  this.store = values;
9822
9807
  }
9823
- });
9824
- /**
9825
- * 存储组件数据
9826
- * @param newStore { [name]: newValue }
9827
- */
9828
- __publicField(this, "setFieldsValue", (newStore) => {
9808
+ };
9809
+ this.setFieldsValue = (newStore) => {
9829
9810
  this.store = {
9830
9811
  ...this.store,
9831
9812
  ...newStore
@@ -9847,14 +9828,14 @@ var __publicField = (obj, key, value) => {
9847
9828
  item.entity.onStoreChange("update");
9848
9829
  }
9849
9830
  });
9850
- });
9851
- __publicField(this, "setCallback", (callback) => {
9831
+ };
9832
+ this.setCallback = (callback) => {
9852
9833
  this.callbacks = {
9853
9834
  ...this.callbacks,
9854
9835
  ...callback
9855
9836
  };
9856
- });
9857
- __publicField(this, "validateEntities", async (entity, errs) => {
9837
+ };
9838
+ this.validateEntities = async (entity, errs) => {
9858
9839
  var _a;
9859
9840
  const { name, rules: rules2 = [] } = entity.props;
9860
9841
  const descriptor = {};
@@ -9882,8 +9863,8 @@ var __publicField = (obj, key, value) => {
9882
9863
  }
9883
9864
  }
9884
9865
  entity.onStoreChange("validate");
9885
- });
9886
- __publicField(this, "validateFields", async (nameList) => {
9866
+ };
9867
+ this.validateFields = async (nameList) => {
9887
9868
  let filterEntities = [];
9888
9869
  this.errors.length = 0;
9889
9870
  if (!nameList || nameList.length === 0) {
@@ -9900,8 +9881,8 @@ var __publicField = (obj, key, value) => {
9900
9881
  })
9901
9882
  );
9902
9883
  return errs;
9903
- });
9904
- __publicField(this, "submit", async () => {
9884
+ };
9885
+ this.submit = async () => {
9905
9886
  var _a, _b, _c, _d;
9906
9887
  const errors = await this.validateFields();
9907
9888
  if (errors.length === 0) {
@@ -9909,16 +9890,15 @@ var __publicField = (obj, key, value) => {
9909
9890
  } else if (errors.length > 0) {
9910
9891
  (_d = (_c = this.callbacks).onFinishFailed) == null ? void 0 : _d.call(_c, this.store, errors);
9911
9892
  }
9912
- });
9913
- __publicField(this, "resetFields", () => {
9893
+ };
9894
+ this.resetFields = () => {
9914
9895
  this.errors.length = 0;
9915
9896
  this.store = this.initialValues;
9916
9897
  this.fieldEntities.forEach((entity) => {
9917
9898
  entity.onStoreChange("reset");
9918
9899
  });
9919
- });
9920
- // 监听事件
9921
- __publicField(this, "registerUpdate", (field, shouldUpdate) => {
9900
+ };
9901
+ this.registerUpdate = (field, shouldUpdate) => {
9922
9902
  this.updateList.push({
9923
9903
  entity: field,
9924
9904
  condition: shouldUpdate
@@ -9926,11 +9906,11 @@ var __publicField = (obj, key, value) => {
9926
9906
  return () => {
9927
9907
  this.updateList = this.updateList.filter((i2) => i2.entity !== field);
9928
9908
  };
9929
- });
9930
- __publicField(this, "dispatch", ({ name }) => {
9909
+ };
9910
+ this.dispatch = ({ name }) => {
9931
9911
  this.validateFields([name]);
9932
- });
9933
- __publicField(this, "getInternal", (key) => {
9912
+ };
9913
+ this.getInternal = (key) => {
9934
9914
  if (key === SECRET) {
9935
9915
  return {
9936
9916
  registerField: this.registerField,
@@ -9942,8 +9922,8 @@ var __publicField = (obj, key, value) => {
9942
9922
  registerUpdate: this.registerUpdate
9943
9923
  };
9944
9924
  }
9945
- });
9946
- __publicField(this, "getForm", () => {
9925
+ };
9926
+ this.getForm = () => {
9947
9927
  return {
9948
9928
  getFieldValue: this.getFieldValue,
9949
9929
  getFieldsValue: this.getFieldsValue,
@@ -9954,7 +9934,7 @@ var __publicField = (obj, key, value) => {
9954
9934
  errors: this.errors,
9955
9935
  getInternal: this.getInternal
9956
9936
  };
9957
- });
9937
+ };
9958
9938
  this.callbacks = {
9959
9939
  onFinish: () => {
9960
9940
  },
@@ -10074,14 +10054,10 @@ var __publicField = (obj, key, value) => {
10074
10054
  shouldUpdate: false,
10075
10055
  noStyle: false
10076
10056
  };
10077
- class FormItem extends React.Component {
10057
+ const _FormItem = class _FormItem extends React.Component {
10078
10058
  constructor(props) {
10079
10059
  super(props);
10080
- __publicField(this, "cancelRegister");
10081
- __publicField(this, "componentRef");
10082
- __publicField(this, "eventOff");
10083
- // children添加value属性和onChange事件
10084
- __publicField(this, "getControlled", (children) => {
10060
+ this.getControlled = (children) => {
10085
10061
  var _a;
10086
10062
  const { setFieldsValue, getFieldValue } = this.context;
10087
10063
  const { dispatch } = this.context.getInternal(SECRET);
@@ -10108,7 +10084,7 @@ var __publicField = (obj, key, value) => {
10108
10084
  const { validateTrigger } = this.props;
10109
10085
  let validateTriggers = [this.props.trigger || "onChange"];
10110
10086
  if (validateTrigger) {
10111
- validateTriggers = typeof validateTrigger === "string" ? [...validateTriggers, validateTrigger] : [...validateTriggers, ...validateTrigger];
10087
+ validateTriggers = typeof validateTrigger === "string" ? [validateTrigger] : [...validateTrigger];
10112
10088
  validateTriggers.forEach((trigger) => {
10113
10089
  const originTrigger = controlled[trigger];
10114
10090
  controlled[trigger] = (...args) => {
@@ -10138,21 +10114,22 @@ var __publicField = (obj, key, value) => {
10138
10114
  };
10139
10115
  }
10140
10116
  return controlled;
10141
- });
10142
- __publicField(this, "refresh", () => {
10117
+ };
10118
+ this.refresh = () => {
10143
10119
  this.setState(({ resetCount }) => ({
10144
10120
  resetCount: resetCount + 1
10145
10121
  }));
10146
- });
10147
- __publicField(this, "onStoreChange", (type2) => {
10122
+ };
10123
+ this.onStoreChange = (type2) => {
10148
10124
  if (type2 === "reset") {
10149
10125
  this.context.errors[this.props.name] = [];
10150
10126
  this.refresh();
10151
10127
  } else {
10152
10128
  this.forceUpdate();
10153
10129
  }
10154
- });
10155
- __publicField(this, "renderLayout", (childNode) => {
10130
+ };
10131
+ this.renderLayout = (childNode) => {
10132
+ var _a;
10156
10133
  const {
10157
10134
  label,
10158
10135
  name,
@@ -10178,16 +10155,19 @@ var __publicField = (obj, key, value) => {
10178
10155
  onClick: (e2) => this.props.onClick && this.props.onClick(e2, this.componentRef)
10179
10156
  },
10180
10157
  label ? /* @__PURE__ */ React.createElement("div", { className: "nut-cell-title nut-form-item-label" }, renderLabel) : null,
10181
- /* @__PURE__ */ React.createElement("div", { className: "nut-cell-value nut-form-item-body" }, /* @__PURE__ */ React.createElement("div", { className: "nut-form-item-body-slots" }, childNode), item && item.length > 0 && /* @__PURE__ */ React.createElement(
10158
+ /* @__PURE__ */ React.createElement("div", { className: "nut-cell-value nut-form-item-body" }, /* @__PURE__ */ React.createElement("div", { className: "nut-form-item-body-slots" }, childNode), /* @__PURE__ */ React.createElement(
10182
10159
  "div",
10183
10160
  {
10184
10161
  className: "nut-form-item-body-tips",
10185
- style: { textAlign: errorMessageAlign }
10162
+ style: {
10163
+ textAlign: errorMessageAlign,
10164
+ display: (item == null ? void 0 : item.length) ? "initial" : "none"
10165
+ }
10186
10166
  },
10187
- item[0].message
10167
+ (_a = item == null ? void 0 : item[0]) == null ? void 0 : _a.message
10188
10168
  ))
10189
10169
  );
10190
- });
10170
+ };
10191
10171
  this.componentRef = React.createRef();
10192
10172
  this.state = {
10193
10173
  resetCount: 1
@@ -10220,9 +10200,10 @@ var __publicField = (obj, key, value) => {
10220
10200
  }
10221
10201
  return /* @__PURE__ */ React.createElement(React.Fragment, { key: this.state.resetCount }, this.props.noStyle ? returnChildNode : this.renderLayout(returnChildNode));
10222
10202
  }
10223
- }
10224
- __publicField(FormItem, "defaultProps", defaultProps$Y);
10225
- __publicField(FormItem, "contextType", Context);
10203
+ };
10204
+ _FormItem.defaultProps = defaultProps$Y;
10205
+ _FormItem.contextType = Context;
10206
+ let FormItem = _FormItem;
10226
10207
  const InnerForm = Form;
10227
10208
  InnerForm.Item = FormItem;
10228
10209
  InnerForm.useForm = useForm;
@@ -10450,6 +10431,7 @@ var __publicField = (obj, key, value) => {
10450
10431
  allowEmpty: false,
10451
10432
  min: 1,
10452
10433
  max: 9999,
10434
+ type: "digit",
10453
10435
  step: 1,
10454
10436
  digits: 0,
10455
10437
  async: false
@@ -10461,6 +10443,7 @@ var __publicField = (obj, key, value) => {
10461
10443
  disabled,
10462
10444
  min,
10463
10445
  max,
10446
+ type: type2,
10464
10447
  readOnly,
10465
10448
  value,
10466
10449
  defaultValue,
@@ -10496,6 +10479,7 @@ var __publicField = (obj, key, value) => {
10496
10479
  const [shadowValue, setShadowValue] = usePropsValue({
10497
10480
  value: typeof value === "string" ? parseFloat(value) : value,
10498
10481
  defaultValue: typeof defaultValue === "string" ? parseFloat(defaultValue) : defaultValue,
10482
+ finalValue: 0,
10499
10483
  onChange: (value2) => {
10500
10484
  }
10501
10485
  });
@@ -10618,9 +10602,9 @@ var __publicField = (obj, key, value) => {
10618
10602
  "input",
10619
10603
  {
10620
10604
  className: "nut-number-input",
10621
- type: "digit",
10605
+ type: type2,
10622
10606
  ref: inputRef,
10623
- inputMode: "decimal",
10607
+ inputMode: type2 === "digit" ? "decimal" : "numeric",
10624
10608
  disabled,
10625
10609
  readOnly,
10626
10610
  value: inputValue,
@@ -11380,6 +11364,7 @@ var __publicField = (obj, key, value) => {
11380
11364
  marks: {}
11381
11365
  };
11382
11366
  const Range = (props) => {
11367
+ const rtl = useRtl();
11383
11368
  const {
11384
11369
  className,
11385
11370
  range: range2,
@@ -11492,15 +11477,17 @@ var __publicField = (obj, key, value) => {
11492
11477
  transition: dragStatus ? "none" : void 0
11493
11478
  };
11494
11479
  }
11480
+ const dir = rtl ? "right" : "left";
11495
11481
  return {
11496
11482
  width: calcMainAxis(),
11497
- left: calcOffset(),
11483
+ [dir]: calcOffset(),
11498
11484
  transition: dragStatus ? "none" : void 0
11499
11485
  };
11500
11486
  };
11501
11487
  const marksStyle = (mark) => {
11488
+ const dir = rtl ? "right" : "left";
11502
11489
  let style = {
11503
- left: `${(mark - min) / scope() * 100}%`
11490
+ [dir]: `${(mark - min) / scope() * 100}%`
11504
11491
  };
11505
11492
  if (vertical) {
11506
11493
  style = {
@@ -11591,6 +11578,7 @@ var __publicField = (obj, key, value) => {
11591
11578
  let delta = touch.deltaX.current;
11592
11579
  let total = rect.width;
11593
11580
  let diff = delta / total * scope();
11581
+ diff = rtl ? -diff : diff;
11594
11582
  if (vertical) {
11595
11583
  delta = touch.deltaY.current;
11596
11584
  total = rect.height;
@@ -12454,22 +12442,14 @@ var __publicField = (obj, key, value) => {
12454
12442
  TextArea.displayName = "NutTextArea";
12455
12443
  class UploadOptions {
12456
12444
  constructor() {
12457
- __publicField(this, "url", "");
12458
- __publicField(this, "name", "file");
12459
- __publicField(this, "fileType", "image");
12460
- __publicField(this, "formData");
12461
- __publicField(this, "sourceFile");
12462
- __publicField(this, "method", "post");
12463
- __publicField(this, "xhrState", 200);
12464
- __publicField(this, "timeout", 30 * 1e3);
12465
- __publicField(this, "headers", {});
12466
- __publicField(this, "withCredentials", false);
12467
- __publicField(this, "onStart");
12468
- __publicField(this, "taroFilePath");
12469
- __publicField(this, "onProgress");
12470
- __publicField(this, "onSuccess");
12471
- __publicField(this, "onFailure");
12472
- __publicField(this, "beforeXhrUpload");
12445
+ this.url = "";
12446
+ this.name = "file";
12447
+ this.fileType = "image";
12448
+ this.method = "post";
12449
+ this.xhrState = 200;
12450
+ this.timeout = 30 * 1e3;
12451
+ this.headers = {};
12452
+ this.withCredentials = false;
12473
12453
  }
12474
12454
  }
12475
12455
  const UPLOADING = "uploading";
@@ -12477,7 +12457,6 @@ var __publicField = (obj, key, value) => {
12477
12457
  const ERROR = "error";
12478
12458
  class Upload {
12479
12459
  constructor(options) {
12480
- __publicField(this, "options");
12481
12460
  this.options = options;
12482
12461
  }
12483
12462
  upload() {
@@ -12607,18 +12586,11 @@ var __publicField = (obj, key, value) => {
12607
12586
  };
12608
12587
  class FileItem {
12609
12588
  constructor() {
12610
- __publicField(this, "status", "ready");
12611
- __publicField(this, "message", "准备中..");
12612
- __publicField(this, "uid", (/* @__PURE__ */ new Date()).getTime().toString());
12613
- __publicField(this, "name");
12614
- __publicField(this, "url");
12615
- __publicField(this, "type");
12616
- __publicField(this, "path");
12617
- __publicField(this, "percentage", 0);
12618
- __publicField(this, "formData", {});
12619
- __publicField(this, "responseText");
12620
- __publicField(this, "loadingIcon");
12621
- __publicField(this, "failIcon");
12589
+ this.status = "ready";
12590
+ this.message = "准备中..";
12591
+ this.uid = (/* @__PURE__ */ new Date()).getTime().toString();
12592
+ this.percentage = 0;
12593
+ this.formData = {};
12622
12594
  }
12623
12595
  }
12624
12596
  const defaultProps$J = {
@@ -12629,6 +12601,7 @@ var __publicField = (obj, key, value) => {
12629
12601
  delay: 0
12630
12602
  };
12631
12603
  const Progress = (props) => {
12604
+ const rtl = useRtl();
12632
12605
  const {
12633
12606
  className,
12634
12607
  style,
@@ -12678,7 +12651,7 @@ var __publicField = (obj, key, value) => {
12678
12651
  "div",
12679
12652
  {
12680
12653
  className: `${classPrefix2}-text`,
12681
- style: { left: `${displayPercent}%` }
12654
+ style: rtl ? { right: `${displayPercent}%` } : { left: `${displayPercent}%` }
12682
12655
  },
12683
12656
  children || /* @__PURE__ */ React.createElement(
12684
12657
  "div",
@@ -15461,7 +15434,7 @@ var __publicField = (obj, key, value) => {
15461
15434
  CountUp.defaultProps = defaultProps$r;
15462
15435
  CountUp.displayName = "NutCountUp";
15463
15436
  const defaultProps$q = {};
15464
- class AnimatingNumbers extends React.Component {
15437
+ const _AnimatingNumbers = class _AnimatingNumbers extends React.Component {
15465
15438
  constructor(props) {
15466
15439
  super(props);
15467
15440
  this.state = {};
@@ -15469,10 +15442,11 @@ var __publicField = (obj, key, value) => {
15469
15442
  render() {
15470
15443
  return /* @__PURE__ */ React.createElement("div", { className: "nut-animatingnumbers" });
15471
15444
  }
15472
- }
15473
- __publicField(AnimatingNumbers, "defaultProps", defaultProps$q);
15474
- __publicField(AnimatingNumbers, "displayName", "NutAnimatingNumbers");
15475
- __publicField(AnimatingNumbers, "CountUp", CountUp);
15445
+ };
15446
+ _AnimatingNumbers.defaultProps = defaultProps$q;
15447
+ _AnimatingNumbers.displayName = "NutAnimatingNumbers";
15448
+ _AnimatingNumbers.CountUp = CountUp;
15449
+ let AnimatingNumbers = _AnimatingNumbers;
15476
15450
  AnimatingNumbers.CountUp = CountUp;
15477
15451
  const defaultProps$p = {
15478
15452
  ...ComponentDefaults,
@@ -17650,8 +17624,7 @@ var __publicField = (obj, key, value) => {
17650
17624
  };
17651
17625
  const defaultConfigRef = {
17652
17626
  current: {
17653
- locale: zhCN,
17654
- direction: "ltr"
17627
+ locale: zhCN
17655
17628
  }
17656
17629
  };
17657
17630
  const getDefaultConfig = () => {