@tulipfarm/sprout 0.0.0-stage → 0.1.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.
Files changed (306) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +183 -2
  3. package/dist/components/accordion.d.ts +28 -0
  4. package/dist/components/accordion.js +26 -0
  5. package/dist/components/alert-dialog.d.ts +60 -0
  6. package/dist/components/alert-dialog.js +69 -0
  7. package/dist/components/alert.d.ts +30 -0
  8. package/dist/components/alert.js +35 -0
  9. package/dist/components/aspect-ratio.d.ts +7 -0
  10. package/dist/components/aspect-ratio.js +6 -0
  11. package/dist/components/attachment.d.ts +118 -0
  12. package/dist/components/attachment.js +285 -0
  13. package/dist/components/avatar.d.ts +32 -0
  14. package/dist/components/avatar.js +73 -0
  15. package/dist/components/badge.d.ts +21 -0
  16. package/dist/components/badge.js +27 -0
  17. package/dist/components/brand-icon.d.ts +28 -0
  18. package/dist/components/brand-icon.js +78 -0
  19. package/dist/components/breadcrumb.d.ts +29 -0
  20. package/dist/components/breadcrumb.js +44 -0
  21. package/dist/components/button-group.d.ts +28 -0
  22. package/dist/components/button-group.js +36 -0
  23. package/dist/components/button.d.ts +79 -0
  24. package/dist/components/button.js +93 -0
  25. package/dist/components/calendar.d.ts +27 -0
  26. package/dist/components/calendar.js +107 -0
  27. package/dist/components/canvas.d.ts +78 -0
  28. package/dist/components/canvas.js +180 -0
  29. package/dist/components/card.d.ts +43 -0
  30. package/dist/components/card.js +42 -0
  31. package/dist/components/carousel.d.ts +57 -0
  32. package/dist/components/carousel.js +422 -0
  33. package/dist/components/chart.d.ts +112 -0
  34. package/dist/components/chart.js +172 -0
  35. package/dist/components/chat-confirmation.d.ts +42 -0
  36. package/dist/components/chat-confirmation.js +62 -0
  37. package/dist/components/chat-plan.d.ts +21 -0
  38. package/dist/components/chat-plan.js +35 -0
  39. package/dist/components/chat-sources.d.ts +64 -0
  40. package/dist/components/chat-sources.js +66 -0
  41. package/dist/components/checkbox.d.ts +16 -0
  42. package/dist/components/checkbox.js +17 -0
  43. package/dist/components/choice-list.d.ts +53 -0
  44. package/dist/components/choice-list.js +36 -0
  45. package/dist/components/code-block.d.ts +35 -0
  46. package/dist/components/code-block.js +95 -0
  47. package/dist/components/collapsible.d.ts +24 -0
  48. package/dist/components/collapsible.js +27 -0
  49. package/dist/components/combobox.d.ts +95 -0
  50. package/dist/components/combobox.js +106 -0
  51. package/dist/components/command.d.ts +94 -0
  52. package/dist/components/command.js +414 -0
  53. package/dist/components/context-menu.d.ts +57 -0
  54. package/dist/components/context-menu.js +60 -0
  55. package/dist/components/dialog.d.ts +60 -0
  56. package/dist/components/dialog.js +79 -0
  57. package/dist/components/direction.d.ts +6 -0
  58. package/dist/components/direction.js +6 -0
  59. package/dist/components/dropdown-menu.d.ts +62 -0
  60. package/dist/components/dropdown-menu.js +59 -0
  61. package/dist/components/field.d.ts +117 -0
  62. package/dist/components/field.js +150 -0
  63. package/dist/components/file-viewer.d.ts +120 -0
  64. package/dist/components/file-viewer.js +373 -0
  65. package/dist/components/form.d.ts +87 -0
  66. package/dist/components/form.js +55 -0
  67. package/dist/components/glass-banner.d.ts +27 -0
  68. package/dist/components/glass-banner.js +116 -0
  69. package/dist/components/gradient-banner.d.ts +37 -0
  70. package/dist/components/gradient-banner.js +43 -0
  71. package/dist/components/hover-card.d.ts +27 -0
  72. package/dist/components/hover-card.js +26 -0
  73. package/dist/components/input-group.d.ts +68 -0
  74. package/dist/components/input-group.js +88 -0
  75. package/dist/components/input-otp.d.ts +38 -0
  76. package/dist/components/input-otp.js +43 -0
  77. package/dist/components/input.d.ts +16 -0
  78. package/dist/components/input.js +18 -0
  79. package/dist/components/kbd.d.ts +12 -0
  80. package/dist/components/kbd.js +11 -0
  81. package/dist/components/label.d.ts +8 -0
  82. package/dist/components/label.js +10 -0
  83. package/dist/components/mention-list.d.ts +54 -0
  84. package/dist/components/mention-list.js +31 -0
  85. package/dist/components/menubar.d.ts +64 -0
  86. package/dist/components/menubar.js +68 -0
  87. package/dist/components/message-actions.d.ts +34 -0
  88. package/dist/components/message-actions.js +68 -0
  89. package/dist/components/message-response.d.ts +20 -0
  90. package/dist/components/message-response.js +46 -0
  91. package/dist/components/message-scroller.d.ts +71 -0
  92. package/dist/components/message-scroller.js +217 -0
  93. package/dist/components/message.d.ts +49 -0
  94. package/dist/components/message.js +59 -0
  95. package/dist/components/navigation-menu.d.ts +45 -0
  96. package/dist/components/navigation-menu.js +54 -0
  97. package/dist/components/notice-banner.d.ts +14 -0
  98. package/dist/components/notice-banner.js +11 -0
  99. package/dist/components/page-content.d.ts +7 -0
  100. package/dist/components/page-content.js +9 -0
  101. package/dist/components/page-header.d.ts +37 -0
  102. package/dist/components/page-header.js +53 -0
  103. package/dist/components/pagination.d.ts +29 -0
  104. package/dist/components/pagination.js +29 -0
  105. package/dist/components/plan-outline.d.ts +60 -0
  106. package/dist/components/plan-outline.js +108 -0
  107. package/dist/components/popover.d.ts +34 -0
  108. package/dist/components/popover.js +35 -0
  109. package/dist/components/progress.d.ts +27 -0
  110. package/dist/components/progress.js +35 -0
  111. package/dist/components/prompt-list.d.ts +23 -0
  112. package/dist/components/prompt-list.js +11 -0
  113. package/dist/components/questionnaire.d.ts +148 -0
  114. package/dist/components/questionnaire.js +1001 -0
  115. package/dist/components/radio-group.d.ts +16 -0
  116. package/dist/components/radio-group.js +21 -0
  117. package/dist/components/reasoning-effort.d.ts +24 -0
  118. package/dist/components/reasoning-effort.js +269 -0
  119. package/dist/components/resizable.d.ts +67 -0
  120. package/dist/components/resizable.js +536 -0
  121. package/dist/components/result-card.d.ts +58 -0
  122. package/dist/components/result-card.js +88 -0
  123. package/dist/components/review-card.d.ts +62 -0
  124. package/dist/components/review-card.js +49 -0
  125. package/dist/components/rich-text-editor.d.ts +51 -0
  126. package/dist/components/rich-text-editor.js +248 -0
  127. package/dist/components/schema-diagram.d.ts +52 -0
  128. package/dist/components/schema-diagram.js +226 -0
  129. package/dist/components/scroll-area.d.ts +22 -0
  130. package/dist/components/scroll-area.js +19 -0
  131. package/dist/components/search-dialog.d.ts +103 -0
  132. package/dist/components/search-dialog.js +64 -0
  133. package/dist/components/search-field.d.ts +17 -0
  134. package/dist/components/search-field.js +27 -0
  135. package/dist/components/select.d.ts +57 -0
  136. package/dist/components/select.js +57 -0
  137. package/dist/components/selection-slot.d.ts +18 -0
  138. package/dist/components/selection-slot.js +53 -0
  139. package/dist/components/separator.d.ts +48 -0
  140. package/dist/components/separator.js +54 -0
  141. package/dist/components/settings-list.d.ts +26 -0
  142. package/dist/components/settings-list.js +17 -0
  143. package/dist/components/sheet.d.ts +70 -0
  144. package/dist/components/sheet.js +77 -0
  145. package/dist/components/sidebar.d.ts +70 -0
  146. package/dist/components/sidebar.js +187 -0
  147. package/dist/components/skeleton.d.ts +31 -0
  148. package/dist/components/skeleton.js +32 -0
  149. package/dist/components/slider.d.ts +17 -0
  150. package/dist/components/slider.js +24 -0
  151. package/dist/components/spinner.d.ts +37 -0
  152. package/dist/components/spinner.js +43 -0
  153. package/dist/components/state-panel-samples.d.ts +25 -0
  154. package/dist/components/state-panel-samples.js +423 -0
  155. package/dist/components/state-panel.d.ts +35 -0
  156. package/dist/components/state-panel.js +29 -0
  157. package/dist/components/state-sample.d.ts +63 -0
  158. package/dist/components/state-sample.js +42 -0
  159. package/dist/components/switch.d.ts +12 -0
  160. package/dist/components/switch.js +14 -0
  161. package/dist/components/table-nuqs.d.ts +16 -0
  162. package/dist/components/table-nuqs.js +59 -0
  163. package/dist/components/table.d.ts +120 -0
  164. package/dist/components/table.js +663 -0
  165. package/dist/components/tabs.d.ts +37 -0
  166. package/dist/components/tabs.js +36 -0
  167. package/dist/components/textarea.d.ts +18 -0
  168. package/dist/components/textarea.js +19 -0
  169. package/dist/components/toast.d.ts +45 -0
  170. package/dist/components/toast.js +83 -0
  171. package/dist/components/toggle-group.d.ts +30 -0
  172. package/dist/components/toggle-group.js +39 -0
  173. package/dist/components/toggle.d.ts +27 -0
  174. package/dist/components/toggle.js +21 -0
  175. package/dist/components/tool-activity.d.ts +79 -0
  176. package/dist/components/tool-activity.js +226 -0
  177. package/dist/components/toolbar-status.d.ts +21 -0
  178. package/dist/components/toolbar-status.js +14 -0
  179. package/dist/components/tooltip.d.ts +31 -0
  180. package/dist/components/tooltip.js +99 -0
  181. package/dist/components/typed-text.d.ts +17 -0
  182. package/dist/components/typed-text.js +56 -0
  183. package/dist/index.d.ts +88 -0
  184. package/dist/index.js +88 -0
  185. package/dist/internal/brand-glyphs.d.ts +342 -0
  186. package/dist/internal/brand-glyphs.js +238 -0
  187. package/dist/internal/classes.d.ts +3 -0
  188. package/dist/internal/classes.js +20 -0
  189. package/dist/internal/fieldset.d.ts +6 -0
  190. package/dist/internal/fieldset.js +38 -0
  191. package/dist/internal/file-kind.d.ts +4 -0
  192. package/dist/internal/file-kind.js +62 -0
  193. package/dist/internal/languages.d.ts +7 -0
  194. package/dist/internal/languages.js +1010 -0
  195. package/dist/internal/message-scroller.d.ts +102 -0
  196. package/dist/internal/message-scroller.js +637 -0
  197. package/dist/internal/pressable.d.ts +2 -0
  198. package/dist/internal/pressable.js +29 -0
  199. package/dist/internal/syntax.d.ts +14 -0
  200. package/dist/internal/syntax.js +137 -0
  201. package/dist/styles/accordion.css +102 -0
  202. package/dist/styles/alert-dialog.css +198 -0
  203. package/dist/styles/alert.css +149 -0
  204. package/dist/styles/aspect-ratio.css +8 -0
  205. package/dist/styles/attachment.css +720 -0
  206. package/dist/styles/avatar.css +186 -0
  207. package/dist/styles/badge.css +178 -0
  208. package/dist/styles/brand-icon.css +104 -0
  209. package/dist/styles/breadcrumb.css +121 -0
  210. package/dist/styles/button-group.css +113 -0
  211. package/dist/styles/button.css +380 -0
  212. package/dist/styles/calendar.css +295 -0
  213. package/dist/styles/canvas.css +327 -0
  214. package/dist/styles/card.css +146 -0
  215. package/dist/styles/carousel.css +107 -0
  216. package/dist/styles/chart.css +227 -0
  217. package/dist/styles/chat-confirmation.css +29 -0
  218. package/dist/styles/chat-plan.css +109 -0
  219. package/dist/styles/chat-sources.css +191 -0
  220. package/dist/styles/checkbox.css +123 -0
  221. package/dist/styles/choice-list.css +343 -0
  222. package/dist/styles/code-block.css +211 -0
  223. package/dist/styles/collapsible.css +72 -0
  224. package/dist/styles/combobox.css +347 -0
  225. package/dist/styles/command.css +233 -0
  226. package/dist/styles/context-menu.css +151 -0
  227. package/dist/styles/dialog.css +237 -0
  228. package/dist/styles/dropdown-menu.css +150 -0
  229. package/dist/styles/field.css +341 -0
  230. package/dist/styles/file-viewer.css +278 -0
  231. package/dist/styles/form.css +155 -0
  232. package/dist/styles/glass-banner.css +308 -0
  233. package/dist/styles/gradient-banner.css +256 -0
  234. package/dist/styles/hover-card.css +95 -0
  235. package/dist/styles/index.css +262 -0
  236. package/dist/styles/input-group.css +290 -0
  237. package/dist/styles/input-otp.css +138 -0
  238. package/dist/styles/input.css +99 -0
  239. package/dist/styles/kbd.css +59 -0
  240. package/dist/styles/label.css +89 -0
  241. package/dist/styles/mention-list.css +166 -0
  242. package/dist/styles/menubar.css +226 -0
  243. package/dist/styles/message-actions.css +83 -0
  244. package/dist/styles/message-response.css +176 -0
  245. package/dist/styles/message-scroller.css +136 -0
  246. package/dist/styles/message.css +310 -0
  247. package/dist/styles/navigation-menu.css +291 -0
  248. package/dist/styles/notice-banner.css +68 -0
  249. package/dist/styles/page-content.css +21 -0
  250. package/dist/styles/page-header.css +156 -0
  251. package/dist/styles/pagination.css +72 -0
  252. package/dist/styles/plan-outline.css +393 -0
  253. package/dist/styles/popover.css +140 -0
  254. package/dist/styles/progress.css +93 -0
  255. package/dist/styles/prompt-list.css +165 -0
  256. package/dist/styles/questionnaire.css +323 -0
  257. package/dist/styles/radio-group.css +120 -0
  258. package/dist/styles/reasoning-effort.css +157 -0
  259. package/dist/styles/resizable.css +108 -0
  260. package/dist/styles/result-card.css +215 -0
  261. package/dist/styles/review-card.css +235 -0
  262. package/dist/styles/rich-text-editor.css +169 -0
  263. package/dist/styles/schema-diagram.css +419 -0
  264. package/dist/styles/scroll-area.css +77 -0
  265. package/dist/styles/search-dialog.css +363 -0
  266. package/dist/styles/search-field.css +17 -0
  267. package/dist/styles/select.css +285 -0
  268. package/dist/styles/selection-slot.css +31 -0
  269. package/dist/styles/separator.css +206 -0
  270. package/dist/styles/settings-list.css +81 -0
  271. package/dist/styles/sheet.css +361 -0
  272. package/dist/styles/sidebar.css +363 -0
  273. package/dist/styles/skeleton.css +80 -0
  274. package/dist/styles/slider.css +142 -0
  275. package/dist/styles/spinner.css +39 -0
  276. package/dist/styles/state-panel-samples.css +41 -0
  277. package/dist/styles/state-panel.css +182 -0
  278. package/dist/styles/state-sample.css +285 -0
  279. package/dist/styles/switch.css +128 -0
  280. package/dist/styles/table.css +604 -0
  281. package/dist/styles/tabs.css +223 -0
  282. package/dist/styles/textarea.css +78 -0
  283. package/dist/styles/themes/chatgpt.css +125 -0
  284. package/dist/styles/themes/claude.css +125 -0
  285. package/dist/styles/themes/cloudflare.css +125 -0
  286. package/dist/styles/themes/discord.css +125 -0
  287. package/dist/styles/themes/github.css +125 -0
  288. package/dist/styles/themes/grok.css +125 -0
  289. package/dist/styles/themes/linear.css +126 -0
  290. package/dist/styles/themes/neutral.css +125 -0
  291. package/dist/styles/themes/notion.css +125 -0
  292. package/dist/styles/themes/perplexity.css +125 -0
  293. package/dist/styles/themes/raycast.css +125 -0
  294. package/dist/styles/themes/spotify.css +125 -0
  295. package/dist/styles/themes/stripe.css +125 -0
  296. package/dist/styles/themes/supabase.css +125 -0
  297. package/dist/styles/themes/tulipfarm.css +125 -0
  298. package/dist/styles/themes/vercel.css +126 -0
  299. package/dist/styles/toast.css +197 -0
  300. package/dist/styles/toggle-group.css +161 -0
  301. package/dist/styles/toggle.css +119 -0
  302. package/dist/styles/tool-activity.css +396 -0
  303. package/dist/styles/toolbar-status.css +52 -0
  304. package/dist/styles/tooltip.css +122 -0
  305. package/dist/styles/typed-text.css +17 -0
  306. package/package.json +443 -4
