@nutui/nutui-react-taro 2.3.10 → 2.3.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (442) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist/esm/ActionSheet/style/style.css +1 -1
  3. package/dist/esm/ActionSheet.js +1 -13
  4. package/dist/esm/Address/style/style.css +1 -1
  5. package/dist/esm/Address.js +1 -21
  6. package/dist/esm/Animate/style/style.css +1 -1
  7. package/dist/esm/Animate.js +1 -4
  8. package/dist/esm/AnimatingNumbers.js +8 -22
  9. package/dist/esm/Audio/style/style.css +1 -1
  10. package/dist/esm/Audio.js +1 -15
  11. package/dist/esm/Avatar.js +1 -10
  12. package/dist/esm/AvatarCropper.js +1 -10
  13. package/dist/esm/AvatarGroup.js +1 -4
  14. package/dist/esm/BackTop.js +1 -6
  15. package/dist/esm/Badge/style/style.css +1 -1
  16. package/dist/esm/Badge.js +1 -4
  17. package/dist/esm/Barrage/style/style.css +1 -1
  18. package/dist/esm/Barrage.js +1 -7
  19. package/dist/esm/Button.js +1 -6
  20. package/dist/esm/Calendar/style/style.css +1 -1
  21. package/dist/esm/Calendar.js +1 -20
  22. package/dist/esm/CalendarCard.js +1 -8
  23. package/dist/esm/CalendarItem.js +1 -12
  24. package/dist/esm/Card/style/style.css +1 -1
  25. package/dist/esm/Card.js +1 -7
  26. package/dist/esm/Cascader/style/style.css +1 -1
  27. package/dist/esm/Cascader.js +1 -18
  28. package/dist/esm/Cell.js +1 -5
  29. package/dist/esm/CellGroup.js +1 -4
  30. package/dist/esm/Checkbox/style/style.css +1 -1
  31. package/dist/esm/Checkbox.js +1 -7
  32. package/dist/esm/CheckboxGroup/style/style.css +1 -1
  33. package/dist/esm/CheckboxGroup.js +1 -7
  34. package/dist/esm/CircleProgress.js +1 -6
  35. package/dist/esm/Col/style/style.css +1 -1
  36. package/dist/esm/Col.js +1 -5
  37. package/dist/esm/Collapse/style/style.css +1 -1
  38. package/dist/esm/Collapse.js +1 -8
  39. package/dist/esm/CollapseItem/style/style.css +1 -1
  40. package/dist/esm/CollapseItem.js +1 -5
  41. package/dist/esm/ConfigProvider.js +4 -6
  42. package/dist/esm/CountDown.js +1 -7
  43. package/dist/esm/DatePicker/style/style.css +1 -1
  44. package/dist/esm/DatePicker.js +1 -21
  45. package/dist/esm/Dialog/style/style.css +1 -1
  46. package/dist/esm/Dialog.js +1 -16
  47. package/dist/esm/Divider/style/style.css +1 -1
  48. package/dist/esm/Divider.js +1 -4
  49. package/dist/esm/Drag.js +1 -4
  50. package/dist/esm/Elevator.js +1 -6
  51. package/dist/esm/Ellipsis.js +1 -7
  52. package/dist/esm/Empty.js +1 -9
  53. package/dist/esm/FixedNav.js +1 -13
  54. package/dist/esm/Form/style/style.css +1 -1
  55. package/dist/esm/Form.js +7 -18
  56. package/dist/esm/FormItem/style/style.css +1 -1
  57. package/dist/esm/FormItem.js +1 -6
  58. package/dist/esm/Grid/style/style.css +1 -1
  59. package/dist/esm/Grid.js +1 -7
  60. package/dist/esm/GridItem/style/style.css +1 -1
  61. package/dist/esm/GridItem.js +1 -6
  62. package/dist/esm/Image.js +1 -7
  63. package/dist/esm/ImagePreview/style/style.css +1 -1
  64. package/dist/esm/ImagePreview.js +1 -20
  65. package/dist/esm/Indicator/style/style.css +1 -1
  66. package/dist/esm/Indicator.js +1 -3
  67. package/dist/esm/InfiniteLoading.js +1 -8
  68. package/dist/esm/Input.js +1 -11
  69. package/dist/esm/InputNumber.js +1 -7
  70. package/dist/esm/Layout.js +1 -2
  71. package/dist/esm/Loading.js +1 -5
  72. package/dist/esm/Menu/style/style.css +1 -1
  73. package/dist/esm/Menu.js +1 -15
  74. package/dist/esm/MenuItem/style/style.css +1 -1
  75. package/dist/esm/MenuItem.js +1 -14
  76. package/dist/esm/NavBar/style/style.css +1 -1
  77. package/dist/esm/NavBar.js +1 -7
  78. package/dist/esm/NoticeBar/style/style.css +1 -1
  79. package/dist/esm/NoticeBar.js +1 -7
  80. package/dist/esm/Notify.js +1 -9
  81. package/dist/esm/NumberKeyboard/style/style.css +1 -1
  82. package/dist/esm/NumberKeyboard.js +1 -15
  83. package/dist/esm/Overlay.js +1 -9
  84. package/dist/esm/Pagination.js +1 -8
  85. package/dist/esm/Picker/style/style.css +1 -1
  86. package/dist/esm/Picker.js +1 -19
  87. package/dist/esm/Popover/style/style.css +1 -1
  88. package/dist/esm/Popover.js +1 -14
  89. package/dist/esm/Popup/style/style.css +1 -1
  90. package/dist/esm/Popup.js +1 -12
  91. package/dist/esm/Price/style/style.css +1 -1
  92. package/dist/esm/Price.js +1 -3
  93. package/dist/esm/Progress.js +1 -4
  94. package/dist/esm/PullToRefresh.js +1 -10
  95. package/dist/esm/Radio/style/style.css +1 -1
  96. package/dist/esm/Radio.js +1 -7
  97. package/dist/esm/RadioGroup/style/style.css +1 -1
  98. package/dist/esm/RadioGroup.js +1 -7
  99. package/dist/esm/Range/style/style.css +1 -1
  100. package/dist/esm/Range.js +1 -10
  101. package/dist/esm/Rate.js +1 -11
  102. package/dist/esm/Row.js +1 -5
  103. package/dist/esm/SafeArea.js +1 -3
  104. package/dist/esm/SearchBar/style/style.css +1 -1
  105. package/dist/esm/SearchBar.js +1 -7
  106. package/dist/esm/ShortPassword/style/style.css +1 -1
  107. package/dist/esm/ShortPassword.js +1 -17
  108. package/dist/esm/SideNavBar/style/style.css +1 -1
  109. package/dist/esm/SideNavBar.js +1 -14
  110. package/dist/esm/SideNavBarItem.js +1 -2
  111. package/dist/esm/Signature.js +1 -4
  112. package/dist/esm/Skeleton/style/style.css +1 -1
  113. package/dist/esm/Skeleton.js +1 -11
  114. package/dist/esm/Space.js +1 -3
  115. package/dist/esm/Step/style/style.css +1 -1
  116. package/dist/esm/Step.js +1 -6
  117. package/dist/esm/Steps/style/style.css +1 -1
  118. package/dist/esm/Steps.js +1 -5
  119. package/dist/esm/Sticky.js +1 -7
  120. package/dist/esm/SubSideNavBar.js +1 -3
  121. package/dist/esm/Swipe/style/style.css +1 -1
  122. package/dist/esm/Swipe.js +1 -8
  123. package/dist/esm/Swiper/style/style.css +1 -1
  124. package/dist/esm/Swiper.js +9 -11
  125. package/dist/esm/SwiperItem.js +1 -2
  126. package/dist/esm/Switch/style/style.css +1 -1
  127. package/dist/esm/Switch.js +1 -5
  128. package/dist/esm/TabPane.js +1 -3
  129. package/dist/esm/Tabbar/style/style.css +1 -1
  130. package/dist/esm/Tabbar.js +1 -8
  131. package/dist/esm/TabbarItem/style/style.css +1 -1
  132. package/dist/esm/TabbarItem.js +1 -5
  133. package/dist/esm/Table/style/style.css +1 -1
  134. package/dist/esm/Table.js +1 -9
  135. package/dist/esm/Tabs/style/style.css +1 -1
  136. package/dist/esm/Tabs.js +1 -11
  137. package/dist/esm/Tag.js +1 -5
  138. package/dist/esm/TextArea/style/style.css +1 -1
  139. package/dist/esm/TextArea.js +1 -10
  140. package/dist/esm/TimeDetail.js +1 -4
  141. package/dist/esm/TimeSelect/style/style.css +1 -1
  142. package/dist/esm/TimeSelect.js +1 -16
  143. package/dist/esm/Toast.js +1 -15
  144. package/dist/esm/Tour/style/style.css +1 -1
  145. package/dist/esm/Tour.js +1 -16
  146. package/dist/esm/TrendArrow.js +1 -4
  147. package/dist/esm/Uploader.js +1 -14
  148. package/dist/esm/Video.js +1 -4
  149. package/dist/esm/VirtualList/style/style.css +1 -1
  150. package/dist/esm/VirtualList.js +1 -6
  151. package/dist/esm/WaterMark.js +1 -7
  152. package/dist/esm/{actionsheet.taro-6NiOrNyd.js → actionsheet.taro-C5BqWoML.js} +9 -17
  153. package/dist/esm/{address.taro-zQuxQEce.js → address.taro-DjlXNWie.js} +19 -44
  154. package/dist/esm/{animate.taro-m67VyUHP.js → animate.taro-Dg9jxZEu.js} +6 -14
  155. package/dist/esm/{audio.taro-dJgj5qIu.js → audio.taro-DXxWGngO.js} +14 -30
  156. package/dist/esm/avatar.taro-a6CX3kxV.js +86 -0
  157. package/dist/esm/{avatarcropper.taro-GIZxzMJ_.js → avatarcropper.taro-BFvFmK4t.js} +47 -90
  158. package/dist/esm/{avatargroup.taro-h6dpv6UX.js → avatargroup.taro-bpT5kPbf.js} +3 -11
  159. package/dist/esm/{backtop.taro-Y3vOJiXq.js → backtop.taro-B-zl6AEC.js} +4 -15
  160. package/dist/esm/{badge.taro-993L861f.js → badge.taro-CyDqBb9Z.js} +4 -15
  161. package/dist/esm/{barrage.taro-6nbq7wtt.js → barrage.taro-BNOcZsJ1.js} +18 -28
  162. package/dist/esm/{button.taro-3IIFy1M2.js → button.taro-OKGsDVW7.js} +8 -23
  163. package/dist/esm/{calendar.taro-iNNHje7V.js → calendar.taro-DbHJEx4G.js} +12 -39
  164. package/dist/esm/{calendarcard.taro-9s7naGmU.js → calendarcard.taro-BHGCq5zX.js} +10 -14
  165. package/dist/esm/{calendaritem.taro-o6Z8OOGY.js → calendaritem.taro-B8tN2DYa.js} +11 -36
  166. package/dist/esm/{card.taro-p4PTy-IU.js → card.taro-uLorQW97.js} +7 -22
  167. package/dist/esm/{cascader.taro-M2nZWxiB.js → cascader.taro-CpofskUL.js} +47 -83
  168. package/dist/esm/{cell.taro-jD6MoFTj.js → cell.taro-CCnLF6RC.js} +9 -23
  169. package/dist/esm/{cellgroup.taro-08A3XAze.js → cellgroup.taro-Dz69kT6e.js} +5 -12
  170. package/dist/esm/{checkbox.taro-xMxWdpyI.js → checkbox.taro-D9F_HM7f.js} +19 -29
  171. package/dist/esm/{circleprogress.taro-myZgamBw.js → circleprogress.taro-CKSrzt8Q.js} +8 -22
  172. package/dist/esm/{col.taro-5FMpttLE.js → col.taro-C8DUuJYh.js} +5 -13
  173. package/dist/esm/{collapse.taro-sZibDygv.js → collapse.taro-BM0BsN30.js} +5 -14
  174. package/dist/esm/{collapseitem.taro-AaQ_msgd.js → collapseitem.taro-D_m4VEdG.js} +7 -16
  175. package/dist/esm/configprovider.taro-CyU_tvNJ.js +202 -0
  176. package/dist/esm/{countdown.taro-XZlfWBrA.js → countdown.taro-Dfa9kpmZ.js} +8 -18
  177. package/dist/esm/{datepicker.taro-DrXkqJkN.js → datepicker.taro-DshCn7Rn.js} +13 -25
  178. package/dist/esm/{dialog.taro-dmQGDu3o.js → dialog.taro-xsQhsC1V.js} +19 -19
  179. package/dist/esm/{divider.taro-H5fKry4P.js → divider.taro-DRcO_m9e.js} +5 -11
  180. package/dist/esm/{drag.taro-BwcleRuB.js → drag.taro-CcHIO07Y.js} +10 -18
  181. package/dist/esm/{elevator.taro-2nbUM3vH.js → elevator.taro-uhrF7ChY.js} +5 -17
  182. package/dist/esm/{ellipsis.taro-VApVqS_j.js → ellipsis.taro-B_mTyNyk.js} +25 -34
  183. package/dist/esm/{empty.taro-gwvOr1xf.js → empty.taro-Brkv6B2Z.js} +8 -18
  184. package/dist/esm/{fixednav.taro-QVBXysDj.js → fixednav.taro-WTBxWxOo.js} +10 -21
  185. package/dist/esm/formitem.taro-Brz5dj_8.js +330 -0
  186. package/dist/esm/{get-rect-by-taro-piSHvCGp.js → get-rect-by-taro-CSN0TGnD.js} +3 -2
  187. package/dist/esm/{grid.taro-3X-_AhXw.js → grid.taro-BA76RrgT.js} +5 -4
  188. package/dist/esm/{griditem.taro-TJDJVeQy.js → griditem.taro-JLddv9zD.js} +6 -11
  189. package/dist/esm/{image.taro-FfeikBlO.js → image.taro-BLz2WCva.js} +5 -6
  190. package/dist/esm/{imagepreview.taro--fVrJUOE.js → imagepreview.taro-Bb1TkBCV.js} +13 -31
  191. package/dist/esm/{indicator.taro-ZH6MICsS.js → indicator.taro-CpHZtD9p.js} +3 -5
  192. package/dist/esm/{infiniteloading.taro-BO0_y46K.js → infiniteloading.taro-Ccq4bEzk.js} +14 -21
  193. package/dist/esm/{input.taro-YoPsV-op.js → input.taro-BVC8gEuk.js} +17 -31
  194. package/dist/esm/inputnumber.taro-F3jNGr_V.js +158 -0
  195. package/dist/esm/{layout.taro-lnN-wB0Y.js → layout.taro-BE2868d6.js} +1 -1
  196. package/dist/esm/{loading.taro-aHN6xLIT.js → loading.taro-CRF1z5wQ.js} +5 -8
  197. package/dist/esm/{menu.taro-ODwHYGFM.js → menu.taro-BAiJPGR7.js} +12 -25
  198. package/dist/esm/{menuitem.taro-9nyTDLpt.js → menuitem.taro-oLv6ZYC5.js} +15 -36
  199. package/dist/esm/{navbar.taro-AuKPDCaW.js → navbar.taro-B8u3DOE4.js} +14 -29
  200. package/dist/esm/{noticebar.taro-bHnEzTvL.js → noticebar.taro-CMdfOp2g.js} +16 -32
  201. package/dist/esm/{notify.taro-mA9KS8qh.js → notify.taro-jP7y9zMU.js} +6 -15
  202. package/dist/esm/{numberkeyboard.taro-bF6VCXry.js → numberkeyboard.taro-B9rMgy7D.js} +9 -16
  203. package/dist/esm/nutui-react.es.js +93 -118
  204. package/dist/esm/{overlay.taro-HsGeVyPh.js → overlay.taro-BaBu-3-F.js} +10 -22
  205. package/dist/esm/{pagination.taro-C4_Ey5KC.js → pagination.taro-DAK6ddag.js} +7 -19
  206. package/dist/esm/{picker.taro-csU3SZPF.js → picker.taro-Cmng9GW9.js} +34 -43
  207. package/dist/esm/{popover.taro-qldQwLPC.js → popover.taro-CcKwnX27.js} +23 -41
  208. package/dist/esm/{popup.taro-ObEUml4r.js → popup.taro-Iy_WQZ-m.js} +8 -32
  209. package/dist/esm/{price.taro-Z1zR8YWV.js → price.taro-UVRHPHRD.js} +5 -16
  210. package/dist/esm/{progress.taro-pStvlrbA.js → progress.taro-BOHykt7X.js} +8 -14
  211. package/dist/esm/{pulltorefresh.taro-2jER8Mat.js → pulltorefresh.taro-BJdQj5sL.js} +31 -47
  212. package/dist/esm/{radio.taro-EKJXMjnX.js → radio.taro-CjJgX9o2.js} +20 -33
  213. package/dist/esm/{range.taro-mDYY3SXA.js → range.taro-BxMDs5Cy.js} +20 -22
  214. package/dist/esm/{rate.taro-_5Mjd_EO.js → rate.taro-BABLqt4h.js} +7 -20
  215. package/dist/esm/{row.taro-IxNlKKQM.js → row.taro-D8chDydP.js} +4 -14
  216. package/dist/esm/{searchbar.taro-hVzdT6nI.js → searchbar.taro-PfVx6o-6.js} +9 -26
  217. package/dist/esm/{shortpassword.taro-ECs_E1Xn.js → shortpassword.taro-BXsxku33.js} +10 -20
  218. package/dist/esm/{sidenavbar.taro-8qoGZg5n.js → sidenavbar.taro-eK5vaZPR.js} +7 -13
  219. package/dist/esm/sidenavbaritem.taro-L7HbsCLn.js +14 -0
  220. package/dist/esm/{signature.taro-y3qxnKMv.js → signature.taro-KPm_xs66.js} +11 -19
  221. package/dist/esm/{skeleton.taro-Pg7WtP0e.js → skeleton.taro-BwIDIf2p.js} +8 -19
  222. package/dist/esm/{space.taro-q3R_yq79.js → space.taro-CZ999etm.js} +1 -4
  223. package/dist/esm/{step.taro-_DEZqFGb.js → step.taro-DLr2GzYk.js} +8 -16
  224. package/dist/esm/steps.taro-C8Yg1Sns.js +28 -0
  225. package/dist/esm/{sticky.taro-p-evMNR-.js → sticky.taro-DRBk3gkQ.js} +12 -15
  226. package/dist/esm/{subsidenavbar.taro-Zy52MDDG.js → subsidenavbar.taro-ByxYpgfP.js} +7 -9
  227. package/dist/esm/{swipe.taro-p2ONOq1o.js → swipe.taro-wm7YWwaj.js} +29 -31
  228. package/dist/esm/{swiperitem.taro-BC1CE0T-.js → swiperitem.taro-8JXI24f0.js} +3 -1
  229. package/dist/esm/{switch.taro-L0BAbMeu.js → switch.taro-D1HgJoJz.js} +6 -13
  230. package/dist/esm/{tabbar.taro-QE0rjSKE.js → tabbar.taro-8_SmJofa.js} +7 -18
  231. package/dist/esm/tabbaritem.taro-Cb-yfOln.js +58 -0
  232. package/dist/esm/{table.taro-0zRh2hq6.js → table.taro-0BcEBB0F.js} +7 -18
  233. package/dist/esm/{tabpane.taro-5k7wWimS.js → tabpane.taro-BAe86j3t.js} +1 -4
  234. package/dist/esm/{tabs.taro-Yj7vgtSg.js → tabs.taro-HgAoKBAc.js} +14 -30
  235. package/dist/esm/{tag.taro-5KC_wObY.js → tag.taro-BsmY5QfN.js} +7 -22
  236. package/dist/esm/{textarea.taro-9zQLTCwU.js → textarea.taro-BJIFCpKb.js} +11 -20
  237. package/dist/esm/{timedetail.taro-TF9Wcblh.js → timedetail.taro-x6Zey1xi.js} +11 -21
  238. package/dist/esm/{timeselect.taro-j8LgSCe5.js → timeselect.taro-BXq4APSJ.js} +20 -33
  239. package/dist/esm/{toast.taro-xnEQSCDJ.js → toast.taro-BIR_7Wgb.js} +8 -26
  240. package/dist/esm/{tour.taro-CGEjzzN_.js → tour.taro-CMagdKcp.js} +7 -24
  241. package/dist/esm/{trendarrow.taro-hsM6-XsQ.js → trendarrow.taro-BHUetKSS.js} +6 -18
  242. package/dist/esm/tslib.es6-BZ8i9Q6l.js +47 -0
  243. package/dist/esm/types/src/packages/button/demos/h5/demo1.d.ts +3 -0
  244. package/dist/esm/types/src/packages/button/demos/h5/demo2.d.ts +3 -0
  245. package/dist/esm/types/src/packages/button/demos/h5/demo3.d.ts +3 -0
  246. package/dist/esm/types/src/packages/button/demos/h5/demo4.d.ts +3 -0
  247. package/dist/esm/types/src/packages/button/demos/h5/demo5.d.ts +3 -0
  248. package/dist/esm/types/src/packages/button/demos/h5/demo6.d.ts +3 -0
  249. package/dist/esm/types/src/packages/button/demos/h5/demo7.d.ts +3 -0
  250. package/dist/esm/types/src/packages/button/demos/h5/demo8.d.ts +3 -0
  251. package/dist/esm/types/src/packages/button/demos/h5/demo9.d.ts +3 -0
  252. package/dist/esm/types/src/packages/button/demos/taro/demo1.d.ts +3 -0
  253. package/dist/esm/types/src/packages/button/demos/taro/demo10.d.ts +3 -0
  254. package/dist/esm/types/src/packages/button/demos/taro/demo2.d.ts +3 -0
  255. package/dist/esm/types/src/packages/button/demos/taro/demo3.d.ts +3 -0
  256. package/dist/esm/types/src/packages/button/demos/taro/demo4.d.ts +3 -0
  257. package/dist/esm/types/src/packages/button/demos/taro/demo5.d.ts +3 -0
  258. package/dist/esm/types/src/packages/button/demos/taro/demo6.d.ts +3 -0
  259. package/dist/esm/types/src/packages/button/demos/taro/demo7.d.ts +3 -0
  260. package/dist/esm/types/src/packages/button/demos/taro/demo8.d.ts +3 -0
  261. package/dist/esm/types/src/packages/button/demos/taro/demo9.d.ts +3 -0
  262. package/dist/esm/types/src/packages/configprovider/configprovider.d.ts +1 -0
  263. package/dist/esm/types/src/packages/configprovider/configprovider.taro.d.ts +1 -0
  264. package/dist/esm/types/src/packages/configprovider/index.d.ts +2 -2
  265. package/dist/esm/types/src/packages/configprovider/index.taro.d.ts +2 -2
  266. package/dist/esm/types/src/packages/inputnumber/inputnumber.d.ts +15 -15
  267. package/dist/esm/types/src/packages/inputnumber/inputnumber.taro.d.ts +17 -17
  268. package/dist/esm/{uploader.taro-bRF02TR9.js → uploader.taro-CuaIVvya.js} +47 -99
  269. package/dist/esm/{use-custom-event-XvsODK8c.js → use-custom-event-DuP4onEm.js} +5 -5
  270. package/dist/esm/{use-props-value-vKr0R0AX.js → use-props-value-SH9krhkx.js} +2 -2
  271. package/dist/esm/{video.taro-csvHwS2v.js → video.taro-CEMVfhCS.js} +3 -5
  272. package/dist/esm/{virtuallist.taro-AeTVtFFa.js → virtuallist.taro-C5vZAyza.js} +7 -17
  273. package/dist/esm/{watermark.taro-nvSmcwu-.js → watermark.taro-BxM8VfXb.js} +5 -30
  274. package/dist/locales/base.js +1 -1
  275. package/dist/locales/en-US.js +1 -1
  276. package/dist/locales/id-ID.js +1 -1
  277. package/dist/locales/tr-TR.js +1 -1
  278. package/dist/locales/zh-CN.js +1 -1
  279. package/dist/locales/zh-TW.js +1 -1
  280. package/dist/locales/zh-UG.js +1 -1
  281. package/dist/nutui.react.es.js +439 -497
  282. package/dist/nutui.react.umd.js +440 -498
  283. package/dist/packages/animate/animate.scss +0 -27
  284. package/dist/packages/audio/audio.scss +0 -5
  285. package/dist/packages/avatarcropper/avatarcropper.scss +0 -2
  286. package/dist/packages/badge/badge.scss +7 -0
  287. package/dist/packages/barrage/barrage.scss +22 -3
  288. package/dist/packages/button/button.scss +0 -1
  289. package/dist/packages/calendar/calendar.scss +4 -4
  290. package/dist/packages/calendarcard/calendarcard.scss +0 -1
  291. package/dist/packages/cascader/cascader.scss +0 -1
  292. package/dist/packages/checkbox/checkbox.scss +0 -2
  293. package/dist/packages/checkboxgroup/checkboxgroup.scss +1 -3
  294. package/dist/packages/col/col.scss +2 -2
  295. package/dist/packages/collapseitem/collapseitem.scss +2 -3
  296. package/dist/packages/dialog/dialog.scss +4 -0
  297. package/dist/packages/divider/divider.scss +1 -1
  298. package/dist/packages/fixednav/fixednav.scss +0 -2
  299. package/dist/packages/form/form.scss +24 -26
  300. package/dist/packages/formitem/formitem.scss +0 -1
  301. package/dist/packages/grid/grid.scss +1 -1
  302. package/dist/packages/griditem/griditem.scss +28 -26
  303. package/dist/packages/imagepreview/imagepreview.scss +0 -1
  304. package/dist/packages/indicator/indicator.scss +2 -3
  305. package/dist/packages/menu/menu.scss +0 -7
  306. package/dist/packages/menuitem/menuitem.scss +14 -10
  307. package/dist/packages/navbar/navbar.scss +3 -5
  308. package/dist/packages/noticebar/noticebar.scss +20 -0
  309. package/dist/packages/numberkeyboard/numberkeyboard.scss +25 -18
  310. package/dist/packages/pagination/pagination.scss +0 -2
  311. package/dist/packages/picker/picker.scss +9 -0
  312. package/dist/packages/popover/popover.scss +0 -4
  313. package/dist/packages/popup/popup.scss +3 -19
  314. package/dist/packages/price/price.scss +1 -0
  315. package/dist/packages/radio/radio.scss +0 -1
  316. package/dist/packages/radiogroup/radiogroup.scss +10 -1
  317. package/dist/packages/range/range.scss +127 -127
  318. package/dist/packages/rate/rate.scss +0 -1
  319. package/dist/packages/searchbar/searchbar.scss +3 -2
  320. package/dist/packages/shortpassword/shortpassword.scss +4 -0
  321. package/dist/packages/skeleton/skeleton.scss +13 -3
  322. package/dist/packages/space/space.scss +0 -1
  323. package/dist/packages/step/step.scss +21 -25
  324. package/dist/packages/swipe/swipe.scss +0 -15
  325. package/dist/packages/swiper/swiper.scss +0 -1
  326. package/dist/packages/switch/switch.scss +11 -0
  327. package/dist/packages/table/table.scss +4 -5
  328. package/dist/packages/tabs/tabs.scss +2 -4
  329. package/dist/packages/tag/tag.scss +0 -1
  330. package/dist/packages/textarea/textarea.scss +1 -6
  331. package/dist/packages/timeselect/timeselect.scss +1 -6
  332. package/dist/packages/tour/tour.scss +1 -5
  333. package/dist/packages/trendarrow/trendarrow.scss +0 -1
  334. package/dist/packages/uploader/uploader.scss +0 -1
  335. package/dist/packages/virtuallist/virtuallist.scss +12 -12
  336. package/dist/style.css +1 -1
  337. package/dist/style.mjs +1 -1
  338. package/dist/styles/variables-jmapp.scss +4 -0
  339. package/dist/styles/variables.scss +11 -7
  340. package/dist/types/index.d.ts +98 -98
  341. package/dist/types/packages/actionsheet/actionsheet.d.ts +1 -1
  342. package/dist/types/packages/actionsheet/actionsheet.taro.d.ts +1 -1
  343. package/dist/types/packages/address/address.d.ts +1 -1
  344. package/dist/types/packages/address/address.taro.d.ts +1 -1
  345. package/dist/types/packages/address/customRender.d.ts +1 -1
  346. package/dist/types/packages/address/customRender.taro.d.ts +1 -1
  347. package/dist/types/packages/avatar/avatar.d.ts +1 -1
  348. package/dist/types/packages/avatar/avatar.taro.d.ts +1 -1
  349. package/dist/types/packages/button/demos/h5/demo1.d.ts +3 -0
  350. package/dist/types/packages/button/demos/h5/demo2.d.ts +3 -0
  351. package/dist/types/packages/button/demos/h5/demo3.d.ts +3 -0
  352. package/dist/types/packages/button/demos/h5/demo4.d.ts +3 -0
  353. package/dist/types/packages/button/demos/h5/demo5.d.ts +3 -0
  354. package/dist/types/packages/button/demos/h5/demo6.d.ts +3 -0
  355. package/dist/types/packages/button/demos/h5/demo7.d.ts +3 -0
  356. package/dist/types/packages/button/demos/h5/demo8.d.ts +3 -0
  357. package/dist/types/packages/button/demos/h5/demo9.d.ts +3 -0
  358. package/dist/types/packages/button/demos/taro/demo1.d.ts +3 -0
  359. package/dist/types/packages/button/demos/taro/demo10.d.ts +3 -0
  360. package/dist/types/packages/button/demos/taro/demo2.d.ts +3 -0
  361. package/dist/types/packages/button/demos/taro/demo3.d.ts +3 -0
  362. package/dist/types/packages/button/demos/taro/demo4.d.ts +3 -0
  363. package/dist/types/packages/button/demos/taro/demo5.d.ts +3 -0
  364. package/dist/types/packages/button/demos/taro/demo6.d.ts +3 -0
  365. package/dist/types/packages/button/demos/taro/demo7.d.ts +3 -0
  366. package/dist/types/packages/button/demos/taro/demo8.d.ts +3 -0
  367. package/dist/types/packages/button/demos/taro/demo9.d.ts +3 -0
  368. package/dist/types/packages/calendaritem/calendaritem.d.ts +1 -1
  369. package/dist/types/packages/calendaritem/calendaritem.taro.d.ts +1 -1
  370. package/dist/types/packages/cascader/cascader.d.ts +1 -1
  371. package/dist/types/packages/cascader/cascader.taro.d.ts +1 -1
  372. package/dist/types/packages/cell/cell.d.ts +1 -1
  373. package/dist/types/packages/cell/cell.taro.d.ts +1 -1
  374. package/dist/types/packages/checkbox/checkbox.d.ts +2 -2
  375. package/dist/types/packages/checkbox/checkbox.taro.d.ts +2 -2
  376. package/dist/types/packages/checkboxgroup/checkboxgroup.d.ts +2 -2
  377. package/dist/types/packages/checkboxgroup/checkboxgroup.taro.d.ts +2 -2
  378. package/dist/types/packages/configprovider/configprovider.d.ts +1 -0
  379. package/dist/types/packages/configprovider/configprovider.taro.d.ts +1 -0
  380. package/dist/types/packages/configprovider/index.d.ts +2 -2
  381. package/dist/types/packages/configprovider/index.taro.d.ts +2 -2
  382. package/dist/types/packages/datepicker/datepicker.d.ts +1 -1
  383. package/dist/types/packages/datepicker/datepicker.taro.d.ts +1 -1
  384. package/dist/types/packages/dialog/dialogwrap.d.ts +1 -1
  385. package/dist/types/packages/empty/empty.d.ts +1 -1
  386. package/dist/types/packages/empty/empty.taro.d.ts +15 -3
  387. package/dist/types/packages/fixednav/fixednav.d.ts +1 -1
  388. package/dist/types/packages/fixednav/fixednav.taro.d.ts +1 -1
  389. package/dist/types/packages/form/form.d.ts +1 -1
  390. package/dist/types/packages/form/form.taro.d.ts +1 -1
  391. package/dist/types/packages/form/index.d.ts +1 -1
  392. package/dist/types/packages/form/index.taro.d.ts +1 -1
  393. package/dist/types/packages/inputnumber/inputnumber.d.ts +15 -15
  394. package/dist/types/packages/inputnumber/inputnumber.taro.d.ts +33 -29
  395. package/dist/types/packages/menu/menu.d.ts +1 -1
  396. package/dist/types/packages/menu/menu.taro.d.ts +1 -1
  397. package/dist/types/packages/numberkeyboard/numberkeyboard.d.ts +1 -1
  398. package/dist/types/packages/numberkeyboard/numberkeyboard.taro.d.ts +1 -1
  399. package/dist/types/packages/nutui.react.build.d.ts +98 -98
  400. package/dist/types/packages/nutui.react.d.ts +98 -98
  401. package/dist/types/packages/nutui.react.taro.d.ts +98 -98
  402. package/dist/types/packages/picker/picker.d.ts +1 -1
  403. package/dist/types/packages/picker/picker.taro.d.ts +1 -1
  404. package/dist/types/packages/popover/popover.d.ts +1 -1
  405. package/dist/types/packages/popover/popover.taro.d.ts +1 -1
  406. package/dist/types/packages/popup/popup.d.ts +1 -1
  407. package/dist/types/packages/popup/popup.taro.d.ts +1 -1
  408. package/dist/types/packages/radio/radio.d.ts +2 -2
  409. package/dist/types/packages/radio/radio.taro.d.ts +2 -2
  410. package/dist/types/packages/shortpassword/shortpassword.d.ts +1 -1
  411. package/dist/types/packages/shortpassword/shortpassword.taro.d.ts +1 -1
  412. package/dist/types/packages/swiper/index.d.ts +1 -1
  413. package/dist/types/packages/swiper/index.taro.d.ts +1 -1
  414. package/dist/types/packages/tabs/tabs.d.ts +1 -1
  415. package/dist/types/packages/tabs/tabs.taro.d.ts +1 -1
  416. package/dist/types/packages/timedetail/timedetail.d.ts +1 -1
  417. package/dist/types/packages/timedetail/timedetail.taro.d.ts +1 -1
  418. package/dist/types/packages/tour/tour.d.ts +1 -1
  419. package/dist/types/packages/tour/tour.taro.d.ts +1 -1
  420. package/package.json +9 -5
  421. package/dist/esm/avatar.taro-7ltbzIdY.js +0 -109
  422. package/dist/esm/configprovider.taro-q5J2gQbi.js +0 -486
  423. package/dist/esm/formitem.taro-PPkTQGfW.js +0 -1435
  424. package/dist/esm/index-oitVOJp9.js +0 -661
  425. package/dist/esm/inputnumber.taro-7QptygT3.js +0 -197
  426. package/dist/esm/sidenavbaritem.taro-AxJNRAdi.js +0 -13
  427. package/dist/esm/steps.taro-PH0qWPla.js +0 -32
  428. package/dist/esm/tabbaritem.taro-t9C07OYX.js +0 -73
  429. /package/dist/esm/{UserContext-9BL0cq8w.js → UserContext-BlM0373q.js} +0 -0
  430. /package/dist/esm/{context-6mGEMLsx.js → context-4T-L2x0_.js} +0 -0
  431. /package/dist/esm/{context-9BL0cq8w.js → context-BlM0373q.js} +0 -0
  432. /package/dist/esm/{date-nxKOxj5-.js → date-D0pth0qC.js} +0 -0
  433. /package/dist/esm/{get-scroll-parent-uywvoQMl.js → get-scroll-parent-DB1VRg11.js} +0 -0
  434. /package/dist/esm/{index-YvHA__3D.js → index-DeNfBlua.js} +0 -0
  435. /package/dist/esm/{pad-zero-iY-0-oys.js → pad-zero-B2OUQfh7.js} +0 -0
  436. /package/dist/esm/{px-check-JiWLYN2v.js → px-check-D1Xbd9pj.js} +0 -0
  437. /package/dist/esm/{raf-UzmDvMUW.js → raf-zwv-SBjP.js} +0 -0
  438. /package/dist/esm/{safearea.taro-afu_mY7g.js → safearea.taro-BMQHr7tu.js} +0 -0
  439. /package/dist/esm/{typings-buMpDfSR.js → typings-DV9RBfhj.js} +0 -0
  440. /package/dist/esm/{use-force-update-0oEVD8Nr.js → use-force-update-CudFjCsy.js} +0 -0
  441. /package/dist/esm/{use-refs-IdrY0ww3.js → use-refs-BeEmziIR.js} +0 -0
  442. /package/dist/esm/{use-touch-BUFdkOSA.js → use-touch-OfEaR5qi.js} +0 -0
