@nutui/nutui-react-taro 2.0.0-alpha.1 → 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 (357) hide show
  1. package/CHANGELOG.md +105 -0
  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 -9
  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 -13
  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 -9
  66. package/dist/esm/SearchBar.js +11 -14
  67. package/dist/esm/ShortPassword.js +16 -19
  68. package/dist/esm/SideNavBar.js +14 -15
  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 +16971 -22628
  208. package/dist/nutui.react.umd.js +17158 -22831
  209. package/dist/packages/badge/badge.scss +8 -18
  210. package/dist/packages/cascader/cascader.scss +0 -26
  211. package/dist/packages/cellgroup/cellgroup.scss +20 -16
  212. package/dist/packages/checkbox/checkbox.scss +8 -11
  213. package/dist/packages/circleprogress/circleprogress.scss +0 -9
  214. package/dist/packages/dialog/dialog.scss +36 -65
  215. package/dist/packages/elevator/elevator.scss +2 -28
  216. package/dist/packages/empty/empty.scss +0 -9
  217. package/dist/packages/imagepreview/imagepreview.scss +52 -16
  218. package/dist/packages/input/input.scss +13 -180
  219. package/dist/packages/menu/menu.scss +44 -55
  220. package/dist/packages/menuitem/menuitem.scss +16 -26
  221. package/dist/packages/navbar/navbar.scss +16 -115
  222. package/dist/packages/noticebar/noticebar.scss +18 -19
  223. package/dist/packages/notify/notify.scss +1 -1
  224. package/dist/packages/numberkeyboard/numberkeyboard.scss +29 -77
  225. package/dist/packages/overlay/overlay.scss +11 -4
  226. package/dist/packages/picker/picker.scss +66 -137
  227. package/dist/packages/price/price.scss +8 -0
  228. package/dist/packages/progress/progress.scss +19 -58
  229. package/dist/packages/pulltorefresh/pulltorefresh.scss +0 -8
  230. package/dist/packages/radio/radio.scss +13 -32
  231. package/dist/packages/radiogroup/radiogroup.scss +17 -51
  232. package/dist/packages/range/range.scss +24 -49
  233. package/dist/packages/step/step.scss +9 -62
  234. package/dist/packages/steps/steps.scss +2 -0
  235. package/dist/packages/swiper/swiper.scss +3 -18
  236. package/dist/packages/switch/switch.scss +13 -31
  237. package/dist/packages/tabbar/tabbar.scss +16 -22
  238. package/dist/packages/tabbaritem/tabbaritem.scss +9 -70
  239. package/dist/packages/table/table.scss +0 -56
  240. package/dist/packages/tabs/tabs.scss +196 -225
  241. package/dist/packages/textarea/textarea.scss +5 -12
  242. package/dist/style.css +1 -1
  243. package/dist/style.mjs +1 -1
  244. package/dist/styles/themes/default.scss +17 -18
  245. package/dist/styles/variables-jmapp.scss +120 -240
  246. package/dist/styles/variables.scss +139 -252
  247. package/dist/types/index.d.ts +556 -704
  248. package/package.json +2 -2
  249. package/dist/esm/AvatarContext-c96afdcc.js +0 -5
  250. package/dist/esm/Icon.js +0 -64
  251. package/dist/esm/UserContext-0aac9a82.js +0 -5
  252. package/dist/esm/UserContext-e402e1a6.js +0 -5
  253. package/dist/esm/UserContext-e8176108.js +0 -5
  254. package/dist/esm/actionsheet.taro-10cc53ee.js +0 -53
  255. package/dist/esm/address.taro-632ca799.js +0 -461
  256. package/dist/esm/animate.taro-fb7986d6.js +0 -40
  257. package/dist/esm/animatingnumbers.taro-03e5d61d.js +0 -104
  258. package/dist/esm/audio.taro-f672a68c.js +0 -162
  259. package/dist/esm/avatar.taro-de157a1f.js +0 -105
  260. package/dist/esm/avatargroup-b476ac68.js +0 -34
  261. package/dist/esm/backtop.taro-ba271b8f.js +0 -52
  262. package/dist/esm/badge.taro-ae154f41.js +0 -50
  263. package/dist/esm/barrage.taro-80df08d3.js +0 -94
  264. package/dist/esm/bem-350c1702.js +0 -5
  265. package/dist/esm/button.taro-a1c9512f.js +0 -65
  266. package/dist/esm/calendar.taro-099cb4a2.js +0 -65
  267. package/dist/esm/calendaritem.taro-ae167e59.js +0 -787
  268. package/dist/esm/can-use-dom-3eeb5af4.js +0 -6
  269. package/dist/esm/card.taro-5e9b34c8.js +0 -33
  270. package/dist/esm/cascader.taro-62e764a7.js +0 -447
  271. package/dist/esm/cell.taro-26870740.js +0 -43
  272. package/dist/esm/cellgroup.taro-6e901b54.js +0 -24
  273. package/dist/esm/checkbox.taro-785c528b.js +0 -168
  274. package/dist/esm/circleprogress.taro-79854448.js +0 -109
  275. package/dist/esm/col.taro-a99a9171.js +0 -43
  276. package/dist/esm/collapse.taro-35a8a0d6.js +0 -79
  277. package/dist/esm/collapseitem-690eb91c.js +0 -68
  278. package/dist/esm/configprovider-9960f0fb.js +0 -19
  279. package/dist/esm/configprovider.taro-c8c54556.js +0 -45
  280. package/dist/esm/countdown.taro-0e6bf7a2.js +0 -225
  281. package/dist/esm/datepicker.taro-0f2bcf42.js +0 -275
  282. package/dist/esm/dialog.taro-00ac41fd.js +0 -118
  283. package/dist/esm/divider.taro-6c1657ce.js +0 -31
  284. package/dist/esm/drag.taro-79bb8744.js +0 -110
  285. package/dist/esm/elevator.taro-81a11ecc.js +0 -178
  286. package/dist/esm/ellipsis.taro-b6cda065.js +0 -241
  287. package/dist/esm/empty.taro-fde835ca.js +0 -62
  288. package/dist/esm/fixednav.taro-39fbd47a.js +0 -54
  289. package/dist/esm/form.taro-0d83f1e8.js +0 -179
  290. package/dist/esm/formitem.taro-0de07d1e.js +0 -89
  291. package/dist/esm/get-scroll-parent-b4a07e65.js +0 -25
  292. package/dist/esm/grid.taro-3797169c.js +0 -49
  293. package/dist/esm/griditem.taro-04f59ae1.js +0 -80
  294. package/dist/esm/image.taro-edb572bb.js +0 -64
  295. package/dist/esm/imagepreview.taro-b88fcf41.js +0 -167
  296. package/dist/esm/index-5bcb0ff8.js +0 -7
  297. package/dist/esm/indicator.taro-c10334e8.js +0 -30
  298. package/dist/esm/infiniteloading.taro-73c9b8ca.js +0 -141
  299. package/dist/esm/input.taro-10ed5500.js +0 -237
  300. package/dist/esm/inputnumber.taro-108c4784.js +0 -199
  301. package/dist/esm/layout.taro-9046d093.js +0 -11
  302. package/dist/esm/menu.taro-54951911.js +0 -98
  303. package/dist/esm/menuitem.taro-86a6bb6c.js +0 -128
  304. package/dist/esm/navbar.taro-69f47d51.js +0 -77
  305. package/dist/esm/noticebar.taro-49e7441f.js +0 -427
  306. package/dist/esm/notify.taro-e17c6f82.js +0 -75
  307. package/dist/esm/numberkeyboard.taro-ed9b2149.js +0 -159
  308. package/dist/esm/offsetContext-c2a746fa.js +0 -5
  309. package/dist/esm/overlay.taro-ad0d4775.js +0 -75
  310. package/dist/esm/pagination.taro-60b22b27.js +0 -91
  311. package/dist/esm/picker.taro-5028afcb.js +0 -423
  312. package/dist/esm/popover.taro-2a57eae4.js +0 -153
  313. package/dist/esm/popup.taro-020bf791.js +0 -139
  314. package/dist/esm/price.taro-776ed16e.js +0 -83
  315. package/dist/esm/progress.taro-24392ef3.js +0 -88
  316. package/dist/esm/pulltorefresh.taro-d5fcfcb0.js +0 -181
  317. package/dist/esm/radio.taro-51e10152.js +0 -177
  318. package/dist/esm/range.taro-7a2b6ca1.js +0 -332
  319. package/dist/esm/rate.taro-57341aa9.js +0 -77
  320. package/dist/esm/row.taro-75039d53.js +0 -48
  321. package/dist/esm/searchbar.taro-eef468bb.js +0 -152
  322. package/dist/esm/shortpassword.taro-681a33a1.js +0 -119
  323. package/dist/esm/sidenavbar.taro-d5c5b331.js +0 -33
  324. package/dist/esm/sidenavbaritem.taro-bb80dbf4.js +0 -12
  325. package/dist/esm/signature.taro-f01b2b05.js +0 -143
  326. package/dist/esm/skeleton.taro-64e858a2.js +0 -62
  327. package/dist/esm/step.taro-2ec1f283.js +0 -58
  328. package/dist/esm/steps.taro-c82d2252.js +0 -30
  329. package/dist/esm/sticky.taro-b5bde7b1.js +0 -136
  330. package/dist/esm/subsidenavbar.taro-3cce8442.js +0 -63
  331. package/dist/esm/supports-passive-c85ef996.js +0 -18
  332. package/dist/esm/swipe.taro-350c9a94.js +0 -177
  333. package/dist/esm/swiper.taro-7a94e211.js +0 -451
  334. package/dist/esm/swiperitem-c9e3d0d5.js +0 -29
  335. package/dist/esm/switch.taro-34ca8228.js +0 -50
  336. package/dist/esm/tabbar.taro-9acfc2fa.js +0 -59
  337. package/dist/esm/tabbaritem.taro-42ba353f.js +0 -55
  338. package/dist/esm/table.taro-3946697c.js +0 -95
  339. package/dist/esm/tabpane.taro-4ca340ef.js +0 -23
  340. package/dist/esm/tabs.taro-be8cacb5.js +0 -140
  341. package/dist/esm/tag.taro-0c2567de.js +0 -92
  342. package/dist/esm/textarea.taro-a0f79515.js +0 -94
  343. package/dist/esm/timedetail.taro-fce4e614.js +0 -44
  344. package/dist/esm/timepannel.taro-fd3d008d.js +0 -22
  345. package/dist/esm/timeselect.taro-a4b86771.js +0 -133
  346. package/dist/esm/toast.taro-e4f44812.js +0 -108
  347. package/dist/esm/trendarrow.taro-7cf90def.js +0 -70
  348. package/dist/esm/typings-d8491423.js +0 -6
  349. package/dist/esm/uploader.taro-2151eec6.js +0 -494
  350. package/dist/esm/use-client-rect-1f8ed1fe.js +0 -18
  351. package/dist/esm/use-props-value-ae7ee726.js +0 -15
  352. package/dist/esm/use-touch-db24bb5c.js +0 -69
  353. package/dist/esm/video-7ed508cc.js +0 -67
  354. package/dist/esm/virtuallist.taro-35b9bd9a.js +0 -214
  355. package/dist/esm/watermark.taro-c780d360.js +0 -114
  356. package/dist/esm/zh-CN-b4f493ba.js +0 -131
  357. package/dist/packages/icon/icon.scss +0 -0
