@bifrostui/react 1.1.5 → 1.1.7
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 +27 -0
- package/dist/ActionSheet/ActionSheetItem.css +51 -0
- package/dist/Alert/index.css +89 -0
- package/dist/Avatar/Avatar.css +43 -0
- package/dist/Avatar/AvatarGroup.css +31 -0
- package/dist/Backdrop/{Backdrop.less → Backdrop.css} +3 -4
- package/dist/Badge/Badge.css +95 -0
- package/dist/Button/Button.css +200 -0
- package/dist/Calendar/Calendar.css +105 -0
- package/dist/Card/{Card.less → Card.css} +0 -1
- package/dist/Card/CardHeader.css +45 -0
- package/dist/Checkbox/Checkbox.css +45 -0
- package/dist/CitySelector/CitySelector.css +102 -0
- package/dist/CitySelector/Selector/{index.less → index.css} +0 -2
- package/dist/Countdown/Countdown.css +28 -0
- package/dist/Divider/Divider.css +41 -0
- package/dist/Drawer/Drawer.css +35 -0
- package/dist/IconButton/IconButton.css +130 -0
- package/dist/Image/index.css +35 -0
- package/dist/Input/Input.css +59 -0
- package/dist/List/{List.less → List.css} +0 -1
- package/{es/List/ListItem.less → dist/List/ListItem.css} +6 -17
- package/{es/List/ListItemContent.less → dist/List/ListItemContent.css} +2 -7
- package/{es/List/ListItemFooter.less → dist/List/ListItemFooter.css} +3 -4
- package/dist/Loading/Loading.css +31 -0
- package/{es/Modal/Modal.less → dist/Modal/Modal.css} +6 -8
- package/dist/Modal/Modal.miniapp.d.ts +2 -2
- package/dist/NavBar/NavBar.css +57 -0
- package/dist/Picker/Picker.css +53 -0
- package/dist/Picker/PickerPanel.css +54 -0
- package/dist/Progress/Progress.css +22 -0
- package/dist/Radio/Radio.css +65 -0
- package/dist/Rating/Rating.css +52 -0
- package/dist/ScrollView/{ScrollView.less → ScrollView.css} +0 -4
- package/dist/Select/Select.css +89 -0
- package/dist/Skeleton/Skeleton.css +54 -0
- package/dist/Slider/Slider.css +95 -0
- package/dist/Stack/demo/index.css +23 -0
- package/dist/Steps/Step.css +174 -0
- package/{es/Steps/Steps.less → dist/Steps/Steps.css} +3 -5
- package/dist/Swiper/Swiper.css +20 -0
- package/dist/Switch/Switch.css +127 -0
- package/dist/TabBar/TabBarItem.css +38 -0
- package/dist/Tabs/Tab.css +52 -0
- package/dist/Tabs/TabPanel.css +9 -0
- package/dist/Tabs/Tabs.css +56 -0
- package/dist/Tag/Tag.css +97 -0
- package/dist/Tag/TagGroup.css +43 -0
- package/{es/TextArea/TextArea.less → dist/TextArea/TextArea.css} +19 -27
- package/es/ActionSheet/ActionSheet.css +27 -0
- package/es/ActionSheet/ActionSheetItem.css +51 -0
- package/es/Alert/index.css +89 -0
- package/es/Avatar/Avatar.css +43 -0
- package/es/Avatar/AvatarGroup.css +31 -0
- package/es/Backdrop/{Backdrop.less → Backdrop.css} +3 -4
- package/es/Badge/Badge.css +95 -0
- package/es/Button/Button.css +200 -0
- package/es/Calendar/Calendar.css +105 -0
- package/es/Card/{Card.less → Card.css} +0 -1
- package/es/Card/CardHeader.css +45 -0
- package/es/Checkbox/Checkbox.css +45 -0
- package/es/CitySelector/CitySelector.css +102 -0
- package/es/CitySelector/Selector/{index.less → index.css} +0 -2
- package/es/Countdown/Countdown.css +28 -0
- package/es/Divider/Divider.css +41 -0
- package/es/Drawer/Drawer.css +35 -0
- package/es/IconButton/IconButton.css +130 -0
- package/es/Image/index.css +35 -0
- package/es/Input/Input.css +59 -0
- package/es/List/{List.less → List.css} +0 -1
- package/{dist/List/ListItem.less → es/List/ListItem.css} +6 -17
- package/{dist/List/ListItemContent.less → es/List/ListItemContent.css} +2 -7
- package/{dist/List/ListItemFooter.less → es/List/ListItemFooter.css} +3 -4
- package/es/Loading/Loading.css +31 -0
- package/{dist/Modal/Modal.less → es/Modal/Modal.css} +6 -8
- package/es/Modal/Modal.miniapp.d.ts +2 -2
- package/es/NavBar/NavBar.css +57 -0
- package/es/Picker/Picker.css +53 -0
- package/es/Picker/PickerPanel.css +54 -0
- package/es/Progress/Progress.css +22 -0
- package/es/Radio/Radio.css +65 -0
- package/es/Rating/Rating.css +52 -0
- package/es/ScrollView/{ScrollView.less → ScrollView.css} +0 -4
- package/es/Select/Select.css +89 -0
- package/es/Skeleton/Skeleton.css +54 -0
- package/es/Slider/Slider.css +95 -0
- package/es/Stack/demo/index.css +23 -0
- package/es/Steps/Step.css +174 -0
- package/{dist/Steps/Steps.less → es/Steps/Steps.css} +3 -5
- package/es/Swiper/Swiper.css +20 -0
- package/es/Switch/Switch.css +127 -0
- package/es/TabBar/TabBarItem.css +38 -0
- package/es/Tabs/Tab.css +52 -0
- package/es/Tabs/TabPanel.css +9 -0
- package/es/Tabs/Tabs.css +56 -0
- package/es/Tag/Tag.css +97 -0
- package/es/Tag/TagGroup.css +43 -0
- package/{dist/TextArea/TextArea.less → es/TextArea/TextArea.css} +19 -27
- package/package.json +7 -7
- package/dist/ActionSheet/ActionSheet.less +0 -31
- package/dist/ActionSheet/ActionSheetItem.less +0 -62
- package/dist/Alert/index.less +0 -112
- package/dist/Avatar/Avatar.less +0 -52
- package/dist/Avatar/AvatarGroup.less +0 -39
- package/dist/Badge/Badge.less +0 -118
- package/dist/Button/Button.less +0 -244
- package/dist/Calendar/Calendar.less +0 -126
- package/dist/Card/CardHeader.less +0 -53
- package/dist/Checkbox/Checkbox.less +0 -55
- package/dist/CitySelector/CitySelector.less +0 -122
- package/dist/Countdown/Countdown.less +0 -39
- package/dist/Divider/Divider.less +0 -50
- package/dist/Drawer/Drawer.less +0 -40
- package/dist/IconButton/IconButton.less +0 -167
- package/dist/Image/index.less +0 -40
- package/dist/Input/Input.less +0 -72
- package/dist/Loading/Loading.less +0 -40
- package/dist/NavBar/NavBar.less +0 -67
- package/dist/Picker/Picker.less +0 -62
- package/dist/Picker/PickerPanel.less +0 -67
- package/dist/Progress/Progress.less +0 -24
- package/dist/Radio/Radio.less +0 -81
- package/dist/Rating/Rating.less +0 -64
- package/dist/Select/Select.less +0 -105
- package/dist/Skeleton/Skeleton.less +0 -72
- package/dist/Slider/Slider.less +0 -108
- package/dist/Stack/demo/index.less +0 -27
- package/dist/Steps/Step.less +0 -228
- package/dist/Swiper/Swiper.less +0 -25
- package/dist/Switch/Switch.less +0 -177
- package/dist/TabBar/TabBarItem.less +0 -54
- package/dist/Tabs/Tab.less +0 -60
- package/dist/Tabs/TabPanel.less +0 -11
- package/dist/Tabs/Tabs.less +0 -77
- package/dist/Tag/Tag.less +0 -119
- package/dist/Tag/TagGroup.less +0 -52
- package/es/ActionSheet/ActionSheet.less +0 -31
- package/es/ActionSheet/ActionSheetItem.less +0 -62
- package/es/Alert/index.less +0 -112
- package/es/Avatar/Avatar.less +0 -52
- package/es/Avatar/AvatarGroup.less +0 -39
- package/es/Badge/Badge.less +0 -118
- package/es/Button/Button.less +0 -244
- package/es/Calendar/Calendar.less +0 -126
- package/es/Card/CardHeader.less +0 -53
- package/es/Checkbox/Checkbox.less +0 -55
- package/es/CitySelector/CitySelector.less +0 -122
- package/es/Countdown/Countdown.less +0 -39
- package/es/Divider/Divider.less +0 -50
- package/es/Drawer/Drawer.less +0 -40
- package/es/IconButton/IconButton.less +0 -167
- package/es/Image/index.less +0 -40
- package/es/Input/Input.less +0 -72
- package/es/Loading/Loading.less +0 -40
- package/es/NavBar/NavBar.less +0 -67
- package/es/Picker/Picker.less +0 -62
- package/es/Picker/PickerPanel.less +0 -67
- package/es/Progress/Progress.less +0 -24
- package/es/Radio/Radio.less +0 -81
- package/es/Rating/Rating.less +0 -64
- package/es/Select/Select.less +0 -105
- package/es/Skeleton/Skeleton.less +0 -72
- package/es/Slider/Slider.less +0 -108
- package/es/Stack/demo/index.less +0 -27
- package/es/Steps/Step.less +0 -228
- package/es/Swiper/Swiper.less +0 -25
- package/es/Switch/Switch.less +0 -177
- package/es/TabBar/TabBarItem.less +0 -54
- package/es/Tabs/Tab.less +0 -60
- package/es/Tabs/TabPanel.less +0 -11
- package/es/Tabs/Tabs.less +0 -77
- package/es/Tag/Tag.less +0 -119
- package/es/Tag/TagGroup.less +0 -52
- /package/dist/Card/{CardContent.less → CardContent.css} +0 -0
- /package/dist/Card/{CardFooter.less → CardFooter.css} +0 -0
- /package/dist/CitySelector/{miniapp.less → miniapp.css} +0 -0
- /package/dist/List/{ListItemExtra.less → ListItemExtra.css} +0 -0
- /package/dist/List/{ListItemHeader.less → ListItemHeader.css} +0 -0
- /package/dist/Stack/{Stack.less → Stack.css} +0 -0
- /package/dist/TabBar/{TabBar.less → TabBar.css} +0 -0
- /package/es/Card/{CardContent.less → CardContent.css} +0 -0
- /package/es/Card/{CardFooter.less → CardFooter.css} +0 -0
- /package/es/CitySelector/{miniapp.less → miniapp.css} +0 -0
- /package/es/List/{ListItemExtra.less → ListItemExtra.css} +0 -0
- /package/es/List/{ListItemHeader.less → ListItemHeader.css} +0 -0
- /package/es/Stack/{Stack.less → Stack.css} +0 -0
- /package/es/TabBar/{TabBar.less → TabBar.css} +0 -0
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
.bui-card-flex() {
|
|
2
|
-
display: flex;
|
|
3
|
-
align-items: center;
|
|
4
|
-
flex-direction: row;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.bui-card-header {
|
|
8
|
-
.bui-card-flex();
|
|
9
|
-
position: relative;
|
|
10
|
-
padding: var(--bui-spacing-md) var(--bui-spacing-lg);
|
|
11
|
-
font-size: var(--bui-title-size-4);
|
|
12
|
-
font-weight: 500;
|
|
13
|
-
color: var(--bui-color-fg-default);
|
|
14
|
-
font-family: var(--bui-font-family);
|
|
15
|
-
|
|
16
|
-
&-title {
|
|
17
|
-
white-space: nowrap;
|
|
18
|
-
overflow: hidden;
|
|
19
|
-
text-overflow: ellipsis;
|
|
20
|
-
max-width: 100%;
|
|
21
|
-
flex-shrink: 0;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
&-subtitle {
|
|
25
|
-
font-size: var(--bui-text-size-3);
|
|
26
|
-
font-weight: normal;
|
|
27
|
-
white-space: nowrap;
|
|
28
|
-
overflow: hidden;
|
|
29
|
-
text-overflow: ellipsis;
|
|
30
|
-
color: var(--bui-color-fg-subtle);
|
|
31
|
-
padding: 0 var(--bui-spacing-xs);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
&-extra {
|
|
35
|
-
white-space: nowrap;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
&-end-icon {
|
|
39
|
-
.bui-card-flex();
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
&-extra,
|
|
43
|
-
&-end-icon {
|
|
44
|
-
font-size: var(--bui-text-size-3);
|
|
45
|
-
font-weight: normal;
|
|
46
|
-
color: var(--bui-color-fg-subtle);
|
|
47
|
-
margin-left: auto;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
&-extra + &-end-icon {
|
|
51
|
-
margin-left: 2px;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
@import '~@bifrostui/styles/mixins/index.less';
|
|
2
|
-
|
|
3
|
-
.bui-checkbox {
|
|
4
|
-
--label-color: var(--bui-color-fg-default);
|
|
5
|
-
--label-font-size: var(--bui-text-size-1);
|
|
6
|
-
--icon-font-size: var(--bui-title-size-2);
|
|
7
|
-
display: inline-flex;
|
|
8
|
-
align-items: center;
|
|
9
|
-
position: relative;
|
|
10
|
-
font-family: var(--bui-font-family);
|
|
11
|
-
|
|
12
|
-
&.bui-checkbox-disabled {
|
|
13
|
-
pointer-events: none;
|
|
14
|
-
opacity: 0.5;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
&-label-left {
|
|
18
|
-
flex-direction: row-reverse;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
&-label-top {
|
|
22
|
-
flex-direction: column-reverse;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
&-label-bottom {
|
|
26
|
-
flex-direction: column;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
&-input {
|
|
30
|
-
opacity: 0;
|
|
31
|
-
// 解决onClick触发两次的问题 & 微信文案点击选中
|
|
32
|
-
width: 100%;
|
|
33
|
-
height: 100%;
|
|
34
|
-
position: absolute;
|
|
35
|
-
top: 0;
|
|
36
|
-
left: 0;
|
|
37
|
-
cursor: pointer;
|
|
38
|
-
z-index: 1;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
&-icon {
|
|
42
|
-
display: flex;
|
|
43
|
-
align-items: center;
|
|
44
|
-
justify-content: center;
|
|
45
|
-
flex-shrink: 0;
|
|
46
|
-
padding: 5px;
|
|
47
|
-
box-sizing: border-box;
|
|
48
|
-
font-size: var(--icon-font-size);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
&-label {
|
|
52
|
-
font-size: var(--label-font-size);
|
|
53
|
-
color: var(--label-color);
|
|
54
|
-
}
|
|
55
|
-
}
|
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
@import '~@bifrostui/styles/mixins/index.less';
|
|
2
|
-
|
|
3
|
-
.bui-city-selector {
|
|
4
|
-
font-family: var(--bui-font-family);
|
|
5
|
-
height: 100%;
|
|
6
|
-
position: relative;
|
|
7
|
-
|
|
8
|
-
&-title {
|
|
9
|
-
width: 100%;
|
|
10
|
-
height: 45px;
|
|
11
|
-
color: var(--bui-color-fg-default);
|
|
12
|
-
font-size: var(--bui-title-size-3);
|
|
13
|
-
line-height: 45px;
|
|
14
|
-
text-align: center;
|
|
15
|
-
position: sticky;
|
|
16
|
-
top: 0;
|
|
17
|
-
z-index: 1004;
|
|
18
|
-
border-bottom: solid 1px var(--bui-color-border-default);
|
|
19
|
-
background-color: var(--bui-color-bg-view);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
&-btn-close {
|
|
23
|
-
position: absolute;
|
|
24
|
-
top: 0;
|
|
25
|
-
right: 0;
|
|
26
|
-
width: 45px;
|
|
27
|
-
height: 45px;
|
|
28
|
-
color: var(--bui-color-fg-muted);
|
|
29
|
-
text-align: center;
|
|
30
|
-
font-size: 20px;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
&-scroll-view-container {
|
|
34
|
-
height: 100%;
|
|
35
|
-
|
|
36
|
-
&.container-has-title {
|
|
37
|
-
height: calc(100% - 45px);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
&-all-city {
|
|
42
|
-
min-height: 500px;
|
|
43
|
-
font-size: var(--bui-text-size-2);
|
|
44
|
-
width: 100%;
|
|
45
|
-
background: var(--bui-color-bg-view);
|
|
46
|
-
align-self: flex-start;
|
|
47
|
-
|
|
48
|
-
.select-city-buttons {
|
|
49
|
-
display: flex;
|
|
50
|
-
flex-flow: wrap;
|
|
51
|
-
padding-left: 3px;
|
|
52
|
-
padding-top: 7.5px;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.select-city-title {
|
|
56
|
-
font-size: var(--bui-title-size-4);
|
|
57
|
-
line-height: 15px;
|
|
58
|
-
font-weight: 600;
|
|
59
|
-
padding-left: var(--bui-spacing-lg);
|
|
60
|
-
padding-top: 9px;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
&-list {
|
|
65
|
-
padding-left: var(--bui-spacing-lg);
|
|
66
|
-
list-style-type: none;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
&-list-item {
|
|
70
|
-
height: 45px;
|
|
71
|
-
font-size: var(--bui-title-size-4);
|
|
72
|
-
display: flex;
|
|
73
|
-
align-items: center;
|
|
74
|
-
|
|
75
|
-
&:not(:last-child) {
|
|
76
|
-
border-bottom: 0.5px solid var(--bui-color-border-default);
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
&-index-container {
|
|
81
|
-
z-index: 1001;
|
|
82
|
-
position: absolute;
|
|
83
|
-
white-space: nowrap;
|
|
84
|
-
right: 0;
|
|
85
|
-
top: 50%;
|
|
86
|
-
width: 40px;
|
|
87
|
-
will-change: transform;
|
|
88
|
-
// transform: translate(100%, -50%);
|
|
89
|
-
transform: translate(0, -50%);
|
|
90
|
-
transition:
|
|
91
|
-
opacity 0.2s ease-out,
|
|
92
|
-
transform 0.2s ease-out;
|
|
93
|
-
|
|
94
|
-
&.left-in {
|
|
95
|
-
opacity: 1;
|
|
96
|
-
transform: translate(0, -50%);
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
&.city-index-has-title {
|
|
100
|
-
top: calc(50% + 22.5px);
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
ul {
|
|
104
|
-
margin: 0;
|
|
105
|
-
padding: 0;
|
|
106
|
-
float: left;
|
|
107
|
-
width: 100%;
|
|
108
|
-
touch-action: none;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
li {
|
|
112
|
-
list-style: none;
|
|
113
|
-
height: 20px;
|
|
114
|
-
text-align: center;
|
|
115
|
-
font-size: var(--bui-text-size-3);
|
|
116
|
-
color: var(--bui-color-info, --bui-color-info);
|
|
117
|
-
display: flex;
|
|
118
|
-
align-items: center;
|
|
119
|
-
justify-content: center;
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
@import '~@bifrostui/styles/mixins/index.less';
|
|
2
|
-
|
|
3
|
-
.bui-countdown {
|
|
4
|
-
--font-size: var(--bui-countdown-font-size, var(--bui-text-size-1));
|
|
5
|
-
--color: var(--bui-countdown-color, var(--bui-color-fg-default));
|
|
6
|
-
--font-weight: var(
|
|
7
|
-
--bui-countdown-font-weight,
|
|
8
|
-
var(--bui-font-weight-normal)
|
|
9
|
-
);
|
|
10
|
-
display: flex;
|
|
11
|
-
flex-direction: row;
|
|
12
|
-
align-items: center;
|
|
13
|
-
font-size: var(--font-size);
|
|
14
|
-
color: var(--color);
|
|
15
|
-
font-weight: var(--font-weight);
|
|
16
|
-
font-family: var(--bui-font-family);
|
|
17
|
-
|
|
18
|
-
&-slice {
|
|
19
|
-
display: flex;
|
|
20
|
-
flex-direction: row;
|
|
21
|
-
align-items: center;
|
|
22
|
-
|
|
23
|
-
&-item {
|
|
24
|
-
display: flex;
|
|
25
|
-
flex-direction: row;
|
|
26
|
-
align-items: center;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
&-value {
|
|
30
|
-
font-family: 'Helvetica Neue', helvetica, 'PingFang SC', 'Chinese Quote',
|
|
31
|
-
'Segoe UI', roboto, 'Hiragino Sans GB', 'Microsoft YaHei', arial,
|
|
32
|
-
sans-serif;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
&-unit {
|
|
36
|
-
margin: 0 2px;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
.bui-divider {
|
|
2
|
-
--height: var(--bui-divider-height, 100%);
|
|
3
|
-
--width: var(--bui-divider-width, 100%);
|
|
4
|
-
|
|
5
|
-
border-color: var(--bui-color-border-default);
|
|
6
|
-
font-family: var(--bui-font-family);
|
|
7
|
-
|
|
8
|
-
&-vertical {
|
|
9
|
-
height: var(--height);
|
|
10
|
-
display: inline-block;
|
|
11
|
-
border-right-width: 1px;
|
|
12
|
-
border-right-style: solid;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
&-horizontal {
|
|
16
|
-
width: var(--width);
|
|
17
|
-
border-bottom-width: 1px;
|
|
18
|
-
border-bottom-style: solid;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
&-vertical-dashed {
|
|
22
|
-
border-right-style: dashed;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
&-horizontal-dashed {
|
|
26
|
-
border-bottom-style: dashed;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
&-content {
|
|
30
|
-
width: 100%;
|
|
31
|
-
// border-width 设置border粗细
|
|
32
|
-
border-width: 0;
|
|
33
|
-
display: flex;
|
|
34
|
-
align-items: center;
|
|
35
|
-
justify-content: center;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
&-line {
|
|
39
|
-
width: 40px;
|
|
40
|
-
border-bottom-width: 1px;
|
|
41
|
-
border-bottom-style: solid;
|
|
42
|
-
border-color: var(--bui-color-border-default);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
&-text {
|
|
46
|
-
flex-shrink: 0;
|
|
47
|
-
color: var(--bui-color-fg-subtle);
|
|
48
|
-
font-size: var(--bui-text-size-2);
|
|
49
|
-
}
|
|
50
|
-
}
|
package/dist/Drawer/Drawer.less
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
.bui-drawer {
|
|
2
|
-
font-family: var(--bui-font-family);
|
|
3
|
-
|
|
4
|
-
&-content {
|
|
5
|
-
display: flex;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
height: 100%;
|
|
8
|
-
flex: 1 0 auto;
|
|
9
|
-
position: fixed;
|
|
10
|
-
top: 0;
|
|
11
|
-
outline: 0;
|
|
12
|
-
background-color: var(--bui-color-bg-view);
|
|
13
|
-
|
|
14
|
-
&-left {
|
|
15
|
-
left: 0;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
&-top {
|
|
19
|
-
top: 0;
|
|
20
|
-
left: 0;
|
|
21
|
-
right: 0;
|
|
22
|
-
height: auto;
|
|
23
|
-
max-height: 100%;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
&-right {
|
|
27
|
-
right: 0;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
&-bottom {
|
|
31
|
-
bottom: 0;
|
|
32
|
-
top: auto;
|
|
33
|
-
left: 0;
|
|
34
|
-
/* stylelint-disable-next-line declaration-block-no-redundant-longhand-properties */
|
|
35
|
-
right: 0;
|
|
36
|
-
height: auto;
|
|
37
|
-
max-height: 100%;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
@@ -1,167 +0,0 @@
|
|
|
1
|
-
@import '~@bifrostui/styles/mixins/index.less';
|
|
2
|
-
|
|
3
|
-
.btn-icon-default(@color) {
|
|
4
|
-
color: var(~'--bui-color-@{color}');
|
|
5
|
-
}
|
|
6
|
-
.btn-icon-outline(@color) {
|
|
7
|
-
color: var(~'--bui-color-@{color}');
|
|
8
|
-
border-color: var(~'--bui-color-@{color}');
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.btn-icon-contained(@color) {
|
|
12
|
-
color: var(--bui-color-white);
|
|
13
|
-
.linear-gradient(var(~'--bui-color-@{color}-start'), var(~'--bui-color-@{color}-end'));
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.bui-icon-btn {
|
|
17
|
-
--bg-color: var(--bui-color-neutral-5);
|
|
18
|
-
--color: var(--bui-color-fg-muted);
|
|
19
|
-
--icon-size: 17px;
|
|
20
|
-
--user-area: 5px;
|
|
21
|
-
position: relative;
|
|
22
|
-
display: inline-flex;
|
|
23
|
-
height: auto;
|
|
24
|
-
margin: 0;
|
|
25
|
-
align-items: center;
|
|
26
|
-
justify-content: center;
|
|
27
|
-
background-color: transparent;
|
|
28
|
-
border: 1px solid transparent;
|
|
29
|
-
color: var(--color);
|
|
30
|
-
cursor: pointer;
|
|
31
|
-
font-family: var(--bui-font-family);
|
|
32
|
-
|
|
33
|
-
&::before {
|
|
34
|
-
position: absolute;
|
|
35
|
-
top: 50%;
|
|
36
|
-
left: 50%;
|
|
37
|
-
width: 100%;
|
|
38
|
-
height: 100%;
|
|
39
|
-
background-color: var(--bui-color-black);
|
|
40
|
-
border: inherit;
|
|
41
|
-
border-color: var(--bui-color-black);
|
|
42
|
-
border-radius: inherit;
|
|
43
|
-
transform: translate(-50%, -50%);
|
|
44
|
-
opacity: 0;
|
|
45
|
-
content: ' ';
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
&:active::before {
|
|
49
|
-
opacity: 0.04;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
&::after {
|
|
53
|
-
border: 0;
|
|
54
|
-
}
|
|
55
|
-
font-size: var(--icon-size);
|
|
56
|
-
padding: var(--user-area);
|
|
57
|
-
|
|
58
|
-
&-small {
|
|
59
|
-
font-size: var(--bui-text-size-4);
|
|
60
|
-
padding: var(--bui-spacing-xs);
|
|
61
|
-
|
|
62
|
-
&.bui-icon-btn-outlined,
|
|
63
|
-
&.bui-icon-btn-contained {
|
|
64
|
-
padding: var(--bui-spacing-xs);
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
&-medium {
|
|
69
|
-
&.bui-icon-btn-outlined,
|
|
70
|
-
&.bui-icon-btn-contained {
|
|
71
|
-
padding: 5px;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
&-large {
|
|
76
|
-
font-size: 23px;
|
|
77
|
-
padding: var(--bui-spacing-sm);
|
|
78
|
-
|
|
79
|
-
&.bui-icon-btn-outlined,
|
|
80
|
-
&.bui-icon-btn-contained {
|
|
81
|
-
padding: var(--bui-spacing-sm);
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
&-disabled {
|
|
86
|
-
pointer-events: none;
|
|
87
|
-
opacity: 0.5;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
&-circular {
|
|
91
|
-
border-radius: 100%;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
&-rounded {
|
|
95
|
-
border-radius: var(--bui-shape-radius-default);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
&-square {
|
|
99
|
-
border-radius: 0;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
&-default {
|
|
103
|
-
&.bui-icon-btn-primary {
|
|
104
|
-
.btn-icon-default(primary);
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
&.bui-icon-btn-success {
|
|
108
|
-
.btn-icon-default(success);
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
&.bui-icon-btn-info {
|
|
112
|
-
.btn-icon-default(info);
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
&.bui-icon-btn-warning {
|
|
116
|
-
.btn-icon-default(warning);
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
&-outlined {
|
|
121
|
-
border: solid 1px;
|
|
122
|
-
|
|
123
|
-
&.bui-icon-btn-primary {
|
|
124
|
-
.btn-icon-outline(primary);
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
&.bui-icon-btn-success {
|
|
128
|
-
.btn-icon-outline(success);
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
&.bui-icon-btn-info {
|
|
132
|
-
.btn-icon-outline(info);
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
&.bui-icon-btn-warning {
|
|
136
|
-
.btn-icon-outline(warning);
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
&.bui-icon-btn-danger {
|
|
140
|
-
.btn-icon-outline(danger);
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
&-contained {
|
|
145
|
-
background-color: var(--bg-color);
|
|
146
|
-
|
|
147
|
-
&.bui-icon-btn-primary {
|
|
148
|
-
.btn-icon-contained(primary);
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
&.bui-icon-btn-success {
|
|
152
|
-
.btn-icon-contained(success);
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
&.bui-icon-btn-info {
|
|
156
|
-
.btn-icon-contained(info);
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
&.bui-icon-btn-warning {
|
|
160
|
-
.btn-icon-contained(warning);
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
&.bui-icon-btn-danger {
|
|
164
|
-
.btn-icon-contained(danger);
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
}
|
package/dist/Image/index.less
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
.bui-image {
|
|
2
|
-
width: auto;
|
|
3
|
-
height: auto;
|
|
4
|
-
display: inline-block;
|
|
5
|
-
overflow: hidden;
|
|
6
|
-
position: relative;
|
|
7
|
-
font-family: var(--bui-font-family);
|
|
8
|
-
|
|
9
|
-
.bui-image-img {
|
|
10
|
-
width: 100%;
|
|
11
|
-
height: 100%;
|
|
12
|
-
overflow: hidden;
|
|
13
|
-
display: block;
|
|
14
|
-
opacity: 0;
|
|
15
|
-
|
|
16
|
-
&.bui-image-loaded {
|
|
17
|
-
opacity: 1;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
&-default-icon-wrap {
|
|
22
|
-
top: 0;
|
|
23
|
-
left: 0;
|
|
24
|
-
z-index: 1;
|
|
25
|
-
opacity: 1;
|
|
26
|
-
position: absolute;
|
|
27
|
-
width: 100%;
|
|
28
|
-
height: 100%;
|
|
29
|
-
|
|
30
|
-
&.bui-image-loaded {
|
|
31
|
-
opacity: 0;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
&-default-icon-item {
|
|
36
|
-
width: 100%;
|
|
37
|
-
height: 100%;
|
|
38
|
-
background-color: rgba(127, 127, 127, 0.2);
|
|
39
|
-
}
|
|
40
|
-
}
|
package/dist/Input/Input.less
DELETED
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
@import '~@bifrostui/styles/mixins/index.less';
|
|
2
|
-
|
|
3
|
-
.bui-input {
|
|
4
|
-
position: relative;
|
|
5
|
-
display: flex;
|
|
6
|
-
align-items: center;
|
|
7
|
-
height: 32px;
|
|
8
|
-
padding: 4px 10px;
|
|
9
|
-
box-sizing: border-box;
|
|
10
|
-
border-radius: var(--bui-shape-radius-default);
|
|
11
|
-
border: 1px solid var(--bui-color-border-default);
|
|
12
|
-
font-family: var(--bui-font-family);
|
|
13
|
-
|
|
14
|
-
&-icon {
|
|
15
|
-
display: flex;
|
|
16
|
-
align-items: center;
|
|
17
|
-
color: var(--bui-color-fg-subtle);
|
|
18
|
-
font-size: var(--bui-title-size-3);
|
|
19
|
-
|
|
20
|
-
&-start {
|
|
21
|
-
margin-right: 3px;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
&-end {
|
|
25
|
-
margin-left: 3px;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
&-input {
|
|
30
|
-
flex: 1;
|
|
31
|
-
display: flex;
|
|
32
|
-
align-items: center;
|
|
33
|
-
padding: 0;
|
|
34
|
-
height: 100%;
|
|
35
|
-
color: var(--bui-color-fg-default);
|
|
36
|
-
border: none;
|
|
37
|
-
outline: none;
|
|
38
|
-
background-color: transparent;
|
|
39
|
-
font-size: var(--bui-text-size-2);
|
|
40
|
-
|
|
41
|
-
&::placeholder {
|
|
42
|
-
color: var(--bui-color-fg-subtle);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
&-disabled {
|
|
47
|
-
pointer-events: none;
|
|
48
|
-
background-color: rgba(0, 0, 0, 0.04);
|
|
49
|
-
|
|
50
|
-
.bui-input-input {
|
|
51
|
-
color: var(--bui-color-fg-disabled);
|
|
52
|
-
|
|
53
|
-
&::placeholder {
|
|
54
|
-
color: var(--bui-color-fg-disabled);
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
&-clear {
|
|
60
|
-
display: flex;
|
|
61
|
-
align-items: center;
|
|
62
|
-
cursor: pointer;
|
|
63
|
-
color: var(--bui-color-fg-disabled);
|
|
64
|
-
height: 100%;
|
|
65
|
-
font-size: var(--bui-title-size-3);
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.bui-mini-placeholder {
|
|
69
|
-
// 处理小程序placeholder较长被截断问题
|
|
70
|
-
width: auto;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
@import '~@bifrostui/styles/mixins/index.less';
|
|
2
|
-
|
|
3
|
-
.bui-loading {
|
|
4
|
-
--animation-duration: var(--bui-loading-animation-duration, 1.6s);
|
|
5
|
-
|
|
6
|
-
width: fit-content;
|
|
7
|
-
display: flex;
|
|
8
|
-
justify-content: center;
|
|
9
|
-
align-items: center;
|
|
10
|
-
padding: var(--bui-spacing-md);
|
|
11
|
-
font-family: var(--bui-font-family);
|
|
12
|
-
|
|
13
|
-
&-icon {
|
|
14
|
-
font-size: 30px;
|
|
15
|
-
animation: loading var(--animation-duration) linear infinite;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
&-text {
|
|
19
|
-
padding: 10px;
|
|
20
|
-
font-size: var(--bui-title-size-3);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
&-vertical {
|
|
24
|
-
flex-direction: row;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
&-horizontal {
|
|
28
|
-
flex-direction: column;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
@keyframes loading {
|
|
32
|
-
0% {
|
|
33
|
-
transform: rotate(0deg);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
100% {
|
|
37
|
-
transform: rotate(360deg);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|