@nutui/nutui-react-taro 2.3.10 → 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 (442) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist/esm/ActionSheet/style/style.css +1 -1
  3. package/dist/esm/ActionSheet.js +1 -13
  4. package/dist/esm/Address/style/style.css +1 -1
  5. package/dist/esm/Address.js +1 -21
  6. package/dist/esm/Animate/style/style.css +1 -1
  7. package/dist/esm/Animate.js +1 -4
  8. package/dist/esm/AnimatingNumbers.js +8 -22
  9. package/dist/esm/Audio/style/style.css +1 -1
  10. package/dist/esm/Audio.js +1 -15
  11. package/dist/esm/Avatar.js +1 -10
  12. package/dist/esm/AvatarCropper.js +1 -10
  13. package/dist/esm/AvatarGroup.js +1 -4
  14. package/dist/esm/BackTop.js +1 -6
  15. package/dist/esm/Badge/style/style.css +1 -1
  16. package/dist/esm/Badge.js +1 -4
  17. package/dist/esm/Barrage/style/style.css +1 -1
  18. package/dist/esm/Barrage.js +1 -7
  19. package/dist/esm/Button.js +1 -6
  20. package/dist/esm/Calendar/style/style.css +1 -1
  21. package/dist/esm/Calendar.js +1 -20
  22. package/dist/esm/CalendarCard.js +1 -8
  23. package/dist/esm/CalendarItem.js +1 -12
  24. package/dist/esm/Card/style/style.css +1 -1
  25. package/dist/esm/Card.js +1 -7
  26. package/dist/esm/Cascader/style/style.css +1 -1
  27. package/dist/esm/Cascader.js +1 -18
  28. package/dist/esm/Cell.js +1 -5
  29. package/dist/esm/CellGroup.js +1 -4
  30. package/dist/esm/Checkbox/style/style.css +1 -1
  31. package/dist/esm/Checkbox.js +1 -7
  32. package/dist/esm/CheckboxGroup/style/style.css +1 -1
  33. package/dist/esm/CheckboxGroup.js +1 -7
  34. package/dist/esm/CircleProgress.js +1 -6
  35. package/dist/esm/Col/style/style.css +1 -1
  36. package/dist/esm/Col.js +1 -5
  37. package/dist/esm/Collapse/style/style.css +1 -1
  38. package/dist/esm/Collapse.js +1 -8
  39. package/dist/esm/CollapseItem/style/style.css +1 -1
  40. package/dist/esm/CollapseItem.js +1 -5
  41. package/dist/esm/ConfigProvider.js +4 -6
  42. package/dist/esm/CountDown.js +1 -7
  43. package/dist/esm/DatePicker/style/style.css +1 -1
  44. package/dist/esm/DatePicker.js +1 -21
  45. package/dist/esm/Dialog/style/style.css +1 -1
  46. package/dist/esm/Dialog.js +1 -16
  47. package/dist/esm/Divider/style/style.css +1 -1
  48. package/dist/esm/Divider.js +1 -4
  49. package/dist/esm/Drag.js +1 -4
  50. package/dist/esm/Elevator.js +1 -6
  51. package/dist/esm/Ellipsis.js +1 -7
  52. package/dist/esm/Empty.js +1 -9
  53. package/dist/esm/FixedNav.js +1 -13
  54. package/dist/esm/Form/style/style.css +1 -1
  55. package/dist/esm/Form.js +7 -18
  56. package/dist/esm/FormItem/style/style.css +1 -1
  57. package/dist/esm/FormItem.js +1 -6
  58. package/dist/esm/Grid/style/style.css +1 -1
  59. package/dist/esm/Grid.js +1 -7
  60. package/dist/esm/GridItem/style/style.css +1 -1
  61. package/dist/esm/GridItem.js +1 -6
  62. package/dist/esm/Image.js +1 -7
  63. package/dist/esm/ImagePreview/style/style.css +1 -1
  64. package/dist/esm/ImagePreview.js +1 -20
  65. package/dist/esm/Indicator/style/style.css +1 -1
  66. package/dist/esm/Indicator.js +1 -3
  67. package/dist/esm/InfiniteLoading.js +1 -8
  68. package/dist/esm/Input.js +1 -11
  69. package/dist/esm/InputNumber.js +1 -7
  70. package/dist/esm/Layout.js +1 -2
  71. package/dist/esm/Loading.js +1 -5
  72. package/dist/esm/Menu/style/style.css +1 -1
  73. package/dist/esm/Menu.js +1 -15
  74. package/dist/esm/MenuItem/style/style.css +1 -1
  75. package/dist/esm/MenuItem.js +1 -14
  76. package/dist/esm/NavBar/style/style.css +1 -1
  77. package/dist/esm/NavBar.js +1 -7
  78. package/dist/esm/NoticeBar/style/style.css +1 -1
  79. package/dist/esm/NoticeBar.js +1 -7
  80. package/dist/esm/Notify.js +1 -9
  81. package/dist/esm/NumberKeyboard/style/style.css +1 -1
  82. package/dist/esm/NumberKeyboard.js +1 -15
  83. package/dist/esm/Overlay.js +1 -9
  84. package/dist/esm/Pagination.js +1 -8
  85. package/dist/esm/Picker/style/style.css +1 -1
  86. package/dist/esm/Picker.js +1 -19
  87. package/dist/esm/Popover/style/style.css +1 -1
  88. package/dist/esm/Popover.js +1 -14
  89. package/dist/esm/Popup/style/style.css +1 -1
  90. package/dist/esm/Popup.js +1 -12
  91. package/dist/esm/Price/style/style.css +1 -1
  92. package/dist/esm/Price.js +1 -3
  93. package/dist/esm/Progress.js +1 -4
  94. package/dist/esm/PullToRefresh.js +1 -10
  95. package/dist/esm/Radio/style/style.css +1 -1
  96. package/dist/esm/Radio.js +1 -7
  97. package/dist/esm/RadioGroup/style/style.css +1 -1
  98. package/dist/esm/RadioGroup.js +1 -7
  99. package/dist/esm/Range/style/style.css +1 -1
  100. package/dist/esm/Range.js +1 -10
  101. package/dist/esm/Rate.js +1 -11
  102. package/dist/esm/Row.js +1 -5
  103. package/dist/esm/SafeArea.js +1 -3
  104. package/dist/esm/SearchBar/style/style.css +1 -1
  105. package/dist/esm/SearchBar.js +1 -7
  106. package/dist/esm/ShortPassword/style/style.css +1 -1
  107. package/dist/esm/ShortPassword.js +1 -17
  108. package/dist/esm/SideNavBar/style/style.css +1 -1
  109. package/dist/esm/SideNavBar.js +1 -14
  110. package/dist/esm/SideNavBarItem.js +1 -2
  111. package/dist/esm/Signature.js +1 -4
  112. package/dist/esm/Skeleton/style/style.css +1 -1
  113. package/dist/esm/Skeleton.js +1 -11
  114. package/dist/esm/Space.js +1 -3
  115. package/dist/esm/Step/style/style.css +1 -1
  116. package/dist/esm/Step.js +1 -6
  117. package/dist/esm/Steps/style/style.css +1 -1
  118. package/dist/esm/Steps.js +1 -5
  119. package/dist/esm/Sticky.js +1 -7
  120. package/dist/esm/SubSideNavBar.js +1 -3
  121. package/dist/esm/Swipe/style/style.css +1 -1
  122. package/dist/esm/Swipe.js +1 -8
  123. package/dist/esm/Swiper/style/style.css +1 -1
  124. package/dist/esm/Swiper.js +9 -11
  125. package/dist/esm/SwiperItem.js +1 -2
  126. package/dist/esm/Switch/style/style.css +1 -1
  127. package/dist/esm/Switch.js +1 -5
  128. package/dist/esm/TabPane.js +1 -3
  129. package/dist/esm/Tabbar/style/style.css +1 -1
  130. package/dist/esm/Tabbar.js +1 -8
  131. package/dist/esm/TabbarItem/style/style.css +1 -1
  132. package/dist/esm/TabbarItem.js +1 -5
  133. package/dist/esm/Table/style/style.css +1 -1
  134. package/dist/esm/Table.js +1 -9
  135. package/dist/esm/Tabs/style/style.css +1 -1
  136. package/dist/esm/Tabs.js +1 -11
  137. package/dist/esm/Tag.js +1 -5
  138. package/dist/esm/TextArea/style/style.css +1 -1
  139. package/dist/esm/TextArea.js +1 -10
  140. package/dist/esm/TimeDetail.js +1 -4
  141. package/dist/esm/TimeSelect/style/style.css +1 -1
  142. package/dist/esm/TimeSelect.js +1 -16
  143. package/dist/esm/Toast.js +1 -15
  144. package/dist/esm/Tour/style/style.css +1 -1
  145. package/dist/esm/Tour.js +1 -16
  146. package/dist/esm/TrendArrow.js +1 -4
  147. package/dist/esm/Uploader.js +1 -14
  148. package/dist/esm/Video.js +1 -4
  149. package/dist/esm/VirtualList/style/style.css +1 -1
  150. package/dist/esm/VirtualList.js +1 -6
  151. package/dist/esm/WaterMark.js +1 -7
  152. package/dist/esm/{actionsheet.taro-6NiOrNyd.js → actionsheet.taro-C5BqWoML.js} +9 -17
  153. package/dist/esm/{address.taro-zQuxQEce.js → address.taro-DjlXNWie.js} +19 -44
  154. package/dist/esm/{animate.taro-m67VyUHP.js → animate.taro-Dg9jxZEu.js} +6 -14
  155. package/dist/esm/{audio.taro-dJgj5qIu.js → audio.taro-DXxWGngO.js} +14 -30
  156. package/dist/esm/avatar.taro-a6CX3kxV.js +86 -0
  157. package/dist/esm/{avatarcropper.taro-GIZxzMJ_.js → avatarcropper.taro-BFvFmK4t.js} +47 -90
  158. package/dist/esm/{avatargroup.taro-h6dpv6UX.js → avatargroup.taro-bpT5kPbf.js} +3 -11
  159. package/dist/esm/{backtop.taro-Y3vOJiXq.js → backtop.taro-B-zl6AEC.js} +4 -15
  160. package/dist/esm/{badge.taro-993L861f.js → badge.taro-CyDqBb9Z.js} +4 -15
  161. package/dist/esm/{barrage.taro-6nbq7wtt.js → barrage.taro-BNOcZsJ1.js} +18 -28
  162. package/dist/esm/{button.taro-3IIFy1M2.js → button.taro-OKGsDVW7.js} +8 -23
  163. package/dist/esm/{calendar.taro-iNNHje7V.js → calendar.taro-DbHJEx4G.js} +12 -39
  164. package/dist/esm/{calendarcard.taro-9s7naGmU.js → calendarcard.taro-BHGCq5zX.js} +10 -14
  165. package/dist/esm/{calendaritem.taro-o6Z8OOGY.js → calendaritem.taro-B8tN2DYa.js} +11 -36
  166. package/dist/esm/{card.taro-p4PTy-IU.js → card.taro-uLorQW97.js} +7 -22
  167. package/dist/esm/{cascader.taro-M2nZWxiB.js → cascader.taro-CpofskUL.js} +47 -83
  168. package/dist/esm/{cell.taro-jD6MoFTj.js → cell.taro-CCnLF6RC.js} +9 -23
  169. package/dist/esm/{cellgroup.taro-08A3XAze.js → cellgroup.taro-Dz69kT6e.js} +5 -12
  170. package/dist/esm/{checkbox.taro-xMxWdpyI.js → checkbox.taro-D9F_HM7f.js} +19 -29
  171. package/dist/esm/{circleprogress.taro-myZgamBw.js → circleprogress.taro-CKSrzt8Q.js} +8 -22
  172. package/dist/esm/{col.taro-5FMpttLE.js → col.taro-C8DUuJYh.js} +5 -13
  173. package/dist/esm/{collapse.taro-sZibDygv.js → collapse.taro-BM0BsN30.js} +5 -14
  174. package/dist/esm/{collapseitem.taro-AaQ_msgd.js → collapseitem.taro-D_m4VEdG.js} +7 -16
  175. package/dist/esm/configprovider.taro-CyU_tvNJ.js +202 -0
  176. package/dist/esm/{countdown.taro-XZlfWBrA.js → countdown.taro-Dfa9kpmZ.js} +8 -18
  177. package/dist/esm/{datepicker.taro-DrXkqJkN.js → datepicker.taro-DshCn7Rn.js} +13 -25
  178. package/dist/esm/{dialog.taro-dmQGDu3o.js → dialog.taro-xsQhsC1V.js} +19 -19
  179. package/dist/esm/{divider.taro-H5fKry4P.js → divider.taro-DRcO_m9e.js} +5 -11
  180. package/dist/esm/{drag.taro-BwcleRuB.js → drag.taro-CcHIO07Y.js} +10 -18
  181. package/dist/esm/{elevator.taro-2nbUM3vH.js → elevator.taro-uhrF7ChY.js} +5 -17
  182. package/dist/esm/{ellipsis.taro-VApVqS_j.js → ellipsis.taro-B_mTyNyk.js} +25 -34
  183. package/dist/esm/{empty.taro-gwvOr1xf.js → empty.taro-Brkv6B2Z.js} +8 -18
  184. package/dist/esm/{fixednav.taro-QVBXysDj.js → fixednav.taro-WTBxWxOo.js} +10 -21
  185. package/dist/esm/formitem.taro-Brz5dj_8.js +330 -0
  186. package/dist/esm/{get-rect-by-taro-piSHvCGp.js → get-rect-by-taro-CSN0TGnD.js} +3 -2
  187. package/dist/esm/{grid.taro-3X-_AhXw.js → grid.taro-BA76RrgT.js} +5 -4
  188. package/dist/esm/{griditem.taro-TJDJVeQy.js → griditem.taro-JLddv9zD.js} +6 -11
  189. package/dist/esm/{image.taro-FfeikBlO.js → image.taro-BLz2WCva.js} +5 -6
  190. package/dist/esm/{imagepreview.taro--fVrJUOE.js → imagepreview.taro-Bb1TkBCV.js} +13 -31
  191. package/dist/esm/{indicator.taro-ZH6MICsS.js → indicator.taro-CpHZtD9p.js} +3 -5
  192. package/dist/esm/{infiniteloading.taro-BO0_y46K.js → infiniteloading.taro-Ccq4bEzk.js} +14 -21
  193. package/dist/esm/{input.taro-YoPsV-op.js → input.taro-BVC8gEuk.js} +17 -31
  194. package/dist/esm/inputnumber.taro-F3jNGr_V.js +158 -0
  195. package/dist/esm/{layout.taro-lnN-wB0Y.js → layout.taro-BE2868d6.js} +1 -1
  196. package/dist/esm/{loading.taro-aHN6xLIT.js → loading.taro-CRF1z5wQ.js} +5 -8
  197. package/dist/esm/{menu.taro-ODwHYGFM.js → menu.taro-BAiJPGR7.js} +12 -25
  198. package/dist/esm/{menuitem.taro-9nyTDLpt.js → menuitem.taro-oLv6ZYC5.js} +15 -36
  199. package/dist/esm/{navbar.taro-AuKPDCaW.js → navbar.taro-B8u3DOE4.js} +14 -29
  200. package/dist/esm/{noticebar.taro-bHnEzTvL.js → noticebar.taro-CMdfOp2g.js} +16 -32
  201. package/dist/esm/{notify.taro-mA9KS8qh.js → notify.taro-jP7y9zMU.js} +6 -15
  202. package/dist/esm/{numberkeyboard.taro-bF6VCXry.js → numberkeyboard.taro-B9rMgy7D.js} +9 -16
  203. package/dist/esm/nutui-react.es.js +93 -118
  204. package/dist/esm/{overlay.taro-HsGeVyPh.js → overlay.taro-BaBu-3-F.js} +10 -22
  205. package/dist/esm/{pagination.taro-C4_Ey5KC.js → pagination.taro-DAK6ddag.js} +7 -19
  206. package/dist/esm/{picker.taro-csU3SZPF.js → picker.taro-Cmng9GW9.js} +34 -43
  207. package/dist/esm/{popover.taro-qldQwLPC.js → popover.taro-CcKwnX27.js} +23 -41
  208. package/dist/esm/{popup.taro-ObEUml4r.js → popup.taro-Iy_WQZ-m.js} +8 -32
  209. package/dist/esm/{price.taro-Z1zR8YWV.js → price.taro-UVRHPHRD.js} +5 -16
  210. package/dist/esm/{progress.taro-pStvlrbA.js → progress.taro-BOHykt7X.js} +8 -14
  211. package/dist/esm/{pulltorefresh.taro-2jER8Mat.js → pulltorefresh.taro-BJdQj5sL.js} +31 -47
  212. package/dist/esm/{radio.taro-EKJXMjnX.js → radio.taro-CjJgX9o2.js} +20 -33
  213. package/dist/esm/{range.taro-mDYY3SXA.js → range.taro-BxMDs5Cy.js} +20 -22
  214. package/dist/esm/{rate.taro-_5Mjd_EO.js → rate.taro-BABLqt4h.js} +7 -20
  215. package/dist/esm/{row.taro-IxNlKKQM.js → row.taro-D8chDydP.js} +4 -14
  216. package/dist/esm/{searchbar.taro-hVzdT6nI.js → searchbar.taro-PfVx6o-6.js} +9 -26
  217. package/dist/esm/{shortpassword.taro-ECs_E1Xn.js → shortpassword.taro-BXsxku33.js} +10 -20
  218. package/dist/esm/{sidenavbar.taro-8qoGZg5n.js → sidenavbar.taro-eK5vaZPR.js} +7 -13
  219. package/dist/esm/sidenavbaritem.taro-L7HbsCLn.js +14 -0
  220. package/dist/esm/{signature.taro-y3qxnKMv.js → signature.taro-KPm_xs66.js} +11 -19
  221. package/dist/esm/{skeleton.taro-Pg7WtP0e.js → skeleton.taro-BwIDIf2p.js} +8 -19
  222. package/dist/esm/{space.taro-q3R_yq79.js → space.taro-CZ999etm.js} +1 -4
  223. package/dist/esm/{step.taro-_DEZqFGb.js → step.taro-DLr2GzYk.js} +8 -16
  224. package/dist/esm/steps.taro-C8Yg1Sns.js +28 -0
  225. package/dist/esm/{sticky.taro-p-evMNR-.js → sticky.taro-DRBk3gkQ.js} +12 -15
  226. package/dist/esm/{subsidenavbar.taro-Zy52MDDG.js → subsidenavbar.taro-ByxYpgfP.js} +7 -9
  227. package/dist/esm/{swipe.taro-p2ONOq1o.js → swipe.taro-wm7YWwaj.js} +29 -31
  228. package/dist/esm/{swiperitem.taro-BC1CE0T-.js → swiperitem.taro-8JXI24f0.js} +3 -1
  229. package/dist/esm/{switch.taro-L0BAbMeu.js → switch.taro-D1HgJoJz.js} +6 -13
  230. package/dist/esm/{tabbar.taro-QE0rjSKE.js → tabbar.taro-8_SmJofa.js} +7 -18
  231. package/dist/esm/tabbaritem.taro-Cb-yfOln.js +58 -0
  232. package/dist/esm/{table.taro-0zRh2hq6.js → table.taro-0BcEBB0F.js} +7 -18
  233. package/dist/esm/{tabpane.taro-5k7wWimS.js → tabpane.taro-BAe86j3t.js} +1 -4
  234. package/dist/esm/{tabs.taro-Yj7vgtSg.js → tabs.taro-HgAoKBAc.js} +14 -30
  235. package/dist/esm/{tag.taro-5KC_wObY.js → tag.taro-BsmY5QfN.js} +7 -22
  236. package/dist/esm/{textarea.taro-9zQLTCwU.js → textarea.taro-BJIFCpKb.js} +11 -20
  237. package/dist/esm/{timedetail.taro-TF9Wcblh.js → timedetail.taro-x6Zey1xi.js} +11 -21
  238. package/dist/esm/{timeselect.taro-j8LgSCe5.js → timeselect.taro-BXq4APSJ.js} +20 -33
  239. package/dist/esm/{toast.taro-xnEQSCDJ.js → toast.taro-BIR_7Wgb.js} +8 -26
  240. package/dist/esm/{tour.taro-CGEjzzN_.js → tour.taro-CMagdKcp.js} +7 -24
  241. package/dist/esm/{trendarrow.taro-hsM6-XsQ.js → trendarrow.taro-BHUetKSS.js} +6 -18
  242. package/dist/esm/tslib.es6-BZ8i9Q6l.js +47 -0
  243. package/dist/esm/types/src/packages/button/demos/h5/demo1.d.ts +3 -0
  244. package/dist/esm/types/src/packages/button/demos/h5/demo2.d.ts +3 -0
  245. package/dist/esm/types/src/packages/button/demos/h5/demo3.d.ts +3 -0
  246. package/dist/esm/types/src/packages/button/demos/h5/demo4.d.ts +3 -0
  247. package/dist/esm/types/src/packages/button/demos/h5/demo5.d.ts +3 -0
  248. package/dist/esm/types/src/packages/button/demos/h5/demo6.d.ts +3 -0
  249. package/dist/esm/types/src/packages/button/demos/h5/demo7.d.ts +3 -0
  250. package/dist/esm/types/src/packages/button/demos/h5/demo8.d.ts +3 -0
  251. package/dist/esm/types/src/packages/button/demos/h5/demo9.d.ts +3 -0
  252. package/dist/esm/types/src/packages/button/demos/taro/demo1.d.ts +3 -0
  253. package/dist/esm/types/src/packages/button/demos/taro/demo10.d.ts +3 -0
  254. package/dist/esm/types/src/packages/button/demos/taro/demo2.d.ts +3 -0
  255. package/dist/esm/types/src/packages/button/demos/taro/demo3.d.ts +3 -0
  256. package/dist/esm/types/src/packages/button/demos/taro/demo4.d.ts +3 -0
  257. package/dist/esm/types/src/packages/button/demos/taro/demo5.d.ts +3 -0
  258. package/dist/esm/types/src/packages/button/demos/taro/demo6.d.ts +3 -0
  259. package/dist/esm/types/src/packages/button/demos/taro/demo7.d.ts +3 -0
  260. package/dist/esm/types/src/packages/button/demos/taro/demo8.d.ts +3 -0
  261. package/dist/esm/types/src/packages/button/demos/taro/demo9.d.ts +3 -0
  262. package/dist/esm/types/src/packages/configprovider/configprovider.d.ts +1 -0
  263. package/dist/esm/types/src/packages/configprovider/configprovider.taro.d.ts +1 -0
  264. package/dist/esm/types/src/packages/configprovider/index.d.ts +2 -2
  265. package/dist/esm/types/src/packages/configprovider/index.taro.d.ts +2 -2
  266. package/dist/esm/types/src/packages/inputnumber/inputnumber.d.ts +15 -15
  267. package/dist/esm/types/src/packages/inputnumber/inputnumber.taro.d.ts +17 -17
  268. package/dist/esm/{uploader.taro-bRF02TR9.js → uploader.taro-CuaIVvya.js} +47 -99
  269. package/dist/esm/{use-custom-event-XvsODK8c.js → use-custom-event-DuP4onEm.js} +5 -5
  270. package/dist/esm/{use-props-value-vKr0R0AX.js → use-props-value-SH9krhkx.js} +2 -2
  271. package/dist/esm/{video.taro-csvHwS2v.js → video.taro-CEMVfhCS.js} +3 -5
  272. package/dist/esm/{virtuallist.taro-AeTVtFFa.js → virtuallist.taro-C5vZAyza.js} +7 -17
  273. package/dist/esm/{watermark.taro-nvSmcwu-.js → watermark.taro-BxM8VfXb.js} +5 -30
  274. package/dist/locales/base.js +1 -1
  275. package/dist/locales/en-US.js +1 -1
  276. package/dist/locales/id-ID.js +1 -1
  277. package/dist/locales/tr-TR.js +1 -1
  278. package/dist/locales/zh-CN.js +1 -1
  279. package/dist/locales/zh-TW.js +1 -1
  280. package/dist/locales/zh-UG.js +1 -1
  281. package/dist/nutui.react.es.js +439 -497
  282. package/dist/nutui.react.umd.js +440 -498
  283. package/dist/packages/animate/animate.scss +0 -27
  284. package/dist/packages/audio/audio.scss +0 -5
  285. package/dist/packages/avatarcropper/avatarcropper.scss +0 -2
  286. package/dist/packages/badge/badge.scss +7 -0
  287. package/dist/packages/barrage/barrage.scss +22 -3
  288. package/dist/packages/button/button.scss +0 -1
  289. package/dist/packages/calendar/calendar.scss +4 -4
  290. package/dist/packages/calendarcard/calendarcard.scss +0 -1
  291. package/dist/packages/cascader/cascader.scss +0 -1
  292. package/dist/packages/checkbox/checkbox.scss +0 -2
  293. package/dist/packages/checkboxgroup/checkboxgroup.scss +1 -3
  294. package/dist/packages/col/col.scss +2 -2
  295. package/dist/packages/collapseitem/collapseitem.scss +2 -3
  296. package/dist/packages/dialog/dialog.scss +4 -0
  297. package/dist/packages/divider/divider.scss +1 -1
  298. package/dist/packages/fixednav/fixednav.scss +0 -2
  299. package/dist/packages/form/form.scss +24 -26
  300. package/dist/packages/formitem/formitem.scss +0 -1
  301. package/dist/packages/grid/grid.scss +1 -1
  302. package/dist/packages/griditem/griditem.scss +28 -26
  303. package/dist/packages/imagepreview/imagepreview.scss +0 -1
  304. package/dist/packages/indicator/indicator.scss +2 -3
  305. package/dist/packages/menu/menu.scss +0 -7
  306. package/dist/packages/menuitem/menuitem.scss +14 -10
  307. package/dist/packages/navbar/navbar.scss +3 -5
  308. package/dist/packages/noticebar/noticebar.scss +20 -0
  309. package/dist/packages/numberkeyboard/numberkeyboard.scss +25 -18
  310. package/dist/packages/pagination/pagination.scss +0 -2
  311. package/dist/packages/picker/picker.scss +9 -0
  312. package/dist/packages/popover/popover.scss +0 -4
  313. package/dist/packages/popup/popup.scss +3 -19
  314. package/dist/packages/price/price.scss +1 -0
  315. package/dist/packages/radio/radio.scss +0 -1
  316. package/dist/packages/radiogroup/radiogroup.scss +10 -1
  317. package/dist/packages/range/range.scss +127 -127
  318. package/dist/packages/rate/rate.scss +0 -1
  319. package/dist/packages/searchbar/searchbar.scss +3 -2
  320. package/dist/packages/shortpassword/shortpassword.scss +4 -0
  321. package/dist/packages/skeleton/skeleton.scss +13 -3
  322. package/dist/packages/space/space.scss +0 -1
  323. package/dist/packages/step/step.scss +21 -25
  324. package/dist/packages/swipe/swipe.scss +0 -15
  325. package/dist/packages/swiper/swiper.scss +0 -1
  326. package/dist/packages/switch/switch.scss +11 -0
  327. package/dist/packages/table/table.scss +4 -5
  328. package/dist/packages/tabs/tabs.scss +2 -4
  329. package/dist/packages/tag/tag.scss +0 -1
  330. package/dist/packages/textarea/textarea.scss +1 -6
  331. package/dist/packages/timeselect/timeselect.scss +1 -6
  332. package/dist/packages/tour/tour.scss +1 -5
  333. package/dist/packages/trendarrow/trendarrow.scss +0 -1
  334. package/dist/packages/uploader/uploader.scss +0 -1
  335. package/dist/packages/virtuallist/virtuallist.scss +12 -12
  336. package/dist/style.css +1 -1
  337. package/dist/style.mjs +1 -1
  338. package/dist/styles/variables-jmapp.scss +4 -0
  339. package/dist/styles/variables.scss +11 -7
  340. package/dist/types/index.d.ts +98 -98
  341. package/dist/types/packages/actionsheet/actionsheet.d.ts +1 -1
  342. package/dist/types/packages/actionsheet/actionsheet.taro.d.ts +1 -1
  343. package/dist/types/packages/address/address.d.ts +1 -1
  344. package/dist/types/packages/address/address.taro.d.ts +1 -1
  345. package/dist/types/packages/address/customRender.d.ts +1 -1
  346. package/dist/types/packages/address/customRender.taro.d.ts +1 -1
  347. package/dist/types/packages/avatar/avatar.d.ts +1 -1
  348. package/dist/types/packages/avatar/avatar.taro.d.ts +1 -1
  349. package/dist/types/packages/button/demos/h5/demo1.d.ts +3 -0
  350. package/dist/types/packages/button/demos/h5/demo2.d.ts +3 -0
  351. package/dist/types/packages/button/demos/h5/demo3.d.ts +3 -0
  352. package/dist/types/packages/button/demos/h5/demo4.d.ts +3 -0
  353. package/dist/types/packages/button/demos/h5/demo5.d.ts +3 -0
  354. package/dist/types/packages/button/demos/h5/demo6.d.ts +3 -0
  355. package/dist/types/packages/button/demos/h5/demo7.d.ts +3 -0
  356. package/dist/types/packages/button/demos/h5/demo8.d.ts +3 -0
  357. package/dist/types/packages/button/demos/h5/demo9.d.ts +3 -0
  358. package/dist/types/packages/button/demos/taro/demo1.d.ts +3 -0
  359. package/dist/types/packages/button/demos/taro/demo10.d.ts +3 -0
  360. package/dist/types/packages/button/demos/taro/demo2.d.ts +3 -0
  361. package/dist/types/packages/button/demos/taro/demo3.d.ts +3 -0
  362. package/dist/types/packages/button/demos/taro/demo4.d.ts +3 -0
  363. package/dist/types/packages/button/demos/taro/demo5.d.ts +3 -0
  364. package/dist/types/packages/button/demos/taro/demo6.d.ts +3 -0
  365. package/dist/types/packages/button/demos/taro/demo7.d.ts +3 -0
  366. package/dist/types/packages/button/demos/taro/demo8.d.ts +3 -0
  367. package/dist/types/packages/button/demos/taro/demo9.d.ts +3 -0
  368. package/dist/types/packages/calendaritem/calendaritem.d.ts +1 -1
  369. package/dist/types/packages/calendaritem/calendaritem.taro.d.ts +1 -1
  370. package/dist/types/packages/cascader/cascader.d.ts +1 -1
  371. package/dist/types/packages/cascader/cascader.taro.d.ts +1 -1
  372. package/dist/types/packages/cell/cell.d.ts +1 -1
  373. package/dist/types/packages/cell/cell.taro.d.ts +1 -1
  374. package/dist/types/packages/checkbox/checkbox.d.ts +2 -2
  375. package/dist/types/packages/checkbox/checkbox.taro.d.ts +2 -2
  376. package/dist/types/packages/checkboxgroup/checkboxgroup.d.ts +2 -2
  377. package/dist/types/packages/checkboxgroup/checkboxgroup.taro.d.ts +2 -2
  378. package/dist/types/packages/configprovider/configprovider.d.ts +1 -0
  379. package/dist/types/packages/configprovider/configprovider.taro.d.ts +1 -0
  380. package/dist/types/packages/configprovider/index.d.ts +2 -2
  381. package/dist/types/packages/configprovider/index.taro.d.ts +2 -2
  382. package/dist/types/packages/datepicker/datepicker.d.ts +1 -1
  383. package/dist/types/packages/datepicker/datepicker.taro.d.ts +1 -1
  384. package/dist/types/packages/dialog/dialogwrap.d.ts +1 -1
  385. package/dist/types/packages/empty/empty.d.ts +1 -1
  386. package/dist/types/packages/empty/empty.taro.d.ts +15 -3
  387. package/dist/types/packages/fixednav/fixednav.d.ts +1 -1
  388. package/dist/types/packages/fixednav/fixednav.taro.d.ts +1 -1
  389. package/dist/types/packages/form/form.d.ts +1 -1
  390. package/dist/types/packages/form/form.taro.d.ts +1 -1
  391. package/dist/types/packages/form/index.d.ts +1 -1
  392. package/dist/types/packages/form/index.taro.d.ts +1 -1
  393. package/dist/types/packages/inputnumber/inputnumber.d.ts +15 -15
  394. package/dist/types/packages/inputnumber/inputnumber.taro.d.ts +33 -29
  395. package/dist/types/packages/menu/menu.d.ts +1 -1
  396. package/dist/types/packages/menu/menu.taro.d.ts +1 -1
  397. package/dist/types/packages/numberkeyboard/numberkeyboard.d.ts +1 -1
  398. package/dist/types/packages/numberkeyboard/numberkeyboard.taro.d.ts +1 -1
  399. package/dist/types/packages/nutui.react.build.d.ts +98 -98
  400. package/dist/types/packages/nutui.react.d.ts +98 -98
  401. package/dist/types/packages/nutui.react.taro.d.ts +98 -98
  402. package/dist/types/packages/picker/picker.d.ts +1 -1
  403. package/dist/types/packages/picker/picker.taro.d.ts +1 -1
  404. package/dist/types/packages/popover/popover.d.ts +1 -1
  405. package/dist/types/packages/popover/popover.taro.d.ts +1 -1
  406. package/dist/types/packages/popup/popup.d.ts +1 -1
  407. package/dist/types/packages/popup/popup.taro.d.ts +1 -1
  408. package/dist/types/packages/radio/radio.d.ts +2 -2
  409. package/dist/types/packages/radio/radio.taro.d.ts +2 -2
  410. package/dist/types/packages/shortpassword/shortpassword.d.ts +1 -1
  411. package/dist/types/packages/shortpassword/shortpassword.taro.d.ts +1 -1
  412. package/dist/types/packages/swiper/index.d.ts +1 -1
  413. package/dist/types/packages/swiper/index.taro.d.ts +1 -1
  414. package/dist/types/packages/tabs/tabs.d.ts +1 -1
  415. package/dist/types/packages/tabs/tabs.taro.d.ts +1 -1
  416. package/dist/types/packages/timedetail/timedetail.d.ts +1 -1
  417. package/dist/types/packages/timedetail/timedetail.taro.d.ts +1 -1
  418. package/dist/types/packages/tour/tour.d.ts +1 -1
  419. package/dist/types/packages/tour/tour.taro.d.ts +1 -1
  420. package/package.json +9 -5
  421. package/dist/esm/avatar.taro-7ltbzIdY.js +0 -109
  422. package/dist/esm/configprovider.taro-q5J2gQbi.js +0 -486
  423. package/dist/esm/formitem.taro-PPkTQGfW.js +0 -1435
  424. package/dist/esm/index-oitVOJp9.js +0 -661
  425. package/dist/esm/inputnumber.taro-7QptygT3.js +0 -197
  426. package/dist/esm/sidenavbaritem.taro-AxJNRAdi.js +0 -13
  427. package/dist/esm/steps.taro-PH0qWPla.js +0 -32
  428. package/dist/esm/tabbaritem.taro-t9C07OYX.js +0 -73
  429. /package/dist/esm/{UserContext-9BL0cq8w.js → UserContext-BlM0373q.js} +0 -0
  430. /package/dist/esm/{context-6mGEMLsx.js → context-4T-L2x0_.js} +0 -0
  431. /package/dist/esm/{context-9BL0cq8w.js → context-BlM0373q.js} +0 -0
  432. /package/dist/esm/{date-nxKOxj5-.js → date-D0pth0qC.js} +0 -0
  433. /package/dist/esm/{get-scroll-parent-uywvoQMl.js → get-scroll-parent-DB1VRg11.js} +0 -0
  434. /package/dist/esm/{index-YvHA__3D.js → index-DeNfBlua.js} +0 -0
  435. /package/dist/esm/{pad-zero-iY-0-oys.js → pad-zero-B2OUQfh7.js} +0 -0
  436. /package/dist/esm/{px-check-JiWLYN2v.js → px-check-D1Xbd9pj.js} +0 -0
  437. /package/dist/esm/{raf-UzmDvMUW.js → raf-zwv-SBjP.js} +0 -0
  438. /package/dist/esm/{safearea.taro-afu_mY7g.js → safearea.taro-BMQHr7tu.js} +0 -0
  439. /package/dist/esm/{typings-buMpDfSR.js → typings-DV9RBfhj.js} +0 -0
  440. /package/dist/esm/{use-force-update-0oEVD8Nr.js → use-force-update-CudFjCsy.js} +0 -0
  441. /package/dist/esm/{use-refs-IdrY0ww3.js → use-refs-BeEmziIR.js} +0 -0
  442. /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.10 Tue Feb 06 2024 16:10:56 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;
