@nutui/nutui-react-taro 2.0.0-alpha.0 → 2.0.0-alpha.10

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 (363) hide show
  1. package/CHANGELOG.md +137 -638
  2. package/dist/esm/ActionSheet.js +15 -16
  3. package/dist/esm/Address.js +19 -22
  4. package/dist/esm/Animate.js +7 -9
  5. package/dist/esm/AnimatingNumbers.js +8 -9
  6. package/dist/esm/Audio.js +18 -20
  7. package/dist/esm/Avatar.js +11 -12
  8. package/dist/esm/AvatarGroup.js +8 -13
  9. package/dist/esm/BackTop.js +9 -10
  10. package/dist/esm/Badge.js +7 -10
  11. package/dist/esm/Barrage.js +9 -10
  12. package/dist/esm/Button.js +8 -9
  13. package/dist/esm/Calendar.js +18 -21
  14. package/dist/esm/CalendarItem.js +11 -14
  15. package/dist/esm/Card.js +12 -13
  16. package/dist/esm/Cascader.js +16 -18
  17. package/dist/esm/Cell.js +7 -8
  18. package/dist/esm/CellGroup.js +7 -8
  19. package/dist/esm/Checkbox.js +9 -10
  20. package/dist/esm/CheckboxGroup.js +9 -10
  21. package/dist/esm/CircleProgress.js +8 -10
  22. package/dist/esm/Col.js +8 -8
  23. package/dist/esm/Collapse.js +8 -9
  24. package/dist/esm/CollapseItem.js +7 -8
  25. package/dist/esm/ConfigProvider.js +9 -9
  26. package/dist/esm/CountDown.js +8 -11
  27. package/dist/esm/DatePicker.js +20 -24
  28. package/dist/esm/Dialog.js +13 -15
  29. package/dist/esm/Divider.js +7 -7
  30. package/dist/esm/Drag.js +7 -9
  31. package/dist/esm/Elevator.js +9 -10
  32. package/dist/esm/Ellipsis.js +9 -11
  33. package/dist/esm/Empty.js +7 -11
  34. package/dist/esm/FixedNav.js +11 -14
  35. package/dist/esm/Form.js +10 -11
  36. package/dist/esm/FormItem.js +8 -9
  37. package/dist/esm/Grid.js +8 -11
  38. package/dist/esm/GridItem.js +7 -10
  39. package/dist/esm/Image.js +7 -10
  40. package/dist/esm/ImagePreview.js +18 -20
  41. package/dist/esm/Indicator.js +6 -7
  42. package/dist/esm/Infiniteloading.js +12 -15
  43. package/dist/esm/Input.js +11 -11
  44. package/dist/esm/InputNumber.js +9 -10
  45. package/dist/esm/Layout.js +5 -6
  46. package/dist/esm/Menu.js +8 -9
  47. package/dist/esm/MenuItem.js +13 -15
  48. package/dist/esm/NavBar.js +7 -11
  49. package/dist/esm/NoticeBar.js +9 -12
  50. package/dist/esm/Notify.js +8 -10
  51. package/dist/esm/NumberKeyboard.js +14 -19
  52. package/dist/esm/Overlay.js +8 -9
  53. package/dist/esm/Pagination.js +9 -12
  54. package/dist/esm/Picker.js +19 -23
  55. package/dist/esm/Popover.js +10 -11
  56. package/dist/esm/Popup.js +12 -15
  57. package/dist/esm/Price.js +6 -8
  58. package/dist/esm/Progress.js +7 -11
  59. package/dist/esm/PullToRefresh.js +9 -14
  60. package/dist/esm/Radio.js +9 -10
  61. package/dist/esm/RadioGroup.js +9 -10
  62. package/dist/esm/Range/style/index.js +1 -1
  63. package/dist/esm/Range.js +11 -16
  64. package/dist/esm/Rate.js +9 -10
  65. package/dist/esm/Row.js +8 -8
  66. package/dist/esm/SearchBar.js +11 -14
  67. package/dist/esm/ShortPassword.js +16 -19
  68. package/dist/esm/SideNavBar.js +14 -20
  69. package/dist/esm/SideNavBarItem.js +5 -6
  70. package/dist/esm/Signature.js +13 -16
  71. package/dist/esm/Skeleton.js +14 -13
  72. package/dist/esm/Step.js +8 -11
  73. package/dist/esm/Steps/style/index.js +1 -1
  74. package/dist/esm/Steps.js +8 -10
  75. package/dist/esm/Sticky.js +10 -12
  76. package/dist/esm/SubSideNavBar.js +6 -7
  77. package/dist/esm/Swipe.js +11 -12
  78. package/dist/esm/Swiper.js +8 -11
  79. package/dist/esm/SwiperItem.js +5 -10
  80. package/dist/esm/Switch.js +7 -8
  81. package/dist/esm/TabPane.js +6 -9
  82. package/dist/esm/Tabbar/style/index.js +1 -1
  83. package/dist/esm/Tabbar.js +10 -8
  84. package/dist/esm/TabbarItem.js +8 -10
  85. package/dist/esm/Table.js +9 -14
  86. package/dist/esm/Tabs.js +11 -12
  87. package/dist/esm/Tag.js +8 -9
  88. package/dist/esm/TextArea.js +11 -11
  89. package/dist/esm/TimeDetail.js +8 -11
  90. package/dist/esm/TimePannel.js +8 -11
  91. package/dist/esm/TimeSelect.js +18 -21
  92. package/dist/esm/Toast.js +9 -10
  93. package/dist/esm/TrendArrow.js +8 -9
  94. package/dist/esm/Uploader.js +14 -19
  95. package/dist/esm/UserContext-ab42ba7f.js +5 -0
  96. package/dist/esm/Video.js +8 -9
  97. package/dist/esm/VirtualList.js +8 -11
  98. package/dist/esm/WaterMark.js +10 -13
  99. package/dist/esm/actionsheet.taro-d2217152.js +61 -0
  100. package/dist/esm/address.taro-1a8ab3f1.js +470 -0
  101. package/dist/esm/animate.taro-c8b29242.js +44 -0
  102. package/dist/esm/animatingnumbers.taro-c2a52dbd.js +103 -0
  103. package/dist/esm/audio.taro-bbd39f93.js +185 -0
  104. package/dist/esm/avatar.taro-01536aff.js +100 -0
  105. package/dist/esm/avatargroup-ad5ffb46.js +34 -0
  106. package/dist/esm/backtop.taro-7de36464.js +48 -0
  107. package/dist/esm/badge.taro-872605bf.js +48 -0
  108. package/dist/esm/barrage.taro-c8cb9864.js +91 -0
  109. package/dist/esm/bem-cdccae08.js +5 -0
  110. package/dist/esm/button.taro-01eae688.js +72 -0
  111. package/dist/esm/calendar.taro-10a6cb11.js +70 -0
  112. package/dist/esm/calendaritem.taro-3e5f114e.js +732 -0
  113. package/dist/esm/can-use-dom-0e539bd3.js +4 -0
  114. package/dist/esm/card.taro-2080f4d2.js +51 -0
  115. package/dist/esm/cascader.taro-fb7a0230.js +471 -0
  116. package/dist/esm/cell.taro-4e31d1fa.js +48 -0
  117. package/dist/esm/cellgroup.taro-a790d91b.js +28 -0
  118. package/dist/esm/checkbox.taro-016074da.js +177 -0
  119. package/dist/esm/circleprogress.taro-7149e09d.js +104 -0
  120. package/dist/esm/col.taro-d6a46a7d.js +41 -0
  121. package/dist/esm/collapse.taro-3d997680.js +70 -0
  122. package/dist/esm/collapseitem-f4571575.js +76 -0
  123. package/dist/esm/configprovider.taro-25758d9f.js +462 -0
  124. package/dist/esm/context-ab42ba7f.js +5 -0
  125. package/dist/esm/context-d0fccf11.js +5 -0
  126. package/dist/esm/countdown.taro-22200811.js +210 -0
  127. package/dist/esm/datepicker.taro-65dbeceb.js +260 -0
  128. package/dist/esm/dialog.taro-290eb9a6.js +128 -0
  129. package/dist/esm/divider.taro-0cb5f894.js +31 -0
  130. package/dist/esm/drag.taro-48e1ff38.js +111 -0
  131. package/dist/esm/elevator.taro-df8fde9d.js +206 -0
  132. package/dist/esm/ellipsis.taro-f9688dd7.js +242 -0
  133. package/dist/esm/empty.taro-ca792f57.js +59 -0
  134. package/dist/esm/fixednav.taro-28e5f776.js +61 -0
  135. package/dist/esm/form.taro-b06754e8.js +182 -0
  136. package/dist/esm/formitem.taro-b326809d.js +108 -0
  137. package/dist/esm/grid.taro-fbbd8618.js +52 -0
  138. package/dist/esm/griditem.taro-b0c37077.js +85 -0
  139. package/dist/esm/image.taro-767aa000.js +65 -0
  140. package/dist/esm/imagepreview.taro-daa5a84f.js +180 -0
  141. package/dist/esm/index-e3184f19.js +9 -0
  142. package/dist/esm/indicator.taro-edbc71df.js +30 -0
  143. package/dist/esm/infiniteloading.taro-f8f23ac6.js +143 -0
  144. package/dist/esm/input.taro-27d686c9.js +164 -0
  145. package/dist/esm/inputnumber.taro-6657d2c1.js +197 -0
  146. package/dist/esm/layout.taro-9659a928.js +11 -0
  147. package/dist/esm/menu.taro-cd0fef41.js +122 -0
  148. package/dist/esm/menuitem.taro-6076bffa.js +142 -0
  149. package/dist/esm/navbar.taro-5e1a0835.js +61 -0
  150. package/dist/esm/noticebar.taro-2f02b2ad.js +369 -0
  151. package/dist/esm/notify.taro-5768403d.js +75 -0
  152. package/dist/esm/numberkeyboard.taro-ad8afaf9.js +136 -0
  153. package/dist/esm/nutui-react.es.js +206 -118
  154. package/dist/esm/offsetContext-f32a9246.js +5 -0
  155. package/dist/esm/overlay.taro-75012bd3.js +77 -0
  156. package/dist/esm/pagination.taro-63607c3b.js +94 -0
  157. package/dist/esm/picker.taro-0570ec32.js +481 -0
  158. package/dist/esm/popover.taro-ad483372.js +162 -0
  159. package/dist/esm/popup.taro-e756f3fc.js +150 -0
  160. package/dist/esm/price.taro-479f1b82.js +80 -0
  161. package/dist/esm/progress.taro-437b9f6a.js +66 -0
  162. package/dist/esm/pulltorefresh.taro-6afe4805.js +138 -0
  163. package/dist/esm/radio.taro-5d6ca4ad.js +153 -0
  164. package/dist/esm/range.taro-615e193a.js +259 -0
  165. package/dist/esm/rate.taro-78c66969.js +77 -0
  166. package/dist/esm/row.taro-8b7febd4.js +48 -0
  167. package/dist/esm/searchbar.taro-37ade36e.js +159 -0
  168. package/dist/esm/shortpassword.taro-f7292032.js +146 -0
  169. package/dist/esm/sidenavbar.taro-9f210df4.js +51 -0
  170. package/dist/esm/sidenavbaritem.taro-32a45ce6.js +12 -0
  171. package/dist/esm/signature.taro-c57469aa.js +146 -0
  172. package/dist/esm/skeleton.taro-9ff9baf4.js +71 -0
  173. package/dist/esm/step.taro-2f55e4f2.js +63 -0
  174. package/dist/esm/steps.taro-196c1f59.js +31 -0
  175. package/dist/esm/sticky.taro-f8ae8d5e.js +154 -0
  176. package/dist/esm/subsidenavbar.taro-abe07673.js +64 -0
  177. package/dist/esm/swipe.taro-de80fcd8.js +180 -0
  178. package/dist/esm/swiper.taro-4aeb8526.js +86 -0
  179. package/dist/esm/swiperitem.taro-ef7342e8.js +14 -0
  180. package/dist/esm/switch.taro-f0da73a3.js +44 -0
  181. package/dist/esm/tabbar.taro-18eee41f.js +55 -0
  182. package/dist/esm/tabbaritem.taro-89646ca1.js +47 -0
  183. package/dist/esm/table.taro-15a55c5d.js +100 -0
  184. package/dist/esm/tabpane.taro-f8d92ece.js +21 -0
  185. package/dist/esm/tabs.taro-66164782.js +146 -0
  186. package/dist/esm/tag.taro-1b4134a5.js +92 -0
  187. package/dist/esm/textarea.taro-c110565e.js +102 -0
  188. package/dist/esm/timedetail.taro-8d2acbbf.js +41 -0
  189. package/dist/esm/timepannel.taro-ee4c5dfa.js +22 -0
  190. package/dist/esm/timeselect.taro-069deedd.js +133 -0
  191. package/dist/esm/toast.taro-92c10e1d.js +114 -0
  192. package/dist/esm/trendarrow.taro-0cf43935.js +72 -0
  193. package/dist/esm/typings-11d83a22.js +7 -0
  194. package/dist/esm/uploader.taro-7e38fc37.js +519 -0
  195. package/dist/esm/use-client-rect-f317804e.js +10 -0
  196. package/dist/esm/use-props-value-7ac1b1b5.js +16 -0
  197. package/dist/esm/use-touch-ff43512c.js +69 -0
  198. package/dist/esm/video-5d106e33.js +73 -0
  199. package/dist/esm/virtuallist.taro-99f03769.js +195 -0
  200. package/dist/esm/watermark.taro-cef29c03.js +109 -0
  201. package/dist/locales/base.js +1 -1
  202. package/dist/locales/en-US.js +1 -1
  203. package/dist/locales/id-ID.js +1 -1
  204. package/dist/locales/zh-CN.js +1 -1
  205. package/dist/locales/zh-TW.js +1 -1
  206. package/dist/locales/zh-UG.js +1 -1
  207. package/dist/nutui.react.mjs +16980 -22641
  208. package/dist/nutui.react.umd.js +17061 -22738
  209. package/dist/packages/audio/audio.scss +2 -15
  210. package/dist/packages/badge/badge.scss +8 -18
  211. package/dist/packages/calendar/calendar.scss +0 -30
  212. package/dist/packages/cascader/cascader.scss +0 -26
  213. package/dist/packages/cellgroup/cellgroup.scss +20 -16
  214. package/dist/packages/checkbox/checkbox.scss +8 -11
  215. package/dist/packages/circleprogress/circleprogress.scss +0 -9
  216. package/dist/packages/dialog/dialog.scss +36 -65
  217. package/dist/packages/elevator/elevator.scss +2 -28
  218. package/dist/packages/empty/empty.scss +0 -9
  219. package/dist/packages/imagepreview/imagepreview.scss +52 -16
  220. package/dist/packages/input/input.scss +13 -180
  221. package/dist/packages/menu/menu.scss +44 -55
  222. package/dist/packages/menuitem/menuitem.scss +16 -26
  223. package/dist/packages/navbar/navbar.scss +16 -115
  224. package/dist/packages/noticebar/noticebar.scss +18 -19
  225. package/dist/packages/notify/notify.scss +1 -1
  226. package/dist/packages/numberkeyboard/numberkeyboard.scss +29 -77
  227. package/dist/packages/overlay/overlay.scss +11 -4
  228. package/dist/packages/picker/picker.scss +66 -137
  229. package/dist/packages/popup/popup.scss +0 -16
  230. package/dist/packages/price/price.scss +8 -0
  231. package/dist/packages/progress/progress.scss +19 -58
  232. package/dist/packages/pulltorefresh/pulltorefresh.scss +0 -8
  233. package/dist/packages/radio/radio.scss +13 -32
  234. package/dist/packages/radiogroup/radiogroup.scss +17 -51
  235. package/dist/packages/range/range.scss +24 -49
  236. package/dist/packages/row/row.scss +13 -31
  237. package/dist/packages/sidenavbar/sidenavbar.scss +0 -19
  238. package/dist/packages/step/step.scss +9 -62
  239. package/dist/packages/steps/steps.scss +2 -0
  240. package/dist/packages/swiper/swiper.scss +3 -18
  241. package/dist/packages/switch/switch.scss +13 -31
  242. package/dist/packages/tabbar/tabbar.scss +16 -22
  243. package/dist/packages/tabbaritem/tabbaritem.scss +9 -70
  244. package/dist/packages/table/table.scss +0 -56
  245. package/dist/packages/tabs/tabs.scss +196 -225
  246. package/dist/packages/textarea/textarea.scss +5 -12
  247. package/dist/packages/uploader/uploader.scss +2 -28
  248. package/dist/style.css +1 -1
  249. package/dist/style.mjs +1 -1
  250. package/dist/styles/themes/default.scss +17 -18
  251. package/dist/styles/variables-jmapp.scss +120 -240
  252. package/dist/styles/variables.scss +139 -252
  253. package/dist/types/index.d.ts +572 -722
  254. package/package.json +2 -2
  255. package/dist/esm/AvatarContext-c96afdcc.js +0 -5
  256. package/dist/esm/Icon.js +0 -64
  257. package/dist/esm/UserContext-0aac9a82.js +0 -5
  258. package/dist/esm/UserContext-e402e1a6.js +0 -5
  259. package/dist/esm/UserContext-e8176108.js +0 -5
  260. package/dist/esm/actionsheet.taro-b76a342e.js +0 -53
  261. package/dist/esm/address.taro-1812caeb.js +0 -461
  262. package/dist/esm/animate.taro-fb7986d6.js +0 -40
  263. package/dist/esm/animatingnumbers.taro-03e5d61d.js +0 -104
  264. package/dist/esm/audio.taro-f672a68c.js +0 -162
  265. package/dist/esm/avatar.taro-de157a1f.js +0 -105
  266. package/dist/esm/avatargroup-b476ac68.js +0 -34
  267. package/dist/esm/backtop.taro-ba271b8f.js +0 -52
  268. package/dist/esm/badge.taro-ae154f41.js +0 -50
  269. package/dist/esm/barrage.taro-80df08d3.js +0 -94
  270. package/dist/esm/bem-350c1702.js +0 -5
  271. package/dist/esm/button.taro-a1c9512f.js +0 -65
  272. package/dist/esm/calendar.taro-b6b147ca.js +0 -65
  273. package/dist/esm/calendaritem.taro-ae167e59.js +0 -787
  274. package/dist/esm/can-use-dom-3eeb5af4.js +0 -6
  275. package/dist/esm/card.taro-5e9b34c8.js +0 -33
  276. package/dist/esm/cascader.taro-9c0a1a38.js +0 -447
  277. package/dist/esm/cell.taro-26870740.js +0 -43
  278. package/dist/esm/cellgroup.taro-6e901b54.js +0 -24
  279. package/dist/esm/checkbox.taro-785c528b.js +0 -168
  280. package/dist/esm/circleprogress.taro-79854448.js +0 -109
  281. package/dist/esm/col.taro-53eed3cc.js +0 -41
  282. package/dist/esm/collapse.taro-35a8a0d6.js +0 -79
  283. package/dist/esm/collapseitem-690eb91c.js +0 -68
  284. package/dist/esm/configprovider-9960f0fb.js +0 -19
  285. package/dist/esm/configprovider.taro-c8c54556.js +0 -45
  286. package/dist/esm/countdown.taro-0e6bf7a2.js +0 -225
  287. package/dist/esm/datepicker.taro-439e2080.js +0 -275
  288. package/dist/esm/dialog.taro-00ac41fd.js +0 -118
  289. package/dist/esm/divider.taro-6c1657ce.js +0 -31
  290. package/dist/esm/drag.taro-79bb8744.js +0 -110
  291. package/dist/esm/elevator.taro-81a11ecc.js +0 -178
  292. package/dist/esm/ellipsis.taro-b6cda065.js +0 -241
  293. package/dist/esm/empty.taro-fde835ca.js +0 -62
  294. package/dist/esm/fixednav.taro-39fbd47a.js +0 -54
  295. package/dist/esm/form.taro-0d83f1e8.js +0 -179
  296. package/dist/esm/formitem.taro-0de07d1e.js +0 -89
  297. package/dist/esm/get-scroll-parent-b4a07e65.js +0 -25
  298. package/dist/esm/grid.taro-3797169c.js +0 -49
  299. package/dist/esm/griditem.taro-04f59ae1.js +0 -80
  300. package/dist/esm/image.taro-edb572bb.js +0 -64
  301. package/dist/esm/imagepreview.taro-867ee24a.js +0 -167
  302. package/dist/esm/index-5bcb0ff8.js +0 -7
  303. package/dist/esm/indicator.taro-c10334e8.js +0 -30
  304. package/dist/esm/infiniteloading.taro-73c9b8ca.js +0 -141
  305. package/dist/esm/input.taro-10ed5500.js +0 -237
  306. package/dist/esm/inputnumber.taro-108c4784.js +0 -199
  307. package/dist/esm/layout.taro-9046d093.js +0 -11
  308. package/dist/esm/menu.taro-54951911.js +0 -98
  309. package/dist/esm/menuitem.taro-86a6bb6c.js +0 -128
  310. package/dist/esm/navbar.taro-69f47d51.js +0 -77
  311. package/dist/esm/noticebar.taro-49e7441f.js +0 -427
  312. package/dist/esm/notify.taro-e17c6f82.js +0 -75
  313. package/dist/esm/numberkeyboard.taro-81b36e5e.js +0 -159
  314. package/dist/esm/offsetContext-c2a746fa.js +0 -5
  315. package/dist/esm/overlay.taro-ad0d4775.js +0 -75
  316. package/dist/esm/pagination.taro-60b22b27.js +0 -91
  317. package/dist/esm/picker.taro-5c9030a7.js +0 -423
  318. package/dist/esm/popover.taro-2a57eae4.js +0 -153
  319. package/dist/esm/popup.taro-124b9bab.js +0 -142
  320. package/dist/esm/price.taro-776ed16e.js +0 -83
  321. package/dist/esm/progress.taro-24392ef3.js +0 -88
  322. package/dist/esm/pulltorefresh.taro-d5fcfcb0.js +0 -181
  323. package/dist/esm/radio.taro-51e10152.js +0 -177
  324. package/dist/esm/range.taro-7a2b6ca1.js +0 -332
  325. package/dist/esm/rate.taro-57341aa9.js +0 -77
  326. package/dist/esm/row.taro-f64d4a13.js +0 -46
  327. package/dist/esm/searchbar.taro-eef468bb.js +0 -152
  328. package/dist/esm/shortpassword.taro-9a2c98ad.js +0 -119
  329. package/dist/esm/sidenavbar.taro-0265812f.js +0 -35
  330. package/dist/esm/sidenavbaritem.taro-bb80dbf4.js +0 -12
  331. package/dist/esm/signature.taro-f01b2b05.js +0 -143
  332. package/dist/esm/skeleton.taro-64e858a2.js +0 -62
  333. package/dist/esm/step.taro-2ec1f283.js +0 -58
  334. package/dist/esm/steps.taro-c82d2252.js +0 -30
  335. package/dist/esm/sticky.taro-b5bde7b1.js +0 -136
  336. package/dist/esm/subsidenavbar.taro-3cce8442.js +0 -63
  337. package/dist/esm/supports-passive-c85ef996.js +0 -18
  338. package/dist/esm/swipe.taro-350c9a94.js +0 -177
  339. package/dist/esm/swiper.taro-7a94e211.js +0 -451
  340. package/dist/esm/swiperitem-c9e3d0d5.js +0 -29
  341. package/dist/esm/switch.taro-34ca8228.js +0 -50
  342. package/dist/esm/tabbar.taro-9acfc2fa.js +0 -59
  343. package/dist/esm/tabbaritem.taro-42ba353f.js +0 -55
  344. package/dist/esm/table.taro-3946697c.js +0 -95
  345. package/dist/esm/tabpane.taro-4ca340ef.js +0 -23
  346. package/dist/esm/tabs.taro-be8cacb5.js +0 -140
  347. package/dist/esm/tag.taro-0c2567de.js +0 -92
  348. package/dist/esm/textarea.taro-a0f79515.js +0 -94
  349. package/dist/esm/timedetail.taro-fce4e614.js +0 -44
  350. package/dist/esm/timepannel.taro-fd3d008d.js +0 -22
  351. package/dist/esm/timeselect.taro-5b047850.js +0 -133
  352. package/dist/esm/toast.taro-e4f44812.js +0 -108
  353. package/dist/esm/trendarrow.taro-7cf90def.js +0 -70
  354. package/dist/esm/typings-d8491423.js +0 -6
  355. package/dist/esm/uploader.taro-0cca7e97.js +0 -496
  356. package/dist/esm/use-client-rect-1f8ed1fe.js +0 -18
  357. package/dist/esm/use-props-value-ae7ee726.js +0 -15
  358. package/dist/esm/use-touch-db24bb5c.js +0 -69
  359. package/dist/esm/video-7ed508cc.js +0 -67
  360. package/dist/esm/virtuallist.taro-35b9bd9a.js +0 -214
  361. package/dist/esm/watermark.taro-c780d360.js +0 -114
  362. package/dist/esm/zh-CN-b4f493ba.js +0 -131
  363. package/dist/packages/icon/icon.scss +0 -0