@@ -1,427 +0,0 @@
1
- import React__default, { useRef, useState, useMemo, useEffect } from 'react';
2
- import classNames from 'classnames';
3
- import { c as cn } from './bem-350c1702.js';
4
- import { g as getRectByTaro } from './use-client-rect-1f8ed1fe.js';
5
- import { C as ComponentDefaults } from './typings-d8491423.js';
6
- import { Notice, Close } from '@nutui/icons-react-taro';
7
-
8
- const defaultProps = {
9
- ...ComponentDefaults,
10
- // 滚动方向 across 横向 vertical 纵向
11
- direction: 'across',
12
- list: [],
13
- standTime: 1000,
14
- complexAm: false,
15
- height: 40,
16
- text: '',
17
- closeMode: false,
18
- wrapable: false,
19
- leftIcon: null,
20
- rightIcon: null,
21
- color: '',
22
- background: '',
23
- delay: 1,
24
- scrollable: null,
25
- speed: 50,
26
- };
27
- const NoticeBar = (props) => {
28
- const { children, className, style, direction, list, standTime, complexAm, height, text, closeMode, wrapable, leftIcon, rightIcon, color, background, delay, scrollable, speed, close, click, onClose, onClick, onClickItem, } = {
29
- ...defaultProps,
30
- ...props,
31
- };
32
- const wrap = useRef(null);
33
- const content = useRef(null);
34
- const [showNoticeBar, SetShowNoticeBar] = useState(true);
35
- const scrollList = useRef([]);
36
- const [wrapWidth, SetWrapWidth] = useState(0);
37
- const [firstRound, SetFirstRound] = useState(true);
38
- const [duration, SetDuration] = useState(0);
39
- const [offsetWidth, SetOffsetW] = useState(0);
40
- const [animationClass, SetAnimationClass] = useState('');
41
- const [animate, SetAnimate] = useState(false);
42
- const [distance, SetDistance] = useState(0);
43
- const [timer, SetTimer] = useState(0);
44
- const [isCanScroll, SetIsCanScroll] = useState(null);
45
- const isVertical = direction === 'vertical';
46
- const [rect, setRect] = useState(null);
47
- let active = 0;
48
- const [ready, setReady] = useState(false);
49
- const container = useRef(null);
50
- const innerRef = useRef(null);
51
- const _swiper = useRef({
52
- moving: false,
53
- autoplayTimer: null,
54
- width: 0,
55
- height: 0,
56
- offset: 0,
57
- size: 0,
58
- });
59
- const [childOffset, setChildOffset] = useState([]);
60
- const [offset, setOffset] = useState(0);
61
- const { childs, childCount } = useMemo(() => {
62
- let childCount = 0;
63
- const childs = React__default.Children.map(children, (child) => {
64
- if (!React__default.isValidElement(child))
65
- return null;
66
- childCount++;
67
- return child;
68
- });
69
- return {
70
- childs,
71
- childCount,
72
- };
73
- }, [children]);
74
- let trackSize = childCount * Number(height);
75
- const minOffset = (() => {
76
- if (rect) {
77
- const base = isVertical ? rect.height : rect.width;
78
- return base - Number(height) * childCount;
79
- }
80
- return 0;
81
- })();
82
- useEffect(() => {
83
- if (isVertical) {
84
- if (children) {
85
- scrollList.current = [].concat(childs);
86
- }
87
- else {
88
- scrollList.current = [].concat(list);
89
- // startRollEasy()
90
- setTimeout(() => {
91
- startRollEasy();
92
- }, Number(standTime));
93
- }
94
- setTimeout(() => {
95
- complexAm && startRoll();
96
- }, Number(standTime));
97
- }
98
- else {
99
- initScrollWrap();
100
- }
101
- return () => {
102
- // 销毁事件
103
- clearInterval(timer);
104
- };
105
- }, []);
106
- useEffect(() => {
107
- initScrollWrap();
108
- }, [text]);
109
- useEffect(() => {
110
- if (list && list.length) {
111
- scrollList.current = [].concat(list);
112
- }
113
- }, [list]);
114
- const initScrollWrap = (value) => {
115
- if (showNoticeBar === false) {
116
- return;
117
- }
118
- setTimeout(async () => {
119
- if (!wrap.current || !content.current) {
120
- return;
121
- }
122
- const warpRes = await getRectByTaro(wrap.current);
123
- const contentRes = await getRectByTaro(content.current);
124
- const wrapW = warpRes.width;
125
- const offsetW = contentRes.width;
126
- const canScroll = scrollable == null ? offsetW > wrapW : scrollable;
127
- SetIsCanScroll(canScroll);
128
- if (canScroll) {
129
- SetWrapWidth(wrapW);
130
- SetOffsetW(offsetW);
131
- SetDuration(offsetW / speed);
132
- SetAnimationClass('play');
133
- }
134
- else {
135
- SetAnimationClass('');
136
- }
137
- }, 0);
138
- };
139
- const handleClick = (event) => {
140
- click && click(event);
141
- onClick && onClick(event);
142
- };
143
- const onClickIcon = (event) => {
144
- event.stopPropagation();
145
- SetShowNoticeBar(!closeMode);
146
- close && close(event);
147
- onClose && onClose(event);
148
- };
149
- const onAnimationEnd = () => {
150
- SetFirstRound(false);
151
- setTimeout(() => {
152
- SetDuration((offsetWidth + wrapWidth) / speed);
153
- SetAnimationClass('play-infinite');
154
- }, 0);
155
- };
156
- /**
157
- * 滚动方式一
158
- */
159
- const startRollEasy = () => {
160
- showhorseLamp();
161
- const time = height / speed / 4 < 1
162
- ? Number((height / speed / 4).toFixed(1)) * 1000
163
- : ~~(height / speed / 4) * 1000;
164
- const timerCurr = window.setInterval(showhorseLamp, time + Number(standTime));
165
- SetTimer(timerCurr);
166
- };
167
- const showhorseLamp = () => {
168
- SetAnimate(true);
169
- const time = height / speed / 4 < 1
170
- ? Number((height / speed / 4).toFixed(1)) * 1000
171
- : ~~(height / speed / 4) * 1000;
172
- setTimeout(() => {
173
- scrollList.current.push(scrollList.current[0]);
174
- scrollList.current.shift();
175
- SetAnimate(false);
176
- }, time);
177
- };
178
- const startRoll = () => {
179
- const timerCurr = window.setInterval(() => {
180
- const chunk = 100;
181
- for (let i = 0; i < chunk; i++) {
182
- scroll(i, !(i < chunk - 1));
183
- }
184
- }, Number(standTime) + 100 * speed);
185
- SetTimer(timerCurr);
186
- };
187
- const scroll = (n, last) => {
188
- SetAnimate(true);
189
- setTimeout(() => {
190
- let long = distance;
191
- long -= height / 100;
192
- SetDistance(long);
193
- if (last) {
194
- scrollList.current.push(scrollList.current[0]);
195
- scrollList.current.shift();
196
- SetDistance(0);
197
- SetAnimate(false);
198
- }
199
- }, n * speed);
200
- };
201
- /**
202
- * 点击滚动单元
203
- */
204
- const handleClickIcon = (event) => {
205
- event.stopPropagation();
206
- SetShowNoticeBar(!closeMode);
207
- close && close(event);
208
- onClose && onClose(event);
209
- };
210
- const isEllipsis = () => {
211
- if (isCanScroll == null) {
212
- return wrapable;
213
- }
214
- return !isCanScroll && !wrapable;
215
- };
216
- const contentStyle = {
217
- animationDelay: `${firstRound ? delay : 0}s`,
218
- animationDuration: `${duration}s`,
219
- transform: `translateX(${firstRound ? 0 : `${wrapWidth}px`})`,
220
- };
221
- const barStyle = {
222
- color,
223
- background,
224
- height: isVertical ? `${height}px` : '',
225
- };
226
- const duringTime = height / speed / 4 < 1
227
- ? Number((height / speed / 4).toFixed(1))
228
- : ~~(height / speed / 4);
229
- const noDuring = height / speed < 1 ? (height / speed).toFixed(1) : ~~(height / speed);
230
- const horseLampStyle = {
231
- transform: complexAm ? `translateY(${distance}px)` : '',
232
- transition: animate
233
- ? `all ${duringTime === 0 ? noDuring : duringTime}s`
234
- : '',
235
- marginTop: animate ? `-${height}px` : '',
236
- };
237
- const b = cn('noticebar');
238
- const noticebarClass = classNames({
239
- 'nut-noticebar-page': true,
240
- withicon: closeMode,
241
- close: closeMode,
242
- wrapable,
243
- });
244
- /**
245
- * 垂直自定义滚动方式
246
- */
247
- const init = (active = +0) => {
248
- if (!container?.current)
249
- return;
250
- setTimeout(async () => {
251
- const rects = await getRectByTaro(container?.current);
252
- const _active = Math.max(Math.min(childCount - 1, active), 0);
253
- const _height = rects.height;
254
- trackSize = childCount * Number(_height);
255
- const targetOffset = getOffset(_active);
256
- _swiper.current.moving = true;
257
- if (ready) {
258
- _swiper.current.moving = false;
259
- }
260
- active = _active;
261
- setRect(rects);
262
- setOffset(targetOffset);
263
- setReady(true);
264
- }, 0);
265
- };
266
- useEffect(() => {
267
- if (ready) {
268
- stopAutoPlay();
269
- autoplay();
270
- }
271
- return () => {
272
- setReady(false);
273
- };
274
- }, [ready]);
275
- useEffect(() => {
276
- if (isVertical && children) {
277
- setTimeout(() => {
278
- init();
279
- stopAutoPlay();
280
- autoplay();
281
- }, 300);
282
- }
283
- }, [children, container?.current]);
284
- // 清除定时器
285
- const stopAutoPlay = () => {
286
- clearTimeout(_swiper.current.autoplayTimer);
287
- _swiper.current.autoplayTimer = null;
288
- };
289
- // 定时轮播
290
- const autoplay = () => {
291
- if (childCount <= 1)
292
- return;
293
- stopAutoPlay();
294
- _swiper.current.autoplayTimer = setTimeout(() => {
295
- next();
296
- autoplay();
297
- }, Number(standTime) + 100 * speed);
298
- };
299
- // 切换方法
300
- const move = ({ pace = 0, offset = 0 }) => {
301
- if (childCount <= 1)
302
- return;
303
- const targetActive = getActive(pace);
304
- // 父级容器偏移量
305
- const targetOffset = getOffset(targetActive, offset);
306
- // 如果循环,调整开头结尾图片位置
307
- if (Array.isArray(children) && children[0] && targetOffset !== minOffset) {
308
- const rightBound = targetOffset < minOffset;
309
- childOffset[0] = rightBound ? trackSize : 0;
310
- }
311
- if (Array.isArray(children) &&
312
- children[childCount - 1] &&
313
- targetOffset !== 0) {
314
- const leftBound = targetOffset > 0;
315
- childOffset[childCount - 1] = leftBound ? -trackSize : 0;
316
- }
317
- setChildOffset(childOffset);
318
- active = targetActive;
319
- setOffset(targetOffset);
320
- getStyle(targetOffset);
321
- };
322
- // 下一页
323
- const next = () => {
324
- resettPosition();
325
- requestFrame(() => {
326
- requestFrame(() => {
327
- _swiper.current.moving = false;
328
- move({
329
- pace: 1,
330
- });
331
- });
332
- });
333
- };
334
- const handleItemClick = (event, value) => {
335
- onClickItem && onClickItem(event, value);
336
- };
337
- const getStyle = (moveOffset = offset) => {
338
- const target = innerRef.current;
339
- let _offset = 0;
340
- // 容器高度-元素高度
341
- const val = rect.height - height;
342
- _offset = moveOffset + Number(active === childCount - 1 && val / 2);
343
- target.style.transitionDuration = `${_swiper.current.moving ? 0 : standTime}ms`;
344
- target.style.height = `${Number(height) * childCount}px`;
345
- target.style.transform = `translate3D(0,${_offset}px,0)`;
346
- };
347
- // 无缝滚动第一个元素位移控制
348
- const itemStyle = (index) => {
349
- const style = {};
350
- if (height) {
351
- style.height = `${height}px`;
352
- style.lineHeight = `${height}px`;
353
- }
354
- const offset = childOffset[index];
355
- if (offset) {
356
- style.transform = `translate3D(0,${offset}px,0)`;
357
- }
358
- return style;
359
- };
360
- // 确定当前active 元素
361
- const getActive = (pace) => {
362
- if (pace) {
363
- const _active = active + pace;
364
- return range(_active, -1, childCount);
365
- }
366
- return active;
367
- };
368
- // 计算位移
369
- const getOffset = (active, offset = 0) => {
370
- const currentPosition = active * Number(height);
371
- const targetOffset = offset - currentPosition;
372
- return targetOffset;
373
- };
374
- // 浏览器 帧 事件
375
- const requestFrame = (fn) => {
376
- window.requestAnimationFrame.call(window, fn);
377
- };
378
- // 取值 方法
379
- const range = (num, min, max) => {
380
- return Math.min(Math.max(num, min), max);
381
- };
382
- // 重置首尾位置信息
383
- const resettPosition = () => {
384
- _swiper.current.moving = true;
385
- if (active <= -1) {
386
- move({ pace: childCount });
387
- }
388
- if (active >= childCount) {
389
- move({ pace: -childCount });
390
- }
391
- };
392
- useEffect(() => {
393
- return () => {
394
- stopAutoPlay();
395
- };
396
- }, []);
397
- return (React__default.createElement("div", { className: `${b()} ${className || ''}`, style: style },
398
- showNoticeBar && direction === 'across' ? (React__default.createElement("div", { className: noticebarClass, style: barStyle, onClick: handleClick },
399
- React__default.createElement("div", { className: "left-icon" }, leftIcon || React__default.createElement(Notice, { size: 16, color: color })),
400
- React__default.createElement("div", { ref: wrap, className: "wrap" },
401
- React__default.createElement("div", { ref: content, className: `content ${animationClass} ${isEllipsis() ? 'nut-ellipsis' : ''}`, style: contentStyle, onAnimationEnd: onAnimationEnd },
402
- children,
403
- text)),
404
- closeMode || rightIcon ? (React__default.createElement("div", { className: "right-icon", onClick: onClickIcon }, rightIcon || React__default.createElement(Close, { size: 12, color: color }))) : null)) : null,
405
- showNoticeBar && scrollList.current.length > 0 && isVertical ? (React__default.createElement("div", { className: "nut-noticebar-vertical", style: barStyle, ref: container, onClick: handleClick },
406
- leftIcon ? React__default.createElement("div", { className: "left-icon" }, leftIcon) : null,
407
- children ? (React__default.createElement(React__default.Fragment, null,
408
- React__default.createElement("div", { className: "nut-noticebar__inner", ref: innerRef }, scrollList.current.map((item, index) => {
409
- return (React__default.createElement("div", { className: "scroll-inner ", style: itemStyle(index), key: index, onClick: (e) => {
410
- handleItemClick(e, item);
411
- } }, item));
412
- })))) : (React__default.createElement("div", { className: "horseLamp_list", style: horseLampStyle }, scrollList.current.map((item, index) => {
413
- return (
414
- // eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions
415
- React__default.createElement("div", { className: "horseLamp_list_item", style: { height }, key: index, onClick: (e) => {
416
- handleItemClick(e, item);
417
- } }, item));
418
- }))),
419
- React__default.createElement("div", { className: "go", onClick: (e) => {
420
- handleClickIcon(e);
421
- } }, rightIcon ||
422
- (closeMode ? React__default.createElement(Close, { size: 12, color: color }) : null)))) : null));
423
- };
424
- NoticeBar.defaultProps = defaultProps;
425
- NoticeBar.displayName = 'NutNoticeBar';
426
-
427
- export { NoticeBar as N };
@@ -1,75 +0,0 @@
1
- import React__default, { useState, useEffect } from 'react';
2
- import classNames from 'classnames';
3
- import { CSSTransition } from 'react-transition-group';
4
- import { c as cn } from './bem-350c1702.js';
5
-
6
- const defaultProps = {
7
- id: '',
8
- msg: '',
9
- color: '',
10
- duration: 3000,
11
- type: 'danger',
12
- className: '',
13
- background: '',
14
- position: 'top',
15
- isWrapTeleport: true,
16
- visible: false,
17
- onClosed: () => { },
18
- onClick: () => { },
19
- };
20
- const Notify = (props) => {
21
- const { id, children, style, msg, color, background, type, className, position, isWrapTeleport, visible, duration, onClosed, onClick, ...rest } = { ...defaultProps, ...props };
22
- let timer;
23
- const [showNotify, SetShow] = useState(false);
24
- useEffect(() => {
25
- if (visible) {
26
- SetShow(true);
27
- show();
28
- }
29
- else {
30
- hide();
31
- }
32
- }, [visible]);
33
- const clickHandle = () => {
34
- onClick();
35
- };
36
- const show = () => {
37
- clearTimer();
38
- if (duration) {
39
- timer = window.setTimeout(() => {
40
- hide();
41
- }, duration);
42
- }
43
- };
44
- const clearTimer = () => {
45
- if (timer) {
46
- clearTimeout(timer);
47
- timer = null;
48
- }
49
- };
50
- const hide = () => {
51
- SetShow(false);
52
- if (id) {
53
- const element = document.getElementById(id);
54
- element && element.parentNode && element.parentNode.removeChild(element);
55
- }
56
- onClosed();
57
- };
58
- cn('notify');
59
- const classes = classNames({
60
- 'nut-notify--popup-top': position === 'top',
61
- 'nut-notify--popup-bottom': position === 'bottom',
62
- 'nut-notify': true,
63
- [`nut-notify--${type}`]: true,
64
- });
65
- return (React__default.createElement(React__default.Fragment, null,
66
- React__default.createElement(CSSTransition, { in: showNotify, timeout: 300, classNames: "fade", unmountOnExit: true, appear: true, position: position, id: id },
67
- React__default.createElement("div", { className: `${classes} ${className}`, style: {
68
- color: `${color || ''}`,
69
- background: `${background || ''}`,
70
- }, onClick: clickHandle }, children || msg))));
71
- };
72
- Notify.defaultProps = defaultProps;
73
- Notify.displayName = 'NutNotify';
74
-
75
- export { Notify as N };
@@ -1,159 +0,0 @@
1
- import React__default, { useState, useEffect } from 'react';
2
- import classNames from 'classnames';
3
- import { c as cn } from './bem-350c1702.js';
4
- import { P as Popup } from './popup.taro-020bf791.js';
5
- import { u as useConfig } from './configprovider.taro-c8c54556.js';
6
-
7
- const defaultProps = {
8
- confirmText: '',
9
- title: '',
10
- visible: false,
11
- overlay: false,
12
- type: 'default',
13
- customKey: [],
14
- className: '',
15
- randomKeys: false,
16
- popClass: '',
17
- onClose: () => { },
18
- };
19
- const NumberKeyboard = (props) => {
20
- const { locale } = useConfig();
21
- const { title, confirmText, visible, overlay, type, customKey, randomKeys, popClass, style, className, onChange, onDelete, onClose, } = props;
22
- const b = cn('numberkeyboard');
23
- const [show, setShow] = useState(visible);
24
- const [clickKeyIndex, setClickKeyIndex] = useState(undefined);
25
- const [keysList, setKeysList] = useState([]);
26
- useEffect(() => {
27
- setShow(visible);
28
- }, [visible]);
29
- const defaultKey = () => {
30
- let leftBottomKey = {
31
- id: 'lock',
32
- type: 'lock',
33
- };
34
- if (customKey) {
35
- const customKeys = Array.isArray(customKey)
36
- ? customKey
37
- : [customKey];
38
- if (customKeys.length > 0) {
39
- const newCustomKey = customKeys[0];
40
- leftBottomKey = {
41
- id: newCustomKey,
42
- type: 'custom',
43
- };
44
- }
45
- }
46
- return [
47
- ...getBasicKeys(),
48
- leftBottomKey,
49
- { id: 0, type: 'number' },
50
- { id: 'delete', type: 'delete' },
51
- ];
52
- };
53
- const getBasicKeys = () => {
54
- const keys = [];
55
- for (let i = 1; i <= 9; i++) {
56
- keys.push({ id: i, type: 'number' });
57
- }
58
- if (randomKeys) {
59
- return keys.sort(() => (Math.random() > 0.5 ? 1 : -1));
60
- }
61
- return keys;
62
- };
63
- const genCustomKeys = () => {
64
- const keys = getBasicKeys();
65
- if (!customKey)
66
- return [];
67
- let customKeys = Array.isArray(customKey) ? customKey : [customKey];
68
- if (customKeys.length > 2) {
69
- customKeys = [customKeys[0], customKeys[1]];
70
- }
71
- if (customKeys.length === 2 &&
72
- props.title &&
73
- props.type !== 'rightColumn') {
74
- customKeys = [customKeys[0]];
75
- }
76
- if (customKeys.length === 1) {
77
- if (props.title && props.type !== 'rightColumn') {
78
- keys.push({ id: customKeys[0], type: 'custom' }, { id: 0, type: 'number' }, { id: 'delete', type: 'delete' });
79
- }
80
- else {
81
- keys.push({ id: 0, type: 'number' }, { id: customKeys[0], type: 'custom' });
82
- }
83
- }
84
- else if (customKeys.length === 2) {
85
- keys.push({ id: customKeys[0], type: 'custom' }, { id: 0, type: 'number' }, { id: customKeys[1], type: 'custom' });
86
- }
87
- return keys;
88
- };
89
- useEffect(() => {
90
- if (props.type === 'rightColumn' || props.title !== '') {
91
- setKeysList(genCustomKeys());
92
- }
93
- else {
94
- setKeysList(defaultKey());
95
- }
96
- }, []);
97
- const onTouchstart = (item, event) => {
98
- event.stopPropagation();
99
- setClickKeyIndex(item.id);
100
- if (item.type === 'number' || item.type === 'custom') {
101
- onChange && onChange(item.id);
102
- }
103
- if (item.type === 'lock') {
104
- onClose && onClose();
105
- }
106
- if (item.type === 'delete') {
107
- onDelete && onDelete();
108
- }
109
- };
110
- const onTouchMove = (event) => {
111
- event.stopPropagation();
112
- };
113
- const onTouchEnd = (event) => {
114
- event.preventDefault();
115
- setClickKeyIndex(undefined);
116
- };
117
- return (React__default.createElement("div", null,
118
- React__default.createElement(Popup, { visible: show, overlay: overlay, position: "bottom", className: popClass, onClickOverlay: onClose, onClickCloseIcon: onClose, overlayStyle: { backgroundColor: 'rgba(0, 0, 0, 0)' } },
119
- React__default.createElement("div", { className: `${b()} ${className}`, style: { ...style } },
120
- title ? (React__default.createElement("div", { className: b('header') },
121
- React__default.createElement("h3", { className: b('header__tit') }, title),
122
- type === 'default' ? (React__default.createElement("span", { className: b('header__close'), onClick: onClose }, locale.done)) : null)) : null,
123
- React__default.createElement("div", { className: b('body') },
124
- React__default.createElement("div", { className: b('body__keys') }, keysList?.map((item, index) => {
125
- return (React__default.createElement("div", { key: index, className: classNames({
126
- 'key-board-wrapper': true,
127
- 'key-board-wrapper-large': item.id === 0 &&
128
- type === 'rightColumn' &&
129
- Array.isArray(customKey) &&
130
- customKey.length === 1,
131
- }) },
132
- React__default.createElement("div", { className: classNames({
133
- key: true,
134
- active: item.id === clickKeyIndex,
135
- lock: item.type === 'lock',
136
- delete: item.type === 'delete',
137
- }), onTouchStart: (event) => onTouchstart(item, event), onTouchMove: onTouchMove, onTouchEnd: onTouchEnd },
138
- item.type === 'number' || item.type === 'custom' ? (React__default.createElement("div", null, item.id)) : null,
139
- item.type === 'lock' ? (React__default.createElement("img", { src: "https://img11.360buyimg.com/imagetools/jfs/t1/146371/38/8485/738/5f606425Eca239740/14f4b4f5f20d8a68.png", alt: "" })) : null,
140
- item.type === 'delete' ? (React__default.createElement("img", { src: "https://img11.360buyimg.com/imagetools/jfs/t1/129395/8/12735/2030/5f61ac37E70cab338/fb477dc11f46056c.png", alt: "" })) : null)));
141
- })),
142
- type === 'rightColumn' ? (React__default.createElement("div", { className: b('sidebar') },
143
- React__default.createElement("div", { className: "key-board-wrapper" },
144
- React__default.createElement("div", { className: classNames({
145
- key: true,
146
- active: clickKeyIndex === 'delete',
147
- }), onTouchStart: (event) => onTouchstart({ id: 'delete', type: 'delete' }, event), onTouchMove: onTouchMove, onTouchEnd: onTouchEnd },
148
- React__default.createElement("img", { src: "https://img11.360buyimg.com/imagetools/jfs/t1/129395/8/12735/2030/5f61ac37E70cab338/fb477dc11f46056c.png", alt: "" }))),
149
- React__default.createElement("div", { className: "key-board-wrapper key-board-finish", onClick: onClose },
150
- React__default.createElement("div", { className: classNames({
151
- key: true,
152
- finish: true,
153
- activeFinsh: clickKeyIndex === 'finish',
154
- }) }, confirmText || locale.done)))) : null)))));
155
- };
156
- NumberKeyboard.defaultProps = defaultProps;
157
- NumberKeyboard.displayName = 'NutNumberKeyboard';
158
-
159
- export { NumberKeyboard as N };
@@ -1,5 +0,0 @@
1
- import { createContext } from 'react';
2
-
3
- const OffsetContext = createContext(20);
4
-
5
- export { OffsetContext as O };