@bifrostui/react 2.0.0-beta.2 → 2.0.0-beta.3

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 (349) hide show
  1. package/dist/ActionSheet/ActionSheet.css +16 -6
  2. package/dist/ActionSheet/ActionSheetItem.css +11 -17
  3. package/dist/ActionSheet/ActionSheetItem.js +1 -1
  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/AvatarGroup.css +19 -15
  10. package/dist/Avatar/index.css +93 -0
  11. package/dist/Backdrop/Backdrop.d.ts +1 -1
  12. package/dist/Backdrop/Backdrop.js +1 -1
  13. package/dist/Backdrop/{Backdrop.css → index.css} +6 -2
  14. package/dist/Badge/Badge.d.ts +1 -1
  15. package/dist/Badge/Badge.js +1 -1
  16. package/dist/Badge/Badge.types.d.ts +1 -1
  17. package/dist/Badge/{Badge.css → index.css} +47 -27
  18. package/dist/Breadcrumb/Breadcrumb.d.ts +1 -1
  19. package/dist/Breadcrumb/Breadcrumb.js +1 -1
  20. package/dist/Breadcrumb/index.css +38 -0
  21. package/dist/Button/Button.d.ts +1 -1
  22. package/dist/Button/Button.js +3 -2
  23. package/{es/Button/Button.css → dist/Button/index.css} +69 -38
  24. package/dist/Calendar/Calendar.d.ts +1 -1
  25. package/dist/Calendar/Calendar.js +3 -3
  26. package/dist/Calendar/{Calendar.css → index.css} +35 -31
  27. package/dist/Card/Card.css +10 -1
  28. package/dist/Card/CardContent.css +1 -1
  29. package/dist/Card/CardFooter.css +2 -2
  30. package/dist/Card/CardHeader.css +4 -3
  31. package/dist/Card/CardHeader.js +2 -2
  32. package/dist/Card/index.css +77 -0
  33. package/dist/Checkbox/Checkbox.d.ts +1 -1
  34. package/dist/Checkbox/Checkbox.js +2 -2
  35. package/dist/Checkbox/CheckboxGroup.d.ts +1 -1
  36. package/dist/Checkbox/CheckboxGroup.js +1 -1
  37. package/dist/Checkbox/{Checkbox.css → index.css} +14 -10
  38. package/dist/CitySelector/CitySelector.miniapp.d.ts +0 -1
  39. package/dist/CitySelector/CitySelector.miniapp.js +0 -1
  40. package/dist/CitySelector/CitySelectorCore.d.ts +1 -1
  41. package/dist/CitySelector/CitySelectorCore.js +1 -1
  42. package/dist/CitySelector/Selector/index.css +4 -4
  43. package/{es/CitySelector/CitySelector.css → dist/CitySelector/index.css} +31 -27
  44. package/dist/Collapse/Collapse.d.ts +1 -1
  45. package/dist/Collapse/Collapse.js +1 -1
  46. package/dist/CollapsePanel/CollapsePanel.d.ts +1 -1
  47. package/dist/CollapsePanel/CollapsePanel.js +1 -1
  48. package/dist/CollapsePanel/{CollapsePanel.css → index.css} +10 -6
  49. package/dist/Countdown/Countdown.d.ts +1 -1
  50. package/dist/Countdown/Countdown.js +1 -1
  51. package/{es/Countdown/Countdown.css → dist/Countdown/index.css} +12 -8
  52. package/dist/Dialog/index.css +26 -23
  53. package/dist/Divider/Divider.d.ts +1 -1
  54. package/dist/Divider/Divider.js +1 -1
  55. package/{es/Divider/Divider.css → dist/Divider/index.css} +14 -10
  56. package/dist/Drawer/Drawer.d.ts +1 -1
  57. package/dist/Drawer/Drawer.js +1 -1
  58. package/dist/IconButton/IconButton.d.ts +1 -1
  59. package/dist/IconButton/IconButton.js +3 -3
  60. package/dist/IconButton/IconButton.types.d.ts +4 -3
  61. package/{es/IconButton/IconButton.css → dist/IconButton/index.css} +79 -29
  62. package/dist/Image/index.css +6 -2
  63. package/dist/Input/Input.d.ts +1 -1
  64. package/dist/Input/Input.js +2 -2
  65. package/dist/Input/{Input.css → index.css} +22 -18
  66. package/dist/ItemSelector/ItemSelector.miniapp.d.ts +0 -1
  67. package/dist/ItemSelector/ItemSelector.miniapp.js +0 -1
  68. package/dist/ItemSelector/ItemSelectorCore.d.ts +1 -1
  69. package/dist/ItemSelector/ItemSelectorCore.js +1 -1
  70. package/dist/List/List.css +7 -3
  71. package/dist/List/ListItem.css +3 -3
  72. package/dist/List/index.css +80 -0
  73. package/dist/Loading/Loading.d.ts +1 -1
  74. package/dist/Loading/Loading.js +1 -1
  75. package/{es/Loading/Loading.css → dist/Loading/index.css} +10 -6
  76. package/dist/Modal/Modal.d.ts +1 -1
  77. package/dist/Modal/Modal.js +1 -1
  78. package/dist/Modal/Modal.miniapp.d.ts +2 -2
  79. package/dist/Modal/Modal.miniapp.js +1 -1
  80. package/dist/NavBar/NavBar.d.ts +1 -1
  81. package/dist/NavBar/NavBar.js +1 -1
  82. package/dist/NavBar/index.css +65 -0
  83. package/dist/Picker/Picker.css +21 -16
  84. package/dist/Picker/Picker.js +1 -1
  85. package/dist/Picker/Picker.types.d.ts +2 -2
  86. package/dist/Picker/PickerPanel.css +8 -8
  87. package/dist/Picker/PickerPanel.js +33 -22
  88. package/dist/Picker/index.css +116 -0
  89. package/dist/Popover/Popover.d.ts +1 -1
  90. package/dist/Popover/Popover.js +1 -1
  91. package/{es/Popover/Popover.css → dist/Popover/index.css} +32 -28
  92. package/dist/Progress/Progress.d.ts +1 -1
  93. package/dist/Progress/Progress.js +1 -1
  94. package/dist/Progress/index.css +28 -0
  95. package/dist/Radio/Radio.d.ts +1 -1
  96. package/dist/Radio/Radio.js +1 -1
  97. package/dist/Radio/RadioButtonIcon.js +6 -1
  98. package/dist/Radio/RadioGroup.d.ts +1 -1
  99. package/dist/Radio/RadioGroup.js +1 -1
  100. package/dist/Radio/{Radio.css → index.css} +10 -6
  101. package/dist/Rating/Rating.d.ts +1 -1
  102. package/dist/Rating/Rating.js +2 -2
  103. package/dist/Rating/{Rating.css → index.css} +20 -7
  104. package/dist/ScrollView/ScrollView.d.ts +1 -1
  105. package/dist/ScrollView/ScrollView.js +1 -1
  106. package/dist/Select/Select.d.ts +1 -1
  107. package/dist/Select/Select.js +2 -8
  108. package/dist/Select/SelectOption.d.ts +1 -1
  109. package/dist/Select/SelectOption.js +1 -1
  110. package/{es/Select/Select.css → dist/Select/index.css} +26 -19
  111. package/dist/Skeleton/Skeleton.d.ts +1 -1
  112. package/dist/Skeleton/Skeleton.js +1 -1
  113. package/{es/Skeleton/Skeleton.css → dist/Skeleton/index.css} +7 -3
  114. package/dist/Slider/Slider.d.ts +1 -1
  115. package/dist/Slider/Slider.js +2 -2
  116. package/dist/Slider/index.css +111 -0
  117. package/dist/Stack/Stack.d.ts +1 -1
  118. package/dist/Stack/Stack.js +1 -1
  119. package/dist/Steps/Step.css +14 -14
  120. package/dist/Steps/Step.js +1 -1
  121. package/dist/Steps/Steps.css +18 -14
  122. package/dist/Steps/index.css +199 -0
  123. package/dist/Swiper/Swiper.d.ts +1 -1
  124. package/dist/Swiper/Swiper.js +1 -1
  125. package/dist/Swiper/{Swiper.css → index.css} +6 -2
  126. package/dist/Switch/Switch.d.ts +1 -1
  127. package/dist/Switch/Switch.js +1 -1
  128. package/dist/Switch/Switch.types.d.ts +1 -1
  129. package/dist/Switch/{Switch.css → index.css} +46 -35
  130. package/dist/TabBar/TabBar.css +12 -8
  131. package/dist/TabBar/TabBar.js +1 -1
  132. package/dist/TabBar/TabBarContext.d.ts +3 -3
  133. package/dist/TabBar/TabBarItem.css +6 -0
  134. package/dist/TabBar/TabBarItem.js +3 -3
  135. package/dist/TabBar/index.css +59 -0
  136. package/dist/TabBar/index.types.d.ts +3 -3
  137. package/dist/Tabs/Tab.css +9 -9
  138. package/dist/Tabs/Tabs.css +24 -4
  139. package/dist/Tabs/Tabs.js +1 -1
  140. package/dist/Tabs/index.css +135 -0
  141. package/dist/Tag/Tag.css +48 -22
  142. package/dist/Tag/Tag.js +2 -2
  143. package/dist/Tag/Tag.types.d.ts +4 -4
  144. package/dist/Tag/TagGroup.css +13 -9
  145. package/dist/Tag/index.css +182 -0
  146. package/dist/TextArea/TextArea.d.ts +1 -1
  147. package/dist/TextArea/TextArea.js +1 -1
  148. package/dist/TextArea/index.css +57 -0
  149. package/dist/ThemeProvider/ThemeProvider.js +1 -4
  150. package/dist/ThemeProvider/ThemeProvider.types.d.ts +5 -10
  151. package/dist/ThemeProvider/utils/constants.d.ts +1 -1
  152. package/dist/ThemeProvider/utils/constants.js +4 -1
  153. package/dist/ThemeProvider/utils/mountTokens.d.ts +4 -4
  154. package/dist/Toast/Toast.d.ts +1 -1
  155. package/dist/Toast/Toast.js +5 -5
  156. package/dist/Toast/index.css +58 -0
  157. package/dist/Tooltip/Tooltip.d.ts +1 -1
  158. package/dist/Tooltip/Tooltip.js +1 -1
  159. package/dist/Tooltip/index.css +95 -0
  160. package/es/ActionSheet/ActionSheet.css +16 -6
  161. package/es/ActionSheet/ActionSheetItem.css +11 -17
  162. package/es/ActionSheet/ActionSheetItem.js +1 -1
  163. package/es/ActionSheet/ActionSheetItem.types.d.ts +2 -2
  164. package/es/ActionSheet/index.css +89 -0
  165. package/es/Alert/Alert.types.d.ts +3 -3
  166. package/es/Alert/index.css +18 -14
  167. package/es/Avatar/Avatar.css +16 -12
  168. package/es/Avatar/AvatarGroup.css +19 -15
  169. package/es/Avatar/index.css +93 -0
  170. package/es/Backdrop/Backdrop.d.ts +1 -1
  171. package/es/Backdrop/Backdrop.js +1 -1
  172. package/es/Backdrop/{Backdrop.css → index.css} +6 -2
  173. package/es/Badge/Badge.d.ts +1 -1
  174. package/es/Badge/Badge.js +1 -1
  175. package/es/Badge/Badge.types.d.ts +1 -1
  176. package/es/Badge/{Badge.css → index.css} +47 -27
  177. package/es/Breadcrumb/Breadcrumb.d.ts +1 -1
  178. package/es/Breadcrumb/Breadcrumb.js +1 -1
  179. package/es/Breadcrumb/index.css +38 -0
  180. package/es/Button/Button.d.ts +1 -1
  181. package/es/Button/Button.js +3 -2
  182. package/{dist/Button/Button.css → es/Button/index.css} +69 -38
  183. package/es/Calendar/Calendar.d.ts +1 -1
  184. package/es/Calendar/Calendar.js +3 -3
  185. package/es/Calendar/{Calendar.css → index.css} +35 -31
  186. package/es/Card/Card.css +10 -1
  187. package/es/Card/CardContent.css +1 -1
  188. package/es/Card/CardFooter.css +2 -2
  189. package/es/Card/CardHeader.css +4 -3
  190. package/es/Card/CardHeader.js +2 -2
  191. package/es/Card/index.css +77 -0
  192. package/es/Checkbox/Checkbox.d.ts +1 -1
  193. package/es/Checkbox/Checkbox.js +2 -2
  194. package/es/Checkbox/CheckboxGroup.d.ts +1 -1
  195. package/es/Checkbox/CheckboxGroup.js +1 -1
  196. package/es/Checkbox/{Checkbox.css → index.css} +14 -10
  197. package/es/CitySelector/CitySelector.miniapp.d.ts +0 -1
  198. package/es/CitySelector/CitySelector.miniapp.js +0 -1
  199. package/es/CitySelector/CitySelectorCore.d.ts +1 -1
  200. package/es/CitySelector/CitySelectorCore.js +1 -1
  201. package/es/CitySelector/Selector/index.css +4 -4
  202. package/{dist/CitySelector/CitySelector.css → es/CitySelector/index.css} +31 -27
  203. package/es/Collapse/Collapse.d.ts +1 -1
  204. package/es/Collapse/Collapse.js +1 -1
  205. package/es/CollapsePanel/CollapsePanel.d.ts +1 -1
  206. package/es/CollapsePanel/CollapsePanel.js +1 -1
  207. package/es/CollapsePanel/{CollapsePanel.css → index.css} +10 -6
  208. package/es/Countdown/Countdown.d.ts +1 -1
  209. package/es/Countdown/Countdown.js +1 -1
  210. package/{dist/Countdown/Countdown.css → es/Countdown/index.css} +12 -8
  211. package/es/Dialog/index.css +26 -23
  212. package/es/Divider/Divider.d.ts +1 -1
  213. package/es/Divider/Divider.js +1 -1
  214. package/{dist/Divider/Divider.css → es/Divider/index.css} +14 -10
  215. package/es/Drawer/Drawer.d.ts +1 -1
  216. package/es/Drawer/Drawer.js +1 -1
  217. package/es/IconButton/IconButton.d.ts +1 -1
  218. package/es/IconButton/IconButton.js +3 -3
  219. package/es/IconButton/IconButton.types.d.ts +4 -3
  220. package/{dist/IconButton/IconButton.css → es/IconButton/index.css} +79 -29
  221. package/es/Image/index.css +6 -2
  222. package/es/Input/Input.d.ts +1 -1
  223. package/es/Input/Input.js +2 -2
  224. package/es/Input/{Input.css → index.css} +22 -18
  225. package/es/ItemSelector/ItemSelector.miniapp.d.ts +0 -1
  226. package/es/ItemSelector/ItemSelector.miniapp.js +0 -1
  227. package/es/ItemSelector/ItemSelectorCore.d.ts +1 -1
  228. package/es/ItemSelector/ItemSelectorCore.js +1 -1
  229. package/es/List/List.css +7 -3
  230. package/es/List/ListItem.css +3 -3
  231. package/es/List/index.css +80 -0
  232. package/es/Loading/Loading.d.ts +1 -1
  233. package/es/Loading/Loading.js +1 -1
  234. package/{dist/Loading/Loading.css → es/Loading/index.css} +10 -6
  235. package/es/Modal/Modal.d.ts +1 -1
  236. package/es/Modal/Modal.js +1 -1
  237. package/es/Modal/Modal.miniapp.d.ts +2 -2
  238. package/es/Modal/Modal.miniapp.js +1 -1
  239. package/es/NavBar/NavBar.d.ts +1 -1
  240. package/es/NavBar/NavBar.js +1 -1
  241. package/es/NavBar/index.css +65 -0
  242. package/es/Picker/Picker.css +21 -16
  243. package/es/Picker/Picker.js +1 -1
  244. package/es/Picker/Picker.types.d.ts +2 -2
  245. package/es/Picker/PickerPanel.css +8 -8
  246. package/es/Picker/PickerPanel.js +46 -24
  247. package/es/Picker/index.css +116 -0
  248. package/es/Popover/Popover.d.ts +1 -1
  249. package/es/Popover/Popover.js +1 -1
  250. package/{dist/Popover/Popover.css → es/Popover/index.css} +32 -28
  251. package/es/Progress/Progress.d.ts +1 -1
  252. package/es/Progress/Progress.js +1 -1
  253. package/es/Progress/index.css +28 -0
  254. package/es/Radio/Radio.d.ts +1 -1
  255. package/es/Radio/Radio.js +1 -1
  256. package/es/Radio/RadioButtonIcon.js +6 -1
  257. package/es/Radio/RadioGroup.d.ts +1 -1
  258. package/es/Radio/RadioGroup.js +1 -1
  259. package/es/Radio/{Radio.css → index.css} +10 -6
  260. package/es/Rating/Rating.d.ts +1 -1
  261. package/es/Rating/Rating.js +2 -2
  262. package/es/Rating/{Rating.css → index.css} +20 -7
  263. package/es/ScrollView/ScrollView.d.ts +1 -1
  264. package/es/ScrollView/ScrollView.js +1 -1
  265. package/es/Select/Select.d.ts +1 -1
  266. package/es/Select/Select.js +2 -8
  267. package/es/Select/SelectOption.d.ts +1 -1
  268. package/es/Select/SelectOption.js +1 -1
  269. package/{dist/Select/Select.css → es/Select/index.css} +26 -19
  270. package/es/Skeleton/Skeleton.d.ts +1 -1
  271. package/es/Skeleton/Skeleton.js +1 -1
  272. package/{dist/Skeleton/Skeleton.css → es/Skeleton/index.css} +7 -3
  273. package/es/Slider/Slider.d.ts +1 -1
  274. package/es/Slider/Slider.js +2 -2
  275. package/es/Slider/index.css +111 -0
  276. package/es/Stack/Stack.d.ts +1 -1
  277. package/es/Stack/Stack.js +1 -1
  278. package/es/Steps/Step.css +14 -14
  279. package/es/Steps/Step.js +1 -1
  280. package/es/Steps/Steps.css +18 -14
  281. package/es/Steps/index.css +199 -0
  282. package/es/Swiper/Swiper.d.ts +1 -1
  283. package/es/Swiper/Swiper.js +1 -1
  284. package/es/Swiper/{Swiper.css → index.css} +6 -2
  285. package/es/Switch/Switch.d.ts +1 -1
  286. package/es/Switch/Switch.js +1 -1
  287. package/es/Switch/Switch.types.d.ts +1 -1
  288. package/es/Switch/{Switch.css → index.css} +46 -35
  289. package/es/TabBar/TabBar.css +12 -8
  290. package/es/TabBar/TabBar.js +1 -1
  291. package/es/TabBar/TabBarContext.d.ts +3 -3
  292. package/es/TabBar/TabBarItem.css +6 -0
  293. package/es/TabBar/TabBarItem.js +2 -2
  294. package/es/TabBar/index.css +59 -0
  295. package/es/TabBar/index.types.d.ts +3 -3
  296. package/es/Tabs/Tab.css +9 -9
  297. package/es/Tabs/Tabs.css +24 -4
  298. package/es/Tabs/Tabs.js +1 -1
  299. package/es/Tabs/index.css +135 -0
  300. package/es/Tag/Tag.css +48 -22
  301. package/es/Tag/Tag.js +2 -2
  302. package/es/Tag/Tag.types.d.ts +4 -4
  303. package/es/Tag/TagGroup.css +13 -9
  304. package/es/Tag/index.css +182 -0
  305. package/es/TextArea/TextArea.d.ts +1 -1
  306. package/es/TextArea/TextArea.js +1 -1
  307. package/es/TextArea/index.css +57 -0
  308. package/es/ThemeProvider/ThemeProvider.js +1 -4
  309. package/es/ThemeProvider/ThemeProvider.types.d.ts +5 -10
  310. package/es/ThemeProvider/utils/constants.d.ts +1 -1
  311. package/es/ThemeProvider/utils/constants.js +4 -1
  312. package/es/ThemeProvider/utils/mountTokens.d.ts +4 -4
  313. package/es/Toast/Toast.d.ts +1 -1
  314. package/es/Toast/Toast.js +5 -5
  315. package/es/Toast/index.css +58 -0
  316. package/es/Tooltip/Tooltip.d.ts +1 -1
  317. package/es/Tooltip/Tooltip.js +1 -1
  318. package/es/Tooltip/index.css +95 -0
  319. package/package.json +13 -5
  320. package/dist/Breadcrumb/Breadcrumb.css +0 -34
  321. package/dist/CitySelector/miniapp.css +0 -4
  322. package/dist/ItemSelector/miniapp.css +0 -4
  323. package/dist/NavBar/NavBar.css +0 -61
  324. package/dist/Progress/Progress.css +0 -24
  325. package/dist/Slider/Slider.css +0 -106
  326. package/dist/TextArea/TextArea.css +0 -53
  327. package/dist/Toast/Toast.css +0 -54
  328. package/dist/Tooltip/Tooltip.css +0 -91
  329. package/es/Breadcrumb/Breadcrumb.css +0 -34
  330. package/es/CitySelector/miniapp.css +0 -4
  331. package/es/ItemSelector/miniapp.css +0 -4
  332. package/es/NavBar/NavBar.css +0 -61
  333. package/es/Progress/Progress.css +0 -24
  334. package/es/Slider/Slider.css +0 -106
  335. package/es/TextArea/TextArea.css +0 -53
  336. package/es/Toast/Toast.css +0 -54
  337. package/es/Tooltip/Tooltip.css +0 -91
  338. /package/dist/Collapse/{Collapse.css → index.css} +0 -0
  339. /package/dist/Drawer/{Drawer.css → index.css} +0 -0
  340. /package/dist/ItemSelector/{ItemSelector.css → index.css} +0 -0
  341. /package/dist/Modal/{Modal.css → index.css} +0 -0
  342. /package/dist/ScrollView/{ScrollView.css → index.css} +0 -0
  343. /package/dist/Stack/{Stack.css → index.css} +0 -0
  344. /package/es/Collapse/{Collapse.css → index.css} +0 -0
  345. /package/es/Drawer/{Drawer.css → index.css} +0 -0
  346. /package/es/ItemSelector/{ItemSelector.css → index.css} +0 -0
  347. /package/es/Modal/{Modal.css → index.css} +0 -0
  348. /package/es/ScrollView/{ScrollView.css → index.css} +0 -0
  349. /package/es/Stack/{Stack.css → index.css} +0 -0
