@nutui/nutui-react-taro 2.3.11 → 2.4.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 (372) hide show
  1. package/CHANGELOG.md +48 -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/style/style.css +1 -1
  6. package/dist/esm/AnimatingNumbers.js +8 -22
  7. package/dist/esm/Audio.js +1 -15
  8. package/dist/esm/Avatar.js +1 -10
  9. package/dist/esm/AvatarCropper.js +1 -10
  10. package/dist/esm/AvatarGroup.js +1 -4
  11. package/dist/esm/BackTop.js +1 -6
  12. package/dist/esm/Badge/style/style.css +1 -1
  13. package/dist/esm/Badge.js +1 -4
  14. package/dist/esm/Barrage.js +1 -7
  15. package/dist/esm/Button.js +1 -6
  16. package/dist/esm/Calendar.js +1 -20
  17. package/dist/esm/CalendarCard.js +1 -8
  18. package/dist/esm/CalendarItem.js +1 -12
  19. package/dist/esm/Card.js +1 -7
  20. package/dist/esm/Cascader.js +1 -18
  21. package/dist/esm/Cell.js +1 -5
  22. package/dist/esm/CellGroup.js +1 -4
  23. package/dist/esm/Checkbox/style/style.css +1 -1
  24. package/dist/esm/Checkbox.js +1 -7
  25. package/dist/esm/CheckboxGroup/style/style.css +1 -1
  26. package/dist/esm/CheckboxGroup.js +1 -7
  27. package/dist/esm/CircleProgress.js +1 -6
  28. package/dist/esm/Col.js +1 -5
  29. package/dist/esm/Collapse/style/style.css +1 -1
  30. package/dist/esm/Collapse.js +1 -8
  31. package/dist/esm/CollapseItem/style/style.css +1 -1
  32. package/dist/esm/CollapseItem.js +1 -5
  33. package/dist/esm/ConfigProvider.js +4 -6
  34. package/dist/esm/CountDown.js +1 -7
  35. package/dist/esm/DatePicker.js +1 -21
  36. package/dist/esm/Dialog/style/style.css +1 -1
  37. package/dist/esm/Dialog.js +1 -16
  38. package/dist/esm/Divider.js +1 -4
  39. package/dist/esm/Drag.js +1 -4
  40. package/dist/esm/Elevator.js +1 -6
  41. package/dist/esm/Ellipsis.js +1 -7
  42. package/dist/esm/Empty.js +1 -9
  43. package/dist/esm/FixedNav.js +1 -13
  44. package/dist/esm/Form.js +7 -18
  45. package/dist/esm/FormItem.js +1 -6
  46. package/dist/esm/Grid.js +1 -7
  47. package/dist/esm/GridItem.js +1 -6
  48. package/dist/esm/Image.js +1 -7
  49. package/dist/esm/ImagePreview.js +1 -20
  50. package/dist/esm/Indicator.js +1 -3
  51. package/dist/esm/InfiniteLoading.js +1 -8
  52. package/dist/esm/Input.js +1 -11
  53. package/dist/esm/InputNumber/style/style.css +1 -1
  54. package/dist/esm/InputNumber.js +1 -7
  55. package/dist/esm/Layout.js +1 -2
  56. package/dist/esm/Loading.js +1 -5
  57. package/dist/esm/Menu.js +1 -15
  58. package/dist/esm/MenuItem.js +1 -14
  59. package/dist/esm/NavBar.js +1 -7
  60. package/dist/esm/NoticeBar/style/style.css +1 -1
  61. package/dist/esm/NoticeBar.js +1 -7
  62. package/dist/esm/Notify.js +1 -9
  63. package/dist/esm/NumberKeyboard.js +1 -15
  64. package/dist/esm/Overlay.js +1 -9
  65. package/dist/esm/Pagination.js +1 -8
  66. package/dist/esm/Picker.js +1 -19
  67. package/dist/esm/Popover/style/style.css +1 -1
  68. package/dist/esm/Popover.js +1 -14
  69. package/dist/esm/Popup.js +1 -12
  70. package/dist/esm/Price.js +1 -3
  71. package/dist/esm/Progress.js +1 -4
  72. package/dist/esm/PullToRefresh.js +1 -10
  73. package/dist/esm/Radio.js +1 -7
  74. package/dist/esm/RadioGroup.js +1 -7
  75. package/dist/esm/Range.js +1 -10
  76. package/dist/esm/Rate.js +1 -11
  77. package/dist/esm/Row.js +1 -5
  78. package/dist/esm/SafeArea.js +1 -3
  79. package/dist/esm/SearchBar.js +1 -7
  80. package/dist/esm/ShortPassword.js +1 -17
  81. package/dist/esm/SideNavBar.js +1 -14
  82. package/dist/esm/SideNavBarItem.js +1 -2
  83. package/dist/esm/Signature.js +1 -4
  84. package/dist/esm/Skeleton.js +1 -11
  85. package/dist/esm/Space.js +1 -3
  86. package/dist/esm/Step.js +1 -6
  87. package/dist/esm/Steps.js +1 -5
  88. package/dist/esm/Sticky.js +1 -7
  89. package/dist/esm/SubSideNavBar.js +1 -3
  90. package/dist/esm/Swipe/style/style.css +1 -1
  91. package/dist/esm/Swipe.js +1 -8
  92. package/dist/esm/Swiper.js +9 -11
  93. package/dist/esm/SwiperItem.js +1 -2
  94. package/dist/esm/Switch.js +1 -5
  95. package/dist/esm/TabPane.js +1 -3
  96. package/dist/esm/Tabbar/style/style.css +1 -1
  97. package/dist/esm/Tabbar.js +1 -8
  98. package/dist/esm/TabbarItem/style/style.css +1 -1
  99. package/dist/esm/TabbarItem.js +1 -5
  100. package/dist/esm/Table.js +1 -9
  101. package/dist/esm/Tabs.js +1 -11
  102. package/dist/esm/Tag.js +1 -5
  103. package/dist/esm/TextArea.js +1 -10
  104. package/dist/esm/TimeDetail.js +1 -4
  105. package/dist/esm/TimeSelect.js +1 -16
  106. package/dist/esm/Toast.js +1 -15
  107. package/dist/esm/Tour/style/style.css +1 -1
  108. package/dist/esm/Tour.js +1 -16
  109. package/dist/esm/TrendArrow.js +1 -4
  110. package/dist/esm/Uploader.js +1 -14
  111. package/dist/esm/Video.js +1 -4
  112. package/dist/esm/VirtualList.js +1 -6
  113. package/dist/esm/WaterMark.js +1 -7
  114. package/dist/esm/{actionsheet.taro-kKhb0Vwt.js → actionsheet.taro-C5BqWoML.js} +9 -17
  115. package/dist/esm/{address.taro-zQuxQEce.js → address.taro-CgkCHDYZ.js} +19 -44
  116. package/dist/esm/{animate.taro-m67VyUHP.js → animate.taro-Dg9jxZEu.js} +6 -14
  117. package/dist/esm/{audio.taro-dJgj5qIu.js → audio.taro-DXxWGngO.js} +14 -30
  118. package/dist/esm/avatar.taro-a6CX3kxV.js +86 -0
  119. package/dist/esm/{avatarcropper.taro-GIZxzMJ_.js → avatarcropper.taro-BFvFmK4t.js} +47 -90
  120. package/dist/esm/{avatargroup.taro-h6dpv6UX.js → avatargroup.taro-bpT5kPbf.js} +3 -11
  121. package/dist/esm/{backtop.taro-Cfld7ina.js → backtop.taro-B-zl6AEC.js} +4 -15
  122. package/dist/esm/{badge.taro-993L861f.js → badge.taro-D7Yn5zJi.js} +8 -16
  123. package/dist/esm/{barrage.taro-6nbq7wtt.js → barrage.taro-BNOcZsJ1.js} +18 -28
  124. package/dist/esm/{button.taro-3IIFy1M2.js → button.taro-OKGsDVW7.js} +8 -23
  125. package/dist/esm/{calendar.taro-iNNHje7V.js → calendar.taro-DbHJEx4G.js} +12 -39
  126. package/dist/esm/{calendarcard.taro-9s7naGmU.js → calendarcard.taro-BHGCq5zX.js} +10 -14
  127. package/dist/esm/{calendaritem.taro-o6Z8OOGY.js → calendaritem.taro-B8tN2DYa.js} +11 -36
  128. package/dist/esm/{card.taro-p4PTy-IU.js → card.taro-uLorQW97.js} +7 -22
  129. package/dist/esm/{cascader.taro-M2nZWxiB.js → cascader.taro-BMp2mI0W.js} +47 -83
  130. package/dist/esm/{cell.taro-jD6MoFTj.js → cell.taro-CCnLF6RC.js} +9 -23
  131. package/dist/esm/{cellgroup.taro-08A3XAze.js → cellgroup.taro-Dz69kT6e.js} +5 -12
  132. package/dist/esm/{checkbox.taro-xMxWdpyI.js → checkbox.taro-CUpF7Afr.js} +40 -32
  133. package/dist/esm/{circleprogress.taro-myZgamBw.js → circleprogress.taro-CKSrzt8Q.js} +8 -22
  134. package/dist/esm/{col.taro-5FMpttLE.js → col.taro-C8DUuJYh.js} +5 -13
  135. package/dist/esm/{collapse.taro-sZibDygv.js → collapse.taro-BM0BsN30.js} +5 -14
  136. package/dist/esm/{collapseitem.taro-AaQ_msgd.js → collapseitem.taro-D_m4VEdG.js} +7 -16
  137. package/dist/esm/configprovider.taro-CyU_tvNJ.js +202 -0
  138. package/dist/esm/{countdown.taro-XZlfWBrA.js → countdown.taro-D-H9erkV.js} +9 -19
  139. package/dist/esm/{datepicker.taro-DrXkqJkN.js → datepicker.taro-DqR52Ivo.js} +14 -26
  140. package/dist/esm/{dialog.taro-dmQGDu3o.js → dialog.taro-Dk0QQMn_.js} +31 -23
  141. package/dist/esm/{divider.taro-H5fKry4P.js → divider.taro-DRcO_m9e.js} +5 -11
  142. package/dist/esm/{drag.taro-BwcleRuB.js → drag.taro-CcHIO07Y.js} +10 -18
  143. package/dist/esm/{elevator.taro-2nbUM3vH.js → elevator.taro-uhrF7ChY.js} +5 -17
  144. package/dist/esm/{ellipsis.taro-VApVqS_j.js → ellipsis.taro-B_mTyNyk.js} +25 -34
  145. package/dist/esm/{empty.taro-gwvOr1xf.js → empty.taro-Brkv6B2Z.js} +8 -18
  146. package/dist/esm/{fixednav.taro-QVBXysDj.js → fixednav.taro-WTBxWxOo.js} +10 -21
  147. package/dist/esm/formitem.taro-Brz5dj_8.js +330 -0
  148. package/dist/esm/{get-rect-by-taro-piSHvCGp.js → get-rect-by-taro-CSN0TGnD.js} +3 -2
  149. package/dist/esm/{grid.taro-3X-_AhXw.js → grid.taro-BA76RrgT.js} +5 -4
  150. package/dist/esm/{griditem.taro-TJDJVeQy.js → griditem.taro-JLddv9zD.js} +6 -11
  151. package/dist/esm/{image.taro-FfeikBlO.js → image.taro-BLz2WCva.js} +5 -6
  152. package/dist/esm/{imagepreview.taro--fVrJUOE.js → imagepreview.taro-Bb1TkBCV.js} +13 -31
  153. package/dist/esm/{indicator.taro-ZH6MICsS.js → indicator.taro-CpHZtD9p.js} +3 -5
  154. package/dist/esm/{infiniteloading.taro-BO0_y46K.js → infiniteloading.taro-Ccq4bEzk.js} +14 -21
  155. package/dist/esm/{input.taro-xCoGdppk.js → input.taro-BVC8gEuk.js} +14 -31
  156. package/dist/esm/{inputnumber.taro-WPpS0Xl9.js → inputnumber.taro-CQiAPZgS.js} +17 -28
  157. package/dist/esm/{layout.taro-lnN-wB0Y.js → layout.taro-BE2868d6.js} +1 -1
  158. package/dist/esm/{loading.taro-aHN6xLIT.js → loading.taro-CRF1z5wQ.js} +5 -8
  159. package/dist/esm/{menu.taro-ODwHYGFM.js → menu.taro-BAiJPGR7.js} +12 -25
  160. package/dist/esm/{menuitem.taro-9nyTDLpt.js → menuitem.taro-oLv6ZYC5.js} +15 -36
  161. package/dist/esm/{navbar.taro-AuKPDCaW.js → navbar.taro-B8u3DOE4.js} +14 -29
  162. package/dist/esm/{noticebar.taro-bHnEzTvL.js → noticebar.taro-CRPbZenq.js} +40 -51
  163. package/dist/esm/{notify.taro-mA9KS8qh.js → notify.taro-jP7y9zMU.js} +6 -15
  164. package/dist/esm/{numberkeyboard.taro-bF6VCXry.js → numberkeyboard.taro-B9rMgy7D.js} +9 -16
  165. package/dist/esm/nutui-react.es.js +93 -118
  166. package/dist/esm/{overlay.taro-HsGeVyPh.js → overlay.taro-BaBu-3-F.js} +10 -22
  167. package/dist/esm/{pagination.taro-C4_Ey5KC.js → pagination.taro-DAK6ddag.js} +7 -19
  168. package/dist/esm/{picker.taro-csU3SZPF.js → picker.taro-Cmng9GW9.js} +34 -43
  169. package/dist/esm/{popover.taro-qldQwLPC.js → popover.taro-BsOaXoWp.js} +29 -45
  170. package/dist/esm/{popup.taro-ObEUml4r.js → popup.taro-Iy_WQZ-m.js} +8 -32
  171. package/dist/esm/{price.taro-Z1zR8YWV.js → price.taro-UVRHPHRD.js} +5 -16
  172. package/dist/esm/{progress.taro-pStvlrbA.js → progress.taro-BOHykt7X.js} +8 -14
  173. package/dist/esm/{pulltorefresh.taro-2jER8Mat.js → pulltorefresh.taro-BJdQj5sL.js} +31 -47
  174. package/dist/esm/{radio.taro-EKJXMjnX.js → radio.taro-CjJgX9o2.js} +20 -33
  175. package/dist/esm/{range.taro-mDYY3SXA.js → range.taro-BxMDs5Cy.js} +20 -22
  176. package/dist/esm/{rate.taro-_5Mjd_EO.js → rate.taro-BABLqt4h.js} +7 -20
  177. package/dist/esm/{row.taro-IxNlKKQM.js → row.taro-D8chDydP.js} +4 -14
  178. package/dist/esm/{searchbar.taro-hVzdT6nI.js → searchbar.taro-PfVx6o-6.js} +9 -26
  179. package/dist/esm/{shortpassword.taro-JBWXzk6I.js → shortpassword.taro-BXsxku33.js} +9 -19
  180. package/dist/esm/{sidenavbar.taro-8qoGZg5n.js → sidenavbar.taro-eK5vaZPR.js} +7 -13
  181. package/dist/esm/sidenavbaritem.taro-L7HbsCLn.js +14 -0
  182. package/dist/esm/{signature.taro-y3qxnKMv.js → signature.taro-KPm_xs66.js} +11 -19
  183. package/dist/esm/{skeleton.taro--AtiA7MK.js → skeleton.taro-BwIDIf2p.js} +6 -17
  184. package/dist/esm/{space.taro-q3R_yq79.js → space.taro-CZ999etm.js} +1 -4
  185. package/dist/esm/{step.taro-_DEZqFGb.js → step.taro-DLr2GzYk.js} +8 -16
  186. package/dist/esm/steps.taro-C8Yg1Sns.js +28 -0
  187. package/dist/esm/{sticky.taro-p-evMNR-.js → sticky.taro-DRBk3gkQ.js} +12 -15
  188. package/dist/esm/{subsidenavbar.taro-Zy52MDDG.js → subsidenavbar.taro-ByxYpgfP.js} +7 -9
  189. package/dist/esm/{swipe.taro-p2ONOq1o.js → swipe.taro-wm7YWwaj.js} +29 -31
  190. package/dist/esm/{swiperitem.taro-BC1CE0T-.js → swiperitem.taro-8JXI24f0.js} +3 -1
  191. package/dist/esm/{switch.taro-L0BAbMeu.js → switch.taro-D1HgJoJz.js} +6 -13
  192. package/dist/esm/{tabbar.taro-QE0rjSKE.js → tabbar.taro-LAPQoOva.js} +7 -18
  193. package/dist/esm/tabbaritem.taro-C4AZbQMG.js +58 -0
  194. package/dist/esm/{table.taro-0zRh2hq6.js → table.taro-ClLmfqz3.js} +14 -24
  195. package/dist/esm/{tabpane.taro-5k7wWimS.js → tabpane.taro-BAe86j3t.js} +1 -4
  196. package/dist/esm/{tabs.taro-Yj7vgtSg.js → tabs.taro-DRmZR3Xu.js} +19 -35
  197. package/dist/esm/{tag.taro-5KC_wObY.js → tag.taro-BsmY5QfN.js} +7 -22
  198. package/dist/esm/{textarea.taro-9zQLTCwU.js → textarea.taro-BJIFCpKb.js} +11 -20
  199. package/dist/esm/{timedetail.taro-TF9Wcblh.js → timedetail.taro-x6Zey1xi.js} +11 -21
  200. package/dist/esm/{timeselect.taro-j8LgSCe5.js → timeselect.taro-BXq4APSJ.js} +20 -33
  201. package/dist/esm/{toast.taro-xnEQSCDJ.js → toast.taro-BVXqvjNJ.js} +9 -27
  202. package/dist/esm/{tour.taro-CGEjzzN_.js → tour.taro-wfXuUebD.js} +7 -24
  203. package/dist/esm/{trendarrow.taro-hsM6-XsQ.js → trendarrow.taro-BHUetKSS.js} +6 -18
  204. package/dist/esm/tslib.es6-BZ8i9Q6l.js +47 -0
  205. package/dist/esm/types/src/packages/button/demos/h5/demo1.d.ts +3 -0
  206. package/dist/esm/types/src/packages/button/demos/h5/demo2.d.ts +3 -0
  207. package/dist/esm/types/src/packages/button/demos/h5/demo3.d.ts +3 -0
  208. package/dist/esm/types/src/packages/button/demos/h5/demo4.d.ts +3 -0
  209. package/dist/esm/types/src/packages/button/demos/h5/demo5.d.ts +3 -0
  210. package/dist/esm/types/src/packages/button/demos/h5/demo6.d.ts +3 -0
  211. package/dist/esm/types/src/packages/button/demos/h5/demo7.d.ts +3 -0
  212. package/dist/esm/types/src/packages/button/demos/h5/demo8.d.ts +3 -0
  213. package/dist/esm/types/src/packages/button/demos/h5/demo9.d.ts +3 -0
  214. package/dist/esm/types/src/packages/button/demos/taro/demo1.d.ts +3 -0
  215. package/dist/esm/types/src/packages/button/demos/taro/demo10.d.ts +3 -0
  216. package/dist/esm/types/src/packages/button/demos/taro/demo2.d.ts +3 -0
  217. package/dist/esm/types/src/packages/button/demos/taro/demo3.d.ts +3 -0
  218. package/dist/esm/types/src/packages/button/demos/taro/demo4.d.ts +3 -0
  219. package/dist/esm/types/src/packages/button/demos/taro/demo5.d.ts +3 -0
  220. package/dist/esm/types/src/packages/button/demos/taro/demo6.d.ts +3 -0
  221. package/dist/esm/types/src/packages/button/demos/taro/demo7.d.ts +3 -0
  222. package/dist/esm/types/src/packages/button/demos/taro/demo8.d.ts +3 -0
  223. package/dist/esm/types/src/packages/button/demos/taro/demo9.d.ts +3 -0
  224. package/dist/esm/types/src/packages/cell/demo.d.ts +0 -1
  225. package/dist/esm/types/src/packages/cell/demo.taro.d.ts +0 -1
  226. package/dist/esm/types/src/packages/cell/demos/h5/demo1.d.ts +3 -0
  227. package/dist/esm/types/src/packages/cell/demos/h5/demo2.d.ts +3 -0
  228. package/dist/esm/types/src/packages/cell/demos/h5/demo3.d.ts +3 -0
  229. package/dist/esm/types/src/packages/cell/demos/h5/demo4.d.ts +3 -0
  230. package/dist/esm/types/src/packages/cell/demos/h5/demo5.d.ts +3 -0
  231. package/dist/esm/types/src/packages/cell/demos/h5/demo6.d.ts +3 -0
  232. package/dist/esm/types/src/packages/cell/demos/h5/demo7.d.ts +3 -0
  233. package/dist/esm/types/src/packages/cell/demos/taro/demo1.d.ts +3 -0
  234. package/dist/esm/types/src/packages/cell/demos/taro/demo2.d.ts +3 -0
  235. package/dist/esm/types/src/packages/cell/demos/taro/demo3.d.ts +3 -0
  236. package/dist/esm/types/src/packages/cell/demos/taro/demo4.d.ts +3 -0
  237. package/dist/esm/types/src/packages/cell/demos/taro/demo5.d.ts +3 -0
  238. package/dist/esm/types/src/packages/cell/demos/taro/demo6.d.ts +3 -0
  239. package/dist/esm/types/src/packages/cell/demos/taro/demo7.d.ts +3 -0
  240. package/dist/esm/types/src/packages/checkboxgroup/checkboxgroup.d.ts +1 -0
  241. package/dist/esm/types/src/packages/checkboxgroup/checkboxgroup.taro.d.ts +1 -0
  242. package/dist/esm/types/src/packages/checkboxgroup/context.d.ts +1 -0
  243. package/dist/esm/types/src/packages/configprovider/configprovider.d.ts +1 -0
  244. package/dist/esm/types/src/packages/configprovider/configprovider.taro.d.ts +1 -0
  245. package/dist/esm/types/src/packages/configprovider/index.d.ts +2 -2
  246. package/dist/esm/types/src/packages/configprovider/index.taro.d.ts +2 -2
  247. package/dist/esm/types/src/packages/configprovider/types.d.ts +1 -1
  248. package/dist/esm/types/src/packages/dialog/config.d.ts +3 -3
  249. package/dist/esm/types/src/packages/dialog/index.d.ts +1 -1
  250. package/dist/esm/types/src/packages/inputnumber/inputnumber.taro.d.ts +2 -0
  251. package/dist/esm/types/src/packages/noticebar/index.d.ts +1 -0
  252. package/dist/esm/types/src/packages/noticebar/noticebar.d.ts +2 -0
  253. package/dist/esm/types/src/packages/noticebar/noticebar.taro.d.ts +2 -0
  254. package/dist/esm/types/src/packages/noticebar/types.d.ts +1 -0
  255. package/dist/esm/types/src/packages/popover/index.d.ts +2 -1
  256. package/dist/esm/types/src/packages/popover/index.taro.d.ts +2 -1
  257. package/dist/esm/types/src/packages/popover/popover.d.ts +2 -12
  258. package/dist/esm/types/src/packages/popover/popover.taro.d.ts +2 -12
  259. package/dist/esm/types/src/packages/popover/types.d.ts +14 -0
  260. package/dist/esm/types/src/packages/table/useTableSticky.d.ts +1 -1
  261. package/dist/esm/types/src/packages/toast/toast.taro.d.ts +7 -3
  262. package/dist/esm/types/src/packages/tour/tour.d.ts +1 -1
  263. package/dist/esm/types/src/packages/tour/tour.taro.d.ts +1 -1
  264. package/dist/esm/{uploader.taro-bRF02TR9.js → uploader.taro-DdJ-sOK4.js} +49 -101
  265. package/dist/esm/{use-custom-event-XvsODK8c.js → use-custom-event-DuP4onEm.js} +5 -5
  266. package/dist/esm/{use-props-value-vKr0R0AX.js → use-props-value-SH9krhkx.js} +2 -2
  267. package/dist/esm/{video.taro-csvHwS2v.js → video.taro-CEMVfhCS.js} +3 -5
  268. package/dist/esm/{virtuallist.taro-AeTVtFFa.js → virtuallist.taro-Cl08vfdg.js} +10 -19
  269. package/dist/esm/{watermark.taro-nvSmcwu-.js → watermark.taro-BxM8VfXb.js} +5 -30
  270. package/dist/locales/base.js +1 -1
  271. package/dist/locales/en-US.js +1 -1
  272. package/dist/locales/id-ID.js +1 -1
  273. package/dist/locales/tr-TR.js +1 -1
  274. package/dist/locales/zh-CN.js +1 -1
  275. package/dist/locales/zh-TW.js +1 -1
  276. package/dist/locales/zh-UG.js +1 -1
  277. package/dist/nutui.react.es.js +403 -382
  278. package/dist/nutui.react.umd.js +404 -383
  279. package/dist/packages/animatingnumbers/countup.scss +1 -0
  280. package/dist/packages/badge/badge.scss +2 -0
  281. package/dist/packages/checkbox/checkbox.scss +19 -0
  282. package/dist/packages/checkboxgroup/checkboxgroup.scss +25 -0
  283. package/dist/packages/collapseitem/collapseitem.scss +1 -6
  284. package/dist/packages/dialog/dialog.scss +8 -1
  285. package/dist/packages/noticebar/noticebar.scss +19 -1
  286. package/dist/packages/popover/popover.scss +21 -0
  287. package/dist/packages/swipe/swipe.scss +2 -0
  288. package/dist/style.css +1 -1
  289. package/dist/style.mjs +1 -1
  290. package/dist/styles/variables-jmapp.scss +17 -0
  291. package/dist/styles/variables.scss +19 -12
  292. package/dist/types/packages/badge/badge.taro.d.ts +1 -1
  293. package/dist/types/packages/button/demos/h5/demo1.d.ts +3 -0
  294. package/dist/types/packages/button/demos/h5/demo2.d.ts +3 -0
  295. package/dist/types/packages/button/demos/h5/demo3.d.ts +3 -0
  296. package/dist/types/packages/button/demos/h5/demo4.d.ts +3 -0
  297. package/dist/types/packages/button/demos/h5/demo5.d.ts +3 -0
  298. package/dist/types/packages/button/demos/h5/demo6.d.ts +3 -0
  299. package/dist/types/packages/button/demos/h5/demo7.d.ts +3 -0
  300. package/dist/types/packages/button/demos/h5/demo8.d.ts +3 -0
  301. package/dist/types/packages/button/demos/h5/demo9.d.ts +3 -0
  302. package/dist/types/packages/button/demos/taro/demo1.d.ts +3 -0
  303. package/dist/types/packages/button/demos/taro/demo10.d.ts +3 -0
  304. package/dist/types/packages/button/demos/taro/demo2.d.ts +3 -0
  305. package/dist/types/packages/button/demos/taro/demo3.d.ts +3 -0
  306. package/dist/types/packages/button/demos/taro/demo4.d.ts +3 -0
  307. package/dist/types/packages/button/demos/taro/demo5.d.ts +3 -0
  308. package/dist/types/packages/button/demos/taro/demo6.d.ts +3 -0
  309. package/dist/types/packages/button/demos/taro/demo7.d.ts +3 -0
  310. package/dist/types/packages/button/demos/taro/demo8.d.ts +3 -0
  311. package/dist/types/packages/button/demos/taro/demo9.d.ts +3 -0
  312. package/dist/types/packages/cell/demos/h5/demo1.d.ts +3 -0
  313. package/dist/types/packages/cell/demos/h5/demo2.d.ts +3 -0
  314. package/dist/types/packages/cell/demos/h5/demo3.d.ts +3 -0
  315. package/dist/types/packages/cell/demos/h5/demo4.d.ts +3 -0
  316. package/dist/types/packages/cell/demos/h5/demo5.d.ts +3 -0
  317. package/dist/types/packages/cell/demos/h5/demo6.d.ts +3 -0
  318. package/dist/types/packages/cell/demos/h5/demo7.d.ts +3 -0
  319. package/dist/types/packages/cell/demos/taro/demo1.d.ts +3 -0
  320. package/dist/types/packages/cell/demos/taro/demo2.d.ts +3 -0
  321. package/dist/types/packages/cell/demos/taro/demo3.d.ts +3 -0
  322. package/dist/types/packages/cell/demos/taro/demo4.d.ts +3 -0
  323. package/dist/types/packages/cell/demos/taro/demo5.d.ts +3 -0
  324. package/dist/types/packages/cell/demos/taro/demo6.d.ts +3 -0
  325. package/dist/types/packages/cell/demos/taro/demo7.d.ts +3 -0
  326. package/dist/types/packages/checkboxgroup/checkboxgroup.d.ts +1 -0
  327. package/dist/types/packages/checkboxgroup/checkboxgroup.taro.d.ts +1 -0
  328. package/dist/types/packages/checkboxgroup/context.d.ts +1 -0
  329. package/dist/types/packages/configprovider/configprovider.d.ts +1 -0
  330. package/dist/types/packages/configprovider/configprovider.taro.d.ts +1 -0
  331. package/dist/types/packages/configprovider/index.d.ts +2 -2
  332. package/dist/types/packages/configprovider/index.taro.d.ts +2 -2
  333. package/dist/types/packages/configprovider/types.d.ts +1 -1
  334. package/dist/types/packages/dialog/config.d.ts +3 -3
  335. package/dist/types/packages/dialog/index.d.ts +1 -1
  336. package/dist/types/packages/empty/empty.taro.d.ts +15 -3
  337. package/dist/types/packages/inputnumber/inputnumber.taro.d.ts +6 -0
  338. package/dist/types/packages/noticebar/index.d.ts +1 -0
  339. package/dist/types/packages/noticebar/noticebar.d.ts +2 -0
  340. package/dist/types/packages/noticebar/noticebar.taro.d.ts +6 -0
  341. package/dist/types/packages/noticebar/types.d.ts +1 -0
  342. package/dist/types/packages/popover/index.d.ts +2 -1
  343. package/dist/types/packages/popover/index.taro.d.ts +2 -1
  344. package/dist/types/packages/popover/popover.d.ts +2 -12
  345. package/dist/types/packages/popover/popover.taro.d.ts +2 -12
  346. package/dist/types/packages/popover/types.d.ts +14 -0
  347. package/dist/types/packages/table/useTableSticky.d.ts +1 -1
  348. package/dist/types/packages/toast/toast.taro.d.ts +8 -4
  349. package/dist/types/packages/tour/tour.d.ts +1 -1
  350. package/dist/types/packages/tour/tour.taro.d.ts +1 -1
  351. package/package.json +5 -1
  352. package/dist/esm/avatar.taro-7ltbzIdY.js +0 -109
  353. package/dist/esm/configprovider.taro-q5J2gQbi.js +0 -486
  354. package/dist/esm/formitem.taro-viaUkMmm.js +0 -1435
  355. package/dist/esm/index-oitVOJp9.js +0 -661
  356. package/dist/esm/sidenavbaritem.taro-AxJNRAdi.js +0 -13
  357. package/dist/esm/steps.taro-PH0qWPla.js +0 -32
  358. package/dist/esm/tabbaritem.taro-t9C07OYX.js +0 -73
  359. /package/dist/esm/{UserContext-9BL0cq8w.js → UserContext-BlM0373q.js} +0 -0
  360. /package/dist/esm/{context-6mGEMLsx.js → context-4T-L2x0_.js} +0 -0
  361. /package/dist/esm/{context-9BL0cq8w.js → context-BlM0373q.js} +0 -0
  362. /package/dist/esm/{date-nxKOxj5-.js → date-D0pth0qC.js} +0 -0
  363. /package/dist/esm/{get-scroll-parent-uywvoQMl.js → get-scroll-parent-DB1VRg11.js} +0 -0
  364. /package/dist/esm/{index-YvHA__3D.js → index-DeNfBlua.js} +0 -0
  365. /package/dist/esm/{pad-zero-iY-0-oys.js → pad-zero-B2OUQfh7.js} +0 -0
  366. /package/dist/esm/{px-check-JiWLYN2v.js → px-check-D1Xbd9pj.js} +0 -0
  367. /package/dist/esm/{raf-UzmDvMUW.js → raf-zwv-SBjP.js} +0 -0
  368. /package/dist/esm/{safearea.taro-afu_mY7g.js → safearea.taro-BMQHr7tu.js} +0 -0
  369. /package/dist/esm/{typings-buMpDfSR.js → typings-DV9RBfhj.js} +0 -0
  370. /package/dist/esm/{use-force-update-0oEVD8Nr.js → use-force-update-CudFjCsy.js} +0 -0
  371. /package/dist/esm/{use-refs-IdrY0ww3.js → use-refs-BeEmziIR.js} +0 -0
  372. /package/dist/esm/{use-touch-BUFdkOSA.js → use-touch-OfEaR5qi.js} +0 -0
