@tulipfarm/sprout 0.3.0 → 0.4.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/README.md +45 -40
- package/dist/components/accordion.d.ts +2 -2
- package/dist/components/accordion.js +9 -9
- package/dist/components/agent-fanout.d.ts +2 -2
- package/dist/components/agent-fanout.js +65 -87
- package/dist/components/alert-dialog.d.ts +6 -6
- package/dist/components/alert-dialog.js +20 -20
- package/dist/components/alert.d.ts +6 -6
- package/dist/components/alert.js +13 -13
- package/dist/components/aspect-ratio.d.ts +2 -2
- package/dist/components/aspect-ratio.js +2 -2
- package/dist/components/attachment.d.ts +17 -17
- package/dist/components/attachment.js +82 -115
- package/dist/components/avatar.d.ts +10 -10
- package/dist/components/avatar.js +14 -14
- package/dist/components/badge.d.ts +4 -4
- package/dist/components/badge.js +18 -18
- package/dist/components/board.d.ts +107 -0
- package/dist/components/board.js +640 -0
- package/dist/components/brand-icon.d.ts +6 -6
- package/dist/components/brand-icon.js +55 -63
- package/dist/components/breadcrumb.d.ts +11 -11
- package/dist/components/breadcrumb.js +16 -18
- package/dist/components/button-group.d.ts +6 -6
- package/dist/components/button-group.js +14 -14
- package/dist/components/button.d.ts +11 -11
- package/dist/components/button.js +46 -56
- package/dist/components/calendar.d.ts +5 -5
- package/dist/components/calendar.js +44 -53
- package/dist/components/canvas.d.ts +4 -4
- package/dist/components/canvas.js +39 -46
- package/dist/components/card.d.ts +6 -6
- package/dist/components/card.js +17 -17
- package/dist/components/carousel.d.ts +7 -7
- package/dist/components/carousel.js +57 -75
- package/dist/components/chart.d.ts +5 -112
- package/dist/components/chart.js +5 -172
- package/dist/components/chat-confirmation.d.ts +13 -11
- package/dist/components/chat-confirmation.js +32 -38
- package/dist/components/chat-input.d.ts +4 -4
- package/dist/components/chat-input.js +74 -81
- package/dist/components/chat-plan.d.ts +2 -2
- package/dist/components/chat-plan.js +15 -20
- package/dist/components/chat-sources.d.ts +8 -8
- package/dist/components/chat-sources.js +18 -27
- package/dist/components/checkbox.d.ts +1 -1
- package/dist/components/checkbox.js +9 -9
- package/dist/components/choice-list.d.ts +2 -2
- package/dist/components/choice-list.js +16 -18
- package/dist/components/code-block.d.ts +5 -5
- package/dist/components/code-block.js +26 -26
- package/dist/components/collapsible.d.ts +1 -1
- package/dist/components/collapsible.js +7 -11
- package/dist/components/combobox.d.ts +3 -3
- package/dist/components/combobox.js +24 -24
- package/dist/components/command.d.ts +13 -13
- package/dist/components/command.js +61 -73
- package/dist/components/context-menu.d.ts +5 -5
- package/dist/components/context-menu.js +22 -22
- package/dist/components/dialog.d.ts +6 -6
- package/dist/components/dialog.js +23 -28
- package/dist/components/direction.d.ts +1 -1
- package/dist/components/direction.js +1 -1
- package/dist/components/dropdown-menu.d.ts +5 -5
- package/dist/components/dropdown-menu.js +20 -20
- package/dist/components/field.d.ts +11 -11
- package/dist/components/field.js +41 -61
- package/dist/components/file-explorer.d.ts +2 -2
- package/dist/components/file-explorer.js +89 -105
- package/dist/components/file-viewer.d.ts +10 -10
- package/dist/components/file-viewer.js +112 -140
- package/dist/components/form.d.ts +7 -7
- package/dist/components/form.js +24 -28
- package/dist/components/glass-banner.d.ts +3 -3
- package/dist/components/glass-banner.js +21 -24
- package/dist/components/gradient-banner.d.ts +5 -5
- package/dist/components/gradient-banner.js +13 -22
- package/dist/components/hover-card.d.ts +4 -4
- package/dist/components/hover-card.js +6 -6
- package/dist/components/input-group.d.ts +11 -11
- package/dist/components/input-group.js +22 -36
- package/dist/components/input-otp.d.ts +10 -10
- package/dist/components/input-otp.js +13 -15
- package/dist/components/input.d.ts +1 -1
- package/dist/components/input.js +7 -7
- package/dist/components/kbd.d.ts +3 -3
- package/dist/components/kbd.js +5 -5
- package/dist/components/label.d.ts +2 -2
- package/dist/components/label.js +2 -2
- package/dist/components/mention-list.d.ts +3 -3
- package/dist/components/mention-list.js +10 -10
- package/dist/components/menubar.d.ts +6 -6
- package/dist/components/menubar.js +22 -22
- package/dist/components/message-actions.d.ts +2 -2
- package/dist/components/message-actions.js +29 -31
- package/dist/components/message-response.d.ts +3 -3
- package/dist/components/message-response.js +18 -18
- package/dist/components/message-scroller.d.ts +12 -12
- package/dist/components/message-scroller.js +44 -56
- package/dist/components/message.d.ts +11 -11
- package/dist/components/message.js +25 -25
- package/dist/components/navigation-menu.d.ts +2 -2
- package/dist/components/navigation-menu.js +15 -15
- package/dist/components/notice-banner.d.ts +2 -2
- package/dist/components/notice-banner.js +2 -2
- package/dist/components/page-content.d.ts +2 -2
- package/dist/components/page-content.js +2 -2
- package/dist/components/page-header.d.ts +1 -1
- package/dist/components/page-header.js +16 -16
- package/dist/components/pagination.d.ts +9 -9
- package/dist/components/pagination.js +17 -17
- package/dist/components/plan-outline.d.ts +2 -2
- package/dist/components/plan-outline.js +43 -60
- package/dist/components/popover.d.ts +6 -6
- package/dist/components/popover.js +15 -15
- package/dist/components/presence-cursor.d.ts +2 -2
- package/dist/components/presence-cursor.js +3 -3
- package/dist/components/progress.d.ts +1 -1
- package/dist/components/progress.js +8 -8
- package/dist/components/prompt-list.d.ts +3 -3
- package/dist/components/prompt-list.js +6 -6
- package/dist/components/questionnaire.d.ts +19 -19
- package/dist/components/questionnaire.js +183 -242
- package/dist/components/radio-group.d.ts +2 -2
- package/dist/components/radio-group.js +6 -6
- package/dist/components/reasoning-effort.d.ts +3 -3
- package/dist/components/reasoning-effort.js +9 -12
- package/dist/components/record-list.d.ts +66 -0
- package/dist/components/record-list.js +151 -0
- package/dist/components/resizable.d.ts +5 -5
- package/dist/components/resizable.js +76 -102
- package/dist/components/result-card.d.ts +10 -5
- package/dist/components/result-card.js +42 -53
- package/dist/components/result-notice.d.ts +18 -0
- package/dist/components/result-notice.js +29 -0
- package/dist/components/review-card.d.ts +6 -6
- package/dist/components/review-card.js +18 -18
- package/dist/components/rich-text-editor.d.ts +2 -2
- package/dist/components/rich-text-editor.js +56 -72
- package/dist/components/schema-diagram.d.ts +3 -3
- package/dist/components/schema-diagram.js +39 -53
- package/dist/components/scroll-area.d.ts +1 -1
- package/dist/components/scroll-area.js +10 -14
- package/dist/components/search-dialog.d.ts +6 -6
- package/dist/components/search-dialog.js +16 -16
- package/dist/components/search-field.d.ts +1 -1
- package/dist/components/search-field.js +11 -11
- package/dist/components/select.d.ts +3 -3
- package/dist/components/select.js +20 -20
- package/dist/components/selection-slot.d.ts +2 -2
- package/dist/components/selection-slot.js +6 -9
- package/dist/components/separator.d.ts +15 -15
- package/dist/components/separator.js +22 -27
- package/dist/components/settings-list.d.ts +3 -3
- package/dist/components/settings-list.js +5 -5
- package/dist/components/sheet.d.ts +6 -6
- package/dist/components/sheet.js +27 -27
- package/dist/components/sidebar.d.ts +22 -22
- package/dist/components/sidebar.js +57 -58
- package/dist/components/skeleton.d.ts +5 -5
- package/dist/components/skeleton.js +14 -21
- package/dist/components/slider.d.ts +2 -2
- package/dist/components/slider.js +6 -6
- package/dist/components/spinner.d.ts +5 -5
- package/dist/components/spinner.js +22 -26
- package/dist/components/sql-viewer.d.ts +14 -14
- package/dist/components/sql-viewer.js +99 -128
- package/dist/components/state-panel-samples.d.ts +2 -2
- package/dist/components/state-panel-samples.js +209 -245
- package/dist/components/state-panel.d.ts +2 -35
- package/dist/components/state-panel.js +2 -29
- package/dist/components/state-sample.d.ts +7 -7
- package/dist/components/state-sample.js +18 -31
- package/dist/components/switch.d.ts +1 -1
- package/dist/components/switch.js +7 -7
- package/dist/components/table-nuqs.d.ts +2 -2
- package/dist/components/table-nuqs.js +11 -12
- package/dist/components/table.d.ts +4 -4
- package/dist/components/table.js +166 -235
- package/dist/components/tabs.d.ts +2 -2
- package/dist/components/tabs.js +12 -12
- package/dist/components/textarea.d.ts +2 -2
- package/dist/components/textarea.js +6 -8
- package/dist/components/timeline.d.ts +3 -0
- package/dist/components/timeline.js +3 -0
- package/dist/components/toast.d.ts +2 -2
- package/dist/components/toast.js +19 -25
- package/dist/components/toggle-group.d.ts +2 -2
- package/dist/components/toggle-group.js +18 -20
- package/dist/components/toggle.d.ts +2 -2
- package/dist/components/toggle.js +8 -8
- package/dist/components/tool-activity.d.ts +1 -1
- package/dist/components/tool-activity.js +83 -110
- package/dist/components/toolbar-status.d.ts +2 -2
- package/dist/components/toolbar-status.js +7 -7
- package/dist/components/tooltip.d.ts +5 -5
- package/dist/components/tooltip.js +12 -11
- package/dist/components/typed-text.d.ts +2 -2
- package/dist/components/typed-text.js +10 -12
- package/dist/components/view-switcher.d.ts +51 -0
- package/dist/components/view-switcher.js +114 -0
- package/dist/index.d.ts +98 -93
- package/dist/index.js +98 -93
- package/dist/internal/chart-kit.d.ts +142 -0
- package/dist/internal/chart-kit.js +200 -0
- package/dist/internal/charts/bars.d.ts +61 -0
- package/dist/internal/charts/bars.js +86 -0
- package/dist/internal/charts/lines.d.ts +67 -0
- package/dist/internal/charts/lines.js +70 -0
- package/dist/internal/charts/more.d.ts +77 -0
- package/dist/internal/charts/more.js +68 -0
- package/dist/internal/charts/parts.d.ts +54 -0
- package/dist/internal/charts/parts.js +82 -0
- package/dist/internal/charts/timeline-dates.d.ts +38 -0
- package/dist/internal/charts/timeline-dates.js +113 -0
- package/dist/internal/charts/timeline-window.d.ts +31 -0
- package/dist/internal/charts/timeline-window.js +26 -0
- package/dist/internal/charts/timeline.d.ts +72 -0
- package/dist/internal/charts/timeline.js +287 -0
- package/dist/internal/classes.d.ts +1 -1
- package/dist/internal/classes.js +7 -9
- package/dist/internal/code-tokens.d.ts +2 -2
- package/dist/internal/code-tokens.js +12 -12
- package/dist/internal/fieldset.d.ts +1 -1
- package/dist/internal/fieldset.js +6 -6
- package/dist/internal/file-kind.d.ts +1 -1
- package/dist/internal/file-kind.js +43 -51
- package/dist/internal/flow.d.ts +4 -4
- package/dist/internal/flow.js +20 -23
- package/dist/internal/languages.js +999 -999
- package/dist/internal/message-scroller.d.ts +3 -3
- package/dist/internal/message-scroller.js +64 -112
- package/dist/internal/pressable.d.ts +1 -1
- package/dist/internal/pressable.js +7 -7
- package/dist/internal/state-panel.d.ts +35 -0
- package/dist/internal/state-panel.js +22 -0
- package/dist/internal/syntax.d.ts +2 -2
- package/dist/internal/syntax.js +36 -47
- package/dist/styles/accordion.css +3 -5
- package/dist/styles/agent-fanout.css +64 -60
- package/dist/styles/alert-dialog.css +12 -26
- package/dist/styles/alert.css +10 -15
- package/dist/styles/attachment.css +51 -93
- package/dist/styles/avatar.css +17 -24
- package/dist/styles/badge.css +11 -36
- package/dist/styles/board.css +571 -0
- package/dist/styles/brand-icon.css +7 -8
- package/dist/styles/breadcrumb.css +4 -7
- package/dist/styles/button-group.css +8 -14
- package/dist/styles/button.css +22 -27
- package/dist/styles/calendar.css +24 -36
- package/dist/styles/canvas.css +2 -3
- package/dist/styles/card.css +7 -23
- package/dist/styles/carousel.css +11 -12
- package/dist/styles/chart.css +215 -31
- package/dist/styles/chat-input.css +15 -39
- package/dist/styles/chat-plan.css +3 -4
- package/dist/styles/chat-sources.css +3 -6
- package/dist/styles/checkbox.css +11 -25
- package/dist/styles/choice-list.css +17 -31
- package/dist/styles/code-block.css +11 -25
- package/dist/styles/collapsible.css +10 -15
- package/dist/styles/combobox.css +11 -15
- package/dist/styles/command.css +5 -8
- package/dist/styles/context-menu.css +2 -2
- package/dist/styles/dialog.css +5 -16
- package/dist/styles/dropdown-menu.css +2 -2
- package/dist/styles/field.css +15 -21
- package/dist/styles/file-explorer.css +19 -33
- package/dist/styles/file-viewer.css +13 -17
- package/dist/styles/form.css +3 -3
- package/dist/styles/glass-banner.css +12 -47
- package/dist/styles/gradient-banner.css +17 -35
- package/dist/styles/hover-card.css +9 -15
- package/dist/styles/index.css +116 -108
- package/dist/styles/input-group.css +25 -41
- package/dist/styles/input-otp.css +5 -6
- package/dist/styles/input.css +5 -5
- package/dist/styles/kbd.css +1 -1
- package/dist/styles/label.css +9 -30
- package/dist/styles/mention-list.css +6 -8
- package/dist/styles/menubar.css +5 -6
- package/dist/styles/message-actions.css +1 -1
- package/dist/styles/message-response.css +3 -5
- package/dist/styles/message-scroller.css +14 -21
- package/dist/styles/message.css +23 -60
- package/dist/styles/navigation-menu.css +14 -29
- package/dist/styles/notice-banner.css +1 -2
- package/dist/styles/page-header.css +7 -10
- package/dist/styles/pagination.css +1 -4
- package/dist/styles/plan-outline.css +20 -37
- package/dist/styles/popover.css +10 -19
- package/dist/styles/presence-cursor.css +1 -2
- package/dist/styles/progress.css +2 -4
- package/dist/styles/prompt-list.css +6 -17
- package/dist/styles/questionnaire.css +16 -40
- package/dist/styles/radio-group.css +12 -23
- package/dist/styles/reasoning-effort.css +8 -15
- package/dist/styles/record-list.css +243 -0
- package/dist/styles/resizable.css +10 -11
- package/dist/styles/result-card.css +17 -3
- package/dist/styles/result-notice.css +80 -0
- package/dist/styles/review-card.css +2 -3
- package/dist/styles/rich-text-editor.css +1 -2
- package/dist/styles/schema-diagram.css +12 -17
- package/dist/styles/scroll-area.css +8 -10
- package/dist/styles/search-dialog.css +1 -5
- package/dist/styles/search-field.css +1 -2
- package/dist/styles/select.css +7 -7
- package/dist/styles/selection-slot.css +1 -2
- package/dist/styles/separator.css +7 -8
- package/dist/styles/settings-list.css +1 -2
- package/dist/styles/sheet.css +40 -73
- package/dist/styles/sidebar.css +17 -21
- package/dist/styles/skeleton.css +9 -11
- package/dist/styles/slider.css +11 -21
- package/dist/styles/spinner.css +2 -2
- package/dist/styles/sql-viewer.css +29 -29
- package/dist/styles/state-panel.css +8 -9
- package/dist/styles/state-sample.css +20 -33
- package/dist/styles/switch.css +11 -18
- package/dist/styles/table.css +51 -77
- package/dist/styles/tabs.css +12 -16
- package/dist/styles/textarea.css +3 -3
- package/dist/styles/themes/chatgpt.css +11 -23
- package/dist/styles/themes/claude.css +12 -24
- package/dist/styles/themes/cloudflare.css +11 -23
- package/dist/styles/themes/discord.css +11 -23
- package/dist/styles/themes/github.css +11 -23
- package/dist/styles/themes/grok.css +11 -23
- package/dist/styles/themes/linear.css +12 -25
- package/dist/styles/themes/neutral.css +11 -23
- package/dist/styles/themes/notion.css +11 -23
- package/dist/styles/themes/perplexity.css +11 -23
- package/dist/styles/themes/raycast.css +11 -23
- package/dist/styles/themes/spotify.css +11 -23
- package/dist/styles/themes/stripe.css +11 -23
- package/dist/styles/themes/supabase.css +11 -23
- package/dist/styles/themes/tulipfarm.css +9 -10
- package/dist/styles/themes/vercel.css +12 -25
- package/dist/styles/timeline.css +276 -0
- package/dist/styles/toast.css +13 -20
- package/dist/styles/toggle-group.css +17 -23
- package/dist/styles/toggle.css +8 -8
- package/dist/styles/tool-activity.css +7 -13
- package/dist/styles/toolbar-status.css +2 -7
- package/dist/styles/tooltip.css +15 -21
- package/dist/styles/view-switcher.css +279 -0
- package/package.json +21 -1
|
@@ -10,25 +10,21 @@
|
|
|
10
10
|
font-family: var(--sprout-font);
|
|
11
11
|
font-size: var(--sprout-text-sm);
|
|
12
12
|
}
|
|
13
|
-
.sprout-code-block[data-variant=
|
|
13
|
+
.sprout-code-block[data-variant='inline'] {
|
|
14
14
|
border: 1px solid var(--sprout-line);
|
|
15
15
|
border-radius: var(--sprout-radius-panel);
|
|
16
|
-
background: color-mix(
|
|
17
|
-
in oklab,
|
|
18
|
-
var(--sprout-hover) 40%,
|
|
19
|
-
var(--sprout-surface)
|
|
20
|
-
);
|
|
16
|
+
background: color-mix(in oklab, var(--sprout-hover) 40%, var(--sprout-surface));
|
|
21
17
|
}
|
|
22
|
-
.sprout-code-block[data-variant=
|
|
18
|
+
.sprout-code-block[data-variant='file'] {
|
|
23
19
|
height: 100%;
|
|
24
20
|
min-height: 0;
|
|
25
21
|
}
|
|
26
|
-
.sprout-code-block[data-variant=
|
|
22
|
+
.sprout-code-block[data-variant='preview'] {
|
|
27
23
|
max-height: 100%;
|
|
28
24
|
font-size: var(--sprout-text-xs);
|
|
29
25
|
mask-image: linear-gradient(to bottom, #000 75%, transparent);
|
|
30
26
|
}
|
|
31
|
-
.sprout-code-block[data-variant=
|
|
27
|
+
.sprout-code-block[data-variant='preview'] .sprout-code-block-viewport {
|
|
32
28
|
overflow: hidden;
|
|
33
29
|
padding: 12px;
|
|
34
30
|
font-size: var(--sprout-text-xs);
|
|
@@ -72,10 +68,10 @@
|
|
|
72
68
|
font-size: var(--sprout-text-sm);
|
|
73
69
|
line-height: 1.25rem;
|
|
74
70
|
}
|
|
75
|
-
.sprout-code-block[data-variant=
|
|
71
|
+
.sprout-code-block[data-variant='inline'] .sprout-code-block-viewport {
|
|
76
72
|
max-height: 24rem;
|
|
77
73
|
}
|
|
78
|
-
.sprout-code-block[data-variant=
|
|
74
|
+
.sprout-code-block[data-variant='file'] .sprout-code-block-viewport {
|
|
79
75
|
flex: 1;
|
|
80
76
|
min-height: 0;
|
|
81
77
|
}
|
|
@@ -126,25 +122,16 @@
|
|
|
126
122
|
color: var(--sprout-syntax-constant, var(--sprout-warning));
|
|
127
123
|
}
|
|
128
124
|
.sprout-syntax-function {
|
|
129
|
-
color: var(
|
|
130
|
-
--sprout-syntax-function,
|
|
131
|
-
color-mix(in oklab, var(--sprout-info) 55%, var(--sprout-danger))
|
|
132
|
-
);
|
|
125
|
+
color: var(--sprout-syntax-function, color-mix(in oklab, var(--sprout-info) 55%, var(--sprout-danger)));
|
|
133
126
|
}
|
|
134
127
|
.sprout-syntax-parameter {
|
|
135
|
-
color: var(
|
|
136
|
-
--sprout-syntax-parameter,
|
|
137
|
-
color-mix(in oklab, var(--sprout-danger) 65%, var(--sprout-warning))
|
|
138
|
-
);
|
|
128
|
+
color: var(--sprout-syntax-parameter, color-mix(in oklab, var(--sprout-danger) 65%, var(--sprout-warning)));
|
|
139
129
|
}
|
|
140
130
|
.sprout-syntax-comment {
|
|
141
131
|
color: var(--sprout-syntax-comment, var(--sprout-muted));
|
|
142
132
|
}
|
|
143
133
|
.sprout-syntax-punctuation {
|
|
144
|
-
color: var(
|
|
145
|
-
--sprout-syntax-punctuation,
|
|
146
|
-
color-mix(in oklab, var(--sprout-text) 70%, var(--sprout-muted))
|
|
147
|
-
);
|
|
134
|
+
color: var(--sprout-syntax-punctuation, color-mix(in oklab, var(--sprout-text) 70%, var(--sprout-muted)));
|
|
148
135
|
}
|
|
149
136
|
.sprout-syntax-link {
|
|
150
137
|
color: var(--sprout-syntax-link, var(--sprout-info));
|
|
@@ -199,8 +186,7 @@
|
|
|
199
186
|
|
|
200
187
|
@media (prefers-reduced-motion: no-preference) {
|
|
201
188
|
.sprout-code-block-error {
|
|
202
|
-
animation: sprout-code-block-in var(--sprout-motion-normal)
|
|
203
|
-
var(--sprout-motion-ease);
|
|
189
|
+
animation: sprout-code-block-in var(--sprout-motion-normal) var(--sprout-motion-ease);
|
|
204
190
|
}
|
|
205
191
|
}
|
|
206
192
|
@keyframes sprout-code-block-in {
|
|
@@ -19,23 +19,21 @@
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
/* An indicator turns when its own trigger, or its collapsible's header, is open. */
|
|
22
|
-
[data-slot=
|
|
22
|
+
[data-slot='collapsible-indicator'] {
|
|
23
23
|
flex-shrink: 0;
|
|
24
24
|
}
|
|
25
|
-
[data-panel-open] [data-slot=
|
|
26
|
-
.sprout-collapsible[data-open]
|
|
27
|
-
> :not(.sprout-collapsible-content)
|
|
28
|
-
[data-slot="collapsible-indicator"] {
|
|
25
|
+
[data-panel-open] [data-slot='collapsible-indicator'],
|
|
26
|
+
.sprout-collapsible[data-open] > :not(.sprout-collapsible-content) [data-slot='collapsible-indicator'] {
|
|
29
27
|
transform: rotate(180deg);
|
|
30
28
|
}
|
|
31
|
-
[data-panel-open] [data-slot=
|
|
29
|
+
[data-panel-open] [data-slot='collapsible-indicator'][data-direction='right'],
|
|
32
30
|
.sprout-collapsible[data-open]
|
|
33
31
|
> :not(.sprout-collapsible-content)
|
|
34
|
-
[data-slot=
|
|
32
|
+
[data-slot='collapsible-indicator'][data-direction='right'] {
|
|
35
33
|
transform: rotate(90deg);
|
|
36
34
|
}
|
|
37
35
|
|
|
38
|
-
.sprout-collapsible-content[hidden]:not([hidden=
|
|
36
|
+
.sprout-collapsible-content[hidden]:not([hidden='until-found']) {
|
|
39
37
|
display: none;
|
|
40
38
|
}
|
|
41
39
|
.sprout-collapsible-content-sidebar,
|
|
@@ -54,19 +52,16 @@
|
|
|
54
52
|
}
|
|
55
53
|
|
|
56
54
|
@media (prefers-reduced-motion: no-preference) {
|
|
57
|
-
[data-slot=
|
|
58
|
-
transition: transform var(--sprout-motion-fast, 120ms)
|
|
59
|
-
var(--sprout-motion-ease, ease-out);
|
|
55
|
+
[data-slot='collapsible-indicator'] {
|
|
56
|
+
transition: transform var(--sprout-motion-fast, 120ms) var(--sprout-motion-ease, ease-out);
|
|
60
57
|
}
|
|
61
58
|
.sprout-collapsible-content-sidebar {
|
|
62
59
|
transition:
|
|
63
|
-
height var(--sprout-motion-normal, 180ms)
|
|
64
|
-
var(--sprout-motion-ease, ease-out),
|
|
60
|
+
height var(--sprout-motion-normal, 180ms) var(--sprout-motion-ease, ease-out),
|
|
65
61
|
opacity var(--sprout-motion-fast, 120ms) ease-out;
|
|
66
62
|
}
|
|
67
63
|
.sprout-collapsible-content-card {
|
|
68
|
-
transition: height var(--sprout-motion-normal, 180ms)
|
|
69
|
-
var(--sprout-motion-ease, ease-out);
|
|
64
|
+
transition: height var(--sprout-motion-normal, 180ms) var(--sprout-motion-ease, ease-out);
|
|
70
65
|
}
|
|
71
66
|
}
|
|
72
67
|
}
|
package/dist/styles/combobox.css
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
flex-shrink: 0;
|
|
7
7
|
pointer-events: none;
|
|
8
8
|
}
|
|
9
|
-
.sprout-combobox-trigger svg:not([class*=
|
|
9
|
+
.sprout-combobox-trigger svg:not([class*='size-']) {
|
|
10
10
|
width: 1rem;
|
|
11
11
|
height: 1rem;
|
|
12
12
|
}
|
|
@@ -17,15 +17,12 @@
|
|
|
17
17
|
margin-inline-start: auto;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
.sprout-combobox-input-group
|
|
21
|
-
|
|
22
|
-
.sprout-combobox-input-group
|
|
23
|
-
.sprout-button.sprout-combobox-input-trigger[data-popup-open] {
|
|
20
|
+
.sprout-combobox-input-group .sprout-button.sprout-combobox-input-trigger[data-pressed],
|
|
21
|
+
.sprout-combobox-input-group .sprout-button.sprout-combobox-input-trigger[data-popup-open] {
|
|
24
22
|
background-color: transparent;
|
|
25
23
|
}
|
|
26
24
|
/* Once there is a value the clear button replaces the chevron. */
|
|
27
|
-
.sprout-combobox-input-group:has([data-slot=
|
|
28
|
-
.sprout-combobox-input-trigger {
|
|
25
|
+
.sprout-combobox-input-group:has([data-slot='combobox-clear']) .sprout-combobox-input-trigger {
|
|
29
26
|
display: none;
|
|
30
27
|
}
|
|
31
28
|
|
|
@@ -54,7 +51,7 @@
|
|
|
54
51
|
outline: none;
|
|
55
52
|
transform-origin: var(--transform-origin);
|
|
56
53
|
}
|
|
57
|
-
.sprout-combobox-content[data-chips=
|
|
54
|
+
.sprout-combobox-content[data-chips='true'] {
|
|
58
55
|
min-width: var(--anchor-width);
|
|
59
56
|
}
|
|
60
57
|
/* A search field inside the list, under a trigger button. */
|
|
@@ -127,7 +124,7 @@
|
|
|
127
124
|
flex-shrink: 0;
|
|
128
125
|
pointer-events: none;
|
|
129
126
|
}
|
|
130
|
-
.sprout-combobox-item svg:not([class*=
|
|
127
|
+
.sprout-combobox-item svg:not([class*='size-']) {
|
|
131
128
|
width: 16px;
|
|
132
129
|
height: 16px;
|
|
133
130
|
}
|
|
@@ -185,14 +182,14 @@
|
|
|
185
182
|
outline-offset: 0;
|
|
186
183
|
cursor: text;
|
|
187
184
|
}
|
|
188
|
-
.sprout-combobox-chips:has([data-slot=
|
|
185
|
+
.sprout-combobox-chips:has([data-slot='combobox-chip']) {
|
|
189
186
|
padding-inline: 4px;
|
|
190
187
|
}
|
|
191
188
|
.sprout-combobox-chips:focus-within {
|
|
192
189
|
border-color: var(--sprout-border);
|
|
193
190
|
outline: var(--sprout-focus-width) solid transparent;
|
|
194
191
|
}
|
|
195
|
-
.sprout-combobox-chips:has([aria-invalid=
|
|
192
|
+
.sprout-combobox-chips:has([aria-invalid='true']),
|
|
196
193
|
.sprout-combobox-chips:has([data-invalid]) {
|
|
197
194
|
border-color: var(--sprout-danger);
|
|
198
195
|
outline-color: var(--sprout-danger);
|
|
@@ -235,8 +232,7 @@
|
|
|
235
232
|
pointer-events: none;
|
|
236
233
|
}
|
|
237
234
|
/* The disabled field already fades; don't fade its chips twice. */
|
|
238
|
-
.sprout-combobox-chips:has(.sprout-combobox-chips-input:disabled)
|
|
239
|
-
.sprout-combobox-chip {
|
|
235
|
+
.sprout-combobox-chips:has(.sprout-combobox-chips-input:disabled) .sprout-combobox-chip {
|
|
240
236
|
opacity: 1;
|
|
241
237
|
}
|
|
242
238
|
.sprout-button.sprout-combobox-chip-remove {
|
|
@@ -323,10 +319,10 @@
|
|
|
323
319
|
opacity: 0;
|
|
324
320
|
scale: 0.97;
|
|
325
321
|
}
|
|
326
|
-
.sprout-combobox-content[data-side=
|
|
322
|
+
.sprout-combobox-content[data-side='bottom'][data-starting-style] {
|
|
327
323
|
translate: 0 -4px;
|
|
328
324
|
}
|
|
329
|
-
.sprout-combobox-content[data-side=
|
|
325
|
+
.sprout-combobox-content[data-side='top'][data-starting-style] {
|
|
330
326
|
translate: 0 4px;
|
|
331
327
|
}
|
|
332
328
|
.sprout-combobox-item {
|
package/dist/styles/command.css
CHANGED
|
@@ -148,7 +148,7 @@
|
|
|
148
148
|
user-select: none;
|
|
149
149
|
-webkit-tap-highlight-color: transparent;
|
|
150
150
|
}
|
|
151
|
-
[data-slot=
|
|
151
|
+
[data-slot='dialog-content'] .sprout-command-item {
|
|
152
152
|
border-radius: calc(var(--sprout-radius-panel) - 4px);
|
|
153
153
|
}
|
|
154
154
|
.sprout-command-item > :where(svg),
|
|
@@ -172,11 +172,10 @@
|
|
|
172
172
|
color: var(--sprout-text);
|
|
173
173
|
opacity: 0;
|
|
174
174
|
}
|
|
175
|
-
.sprout-command-item[data-checked=
|
|
175
|
+
.sprout-command-item[data-checked='true'] > .sprout-command-item-check {
|
|
176
176
|
opacity: 1;
|
|
177
177
|
}
|
|
178
|
-
.sprout-command-item:has(> .sprout-command-shortcut)
|
|
179
|
-
> .sprout-command-item-check {
|
|
178
|
+
.sprout-command-item:has(> .sprout-command-shortcut) > .sprout-command-item-check {
|
|
180
179
|
display: none;
|
|
181
180
|
}
|
|
182
181
|
|
|
@@ -219,15 +218,13 @@
|
|
|
219
218
|
|
|
220
219
|
@media (prefers-reduced-motion: no-preference) {
|
|
221
220
|
.sprout-command-item {
|
|
222
|
-
transition: background-color var(--sprout-motion-fast)
|
|
223
|
-
var(--sprout-motion-ease);
|
|
221
|
+
transition: background-color var(--sprout-motion-fast) var(--sprout-motion-ease);
|
|
224
222
|
}
|
|
225
223
|
.sprout-command-item-check {
|
|
226
224
|
transition: opacity var(--sprout-motion-fast) var(--sprout-motion-ease);
|
|
227
225
|
}
|
|
228
226
|
.sprout-command-input-group {
|
|
229
|
-
transition: border-color var(--sprout-motion-fast)
|
|
230
|
-
var(--sprout-motion-ease);
|
|
227
|
+
transition: border-color var(--sprout-motion-fast) var(--sprout-motion-ease);
|
|
231
228
|
}
|
|
232
229
|
}
|
|
233
230
|
}
|
|
@@ -76,10 +76,10 @@
|
|
|
76
76
|
background: var(--sprout-hover);
|
|
77
77
|
color: var(--sprout-text);
|
|
78
78
|
}
|
|
79
|
-
.sprout-context-menu-item[data-variant=
|
|
79
|
+
.sprout-context-menu-item[data-variant='destructive'] {
|
|
80
80
|
color: var(--sprout-danger);
|
|
81
81
|
}
|
|
82
|
-
.sprout-context-menu-item[data-variant=
|
|
82
|
+
.sprout-context-menu-item[data-variant='destructive'][data-highlighted] {
|
|
83
83
|
background: var(--sprout-danger-subtle);
|
|
84
84
|
color: var(--sprout-danger);
|
|
85
85
|
}
|
package/dist/styles/dialog.css
CHANGED
|
@@ -33,12 +33,9 @@
|
|
|
33
33
|
outline: none;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
.sprout-dialog-content[data-placement=
|
|
36
|
+
.sprout-dialog-content[data-placement='top'] {
|
|
37
37
|
top: var(--sprout-dialog-top, 12dvh);
|
|
38
|
-
max-height: min(
|
|
39
|
-
76dvh,
|
|
40
|
-
calc(100dvh - var(--sprout-dialog-top, 12dvh) - 1rem)
|
|
41
|
-
);
|
|
38
|
+
max-height: min(76dvh, calc(100dvh - var(--sprout-dialog-top, 12dvh) - 1rem));
|
|
42
39
|
translate: -50% 0;
|
|
43
40
|
}
|
|
44
41
|
|
|
@@ -88,10 +85,7 @@
|
|
|
88
85
|
:is(.sprout-dialog-split, .sprout-dialog-fullscreen) > .sprout-dialog-header {
|
|
89
86
|
padding: 16px 16px 0;
|
|
90
87
|
}
|
|
91
|
-
:is(.sprout-dialog-split, .sprout-dialog-fullscreen):has(
|
|
92
|
-
> .sprout-dialog-close
|
|
93
|
-
)
|
|
94
|
-
> .sprout-dialog-header {
|
|
88
|
+
:is(.sprout-dialog-split, .sprout-dialog-fullscreen):has(> .sprout-dialog-close) > .sprout-dialog-header {
|
|
95
89
|
padding-inline-end: 44px;
|
|
96
90
|
}
|
|
97
91
|
|
|
@@ -146,17 +140,12 @@
|
|
|
146
140
|
display: flex;
|
|
147
141
|
flex-direction: column-reverse;
|
|
148
142
|
gap: 8px;
|
|
149
|
-
margin: 0 calc(var(--sprout-dialog-padding) * -1)
|
|
150
|
-
calc(var(--sprout-dialog-padding) * -1);
|
|
143
|
+
margin: 0 calc(var(--sprout-dialog-padding) * -1) calc(var(--sprout-dialog-padding) * -1);
|
|
151
144
|
padding: 12px 16px;
|
|
152
145
|
border-top: 1px solid var(--sprout-line);
|
|
153
146
|
border-end-start-radius: inherit;
|
|
154
147
|
border-end-end-radius: inherit;
|
|
155
|
-
background: color-mix(
|
|
156
|
-
in oklab,
|
|
157
|
-
var(--sprout-canvas) 70%,
|
|
158
|
-
var(--sprout-surface)
|
|
159
|
-
);
|
|
148
|
+
background: color-mix(in oklab, var(--sprout-canvas) 70%, var(--sprout-surface));
|
|
160
149
|
}
|
|
161
150
|
.sprout-dialog-fullscreen > .sprout-dialog-footer {
|
|
162
151
|
margin-top: auto;
|
|
@@ -75,10 +75,10 @@
|
|
|
75
75
|
background: var(--sprout-hover);
|
|
76
76
|
color: var(--sprout-text);
|
|
77
77
|
}
|
|
78
|
-
.sprout-dropdown-menu-item[data-variant=
|
|
78
|
+
.sprout-dropdown-menu-item[data-variant='destructive'] {
|
|
79
79
|
color: var(--sprout-danger);
|
|
80
80
|
}
|
|
81
|
-
.sprout-dropdown-menu-item[data-variant=
|
|
81
|
+
.sprout-dropdown-menu-item[data-variant='destructive'][data-highlighted] {
|
|
82
82
|
background: var(--sprout-danger-subtle);
|
|
83
83
|
color: var(--sprout-danger);
|
|
84
84
|
}
|
package/dist/styles/field.css
CHANGED
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
}
|
|
113
113
|
.sprout-field-checkbox::after,
|
|
114
114
|
.sprout-field-radio::after {
|
|
115
|
-
content:
|
|
115
|
+
content: '';
|
|
116
116
|
position: absolute;
|
|
117
117
|
inset: -8px -12px;
|
|
118
118
|
}
|
|
@@ -125,17 +125,16 @@
|
|
|
125
125
|
border-color: var(--sprout-primary);
|
|
126
126
|
background-color: var(--sprout-primary);
|
|
127
127
|
}
|
|
128
|
-
.sprout-field-checkbox[data-variant=
|
|
128
|
+
.sprout-field-checkbox[data-variant='neutral'][data-checked] {
|
|
129
129
|
border-color: var(--sprout-text);
|
|
130
130
|
background-color: var(--sprout-text);
|
|
131
131
|
color: var(--sprout-surface);
|
|
132
132
|
}
|
|
133
|
-
.sprout-field-checkbox[aria-invalid=
|
|
133
|
+
.sprout-field-checkbox[aria-invalid='true']:not([data-checked]) {
|
|
134
134
|
border-color: var(--sprout-danger);
|
|
135
|
-
box-shadow: 0 0 0 3px
|
|
136
|
-
color-mix(in oklab, var(--sprout-danger) 20%, transparent);
|
|
135
|
+
box-shadow: 0 0 0 3px color-mix(in oklab, var(--sprout-danger) 20%, transparent);
|
|
137
136
|
}
|
|
138
|
-
.sprout-field-checkbox[aria-invalid=
|
|
137
|
+
.sprout-field-checkbox[aria-invalid='true']:focus-visible {
|
|
139
138
|
outline-color: var(--sprout-danger);
|
|
140
139
|
}
|
|
141
140
|
.sprout-field-checkbox[data-disabled],
|
|
@@ -202,11 +201,11 @@
|
|
|
202
201
|
gap: 4px;
|
|
203
202
|
min-width: 0;
|
|
204
203
|
}
|
|
205
|
-
.sprout-choice-group[data-type=
|
|
204
|
+
.sprout-choice-group[data-type='radio'] .sprout-choice-group-options {
|
|
206
205
|
gap: 8px;
|
|
207
206
|
}
|
|
208
207
|
@media (min-width: 40rem) {
|
|
209
|
-
.sprout-choice-group-options[data-layout=
|
|
208
|
+
.sprout-choice-group-options[data-layout='columns'] {
|
|
210
209
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
211
210
|
}
|
|
212
211
|
}
|
|
@@ -233,15 +232,14 @@
|
|
|
233
232
|
.sprout-choice-option[data-disabled] {
|
|
234
233
|
color: var(--sprout-muted);
|
|
235
234
|
}
|
|
236
|
-
.sprout-choice-group[data-type=
|
|
235
|
+
.sprout-choice-group[data-type='radio'] .sprout-choice-option {
|
|
237
236
|
border: 1px solid var(--sprout-input);
|
|
238
237
|
background-color: var(--sprout-surface);
|
|
239
238
|
}
|
|
240
|
-
.sprout-choice-group[data-type=
|
|
241
|
-
.sprout-choice-option:not([data-disabled]):hover {
|
|
239
|
+
.sprout-choice-group[data-type='radio'] .sprout-choice-option:not([data-disabled]):hover {
|
|
242
240
|
background-color: var(--sprout-hover);
|
|
243
241
|
}
|
|
244
|
-
.sprout-choice-group[data-type=
|
|
242
|
+
.sprout-choice-group[data-type='radio'] .sprout-choice-option[data-checked] {
|
|
245
243
|
border-color: color-mix(in oklab, var(--sprout-primary) 50%, transparent);
|
|
246
244
|
background-color: var(--sprout-primary-subtle);
|
|
247
245
|
}
|
|
@@ -258,7 +256,7 @@
|
|
|
258
256
|
cursor: not-allowed;
|
|
259
257
|
}
|
|
260
258
|
.sprout-choice-option-label::after {
|
|
261
|
-
content:
|
|
259
|
+
content: '';
|
|
262
260
|
position: absolute;
|
|
263
261
|
inset: 0;
|
|
264
262
|
z-index: -1;
|
|
@@ -307,14 +305,10 @@
|
|
|
307
305
|
.sprout-field-checkbox,
|
|
308
306
|
.sprout-field-radio {
|
|
309
307
|
transition:
|
|
310
|
-
color var(--sprout-motion-fast, 120ms)
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
border-color var(--sprout-motion-fast, 120ms)
|
|
315
|
-
var(--sprout-motion-ease, ease-out),
|
|
316
|
-
opacity var(--sprout-motion-fast, 120ms)
|
|
317
|
-
var(--sprout-motion-ease, ease-out);
|
|
308
|
+
color var(--sprout-motion-fast, 120ms) var(--sprout-motion-ease, ease-out),
|
|
309
|
+
background-color var(--sprout-motion-fast, 120ms) var(--sprout-motion-ease, ease-out),
|
|
310
|
+
border-color var(--sprout-motion-fast, 120ms) var(--sprout-motion-ease, ease-out),
|
|
311
|
+
opacity var(--sprout-motion-fast, 120ms) var(--sprout-motion-ease, ease-out);
|
|
318
312
|
}
|
|
319
313
|
}
|
|
320
314
|
|
|
@@ -4,10 +4,7 @@
|
|
|
4
4
|
--sprout-file-explorer-indent: 12px;
|
|
5
5
|
--sprout-file-explorer-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
6
6
|
display: grid;
|
|
7
|
-
grid-template-columns: var(--sprout-file-explorer-sidebar, 16rem) minmax(
|
|
8
|
-
0,
|
|
9
|
-
1fr
|
|
10
|
-
);
|
|
7
|
+
grid-template-columns: var(--sprout-file-explorer-sidebar, 16rem) minmax(0, 1fr);
|
|
11
8
|
box-sizing: border-box;
|
|
12
9
|
height: 100%;
|
|
13
10
|
min-height: 0;
|
|
@@ -103,7 +100,7 @@
|
|
|
103
100
|
.sprout-file-explorer-row:hover {
|
|
104
101
|
background: var(--sprout-hover);
|
|
105
102
|
}
|
|
106
|
-
.sprout-file-explorer-row[aria-selected=
|
|
103
|
+
.sprout-file-explorer-row[aria-selected='true'] {
|
|
107
104
|
background: var(--sprout-active);
|
|
108
105
|
font-weight: 500;
|
|
109
106
|
}
|
|
@@ -116,8 +113,7 @@
|
|
|
116
113
|
align-self: stretch;
|
|
117
114
|
width: var(--sprout-file-explorer-indent);
|
|
118
115
|
margin-inline-end: -6px;
|
|
119
|
-
background: linear-gradient(var(--sprout-line), var(--sprout-line)) 5px 0 /
|
|
120
|
-
1px 100% no-repeat;
|
|
116
|
+
background: linear-gradient(var(--sprout-line), var(--sprout-line)) 5px 0 / 1px 100% no-repeat;
|
|
121
117
|
}
|
|
122
118
|
.sprout-file-explorer-tree:hover .sprout-file-explorer-guide {
|
|
123
119
|
background-image: linear-gradient(var(--sprout-input), var(--sprout-input));
|
|
@@ -129,15 +125,14 @@
|
|
|
129
125
|
width: 12px;
|
|
130
126
|
color: var(--sprout-muted);
|
|
131
127
|
}
|
|
132
|
-
.sprout-file-explorer-row[aria-expanded=
|
|
133
|
-
.sprout-file-explorer-chevron {
|
|
128
|
+
.sprout-file-explorer-row[aria-expanded='true'] .sprout-file-explorer-chevron {
|
|
134
129
|
transform: rotate(90deg);
|
|
135
130
|
}
|
|
136
131
|
.sprout-file-explorer-folder {
|
|
137
132
|
flex-shrink: 0;
|
|
138
133
|
color: var(--sprout-file-explorer-folder, var(--sprout-muted));
|
|
139
134
|
}
|
|
140
|
-
.sprout-file-explorer-row[aria-expanded=
|
|
135
|
+
.sprout-file-explorer-row[aria-expanded='true'] .sprout-file-explorer-folder {
|
|
141
136
|
color: var(--sprout-file-explorer-folder-open, var(--sprout-text));
|
|
142
137
|
}
|
|
143
138
|
.sprout-file-explorer-name {
|
|
@@ -154,23 +149,20 @@
|
|
|
154
149
|
color: var(--sprout-muted);
|
|
155
150
|
--tone: var(--sprout-muted);
|
|
156
151
|
}
|
|
157
|
-
.sprout-file-explorer-glyph[data-tone=
|
|
152
|
+
.sprout-file-explorer-glyph[data-tone='info'] {
|
|
158
153
|
--tone: var(--sprout-syntax-keyword, var(--sprout-info));
|
|
159
154
|
}
|
|
160
|
-
.sprout-file-explorer-glyph[data-tone=
|
|
155
|
+
.sprout-file-explorer-glyph[data-tone='success'] {
|
|
161
156
|
--tone: var(--sprout-syntax-string, var(--sprout-success));
|
|
162
157
|
}
|
|
163
|
-
.sprout-file-explorer-glyph[data-tone=
|
|
158
|
+
.sprout-file-explorer-glyph[data-tone='warning'] {
|
|
164
159
|
--tone: var(--sprout-syntax-constant, var(--sprout-warning));
|
|
165
160
|
}
|
|
166
|
-
.sprout-file-explorer-glyph[data-tone=
|
|
161
|
+
.sprout-file-explorer-glyph[data-tone='danger'] {
|
|
167
162
|
--tone: var(--sprout-danger);
|
|
168
163
|
}
|
|
169
|
-
.sprout-file-explorer-glyph[data-tone=
|
|
170
|
-
--tone: var(
|
|
171
|
-
--sprout-syntax-function,
|
|
172
|
-
color-mix(in oklab, var(--sprout-info) 55%, var(--sprout-danger))
|
|
173
|
-
);
|
|
164
|
+
.sprout-file-explorer-glyph[data-tone='accent'] {
|
|
165
|
+
--tone: var(--sprout-syntax-function, color-mix(in oklab, var(--sprout-info) 55%, var(--sprout-danger)));
|
|
174
166
|
}
|
|
175
167
|
.sprout-file-explorer-glyph-tile {
|
|
176
168
|
fill: color-mix(in oklab, var(--tone) 14%, transparent);
|
|
@@ -226,8 +218,8 @@
|
|
|
226
218
|
.sprout-file-explorer-hit:hover {
|
|
227
219
|
background: var(--sprout-hover);
|
|
228
220
|
}
|
|
229
|
-
.sprout-file-explorer-result[aria-current=
|
|
230
|
-
.sprout-file-explorer-hit[aria-current=
|
|
221
|
+
.sprout-file-explorer-result[aria-current='true'],
|
|
222
|
+
.sprout-file-explorer-hit[aria-current='true'] {
|
|
231
223
|
background: var(--sprout-active);
|
|
232
224
|
}
|
|
233
225
|
.sprout-file-explorer-result:focus-visible,
|
|
@@ -278,8 +270,7 @@
|
|
|
278
270
|
.sprout-file-explorer-mark {
|
|
279
271
|
border-radius: 2px;
|
|
280
272
|
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);
|
|
273
|
+
box-shadow: 0 0 0 1px color-mix(in oklab, var(--sprout-warning) 40%, transparent);
|
|
283
274
|
color: inherit;
|
|
284
275
|
}
|
|
285
276
|
|
|
@@ -315,14 +306,14 @@
|
|
|
315
306
|
inset: auto 0 -1px;
|
|
316
307
|
height: 1px;
|
|
317
308
|
background: var(--sprout-surface);
|
|
318
|
-
content:
|
|
309
|
+
content: '';
|
|
319
310
|
}
|
|
320
311
|
.sprout-file-explorer-tab[data-active]::before {
|
|
321
312
|
position: absolute;
|
|
322
313
|
inset: 0 0 auto;
|
|
323
314
|
height: 2px;
|
|
324
315
|
background: var(--sprout-primary);
|
|
325
|
-
content:
|
|
316
|
+
content: '';
|
|
326
317
|
}
|
|
327
318
|
.sprout-file-explorer-tab-open {
|
|
328
319
|
display: flex;
|
|
@@ -351,8 +342,7 @@
|
|
|
351
342
|
cursor: pointer;
|
|
352
343
|
opacity: 0;
|
|
353
344
|
}
|
|
354
|
-
.sprout-file-explorer-tab:is([data-active], :hover, :focus-within)
|
|
355
|
-
.sprout-file-explorer-tab-close {
|
|
345
|
+
.sprout-file-explorer-tab:is([data-active], :hover, :focus-within) .sprout-file-explorer-tab-close {
|
|
356
346
|
opacity: 1;
|
|
357
347
|
}
|
|
358
348
|
.sprout-file-explorer-tab-close:hover {
|
|
@@ -386,7 +376,7 @@
|
|
|
386
376
|
display: inline-flex;
|
|
387
377
|
align-items: center;
|
|
388
378
|
}
|
|
389
|
-
.sprout-file-explorer-crumbs li[aria-current=
|
|
379
|
+
.sprout-file-explorer-crumbs li[aria-current='page'] {
|
|
390
380
|
color: var(--sprout-text);
|
|
391
381
|
}
|
|
392
382
|
.sprout-file-explorer-crumb-separator {
|
|
@@ -446,11 +436,7 @@
|
|
|
446
436
|
user-select: none;
|
|
447
437
|
}
|
|
448
438
|
.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
|
-
);
|
|
439
|
+
background: color-mix(in oklab, var(--sprout-warning) 10%, var(--sprout-surface));
|
|
454
440
|
color: var(--sprout-text);
|
|
455
441
|
}
|
|
456
442
|
.sprout-file-explorer-line-text {
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
grid-column: 1 / -1;
|
|
15
15
|
grid-template-columns: minmax(0, 1fr) auto;
|
|
16
16
|
grid-template-areas:
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
'heading window'
|
|
18
|
+
'controls controls';
|
|
19
19
|
align-items: center;
|
|
20
20
|
gap: 0.5rem 1rem;
|
|
21
21
|
padding: 0.625rem 0.75rem 0.625rem 1rem;
|
|
@@ -48,13 +48,12 @@
|
|
|
48
48
|
align-items: center;
|
|
49
49
|
gap: 2px;
|
|
50
50
|
}
|
|
51
|
-
.sprout-file-viewer-window > [aria-expanded=
|
|
51
|
+
.sprout-file-viewer-window > [aria-expanded='true'] {
|
|
52
52
|
background: var(--sprout-hover);
|
|
53
53
|
color: var(--sprout-text);
|
|
54
54
|
}
|
|
55
55
|
@media (max-width: 639.98px) {
|
|
56
|
-
.sprout-file-viewer-controls
|
|
57
|
-
.sprout-button-size-sm:has(> .sprout-file-viewer-label) {
|
|
56
|
+
.sprout-file-viewer-controls .sprout-button-size-sm:has(> .sprout-file-viewer-label) {
|
|
58
57
|
width: 28px;
|
|
59
58
|
padding-inline: 0;
|
|
60
59
|
}
|
|
@@ -65,7 +64,7 @@
|
|
|
65
64
|
@media (min-width: 640px) {
|
|
66
65
|
.sprout-file-viewer-header {
|
|
67
66
|
grid-template-columns: minmax(0, 1fr) auto auto;
|
|
68
|
-
grid-template-areas:
|
|
67
|
+
grid-template-areas: 'heading controls window';
|
|
69
68
|
min-height: 3.5rem;
|
|
70
69
|
padding-inline: 1.5rem 1rem;
|
|
71
70
|
}
|
|
@@ -73,7 +72,7 @@
|
|
|
73
72
|
flex-wrap: nowrap;
|
|
74
73
|
}
|
|
75
74
|
.sprout-file-viewer-window::before {
|
|
76
|
-
content:
|
|
75
|
+
content: '';
|
|
77
76
|
width: 1px;
|
|
78
77
|
height: 1.25rem;
|
|
79
78
|
margin-inline: 0.25rem 0.375rem;
|
|
@@ -95,8 +94,7 @@
|
|
|
95
94
|
color: var(--sprout-text);
|
|
96
95
|
font-family: var(--sprout-font);
|
|
97
96
|
font-size: var(--sprout-text-sm);
|
|
98
|
-
animation: sprout-file-viewer-panel-in var(--sprout-motion-normal, 180ms)
|
|
99
|
-
cubic-bezier(0.16, 1, 0.3, 1) both;
|
|
97
|
+
animation: sprout-file-viewer-panel-in var(--sprout-motion-normal, 180ms) cubic-bezier(0.16, 1, 0.3, 1) both;
|
|
100
98
|
}
|
|
101
99
|
.sprout-file-viewer-panel[hidden] {
|
|
102
100
|
display: none;
|
|
@@ -144,7 +142,7 @@
|
|
|
144
142
|
padding: 0.5rem 1rem;
|
|
145
143
|
border-bottom: 1px solid var(--sprout-line);
|
|
146
144
|
}
|
|
147
|
-
.sprout-file-viewer-toolbar[data-align=
|
|
145
|
+
.sprout-file-viewer-toolbar[data-align='center'] {
|
|
148
146
|
justify-content: center;
|
|
149
147
|
padding: 0.5rem;
|
|
150
148
|
}
|
|
@@ -231,13 +229,12 @@
|
|
|
231
229
|
max-width: 100%;
|
|
232
230
|
max-height: 100%;
|
|
233
231
|
object-fit: contain;
|
|
234
|
-
transition: opacity var(--sprout-motion-normal, 180ms)
|
|
235
|
-
var(--sprout-motion-ease, ease);
|
|
232
|
+
transition: opacity var(--sprout-motion-normal, 180ms) var(--sprout-motion-ease, ease);
|
|
236
233
|
}
|
|
237
|
-
.sprout-file-image[data-state=
|
|
234
|
+
.sprout-file-image[data-state='loading'] {
|
|
238
235
|
opacity: 0;
|
|
239
236
|
}
|
|
240
|
-
.sprout-file-image-stage[data-zoom=
|
|
237
|
+
.sprout-file-image-stage[data-zoom='actual'] .sprout-file-image {
|
|
241
238
|
flex-shrink: 0;
|
|
242
239
|
max-width: none;
|
|
243
240
|
max-height: none;
|
|
@@ -291,8 +288,7 @@
|
|
|
291
288
|
gap: 0.75rem;
|
|
292
289
|
padding: 0.75rem;
|
|
293
290
|
background: var(--sprout-surface);
|
|
294
|
-
animation: sprout-file-viewer-in var(--sprout-motion-fast, 120ms)
|
|
295
|
-
var(--sprout-motion-ease, ease) both;
|
|
291
|
+
animation: sprout-file-viewer-in var(--sprout-motion-fast, 120ms) var(--sprout-motion-ease, ease) both;
|
|
296
292
|
}
|
|
297
293
|
.sprout-file-embed-slow p {
|
|
298
294
|
margin: 0;
|
|
@@ -331,7 +327,7 @@
|
|
|
331
327
|
color: var(--sprout-text);
|
|
332
328
|
font-family: var(--sprout-font);
|
|
333
329
|
}
|
|
334
|
-
.sprout-file-preview[data-kind=
|
|
330
|
+
.sprout-file-preview[data-kind='image'] {
|
|
335
331
|
align-items: center;
|
|
336
332
|
justify-content: center;
|
|
337
333
|
}
|