@bifrostui/react 1.3.1-beta.1 → 1.3.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 (281) hide show
  1. package/dist/ActionSheet/ActionSheet.css +3 -6
  2. package/dist/ActionSheet/ActionSheetItem.css +6 -10
  3. package/dist/Alert/index.css +8 -14
  4. package/dist/Avatar/Avatar.css +9 -13
  5. package/dist/Avatar/AvatarGroup.css +8 -15
  6. package/dist/Backdrop/Backdrop.css +1 -2
  7. package/dist/Badge/Badge.css +17 -27
  8. package/dist/Button/Button.css +17 -26
  9. package/dist/Calendar/Calendar.css +18 -33
  10. package/dist/Calendar/Calendar.d.ts +1 -1
  11. package/dist/Calendar/Calendar.js +17 -38
  12. package/dist/Calendar/Calendar.types.d.ts +0 -21
  13. package/dist/Card/CardFooter.css +1 -2
  14. package/dist/Card/CardHeader.css +1 -3
  15. package/dist/Checkbox/Checkbox.css +5 -7
  16. package/dist/CitySelector/CitySelector.css +15 -29
  17. package/dist/CitySelector/CitySelectorCore.js +16 -25
  18. package/dist/CitySelector/Selector/index.css +4 -4
  19. package/dist/Countdown/Countdown.css +1 -2
  20. package/dist/Dialog/Dialog.d.ts +2 -2
  21. package/dist/Dialog/Dialog.js +8 -20
  22. package/dist/Dialog/Dialog.types.d.ts +1 -12
  23. package/dist/Dialog/FunctionalDialog.js +2 -38
  24. package/dist/Dialog/index.css +18 -27
  25. package/dist/Divider/Divider.css +4 -6
  26. package/dist/IconButton/IconButton.css +7 -9
  27. package/dist/Image/index.css +1 -2
  28. package/dist/Input/Input.css +5 -10
  29. package/dist/List/List.css +0 -3
  30. package/dist/List/ListItem.css +3 -3
  31. package/dist/List/ListItemContent.css +1 -1
  32. package/dist/Loading/Loading.css +2 -4
  33. package/dist/Modal/Modal.miniapp.d.ts +1 -1
  34. package/dist/NavBar/NavBar.css +5 -9
  35. package/dist/Picker/Picker.css +29 -25
  36. package/dist/Picker/Picker.js +11 -31
  37. package/dist/Picker/Picker.types.d.ts +0 -4
  38. package/dist/Picker/PickerPanel.css +8 -8
  39. package/dist/Picker/PickerPanel.js +8 -14
  40. package/dist/Picker/utils.d.ts +0 -16
  41. package/dist/Picker/utils.js +2 -32
  42. package/dist/Portal/Portal.types.d.ts +0 -4
  43. package/dist/Portal/PortalCore.js +1 -8
  44. package/dist/Progress/Progress.css +6 -8
  45. package/dist/Radio/Radio.css +1 -2
  46. package/dist/Rating/Rating.css +4 -8
  47. package/dist/Select/Select.css +10 -21
  48. package/dist/Select/Select.js +1 -1
  49. package/dist/Select/SelectOption.js +0 -3
  50. package/dist/Skeleton/Skeleton.css +2 -3
  51. package/dist/Slider/Slider.css +13 -24
  52. package/dist/Steps/Step.css +11 -11
  53. package/dist/Steps/Steps.css +5 -14
  54. package/dist/Swiper/Swiper.css +1 -2
  55. package/dist/Switch/Switch.css +16 -31
  56. package/dist/TabBar/TabBar.css +3 -7
  57. package/dist/TabBar/TabBarItem.css +1 -0
  58. package/dist/Tabs/Tab.css +6 -2
  59. package/dist/Tabs/Tabs.css +4 -7
  60. package/dist/Tag/Tag.css +10 -7
  61. package/dist/Tag/TagGroup.css +1 -9
  62. package/dist/TextArea/TextArea.css +8 -14
  63. package/dist/Toast/FunctionalToast.js +0 -18
  64. package/dist/Toast/Toast.css +14 -15
  65. package/dist/Toast/Toast.d.ts +2 -2
  66. package/dist/Toast/Toast.js +48 -52
  67. package/dist/Toast/Toast.types.d.ts +1 -15
  68. package/dist/index.d.ts +0 -7
  69. package/dist/index.js +1 -15
  70. package/es/ActionSheet/ActionSheet.css +3 -6
  71. package/es/ActionSheet/ActionSheetItem.css +6 -10
  72. package/es/Alert/index.css +8 -14
  73. package/es/Avatar/Avatar.css +9 -13
  74. package/es/Avatar/AvatarGroup.css +8 -15
  75. package/es/Backdrop/Backdrop.css +1 -2
  76. package/es/Badge/Badge.css +17 -27
  77. package/es/Button/Button.css +17 -26
  78. package/es/Calendar/Calendar.css +18 -33
  79. package/es/Calendar/Calendar.d.ts +1 -1
  80. package/es/Calendar/Calendar.js +17 -38
  81. package/es/Calendar/Calendar.types.d.ts +0 -21
  82. package/es/Card/CardFooter.css +1 -2
  83. package/es/Card/CardHeader.css +1 -3
  84. package/es/Checkbox/Checkbox.css +5 -7
  85. package/es/CitySelector/CitySelector.css +15 -29
  86. package/es/CitySelector/CitySelectorCore.js +16 -25
  87. package/es/CitySelector/Selector/index.css +4 -4
  88. package/es/Countdown/Countdown.css +1 -2
  89. package/es/Dialog/Dialog.d.ts +2 -2
  90. package/es/Dialog/Dialog.js +8 -20
  91. package/es/Dialog/Dialog.types.d.ts +1 -12
  92. package/es/Dialog/FunctionalDialog.js +2 -38
  93. package/es/Dialog/index.css +18 -27
  94. package/es/Divider/Divider.css +4 -6
  95. package/es/IconButton/IconButton.css +7 -9
  96. package/es/Image/index.css +1 -2
  97. package/es/Input/Input.css +5 -10
  98. package/es/List/List.css +0 -3
  99. package/es/List/ListItem.css +3 -3
  100. package/es/List/ListItemContent.css +1 -1
  101. package/es/Loading/Loading.css +2 -4
  102. package/es/Modal/Modal.miniapp.d.ts +1 -1
  103. package/es/NavBar/NavBar.css +5 -9
  104. package/es/Picker/Picker.css +29 -25
  105. package/es/Picker/Picker.js +12 -32
  106. package/es/Picker/Picker.types.d.ts +0 -4
  107. package/es/Picker/PickerPanel.css +8 -8
  108. package/es/Picker/PickerPanel.js +8 -14
  109. package/es/Picker/utils.d.ts +0 -16
  110. package/es/Picker/utils.js +1 -29
  111. package/es/Portal/Portal.types.d.ts +0 -4
  112. package/es/Portal/PortalCore.js +1 -8
  113. package/es/Progress/Progress.css +6 -8
  114. package/es/Radio/Radio.css +1 -2
  115. package/es/Rating/Rating.css +4 -8
  116. package/es/Select/Select.css +10 -21
  117. package/es/Select/Select.js +1 -1
  118. package/es/Select/SelectOption.js +0 -3
  119. package/es/Skeleton/Skeleton.css +2 -3
  120. package/es/Slider/Slider.css +13 -24
  121. package/es/Steps/Step.css +11 -11
  122. package/es/Steps/Steps.css +5 -14
  123. package/es/Swiper/Swiper.css +1 -2
  124. package/es/Switch/Switch.css +16 -31
  125. package/es/TabBar/TabBar.css +3 -7
  126. package/es/TabBar/TabBarItem.css +1 -0
  127. package/es/Tabs/Tab.css +6 -2
  128. package/es/Tabs/Tabs.css +4 -7
  129. package/es/Tag/Tag.css +10 -7
  130. package/es/Tag/TagGroup.css +1 -9
  131. package/es/TextArea/TextArea.css +8 -14
  132. package/es/Toast/FunctionalToast.js +0 -18
  133. package/es/Toast/Toast.css +14 -15
  134. package/es/Toast/Toast.d.ts +2 -2
  135. package/es/Toast/Toast.js +49 -53
  136. package/es/Toast/Toast.types.d.ts +1 -15
  137. package/es/index.d.ts +0 -7
  138. package/es/index.js +0 -7
  139. package/package.json +5 -5
  140. package/dist/Breadcrumb/Breadcrumb.css +0 -34
  141. package/dist/Breadcrumb/Breadcrumb.d.ts +0 -5
  142. package/dist/Breadcrumb/Breadcrumb.js +0 -128
  143. package/dist/Breadcrumb/Breadcrumb.types.d.ts +0 -49
  144. package/dist/Breadcrumb/Breadcrumb.types.js +0 -15
  145. package/dist/Breadcrumb/BreadcrumbItem.d.ts +0 -4
  146. package/dist/Breadcrumb/BreadcrumbItem.js +0 -78
  147. package/dist/Breadcrumb/index.d.ts +0 -4
  148. package/dist/Breadcrumb/index.js +0 -45
  149. package/dist/Collapse/Collapse.css +0 -6
  150. package/dist/Collapse/Collapse.d.ts +0 -5
  151. package/dist/Collapse/Collapse.js +0 -165
  152. package/dist/Collapse/Collapse.types.d.ts +0 -16
  153. package/dist/Collapse/Collapse.types.js +0 -15
  154. package/dist/Collapse/index.d.ts +0 -2
  155. package/dist/Collapse/index.js +0 -41
  156. package/dist/CollapsePanel/CollapsePanel.css +0 -32
  157. package/dist/CollapsePanel/CollapsePanel.d.ts +0 -5
  158. package/dist/CollapsePanel/CollapsePanel.js +0 -159
  159. package/dist/CollapsePanel/CollapsePanel.types.d.ts +0 -64
  160. package/dist/CollapsePanel/CollapsePanel.types.js +0 -15
  161. package/dist/CollapsePanel/CollapsePanelItem.d.ts +0 -4
  162. package/dist/CollapsePanel/CollapsePanelItem.js +0 -112
  163. package/dist/CollapsePanel/index.d.ts +0 -4
  164. package/dist/CollapsePanel/index.js +0 -45
  165. package/dist/Popover/Popover.css +0 -97
  166. package/dist/Popover/Popover.d.ts +0 -5
  167. package/dist/Popover/Popover.js +0 -186
  168. package/dist/Popover/Popover.types.d.ts +0 -59
  169. package/dist/Popover/Popover.types.js +0 -15
  170. package/dist/Popover/index.d.ts +0 -2
  171. package/dist/Popover/index.js +0 -41
  172. package/dist/ThemeProvider/ThemeProvider.d.ts +0 -4
  173. package/dist/ThemeProvider/ThemeProvider.js +0 -91
  174. package/dist/ThemeProvider/ThemeProvider.types.d.ts +0 -127
  175. package/dist/ThemeProvider/ThemeProvider.types.js +0 -27
  176. package/dist/ThemeProvider/hooks/ThemeContext.d.ts +0 -4
  177. package/dist/ThemeProvider/hooks/ThemeContext.js +0 -35
  178. package/dist/ThemeProvider/hooks/createTheme.d.ts +0 -2
  179. package/dist/ThemeProvider/hooks/createTheme.js +0 -55
  180. package/dist/ThemeProvider/hooks/index.d.ts +0 -4
  181. package/dist/ThemeProvider/hooks/index.js +0 -43
  182. package/dist/ThemeProvider/hooks/useTheme.d.ts +0 -1
  183. package/dist/ThemeProvider/hooks/useTheme.js +0 -39
  184. package/dist/ThemeProvider/index.d.ts +0 -4
  185. package/dist/ThemeProvider/index.js +0 -45
  186. package/dist/ThemeProvider/utils/constants.d.ts +0 -38
  187. package/dist/ThemeProvider/utils/constants.js +0 -65
  188. package/dist/ThemeProvider/utils/index.d.ts +0 -2
  189. package/dist/ThemeProvider/utils/index.js +0 -23
  190. package/dist/ThemeProvider/utils/mountTokens.d.ts +0 -26
  191. package/dist/ThemeProvider/utils/mountTokens.js +0 -123
  192. package/dist/Tooltip/Tooltip.css +0 -91
  193. package/dist/Tooltip/Tooltip.d.ts +0 -5
  194. package/dist/Tooltip/Tooltip.js +0 -175
  195. package/dist/Tooltip/Tooltip.types.d.ts +0 -50
  196. package/dist/Tooltip/Tooltip.types.js +0 -15
  197. package/dist/Tooltip/index.d.ts +0 -2
  198. package/dist/Tooltip/index.js +0 -41
  199. package/dist/locales/base.d.ts +0 -40
  200. package/dist/locales/base.js +0 -15
  201. package/dist/locales/en-US.d.ts +0 -3
  202. package/dist/locales/en-US.js +0 -69
  203. package/dist/locales/hooks/useLocaleText.d.ts +0 -3
  204. package/dist/locales/hooks/useLocaleText.js +0 -43
  205. package/dist/locales/index.d.ts +0 -5
  206. package/dist/locales/index.js +0 -49
  207. package/dist/locales/zh-CN.d.ts +0 -3
  208. package/dist/locales/zh-CN.js +0 -51
  209. package/dist/locales/zh-TW.d.ts +0 -3
  210. package/dist/locales/zh-TW.js +0 -51
  211. package/es/Breadcrumb/Breadcrumb.css +0 -34
  212. package/es/Breadcrumb/Breadcrumb.d.ts +0 -5
  213. package/es/Breadcrumb/Breadcrumb.js +0 -101
  214. package/es/Breadcrumb/Breadcrumb.types.d.ts +0 -49
  215. package/es/Breadcrumb/Breadcrumb.types.js +0 -1
  216. package/es/Breadcrumb/BreadcrumbItem.d.ts +0 -4
  217. package/es/Breadcrumb/BreadcrumbItem.js +0 -51
  218. package/es/Breadcrumb/index.d.ts +0 -4
  219. package/es/Breadcrumb/index.js +0 -9
  220. package/es/Collapse/Collapse.css +0 -6
  221. package/es/Collapse/Collapse.d.ts +0 -5
  222. package/es/Collapse/Collapse.js +0 -144
  223. package/es/Collapse/Collapse.types.d.ts +0 -16
  224. package/es/Collapse/Collapse.types.js +0 -1
  225. package/es/Collapse/index.d.ts +0 -2
  226. package/es/Collapse/index.js +0 -6
  227. package/es/CollapsePanel/CollapsePanel.css +0 -32
  228. package/es/CollapsePanel/CollapsePanel.d.ts +0 -5
  229. package/es/CollapsePanel/CollapsePanel.js +0 -132
  230. package/es/CollapsePanel/CollapsePanel.types.d.ts +0 -64
  231. package/es/CollapsePanel/CollapsePanel.types.js +0 -1
  232. package/es/CollapsePanel/CollapsePanelItem.d.ts +0 -4
  233. package/es/CollapsePanel/CollapsePanelItem.js +0 -85
  234. package/es/CollapsePanel/index.d.ts +0 -4
  235. package/es/CollapsePanel/index.js +0 -9
  236. package/es/Popover/Popover.css +0 -97
  237. package/es/Popover/Popover.d.ts +0 -5
  238. package/es/Popover/Popover.js +0 -163
  239. package/es/Popover/Popover.types.d.ts +0 -59
  240. package/es/Popover/Popover.types.js +0 -1
  241. package/es/Popover/index.d.ts +0 -2
  242. package/es/Popover/index.js +0 -6
  243. package/es/ThemeProvider/ThemeProvider.d.ts +0 -4
  244. package/es/ThemeProvider/ThemeProvider.js +0 -62
  245. package/es/ThemeProvider/ThemeProvider.types.d.ts +0 -127
  246. package/es/ThemeProvider/ThemeProvider.types.js +0 -1
  247. package/es/ThemeProvider/hooks/ThemeContext.d.ts +0 -4
  248. package/es/ThemeProvider/hooks/ThemeContext.js +0 -6
  249. package/es/ThemeProvider/hooks/createTheme.d.ts +0 -2
  250. package/es/ThemeProvider/hooks/createTheme.js +0 -38
  251. package/es/ThemeProvider/hooks/index.d.ts +0 -4
  252. package/es/ThemeProvider/hooks/index.js +0 -8
  253. package/es/ThemeProvider/hooks/useTheme.d.ts +0 -1
  254. package/es/ThemeProvider/hooks/useTheme.js +0 -10
  255. package/es/ThemeProvider/index.d.ts +0 -4
  256. package/es/ThemeProvider/index.js +0 -8
  257. package/es/ThemeProvider/utils/constants.d.ts +0 -38
  258. package/es/ThemeProvider/utils/constants.js +0 -40
  259. package/es/ThemeProvider/utils/index.d.ts +0 -2
  260. package/es/ThemeProvider/utils/index.js +0 -2
  261. package/es/ThemeProvider/utils/mountTokens.d.ts +0 -26
  262. package/es/ThemeProvider/utils/mountTokens.js +0 -88
  263. package/es/Tooltip/Tooltip.css +0 -91
  264. package/es/Tooltip/Tooltip.d.ts +0 -5
  265. package/es/Tooltip/Tooltip.js +0 -152
  266. package/es/Tooltip/Tooltip.types.d.ts +0 -50
  267. package/es/Tooltip/Tooltip.types.js +0 -1
  268. package/es/Tooltip/index.d.ts +0 -2
  269. package/es/Tooltip/index.js +0 -6
  270. package/es/locales/base.d.ts +0 -40
  271. package/es/locales/base.js +0 -0
  272. package/es/locales/en-US.d.ts +0 -3
  273. package/es/locales/en-US.js +0 -50
  274. package/es/locales/hooks/useLocaleText.d.ts +0 -3
  275. package/es/locales/hooks/useLocaleText.js +0 -26
  276. package/es/locales/index.d.ts +0 -5
  277. package/es/locales/index.js +0 -11
  278. package/es/locales/zh-CN.d.ts +0 -3
  279. package/es/locales/zh-CN.js +0 -32
  280. package/es/locales/zh-TW.d.ts +0 -3
  281. package/es/locales/zh-TW.js +0 -32
