@bifrostui/react 1.1.11-beta.0 → 1.1.11-beta.9

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 (514) hide show
  1. package/README.md +3 -0
  2. package/dist/ActionSheet/ActionSheet.js +107 -62
  3. package/dist/ActionSheet/ActionSheet.types.js +15 -5
  4. package/dist/ActionSheet/ActionSheetContext.js +35 -10
  5. package/dist/ActionSheet/ActionSheetItem.d.ts +1 -1
  6. package/dist/ActionSheet/ActionSheetItem.js +113 -52
  7. package/dist/ActionSheet/ActionSheetItem.types.js +15 -5
  8. package/dist/ActionSheet/index.js +42 -50
  9. package/dist/Alert/Alert.d.ts +1 -1
  10. package/dist/Alert/Alert.js +157 -95
  11. package/dist/Alert/Alert.types.js +15 -5
  12. package/dist/Alert/index.js +38 -30
  13. package/dist/Avatar/Avatar.d.ts +1 -1
  14. package/dist/Avatar/Avatar.js +118 -43
  15. package/dist/Avatar/Avatar.types.js +15 -5
  16. package/dist/Avatar/AvatarGroup.d.ts +1 -1
  17. package/dist/Avatar/AvatarGroup.js +122 -64
  18. package/dist/Avatar/AvatarGroup.types.js +15 -5
  19. package/dist/Avatar/index.js +43 -50
  20. package/dist/Backdrop/Backdrop.d.ts +1 -1
  21. package/dist/Backdrop/Backdrop.js +95 -33
  22. package/dist/Backdrop/Backdrop.types.js +15 -5
  23. package/dist/Backdrop/index.js +37 -30
  24. package/dist/Badge/Badge.d.ts +1 -1
  25. package/dist/Badge/Badge.js +102 -31
  26. package/dist/Badge/Badge.types.js +15 -5
  27. package/dist/Badge/index.js +37 -30
  28. package/dist/Button/Button.css +31 -7
  29. package/dist/Button/Button.d.ts +1 -1
  30. package/dist/Button/Button.js +111 -48
  31. package/dist/Button/Button.types.js +15 -5
  32. package/dist/Button/index.js +37 -30
  33. package/dist/Calendar/Calendar.d.ts +1 -1
  34. package/dist/Calendar/Calendar.js +303 -257
  35. package/dist/Calendar/Calendar.types.js +15 -5
  36. package/dist/Calendar/index.js +37 -30
  37. package/dist/Calendar/utils.js +55 -44
  38. package/dist/Card/Card.d.ts +1 -1
  39. package/dist/Card/Card.js +74 -25
  40. package/dist/Card/Card.types.js +15 -5
  41. package/dist/Card/CardContent.d.ts +1 -1
  42. package/dist/Card/CardContent.js +69 -24
  43. package/dist/Card/CardContent.types.js +15 -5
  44. package/dist/Card/CardFooter.d.ts +1 -1
  45. package/dist/Card/CardFooter.js +69 -24
  46. package/dist/Card/CardFooter.types.js +15 -5
  47. package/dist/Card/CardHeader.d.ts +1 -1
  48. package/dist/Card/CardHeader.js +91 -56
  49. package/dist/Card/CardHeader.types.js +15 -5
  50. package/dist/Card/index.js +54 -91
  51. package/dist/Checkbox/Checkbox.d.ts +1 -1
  52. package/dist/Checkbox/Checkbox.js +133 -66
  53. package/dist/Checkbox/Checkbox.types.js +15 -5
  54. package/dist/Checkbox/CheckboxContext.js +40 -10
  55. package/dist/Checkbox/CheckboxGroup.d.ts +1 -1
  56. package/dist/Checkbox/CheckboxGroup.js +109 -52
  57. package/dist/Checkbox/index.js +40 -38
  58. package/dist/CitySelector/CitySelector.d.ts +1 -1
  59. package/dist/CitySelector/CitySelector.js +83 -35
  60. package/dist/CitySelector/CitySelector.miniapp.d.ts +1 -1
  61. package/dist/CitySelector/CitySelector.miniapp.js +123 -77
  62. package/dist/CitySelector/CitySelector.types.js +15 -5
  63. package/dist/CitySelector/CitySelectorCore.js +228 -174
  64. package/dist/CitySelector/Selector/index.js +46 -20
  65. package/dist/CitySelector/index.js +37 -30
  66. package/dist/Countdown/Countdown.css +11 -1
  67. package/dist/Countdown/Countdown.d.ts +1 -1
  68. package/dist/Countdown/Countdown.js +126 -70
  69. package/dist/Countdown/Countdown.types.js +15 -5
  70. package/dist/Countdown/index.js +39 -42
  71. package/dist/Countdown/useCountdown.js +37 -27
  72. package/dist/Countdown/utils.js +73 -74
  73. package/dist/Divider/Divider.d.ts +1 -1
  74. package/dist/Divider/Divider.js +70 -51
  75. package/dist/Divider/Divider.types.js +15 -5
  76. package/dist/Divider/index.js +37 -30
  77. package/dist/Drawer/Drawer.css +0 -1
  78. package/dist/Drawer/Drawer.js +124 -46
  79. package/dist/Drawer/Drawer.types.js +15 -5
  80. package/dist/Drawer/index.js +37 -30
  81. package/dist/Fade/Fade.js +111 -52
  82. package/dist/Fade/Fade.types.js +15 -5
  83. package/dist/Fade/index.js +38 -30
  84. package/dist/IconButton/IconButton.css +26 -6
  85. package/dist/IconButton/IconButton.d.ts +1 -1
  86. package/dist/IconButton/IconButton.js +114 -46
  87. package/dist/IconButton/IconButton.types.js +15 -5
  88. package/dist/IconButton/index.js +37 -30
  89. package/dist/Image/Image.d.ts +1 -1
  90. package/dist/Image/Image.js +143 -78
  91. package/dist/Image/Image.types.js +15 -5
  92. package/dist/Image/index.js +38 -30
  93. package/dist/Input/Input.d.ts +1 -1
  94. package/dist/Input/Input.js +144 -74
  95. package/dist/Input/Input.types.js +15 -5
  96. package/dist/Input/index.js +37 -30
  97. package/dist/List/List.d.ts +1 -1
  98. package/dist/List/List.js +89 -28
  99. package/dist/List/List.types.js +15 -5
  100. package/dist/List/ListContext.js +34 -9
  101. package/dist/List/ListItem.d.ts +1 -1
  102. package/dist/List/ListItem.js +97 -42
  103. package/dist/List/ListItem.types.js +15 -5
  104. package/dist/List/ListItemContent.d.ts +1 -1
  105. package/dist/List/ListItemContent.js +82 -34
  106. package/dist/List/ListItemContent.types.js +15 -5
  107. package/dist/List/ListItemExtra.d.ts +1 -1
  108. package/dist/List/ListItemExtra.js +70 -26
  109. package/dist/List/ListItemExtra.types.js +15 -5
  110. package/dist/List/ListItemFooter.d.ts +1 -1
  111. package/dist/List/ListItemFooter.js +70 -26
  112. package/dist/List/ListItemFooter.types.js +15 -5
  113. package/dist/List/ListItemHeader.d.ts +1 -1
  114. package/dist/List/ListItemHeader.js +70 -26
  115. package/dist/List/ListItemHeader.types.js +15 -5
  116. package/dist/List/index.js +62 -130
  117. package/dist/Loading/Loading.d.ts +1 -1
  118. package/dist/Loading/Loading.js +82 -33
  119. package/dist/Loading/Loading.types.js +15 -5
  120. package/dist/Loading/index.js +37 -30
  121. package/dist/Modal/Modal.d.ts +1 -1
  122. package/dist/Modal/Modal.js +112 -56
  123. package/dist/Modal/Modal.miniapp.d.ts +3 -3
  124. package/dist/Modal/Modal.miniapp.js +132 -63
  125. package/dist/Modal/Modal.types.js +15 -5
  126. package/dist/Modal/index.js +38 -30
  127. package/dist/NavBar/NavBar.d.ts +1 -1
  128. package/dist/NavBar/NavBar.js +109 -59
  129. package/dist/NavBar/NavBar.types.js +15 -5
  130. package/dist/NavBar/index.js +37 -30
  131. package/dist/Picker/Picker.d.ts +1 -1
  132. package/dist/Picker/Picker.js +155 -97
  133. package/dist/Picker/Picker.types.js +15 -5
  134. package/dist/Picker/PickerPanel.css +9 -1
  135. package/dist/Picker/PickerPanel.d.ts +1 -1
  136. package/dist/Picker/PickerPanel.js +255 -202
  137. package/dist/Picker/index.js +37 -30
  138. package/dist/Picker/utils.js +42 -37
  139. package/dist/Portal/Portal.js +61 -16
  140. package/dist/Portal/Portal.miniapp.js +68 -31
  141. package/dist/Portal/Portal.types.js +15 -5
  142. package/dist/Portal/PortalCore.js +70 -52
  143. package/dist/Portal/index.js +38 -30
  144. package/dist/Progress/Progress.d.ts +1 -1
  145. package/dist/Progress/Progress.js +102 -61
  146. package/dist/Progress/Progress.types.js +15 -5
  147. package/dist/Progress/index.js +38 -30
  148. package/dist/Radio/Radio.d.ts +1 -1
  149. package/dist/Radio/Radio.js +144 -80
  150. package/dist/Radio/Radio.types.js +15 -5
  151. package/dist/Radio/RadioButtonIcon.js +63 -32
  152. package/dist/Radio/RadioContext.js +40 -10
  153. package/dist/Radio/RadioGroup.d.ts +1 -1
  154. package/dist/Radio/RadioGroup.js +89 -34
  155. package/dist/Radio/index.js +40 -38
  156. package/dist/Rating/Rating.d.ts +1 -1
  157. package/dist/Rating/Rating.js +139 -62
  158. package/dist/Rating/Rating.types.js +15 -5
  159. package/dist/Rating/index.js +37 -30
  160. package/dist/ScrollView/ScrollView.d.ts +1 -1
  161. package/dist/ScrollView/ScrollView.js +226 -178
  162. package/{es/ScrollView/index.miniapp.js → dist/ScrollView/ScrollView.miniapp.d.ts} +0 -1
  163. package/dist/ScrollView/ScrollView.miniapp.js +24 -0
  164. package/dist/ScrollView/ScrollView.types.js +15 -5
  165. package/dist/ScrollView/index.js +38 -30
  166. package/dist/Select/Select.d.ts +1 -1
  167. package/dist/Select/Select.js +176 -114
  168. package/dist/Select/Select.types.js +15 -5
  169. package/dist/Select/SelectOption.d.ts +1 -1
  170. package/dist/Select/SelectOption.js +92 -48
  171. package/dist/Select/index.js +40 -38
  172. package/dist/Select/selectContext.js +24 -8
  173. package/dist/Skeleton/Skeleton.css +7 -2
  174. package/dist/Skeleton/Skeleton.d.ts +1 -1
  175. package/dist/Skeleton/Skeleton.js +101 -37
  176. package/dist/Skeleton/Skeleton.types.js +15 -5
  177. package/dist/Skeleton/index.js +38 -30
  178. package/dist/Slide/Slide.js +125 -64
  179. package/dist/Slide/Slide.types.js +15 -5
  180. package/dist/Slide/index.js +38 -30
  181. package/dist/Slider/Slider.css +2 -2
  182. package/dist/Slider/Slider.d.ts +1 -1
  183. package/dist/Slider/Slider.js +215 -171
  184. package/dist/Slider/Slider.types.js +15 -5
  185. package/dist/Slider/index.js +37 -30
  186. package/dist/Slider/utils.js +35 -24
  187. package/dist/Stack/Stack.css +0 -1
  188. package/dist/Stack/Stack.d.ts +1 -1
  189. package/dist/Stack/Stack.js +96 -41
  190. package/dist/Stack/Stack.types.js +15 -5
  191. package/dist/Stack/demo/StackDemo.js +148 -122
  192. package/dist/Stack/index.js +38 -30
  193. package/dist/Steps/Step.css +2 -2
  194. package/dist/Steps/Step.d.ts +1 -1
  195. package/dist/Steps/Step.js +144 -87
  196. package/dist/Steps/Step.types.js +15 -5
  197. package/dist/Steps/Steps.d.ts +1 -1
  198. package/dist/Steps/Steps.js +107 -46
  199. package/dist/Steps/Steps.types.js +15 -5
  200. package/dist/Steps/StepsContext.js +40 -10
  201. package/dist/Steps/index.js +42 -50
  202. package/dist/Swiper/Swiper.d.ts +1 -1
  203. package/dist/Swiper/Swiper.js +149 -82
  204. package/dist/Swiper/Swiper.miniapp.d.ts +2 -0
  205. package/dist/Swiper/Swiper.miniapp.js +24 -0
  206. package/dist/Swiper/Swiper.types.js +15 -5
  207. package/dist/Swiper/SwiperItem.js +66 -28
  208. package/dist/Swiper/SwiperItem.miniapp.d.ts +2 -0
  209. package/dist/Swiper/SwiperItem.miniapp.js +24 -0
  210. package/dist/Swiper/index.js +40 -38
  211. package/dist/Switch/Switch.css +1 -1
  212. package/dist/Switch/Switch.d.ts +1 -1
  213. package/dist/Switch/Switch.js +121 -48
  214. package/dist/Switch/Switch.types.js +15 -5
  215. package/dist/Switch/index.js +38 -30
  216. package/dist/TabBar/TabBar.d.ts +1 -1
  217. package/dist/TabBar/TabBar.js +95 -37
  218. package/dist/TabBar/TabBarContext.js +24 -8
  219. package/dist/TabBar/TabBarItem.d.ts +1 -1
  220. package/dist/TabBar/TabBarItem.js +123 -59
  221. package/dist/TabBar/index.js +39 -32
  222. package/dist/TabBar/index.types.js +15 -5
  223. package/dist/Tabs/Tab.d.ts +1 -1
  224. package/dist/Tabs/Tab.js +104 -52
  225. package/dist/Tabs/Tab.types.js +15 -5
  226. package/dist/Tabs/TabPanel.d.ts +1 -1
  227. package/dist/Tabs/TabPanel.js +76 -31
  228. package/dist/Tabs/TabPanel.types.js +15 -5
  229. package/dist/Tabs/Tabs.css +10 -3
  230. package/dist/Tabs/Tabs.d.ts +1 -1
  231. package/dist/Tabs/Tabs.js +177 -127
  232. package/dist/Tabs/Tabs.types.js +15 -5
  233. package/dist/Tabs/TabsContext.d.ts +2 -2
  234. package/dist/Tabs/TabsContext.js +42 -12
  235. package/dist/Tabs/index.js +48 -71
  236. package/dist/Tabs/utils/bound.js +24 -8
  237. package/dist/Tag/Tag.d.ts +1 -1
  238. package/dist/Tag/Tag.js +102 -47
  239. package/dist/Tag/Tag.types.js +15 -5
  240. package/dist/Tag/TagGroup.css +1 -1
  241. package/dist/Tag/TagGroup.d.ts +1 -1
  242. package/dist/Tag/TagGroup.js +74 -25
  243. package/dist/Tag/TagGroup.types.js +15 -5
  244. package/dist/Tag/index.js +41 -44
  245. package/dist/TextArea/TextArea.d.ts +1 -1
  246. package/dist/TextArea/TextArea.js +203 -137
  247. package/dist/TextArea/TextArea.types.js +15 -5
  248. package/dist/TextArea/index.js +37 -30
  249. package/dist/Transition/Transition.js +61 -17
  250. package/dist/Transition/Transition.miniapp.js +62 -17
  251. package/dist/Transition/Transition.types.js +15 -5
  252. package/dist/Transition/TransitionCore.js +243 -161
  253. package/dist/Transition/index.js +38 -30
  254. package/dist/index.js +98 -444
  255. package/es/ActionSheet/ActionSheet.js +79 -54
  256. package/es/ActionSheet/ActionSheet.types.js +0 -1
  257. package/es/ActionSheet/ActionSheetContext.js +7 -4
  258. package/es/ActionSheet/ActionSheetItem.d.ts +1 -1
  259. package/es/ActionSheet/ActionSheetItem.js +86 -45
  260. package/es/ActionSheet/ActionSheetItem.types.js +0 -1
  261. package/es/ActionSheet/index.js +8 -3
  262. package/es/Alert/Alert.d.ts +1 -1
  263. package/es/Alert/Alert.js +145 -99
  264. package/es/Alert/Alert.types.js +0 -1
  265. package/es/Alert/index.js +5 -2
  266. package/es/Avatar/Avatar.d.ts +1 -1
  267. package/es/Avatar/Avatar.js +102 -50
  268. package/es/Avatar/Avatar.types.js +0 -1
  269. package/es/Avatar/AvatarGroup.d.ts +1 -1
  270. package/es/Avatar/AvatarGroup.js +96 -61
  271. package/es/Avatar/AvatarGroup.types.js +0 -1
  272. package/es/Avatar/index.js +7 -3
  273. package/es/Backdrop/Backdrop.d.ts +1 -1
  274. package/es/Backdrop/Backdrop.js +67 -28
  275. package/es/Backdrop/Backdrop.types.js +0 -1
  276. package/es/Backdrop/index.js +6 -2
  277. package/es/Badge/Badge.d.ts +1 -1
  278. package/es/Badge/Badge.js +82 -34
  279. package/es/Badge/Badge.types.js +0 -1
  280. package/es/Badge/index.js +6 -2
  281. package/es/Button/Button.css +31 -7
  282. package/es/Button/Button.d.ts +1 -1
  283. package/es/Button/Button.js +84 -42
  284. package/es/Button/Button.types.js +0 -1
  285. package/es/Button/index.js +6 -2
  286. package/es/Calendar/Calendar.d.ts +1 -1
  287. package/es/Calendar/Calendar.js +272 -264
  288. package/es/Calendar/Calendar.types.js +0 -1
  289. package/es/Calendar/index.js +6 -2
  290. package/es/Calendar/utils.js +27 -42
  291. package/es/Card/Card.d.ts +1 -1
  292. package/es/Card/Card.js +47 -19
  293. package/es/Card/Card.types.js +0 -1
  294. package/es/Card/CardContent.d.ts +1 -1
  295. package/es/Card/CardContent.js +42 -18
  296. package/es/Card/CardContent.types.js +0 -1
  297. package/es/Card/CardFooter.d.ts +1 -1
  298. package/es/Card/CardFooter.js +42 -18
  299. package/es/Card/CardFooter.types.js +0 -1
  300. package/es/Card/CardHeader.d.ts +1 -1
  301. package/es/Card/CardHeader.js +65 -51
  302. package/es/Card/CardHeader.types.js +0 -1
  303. package/es/Card/index.js +9 -3
  304. package/es/Checkbox/Checkbox.d.ts +1 -1
  305. package/es/Checkbox/Checkbox.js +123 -90
  306. package/es/Checkbox/Checkbox.types.js +0 -1
  307. package/es/Checkbox/CheckboxContext.js +8 -4
  308. package/es/Checkbox/CheckboxGroup.d.ts +1 -1
  309. package/es/Checkbox/CheckboxGroup.js +81 -58
  310. package/es/Checkbox/index.js +7 -2
  311. package/es/CitySelector/CitySelector.d.ts +1 -1
  312. package/es/CitySelector/CitySelector.js +56 -35
  313. package/es/CitySelector/CitySelector.miniapp.d.ts +1 -1
  314. package/es/CitySelector/CitySelector.miniapp.js +95 -74
  315. package/es/CitySelector/CitySelector.types.js +0 -1
  316. package/es/CitySelector/CitySelectorCore.js +203 -187
  317. package/es/CitySelector/Selector/index.js +17 -11
  318. package/es/CitySelector/index.js +6 -2
  319. package/es/Countdown/Countdown.css +11 -1
  320. package/es/Countdown/Countdown.d.ts +1 -1
  321. package/es/Countdown/Countdown.js +108 -85
  322. package/es/Countdown/Countdown.types.js +0 -1
  323. package/es/Countdown/index.js +6 -2
  324. package/es/Countdown/useCountdown.js +26 -43
  325. package/es/Countdown/utils.js +78 -105
  326. package/es/Divider/Divider.d.ts +1 -1
  327. package/es/Divider/Divider.js +45 -41
  328. package/es/Divider/Divider.types.js +0 -1
  329. package/es/Divider/index.js +6 -2
  330. package/es/Drawer/Drawer.css +0 -1
  331. package/es/Drawer/Drawer.js +107 -61
  332. package/es/Drawer/Drawer.types.js +0 -1
  333. package/es/Drawer/index.js +6 -2
  334. package/es/Fade/Fade.js +95 -55
  335. package/es/Fade/Fade.types.js +0 -1
  336. package/es/Fade/index.js +7 -3
  337. package/es/IconButton/IconButton.css +26 -6
  338. package/es/IconButton/IconButton.d.ts +1 -1
  339. package/es/IconButton/IconButton.js +87 -41
  340. package/es/IconButton/IconButton.types.js +0 -1
  341. package/es/IconButton/index.js +6 -2
  342. package/es/Image/Image.d.ts +1 -1
  343. package/es/Image/Image.js +136 -106
  344. package/es/Image/Image.types.js +0 -1
  345. package/es/Image/index.js +7 -3
  346. package/es/Input/Input.d.ts +1 -1
  347. package/es/Input/Input.js +136 -103
  348. package/es/Input/Input.types.js +0 -1
  349. package/es/Input/index.js +6 -2
  350. package/es/List/List.d.ts +1 -1
  351. package/es/List/List.js +68 -28
  352. package/es/List/List.types.js +0 -1
  353. package/es/List/ListContext.js +6 -3
  354. package/es/List/ListItem.d.ts +1 -1
  355. package/es/List/ListItem.js +75 -42
  356. package/es/List/ListItem.types.js +0 -1
  357. package/es/List/ListItemContent.d.ts +1 -1
  358. package/es/List/ListItemContent.js +55 -28
  359. package/es/List/ListItemContent.types.js +0 -1
  360. package/es/List/ListItemExtra.d.ts +1 -1
  361. package/es/List/ListItemExtra.js +43 -20
  362. package/es/List/ListItemExtra.types.js +0 -1
  363. package/es/List/ListItemFooter.d.ts +1 -1
  364. package/es/List/ListItemFooter.js +43 -20
  365. package/es/List/ListItemFooter.types.js +0 -1
  366. package/es/List/ListItemHeader.d.ts +1 -1
  367. package/es/List/ListItemHeader.js +43 -20
  368. package/es/List/ListItemHeader.types.js +0 -1
  369. package/es/List/index.js +10 -2
  370. package/es/Loading/Loading.d.ts +1 -1
  371. package/es/Loading/Loading.js +56 -28
  372. package/es/Loading/Loading.types.js +0 -1
  373. package/es/Loading/index.js +6 -2
  374. package/es/Modal/Modal.d.ts +1 -1
  375. package/es/Modal/Modal.js +93 -70
  376. package/es/Modal/Modal.miniapp.d.ts +3 -3
  377. package/es/Modal/Modal.miniapp.js +104 -67
  378. package/es/Modal/Modal.types.js +0 -1
  379. package/es/Modal/index.js +7 -3
  380. package/es/NavBar/NavBar.d.ts +1 -1
  381. package/es/NavBar/NavBar.js +95 -67
  382. package/es/NavBar/NavBar.types.js +0 -1
  383. package/es/NavBar/index.js +6 -2
  384. package/es/Picker/Picker.d.ts +1 -1
  385. package/es/Picker/Picker.js +139 -124
  386. package/es/Picker/Picker.types.js +0 -1
  387. package/es/Picker/PickerPanel.css +9 -1
  388. package/es/Picker/PickerPanel.d.ts +1 -1
  389. package/es/Picker/PickerPanel.js +228 -226
  390. package/es/Picker/index.js +6 -2
  391. package/es/Picker/utils.js +28 -47
  392. package/es/Portal/Portal.js +31 -10
  393. package/es/Portal/Portal.miniapp.js +40 -23
  394. package/es/Portal/Portal.types.js +0 -1
  395. package/es/Portal/PortalCore.js +42 -53
  396. package/es/Portal/index.js +7 -3
  397. package/es/Progress/Progress.d.ts +1 -1
  398. package/es/Progress/Progress.js +76 -67
  399. package/es/Progress/Progress.types.js +0 -1
  400. package/es/Progress/index.js +7 -3
  401. package/es/Radio/Radio.d.ts +1 -1
  402. package/es/Radio/Radio.js +133 -102
  403. package/es/Radio/Radio.types.js +0 -1
  404. package/es/Radio/RadioButtonIcon.js +38 -28
  405. package/es/Radio/RadioContext.js +8 -4
  406. package/es/Radio/RadioGroup.d.ts +1 -1
  407. package/es/Radio/RadioGroup.js +71 -44
  408. package/es/Radio/index.js +7 -2
  409. package/es/Rating/Rating.d.ts +1 -1
  410. package/es/Rating/Rating.js +132 -89
  411. package/es/Rating/Rating.types.js +0 -1
  412. package/es/Rating/index.js +6 -2
  413. package/es/ScrollView/ScrollView.d.ts +1 -1
  414. package/es/ScrollView/ScrollView.js +204 -185
  415. package/{dist/ScrollView/index.miniapp.d.ts → es/ScrollView/ScrollView.miniapp.d.ts} +0 -1
  416. package/es/ScrollView/ScrollView.miniapp.js +5 -0
  417. package/es/ScrollView/ScrollView.types.js +0 -1
  418. package/es/ScrollView/index.js +7 -3
  419. package/es/Select/Select.d.ts +1 -1
  420. package/es/Select/Select.js +167 -138
  421. package/es/Select/Select.types.js +0 -1
  422. package/es/Select/SelectOption.d.ts +1 -1
  423. package/es/Select/SelectOption.js +66 -41
  424. package/es/Select/index.js +6 -2
  425. package/es/Select/selectContext.js +6 -3
  426. package/es/Skeleton/Skeleton.css +7 -2
  427. package/es/Skeleton/Skeleton.d.ts +1 -1
  428. package/es/Skeleton/Skeleton.js +76 -35
  429. package/es/Skeleton/Skeleton.types.js +0 -1
  430. package/es/Skeleton/index.js +7 -3
  431. package/es/Slide/Slide.js +110 -67
  432. package/es/Slide/Slide.types.js +0 -1
  433. package/es/Slide/index.js +7 -3
  434. package/es/Slider/Slider.css +2 -2
  435. package/es/Slider/Slider.d.ts +1 -1
  436. package/es/Slider/Slider.js +236 -244
  437. package/es/Slider/Slider.types.js +0 -1
  438. package/es/Slider/index.js +6 -2
  439. package/es/Slider/utils.js +13 -22
  440. package/es/Stack/Stack.css +0 -1
  441. package/es/Stack/Stack.d.ts +1 -1
  442. package/es/Stack/Stack.js +78 -47
  443. package/es/Stack/Stack.types.js +0 -1
  444. package/es/Stack/demo/StackDemo.js +123 -126
  445. package/es/Stack/index.js +7 -3
  446. package/es/Steps/Step.css +2 -2
  447. package/es/Steps/Step.d.ts +1 -1
  448. package/es/Steps/Step.js +130 -77
  449. package/es/Steps/Step.types.js +0 -1
  450. package/es/Steps/Steps.d.ts +1 -1
  451. package/es/Steps/Steps.js +83 -44
  452. package/es/Steps/Steps.types.js +0 -1
  453. package/es/Steps/StepsContext.js +8 -4
  454. package/es/Steps/index.js +8 -3
  455. package/es/Swiper/Swiper.d.ts +1 -1
  456. package/es/Swiper/Swiper.js +136 -99
  457. package/es/Swiper/Swiper.miniapp.d.ts +2 -0
  458. package/es/Swiper/Swiper.miniapp.js +5 -0
  459. package/es/Swiper/Swiper.types.js +0 -1
  460. package/es/Swiper/SwiperItem.js +40 -23
  461. package/es/Swiper/SwiperItem.miniapp.d.ts +2 -0
  462. package/es/Swiper/SwiperItem.miniapp.js +5 -0
  463. package/es/Swiper/index.js +8 -3
  464. package/es/Switch/Switch.css +1 -1
  465. package/es/Switch/Switch.d.ts +1 -1
  466. package/es/Switch/Switch.js +110 -67
  467. package/es/Switch/Switch.types.js +0 -1
  468. package/es/Switch/index.js +7 -3
  469. package/es/TabBar/TabBar.d.ts +1 -1
  470. package/es/TabBar/TabBar.js +72 -36
  471. package/es/TabBar/TabBarContext.js +6 -3
  472. package/es/TabBar/TabBarItem.d.ts +1 -1
  473. package/es/TabBar/TabBarItem.js +97 -52
  474. package/es/TabBar/index.js +5 -2
  475. package/es/TabBar/index.types.js +0 -1
  476. package/es/Tabs/Tab.d.ts +1 -1
  477. package/es/Tabs/Tab.js +77 -44
  478. package/es/Tabs/Tab.types.js +0 -1
  479. package/es/Tabs/TabPanel.d.ts +1 -1
  480. package/es/Tabs/TabPanel.js +50 -25
  481. package/es/Tabs/TabPanel.types.js +0 -1
  482. package/es/Tabs/Tabs.css +10 -3
  483. package/es/Tabs/Tabs.d.ts +1 -1
  484. package/es/Tabs/Tabs.js +180 -163
  485. package/es/Tabs/Tabs.types.js +0 -1
  486. package/es/Tabs/TabsContext.d.ts +2 -2
  487. package/es/Tabs/TabsContext.js +10 -6
  488. package/es/Tabs/index.js +10 -4
  489. package/es/Tabs/utils/bound.js +8 -5
  490. package/es/Tag/Tag.d.ts +1 -1
  491. package/es/Tag/Tag.js +85 -53
  492. package/es/Tag/Tag.types.js +0 -1
  493. package/es/Tag/TagGroup.css +1 -1
  494. package/es/Tag/TagGroup.d.ts +1 -1
  495. package/es/Tag/TagGroup.js +47 -19
  496. package/es/Tag/TagGroup.types.js +0 -1
  497. package/es/Tag/index.js +5 -2
  498. package/es/TextArea/TextArea.d.ts +1 -1
  499. package/es/TextArea/TextArea.js +177 -139
  500. package/es/TextArea/TextArea.types.js +0 -1
  501. package/es/TextArea/index.js +6 -2
  502. package/es/Transition/Transition.js +31 -11
  503. package/es/Transition/Transition.miniapp.js +32 -11
  504. package/es/Transition/Transition.types.js +0 -1
  505. package/es/Transition/TransitionCore.js +218 -272
  506. package/es/Transition/index.js +7 -3
  507. package/es/index.js +1 -1
  508. package/package.json +15 -14
  509. package/dist/ScrollView/index.miniapp.js +0 -14
  510. package/dist/Swiper/index.miniapp.d.ts +0 -8
  511. package/dist/Swiper/index.miniapp.js +0 -23
  512. package/es/ScrollView/index.miniapp.d.ts +0 -3
  513. package/es/Swiper/index.miniapp.d.ts +0 -8
  514. package/es/Swiper/index.miniapp.js +0 -6
