@nutui/nutui-react-taro 2.3.9 → 2.3.11-patch.0

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 (398) hide show
  1. package/CHANGELOG.md +22 -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 +1 -1
  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 -5
  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 +2 -5
  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 +3 -4
  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 +3 -3
  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-EwM5KF1i.js} +3 -3
  153. package/dist/esm/{address.taro-B54ZOtmo.js → address.taro-BL-QeHyn.js} +5 -5
  154. package/dist/esm/{animate.taro-m67VyUHP.js → animate.taro-50C7ngw9.js} +1 -1
  155. package/dist/esm/{audio.taro-dJgj5qIu.js → audio.taro-DWSPma8f.js} +4 -4
  156. package/dist/esm/{avatar.taro-7ltbzIdY.js → avatar.taro-Bjfoms0J.js} +3 -3
  157. package/dist/esm/{avatarcropper.taro-GIZxzMJ_.js → avatarcropper.taro-BRPMDUrl.js} +4 -4
  158. package/dist/esm/{avatargroup.taro-h6dpv6UX.js → avatargroup.taro-CXnMGdp1.js} +1 -1
  159. package/dist/esm/{backtop.taro-Y3vOJiXq.js → backtop.taro-Ux0Nrvkj.js} +2 -2
  160. package/dist/esm/{badge.taro-993L861f.js → badge.taro-B4a7dAtf.js} +1 -1
  161. package/dist/esm/barrage.taro-DW7wFS3Q.js +118 -0
  162. package/dist/esm/{button.taro-3IIFy1M2.js → button.taro-COS5LtYd.js} +1 -1
  163. package/dist/esm/{calendar.taro-iNNHje7V.js → calendar.taro-CruXd4DL.js} +5 -5
  164. package/dist/esm/{calendarcard.taro-9s7naGmU.js → calendarcard.taro-CqLW3m5r.js} +3 -3
  165. package/dist/esm/{calendaritem.taro-o6Z8OOGY.js → calendaritem.taro-DxCnbpt9.js} +5 -5
  166. package/dist/esm/{card.taro-p4PTy-IU.js → card.taro-CaR3kJw9.js} +3 -3
  167. package/dist/esm/{cascader.taro-BxyK5ybo.js → cascader.taro-DxedRnNS.js} +6 -7
  168. package/dist/esm/{cell.taro-jD6MoFTj.js → cell.taro-BlmoMAPC.js} +2 -2
  169. package/dist/esm/{cellgroup.taro-08A3XAze.js → cellgroup.taro-DYkCnAYN.js} +1 -1
  170. package/dist/esm/{checkbox.taro-xMxWdpyI.js → checkbox.taro-B2rk4RIe.js} +2 -2
  171. package/dist/esm/{circleprogress.taro-myZgamBw.js → circleprogress.taro-Ce69a8ZO.js} +3 -3
  172. package/dist/esm/{col.taro-5FMpttLE.js → col.taro-Czx3Daw2.js} +2 -2
  173. package/dist/esm/{collapse.taro-sZibDygv.js → collapse.taro-kDtcoxSd.js} +3 -3
  174. package/dist/esm/{collapseitem.taro-AaQ_msgd.js → collapseitem.taro-BGPS4t_l.js} +1 -1
  175. package/dist/esm/{configprovider.taro-q5J2gQbi.js → configprovider.taro-BXergk04.js} +1 -1
  176. package/dist/esm/{countdown.taro-XZlfWBrA.js → countdown.taro-CkIt0qI3.js} +3 -3
  177. package/dist/esm/{datepicker.taro-DrXkqJkN.js → datepicker.taro-GAD7C5yn.js} +5 -5
  178. package/dist/esm/{dialog.taro-dmQGDu3o.js → dialog.taro-UjZY2h35.js} +4 -4
  179. package/dist/esm/{divider.taro-H5fKry4P.js → divider.taro-C4sK6QMP.js} +1 -1
  180. package/dist/esm/{drag.taro-BwcleRuB.js → drag.taro-ByrsVbeB.js} +1 -1
  181. package/dist/esm/{elevator.taro-2nbUM3vH.js → elevator.taro-BxW3Xte-.js} +1 -1
  182. package/dist/esm/{ellipsis.taro-VApVqS_j.js → ellipsis.taro-CKXiIrwO.js} +2 -2
  183. package/dist/esm/{empty.taro-gwvOr1xf.js → empty.taro-BCBOBl64.js} +3 -3
  184. package/dist/esm/{fixednav.taro-QVBXysDj.js → fixednav.taro-Cdn0eyJ8.js} +3 -3
  185. package/dist/esm/{formitem.taro-atY4A0pS.js → formitem.taro-yAquq6MF.js} +44 -15
  186. package/dist/esm/{grid.taro-3X-_AhXw.js → grid.taro-BqwDc6zi.js} +2 -2
  187. package/dist/esm/{griditem.taro-TJDJVeQy.js → griditem.taro-BqS5eUJd.js} +2 -2
  188. package/dist/esm/{image.taro-FfeikBlO.js → image.taro-W45-Ju0_.js} +1 -1
  189. package/dist/esm/{imagepreview.taro--fVrJUOE.js → imagepreview.taro-CLgk3WWD.js} +5 -5
  190. package/dist/esm/{infiniteloading.taro-BO0_y46K.js → infiniteloading.taro-7Q9OFjQJ.js} +2 -2
  191. package/dist/esm/{input.taro-YoPsV-op.js → input.taro-CfP5WI8f.js} +7 -4
  192. package/dist/esm/inputnumber.taro-BV3Ecr1e.js +169 -0
  193. package/dist/esm/{loading.taro-aHN6xLIT.js → loading.taro-BEIQQqUL.js} +1 -1
  194. package/dist/esm/{menu.taro-ODwHYGFM.js → menu.taro-DqBJzQBE.js} +2 -2
  195. package/dist/esm/{menuitem.taro-9nyTDLpt.js → menuitem.taro-KGs5VqRI.js} +4 -4
  196. package/dist/esm/{navbar.taro-AuKPDCaW.js → navbar.taro-Cv0XsdT0.js} +2 -2
  197. package/dist/esm/{noticebar.taro-bHnEzTvL.js → noticebar.taro-BrVbtxH_.js} +2 -2
  198. package/dist/esm/{notify.taro-mA9KS8qh.js → notify.taro-DblYP9in.js} +2 -2
  199. package/dist/esm/{numberkeyboard.taro-bF6VCXry.js → numberkeyboard.taro-DHpKwvHG.js} +3 -3
  200. package/dist/esm/nutui-react.es.js +93 -118
  201. package/dist/esm/{overlay.taro-HsGeVyPh.js → overlay.taro-ByBhOQNL.js} +3 -3
  202. package/dist/esm/{pagination.taro-C4_Ey5KC.js → pagination.taro-BEuRb-o7.js} +3 -3
  203. package/dist/esm/{picker.taro-csU3SZPF.js → picker.taro-kFY-CGKh.js} +8 -8
  204. package/dist/esm/{popover.taro-qldQwLPC.js → popover.taro-BZLerpsZ.js} +3 -3
  205. package/dist/esm/{popup.taro-ObEUml4r.js → popup.taro-44018H4d.js} +2 -2
  206. package/dist/esm/{price.taro-Z1zR8YWV.js → price.taro-_NRkxuMH.js} +1 -1
  207. package/dist/esm/{progress.taro-pStvlrbA.js → progress.taro-CVaqKXtL.js} +1 -1
  208. package/dist/esm/{pulltorefresh.taro-2jER8Mat.js → pulltorefresh.taro-uDgX9gWA.js} +3 -3
  209. package/dist/esm/{radio.taro-EKJXMjnX.js → radio.taro-C70KYJbH.js} +2 -2
  210. package/dist/esm/{range.taro-mDYY3SXA.js → range.taro-CIkFRE-4.js} +4 -4
  211. package/dist/esm/{rate.taro-_5Mjd_EO.js → rate.taro-BAWEa8tE.js} +4 -4
  212. package/dist/esm/{row.taro-IxNlKKQM.js → row.taro-BrJsteWh.js} +2 -2
  213. package/dist/esm/{searchbar.taro-hVzdT6nI.js → searchbar.taro-Dfwiv4oP.js} +30 -24
  214. package/dist/esm/{shortpassword.taro-bZCwIpEn.js → shortpassword.taro-C3QLh5Lg.js} +23 -10
  215. package/dist/esm/{sidenavbar.taro-8qoGZg5n.js → sidenavbar.taro-DQY5m1Bu.js} +3 -3
  216. package/dist/esm/{signature.taro-y3qxnKMv.js → signature.taro-BWfscsm1.js} +1 -1
  217. package/dist/esm/{skeleton.taro-Pg7WtP0e.js → skeleton.taro-DNPlesx9.js} +4 -4
  218. package/dist/esm/{step.taro-_DEZqFGb.js → step.taro-CIwl4EYN.js} +2 -2
  219. package/dist/esm/{steps.taro-PH0qWPla.js → steps.taro-IN9BqTug.js} +2 -2
  220. package/dist/esm/{sticky.taro-MmKUU2Wv.js → sticky.taro-DK45VevL.js} +4 -4
  221. package/dist/esm/{subsidenavbar.taro-Zy52MDDG.js → subsidenavbar.taro-C315xYFY.js} +1 -1
  222. package/dist/esm/{swipe.taro-p2ONOq1o.js → swipe.taro-ACO0JU5m.js} +3 -3
  223. package/dist/esm/{switch.taro-L0BAbMeu.js → switch.taro-bC4bQM5Q.js} +2 -2
  224. package/dist/esm/{tabbar.taro-QE0rjSKE.js → tabbar.taro-DhhFGx1g.js} +3 -3
  225. package/dist/esm/{tabbaritem.taro-t9C07OYX.js → tabbaritem.taro-Dh4Ah1BN.js} +2 -2
  226. package/dist/esm/{table.taro-0zRh2hq6.js → table.taro-q5Hyb-LU.js} +3 -3
  227. package/dist/esm/{tabs.taro-w8ra49Qb.js → tabs.taro-CwhQTV-u.js} +6 -6
  228. package/dist/esm/{tag.taro-5KC_wObY.js → tag.taro-CkWLhERR.js} +1 -1
  229. package/dist/esm/{textarea.taro-9zQLTCwU.js → textarea.taro-DHKSJq_a.js} +3 -3
  230. package/dist/esm/{timedetail.taro-TF9Wcblh.js → timedetail.taro-B3s7HEEX.js} +1 -1
  231. package/dist/esm/{timeselect.taro-j8LgSCe5.js → timeselect.taro-uhIUQE1A.js} +4 -4
  232. package/dist/esm/{toast.taro-xnEQSCDJ.js → toast.taro-Hb0vdac6.js} +4 -4
  233. package/dist/esm/{tour.taro-CGEjzzN_.js → tour.taro-BXMR1Ftl.js} +2 -2
  234. package/dist/esm/{trendarrow.taro-hsM6-XsQ.js → trendarrow.taro-B5XMr2ZK.js} +1 -1
  235. package/dist/esm/types/src/packages/formitem/formitem.d.ts +6 -2
  236. package/dist/esm/types/src/packages/formitem/formitem.taro.d.ts +6 -2
  237. package/dist/esm/types/src/packages/inputnumber/inputnumber.d.ts +15 -15
  238. package/dist/esm/types/src/packages/inputnumber/inputnumber.taro.d.ts +15 -17
  239. package/dist/esm/types/src/packages/searchbar/searchbar.taro.d.ts +11 -19
  240. package/dist/esm/types/src/packages/shortpassword/shortpassword.d.ts +3 -2
  241. package/dist/esm/types/src/packages/shortpassword/shortpassword.taro.d.ts +3 -2
  242. package/dist/esm/types/src/packages/shortpassword/types.d.ts +4 -0
  243. package/dist/esm/{uploader.taro-bRF02TR9.js → uploader.taro-CH1KgoFE.js} +6 -6
  244. package/dist/esm/{use-custom-event-XvsODK8c.js → use-custom-event-BFZJeHQI.js} +2 -2
  245. package/dist/esm/{use-props-value-vKr0R0AX.js → use-props-value-DvrH7S--.js} +1 -1
  246. package/dist/esm/{virtuallist.taro-AeTVtFFa.js → virtuallist.taro-B1TrMg9X.js} +1 -1
  247. package/dist/esm/{watermark.taro-nvSmcwu-.js → watermark.taro-CzjMPcgm.js} +2 -2
  248. package/dist/locales/base.js +1 -1
  249. package/dist/locales/en-US.js +1 -1
  250. package/dist/locales/id-ID.js +1 -1
  251. package/dist/locales/tr-TR.js +1 -1
  252. package/dist/locales/zh-CN.js +1 -1
  253. package/dist/locales/zh-TW.js +1 -1
  254. package/dist/locales/zh-UG.js +1 -1
  255. package/dist/nutui.react.es.js +523 -478
  256. package/dist/nutui.react.umd.js +523 -478
  257. package/dist/packages/animate/animate.scss +0 -27
  258. package/dist/packages/audio/audio.scss +0 -5
  259. package/dist/packages/avatarcropper/avatarcropper.scss +0 -2
  260. package/dist/packages/badge/badge.scss +7 -0
  261. package/dist/packages/barrage/barrage.scss +23 -4
  262. package/dist/packages/button/button.scss +0 -1
  263. package/dist/packages/calendar/calendar.scss +4 -4
  264. package/dist/packages/calendarcard/calendarcard.scss +0 -1
  265. package/dist/packages/cascader/cascader.scss +0 -1
  266. package/dist/packages/checkbox/checkbox.scss +0 -2
  267. package/dist/packages/checkboxgroup/checkboxgroup.scss +1 -3
  268. package/dist/packages/col/col.scss +2 -2
  269. package/dist/packages/collapseitem/collapseitem.scss +2 -3
  270. package/dist/packages/dialog/dialog.scss +4 -0
  271. package/dist/packages/divider/divider.scss +1 -1
  272. package/dist/packages/fixednav/fixednav.scss +0 -2
  273. package/dist/packages/form/form.scss +24 -26
  274. package/dist/packages/formitem/formitem.scss +0 -1
  275. package/dist/packages/grid/grid.scss +1 -1
  276. package/dist/packages/griditem/griditem.scss +28 -26
  277. package/dist/packages/imagepreview/imagepreview.scss +0 -1
  278. package/dist/packages/indicator/indicator.scss +2 -3
  279. package/dist/packages/menu/menu.scss +0 -7
  280. package/dist/packages/menuitem/menuitem.scss +14 -10
  281. package/dist/packages/navbar/navbar.scss +3 -5
  282. package/dist/packages/noticebar/noticebar.scss +20 -0
  283. package/dist/packages/numberkeyboard/numberkeyboard.scss +25 -18
  284. package/dist/packages/pagination/pagination.scss +0 -2
  285. package/dist/packages/picker/picker.scss +9 -0
  286. package/dist/packages/popover/popover.scss +0 -4
  287. package/dist/packages/popup/popup.scss +4 -19
  288. package/dist/packages/price/price.scss +1 -0
  289. package/dist/packages/radio/radio.scss +0 -1
  290. package/dist/packages/radiogroup/radiogroup.scss +10 -1
  291. package/dist/packages/range/range.scss +127 -127
  292. package/dist/packages/rate/rate.scss +0 -1
  293. package/dist/packages/searchbar/searchbar.scss +5 -2
  294. package/dist/packages/shortpassword/shortpassword.scss +4 -0
  295. package/dist/packages/skeleton/skeleton.scss +13 -3
  296. package/dist/packages/space/space.scss +0 -1
  297. package/dist/packages/step/step.scss +21 -25
  298. package/dist/packages/swipe/swipe.scss +0 -15
  299. package/dist/packages/swiper/swiper.scss +0 -1
  300. package/dist/packages/switch/switch.scss +11 -0
  301. package/dist/packages/table/table.scss +4 -5
  302. package/dist/packages/tabs/tabs.scss +16 -18
  303. package/dist/packages/tag/tag.scss +0 -1
  304. package/dist/packages/textarea/textarea.scss +1 -6
  305. package/dist/packages/timeselect/timeselect.scss +1 -6
  306. package/dist/packages/tour/tour.scss +1 -5
  307. package/dist/packages/trendarrow/trendarrow.scss +0 -1
  308. package/dist/packages/uploader/uploader.scss +0 -1
  309. package/dist/packages/virtuallist/virtuallist.scss +12 -12
  310. package/dist/style.css +1 -1
  311. package/dist/style.mjs +1 -1
  312. package/dist/styles/variables.scss +11 -7
  313. package/dist/types/index.d.ts +98 -98
  314. package/dist/types/packages/actionsheet/actionsheet.d.ts +1 -1
  315. package/dist/types/packages/actionsheet/actionsheet.taro.d.ts +1 -1
  316. package/dist/types/packages/address/address.d.ts +1 -1
  317. package/dist/types/packages/address/address.taro.d.ts +1 -1
  318. package/dist/types/packages/address/customRender.d.ts +1 -1
  319. package/dist/types/packages/address/customRender.taro.d.ts +1 -1
  320. package/dist/types/packages/avatar/avatar.d.ts +1 -1
  321. package/dist/types/packages/avatar/avatar.taro.d.ts +1 -1
  322. package/dist/types/packages/calendaritem/calendaritem.d.ts +1 -1
  323. package/dist/types/packages/calendaritem/calendaritem.taro.d.ts +1 -1
  324. package/dist/types/packages/cascader/cascader.d.ts +1 -1
  325. package/dist/types/packages/cascader/cascader.taro.d.ts +1 -1
  326. package/dist/types/packages/cell/cell.d.ts +1 -1
  327. package/dist/types/packages/cell/cell.taro.d.ts +1 -1
  328. package/dist/types/packages/checkbox/checkbox.d.ts +2 -2
  329. package/dist/types/packages/checkbox/checkbox.taro.d.ts +2 -2
  330. package/dist/types/packages/checkboxgroup/checkboxgroup.d.ts +2 -2
  331. package/dist/types/packages/checkboxgroup/checkboxgroup.taro.d.ts +2 -2
  332. package/dist/types/packages/datepicker/datepicker.d.ts +1 -1
  333. package/dist/types/packages/datepicker/datepicker.taro.d.ts +1 -1
  334. package/dist/types/packages/dialog/dialogwrap.d.ts +1 -1
  335. package/dist/types/packages/empty/empty.d.ts +1 -1
  336. package/dist/types/packages/fixednav/fixednav.d.ts +1 -1
  337. package/dist/types/packages/fixednav/fixednav.taro.d.ts +1 -1
  338. package/dist/types/packages/form/form.d.ts +1 -1
  339. package/dist/types/packages/form/form.taro.d.ts +1 -1
  340. package/dist/types/packages/form/index.d.ts +1 -1
  341. package/dist/types/packages/form/index.taro.d.ts +1 -1
  342. package/dist/types/packages/formitem/formitem.d.ts +6 -2
  343. package/dist/types/packages/formitem/formitem.taro.d.ts +14 -2
  344. package/dist/types/packages/inputnumber/inputnumber.d.ts +15 -15
  345. package/dist/types/packages/inputnumber/inputnumber.taro.d.ts +28 -30
  346. package/dist/types/packages/menu/menu.d.ts +1 -1
  347. package/dist/types/packages/menu/menu.taro.d.ts +1 -1
  348. package/dist/types/packages/numberkeyboard/numberkeyboard.d.ts +1 -1
  349. package/dist/types/packages/numberkeyboard/numberkeyboard.taro.d.ts +1 -1
  350. package/dist/types/packages/nutui.react.build.d.ts +98 -98
  351. package/dist/types/packages/nutui.react.d.ts +98 -98
  352. package/dist/types/packages/nutui.react.taro.d.ts +98 -98
  353. package/dist/types/packages/picker/picker.d.ts +1 -1
  354. package/dist/types/packages/picker/picker.taro.d.ts +1 -1
  355. package/dist/types/packages/popover/popover.d.ts +1 -1
  356. package/dist/types/packages/popover/popover.taro.d.ts +1 -1
  357. package/dist/types/packages/popup/popup.d.ts +1 -1
  358. package/dist/types/packages/popup/popup.taro.d.ts +1 -1
  359. package/dist/types/packages/radio/radio.d.ts +2 -2
  360. package/dist/types/packages/radio/radio.taro.d.ts +2 -2
  361. package/dist/types/packages/searchbar/searchbar.taro.d.ts +21 -15
  362. package/dist/types/packages/shortpassword/shortpassword.d.ts +4 -3
  363. package/dist/types/packages/shortpassword/shortpassword.taro.d.ts +4 -3
  364. package/dist/types/packages/shortpassword/types.d.ts +4 -0
  365. package/dist/types/packages/swiper/index.d.ts +1 -1
  366. package/dist/types/packages/swiper/index.taro.d.ts +1 -1
  367. package/dist/types/packages/tabs/tabs.d.ts +1 -1
  368. package/dist/types/packages/tabs/tabs.taro.d.ts +1 -1
  369. package/dist/types/packages/timedetail/timedetail.d.ts +1 -1
  370. package/dist/types/packages/timedetail/timedetail.taro.d.ts +1 -1
  371. package/dist/types/packages/tour/tour.d.ts +1 -1
  372. package/dist/types/packages/tour/tour.taro.d.ts +1 -1
  373. package/package.json +5 -5
  374. package/dist/esm/barrage.taro-HsivAhbE.js +0 -91
  375. package/dist/esm/inputnumber.taro-7QptygT3.js +0 -197
  376. /package/dist/esm/{UserContext-9BL0cq8w.js → UserContext-BlM0373q.js} +0 -0
  377. /package/dist/esm/{context-6mGEMLsx.js → context-4T-L2x0_.js} +0 -0
  378. /package/dist/esm/{context-9BL0cq8w.js → context-BlM0373q.js} +0 -0
  379. /package/dist/esm/{date-nxKOxj5-.js → date-D0pth0qC.js} +0 -0
  380. /package/dist/esm/{get-rect-by-taro-piSHvCGp.js → get-rect-by-taro-BnfHyJJb.js} +0 -0
  381. /package/dist/esm/{get-scroll-parent-uywvoQMl.js → get-scroll-parent-DB1VRg11.js} +0 -0
  382. /package/dist/esm/{index-YvHA__3D.js → index-DeNfBlua.js} +0 -0
  383. /package/dist/esm/{index-oitVOJp9.js → index-nbt45_aK.js} +0 -0
  384. /package/dist/esm/{indicator.taro-ZH6MICsS.js → indicator.taro-dqWsdoRo.js} +0 -0
  385. /package/dist/esm/{layout.taro-lnN-wB0Y.js → layout.taro-DQc4VjqF.js} +0 -0
  386. /package/dist/esm/{pad-zero-iY-0-oys.js → pad-zero-B2OUQfh7.js} +0 -0
  387. /package/dist/esm/{px-check-JiWLYN2v.js → px-check-D1Xbd9pj.js} +0 -0
  388. /package/dist/esm/{raf-UzmDvMUW.js → raf-zwv-SBjP.js} +0 -0
  389. /package/dist/esm/{safearea.taro-afu_mY7g.js → safearea.taro-BMQHr7tu.js} +0 -0
  390. /package/dist/esm/{sidenavbaritem.taro-AxJNRAdi.js → sidenavbaritem.taro-Bp-s9bWO.js} +0 -0
  391. /package/dist/esm/{space.taro-q3R_yq79.js → space.taro-rvVRQ2Nl.js} +0 -0
  392. /package/dist/esm/{swiperitem.taro-BC1CE0T-.js → swiperitem.taro-CjcW-KYA.js} +0 -0
  393. /package/dist/esm/{tabpane.taro-5k7wWimS.js → tabpane.taro-Lkwp7scD.js} +0 -0
  394. /package/dist/esm/{typings-buMpDfSR.js → typings-DV9RBfhj.js} +0 -0
  395. /package/dist/esm/{use-force-update-0oEVD8Nr.js → use-force-update-CudFjCsy.js} +0 -0
  396. /package/dist/esm/{use-refs-IdrY0ww3.js → use-refs-BeEmziIR.js} +0 -0
  397. /package/dist/esm/{use-touch-BUFdkOSA.js → use-touch-OfEaR5qi.js} +0 -0
  398. /package/dist/esm/{video.taro-csvHwS2v.js → video.taro-kKcHksKW.js} +0 -0
