@tulipfarm/sprout 0.0.0-stage → 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/LICENSE +21 -0
- package/README.md +183 -2
- package/dist/components/accordion.d.ts +28 -0
- package/dist/components/accordion.js +26 -0
- package/dist/components/alert-dialog.d.ts +60 -0
- package/dist/components/alert-dialog.js +69 -0
- package/dist/components/alert.d.ts +30 -0
- package/dist/components/alert.js +35 -0
- package/dist/components/aspect-ratio.d.ts +7 -0
- package/dist/components/aspect-ratio.js +6 -0
- package/dist/components/attachment.d.ts +118 -0
- package/dist/components/attachment.js +285 -0
- package/dist/components/avatar.d.ts +32 -0
- package/dist/components/avatar.js +73 -0
- package/dist/components/badge.d.ts +21 -0
- package/dist/components/badge.js +27 -0
- package/dist/components/brand-icon.d.ts +28 -0
- package/dist/components/brand-icon.js +82 -0
- package/dist/components/breadcrumb.d.ts +29 -0
- package/dist/components/breadcrumb.js +44 -0
- package/dist/components/button-group.d.ts +28 -0
- package/dist/components/button-group.js +36 -0
- package/dist/components/button.d.ts +79 -0
- package/dist/components/button.js +93 -0
- package/dist/components/calendar.d.ts +27 -0
- package/dist/components/calendar.js +107 -0
- package/dist/components/canvas.d.ts +78 -0
- package/dist/components/canvas.js +180 -0
- package/dist/components/card.d.ts +43 -0
- package/dist/components/card.js +42 -0
- package/dist/components/carousel.d.ts +57 -0
- package/dist/components/carousel.js +422 -0
- package/dist/components/chart.d.ts +112 -0
- package/dist/components/chart.js +172 -0
- package/dist/components/chat-confirmation.d.ts +42 -0
- package/dist/components/chat-confirmation.js +62 -0
- package/dist/components/chat-input.d.ts +94 -0
- package/dist/components/chat-input.js +279 -0
- package/dist/components/chat-plan.d.ts +21 -0
- package/dist/components/chat-plan.js +35 -0
- package/dist/components/chat-sources.d.ts +64 -0
- package/dist/components/chat-sources.js +66 -0
- package/dist/components/checkbox.d.ts +16 -0
- package/dist/components/checkbox.js +17 -0
- package/dist/components/choice-list.d.ts +53 -0
- package/dist/components/choice-list.js +36 -0
- package/dist/components/code-block.d.ts +35 -0
- package/dist/components/code-block.js +64 -0
- package/dist/components/collapsible.d.ts +24 -0
- package/dist/components/collapsible.js +27 -0
- package/dist/components/combobox.d.ts +95 -0
- package/dist/components/combobox.js +106 -0
- package/dist/components/command.d.ts +94 -0
- package/dist/components/command.js +414 -0
- package/dist/components/context-menu.d.ts +57 -0
- package/dist/components/context-menu.js +60 -0
- package/dist/components/dialog.d.ts +60 -0
- package/dist/components/dialog.js +79 -0
- package/dist/components/direction.d.ts +6 -0
- package/dist/components/direction.js +6 -0
- package/dist/components/dropdown-menu.d.ts +62 -0
- package/dist/components/dropdown-menu.js +59 -0
- package/dist/components/field.d.ts +117 -0
- package/dist/components/field.js +150 -0
- package/dist/components/file-explorer.d.ts +27 -0
- package/dist/components/file-explorer.js +300 -0
- package/dist/components/file-viewer.d.ts +137 -0
- package/dist/components/file-viewer.js +400 -0
- package/dist/components/form.d.ts +87 -0
- package/dist/components/form.js +55 -0
- package/dist/components/glass-banner.d.ts +27 -0
- package/dist/components/glass-banner.js +116 -0
- package/dist/components/gradient-banner.d.ts +37 -0
- package/dist/components/gradient-banner.js +43 -0
- package/dist/components/hover-card.d.ts +27 -0
- package/dist/components/hover-card.js +26 -0
- package/dist/components/input-group.d.ts +68 -0
- package/dist/components/input-group.js +88 -0
- package/dist/components/input-otp.d.ts +38 -0
- package/dist/components/input-otp.js +43 -0
- package/dist/components/input.d.ts +16 -0
- package/dist/components/input.js +18 -0
- package/dist/components/kbd.d.ts +12 -0
- package/dist/components/kbd.js +11 -0
- package/dist/components/label.d.ts +8 -0
- package/dist/components/label.js +10 -0
- package/dist/components/mention-list.d.ts +54 -0
- package/dist/components/mention-list.js +31 -0
- package/dist/components/menubar.d.ts +64 -0
- package/dist/components/menubar.js +68 -0
- package/dist/components/message-actions.d.ts +34 -0
- package/dist/components/message-actions.js +68 -0
- package/dist/components/message-response.d.ts +20 -0
- package/dist/components/message-response.js +46 -0
- package/dist/components/message-scroller.d.ts +71 -0
- package/dist/components/message-scroller.js +217 -0
- package/dist/components/message.d.ts +49 -0
- package/dist/components/message.js +59 -0
- package/dist/components/navigation-menu.d.ts +45 -0
- package/dist/components/navigation-menu.js +54 -0
- package/dist/components/notice-banner.d.ts +14 -0
- package/dist/components/notice-banner.js +11 -0
- package/dist/components/page-content.d.ts +7 -0
- package/dist/components/page-content.js +9 -0
- package/dist/components/page-header.d.ts +37 -0
- package/dist/components/page-header.js +53 -0
- package/dist/components/pagination.d.ts +29 -0
- package/dist/components/pagination.js +29 -0
- package/dist/components/plan-outline.d.ts +60 -0
- package/dist/components/plan-outline.js +108 -0
- package/dist/components/popover.d.ts +34 -0
- package/dist/components/popover.js +35 -0
- package/dist/components/progress.d.ts +27 -0
- package/dist/components/progress.js +35 -0
- package/dist/components/prompt-list.d.ts +23 -0
- package/dist/components/prompt-list.js +11 -0
- package/dist/components/questionnaire.d.ts +148 -0
- package/dist/components/questionnaire.js +1002 -0
- package/dist/components/radio-group.d.ts +16 -0
- package/dist/components/radio-group.js +21 -0
- package/dist/components/reasoning-effort.d.ts +24 -0
- package/dist/components/reasoning-effort.js +269 -0
- package/dist/components/resizable.d.ts +67 -0
- package/dist/components/resizable.js +536 -0
- package/dist/components/result-card.d.ts +58 -0
- package/dist/components/result-card.js +88 -0
- package/dist/components/review-card.d.ts +62 -0
- package/dist/components/review-card.js +49 -0
- package/dist/components/rich-text-editor.d.ts +51 -0
- package/dist/components/rich-text-editor.js +248 -0
- package/dist/components/schema-diagram.d.ts +52 -0
- package/dist/components/schema-diagram.js +226 -0
- package/dist/components/scroll-area.d.ts +22 -0
- package/dist/components/scroll-area.js +19 -0
- package/dist/components/search-dialog.d.ts +103 -0
- package/dist/components/search-dialog.js +65 -0
- package/dist/components/search-field.d.ts +17 -0
- package/dist/components/search-field.js +27 -0
- package/dist/components/select.d.ts +57 -0
- package/dist/components/select.js +57 -0
- package/dist/components/selection-slot.d.ts +18 -0
- package/dist/components/selection-slot.js +53 -0
- package/dist/components/separator.d.ts +48 -0
- package/dist/components/separator.js +54 -0
- package/dist/components/settings-list.d.ts +26 -0
- package/dist/components/settings-list.js +17 -0
- package/dist/components/sheet.d.ts +70 -0
- package/dist/components/sheet.js +77 -0
- package/dist/components/sidebar.d.ts +70 -0
- package/dist/components/sidebar.js +187 -0
- package/dist/components/skeleton.d.ts +31 -0
- package/dist/components/skeleton.js +32 -0
- package/dist/components/slider.d.ts +17 -0
- package/dist/components/slider.js +24 -0
- package/dist/components/spinner.d.ts +37 -0
- package/dist/components/spinner.js +43 -0
- package/dist/components/state-panel-samples.d.ts +25 -0
- package/dist/components/state-panel-samples.js +423 -0
- package/dist/components/state-panel.d.ts +35 -0
- package/dist/components/state-panel.js +29 -0
- package/dist/components/state-sample.d.ts +63 -0
- package/dist/components/state-sample.js +42 -0
- package/dist/components/switch.d.ts +12 -0
- package/dist/components/switch.js +14 -0
- package/dist/components/table-nuqs.d.ts +16 -0
- package/dist/components/table-nuqs.js +59 -0
- package/dist/components/table.d.ts +120 -0
- package/dist/components/table.js +663 -0
- package/dist/components/tabs.d.ts +37 -0
- package/dist/components/tabs.js +36 -0
- package/dist/components/textarea.d.ts +18 -0
- package/dist/components/textarea.js +19 -0
- package/dist/components/toast.d.ts +45 -0
- package/dist/components/toast.js +83 -0
- package/dist/components/toggle-group.d.ts +30 -0
- package/dist/components/toggle-group.js +39 -0
- package/dist/components/toggle.d.ts +27 -0
- package/dist/components/toggle.js +21 -0
- package/dist/components/tool-activity.d.ts +79 -0
- package/dist/components/tool-activity.js +226 -0
- package/dist/components/toolbar-status.d.ts +21 -0
- package/dist/components/toolbar-status.js +14 -0
- package/dist/components/tooltip.d.ts +31 -0
- package/dist/components/tooltip.js +99 -0
- package/dist/components/typed-text.d.ts +17 -0
- package/dist/components/typed-text.js +56 -0
- package/dist/index.d.ts +90 -0
- package/dist/index.js +90 -0
- package/dist/internal/brand-glyphs.d.ts +370 -0
- package/dist/internal/brand-glyphs.js +262 -0
- package/dist/internal/classes.d.ts +3 -0
- package/dist/internal/classes.js +20 -0
- package/dist/internal/code-tokens.d.ts +4 -0
- package/dist/internal/code-tokens.js +34 -0
- package/dist/internal/fieldset.d.ts +6 -0
- package/dist/internal/fieldset.js +38 -0
- package/dist/internal/file-kind.d.ts +4 -0
- package/dist/internal/file-kind.js +62 -0
- package/dist/internal/languages.d.ts +7 -0
- package/dist/internal/languages.js +1010 -0
- package/dist/internal/message-scroller.d.ts +102 -0
- package/dist/internal/message-scroller.js +637 -0
- package/dist/internal/pressable.d.ts +2 -0
- package/dist/internal/pressable.js +29 -0
- package/dist/internal/syntax.d.ts +14 -0
- package/dist/internal/syntax.js +137 -0
- package/dist/styles/accordion.css +102 -0
- package/dist/styles/alert-dialog.css +198 -0
- package/dist/styles/alert.css +149 -0
- package/dist/styles/aspect-ratio.css +8 -0
- package/dist/styles/attachment.css +700 -0
- package/dist/styles/avatar.css +186 -0
- package/dist/styles/badge.css +178 -0
- package/dist/styles/brand-icon.css +104 -0
- package/dist/styles/breadcrumb.css +121 -0
- package/dist/styles/button-group.css +113 -0
- package/dist/styles/button.css +380 -0
- package/dist/styles/calendar.css +295 -0
- package/dist/styles/canvas.css +313 -0
- package/dist/styles/card.css +146 -0
- package/dist/styles/carousel.css +107 -0
- package/dist/styles/chart.css +227 -0
- package/dist/styles/chat-confirmation.css +29 -0
- package/dist/styles/chat-input.css +240 -0
- package/dist/styles/chat-plan.css +109 -0
- package/dist/styles/chat-sources.css +191 -0
- package/dist/styles/checkbox.css +122 -0
- package/dist/styles/choice-list.css +343 -0
- package/dist/styles/code-block.css +211 -0
- package/dist/styles/collapsible.css +72 -0
- package/dist/styles/combobox.css +347 -0
- package/dist/styles/command.css +233 -0
- package/dist/styles/context-menu.css +151 -0
- package/dist/styles/dialog.css +237 -0
- package/dist/styles/dropdown-menu.css +150 -0
- package/dist/styles/field.css +340 -0
- package/dist/styles/file-explorer.css +517 -0
- package/dist/styles/file-viewer.css +375 -0
- package/dist/styles/form.css +155 -0
- package/dist/styles/glass-banner.css +308 -0
- package/dist/styles/gradient-banner.css +256 -0
- package/dist/styles/hover-card.css +95 -0
- package/dist/styles/index.css +268 -0
- package/dist/styles/input-group.css +285 -0
- package/dist/styles/input-otp.css +138 -0
- package/dist/styles/input.css +98 -0
- package/dist/styles/kbd.css +59 -0
- package/dist/styles/label.css +89 -0
- package/dist/styles/mention-list.css +166 -0
- package/dist/styles/menubar.css +226 -0
- package/dist/styles/message-actions.css +83 -0
- package/dist/styles/message-response.css +176 -0
- package/dist/styles/message-scroller.css +136 -0
- package/dist/styles/message.css +310 -0
- package/dist/styles/navigation-menu.css +291 -0
- package/dist/styles/notice-banner.css +68 -0
- package/dist/styles/page-content.css +21 -0
- package/dist/styles/page-header.css +156 -0
- package/dist/styles/pagination.css +72 -0
- package/dist/styles/plan-outline.css +393 -0
- package/dist/styles/popover.css +140 -0
- package/dist/styles/progress.css +93 -0
- package/dist/styles/prompt-list.css +165 -0
- package/dist/styles/questionnaire.css +308 -0
- package/dist/styles/radio-group.css +119 -0
- package/dist/styles/reasoning-effort.css +157 -0
- package/dist/styles/resizable.css +108 -0
- package/dist/styles/result-card.css +215 -0
- package/dist/styles/review-card.css +235 -0
- package/dist/styles/rich-text-editor.css +169 -0
- package/dist/styles/schema-diagram.css +419 -0
- package/dist/styles/scroll-area.css +77 -0
- package/dist/styles/search-dialog.css +280 -0
- package/dist/styles/search-field.css +17 -0
- package/dist/styles/select.css +285 -0
- package/dist/styles/selection-slot.css +31 -0
- package/dist/styles/separator.css +206 -0
- package/dist/styles/settings-list.css +81 -0
- package/dist/styles/sheet.css +361 -0
- package/dist/styles/sidebar.css +363 -0
- package/dist/styles/skeleton.css +80 -0
- package/dist/styles/slider.css +142 -0
- package/dist/styles/spinner.css +39 -0
- package/dist/styles/state-panel-samples.css +41 -0
- package/dist/styles/state-panel.css +173 -0
- package/dist/styles/state-sample.css +285 -0
- package/dist/styles/switch.css +128 -0
- package/dist/styles/table.css +604 -0
- package/dist/styles/tabs.css +223 -0
- package/dist/styles/textarea.css +77 -0
- package/dist/styles/themes/chatgpt.css +125 -0
- package/dist/styles/themes/claude.css +125 -0
- package/dist/styles/themes/cloudflare.css +125 -0
- package/dist/styles/themes/discord.css +125 -0
- package/dist/styles/themes/github.css +125 -0
- package/dist/styles/themes/grok.css +125 -0
- package/dist/styles/themes/linear.css +126 -0
- package/dist/styles/themes/neutral.css +125 -0
- package/dist/styles/themes/notion.css +125 -0
- package/dist/styles/themes/perplexity.css +125 -0
- package/dist/styles/themes/raycast.css +125 -0
- package/dist/styles/themes/spotify.css +125 -0
- package/dist/styles/themes/stripe.css +125 -0
- package/dist/styles/themes/supabase.css +125 -0
- package/dist/styles/themes/tulipfarm.css +115 -0
- package/dist/styles/themes/vercel.css +126 -0
- package/dist/styles/toast.css +197 -0
- package/dist/styles/toggle-group.css +161 -0
- package/dist/styles/toggle.css +119 -0
- package/dist/styles/tool-activity.css +396 -0
- package/dist/styles/toolbar-status.css +52 -0
- package/dist/styles/tooltip.css +122 -0
- package/dist/styles/typed-text.css +17 -0
- package/package.json +452 -4
|
@@ -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
|
+
}
|