@@ -63,59 +63,55 @@ var import_clsx = __toESM(require("clsx"));
63
63
  var import_react = __toESM(require("react"));
64
64
  var import_icons = require("@bifrostui/icons");
65
65
  var import_Fade = __toESM(require("../Fade"));
66
- var import_ThemeProvider = require("../ThemeProvider");
67
66
  var import_Toast2 = require("./Toast.css");
68
67
  const prefixCls = "bui-toast";
69
- const ToastComponent = /* @__PURE__ */ import_react.default.forwardRef((props, ref) => {
70
- const _a = props, {
71
- className,
72
- style,
73
- open,
74
- type,
75
- icon,
76
- message,
77
- position = "center",
78
- disableClick = false,
79
- theme
80
- } = _a, others = __objRest(_a, [
81
- "className",
82
- "style",
83
- "open",
84
- "type",
85
- "icon",
86
- "message",
87
- "position",
88
- "disableClick",
89
- "theme"
90
- ]);
91
- const themeConfig = (0, import_ThemeProvider.useTheme)(theme);
92
- (0, import_react.useImperativeHandle)(ref, () => {
93
- return { theme: themeConfig };
94
- }, []);
95
- const iconMap = {
96
- fail: /* @__PURE__ */ import_react.default.createElement(import_icons.ErrorCircleFilledBoldIcon, { htmlColor: "#ffffff" }),
97
- loading: /* @__PURE__ */ import_react.default.createElement(import_icons.AccessTimeCircleFilledBoldIcon, { htmlColor: "#ffffff" }),
98
- warning: /* @__PURE__ */ import_react.default.createElement(import_icons.AlertCircleFilledBoldIcon, { htmlColor: "#ffffff" }),
99
- success: /* @__PURE__ */ import_react.default.createElement(import_icons.SuccessCircleFilledBoldIcon, { htmlColor: "#ffffff" })
100
- };
101
- const iconDom = iconMap[type] || icon;
102
- return /* @__PURE__ */ import_react.default.createElement(import_Fade.default, __spreadProps(__spreadValues({}, others), { in: open, appear: false, unmountOnExit: true }), /* @__PURE__ */ import_react.default.createElement(
103
- "div",
104
- {
105
- className: (0, import_clsx.default)(
106
- prefixCls,
107
- `${prefixCls}-${position}`,
108
- {
109
- [`${prefixCls}-icon`]: !!iconDom,
110
- [`${prefixCls}-allow-click`]: !disableClick
111
- },
112
- className
113
- ),
114
- style
115
- },
116
- iconDom,
117
- message
118
- ));
119
- });
68
+ const ToastComponent = /* @__PURE__ */ import_react.default.forwardRef(
69
+ (props, ref) => {
70
+ const _a = props, {
71
+ className,
72
+ style,
73
+ open,
74
+ type,
75
+ icon,
76
+ message,
77
+ position = "center",
78
+ disableClick = false
79
+ } = _a, others = __objRest(_a, [
80
+ "className",
81
+ "style",
82
+ "open",
83
+ "type",
84
+ "icon",
85
+ "message",
86
+ "position",
87
+ "disableClick"
88
+ ]);
89
+ const iconMap = {
90
+ fail: /* @__PURE__ */ import_react.default.createElement(import_icons.ErrorCircleFilledBoldIcon, { htmlColor: "#ffffff" }),
91
+ loading: /* @__PURE__ */ import_react.default.createElement(import_icons.AccessTimeCircleFilledBoldIcon, { htmlColor: "#ffffff" }),
92
+ warning: /* @__PURE__ */ import_react.default.createElement(import_icons.AlertCircleFilledBoldIcon, { htmlColor: "#ffffff" }),
93
+ success: /* @__PURE__ */ import_react.default.createElement(import_icons.SuccessCircleFilledBoldIcon, { htmlColor: "#ffffff" })
94
+ };
95
+ const iconDom = iconMap[type] || icon;
96
+ return /* @__PURE__ */ import_react.default.createElement(import_Fade.default, __spreadProps(__spreadValues({}, others), { in: open, appear: false, unmountOnExit: true }), /* @__PURE__ */ import_react.default.createElement(
97
+ "div",
98
+ {
99
+ className: (0, import_clsx.default)(
100
+ prefixCls,
101
+ `${prefixCls}-${position}`,
102
+ {
103
+ [`${prefixCls}-icon`]: !!iconDom,
104
+ [`${prefixCls}-allow-click`]: !disableClick
105
+ },
106
+ className
107
+ ),
108
+ ref,
109
+ style
110
+ },
111
+ iconDom,
112
+ message
113
+ ));
114
+ }
115
+ );
120
116
  ToastComponent.displayName = "BuiToast";
