@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,280 @@
1
+ @layer components {
2
+ .sprout-dialog-content.sprout-search-dialog {
3
+ --sprout-dialog-padding: 0px;
4
+ display: flex;
5
+ flex-direction: column;
6
+ gap: 0;
7
+ padding: 0;
8
+ overflow: hidden;
9
+ }
10
+
11
+ .sprout-search-command.sprout-command {
12
+ flex: 1;
13
+ min-height: 0;
14
+ padding: 0;
15
+ border-radius: inherit;
16
+ background: transparent;
17
+ }
18
+
19
+ /* Input row */
20
+ .sprout-search-input {
21
+ display: flex;
22
+ flex-shrink: 0;
23
+ align-items: center;
24
+ gap: 4px;
25
+ height: 48px;
26
+ padding-inline: 4px 8px;
27
+ border-bottom: 1px solid var(--sprout-line);
28
+ }
29
+ .sprout-search-input > .sprout-command-input-wrapper {
30
+ flex: 1;
31
+ min-width: 0;
32
+ height: 100%;
33
+ padding: 0;
34
+ }
35
+ .sprout-search-input .sprout-command-input-group {
36
+ gap: 10px;
37
+ height: 100%;
38
+ padding-inline: 12px 4px;
39
+ border: 0;
40
+ border-radius: 0;
41
+ background: transparent;
42
+ }
43
+ .sprout-search-input .sprout-command-input {
44
+ font-size: var(--sprout-text-base);
45
+ }
46
+
47
+ /* Filters */
48
+ .sprout-search-filters {
49
+ display: flex;
50
+ flex-shrink: 0;
51
+ gap: 6px;
52
+ padding: 8px 12px;
53
+ overflow-x: auto;
54
+ border-bottom: 1px solid var(--sprout-line);
55
+ scrollbar-width: none;
56
+ }
57
+ .sprout-search-filters::-webkit-scrollbar {
58
+ display: none;
59
+ }
60
+ /* Results */
61
+ .sprout-search-dialog .sprout-search-list {
62
+ height: min(28rem, 60dvh);
63
+ max-height: none;
64
+ padding: 0 8px 8px;
65
+ scroll-padding-block: 8px;
66
+ }
67
+ .sprout-search-list > .sprout-command-list-sizer {
68
+ min-height: 100%;
69
+ }
70
+
71
+ .sprout-search-group.sprout-command-group {
72
+ padding: 4px 0 0;
73
+ overflow: visible;
74
+ }
75
+ .sprout-search-group + .sprout-search-group {
76
+ margin-top: 4px;
77
+ border-top: 1px dashed var(--sprout-line);
78
+ }
79
+ .sprout-search-group > .sprout-command-group-heading {
80
+ padding: 10px 8px 4px;
81
+ }
82
+ .sprout-search-group-heading {
83
+ display: flex;
84
+ align-items: center;
85
+ gap: 6px;
86
+ }
87
+ .sprout-search-group-count {
88
+ min-width: 8px;
89
+ padding-inline: 4px;
90
+ border-radius: 4px;
91
+ background: var(--sprout-hover);
92
+ font-variant-numeric: tabular-nums;
93
+ text-align: center;
94
+ }
95
+
96
+ .sprout-search-item.sprout-command-item {
97
+ gap: 12px;
98
+ min-height: 40px;
99
+ padding: 6px 8px;
100
+ border-radius: calc(var(--sprout-radius-panel) - 4px);
101
+ overflow-wrap: normal;
102
+ }
103
+ .sprout-search-item > .sprout-command-item-check {
104
+ display: none;
105
+ }
106
+ .sprout-search-item-media,
107
+ .sprout-search-item-icon {
108
+ display: flex;
109
+ flex-shrink: 0;
110
+ align-items: center;
111
+ justify-content: center;
112
+ width: 28px;
113
+ height: 28px;
114
+ }
115
+ .sprout-search-item-icon {
116
+ color: var(--sprout-muted);
117
+ }
118
+ .sprout-search-item-media svg {
119
+ flex-shrink: 0;
120
+ }
121
+ .sprout-search-item-text {
122
+ display: flex;
123
+ flex: 1;
124
+ flex-direction: column;
125
+ min-width: 0;
126
+ }
127
+ .sprout-search-item-line {
128
+ display: flex;
129
+ align-items: baseline;
130
+ gap: 6px;
131
+ min-width: 0;
132
+ }
133
+ .sprout-search-item-title,
134
+ .sprout-search-item-meta,
135
+ .sprout-search-item-detail {
136
+ min-width: 0;
137
+ overflow: hidden;
138
+ text-overflow: ellipsis;
139
+ white-space: nowrap;
140
+ }
141
+ .sprout-search-item-title {
142
+ flex-shrink: 1;
143
+ font-weight: 500;
144
+ }
145
+ .sprout-search-item-dot,
146
+ .sprout-search-item-meta,
147
+ .sprout-search-item-detail,
148
+ .sprout-search-item-trailing {
149
+ color: var(--sprout-muted);
150
+ }
151
+ .sprout-search-item-dot {
152
+ flex-shrink: 0;
153
+ }
154
+ .sprout-search-item-meta {
155
+ flex-shrink: 0;
156
+ max-width: 40%;
157
+ }
158
+ .sprout-search-item-detail {
159
+ font-size: var(--sprout-text-xs);
160
+ line-height: 1rem;
161
+ }
162
+ .sprout-search-item-trailing {
163
+ flex-shrink: 0;
164
+ font-size: var(--sprout-text-xs);
165
+ white-space: nowrap;
166
+ }
167
+ .sprout-search-item-enter {
168
+ display: none;
169
+ }
170
+ .sprout-search-item[data-selected] > .sprout-search-item-trailing {
171
+ display: none;
172
+ }
173
+ .sprout-search-item[data-selected] > .sprout-search-item-enter {
174
+ display: inline-flex;
175
+ }
176
+
177
+ /* Empty */
178
+ .sprout-search-empty {
179
+ box-sizing: border-box;
180
+ display: flex;
181
+ flex: 1;
182
+ flex-direction: column;
183
+ align-items: center;
184
+ justify-content: center;
185
+ gap: 12px;
186
+ min-height: 100%;
187
+ padding: 16px 24px;
188
+ text-align: center;
189
+ }
190
+ .sprout-search-empty-media {
191
+ display: flex;
192
+ align-items: center;
193
+ justify-content: center;
194
+ width: 224px;
195
+ height: 112px;
196
+ background-image:
197
+ linear-gradient(var(--sprout-line) 1px, transparent 1px),
198
+ linear-gradient(90deg, var(--sprout-line) 1px, transparent 1px);
199
+ background-size: 16px 16px;
200
+ mask-image: radial-gradient(closest-side, #000 30%, transparent 100%);
201
+ }
202
+ .sprout-search-empty-tiles {
203
+ display: flex;
204
+ align-items: center;
205
+ }
206
+ .sprout-search-empty-tile {
207
+ display: flex;
208
+ align-items: center;
209
+ justify-content: center;
210
+ width: 44px;
211
+ height: 44px;
212
+ margin-inline: -4px;
213
+ border: 1px solid var(--sprout-line);
214
+ border-radius: var(--sprout-radius-panel);
215
+ background: var(--sprout-surface);
216
+ box-shadow: var(--sprout-shadow-panel);
217
+ color: var(--sprout-muted);
218
+ }
219
+ .sprout-search-empty-tile:first-child:not(:only-child) {
220
+ rotate: -8deg;
221
+ }
222
+ .sprout-search-empty-tile:last-child:not(:only-child) {
223
+ rotate: 8deg;
224
+ }
225
+ .sprout-search-empty-tile > svg {
226
+ width: 20px;
227
+ height: 20px;
228
+ }
229
+ .sprout-search-empty-text {
230
+ display: flex;
231
+ flex-direction: column;
232
+ gap: 4px;
233
+ max-width: 24rem;
234
+ }
235
+ .sprout-search-empty-title {
236
+ font-weight: 600;
237
+ }
238
+ .sprout-search-empty-description {
239
+ color: var(--sprout-muted);
240
+ text-wrap: pretty;
241
+ }
242
+ .sprout-search-empty-title,
243
+ .sprout-search-empty-description {
244
+ margin: 0;
245
+ }
246
+
247
+ /* Footer */
248
+ .sprout-search-footer {
249
+ display: none;
250
+ flex-shrink: 0;
251
+ align-items: center;
252
+ gap: 16px;
253
+ height: 44px;
254
+ padding-inline: 16px;
255
+ border-top: 1px solid var(--sprout-line);
256
+ background: color-mix(
257
+ in oklab,
258
+ var(--sprout-canvas) 70%,
259
+ var(--sprout-surface)
260
+ );
261
+ color: var(--sprout-muted);
262
+ font-size: var(--sprout-text-xs);
263
+ line-height: 1rem;
264
+ }
265
+ .sprout-search-hint {
266
+ display: inline-flex;
267
+ align-items: center;
268
+ gap: 6px;
269
+ white-space: nowrap;
270
+ }
271
+
272
+ @media (min-width: 40rem) {
273
+ .sprout-dialog-content.sprout-search-dialog {
274
+ max-width: 42rem;
275
+ }
276
+ .sprout-search-footer {
277
+ display: flex;
278
+ }
279
+ }
280
+ }
@@ -0,0 +1,17 @@
1
+ @layer components {
2
+ .sprout-search-field {
3
+ max-width: 24rem;
4
+ }
5
+ @media (prefers-reduced-motion: no-preference) {
6
+ .sprout-search-field-clear {
7
+ animation: sprout-search-field-clear-in var(--sprout-motion-fast, 120ms)
8
+ var(--sprout-motion-ease, ease-out);
9
+ }
10
+ }
11
+ @keyframes sprout-search-field-clear-in {
12
+ from {
13
+ opacity: 0;
14
+ transform: scale(0.8);
15
+ }
16
+ }
17
+ }
@@ -0,0 +1,285 @@
1
+ @layer components {
2
+ .sprout-select-trigger {
3
+ --sprout-select-icon: 1rem;
4
+ box-sizing: border-box;
5
+ display: inline-flex;
6
+ align-items: center;
7
+ justify-content: space-between;
8
+ gap: 6px;
9
+ min-width: 0;
10
+ max-width: 100%;
11
+ height: 32px;
12
+ padding: 0 8px 0 10px;
13
+ border: 1px solid var(--sprout-input);
14
+ border-radius: var(--sprout-radius-control);
15
+ background: var(--sprout-surface);
16
+ color: var(--sprout-text);
17
+ box-shadow: var(--sprout-shadow-control);
18
+ font-family: inherit;
19
+ font-size: var(--sprout-text-sm);
20
+ font-weight: 400;
21
+ line-height: 20px;
22
+ text-align: start;
23
+ white-space: nowrap;
24
+ cursor: pointer;
25
+ outline: none;
26
+ user-select: none;
27
+ -webkit-tap-highlight-color: transparent;
28
+ }
29
+ .sprout-select-trigger:hover {
30
+ border-color: var(--sprout-border);
31
+ }
32
+ .sprout-select-trigger[data-popup-open] {
33
+ border-color: var(--sprout-border);
34
+ background: var(--sprout-hover);
35
+ }
36
+ .sprout-select-trigger:focus-visible {
37
+ outline: var(--sprout-focus-width) solid var(--sprout-focus-ring);
38
+ outline-offset: 0;
39
+ }
40
+ .sprout-select-trigger[data-placeholder] {
41
+ color: var(--sprout-muted);
42
+ }
43
+ .sprout-select-trigger:disabled,
44
+ .sprout-select-trigger[data-disabled] {
45
+ opacity: 0.5;
46
+ cursor: not-allowed;
47
+ pointer-events: none;
48
+ }
49
+ .sprout-select-trigger[aria-busy="true"] {
50
+ cursor: progress;
51
+ }
52
+ .sprout-select-trigger[aria-invalid="true"],
53
+ .sprout-select-trigger[data-invalid] {
54
+ border-color: var(--sprout-danger);
55
+ }
56
+ .sprout-select-trigger[aria-invalid="true"]:focus-visible,
57
+ .sprout-select-trigger[data-invalid]:focus-visible {
58
+ outline-color: var(--sprout-danger);
59
+ }
60
+ .sprout-select-trigger svg {
61
+ flex-shrink: 0;
62
+ pointer-events: none;
63
+ }
64
+ .sprout-select-trigger svg:not([class*="size-"]) {
65
+ width: var(--sprout-select-icon);
66
+ height: var(--sprout-select-icon);
67
+ }
68
+
69
+ .sprout-select-trigger-sm {
70
+ --sprout-select-icon: 0.875rem;
71
+ gap: 4px;
72
+ height: 28px;
73
+ padding: 0 6px 0 8px;
74
+ border-radius: min(var(--sprout-radius-control), 12px);
75
+ font-size: var(--sprout-text-xs);
76
+ }
77
+ .sprout-select-trigger-calendar {
78
+ --sprout-select-icon: 0.875rem;
79
+ gap: 4px;
80
+ height: 32px;
81
+ padding: 0 6px 0 8px;
82
+ font-size: var(--sprout-text-xs);
83
+ }
84
+ .sprout-select-trigger-fit {
85
+ width: fit-content;
86
+ }
87
+ .sprout-select-trigger-full {
88
+ width: 100%;
89
+ }
90
+
91
+ .sprout-select-value {
92
+ display: flex;
93
+ flex: 1 1 auto;
94
+ align-items: center;
95
+ gap: 8px;
96
+ min-width: 0;
97
+ overflow: hidden;
98
+ text-overflow: ellipsis;
99
+ white-space: nowrap;
100
+ }
101
+ .sprout-select-value > * {
102
+ min-width: 0;
103
+ }
104
+
105
+ .sprout-select-icon {
106
+ display: flex;
107
+ flex-shrink: 0;
108
+ color: var(--sprout-muted);
109
+ }
110
+
111
+ .sprout-select-positioner {
112
+ z-index: 50;
113
+ isolation: isolate;
114
+ outline: none;
115
+ }
116
+
117
+ .sprout-select-content {
118
+ position: relative;
119
+ box-sizing: border-box;
120
+ width: var(--anchor-width);
121
+ min-width: 9rem;
122
+ max-width: var(--available-width);
123
+ max-height: var(--available-height);
124
+ overflow-x: hidden;
125
+ overflow-y: auto;
126
+ overscroll-behavior: contain;
127
+ border: 1px solid var(--sprout-line);
128
+ border-radius: var(--sprout-radius-panel);
129
+ background: var(--sprout-surface);
130
+ color: var(--sprout-text);
131
+ box-shadow: var(--sprout-shadow-overlay);
132
+ font-family: var(--sprout-font);
133
+ font-size: var(--sprout-text-sm);
134
+ line-height: 1.25rem;
135
+ outline: none;
136
+ scrollbar-width: thin;
137
+ transform-origin: var(--transform-origin);
138
+ }
139
+ .sprout-select-list {
140
+ padding: 4px;
141
+ outline: none;
142
+ }
143
+
144
+ .sprout-select-group {
145
+ scroll-margin-block: 4px;
146
+ }
147
+ .sprout-select-label {
148
+ padding: 4px 6px;
149
+ color: var(--sprout-muted);
150
+ font-size: var(--sprout-text-xs);
151
+ font-weight: 500;
152
+ line-height: 1rem;
153
+ overflow-wrap: break-word;
154
+ }
155
+
156
+ .sprout-select-item {
157
+ position: relative;
158
+ display: flex;
159
+ align-items: center;
160
+ gap: 6px;
161
+ min-width: 0;
162
+ min-height: 28px;
163
+ padding: 4px 32px 4px 6px;
164
+ border-radius: var(--sprout-radius-control);
165
+ color: var(--sprout-text);
166
+ text-align: start;
167
+ outline: none;
168
+ cursor: pointer;
169
+ user-select: none;
170
+ scroll-margin-block: 4px;
171
+ -webkit-tap-highlight-color: transparent;
172
+ }
173
+ .sprout-select-item[data-highlighted] {
174
+ background: var(--sprout-hover);
175
+ }
176
+ .sprout-select-item[data-selected] {
177
+ font-weight: 500;
178
+ }
179
+ .sprout-select-item[data-disabled] {
180
+ opacity: 0.5;
181
+ cursor: not-allowed;
182
+ }
183
+ .sprout-select-item svg {
184
+ flex-shrink: 0;
185
+ pointer-events: none;
186
+ }
187
+ .sprout-select-item svg:not([class*="size-"]) {
188
+ width: 16px;
189
+ height: 16px;
190
+ }
191
+ .sprout-select-item-text {
192
+ display: flex;
193
+ flex: 1 1 auto;
194
+ align-items: center;
195
+ gap: 6px;
196
+ min-width: 0;
197
+ overflow-wrap: anywhere;
198
+ white-space: normal;
199
+ }
200
+ .sprout-select-item-text > svg {
201
+ color: var(--sprout-muted);
202
+ }
203
+ .sprout-select-item-indicator {
204
+ position: absolute;
205
+ inset-inline-end: 8px;
206
+ display: flex;
207
+ align-items: center;
208
+ justify-content: center;
209
+ pointer-events: none;
210
+ }
211
+
212
+ .sprout-select-separator {
213
+ height: 1px;
214
+ margin: 4px -4px;
215
+ background: var(--sprout-line);
216
+ pointer-events: none;
217
+ }
218
+
219
+ .sprout-select-scroll-button {
220
+ z-index: 1;
221
+ display: flex;
222
+ align-items: center;
223
+ justify-content: center;
224
+ width: 100%;
225
+ height: 24px;
226
+ background: var(--sprout-surface);
227
+ color: var(--sprout-muted);
228
+ cursor: default;
229
+ }
230
+ .sprout-select-scroll-up {
231
+ top: 0;
232
+ border-radius: var(--sprout-radius-panel) var(--sprout-radius-panel) 0 0;
233
+ }
234
+ .sprout-select-scroll-down {
235
+ bottom: 0;
236
+ border-radius: 0 0 var(--sprout-radius-panel) var(--sprout-radius-panel);
237
+ }
238
+ .sprout-select-scroll-button svg {
239
+ width: 14px;
240
+ height: 14px;
241
+ }
242
+
243
+ @media (pointer: coarse) {
244
+ .sprout-select-trigger,
245
+ .sprout-select-item {
246
+ min-height: 2.75rem;
247
+ }
248
+ .sprout-select-trigger-calendar {
249
+ min-width: 2.75rem;
250
+ }
251
+ }
252
+
253
+ @media (forced-colors: active) {
254
+ .sprout-select-item[data-highlighted] {
255
+ outline: 2px solid Highlight;
256
+ outline-offset: -1px;
257
+ }
258
+ }
259
+
260
+ @media (prefers-reduced-motion: no-preference) {
261
+ .sprout-select-trigger {
262
+ transition:
263
+ background-color var(--sprout-motion-fast) ease-out,
264
+ border-color var(--sprout-motion-fast) ease-out,
265
+ opacity var(--sprout-motion-fast) ease-out;
266
+ }
267
+ .sprout-select-content {
268
+ transition:
269
+ opacity var(--sprout-motion-fast) var(--sprout-motion-ease),
270
+ scale var(--sprout-motion-fast) var(--sprout-motion-ease);
271
+ }
272
+ .sprout-select-content[data-starting-style],
273
+ .sprout-select-content[data-ending-style] {
274
+ opacity: 0;
275
+ scale: 0.96;
276
+ }
277
+ .sprout-select-content[data-side="none"][data-starting-style],
278
+ .sprout-select-content[data-side="none"][data-ending-style] {
279
+ scale: 1;
280
+ }
281
+ .sprout-select-item {
282
+ transition: background-color var(--sprout-motion-fast) ease-out;
283
+ }
284
+ }
285
+ }
@@ -0,0 +1,31 @@
1
+ @layer components {
2
+ .sprout-selection-slot {
3
+ container: sprout-selection / inline-size;
4
+ display: grid;
5
+ grid-template-columns: minmax(0, 1fr);
6
+ align-items: center;
7
+ min-width: 0;
8
+ }
9
+ .sprout-selection-slot-layer {
10
+ grid-area: 1 / 1;
11
+ min-width: 0;
12
+ }
13
+ .sprout-selection-slot-layer[inert] {
14
+ visibility: hidden;
15
+ }
16
+
17
+ /* The tools hide at once and the selection fades in, so they never overlap. */
18
+ @media (prefers-reduced-motion: no-preference) {
19
+ .sprout-selection-slot-selection {
20
+ animation: sprout-selection-slot-in var(--sprout-motion-normal)
21
+ var(--sprout-motion-ease);
22
+ }
23
+ }
24
+
25
+ @keyframes sprout-selection-slot-in {
26
+ from {
27
+ opacity: 0;
28
+ transform: translateY(2px);
29
+ }
30
+ }
31
+ }