one-design-next 0.0.70 → 0.0.71
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/artifact/actions.d.ts +17 -0
- package/dist/artifact/actions.js +29 -0
- package/dist/artifact/glow.d.ts +7 -0
- package/dist/artifact/glow.js +17 -0
- package/dist/artifact/icons/ArtifactFileIcon.d.ts +17 -0
- package/dist/artifact/icons/ArtifactFileIcon.js +72 -0
- package/dist/artifact/icons/file-icons.d.ts +80 -0
- package/dist/artifact/icons/file-icons.js +86 -0
- package/dist/artifact/icons/index.d.ts +2 -0
- package/dist/artifact/icons/index.js +2 -0
- package/dist/artifact/icons/medium/csv.svg +25 -0
- package/dist/artifact/icons/medium/docx.svg +25 -0
- package/dist/artifact/icons/medium/file.svg +25 -0
- package/dist/artifact/icons/medium/html.svg +25 -0
- package/dist/artifact/icons/medium/md.svg +25 -0
- package/dist/artifact/icons/medium/pdf.svg +25 -0
- package/dist/artifact/icons/medium/pptx.svg +25 -0
- package/dist/artifact/icons/medium/xlsx.svg +25 -0
- package/dist/artifact/icons/small/csv.svg +19 -0
- package/dist/artifact/icons/small/docx.svg +19 -0
- package/dist/artifact/icons/small/file.svg +19 -0
- package/dist/artifact/icons/small/html.svg +19 -0
- package/dist/artifact/icons/small/md.svg +19 -0
- package/dist/artifact/icons/small/pdf.svg +19 -0
- package/dist/artifact/icons/small/pptx.svg +19 -0
- package/dist/artifact/icons/small/xlsx.svg +19 -0
- package/dist/artifact/index.d.ts +34 -15
- package/dist/artifact/index.js +187 -180
- package/dist/artifact/style/index.css +194 -162
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,243 +1,275 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
1
2
|
html {
|
|
2
|
-
|
|
3
|
-
--odn-artifact-padding-
|
|
4
|
-
--odn-artifact-padding-
|
|
3
|
+
/* medium / Card */
|
|
4
|
+
--odn-artifact-padding-y: 16px;
|
|
5
|
+
--odn-artifact-padding-x: 16px;
|
|
5
6
|
--odn-artifact-radius: 12px;
|
|
6
|
-
--odn-artifact-
|
|
7
|
-
--odn-artifact-copy-
|
|
8
|
-
--odn-artifact-
|
|
9
|
-
--odn-artifact-
|
|
10
|
-
--odn-artifact-
|
|
11
|
-
--odn-artifact-
|
|
7
|
+
--odn-artifact-gap: 14px;
|
|
8
|
+
--odn-artifact-copy-gap: 2px;
|
|
9
|
+
--odn-artifact-meta-gap: 8px;
|
|
10
|
+
--odn-artifact-max-width: 320px;
|
|
11
|
+
--odn-artifact-icon-width: 32px;
|
|
12
|
+
--odn-artifact-icon-height: 36px;
|
|
13
|
+
--odn-artifact-min-height: 68px;
|
|
14
|
+
--odn-artifact-title-size: var(--odn-font-size-text-md);
|
|
15
|
+
--odn-artifact-title-leading: var(--odn-font-leading-text-md);
|
|
16
|
+
--odn-artifact-meta-size: var(--odn-font-size-text-mn);
|
|
17
|
+
--odn-artifact-meta-leading: var(--odn-font-leading-text-mn);
|
|
18
|
+
/* Card hover:对齐即梦 banner 卡(0.3s / ease-out) */
|
|
19
|
+
--odn-artifact-hover-duration: 0.3s;
|
|
20
|
+
--odn-artifact-hover-ease: cubic-bezier(0.4, 0, 0.2, 1);
|
|
21
|
+
--odn-artifact-hover-shift: calc(
|
|
22
|
+
var(--odn-artifact-icon-width) + var(--odn-artifact-gap)
|
|
23
|
+
);
|
|
24
|
+
--odn-artifact-hover-icon-scale: 0.73;
|
|
12
25
|
}
|
|
13
26
|
|
|
14
27
|
[data-odn-artifact] {
|
|
28
|
+
box-sizing: border-box;
|
|
15
29
|
position: relative;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
padding:
|
|
24
|
-
border: 1px solid
|
|
30
|
+
display: inline-flex;
|
|
31
|
+
align-items: center;
|
|
32
|
+
gap: var(--odn-artifact-gap);
|
|
33
|
+
width: 100%;
|
|
34
|
+
max-width: var(--odn-artifact-max-width);
|
|
35
|
+
min-height: var(--odn-artifact-min-height);
|
|
36
|
+
margin: 0;
|
|
37
|
+
padding: var(--odn-artifact-padding-y) var(--odn-artifact-padding-x);
|
|
38
|
+
border: 1px solid var(--odn-color-black-4);
|
|
25
39
|
border-radius: var(--odn-artifact-radius);
|
|
26
|
-
background:
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
40
|
+
background: var(--odn-color-bg-elevated);
|
|
41
|
+
color: var(--odn-color-black-12);
|
|
42
|
+
text-align: left;
|
|
43
|
+
vertical-align: top;
|
|
30
44
|
transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
|
|
31
45
|
}
|
|
32
46
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
47
|
+
/* small / Small:仅 Icon + 标题;默认无底色/描边;hover 由 HoverFill 叠灰底 */
|
|
48
|
+
[data-odn-artifact-small-wrap] {
|
|
49
|
+
width: 100%;
|
|
50
|
+
max-width: 280px;
|
|
36
51
|
}
|
|
37
52
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
53
|
+
.odn-artifact-small-bg {
|
|
54
|
+
border-radius: 8px;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
[data-odn-artifact][data-odn-artifact-size=small] {
|
|
58
|
+
--odn-artifact-padding-y: 7px;
|
|
59
|
+
--odn-artifact-padding-x: 12px;
|
|
60
|
+
--odn-artifact-radius: 8px;
|
|
61
|
+
--odn-artifact-gap: 8px;
|
|
62
|
+
--odn-artifact-copy-gap: 0px;
|
|
63
|
+
--odn-artifact-max-width: 280px;
|
|
64
|
+
--odn-artifact-icon-width: 14px;
|
|
65
|
+
--odn-artifact-icon-height: 16px;
|
|
66
|
+
--odn-artifact-min-height: 0;
|
|
67
|
+
--odn-artifact-title-size: var(--odn-font-size-text-sm);
|
|
68
|
+
--odn-artifact-title-leading: var(--odn-font-leading-text-sm);
|
|
69
|
+
border: none;
|
|
70
|
+
background: transparent;
|
|
71
|
+
box-shadow: none;
|
|
72
|
+
transition: none;
|
|
42
73
|
}
|
|
43
74
|
|
|
44
75
|
button[data-odn-artifact] {
|
|
45
76
|
cursor: pointer;
|
|
46
77
|
font: inherit;
|
|
47
|
-
|
|
78
|
+
appearance: none;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
[data-odn-artifact][data-odn-artifact-clickable]:not([data-odn-artifact-size=small]):hover {
|
|
82
|
+
border-color: var(--odn-color-black-6);
|
|
83
|
+
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
[data-odn-artifact][data-odn-artifact-clickable]:focus {
|
|
87
|
+
outline: none;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
[data-odn-artifact][data-odn-artifact-clickable]:focus-visible {
|
|
91
|
+
outline: 2px solid color-mix(in srgb, var(--odn-color-primary) 55%, transparent);
|
|
92
|
+
outline-offset: 2px;
|
|
48
93
|
}
|
|
49
94
|
|
|
50
|
-
[data-odn-artifact
|
|
51
|
-
|
|
52
|
-
|
|
95
|
+
[data-odn-artifact-icon] {
|
|
96
|
+
display: inline-flex;
|
|
97
|
+
flex-shrink: 0;
|
|
98
|
+
width: var(--odn-artifact-icon-width);
|
|
99
|
+
height: var(--odn-artifact-icon-height);
|
|
100
|
+
line-height: 0;
|
|
101
|
+
overflow: visible;
|
|
53
102
|
}
|
|
54
103
|
|
|
55
104
|
[data-odn-artifact-copy] {
|
|
56
|
-
position: relative;
|
|
57
|
-
z-index: 1;
|
|
58
|
-
width: 100%;
|
|
59
|
-
height: var(--odn-artifact-copy-height);
|
|
60
|
-
padding: var(--odn-artifact-padding-y) var(--odn-artifact-padding-right) var(--odn-artifact-padding-y) var(--odn-artifact-padding-left);
|
|
61
|
-
box-sizing: border-box;
|
|
62
105
|
display: flex;
|
|
63
106
|
flex-direction: column;
|
|
64
|
-
justify-content:
|
|
107
|
+
justify-content: center;
|
|
108
|
+
gap: var(--odn-artifact-copy-gap);
|
|
65
109
|
min-width: 0;
|
|
110
|
+
flex: 1;
|
|
66
111
|
}
|
|
67
112
|
|
|
68
113
|
[data-odn-artifact-title] {
|
|
114
|
+
display: flex;
|
|
115
|
+
align-items: baseline;
|
|
116
|
+
min-width: 0;
|
|
69
117
|
margin: 0;
|
|
70
|
-
font-size: var(--odn-
|
|
71
|
-
line-height: var(--odn-
|
|
118
|
+
font-size: var(--odn-artifact-title-size);
|
|
119
|
+
line-height: var(--odn-artifact-title-leading);
|
|
72
120
|
font-weight: 500;
|
|
73
121
|
color: var(--odn-color-black-12);
|
|
74
|
-
overflow: hidden;
|
|
75
|
-
text-overflow: ellipsis;
|
|
76
122
|
white-space: nowrap;
|
|
77
123
|
}
|
|
78
124
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
font-size: var(--odn-font-size-text-sm);
|
|
83
|
-
line-height: var(--odn-font-leading-text-sm);
|
|
84
|
-
color: var(--odn-color-black-12);
|
|
85
|
-
white-space: nowrap;
|
|
125
|
+
/* 主名前缀可省略;末尾 4 位 + 扩展名始终完整可见(前缀…后四位.ext) */
|
|
126
|
+
[data-odn-artifact-title-name] {
|
|
127
|
+
min-width: 0;
|
|
86
128
|
overflow: hidden;
|
|
87
129
|
text-overflow: ellipsis;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
[data-odn-artifact-created-at] {
|
|
91
|
-
margin: 0;
|
|
92
|
-
margin-top: 14px;
|
|
93
|
-
font-size: var(--odn-font-size-text-mn);
|
|
94
|
-
line-height: var(--odn-font-leading-text-mn);
|
|
95
|
-
color: var(--odn-color-black-8);
|
|
96
|
-
display: inline-flex;
|
|
97
|
-
align-items: center;
|
|
98
|
-
gap: 4px;
|
|
99
130
|
white-space: nowrap;
|
|
100
|
-
overflow: hidden;
|
|
101
|
-
text-overflow: ellipsis;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
[data-odn-artifact][data-odn-artifact-status=Done] [data-odn-artifact-created-at] {
|
|
105
|
-
color: var(--odn-color-brand-6);
|
|
106
|
-
font-size: 14px;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
[data-odn-artifact][data-odn-artifact-status=Generating] [data-odn-artifact-created-at] {
|
|
110
|
-
font-size: 14px;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
[data-odn-artifact-detail-icon] {
|
|
114
|
-
display: inline-flex;
|
|
115
|
-
align-items: center;
|
|
116
|
-
transform: translateX(-6px);
|
|
117
|
-
opacity: 0;
|
|
118
|
-
transition: transform 0.2s ease, opacity 0.2s ease;
|
|
119
131
|
}
|
|
120
132
|
|
|
121
|
-
[data-odn-artifact
|
|
122
|
-
|
|
123
|
-
|
|
133
|
+
[data-odn-artifact-title-tail],
|
|
134
|
+
[data-odn-artifact-title-ext] {
|
|
135
|
+
flex-shrink: 0;
|
|
124
136
|
}
|
|
125
137
|
|
|
126
|
-
[data-odn-artifact-
|
|
127
|
-
position: relative;
|
|
128
|
-
z-index: 1;
|
|
129
|
-
width: var(--odn-artifact-visual-width);
|
|
130
|
-
height: var(--odn-artifact-visual-height);
|
|
138
|
+
[data-odn-artifact-meta] {
|
|
131
139
|
display: flex;
|
|
132
|
-
align-items:
|
|
133
|
-
|
|
140
|
+
align-items: center;
|
|
141
|
+
flex-wrap: wrap;
|
|
142
|
+
gap: var(--odn-artifact-meta-gap);
|
|
143
|
+
min-width: 0;
|
|
144
|
+
font-size: var(--odn-artifact-meta-size);
|
|
145
|
+
line-height: var(--odn-artifact-meta-leading);
|
|
146
|
+
color: var(--odn-color-black-8);
|
|
147
|
+
font-variant-numeric: tabular-nums;
|
|
134
148
|
}
|
|
135
149
|
|
|
136
|
-
[data-odn-artifact-
|
|
137
|
-
|
|
138
|
-
width: var(--odn-artifact-visual-inner-width);
|
|
139
|
-
min-width: var(--odn-artifact-visual-inner-width);
|
|
140
|
-
height: var(--odn-artifact-visual-height);
|
|
141
|
-
margin-top: 20px;
|
|
142
|
-
margin-right: 0;
|
|
143
|
-
display: flex;
|
|
144
|
-
align-items: center;
|
|
145
|
-
justify-content: center;
|
|
146
|
-
border-radius: 8px;
|
|
147
|
-
border: 0;
|
|
148
|
-
background: #fff;
|
|
150
|
+
[data-odn-artifact-meta-item] {
|
|
151
|
+
min-width: 0;
|
|
149
152
|
overflow: hidden;
|
|
150
|
-
|
|
153
|
+
text-overflow: ellipsis;
|
|
154
|
+
white-space: nowrap;
|
|
151
155
|
}
|
|
152
156
|
|
|
153
|
-
|
|
154
|
-
|
|
157
|
+
/* —— Card hover(参考即梦 button-CB5lvW)——
|
|
158
|
+
* 1. 左侧大椭圆色光(background ::after radial-gradient,hover opacity .12)
|
|
159
|
+
* 2. Icon scale(0.73) + 淡出,形成后退感
|
|
160
|
+
* 3. 文案模块 translateX 至左 padding 16(半透明,让色光透出)
|
|
161
|
+
*/
|
|
162
|
+
[data-odn-artifact]:not([data-odn-artifact-size=small]) {
|
|
163
|
+
overflow: hidden;
|
|
155
164
|
}
|
|
156
165
|
|
|
157
|
-
|
|
166
|
+
/* 即梦 .background-EkKhlS:全卡裁切层 + 左侧大椭圆 glow */
|
|
167
|
+
[data-odn-artifact-glow] {
|
|
158
168
|
position: absolute;
|
|
159
169
|
inset: 0;
|
|
160
170
|
z-index: 0;
|
|
171
|
+
border-radius: inherit;
|
|
172
|
+
overflow: hidden;
|
|
161
173
|
pointer-events: none;
|
|
162
|
-
opacity:
|
|
163
|
-
transition: opacity
|
|
164
|
-
background: radial-gradient(280px circle at var(--odn-artifact-spot-x, 50%) var(--odn-artifact-spot-y, 50%), color-mix(in srgb, var(--odn-color-blue-2) 42%, transparent) 0%, transparent 62%);
|
|
174
|
+
opacity: 0;
|
|
175
|
+
transition: opacity var(--odn-artifact-hover-duration) var(--odn-artifact-hover-ease);
|
|
165
176
|
}
|
|
166
177
|
|
|
167
|
-
[data-odn-artifact-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
178
|
+
[data-odn-artifact-glow]::after {
|
|
179
|
+
content: "";
|
|
180
|
+
position: absolute;
|
|
181
|
+
/* 尺寸/位置对齐即梦:230×130、左偏 -65、上偏 -30、微旋 -8.4deg */
|
|
182
|
+
left: -65px;
|
|
183
|
+
top: -30px;
|
|
184
|
+
width: 230px;
|
|
185
|
+
height: 130px;
|
|
186
|
+
transform: rotate(-8.4deg);
|
|
187
|
+
background-image: radial-gradient(ellipse at center, var(--odn-artifact-glow-color, #fa8e00), transparent 60%);
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
[data-odn-artifact][data-odn-artifact-clickable]:not([data-odn-artifact-size=small]):hover > [data-odn-artifact-glow],
|
|
191
|
+
[data-odn-artifact][data-odn-artifact-clickable]:not([data-odn-artifact-size=small]):focus-visible > [data-odn-artifact-glow] {
|
|
192
|
+
opacity: 0.12;
|
|
171
193
|
}
|
|
172
194
|
|
|
173
|
-
[data-odn-artifact-
|
|
195
|
+
[data-odn-artifact]:not([data-odn-artifact-size=small]) [data-odn-artifact-icon] {
|
|
196
|
+
position: relative;
|
|
197
|
+
z-index: 1;
|
|
198
|
+
transform: scale(1);
|
|
199
|
+
opacity: 1;
|
|
200
|
+
transform-origin: center center;
|
|
201
|
+
transition: transform var(--odn-artifact-hover-duration) var(--odn-artifact-hover-ease), opacity var(--odn-artifact-hover-duration) var(--odn-artifact-hover-ease);
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
[data-odn-artifact-main] {
|
|
174
205
|
position: absolute;
|
|
175
|
-
|
|
176
|
-
top: 48px;
|
|
177
|
-
transform: translate(-50%, -50%);
|
|
206
|
+
inset: 0;
|
|
178
207
|
z-index: 2;
|
|
179
|
-
|
|
208
|
+
overflow: hidden;
|
|
180
209
|
pointer-events: none;
|
|
181
210
|
}
|
|
182
211
|
|
|
183
|
-
[data-odn-artifact-
|
|
212
|
+
[data-odn-artifact]:not([data-odn-artifact-size=small]) [data-odn-artifact-copy] {
|
|
184
213
|
position: absolute;
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
214
|
+
top: 0;
|
|
215
|
+
bottom: 0;
|
|
216
|
+
left: calc(var(--odn-artifact-padding-x) + var(--odn-artifact-icon-width) + var(--odn-artifact-gap));
|
|
217
|
+
right: var(--odn-artifact-padding-x);
|
|
218
|
+
z-index: 2;
|
|
219
|
+
flex: none;
|
|
220
|
+
box-sizing: border-box;
|
|
221
|
+
/* 不铺不透明底,让左侧色光大面积透出(同即梦文案层) */
|
|
222
|
+
transform: translateX(0);
|
|
223
|
+
will-change: transform;
|
|
224
|
+
transition: transform var(--odn-artifact-hover-duration) var(--odn-artifact-hover-ease);
|
|
225
|
+
pointer-events: none;
|
|
188
226
|
}
|
|
189
227
|
|
|
190
|
-
[data-odn-artifact-
|
|
191
|
-
|
|
192
|
-
height: 6px;
|
|
193
|
-
left: 12px;
|
|
194
|
-
top: 12px;
|
|
228
|
+
[data-odn-artifact]:not([data-odn-artifact-size=small]) [data-odn-artifact-title] {
|
|
229
|
+
pointer-events: auto;
|
|
195
230
|
}
|
|
196
231
|
|
|
197
|
-
[data-odn-artifact-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
top: 22px;
|
|
232
|
+
[data-odn-artifact][data-odn-artifact-clickable]:not([data-odn-artifact-size=small]):hover [data-odn-artifact-icon],
|
|
233
|
+
[data-odn-artifact][data-odn-artifact-clickable]:not([data-odn-artifact-size=small]):focus-visible [data-odn-artifact-icon] {
|
|
234
|
+
transform: scale(var(--odn-artifact-hover-icon-scale));
|
|
235
|
+
opacity: 0;
|
|
202
236
|
}
|
|
203
237
|
|
|
204
|
-
[data-odn-artifact-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
top: 12px;
|
|
209
|
-
border-radius: 3.2px;
|
|
238
|
+
[data-odn-artifact][data-odn-artifact-clickable]:not([data-odn-artifact-size=small]):hover [data-odn-artifact-copy],
|
|
239
|
+
[data-odn-artifact][data-odn-artifact-clickable]:not([data-odn-artifact-size=small]):focus-visible [data-odn-artifact-copy] {
|
|
240
|
+
/* 左移 icon+gap,使文案左缘落到 padding-x(16) */
|
|
241
|
+
transform: translateX(calc(-1 * var(--odn-artifact-hover-shift)));
|
|
210
242
|
}
|
|
211
243
|
|
|
212
|
-
|
|
244
|
+
/* Card:操作预期仅 Icon;右侧间距 20 */
|
|
245
|
+
[data-odn-artifact-action] {
|
|
213
246
|
position: absolute;
|
|
247
|
+
right: 20px;
|
|
248
|
+
top: 50%;
|
|
249
|
+
z-index: 3;
|
|
250
|
+
display: inline-flex;
|
|
251
|
+
align-items: center;
|
|
252
|
+
justify-content: center;
|
|
253
|
+
flex-shrink: 0;
|
|
214
254
|
width: 16px;
|
|
215
255
|
height: 16px;
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
background: #ecf2fe;
|
|
256
|
+
color: var(--odn-color-black-10);
|
|
257
|
+
pointer-events: none;
|
|
258
|
+
opacity: 0;
|
|
259
|
+
transform: translate(4px, -50%);
|
|
260
|
+
transition: opacity var(--odn-artifact-hover-duration) var(--odn-artifact-hover-ease), transform var(--odn-artifact-hover-duration) var(--odn-artifact-hover-ease);
|
|
222
261
|
}
|
|
223
262
|
|
|
224
|
-
[data-odn-artifact-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
object-fit: cover;
|
|
263
|
+
[data-odn-artifact][data-odn-artifact-clickable]:hover > [data-odn-artifact-action],
|
|
264
|
+
[data-odn-artifact][data-odn-artifact-clickable]:focus-visible > [data-odn-artifact-action] {
|
|
265
|
+
opacity: 1;
|
|
266
|
+
transform: translate(0, -50%);
|
|
229
267
|
}
|
|
230
268
|
|
|
231
|
-
[data-odn-artifact-
|
|
232
|
-
|
|
233
|
-
height: 32px;
|
|
234
|
-
left: 12px;
|
|
235
|
-
top: 40px;
|
|
269
|
+
[data-odn-artifact][data-odn-artifact-status=Generating] {
|
|
270
|
+
opacity: 0.85;
|
|
236
271
|
}
|
|
237
272
|
|
|
238
|
-
[data-odn-artifact-
|
|
239
|
-
|
|
240
|
-
height: 32px;
|
|
241
|
-
left: 12px;
|
|
242
|
-
top: 78px;
|
|
273
|
+
[data-odn-artifact][data-odn-artifact-status=Generating] [data-odn-artifact-meta] {
|
|
274
|
+
color: var(--odn-color-black-7);
|
|
243
275
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -55,7 +55,7 @@ export { default as ActionBar, type ActionBarProps } from './action-bar';
|
|
|
55
55
|
export { default as AgentStep, type AgentStepGroupProps, type AgentStepProps, } from './agent-step';
|
|
56
56
|
export { default as AgentThink, type AgentThinkProps } from './agent-think';
|
|
57
57
|
export { APPROVAL_DEFAULT_ACTIONS_HINT, default as Approval, type ApprovalDecision, type ApprovalProps, type ApprovalResolvePayload, type ApprovalSpec, type ApprovalSummaryItem, } from './approval';
|
|
58
|
-
export { default as Artifact, type ArtifactProps } from './artifact';
|
|
58
|
+
export { ARTIFACT_DEDICATED_FILE_ICON_TYPES, ARTIFACT_FILE_GLOW_COLORS, ARTIFACT_FILE_ICON_TYPES, default as Artifact, ArtifactFileIcon, getArtifactAction, getArtifactGlowColor, type ArtifactAction, type ArtifactActionKind, type ArtifactFileIconProps, type ArtifactFileIconSize, type ArtifactFileIconType, type ArtifactProps, type ArtifactSize, } from './artifact';
|
|
59
59
|
export { default as Attachments, type AttachmentsProps } from './attachments';
|
|
60
60
|
export { default as ChatItem, formatRelativeTime, type ChatItemProps, } from './chat-item';
|
|
61
61
|
export { default as ChatList, matchChatListFilterTime, matchChatListFilterType, type ChatListFilterTime, type ChatListFilterType, type ChatListItem, type ChatListProps, } from './chat-list';
|
package/dist/index.js
CHANGED
|
@@ -61,7 +61,7 @@ export { default as ActionBar } from "./action-bar";
|
|
|
61
61
|
export { default as AgentStep } from "./agent-step";
|
|
62
62
|
export { default as AgentThink } from "./agent-think";
|
|
63
63
|
export { APPROVAL_DEFAULT_ACTIONS_HINT, default as Approval } from "./approval";
|
|
64
|
-
export { default as Artifact } from "./artifact";
|
|
64
|
+
export { ARTIFACT_DEDICATED_FILE_ICON_TYPES, ARTIFACT_FILE_GLOW_COLORS, ARTIFACT_FILE_ICON_TYPES, default as Artifact, ArtifactFileIcon, getArtifactAction, getArtifactGlowColor } from "./artifact";
|
|
65
65
|
export { default as Attachments } from "./attachments";
|
|
66
66
|
export { default as ChatItem, formatRelativeTime } from "./chat-item";
|
|
67
67
|
export { default as ChatList, matchChatListFilterTime, matchChatListFilterType } from "./chat-list";
|