@bifrostui/react 1.4.8-beta.0 → 2.0.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (556) hide show
  1. package/dist/ActionSheet/ActionSheet.css +16 -6
  2. package/dist/ActionSheet/ActionSheetItem.css +11 -17
  3. package/dist/ActionSheet/ActionSheetItem.js +3 -8
  4. package/dist/ActionSheet/ActionSheetItem.types.d.ts +2 -2
  5. package/dist/ActionSheet/index.css +89 -0
  6. package/dist/Alert/Alert.types.d.ts +3 -3
  7. package/dist/Alert/index.css +18 -14
  8. package/dist/Avatar/Avatar.css +16 -12
  9. package/dist/Avatar/Avatar.js +3 -8
  10. package/dist/Avatar/AvatarGroup.css +19 -15
  11. package/dist/Avatar/AvatarGroup.js +2 -6
  12. package/dist/Avatar/index.css +93 -0
  13. package/dist/Backdrop/Backdrop.d.ts +1 -1
  14. package/dist/Backdrop/Backdrop.js +1 -1
  15. package/dist/Backdrop/{Backdrop.css → index.css} +6 -2
  16. package/dist/Badge/Badge.d.ts +1 -1
  17. package/dist/Badge/Badge.js +4 -9
  18. package/dist/Badge/Badge.types.d.ts +1 -1
  19. package/dist/Badge/{Badge.css → index.css} +47 -27
  20. package/dist/Breadcrumb/Breadcrumb.d.ts +1 -1
  21. package/dist/Breadcrumb/Breadcrumb.js +1 -1
  22. package/dist/Breadcrumb/index.css +38 -0
  23. package/dist/Button/Button.d.ts +1 -1
  24. package/dist/Button/Button.js +6 -11
  25. package/dist/Button/Button.types.d.ts +8 -7
  26. package/{es/Button/Button.css → dist/Button/index.css} +93 -63
  27. package/dist/Calendar/Calendar.d.ts +1 -1
  28. package/dist/Calendar/Calendar.js +10 -22
  29. package/dist/Calendar/Calendar.types.d.ts +0 -5
  30. package/dist/Calendar/{Calendar.css → index.css} +35 -31
  31. package/dist/Card/Card.css +9 -0
  32. package/dist/Card/CardContent.css +1 -2
  33. package/dist/Card/CardFooter.css +2 -4
  34. package/dist/Card/CardHeader.css +5 -5
  35. package/dist/Card/CardHeader.js +2 -2
  36. package/dist/Card/index.css +77 -0
  37. package/dist/Checkbox/Checkbox.d.ts +1 -1
  38. package/dist/Checkbox/Checkbox.js +4 -8
  39. package/dist/Checkbox/CheckboxGroup.d.ts +1 -1
  40. package/dist/Checkbox/CheckboxGroup.js +5 -8
  41. package/dist/Checkbox/{Checkbox.css → index.css} +14 -10
  42. package/dist/CitySelector/CitySelector.miniapp.d.ts +0 -1
  43. package/dist/CitySelector/CitySelector.miniapp.js +0 -1
  44. package/dist/CitySelector/CitySelectorCore.d.ts +1 -1
  45. package/dist/CitySelector/CitySelectorCore.js +1 -1
  46. package/dist/CitySelector/Selector/index.css +4 -4
  47. package/{es/CitySelector/CitySelector.css → dist/CitySelector/index.css} +31 -27
  48. package/dist/Collapse/Collapse.d.ts +2 -2
  49. package/dist/Collapse/Collapse.js +9 -12
  50. package/{es/Collapse/Collapse.css → dist/Collapse/index.css} +1 -0
  51. package/dist/CollapsePanel/CollapsePanel.d.ts +1 -1
  52. package/dist/CollapsePanel/CollapsePanel.js +1 -1
  53. package/dist/CollapsePanel/CollapsePanelItem.js +45 -46
  54. package/{es/CollapsePanel/CollapsePanel.css → dist/CollapsePanel/index.css} +12 -10
  55. package/dist/Countdown/Countdown.d.ts +1 -1
  56. package/dist/Countdown/Countdown.js +6 -13
  57. package/{es/Countdown/Countdown.css → dist/Countdown/index.css} +12 -8
  58. package/dist/Dialog/FunctionalDialog.js +1 -1
  59. package/dist/Dialog/index.css +26 -23
  60. package/dist/Divider/Divider.d.ts +1 -1
  61. package/dist/Divider/Divider.js +9 -6
  62. package/{es/Divider/Divider.css → dist/Divider/index.css} +14 -10
  63. package/dist/Drawer/Drawer.d.ts +1 -1
  64. package/dist/Drawer/Drawer.js +5 -11
  65. package/dist/Drawer/{Drawer.css → index.css} +2 -0
  66. package/dist/Fade/Fade.js +52 -56
  67. package/dist/IconButton/IconButton.d.ts +1 -1
  68. package/dist/IconButton/IconButton.js +7 -14
  69. package/dist/IconButton/IconButton.types.d.ts +4 -3
  70. package/{es/IconButton/IconButton.css → dist/IconButton/index.css} +79 -29
  71. package/dist/Image/Image.js +112 -119
  72. package/dist/Image/index.css +6 -2
  73. package/dist/Input/Input.d.ts +1 -1
  74. package/dist/Input/Input.js +6 -12
  75. package/{es/Input/Input.css → dist/Input/index.css} +22 -18
  76. package/dist/ItemSelector/ItemSelector.miniapp.d.ts +0 -1
  77. package/dist/ItemSelector/ItemSelector.miniapp.js +0 -1
  78. package/dist/ItemSelector/ItemSelectorCore.d.ts +1 -1
  79. package/dist/ItemSelector/ItemSelectorCore.js +1 -1
  80. package/dist/List/List.css +7 -3
  81. package/dist/List/List.js +3 -8
  82. package/dist/List/ListItem.css +3 -3
  83. package/dist/List/ListItem.js +42 -44
  84. package/dist/List/ListItemContent.js +1 -4
  85. package/dist/List/ListItemExtra.js +9 -4
  86. package/dist/List/ListItemFooter.js +9 -4
  87. package/dist/List/ListItemHeader.js +9 -4
  88. package/dist/List/index.css +80 -0
  89. package/dist/Loading/Loading.d.ts +1 -1
  90. package/dist/Loading/Loading.js +14 -5
  91. package/{es/Loading/Loading.css → dist/Loading/index.css} +10 -6
  92. package/dist/Modal/Modal.d.ts +1 -1
  93. package/dist/Modal/Modal.js +1 -7
  94. package/dist/Modal/Modal.miniapp.d.ts +2 -2
  95. package/dist/Modal/Modal.miniapp.js +5 -11
  96. package/dist/NavBar/NavBar.d.ts +1 -1
  97. package/dist/NavBar/NavBar.js +1 -2
  98. package/dist/NavBar/index.css +65 -0
  99. package/dist/Picker/Picker.css +21 -21
  100. package/dist/Picker/Picker.js +6 -28
  101. package/dist/Picker/Picker.types.d.ts +4 -17
  102. package/dist/Picker/PickerPanel.css +8 -12
  103. package/dist/Picker/PickerPanel.js +39 -29
  104. package/dist/Picker/index.css +116 -0
  105. package/dist/Popover/Popover.d.ts +1 -1
  106. package/dist/Popover/Popover.js +28 -71
  107. package/{es/Popover/Popover.css → dist/Popover/index.css} +32 -28
  108. package/dist/Portal/Portal.miniapp.js +4 -7
  109. package/dist/Progress/Progress.d.ts +1 -1
  110. package/dist/Progress/Progress.js +1 -1
  111. package/dist/Progress/index.css +28 -0
  112. package/dist/Radio/Radio.d.ts +1 -1
  113. package/dist/Radio/Radio.js +3 -7
  114. package/dist/Radio/RadioButtonIcon.js +6 -1
  115. package/dist/Radio/RadioGroup.d.ts +1 -1
  116. package/dist/Radio/RadioGroup.js +1 -4
  117. package/dist/Radio/{Radio.css → index.css} +10 -7
  118. package/dist/Rating/Rating.d.ts +1 -1
  119. package/dist/Rating/Rating.js +9 -19
  120. package/{es/Rating/Rating.css → dist/Rating/index.css} +20 -7
  121. package/dist/ScrollView/ScrollView.d.ts +1 -1
  122. package/dist/ScrollView/ScrollView.js +12 -25
  123. package/dist/ScrollView/ScrollView.types.d.ts +1 -0
  124. package/dist/Select/Select.d.ts +1 -1
  125. package/dist/Select/Select.js +43 -76
  126. package/dist/Select/SelectOption.d.ts +1 -1
  127. package/dist/Select/SelectOption.js +1 -1
  128. package/dist/Select/{Select.css → index.css} +30 -20
  129. package/dist/Skeleton/Skeleton.d.ts +1 -1
  130. package/dist/Skeleton/Skeleton.js +6 -10
  131. package/dist/Skeleton/{Skeleton.css → index.css} +7 -3
  132. package/dist/Slide/Slide.js +69 -74
  133. package/dist/Slider/Slider.d.ts +1 -1
  134. package/dist/Slider/Slider.js +13 -29
  135. package/dist/Slider/index.css +111 -0
  136. package/dist/Stack/Stack.d.ts +1 -1
  137. package/dist/Stack/Stack.js +1 -1
  138. package/dist/Steps/Step.css +14 -14
  139. package/dist/Steps/Step.js +81 -82
  140. package/dist/Steps/Steps.css +18 -14
  141. package/dist/Steps/Steps.d.ts +1 -1
  142. package/dist/Steps/Steps.js +57 -60
  143. package/dist/Steps/index.css +199 -0
  144. package/dist/Swiper/Swiper.d.ts +1 -1
  145. package/dist/Swiper/Swiper.js +1 -1
  146. package/{es/Swiper/Swiper.css → dist/Swiper/index.css} +6 -2
  147. package/dist/Switch/Switch.d.ts +1 -1
  148. package/dist/Switch/Switch.js +76 -79
  149. package/dist/Switch/Switch.types.d.ts +1 -1
  150. package/{es/Switch/Switch.css → dist/Switch/index.css} +46 -35
  151. package/dist/TabBar/TabBar.css +12 -8
  152. package/dist/TabBar/TabBar.js +3 -8
  153. package/dist/TabBar/TabBarContext.d.ts +3 -3
  154. package/dist/TabBar/TabBarItem.css +6 -0
  155. package/dist/TabBar/TabBarItem.js +3 -3
  156. package/dist/TabBar/index.css +59 -0
  157. package/dist/TabBar/index.types.d.ts +3 -3
  158. package/dist/Tabs/Tab.css +10 -16
  159. package/dist/Tabs/Tab.js +2 -3
  160. package/dist/Tabs/Tabs.css +32 -21
  161. package/dist/Tabs/Tabs.js +39 -70
  162. package/dist/Tabs/Tabs.types.d.ts +0 -10
  163. package/dist/Tabs/index.css +135 -0
  164. package/dist/Tabs/utils/bound.d.ts +1 -0
  165. package/dist/{DesktopPicker/utils/calcAfterMounted.js → Tabs/utils/bound.js} +14 -7
  166. package/dist/Tag/Tag.css +49 -23
  167. package/dist/Tag/Tag.js +3 -7
  168. package/dist/Tag/Tag.types.d.ts +4 -4
  169. package/dist/Tag/TagGroup.css +15 -11
  170. package/dist/Tag/TagGroup.d.ts +2 -2
  171. package/dist/Tag/TagGroup.js +16 -14
  172. package/dist/Tag/index.css +182 -0
  173. package/dist/TextArea/TextArea.d.ts +1 -1
  174. package/dist/TextArea/TextArea.js +6 -13
  175. package/dist/TextArea/index.css +57 -0
  176. package/dist/ThemeProvider/ThemeProvider.js +1 -4
  177. package/dist/ThemeProvider/ThemeProvider.types.d.ts +5 -10
  178. package/dist/ThemeProvider/utils/constants.d.ts +1 -1
  179. package/dist/ThemeProvider/utils/constants.js +4 -1
  180. package/dist/ThemeProvider/utils/mountTokens.d.ts +4 -4
  181. package/dist/Toast/FunctionalToast.js +1 -1
  182. package/dist/Toast/Toast.d.ts +1 -1
  183. package/dist/Toast/Toast.js +5 -5
  184. package/dist/Toast/index.css +58 -0
  185. package/dist/Tooltip/Tooltip.d.ts +1 -1
  186. package/dist/Tooltip/Tooltip.js +28 -71
  187. package/dist/Tooltip/index.css +95 -0
  188. package/dist/Transition/TransitionCore.js +3 -8
  189. package/dist/index.d.ts +0 -6
  190. package/dist/index.js +1 -13
  191. package/dist/locales/base.d.ts +0 -11
  192. package/dist/locales/en-US.js +0 -24
  193. package/dist/locales/zh-CN.js +0 -24
  194. package/dist/locales/zh-TW.js +0 -24
  195. package/es/ActionSheet/ActionSheet.css +16 -6
  196. package/es/ActionSheet/ActionSheetItem.css +11 -17
  197. package/es/ActionSheet/ActionSheetItem.js +3 -8
  198. package/es/ActionSheet/ActionSheetItem.types.d.ts +2 -2
  199. package/es/ActionSheet/index.css +89 -0
  200. package/es/Alert/Alert.types.d.ts +3 -3
  201. package/es/Alert/index.css +18 -14
  202. package/es/Avatar/Avatar.css +16 -12
  203. package/es/Avatar/Avatar.js +3 -8
  204. package/es/Avatar/AvatarGroup.css +19 -15
  205. package/es/Avatar/AvatarGroup.js +2 -6
  206. package/es/Avatar/index.css +93 -0
  207. package/es/Backdrop/Backdrop.d.ts +1 -1
  208. package/es/Backdrop/Backdrop.js +1 -1
  209. package/es/Backdrop/{Backdrop.css → index.css} +6 -2
  210. package/es/Badge/Badge.d.ts +1 -1
  211. package/es/Badge/Badge.js +4 -9
  212. package/es/Badge/Badge.types.d.ts +1 -1
  213. package/es/Badge/{Badge.css → index.css} +47 -27
  214. package/es/Breadcrumb/Breadcrumb.d.ts +1 -1
  215. package/es/Breadcrumb/Breadcrumb.js +1 -1
  216. package/es/Breadcrumb/index.css +38 -0
  217. package/es/Button/Button.d.ts +1 -1
  218. package/es/Button/Button.js +6 -11
  219. package/es/Button/Button.types.d.ts +8 -7
  220. package/{dist/Button/Button.css → es/Button/index.css} +93 -63
  221. package/es/Calendar/Calendar.d.ts +1 -1
  222. package/es/Calendar/Calendar.js +10 -22
  223. package/es/Calendar/Calendar.types.d.ts +0 -5
  224. package/es/Calendar/{Calendar.css → index.css} +35 -31
  225. package/es/Card/Card.css +9 -0
  226. package/es/Card/CardContent.css +1 -2
  227. package/es/Card/CardFooter.css +2 -4
  228. package/es/Card/CardHeader.css +5 -5
  229. package/es/Card/CardHeader.js +2 -2
  230. package/es/Card/index.css +77 -0
  231. package/es/Checkbox/Checkbox.d.ts +1 -1
  232. package/es/Checkbox/Checkbox.js +4 -8
  233. package/es/Checkbox/CheckboxGroup.d.ts +1 -1
  234. package/es/Checkbox/CheckboxGroup.js +5 -8
  235. package/es/Checkbox/{Checkbox.css → index.css} +14 -10
  236. package/es/CitySelector/CitySelector.miniapp.d.ts +0 -1
  237. package/es/CitySelector/CitySelector.miniapp.js +0 -1
  238. package/es/CitySelector/CitySelectorCore.d.ts +1 -1
  239. package/es/CitySelector/CitySelectorCore.js +1 -1
  240. package/es/CitySelector/Selector/index.css +4 -4
  241. package/{dist/CitySelector/CitySelector.css → es/CitySelector/index.css} +31 -27
  242. package/es/Collapse/Collapse.d.ts +2 -2
  243. package/es/Collapse/Collapse.js +9 -12
  244. package/{dist/Collapse/Collapse.css → es/Collapse/index.css} +1 -0
  245. package/es/CollapsePanel/CollapsePanel.d.ts +1 -1
  246. package/es/CollapsePanel/CollapsePanel.js +1 -1
  247. package/es/CollapsePanel/CollapsePanelItem.js +45 -46
  248. package/{dist/CollapsePanel/CollapsePanel.css → es/CollapsePanel/index.css} +12 -10
  249. package/es/Countdown/Countdown.d.ts +1 -1
  250. package/es/Countdown/Countdown.js +6 -13
  251. package/{dist/Countdown/Countdown.css → es/Countdown/index.css} +12 -8
  252. package/es/Dialog/FunctionalDialog.js +2 -2
  253. package/es/Dialog/index.css +26 -23
  254. package/es/Divider/Divider.d.ts +1 -1
  255. package/es/Divider/Divider.js +9 -6
  256. package/{dist/Divider/Divider.css → es/Divider/index.css} +14 -10
  257. package/es/Drawer/Drawer.d.ts +1 -1
  258. package/es/Drawer/Drawer.js +5 -11
  259. package/es/Drawer/{Drawer.css → index.css} +2 -0
  260. package/es/Fade/Fade.js +52 -56
  261. package/es/IconButton/IconButton.d.ts +1 -1
  262. package/es/IconButton/IconButton.js +7 -14
  263. package/es/IconButton/IconButton.types.d.ts +4 -3
  264. package/{dist/IconButton/IconButton.css → es/IconButton/index.css} +79 -29
  265. package/es/Image/Image.js +112 -119
  266. package/es/Image/index.css +6 -2
  267. package/es/Input/Input.d.ts +1 -1
  268. package/es/Input/Input.js +6 -12
  269. package/{dist/Input/Input.css → es/Input/index.css} +22 -18
  270. package/es/ItemSelector/ItemSelector.miniapp.d.ts +0 -1
  271. package/es/ItemSelector/ItemSelector.miniapp.js +0 -1
  272. package/es/ItemSelector/ItemSelectorCore.d.ts +1 -1
  273. package/es/ItemSelector/ItemSelectorCore.js +1 -1
  274. package/es/List/List.css +7 -3
  275. package/es/List/List.js +3 -8
  276. package/es/List/ListItem.css +3 -3
  277. package/es/List/ListItem.js +42 -44
  278. package/es/List/ListItemContent.js +1 -4
  279. package/es/List/ListItemExtra.js +9 -4
  280. package/es/List/ListItemFooter.js +9 -4
  281. package/es/List/ListItemHeader.js +9 -4
  282. package/es/List/index.css +80 -0
  283. package/es/Loading/Loading.d.ts +1 -1
  284. package/es/Loading/Loading.js +14 -5
  285. package/{dist/Loading/Loading.css → es/Loading/index.css} +10 -6
  286. package/es/Modal/Modal.d.ts +1 -1
  287. package/es/Modal/Modal.js +1 -7
  288. package/es/Modal/Modal.miniapp.d.ts +2 -2
  289. package/es/Modal/Modal.miniapp.js +5 -11
  290. package/es/NavBar/NavBar.d.ts +1 -1
  291. package/es/NavBar/NavBar.js +1 -2
  292. package/es/NavBar/index.css +65 -0
  293. package/es/Picker/Picker.css +21 -21
  294. package/es/Picker/Picker.js +6 -28
  295. package/es/Picker/Picker.types.d.ts +4 -17
  296. package/es/Picker/PickerPanel.css +8 -12
  297. package/es/Picker/PickerPanel.js +52 -31
  298. package/es/Picker/index.css +116 -0
  299. package/es/Popover/Popover.d.ts +1 -1
  300. package/es/Popover/Popover.js +30 -74
  301. package/{dist/Popover/Popover.css → es/Popover/index.css} +32 -28
  302. package/es/Portal/Portal.miniapp.js +5 -8
  303. package/es/Progress/Progress.d.ts +1 -1
  304. package/es/Progress/Progress.js +1 -1
  305. package/es/Progress/index.css +28 -0
  306. package/es/Radio/Radio.d.ts +1 -1
  307. package/es/Radio/Radio.js +3 -7
  308. package/es/Radio/RadioButtonIcon.js +6 -1
  309. package/es/Radio/RadioGroup.d.ts +1 -1
  310. package/es/Radio/RadioGroup.js +1 -4
  311. package/es/Radio/{Radio.css → index.css} +10 -7
  312. package/es/Rating/Rating.d.ts +1 -1
  313. package/es/Rating/Rating.js +9 -19
  314. package/{dist/Rating/Rating.css → es/Rating/index.css} +20 -7
  315. package/es/ScrollView/ScrollView.d.ts +1 -1
  316. package/es/ScrollView/ScrollView.js +12 -25
  317. package/es/ScrollView/ScrollView.types.d.ts +1 -0
  318. package/es/Select/Select.d.ts +1 -1
  319. package/es/Select/Select.js +44 -76
  320. package/es/Select/SelectOption.d.ts +1 -1
  321. package/es/Select/SelectOption.js +1 -1
  322. package/es/Select/{Select.css → index.css} +30 -20
  323. package/es/Skeleton/Skeleton.d.ts +1 -1
  324. package/es/Skeleton/Skeleton.js +6 -10
  325. package/es/Skeleton/{Skeleton.css → index.css} +7 -3
  326. package/es/Slide/Slide.js +69 -74
  327. package/es/Slider/Slider.d.ts +1 -1
  328. package/es/Slider/Slider.js +14 -32
  329. package/es/Slider/index.css +111 -0
  330. package/es/Stack/Stack.d.ts +1 -1
  331. package/es/Stack/Stack.js +1 -1
  332. package/es/Steps/Step.css +14 -14
  333. package/es/Steps/Step.js +81 -82
  334. package/es/Steps/Steps.css +18 -14
  335. package/es/Steps/Steps.d.ts +1 -1
  336. package/es/Steps/Steps.js +57 -60
  337. package/es/Steps/index.css +199 -0
  338. package/es/Swiper/Swiper.d.ts +1 -1
  339. package/es/Swiper/Swiper.js +1 -1
  340. package/{dist/Swiper/Swiper.css → es/Swiper/index.css} +6 -2
  341. package/es/Switch/Switch.d.ts +1 -1
  342. package/es/Switch/Switch.js +76 -79
  343. package/es/Switch/Switch.types.d.ts +1 -1
  344. package/{dist/Switch/Switch.css → es/Switch/index.css} +46 -35
  345. package/es/TabBar/TabBar.css +12 -8
  346. package/es/TabBar/TabBar.js +3 -8
  347. package/es/TabBar/TabBarContext.d.ts +3 -3
  348. package/es/TabBar/TabBarItem.css +6 -0
  349. package/es/TabBar/TabBarItem.js +2 -2
  350. package/es/TabBar/index.css +59 -0
  351. package/es/TabBar/index.types.d.ts +3 -3
  352. package/es/Tabs/Tab.css +10 -16
  353. package/es/Tabs/Tab.js +2 -3
  354. package/es/Tabs/Tabs.css +32 -21
  355. package/es/Tabs/Tabs.js +41 -83
  356. package/es/Tabs/Tabs.types.d.ts +0 -10
  357. package/es/Tabs/index.css +135 -0
  358. package/es/Tabs/utils/bound.d.ts +1 -0
  359. package/es/Tabs/utils/bound.js +13 -0
  360. package/es/Tag/Tag.css +49 -23
  361. package/es/Tag/Tag.js +3 -7
  362. package/es/Tag/Tag.types.d.ts +4 -4
  363. package/es/Tag/TagGroup.css +15 -11
  364. package/es/Tag/TagGroup.d.ts +2 -2
  365. package/es/Tag/TagGroup.js +16 -14
  366. package/es/Tag/index.css +182 -0
  367. package/es/TextArea/TextArea.d.ts +1 -1
  368. package/es/TextArea/TextArea.js +6 -13
  369. package/es/TextArea/index.css +57 -0
  370. package/es/ThemeProvider/ThemeProvider.js +1 -4
  371. package/es/ThemeProvider/ThemeProvider.types.d.ts +5 -10
  372. package/es/ThemeProvider/utils/constants.d.ts +1 -1
  373. package/es/ThemeProvider/utils/constants.js +4 -1
  374. package/es/ThemeProvider/utils/mountTokens.d.ts +4 -4
  375. package/es/Toast/FunctionalToast.js +2 -2
  376. package/es/Toast/Toast.d.ts +1 -1
  377. package/es/Toast/Toast.js +5 -5
  378. package/es/Toast/index.css +58 -0
  379. package/es/Tooltip/Tooltip.d.ts +1 -1
  380. package/es/Tooltip/Tooltip.js +30 -74
  381. package/es/Tooltip/index.css +95 -0
  382. package/es/Transition/TransitionCore.js +3 -8
  383. package/es/index.d.ts +0 -6
  384. package/es/index.js +0 -6
  385. package/es/locales/base.d.ts +0 -11
  386. package/es/locales/en-US.js +0 -24
  387. package/es/locales/zh-CN.js +0 -24
  388. package/es/locales/zh-TW.js +0 -24
  389. package/package.json +14 -6
  390. package/dist/Breadcrumb/Breadcrumb.css +0 -34
  391. package/dist/CitySelector/miniapp.css +0 -4
  392. package/dist/Collapse/Collapse.miniapp.d.ts +0 -5
  393. package/dist/Collapse/Collapse.miniapp.js +0 -177
  394. package/dist/DatePicker/DatePicker.d.ts +0 -4
  395. package/dist/DatePicker/DatePicker.js +0 -335
  396. package/dist/DatePicker/DatePicker.types.d.ts +0 -36
  397. package/dist/DatePicker/DatePicker.types.js +0 -15
  398. package/dist/DatePicker/constants.d.ts +0 -9
  399. package/dist/DatePicker/constants.js +0 -37
  400. package/dist/DatePicker/index.d.ts +0 -3
  401. package/dist/DatePicker/index.js +0 -44
  402. package/dist/DesktopDatePicker/DesktopDatePicker.d.ts +0 -5
  403. package/dist/DesktopDatePicker/DesktopDatePicker.js +0 -280
  404. package/dist/DesktopDatePicker/DesktopDatePicker.types.d.ts +0 -163
  405. package/dist/DesktopDatePicker/DesktopDatePicker.types.js +0 -15
  406. package/dist/DesktopDatePicker/deskTopPickerContainer.css +0 -100
  407. package/dist/DesktopDatePicker/index.css +0 -61
  408. package/dist/DesktopDatePicker/index.d.ts +0 -2
  409. package/dist/DesktopDatePicker/index.js +0 -41
  410. package/dist/DesktopDatePicker/useGetDatePickerContent.d.ts +0 -6
  411. package/dist/DesktopDatePicker/useGetDatePickerContent.js +0 -343
  412. package/dist/DesktopDateTimePicker/DesktopDateTimePicker.d.ts +0 -5
  413. package/dist/DesktopDateTimePicker/DesktopDateTimePicker.js +0 -322
  414. package/dist/DesktopDateTimePicker/DesktopDateTimePicker.types.d.ts +0 -163
  415. package/dist/DesktopDateTimePicker/DesktopDateTimePicker.types.js +0 -15
  416. package/dist/DesktopDateTimePicker/index.css +0 -66
  417. package/dist/DesktopDateTimePicker/index.d.ts +0 -2
  418. package/dist/DesktopDateTimePicker/index.js +0 -41
  419. package/dist/DesktopPicker/DesktopPicker.d.ts +0 -5
  420. package/dist/DesktopPicker/DesktopPicker.js +0 -238
  421. package/dist/DesktopPicker/DesktopPicker.types.d.ts +0 -57
  422. package/dist/DesktopPicker/DesktopPicker.types.js +0 -15
  423. package/dist/DesktopPicker/index.css +0 -37
  424. package/dist/DesktopPicker/index.d.ts +0 -2
  425. package/dist/DesktopPicker/index.js +0 -41
  426. package/dist/DesktopPicker/utils/calcAfterMounted.d.ts +0 -2
  427. package/dist/DesktopPicker/utils/calcAfterMounted.miniapp.d.ts +0 -2
  428. package/dist/DesktopPicker/utils/calcAfterMounted.miniapp.js +0 -38
  429. package/dist/DesktopTimePicker/DesktopTimePicker.d.ts +0 -5
  430. package/dist/DesktopTimePicker/DesktopTimePicker.js +0 -288
  431. package/dist/DesktopTimePicker/DesktopTimePicker.types.d.ts +0 -182
  432. package/dist/DesktopTimePicker/DesktopTimePicker.types.js +0 -15
  433. package/dist/DesktopTimePicker/DesktopTimePickerList.d.ts +0 -4
  434. package/dist/DesktopTimePicker/DesktopTimePickerList.js +0 -111
  435. package/dist/DesktopTimePicker/index.css +0 -170
  436. package/dist/DesktopTimePicker/index.d.ts +0 -2
  437. package/dist/DesktopTimePicker/index.js +0 -41
  438. package/dist/DesktopTimePicker/useGetTimePickerContent.d.ts +0 -6
  439. package/dist/DesktopTimePicker/useGetTimePickerContent.js +0 -249
  440. package/dist/DesktopTimePicker/utils/scrollUtil.d.ts +0 -2
  441. package/dist/DesktopTimePicker/utils/scrollUtil.js +0 -27
  442. package/dist/DesktopTimePicker/utils/scrollUtil.miniapp.d.ts +0 -2
  443. package/dist/DesktopTimePicker/utils/scrollUtil.miniapp.js +0 -51
  444. package/dist/DesktopTimePicker/utils/utils.d.ts +0 -28
  445. package/dist/DesktopTimePicker/utils/utils.js +0 -408
  446. package/dist/ItemSelector/miniapp.css +0 -4
  447. package/dist/NavBar/NavBar.css +0 -61
  448. package/dist/Progress/Progress.css +0 -24
  449. package/dist/Slider/Slider.css +0 -106
  450. package/dist/SwipeAction/SwipeAction.css +0 -79
  451. package/dist/SwipeAction/SwipeAction.d.ts +0 -5
  452. package/dist/SwipeAction/SwipeAction.js +0 -349
  453. package/dist/SwipeAction/SwipeAction.types.d.ts +0 -75
  454. package/dist/SwipeAction/SwipeAction.types.js +0 -15
  455. package/dist/SwipeAction/SwipeActionContext.d.ts +0 -4
  456. package/dist/SwipeAction/SwipeActionContext.js +0 -30
  457. package/dist/SwipeAction/SwipeActionItem.css +0 -31
  458. package/dist/SwipeAction/SwipeActionItem.d.ts +0 -5
  459. package/dist/SwipeAction/SwipeActionItem.js +0 -105
  460. package/dist/SwipeAction/constants.d.ts +0 -9
  461. package/dist/SwipeAction/constants.js +0 -39
  462. package/dist/SwipeAction/index.d.ts +0 -5
  463. package/dist/SwipeAction/index.js +0 -50
  464. package/dist/Tabs/utils/scroll.d.ts +0 -2
  465. package/dist/Tabs/utils/scroll.js +0 -55
  466. package/dist/TextArea/TextArea.css +0 -53
  467. package/dist/Toast/Toast.css +0 -53
  468. package/dist/Tooltip/Tooltip.css +0 -91
  469. package/es/Breadcrumb/Breadcrumb.css +0 -34
  470. package/es/CitySelector/miniapp.css +0 -4
  471. package/es/Collapse/Collapse.miniapp.d.ts +0 -5
  472. package/es/Collapse/Collapse.miniapp.js +0 -157
  473. package/es/DatePicker/DatePicker.d.ts +0 -4
  474. package/es/DatePicker/DatePicker.js +0 -308
  475. package/es/DatePicker/DatePicker.types.d.ts +0 -36
  476. package/es/DatePicker/DatePicker.types.js +0 -1
  477. package/es/DatePicker/constants.d.ts +0 -9
  478. package/es/DatePicker/constants.js +0 -14
  479. package/es/DatePicker/index.d.ts +0 -3
  480. package/es/DatePicker/index.js +0 -8
  481. package/es/DesktopDatePicker/DesktopDatePicker.d.ts +0 -5
  482. package/es/DesktopDatePicker/DesktopDatePicker.js +0 -253
  483. package/es/DesktopDatePicker/DesktopDatePicker.types.d.ts +0 -163
  484. package/es/DesktopDatePicker/DesktopDatePicker.types.js +0 -1
  485. package/es/DesktopDatePicker/deskTopPickerContainer.css +0 -100
  486. package/es/DesktopDatePicker/index.css +0 -61
  487. package/es/DesktopDatePicker/index.d.ts +0 -2
  488. package/es/DesktopDatePicker/index.js +0 -6
  489. package/es/DesktopDatePicker/useGetDatePickerContent.d.ts +0 -6
  490. package/es/DesktopDatePicker/useGetDatePickerContent.js +0 -316
  491. package/es/DesktopDateTimePicker/DesktopDateTimePicker.d.ts +0 -5
  492. package/es/DesktopDateTimePicker/DesktopDateTimePicker.js +0 -295
  493. package/es/DesktopDateTimePicker/DesktopDateTimePicker.types.d.ts +0 -163
  494. package/es/DesktopDateTimePicker/DesktopDateTimePicker.types.js +0 -1
  495. package/es/DesktopDateTimePicker/index.css +0 -66
  496. package/es/DesktopDateTimePicker/index.d.ts +0 -2
  497. package/es/DesktopDateTimePicker/index.js +0 -9
  498. package/es/DesktopPicker/DesktopPicker.d.ts +0 -5
  499. package/es/DesktopPicker/DesktopPicker.js +0 -221
  500. package/es/DesktopPicker/DesktopPicker.types.d.ts +0 -57
  501. package/es/DesktopPicker/DesktopPicker.types.js +0 -1
  502. package/es/DesktopPicker/index.css +0 -37
  503. package/es/DesktopPicker/index.d.ts +0 -2
  504. package/es/DesktopPicker/index.js +0 -6
  505. package/es/DesktopPicker/utils/calcAfterMounted.d.ts +0 -2
  506. package/es/DesktopPicker/utils/calcAfterMounted.js +0 -6
  507. package/es/DesktopPicker/utils/calcAfterMounted.miniapp.d.ts +0 -2
  508. package/es/DesktopPicker/utils/calcAfterMounted.miniapp.js +0 -9
  509. package/es/DesktopTimePicker/DesktopTimePicker.d.ts +0 -5
  510. package/es/DesktopTimePicker/DesktopTimePicker.js +0 -261
  511. package/es/DesktopTimePicker/DesktopTimePicker.types.d.ts +0 -182
  512. package/es/DesktopTimePicker/DesktopTimePicker.types.js +0 -1
  513. package/es/DesktopTimePicker/DesktopTimePickerList.d.ts +0 -4
  514. package/es/DesktopTimePicker/DesktopTimePickerList.js +0 -84
  515. package/es/DesktopTimePicker/index.css +0 -170
  516. package/es/DesktopTimePicker/index.d.ts +0 -2
  517. package/es/DesktopTimePicker/index.js +0 -6
  518. package/es/DesktopTimePicker/useGetTimePickerContent.d.ts +0 -6
  519. package/es/DesktopTimePicker/useGetTimePickerContent.js +0 -226
  520. package/es/DesktopTimePicker/utils/scrollUtil.d.ts +0 -2
  521. package/es/DesktopTimePicker/utils/scrollUtil.js +0 -8
  522. package/es/DesktopTimePicker/utils/scrollUtil.miniapp.d.ts +0 -2
  523. package/es/DesktopTimePicker/utils/scrollUtil.miniapp.js +0 -22
  524. package/es/DesktopTimePicker/utils/utils.d.ts +0 -28
  525. package/es/DesktopTimePicker/utils/utils.js +0 -365
  526. package/es/ItemSelector/miniapp.css +0 -4
  527. package/es/NavBar/NavBar.css +0 -61
  528. package/es/Progress/Progress.css +0 -24
  529. package/es/Slider/Slider.css +0 -106
  530. package/es/SwipeAction/SwipeAction.css +0 -79
  531. package/es/SwipeAction/SwipeAction.d.ts +0 -5
  532. package/es/SwipeAction/SwipeAction.js +0 -334
  533. package/es/SwipeAction/SwipeAction.types.d.ts +0 -75
  534. package/es/SwipeAction/SwipeAction.types.js +0 -1
  535. package/es/SwipeAction/SwipeActionContext.d.ts +0 -4
  536. package/es/SwipeAction/SwipeActionContext.js +0 -11
  537. package/es/SwipeAction/SwipeActionItem.css +0 -31
  538. package/es/SwipeAction/SwipeActionItem.d.ts +0 -5
  539. package/es/SwipeAction/SwipeActionItem.js +0 -78
  540. package/es/SwipeAction/constants.d.ts +0 -9
  541. package/es/SwipeAction/constants.js +0 -15
  542. package/es/SwipeAction/index.d.ts +0 -5
  543. package/es/SwipeAction/index.js +0 -12
  544. package/es/Tabs/utils/scroll.d.ts +0 -2
  545. package/es/Tabs/utils/scroll.js +0 -36
  546. package/es/TextArea/TextArea.css +0 -53
  547. package/es/Toast/Toast.css +0 -53
  548. package/es/Tooltip/Tooltip.css +0 -91
  549. /package/dist/ItemSelector/{ItemSelector.css → index.css} +0 -0
  550. /package/dist/Modal/{Modal.css → index.css} +0 -0
  551. /package/dist/ScrollView/{ScrollView.css → index.css} +0 -0
  552. /package/dist/Stack/{Stack.css → index.css} +0 -0
  553. /package/es/ItemSelector/{ItemSelector.css → index.css} +0 -0
  554. /package/es/Modal/{Modal.css → index.css} +0 -0
  555. /package/es/ScrollView/{ScrollView.css → index.css} +0 -0
  556. /package/es/Stack/{Stack.css → index.css} +0 -0
