@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,278 @@
1
+ @layer components {
2
+ .sprout-file-viewer-header {
3
+ display: flex;
4
+ flex-shrink: 0;
5
+ align-items: center;
6
+ gap: 0.75rem;
7
+ padding: 0.75rem 1rem;
8
+ border-bottom: 1px solid var(--sprout-line);
9
+ background: var(--sprout-surface);
10
+ }
11
+ @media (min-width: 640px) {
12
+ .sprout-file-viewer-header {
13
+ padding-inline: 1.5rem;
14
+ }
15
+ }
16
+ .sprout-file-viewer-heading {
17
+ display: grid;
18
+ flex: 1;
19
+ gap: 2px;
20
+ min-width: 0;
21
+ }
22
+ .sprout-file-viewer-truncate {
23
+ display: block;
24
+ overflow: hidden;
25
+ white-space: nowrap;
26
+ text-overflow: ellipsis;
27
+ }
28
+
29
+ .sprout-file-viewer-surface {
30
+ display: flex;
31
+ flex: 1;
32
+ flex-direction: column;
33
+ min-height: 0;
34
+ overflow: hidden;
35
+ background: var(--sprout-canvas);
36
+ color: var(--sprout-text);
37
+ font-family: var(--sprout-font);
38
+ font-size: var(--sprout-text-sm);
39
+ }
40
+
41
+ .sprout-file-viewer-toolbar {
42
+ display: flex;
43
+ flex-shrink: 0;
44
+ flex-wrap: wrap;
45
+ align-items: center;
46
+ justify-content: flex-end;
47
+ gap: 0.5rem;
48
+ padding: 0.5rem 1rem;
49
+ border-bottom: 1px solid var(--sprout-line);
50
+ }
51
+ .sprout-file-viewer-toolbar[data-align="center"] {
52
+ justify-content: center;
53
+ padding: 0.5rem;
54
+ }
55
+
56
+ .sprout-file-content {
57
+ position: relative;
58
+ display: flex;
59
+ flex: 1;
60
+ flex-direction: column;
61
+ min-height: 0;
62
+ overflow: auto;
63
+ color: var(--sprout-text);
64
+ font-family: var(--sprout-font);
65
+ font-size: var(--sprout-text-sm);
66
+ }
67
+
68
+ .sprout-file-text {
69
+ display: flex;
70
+ flex: 1;
71
+ flex-direction: column;
72
+ min-height: 0;
73
+ }
74
+ .sprout-file-text > .sprout-code-block {
75
+ flex: 1;
76
+ }
77
+ .sprout-file-text-bar {
78
+ display: flex;
79
+ flex-shrink: 0;
80
+ justify-content: flex-end;
81
+ padding: 0.5rem 1rem;
82
+ border-bottom: 1px solid var(--sprout-line);
83
+ }
84
+ .sprout-file-text-alert {
85
+ flex-shrink: 0;
86
+ margin: 0;
87
+ padding: 0.625rem 1rem;
88
+ border-bottom: 1px solid var(--sprout-line);
89
+ font-size: var(--sprout-text-sm);
90
+ color: var(--sprout-danger);
91
+ }
92
+ .sprout-file-text-scroll {
93
+ flex: 1;
94
+ min-height: 0;
95
+ overflow: auto;
96
+ padding: 1rem;
97
+ }
98
+ .sprout-file-text-scroll:focus-visible {
99
+ outline: 2px solid var(--sprout-focus);
100
+ outline-offset: -2px;
101
+ }
102
+ .sprout-file-text-page {
103
+ box-sizing: border-box;
104
+ max-width: 56rem;
105
+ min-width: 0;
106
+ margin-inline: auto;
107
+ padding: 1.25rem;
108
+ border: 1px solid var(--sprout-line);
109
+ border-radius: var(--sprout-radius-panel);
110
+ background: var(--sprout-surface);
111
+ overflow-wrap: anywhere;
112
+ }
113
+ @media (min-width: 640px) {
114
+ .sprout-file-text-scroll {
115
+ padding: 2rem;
116
+ }
117
+ .sprout-file-text-page {
118
+ padding: 2rem;
119
+ }
120
+ }
121
+
122
+ .sprout-file-image-stage {
123
+ display: flex;
124
+ flex: 1;
125
+ min-height: 0;
126
+ overflow: auto;
127
+ padding: 1rem;
128
+ }
129
+ .sprout-file-image-stage:focus-visible {
130
+ outline: 2px solid var(--sprout-focus);
131
+ outline-offset: -2px;
132
+ }
133
+ .sprout-file-image {
134
+ margin: auto;
135
+ max-width: 100%;
136
+ max-height: 100%;
137
+ object-fit: contain;
138
+ transition: opacity var(--sprout-motion-normal, 180ms)
139
+ var(--sprout-motion-ease, ease);
140
+ }
141
+ .sprout-file-image[data-state="loading"] {
142
+ opacity: 0;
143
+ }
144
+ .sprout-file-image-stage[data-zoom="actual"] .sprout-file-image {
145
+ flex-shrink: 0;
146
+ max-width: none;
147
+ max-height: none;
148
+ }
149
+
150
+ .sprout-file-google-link {
151
+ padding: 0.5rem 1rem;
152
+ font-size: var(--sprout-text-sm);
153
+ }
154
+ .sprout-file-google-link a {
155
+ color: var(--sprout-primary);
156
+ text-decoration: underline;
157
+ text-underline-offset: 2px;
158
+ border-radius: 2px;
159
+ }
160
+ .sprout-file-google-link a:focus-visible {
161
+ outline: 2px solid var(--sprout-focus);
162
+ outline-offset: 2px;
163
+ }
164
+
165
+ .sprout-file-embed {
166
+ position: relative;
167
+ display: flex;
168
+ flex: 1;
169
+ flex-direction: column;
170
+ min-height: 0;
171
+ }
172
+ .sprout-file-embed-notice {
173
+ flex-shrink: 0;
174
+ margin: 0;
175
+ padding: 0.5rem 1rem;
176
+ border-bottom: 1px solid var(--sprout-line);
177
+ background: var(--sprout-surface);
178
+ font-size: var(--sprout-text-xs);
179
+ line-height: 1rem;
180
+ color: var(--sprout-muted);
181
+ }
182
+ .sprout-file-embed-loading {
183
+ position: absolute;
184
+ inset-inline: 0;
185
+ top: 3rem;
186
+ z-index: 10;
187
+ pointer-events: none;
188
+ }
189
+ .sprout-file-embed-slow {
190
+ display: flex;
191
+ flex-shrink: 0;
192
+ flex-wrap: wrap;
193
+ align-items: center;
194
+ justify-content: center;
195
+ gap: 0.75rem;
196
+ padding: 0.75rem;
197
+ background: var(--sprout-surface);
198
+ animation: sprout-file-viewer-in var(--sprout-motion-fast, 120ms)
199
+ var(--sprout-motion-ease, ease) both;
200
+ }
201
+ .sprout-file-embed-slow p {
202
+ margin: 0;
203
+ font-size: var(--sprout-text-sm);
204
+ }
205
+ .sprout-file-embed-frame {
206
+ flex: 1;
207
+ width: 100%;
208
+ min-height: 0;
209
+ border: 0;
210
+ background: var(--sprout-surface);
211
+ }
212
+
213
+ @keyframes sprout-file-viewer-in {
214
+ from {
215
+ opacity: 0;
216
+ }
217
+ }
218
+
219
+ @media (prefers-reduced-motion: reduce) {
220
+ .sprout-file-image,
221
+ .sprout-file-embed-slow {
222
+ transition: none;
223
+ animation: none;
224
+ }
225
+ }
226
+
227
+ .sprout-file-preview {
228
+ display: flex;
229
+ flex-direction: column;
230
+ box-sizing: border-box;
231
+ min-height: 0;
232
+ max-height: 14rem;
233
+ overflow: hidden;
234
+ color: var(--sprout-text);
235
+ font-family: var(--sprout-font);
236
+ }
237
+ .sprout-file-preview[data-kind="image"] {
238
+ align-items: center;
239
+ justify-content: center;
240
+ }
241
+ .sprout-file-preview-image {
242
+ display: block;
243
+ max-width: 100%;
244
+ max-height: 14rem;
245
+ border-radius: calc(var(--sprout-radius-panel) - 4px);
246
+ object-fit: contain;
247
+ }
248
+ .sprout-file-preview-state {
249
+ display: flex;
250
+ align-items: center;
251
+ justify-content: center;
252
+ gap: 8px;
253
+ min-height: 5rem;
254
+ color: var(--sprout-muted);
255
+ font-size: var(--sprout-text-xs);
256
+ }
257
+ .sprout-file-viewer-steps {
258
+ display: flex;
259
+ flex-shrink: 0;
260
+ align-items: center;
261
+ gap: 2px;
262
+ }
263
+ .sprout-file-viewer-position {
264
+ min-width: 3.5rem;
265
+ color: var(--sprout-muted);
266
+ font-size: var(--sprout-text-xs);
267
+ font-variant-numeric: tabular-nums;
268
+ text-align: center;
269
+ }
270
+ .sprout-file-viewer-sr-only {
271
+ position: absolute;
272
+ width: 1px;
273
+ height: 1px;
274
+ overflow: hidden;
275
+ clip-path: inset(50%);
276
+ white-space: nowrap;
277
+ }
278
+ }
@@ -0,0 +1,155 @@
1
+ @layer components {
2
+ .sprout-form {
3
+ min-width: 0;
4
+ }
5
+
6
+ .sprout-form-section {
7
+ display: grid;
8
+ gap: 1rem;
9
+ min-width: 0;
10
+ padding: 1rem;
11
+ border: 1px solid var(--sprout-line);
12
+ border-radius: var(--sprout-radius-panel);
13
+ background: var(--sprout-surface);
14
+ color: var(--sprout-text);
15
+ font-family: var(--sprout-font);
16
+ }
17
+ @media (min-width: 40rem) {
18
+ .sprout-form-section {
19
+ padding: 1.25rem;
20
+ }
21
+ }
22
+ .sprout-form-section-header {
23
+ display: flex;
24
+ flex-wrap: wrap;
25
+ align-items: flex-start;
26
+ justify-content: space-between;
27
+ gap: 0.5rem 1rem;
28
+ }
29
+ .sprout-form-section-text {
30
+ display: grid;
31
+ gap: 0.25rem;
32
+ flex: 1 1 16rem;
33
+ min-width: 0;
34
+ overflow-wrap: anywhere;
35
+ }
36
+ .sprout-form-section-title {
37
+ margin: 0;
38
+ color: var(--sprout-text);
39
+ font-size: var(--sprout-text-base);
40
+ font-weight: 500;
41
+ line-height: 1.5rem;
42
+ letter-spacing: normal;
43
+ }
44
+ .sprout-form-section-description {
45
+ margin: 0;
46
+ color: var(--sprout-muted);
47
+ font-size: var(--sprout-text-sm);
48
+ line-height: 1.25rem;
49
+ }
50
+ .sprout-form-section-content {
51
+ display: grid;
52
+ gap: 1.25rem;
53
+ min-width: 0;
54
+ }
55
+
56
+ .sprout-form-footer {
57
+ display: grid;
58
+ gap: 0.75rem;
59
+ min-width: 0;
60
+ color: var(--sprout-text);
61
+ font-family: var(--sprout-font);
62
+ }
63
+ .sprout-form-footer[data-layout="bar"] {
64
+ padding-top: 1rem;
65
+ border-top: 1px solid var(--sprout-line);
66
+ }
67
+ .sprout-form-footer[data-layout="compact"] {
68
+ padding-top: 0.75rem;
69
+ }
70
+ .sprout-form-footer-row {
71
+ display: flex;
72
+ flex-wrap: wrap;
73
+ align-items: center;
74
+ justify-content: space-between;
75
+ gap: 0.5rem 1rem;
76
+ min-width: 0;
77
+ }
78
+ .sprout-form-footer[data-layout="compact"] .sprout-form-footer-row {
79
+ column-gap: 0.25rem;
80
+ }
81
+ .sprout-form-footer-status {
82
+ display: grid;
83
+ gap: 0.25rem;
84
+ min-width: 0;
85
+ }
86
+ .sprout-form-footer-actions {
87
+ display: flex;
88
+ flex-wrap: wrap;
89
+ align-items: center;
90
+ gap: 0.5rem;
91
+ min-width: 0;
92
+ margin-left: auto;
93
+ }
94
+ .sprout-form-footer-stack {
95
+ display: grid;
96
+ gap: 0.5rem;
97
+ }
98
+ .sprout-form-footer-wide {
99
+ width: 100%;
100
+ }
101
+ .sprout-form-footer-dirty,
102
+ .sprout-form-footer-note,
103
+ .sprout-action-reason {
104
+ margin: 0;
105
+ font-size: var(--sprout-text-sm);
106
+ line-height: 1.25rem;
107
+ overflow-wrap: anywhere;
108
+ }
109
+ .sprout-form-footer-dirty {
110
+ display: flex;
111
+ align-items: center;
112
+ gap: 0.5rem;
113
+ color: var(--sprout-text);
114
+ }
115
+ .sprout-form-footer-dirty-dot {
116
+ flex-shrink: 0;
117
+ width: 0.5rem;
118
+ height: 0.5rem;
119
+ border-radius: 999px;
120
+ background: var(--sprout-warning);
121
+ }
122
+ .sprout-form-footer-note {
123
+ color: var(--sprout-muted);
124
+ }
125
+ .sprout-form-footer-sr-only {
126
+ position: absolute;
127
+ width: 1px;
128
+ height: 1px;
129
+ margin: -1px;
130
+ padding: 0;
131
+ overflow: hidden;
132
+ clip: rect(0, 0, 0, 0);
133
+ white-space: nowrap;
134
+ border: 0;
135
+ }
136
+
137
+ .sprout-action-reason {
138
+ display: flex;
139
+ flex-wrap: wrap;
140
+ align-items: center;
141
+ column-gap: 0.25rem;
142
+ color: var(--sprout-muted);
143
+ }
144
+
145
+ @media (prefers-reduced-motion: no-preference) {
146
+ .sprout-form-footer-dirty,
147
+ .sprout-action-reason,
148
+ .sprout-form-footer > .sprout-alert {
149
+ transition: opacity var(--sprout-motion-normal) var(--sprout-motion-ease);
150
+ @starting-style {
151
+ opacity: 0;
152
+ }
153
+ }
154
+ }
155
+ }