@bifrostui/react 1.3.1-beta.1 → 1.3.2

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
@@ -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);
@@ -1,19 +1,4 @@
1
1
  .bui-calendar {
2
- --padding: var(--bui-calendar-padding, 6px 12px 7px);
3
- --week-height: var(--bui-calendar-week-height, 30px);
4
- --handler-height: var(--bui-calendar-handler-height, 28px);
5
- --handler-margin-bottom: var(--bui-calendar-handler-margin-bottom, 7px);
6
- --handler-text-width: var(--bui-calendar-handler-text-width, 80px);
7
- --handler-btn-width: var(--bui-calendar-handler-btn-width, 46px);
8
- --handler-btn-height: var(--bui-calendar-handler-btn-height, 100%);
9
- --handler-btn-icon-font-size: var(--bui-calendar-handler-btn-icon-font-size, 28px);
10
- --day-box-height: var(--bui-calendar-day-box-height, 30px);
11
- --day-box-margin-bottom: var(--bui-calendar-day-box-margin-bottom, 7px);
12
- --day-disabled-color: var(--bui-calendar-day-disabled-color, #9c9ca5);
13
- --middle-color: var(--bui-calendar-middle-color, #000);
14
- --middle-background-color: var(--bui-calendar-middle-background-color, #ffeaf1);
15
- --range-both-ends-color: var(--bui-calendar-range-both-ends-color, #000);
16
- --range-both-ends-background-color: var(--bui-calendar-range-both-ends-background-color, #ffc7da);
17
2
  overflow: hidden;
18
3
  display: flex;
19
4
  flex-direction: column;
@@ -21,11 +6,11 @@
21
6
  position: relative;
22
7
  width: 100%;
23
8
  box-sizing: border-box;
24
- padding: var(--padding);
9
+ padding: 6px 12px 7px;
25
10
  font-family: var(--bui-font-family);
26
11
  }
27
12
  .bui-calendar-week {
28
- height: var(--week-height);
13
+ height: 30px;
29
14
  font-size: var(--bui-text-size-2);
30
15
  font-weight: var(--bui-font-weight-medium);
31
16
  color: var(--bui-color-fg-default);
@@ -44,29 +29,29 @@
44
29
  color: var(--bui-color-primary);
45
30
  }
46
31
  .bui-calendar-handler {
47
- height: var(--handler-height);
32
+ height: 28px;
48
33
  display: flex;
49
34
  align-items: center;
50
35
  justify-content: center;
51
- margin-bottom: var(--handler-margin-bottom);
36
+ margin-bottom: 7px;
52
37
  }
53
38
  .bui-calendar-handler-text {
54
- width: var(--handler-text-width);
39
+ width: 80px;
55
40
  font-size: var(--bui-title-size-3);
56
41
  font-weight: var(--bui-font-weight-medium);
57
42
  text-align: center;
58
43
  }
59
44
  .bui-calendar-handler-btn {
60
45
  font-size: 16px;
61
- height: var(--handler-btn-height);
62
- width: var(--handler-btn-width);
46
+ height: 100%;
47
+ width: 46px;
63
48
  cursor: pointer;
64
49
  display: flex;
65
50
  align-items: center;
66
51
  justify-content: center;
67
52
  }
68
53
  .bui-calendar-handler-btn-icon {
69
- font-size: var(--handler-btn-icon-font-size);
54
+ font-size: 28px;
70
55
  }
71
56
  .bui-calendar-month {
72
57
  display: flex;
@@ -75,8 +60,8 @@
75
60
  }
76
61
  .bui-calendar-day-box {
77
62
  width: 14.28%;
78
- height: var(--day-box-height);
79
- margin-bottom: var(--day-box-margin-bottom);
63
+ height: 30px;
64
+ margin-bottom: 7px;
80
65
  }
81
66
  .bui-calendar-highlight-day .bui-calendar-day {
82
67
  color: var(--bui-color-primary);
@@ -87,34 +72,34 @@
87
72
  display: flex;
88
73
  align-items: center;
89
74
  justify-content: center;
90
- border-radius: var(--bui-shape-radius-default);
75
+ border-radius: 6px;
91
76
  font-size: var(--bui-title-size-4);
92
77
  font-weight: var(--bui-font-weight-medium);
93
78
  color: var(--bui-color-fg-default);
94
79
  cursor: pointer;
95
80
  }
96
81
  .bui-calendar-day.bui-calendar-disabled {
97
- color: var(--day-disabled-color);
82
+ color: #9c9ca5;
98
83
  }
99
84
  .bui-calendar-today {
100
85
  color: var(--bui-color-primary);
101
86
  }
102
87
  .bui-calendar-middle {
103
- color: var(--middle-color);
88
+ color: #000;
104
89
  border-radius: 0;
105
- background-color: var(--middle-background-color);
90
+ background-color: #ffeaf1;
106
91
  }
107
92
  .bui-calendar-start {
108
- color: var(--range-both-ends-color);
109
- background-color: var(--range-both-ends-background-color);
93
+ color: #000;
94
+ background-color: #ffc7da;
110
95
  }
111
96
  .bui-calendar-range {
112
97
  border-top-right-radius: 0;
113
98
  border-bottom-right-radius: 0;
114
99
  }
115
100
  .bui-calendar-end {
116
- color: var(--range-both-ends-color);
117
- background-color: var(--range-both-ends-background-color);
101
+ color: #000;
102
+ background-color: #ffc7da;
118
103
  border-top-left-radius: 0;
119
104
  border-bottom-left-radius: 0;
120
105
  }
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { CalendarProps } from './Calendar.types';
3
2
  import './Calendar.less';
3
+ import { CalendarProps } from './Calendar.types';
4
4
  declare const Calendar: React.ForwardRefExoticComponent<Omit<CalendarProps<"div", {}>, "ref"> & React.RefAttributes<HTMLDivElement>>;
5
5
  export default Calendar;
@@ -65,11 +65,11 @@ var import_clsx = __toESM(require("clsx"));
65
65
  var import_dayjs = __toESM(require("dayjs"));
66
66
  var import_isoWeek = __toESM(require("dayjs/plugin/isoWeek"));
67
67
  var import_react = __toESM(require("react"));
68
+ var import_Calendar = require("./Calendar.css");
68
69
  var import_utils2 = require("./utils");
69
- var import_locales = require("../locales");
70
- var import_Calendar2 = require("./Calendar.css");
71
70
  const Picker = (0, import_react.lazy)(() => import("../Picker"));
72
71
  import_dayjs.default.extend(import_isoWeek.default);
72
+ const SUNDAY_WEEK_DATA = ["\u65E5", "\u4E00", "\u4E8C", "\u4E09", "\u56DB", "\u4E94", "\u516D"];
73
73
  const classes = {
74
74
  root: "bui-calendar",
75
75
  handler: "bui-calendar-handler",
@@ -87,9 +87,6 @@ const Calendar = /* @__PURE__ */ import_react.default.forwardRef(
87
87
  maxDate,
88
88
  mode,
89
89
  hideDaysOutsideCurrentMonth,
90
- headerBarFormat,
91
- headerBarLeftIcon,
92
- headerBarRightIcon,
93
90
  disabledDate,
94
91
  enableSelectYear,
95
92
  highlightDate,
@@ -106,9 +103,6 @@ const Calendar = /* @__PURE__ */ import_react.default.forwardRef(
106
103
  "maxDate",
107
104
  "mode",
108
105
  "hideDaysOutsideCurrentMonth",
109
- "headerBarFormat",
110
- "headerBarLeftIcon",
111
- "headerBarRightIcon",
112
106
  "disabledDate",
113
107
  "enableSelectYear",
114
108
  "highlightDate",
@@ -118,16 +112,6 @@ const Calendar = /* @__PURE__ */ import_react.default.forwardRef(
118
112
  "onYearChange",
119
113
  "onChange"
120
114
  ]);
121
- const { Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday } = (0, import_locales.useLocaleText)("calendar");
122
- const SUNDAY_WEEK_DATA = [
123
- Sunday,
124
- Monday,
125
- Tuesday,
126
- Wednesday,
127
- Thursday,
128
- Friday,
129
- Saturday
130
- ];
131
115
  const isRangeMode = mode === "range";
132
116
  const formattedValue = (0, import_utils2.formatDate)(mode, value, minDate, maxDate);
133
117
  const formattedDefaultValue = (0, import_utils2.formatDate)(
@@ -154,22 +138,6 @@ const Calendar = /* @__PURE__ */ import_react.default.forwardRef(
154
138
  }, [calendarValue]);
155
139
  const isMinMonth = (0, import_dayjs.default)(minDate).isSame(renderMonth, "month");
156
140
  const isMaxMonth = (0, import_dayjs.default)(maxDate).isSame(renderMonth, "month");
157
- const headerBarIcon = {
158
- left: headerBarLeftIcon ? headerBarLeftIcon({ isMinMonth }) : /* @__PURE__ */ import_react.default.createElement(
159
- import_icons.CaretLeftIcon,
160
- {
161
- className: `${classes.handler}-btn-icon`,
162
- htmlColor: isMinMonth && "#cccccc"
163
- }
164
- ),
165
- right: headerBarRightIcon ? headerBarRightIcon({ isMaxMonth }) : /* @__PURE__ */ import_react.default.createElement(
166
- import_icons.CaretRightIcon,
167
- {
168
- className: `${classes.handler}-btn-icon`,
169
- htmlColor: isMaxMonth && "#cccccc"
170
- }
171
- )
172
- };
173
141
  (0, import_utils.useDidMountEffect)(() => {
174
142
  const initMonth = formattedValue === void 0 ? formattedDefaultValue == null ? void 0 : formattedDefaultValue[0] : formattedValue == null ? void 0 : formattedValue[0];
175
143
  setRenderMonth((0, import_dayjs.default)(initMonth || minDate).toDate());
@@ -306,7 +274,7 @@ const Calendar = /* @__PURE__ */ import_react.default.forwardRef(
306
274
  setRenderMonth(month);
307
275
  onMonthChange == null ? void 0 : onMonthChange(e, {
308
276
  type: "prev",
309
- month: (0, import_dayjs.default)(month).format(headerBarFormat)
277
+ month: (0, import_dayjs.default)(month).format("YYYY/MM")
310
278
  });
311
279
  }
312
280
  };
@@ -316,7 +284,7 @@ const Calendar = /* @__PURE__ */ import_react.default.forwardRef(
316
284
  setRenderMonth(month);
317
285
  onMonthChange == null ? void 0 : onMonthChange(e, {
318
286
  type: "next",
319
- month: (0, import_dayjs.default)(month).format(headerBarFormat)
287
+ month: (0, import_dayjs.default)(month).format("YYYY/MM")
320
288
  });
321
289
  }
322
290
  };
@@ -358,7 +326,19 @@ const Calendar = /* @__PURE__ */ import_react.default.forwardRef(
358
326
  }, others), {
359
327
  "data-mode": mode
360
328
  }), data),
361
- /* @__PURE__ */ import_react.default.createElement("div", { className: classes.handler }, /* @__PURE__ */ import_react.default.createElement("div", { onClick: onClickPrev, className: `${classes.handler}-btn` }, headerBarIcon.left), /* @__PURE__ */ import_react.default.createElement("div", { className: `${classes.handler}-text`, onClick: onClickDate }, (0, import_dayjs.default)(renderMonth).format(headerBarFormat)), /* @__PURE__ */ import_react.default.createElement("div", { onClick: onClickNext, className: `${classes.handler}-btn` }, headerBarIcon.right)),
329
+ /* @__PURE__ */ import_react.default.createElement("div", { className: classes.handler }, /* @__PURE__ */ import_react.default.createElement("div", { onClick: onClickPrev, className: `${classes.handler}-btn` }, /* @__PURE__ */ import_react.default.createElement(
330
+ import_icons.CaretLeftIcon,
331
+ {
332
+ className: `${classes.handler}-btn-icon`,
333
+ htmlColor: isMinMonth && "#cccccc"
334
+ }
335
+ )), /* @__PURE__ */ import_react.default.createElement("div", { className: `${classes.handler}-text`, onClick: onClickDate }, (0, import_dayjs.default)(renderMonth).format("YYYY/MM")), /* @__PURE__ */ import_react.default.createElement("div", { onClick: onClickNext, className: `${classes.handler}-btn` }, /* @__PURE__ */ import_react.default.createElement(
336
+ import_icons.CaretRightIcon,
337
+ {
338
+ className: `${classes.handler}-btn-icon`,
339
+ htmlColor: isMaxMonth && "#cccccc"
340
+ }
341
+ ))),
362
342
  /* @__PURE__ */ import_react.default.createElement("div", { className: classes.week }, SUNDAY_WEEK_DATA == null ? void 0 : SUNDAY_WEEK_DATA.map((w) => {
363
343
  return weekRender ? weekRender(w) : /* @__PURE__ */ import_react.default.createElement("div", { key: w, className: `${classes.week}-item` }, w);
364
344
  })),
@@ -378,7 +358,6 @@ const Calendar = /* @__PURE__ */ import_react.default.forwardRef(
378
358
  Calendar.displayName = "BuiCalendar";
379
359
  Calendar.defaultProps = {
380
360
  hideDaysOutsideCurrentMonth: false,
381
- headerBarFormat: "YYYY/MM",
382
361
  enableSelectYear: false,
383
362
  mode: "single",
384
363
  minDate: (0, import_dayjs.default)((0, import_dayjs.default)().format("YYYYMMDD")).add(0, "month").toDate(),