@bifrostui/react 1.1.1 → 1.1.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.less +31 -0
- package/dist/ActionSheet/ActionSheetItem.less +62 -0
- package/dist/Alert/index.less +112 -0
- package/dist/Avatar/Avatar.less +52 -0
- package/dist/Avatar/AvatarGroup.less +39 -0
- package/dist/Backdrop/{Backdrop.css → Backdrop.less} +4 -3
- package/dist/Badge/Badge.less +118 -0
- package/dist/Button/Button.less +244 -0
- package/dist/Calendar/Calendar.less +126 -0
- package/{es/Card/Card.css → dist/Card/Card.less} +1 -0
- package/dist/Card/CardHeader.less +53 -0
- package/dist/Checkbox/Checkbox.less +55 -0
- package/dist/CitySelector/CitySelector.less +122 -0
- package/dist/CitySelector/CitySelectorCore.js +1 -2
- package/{es/CitySelector/Selector/index.css → dist/CitySelector/Selector/index.less} +2 -0
- package/dist/Countdown/Countdown.less +39 -0
- package/dist/Divider/Divider.less +50 -0
- package/dist/Drawer/Drawer.less +40 -0
- package/dist/IconButton/IconButton.less +167 -0
- package/dist/Image/index.less +40 -0
- package/dist/Input/Input.less +72 -0
- package/dist/List/{List.css → List.less} +1 -0
- package/dist/List/{ListItem.css → ListItem.less} +17 -6
- package/dist/List/{ListItemContent.css → ListItemContent.less} +7 -2
- package/dist/List/{ListItemFooter.css → ListItemFooter.less} +4 -3
- package/dist/Loading/Loading.less +40 -0
- package/dist/Modal/{Modal.css → Modal.less} +8 -6
- package/dist/Modal/Modal.miniapp.d.ts +1 -1
- package/dist/NavBar/NavBar.less +67 -0
- package/dist/Picker/Picker.less +62 -0
- package/dist/Picker/PickerPanel.less +67 -0
- package/dist/Picker/utils.d.ts +1 -1
- package/dist/Progress/Progress.less +24 -0
- package/dist/Radio/Radio.less +81 -0
- package/dist/Rating/Rating.less +64 -0
- package/dist/ScrollView/{ScrollView.css → ScrollView.less} +4 -0
- package/dist/Select/Select.less +105 -0
- package/dist/Skeleton/Skeleton.less +72 -0
- package/dist/Slider/Slider.less +108 -0
- package/dist/Stack/demo/index.less +27 -0
- package/dist/Steps/Step.less +228 -0
- package/{es/Steps/Steps.css → dist/Steps/Steps.less} +5 -3
- package/dist/Swiper/Swiper.less +25 -0
- package/dist/Switch/Switch.less +177 -0
- package/dist/TabBar/TabBarItem.less +54 -0
- package/dist/Tabs/Tab.js +1 -1
- package/dist/Tabs/Tab.less +60 -0
- package/dist/Tabs/TabPanel.less +11 -0
- package/dist/Tabs/Tabs.less +77 -0
- package/dist/Tag/Tag.less +119 -0
- package/dist/Tag/TagGroup.less +52 -0
- package/dist/TextArea/{TextArea.css → TextArea.less} +27 -19
- package/es/ActionSheet/ActionSheet.less +31 -0
- package/es/ActionSheet/ActionSheetItem.less +62 -0
- package/es/Alert/index.less +112 -0
- package/es/Avatar/Avatar.less +52 -0
- package/es/Avatar/AvatarGroup.less +39 -0
- package/es/Backdrop/{Backdrop.css → Backdrop.less} +4 -3
- package/es/Badge/Badge.less +118 -0
- package/es/Button/Button.less +244 -0
- package/es/Calendar/Calendar.less +126 -0
- package/{dist/Card/Card.css → es/Card/Card.less} +1 -0
- package/es/Card/CardHeader.less +53 -0
- package/es/Checkbox/Checkbox.less +55 -0
- package/es/CitySelector/CitySelector.less +122 -0
- package/es/CitySelector/CitySelectorCore.js +2 -3
- package/{dist/CitySelector/Selector/index.css → es/CitySelector/Selector/index.less} +2 -0
- package/es/Countdown/Countdown.less +39 -0
- package/es/Divider/Divider.less +50 -0
- package/es/Drawer/Drawer.less +40 -0
- package/es/IconButton/IconButton.less +167 -0
- package/es/Image/index.less +40 -0
- package/es/Input/Input.less +72 -0
- package/es/List/{List.css → List.less} +1 -0
- package/es/List/{ListItem.css → ListItem.less} +17 -6
- package/es/List/{ListItemContent.css → ListItemContent.less} +7 -2
- package/es/List/{ListItemFooter.css → ListItemFooter.less} +4 -3
- package/es/Loading/Loading.less +40 -0
- package/es/Modal/{Modal.css → Modal.less} +8 -6
- package/es/Modal/Modal.miniapp.d.ts +1 -1
- package/es/NavBar/NavBar.less +67 -0
- package/es/Picker/Picker.less +62 -0
- package/es/Picker/PickerPanel.less +67 -0
- package/es/Picker/utils.d.ts +1 -1
- package/es/Progress/Progress.less +24 -0
- package/es/Radio/Radio.less +81 -0
- package/es/Rating/Rating.less +64 -0
- package/es/ScrollView/{ScrollView.css → ScrollView.less} +4 -0
- package/es/Select/Select.less +105 -0
- package/es/Skeleton/Skeleton.less +72 -0
- package/es/Slider/Slider.less +108 -0
- package/es/Stack/demo/index.less +27 -0
- package/es/Steps/Step.less +228 -0
- package/{dist/Steps/Steps.css → es/Steps/Steps.less} +5 -3
- package/es/Swiper/Swiper.less +25 -0
- package/es/Switch/Switch.less +177 -0
- package/es/TabBar/TabBarItem.less +54 -0
- package/es/Tabs/Tab.js +1 -1
- package/es/Tabs/Tab.less +60 -0
- package/es/Tabs/TabPanel.less +11 -0
- package/es/Tabs/Tabs.less +77 -0
- package/es/Tag/Tag.less +119 -0
- package/es/Tag/TagGroup.less +52 -0
- package/es/TextArea/{TextArea.css → TextArea.less} +27 -19
- package/package.json +6 -6
- package/dist/ActionSheet/ActionSheet.css +0 -27
- package/dist/ActionSheet/ActionSheetItem.css +0 -51
- package/dist/Alert/index.css +0 -89
- package/dist/Avatar/Avatar.css +0 -43
- package/dist/Avatar/AvatarGroup.css +0 -31
- package/dist/Badge/Badge.css +0 -95
- package/dist/Button/Button.css +0 -200
- package/dist/Calendar/Calendar.css +0 -105
- package/dist/Card/CardHeader.css +0 -45
- package/dist/Checkbox/Checkbox.css +0 -45
- package/dist/CitySelector/CitySelector.css +0 -102
- package/dist/Countdown/Countdown.css +0 -28
- package/dist/Divider/Divider.css +0 -41
- package/dist/Drawer/Drawer.css +0 -35
- package/dist/IconButton/IconButton.css +0 -130
- package/dist/Image/index.css +0 -35
- package/dist/Input/Input.css +0 -59
- package/dist/Loading/Loading.css +0 -31
- package/dist/NavBar/NavBar.css +0 -57
- package/dist/Picker/Picker.css +0 -53
- package/dist/Picker/PickerPanel.css +0 -54
- package/dist/Progress/Progress.css +0 -22
- package/dist/Radio/Radio.css +0 -65
- package/dist/Rating/Rating.css +0 -52
- package/dist/Select/Select.css +0 -89
- package/dist/Skeleton/Skeleton.css +0 -54
- package/dist/Slider/Slider.css +0 -95
- package/dist/Stack/demo/index.css +0 -23
- package/dist/Steps/Step.css +0 -174
- package/dist/Swiper/Swiper.css +0 -20
- package/dist/Switch/Switch.css +0 -127
- package/dist/TabBar/TabBarItem.css +0 -38
- package/dist/Tabs/Tab.css +0 -52
- package/dist/Tabs/TabPanel.css +0 -9
- package/dist/Tabs/Tabs.css +0 -56
- package/dist/Tag/Tag.css +0 -97
- package/dist/Tag/TagGroup.css +0 -43
- package/es/ActionSheet/ActionSheet.css +0 -27
- package/es/ActionSheet/ActionSheetItem.css +0 -51
- package/es/Alert/index.css +0 -89
- package/es/Avatar/Avatar.css +0 -43
- package/es/Avatar/AvatarGroup.css +0 -31
- package/es/Badge/Badge.css +0 -95
- package/es/Button/Button.css +0 -200
- package/es/Calendar/Calendar.css +0 -105
- package/es/Card/CardHeader.css +0 -45
- package/es/Checkbox/Checkbox.css +0 -45
- package/es/CitySelector/CitySelector.css +0 -102
- package/es/Countdown/Countdown.css +0 -28
- package/es/Divider/Divider.css +0 -41
- package/es/Drawer/Drawer.css +0 -35
- package/es/IconButton/IconButton.css +0 -130
- package/es/Image/index.css +0 -35
- package/es/Input/Input.css +0 -59
- package/es/Loading/Loading.css +0 -31
- package/es/NavBar/NavBar.css +0 -57
- package/es/Picker/Picker.css +0 -53
- package/es/Picker/PickerPanel.css +0 -54
- package/es/Progress/Progress.css +0 -22
- package/es/Radio/Radio.css +0 -65
- package/es/Rating/Rating.css +0 -52
- package/es/Select/Select.css +0 -89
- package/es/Skeleton/Skeleton.css +0 -54
- package/es/Slider/Slider.css +0 -95
- package/es/Stack/demo/index.css +0 -23
- package/es/Steps/Step.css +0 -174
- package/es/Swiper/Swiper.css +0 -20
- package/es/Switch/Switch.css +0 -127
- package/es/TabBar/TabBarItem.css +0 -38
- package/es/Tabs/Tab.css +0 -52
- package/es/Tabs/TabPanel.css +0 -9
- package/es/Tabs/Tabs.css +0 -56
- package/es/Tag/Tag.css +0 -97
- package/es/Tag/TagGroup.css +0 -43
- /package/dist/Card/{CardContent.css → CardContent.less} +0 -0
- /package/dist/Card/{CardFooter.css → CardFooter.less} +0 -0
- /package/dist/CitySelector/{miniapp.css → miniapp.less} +0 -0
- /package/dist/List/{ListItemExtra.css → ListItemExtra.less} +0 -0
- /package/dist/List/{ListItemHeader.css → ListItemHeader.less} +0 -0
- /package/dist/Stack/{Stack.css → Stack.less} +0 -0
- /package/dist/TabBar/{TabBar.css → TabBar.less} +0 -0
- /package/es/Card/{CardContent.css → CardContent.less} +0 -0
- /package/es/Card/{CardFooter.css → CardFooter.less} +0 -0
- /package/es/CitySelector/{miniapp.css → miniapp.less} +0 -0
- /package/es/List/{ListItemExtra.css → ListItemExtra.less} +0 -0
- /package/es/List/{ListItemHeader.css → ListItemHeader.less} +0 -0
- /package/es/Stack/{Stack.css → Stack.less} +0 -0
- /package/es/TabBar/{TabBar.css → TabBar.less} +0 -0
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
@holderWidth: 12px;
|
|
2
|
+
@class-prefix-tabs: ~'bui-tabs';
|
|
3
|
+
|
|
4
|
+
.@{class-prefix-tabs} {
|
|
5
|
+
--height: 39px;
|
|
6
|
+
--font-size: var(--bui-text-size-1);
|
|
7
|
+
--color: var(--bui-color-fg-subtle);
|
|
8
|
+
--active-color: var(--bui-color-fg-default);
|
|
9
|
+
--line-color: var(--bui-color-primary);
|
|
10
|
+
|
|
11
|
+
position: relative;
|
|
12
|
+
font-family: var(--bui-font-family);
|
|
13
|
+
|
|
14
|
+
&-tabs {
|
|
15
|
+
height: var(--height);
|
|
16
|
+
display: flex;
|
|
17
|
+
flex-wrap: nowrap;
|
|
18
|
+
justify-content: flex-start;
|
|
19
|
+
align-items: center;
|
|
20
|
+
position: relative;
|
|
21
|
+
overflow-x: scroll;
|
|
22
|
+
|
|
23
|
+
&::-webkit-scrollbar {
|
|
24
|
+
display: none;
|
|
25
|
+
}
|
|
26
|
+
scrollbar-width: none;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&-tabline {
|
|
30
|
+
position: absolute;
|
|
31
|
+
width: 18px;
|
|
32
|
+
bottom: 0;
|
|
33
|
+
|
|
34
|
+
/* prettier-ignore */
|
|
35
|
+
height: 3PX;
|
|
36
|
+
color: var(--bui-color-primary);
|
|
37
|
+
background: var(--line-color);
|
|
38
|
+
border-radius: var(--bui-shape-radius-label);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&-content {
|
|
42
|
+
padding: var(--bui-spacing-lg);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&-mask {
|
|
46
|
+
position: absolute;
|
|
47
|
+
top: 0;
|
|
48
|
+
bottom: 0;
|
|
49
|
+
z-index: 1;
|
|
50
|
+
width: @holderWidth;
|
|
51
|
+
height: 100%;
|
|
52
|
+
pointer-events: none;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
&-mask-left {
|
|
56
|
+
left: 0;
|
|
57
|
+
background: linear-gradient(
|
|
58
|
+
to right,
|
|
59
|
+
var(--bui-color-bg-view),
|
|
60
|
+
rgba(255, 255, 255, 0)
|
|
61
|
+
);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&-mask-right {
|
|
65
|
+
right: 0;
|
|
66
|
+
background: linear-gradient(
|
|
67
|
+
to left,
|
|
68
|
+
var(--bui-color-bg-view),
|
|
69
|
+
rgba(255, 255, 255, 0)
|
|
70
|
+
);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.bui-tabline-invisible {
|
|
75
|
+
visibility: hidden;
|
|
76
|
+
background-color: transparent;
|
|
77
|
+
}
|
package/es/Tag/Tag.less
ADDED
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
.bui-tag {
|
|
2
|
+
--color: var(--bui-tag-color, var(--bui-color-gray));
|
|
3
|
+
--border-color: var(--bui-tag-border-color, var(--bui-color-border-gray));
|
|
4
|
+
--bg-color: var(--bui-tag-bg-color, var(--bui-color-gray));
|
|
5
|
+
position: relative;
|
|
6
|
+
display: inline-flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
justify-content: center;
|
|
9
|
+
white-space: nowrap;
|
|
10
|
+
height: 15px;
|
|
11
|
+
line-height: 15px;
|
|
12
|
+
padding: 0 var(--bui-spacing-xs);
|
|
13
|
+
font-size: var(--bui-text-size-5);
|
|
14
|
+
font-weight: var(--bui-font-weight-normal);
|
|
15
|
+
border-radius: var(--bui-shape-radius-label);
|
|
16
|
+
border: 1px solid transparent;
|
|
17
|
+
box-sizing: border-box;
|
|
18
|
+
color: var(--bui-color-bg-view);
|
|
19
|
+
font-family: var(--bui-font-family);
|
|
20
|
+
// 描边
|
|
21
|
+
&-outlined {
|
|
22
|
+
color: var(--color);
|
|
23
|
+
border: 1px solid var(--border-color);
|
|
24
|
+
|
|
25
|
+
&.bui-tag-primary {
|
|
26
|
+
color: var(--bui-color-primary);
|
|
27
|
+
border: 1px solid var(--bui-color-border-primary);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&.bui-tag-info {
|
|
31
|
+
color: var(--bui-color-info);
|
|
32
|
+
border: 1px solid var(--bui-color-border-info);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&.bui-tag-warning {
|
|
36
|
+
color: var(--bui-color-warning);
|
|
37
|
+
border: 1px solid var(--bui-color-border-warning);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&.bui-tag-success {
|
|
41
|
+
color: var(--bui-color-success);
|
|
42
|
+
border: 1px solid var(--bui-color-border-success);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&.bui-tag-danger {
|
|
46
|
+
color: var(--bui-color-danger);
|
|
47
|
+
border: 1px solid var(--bui-color-border-danger);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&.bui-tag-vip {
|
|
51
|
+
color: var(--bui-color-red);
|
|
52
|
+
border: 1px solid var(--bui-color-border-primary);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
// 实心
|
|
57
|
+
&-contained {
|
|
58
|
+
background-color: var(--bg-color);
|
|
59
|
+
|
|
60
|
+
&.bui-tag-primary {
|
|
61
|
+
background-color: var(--bui-color-primary);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&.bui-tag-info {
|
|
65
|
+
background-color: var(--bui-color-info);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
&.bui-tag-warning {
|
|
69
|
+
background-color: var(--bui-color-warning);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
&.bui-tag-success {
|
|
73
|
+
background-color: var(--bui-color-success);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
&.bui-tag-danger {
|
|
77
|
+
background-color: var(--bui-color-danger);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
&.bui-tag-vip {
|
|
81
|
+
background-color: var(--bui-color-vip);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
&-light {
|
|
86
|
+
background-color: var(--bui-color-gray-light);
|
|
87
|
+
color: var(--bui-color-gray);
|
|
88
|
+
|
|
89
|
+
&.bui-tag-primary {
|
|
90
|
+
background-color: var(--bui-color-primary-light);
|
|
91
|
+
color: var(--bui-color-primary);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
&.bui-tag-info {
|
|
95
|
+
background-color: var(--bui-color-info-light);
|
|
96
|
+
color: var(--bui-color-info);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
&.bui-tag-warning {
|
|
100
|
+
background-color: var(--bui-color-warning-light);
|
|
101
|
+
color: var(--bui-color-warning);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
&.bui-tag-success {
|
|
105
|
+
background-color: var(--bui-color-success-light);
|
|
106
|
+
color: var(--bui-color-success);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
&.bui-tag-danger {
|
|
110
|
+
background-color: var(--bui-color-danger-light);
|
|
111
|
+
color: var(--bui-color-danger);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
&.bui-tag-vip {
|
|
115
|
+
background-color: fade(#ff866e, 30%);
|
|
116
|
+
color: var(--bui-color-vip);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
.bui-tag-group {
|
|
2
|
+
display: inline-flex;
|
|
3
|
+
font-family: var(--bui-font-family);
|
|
4
|
+
|
|
5
|
+
.bui-tag-outlined {
|
|
6
|
+
background-color: var(--bui-color-white);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.bui-tag-outlined + .bui-tag-contained {
|
|
10
|
+
margin-left: -1px;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.bui-tag-outlined:not(:last-child) {
|
|
14
|
+
position: relative;
|
|
15
|
+
border-right-style: dotted;
|
|
16
|
+
|
|
17
|
+
&::after {
|
|
18
|
+
top: 0;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&::before {
|
|
22
|
+
bottom: 0;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&::after,
|
|
26
|
+
&::before {
|
|
27
|
+
content: '';
|
|
28
|
+
position: absolute;
|
|
29
|
+
right: -1px;
|
|
30
|
+
width: 1px;
|
|
31
|
+
height: 13%;
|
|
32
|
+
color: #fff;
|
|
33
|
+
background-color: #fff;
|
|
34
|
+
border-right-style: solid;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.bui-tag:not(:last-child) {
|
|
39
|
+
border-top-right-radius: 0;
|
|
40
|
+
border-bottom-right-radius: 0;
|
|
41
|
+
|
|
42
|
+
&:not(.bui-tag-outlined) {
|
|
43
|
+
border-right: 0;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.bui-tag:not(:first-child) {
|
|
48
|
+
border-top-left-radius: 0;
|
|
49
|
+
border-bottom-left-radius: 0;
|
|
50
|
+
border-left: 0;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -5,21 +5,27 @@
|
|
|
5
5
|
--count-text-color: var(--bui-color-fg-subtle);
|
|
6
6
|
background: var(--bui-color-bg-default);
|
|
7
7
|
font-family: var(--bui-font-family);
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
8
|
+
|
|
9
|
+
textarea {
|
|
10
|
+
font-size: var(--bui-text-size-2);
|
|
11
|
+
color: var(--text-color);
|
|
12
|
+
line-height: var(--bui-line-height);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.bui-mini-placeholder {
|
|
16
|
+
color: var(--bui-color-fg-disabled);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&-disabled {
|
|
20
|
+
pointer-events: none;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
// 隐藏支付宝自带字数标识
|
|
24
|
+
.a-textarea-count-wrap {
|
|
25
|
+
display: none;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
23
29
|
.bui-textarea-content {
|
|
24
30
|
width: 100%;
|
|
25
31
|
resize: none;
|
|
@@ -29,11 +35,13 @@
|
|
|
29
35
|
outline: none;
|
|
30
36
|
word-break: break-all;
|
|
31
37
|
box-sizing: border-box;
|
|
38
|
+
|
|
39
|
+
&::placeholder {
|
|
40
|
+
color: var(--bui-color-fg-disabled);
|
|
41
|
+
line-height: 1.3;
|
|
42
|
+
}
|
|
32
43
|
}
|
|
33
|
-
|
|
34
|
-
color: var(--bui-color-fg-disabled);
|
|
35
|
-
line-height: 1.3;
|
|
36
|
-
}
|
|
44
|
+
|
|
37
45
|
.bui-textarea-count {
|
|
38
46
|
background: var(--count-bg-color);
|
|
39
47
|
color: var(--count-text-color);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bifrostui/react",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.5",
|
|
4
4
|
"description": "React components for building mobile application",
|
|
5
5
|
"homepage": "http://bui.taopiaopiao.com",
|
|
6
6
|
"license": "MIT",
|
|
@@ -31,10 +31,10 @@
|
|
|
31
31
|
"father": "^4.1.8"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@bifrostui/icons": "^1.1.
|
|
35
|
-
"@bifrostui/styles": "^1.1.
|
|
36
|
-
"@bifrostui/types": "^1.1.
|
|
37
|
-
"@bifrostui/utils": "^1.1.
|
|
34
|
+
"@bifrostui/icons": "^1.1.5",
|
|
35
|
+
"@bifrostui/styles": "^1.1.5",
|
|
36
|
+
"@bifrostui/types": "^1.1.5",
|
|
37
|
+
"@bifrostui/utils": "^1.1.5",
|
|
38
38
|
"clsx": "^1.2.1",
|
|
39
39
|
"dayjs": "^1.11.7",
|
|
40
40
|
"swiper": "^8.1.5"
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"react": "^17.0.0 || ^18.0.0",
|
|
47
47
|
"react-dom": "^17.0.0 || ^18.0.0"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "58483901055555dfa8fc86060118ba977821e9a6"
|
|
50
50
|
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
.bui-action-sheet {
|
|
2
|
-
font-family: var(--bui-font-family);
|
|
3
|
-
}
|
|
4
|
-
.bui-action-sheet-content {
|
|
5
|
-
padding-bottom: constant(safe-area-inset-bottom);
|
|
6
|
-
padding-bottom: env(safe-area-inset-bottom);
|
|
7
|
-
border-top-left-radius: var(--bui-shape-radius-drawer);
|
|
8
|
-
border-top-right-radius: var(--bui-shape-radius-drawer);
|
|
9
|
-
overflow: hidden;
|
|
10
|
-
}
|
|
11
|
-
.bui-action-sheet .bui-action-sheet-cancel {
|
|
12
|
-
border-top: none;
|
|
13
|
-
}
|
|
14
|
-
.bui-action-sheet-gap {
|
|
15
|
-
height: var(--bui-spacing-md);
|
|
16
|
-
background-color: var(--bui-color-bg-default);
|
|
17
|
-
}
|
|
18
|
-
.bui-action-sheet-extra {
|
|
19
|
-
font-size: var(--bui-text-size-1);
|
|
20
|
-
line-height: 23px;
|
|
21
|
-
padding: var(--bui-spacing-xl);
|
|
22
|
-
color: var(--bui-color-fg-muted);
|
|
23
|
-
background: var(--bui-color-bg-view);
|
|
24
|
-
text-align: center;
|
|
25
|
-
border-bottom: 1px solid var(--bui-color-border-default);
|
|
26
|
-
margin: 0 var(--bui-spacing-xl);
|
|
27
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
.bui-action-sheet-item {
|
|
2
|
-
--font-size: var(--bui-title-size-2);
|
|
3
|
-
--color: var(--bui-color-fg-default);
|
|
4
|
-
font-family: var(--bui-font-family);
|
|
5
|
-
position: relative;
|
|
6
|
-
padding: var(--bui-spacing-xl);
|
|
7
|
-
cursor: pointer;
|
|
8
|
-
background: var(--bui-color-bg-view);
|
|
9
|
-
font-size: var(--font-size);
|
|
10
|
-
text-align: center;
|
|
11
|
-
line-height: 24px;
|
|
12
|
-
color: var(--color);
|
|
13
|
-
border-top: 1px solid var(--bui-color-border-default);
|
|
14
|
-
margin: 0 var(--bui-spacing-xl);
|
|
15
|
-
}
|
|
16
|
-
.bui-action-sheet-item:first-child {
|
|
17
|
-
border-top: none;
|
|
18
|
-
}
|
|
19
|
-
.bui-action-sheet-item:active {
|
|
20
|
-
background-color: var(--bui-color-bg-default);
|
|
21
|
-
}
|
|
22
|
-
.bui-action-sheet-item-primary {
|
|
23
|
-
--color: var(--bui-color-primary);
|
|
24
|
-
}
|
|
25
|
-
.bui-action-sheet-item-info {
|
|
26
|
-
--color: var(--bui-color-info);
|
|
27
|
-
}
|
|
28
|
-
.bui-action-sheet-item-success {
|
|
29
|
-
--color: var(--bui-color-success);
|
|
30
|
-
}
|
|
31
|
-
.bui-action-sheet-item-warning {
|
|
32
|
-
--color: var(--bui-color-warning);
|
|
33
|
-
}
|
|
34
|
-
.bui-action-sheet-item-danger {
|
|
35
|
-
--color: var(--bui-color-danger);
|
|
36
|
-
}
|
|
37
|
-
.bui-action-sheet-item-disabled {
|
|
38
|
-
pointer-events: none;
|
|
39
|
-
}
|
|
40
|
-
.bui-action-sheet-item-disabled .bui-action-sheet-item-content,
|
|
41
|
-
.bui-action-sheet-item-disabled .bui-action-sheet-item-description {
|
|
42
|
-
opacity: 0.5;
|
|
43
|
-
}
|
|
44
|
-
.bui-action-sheet-item-bold {
|
|
45
|
-
font-weight: bold;
|
|
46
|
-
}
|
|
47
|
-
.bui-action-sheet-item-description {
|
|
48
|
-
font-size: var(--bui-text-size-2);
|
|
49
|
-
line-height: 19px;
|
|
50
|
-
color: var(--bui-color-fg-subtle);
|
|
51
|
-
}
|
package/dist/Alert/index.css
DELETED
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
.bui-alert {
|
|
2
|
-
--bui-alert-marquee-speed: var(--bui-alert-marquee-seed, 10s);
|
|
3
|
-
display: flex;
|
|
4
|
-
padding: 8px;
|
|
5
|
-
border-radius: var(--bui-shape-radius-default);
|
|
6
|
-
align-items: center;
|
|
7
|
-
line-height: 16px;
|
|
8
|
-
font-size: var(--bui-text-size-3);
|
|
9
|
-
font-family: var(--bui-font-family);
|
|
10
|
-
}
|
|
11
|
-
.bui-alert-standard-primary {
|
|
12
|
-
background-color: var(--bui-color-primary-light);
|
|
13
|
-
color: var(--bui-color-primary);
|
|
14
|
-
}
|
|
15
|
-
.bui-alert-standard-success {
|
|
16
|
-
background-color: var(--bui-color-success-light);
|
|
17
|
-
color: var(--bui-color-success);
|
|
18
|
-
}
|
|
19
|
-
.bui-alert-standard-info {
|
|
20
|
-
background-color: var(--bui-color-info-light);
|
|
21
|
-
color: var(--bui-color-info);
|
|
22
|
-
}
|
|
23
|
-
.bui-alert-standard-danger {
|
|
24
|
-
background-color: var(--bui-color-danger-light);
|
|
25
|
-
color: var(--bui-color-danger);
|
|
26
|
-
}
|
|
27
|
-
.bui-alert-standard-warning {
|
|
28
|
-
color: var(--bui-color-warning);
|
|
29
|
-
background-color: var(--bui-color-warning-light);
|
|
30
|
-
}
|
|
31
|
-
.bui-alert-outlined-primary {
|
|
32
|
-
border: 1px solid var(--bui-color-primary);
|
|
33
|
-
color: var(--bui-color-primary);
|
|
34
|
-
}
|
|
35
|
-
.bui-alert-outlined-success {
|
|
36
|
-
border: 1px solid var(--bui-color-success);
|
|
37
|
-
color: var(--bui-color-success);
|
|
38
|
-
}
|
|
39
|
-
.bui-alert-outlined-info {
|
|
40
|
-
border: 1px solid var(--bui-color-info);
|
|
41
|
-
color: var(--bui-color-info);
|
|
42
|
-
}
|
|
43
|
-
.bui-alert-outlined-danger {
|
|
44
|
-
border: 1px solid var(--bui-color-danger);
|
|
45
|
-
color: var(--bui-color-danger);
|
|
46
|
-
}
|
|
47
|
-
.bui-alert-outlined-warning {
|
|
48
|
-
border: 1px solid var(--bui-color-warning);
|
|
49
|
-
color: var(--bui-color-warning);
|
|
50
|
-
}
|
|
51
|
-
.bui-alert-default-icon {
|
|
52
|
-
font-size: 15px;
|
|
53
|
-
}
|
|
54
|
-
.bui-alert-content {
|
|
55
|
-
flex-grow: 1;
|
|
56
|
-
}
|
|
57
|
-
.bui-alert-action {
|
|
58
|
-
flex-shrink: 0;
|
|
59
|
-
margin-left: 16px;
|
|
60
|
-
word-wrap: keep-all;
|
|
61
|
-
font-size: var(--bui-text-size-3);
|
|
62
|
-
cursor: pointer;
|
|
63
|
-
text-align: center;
|
|
64
|
-
}
|
|
65
|
-
.bui-alert-action.bui-icon-btn {
|
|
66
|
-
padding: 0;
|
|
67
|
-
}
|
|
68
|
-
.bui-alert-icon {
|
|
69
|
-
display: flex;
|
|
70
|
-
align-items: center;
|
|
71
|
-
padding-right: 4px;
|
|
72
|
-
vertical-align: middle;
|
|
73
|
-
font-size: 15px;
|
|
74
|
-
cursor: pointer;
|
|
75
|
-
}
|
|
76
|
-
.bui-alert-marquee {
|
|
77
|
-
overflow: hidden;
|
|
78
|
-
}
|
|
79
|
-
.bui-alert-marquee-content {
|
|
80
|
-
display: inline-block;
|
|
81
|
-
padding-left: 100%;
|
|
82
|
-
white-space: nowrap;
|
|
83
|
-
animation: marquee var(--bui-alert-marquee-speed) linear infinite both;
|
|
84
|
-
}
|
|
85
|
-
@keyframes marquee {
|
|
86
|
-
100% {
|
|
87
|
-
transform: translateX(-100%);
|
|
88
|
-
}
|
|
89
|
-
}
|
package/dist/Avatar/Avatar.css
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
.bui-avatar {
|
|
2
|
-
display: flex;
|
|
3
|
-
justify-content: center;
|
|
4
|
-
align-items: center;
|
|
5
|
-
font-size: 12px;
|
|
6
|
-
background-color: var(--bui-color-bg-default);
|
|
7
|
-
font-family: var(--bui-font-family);
|
|
8
|
-
}
|
|
9
|
-
.bui-avatar-children {
|
|
10
|
-
white-space: nowrap;
|
|
11
|
-
overflow: hidden;
|
|
12
|
-
text-overflow: ellipsis;
|
|
13
|
-
}
|
|
14
|
-
.bui-avatar-large {
|
|
15
|
-
width: 60px;
|
|
16
|
-
height: 60px;
|
|
17
|
-
}
|
|
18
|
-
.bui-avatar-medium {
|
|
19
|
-
width: 42px;
|
|
20
|
-
height: 42px;
|
|
21
|
-
}
|
|
22
|
-
.bui-avatar-small {
|
|
23
|
-
width: 30px;
|
|
24
|
-
height: 30px;
|
|
25
|
-
}
|
|
26
|
-
.bui-avatar-xsmall {
|
|
27
|
-
width: 24px;
|
|
28
|
-
height: 24px;
|
|
29
|
-
}
|
|
30
|
-
.bui-avatar-rounded {
|
|
31
|
-
border-radius: 50%;
|
|
32
|
-
}
|
|
33
|
-
.bui-avatar-rounded .bui-avatar-img {
|
|
34
|
-
width: 100%;
|
|
35
|
-
height: 100%;
|
|
36
|
-
border-radius: 50%;
|
|
37
|
-
}
|
|
38
|
-
.bui-avatar-square {
|
|
39
|
-
border-radius: var(--bui-shape-radius-poster);
|
|
40
|
-
}
|
|
41
|
-
.bui-avatar-square .bui-avatar-img {
|
|
42
|
-
border-radius: var(--bui-shape-radius-poster);
|
|
43
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
.bui-avatar-group {
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-direction: row;
|
|
4
|
-
font-family: var(--bui-font-family);
|
|
5
|
-
}
|
|
6
|
-
.bui-avatar-group-avatar,
|
|
7
|
-
.bui-avatar-group-extra {
|
|
8
|
-
box-shadow: 0 0 0 2px var(--bui-color-bg-view);
|
|
9
|
-
color: var(--bui-color-fg-default);
|
|
10
|
-
}
|
|
11
|
-
.bui-avatar-group .bui-avatar-xsmall:not(:first-child) {
|
|
12
|
-
margin-left: -5px;
|
|
13
|
-
}
|
|
14
|
-
.bui-avatar-group .bui-avatar-small {
|
|
15
|
-
box-shadow: 0 0 0 1px var(--bui-color-bg-view);
|
|
16
|
-
}
|
|
17
|
-
.bui-avatar-group .bui-avatar-small:not(:first-child) {
|
|
18
|
-
margin-left: -9px;
|
|
19
|
-
}
|
|
20
|
-
.bui-avatar-group .bui-avatar-large {
|
|
21
|
-
box-shadow: 0 0 0 3px var(--bui-color-bg-view);
|
|
22
|
-
}
|
|
23
|
-
.bui-avatar-group .bui-avatar-large:not(:first-child) {
|
|
24
|
-
margin-left: -21px;
|
|
25
|
-
}
|
|
26
|
-
.bui-avatar-group .bui-avatar-medium {
|
|
27
|
-
box-shadow: 0 0 0 2px var(--bui-color-bg-view);
|
|
28
|
-
}
|
|
29
|
-
.bui-avatar-group .bui-avatar-medium:not(:first-child) {
|
|
30
|
-
margin-left: -13px;
|
|
31
|
-
}
|
package/dist/Badge/Badge.css
DELETED
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
.bui-badge {
|
|
2
|
-
display: inline-block;
|
|
3
|
-
font-family: var(--bui-font-family);
|
|
4
|
-
}
|
|
5
|
-
.bui-badge-position {
|
|
6
|
-
position: relative;
|
|
7
|
-
}
|
|
8
|
-
.bui-badge-position .bui-badge-contained,
|
|
9
|
-
.bui-badge-position .bui-badge-outlined {
|
|
10
|
-
position: absolute;
|
|
11
|
-
top: 14%;
|
|
12
|
-
right: 14%;
|
|
13
|
-
transform: scale(1) translate(50%, -50%);
|
|
14
|
-
}
|
|
15
|
-
.bui-badge-position .bui-badge-dot {
|
|
16
|
-
top: 14%;
|
|
17
|
-
right: 14%;
|
|
18
|
-
transform: scale(1) translate(50%, -50%);
|
|
19
|
-
}
|
|
20
|
-
.bui-badge-position .bui-badge-bubble {
|
|
21
|
-
top: 14%;
|
|
22
|
-
right: 14%;
|
|
23
|
-
transform: scale(1) translate(50%, -50%);
|
|
24
|
-
}
|
|
25
|
-
.bui-badge-contained,
|
|
26
|
-
.bui-badge-outlined {
|
|
27
|
-
display: flex;
|
|
28
|
-
box-sizing: border-box;
|
|
29
|
-
align-items: center;
|
|
30
|
-
justify-content: center;
|
|
31
|
-
min-width: 15px;
|
|
32
|
-
height: 15px;
|
|
33
|
-
line-height: 15px;
|
|
34
|
-
padding: 0 3px;
|
|
35
|
-
font-size: var(--bui-text-size-4);
|
|
36
|
-
border-radius: 8px;
|
|
37
|
-
color: var(--bui-color-bg-view);
|
|
38
|
-
white-space: nowrap;
|
|
39
|
-
z-index: 1;
|
|
40
|
-
}
|
|
41
|
-
.bui-badge-outlined {
|
|
42
|
-
padding: 0 2px;
|
|
43
|
-
}
|
|
44
|
-
.bui-badge-primary {
|
|
45
|
-
background-color: var(--bui-color-primary);
|
|
46
|
-
}
|
|
47
|
-
.bui-badge-success {
|
|
48
|
-
background-color: var(--bui-color-success);
|
|
49
|
-
}
|
|
50
|
-
.bui-badge-info {
|
|
51
|
-
background-color: var(--bui-color-info);
|
|
52
|
-
}
|
|
53
|
-
.bui-badge-warning {
|
|
54
|
-
background-color: var(--bui-color-warning);
|
|
55
|
-
}
|
|
56
|
-
.bui-badge-danger {
|
|
57
|
-
background-color: var(--bui-color-danger);
|
|
58
|
-
}
|
|
59
|
-
.bui-badge-dot {
|
|
60
|
-
width: 9px;
|
|
61
|
-
min-width: 0;
|
|
62
|
-
height: 9px;
|
|
63
|
-
padding: 0;
|
|
64
|
-
border-radius: 100%;
|
|
65
|
-
}
|
|
66
|
-
.bui-badge-bubble {
|
|
67
|
-
border-radius: 6px 6px 6px 0;
|
|
68
|
-
padding: 0 5px;
|
|
69
|
-
}
|
|
70
|
-
.bui-badge-outlined {
|
|
71
|
-
background: var(--bui-color-bg-view);
|
|
72
|
-
}
|
|
73
|
-
.bui-badge-outlined.bui-badge-primary {
|
|
74
|
-
border: 1px solid var(--bui-color-primary);
|
|
75
|
-
color: var(--bui-color-primary);
|
|
76
|
-
}
|
|
77
|
-
.bui-badge-outlined.bui-badge-success {
|
|
78
|
-
border: 1px solid var(--bui-color-success);
|
|
79
|
-
color: var(--bui-color-success);
|
|
80
|
-
}
|
|
81
|
-
.bui-badge-outlined.bui-badge-info {
|
|
82
|
-
border: 1px solid var(--bui-color-info);
|
|
83
|
-
color: var(--bui-color-info);
|
|
84
|
-
}
|
|
85
|
-
.bui-badge-outlined.bui-badge-warning {
|
|
86
|
-
border: 1px solid var(--bui-color-warning);
|
|
87
|
-
color: var(--bui-color-warning);
|
|
88
|
-
}
|
|
89
|
-
.bui-badge-outlined.bui-badge-danger {
|
|
90
|
-
border: 1px solid var(--bui-color-danger);
|
|
91
|
-
color: var(--bui-color-danger);
|
|
92
|
-
}
|
|
93
|
-
.bui-badge-outlined.bui-badge-bubble {
|
|
94
|
-
border-radius: 6px 6px 6px 0;
|
|
95
|
-
}
|