@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,313 @@
1
+ @layer components {
2
+ .sprout-chat-split {
3
+ display: flex;
4
+ flex: 1 1 0%;
5
+ min-width: 0;
6
+ min-height: 0;
7
+ height: 100%;
8
+ overflow: hidden;
9
+ }
10
+ .sprout-chat-split-pane,
11
+ .sprout-canvas-host {
12
+ display: flex;
13
+ flex-direction: column;
14
+ box-sizing: border-box;
15
+ width: 100%;
16
+ height: 100%;
17
+ min-width: 0;
18
+ min-height: 0;
19
+ overflow: hidden;
20
+ }
21
+ .sprout-canvas-sheet {
22
+ overflow: hidden;
23
+ }
24
+
25
+ .sprout-canvas {
26
+ display: flex;
27
+ flex-direction: column;
28
+ box-sizing: border-box;
29
+ height: 100%;
30
+ min-width: 0;
31
+ min-height: 0;
32
+ background: var(--sprout-surface);
33
+ color: var(--sprout-text);
34
+ font-family: var(--sprout-font);
35
+ font-size: var(--sprout-text-sm);
36
+ line-height: 1.25rem;
37
+ }
38
+
39
+ .sprout-canvas-back {
40
+ flex-shrink: 0;
41
+ padding: 4px 8px;
42
+ border-bottom: 1px solid var(--sprout-line);
43
+ }
44
+
45
+ .sprout-canvas-header {
46
+ display: flex;
47
+ flex-shrink: 0;
48
+ align-items: center;
49
+ gap: 4px;
50
+ box-sizing: border-box;
51
+ height: 44px;
52
+ padding: 0 8px 0 4px;
53
+ border-bottom: 1px solid var(--sprout-line);
54
+ }
55
+ .sprout-canvas-heading {
56
+ flex: 1;
57
+ min-width: 0;
58
+ margin: 0;
59
+ padding: 0 8px;
60
+ color: var(--sprout-text);
61
+ font-size: var(--sprout-text-sm);
62
+ font-weight: 500;
63
+ line-height: 1.25rem;
64
+ outline: none;
65
+ }
66
+
67
+ .sprout-canvas-tabs {
68
+ position: relative;
69
+ display: flex;
70
+ flex: 1;
71
+ align-items: center;
72
+ min-width: 0;
73
+ overflow-x: auto;
74
+ scrollbar-width: none;
75
+ }
76
+ .sprout-canvas-tabs::-webkit-scrollbar {
77
+ display: none;
78
+ }
79
+ /* Only tabs live in the tablist; close buttons sit beside them via `order`. */
80
+ .sprout-canvas-tablist {
81
+ display: contents;
82
+ }
83
+
84
+ .sprout-canvas-tab,
85
+ .sprout-canvas-tab-close {
86
+ flex-shrink: 0;
87
+ height: 32px;
88
+ margin: 0;
89
+ border: 0;
90
+ background: transparent;
91
+ color: var(--sprout-muted);
92
+ cursor: pointer;
93
+ outline: none;
94
+ transition:
95
+ background-color var(--sprout-motion-fast) var(--sprout-motion-ease),
96
+ color var(--sprout-motion-fast) var(--sprout-motion-ease),
97
+ opacity var(--sprout-motion-fast) var(--sprout-motion-ease);
98
+ }
99
+ .sprout-canvas-tab {
100
+ display: flex;
101
+ align-items: center;
102
+ gap: 6px;
103
+ min-width: 0;
104
+ max-width: 10.5rem;
105
+ padding: 0 2px 0 8px;
106
+ border-radius: var(--sprout-radius-control) 0 0 var(--sprout-radius-control);
107
+ font: inherit;
108
+ font-size: 0.8125rem;
109
+ font-weight: 500;
110
+ line-height: 1.25rem;
111
+ }
112
+ .sprout-canvas-tab-close {
113
+ position: relative;
114
+ display: flex;
115
+ align-items: center;
116
+ justify-content: center;
117
+ width: 28px;
118
+ margin-right: 2px;
119
+ padding: 0;
120
+ border-radius: 0 var(--sprout-radius-control) var(--sprout-radius-control) 0;
121
+ }
122
+ .sprout-canvas-tab-close > svg {
123
+ position: relative;
124
+ opacity: 0;
125
+ transition: opacity var(--sprout-motion-fast) var(--sprout-motion-ease);
126
+ }
127
+ .sprout-canvas-tab-close::before {
128
+ position: absolute;
129
+ inset: 6px 4px;
130
+ border-radius: calc(var(--sprout-radius-control) - 2px);
131
+ content: "";
132
+ transition: background-color var(--sprout-motion-fast)
133
+ var(--sprout-motion-ease);
134
+ }
135
+ .sprout-canvas-tab[data-hover],
136
+ .sprout-canvas-tab-close[data-hover] {
137
+ background: color-mix(in srgb, var(--sprout-hover) 70%, transparent);
138
+ color: var(--sprout-text);
139
+ }
140
+ .sprout-canvas-tab[data-active],
141
+ .sprout-canvas-tab-close[data-active] {
142
+ background: var(--sprout-hover);
143
+ color: var(--sprout-text);
144
+ }
145
+ .sprout-canvas-tab-close[data-hover] > svg,
146
+ .sprout-canvas-tab-close[data-active] > svg,
147
+ .sprout-canvas-tab-close:focus-visible > svg {
148
+ opacity: 1;
149
+ }
150
+ .sprout-canvas-tab-close:hover::before {
151
+ background: var(--sprout-surface);
152
+ }
153
+ .sprout-canvas-tab:focus-visible,
154
+ .sprout-canvas-tab-close:focus-visible {
155
+ outline: var(--sprout-focus-width) solid var(--sprout-focus-ring);
156
+ outline-offset: -1px;
157
+ }
158
+ .sprout-canvas-tab-icon {
159
+ display: inline-flex;
160
+ flex-shrink: 0;
161
+ }
162
+ .sprout-canvas-tab-title {
163
+ min-width: 0;
164
+ overflow: hidden;
165
+ text-overflow: ellipsis;
166
+ white-space: nowrap;
167
+ }
168
+
169
+ .sprout-canvas-body {
170
+ display: flex;
171
+ flex: 1;
172
+ flex-direction: column;
173
+ min-height: 0;
174
+ overflow: auto;
175
+ outline: none;
176
+ }
177
+ .sprout-canvas-body:focus-visible {
178
+ outline: var(--sprout-focus-width) solid var(--sprout-focus-ring);
179
+ outline-offset: -1px;
180
+ }
181
+
182
+ .sprout-canvas-toggle-count {
183
+ box-sizing: border-box;
184
+ min-width: 16px;
185
+ padding: 0 4px;
186
+ border-radius: 999px;
187
+ background: var(--sprout-secondary);
188
+ color: var(--sprout-text);
189
+ font-size: 0.6875rem;
190
+ font-variant-numeric: tabular-nums;
191
+ line-height: 1rem;
192
+ text-align: center;
193
+ }
194
+ @media (max-width: 639px) {
195
+ .sprout-canvas-toggle-label {
196
+ position: absolute;
197
+ width: 1px;
198
+ height: 1px;
199
+ overflow: hidden;
200
+ clip-path: inset(50%);
201
+ white-space: nowrap;
202
+ }
203
+ }
204
+
205
+ .sprout-canvas-section {
206
+ display: flex;
207
+ flex: 1;
208
+ flex-direction: column;
209
+ gap: 16px;
210
+ box-sizing: border-box;
211
+ min-width: 0;
212
+ min-height: 0;
213
+ padding: 16px;
214
+ color: var(--sprout-text);
215
+ font-family: var(--sprout-font);
216
+ font-size: var(--sprout-text-sm);
217
+ line-height: 1.25rem;
218
+ }
219
+ .sprout-canvas-section-header {
220
+ display: flex;
221
+ flex-wrap: wrap;
222
+ align-items: flex-start;
223
+ justify-content: space-between;
224
+ gap: 12px;
225
+ }
226
+ .sprout-canvas-section-text {
227
+ min-width: 0;
228
+ }
229
+ .sprout-canvas-section-title {
230
+ margin: 0;
231
+ color: var(--sprout-text);
232
+ font-size: var(--sprout-text-base);
233
+ font-weight: 500;
234
+ line-height: 1.5rem;
235
+ overflow-wrap: anywhere;
236
+ }
237
+ .sprout-canvas-section-meta {
238
+ margin: 2px 0 0;
239
+ color: var(--sprout-muted);
240
+ font-size: var(--sprout-text-xs);
241
+ line-height: 1rem;
242
+ overflow-wrap: anywhere;
243
+ }
244
+ .sprout-canvas-section-actions {
245
+ display: flex;
246
+ flex-shrink: 0;
247
+ flex-wrap: wrap;
248
+ align-items: center;
249
+ gap: 8px;
250
+ }
251
+ @media (min-width: 640px) {
252
+ .sprout-canvas-section {
253
+ padding: 20px;
254
+ }
255
+ }
256
+
257
+ .sprout-canvas-frame {
258
+ display: flex;
259
+ flex: 1;
260
+ min-height: 20rem;
261
+ overflow: hidden;
262
+ border: 1px solid var(--sprout-line);
263
+ border-radius: var(--sprout-radius-panel);
264
+ background: var(--sprout-canvas);
265
+ }
266
+ .sprout-canvas-frame > iframe {
267
+ flex: 1;
268
+ width: 100%;
269
+ height: 100%;
270
+ min-height: 20rem;
271
+ border: 0;
272
+ }
273
+
274
+ .sprout-canvas-sr-only {
275
+ position: absolute;
276
+ width: 1px;
277
+ height: 1px;
278
+ margin: -1px;
279
+ padding: 0;
280
+ overflow: hidden;
281
+ clip-path: inset(50%);
282
+ white-space: nowrap;
283
+ border: 0;
284
+ }
285
+
286
+ @media (pointer: coarse) {
287
+ .sprout-canvas-tab-close {
288
+ width: 32px;
289
+ }
290
+ .sprout-canvas-tab-close > svg {
291
+ opacity: 1;
292
+ }
293
+ }
294
+
295
+ @media (prefers-reduced-motion: reduce) {
296
+ .sprout-canvas-tab,
297
+ .sprout-canvas-tab-close,
298
+ .sprout-canvas-tab-close > svg,
299
+ .sprout-canvas-tab-close::before {
300
+ transition: none;
301
+ }
302
+ }
303
+
304
+ @media (forced-colors: active) {
305
+ .sprout-canvas-tab[data-active],
306
+ .sprout-canvas-tab-close[data-active] {
307
+ border-block: 1px solid CanvasText;
308
+ }
309
+ .sprout-canvas-tab-close > svg {
310
+ opacity: 1;
311
+ }
312
+ }
313
+ }
@@ -0,0 +1,146 @@
1
+ @layer base {
2
+ :root,
3
+ .light {
4
+ --sprout-card-raised: color-mix(
5
+ in oklab,
6
+ var(--sprout-text) 3%,
7
+ var(--sprout-surface)
8
+ );
9
+ --sprout-card-raised-shadow:
10
+ 0 1px 3px rgb(24 24 24 / 0.08), 0 1px 2px -1px rgb(24 24 24 / 0.06);
11
+ }
12
+
13
+ .dark {
14
+ --sprout-card-raised: color-mix(
15
+ in oklab,
16
+ var(--sprout-text) 8%,
17
+ var(--sprout-surface)
18
+ );
19
+ --sprout-card-raised-shadow: none;
20
+ }
21
+
22
+ @media (prefers-color-scheme: dark) {
23
+ :root:not(.light):not(.dark) {
24
+ --sprout-card-raised: color-mix(
25
+ in oklab,
26
+ var(--sprout-text) 8%,
27
+ var(--sprout-surface)
28
+ );
29
+ --sprout-card-raised-shadow: none;
30
+ }
31
+ }
32
+ }
33
+
34
+ @layer components {
35
+ .sprout-card {
36
+ --sprout-card-spacing: 1rem;
37
+ display: flex;
38
+ flex-direction: column;
39
+ gap: var(--sprout-card-spacing);
40
+ box-sizing: border-box;
41
+ min-width: 0;
42
+ padding-block: var(--sprout-card-spacing);
43
+ overflow: hidden;
44
+ border: 1px solid var(--sprout-line);
45
+ border-radius: var(--sprout-radius-panel);
46
+ background: var(--sprout-surface);
47
+ color: var(--sprout-text);
48
+ font-family: inherit;
49
+ font-size: var(--sprout-text-sm);
50
+ line-height: 1.25rem;
51
+ overflow-wrap: break-word;
52
+ }
53
+ .sprout-card-sm {
54
+ --sprout-card-spacing: 0.75rem;
55
+ }
56
+ .sprout-card-raised {
57
+ background: var(--sprout-card-raised);
58
+ box-shadow: var(--sprout-card-raised-shadow);
59
+ }
60
+
61
+ /* The footer is flush with the bottom edge, even inside a wrapper. */
62
+ .sprout-card:has(
63
+ > [data-slot="card-footer"],
64
+ > :not([data-slot]) > [data-slot="card-footer"]
65
+ ) {
66
+ padding-bottom: 0;
67
+ }
68
+ .sprout-card:has(> img:first-child) {
69
+ padding-top: 0;
70
+ }
71
+ .sprout-card > img {
72
+ display: block;
73
+ width: 100%;
74
+ object-fit: cover;
75
+ }
76
+
77
+ .sprout-card-header {
78
+ container: sprout-card-header / inline-size;
79
+ display: grid;
80
+ grid-auto-rows: min-content;
81
+ align-items: start;
82
+ gap: 4px;
83
+ min-width: 0;
84
+ padding-inline: var(--sprout-card-spacing);
85
+ }
86
+ .sprout-card-header:has(> [data-slot="card-action"]) {
87
+ grid-template-columns: minmax(0, 1fr) auto;
88
+ column-gap: 12px;
89
+ }
90
+ .sprout-card-header:has(> [data-slot="card-description"]) {
91
+ grid-template-rows: auto auto;
92
+ }
93
+ .sprout-card-header.border-b {
94
+ padding-bottom: var(--sprout-card-spacing);
95
+ border-bottom: 1px solid var(--sprout-line);
96
+ }
97
+
98
+ .sprout-card-title {
99
+ min-width: 0;
100
+ margin: 0;
101
+ color: var(--sprout-text);
102
+ font-size: var(--sprout-text-base);
103
+ font-weight: 500;
104
+ line-height: 1.375;
105
+ }
106
+ .sprout-card-sm .sprout-card-title {
107
+ font-size: var(--sprout-text-sm);
108
+ }
109
+ .sprout-card-description {
110
+ min-width: 0;
111
+ margin: 0;
112
+ color: var(--sprout-muted);
113
+ font-size: var(--sprout-text-sm);
114
+ line-height: 1.25rem;
115
+ }
116
+ .sprout-card-action {
117
+ grid-column-start: 2;
118
+ grid-row: 1 / span 2;
119
+ align-self: start;
120
+ justify-self: end;
121
+ }
122
+
123
+ .sprout-card-content {
124
+ min-width: 0;
125
+ padding-inline: var(--sprout-card-spacing);
126
+ }
127
+
128
+ .sprout-card-footer {
129
+ display: flex;
130
+ align-items: center;
131
+ min-width: 0;
132
+ padding: var(--sprout-card-spacing);
133
+ border-top: 1px solid var(--sprout-line);
134
+ background: color-mix(in oklab, var(--sprout-hover) 50%, transparent);
135
+ }
136
+
137
+ @media (prefers-reduced-motion: no-preference) {
138
+ .sprout-card,
139
+ .sprout-card-footer {
140
+ transition:
141
+ background-color var(--sprout-motion-fast) ease-out,
142
+ border-color var(--sprout-motion-fast) ease-out,
143
+ box-shadow var(--sprout-motion-normal) var(--sprout-motion-ease);
144
+ }
145
+ }
146
+ }
@@ -0,0 +1,107 @@
1
+ @layer components {
2
+ .sprout-carousel {
3
+ position: relative;
4
+ min-width: 0;
5
+ }
6
+
7
+ .sprout-carousel-content {
8
+ min-width: 0;
9
+ overflow: auto;
10
+ scrollbar-width: none;
11
+ border-radius: var(--sprout-carousel-radius, 0);
12
+ outline: none;
13
+ }
14
+ .sprout-carousel-content::-webkit-scrollbar {
15
+ display: none;
16
+ }
17
+ .sprout-carousel-content[data-orientation="horizontal"] {
18
+ overflow-y: hidden;
19
+ overscroll-behavior-x: contain;
20
+ scroll-snap-type: x mandatory;
21
+ touch-action: pan-x pinch-zoom;
22
+ }
23
+ .sprout-carousel-content[data-orientation="vertical"] {
24
+ height: 100%;
25
+ min-height: 0;
26
+ overflow-x: hidden;
27
+ overscroll-behavior-y: contain;
28
+ scroll-snap-type: y mandatory;
29
+ touch-action: pan-y pinch-zoom;
30
+ }
31
+ .sprout-carousel-content[data-drag-free],
32
+ .sprout-carousel-content[data-dragging] {
33
+ scroll-snap-type: none;
34
+ }
35
+ .sprout-carousel-content[data-dragging] {
36
+ cursor: grabbing;
37
+ user-select: none;
38
+ }
39
+ .sprout-carousel-content:focus-visible {
40
+ outline: var(--sprout-focus-width) solid var(--sprout-focus-ring);
41
+ outline-offset: -1px;
42
+ }
43
+
44
+ .sprout-carousel-track {
45
+ display: flex;
46
+ gap: var(--sprout-carousel-gap, 16px);
47
+ }
48
+ .sprout-carousel-content[data-orientation="vertical"]
49
+ > .sprout-carousel-track {
50
+ flex-direction: column;
51
+ height: 100%;
52
+ }
53
+
54
+ .sprout-carousel-item {
55
+ box-sizing: border-box;
56
+ flex: 0 0 var(--sprout-carousel-basis, 100%);
57
+ min-width: 0;
58
+ min-height: 0;
59
+ scroll-snap-align: start;
60
+ }
61
+ [data-align="center"] > .sprout-carousel-track > .sprout-carousel-item {
62
+ scroll-snap-align: center;
63
+ }
64
+ [data-align="end"] > .sprout-carousel-track > .sprout-carousel-item {
65
+ scroll-snap-align: end;
66
+ }
67
+
68
+ .sprout-carousel-control {
69
+ position: absolute;
70
+ border-radius: 999px;
71
+ box-shadow: var(--sprout-shadow-control);
72
+ touch-action: manipulation;
73
+ }
74
+ .sprout-carousel-control[data-orientation="horizontal"] {
75
+ inset-block: 0;
76
+ margin-block: auto;
77
+ }
78
+ .sprout-carousel-previous[data-orientation="horizontal"] {
79
+ left: calc(-1 * var(--sprout-carousel-control-offset, 48px));
80
+ }
81
+ .sprout-carousel-next[data-orientation="horizontal"] {
82
+ right: calc(-1 * var(--sprout-carousel-control-offset, 48px));
83
+ }
84
+ .sprout-carousel-control[data-orientation="vertical"] {
85
+ left: 50%;
86
+ translate: -50% 0;
87
+ rotate: 90deg;
88
+ }
89
+ .sprout-carousel-previous[data-orientation="vertical"] {
90
+ top: calc(-1 * var(--sprout-carousel-control-offset, 48px));
91
+ }
92
+ .sprout-carousel-next[data-orientation="vertical"] {
93
+ bottom: calc(-1 * var(--sprout-carousel-control-offset, 48px));
94
+ }
95
+ @media (pointer: coarse) {
96
+ .sprout-carousel-control.sprout-button-size-icon {
97
+ width: 44px;
98
+ height: 44px;
99
+ }
100
+ }
101
+
102
+ @media (prefers-reduced-motion: no-preference) {
103
+ .sprout-carousel-content:not([data-dragging]) {
104
+ scroll-behavior: smooth;
105
+ }
106
+ }
107
+ }