@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
|
@@ -10,14 +10,14 @@ export type TabBarProps<D extends React.ElementType = 'div', P = {}> = OverrideP
|
|
|
10
10
|
current?: number;
|
|
11
11
|
/**
|
|
12
12
|
* 默认文案颜色
|
|
13
|
-
* @default '
|
|
13
|
+
* @default 'neutral'
|
|
14
14
|
*/
|
|
15
|
-
color?: ThemeColor | '
|
|
15
|
+
color?: ThemeColor | 'vip';
|
|
16
16
|
/**
|
|
17
17
|
* 选中文案颜色
|
|
18
18
|
* @default 'primary'
|
|
19
19
|
*/
|
|
20
|
-
activeColor?: ThemeColor | '
|
|
20
|
+
activeColor?: ThemeColor | 'vip';
|
|
21
21
|
/**
|
|
22
22
|
* 变化时回调函数
|
|
23
23
|
*/
|
package/es/Tabs/Tab.css
CHANGED
|
@@ -4,25 +4,25 @@
|
|
|
4
4
|
justify-content: center;
|
|
5
5
|
white-space: nowrap;
|
|
6
6
|
width: min-content;
|
|
7
|
-
height:
|
|
7
|
+
height: var(--bui-tab-height);
|
|
8
8
|
box-sizing: border-box;
|
|
9
9
|
position: relative;
|
|
10
10
|
cursor: pointer;
|
|
11
|
-
font-size: var(--bui-
|
|
11
|
+
font-size: var(--bui-tab-font-size);
|
|
12
12
|
line-height: var(--bui-line-height);
|
|
13
|
-
color: var(--bui-
|
|
13
|
+
color: var(--bui-tab-color);
|
|
14
14
|
padding: var(--bui-tab-padding);
|
|
15
|
-
font-family: var(--bui-
|
|
15
|
+
font-family: var(--bui-font-family);
|
|
16
16
|
}
|
|
17
17
|
.bui-tab-active {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
font-
|
|
18
|
+
color: var(--bui-tab-active-color);
|
|
19
|
+
font-weight: var(--bui-font-weight-bold);
|
|
20
|
+
font-family: var(--bui-tab-active-font-family);
|
|
21
21
|
}
|
|
22
22
|
.bui-tab-miniapp-active {
|
|
23
|
-
|
|
23
|
+
color: var(--bui-tab-active-color);
|
|
24
24
|
line-height: 1.5;
|
|
25
|
-
font-weight: var(--bui-font-weight-
|
|
25
|
+
font-weight: var(--bui-font-weight-bold);
|
|
26
26
|
position: relative;
|
|
27
27
|
}
|
|
28
28
|
.bui-tab-miniapp-active-line {
|
package/es/Tabs/Tabs.css
CHANGED
|
@@ -1,6 +1,26 @@
|
|
|
1
|
+
:root,
|
|
2
|
+
page,
|
|
3
|
+
xhs-page {
|
|
4
|
+
--bui-tabs-height: 39px;
|
|
5
|
+
--bui-tabs-font-weight: var(--bui-font-weight-medium);
|
|
6
|
+
--bui-tabs-indicator-background: var(--bui-color-primary);
|
|
7
|
+
--bui-tabs-indicator-height: 3PX;
|
|
8
|
+
--bui-tabs-indicator-width: 24px;
|
|
9
|
+
--bui-tabs-indicator-border-radius: 3px 3px 0 0;
|
|
10
|
+
--bui-tabs-indicator-bottom: 0;
|
|
11
|
+
--bui-tabs-indicator-box-shadow: none;
|
|
12
|
+
--bui-tabs-mask-width: 12px;
|
|
13
|
+
--bui-tabs-mask-height: 100%;
|
|
14
|
+
--bui-tab-font-size: var(--bui-text-size-1);
|
|
15
|
+
--bui-tab-color: var(--bui-color-fg-subtle);
|
|
16
|
+
--bui-tab-height: 100%;
|
|
17
|
+
--bui-tab-padding: var(--bui-spacing-lg) var(--bui-spacing-lg) 10px;
|
|
18
|
+
--bui-tab-active-color: var(--bui-color-fg-default);
|
|
19
|
+
--bui-tab-active-font-family: var(--bui-font-family-accent, inherit);
|
|
20
|
+
}
|
|
1
21
|
.bui-tabs {
|
|
2
22
|
position: relative;
|
|
3
|
-
font-family: var(--bui-
|
|
23
|
+
font-family: var(--bui-font-family);
|
|
4
24
|
font-weight: var(--bui-tabs-font-weight);
|
|
5
25
|
}
|
|
6
26
|
.bui-tabs-tabs {
|
|
@@ -22,7 +42,7 @@
|
|
|
22
42
|
bottom: var(--bui-tabs-indicator-bottom);
|
|
23
43
|
height: var(--bui-tabs-indicator-height);
|
|
24
44
|
color: var(--bui-color-primary);
|
|
25
|
-
background: var(--bui-tabs-indicator-
|
|
45
|
+
background: var(--bui-tabs-indicator-background);
|
|
26
46
|
border-radius: var(--bui-tabs-indicator-border-radius);
|
|
27
47
|
box-shadow: var(--bui-tabs-indicator-box-shadow);
|
|
28
48
|
}
|
|
@@ -34,8 +54,8 @@
|
|
|
34
54
|
top: 0;
|
|
35
55
|
bottom: 0;
|
|
36
56
|
z-index: 1;
|
|
37
|
-
width:
|
|
38
|
-
height:
|
|
57
|
+
width: var(--bui-tabs-mask-width);
|
|
58
|
+
height: var(--bui-tabs-mask-height);
|
|
39
59
|
pointer-events: none;
|
|
40
60
|
}
|
|
41
61
|
.bui-tabs-mask-left {
|
package/es/Tabs/Tabs.js
CHANGED
|
@@ -174,7 +174,7 @@ const Tabs = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
174
174
|
}),
|
|
175
175
|
style: {
|
|
176
176
|
transition: "transform 0.3s ease-in-out",
|
|
177
|
-
transform: `
|
|
177
|
+
transform: `translate(${indicatorData.x}px, 0px)`
|
|
178
178
|
}
|
|
179
179
|
}
|
|
180
180
|
), /* @__PURE__ */ React.createElement(TabsContextProvider, { value: providerValue }, !!tabs.length && tabs.map((item) => {
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
:root,
|
|
2
|
+
page,
|
|
3
|
+
xhs-page {
|
|
4
|
+
--bui-tabs-height: 39px;
|
|
5
|
+
--bui-tabs-font-weight: var(--bui-font-weight-medium);
|
|
6
|
+
--bui-tabs-indicator-background: var(--bui-color-primary);
|
|
7
|
+
--bui-tabs-indicator-height: 3PX;
|
|
8
|
+
--bui-tabs-indicator-width: 24px;
|
|
9
|
+
--bui-tabs-indicator-border-radius: 3px 3px 0 0;
|
|
10
|
+
--bui-tabs-indicator-bottom: 0;
|
|
11
|
+
--bui-tabs-indicator-box-shadow: none;
|
|
12
|
+
--bui-tabs-mask-width: 12px;
|
|
13
|
+
--bui-tabs-mask-height: 100%;
|
|
14
|
+
--bui-tab-font-size: var(--bui-text-size-1);
|
|
15
|
+
--bui-tab-color: var(--bui-color-fg-subtle);
|
|
16
|
+
--bui-tab-height: 100%;
|
|
17
|
+
--bui-tab-padding: var(--bui-spacing-lg) var(--bui-spacing-lg) 10px;
|
|
18
|
+
--bui-tab-active-color: var(--bui-color-fg-default);
|
|
19
|
+
--bui-tab-active-font-family: var(--bui-font-family-accent, inherit);
|
|
20
|
+
}
|
|
21
|
+
.bui-tabs {
|
|
22
|
+
position: relative;
|
|
23
|
+
font-family: var(--bui-font-family);
|
|
24
|
+
font-weight: var(--bui-tabs-font-weight);
|
|
25
|
+
}
|
|
26
|
+
.bui-tabs-tabs {
|
|
27
|
+
height: var(--bui-tabs-height);
|
|
28
|
+
display: flex;
|
|
29
|
+
flex-wrap: nowrap;
|
|
30
|
+
justify-content: flex-start;
|
|
31
|
+
align-items: center;
|
|
32
|
+
position: relative;
|
|
33
|
+
overflow-x: scroll;
|
|
34
|
+
scrollbar-width: none;
|
|
35
|
+
}
|
|
36
|
+
.bui-tabs-tabs::-webkit-scrollbar {
|
|
37
|
+
display: none;
|
|
38
|
+
}
|
|
39
|
+
.bui-tabs-indicator {
|
|
40
|
+
position: absolute;
|
|
41
|
+
width: var(--bui-tabs-indicator-width);
|
|
42
|
+
bottom: var(--bui-tabs-indicator-bottom);
|
|
43
|
+
height: var(--bui-tabs-indicator-height);
|
|
44
|
+
color: var(--bui-color-primary);
|
|
45
|
+
background: var(--bui-tabs-indicator-background);
|
|
46
|
+
border-radius: var(--bui-tabs-indicator-border-radius);
|
|
47
|
+
box-shadow: var(--bui-tabs-indicator-box-shadow);
|
|
48
|
+
}
|
|
49
|
+
.bui-tabs-content {
|
|
50
|
+
padding: var(--bui-spacing-lg);
|
|
51
|
+
}
|
|
52
|
+
.bui-tabs-mask {
|
|
53
|
+
position: absolute;
|
|
54
|
+
top: 0;
|
|
55
|
+
bottom: 0;
|
|
56
|
+
z-index: 1;
|
|
57
|
+
width: var(--bui-tabs-mask-width);
|
|
58
|
+
height: var(--bui-tabs-mask-height);
|
|
59
|
+
pointer-events: none;
|
|
60
|
+
}
|
|
61
|
+
.bui-tabs-mask-left {
|
|
62
|
+
left: 0;
|
|
63
|
+
background:
|
|
64
|
+
linear-gradient(
|
|
65
|
+
to right,
|
|
66
|
+
var(--bui-color-bg-view),
|
|
67
|
+
rgba(255, 255, 255, 0));
|
|
68
|
+
}
|
|
69
|
+
.bui-tabs-mask-right {
|
|
70
|
+
right: 0;
|
|
71
|
+
background:
|
|
72
|
+
linear-gradient(
|
|
73
|
+
to left,
|
|
74
|
+
var(--bui-color-bg-view),
|
|
75
|
+
rgba(255, 255, 255, 0));
|
|
76
|
+
}
|
|
77
|
+
.bui-indicator-invisible {
|
|
78
|
+
visibility: hidden;
|
|
79
|
+
background-color: transparent;
|
|
80
|
+
}
|
|
81
|
+
.bui-tab {
|
|
82
|
+
display: flex;
|
|
83
|
+
align-items: center;
|
|
84
|
+
justify-content: center;
|
|
85
|
+
white-space: nowrap;
|
|
86
|
+
width: min-content;
|
|
87
|
+
height: var(--bui-tab-height);
|
|
88
|
+
box-sizing: border-box;
|
|
89
|
+
position: relative;
|
|
90
|
+
cursor: pointer;
|
|
91
|
+
font-size: var(--bui-tab-font-size);
|
|
92
|
+
line-height: var(--bui-line-height);
|
|
93
|
+
color: var(--bui-tab-color);
|
|
94
|
+
padding: var(--bui-tab-padding);
|
|
95
|
+
font-family: var(--bui-font-family);
|
|
96
|
+
}
|
|
97
|
+
.bui-tab-active {
|
|
98
|
+
color: var(--bui-tab-active-color);
|
|
99
|
+
font-weight: var(--bui-font-weight-bold);
|
|
100
|
+
font-family: var(--bui-tab-active-font-family);
|
|
101
|
+
}
|
|
102
|
+
.bui-tab-miniapp-active {
|
|
103
|
+
color: var(--bui-tab-active-color);
|
|
104
|
+
line-height: 1.5;
|
|
105
|
+
font-weight: var(--bui-font-weight-bold);
|
|
106
|
+
position: relative;
|
|
107
|
+
}
|
|
108
|
+
.bui-tab-miniapp-active-line {
|
|
109
|
+
position: absolute;
|
|
110
|
+
bottom: 0;
|
|
111
|
+
left: -12px;
|
|
112
|
+
right: -12px;
|
|
113
|
+
margin: 0 auto !important;
|
|
114
|
+
width: 18px;
|
|
115
|
+
height: 2px;
|
|
116
|
+
transition: all 100ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
|
|
117
|
+
background-color: var(--bui-color-primary);
|
|
118
|
+
}
|
|
119
|
+
.bui-tab-disabled {
|
|
120
|
+
opacity: 0.5;
|
|
121
|
+
pointer-events: none;
|
|
122
|
+
}
|
|
123
|
+
.bui-indicator-invisible {
|
|
124
|
+
visibility: hidden;
|
|
125
|
+
background-color: transparent;
|
|
126
|
+
}
|
|
127
|
+
.bui-tabpanel {
|
|
128
|
+
font-family: var(--bui-font-family);
|
|
129
|
+
}
|
|
130
|
+
.bui-tabpanel-active {
|
|
131
|
+
display: block;
|
|
132
|
+
}
|
|
133
|
+
.bui-tabpanel-inactive {
|
|
134
|
+
display: none;
|
|
135
|
+
}
|
package/es/Tag/Tag.css
CHANGED
|
@@ -1,30 +1,34 @@
|
|
|
1
|
+
:root,
|
|
2
|
+
page,
|
|
3
|
+
xhs-page {
|
|
4
|
+
--bui-tag-color: var(--bui-color-gray);
|
|
5
|
+
--bui-tag-border-color: var(--bui-color-border-gray);
|
|
6
|
+
--bui-tag-bg-color: var(--bui-color-gray);
|
|
7
|
+
--bui-tag-height: 15px;
|
|
8
|
+
--bui-tag-line-height: 15px;
|
|
9
|
+
--bui-tag-padding: 0 var(--bui-spacing-xs);
|
|
10
|
+
--bui-tag-color-vip: rgba(255, 134, 110, 0.3);
|
|
11
|
+
}
|
|
1
12
|
.bui-tag {
|
|
2
|
-
--tag-color: var(--bui-tag-color, var(--bui-color-gray));
|
|
3
|
-
--tag-border-color: var(--bui-tag-border-color, var(--bui-color-border-gray));
|
|
4
|
-
--tag-bg-color: var(--bui-tag-bg-color, var(--bui-color-gray));
|
|
5
|
-
--tag-height: var(--bui-tag-height, 15px);
|
|
6
|
-
--tag-line-height: var(--bui-tag-line-height, 15px);
|
|
7
|
-
--tag-padding: var(--bui-tag-padding, 0 var(--bui-spacing-xs));
|
|
8
|
-
--tag-bg-color-vip: var(--bui-tag-color-vip, rgba(255, 134, 110, 0.3));
|
|
9
13
|
position: relative;
|
|
10
14
|
display: inline-flex;
|
|
11
15
|
align-items: center;
|
|
12
16
|
justify-content: center;
|
|
13
17
|
white-space: nowrap;
|
|
14
|
-
height: var(--tag-height);
|
|
15
|
-
line-height: var(--tag-line-height);
|
|
16
|
-
padding: var(--tag-padding);
|
|
18
|
+
height: var(--bui-tag-height);
|
|
19
|
+
line-height: var(--bui-tag-line-height);
|
|
20
|
+
padding: var(--bui-tag-padding);
|
|
17
21
|
font-size: var(--bui-text-size-5);
|
|
18
22
|
font-weight: var(--bui-font-weight-normal);
|
|
19
23
|
border-radius: var(--bui-shape-radius-label);
|
|
20
24
|
border: 1px solid transparent;
|
|
21
25
|
box-sizing: border-box;
|
|
22
|
-
color: var(--bui-color-
|
|
26
|
+
color: var(--bui-color-white);
|
|
23
27
|
font-family: var(--bui-font-family);
|
|
24
28
|
}
|
|
25
29
|
.bui-tag-outlined {
|
|
26
|
-
color: var(--tag-color);
|
|
27
|
-
border: 1px solid var(--tag-border-color);
|
|
30
|
+
color: var(--bui-tag-color);
|
|
31
|
+
border: 1px solid var(--bui-tag-border-color);
|
|
28
32
|
}
|
|
29
33
|
.bui-tag-outlined.bui-tag-primary {
|
|
30
34
|
color: var(--bui-color-primary);
|
|
@@ -46,12 +50,20 @@
|
|
|
46
50
|
color: var(--bui-color-danger);
|
|
47
51
|
border: 1px solid var(--bui-color-border-danger);
|
|
48
52
|
}
|
|
53
|
+
.bui-tag-outlined.bui-tag-light {
|
|
54
|
+
color: var(--bui-color-bg-view);
|
|
55
|
+
border: 1px solid var(--bui-color-bg-view);
|
|
56
|
+
}
|
|
57
|
+
.bui-tag-outlined.bui-tag-dark {
|
|
58
|
+
color: var(--bui-color-fg-default);
|
|
59
|
+
border: 1px solid var(--bui-color-fg-default);
|
|
60
|
+
}
|
|
49
61
|
.bui-tag-outlined.bui-tag-vip {
|
|
50
62
|
color: var(--bui-color-primary);
|
|
51
63
|
border: 1px solid var(--bui-color-border-primary);
|
|
52
64
|
}
|
|
53
65
|
.bui-tag-contained {
|
|
54
|
-
background-color: var(--tag-bg-color);
|
|
66
|
+
background-color: var(--bui-tag-bg-color);
|
|
55
67
|
}
|
|
56
68
|
.bui-tag-contained.bui-tag-primary {
|
|
57
69
|
background-color: var(--bui-color-primary);
|
|
@@ -68,34 +80,48 @@
|
|
|
68
80
|
.bui-tag-contained.bui-tag-danger {
|
|
69
81
|
background-color: var(--bui-color-danger);
|
|
70
82
|
}
|
|
83
|
+
.bui-tag-contained.bui-tag-light {
|
|
84
|
+
color: var(--bui-color-fg-default);
|
|
85
|
+
background-color: var(--bui-color-bg-view);
|
|
86
|
+
}
|
|
87
|
+
.bui-tag-contained.bui-tag-dark {
|
|
88
|
+
color: var(--bui-color-bg-view);
|
|
89
|
+
background-color: var(--bui-color-fg-default);
|
|
90
|
+
}
|
|
71
91
|
.bui-tag-contained.bui-tag-vip {
|
|
72
92
|
background-color: var(--bui-color-vip);
|
|
73
93
|
}
|
|
74
|
-
.bui-tag-
|
|
94
|
+
.bui-tag-subtle {
|
|
75
95
|
background-color: var(--bui-color-gray-light);
|
|
76
96
|
color: var(--bui-color-gray);
|
|
77
97
|
}
|
|
78
|
-
.bui-tag-
|
|
98
|
+
.bui-tag-subtle.bui-tag-primary {
|
|
79
99
|
background-color: var(--bui-color-primary-light);
|
|
80
100
|
color: var(--bui-color-primary);
|
|
81
101
|
}
|
|
82
|
-
.bui-tag-
|
|
102
|
+
.bui-tag-subtle.bui-tag-info {
|
|
83
103
|
background-color: var(--bui-color-info-light);
|
|
84
104
|
color: var(--bui-color-info);
|
|
85
105
|
}
|
|
86
|
-
.bui-tag-
|
|
106
|
+
.bui-tag-subtle.bui-tag-warning {
|
|
87
107
|
background-color: var(--bui-color-warning-light);
|
|
88
108
|
color: var(--bui-color-warning);
|
|
89
109
|
}
|
|
90
|
-
.bui-tag-
|
|
110
|
+
.bui-tag-subtle.bui-tag-success {
|
|
91
111
|
background-color: var(--bui-color-success-light);
|
|
92
112
|
color: var(--bui-color-success);
|
|
93
113
|
}
|
|
94
|
-
.bui-tag-
|
|
114
|
+
.bui-tag-subtle.bui-tag-danger {
|
|
95
115
|
background-color: var(--bui-color-danger-light);
|
|
96
116
|
color: var(--bui-color-danger);
|
|
97
117
|
}
|
|
98
|
-
.bui-tag-
|
|
99
|
-
|
|
118
|
+
.bui-tag-subtle.bui-tag-light {
|
|
119
|
+
color: var(--bui-color-bg-view);
|
|
120
|
+
}
|
|
121
|
+
.bui-tag-subtle.bui-tag-dark {
|
|
122
|
+
color: var(--bui-color-fg-default);
|
|
123
|
+
}
|
|
124
|
+
.bui-tag-subtle.bui-tag-vip {
|
|
125
|
+
background-color: var(--bui-tag-color-vip);
|
|
100
126
|
color: var(--bui-color-vip);
|
|
101
127
|
}
|
package/es/Tag/Tag.js
CHANGED
|
@@ -47,7 +47,7 @@ const Tag = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
47
47
|
const _a = props, {
|
|
48
48
|
className,
|
|
49
49
|
style,
|
|
50
|
-
color = "
|
|
50
|
+
color = "neutral",
|
|
51
51
|
htmlColor,
|
|
52
52
|
variant = "outlined",
|
|
53
53
|
onClick,
|
|
@@ -68,7 +68,7 @@ const Tag = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
68
68
|
color: htmlColor,
|
|
69
69
|
borderColor: colorHandler(htmlColor, 0.4)
|
|
70
70
|
};
|
|
71
|
-
} else if (variant === "
|
|
71
|
+
} else if (variant === "subtle") {
|
|
72
72
|
customStyles = {
|
|
73
73
|
color: htmlColor,
|
|
74
74
|
backgroundColor: colorHandler(htmlColor, 0.3)
|
package/es/Tag/Tag.types.d.ts
CHANGED
|
@@ -4,9 +4,9 @@ export type TagProps<D extends React.ElementType = 'div', P = {}> = OverrideProp
|
|
|
4
4
|
props: P & {
|
|
5
5
|
/**
|
|
6
6
|
* 预定义色彩
|
|
7
|
-
* @default '
|
|
7
|
+
* @default 'neutral'
|
|
8
8
|
*/
|
|
9
|
-
color?: ThemeColor | '
|
|
9
|
+
color?: ThemeColor | 'vip';
|
|
10
10
|
/**
|
|
11
11
|
* 自定义色彩
|
|
12
12
|
*/
|
|
@@ -14,10 +14,10 @@ export type TagProps<D extends React.ElementType = 'div', P = {}> = OverrideProp
|
|
|
14
14
|
/**
|
|
15
15
|
* - outlined: 描边
|
|
16
16
|
* - contained: 实心填充
|
|
17
|
-
* -
|
|
17
|
+
* - subtle: 柔和填充
|
|
18
18
|
* @default 'outlined'
|
|
19
19
|
*/
|
|
20
|
-
variant?: 'outlined' | 'contained' | '
|
|
20
|
+
variant?: 'outlined' | 'contained' | 'subtle';
|
|
21
21
|
};
|
|
22
22
|
defaultComponent: D;
|
|
23
23
|
}, D>;
|
package/es/Tag/TagGroup.css
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
|
+
:root,
|
|
2
|
+
page,
|
|
3
|
+
xhs-page {
|
|
4
|
+
--bui-tag-group-divider-height: 13%;
|
|
5
|
+
--bui-tag-color: var(--bui-color-gray);
|
|
6
|
+
--bui-tag-border-color: var(--bui-color-border-gray);
|
|
7
|
+
--bui-tag-bg-color: var(--bui-color-gray);
|
|
8
|
+
--bui-tag-height: 15px;
|
|
9
|
+
--bui-tag-line-height: 15px;
|
|
10
|
+
--bui-tag-padding: 0 var(--bui-spacing-xs);
|
|
11
|
+
--bui-tag-color-vip: rgba(255, 134, 110, 0.3);
|
|
12
|
+
}
|
|
1
13
|
.bui-tag-group {
|
|
2
|
-
--height: var(--bui-tag-group-divider-height, 13%);
|
|
3
|
-
--tag-color: var(--bui-tag-color, var(--bui-color-gray));
|
|
4
|
-
--tag-border-color: var(--bui-tag-border-color, var(--bui-color-border-gray));
|
|
5
|
-
--tag-bg-color: var(--bui-tag-bg-color, var(--bui-color-gray));
|
|
6
|
-
--tag-height: var(--bui-tag-height, 15px);
|
|
7
|
-
--tag-line-height: var(--bui-tag-line-height, 15px);
|
|
8
|
-
--tag-padding: var(--bui-tag-padding, 0 var(--bui-spacing-xs));
|
|
9
|
-
--tag-bg-color-vip: var(--bui-tag-color-vip, rgba(255, 134, 110, 0.3));
|
|
10
14
|
display: inline-flex;
|
|
11
15
|
font-family: var(--bui-font-family);
|
|
12
16
|
}
|
|
@@ -32,7 +36,7 @@
|
|
|
32
36
|
position: absolute;
|
|
33
37
|
right: -1px;
|
|
34
38
|
width: 1px;
|
|
35
|
-
height: var(--height);
|
|
39
|
+
height: var(--bui-tag-group-divider-height);
|
|
36
40
|
color: #fff;
|
|
37
41
|
background-color: #fff;
|
|
38
42
|
border-right-style: solid;
|
package/es/Tag/index.css
ADDED
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
:root,
|
|
2
|
+
page,
|
|
3
|
+
xhs-page {
|
|
4
|
+
--bui-tag-color: var(--bui-color-gray);
|
|
5
|
+
--bui-tag-border-color: var(--bui-color-border-gray);
|
|
6
|
+
--bui-tag-bg-color: var(--bui-color-gray);
|
|
7
|
+
--bui-tag-height: 15px;
|
|
8
|
+
--bui-tag-line-height: 15px;
|
|
9
|
+
--bui-tag-padding: 0 var(--bui-spacing-xs);
|
|
10
|
+
--bui-tag-color-vip: rgba(255, 134, 110, 0.3);
|
|
11
|
+
}
|
|
12
|
+
.bui-tag {
|
|
13
|
+
position: relative;
|
|
14
|
+
display: inline-flex;
|
|
15
|
+
align-items: center;
|
|
16
|
+
justify-content: center;
|
|
17
|
+
white-space: nowrap;
|
|
18
|
+
height: var(--bui-tag-height);
|
|
19
|
+
line-height: var(--bui-tag-line-height);
|
|
20
|
+
padding: var(--bui-tag-padding);
|
|
21
|
+
font-size: var(--bui-text-size-5);
|
|
22
|
+
font-weight: var(--bui-font-weight-normal);
|
|
23
|
+
border-radius: var(--bui-shape-radius-label);
|
|
24
|
+
border: 1px solid transparent;
|
|
25
|
+
box-sizing: border-box;
|
|
26
|
+
color: var(--bui-color-white);
|
|
27
|
+
font-family: var(--bui-font-family);
|
|
28
|
+
}
|
|
29
|
+
.bui-tag-outlined {
|
|
30
|
+
color: var(--bui-tag-color);
|
|
31
|
+
border: 1px solid var(--bui-tag-border-color);
|
|
32
|
+
}
|
|
33
|
+
.bui-tag-outlined.bui-tag-primary {
|
|
34
|
+
color: var(--bui-color-primary);
|
|
35
|
+
border: 1px solid var(--bui-color-border-primary);
|
|
36
|
+
}
|
|
37
|
+
.bui-tag-outlined.bui-tag-info {
|
|
38
|
+
color: var(--bui-color-info);
|
|
39
|
+
border: 1px solid var(--bui-color-border-info);
|
|
40
|
+
}
|
|
41
|
+
.bui-tag-outlined.bui-tag-warning {
|
|
42
|
+
color: var(--bui-color-warning);
|
|
43
|
+
border: 1px solid var(--bui-color-border-warning);
|
|
44
|
+
}
|
|
45
|
+
.bui-tag-outlined.bui-tag-success {
|
|
46
|
+
color: var(--bui-color-success);
|
|
47
|
+
border: 1px solid var(--bui-color-border-success);
|
|
48
|
+
}
|
|
49
|
+
.bui-tag-outlined.bui-tag-danger {
|
|
50
|
+
color: var(--bui-color-danger);
|
|
51
|
+
border: 1px solid var(--bui-color-border-danger);
|
|
52
|
+
}
|
|
53
|
+
.bui-tag-outlined.bui-tag-light {
|
|
54
|
+
color: var(--bui-color-bg-view);
|
|
55
|
+
border: 1px solid var(--bui-color-bg-view);
|
|
56
|
+
}
|
|
57
|
+
.bui-tag-outlined.bui-tag-dark {
|
|
58
|
+
color: var(--bui-color-fg-default);
|
|
59
|
+
border: 1px solid var(--bui-color-fg-default);
|
|
60
|
+
}
|
|
61
|
+
.bui-tag-outlined.bui-tag-vip {
|
|
62
|
+
color: var(--bui-color-primary);
|
|
63
|
+
border: 1px solid var(--bui-color-border-primary);
|
|
64
|
+
}
|
|
65
|
+
.bui-tag-contained {
|
|
66
|
+
background-color: var(--bui-tag-bg-color);
|
|
67
|
+
}
|
|
68
|
+
.bui-tag-contained.bui-tag-primary {
|
|
69
|
+
background-color: var(--bui-color-primary);
|
|
70
|
+
}
|
|
71
|
+
.bui-tag-contained.bui-tag-info {
|
|
72
|
+
background-color: var(--bui-color-info);
|
|
73
|
+
}
|
|
74
|
+
.bui-tag-contained.bui-tag-warning {
|
|
75
|
+
background-color: var(--bui-color-warning);
|
|
76
|
+
}
|
|
77
|
+
.bui-tag-contained.bui-tag-success {
|
|
78
|
+
background-color: var(--bui-color-success);
|
|
79
|
+
}
|
|
80
|
+
.bui-tag-contained.bui-tag-danger {
|
|
81
|
+
background-color: var(--bui-color-danger);
|
|
82
|
+
}
|
|
83
|
+
.bui-tag-contained.bui-tag-light {
|
|
84
|
+
color: var(--bui-color-fg-default);
|
|
85
|
+
background-color: var(--bui-color-bg-view);
|
|
86
|
+
}
|
|
87
|
+
.bui-tag-contained.bui-tag-dark {
|
|
88
|
+
color: var(--bui-color-bg-view);
|
|
89
|
+
background-color: var(--bui-color-fg-default);
|
|
90
|
+
}
|
|
91
|
+
.bui-tag-contained.bui-tag-vip {
|
|
92
|
+
background-color: var(--bui-color-vip);
|
|
93
|
+
}
|
|
94
|
+
.bui-tag-subtle {
|
|
95
|
+
background-color: var(--bui-color-gray-light);
|
|
96
|
+
color: var(--bui-color-gray);
|
|
97
|
+
}
|
|
98
|
+
.bui-tag-subtle.bui-tag-primary {
|
|
99
|
+
background-color: var(--bui-color-primary-light);
|
|
100
|
+
color: var(--bui-color-primary);
|
|
101
|
+
}
|
|
102
|
+
.bui-tag-subtle.bui-tag-info {
|
|
103
|
+
background-color: var(--bui-color-info-light);
|
|
104
|
+
color: var(--bui-color-info);
|
|
105
|
+
}
|
|
106
|
+
.bui-tag-subtle.bui-tag-warning {
|
|
107
|
+
background-color: var(--bui-color-warning-light);
|
|
108
|
+
color: var(--bui-color-warning);
|
|
109
|
+
}
|
|
110
|
+
.bui-tag-subtle.bui-tag-success {
|
|
111
|
+
background-color: var(--bui-color-success-light);
|
|
112
|
+
color: var(--bui-color-success);
|
|
113
|
+
}
|
|
114
|
+
.bui-tag-subtle.bui-tag-danger {
|
|
115
|
+
background-color: var(--bui-color-danger-light);
|
|
116
|
+
color: var(--bui-color-danger);
|
|
117
|
+
}
|
|
118
|
+
.bui-tag-subtle.bui-tag-light {
|
|
119
|
+
color: var(--bui-color-bg-view);
|
|
120
|
+
}
|
|
121
|
+
.bui-tag-subtle.bui-tag-dark {
|
|
122
|
+
color: var(--bui-color-fg-default);
|
|
123
|
+
}
|
|
124
|
+
.bui-tag-subtle.bui-tag-vip {
|
|
125
|
+
background-color: var(--bui-tag-color-vip);
|
|
126
|
+
color: var(--bui-color-vip);
|
|
127
|
+
}
|
|
128
|
+
:root,
|
|
129
|
+
page,
|
|
130
|
+
xhs-page {
|
|
131
|
+
--bui-tag-group-divider-height: 13%;
|
|
132
|
+
--bui-tag-color: var(--bui-color-gray);
|
|
133
|
+
--bui-tag-border-color: var(--bui-color-border-gray);
|
|
134
|
+
--bui-tag-bg-color: var(--bui-color-gray);
|
|
135
|
+
--bui-tag-height: 15px;
|
|
136
|
+
--bui-tag-line-height: 15px;
|
|
137
|
+
--bui-tag-padding: 0 var(--bui-spacing-xs);
|
|
138
|
+
--bui-tag-color-vip: rgba(255, 134, 110, 0.3);
|
|
139
|
+
}
|
|
140
|
+
.bui-tag-group {
|
|
141
|
+
display: inline-flex;
|
|
142
|
+
font-family: var(--bui-font-family);
|
|
143
|
+
}
|
|
144
|
+
.bui-tag-group .bui-tag-outlined {
|
|
145
|
+
background-color: var(--bui-color-white);
|
|
146
|
+
}
|
|
147
|
+
.bui-tag-group .bui-tag-outlined + .bui-tag-contained {
|
|
148
|
+
margin-left: -1px;
|
|
149
|
+
}
|
|
150
|
+
.bui-tag-group .bui-tag-outlined:not(:last-child) {
|
|
151
|
+
position: relative;
|
|
152
|
+
border-right-style: dotted;
|
|
153
|
+
}
|
|
154
|
+
.bui-tag-group .bui-tag-outlined:not(:last-child)::after {
|
|
155
|
+
top: 0;
|
|
156
|
+
}
|
|
157
|
+
.bui-tag-group .bui-tag-outlined:not(:last-child)::before {
|
|
158
|
+
bottom: 0;
|
|
159
|
+
}
|
|
160
|
+
.bui-tag-group .bui-tag-outlined:not(:last-child)::after,
|
|
161
|
+
.bui-tag-group .bui-tag-outlined:not(:last-child)::before {
|
|
162
|
+
content: "";
|
|
163
|
+
position: absolute;
|
|
164
|
+
right: -1px;
|
|
165
|
+
width: 1px;
|
|
166
|
+
height: var(--bui-tag-group-divider-height);
|
|
167
|
+
color: #fff;
|
|
168
|
+
background-color: #fff;
|
|
169
|
+
border-right-style: solid;
|
|
170
|
+
}
|
|
171
|
+
.bui-tag-group .bui-tag:not(:last-child) {
|
|
172
|
+
border-top-right-radius: 0;
|
|
173
|
+
border-bottom-right-radius: 0;
|
|
174
|
+
}
|
|
175
|
+
.bui-tag-group .bui-tag:not(:last-child):not(.bui-tag-outlined) {
|
|
176
|
+
border-right: 0;
|
|
177
|
+
}
|
|
178
|
+
.bui-tag-group .bui-tag:not(:first-child) {
|
|
179
|
+
border-top-left-radius: 0;
|
|
180
|
+
border-bottom-left-radius: 0;
|
|
181
|
+
border-left: 0;
|
|
182
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TextAreaProps } from './TextArea.types';
|
|
3
|
-
import './
|
|
3
|
+
import './index.less';
|
|
4
4
|
declare const TextArea: React.ForwardRefExoticComponent<Omit<TextAreaProps<"div", {}>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
5
|
export default TextArea;
|
package/es/TextArea/TextArea.js
CHANGED
|
@@ -32,7 +32,7 @@ var __objRest = (source, exclude) => {
|
|
|
32
32
|
import { isMini, useForkRef, useValue } from "@bifrostui/utils";
|
|
33
33
|
import clsx from "clsx";
|
|
34
34
|
import React, { useEffect, useRef } from "react";
|
|
35
|
-
import "./
|
|
35
|
+
import "./index.css";
|
|
36
36
|
const prefixCls = "bui-textarea";
|
|
37
37
|
const DEFAULT_ROWS = 2;
|
|
38
38
|
const TextArea = /* @__PURE__ */ React.forwardRef(
|