@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,157 @@
1
+ @layer components {
2
+ .sprout-reasoning-effort {
3
+ --sprout-reasoning-effort-thumb: #fff;
4
+ position: relative;
5
+ flex-shrink: 0;
6
+ width: 256px;
7
+ height: 52px;
8
+ touch-action: none;
9
+ user-select: none;
10
+ -webkit-user-select: none;
11
+ }
12
+
13
+ .sprout-reasoning-effort-shell {
14
+ position: absolute;
15
+ inset: 0;
16
+ width: 100%;
17
+ height: 100%;
18
+ overflow: visible;
19
+ pointer-events: none;
20
+ }
21
+ .sprout-reasoning-effort-shell path {
22
+ stroke: var(--sprout-line);
23
+ }
24
+ .sprout-reasoning-effort-stop-top {
25
+ stop-color: var(--sprout-hover);
26
+ }
27
+ .sprout-reasoning-effort-stop-bottom {
28
+ stop-color: var(--sprout-active);
29
+ }
30
+
31
+ .sprout-reasoning-effort-bubble {
32
+ position: absolute;
33
+ top: 2px;
34
+ z-index: 2;
35
+ font-size: 12px;
36
+ font-weight: 500;
37
+ line-height: 16px;
38
+ white-space: nowrap;
39
+ pointer-events: none;
40
+ }
41
+ .sprout-reasoning-effort-bubble-text {
42
+ display: flex;
43
+ gap: 3px;
44
+ }
45
+ .sprout-reasoning-effort-bubble-label {
46
+ color: var(--sprout-text);
47
+ }
48
+ .sprout-reasoning-effort-bubble-level {
49
+ color: var(--sprout-muted);
50
+ }
51
+
52
+ .sprout-reasoning-effort-track {
53
+ position: absolute;
54
+ inset-inline: 0;
55
+ bottom: 0;
56
+ height: 32px;
57
+ border-radius: 999px;
58
+ outline: 0 solid transparent;
59
+ cursor: grab;
60
+ }
61
+ .sprout-reasoning-effort-track:focus-visible {
62
+ outline: 2px solid var(--sprout-focus);
63
+ outline-offset: 3px;
64
+ }
65
+ .sprout-reasoning-effort[data-dragging="true"]
66
+ .sprout-reasoning-effort-track {
67
+ cursor: grabbing;
68
+ }
69
+
70
+ .sprout-reasoning-effort-fill {
71
+ position: absolute;
72
+ inset-block: 0;
73
+ left: 0;
74
+ border-radius: 999px;
75
+ background-color: var(--sprout-primary);
76
+ box-shadow: inset 0 1px 1px rgb(255 255 255 / 0.16);
77
+ pointer-events: none;
78
+ }
79
+
80
+ .sprout-reasoning-effort-thumb {
81
+ position: absolute;
82
+ top: 50%;
83
+ z-index: 2;
84
+ border-radius: 999px;
85
+ background-color: var(--sprout-reasoning-effort-thumb);
86
+ /* The hairline keeps a white thumb visible on a light dark-mode fill. */
87
+ box-shadow:
88
+ 0 0 0 0.5px rgb(0 0 0 / 0.14),
89
+ 0 1px 2px rgb(0 0 0 / 0.14);
90
+ pointer-events: none;
91
+ }
92
+
93
+ .sprout-reasoning-effort-tick {
94
+ position: absolute;
95
+ top: 50%;
96
+ z-index: 3;
97
+ width: 1.5px;
98
+ margin-left: -0.75px;
99
+ border-radius: 1px;
100
+ background-color: color-mix(in oklab, var(--sprout-text) 25%, transparent);
101
+ transform: translateY(-50%);
102
+ pointer-events: none;
103
+ }
104
+ .sprout-reasoning-effort-tick[data-active="true"] {
105
+ background-color: color-mix(
106
+ in oklab,
107
+ var(--sprout-on-primary) 60%,
108
+ transparent
109
+ );
110
+ }
111
+ .sprout-reasoning-effort-tick[data-on-thumb="true"] {
112
+ background-color: rgb(0 0 0 / 0.45);
113
+ }
114
+
115
+ @media (prefers-reduced-motion: no-preference) {
116
+ .sprout-reasoning-effort-bubble-text {
117
+ animation: sprout-reasoning-effort-level-in
118
+ var(--sprout-motion-normal, 180ms) var(--sprout-motion-ease, ease-out);
119
+ }
120
+ .sprout-reasoning-effort-track {
121
+ transition: outline-color var(--sprout-motion-fast, 120ms)
122
+ var(--sprout-motion-ease, ease-out);
123
+ }
124
+ }
125
+
126
+ @keyframes sprout-reasoning-effort-level-in {
127
+ from {
128
+ opacity: 0.35;
129
+ filter: blur(2.5px);
130
+ }
131
+ }
132
+
133
+ @media (forced-colors: active) {
134
+ .sprout-reasoning-effort-shell path {
135
+ stroke: CanvasText;
136
+ }
137
+ .sprout-reasoning-effort-stop-top,
138
+ .sprout-reasoning-effort-stop-bottom {
139
+ stop-color: Canvas;
140
+ }
141
+ .sprout-reasoning-effort-fill {
142
+ background-color: Highlight;
143
+ }
144
+ .sprout-reasoning-effort-thumb {
145
+ border: 1px solid CanvasText;
146
+ background-color: Canvas;
147
+ }
148
+ .sprout-reasoning-effort-tick,
149
+ .sprout-reasoning-effort-tick[data-active="true"],
150
+ .sprout-reasoning-effort-tick[data-on-thumb="true"] {
151
+ background-color: CanvasText;
152
+ }
153
+ .sprout-reasoning-effort-track:focus-visible {
154
+ outline-color: Highlight;
155
+ }
156
+ }
157
+ }
@@ -0,0 +1,108 @@
1
+ @layer components {
2
+ .sprout-resizable-group {
3
+ display: flex;
4
+ width: 100%;
5
+ height: 100%;
6
+ min-width: 0;
7
+ min-height: 0;
8
+ overflow: hidden;
9
+ }
10
+ .sprout-resizable-group[data-orientation="vertical"] {
11
+ flex-direction: column;
12
+ }
13
+
14
+ .sprout-resizable-panel {
15
+ position: relative;
16
+ min-width: 0;
17
+ min-height: 0;
18
+ overflow: hidden;
19
+ }
20
+
21
+ .sprout-resizable-handle {
22
+ position: relative;
23
+ z-index: 1;
24
+ display: flex;
25
+ flex: none;
26
+ align-items: center;
27
+ justify-content: center;
28
+ background: var(--sprout-line);
29
+ outline: none;
30
+ touch-action: none;
31
+ user-select: none;
32
+ }
33
+ .sprout-resizable-handle[data-orientation="vertical"] {
34
+ width: 1px;
35
+ cursor: col-resize;
36
+ }
37
+ .sprout-resizable-handle[data-orientation="horizontal"] {
38
+ height: 1px;
39
+ cursor: row-resize;
40
+ }
41
+ /* A wider invisible hit area keeps the 1px line easy to grab. */
42
+ .sprout-resizable-handle::after {
43
+ content: "";
44
+ position: absolute;
45
+ }
46
+ .sprout-resizable-handle[data-orientation="vertical"]::after {
47
+ inset-block: 0;
48
+ left: 50%;
49
+ width: 9px;
50
+ transform: translateX(-50%);
51
+ }
52
+ .sprout-resizable-handle[data-orientation="horizontal"]::after {
53
+ inset-inline: 0;
54
+ top: 50%;
55
+ height: 9px;
56
+ transform: translateY(-50%);
57
+ }
58
+ .sprout-resizable-handle:hover {
59
+ background: var(--sprout-border);
60
+ }
61
+ .sprout-resizable-handle[data-dragging],
62
+ .sprout-resizable-handle:focus-visible {
63
+ background: var(--sprout-focus);
64
+ }
65
+ .sprout-resizable-handle:focus-visible {
66
+ box-shadow: 0 0 0 1px var(--sprout-focus);
67
+ }
68
+
69
+ .sprout-resizable-grip {
70
+ flex: none;
71
+ border-radius: 999px;
72
+ background: var(--sprout-border);
73
+ }
74
+ .sprout-resizable-handle[data-orientation="vertical"] .sprout-resizable-grip {
75
+ width: 6px;
76
+ height: 24px;
77
+ }
78
+ .sprout-resizable-handle[data-orientation="horizontal"]
79
+ .sprout-resizable-grip {
80
+ width: 24px;
81
+ height: 6px;
82
+ }
83
+ .sprout-resizable-handle:hover .sprout-resizable-grip {
84
+ background: var(--sprout-border-strong);
85
+ }
86
+ .sprout-resizable-handle[data-dragging] .sprout-resizable-grip,
87
+ .sprout-resizable-handle:focus-visible .sprout-resizable-grip {
88
+ background: var(--sprout-focus);
89
+ }
90
+
91
+ @media (pointer: coarse) {
92
+ .sprout-resizable-handle[data-orientation="vertical"]::after {
93
+ width: 24px;
94
+ }
95
+ .sprout-resizable-handle[data-orientation="horizontal"]::after {
96
+ height: 24px;
97
+ }
98
+ }
99
+
100
+ @media (prefers-reduced-motion: no-preference) {
101
+ .sprout-resizable-handle,
102
+ .sprout-resizable-grip {
103
+ transition:
104
+ background-color var(--sprout-motion-fast) var(--sprout-motion-ease),
105
+ box-shadow var(--sprout-motion-fast) var(--sprout-motion-ease);
106
+ }
107
+ }
108
+ }
@@ -0,0 +1,215 @@
1
+ @layer components {
2
+ .sprout-result-card {
3
+ box-sizing: border-box;
4
+ min-width: 0;
5
+ container-type: inline-size;
6
+ border: 1px solid var(--sprout-input);
7
+ border-radius: var(--sprout-radius-panel);
8
+ background: var(--sprout-surface);
9
+ color: var(--sprout-text);
10
+ font-family: var(--sprout-font);
11
+ --sprout-brand-ring: var(--sprout-surface);
12
+ }
13
+ .sprout-result-card-header {
14
+ display: flex;
15
+ align-items: flex-start;
16
+ gap: 12px;
17
+ padding: 16px;
18
+ }
19
+ .sprout-result-card-apps {
20
+ isolation: isolate;
21
+ display: flex;
22
+ flex-shrink: 0;
23
+ align-items: center;
24
+ }
25
+ .sprout-result-card-app {
26
+ position: relative;
27
+ display: inline-flex;
28
+ flex-shrink: 0;
29
+ border-radius: 0.5rem;
30
+ box-shadow: 0 0 0 2px var(--sprout-surface);
31
+ }
32
+ .sprout-result-card-app + .sprout-result-card-app {
33
+ margin-inline-start: -6px;
34
+ }
35
+ .sprout-result-card-app:hover,
36
+ .sprout-result-card-app:focus-within {
37
+ z-index: 10;
38
+ }
39
+ .sprout-result-card-overflow {
40
+ font-size: var(--sprout-text-xs);
41
+ font-weight: 500;
42
+ font-variant-numeric: tabular-nums;
43
+ }
44
+ .sprout-result-card-icon[data-size] {
45
+ color: var(--sprout-text);
46
+ }
47
+ .sprout-result-card-icon > svg {
48
+ width: 18px;
49
+ height: 18px;
50
+ }
51
+ .sprout-result-card-main {
52
+ display: flex;
53
+ flex: 1;
54
+ flex-direction: column;
55
+ gap: 12px;
56
+ min-width: 0;
57
+ }
58
+ .sprout-result-card-text {
59
+ display: flex;
60
+ flex: 1 1 auto;
61
+ flex-direction: column;
62
+ gap: 6px;
63
+ min-width: 0;
64
+ }
65
+ .sprout-result-card-title {
66
+ margin: 0;
67
+ color: var(--sprout-text);
68
+ font-size: var(--sprout-text-base);
69
+ font-weight: 500;
70
+ line-height: 1.5rem;
71
+ overflow-wrap: anywhere;
72
+ }
73
+ .sprout-result-card-meta {
74
+ display: flex;
75
+ flex-wrap: wrap;
76
+ align-items: center;
77
+ gap: 4px 8px;
78
+ color: var(--sprout-muted);
79
+ font-size: var(--sprout-text-sm);
80
+ line-height: 1.25rem;
81
+ }
82
+ .sprout-result-card-status {
83
+ display: inline-flex;
84
+ align-items: center;
85
+ gap: 6px;
86
+ min-width: 0;
87
+ overflow-wrap: anywhere;
88
+ transition: color var(--sprout-motion-normal) var(--sprout-motion-ease);
89
+ }
90
+ .sprout-result-card-status > svg {
91
+ flex-shrink: 0;
92
+ }
93
+ .sprout-result-card-status[data-tone="success"] {
94
+ color: var(--sprout-success);
95
+ }
96
+ .sprout-result-card-status[data-tone="error"] {
97
+ color: var(--sprout-danger);
98
+ }
99
+ .sprout-result-card-action {
100
+ flex-shrink: 0;
101
+ align-self: flex-start;
102
+ }
103
+ .sprout-result-card-body {
104
+ display: flex;
105
+ flex-direction: column;
106
+ gap: 12px;
107
+ padding: 0 16px 16px;
108
+ font-size: var(--sprout-text-sm);
109
+ }
110
+ .sprout-result-card-body :where(p) {
111
+ margin: 0;
112
+ }
113
+ @container (min-width: 28rem) {
114
+ .sprout-result-card-main {
115
+ flex-direction: row;
116
+ align-items: center;
117
+ justify-content: space-between;
118
+ }
119
+ .sprout-result-card-action {
120
+ align-self: center;
121
+ }
122
+ }
123
+ @media (pointer: coarse) {
124
+ .sprout-result-card-app + .sprout-result-card-app {
125
+ margin-inline-start: -8px;
126
+ }
127
+ .sprout-result-card-action .sprout-button-size-result-card {
128
+ height: 44px;
129
+ }
130
+ }
131
+
132
+ .sprout-result-app-actions {
133
+ display: flex;
134
+ flex-direction: column;
135
+ gap: 16px;
136
+ font-family: var(--sprout-font);
137
+ color: var(--sprout-text);
138
+ }
139
+ .sprout-result-app {
140
+ display: flex;
141
+ flex-direction: column;
142
+ gap: 8px;
143
+ min-width: 0;
144
+ }
145
+ .sprout-result-app-name {
146
+ display: flex;
147
+ align-items: center;
148
+ gap: 8px;
149
+ }
150
+ .sprout-result-app-name > svg {
151
+ flex-shrink: 0;
152
+ }
153
+ .sprout-result-app-name h4 {
154
+ margin: 0;
155
+ color: var(--sprout-text);
156
+ font-size: var(--sprout-text-sm);
157
+ font-weight: 500;
158
+ line-height: 1.25rem;
159
+ }
160
+ .sprout-result-app-empty {
161
+ margin: 0;
162
+ color: var(--sprout-muted);
163
+ font-size: var(--sprout-text-sm);
164
+ line-height: 1.25rem;
165
+ }
166
+ .sprout-result-app-list {
167
+ display: flex;
168
+ flex-direction: column;
169
+ gap: 8px;
170
+ margin: 0;
171
+ padding: 0;
172
+ list-style: none;
173
+ }
174
+ .sprout-result-app-action {
175
+ display: flex;
176
+ align-items: flex-start;
177
+ gap: 8px;
178
+ font-size: var(--sprout-text-sm);
179
+ line-height: 1.25rem;
180
+ }
181
+ .sprout-result-app-check {
182
+ display: inline-flex;
183
+ flex-shrink: 0;
184
+ margin-top: 2px;
185
+ color: var(--sprout-success);
186
+ }
187
+ .sprout-result-app-prefix {
188
+ flex-shrink: 0;
189
+ color: var(--sprout-muted);
190
+ }
191
+ .sprout-result-app-action[data-state="failed"] .sprout-result-app-prefix {
192
+ color: var(--sprout-danger);
193
+ }
194
+ .sprout-result-app-label {
195
+ min-width: 0;
196
+ overflow-wrap: anywhere;
197
+ }
198
+ .sprout-result-sr-only {
199
+ position: absolute;
200
+ width: 1px;
201
+ height: 1px;
202
+ margin: -1px;
203
+ padding: 0;
204
+ overflow: hidden;
205
+ clip: rect(0 0 0 0);
206
+ white-space: nowrap;
207
+ border: 0;
208
+ }
209
+
210
+ @media (prefers-reduced-motion: reduce) {
211
+ .sprout-result-card-status {
212
+ transition: none;
213
+ }
214
+ }
215
+ }
@@ -0,0 +1,235 @@
1
+ @layer components {
2
+ .sprout-review-card {
3
+ box-sizing: border-box;
4
+ width: 100%;
5
+ min-width: 0;
6
+ overflow: hidden;
7
+ border: 1px solid var(--sprout-line);
8
+ border-radius: var(--sprout-radius-panel);
9
+ background: var(--sprout-surface);
10
+ box-shadow: var(--sprout-shadow-control);
11
+ color: var(--sprout-text);
12
+ font-family: var(--sprout-font);
13
+ font-size: var(--sprout-text-sm);
14
+ line-height: 1.25rem;
15
+ }
16
+ .sprout-review-card :where(p, h4, h5, dl, dd, ol) {
17
+ margin: 0;
18
+ }
19
+ .sprout-review-card :where(ol) {
20
+ padding: 0;
21
+ list-style: none;
22
+ }
23
+
24
+ .sprout-review-card-header {
25
+ position: relative;
26
+ display: flex;
27
+ align-items: center;
28
+ gap: 12px;
29
+ min-height: 48px;
30
+ box-sizing: border-box;
31
+ padding: 12px 16px;
32
+ }
33
+ .sprout-review-card-header:has(.sprout-review-card-trigger:hover) {
34
+ background: color-mix(in oklab, var(--sprout-hover) 60%, transparent);
35
+ }
36
+ .sprout-review-card-header:has(.sprout-review-card-trigger:focus-visible) {
37
+ outline: 2px solid var(--sprout-focus);
38
+ outline-offset: -2px;
39
+ border-radius: inherit;
40
+ }
41
+ .sprout-review-card-icon {
42
+ display: grid;
43
+ flex-shrink: 0;
44
+ place-items: center;
45
+ width: 28px;
46
+ height: 28px;
47
+ box-sizing: border-box;
48
+ border: 1px solid var(--sprout-line);
49
+ border-radius: var(--sprout-radius-control);
50
+ background: var(--sprout-canvas);
51
+ color: var(--sprout-muted);
52
+ }
53
+ .sprout-review-card-icon > svg {
54
+ width: 16px;
55
+ height: 16px;
56
+ }
57
+ .sprout-review-card-title {
58
+ flex: 1;
59
+ min-width: 0;
60
+ font-size: var(--sprout-text-sm);
61
+ font-weight: 500;
62
+ line-height: 1.25rem;
63
+ }
64
+ .sprout-review-card-trigger.sprout-collapsible-trigger {
65
+ display: block;
66
+ width: 100%;
67
+ overflow: hidden;
68
+ text-align: start;
69
+ text-overflow: ellipsis;
70
+ white-space: nowrap;
71
+ outline: none;
72
+ border-radius: 0;
73
+ }
74
+ .sprout-review-card-trigger.sprout-collapsible-trigger:focus-visible {
75
+ outline: none;
76
+ }
77
+ /* The whole header is the click target; the title button stays the named control. */
78
+ .sprout-review-card-trigger::after {
79
+ content: "";
80
+ position: absolute;
81
+ inset: 0;
82
+ }
83
+ .sprout-review-card-badge {
84
+ flex-shrink: 0;
85
+ }
86
+ .sprout-review-card-chevron {
87
+ flex-shrink: 0;
88
+ color: var(--sprout-muted);
89
+ }
90
+
91
+ .sprout-review-card-body {
92
+ display: flex;
93
+ flex-direction: column;
94
+ gap: 16px;
95
+ min-width: 0;
96
+ padding: 16px;
97
+ border-top: 1px solid var(--sprout-line);
98
+ }
99
+ .sprout-review-card-footer {
100
+ display: flex;
101
+ flex-direction: column;
102
+ gap: 12px;
103
+ min-width: 0;
104
+ padding: 12px 16px;
105
+ border-top: 1px solid var(--sprout-line);
106
+ }
107
+ .sprout-review-card-actions {
108
+ display: flex;
109
+ flex-wrap: wrap;
110
+ gap: 8px;
111
+ }
112
+
113
+ .sprout-review-rows,
114
+ .sprout-review-values {
115
+ min-width: 0;
116
+ margin: 0;
117
+ border: 1px solid var(--sprout-line);
118
+ border-radius: 0.5rem;
119
+ }
120
+ .sprout-review-row + .sprout-review-row,
121
+ .sprout-review-value + .sprout-review-value {
122
+ border-top: 1px solid var(--sprout-line);
123
+ }
124
+ .sprout-review-row {
125
+ display: flex;
126
+ flex-wrap: wrap;
127
+ align-items: center;
128
+ justify-content: space-between;
129
+ gap: 4px 16px;
130
+ padding: 8px 12px;
131
+ font-size: var(--sprout-text-sm);
132
+ line-height: 1.25rem;
133
+ }
134
+ .sprout-review-row-label {
135
+ color: var(--sprout-muted);
136
+ }
137
+ .sprout-review-row-value {
138
+ display: flex;
139
+ flex-wrap: wrap;
140
+ align-items: center;
141
+ justify-content: flex-end;
142
+ gap: 6px;
143
+ min-width: 0;
144
+ margin: 0;
145
+ text-align: end;
146
+ overflow-wrap: anywhere;
147
+ }
148
+
149
+ .sprout-review-steps {
150
+ display: flex;
151
+ flex-direction: column;
152
+ gap: 8px;
153
+ min-width: 0;
154
+ }
155
+ .sprout-review-steps-title {
156
+ margin: 0;
157
+ color: var(--sprout-muted);
158
+ font-size: var(--sprout-text-xs);
159
+ font-weight: 500;
160
+ line-height: 1rem;
161
+ }
162
+ .sprout-review-steps-list {
163
+ display: flex;
164
+ flex-direction: column;
165
+ gap: 8px;
166
+ margin: 0;
167
+ padding: 0;
168
+ list-style: none;
169
+ }
170
+ .sprout-review-step {
171
+ display: flex;
172
+ gap: 12px;
173
+ font-size: var(--sprout-text-sm);
174
+ line-height: 1.25rem;
175
+ }
176
+ .sprout-review-step-number {
177
+ display: grid;
178
+ flex-shrink: 0;
179
+ place-items: center;
180
+ width: 20px;
181
+ height: 20px;
182
+ border-radius: 999px;
183
+ background: var(--sprout-secondary);
184
+ color: var(--sprout-muted);
185
+ font-size: var(--sprout-text-xs);
186
+ font-weight: 500;
187
+ font-variant-numeric: tabular-nums;
188
+ line-height: 1;
189
+ }
190
+ .sprout-review-step-content {
191
+ display: flex;
192
+ flex: 1;
193
+ flex-direction: column;
194
+ gap: 8px;
195
+ min-width: 0;
196
+ }
197
+ .sprout-review-step-summary {
198
+ margin: 0;
199
+ white-space: pre-wrap;
200
+ overflow-wrap: anywhere;
201
+ }
202
+
203
+ .sprout-review-value {
204
+ display: flex;
205
+ flex-wrap: wrap;
206
+ gap: 4px 12px;
207
+ padding: 6px 12px;
208
+ }
209
+ .sprout-review-value-name,
210
+ .sprout-review-value-text {
211
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
212
+ font-size: var(--sprout-text-xs);
213
+ line-height: 1.25rem;
214
+ }
215
+ .sprout-review-value-name {
216
+ min-width: 0;
217
+ color: var(--sprout-muted);
218
+ overflow-wrap: anywhere;
219
+ }
220
+ /* Wraps below a long name instead of shrinking to a sliver. */
221
+ .sprout-review-value-text {
222
+ flex: 1 1 14ch;
223
+ min-width: 0;
224
+ margin: 0;
225
+ white-space: pre-wrap;
226
+ overflow-wrap: anywhere;
227
+ }
228
+
229
+ @media (prefers-reduced-motion: no-preference) {
230
+ .sprout-review-card-header {
231
+ transition: background-color var(--sprout-motion-fast, 120ms)
232
+ var(--sprout-motion-ease, ease-out);
233
+ }
234
+ }
235
+ }