@@ -1,7 +1,7 @@
1
1
  import * as React from "react";
2
2
  import React__default, { createContext, useContext } from "react";
3
3
  import classNames from "classnames";
4
- import { c as commonjsGlobal, g as getDefaultExportFromCjs, i as isEqual } from "./index-oitVOJp9.js";
4
+ import { c as commonjsGlobal, g as getDefaultExportFromCjs, i as isEqual } from "./index-nbt45_aK.js";
5
5
  var INFINITY = 1 / 0;
6
6
  var symbolTag = "[object Symbol]";
7
7
  var reAsciiWord = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
@@ -1,7 +1,7 @@
1
1
  import React__default, { useState, useRef, useImperativeHandle, useEffect } from "react";
2
- import { u as useConfig } from "./configprovider.taro-q5J2gQbi.js";
3
- import { C as ComponentDefaults } from "./typings-buMpDfSR.js";
4
- import { p as padZero } from "./pad-zero-iY-0-oys.js";
2
+ import { u as useConfig } from "./configprovider.taro-BXergk04.js";
3
+ import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
4
+ import { p as padZero } from "./pad-zero-B2OUQfh7.js";
5
5
  const defaultProps = {
6
6
  ...ComponentDefaults,
7
7
  paused: false,
@@ -1,10 +1,10 @@
1
1
  import React__default, { useState, useEffect } from "react";
2
2
  import { View } from "@tarojs/components";
3
- import { P as Picker } from "./picker.taro-csU3SZPF.js";
4
- import { u as useConfig } from "./configprovider.taro-q5J2gQbi.js";
5
- import { u as usePropsValue } from "./use-props-value-vKr0R0AX.js";
6
- import { C as ComponentDefaults } from "./typings-buMpDfSR.js";
7
- import { p as padZero } from "./pad-zero-iY-0-oys.js";
3
+ import { P as Picker } from "./picker.taro-kFY-CGKh.js";
4
+ import { u as useConfig } from "./configprovider.taro-BXergk04.js";
5
+ import { u as usePropsValue } from "./use-props-value-DvrH7S--.js";
6
+ import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
7
+ import { p as padZero } from "./pad-zero-B2OUQfh7.js";
8
8
  const isDate = (val) => {
9
9
  return Object.prototype.toString.call(val) === "[object Date]" && !Number.isNaN(val.getTime());
10
10
  };
@@ -3,10 +3,10 @@ import classNames from "classnames";
3
3
  import { CSSTransition } from "react-transition-group";
4
4
  import { View } from "@tarojs/components";
5
5
  import { Close } from "@nutui/icons-react-taro";
6
- import { B as Button } from "./button.taro-3IIFy1M2.js";
7
- import { u as useConfig } from "./configprovider.taro-q5J2gQbi.js";
8
- import { u as useLockScrollTaro, O as Overlay } from "./overlay.taro-HsGeVyPh.js";
9
- import { b as useParams, u as useCustomEvent, a as useCustomEventsPath, c as customEvents } from "./use-custom-event-XvsODK8c.js";
6
+ import { B as Button } from "./button.taro-COS5LtYd.js";
7
+ import { u as useConfig } from "./configprovider.taro-BXergk04.js";
8
+ import { u as useLockScrollTaro, O as Overlay } from "./overlay.taro-ByBhOQNL.js";
9
+ import { b as useParams, u as useCustomEvent, a as useCustomEventsPath, c as customEvents } from "./use-custom-event-BFZJeHQI.js";
10
10
  const Content = (props) => {
11
11
  const { visible, title, header, footer, close: close2, footerDirection, onClick, children } = props;
12
12
  const classPrefix = "nut-dialog";
@@ -1,6 +1,6 @@
1
1
  import React__default from "react";
2
2
  import classNames from "classnames";
3
- import { C as ComponentDefaults } from "./typings-buMpDfSR.js";
3
+ import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
4
4
  const defaultProps = {
5
5
  ...ComponentDefaults,
6
6
  contentPosition: "center",
@@ -1,6 +1,6 @@
1
1
  import React__default, { useState, useRef, useEffect } from "react";
2
2
  import { getSystemInfoSync, createSelectorQuery } from "@tarojs/taro";
3
- import { C as ComponentDefaults } from "./typings-buMpDfSR.js";
3
+ import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
4
4
  const defaultProps = {
5
5
  ...ComponentDefaults,
6
6
  attract: false,
@@ -2,7 +2,7 @@ import React__default, { createContext, useRef, useState, useEffect } from "reac
2
2
  import Taro, { nextTick, createSelectorQuery } from "@tarojs/taro";
3
3
  import { ScrollView } from "@tarojs/components";
4
4
  import classNames from "classnames";
5
- import { C as ComponentDefaults } from "./typings-buMpDfSR.js";
5
+ import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
6
6
  const elevatorContext = createContext({});
7
7
  const defaultProps = {
8
8
  ...ComponentDefaults,
@@ -2,8 +2,8 @@ import React__default, { useRef, useState, useEffect } from "react";
2
2
  import { nextTick, createSelectorQuery } from "@tarojs/taro";
3
3
  import classNames from "classnames";
4
4
  import { View } from "@tarojs/components";
5
- import { g as getRectByTaro } from "./get-rect-by-taro-piSHvCGp.js";
6
- import { C as ComponentDefaults } from "./typings-buMpDfSR.js";
5
+ import { g as getRectByTaro } from "./get-rect-by-taro-BnfHyJJb.js";
6
+ import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
7
7
  const defaultProps = {
8
8
  ...ComponentDefaults,
9
9
  content: "",
@@ -1,8 +1,8 @@
1
1
  import React__default, { useState, useEffect } from "react";
2
2
  import classNames from "classnames";
3
- import { u as useConfig } from "./configprovider.taro-q5J2gQbi.js";
4
- import { C as ComponentDefaults } from "./typings-buMpDfSR.js";
5
- import { B as Button } from "./button.taro-3IIFy1M2.js";
3
+ import { u as useConfig } from "./configprovider.taro-BXergk04.js";
4
+ import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
5
+ import { B as Button } from "./button.taro-COS5LtYd.js";
6
6
  const defaultStatus = {
7
7
  empty: "https://static-ftcms.jd.com/p/files/61a9e3183985005b3958672b.png",
8
8
  error: "https://ftcms.jd.com/p/files/61a9e33ee7dcdbcc0ce62736.png",
@@ -1,9 +1,9 @@
1
1
  import React__default from "react";
2
2
  import classNames from "classnames";
3
3
  import { ArrowLeft } from "@nutui/icons-react-taro";
4
- import { O as Overlay } from "./overlay.taro-HsGeVyPh.js";
5
- import { u as useConfig } from "./configprovider.taro-q5J2gQbi.js";
6
- import { C as ComponentDefaults } from "./typings-buMpDfSR.js";
4
+ import { O as Overlay } from "./overlay.taro-ByBhOQNL.js";
5
+ import { u as useConfig } from "./configprovider.taro-BXergk04.js";
6
+ import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
7
7
  const defaultProps = {
8
8
  ...ComponentDefaults,
9
9
  activeText: "",
@@ -5,8 +5,8 @@ var __publicField = (obj, key, value) => {
5
5
  return value;
6
6
  };
7
7
  import React__default, { createContext, useRef } from "react";
8
- import { C as Cell } from "./cell.taro-jD6MoFTj.js";
9
- import { C as ComponentDefaults } from "./typings-buMpDfSR.js";
8
+ import { C as Cell } from "./cell.taro-BlmoMAPC.js";
9
+ import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
10
10
  const Context = createContext({});
11
11
  function _extends() {
12
12
  _extends = Object.assign ? Object.assign.bind() : function(target) {
@@ -1066,6 +1066,7 @@ class FormStore {
1066
1066
  constructor() {
1067
1067
  // 初始化数据
1068
1068
  __publicField(this, "initialValues", {});
1069
+ __publicField(this, "updateList", []);
1069
1070
  // 存放表单中所有的数据 eg. {password: "ddd",username: "123"}
1070
1071
  __publicField(this, "store", {});
1071
1072
  // 所有的组件实例
@@ -1135,6 +1136,15 @@ class FormStore {
1135
1136
  }
1136
1137
  });
1137
1138
  });
1139
+ this.updateList.forEach((item) => {
1140
+ let shouldUpdate = item.condition;
1141
+ if (typeof item.condition === "function") {
1142
+ shouldUpdate = item.condition();
1143
+ }
1144
+ if (shouldUpdate) {
1145
+ item.entity.onStoreChange("update");
1146
+ }
1147
+ });
1138
1148
  });
1139
1149
  __publicField(this, "setCallback", (callback) => {
1140
1150
  this.callbacks = {
@@ -1180,9 +1190,9 @@ class FormStore {
1180
1190
  filterEntities = this.fieldEntities.filter(({ props: { name } }) => nameList.includes(name));
1181
1191
  }
1182
1192
  const errs = [];
1183
- filterEntities.forEach((entity) => {
1184
- this.validateEntities(entity, errs);
1185
- });
1193
+ await Promise.all(filterEntities.map(async (entity) => {
1194
+ await this.validateEntities(entity, errs);
1195
+ }));
1186
1196
  return errs;
1187
1197
  });
1188
1198
  __publicField(this, "submit", async () => {
@@ -1201,6 +1211,16 @@ class FormStore {
1201
1211
  entity.onStoreChange("reset");
1202
1212
  });
1203
1213
  });
1214
+ // 监听事件
1215
+ __publicField(this, "registerUpdate", (field, shouldUpdate) => {
1216
+ this.updateList.push({
1217
+ entity: field,
1218
+ condition: shouldUpdate
1219
+ });
1220
+ return () => {
1221
+ this.updateList = this.updateList.filter((i) => i.entity !== field);
1222
+ };
1223
+ });
1204
1224
  __publicField(this, "dispatch", ({ name }) => {
1205
1225
  this.validateFields([name]);
1206
1226
  });
@@ -1212,7 +1232,8 @@ class FormStore {
1212
1232
  setInitialValues: this.setInitialValues,
1213
1233
  dispatch: this.dispatch,
1214
1234
  store: this.store,
1215
- fieldEntities: this.fieldEntities
1235
+ fieldEntities: this.fieldEntities,
1236
+ registerUpdate: this.registerUpdate
1216
1237
  };
1217
1238
  }
1218
1239
  });
@@ -1264,13 +1285,16 @@ const defaultProps = {
1264
1285
  label: "",
1265
1286
  rules: [{ required: false, message: "" }],
1266
1287
  errorMessageAlign: "left",
1267
- validateTrigger: "onChange"
1288
+ validateTrigger: "onChange",
1289
+ shouldUpdate: false,
1290
+ noStyle: false
1268
1291
  };
1269
1292
  class FormItem extends React__default.Component {
1270
1293
  constructor(props) {
1271
1294
  super(props);
1272
1295
  __publicField(this, "cancelRegister");
1273
1296
  __publicField(this, "componentRef");
1297
+ __publicField(this, "eventOff");
1274
1298
  // children添加value属性和onChange事件
1275
1299
  __publicField(this, "getControlled", (children) => {
1276
1300
  var _a;
@@ -1344,7 +1368,6 @@ class FormItem extends React__default.Component {
1344
1368
  }
1345
1369
  });
1346
1370
  __publicField(this, "renderLayout", (childNode) => {
1347
- var _a;
1348
1371
  const { label, name, required: required4, rules: rules2, className, style, errorMessageAlign } = {
1349
1372
  ...defaultProps,
1350
1373
  ...this.props
@@ -1368,10 +1391,7 @@ class FormItem extends React__default.Component {
1368
1391
  "div",
1369
1392
  { className: "nut-cell-value nut-form-item-body" },
1370
1393
  React__default.createElement("div", { className: "nut-form-item-body-slots" }, childNode),
1371
- React__default.createElement("div", { className: "nut-form-item-body-tips", style: {
1372
- textAlign: errorMessageAlign,
1373
- display: (item == null ? void 0 : item.length) ? "initial" : "none"
1374
- } }, (_a = item == null ? void 0 : item[0]) == null ? void 0 : _a.message)
1394
+ item && item.length > 0 && React__default.createElement("div", { className: "nut-form-item-body-tips", style: { textAlign: errorMessageAlign } }, item[0].message)
1375
1395
  )
1376
1396
  );
1377
1397
  });
@@ -1381,19 +1401,28 @@ class FormItem extends React__default.Component {
1381
1401
  };
1382
1402
  }
1383
1403
  componentDidMount() {
1384
- const { registerField } = this.context.getInternal(SECRET);
1404
+ const { registerField, registerUpdate } = this.context.getInternal(SECRET);
1385
1405
  this.cancelRegister = registerField(this);
1406
+ this.eventOff = registerUpdate(this, this.props.shouldUpdate);
1386
1407
  }
1387
1408
  componentWillUnmount() {
1388
1409
  if (this.cancelRegister) {
1389
1410
  this.cancelRegister();
1390
1411
  }
1412
+ if (this.eventOff) {
1413
+ this.eventOff();
1414
+ }
1391
1415
  }
1392
1416
  render() {
1393
1417
  const { children } = this.props;
1394
1418
  const child = Array.isArray(children) ? children[0] : children;
1395
- const returnChildNode = React__default.cloneElement(child, this.getControlled(child));
1396
- return React__default.createElement(React__default.Fragment, { key: this.state.resetCount }, this.renderLayout(returnChildNode));
1419
+ let returnChildNode;
1420
+ if (!this.props.shouldUpdate) {
1421
+ returnChildNode = React__default.cloneElement(child, this.getControlled(child));
1422
+ } else {
1423
+ returnChildNode = child(this.context);
1424
+ }
1425
+ return React__default.createElement(React__default.Fragment, { key: this.state.resetCount }, this.props.noStyle ? returnChildNode : this.renderLayout(returnChildNode));
1397
1426
  }
1398
1427
  }
1399
1428
  __publicField(FormItem, "defaultProps", defaultProps);
@@ -1,7 +1,7 @@
1
1
  import React__default from "react";
2
2
  import classNames from "classnames";
3
- import { a as GridContext, G as GridItem } from "./griditem.taro-TJDJVeQy.js";
4
- import { p as pxCheck } from "./px-check-JiWLYN2v.js";
3
+ import { a as GridContext, G as GridItem } from "./griditem.taro-BqS5eUJd.js";
4
+ import { p as pxCheck } from "./px-check-D1Xbd9pj.js";
5
5
  const defaultProps = {
6
6
  columns: 4,
7
7
  gap: 0,
@@ -1,7 +1,7 @@
1
1
  import React__default, { useContext } from "react";
2
2
  import classNames from "classnames";
3
- import { u as useConfig } from "./configprovider.taro-q5J2gQbi.js";
4
- import { p as pxCheck } from "./px-check-JiWLYN2v.js";
3
+ import { u as useConfig } from "./configprovider.taro-BXergk04.js";
4
+ import { p as pxCheck } from "./px-check-D1Xbd9pj.js";
5
5
  const gridContext = {
6
6
  onClick: (item, index) => {
7
7
  }
@@ -3,7 +3,7 @@ import Taro from "@tarojs/taro";
3
3
  import { Image as Image$2 } from "@tarojs/components";
4
4
  import { ImageError, Image as Image$1 } from "@nutui/icons-react-taro";
5
5
  import classNames from "classnames";
6
- import { p as pxCheck } from "./px-check-JiWLYN2v.js";
6
+ import { p as pxCheck } from "./px-check-D1Xbd9pj.js";
7
7
  const defaultProps = {
8
8
  src: "",
9
9
  error: true,
@@ -3,12 +3,12 @@ import Taro from "@tarojs/taro";
3
3
  import { Video } from "@tarojs/components";
4
4
  import classNames from "classnames";
5
5
  import { Close } from "@nutui/icons-react-taro";
6
- import { P as Popup } from "./popup.taro-ObEUml4r.js";
7
- import { I as Image } from "./image.taro-FfeikBlO.js";
6
+ import { P as Popup } from "./popup.taro-44018H4d.js";
7
+ import { I as Image } from "./image.taro-W45-Ju0_.js";
8
8
  import InnerSwiper from "./Swiper.js";
9
- import { S as SwiperItem } from "./swiperitem.taro-BC1CE0T-.js";
10
- import { C as ComponentDefaults } from "./typings-buMpDfSR.js";
11
- import { u as usePropsValue } from "./use-props-value-vKr0R0AX.js";
9
+ import { S as SwiperItem } from "./swiperitem.taro-CjcW-KYA.js";
10
+ import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
11
+ import { u as usePropsValue } from "./use-props-value-DvrH7S--.js";
12
12
  const defaultProps = {
13
13
  ...ComponentDefaults,
14
14
  images: [],
@@ -2,8 +2,8 @@ import React__default, { useState, useRef, useEffect } from "react";
2
2
  import classNames from "classnames";
3
3
  import { ScrollView } from "@tarojs/components";
4
4
  import { createSelectorQuery } from "@tarojs/taro";
5
- import { u as useConfig } from "./configprovider.taro-q5J2gQbi.js";
6
- import { C as ComponentDefaults } from "./typings-buMpDfSR.js";
5
+ import { u as useConfig } from "./configprovider.taro-BXergk04.js";
6
+ import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
7
7
  const defaultProps = {
8
8
  ...ComponentDefaults,
9
9
  hasMore: true,
@@ -2,9 +2,9 @@ import React__default, { forwardRef, useRef, useState, useImperativeHandle, useC
2
2
  import { View, Input as Input$1 } from "@tarojs/components";
3
3
  import { MaskClose } from "@nutui/icons-react-taro";
4
4
  import Taro, { getEnv, ENV_TYPE } from "@tarojs/taro";
5
- import { u as useConfig } from "./configprovider.taro-q5J2gQbi.js";
6
- import { C as ComponentDefaults } from "./typings-buMpDfSR.js";
7
- import { u as usePropsValue } from "./use-props-value-vKr0R0AX.js";
5
+ import { u as useConfig } from "./configprovider.taro-BXergk04.js";
6
+ import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
7
+ import { u as usePropsValue } from "./use-props-value-DvrH7S--.js";
8
8
  function trimExtraChar(value, char, regExp) {
9
9
  const index = value.indexOf(char);
10
10
  if (index === -1) {
@@ -145,7 +145,10 @@ const Input = forwardRef((props, ref) => {
145
145
  { className: `${inputClass()} ${className || ""}`, style, onClick: (e) => {
146
146
  onClick && onClick(e);
147
147
  } },
148
- React__default.createElement(Input$1, { ...rest, name, className: "nut-input-native", ref: inputRef, style: { textAlign: align }, type: inputType(type), password: type === "password", maxlength: maxLength, placeholder: placeholder || locale.placeholder, disabled: disabled || readOnly, value, focus: autoFocus, confirmType, onBlur: handleBlur, onFocus: handleFocus, onInput: (e) => {
148
+ React__default.createElement(Input$1, { ...rest, name, className: "nut-input-native", ref: inputRef, style: {
149
+ textAlign: `${// eslint-disable-next-line no-nested-ternary
150
+ align === "right" ? "end" : align === "left" ? "start" : "center"}`
151
+ }, type: inputType(type), password: type === "password", maxlength: maxLength, placeholder: placeholder || locale.placeholder, disabled: disabled || readOnly, value, focus: autoFocus, confirmType, onBlur: handleBlur, onFocus: handleFocus, onInput: (e) => {
149
152
  handleInput(e.currentTarget.value);
150
153
  } }),
151
154
  React__default.createElement(View, { style: {
@@ -0,0 +1,169 @@
1
+ import React__default, { useState, useRef, useEffect } from "react";
2
+ import { Minus, Plus } from "@nutui/icons-react-taro";
3
+ import classNames from "classnames";
4
+ import { u as usePropsValue } from "./use-props-value-DvrH7S--.js";
5
+ import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
6
+ const defaultProps = {
7
+ ...ComponentDefaults,
8
+ disabled: false,
9
+ readOnly: false,
10
+ allowEmpty: false,
11
+ min: 1,
12
+ max: 9999,
13
+ step: 1,
14
+ digits: 0,
15
+ async: false
16
+ };
17
+ const classPrefix = `nut-inputnumber`;
18
+ const InputNumber = (props) => {
19
+ const { children, disabled, min, max, readOnly, value, defaultValue, allowEmpty, digits, step, async, className, style, formatter, onPlus, onMinus, onOverlimit, onBlur, onFocus, onChange, ...restProps } = {
20
+ ...defaultProps,
21
+ ...props
22
+ };
23
+ const classes = classNames(classPrefix, {
24
+ [`${classPrefix}-disabled`]: disabled
25
+ });
26
+ const [focused, setFocused] = useState(false);
27
+ const inputRef = useRef(null);
28
+ useEffect(() => {
29
+ var _a, _b;
30
+ if (focused) {
31
+ (_b = (_a = inputRef.current) == null ? void 0 : _a.select) == null ? void 0 : _b.call(_a);
32
+ }
33
+ }, [focused]);
34
+ const [shadowValue, setShadowValue] = usePropsValue({
35
+ value: typeof value === "string" ? parseFloat(value) : value,
36
+ defaultValue: typeof defaultValue === "string" ? parseFloat(defaultValue) : defaultValue,
37
+ onChange: (value2) => {
38
+ }
39
+ });
40
+ const bound = (value2, min2, max2) => {
41
+ let res = value2;
42
+ if (min2 !== void 0) {
43
+ res = Math.max(Number(min2), res);
44
+ }
45
+ if (max2 !== void 0) {
46
+ res = Math.min(Number(max2), res);
47
+ }
48
+ return res;
49
+ };
50
+ const format = (value2) => {
51
+ if (value2 === null)
52
+ return "";
53
+ if (typeof value2 === "string")
54
+ value2 = parseFloat(value2);
55
+ const fixedValue = bound(value2, Number(min), Number(max));
56
+ if (formatter) {
57
+ return formatter(fixedValue);
58
+ }
59
+ if (digits) {
60
+ return fixedValue.toFixed(digits).toString();
61
+ }
62
+ return fixedValue.toString();
63
+ };
64
+ const [inputValue, setInputValue] = useState(format(shadowValue));
65
+ useEffect(() => {
66
+ if (!focused && !async) {
67
+ setShadowValue(bound(Number(shadowValue), Number(min), Number(max)));
68
+ setInputValue(format(shadowValue));
69
+ }
70
+ }, [focused, shadowValue]);
71
+ useEffect(() => {
72
+ if (async) {
73
+ setShadowValue(bound(Number(value), Number(min), Number(max)));
74
+ setInputValue(format(value));
75
+ }
76
+ }, [value]);
77
+ const calcNextValue = (current, step2, symbol) => {
78
+ const dig = digits + 1;
79
+ return (parseFloat(current || "0") * dig + parseFloat(step2) * dig * symbol) / dig;
80
+ };
81
+ const update = (negative, e) => {
82
+ if (step !== void 0) {
83
+ const shouldOverBoundary = calcNextValue(shadowValue, step, negative ? -1 : 1);
84
+ const nextValue = bound(shouldOverBoundary, Number(min), Number(max));
85
+ setShadowValue(nextValue);
86
+ if (negative ? shouldOverBoundary < min : shouldOverBoundary > max) {
87
+ onOverlimit == null ? void 0 : onOverlimit(e);
88
+ } else {
89
+ onChange == null ? void 0 : onChange(nextValue, e);
90
+ }
91
+ }
92
+ };
93
+ const handleReduce = (e) => {
94
+ if (disabled)
95
+ return;
96
+ onMinus == null ? void 0 : onMinus(e);
97
+ update(true, e);
98
+ };
99
+ const handlePlus = (e) => {
100
+ if (disabled)
101
+ return;
102
+ onPlus == null ? void 0 : onPlus(e);
103
+ update(false, e);
104
+ };
105
+ const parseValue = (text) => {
106
+ if (text === "")
107
+ return null;
108
+ if (text === "-")
109
+ return null;
110
+ return text;
111
+ };
112
+ const handleInputChange = (e) => {
113
+ setInputValue(e.target.value);
114
+ const valueStr = parseValue(e.target.value);
115
+ if (valueStr === null) {
116
+ if (allowEmpty) {
117
+ setShadowValue(null);
118
+ } else {
119
+ setShadowValue(defaultValue);
120
+ }
121
+ } else {
122
+ setShadowValue(valueStr);
123
+ }
124
+ if (!async) {
125
+ onChange == null ? void 0 : onChange(parseFloat(valueStr || "0").toFixed(digits), e);
126
+ }
127
+ };
128
+ const handleFocus = (e) => {
129
+ setFocused(true);
130
+ setInputValue(shadowValue !== void 0 && shadowValue !== null ? bound(Number(shadowValue), Number(min), Number(max)).toString() : "");
131
+ onFocus && onFocus(e);
132
+ };
133
+ const handleBlur = (e) => {
134
+ setFocused(false);
135
+ onBlur && onBlur(e);
136
+ if (async) {
137
+ const valueStr = parseValue(e.target.value);
138
+ onChange == null ? void 0 : onChange(parseFloat(valueStr || "0").toFixed(digits), e);
139
+ }
140
+ };
141
+ return React__default.createElement(
142
+ "div",
143
+ { className: classes, style, ...restProps },
144
+ React__default.createElement(
145
+ "div",
146
+ { className: "nut-input-minus" },
147
+ React__default.createElement(Minus, { className: classNames("nut-inputnumber-icon icon-minus", {
148
+ [`${classPrefix}-icon-disabled`]: shadowValue === min || disabled
149
+ }), onClick: handleReduce })
150
+ ),
151
+ React__default.createElement(
152
+ React__default.Fragment,
153
+ null,
154
+ React__default.createElement("input", { className: "nut-number-input", type: "digit", ref: inputRef, inputMode: "decimal", disabled, readOnly, value: inputValue, onInput: handleInputChange, onBlur: handleBlur, onFocus: handleFocus })
155
+ ),
156
+ React__default.createElement(
157
+ "div",
158
+ { className: "nut-input-add" },
159
+ React__default.createElement(Plus, { className: classNames("nut-inputnumber-icon icon-plus", {
160
+ [`${classPrefix}-icon-disabled`]: shadowValue === max || disabled
161
+ }), onClick: handlePlus })
162
+ )
163
+ );
164
+ };
165
+ InputNumber.defaultProps = defaultProps;
166
+ InputNumber.displayName = "NutInputNumber";
167
+ export {
168
+ InputNumber as I
169
+ };
@@ -1,7 +1,7 @@
1
1
  import React__default from "react";
2
2
  import classNames from "classnames";
3
3
  import { Loading1, Loading as Loading$1 } from "@nutui/icons-react-taro";
4
- import { C as ComponentDefaults } from "./typings-buMpDfSR.js";
4
+ import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
5
5
  const loadingMap = {
6
6
  circular: Loading1,
7
7
  spinner: Loading$1
@@ -1,8 +1,8 @@
1
1
  import React__default, { useRef, useState, useEffect } from "react";
2
2
  import classNames from "classnames";
3
3
  import { ArrowUp, ArrowDown } from "@nutui/icons-react-taro";
4
- import { M as MenuItem } from "./menuitem.taro-9nyTDLpt.js";
5
- import { C as ComponentDefaults } from "./typings-buMpDfSR.js";
4
+ import { M as MenuItem } from "./menuitem.taro-KGs5VqRI.js";
5
+ import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
6
6
  const defaultProps = {
7
7
  ...ComponentDefaults,
8
8
  activeColor: "",
@@ -4,10 +4,10 @@ import { getSystemInfoSync, usePageScroll } from "@tarojs/taro";
4
4
  import { View } from "@tarojs/components";
5
5
  import { CSSTransition } from "react-transition-group";
6
6
  import { Check } from "@nutui/icons-react-taro";
7
- import { O as Overlay } from "./overlay.taro-HsGeVyPh.js";
8
- import { g as getRectByTaro } from "./get-rect-by-taro-piSHvCGp.js";
9
- import { C as ComponentDefaults } from "./typings-buMpDfSR.js";
10
- import { u as usePropsValue } from "./use-props-value-vKr0R0AX.js";
7
+ import { O as Overlay } from "./overlay.taro-ByBhOQNL.js";
8
+ import { g as getRectByTaro } from "./get-rect-by-taro-BnfHyJJb.js";
9
+ import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
10
+ import { u as usePropsValue } from "./use-props-value-DvrH7S--.js";
11
11
  const defaultProps = {
12
12
  ...ComponentDefaults,
13
13
  columns: 1,
@@ -1,8 +1,8 @@
1
1
  import React__default, { useRef, useState, useEffect } from "react";
2
2
  import classNames from "classnames";
3
3
  import { View } from "@tarojs/components";
4
- import { C as ComponentDefaults } from "./typings-buMpDfSR.js";
5
- import { g as getRectByTaro } from "./get-rect-by-taro-piSHvCGp.js";
4
+ import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
5
+ import { g as getRectByTaro } from "./get-rect-by-taro-BnfHyJJb.js";
6
6
  const defaultProps = {
7
7
  ...ComponentDefaults,
8
8
  left: "",
@@ -1,8 +1,8 @@
1
1
  import React__default, { useRef, useState, useMemo, useEffect } from "react";
2
2
  import { Notice, Close } from "@nutui/icons-react-taro";
3
3
  import classNames from "classnames";
4
- import { g as getRectByTaro } from "./get-rect-by-taro-piSHvCGp.js";
5
- import { C as ComponentDefaults } from "./typings-buMpDfSR.js";
4
+ import { g as getRectByTaro } from "./get-rect-by-taro-BnfHyJJb.js";
5
+ import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
6
6
  const defaultProps = {
7
7
  ...ComponentDefaults,
8
8
  direction: "horizontal",
@@ -1,8 +1,8 @@
1
1
  import React__default, { useState, useEffect } from "react";
2
2
  import classNames from "classnames";
3
3
  import { CSSTransition } from "react-transition-group";
4
- import { C as ComponentDefaults } from "./typings-buMpDfSR.js";
5
- import { u as useCustomEvent, a as useCustomEventsPath, c as customEvents } from "./use-custom-event-XvsODK8c.js";
4
+ import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
5
+ import { u as useCustomEvent, a as useCustomEventsPath, c as customEvents } from "./use-custom-event-BFZJeHQI.js";
6
6
  const defaultProps = {
7
7
  ...ComponentDefaults,
8
8
  id: "",
@@ -2,9 +2,9 @@ import React__default, { useMemo, useState } from "react";
2
2
  import classNames from "classnames";
3
3
  import { ArrowDown } from "@nutui/icons-react-taro";
4
4
  import { View } from "@tarojs/components";
5
- import { P as Popup } from "./popup.taro-ObEUml4r.js";
6
- import { u as useConfig } from "./configprovider.taro-q5J2gQbi.js";
7
- import { C as ComponentDefaults } from "./typings-buMpDfSR.js";
5
+ import { P as Popup } from "./popup.taro-44018H4d.js";
6
+ import { u as useConfig } from "./configprovider.taro-BXergk04.js";
7
+ import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
8
8
  const defaultProps = {
9
9
  ...ComponentDefaults,
10
10
  visible: false,