@tulipfarm/sprout 0.1.0 → 0.2.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/components/attachment.js +2 -2
- package/dist/components/brand-icon.js +4 -0
- package/dist/components/canvas.js +2 -2
- package/dist/components/chat-input.d.ts +94 -0
- package/dist/components/chat-input.js +279 -0
- package/dist/components/code-block.js +2 -33
- package/dist/components/file-explorer.d.ts +27 -0
- package/dist/components/file-explorer.js +300 -0
- package/dist/components/file-viewer.d.ts +18 -1
- package/dist/components/file-viewer.js +35 -8
- package/dist/components/questionnaire.js +2 -1
- package/dist/components/search-dialog.js +5 -4
- package/dist/components/state-panel.js +2 -2
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/internal/brand-glyphs.d.ts +28 -0
- package/dist/internal/brand-glyphs.js +24 -0
- package/dist/internal/code-tokens.d.ts +4 -0
- package/dist/internal/code-tokens.js +34 -0
- package/dist/styles/accordion.css +2 -2
- package/dist/styles/alert-dialog.css +2 -2
- package/dist/styles/alert.css +2 -2
- package/dist/styles/attachment.css +4 -24
- package/dist/styles/badge.css +2 -2
- package/dist/styles/brand-icon.css +2 -2
- package/dist/styles/breadcrumb.css +2 -2
- package/dist/styles/button.css +2 -2
- package/dist/styles/calendar.css +3 -3
- package/dist/styles/canvas.css +4 -18
- package/dist/styles/carousel.css +2 -2
- package/dist/styles/chart.css +2 -2
- package/dist/styles/chat-confirmation.css +2 -2
- package/dist/styles/chat-input.css +240 -0
- package/dist/styles/chat-sources.css +2 -2
- package/dist/styles/checkbox.css +2 -3
- package/dist/styles/choice-list.css +2 -2
- package/dist/styles/code-block.css +2 -2
- package/dist/styles/collapsible.css +2 -2
- package/dist/styles/combobox.css +6 -6
- package/dist/styles/command.css +2 -2
- package/dist/styles/context-menu.css +3 -3
- package/dist/styles/dialog.css +2 -2
- package/dist/styles/dropdown-menu.css +1 -1
- package/dist/styles/field.css +2 -3
- package/dist/styles/file-explorer.css +517 -0
- package/dist/styles/file-viewer.css +113 -16
- package/dist/styles/hover-card.css +2 -2
- package/dist/styles/index.css +6 -0
- package/dist/styles/input-group.css +6 -11
- package/dist/styles/input-otp.css +2 -2
- package/dist/styles/input.css +3 -4
- package/dist/styles/mention-list.css +1 -1
- package/dist/styles/menubar.css +3 -3
- package/dist/styles/message-response.css +4 -4
- package/dist/styles/message-scroller.css +2 -2
- package/dist/styles/message.css +4 -4
- package/dist/styles/navigation-menu.css +2 -2
- package/dist/styles/page-header.css +4 -4
- package/dist/styles/plan-outline.css +6 -6
- package/dist/styles/prompt-list.css +2 -2
- package/dist/styles/questionnaire.css +2 -17
- package/dist/styles/radio-group.css +2 -3
- package/dist/styles/reasoning-effort.css +2 -2
- package/dist/styles/review-card.css +2 -2
- package/dist/styles/rich-text-editor.css +2 -2
- package/dist/styles/schema-diagram.css +4 -4
- package/dist/styles/scroll-area.css +2 -2
- package/dist/styles/search-dialog.css +0 -83
- package/dist/styles/select.css +3 -3
- package/dist/styles/separator.css +2 -2
- package/dist/styles/sheet.css +2 -2
- package/dist/styles/sidebar.css +2 -2
- package/dist/styles/slider.css +1 -1
- package/dist/styles/state-panel.css +1 -10
- package/dist/styles/switch.css +2 -2
- package/dist/styles/table.css +10 -10
- package/dist/styles/tabs.css +4 -4
- package/dist/styles/textarea.css +3 -4
- package/dist/styles/themes/tulipfarm.css +89 -99
- package/dist/styles/toast.css +2 -2
- package/dist/styles/toggle-group.css +2 -2
- package/dist/styles/toggle.css +2 -2
- package/dist/styles/tool-activity.css +5 -5
- package/package.json +10 -1
package/dist/styles/command.css
CHANGED
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
cursor: text;
|
|
50
50
|
}
|
|
51
51
|
.sprout-command-input-group:has(.sprout-command-input:focus-visible) {
|
|
52
|
-
border-color: var(--sprout-
|
|
52
|
+
border-color: var(--sprout-border);
|
|
53
53
|
}
|
|
54
54
|
.sprout-command-input-group:has(.sprout-command-input:disabled) {
|
|
55
55
|
opacity: 0.5;
|
|
@@ -210,7 +210,7 @@
|
|
|
210
210
|
@media (forced-colors: active) {
|
|
211
211
|
.sprout-command-item[data-selected] {
|
|
212
212
|
outline: 2px solid Highlight;
|
|
213
|
-
outline-offset: -
|
|
213
|
+
outline-offset: -1px;
|
|
214
214
|
}
|
|
215
215
|
.sprout-command-input-group {
|
|
216
216
|
border-color: CanvasText;
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
-webkit-tap-highlight-color: transparent;
|
|
7
7
|
}
|
|
8
8
|
.sprout-context-menu-trigger:focus-visible {
|
|
9
|
-
outline:
|
|
10
|
-
outline-offset:
|
|
9
|
+
outline: var(--sprout-focus-width) solid var(--sprout-focus-ring);
|
|
10
|
+
outline-offset: 0;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
.sprout-context-menu-positioner {
|
|
@@ -132,7 +132,7 @@
|
|
|
132
132
|
.sprout-context-menu-item[data-highlighted],
|
|
133
133
|
.sprout-context-menu-sub-trigger[data-popup-open] {
|
|
134
134
|
outline: 2px solid Highlight;
|
|
135
|
-
outline-offset: -
|
|
135
|
+
outline-offset: -1px;
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
138
|
|
package/dist/styles/dialog.css
CHANGED
|
@@ -120,8 +120,8 @@
|
|
|
120
120
|
text-underline-offset: 3px;
|
|
121
121
|
}
|
|
122
122
|
.sprout-dialog-description a:not([data-slot]):focus-visible {
|
|
123
|
-
outline:
|
|
124
|
-
outline-offset:
|
|
123
|
+
outline: var(--sprout-focus-width) solid var(--sprout-focus-ring);
|
|
124
|
+
outline-offset: 0;
|
|
125
125
|
}
|
|
126
126
|
|
|
127
127
|
.sprout-dialog-body {
|
package/dist/styles/field.css
CHANGED
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
color: var(--sprout-on-primary);
|
|
103
103
|
cursor: pointer;
|
|
104
104
|
outline: 0 solid transparent;
|
|
105
|
-
outline-offset:
|
|
105
|
+
outline-offset: 0;
|
|
106
106
|
}
|
|
107
107
|
.sprout-field-checkbox {
|
|
108
108
|
border-radius: 4px;
|
|
@@ -118,8 +118,7 @@
|
|
|
118
118
|
}
|
|
119
119
|
.sprout-field-checkbox:focus-visible,
|
|
120
120
|
.sprout-field-radio:focus-visible {
|
|
121
|
-
|
|
122
|
-
outline: 2px solid var(--sprout-focus);
|
|
121
|
+
outline: var(--sprout-focus-width) solid var(--sprout-focus-ring);
|
|
123
122
|
}
|
|
124
123
|
.sprout-field-checkbox[data-checked],
|
|
125
124
|
.sprout-field-radio[data-checked] {
|
|
@@ -0,0 +1,517 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.sprout-file-explorer {
|
|
3
|
+
--sprout-file-explorer-row: 26px;
|
|
4
|
+
--sprout-file-explorer-indent: 12px;
|
|
5
|
+
--sprout-file-explorer-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
6
|
+
display: grid;
|
|
7
|
+
grid-template-columns: var(--sprout-file-explorer-sidebar, 16rem) minmax(
|
|
8
|
+
0,
|
|
9
|
+
1fr
|
|
10
|
+
);
|
|
11
|
+
box-sizing: border-box;
|
|
12
|
+
height: 100%;
|
|
13
|
+
min-height: 0;
|
|
14
|
+
min-width: 0;
|
|
15
|
+
overflow: hidden;
|
|
16
|
+
border: 1px solid var(--sprout-line);
|
|
17
|
+
border-radius: var(--sprout-radius-panel);
|
|
18
|
+
background: var(--sprout-surface);
|
|
19
|
+
color: var(--sprout-text);
|
|
20
|
+
font-family: var(--sprout-font);
|
|
21
|
+
font-size: var(--sprout-text-sm);
|
|
22
|
+
}
|
|
23
|
+
.sprout-file-explorer ::selection {
|
|
24
|
+
background: color-mix(in oklab, var(--sprout-info) 22%, transparent);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/* Sidebar */
|
|
28
|
+
.sprout-file-explorer-sidebar {
|
|
29
|
+
display: flex;
|
|
30
|
+
flex-direction: column;
|
|
31
|
+
min-height: 0;
|
|
32
|
+
min-width: 0;
|
|
33
|
+
border-inline-end: 1px solid var(--sprout-line);
|
|
34
|
+
background: var(--sprout-canvas);
|
|
35
|
+
}
|
|
36
|
+
.sprout-file-explorer-sidebar-header {
|
|
37
|
+
display: flex;
|
|
38
|
+
flex-shrink: 0;
|
|
39
|
+
align-items: center;
|
|
40
|
+
justify-content: space-between;
|
|
41
|
+
gap: 8px;
|
|
42
|
+
min-height: 40px;
|
|
43
|
+
padding: 0 6px 0 12px;
|
|
44
|
+
}
|
|
45
|
+
.sprout-file-explorer-title {
|
|
46
|
+
min-width: 0;
|
|
47
|
+
overflow: hidden;
|
|
48
|
+
font-weight: 600;
|
|
49
|
+
white-space: nowrap;
|
|
50
|
+
text-overflow: ellipsis;
|
|
51
|
+
}
|
|
52
|
+
.sprout-file-explorer-icon-button {
|
|
53
|
+
display: inline-grid;
|
|
54
|
+
place-items: center;
|
|
55
|
+
width: 28px;
|
|
56
|
+
height: 28px;
|
|
57
|
+
padding: 0;
|
|
58
|
+
border: 0;
|
|
59
|
+
border-radius: var(--sprout-radius-control);
|
|
60
|
+
background: transparent;
|
|
61
|
+
color: var(--sprout-muted);
|
|
62
|
+
cursor: pointer;
|
|
63
|
+
}
|
|
64
|
+
.sprout-file-explorer-icon-button:hover:not(:disabled) {
|
|
65
|
+
background: var(--sprout-hover);
|
|
66
|
+
color: var(--sprout-text);
|
|
67
|
+
}
|
|
68
|
+
.sprout-file-explorer-icon-button:disabled {
|
|
69
|
+
opacity: 0.4;
|
|
70
|
+
cursor: default;
|
|
71
|
+
}
|
|
72
|
+
.sprout-file-explorer-search {
|
|
73
|
+
flex-shrink: 0;
|
|
74
|
+
padding: 0 8px 8px;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.sprout-file-explorer-tree,
|
|
78
|
+
.sprout-file-explorer-results {
|
|
79
|
+
flex: 1;
|
|
80
|
+
min-height: 0;
|
|
81
|
+
overflow: auto;
|
|
82
|
+
padding: 0 4px 8px;
|
|
83
|
+
scrollbar-width: thin;
|
|
84
|
+
scrollbar-color: var(--sprout-input) transparent;
|
|
85
|
+
}
|
|
86
|
+
.sprout-file-explorer-tree:focus-visible {
|
|
87
|
+
outline: none;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.sprout-file-explorer-row {
|
|
91
|
+
display: flex;
|
|
92
|
+
align-items: center;
|
|
93
|
+
gap: 6px;
|
|
94
|
+
box-sizing: border-box;
|
|
95
|
+
height: var(--sprout-file-explorer-row);
|
|
96
|
+
padding-inline: 4px 8px;
|
|
97
|
+
border-radius: var(--sprout-radius-control);
|
|
98
|
+
color: var(--sprout-text);
|
|
99
|
+
white-space: nowrap;
|
|
100
|
+
cursor: pointer;
|
|
101
|
+
user-select: none;
|
|
102
|
+
}
|
|
103
|
+
.sprout-file-explorer-row:hover {
|
|
104
|
+
background: var(--sprout-hover);
|
|
105
|
+
}
|
|
106
|
+
.sprout-file-explorer-row[aria-selected="true"] {
|
|
107
|
+
background: var(--sprout-active);
|
|
108
|
+
font-weight: 500;
|
|
109
|
+
}
|
|
110
|
+
.sprout-file-explorer-row:focus-visible {
|
|
111
|
+
outline: 2px solid var(--sprout-focus);
|
|
112
|
+
outline-offset: -2px;
|
|
113
|
+
}
|
|
114
|
+
.sprout-file-explorer-guide {
|
|
115
|
+
flex: 0 0 auto;
|
|
116
|
+
align-self: stretch;
|
|
117
|
+
width: var(--sprout-file-explorer-indent);
|
|
118
|
+
margin-inline-end: -6px;
|
|
119
|
+
background: linear-gradient(var(--sprout-line), var(--sprout-line)) 5px 0 /
|
|
120
|
+
1px 100% no-repeat;
|
|
121
|
+
}
|
|
122
|
+
.sprout-file-explorer-tree:hover .sprout-file-explorer-guide {
|
|
123
|
+
background-image: linear-gradient(var(--sprout-input), var(--sprout-input));
|
|
124
|
+
}
|
|
125
|
+
.sprout-file-explorer-chevron {
|
|
126
|
+
display: inline-grid;
|
|
127
|
+
flex: 0 0 auto;
|
|
128
|
+
place-items: center;
|
|
129
|
+
width: 12px;
|
|
130
|
+
color: var(--sprout-muted);
|
|
131
|
+
}
|
|
132
|
+
.sprout-file-explorer-row[aria-expanded="true"]
|
|
133
|
+
.sprout-file-explorer-chevron {
|
|
134
|
+
transform: rotate(90deg);
|
|
135
|
+
}
|
|
136
|
+
.sprout-file-explorer-folder {
|
|
137
|
+
flex-shrink: 0;
|
|
138
|
+
color: var(--sprout-file-explorer-folder, var(--sprout-muted));
|
|
139
|
+
}
|
|
140
|
+
.sprout-file-explorer-row[aria-expanded="true"] .sprout-file-explorer-folder {
|
|
141
|
+
color: var(--sprout-file-explorer-folder-open, var(--sprout-text));
|
|
142
|
+
}
|
|
143
|
+
.sprout-file-explorer-name {
|
|
144
|
+
min-width: 0;
|
|
145
|
+
overflow: hidden;
|
|
146
|
+
text-overflow: ellipsis;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/* File glyphs */
|
|
150
|
+
.sprout-file-explorer-glyph {
|
|
151
|
+
flex-shrink: 0;
|
|
152
|
+
width: 16px;
|
|
153
|
+
height: 16px;
|
|
154
|
+
color: var(--sprout-muted);
|
|
155
|
+
--tone: var(--sprout-muted);
|
|
156
|
+
}
|
|
157
|
+
.sprout-file-explorer-glyph[data-tone="info"] {
|
|
158
|
+
--tone: var(--sprout-syntax-keyword, var(--sprout-info));
|
|
159
|
+
}
|
|
160
|
+
.sprout-file-explorer-glyph[data-tone="success"] {
|
|
161
|
+
--tone: var(--sprout-syntax-string, var(--sprout-success));
|
|
162
|
+
}
|
|
163
|
+
.sprout-file-explorer-glyph[data-tone="warning"] {
|
|
164
|
+
--tone: var(--sprout-syntax-constant, var(--sprout-warning));
|
|
165
|
+
}
|
|
166
|
+
.sprout-file-explorer-glyph[data-tone="danger"] {
|
|
167
|
+
--tone: var(--sprout-danger);
|
|
168
|
+
}
|
|
169
|
+
.sprout-file-explorer-glyph[data-tone="accent"] {
|
|
170
|
+
--tone: var(
|
|
171
|
+
--sprout-syntax-function,
|
|
172
|
+
color-mix(in oklab, var(--sprout-info) 55%, var(--sprout-danger))
|
|
173
|
+
);
|
|
174
|
+
}
|
|
175
|
+
.sprout-file-explorer-glyph-tile {
|
|
176
|
+
fill: color-mix(in oklab, var(--tone) 14%, transparent);
|
|
177
|
+
stroke: color-mix(in oklab, var(--tone) 30%, transparent);
|
|
178
|
+
stroke-width: 1;
|
|
179
|
+
}
|
|
180
|
+
.sprout-file-explorer-glyph-label {
|
|
181
|
+
fill: var(--tone);
|
|
182
|
+
font-family: var(--sprout-font);
|
|
183
|
+
letter-spacing: -0.02em;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
/* Search results */
|
|
187
|
+
.sprout-file-explorer-summary {
|
|
188
|
+
margin: 0;
|
|
189
|
+
padding: 6px 8px;
|
|
190
|
+
color: var(--sprout-muted);
|
|
191
|
+
font-size: var(--sprout-text-xs);
|
|
192
|
+
line-height: 1rem;
|
|
193
|
+
}
|
|
194
|
+
.sprout-file-explorer-group {
|
|
195
|
+
margin: 10px 0 2px;
|
|
196
|
+
padding: 0 8px;
|
|
197
|
+
color: var(--sprout-muted);
|
|
198
|
+
font-size: var(--sprout-text-xs);
|
|
199
|
+
font-weight: 500;
|
|
200
|
+
line-height: 1rem;
|
|
201
|
+
}
|
|
202
|
+
.sprout-file-explorer-list {
|
|
203
|
+
margin: 0;
|
|
204
|
+
padding: 0;
|
|
205
|
+
list-style: none;
|
|
206
|
+
}
|
|
207
|
+
.sprout-file-explorer-result,
|
|
208
|
+
.sprout-file-explorer-hit {
|
|
209
|
+
display: flex;
|
|
210
|
+
align-items: center;
|
|
211
|
+
gap: 6px;
|
|
212
|
+
box-sizing: border-box;
|
|
213
|
+
width: 100%;
|
|
214
|
+
min-height: var(--sprout-file-explorer-row);
|
|
215
|
+
padding: 0 8px;
|
|
216
|
+
border: 0;
|
|
217
|
+
border-radius: var(--sprout-radius-control);
|
|
218
|
+
background: transparent;
|
|
219
|
+
color: var(--sprout-text);
|
|
220
|
+
font: inherit;
|
|
221
|
+
text-align: start;
|
|
222
|
+
white-space: nowrap;
|
|
223
|
+
cursor: pointer;
|
|
224
|
+
}
|
|
225
|
+
.sprout-file-explorer-result:hover,
|
|
226
|
+
.sprout-file-explorer-hit:hover {
|
|
227
|
+
background: var(--sprout-hover);
|
|
228
|
+
}
|
|
229
|
+
.sprout-file-explorer-result[aria-current="true"],
|
|
230
|
+
.sprout-file-explorer-hit[aria-current="true"] {
|
|
231
|
+
background: var(--sprout-active);
|
|
232
|
+
}
|
|
233
|
+
.sprout-file-explorer-result:focus-visible,
|
|
234
|
+
.sprout-file-explorer-hit:focus-visible {
|
|
235
|
+
outline: 2px solid var(--sprout-focus);
|
|
236
|
+
outline-offset: -2px;
|
|
237
|
+
}
|
|
238
|
+
.sprout-file-explorer-result .sprout-file-explorer-name {
|
|
239
|
+
flex-shrink: 0;
|
|
240
|
+
max-width: 70%;
|
|
241
|
+
}
|
|
242
|
+
.sprout-file-explorer-dir {
|
|
243
|
+
flex: 1;
|
|
244
|
+
min-width: 0;
|
|
245
|
+
overflow: hidden;
|
|
246
|
+
color: var(--sprout-muted);
|
|
247
|
+
font-size: var(--sprout-text-xs);
|
|
248
|
+
text-overflow: ellipsis;
|
|
249
|
+
}
|
|
250
|
+
.sprout-file-explorer-count {
|
|
251
|
+
min-width: 18px;
|
|
252
|
+
padding: 0 5px;
|
|
253
|
+
border-radius: 999px;
|
|
254
|
+
background: var(--sprout-secondary);
|
|
255
|
+
color: var(--sprout-muted);
|
|
256
|
+
font-size: 11px;
|
|
257
|
+
font-variant-numeric: tabular-nums;
|
|
258
|
+
line-height: 16px;
|
|
259
|
+
text-align: center;
|
|
260
|
+
}
|
|
261
|
+
.sprout-file-explorer-hit {
|
|
262
|
+
padding-inline-start: 30px;
|
|
263
|
+
font-family: var(--sprout-file-explorer-mono);
|
|
264
|
+
font-size: var(--sprout-text-xs);
|
|
265
|
+
}
|
|
266
|
+
.sprout-file-explorer-hit-line {
|
|
267
|
+
flex-shrink: 0;
|
|
268
|
+
min-width: 2ch;
|
|
269
|
+
color: var(--sprout-muted);
|
|
270
|
+
font-variant-numeric: tabular-nums;
|
|
271
|
+
text-align: end;
|
|
272
|
+
}
|
|
273
|
+
.sprout-file-explorer-hit-text {
|
|
274
|
+
min-width: 0;
|
|
275
|
+
overflow: hidden;
|
|
276
|
+
text-overflow: ellipsis;
|
|
277
|
+
}
|
|
278
|
+
.sprout-file-explorer-mark {
|
|
279
|
+
border-radius: 2px;
|
|
280
|
+
background: color-mix(in oklab, var(--sprout-warning) 26%, transparent);
|
|
281
|
+
box-shadow: 0 0 0 1px
|
|
282
|
+
color-mix(in oklab, var(--sprout-warning) 40%, transparent);
|
|
283
|
+
color: inherit;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
/* Editor */
|
|
287
|
+
.sprout-file-explorer-editor {
|
|
288
|
+
display: flex;
|
|
289
|
+
flex-direction: column;
|
|
290
|
+
min-height: 0;
|
|
291
|
+
min-width: 0;
|
|
292
|
+
}
|
|
293
|
+
.sprout-file-explorer-tabs {
|
|
294
|
+
display: flex;
|
|
295
|
+
flex-shrink: 0;
|
|
296
|
+
overflow-x: auto;
|
|
297
|
+
border-bottom: 1px solid var(--sprout-line);
|
|
298
|
+
background: var(--sprout-canvas);
|
|
299
|
+
scrollbar-width: none;
|
|
300
|
+
}
|
|
301
|
+
.sprout-file-explorer-tab {
|
|
302
|
+
position: relative;
|
|
303
|
+
display: flex;
|
|
304
|
+
flex-shrink: 0;
|
|
305
|
+
align-items: center;
|
|
306
|
+
border-inline-end: 1px solid var(--sprout-line);
|
|
307
|
+
color: var(--sprout-muted);
|
|
308
|
+
}
|
|
309
|
+
.sprout-file-explorer-tab[data-active] {
|
|
310
|
+
background: var(--sprout-surface);
|
|
311
|
+
color: var(--sprout-text);
|
|
312
|
+
}
|
|
313
|
+
.sprout-file-explorer-tab[data-active]::after {
|
|
314
|
+
position: absolute;
|
|
315
|
+
inset: auto 0 -1px;
|
|
316
|
+
height: 1px;
|
|
317
|
+
background: var(--sprout-surface);
|
|
318
|
+
content: "";
|
|
319
|
+
}
|
|
320
|
+
.sprout-file-explorer-tab[data-active]::before {
|
|
321
|
+
position: absolute;
|
|
322
|
+
inset: 0 0 auto;
|
|
323
|
+
height: 2px;
|
|
324
|
+
background: var(--sprout-primary);
|
|
325
|
+
content: "";
|
|
326
|
+
}
|
|
327
|
+
.sprout-file-explorer-tab-open {
|
|
328
|
+
display: flex;
|
|
329
|
+
align-items: center;
|
|
330
|
+
gap: 6px;
|
|
331
|
+
height: 36px;
|
|
332
|
+
padding: 0 4px 0 12px;
|
|
333
|
+
border: 0;
|
|
334
|
+
background: transparent;
|
|
335
|
+
color: inherit;
|
|
336
|
+
font: inherit;
|
|
337
|
+
white-space: nowrap;
|
|
338
|
+
cursor: pointer;
|
|
339
|
+
}
|
|
340
|
+
.sprout-file-explorer-tab-close {
|
|
341
|
+
display: inline-grid;
|
|
342
|
+
place-items: center;
|
|
343
|
+
width: 20px;
|
|
344
|
+
height: 20px;
|
|
345
|
+
margin-inline-end: 6px;
|
|
346
|
+
padding: 0;
|
|
347
|
+
border: 0;
|
|
348
|
+
border-radius: 4px;
|
|
349
|
+
background: transparent;
|
|
350
|
+
color: var(--sprout-muted);
|
|
351
|
+
cursor: pointer;
|
|
352
|
+
opacity: 0;
|
|
353
|
+
}
|
|
354
|
+
.sprout-file-explorer-tab:is([data-active], :hover, :focus-within)
|
|
355
|
+
.sprout-file-explorer-tab-close {
|
|
356
|
+
opacity: 1;
|
|
357
|
+
}
|
|
358
|
+
.sprout-file-explorer-tab-close:hover {
|
|
359
|
+
background: var(--sprout-hover);
|
|
360
|
+
color: var(--sprout-text);
|
|
361
|
+
}
|
|
362
|
+
.sprout-file-explorer-tab-open:focus-visible,
|
|
363
|
+
.sprout-file-explorer-tab-close:focus-visible,
|
|
364
|
+
.sprout-file-explorer-icon-button:focus-visible {
|
|
365
|
+
outline: 2px solid var(--sprout-focus);
|
|
366
|
+
outline-offset: -2px;
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
.sprout-file-explorer-crumbs {
|
|
370
|
+
flex-shrink: 0;
|
|
371
|
+
padding: 6px 16px;
|
|
372
|
+
color: var(--sprout-muted);
|
|
373
|
+
font-size: var(--sprout-text-xs);
|
|
374
|
+
line-height: 1rem;
|
|
375
|
+
}
|
|
376
|
+
.sprout-file-explorer-crumbs ol {
|
|
377
|
+
display: flex;
|
|
378
|
+
flex-wrap: wrap;
|
|
379
|
+
align-items: center;
|
|
380
|
+
gap: 2px 0;
|
|
381
|
+
margin: 0;
|
|
382
|
+
padding: 0;
|
|
383
|
+
list-style: none;
|
|
384
|
+
}
|
|
385
|
+
.sprout-file-explorer-crumbs li {
|
|
386
|
+
display: inline-flex;
|
|
387
|
+
align-items: center;
|
|
388
|
+
}
|
|
389
|
+
.sprout-file-explorer-crumbs li[aria-current="page"] {
|
|
390
|
+
color: var(--sprout-text);
|
|
391
|
+
}
|
|
392
|
+
.sprout-file-explorer-crumb-separator {
|
|
393
|
+
margin: 0 4px;
|
|
394
|
+
opacity: 0.6;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
.sprout-file-explorer-body {
|
|
398
|
+
display: flex;
|
|
399
|
+
flex: 1;
|
|
400
|
+
flex-direction: column;
|
|
401
|
+
min-height: 0;
|
|
402
|
+
}
|
|
403
|
+
.sprout-file-explorer-code {
|
|
404
|
+
flex: 1;
|
|
405
|
+
min-height: 0;
|
|
406
|
+
overflow: auto;
|
|
407
|
+
padding-bottom: 16px;
|
|
408
|
+
scrollbar-width: thin;
|
|
409
|
+
scrollbar-color: var(--sprout-input) transparent;
|
|
410
|
+
}
|
|
411
|
+
.sprout-file-explorer-code:focus-visible {
|
|
412
|
+
outline: 2px solid var(--sprout-focus);
|
|
413
|
+
outline-offset: -2px;
|
|
414
|
+
}
|
|
415
|
+
.sprout-file-explorer-pre {
|
|
416
|
+
width: max-content;
|
|
417
|
+
min-width: 100%;
|
|
418
|
+
margin: 0;
|
|
419
|
+
font-family: var(--sprout-file-explorer-mono);
|
|
420
|
+
font-size: 13px;
|
|
421
|
+
line-height: 1.25rem;
|
|
422
|
+
tab-size: 2;
|
|
423
|
+
}
|
|
424
|
+
.sprout-file-explorer-pre code {
|
|
425
|
+
display: block;
|
|
426
|
+
font: inherit;
|
|
427
|
+
}
|
|
428
|
+
.sprout-file-explorer-line {
|
|
429
|
+
display: flex;
|
|
430
|
+
}
|
|
431
|
+
.sprout-file-explorer-line[data-current] {
|
|
432
|
+
background: color-mix(in oklab, var(--sprout-warning) 10%, transparent);
|
|
433
|
+
box-shadow: inset 2px 0 var(--sprout-warning);
|
|
434
|
+
}
|
|
435
|
+
.sprout-file-explorer-line-number {
|
|
436
|
+
position: sticky;
|
|
437
|
+
left: 0;
|
|
438
|
+
flex-shrink: 0;
|
|
439
|
+
box-sizing: border-box;
|
|
440
|
+
width: 4.5ch;
|
|
441
|
+
margin-inline-end: 16px;
|
|
442
|
+
padding-inline-end: 8px;
|
|
443
|
+
background: var(--sprout-surface);
|
|
444
|
+
color: color-mix(in oklab, var(--sprout-muted) 70%, transparent);
|
|
445
|
+
text-align: end;
|
|
446
|
+
user-select: none;
|
|
447
|
+
}
|
|
448
|
+
.sprout-file-explorer-line[data-current] .sprout-file-explorer-line-number {
|
|
449
|
+
background: color-mix(
|
|
450
|
+
in oklab,
|
|
451
|
+
var(--sprout-warning) 10%,
|
|
452
|
+
var(--sprout-surface)
|
|
453
|
+
);
|
|
454
|
+
color: var(--sprout-text);
|
|
455
|
+
}
|
|
456
|
+
.sprout-file-explorer-line-text {
|
|
457
|
+
padding-inline-end: 24px;
|
|
458
|
+
white-space: pre;
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
.sprout-file-explorer-status {
|
|
462
|
+
display: flex;
|
|
463
|
+
flex-shrink: 0;
|
|
464
|
+
flex-wrap: wrap;
|
|
465
|
+
align-items: center;
|
|
466
|
+
gap: 4px 16px;
|
|
467
|
+
min-height: 28px;
|
|
468
|
+
padding: 0 16px;
|
|
469
|
+
border-top: 1px solid var(--sprout-line);
|
|
470
|
+
color: var(--sprout-muted);
|
|
471
|
+
font-size: var(--sprout-text-xs);
|
|
472
|
+
font-variant-numeric: tabular-nums;
|
|
473
|
+
}
|
|
474
|
+
.sprout-file-explorer-status-end {
|
|
475
|
+
margin-inline-start: auto;
|
|
476
|
+
}
|
|
477
|
+
.sprout-file-explorer-editor > .sprout-state-panel,
|
|
478
|
+
.sprout-file-explorer-body > .sprout-state-panel {
|
|
479
|
+
margin: auto;
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
@media (max-width: 40rem) {
|
|
483
|
+
.sprout-file-explorer {
|
|
484
|
+
grid-template-columns: minmax(0, 1fr);
|
|
485
|
+
grid-template-rows: minmax(0, 2fr) minmax(0, 3fr);
|
|
486
|
+
}
|
|
487
|
+
.sprout-file-explorer-sidebar {
|
|
488
|
+
border-inline-end: 0;
|
|
489
|
+
border-bottom: 1px solid var(--sprout-line);
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
@media (pointer: coarse) {
|
|
494
|
+
.sprout-file-explorer {
|
|
495
|
+
--sprout-file-explorer-row: 40px;
|
|
496
|
+
}
|
|
497
|
+
.sprout-file-explorer-tab-close {
|
|
498
|
+
width: 32px;
|
|
499
|
+
height: 32px;
|
|
500
|
+
opacity: 1;
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
505
|
+
.sprout-file-explorer-chevron {
|
|
506
|
+
transition: transform var(--sprout-motion-fast) var(--sprout-motion-ease);
|
|
507
|
+
}
|
|
508
|
+
.sprout-file-explorer-line[data-current] {
|
|
509
|
+
animation: sprout-file-explorer-flash 900ms var(--sprout-motion-ease);
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
@keyframes sprout-file-explorer-flash {
|
|
513
|
+
from {
|
|
514
|
+
background: color-mix(in oklab, var(--sprout-warning) 32%, transparent);
|
|
515
|
+
}
|
|
516
|
+
}
|
|
517
|
+
}
|