@nutui/nutui-react-taro 2.3.11 → 2.3.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (332) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/esm/ActionSheet.js +1 -13
  3. package/dist/esm/Address.js +1 -21
  4. package/dist/esm/Animate.js +1 -4
  5. package/dist/esm/AnimatingNumbers.js +8 -22
  6. package/dist/esm/Audio.js +1 -15
  7. package/dist/esm/Avatar.js +1 -10
  8. package/dist/esm/AvatarCropper.js +1 -10
  9. package/dist/esm/AvatarGroup.js +1 -4
  10. package/dist/esm/BackTop.js +1 -6
  11. package/dist/esm/Badge.js +1 -4
  12. package/dist/esm/Barrage.js +1 -7
  13. package/dist/esm/Button.js +1 -6
  14. package/dist/esm/Calendar.js +1 -20
  15. package/dist/esm/CalendarCard.js +1 -8
  16. package/dist/esm/CalendarItem.js +1 -12
  17. package/dist/esm/Card.js +1 -7
  18. package/dist/esm/Cascader.js +1 -18
  19. package/dist/esm/Cell.js +1 -5
  20. package/dist/esm/CellGroup.js +1 -4
  21. package/dist/esm/Checkbox.js +1 -7
  22. package/dist/esm/CheckboxGroup.js +1 -7
  23. package/dist/esm/CircleProgress.js +1 -6
  24. package/dist/esm/Col.js +1 -5
  25. package/dist/esm/Collapse.js +1 -8
  26. package/dist/esm/CollapseItem.js +1 -5
  27. package/dist/esm/ConfigProvider.js +4 -6
  28. package/dist/esm/CountDown.js +1 -7
  29. package/dist/esm/DatePicker.js +1 -21
  30. package/dist/esm/Dialog.js +1 -16
  31. package/dist/esm/Divider.js +1 -4
  32. package/dist/esm/Drag.js +1 -4
  33. package/dist/esm/Elevator.js +1 -6
  34. package/dist/esm/Ellipsis.js +1 -7
  35. package/dist/esm/Empty.js +1 -9
  36. package/dist/esm/FixedNav.js +1 -13
  37. package/dist/esm/Form.js +7 -18
  38. package/dist/esm/FormItem.js +1 -6
  39. package/dist/esm/Grid.js +1 -7
  40. package/dist/esm/GridItem.js +1 -6
  41. package/dist/esm/Image.js +1 -7
  42. package/dist/esm/ImagePreview.js +1 -20
  43. package/dist/esm/Indicator.js +1 -3
  44. package/dist/esm/InfiniteLoading.js +1 -8
  45. package/dist/esm/Input.js +1 -11
  46. package/dist/esm/InputNumber.js +1 -7
  47. package/dist/esm/Layout.js +1 -2
  48. package/dist/esm/Loading.js +1 -5
  49. package/dist/esm/Menu.js +1 -15
  50. package/dist/esm/MenuItem.js +1 -14
  51. package/dist/esm/NavBar.js +1 -7
  52. package/dist/esm/NoticeBar.js +1 -7
  53. package/dist/esm/Notify.js +1 -9
  54. package/dist/esm/NumberKeyboard.js +1 -15
  55. package/dist/esm/Overlay.js +1 -9
  56. package/dist/esm/Pagination.js +1 -8
  57. package/dist/esm/Picker.js +1 -19
  58. package/dist/esm/Popover.js +1 -14
  59. package/dist/esm/Popup.js +1 -12
  60. package/dist/esm/Price.js +1 -3
  61. package/dist/esm/Progress.js +1 -4
  62. package/dist/esm/PullToRefresh.js +1 -10
  63. package/dist/esm/Radio.js +1 -7
  64. package/dist/esm/RadioGroup.js +1 -7
  65. package/dist/esm/Range.js +1 -10
  66. package/dist/esm/Rate.js +1 -11
  67. package/dist/esm/Row.js +1 -5
  68. package/dist/esm/SafeArea.js +1 -3
  69. package/dist/esm/SearchBar.js +1 -7
  70. package/dist/esm/ShortPassword.js +1 -17
  71. package/dist/esm/SideNavBar.js +1 -14
  72. package/dist/esm/SideNavBarItem.js +1 -2
  73. package/dist/esm/Signature.js +1 -4
  74. package/dist/esm/Skeleton.js +1 -11
  75. package/dist/esm/Space.js +1 -3
  76. package/dist/esm/Step.js +1 -6
  77. package/dist/esm/Steps.js +1 -5
  78. package/dist/esm/Sticky.js +1 -7
  79. package/dist/esm/SubSideNavBar.js +1 -3
  80. package/dist/esm/Swipe.js +1 -8
  81. package/dist/esm/Swiper.js +9 -11
  82. package/dist/esm/SwiperItem.js +1 -2
  83. package/dist/esm/Switch.js +1 -5
  84. package/dist/esm/TabPane.js +1 -3
  85. package/dist/esm/Tabbar.js +1 -8
  86. package/dist/esm/TabbarItem.js +1 -5
  87. package/dist/esm/Table.js +1 -9
  88. package/dist/esm/Tabs.js +1 -11
  89. package/dist/esm/Tag.js +1 -5
  90. package/dist/esm/TextArea.js +1 -10
  91. package/dist/esm/TimeDetail.js +1 -4
  92. package/dist/esm/TimeSelect.js +1 -16
  93. package/dist/esm/Toast.js +1 -15
  94. package/dist/esm/Tour.js +1 -16
  95. package/dist/esm/TrendArrow.js +1 -4
  96. package/dist/esm/Uploader.js +1 -14
  97. package/dist/esm/Video.js +1 -4
  98. package/dist/esm/VirtualList.js +1 -6
  99. package/dist/esm/WaterMark.js +1 -7
  100. package/dist/esm/{actionsheet.taro-kKhb0Vwt.js → actionsheet.taro-C5BqWoML.js} +9 -17
  101. package/dist/esm/{address.taro-zQuxQEce.js → address.taro-DjlXNWie.js} +19 -44
  102. package/dist/esm/{animate.taro-m67VyUHP.js → animate.taro-Dg9jxZEu.js} +6 -14
  103. package/dist/esm/{audio.taro-dJgj5qIu.js → audio.taro-DXxWGngO.js} +14 -30
  104. package/dist/esm/avatar.taro-a6CX3kxV.js +86 -0
  105. package/dist/esm/{avatarcropper.taro-GIZxzMJ_.js → avatarcropper.taro-BFvFmK4t.js} +47 -90
  106. package/dist/esm/{avatargroup.taro-h6dpv6UX.js → avatargroup.taro-bpT5kPbf.js} +3 -11
  107. package/dist/esm/{backtop.taro-Cfld7ina.js → backtop.taro-B-zl6AEC.js} +4 -15
  108. package/dist/esm/{badge.taro-993L861f.js → badge.taro-CyDqBb9Z.js} +4 -15
  109. package/dist/esm/{barrage.taro-6nbq7wtt.js → barrage.taro-BNOcZsJ1.js} +18 -28
  110. package/dist/esm/{button.taro-3IIFy1M2.js → button.taro-OKGsDVW7.js} +8 -23
  111. package/dist/esm/{calendar.taro-iNNHje7V.js → calendar.taro-DbHJEx4G.js} +12 -39
  112. package/dist/esm/{calendarcard.taro-9s7naGmU.js → calendarcard.taro-BHGCq5zX.js} +10 -14
  113. package/dist/esm/{calendaritem.taro-o6Z8OOGY.js → calendaritem.taro-B8tN2DYa.js} +11 -36
  114. package/dist/esm/{card.taro-p4PTy-IU.js → card.taro-uLorQW97.js} +7 -22
  115. package/dist/esm/{cascader.taro-M2nZWxiB.js → cascader.taro-CpofskUL.js} +47 -83
  116. package/dist/esm/{cell.taro-jD6MoFTj.js → cell.taro-CCnLF6RC.js} +9 -23
  117. package/dist/esm/{cellgroup.taro-08A3XAze.js → cellgroup.taro-Dz69kT6e.js} +5 -12
  118. package/dist/esm/{checkbox.taro-xMxWdpyI.js → checkbox.taro-D9F_HM7f.js} +19 -29
  119. package/dist/esm/{circleprogress.taro-myZgamBw.js → circleprogress.taro-CKSrzt8Q.js} +8 -22
  120. package/dist/esm/{col.taro-5FMpttLE.js → col.taro-C8DUuJYh.js} +5 -13
  121. package/dist/esm/{collapse.taro-sZibDygv.js → collapse.taro-BM0BsN30.js} +5 -14
  122. package/dist/esm/{collapseitem.taro-AaQ_msgd.js → collapseitem.taro-D_m4VEdG.js} +7 -16
  123. package/dist/esm/configprovider.taro-CyU_tvNJ.js +202 -0
  124. package/dist/esm/{countdown.taro-XZlfWBrA.js → countdown.taro-Dfa9kpmZ.js} +8 -18
  125. package/dist/esm/{datepicker.taro-DrXkqJkN.js → datepicker.taro-DshCn7Rn.js} +13 -25
  126. package/dist/esm/{dialog.taro-dmQGDu3o.js → dialog.taro-xsQhsC1V.js} +19 -19
  127. package/dist/esm/{divider.taro-H5fKry4P.js → divider.taro-DRcO_m9e.js} +5 -11
  128. package/dist/esm/{drag.taro-BwcleRuB.js → drag.taro-CcHIO07Y.js} +10 -18
  129. package/dist/esm/{elevator.taro-2nbUM3vH.js → elevator.taro-uhrF7ChY.js} +5 -17
  130. package/dist/esm/{ellipsis.taro-VApVqS_j.js → ellipsis.taro-B_mTyNyk.js} +25 -34
  131. package/dist/esm/{empty.taro-gwvOr1xf.js → empty.taro-Brkv6B2Z.js} +8 -18
  132. package/dist/esm/{fixednav.taro-QVBXysDj.js → fixednav.taro-WTBxWxOo.js} +10 -21
  133. package/dist/esm/formitem.taro-Brz5dj_8.js +330 -0
  134. package/dist/esm/{get-rect-by-taro-piSHvCGp.js → get-rect-by-taro-CSN0TGnD.js} +3 -2
  135. package/dist/esm/{grid.taro-3X-_AhXw.js → grid.taro-BA76RrgT.js} +5 -4
  136. package/dist/esm/{griditem.taro-TJDJVeQy.js → griditem.taro-JLddv9zD.js} +6 -11
  137. package/dist/esm/{image.taro-FfeikBlO.js → image.taro-BLz2WCva.js} +5 -6
  138. package/dist/esm/{imagepreview.taro--fVrJUOE.js → imagepreview.taro-Bb1TkBCV.js} +13 -31
  139. package/dist/esm/{indicator.taro-ZH6MICsS.js → indicator.taro-CpHZtD9p.js} +3 -5
  140. package/dist/esm/{infiniteloading.taro-BO0_y46K.js → infiniteloading.taro-Ccq4bEzk.js} +14 -21
  141. package/dist/esm/{input.taro-xCoGdppk.js → input.taro-BVC8gEuk.js} +14 -31
  142. package/dist/esm/{inputnumber.taro-WPpS0Xl9.js → inputnumber.taro-F3jNGr_V.js} +16 -27
  143. package/dist/esm/{layout.taro-lnN-wB0Y.js → layout.taro-BE2868d6.js} +1 -1
  144. package/dist/esm/{loading.taro-aHN6xLIT.js → loading.taro-CRF1z5wQ.js} +5 -8
  145. package/dist/esm/{menu.taro-ODwHYGFM.js → menu.taro-BAiJPGR7.js} +12 -25
  146. package/dist/esm/{menuitem.taro-9nyTDLpt.js → menuitem.taro-oLv6ZYC5.js} +15 -36
  147. package/dist/esm/{navbar.taro-AuKPDCaW.js → navbar.taro-B8u3DOE4.js} +14 -29
  148. package/dist/esm/{noticebar.taro-bHnEzTvL.js → noticebar.taro-CMdfOp2g.js} +16 -32
  149. package/dist/esm/{notify.taro-mA9KS8qh.js → notify.taro-jP7y9zMU.js} +6 -15
  150. package/dist/esm/{numberkeyboard.taro-bF6VCXry.js → numberkeyboard.taro-B9rMgy7D.js} +9 -16
  151. package/dist/esm/nutui-react.es.js +93 -118
  152. package/dist/esm/{overlay.taro-HsGeVyPh.js → overlay.taro-BaBu-3-F.js} +10 -22
  153. package/dist/esm/{pagination.taro-C4_Ey5KC.js → pagination.taro-DAK6ddag.js} +7 -19
  154. package/dist/esm/{picker.taro-csU3SZPF.js → picker.taro-Cmng9GW9.js} +34 -43
  155. package/dist/esm/{popover.taro-qldQwLPC.js → popover.taro-CcKwnX27.js} +23 -41
  156. package/dist/esm/{popup.taro-ObEUml4r.js → popup.taro-Iy_WQZ-m.js} +8 -32
  157. package/dist/esm/{price.taro-Z1zR8YWV.js → price.taro-UVRHPHRD.js} +5 -16
  158. package/dist/esm/{progress.taro-pStvlrbA.js → progress.taro-BOHykt7X.js} +8 -14
  159. package/dist/esm/{pulltorefresh.taro-2jER8Mat.js → pulltorefresh.taro-BJdQj5sL.js} +31 -47
  160. package/dist/esm/{radio.taro-EKJXMjnX.js → radio.taro-CjJgX9o2.js} +20 -33
  161. package/dist/esm/{range.taro-mDYY3SXA.js → range.taro-BxMDs5Cy.js} +20 -22
  162. package/dist/esm/{rate.taro-_5Mjd_EO.js → rate.taro-BABLqt4h.js} +7 -20
  163. package/dist/esm/{row.taro-IxNlKKQM.js → row.taro-D8chDydP.js} +4 -14
  164. package/dist/esm/{searchbar.taro-hVzdT6nI.js → searchbar.taro-PfVx6o-6.js} +9 -26
  165. package/dist/esm/{shortpassword.taro-JBWXzk6I.js → shortpassword.taro-BXsxku33.js} +9 -19
  166. package/dist/esm/{sidenavbar.taro-8qoGZg5n.js → sidenavbar.taro-eK5vaZPR.js} +7 -13
  167. package/dist/esm/sidenavbaritem.taro-L7HbsCLn.js +14 -0
  168. package/dist/esm/{signature.taro-y3qxnKMv.js → signature.taro-KPm_xs66.js} +11 -19
  169. package/dist/esm/{skeleton.taro--AtiA7MK.js → skeleton.taro-BwIDIf2p.js} +6 -17
  170. package/dist/esm/{space.taro-q3R_yq79.js → space.taro-CZ999etm.js} +1 -4
  171. package/dist/esm/{step.taro-_DEZqFGb.js → step.taro-DLr2GzYk.js} +8 -16
  172. package/dist/esm/steps.taro-C8Yg1Sns.js +28 -0
  173. package/dist/esm/{sticky.taro-p-evMNR-.js → sticky.taro-DRBk3gkQ.js} +12 -15
  174. package/dist/esm/{subsidenavbar.taro-Zy52MDDG.js → subsidenavbar.taro-ByxYpgfP.js} +7 -9
  175. package/dist/esm/{swipe.taro-p2ONOq1o.js → swipe.taro-wm7YWwaj.js} +29 -31
  176. package/dist/esm/{swiperitem.taro-BC1CE0T-.js → swiperitem.taro-8JXI24f0.js} +3 -1
  177. package/dist/esm/{switch.taro-L0BAbMeu.js → switch.taro-D1HgJoJz.js} +6 -13
  178. package/dist/esm/{tabbar.taro-QE0rjSKE.js → tabbar.taro-8_SmJofa.js} +7 -18
  179. package/dist/esm/tabbaritem.taro-Cb-yfOln.js +58 -0
  180. package/dist/esm/{table.taro-0zRh2hq6.js → table.taro-0BcEBB0F.js} +7 -18
  181. package/dist/esm/{tabpane.taro-5k7wWimS.js → tabpane.taro-BAe86j3t.js} +1 -4
  182. package/dist/esm/{tabs.taro-Yj7vgtSg.js → tabs.taro-HgAoKBAc.js} +14 -30
  183. package/dist/esm/{tag.taro-5KC_wObY.js → tag.taro-BsmY5QfN.js} +7 -22
  184. package/dist/esm/{textarea.taro-9zQLTCwU.js → textarea.taro-BJIFCpKb.js} +11 -20
  185. package/dist/esm/{timedetail.taro-TF9Wcblh.js → timedetail.taro-x6Zey1xi.js} +11 -21
  186. package/dist/esm/{timeselect.taro-j8LgSCe5.js → timeselect.taro-BXq4APSJ.js} +20 -33
  187. package/dist/esm/{toast.taro-xnEQSCDJ.js → toast.taro-BIR_7Wgb.js} +8 -26
  188. package/dist/esm/{tour.taro-CGEjzzN_.js → tour.taro-CMagdKcp.js} +7 -24
  189. package/dist/esm/{trendarrow.taro-hsM6-XsQ.js → trendarrow.taro-BHUetKSS.js} +6 -18
  190. package/dist/esm/tslib.es6-BZ8i9Q6l.js +47 -0
  191. package/dist/esm/types/src/packages/button/demos/h5/demo1.d.ts +3 -0
  192. package/dist/esm/types/src/packages/button/demos/h5/demo2.d.ts +3 -0
  193. package/dist/esm/types/src/packages/button/demos/h5/demo3.d.ts +3 -0
  194. package/dist/esm/types/src/packages/button/demos/h5/demo4.d.ts +3 -0
  195. package/dist/esm/types/src/packages/button/demos/h5/demo5.d.ts +3 -0
  196. package/dist/esm/types/src/packages/button/demos/h5/demo6.d.ts +3 -0
  197. package/dist/esm/types/src/packages/button/demos/h5/demo7.d.ts +3 -0
  198. package/dist/esm/types/src/packages/button/demos/h5/demo8.d.ts +3 -0
  199. package/dist/esm/types/src/packages/button/demos/h5/demo9.d.ts +3 -0
  200. package/dist/esm/types/src/packages/button/demos/taro/demo1.d.ts +3 -0
  201. package/dist/esm/types/src/packages/button/demos/taro/demo10.d.ts +3 -0
  202. package/dist/esm/types/src/packages/button/demos/taro/demo2.d.ts +3 -0
  203. package/dist/esm/types/src/packages/button/demos/taro/demo3.d.ts +3 -0
  204. package/dist/esm/types/src/packages/button/demos/taro/demo4.d.ts +3 -0
  205. package/dist/esm/types/src/packages/button/demos/taro/demo5.d.ts +3 -0
  206. package/dist/esm/types/src/packages/button/demos/taro/demo6.d.ts +3 -0
  207. package/dist/esm/types/src/packages/button/demos/taro/demo7.d.ts +3 -0
  208. package/dist/esm/types/src/packages/button/demos/taro/demo8.d.ts +3 -0
  209. package/dist/esm/types/src/packages/button/demos/taro/demo9.d.ts +3 -0
  210. package/dist/esm/types/src/packages/configprovider/configprovider.d.ts +1 -0
  211. package/dist/esm/types/src/packages/configprovider/configprovider.taro.d.ts +1 -0
  212. package/dist/esm/types/src/packages/configprovider/index.d.ts +2 -2
  213. package/dist/esm/types/src/packages/configprovider/index.taro.d.ts +2 -2
  214. package/dist/esm/types/src/packages/inputnumber/inputnumber.taro.d.ts +2 -0
  215. package/dist/esm/{uploader.taro-bRF02TR9.js → uploader.taro-CuaIVvya.js} +47 -99
  216. package/dist/esm/{use-custom-event-XvsODK8c.js → use-custom-event-DuP4onEm.js} +5 -5
  217. package/dist/esm/{use-props-value-vKr0R0AX.js → use-props-value-SH9krhkx.js} +2 -2
  218. package/dist/esm/{video.taro-csvHwS2v.js → video.taro-CEMVfhCS.js} +3 -5
  219. package/dist/esm/{virtuallist.taro-AeTVtFFa.js → virtuallist.taro-C5vZAyza.js} +7 -17
  220. package/dist/esm/{watermark.taro-nvSmcwu-.js → watermark.taro-BxM8VfXb.js} +5 -30
  221. package/dist/locales/base.js +1 -1
  222. package/dist/locales/en-US.js +1 -1
  223. package/dist/locales/id-ID.js +1 -1
  224. package/dist/locales/tr-TR.js +1 -1
  225. package/dist/locales/zh-CN.js +1 -1
  226. package/dist/locales/zh-TW.js +1 -1
  227. package/dist/locales/zh-UG.js +1 -1
  228. package/dist/nutui.react.es.js +305 -332
  229. package/dist/nutui.react.umd.js +306 -333
  230. package/dist/style.mjs +1 -1
  231. package/dist/styles/variables-jmapp.scss +4 -0
  232. package/dist/types/index.d.ts +98 -98
  233. package/dist/types/packages/actionsheet/actionsheet.d.ts +1 -1
  234. package/dist/types/packages/actionsheet/actionsheet.taro.d.ts +1 -1
  235. package/dist/types/packages/address/address.d.ts +1 -1
  236. package/dist/types/packages/address/address.taro.d.ts +1 -1
  237. package/dist/types/packages/address/customRender.d.ts +1 -1
  238. package/dist/types/packages/address/customRender.taro.d.ts +1 -1
  239. package/dist/types/packages/avatar/avatar.d.ts +1 -1
  240. package/dist/types/packages/avatar/avatar.taro.d.ts +1 -1
  241. package/dist/types/packages/button/demos/h5/demo1.d.ts +3 -0
  242. package/dist/types/packages/button/demos/h5/demo2.d.ts +3 -0
  243. package/dist/types/packages/button/demos/h5/demo3.d.ts +3 -0
  244. package/dist/types/packages/button/demos/h5/demo4.d.ts +3 -0
  245. package/dist/types/packages/button/demos/h5/demo5.d.ts +3 -0
  246. package/dist/types/packages/button/demos/h5/demo6.d.ts +3 -0
  247. package/dist/types/packages/button/demos/h5/demo7.d.ts +3 -0
  248. package/dist/types/packages/button/demos/h5/demo8.d.ts +3 -0
  249. package/dist/types/packages/button/demos/h5/demo9.d.ts +3 -0
  250. package/dist/types/packages/button/demos/taro/demo1.d.ts +3 -0
  251. package/dist/types/packages/button/demos/taro/demo10.d.ts +3 -0
  252. package/dist/types/packages/button/demos/taro/demo2.d.ts +3 -0
  253. package/dist/types/packages/button/demos/taro/demo3.d.ts +3 -0
  254. package/dist/types/packages/button/demos/taro/demo4.d.ts +3 -0
  255. package/dist/types/packages/button/demos/taro/demo5.d.ts +3 -0
  256. package/dist/types/packages/button/demos/taro/demo6.d.ts +3 -0
  257. package/dist/types/packages/button/demos/taro/demo7.d.ts +3 -0
  258. package/dist/types/packages/button/demos/taro/demo8.d.ts +3 -0
  259. package/dist/types/packages/button/demos/taro/demo9.d.ts +3 -0
  260. package/dist/types/packages/calendaritem/calendaritem.d.ts +1 -1
  261. package/dist/types/packages/calendaritem/calendaritem.taro.d.ts +1 -1
  262. package/dist/types/packages/cascader/cascader.d.ts +1 -1
  263. package/dist/types/packages/cascader/cascader.taro.d.ts +1 -1
  264. package/dist/types/packages/cell/cell.d.ts +1 -1
  265. package/dist/types/packages/cell/cell.taro.d.ts +1 -1
  266. package/dist/types/packages/checkbox/checkbox.d.ts +2 -2
  267. package/dist/types/packages/checkbox/checkbox.taro.d.ts +2 -2
  268. package/dist/types/packages/checkboxgroup/checkboxgroup.d.ts +2 -2
  269. package/dist/types/packages/checkboxgroup/checkboxgroup.taro.d.ts +2 -2
  270. package/dist/types/packages/configprovider/configprovider.d.ts +1 -0
  271. package/dist/types/packages/configprovider/configprovider.taro.d.ts +1 -0
  272. package/dist/types/packages/configprovider/index.d.ts +2 -2
  273. package/dist/types/packages/configprovider/index.taro.d.ts +2 -2
  274. package/dist/types/packages/datepicker/datepicker.d.ts +1 -1
  275. package/dist/types/packages/datepicker/datepicker.taro.d.ts +1 -1
  276. package/dist/types/packages/dialog/dialogwrap.d.ts +1 -1
  277. package/dist/types/packages/empty/empty.d.ts +1 -1
  278. package/dist/types/packages/empty/empty.taro.d.ts +15 -3
  279. package/dist/types/packages/fixednav/fixednav.d.ts +1 -1
  280. package/dist/types/packages/fixednav/fixednav.taro.d.ts +1 -1
  281. package/dist/types/packages/form/form.d.ts +1 -1
  282. package/dist/types/packages/form/form.taro.d.ts +1 -1
  283. package/dist/types/packages/form/index.d.ts +1 -1
  284. package/dist/types/packages/form/index.taro.d.ts +1 -1
  285. package/dist/types/packages/inputnumber/inputnumber.taro.d.ts +6 -0
  286. package/dist/types/packages/menu/menu.d.ts +1 -1
  287. package/dist/types/packages/menu/menu.taro.d.ts +1 -1
  288. package/dist/types/packages/numberkeyboard/numberkeyboard.d.ts +1 -1
  289. package/dist/types/packages/numberkeyboard/numberkeyboard.taro.d.ts +1 -1
  290. package/dist/types/packages/nutui.react.build.d.ts +98 -98
  291. package/dist/types/packages/nutui.react.d.ts +98 -98
  292. package/dist/types/packages/nutui.react.taro.d.ts +98 -98
  293. package/dist/types/packages/picker/picker.d.ts +1 -1
  294. package/dist/types/packages/picker/picker.taro.d.ts +1 -1
  295. package/dist/types/packages/popover/popover.d.ts +1 -1
  296. package/dist/types/packages/popover/popover.taro.d.ts +1 -1
  297. package/dist/types/packages/popup/popup.d.ts +1 -1
  298. package/dist/types/packages/popup/popup.taro.d.ts +1 -1
  299. package/dist/types/packages/radio/radio.d.ts +2 -2
  300. package/dist/types/packages/radio/radio.taro.d.ts +2 -2
  301. package/dist/types/packages/shortpassword/shortpassword.d.ts +1 -1
  302. package/dist/types/packages/shortpassword/shortpassword.taro.d.ts +1 -1
  303. package/dist/types/packages/swiper/index.d.ts +1 -1
  304. package/dist/types/packages/swiper/index.taro.d.ts +1 -1
  305. package/dist/types/packages/tabs/tabs.d.ts +1 -1
  306. package/dist/types/packages/tabs/tabs.taro.d.ts +1 -1
  307. package/dist/types/packages/timedetail/timedetail.d.ts +1 -1
  308. package/dist/types/packages/timedetail/timedetail.taro.d.ts +1 -1
  309. package/dist/types/packages/tour/tour.d.ts +1 -1
  310. package/dist/types/packages/tour/tour.taro.d.ts +1 -1
  311. package/package.json +5 -1
  312. package/dist/esm/avatar.taro-7ltbzIdY.js +0 -109
  313. package/dist/esm/configprovider.taro-q5J2gQbi.js +0 -486
  314. package/dist/esm/formitem.taro-viaUkMmm.js +0 -1435
  315. package/dist/esm/index-oitVOJp9.js +0 -661
  316. package/dist/esm/sidenavbaritem.taro-AxJNRAdi.js +0 -13
  317. package/dist/esm/steps.taro-PH0qWPla.js +0 -32
  318. package/dist/esm/tabbaritem.taro-t9C07OYX.js +0 -73
  319. /package/dist/esm/{UserContext-9BL0cq8w.js → UserContext-BlM0373q.js} +0 -0
  320. /package/dist/esm/{context-6mGEMLsx.js → context-4T-L2x0_.js} +0 -0
  321. /package/dist/esm/{context-9BL0cq8w.js → context-BlM0373q.js} +0 -0
  322. /package/dist/esm/{date-nxKOxj5-.js → date-D0pth0qC.js} +0 -0
  323. /package/dist/esm/{get-scroll-parent-uywvoQMl.js → get-scroll-parent-DB1VRg11.js} +0 -0
  324. /package/dist/esm/{index-YvHA__3D.js → index-DeNfBlua.js} +0 -0
  325. /package/dist/esm/{pad-zero-iY-0-oys.js → pad-zero-B2OUQfh7.js} +0 -0
  326. /package/dist/esm/{px-check-JiWLYN2v.js → px-check-D1Xbd9pj.js} +0 -0
  327. /package/dist/esm/{raf-UzmDvMUW.js → raf-zwv-SBjP.js} +0 -0
  328. /package/dist/esm/{safearea.taro-afu_mY7g.js → safearea.taro-BMQHr7tu.js} +0 -0
  329. /package/dist/esm/{typings-buMpDfSR.js → typings-DV9RBfhj.js} +0 -0
  330. /package/dist/esm/{use-force-update-0oEVD8Nr.js → use-force-update-CudFjCsy.js} +0 -0
  331. /package/dist/esm/{use-refs-IdrY0ww3.js → use-refs-BeEmziIR.js} +0 -0
  332. /package/dist/esm/{use-touch-BUFdkOSA.js → use-touch-OfEaR5qi.js} +0 -0
