@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,173 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.sprout-state-panel {
|
|
3
|
+
font-family: var(--sprout-font);
|
|
4
|
+
color: var(--sprout-text);
|
|
5
|
+
overflow-wrap: anywhere;
|
|
6
|
+
animation: sprout-state-panel-in var(--sprout-motion-normal, 180ms)
|
|
7
|
+
var(--sprout-motion-ease, ease) both;
|
|
8
|
+
}
|
|
9
|
+
.sprout-state-panel[data-layout="centered"] {
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-direction: column;
|
|
12
|
+
align-items: center;
|
|
13
|
+
gap: 1.5rem;
|
|
14
|
+
width: 100%;
|
|
15
|
+
max-width: 28rem;
|
|
16
|
+
margin-inline: auto;
|
|
17
|
+
padding: 3rem 1.5rem;
|
|
18
|
+
text-align: center;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.sprout-state-panel-media {
|
|
22
|
+
display: flex;
|
|
23
|
+
flex-shrink: 0;
|
|
24
|
+
align-items: center;
|
|
25
|
+
justify-content: center;
|
|
26
|
+
width: 2.5rem;
|
|
27
|
+
height: 2.5rem;
|
|
28
|
+
border: 1px solid var(--sprout-line);
|
|
29
|
+
border-radius: 0.5rem;
|
|
30
|
+
background: var(--sprout-surface);
|
|
31
|
+
color: var(--sprout-text);
|
|
32
|
+
box-shadow: var(--sprout-shadow-control);
|
|
33
|
+
}
|
|
34
|
+
.sprout-state-panel-media > svg {
|
|
35
|
+
flex-shrink: 0;
|
|
36
|
+
}
|
|
37
|
+
.sprout-state-panel-danger {
|
|
38
|
+
color: var(--sprout-danger);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.sprout-state-panel-text {
|
|
42
|
+
display: grid;
|
|
43
|
+
gap: 0.5rem;
|
|
44
|
+
width: 100%;
|
|
45
|
+
}
|
|
46
|
+
.sprout-state-panel-title {
|
|
47
|
+
margin: 0;
|
|
48
|
+
font-size: var(--sprout-text-base);
|
|
49
|
+
font-weight: 500;
|
|
50
|
+
line-height: 1.5;
|
|
51
|
+
letter-spacing: normal;
|
|
52
|
+
color: var(--sprout-text);
|
|
53
|
+
}
|
|
54
|
+
.sprout-state-panel-description {
|
|
55
|
+
margin: 0;
|
|
56
|
+
font-size: var(--sprout-text-sm);
|
|
57
|
+
line-height: 1.5;
|
|
58
|
+
color: var(--sprout-muted);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.sprout-state-panel-actions {
|
|
62
|
+
display: flex;
|
|
63
|
+
flex-direction: column;
|
|
64
|
+
align-items: center;
|
|
65
|
+
gap: 0.75rem;
|
|
66
|
+
width: 100%;
|
|
67
|
+
font-size: var(--sprout-text-sm);
|
|
68
|
+
color: var(--sprout-muted);
|
|
69
|
+
}
|
|
70
|
+
.sprout-state-panel-actions:empty {
|
|
71
|
+
display: none;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.sprout-state-panel[data-layout="sample"] {
|
|
75
|
+
container-type: inline-size;
|
|
76
|
+
width: 100%;
|
|
77
|
+
}
|
|
78
|
+
.sprout-state-panel-card {
|
|
79
|
+
display: grid;
|
|
80
|
+
overflow: hidden;
|
|
81
|
+
border: 1px solid var(--sprout-line);
|
|
82
|
+
border-radius: var(--sprout-radius-panel);
|
|
83
|
+
background: var(--sprout-surface);
|
|
84
|
+
box-shadow: var(--sprout-shadow-control);
|
|
85
|
+
}
|
|
86
|
+
.sprout-state-panel-copy {
|
|
87
|
+
display: flex;
|
|
88
|
+
min-width: 0;
|
|
89
|
+
flex-direction: column;
|
|
90
|
+
align-items: flex-start;
|
|
91
|
+
justify-content: center;
|
|
92
|
+
gap: 1.5rem;
|
|
93
|
+
padding: 1.5rem;
|
|
94
|
+
}
|
|
95
|
+
[data-layout="sample"] .sprout-state-panel-text {
|
|
96
|
+
max-width: 28rem;
|
|
97
|
+
}
|
|
98
|
+
[data-layout="sample"] .sprout-state-panel-title {
|
|
99
|
+
font-size: 1.25rem;
|
|
100
|
+
line-height: 1.4;
|
|
101
|
+
}
|
|
102
|
+
[data-layout="sample"] .sprout-state-panel-description {
|
|
103
|
+
font-size: var(--sprout-text-base);
|
|
104
|
+
}
|
|
105
|
+
[data-layout="sample"] .sprout-state-panel-actions {
|
|
106
|
+
align-items: stretch;
|
|
107
|
+
gap: 0.5rem;
|
|
108
|
+
}
|
|
109
|
+
.sprout-state-panel-sample {
|
|
110
|
+
position: relative;
|
|
111
|
+
display: none;
|
|
112
|
+
min-height: 15rem;
|
|
113
|
+
overflow: hidden;
|
|
114
|
+
border-top: 1px solid var(--sprout-line);
|
|
115
|
+
background: var(--sprout-canvas);
|
|
116
|
+
}
|
|
117
|
+
.sprout-state-panel-sample-window {
|
|
118
|
+
position: absolute;
|
|
119
|
+
inset: 1.5rem 0 0 1.5rem;
|
|
120
|
+
overflow: hidden;
|
|
121
|
+
border-top: 1px solid var(--sprout-line);
|
|
122
|
+
border-left: 1px solid var(--sprout-line);
|
|
123
|
+
border-top-left-radius: var(--sprout-radius-panel);
|
|
124
|
+
background: var(--sprout-surface);
|
|
125
|
+
box-shadow: var(--sprout-shadow-panel);
|
|
126
|
+
mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
@container (min-width: 24rem) {
|
|
130
|
+
[data-layout="sample"] .sprout-state-panel-actions {
|
|
131
|
+
flex-direction: row;
|
|
132
|
+
flex-wrap: wrap;
|
|
133
|
+
align-items: center;
|
|
134
|
+
width: auto;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
@container (min-width: 28rem) {
|
|
138
|
+
.sprout-state-panel-sample {
|
|
139
|
+
display: block;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
@container (min-width: 32rem) {
|
|
143
|
+
.sprout-state-panel-copy {
|
|
144
|
+
padding: 2.5rem;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
@container (min-width: 48rem) {
|
|
148
|
+
.sprout-state-panel-card {
|
|
149
|
+
grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
|
|
150
|
+
}
|
|
151
|
+
.sprout-state-panel-copy {
|
|
152
|
+
padding-block: 3.5rem;
|
|
153
|
+
}
|
|
154
|
+
.sprout-state-panel-sample {
|
|
155
|
+
min-height: 22rem;
|
|
156
|
+
border-top: 0;
|
|
157
|
+
border-left: 1px solid var(--sprout-line);
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
@media (prefers-reduced-motion: reduce) {
|
|
162
|
+
.sprout-state-panel {
|
|
163
|
+
animation: none;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
@keyframes sprout-state-panel-in {
|
|
169
|
+
from {
|
|
170
|
+
opacity: 0;
|
|
171
|
+
transform: translateY(4px);
|
|
172
|
+
}
|
|
173
|
+
}
|
|
@@ -0,0 +1,285 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.sprout-state-sample,
|
|
3
|
+
.sprout-state-sample-mark {
|
|
4
|
+
--sprout-state-sample-pdf: #e2463f;
|
|
5
|
+
--sprout-state-sample-sheet: #1f8f4a;
|
|
6
|
+
--sprout-state-sample-document: #2b67d1;
|
|
7
|
+
--sprout-state-sample-slides: #d9622b;
|
|
8
|
+
--sprout-state-sample-image: #a8d4f7;
|
|
9
|
+
--sprout-state-sample-chart-1: #188038;
|
|
10
|
+
--sprout-state-sample-chart-2: #245cba;
|
|
11
|
+
--sprout-state-sample-chart-4: #7c4eb0;
|
|
12
|
+
}
|
|
13
|
+
.sprout-state-sample {
|
|
14
|
+
display: flex;
|
|
15
|
+
min-width: 0;
|
|
16
|
+
flex-direction: column;
|
|
17
|
+
font-family: var(--sprout-font);
|
|
18
|
+
font-size: var(--sprout-text-xs);
|
|
19
|
+
line-height: 1rem;
|
|
20
|
+
color: var(--sprout-text);
|
|
21
|
+
}
|
|
22
|
+
.dark .sprout-state-sample,
|
|
23
|
+
.dark.sprout-state-sample,
|
|
24
|
+
.dark .sprout-state-sample-mark {
|
|
25
|
+
--sprout-state-sample-image: #4d7ea8;
|
|
26
|
+
--sprout-state-sample-chart-1: #75ce8e;
|
|
27
|
+
--sprout-state-sample-chart-2: #9cbdff;
|
|
28
|
+
--sprout-state-sample-chart-4: #c6a4ed;
|
|
29
|
+
}
|
|
30
|
+
@media (prefers-color-scheme: dark) {
|
|
31
|
+
:root:not(.light):not(.dark) .sprout-state-sample,
|
|
32
|
+
:root:not(.light):not(.dark) .sprout-state-sample-mark {
|
|
33
|
+
--sprout-state-sample-image: #4d7ea8;
|
|
34
|
+
--sprout-state-sample-chart-1: #75ce8e;
|
|
35
|
+
--sprout-state-sample-chart-2: #9cbdff;
|
|
36
|
+
--sprout-state-sample-chart-4: #c6a4ed;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.sprout-state-sample-bar {
|
|
41
|
+
display: flex;
|
|
42
|
+
flex-shrink: 0;
|
|
43
|
+
align-items: center;
|
|
44
|
+
gap: 0.375rem;
|
|
45
|
+
height: 2.5rem;
|
|
46
|
+
min-width: 0;
|
|
47
|
+
padding-inline: 1rem;
|
|
48
|
+
border-bottom: 1px solid var(--sprout-line);
|
|
49
|
+
white-space: nowrap;
|
|
50
|
+
}
|
|
51
|
+
.sprout-state-sample-icon {
|
|
52
|
+
display: flex;
|
|
53
|
+
flex-shrink: 0;
|
|
54
|
+
color: var(--sprout-muted);
|
|
55
|
+
}
|
|
56
|
+
.sprout-state-sample-faint {
|
|
57
|
+
flex-shrink: 0;
|
|
58
|
+
color: var(--sprout-muted);
|
|
59
|
+
}
|
|
60
|
+
.sprout-state-sample-crumb {
|
|
61
|
+
min-width: 0;
|
|
62
|
+
overflow: hidden;
|
|
63
|
+
text-overflow: ellipsis;
|
|
64
|
+
color: var(--sprout-muted);
|
|
65
|
+
}
|
|
66
|
+
.sprout-state-sample-crumb[data-current] {
|
|
67
|
+
font-weight: 500;
|
|
68
|
+
color: var(--sprout-text);
|
|
69
|
+
}
|
|
70
|
+
.sprout-state-sample-label {
|
|
71
|
+
flex-shrink: 0;
|
|
72
|
+
margin-left: auto;
|
|
73
|
+
padding-inline: 0.375rem;
|
|
74
|
+
border: 1px solid var(--sprout-line);
|
|
75
|
+
border-radius: 0.25rem;
|
|
76
|
+
color: var(--sprout-muted);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.sprout-state-sample-tabs {
|
|
80
|
+
display: flex;
|
|
81
|
+
flex-shrink: 0;
|
|
82
|
+
align-items: center;
|
|
83
|
+
gap: 0.25rem;
|
|
84
|
+
overflow: hidden;
|
|
85
|
+
padding: 0.375rem 0.75rem;
|
|
86
|
+
border-bottom: 1px solid var(--sprout-line);
|
|
87
|
+
}
|
|
88
|
+
.sprout-state-sample-tab {
|
|
89
|
+
flex-shrink: 0;
|
|
90
|
+
padding: 0.25rem 0.5rem;
|
|
91
|
+
border-radius: var(--sprout-radius-control);
|
|
92
|
+
color: var(--sprout-muted);
|
|
93
|
+
white-space: nowrap;
|
|
94
|
+
}
|
|
95
|
+
.sprout-state-sample-tab[data-selected] {
|
|
96
|
+
background: var(--sprout-hover);
|
|
97
|
+
font-weight: 500;
|
|
98
|
+
color: var(--sprout-text);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.sprout-state-sample-table,
|
|
102
|
+
.sprout-state-sample-list {
|
|
103
|
+
min-width: 0;
|
|
104
|
+
}
|
|
105
|
+
.sprout-state-sample-head,
|
|
106
|
+
.sprout-state-sample-row {
|
|
107
|
+
display: flex;
|
|
108
|
+
align-items: center;
|
|
109
|
+
gap: 0.75rem;
|
|
110
|
+
min-width: 0;
|
|
111
|
+
padding-inline: 1rem;
|
|
112
|
+
border-bottom: 1px solid var(--sprout-line);
|
|
113
|
+
}
|
|
114
|
+
.sprout-state-sample-head {
|
|
115
|
+
height: 2.25rem;
|
|
116
|
+
color: var(--sprout-muted);
|
|
117
|
+
}
|
|
118
|
+
.sprout-state-sample-row {
|
|
119
|
+
height: 2.5rem;
|
|
120
|
+
}
|
|
121
|
+
.sprout-state-sample-check {
|
|
122
|
+
flex-shrink: 0;
|
|
123
|
+
width: 0.75rem;
|
|
124
|
+
height: 0.75rem;
|
|
125
|
+
border: 1px solid var(--sprout-input);
|
|
126
|
+
border-radius: 0.125rem;
|
|
127
|
+
}
|
|
128
|
+
.sprout-state-sample-cell {
|
|
129
|
+
display: flex;
|
|
130
|
+
flex: 1 1 0%;
|
|
131
|
+
align-items: center;
|
|
132
|
+
gap: 0.5rem;
|
|
133
|
+
min-width: 0;
|
|
134
|
+
overflow: hidden;
|
|
135
|
+
white-space: nowrap;
|
|
136
|
+
}
|
|
137
|
+
.sprout-state-sample-head .sprout-state-sample-cell {
|
|
138
|
+
display: block;
|
|
139
|
+
font-weight: 500;
|
|
140
|
+
text-overflow: ellipsis;
|
|
141
|
+
}
|
|
142
|
+
.sprout-state-sample-cell[data-size="wide"] {
|
|
143
|
+
flex: 1.6 1 0%;
|
|
144
|
+
}
|
|
145
|
+
.sprout-state-sample-cell[data-size="narrow"] {
|
|
146
|
+
flex: none;
|
|
147
|
+
width: 6rem;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.sprout-state-sample-item {
|
|
151
|
+
display: flex;
|
|
152
|
+
align-items: center;
|
|
153
|
+
gap: 0.75rem;
|
|
154
|
+
min-width: 0;
|
|
155
|
+
min-height: 3.5rem;
|
|
156
|
+
padding: 0.625rem 1rem;
|
|
157
|
+
border-bottom: 1px solid var(--sprout-line);
|
|
158
|
+
}
|
|
159
|
+
.sprout-state-sample-leading,
|
|
160
|
+
.sprout-state-sample-trailing {
|
|
161
|
+
display: flex;
|
|
162
|
+
flex-shrink: 0;
|
|
163
|
+
align-items: center;
|
|
164
|
+
}
|
|
165
|
+
.sprout-state-sample-trailing {
|
|
166
|
+
gap: 0.5rem;
|
|
167
|
+
}
|
|
168
|
+
.sprout-state-sample-copy {
|
|
169
|
+
display: flex;
|
|
170
|
+
flex: 1 1 0%;
|
|
171
|
+
flex-direction: column;
|
|
172
|
+
gap: 0.125rem;
|
|
173
|
+
min-width: 0;
|
|
174
|
+
}
|
|
175
|
+
.sprout-state-sample-title,
|
|
176
|
+
.sprout-state-sample-detail,
|
|
177
|
+
.sprout-state-sample-text {
|
|
178
|
+
min-width: 0;
|
|
179
|
+
overflow: hidden;
|
|
180
|
+
text-overflow: ellipsis;
|
|
181
|
+
white-space: nowrap;
|
|
182
|
+
}
|
|
183
|
+
.sprout-state-sample-title {
|
|
184
|
+
font-size: var(--sprout-text-sm);
|
|
185
|
+
font-weight: 500;
|
|
186
|
+
line-height: 1.25rem;
|
|
187
|
+
color: var(--sprout-text);
|
|
188
|
+
}
|
|
189
|
+
.sprout-state-sample-detail {
|
|
190
|
+
color: var(--sprout-muted);
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.sprout-state-sample-text[data-tone="strong"] {
|
|
194
|
+
font-weight: 500;
|
|
195
|
+
color: var(--sprout-text);
|
|
196
|
+
}
|
|
197
|
+
.sprout-state-sample-text[data-tone="muted"] {
|
|
198
|
+
color: var(--sprout-muted);
|
|
199
|
+
}
|
|
200
|
+
.sprout-state-sample-text[data-tone="link"] {
|
|
201
|
+
color: var(--sprout-info);
|
|
202
|
+
}
|
|
203
|
+
.sprout-state-sample-text[data-tone="mono"] {
|
|
204
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
205
|
+
color: var(--sprout-muted);
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.sprout-state-sample-mark {
|
|
209
|
+
--sprout-state-sample-from: var(--sprout-state-sample-pdf);
|
|
210
|
+
--sprout-state-sample-to: var(--sprout-state-sample-chart-4);
|
|
211
|
+
flex-shrink: 0;
|
|
212
|
+
width: 0.875rem;
|
|
213
|
+
height: 0.875rem;
|
|
214
|
+
border-radius: 0.125rem;
|
|
215
|
+
background: linear-gradient(
|
|
216
|
+
to bottom right,
|
|
217
|
+
var(--sprout-state-sample-from),
|
|
218
|
+
var(--sprout-state-sample-to)
|
|
219
|
+
);
|
|
220
|
+
}
|
|
221
|
+
.sprout-state-sample-mark[data-size="md"] {
|
|
222
|
+
width: 1.75rem;
|
|
223
|
+
height: 1.75rem;
|
|
224
|
+
border-radius: var(--sprout-radius-control);
|
|
225
|
+
}
|
|
226
|
+
.sprout-state-sample-mark[data-tone="orange"] {
|
|
227
|
+
--sprout-state-sample-from: var(--sprout-state-sample-slides);
|
|
228
|
+
--sprout-state-sample-to: var(--sprout-state-sample-pdf);
|
|
229
|
+
}
|
|
230
|
+
.sprout-state-sample-mark[data-tone="green"] {
|
|
231
|
+
--sprout-state-sample-from: var(--sprout-state-sample-sheet);
|
|
232
|
+
--sprout-state-sample-to: var(--sprout-state-sample-chart-2);
|
|
233
|
+
}
|
|
234
|
+
.sprout-state-sample-mark[data-tone="blue"] {
|
|
235
|
+
--sprout-state-sample-from: var(--sprout-state-sample-document);
|
|
236
|
+
--sprout-state-sample-to: var(--sprout-state-sample-chart-4);
|
|
237
|
+
}
|
|
238
|
+
.sprout-state-sample-mark[data-tone="violet"] {
|
|
239
|
+
--sprout-state-sample-from: var(--sprout-state-sample-chart-4);
|
|
240
|
+
--sprout-state-sample-to: var(--sprout-state-sample-pdf);
|
|
241
|
+
}
|
|
242
|
+
.sprout-state-sample-mark[data-tone="teal"] {
|
|
243
|
+
--sprout-state-sample-from: var(--sprout-state-sample-chart-1);
|
|
244
|
+
--sprout-state-sample-to: var(--sprout-state-sample-image);
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.sprout-state-sample-placeholder {
|
|
248
|
+
min-width: 0;
|
|
249
|
+
width: 50%;
|
|
250
|
+
height: 0.5rem;
|
|
251
|
+
border-radius: 9999px;
|
|
252
|
+
background: var(--sprout-active);
|
|
253
|
+
}
|
|
254
|
+
.sprout-state-sample-placeholder[data-width="sm"] {
|
|
255
|
+
width: 33.333%;
|
|
256
|
+
}
|
|
257
|
+
.sprout-state-sample-placeholder[data-width="lg"] {
|
|
258
|
+
width: 75%;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
.sprout-state-sample-icon-tile {
|
|
262
|
+
display: flex;
|
|
263
|
+
flex-shrink: 0;
|
|
264
|
+
align-items: center;
|
|
265
|
+
justify-content: center;
|
|
266
|
+
width: 1.75rem;
|
|
267
|
+
height: 1.75rem;
|
|
268
|
+
border: 1px solid var(--sprout-line);
|
|
269
|
+
border-radius: var(--sprout-radius-control);
|
|
270
|
+
background: var(--sprout-surface);
|
|
271
|
+
color: var(--sprout-muted);
|
|
272
|
+
box-shadow: var(--sprout-shadow-control);
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
@media (forced-colors: active) {
|
|
276
|
+
.sprout-state-sample-mark,
|
|
277
|
+
.sprout-state-sample-placeholder {
|
|
278
|
+
forced-color-adjust: none;
|
|
279
|
+
border: 1px solid CanvasText;
|
|
280
|
+
}
|
|
281
|
+
.sprout-state-sample-tab[data-selected] {
|
|
282
|
+
outline: 1px solid CanvasText;
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.sprout-switch {
|
|
3
|
+
--sprout-switch-thumb-off: var(--sprout-surface);
|
|
4
|
+
--sprout-switch-travel: 14px;
|
|
5
|
+
position: relative;
|
|
6
|
+
display: inline-flex;
|
|
7
|
+
flex-shrink: 0;
|
|
8
|
+
align-items: center;
|
|
9
|
+
box-sizing: border-box;
|
|
10
|
+
width: 32px;
|
|
11
|
+
height: 18px;
|
|
12
|
+
margin: 0;
|
|
13
|
+
padding: 0;
|
|
14
|
+
border: 1px solid transparent;
|
|
15
|
+
border-radius: 999px;
|
|
16
|
+
background-color: var(--sprout-muted);
|
|
17
|
+
vertical-align: middle;
|
|
18
|
+
cursor: pointer;
|
|
19
|
+
outline: 0 solid transparent;
|
|
20
|
+
outline-offset: 0;
|
|
21
|
+
-webkit-tap-highlight-color: transparent;
|
|
22
|
+
}
|
|
23
|
+
.sprout-switch-size-sm {
|
|
24
|
+
--sprout-switch-travel: 10px;
|
|
25
|
+
width: 24px;
|
|
26
|
+
height: 14px;
|
|
27
|
+
}
|
|
28
|
+
/* A 56 x 34px hit area around the default track. */
|
|
29
|
+
.sprout-switch::after {
|
|
30
|
+
content: "";
|
|
31
|
+
position: absolute;
|
|
32
|
+
inset: -8px -12px;
|
|
33
|
+
}
|
|
34
|
+
.dark .sprout-switch {
|
|
35
|
+
--sprout-switch-thumb-off: var(--sprout-text);
|
|
36
|
+
}
|
|
37
|
+
@media (prefers-color-scheme: dark) {
|
|
38
|
+
:root:not(.light):not(.dark) .sprout-switch {
|
|
39
|
+
--sprout-switch-thumb-off: var(--sprout-text);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
.sprout-switch:focus-visible {
|
|
43
|
+
outline: var(--sprout-focus-width) solid var(--sprout-focus-ring);
|
|
44
|
+
}
|
|
45
|
+
.sprout-switch[data-checked] {
|
|
46
|
+
background-color: var(--sprout-primary);
|
|
47
|
+
}
|
|
48
|
+
.sprout-switch[aria-invalid="true"] {
|
|
49
|
+
border-color: var(--sprout-danger);
|
|
50
|
+
box-shadow: 0 0 0 3px
|
|
51
|
+
color-mix(in oklab, var(--sprout-danger) 20%, transparent);
|
|
52
|
+
}
|
|
53
|
+
.sprout-switch[aria-invalid="true"]:focus-visible {
|
|
54
|
+
outline-color: var(--sprout-danger);
|
|
55
|
+
}
|
|
56
|
+
.sprout-switch[data-readonly] {
|
|
57
|
+
cursor: default;
|
|
58
|
+
}
|
|
59
|
+
.sprout-switch[data-disabled] {
|
|
60
|
+
cursor: not-allowed;
|
|
61
|
+
opacity: 0.5;
|
|
62
|
+
}
|
|
63
|
+
.sprout-switch[aria-busy="true"] {
|
|
64
|
+
cursor: progress;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.sprout-switch-thumb {
|
|
68
|
+
display: block;
|
|
69
|
+
width: 16px;
|
|
70
|
+
height: 16px;
|
|
71
|
+
border-radius: 999px;
|
|
72
|
+
background-color: var(--sprout-switch-thumb-off);
|
|
73
|
+
box-shadow: 0 1px 2px rgb(0 0 0 / 0.12);
|
|
74
|
+
pointer-events: none;
|
|
75
|
+
}
|
|
76
|
+
.sprout-switch-size-sm .sprout-switch-thumb {
|
|
77
|
+
width: 12px;
|
|
78
|
+
height: 12px;
|
|
79
|
+
}
|
|
80
|
+
.sprout-switch-thumb[data-checked] {
|
|
81
|
+
background-color: var(--sprout-on-primary);
|
|
82
|
+
transform: translateX(var(--sprout-switch-travel));
|
|
83
|
+
}
|
|
84
|
+
.sprout-switch-thumb[data-checked]:dir(rtl) {
|
|
85
|
+
transform: translateX(calc(var(--sprout-switch-travel) * -1));
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
89
|
+
.sprout-switch {
|
|
90
|
+
transition:
|
|
91
|
+
background-color var(--sprout-motion-fast, 120ms)
|
|
92
|
+
var(--sprout-motion-ease, ease-out),
|
|
93
|
+
border-color var(--sprout-motion-fast, 120ms)
|
|
94
|
+
var(--sprout-motion-ease, ease-out),
|
|
95
|
+
box-shadow var(--sprout-motion-fast, 120ms)
|
|
96
|
+
var(--sprout-motion-ease, ease-out),
|
|
97
|
+
opacity var(--sprout-motion-fast, 120ms)
|
|
98
|
+
var(--sprout-motion-ease, ease-out);
|
|
99
|
+
}
|
|
100
|
+
.sprout-switch-thumb {
|
|
101
|
+
transition:
|
|
102
|
+
transform var(--sprout-motion-normal, 180ms)
|
|
103
|
+
var(--sprout-motion-ease, ease-out),
|
|
104
|
+
background-color var(--sprout-motion-fast, 120ms)
|
|
105
|
+
var(--sprout-motion-ease, ease-out);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
@media (forced-colors: active) {
|
|
110
|
+
.sprout-switch {
|
|
111
|
+
border-color: CanvasText;
|
|
112
|
+
background-color: Canvas;
|
|
113
|
+
}
|
|
114
|
+
.sprout-switch[data-checked] {
|
|
115
|
+
border-color: Highlight;
|
|
116
|
+
background-color: Highlight;
|
|
117
|
+
}
|
|
118
|
+
.sprout-switch-thumb {
|
|
119
|
+
background-color: CanvasText;
|
|
120
|
+
}
|
|
121
|
+
.sprout-switch-thumb[data-checked] {
|
|
122
|
+
background-color: HighlightText;
|
|
123
|
+
}
|
|
124
|
+
.sprout-switch:focus-visible {
|
|
125
|
+
outline-color: Highlight;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|