@bifrostui/react 2.0.0-alpha.11 → 2.0.0-alpha.13

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 (475) hide show
  1. package/dist/ActionSheet/ActionSheet.d.ts +1 -1
  2. package/dist/ActionSheet/ActionSheet.js +8 -8
  3. package/dist/ActionSheet/ActionSheet.types.d.ts +1 -1
  4. package/dist/ActionSheet/ActionSheetContext.d.ts +1 -1
  5. package/dist/ActionSheet/ActionSheetContext.js +2 -2
  6. package/dist/ActionSheet/ActionSheetItem.types.d.ts +1 -1
  7. package/dist/Alert/Alert.d.ts +1 -1
  8. package/dist/Alert/Alert.js +16 -16
  9. package/dist/Alert/__tests__/fixtures/A11yDemos.d.ts +1 -1
  10. package/dist/Alert/__tests__/fixtures/A11yDemos.js +12 -12
  11. package/dist/Avatar/Avatar.d.ts +1 -1
  12. package/dist/Avatar/Avatar.js +5 -5
  13. package/dist/Avatar/Avatar.types.d.ts +1 -1
  14. package/dist/Avatar/AvatarGroup.types.d.ts +1 -1
  15. package/dist/Backdrop/Backdrop.d.ts +1 -1
  16. package/dist/Backdrop/Backdrop.js +3 -3
  17. package/dist/Backdrop/Backdrop.types.d.ts +1 -1
  18. package/dist/Backdrop/__tests__/fixtures/A11yDemos.d.ts +1 -1
  19. package/dist/Backdrop/__tests__/fixtures/A11yDemos.js +3 -3
  20. package/dist/Badge/Badge.d.ts +1 -1
  21. package/dist/Badge/Badge.js +4 -4
  22. package/dist/Badge/__tests__/fixtures/A11yDemos.d.ts +1 -1
  23. package/dist/Badge/__tests__/fixtures/A11yDemos.js +13 -13
  24. package/dist/Breadcrumb/Breadcrumb.d.ts +1 -1
  25. package/dist/Breadcrumb/Breadcrumb.js +9 -9
  26. package/dist/Breadcrumb/Breadcrumb.types.d.ts +1 -1
  27. package/dist/Breadcrumb/BreadcrumbItem.d.ts +1 -1
  28. package/dist/Breadcrumb/BreadcrumbItem.js +4 -4
  29. package/dist/Button/Button.d.ts +1 -1
  30. package/dist/Button/Button.js +6 -6
  31. package/dist/Button/Button.types.d.ts +1 -1
  32. package/dist/Button/__tests__/fixtures/A11yDemos.d.ts +1 -1
  33. package/dist/Button/__tests__/fixtures/A11yDemos.js +8 -8
  34. package/dist/Calendar/Calendar.types.d.ts +1 -1
  35. package/dist/Calendar/__tests__/fixtures/A11yDemos.d.ts +1 -1
  36. package/dist/Calendar/__tests__/fixtures/A11yDemos.js +2 -2
  37. package/dist/Card/Card.d.ts +1 -1
  38. package/dist/Card/Card.js +3 -3
  39. package/dist/Card/Card.types.d.ts +1 -1
  40. package/dist/Card/CardContent.d.ts +1 -1
  41. package/dist/Card/CardContent.js +3 -3
  42. package/dist/Card/CardContent.types.d.ts +1 -1
  43. package/dist/Card/CardFooter.d.ts +1 -1
  44. package/dist/Card/CardFooter.js +3 -3
  45. package/dist/Card/CardFooter.types.d.ts +1 -1
  46. package/dist/Card/CardHeader.d.ts +1 -1
  47. package/dist/Card/CardHeader.js +10 -10
  48. package/dist/Checkbox/CheckboxContext.d.ts +1 -1
  49. package/dist/Checkbox/CheckboxContext.js +2 -2
  50. package/dist/Checkbox/__tests__/fixtures/A11yDemos.d.ts +1 -1
  51. package/dist/Checkbox/__tests__/fixtures/A11yDemos.js +4 -4
  52. package/dist/CitySelector/CitySelector.types.d.ts +1 -0
  53. package/dist/CitySelector/Selector/index.d.ts +1 -1
  54. package/dist/CitySelector/Selector/index.js +2 -2
  55. package/dist/Collapse/Collapse.types.d.ts +1 -1
  56. package/dist/CollapsePanel/CollapsePanel.d.ts +1 -1
  57. package/dist/CollapsePanel/CollapsePanel.js +9 -9
  58. package/dist/CollapsePanel/CollapsePanel.types.d.ts +1 -1
  59. package/dist/CollapsePanel/CollapsePanelItem.d.ts +1 -1
  60. package/dist/CollapsePanel/CollapsePanelItem.js +5 -5
  61. package/dist/Countdown/Countdown.types.d.ts +2 -2
  62. package/dist/Countdown/__tests__/fixtures/A11yDemos.d.ts +1 -1
  63. package/dist/Countdown/__tests__/fixtures/A11yDemos.js +10 -10
  64. package/dist/Countdown/utils.d.ts +2 -2
  65. package/dist/Countdown/utils.js +4 -4
  66. package/dist/DatePicker/DatePicker.types.d.ts +1 -1
  67. package/dist/DesktopPicker/DesktopPicker.types.d.ts +1 -1
  68. package/dist/DesktopTimePicker/DesktopTimePicker.types.d.ts +11 -11
  69. package/dist/DesktopTimePicker/useGetTimePickerContent.js +2 -2
  70. package/dist/DesktopTimePicker/utils/utils.d.ts +1 -1
  71. package/dist/DesktopTimePicker/utils/utils.js +3 -3
  72. package/dist/Dialog/__tests__/fixtures/A11yDemos.d.ts +1 -1
  73. package/dist/Dialog/__tests__/fixtures/A11yDemos.js +4 -4
  74. package/dist/Divider/Divider.types.d.ts +1 -1
  75. package/dist/Drawer/Drawer.d.ts +1 -1
  76. package/dist/Drawer/Drawer.js +5 -5
  77. package/dist/Drawer/Drawer.types.d.ts +1 -1
  78. package/dist/Fade/Fade.d.ts +1 -1
  79. package/dist/Fade/Fade.js +4 -4
  80. package/dist/Fade/Fade.types.d.ts +1 -1
  81. package/dist/IconButton/IconButton.d.ts +1 -1
  82. package/dist/IconButton/IconButton.js +6 -6
  83. package/dist/IconButton/IconButton.types.d.ts +1 -1
  84. package/dist/Input/Input.types.d.ts +1 -1
  85. package/dist/Input/__tests__/fixtures/A11yDemos.d.ts +1 -1
  86. package/dist/Input/__tests__/fixtures/A11yDemos.js +7 -7
  87. package/dist/ItemSelector/ItemSelector.miniapp.js +7 -5
  88. package/dist/ItemSelector/ItemSelector.types.d.ts +1 -0
  89. package/dist/ItemSelector/Selector/index.d.ts +1 -1
  90. package/dist/ItemSelector/Selector/index.js +2 -2
  91. package/dist/List/List.d.ts +1 -1
  92. package/dist/List/List.js +4 -4
  93. package/dist/List/ListContext.d.ts +1 -1
  94. package/dist/List/ListContext.js +2 -2
  95. package/dist/List/ListItem.d.ts +1 -1
  96. package/dist/List/ListItem.js +8 -8
  97. package/dist/List/ListItem.types.d.ts +1 -1
  98. package/dist/List/ListItemContent.d.ts +1 -1
  99. package/dist/List/ListItemContent.js +3 -3
  100. package/dist/List/ListItemContent.types.d.ts +1 -1
  101. package/dist/List/ListItemExtra.d.ts +1 -1
  102. package/dist/List/ListItemExtra.js +3 -3
  103. package/dist/List/ListItemExtra.types.d.ts +1 -1
  104. package/dist/List/ListItemFooter.d.ts +1 -1
  105. package/dist/List/ListItemFooter.js +3 -3
  106. package/dist/List/ListItemFooter.types.d.ts +1 -1
  107. package/dist/List/ListItemHeader.d.ts +1 -1
  108. package/dist/List/ListItemHeader.js +3 -3
  109. package/dist/List/ListItemHeader.types.d.ts +1 -1
  110. package/dist/Loading/Loading.d.ts +1 -1
  111. package/dist/Loading/Loading.js +5 -5
  112. package/dist/Loading/Loading.types.d.ts +1 -1
  113. package/dist/Modal/Modal.d.ts +1 -1
  114. package/dist/Modal/Modal.js +6 -6
  115. package/dist/Modal/Modal.miniapp.d.ts +1 -1
  116. package/dist/Modal/Modal.miniapp.js +7 -7
  117. package/dist/Modal/__tests__/fixtures/A11yDemos.d.ts +1 -1
  118. package/dist/Modal/__tests__/fixtures/A11yDemos.js +3 -3
  119. package/dist/Modal/useModal.js +26 -29
  120. package/dist/NavBar/NavBar.d.ts +1 -1
  121. package/dist/NavBar/NavBar.js +10 -10
  122. package/dist/Picker/Picker.js +0 -1
  123. package/dist/Picker/Picker.types.d.ts +1 -1
  124. package/dist/Picker/__tests__/fixtures/A11yDemos.d.ts +1 -1
  125. package/dist/Picker/__tests__/fixtures/A11yDemos.js +2 -2
  126. package/dist/Popover/Popover.d.ts +1 -1
  127. package/dist/Popover/Popover.js +8 -8
  128. package/dist/Popover/Popover.types.d.ts +1 -1
  129. package/dist/Popover/__tests__/fixtures/A11yDemos.d.ts +1 -1
  130. package/dist/Popover/__tests__/fixtures/A11yDemos.js +21 -21
  131. package/dist/Portal/Portal.d.ts +1 -1
  132. package/dist/Portal/Portal.js +3 -3
  133. package/dist/Portal/Portal.types.d.ts +1 -1
  134. package/dist/Progress/Progress.d.ts +1 -1
  135. package/dist/Progress/Progress.js +4 -4
  136. package/dist/Progress/Progress.types.d.ts +1 -1
  137. package/dist/Progress/__tests__/fixtures/A11yDemos.d.ts +1 -1
  138. package/dist/Progress/__tests__/fixtures/A11yDemos.js +9 -9
  139. package/dist/Radio/RadioButtonIcon.d.ts +1 -1
  140. package/dist/Radio/RadioButtonIcon.js +4 -4
  141. package/dist/Radio/RadioContext.d.ts +1 -1
  142. package/dist/Radio/RadioContext.js +2 -2
  143. package/dist/Radio/__tests__/fixtures/A11yDemos.d.ts +1 -1
  144. package/dist/Radio/__tests__/fixtures/A11yDemos.js +4 -4
  145. package/dist/Rating/Rating.types.d.ts +1 -1
  146. package/dist/ScrollView/ScrollView.types.d.ts +1 -1
  147. package/dist/ScrollView/__tests__/fixtures/A11yDemos.d.ts +1 -1
  148. package/dist/ScrollView/__tests__/fixtures/A11yDemos.js +30 -30
  149. package/dist/ScrollView/useScrollView.js +16 -4
  150. package/dist/Skeleton/Skeleton.d.ts +1 -1
  151. package/dist/Skeleton/Skeleton.js +3 -3
  152. package/dist/Skeleton/Skeleton.types.d.ts +1 -1
  153. package/dist/Slide/Slide.d.ts +1 -1
  154. package/dist/Slide/Slide.js +4 -4
  155. package/dist/Slider/Slider.types.d.ts +1 -1
  156. package/dist/Steps/Step.types.d.ts +1 -1
  157. package/dist/Steps/StepsContext.d.ts +1 -1
  158. package/dist/Steps/StepsContext.js +2 -2
  159. package/dist/SwipeAction/SwipeAction.js +7 -8
  160. package/dist/SwipeAction/SwipeAction.types.d.ts +1 -1
  161. package/dist/Swiper/Swiper.types.d.ts +1 -1
  162. package/dist/Swiper/SwiperItem.d.ts +1 -1
  163. package/dist/Swiper/SwiperItem.js +2 -2
  164. package/dist/Switch/__tests__/fixtures/A11yDemos.d.ts +1 -1
  165. package/dist/Switch/__tests__/fixtures/A11yDemos.js +4 -4
  166. package/dist/TabBar/TabBar.d.ts +1 -1
  167. package/dist/TabBar/TabBar.js +5 -5
  168. package/dist/Tabs/Tab.css +1 -22
  169. package/dist/Tabs/Tab.d.ts +2 -2
  170. package/dist/Tabs/Tab.js +42 -34
  171. package/dist/Tabs/Tab.types.d.ts +1 -1
  172. package/dist/Tabs/TabIndicator.d.ts +13 -0
  173. package/dist/Tabs/TabIndicator.js +115 -0
  174. package/dist/Tabs/TabMask.d.ts +9 -0
  175. package/dist/Tabs/TabMask.js +88 -0
  176. package/dist/Tabs/TabPanel.types.d.ts +1 -1
  177. package/dist/Tabs/Tabs.css +15 -5
  178. package/dist/Tabs/Tabs.js +84 -159
  179. package/dist/Tabs/Tabs.types.d.ts +5 -6
  180. package/dist/Tabs/TabsContext.d.ts +15 -6
  181. package/dist/Tabs/TabsContext.js +6 -14
  182. package/dist/Tabs/classes.d.ts +10 -0
  183. package/dist/Tabs/classes.js +54 -0
  184. package/dist/Tabs/index.css +16 -27
  185. package/dist/Tabs/index.d.ts +2 -2
  186. package/dist/Tabs/index.js +4 -4
  187. package/dist/Tabs/index.miniapp.d.ts +5 -0
  188. package/dist/Tabs/index.miniapp.js +50 -0
  189. package/dist/Tabs/miniapp/Tab.d.ts +5 -0
  190. package/dist/Tabs/miniapp/Tab.js +104 -0
  191. package/dist/Tabs/miniapp/TabIndicator.d.ts +15 -0
  192. package/dist/Tabs/miniapp/TabIndicator.js +207 -0
  193. package/dist/Tabs/miniapp/TabMask.d.ts +13 -0
  194. package/dist/Tabs/miniapp/TabMask.js +67 -0
  195. package/dist/Tabs/miniapp/Tabs.d.ts +5 -0
  196. package/dist/Tabs/miniapp/Tabs.js +261 -0
  197. package/dist/Tabs/miniapp/TabsContext.d.ts +17 -0
  198. package/dist/Tabs/miniapp/TabsContext.js +39 -0
  199. package/dist/Tabs/miniapp/index.d.ts +2 -0
  200. package/dist/Tabs/miniapp/index.js +41 -0
  201. package/dist/Tabs/miniapp/scroll.d.ts +21 -0
  202. package/dist/Tabs/miniapp/scroll.js +52 -0
  203. package/dist/Tabs/miniapp/utils/queryBatch.d.ts +68 -0
  204. package/dist/Tabs/miniapp/utils/queryBatch.js +100 -0
  205. package/dist/Tabs/utils/scroll.js +10 -4
  206. package/dist/Tag/Tag.d.ts +1 -1
  207. package/dist/Tag/Tag.js +6 -6
  208. package/dist/Tag/Tag.types.d.ts +1 -1
  209. package/dist/Tag/TagGroup.d.ts +1 -1
  210. package/dist/Tag/TagGroup.js +3 -3
  211. package/dist/Tag/TagGroup.types.d.ts +1 -1
  212. package/dist/Tag/__tests__/fixtures/A11yDemos.js +3 -3
  213. package/dist/TextArea/__tests__/fixtures/A11yDemos.d.ts +1 -1
  214. package/dist/TextArea/__tests__/fixtures/A11yDemos.js +6 -6
  215. package/dist/ThemeProvider/hooks/ThemeContext.d.ts +1 -1
  216. package/dist/ThemeProvider/hooks/ThemeContext.js +2 -2
  217. package/dist/ThemeProvider/hooks/useTheme.js +2 -2
  218. package/dist/ThemeProvider/utils/mountTokens.js +2 -2
  219. package/dist/Toast/Toast.d.ts +1 -1
  220. package/dist/Toast/Toast.js +8 -8
  221. package/dist/Toast/__tests__/fixtures/A11yDemos.d.ts +1 -1
  222. package/dist/Toast/__tests__/fixtures/A11yDemos.js +2 -2
  223. package/dist/Tooltip/Tooltip.d.ts +1 -1
  224. package/dist/Tooltip/Tooltip.js +5 -5
  225. package/dist/Tooltip/Tooltip.types.d.ts +1 -1
  226. package/dist/Tooltip/__tests__/fixtures/A11yDemos.d.ts +1 -1
  227. package/dist/Tooltip/__tests__/fixtures/A11yDemos.js +14 -14
  228. package/dist/Transition/Transition.d.ts +1 -1
  229. package/dist/Transition/Transition.js +3 -3
  230. package/dist/Transition/Transition.miniapp.d.ts +1 -1
  231. package/dist/Transition/Transition.miniapp.js +3 -3
  232. package/dist/Transition/TransitionCore.js +8 -2
  233. package/dist/_.._/benchmarks/components/Button.d.js +15 -0
  234. package/dist/_.._/benchmarks/components/Button.js +2 -2
  235. package/dist/_.._/benchmarks/components/Input.d.js +15 -0
  236. package/dist/_.._/benchmarks/components/Tabs.d.js +15 -0
  237. package/es/ActionSheet/ActionSheet.d.ts +1 -1
  238. package/es/ActionSheet/ActionSheet.js +1 -1
  239. package/es/ActionSheet/ActionSheet.types.d.ts +1 -1
  240. package/es/ActionSheet/ActionSheetContext.d.ts +1 -1
  241. package/es/ActionSheet/ActionSheetContext.js +1 -1
  242. package/es/ActionSheet/ActionSheetItem.types.d.ts +1 -1
  243. package/es/Alert/Alert.d.ts +1 -1
  244. package/es/Alert/Alert.js +1 -1
  245. package/es/Alert/__tests__/fixtures/A11yDemos.d.ts +1 -1
  246. package/es/Alert/__tests__/fixtures/A11yDemos.js +1 -1
  247. package/es/Avatar/Avatar.d.ts +1 -1
  248. package/es/Avatar/Avatar.js +1 -1
  249. package/es/Avatar/Avatar.types.d.ts +1 -1
  250. package/es/Avatar/AvatarGroup.types.d.ts +1 -1
  251. package/es/Backdrop/Backdrop.d.ts +1 -1
  252. package/es/Backdrop/Backdrop.js +1 -1
  253. package/es/Backdrop/Backdrop.types.d.ts +1 -1
  254. package/es/Backdrop/__tests__/fixtures/A11yDemos.d.ts +1 -1
  255. package/es/Backdrop/__tests__/fixtures/A11yDemos.js +1 -1
  256. package/es/Badge/Badge.d.ts +1 -1
  257. package/es/Badge/Badge.js +1 -1
  258. package/es/Badge/__tests__/fixtures/A11yDemos.d.ts +1 -1
  259. package/es/Badge/__tests__/fixtures/A11yDemos.js +1 -1
  260. package/es/Breadcrumb/Breadcrumb.d.ts +1 -1
  261. package/es/Breadcrumb/Breadcrumb.js +1 -1
  262. package/es/Breadcrumb/Breadcrumb.types.d.ts +1 -1
  263. package/es/Breadcrumb/BreadcrumbItem.d.ts +1 -1
  264. package/es/Breadcrumb/BreadcrumbItem.js +1 -1
  265. package/es/Button/Button.d.ts +1 -1
  266. package/es/Button/Button.js +1 -1
  267. package/es/Button/Button.types.d.ts +1 -1
  268. package/es/Button/__tests__/fixtures/A11yDemos.d.ts +1 -1
  269. package/es/Button/__tests__/fixtures/A11yDemos.js +1 -1
  270. package/es/Calendar/Calendar.types.d.ts +1 -1
  271. package/es/Calendar/__tests__/fixtures/A11yDemos.d.ts +1 -1
  272. package/es/Calendar/__tests__/fixtures/A11yDemos.js +1 -1
  273. package/es/Card/Card.d.ts +1 -1
  274. package/es/Card/Card.js +1 -1
  275. package/es/Card/Card.types.d.ts +1 -1
  276. package/es/Card/CardContent.d.ts +1 -1
  277. package/es/Card/CardContent.js +1 -1
  278. package/es/Card/CardContent.types.d.ts +1 -1
  279. package/es/Card/CardFooter.d.ts +1 -1
  280. package/es/Card/CardFooter.js +1 -1
  281. package/es/Card/CardFooter.types.d.ts +1 -1
  282. package/es/Card/CardHeader.d.ts +1 -1
  283. package/es/Card/CardHeader.js +1 -1
  284. package/es/Checkbox/CheckboxContext.d.ts +1 -1
  285. package/es/Checkbox/CheckboxContext.js +1 -1
  286. package/es/Checkbox/__tests__/fixtures/A11yDemos.d.ts +1 -1
  287. package/es/Checkbox/__tests__/fixtures/A11yDemos.js +1 -1
  288. package/es/CitySelector/CitySelector.types.d.ts +1 -0
  289. package/es/CitySelector/Selector/index.d.ts +1 -1
  290. package/es/CitySelector/Selector/index.js +1 -1
  291. package/es/Collapse/Collapse.types.d.ts +1 -1
  292. package/es/CollapsePanel/CollapsePanel.d.ts +1 -1
  293. package/es/CollapsePanel/CollapsePanel.js +1 -1
  294. package/es/CollapsePanel/CollapsePanel.types.d.ts +1 -1
  295. package/es/CollapsePanel/CollapsePanelItem.d.ts +1 -1
  296. package/es/CollapsePanel/CollapsePanelItem.js +1 -1
  297. package/es/Countdown/Countdown.types.d.ts +2 -2
  298. package/es/Countdown/__tests__/fixtures/A11yDemos.d.ts +1 -1
  299. package/es/Countdown/__tests__/fixtures/A11yDemos.js +1 -1
  300. package/es/Countdown/utils.d.ts +2 -2
  301. package/es/Countdown/utils.js +4 -4
  302. package/es/DatePicker/DatePicker.d.ts +1 -1
  303. package/es/DatePicker/DatePicker.types.d.ts +1 -1
  304. package/es/DesktopPicker/DesktopPicker.types.d.ts +1 -1
  305. package/es/DesktopTimePicker/DesktopTimePicker.types.d.ts +11 -11
  306. package/es/DesktopTimePicker/useGetTimePickerContent.js +3 -3
  307. package/es/DesktopTimePicker/utils/utils.d.ts +1 -1
  308. package/es/DesktopTimePicker/utils/utils.js +2 -2
  309. package/es/Dialog/__tests__/fixtures/A11yDemos.d.ts +1 -1
  310. package/es/Dialog/__tests__/fixtures/A11yDemos.js +1 -1
  311. package/es/Divider/Divider.types.d.ts +1 -1
  312. package/es/Drawer/Drawer.d.ts +1 -1
  313. package/es/Drawer/Drawer.js +1 -1
  314. package/es/Drawer/Drawer.types.d.ts +1 -1
  315. package/es/Fade/Fade.d.ts +1 -1
  316. package/es/Fade/Fade.js +1 -1
  317. package/es/Fade/Fade.types.d.ts +1 -1
  318. package/es/IconButton/IconButton.d.ts +1 -1
  319. package/es/IconButton/IconButton.js +1 -1
  320. package/es/IconButton/IconButton.types.d.ts +1 -1
  321. package/es/Input/Input.types.d.ts +1 -1
  322. package/es/Input/__tests__/fixtures/A11yDemos.d.ts +1 -1
  323. package/es/Input/__tests__/fixtures/A11yDemos.js +1 -1
  324. package/es/ItemSelector/ItemSelector.miniapp.js +7 -5
  325. package/es/ItemSelector/ItemSelector.types.d.ts +1 -0
  326. package/es/ItemSelector/Selector/index.d.ts +1 -1
  327. package/es/ItemSelector/Selector/index.js +1 -1
  328. package/es/List/List.d.ts +1 -1
  329. package/es/List/List.js +1 -1
  330. package/es/List/ListContext.d.ts +1 -1
  331. package/es/List/ListContext.js +1 -1
  332. package/es/List/ListItem.d.ts +1 -1
  333. package/es/List/ListItem.js +1 -1
  334. package/es/List/ListItem.types.d.ts +1 -1
  335. package/es/List/ListItemContent.d.ts +1 -1
  336. package/es/List/ListItemContent.js +1 -1
  337. package/es/List/ListItemContent.types.d.ts +1 -1
  338. package/es/List/ListItemExtra.d.ts +1 -1
  339. package/es/List/ListItemExtra.js +1 -1
  340. package/es/List/ListItemExtra.types.d.ts +1 -1
  341. package/es/List/ListItemFooter.d.ts +1 -1
  342. package/es/List/ListItemFooter.js +1 -1
  343. package/es/List/ListItemFooter.types.d.ts +1 -1
  344. package/es/List/ListItemHeader.d.ts +1 -1
  345. package/es/List/ListItemHeader.js +1 -1
  346. package/es/List/ListItemHeader.types.d.ts +1 -1
  347. package/es/Loading/Loading.d.ts +1 -1
  348. package/es/Loading/Loading.js +1 -1
  349. package/es/Loading/Loading.types.d.ts +1 -1
  350. package/es/Modal/Modal.d.ts +1 -1
  351. package/es/Modal/Modal.js +1 -1
  352. package/es/Modal/Modal.miniapp.d.ts +2 -2
  353. package/es/Modal/Modal.miniapp.js +1 -1
  354. package/es/Modal/__tests__/fixtures/A11yDemos.d.ts +1 -1
  355. package/es/Modal/__tests__/fixtures/A11yDemos.js +1 -1
  356. package/es/Modal/useModal.js +26 -29
  357. package/es/NavBar/NavBar.d.ts +1 -1
  358. package/es/NavBar/NavBar.js +1 -1
  359. package/es/Picker/Picker.js +0 -1
  360. package/es/Picker/Picker.types.d.ts +1 -1
  361. package/es/Picker/__tests__/fixtures/A11yDemos.d.ts +1 -1
  362. package/es/Picker/__tests__/fixtures/A11yDemos.js +1 -1
  363. package/es/Popover/Popover.d.ts +1 -1
  364. package/es/Popover/Popover.js +1 -1
  365. package/es/Popover/Popover.types.d.ts +1 -1
  366. package/es/Popover/__tests__/fixtures/A11yDemos.d.ts +1 -1
  367. package/es/Popover/__tests__/fixtures/A11yDemos.js +1 -1
  368. package/es/Portal/Portal.d.ts +1 -1
  369. package/es/Portal/Portal.js +1 -1
  370. package/es/Portal/Portal.types.d.ts +1 -1
  371. package/es/Progress/Progress.d.ts +1 -1
  372. package/es/Progress/Progress.js +1 -1
  373. package/es/Progress/Progress.types.d.ts +1 -1
  374. package/es/Progress/__tests__/fixtures/A11yDemos.d.ts +1 -1
  375. package/es/Progress/__tests__/fixtures/A11yDemos.js +1 -1
  376. package/es/Radio/RadioButtonIcon.d.ts +1 -1
  377. package/es/Radio/RadioButtonIcon.js +1 -1
  378. package/es/Radio/RadioContext.d.ts +1 -1
  379. package/es/Radio/RadioContext.js +1 -1
  380. package/es/Radio/__tests__/fixtures/A11yDemos.d.ts +1 -1
  381. package/es/Radio/__tests__/fixtures/A11yDemos.js +1 -1
  382. package/es/Rating/Rating.types.d.ts +1 -1
  383. package/es/ScrollView/ScrollView.types.d.ts +1 -1
  384. package/es/ScrollView/__tests__/fixtures/A11yDemos.d.ts +1 -1
  385. package/es/ScrollView/__tests__/fixtures/A11yDemos.js +1 -1
  386. package/es/ScrollView/useScrollView.js +16 -4
  387. package/es/Skeleton/Skeleton.d.ts +1 -1
  388. package/es/Skeleton/Skeleton.js +1 -1
  389. package/es/Skeleton/Skeleton.types.d.ts +1 -1
  390. package/es/Slide/Slide.d.ts +1 -1
  391. package/es/Slide/Slide.js +1 -1
  392. package/es/Slider/Slider.types.d.ts +1 -1
  393. package/es/Steps/Step.types.d.ts +1 -1
  394. package/es/Steps/StepsContext.d.ts +1 -1
  395. package/es/Steps/StepsContext.js +1 -1
  396. package/es/SwipeAction/SwipeAction.js +7 -8
  397. package/es/SwipeAction/SwipeAction.types.d.ts +1 -1
  398. package/es/Swiper/Swiper.js +5 -1
  399. package/es/Swiper/Swiper.types.d.ts +1 -1
  400. package/es/Swiper/SwiperItem.d.ts +1 -1
  401. package/es/Swiper/SwiperItem.js +1 -1
  402. package/es/Switch/__tests__/fixtures/A11yDemos.d.ts +1 -1
  403. package/es/Switch/__tests__/fixtures/A11yDemos.js +1 -1
  404. package/es/TabBar/TabBar.d.ts +1 -1
  405. package/es/TabBar/TabBar.js +1 -1
  406. package/es/Tabs/Tab.css +1 -22
  407. package/es/Tabs/Tab.d.ts +2 -2
  408. package/es/Tabs/Tab.js +44 -36
  409. package/es/Tabs/Tab.types.d.ts +1 -1
  410. package/es/Tabs/TabIndicator.d.ts +13 -0
  411. package/es/Tabs/TabIndicator.js +86 -0
  412. package/es/Tabs/TabMask.d.ts +9 -0
  413. package/es/Tabs/TabMask.js +59 -0
  414. package/es/Tabs/TabPanel.types.d.ts +1 -1
  415. package/es/Tabs/Tabs.css +15 -5
  416. package/es/Tabs/Tabs.js +86 -161
  417. package/es/Tabs/Tabs.types.d.ts +5 -6
  418. package/es/Tabs/TabsContext.d.ts +15 -6
  419. package/es/Tabs/TabsContext.js +6 -4
  420. package/es/Tabs/classes.d.ts +10 -0
  421. package/es/Tabs/classes.js +22 -0
  422. package/es/Tabs/index.css +16 -27
  423. package/es/Tabs/index.d.ts +2 -2
  424. package/es/Tabs/index.js +2 -2
  425. package/es/Tabs/index.miniapp.d.ts +5 -0
  426. package/es/Tabs/index.miniapp.js +11 -0
  427. package/es/Tabs/miniapp/Tab.d.ts +5 -0
  428. package/es/Tabs/miniapp/Tab.js +75 -0
  429. package/es/Tabs/miniapp/TabIndicator.d.ts +15 -0
  430. package/es/Tabs/miniapp/TabIndicator.js +178 -0
  431. package/es/Tabs/miniapp/TabMask.d.ts +13 -0
  432. package/es/Tabs/miniapp/TabMask.js +38 -0
  433. package/es/Tabs/miniapp/Tabs.d.ts +5 -0
  434. package/es/Tabs/miniapp/Tabs.js +239 -0
  435. package/es/Tabs/miniapp/TabsContext.d.ts +17 -0
  436. package/es/Tabs/miniapp/TabsContext.js +16 -0
  437. package/es/Tabs/miniapp/index.d.ts +2 -0
  438. package/es/Tabs/miniapp/index.js +7 -0
  439. package/es/Tabs/miniapp/scroll.d.ts +21 -0
  440. package/es/Tabs/miniapp/scroll.js +29 -0
  441. package/es/Tabs/miniapp/utils/queryBatch.d.ts +68 -0
  442. package/es/Tabs/miniapp/utils/queryBatch.js +65 -0
  443. package/es/Tabs/utils/scroll.js +10 -4
  444. package/es/Tag/Tag.d.ts +1 -1
  445. package/es/Tag/Tag.js +4 -4
  446. package/es/Tag/Tag.types.d.ts +1 -1
  447. package/es/Tag/TagGroup.d.ts +1 -1
  448. package/es/Tag/TagGroup.js +1 -1
  449. package/es/Tag/TagGroup.types.d.ts +1 -1
  450. package/es/Tag/__tests__/fixtures/A11yDemos.js +3 -3
  451. package/es/TextArea/__tests__/fixtures/A11yDemos.d.ts +1 -1
  452. package/es/TextArea/__tests__/fixtures/A11yDemos.js +1 -1
  453. package/es/ThemeProvider/hooks/ThemeContext.d.ts +1 -1
  454. package/es/ThemeProvider/hooks/ThemeContext.js +1 -1
  455. package/es/ThemeProvider/hooks/useTheme.js +1 -1
  456. package/es/ThemeProvider/utils/mountTokens.js +1 -1
  457. package/es/Toast/Toast.d.ts +1 -1
  458. package/es/Toast/Toast.js +1 -1
  459. package/es/Toast/__tests__/fixtures/A11yDemos.d.ts +1 -1
  460. package/es/Toast/__tests__/fixtures/A11yDemos.js +1 -1
  461. package/es/Tooltip/Tooltip.d.ts +1 -1
  462. package/es/Tooltip/Tooltip.js +1 -1
  463. package/es/Tooltip/Tooltip.types.d.ts +1 -1
  464. package/es/Tooltip/__tests__/fixtures/A11yDemos.d.ts +1 -1
  465. package/es/Tooltip/__tests__/fixtures/A11yDemos.js +1 -1
  466. package/es/Transition/Transition.d.ts +1 -1
  467. package/es/Transition/Transition.js +1 -1
  468. package/es/Transition/Transition.miniapp.d.ts +1 -1
  469. package/es/Transition/Transition.miniapp.js +1 -1
  470. package/es/Transition/TransitionCore.js +8 -2
  471. package/es/_.._/benchmarks/components/Button.d.js +0 -0
  472. package/es/_.._/benchmarks/components/Button.js +1 -1
  473. package/es/_.._/benchmarks/components/Input.d.js +0 -0
  474. package/es/_.._/benchmarks/components/Tabs.d.js +0 -0
  475. package/package.json +7 -6
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import * as React from 'react';
2
2
  import { OverrideProps } from '@bifrostui/types';