121
117
  var Toast_default = ToastComponent;
@@ -1,9 +1,5 @@
1
1
  import React from 'react';
2
2
  import { FadeProps } from '../Fade/Fade.types';
3
- import { ThemeProps } from '../ThemeProvider/ThemeProvider.types';
4
- export type ToastRef = {
5
- theme?: ThemeProps;
6
- };
7
3
  /**
8
4
  * 提示类型
9
5
  */
@@ -40,10 +36,6 @@ export interface ToastProps extends FadeProps {
40
36
  * 自定义图标
41
37
  */
42
38
  icon?: React.ReactNode;
43
- /**
44
- * theme 主题定制
45
- */
46
- theme?: ThemeProps;
47
39
  /**
48
40
  * 展示Toast时,页面内容是否可以点击
49
41
  * @default false
@@ -70,7 +62,7 @@ export type ToastReturnType = {
70
62
  /**
71
63
  * Toast Instance
72
64
  */
73
- export interface ToastFunction {
65
+ export interface ToastInstance {
74
66
  (options: ToastOptions): ToastReturnType;
75
67
  /**
76
68
  * 警告提示
@@ -93,9 +85,3 @@ export interface ToastFunction {
93
85
  */
94
86
  clear: () => void;
95
87
  }
96
- export interface ToastInstance extends ToastFunction {
97
- /**
98
- * 获取toast静态方法 & contextHolder
99
- */
100
- useToast: () => [ToastFunction, React.JSX.Element];
101
- }
package/dist/index.d.ts CHANGED
@@ -7,7 +7,6 @@ export * from './Button';
7
7
  export * from './Calendar';
8
8
  export * from './Card';
9
9
  export * from './Checkbox';
10
- export * from './Collapse';
11
10
  export * from './Divider';
12
11
  export * from './Drawer';
13
12
  export * from './Fade';
@@ -16,7 +15,6 @@ export * from './Image';
16
15
  export * from './Input';
17
16
  export * from './List';
18
17
  export * from './Modal';
19
- export * from './Popover';
20
18
  export * from './Portal';
21
19
  export * from './Progress';
22
20
  export * from './Radio';
@@ -34,16 +32,11 @@ export * from './Tabs';
34
32
  export * from './Tag';
35
33
  export * from './TextArea';
36
34
  export * from './Transition';
37
- export * from './Tooltip';
38
35
  export * from './NavBar';
39
36
  export * from './Loading';
40
37
  export * from './TabBar';
41
38
  export * from './Countdown';
42
39
  export * from './CitySelector';
43
40
  export * from './Picker';
44
- export * from './CollapsePanel';
45
- export * from './Breadcrumb';
46
41
  export * from './Toast';
47
42
  export * from './Dialog';
48
- export * from './ThemeProvider';
49
- export * from './locales';
package/dist/index.js CHANGED
@@ -23,7 +23,6 @@ __reExport(src_exports, require("./Button"), module.exports);
23
23
  __reExport(src_exports, require("./Calendar"), module.exports);
24
24
  __reExport(src_exports, require("./Card"), module.exports);
25
25
  __reExport(src_exports, require("./Checkbox"), module.exports);
26
- __reExport(src_exports, require("./Collapse"), module.exports);
27
26
  __reExport(src_exports, require("./Divider"), module.exports);
28
27
  __reExport(src_exports, require("./Drawer"), module.exports);
29
28
  __reExport(src_exports, require("./Fade"), module.exports);
@@ -32,7 +31,6 @@ __reExport(src_exports, require("./Image"), module.exports);
32
31
  __reExport(src_exports, require("./Input"), module.exports);
33
32
  __reExport(src_exports, require("./List"), module.exports);
34
33
  __reExport(src_exports, require("./Modal"), module.exports);
35
- __reExport(src_exports, require("./Popover"), module.exports);
36
34
  __reExport(src_exports, require("./Portal"), module.exports);
37
35
  __reExport(src_exports, require("./Progress"), module.exports);
38
36
  __reExport(src_exports, require("./Radio"), module.exports);
@@ -50,19 +48,14 @@ __reExport(src_exports, require("./Tabs"), module.exports);
50
48
  __reExport(src_exports, require("./Tag"), module.exports);
51
49
  __reExport(src_exports, require("./TextArea"), module.exports);
52
50
  __reExport(src_exports, require("./Transition"), module.exports);
53
- __reExport(src_exports, require("./Tooltip"), module.exports);
54
51
  __reExport(src_exports, require("./NavBar"), module.exports);
55
52
  __reExport(src_exports, require("./Loading"), module.exports);
56
53
  __reExport(src_exports, require("./TabBar"), module.exports);
57
54
  __reExport(src_exports, require("./Countdown"), module.exports);
58
55
  __reExport(src_exports, require("./CitySelector"), module.exports);
59
56
  __reExport(src_exports, require("./Picker"), module.exports);
60
- __reExport(src_exports, require("./CollapsePanel"), module.exports);
61
- __reExport(src_exports, require("./Breadcrumb"), module.exports);
62
57
  __reExport(src_exports, require("./Toast"), module.exports);
63
58
  __reExport(src_exports, require("./Dialog"), module.exports);
64
- __reExport(src_exports, require("./ThemeProvider"), module.exports);
65
- __reExport(src_exports, require("./locales"), module.exports);
66
59
  // Annotate the CommonJS export names for ESM import in node:
67
60
  0 && (module.exports = {
68
61
  ...require("./ActionSheet"),
@@ -74,7 +67,6 @@ __reExport(src_exports, require("./locales"), module.exports);
74
67
  ...require("./Calendar"),
75
68
  ...require("./Card"),
76
69
  ...require("./Checkbox"),
77
- ...require("./Collapse"),
78
70
  ...require("./Divider"),
79
71
  ...require("./Drawer"),
80
72
  ...require("./Fade"),
@@ -83,7 +75,6 @@ __reExport(src_exports, require("./locales"), module.exports);
83
75
  ...require("./Input"),
84
76
  ...require("./List"),
85
77
  ...require("./Modal"),
86
- ...require("./Popover"),
87
78
  ...require("./Portal"),
88
79
  ...require("./Progress"),
89
80
  ...require("./Radio"),
@@ -101,17 +92,12 @@ __reExport(src_exports, require("./locales"), module.exports);
101
92
  ...require("./Tag"),
102
93
  ...require("./TextArea"),
103
94
  ...require("./Transition"),
104
- ...require("./Tooltip"),
105
95
  ...require("./NavBar"),
106
96
  ...require("./Loading"),
107
97
  ...require("./TabBar"),
108
98
  ...require("./Countdown"),
109
99
  ...require("./CitySelector"),
110
100
  ...require("./Picker"),
111
- ...require("./CollapsePanel"),
112
- ...require("./Breadcrumb"),
113
101
  ...require("./Toast"),
114
- ...require("./Dialog"),
115
- ...require("./ThemeProvider"),
116
- ...require("./locales")
102
+ ...require("./Dialog")
117
103
  });
@@ -1,7 +1,4 @@
1
1
  .bui-action-sheet {
2
- --extra-line-height: var(--bui-action-sheet-extra-line-height, 23px);
3
- --extra-padding: var(--bui-action-sheet-extra-padding, var(--bui-spacing-xl));
4
- --extra-magin: var(--bui-action-sheet-extra-magin, 0 var(--bui-spacing-xl));
5
2
  font-family: var(--bui-font-family);
6
3
  }
7
4
  .bui-action-sheet-content {
@@ -20,11 +17,11 @@
20
17
  }
21
18
  .bui-action-sheet-extra {
22
19
  font-size: var(--bui-text-size-1);
23
- line-height: var(--extra-line-height);
24
- padding: var(--extra-padding);
20
+ line-height: 23px;
21
+ padding: var(--bui-spacing-xl);
25
22
  color: var(--bui-color-fg-muted);
26
23
  background: var(--bui-color-bg-view);
27
24
  text-align: center;
28
25
  border-bottom: 1px solid var(--bui-color-border-default);
29
- margin: var(--extra-magin);
26
+ margin: 0 var(--bui-spacing-xl);
30
27
  }
@@ -1,21 +1,17 @@
1
1
  .bui-action-sheet-item {
2
- --padding: var(--bui-action-sheet-item-padding, var(--bui-spacing-xl));
3
- --font-size: var(--bui-action-sheet-item-font-size, var(--bui-title-size-2));
4
- --line-height: var(--bui-action-sheet-item-line-height, 24px);
5
- --color: var(--bui-action-sheet-item-color, var(--bui-color-fg-default));
6
- --margin: var(--bui-action-sheet-item-margin, 0 var(--bui-spacing-xl));
7
- --description-line-height: var(--bui-action-sheet-item-description-line-height, 19px);
2
+ --font-size: var(--bui-title-size-2);
3
+ --color: var(--bui-color-fg-default);
8
4
  font-family: var(--bui-font-family);
9
5
  position: relative;
10
- padding: var(--padding);
6
+ padding: var(--bui-spacing-xl);
11
7
  cursor: pointer;
12
8
  background: var(--bui-color-bg-view);
13
9
  font-size: var(--font-size);
14
10
  text-align: center;
15
- line-height: var(--line-height);
11
+ line-height: 24px;
16
12
  color: var(--color);
17
13
  border-top: 1px solid var(--bui-color-border-default);
18
- margin: var(--margin);
14
+ margin: 0 var(--bui-spacing-xl);
19
15
  }
20
16
  .bui-action-sheet-item:first-child {
21
17
  border-top: none;
@@ -50,6 +46,6 @@
50
46
  }
51
47
  .bui-action-sheet-item-description {
52
48
  font-size: var(--bui-text-size-2);
53
- line-height: var(--description-line-height);
49
+ line-height: 19px;
54
50
  color: var(--bui-color-fg-subtle);
55
51
  }
@@ -1,16 +1,10 @@
1
1
  .bui-alert {
2
- --content-marquee-speed: var(--bui-alert-content-marquee-speed, 10s);
3
- --padding: var(--bui-alert-padding, 8px);
4
- --line-height: var(--bui-alert-line-height, 16px);
5
- --default-icon-font-size: var(--bui-alert-default-icon-font-size, 15px);
6
- --action-margin-left: var(--bui-alert-action-margin-left, 16px);
7
- --icon-margin-right: var(--bui-alert-icon-margin-right, var(--bui-spacing-xs));
8
- --icon-font-size: var(--bui-alert-icon-font-size, var(--bui-title-size-4));
2
+ --bui-alert-marquee-speed: var(--bui-alert-marquee-seed, 10s);
9
3
  display: flex;
10
- padding: var(--padding);
4
+ padding: 8px;
11
5
  border-radius: var(--bui-shape-radius-default);
12
6
  align-items: center;
13
- line-height: var(--line-height);
7
+ line-height: 16px;
14
8
  font-size: var(--bui-text-size-3);
15
9
  font-family: var(--bui-font-family);
16
10
  }
@@ -55,14 +49,14 @@
55
49
  color: var(--bui-color-warning);
56
50
  }
57
51
  .bui-alert-default-icon {
58
- font-size: var(--default-icon-font-size);
52
+ font-size: 15px;
59
53
  }
60
54
  .bui-alert-content {
61
55
  flex-grow: 1;
62
56
  }
63
57
  .bui-alert-action {
64
58
  flex-shrink: 0;
65
- margin-left: var(--action-margin-left);
59
+ margin-left: 16px;
66
60
  word-wrap: keep-all;
67
61
  font-size: var(--bui-text-size-3);
68
62
  cursor: pointer;
@@ -74,9 +68,9 @@
74
68
  .bui-alert-icon {
75
69
  display: flex;
76
70
  align-items: center;
77
- margin-right: var(--icon-margin-right);
71
+ padding-right: 4px;
78
72
  vertical-align: middle;
79
- font-size: var(--icon-font-size);
73
+ font-size: 15px;
80
74
  cursor: pointer;
81
75
  }
82
76
  .bui-alert-marquee {
@@ -86,7 +80,7 @@
86
80
  display: inline-block;
87
81
  padding-left: 100%;
88
82
  white-space: nowrap;
89
- animation: marquee var(--content-marquee-speed) linear infinite both;
83
+ animation: marquee var(--bui-alert-marquee-speed) linear infinite both;
90
84
  }
91
85
  @keyframes marquee {
92
86
  100% {
@@ -1,12 +1,8 @@
1
1
  .bui-avatar {
2
- --large-size: var(--bui-avatar-large-size, 60px);
3
- --medium-size: var(--bui-avatar-medium-size, 42px);
4
- --small-size: var(--bui-avatar-small-size, 30px);
5
- --xsmall-size: var(--bui-avatar-xsmall-size, 24px);
6
2
  display: flex;
7
3
  justify-content: center;
8
4
  align-items: center;
9
- font-size: var(--bui-text-size-3);
5
+ font-size: 12px;
10
6
  background-color: var(--bui-color-bg-default);
11
7
  font-family: var(--bui-font-family);
12
8
  }
@@ -16,20 +12,20 @@
16
12
  text-overflow: ellipsis;
17
13
  }
18
14
  .bui-avatar-large {
19
- width: var(--large-size);
20
- height: var(--large-size);
15
+ width: 60px;
16
+ height: 60px;
21
17
  }
22
18
  .bui-avatar-medium {
23
- width: var(--medium-size);
24
- height: var(--medium-size);
19
+ width: 42px;
20
+ height: 42px;
25
21
  }
26
22
  .bui-avatar-small {
27
- width: var(--small-size);
28
- height: var(--small-size);
23
+ width: 30px;
24
+ height: 30px;
29
25
  }
30
26
  .bui-avatar-xsmall {
31
- width: var(--xsmall-size);
32
- height: var(--xsmall-size);
27
+ width: 24px;
28
+ height: 24px;
33
29
  }
34
30
  .bui-avatar-rounded {
35
31
  border-radius: 50%;
@@ -1,38 +1,31 @@
1
1
  .bui-avatar-group {
2
- --xsmall-margin-left: var(--bui-avatar-group-xsmall-margin-left, -5px);
3
- --small-margin-left: var(--bui-avatar-group-small-margin-left, -9px);
4
- --small-box-shadow: var(--bui-avatar-group-small-box-shadow, 0 0 0 1px var(--bui-color-bg-view));
5
- --medium-margin-left: var(--bui-avatar-group-medium-margin-left, -13px);
6
- --medium-box-shadow: var(--bui-avatar-group-medium-box-shadow, 0 0 0 2px var(--bui-color-bg-view));
7
- --large-margin-left: var(--bui-avatar-group-large-margin-left, -21px);
8
- --large-box-shadow: var(--bui-avatar-group-large-box-shadow, 0 0 0 3px var(--bui-color-bg-view));
9
2
  display: flex;
10
3
  flex-direction: row;
11
4
  font-family: var(--bui-font-family);
12
5
  }
13
6
  .bui-avatar-group-avatar,
14
7
  .bui-avatar-group-extra {
15
- box-shadow: var(--medium-box-shadow);
8
+ box-shadow: 0 0 0 2px var(--bui-color-bg-view);
16
9
  color: var(--bui-color-fg-default);
17
10
  }
18
11
  .bui-avatar-group .bui-avatar-xsmall:not(:first-child) {
19
- margin-left: var(--xsmall-margin-left);
12
+ margin-left: -5px;
20
13
  }
21
14
  .bui-avatar-group .bui-avatar-small {
22
- box-shadow: var(--small-box-shadow);
15
+ box-shadow: 0 0 0 1px var(--bui-color-bg-view);
23
16
  }
24
17
  .bui-avatar-group .bui-avatar-small:not(:first-child) {
25
- margin-left: var(--small-margin-left);
18
+ margin-left: -9px;
26
19
  }
27
20
  .bui-avatar-group .bui-avatar-large {
28
- box-shadow: var(--large-box-shadow);
21
+ box-shadow: 0 0 0 3px var(--bui-color-bg-view);
29
22
  }
30
23
  .bui-avatar-group .bui-avatar-large:not(:first-child) {
31
- margin-left: var(--large-margin-left);
24
+ margin-left: -21px;
32
25
  }
33
26
  .bui-avatar-group .bui-avatar-medium {
34
- box-shadow: var(--medium-box-shadow);
27
+ box-shadow: 0 0 0 2px var(--bui-color-bg-view);
35
28
  }
36
29
  .bui-avatar-group .bui-avatar-medium:not(:first-child) {
37
- margin-left: var(--medium-margin-left);
30
+ margin-left: -13px;
38
31
  }
@@ -1,5 +1,4 @@
1
1
  .bui-backdrop {
2
- --background-color: var(--bui-backdrop-background-color, rgba(0, 0, 0, 0.68));
3
2
  position: fixed;
4
3
  display: flex;
5
4
  align-items: center;
@@ -8,7 +7,7 @@
8
7
  bottom: 0;
9
8
  left: 0;
10
9
  top: 0;
11
- background-color: var(--background-color);
10
+ background-color: rgba(0, 0, 0, 0.68);
12
11
  }
13
12
  .bui-backdrop-invisible {
14
13
  background-color: transparent;
@@ -1,14 +1,4 @@
1
1
  .bui-badge {
2
- --badge-position: var(--bui-badge-position, 14%);
3
- --min-width: var(--bui-badge-min-width, 15px);
4
- --height: var(--bui-badge-height, 15px);
5
- --line-height: var(--bui-badge-line-height, 15px);
6
- --padding: var(--bui-badge-padding, 0 3px);
7
- --border-radius: var(--bui-badge-border-radius, 8px);
8
- --outlined-padding: var(--bui-badge-outlined-padding, 0 2px);
9
- --dot-size: var(--bui-badge-dot-size, 9px);
10
- --bubble-padding: var(--bui-badge-bubble-padding, 0 5px);
11
- --bubble-border-radius: var(--bui-badge-bubble-border-radius, 6px 6px 6px 0);
12
2
  display: inline-block;
13
3
  font-family: var(--bui-font-family);
14
4
  }
@@ -18,18 +8,18 @@
18
8
  .bui-badge-position .bui-badge-contained,
19
9
  .bui-badge-position .bui-badge-outlined {
20
10
  position: absolute;
21
- top: var(--badge-position);
22
- right: var(--badge-position);
11
+ top: 14%;
12
+ right: 14%;
23
13
  transform: scale(1) translate(50%, -50%);
24
14
  }
25
15
  .bui-badge-position .bui-badge-dot {
26
- top: var(--badge-position);
27
- right: var(--badge-position);
16
+ top: 14%;
17
+ right: 14%;
28
18
  transform: scale(1) translate(50%, -50%);
29
19
  }
30
20
  .bui-badge-position .bui-badge-bubble {
31
- top: var(--badge-position);
32
- right: var(--badge-position);
21
+ top: 14%;
22
+ right: 14%;
33
23
  transform: scale(1) translate(50%, -50%);
34
24
  }
35
25
  .bui-badge-contained,
@@ -38,18 +28,18 @@
38
28
  box-sizing: border-box;
39
29
  align-items: center;
40
30
  justify-content: center;
41
- min-width: var(--min-width);
42
- height: var(--height);
43
- line-height: var(--line-height);
44
- padding: var(--padding);
31
+ min-width: 15px;
32
+ height: 15px;
33
+ line-height: 15px;
34
+ padding: 0 3px;
45
35
  font-size: var(--bui-text-size-4);
46
- border-radius: var(--border-radius);
36
+ border-radius: 8px;
47
37
  color: var(--bui-color-bg-view);
48
38
  white-space: nowrap;
49
39
  z-index: 1;
50
40
  }
51
41
  .bui-badge-outlined {
52
- padding: var(--outlined-padding);
42
+ padding: 0 2px;
53
43
  }
54
44
  .bui-badge-primary {
55
45
  background-color: var(--bui-color-primary);
@@ -67,15 +57,15 @@
67
57
  background-color: var(--bui-color-danger);
68
58
  }
69
59
  .bui-badge-dot {
70
- width: var(--dot-size);
60
+ width: 9px;
71
61
  min-width: 0;
72
- height: var(--dot-size);
62
+ height: 9px;
73
63
  padding: 0;
74
64
  border-radius: 100%;
75
65
  }
76
66
  .bui-badge-bubble {
77
- border-radius: var(--bubble-border-radius);
78
- padding: var(--bubble-padding);
67
+ border-radius: 6px 6px 6px 0;
68
+ padding: 0 5px;
79
69
  }
80
70
  .bui-badge-outlined {
81
71
  background: var(--bui-color-bg-view);
@@ -101,5 +91,5 @@
101
91
  color: var(--bui-color-danger);
102
92
  }
103
93
  .bui-badge-outlined.bui-badge-bubble {
104
- border-radius: var(--bubble-border-radius);
94
+ border-radius: 6px 6px 6px 0;
105
95
  }
@@ -1,23 +1,14 @@
1
1
  .bui-btn {
2
- --border-radius: var(--bui-button-border-radius, 100px);
3
2
  --bg-color: var(--bui-button-default-bg-color, var(--bui-color-neutral-5));
3
+ --text-color: var(--bui-button-text-color, var(--bui-color-fg-muted));
4
4
  --border-color: var(--bui-button-border-color, var(--bui-color-neutral-4));
5
- --height: var(--bui-button-height, 27px);
6
- --icon-start-margin-right: var(--bui-button-icon-start-margin-right, var(--bui-spacing-xs));
7
- --icon-start-margin-left: var(--bui-button-icon-start-margin-left, var(--bui-spacing-xs));
8
- --disabled-opacity: var(--bui-button-disabled-opacity, 0.5);
9
- --small-padding: var(--bui-button-small-padding, 0 11px);
10
- --small-height: var(--bui-button-small-height, 24px);
11
- --medium-padding: var(--bui-button-medium-padding, 0 14px);
12
- --large-padding: var(--bui-button-large-padding, 0 14px);
13
- --large-height: var(--bui-button-large-height, 33px);
14
- --full-font-size: var(--bui-button-full-font-size, var(--bui-title-size-4));
15
- --full-height: var(--bui-button-full-height, 42px);
5
+ --border-radius: var(--bui-button-border-radius, 100px);
6
+ --font-weight: var(--bui-button-font-weight, var(--bui-font-weight-medium));
16
7
  border: 1px solid transparent;
17
8
  outline: 0;
18
9
  background-color: transparent;
19
10
  cursor: pointer;
20
- color: var(--bui-color-fg-muted);
11
+ color: var(--text-color);
21
12
  box-sizing: border-box;
22
13
  position: relative;
23
14
  display: inline-flex;
@@ -26,9 +17,9 @@
26
17
  justify-content: center;
27
18
  white-space: nowrap;
28
19
  font-size: var(--bui-text-size-3);
29
- font-weight: var(--bui-font-weight-medium);
20
+ font-weight: var(--font-weight);
30
21
  border-radius: var(--border-radius);
31
- height: var(--height);
22
+ height: 27px;
32
23
  line-height: var(--bui-line-height);
33
24
  font-family: var(--bui-font-family);
34
25
  }
@@ -64,36 +55,36 @@
64
55
  display: inline-flex;
65
56
  align-self: center;
66
57
  flex-shrink: 0;
67
- margin-right: var(--icon-start-margin-right);
58
+ margin-right: var(--bui-spacing-xs);
68
59
  }
69
60
  .bui-btn-icon-end {
70
61
  display: inline-flex;
71
62
  align-self: center;
72
63
  flex-shrink: 0;
73
- margin-left: var(--icon-start-margin-left);
64
+ margin-left: var(--bui-spacing-xs);
74
65
  }
75
66
  .bui-btn-disabled {
76
67
  pointer-events: none;
77
- opacity: var(--disabled-opacity);
68
+ opacity: 0.5;
78
69
  }
79
70
  .bui-btn-small {
80
71
  font-size: var(--bui-text-size-4);
81
- padding: var(--small-padding);
82
- height: var(--small-height);
72
+ padding: 0 11px;
73
+ height: 24px;
83
74
  }
84
75
  .bui-btn-medium {
85
- padding: var(--medium-padding);
86
- height: var(--height);
76
+ padding: 0 14px;
77
+ height: 27px;
87
78
  }
88
79
  .bui-btn-large {
89
80
  font-size: var(--bui-text-size-2);
90
- padding: var(--large-padding);
91
- height: var(--large-height);
81
+ padding: 0 14px;
82
+ height: 33px;
92
83
  }
93
84
  .bui-btn-full {
94
- font-size: var(--full-font-size);
85
+ font-size: var(--bui-title-size-4);
95
86
  width: 100%;
96
- height: var(--full-height);
87
+ height: 42px;
97
88
  }
98
89
  .bui-btn-text.bui-btn-primary {
99
90
  color: var(--bui-color-primary);