@@ -0,0 +1,142 @@
1
+ import React, { forwardRef, useState, useEffect, useImperativeHandle } from "react";
2
+ import classNames from "classnames";
3
+ import { getSystemInfoSync } from "@tarojs/taro";
4
+ import { CSSTransition } from "react-transition-group";
5
+ import { Check } from "@nutui/icons-react-taro";
6
+ import { O as Overlay } from "./overlay.taro-75012bd3.js";
7
+ import { g as getRectByTaro } from "./use-client-rect-f317804e.js";
8
+ import { C as ComponentDefaults } from "./typings-11d83a22.js";
9
+ const defaultProps = {
10
+ ...ComponentDefaults,
11
+ columns: 1,
12
+ direction: "down",
13
+ icon: null,
14
+ closeOnClickAway: false,
15
+ activeTitleClass: "",
16
+ inactiveTitleClass: "",
17
+ onChange: (value) => void 0
18
+ };
19
+ const MenuItem = forwardRef((props, ref) => {
20
+ const { className, style, options, value, columns, title, icon, direction, onChange, activeTitleClass, inactiveTitleClass, closeOnClickAway, children, activeColor, show, parent, index } = {
21
+ ...defaultProps,
22
+ ...props
23
+ };
24
+ const [_showPopup, setShowPopup] = useState(show);
25
+ const [_value, setValue] = useState(value);
26
+ useEffect(() => {
27
+ setShowPopup(show);
28
+ }, [show]);
29
+ useEffect(() => {
30
+ getParentOffset();
31
+ }, [_showPopup]);
32
+ useImperativeHandle(ref, () => ({
33
+ toggle: parent.toggleMenuItem
34
+ }));
35
+ const getIconCName = (optionVal, value2) => {
36
+ return classNames({
37
+ [activeTitleClass]: optionVal === value2,
38
+ [inactiveTitleClass]: optionVal !== value2
39
+ });
40
+ };
41
+ const setTitle = (text) => {
42
+ if (!title) {
43
+ parent.updateTitle(text, index);
44
+ }
45
+ };
46
+ const handleClick = (item) => {
47
+ parent.toggleMenuItem(index);
48
+ setTitle(item.text);
49
+ setValue(item.value);
50
+ onChange && onChange(item);
51
+ };
52
+ const [position, setPosition] = useState({
53
+ top: 0,
54
+ height: 0
55
+ });
56
+ const getParentOffset = () => {
57
+ setTimeout(async () => {
58
+ const p = parent.menuRef.current;
59
+ const rect = await getRectByTaro(p);
60
+ setPosition({
61
+ height: rect.height,
62
+ top: rect.top
63
+ });
64
+ }, 100);
65
+ };
66
+ const isShow = () => {
67
+ if (_showPopup)
68
+ return {};
69
+ return { display: "none" };
70
+ };
71
+ const getPosition = () => {
72
+ return direction === "down" ? { top: `${position.top + position.height}px` } : {
73
+ bottom: `${getSystemInfoSync().windowHeight - position.top}px`,
74
+ top: "auto"
75
+ };
76
+ };
77
+ const placeholderStyle = () => {
78
+ if (direction === "down") {
79
+ return {
80
+ height: `${position.top + position.height}px`,
81
+ top: 0,
82
+ ...isShow()
83
+ };
84
+ }
85
+ return {
86
+ height: `${getSystemInfoSync().windowHeight - position.top}px`,
87
+ bottom: `0px`,
88
+ top: "auto",
89
+ ...isShow()
90
+ };
91
+ };
92
+ return React.createElement(
93
+ React.Fragment,
94
+ null,
95
+ closeOnClickAway ? React.createElement("div", { className: `placeholder-element ${classNames({
96
+ up: direction === "up"
97
+ })}`, style: placeholderStyle(), onClick: () => parent.toggleMenuItem(index) }) : null,
98
+ React.createElement(Overlay, { className: "nut-menu__overlay", style: getPosition(), lockScroll: parent.lockScroll, visible: _showPopup, closeOnOverlayClick: parent.closeOnOverlayClick, onClick: () => {
99
+ parent.closeOnOverlayClick && parent.toggleMenuItem(index);
100
+ } }),
101
+ React.createElement(
102
+ "div",
103
+ { className: classNames(className, {
104
+ "nut-menu-item__wrap": direction === "down",
105
+ "nut-menu-item__wrap-up": direction !== "down"
106
+ }), style: {
107
+ ...style,
108
+ ...isShow()
109
+ } },
110
+ React.createElement(
111
+ CSSTransition,
112
+ { in: _showPopup, timeout: 100, classNames: direction === "down" ? "menu-item" : "menu-item-up" },
113
+ React.createElement(
114
+ "div",
115
+ { className: "nut-menu-item__content" },
116
+ options == null ? void 0 : options.map((item, index2) => {
117
+ return React.createElement(
118
+ "div",
119
+ { className: `nut-menu-item__option ${classNames({
120
+ active: item.value === _value
121
+ })}`, key: item.text, style: {
122
+ flexBasis: `${100 / columns}%`
123
+ }, onClick: () => {
124
+ handleClick(item);
125
+ } },
126
+ item.value === _value ? React.createElement(React.Fragment, null, icon || React.createElement(Check, { color: activeColor, size: 10, className: getIconCName(item.value, value) })) : null,
127
+ React.createElement("div", { className: getIconCName(item.value, value), style: {
128
+ color: `${item.value === _value ? activeColor : ""}`
129
+ } }, item.text)
130
+ );
131
+ }),
132
+ children
133
+ )
134
+ )
135
+ )
136
+ );
137
+ });
138
+ MenuItem.defaultProps = defaultProps;
139
+ MenuItem.displayName = "NutMenuItem";
140
+ export {
141
+ MenuItem as M
142
+ };
@@ -0,0 +1,61 @@
1
+ import React from "react";
2
+ import classNames from "classnames";
3
+ import { C as ComponentDefaults } from "./typings-11d83a22.js";
4
+ const defaultProps = {
5
+ ...ComponentDefaults,
6
+ left: "",
7
+ right: "",
8
+ back: "",
9
+ fixed: false,
10
+ safeAreaInsetTop: false,
11
+ placeholder: false,
12
+ zIndex: 10
13
+ };
14
+ const NavBar = (props) => {
15
+ const { right, left, className, style, back, fixed, safeAreaInsetTop, placeholder, zIndex, onClickBack } = {
16
+ ...defaultProps,
17
+ ...props
18
+ };
19
+ const classPrefix = "nut-navbar";
20
+ const children = Array.isArray(props.children) ? props.children : [props.children];
21
+ const styles = () => {
22
+ return {
23
+ ...style,
24
+ zIndex
25
+ };
26
+ };
27
+ const renderLeft = () => {
28
+ return React.createElement(
29
+ "div",
30
+ { className: `${classPrefix}__left` },
31
+ back && React.createElement("div", { className: `${classPrefix}__left__back`, onClick: (e) => onClickBack(e) }, back),
32
+ left
33
+ );
34
+ };
35
+ const renderContent = () => {
36
+ return React.createElement("div", { className: `${classPrefix}__title` }, children);
37
+ };
38
+ const renderRight = () => {
39
+ return React.createElement("div", { className: `${classPrefix}__right` }, right);
40
+ };
41
+ const renderWrapper = () => {
42
+ return React.createElement(
43
+ "div",
44
+ { className: cls, style: styles() },
45
+ renderLeft(),
46
+ renderContent(),
47
+ renderRight()
48
+ );
49
+ };
50
+ const classes = classNames({
51
+ [`${classPrefix}--fixed`]: fixed,
52
+ [`${classPrefix}--safe-area-inset-top`]: safeAreaInsetTop
53
+ });
54
+ const cls = classNames(classPrefix, classes, className);
55
+ return React.createElement(React.Fragment, null, fixed && placeholder ? React.createElement("div", { className: `${classPrefix}--placeholder` }, renderWrapper()) : renderWrapper());
56
+ };
57
+ NavBar.defaultProps = defaultProps;
58
+ NavBar.displayName = "NutNavBar";
59
+ export {
60
+ NavBar as N
61
+ };
@@ -0,0 +1,369 @@
1
+ import React, { useRef, useState, useMemo, useEffect } from "react";
2
+ import { Notice, Close } from "@nutui/icons-react-taro";
3
+ import classNames from "classnames";
4
+ import { g as getRectByTaro } from "./use-client-rect-f317804e.js";
5
+ import { C as ComponentDefaults } from "./typings-11d83a22.js";
6
+ const defaultProps = {
7
+ ...ComponentDefaults,
8
+ direction: "horizontal",
9
+ list: [],
10
+ duration: 1e3,
11
+ height: 40,
12
+ content: "",
13
+ closeable: false,
14
+ wrap: false,
15
+ leftIcon: null,
16
+ rightIcon: null,
17
+ delay: 1,
18
+ scrollable: null,
19
+ speed: 50
20
+ };
21
+ const NoticeBar = (props) => {
22
+ const { children, className, style, direction, list, duration, height, content, closeable, wrap, leftIcon, rightIcon, delay, scrollable, speed, close, click, onClose, onClick, onClickItem } = {
23
+ ...defaultProps,
24
+ ...props
25
+ };
26
+ const classPrefix = "nut-noticebar";
27
+ const wrapRef = useRef(null);
28
+ const contentRef = useRef(null);
29
+ const [showNoticeBar, SetShowNoticeBar] = useState(true);
30
+ const scrollList = useRef([]);
31
+ const [wrapWidth, SetWrapWidth] = useState(0);
32
+ const [firstRound, SetFirstRound] = useState(true);
33
+ const [animationDuration, SetAnimationDuration] = useState(0);
34
+ const [offsetWidth, SetOffsetW] = useState(0);
35
+ const [animationClass, SetAnimationClass] = useState("");
36
+ const [animate, SetAnimate] = useState(false);
37
+ const [timer, SetTimer] = useState(0);
38
+ const [isCanScroll, SetIsCanScroll] = useState(null);
39
+ const isVertical = direction === "vertical";
40
+ const [rect, setRect] = useState(null);
41
+ let active = 0;
42
+ const [ready, setReady] = useState(false);
43
+ const container = useRef(null);
44
+ const innerRef = useRef(null);
45
+ const swiperRef = useRef({
46
+ moving: false,
47
+ autoplayTimer: null,
48
+ width: 0,
49
+ height: 0,
50
+ offset: 0,
51
+ size: 0
52
+ });
53
+ const [childOffset, setChildOffset] = useState([]);
54
+ const [offset, setOffset] = useState(0);
55
+ const { childs, childCount } = useMemo(() => {
56
+ let childCount2 = 0;
57
+ const childs2 = React.Children.map(children, (child) => {
58
+ if (!React.isValidElement(child))
59
+ return null;
60
+ childCount2++;
61
+ return child;
62
+ });
63
+ return {
64
+ childs: childs2,
65
+ childCount: childCount2
66
+ };
67
+ }, [children]);
68
+ let trackSize = childCount * Number(height);
69
+ const minOffset = (() => {
70
+ if (rect) {
71
+ const base = isVertical ? rect.height : rect.width;
72
+ return base - Number(height) * childCount;
73
+ }
74
+ return 0;
75
+ })();
76
+ useEffect(() => {
77
+ if (isVertical) {
78
+ if (children) {
79
+ scrollList.current = [].concat(childs);
80
+ } else {
81
+ scrollList.current = [].concat(list);
82
+ setTimeout(() => {
83
+ startRollEasy();
84
+ }, Number(duration));
85
+ }
86
+ } else {
87
+ initScrollWrap();
88
+ }
89
+ return () => {
90
+ clearInterval(timer);
91
+ };
92
+ }, []);
93
+ useEffect(() => {
94
+ initScrollWrap();
95
+ }, [content]);
96
+ useEffect(() => {
97
+ if (list && list.length) {
98
+ scrollList.current = [].concat(list);
99
+ }
100
+ }, [list]);
101
+ const initScrollWrap = (value) => {
102
+ if (showNoticeBar === false) {
103
+ return;
104
+ }
105
+ setTimeout(async () => {
106
+ if (!wrapRef.current || !contentRef.current) {
107
+ return;
108
+ }
109
+ const warpRes = await getRectByTaro(wrapRef.current);
110
+ const contentRes = await getRectByTaro(contentRef.current);
111
+ const wrapW = warpRes.width;
112
+ const offsetW = contentRes.width;
113
+ const canScroll = scrollable == null ? offsetW > wrapW : scrollable;
114
+ SetIsCanScroll(canScroll);
115
+ if (canScroll) {
116
+ SetWrapWidth(wrapW);
117
+ SetOffsetW(offsetW);
118
+ SetAnimationDuration(offsetW / speed);
119
+ SetAnimationClass("play");
120
+ } else {
121
+ SetAnimationClass("");
122
+ }
123
+ }, 0);
124
+ };
125
+ const handleClick = (event) => {
126
+ click && click(event);
127
+ onClick && onClick(event);
128
+ };
129
+ const onClickIcon = (event) => {
130
+ event.stopPropagation();
131
+ SetShowNoticeBar(!closeable);
132
+ close && close(event);
133
+ onClose && onClose(event);
134
+ };
135
+ const onAnimationEnd = () => {
136
+ SetFirstRound(false);
137
+ setTimeout(() => {
138
+ SetAnimationDuration((offsetWidth + wrapWidth) / speed);
139
+ SetAnimationClass("play-infinite");
140
+ }, 0);
141
+ };
142
+ const startRollEasy = () => {
143
+ showhorseLamp();
144
+ const time = height / speed / 4 < 1 ? Number((height / speed / 4).toFixed(1)) * 1e3 : ~~(height / speed / 4) * 1e3;
145
+ const timerCurr = window.setInterval(showhorseLamp, time + Number(duration));
146
+ SetTimer(timerCurr);
147
+ };
148
+ const showhorseLamp = () => {
149
+ SetAnimate(true);
150
+ const time = height / speed / 4 < 1 ? Number((height / speed / 4).toFixed(1)) * 1e3 : ~~(height / speed / 4) * 1e3;
151
+ setTimeout(() => {
152
+ scrollList.current.push(scrollList.current[0]);
153
+ scrollList.current.shift();
154
+ SetAnimate(false);
155
+ }, time);
156
+ };
157
+ const handleClickIcon = (event) => {
158
+ event.stopPropagation();
159
+ SetShowNoticeBar(!closeable);
160
+ close && close(event);
161
+ onClose && onClose(event);
162
+ };
163
+ const isEllipsis = () => {
164
+ if (isCanScroll == null) {
165
+ return wrap;
166
+ }
167
+ return !isCanScroll && !wrap;
168
+ };
169
+ const contentStyle = {
170
+ animationDelay: `${firstRound ? delay : 0}s`,
171
+ animationDuration: `${animationDuration}s`,
172
+ transform: `translateX(${firstRound ? 0 : `${wrapWidth}px`})`
173
+ };
174
+ const barStyle = {
175
+ height: isVertical ? `${height}px` : ""
176
+ };
177
+ const duringTime = height / speed / 4 < 1 ? Number((height / speed / 4).toFixed(1)) : ~~(height / speed / 4);
178
+ const noDuring = height / speed < 1 ? (height / speed).toFixed(1) : ~~(height / speed);
179
+ const horseLampStyle = {
180
+ transition: animate ? `all ${duringTime === 0 ? noDuring : duringTime}s` : "",
181
+ marginTop: animate ? `-${height}px` : ""
182
+ };
183
+ const init = (active2 = 0) => {
184
+ if (!(container == null ? void 0 : container.current))
185
+ return;
186
+ setTimeout(async () => {
187
+ const rects = await getRectByTaro(container == null ? void 0 : container.current);
188
+ const _active = Math.max(Math.min(childCount - 1, active2), 0);
189
+ const _height = rects == null ? void 0 : rects.height;
190
+ trackSize = childCount * Number(_height);
191
+ const targetOffset = getOffset(_active);
192
+ swiperRef.current.moving = true;
193
+ if (ready) {
194
+ swiperRef.current.moving = false;
195
+ }
196
+ active2 = _active;
197
+ setRect(rects);
198
+ setOffset(targetOffset);
199
+ setReady(true);
200
+ }, 0);
201
+ };
202
+ useEffect(() => {
203
+ if (ready) {
204
+ stopAutoPlay();
205
+ autoplay();
206
+ }
207
+ return () => {
208
+ setReady(false);
209
+ };
210
+ }, [ready]);
211
+ useEffect(() => {
212
+ if (isVertical && children) {
213
+ setTimeout(() => {
214
+ init();
215
+ stopAutoPlay();
216
+ autoplay();
217
+ }, 300);
218
+ }
219
+ }, [children, container == null ? void 0 : container.current]);
220
+ const stopAutoPlay = () => {
221
+ clearTimeout(swiperRef.current.autoplayTimer);
222
+ swiperRef.current.autoplayTimer = null;
223
+ };
224
+ const autoplay = () => {
225
+ if (childCount <= 1)
226
+ return;
227
+ stopAutoPlay();
228
+ swiperRef.current.autoplayTimer = setTimeout(() => {
229
+ next();
230
+ autoplay();
231
+ }, Number(duration) + 100 * speed);
232
+ };
233
+ const move = ({ pace = 0, offset: offset2 = 0 }) => {
234
+ if (childCount <= 1)
235
+ return;
236
+ const targetActive = getActive(pace);
237
+ const targetOffset = getOffset(targetActive, offset2);
238
+ if (Array.isArray(children) && children[0] && targetOffset !== minOffset) {
239
+ const rightBound = targetOffset < minOffset;
240
+ childOffset[0] = rightBound ? trackSize : 0;
241
+ }
242
+ if (Array.isArray(children) && children[childCount - 1] && targetOffset !== 0) {
243
+ const leftBound = targetOffset > 0;
244
+ childOffset[childCount - 1] = leftBound ? -trackSize : 0;
245
+ }
246
+ setChildOffset(childOffset);
247
+ active = targetActive;
248
+ setOffset(targetOffset);
249
+ getStyle(targetOffset);
250
+ };
251
+ const next = () => {
252
+ resettPosition();
253
+ requestFrame(() => {
254
+ requestFrame(() => {
255
+ swiperRef.current.moving = false;
256
+ move({
257
+ pace: 1
258
+ });
259
+ });
260
+ });
261
+ };
262
+ const handleItemClick = (event, value) => {
263
+ onClickItem && onClickItem(event, value);
264
+ };
265
+ const getStyle = (moveOffset = offset) => {
266
+ const target = innerRef.current;
267
+ let _offset = 0;
268
+ const val = (rect == null ? void 0 : rect.height) - height;
269
+ _offset = moveOffset + Number(active === childCount - 1 && val / 2);
270
+ target.style.transitionDuration = `${swiperRef.current.moving ? 0 : duration}ms`;
271
+ target.style.height = `${Number(height) * childCount}px`;
272
+ target.style.transform = `translate3D(0,${_offset}px,0)`;
273
+ };
274
+ const itemStyle = (index) => {
275
+ const style2 = {};
276
+ if (height) {
277
+ style2.height = `${height}px`;
278
+ style2.lineHeight = `${height}px`;
279
+ }
280
+ const offset2 = childOffset[index];
281
+ if (offset2) {
282
+ style2.transform = `translate3D(0,${offset2}px,0)`;
283
+ }
284
+ return style2;
285
+ };
286
+ const getActive = (pace) => {
287
+ if (pace) {
288
+ const _active = active + pace;
289
+ return range(_active, -1, childCount);
290
+ }
291
+ return active;
292
+ };
293
+ const getOffset = (active2, offset2 = 0) => {
294
+ const currentPosition = active2 * Number(height);
295
+ const targetOffset = offset2 - currentPosition;
296
+ return targetOffset;
297
+ };
298
+ const requestFrame = (fn) => {
299
+ window.requestAnimationFrame.call(window, fn);
300
+ };
301
+ const range = (num, min, max) => {
302
+ return Math.min(Math.max(num, min), max);
303
+ };
304
+ const resettPosition = () => {
305
+ swiperRef.current.moving = true;
306
+ if (active <= -1) {
307
+ move({ pace: childCount });
308
+ }
309
+ if (active >= childCount) {
310
+ move({ pace: -childCount });
311
+ }
312
+ };
313
+ const noticebarClass = classNames({
314
+ "nut-noticebar-page": true,
315
+ withicon: closeable,
316
+ close: closeable,
317
+ wrap
318
+ });
319
+ useEffect(() => {
320
+ return () => {
321
+ stopAutoPlay();
322
+ };
323
+ }, []);
324
+ return React.createElement(
325
+ "div",
326
+ { className: `${classPrefix} ${className || ""}`, style },
327
+ showNoticeBar && direction === "horizontal" ? React.createElement(
328
+ "div",
329
+ { className: noticebarClass, style: barStyle, onClick: handleClick },
330
+ React.createElement("div", { className: "left-icon" }, leftIcon || React.createElement(Notice, { size: 16 })),
331
+ React.createElement(
332
+ "div",
333
+ { ref: wrapRef, className: "wrap" },
334
+ React.createElement(
335
+ "div",
336
+ { ref: contentRef, className: `content ${animationClass} ${isEllipsis() ? "nut-ellipsis" : ""}`, style: contentStyle, onAnimationEnd },
337
+ children,
338
+ content
339
+ )
340
+ ),
341
+ closeable || rightIcon ? React.createElement("div", { className: "right-icon", onClick: onClickIcon }, rightIcon || React.createElement(Close, { size: 12 })) : null
342
+ ) : null,
343
+ showNoticeBar && scrollList.current.length > 0 && isVertical ? React.createElement(
344
+ "div",
345
+ { className: "nut-noticebar-vertical", style: barStyle, ref: container, onClick: handleClick },
346
+ leftIcon ? React.createElement("div", { className: "left-icon" }, leftIcon) : null,
347
+ children ? React.createElement("div", { className: "nut-noticebar__inner", ref: innerRef }, scrollList.current.map((item, index) => {
348
+ return React.createElement("div", { className: "scroll-inner ", style: itemStyle(index), key: index, onClick: (e) => {
349
+ handleItemClick(e, item);
350
+ } }, item);
351
+ })) : React.createElement("div", { className: "horseLamp_list", style: horseLampStyle }, scrollList.current.map((item, index) => {
352
+ return (
353
+ // eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions
354
+ React.createElement("div", { className: "horseLamp_list_item", style: { height }, key: index, onClick: (e) => {
355
+ handleItemClick(e, item);
356
+ } }, item)
357
+ );
358
+ })),
359
+ React.createElement("div", { className: "go", onClick: (e) => {
360
+ handleClickIcon(e);
361
+ } }, rightIcon || (closeable ? React.createElement(Close, { size: 12 }) : null))
362
+ ) : null
363
+ );
364
+ };
365
+ NoticeBar.defaultProps = defaultProps;
366
+ NoticeBar.displayName = "NutNoticeBar";
367
+ export {
368
+ NoticeBar as N
369
+ };
@@ -0,0 +1,75 @@
1
+ import React, { useState, useEffect } from "react";
2
+ import classNames from "classnames";
3
+ import { CSSTransition } from "react-transition-group";
4
+ import { C as ComponentDefaults } from "./typings-11d83a22.js";
5
+ const defaultProps = {
6
+ ...ComponentDefaults,
7
+ id: "",
8
+ duration: 3e3,
9
+ type: "danger",
10
+ position: "top",
11
+ visible: false,
12
+ onClose: () => {
13
+ },
14
+ onClick: () => {
15
+ }
16
+ };
17
+ const classPrefix = "nut-notify";
18
+ const Notify = (props) => {
19
+ const { id, children, style, type, className, position, visible, duration, onClose, onClick, ...rest } = { ...defaultProps, ...props };
20
+ let timer;
21
+ const [showNotify, SetShow] = useState(false);
22
+ useEffect(() => {
23
+ if (visible) {
24
+ SetShow(true);
25
+ show();
26
+ } else {
27
+ hide();
28
+ }
29
+ }, [visible]);
30
+ const clickHandle = () => {
31
+ onClick();
32
+ };
33
+ const show = () => {
34
+ clearTimer();
35
+ if (duration) {
36
+ timer = window.setTimeout(() => {
37
+ hide();
38
+ }, duration);
39
+ }
40
+ };
41
+ const clearTimer = () => {
42
+ if (timer) {
43
+ clearTimeout(timer);
44
+ timer = null;
45
+ }
46
+ };
47
+ const hide = () => {
48
+ SetShow(false);
49
+ if (id) {
50
+ const element = document.getElementById(id);
51
+ element && element.parentNode && element.parentNode.removeChild(element);
52
+ }
53
+ onClose();
54
+ };
55
+ const classes = classNames({
56
+ [`${classPrefix}--popup-top`]: position === "top",
57
+ [`${classPrefix}--popup-bottom`]: position === "bottom",
58
+ [`${classPrefix}`]: true,
59
+ [`${classPrefix}--${type}`]: true
60
+ });
61
+ return React.createElement(
62
+ React.Fragment,
63
+ null,
64
+ React.createElement(
65
+ CSSTransition,
66
+ { in: showNotify, timeout: 300, classNames: "fade", unmountOnExit: true, appear: true, position, id },
67
+ React.createElement("div", { className: `${classes} ${className}`, style, onClick: clickHandle }, children)
68
+ )
69
+ );
70
+ };
71
+ Notify.defaultProps = defaultProps;
72
+ Notify.displayName = "NutNotify";
73
+ export {
74
+ Notify as N
75
+ };