@nutui/nutui-react-taro 2.1.1-beta.0 → 2.2.0-beta.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 (440) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/dist/esm/ActionSheet/style/style.css +1 -1
  3. package/dist/esm/ActionSheet.js +6 -6
  4. package/dist/esm/Address/style/style.css +1 -1
  5. package/dist/esm/Address.js +14 -14
  6. package/dist/esm/Animate.js +2 -2
  7. package/dist/esm/AnimatingNumbers/style/style.css +1 -1
  8. package/dist/esm/AnimatingNumbers.js +5 -5
  9. package/dist/esm/Audio/style/style.css +1 -1
  10. package/dist/esm/Audio.js +10 -10
  11. package/dist/esm/Avatar/style/style.css +1 -1
  12. package/dist/esm/Avatar.js +5 -5
  13. package/dist/esm/AvatarCropper/style/style.css +1 -1
  14. package/dist/esm/AvatarCropper.js +5 -5
  15. package/dist/esm/AvatarGroup.js +2 -2
  16. package/dist/esm/BackTop/style/style.css +1 -1
  17. package/dist/esm/BackTop.js +2 -2
  18. package/dist/esm/Badge/style/style.css +1 -1
  19. package/dist/esm/Badge.js +2 -2
  20. package/dist/esm/Barrage/style/style.css +1 -1
  21. package/dist/esm/Barrage.js +2 -2
  22. package/dist/esm/Button/style/style.css +1 -1
  23. package/dist/esm/Button.js +2 -2
  24. package/dist/esm/Calendar/style/style.css +1 -1
  25. package/dist/esm/Calendar.js +13 -13
  26. package/dist/esm/CalendarCard/style/style.css +1 -1
  27. package/dist/esm/CalendarCard.js +5 -5
  28. package/dist/esm/CalendarItem.js +8 -8
  29. package/dist/esm/Card/style/style.css +1 -1
  30. package/dist/esm/Card.js +4 -4
  31. package/dist/esm/Cascader/style/style.css +1 -1
  32. package/dist/esm/Cascader.js +11 -11
  33. package/dist/esm/Cell/style/style.css +1 -1
  34. package/dist/esm/Cell.js +3 -3
  35. package/dist/esm/CellGroup/style/style.css +1 -1
  36. package/dist/esm/CellGroup.js +2 -2
  37. package/dist/esm/Checkbox/style/style.css +1 -1
  38. package/dist/esm/Checkbox.js +4 -4
  39. package/dist/esm/CheckboxGroup/style/style.css +1 -1
  40. package/dist/esm/CheckboxGroup.js +4 -4
  41. package/dist/esm/CircleProgress/style/style.css +1 -1
  42. package/dist/esm/CircleProgress.js +4 -4
  43. package/dist/esm/Col/style/style.css +1 -1
  44. package/dist/esm/Col.js +3 -3
  45. package/dist/esm/Collapse/style/style.css +1 -1
  46. package/dist/esm/Collapse.js +5 -5
  47. package/dist/esm/CollapseItem/style/style.css +1 -1
  48. package/dist/esm/CollapseItem.js +2 -2
  49. package/dist/esm/ConfigProvider.js +3 -3
  50. package/dist/esm/CountDown/style/style.css +1 -1
  51. package/dist/esm/CountDown.js +4 -4
  52. package/dist/esm/DatePicker/style/style.css +1 -1
  53. package/dist/esm/DatePicker.js +12 -12
  54. package/dist/esm/Dialog/style/style.css +1 -1
  55. package/dist/esm/Dialog.js +10 -10
  56. package/dist/esm/Divider/style/style.css +1 -1
  57. package/dist/esm/Divider.js +2 -2
  58. package/dist/esm/Drag.js +2 -2
  59. package/dist/esm/Elevator/style/style.css +1 -1
  60. package/dist/esm/Elevator.js +2 -2
  61. package/dist/esm/Ellipsis/style/style.css +1 -1
  62. package/dist/esm/Ellipsis.js +3 -3
  63. package/dist/esm/Empty/style/style.css +1 -1
  64. package/dist/esm/Empty.js +4 -4
  65. package/dist/esm/FixedNav/style/style.css +1 -1
  66. package/dist/esm/FixedNav.js +7 -7
  67. package/dist/esm/Form/style/style.css +1 -1
  68. package/dist/esm/Form.js +4 -4
  69. package/dist/esm/FormItem/style/style.css +1 -1
  70. package/dist/esm/FormItem.js +4 -4
  71. package/dist/esm/Grid/style/style.css +1 -1
  72. package/dist/esm/Grid.js +5 -5
  73. package/dist/esm/GridItem/style/style.css +1 -1
  74. package/dist/esm/GridItem.js +4 -4
  75. package/dist/esm/Image/style/style.css +1 -1
  76. package/dist/esm/Image.js +2 -2
  77. package/dist/esm/ImagePreview/style/style.css +1 -1
  78. package/dist/esm/ImagePreview.js +12 -12
  79. package/dist/esm/Indicator/style/style.css +1 -1
  80. package/dist/esm/Indicator.js +1 -1
  81. package/dist/esm/InfiniteLoading/style/style.css +1 -1
  82. package/dist/esm/InfiniteLoading.js +4 -4
  83. package/dist/esm/Input/style/style.css +1 -1
  84. package/dist/esm/Input.js +6 -6
  85. package/dist/esm/InputNumber/style/style.css +1 -1
  86. package/dist/esm/InputNumber.js +4 -4
  87. package/dist/esm/Layout.js +1 -1
  88. package/dist/esm/Loading/style/style.css +1 -1
  89. package/dist/esm/Loading.js +2 -2
  90. package/dist/esm/Menu/style/style.css +1 -1
  91. package/dist/esm/Menu.js +9 -9
  92. package/dist/esm/MenuItem/style/style.css +1 -1
  93. package/dist/esm/MenuItem.js +8 -8
  94. package/dist/esm/NavBar/style/style.css +1 -1
  95. package/dist/esm/NavBar.js +2 -2
  96. package/dist/esm/NoticeBar/style/style.css +1 -1
  97. package/dist/esm/NoticeBar.js +3 -3
  98. package/dist/esm/Notify/style/style.css +1 -1
  99. package/dist/esm/Notify.js +5 -5
  100. package/dist/esm/NumberKeyboard/style/style.css +1 -1
  101. package/dist/esm/NumberKeyboard.js +8 -8
  102. package/dist/esm/Overlay/style/style.css +1 -1
  103. package/dist/esm/Overlay.js +4 -4
  104. package/dist/esm/Pagination/style/style.css +1 -1
  105. package/dist/esm/Pagination.js +6 -6
  106. package/dist/esm/Picker/style/style.css +1 -1
  107. package/dist/esm/Picker.js +11 -11
  108. package/dist/esm/Popover/style/style.css +1 -1
  109. package/dist/esm/Popover.js +7 -7
  110. package/dist/esm/Popup/style/style.css +1 -1
  111. package/dist/esm/Popup.js +5 -5
  112. package/dist/esm/Price/style/style.css +1 -1
  113. package/dist/esm/Price.js +2 -2
  114. package/dist/esm/Progress/style/style.css +1 -1
  115. package/dist/esm/Progress.js +2 -2
  116. package/dist/esm/PullToRefresh/style/style.css +1 -1
  117. package/dist/esm/PullToRefresh.js +5 -5
  118. package/dist/esm/Radio/style/style.css +1 -1
  119. package/dist/esm/Radio.js +4 -4
  120. package/dist/esm/RadioGroup/style/style.css +1 -1
  121. package/dist/esm/RadioGroup.js +4 -4
  122. package/dist/esm/Range/style/style.css +1 -1
  123. package/dist/esm/Range.js +6 -6
  124. package/dist/esm/Rate/style/style.css +1 -1
  125. package/dist/esm/Rate.js +4 -4
  126. package/dist/esm/Row.js +3 -3
  127. package/dist/esm/SafeArea.js +1 -1
  128. package/dist/esm/SearchBar/style/style.css +1 -1
  129. package/dist/esm/SearchBar.js +4 -4
  130. package/dist/esm/ShortPassword/style/style.css +1 -1
  131. package/dist/esm/ShortPassword.js +10 -10
  132. package/dist/esm/SideNavBar/style/style.css +1 -1
  133. package/dist/esm/SideNavBar.js +7 -7
  134. package/dist/esm/SideNavBarItem/style/style.css +1 -1
  135. package/dist/esm/SideNavBarItem.js +1 -1
  136. package/dist/esm/Signature/style/style.css +1 -1
  137. package/dist/esm/Signature.js +2 -2
  138. package/dist/esm/Skeleton/style/style.css +1 -1
  139. package/dist/esm/Skeleton.js +6 -6
  140. package/dist/esm/Space.js +1 -1
  141. package/dist/esm/Step/style/style.css +1 -1
  142. package/dist/esm/Step.js +3 -3
  143. package/dist/esm/Steps/style/style.css +1 -1
  144. package/dist/esm/Steps.js +3 -3
  145. package/dist/esm/Sticky/style/style.css +1 -1
  146. package/dist/esm/Sticky.js +4 -4
  147. package/dist/esm/SubSideNavBar/style/style.css +1 -1
  148. package/dist/esm/SubSideNavBar.js +2 -2
  149. package/dist/esm/Swipe/style/style.css +1 -1
  150. package/dist/esm/Swipe.js +4 -4
  151. package/dist/esm/Swiper/style/style.css +1 -1
  152. package/dist/esm/Swiper.js +6 -6
  153. package/dist/esm/SwiperItem.js +1 -1
  154. package/dist/esm/Switch/style/style.css +1 -1
  155. package/dist/esm/Switch.js +4 -4
  156. package/dist/esm/TabPane/style/style.css +1 -1
  157. package/dist/esm/TabPane.js +1 -1
  158. package/dist/esm/Tabbar/style/style.css +1 -1
  159. package/dist/esm/Tabbar.js +6 -6
  160. package/dist/esm/TabbarItem/style/style.css +1 -1
  161. package/dist/esm/TabbarItem.js +3 -3
  162. package/dist/esm/Table/style/style.css +1 -1
  163. package/dist/esm/Table.js +4 -4
  164. package/dist/esm/Tabs/style/style.css +1 -1
  165. package/dist/esm/Tabs.js +6 -6
  166. package/dist/esm/Tag/style/style.css +1 -1
  167. package/dist/esm/Tag.js +2 -2
  168. package/dist/esm/TextArea/style/style.css +1 -1
  169. package/dist/esm/TextArea.js +6 -6
  170. package/dist/esm/TimeDetail/style/style.css +1 -1
  171. package/dist/esm/TimeDetail.js +2 -2
  172. package/dist/esm/TimeSelect/style/style.css +1 -1
  173. package/dist/esm/TimeSelect.js +9 -9
  174. package/dist/esm/Toast/style/style.css +1 -1
  175. package/dist/esm/Toast.js +9 -9
  176. package/dist/esm/Tour/style/style.css +1 -1
  177. package/dist/esm/Tour.js +8 -8
  178. package/dist/esm/TrendArrow/style/style.css +1 -1
  179. package/dist/esm/TrendArrow.js +2 -2
  180. package/dist/esm/Uploader/style/style.css +1 -1
  181. package/dist/esm/Uploader.js +9 -9
  182. package/dist/esm/Video.js +2 -2
  183. package/dist/esm/VirtualList/style/style.css +1 -1
  184. package/dist/esm/VirtualList.js +2 -2
  185. package/dist/esm/WaterMark.js +4 -4
  186. package/dist/esm/{actionsheet.taro-b4b3e4a6.js → actionsheet.taro-30M41euQ.js} +8 -7
  187. package/dist/esm/{address.taro-71c98c46.js → address.taro-h9Q8IDbj.js} +8 -8
  188. package/dist/esm/{animate.taro-37bf4eab.js → animate.taro-m67VyUHP.js} +1 -1
  189. package/dist/esm/{audio.taro-a42eebb5.js → audio.taro-lYwAL-H1.js} +9 -9
  190. package/dist/esm/{avatar.taro-814a4b85.js → avatar.taro-5yLsf8Zg.js} +7 -7
  191. package/dist/esm/{avatarcropper.taro-215ee89e.js → avatarcropper.taro-5U7TdDmk.js} +4 -4
  192. package/dist/esm/{avatargroup.taro-1f8b7174.js → avatargroup.taro-h6dpv6UX.js} +1 -1
  193. package/dist/esm/{backtop.taro-7f774b6c.js → backtop.taro-XH0lVUOf.js} +1 -1
  194. package/dist/esm/{badge.taro-004f2eb0.js → badge.taro-n0aVp8h1.js} +4 -4
  195. package/dist/esm/{barrage.taro-53b33990.js → barrage.taro-hFnjd1q2.js} +5 -5
  196. package/dist/esm/{button.taro-e8d84b29.js → button.taro-076zcKpr.js} +12 -14
  197. package/dist/esm/{calendar.taro-5ee74a65.js → calendar.taro-oIFa_mYQ.js} +5 -5
  198. package/dist/esm/{calendarcard.taro-73e67095.js → calendarcard.taro-NqEhKcOk.js} +3 -3
  199. package/dist/esm/{calendaritem.taro-b30ef756.js → calendaritem.taro-_gVfstym.js} +5 -5
  200. package/dist/esm/{card.taro-80ba74c4.js → card.taro-od399Pwi.js} +6 -6
  201. package/dist/esm/{cascader.taro-24e4ece7.js → cascader.taro-5-7ScvLI.js} +10 -10
  202. package/dist/esm/{cell.taro-3bb24d44.js → cell.taro-3Tvgy6gl.js} +7 -7
  203. package/dist/esm/{cellgroup.taro-f998a42f.js → cellgroup.taro-zHqxl7ol.js} +4 -4
  204. package/dist/esm/{checkbox.taro-fa5d9680.js → checkbox.taro-KtiGnhlG.js} +19 -50
  205. package/dist/esm/{circleprogress.taro-cbbc333a.js → circleprogress.taro-myZgamBw.js} +5 -5
  206. package/dist/esm/{col.taro-23d5f6bd.js → col.taro-5FMpttLE.js} +2 -2
  207. package/dist/esm/{collapse.taro-8b61fb79.js → collapse.taro-j2-ajiXA.js} +3 -3
  208. package/dist/esm/{collapseitem.taro-a1e96f50.js → collapseitem.taro-Pp7qD2-T.js} +9 -9
  209. package/dist/esm/{configprovider.taro-e890dac3.js → configprovider.taro-hS2SwHJB.js} +2 -2
  210. package/dist/esm/{countdown.taro-04aa98cf.js → countdown.taro-SqVKfR7y.js} +3 -3
  211. package/dist/esm/{datepicker.taro-e80d9271.js → datepicker.taro-l3QzCg6y.js} +4 -4
  212. package/dist/esm/{dialog.taro-d1d66f17.js → dialog.taro--d0uO3VQ.js} +10 -10
  213. package/dist/esm/{divider.taro-a92925b7.js → divider.taro-BTFED42F.js} +6 -6
  214. package/dist/esm/{drag.taro-ce333e51.js → drag.taro-BwcleRuB.js} +1 -1
  215. package/dist/esm/{elevator.taro-1607d0b4.js → elevator.taro-hYAvey0f.js} +26 -24
  216. package/dist/esm/{ellipsis.taro-b1533122.js → ellipsis.taro-ov_C4kbs.js} +2 -2
  217. package/dist/esm/empty.taro-39MwJjPx.js +59 -0
  218. package/dist/esm/{fixednav.taro-ec8c4526.js → fixednav.taro-ub2wK6fK.js} +9 -9
  219. package/dist/esm/{formitem.taro-2b8003f8.js → formitem.taro-w9qkYXEq.js} +6 -6
  220. package/dist/esm/{grid.taro-389996b2.js → grid.taro-4vtMCMqo.js} +3 -3
  221. package/dist/esm/{griditem.taro-483246bf.js → griditem.taro-z_VW6NuV.js} +10 -10
  222. package/dist/esm/{image.taro-8d73a60d.js → image.taro-jKXhCAIw.js} +2 -2
  223. package/dist/esm/{imagepreview.taro-e660bf28.js → imagepreview.taro-njsGNYCl.js} +5 -5
  224. package/dist/esm/{index-b283d77d.js → index-oitVOJp9.js} +1 -1
  225. package/dist/esm/{indicator.taro-7bec8fb9.js → indicator.taro-rl-kBFJW.js} +2 -2
  226. package/dist/esm/{infiniteloading.taro-e6068990.js → infiniteloading.taro-au-C-hVX.js} +2 -2
  227. package/dist/esm/{input.taro-d98c3cef.js → input.taro-HbP0VUca.js} +3 -3
  228. package/dist/esm/{inputnumber.taro-07b246ee.js → inputnumber.taro-cwMnY2Gd.js} +7 -7
  229. package/dist/esm/{loading.taro-d511e398.js → loading.taro-aHN6xLIT.js} +1 -1
  230. package/dist/esm/{menu.taro-c2dc8fdb.js → menu.taro-GPMcYkdK.js} +20 -9
  231. package/dist/esm/{menuitem.taro-9cd511f4.js → menuitem.taro-V1SR74cE.js} +11 -11
  232. package/dist/esm/{navbar.taro-00b0b1fd.js → navbar.taro-uxhBXITb.js} +9 -11
  233. package/dist/esm/{noticebar.taro-512a92a0.js → noticebar.taro-HnLNCT6c.js} +6 -6
  234. package/dist/esm/{notify.taro-3063c438.js → notify.taro-eql4R4Mx.js} +5 -5
  235. package/dist/esm/{numberkeyboard.taro-d01cb097.js → numberkeyboard.taro-ToPOscOk.js} +13 -13
  236. package/dist/esm/nutui-react.es.js +108 -108
  237. package/dist/esm/{overlay.taro-8514660f.js → overlay.taro-g57gqLxf.js} +4 -4
  238. package/dist/esm/{pagination.taro-a8969bcf.js → pagination.taro-Mvehp6K2.js} +20 -34
  239. package/dist/esm/{picker.taro-d40a4e27.js → picker.taro-NyIQudtd.js} +12 -12
  240. package/dist/esm/{popover.taro-d1837cca.js → popover.taro--XIZLeWw.js} +9 -12
  241. package/dist/esm/{popup.taro-85284489.js → popup.taro-kjOuDvcb.js} +19 -24
  242. package/dist/esm/{price.taro-ce8f3249.js → price.taro-15WmWCW1.js} +6 -6
  243. package/dist/esm/{progress.taro-129abe65.js → progress.taro-EBhB1-Vj.js} +2 -2
  244. package/dist/esm/{pulltorefresh.taro-e8258b3c.js → pulltorefresh.taro-_lHPzDm-.js} +5 -32
  245. package/dist/esm/{radio.taro-b0f9fd8e.js → radio.taro-EzXWv4Io.js} +13 -16
  246. package/dist/esm/{range.taro-8c7e9294.js → range.taro-708Gnv2w.js} +4 -4
  247. package/dist/esm/{rate.taro-3da117db.js → rate.taro-1z-c8TA3.js} +8 -8
  248. package/dist/esm/{row.taro-a71fbf76.js → row.taro-IxNlKKQM.js} +2 -2
  249. package/dist/esm/{searchbar.taro-ab39a108.js → searchbar.taro-q43_qE5Y.js} +17 -18
  250. package/dist/esm/{shortpassword.taro-cd9e234e.js → shortpassword.taro-Dst95kRS.js} +16 -16
  251. package/dist/esm/{sidenavbar.taro-5a5b4178.js → sidenavbar.taro-e_kk1OUY.js} +7 -7
  252. package/dist/esm/{sidenavbaritem.taro-f2650b21.js → sidenavbaritem.taro-TQ2PoDgR.js} +1 -1
  253. package/dist/esm/{signature.taro-7ada09ae.js → signature.taro-PPEtytig.js} +3 -3
  254. package/dist/esm/{skeleton.taro-9504ad22.js → skeleton.taro-uxvSUVsB.js} +9 -9
  255. package/dist/esm/{step.taro-02eb5edb.js → step.taro-kCAQ4Q3-.js} +2 -2
  256. package/dist/esm/{steps.taro-4b126463.js → steps.taro-n6BT6nWE.js} +2 -2
  257. package/dist/esm/{sticky.taro-560c98a8.js → sticky.taro-tOS_Ez6U.js} +5 -5
  258. package/dist/esm/{subsidenavbar.taro-cf175ac5.js → subsidenavbar.taro-2qABjgZD.js} +7 -7
  259. package/dist/esm/{swipe.taro-adfd35e2.js → swipe.taro-caPbRS8Q.js} +5 -5
  260. package/dist/esm/{switch.taro-e46db0c3.js → switch.taro-xcb5i3Aw.js} +4 -4
  261. package/dist/esm/{tabbar.taro-e74e904e.js → tabbar.taro-NpHMO2Nw.js} +6 -6
  262. package/dist/esm/{tabbaritem.taro-fa0e2bfa.js → tabbaritem.taro-L63nEc64.js} +3 -3
  263. package/dist/esm/{table.taro-4edde60b.js → table.taro-sTWXN1kX.js} +15 -15
  264. package/dist/esm/{tabs.taro-99fba9f1.js → tabs.taro-ygzv74Mx.js} +23 -23
  265. package/dist/esm/{tag.taro-9fbc6a5e.js → tag.taro-AOpj4lnK.js} +7 -7
  266. package/dist/esm/{textarea.taro-74da302f.js → textarea.taro-uoE3EnEN.js} +6 -6
  267. package/dist/esm/{timedetail.taro-130291a2.js → timedetail.taro-U-5mkxbs.js} +2 -2
  268. package/dist/esm/{timeselect.taro-ea27c6d5.js → timeselect.taro-WF2tyuNa.js} +8 -7
  269. package/dist/esm/{toast.taro-e5290709.js → toast.taro-1JDi9XWT.js} +7 -7
  270. package/dist/esm/{tour.taro-c7d2320b.js → tour.taro-_s4f3Cle.js} +2 -2
  271. package/dist/esm/{trendarrow.taro-ac0a3403.js → trendarrow.taro-CcC-yh2h.js} +4 -4
  272. package/dist/esm/types/src/packages/button/button.d.ts +2 -3
  273. package/dist/esm/types/src/packages/button/button.taro.d.ts +2 -3
  274. package/dist/esm/types/src/packages/checkbox/checkbox.d.ts +0 -2
  275. package/dist/esm/types/src/packages/checkbox/checkbox.taro.d.ts +0 -2
  276. package/dist/esm/types/src/packages/configprovider/types.d.ts +1 -1
  277. package/dist/esm/types/src/packages/empty/demo.d.ts +1 -0
  278. package/dist/esm/types/src/packages/empty/demo.taro.d.ts +1 -0
  279. package/dist/esm/types/src/packages/empty/empty.d.ts +1 -5
  280. package/dist/esm/types/src/packages/empty/empty.taro.d.ts +1 -5
  281. package/dist/esm/types/src/packages/empty/index.d.ts +0 -1
  282. package/dist/esm/types/src/packages/empty/index.taro.d.ts +0 -1
  283. package/dist/esm/types/src/packages/indicator/demo.d.ts +1 -0
  284. package/dist/esm/types/src/packages/indicator/demo.taro.d.ts +1 -0
  285. package/dist/esm/types/src/packages/inputnumber/demo.d.ts +1 -0
  286. package/dist/esm/types/src/packages/inputnumber/demo.taro.d.ts +1 -0
  287. package/dist/esm/types/src/packages/navbar/navbar.d.ts +0 -1
  288. package/dist/esm/types/src/packages/navbar/navbar.taro.d.ts +0 -1
  289. package/dist/esm/types/src/packages/pagination/pagination.d.ts +1 -1
  290. package/dist/esm/types/src/packages/pagination/pagination.taro.d.ts +1 -1
  291. package/dist/esm/types/src/packages/popover/popover.d.ts +0 -4
  292. package/dist/esm/types/src/packages/popover/popover.taro.d.ts +0 -4
  293. package/dist/esm/types/src/packages/popup/popup.d.ts +0 -1
  294. package/dist/esm/types/src/packages/popup/popup.taro.d.ts +2 -3
  295. package/dist/esm/types/src/packages/searchbar/searchbar.d.ts +0 -1
  296. package/dist/esm/types/src/packages/searchbar/searchbar.taro.d.ts +0 -1
  297. package/dist/esm/types/src/packages/swipe/swipe.d.ts +6 -0
  298. package/dist/esm/types/src/packages/tabs/tabs.d.ts +1 -1
  299. package/dist/esm/types/src/packages/tabs/tabs.taro.d.ts +1 -1
  300. package/dist/esm/types/src/packages/virtuallist/utils.d.ts +1 -1
  301. package/dist/esm/{uploader.taro-be3f843f.js → uploader.taro-tCA41p6W.js} +24 -24
  302. package/dist/esm/{use-custom-event-c672f4ae.js → use-custom-event-XvsODK8c.js} +2 -2
  303. package/dist/esm/{use-props-value-7637d900.js → use-props-value-vKr0R0AX.js} +1 -1
  304. package/dist/esm/{video.taro-804f0da6.js → video.taro-MDBF77xf.js} +1 -1
  305. package/dist/esm/{virtuallist.taro-08c9c585.js → virtuallist.taro-vrNBr0zS.js} +1 -1
  306. package/dist/esm/{watermark.taro-3971822c.js → watermark.taro-4PxMaMaO.js} +2 -2
  307. package/dist/locales/base.js +1 -1
  308. package/dist/locales/en-US.js +1 -1
  309. package/dist/locales/id-ID.js +1 -1
  310. package/dist/locales/tr-TR.js +1 -1
  311. package/dist/locales/zh-CN.js +2 -2
  312. package/dist/locales/zh-TW.js +1 -1
  313. package/dist/locales/zh-UG.js +1 -1
  314. package/dist/nutui.react.es.js +12826 -14654
  315. package/dist/nutui.react.umd.js +12835 -14663
  316. package/dist/packages/actionsheet/actionsheet.scss +15 -15
  317. package/dist/packages/address/address.scss +4 -4
  318. package/dist/packages/animatingnumbers/countup.scss +6 -19
  319. package/dist/packages/audio/audio.scss +9 -17
  320. package/dist/packages/avatar/avatar.scss +1 -1
  321. package/dist/packages/avatarcropper/avatarcropper.scss +0 -4
  322. package/dist/packages/backtop/backtop.scss +3 -6
  323. package/dist/packages/badge/badge.scss +10 -12
  324. package/dist/packages/barrage/barrage.scss +6 -16
  325. package/dist/packages/button/button.scss +93 -163
  326. package/dist/packages/calendar/calendar.scss +12 -13
  327. package/dist/packages/calendarcard/calendarcard.scss +6 -6
  328. package/dist/packages/card/card.scss +13 -27
  329. package/dist/packages/cascader/cascader.scss +6 -6
  330. package/dist/packages/cell/cell.scss +3 -3
  331. package/dist/packages/cellgroup/cellgroup.scss +6 -6
  332. package/dist/packages/checkbox/checkbox.scss +21 -81
  333. package/dist/packages/checkboxgroup/checkboxgroup.scss +7 -17
  334. package/dist/packages/collapseitem/collapseitem.scss +10 -32
  335. package/dist/packages/dialog/dialog.scss +13 -13
  336. package/dist/packages/divider/divider.scss +7 -7
  337. package/dist/packages/elevator/elevator.scss +12 -13
  338. package/dist/packages/empty/empty.scss +6 -36
  339. package/dist/packages/fixednav/fixednav.scss +13 -26
  340. package/dist/packages/form/form.scss +4 -4
  341. package/dist/packages/formitem/formitem.scss +6 -6
  342. package/dist/packages/grid/grid.scss +1 -1
  343. package/dist/packages/griditem/griditem.scss +15 -16
  344. package/dist/packages/image/image.scss +2 -4
  345. package/dist/packages/imagepreview/imagepreview.scss +11 -1
  346. package/dist/packages/indicator/indicator.scss +9 -9
  347. package/dist/packages/infiniteloading/infiniteloading.scss +8 -23
  348. package/dist/packages/input/input.scss +2 -4
  349. package/dist/packages/inputnumber/inputnumber.scss +18 -21
  350. package/dist/packages/loading/loading.scss +3 -3
  351. package/dist/packages/menu/menu.scss +30 -22
  352. package/dist/packages/menuitem/menuitem.scss +56 -55
  353. package/dist/packages/navbar/navbar.scss +16 -52
  354. package/dist/packages/noticebar/noticebar.scss +11 -12
  355. package/dist/packages/notify/notify.scss +18 -10
  356. package/dist/packages/numberkeyboard/numberkeyboard.scss +17 -19
  357. package/dist/packages/pagination/pagination.scss +9 -32
  358. package/dist/packages/picker/picker.scss +19 -19
  359. package/dist/packages/popover/popover.scss +35 -51
  360. package/dist/packages/popup/popup.scss +213 -225
  361. package/dist/packages/price/price.scss +7 -18
  362. package/dist/packages/progress/progress.scss +1 -1
  363. package/dist/packages/pulltorefresh/pulltorefresh.scss +2 -9
  364. package/dist/packages/radio/radio.scss +40 -45
  365. package/dist/packages/radiogroup/radiogroup.scss +18 -18
  366. package/dist/packages/range/range.scss +2 -13
  367. package/dist/packages/rate/rate.scss +9 -8
  368. package/dist/packages/searchbar/searchbar.scss +42 -67
  369. package/dist/packages/shortpassword/shortpassword.scss +13 -13
  370. package/dist/packages/sidenavbar/sidenavbar.scss +8 -8
  371. package/dist/packages/sidenavbaritem/sidenavbaritem.scss +3 -3
  372. package/dist/packages/signature/signature.scss +2 -5
  373. package/dist/packages/skeleton/skeleton.scss +8 -8
  374. package/dist/packages/step/step.scss +32 -27
  375. package/dist/packages/sticky/sticky.scss +1 -1
  376. package/dist/packages/subsidenavbar/subsidenavbar.scss +5 -5
  377. package/dist/packages/swipe/swipe.scss +5 -8
  378. package/dist/packages/swiper/swiper.scss +4 -4
  379. package/dist/packages/switch/switch.scss +27 -38
  380. package/dist/packages/tabbar/tabbar.scss +4 -4
  381. package/dist/packages/tabbaritem/tabbaritem.scss +1 -8
  382. package/dist/packages/table/table.scss +27 -27
  383. package/dist/packages/tabpane/tabpane.scss +2 -2
  384. package/dist/packages/tabs/tabs.scss +137 -181
  385. package/dist/packages/tag/tag.scss +12 -12
  386. package/dist/packages/textarea/textarea.scss +6 -6
  387. package/dist/packages/timedetail/timedetail.scss +9 -8
  388. package/dist/packages/timeselect/timeselect.scss +21 -12
  389. package/dist/packages/toast/toast.scss +22 -37
  390. package/dist/packages/tour/tour.scss +3 -8
  391. package/dist/packages/trendarrow/trendarrow.scss +3 -8
  392. package/dist/packages/uploader/uploader.scss +37 -41
  393. package/dist/packages/virtuallist/virtuallist.scss +3 -13
  394. package/dist/packages/watermark/watermark.scss +0 -1
  395. package/dist/style.css +1 -1
  396. package/dist/style.mjs +1 -5
  397. package/dist/styles/theme-dark.scss +28 -17
  398. package/dist/styles/theme-default.scss +37 -15
  399. package/dist/styles/theme-jmapp.scss +40 -17
  400. package/dist/styles/variables-jmapp.scss +1169 -883
  401. package/dist/styles/variables.scss +982 -685
  402. package/dist/types/packages/animate/animate.taro.d.ts +2 -2
  403. package/dist/types/packages/button/button.taro.d.ts +2 -3
  404. package/dist/types/packages/checkbox/checkbox.taro.d.ts +0 -2
  405. package/dist/types/packages/configprovider/types.d.ts +1 -1
  406. package/dist/types/packages/empty/empty.d.ts +1 -5
  407. package/dist/types/packages/empty/empty.taro.d.ts +1 -5
  408. package/dist/types/packages/empty/index.taro.d.ts +0 -1
  409. package/dist/types/packages/navbar/navbar.taro.d.ts +0 -1
  410. package/dist/types/packages/pagination/pagination.taro.d.ts +2 -2
  411. package/dist/types/packages/popover/popover.taro.d.ts +0 -4
  412. package/dist/types/packages/popup/popup.taro.d.ts +2 -15
  413. package/dist/types/packages/searchbar/searchbar.taro.d.ts +0 -5
  414. package/dist/types/packages/tabs/tabs.taro.d.ts +2 -2
  415. package/package.json +2 -2
  416. package/dist/esm/css.js +0 -1
  417. package/dist/esm/empty.taro-e9dd38e7.js +0 -811
  418. package/dist/esm/style.css +0 -1
  419. package/dist/esm/types/src/packages/empty/types.d.ts +0 -3
  420. package/dist/types/packages/button/button.d.ts +0 -23
  421. package/dist/types/packages/button/index.d.ts +0 -3
  422. package/dist/types/packages/empty/index.d.ts +0 -4
  423. package/dist/types/packages/empty/types.d.ts +0 -3
  424. /package/dist/esm/{UserContext-ab42ba7f.js → UserContext-9BL0cq8w.js} +0 -0
  425. /package/dist/esm/{context-f32a9246.js → context-6mGEMLsx.js} +0 -0
  426. /package/dist/esm/{context-ab42ba7f.js → context-9BL0cq8w.js} +0 -0
  427. /package/dist/esm/{date-04589b69.js → date-nxKOxj5-.js} +0 -0
  428. /package/dist/esm/{get-rect-by-taro-fe02fe2b.js → get-rect-by-taro-piSHvCGp.js} +0 -0
  429. /package/dist/esm/{get-scroll-parent-3d880563.js → get-scroll-parent-uywvoQMl.js} +0 -0
  430. /package/dist/esm/{index-00550715.js → index-YvHA__3D.js} +0 -0
  431. /package/dist/esm/{layout.taro-7711a89c.js → layout.taro-lnN-wB0Y.js} +0 -0
  432. /package/dist/esm/{px-check-f83a9dc3.js → px-check-JiWLYN2v.js} +0 -0
  433. /package/dist/esm/{raf-12d6371d.js → raf-UzmDvMUW.js} +0 -0
  434. /package/dist/esm/{safearea.taro-776b7bf8.js → safearea.taro-afu_mY7g.js} +0 -0
  435. /package/dist/esm/{space.taro-5f8f647f.js → space.taro-q3R_yq79.js} +0 -0
  436. /package/dist/esm/{swiperitem.taro-da39a67b.js → swiperitem.taro-BC1CE0T-.js} +0 -0
  437. /package/dist/esm/{tabpane.taro-96001c64.js → tabpane.taro-5k7wWimS.js} +0 -0
  438. /package/dist/esm/{typings-11d83a22.js → typings-buMpDfSR.js} +0 -0
  439. /package/dist/esm/{use-force-update-9cd7c164.js → use-force-update-0oEVD8Nr.js} +0 -0
  440. /package/dist/esm/{use-touch-38cf73ae.js → use-touch-DODa8svc.js} +0 -0
