@doubao-dev/template 0.4.0-rc.5 → 0.4.1
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/README.md +7 -7
- package/dist/ask-human-card/styles.css +1 -66
- package/dist/checkout-card/styles.css +1 -34
- package/dist/components/extra-action/styles.css +1 -10
- package/dist/components/footer/styles.css +1 -27
- package/dist/components/header/styles.css +1 -62
- package/dist/components/info-section/styles.css +1 -161
- package/dist/components/product-summary/styles.css +1 -130
- package/dist/components/route-section/styles.css +1 -78
- package/dist/components/transport-summary/styles.css +1 -223
- package/dist/composite-card/styles.css +1 -36
- package/dist/content-card/styles.css +1 -166
- package/dist/map-card/styles.css +1 -110
- package/dist/price-action-card/styles.css +1 -149
- package/dist/primitives/icon/index.js +2 -4
- package/dist/primitives/icon/styles.css +1 -7
- package/dist/primitives/option-group/index.js +14 -22
- package/dist/primitives/option-group/styles.css +1 -98
- package/dist/primitives/price/styles.css +1 -142
- package/dist/primitives/tag/styles.css +1 -70
- package/dist/primitives/title/styles.css +1 -63
- package/dist/ticket-order-card/styles.css +1 -18
- package/dist/transit-card/styles.css +1 -53
- package/package.json +1 -1
|
@@ -3,10 +3,8 @@ import { clsx } from "clsx";
|
|
|
3
3
|
import "./styles.css";
|
|
4
4
|
function getAddIconContent(color) {
|
|
5
5
|
return `<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
6
|
-
<
|
|
7
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="
|
|
8
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M11.7833 5.95C11.7833 6.30439 11.496 6.59167 11.1417 6.59167L0.641665 6.59167C0.287284 6.59167 -3.68276e-07 6.30439 -3.37294e-07 5.95C-3.06313e-07 5.59562 0.287284 5.30834 0.641665 5.30834L11.1417 5.30834C11.496 5.30834 11.7833 5.59562 11.7833 5.95Z" fill="${color}"/>
|
|
9
|
-
</g>
|
|
6
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M7 1.10833C7.35438 1.10833 7.64167 1.39562 7.64167 1.75V12.25C7.64167 12.6044 7.35438 12.8917 7 12.8917C6.64562 12.8917 6.35833 12.6044 6.35833 12.25V1.75C6.35833 1.39562 6.64562 1.10833 7 1.10833Z" fill="${color}"/>
|
|
7
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M12.8917 7C12.8917 7.35438 12.6044 7.64167 12.25 7.64167H1.75C1.39562 7.64167 1.10833 7.35438 1.10833 7C1.10833 6.64562 1.39562 6.35833 1.75 6.35833H12.25C12.6044 6.35833 12.8917 6.64562 12.8917 7Z" fill="${color}"/>
|
|
10
8
|
</svg>`;
|
|
11
9
|
}
|
|
12
10
|
const ICON_CONTENT_GETTERS = {
|
|
@@ -2,20 +2,10 @@ import { useThemeClassName } from "@byted-doubao-apps/components";
|
|
|
2
2
|
import { clsx } from "clsx";
|
|
3
3
|
import { Icon, isIconSupported } from "../icon/index.js";
|
|
4
4
|
import "./styles.css";
|
|
5
|
-
const OPTION_GAP = 8;
|
|
6
5
|
const DEFAULT_COLUMNS = 3;
|
|
7
|
-
const COLUMN_ROUNDING_TOLERANCE = 0.5;
|
|
8
6
|
function resolveColumns(columns) {
|
|
9
7
|
return null != columns && Number.isFinite(columns) && columns >= 1 ? Math.floor(columns) : DEFAULT_COLUMNS;
|
|
10
8
|
}
|
|
11
|
-
function getLargeOptionStyle(columns) {
|
|
12
|
-
const reservedWidth = (columns - 1) * OPTION_GAP + COLUMN_ROUNDING_TOLERANCE;
|
|
13
|
-
const width = `calc((100% - ${reservedWidth}px) / ${columns})`;
|
|
14
|
-
return {
|
|
15
|
-
width,
|
|
16
|
-
flexBasis: width
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
9
|
function isSelected(props, value) {
|
|
20
10
|
if ('multiple' === props.selectionMode) return props.value?.includes(value) ?? false;
|
|
21
11
|
return props.value === value;
|
|
@@ -40,7 +30,7 @@ function MediumOptionItemView({ item, selected, onClick }) {
|
|
|
40
30
|
'doubao-option-group__item--disabled': item.disabled,
|
|
41
31
|
'doubao-option-group__item--with-icon': hasIcon
|
|
42
32
|
})} bindtap={item.disabled ? void 0 : onClick}>
|
|
43
|
-
{hasIcon && item.icon ? <Icon
|
|
33
|
+
{hasIcon && item.icon ? <Icon name={item.icon}/> : null}
|
|
44
34
|
<view className="doubao-option-group__content">
|
|
45
35
|
<text className="doubao-option-group__title" text-maxline="1">
|
|
46
36
|
{item.title}
|
|
@@ -48,11 +38,11 @@ function MediumOptionItemView({ item, selected, onClick }) {
|
|
|
48
38
|
</view>
|
|
49
39
|
</view>;
|
|
50
40
|
}
|
|
51
|
-
function LargeOptionItemView({ item, selected,
|
|
41
|
+
function LargeOptionItemView({ item, selected, onClick }) {
|
|
52
42
|
return <view className={clsx('doubao-option-group__item', 'doubao-option-group__item--size-lg', {
|
|
53
43
|
'doubao-option-group__item--selected': selected,
|
|
54
44
|
'doubao-option-group__item--disabled': item.disabled
|
|
55
|
-
})}
|
|
45
|
+
})} bindtap={item.disabled ? void 0 : onClick}>
|
|
56
46
|
<view className="doubao-option-group__content">
|
|
57
47
|
<text className="doubao-option-group__title" text-maxline="1">
|
|
58
48
|
{item.title}
|
|
@@ -64,14 +54,11 @@ function LargeOptionItemView({ item, selected, style, onClick }) {
|
|
|
64
54
|
</view>;
|
|
65
55
|
}
|
|
66
56
|
function renderOptionViews(props) {
|
|
67
|
-
if ('lg' === props.size) {
|
|
68
|
-
const
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
return <LargeOptionItemView key={item.value} item={item} selected={selected} style={optionStyle} onClick={onClick}/>;
|
|
73
|
-
});
|
|
74
|
-
}
|
|
57
|
+
if ('lg' === props.size) return props.items.map((item)=>{
|
|
58
|
+
const selected = isSelected(props, item.value);
|
|
59
|
+
const onClick = (event)=>handleOptionClick(props, item, event);
|
|
60
|
+
return <LargeOptionItemView key={item.value} item={item} selected={selected} onClick={onClick}/>;
|
|
61
|
+
});
|
|
75
62
|
return props.items.map((item)=>{
|
|
76
63
|
const selected = isSelected(props, item.value);
|
|
77
64
|
const onClick = (event)=>handleOptionClick(props, item, event);
|
|
@@ -81,9 +68,14 @@ function renderOptionViews(props) {
|
|
|
81
68
|
function OptionGroup(props) {
|
|
82
69
|
const { className, style } = props;
|
|
83
70
|
const size = props.size ?? 'md';
|
|
71
|
+
const columns = Math.min(resolveColumns(props.columns), Math.max(props.items.length, 1));
|
|
72
|
+
const optionGroupStyle = 'lg' === size ? {
|
|
73
|
+
...style,
|
|
74
|
+
gridTemplateColumns: `repeat(${columns}, minmax(0, 1fr))`
|
|
75
|
+
} : style;
|
|
84
76
|
const themedClassName = useThemeClassName(clsx('doubao-option-group', `doubao-option-group--size-${size}`, className));
|
|
85
77
|
const optionViews = renderOptionViews(props);
|
|
86
|
-
return <view className={themedClassName} style={
|
|
78
|
+
return <view className={themedClassName} style={optionGroupStyle}>
|
|
87
79
|
{optionViews}
|
|
88
80
|
</view>;
|
|
89
81
|
}
|
|
@@ -1,98 +1 @@
|
|
|
1
|
-
.doubao-option-group {
|
|
2
|
-
box-sizing: border-box;
|
|
3
|
-
flex-flow: wrap;
|
|
4
|
-
align-items: center;
|
|
5
|
-
gap: 8px;
|
|
6
|
-
width: 100%;
|
|
7
|
-
min-width: 0;
|
|
8
|
-
display: flex;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.doubao-option-group--size-lg {
|
|
12
|
-
align-items: flex-start;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.doubao-option-group__item {
|
|
16
|
-
box-sizing: border-box;
|
|
17
|
-
background-color: var(--bg-base-2-overlay);
|
|
18
|
-
border: .5px solid #0000;
|
|
19
|
-
border-radius: 8px;
|
|
20
|
-
justify-content: center;
|
|
21
|
-
align-items: center;
|
|
22
|
-
min-width: 0;
|
|
23
|
-
display: flex;
|
|
24
|
-
overflow: hidden;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.doubao-option-group__item--size-md {
|
|
28
|
-
width: max-content;
|
|
29
|
-
max-width: 100%;
|
|
30
|
-
height: 44px;
|
|
31
|
-
padding: 12px 16px;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.doubao-option-group__item--size-lg {
|
|
35
|
-
border-width: 1px;
|
|
36
|
-
flex-grow: 0;
|
|
37
|
-
flex-shrink: 0;
|
|
38
|
-
height: 62px;
|
|
39
|
-
padding: 12px 4px;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.doubao-option-group__item--with-icon {
|
|
43
|
-
gap: 4px;
|
|
44
|
-
padding-left: 12px;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.doubao-option-group__item--selected {
|
|
48
|
-
background-color: var(--bg-base-1);
|
|
49
|
-
border-color: var(--primary-50);
|
|
50
|
-
background-image: linear-gradient(#0066ff0f, #0066ff0f);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.doubao-option-group__item--disabled {
|
|
54
|
-
opacity: .3;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.doubao-option-group__icon {
|
|
58
|
-
width: 14px;
|
|
59
|
-
height: 14px;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.doubao-option-group__content {
|
|
63
|
-
flex-direction: column;
|
|
64
|
-
align-items: center;
|
|
65
|
-
gap: 2px;
|
|
66
|
-
min-width: 0;
|
|
67
|
-
max-width: 100%;
|
|
68
|
-
display: flex;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.doubao-option-group__title, .doubao-option-group__subtitle {
|
|
72
|
-
text-align: center;
|
|
73
|
-
text-overflow: ellipsis;
|
|
74
|
-
white-space: nowrap;
|
|
75
|
-
min-width: 0;
|
|
76
|
-
max-width: 100%;
|
|
77
|
-
font-family: PingFang SC, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, sans-serif;
|
|
78
|
-
font-size: 13px;
|
|
79
|
-
font-style: normal;
|
|
80
|
-
line-height: 18px;
|
|
81
|
-
display: block;
|
|
82
|
-
overflow: hidden;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
.doubao-option-group__title {
|
|
86
|
-
color: var(--neutral-100);
|
|
87
|
-
font-weight: 500;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.doubao-option-group__subtitle {
|
|
91
|
-
color: var(--neutral-70);
|
|
92
|
-
font-weight: 400;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.doubao-option-group__item--size-lg .doubao-option-group__content, .doubao-option-group__item--size-lg .doubao-option-group__title, .doubao-option-group__item--size-lg .doubao-option-group__subtitle {
|
|
96
|
-
width: 100%;
|
|
97
|
-
}
|
|
98
|
-
|
|
1
|
+
.doubao-option-group{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;gap:8px;width:100%;min-width:0;box-sizing:border-box}.doubao-option-group--size-lg{display:grid;align-items:stretch}.doubao-option-group__item{display:flex;align-items:center;justify-content:center;min-width:0;box-sizing:border-box;overflow:hidden;background-color:var(--bg-base-2-overlay);border:.5px solid rgba(0,0,0,0);border-radius:8px}.doubao-option-group__item--size-md{width:max-content;max-width:100%;height:44px;padding:12px 16px}.doubao-option-group__item--size-lg{width:100%;min-width:0;height:62px;padding:12px 4px;border-width:1px}.doubao-option-group__item--with-icon{gap:4px;padding-left:12px}.doubao-option-group__item--selected{background-color:var(--bg-base-1);background-image:linear-gradient(rgba(0, 102, 255, 0.06), rgba(0, 102, 255, 0.06));border-color:var(--primary-50)}.doubao-option-group__item--disabled{opacity:.3}.doubao-option-group__content{display:flex;flex-direction:column;align-items:center;min-width:0;max-width:100%;gap:2px}.doubao-option-group__title,.doubao-option-group__subtitle{display:block;min-width:0;max-width:100%;overflow:hidden;font-family:"PingFang SC",-apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Helvetica Neue",sans-serif;font-size:13px;font-style:normal;line-height:18px;text-align:center;text-overflow:ellipsis;white-space:nowrap}.doubao-option-group__title{color:var(--neutral-100);font-weight:500}.doubao-option-group__subtitle{color:var(--neutral-70);font-weight:400}.doubao-option-group__item--size-lg .doubao-option-group__content,.doubao-option-group__item--size-lg .doubao-option-group__title,.doubao-option-group__item--size-lg .doubao-option-group__subtitle{width:100%}
|
|
@@ -1,142 +1 @@
|
|
|
1
|
-
.doubao-price {
|
|
2
|
-
height: 22px;
|
|
3
|
-
color: var(--neutral-100);
|
|
4
|
-
white-space: nowrap;
|
|
5
|
-
flex-direction: row;
|
|
6
|
-
align-items: flex-end;
|
|
7
|
-
gap: 4px;
|
|
8
|
-
font-family: PingFang SC, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, sans-serif;
|
|
9
|
-
font-style: normal;
|
|
10
|
-
display: flex;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.doubao-price--tone-highlight .doubao-price__prefix, .doubao-price--tone-highlight .doubao-price__currency, .doubao-price--tone-highlight .doubao-price__integer, .doubao-price--tone-highlight .doubao-price__decimal, .doubao-price--tone-highlight .doubao-price__suffix {
|
|
14
|
-
color: #ff375f;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.doubao-price--loading {
|
|
18
|
-
align-items: center;
|
|
19
|
-
width: 100%;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.doubao-price__amount {
|
|
23
|
-
flex-direction: row;
|
|
24
|
-
flex-shrink: 0;
|
|
25
|
-
align-items: flex-end;
|
|
26
|
-
gap: 2px;
|
|
27
|
-
height: 22px;
|
|
28
|
-
display: flex;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.doubao-price__affix, .doubao-price__meta {
|
|
32
|
-
flex-direction: row;
|
|
33
|
-
flex-shrink: 0;
|
|
34
|
-
align-items: center;
|
|
35
|
-
gap: 4px;
|
|
36
|
-
height: 19px;
|
|
37
|
-
display: flex;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.doubao-price__main {
|
|
41
|
-
flex-direction: row;
|
|
42
|
-
flex-shrink: 0;
|
|
43
|
-
align-items: flex-end;
|
|
44
|
-
height: 22px;
|
|
45
|
-
display: flex;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.doubao-price__integer-group {
|
|
49
|
-
flex-direction: row;
|
|
50
|
-
flex-shrink: 0;
|
|
51
|
-
align-items: center;
|
|
52
|
-
height: 22px;
|
|
53
|
-
display: flex;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.doubao-price__decimal-group {
|
|
57
|
-
flex-shrink: 0;
|
|
58
|
-
align-items: center;
|
|
59
|
-
height: 21px;
|
|
60
|
-
display: flex;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.doubao-price__prefix, .doubao-price__currency, .doubao-price__integer, .doubao-price__decimal, .doubao-price__suffix, .doubao-price__description, .doubao-price__original-price {
|
|
64
|
-
color: var(--neutral-100);
|
|
65
|
-
letter-spacing: 0;
|
|
66
|
-
white-space: nowrap;
|
|
67
|
-
flex-shrink: 0;
|
|
68
|
-
font-family: PingFang SC, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, sans-serif;
|
|
69
|
-
font-style: normal;
|
|
70
|
-
display: block;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.doubao-price__prefix {
|
|
74
|
-
font-size: 12px;
|
|
75
|
-
font-weight: 500;
|
|
76
|
-
line-height: 11px;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.doubao-price__prefix.doubao-price__prefix--tone-default {
|
|
80
|
-
color: var(--neutral-100);
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.doubao-price__prefix.doubao-price__prefix--tone-highlight {
|
|
84
|
-
color: #ff375f;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.doubao-price__prefix.doubao-price__prefix--tone-muted {
|
|
88
|
-
color: var(--neutral-70);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
.doubao-price__currency {
|
|
92
|
-
font-size: 13px;
|
|
93
|
-
font-weight: 500;
|
|
94
|
-
line-height: 11px;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.doubao-price__integer {
|
|
98
|
-
font-size: 17px;
|
|
99
|
-
font-weight: 500;
|
|
100
|
-
line-height: 24px;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
.doubao-price__decimal {
|
|
104
|
-
font-size: 14px;
|
|
105
|
-
font-weight: 500;
|
|
106
|
-
line-height: 11px;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
.doubao-price__suffix, .doubao-price__description, .doubao-price__original-price {
|
|
110
|
-
font-size: 13px;
|
|
111
|
-
font-weight: 400;
|
|
112
|
-
line-height: 11px;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
.doubao-price__description, .doubao-price__original-price {
|
|
116
|
-
color: var(--neutral-70);
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
.doubao-price__original-price {
|
|
120
|
-
text-decoration: line-through;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
.doubao-price__placeholder {
|
|
124
|
-
background-image: linear-gradient(90deg, #f7f7f7 0%, #e6e6e6 30%, #f7f7f7 100%);
|
|
125
|
-
background-size: 200% 100%;
|
|
126
|
-
border-radius: 4px;
|
|
127
|
-
width: 100%;
|
|
128
|
-
max-width: 60%;
|
|
129
|
-
height: 16px;
|
|
130
|
-
animation: 1.4s ease-in-out infinite doubao-price-placeholder-shimmer;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
@keyframes doubao-price-placeholder-shimmer {
|
|
134
|
-
0% {
|
|
135
|
-
background-position: 100% 0;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
100% {
|
|
139
|
-
background-position: -100% 0;
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
|
|
1
|
+
.doubao-price{display:flex;flex-direction:row;align-items:flex-end;gap:4px;height:22px;color:var(--neutral-100);font-family:"PingFang SC",-apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Helvetica Neue",sans-serif;font-style:normal;white-space:nowrap}.doubao-price--tone-highlight .doubao-price__prefix,.doubao-price--tone-highlight .doubao-price__currency,.doubao-price--tone-highlight .doubao-price__integer,.doubao-price--tone-highlight .doubao-price__decimal,.doubao-price--tone-highlight .doubao-price__suffix{color:#ff375f}.doubao-price--loading{align-items:center;width:100%}.doubao-price__amount{display:flex;flex-direction:row;align-items:flex-end;gap:2px;height:22px;flex-shrink:0}.doubao-price__affix,.doubao-price__meta{display:flex;flex-direction:row;align-items:center;gap:4px;height:19px;flex-shrink:0}.doubao-price__main{display:flex;flex-direction:row;align-items:flex-end;height:22px;flex-shrink:0}.doubao-price__integer-group{display:flex;flex-direction:row;align-items:center;height:22px;flex-shrink:0}.doubao-price__decimal-group{display:flex;align-items:center;height:21px;flex-shrink:0}.doubao-price__prefix,.doubao-price__currency,.doubao-price__integer,.doubao-price__decimal,.doubao-price__suffix,.doubao-price__description,.doubao-price__original-price{display:block;flex-shrink:0;color:var(--neutral-100);font-family:"PingFang SC",-apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Helvetica Neue",sans-serif;font-style:normal;letter-spacing:0;white-space:nowrap}.doubao-price__prefix{font-size:12px;font-weight:500;line-height:11px}.doubao-price__prefix.doubao-price__prefix--tone-default{color:var(--neutral-100)}.doubao-price__prefix.doubao-price__prefix--tone-highlight{color:#ff375f}.doubao-price__prefix.doubao-price__prefix--tone-muted{color:var(--neutral-70)}.doubao-price__currency{font-size:13px;font-weight:500;line-height:11px}.doubao-price__integer{font-size:17px;font-weight:500;line-height:24px}.doubao-price__decimal{font-size:14px;font-weight:500;line-height:11px}.doubao-price__suffix,.doubao-price__description,.doubao-price__original-price{font-size:13px;font-weight:400;line-height:11px}.doubao-price__description,.doubao-price__original-price{color:var(--neutral-70)}.doubao-price__original-price{text-decoration:line-through}.doubao-price__placeholder{width:100%;max-width:60%;height:16px;border-radius:4px;background-image:linear-gradient(90deg, #f7f7f7 0%, #e6e6e6 30%, #f7f7f7 100%);background-size:200% 100%;animation:doubao-price-placeholder-shimmer 1.4s ease-in-out infinite}@keyframes doubao-price-placeholder-shimmer{0%{background-position:100% 0}100%{background-position:-100% 0}}
|
|
@@ -1,70 +1 @@
|
|
|
1
|
-
.doubao-tag {
|
|
2
|
-
box-sizing: border-box;
|
|
3
|
-
border-radius: 4px;
|
|
4
|
-
flex-shrink: 0;
|
|
5
|
-
align-items: center;
|
|
6
|
-
height: 20px;
|
|
7
|
-
padding: 2px 3px;
|
|
8
|
-
display: flex;
|
|
9
|
-
overflow: hidden;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.doubao-tag__text {
|
|
13
|
-
white-space: nowrap;
|
|
14
|
-
flex-shrink: 0;
|
|
15
|
-
font-family: PingFang SC, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, sans-serif;
|
|
16
|
-
font-size: 12px;
|
|
17
|
-
font-style: normal;
|
|
18
|
-
font-weight: 400;
|
|
19
|
-
line-height: 14px;
|
|
20
|
-
display: block;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.doubao-tag--tone-marketing {
|
|
24
|
-
background-color: #fff3ee;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.doubao-tag--tone-marketing .doubao-tag__text {
|
|
28
|
-
color: #ff375f;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.doubao-tag--tone-authority {
|
|
32
|
-
background-color: #fff8e7;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.doubao-tag--tone-authority .doubao-tag__text {
|
|
36
|
-
color: #814300;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.doubao-tag--tone-neutral {
|
|
40
|
-
background-color: #f7f7f7;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.doubao-tag--tone-neutral .doubao-tag__text {
|
|
44
|
-
color: #666;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.doubao-tag.doubao-theme-dark.doubao-tag--tone-marketing {
|
|
48
|
-
background-color: #3f2b27;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.doubao-tag.doubao-theme-dark.doubao-tag--tone-marketing .doubao-tag__text {
|
|
52
|
-
color: #ff5c7c;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.doubao-tag.doubao-theme-dark.doubao-tag--tone-authority {
|
|
56
|
-
background-color: #3a3324;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.doubao-tag.doubao-theme-dark.doubao-tag--tone-authority .doubao-tag__text {
|
|
60
|
-
color: #e2a45c;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.doubao-tag.doubao-theme-dark.doubao-tag--tone-neutral {
|
|
64
|
-
background-color: #252525;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
.doubao-tag.doubao-theme-dark.doubao-tag--tone-neutral .doubao-tag__text {
|
|
68
|
-
color: #bababa;
|
|
69
|
-
}
|
|
70
|
-
|
|
1
|
+
.doubao-tag{display:flex;align-items:center;height:20px;padding:2px 3px;box-sizing:border-box;flex-shrink:0;overflow:hidden;border-radius:4px}.doubao-tag__text{display:block;flex-shrink:0;font-family:"PingFang SC",-apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Helvetica Neue",sans-serif;font-size:12px;font-style:normal;font-weight:400;line-height:14px;white-space:nowrap}.doubao-tag--tone-marketing{background-color:#fff3ee}.doubao-tag--tone-marketing .doubao-tag__text{color:#ff375f}.doubao-tag--tone-authority{background-color:#fff8e7}.doubao-tag--tone-authority .doubao-tag__text{color:#814300}.doubao-tag--tone-neutral{background-color:#f7f7f7}.doubao-tag--tone-neutral .doubao-tag__text{color:#666}.doubao-tag.doubao-theme-dark.doubao-tag--tone-marketing{background-color:#3f2b27}.doubao-tag.doubao-theme-dark.doubao-tag--tone-marketing .doubao-tag__text{color:#ff5c7c}.doubao-tag.doubao-theme-dark.doubao-tag--tone-authority{background-color:#3a3324}.doubao-tag.doubao-theme-dark.doubao-tag--tone-authority .doubao-tag__text{color:#e2a45c}.doubao-tag.doubao-theme-dark.doubao-tag--tone-neutral{background-color:#252525}.doubao-tag.doubao-theme-dark.doubao-tag--tone-neutral .doubao-tag__text{color:#bababa}
|
|
@@ -1,63 +1 @@
|
|
|
1
|
-
.doubao-title {
|
|
2
|
-
min-width: 0;
|
|
3
|
-
max-width: 100%;
|
|
4
|
-
color: var(--neutral-100);
|
|
5
|
-
flex-direction: row;
|
|
6
|
-
align-items: flex-end;
|
|
7
|
-
gap: 2px;
|
|
8
|
-
font-family: PingFang SC, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, sans-serif;
|
|
9
|
-
font-style: normal;
|
|
10
|
-
display: flex;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.doubao-title--loading {
|
|
14
|
-
align-items: center;
|
|
15
|
-
width: 100%;
|
|
16
|
-
height: 24px;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.doubao-title__text {
|
|
20
|
-
min-width: 0;
|
|
21
|
-
color: var(--neutral-100);
|
|
22
|
-
text-overflow: ellipsis;
|
|
23
|
-
flex: 0 auto;
|
|
24
|
-
font-family: PingFang SC, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, sans-serif;
|
|
25
|
-
font-size: 16px;
|
|
26
|
-
font-style: normal;
|
|
27
|
-
font-weight: 500;
|
|
28
|
-
line-height: 24px;
|
|
29
|
-
display: block;
|
|
30
|
-
overflow: hidden;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.doubao-title--lines-1 .doubao-title__text {
|
|
34
|
-
white-space: nowrap;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.doubao-title__arrow {
|
|
38
|
-
flex-shrink: 0;
|
|
39
|
-
width: 12px;
|
|
40
|
-
height: 12px;
|
|
41
|
-
margin-bottom: 6px;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.doubao-title__placeholder {
|
|
45
|
-
background-image: linear-gradient(90deg, #f7f7f7 0%, #e6e6e6 30%, #f7f7f7 100%);
|
|
46
|
-
background-size: 200% 100%;
|
|
47
|
-
border-radius: 4px;
|
|
48
|
-
width: 100%;
|
|
49
|
-
max-width: 40%;
|
|
50
|
-
height: 16px;
|
|
51
|
-
animation: 1.4s ease-in-out infinite doubao-title-placeholder-shimmer;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
@keyframes doubao-title-placeholder-shimmer {
|
|
55
|
-
0% {
|
|
56
|
-
background-position: 100% 0;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
100% {
|
|
60
|
-
background-position: -100% 0;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
|
|
1
|
+
.doubao-title{display:flex;flex-direction:row;align-items:flex-end;gap:2px;max-width:100%;min-width:0;color:var(--neutral-100);font-family:"PingFang SC",-apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Helvetica Neue",sans-serif;font-style:normal}.doubao-title--loading{align-items:center;width:100%;height:24px}.doubao-title__text{display:block;flex:0 1 auto;min-width:0;overflow:hidden;color:var(--neutral-100);font-family:"PingFang SC",-apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Helvetica Neue",sans-serif;font-size:16px;font-style:normal;font-weight:500;line-height:24px;text-overflow:ellipsis}.doubao-title--lines-1 .doubao-title__text{white-space:nowrap}.doubao-title__arrow{width:12px;height:12px;margin-bottom:6px;flex-shrink:0}.doubao-title__placeholder{width:100%;max-width:40%;height:16px;border-radius:4px;background-image:linear-gradient(90deg, #f7f7f7 0%, #e6e6e6 30%, #f7f7f7 100%);background-size:200% 100%;animation:doubao-title-placeholder-shimmer 1.4s ease-in-out infinite}@keyframes doubao-title-placeholder-shimmer{0%{background-position:100% 0}100%{background-position:-100% 0}}
|
|
@@ -1,18 +1 @@
|
|
|
1
|
-
.doubao-ticket-order-card {
|
|
2
|
-
box-sizing: border-box;
|
|
3
|
-
background-color: var(--bg-base-1);
|
|
4
|
-
border: 1px solid var(--bg-base-2-overlay);
|
|
5
|
-
border-radius: 8px;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
align-items: stretch;
|
|
8
|
-
width: 100%;
|
|
9
|
-
display: flex;
|
|
10
|
-
overflow: hidden;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.doubao-ticket-order-card__body {
|
|
14
|
-
box-sizing: border-box;
|
|
15
|
-
background-color: var(--bg-base-1);
|
|
16
|
-
width: 100%;
|
|
17
|
-
}
|
|
18
|
-
|
|
1
|
+
.doubao-ticket-order-card{display:flex;flex-direction:column;align-items:stretch;width:100%;box-sizing:border-box;overflow:hidden;background-color:var(--bg-base-1);border:1px solid var(--bg-base-2-overlay);border-radius:8px}.doubao-ticket-order-card__body{width:100%;box-sizing:border-box;background-color:var(--bg-base-1)}
|
|
@@ -1,53 +1 @@
|
|
|
1
|
-
.doubao-transit-card {
|
|
2
|
-
--doubao-button-border-radius: 8px;
|
|
3
|
-
--doubao-button-default-border-radius: 8px;
|
|
4
|
-
--doubao-button-default-height: 44px;
|
|
5
|
-
--doubao-button-default-padding-x: 12px;
|
|
6
|
-
--doubao-button-default-padding-y: 0;
|
|
7
|
-
--doubao-button-default-font-size: 16px;
|
|
8
|
-
--doubao-button-default-line-height: 22px;
|
|
9
|
-
box-sizing: border-box;
|
|
10
|
-
background-color: var(--bg-base-1);
|
|
11
|
-
border: 1px solid var(--bg-base-2-overlay);
|
|
12
|
-
border-radius: 8px;
|
|
13
|
-
flex-direction: column;
|
|
14
|
-
align-items: stretch;
|
|
15
|
-
width: 100%;
|
|
16
|
-
display: flex;
|
|
17
|
-
overflow: hidden;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.doubao-transit-card__body {
|
|
21
|
-
box-sizing: border-box;
|
|
22
|
-
background-color: var(--bg-base-1);
|
|
23
|
-
width: 100%;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.doubao-transit-card__item {
|
|
27
|
-
box-sizing: border-box;
|
|
28
|
-
width: 100%;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.doubao-transit-card__item--spread {
|
|
32
|
-
background: var(--neutral-transparent-1);
|
|
33
|
-
width: calc(100% - 12px);
|
|
34
|
-
height: .5px;
|
|
35
|
-
margin-left: 12px;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.doubao-transit-card__item--last {
|
|
39
|
-
border-bottom: none;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.doubao-transit-card__view-more {
|
|
43
|
-
box-sizing: border-box;
|
|
44
|
-
width: 100%;
|
|
45
|
-
padding: 8px 12px;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.doubao-transit-card__view-more-button {
|
|
49
|
-
border-radius: 8px;
|
|
50
|
-
width: 100%;
|
|
51
|
-
height: 44px;
|
|
52
|
-
}
|
|
53
|
-
|
|
1
|
+
.doubao-transit-card{--doubao-button-border-radius: 8px;--doubao-button-default-border-radius: 8px;--doubao-button-default-height: 44px;--doubao-button-default-padding-x: 12px;--doubao-button-default-padding-y: 0;--doubao-button-default-font-size: 16px;--doubao-button-default-line-height: 22px;display:flex;flex-direction:column;align-items:stretch;width:100%;box-sizing:border-box;overflow:hidden;background-color:var(--bg-base-1);border:1px solid var(--bg-base-2-overlay);border-radius:8px}.doubao-transit-card__body{width:100%;box-sizing:border-box;background-color:var(--bg-base-1)}.doubao-transit-card__item{width:100%;box-sizing:border-box}.doubao-transit-card__item--spread{height:.5px;margin-left:12px;width:calc(100% - 12px);background:var(--neutral-transparent-1)}.doubao-transit-card__item--last{border-bottom:none}.doubao-transit-card__view-more{width:100%;padding:8px 12px;box-sizing:border-box}.doubao-transit-card__view-more-button{width:100%;border-radius:8px;height:44px}
|