@@ -0,0 +1,363 @@
1
+ @layer components {
2
+ .sprout-sidebar-layout {
3
+ display: flex;
4
+ min-width: 0;
5
+ isolation: isolate;
6
+ }
7
+ .sprout-sidebar-panel {
8
+ display: flex;
9
+ flex: 0 0 auto;
10
+ flex-direction: column;
11
+ width: var(--sprout-sidebar-width, 15.25rem);
12
+ min-height: 0;
13
+ color: var(--sprout-text);
14
+ border-inline-end: 1px solid var(--sprout-line);
15
+ }
16
+ .sprout-sidebar-panel[hidden] {
17
+ display: none;
18
+ }
19
+ .sprout-sidebar-panel[data-side="right"] {
20
+ border-inline-end: 0;
21
+ border-inline-start: 1px solid var(--sprout-line);
22
+ }
23
+ .sprout-sidebar-panel[data-state="collapsed"] {
24
+ width: var(--sprout-sidebar-icon-width, 3.5rem);
25
+ }
26
+ .sprout-sidebar-panel[data-collapsible="icon"],
27
+ .sprout-sidebar-panel[data-collapsible="offcanvas"] {
28
+ overflow: clip;
29
+ }
30
+ .sprout-sidebar-panel[data-offcanvas] {
31
+ width: 0;
32
+ border-inline-width: 0;
33
+ opacity: 0;
34
+ visibility: hidden;
35
+ }
36
+ .sprout-sidebar-header,
37
+ .sprout-sidebar-footer {
38
+ flex-shrink: 0;
39
+ padding: 12px 8px;
40
+ }
41
+ .sprout-sidebar-header {
42
+ border-bottom: 1px solid var(--sprout-line);
43
+ }
44
+ .sprout-input.sprout-sidebar-input:not(:disabled) {
45
+ background-color: var(--sprout-canvas);
46
+ }
47
+ .sprout-sidebar-footer {
48
+ border-top: 1px solid var(--sprout-line);
49
+ margin-top: auto;
50
+ }
51
+ .sprout-sidebar-content {
52
+ flex: 1;
53
+ min-height: 0;
54
+ overflow: auto;
55
+ overscroll-behavior: contain;
56
+ scrollbar-width: thin;
57
+ }
58
+ .sprout-sidebar-group {
59
+ padding: 16px 8px 0;
60
+ }
61
+ .sprout-separator.sprout-sidebar-separator {
62
+ width: auto;
63
+ margin-inline: 8px;
64
+ }
65
+ .sprout-sidebar-content > .sprout-sidebar-separator,
66
+ .sprout-sidebar-content > * > .sprout-sidebar-separator {
67
+ margin-top: 16px;
68
+ }
69
+ .sprout-sidebar-group:last-child {
70
+ padding-bottom: 16px;
71
+ }
72
+ .sprout-sidebar-group-label {
73
+ padding: 0 10px 8px;
74
+ color: var(--sprout-muted);
75
+ font-size: var(--sprout-text-xs);
76
+ line-height: 20px;
77
+ }
78
+ .sprout-sidebar-menu {
79
+ display: grid;
80
+ gap: 3px;
81
+ list-style: none;
82
+ margin: 0;
83
+ padding: 0;
84
+ }
85
+ .sprout-sidebar-menu-item {
86
+ position: relative;
87
+ min-width: 0;
88
+ }
89
+ .sprout-sidebar-menu-button,
90
+ .sprout-sidebar-menu-action,
91
+ .sprout-sidebar-trigger,
92
+ .sprout-sidebar-close {
93
+ font: inherit;
94
+ color: var(--sprout-text);
95
+ background: transparent;
96
+ border: 0;
97
+ border-radius: var(--sprout-radius-control);
98
+ cursor: pointer;
99
+ outline: none;
100
+ }
101
+ .sprout-sidebar-menu-button {
102
+ display: flex;
103
+ align-items: center;
104
+ gap: 10px;
105
+ min-width: 0;
106
+ width: 100%;
107
+ min-height: 34px;
108
+ padding: 7px 10px;
109
+ font-size: var(--sprout-text-sm);
110
+ font-weight: 450;
111
+ line-height: 20px;
112
+ text-align: start;
113
+ text-decoration: none;
114
+ color: var(--sprout-muted);
115
+ }
116
+ .sprout-sidebar-menu-button:hover,
117
+ .sprout-sidebar-menu-action:hover,
118
+ .sprout-sidebar-trigger:hover,
119
+ .sprout-sidebar-close:hover {
120
+ background: var(--sprout-hover);
121
+ color: var(--sprout-text);
122
+ }
123
+ .sprout-sidebar-menu-button[data-active] {
124
+ background: var(--sprout-hover);
125
+ color: var(--sprout-text);
126
+ font-weight: 550;
127
+ }
128
+ .sprout-sidebar-menu-button:focus-visible,
129
+ .sprout-sidebar-menu-action:focus-visible,
130
+ .sprout-sidebar-trigger:focus-visible,
131
+ .sprout-sidebar-close:focus-visible {
132
+ outline: 2px solid var(--sprout-focus);
133
+ outline-offset: -2px;
134
+ }
135
+ .sprout-sidebar-menu-button:disabled,
136
+ .sprout-sidebar-menu-button[data-disabled] {
137
+ opacity: 0.5;
138
+ cursor: not-allowed;
139
+ background: transparent;
140
+ }
141
+ .sprout-sidebar-icon {
142
+ display: inline-flex;
143
+ align-items: center;
144
+ justify-content: center;
145
+ flex-shrink: 0;
146
+ width: 18px;
147
+ height: 20px;
148
+ }
149
+ .sprout-sidebar-icon > svg {
150
+ width: 18px;
151
+ height: 18px;
152
+ }
153
+ .sprout-sidebar-label {
154
+ overflow: hidden;
155
+ text-overflow: ellipsis;
156
+ white-space: nowrap;
157
+ }
158
+ .sprout-sidebar-badge {
159
+ margin-inline-start: auto;
160
+ border-radius: 4px;
161
+ padding-inline: 5px;
162
+ background: var(--sprout-surface);
163
+ color: var(--sprout-muted);
164
+ font-size: 11px;
165
+ font-variant-numeric: tabular-nums;
166
+ }
167
+ .sprout-sidebar-menu-action {
168
+ display: grid;
169
+ place-items: center;
170
+ position: absolute;
171
+ inset-inline-end: 4px;
172
+ top: 3px;
173
+ width: 28px;
174
+ height: 28px;
175
+ }
176
+ .sprout-sidebar-menu-item:has(.sprout-sidebar-menu-action)
177
+ > .sprout-sidebar-menu-button,
178
+ .sprout-sidebar-section-heading > .sprout-sidebar-menu-button {
179
+ padding-inline-end: 36px;
180
+ }
181
+ .sprout-sidebar-section-heading {
182
+ position: relative;
183
+ }
184
+ .sprout-sidebar-chevron {
185
+ display: block;
186
+ }
187
+ .sprout-sidebar-menu-action[data-panel-open] .sprout-sidebar-chevron {
188
+ transform: rotate(90deg);
189
+ }
190
+ .sprout-sidebar-sub {
191
+ margin: 4px 0 6px 18px;
192
+ padding-left: 8px;
193
+ border-left: 1px solid var(--sprout-line);
194
+ }
195
+ .sprout-sidebar-sub-button {
196
+ min-height: 30px;
197
+ font-size: 12px;
198
+ padding-block: 5px;
199
+ }
200
+ .sprout-sidebar-section-content {
201
+ height: var(--collapsible-panel-height);
202
+ overflow: hidden;
203
+ }
204
+ .sprout-sidebar-section-content[data-starting-style],
205
+ .sprout-sidebar-section-content[data-ending-style] {
206
+ height: 0;
207
+ opacity: 0;
208
+ }
209
+ .sprout-sidebar-panel[data-state="collapsed"] .sprout-sidebar-label,
210
+ .sprout-sidebar-panel[data-state="collapsed"] .sprout-sidebar-badge,
211
+ .sprout-sidebar-panel[data-state="collapsed"] .sprout-sidebar-group-label,
212
+ .sprout-sidebar-panel[data-state="collapsed"] .sprout-sidebar-menu-action {
213
+ display: none;
214
+ }
215
+ .sprout-sidebar-panel[data-state="collapsed"] .sprout-sidebar-menu-button {
216
+ justify-content: center;
217
+ padding-inline: 0;
218
+ }
219
+ .sprout-sidebar-trigger {
220
+ display: inline-flex;
221
+ align-items: center;
222
+ justify-content: center;
223
+ gap: 8px;
224
+ min-width: 34px;
225
+ min-height: 34px;
226
+ padding: 7px;
227
+ font-size: var(--sprout-text-xs);
228
+ }
229
+ .sprout-sidebar-skeleton {
230
+ display: flex;
231
+ align-items: center;
232
+ gap: 10px;
233
+ min-height: 34px;
234
+ padding: 7px 10px;
235
+ }
236
+ .sprout-sidebar-skeleton span {
237
+ display: block;
238
+ height: 12px;
239
+ background: var(--sprout-line);
240
+ border-radius: 4px;
241
+ }
242
+ .sprout-sidebar-skeleton span:first-child {
243
+ width: 18px;
244
+ height: 18px;
245
+ flex-shrink: 0;
246
+ }
247
+ .sprout-sidebar-skeleton span:last-child {
248
+ width: 65%;
249
+ }
250
+ .sprout-sidebar-panel[data-state="collapsed"]
251
+ .sprout-sidebar-skeleton
252
+ span:last-child {
253
+ display: none;
254
+ }
255
+ .sprout-sidebar-backdrop {
256
+ position: fixed;
257
+ inset: 0;
258
+ z-index: 40;
259
+ background: var(--sprout-overlay);
260
+ }
261
+ .sprout-sidebar-drawer {
262
+ position: fixed;
263
+ inset-block: 0;
264
+ left: 0;
265
+ z-index: 50;
266
+ display: flex;
267
+ flex-direction: column;
268
+ width: min(var(--sprout-sidebar-mobile-width, 18rem), calc(100vw - 2rem));
269
+ background: var(--sprout-canvas);
270
+ box-shadow: var(--sprout-shadow-overlay);
271
+ outline: none;
272
+ }
273
+ .sprout-sidebar-drawer[data-side="right"] {
274
+ left: auto;
275
+ right: 0;
276
+ }
277
+ .sprout-sidebar-drawer-heading {
278
+ display: flex;
279
+ flex-shrink: 0;
280
+ align-items: center;
281
+ justify-content: space-between;
282
+ min-height: 56px;
283
+ padding: 8px 16px;
284
+ border-bottom: 1px solid var(--sprout-line);
285
+ font-size: var(--sprout-text-sm);
286
+ font-weight: 550;
287
+ }
288
+ .sprout-sidebar-close {
289
+ min-height: 40px;
290
+ padding: 8px;
291
+ font-size: var(--sprout-text-xs);
292
+ }
293
+ .sprout-sidebar-mobile {
294
+ width: 100%;
295
+ flex: 1;
296
+ border: 0;
297
+ overflow: hidden;
298
+ }
299
+ @media (max-width: 767px) {
300
+ .sprout-sidebar-menu-button,
301
+ .sprout-sidebar-menu-action,
302
+ .sprout-sidebar-trigger {
303
+ min-height: 44px;
304
+ }
305
+ .sprout-sidebar-menu-action {
306
+ width: 36px;
307
+ top: 0;
308
+ }
309
+ }
310
+ @media (prefers-reduced-motion: no-preference) {
311
+ .sprout-sidebar-panel[data-collapsible="icon"],
312
+ .sprout-sidebar-panel[data-collapsible="offcanvas"] {
313
+ transition:
314
+ width var(--sprout-motion-normal) var(--sprout-motion-ease),
315
+ opacity var(--sprout-motion-fast) ease-out,
316
+ visibility 0s;
317
+ }
318
+ .sprout-sidebar-panel[data-offcanvas] {
319
+ transition-delay: 0s, 0s, var(--sprout-motion-normal);
320
+ }
321
+ .sprout-sidebar-chevron {
322
+ transition: transform var(--sprout-motion-fast) var(--sprout-motion-ease);
323
+ }
324
+ .sprout-sidebar-section-content {
325
+ transition:
326
+ height var(--sprout-motion-normal) var(--sprout-motion-ease),
327
+ opacity var(--sprout-motion-fast) ease-out;
328
+ }
329
+ .sprout-sidebar-section-content[data-ending-style] {
330
+ transition-duration: var(--sprout-motion-fast);
331
+ }
332
+ .sprout-sidebar-menu-button,
333
+ .sprout-sidebar-menu-action,
334
+ .sprout-sidebar-trigger,
335
+ .sprout-sidebar-close {
336
+ transition:
337
+ background-color var(--sprout-motion-fast) ease-out,
338
+ color var(--sprout-motion-fast) ease-out;
339
+ }
340
+ .sprout-sidebar-drawer {
341
+ transition: transform var(--sprout-motion-normal)
342
+ var(--sprout-motion-ease);
343
+ }
344
+ .sprout-sidebar-drawer[data-ending-style] {
345
+ transition-duration: var(--sprout-motion-fast);
346
+ }
347
+ .sprout-sidebar-drawer[data-starting-style],
348
+ .sprout-sidebar-drawer[data-ending-style] {
349
+ transform: translateX(-100%);
350
+ }
351
+ .sprout-sidebar-drawer[data-side="right"][data-starting-style],
352
+ .sprout-sidebar-drawer[data-side="right"][data-ending-style] {
353
+ transform: translateX(100%);
354
+ }
355
+ .sprout-sidebar-backdrop {
356
+ transition: opacity var(--sprout-motion-fast) ease-out;
357
+ }
358
+ .sprout-sidebar-backdrop[data-starting-style],
359
+ .sprout-sidebar-backdrop[data-ending-style] {
360
+ opacity: 0;
361
+ }
362
+ }
363
+ }
@@ -0,0 +1,80 @@
1
+ @layer components {
2
+ .sprout-skeleton {
3
+ box-sizing: border-box;
4
+ display: block;
5
+ flex-shrink: 0;
6
+ width: 100%;
7
+ height: 16px;
8
+ border-radius: calc(var(--sprout-radius-control) - 2px);
9
+ background: var(--sprout-secondary);
10
+ pointer-events: none;
11
+ user-select: none;
12
+ }
13
+ .sprout-skeleton[data-shape="title"] {
14
+ width: 66.6667%;
15
+ height: 24px;
16
+ }
17
+ .sprout-skeleton[data-shape="avatar"] {
18
+ width: 32px;
19
+ height: 32px;
20
+ border-radius: 9999px;
21
+ }
22
+ .sprout-skeleton[data-shape="panel"] {
23
+ height: 128px;
24
+ border-radius: var(--sprout-radius-control);
25
+ }
26
+ .sprout-skeleton[data-shape="checkbox"] {
27
+ width: 16px;
28
+ height: 16px;
29
+ border-radius: 4px;
30
+ }
31
+ .sprout-skeleton[data-shape="action"] {
32
+ width: 28px;
33
+ height: 28px;
34
+ }
35
+
36
+ .sprout-skeleton-group {
37
+ display: flex;
38
+ flex-direction: column;
39
+ gap: 12px;
40
+ min-width: 0;
41
+ }
42
+ .sprout-skeleton-group[data-gap="sm"] {
43
+ gap: 8px;
44
+ }
45
+ .sprout-skeleton-group[data-gap="lg"] {
46
+ gap: 16px;
47
+ }
48
+ .sprout-skeleton-group-label {
49
+ position: absolute;
50
+ width: 1px;
51
+ height: 1px;
52
+ margin: -1px;
53
+ padding: 0;
54
+ overflow: hidden;
55
+ clip-path: inset(50%);
56
+ white-space: nowrap;
57
+ }
58
+
59
+ @media (prefers-reduced-motion: no-preference) {
60
+ .sprout-skeleton {
61
+ animation: sprout-skeleton-pulse 1.6s cubic-bezier(0.4, 0, 0.6, 1)
62
+ infinite;
63
+ transition: background-color var(--sprout-motion-fast)
64
+ var(--sprout-motion-ease);
65
+ }
66
+ }
67
+
68
+ @media (forced-colors: active) {
69
+ .sprout-skeleton {
70
+ border: 1px solid GrayText;
71
+ background: Canvas;
72
+ }
73
+ }
74
+ }
75
+
76
+ @keyframes sprout-skeleton-pulse {
77
+ 50% {
78
+ opacity: 0.5;
79
+ }
80
+ }
@@ -0,0 +1,142 @@
1
+ @layer components {
2
+ .sprout-slider {
3
+ --sprout-slider-thumb: #fff;
4
+ --sprout-slider-ring: color-mix(
5
+ in oklab,
6
+ var(--sprout-focus) 50%,
7
+ transparent
8
+ );
9
+ display: block;
10
+ width: 100%;
11
+ }
12
+ .sprout-slider[data-orientation="vertical"] {
13
+ width: auto;
14
+ height: 100%;
15
+ }
16
+
17
+ /* 6px of padding makes a 24px tall hit area around the 12px thumb. */
18
+ .sprout-slider-control {
19
+ position: relative;
20
+ display: flex;
21
+ align-items: center;
22
+ box-sizing: border-box;
23
+ width: 100%;
24
+ padding-block: 6px;
25
+ touch-action: none;
26
+ user-select: none;
27
+ cursor: pointer;
28
+ }
29
+ .sprout-slider-control[data-orientation="vertical"] {
30
+ flex-direction: column;
31
+ width: auto;
32
+ height: 100%;
33
+ min-height: 160px;
34
+ padding-block: 0;
35
+ padding-inline: 6px;
36
+ }
37
+ .sprout-slider-control[data-disabled],
38
+ :where(fieldset:disabled) .sprout-slider-control {
39
+ cursor: not-allowed;
40
+ opacity: 0.5;
41
+ }
42
+
43
+ .sprout-slider-track {
44
+ position: relative;
45
+ flex-grow: 1;
46
+ overflow: hidden;
47
+ border-radius: 999px;
48
+ background-color: var(--sprout-input);
49
+ user-select: none;
50
+ }
51
+ .sprout-slider-track[data-orientation="horizontal"] {
52
+ width: 100%;
53
+ height: 4px;
54
+ }
55
+ .sprout-slider-track[data-orientation="vertical"] {
56
+ width: 4px;
57
+ height: 100%;
58
+ }
59
+
60
+ .sprout-slider-range {
61
+ background-color: var(--sprout-primary);
62
+ user-select: none;
63
+ }
64
+ .sprout-slider-range[data-orientation="horizontal"] {
65
+ height: 100%;
66
+ }
67
+ .sprout-slider-range[data-orientation="vertical"] {
68
+ width: 100%;
69
+ }
70
+
71
+ .sprout-slider-thumb {
72
+ position: relative;
73
+ display: block;
74
+ flex-shrink: 0;
75
+ box-sizing: border-box;
76
+ width: 12px;
77
+ height: 12px;
78
+ border: 1px solid var(--sprout-focus);
79
+ border-radius: 999px;
80
+ background-color: var(--sprout-slider-thumb);
81
+ box-shadow: 0 1px 2px rgb(0 0 0 / 0.12);
82
+ outline: 0 solid transparent;
83
+ user-select: none;
84
+ }
85
+ /* A 28px hit area around the thumb. */
86
+ .sprout-slider-thumb::after {
87
+ content: "";
88
+ position: absolute;
89
+ inset: -8px;
90
+ }
91
+ .sprout-slider-thumb:hover,
92
+ .sprout-slider-thumb:has(:focus-visible),
93
+ .sprout-slider-thumb[data-dragging] {
94
+ box-shadow:
95
+ 0 1px 2px rgb(0 0 0 / 0.12),
96
+ 0 0 0 3px var(--sprout-slider-ring);
97
+ }
98
+ .sprout-slider-thumb[data-invalid] {
99
+ --sprout-slider-ring: color-mix(
100
+ in oklab,
101
+ var(--sprout-danger) 30%,
102
+ transparent
103
+ );
104
+ border-color: var(--sprout-danger);
105
+ }
106
+ .sprout-slider-thumb[data-disabled],
107
+ :where(fieldset:disabled) .sprout-slider-thumb {
108
+ pointer-events: none;
109
+ box-shadow: 0 1px 2px rgb(0 0 0 / 0.12);
110
+ }
111
+
112
+ @media (prefers-reduced-motion: no-preference) {
113
+ .sprout-slider-thumb {
114
+ transition:
115
+ box-shadow var(--sprout-motion-fast, 120ms)
116
+ var(--sprout-motion-ease, ease-out),
117
+ border-color var(--sprout-motion-fast, 120ms)
118
+ var(--sprout-motion-ease, ease-out);
119
+ }
120
+ }
121
+
122
+ @media (forced-colors: active) {
123
+ .sprout-slider-track {
124
+ border: 1px solid CanvasText;
125
+ background-color: Canvas;
126
+ }
127
+ .sprout-slider-range {
128
+ background-color: Highlight;
129
+ }
130
+ .sprout-slider-thumb {
131
+ border-color: CanvasText;
132
+ background-color: Canvas;
133
+ }
134
+ .sprout-slider-thumb:has(:focus-visible) {
135
+ outline: 2px solid Highlight;
136
+ outline-offset: 2px;
137
+ }
138
+ .sprout-slider-control[data-disabled] .sprout-slider-range {
139
+ background-color: GrayText;
140
+ }
141
+ }
142
+ }
@@ -0,0 +1,39 @@
1
+ @layer components {
2
+ /* The class name holds "size-", so buttons keep the spinner's own size. */
3
+ .sprout-spinner {
4
+ display: inline-block;
5
+ flex-shrink: 0;
6
+ width: 16px;
7
+ height: 16px;
8
+ color: inherit;
9
+ vertical-align: -0.125em;
10
+ pointer-events: none;
11
+ }
12
+ .sprout-spinner-size-sm {
13
+ width: 12px;
14
+ height: 12px;
15
+ }
16
+ .sprout-spinner-size-lg {
17
+ width: 20px;
18
+ height: 20px;
19
+ }
20
+ .sprout-spinner-size-xl {
21
+ width: 64px;
22
+ height: 64px;
23
+ }
24
+ .sprout-spinner[data-variant="thinking"] {
25
+ vertical-align: middle;
26
+ }
27
+
28
+ @media (prefers-reduced-motion: no-preference) {
29
+ .sprout-spinner[data-variant="default"] {
30
+ animation: sprout-spinner-spin 1s linear infinite;
31
+ }
32
+ }
33
+ }
34
+
35
+ @keyframes sprout-spinner-spin {
36
+ to {
37
+ transform: rotate(360deg);
38
+ }
39
+ }
@@ -0,0 +1,41 @@
1
+ @layer components {
2
+ .sprout-state-panel-samples-group {
3
+ margin: 0;
4
+ padding: 1rem 1rem 0.5rem;
5
+ font-weight: 500;
6
+ color: var(--sprout-text);
7
+ }
8
+ .sprout-state-panel-samples-chat {
9
+ display: flex;
10
+ min-width: 0;
11
+ flex-direction: column;
12
+ gap: 0.75rem;
13
+ padding: 1rem;
14
+ }
15
+ .sprout-state-panel-samples-bubble {
16
+ max-width: min(18rem, 100%);
17
+ margin: 0 0 0 auto;
18
+ padding: 0.5rem 0.75rem;
19
+ border-radius: 0.75rem;
20
+ background: var(--sprout-hover);
21
+ color: var(--sprout-text);
22
+ }
23
+ .sprout-state-panel-samples-reply {
24
+ max-width: min(20rem, 100%);
25
+ margin: 0;
26
+ }
27
+ .sprout-state-panel-samples-reply strong {
28
+ font-weight: 500;
29
+ color: var(--sprout-text);
30
+ }
31
+ .sprout-state-panel-samples-schema {
32
+ max-width: min(20rem, 100%);
33
+ min-width: 0;
34
+ overflow: hidden;
35
+ border: 1px solid var(--sprout-line);
36
+ border-radius: 0.5rem;
37
+ }
38
+ .sprout-state-panel-samples-schema .sprout-state-sample-row:last-child {
39
+ border-bottom: 0;
40
+ }
41
+ }