@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
|
@@ -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;
|
|
@@ -59,7 +59,7 @@ module.exports = __toCommonJS(Breadcrumb_exports);
|
|
|
59
59
|
var import_react = __toESM(require("react"));
|
|
60
60
|
var import_clsx = __toESM(require("clsx"));
|
|
61
61
|
var import_BreadcrumbItem = __toESM(require("./BreadcrumbItem"));
|
|
62
|
-
var
|
|
62
|
+
var import_index = require("./index.css");
|
|
63
63
|
const prefixCls = "bui-breadcrumb";
|
|
64
64
|
const Breadcrumb = /* @__PURE__ */ import_react.default.forwardRef(
|
|
65
65
|
(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/dist/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/dist/Button/Button.js
CHANGED
|
@@ -58,7 +58,7 @@ __export(Button_exports, {
|
|
|
58
58
|
module.exports = __toCommonJS(Button_exports);
|
|
59
59
|
var import_clsx = __toESM(require("clsx"));
|
|
60
60
|
var import_react = __toESM(require("react"));
|
|
61
|
-
var
|
|
61
|
+
var import_index = require("./index.css");
|
|
62
62
|
const prefixCls = "bui-btn";
|
|
63
63
|
const ButtonIcon = ({ children, iconPosition }) => {
|
|
64
64
|
return /* @__PURE__ */ import_react.default.createElement("span", { className: `${prefixCls}-icon-${iconPosition}` }, children);
|
|
@@ -98,7 +98,8 @@ const Button = /* @__PURE__ */ import_react.default.forwardRef(
|
|
|
98
98
|
},
|
|
99
99
|
className
|
|
100
100
|
),
|
|
101
|
-
ref
|
|
101
|
+
ref,
|
|
102
|
+
disabled
|
|
102
103
|
}, others),
|
|
103
104
|
startIcon && /* @__PURE__ */ import_react.default.createElement(ButtonIcon, { iconPosition: "start" }, startIcon),
|
|
104
105
|
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;
|
|
@@ -67,7 +67,7 @@ var import_isoWeek = __toESM(require("dayjs/plugin/isoWeek"));
|
|
|
67
67
|
var import_react = __toESM(require("react"));
|
|
68
68
|
var import_utils2 = require("./utils");
|
|
69
69
|
var import_locales = require("../locales");
|
|
70
|
-
var
|
|
70
|
+
var import_index = require("./index.css");
|
|
71
71
|
import_dayjs.default.extend(import_isoWeek.default);
|
|
72
72
|
const classes = {
|
|
73
73
|
root: "bui-calendar",
|
|
@@ -153,14 +153,14 @@ const Calendar = /* @__PURE__ */ import_react.default.forwardRef(
|
|
|
153
153
|
import_icons.CaretLeftIcon,
|
|
154
154
|
{
|
|
155
155
|
className: `${classes.handler}-btn-icon`,
|
|
156
|
-
htmlColor: isMinMonth && "
|
|
156
|
+
htmlColor: isMinMonth && "var(--bui-color-fg-disabled)"
|
|
157
157
|
}
|
|
158
158
|
),
|
|
159
159
|
right: headerBarRightIcon ? headerBarRightIcon({ isMaxMonth }) : /* @__PURE__ */ import_react.default.createElement(
|
|
160
160
|
import_icons.CaretRightIcon,
|
|
161
161
|
{
|
|
162
162
|
className: `${classes.handler}-btn-icon`,
|
|
163
|
-
htmlColor: isMaxMonth && "
|
|
163
|
+
htmlColor: isMaxMonth && "var(--bui-color-fg-disabled)"
|
|
164
164
|
}
|
|
165
165
|
)
|
|
166
166
|
};
|
|
@@ -1,19 +1,23 @@
|
|
|
1
|
+
:root,
|
|
2
|
+
page,
|
|
3
|
+
xhs-page {
|
|
4
|
+
--bui-calendar-padding: 6px 12px 7px;
|
|
5
|
+
--bui-calendar-week-height: 30px;
|
|
6
|
+
--bui-calendar-handler-height: 28px;
|
|
7
|
+
--bui-calendar-handler-margin-bottom: 7px;
|
|
8
|
+
--bui-calendar-handler-text-width: 80px;
|
|
9
|
+
--bui-calendar-handler-btn-width: 46px;
|
|
10
|
+
--bui-calendar-handler-btn-height: 100%;
|
|
11
|
+
--bui-calendar-handler-btn-icon-font-size: 28px;
|
|
12
|
+
--bui-calendar-day-box-height: 30px;
|
|
13
|
+
--bui-calendar-day-box-margin-bottom: 7px;
|
|
14
|
+
--bui-calendar-day-disabled-color: #9c9ca5;
|
|
15
|
+
--bui-calendar-middle-color: #000;
|
|
16
|
+
--bui-calendar-middle-background-color: #ffeaf1;
|
|
17
|
+
--bui-calendar-range-both-ends-color: #000;
|
|
18
|
+
--bui-calendar-range-both-ends-background-color: #ffc7da;
|
|
19
|
+
}
|
|
1
20
|
.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
21
|
overflow: hidden;
|
|
18
22
|
display: flex;
|
|
19
23
|
flex-direction: column;
|
|
@@ -21,11 +25,11 @@
|
|
|
21
25
|
position: relative;
|
|
22
26
|
width: 100%;
|
|
23
27
|
box-sizing: border-box;
|
|
24
|
-
padding: var(--padding);
|
|
28
|
+
padding: var(--bui-calendar-padding);
|
|
25
29
|
font-family: var(--bui-font-family);
|
|
26
30
|
}
|
|
27
31
|
.bui-calendar-week {
|
|
28
|
-
height: var(--week-height);
|
|
32
|
+
height: var(--bui-calendar-week-height);
|
|
29
33
|
font-size: var(--bui-text-size-2);
|
|
30
34
|
font-weight: var(--bui-font-weight-medium);
|
|
31
35
|
color: var(--bui-color-fg-default);
|
|
@@ -44,21 +48,21 @@
|
|
|
44
48
|
color: var(--bui-color-primary);
|
|
45
49
|
}
|
|
46
50
|
.bui-calendar-handler {
|
|
47
|
-
height: var(--handler-height);
|
|
51
|
+
height: var(--bui-calendar-handler-height);
|
|
48
52
|
display: flex;
|
|
49
53
|
align-items: center;
|
|
50
54
|
justify-content: center;
|
|
51
|
-
margin-bottom: var(--handler-margin-bottom);
|
|
55
|
+
margin-bottom: var(--bui-calendar-handler-margin-bottom);
|
|
52
56
|
}
|
|
53
57
|
.bui-calendar-handler-text {
|
|
54
|
-
width: var(--handler-text-width);
|
|
58
|
+
width: var(--bui-calendar-handler-text-width);
|
|
55
59
|
font-size: var(--bui-title-size-3);
|
|
56
60
|
font-weight: var(--bui-font-weight-medium);
|
|
57
61
|
text-align: center;
|
|
58
62
|
}
|
|
59
63
|
.bui-calendar-handler-btn {
|
|
60
64
|
font-size: 16px;
|
|
61
|
-
height: var(--handler-btn-
|
|
65
|
+
height: var(--bui-calendar-handler-btn-width);
|
|
62
66
|
width: var(--handler-btn-width);
|
|
63
67
|
cursor: pointer;
|
|
64
68
|
display: flex;
|
|
@@ -66,7 +70,7 @@
|
|
|
66
70
|
justify-content: center;
|
|
67
71
|
}
|
|
68
72
|
.bui-calendar-handler-btn-icon {
|
|
69
|
-
font-size: var(--handler-btn-icon-font-size);
|
|
73
|
+
font-size: var(--bui-calendar-handler-btn-icon-font-size);
|
|
70
74
|
}
|
|
71
75
|
.bui-calendar-month {
|
|
72
76
|
display: flex;
|
|
@@ -75,8 +79,8 @@
|
|
|
75
79
|
}
|
|
76
80
|
.bui-calendar-day-box {
|
|
77
81
|
width: 14.28%;
|
|
78
|
-
height: var(--day-box-height);
|
|
79
|
-
margin-bottom: var(--day-box-margin-bottom);
|
|
82
|
+
height: var(--bui-calendar-day-box-height);
|
|
83
|
+
margin-bottom: var(--bui-calendar-day-box-margin-bottom);
|
|
80
84
|
}
|
|
81
85
|
.bui-calendar-highlight-day .bui-calendar-day {
|
|
82
86
|
color: var(--bui-color-primary);
|
|
@@ -94,27 +98,27 @@
|
|
|
94
98
|
cursor: pointer;
|
|
95
99
|
}
|
|
96
100
|
.bui-calendar-day.bui-calendar-disabled {
|
|
97
|
-
color: var(--day-disabled-color);
|
|
101
|
+
color: var(--bui-calendar-day-disabled-color);
|
|
98
102
|
}
|
|
99
103
|
.bui-calendar-today {
|
|
100
104
|
color: var(--bui-color-primary);
|
|
101
105
|
}
|
|
102
106
|
.bui-calendar-middle {
|
|
103
|
-
color: var(--middle-color);
|
|
107
|
+
color: var(--bui-calendar-middle-color);
|
|
104
108
|
border-radius: 0;
|
|
105
|
-
background-color: var(--middle-background-color);
|
|
109
|
+
background-color: var(--bui-calendar-middle-background-color);
|
|
106
110
|
}
|
|
107
111
|
.bui-calendar-start {
|
|
108
|
-
color: var(--range-both-ends-color);
|
|
109
|
-
background-color: var(--range-both-ends-background-color);
|
|
112
|
+
color: var(--bui-calendar-range-both-ends-color);
|
|
113
|
+
background-color: var(--bui-calendar-range-both-ends-background-color);
|
|
110
114
|
}
|
|
111
115
|
.bui-calendar-range {
|
|
112
116
|
border-top-right-radius: 0;
|
|
113
117
|
border-bottom-right-radius: 0;
|
|
114
118
|
}
|
|
115
119
|
.bui-calendar-end {
|
|
116
|
-
color: var(--range-both-ends-color);
|
|
117
|
-
background-color: var(--range-both-ends-background-color);
|
|
120
|
+
color: var(--bui-calendar-range-both-ends-color);
|
|
121
|
+
background-color: var(--bui-calendar-range-both-ends-background-color);
|
|
118
122
|
border-top-left-radius: 0;
|
|
119
123
|
border-bottom-left-radius: 0;
|
|
120
124
|
}
|
package/dist/Card/Card.css
CHANGED
|
@@ -1,8 +1,17 @@
|
|
|
1
|
+
:root,
|
|
2
|
+
page,
|
|
3
|
+
xhs-page {
|
|
4
|
+
--bui-card-header-padding: var(--bui-spacing-md) var(--bui-spacing-lg);
|
|
5
|
+
--bui-card-footer-padding: var(--bui-spacing-md) var(--bui-spacing-lg);
|
|
6
|
+
--bui-card-header-title-font-size: var(--bui-title-size-4);
|
|
7
|
+
--bui-card-content-font-size: var(--bui-text-size-2);
|
|
8
|
+
--bui-card-footer-font-size: var(--bui-text-size-2);
|
|
9
|
+
}
|
|
1
10
|
.bui-card {
|
|
2
11
|
background-color: var(--bui-color-bg-view);
|
|
3
12
|
border-radius: var(--bui-shape-radius-card);
|
|
4
13
|
overflow: hidden;
|
|
5
|
-
font-family: var(--bui-
|
|
14
|
+
font-family: var(--bui-font-family);
|
|
6
15
|
}
|
|
7
16
|
.bui-card-header + .bui-card-content {
|
|
8
17
|
padding-top: 0;
|
package/dist/Card/CardFooter.css
CHANGED
package/dist/Card/CardHeader.css
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
.bui-card-header {
|
|
2
|
-
--bui-card-font-size: var(--bui-title-size-4);
|
|
3
2
|
display: flex;
|
|
4
3
|
align-items: center;
|
|
5
4
|
flex-direction: row;
|
|
6
5
|
position: relative;
|
|
7
|
-
padding: var(--bui-
|
|
6
|
+
padding: var(--bui-card-header-padding);
|
|
7
|
+
font-size: var(--bui-title-size-4);
|
|
8
8
|
font-weight: var(--bui-font-weight-bold);
|
|
9
|
-
font-family: var(--bui-
|
|
9
|
+
font-family: var(--bui-font-family);
|
|
10
10
|
color: var(--bui-color-fg-default);
|
|
11
11
|
}
|
|
12
12
|
.bui-card-header-title {
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
text-overflow: ellipsis;
|
|
16
16
|
max-width: 100%;
|
|
17
17
|
flex-shrink: 0;
|
|
18
|
+
font-size: var(--bui-card-header-title-font-size);
|
|
18
19
|
font-family: var(--bui-font-family-accent, inherit);
|
|
19
20
|
}
|
|
20
21
|
.bui-card-header-subtitle {
|
package/dist/Card/CardHeader.js
CHANGED
|
@@ -66,13 +66,13 @@ const CardHeader = /* @__PURE__ */ import_react.default.forwardRef(
|
|
|
66
66
|
const _a = props, { title, subtitle, className, extra, endIcon, onClick } = _a, others = __objRest(_a, ["title", "subtitle", "className", "extra", "endIcon", "onClick"]);
|
|
67
67
|
const chevron = (() => {
|
|
68
68
|
if (typeof endIcon === "boolean") {
|
|
69
|
-
return endIcon ? /* @__PURE__ */ import_react.default.createElement(import_icons.ArrowForwardIcon, { size: "small",
|
|
69
|
+
return endIcon ? /* @__PURE__ */ import_react.default.createElement(import_icons.ArrowForwardIcon, { size: "small", color: "disabled" }) : null;
|
|
70
70
|
}
|
|
71
71
|
if (import_react.default.isValidElement(endIcon)) {
|
|
72
72
|
return endIcon;
|
|
73
73
|
}
|
|
74
74
|
if (onClick) {
|
|
75
|
-
return /* @__PURE__ */ import_react.default.createElement(import_icons.ArrowForwardIcon, { size: "small",
|
|
75
|
+
return /* @__PURE__ */ import_react.default.createElement(import_icons.ArrowForwardIcon, { size: "small", color: "disabled" });
|
|
76
76
|
}
|
|
77
77
|
return null;
|
|
78
78
|
})();
|