@bifrostui/react 2.0.0-beta.2 → 2.0.0-beta.5
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
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
:root,
|
|
2
|
+
page,
|
|
3
|
+
xhs-page {
|
|
4
|
+
--bui-avatar-large-size: 60px;
|
|
5
|
+
--bui-avatar-medium-size: 42px;
|
|
6
|
+
--bui-avatar-small-size: 30px;
|
|
7
|
+
--bui-avatar-xsmall-size: 24px;
|
|
8
|
+
}
|
|
9
|
+
.bui-avatar {
|
|
10
|
+
display: flex;
|
|
11
|
+
justify-content: center;
|
|
12
|
+
align-items: center;
|
|
13
|
+
font-size: var(--bui-text-size-3);
|
|
14
|
+
background-color: var(--bui-color-bg-default);
|
|
15
|
+
font-family: var(--bui-font-family);
|
|
16
|
+
}
|
|
17
|
+
.bui-avatar-children {
|
|
18
|
+
white-space: nowrap;
|
|
19
|
+
overflow: hidden;
|
|
20
|
+
text-overflow: ellipsis;
|
|
21
|
+
}
|
|
22
|
+
.bui-avatar-large {
|
|
23
|
+
width: var(--bui-avatar-large-size);
|
|
24
|
+
height: var(--bui-avatar-large-size);
|
|
25
|
+
}
|
|
26
|
+
.bui-avatar-medium {
|
|
27
|
+
width: var(--bui-avatar-medium-size);
|
|
28
|
+
height: var(--bui-avatar-medium-size);
|
|
29
|
+
}
|
|
30
|
+
.bui-avatar-small {
|
|
31
|
+
width: var(--bui-avatar-small-size);
|
|
32
|
+
height: var(--bui-avatar-small-size);
|
|
33
|
+
}
|
|
34
|
+
.bui-avatar-xsmall {
|
|
35
|
+
width: var(--bui-avatar-xsmall-size);
|
|
36
|
+
height: var(--bui-avatar-xsmall-size);
|
|
37
|
+
}
|
|
38
|
+
.bui-avatar-rounded {
|
|
39
|
+
border-radius: 50%;
|
|
40
|
+
}
|
|
41
|
+
.bui-avatar-rounded .bui-avatar-img {
|
|
42
|
+
width: 100%;
|
|
43
|
+
height: 100%;
|
|
44
|
+
border-radius: 50%;
|
|
45
|
+
}
|
|
46
|
+
.bui-avatar-square {
|
|
47
|
+
border-radius: var(--bui-shape-radius-poster);
|
|
48
|
+
}
|
|
49
|
+
.bui-avatar-square .bui-avatar-img {
|
|
50
|
+
border-radius: var(--bui-shape-radius-poster);
|
|
51
|
+
}
|
|
52
|
+
:root,
|
|
53
|
+
page,
|
|
54
|
+
xhs-page {
|
|
55
|
+
--bui-avatar-group-xsmall-margin-left: -5px;
|
|
56
|
+
--bui-avatar-group-small-margin-left: -9px;
|
|
57
|
+
--bui-avatar-group-small-box-shadow: 0 0 0 1px var(--bui-color-bg-view);
|
|
58
|
+
--bui-avatar-group-medium-margin-left: -13px;
|
|
59
|
+
--bui-avatar-group-medium-box-shadow: 0 0 0 2px var(--bui-color-bg-view);
|
|
60
|
+
--bui-avatar-group-large-margin-left: -21px;
|
|
61
|
+
--bui-avatar-group-large-box-shadow: 0 0 0 3px var(--bui-color-bg-view);
|
|
62
|
+
}
|
|
63
|
+
.bui-avatar-group {
|
|
64
|
+
display: flex;
|
|
65
|
+
flex-direction: row;
|
|
66
|
+
font-family: var(--bui-font-family);
|
|
67
|
+
}
|
|
68
|
+
.bui-avatar-group-avatar,
|
|
69
|
+
.bui-avatar-group-extra {
|
|
70
|
+
box-shadow: var(--bui-avatar-group-medium-box-shadow);
|
|
71
|
+
color: var(--bui-color-fg-default);
|
|
72
|
+
}
|
|
73
|
+
.bui-avatar-group .bui-avatar-xsmall:not(:first-child) {
|
|
74
|
+
margin-left: var(--bui-avatar-group-xsmall-margin-left);
|
|
75
|
+
}
|
|
76
|
+
.bui-avatar-group .bui-avatar-small {
|
|
77
|
+
box-shadow: var(--bui-avatar-group-small-box-shadow);
|
|
78
|
+
}
|
|
79
|
+
.bui-avatar-group .bui-avatar-small:not(:first-child) {
|
|
80
|
+
margin-left: var(--bui-avatar-group-small-margin-left);
|
|
81
|
+
}
|
|
82
|
+
.bui-avatar-group .bui-avatar-large {
|
|
83
|
+
box-shadow: var(--bui-avatar-group-large-box-shadow);
|
|
84
|
+
}
|
|
85
|
+
.bui-avatar-group .bui-avatar-large:not(:first-child) {
|
|
86
|
+
margin-left: var(--bui-avatar-group-large-margin-left);
|
|
87
|
+
}
|
|
88
|
+
.bui-avatar-group .bui-avatar-medium {
|
|
89
|
+
box-shadow: var(--bui-avatar-group-medium-box-shadow);
|
|
90
|
+
}
|
|
91
|
+
.bui-avatar-group .bui-avatar-medium:not(:first-child) {
|
|
92
|
+
margin-left: var(--bui-avatar-group-medium-margin-left);
|
|
93
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import './Backdrop.less';
|
|
3
2
|
import { BackdropProps } from './Backdrop.types';
|
|
3
|
+
import './index.less';
|
|
4
4
|
declare const Backdrop: React.ForwardRefExoticComponent<Omit<BackdropProps<"div", {}>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
5
|
export default Backdrop;
|
package/es/Backdrop/Backdrop.js
CHANGED
|
@@ -29,7 +29,7 @@ var __objRest = (source, exclude) => {
|
|
|
29
29
|
import clsx from "clsx";
|
|
30
30
|
import React from "react";
|
|
31
31
|
import Fade from "../Fade";
|
|
32
|
-
import "./
|
|
32
|
+
import "./index.css";
|
|
33
33
|
const prefixCls = "bui-backdrop";
|
|
34
34
|
const Backdrop = /* @__PURE__ */ React.forwardRef(
|
|
35
35
|
(props, ref) => {
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
+
:root,
|
|
2
|
+
page,
|
|
3
|
+
xhs-page {
|
|
4
|
+
--bui-backdrop-background-color: rgba(0, 0, 0, 0.68);
|
|
5
|
+
}
|
|
1
6
|
.bui-backdrop {
|
|
2
|
-
--background-color: var(--bui-backdrop-background-color, rgba(0, 0, 0, 0.68));
|
|
3
7
|
position: fixed;
|
|
4
8
|
display: flex;
|
|
5
9
|
align-items: center;
|
|
@@ -8,7 +12,7 @@
|
|
|
8
12
|
bottom: 0;
|
|
9
13
|
left: 0;
|
|
10
14
|
top: 0;
|
|
11
|
-
background-color: var(--background-color);
|
|
15
|
+
background-color: var(--bui-backdrop-background-color);
|
|
12
16
|
}
|
|
13
17
|
.bui-backdrop-invisible {
|
|
14
18
|
background-color: transparent;
|
package/es/Badge/Badge.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { BadgeProps } from './Badge.types';
|
|
3
|
-
import './
|
|
3
|
+
import './index.less';
|
|
4
4
|
declare const Badge: React.ForwardRefExoticComponent<Omit<BadgeProps<"div", {}>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
5
|
export default Badge;
|
package/es/Badge/Badge.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-badge";
|
|
33
33
|
const Badge = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
34
34
|
const _a = props, {
|
|
@@ -1,14 +1,18 @@
|
|
|
1
|
+
:root,
|
|
2
|
+
page,
|
|
3
|
+
xhs-page {
|
|
4
|
+
--bui-badge-position: 14%;
|
|
5
|
+
--bui-badge-min-width: 15px;
|
|
6
|
+
--bui-badge-height: 15px;
|
|
7
|
+
--bui-badge-line-height: 15px;
|
|
8
|
+
--bui-badge-padding: 0 3px;
|
|
9
|
+
--bui-badge-border-radius: 8px;
|
|
10
|
+
--bui-badge-outlined-padding: 0 2px;
|
|
11
|
+
--bui-badge-dot-size: 9px;
|
|
12
|
+
--bui-badge-bubble-padding: 0 5px;
|
|
13
|
+
--bui-badge-bubble-border-radius: 6px 6px 6px 0;
|
|
14
|
+
}
|
|
1
15
|
.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
16
|
display: inline-block;
|
|
13
17
|
font-family: var(--bui-font-family);
|
|
14
18
|
}
|
|
@@ -18,18 +22,18 @@
|
|
|
18
22
|
.bui-badge-position .bui-badge-contained,
|
|
19
23
|
.bui-badge-position .bui-badge-outlined {
|
|
20
24
|
position: absolute;
|
|
21
|
-
top: var(--badge-position);
|
|
22
|
-
right: var(--badge-position);
|
|
25
|
+
top: var(--bui-badge-position);
|
|
26
|
+
right: var(--bui-badge-position);
|
|
23
27
|
transform: scale(1) translate(50%, -50%);
|
|
24
28
|
}
|
|
25
29
|
.bui-badge-position .bui-badge-dot {
|
|
26
|
-
top: var(--badge-position);
|
|
27
|
-
right: var(--badge-position);
|
|
30
|
+
top: var(--bui-badge-position);
|
|
31
|
+
right: var(--bui-badge-position);
|
|
28
32
|
transform: scale(1) translate(50%, -50%);
|
|
29
33
|
}
|
|
30
34
|
.bui-badge-position .bui-badge-bubble {
|
|
31
|
-
top: var(--badge-position);
|
|
32
|
-
right: var(--badge-position);
|
|
35
|
+
top: var(--bui-badge-position);
|
|
36
|
+
right: var(--bui-badge-position);
|
|
33
37
|
transform: scale(1) translate(50%, -50%);
|
|
34
38
|
}
|
|
35
39
|
.bui-badge-contained,
|
|
@@ -38,18 +42,18 @@
|
|
|
38
42
|
box-sizing: border-box;
|
|
39
43
|
align-items: center;
|
|
40
44
|
justify-content: center;
|
|
41
|
-
min-width: var(--min-width);
|
|
42
|
-
height: var(--height);
|
|
43
|
-
line-height: var(--line-height);
|
|
44
|
-
padding: var(--padding);
|
|
45
|
+
min-width: var(--bui-badge-min-width);
|
|
46
|
+
height: var(--bui-badge-height);
|
|
47
|
+
line-height: var(--bui-badge-line-height);
|
|
48
|
+
padding: var(--bui-badge-padding);
|
|
45
49
|
font-size: var(--bui-text-size-4);
|
|
46
|
-
border-radius: var(--border-radius);
|
|
50
|
+
border-radius: var(--bui-badge-border-radius);
|
|
47
51
|
color: var(--bui-color-bg-view);
|
|
48
52
|
white-space: nowrap;
|
|
49
53
|
z-index: 1;
|
|
50
54
|
}
|
|
51
55
|
.bui-badge-outlined {
|
|
52
|
-
padding: var(--outlined-padding);
|
|
56
|
+
padding: var(--bui-badge-outlined-padding);
|
|
53
57
|
}
|
|
54
58
|
.bui-badge-primary {
|
|
55
59
|
background-color: var(--bui-color-primary);
|
|
@@ -66,16 +70,23 @@
|
|
|
66
70
|
.bui-badge-danger {
|
|
67
71
|
background-color: var(--bui-color-danger);
|
|
68
72
|
}
|
|
73
|
+
.bui-badge-light {
|
|
74
|
+
color: var(--bui-color-fg-default);
|
|
75
|
+
background-color: var(--bui-color-bg-view);
|
|
76
|
+
}
|
|
77
|
+
.bui-badge-dark {
|
|
78
|
+
background-color: var(--bui-color-fg-default);
|
|
79
|
+
}
|
|
69
80
|
.bui-badge-dot {
|
|
70
|
-
width: var(--dot-size);
|
|
81
|
+
width: var(--bui-badge-dot-size);
|
|
71
82
|
min-width: 0;
|
|
72
|
-
height: var(--dot-size);
|
|
83
|
+
height: var(--bui-badge-dot-size);
|
|
73
84
|
padding: 0;
|
|
74
85
|
border-radius: 100%;
|
|
75
86
|
}
|
|
76
87
|
.bui-badge-bubble {
|
|
77
|
-
border-radius: var(--bubble-border-radius);
|
|
78
|
-
padding: var(--bubble-padding);
|
|
88
|
+
border-radius: var(--bui-badge-bubble-border-radius);
|
|
89
|
+
padding: var(--bui-badge-bubble-padding);
|
|
79
90
|
}
|
|
80
91
|
.bui-badge-outlined {
|
|
81
92
|
background: var(--bui-color-bg-view);
|
|
@@ -100,6 +111,15 @@
|
|
|
100
111
|
border: 1px solid var(--bui-color-danger);
|
|
101
112
|
color: var(--bui-color-danger);
|
|
102
113
|
}
|
|
114
|
+
.bui-badge-outlined.bui-badge-light {
|
|
115
|
+
background: var(--bui-color-bg-default);
|
|
116
|
+
border: 1px solid var(--bui-color-bg-view);
|
|
117
|
+
color: var(--bui-color-bg-view);
|
|
118
|
+
}
|
|
119
|
+
.bui-badge-outlined.bui-badge-dark {
|
|
120
|
+
border: 1px solid var(--bui-color-fg-default);
|
|
121
|
+
color: var(--bui-color-fg-default);
|
|
122
|
+
}
|
|
103
123
|
.bui-badge-outlined.bui-badge-bubble {
|
|
104
|
-
border-radius: var(--bubble-border-radius);
|
|
124
|
+
border-radius: var(--bui-badge-bubble-border-radius);
|
|
105
125
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { BreadcrumbProps } from './Breadcrumb.types';
|
|
3
|
-
import './
|
|
3
|
+
import './index.less';
|
|
4
4
|
declare const Breadcrumb: React.ForwardRefExoticComponent<Omit<BreadcrumbProps<"nav", {}>, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
5
5
|
export default Breadcrumb;
|
|
@@ -29,7 +29,7 @@ var __objRest = (source, exclude) => {
|
|
|
29
29
|
import React from "react";
|
|
30
30
|
import clsx from "clsx";
|
|
31
31
|
import BreadcrumbItem from "./BreadcrumbItem";
|
|
32
|
-
import "./
|
|
32
|
+
import "./index.css";
|
|
33
33
|
const prefixCls = "bui-breadcrumb";
|
|
34
34
|
const Breadcrumb = /* @__PURE__ */ React.forwardRef(
|
|
35
35
|
(props, ref) => {
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
:root,
|
|
2
|
+
page,
|
|
3
|
+
xhs-page {
|
|
4
|
+
--bui-breadcrumb-margin: 0;
|
|
5
|
+
--bui-breadcrumb-padding: 0;
|
|
6
|
+
--bui-breadcrumb-color: rgba(0, 0, 0, 0.45);
|
|
7
|
+
--bui-breadcrumb-item-separator-margin: 0 8px;
|
|
8
|
+
--bui-breadcrumb-last-item-color: rgba(0, 0, 0, 0.88);
|
|
9
|
+
}
|
|
10
|
+
.bui-breadcrumb {
|
|
11
|
+
margin: var(--bui-breadcrumb-margin);
|
|
12
|
+
padding: var(--bui-breadcrumb-padding);
|
|
13
|
+
color: var(--bui-breadcrumb-color);
|
|
14
|
+
list-style: none;
|
|
15
|
+
font-size: var(--bui-text-size-1);
|
|
16
|
+
line-height: var(--bui-line-height);
|
|
17
|
+
}
|
|
18
|
+
.bui-breadcrumb-list {
|
|
19
|
+
display: flex;
|
|
20
|
+
flex-wrap: wrap;
|
|
21
|
+
margin: var(--bui-breadcrumb-margin);
|
|
22
|
+
padding: var(--bui-breadcrumb-padding);
|
|
23
|
+
list-style: none;
|
|
24
|
+
}
|
|
25
|
+
.bui-breadcrumb-list a {
|
|
26
|
+
color: var(--bui-breadcrumb-color);
|
|
27
|
+
text-decoration: none;
|
|
28
|
+
cursor: pointer;
|
|
29
|
+
}
|
|
30
|
+
.bui-breadcrumb-list li:last-child {
|
|
31
|
+
color: var(--bui-breadcrumb-last-item-color);
|
|
32
|
+
}
|
|
33
|
+
.bui-breadcrumb-item {
|
|
34
|
+
cursor: pointer;
|
|
35
|
+
}
|
|
36
|
+
.bui-breadcrumb-item-separator {
|
|
37
|
+
margin: var(--bui-breadcrumb-item-separator-margin);
|
|
38
|
+
}
|
package/es/Button/Button.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ButtonProps } from './Button.types';
|
|
3
|
-
import './
|
|
3
|
+
import './index.less';
|
|
4
4
|
declare const Button: React.ForwardRefExoticComponent<Omit<ButtonProps<"button", {}>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
5
5
|
export default Button;
|
package/es/Button/Button.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-btn";
|
|
33
33
|
const ButtonIcon = ({ children, iconPosition }) => {
|
|
34
34
|
return /* @__PURE__ */ React.createElement("span", { className: `${prefixCls}-icon-${iconPosition}` }, children);
|
|
@@ -68,7 +68,8 @@ const Button = /* @__PURE__ */ React.forwardRef(
|
|
|
68
68
|
},
|
|
69
69
|
className
|
|
70
70
|
),
|
|
71
|
-
ref
|
|
71
|
+
ref,
|
|
72
|
+
disabled
|
|
72
73
|
}, others),
|
|
73
74
|
startIcon && /* @__PURE__ */ React.createElement(ButtonIcon, { iconPosition: "start" }, startIcon),
|
|
74
75
|
children,
|
|
@@ -1,3 +1,28 @@
|
|
|
1
|
+
:root,
|
|
2
|
+
page,
|
|
3
|
+
xhs-page {
|
|
4
|
+
--bui-btn-font-size: var(--bui-text-size-3);
|
|
5
|
+
--bui-btn-font-weight: var(--bui-font-weight-medium);
|
|
6
|
+
--bui-btn-border-radius: 120px;
|
|
7
|
+
--bui-btn-small-border-radius: 120px;
|
|
8
|
+
--bui-btn-large-border-radius: 120px;
|
|
9
|
+
--bui-btn-full-border-radius: 120px;
|
|
10
|
+
--bui-btn-color: var(--bui-color-fg-muted);
|
|
11
|
+
--bui-btn-background: var(--bui-color-bg-view);
|
|
12
|
+
--bui-btn-border: 0;
|
|
13
|
+
--bui-btn-height: 27px;
|
|
14
|
+
--bui-btn-small-height: 24px;
|
|
15
|
+
--bui-btn-large-height: 33px;
|
|
16
|
+
--bui-btn-full-height: 42px;
|
|
17
|
+
--bui-btn-subtle-border: 0;
|
|
18
|
+
--bui-btn-outlined-border: 1px solid var(--bui-color-neutral-4);
|
|
19
|
+
--bui-btn-disabled-opacity: 0.5;
|
|
20
|
+
--bui-btn-small-padding: 0 11px;
|
|
21
|
+
--bui-btn-padding: 0 14px;
|
|
22
|
+
--bui-btn-large-padding: 0 14px;
|
|
23
|
+
--bui-btn-full-font-size: var(--bui-title-size-4);
|
|
24
|
+
--bui-btn-full-font-family: var(--bui-font-family);
|
|
25
|
+
}
|
|
1
26
|
.bui-btn {
|
|
2
27
|
outline: 0;
|
|
3
28
|
cursor: pointer;
|
|
@@ -9,7 +34,7 @@
|
|
|
9
34
|
justify-content: center;
|
|
10
35
|
white-space: nowrap;
|
|
11
36
|
color: var(--bui-btn-color);
|
|
12
|
-
background: var(--bui-btn-
|
|
37
|
+
background: var(--bui-btn-background);
|
|
13
38
|
font-size: var(--bui-btn-font-size);
|
|
14
39
|
font-weight: var(--bui-btn-font-weight);
|
|
15
40
|
border: var(--bui-btn-border);
|
|
@@ -17,8 +42,7 @@
|
|
|
17
42
|
height: var(--bui-btn-height);
|
|
18
43
|
padding: var(--bui-btn-padding);
|
|
19
44
|
line-height: var(--bui-line-height);
|
|
20
|
-
font-family: var(--bui-
|
|
21
|
-
opacity: var(--bui-btn-opacity);
|
|
45
|
+
font-family: var(--bui-font-family);
|
|
22
46
|
}
|
|
23
47
|
@keyframes spin {
|
|
24
48
|
from {
|
|
@@ -62,51 +86,56 @@
|
|
|
62
86
|
}
|
|
63
87
|
.bui-btn-disabled {
|
|
64
88
|
pointer-events: none;
|
|
65
|
-
--bui-btn-opacity
|
|
89
|
+
opacity: var(--bui-btn-disabled-opacity);
|
|
66
90
|
}
|
|
67
91
|
.bui-btn-small {
|
|
68
|
-
--bui-
|
|
69
|
-
|
|
70
|
-
--bui-btn-
|
|
92
|
+
font-size: var(--bui-text-size-4);
|
|
93
|
+
padding: var(--bui-btn-small-padding);
|
|
94
|
+
height: var(--bui-btn-small-height);
|
|
95
|
+
border-radius: var(--bui-btn-small-border-radius);
|
|
71
96
|
}
|
|
72
97
|
.bui-btn-large {
|
|
73
|
-
--bui-
|
|
74
|
-
|
|
98
|
+
font-size: var(--bui-text-size-2);
|
|
99
|
+
padding: var(--bui-btn-large-padding);
|
|
100
|
+
height: var(--bui-btn-large-height);
|
|
101
|
+
border-radius: var(--bui-btn-large-border-radius);
|
|
75
102
|
}
|
|
76
103
|
.bui-btn-full {
|
|
77
|
-
--bui-btn-
|
|
78
|
-
|
|
104
|
+
font-family: var(--bui-btn-full-font-family);
|
|
105
|
+
font-size: var(--bui-btn-full-font-size);
|
|
79
106
|
width: 100%;
|
|
107
|
+
height: var(--bui-btn-full-height);
|
|
108
|
+
border-radius: var(--bui-btn-full-border-radius);
|
|
80
109
|
}
|
|
81
110
|
.bui-btn-text {
|
|
82
|
-
|
|
111
|
+
background: none;
|
|
83
112
|
}
|
|
84
113
|
.bui-btn-text.bui-btn-primary {
|
|
85
|
-
|
|
114
|
+
color: var(--bui-color-primary);
|
|
86
115
|
}
|
|
87
116
|
.bui-btn-text.bui-btn-success {
|
|
88
|
-
|
|
117
|
+
color: var(--bui-color-success);
|
|
89
118
|
}
|
|
90
119
|
.bui-btn-text.bui-btn-info {
|
|
91
|
-
|
|
120
|
+
color: var(--bui-color-info);
|
|
92
121
|
}
|
|
93
122
|
.bui-btn-text.bui-btn-warning {
|
|
94
|
-
|
|
123
|
+
color: var(--bui-color-warning);
|
|
95
124
|
}
|
|
96
125
|
.bui-btn-text.bui-btn-danger {
|
|
97
|
-
|
|
126
|
+
color: var(--bui-color-danger);
|
|
98
127
|
}
|
|
99
128
|
.bui-btn-text.bui-btn-light {
|
|
100
|
-
|
|
129
|
+
color: var(--bui-color-bg-view);
|
|
101
130
|
}
|
|
102
131
|
.bui-btn-text.bui-btn-dark {
|
|
103
|
-
|
|
132
|
+
color: var(--bui-color-fg-default);
|
|
104
133
|
}
|
|
105
134
|
.bui-btn-text.bui-btn-vip {
|
|
106
|
-
|
|
135
|
+
color: var(--bui-color-vip);
|
|
107
136
|
}
|
|
108
137
|
.bui-btn-contained {
|
|
109
|
-
|
|
138
|
+
background: var(--bui-color-neutral-5);
|
|
110
139
|
}
|
|
111
140
|
.bui-btn-contained.bui-btn-primary {
|
|
112
141
|
color: var(--bui-color-white);
|
|
@@ -149,24 +178,24 @@
|
|
|
149
178
|
var(--bui-color-danger-end) 100%);
|
|
150
179
|
}
|
|
151
180
|
.bui-btn-contained.bui-btn-light {
|
|
152
|
-
|
|
153
|
-
|
|
181
|
+
color: var(--bui-color-fg-default);
|
|
182
|
+
background: var(--bui-color-bg-view);
|
|
154
183
|
}
|
|
155
184
|
.bui-btn-contained.bui-btn-dark {
|
|
156
|
-
|
|
157
|
-
|
|
185
|
+
color: var(--bui-color-bg-view);
|
|
186
|
+
background: var(--bui-color-fg-default);
|
|
158
187
|
}
|
|
159
188
|
.bui-btn-contained.bui-btn-vip {
|
|
160
|
-
|
|
161
|
-
|
|
189
|
+
color: #582331;
|
|
190
|
+
background-image:
|
|
162
191
|
linear-gradient(
|
|
163
192
|
90deg,
|
|
164
193
|
var(--bui-color-vip-start) 3%,
|
|
165
194
|
var(--bui-color-vip-end) 100%);
|
|
166
195
|
}
|
|
167
196
|
.bui-btn-outlined {
|
|
168
|
-
|
|
169
|
-
|
|
197
|
+
background: none;
|
|
198
|
+
border: var(--bui-btn-outlined-border);
|
|
170
199
|
}
|
|
171
200
|
.bui-btn-outlined.bui-btn-primary {
|
|
172
201
|
color: var(--bui-color-primary);
|
|
@@ -189,19 +218,21 @@
|
|
|
189
218
|
border-color: var(--bui-color-danger);
|
|
190
219
|
}
|
|
191
220
|
.bui-btn-outlined.bui-btn-light {
|
|
192
|
-
|
|
193
|
-
|
|
221
|
+
color: var(--bui-color-bg-view);
|
|
222
|
+
border: 1px solid var(--bui-color-bg-view);
|
|
194
223
|
}
|
|
195
224
|
.bui-btn-outlined.bui-btn-dark {
|
|
196
|
-
|
|
197
|
-
|
|
225
|
+
color: var(--bui-color-fg-default);
|
|
226
|
+
border: 1px solid var(--bui-color-fg-default);
|
|
198
227
|
}
|
|
199
228
|
.bui-btn-outlined.bui-btn-vip {
|
|
200
229
|
color: var(--bui-color-vip);
|
|
201
230
|
border-color: var(--bui-color-vip);
|
|
202
231
|
}
|
|
203
232
|
.bui-btn-subtle {
|
|
204
|
-
|
|
233
|
+
background-image: none;
|
|
234
|
+
background-color: var(--bui-color-gray-light);
|
|
235
|
+
border: var(--bui-btn-subtle-border);
|
|
205
236
|
}
|
|
206
237
|
.bui-btn-subtle.bui-btn-warning {
|
|
207
238
|
color: var(--bui-color-warning);
|
|
@@ -224,13 +255,13 @@
|
|
|
224
255
|
background: var(--bui-color-danger-light);
|
|
225
256
|
}
|
|
226
257
|
.bui-btn-subtle.bui-btn-light {
|
|
227
|
-
|
|
258
|
+
color: var(--bui-color-bg-view);
|
|
228
259
|
}
|
|
229
260
|
.bui-btn-subtle.bui-btn-dark {
|
|
230
|
-
|
|
261
|
+
color: var(--bui-color-fg-default);
|
|
231
262
|
}
|
|
232
263
|
.bui-btn-subtle.bui-btn-vip {
|
|
264
|
+
color: var(--bui-color-vip);
|
|
233
265
|
position: relative;
|
|
234
|
-
|
|
235
|
-
--bui-btn-bg: rgba(255, 134, 110, 0.3);
|
|
266
|
+
background-color: rgba(255, 134, 110, 0.3);
|
|
236
267
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { CalendarProps } from './Calendar.types';
|
|
3
|
-
import './
|
|
3
|
+
import './index.less';
|
|
4
4
|
declare const Calendar: React.ForwardRefExoticComponent<Omit<CalendarProps<"div", {}>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
5
|
export default Calendar;
|
package/es/Calendar/Calendar.js
CHANGED
|
@@ -37,7 +37,7 @@ import isoWeek from "dayjs/plugin/isoWeek";
|
|
|
37
37
|
import React, { useMemo, useState } from "react";
|
|
38
38
|
import { formatDate, isRange, isSame } from "./utils";
|
|
39
39
|
import { useLocaleText } from "../locales";
|
|
40
|
-
import "./
|
|
40
|
+
import "./index.css";
|
|
41
41
|
dayjs.extend(isoWeek);
|
|
42
42
|
const classes = {
|
|
43
43
|
root: "bui-calendar",
|
|
@@ -123,14 +123,14 @@ const Calendar = /* @__PURE__ */ React.forwardRef(
|
|
|
123
123
|
CaretLeftIcon,
|
|
124
124
|
{
|
|
125
125
|
className: `${classes.handler}-btn-icon`,
|
|
126
|
-
htmlColor: isMinMonth && "
|
|
126
|
+
htmlColor: isMinMonth && "var(--bui-color-fg-disabled)"
|
|
127
127
|
}
|
|
128
128
|
),
|
|
129
129
|
right: headerBarRightIcon ? headerBarRightIcon({ isMaxMonth }) : /* @__PURE__ */ React.createElement(
|
|
130
130
|
CaretRightIcon,
|
|
131
131
|
{
|
|
132
132
|
className: `${classes.handler}-btn-icon`,
|
|
133
|
-
htmlColor: isMaxMonth && "
|
|
133
|
+
htmlColor: isMaxMonth && "var(--bui-color-fg-disabled)"
|
|
134
134
|
}
|
|
135
135
|
)
|
|
136
136
|
};
|