@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,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/es/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/es/Card/CardContent.css
CHANGED
package/es/Card/CardFooter.css
CHANGED
package/es/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/es/Card/CardHeader.js
CHANGED
|
@@ -36,13 +36,13 @@ const CardHeader = /* @__PURE__ */ React.forwardRef(
|
|
|
36
36
|
const _a = props, { title, subtitle, className, extra, endIcon, onClick } = _a, others = __objRest(_a, ["title", "subtitle", "className", "extra", "endIcon", "onClick"]);
|
|
37
37
|
const chevron = (() => {
|
|
38
38
|
if (typeof endIcon === "boolean") {
|
|
39
|
-
return endIcon ? /* @__PURE__ */ React.createElement(ArrowForwardIcon, { size: "small",
|
|
39
|
+
return endIcon ? /* @__PURE__ */ React.createElement(ArrowForwardIcon, { size: "small", color: "disabled" }) : null;
|
|
40
40
|
}
|
|
41
41
|
if (React.isValidElement(endIcon)) {
|
|
42
42
|
return endIcon;
|
|
43
43
|
}
|
|
44
44
|
if (onClick) {
|
|
45
|
-
return /* @__PURE__ */ React.createElement(ArrowForwardIcon, { size: "small",
|
|
45
|
+
return /* @__PURE__ */ React.createElement(ArrowForwardIcon, { size: "small", color: "disabled" });
|
|
46
46
|
}
|
|
47
47
|
return null;
|
|
48
48
|
})();
|
|
@@ -0,0 +1,77 @@
|
|
|
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
|
+
}
|
|
10
|
+
.bui-card {
|
|
11
|
+
background-color: var(--bui-color-bg-view);
|
|
12
|
+
border-radius: var(--bui-shape-radius-card);
|
|
13
|
+
overflow: hidden;
|
|
14
|
+
font-family: var(--bui-font-family);
|
|
15
|
+
}
|
|
16
|
+
.bui-card-header + .bui-card-content {
|
|
17
|
+
padding-top: 0;
|
|
18
|
+
}
|
|
19
|
+
.bui-card-content {
|
|
20
|
+
padding: var(--bui-spacing-lg);
|
|
21
|
+
color: var(--bui-color-fg-muted);
|
|
22
|
+
font-size: var(--bui-card-content-font-size);
|
|
23
|
+
}
|
|
24
|
+
.bui-card-footer {
|
|
25
|
+
color: var(--bui-color-fg-muted);
|
|
26
|
+
display: flex;
|
|
27
|
+
align-items: center;
|
|
28
|
+
padding: var(--bui-card-footer-padding);
|
|
29
|
+
font-size: var(--bui-card-footer-font-size);
|
|
30
|
+
}
|
|
31
|
+
.bui-card-header {
|
|
32
|
+
display: flex;
|
|
33
|
+
align-items: center;
|
|
34
|
+
flex-direction: row;
|
|
35
|
+
position: relative;
|
|
36
|
+
padding: var(--bui-card-header-padding);
|
|
37
|
+
font-size: var(--bui-title-size-4);
|
|
38
|
+
font-weight: var(--bui-font-weight-bold);
|
|
39
|
+
font-family: var(--bui-font-family);
|
|
40
|
+
color: var(--bui-color-fg-default);
|
|
41
|
+
}
|
|
42
|
+
.bui-card-header-title {
|
|
43
|
+
white-space: nowrap;
|
|
44
|
+
overflow: hidden;
|
|
45
|
+
text-overflow: ellipsis;
|
|
46
|
+
max-width: 100%;
|
|
47
|
+
flex-shrink: 0;
|
|
48
|
+
font-size: var(--bui-card-header-title-font-size);
|
|
49
|
+
font-family: var(--bui-font-family-accent, inherit);
|
|
50
|
+
}
|
|
51
|
+
.bui-card-header-subtitle {
|
|
52
|
+
font-size: var(--bui-text-size-3);
|
|
53
|
+
font-weight: normal;
|
|
54
|
+
white-space: nowrap;
|
|
55
|
+
overflow: hidden;
|
|
56
|
+
text-overflow: ellipsis;
|
|
57
|
+
color: var(--bui-color-fg-subtle);
|
|
58
|
+
padding: 0 var(--bui-spacing-xs);
|
|
59
|
+
}
|
|
60
|
+
.bui-card-header-extra {
|
|
61
|
+
white-space: nowrap;
|
|
62
|
+
}
|
|
63
|
+
.bui-card-header-end-icon {
|
|
64
|
+
display: flex;
|
|
65
|
+
align-items: center;
|
|
66
|
+
flex-direction: row;
|
|
67
|
+
}
|
|
68
|
+
.bui-card-header-extra,
|
|
69
|
+
.bui-card-header-end-icon {
|
|
70
|
+
font-size: var(--bui-text-size-3);
|
|
71
|
+
font-weight: normal;
|
|
72
|
+
color: var(--bui-color-fg-subtle);
|
|
73
|
+
margin-left: auto;
|
|
74
|
+
}
|
|
75
|
+
.bui-card-header-extra + .bui-card-header-end-icon {
|
|
76
|
+
margin-left: 2px;
|
|
77
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { CheckboxProps } from './Checkbox.types';
|
|
3
|
-
import './
|
|
3
|
+
import './index.less';
|
|
4
4
|
declare const Checkbox: React.ForwardRefExoticComponent<Omit<CheckboxProps<"div", {}>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
5
|
export default Checkbox;
|
package/es/Checkbox/Checkbox.js
CHANGED
|
@@ -34,7 +34,7 @@ import { useValue } from "@bifrostui/utils";
|
|
|
34
34
|
import clsx from "clsx";
|
|
35
35
|
import React, { forwardRef, useContext } from "react";
|
|
36
36
|
import CheckboxContext from "./CheckboxContext";
|
|
37
|
-
import "./
|
|
37
|
+
import "./index.css";
|
|
38
38
|
const prefixCls = "bui-checkbox";
|
|
39
39
|
const Checkbox = forwardRef((props, ref) => {
|
|
40
40
|
var _b, _c;
|
|
@@ -82,7 +82,7 @@ const Checkbox = forwardRef((props, ref) => {
|
|
|
82
82
|
console.error("CheckboxGroup\u6A21\u5F0F\u4E0BCheckbox\u987B\u4F20\u5165value\u5C5E\u6027");
|
|
83
83
|
}
|
|
84
84
|
const checkboxCheckIcon = checkedIcon || /* @__PURE__ */ React.createElement(SuccessCircleFilledIcon, { color: "primary" });
|
|
85
|
-
const checkboxUncheckIcon = icon || /* @__PURE__ */ React.createElement(CircleOutlinedIcon, {
|
|
85
|
+
const checkboxUncheckIcon = icon || /* @__PURE__ */ React.createElement(CircleOutlinedIcon, { color: "neutral" });
|
|
86
86
|
const checkboxDisabled = disabled !== void 0 ? disabled : groupContext == null ? void 0 : groupContext.disabled;
|
|
87
87
|
const handleChange = (e) => {
|
|
88
88
|
var _a2, _b2, _c2;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { CheckboxGroupProps } from './Checkbox.types';
|
|
3
|
-
import './
|
|
3
|
+
import './index.less';
|
|
4
4
|
declare const CheckboxGroup: React.ForwardRefExoticComponent<Omit<CheckboxGroupProps<"div", {}>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
5
|
export default CheckboxGroup;
|
|
@@ -30,7 +30,7 @@ import { useValue } from "@bifrostui/utils";
|
|
|
30
30
|
import clsx from "clsx";
|
|
31
31
|
import React, { forwardRef } from "react";
|
|
32
32
|
import { CheckboxContextProvider } from "./CheckboxContext";
|
|
33
|
-
import "./
|
|
33
|
+
import "./index.css";
|
|
34
34
|
const prefixCls = "bui-checkbox-group";
|
|
35
35
|
const CheckboxGroup = forwardRef(
|
|
36
36
|
(_a, ref) => {
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
+
:root,
|
|
2
|
+
page,
|
|
3
|
+
xhs-page {
|
|
4
|
+
--bui-checkbox-label-color: var(--bui-color-fg-default);
|
|
5
|
+
--bui-checkbox-label-font-size: var(--bui-text-size-1);
|
|
6
|
+
--bui-checkbox-icon-font-size: var(--bui-title-size-2);
|
|
7
|
+
--bui-checkbox-disabled-opacity: 0.5;
|
|
8
|
+
--bui-checkbox-icon-padding: 5px;
|
|
9
|
+
}
|
|
1
10
|
.bui-checkbox {
|
|
2
|
-
--label-color: var(--bui-checkbox-label-color, var(--bui-color-fg-default));
|
|
3
|
-
--label-font-size: var(--bui-checkbox-label-font-size, var(--bui-text-size-1));
|
|
4
|
-
--icon-font-size: var(--bui-checkbox-icon-font-size, var(--bui-title-size-2));
|
|
5
|
-
--disabled-opacity: var(--bui-checkbox-disabled-opacity, 0.5);
|
|
6
|
-
--icon-padding: var(--bui-checkbox-icon-padding, 5px);
|
|
7
11
|
display: inline-flex;
|
|
8
12
|
align-items: center;
|
|
9
13
|
position: relative;
|
|
@@ -11,7 +15,7 @@
|
|
|
11
15
|
}
|
|
12
16
|
.bui-checkbox.bui-checkbox-disabled {
|
|
13
17
|
pointer-events: none;
|
|
14
|
-
opacity: var(--disabled-opacity);
|
|
18
|
+
opacity: var(--bui-checkbox-disabled-opacity);
|
|
15
19
|
}
|
|
16
20
|
.bui-checkbox-label-left {
|
|
17
21
|
flex-direction: row-reverse;
|
|
@@ -37,11 +41,11 @@
|
|
|
37
41
|
align-items: center;
|
|
38
42
|
justify-content: center;
|
|
39
43
|
flex-shrink: 0;
|
|
40
|
-
padding: var(--icon-padding);
|
|
44
|
+
padding: var(--bui-checkbox-icon-padding);
|
|
41
45
|
box-sizing: border-box;
|
|
42
|
-
font-size: var(--icon-font-size);
|
|
46
|
+
font-size: var(--bui-checkbox-icon-font-size);
|
|
43
47
|
}
|
|
44
48
|
.bui-checkbox-label {
|
|
45
|
-
font-size: var(--label-font-size);
|
|
46
|
-
color: var(--label-color);
|
|
49
|
+
font-size: var(--bui-checkbox-label-font-size);
|
|
50
|
+
color: var(--bui-checkbox-label-color);
|
|
47
51
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { CitySelectorProps } from './CitySelector.types';
|
|
3
|
-
import './miniapp.less';
|
|
4
3
|
declare const CitySelector: React.ForwardRefExoticComponent<Omit<CitySelectorProps<"div", {}>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
4
|
export default CitySelector;
|
|
@@ -20,7 +20,6 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
20
20
|
import React, { useEffect, useRef, useState } from "react";
|
|
21
21
|
import Taro from "@tarojs/taro";
|
|
22
22
|
import CitySelectorCore from "./CitySelectorCore";
|
|
23
|
-
import "./miniapp.css";
|
|
24
23
|
const CitySelector = /* @__PURE__ */ React.forwardRef(
|
|
25
24
|
(props, ref) => {
|
|
26
25
|
const { cities } = props;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { CitySelectorCoreProps } from './CitySelector.types';
|
|
3
|
-
import './
|
|
3
|
+
import './index.less';
|
|
4
4
|
declare const CitySelector: React.ForwardRefExoticComponent<Omit<CitySelectorCoreProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
5
|
export default CitySelector;
|
|
@@ -32,7 +32,7 @@ import { throttle, useForkRef, useTouchEmulator } from "@bifrostui/utils";
|
|
|
32
32
|
import { useLocaleText } from "../locales";
|
|
33
33
|
import ScrollView from "../ScrollView";
|
|
34
34
|
import Selector from "./Selector";
|
|
35
|
-
import "./
|
|
35
|
+
import "./index.css";
|
|
36
36
|
const DEVIATION_HEIGHT = "6vmin";
|
|
37
37
|
const prefixCls = "bui-city-selector";
|
|
38
38
|
const CitySelector = /* @__PURE__ */ React.forwardRef(
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
.bui-city-selector-item {
|
|
2
|
-
width: var(--
|
|
3
|
-
height: var(--
|
|
2
|
+
width: var(--bui-city-selector-item-width);
|
|
3
|
+
height: var(--bui-city-selector-item-height);
|
|
4
4
|
display: inline-flex;
|
|
5
5
|
justify-content: center;
|
|
6
6
|
align-items: center;
|
|
7
|
-
border-radius: var(--
|
|
8
|
-
margin: var(--
|
|
7
|
+
border-radius: var(--bui-city-selector-item-border-radius);
|
|
8
|
+
margin: var(--bui-city-selector-item-margin);
|
|
9
9
|
background-color: var(--bui-color-bg-default);
|
|
10
10
|
font-size: var(--bui-text-size-2);
|
|
11
11
|
}
|
|
@@ -1,29 +1,33 @@
|
|
|
1
|
+
:root,
|
|
2
|
+
page,
|
|
3
|
+
xhs-page {
|
|
4
|
+
--bui-city-selector-item-width: 111px;
|
|
5
|
+
--bui-city-selector-item-height: 36px;
|
|
6
|
+
--bui-city-selector-item-border-radius: 20px;
|
|
7
|
+
--bui-city-selector-item-margin: 4.5px 0 4.5px 9px;
|
|
8
|
+
--bui-city-selector-title-height: 45px;
|
|
9
|
+
--bui-city-selector-title-line-height: 45px;
|
|
10
|
+
--bui-city-selector-btn-close-size: 45px;
|
|
11
|
+
--bui-city-selector-btn-close-font-size: 20px;
|
|
12
|
+
--bui-city-selector-container-with-title-height: calc(100% - var(--bui-city-selector-title-height));
|
|
13
|
+
--bui-city-selector-city-container-min-height: 500px;
|
|
14
|
+
--bui-city-selector-select-city-buttons-padding: 7.5px 0 0 3px;
|
|
15
|
+
--bui-city-selector-select-city-title-line-height: 15px;
|
|
16
|
+
--bui-city-selector-list-item-height: 45px;
|
|
17
|
+
--bui-city-selector-city-index-has-title-top: calc(50% + var(--bui-city-selector-title-height) / 2);
|
|
18
|
+
--bui-city-selector-index-item-height: 20px;
|
|
19
|
+
}
|
|
1
20
|
.bui-city-selector {
|
|
2
|
-
--select-item-width: var(--bui-city-selector-item-width, 111px);
|
|
3
|
-
--select-item-height: var(--bui-city-selector-item-height, 36px);
|
|
4
|
-
--select-item-border-radius: var(--bui-city-selector-item-border-radius, 20px);
|
|
5
|
-
--select-item-margin: var(--bui-city-selector-item-margin, 4.5px 0 4.5px 9px);
|
|
6
|
-
--title-height: var(--bui-city-selector-title-height, 45px);
|
|
7
|
-
--title-line-height: var(--bui-city-selector-title-line-height, 45px);
|
|
8
|
-
--btn-close-size: var(--bui-city-selector-btn-close-size, 45px);
|
|
9
|
-
--btn-close-font-size: var(--bui-city-selector-btn-close-font-size, 20px);
|
|
10
|
-
--container-with-title-height: var(--bui-city-selector-container-with-title-height, calc(100% - var(--title-height)));
|
|
11
|
-
--city-container-min-height: var(--bui-city-selector-city-container-min-height, 500px);
|
|
12
|
-
--select-city-buttons-padding: var(--bui-city-selector-select-city-buttons-padding, 7.5px 0 0 3px);
|
|
13
|
-
--select-city-title-line-height: var(--bui-city-selector-select-city-title-line-height, 15px);
|
|
14
|
-
--list-item-height: var(--bui-city-selector-list-item-height, 45px);
|
|
15
|
-
--city-index-has-title-top: var(--bui-city-selector-city-index-has-title-top, calc(50% + var(--title-height) / 2));
|
|
16
|
-
--index-item-height: var(--bui-city-selector-index-item-height, 20px);
|
|
17
21
|
font-family: var(--bui-font-family);
|
|
18
22
|
height: 100%;
|
|
19
23
|
position: relative;
|
|
20
24
|
}
|
|
21
25
|
.bui-city-selector-title {
|
|
22
26
|
width: 100%;
|
|
23
|
-
height: var(--title-height);
|
|
27
|
+
height: var(--bui-city-selector-title-height);
|
|
24
28
|
color: var(--bui-color-fg-default);
|
|
25
29
|
font-size: var(--bui-title-size-3);
|
|
26
|
-
line-height: var(--title-line-height);
|
|
30
|
+
line-height: var(--bui-city-selector-title-line-height);
|
|
27
31
|
text-align: center;
|
|
28
32
|
position: sticky;
|
|
29
33
|
top: 0;
|
|
@@ -35,20 +39,20 @@
|
|
|
35
39
|
position: absolute;
|
|
36
40
|
top: 0;
|
|
37
41
|
right: 0;
|
|
38
|
-
width: var(--btn-close-size);
|
|
39
|
-
height: var(--btn-close-size);
|
|
42
|
+
width: var(--bui-city-selector-btn-close-size);
|
|
43
|
+
height: var(--bui-city-selector-btn-close-size);
|
|
40
44
|
color: var(--bui-color-fg-muted);
|
|
41
45
|
text-align: center;
|
|
42
|
-
font-size: var(--btn-close-font-size);
|
|
46
|
+
font-size: var(--bui-city-selector-btn-close-font-size);
|
|
43
47
|
}
|
|
44
48
|
.bui-city-selector-scroll-view-container {
|
|
45
49
|
height: 100%;
|
|
46
50
|
}
|
|
47
51
|
.bui-city-selector-scroll-view-container.container-has-title {
|
|
48
|
-
height: var(--container-with-title-height);
|
|
52
|
+
height: var(--bui-city-selector-container-with-title-height);
|
|
49
53
|
}
|
|
50
54
|
.bui-city-selector-all-city {
|
|
51
|
-
min-height: var(--city-container-min-height);
|
|
55
|
+
min-height: var(--bui-city-selector-city-container-min-height);
|
|
52
56
|
font-size: var(--bui-text-size-2);
|
|
53
57
|
width: 100%;
|
|
54
58
|
background: var(--bui-color-bg-view);
|
|
@@ -57,11 +61,11 @@
|
|
|
57
61
|
.bui-city-selector-all-city .select-city-buttons {
|
|
58
62
|
display: flex;
|
|
59
63
|
flex-flow: wrap;
|
|
60
|
-
padding: var(--select-city-buttons-padding);
|
|
64
|
+
padding: var(--bui-city-selector-select-city-buttons-padding);
|
|
61
65
|
}
|
|
62
66
|
.bui-city-selector-all-city .select-city-title {
|
|
63
67
|
font-size: var(--bui-title-size-4);
|
|
64
|
-
line-height: var(--select-city-title-line-height);
|
|
68
|
+
line-height: var(--bui-city-selector-select-city-title-line-height);
|
|
65
69
|
font-weight: var(--bui-font-weight-bold);
|
|
66
70
|
padding-left: var(--bui-spacing-lg);
|
|
67
71
|
padding-top: var(--bui-spacing-md);
|
|
@@ -71,7 +75,7 @@
|
|
|
71
75
|
list-style-type: none;
|
|
72
76
|
}
|
|
73
77
|
.bui-city-selector-list-item {
|
|
74
|
-
height: var(--list-item-height);
|
|
78
|
+
height: var(--bui-city-selector-list-item-height);
|
|
75
79
|
font-size: var(--bui-title-size-4);
|
|
76
80
|
display: flex;
|
|
77
81
|
align-items: center;
|
|
@@ -95,7 +99,7 @@
|
|
|
95
99
|
transform: translate(0, -50%);
|
|
96
100
|
}
|
|
97
101
|
.bui-city-selector-index-container.city-index-has-title {
|
|
98
|
-
top: var(--city-index-has-title-top);
|
|
102
|
+
top: var(--bui-city-selector-city-index-has-title-top);
|
|
99
103
|
}
|
|
100
104
|
.bui-city-selector-index-container ul {
|
|
101
105
|
margin: 0;
|
|
@@ -106,7 +110,7 @@
|
|
|
106
110
|
}
|
|
107
111
|
.bui-city-selector-index-container li {
|
|
108
112
|
list-style: none;
|
|
109
|
-
height: var(--index-item-height);
|
|
113
|
+
height: var(--bui-city-selector-index-item-height);
|
|
110
114
|
text-align: center;
|
|
111
115
|
font-size: var(--bui-text-size-3);
|
|
112
116
|
color: var(--bui-color-info, --bui-color-info);
|
package/es/Collapse/Collapse.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { CollapsePanelProps } from './CollapsePanel.types';
|
|
3
|
-
import './
|
|
3
|
+
import './index.less';
|
|
4
4
|
declare const CollapsePanel: React.ForwardRefExoticComponent<Omit<CollapsePanelProps<"div", {}>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
5
|
export default CollapsePanel;
|
|
@@ -34,7 +34,7 @@ import clsx from "clsx";
|
|
|
34
34
|
import { ArrowDownwardLargeIcon } from "@bifrostui/icons";
|
|
35
35
|
import { useValue } from "@bifrostui/utils";
|
|
36
36
|
import CollapseItem from "./CollapsePanelItem";
|
|
37
|
-
import "./
|
|
37
|
+
import "./index.css";
|
|
38
38
|
const prefixCls = "bui-collapse-panel";
|
|
39
39
|
const CollapsePanel = /* @__PURE__ */ React.forwardRef(
|
|
40
40
|
(props, ref) => {
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
+
:root,
|
|
2
|
+
page,
|
|
3
|
+
xhs-page {
|
|
4
|
+
--bui-collapse-panel-width: 100%;
|
|
5
|
+
--bui-collapse-panel-header-padding: var(--bui-spacing-lg) 0;
|
|
6
|
+
--bui-collapse-panel-content-padding: var(--bui-spacing-lg) 0;
|
|
7
|
+
}
|
|
1
8
|
.bui-collapse-panel {
|
|
2
|
-
|
|
3
|
-
--header-padding: var(--bui-collapse-panel-header-padding, var(--bui-spacing-lg) 0);
|
|
4
|
-
--content-padding: var(--bui-collapse-panel-content-padding, var(--bui-spacing-lg) 0);
|
|
5
|
-
width: var(--width);
|
|
9
|
+
width: var(--bui-collapse-panel-width);
|
|
6
10
|
background-color: var(--bui-color-bg-view);
|
|
7
11
|
color: var(--bui-color-fg-default);
|
|
8
12
|
}
|
|
@@ -14,7 +18,7 @@
|
|
|
14
18
|
cursor: pointer;
|
|
15
19
|
}
|
|
16
20
|
.bui-collapse-panel-item-header-label {
|
|
17
|
-
padding: var(--header-padding);
|
|
21
|
+
padding: var(--bui-collapse-panel-header-padding);
|
|
18
22
|
font-size: var(--bui-title-size-2);
|
|
19
23
|
}
|
|
20
24
|
.bui-collapse-panel-item-header-icon-arrow {
|
|
@@ -25,7 +29,7 @@
|
|
|
25
29
|
transform: rotate(-180deg);
|
|
26
30
|
}
|
|
27
31
|
.bui-collapse-panel-item-content {
|
|
28
|
-
padding: var(--content-padding);
|
|
32
|
+
padding: var(--bui-collapse-panel-content-padding);
|
|
29
33
|
font-size: var(--bui-text-size-1);
|
|
30
34
|
transition: height 0.5s ease;
|
|
31
35
|
overflow: hidden;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { CountdownProps } from './Countdown.types';
|
|
3
|
-
import './
|
|
3
|
+
import './index.less';
|
|
4
4
|
declare const Countdown: React.ForwardRefExoticComponent<Omit<CountdownProps<"div", {}>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
5
|
export default Countdown;
|
|
@@ -31,7 +31,7 @@ import React, { forwardRef, useEffect, useState } from "react";
|
|
|
31
31
|
import { useDidMountEffect } from "@bifrostui/utils";
|
|
32
32
|
import useCountdown from "./useCountdown";
|
|
33
33
|
import { formatCountdown } from "./utils";
|
|
34
|
-
import "./
|
|
34
|
+
import "./index.css";
|
|
35
35
|
const prefixCls = "bui-countdown";
|
|
36
36
|
const Countdown = forwardRef((props, ref) => {
|
|
37
37
|
const _a = props, {
|