@@ -1,205 +1,253 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+ var ScrollView_exports = {};
29
+ __export(ScrollView_exports, {
30
+ default: () => ScrollView_default
5
31
  });
6
- exports.default = void 0;
7
- var _utils = require("@bifrostui/utils");
8
- var _clsx = _interopRequireDefault(require("clsx"));
9
- var _react = _interopRequireWildcard(require("react"));
10
- require("./ScrollView.css");
11
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
12
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
13
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
32
+ module.exports = __toCommonJS(ScrollView_exports);
33
+ var import_utils = require("@bifrostui/utils");
34
+ var import_clsx = __toESM(require("clsx"));
35
+ var import_react = __toESM(require("react"));
36
+ var import_ScrollView = require("./ScrollView.css");
14
37
  function easeOutScroll(from, to, callback) {
15
- if (from === to || typeof from !== 'number') {
38
+ if (from === to || typeof from !== "number") {
16
39
  return;
17
40
  }
18
41
  const change = to - from;
19
42
  const dur = 500;
20
- const sTime = +new Date();
43
+ const sTime = +/* @__PURE__ */ new Date();
21
44
  function linear(t, b, c, d) {
22
45
  return c * t / d + b;
23
46
  }
24
47
  const isLarger = to >= from;
25
48
  function step() {
26
- const stepFrom = linear(+new Date() - sTime, from, change, dur);
49
+ const stepFrom = linear(+/* @__PURE__ */ new Date() - sTime, from, change, dur);
27
50
  if (isLarger && stepFrom >= to || !isLarger && to >= stepFrom) {
28
- callback?.(to);
51
+ callback == null ? void 0 : callback(to);
29
52
  return;
30
53
  }
31
- callback?.(stepFrom);
54
+ callback == null ? void 0 : callback(stepFrom);
32
55
  requestAnimationFrame(step);
33
56
  }
34
57
  step();
35
58
  }
36
59
  const classes = {
37
- root: 'bui-scroll'
60
+ root: "bui-scroll"
38
61
  };
39
- const ScrollView = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
40
- const {
41
- className,
42
- style = {},
43
- onScroll,
44
- onScrollToUpper,
45
- onScrollToLower,
46
- scrollTop: scrollTopProp,
47
- scrollLeft: scrollLeftProp,
48
- scrollX,
49
- scrollY,
50
- scrollIntoView,
51
- onTouchMove: propsOnTouchMove,
52
- scrollIntoViewAlignment,
53
- children
54
- } = props;
55
- const container = (0, _react.useRef)(null);
56
- const handleRef = (0, _utils.useForkRef)(ref, container);
57
- const onTouchMove = e => {
58
- // 会导致埋点工具无法正确区分滑动和点击,必须去掉。
59
- // e.stopPropagation();
60
- };
61
- const scrollVertical = (0, _react.useCallback)((top, isAnimation) => {
62
- if (top === undefined) return;
63
- if (isAnimation) {
64
- easeOutScroll(container.current.scrollTop, top, pos => {
65
- if (container.current) container.current.scrollTop = pos;
66
- });
67
- } else if (container.current) container.current.scrollTop = top;
68
- }, []);
69
- const scrollHorizontal = (0, _react.useCallback)((left, isAnimation) => {
70
- if (left === undefined) return;
71
- if (isAnimation) {
72
- easeOutScroll(container.current.scrollLeft, left, pos => {
73
- if (container.current) container.current.scrollLeft = pos;
74
- });
75
- } else if (container.current) container.current.scrollLeft = left;
76
- }, []);
77
- const handleScroll = (0, _react.useCallback)((isInit = false) => {
78
- const isAnimation = props?.scrollWithAnimation;
79
- // scrollIntoView
80
- if (scrollIntoView && typeof scrollIntoView === 'string' && container?.current?.querySelector?.(`#${scrollIntoView}`)) {
81
- const doScrollIntoView = (id, alignment = 'start', _isAnimation = isAnimation) => {
82
- const target = container.current.querySelector(`#${id}`);
83
- if (scrollY) {
84
- const start = target.offsetTop;
85
- const end = target.offsetTop + target.offsetHeight - container.current.clientHeight;
86
- let nearest;
87
- if (container.current.scrollTop < end) nearest = end;else if (container.current.scrollTop > start) nearest = start;
88
- const center = (start + end) / 2;
89
- scrollVertical({
90
- start,
91
- end,
92
- nearest,
93
- center
94
- }[alignment], _isAnimation);
95
- }
96
- if (scrollX) {
97
- const start = target.offsetLeft;
98
- const end = target.offsetLeft + target.offsetWidth - container.current.clientWidth;
99
- let nearest;
100
- if (container.current.scrollTop < end) nearest = end;else if (container.current.scrollTop > start) nearest = start;
101
- const center = (start + end) / 2;
102
- scrollHorizontal({
103
- start,
104
- end,
105
- nearest,
106
- center
107
- }[alignment], _isAnimation);
108
- }
109
- };
110
- if (isInit) {
111
- setTimeout(() => doScrollIntoView(scrollIntoView, scrollIntoViewAlignment, isAnimation), 500);
112
- } else {
113
- doScrollIntoView(scrollIntoView, scrollIntoViewAlignment, isAnimation);
114
- }
115
- } else {
116
- // Y 轴滚动
117
- if (scrollY && typeof scrollTopProp === 'number' && scrollTopProp !== container.current.scrollTop) {
118
- if (isInit) {
119
- setTimeout(() => scrollVertical(scrollTopProp, isAnimation), 10);
120
- } else {
121
- scrollVertical(scrollTopProp, isAnimation);
122
- }
123
- }
124
- // X 轴滚动
125
- if (scrollX && typeof scrollLeftProp === 'number' && scrollLeftProp !== container.current.scrollLeft) {
126
- if (isInit) {
127
- setTimeout(() => scrollHorizontal(scrollLeftProp, isAnimation), 10);
62
+ const ScrollView = (0, import_react.forwardRef)(
63
+ (props, ref) => {
64
+ const {
65
+ className,
66
+ style = {},
67
+ onScroll,
68
+ onScrollToUpper,
69
+ onScrollToLower,
70
+ scrollTop: scrollTopProp,
71
+ scrollLeft: scrollLeftProp,
72
+ scrollX,
73
+ scrollY,
74
+ scrollIntoView,
75
+ onTouchMove: propsOnTouchMove,
76
+ scrollIntoViewAlignment,
77
+ children
78
+ } = props;
79
+ const container = (0, import_react.useRef)(null);
80
+ const handleRef = (0, import_utils.useForkRef)(ref, container);
81
+ const onTouchMove = (e) => {
82
+ };
83
+ const scrollVertical = (0, import_react.useCallback)((top, isAnimation) => {
84
+ if (top === void 0)
85
+ return;
86
+ if (isAnimation) {
87
+ easeOutScroll(container.current.scrollTop, top, (pos) => {
88
+ if (container.current)
89
+ container.current.scrollTop = pos;
90
+ });
91
+ } else if (container.current)
92
+ container.current.scrollTop = top;
93
+ }, []);
94
+ const scrollHorizontal = (0, import_react.useCallback)((left, isAnimation) => {
95
+ if (left === void 0)
96
+ return;
97
+ if (isAnimation) {
98
+ easeOutScroll(container.current.scrollLeft, left, (pos) => {
99
+ if (container.current)
100
+ container.current.scrollLeft = pos;
101
+ });
102
+ } else if (container.current)
103
+ container.current.scrollLeft = left;
104
+ }, []);
105
+ const handleScroll = (0, import_react.useCallback)(
106
+ (isInit = false) => {
107
+ var _a, _b;
108
+ const isAnimation = props == null ? void 0 : props.scrollWithAnimation;
109
+ if (scrollIntoView && typeof scrollIntoView === "string" && ((_b = (_a = container == null ? void 0 : container.current) == null ? void 0 : _a.querySelector) == null ? void 0 : _b.call(_a, `#${scrollIntoView}`))) {
110
+ const doScrollIntoView = (id, alignment = "start", _isAnimation = isAnimation) => {
111
+ const target = container.current.querySelector(`#${id}`);
112
+ if (scrollY) {
113
+ const start = target.offsetTop;
114
+ const end = target.offsetTop + target.offsetHeight - container.current.clientHeight;
115
+ let nearest;
116
+ if (container.current.scrollTop < end)
117
+ nearest = end;
118
+ else if (container.current.scrollTop > start)
119
+ nearest = start;
120
+ const center = (start + end) / 2;
121
+ scrollVertical(
122
+ { start, end, nearest, center }[alignment],
123
+ _isAnimation
124
+ );
125
+ }
126
+ if (scrollX) {
127
+ const start = target.offsetLeft;
128
+ const end = target.offsetLeft + target.offsetWidth - container.current.clientWidth;
129
+ let nearest;
130
+ if (container.current.scrollTop < end)
131
+ nearest = end;
132
+ else if (container.current.scrollTop > start)
133
+ nearest = start;
134
+ const center = (start + end) / 2;
135
+ scrollHorizontal(
136
+ { start, end, nearest, center }[alignment],
137
+ _isAnimation
138
+ );
139
+ }
140
+ };
141
+ if (isInit) {
142
+ setTimeout(
143
+ () => doScrollIntoView(
144
+ scrollIntoView,
145
+ scrollIntoViewAlignment,
146
+ isAnimation
147
+ ),
148
+ 500
149
+ );
150
+ } else {
151
+ doScrollIntoView(
152
+ scrollIntoView,
153
+ scrollIntoViewAlignment,
154
+ isAnimation
155
+ );
156
+ }
128
157
  } else {
129
- scrollHorizontal(scrollLeftProp, isAnimation);
158
+ if (scrollY && typeof scrollTopProp === "number" && scrollTopProp !== container.current.scrollTop) {
159
+ if (isInit) {
160
+ setTimeout(() => scrollVertical(scrollTopProp, isAnimation), 10);
161
+ } else {
162
+ scrollVertical(scrollTopProp, isAnimation);
163
+ }
164
+ }
165
+ if (scrollX && typeof scrollLeftProp === "number" && scrollLeftProp !== container.current.scrollLeft) {
166
+ if (isInit) {
167
+ setTimeout(
168
+ () => scrollHorizontal(scrollLeftProp, isAnimation),
169
+ 10
170
+ );
171
+ } else {
172
+ scrollHorizontal(scrollLeftProp, isAnimation);
173
+ }
174
+ }
130
175
  }
131
- }
132
- }
133
- }, [scrollIntoView, scrollY, scrollTopProp, scrollX, scrollLeftProp]);
134
- (0, _react.useEffect)(() => {
135
- handleScroll(true);
136
- }, []);
137
- (0, _react.useEffect)(() => {
138
- handleScroll();
139
- }, [scrollIntoView, scrollY, scrollTopProp, scrollX, scrollLeftProp]);
140
- let {
141
- upperThreshold = 50,
142
- lowerThreshold = 50
143
- } = props;
144
- const cls = (0, _clsx.default)(classes.root, {
145
- [`${classes.root}-view-scroll-x`]: scrollX,
146
- [`${classes.root}-view-scroll-y`]: scrollY
147
- }, className);
148
- upperThreshold = Number(upperThreshold);
149
- lowerThreshold = Number(lowerThreshold);
150
- const upperLowerStatus = (0, _react.useRef)(0);
151
- const upperAndLower = e => {
152
- if (!container.current) return;
153
- const {
154
- offsetWidth,
155
- offsetHeight,
156
- scrollLeft,
157
- scrollTop,
158
- scrollHeight,
159
- scrollWidth
160
- } = container.current;
161
- if (onScrollToLower && (scrollY && offsetHeight + scrollTop + lowerThreshold >= scrollHeight || scrollX && offsetWidth + scrollLeft + lowerThreshold >= scrollWidth)) {
162
- if (upperLowerStatus.current !== -1) onScrollToLower(e);
163
- upperLowerStatus.current = -1;
164
- } else if (onScrollToUpper && (scrollY && scrollTop <= upperThreshold || scrollX && scrollLeft <= upperThreshold)) {
165
- if (upperLowerStatus.current !== 1) onScrollToUpper(e);
166
- upperLowerStatus.current = 1;
167
- } else {
168
- upperLowerStatus.current = 0;
169
- }
170
- };
171
- const onScrollHandler = e => {
172
- const {
173
- scrollLeft,
174
- scrollTop,
175
- scrollHeight,
176
- scrollWidth
177
- } = container.current;
178
- // container.current.scrollLeft = scrollLeft;
179
- // container.current.scrollTop = scrollTop;
180
- Object.defineProperty(e, 'detail', {
181
- enumerable: true,
182
- writable: true,
183
- value: {
176
+ },
177
+ [scrollIntoView, scrollY, scrollTopProp, scrollX, scrollLeftProp]
178
+ );
179
+ (0, import_react.useEffect)(() => {
180
+ handleScroll(true);
181
+ }, []);
182
+ (0, import_react.useEffect)(() => {
183
+ handleScroll();
184
+ }, [scrollIntoView, scrollY, scrollTopProp, scrollX, scrollLeftProp]);
185
+ let { upperThreshold = 50, lowerThreshold = 50 } = props;
186
+ const cls = (0, import_clsx.default)(
187
+ classes.root,
188
+ {
189
+ [`${classes.root}-view-scroll-x`]: scrollX,
190
+ [`${classes.root}-view-scroll-y`]: scrollY
191
+ },
192
+ className
193
+ );
194
+ upperThreshold = Number(upperThreshold);
195
+ lowerThreshold = Number(lowerThreshold);
196
+ const upperLowerStatus = (0, import_react.useRef)(0);
197
+ const upperAndLower = (e) => {
198
+ if (!container.current)
199
+ return;
200
+ const {
201
+ offsetWidth,
202
+ offsetHeight,
184
203
  scrollLeft,
185
204
  scrollTop,
186
205
  scrollHeight,
187
206
  scrollWidth
207
+ } = container.current;
208
+ if (onScrollToLower && (scrollY && offsetHeight + scrollTop + lowerThreshold >= scrollHeight || scrollX && offsetWidth + scrollLeft + lowerThreshold >= scrollWidth)) {
209
+ if (upperLowerStatus.current !== -1)
210
+ onScrollToLower(e);
211
+ upperLowerStatus.current = -1;
212
+ } else if (onScrollToUpper && (scrollY && scrollTop <= upperThreshold || scrollX && scrollLeft <= upperThreshold)) {
213
+ if (upperLowerStatus.current !== 1)
214
+ onScrollToUpper(e);
215
+ upperLowerStatus.current = 1;
216
+ } else {
217
+ upperLowerStatus.current = 0;
188
218
  }
189
- });
190
- upperAndLower(e);
191
- onScroll?.(e);
192
- };
193
- const onTouchMoveHandler = e => {
194
- (propsOnTouchMove || onTouchMove)?.(e);
195
- };
196
- return /*#__PURE__*/_react.default.createElement("div", {
197
- ref: handleRef,
198
- style: style,
199
- className: cls,
200
- onScroll: onScrollHandler,
201
- onTouchMove: onTouchMoveHandler
202
- }, children);
203
- });
204
- ScrollView.displayName = 'BuiScrollView';
205
- var _default = exports.default = ScrollView;
219
+ };
220
+ const onScrollHandler = (e) => {
221
+ const { scrollLeft, scrollTop, scrollHeight, scrollWidth } = container.current;
222
+ Object.defineProperty(e, "detail", {
223
+ enumerable: true,
224
+ writable: true,
225
+ value: {
226
+ scrollLeft,
227
+ scrollTop,
228
+ scrollHeight,
229
+ scrollWidth
230
+ }
231
+ });
232
+ upperAndLower(e);
233
+ onScroll == null ? void 0 : onScroll(e);
234
+ };
235
+ const onTouchMoveHandler = (e) => {
236
+ var _a;
237
+ (_a = propsOnTouchMove || onTouchMove) == null ? void 0 : _a(e);
238
+ };
239
+ return /* @__PURE__ */ import_react.default.createElement(
240
+ "div",
241
+ {
242
+ ref: handleRef,
243
+ style,
244
+ className: cls,
245
+ onScroll: onScrollHandler,
246
+ onTouchMove: onTouchMoveHandler
247
+ },
248
+ children
249
+ );
250
+ }
251
+ );
252
+ ScrollView.displayName = "BuiScrollView";
253
+ var ScrollView_default = ScrollView;
@@ -1,3 +1,2 @@
1
1
  import { ScrollView } from '@tarojs/components';
2
2
  export default ScrollView;
3
- export { ScrollView };
@@ -0,0 +1,24 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var ScrollView_miniapp_exports = {};
19
+ __export(ScrollView_miniapp_exports, {
20
+ default: () => ScrollView_miniapp_default
21
+ });
22
+ module.exports = __toCommonJS(ScrollView_miniapp_exports);
23
+ var import_components = require("@tarojs/components");
24
+ var ScrollView_miniapp_default = import_components.ScrollView;
@@ -1,5 +1,15 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __copyProps = (to, from, except, desc) => {
6
+ if (from && typeof from === "object" || typeof from === "function") {
7
+ for (let key of __getOwnPropNames(from))
8
+ if (!__hasOwnProp.call(to, key) && key !== except)
9
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
10
+ }
11
+ return to;
12
+ };
13
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
14
+ var ScrollView_types_exports = {};
15
+ module.exports = __toCommonJS(ScrollView_types_exports);
@@ -1,34 +1,42 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- var _exportNames = {
7
- ScrollView: true
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
8
10
  };
9
- Object.defineProperty(exports, "ScrollView", {
10
- enumerable: true,
11
- get: function () {
12
- return _ScrollView.default;
13
- }
14
- });
15
- Object.defineProperty(exports, "default", {
16
- enumerable: true,
17
- get: function () {
18
- return _ScrollView.default;
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
19
16
  }
17
+ return to;
18
+ };
19
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+ var ScrollView_exports = {};
30
+ __export(ScrollView_exports, {
31
+ ScrollView: () => import_ScrollView2.default,
32
+ default: () => import_ScrollView.default
20
33
  });
21
- var _ScrollView = _interopRequireDefault(require("./ScrollView"));
22
- var _ScrollView2 = require("./ScrollView.types");
23
- Object.keys(_ScrollView2).forEach(function (key) {
24
- if (key === "default" || key === "__esModule") return;
25
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
26
- if (key in exports && exports[key] === _ScrollView2[key]) return;
27
- Object.defineProperty(exports, key, {
28
- enumerable: true,
29
- get: function () {
30
- return _ScrollView2[key];
31
- }
32
- });
34
+ module.exports = __toCommonJS(ScrollView_exports);
35
+ var import_ScrollView = __toESM(require("./ScrollView"));
36
+ var import_ScrollView2 = __toESM(require("./ScrollView"));
37
+ __reExport(ScrollView_exports, require("./ScrollView.types"), module.exports);
38
+ // Annotate the CommonJS export names for ESM import in node:
39
+ 0 && (module.exports = {
40
+ ScrollView,
41
+ ...require("./ScrollView.types")
33
42
  });
34
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import { SelectProps } from './Select.types';
3
3
  import './Select.less';
4
- declare const Select: React.ForwardRefExoticComponent<Omit<SelectProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
4
+ declare const Select: React.ForwardRefExoticComponent<Omit<SelectProps<"div", {}>, "ref"> & React.RefAttributes<HTMLDivElement>>;
5
5
  export default Select;