@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.
Files changed (314) 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 +82 -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-input.d.ts +94 -0
  38. package/dist/components/chat-input.js +279 -0
  39. package/dist/components/chat-plan.d.ts +21 -0
  40. package/dist/components/chat-plan.js +35 -0
  41. package/dist/components/chat-sources.d.ts +64 -0
  42. package/dist/components/chat-sources.js +66 -0
  43. package/dist/components/checkbox.d.ts +16 -0
  44. package/dist/components/checkbox.js +17 -0
  45. package/dist/components/choice-list.d.ts +53 -0
  46. package/dist/components/choice-list.js +36 -0
  47. package/dist/components/code-block.d.ts +35 -0
  48. package/dist/components/code-block.js +64 -0
  49. package/dist/components/collapsible.d.ts +24 -0
  50. package/dist/components/collapsible.js +27 -0
  51. package/dist/components/combobox.d.ts +95 -0
  52. package/dist/components/combobox.js +106 -0
  53. package/dist/components/command.d.ts +94 -0
  54. package/dist/components/command.js +414 -0
  55. package/dist/components/context-menu.d.ts +57 -0
  56. package/dist/components/context-menu.js +60 -0
  57. package/dist/components/dialog.d.ts +60 -0
  58. package/dist/components/dialog.js +79 -0
  59. package/dist/components/direction.d.ts +6 -0
  60. package/dist/components/direction.js +6 -0
  61. package/dist/components/dropdown-menu.d.ts +62 -0
  62. package/dist/components/dropdown-menu.js +59 -0
  63. package/dist/components/field.d.ts +117 -0
  64. package/dist/components/field.js +150 -0
  65. package/dist/components/file-explorer.d.ts +27 -0
  66. package/dist/components/file-explorer.js +300 -0
  67. package/dist/components/file-viewer.d.ts +137 -0
  68. package/dist/components/file-viewer.js +400 -0
  69. package/dist/components/form.d.ts +87 -0
  70. package/dist/components/form.js +55 -0
  71. package/dist/components/glass-banner.d.ts +27 -0
  72. package/dist/components/glass-banner.js +116 -0
  73. package/dist/components/gradient-banner.d.ts +37 -0
  74. package/dist/components/gradient-banner.js +43 -0
  75. package/dist/components/hover-card.d.ts +27 -0
  76. package/dist/components/hover-card.js +26 -0
  77. package/dist/components/input-group.d.ts +68 -0
  78. package/dist/components/input-group.js +88 -0
  79. package/dist/components/input-otp.d.ts +38 -0
  80. package/dist/components/input-otp.js +43 -0
  81. package/dist/components/input.d.ts +16 -0
  82. package/dist/components/input.js +18 -0
  83. package/dist/components/kbd.d.ts +12 -0
  84. package/dist/components/kbd.js +11 -0
  85. package/dist/components/label.d.ts +8 -0
  86. package/dist/components/label.js +10 -0
  87. package/dist/components/mention-list.d.ts +54 -0
  88. package/dist/components/mention-list.js +31 -0
  89. package/dist/components/menubar.d.ts +64 -0
  90. package/dist/components/menubar.js +68 -0
  91. package/dist/components/message-actions.d.ts +34 -0
  92. package/dist/components/message-actions.js +68 -0
  93. package/dist/components/message-response.d.ts +20 -0
  94. package/dist/components/message-response.js +46 -0
  95. package/dist/components/message-scroller.d.ts +71 -0
  96. package/dist/components/message-scroller.js +217 -0
  97. package/dist/components/message.d.ts +49 -0
  98. package/dist/components/message.js +59 -0
  99. package/dist/components/navigation-menu.d.ts +45 -0
  100. package/dist/components/navigation-menu.js +54 -0
  101. package/dist/components/notice-banner.d.ts +14 -0
  102. package/dist/components/notice-banner.js +11 -0
  103. package/dist/components/page-content.d.ts +7 -0
  104. package/dist/components/page-content.js +9 -0
  105. package/dist/components/page-header.d.ts +37 -0
  106. package/dist/components/page-header.js +53 -0
  107. package/dist/components/pagination.d.ts +29 -0
  108. package/dist/components/pagination.js +29 -0
  109. package/dist/components/plan-outline.d.ts +60 -0
  110. package/dist/components/plan-outline.js +108 -0
  111. package/dist/components/popover.d.ts +34 -0
  112. package/dist/components/popover.js +35 -0
  113. package/dist/components/progress.d.ts +27 -0
  114. package/dist/components/progress.js +35 -0
  115. package/dist/components/prompt-list.d.ts +23 -0
  116. package/dist/components/prompt-list.js +11 -0
  117. package/dist/components/questionnaire.d.ts +148 -0
  118. package/dist/components/questionnaire.js +1002 -0
  119. package/dist/components/radio-group.d.ts +16 -0
  120. package/dist/components/radio-group.js +21 -0
  121. package/dist/components/reasoning-effort.d.ts +24 -0
  122. package/dist/components/reasoning-effort.js +269 -0
  123. package/dist/components/resizable.d.ts +67 -0
  124. package/dist/components/resizable.js +536 -0
  125. package/dist/components/result-card.d.ts +58 -0
  126. package/dist/components/result-card.js +88 -0
  127. package/dist/components/review-card.d.ts +62 -0
  128. package/dist/components/review-card.js +49 -0
  129. package/dist/components/rich-text-editor.d.ts +51 -0
  130. package/dist/components/rich-text-editor.js +248 -0
  131. package/dist/components/schema-diagram.d.ts +52 -0
  132. package/dist/components/schema-diagram.js +226 -0
  133. package/dist/components/scroll-area.d.ts +22 -0
  134. package/dist/components/scroll-area.js +19 -0
  135. package/dist/components/search-dialog.d.ts +103 -0
  136. package/dist/components/search-dialog.js +65 -0
  137. package/dist/components/search-field.d.ts +17 -0
  138. package/dist/components/search-field.js +27 -0
  139. package/dist/components/select.d.ts +57 -0
  140. package/dist/components/select.js +57 -0
  141. package/dist/components/selection-slot.d.ts +18 -0
  142. package/dist/components/selection-slot.js +53 -0
  143. package/dist/components/separator.d.ts +48 -0
  144. package/dist/components/separator.js +54 -0
  145. package/dist/components/settings-list.d.ts +26 -0
  146. package/dist/components/settings-list.js +17 -0
  147. package/dist/components/sheet.d.ts +70 -0
  148. package/dist/components/sheet.js +77 -0
  149. package/dist/components/sidebar.d.ts +70 -0
  150. package/dist/components/sidebar.js +187 -0
  151. package/dist/components/skeleton.d.ts +31 -0
  152. package/dist/components/skeleton.js +32 -0
  153. package/dist/components/slider.d.ts +17 -0
  154. package/dist/components/slider.js +24 -0
  155. package/dist/components/spinner.d.ts +37 -0
  156. package/dist/components/spinner.js +43 -0
  157. package/dist/components/state-panel-samples.d.ts +25 -0
  158. package/dist/components/state-panel-samples.js +423 -0
  159. package/dist/components/state-panel.d.ts +35 -0
  160. package/dist/components/state-panel.js +29 -0
  161. package/dist/components/state-sample.d.ts +63 -0
  162. package/dist/components/state-sample.js +42 -0
  163. package/dist/components/switch.d.ts +12 -0
  164. package/dist/components/switch.js +14 -0
  165. package/dist/components/table-nuqs.d.ts +16 -0
  166. package/dist/components/table-nuqs.js +59 -0
  167. package/dist/components/table.d.ts +120 -0
  168. package/dist/components/table.js +663 -0
  169. package/dist/components/tabs.d.ts +37 -0
  170. package/dist/components/tabs.js +36 -0
  171. package/dist/components/textarea.d.ts +18 -0
  172. package/dist/components/textarea.js +19 -0
  173. package/dist/components/toast.d.ts +45 -0
  174. package/dist/components/toast.js +83 -0
  175. package/dist/components/toggle-group.d.ts +30 -0
  176. package/dist/components/toggle-group.js +39 -0
  177. package/dist/components/toggle.d.ts +27 -0
  178. package/dist/components/toggle.js +21 -0
  179. package/dist/components/tool-activity.d.ts +79 -0
  180. package/dist/components/tool-activity.js +226 -0
  181. package/dist/components/toolbar-status.d.ts +21 -0
  182. package/dist/components/toolbar-status.js +14 -0
  183. package/dist/components/tooltip.d.ts +31 -0
  184. package/dist/components/tooltip.js +99 -0
  185. package/dist/components/typed-text.d.ts +17 -0
  186. package/dist/components/typed-text.js +56 -0
  187. package/dist/index.d.ts +90 -0
  188. package/dist/index.js +90 -0
  189. package/dist/internal/brand-glyphs.d.ts +370 -0
  190. package/dist/internal/brand-glyphs.js +262 -0
  191. package/dist/internal/classes.d.ts +3 -0
  192. package/dist/internal/classes.js +20 -0
  193. package/dist/internal/code-tokens.d.ts +4 -0
  194. package/dist/internal/code-tokens.js +34 -0
  195. package/dist/internal/fieldset.d.ts +6 -0
  196. package/dist/internal/fieldset.js +38 -0
  197. package/dist/internal/file-kind.d.ts +4 -0
  198. package/dist/internal/file-kind.js +62 -0
  199. package/dist/internal/languages.d.ts +7 -0
  200. package/dist/internal/languages.js +1010 -0
  201. package/dist/internal/message-scroller.d.ts +102 -0
  202. package/dist/internal/message-scroller.js +637 -0
  203. package/dist/internal/pressable.d.ts +2 -0
  204. package/dist/internal/pressable.js +29 -0
  205. package/dist/internal/syntax.d.ts +14 -0
  206. package/dist/internal/syntax.js +137 -0
  207. package/dist/styles/accordion.css +102 -0
  208. package/dist/styles/alert-dialog.css +198 -0
  209. package/dist/styles/alert.css +149 -0
  210. package/dist/styles/aspect-ratio.css +8 -0
  211. package/dist/styles/attachment.css +700 -0
  212. package/dist/styles/avatar.css +186 -0
  213. package/dist/styles/badge.css +178 -0
  214. package/dist/styles/brand-icon.css +104 -0
  215. package/dist/styles/breadcrumb.css +121 -0
  216. package/dist/styles/button-group.css +113 -0
  217. package/dist/styles/button.css +380 -0
  218. package/dist/styles/calendar.css +295 -0
  219. package/dist/styles/canvas.css +313 -0
  220. package/dist/styles/card.css +146 -0
  221. package/dist/styles/carousel.css +107 -0
  222. package/dist/styles/chart.css +227 -0
  223. package/dist/styles/chat-confirmation.css +29 -0
  224. package/dist/styles/chat-input.css +240 -0
  225. package/dist/styles/chat-plan.css +109 -0
  226. package/dist/styles/chat-sources.css +191 -0
  227. package/dist/styles/checkbox.css +122 -0
  228. package/dist/styles/choice-list.css +343 -0
  229. package/dist/styles/code-block.css +211 -0
  230. package/dist/styles/collapsible.css +72 -0
  231. package/dist/styles/combobox.css +347 -0
  232. package/dist/styles/command.css +233 -0
  233. package/dist/styles/context-menu.css +151 -0
  234. package/dist/styles/dialog.css +237 -0
  235. package/dist/styles/dropdown-menu.css +150 -0
  236. package/dist/styles/field.css +340 -0
  237. package/dist/styles/file-explorer.css +517 -0
  238. package/dist/styles/file-viewer.css +375 -0
  239. package/dist/styles/form.css +155 -0
  240. package/dist/styles/glass-banner.css +308 -0
  241. package/dist/styles/gradient-banner.css +256 -0
  242. package/dist/styles/hover-card.css +95 -0
  243. package/dist/styles/index.css +268 -0
  244. package/dist/styles/input-group.css +285 -0
  245. package/dist/styles/input-otp.css +138 -0
  246. package/dist/styles/input.css +98 -0
  247. package/dist/styles/kbd.css +59 -0
  248. package/dist/styles/label.css +89 -0
  249. package/dist/styles/mention-list.css +166 -0
  250. package/dist/styles/menubar.css +226 -0
  251. package/dist/styles/message-actions.css +83 -0
  252. package/dist/styles/message-response.css +176 -0
  253. package/dist/styles/message-scroller.css +136 -0
  254. package/dist/styles/message.css +310 -0
  255. package/dist/styles/navigation-menu.css +291 -0
  256. package/dist/styles/notice-banner.css +68 -0
  257. package/dist/styles/page-content.css +21 -0
  258. package/dist/styles/page-header.css +156 -0
  259. package/dist/styles/pagination.css +72 -0
  260. package/dist/styles/plan-outline.css +393 -0
  261. package/dist/styles/popover.css +140 -0
  262. package/dist/styles/progress.css +93 -0
  263. package/dist/styles/prompt-list.css +165 -0
  264. package/dist/styles/questionnaire.css +308 -0
  265. package/dist/styles/radio-group.css +119 -0
  266. package/dist/styles/reasoning-effort.css +157 -0
  267. package/dist/styles/resizable.css +108 -0
  268. package/dist/styles/result-card.css +215 -0
  269. package/dist/styles/review-card.css +235 -0
  270. package/dist/styles/rich-text-editor.css +169 -0
  271. package/dist/styles/schema-diagram.css +419 -0
  272. package/dist/styles/scroll-area.css +77 -0
  273. package/dist/styles/search-dialog.css +280 -0
  274. package/dist/styles/search-field.css +17 -0
  275. package/dist/styles/select.css +285 -0
  276. package/dist/styles/selection-slot.css +31 -0
  277. package/dist/styles/separator.css +206 -0
  278. package/dist/styles/settings-list.css +81 -0
  279. package/dist/styles/sheet.css +361 -0
  280. package/dist/styles/sidebar.css +363 -0
  281. package/dist/styles/skeleton.css +80 -0
  282. package/dist/styles/slider.css +142 -0
  283. package/dist/styles/spinner.css +39 -0
  284. package/dist/styles/state-panel-samples.css +41 -0
  285. package/dist/styles/state-panel.css +173 -0
  286. package/dist/styles/state-sample.css +285 -0
  287. package/dist/styles/switch.css +128 -0
  288. package/dist/styles/table.css +604 -0
  289. package/dist/styles/tabs.css +223 -0
  290. package/dist/styles/textarea.css +77 -0
  291. package/dist/styles/themes/chatgpt.css +125 -0
  292. package/dist/styles/themes/claude.css +125 -0
  293. package/dist/styles/themes/cloudflare.css +125 -0
  294. package/dist/styles/themes/discord.css +125 -0
  295. package/dist/styles/themes/github.css +125 -0
  296. package/dist/styles/themes/grok.css +125 -0
  297. package/dist/styles/themes/linear.css +126 -0
  298. package/dist/styles/themes/neutral.css +125 -0
  299. package/dist/styles/themes/notion.css +125 -0
  300. package/dist/styles/themes/perplexity.css +125 -0
  301. package/dist/styles/themes/raycast.css +125 -0
  302. package/dist/styles/themes/spotify.css +125 -0
  303. package/dist/styles/themes/stripe.css +125 -0
  304. package/dist/styles/themes/supabase.css +125 -0
  305. package/dist/styles/themes/tulipfarm.css +115 -0
  306. package/dist/styles/themes/vercel.css +126 -0
  307. package/dist/styles/toast.css +197 -0
  308. package/dist/styles/toggle-group.css +161 -0
  309. package/dist/styles/toggle.css +119 -0
  310. package/dist/styles/tool-activity.css +396 -0
  311. package/dist/styles/toolbar-status.css +52 -0
  312. package/dist/styles/tooltip.css +122 -0
  313. package/dist/styles/typed-text.css +17 -0
  314. package/package.json +452 -4