3
3
  import { DrawerProps } from '../Drawer/Drawer.types';
4
4
  export interface IPickerOptionItem {
@@ -1,2 +1,2 @@
1
- import React from 'react';
1
+ import * as React from 'react';
2
2
  export declare const CalendarDemo: () => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import * as React from "react";
2
2
  import Picker from "../../Picker";
3
3
  const CalendarDemo = () => {
4
4
  return /* @__PURE__ */ React.createElement(
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import * as React from 'react';
2
2
  import { PopoverProps } from './Popover.types';
3
3
  import './index.less';
4
4
  declare const Popover: React.ForwardRefExoticComponent<Omit<PopoverProps<"div", {}>, "ref"> & React.RefAttributes<HTMLDivElement>>;
@@ -30,7 +30,7 @@ var __objRest = (source, exclude) => {
30
30
  return target;
31
31
  };
32
32
  import clsx from "clsx";
33
- import React from "react";
33
+ import * as React from "react";
34
34
  import { useForkRef } from "@bifrostui/utils";
35
35
  import Portal from "../Portal";
36
36
  import Backdrop from "../Backdrop";
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import * as React from 'react';
2
2
  import { OverrideProps } from '@bifrostui/types';
3
3
  type triggerType = 'click' | 'hover' | 'none';
4
4
  export interface AnchorOrigin {
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import * as React from 'react';
2
2
  /**
3
3
  * 自定义 Popover 组件 Demo 集合
4
4
  * 这个文件包含多个测试 demo,展示如何使用 getCustomDemoCodesFromFile 进行无障碍测试
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import * as React from "react";
2
2
  import Popover from "../../Popover";
3
3
  const basicPopoverDemo = () => {
4
4
  return /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement(
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import * as React from 'react';
2
2
  import { PortalProps } from './Portal.types';
3
3
  export declare const Portal: React.ForwardRefExoticComponent<PortalProps & React.RefAttributes<HTMLElement>>;
4
4
  export default Portal;
@@ -17,7 +17,7 @@ var __spreadValues = (a, b) => {
17
17
  return a;
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
- import React from "react";
20
+ import * as React from "react";
21
21
  import PortalCore from "./PortalCore";
22
22
  const Portal = /* @__PURE__ */ React.forwardRef(
23
23
  (props, ref) => {
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import * as React from 'react';
2
2
  export interface PortalCoreProps {
3
3
  /**
4
4
  * container中渲染的元素
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import * as React from 'react';
2
2
  import { ProgressGradient, ProgressProps } from './Progress.types';
3
3
  import './index.less';
4
4
  export declare const handleGradient: (strokeColor: ProgressGradient) => {
@@ -27,7 +27,7 @@ var __objRest = (source, exclude) => {
27
27
  return target;
28
28
  };
29
29
  import clsx from "clsx";
30
- import React from "react";
30
+ import * as React from "react";
31
31
  import { useLocaleText } from "../locales";
32
32
  import "./index.css";
33
33
  const prefixCls = "bui-progress";
@@ -1,5 +1,5 @@
1
1
  import { OverrideProps } from '@bifrostui/types';
2
- import React from 'react';
2
+ import * as React from 'react';
3
3
  export type ProgressStringGradients = {
4
4
  [percentage: string]: string;
5
5
  };
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import * as React from 'react';
2
2
  /**
3
3
  * 自定义 Progress 组件 Demo 集合
4
4
  * 这个文件包含多个测试 demo,展示如何使用 getCustomDemoCodesFromFile 进行无障碍测试
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import * as React from "react";
2
2
  import Progress from "../../Progress";
3
3
  const basicProgressDemo = () => {
4
4
  return /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement(Progress, { percent: 40 }));
@@ -1,5 +1,5 @@
1
1
  import { ISvgIconProps } from '@bifrostui/icons';
2
- import React from 'react';
2
+ import * as React from 'react';
3
3
  export interface IRadioButtonIconProps extends ISvgIconProps {
4
4
  checked: boolean;
5
5
  }
@@ -3,7 +3,7 @@ import {
3
3
  RadioCheckedFilledIcon as RadioButtonCheckedIcon
4
4
  } from "@bifrostui/icons";
5
5
  import clsx from "clsx";
6
- import React from "react";
6
+ import * as React from "react";
7
7
  const prefixCls = "bui-radio-btn-icon";
8
8
  function RadioButtonIcon(props) {
9
9
  const {
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import * as React from 'react';
2
2
  import { RadioGroupContextProps } from './Radio.types';
3
3
  declare const RadioGroupContext: React.Context<RadioGroupContextProps>;
4
4
  export declare const RadioContextProvider: React.Provider<RadioGroupContextProps>;
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import * as React from "react";
2
2
  const RadioGroupContext = React.createContext(void 0);
3
3
  const RadioContextProvider = RadioGroupContext.Provider;
4
4
  var RadioContext_default = RadioGroupContext;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import * as React from 'react';
2
2
  /**
3
3
  * 自定义 Radio 组件 Demo 集合
4
4
  * 这个文件包含多个测试 demo,展示如何使用 getCustomDemoCodesFromFile 进行无障碍测试
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import * as React from "react";
2
2
  import Radio from "../../Radio";
3
3
  const basicRadioDemo = () => {
4
4
  return /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement("label", null, /* @__PURE__ */ React.createElement(Radio, { checked: true }), "Radio"));
@@ -1,5 +1,5 @@
1
1
  import { OverrideProps } from '@bifrostui/types';
2
- import React from 'react';
2
+ import * as React from 'react';
3
3
  export type RatingSize = 'xsmall' | 'small' | 'medium' | 'large';
4
4
  export type RatingProps<D extends React.ElementType = 'div', P = {}> = OverrideProps<{
5
5
  props: P & {
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import * as React from 'react';
2
2
  import { OverrideProps } from '@bifrostui/types';
3
3
  /**
4
4
  * 滚动事件详情
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import * as React from 'react';
2
2
  export declare const BasicScrollViewDemo: React.FC;
3
3
  export declare const HorizontalScrollViewDemo: React.FC;
4
4
  export declare const ScrollEventsDemo: React.FC;
@@ -17,7 +17,7 @@ var __spreadValues = (a, b) => {
17
17
  return a;
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
- import React from "react";
20
+ import * as React from "react";
21
21
  import ScrollView from "../../ScrollView";
22
22
  const BasicScrollViewDemo = () => {
23
23
  return /* @__PURE__ */ React.createElement(ScrollView, { scrollY: true, style: { height: "300px", width: "100%" } }, Array.from({ length: 50 }, (_, index) => /* @__PURE__ */ React.createElement(
@@ -93,25 +93,31 @@ function useScrollView(parameters) {
93
93
  const scrollVertical = useCallback((top, isAnimation) => {
94
94
  if (top === void 0)
95
95
  return;
96
+ if (!container.current)
97
+ return;
96
98
  if (isAnimation) {
97
99
  easeOutScroll(container.current.scrollTop, top, (pos) => {
98
100
  if (container.current)
99
101
  container.current.scrollTop = pos;
100
102
  });
101
- } else if (container.current)
103
+ } else {
102
104
  container.current.scrollTop = top;
105
+ }
103
106
  }, []);
104
107
  const scrollHorizontal = useCallback(
105
108
  (left, isAnimation) => {
106
109
  if (left === void 0)
107
110
  return;
111
+ if (!container.current)
112
+ return;
108
113
  if (isAnimation) {
109
114
  easeOutScroll(container.current.scrollLeft, left, (pos) => {
110
115
  if (container.current)
111
116
  container.current.scrollLeft = pos;
112
117
  });
113
- } else if (container.current)
118
+ } else {
114
119
  container.current.scrollLeft = left;
120
+ }
115
121
  },
116
122
  []
117
123
  );
@@ -121,9 +127,13 @@ function useScrollView(parameters) {
121
127
  const isAnimation = scrollWithAnimation;
122
128
  if (scrollIntoView && typeof scrollIntoView === "string" && ((_b = (_a2 = container == null ? void 0 : container.current) == null ? void 0 : _a2.querySelector) == null ? void 0 : _b.call(_a2, `#${scrollIntoView}`))) {
123
129
  const doScrollIntoView = (id, alignment = "start", _isAnimation = isAnimation) => {
130
+ if (!container.current)
131
+ return;
124
132
  const target = container.current.querySelector(
125
133
  `#${id}`
126
134
  );
135
+ if (!target)
136
+ return;
127
137
  if (scrollY) {
128
138
  const start = target.offsetTop;
129
139
  const end = target.offsetTop + target.offsetHeight - container.current.clientHeight;
@@ -176,14 +186,14 @@ function useScrollView(parameters) {
176
186
  );
177
187
  }
178
188
  } else {
179
- if (scrollY && typeof scrollTopProp === "number" && scrollTopProp !== container.current.scrollTop) {
189
+ if (scrollY && typeof scrollTopProp === "number" && container.current && scrollTopProp !== container.current.scrollTop) {
180
190
  if (isInit) {
181
191
  setTimeout(() => scrollVertical(scrollTopProp, isAnimation), 10);
182
192
  } else {
183
193
  scrollVertical(scrollTopProp, isAnimation);
184
194
  }
185
195
  }
186
- if (scrollX && typeof scrollLeftProp === "number" && scrollLeftProp !== container.current.scrollLeft) {
196
+ if (scrollX && typeof scrollLeftProp === "number" && container.current && scrollLeftProp !== container.current.scrollLeft) {
187
197
  if (isInit) {
188
198
  setTimeout(() => scrollHorizontal(scrollLeftProp, isAnimation), 10);
189
199
  } else {
@@ -241,6 +251,8 @@ function useScrollView(parameters) {
241
251
  }
242
252
  };
243
253
  const onScrollHandler = (e) => {
254
+ if (!container.current)
255
+ return;
244
256
  const { scrollLeft, scrollTop, scrollHeight, scrollWidth } = container.current;
245
257
  Object.defineProperty(e, "detail", {
246
258
  enumerable: true,
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import * as React from 'react';
2
2
  import { SkeletonProps } from './Skeleton.types';
3
3
  import './index.less';
4
4
  declare const Skeleton: React.ForwardRefExoticComponent<Omit<SkeletonProps<"div", {}>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
@@ -27,7 +27,7 @@ var __objRest = (source, exclude) => {
27
27
  return target;
28
28
  };
29
29
  import clsx from "clsx";
30
- import React from "react";
30
+ import * as React from "react";
31
31
  import "./index.css";
32
32
  const prefixCls = "bui-skeleton";
33
33
  const Skeleton = /* @__PURE__ */ React.forwardRef(
@@ -1,5 +1,5 @@
1
1
  import { OverrideProps } from '@bifrostui/types';
2
- import React from 'react';
2
+ import * as React from 'react';
3
3
  export type VariantEnum = 'text' | 'circular' | 'rectangular' | 'rounded';
4
4
  export type animationEnum = 'wave' | 'pulse' | false;
5
5
  export type SkeletonProps<D extends React.ElementType = 'div', P = {}> = OverrideProps<{
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import * as React from 'react';
2
2
  import { SlideProps } from './Slide.types';
3
3
  declare const Slide: React.ForwardRefExoticComponent<SlideProps & React.RefAttributes<HTMLElement>>;
4
4
  export default Slide;
package/es/Slide/Slide.js CHANGED
@@ -36,7 +36,7 @@ import {
36
36
  getTransitionProps,
37
37
  useForkRef
38
38
  } from "@bifrostui/utils";
39
- import React from "react";
39
+ import * as React from "react";
40
40
  import Transition from "../Transition";
41
41
  const defaultEasing = {
42
42
  enter: easing.easeOut,
@@ -1,5 +1,5 @@
1
1
  import { OverrideProps } from '@bifrostui/types';
2
- import React from 'react';
2
+ import * as React from 'react';
3
3
  export type SliderValue = number | [number, number];
4
4
  export type SliderProps<D extends React.ElementType = 'div', P = {}> = OverrideProps<{
5
5
  props: P & {
@@ -1,5 +1,5 @@
1
1
  import { OverrideProps } from '@bifrostui/types';
2
- import React from 'react';
2
+ import * as React from 'react';
3
3
  import { OnChangeEvent } from './Steps.types';
4
4
  export type StatusProps = 'wait' | 'active' | 'finish' | 'error';
5
5
  export type StepProps<D extends React.ElementType = 'div', P = {}> = OverrideProps<{
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import * as React from 'react';
2
2
  import { StepsContextProps } from './Steps.types';
3
3
  declare const StepsContext: React.Context<StepsContextProps>;
4
4
  export declare const StepsContextProvider: React.Provider<StepsContextProps>;
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import * as React from "react";
2
2
  const StepsContext = React.createContext(null);
3
3
  const StepsContextProvider = StepsContext.Provider;
4
4
  var StepsContext_default = StepsContext;
@@ -96,7 +96,7 @@ const SwipeAction = /* @__PURE__ */ React.forwardRef(
96
96
  const startingX = useRef(0);
97
97
  const currentX = useRef(0);
98
98
  const isDragging = useRef(false);
99
- let pretranslateX = 0;
99
+ let preTranslateX = 0;
100
100
  let dragPhase = DragPhaseEnum.START;
101
101
  const dragThreshold = 5;
102
102
  const leftWidthCache = useRef(0);
@@ -163,11 +163,11 @@ const SwipeAction = /* @__PURE__ */ React.forwardRef(
163
163
  100
164
164
  );
165
165
  const emitActionsReveal = (targetX, stop = false) => {
166
- const isSpecial = targetX === pretranslateX && targetX !== 0;
167
- if (targetX === pretranslateX && !isSpecial || stop)
166
+ const isSpecial = targetX === preTranslateX && targetX !== 0;
167
+ if (targetX === preTranslateX && !isSpecial || stop)
168
168
  return;
169
169
  let resStr = null;
170
- const shouldOpen = targetX > 0 && pretranslateX <= 0 || targetX < 0 && pretranslateX >= 0 || isSpecial;
170
+ const shouldOpen = targetX > 0 && preTranslateX <= 0 || targetX < 0 && preTranslateX >= 0 || isSpecial;
171
171
  if (shouldOpen) {
172
172
  if (targetX > 0) {
173
173
  resStr = SideTypeEnum.LEFT;
@@ -202,15 +202,14 @@ const SwipeAction = /* @__PURE__ */ React.forwardRef(
202
202
  }
203
203
  if (dragPhase === DragPhaseEnum.END || isMini) {
204
204
  emitActionsReveal(targetX);
205
- console.log("handleTouchEnd\uFF1A", targetX, e);
206
205
  setTranslateX(targetX);
207
- pretranslateX = targetX;
206
+ preTranslateX = targetX;
208
207
  }
209
208
  currentX.current = 0;
210
209
  });
211
210
  const close = () => {
212
211
  setTranslateX(0);
213
- pretranslateX = 0;
212
+ preTranslateX = 0;
214
213
  setIsOpen(false);
215
214
  };
216
215
  useEffect(() => {
@@ -254,7 +253,7 @@ const SwipeAction = /* @__PURE__ */ React.forwardRef(
254
253
  targetX = yield getLefRefWidth();
255
254
  }
256
255
  setTranslateX(targetX);
257
- pretranslateX = targetX;
256
+ preTranslateX = targetX;
258
257
  emitActionsReveal(targetX);
259
258
  }),
260
259
  close,
@@ -1,5 +1,5 @@
1
1
  import { OverrideProps, ThemeColor } from '@bifrostui/types';
2
- import React from 'react';
2
+ import * as React from 'react';
3
3
  import { SideTypeEnum } from './constants';
4
4
  export type SwipeActionProps<D extends React.ElementType = 'div', P = {}> = OverrideProps<{
5
5
  props: P & {
@@ -31,7 +31,11 @@ var __objRest = (source, exclude) => {
31
31
  };
32
32
  import clsx from "clsx";
33
33
  import React, { forwardRef, useEffect, useRef } from "react";
34
- import { Autoplay, EffectFade, Pagination } from "swiper";
34
+ import {
35
+ Autoplay,
36
+ EffectFade,
37
+ Pagination
38
+ } from "swiper";
35
39
  import "swiper/css";
36
40
  import "swiper/css/autoplay";
37
41
  import "swiper/css/pagination";
@@ -1,6 +1,6 @@
1
1
  import { OverrideProps } from '@bifrostui/types';
2
2
  import { SwiperProps as SwiperPropsH5 } from 'swiper/react';
3
- import React from 'react';
3
+ import * as React from 'react';
4
4
  export type SwiperProps<D extends React.ElementType = 'div', P = {}> = OverrideProps<{
5
5
  props: P & SwiperPropsH5 & {
6
6
  /** 是否显示面板指示点
@@ -1,5 +1,5 @@
1
1
  import { SwiperSlideProps } from 'swiper/react';
2
- import React from 'react';
2
+ import * as React from 'react';
3
3
  declare const SwiperItem: {
4
4
  (props: SwiperSlideProps): React.JSX.Element;
5
5
  displayName: string;
@@ -28,7 +28,7 @@ var __objRest = (source, exclude) => {
28
28
  };
29
29
  import { SwiperSlide } from "swiper/react";
30
30
  import clsx from "clsx";
31
- import React from "react";
31
+ import * as React from "react";
32
32
  const SwiperItem = (props) => {
33
33
  const _a = props, { className, style, children } = _a, restProps = __objRest(_a, ["className", "style", "children"]);
34
34
  const cls = clsx("swiper-slide", className);
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import * as React from 'react';
2
2
  /**
3
3
  * 自定义 Switch 组件 Demo 集合
4
4
  * 这个文件包含多个测试 demo,展示如何使用 getCustomDemoCodesFromFile 进行无障碍测试
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import * as React from "react";
2
2
  import Switch from "../../Switch";
3
3
  const basicSwitchDemo = () => {
4
4
  return /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement("label", null, /* @__PURE__ */ React.createElement(Switch, null), "Switch"));
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import * as React from 'react';
2
2
  import { TabBarProps } from './index.types';
3
3
  import './TabBar.less';
4
4
  declare const TabBar: React.ForwardRefExoticComponent<Omit<TabBarProps<"div", {}>, "ref"> & React.RefAttributes<HTMLDivElement>>;
@@ -26,7 +26,7 @@ var __objRest = (source, exclude) => {
26
26
  }
27
27
  return target;
28
28
  };
29
- import React from "react";
29
+ import * as React from "react";
30
30
  import clsx from "clsx";
31
31
  import TabBarContext from "./TabBarContext";
32
32
  import "./TabBar.css";
package/es/Tabs/Tab.css CHANGED
@@ -1,5 +1,5 @@
1
1
  .bui-tab {
2
- display: flex;
2
+ display: inline-flex;
3
3
  align-items: center;
4
4
  justify-content: center;
5
5
  white-space: nowrap;
@@ -19,28 +19,7 @@
19
19
  font-weight: var(--bui-font-weight-bold);
20
20
  font-family: var(--bui-tab-active-font-family);
21
21
  }
22
- .bui-tab-miniapp-active {
23
- color: var(--bui-tab-active-color);
24
- line-height: 1.5;
25
- font-weight: var(--bui-font-weight-bold);
26
- position: relative;
27
- }
28
- .bui-tab-miniapp-active-line {
29
- position: absolute;
30
- bottom: 0;
31
- left: -12px;
32
- right: -12px;
33
- margin: 0 auto !important;
34
- width: 18px;
35
- height: 2px;
36
- transition: all 100ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
37
- background-color: var(--bui-color-primary);
38
- }
39
22
  .bui-tab-disabled {
40
23
  opacity: 0.5;
41
24
  pointer-events: none;
42
25
  }
43
- .bui-indicator-invisible {
44
- visibility: hidden;
45
- background-color: transparent;
46
- }
package/es/Tabs/Tab.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import { TabProps } from './Tab.types';
3
3
  import './Tab.less';
4
- declare const Tab: React.ForwardRefExoticComponent<Omit<TabProps<"div", {}>, "ref"> & React.RefAttributes<HTMLDivElement>>;
5
- export default Tab;
4
+ declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<Omit<TabProps<"div", {}>, "ref"> & React.RefAttributes<HTMLDivElement>>>;
5
+ export default _default;