@@ -1,8 +1,9 @@
1
+ import { _ as __rest } from "./tslib.es6-BZ8i9Q6l.js";
1
2
  import React__default, { useCallback, useContext } from "react";
2
3
  import { CheckDisabled, CheckChecked, CheckNormal } from "@nutui/icons-react-taro";
3
4
  import classNames from "classnames";
4
- import { C as ComponentDefaults } from "./typings-buMpDfSR.js";
5
- import { u as usePropsValue } from "./use-props-value-vKr0R0AX.js";
5
+ import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
6
+ import { u as usePropsValue } from "./use-props-value-SH9krhkx.js";
6
7
  const RadioContext = React__default.createContext(null);
7
8
  const defaultProps$1 = {
8
9
  labelPosition: "right",
@@ -13,7 +14,7 @@ const defaultProps$1 = {
13
14
  };
14
15
  const classPrefix = "nut-radiogroup";
15
16
  const RadioGroup = React__default.forwardRef((props, ref) => {
16
- const { children, className, value, defaultValue, onChange, shape, labelPosition, direction, options, disabled, ...rest } = { ...defaultProps$1, ...props };
17
+ const _a = Object.assign(Object.assign({}, defaultProps$1), props), { children, className, value, defaultValue, onChange, shape, labelPosition, direction, options, disabled } = _a, rest = __rest(_a, ["children", "className", "value", "defaultValue", "onChange", "shape", "labelPosition", "direction", "options", "disabled"]);
17
18
  const [val2State, setVal2State] = usePropsValue({
18
19
  defaultValue: props.defaultValue,
19
20
  value: props.value,
@@ -21,8 +22,9 @@ const RadioGroup = React__default.forwardRef((props, ref) => {
21
22
  onChange
22
23
  });
23
24
  const renderOptionsChildren = useCallback(() => {
24
- return options == null ? void 0 : options.map(({ label, value: value2, disabled: disabled2, onChange: onChange2, ...rest2 }) => {
25
- return React__default.createElement(Radio, { ...rest2, key: value2 == null ? void 0 : value2.toString(), children: label, value: value2, disabled: disabled2, onChange: onChange2, labelPosition, checked: value2 === val2State });
25
+ return options === null || options === void 0 ? void 0 : options.map((_a2) => {
26
+ var { label, value: value2, disabled: disabled2, onChange: onChange2 } = _a2, rest2 = __rest(_a2, ["label", "value", "disabled", "onChange"]);
27
+ return React__default.createElement(Radio, Object.assign({}, rest2, { key: value2 === null || value2 === void 0 ? void 0 : value2.toString(), children: label, value: value2, disabled: disabled2, onChange: onChange2, labelPosition, checked: value2 === val2State }));
26
28
  });
27
29
  }, [options]);
28
30
  return React__default.createElement(
@@ -39,31 +41,22 @@ const RadioGroup = React__default.forwardRef((props, ref) => {
39
41
  setVal2State("");
40
42
  }
41
43
  } },
42
- React__default.createElement("div", { className: classNames(classPrefix, {
44
+ React__default.createElement("div", Object.assign({ className: classNames(classPrefix, {
43
45
  [`${classPrefix}-${props.direction}`]: props.direction
44
- }, className), ...rest }, (options == null ? void 0 : options.length) ? renderOptionsChildren() : children)
46
+ }, className) }, rest), (options === null || options === void 0 ? void 0 : options.length) ? renderOptionsChildren() : children)
45
47
  );
46
48
  });
47
49
  RadioGroup.defaultProps = defaultProps$1;
48
50
  RadioGroup.displayName = "NutRadioGroup";
49
- const defaultProps = {
50
- ...ComponentDefaults,
51
- disabled: false,
52
- shape: "round",
53
- value: "",
54
- labelPosition: "right",
55
- icon: null,
56
- activeIcon: null,
57
- onChange: (checked) => {
58
- }
59
- };
51
+ const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { disabled: false, shape: "round", value: "", labelPosition: "right", icon: null, activeIcon: null, onChange: (checked) => {
52
+ } });
60
53
  const Radio = (props) => {
61
54
  const classPrefix2 = "nut-radio";
62
- const { children, className, style, checked, defaultChecked, shape, value, icon, activeIcon, onChange, ...others } = {
63
- ...defaultProps,
64
- ...props
65
- };
66
- let { labelPosition, disabled, ...rest } = others;
55
+ const _a = Object.assign(Object.assign({}, defaultProps), props), { children, className, style, checked, defaultChecked, shape, value, icon, activeIcon, onChange } = _a, others = __rest(_a, ["children", "className", "style", "checked", "defaultChecked", "shape", "value", "icon", "activeIcon", "onChange"]);
56
+ let { labelPosition, disabled } = others, rest = __rest(
57
+ others,
58
+ ["labelPosition", "disabled"]
59
+ );
67
60
  let [checkedStatement, setCheckedStatement] = usePropsValue({
68
61
  value: checked,
69
62
  defaultValue: defaultChecked,
@@ -111,15 +104,9 @@ const Radio = (props) => {
111
104
  return React__default.createElement(CheckDisabled, { className: classNames(color()) });
112
105
  }
113
106
  if (checkedStatement) {
114
- return React__default.isValidElement(activeIcon2) ? React__default.cloneElement(activeIcon2, {
115
- ...activeIcon2.props,
116
- className: classNames(color())
117
- }) : React__default.createElement(CheckChecked, { className: classNames(color()) });
107
+ return React__default.isValidElement(activeIcon2) ? React__default.cloneElement(activeIcon2, Object.assign(Object.assign({}, activeIcon2.props), { className: classNames(color()) })) : React__default.createElement(CheckChecked, { className: classNames(color()) });
118
108
  }
119
- return React__default.isValidElement(icon2) ? React__default.cloneElement(icon2, {
120
- ...icon2.props,
121
- className: classNames(color())
122
- }) : React__default.createElement(CheckNormal, { className: classNames(color()) });
109
+ return React__default.isValidElement(icon2) ? React__default.cloneElement(icon2, Object.assign(Object.assign({}, icon2.props), { className: classNames(color()) })) : React__default.createElement(CheckNormal, { className: classNames(color()) });
123
110
  };
124
111
  const renderByShape = (shape2) => {
125
112
  return shape2 === "button" ? renderButton() : React__default.createElement(
@@ -137,9 +124,9 @@ const Radio = (props) => {
137
124
  return;
138
125
  setCheckedStatement(!checkedStatement);
139
126
  };
140
- return React__default.createElement("div", { className: classNames(classPrefix2, {
127
+ return React__default.createElement("div", Object.assign({ className: classNames(classPrefix2, {
141
128
  [`${classPrefix2}-reverse`]: labelPosition === "left"
142
- }, className), style, onClick: handleClick, ...rest }, renderRadioItem());
129
+ }, className), style, onClick: handleClick }, rest), renderRadioItem());
143
130
  };
144
131
  Radio.defaultProps = defaultProps;
145
132
  Radio.displayName = "NutRadio";
@@ -1,21 +1,16 @@
1
+ import { a as __awaiter } from "./tslib.es6-BZ8i9Q6l.js";
1
2
  import React__default, { useState, useRef, useEffect, useCallback } from "react";
2
3
  import classNames from "classnames";
3
4
  import { View } from "@tarojs/components";
4
- import { u as useTouch } from "./use-touch-BUFdkOSA.js";
5
- import { C as ComponentDefaults } from "./typings-buMpDfSR.js";
6
- import { u as usePropsValue } from "./use-props-value-vKr0R0AX.js";
7
- import { g as getRectByTaro } from "./get-rect-by-taro-piSHvCGp.js";
8
- const defaultProps = {
9
- ...ComponentDefaults,
10
- range: false,
11
- min: 0,
12
- max: 100,
13
- step: 1,
14
- vertical: false,
15
- marks: {}
16
- };
5
+ import { u as useTouch } from "./use-touch-OfEaR5qi.js";
6
+ import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
7
+ import { u as usePropsValue } from "./use-props-value-SH9krhkx.js";
8
+ import { g as getRectByTaro } from "./get-rect-by-taro-CSN0TGnD.js";
9
+ import { a as useRtl } from "./configprovider.taro-CyU_tvNJ.js";
10
+ const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { range: false, min: 0, max: 100, step: 1, vertical: false, marks: {} });
17
11
  const Range = (props) => {
18
- const { className, range, disabled, button, vertical, marks, onChange, onStart, onEnd, minDescription, maxDescription, currentDescription, min, max, step, value, defaultValue } = { ...defaultProps, ...props };
12
+ const rtl = useRtl();
13
+ const { className, range, disabled, button, vertical, marks, onChange, onStart, onEnd, minDescription, maxDescription, currentDescription, min, max, step, value, defaultValue } = Object.assign(Object.assign({}, defaultProps), props);
19
14
  const classPrefix = "nut-range";
20
15
  const [buttonIndex, setButtonIndex] = useState(0);
21
16
  const [dragStatus, setDragStatus] = useState("start");
@@ -100,15 +95,17 @@ const Range = (props) => {
100
95
  transition: dragStatus ? "none" : void 0
101
96
  };
102
97
  }
98
+ const dir = rtl ? "right" : "left";
103
99
  return {
104
100
  width: calcMainAxis(),
105
- left: calcOffset(),
101
+ [dir]: calcOffset(),
106
102
  transition: dragStatus ? "none" : void 0
107
103
  };
108
104
  };
109
105
  const marksStyle = (mark) => {
106
+ const dir = rtl ? "right" : "left";
110
107
  let style = {
111
- left: `${(mark - min) / scope() * 100}%`
108
+ [dir]: `${(mark - min) / scope() * 100}%`
112
109
  };
113
110
  if (vertical) {
114
111
  style = {
@@ -147,12 +144,12 @@ const Range = (props) => {
147
144
  }
148
145
  end && onEnd && onEnd(value2);
149
146
  };
150
- const click = async (event) => {
147
+ const click = (event) => __awaiter(void 0, void 0, void 0, function* () {
151
148
  if (disabled || !root.current) {
152
149
  return;
153
150
  }
154
151
  setDragStatus("");
155
- const rect = await getRectByTaro(root.current);
152
+ const rect = yield getRectByTaro(root.current);
156
153
  let delta = (event.detail.x ? event.detail.x : event.clientX) - rect.left;
157
154
  let total = rect.width;
158
155
  if (vertical) {
@@ -172,7 +169,7 @@ const Range = (props) => {
172
169
  } else {
173
170
  updateValue(value2, true);
174
171
  }
175
- };
172
+ });
176
173
  const onTouchStart = (event) => {
177
174
  if (disabled) {
178
175
  return;
@@ -186,7 +183,7 @@ const Range = (props) => {
186
183
  }
187
184
  setDragStatus("start");
188
185
  };
189
- const onTouchMove = async (event) => {
186
+ const onTouchMove = (event) => __awaiter(void 0, void 0, void 0, function* () {
190
187
  if (disabled || !root.current) {
191
188
  return;
192
189
  }
@@ -195,10 +192,11 @@ const Range = (props) => {
195
192
  }
196
193
  touch.move(event);
197
194
  setDragStatus("draging");
198
- const rect = await getRectByTaro(root.current);
195
+ const rect = yield getRectByTaro(root.current);
199
196
  let delta = touch.deltaX.current;
200
197
  let total = rect.width;
201
198
  let diff = delta / total * scope();
199
+ diff = rtl ? -diff : diff;
202
200
  if (vertical) {
203
201
  delta = touch.deltaY.current;
204
202
  total = rect.height;
@@ -213,7 +211,7 @@ const Range = (props) => {
213
211
  }
214
212
  setEaxctValue(newValue);
215
213
  updateValue(newValue);
216
- };
214
+ });
217
215
  const onTouchEnd = () => {
218
216
  if (disabled) {
219
217
  return;
@@ -3,26 +3,13 @@ import classNames from "classnames";
3
3
  import { StarFill } from "@nutui/icons-react-taro";
4
4
  import { useReady } from "@tarojs/taro";
5
5
  import { View } from "@tarojs/components";
6
- import { C as ComponentDefaults } from "./typings-buMpDfSR.js";
7
- import { u as usePropsValue } from "./use-props-value-vKr0R0AX.js";
8
- import { g as getRectByTaro } from "./get-rect-by-taro-piSHvCGp.js";
9
- import { u as useRefs } from "./use-refs-IdrY0ww3.js";
10
- const defaultProps = {
11
- ...ComponentDefaults,
12
- count: 5,
13
- min: 0,
14
- checkedIcon: null,
15
- uncheckedIcon: null,
16
- disabled: false,
17
- readOnly: false,
18
- allowHalf: false,
19
- touchable: false
20
- };
6
+ import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
7
+ import { u as usePropsValue } from "./use-props-value-SH9krhkx.js";
8
+ import { g as getRectByTaro } from "./get-rect-by-taro-CSN0TGnD.js";
9
+ import { u as useRefs } from "./use-refs-BeEmziIR.js";
10
+ const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { count: 5, min: 0, checkedIcon: null, uncheckedIcon: null, disabled: false, readOnly: false, allowHalf: false, touchable: false });
21
11
  const Rate = (props) => {
22
- const { className, style, count, value, defaultValue, min, checkedIcon, uncheckedIcon, disabled, readOnly, allowHalf, touchable, onChange, onTouchEnd } = {
23
- ...defaultProps,
24
- ...props
25
- };
12
+ const { className, style, count, value, defaultValue, min, checkedIcon, uncheckedIcon, disabled, readOnly, allowHalf, touchable, onChange, onTouchEnd } = Object.assign(Object.assign({}, defaultProps), props);
26
13
  const classPrefix = "nut-rate";
27
14
  const [countArray, setCountArray] = useState([1, 2, 3, 4, 5]);
28
15
  const [refs, setRefs] = useRefs();
@@ -65,7 +52,7 @@ const Rate = (props) => {
65
52
  };
66
53
  const getScoreByPosition = (x) => {
67
54
  var _a;
68
- if ((_a = rateRects.current) == null ? void 0 : _a.length) {
55
+ if ((_a = rateRects.current) === null || _a === void 0 ? void 0 : _a.length) {
69
56
  for (let index = rateRects.current.length - 1; index >= 0; index--) {
70
57
  const item = rateRects.current[index];
71
58
  if (item && x > item.left) {
@@ -1,21 +1,11 @@
1
1
  import React__default from "react";
2
2
  import classNames from "classnames";
3
- import { D as DataContext } from "./UserContext-9BL0cq8w.js";
4
- import { C as ComponentDefaults } from "./typings-buMpDfSR.js";
3
+ import { D as DataContext } from "./UserContext-BlM0373q.js";
4
+ import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
5
5
  const classPrefix = "nut-row";
6
- const defaultProps = {
7
- ...ComponentDefaults,
8
- type: "",
9
- justify: "start",
10
- align: "flex-start",
11
- wrap: "nowrap",
12
- gutter: "0"
13
- };
6
+ const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { type: "", justify: "start", align: "flex-start", wrap: "nowrap", gutter: "0" });
14
7
  const Row = (props) => {
15
- const { className, style, children, type, justify, align, wrap, gutter, onClick } = {
16
- ...defaultProps,
17
- ...props
18
- };
8
+ const { className, style, children, type, justify, align, wrap, gutter, onClick } = Object.assign(Object.assign({}, defaultProps), props);
19
9
  const getClass = (prefix, type2) => {
20
10
  const classType = type2 ? `nut-row-${prefix}-${type2}` : "";
21
11
  const className2 = prefix ? classType : `nut-row-${type2}`;
@@ -1,31 +1,14 @@
1
1
  import React__default, { useRef, useState, useEffect } from "react";
2
2
  import { Search, ArrowLeft, MaskClose } from "@nutui/icons-react-taro";
3
- import { u as useConfig } from "./configprovider.taro-q5J2gQbi.js";
4
- import { C as ComponentDefaults } from "./typings-buMpDfSR.js";
5
- const defaultProps = {
6
- ...ComponentDefaults,
7
- placeholder: "",
8
- shape: "square",
9
- disabled: false,
10
- maxLength: 9999,
11
- clearable: true,
12
- readOnly: false,
13
- autoFocus: false,
14
- backable: false,
15
- left: "",
16
- right: "",
17
- rightIn: "",
18
- leftIn: React__default.createElement(Search, { size: "16" })
19
- };
3
+ import { u as useConfig } from "./configprovider.taro-CyU_tvNJ.js";
4
+ import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
5
+ const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { placeholder: "", shape: "square", disabled: false, maxLength: 9999, clearable: true, readOnly: false, autoFocus: false, backable: false, left: "", right: "", rightIn: "", leftIn: React__default.createElement(Search, { size: "16" }) });
20
6
  const SearchBar = (props) => {
21
7
  const classPrefix = "nut-searchbar";
22
8
  const { locale } = useConfig();
23
9
  const searchRef = useRef(null);
24
10
  const [value, setValue] = useState(() => props.value);
25
- const { placeholder, shape, className, disabled, maxLength, clearable, readOnly, autoFocus, backable, right, left, leftIn, rightIn, onChange, onFocus, onBlur, onClear, onSearch, onInputClick } = {
26
- ...defaultProps,
27
- ...props
28
- };
11
+ const { placeholder, shape, className, disabled, maxLength, clearable, readOnly, autoFocus, backable, right, left, leftIn, rightIn, onChange, onFocus, onBlur, onClear, onSearch, onInputClick } = Object.assign(Object.assign({}, defaultProps), props);
29
12
  const forceFocus = () => {
30
13
  const searchSelf = searchRef.current;
31
14
  searchSelf && searchSelf.focus();
@@ -33,19 +16,19 @@ const SearchBar = (props) => {
33
16
  const change = (event) => {
34
17
  if (value === event.target.value)
35
18
  return;
36
- onChange && (onChange == null ? void 0 : onChange(event.target.value, event));
19
+ onChange && (onChange === null || onChange === void 0 ? void 0 : onChange(event.target.value, event));
37
20
  setValue(event.target.value);
38
21
  event.target.value === "" && forceFocus();
39
22
  };
40
23
  const focus = (event) => {
41
24
  const { value: value2 } = event.target;
42
- onFocus && (onFocus == null ? void 0 : onFocus(value2, event));
25
+ onFocus && (onFocus === null || onFocus === void 0 ? void 0 : onFocus(value2, event));
43
26
  };
44
27
  const blur = (event) => {
45
28
  const searchSelf = searchRef.current;
46
29
  searchSelf && searchSelf.blur();
47
30
  const { value: value2 } = event.target;
48
- onBlur && (onBlur == null ? void 0 : onBlur(value2, event));
31
+ onBlur && (onBlur === null || onBlur === void 0 ? void 0 : onBlur(value2, event));
49
32
  };
50
33
  useEffect(() => {
51
34
  setValue(props.value || "");
@@ -54,7 +37,7 @@ const SearchBar = (props) => {
54
37
  autoFocus && forceFocus();
55
38
  }, [autoFocus]);
56
39
  const renderField = () => {
57
- return React__default.createElement("input", { className: `${classPrefix}-input ${clearable ? `${classPrefix}-input-clear` : ""}`, ref: searchRef, style: { ...props.style }, value: value || "", placeholder: placeholder || locale.placeholder, disabled, readOnly, maxLength, onKeyPress: onKeypress, onChange: (e) => change(e), onFocus: (e) => focus(e), onBlur: (e) => blur(e), onClick: (e) => clickInput(e) });
40
+ return React__default.createElement("input", { className: `${classPrefix}-input ${clearable ? `${classPrefix}-input-clear` : ""}`, ref: searchRef, style: Object.assign({}, props.style), value: value || "", placeholder: placeholder || locale.placeholder, disabled, readOnly, maxLength, onKeyPress: onKeypress, onChange: (e) => change(e), onFocus: (e) => focus(e), onBlur: (e) => blur(e), onClick: (e) => clickInput(e) });
58
41
  };
59
42
  const clickInput = (e) => {
60
43
  onInputClick && onInputClick(e);
@@ -104,7 +87,7 @@ const SearchBar = (props) => {
104
87
  };
105
88
  return React__default.createElement(
106
89
  "div",
107
- { className: `${classPrefix} ${disabled ? `${classPrefix}-disabled` : ""} ${className || ""}`, style: { ...props.style } },
90
+ { className: `${classPrefix} ${disabled ? `${classPrefix}-disabled` : ""} ${className || ""}`, style: Object.assign({}, props.style) },
108
91
  renderLeft(),
109
92
  React__default.createElement(
110
93
  "div",
@@ -1,25 +1,15 @@
1
+ import { _ as __rest } from "./tslib.es6-BZ8i9Q6l.js";
1
2
  import React__default, { useMemo, useImperativeHandle, useEffect } from "react";
2
3
  import { Tips } from "@nutui/icons-react-taro";
3
4
  import classNames from "classnames";
4
- import { P as Popup } from "./popup.taro-ObEUml4r.js";
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";
8
- const defaultProps = {
9
- ...ComponentDefaults,
10
- value: "",
11
- visible: false,
12
- plain: false,
13
- hideFooter: true,
14
- length: 6,
15
- autoFocus: false
16
- };
5
+ import { P as Popup } from "./popup.taro-Iy_WQZ-m.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";
9
+ const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { value: "", visible: false, plain: false, hideFooter: true, length: 6, autoFocus: false });
17
10
  const InternalShortPassword = (props, ref) => {
18
11
  const { locale } = useConfig();
19
- const { title, description, tips, visible: deleteVisible, value, error, hideFooter, length, plain, style, className, closeable, autoFocus, onFocus, onChange, onConfirm, onTips, onCancel, onClose, onComplete, onOverlayClick, onCloseIconClick, ...rest } = {
20
- ...defaultProps,
21
- ...props
22
- };
12
+ const _a = Object.assign(Object.assign({}, defaultProps), props), { title, description, tips, visible: deleteVisible, value, error, hideFooter, length, plain, style, className, closeable, autoFocus, onFocus, onChange, onConfirm, onTips, onCancel, onClose, onComplete, onOverlayClick, onCloseIconClick } = _a, rest = __rest(_a, ["title", "description", "tips", "visible", "value", "error", "hideFooter", "length", "plain", "style", "className", "closeable", "autoFocus", "onFocus", "onChange", "onConfirm", "onTips", "onCancel", "onClose", "onComplete", "onOverlayClick", "onCloseIconClick"]);
23
13
  const classPrefix = "nut-shortpassword";
24
14
  const comLen = useMemo(() => {
25
15
  return Math.min(Math.max(4, length || 4), 6);
@@ -59,11 +49,11 @@ const InternalShortPassword = (props, ref) => {
59
49
  };
60
50
  return React__default.createElement(
61
51
  Popup,
62
- { style: {
52
+ Object.assign({ style: {
63
53
  padding: "32px 24px 28px 24px",
64
54
  borderRadius: "12px",
65
55
  textAlign: "center"
66
- }, visible, closeable: true, onOverlayClick: onClose, onCloseIconClick: onClose, ...rest },
56
+ }, visible, closeable: true, onOverlayClick: onClose, onCloseIconClick: onClose }, rest),
67
57
  React__default.createElement(
68
58
  "div",
69
59
  { className: classNames(classPrefix, className), style },
@@ -1,19 +1,13 @@
1
+ import { _ as __rest } from "./tslib.es6-BZ8i9Q6l.js";
1
2
  import React__default, { useState } from "react";
2
3
  import classNames from "classnames";
3
- import { P as Popup } from "./popup.taro-ObEUml4r.js";
4
- import { O as OffsetContext } from "./context-6mGEMLsx.js";
5
- import { C as ComponentDefaults } from "./typings-buMpDfSR.js";
6
- const defaultProps = {
7
- ...ComponentDefaults,
8
- position: "left",
9
- width: "80%"
10
- };
4
+ import { P as Popup } from "./popup.taro-Iy_WQZ-m.js";
5
+ import { O as OffsetContext } from "./context-4T-L2x0_.js";
6
+ import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
7
+ const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { position: "left", width: "80%" });
11
8
  const SideNavBar = (props) => {
12
9
  const classPrefix = "nut-sidenavbar";
13
- const { title, visible, width, position, children, className, onClose, ...rest } = {
14
- ...defaultProps,
15
- ...props
16
- };
10
+ const _a = Object.assign(Object.assign({}, defaultProps), props), { title, visible, width, position, children, className, onClose } = _a, rest = __rest(_a, ["title", "visible", "width", "position", "children", "className", "onClose"]);
17
11
  const indent = props.indent ? Number(props.indent) : 20;
18
12
  const [sidenavbarShow, setSidenavbarShow] = useState(true);
19
13
  const handleClick = () => {
@@ -24,7 +18,7 @@ const SideNavBar = (props) => {
24
18
  { visible, style: { width, height: "100%" }, position, onClose },
25
19
  React__default.createElement(
26
20
  "div",
27
- { className: classNames(classPrefix, className), ...rest },
21
+ Object.assign({ className: classNames(classPrefix, className) }, rest),
28
22
  React__default.createElement(
29
23
  "div",
30
24
  { className: `${classPrefix}-content` },
@@ -0,0 +1,14 @@
1
+ import { _ as __rest } from "./tslib.es6-BZ8i9Q6l.js";
2
+ import React__default from "react";
3
+ const SideNavBarItem = (props) => {
4
+ const classPrefix = "nut-subsidenavbar";
5
+ const { title, value, children, onClick } = props, rest = __rest(props, ["title", "value", "children", "onClick"]);
6
+ const clickFn = (e) => {
7
+ e.stopPropagation();
8
+ onClick && onClick({ title, value });
9
+ };
10
+ return React__default.createElement("div", Object.assign({ className: `${classPrefix}-item ${classPrefix}-border-bt`, onClick: clickFn }, rest), title);
11
+ };
12
+ export {
13
+ SideNavBarItem as S
14
+ };
@@ -1,18 +1,10 @@
1
+ import { _ as __rest } from "./tslib.es6-BZ8i9Q6l.js";
1
2
  import React__default, { useRef, useState, useImperativeHandle, useEffect } from "react";
2
3
  import { getEnv, nextTick, createSelectorQuery, canvasToTempFilePath } from "@tarojs/taro";
3
- import { C as ComponentDefaults } from "./typings-buMpDfSR.js";
4
- const defaultProps = {
5
- ...ComponentDefaults,
6
- canvasId: "spcanvas",
7
- type: "png",
8
- lineWidth: 2,
9
- strokeStyle: "#1a1a1a"
10
- };
4
+ import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
5
+ const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { canvasId: "spcanvas", type: "png", lineWidth: 2, strokeStyle: "#1a1a1a" });
11
6
  const InternalSignature = (props, ref) => {
12
- const { canvasId, type, lineWidth, strokeStyle, className, style, onConfirm, onClear, ...rest } = {
13
- ...defaultProps,
14
- ...props
15
- };
7
+ const _a = Object.assign(Object.assign({}, defaultProps), props), { canvasId, type, lineWidth, strokeStyle, className, style, onConfirm, onClear } = _a, rest = __rest(_a, ["canvasId", "type", "lineWidth", "strokeStyle", "className", "style", "onConfirm", "onClear"]);
16
8
  const classPrefix = `nut-signature`;
17
9
  const canvasRef = useRef(null);
18
10
  const wrapRef = useRef(null);
@@ -38,9 +30,9 @@ const InternalSignature = (props, ref) => {
38
30
  mouseY = evt.clientY - coverPos.top;
39
31
  }
40
32
  nextTick(() => {
41
- var _a, _b;
42
- (_a = ctx.current) == null ? void 0 : _a.lineTo(mouseX, mouseY);
43
- (_b = ctx.current) == null ? void 0 : _b.stroke();
33
+ var _a2, _b;
34
+ (_a2 = ctx.current) === null || _a2 === void 0 ? void 0 : _a2.lineTo(mouseX, mouseY);
35
+ (_b = ctx.current) === null || _b === void 0 ? void 0 : _b.stroke();
44
36
  });
45
37
  }
46
38
  };
@@ -109,10 +101,10 @@ const InternalSignature = (props, ref) => {
109
101
  } else {
110
102
  const canvasDom = document.getElementById(`${canvasId}`);
111
103
  let canvas = canvasDom;
112
- if ((canvasDom == null ? void 0 : canvasDom.tagName) !== "CANVAS") {
113
- canvas = canvasDom == null ? void 0 : canvasDom.getElementsByTagName("canvas")[0];
104
+ if ((canvasDom === null || canvasDom === void 0 ? void 0 : canvasDom.tagName) !== "CANVAS") {
105
+ canvas = canvasDom === null || canvasDom === void 0 ? void 0 : canvasDom.getElementsByTagName("canvas")[0];
114
106
  }
115
- canvasSetting(canvas, canvasDom == null ? void 0 : canvasDom.offsetWidth, canvasDom == null ? void 0 : canvasDom.offsetHeight);
107
+ canvasSetting(canvas, canvasDom === null || canvasDom === void 0 ? void 0 : canvasDom.offsetWidth, canvasDom === null || canvasDom === void 0 ? void 0 : canvasDom.offsetHeight);
116
108
  }
117
109
  }, 1e3);
118
110
  });
@@ -122,7 +114,7 @@ const InternalSignature = (props, ref) => {
122
114
  }, []);
123
115
  return React__default.createElement(
124
116
  "div",
125
- { className: `${classPrefix} ${className}`, ...rest },
117
+ Object.assign({ className: `${classPrefix} ${className}` }, rest),
126
118
  React__default.createElement("div", { className: `${classPrefix}-inner spcanvas_WEAPP`, ref: wrapRef }, getEnv() === "WEAPP" || getEnv() === "JD" ? React__default.createElement("canvas", {
127
119
  id: canvasId,
128
120
  ref: canvasRef,
@@ -1,22 +1,11 @@
1
+ import { _ as __rest } from "./tslib.es6-BZ8i9Q6l.js";
1
2
  import React__default from "react";
2
3
  import classNames from "classnames";
3
- import { A as Avatar } from "./avatar.taro-7ltbzIdY.js";
4
- import { C as ComponentDefaults } from "./typings-buMpDfSR.js";
5
- const defaultProps = {
6
- ...ComponentDefaults,
7
- rows: 1,
8
- animated: false,
9
- title: false,
10
- avatar: false,
11
- avatarSize: "50px",
12
- visible: false,
13
- avatarShape: "round"
14
- };
4
+ import { A as Avatar } from "./avatar.taro-a6CX3kxV.js";
5
+ import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
6
+ const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { rows: 1, animated: false, title: false, avatar: false, avatarSize: "50px", visible: false, avatarShape: "round" });
15
7
  const Skeleton = (props) => {
16
- const { className, animated, rows, title, avatar, avatarSize, visible, children, avatarShape, ...rest } = {
17
- ...defaultProps,
18
- ...props
19
- };
8
+ const _a = Object.assign(Object.assign({}, defaultProps), props), { className, animated, rows, title, avatar, avatarSize, visible, children, avatarShape } = _a, rest = __rest(_a, ["className", "animated", "rows", "title", "avatar", "avatarSize", "visible", "children", "avatarShape"]);
20
9
  const classPrefix = "nut-skeleton";
21
10
  const classes = classNames(classPrefix, className);
22
11
  const avatarClass = classNames({
@@ -40,7 +29,7 @@ const Skeleton = (props) => {
40
29
  };
41
30
  return React__default.createElement(React__default.Fragment, null, visible ? React__default.createElement(React__default.Fragment, null, children) : React__default.createElement(
42
31
  "div",
43
- { className: classes, ...rest },
32
+ Object.assign({ className: classes }, rest),
44
33
  animated && React__default.createElement("div", { className: `${classPrefix}-animation` }),
45
34
  React__default.createElement(
46
35
  "div",
@@ -5,10 +5,7 @@ const defaultProps = {
5
5
  direction: "horizontal"
6
6
  };
7
7
  const Space = (props) => {
8
- const { className, style, children, wrap, align, direction, justify } = {
9
- ...defaultProps,
10
- ...props
11
- };
8
+ const { className, style, children, wrap, align, direction, justify } = Object.assign(Object.assign({}, defaultProps), props);
12
9
  const cls = classNames(prefixCls, wrap && `${prefixCls}-wrap`, direction && `${prefixCls}-${direction}`, align && `${prefixCls}-align-${align}`, justify && `${prefixCls}-justify-${justify}`, className);
13
10
  return React__default.createElement("div", { className: cls, style }, React__default.Children.map(children, (child) => {
14
11
  return child !== null && child !== void 0 && React__default.createElement("div", { className: `${prefixCls}-item` }, child);
@@ -1,20 +1,12 @@
1
+ import { _ as __rest } from "./tslib.es6-BZ8i9Q6l.js";
1
2
  import React__default, { useContext } from "react";
2
3
  import classNames from "classnames";
3
4
  import { View } from "@tarojs/components";
4
- import { D as DataContext } from "./context-9BL0cq8w.js";
5
- import { C as ComponentDefaults } from "./typings-buMpDfSR.js";
6
- const defaultProps = {
7
- ...ComponentDefaults,
8
- title: "",
9
- description: "",
10
- value: 0,
11
- icon: null
12
- };
5
+ import { D as DataContext } from "./context-BlM0373q.js";
6
+ import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
7
+ const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { title: "", description: "", value: 0, icon: null });
13
8
  const Step = (props) => {
14
- const { children, title, description, value, icon, className, ...restProps } = {
15
- ...defaultProps,
16
- ...props
17
- };
9
+ const _a = Object.assign(Object.assign({}, defaultProps), props), { children, title, description, value, icon, className } = _a, restProps = __rest(_a, ["children", "title", "description", "value", "icon", "className"]);
18
10
  const parent = useContext(DataContext);
19
11
  const dot = parent.propSteps.dot;
20
12
  const getCurrentStatus = () => {
@@ -24,8 +16,8 @@ const Step = (props) => {
24
16
  return index === +parent.propSteps.value ? "process" : "wait";
25
17
  };
26
18
  const handleClickStep = () => {
27
- var _a, _b;
28
- ((_a = parent.propSteps) == null ? void 0 : _a.onStepClick) && ((_b = parent.propSteps) == null ? void 0 : _b.onStepClick(value));
19
+ var _a2, _b;
20
+ ((_a2 = parent.propSteps) === null || _a2 === void 0 ? void 0 : _a2.onStepClick) && ((_b = parent.propSteps) === null || _b === void 0 ? void 0 : _b.onStepClick(value));
29
21
  };
30
22
  const classPrefix = `nut-step`;
31
23
  const classes = classNames(classPrefix, {
@@ -42,7 +34,7 @@ const Step = (props) => {
42
34
  };
43
35
  return React__default.createElement(
44
36
  "div",
45
- { className: classes, ...restProps, onClick: handleClickStep },
37
+ Object.assign({ className: classes }, restProps, { onClick: handleClickStep }),
46
38
  React__default.createElement(
47
39
  View,
48
40
  { className: "nut-step-head" },
@@ -0,0 +1,28 @@
1
+ import { _ as __rest } from "./tslib.es6-BZ8i9Q6l.js";
2
+ import React__default from "react";
3
+ import classNames from "classnames";
4
+ import { D as DataContext } from "./context-BlM0373q.js";
5
+ import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
6
+ const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { value: 0, direction: "horizontal", dot: false });
7
+ const Steps = (props) => {
8
+ const propSteps = Object.assign(Object.assign({}, defaultProps), props);
9
+ const { children, value, direction, className, dot, onStepClick } = propSteps, restProps = __rest(propSteps, ["children", "value", "direction", "className", "dot", "onStepClick"]);
10
+ const parentSteps = {
11
+ propSteps
12
+ };
13
+ const classPrefix = `nut-steps`;
14
+ const classes = classNames(classPrefix, {
15
+ [`${classPrefix}-${direction}`]: true,
16
+ [`${classPrefix}-dot`]: !!props.dot
17
+ }, className);
18
+ return React__default.createElement(
19
+ DataContext.Provider,
20
+ { value: parentSteps },
21
+ React__default.createElement("div", Object.assign({ className: classes }, restProps), children)
22
+ );
23
+ };
24
+ Steps.defaultProps = defaultProps;
25
+ Steps.displayName = "NutSteps";
26
+ export {
27
+ Steps as S
28
+ };