@@ -0,0 +1,375 @@
1
+ @layer components {
2
+ .sprout-file-viewer.sprout-dialog-fullscreen {
3
+ display: grid;
4
+ grid-template-columns: minmax(0, 1fr) auto;
5
+ grid-template-rows: auto minmax(0, 1fr);
6
+ }
7
+ .sprout-file-viewer > .sprout-file-viewer-surface {
8
+ grid-row: 2;
9
+ grid-column: 1;
10
+ }
11
+
12
+ .sprout-file-viewer-header {
13
+ display: grid;
14
+ grid-column: 1 / -1;
15
+ grid-template-columns: minmax(0, 1fr) auto;
16
+ grid-template-areas:
17
+ "heading window"
18
+ "controls controls";
19
+ align-items: center;
20
+ gap: 0.5rem 1rem;
21
+ padding: 0.625rem 0.75rem 0.625rem 1rem;
22
+ border-bottom: 1px solid var(--sprout-line);
23
+ background: var(--sprout-surface);
24
+ }
25
+ .sprout-file-viewer-heading {
26
+ display: grid;
27
+ grid-area: heading;
28
+ gap: 2px;
29
+ min-width: 0;
30
+ }
31
+ .sprout-file-viewer-controls {
32
+ display: flex;
33
+ flex-wrap: wrap;
34
+ grid-area: controls;
35
+ align-items: center;
36
+ justify-content: flex-end;
37
+ gap: 0.5rem;
38
+ min-width: 0;
39
+ }
40
+ .sprout-file-viewer-actions {
41
+ display: flex;
42
+ align-items: center;
43
+ gap: 0.5rem;
44
+ }
45
+ .sprout-file-viewer-window {
46
+ display: flex;
47
+ grid-area: window;
48
+ align-items: center;
49
+ gap: 2px;
50
+ }
51
+ .sprout-file-viewer-window > [aria-expanded="true"] {
52
+ background: var(--sprout-hover);
53
+ color: var(--sprout-text);
54
+ }
55
+ @media (max-width: 639.98px) {
56
+ .sprout-file-viewer-controls
57
+ .sprout-button-size-sm:has(> .sprout-file-viewer-label) {
58
+ width: 28px;
59
+ padding-inline: 0;
60
+ }
61
+ .sprout-file-viewer-label {
62
+ display: none;
63
+ }
64
+ }
65
+ @media (min-width: 640px) {
66
+ .sprout-file-viewer-header {
67
+ grid-template-columns: minmax(0, 1fr) auto auto;
68
+ grid-template-areas: "heading controls window";
69
+ min-height: 3.5rem;
70
+ padding-inline: 1.5rem 1rem;
71
+ }
72
+ .sprout-file-viewer-controls {
73
+ flex-wrap: nowrap;
74
+ }
75
+ .sprout-file-viewer-window::before {
76
+ content: "";
77
+ width: 1px;
78
+ height: 1.25rem;
79
+ margin-inline: 0.25rem 0.375rem;
80
+ background: var(--sprout-line);
81
+ }
82
+ }
83
+
84
+ .sprout-file-viewer-panel {
85
+ z-index: 1;
86
+ display: flex;
87
+ grid-row: 2;
88
+ grid-column: 1 / -1;
89
+ flex-direction: column;
90
+ box-sizing: border-box;
91
+ min-width: 0;
92
+ min-height: 0;
93
+ overflow: auto;
94
+ background: var(--sprout-surface);
95
+ color: var(--sprout-text);
96
+ font-family: var(--sprout-font);
97
+ font-size: var(--sprout-text-sm);
98
+ animation: sprout-file-viewer-panel-in var(--sprout-motion-normal, 180ms)
99
+ cubic-bezier(0.16, 1, 0.3, 1) both;
100
+ }
101
+ .sprout-file-viewer-panel[hidden] {
102
+ display: none;
103
+ }
104
+ @media (min-width: 768px) {
105
+ .sprout-file-viewer-panel {
106
+ grid-column: 2;
107
+ width: clamp(18rem, 28vw, 24rem);
108
+ border-inline-start: 1px solid var(--sprout-line);
109
+ }
110
+ }
111
+ @keyframes sprout-file-viewer-panel-in {
112
+ from {
113
+ opacity: 0;
114
+ translate: 0.75rem 0;
115
+ }
116
+ }
117
+
118
+ .sprout-file-viewer-truncate {
119
+ display: block;
120
+ overflow: hidden;
121
+ white-space: nowrap;
122
+ text-overflow: ellipsis;
123
+ }
124
+
125
+ .sprout-file-viewer-surface {
126
+ display: flex;
127
+ flex: 1;
128
+ flex-direction: column;
129
+ min-height: 0;
130
+ overflow: hidden;
131
+ background: var(--sprout-canvas);
132
+ color: var(--sprout-text);
133
+ font-family: var(--sprout-font);
134
+ font-size: var(--sprout-text-sm);
135
+ }
136
+
137
+ .sprout-file-viewer-toolbar {
138
+ display: flex;
139
+ flex-shrink: 0;
140
+ flex-wrap: wrap;
141
+ align-items: center;
142
+ justify-content: flex-end;
143
+ gap: 0.5rem;
144
+ padding: 0.5rem 1rem;
145
+ border-bottom: 1px solid var(--sprout-line);
146
+ }
147
+ .sprout-file-viewer-toolbar[data-align="center"] {
148
+ justify-content: center;
149
+ padding: 0.5rem;
150
+ }
151
+
152
+ .sprout-file-content {
153
+ position: relative;
154
+ display: flex;
155
+ flex: 1;
156
+ flex-direction: column;
157
+ min-height: 0;
158
+ overflow: auto;
159
+ color: var(--sprout-text);
160
+ font-family: var(--sprout-font);
161
+ font-size: var(--sprout-text-sm);
162
+ }
163
+
164
+ .sprout-file-text {
165
+ display: flex;
166
+ flex: 1;
167
+ flex-direction: column;
168
+ min-height: 0;
169
+ }
170
+ .sprout-file-text > .sprout-code-block {
171
+ flex: 1;
172
+ }
173
+ .sprout-file-text-bar {
174
+ display: flex;
175
+ flex-shrink: 0;
176
+ justify-content: flex-end;
177
+ padding: 0.5rem 1rem;
178
+ border-bottom: 1px solid var(--sprout-line);
179
+ }
180
+ .sprout-file-text-alert {
181
+ flex-shrink: 0;
182
+ margin: 0;
183
+ padding: 0.625rem 1rem;
184
+ border-bottom: 1px solid var(--sprout-line);
185
+ font-size: var(--sprout-text-sm);
186
+ color: var(--sprout-danger);
187
+ }
188
+ .sprout-file-text-scroll {
189
+ flex: 1;
190
+ min-height: 0;
191
+ overflow: auto;
192
+ padding: 1rem;
193
+ }
194
+ .sprout-file-text-scroll:focus-visible {
195
+ outline: var(--sprout-focus-width) solid var(--sprout-focus-ring);
196
+ outline-offset: -1px;
197
+ }
198
+ .sprout-file-text-page {
199
+ box-sizing: border-box;
200
+ max-width: 56rem;
201
+ min-width: 0;
202
+ margin-inline: auto;
203
+ padding: 1.25rem;
204
+ border: 1px solid var(--sprout-line);
205
+ border-radius: var(--sprout-radius-panel);
206
+ background: var(--sprout-surface);
207
+ overflow-wrap: anywhere;
208
+ }
209
+ @media (min-width: 640px) {
210
+ .sprout-file-text-scroll {
211
+ padding: 2rem;
212
+ }
213
+ .sprout-file-text-page {
214
+ padding: 2rem;
215
+ }
216
+ }
217
+
218
+ .sprout-file-image-stage {
219
+ display: flex;
220
+ flex: 1;
221
+ min-height: 0;
222
+ overflow: auto;
223
+ padding: 1rem;
224
+ }
225
+ .sprout-file-image-stage:focus-visible {
226
+ outline: var(--sprout-focus-width) solid var(--sprout-focus-ring);
227
+ outline-offset: -1px;
228
+ }
229
+ .sprout-file-image {
230
+ margin: auto;
231
+ max-width: 100%;
232
+ max-height: 100%;
233
+ object-fit: contain;
234
+ transition: opacity var(--sprout-motion-normal, 180ms)
235
+ var(--sprout-motion-ease, ease);
236
+ }
237
+ .sprout-file-image[data-state="loading"] {
238
+ opacity: 0;
239
+ }
240
+ .sprout-file-image-stage[data-zoom="actual"] .sprout-file-image {
241
+ flex-shrink: 0;
242
+ max-width: none;
243
+ max-height: none;
244
+ }
245
+
246
+ .sprout-file-google-link {
247
+ padding: 0.5rem 1rem;
248
+ font-size: var(--sprout-text-sm);
249
+ }
250
+ .sprout-file-google-link a {
251
+ color: var(--sprout-primary);
252
+ text-decoration: underline;
253
+ text-underline-offset: 2px;
254
+ border-radius: 2px;
255
+ }
256
+ .sprout-file-google-link a:focus-visible {
257
+ outline: var(--sprout-focus-width) solid var(--sprout-focus-ring);
258
+ outline-offset: 0;
259
+ }
260
+
261
+ .sprout-file-embed {
262
+ position: relative;
263
+ display: flex;
264
+ flex: 1;
265
+ flex-direction: column;
266
+ min-height: 0;
267
+ }
268
+ .sprout-file-embed-notice {
269
+ flex-shrink: 0;
270
+ margin: 0;
271
+ padding: 0.5rem 1rem;
272
+ border-bottom: 1px solid var(--sprout-line);
273
+ background: var(--sprout-surface);
274
+ font-size: var(--sprout-text-xs);
275
+ line-height: 1rem;
276
+ color: var(--sprout-muted);
277
+ }
278
+ .sprout-file-embed-loading {
279
+ position: absolute;
280
+ inset-inline: 0;
281
+ top: 3rem;
282
+ z-index: 10;
283
+ pointer-events: none;
284
+ }
285
+ .sprout-file-embed-slow {
286
+ display: flex;
287
+ flex-shrink: 0;
288
+ flex-wrap: wrap;
289
+ align-items: center;
290
+ justify-content: center;
291
+ gap: 0.75rem;
292
+ padding: 0.75rem;
293
+ background: var(--sprout-surface);
294
+ animation: sprout-file-viewer-in var(--sprout-motion-fast, 120ms)
295
+ var(--sprout-motion-ease, ease) both;
296
+ }
297
+ .sprout-file-embed-slow p {
298
+ margin: 0;
299
+ font-size: var(--sprout-text-sm);
300
+ }
301
+ .sprout-file-embed-frame {
302
+ flex: 1;
303
+ width: 100%;
304
+ min-height: 0;
305
+ border: 0;
306
+ background: var(--sprout-surface);
307
+ }
308
+
309
+ @keyframes sprout-file-viewer-in {
310
+ from {
311
+ opacity: 0;
312
+ }
313
+ }
314
+
315
+ @media (prefers-reduced-motion: reduce) {
316
+ .sprout-file-image,
317
+ .sprout-file-embed-slow,
318
+ .sprout-file-viewer-panel {
319
+ transition: none;
320
+ animation: none;
321
+ }
322
+ }
323
+
324
+ .sprout-file-preview {
325
+ display: flex;
326
+ flex-direction: column;
327
+ box-sizing: border-box;
328
+ min-height: 0;
329
+ max-height: 14rem;
330
+ overflow: hidden;
331
+ color: var(--sprout-text);
332
+ font-family: var(--sprout-font);
333
+ }
334
+ .sprout-file-preview[data-kind="image"] {
335
+ align-items: center;
336
+ justify-content: center;
337
+ }
338
+ .sprout-file-preview-image {
339
+ display: block;
340
+ max-width: 100%;
341
+ max-height: 14rem;
342
+ border-radius: calc(var(--sprout-radius-panel) - 4px);
343
+ object-fit: contain;
344
+ }
345
+ .sprout-file-preview-state {
346
+ display: flex;
347
+ align-items: center;
348
+ justify-content: center;
349
+ gap: 8px;
350
+ min-height: 5rem;
351
+ color: var(--sprout-muted);
352
+ font-size: var(--sprout-text-xs);
353
+ }
354
+ .sprout-file-viewer-steps {
355
+ display: flex;
356
+ flex-shrink: 0;
357
+ align-items: center;
358
+ gap: 2px;
359
+ }
360
+ .sprout-file-viewer-position {
361
+ min-width: 3.5rem;
362
+ color: var(--sprout-muted);
363
+ font-size: var(--sprout-text-xs);
364
+ font-variant-numeric: tabular-nums;
365
+ text-align: center;
366
+ }
367
+ .sprout-file-viewer-sr-only {
368
+ position: absolute;
369
+ width: 1px;
370
+ height: 1px;
371
+ overflow: hidden;
372
+ clip-path: inset(50%);
373
+ white-space: nowrap;
374
+ }
375
+ }
@@ -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
+ }