@bifrostui/react 1.1.5 → 1.1.8-beta.0
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
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
.bui-picker {
|
|
2
|
+
--cancel-color: var(--bui-color-fg-default);
|
|
3
|
+
--cancel-font-size: var(--bui-title-size-4, 15px);
|
|
4
|
+
--confirm-color: var(--bui-color-primary);
|
|
5
|
+
--confirm-font-size: var(--bui-title-size-4, 15px);
|
|
6
|
+
--title-color: var(--bui-color-fg-default);
|
|
7
|
+
--title-font-size: var(--bui-title-size-3, 16px);
|
|
8
|
+
--title-font-weight: var(--bui-font-weight-medium, 500);
|
|
9
|
+
--panel-container-height: 260px;
|
|
10
|
+
--indicator-top: 108px;
|
|
11
|
+
--indicator-height: 36px;
|
|
12
|
+
--indicator-border-color: var(--bui-color-border-default);
|
|
13
|
+
--option-color: var(--bui-color-fg-default);
|
|
14
|
+
--option-font-size: var(--bui-title-size-4);
|
|
15
|
+
--option-height: 36px;
|
|
16
|
+
font-family: var(--bui-font-family);
|
|
17
|
+
}
|
|
18
|
+
.bui-picker .bui-drawer-content {
|
|
19
|
+
border-radius: var(--bui-shape-radius-drawer) var(--bui-shape-radius-drawer) 0 0;
|
|
20
|
+
}
|
|
21
|
+
.bui-picker-header {
|
|
22
|
+
height: 50px;
|
|
23
|
+
display: flex;
|
|
24
|
+
align-items: center;
|
|
25
|
+
justify-content: space-between;
|
|
26
|
+
padding: 0 var(--bui-spacing-lg);
|
|
27
|
+
}
|
|
28
|
+
.bui-picker-cancel {
|
|
29
|
+
width: 40px;
|
|
30
|
+
height: 100%;
|
|
31
|
+
font-size: var(--cancel-font-size);
|
|
32
|
+
text-align: center;
|
|
33
|
+
line-height: 50px;
|
|
34
|
+
color: var(--cancel-color);
|
|
35
|
+
}
|
|
36
|
+
.bui-picker-title {
|
|
37
|
+
font-size: var(--title-font-size);
|
|
38
|
+
color: var(--title-color);
|
|
39
|
+
font-weight: var(--title-font-weight);
|
|
40
|
+
}
|
|
41
|
+
.bui-picker-confirm {
|
|
42
|
+
width: 40px;
|
|
43
|
+
height: 100%;
|
|
44
|
+
font-size: var(--confirm-font-size);
|
|
45
|
+
text-align: center;
|
|
46
|
+
line-height: 50px;
|
|
47
|
+
color: var(--confirm-color);
|
|
48
|
+
}
|
|
49
|
+
.bui-picker-container {
|
|
50
|
+
width: 100%;
|
|
51
|
+
height: var(--panel-container-height);
|
|
52
|
+
display: flex;
|
|
53
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
.bui-picker-panel {
|
|
2
|
+
flex: 1;
|
|
3
|
+
flex-shrink: 0;
|
|
4
|
+
position: relative;
|
|
5
|
+
font-family: var(--bui-font-family);
|
|
6
|
+
}
|
|
7
|
+
.bui-picker-panel-roller {
|
|
8
|
+
transform: rotate3d(1, 0, 0, 60deg);
|
|
9
|
+
transform-style: preserve-3d;
|
|
10
|
+
position: absolute;
|
|
11
|
+
top: var(--indicator-top);
|
|
12
|
+
width: 100%;
|
|
13
|
+
height: var(--option-height);
|
|
14
|
+
}
|
|
15
|
+
.bui-picker-panel-mask {
|
|
16
|
+
position: absolute;
|
|
17
|
+
top: 0;
|
|
18
|
+
left: 0;
|
|
19
|
+
width: 100%;
|
|
20
|
+
height: 100%;
|
|
21
|
+
background-image: linear-gradient(180deg, var(--bui-color-bg-view-opacity-9), var(--bui-color-bg-view-opacity-4)), linear-gradient(0deg, var(--bui-color-bg-view-opacity-9), var(--bui-color-bg-view-opacity-4));
|
|
22
|
+
background-position: top, bottom;
|
|
23
|
+
background-size: 100% var(--indicator-top);
|
|
24
|
+
background-repeat: no-repeat;
|
|
25
|
+
transform: translateZ(0);
|
|
26
|
+
}
|
|
27
|
+
.bui-picker-panel-indicator {
|
|
28
|
+
position: absolute;
|
|
29
|
+
top: var(--indicator-top);
|
|
30
|
+
height: var(--indicator-height);
|
|
31
|
+
width: 100%;
|
|
32
|
+
border-top: 1px solid var(--indicator-border-color);
|
|
33
|
+
border-bottom: 1px solid var(--indicator-border-color);
|
|
34
|
+
}
|
|
35
|
+
.bui-picker-panel-option {
|
|
36
|
+
position: absolute;
|
|
37
|
+
top: 0;
|
|
38
|
+
left: 0;
|
|
39
|
+
text-align: center;
|
|
40
|
+
height: var(--option-height);
|
|
41
|
+
line-height: var(--option-height);
|
|
42
|
+
color: var(--option-color);
|
|
43
|
+
font-size: var(--option-font-size);
|
|
44
|
+
backface-visibility: hidden;
|
|
45
|
+
width: auto;
|
|
46
|
+
overflow: hidden;
|
|
47
|
+
text-overflow: ellipsis;
|
|
48
|
+
white-space: nowrap;
|
|
49
|
+
width: 100%;
|
|
50
|
+
}
|
|
51
|
+
.bui-picker-panel-option-hidden {
|
|
52
|
+
visibility: hidden;
|
|
53
|
+
opacity: 0;
|
|
54
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
.bui-progress {
|
|
2
|
+
--fill-color: var(--bui-color-primary);
|
|
3
|
+
--trail-color: rgba(156, 156, 165, 0.2);
|
|
4
|
+
--stroke-width: 8px;
|
|
5
|
+
width: 100%;
|
|
6
|
+
font-family: var(--bui-font-family);
|
|
7
|
+
}
|
|
8
|
+
.bui-progress-inner {
|
|
9
|
+
position: relative;
|
|
10
|
+
display: inline-block;
|
|
11
|
+
width: 100%;
|
|
12
|
+
overflow: hidden;
|
|
13
|
+
vertical-align: middle;
|
|
14
|
+
background-color: var(--trail-color);
|
|
15
|
+
border-radius: 100px;
|
|
16
|
+
}
|
|
17
|
+
.bui-progress-bg {
|
|
18
|
+
position: relative;
|
|
19
|
+
border-radius: 100px;
|
|
20
|
+
background-color: var(--fill-color);
|
|
21
|
+
height: var(--stroke-width);
|
|
22
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
.bui-radio {
|
|
2
|
+
--label-color: var(--bui-color-fg-default);
|
|
3
|
+
--label-font-size: var(--bui-text-size-1);
|
|
4
|
+
--icon-font-size: var(--bui-title-size-2);
|
|
5
|
+
display: inline-flex;
|
|
6
|
+
align-items: center;
|
|
7
|
+
position: relative;
|
|
8
|
+
font-family: var(--bui-font-family);
|
|
9
|
+
}
|
|
10
|
+
.bui-radio-disabled {
|
|
11
|
+
pointer-events: none;
|
|
12
|
+
opacity: 0.5;
|
|
13
|
+
}
|
|
14
|
+
.bui-radio-label-left {
|
|
15
|
+
flex-direction: row-reverse;
|
|
16
|
+
}
|
|
17
|
+
.bui-radio-label-top {
|
|
18
|
+
flex-direction: column-reverse;
|
|
19
|
+
}
|
|
20
|
+
.bui-radio-label-bottom {
|
|
21
|
+
flex-direction: column;
|
|
22
|
+
}
|
|
23
|
+
.bui-radio-input {
|
|
24
|
+
opacity: 0;
|
|
25
|
+
width: 100%;
|
|
26
|
+
height: 100%;
|
|
27
|
+
position: absolute;
|
|
28
|
+
top: 0;
|
|
29
|
+
left: 0;
|
|
30
|
+
cursor: pointer;
|
|
31
|
+
z-index: 1;
|
|
32
|
+
}
|
|
33
|
+
.bui-radio-icon {
|
|
34
|
+
display: flex;
|
|
35
|
+
align-items: center;
|
|
36
|
+
justify-content: center;
|
|
37
|
+
flex-shrink: 0;
|
|
38
|
+
padding: 5px;
|
|
39
|
+
box-sizing: border-box;
|
|
40
|
+
}
|
|
41
|
+
.bui-radio-label {
|
|
42
|
+
font-size: var(--label-font-size);
|
|
43
|
+
color: var(--label-color);
|
|
44
|
+
}
|
|
45
|
+
.bui-radio-btn-icon {
|
|
46
|
+
position: relative;
|
|
47
|
+
display: flex;
|
|
48
|
+
}
|
|
49
|
+
.bui-radio-btn-icon .bui-svg-icon {
|
|
50
|
+
font-size: var(--icon-font-size);
|
|
51
|
+
}
|
|
52
|
+
.bui-radio-btn-icon-outline {
|
|
53
|
+
transform: scale(1);
|
|
54
|
+
transition: fill 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
|
|
55
|
+
}
|
|
56
|
+
.bui-radio-btn-icon-contained {
|
|
57
|
+
position: absolute;
|
|
58
|
+
left: 0;
|
|
59
|
+
transform: scale(0);
|
|
60
|
+
transition: transform 150ms cubic-bezier(0.4, 0, 1, 1) 0ms;
|
|
61
|
+
}
|
|
62
|
+
.bui-radio-btn-icon-checked .bui-radio-btn-icon-contained {
|
|
63
|
+
transform: scale(1);
|
|
64
|
+
transition: transform 150ms cubic-bezier(0, 0, 0.2, 1) 0ms;
|
|
65
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
.bui-rating {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-wrap: wrap;
|
|
4
|
+
font-family: var(--bui-font-family);
|
|
5
|
+
}
|
|
6
|
+
.bui-rating-disabled {
|
|
7
|
+
pointer-events: none;
|
|
8
|
+
opacity: 0.5;
|
|
9
|
+
}
|
|
10
|
+
.bui-rating-container {
|
|
11
|
+
position: relative;
|
|
12
|
+
display: flex;
|
|
13
|
+
}
|
|
14
|
+
.bui-rating-container:last-child {
|
|
15
|
+
margin-right: 0;
|
|
16
|
+
}
|
|
17
|
+
.bui-rating-container-xsmall {
|
|
18
|
+
font-size: var(--bui-text-size-5);
|
|
19
|
+
}
|
|
20
|
+
.bui-rating-container-small {
|
|
21
|
+
font-size: var(--bui-text-size-1);
|
|
22
|
+
margin-right: 0.5px;
|
|
23
|
+
}
|
|
24
|
+
.bui-rating-container-medium {
|
|
25
|
+
font-size: var(--bui-title-size-3);
|
|
26
|
+
margin-right: 1px;
|
|
27
|
+
}
|
|
28
|
+
.bui-rating-container-large {
|
|
29
|
+
font-size: 22px;
|
|
30
|
+
margin-right: 2px;
|
|
31
|
+
}
|
|
32
|
+
.bui-rating-item {
|
|
33
|
+
display: flex;
|
|
34
|
+
align-items: center;
|
|
35
|
+
overflow: hidden;
|
|
36
|
+
cursor: pointer;
|
|
37
|
+
color: var(--bui-color-fg-disabled);
|
|
38
|
+
}
|
|
39
|
+
.bui-rating-item-input {
|
|
40
|
+
display: none;
|
|
41
|
+
}
|
|
42
|
+
.bui-rating-item-half {
|
|
43
|
+
position: absolute;
|
|
44
|
+
top: 0;
|
|
45
|
+
width: 50%;
|
|
46
|
+
}
|
|
47
|
+
.bui-rating-item-readonly {
|
|
48
|
+
cursor: unset;
|
|
49
|
+
}
|
|
50
|
+
.bui-rating-item-active {
|
|
51
|
+
color: var(--bui-color-warning);
|
|
52
|
+
}
|
|
@@ -3,20 +3,16 @@
|
|
|
3
3
|
position: relative;
|
|
4
4
|
font-family: var(--bui-font-family);
|
|
5
5
|
}
|
|
6
|
-
|
|
7
6
|
.bui-scroll::-webkit-scrollbar {
|
|
8
7
|
display: none;
|
|
9
8
|
}
|
|
10
|
-
|
|
11
9
|
.bui-scroll-view {
|
|
12
10
|
overflow: hidden;
|
|
13
11
|
}
|
|
14
|
-
|
|
15
12
|
.bui-scroll-view-scroll-x {
|
|
16
13
|
overflow-x: scroll;
|
|
17
14
|
overflow-y: hidden;
|
|
18
15
|
}
|
|
19
|
-
|
|
20
16
|
.bui-scroll-view-scroll-y {
|
|
21
17
|
overflow-x: hidden;
|
|
22
18
|
overflow-y: scroll;
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
.bui-select {
|
|
2
|
+
position: relative;
|
|
3
|
+
cursor: pointer;
|
|
4
|
+
height: 27px;
|
|
5
|
+
min-width: 100px;
|
|
6
|
+
font-size: var(--bui-title-size-3);
|
|
7
|
+
border-radius: 5px;
|
|
8
|
+
background-color: var(--bui-color-bg-view);
|
|
9
|
+
font-family: var(--bui-font-family);
|
|
10
|
+
}
|
|
11
|
+
.bui-select:active,
|
|
12
|
+
.bui-select-active {
|
|
13
|
+
box-shadow: 0 0 0 2px var(--bui-color-bg-default);
|
|
14
|
+
}
|
|
15
|
+
.bui-select-selector-container {
|
|
16
|
+
display: flex;
|
|
17
|
+
align-items: center;
|
|
18
|
+
padding: 0 14px;
|
|
19
|
+
height: 100%;
|
|
20
|
+
}
|
|
21
|
+
.bui-select-input {
|
|
22
|
+
width: 0;
|
|
23
|
+
height: 0;
|
|
24
|
+
border: 0;
|
|
25
|
+
opacity: 0;
|
|
26
|
+
}
|
|
27
|
+
.bui-select-placeholder {
|
|
28
|
+
color: var(--bui-color-fg-disabled);
|
|
29
|
+
}
|
|
30
|
+
.bui-select-selector {
|
|
31
|
+
display: flex;
|
|
32
|
+
justify-content: space-between;
|
|
33
|
+
align-items: center;
|
|
34
|
+
flex: 1;
|
|
35
|
+
height: 27px;
|
|
36
|
+
background-color: transparent;
|
|
37
|
+
outline: none;
|
|
38
|
+
border: 0;
|
|
39
|
+
}
|
|
40
|
+
.bui-select-selector-icon {
|
|
41
|
+
font-size: var(--bui-title-size-3);
|
|
42
|
+
}
|
|
43
|
+
.bui-select-option-container {
|
|
44
|
+
position: absolute;
|
|
45
|
+
box-sizing: border-box;
|
|
46
|
+
top: 100%;
|
|
47
|
+
left: 0;
|
|
48
|
+
width: 100%;
|
|
49
|
+
z-index: var(--bui-z-index-dropdown);
|
|
50
|
+
margin-top: 6px;
|
|
51
|
+
background-color: var(--bui-color-bg-view);
|
|
52
|
+
padding: 2px;
|
|
53
|
+
overflow: hidden;
|
|
54
|
+
}
|
|
55
|
+
.bui-select-option-main {
|
|
56
|
+
border-radius: 3px;
|
|
57
|
+
padding: 3px 0;
|
|
58
|
+
box-shadow: 0 0 0 2px var(--bui-color-bg-default);
|
|
59
|
+
overflow: hidden;
|
|
60
|
+
}
|
|
61
|
+
.bui-select-option {
|
|
62
|
+
display: flex;
|
|
63
|
+
align-items: center;
|
|
64
|
+
height: 27px;
|
|
65
|
+
padding: 0 14px;
|
|
66
|
+
border-radius: 5px;
|
|
67
|
+
margin: 0 3px;
|
|
68
|
+
}
|
|
69
|
+
.bui-select-option:hover {
|
|
70
|
+
background-color: var(---bui-select-options-active-bg, #fff2f0);
|
|
71
|
+
color: var(--bui-color-primary);
|
|
72
|
+
}
|
|
73
|
+
.bui-select-option-active {
|
|
74
|
+
font-weight: 500;
|
|
75
|
+
color: var(--bui-color-primary);
|
|
76
|
+
background-color: var(---bui-select-options-active-bg, #fff2f0);
|
|
77
|
+
}
|
|
78
|
+
.bui-select-option-hide {
|
|
79
|
+
opacity: 0;
|
|
80
|
+
transform: translateY(-5px);
|
|
81
|
+
}
|
|
82
|
+
.bui-select.bui-select-disabled,
|
|
83
|
+
.bui-select-option-disabled {
|
|
84
|
+
pointer-events: none;
|
|
85
|
+
box-shadow: none;
|
|
86
|
+
background-color: var(--bui-color-bg-view);
|
|
87
|
+
color: var(--bui-color-fg-subtle);
|
|
88
|
+
border: none;
|
|
89
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
.bui-skeleton {
|
|
2
|
+
--border-radius: var(--bui-shape-radius-label);
|
|
3
|
+
display: block;
|
|
4
|
+
}
|
|
5
|
+
.bui-skeleton-animation-wave {
|
|
6
|
+
background: linear-gradient(90deg, rgba(190, 190, 190, 0.2) 25%, rgba(129, 129, 129, 0.24) 37%, rgba(190, 190, 190, 0.2) 63%);
|
|
7
|
+
background-size: 400% 100%;
|
|
8
|
+
animation: bui-skeleton-wave 1.4s ease infinite;
|
|
9
|
+
}
|
|
10
|
+
.bui-skeleton-animation-pulse {
|
|
11
|
+
background: rgba(190, 190, 190, 0.35);
|
|
12
|
+
animation: bui-skeleton-pulse 1.4s ease infinite;
|
|
13
|
+
}
|
|
14
|
+
.bui-skeleton-text {
|
|
15
|
+
height: auto;
|
|
16
|
+
transform-origin: 0 55%;
|
|
17
|
+
transform: scale(1, 0.6);
|
|
18
|
+
border-radius: var(--border-radius);
|
|
19
|
+
}
|
|
20
|
+
.bui-skeleton-text::before {
|
|
21
|
+
content: '\00a0';
|
|
22
|
+
}
|
|
23
|
+
.bui-skeleton-rectangular {
|
|
24
|
+
height: 1.2em;
|
|
25
|
+
}
|
|
26
|
+
.bui-skeleton-rounded {
|
|
27
|
+
height: 1.2em;
|
|
28
|
+
border-radius: var(--border-radius);
|
|
29
|
+
}
|
|
30
|
+
.bui-skeleton-circular {
|
|
31
|
+
border-radius: 50%;
|
|
32
|
+
}
|
|
33
|
+
.bui-skeleton-with-children {
|
|
34
|
+
max-width: fit-content;
|
|
35
|
+
}
|
|
36
|
+
@keyframes bui-skeleton-wave {
|
|
37
|
+
0% {
|
|
38
|
+
background-position: 100% 50%;
|
|
39
|
+
}
|
|
40
|
+
100% {
|
|
41
|
+
background-position: 0 50%;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
@keyframes bui-skeleton-pulse {
|
|
45
|
+
0% {
|
|
46
|
+
opacity: 1;
|
|
47
|
+
}
|
|
48
|
+
50% {
|
|
49
|
+
opacity: 0.58;
|
|
50
|
+
}
|
|
51
|
+
100% {
|
|
52
|
+
opacity: 1;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
.bui-slider {
|
|
2
|
+
--line-color: var(--bui-color-primary);
|
|
3
|
+
--line-bg-color: var(--bui-color-border-default);
|
|
4
|
+
--tooltip-font-size: var(--bui-text-size-3);
|
|
5
|
+
--tooltip-color: var(--bui-color-white);
|
|
6
|
+
--tooltip-bg-color: var(--line-color);
|
|
7
|
+
position: relative;
|
|
8
|
+
width: 100%;
|
|
9
|
+
height: 2px;
|
|
10
|
+
padding: 19px 0;
|
|
11
|
+
box-sizing: border-box;
|
|
12
|
+
font-family: var(--bui-font-family);
|
|
13
|
+
}
|
|
14
|
+
.bui-slider-disabled {
|
|
15
|
+
pointer-events: none;
|
|
16
|
+
opacity: 0.5;
|
|
17
|
+
}
|
|
18
|
+
.bui-slider-line {
|
|
19
|
+
position: absolute;
|
|
20
|
+
top: 50%;
|
|
21
|
+
left: 0;
|
|
22
|
+
height: 2px;
|
|
23
|
+
transform: translateY(-50%);
|
|
24
|
+
background-color: var(--line-color);
|
|
25
|
+
}
|
|
26
|
+
.bui-slider-rail {
|
|
27
|
+
position: absolute;
|
|
28
|
+
top: 50%;
|
|
29
|
+
left: 0;
|
|
30
|
+
width: 100%;
|
|
31
|
+
height: 2px;
|
|
32
|
+
transform: translateY(-50%);
|
|
33
|
+
background-color: var(--line-bg-color);
|
|
34
|
+
}
|
|
35
|
+
.bui-slider-button {
|
|
36
|
+
display: flex;
|
|
37
|
+
position: absolute;
|
|
38
|
+
justify-content: center;
|
|
39
|
+
align-items: center;
|
|
40
|
+
width: 26px;
|
|
41
|
+
height: 26px;
|
|
42
|
+
background-color: #fff;
|
|
43
|
+
box-shadow: #ddd 0 0 10px;
|
|
44
|
+
border-radius: 50%;
|
|
45
|
+
transform: translate(-50%, -50%);
|
|
46
|
+
font-size: var(--bui-title-size-3);
|
|
47
|
+
cursor: grab;
|
|
48
|
+
}
|
|
49
|
+
.bui-slider-button::after {
|
|
50
|
+
position: absolute;
|
|
51
|
+
content: '';
|
|
52
|
+
top: -10px;
|
|
53
|
+
bottom: -10px;
|
|
54
|
+
left: -10px;
|
|
55
|
+
right: -10px;
|
|
56
|
+
}
|
|
57
|
+
.bui-slider-button-0 {
|
|
58
|
+
left: 0%;
|
|
59
|
+
top: 50%;
|
|
60
|
+
z-index: var(--bui-z-index-affix);
|
|
61
|
+
}
|
|
62
|
+
.bui-slider-button-1 {
|
|
63
|
+
left: 0%;
|
|
64
|
+
top: 50%;
|
|
65
|
+
z-index: var(--bui-z-index-affix);
|
|
66
|
+
}
|
|
67
|
+
.bui-slider-tooltip {
|
|
68
|
+
position: absolute;
|
|
69
|
+
top: -14px;
|
|
70
|
+
width: 46px;
|
|
71
|
+
height: 24px;
|
|
72
|
+
line-height: 24px;
|
|
73
|
+
font-size: var(--tooltip-font-size);
|
|
74
|
+
border-radius: 24px;
|
|
75
|
+
color: var(--tooltip-color);
|
|
76
|
+
text-align: center;
|
|
77
|
+
background-color: var(--tooltip-bg-color);
|
|
78
|
+
transform: translate(-50%, -50%);
|
|
79
|
+
z-index: var(--bui-z-index-popover);
|
|
80
|
+
}
|
|
81
|
+
.bui-slider-tooltip::after {
|
|
82
|
+
position: absolute;
|
|
83
|
+
bottom: -10px;
|
|
84
|
+
left: 0;
|
|
85
|
+
right: 0;
|
|
86
|
+
margin: 0 auto;
|
|
87
|
+
content: '';
|
|
88
|
+
width: 0;
|
|
89
|
+
height: 0;
|
|
90
|
+
border: 6px solid transparent;
|
|
91
|
+
border-top: 6px solid var(--tooltip-bg-color);
|
|
92
|
+
}
|
|
93
|
+
.bui-slider-tooltip-hidden {
|
|
94
|
+
display: none;
|
|
95
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
.bui-stack-demo-options {
|
|
2
|
+
display: flex;
|
|
3
|
+
column-gap: 30px;
|
|
4
|
+
}
|
|
5
|
+
.bui-stack-demo-options-title {
|
|
6
|
+
font-weight: 500;
|
|
7
|
+
}
|
|
8
|
+
@media all and (max-width: 570px) {
|
|
9
|
+
.bui-stack-demo-options {
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-direction: column;
|
|
12
|
+
row-gap: 15px;
|
|
13
|
+
}
|
|
14
|
+
.bui-stack-demo-options-title {
|
|
15
|
+
width: 100%;
|
|
16
|
+
font-size: 16px;
|
|
17
|
+
}
|
|
18
|
+
.bui-stack-demo-options .bui-radio-group {
|
|
19
|
+
display: flex;
|
|
20
|
+
flex-wrap: wrap;
|
|
21
|
+
align-items: center;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
.bui-step {
|
|
2
|
+
display: flex;
|
|
3
|
+
position: relative;
|
|
4
|
+
line-height: var(--bui-line-height);
|
|
5
|
+
font-family: var(--bui-font-family);
|
|
6
|
+
}
|
|
7
|
+
.bui-step-label-horizontal {
|
|
8
|
+
line-height: 1.8;
|
|
9
|
+
}
|
|
10
|
+
.bui-step:last-child .bui-step-line::after {
|
|
11
|
+
display: none;
|
|
12
|
+
}
|
|
13
|
+
.bui-step-line {
|
|
14
|
+
position: absolute;
|
|
15
|
+
top: 0;
|
|
16
|
+
width: 1px;
|
|
17
|
+
height: 100%;
|
|
18
|
+
box-sizing: border-box;
|
|
19
|
+
left: 13px;
|
|
20
|
+
padding: var(--step-line-padding);
|
|
21
|
+
}
|
|
22
|
+
.bui-step-line::after {
|
|
23
|
+
display: inline-block;
|
|
24
|
+
content: '';
|
|
25
|
+
width: 1px;
|
|
26
|
+
border-left-width: 1px;
|
|
27
|
+
border-left-style: dotted;
|
|
28
|
+
height: calc(100% + 11px);
|
|
29
|
+
}
|
|
30
|
+
.bui-step-line-active::after {
|
|
31
|
+
border-left-color: var(--bui-color-primary);
|
|
32
|
+
}
|
|
33
|
+
.bui-step-line-wait::after {
|
|
34
|
+
border-left-color: var(--bui-color-fg-disabled);
|
|
35
|
+
}
|
|
36
|
+
.bui-step-line-finish::after {
|
|
37
|
+
border-left-color: var(--bui-color-primary);
|
|
38
|
+
}
|
|
39
|
+
.bui-step-line-error::after {
|
|
40
|
+
border-left-color: var(--bui-color-primary);
|
|
41
|
+
}
|
|
42
|
+
.bui-step-icon {
|
|
43
|
+
flex-shrink: 0;
|
|
44
|
+
width: 28px;
|
|
45
|
+
text-align: center;
|
|
46
|
+
margin: var(--step-icon-margin);
|
|
47
|
+
font-size: var(--bui-title-size-4);
|
|
48
|
+
}
|
|
49
|
+
.bui-step-icon-active {
|
|
50
|
+
width: 12px;
|
|
51
|
+
height: 12px;
|
|
52
|
+
position: relative;
|
|
53
|
+
background-color: var(--bui-color-primary);
|
|
54
|
+
border-radius: 50%;
|
|
55
|
+
margin-top: 2px;
|
|
56
|
+
display: inline-block;
|
|
57
|
+
}
|
|
58
|
+
.bui-step-content {
|
|
59
|
+
padding: 3px 0;
|
|
60
|
+
box-sizing: border-box;
|
|
61
|
+
flex: 1 0 0;
|
|
62
|
+
overflow: hidden;
|
|
63
|
+
}
|
|
64
|
+
.bui-step-title-wrapper {
|
|
65
|
+
width: 100%;
|
|
66
|
+
display: flex;
|
|
67
|
+
align-items: center;
|
|
68
|
+
}
|
|
69
|
+
.bui-step-title-wrapper-vertical {
|
|
70
|
+
flex-direction: column;
|
|
71
|
+
align-items: flex-start;
|
|
72
|
+
}
|
|
73
|
+
.bui-step-title {
|
|
74
|
+
font-size: var(--title-font-size);
|
|
75
|
+
font-weight: var(--title-font-weight);
|
|
76
|
+
width: auto;
|
|
77
|
+
overflow: hidden;
|
|
78
|
+
text-overflow: ellipsis;
|
|
79
|
+
white-space: nowrap;
|
|
80
|
+
}
|
|
81
|
+
.bui-step-title-active {
|
|
82
|
+
color: var(--bui-color-primary);
|
|
83
|
+
}
|
|
84
|
+
.bui-step-title-wait {
|
|
85
|
+
color: var(--bui-color-fg-subtle);
|
|
86
|
+
}
|
|
87
|
+
.bui-step-title-finish {
|
|
88
|
+
color: var(--bui-color-primary);
|
|
89
|
+
}
|
|
90
|
+
.bui-step-title-error {
|
|
91
|
+
color: var(--bui-color-primary);
|
|
92
|
+
}
|
|
93
|
+
.bui-step-title-horizontal {
|
|
94
|
+
margin-right: 4px;
|
|
95
|
+
max-width: 64%;
|
|
96
|
+
}
|
|
97
|
+
.bui-step-title-vertical {
|
|
98
|
+
width: 100%;
|
|
99
|
+
}
|
|
100
|
+
.bui-step-subtitle {
|
|
101
|
+
font-size: var(--subtitle-font-size);
|
|
102
|
+
color: var(--bui-color-fg-subtle);
|
|
103
|
+
width: auto;
|
|
104
|
+
overflow: hidden;
|
|
105
|
+
text-overflow: ellipsis;
|
|
106
|
+
white-space: nowrap;
|
|
107
|
+
}
|
|
108
|
+
.bui-step-subtitle-horizontal {
|
|
109
|
+
flex: 1;
|
|
110
|
+
}
|
|
111
|
+
.bui-step-subtitle-vertical {
|
|
112
|
+
width: 100%;
|
|
113
|
+
}
|
|
114
|
+
.bui-step-desc {
|
|
115
|
+
font-size: var(--bui-text-size-3);
|
|
116
|
+
color: var(--bui-color-fg-subtle);
|
|
117
|
+
margin-right: var(--bui-spacing-lg);
|
|
118
|
+
}
|
|
119
|
+
.bui-step-horizontal {
|
|
120
|
+
flex: 1;
|
|
121
|
+
padding-left: var(--bui-spacing-sm);
|
|
122
|
+
}
|
|
123
|
+
.bui-step-horizontal:first-child {
|
|
124
|
+
padding-left: 0;
|
|
125
|
+
}
|
|
126
|
+
.bui-step-horizontal:last-child .bui-step-title-wrapper::after {
|
|
127
|
+
display: none;
|
|
128
|
+
}
|
|
129
|
+
.bui-step-horizontal .bui-step-line {
|
|
130
|
+
display: none;
|
|
131
|
+
padding: 28px 0 6px;
|
|
132
|
+
}
|
|
133
|
+
.bui-step-horizontal .bui-step-icon {
|
|
134
|
+
margin-right: 0;
|
|
135
|
+
}
|
|
136
|
+
.bui-step-horizontal .bui-step-title-wrapper {
|
|
137
|
+
width: fit-content;
|
|
138
|
+
position: relative;
|
|
139
|
+
}
|
|
140
|
+
.bui-step-horizontal .bui-step-title-wrapper::after {
|
|
141
|
+
position: absolute;
|
|
142
|
+
width: 9999px;
|
|
143
|
+
height: 1px;
|
|
144
|
+
content: '';
|
|
145
|
+
left: 100%;
|
|
146
|
+
top: 0;
|
|
147
|
+
bottom: 0;
|
|
148
|
+
margin: auto 0;
|
|
149
|
+
}
|
|
150
|
+
.bui-step-horizontal .bui-step-title-wrapper-line-active::after {
|
|
151
|
+
background: var(--bui-color-fg-disabled);
|
|
152
|
+
}
|
|
153
|
+
.bui-step-horizontal .bui-step-title-wrapper-line-wait::after {
|
|
154
|
+
background: var(--bui-color-fg-disabled);
|
|
155
|
+
}
|
|
156
|
+
.bui-step-horizontal .bui-step-title-wrapper-line-finish::after {
|
|
157
|
+
background: var(--bui-color-primary);
|
|
158
|
+
}
|
|
159
|
+
.bui-step-horizontal .bui-step-title-wrapper-line-error::after {
|
|
160
|
+
background: var(--bui-color-primary);
|
|
161
|
+
}
|
|
162
|
+
.bui-step-horizontal .bui-step-title {
|
|
163
|
+
padding-right: var(--bui-spacing-sm);
|
|
164
|
+
margin-right: 0;
|
|
165
|
+
max-width: unset;
|
|
166
|
+
}
|
|
167
|
+
.bui-step-horizontal .bui-step-subtitle {
|
|
168
|
+
padding-right: var(--bui-spacing-sm);
|
|
169
|
+
margin-right: 0;
|
|
170
|
+
}
|
|
171
|
+
.bui-step-disabled {
|
|
172
|
+
opacity: 0.5;
|
|
173
|
+
pointer-events: none;
|
|
174
|
+
}
|