@@ -1,10 +1,11 @@
1
+ import { _ as __rest } from "./tslib.es6-BZ8i9Q6l.js";
1
2
  import React__default, { forwardRef, useRef, useState, useImperativeHandle, useCallback } from "react";
2
3
  import { View, Input as Input$1 } from "@tarojs/components";
3
4
  import { MaskClose } from "@nutui/icons-react-taro";
4
5
  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";
6
+ import { u as useConfig } from "./configprovider.taro-CyU_tvNJ.js";
7
+ import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
8
+ import { u as usePropsValue } from "./use-props-value-SH9krhkx.js";
8
9
  function trimExtraChar(value, char, regExp) {
9
10
  const index = value.indexOf(char);
10
11
  if (index === -1) {
@@ -29,28 +30,10 @@ function formatNumber(value, allowDot = true, allowMinus = true) {
29
30
  const regExp = allowDot ? /[^-0-9.]/g : /[^-0-9]/g;
30
31
  return value.replace(regExp, "");
31
32
  }
32
- const defaultProps = {
33
- ...ComponentDefaults,
34
- type: "text",
35
- name: "",
36
- placeholder: "",
37
- confirmType: "done",
38
- align: "left",
39
- required: false,
40
- disabled: false,
41
- readOnly: false,
42
- maxLength: 9999,
43
- clearable: false,
44
- clearIcon: null,
45
- formatTrigger: "onChange",
46
- autoFocus: false
47
- };
33
+ const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { type: "text", name: "", placeholder: "", confirmType: "done", align: "left", required: false, disabled: false, readOnly: false, maxLength: 9999, clearable: false, clearIcon: null, formatTrigger: "onChange", autoFocus: false });
48
34
  const Input = forwardRef((props, ref) => {
49
35
  const { locale } = useConfig();
50
- const { type, name, placeholder, align, disabled, readOnly, maxLength, clearable, clearIcon, formatTrigger, autoFocus, style, className, onChange, onFocus, onBlur, onClear, formatter, onClick, confirmType, defaultValue, value: _value, ...rest } = {
51
- ...defaultProps,
52
- ...props
53
- };
36
+ const _a = Object.assign(Object.assign({}, defaultProps), props), { type, name, placeholder, align, disabled, readOnly, maxLength, clearable, clearIcon, formatTrigger, autoFocus, style, className, onChange, onFocus, onBlur, onClear, formatter, onClick, confirmType, defaultValue, value: _value } = _a, rest = __rest(_a, ["type", "name", "placeholder", "align", "disabled", "readOnly", "maxLength", "clearable", "clearIcon", "formatTrigger", "autoFocus", "style", "className", "onChange", "onFocus", "onBlur", "onClear", "formatter", "onClick", "confirmType", "defaultValue", "value"]);
54
37
  const [value, setValue] = usePropsValue({
55
38
  value: props.value,
56
39
  defaultValue: props.defaultValue,
@@ -65,12 +48,12 @@ const Input = forwardRef((props, ref) => {
65
48
  setValue("");
66
49
  },
67
50
  focus: () => {
68
- var _a;
69
- (_a = inputRef.current) == null ? void 0 : _a.focus();
51
+ var _a2;
52
+ (_a2 = inputRef.current) === null || _a2 === void 0 ? void 0 : _a2.focus();
70
53
  },
71
54
  blur: () => {
72
- var _a;
73
- (_a = inputRef.current) == null ? void 0 : _a.blur();
55
+ var _a2;
56
+ (_a2 = inputRef.current) === null || _a2 === void 0 ? void 0 : _a2.blur();
74
57
  },
75
58
  get nativeElement() {
76
59
  return inputRef.current;
@@ -108,7 +91,7 @@ const Input = forwardRef((props, ref) => {
108
91
  const val = event.target.value;
109
92
  onFocus && onFocus(val);
110
93
  } else {
111
- onFocus == null ? void 0 : onFocus(value);
94
+ onFocus === null || onFocus === void 0 ? void 0 : onFocus(value);
112
95
  }
113
96
  setActive(true);
114
97
  };
@@ -145,12 +128,12 @@ const Input = forwardRef((props, ref) => {
145
128
  { className: `${inputClass()} ${className || ""}`, style, onClick: (e) => {
146
129
  onClick && onClick(e);
147
130
  } },
148
- React__default.createElement(Input$1, { ...rest, name, className: "nut-input-native", ref: inputRef, style: {
131
+ React__default.createElement(Input$1, Object.assign({}, rest, { name, className: "nut-input-native", ref: inputRef, style: {
149
132
  textAlign: `${// eslint-disable-next-line no-nested-ternary
150
133
  align === "right" ? "end" : align === "left" ? "start" : "center"}`
151
134
  }, 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) => {
152
135
  handleInput(e.currentTarget.value);
153
- } }),
136
+ } })),
154
137
  React__default.createElement(View, { style: {
155
138
  display: clearable && !readOnly && active && value.length > 0 ? "flex" : "none",
156
139
  alignItems: "center"
@@ -158,7 +141,7 @@ const Input = forwardRef((props, ref) => {
158
141
  e.stopPropagation();
159
142
  if (!disabled) {
160
143
  setValue("");
161
- onClear == null ? void 0 : onClear("");
144
+ onClear === null || onClear === void 0 ? void 0 : onClear("");
162
145
  }
163
146
  } }, clearIcon || React__default.createElement(MaskClose, { className: "nut-input-clear" }))
164
147
  );
@@ -1,39 +1,28 @@
1
+ import { _ as __rest } from "./tslib.es6-BZ8i9Q6l.js";
1
2
  import React__default, { useState, useRef, useEffect } from "react";
2
3
  import { Minus, Plus } from "@nutui/icons-react-taro";
3
4
  import classNames from "classnames";
4
- import { u as usePropsValue } from "./use-props-value-vKr0R0AX.js";
5
- import { C as ComponentDefaults } from "./typings-buMpDfSR.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
- };
5
+ import { u as usePropsValue } from "./use-props-value-SH9krhkx.js";
6
+ import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
7
+ const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { disabled: false, readOnly: false, allowEmpty: false, min: 1, max: 9999, type: "digit", step: 1, digits: 0, async: false });
17
8
  const classPrefix = `nut-inputnumber`;
18
9
  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
- };
10
+ const _a = Object.assign(Object.assign({}, defaultProps), props), { children, disabled, min, max, type, readOnly, value, defaultValue, allowEmpty, digits, step, async, className, style, formatter, onPlus, onMinus, onOverlimit, onBlur, onFocus, onChange } = _a, restProps = __rest(_a, ["children", "disabled", "min", "max", "type", "readOnly", "value", "defaultValue", "allowEmpty", "digits", "step", "async", "className", "style", "formatter", "onPlus", "onMinus", "onOverlimit", "onBlur", "onFocus", "onChange"]);
23
11
  const classes = classNames(classPrefix, {
24
12
  [`${classPrefix}-disabled`]: disabled
25
13
  });
26
14
  const [focused, setFocused] = useState(false);
27
15
  const inputRef = useRef(null);
28
16
  useEffect(() => {
29
- var _a, _b;
17
+ var _a2, _b;
30
18
  if (focused) {
31
- (_b = (_a = inputRef.current) == null ? void 0 : _a.select) == null ? void 0 : _b.call(_a);
19
+ (_b = (_a2 = inputRef.current) === null || _a2 === void 0 ? void 0 : _a2.select) === null || _b === void 0 ? void 0 : _b.call(_a2);
32
20
  }
33
21
  }, [focused]);
34
22
  const [shadowValue, setShadowValue] = usePropsValue({
35
23
  value: typeof value === "string" ? parseFloat(value) : value,
36
24
  defaultValue: typeof defaultValue === "string" ? parseFloat(defaultValue) : defaultValue,
25
+ finalValue: 0,
37
26
  onChange: (value2) => {
38
27
  }
39
28
  });
@@ -84,22 +73,22 @@ const InputNumber = (props) => {
84
73
  const nextValue = bound(shouldOverBoundary, Number(min), Number(max));
85
74
  setShadowValue(nextValue);
86
75
  if (negative ? shouldOverBoundary < min : shouldOverBoundary > max) {
87
- onOverlimit == null ? void 0 : onOverlimit(e);
76
+ onOverlimit === null || onOverlimit === void 0 ? void 0 : onOverlimit(e);
88
77
  } else {
89
- onChange == null ? void 0 : onChange(nextValue, e);
78
+ onChange === null || onChange === void 0 ? void 0 : onChange(nextValue, e);
90
79
  }
91
80
  }
92
81
  };
93
82
  const handleReduce = (e) => {
94
83
  if (disabled)
95
84
  return;
96
- onMinus == null ? void 0 : onMinus(e);
85
+ onMinus === null || onMinus === void 0 ? void 0 : onMinus(e);
97
86
  update(true, e);
98
87
  };
99
88
  const handlePlus = (e) => {
100
89
  if (disabled)
101
90
  return;
102
- onPlus == null ? void 0 : onPlus(e);
91
+ onPlus === null || onPlus === void 0 ? void 0 : onPlus(e);
103
92
  update(false, e);
104
93
  };
105
94
  const parseValue = (text) => {
@@ -122,7 +111,7 @@ const InputNumber = (props) => {
122
111
  setShadowValue(valueStr);
123
112
  }
124
113
  if (!async) {
125
- onChange == null ? void 0 : onChange(parseFloat(valueStr || "0").toFixed(digits), e);
114
+ onChange === null || onChange === void 0 ? void 0 : onChange(parseFloat(valueStr || "0").toFixed(digits), e);
126
115
  }
127
116
  };
128
117
  const handleFocus = (e) => {
@@ -135,12 +124,12 @@ const InputNumber = (props) => {
135
124
  onBlur && onBlur(e);
136
125
  if (async) {
137
126
  const valueStr = parseValue(e.target.value);
138
- onChange == null ? void 0 : onChange(parseFloat(valueStr || "0").toFixed(digits), e);
127
+ onChange === null || onChange === void 0 ? void 0 : onChange(parseFloat(valueStr || "0").toFixed(digits), e);
139
128
  }
140
129
  };
141
130
  return React__default.createElement(
142
131
  "div",
143
- { className: classes, style, ...restProps },
132
+ Object.assign({ className: classes, style }, restProps),
144
133
  React__default.createElement(
145
134
  "div",
146
135
  { className: "nut-input-minus" },
@@ -151,7 +140,7 @@ const InputNumber = (props) => {
151
140
  React__default.createElement(
152
141
  React__default.Fragment,
153
142
  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 })
143
+ React__default.createElement("input", { className: "nut-number-input", type, ref: inputRef, inputMode: type === "digit" ? "decimal" : "numeric", disabled, readOnly, value: inputValue, onInput: handleInputChange, onBlur: handleBlur, onFocus: handleFocus })
155
144
  ),
156
145
  React__default.createElement(
157
146
  "div",
@@ -1,7 +1,7 @@
1
1
  import React__default from "react";
2
2
  const defaultProps = {};
3
3
  const Layout = (props) => {
4
- ({ ...defaultProps, ...props });
4
+ Object.assign(Object.assign({}, defaultProps), props);
5
5
  return React__default.createElement("div", { className: "nut-layout" }, "Layout");
6
6
  };
7
7
  Layout.defaultProps = defaultProps;
@@ -1,22 +1,19 @@
1
+ import { _ as __rest } from "./tslib.es6-BZ8i9Q6l.js";
1
2
  import React__default from "react";
2
3
  import classNames from "classnames";
3
4
  import { Loading1, Loading as Loading$1 } from "@nutui/icons-react-taro";
4
- import { C as ComponentDefaults } from "./typings-buMpDfSR.js";
5
+ import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
5
6
  const loadingMap = {
6
7
  circular: Loading1,
7
8
  spinner: Loading$1
8
9
  };
9
- const defaultProps = {
10
- ...ComponentDefaults,
10
+ const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), {
11
11
  // 对比一下,个人感觉还是Loading1比较好看一些,所以用它作为了默认的loading图标
12
12
  type: "circular",
13
13
  direction: "horizontal"
14
- };
14
+ });
15
15
  const Loading = (props) => {
16
- const { className, style, children, direction, icon, ...rest } = {
17
- ...defaultProps,
18
- ...props
19
- };
16
+ const _a = Object.assign(Object.assign({}, defaultProps), props), { className, style, children, direction, icon } = _a, rest = __rest(_a, ["className", "style", "children", "direction", "icon"]);
20
17
  const classPrefix = "nut-loading";
21
18
  const CurLoadingIcon = loadingMap[rest.type] || Loading1;
22
19
  return React__default.createElement(
@@ -1,26 +1,14 @@
1
+ import { _ as __rest } from "./tslib.es6-BZ8i9Q6l.js";
1
2
  import React__default, { useRef, useState, useEffect } from "react";
2
3
  import classNames from "classnames";
3
4
  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";
6
- const defaultProps = {
7
- ...ComponentDefaults,
8
- activeColor: "",
9
- closeOnOverlayClick: true,
10
- scrollFixed: false,
11
- lockScroll: true,
12
- overlay: true,
13
- icon: null,
14
- onOpen: (index, from) => {
15
- },
16
- onClose: (index, from) => {
17
- }
18
- };
5
+ import { M as MenuItem } from "./menuitem.taro-oLv6ZYC5.js";
6
+ import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
7
+ const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { activeColor: "", closeOnOverlayClick: true, scrollFixed: false, lockScroll: true, overlay: true, icon: null, onOpen: (index, from) => {
8
+ }, onClose: (index, from) => {
9
+ } });
19
10
  const Menu = (props) => {
20
- const { className, icon, scrollFixed, lockScroll, overlay, closeOnOverlayClick, children, activeColor, onClose, onOpen, ...rest } = {
21
- ...defaultProps,
22
- ...props
23
- };
11
+ const _a = Object.assign(Object.assign({}, defaultProps), props), { className, icon, scrollFixed, lockScroll, overlay, closeOnOverlayClick, children, activeColor, onClose, onOpen } = _a, rest = __rest(_a, ["className", "icon", "scrollFixed", "lockScroll", "overlay", "closeOnOverlayClick", "children", "activeColor", "onClose", "onOpen"]);
24
12
  const menuRef = useRef(null);
25
13
  const [isScrollFixed, setIsScrollFixed] = useState(false);
26
14
  const getScrollTop = (el) => {
@@ -61,8 +49,7 @@ const Menu = (props) => {
61
49
  };
62
50
  const cloneChildren = () => {
63
51
  return React__default.Children.map(children, (child, index) => {
64
- return React__default.cloneElement(child, {
65
- ...child.props,
52
+ return React__default.cloneElement(child, Object.assign(Object.assign({}, child.props), {
66
53
  show: showMenuItem[index],
67
54
  index,
68
55
  activeColor,
@@ -75,14 +62,14 @@ const Menu = (props) => {
75
62
  hideMenuItem,
76
63
  menuRef
77
64
  }
78
- });
65
+ }));
79
66
  });
80
67
  };
81
68
  const menuTitle = () => {
82
69
  return React__default.Children.map(children, (child, index) => {
83
70
  if (React__default.isValidElement(child)) {
84
71
  const { title, options, value, defaultValue, disabled, direction } = child.props;
85
- const selected = options == null ? void 0 : options.filter((option) => option.value === (value !== void 0 ? value : defaultValue));
72
+ const selected = options === null || options === void 0 ? void 0 : options.filter((option) => option.value === (value !== void 0 ? value : defaultValue));
86
73
  const finallyTitle = () => {
87
74
  if (title)
88
75
  return title;
@@ -111,9 +98,9 @@ const Menu = (props) => {
111
98
  };
112
99
  return React__default.createElement(
113
100
  "div",
114
- { ...rest, className: classNames(`nut-menu`, className, {
101
+ Object.assign({}, rest, { className: classNames(`nut-menu`, className, {
115
102
  "scroll-fixed": isScrollFixed
116
- }), ref: menuRef },
103
+ }), ref: menuRef }),
117
104
  React__default.createElement("div", { className: classNames("nut-menu-bar", {
118
105
  opened: showMenuItem.includes(true)
119
106
  }) }, menuTitle()),
@@ -1,28 +1,17 @@
1
+ import { a as __awaiter } from "./tslib.es6-BZ8i9Q6l.js";
1
2
  import React__default, { forwardRef, useState, useEffect, useMemo, useCallback, useImperativeHandle } from "react";
2
3
  import classNames from "classnames";
3
4
  import { getSystemInfoSync, usePageScroll } from "@tarojs/taro";
4
5
  import { View } from "@tarojs/components";
5
6
  import { CSSTransition } from "react-transition-group";
6
7
  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";
11
- const defaultProps = {
12
- ...ComponentDefaults,
13
- columns: 1,
14
- direction: "down",
15
- icon: null,
16
- closeOnClickAway: true,
17
- activeTitleClass: "",
18
- inactiveTitleClass: "",
19
- onChange: (value) => void 0
20
- };
8
+ import { O as Overlay } from "./overlay.taro-BaBu-3-F.js";
9
+ import { g as getRectByTaro } from "./get-rect-by-taro-CSN0TGnD.js";
10
+ import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
11
+ import { u as usePropsValue } from "./use-props-value-SH9krhkx.js";
12
+ const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { columns: 1, direction: "down", icon: null, closeOnClickAway: true, activeTitleClass: "", inactiveTitleClass: "", onChange: (value) => void 0 });
21
13
  const MenuItem = forwardRef((props, ref) => {
22
- const { className, style, options, value, defaultValue, columns, title, icon, direction, onChange, activeTitleClass, inactiveTitleClass, closeOnClickAway, children, activeColor, show, parent, index } = {
23
- ...defaultProps,
24
- ...props
25
- };
14
+ const { className, style, options, value, defaultValue, columns, title, icon, direction, onChange, activeTitleClass, inactiveTitleClass, closeOnClickAway, children, activeColor, show, parent, index } = Object.assign(Object.assign({}, defaultProps), props);
26
15
  const [showPopup, setShowPopup] = useState(show);
27
16
  const [innerValue, setValue] = usePropsValue({
28
17
  defaultValue,
@@ -30,7 +19,7 @@ const MenuItem = forwardRef((props, ref) => {
30
19
  finalValue: void 0,
31
20
  onChange: (v) => {
32
21
  const [option] = options.filter((o) => o.value === v);
33
- onChange == null ? void 0 : onChange(option);
22
+ onChange === null || onChange === void 0 ? void 0 : onChange(option);
34
23
  }
35
24
  });
36
25
  useEffect(() => {
@@ -81,14 +70,14 @@ const MenuItem = forwardRef((props, ref) => {
81
70
  height: 0
82
71
  });
83
72
  const getParentOffset = () => {
84
- setTimeout(async () => {
73
+ setTimeout(() => __awaiter(void 0, void 0, void 0, function* () {
85
74
  const p = parent.menuRef.current;
86
- const rect = await getRectByTaro(p);
75
+ const rect = yield getRectByTaro(p);
87
76
  setPosition({
88
77
  height: rect.height,
89
78
  top: rect.top
90
79
  });
91
- }, 100);
80
+ }), 100);
92
81
  };
93
82
  const isShow = () => {
94
83
  if (showPopup)
@@ -108,16 +97,9 @@ const MenuItem = forwardRef((props, ref) => {
108
97
  };
109
98
  const placeholderStyle = () => {
110
99
  if (direction === "down") {
111
- return {
112
- height: `${position.top + position.height}px`,
113
- ...isShow()
114
- };
100
+ return Object.assign({ height: `${position.top + position.height}px` }, isShow());
115
101
  }
116
- return {
117
- height: `${getSystemInfoSync().windowHeight - position.top}px`,
118
- top: "auto",
119
- ...isShow()
120
- };
102
+ return Object.assign({ height: `${getSystemInfoSync().windowHeight - position.top}px`, top: "auto" }, isShow());
121
103
  };
122
104
  return React__default.createElement(
123
105
  View,
@@ -133,17 +115,14 @@ const MenuItem = forwardRef((props, ref) => {
133
115
  { className: classNames({
134
116
  "nut-menu-container-wrap": direction === "down",
135
117
  "nut-menu-container-wrap-up": direction !== "down"
136
- }, className), style: {
137
- ...style,
138
- ...isShow()
139
- } },
118
+ }, className), style: Object.assign(Object.assign({}, style), isShow()) },
140
119
  React__default.createElement(
141
120
  CSSTransition,
142
121
  { in: showPopup, timeout: 100, classNames: direction === "down" ? "nut-menu-container-down" : "nut-menu-container-up" },
143
122
  React__default.createElement(
144
123
  View,
145
124
  { className: "nut-menu-container-content" },
146
- options == null ? void 0 : options.map((item, index2) => {
125
+ options === null || options === void 0 ? void 0 : options.map((item, index2) => {
147
126
  return React__default.createElement(
148
127
  View,
149
128
  { className: `nut-menu-container-item ${classNames({
@@ -1,43 +1,28 @@
1
+ import { a as __awaiter } from "./tslib.es6-BZ8i9Q6l.js";
1
2
  import React__default, { useRef, useState, useEffect } from "react";
2
3
  import classNames from "classnames";
3
4
  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";
6
- const defaultProps = {
7
- ...ComponentDefaults,
8
- left: "",
9
- right: "",
10
- titleAlign: "center",
11
- back: "",
12
- fixed: false,
13
- safeAreaInsetTop: false,
14
- placeholder: false,
15
- zIndex: 10
16
- };
5
+ import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
6
+ import { g as getRectByTaro } from "./get-rect-by-taro-CSN0TGnD.js";
7
+ const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { left: "", right: "", titleAlign: "center", back: "", fixed: false, safeAreaInsetTop: false, placeholder: false, zIndex: 10 });
17
8
  const NavBar = (props) => {
18
- const { right, left, titleAlign, className, style, back, fixed, safeAreaInsetTop, placeholder, zIndex, onBackClick } = {
19
- ...defaultProps,
20
- ...props
21
- };
9
+ const { right, left, titleAlign, className, style, back, fixed, safeAreaInsetTop, placeholder, zIndex, onBackClick } = Object.assign(Object.assign({}, defaultProps), props);
22
10
  const classPrefix = "nut-navbar";
23
11
  const children = Array.isArray(props.children) ? props.children : [props.children];
24
12
  const styles = () => {
25
- return {
26
- ...style,
27
- zIndex
28
- };
13
+ return Object.assign(Object.assign({}, style), { zIndex });
29
14
  };
30
15
  const leftRef = useRef(null);
31
16
  const rightRef = useRef(null);
32
17
  const wrapperRef = useRef(null);
33
18
  const [contentWidth, setContentWidth] = useState("50%");
34
- const getNodeWidth = async (node) => {
19
+ const getNodeWidth = (node) => __awaiter(void 0, void 0, void 0, function* () {
35
20
  if (node) {
36
- const refe = await getRectByTaro(node);
21
+ const refe = yield getRectByTaro(node);
37
22
  return refe.width;
38
23
  }
39
24
  return 0;
40
- };
25
+ });
41
26
  useEffect(() => {
42
27
  if (titleAlign === "left") {
43
28
  return;
@@ -45,10 +30,10 @@ const NavBar = (props) => {
45
30
  if (!(back || left || right)) {
46
31
  setContentWidth("100%");
47
32
  }
48
- const init = async () => {
49
- const leftRectWidth = await getNodeWidth(leftRef == null ? void 0 : leftRef.current);
50
- const rightRectWidth = await getNodeWidth(rightRef == null ? void 0 : rightRef.current);
51
- const wrapperWidth = await getNodeWidth(wrapperRef == null ? void 0 : wrapperRef.current);
33
+ const init = () => __awaiter(void 0, void 0, void 0, function* () {
34
+ const leftRectWidth = yield getNodeWidth(leftRef === null || leftRef === void 0 ? void 0 : leftRef.current);
35
+ const rightRectWidth = yield getNodeWidth(rightRef === null || rightRef === void 0 ? void 0 : rightRef.current);
36
+ const wrapperWidth = yield getNodeWidth(wrapperRef === null || wrapperRef === void 0 ? void 0 : wrapperRef.current);
52
37
  let centerWidth = wrapperWidth / 2;
53
38
  if (leftRectWidth && rightRectWidth) {
54
39
  centerWidth = wrapperWidth - (leftRectWidth > rightRectWidth ? leftRectWidth * 2 : rightRectWidth * 2);
@@ -56,7 +41,7 @@ const NavBar = (props) => {
56
41
  centerWidth = wrapperWidth - leftRectWidth * 2 - rightRectWidth * 2;
57
42
  }
58
43
  setContentWidth(centerWidth.toFixed(2));
59
- };
44
+ });
60
45
  init();
61
46
  }, [left, right, back]);
62
47
  const renderLeft = () => {
@@ -1,28 +1,12 @@
1
+ import { a as __awaiter } from "./tslib.es6-BZ8i9Q6l.js";
1
2
  import React__default, { useRef, useState, useMemo, useEffect } from "react";
2
3
  import { Notice, Close } from "@nutui/icons-react-taro";
3
4
  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";
6
- const defaultProps = {
7
- ...ComponentDefaults,
8
- direction: "horizontal",
9
- list: [],
10
- duration: 1e3,
11
- height: 40,
12
- content: "",
13
- closeable: false,
14
- wrap: false,
15
- leftIcon: React__default.createElement(Notice, { size: 16 }),
16
- rightIcon: null,
17
- delay: 1,
18
- scrollable: null,
19
- speed: 50
20
- };
5
+ import { g as getRectByTaro } from "./get-rect-by-taro-CSN0TGnD.js";
6
+ import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
7
+ const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { direction: "horizontal", list: [], duration: 1e3, height: 40, content: "", closeable: false, wrap: false, leftIcon: React__default.createElement(Notice, { size: 16 }), rightIcon: null, delay: 1, scrollable: null, speed: 50 });
21
8
  const NoticeBar = (props) => {
22
- const { children, className, style, direction, list, duration, height, content, closeable, wrap, leftIcon, rightIcon, delay, scrollable, speed, close, click, onClose, onClick, onItemClick } = {
23
- ...defaultProps,
24
- ...props
25
- };
9
+ const { children, className, style, direction, list, duration, height, content, closeable, wrap, leftIcon, rightIcon, delay, scrollable, speed, close, click, onClose, onClick, onItemClick } = Object.assign(Object.assign({}, defaultProps), props);
26
10
  const classPrefix = "nut-noticebar";
27
11
  const wrapRef = useRef(null);
28
12
  const contentRef = useRef(null);
@@ -100,12 +84,12 @@ const NoticeBar = (props) => {
100
84
  if (showNoticeBar === false) {
101
85
  return;
102
86
  }
103
- setTimeout(async () => {
87
+ setTimeout(() => __awaiter(void 0, void 0, void 0, function* () {
104
88
  if (!wrapRef.current || !contentRef.current) {
105
89
  return;
106
90
  }
107
- const warpRes = await getRectByTaro(wrapRef.current);
108
- const contentRes = await getRectByTaro(contentRef.current);
91
+ const warpRes = yield getRectByTaro(wrapRef.current);
92
+ const contentRes = yield getRectByTaro(contentRef.current);
109
93
  const wrapW = warpRes.width;
110
94
  const offsetW = contentRes.width;
111
95
  const canScroll = scrollable == null ? offsetW > wrapW : scrollable;
@@ -118,7 +102,7 @@ const NoticeBar = (props) => {
118
102
  } else {
119
103
  SetAnimationClass("");
120
104
  }
121
- }, 0);
105
+ }), 0);
122
106
  };
123
107
  const handleClick = (event) => {
124
108
  click && click(event);
@@ -179,12 +163,12 @@ const NoticeBar = (props) => {
179
163
  marginTop: animate ? `-${height}px` : ""
180
164
  };
181
165
  const init = (active2 = 0) => {
182
- if (!(container == null ? void 0 : container.current))
166
+ if (!(container === null || container === void 0 ? void 0 : container.current))
183
167
  return;
184
- setTimeout(async () => {
185
- const rects = await getRectByTaro(container == null ? void 0 : container.current);
168
+ setTimeout(() => __awaiter(void 0, void 0, void 0, function* () {
169
+ const rects = yield getRectByTaro(container === null || container === void 0 ? void 0 : container.current);
186
170
  const _active = Math.max(Math.min(childCount - 1, active2), 0);
187
- const _height = rects == null ? void 0 : rects.height;
171
+ const _height = rects === null || rects === void 0 ? void 0 : rects.height;
188
172
  trackSize = childCount * Number(_height);
189
173
  const targetOffset = getOffset(_active);
190
174
  swiperRef.current.moving = true;
@@ -195,7 +179,7 @@ const NoticeBar = (props) => {
195
179
  setRect(rects);
196
180
  setOffset(targetOffset);
197
181
  setReady(true);
198
- }, 0);
182
+ }), 0);
199
183
  };
200
184
  useEffect(() => {
201
185
  if (ready) {
@@ -212,7 +196,7 @@ const NoticeBar = (props) => {
212
196
  stopAutoPlay();
213
197
  autoplay();
214
198
  }
215
- }, [children, container == null ? void 0 : container.current]);
199
+ }, [children, container === null || container === void 0 ? void 0 : container.current]);
216
200
  const stopAutoPlay = () => {
217
201
  clearTimeout(swiperRef.current.autoplayTimer);
218
202
  swiperRef.current.autoplayTimer = null;
@@ -264,7 +248,7 @@ const NoticeBar = (props) => {
264
248
  return;
265
249
  }
266
250
  let _offset = 0;
267
- const val = ((rect == null ? void 0 : rect.height) || 0) - height;
251
+ const val = ((rect === null || rect === void 0 ? void 0 : rect.height) || 0) - height;
268
252
  _offset = moveOffset + Number(active === childCount - 1 && val / 2);
269
253
  target.style.transitionDuration = `${swiperRef.current.moving ? 0 : duration}ms`;
270
254
  target.style.height = `${Number(height) * childCount}px`;
@@ -1,23 +1,14 @@
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";
6
- const defaultProps = {
7
- ...ComponentDefaults,
8
- id: "",
9
- duration: 3e3,
10
- type: "danger",
11
- position: "top",
12
- visible: false,
13
- onClose: () => {
14
- },
15
- onClick: () => {
16
- }
17
- };
4
+ import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
5
+ import { u as useCustomEvent, a as useCustomEventsPath, c as customEvents } from "./use-custom-event-DuP4onEm.js";
6
+ const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { id: "", duration: 3e3, type: "danger", position: "top", visible: false, onClose: () => {
7
+ }, onClick: () => {
8
+ } });
18
9
  const classPrefix = "nut-notify";
19
10
  const Notify = (props) => {
20
- const { id, children, style, type, className, position, visible, duration, onClose, onClick } = { ...defaultProps, ...props };
11
+ const { id, children, style, type, className, position, visible, duration, onClose, onClick } = Object.assign(Object.assign({}, defaultProps), props);
21
12
  useCustomEvent(id, (status) => {
22
13
  status ? show() : hide();
23
14
  });