@@ -1,44 +1,17 @@
1
1
  import React__default, { useRef } from "react";
2
- import { P as Popup } from "./popup.taro-ObEUml4r.js";
3
- import { C as CalendarItem } from "./calendaritem.taro-o6Z8OOGY.js";
4
- import { U as Utils } from "./date-nxKOxj5-.js";
5
- import { u as useConfig } from "./configprovider.taro-q5J2gQbi.js";
6
- import { C as ComponentDefaults } from "./typings-buMpDfSR.js";
7
- const defaultProps = {
8
- ...ComponentDefaults,
9
- type: "single",
10
- autoBackfill: false,
11
- popup: true,
12
- visible: false,
13
- title: "",
14
- defaultValue: "",
15
- startDate: Utils.getDay(0),
16
- endDate: Utils.getDay(365),
17
- showToday: true,
18
- startText: "",
19
- endText: "",
20
- confirmText: "",
21
- showTitle: true,
22
- showSubTitle: true,
23
- scrollAnimation: true,
24
- firstDayOfWeek: 0,
25
- disableDate: (date) => false,
26
- renderHeaderButtons: void 0,
27
- renderDay: void 0,
28
- renderDayTop: void 0,
29
- renderDayBottom: void 0,
30
- onClose: () => {
31
- },
32
- onConfirm: (param) => {
33
- },
34
- onDayClick: (data) => {
35
- },
36
- onPageChange: (param) => {
37
- }
38
- };
2
+ import { P as Popup } from "./popup.taro-Iy_WQZ-m.js";
3
+ import { C as CalendarItem } from "./calendaritem.taro-B8tN2DYa.js";
4
+ import { U as Utils } from "./date-D0pth0qC.js";
5
+ import { u as useConfig } from "./configprovider.taro-CyU_tvNJ.js";
6
+ import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
7
+ const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { type: "single", autoBackfill: false, popup: true, visible: false, title: "", defaultValue: "", startDate: Utils.getDay(0), endDate: Utils.getDay(365), showToday: true, startText: "", endText: "", confirmText: "", showTitle: true, showSubTitle: true, scrollAnimation: true, firstDayOfWeek: 0, disableDate: (date) => false, renderHeaderButtons: void 0, renderDay: void 0, renderDayTop: void 0, renderDayBottom: void 0, onClose: () => {
8
+ }, onConfirm: (param) => {
9
+ }, onDayClick: (data) => {
10
+ }, onPageChange: (param) => {
11
+ } });
39
12
  const Calendar = React__default.forwardRef((props, ref) => {
40
13
  const { locale } = useConfig();
41
- const { style, className, children, popup, visible, type, autoBackfill, title, defaultValue, startDate, endDate, showToday, startText, endText, confirmText, showTitle, showSubTitle, scrollAnimation, firstDayOfWeek, disableDate, renderHeaderButtons, renderDay, renderDayTop, renderDayBottom, onClose, onConfirm, onDayClick, onPageChange } = { ...defaultProps, ...props };
14
+ const { style, className, children, popup, visible, type, autoBackfill, title, defaultValue, startDate, endDate, showToday, startText, endText, confirmText, showTitle, showSubTitle, scrollAnimation, firstDayOfWeek, disableDate, renderHeaderButtons, renderDay, renderDayTop, renderDayBottom, onClose, onConfirm, onDayClick, onPageChange } = Object.assign(Object.assign({}, defaultProps), props);
42
15
  const calendarRef = useRef(null);
43
16
  const close = () => {
44
17
  onClose && onClose();
@@ -55,7 +28,7 @@ const Calendar = React__default.forwardRef((props, ref) => {
55
28
  };
56
29
  const scrollToDate = (date) => {
57
30
  var _a;
58
- (_a = calendarRef.current) == null ? void 0 : _a.scrollToDate(date);
31
+ (_a = calendarRef.current) === null || _a === void 0 ? void 0 : _a.scrollToDate(date);
59
32
  };
60
33
  const yearMonthChange = (param) => {
61
34
  onPageChange && onPageChange(param);
@@ -1,9 +1,9 @@
1
1
  import React__default, { useState, useEffect } from "react";
2
2
  import classNames from "classnames";
3
3
  import { View } from "@tarojs/components";
4
- import { C as ComponentDefaults } from "./typings-buMpDfSR.js";
5
- import { U as Utils } from "./date-nxKOxj5-.js";
6
- import { u as useConfig } from "./configprovider.taro-q5J2gQbi.js";
4
+ import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
5
+ import { U as Utils } from "./date-D0pth0qC.js";
6
+ import { u as useConfig } from "./configprovider.taro-CyU_tvNJ.js";
7
7
  const left = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxOCIgaGVpZ2h0PSIxOCIgdmlld0JveD0iMCAwIDE4IDE4Ij48cGF0aCBkPSJNNi42MDUgOS40OWEuNzcxLjc3MSAwIDAgMSAwLS45OGwzLjYtNC4zNzJhLjc3MS43NzEgMCAwIDEgMS4xOS45ODFMOC4yIDlsMy4xOTcgMy44ODFhLjc3MS43NzEgMCAxIDEtMS4xOTEuOThsLTMuNi00LjM3eiIvPjwvc3ZnPg==";
8
8
  const right = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxOCIgaGVpZ2h0PSIxOCIgdmlld0JveD0iMCAwIDE4IDE4Ij48cGF0aCBkPSJNMTEuMzk2IDkuNDlhLjc3MS43NzEgMCAwIDAgMC0uOThsLTMuNi00LjM3MmEuNzcxLjc3MSAwIDAgMC0xLjE5MS45ODFMOS44IDlsLTMuMTk2IDMuODgxYS43NzEuNzcxIDAgMCAwIDEuMTkuOThsMy42LTQuMzd6Ii8+PC9zdmc+";
9
9
  const doubleLeft = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxOCIgaGVpZ2h0PSIxOCIgdmlld0JveD0iMCAwIDE4IDE4Ij48cGF0aCBkPSJNMTMuODUzIDQuMDI2YS43NzEuNzcxIDAgMCAxIC4xMiAxLjA4NUwxMC44NjQgOWwzLjExIDMuODg5YS43NzEuNzcxIDAgMSAxLTEuMjA0Ljk2M2wtMy40OTgtNC4zN2EuNzcxLjc3MSAwIDAgMSAwLS45NjRsMy40OTctNC4zNzFhLjc3MS43NzEgMCAwIDEgMS4wODQtLjEyem0tNS4yNDUgMGEuNzcxLjc3MSAwIDAgMSAuMTIgMS4wODVMNS42MTcgOWwzLjExMSAzLjg4OWEuNzcxLjc3MSAwIDAgMS0xLjIwNS45NjNsLTMuNDk3LTQuMzdhLjc3MS43NzEgMCAwIDEgMC0uOTY0bDMuNDk3LTQuMzcxYS43NzEuNzcxIDAgMCAxIDEuMDg1LS4xMnoiLz48L3N2Zz4=";
@@ -73,15 +73,11 @@ const getCurrentWeekDays = (day, firstDayOfWeek) => {
73
73
  convertDateToDay(new Date(current.getTime() + 24 * 60 * 60 * 1e3 * (6 - count)))
74
74
  ];
75
75
  };
76
- const defaultProps = {
77
- ...ComponentDefaults,
78
- type: "single",
79
- firstDayOfWeek: 0
80
- };
76
+ const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { type: "single", firstDayOfWeek: 0 });
81
77
  const prefixCls = "nut-calendarcard";
82
78
  const CalendarCard = React__default.forwardRef((props, ref) => {
83
79
  const { locale } = useConfig();
84
- const { style, className, type, value, defaultValue, firstDayOfWeek, startDate, endDate, disableDay, renderDay, renderDayTop, renderDayBottom, onDayClick, onPageChange, onChange } = { ...defaultProps, ...props };
80
+ const { style, className, type, value, defaultValue, firstDayOfWeek, startDate, endDate, disableDay, renderDay, renderDayTop, renderDayBottom, onDayClick, onPageChange, onChange } = Object.assign(Object.assign({}, defaultProps), props);
85
81
  const [month, setMonth] = useState(() => {
86
82
  let date = new Date(Date.now());
87
83
  const val = value || defaultValue;
@@ -126,10 +122,10 @@ const CalendarCard = React__default.forwardRef((props, ref) => {
126
122
  setInnerValue(v);
127
123
  if (type === "single") {
128
124
  const date = convertDayToDate(v[0]);
129
- onChange == null ? void 0 : onChange(date);
125
+ onChange === null || onChange === void 0 ? void 0 : onChange(date);
130
126
  } else if (type === "multiple" || type === "range" || type === "week") {
131
127
  const val = rangeTovalue(v);
132
- onChange == null ? void 0 : onChange(val);
128
+ onChange === null || onChange === void 0 ? void 0 : onChange(val);
133
129
  }
134
130
  };
135
131
  const getDays = (month2) => {
@@ -155,10 +151,10 @@ const CalendarCard = React__default.forwardRef((props, ref) => {
155
151
  useEffect(() => {
156
152
  const newDays = getDays(month);
157
153
  setDays(newDays);
158
- onPageChange == null ? void 0 : onPageChange(month);
154
+ onPageChange === null || onPageChange === void 0 ? void 0 : onPageChange(month);
159
155
  }, [month]);
160
156
  const isSameDay = (day1, day2) => {
161
- return (day1 == null ? void 0 : day1.year) === (day2 == null ? void 0 : day2.year) && (day1 == null ? void 0 : day1.month) === (day2 == null ? void 0 : day2.month) && (day1 == null ? void 0 : day1.date) === (day2 == null ? void 0 : day2.date);
157
+ return (day1 === null || day1 === void 0 ? void 0 : day1.year) === (day2 === null || day2 === void 0 ? void 0 : day2.year) && (day1 === null || day1 === void 0 ? void 0 : day1.month) === (day2 === null || day2 === void 0 ? void 0 : day2.month) && (day1 === null || day1 === void 0 ? void 0 : day1.date) === (day2 === null || day2 === void 0 ? void 0 : day2.date);
162
158
  };
163
159
  const compareDay = (day1, day2) => {
164
160
  if (day1 && day2) {
@@ -283,7 +279,7 @@ const CalendarCard = React__default.forwardRef((props, ref) => {
283
279
  if (day.type === "prev" || day.type === "next" || isDisable(day)) {
284
280
  return;
285
281
  }
286
- onDayClick == null ? void 0 : onDayClick(day);
282
+ onDayClick === null || onDayClick === void 0 ? void 0 : onDayClick(day);
287
283
  switch (type) {
288
284
  case "single": {
289
285
  if (innerValue[0] && isSameDay(innerValue[0], day)) {
@@ -2,11 +2,11 @@ import React__default, { useState, useRef, useEffect } from "react";
2
2
  import classNames from "classnames";
3
3
  import { ScrollView } from "@tarojs/components";
4
4
  import Taro, { nextTick } from "@tarojs/taro";
5
- import { C as ComponentDefaults } from "./typings-buMpDfSR.js";
6
- import { U as Utils, g as getPreMonthDates, a as getDaysStatus, b as getCurrMonthData } from "./date-nxKOxj5-.js";
7
- import { r as requestAniFrame } from "./raf-UzmDvMUW.js";
8
- import { u as useConfig } from "./configprovider.taro-q5J2gQbi.js";
9
- import { u as usePropsValue } from "./use-props-value-vKr0R0AX.js";
5
+ import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
6
+ import { U as Utils, g as getPreMonthDates, a as getDaysStatus, b as getCurrMonthData } from "./date-D0pth0qC.js";
7
+ import { r as requestAniFrame } from "./raf-zwv-SBjP.js";
8
+ import { u as useConfig } from "./configprovider.taro-CyU_tvNJ.js";
9
+ import { u as usePropsValue } from "./use-props-value-SH9krhkx.js";
10
10
  const splitDate = (date) => {
11
11
  const split = date.indexOf("-") !== -1 ? "-" : "/";
12
12
  return date.split(split);
@@ -35,39 +35,14 @@ const isEnd = (day, days) => {
35
35
  const isStartAndEnd = (days) => {
36
36
  return days.length >= 2 && Utils.isEqual(days[0], days[1]);
37
37
  };
38
- const defaultProps = {
39
- ...ComponentDefaults,
40
- type: "single",
41
- autoBackfill: false,
42
- popup: true,
43
- title: "",
44
- startDate: Utils.getDay(0),
45
- endDate: Utils.getDay(365),
46
- showToday: true,
47
- startText: "",
48
- endText: "",
49
- confirmText: "",
50
- showTitle: true,
51
- showSubTitle: true,
52
- scrollAnimation: true,
53
- firstDayOfWeek: 0,
54
- disableDate: (date) => false,
55
- renderHeaderButtons: void 0,
56
- renderDay: void 0,
57
- renderDayTop: void 0,
58
- renderDayBottom: void 0,
59
- onConfirm: (data) => {
60
- },
61
- onUpdate: () => {
62
- },
63
- onDayClick: (data) => {
64
- },
65
- onPageChange: (data) => {
66
- }
67
- };
38
+ const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { type: "single", autoBackfill: false, popup: true, title: "", startDate: Utils.getDay(0), endDate: Utils.getDay(365), showToday: true, startText: "", endText: "", confirmText: "", showTitle: true, showSubTitle: true, scrollAnimation: true, firstDayOfWeek: 0, disableDate: (date) => false, renderHeaderButtons: void 0, renderDay: void 0, renderDayTop: void 0, renderDayBottom: void 0, onConfirm: (data) => {
39
+ }, onUpdate: () => {
40
+ }, onDayClick: (data) => {
41
+ }, onPageChange: (data) => {
42
+ } });
68
43
  const CalendarItem = React__default.forwardRef((props, ref) => {
69
44
  const { locale } = useConfig();
70
- const { style, className, children, popup, type, autoBackfill, title, defaultValue, startDate, endDate, showToday, startText, endText, confirmText, showTitle, showSubTitle, scrollAnimation, firstDayOfWeek, disableDate, renderHeaderButtons, renderDay, renderDayTop, renderDayBottom, onConfirm, onUpdate, onDayClick, onPageChange } = { ...defaultProps, ...props };
45
+ const { style, className, children, popup, type, autoBackfill, title, defaultValue, startDate, endDate, showToday, startText, endText, confirmText, showTitle, showSubTitle, scrollAnimation, firstDayOfWeek, disableDate, renderHeaderButtons, renderDay, renderDayTop, renderDayBottom, onConfirm, onUpdate, onDayClick, onPageChange } = Object.assign(Object.assign({}, defaultProps), props);
71
46
  const weekdays = locale.calendaritem.weekdays;
72
47
  const weeks = [
73
48
  ...weekdays.slice(firstDayOfWeek, 7),
@@ -1,31 +1,16 @@
1
+ import { _ as __rest } from "./tslib.es6-BZ8i9Q6l.js";
1
2
  import React__default from "react";
2
3
  import classNames from "classnames";
3
- import { P as Price } from "./price.taro-Z1zR8YWV.js";
4
- import { T as Tag } from "./tag.taro-5KC_wObY.js";
5
- import { C as ComponentDefaults } from "./typings-buMpDfSR.js";
6
- const defaultProps = {
7
- ...ComponentDefaults,
8
- src: "",
9
- title: "",
10
- price: "",
11
- vipPrice: "",
12
- shopDescription: "",
13
- delivery: "",
14
- shopName: "",
15
- description: "",
16
- tag: "",
17
- priceTag: "",
18
- extra: ""
19
- };
4
+ import { P as Price } from "./price.taro-UVRHPHRD.js";
5
+ import { T as Tag } from "./tag.taro-BsmY5QfN.js";
6
+ import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
7
+ const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { src: "", title: "", price: "", vipPrice: "", shopDescription: "", delivery: "", shopName: "", description: "", tag: "", priceTag: "", extra: "" });
20
8
  const Card = (props) => {
21
- const { className, style, src, title, price, vipPrice, shopDescription, delivery, shopName, tag, priceTag, description, extra, ...rest } = {
22
- ...defaultProps,
23
- ...props
24
- };
9
+ const _a = Object.assign(Object.assign({}, defaultProps), props), { className, style, src, title, price, vipPrice, shopDescription, delivery, shopName, tag, priceTag, description, extra } = _a, rest = __rest(_a, ["className", "style", "src", "title", "price", "vipPrice", "shopDescription", "delivery", "shopName", "tag", "priceTag", "description", "extra"]);
25
10
  const classPrefix = "nut-card";
26
11
  return React__default.createElement(
27
12
  "div",
28
- { className: classNames(classPrefix, className), style, ...rest },
13
+ Object.assign({ className: classNames(classPrefix, className), style }, rest),
29
14
  React__default.createElement(
30
15
  "div",
31
16
  { className: `${classPrefix}-left` },
@@ -1,29 +1,22 @@
1
- var __defProp = Object.defineProperty;
2
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
- var __publicField = (obj, key, value) => {
4
- __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
5
- return value;
6
- };
1
+ import { _ as __rest, a as __awaiter } from "./tslib.es6-BZ8i9Q6l.js";
7
2
  import React__default, { useState, useImperativeHandle, useEffect, isValidElement } from "react";
8
3
  import classNames from "classnames";
9
4
  import { Loading, Checklist } from "@nutui/icons-react-taro";
10
5
  import { ScrollView } from "@tarojs/components";
11
- import { P as Popup } from "./popup.taro-ObEUml4r.js";
12
- import { T as Tabs } from "./tabs.taro-Yj7vgtSg.js";
13
- import { C as ComponentDefaults } from "./typings-buMpDfSR.js";
14
- import { u as usePropsValue } from "./use-props-value-vKr0R0AX.js";
6
+ import { P as Popup } from "./popup.taro-Iy_WQZ-m.js";
7
+ import { T as Tabs } from "./tabs.taro-HgAoKBAc.js";
8
+ import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
9
+ import { u as usePropsValue } from "./use-props-value-SH9krhkx.js";
15
10
  const formatTree = (tree, parent, config) => tree.map((node) => {
16
11
  const { value: valueKey = "value", text: textKey = "text", children: childrenKey = "children" } = config;
17
- const { [valueKey]: value, [textKey]: text, [childrenKey]: children, ...others } = node;
18
- const newNode = {
19
- loading: false,
20
- ...others,
12
+ const _a = node, _b = valueKey, value = _a[_b], _c = textKey, text = _a[_c], _d = childrenKey, children = _a[_d], others = __rest(_a, [typeof _b === "symbol" ? _b : _b + "", typeof _c === "symbol" ? _c : _c + "", typeof _d === "symbol" ? _d : _d + ""]);
13
+ const newNode = Object.assign(Object.assign({ loading: false }, others), {
21
14
  level: parent ? (parent && parent.level || 0) + 1 : 0,
22
15
  value,
23
16
  text,
24
17
  children,
25
18
  _parent: parent
26
- };
19
+ });
27
20
  if (newNode.children && newNode.children.length) {
28
21
  newNode.children = formatTree(newNode.children, newNode, config);
29
22
  }
@@ -48,15 +41,12 @@ const defaultConvertConfig = {
48
41
  sortKey: ""
49
42
  };
50
43
  const convertListToOptions = (list, options) => {
51
- const mergedOptions = {
52
- ...defaultConvertConfig,
53
- ...options || {}
54
- };
44
+ const mergedOptions = Object.assign(Object.assign({}, defaultConvertConfig), options || {});
55
45
  const { topId, idKey, pidKey, sortKey } = mergedOptions;
56
46
  let result = [];
57
47
  let map = {};
58
48
  list.forEach((node) => {
59
- node = { ...node };
49
+ node = Object.assign({}, node);
60
50
  const { [idKey]: id, [pidKey]: pid } = node;
61
51
  const children = map[pid] = map[pid] || [];
62
52
  if (!result.length && pid === topId) {
@@ -77,28 +67,20 @@ const convertListToOptions = (list, options) => {
77
67
  };
78
68
  class Tree {
79
69
  constructor(nodes, config) {
80
- __publicField(this, "nodes");
81
- __publicField(this, "config");
82
- // eslint-disable-next-line class-methods-use-this
83
- __publicField(this, "isLeaf", (node, lazy) => {
70
+ this.isLeaf = (node, lazy) => {
84
71
  const { leaf, children } = node;
85
72
  const hasChildren = Array.isArray(children) && Boolean(children.length);
86
73
  return leaf || !hasChildren && !lazy;
87
- });
88
- __publicField(this, "hasChildren", (node, lazy) => {
74
+ };
75
+ this.hasChildren = (node, lazy) => {
89
76
  const isLeaf = this.isLeaf(node, lazy);
90
77
  if (isLeaf) {
91
78
  return false;
92
79
  }
93
80
  const { children } = node;
94
81
  return Array.isArray(children) && Boolean(children.length);
95
- });
96
- this.config = {
97
- value: "value",
98
- text: "text",
99
- children: "children",
100
- ...config || {}
101
82
  };
83
+ this.config = Object.assign({ value: "value", text: "text", children: "children" }, config || {});
102
84
  this.nodes = formatTree(nodes, null, this.config);
103
85
  }
104
86
  updateChildren(nodes, parent) {
@@ -137,30 +119,13 @@ class Tree {
137
119
  return pathNodes;
138
120
  }
139
121
  }
140
- const Tree$1 = Tree;
141
- const defaultProps = {
142
- ...ComponentDefaults,
143
- activeColor: "",
144
- activeIcon: "checklist",
145
- popup: true,
146
- options: [],
147
- optionKey: { textKey: "text", valueKey: "value", childrenKey: "children" },
148
- format: {},
149
- closeable: false,
150
- closeIconPosition: "top-right",
151
- closeIcon: "close",
152
- lazy: false,
153
- onLoad: () => {
154
- },
155
- onClose: () => {
156
- },
157
- onChange: () => {
158
- },
159
- onPathChange: () => {
160
- }
161
- };
122
+ const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { activeColor: "", activeIcon: "checklist", popup: true, options: [], optionKey: { textKey: "text", valueKey: "value", childrenKey: "children" }, format: {}, closeable: false, closeIconPosition: "top-right", closeIcon: "close", lazy: false, onLoad: () => {
123
+ }, onClose: () => {
124
+ }, onChange: () => {
125
+ }, onPathChange: () => {
126
+ } });
162
127
  const InternalCascader = (props, ref) => {
163
- const { className, style, activeColor, activeIcon, popup, popupProps = {}, visible, options, value, defaultValue, optionKey, format, closeable, closeIconPosition, closeIcon, lazy, onLoad, onClose, onChange, onPathChange } = { ...defaultProps, ...props };
128
+ const { className, style, activeColor, activeIcon, popup, popupProps = {}, visible, options, value, defaultValue, optionKey, format, closeable, closeIconPosition, closeIcon, lazy, onLoad, onClose, onChange, onPathChange } = Object.assign(Object.assign({}, defaultProps), props);
164
129
  const [tabvalue, setTabvalue] = useState("c1");
165
130
  const [optionsData, setOptionsData] = useState([]);
166
131
  const isLazy = () => state.configs.lazy && Boolean(state.configs.onLoad);
@@ -192,7 +157,7 @@ const InternalCascader = (props, ref) => {
192
157
  paneKey: ""
193
158
  }
194
159
  ],
195
- tree: new Tree$1([], {}),
160
+ tree: new Tree([], {}),
196
161
  tabsCursor: 0,
197
162
  initLoading: false,
198
163
  currentProcessNode: [],
@@ -211,20 +176,20 @@ const InternalCascader = (props, ref) => {
211
176
  useEffect(() => {
212
177
  initData();
213
178
  }, [options, format]);
214
- const initData = async () => {
179
+ const initData = () => __awaiter(void 0, void 0, void 0, function* () {
215
180
  state.lazyLoadMap.clear();
216
181
  if (format && Object.keys(format).length > 0) {
217
182
  state.optionsData = convertListToOptions(options, format);
218
183
  } else {
219
184
  state.optionsData = options;
220
185
  }
221
- state.tree = new Tree$1(state.optionsData, {
186
+ state.tree = new Tree(state.optionsData, {
222
187
  value: state.configs.optionKey.valueKey,
223
188
  text: state.configs.optionKey.textKey,
224
189
  children: state.configs.optionKey.childrenKey
225
190
  });
226
191
  if (isLazy() && !state.tree.nodes.length) {
227
- await invokeLazyLoad({
192
+ yield invokeLazyLoad({
228
193
  root: true,
229
194
  loading: true,
230
195
  text: "",
@@ -240,8 +205,8 @@ const InternalCascader = (props, ref) => {
240
205
  ];
241
206
  syncValue();
242
207
  setOptionsData(state.panes);
243
- };
244
- const syncValue = async () => {
208
+ });
209
+ const syncValue = () => __awaiter(void 0, void 0, void 0, function* () {
245
210
  const currentValue = innerValue;
246
211
  if (currentValue === void 0 || currentValue !== defaultValue || !state.tree.nodes.length) {
247
212
  return;
@@ -257,17 +222,17 @@ const InternalCascader = (props, ref) => {
257
222
  if (parent) {
258
223
  needToSync = [parent.value];
259
224
  state.initLoading = true;
260
- const last = await currentValue.slice(1).reduce(async (p, value2) => {
225
+ const last = yield currentValue.slice(1).reduce((p, value2) => __awaiter(void 0, void 0, void 0, function* () {
261
226
  var _a;
262
- const parent2 = await p;
263
- await invokeLazyLoad(parent2);
264
- const node = (_a = parent2 == null ? void 0 : parent2.children) == null ? void 0 : _a.find((item) => item.value === value2);
227
+ const parent2 = yield p;
228
+ yield invokeLazyLoad(parent2);
229
+ const node = (_a = parent2 === null || parent2 === void 0 ? void 0 : parent2.children) === null || _a === void 0 ? void 0 : _a.find((item) => item.value === value2);
265
230
  if (node) {
266
231
  needToSync.push(value2);
267
232
  }
268
233
  return Promise.resolve(node);
269
- }, Promise.resolve(parent));
270
- await invokeLazyLoad(last);
234
+ }), Promise.resolve(parent));
235
+ yield invokeLazyLoad(last);
271
236
  state.initLoading = false;
272
237
  }
273
238
  }
@@ -278,8 +243,8 @@ const InternalCascader = (props, ref) => {
278
243
  chooseItem(node, true);
279
244
  });
280
245
  }
281
- };
282
- const invokeLazyLoad = async (node) => {
246
+ });
247
+ const invokeLazyLoad = (node) => __awaiter(void 0, void 0, void 0, function* () {
283
248
  if (!node) {
284
249
  return;
285
250
  }
@@ -296,11 +261,11 @@ const InternalCascader = (props, ref) => {
296
261
  if (!lazyLoadPromise) {
297
262
  lazyLoadPromise = new Promise((resolve) => {
298
263
  var _a, _b;
299
- (_b = (_a = state.configs).onLoad) == null ? void 0 : _b.call(_a, node, resolve);
264
+ (_b = (_a = state.configs).onLoad) === null || _b === void 0 ? void 0 : _b.call(_a, node, resolve);
300
265
  });
301
266
  state.lazyLoadMap.set(node, lazyLoadPromise);
302
267
  }
303
- const nodes = await lazyLoadPromise;
268
+ const nodes = yield lazyLoadPromise;
304
269
  if (Array.isArray(nodes) && nodes.length > 0) {
305
270
  state.tree.updateChildren(nodes, parent);
306
271
  } else {
@@ -308,7 +273,7 @@ const InternalCascader = (props, ref) => {
308
273
  }
309
274
  node.loading = false;
310
275
  state.lazyLoadMap.delete(node);
311
- };
276
+ });
312
277
  const close = () => {
313
278
  setInnerVisible(false);
314
279
  onClose && onClose();
@@ -316,7 +281,7 @@ const InternalCascader = (props, ref) => {
316
281
  const closePopup = () => {
317
282
  close();
318
283
  };
319
- const chooseItem = async (node, type) => {
284
+ const chooseItem = (node, type) => __awaiter(void 0, void 0, void 0, function* () {
320
285
  if (!type && node.disabled || !state.panes[state.tabsCursor]) {
321
286
  return;
322
287
  }
@@ -349,7 +314,7 @@ const InternalCascader = (props, ref) => {
349
314
  setTabvalue(`c${state.tabsCursor + 1}`);
350
315
  if (!type) {
351
316
  const pathNodes = state.panes.map((item) => item.selectedNode);
352
- const optionParams = pathNodes.map((item) => item == null ? void 0 : item.value);
317
+ const optionParams = pathNodes.map((item) => item === null || item === void 0 ? void 0 : item.value);
353
318
  onPathChange(optionParams, pathNodes);
354
319
  }
355
320
  return;
@@ -358,17 +323,17 @@ const InternalCascader = (props, ref) => {
358
323
  if (node.loading) {
359
324
  return;
360
325
  }
361
- await invokeLazyLoad(node);
326
+ yield invokeLazyLoad(node);
362
327
  if (state.currentProcessNode === node) {
363
328
  state.panes[state.tabsCursor].selectedNode = node;
364
329
  chooseItem(node, type);
365
330
  }
366
331
  setOptionsData(state.panes);
367
- };
332
+ });
368
333
  const renderItem = (pane, node, index) => {
369
334
  var _a;
370
335
  const classPrefix2 = "nut-cascader-item";
371
- const checked = ((_a = pane.selectedNode) == null ? void 0 : _a.value) === node.value;
336
+ const checked = ((_a = pane.selectedNode) === null || _a === void 0 ? void 0 : _a.value) === node.value;
372
337
  const classes = classNames({
373
338
  active: checked,
374
339
  disabled: node.disabled
@@ -410,8 +375,8 @@ const InternalCascader = (props, ref) => {
410
375
  React__default.createElement(
411
376
  "span",
412
377
  { className: "nut-tabs-titles-item-text" },
413
- !state.initLoading && state.panes.length && ((_a = pane == null ? void 0 : pane.selectedNode) == null ? void 0 : _a.text),
414
- !state.initLoading && state.panes.length && !((_b = pane == null ? void 0 : pane.selectedNode) == null ? void 0 : _b.text) && "请选择",
378
+ !state.initLoading && state.panes.length && ((_a = pane === null || pane === void 0 ? void 0 : pane.selectedNode) === null || _a === void 0 ? void 0 : _a.text),
379
+ !state.initLoading && state.panes.length && !((_b = pane === null || pane === void 0 ? void 0 : pane.selectedNode) === null || _b === void 0 ? void 0 : _b.text) && "请选择",
415
380
  !(!state.initLoading && state.panes.length) && "Loading..."
416
381
  ),
417
382
  React__default.createElement("span", { className: "nut-tabs-titles-item-line" })
@@ -422,7 +387,7 @@ const InternalCascader = (props, ref) => {
422
387
  return React__default.createElement(
423
388
  Tabs.TabPane,
424
389
  { key: pane.paneKey, value: pane.paneKey },
425
- React__default.createElement(ScrollView, { className: classesPane, scrollY: true }, (_a = pane.nodes) == null ? void 0 : _a.map((node, index) => renderItem(pane, node, index)))
390
+ React__default.createElement(ScrollView, { className: classesPane, scrollY: true }, (_a = pane.nodes) === null || _a === void 0 ? void 0 : _a.map((node, index) => renderItem(pane, node, index)))
426
391
  );
427
392
  }) : React__default.createElement(
428
393
  Tabs.TabPane,
@@ -431,8 +396,7 @@ const InternalCascader = (props, ref) => {
431
396
  ))
432
397
  );
433
398
  };
434
- return React__default.createElement(React__default.Fragment, null, popup ? React__default.createElement(Popup, {
435
- ...popupProps,
399
+ return React__default.createElement(React__default.Fragment, null, popup ? React__default.createElement(Popup, Object.assign({}, popupProps, {
436
400
  visible: innerVisible,
437
401
  position: "bottom",
438
402
  style: { overflowY: "hidden" },
@@ -445,7 +409,7 @@ const InternalCascader = (props, ref) => {
445
409
  // todo 只关闭,不处理逻辑。和popup的逻辑不一致。关闭时需要增加是否要处理回调
446
410
  onOverlayClick: closePopup,
447
411
  onCloseIconClick: closePopup
448
- }, renderTabs()) : renderTabs());
412
+ }), renderTabs()) : renderTabs());
449
413
  };
450
414
  const Cascader = React__default.forwardRef(InternalCascader);
451
415
  Cascader.defaultProps = defaultProps;
@@ -1,38 +1,24 @@
1
+ import { _ as __rest } from "./tslib.es6-BZ8i9Q6l.js";
1
2
  import React__default, { useContext } from "react";
2
3
  import classNames from "classnames";
3
- import { C as ComponentDefaults } from "./typings-buMpDfSR.js";
4
- import { a as CellGroupContext, C as CellGroup } from "./cellgroup.taro-08A3XAze.js";
5
- const defaultProps = {
6
- ...ComponentDefaults,
7
- title: null,
8
- description: null,
9
- extra: null,
10
- radius: "6px",
11
- align: "flex-start",
12
- onClick: (event) => {
13
- }
14
- };
4
+ import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
5
+ import { a as CellGroupContext, C as CellGroup } from "./cellgroup.taro-Dz69kT6e.js";
6
+ const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { title: null, description: null, extra: null, radius: "6px", align: "flex-start", onClick: (event) => {
7
+ } });
15
8
  const classPrefix = "nut-cell";
16
9
  const Cell = (props) => {
17
10
  const ctx = useContext(CellGroupContext);
18
- const { children, onClick, title, description, extra, radius, align, className, style, ...rest } = {
19
- ...defaultProps,
20
- ...props
21
- };
11
+ const _a = Object.assign(Object.assign({}, defaultProps), props), { children, onClick, title, description, extra, radius, align, className, style } = _a, rest = __rest(_a, ["children", "onClick", "title", "description", "extra", "radius", "align", "className", "style"]);
22
12
  const handleClick = (event) => {
23
13
  onClick(event);
24
14
  };
25
- const baseStyle = {
26
- ...style,
27
- borderRadius: Number.isNaN(Number(radius)) ? String(radius) : `${radius}px`,
28
- alignItems: align
29
- };
15
+ const baseStyle = Object.assign(Object.assign({}, style), { borderRadius: Number.isNaN(Number(radius)) ? String(radius) : `${radius}px`, alignItems: align });
30
16
  const styles = title || description ? {} : {
31
17
  flex: 1
32
18
  };
33
19
  return React__default.createElement(
34
20
  "div",
35
- { className: classNames(classPrefix, className), onClick: (event) => handleClick(event), style: baseStyle, ...rest },
21
+ Object.assign({ className: classNames(classPrefix, className), onClick: (event) => handleClick(event), style: baseStyle }, rest),
36
22
  children || React__default.createElement(
37
23
  React__default.Fragment,
38
24
  null,
@@ -44,7 +30,7 @@ const Cell = (props) => {
44
30
  ) : null,
45
31
  extra ? React__default.createElement("div", { className: `${classPrefix}-extra`, style: styles }, extra) : null
46
32
  ),
47
- (ctx == null ? void 0 : ctx.divider) ? React__default.createElement("div", { className: `${classPrefix}-divider` }) : null
33
+ (ctx === null || ctx === void 0 ? void 0 : ctx.divider) ? React__default.createElement("div", { className: `${classPrefix}-divider` }) : null
48
34
  );
49
35
  };
50
36
  Cell.defaultProps = defaultProps;
@@ -1,22 +1,15 @@
1
+ import { _ as __rest } from "./tslib.es6-BZ8i9Q6l.js";
1
2
  import React__default, { createContext } from "react";
2
3
  import classNames from "classnames";
3
- import { C as ComponentDefaults } from "./typings-buMpDfSR.js";
4
+ import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
4
5
  const CellGroupContext = createContext(null);
5
- const defaultProps = {
6
- ...ComponentDefaults,
7
- title: "",
8
- description: "",
9
- divider: true
10
- };
6
+ const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { title: "", description: "", divider: true });
11
7
  const classPrefix = "nut-cell-group";
12
8
  const CellGroup = (props) => {
13
- const { children, className, style, title, description, divider, ...rest } = {
14
- ...defaultProps,
15
- ...props
16
- };
9
+ const _a = Object.assign(Object.assign({}, defaultProps), props), { children, className, style, title, description, divider } = _a, rest = __rest(_a, ["children", "className", "style", "title", "description", "divider"]);
17
10
  return React__default.createElement(
18
11
  "div",
19
- { className: classNames(classPrefix, className), ...rest },
12
+ Object.assign({ className: classNames(classPrefix, className) }, rest),
20
13
  title ? React__default.createElement("div", { className: `${classPrefix}-title` }, title) : null,
21
14
  description ? React__default.createElement("div", { className: `${classPrefix}-description` }, description) : null,
22
15
  React__default.createElement(