@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,11 +1,5 @@
1
- var __defProp = Object.defineProperty;
2
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
- var __publicField = (obj, key, value) => {
4
- __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
5
- return value;
6
- };
7
1
  /*!
8
- * @nutui/nutui-react-taro v2.3.10 Tue Feb 06 2024 16:10:56 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react-taro v2.3.12 Fri Mar 01 2024 16:07:31 GMT+0800 (China Standard Time)
9
3
  * (c) 2023 @jdf2e.
10
4
  * Released under the MIT License.
11
5
  */
@@ -28,34 +22,44 @@ var classnames = { exports: {} };
28
22
  (function() {
29
23
  var hasOwn = {}.hasOwnProperty;
30
24
  function classNames2() {
31
- var classes = [];
25
+ var classes = "";
32
26
  for (var i2 = 0; i2 < arguments.length; i2++) {
33
27
  var arg = arguments[i2];
34
- if (!arg)
35
- continue;
36
- var argType = typeof arg;
37
- if (argType === "string" || argType === "number") {
38
- classes.push(arg);
39
- } else if (Array.isArray(arg)) {
40
- if (arg.length) {
41
- var inner = classNames2.apply(null, arg);
42
- if (inner) {
43
- classes.push(inner);
44
- }
45
- }
46
- } else if (argType === "object") {
47
- if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes("[native code]")) {
48
- classes.push(arg.toString());
49
- continue;
50
- }
51
- for (var key in arg) {
52
- if (hasOwn.call(arg, key) && arg[key]) {
53
- classes.push(key);
54
- }
55
- }
28
+ if (arg) {
29
+ classes = appendClass(classes, parseValue(arg));
30
+ }
31
+ }
32
+ return classes;
33
+ }
34
+ function parseValue(arg) {
35
+ if (typeof arg === "string" || typeof arg === "number") {
36
+ return arg;
37
+ }
38
+ if (typeof arg !== "object") {
39
+ return "";
40
+ }
41
+ if (Array.isArray(arg)) {
42
+ return classNames2.apply(null, arg);
43
+ }
44
+ if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes("[native code]")) {
45
+ return arg.toString();
46
+ }
47
+ var classes = "";
48
+ for (var key in arg) {
49
+ if (hasOwn.call(arg, key) && arg[key]) {
50
+ classes = appendClass(classes, key);
56
51
  }
57
52
  }
58
- return classes.join(" ");
53
+ return classes;
54
+ }
55
+ function appendClass(value, newClass) {
56
+ if (!newClass) {
57
+ return value;
58
+ }
59
+ if (value) {
60
+ return value + " " + newClass;
61
+ }
62
+ return value + newClass;
59
63
  }
60
64
  if (module.exports) {
61
65
  classNames2.default = classNames2;
@@ -747,8 +751,8 @@ lodash_isequal.exports;
747
751
  var reIsNative = RegExp(
748
752
  "^" + funcToString.call(hasOwnProperty).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
749
753
  );
750
- 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;
751
- var nativeGetSymbols = Object.getOwnPropertySymbols, nativeIsBuffer = Buffer2 ? Buffer2.isBuffer : void 0, nativeKeys = overArg(Object.keys, Object);
754
+ 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;
755
+ var nativeGetSymbols = Object.getOwnPropertySymbols, nativeIsBuffer = Buffer ? Buffer.isBuffer : void 0, nativeKeys = overArg(Object.keys, Object);
752
756
  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");
753
757
  var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map2), promiseCtorString = toSource(Promise2), setCtorString = toSource(Set), weakMapCtorString = toSource(WeakMap);
754
758
  var symbolProto2 = Symbol2 ? Symbol2.prototype : void 0, symbolValueOf = symbolProto2 ? symbolProto2.valueOf : void 0;
@@ -1080,7 +1084,7 @@ lodash_isequal.exports;
1080
1084
  object4 = object4.buffer;
1081
1085
  other = other.buffer;
1082
1086
  case arrayBufferTag:
1083
- if (object4.byteLength != other.byteLength || !equalFunc(new Uint8Array2(object4), new Uint8Array2(other))) {
1087
+ if (object4.byteLength != other.byteLength || !equalFunc(new Uint8Array(object4), new Uint8Array(other))) {
1084
1088
  return false;
1085
1089
  }
1086
1090
  return true;
@@ -1458,16 +1462,21 @@ function convertThemeVarsToCSSVars(themeVars) {
1458
1462
  });
1459
1463
  return cssVars;
1460
1464
  }
