@bifrostui/react 2.0.0-beta.1 → 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.
- package/dist/ActionSheet/ActionSheet.css +16 -6
- package/dist/ActionSheet/ActionSheetItem.css +11 -17
- package/dist/ActionSheet/ActionSheetItem.js +1 -1
- package/dist/ActionSheet/ActionSheetItem.types.d.ts +2 -2
- package/dist/ActionSheet/index.css +89 -0
- package/dist/Alert/Alert.types.d.ts +3 -3
- package/dist/Alert/index.css +18 -14
- package/dist/Avatar/Avatar.css +16 -12
- package/dist/Avatar/AvatarGroup.css +19 -15
- package/dist/Avatar/index.css +93 -0
- package/dist/Backdrop/Backdrop.d.ts +1 -1
- package/dist/Backdrop/Backdrop.js +1 -1
- package/dist/Backdrop/{Backdrop.css → index.css} +6 -2
- package/dist/Badge/Badge.d.ts +1 -1
- package/dist/Badge/Badge.js +1 -1
- package/dist/Badge/Badge.types.d.ts +1 -1
- package/dist/Badge/{Badge.css → index.css} +47 -27
- package/dist/Breadcrumb/Breadcrumb.d.ts +1 -1
- package/dist/Breadcrumb/Breadcrumb.js +1 -1
- package/dist/Breadcrumb/index.css +38 -0
- package/dist/Button/Button.d.ts +1 -1
- package/dist/Button/Button.js +3 -2
- package/{es/Button/Button.css → dist/Button/index.css} +69 -38
- package/dist/Calendar/Calendar.d.ts +1 -1
- package/dist/Calendar/Calendar.js +3 -3
- package/dist/Calendar/{Calendar.css → index.css} +35 -31
- package/dist/Card/Card.css +10 -1
- package/dist/Card/CardContent.css +1 -1
- package/dist/Card/CardFooter.css +2 -2
- package/dist/Card/CardHeader.css +4 -3
- package/dist/Card/CardHeader.js +2 -2
- package/dist/Card/index.css +77 -0
- package/dist/Checkbox/Checkbox.d.ts +1 -1
- package/dist/Checkbox/Checkbox.js +2 -2
- package/dist/Checkbox/CheckboxGroup.d.ts +1 -1
- package/dist/Checkbox/CheckboxGroup.js +1 -1
- package/dist/Checkbox/{Checkbox.css → index.css} +14 -10
- package/dist/CitySelector/CitySelector.miniapp.d.ts +0 -1
- package/dist/CitySelector/CitySelector.miniapp.js +0 -1
- package/dist/CitySelector/CitySelectorCore.d.ts +1 -1
- package/dist/CitySelector/CitySelectorCore.js +1 -1
- package/dist/CitySelector/Selector/index.css +4 -4
- package/{es/CitySelector/CitySelector.css → dist/CitySelector/index.css} +31 -27
- package/dist/Collapse/Collapse.d.ts +1 -1
- package/dist/Collapse/Collapse.js +1 -1
- package/dist/CollapsePanel/CollapsePanel.d.ts +1 -1
- package/dist/CollapsePanel/CollapsePanel.js +1 -1
- package/dist/CollapsePanel/{CollapsePanel.css → index.css} +10 -6
- package/dist/Countdown/Countdown.d.ts +1 -1
- package/dist/Countdown/Countdown.js +1 -1
- package/{es/Countdown/Countdown.css → dist/Countdown/index.css} +12 -8
- package/dist/Dialog/index.css +26 -23
- package/dist/Divider/Divider.d.ts +1 -1
- package/dist/Divider/Divider.js +1 -1
- package/{es/Divider/Divider.css → dist/Divider/index.css} +14 -10
- package/dist/Drawer/Drawer.d.ts +1 -1
- package/dist/Drawer/Drawer.js +1 -1
- package/dist/IconButton/IconButton.d.ts +1 -1
- package/dist/IconButton/IconButton.js +3 -3
- package/dist/IconButton/IconButton.types.d.ts +4 -3
- package/{es/IconButton/IconButton.css → dist/IconButton/index.css} +79 -29
- package/dist/Image/index.css +6 -2
- package/dist/Input/Input.d.ts +1 -1
- package/dist/Input/Input.js +2 -2
- package/dist/Input/{Input.css → index.css} +22 -18
- package/dist/ItemSelector/ItemSelector.miniapp.d.ts +0 -1
- package/dist/ItemSelector/ItemSelector.miniapp.js +0 -1
- package/dist/ItemSelector/ItemSelectorCore.d.ts +1 -1
- package/dist/ItemSelector/ItemSelectorCore.js +1 -1
- package/dist/List/List.css +7 -3
- package/dist/List/ListItem.css +3 -3
- package/dist/List/index.css +80 -0
- package/dist/Loading/Loading.d.ts +1 -1
- package/dist/Loading/Loading.js +1 -1
- package/{es/Loading/Loading.css → dist/Loading/index.css} +10 -6
- package/dist/Modal/Modal.d.ts +1 -1
- package/dist/Modal/Modal.js +1 -1
- package/dist/Modal/Modal.miniapp.d.ts +2 -2
- package/dist/Modal/Modal.miniapp.js +1 -1
- package/dist/NavBar/NavBar.d.ts +1 -1
- package/dist/NavBar/NavBar.js +1 -1
- package/dist/NavBar/index.css +65 -0
- package/dist/Picker/Picker.css +21 -16
- package/dist/Picker/Picker.js +1 -1
- package/dist/Picker/Picker.types.d.ts +2 -2
- package/dist/Picker/PickerPanel.css +8 -8
- package/dist/Picker/PickerPanel.js +33 -22
- package/dist/Picker/index.css +116 -0
- package/dist/Popover/Popover.d.ts +1 -1
- package/dist/Popover/Popover.js +1 -1
- package/{es/Popover/Popover.css → dist/Popover/index.css} +32 -28
- package/dist/Progress/Progress.d.ts +1 -1
- package/dist/Progress/Progress.js +1 -1
- package/dist/Progress/index.css +28 -0
- package/dist/Radio/Radio.d.ts +1 -1
- package/dist/Radio/Radio.js +1 -1
- package/dist/Radio/RadioButtonIcon.js +6 -1
- package/dist/Radio/RadioGroup.d.ts +1 -1
- package/dist/Radio/RadioGroup.js +1 -1
- package/dist/Radio/{Radio.css → index.css} +10 -6
- package/dist/Rating/Rating.d.ts +1 -1
- package/dist/Rating/Rating.js +2 -2
- package/dist/Rating/{Rating.css → index.css} +20 -7
- package/dist/ScrollView/ScrollView.d.ts +1 -1
- package/dist/ScrollView/ScrollView.js +1 -1
- package/dist/Select/Select.d.ts +1 -1
- package/dist/Select/Select.js +2 -8
- package/dist/Select/SelectOption.d.ts +1 -1
- package/dist/Select/SelectOption.js +1 -1
- package/{es/Select/Select.css → dist/Select/index.css} +26 -19
- package/dist/Skeleton/Skeleton.d.ts +1 -1
- package/dist/Skeleton/Skeleton.js +1 -1
- package/{es/Skeleton/Skeleton.css → dist/Skeleton/index.css} +7 -3
- package/dist/Slider/Slider.d.ts +1 -1
- package/dist/Slider/Slider.js +2 -2
- package/dist/Slider/index.css +111 -0
- package/dist/Stack/Stack.d.ts +1 -1
- package/dist/Stack/Stack.js +1 -1
- package/dist/Steps/Step.css +14 -14
- package/dist/Steps/Step.js +1 -1
- package/dist/Steps/Steps.css +18 -14
- package/dist/Steps/index.css +199 -0
- package/dist/Swiper/Swiper.d.ts +1 -1
- package/dist/Swiper/Swiper.js +1 -1
- package/dist/Swiper/{Swiper.css → index.css} +6 -2
- package/dist/Switch/Switch.d.ts +1 -1
- package/dist/Switch/Switch.js +1 -1
- package/dist/Switch/Switch.types.d.ts +1 -1
- package/dist/Switch/{Switch.css → index.css} +46 -35
- package/dist/TabBar/TabBar.css +12 -8
- package/dist/TabBar/TabBar.js +1 -1
- package/dist/TabBar/TabBarContext.d.ts +3 -3
- package/dist/TabBar/TabBarItem.css +6 -0
- package/dist/TabBar/TabBarItem.js +3 -3
- package/dist/TabBar/index.css +59 -0
- package/dist/TabBar/index.types.d.ts +3 -3
- package/dist/Tabs/Tab.css +9 -9
- package/dist/Tabs/Tabs.css +24 -4
- package/dist/Tabs/Tabs.js +1 -1
- package/dist/Tabs/index.css +135 -0
- package/dist/Tag/Tag.css +48 -22
- package/dist/Tag/Tag.js +2 -2
- package/dist/Tag/Tag.types.d.ts +4 -4
- package/dist/Tag/TagGroup.css +13 -9
- package/dist/Tag/index.css +182 -0
- package/dist/TextArea/TextArea.d.ts +1 -1
- package/dist/TextArea/TextArea.js +1 -1
- package/dist/TextArea/index.css +57 -0
- package/dist/ThemeProvider/ThemeProvider.js +1 -4
- package/dist/ThemeProvider/ThemeProvider.types.d.ts +5 -10
- package/dist/ThemeProvider/utils/constants.d.ts +1 -1
- package/dist/ThemeProvider/utils/constants.js +4 -1
- package/dist/ThemeProvider/utils/mountTokens.d.ts +4 -4
- package/dist/Toast/Toast.d.ts +1 -1
- package/dist/Toast/Toast.js +5 -5
- package/dist/Toast/index.css +58 -0
- package/dist/Tooltip/Tooltip.d.ts +1 -1
- package/dist/Tooltip/Tooltip.js +1 -1
- package/dist/Tooltip/index.css +95 -0
- package/es/ActionSheet/ActionSheet.css +16 -6
- package/es/ActionSheet/ActionSheetItem.css +11 -17
- package/es/ActionSheet/ActionSheetItem.js +1 -1
- package/es/ActionSheet/ActionSheetItem.types.d.ts +2 -2
- package/es/ActionSheet/index.css +89 -0
- package/es/Alert/Alert.types.d.ts +3 -3
- package/es/Alert/index.css +18 -14
- package/es/Avatar/Avatar.css +16 -12
- package/es/Avatar/AvatarGroup.css +19 -15
- package/es/Avatar/index.css +93 -0
- package/es/Backdrop/Backdrop.d.ts +1 -1
- package/es/Backdrop/Backdrop.js +1 -1
- package/es/Backdrop/{Backdrop.css → index.css} +6 -2
- package/es/Badge/Badge.d.ts +1 -1
- package/es/Badge/Badge.js +1 -1
- package/es/Badge/Badge.types.d.ts +1 -1
- package/es/Badge/{Badge.css → index.css} +47 -27
- package/es/Breadcrumb/Breadcrumb.d.ts +1 -1
- package/es/Breadcrumb/Breadcrumb.js +1 -1
- package/es/Breadcrumb/index.css +38 -0
- package/es/Button/Button.d.ts +1 -1
- package/es/Button/Button.js +3 -2
- package/{dist/Button/Button.css → es/Button/index.css} +69 -38
- package/es/Calendar/Calendar.d.ts +1 -1
- package/es/Calendar/Calendar.js +3 -3
- package/es/Calendar/{Calendar.css → index.css} +35 -31
- package/es/Card/Card.css +10 -1
- package/es/Card/CardContent.css +1 -1
- package/es/Card/CardFooter.css +2 -2
- package/es/Card/CardHeader.css +4 -3
- package/es/Card/CardHeader.js +2 -2
- package/es/Card/index.css +77 -0
- package/es/Checkbox/Checkbox.d.ts +1 -1
- package/es/Checkbox/Checkbox.js +2 -2
- package/es/Checkbox/CheckboxGroup.d.ts +1 -1
- package/es/Checkbox/CheckboxGroup.js +1 -1
- package/es/Checkbox/{Checkbox.css → index.css} +14 -10
- package/es/CitySelector/CitySelector.miniapp.d.ts +0 -1
- package/es/CitySelector/CitySelector.miniapp.js +0 -1
- package/es/CitySelector/CitySelectorCore.d.ts +1 -1
- package/es/CitySelector/CitySelectorCore.js +1 -1
- package/es/CitySelector/Selector/index.css +4 -4
- package/{dist/CitySelector/CitySelector.css → es/CitySelector/index.css} +31 -27
- package/es/Collapse/Collapse.d.ts +1 -1
- package/es/Collapse/Collapse.js +1 -1
- package/es/CollapsePanel/CollapsePanel.d.ts +1 -1
- package/es/CollapsePanel/CollapsePanel.js +1 -1
- package/es/CollapsePanel/{CollapsePanel.css → index.css} +10 -6
- package/es/Countdown/Countdown.d.ts +1 -1
- package/es/Countdown/Countdown.js +1 -1
- package/{dist/Countdown/Countdown.css → es/Countdown/index.css} +12 -8
- package/es/Dialog/index.css +26 -23
- package/es/Divider/Divider.d.ts +1 -1
- package/es/Divider/Divider.js +1 -1
- package/{dist/Divider/Divider.css → es/Divider/index.css} +14 -10
- package/es/Drawer/Drawer.d.ts +1 -1
- package/es/Drawer/Drawer.js +1 -1
- package/es/IconButton/IconButton.d.ts +1 -1
- package/es/IconButton/IconButton.js +3 -3
- package/es/IconButton/IconButton.types.d.ts +4 -3
- package/{dist/IconButton/IconButton.css → es/IconButton/index.css} +79 -29
- package/es/Image/index.css +6 -2
- package/es/Input/Input.d.ts +1 -1
- package/es/Input/Input.js +2 -2
- package/es/Input/{Input.css → index.css} +22 -18
- package/es/ItemSelector/ItemSelector.miniapp.d.ts +0 -1
- package/es/ItemSelector/ItemSelector.miniapp.js +0 -1
- package/es/ItemSelector/ItemSelectorCore.d.ts +1 -1
- package/es/ItemSelector/ItemSelectorCore.js +1 -1
- package/es/List/List.css +7 -3
- package/es/List/ListItem.css +3 -3
- package/es/List/index.css +80 -0
- package/es/Loading/Loading.d.ts +1 -1
- package/es/Loading/Loading.js +1 -1
- package/{dist/Loading/Loading.css → es/Loading/index.css} +10 -6
- package/es/Modal/Modal.d.ts +1 -1
- package/es/Modal/Modal.js +1 -1
- package/es/Modal/Modal.miniapp.d.ts +2 -2
- package/es/Modal/Modal.miniapp.js +1 -1
- package/es/NavBar/NavBar.d.ts +1 -1
- package/es/NavBar/NavBar.js +1 -1
- package/es/NavBar/index.css +65 -0
- package/es/Picker/Picker.css +21 -16
- package/es/Picker/Picker.js +1 -1
- package/es/Picker/Picker.types.d.ts +2 -2
- package/es/Picker/PickerPanel.css +8 -8
- package/es/Picker/PickerPanel.js +46 -24
- package/es/Picker/index.css +116 -0
- package/es/Popover/Popover.d.ts +1 -1
- package/es/Popover/Popover.js +1 -1
- package/{dist/Popover/Popover.css → es/Popover/index.css} +32 -28
- package/es/Progress/Progress.d.ts +1 -1
- package/es/Progress/Progress.js +1 -1
- package/es/Progress/index.css +28 -0
- package/es/Radio/Radio.d.ts +1 -1
- package/es/Radio/Radio.js +1 -1
- package/es/Radio/RadioButtonIcon.js +6 -1
- package/es/Radio/RadioGroup.d.ts +1 -1
- package/es/Radio/RadioGroup.js +1 -1
- package/es/Radio/{Radio.css → index.css} +10 -6
- package/es/Rating/Rating.d.ts +1 -1
- package/es/Rating/Rating.js +2 -2
- package/es/Rating/{Rating.css → index.css} +20 -7
- package/es/ScrollView/ScrollView.d.ts +1 -1
- package/es/ScrollView/ScrollView.js +1 -1
- package/es/Select/Select.d.ts +1 -1
- package/es/Select/Select.js +2 -8
- package/es/Select/SelectOption.d.ts +1 -1
- package/es/Select/SelectOption.js +1 -1
- package/{dist/Select/Select.css → es/Select/index.css} +26 -19
- package/es/Skeleton/Skeleton.d.ts +1 -1
- package/es/Skeleton/Skeleton.js +1 -1
- package/{dist/Skeleton/Skeleton.css → es/Skeleton/index.css} +7 -3
- package/es/Slider/Slider.d.ts +1 -1
- package/es/Slider/Slider.js +2 -2
- package/es/Slider/index.css +111 -0
- package/es/Stack/Stack.d.ts +1 -1
- package/es/Stack/Stack.js +1 -1
- package/es/Steps/Step.css +14 -14
- package/es/Steps/Step.js +1 -1
- package/es/Steps/Steps.css +18 -14
- package/es/Steps/index.css +199 -0
- package/es/Swiper/Swiper.d.ts +1 -1
- package/es/Swiper/Swiper.js +1 -1
- package/es/Swiper/{Swiper.css → index.css} +6 -2
- package/es/Switch/Switch.d.ts +1 -1
- package/es/Switch/Switch.js +1 -1
- package/es/Switch/Switch.types.d.ts +1 -1
- package/es/Switch/{Switch.css → index.css} +46 -35
- package/es/TabBar/TabBar.css +12 -8
- package/es/TabBar/TabBar.js +1 -1
- package/es/TabBar/TabBarContext.d.ts +3 -3
- package/es/TabBar/TabBarItem.css +6 -0
- package/es/TabBar/TabBarItem.js +2 -2
- package/es/TabBar/index.css +59 -0
- package/es/TabBar/index.types.d.ts +3 -3
- package/es/Tabs/Tab.css +9 -9
- package/es/Tabs/Tabs.css +24 -4
- package/es/Tabs/Tabs.js +1 -1
- package/es/Tabs/index.css +135 -0
- package/es/Tag/Tag.css +48 -22
- package/es/Tag/Tag.js +2 -2
- package/es/Tag/Tag.types.d.ts +4 -4
- package/es/Tag/TagGroup.css +13 -9
- package/es/Tag/index.css +182 -0
- package/es/TextArea/TextArea.d.ts +1 -1
- package/es/TextArea/TextArea.js +1 -1
- package/es/TextArea/index.css +57 -0
- package/es/ThemeProvider/ThemeProvider.js +1 -4
- package/es/ThemeProvider/ThemeProvider.types.d.ts +5 -10
- package/es/ThemeProvider/utils/constants.d.ts +1 -1
- package/es/ThemeProvider/utils/constants.js +4 -1
- package/es/ThemeProvider/utils/mountTokens.d.ts +4 -4
- package/es/Toast/Toast.d.ts +1 -1
- package/es/Toast/Toast.js +5 -5
- package/es/Toast/index.css +58 -0
- package/es/Tooltip/Tooltip.d.ts +1 -1
- package/es/Tooltip/Tooltip.js +1 -1
- package/es/Tooltip/index.css +95 -0
- package/package.json +13 -5
- package/dist/Breadcrumb/Breadcrumb.css +0 -34
- package/dist/CitySelector/miniapp.css +0 -4
- package/dist/ItemSelector/miniapp.css +0 -4
- package/dist/NavBar/NavBar.css +0 -61
- package/dist/Progress/Progress.css +0 -24
- package/dist/Slider/Slider.css +0 -106
- package/dist/TextArea/TextArea.css +0 -53
- package/dist/Toast/Toast.css +0 -54
- package/dist/Tooltip/Tooltip.css +0 -91
- package/es/Breadcrumb/Breadcrumb.css +0 -34
- package/es/CitySelector/miniapp.css +0 -4
- package/es/ItemSelector/miniapp.css +0 -4
- package/es/NavBar/NavBar.css +0 -61
- package/es/Progress/Progress.css +0 -24
- package/es/Slider/Slider.css +0 -106
- package/es/TextArea/TextArea.css +0 -53
- package/es/Toast/Toast.css +0 -54
- package/es/Tooltip/Tooltip.css +0 -91
- /package/dist/Collapse/{Collapse.css → index.css} +0 -0
- /package/dist/Drawer/{Drawer.css → index.css} +0 -0
- /package/dist/ItemSelector/{ItemSelector.css → index.css} +0 -0
- /package/dist/Modal/{Modal.css → index.css} +0 -0
- /package/dist/ScrollView/{ScrollView.css → index.css} +0 -0
- /package/dist/Stack/{Stack.css → index.css} +0 -0
- /package/es/Collapse/{Collapse.css → index.css} +0 -0
- /package/es/Drawer/{Drawer.css → index.css} +0 -0
- /package/es/ItemSelector/{ItemSelector.css → index.css} +0 -0
- /package/es/Modal/{Modal.css → index.css} +0 -0
- /package/es/ScrollView/{ScrollView.css → index.css} +0 -0
- /package/es/Stack/{Stack.css → index.css} +0 -0
package/es/Stack/Stack.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { StackProps } from './Stack.types';
|
|
3
|
-
import './
|
|
3
|
+
import './index.less';
|
|
4
4
|
declare const Stack: React.ForwardRefExoticComponent<Omit<StackProps<"div", {}>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
5
|
export default Stack;
|
package/es/Stack/Stack.js
CHANGED
|
@@ -28,7 +28,7 @@ var __objRest = (source, exclude) => {
|
|
|
28
28
|
};
|
|
29
29
|
import clsx from "clsx";
|
|
30
30
|
import React from "react";
|
|
31
|
-
import "./
|
|
31
|
+
import "./index.css";
|
|
32
32
|
const prefixCls = "bui-stack";
|
|
33
33
|
const Stack = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
34
34
|
const _a = props, {
|
package/es/Steps/Step.css
CHANGED
|
@@ -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;
|
package/es/Steps/Step.js
CHANGED
|
@@ -75,7 +75,7 @@ const Step = forwardRef(
|
|
|
75
75
|
const renderIcon = () => {
|
|
76
76
|
const icons = {
|
|
77
77
|
active: /* @__PURE__ */ React.createElement("div", { className: `${classes.icon}-active` }),
|
|
78
|
-
wait: /* @__PURE__ */ React.createElement(CircleOutlinedIcon, {
|
|
78
|
+
wait: /* @__PURE__ */ React.createElement(CircleOutlinedIcon, { color: "disabled" }),
|
|
79
79
|
finish: /* @__PURE__ */ React.createElement(SuccessCircleFilledIcon, { color: "primary" }),
|
|
80
80
|
error: /* @__PURE__ */ React.createElement(ErrorCircleFilledIcon, { color: "primary" })
|
|
81
81
|
};
|
package/es/Steps/Steps.css
CHANGED
|
@@ -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 {
|
|
@@ -0,0 +1,199 @@
|
|
|
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
|
+
}
|
|
18
|
+
.bui-steps {
|
|
19
|
+
display: flex;
|
|
20
|
+
font-size: var(--bui-steps-font-size);
|
|
21
|
+
font-family: var(--bui-font-family);
|
|
22
|
+
}
|
|
23
|
+
.bui-steps-vertical {
|
|
24
|
+
flex-direction: column;
|
|
25
|
+
}
|
|
26
|
+
.bui-step {
|
|
27
|
+
display: flex;
|
|
28
|
+
position: relative;
|
|
29
|
+
line-height: var(--bui-line-height);
|
|
30
|
+
font-family: var(--bui-font-family);
|
|
31
|
+
}
|
|
32
|
+
.bui-step-label-horizontal {
|
|
33
|
+
line-height: var(--bui-step-label-horizontal-line-height);
|
|
34
|
+
}
|
|
35
|
+
.bui-step:last-child .bui-step-line::after {
|
|
36
|
+
display: none;
|
|
37
|
+
}
|
|
38
|
+
.bui-step-line {
|
|
39
|
+
position: absolute;
|
|
40
|
+
top: 0;
|
|
41
|
+
width: var(--bui-step-line-width);
|
|
42
|
+
height: var(--bui-step-line-height);
|
|
43
|
+
box-sizing: border-box;
|
|
44
|
+
left: 13px;
|
|
45
|
+
padding: var(--bui-step-line-padding);
|
|
46
|
+
}
|
|
47
|
+
.bui-step-line::after {
|
|
48
|
+
display: inline-block;
|
|
49
|
+
content: "";
|
|
50
|
+
width: var(--bui-step-line-width);
|
|
51
|
+
border-left-width: var(--bui-step-line-width);
|
|
52
|
+
border-left-style: dotted;
|
|
53
|
+
height: calc(100% + 11px);
|
|
54
|
+
}
|
|
55
|
+
.bui-step-line-active::after {
|
|
56
|
+
border-left-color: var(--bui-color-primary);
|
|
57
|
+
}
|
|
58
|
+
.bui-step-line-wait::after {
|
|
59
|
+
border-left-color: var(--bui-color-fg-disabled);
|
|
60
|
+
}
|
|
61
|
+
.bui-step-line-finish::after {
|
|
62
|
+
border-left-color: var(--bui-color-primary);
|
|
63
|
+
}
|
|
64
|
+
.bui-step-line-error::after {
|
|
65
|
+
border-left-color: var(--bui-color-primary);
|
|
66
|
+
}
|
|
67
|
+
.bui-step-icon {
|
|
68
|
+
flex-shrink: 0;
|
|
69
|
+
width: var(--bui-step-icon-width);
|
|
70
|
+
text-align: center;
|
|
71
|
+
margin: var(--bui-step-icon-margin);
|
|
72
|
+
font-size: var(--bui-step-icon-font-size);
|
|
73
|
+
}
|
|
74
|
+
.bui-step-icon-active {
|
|
75
|
+
width: var(--bui-step-icon-active-width);
|
|
76
|
+
height: var(--bui-step-icon-active-height);
|
|
77
|
+
position: relative;
|
|
78
|
+
background-color: var(--bui-color-primary);
|
|
79
|
+
border-radius: 50%;
|
|
80
|
+
margin-top: 2px;
|
|
81
|
+
display: inline-block;
|
|
82
|
+
}
|
|
83
|
+
.bui-step-content {
|
|
84
|
+
padding: var(--bui-step-content-padding);
|
|
85
|
+
box-sizing: border-box;
|
|
86
|
+
flex: 1 0 0;
|
|
87
|
+
overflow: hidden;
|
|
88
|
+
}
|
|
89
|
+
.bui-step-title-wrapper {
|
|
90
|
+
width: 100%;
|
|
91
|
+
display: flex;
|
|
92
|
+
align-items: center;
|
|
93
|
+
}
|
|
94
|
+
.bui-step-title-wrapper-vertical {
|
|
95
|
+
flex-direction: column;
|
|
96
|
+
align-items: flex-start;
|
|
97
|
+
}
|
|
98
|
+
.bui-step-title {
|
|
99
|
+
font-size: var(--bui-title-size-4);
|
|
100
|
+
font-weight: var(--bui-font-weight-medium);
|
|
101
|
+
width: auto;
|
|
102
|
+
overflow: hidden;
|
|
103
|
+
text-overflow: ellipsis;
|
|
104
|
+
white-space: nowrap;
|
|
105
|
+
}
|
|
106
|
+
.bui-step-title-active {
|
|
107
|
+
color: var(--bui-color-primary);
|
|
108
|
+
}
|
|
109
|
+
.bui-step-title-wait {
|
|
110
|
+
color: var(--bui-color-fg-subtle);
|
|
111
|
+
}
|
|
112
|
+
.bui-step-title-finish {
|
|
113
|
+
color: var(--bui-color-primary);
|
|
114
|
+
}
|
|
115
|
+
.bui-step-title-error {
|
|
116
|
+
color: var(--bui-color-primary);
|
|
117
|
+
}
|
|
118
|
+
.bui-step-title-horizontal {
|
|
119
|
+
margin-right: 4px;
|
|
120
|
+
max-width: 64%;
|
|
121
|
+
}
|
|
122
|
+
.bui-step-title-vertical {
|
|
123
|
+
width: 100%;
|
|
124
|
+
}
|
|
125
|
+
.bui-step-subtitle {
|
|
126
|
+
font-size: var(--bui-step-subtitle-font-size);
|
|
127
|
+
color: var(--bui-color-fg-subtle);
|
|
128
|
+
width: auto;
|
|
129
|
+
overflow: hidden;
|
|
130
|
+
text-overflow: ellipsis;
|
|
131
|
+
white-space: nowrap;
|
|
132
|
+
}
|
|
133
|
+
.bui-step-subtitle-horizontal {
|
|
134
|
+
flex: 1;
|
|
135
|
+
}
|
|
136
|
+
.bui-step-subtitle-vertical {
|
|
137
|
+
width: 100%;
|
|
138
|
+
}
|
|
139
|
+
.bui-step-desc {
|
|
140
|
+
font-size: var(--bui-text-size-3);
|
|
141
|
+
color: var(--bui-color-fg-subtle);
|
|
142
|
+
margin-right: var(--bui-spacing-lg);
|
|
143
|
+
}
|
|
144
|
+
.bui-step-horizontal {
|
|
145
|
+
flex: 1;
|
|
146
|
+
padding-left: var(--bui-spacing-sm);
|
|
147
|
+
}
|
|
148
|
+
.bui-step-horizontal:first-child {
|
|
149
|
+
padding-left: 0;
|
|
150
|
+
}
|
|
151
|
+
.bui-step-horizontal:last-child .bui-step-title-wrapper::after {
|
|
152
|
+
display: none;
|
|
153
|
+
}
|
|
154
|
+
.bui-step-horizontal .bui-step-line {
|
|
155
|
+
display: none;
|
|
156
|
+
padding: var(--bui-step-horizontal-line-padding);
|
|
157
|
+
}
|
|
158
|
+
.bui-step-horizontal .bui-step-icon {
|
|
159
|
+
margin-right: 0;
|
|
160
|
+
}
|
|
161
|
+
.bui-step-horizontal .bui-step-title-wrapper {
|
|
162
|
+
width: fit-content;
|
|
163
|
+
position: relative;
|
|
164
|
+
}
|
|
165
|
+
.bui-step-horizontal .bui-step-title-wrapper::after {
|
|
166
|
+
position: absolute;
|
|
167
|
+
width: 9999px;
|
|
168
|
+
height: 1px;
|
|
169
|
+
content: "";
|
|
170
|
+
left: 100%;
|
|
171
|
+
top: 0;
|
|
172
|
+
bottom: 0;
|
|
173
|
+
margin: auto 0;
|
|
174
|
+
}
|
|
175
|
+
.bui-step-horizontal .bui-step-title-wrapper-line-active::after {
|
|
176
|
+
background: var(--bui-color-fg-disabled);
|
|
177
|
+
}
|
|
178
|
+
.bui-step-horizontal .bui-step-title-wrapper-line-wait::after {
|
|
179
|
+
background: var(--bui-color-fg-disabled);
|
|
180
|
+
}
|
|
181
|
+
.bui-step-horizontal .bui-step-title-wrapper-line-finish::after {
|
|
182
|
+
background: var(--bui-color-primary);
|
|
183
|
+
}
|
|
184
|
+
.bui-step-horizontal .bui-step-title-wrapper-line-error::after {
|
|
185
|
+
background: var(--bui-color-primary);
|
|
186
|
+
}
|
|
187
|
+
.bui-step-horizontal .bui-step-title {
|
|
188
|
+
padding-right: var(--bui-spacing-sm);
|
|
189
|
+
margin-right: 0;
|
|
190
|
+
max-width: unset;
|
|
191
|
+
}
|
|
192
|
+
.bui-step-horizontal .bui-step-subtitle {
|
|
193
|
+
padding-right: var(--bui-spacing-sm);
|
|
194
|
+
margin-right: 0;
|
|
195
|
+
}
|
|
196
|
+
.bui-step-disabled {
|
|
197
|
+
opacity: 0.5;
|
|
198
|
+
pointer-events: none;
|
|
199
|
+
}
|
package/es/Swiper/Swiper.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import 'swiper/css/autoplay';
|
|
|
4
4
|
import 'swiper/css/pagination';
|
|
5
5
|
import 'swiper/css/effect-fade';
|
|
6
6
|
import { SwiperRef } from 'swiper/react';
|
|
7
|
-
import './Swiper.less';
|
|
8
7
|
import { SwiperProps } from './Swiper.types';
|
|
8
|
+
import './index.less';
|
|
9
9
|
declare const Swiper: React.ForwardRefExoticComponent<Omit<SwiperProps<"div", {}>, "ref"> & React.RefAttributes<SwiperRef>>;
|
|
10
10
|
export default Swiper;
|
package/es/Swiper/Swiper.js
CHANGED
|
@@ -37,7 +37,7 @@ import "swiper/css/autoplay";
|
|
|
37
37
|
import "swiper/css/pagination";
|
|
38
38
|
import "swiper/css/effect-fade";
|
|
39
39
|
import { Swiper as SwiperReact } from "swiper/react";
|
|
40
|
-
import "./
|
|
40
|
+
import "./index.css";
|
|
41
41
|
const Swiper = forwardRef((props, ref) => {
|
|
42
42
|
const _a = props, {
|
|
43
43
|
autoplay = false,
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
+
:root,
|
|
2
|
+
page,
|
|
3
|
+
xhs-page {
|
|
4
|
+
--bui-swiper-height: 150px;
|
|
5
|
+
}
|
|
1
6
|
.bui-swiper {
|
|
2
|
-
--height: var(--bui-swiper-height, 150px);
|
|
3
7
|
font-family: var(--bui-font-family);
|
|
4
8
|
}
|
|
5
9
|
.bui-swiper .swiper-container-wrapper {
|
|
6
|
-
height: var(--height);
|
|
10
|
+
height: var(--bui-swiper-height);
|
|
7
11
|
}
|
|
8
12
|
.bui-swiper .swiper-container {
|
|
9
13
|
height: 100%;
|
package/es/Switch/Switch.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { SwitchProps } from './Switch.types';
|
|
3
|
-
import './
|
|
3
|
+
import './index.less';
|
|
4
4
|
declare const Switch: React.ForwardRefExoticComponent<Omit<SwitchProps<"div", {}>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
5
|
export default Switch;
|
package/es/Switch/Switch.js
CHANGED
|
@@ -32,7 +32,7 @@ var __objRest = (source, exclude) => {
|
|
|
32
32
|
import { useValue } from "@bifrostui/utils";
|
|
33
33
|
import clsx from "clsx";
|
|
34
34
|
import React, { forwardRef } from "react";
|
|
35
|
-
import "./
|
|
35
|
+
import "./index.css";
|
|
36
36
|
const prefixCls = "bui-switch";
|
|
37
37
|
const Switch = forwardRef(
|
|
38
38
|
(_a, ref) => {
|
|
@@ -44,7 +44,7 @@ export type SwitchProps<D extends React.ElementType = 'div', P = {}> = OverrideP
|
|
|
44
44
|
* 颜色 'primary' | 'info' | 'success' | 'warning' | 'danger';
|
|
45
45
|
* @default 'primary'
|
|
46
46
|
*/
|
|
47
|
-
color?: ThemeColor
|
|
47
|
+
color?: Exclude<ThemeColor, 'dark' | 'light' | 'neutral'>;
|
|
48
48
|
/**
|
|
49
49
|
* 变化时的回调函数
|
|
50
50
|
*/
|
|
@@ -1,33 +1,41 @@
|
|
|
1
|
+
:root,
|
|
2
|
+
page,
|
|
3
|
+
xhs-page {
|
|
4
|
+
--bui-switch-bg-color: #ccc;
|
|
5
|
+
--bui-switch-padding: 0;
|
|
6
|
+
--bui-switch-border-radius: 15px;
|
|
7
|
+
--bui-switch-small-width: 24px;
|
|
8
|
+
--bui-switch-small-height: 16px;
|
|
9
|
+
--bui-switch-small-font-size: 9px;
|
|
10
|
+
--bui-switch-controller-small-width: 12px;
|
|
11
|
+
--bui-switch-controller-small-height: 12px;
|
|
12
|
+
--bui-switch-width: 44px;
|
|
13
|
+
--bui-switch-height: 22px;
|
|
14
|
+
--bui-switch-font-size: var(--bui-text-size-3);
|
|
15
|
+
--bui-switch-controller-width: 18px;
|
|
16
|
+
--bui-switch-controller-height: 18px;
|
|
17
|
+
--bui-switch-checked-controller-left: calc(100% - 20px);
|
|
18
|
+
--bui-switch-controller-left: 2px;
|
|
19
|
+
--bui-switch-large-width: 51px;
|
|
20
|
+
--bui-switch-large-height: 30px;
|
|
21
|
+
--bui-switch-large-font-size: var(--bui-text-size-3);
|
|
22
|
+
--bui-switch-controller-large-width: 24px;
|
|
23
|
+
--bui-switch-controller-large-height: 24px;
|
|
24
|
+
}
|
|
1
25
|
.bui-switch {
|
|
2
|
-
--bg-color: var(--bui-switch-bg-color, #ccc);
|
|
3
|
-
--padding: var(--bui-switch-padding, 0);
|
|
4
|
-
--border-radius: var(--bui-switch-border-radius, 15px);
|
|
5
|
-
--small-width: var(--bui-switch-small-width, 24px);
|
|
6
|
-
--small-height: var(--bui-switch-small-height, 16px);
|
|
7
|
-
--small-font-size: var(--bui-switch-small-font-size, 9px);
|
|
8
|
-
--controller-small-width: var(--bui-switch-controller-small-width, 12px);
|
|
9
|
-
--controller-small-height: var(--bui-switch-controller-small-height, 12px);
|
|
10
|
-
--medium-width: var(--bui-switch-medium-width, 44px);
|
|
11
|
-
--medium-height: var(--bui-switch-medium-height, 22px);
|
|
12
|
-
--controller-medium-width: var(--bui-switch-controller-medium-width, 18px);
|
|
13
|
-
--controller-medium-height: var(--bui-switch-controller-medium-height, 18px);
|
|
14
|
-
--large-width: var(--bui-switch-large-width, 51px);
|
|
15
|
-
--large-height: var(--bui-switch-large-height, 30px);
|
|
16
|
-
--controller-large-width: var(--bui-switch-controller-large-width, 24px);
|
|
17
|
-
--controller-large-height: var(--bui-switch-controller-large-height, 24px);
|
|
18
26
|
position: relative;
|
|
19
27
|
display: inline-block;
|
|
20
28
|
box-sizing: border-box;
|
|
21
|
-
padding: var(--padding);
|
|
29
|
+
padding: var(--bui-switch-padding);
|
|
22
30
|
vertical-align: middle;
|
|
23
|
-
border-radius: var(--border-radius);
|
|
24
|
-
background-color: var(--bg-color);
|
|
31
|
+
border-radius: var(--bui-switch-border-radius);
|
|
32
|
+
background-color: var(--bui-switch-bg-color);
|
|
25
33
|
transition: all 0.3s cubic-bezier(0.35, 0, 0.25, 1);
|
|
26
34
|
font-family: var(--bui-font-family);
|
|
27
35
|
}
|
|
28
36
|
.bui-switch::after {
|
|
29
37
|
position: absolute;
|
|
30
|
-
left:
|
|
38
|
+
left: var(--bui-switch-controller-left);
|
|
31
39
|
top: 2px;
|
|
32
40
|
border-radius: 50%;
|
|
33
41
|
background-color: #fff;
|
|
@@ -42,16 +50,16 @@
|
|
|
42
50
|
outline: none;
|
|
43
51
|
}
|
|
44
52
|
.bui-switch-small {
|
|
45
|
-
width: var(--small-width);
|
|
46
|
-
height: var(--small-height);
|
|
53
|
+
width: var(--bui-switch-small-width);
|
|
54
|
+
height: var(--bui-switch-small-height);
|
|
47
55
|
}
|
|
48
56
|
.bui-switch-small .bui-switch-inner {
|
|
49
57
|
left: calc(100% - 10px);
|
|
50
|
-
font-size: var(--font-size
|
|
58
|
+
font-size: var(--bui-switch-small-font-size);
|
|
51
59
|
}
|
|
52
60
|
.bui-switch-small::after {
|
|
53
|
-
width: var(--controller-small-width);
|
|
54
|
-
height: var(--controller-small-height);
|
|
61
|
+
width: var(--bui-switch-controller-small-width);
|
|
62
|
+
height: var(--bui-switch-controller-small-height);
|
|
55
63
|
left: 2px;
|
|
56
64
|
top: 2px;
|
|
57
65
|
}
|
|
@@ -62,29 +70,33 @@
|
|
|
62
70
|
left: 2px;
|
|
63
71
|
}
|
|
64
72
|
.bui-switch-medium {
|
|
65
|
-
width: var(--
|
|
66
|
-
height: var(--
|
|
73
|
+
width: var(--bui-switch-width);
|
|
74
|
+
height: var(--bui-switch-height);
|
|
75
|
+
}
|
|
76
|
+
.bui-switch-medium .bui-switch-inner {
|
|
77
|
+
font-size: var(--bui-switch-font-size);
|
|
67
78
|
}
|
|
68
79
|
.bui-switch-medium::after {
|
|
69
|
-
width: var(--controller-
|
|
70
|
-
height: var(--controller-
|
|
80
|
+
width: var(--bui-switch-controller-width);
|
|
81
|
+
height: var(--bui-switch-controller-height);
|
|
71
82
|
}
|
|
72
83
|
.bui-switch-medium.bui-switch-checked::after {
|
|
73
|
-
left:
|
|
84
|
+
left: var(--bui-switch-checked-controller-left);
|
|
74
85
|
}
|
|
75
86
|
.bui-switch-medium.bui-switch-checked .bui-switch-inner {
|
|
76
87
|
left: var(--bui-spacing-sm);
|
|
77
88
|
}
|
|
78
89
|
.bui-switch-large {
|
|
79
|
-
width: var(--large-width);
|
|
80
|
-
height: var(--large-height);
|
|
90
|
+
width: var(--bui-switch-large-width);
|
|
91
|
+
height: var(--bui-switch-large-height);
|
|
81
92
|
}
|
|
82
93
|
.bui-switch-large .bui-switch-inner {
|
|
83
94
|
left: calc(100% - 22px);
|
|
95
|
+
font-size: var(--bui-switch-large-font-size);
|
|
84
96
|
}
|
|
85
97
|
.bui-switch-large::after {
|
|
86
|
-
width: var(--controller-large-width);
|
|
87
|
-
height: var(--controller-large-height);
|
|
98
|
+
width: var(--bui-switch-controller-large-width);
|
|
99
|
+
height: var(--bui-switch-controller-large-height);
|
|
88
100
|
left: 3px;
|
|
89
101
|
top: 3px;
|
|
90
102
|
}
|
|
@@ -113,7 +125,6 @@
|
|
|
113
125
|
position: absolute;
|
|
114
126
|
left: calc(100% - 20px);
|
|
115
127
|
color: var(--bui-color-white);
|
|
116
|
-
font-size: var(--bui-text-size-3);
|
|
117
128
|
height: 100%;
|
|
118
129
|
display: flex;
|
|
119
130
|
align-items: center;
|
package/es/TabBar/TabBar.css
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
|
+
:root,
|
|
2
|
+
page,
|
|
3
|
+
xhs-page {
|
|
4
|
+
--bui-tab-bar-width: 100%;
|
|
5
|
+
--bui-tab-bar-height: 50px;
|
|
6
|
+
--bui-tab-bar-padding: 6px 0;
|
|
7
|
+
--bui-tab-bar-color: var(--bui-color-fg-default);
|
|
8
|
+
}
|
|
1
9
|
.bui-tab-bar {
|
|
2
|
-
--width: var(--bui-tab-bar-width, 100%);
|
|
3
|
-
--height: var(--bui-tab-bar-height, 50px);
|
|
4
|
-
--padding: var(--bui-tab-bar-padding, 6px 0);
|
|
5
|
-
--bui-tab-bar-color: var(--bui-tab-bar-default-color, var(--bui-color-fg-default));
|
|
6
10
|
display: flex;
|
|
7
|
-
width: var(--width);
|
|
8
|
-
height: var(--height);
|
|
9
|
-
padding: var(--padding);
|
|
10
|
-
background: var(--bui-color-
|
|
11
|
+
width: var(--bui-tab-bar-width);
|
|
12
|
+
height: var(--bui-tab-bar-height);
|
|
13
|
+
padding: var(--bui-tab-bar-padding);
|
|
14
|
+
background: var(--bui-color-bg-view);
|
|
11
15
|
font-family: var(--bui-font-family);
|
|
12
16
|
}
|
package/es/TabBar/TabBar.js
CHANGED
|
@@ -10,12 +10,12 @@ export interface TabBarState {
|
|
|
10
10
|
* 选中文案颜色
|
|
11
11
|
* @default 'primary'
|
|
12
12
|
*/
|
|
13
|
-
activeColor?: ThemeColor | '
|
|
13
|
+
activeColor?: ThemeColor | 'vip';
|
|
14
14
|
/**
|
|
15
15
|
* 默认文案颜色
|
|
16
|
-
* @default '
|
|
16
|
+
* @default 'neutral'
|
|
17
17
|
*/
|
|
18
|
-
color?: ThemeColor | '
|
|
18
|
+
color?: ThemeColor | 'vip';
|
|
19
19
|
/**
|
|
20
20
|
* 变化时回调函数
|
|
21
21
|
*/
|
package/es/TabBar/TabBarItem.css
CHANGED
|
@@ -22,6 +22,12 @@
|
|
|
22
22
|
.bui-tab-bar-item-danger {
|
|
23
23
|
color: var(--bui-color-danger);
|
|
24
24
|
}
|
|
25
|
+
.bui-tab-bar-item-light {
|
|
26
|
+
color: var(--bui-color-fg-default);
|
|
27
|
+
}
|
|
28
|
+
.bui-tab-bar-item-dark {
|
|
29
|
+
color: var(--bui-color-bg-view);
|
|
30
|
+
}
|
|
25
31
|
.bui-tab-bar-item-vip {
|
|
26
32
|
color: var(--bui-color-vip);
|
|
27
33
|
}
|
package/es/TabBar/TabBarItem.js
CHANGED
|
@@ -27,10 +27,10 @@ var __objRest = (source, exclude) => {
|
|
|
27
27
|
return target;
|
|
28
28
|
};
|
|
29
29
|
import React, { useContext } from "react";
|
|
30
|
-
import { Badge } from "@bifrostui/react";
|
|
31
30
|
import clsx from "clsx";
|
|
32
|
-
import "
|
|
31
|
+
import { Badge } from "../Badge";
|
|
33
32
|
import TabBarContext from "./TabBarContext";
|
|
33
|
+
import "./TabBarItem.css";
|
|
34
34
|
const prefixCls = "bui-tab-bar-item";
|
|
35
35
|
const TabBarItem = /* @__PURE__ */ React.forwardRef(
|
|
36
36
|
(props, ref) => {
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
:root,
|
|
2
|
+
page,
|
|
3
|
+
xhs-page {
|
|
4
|
+
--bui-tab-bar-width: 100%;
|
|
5
|
+
--bui-tab-bar-height: 50px;
|
|
6
|
+
--bui-tab-bar-padding: 6px 0;
|
|
7
|
+
--bui-tab-bar-color: var(--bui-color-fg-default);
|
|
8
|
+
}
|
|
9
|
+
.bui-tab-bar {
|
|
10
|
+
display: flex;
|
|
11
|
+
width: var(--bui-tab-bar-width);
|
|
12
|
+
height: var(--bui-tab-bar-height);
|
|
13
|
+
padding: var(--bui-tab-bar-padding);
|
|
14
|
+
background: var(--bui-color-bg-view);
|
|
15
|
+
font-family: var(--bui-font-family);
|
|
16
|
+
}
|
|
17
|
+
.bui-tab-bar-item {
|
|
18
|
+
display: flex;
|
|
19
|
+
align-items: center;
|
|
20
|
+
justify-content: center;
|
|
21
|
+
flex-direction: column;
|
|
22
|
+
flex: 1;
|
|
23
|
+
color: var(--bui-tab-bar-color);
|
|
24
|
+
font-family: var(--bui-font-family);
|
|
25
|
+
}
|
|
26
|
+
.bui-tab-bar-item-primary {
|
|
27
|
+
color: var(--bui-color-primary);
|
|
28
|
+
}
|
|
29
|
+
.bui-tab-bar-item-success {
|
|
30
|
+
color: var(--bui-color-success);
|
|
31
|
+
}
|
|
32
|
+
.bui-tab-bar-item-info {
|
|
33
|
+
color: var(--bui-color-info);
|
|
34
|
+
}
|
|
35
|
+
.bui-tab-bar-item-warning {
|
|
36
|
+
color: var(--bui-color-warning);
|
|
37
|
+
}
|
|
38
|
+
.bui-tab-bar-item-danger {
|
|
39
|
+
color: var(--bui-color-danger);
|
|
40
|
+
}
|
|
41
|
+
.bui-tab-bar-item-light {
|
|
42
|
+
color: var(--bui-color-fg-default);
|
|
43
|
+
}
|
|
44
|
+
.bui-tab-bar-item-dark {
|
|
45
|
+
color: var(--bui-color-bg-view);
|
|
46
|
+
}
|
|
47
|
+
.bui-tab-bar-item-vip {
|
|
48
|
+
color: var(--bui-color-vip);
|
|
49
|
+
}
|
|
50
|
+
.bui-tab-bar-item .bui-badge {
|
|
51
|
+
display: flex;
|
|
52
|
+
flex-direction: column;
|
|
53
|
+
align-items: center;
|
|
54
|
+
justify-content: center;
|
|
55
|
+
}
|
|
56
|
+
.bui-tab-bar-item .bui-badge-position .bui-badge-contained,
|
|
57
|
+
.bui-tab-bar-item .bui-badge-position .bui-badge-outlined {
|
|
58
|
+
top: 0;
|
|
59
|
+
}
|