@bifrostui/react 2.0.0-beta.1 → 2.0.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ActionSheet/ActionSheet.css +16 -6
- package/dist/ActionSheet/ActionSheetItem.css +11 -17
- package/dist/ActionSheet/ActionSheetItem.js +1 -1
- package/dist/ActionSheet/ActionSheetItem.types.d.ts +2 -2
- package/dist/ActionSheet/index.css +89 -0
- package/dist/Alert/Alert.types.d.ts +3 -3
- package/dist/Alert/index.css +18 -14
- package/dist/Avatar/Avatar.css +16 -12
- package/dist/Avatar/AvatarGroup.css +19 -15
- package/dist/Avatar/index.css +93 -0
- package/dist/Backdrop/Backdrop.d.ts +1 -1
- package/dist/Backdrop/Backdrop.js +1 -1
- package/dist/Backdrop/{Backdrop.css → index.css} +6 -2
- package/dist/Badge/Badge.d.ts +1 -1
- package/dist/Badge/Badge.js +1 -1
- package/dist/Badge/Badge.types.d.ts +1 -1
- package/dist/Badge/{Badge.css → index.css} +47 -27
- package/dist/Breadcrumb/Breadcrumb.d.ts +1 -1
- package/dist/Breadcrumb/Breadcrumb.js +1 -1
- package/dist/Breadcrumb/index.css +38 -0
- package/dist/Button/Button.d.ts +1 -1
- package/dist/Button/Button.js +3 -2
- package/{es/Button/Button.css → dist/Button/index.css} +69 -38
- package/dist/Calendar/Calendar.d.ts +1 -1
- package/dist/Calendar/Calendar.js +3 -3
- package/dist/Calendar/{Calendar.css → index.css} +35 -31
- package/dist/Card/Card.css +10 -1
- package/dist/Card/CardContent.css +1 -1
- package/dist/Card/CardFooter.css +2 -2
- package/dist/Card/CardHeader.css +4 -3
- package/dist/Card/CardHeader.js +2 -2
- package/dist/Card/index.css +77 -0
- package/dist/Checkbox/Checkbox.d.ts +1 -1
- package/dist/Checkbox/Checkbox.js +2 -2
- package/dist/Checkbox/CheckboxGroup.d.ts +1 -1
- package/dist/Checkbox/CheckboxGroup.js +1 -1
- package/dist/Checkbox/{Checkbox.css → index.css} +14 -10
- package/dist/CitySelector/CitySelector.miniapp.d.ts +0 -1
- package/dist/CitySelector/CitySelector.miniapp.js +0 -1
- package/dist/CitySelector/CitySelectorCore.d.ts +1 -1
- package/dist/CitySelector/CitySelectorCore.js +1 -1
- package/dist/CitySelector/Selector/index.css +4 -4
- package/{es/CitySelector/CitySelector.css → dist/CitySelector/index.css} +31 -27
- package/dist/Collapse/Collapse.d.ts +1 -1
- package/dist/Collapse/Collapse.js +1 -1
- package/dist/CollapsePanel/CollapsePanel.d.ts +1 -1
- package/dist/CollapsePanel/CollapsePanel.js +1 -1
- package/dist/CollapsePanel/{CollapsePanel.css → index.css} +10 -6
- package/dist/Countdown/Countdown.d.ts +1 -1
- package/dist/Countdown/Countdown.js +1 -1
- package/{es/Countdown/Countdown.css → dist/Countdown/index.css} +12 -8
- package/dist/Dialog/index.css +26 -23
- package/dist/Divider/Divider.d.ts +1 -1
- package/dist/Divider/Divider.js +1 -1
- package/{es/Divider/Divider.css → dist/Divider/index.css} +14 -10
- package/dist/Drawer/Drawer.d.ts +1 -1
- package/dist/Drawer/Drawer.js +1 -1
- package/dist/IconButton/IconButton.d.ts +1 -1
- package/dist/IconButton/IconButton.js +3 -3
- package/dist/IconButton/IconButton.types.d.ts +4 -3
- package/{es/IconButton/IconButton.css → dist/IconButton/index.css} +79 -29
- package/dist/Image/index.css +6 -2
- package/dist/Input/Input.d.ts +1 -1
- package/dist/Input/Input.js +2 -2
- package/dist/Input/{Input.css → index.css} +22 -18
- package/dist/ItemSelector/ItemSelector.miniapp.d.ts +0 -1
- package/dist/ItemSelector/ItemSelector.miniapp.js +0 -1
- package/dist/ItemSelector/ItemSelectorCore.d.ts +1 -1
- package/dist/ItemSelector/ItemSelectorCore.js +1 -1
- package/dist/List/List.css +7 -3
- package/dist/List/ListItem.css +3 -3
- package/dist/List/index.css +80 -0
- package/dist/Loading/Loading.d.ts +1 -1
- package/dist/Loading/Loading.js +1 -1
- package/{es/Loading/Loading.css → dist/Loading/index.css} +10 -6
- package/dist/Modal/Modal.d.ts +1 -1
- package/dist/Modal/Modal.js +1 -1
- package/dist/Modal/Modal.miniapp.d.ts +2 -2
- package/dist/Modal/Modal.miniapp.js +1 -1
- package/dist/NavBar/NavBar.d.ts +1 -1
- package/dist/NavBar/NavBar.js +1 -1
- package/dist/NavBar/index.css +65 -0
- package/dist/Picker/Picker.css +21 -16
- package/dist/Picker/Picker.js +1 -1
- package/dist/Picker/Picker.types.d.ts +2 -2
- package/dist/Picker/PickerPanel.css +8 -8
- package/dist/Picker/PickerPanel.js +33 -22
- package/dist/Picker/index.css +116 -0
- package/dist/Popover/Popover.d.ts +1 -1
- package/dist/Popover/Popover.js +1 -1
- package/{es/Popover/Popover.css → dist/Popover/index.css} +32 -28
- package/dist/Progress/Progress.d.ts +1 -1
- package/dist/Progress/Progress.js +1 -1
- package/dist/Progress/index.css +28 -0
- package/dist/Radio/Radio.d.ts +1 -1
- package/dist/Radio/Radio.js +1 -1
- package/dist/Radio/RadioButtonIcon.js +6 -1
- package/dist/Radio/RadioGroup.d.ts +1 -1
- package/dist/Radio/RadioGroup.js +1 -1
- package/dist/Radio/{Radio.css → index.css} +10 -6
- package/dist/Rating/Rating.d.ts +1 -1
- package/dist/Rating/Rating.js +2 -2
- package/dist/Rating/{Rating.css → index.css} +20 -7
- package/dist/ScrollView/ScrollView.d.ts +1 -1
- package/dist/ScrollView/ScrollView.js +1 -1
- package/dist/Select/Select.d.ts +1 -1
- package/dist/Select/Select.js +2 -8
- package/dist/Select/SelectOption.d.ts +1 -1
- package/dist/Select/SelectOption.js +1 -1
- package/{es/Select/Select.css → dist/Select/index.css} +26 -19
- package/dist/Skeleton/Skeleton.d.ts +1 -1
- package/dist/Skeleton/Skeleton.js +1 -1
- package/{es/Skeleton/Skeleton.css → dist/Skeleton/index.css} +7 -3
- package/dist/Slider/Slider.d.ts +1 -1
- package/dist/Slider/Slider.js +2 -2
- package/dist/Slider/index.css +111 -0
- package/dist/Stack/Stack.d.ts +1 -1
- package/dist/Stack/Stack.js +1 -1
- package/dist/Steps/Step.css +14 -14
- package/dist/Steps/Step.js +1 -1
- package/dist/Steps/Steps.css +18 -14
- package/dist/Steps/index.css +199 -0
- package/dist/Swiper/Swiper.d.ts +1 -1
- package/dist/Swiper/Swiper.js +1 -1
- package/dist/Swiper/{Swiper.css → index.css} +6 -2
- package/dist/Switch/Switch.d.ts +1 -1
- package/dist/Switch/Switch.js +1 -1
- package/dist/Switch/Switch.types.d.ts +1 -1
- package/dist/Switch/{Switch.css → index.css} +46 -35
- package/dist/TabBar/TabBar.css +12 -8
- package/dist/TabBar/TabBar.js +1 -1
- package/dist/TabBar/TabBarContext.d.ts +3 -3
- package/dist/TabBar/TabBarItem.css +6 -0
- package/dist/TabBar/TabBarItem.js +3 -3
- package/dist/TabBar/index.css +59 -0
- package/dist/TabBar/index.types.d.ts +3 -3
- package/dist/Tabs/Tab.css +9 -9
- package/dist/Tabs/Tabs.css +24 -4
- package/dist/Tabs/Tabs.js +1 -1
- package/dist/Tabs/index.css +135 -0
- package/dist/Tag/Tag.css +48 -22
- package/dist/Tag/Tag.js +2 -2
- package/dist/Tag/Tag.types.d.ts +4 -4
- package/dist/Tag/TagGroup.css +13 -9
- package/dist/Tag/index.css +182 -0
- package/dist/TextArea/TextArea.d.ts +1 -1
- package/dist/TextArea/TextArea.js +1 -1
- package/dist/TextArea/index.css +57 -0
- package/dist/ThemeProvider/ThemeProvider.js +1 -4
- package/dist/ThemeProvider/ThemeProvider.types.d.ts +5 -10
- package/dist/ThemeProvider/utils/constants.d.ts +1 -1
- package/dist/ThemeProvider/utils/constants.js +4 -1
- package/dist/ThemeProvider/utils/mountTokens.d.ts +4 -4
- package/dist/Toast/Toast.d.ts +1 -1
- package/dist/Toast/Toast.js +5 -5
- package/dist/Toast/index.css +58 -0
- package/dist/Tooltip/Tooltip.d.ts +1 -1
- package/dist/Tooltip/Tooltip.js +1 -1
- package/dist/Tooltip/index.css +95 -0
- package/es/ActionSheet/ActionSheet.css +16 -6
- package/es/ActionSheet/ActionSheetItem.css +11 -17
- package/es/ActionSheet/ActionSheetItem.js +1 -1
- package/es/ActionSheet/ActionSheetItem.types.d.ts +2 -2
- package/es/ActionSheet/index.css +89 -0
- package/es/Alert/Alert.types.d.ts +3 -3
- package/es/Alert/index.css +18 -14
- package/es/Avatar/Avatar.css +16 -12
- package/es/Avatar/AvatarGroup.css +19 -15
- package/es/Avatar/index.css +93 -0
- package/es/Backdrop/Backdrop.d.ts +1 -1
- package/es/Backdrop/Backdrop.js +1 -1
- package/es/Backdrop/{Backdrop.css → index.css} +6 -2
- package/es/Badge/Badge.d.ts +1 -1
- package/es/Badge/Badge.js +1 -1
- package/es/Badge/Badge.types.d.ts +1 -1
- package/es/Badge/{Badge.css → index.css} +47 -27
- package/es/Breadcrumb/Breadcrumb.d.ts +1 -1
- package/es/Breadcrumb/Breadcrumb.js +1 -1
- package/es/Breadcrumb/index.css +38 -0
- package/es/Button/Button.d.ts +1 -1
- package/es/Button/Button.js +3 -2
- package/{dist/Button/Button.css → es/Button/index.css} +69 -38
- package/es/Calendar/Calendar.d.ts +1 -1
- package/es/Calendar/Calendar.js +3 -3
- package/es/Calendar/{Calendar.css → index.css} +35 -31
- package/es/Card/Card.css +10 -1
- package/es/Card/CardContent.css +1 -1
- package/es/Card/CardFooter.css +2 -2
- package/es/Card/CardHeader.css +4 -3
- package/es/Card/CardHeader.js +2 -2
- package/es/Card/index.css +77 -0
- package/es/Checkbox/Checkbox.d.ts +1 -1
- package/es/Checkbox/Checkbox.js +2 -2
- package/es/Checkbox/CheckboxGroup.d.ts +1 -1
- package/es/Checkbox/CheckboxGroup.js +1 -1
- package/es/Checkbox/{Checkbox.css → index.css} +14 -10
- package/es/CitySelector/CitySelector.miniapp.d.ts +0 -1
- package/es/CitySelector/CitySelector.miniapp.js +0 -1
- package/es/CitySelector/CitySelectorCore.d.ts +1 -1
- package/es/CitySelector/CitySelectorCore.js +1 -1
- package/es/CitySelector/Selector/index.css +4 -4
- package/{dist/CitySelector/CitySelector.css → es/CitySelector/index.css} +31 -27
- package/es/Collapse/Collapse.d.ts +1 -1
- package/es/Collapse/Collapse.js +1 -1
- package/es/CollapsePanel/CollapsePanel.d.ts +1 -1
- package/es/CollapsePanel/CollapsePanel.js +1 -1
- package/es/CollapsePanel/{CollapsePanel.css → index.css} +10 -6
- package/es/Countdown/Countdown.d.ts +1 -1
- package/es/Countdown/Countdown.js +1 -1
- package/{dist/Countdown/Countdown.css → es/Countdown/index.css} +12 -8
- package/es/Dialog/index.css +26 -23
- package/es/Divider/Divider.d.ts +1 -1
- package/es/Divider/Divider.js +1 -1
- package/{dist/Divider/Divider.css → es/Divider/index.css} +14 -10
- package/es/Drawer/Drawer.d.ts +1 -1
- package/es/Drawer/Drawer.js +1 -1
- package/es/IconButton/IconButton.d.ts +1 -1
- package/es/IconButton/IconButton.js +3 -3
- package/es/IconButton/IconButton.types.d.ts +4 -3
- package/{dist/IconButton/IconButton.css → es/IconButton/index.css} +79 -29
- package/es/Image/index.css +6 -2
- package/es/Input/Input.d.ts +1 -1
- package/es/Input/Input.js +2 -2
- package/es/Input/{Input.css → index.css} +22 -18
- package/es/ItemSelector/ItemSelector.miniapp.d.ts +0 -1
- package/es/ItemSelector/ItemSelector.miniapp.js +0 -1
- package/es/ItemSelector/ItemSelectorCore.d.ts +1 -1
- package/es/ItemSelector/ItemSelectorCore.js +1 -1
- package/es/List/List.css +7 -3
- package/es/List/ListItem.css +3 -3
- package/es/List/index.css +80 -0
- package/es/Loading/Loading.d.ts +1 -1
- package/es/Loading/Loading.js +1 -1
- package/{dist/Loading/Loading.css → es/Loading/index.css} +10 -6
- package/es/Modal/Modal.d.ts +1 -1
- package/es/Modal/Modal.js +1 -1
- package/es/Modal/Modal.miniapp.d.ts +2 -2
- package/es/Modal/Modal.miniapp.js +1 -1
- package/es/NavBar/NavBar.d.ts +1 -1
- package/es/NavBar/NavBar.js +1 -1
- package/es/NavBar/index.css +65 -0
- package/es/Picker/Picker.css +21 -16
- package/es/Picker/Picker.js +1 -1
- package/es/Picker/Picker.types.d.ts +2 -2
- package/es/Picker/PickerPanel.css +8 -8
- package/es/Picker/PickerPanel.js +46 -24
- package/es/Picker/index.css +116 -0
- package/es/Popover/Popover.d.ts +1 -1
- package/es/Popover/Popover.js +1 -1
- package/{dist/Popover/Popover.css → es/Popover/index.css} +32 -28
- package/es/Progress/Progress.d.ts +1 -1
- package/es/Progress/Progress.js +1 -1
- package/es/Progress/index.css +28 -0
- package/es/Radio/Radio.d.ts +1 -1
- package/es/Radio/Radio.js +1 -1
- package/es/Radio/RadioButtonIcon.js +6 -1
- package/es/Radio/RadioGroup.d.ts +1 -1
- package/es/Radio/RadioGroup.js +1 -1
- package/es/Radio/{Radio.css → index.css} +10 -6
- package/es/Rating/Rating.d.ts +1 -1
- package/es/Rating/Rating.js +2 -2
- package/es/Rating/{Rating.css → index.css} +20 -7
- package/es/ScrollView/ScrollView.d.ts +1 -1
- package/es/ScrollView/ScrollView.js +1 -1
- package/es/Select/Select.d.ts +1 -1
- package/es/Select/Select.js +2 -8
- package/es/Select/SelectOption.d.ts +1 -1
- package/es/Select/SelectOption.js +1 -1
- package/{dist/Select/Select.css → es/Select/index.css} +26 -19
- package/es/Skeleton/Skeleton.d.ts +1 -1
- package/es/Skeleton/Skeleton.js +1 -1
- package/{dist/Skeleton/Skeleton.css → es/Skeleton/index.css} +7 -3
- package/es/Slider/Slider.d.ts +1 -1
- package/es/Slider/Slider.js +2 -2
- package/es/Slider/index.css +111 -0
- package/es/Stack/Stack.d.ts +1 -1
- package/es/Stack/Stack.js +1 -1
- package/es/Steps/Step.css +14 -14
- package/es/Steps/Step.js +1 -1
- package/es/Steps/Steps.css +18 -14
- package/es/Steps/index.css +199 -0
- package/es/Swiper/Swiper.d.ts +1 -1
- package/es/Swiper/Swiper.js +1 -1
- package/es/Swiper/{Swiper.css → index.css} +6 -2
- package/es/Switch/Switch.d.ts +1 -1
- package/es/Switch/Switch.js +1 -1
- package/es/Switch/Switch.types.d.ts +1 -1
- package/es/Switch/{Switch.css → index.css} +46 -35
- package/es/TabBar/TabBar.css +12 -8
- package/es/TabBar/TabBar.js +1 -1
- package/es/TabBar/TabBarContext.d.ts +3 -3
- package/es/TabBar/TabBarItem.css +6 -0
- package/es/TabBar/TabBarItem.js +2 -2
- package/es/TabBar/index.css +59 -0
- package/es/TabBar/index.types.d.ts +3 -3
- package/es/Tabs/Tab.css +9 -9
- package/es/Tabs/Tabs.css +24 -4
- package/es/Tabs/Tabs.js +1 -1
- package/es/Tabs/index.css +135 -0
- package/es/Tag/Tag.css +48 -22
- package/es/Tag/Tag.js +2 -2
- package/es/Tag/Tag.types.d.ts +4 -4
- package/es/Tag/TagGroup.css +13 -9
- package/es/Tag/index.css +182 -0
- package/es/TextArea/TextArea.d.ts +1 -1
- package/es/TextArea/TextArea.js +1 -1
- package/es/TextArea/index.css +57 -0
- package/es/ThemeProvider/ThemeProvider.js +1 -4
- package/es/ThemeProvider/ThemeProvider.types.d.ts +5 -10
- package/es/ThemeProvider/utils/constants.d.ts +1 -1
- package/es/ThemeProvider/utils/constants.js +4 -1
- package/es/ThemeProvider/utils/mountTokens.d.ts +4 -4
- package/es/Toast/Toast.d.ts +1 -1
- package/es/Toast/Toast.js +5 -5
- package/es/Toast/index.css +58 -0
- package/es/Tooltip/Tooltip.d.ts +1 -1
- package/es/Tooltip/Tooltip.js +1 -1
- package/es/Tooltip/index.css +95 -0
- package/package.json +13 -5
- package/dist/Breadcrumb/Breadcrumb.css +0 -34
- package/dist/CitySelector/miniapp.css +0 -4
- package/dist/ItemSelector/miniapp.css +0 -4
- package/dist/NavBar/NavBar.css +0 -61
- package/dist/Progress/Progress.css +0 -24
- package/dist/Slider/Slider.css +0 -106
- package/dist/TextArea/TextArea.css +0 -53
- package/dist/Toast/Toast.css +0 -54
- package/dist/Tooltip/Tooltip.css +0 -91
- package/es/Breadcrumb/Breadcrumb.css +0 -34
- package/es/CitySelector/miniapp.css +0 -4
- package/es/ItemSelector/miniapp.css +0 -4
- package/es/NavBar/NavBar.css +0 -61
- package/es/Progress/Progress.css +0 -24
- package/es/Slider/Slider.css +0 -106
- package/es/TextArea/TextArea.css +0 -53
- package/es/Toast/Toast.css +0 -54
- package/es/Tooltip/Tooltip.css +0 -91
- /package/dist/Collapse/{Collapse.css → index.css} +0 -0
- /package/dist/Drawer/{Drawer.css → index.css} +0 -0
- /package/dist/ItemSelector/{ItemSelector.css → index.css} +0 -0
- /package/dist/Modal/{Modal.css → index.css} +0 -0
- /package/dist/ScrollView/{ScrollView.css → index.css} +0 -0
- /package/dist/Stack/{Stack.css → index.css} +0 -0
- /package/es/Collapse/{Collapse.css → index.css} +0 -0
- /package/es/Drawer/{Drawer.css → index.css} +0 -0
- /package/es/ItemSelector/{ItemSelector.css → index.css} +0 -0
- /package/es/Modal/{Modal.css → index.css} +0 -0
- /package/es/ScrollView/{ScrollView.css → index.css} +0 -0
- /package/es/Stack/{Stack.css → index.css} +0 -0
|
@@ -1,7 +1,17 @@
|
|
|
1
|
+
:root,
|
|
2
|
+
page,
|
|
3
|
+
xhs-page {
|
|
4
|
+
--bui-action-sheet-extra-line-height: 23px;
|
|
5
|
+
--bui-action-sheet-extra-padding: var(--bui-spacing-xl);
|
|
6
|
+
--bui-action-sheet-extra-margin: 0 var(--bui-spacing-xl);
|
|
7
|
+
--bui-action-sheet-item-padding: var(--bui-spacing-xl);
|
|
8
|
+
--bui-action-sheet-item-font-size: var(--bui-title-size-2);
|
|
9
|
+
--bui-action-sheet-item-line-height: 24px;
|
|
10
|
+
--bui-action-sheet-item-color: var(--bui-color-fg-default);
|
|
11
|
+
--bui-action-sheet-item-margin: 0 var(--bui-spacing-xl);
|
|
12
|
+
--bui-action-sheet-item-description-line-height: 19px;
|
|
13
|
+
}
|
|
1
14
|
.bui-action-sheet {
|
|
2
|
-
--extra-line-height: var(--bui-action-sheet-extra-line-height, 23px);
|
|
3
|
-
--extra-padding: var(--bui-action-sheet-extra-padding, var(--bui-spacing-xl));
|
|
4
|
-
--extra-margin: var(--bui-action-sheet-extra-margin, 0 var(--bui-spacing-xl));
|
|
5
15
|
font-family: var(--bui-font-family);
|
|
6
16
|
}
|
|
7
17
|
.bui-action-sheet-content {
|
|
@@ -20,11 +30,11 @@
|
|
|
20
30
|
}
|
|
21
31
|
.bui-action-sheet-extra {
|
|
22
32
|
font-size: var(--bui-text-size-1);
|
|
23
|
-
line-height: var(--extra-line-height);
|
|
24
|
-
padding: var(--extra-padding);
|
|
33
|
+
line-height: var(--bui-action-sheet-extra-line-height);
|
|
34
|
+
padding: var(--bui-action-sheet-extra-padding);
|
|
25
35
|
color: var(--bui-color-fg-muted);
|
|
26
36
|
background: var(--bui-color-bg-view);
|
|
27
37
|
text-align: center;
|
|
28
38
|
border-bottom: 1px solid var(--bui-color-border-default);
|
|
29
|
-
margin: var(--extra-margin);
|
|
39
|
+
margin: var(--bui-action-sheet-extra-margin);
|
|
30
40
|
}
|
|
@@ -1,21 +1,15 @@
|
|
|
1
1
|
.bui-action-sheet-item {
|
|
2
|
-
--padding: var(--bui-action-sheet-item-padding, var(--bui-spacing-xl));
|
|
3
|
-
--font-size: var(--bui-action-sheet-item-font-size, var(--bui-title-size-2));
|
|
4
|
-
--line-height: var(--bui-action-sheet-item-line-height, 24px);
|
|
5
|
-
--color: var(--bui-action-sheet-item-color, var(--bui-color-fg-default));
|
|
6
|
-
--margin: var(--bui-action-sheet-item-margin, 0 var(--bui-spacing-xl));
|
|
7
|
-
--description-line-height: var(--bui-action-sheet-item-description-line-height, 19px);
|
|
8
2
|
font-family: var(--bui-font-family);
|
|
9
3
|
position: relative;
|
|
10
|
-
padding: var(--padding);
|
|
4
|
+
padding: var(--bui-action-sheet-item-padding);
|
|
11
5
|
cursor: pointer;
|
|
12
6
|
background: var(--bui-color-bg-view);
|
|
13
|
-
font-size: var(--font-size);
|
|
7
|
+
font-size: var(--bui-action-sheet-item-font-size);
|
|
14
8
|
text-align: center;
|
|
15
|
-
line-height: var(--line-height);
|
|
16
|
-
color: var(--color);
|
|
9
|
+
line-height: var(--bui-action-sheet-item-line-height);
|
|
10
|
+
color: var(--bui-action-sheet-item-color);
|
|
17
11
|
border-top: 1px solid var(--bui-color-border-default);
|
|
18
|
-
margin: var(--margin);
|
|
12
|
+
margin: var(--bui-action-sheet-item-margin);
|
|
19
13
|
}
|
|
20
14
|
.bui-action-sheet-item:first-child {
|
|
21
15
|
border-top: none;
|
|
@@ -24,19 +18,19 @@
|
|
|
24
18
|
background-color: var(--bui-color-bg-default);
|
|
25
19
|
}
|
|
26
20
|
.bui-action-sheet-item-primary {
|
|
27
|
-
|
|
21
|
+
color: var(--bui-color-primary);
|
|
28
22
|
}
|
|
29
23
|
.bui-action-sheet-item-info {
|
|
30
|
-
|
|
24
|
+
color: var(--bui-color-info);
|
|
31
25
|
}
|
|
32
26
|
.bui-action-sheet-item-success {
|
|
33
|
-
|
|
27
|
+
color: var(--bui-color-success);
|
|
34
28
|
}
|
|
35
29
|
.bui-action-sheet-item-warning {
|
|
36
|
-
|
|
30
|
+
color: var(--bui-color-warning);
|
|
37
31
|
}
|
|
38
32
|
.bui-action-sheet-item-danger {
|
|
39
|
-
|
|
33
|
+
color: var(--bui-color-danger);
|
|
40
34
|
}
|
|
41
35
|
.bui-action-sheet-item-disabled {
|
|
42
36
|
pointer-events: none;
|
|
@@ -50,6 +44,6 @@
|
|
|
50
44
|
}
|
|
51
45
|
.bui-action-sheet-item-description {
|
|
52
46
|
font-size: var(--bui-text-size-2);
|
|
53
|
-
line-height: var(--description-line-height);
|
|
47
|
+
line-height: var(--bui-action-sheet-item-description-line-height);
|
|
54
48
|
color: var(--bui-color-fg-subtle);
|
|
55
49
|
}
|
|
@@ -9,9 +9,9 @@ export type ActionSheetItemProps<D extends React.ElementType = 'div', P = {}> =
|
|
|
9
9
|
disabled?: boolean;
|
|
10
10
|
/**
|
|
11
11
|
* 颜色
|
|
12
|
-
* @default '
|
|
12
|
+
* @default 'neutral'
|
|
13
13
|
*/
|
|
14
|
-
color?: ThemeColor | '
|
|
14
|
+
color?: Exclude<ThemeColor, 'dark' | 'light'>;
|
|
15
15
|
/**
|
|
16
16
|
* 是否加粗
|
|
17
17
|
* @default false
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
:root,
|
|
2
|
+
page,
|
|
3
|
+
xhs-page {
|
|
4
|
+
--bui-action-sheet-extra-line-height: 23px;
|
|
5
|
+
--bui-action-sheet-extra-padding: var(--bui-spacing-xl);
|
|
6
|
+
--bui-action-sheet-extra-margin: 0 var(--bui-spacing-xl);
|
|
7
|
+
--bui-action-sheet-item-padding: var(--bui-spacing-xl);
|
|
8
|
+
--bui-action-sheet-item-font-size: var(--bui-title-size-2);
|
|
9
|
+
--bui-action-sheet-item-line-height: 24px;
|
|
10
|
+
--bui-action-sheet-item-color: var(--bui-color-fg-default);
|
|
11
|
+
--bui-action-sheet-item-margin: 0 var(--bui-spacing-xl);
|
|
12
|
+
--bui-action-sheet-item-description-line-height: 19px;
|
|
13
|
+
}
|
|
14
|
+
.bui-action-sheet {
|
|
15
|
+
font-family: var(--bui-font-family);
|
|
16
|
+
}
|
|
17
|
+
.bui-action-sheet-content {
|
|
18
|
+
padding-bottom: constant(safe-area-inset-bottom);
|
|
19
|
+
padding-bottom: env(safe-area-inset-bottom);
|
|
20
|
+
border-top-left-radius: var(--bui-shape-radius-drawer);
|
|
21
|
+
border-top-right-radius: var(--bui-shape-radius-drawer);
|
|
22
|
+
overflow: hidden;
|
|
23
|
+
}
|
|
24
|
+
.bui-action-sheet .bui-action-sheet-cancel {
|
|
25
|
+
border-top: none;
|
|
26
|
+
}
|
|
27
|
+
.bui-action-sheet-gap {
|
|
28
|
+
height: var(--bui-spacing-md);
|
|
29
|
+
background-color: var(--bui-color-bg-default);
|
|
30
|
+
}
|
|
31
|
+
.bui-action-sheet-extra {
|
|
32
|
+
font-size: var(--bui-text-size-1);
|
|
33
|
+
line-height: var(--bui-action-sheet-extra-line-height);
|
|
34
|
+
padding: var(--bui-action-sheet-extra-padding);
|
|
35
|
+
color: var(--bui-color-fg-muted);
|
|
36
|
+
background: var(--bui-color-bg-view);
|
|
37
|
+
text-align: center;
|
|
38
|
+
border-bottom: 1px solid var(--bui-color-border-default);
|
|
39
|
+
margin: var(--bui-action-sheet-extra-margin);
|
|
40
|
+
}
|
|
41
|
+
.bui-action-sheet-item {
|
|
42
|
+
font-family: var(--bui-font-family);
|
|
43
|
+
position: relative;
|
|
44
|
+
padding: var(--bui-action-sheet-item-padding);
|
|
45
|
+
cursor: pointer;
|
|
46
|
+
background: var(--bui-color-bg-view);
|
|
47
|
+
font-size: var(--bui-action-sheet-item-font-size);
|
|
48
|
+
text-align: center;
|
|
49
|
+
line-height: var(--bui-action-sheet-item-line-height);
|
|
50
|
+
color: var(--bui-action-sheet-item-color);
|
|
51
|
+
border-top: 1px solid var(--bui-color-border-default);
|
|
52
|
+
margin: var(--bui-action-sheet-item-margin);
|
|
53
|
+
}
|
|
54
|
+
.bui-action-sheet-item:first-child {
|
|
55
|
+
border-top: none;
|
|
56
|
+
}
|
|
57
|
+
.bui-action-sheet-item:active {
|
|
58
|
+
background-color: var(--bui-color-bg-default);
|
|
59
|
+
}
|
|
60
|
+
.bui-action-sheet-item-primary {
|
|
61
|
+
color: var(--bui-color-primary);
|
|
62
|
+
}
|
|
63
|
+
.bui-action-sheet-item-info {
|
|
64
|
+
color: var(--bui-color-info);
|
|
65
|
+
}
|
|
66
|
+
.bui-action-sheet-item-success {
|
|
67
|
+
color: var(--bui-color-success);
|
|
68
|
+
}
|
|
69
|
+
.bui-action-sheet-item-warning {
|
|
70
|
+
color: var(--bui-color-warning);
|
|
71
|
+
}
|
|
72
|
+
.bui-action-sheet-item-danger {
|
|
73
|
+
color: var(--bui-color-danger);
|
|
74
|
+
}
|
|
75
|
+
.bui-action-sheet-item-disabled {
|
|
76
|
+
pointer-events: none;
|
|
77
|
+
}
|
|
78
|
+
.bui-action-sheet-item-disabled .bui-action-sheet-item-content,
|
|
79
|
+
.bui-action-sheet-item-disabled .bui-action-sheet-item-description {
|
|
80
|
+
opacity: 0.5;
|
|
81
|
+
}
|
|
82
|
+
.bui-action-sheet-item-bold {
|
|
83
|
+
font-weight: bold;
|
|
84
|
+
}
|
|
85
|
+
.bui-action-sheet-item-description {
|
|
86
|
+
font-size: var(--bui-text-size-2);
|
|
87
|
+
line-height: var(--bui-action-sheet-item-description-line-height);
|
|
88
|
+
color: var(--bui-color-fg-subtle);
|
|
89
|
+
}
|
|
@@ -5,7 +5,7 @@ export type AlertProps<D extends React.ElementType = 'div', P = {}> = OverridePr
|
|
|
5
5
|
/**
|
|
6
6
|
* 指定警告提示的样式
|
|
7
7
|
*/
|
|
8
|
-
color?: ThemeColor
|
|
8
|
+
color?: Exclude<ThemeColor, 'light' | 'neutral' | 'dark'>;
|
|
9
9
|
/**
|
|
10
10
|
* 自定义图标,icon为false时隐藏图标
|
|
11
11
|
*/
|
|
@@ -34,7 +34,7 @@ export type AlertIconProps<D extends React.ElementType = 'div', P = {}> = Overri
|
|
|
34
34
|
/**
|
|
35
35
|
* 指定警告提示的样式
|
|
36
36
|
*/
|
|
37
|
-
color?: ThemeColor
|
|
37
|
+
color?: Exclude<ThemeColor, 'light' | 'neutral' | 'dark'>;
|
|
38
38
|
/**
|
|
39
39
|
* 自定义图标,icon为false时隐藏图标
|
|
40
40
|
*/
|
|
@@ -47,7 +47,7 @@ export type AlertActionProps<D extends React.ElementType = React.ElementType, P
|
|
|
47
47
|
/**
|
|
48
48
|
* 指定警告提示的样式
|
|
49
49
|
*/
|
|
50
|
-
color?: ThemeColor
|
|
50
|
+
color?: Exclude<ThemeColor, 'light' | 'neutral' | 'dark'>;
|
|
51
51
|
/**
|
|
52
52
|
* 警告提示操作区
|
|
53
53
|
*/
|
package/dist/Alert/index.css
CHANGED
|
@@ -1,16 +1,20 @@
|
|
|
1
|
+
:root,
|
|
2
|
+
page,
|
|
3
|
+
xhs-page {
|
|
4
|
+
--bui-alert-content-marquee-speed: 10s;
|
|
5
|
+
--bui-alert-padding: 8px;
|
|
6
|
+
--bui-alert-line-height: 16px;
|
|
7
|
+
--bui-alert-default-icon-font-size: 15px;
|
|
8
|
+
--bui-alert-action-margin-left: 16px;
|
|
9
|
+
--bui-alert-icon-margin-right: var(--bui-spacing-xs);
|
|
10
|
+
--bui-alert-icon-font-size: var(--bui-title-size-4);
|
|
11
|
+
}
|
|
1
12
|
.bui-alert {
|
|
2
|
-
--content-marquee-speed: var(--bui-alert-content-marquee-speed, 10s);
|
|
3
|
-
--padding: var(--bui-alert-padding, 8px);
|
|
4
|
-
--line-height: var(--bui-alert-line-height, 16px);
|
|
5
|
-
--default-icon-font-size: var(--bui-alert-default-icon-font-size, 15px);
|
|
6
|
-
--action-margin-left: var(--bui-alert-action-margin-left, 16px);
|
|
7
|
-
--icon-margin-right: var(--bui-alert-icon-margin-right, var(--bui-spacing-xs));
|
|
8
|
-
--icon-font-size: var(--bui-alert-icon-font-size, var(--bui-title-size-4));
|
|
9
13
|
display: flex;
|
|
10
|
-
padding: var(--padding);
|
|
14
|
+
padding: var(--bui-alert-padding);
|
|
11
15
|
border-radius: var(--bui-shape-radius-default);
|
|
12
16
|
align-items: center;
|
|
13
|
-
line-height: var(--line-height);
|
|
17
|
+
line-height: var(--bui-alert-line-height);
|
|
14
18
|
font-size: var(--bui-text-size-3);
|
|
15
19
|
font-family: var(--bui-font-family);
|
|
16
20
|
}
|
|
@@ -55,14 +59,14 @@
|
|
|
55
59
|
color: var(--bui-color-warning);
|
|
56
60
|
}
|
|
57
61
|
.bui-alert-default-icon {
|
|
58
|
-
font-size: var(--default-icon-font-size);
|
|
62
|
+
font-size: var(--bui-alert-default-icon-font-size);
|
|
59
63
|
}
|
|
60
64
|
.bui-alert-content {
|
|
61
65
|
flex-grow: 1;
|
|
62
66
|
}
|
|
63
67
|
.bui-alert-action {
|
|
64
68
|
flex-shrink: 0;
|
|
65
|
-
margin-left: var(--action-margin-left);
|
|
69
|
+
margin-left: var(--bui-alert-action-margin-left);
|
|
66
70
|
word-wrap: keep-all;
|
|
67
71
|
font-size: var(--bui-text-size-3);
|
|
68
72
|
cursor: pointer;
|
|
@@ -74,9 +78,9 @@
|
|
|
74
78
|
.bui-alert-icon {
|
|
75
79
|
display: flex;
|
|
76
80
|
align-items: center;
|
|
77
|
-
margin-right: var(--icon-margin-right);
|
|
81
|
+
margin-right: var(--bui-alert-icon-margin-right);
|
|
78
82
|
vertical-align: middle;
|
|
79
|
-
font-size: var(--icon-font-size);
|
|
83
|
+
font-size: var(--bui-alert-icon-font-size);
|
|
80
84
|
cursor: pointer;
|
|
81
85
|
}
|
|
82
86
|
.bui-alert-marquee {
|
|
@@ -86,7 +90,7 @@
|
|
|
86
90
|
display: inline-block;
|
|
87
91
|
padding-left: 100%;
|
|
88
92
|
white-space: nowrap;
|
|
89
|
-
animation: marquee var(--content-marquee-speed) linear infinite both;
|
|
93
|
+
animation: marquee var(--bui-alert-content-marquee-speed) linear infinite both;
|
|
90
94
|
}
|
|
91
95
|
@keyframes marquee {
|
|
92
96
|
100% {
|
package/dist/Avatar/Avatar.css
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
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
|
+
}
|
|
1
9
|
.bui-avatar {
|
|
2
|
-
--large-size: var(--bui-avatar-large-size, 60px);
|
|
3
|
-
--medium-size: var(--bui-avatar-medium-size, 42px);
|
|
4
|
-
--small-size: var(--bui-avatar-small-size, 30px);
|
|
5
|
-
--xsmall-size: var(--bui-avatar-xsmall-size, 24px);
|
|
6
10
|
display: flex;
|
|
7
11
|
justify-content: center;
|
|
8
12
|
align-items: center;
|
|
@@ -16,20 +20,20 @@
|
|
|
16
20
|
text-overflow: ellipsis;
|
|
17
21
|
}
|
|
18
22
|
.bui-avatar-large {
|
|
19
|
-
width: var(--large-size);
|
|
20
|
-
height: var(--large-size);
|
|
23
|
+
width: var(--bui-avatar-large-size);
|
|
24
|
+
height: var(--bui-avatar-large-size);
|
|
21
25
|
}
|
|
22
26
|
.bui-avatar-medium {
|
|
23
|
-
width: var(--medium-size);
|
|
24
|
-
height: var(--medium-size);
|
|
27
|
+
width: var(--bui-avatar-medium-size);
|
|
28
|
+
height: var(--bui-avatar-medium-size);
|
|
25
29
|
}
|
|
26
30
|
.bui-avatar-small {
|
|
27
|
-
width: var(--small-size);
|
|
28
|
-
height: var(--small-size);
|
|
31
|
+
width: var(--bui-avatar-small-size);
|
|
32
|
+
height: var(--bui-avatar-small-size);
|
|
29
33
|
}
|
|
30
34
|
.bui-avatar-xsmall {
|
|
31
|
-
width: var(--xsmall-size);
|
|
32
|
-
height: var(--xsmall-size);
|
|
35
|
+
width: var(--bui-avatar-xsmall-size);
|
|
36
|
+
height: var(--bui-avatar-xsmall-size);
|
|
33
37
|
}
|
|
34
38
|
.bui-avatar-rounded {
|
|
35
39
|
border-radius: 50%;
|
|
@@ -1,38 +1,42 @@
|
|
|
1
|
+
:root,
|
|
2
|
+
page,
|
|
3
|
+
xhs-page {
|
|
4
|
+
--bui-avatar-group-xsmall-margin-left: -5px;
|
|
5
|
+
--bui-avatar-group-small-margin-left: -9px;
|
|
6
|
+
--bui-avatar-group-small-box-shadow: 0 0 0 1px var(--bui-color-bg-view);
|
|
7
|
+
--bui-avatar-group-medium-margin-left: -13px;
|
|
8
|
+
--bui-avatar-group-medium-box-shadow: 0 0 0 2px var(--bui-color-bg-view);
|
|
9
|
+
--bui-avatar-group-large-margin-left: -21px;
|
|
10
|
+
--bui-avatar-group-large-box-shadow: 0 0 0 3px var(--bui-color-bg-view);
|
|
11
|
+
}
|
|
1
12
|
.bui-avatar-group {
|
|
2
|
-
--xsmall-margin-left: var(--bui-avatar-group-xsmall-margin-left, -5px);
|
|
3
|
-
--small-margin-left: var(--bui-avatar-group-small-margin-left, -9px);
|
|
4
|
-
--small-box-shadow: var(--bui-avatar-group-small-box-shadow, 0 0 0 1px var(--bui-color-bg-view));
|
|
5
|
-
--medium-margin-left: var(--bui-avatar-group-medium-margin-left, -13px);
|
|
6
|
-
--medium-box-shadow: var(--bui-avatar-group-medium-box-shadow, 0 0 0 2px var(--bui-color-bg-view));
|
|
7
|
-
--large-margin-left: var(--bui-avatar-group-large-margin-left, -21px);
|
|
8
|
-
--large-box-shadow: var(--bui-avatar-group-large-box-shadow, 0 0 0 3px var(--bui-color-bg-view));
|
|
9
13
|
display: flex;
|
|
10
14
|
flex-direction: row;
|
|
11
15
|
font-family: var(--bui-font-family);
|
|
12
16
|
}
|
|
13
17
|
.bui-avatar-group-avatar,
|
|
14
18
|
.bui-avatar-group-extra {
|
|
15
|
-
box-shadow: var(--medium-box-shadow);
|
|
19
|
+
box-shadow: var(--bui-avatar-group-medium-box-shadow);
|
|
16
20
|
color: var(--bui-color-fg-default);
|
|
17
21
|
}
|
|
18
22
|
.bui-avatar-group .bui-avatar-xsmall:not(:first-child) {
|
|
19
|
-
margin-left: var(--xsmall-margin-left);
|
|
23
|
+
margin-left: var(--bui-avatar-group-xsmall-margin-left);
|
|
20
24
|
}
|
|
21
25
|
.bui-avatar-group .bui-avatar-small {
|
|
22
|
-
box-shadow: var(--small-box-shadow);
|
|
26
|
+
box-shadow: var(--bui-avatar-group-small-box-shadow);
|
|
23
27
|
}
|
|
24
28
|
.bui-avatar-group .bui-avatar-small:not(:first-child) {
|
|
25
|
-
margin-left: var(--small-margin-left);
|
|
29
|
+
margin-left: var(--bui-avatar-group-small-margin-left);
|
|
26
30
|
}
|
|
27
31
|
.bui-avatar-group .bui-avatar-large {
|
|
28
|
-
box-shadow: var(--large-box-shadow);
|
|
32
|
+
box-shadow: var(--bui-avatar-group-large-box-shadow);
|
|
29
33
|
}
|
|
30
34
|
.bui-avatar-group .bui-avatar-large:not(:first-child) {
|
|
31
|
-
margin-left: var(--large-margin-left);
|
|
35
|
+
margin-left: var(--bui-avatar-group-large-margin-left);
|
|
32
36
|
}
|
|
33
37
|
.bui-avatar-group .bui-avatar-medium {
|
|
34
|
-
box-shadow: var(--medium-box-shadow);
|
|
38
|
+
box-shadow: var(--bui-avatar-group-medium-box-shadow);
|
|
35
39
|
}
|
|
36
40
|
.bui-avatar-group .bui-avatar-medium:not(:first-child) {
|
|
37
|
-
margin-left: var(--medium-margin-left);
|
|
41
|
+
margin-left: var(--bui-avatar-group-medium-margin-left);
|
|
38
42
|
}
|
|
@@ -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;
|
|
@@ -59,7 +59,7 @@ module.exports = __toCommonJS(Backdrop_exports);
|
|
|
59
59
|
var import_clsx = __toESM(require("clsx"));
|
|
60
60
|
var import_react = __toESM(require("react"));
|
|
61
61
|
var import_Fade = __toESM(require("../Fade"));
|
|
62
|
-
var
|
|
62
|
+
var import_index = require("./index.css");
|
|
63
63
|
const prefixCls = "bui-backdrop";
|
|
64
64
|
const Backdrop = /* @__PURE__ */ import_react.default.forwardRef(
|
|
65
65
|
(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/dist/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/dist/Badge/Badge.js
CHANGED
|
@@ -58,7 +58,7 @@ __export(Badge_exports, {
|
|
|
58
58
|
module.exports = __toCommonJS(Badge_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-badge";
|
|
63
63
|
const Badge = /* @__PURE__ */ import_react.default.forwardRef((props, ref) => {
|
|
64
64
|
const _a = props, {
|