@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
package/dist/styles/chart.css
CHANGED
|
@@ -1,30 +1,63 @@
|
|
|
1
1
|
@layer base {
|
|
2
|
+
/* Graphics need 3:1 against the surface, so light mode takes darker shades. */
|
|
2
3
|
:root,
|
|
3
4
|
.light {
|
|
4
|
-
--sprout-
|
|
5
|
-
--sprout-
|
|
6
|
-
--sprout-
|
|
7
|
-
--sprout-
|
|
8
|
-
--sprout-
|
|
5
|
+
--sprout-red: #e11d48;
|
|
6
|
+
--sprout-orange: #ea580c;
|
|
7
|
+
--sprout-yellow: #c28000;
|
|
8
|
+
--sprout-green: #16a34a;
|
|
9
|
+
--sprout-teal: #0d9488;
|
|
10
|
+
--sprout-sky: #0284c7;
|
|
11
|
+
--sprout-blue: #2563eb;
|
|
12
|
+
--sprout-indigo: #4f46e5;
|
|
13
|
+
--sprout-purple: #9333ea;
|
|
14
|
+
--sprout-tan: #a37b45;
|
|
9
15
|
}
|
|
10
16
|
|
|
11
17
|
.dark {
|
|
12
|
-
--sprout-
|
|
13
|
-
--sprout-
|
|
14
|
-
--sprout-
|
|
15
|
-
--sprout-
|
|
16
|
-
--sprout-
|
|
18
|
+
--sprout-red: #f0506e;
|
|
19
|
+
--sprout-orange: #f5a33d;
|
|
20
|
+
--sprout-yellow: #f5d547;
|
|
21
|
+
--sprout-green: #62d26f;
|
|
22
|
+
--sprout-teal: #5cc8d0;
|
|
23
|
+
--sprout-sky: #5bb4e5;
|
|
24
|
+
--sprout-blue: #4a8df8;
|
|
25
|
+
--sprout-indigo: #7b72f0;
|
|
26
|
+
--sprout-purple: #b46ee8;
|
|
27
|
+
--sprout-tan: #c4a981;
|
|
17
28
|
}
|
|
18
29
|
|
|
19
30
|
@media (prefers-color-scheme: dark) {
|
|
20
31
|
:root:not(.light):not(.dark) {
|
|
21
|
-
--sprout-
|
|
22
|
-
--sprout-
|
|
23
|
-
--sprout-
|
|
24
|
-
--sprout-
|
|
25
|
-
--sprout-
|
|
32
|
+
--sprout-red: #f0506e;
|
|
33
|
+
--sprout-orange: #f5a33d;
|
|
34
|
+
--sprout-yellow: #f5d547;
|
|
35
|
+
--sprout-green: #62d26f;
|
|
36
|
+
--sprout-teal: #5cc8d0;
|
|
37
|
+
--sprout-sky: #5bb4e5;
|
|
38
|
+
--sprout-blue: #4a8df8;
|
|
39
|
+
--sprout-indigo: #7b72f0;
|
|
40
|
+
--sprout-purple: #b46ee8;
|
|
41
|
+
--sprout-tan: #c4a981;
|
|
26
42
|
}
|
|
27
43
|
}
|
|
44
|
+
|
|
45
|
+
/* Ordered so neighbors differ in hue. On .light and .dark too, so a nested
|
|
46
|
+
theme root resolves to its own hues. */
|
|
47
|
+
:root,
|
|
48
|
+
.light,
|
|
49
|
+
.dark {
|
|
50
|
+
--sprout-chart-1: var(--sprout-indigo);
|
|
51
|
+
--sprout-chart-2: var(--sprout-green);
|
|
52
|
+
--sprout-chart-3: var(--sprout-orange);
|
|
53
|
+
--sprout-chart-4: var(--sprout-red);
|
|
54
|
+
--sprout-chart-5: var(--sprout-sky);
|
|
55
|
+
--sprout-chart-6: var(--sprout-purple);
|
|
56
|
+
--sprout-chart-7: var(--sprout-yellow);
|
|
57
|
+
--sprout-chart-8: var(--sprout-teal);
|
|
58
|
+
--sprout-chart-9: var(--sprout-blue);
|
|
59
|
+
--sprout-chart-10: var(--sprout-tan);
|
|
60
|
+
}
|
|
28
61
|
}
|
|
29
62
|
|
|
30
63
|
@layer components {
|
|
@@ -44,23 +77,174 @@
|
|
|
44
77
|
width: 100cqi;
|
|
45
78
|
}
|
|
46
79
|
.sprout-chart-usage,
|
|
47
|
-
.sprout-chart-category
|
|
80
|
+
.sprout-chart-category,
|
|
81
|
+
.sprout-chart-trend,
|
|
82
|
+
.sprout-chart-area,
|
|
83
|
+
.sprout-chart-combo,
|
|
84
|
+
.sprout-chart-donut,
|
|
85
|
+
.sprout-chart-funnel,
|
|
86
|
+
.sprout-chart-waterfall,
|
|
87
|
+
.sprout-chart-timeline,
|
|
88
|
+
.sprout-chart-scatter,
|
|
89
|
+
.sprout-chart-treemap,
|
|
90
|
+
.sprout-chart-sankey,
|
|
91
|
+
.sprout-chart-radar,
|
|
92
|
+
.sprout-chart-sparkline {
|
|
48
93
|
width: 100%;
|
|
49
94
|
aspect-ratio: auto;
|
|
50
95
|
}
|
|
51
96
|
.sprout-chart-usage {
|
|
52
97
|
height: 16rem;
|
|
53
98
|
}
|
|
54
|
-
.sprout-chart-category
|
|
99
|
+
.sprout-chart-category,
|
|
100
|
+
.sprout-chart-trend,
|
|
101
|
+
.sprout-chart-area,
|
|
102
|
+
.sprout-chart-combo,
|
|
103
|
+
.sprout-chart-donut,
|
|
104
|
+
.sprout-chart-waterfall,
|
|
105
|
+
.sprout-chart-scatter,
|
|
106
|
+
.sprout-chart-treemap {
|
|
55
107
|
height: 18rem;
|
|
56
108
|
}
|
|
109
|
+
.sprout-chart-sankey,
|
|
110
|
+
.sprout-chart-radar {
|
|
111
|
+
height: 20rem;
|
|
112
|
+
}
|
|
113
|
+
.sprout-chart-sparkline {
|
|
114
|
+
height: 2.5rem;
|
|
115
|
+
}
|
|
116
|
+
.sprout-chart-gauge {
|
|
117
|
+
width: 100%;
|
|
118
|
+
max-width: 20rem;
|
|
119
|
+
aspect-ratio: 2 / 1.25;
|
|
120
|
+
margin-inline: auto;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.sprout-chart .recharts-polar-angle-axis-tick-value {
|
|
124
|
+
fill: var(--sprout-muted);
|
|
125
|
+
}
|
|
126
|
+
.sprout-chart-center-value {
|
|
127
|
+
fill: var(--sprout-text);
|
|
128
|
+
font-size: 1.5rem;
|
|
129
|
+
font-weight: 600;
|
|
130
|
+
font-variant-numeric: tabular-nums;
|
|
131
|
+
}
|
|
132
|
+
.sprout-chart-center-label {
|
|
133
|
+
fill: var(--sprout-muted);
|
|
134
|
+
font-size: var(--sprout-text-xs);
|
|
135
|
+
}
|
|
136
|
+
.sprout-chart-treemap-label {
|
|
137
|
+
fill: var(--sprout-surface);
|
|
138
|
+
font-weight: 500;
|
|
139
|
+
pointer-events: none;
|
|
140
|
+
}
|
|
141
|
+
.sprout-chart-treemap-value {
|
|
142
|
+
font-weight: 400;
|
|
143
|
+
font-variant-numeric: tabular-nums;
|
|
144
|
+
}
|
|
145
|
+
.sprout-chart-sankey-label {
|
|
146
|
+
fill: var(--sprout-text);
|
|
147
|
+
font-weight: 500;
|
|
148
|
+
}
|
|
149
|
+
.sprout-chart-sankey-value {
|
|
150
|
+
fill: var(--sprout-muted);
|
|
151
|
+
font-weight: 400;
|
|
152
|
+
font-variant-numeric: tabular-nums;
|
|
153
|
+
}
|
|
154
|
+
.sprout-chart-sankey-link:hover {
|
|
155
|
+
stroke-opacity: 0.5;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.sprout-chart-heatmap {
|
|
159
|
+
display: grid;
|
|
160
|
+
gap: 12px;
|
|
161
|
+
width: 100%;
|
|
162
|
+
font-family: var(--sprout-font);
|
|
163
|
+
font-size: var(--sprout-text-xs);
|
|
164
|
+
line-height: 1rem;
|
|
165
|
+
color: var(--sprout-muted);
|
|
166
|
+
}
|
|
167
|
+
.sprout-chart-heatmap-scroll {
|
|
168
|
+
overflow-x: auto;
|
|
169
|
+
}
|
|
170
|
+
.sprout-chart-heatmap-table {
|
|
171
|
+
width: 100%;
|
|
172
|
+
min-width: calc(var(--sprout-heat-columns) * 1.25rem + 3rem);
|
|
173
|
+
border-collapse: separate;
|
|
174
|
+
border-spacing: 3px;
|
|
175
|
+
table-layout: fixed;
|
|
176
|
+
}
|
|
177
|
+
.sprout-chart-heatmap-table th {
|
|
178
|
+
font-weight: 400;
|
|
179
|
+
white-space: nowrap;
|
|
180
|
+
}
|
|
181
|
+
.sprout-chart-heatmap-table thead th {
|
|
182
|
+
overflow: hidden;
|
|
183
|
+
text-overflow: clip;
|
|
184
|
+
text-align: center;
|
|
185
|
+
}
|
|
186
|
+
.sprout-chart-heatmap-table tbody th {
|
|
187
|
+
width: 3rem;
|
|
188
|
+
padding-right: 6px;
|
|
189
|
+
text-align: right;
|
|
190
|
+
}
|
|
191
|
+
.sprout-chart-heatmap-table td {
|
|
192
|
+
position: relative;
|
|
193
|
+
height: 1.5rem;
|
|
194
|
+
border-radius: 3px;
|
|
195
|
+
}
|
|
196
|
+
.sprout-chart-heatmap-table td[data-tip]:hover {
|
|
197
|
+
outline: 1.5px solid var(--sprout-text);
|
|
198
|
+
outline-offset: 1px;
|
|
199
|
+
}
|
|
200
|
+
.sprout-chart-heatmap-table td[data-tip]:hover::after {
|
|
201
|
+
content: attr(data-tip);
|
|
202
|
+
position: absolute;
|
|
203
|
+
bottom: calc(100% + 6px);
|
|
204
|
+
left: 50%;
|
|
205
|
+
z-index: 1;
|
|
206
|
+
translate: -50% 0;
|
|
207
|
+
padding: 6px 10px;
|
|
208
|
+
border: 1px solid var(--sprout-line);
|
|
209
|
+
border-radius: var(--sprout-radius-control);
|
|
210
|
+
background: var(--sprout-surface);
|
|
211
|
+
color: var(--sprout-text);
|
|
212
|
+
box-shadow: var(--sprout-shadow-overlay);
|
|
213
|
+
white-space: nowrap;
|
|
214
|
+
pointer-events: none;
|
|
215
|
+
}
|
|
216
|
+
.sprout-chart-heatmap-scale {
|
|
217
|
+
display: flex;
|
|
218
|
+
align-items: center;
|
|
219
|
+
justify-content: flex-end;
|
|
220
|
+
gap: 3px;
|
|
221
|
+
}
|
|
222
|
+
.sprout-chart-heatmap-scale > i {
|
|
223
|
+
width: 12px;
|
|
224
|
+
height: 12px;
|
|
225
|
+
border-radius: 2px;
|
|
226
|
+
}
|
|
227
|
+
.sprout-chart-heatmap-scale > span:first-child {
|
|
228
|
+
margin-right: 4px;
|
|
229
|
+
}
|
|
230
|
+
.sprout-chart-heatmap-scale > span:last-child {
|
|
231
|
+
margin-left: 4px;
|
|
232
|
+
}
|
|
233
|
+
.sprout-chart-sr-only {
|
|
234
|
+
position: absolute;
|
|
235
|
+
width: 1px;
|
|
236
|
+
height: 1px;
|
|
237
|
+
overflow: hidden;
|
|
238
|
+
clip-path: inset(50%);
|
|
239
|
+
white-space: nowrap;
|
|
240
|
+
}
|
|
57
241
|
|
|
58
242
|
.sprout-chart .recharts-cartesian-axis-tick-value {
|
|
59
243
|
fill: var(--sprout-muted);
|
|
60
244
|
}
|
|
61
|
-
.sprout-chart .recharts-cartesian-grid line[stroke=
|
|
62
|
-
.sprout-chart .recharts-polar-grid [stroke=
|
|
63
|
-
.sprout-chart .recharts-reference-line [stroke=
|
|
245
|
+
.sprout-chart .recharts-cartesian-grid line[stroke='#ccc'],
|
|
246
|
+
.sprout-chart .recharts-polar-grid [stroke='#ccc'],
|
|
247
|
+
.sprout-chart .recharts-reference-line [stroke='#ccc'] {
|
|
64
248
|
stroke: var(--sprout-line);
|
|
65
249
|
}
|
|
66
250
|
.sprout-chart .recharts-curve.recharts-tooltip-cursor {
|
|
@@ -72,8 +256,8 @@
|
|
|
72
256
|
.sprout-chart .recharts-radial-bar-background-sector {
|
|
73
257
|
fill: var(--sprout-secondary);
|
|
74
258
|
}
|
|
75
|
-
.sprout-chart .recharts-dot[stroke=
|
|
76
|
-
.sprout-chart .recharts-sector[stroke=
|
|
259
|
+
.sprout-chart .recharts-dot[stroke='#fff'],
|
|
260
|
+
.sprout-chart .recharts-sector[stroke='#fff'] {
|
|
77
261
|
stroke: transparent;
|
|
78
262
|
}
|
|
79
263
|
.sprout-chart .recharts-layer,
|
|
@@ -122,7 +306,7 @@
|
|
|
122
306
|
gap: 8px;
|
|
123
307
|
width: 100%;
|
|
124
308
|
}
|
|
125
|
-
.sprout-chart-tooltip[data-indicator=
|
|
309
|
+
.sprout-chart-tooltip[data-indicator='dot'] .sprout-chart-tooltip-item {
|
|
126
310
|
align-items: center;
|
|
127
311
|
}
|
|
128
312
|
.sprout-chart-tooltip-item > svg {
|
|
@@ -136,22 +320,20 @@
|
|
|
136
320
|
border: 0 solid var(--sprout-chart-indicator);
|
|
137
321
|
background: var(--sprout-chart-indicator);
|
|
138
322
|
}
|
|
139
|
-
[data-indicator=
|
|
323
|
+
[data-indicator='dot'] .sprout-chart-tooltip-indicator {
|
|
140
324
|
width: 10px;
|
|
141
325
|
height: 10px;
|
|
142
326
|
}
|
|
143
|
-
[data-indicator=
|
|
327
|
+
[data-indicator='line'] .sprout-chart-tooltip-indicator {
|
|
144
328
|
width: 4px;
|
|
145
329
|
}
|
|
146
|
-
[data-indicator=
|
|
330
|
+
[data-indicator='dashed'] .sprout-chart-tooltip-indicator {
|
|
147
331
|
width: 0;
|
|
148
332
|
border-width: 1.5px;
|
|
149
333
|
border-style: dashed;
|
|
150
334
|
background: transparent;
|
|
151
335
|
}
|
|
152
|
-
[data-indicator=
|
|
153
|
-
.sprout-chart-tooltip-item:has([data-nested])
|
|
154
|
-
.sprout-chart-tooltip-indicator {
|
|
336
|
+
[data-indicator='dashed'] .sprout-chart-tooltip-item:has([data-nested]) .sprout-chart-tooltip-indicator {
|
|
155
337
|
margin-block: 2px;
|
|
156
338
|
}
|
|
157
339
|
.sprout-chart-tooltip-row {
|
|
@@ -191,7 +373,7 @@
|
|
|
191
373
|
line-height: 1rem;
|
|
192
374
|
color: var(--sprout-text);
|
|
193
375
|
}
|
|
194
|
-
.sprout-chart-legend[data-align=
|
|
376
|
+
.sprout-chart-legend[data-align='top'] {
|
|
195
377
|
padding-top: 0;
|
|
196
378
|
padding-bottom: 12px;
|
|
197
379
|
}
|
|
@@ -217,7 +399,9 @@
|
|
|
217
399
|
border-color: CanvasText;
|
|
218
400
|
}
|
|
219
401
|
.sprout-chart-tooltip-indicator,
|
|
220
|
-
.sprout-chart-legend-swatch
|
|
402
|
+
.sprout-chart-legend-swatch,
|
|
403
|
+
.sprout-chart-heatmap-table td,
|
|
404
|
+
.sprout-chart-heatmap-scale > i {
|
|
221
405
|
forced-color-adjust: none;
|
|
222
406
|
}
|
|
223
407
|
.sprout-chart .recharts-surface:focus-visible {
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
font-weight: 500;
|
|
49
49
|
white-space: nowrap;
|
|
50
50
|
}
|
|
51
|
-
.sprout-chat-input-reference[data-chat-reference=
|
|
51
|
+
.sprout-chat-input-reference[data-chat-reference='agent'] {
|
|
52
52
|
background: var(--sprout-info-subtle);
|
|
53
53
|
color: var(--sprout-info);
|
|
54
54
|
}
|
|
@@ -89,11 +89,10 @@
|
|
|
89
89
|
background: var(--sprout-line);
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
-
.sprout-chat-input-bar .sprout-input-group-button[data-variant=
|
|
92
|
+
.sprout-chat-input-bar .sprout-input-group-button[data-variant='ghost'] {
|
|
93
93
|
color: var(--sprout-muted);
|
|
94
94
|
}
|
|
95
|
-
.sprout-chat-input-bar
|
|
96
|
-
.sprout-input-group-button[data-variant="ghost"]:hover {
|
|
95
|
+
.sprout-chat-input-bar .sprout-input-group-button[data-variant='ghost']:hover {
|
|
97
96
|
color: var(--sprout-text);
|
|
98
97
|
}
|
|
99
98
|
.sprout-chat-input-picker-label {
|
|
@@ -107,30 +106,16 @@
|
|
|
107
106
|
color: var(--sprout-text);
|
|
108
107
|
}
|
|
109
108
|
|
|
110
|
-
.sprout-chat-input[data-mode-color]
|
|
111
|
-
.sprout-input-group.sprout-chat-input-box {
|
|
109
|
+
.sprout-chat-input[data-mode-color] .sprout-input-group.sprout-chat-input-box {
|
|
112
110
|
border-color: var(--sprout-chat-input-mode);
|
|
113
|
-
box-shadow: 0 0 0 3px
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
.sprout-chat-input-bar
|
|
118
|
-
.sprout-chat-input-mode {
|
|
119
|
-
background: color-mix(
|
|
120
|
-
in oklab,
|
|
121
|
-
var(--sprout-chat-input-mode) 14%,
|
|
122
|
-
transparent
|
|
123
|
-
);
|
|
111
|
+
box-shadow: 0 0 0 3px color-mix(in oklab, var(--sprout-chat-input-mode) 14%, transparent);
|
|
112
|
+
}
|
|
113
|
+
.sprout-chat-input[data-mode-color] .sprout-chat-input-bar .sprout-chat-input-mode {
|
|
114
|
+
background: color-mix(in oklab, var(--sprout-chat-input-mode) 14%, transparent);
|
|
124
115
|
color: var(--sprout-chat-input-mode);
|
|
125
116
|
}
|
|
126
|
-
.sprout-chat-input[data-mode-color]
|
|
127
|
-
|
|
128
|
-
.sprout-chat-input-mode:hover {
|
|
129
|
-
background: color-mix(
|
|
130
|
-
in oklab,
|
|
131
|
-
var(--sprout-chat-input-mode) 22%,
|
|
132
|
-
transparent
|
|
133
|
-
);
|
|
117
|
+
.sprout-chat-input[data-mode-color] .sprout-chat-input-bar .sprout-chat-input-mode:hover {
|
|
118
|
+
background: color-mix(in oklab, var(--sprout-chat-input-mode) 22%, transparent);
|
|
134
119
|
}
|
|
135
120
|
.sprout-chat-input-mode-option > :is(svg, .sprout-brand-icon) {
|
|
136
121
|
color: var(--sprout-chat-input-mode);
|
|
@@ -139,17 +124,12 @@
|
|
|
139
124
|
.sprout-dropdown-menu-content.sprout-chat-input-menu {
|
|
140
125
|
width: 18rem;
|
|
141
126
|
}
|
|
142
|
-
.sprout-chat-input-menu
|
|
143
|
-
:is(.sprout-dropdown-menu-item, .sprout-command-item):has(
|
|
144
|
-
.sprout-chat-input-option-text
|
|
145
|
-
) {
|
|
127
|
+
.sprout-chat-input-menu :is(.sprout-dropdown-menu-item, .sprout-command-item):has(.sprout-chat-input-option-text) {
|
|
146
128
|
align-items: flex-start;
|
|
147
129
|
padding-block: 6px;
|
|
148
130
|
}
|
|
149
131
|
.sprout-chat-input-menu
|
|
150
|
-
:is(.sprout-dropdown-menu-item, .sprout-command-item):has(
|
|
151
|
-
.sprout-chat-input-option-text
|
|
152
|
-
)
|
|
132
|
+
:is(.sprout-dropdown-menu-item, .sprout-command-item):has(.sprout-chat-input-option-text)
|
|
153
133
|
> :is(svg, .sprout-brand-icon) {
|
|
154
134
|
margin-top: 2px;
|
|
155
135
|
}
|
|
@@ -171,7 +151,7 @@
|
|
|
171
151
|
bottom: calc(100% + 8px);
|
|
172
152
|
z-index: 20;
|
|
173
153
|
}
|
|
174
|
-
.sprout-chat-input-panel[data-side=
|
|
154
|
+
.sprout-chat-input-panel[data-side='bottom'] {
|
|
175
155
|
top: calc(100% + 8px);
|
|
176
156
|
bottom: auto;
|
|
177
157
|
}
|
|
@@ -210,9 +190,7 @@
|
|
|
210
190
|
}
|
|
211
191
|
|
|
212
192
|
@media (prefers-reduced-motion: no-preference) {
|
|
213
|
-
.sprout-chat-input[data-status=
|
|
214
|
-
.sprout-rich-text-editor-content
|
|
215
|
-
.is-editor-empty:first-child::before {
|
|
193
|
+
.sprout-chat-input[data-status='streaming'] .sprout-rich-text-editor-content .is-editor-empty:first-child::before {
|
|
216
194
|
animation: sprout-chat-input-pulse 1.6s ease-in-out infinite alternate;
|
|
217
195
|
}
|
|
218
196
|
}
|
|
@@ -231,9 +209,7 @@
|
|
|
231
209
|
}
|
|
232
210
|
|
|
233
211
|
@media (forced-colors: active) {
|
|
234
|
-
.sprout-chat-input[data-status=
|
|
235
|
-
.sprout-rich-text-editor-content
|
|
236
|
-
.is-editor-empty:first-child::before {
|
|
212
|
+
.sprout-chat-input[data-status='streaming'] .sprout-rich-text-editor-content .is-editor-empty:first-child::before {
|
|
237
213
|
color: GrayText;
|
|
238
214
|
}
|
|
239
215
|
}
|
|
@@ -59,10 +59,10 @@
|
|
|
59
59
|
height: 20px;
|
|
60
60
|
color: var(--sprout-muted);
|
|
61
61
|
}
|
|
62
|
-
.sprout-chat-plan-step[data-state=
|
|
62
|
+
.sprout-chat-plan-step[data-state='complete'] .sprout-chat-plan-icon {
|
|
63
63
|
color: var(--sprout-success);
|
|
64
64
|
}
|
|
65
|
-
.sprout-chat-plan-step[data-state=
|
|
65
|
+
.sprout-chat-plan-step[data-state='error'] .sprout-chat-plan-icon {
|
|
66
66
|
color: var(--sprout-danger);
|
|
67
67
|
}
|
|
68
68
|
.sprout-chat-plan-text {
|
|
@@ -96,8 +96,7 @@
|
|
|
96
96
|
|
|
97
97
|
@media (prefers-reduced-motion: no-preference) {
|
|
98
98
|
.sprout-chat-plan-icon {
|
|
99
|
-
animation: sprout-chat-plan-icon-in var(--sprout-motion-normal, 180ms)
|
|
100
|
-
var(--sprout-motion-ease, ease-out);
|
|
99
|
+
animation: sprout-chat-plan-icon-in var(--sprout-motion-normal, 180ms) var(--sprout-motion-ease, ease-out);
|
|
101
100
|
}
|
|
102
101
|
}
|
|
103
102
|
@keyframes sprout-chat-plan-icon-in {
|
|
@@ -177,15 +177,12 @@
|
|
|
177
177
|
@media (prefers-reduced-motion: no-preference) {
|
|
178
178
|
.sprout-chat-sources .sprout-chat-sources-trigger,
|
|
179
179
|
.sprout-chat-sources-link {
|
|
180
|
-
transition: color var(--sprout-motion-fast, 120ms)
|
|
181
|
-
var(--sprout-motion-ease, ease-out);
|
|
180
|
+
transition: color var(--sprout-motion-fast, 120ms) var(--sprout-motion-ease, ease-out);
|
|
182
181
|
}
|
|
183
182
|
.sprout-chat-sources-citation.sprout-button {
|
|
184
183
|
transition:
|
|
185
|
-
color var(--sprout-motion-fast, 120ms)
|
|
186
|
-
|
|
187
|
-
background-color var(--sprout-motion-fast, 120ms)
|
|
188
|
-
var(--sprout-motion-ease, ease-out);
|
|
184
|
+
color var(--sprout-motion-fast, 120ms) var(--sprout-motion-ease, ease-out),
|
|
185
|
+
background-color var(--sprout-motion-fast, 120ms) var(--sprout-motion-ease, ease-out);
|
|
189
186
|
}
|
|
190
187
|
}
|
|
191
188
|
}
|
package/dist/styles/checkbox.css
CHANGED
|
@@ -22,16 +22,12 @@
|
|
|
22
22
|
}
|
|
23
23
|
/* A 40 x 32px hit area around the 16px box. */
|
|
24
24
|
.sprout-checkbox::after {
|
|
25
|
-
content:
|
|
25
|
+
content: '';
|
|
26
26
|
position: absolute;
|
|
27
27
|
inset: -8px -12px;
|
|
28
28
|
}
|
|
29
29
|
@media (hover: hover) {
|
|
30
|
-
.sprout-checkbox:not(
|
|
31
|
-
[data-disabled],
|
|
32
|
-
[data-checked],
|
|
33
|
-
[data-indeterminate]
|
|
34
|
-
):hover {
|
|
30
|
+
.sprout-checkbox:not([data-disabled], [data-checked], [data-indeterminate]):hover {
|
|
35
31
|
border-color: var(--sprout-border-strong);
|
|
36
32
|
}
|
|
37
33
|
}
|
|
@@ -49,15 +45,11 @@
|
|
|
49
45
|
background-color: var(--sprout-text);
|
|
50
46
|
color: var(--sprout-surface);
|
|
51
47
|
}
|
|
52
|
-
.sprout-checkbox[aria-invalid=
|
|
53
|
-
[data-checked],
|
|
54
|
-
[data-indeterminate]
|
|
55
|
-
) {
|
|
48
|
+
.sprout-checkbox[aria-invalid='true']:not([data-checked], [data-indeterminate]) {
|
|
56
49
|
border-color: var(--sprout-danger);
|
|
57
|
-
box-shadow: 0 0 0 3px
|
|
58
|
-
color-mix(in oklab, var(--sprout-danger) 20%, transparent);
|
|
50
|
+
box-shadow: 0 0 0 3px color-mix(in oklab, var(--sprout-danger) 20%, transparent);
|
|
59
51
|
}
|
|
60
|
-
.sprout-checkbox[aria-invalid=
|
|
52
|
+
.sprout-checkbox[aria-invalid='true']:focus-visible {
|
|
61
53
|
outline-color: var(--sprout-danger);
|
|
62
54
|
}
|
|
63
55
|
.sprout-checkbox[data-readonly] {
|
|
@@ -82,21 +74,15 @@
|
|
|
82
74
|
@media (prefers-reduced-motion: no-preference) {
|
|
83
75
|
.sprout-checkbox {
|
|
84
76
|
transition:
|
|
85
|
-
background-color var(--sprout-motion-fast, 120ms)
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
box-shadow var(--sprout-motion-fast, 120ms)
|
|
90
|
-
var(--sprout-motion-ease, ease-out),
|
|
91
|
-
opacity var(--sprout-motion-fast, 120ms)
|
|
92
|
-
var(--sprout-motion-ease, ease-out);
|
|
77
|
+
background-color var(--sprout-motion-fast, 120ms) var(--sprout-motion-ease, ease-out),
|
|
78
|
+
border-color var(--sprout-motion-fast, 120ms) var(--sprout-motion-ease, ease-out),
|
|
79
|
+
box-shadow var(--sprout-motion-fast, 120ms) var(--sprout-motion-ease, ease-out),
|
|
80
|
+
opacity var(--sprout-motion-fast, 120ms) var(--sprout-motion-ease, ease-out);
|
|
93
81
|
}
|
|
94
82
|
.sprout-checkbox-indicator {
|
|
95
83
|
transition:
|
|
96
|
-
opacity var(--sprout-motion-fast, 120ms)
|
|
97
|
-
|
|
98
|
-
transform var(--sprout-motion-fast, 120ms)
|
|
99
|
-
var(--sprout-motion-ease, ease-out);
|
|
84
|
+
opacity var(--sprout-motion-fast, 120ms) var(--sprout-motion-ease, ease-out),
|
|
85
|
+
transform var(--sprout-motion-fast, 120ms) var(--sprout-motion-ease, ease-out);
|
|
100
86
|
}
|
|
101
87
|
.sprout-checkbox-indicator[data-starting-style],
|
|
102
88
|
.sprout-checkbox-indicator[data-ending-style] {
|
|
@@ -126,8 +126,7 @@
|
|
|
126
126
|
width: 13px;
|
|
127
127
|
height: 13px;
|
|
128
128
|
}
|
|
129
|
-
:is(.sprout-choice-list-option, .sprout-choice-list-text)[data-checked]
|
|
130
|
-
.sprout-choice-list-mark {
|
|
129
|
+
:is(.sprout-choice-list-option, .sprout-choice-list-text)[data-checked] .sprout-choice-list-mark {
|
|
131
130
|
border-color: var(--sprout-focus);
|
|
132
131
|
background: var(--sprout-primary-subtle);
|
|
133
132
|
}
|
|
@@ -186,32 +185,28 @@
|
|
|
186
185
|
}
|
|
187
186
|
|
|
188
187
|
/* Compact: numbered rows in a short scrolling list, for chat questions. */
|
|
189
|
-
.sprout-choice-list[data-layout=
|
|
188
|
+
.sprout-choice-list[data-layout='compact'] .sprout-choice-list-options {
|
|
190
189
|
gap: 0;
|
|
191
190
|
max-height: max(76px, min(224px, calc(34dvh - 96px)));
|
|
192
191
|
overflow-y: auto;
|
|
193
192
|
overscroll-behavior: contain;
|
|
194
193
|
padding: 2px;
|
|
195
194
|
}
|
|
196
|
-
.sprout-choice-list[data-layout=
|
|
195
|
+
.sprout-choice-list[data-layout='compact'] .sprout-choice-list-option {
|
|
197
196
|
width: 100%;
|
|
198
197
|
min-height: 36px;
|
|
199
198
|
padding: 4px 8px;
|
|
200
199
|
border-color: transparent;
|
|
201
200
|
border-radius: var(--sprout-radius-control);
|
|
202
201
|
}
|
|
203
|
-
.sprout-choice-list[data-layout=
|
|
204
|
-
.sprout-choice-list-option[data-checked] {
|
|
202
|
+
.sprout-choice-list[data-layout='compact'] .sprout-choice-list-option[data-checked] {
|
|
205
203
|
border-color: var(--sprout-focus);
|
|
206
204
|
}
|
|
207
|
-
.sprout-choice-list[data-layout=
|
|
208
|
-
.sprout-choice-list-option[data-disabled][data-checked] {
|
|
205
|
+
.sprout-choice-list[data-layout='compact'] .sprout-choice-list-option[data-disabled][data-checked] {
|
|
209
206
|
border-color: var(--sprout-input);
|
|
210
207
|
}
|
|
211
|
-
.sprout-choice-list[data-layout=
|
|
212
|
-
|
|
213
|
-
+ .sprout-choice-list-option::before {
|
|
214
|
-
content: "";
|
|
208
|
+
.sprout-choice-list[data-layout='compact'] .sprout-choice-list-option + .sprout-choice-list-option::before {
|
|
209
|
+
content: '';
|
|
215
210
|
position: absolute;
|
|
216
211
|
top: -1px;
|
|
217
212
|
right: 8px;
|
|
@@ -219,16 +214,13 @@
|
|
|
219
214
|
height: 1px;
|
|
220
215
|
background: color-mix(in oklab, var(--sprout-text) 8%, transparent);
|
|
221
216
|
}
|
|
222
|
-
.sprout-choice-list[data-layout=
|
|
223
|
-
|
|
224
|
-
.sprout-choice-list[data-layout="compact"]
|
|
217
|
+
.sprout-choice-list[data-layout='compact'] .sprout-choice-list-option[data-checked]::before,
|
|
218
|
+
.sprout-choice-list[data-layout='compact']
|
|
225
219
|
.sprout-choice-list-option[data-checked]
|
|
226
220
|
+ .sprout-choice-list-option::before {
|
|
227
221
|
visibility: hidden;
|
|
228
222
|
}
|
|
229
|
-
.sprout-choice-list[data-layout=
|
|
230
|
-
.sprout-choice-list-option
|
|
231
|
-
.sprout-choice-list-mark {
|
|
223
|
+
.sprout-choice-list[data-layout='compact'] .sprout-choice-list-option .sprout-choice-list-mark {
|
|
232
224
|
width: 24px;
|
|
233
225
|
height: 24px;
|
|
234
226
|
border: 0;
|
|
@@ -239,17 +231,15 @@
|
|
|
239
231
|
font-variant-numeric: tabular-nums;
|
|
240
232
|
color: var(--sprout-muted);
|
|
241
233
|
}
|
|
242
|
-
.sprout-choice-list[data-layout=
|
|
243
|
-
.sprout-choice-list-option[data-checked]
|
|
244
|
-
.sprout-choice-list-mark {
|
|
234
|
+
.sprout-choice-list[data-layout='compact'] .sprout-choice-list-option[data-checked] .sprout-choice-list-mark {
|
|
245
235
|
background: var(--sprout-primary-subtle);
|
|
246
236
|
color: var(--sprout-primary);
|
|
247
237
|
}
|
|
248
238
|
@media (any-pointer: coarse) {
|
|
249
|
-
.sprout-choice-list[data-layout=
|
|
239
|
+
.sprout-choice-list[data-layout='compact'] .sprout-choice-list-options {
|
|
250
240
|
max-height: max(94px, min(224px, calc(40dvh - 128px)));
|
|
251
241
|
}
|
|
252
|
-
.sprout-choice-list[data-layout=
|
|
242
|
+
.sprout-choice-list[data-layout='compact'] .sprout-choice-list-option {
|
|
253
243
|
min-height: 44px;
|
|
254
244
|
}
|
|
255
245
|
}
|
|
@@ -309,17 +299,13 @@
|
|
|
309
299
|
.sprout-choice-list-text,
|
|
310
300
|
.sprout-choice-list-mark {
|
|
311
301
|
transition:
|
|
312
|
-
background-color var(--sprout-motion-normal, 180ms)
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
var(--sprout-motion-ease, ease-out),
|
|
316
|
-
color var(--sprout-motion-fast, 120ms)
|
|
317
|
-
var(--sprout-motion-ease, ease-out);
|
|
302
|
+
background-color var(--sprout-motion-normal, 180ms) var(--sprout-motion-ease, ease-out),
|
|
303
|
+
border-color var(--sprout-motion-normal, 180ms) var(--sprout-motion-ease, ease-out),
|
|
304
|
+
color var(--sprout-motion-fast, 120ms) var(--sprout-motion-ease, ease-out);
|
|
318
305
|
}
|
|
319
306
|
.sprout-choice-list-mark svg,
|
|
320
307
|
.sprout-choice-summary-check {
|
|
321
|
-
animation: sprout-choice-pop var(--sprout-motion-normal, 150ms) ease-out
|
|
322
|
-
both;
|
|
308
|
+
animation: sprout-choice-pop var(--sprout-motion-normal, 150ms) ease-out both;
|
|
323
309
|
}
|
|
324
310
|
}
|
|
325
311
|
@keyframes sprout-choice-pop {
|