@@ -1,811 +0,0 @@
1
- import React__default, { useCallback, useState, useEffect } from "react";
2
- import { u as useConfig } from "./configprovider.taro-e890dac3.js";
3
- import { C as ComponentDefaults } from "./typings-11d83a22.js";
4
- import classNames from "classnames";
5
- var D = {}, ir = {
6
- get exports() {
7
- return D;
8
- },
9
- set exports(h) {
10
- D = h;
11
- }
12
- }, k = {};
13
- /**
14
- * @license React
15
- * react-jsx-runtime.production.min.js
16
- *
17
- * Copyright (c) Facebook, Inc. and its affiliates.
18
- *
19
- * This source code is licensed under the MIT license found in the
20
- * LICENSE file in the root directory of this source tree.
21
- */
22
- var Re;
23
- function ur() {
24
- if (Re)
25
- return k;
26
- Re = 1;
27
- var h = React__default, S = Symbol.for("react.element"), M = Symbol.for("react.fragment"), R = Object.prototype.hasOwnProperty, A = h.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, I = { key: true, ref: true, __self: true, __source: true };
28
- function w(m, l, T) {
29
- var d, g = {}, _ = null, $ = null;
30
- T !== void 0 && (_ = "" + T), l.key !== void 0 && (_ = "" + l.key), l.ref !== void 0 && ($ = l.ref);
31
- for (d in l)
32
- R.call(l, d) && !I.hasOwnProperty(d) && (g[d] = l[d]);
33
- if (m && m.defaultProps)
34
- for (d in l = m.defaultProps, l)
35
- g[d] === void 0 && (g[d] = l[d]);
36
- return { $$typeof: S, type: m, key: _, ref: $, props: g, _owner: A.current };
37
- }
38
- return k.Fragment = M, k.jsx = w, k.jsxs = w, k;
39
- }
40
- var F = {};
41
- /**
42
- * @license React
43
- * react-jsx-runtime.development.js
44
- *
45
- * Copyright (c) Facebook, Inc. and its affiliates.
46
- *
47
- * This source code is licensed under the MIT license found in the
48
- * LICENSE file in the root directory of this source tree.
49
- */
50
- var Te;
51
- function sr() {
52
- return Te || (Te = 1, process.env.NODE_ENV !== "production" && function() {
53
- var h = React__default, S = Symbol.for("react.element"), M = Symbol.for("react.portal"), R = Symbol.for("react.fragment"), A = Symbol.for("react.strict_mode"), I = Symbol.for("react.profiler"), w = Symbol.for("react.provider"), m = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), T = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), _ = Symbol.for("react.lazy"), $ = Symbol.for("react.offscreen"), X = Symbol.iterator, Ce = "@@iterator";
54
- function Pe(e) {
55
- if (e === null || typeof e != "object")
56
- return null;
57
- var r = X && e[X] || e[Ce];
58
- return typeof r == "function" ? r : null;
59
- }
60
- var O = h.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
61
- function c2(e) {
62
- {
63
- for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
64
- t[n - 1] = arguments[n];
65
- Se("error", e, t);
66
- }
67
- }
68
- function Se(e, r, t) {
69
- {
70
- var n = O.ReactDebugCurrentFrame, i = n.getStackAddendum();
71
- i !== "" && (r += "%s", t = t.concat([i]));
72
- var u = t.map(function(o) {
73
- return String(o);
74
- });
75
- u.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, u);
76
- }
77
- }
78
- var we = false, xe = false, je = false, ke = false, Fe = false, Z;
79
- Z = Symbol.for("react.module.reference");
80
- function De(e) {
81
- return !!(typeof e == "string" || typeof e == "function" || e === R || e === I || Fe || e === A || e === T || e === d || ke || e === $ || we || xe || je || typeof e == "object" && e !== null && (e.$$typeof === _ || e.$$typeof === g || e.$$typeof === w || e.$$typeof === m || e.$$typeof === l || // This needs to include all possible module reference object
82
- // types supported by any Flight configuration anywhere since
83
- // we don't know which Flight build this will end up being used
84
- // with.
85
- e.$$typeof === Z || e.getModuleId !== void 0));
86
- }
87
- function Ae(e, r, t) {
88
- var n = e.displayName;
89
- if (n)
90
- return n;
91
- var i = r.displayName || r.name || "";
92
- return i !== "" ? t + "(" + i + ")" : t;
93
- }
94
- function Q(e) {
95
- return e.displayName || "Context";
96
- }
97
- function E(e) {
98
- if (e == null)
99
- return null;
100
- if (typeof e.tag == "number" && c2("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
101
- return e.displayName || e.name || null;
102
- if (typeof e == "string")
103
- return e;
104
- switch (e) {
105
- case R:
106
- return "Fragment";
107
- case M:
108
- return "Portal";
109
- case I:
110
- return "Profiler";
111
- case A:
112
- return "StrictMode";
113
- case T:
114
- return "Suspense";
115
- case d:
116
- return "SuspenseList";
117
- }
118
- if (typeof e == "object")
119
- switch (e.$$typeof) {
120
- case m:
121
- var r = e;
122
- return Q(r) + ".Consumer";
123
- case w:
124
- var t = e;
125
- return Q(t._context) + ".Provider";
126
- case l:
127
- return Ae(e, e.render, "ForwardRef");
128
- case g:
129
- var n = e.displayName || null;
130
- return n !== null ? n : E(e.type) || "Memo";
131
- case _: {
132
- var i = e, u = i._payload, o = i._init;
133
- try {
134
- return E(o(u));
135
- } catch {
136
- return null;
137
- }
138
- }
139
- }
140
- return null;
141
- }
142
- var y = Object.assign, x2 = 0, ee, re, te, ne, ae, oe, ie;
143
- function ue() {
144
- }
145
- ue.__reactDisabledLog = true;
146
- function Ie() {
147
- {
148
- if (x2 === 0) {
149
- ee = console.log, re = console.info, te = console.warn, ne = console.error, ae = console.group, oe = console.groupCollapsed, ie = console.groupEnd;
150
- var e = {
151
- configurable: true,
152
- enumerable: true,
153
- value: ue,
154
- writable: true
155
- };
156
- Object.defineProperties(console, {
157
- info: e,
158
- log: e,
159
- warn: e,
160
- error: e,
161
- group: e,
162
- groupCollapsed: e,
163
- groupEnd: e
164
- });
165
- }
166
- x2++;
167
- }
168
- }
169
- function $e() {
170
- {
171
- if (x2--, x2 === 0) {
172
- var e = {
173
- configurable: true,
174
- enumerable: true,
175
- writable: true
176
- };
177
- Object.defineProperties(console, {
178
- log: y({}, e, {
179
- value: ee
180
- }),
181
- info: y({}, e, {
182
- value: re
183
- }),
184
- warn: y({}, e, {
185
- value: te
186
- }),
187
- error: y({}, e, {
188
- value: ne
189
- }),
190
- group: y({}, e, {
191
- value: ae
192
- }),
193
- groupCollapsed: y({}, e, {
194
- value: oe
195
- }),
196
- groupEnd: y({}, e, {
197
- value: ie
198
- })
199
- });
200
- }
201
- x2 < 0 && c2("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
202
- }
203
- }
204
- var U = O.ReactCurrentDispatcher, B;
205
- function W(e, r, t) {
206
- {
207
- if (B === void 0)
208
- try {
209
- throw Error();
210
- } catch (i) {
211
- var n = i.stack.trim().match(/\n( *(at )?)/);
212
- B = n && n[1] || "";
213
- }
214
- return `
215
- ` + B + e;
216
- }
217
- }
218
- var q = false, Y;
219
- {
220
- var We = typeof WeakMap == "function" ? WeakMap : Map;
221
- Y = new We();
222
- }
223
- function se(e, r) {
224
- if (!e || q)
225
- return "";
226
- {
227
- var t = Y.get(e);
228
- if (t !== void 0)
229
- return t;
230
- }
231
- var n;
232
- q = true;
233
- var i = Error.prepareStackTrace;
234
- Error.prepareStackTrace = void 0;
235
- var u;
236
- u = U.current, U.current = null, Ie();
237
- try {
238
- if (r) {
239
- var o = function() {
240
- throw Error();
241
- };
242
- if (Object.defineProperty(o.prototype, "props", {
243
- set: function() {
244
- throw Error();
245
- }
246
- }), typeof Reflect == "object" && Reflect.construct) {
247
- try {
248
- Reflect.construct(o, []);
249
- } catch (b) {
250
- n = b;
251
- }
252
- Reflect.construct(e, [], o);
253
- } else {
254
- try {
255
- o.call();
256
- } catch (b) {
257
- n = b;
258
- }
259
- e.call(o.prototype);
260
- }
261
- } else {
262
- try {
263
- throw Error();
264
- } catch (b) {
265
- n = b;
266
- }
267
- e();
268
- }
269
- } catch (b) {
270
- if (b && n && typeof b.stack == "string") {
271
- for (var a = b.stack.split(`
272
- `), v = n.stack.split(`
273
- `), s = a.length - 1, f = v.length - 1; s >= 1 && f >= 0 && a[s] !== v[f]; )
274
- f--;
275
- for (; s >= 1 && f >= 0; s--, f--)
276
- if (a[s] !== v[f]) {
277
- if (s !== 1 || f !== 1)
278
- do
279
- if (s--, f--, f < 0 || a[s] !== v[f]) {
280
- var p = `
281
- ` + a[s].replace(" at new ", " at ");
282
- return e.displayName && p.includes("<anonymous>") && (p = p.replace("<anonymous>", e.displayName)), typeof e == "function" && Y.set(e, p), p;
283
- }
284
- while (s >= 1 && f >= 0);
285
- break;
286
- }
287
- }
288
- } finally {
289
- q = false, U.current = u, $e(), Error.prepareStackTrace = i;
290
- }
291
- var P = e ? e.displayName || e.name : "", ye = P ? W(P) : "";
292
- return typeof e == "function" && Y.set(e, ye), ye;
293
- }
294
- function Ye(e, r, t) {
295
- return se(e, false);
296
- }
297
- function Le(e) {
298
- var r = e.prototype;
299
- return !!(r && r.isReactComponent);
300
- }
301
- function L(e, r, t) {
302
- if (e == null)
303
- return "";
304
- if (typeof e == "function")
305
- return se(e, Le(e));
306
- if (typeof e == "string")
307
- return W(e);
308
- switch (e) {
309
- case T:
310
- return W("Suspense");
311
- case d:
312
- return W("SuspenseList");
313
- }
314
- if (typeof e == "object")
315
- switch (e.$$typeof) {
316
- case l:
317
- return Ye(e.render);
318
- case g:
319
- return L(e.type, r, t);
320
- case _: {
321
- var n = e, i = n._payload, u = n._init;
322
- try {
323
- return L(u(i), r, t);
324
- } catch {
325
- }
326
- }
327
- }
328
- return "";
329
- }
330
- var N = Object.prototype.hasOwnProperty, fe = {}, le = O.ReactDebugCurrentFrame;
331
- function V(e) {
332
- if (e) {
333
- var r = e._owner, t = L(e.type, e._source, r ? r.type : null);
334
- le.setExtraStackFrame(t);
335
- } else
336
- le.setExtraStackFrame(null);
337
- }
338
- function Ne(e, r, t, n, i) {
339
- {
340
- var u = Function.call.bind(N);
341
- for (var o in e)
342
- if (u(e, o)) {
343
- var a = void 0;
344
- try {
345
- if (typeof e[o] != "function") {
346
- var v = Error((n || "React class") + ": " + t + " type `" + o + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[o] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
347
- throw v.name = "Invariant Violation", v;
348
- }
349
- a = e[o](r, o, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
350
- } catch (s) {
351
- a = s;
352
- }
353
- a && !(a instanceof Error) && (V(i), c2("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", n || "React class", t, o, typeof a), V(null)), a instanceof Error && !(a.message in fe) && (fe[a.message] = true, V(i), c2("Failed %s type: %s", t, a.message), V(null));
354
- }
355
- }
356
- }
357
- var Ve = Array.isArray;
358
- function J(e) {
359
- return Ve(e);
360
- }
361
- function Me(e) {
362
- {
363
- var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
364
- return t;
365
- }
366
- }
367
- function Ue(e) {
368
- try {
369
- return ce(e), false;
370
- } catch {
371
- return true;
372
- }
373
- }
374
- function ce(e) {
375
- return "" + e;
376
- }
377
- function ve(e) {
378
- if (Ue(e))
379
- return c2("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Me(e)), ce(e);
380
- }
381
- var j = O.ReactCurrentOwner, Be = {
382
- key: true,
383
- ref: true,
384
- __self: true,
385
- __source: true
386
- }, de, pe, G;
387
- G = {};
388
- function qe(e) {
389
- if (N.call(e, "ref")) {
390
- var r = Object.getOwnPropertyDescriptor(e, "ref").get;
391
- if (r && r.isReactWarning)
392
- return false;
393
- }
394
- return e.ref !== void 0;
395
- }
396
- function Je(e) {
397
- if (N.call(e, "key")) {
398
- var r = Object.getOwnPropertyDescriptor(e, "key").get;
399
- if (r && r.isReactWarning)
400
- return false;
401
- }
402
- return e.key !== void 0;
403
- }
404
- function Ge(e, r) {
405
- if (typeof e.ref == "string" && j.current && r && j.current.stateNode !== r) {
406
- var t = E(j.current.type);
407
- G[t] || (c2('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', E(j.current.type), e.ref), G[t] = true);
408
- }
409
- }
410
- function ze(e, r) {
411
- {
412
- var t = function() {
413
- de || (de = true, c2("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
414
- };
415
- t.isReactWarning = true, Object.defineProperty(e, "key", {
416
- get: t,
417
- configurable: true
418
- });
419
- }
420
- }
421
- function Ke(e, r) {
422
- {
423
- var t = function() {
424
- pe || (pe = true, c2("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
425
- };
426
- t.isReactWarning = true, Object.defineProperty(e, "ref", {
427
- get: t,
428
- configurable: true
429
- });
430
- }
431
- }
432
- var He = function(e, r, t, n, i, u, o) {
433
- var a = {
434
- // This tag allows us to uniquely identify this as a React Element
435
- $$typeof: S,
436
- // Built-in properties that belong on the element
437
- type: e,
438
- key: r,
439
- ref: t,
440
- props: o,
441
- // Record the component responsible for creating this element.
442
- _owner: u
443
- };
444
- return a._store = {}, Object.defineProperty(a._store, "validated", {
445
- configurable: false,
446
- enumerable: false,
447
- writable: true,
448
- value: false
449
- }), Object.defineProperty(a, "_self", {
450
- configurable: false,
451
- enumerable: false,
452
- writable: false,
453
- value: n
454
- }), Object.defineProperty(a, "_source", {
455
- configurable: false,
456
- enumerable: false,
457
- writable: false,
458
- value: i
459
- }), Object.freeze && (Object.freeze(a.props), Object.freeze(a)), a;
460
- };
461
- function Xe(e, r, t, n, i) {
462
- {
463
- var u, o = {}, a = null, v = null;
464
- t !== void 0 && (ve(t), a = "" + t), Je(r) && (ve(r.key), a = "" + r.key), qe(r) && (v = r.ref, Ge(r, i));
465
- for (u in r)
466
- N.call(r, u) && !Be.hasOwnProperty(u) && (o[u] = r[u]);
467
- if (e && e.defaultProps) {
468
- var s = e.defaultProps;
469
- for (u in s)
470
- o[u] === void 0 && (o[u] = s[u]);
471
- }
472
- if (a || v) {
473
- var f = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
474
- a && ze(o, f), v && Ke(o, f);
475
- }
476
- return He(e, a, v, i, n, j.current, o);
477
- }
478
- }
479
- var z = O.ReactCurrentOwner, ge = O.ReactDebugCurrentFrame;
480
- function C(e) {
481
- if (e) {
482
- var r = e._owner, t = L(e.type, e._source, r ? r.type : null);
483
- ge.setExtraStackFrame(t);
484
- } else
485
- ge.setExtraStackFrame(null);
486
- }
487
- var K;
488
- K = false;
489
- function H(e) {
490
- return typeof e == "object" && e !== null && e.$$typeof === S;
491
- }
492
- function Ee() {
493
- {
494
- if (z.current) {
495
- var e = E(z.current.type);
496
- if (e)
497
- return `
498
-
499
- Check the render method of \`` + e + "`.";
500
- }
501
- return "";
502
- }
503
- }
504
- function Ze(e) {
505
- {
506
- if (e !== void 0) {
507
- var r = e.fileName.replace(/^.*[\\\/]/, ""), t = e.lineNumber;
508
- return `
509
-
510
- Check your code at ` + r + ":" + t + ".";
511
- }
512
- return "";
513
- }
514
- }
515
- var be = {};
516
- function Qe(e) {
517
- {
518
- var r = Ee();
519
- if (!r) {
520
- var t = typeof e == "string" ? e : e.displayName || e.name;
521
- t && (r = `
522
-
523
- Check the top-level render call using <` + t + ">.");
524
- }
525
- return r;
526
- }
527
- }
528
- function he(e, r) {
529
- {
530
- if (!e._store || e._store.validated || e.key != null)
531
- return;
532
- e._store.validated = true;
533
- var t = Qe(r);
534
- if (be[t])
535
- return;
536
- be[t] = true;
537
- var n = "";
538
- e && e._owner && e._owner !== z.current && (n = " It was passed a child from " + E(e._owner.type) + "."), C(e), c2('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, n), C(null);
539
- }
540
- }
541
- function me(e, r) {
542
- {
543
- if (typeof e != "object")
544
- return;
545
- if (J(e))
546
- for (var t = 0; t < e.length; t++) {
547
- var n = e[t];
548
- H(n) && he(n, r);
549
- }
550
- else if (H(e))
551
- e._store && (e._store.validated = true);
552
- else if (e) {
553
- var i = Pe(e);
554
- if (typeof i == "function" && i !== e.entries)
555
- for (var u = i.call(e), o; !(o = u.next()).done; )
556
- H(o.value) && he(o.value, r);
557
- }
558
- }
559
- }
560
- function er(e) {
561
- {
562
- var r = e.type;
563
- if (r == null || typeof r == "string")
564
- return;
565
- var t;
566
- if (typeof r == "function")
567
- t = r.propTypes;
568
- else if (typeof r == "object" && (r.$$typeof === l || // Note: Memo only checks outer props here.
569
- // Inner props are checked in the reconciler.
570
- r.$$typeof === g))
571
- t = r.propTypes;
572
- else
573
- return;
574
- if (t) {
575
- var n = E(r);
576
- Ne(t, e.props, "prop", n, e);
577
- } else if (r.PropTypes !== void 0 && !K) {
578
- K = true;
579
- var i = E(r);
580
- c2("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", i || "Unknown");
581
- }
582
- typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && c2("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
583
- }
584
- }
585
- function rr(e) {
586
- {
587
- for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
588
- var n = r[t];
589
- if (n !== "children" && n !== "key") {
590
- C(e), c2("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), C(null);
591
- break;
592
- }
593
- }
594
- e.ref !== null && (C(e), c2("Invalid attribute `ref` supplied to `React.Fragment`."), C(null));
595
- }
596
- }
597
- function _e(e, r, t, n, i, u) {
598
- {
599
- var o = De(e);
600
- if (!o) {
601
- var a = "";
602
- (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (a += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
603
- var v = Ze(i);
604
- v ? a += v : a += Ee();
605
- var s;
606
- e === null ? s = "null" : J(e) ? s = "array" : e !== void 0 && e.$$typeof === S ? (s = "<" + (E(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : s = typeof e, c2("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", s, a);
607
- }
608
- var f = Xe(e, r, t, i, u);
609
- if (f == null)
610
- return f;
611
- if (o) {
612
- var p = r.children;
613
- if (p !== void 0)
614
- if (n)
615
- if (J(p)) {
616
- for (var P = 0; P < p.length; P++)
617
- me(p[P], e);
618
- Object.freeze && Object.freeze(p);
619
- } else
620
- c2("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
621
- else
622
- me(p, e);
623
- }
624
- return e === R ? rr(f) : er(f), f;
625
- }
626
- }
627
- function tr(e, r, t) {
628
- return _e(e, r, t, true);
629
- }
630
- function nr(e, r, t) {
631
- return _e(e, r, t, false);
632
- }
633
- var ar = nr, or = tr;
634
- F.Fragment = R, F.jsx = ar, F.jsxs = or;
635
- }()), F;
636
- }
637
- (function(h) {
638
- process.env.NODE_ENV === "production" ? h.exports = ur() : h.exports = sr();
639
- })(ir);
640
- const lr = D.Fragment, cr = D.jsx;
641
- D.jsxs;
642
- const c = {
643
- className: "",
644
- style: void 0,
645
- name: "Loading",
646
- width: "",
647
- height: "",
648
- onClick: () => {
649
- }
650
- }, x = (h) => {
651
- const { className: l, style: d, name: a, color: m, width: p, height: g, onClick: o } = { ...c, ...h }, f = (t) => {
652
- o && o(t);
653
- }, n = (t) => t === "" ? "" : isNaN(Number(t)) ? String(t) : t + "px", u = () => {
654
- const t = "nut-icon";
655
- return classNames({
656
- [`${l}`]: l,
657
- [t]: true,
658
- [t + "-" + a]: a
659
- });
660
- }, e = {}, i = n(p || ""), r = n(g || "");
661
- i && (e.width = i), r && (e.height = r);
662
- const w = () => ({
663
- ...d,
664
- ...e
665
- });
666
- return /* @__PURE__ */ cr(lr, { children: /* @__PURE__ */ cr(
667
- "svg",
668
- {
669
- className: u(),
670
- style: w(),
671
- onClick: f,
672
- xmlns: "http://www.w3.org/2000/svg",
673
- color: m,
674
- viewBox: "0 0 1024 1024",
675
- "aria-labelledby": a,
676
- role: "presentation",
677
- children: /* @__PURE__ */ cr(
678
- "path",
679
- {
680
- d: "M512 73.14a43.89 43.89 0 0 1 43.89 43.89v118.49a43.89 43.89 0 0 1-87.78 0V117.03A43.89 43.89 0 0 1 512 73.14zM201.65 201.65a43.89 43.89 0 0 1 62.1 0l83.68 83.83a43.89 43.89 0 1 1-62.03 62.02l-83.75-83.75a43.89 43.89 0 0 1 0-62.1zm620.7 0a43.89 43.89 0 0 1 0 62.1l-83.83 83.68a43.89 43.89 0 1 1-62.02-62.03l83.75-83.82a43.89 43.89 0 0 1 62.1 0zM73.14 512a43.89 43.89 0 0 1 43.89-43.89h118.49a43.89 43.89 0 0 1 0 87.78H117.03A43.89 43.89 0 0 1 73.14 512zm671.45 0a43.89 43.89 0 0 1 43.89-43.89h118.49a43.89 43.89 0 1 1 0 87.78H788.48A43.89 43.89 0 0 1 744.59 512zM347.5 676.5a43.89 43.89 0 0 1 0 62.02l-83.75 83.83a43.89 43.89 0 1 1-62.1-62.1l83.83-83.68a43.89 43.89 0 0 1 62.02 0zm329 0a43.89 43.89 0 0 1 62.02 0l83.83 83.75a43.89 43.89 0 1 1-62.1 62.1l-83.68-83.83a43.89 43.89 0 0 1 0-62.02zM512 744.59a43.89 43.89 0 0 1 43.89 43.89v118.49a43.89 43.89 0 1 1-87.78 0V788.48A43.89 43.89 0 0 1 512 744.59z",
681
- fill: "currentColor",
682
- fillOpacity: "0.9"
683
- }
684
- )
685
- }
686
- ) });
687
- };
688
- x.defaultProps = c;
689
- const style_icon = "";
690
- const prefixCls = "nut-button";
691
- const defaultProps$1 = {
692
- ...ComponentDefaults,
693
- color: "",
694
- type: "default",
695
- size: "normal",
696
- shape: "round",
697
- fill: "outline",
698
- loading: false,
699
- disabled: false,
700
- block: false,
701
- icon: null,
702
- rightIcon: null,
703
- nativeType: "button",
704
- onClick: (e) => {
705
- }
706
- };
707
- const Button = React__default.forwardRef((props, ref) => {
708
- const { color, shape, fill, loading, disabled, type, size, block, icon, rightIcon, children, className, style, nativeType, onClick, ...rest } = {
709
- ...defaultProps$1,
710
- ...props
711
- };
712
- const getStyle = useCallback(() => {
713
- const style2 = {};
714
- if (props.color) {
715
- if (props.fill && (props.fill === "outline" || props.fill === "dashed")) {
716
- style2.color = color;
717
- style2.background = "#fff";
718
- if (!(color == null ? void 0 : color.includes("gradient"))) {
719
- style2.borderColor = color;
720
- }
721
- } else {
722
- style2.color = "#fff";
723
- style2.background = color;
724
- }
725
- }
726
- return style2;
727
- }, [color]);
728
- const handleClick = (e) => {
729
- if (!loading && !disabled && onClick) {
730
- onClick(e);
731
- }
732
- };
733
- return React__default.createElement(
734
- "button",
735
- { ...rest, ref, type: nativeType, className: classNames(prefixCls, `${prefixCls}-${type}`, props.fill ? `${prefixCls}-${fill}` : null, children ? "" : `${prefixCls}-icononly`, {
736
- [`${prefixCls}-${size}`]: size,
737
- [`${prefixCls}-${shape}`]: shape,
738
- [`${prefixCls}-block`]: block,
739
- [`${prefixCls}-disabled`]: disabled,
740
- [`${prefixCls}-loading`]: loading
741
- }, className), style: { ...getStyle(), ...style }, onClick: (e) => handleClick(e) },
742
- React__default.createElement(
743
- "div",
744
- { className: "nut-button-warp" },
745
- loading ? React__default.createElement(x, { className: "nut-icon-loading" }) : null,
746
- !loading && icon ? icon : null,
747
- children && React__default.createElement("div", { className: `${icon || loading ? "nut-button-text" : ""}${rightIcon ? " nut-button-text right" : ""}` }, children),
748
- rightIcon || null
749
- )
750
- );
751
- });
752
- Button.displayName = "NutButton";
753
- const defaultStatus = {
754
- empty: "https://static-ftcms.jd.com/p/files/61a9e3183985005b3958672b.png",
755
- error: "https://ftcms.jd.com/p/files/61a9e33ee7dcdbcc0ce62736.png",
756
- network: "https://static-ftcms.jd.com/p/files/61a9e31de7dcdbcc0ce62734.png"
757
- };
758
- const defaultProps = {
759
- ...ComponentDefaults,
760
- title: "",
761
- description: "",
762
- imageSize: "",
763
- size: "base",
764
- status: "empty",
765
- actions: []
766
- };
767
- const classPrefix = `nut-empty`;
768
- const Empty = (props) => {
769
- useConfig();
770
- const { image, imageSize, title, description, children, className, size, status, actions, ...rest } = {
771
- ...defaultProps,
772
- ...props
773
- };
774
- const [imgStyle, setImgStyle] = useState({});
775
- const imageUrl = image || defaultStatus[status];
776
- const imageNode = typeof imageUrl === "string" ? React__default.createElement("img", { className: "img", src: imageUrl, alt: "empty" }) : imageUrl;
777
- useEffect(() => {
778
- setImgStyle(() => {
779
- if (!imageSize) {
780
- return {};
781
- }
782
- if (typeof imageSize === "number") {
783
- return {
784
- width: `${imageSize}px`,
785
- height: `${imageSize}px`
786
- };
787
- }
788
- return {
789
- width: imageSize,
790
- height: imageSize
791
- };
792
- });
793
- }, [imageSize]);
794
- return React__default.createElement(
795
- "div",
796
- { className: `${classPrefix} ${className}${size === "base" ? "" : ` ${classPrefix}-${size}`}`, ...rest },
797
- React__default.createElement("div", { className: `${classPrefix}-image`, style: imgStyle }, imageNode),
798
- typeof title === "string" && title ? React__default.createElement("div", { className: `${classPrefix}-title` }, title) : title,
799
- typeof description === "string" ? React__default.createElement("div", { className: `${classPrefix}-description` }, description) : description,
800
- actions.length > 0 && React__default.createElement("div", { className: `${classPrefix}-actions` }, actions.map((item, index) => {
801
- return React__default.createElement(Button, { className: `${// eslint-disable-next-line no-nested-ternary
802
- actions.length > 1 ? index === 0 ? `${classPrefix}-actions-left` : `${classPrefix}-actions-right` : ""}`, type: `${actions.length > 1 && index === 0 ? "default" : "primary"}`, size: "small", fill: "outline", key: `action-${index}` }, item == null ? void 0 : item.text);
803
- })),
804
- children
805
- );
806
- };
807
- Empty.defaultProps = defaultProps;
808
- Empty.displayName = "NutEmpty";
809
- export {
810
- Empty as E
811
- };