1465
+ const useRtl = () => {
1466
+ const { direction } = useConfig$1();
1467
+ return direction === "rtl";
1468
+ };
1461
1469
  const ConfigProvider = (props) => {
1462
1470
  const { style, className, children, direction, ...config2 } = props;
1463
1471
  const mergedConfig = useMemo(
1464
1472
  () => {
1465
1473
  return {
1466
1474
  ...getDefaultConfig$1(),
1467
- ...config2
1475
+ ...config2,
1476
+ direction
1468
1477
  };
1469
1478
  },
1470
- [config2],
1479
+ [config2, direction],
1471
1480
  (prev, next) => prev.some((prevTheme, index) => {
1472
1481
  const nextTheme = next[index];
1473
1482
  return !isequal(prevTheme, nextTheme);
@@ -1615,72 +1624,111 @@ function _inheritsLoose$1(subClass, superClass) {
1615
1624
  _setPrototypeOf$1(subClass, superClass);
1616
1625
  }
1617
1626
  var propTypes = { exports: {} };
1618
- var ReactPropTypesSecret_1;
1619
- var hasRequiredReactPropTypesSecret;
1620
- function requireReactPropTypesSecret() {
1621
- if (hasRequiredReactPropTypesSecret)
1622
- return ReactPropTypesSecret_1;
1623
- hasRequiredReactPropTypesSecret = 1;
1624
- var ReactPropTypesSecret = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
1625
- ReactPropTypesSecret_1 = ReactPropTypesSecret;
1626
- return ReactPropTypesSecret_1;
1627
- }
1628
- var factoryWithThrowingShims;
1629
- var hasRequiredFactoryWithThrowingShims;
1630
- function requireFactoryWithThrowingShims() {
1631
- if (hasRequiredFactoryWithThrowingShims)
1632
- return factoryWithThrowingShims;
1633
- hasRequiredFactoryWithThrowingShims = 1;
1634
- var ReactPropTypesSecret = requireReactPropTypesSecret();
1635
- function emptyFunction() {
1636
- }
1637
- function emptyFunctionWithReset() {
1638
- }
1639
- emptyFunctionWithReset.resetWarningCache = emptyFunction;
1640
- factoryWithThrowingShims = function() {
1641
- function shim(props, propName, componentName, location, propFullName, secret) {
1642
- if (secret === ReactPropTypesSecret) {
1643
- return;
1627
+ var reactIs = { exports: {} };
1628
+ var reactIs_production_min = {};
1629
+ /** @license React v16.13.1
1630
+ * react-is.production.min.js
1631
+ *
1632
+ * Copyright (c) Facebook, Inc. and its affiliates.
1633
+ *
1634
+ * This source code is licensed under the MIT license found in the
1635
+ * LICENSE file in the root directory of this source tree.
1636
+ */
1637
+ var hasRequiredReactIs_production_min;
1638
+ function requireReactIs_production_min() {
1639
+ if (hasRequiredReactIs_production_min)
1640
+ return reactIs_production_min;
1641
+ hasRequiredReactIs_production_min = 1;
1642
+ 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;
1643
+ function z2(a2) {
1644
+ if ("object" === typeof a2 && null !== a2) {
1645
+ var u = a2.$$typeof;
1646
+ switch (u) {
1647
+ case c2:
1648
+ switch (a2 = a2.type, a2) {
1649
+ case l:
1650
+ case m:
1651
+ case e2:
1652
+ case g2:
1653
+ case f:
1654
+ case p:
1655
+ return a2;
1656
+ default:
1657
+ switch (a2 = a2 && a2.$$typeof, a2) {
1658
+ case k:
1659
+ case n:
1660
+ case t2:
1661
+ case r:
1662
+ case h2:
1663
+ return a2;
1664
+ default:
1665
+ return u;
1666
+ }
1667
+ }
1668
+ case d2:
1669
+ return u;
1644
1670
  }
1645
- var err = new Error(
1646
- "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"
1647
- );
1648
- err.name = "Invariant Violation";
1649
- throw err;
1650
1671
  }
1651
- shim.isRequired = shim;
1652
- function getShim() {
1653
- return shim;
1654
- }
1655
- var ReactPropTypes = {
1656
- array: shim,
1657
- bigint: shim,
1658
- bool: shim,
1659
- func: shim,
1660
- number: shim,
1661
- object: shim,
1662
- string: shim,
1663
- symbol: shim,
1664
- any: shim,
1665
- arrayOf: getShim,
1666
- element: shim,
1667
- elementType: shim,
1668
- instanceOf: getShim,
1669
- node: shim,
1670
- objectOf: getShim,
1671
- oneOf: getShim,
1672
- oneOfType: getShim,
1673
- shape: getShim,
1674
- exact: getShim,
1675
- checkPropTypes: emptyFunctionWithReset,
1676
- resetWarningCache: emptyFunction
1677
- };
1678
- ReactPropTypes.PropTypes = ReactPropTypes;
1679
- return ReactPropTypes;
1672
+ }
1673
+ function A2(a2) {
1674
+ return z2(a2) === m;
1675
+ }
1676
+ reactIs_production_min.AsyncMode = l;
1677
+ reactIs_production_min.ConcurrentMode = m;
1678
+ reactIs_production_min.ContextConsumer = k;
1679
+ reactIs_production_min.ContextProvider = h2;
1680
+ reactIs_production_min.Element = c2;
1681
+ reactIs_production_min.ForwardRef = n;
1682
+ reactIs_production_min.Fragment = e2;
1683
+ reactIs_production_min.Lazy = t2;
1684
+ reactIs_production_min.Memo = r;
1685
+ reactIs_production_min.Portal = d2;
1686
+ reactIs_production_min.Profiler = g2;
1687
+ reactIs_production_min.StrictMode = f;
1688
+ reactIs_production_min.Suspense = p;
1689
+ reactIs_production_min.isAsyncMode = function(a2) {
1690
+ return A2(a2) || z2(a2) === l;
1680
1691
  };
1681
- return factoryWithThrowingShims;
1692
+ reactIs_production_min.isConcurrentMode = A2;
1693
+ reactIs_production_min.isContextConsumer = function(a2) {
1694
+ return z2(a2) === k;
1695
+ };
1696
+ reactIs_production_min.isContextProvider = function(a2) {
1697
+ return z2(a2) === h2;
1698
+ };
1699
+ reactIs_production_min.isElement = function(a2) {
1700
+ return "object" === typeof a2 && null !== a2 && a2.$$typeof === c2;
1701
+ };
1702
+ reactIs_production_min.isForwardRef = function(a2) {
1703
+ return z2(a2) === n;
1704
+ };
1705
+ reactIs_production_min.isFragment = function(a2) {
1706
+ return z2(a2) === e2;
1707
+ };
1708
+ reactIs_production_min.isLazy = function(a2) {
1709
+ return z2(a2) === t2;
1710
+ };
1711
+ reactIs_production_min.isMemo = function(a2) {
1712
+ return z2(a2) === r;
1713
+ };
1714
+ reactIs_production_min.isPortal = function(a2) {
1715
+ return z2(a2) === d2;
1716
+ };
1717
+ reactIs_production_min.isProfiler = function(a2) {
1718
+ return z2(a2) === g2;
1719
+ };
1720
+ reactIs_production_min.isStrictMode = function(a2) {
1721
+ return z2(a2) === f;
1722
+ };
1723
+ reactIs_production_min.isSuspense = function(a2) {
1724
+ return z2(a2) === p;
1725
+ };
1726
+ reactIs_production_min.isValidElementType = function(a2) {
1727
+ 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);
1728
+ };
1729
+ reactIs_production_min.typeOf = z2;
1730
+ return reactIs_production_min;
1682
1731
  }
1683
- var reactIs = { exports: {} };
1684
1732
  var reactIs_development = {};
1685
1733
  /** @license React v16.13.1
1686
1734
  * react-is.development.js
@@ -1844,110 +1892,6 @@ function requireReactIs_development() {
1844
1892
  }
1845
1893
  return reactIs_development;
1846
1894
  }
1847
- var reactIs_production_min = {};
1848
- /** @license React v16.13.1
1849
- * react-is.production.min.js
1850
- *
1851
- * Copyright (c) Facebook, Inc. and its affiliates.
1852
- *
1853
- * This source code is licensed under the MIT license found in the
1854
- * LICENSE file in the root directory of this source tree.
1855
- */
1856
- var hasRequiredReactIs_production_min;
1857
- function requireReactIs_production_min() {
1858
- if (hasRequiredReactIs_production_min)
1859
- return reactIs_production_min;
1860
- hasRequiredReactIs_production_min = 1;
1861
- 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;
1862
- function z2(a2) {
1863
- if ("object" === typeof a2 && null !== a2) {
1864
- var u = a2.$$typeof;
1865
- switch (u) {
1866
- case c2:
1867
- switch (a2 = a2.type, a2) {
1868
- case l:
1869
- case m:
1870
- case e2:
1871
- case g2:
1872
- case f:
1873
- case p:
1874
- return a2;
1875
- default:
1876
- switch (a2 = a2 && a2.$$typeof, a2) {
1877
- case k:
1878
- case n:
1879
- case t2:
1880
- case r:
1881
- case h2:
1882
- return a2;
1883
- default:
1884
- return u;
1885
- }
1886
- }
1887
- case d2:
1888
- return u;
1889
- }
1890
- }
1891
- }
1892
- function A2(a2) {
1893
- return z2(a2) === m;
1894
- }
1895
- reactIs_production_min.AsyncMode = l;
1896
- reactIs_production_min.ConcurrentMode = m;
1897
- reactIs_production_min.ContextConsumer = k;
1898
- reactIs_production_min.ContextProvider = h2;
1899
- reactIs_production_min.Element = c2;
1900
- reactIs_production_min.ForwardRef = n;
1901
- reactIs_production_min.Fragment = e2;
1902
- reactIs_production_min.Lazy = t2;
1903
- reactIs_production_min.Memo = r;
1904
- reactIs_production_min.Portal = d2;
1905
- reactIs_production_min.Profiler = g2;
1906
- reactIs_production_min.StrictMode = f;
1907
- reactIs_production_min.Suspense = p;
1908
- reactIs_production_min.isAsyncMode = function(a2) {
1909
- return A2(a2) || z2(a2) === l;
1910
- };
1911
- reactIs_production_min.isConcurrentMode = A2;
1912
- reactIs_production_min.isContextConsumer = function(a2) {
1913
- return z2(a2) === k;
1914
- };
1915
- reactIs_production_min.isContextProvider = function(a2) {
1916
- return z2(a2) === h2;
1917
- };
1918
- reactIs_production_min.isElement = function(a2) {
1919
- return "object" === typeof a2 && null !== a2 && a2.$$typeof === c2;
1920
- };
1921
- reactIs_production_min.isForwardRef = function(a2) {
1922
- return z2(a2) === n;
1923
- };
1924
- reactIs_production_min.isFragment = function(a2) {
1925
- return z2(a2) === e2;
1926
- };
1927
- reactIs_production_min.isLazy = function(a2) {
1928
- return z2(a2) === t2;
1929
- };
1930
- reactIs_production_min.isMemo = function(a2) {
1931
- return z2(a2) === r;
1932
- };
1933
- reactIs_production_min.isPortal = function(a2) {
1934
- return z2(a2) === d2;
1935
- };
1936
- reactIs_production_min.isProfiler = function(a2) {
1937
- return z2(a2) === g2;
1938
- };
1939
- reactIs_production_min.isStrictMode = function(a2) {
1940
- return z2(a2) === f;
1941
- };
1942
- reactIs_production_min.isSuspense = function(a2) {
1943
- return z2(a2) === p;
1944
- };
1945
- reactIs_production_min.isValidElementType = function(a2) {
1946
- 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);
1947
- };
1948
- reactIs_production_min.typeOf = z2;
1949
- return reactIs_production_min;
1950
- }
1951
1895
  var hasRequiredReactIs;
1952
1896
  function requireReactIs() {
1953
1897
  if (hasRequiredReactIs)
@@ -2036,6 +1980,16 @@ function requireObjectAssign() {
2036
1980
  };
2037
1981
  return objectAssign;
2038
1982
  }
1983
+ var ReactPropTypesSecret_1;
1984
+ var hasRequiredReactPropTypesSecret;
1985
+ function requireReactPropTypesSecret() {
1986
+ if (hasRequiredReactPropTypesSecret)
1987
+ return ReactPropTypesSecret_1;
1988
+ hasRequiredReactPropTypesSecret = 1;
1989
+ var ReactPropTypesSecret = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
1990
+ ReactPropTypesSecret_1 = ReactPropTypesSecret;
1991
+ return ReactPropTypesSecret_1;
1992
+ }
2039
1993
  var has;
2040
1994
  var hasRequiredHas;
2041
1995
  function requireHas() {
@@ -2553,6 +2507,61 @@ function requireFactoryWithTypeCheckers() {
2553
2507
  };
2554
2508
  return factoryWithTypeCheckers;
2555
2509
  }
2510
+ var factoryWithThrowingShims;
2511
+ var hasRequiredFactoryWithThrowingShims;
2512
+ function requireFactoryWithThrowingShims() {
2513
+ if (hasRequiredFactoryWithThrowingShims)
2514
+ return factoryWithThrowingShims;
2515
+ hasRequiredFactoryWithThrowingShims = 1;
2516
+ var ReactPropTypesSecret = requireReactPropTypesSecret();
2517
+ function emptyFunction() {
2518
+ }
2519
+ function emptyFunctionWithReset() {
2520
+ }
2521
+ emptyFunctionWithReset.resetWarningCache = emptyFunction;
2522
+ factoryWithThrowingShims = function() {
2523
+ function shim(props, propName, componentName, location, propFullName, secret) {
2524
+ if (secret === ReactPropTypesSecret) {
2525
+ return;
2526
+ }
2527
+ var err = new Error(
2528
+ "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"
2529
+ );
2530
+ err.name = "Invariant Violation";
2531
+ throw err;
2532
+ }
2533
+ shim.isRequired = shim;
2534
+ function getShim() {
2535
+ return shim;
2536
+ }
2537
+ var ReactPropTypes = {
2538
+ array: shim,
2539
+ bigint: shim,
2540
+ bool: shim,
2541
+ func: shim,
2542
+ number: shim,
2543
+ object: shim,
2544
+ string: shim,
2545
+ symbol: shim,
2546
+ any: shim,
2547
+ arrayOf: getShim,
2548
+ element: shim,
2549
+ elementType: shim,
2550
+ instanceOf: getShim,
2551
+ node: shim,
2552
+ objectOf: getShim,
2553
+ oneOf: getShim,
2554
+ oneOfType: getShim,
2555
+ shape: getShim,
2556
+ exact: getShim,
2557
+ checkPropTypes: emptyFunctionWithReset,
2558
+ resetWarningCache: emptyFunction
2559
+ };
2560
+ ReactPropTypes.PropTypes = ReactPropTypes;
2561
+ return ReactPropTypes;
2562
+ };
2563
+ return factoryWithThrowingShims;
2564
+ }
2556
2565
  if (process.env.NODE_ENV !== "production") {
2557
2566
  var ReactIs = requireReactIs();
2558
2567
  var throwOnDirectAccess = true;
@@ -4097,7 +4106,7 @@ const BackTop = (props) => {
4097
4106
  duration: duration > 0 ? duration : 0
4098
4107
  });
4099
4108
  };
4100
- const styles = style ? {
4109
+ const styles = Object.keys(style || {}).length !== 0 ? {
4101
4110
  zIndex,
4102
4111
  ...style
4103
4112
  } : {
@@ -5523,22 +5532,19 @@ const convertListToOptions = (list, options) => {
5523
5532
  };
5524
5533
  class Tree {
5525
5534
  constructor(nodes, config2) {
5526
- __publicField(this, "nodes");
5527
- __publicField(this, "config");
5528
- // eslint-disable-next-line class-methods-use-this
5529
- __publicField(this, "isLeaf", (node, lazy) => {
5535
+ this.isLeaf = (node, lazy) => {
5530
5536
  const { leaf, children } = node;
5531
5537
  const hasChildren = Array.isArray(children) && Boolean(children.length);
5532
5538
  return leaf || !hasChildren && !lazy;
5533
- });
5534
- __publicField(this, "hasChildren", (node, lazy) => {
5539
+ };
5540
+ this.hasChildren = (node, lazy) => {
5535
5541
  const isLeaf = this.isLeaf(node, lazy);
5536
5542
  if (isLeaf) {
5537
5543
  return false;
5538
5544
  }
5539
5545
  const { children } = node;
5540
5546
  return Array.isArray(children) && Boolean(children.length);
5541
- });
5547
+ };
5542
5548
  this.config = {
5543
5549
  value: "value",
5544
5550
  text: "text",
@@ -5585,7 +5591,6 @@ class Tree {
5585
5591
  return pathNodes;
5586
5592
  }
5587
5593
  }
5588
- const Tree$1 = Tree;
5589
5594
  const defaultProps$17 = {
5590
5595
  ...ComponentDefaults,
5591
5596
  activeColor: "",
@@ -5661,7 +5666,7 @@ const InternalCascader = (props, ref) => {
5661
5666
  paneKey: ""
5662
5667
  }
5663
5668
  ],
5664
- tree: new Tree$1([], {}),
5669
+ tree: new Tree([], {}),
5665
5670
  tabsCursor: 0,
5666
5671
  // 选中的tab项
5667
5672
  initLoading: false,
@@ -5691,7 +5696,7 @@ const InternalCascader = (props, ref) => {
5691
5696
  } else {
5692
5697
  state.optionsData = options;
5693
5698
  }
5694
- state.tree = new Tree$1(state.optionsData, {
5699
+ state.tree = new Tree(state.optionsData, {
5695
5700
  value: state.configs.optionKey.valueKey,
5696
5701
  text: state.configs.optionKey.textKey,
5697
5702
  children: state.configs.optionKey.childrenKey
@@ -9750,21 +9755,13 @@ Schema.validators = validators;
9750
9755
  const SECRET = "NUT_FORM_INTERNAL";
9751
9756
  class FormStore {
9752
9757
  constructor() {
9753
- // 初始化数据
9754
- __publicField(this, "initialValues", {});
9755
- __publicField(this, "updateList", []);
9756
- // 存放表单中所有的数据 eg. {password: "ddd",username: "123"}
9757
- __publicField(this, "store", {});
9758
- // 所有的组件实例
9759
- __publicField(this, "fieldEntities", []);
9760
- // 校验成功或失败的回调,onFinish、onFinishFailed
9761
- __publicField(this, "callbacks", {});
9762
- __publicField(this, "errors", {});
9763
- /**
9764
- * 注册组件实例
9765
- * @param field
9766
- */
9767
- __publicField(this, "registerField", (field) => {
9758
+ this.initialValues = {};
9759
+ this.updateList = [];
9760
+ this.store = {};
9761
+ this.fieldEntities = [];
9762
+ this.callbacks = {};
9763
+ this.errors = {};
9764
+ this.registerField = (field) => {
9768
9765
  this.fieldEntities.push(field);
9769
9766
  return () => {
9770
9767
  this.fieldEntities = this.fieldEntities.filter((item) => item !== field);
@@ -9772,19 +9769,12 @@ class FormStore {
9772
9769
  delete this.store[field.props.name];
9773
9770
  }
9774
9771
  };
9775
- });
9776
- /**
9777
- * 获取 formItem 的值
9778
- * @param name
9779
- */
9780
- __publicField(this, "getFieldValue", (name) => {
9772
+ };
9773
+ this.getFieldValue = (name) => {
9781
9774
  var _a;
9782
9775
  return (_a = this.store) == null ? void 0 : _a[name];
9783
- });
9784
- /**
9785
- * 获取全部字段
9786
- */
9787
- __publicField(this, "getFieldsValue", (nameList) => {
9776
+ };
9777
+ this.getFieldsValue = (nameList) => {
9788
9778
  if (typeof nameList === "boolean") {
9789
9779
  return JSON.parse(JSON.stringify(this.store));
9790
9780
  }
@@ -9793,23 +9783,14 @@ class FormStore {
9793
9783
  fieldsValue[field] = this.getFieldValue(field);
9794
9784
  });
9795
9785
  return fieldsValue;
9796
- });
9797
- /**
9798
- * 设置 form 的初始值,之后在 reset 的时候使用
9799
- * @param values
9800
- * @param init
9801
- */
9802
- __publicField(this, "setInitialValues", (values, init) => {
9786
+ };
9787
+ this.setInitialValues = (values, init) => {
9803
9788
  if (init) {
9804
9789
  this.initialValues = values;
9805
9790
  this.store = values;
9806
9791
  }
9807
- });
9808
- /**
9809
- * 存储组件数据
9810
- * @param newStore { [name]: newValue }
9811
- */
9812
- __publicField(this, "setFieldsValue", (newStore) => {
9792
+ };
9793
+ this.setFieldsValue = (newStore) => {
9813
9794
  this.store = {
9814
9795
  ...this.store,
9815
9796
  ...newStore
@@ -9831,14 +9812,14 @@ class FormStore {
9831
9812
  item.entity.onStoreChange("update");
9832
9813
  }
9833
9814
  });
9834
- });
9835
- __publicField(this, "setCallback", (callback) => {
9815
+ };
9816
+ this.setCallback = (callback) => {
9836
9817
  this.callbacks = {
9837
9818
  ...this.callbacks,
9838
9819
  ...callback
9839
9820
  };
9840
- });
9841
- __publicField(this, "validateEntities", async (entity, errs) => {
9821
+ };
9822
+ this.validateEntities = async (entity, errs) => {
9842
9823
  var _a;
9843
9824
  const { name, rules: rules2 = [] } = entity.props;
9844
9825
  const descriptor = {};
@@ -9866,8 +9847,8 @@ class FormStore {
9866
9847
  }
9867
9848
  }
9868
9849
  entity.onStoreChange("validate");
9869
- });
9870
- __publicField(this, "validateFields", async (nameList) => {
9850
+ };
9851
+ this.validateFields = async (nameList) => {
9871
9852
  let filterEntities = [];
9872
9853
  this.errors.length = 0;
9873
9854
  if (!nameList || nameList.length === 0) {
@@ -9878,12 +9859,14 @@ class FormStore {
9878
9859
  );
9879
9860
  }
9880
9861
  const errs = [];
9881
- filterEntities.forEach((entity) => {
9882
- this.validateEntities(entity, errs);
9883
- });
9862
+ await Promise.all(
9863
+ filterEntities.map(async (entity) => {
9864
+ await this.validateEntities(entity, errs);
9865
+ })
9866
+ );
9884
9867
  return errs;
9885
- });
9886
- __publicField(this, "submit", async () => {
9868
+ };
9869
+ this.submit = async () => {
9887
9870
  var _a, _b, _c, _d;
9888
9871
  const errors = await this.validateFields();
9889
9872
  if (errors.length === 0) {
@@ -9891,16 +9874,15 @@ class FormStore {
9891
9874
  } else if (errors.length > 0) {
9892
9875
  (_d = (_c = this.callbacks).onFinishFailed) == null ? void 0 : _d.call(_c, this.store, errors);
9893
9876
  }
9894
- });
9895
- __publicField(this, "resetFields", () => {
9877
+ };
9878
+ this.resetFields = () => {
9896
9879
  this.errors.length = 0;
9897
9880
  this.store = this.initialValues;
9898
9881
  this.fieldEntities.forEach((entity) => {
9899
9882
  entity.onStoreChange("reset");
9900
9883
  });
9901
- });
9902
- // 监听事件
9903
- __publicField(this, "registerUpdate", (field, shouldUpdate) => {
9884
+ };
9885
+ this.registerUpdate = (field, shouldUpdate) => {
9904
9886
  this.updateList.push({
9905
9887
  entity: field,
9906
9888
  condition: shouldUpdate
@@ -9908,11 +9890,11 @@ class FormStore {
9908
9890
  return () => {
9909
9891
  this.updateList = this.updateList.filter((i2) => i2.entity !== field);
9910
9892
  };
9911
- });
9912
- __publicField(this, "dispatch", ({ name }) => {
9893
+ };
9894
+ this.dispatch = ({ name }) => {
9913
9895
  this.validateFields([name]);
9914
- });
9915
- __publicField(this, "getInternal", (key) => {
9896
+ };
9897
+ this.getInternal = (key) => {
9916
9898
  if (key === SECRET) {
9917
9899
  return {
9918
9900
  registerField: this.registerField,
@@ -9924,8 +9906,8 @@ class FormStore {
9924
9906
  registerUpdate: this.registerUpdate
9925
9907
  };
9926
9908
  }
9927
- });
9928
- __publicField(this, "getForm", () => {
9909
+ };
9910
+ this.getForm = () => {
9929
9911
  return {
9930
9912
  getFieldValue: this.getFieldValue,
9931
9913
  getFieldsValue: this.getFieldsValue,
@@ -9936,7 +9918,7 @@ class FormStore {
9936
9918
  errors: this.errors,
9937
9919
  getInternal: this.getInternal
9938
9920
  };
9939
- });
9921
+ };
9940
9922
  this.callbacks = {
9941
9923
  onFinish: () => {
9942
9924
  },
@@ -10056,14 +10038,10 @@ const defaultProps$Y = {
10056
10038
  shouldUpdate: false,
10057
10039
  noStyle: false
10058
10040
  };
10059
- class FormItem extends React__default.Component {
10041
+ const _FormItem = class _FormItem extends React__default.Component {
10060
10042
  constructor(props) {
10061
10043
  super(props);
10062
- __publicField(this, "cancelRegister");
10063
- __publicField(this, "componentRef");
10064
- __publicField(this, "eventOff");
10065
- // children添加value属性和onChange事件
10066
- __publicField(this, "getControlled", (children) => {
10044
+ this.getControlled = (children) => {
10067
10045
  var _a;
10068
10046
  const { setFieldsValue, getFieldValue } = this.context;
10069
10047
  const { dispatch } = this.context.getInternal(SECRET);
@@ -10090,7 +10068,7 @@ class FormItem extends React__default.Component {
10090
10068
  const { validateTrigger } = this.props;
10091
10069
  let validateTriggers = [this.props.trigger || "onChange"];
10092
10070
  if (validateTrigger) {
10093
- validateTriggers = typeof validateTrigger === "string" ? [...validateTriggers, validateTrigger] : [...validateTriggers, ...validateTrigger];
10071
+ validateTriggers = typeof validateTrigger === "string" ? [validateTrigger] : [...validateTrigger];
10094
10072
  validateTriggers.forEach((trigger) => {
10095
10073
  const originTrigger = controlled[trigger];
10096
10074
  controlled[trigger] = (...args) => {
@@ -10120,21 +10098,22 @@ class FormItem extends React__default.Component {
10120
10098
  };
10121
10099
  }
10122
10100
  return controlled;
10123
- });
10124
- __publicField(this, "refresh", () => {
10101
+ };
10102
+ this.refresh = () => {
10125
10103
  this.setState(({ resetCount }) => ({
10126
10104
  resetCount: resetCount + 1
10127
10105
  }));
10128
- });
10129
- __publicField(this, "onStoreChange", (type4) => {
10106
+ };
10107
+ this.onStoreChange = (type4) => {
10130
10108
  if (type4 === "reset") {
10131
10109
  this.context.errors[this.props.name] = [];
10132
10110
  this.refresh();
10133
10111
  } else {
10134
10112
  this.forceUpdate();
10135
10113
  }
10136
- });
10137
- __publicField(this, "renderLayout", (childNode) => {
10114
+ };
10115
+ this.renderLayout = (childNode) => {
10116
+ var _a;
10138
10117
  const {
10139
10118
  label,
10140
10119
  name,
@@ -10160,16 +10139,19 @@ class FormItem extends React__default.Component {
10160
10139
  onClick: (e2) => this.props.onClick && this.props.onClick(e2, this.componentRef)
10161
10140
  },
10162
10141
  label ? /* @__PURE__ */ React__default.createElement("div", { className: "nut-cell-title nut-form-item-label" }, renderLabel) : null,
10163
- /* @__PURE__ */ React__default.createElement("div", { className: "nut-cell-value nut-form-item-body" }, /* @__PURE__ */ React__default.createElement("div", { className: "nut-form-item-body-slots" }, childNode), item && item.length > 0 && /* @__PURE__ */ React__default.createElement(
10142
+ /* @__PURE__ */ React__default.createElement("div", { className: "nut-cell-value nut-form-item-body" }, /* @__PURE__ */ React__default.createElement("div", { className: "nut-form-item-body-slots" }, childNode), /* @__PURE__ */ React__default.createElement(
10164
10143
  "div",
10165
10144
  {
10166
10145
  className: "nut-form-item-body-tips",
10167
- style: { textAlign: errorMessageAlign }
10146
+ style: {
10147
+ textAlign: errorMessageAlign,
10148
+ display: (item == null ? void 0 : item.length) ? "initial" : "none"
10149
+ }
10168
10150
  },
10169
- item[0].message
10151
+ (_a = item == null ? void 0 : item[0]) == null ? void 0 : _a.message
10170
10152
  ))
10171
10153
  );
10172
- });
10154
+ };
10173
10155
  this.componentRef = React__default.createRef();
10174
10156
  this.state = {
10175
10157
  resetCount: 1
@@ -10202,9 +10184,10 @@ class FormItem extends React__default.Component {
10202
10184
  }
10203
10185
  return /* @__PURE__ */ React__default.createElement(React__default.Fragment, { key: this.state.resetCount }, this.props.noStyle ? returnChildNode : this.renderLayout(returnChildNode));
10204
10186
  }
10205
- }
10206
- __publicField(FormItem, "defaultProps", defaultProps$Y);
10207
- __publicField(FormItem, "contextType", Context);
10187
+ };
10188
+ _FormItem.defaultProps = defaultProps$Y;
10189
+ _FormItem.contextType = Context;
10190
+ let FormItem = _FormItem;
10208
10191
  const InnerForm = Form;
10209
10192
  InnerForm.Item = FormItem;
10210
10193
  InnerForm.useForm = useForm;
@@ -10384,7 +10367,10 @@ const Input = forwardRef(
10384
10367
  name,
10385
10368
  className: "nut-input-native",
10386
10369
  ref: inputRef,
10387
- style: { textAlign: align },
10370
+ style: {
10371
+ textAlign: `${// eslint-disable-next-line no-nested-ternary
10372
+ align === "right" ? "end" : align === "left" ? "start" : "center"}`
10373
+ },
10388
10374
  type: inputType(type4),
10389
10375
  password: type4 === "password",
10390
10376
  maxlength: maxLength,
@@ -10425,11 +10411,11 @@ Input.displayName = "NutInput";
10425
10411
  const defaultProps$W = {
10426
10412
  ...ComponentDefaults,
10427
10413
  disabled: false,
10428
- min: 1,
10429
- max: 9999,
10430
10414
  readOnly: false,
10431
10415
  allowEmpty: false,
10432
- defaultValue: 0,
10416
+ min: 1,
10417
+ max: 9999,
10418
+ type: "digit",
10433
10419
  step: 1,
10434
10420
  digits: 0,
10435
10421
  async: false
@@ -10441,6 +10427,7 @@ const InputNumber = (props) => {
10441
10427
  disabled,
10442
10428
  min,
10443
10429
  max,
10430
+ type: type4,
10444
10431
  readOnly,
10445
10432
  value,
10446
10433
  defaultValue,
@@ -10462,197 +10449,162 @@ const InputNumber = (props) => {
10462
10449
  ...defaultProps$W,
10463
10450
  ...props
10464
10451
  };
10465
- const inputRef = useRef("");
10466
- const [_checked, setChecked] = usePropsValue({
10467
- value,
10468
- defaultValue
10452
+ const classes = classNames(classPrefix$h, {
10453
+ [`${classPrefix$h}-disabled`]: disabled
10469
10454
  });
10455
+ const [focused, setFocused] = useState(false);
10456
+ const inputRef = useRef(null);
10470
10457
  useEffect(() => {
10471
- if (formatter) {
10472
- if (_checked || _checked === 0) {
10473
- inputRef.current = formatter(_checked);
10474
- setChecked(formatter(_checked));
10475
- }
10476
- }
10477
- }, []);
10478
- const classes = classNames(
10479
- {
10480
- [`${classPrefix$h}`]: true,
10481
- [`${classPrefix$h}-disabled`]: disabled
10482
- },
10483
- className
10484
- );
10485
- const styles = {
10486
- ...style
10487
- };
10488
- const addAllow = (value2 = _checked) => {
10489
- if (formatter) {
10490
- const numValue = String(value2).replace(/[^0-9|.]/gi, "");
10491
- return Number(numValue) < Number(max) && !disabled;
10458
+ var _a, _b;
10459
+ if (focused) {
10460
+ (_b = (_a = inputRef.current) == null ? void 0 : _a.select) == null ? void 0 : _b.call(_a);
10492
10461
  }
10493
- return Number(value2) < Number(max) && !disabled;
10494
- };
10495
- const reduceAllow = (value2 = _checked) => {
10496
- if (formatter) {
10497
- const numValue = String(value2).replace(/[^0-9|.]/gi, "");
10498
- return Number(numValue) > Number(min) && !disabled;
10462
+ }, [focused]);
10463
+ const [shadowValue, setShadowValue] = usePropsValue({
10464
+ value: typeof value === "string" ? parseFloat(value) : value,
10465
+ defaultValue: typeof defaultValue === "string" ? parseFloat(defaultValue) : defaultValue,
10466
+ finalValue: 0,
10467
+ onChange: (value2) => {
10499
10468
  }
10500
- return Number(value2) > Number(min) && !disabled;
10501
- };
10502
- const iconMinusClasses = classNames("nut-inputnumber-icon icon-minus", {
10503
- "nut-inputnumber-icon-disabled": !reduceAllow()
10504
- });
10505
- const iconAddClasses = classNames("nut-inputnumber-icon icon-plus", {
10506
- "nut-inputnumber-icon-disabled": !addAllow()
10507
10469
  });
10508
- const fixedDecimalPlaces = (v) => {
10509
- return Number(v).toFixed(Number(digits));
10510
- };
10511
- const emitChange = (value2, e2) => {
10512
- const outputValue = fixedDecimalPlaces(value2);
10513
- onChange && onChange(outputValue, e2);
10514
- if (!async) {
10515
- if (Number(outputValue) < Number(min)) {
10516
- formatter ? setChecked(formatter(Number(min))) : setChecked(Number(min));
10517
- } else if (Number(outputValue) > Number(max)) {
10518
- formatter ? setChecked(formatter(Number(max))) : setChecked(Number(max));
10519
- } else {
10520
- formatter ? setChecked(formatter(outputValue)) : setChecked(outputValue);
10521
- }
10470
+ const bound2 = (value2, min2, max2) => {
10471
+ let res = value2;
10472
+ if (min2 !== void 0) {
10473
+ res = Math.max(Number(min2), res);
10522
10474
  }
10523
- };
10524
- const reduceNumber = (e2) => {
10525
- onMinus && onMinus(e2);
10526
- if (reduceAllow()) {
10527
- if (formatter) {
10528
- const numValue = String(_checked).replace(/[^0-9|.]/gi, "");
10529
- const outputValue = Number(numValue) - Number(step);
10530
- inputRef.current = formatter(outputValue);
10531
- emitChange(outputValue, e2);
10532
- } else {
10533
- const outputValue = Number(_checked) - Number(step);
10534
- emitChange(outputValue, e2);
10535
- }
10536
- } else {
10537
- onOverlimit && onOverlimit(e2);
10475
+ if (max2 !== void 0) {
10476
+ res = Math.min(Number(max2), res);
10538
10477
  }
10478
+ return res;
10539
10479
  };
10540
- const addNumber = (e2) => {
10541
- onPlus && onPlus(e2);
10542
- if (addAllow()) {
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);
10480
+ const format2 = (value2) => {
10481
+ if (value2 === null)
10482
+ return "";
10483
+ if (typeof value2 === "string")
10484
+ value2 = parseFloat(value2);
10485
+ const fixedValue = bound2(value2, Number(min), Number(max));
10486
+ if (formatter) {
10487
+ return formatter(fixedValue);
10554
10488
  }
10555
- };
10556
- const changeValue = (e2) => {
10557
- const input = e2.target;
10558
- onChange && onChange(input.value, e2);
10559
- if (!async) {
10560
- setChecked(input.value);
10489
+ if (digits) {
10490
+ return fixedValue.toFixed(digits).toString();
10561
10491
  }
10492
+ return fixedValue.toString();
10562
10493
  };
10563
- const changeFormatValue = (e2) => {
10564
- const input = e2.target.value;
10565
- const numReg = /^[0-9]*$/;
10566
- const numValue = input.replace(/[^0-9|.]/gi, "");
10567
- if (formatter) {
10568
- if (!numReg.test(input[0]) && numValue) {
10569
- setChecked(formatter(numValue));
10570
- } else if (!numReg.test(input[0]) && !numValue) {
10571
- setChecked(input);
10572
- } else if (numReg.test(input[0])) {
10573
- if (formatter(numValue) === inputRef.current) {
10574
- setChecked(numValue);
10575
- } else {
10576
- setChecked(formatter(numValue));
10577
- inputRef.current = formatter(numValue);
10578
- }
10579
- }
10494
+ const [inputValue, setInputValue] = useState(format2(shadowValue));
10495
+ useEffect(() => {
10496
+ if (!focused && !async) {
10497
+ setShadowValue(bound2(Number(shadowValue), Number(min), Number(max)));
10498
+ setInputValue(format2(shadowValue));
10580
10499
  }
10581
- };
10582
- const burFormatValue = (e2) => {
10583
- const input = e2.target.value;
10584
- const numReg = /^[0-9]*$/;
10585
- const numValue = input.replace(/[^0-9|.]/gi, "");
10586
- if (formatter) {
10587
- if (formatter(numValue) === input) {
10588
- emitChange(numValue, e2);
10589
- return;
10590
- }
10591
- if (!numReg.test(input) || !input) {
10592
- setChecked(formatter(""));
10500
+ }, [focused, shadowValue]);
10501
+ useEffect(() => {
10502
+ if (async) {
10503
+ setShadowValue(bound2(Number(value), Number(min), Number(max)));
10504
+ setInputValue(format2(value));
10505
+ }
10506
+ }, [value]);
10507
+ const calcNextValue = (current, step2, symbol) => {
10508
+ const dig = digits + 1;
10509
+ return (parseFloat(current || "0") * dig + parseFloat(step2) * dig * symbol) / dig;
10510
+ };
10511
+ const update = (negative, e2) => {
10512
+ if (step !== void 0) {
10513
+ const shouldOverBoundary = calcNextValue(
10514
+ shadowValue,
10515
+ step,
10516
+ negative ? -1 : 1
10517
+ );
10518
+ const nextValue = bound2(shouldOverBoundary, Number(min), Number(max));
10519
+ setShadowValue(nextValue);
10520
+ if (negative ? shouldOverBoundary < min : shouldOverBoundary > max) {
10521
+ onOverlimit == null ? void 0 : onOverlimit(e2);
10522
+ } else {
10523
+ onChange == null ? void 0 : onChange(nextValue, e2);
10593
10524
  }
10594
10525
  }
10595
10526
  };
10596
- const focusValue = (e2) => {
10527
+ const handleReduce = (e2) => {
10597
10528
  if (disabled)
10598
10529
  return;
10599
- if (readOnly)
10600
- return;
10601
- onFocus && onFocus(e2);
10530
+ onMinus == null ? void 0 : onMinus(e2);
10531
+ update(true, e2);
10602
10532
  };
10603
- const burValue = (e2) => {
10533
+ const handlePlus = (e2) => {
10604
10534
  if (disabled)
10605
10535
  return;
10606
- if (readOnly)
10607
- return;
10608
- const input = e2.target;
10609
- let value2 = +input.value;
10610
- if (value2 === 0 && !allowEmpty) {
10611
- value2 = Number(defaultValue);
10536
+ onPlus == null ? void 0 : onPlus(e2);
10537
+ update(false, e2);
10538
+ };
10539
+ const parseValue = (text) => {
10540
+ if (text === "")
10541
+ return null;
10542
+ if (text === "-")
10543
+ return null;
10544
+ return text;
10545
+ };
10546
+ const handleInputChange = (e2) => {
10547
+ setInputValue(e2.target.value);
10548
+ const valueStr = parseValue(e2.target.value);
10549
+ if (valueStr === null) {
10550
+ if (allowEmpty) {
10551
+ setShadowValue(null);
10552
+ } else {
10553
+ setShadowValue(defaultValue);
10554
+ }
10555
+ } else {
10556
+ setShadowValue(valueStr);
10612
10557
  }
10613
- if (value2 < Number(min)) {
10614
- value2 = Number(min);
10615
- } else if (value2 > Number(max)) {
10616
- value2 = Number(max);
10558
+ if (!async) {
10559
+ onChange == null ? void 0 : onChange(parseFloat(valueStr || "0").toFixed(digits), e2);
10617
10560
  }
10618
- emitChange(value2, e2);
10561
+ };
10562
+ const handleFocus = (e2) => {
10563
+ setFocused(true);
10564
+ setInputValue(
10565
+ shadowValue !== void 0 && shadowValue !== null ? bound2(Number(shadowValue), Number(min), Number(max)).toString() : ""
10566
+ );
10567
+ onFocus && onFocus(e2);
10568
+ };
10569
+ const handleBlur = (e2) => {
10570
+ setFocused(false);
10619
10571
  onBlur && onBlur(e2);
10572
+ if (async) {
10573
+ const valueStr = parseValue(e2.target.value);
10574
+ onChange == null ? void 0 : onChange(parseFloat(valueStr || "0").toFixed(digits), e2);
10575
+ }
10620
10576
  };
10621
- return /* @__PURE__ */ React__default.createElement("div", { className: classes, style: styles, ...restProps }, /* @__PURE__ */ React__default.createElement("div", { className: "nut-input-minus" }, /* @__PURE__ */ React__default.createElement(
10577
+ return /* @__PURE__ */ React__default.createElement("div", { className: classes, style, ...restProps }, /* @__PURE__ */ React__default.createElement("div", { className: "nut-input-minus" }, /* @__PURE__ */ React__default.createElement(
10622
10578
  t,
10623
10579
  {
10624
- className: iconMinusClasses,
10625
- onClick: (e2) => reduceNumber(e2)
10580
+ className: classNames("nut-inputnumber-icon icon-minus", {
10581
+ [`${classPrefix$h}-icon-disabled`]: shadowValue === min || disabled
10582
+ }),
10583
+ onClick: handleReduce
10626
10584
  }
10627
- )), /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, formatter ? /* @__PURE__ */ React__default.createElement(
10585
+ )), /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
10628
10586
  "input",
10629
10587
  {
10630
10588
  className: "nut-number-input",
10631
- type: "text",
10632
- min,
10633
- max,
10589
+ type: type4,
10590
+ ref: inputRef,
10591
+ inputMode: type4 === "digit" ? "decimal" : "numeric",
10634
10592
  disabled,
10635
10593
  readOnly,
10636
- value: _checked,
10637
- onInput: changeFormatValue,
10638
- onBlur: burFormatValue,
10639
- onFocus: focusValue
10594
+ value: inputValue,
10595
+ onInput: handleInputChange,
10596
+ onBlur: handleBlur,
10597
+ onFocus: handleFocus
10640
10598
  }
10641
- ) : /* @__PURE__ */ React__default.createElement(
10642
- "input",
10599
+ )), /* @__PURE__ */ React__default.createElement("div", { className: "nut-input-add" }, /* @__PURE__ */ React__default.createElement(
10600
+ i,
10643
10601
  {
10644
- className: "nut-number-input",
10645
- type: "digit",
10646
- min,
10647
- max,
10648
- disabled,
10649
- readOnly,
10650
- value: _checked,
10651
- onInput: changeValue,
10652
- onBlur: burValue,
10653
- onFocus: focusValue
10602
+ className: classNames("nut-inputnumber-icon icon-plus", {
10603
+ [`${classPrefix$h}-icon-disabled`]: shadowValue === max || disabled
10604
+ }),
10605
+ onClick: handlePlus
10654
10606
  }
10655
- )), /* @__PURE__ */ React__default.createElement("div", { className: "nut-input-add" }, /* @__PURE__ */ React__default.createElement(i, { className: iconAddClasses, onClick: (e2) => addNumber(e2) })));
10607
+ )));
10656
10608
  };
10657
10609
  InputNumber.defaultProps = defaultProps$W;
10658
10610
  InputNumber.displayName = "NutInputNumber";
@@ -11396,6 +11348,7 @@ const defaultProps$Q = {
11396
11348
  marks: {}
11397
11349
  };
11398
11350
  const Range = (props) => {
11351
+ const rtl = useRtl();
11399
11352
  const {
11400
11353
  className,
11401
11354
  range: range3,
@@ -11508,15 +11461,17 @@ const Range = (props) => {
11508
11461
  transition: dragStatus ? "none" : void 0
11509
11462
  };
11510
11463
  }
11464
+ const dir = rtl ? "right" : "left";
11511
11465
  return {
11512
11466
  width: calcMainAxis(),
11513
- left: calcOffset(),
11467
+ [dir]: calcOffset(),
11514
11468
  transition: dragStatus ? "none" : void 0
11515
11469
  };
11516
11470
  };
11517
11471
  const marksStyle = (mark) => {
11472
+ const dir = rtl ? "right" : "left";
11518
11473
  let style = {
11519
- left: `${(mark - min) / scope() * 100}%`
11474
+ [dir]: `${(mark - min) / scope() * 100}%`
11520
11475
  };
11521
11476
  if (vertical) {
11522
11477
  style = {
@@ -11607,6 +11562,7 @@ const Range = (props) => {
11607
11562
  let delta = touch.deltaX.current;
11608
11563
  let total = rect.width;
11609
11564
  let diff = delta / total * scope();
11565
+ diff = rtl ? -diff : diff;
11610
11566
  if (vertical) {
11611
11567
  delta = touch.deltaY.current;
11612
11568
  total = rect.height;
@@ -12135,7 +12091,7 @@ const InternalShortPassword = (props, ref) => {
12135
12091
  },
12136
12092
  /* @__PURE__ */ React__default.createElement("div", { className: classNames(classPrefix2, className), style }, /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-title` }, title || locale.shortpassword.title), /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-description` }, description || locale.shortpassword.description), /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-input`, onClick: onFocus }, /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-input-site` }), /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-input-fake` }, [...new Array(comLen).keys()].map((item, index) => {
12137
12093
  return /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-input-fake-li`, key: index }, inputValue.length > index && /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, plain ? inputValue[index] : /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-input-fake-li-icon` })));
12138
- }))), /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-message` }, /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-message-error` }, error), /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-message-forget`, onClick: onTips }, tips || /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(z, { size: 11, style: { marginRight: "3px" } }), locale.shortpassword.tips))), !hideFooter && /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-footer` }, /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-footer-cancel`, onClick: onCancel }, locale.cancel), /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-footer-sure`, onClick: sure }, locale.confirm)))
12094
+ }))), /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-message` }, /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-message-error` }, error), /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-message-forget`, onClick: onTips }, tips || /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(z, { size: 11 }), locale.shortpassword.tips))), !hideFooter && /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-footer` }, /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-footer-cancel`, onClick: onCancel }, locale.cancel), /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-footer-sure`, onClick: sure }, locale.confirm)))
12139
12095
  );
12140
12096
  };
12141
12097
  const ShortPassword = React__default.forwardRef(InternalShortPassword);
@@ -12470,22 +12426,14 @@ TextArea.defaultProps = defaultProps$K;
12470
12426
  TextArea.displayName = "NutTextArea";
12471
12427
  class UploadOptions {
12472
12428
  constructor() {
12473
- __publicField(this, "url", "");
12474
- __publicField(this, "name", "file");
12475
- __publicField(this, "fileType", "image");
12476
- __publicField(this, "formData");
12477
- __publicField(this, "sourceFile");
12478
- __publicField(this, "method", "post");
12479
- __publicField(this, "xhrState", 200);
12480
- __publicField(this, "timeout", 30 * 1e3);
12481
- __publicField(this, "headers", {});
12482
- __publicField(this, "withCredentials", false);
12483
- __publicField(this, "onStart");
12484
- __publicField(this, "taroFilePath");
12485
- __publicField(this, "onProgress");
12486
- __publicField(this, "onSuccess");
12487
- __publicField(this, "onFailure");
12488
- __publicField(this, "beforeXhrUpload");
12429
+ this.url = "";
12430
+ this.name = "file";
12431
+ this.fileType = "image";
12432
+ this.method = "post";
12433
+ this.xhrState = 200;
12434
+ this.timeout = 30 * 1e3;
12435
+ this.headers = {};
12436
+ this.withCredentials = false;
12489
12437
  }
12490
12438
  }
12491
12439
  const UPLOADING = "uploading";
@@ -12493,7 +12441,6 @@ const SUCCESS = "success";
12493
12441
  const ERROR = "error";
12494
12442
  class Upload {
12495
12443
  constructor(options) {
12496
- __publicField(this, "options");
12497
12444
  this.options = options;
12498
12445
  }
12499
12446
  upload() {
@@ -12623,18 +12570,11 @@ const funcInterceptor = (interceptor, {
12623
12570
  };
12624
12571
  class FileItem {
12625
12572
  constructor() {
12626
- __publicField(this, "status", "ready");
12627
- __publicField(this, "message", "准备中..");
12628
- __publicField(this, "uid", (/* @__PURE__ */ new Date()).getTime().toString());
12629
- __publicField(this, "name");
12630
- __publicField(this, "url");
12631
- __publicField(this, "type");
12632
- __publicField(this, "path");
12633
- __publicField(this, "percentage", 0);
12634
- __publicField(this, "formData", {});
12635
- __publicField(this, "responseText");
12636
- __publicField(this, "loadingIcon");
12637
- __publicField(this, "failIcon");
12573
+ this.status = "ready";
12574
+ this.message = "准备中..";
12575
+ this.uid = (/* @__PURE__ */ new Date()).getTime().toString();
12576
+ this.percentage = 0;
12577
+ this.formData = {};
12638
12578
  }
12639
12579
  }
12640
12580
  const defaultProps$J = {
@@ -12645,6 +12585,7 @@ const defaultProps$J = {
12645
12585
  delay: 0
12646
12586
  };
12647
12587
  const Progress = (props) => {
12588
+ const rtl = useRtl();
12648
12589
  const {
12649
12590
  className,
12650
12591
  style,
@@ -12694,7 +12635,7 @@ const Progress = (props) => {
12694
12635
  "div",
12695
12636
  {
12696
12637
  className: `${classPrefix2}-text`,
12697
- style: { left: `${displayPercent}%` }
12638
+ style: rtl ? { right: `${displayPercent}%` } : { left: `${displayPercent}%` }
12698
12639
  },
12699
12640
  children || /* @__PURE__ */ React__default.createElement(
12700
12641
  "div",
@@ -13186,6 +13127,7 @@ const ActionSheet = (props) => {
13186
13127
  return /* @__PURE__ */ React__default.createElement(
13187
13128
  Popup,
13188
13129
  {
13130
+ ...rest,
13189
13131
  round: true,
13190
13132
  visible,
13191
13133
  position: "bottom",
@@ -14964,7 +14906,7 @@ const Skeleton = (props) => {
14964
14906
  const classPrefix2 = "nut-skeleton";
14965
14907
  const classes = classNames(classPrefix2, className);
14966
14908
  const avatarClass = classNames({
14967
- avatar: true,
14909
+ [`nut-avatar`]: true,
14968
14910
  [`avatar-${avatarShape}`]: avatarShape
14969
14911
  });
14970
14912
  const repeatLines = (num) => {
@@ -14982,7 +14924,7 @@ const Skeleton = (props) => {
14982
14924
  height: "50px"
14983
14925
  };
14984
14926
  };
14985
- return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, visible ? /* @__PURE__ */ React__default.createElement("div", null, children) : /* @__PURE__ */ React__default.createElement("div", { className: classes, ...rest }, animated && /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-animation` }), /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-content` }, avatar && /* @__PURE__ */ React__default.createElement(
14927
+ return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, visible ? /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, children) : /* @__PURE__ */ React__default.createElement("div", { className: classes, ...rest }, animated && /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-animation` }), /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-content` }, avatar && /* @__PURE__ */ React__default.createElement(
14986
14928
  Avatar,
14987
14929
  {
14988
14930
  className: avatarClass,
@@ -15476,7 +15418,7 @@ const CountUp = (props) => {
15476
15418
  CountUp.defaultProps = defaultProps$r;
15477
15419
  CountUp.displayName = "NutCountUp";
15478
15420
  const defaultProps$q = {};
15479
- class AnimatingNumbers extends Component {
15421
+ const _AnimatingNumbers = class _AnimatingNumbers extends Component {
15480
15422
  constructor(props) {
15481
15423
  super(props);
15482
15424
  this.state = {};
@@ -15484,10 +15426,11 @@ class AnimatingNumbers extends Component {
15484
15426
  render() {
15485
15427
  return /* @__PURE__ */ React__default.createElement("div", { className: "nut-animatingnumbers" });
15486
15428
  }
15487
- }
15488
- __publicField(AnimatingNumbers, "defaultProps", defaultProps$q);
15489
- __publicField(AnimatingNumbers, "displayName", "NutAnimatingNumbers");
15490
- __publicField(AnimatingNumbers, "CountUp", CountUp);
15429
+ };
15430
+ _AnimatingNumbers.defaultProps = defaultProps$q;
15431
+ _AnimatingNumbers.displayName = "NutAnimatingNumbers";
15432
+ _AnimatingNumbers.CountUp = CountUp;
15433
+ let AnimatingNumbers = _AnimatingNumbers;
15491
15434
  AnimatingNumbers.CountUp = CountUp;
15492
15435
  const defaultProps$p = {
15493
15436
  ...ComponentDefaults,
@@ -17665,8 +17608,7 @@ const getTaroRectById = (id) => {
17665
17608
  };
17666
17609
  const defaultConfigRef = {
17667
17610
  current: {
17668
- locale: zhCN,
17669
- direction: "ltr"
17611
+ locale: zhCN
17670
17612
  }
17671
17613
  };
17672
17614
  const getDefaultConfig = () => {