@@ -4113,7 +4122,7 @@ var __publicField = (obj, key, value) => {
4113
4122
  duration: duration > 0 ? duration : 0
4114
4123
  });
4115
4124
  };
4116
- const styles = style ? {
4125
+ const styles = Object.keys(style || {}).length !== 0 ? {
4117
4126
  zIndex,
4118
4127
  ...style
4119
4128
  } : {
@@ -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) {
@@ -9894,12 +9875,14 @@ var __publicField = (obj, key, value) => {
9894
9875
  );
9895
9876
  }
9896
9877
  const errs = [];
9897
- filterEntities.forEach((entity) => {
9898
- this.validateEntities(entity, errs);
9899
- });
9878
+ await Promise.all(
9879
+ filterEntities.map(async (entity) => {
9880
+ await this.validateEntities(entity, errs);
9881
+ })
9882
+ );
9900
9883
  return errs;
9901
- });
9902
- __publicField(this, "submit", async () => {
9884
+ };
9885
+ this.submit = async () => {
9903
9886
  var _a, _b, _c, _d;
9904
9887
  const errors = await this.validateFields();
9905
9888
  if (errors.length === 0) {
@@ -9907,16 +9890,15 @@ var __publicField = (obj, key, value) => {
9907
9890
  } else if (errors.length > 0) {
9908
9891
  (_d = (_c = this.callbacks).onFinishFailed) == null ? void 0 : _d.call(_c, this.store, errors);
9909
9892
  }
9910
- });
9911
- __publicField(this, "resetFields", () => {
9893
+ };
9894
+ this.resetFields = () => {
9912
9895
  this.errors.length = 0;
9913
9896
  this.store = this.initialValues;
9914
9897
  this.fieldEntities.forEach((entity) => {
9915
9898
  entity.onStoreChange("reset");
9916
9899
  });
9917
- });
9918
- // 监听事件
9919
- __publicField(this, "registerUpdate", (field, shouldUpdate) => {
9900
+ };
9901
+ this.registerUpdate = (field, shouldUpdate) => {
9920
9902
  this.updateList.push({
9921
9903
  entity: field,
9922
9904
  condition: shouldUpdate
@@ -9924,11 +9906,11 @@ var __publicField = (obj, key, value) => {
9924
9906
  return () => {
9925
9907
  this.updateList = this.updateList.filter((i2) => i2.entity !== field);
9926
9908
  };
9927
- });
9928
- __publicField(this, "dispatch", ({ name }) => {
9909
+ };
9910
+ this.dispatch = ({ name }) => {
9929
9911
  this.validateFields([name]);
9930
- });
9931
- __publicField(this, "getInternal", (key) => {
9912
+ };
9913
+ this.getInternal = (key) => {
9932
9914
  if (key === SECRET) {
9933
9915
  return {
9934
9916
  registerField: this.registerField,
@@ -9940,8 +9922,8 @@ var __publicField = (obj, key, value) => {
9940
9922
  registerUpdate: this.registerUpdate
9941
9923
  };
9942
9924
  }
9943
- });
9944
- __publicField(this, "getForm", () => {
9925
+ };
9926
+ this.getForm = () => {
9945
9927
  return {
9946
9928
  getFieldValue: this.getFieldValue,
9947
9929
  getFieldsValue: this.getFieldsValue,
@@ -9952,7 +9934,7 @@ var __publicField = (obj, key, value) => {
9952
9934
  errors: this.errors,
9953
9935
  getInternal: this.getInternal
9954
9936
  };
9955
- });
9937
+ };
9956
9938
  this.callbacks = {
9957
9939
  onFinish: () => {
9958
9940
  },
@@ -10072,14 +10054,10 @@ var __publicField = (obj, key, value) => {
10072
10054
  shouldUpdate: false,
10073
10055
  noStyle: false
10074
10056
  };
10075
- class FormItem extends React.Component {
10057
+ const _FormItem = class _FormItem extends React.Component {
10076
10058
  constructor(props) {
10077
10059
  super(props);
10078
- __publicField(this, "cancelRegister");
10079
- __publicField(this, "componentRef");
10080
- __publicField(this, "eventOff");
10081
- // children添加value属性和onChange事件
10082
- __publicField(this, "getControlled", (children) => {
10060
+ this.getControlled = (children) => {
10083
10061
  var _a;
10084
10062
  const { setFieldsValue, getFieldValue } = this.context;
10085
10063
  const { dispatch } = this.context.getInternal(SECRET);
@@ -10106,7 +10084,7 @@ var __publicField = (obj, key, value) => {
10106
10084
  const { validateTrigger } = this.props;
10107
10085
  let validateTriggers = [this.props.trigger || "onChange"];
10108
10086
  if (validateTrigger) {
10109
- validateTriggers = typeof validateTrigger === "string" ? [...validateTriggers, validateTrigger] : [...validateTriggers, ...validateTrigger];
10087
+ validateTriggers = typeof validateTrigger === "string" ? [validateTrigger] : [...validateTrigger];
10110
10088
  validateTriggers.forEach((trigger) => {
10111
10089
  const originTrigger = controlled[trigger];
10112
10090
  controlled[trigger] = (...args) => {
@@ -10136,21 +10114,22 @@ var __publicField = (obj, key, value) => {
10136
10114
  };
10137
10115
  }
10138
10116
  return controlled;
10139
- });
10140
- __publicField(this, "refresh", () => {
10117
+ };
10118
+ this.refresh = () => {
10141
10119
  this.setState(({ resetCount }) => ({
10142
10120
  resetCount: resetCount + 1
10143
10121
  }));
10144
- });
10145
- __publicField(this, "onStoreChange", (type2) => {
10122
+ };
10123
+ this.onStoreChange = (type2) => {
10146
10124
  if (type2 === "reset") {
10147
10125
  this.context.errors[this.props.name] = [];
10148
10126
  this.refresh();
10149
10127
  } else {
10150
10128
  this.forceUpdate();
10151
10129
  }
10152
- });
10153
- __publicField(this, "renderLayout", (childNode) => {
10130
+ };
10131
+ this.renderLayout = (childNode) => {
10132
+ var _a;
10154
10133
  const {
10155
10134
  label,
10156
10135
  name,
@@ -10176,16 +10155,19 @@ var __publicField = (obj, key, value) => {
10176
10155
  onClick: (e2) => this.props.onClick && this.props.onClick(e2, this.componentRef)
10177
10156
  },
10178
10157
  label ? /* @__PURE__ */ React.createElement("div", { className: "nut-cell-title nut-form-item-label" }, renderLabel) : null,
10179
- /* @__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(
10180
10159
  "div",
10181
10160
  {
10182
10161
  className: "nut-form-item-body-tips",
10183
- style: { textAlign: errorMessageAlign }
10162
+ style: {
10163
+ textAlign: errorMessageAlign,
10164
+ display: (item == null ? void 0 : item.length) ? "initial" : "none"
10165
+ }
10184
10166
  },
10185
- item[0].message
10167
+ (_a = item == null ? void 0 : item[0]) == null ? void 0 : _a.message
10186
10168
  ))
10187
10169
  );
10188
- });
10170
+ };
10189
10171
  this.componentRef = React.createRef();
10190
10172
  this.state = {
10191
10173
  resetCount: 1
@@ -10218,9 +10200,10 @@ var __publicField = (obj, key, value) => {
10218
10200
  }
10219
10201
  return /* @__PURE__ */ React.createElement(React.Fragment, { key: this.state.resetCount }, this.props.noStyle ? returnChildNode : this.renderLayout(returnChildNode));
10220
10202
  }
10221
- }
10222
- __publicField(FormItem, "defaultProps", defaultProps$Y);
10223
- __publicField(FormItem, "contextType", Context);
10203
+ };
10204
+ _FormItem.defaultProps = defaultProps$Y;
10205
+ _FormItem.contextType = Context;
10206
+ let FormItem = _FormItem;
10224
10207
  const InnerForm = Form;
10225
10208
  InnerForm.Item = FormItem;
10226
10209
  InnerForm.useForm = useForm;
@@ -10400,7 +10383,10 @@ var __publicField = (obj, key, value) => {
10400
10383
  name,
10401
10384
  className: "nut-input-native",
10402
10385
  ref: inputRef,
10403
- style: { textAlign: align },
10386
+ style: {
10387
+ textAlign: `${// eslint-disable-next-line no-nested-ternary
10388
+ align === "right" ? "end" : align === "left" ? "start" : "center"}`
10389
+ },
10404
10390
  type: inputType(type2),
10405
10391
  password: type2 === "password",
10406
10392
  maxlength: maxLength,
@@ -10441,11 +10427,11 @@ var __publicField = (obj, key, value) => {
10441
10427
  const defaultProps$W = {
10442
10428
  ...ComponentDefaults,
10443
10429
  disabled: false,
10444
- min: 1,
10445
- max: 9999,
10446
10430
  readOnly: false,
10447
10431
  allowEmpty: false,
10448
- defaultValue: 0,
10432
+ min: 1,
10433
+ max: 9999,
10434
+ type: "digit",
10449
10435
  step: 1,
10450
10436
  digits: 0,
10451
10437
  async: false
@@ -10457,6 +10443,7 @@ var __publicField = (obj, key, value) => {
10457
10443
  disabled,
10458
10444
  min,
10459
10445
  max,
10446
+ type: type2,
10460
10447
  readOnly,
10461
10448
  value,
10462
10449
  defaultValue,
@@ -10478,197 +10465,162 @@ var __publicField = (obj, key, value) => {
10478
10465
  ...defaultProps$W,
10479
10466
  ...props
10480
10467
  };
10481
- const inputRef = React.useRef("");
10482
- const [_checked, setChecked] = usePropsValue({
10483
- value,
10484
- defaultValue
10468
+ const classes = classNames(classPrefix$h, {
10469
+ [`${classPrefix$h}-disabled`]: disabled
10485
10470
  });
10471
+ const [focused, setFocused] = React.useState(false);
10472
+ const inputRef = React.useRef(null);
10486
10473
  React.useEffect(() => {
10487
- if (formatter) {
10488
- if (_checked || _checked === 0) {
10489
- inputRef.current = formatter(_checked);
10490
- setChecked(formatter(_checked));
10491
- }
10492
- }
10493
- }, []);
10494
- const classes = classNames(
10495
- {
10496
- [`${classPrefix$h}`]: true,
10497
- [`${classPrefix$h}-disabled`]: disabled
10498
- },
10499
- className
10500
- );
10501
- const styles = {
10502
- ...style
10503
- };
10504
- const addAllow = (value2 = _checked) => {
10505
- if (formatter) {
10506
- const numValue = String(value2).replace(/[^0-9|.]/gi, "");
10507
- return Number(numValue) < Number(max) && !disabled;
10474
+ var _a, _b;
10475
+ if (focused) {
10476
+ (_b = (_a = inputRef.current) == null ? void 0 : _a.select) == null ? void 0 : _b.call(_a);
10508
10477
  }
10509
- return Number(value2) < Number(max) && !disabled;
10510
- };
10511
- const reduceAllow = (value2 = _checked) => {
10512
- if (formatter) {
10513
- const numValue = String(value2).replace(/[^0-9|.]/gi, "");
10514
- return Number(numValue) > Number(min) && !disabled;
10478
+ }, [focused]);
10479
+ const [shadowValue, setShadowValue] = usePropsValue({
10480
+ value: typeof value === "string" ? parseFloat(value) : value,
10481
+ defaultValue: typeof defaultValue === "string" ? parseFloat(defaultValue) : defaultValue,
10482
+ finalValue: 0,
10483
+ onChange: (value2) => {
10515
10484
  }
10516
- return Number(value2) > Number(min) && !disabled;
10517
- };
10518
- const iconMinusClasses = classNames("nut-inputnumber-icon icon-minus", {
10519
- "nut-inputnumber-icon-disabled": !reduceAllow()
10520
- });
10521
- const iconAddClasses = classNames("nut-inputnumber-icon icon-plus", {
10522
- "nut-inputnumber-icon-disabled": !addAllow()
10523
10485
  });
10524
- const fixedDecimalPlaces = (v) => {
10525
- return Number(v).toFixed(Number(digits));
10526
- };
10527
- const emitChange = (value2, e2) => {
10528
- const outputValue = fixedDecimalPlaces(value2);
10529
- onChange && onChange(outputValue, e2);
10530
- if (!async) {
10531
- if (Number(outputValue) < Number(min)) {
10532
- formatter ? setChecked(formatter(Number(min))) : setChecked(Number(min));
10533
- } else if (Number(outputValue) > Number(max)) {
10534
- formatter ? setChecked(formatter(Number(max))) : setChecked(Number(max));
10535
- } else {
10536
- formatter ? setChecked(formatter(outputValue)) : setChecked(outputValue);
10537
- }
10486
+ const bound2 = (value2, min2, max2) => {
10487
+ let res = value2;
10488
+ if (min2 !== void 0) {
10489
+ res = Math.max(Number(min2), res);
10538
10490
  }
10539
- };
10540
- const reduceNumber = (e2) => {
10541
- onMinus && onMinus(e2);
10542
- if (reduceAllow()) {
10543
- if (formatter) {
10544
- const numValue = String(_checked).replace(/[^0-9|.]/gi, "");
10545
- const outputValue = Number(numValue) - Number(step);
10546
- inputRef.current = formatter(outputValue);
10547
- emitChange(outputValue, e2);
10548
- } else {
10549
- const outputValue = Number(_checked) - Number(step);
10550
- emitChange(outputValue, e2);
10551
- }
10552
- } else {
10553
- onOverlimit && onOverlimit(e2);
10491
+ if (max2 !== void 0) {
10492
+ res = Math.min(Number(max2), res);
10554
10493
  }
10494
+ return res;
10555
10495
  };
10556
- const addNumber = (e2) => {
10557
- onPlus && onPlus(e2);
10558
- if (addAllow()) {
10559
- if (formatter) {
10560
- const numValue = String(_checked).replace(/[^0-9|.]/gi, "");
10561
- const outputValue = Number(numValue) + Number(step);
10562
- inputRef.current = formatter(outputValue);
10563
- emitChange(outputValue, e2);
10564
- } else {
10565
- const outputValue = Number(_checked) + Number(step);
10566
- emitChange(outputValue, e2);
10567
- }
10568
- } else {
10569
- onOverlimit && onOverlimit(e2);
10496
+ const format2 = (value2) => {
10497
+ if (value2 === null)
10498
+ return "";
10499
+ if (typeof value2 === "string")
10500
+ value2 = parseFloat(value2);
10501
+ const fixedValue = bound2(value2, Number(min), Number(max));
10502
+ if (formatter) {
10503
+ return formatter(fixedValue);
10570
10504
  }
10571
- };
10572
- const changeValue = (e2) => {
10573
- const input = e2.target;
10574
- onChange && onChange(input.value, e2);
10575
- if (!async) {
10576
- setChecked(input.value);
10505
+ if (digits) {
10506
+ return fixedValue.toFixed(digits).toString();
10577
10507
  }
10508
+ return fixedValue.toString();
10578
10509
  };
10579
- const changeFormatValue = (e2) => {
10580
- const input = e2.target.value;
10581
- const numReg = /^[0-9]*$/;
10582
- const numValue = input.replace(/[^0-9|.]/gi, "");
10583
- if (formatter) {
10584
- if (!numReg.test(input[0]) && numValue) {
10585
- setChecked(formatter(numValue));
10586
- } else if (!numReg.test(input[0]) && !numValue) {
10587
- setChecked(input);
10588
- } else if (numReg.test(input[0])) {
10589
- if (formatter(numValue) === inputRef.current) {
10590
- setChecked(numValue);
10591
- } else {
10592
- setChecked(formatter(numValue));
10593
- inputRef.current = formatter(numValue);
10594
- }
10595
- }
10510
+ const [inputValue, setInputValue] = React.useState(format2(shadowValue));
10511
+ React.useEffect(() => {
10512
+ if (!focused && !async) {
10513
+ setShadowValue(bound2(Number(shadowValue), Number(min), Number(max)));
10514
+ setInputValue(format2(shadowValue));
10596
10515
  }
10597
- };
10598
- const burFormatValue = (e2) => {
10599
- const input = e2.target.value;
10600
- const numReg = /^[0-9]*$/;
10601
- const numValue = input.replace(/[^0-9|.]/gi, "");
10602
- if (formatter) {
10603
- if (formatter(numValue) === input) {
10604
- emitChange(numValue, e2);
10605
- return;
10606
- }
10607
- if (!numReg.test(input) || !input) {
10608
- setChecked(formatter(""));
10516
+ }, [focused, shadowValue]);
10517
+ React.useEffect(() => {
10518
+ if (async) {
10519
+ setShadowValue(bound2(Number(value), Number(min), Number(max)));
10520
+ setInputValue(format2(value));
10521
+ }
10522
+ }, [value]);
10523
+ const calcNextValue = (current, step2, symbol) => {
10524
+ const dig = digits + 1;
10525
+ return (parseFloat(current || "0") * dig + parseFloat(step2) * dig * symbol) / dig;
10526
+ };
10527
+ const update = (negative, e2) => {
10528
+ if (step !== void 0) {
10529
+ const shouldOverBoundary = calcNextValue(
10530
+ shadowValue,
10531
+ step,
10532
+ negative ? -1 : 1
10533
+ );
10534
+ const nextValue = bound2(shouldOverBoundary, Number(min), Number(max));
10535
+ setShadowValue(nextValue);
10536
+ if (negative ? shouldOverBoundary < min : shouldOverBoundary > max) {
10537
+ onOverlimit == null ? void 0 : onOverlimit(e2);
10538
+ } else {
10539
+ onChange == null ? void 0 : onChange(nextValue, e2);
10609
10540
  }
10610
10541
  }
10611
10542
  };
10612
- const focusValue = (e2) => {
10543
+ const handleReduce = (e2) => {
10613
10544
  if (disabled)
10614
10545
  return;
10615
- if (readOnly)
10616
- return;
10617
- onFocus && onFocus(e2);
10546
+ onMinus == null ? void 0 : onMinus(e2);
10547
+ update(true, e2);
10618
10548
  };
10619
- const burValue = (e2) => {
10549
+ const handlePlus = (e2) => {
10620
10550
  if (disabled)
10621
10551
  return;
10622
- if (readOnly)
10623
- return;
10624
- const input = e2.target;
10625
- let value2 = +input.value;
10626
- if (value2 === 0 && !allowEmpty) {
10627
- value2 = Number(defaultValue);
10552
+ onPlus == null ? void 0 : onPlus(e2);
10553
+ update(false, e2);
10554
+ };
10555
+ const parseValue = (text) => {
10556
+ if (text === "")
10557
+ return null;
10558
+ if (text === "-")
10559
+ return null;
10560
+ return text;
10561
+ };
10562
+ const handleInputChange = (e2) => {
10563
+ setInputValue(e2.target.value);
10564
+ const valueStr = parseValue(e2.target.value);
10565
+ if (valueStr === null) {
10566
+ if (allowEmpty) {
10567
+ setShadowValue(null);
10568
+ } else {
10569
+ setShadowValue(defaultValue);
10570
+ }
10571
+ } else {
10572
+ setShadowValue(valueStr);
10628
10573
  }
10629
- if (value2 < Number(min)) {
10630
- value2 = Number(min);
10631
- } else if (value2 > Number(max)) {
10632
- value2 = Number(max);
10574
+ if (!async) {
10575
+ onChange == null ? void 0 : onChange(parseFloat(valueStr || "0").toFixed(digits), e2);
10633
10576
  }
10634
- emitChange(value2, e2);
10577
+ };
10578
+ const handleFocus = (e2) => {
10579
+ setFocused(true);
10580
+ setInputValue(
10581
+ shadowValue !== void 0 && shadowValue !== null ? bound2(Number(shadowValue), Number(min), Number(max)).toString() : ""
10582
+ );
10583
+ onFocus && onFocus(e2);
10584
+ };
10585
+ const handleBlur = (e2) => {
10586
+ setFocused(false);
10635
10587
  onBlur && onBlur(e2);
10588
+ if (async) {
10589
+ const valueStr = parseValue(e2.target.value);
10590
+ onChange == null ? void 0 : onChange(parseFloat(valueStr || "0").toFixed(digits), e2);
10591
+ }
10636
10592
  };
10637
- return /* @__PURE__ */ React.createElement("div", { className: classes, style: styles, ...restProps }, /* @__PURE__ */ React.createElement("div", { className: "nut-input-minus" }, /* @__PURE__ */ React.createElement(
10593
+ return /* @__PURE__ */ React.createElement("div", { className: classes, style, ...restProps }, /* @__PURE__ */ React.createElement("div", { className: "nut-input-minus" }, /* @__PURE__ */ React.createElement(
10638
10594
  t,
10639
10595
  {
10640
- className: iconMinusClasses,
10641
- onClick: (e2) => reduceNumber(e2)
10596
+ className: classNames("nut-inputnumber-icon icon-minus", {
10597
+ [`${classPrefix$h}-icon-disabled`]: shadowValue === min || disabled
10598
+ }),
10599
+ onClick: handleReduce
10642
10600
  }
10643
- )), /* @__PURE__ */ React.createElement(React.Fragment, null, formatter ? /* @__PURE__ */ React.createElement(
10601
+ )), /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
10644
10602
  "input",
10645
10603
  {
10646
10604
  className: "nut-number-input",
10647
- type: "text",
10648
- min,
10649
- max,
10605
+ type: type2,
10606
+ ref: inputRef,
10607
+ inputMode: type2 === "digit" ? "decimal" : "numeric",
10650
10608
  disabled,
10651
10609
  readOnly,
10652
- value: _checked,
10653
- onInput: changeFormatValue,
10654
- onBlur: burFormatValue,
10655
- onFocus: focusValue
10610
+ value: inputValue,
10611
+ onInput: handleInputChange,
10612
+ onBlur: handleBlur,
10613
+ onFocus: handleFocus
10656
10614
  }
10657
- ) : /* @__PURE__ */ React.createElement(
10658
- "input",
10615
+ )), /* @__PURE__ */ React.createElement("div", { className: "nut-input-add" }, /* @__PURE__ */ React.createElement(
10616
+ i,
10659
10617
  {
10660
- className: "nut-number-input",
10661
- type: "digit",
10662
- min,
10663
- max,
10664
- disabled,
10665
- readOnly,
10666
- value: _checked,
10667
- onInput: changeValue,
10668
- onBlur: burValue,
10669
- onFocus: focusValue
10618
+ className: classNames("nut-inputnumber-icon icon-plus", {
10619
+ [`${classPrefix$h}-icon-disabled`]: shadowValue === max || disabled
10620
+ }),
10621
+ onClick: handlePlus
10670
10622
  }
10671
- )), /* @__PURE__ */ React.createElement("div", { className: "nut-input-add" }, /* @__PURE__ */ React.createElement(i, { className: iconAddClasses, onClick: (e2) => addNumber(e2) })));
10623
+ )));
10672
10624
  };
10673
10625
  InputNumber.defaultProps = defaultProps$W;
10674
10626
  InputNumber.displayName = "NutInputNumber";
@@ -11412,6 +11364,7 @@ var __publicField = (obj, key, value) => {
11412
11364
  marks: {}
11413
11365
  };
11414
11366
  const Range = (props) => {
11367
+ const rtl = useRtl();
11415
11368
  const {
11416
11369
  className,
11417
11370
  range: range2,
@@ -11524,15 +11477,17 @@ var __publicField = (obj, key, value) => {
11524
11477
  transition: dragStatus ? "none" : void 0
11525
11478
  };
11526
11479
  }
11480
+ const dir = rtl ? "right" : "left";
11527
11481
  return {
11528
11482
  width: calcMainAxis(),
11529
- left: calcOffset(),
11483
+ [dir]: calcOffset(),
11530
11484
  transition: dragStatus ? "none" : void 0
11531
11485
  };
11532
11486
  };
11533
11487
  const marksStyle = (mark) => {
11488
+ const dir = rtl ? "right" : "left";
11534
11489
  let style = {
11535
- left: `${(mark - min) / scope() * 100}%`
11490
+ [dir]: `${(mark - min) / scope() * 100}%`
11536
11491
  };
11537
11492
  if (vertical) {
11538
11493
  style = {
@@ -11623,6 +11578,7 @@ var __publicField = (obj, key, value) => {
11623
11578
  let delta = touch.deltaX.current;
11624
11579
  let total = rect.width;
11625
11580
  let diff = delta / total * scope();
11581
+ diff = rtl ? -diff : diff;
11626
11582
  if (vertical) {
11627
11583
  delta = touch.deltaY.current;
11628
11584
  total = rect.height;
@@ -12151,7 +12107,7 @@ var __publicField = (obj, key, value) => {
12151
12107
  },
12152
12108
  /* @__PURE__ */ React.createElement("div", { className: classNames(classPrefix2, className), style }, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-title` }, title || locale.shortpassword.title), /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-description` }, description || locale.shortpassword.description), /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-input`, onClick: onFocus }, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-input-site` }), /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-input-fake` }, [...new Array(comLen).keys()].map((item, index) => {
12153
12109
  return /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-input-fake-li`, key: index }, inputValue.length > index && /* @__PURE__ */ React.createElement(React.Fragment, null, plain ? inputValue[index] : /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-input-fake-li-icon` })));
12154
- }))), /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-message` }, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-message-error` }, error), /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-message-forget`, onClick: onTips }, tips || /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(z, { size: 11, style: { marginRight: "3px" } }), locale.shortpassword.tips))), !hideFooter && /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-footer` }, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-footer-cancel`, onClick: onCancel }, locale.cancel), /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-footer-sure`, onClick: sure }, locale.confirm)))
12110
+ }))), /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-message` }, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-message-error` }, error), /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-message-forget`, onClick: onTips }, tips || /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(z, { size: 11 }), locale.shortpassword.tips))), !hideFooter && /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-footer` }, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-footer-cancel`, onClick: onCancel }, locale.cancel), /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-footer-sure`, onClick: sure }, locale.confirm)))
12155
12111
  );
12156
12112
  };
12157
12113
  const ShortPassword = React.forwardRef(InternalShortPassword);
@@ -12486,22 +12442,14 @@ var __publicField = (obj, key, value) => {
12486
12442
  TextArea.displayName = "NutTextArea";
12487
12443
  class UploadOptions {
12488
12444
  constructor() {
12489
- __publicField(this, "url", "");
12490
- __publicField(this, "name", "file");
12491
- __publicField(this, "fileType", "image");
12492
- __publicField(this, "formData");
12493
- __publicField(this, "sourceFile");
12494
- __publicField(this, "method", "post");
12495
- __publicField(this, "xhrState", 200);
12496
- __publicField(this, "timeout", 30 * 1e3);
12497
- __publicField(this, "headers", {});
12498
- __publicField(this, "withCredentials", false);
12499
- __publicField(this, "onStart");
12500
- __publicField(this, "taroFilePath");
12501
- __publicField(this, "onProgress");
12502
- __publicField(this, "onSuccess");
12503
- __publicField(this, "onFailure");
12504
- __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;
12505
12453
  }
12506
12454
  }
12507
12455
  const UPLOADING = "uploading";
@@ -12509,7 +12457,6 @@ var __publicField = (obj, key, value) => {
12509
12457
  const ERROR = "error";
12510
12458
  class Upload {
12511
12459
  constructor(options) {
12512
- __publicField(this, "options");
12513
12460
  this.options = options;
12514
12461
  }
12515
12462
  upload() {
@@ -12639,18 +12586,11 @@ var __publicField = (obj, key, value) => {
12639
12586
  };
12640
12587
  class FileItem {
12641
12588
  constructor() {
12642
- __publicField(this, "status", "ready");
12643
- __publicField(this, "message", "准备中..");
12644
- __publicField(this, "uid", (/* @__PURE__ */ new Date()).getTime().toString());
12645
- __publicField(this, "name");
12646
- __publicField(this, "url");
12647
- __publicField(this, "type");
12648
- __publicField(this, "path");
12649
- __publicField(this, "percentage", 0);
12650
- __publicField(this, "formData", {});
12651
- __publicField(this, "responseText");
12652
- __publicField(this, "loadingIcon");
12653
- __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 = {};
12654
12594
  }
12655
12595
  }
12656
12596
  const defaultProps$J = {
@@ -12661,6 +12601,7 @@ var __publicField = (obj, key, value) => {
12661
12601
  delay: 0
12662
12602
  };
12663
12603
  const Progress = (props) => {
12604
+ const rtl = useRtl();
12664
12605
  const {
12665
12606
  className,
12666
12607
  style,
@@ -12710,7 +12651,7 @@ var __publicField = (obj, key, value) => {
12710
12651
  "div",
12711
12652
  {
12712
12653
  className: `${classPrefix2}-text`,
12713
- style: { left: `${displayPercent}%` }
12654
+ style: rtl ? { right: `${displayPercent}%` } : { left: `${displayPercent}%` }
12714
12655
  },
12715
12656
  children || /* @__PURE__ */ React.createElement(
12716
12657
  "div",
@@ -13202,6 +13143,7 @@ var __publicField = (obj, key, value) => {
13202
13143
  return /* @__PURE__ */ React.createElement(
13203
13144
  Popup,
13204
13145
  {
13146
+ ...rest,
13205
13147
  round: true,
13206
13148
  visible,
13207
13149
  position: "bottom",
@@ -14980,7 +14922,7 @@ var __publicField = (obj, key, value) => {
14980
14922
  const classPrefix2 = "nut-skeleton";
14981
14923
  const classes = classNames(classPrefix2, className);
14982
14924
  const avatarClass = classNames({
14983
- avatar: true,
14925
+ [`nut-avatar`]: true,
14984
14926
  [`avatar-${avatarShape}`]: avatarShape
14985
14927
  });
14986
14928
  const repeatLines = (num) => {
@@ -14998,7 +14940,7 @@ var __publicField = (obj, key, value) => {
14998
14940
  height: "50px"
14999
14941
  };
15000
14942
  };
15001
- return /* @__PURE__ */ React.createElement(React.Fragment, null, visible ? /* @__PURE__ */ React.createElement("div", null, children) : /* @__PURE__ */ React.createElement("div", { className: classes, ...rest }, animated && /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-animation` }), /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-content` }, avatar && /* @__PURE__ */ React.createElement(
14943
+ return /* @__PURE__ */ React.createElement(React.Fragment, null, visible ? /* @__PURE__ */ React.createElement(React.Fragment, null, children) : /* @__PURE__ */ React.createElement("div", { className: classes, ...rest }, animated && /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-animation` }), /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-content` }, avatar && /* @__PURE__ */ React.createElement(
15002
14944
  Avatar,
15003
14945
  {
15004
14946
  className: avatarClass,
@@ -15492,7 +15434,7 @@ var __publicField = (obj, key, value) => {
15492
15434
  CountUp.defaultProps = defaultProps$r;
15493
15435
  CountUp.displayName = "NutCountUp";
15494
15436
  const defaultProps$q = {};
15495
- class AnimatingNumbers extends React.Component {
15437
+ const _AnimatingNumbers = class _AnimatingNumbers extends React.Component {
15496
15438
  constructor(props) {
15497
15439
  super(props);
15498
15440
  this.state = {};
@@ -15500,10 +15442,11 @@ var __publicField = (obj, key, value) => {
15500
15442
  render() {
15501
15443
  return /* @__PURE__ */ React.createElement("div", { className: "nut-animatingnumbers" });
15502
15444
  }
15503
- }
15504
- __publicField(AnimatingNumbers, "defaultProps", defaultProps$q);
15505
- __publicField(AnimatingNumbers, "displayName", "NutAnimatingNumbers");
15506
- __publicField(AnimatingNumbers, "CountUp", CountUp);
15445
+ };
15446
+ _AnimatingNumbers.defaultProps = defaultProps$q;
15447
+ _AnimatingNumbers.displayName = "NutAnimatingNumbers";
15448
+ _AnimatingNumbers.CountUp = CountUp;
15449
+ let AnimatingNumbers = _AnimatingNumbers;
15507
15450
  AnimatingNumbers.CountUp = CountUp;
15508
15451
  const defaultProps$p = {
15509
15452
  ...ComponentDefaults,
@@ -17681,8 +17624,7 @@ var __publicField = (obj, key, value) => {
17681
17624
  };
17682
17625
  const defaultConfigRef = {
17683
17626
  current: {
17684
- locale: zhCN,
17685
- direction: "ltr"
17627
+ locale: zhCN
17686
17628
  }
17687
17629
  };
17688
17630
  const getDefaultConfig = () => {