@@ -1,105 +0,0 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
9
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
10
- var __spreadValues = (a, b) => {
11
- for (var prop in b || (b = {}))
12
- if (__hasOwnProp.call(b, prop))
13
- __defNormalProp(a, prop, b[prop]);
14
- if (__getOwnPropSymbols)
15
- for (var prop of __getOwnPropSymbols(b)) {
16
- if (__propIsEnum.call(b, prop))
17
- __defNormalProp(a, prop, b[prop]);
18
- }
19
- return a;
20
- };
21
- var __objRest = (source, exclude) => {
22
- var target = {};
23
- for (var prop in source)
24
- if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
25
- target[prop] = source[prop];
26
- if (source != null && __getOwnPropSymbols)
27
- for (var prop of __getOwnPropSymbols(source)) {
28
- if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
29
- target[prop] = source[prop];
30
- }
31
- return target;
32
- };
33
- var __export = (target, all) => {
34
- for (var name in all)
35
- __defProp(target, name, { get: all[name], enumerable: true });
36
- };
37
- var __copyProps = (to, from, except, desc) => {
38
- if (from && typeof from === "object" || typeof from === "function") {
39
- for (let key of __getOwnPropNames(from))
40
- if (!__hasOwnProp.call(to, key) && key !== except)
41
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
42
- }
43
- return to;
44
- };
45
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
46
- // If the importer is in node compatibility mode or this is not an ESM
47
- // file that has been converted to a CommonJS file using a Babel-
48
- // compatible transform (i.e. "__esModule" has not been set), then set
49
- // "default" to the CommonJS "module.exports" for node compatibility.
50
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
51
- mod
52
- ));
53
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
54
- var SwipeActionItem_exports = {};
55
- __export(SwipeActionItem_exports, {
56
- default: () => SwipeActionItem_default
57
- });
58
- module.exports = __toCommonJS(SwipeActionItem_exports);
59
- var import_react = __toESM(require("react"));
60
- var import_clsx = __toESM(require("clsx"));
61
- var import_SwipeActionContext = __toESM(require("./SwipeActionContext"));
62
- var import_SwipeActionItem = require("./SwipeActionItem.css");
63
- const prefixCls = "bui-swipe-action-item";
64
- const SwipeActionItem = /* @__PURE__ */ import_react.default.forwardRef(
65
- (props, ref) => {
66
- const _a = props, {
67
- className,
68
- children,
69
- onClick,
70
- color = "primary",
71
- id = ""
72
- } = _a, others = __objRest(_a, [
73
- "className",
74
- "children",
75
- "onClick",
76
- "color",
77
- "id"
78
- ]);
79
- const { closeOnClickActionItem, close } = (0, import_react.useContext)(import_SwipeActionContext.default);
80
- const onClickHandle = (e) => {
81
- e.stopPropagation();
82
- if (closeOnClickActionItem) {
83
- close == null ? void 0 : close();
84
- }
85
- onClick == null ? void 0 : onClick(e, {
86
- color,
87
- id,
88
- text: children
89
- });
90
- };
91
- return /* @__PURE__ */ import_react.default.createElement(
92
- "div",
93
- __spreadValues({
94
- className: (0, import_clsx.default)(prefixCls, className, {
95
- [`${prefixCls}-${color}`]: color
96
- }),
97
- ref,
98
- onClick: onClickHandle
99
- }, others),
100
- children
101
- );
102
- }
103
- );
104
- SwipeActionItem.displayName = "SwipeActionItem";
105
- var SwipeActionItem_default = SwipeActionItem;
@@ -1,9 +0,0 @@
1
- export declare enum SideTypeEnum {
2
- LEFT = "left",
3
- RIGHT = "right"
4
- }
5
- export declare enum DragPhaseEnum {
6
- START = 1,
7
- MOVE = 2,
8
- END = 3
9
- }
@@ -1,39 +0,0 @@
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 constants_exports = {};
19
- __export(constants_exports, {
20
- DragPhaseEnum: () => DragPhaseEnum,
21
- SideTypeEnum: () => SideTypeEnum
22
- });
23
- module.exports = __toCommonJS(constants_exports);
24
- var SideTypeEnum = /* @__PURE__ */ ((SideTypeEnum2) => {
25
- SideTypeEnum2["LEFT"] = "left";
26
- SideTypeEnum2["RIGHT"] = "right";
27
- return SideTypeEnum2;
28
- })(SideTypeEnum || {});
29
- var DragPhaseEnum = /* @__PURE__ */ ((DragPhaseEnum2) => {
30
- DragPhaseEnum2[DragPhaseEnum2["START"] = 1] = "START";
31
- DragPhaseEnum2[DragPhaseEnum2["MOVE"] = 2] = "MOVE";
32
- DragPhaseEnum2[DragPhaseEnum2["END"] = 3] = "END";
33
- return DragPhaseEnum2;
34
- })(DragPhaseEnum || {});
35
- // Annotate the CommonJS export names for ESM import in node:
36
- 0 && (module.exports = {
37
- DragPhaseEnum,
38
- SideTypeEnum
39
- });
@@ -1,5 +0,0 @@
1
- export * from './SwipeAction.types';
2
- export { default } from './SwipeAction';
3
- export { default as SwipeAction } from './SwipeAction';
4
- export { default as SwipeActionItem } from './SwipeActionItem';
5
- export { SideTypeEnum, DragPhaseEnum } from './constants';
@@ -1,50 +0,0 @@
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 __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 SwipeAction_exports = {};
30
- __export(SwipeAction_exports, {
31
- DragPhaseEnum: () => import_constants.DragPhaseEnum,
32
- SideTypeEnum: () => import_constants.SideTypeEnum,
33
- SwipeAction: () => import_SwipeAction2.default,
34
- SwipeActionItem: () => import_SwipeActionItem.default,
35
- default: () => import_SwipeAction.default
36
- });
37
- module.exports = __toCommonJS(SwipeAction_exports);
38
- __reExport(SwipeAction_exports, require("./SwipeAction.types"), module.exports);
39
- var import_SwipeAction = __toESM(require("./SwipeAction"));
40
- var import_SwipeAction2 = __toESM(require("./SwipeAction"));
41
- var import_SwipeActionItem = __toESM(require("./SwipeActionItem"));
42
- var import_constants = require("./constants");
43
- // Annotate the CommonJS export names for ESM import in node:
44
- 0 && (module.exports = {
45
- DragPhaseEnum,
46
- SideTypeEnum,
47
- SwipeAction,
48
- SwipeActionItem,
49
- ...require("./SwipeAction.types")
50
- });
@@ -1,2 +0,0 @@
1
- declare const scrollLeftTo: (scroller: HTMLElement, to: number, duration: number) => void;
2
- export default scrollLeftTo;
@@ -1,55 +0,0 @@
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 scroll_exports = {};
19
- __export(scroll_exports, {
20
- default: () => scroll_default
21
- });
22
- module.exports = __toCommonJS(scroll_exports);
23
- const root = window || global;
24
- let rafId;
25
- let prev = Date.now();
26
- const rafPolyfill = (fn) => {
27
- const curr = Date.now();
28
- const ms = Math.max(0, 16 - (curr - prev));
29
- const id = setTimeout(fn, ms);
30
- prev = curr + ms;
31
- return id;
32
- };
33
- const cancelRaf = (id) => {
34
- const cancelAnimationFrame = (root == null ? void 0 : root.cancelAnimationFrame) || (root == null ? void 0 : root.clearTimeout) || clearTimeout;
35
- cancelAnimationFrame.call(root, id);
36
- };
37
- const raf = (fn) => {
38
- const requestAnimationFrame = (root == null ? void 0 : root.requestAnimationFrame) || rafPolyfill;
39
- return requestAnimationFrame.call(root, fn);
40
- };
41
- const scrollLeftTo = (scroller, to, duration) => {
42
- cancelRaf(rafId);
43
- let count = 0;
44
- const from = scroller.scrollLeft;
45
- const frames = duration === 0 ? 1 : Math.round(duration / 16);
46
- function animate() {
47
- scroller.scrollLeft += (to - from) / frames;
48
- count += 1;
49
- if (count < frames) {
50
- rafId = raf(animate);
51
- }
52
- }
53
- animate();
54
- };
55
- var scroll_default = scrollLeftTo;
@@ -1,53 +0,0 @@
1
- .bui-textarea {
2
- --border-radius: var(--bui-textarea-border-radius, var(--bui-shape-radius-label));
3
- --width: var(--bui-textarea-width, 100%);
4
- --bg-color: var(--bui-textarea-background-color, var(--bui-color-bg-default));
5
- --text-color: var(--bui-textarea-text-color, var(--bui-color-fg-subtle));
6
- --count-bg-color: var(--bg-color, var(--bui-color-bg-default));
7
- --count-text-color: var(--bui-textarea-count-color, var(--bui-color-fg-subtle));
8
- --text-font-size: var(--bui-textarea-text-font-size, var(--bui-text-size-2));
9
- --count-font-size: var(--bui-textarea-count-font-size, var(--bui-title-size-3));
10
- --content-padding: var(--bui-textarea-padding, 8px);
11
- --count-padding: var(--bui-textarea-count-padding, 0 4px);
12
- --placeholder-color: var(--bui-textarea-placeholder-color, #ced1d6);
13
- --placeholder-line-height: var(--bui-textarea-placeholder-line-height, 1.3);
14
- background: var(--bui-color-bg-default);
15
- border-radius: var(--border-radius);
16
- font-family: var(--bui-font-family);
17
- overflow: hidden;
18
- }
19
- .bui-textarea textarea {
20
- font-size: var(--text-font-size);
21
- color: var(--text-color);
22
- line-height: var(--bui-line-height);
23
- }
24
- .bui-textarea .bui-mini-placeholder {
25
- color: var(--placeholder-color);
26
- }
27
- .bui-textarea-disabled {
28
- pointer-events: none;
29
- }
30
- .bui-textarea .a-textarea-count-wrap {
31
- display: none;
32
- }
33
- .bui-textarea-content {
34
- width: var(--width);
35
- resize: none;
36
- background-color: var(--bg-color);
37
- padding: var(--content-padding);
38
- border: none;
39
- outline: none;
40
- word-break: break-all;
41
- box-sizing: border-box;
42
- }
43
- .bui-textarea-content::placeholder {
44
- color: var(--placeholder-color);
45
- line-height: var(--placeholder-line-height);
46
- }
47
- .bui-textarea-count {
48
- background-color: var(--count-bg-color);
49
- color: var(--count-text-color);
50
- text-align: right;
51
- padding: var(--count-padding);
52
- font-size: var(--count-font-size);
53
- }
@@ -1,53 +0,0 @@
1
- .bui-toast {
2
- --min-width: var(--bui-toast-min-width, 86px);
3
- --max-width: var(--bui-toast-max-width, 80%);
4
- --text-align: var(--bui-toast-text-align, center);
5
- --flex-direction: var(--bui-toast-flex-direction, column);
6
- --padding: var(--bui-toast-padding, var(--bui-spacing-xl));
7
- --position-top: var(--bui-toast-position-top, 15%);
8
- --position-bottom: var(--bui-toast-position-bottom, 85%);
9
- --background-color: var(--bui-toast-bg-color, rgba(0, 0, 0, 0.8));
10
- --border-radius: var(--bui-toast-border-radius, var(--bui-shape-radius-default));
11
- --icon-margin: var(--bui-toast-icon-margin, 0 0 8px);
12
- --icon-font-size: var(--bui-toast-icon-font-size, 30px);
13
- position: fixed;
14
- left: 50%;
15
- z-index: var(--bui-z-index-toast);
16
- min-width: var(--min-width);
17
- max-width: var(--max-width);
18
- padding: var(--padding);
19
- font-size: var(--bui-text-size-1);
20
- color: var(--bui-color-white);
21
- border-radius: var(--border-radius);
22
- word-break: break-all;
23
- white-space: pre-wrap;
24
- background-color: var(--background-color);
25
- text-align: var(--text-align);
26
- font-family: var(--bui-font-family);
27
- }
28
- .bui-toast.bui-toast-allow-click {
29
- position: fixed;
30
- right: unset;
31
- bottom: unset;
32
- }
33
- .bui-toast-center {
34
- top: 50%;
35
- transform: translate(-50%, -50%);
36
- }
37
- .bui-toast-top {
38
- top: var(--position-top);
39
- transform: translate(-50%, calc(-1 * var(--position-top)));
40
- }
41
- .bui-toast-bottom {
42
- top: var(--position-bottom);
43
- transform: translate(-50%, calc(-1 * var(--position-bottom)));
44
- }
45
- .bui-toast-icon {
46
- display: flex;
47
- flex-direction: var(--flex-direction);
48
- align-items: center;
49
- }
50
- .bui-toast-icon .bui-svg-icon {
51
- margin: var(--icon-margin);
52
- font-size: var(--icon-font-size);
53
- }
@@ -1,91 +0,0 @@
1
- .bui-tooltip {
2
- --arrow-size: var(--bui-tooltip-arrow-size, 8PX);
3
- --localtion-position: var(--bui-tooltip-localtion-position, 8PX);
4
- --max-width: var(--bui-tooltip-max-width, 350px);
5
- --content-min-width: var(--bui-tooltip-content-min-width, 30px);
6
- --content-min-height: var(--bui-tooltip-content-min-height, 32px);
7
- --content-padding: var(--bui-tooltip-content-padding, 6px 8px);
8
- max-width: var(--max-width);
9
- font-size: var(--bui-text-size-1);
10
- position: absolute;
11
- visibility: hidden;
12
- z-index: var(--bui-z-index-tooltip);
13
- }
14
- .bui-tooltip .bui-tooltip-arrow {
15
- width: 0;
16
- height: 0;
17
- position: absolute;
18
- }
19
- .bui-tooltip .bui-tooltip-arrow.location-left {
20
- left: var(--localtion-position);
21
- }
22
- .bui-tooltip .bui-tooltip-arrow.location-right {
23
- right: var(--localtion-position);
24
- }
25
- .bui-tooltip .bui-tooltip-arrow.location-top {
26
- top: var(--localtion-position);
27
- }
28
- .bui-tooltip .bui-tooltip-arrow.location-bottom {
29
- bottom: var(--localtion-position);
30
- }
31
- .bui-tooltip.tooltip-top .location-center,
32
- .bui-tooltip.tooltip-bottom .location-center {
33
- left: 50%;
34
- transform: translateX(-50%);
35
- }
36
- .bui-tooltip.tooltip-left .location-center,
37
- .bui-tooltip.tooltip-right .location-center {
38
- top: 50%;
39
- transform: translateY(-50%);
40
- }
41
- .bui-tooltip.tooltip-top {
42
- padding-bottom: var(--arrow-size);
43
- }
44
- .bui-tooltip.tooltip-top .bui-tooltip-arrow {
45
- border-left: var(--arrow-size) solid transparent;
46
- border-right: var(--arrow-size) solid transparent;
47
- border-top: var(--arrow-size) solid var(--bui-color-bg-alpha-dark-7);
48
- bottom: 0;
49
- }
50
- .bui-tooltip.tooltip-bottom {
51
- padding-top: var(--arrow-size);
52
- }
53
- .bui-tooltip.tooltip-bottom .bui-tooltip-arrow {
54
- border-left: var(--arrow-size) solid transparent;
55
- border-right: var(--arrow-size) solid transparent;
56
- border-bottom: var(--arrow-size) solid var(--bui-color-bg-alpha-dark-7);
57
- top: 0;
58
- }
59
- .bui-tooltip.tooltip-left {
60
- padding-right: var(--arrow-size);
61
- }
62
- .bui-tooltip.tooltip-left .bui-tooltip-arrow {
63
- border-top: var(--arrow-size) solid transparent;
64
- border-bottom: var(--arrow-size) solid transparent;
65
- border-left: var(--arrow-size) solid var(--bui-color-bg-alpha-dark-7);
66
- right: 0;
67
- }
68
- .bui-tooltip.tooltip-right {
69
- padding-left: var(--arrow-size);
70
- }
71
- .bui-tooltip.tooltip-right .bui-tooltip-arrow {
72
- border-top: var(--arrow-size) solid transparent;
73
- border-bottom: var(--arrow-size) solid transparent;
74
- border-right: var(--arrow-size) solid var(--bui-color-bg-alpha-dark-7);
75
- left: 0;
76
- }
77
- .bui-tooltip .bui-tooltip-content {
78
- min-width: var(--content-min-width);
79
- min-height: var(--content-min-height);
80
- padding: var(--content-padding);
81
- color: var(--bui-color-white);
82
- text-align: left;
83
- text-decoration: none;
84
- word-wrap: break-word;
85
- background-color: var(--bui-color-bg-alpha-dark-7);
86
- border-radius: var(--bui-shape-radius-poster);
87
- box-shadow:
88
- 0 3px 6px -4px rgba(0, 0, 0, 0.12),
89
- 0 6px 16px 0 rgba(0, 0, 0, 0.08),
90
- 0 9px 28px 8px rgba(0, 0, 0, 0.05);
91
- }
@@ -1,34 +0,0 @@
1
- .bui-breadcrumb {
2
- --margin: var(--bui-breadcrumb-margin, 0);
3
- --padding: var(--bui-breadcrumb-padding, 0);
4
- --color: var(--bui-breadcrumb-color, rgba(0, 0, 0, 0.45));
5
- --item-separator-margin: var(--bui-breadcrumb-item-separator-margin, 0 8px);
6
- --list-li-color: var(--bui-breadcrumb-list-li-color, rgba(0, 0, 0, 0.88));
7
- margin: var(--margin);
8
- padding: var(--padding);
9
- color: var(--color);
10
- list-style: none;
11
- font-size: var(--bui-text-size-1);
12
- line-height: var(--bui-line-height);
13
- }
14
- .bui-breadcrumb-list {
15
- display: flex;
16
- flex-wrap: wrap;
17
- margin: var(--margin);
18
- padding: var(--padding);
19
- list-style: none;
20
- }
21
- .bui-breadcrumb-list a {
22
- color: var(--color);
23
- text-decoration: none;
24
- cursor: pointer;
25
- }
26
- .bui-breadcrumb-list li:last-child {
27
- color: var(--list-li-color);
28
- }
29
- .bui-breadcrumb-item {
30
- cursor: pointer;
31
- }
32
- .bui-breadcrumb-item-separator {
33
- margin: var(--item-separator-margin);
34
- }
@@ -1,4 +0,0 @@
1
- .bui-city-scroll-view-container {
2
- height: 100%;
3
- display: block;
4
- }
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- import { CollapseProps } from './Collapse.types';
3
- import './Collapse.less';
4
- declare const Collapse: React.ForwardRefExoticComponent<CollapseProps & React.RefAttributes<HTMLElement>>;
5
- export default Collapse;
@@ -1,157 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __defProps = Object.defineProperties;
3
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
- var __spreadValues = (a, b) => {
9
- for (var prop in b || (b = {}))
10
- if (__hasOwnProp.call(b, prop))
11
- __defNormalProp(a, prop, b[prop]);
12
- if (__getOwnPropSymbols)
13
- for (var prop of __getOwnPropSymbols(b)) {
14
- if (__propIsEnum.call(b, prop))
15
- __defNormalProp(a, prop, b[prop]);
16
- }
17
- return a;
18
- };
19
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
- var __objRest = (source, exclude) => {
21
- var target = {};
22
- for (var prop in source)
23
- if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
24
- target[prop] = source[prop];
25
- if (source != null && __getOwnPropSymbols)
26
- for (var prop of __getOwnPropSymbols(source)) {
27
- if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
28
- target[prop] = source[prop];
29
- }
30
- return target;
31
- };
32
- import React, { useEffect, useRef, useState } from "react";
33
- import {
34
- useForkRef,
35
- duration,
36
- easing,
37
- getTransitionProps,
38
- createTransitions,
39
- getBoundingClientRect
40
- } from "@bifrostui/utils";
41
- import { Transition } from "../Transition";
42
- import "./Collapse.css";
43
- const defaultEasing = {
44
- enter: easing.easeOut,
45
- exit: easing.sharp
46
- };
47
- const defaultTimeout = {
48
- enter: duration.enteringScreen,
49
- exit: duration.leavingScreen
50
- };
51
- const FIT_CONTENT = "fit-content";
52
- const Collapse = /* @__PURE__ */ React.forwardRef((props, ref) => {
53
- const _a = props, {
54
- appear = false,
55
- in: inProp,
56
- easing: easingProp = defaultEasing,
57
- direction = "vertical",
58
- timeout = defaultTimeout,
59
- delay = 0,
60
- collapsedSize: collapsedSizeProp = 0,
61
- style,
62
- className,
63
- children
64
- } = _a, other = __objRest(_a, [
65
- "appear",
66
- "in",
67
- "easing",
68
- "direction",
69
- "timeout",
70
- "delay",
71
- "collapsedSize",
72
- "style",
73
- "className",
74
- "children"
75
- ]);
76
- const wrapperRef = useRef(null);
77
- const collapseRef = useForkRef(wrapperRef, ref);
78
- const [wrapperSize, setWrapperSize] = useState("");
79
- const transitions = createTransitions();
80
- const isHorizontal = direction === "horizontal";
81
- const collapsedSize = typeof collapsedSizeProp === "number" ? `${collapsedSizeProp}px` : collapsedSizeProp;
82
- const size = isHorizontal ? "width" : "height";
83
- const getCollapseWrapperSize = (reactNode) => {
84
- return new Promise((resolve) => {
85
- var _a2;
86
- const reactNodeChild = (_a2 = reactNode == null ? void 0 : reactNode.children) == null ? void 0 : _a2[0];
87
- if (!reactNodeChild) {
88
- resolve(FIT_CONTENT);
89
- }
90
- getBoundingClientRect(reactNodeChild).then((res) => {
91
- if (!res) {
92
- resolve(FIT_CONTENT);
93
- setWrapperSize(FIT_CONTENT);
94
- } else {
95
- setWrapperSize(isHorizontal ? `${res == null ? void 0 : res.width}px` : `${res == null ? void 0 : res.height}px`);
96
- }
97
- });
98
- });
99
- };
100
- useEffect(() => {
101
- if (appear === false && inProp === true && wrapperSize === FIT_CONTENT) {
102
- getCollapseWrapperSize(wrapperRef.current).then((res) => {
103
- setWrapperSize(res);
104
- });
105
- }
106
- }, [appear, inProp]);
107
- if (!children)
108
- return null;
109
- return /* @__PURE__ */ React.createElement(
110
- Transition,
111
- __spreadProps(__spreadValues({}, other), {
112
- in: inProp,
113
- timeout,
114
- delay,
115
- appear
116
- }),
117
- (state, childProps) => {
118
- var _a2;
119
- const transition = transitions.create(
120
- size,
121
- getTransitionProps(
122
- { timeout, style, easing: easingProp, delay },
123
- { mode: state }
124
- )
125
- );
126
- if (state === "entering" || state === "entered") {
127
- getCollapseWrapperSize(wrapperRef.current).then(
128
- (res = FIT_CONTENT) => {
129
- setWrapperSize(res);
130
- }
131
- );
132
- } else {
133
- setWrapperSize(collapsedSize);
134
- }
135
- return React.createElement(
136
- "div",
137
- __spreadProps(__spreadValues({
138
- className: `bui-collapse ${className || ""}`,
139
- style: __spreadValues(__spreadProps(__spreadValues({}, style), {
140
- transition,
141
- WebkitTransition: transition
142
- }), isHorizontal ? { width: wrapperSize, WebKitWidth: wrapperSize } : { height: wrapperSize, WebKitHeight: wrapperSize })
143
- }, childProps), {
144
- ref: collapseRef
145
- }),
146
- React.cloneElement(children, {
147
- style: __spreadValues({}, (_a2 = children.props) == null ? void 0 : _a2.style)
148
- })
149
- );
150
- }
151
- );
152
- });
153
- Collapse.displayName = "BuiCollapse";
154
- var Collapse_miniapp_default = Collapse;
155
- export {
156
- Collapse_miniapp_default as default
157
- };
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import { DatePickerProps } from './DatePicker.types';
3
- declare const DatePicker: React.ForwardRefExoticComponent<Omit<DatePickerProps<"div", Omit<import("../Picker").PickerProps<"div", import("..").DrawerProps>, "value" | "defaultValue" | "onChange" | "onClose" | "onConfirm">>, "ref"> & React.RefAttributes<HTMLDivElement>>;
4
- export default DatePicker;