@@ -60,7 +60,7 @@ var import_icons = require("@bifrostui/icons");
60
60
  var import_utils = require("@bifrostui/utils");
61
61
  var import_clsx = __toESM(require("clsx"));
62
62
  var import_react = __toESM(require("react"));
63
- var import_Rating2 = require("./Rating.css");
63
+ var import_index = require("./index.css");
64
64
  const classes = {
65
65
  root: "bui-rating",
66
66
  item: "bui-rating-item",
@@ -72,7 +72,7 @@ const Rating = (0, import_react.forwardRef)((props, ref) => {
72
72
  size = "medium",
73
73
  defaultValue,
74
74
  allowHalf = false,
75
- icon = /* @__PURE__ */ import_react.default.createElement(import_icons.StarFilledIcon, { htmlColor: "#ced1d6" }),
75
+ icon = /* @__PURE__ */ import_react.default.createElement(import_icons.StarFilledIcon, { color: "disabled" }),
76
76
  checkedIcon = /* @__PURE__ */ import_react.default.createElement(import_icons.StarFilledIcon, { color: "warning" }),
77
77
  count = 5,
78
78
  readOnly = false,
@@ -1,3 +1,15 @@
1
+ :root,
2
+ page,
3
+ xhs-page {
4
+ --bui-rating-xsmall-font-size: var(--bui-text-size-5);
5
+ --bui-rating-xsmall-margin-right: 0;
6
+ --bui-rating-small-margin-right: 0.5px;
7
+ --bui-rating-small-font-size: var(--bui-text-size-1);
8
+ --bui-rating-margin-right: 1px;
9
+ --bui-rating-font-size: var(--bui-title-size-3);
10
+ --bui-rating-large-margin-right: 2px;
11
+ --bui-rating-large-font-size: 22px;
12
+ }
1
13
  .bui-rating {
2
14
  --small-margin-right: var(--bui-rating-small-margin-right, 0.5px);
3
15
  --medium-margin-right: var(--bui-rating-medium-margin-right, 1px);
@@ -19,19 +31,20 @@
19
31
  margin-right: 0;
20
32
  }
21
33
  .bui-rating-container-xsmall {
22
- font-size: var(--bui-text-size-5);
34
+ font-size: var(--bui-rating-xsmall-font-size);
35
+ margin-right: var(--bui-rating-xsmall-margin-right);
23
36
  }
24
37
  .bui-rating-container-small {
25
- font-size: var(--bui-text-size-1);
26
- margin-right: var(--small-margin-right);
38
+ font-size: var(--bui-rating-small-font-size);
39
+ margin-right: var(--bui-rating-small-margin-right);
27
40
  }
28
41
  .bui-rating-container-medium {
29
- font-size: var(--bui-title-size-3);
30
- margin-right: var(--medium-margin-right);
42
+ font-size: var(--bui-rating-font-size);
43
+ margin-right: var(--bui-rating-margin-right);
31
44
  }
32
45
  .bui-rating-container-large {
33
- font-size: var(--large-font-size);
34
- margin-right: var(--large-margin-right);
46
+ font-size: var(--bui-rating-large-font-size);
47
+ margin-right: var(--bui-rating-large-margin-right);
35
48
  }
36
49
  .bui-rating-item {
37
50
  display: flex;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import './ScrollView.less';
2
+ import './index.less';
3
3
  import { ScrollViewProps } from './ScrollView.types';
4
4
  declare const ScrollView: React.ForwardRefExoticComponent<Omit<ScrollViewProps<"div", {}>, "ref"> & React.RefAttributes<HTMLDivElement>>;
5
5
  export default ScrollView;
@@ -33,7 +33,7 @@ module.exports = __toCommonJS(ScrollView_exports);
33
33
  var import_utils = require("@bifrostui/utils");
34
34
  var import_clsx = __toESM(require("clsx"));
35
35
  var import_react = __toESM(require("react"));
36
- var import_ScrollView = require("./ScrollView.css");
36
+ var import_index = require("./index.css");
37
37
  function easeOutScroll(from, to, callback) {
38
38
  if (from === to || typeof from !== "number") {
39
39
  return;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import { SelectProps } from './Select.types';
3
- import './Select.less';
3
+ import './index.less';
4
4
  declare const Select: React.ForwardRefExoticComponent<Omit<SelectProps<"div", {}>, "ref"> & React.RefAttributes<HTMLDivElement>>;
5
5
  export default Select;
@@ -68,7 +68,7 @@ var import_Slide = __toESM(require("../Slide"));
68
68
  var import_selectContext = __toESM(require("./selectContext"));
69
69
  var import_Backdrop = __toESM(require("../Backdrop"));
70
70
  var import_Portal = __toESM(require("../Portal"));
71
- var import_Select2 = require("./Select.css");
71
+ var import_index = require("./index.css");
72
72
  const prefixCls = "bui-select";
73
73
  const defaultPlacement = "bottom";
74
74
  const Select = /* @__PURE__ */ import_react.default.forwardRef((props, ref) => {
@@ -186,13 +186,7 @@ const Select = /* @__PURE__ */ import_react.default.forwardRef((props, ref) => {
186
186
  };
187
187
  }
188
188
  }, []);
189
- const defaultIcon = isOpen ? /* @__PURE__ */ import_react.default.createElement(import_icons.CaretUpIcon, { className: `${prefixCls}-selector-icon`, htmlColor: "#9c9ca5" }) : /* @__PURE__ */ import_react.default.createElement(
190
- import_icons.CaretDownIcon,
191
- {
192
- className: `${prefixCls}-selector-icon`,
193
- htmlColor: "#9c9ca5"
194
- }
195
- );
189
+ const defaultIcon = isOpen ? /* @__PURE__ */ import_react.default.createElement(import_icons.CaretUpIcon, { className: `${prefixCls}-selector-icon`, color: "neutral" }) : /* @__PURE__ */ import_react.default.createElement(import_icons.CaretDownIcon, { className: `${prefixCls}-selector-icon`, color: "neutral" });
196
190
  const renderOptions = () => {
197
191
  var _a2;
198
192
  return /* @__PURE__ */ import_react.default.createElement(
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import { SelectOptionProps } from './Select.types';
3
- import './Select.less';
3
+ import './index.less';
4
4
  declare const SelectOption: React.ForwardRefExoticComponent<Omit<SelectOptionProps<"div", {}>, "ref"> & React.RefAttributes<HTMLDivElement>>;
5
5
  export default SelectOption;
@@ -62,7 +62,7 @@ module.exports = __toCommonJS(SelectOption_exports);
62
62
  var import_clsx = __toESM(require("clsx"));
63
63
  var import_react = __toESM(require("react"));
64
64
  var import_selectContext = __toESM(require("./selectContext"));
65
- var import_Select2 = require("./Select.css");
65
+ var import_index = require("./index.css");
66
66
  const prefixCls = "bui-select-option";
67
67
  const SelectOption = /* @__PURE__ */ import_react.default.forwardRef(
68
68
  (props, ref) => {
@@ -1,13 +1,23 @@
1
+ :root,
2
+ page,
3
+ xhs-page {
4
+ --bui-select-height: 32px;
5
+ --bui-select-min-width: 100px;
6
+ --bui-select-font-size: var(--bui-text-size-1);
7
+ --bui-select-selector-container-padding: 0 14px;
8
+ --bui-select-option-main-padding: 3px 0;
9
+ --bui-select-option-padding: 0 14px;
10
+ --bui-select-option-border-radius: 5px;
11
+ --bui-select-option-margin: 0 3px;
12
+ --bui-select-option-height: 32px;
13
+ --bui-select-option-active-bg-color: #fff2f0;
14
+ }
1
15
  .bui-select {
2
- --height: var(--bui-select-height, 27px);
3
- --mini-width: var(--bui-select-min-width, 100px);
4
- --font-size: var(--bui-select-font-size, var(--bui-title-size-3));
5
- --padding: var(--bui-select-selector-container, 0 14px);
6
16
  position: relative;
7
17
  cursor: pointer;
8
- height: var(--height);
9
- min-width: var(--mini-width);
10
- font-size: var(--font-size);
18
+ height: var(--bui-select-height);
19
+ min-width: var(--bui-select-min-width);
20
+ font-size: var(--bui-select-font-size);
11
21
  border-radius: 5px;
12
22
  background-color: var(--bui-color-bg-view);
13
23
  font-family: var(--bui-font-family);
@@ -19,7 +29,7 @@
19
29
  .bui-select-selector-container {
20
30
  display: flex;
21
31
  align-items: center;
22
- padding: var(--padding);
32
+ padding: var(--bui-select-selector-container-padding);
23
33
  height: 100%;
24
34
  }
25
35
  .bui-select-input {
@@ -37,7 +47,7 @@
37
47
  justify-content: space-between;
38
48
  align-items: center;
39
49
  flex: 1;
40
- height: var(--height);
50
+ height: var(--bui-select-height);
41
51
  background-color: transparent;
42
52
  outline: none;
43
53
  border: 0;
@@ -69,29 +79,26 @@
69
79
  }
70
80
  .bui-select-option-main {
71
81
  border-radius: 3px;
72
- padding: var(--bui-select-option-container-padding, 3px 0);
82
+ padding: var(--bui-select-option-main-padding);
73
83
  box-shadow: 0 0 0 2px var(--bui-color-bg-default);
74
84
  overflow: hidden;
75
85
  }
76
86
  .bui-select-option {
77
- --option-padding: var(--bui-select-option-padding, 0 14px);
78
- --option-margin: var(--bui-select-option-margin, 0 3px);
79
- --option-height: var(--bui-select-option-height, 27px);
80
87
  display: flex;
81
88
  align-items: center;
82
- height: var(--option-height);
83
- padding: var(--option-padding);
84
- border-radius: 5px;
85
- margin: var(--option-margin);
89
+ height: var(--bui-select-option-height);
90
+ padding: var(--bui-select-option-padding);
91
+ border-radius: var(--bui-select-option-border-radius);
92
+ margin: var(--bui-select-option-margin);
86
93
  }
87
94
  .bui-select-option:hover {
88
- background-color: var(---bui-select-options-active-bg, #fff2f0);
95
+ background-color: var(--bui-select-option-active-bg-color);
89
96
  color: var(--bui-color-primary);
90
97
  }
91
98
  .bui-select-option-active {
92
99
  font-weight: var(--bui-font-weight-medium);
93
100
  color: var(--bui-color-primary);
94
- background-color: var(---bui-select-options-active-bg, #fff2f0);
101
+ background-color: var(--bui-select-option-active-bg-color);
95
102
  }
96
103
  .bui-select-option-hide {
97
104
  opacity: 0;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import './Skeleton.less';
3
2
  import { SkeletonProps } from './Skeleton.types';
3
+ import './index.less';
4
4
  declare const Skeleton: React.ForwardRefExoticComponent<Omit<SkeletonProps<"div", {}>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
5
5
  export default Skeleton;
@@ -58,7 +58,7 @@ __export(Skeleton_exports, {
58
58
  module.exports = __toCommonJS(Skeleton_exports);
59
59
  var import_clsx = __toESM(require("clsx"));
60
60
  var import_react = __toESM(require("react"));
61
- var import_Skeleton = require("./Skeleton.css");
61
+ var import_index = require("./index.css");
62
62
  const prefixCls = "bui-skeleton";
63
63
  const Skeleton = /* @__PURE__ */ import_react.default.forwardRef(
64
64
  (_a, ref) => {
@@ -1,5 +1,9 @@
1
+ :root,
2
+ page,
3
+ xhs-page {
4
+ --bui-skeleton-height: 1.2em;
5
+ }
1
6
  .bui-skeleton {
2
- --height: var(--bui-skeleton-height, 1.2em);
3
7
  display: block;
4
8
  }
5
9
  .bui-skeleton-animation-wave {
@@ -26,10 +30,10 @@
26
30
  content: "\a0";
27
31
  }
28
32
  .bui-skeleton-rectangular {
29
- height: var(--height);
33
+ height: var(--bui-skeleton-height);
30
34
  }
31
35
  .bui-skeleton-rounded {
32
- height: var(--height);
36
+ height: var(--bui-skeleton-height);
33
37
  border-radius: var(--bui-shape-radius-label);
34
38
  }
35
39
  .bui-skeleton-circular {
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import './Slider.less';
3
2
  import { SliderProps } from './Slider.types';
3
+ import './index.less';
4
4
  declare const Slider: React.ForwardRefExoticComponent<Omit<SliderProps<"div", {}>, "ref"> & React.RefAttributes<HTMLDivElement>>;
5
5
  export default Slider;
@@ -80,8 +80,8 @@ var import_icons = require("@bifrostui/icons");
80
80
  var import_utils = require("@bifrostui/utils");
81
81
  var import_clsx = __toESM(require("clsx"));
82
82
  var import_react = __toESM(require("react"));
83
- var import_Slider = require("./Slider.css");
84
83
  var import_utils2 = require("./utils");
84
+ var import_index = require("./index.css");
85
85
  const classes = {
86
86
  root: "bui-slider",
87
87
  button: "bui-slider-button",
@@ -134,7 +134,7 @@ const Slider = /* @__PURE__ */ import_react.default.forwardRef((props, ref) => {
134
134
  const touchStartLeft = (0, import_react.useRef)();
135
135
  const buttonIndex = (0, import_react.useRef)(0);
136
136
  const beforeMoveValue = (0, import_react.useRef)([0, 0]);
137
- const defaultIcon = /* @__PURE__ */ import_react.default.createElement(import_icons.GripperBarVerticalIcon, { htmlColor: "#2e333e" });
137
+ const defaultIcon = /* @__PURE__ */ import_react.default.createElement(import_icons.GripperBarVerticalIcon, { htmlColor: "var(--bui-color-fg-default)" });
138
138
  const initialRange = (0, import_react.useRef)(
139
139
  value !== void 0 && Array.isArray(value) || defaultValue !== void 0 && Array.isArray(defaultValue)
140
140
  );
@@ -0,0 +1,111 @@
1
+ :root,
2
+ page,
3
+ xhs-page {
4
+ --bui-slider-line-color: var(--bui-color-primary);
5
+ --bui-slider-line-bg-color: var(--bui-color-border-default);
6
+ --bui-slider-width: 100%;
7
+ --bui-slider-height: 2px;
8
+ --bui-slider-padding: 19px 0;
9
+ --bui-slider-button-width: 26px;
10
+ --bui-slider-button-height: 26px;
11
+ --bui-slider-button-font-size: var(--bui-title-size-3);
12
+ --bui-slider-button-box-shadow: #ddd 0 0 10px;
13
+ --bui-slider-button-border-radius: 50%;
14
+ --bui-slider-tooltip-width: 46px;
15
+ --bui-slider-tooltip-height: 24px;
16
+ --bui-slider-tooltip-line-height: 24px;
17
+ --bui-slider-tooltip-border-radius: 24px;
18
+ --bui-slider-tooltip-font-size: var(--bui-text-size-3);
19
+ --bui-slider-tooltip-color: var(--bui-color-white);
20
+ --bui-slider-tooltip-bg-color: var(--bui-slider-line-color);
21
+ }
22
+ .bui-slider {
23
+ position: relative;
24
+ width: var(--bui-slider-width);
25
+ height: var(--bui-slider-height);
26
+ padding: var(--bui-slider-padding);
27
+ box-sizing: border-box;
28
+ font-family: var(--bui-font-family);
29
+ }
30
+ .bui-slider-disabled {
31
+ pointer-events: none;
32
+ opacity: 0.5;
33
+ }
34
+ .bui-slider-line {
35
+ position: absolute;
36
+ top: 50%;
37
+ left: 0;
38
+ height: var(--bui-slider-height);
39
+ transform: translateY(-50%);
40
+ background-color: var(--bui-slider-line-color);
41
+ }
42
+ .bui-slider-rail {
43
+ position: absolute;
44
+ top: 50%;
45
+ left: 0;
46
+ width: 100%;
47
+ height: var(--bui-slider-height);
48
+ transform: translateY(-50%);
49
+ background-color: var(--bui-slider-line-bg-color);
50
+ }
51
+ .bui-slider-button {
52
+ display: flex;
53
+ position: absolute;
54
+ justify-content: center;
55
+ align-items: center;
56
+ width: var(--bui-slider-button-width);
57
+ height: var(--bui-slider-button-height);
58
+ background-color: var(--bui-color-white);
59
+ box-shadow: var(--bui-slider-button-box-shadow);
60
+ border-radius: var(--bui-slider-button-border-radius);
61
+ transform: translate(-50%, -50%);
62
+ font-size: var(--bui-slider-button-font-size);
63
+ cursor: grab;
64
+ }
65
+ .bui-slider-button::after {
66
+ position: absolute;
67
+ content: "";
68
+ top: -10px;
69
+ bottom: -10px;
70
+ left: -10px;
71
+ right: -10px;
72
+ }
73
+ .bui-slider-button-0 {
74
+ left: 0%;
75
+ top: 50%;
76
+ z-index: var(--bui-z-index-affix);
77
+ }
78
+ .bui-slider-button-1 {
79
+ left: 0%;
80
+ top: 50%;
81
+ z-index: var(--bui-z-index-affix);
82
+ }
83
+ .bui-slider-tooltip {
84
+ position: absolute;
85
+ top: -14px;
86
+ width: var(--bui-slider-tooltip-width);
87
+ height: var(--bui-slider-tooltip-height);
88
+ line-height: var(--bui-slider-tooltip-line-height);
89
+ font-size: var(--bui-slider-tooltip-font-size);
90
+ border-radius: var(--bui-slider-tooltip-border-radius);
91
+ color: var(--bui-slider-tooltip-color);
92
+ text-align: center;
93
+ background-color: var(--bui-slider-tooltip-bg-color);
94
+ transform: translate(-50%, -50%);
95
+ z-index: var(--bui-z-index-affix);
96
+ }
97
+ .bui-slider-tooltip::after {
98
+ position: absolute;
99
+ bottom: -10px;
100
+ left: 0;
101
+ right: 0;
102
+ margin: 0 auto;
103
+ content: "";
104
+ width: 0;
105
+ height: 0;
106
+ border: 6px solid transparent;
107
+ border-top: 6px solid var(--bui-slider-tooltip-bg-color);
108
+ }
109
+ .bui-slider-tooltip-hidden {
110
+ display: none;
111
+ }
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import { StackProps } from './Stack.types';
3
- import './Stack.less';
3
+ import './index.less';
4
4
  declare const Stack: React.ForwardRefExoticComponent<Omit<StackProps<"div", {}>, "ref"> & React.RefAttributes<HTMLDivElement>>;
5
5
  export default Stack;
@@ -58,7 +58,7 @@ __export(Stack_exports, {
58
58
  module.exports = __toCommonJS(Stack_exports);
59
59
  var import_clsx = __toESM(require("clsx"));
60
60
  var import_react = __toESM(require("react"));
61
- var import_Stack2 = require("./Stack.css");
61
+ var import_index = require("./index.css");
62
62
  const prefixCls = "bui-stack";
63
63
  const Stack = /* @__PURE__ */ import_react.default.forwardRef((props, ref) => {
64
64
  const _a = props, {
@@ -5,7 +5,7 @@
5
5
  font-family: var(--bui-font-family);
6
6
  }
7
7
  .bui-step-label-horizontal {
8
- line-height: var(--step-label-horizontal-line-height);
8
+ line-height: var(--bui-step-label-horizontal-line-height);
9
9
  }
10
10
  .bui-step:last-child .bui-step-line::after {
11
11
  display: none;
@@ -13,17 +13,17 @@
13
13
  .bui-step-line {
14
14
  position: absolute;
15
15
  top: 0;
16
- width: var(--step-line-width);
17
- height: var(--step-line-height);
16
+ width: var(--bui-step-line-width);
17
+ height: var(--bui-step-line-height);
18
18
  box-sizing: border-box;
19
19
  left: 13px;
20
- padding: var(--step-line-padding);
20
+ padding: var(--bui-step-line-padding);
21
21
  }
22
22
  .bui-step-line::after {
23
23
  display: inline-block;
24
24
  content: "";
25
- width: var(--step-line-width);
26
- border-left-width: var(--step-line-width);
25
+ width: var(--bui-step-line-width);
26
+ border-left-width: var(--bui-step-line-width);
27
27
  border-left-style: dotted;
28
28
  height: calc(100% + 11px);
29
29
  }
@@ -41,14 +41,14 @@
41
41
  }
42
42
  .bui-step-icon {
43
43
  flex-shrink: 0;
44
- width: var(--step-icon-width);
44
+ width: var(--bui-step-icon-width);
45
45
  text-align: center;
46
- margin: var(--step-icon-margin);
47
- font-size: var(--step-icon-font-size);
46
+ margin: var(--bui-step-icon-margin);
47
+ font-size: var(--bui-step-icon-font-size);
48
48
  }
49
49
  .bui-step-icon-active {
50
- width: var(--step-icon-active-width);
51
- height: var(--step-icon-active-height);
50
+ width: var(--bui-step-icon-active-width);
51
+ height: var(--bui-step-icon-active-height);
52
52
  position: relative;
53
53
  background-color: var(--bui-color-primary);
54
54
  border-radius: 50%;
@@ -56,7 +56,7 @@
56
56
  display: inline-block;
57
57
  }
58
58
  .bui-step-content {
59
- padding: var(--step-content-padding);
59
+ padding: var(--bui-step-content-padding);
60
60
  box-sizing: border-box;
61
61
  flex: 1 0 0;
62
62
  overflow: hidden;
@@ -98,7 +98,7 @@
98
98
  width: 100%;
99
99
  }
100
100
  .bui-step-subtitle {
101
- font-size: var(--subtitle-font-size);
101
+ font-size: var(--bui-step-subtitle-font-size);
102
102
  color: var(--bui-color-fg-subtle);
103
103
  width: auto;
104
104
  overflow: hidden;
@@ -128,7 +128,7 @@
128
128
  }
129
129
  .bui-step-horizontal .bui-step-line {
130
130
  display: none;
131
- padding: var(--step-horizontal-line-padding);
131
+ padding: var(--bui-step-horizontal-line-padding);
132
132
  }
133
133
  .bui-step-horizontal .bui-step-icon {
134
134
  margin-right: 0;
@@ -101,7 +101,7 @@ const Step = (0, import_react.forwardRef)(
101
101
  const renderIcon = () => {
102
102
  const icons = {
103
103
  active: /* @__PURE__ */ import_react.default.createElement("div", { className: `${classes.icon}-active` }),
104
- wait: /* @__PURE__ */ import_react.default.createElement(import_icons.CircleOutlinedIcon, { htmlColor: "#ced1d6" }),
104
+ wait: /* @__PURE__ */ import_react.default.createElement(import_icons.CircleOutlinedIcon, { color: "disabled" }),
105
105
  finish: /* @__PURE__ */ import_react.default.createElement(import_icons.SuccessCircleFilledIcon, { color: "primary" }),
106
106
  error: /* @__PURE__ */ import_react.default.createElement(import_icons.ErrorCircleFilledIcon, { color: "primary" })
107
107
  };
@@ -1,19 +1,23 @@
1
+ :root,
2
+ page,
3
+ xhs-page {
4
+ --bui-steps-font-size: var(--bui-title-size-3);
5
+ --bui-step-subtitle-font-size: var(--bui-text-size-2);
6
+ --bui-step-line-padding: 20px 0 3px 0;
7
+ --bui-step-line-width: 1px;
8
+ --bui-step-line-height: 100%;
9
+ --bui-step-label-horizontal-line-height: 1.8;
10
+ --bui-step-icon-width: 28px;
11
+ --bui-step-icon-active-width: 12px;
12
+ --bui-step-icon-active-height: 12px;
13
+ --bui-step-icon-font-size: var(--bui-title-size-4);
14
+ --bui-step-icon-margin: var(--bui-spacing-xs) var(--bui-spacing-xs) 0 0;
15
+ --bui-step-content-padding: 3px 0;
16
+ --bui-step-horizontal-line-padding: 28px 0 6px;
17
+ }
1
18
  .bui-steps {
2
- --font-size: var(--bui-steps-font-size, var(--bui-title-size-3));
3
- --subtitle-font-size: var(--bui-step-subtitle-font-size, var(--bui-text-size-2));
4
- --step-line-padding: var(--bui-step-line-padding, 20px 0 3px 0);
5
- --step-line-width: var(--bui-step-line-width, 1px);
6
- --step-line-height: var(--bui-step-line-height, 100%);
7
- --step-label-horizontal-line-height: var(--bui-step-label-horizontal-line-height, 1.8);
8
- --step-icon-width: var(--bui-step-icon-width, 28px);
9
- --step-icon-active-width: var(--bui-step-icon-active-width, 12px);
10
- --step-icon-active-height: var(--bui-step-icon-active-height, 12px);
11
- --step-icon-font-size: var(--bui-step-icon-font-size, var(--bui-title-size-4));
12
- --step-icon-margin: var(--bui-step-icon-margin, var(--bui-spacing-xs) var(--bui-spacing-xs) 0 0);
13
- --step-content-padding: var(--bui-step-content-padding, 3px 0);
14
- --step-horizontal-line-padding: var(--bui-step-horizontal-line-padding, 28px 0 6px);
15
19
  display: flex;
16
- font-size: var(--font-size);
20
+ font-size: var(--bui-steps-font-size);
17
21
  font-family: var(--bui-font-family);
18
22
  }
19
23
  .bui-steps-vertical {