@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,186 @@
1
+ @layer components {
2
+ .sprout-avatar,
3
+ .sprout-entity-avatar {
4
+ --sprout-avatar-size: 2rem;
5
+ position: relative;
6
+ display: flex;
7
+ flex-shrink: 0;
8
+ width: var(--sprout-avatar-size);
9
+ height: var(--sprout-avatar-size);
10
+ border-radius: 9999px;
11
+ font-family: var(--sprout-font);
12
+ font-size: var(--sprout-text-sm);
13
+ line-height: 1;
14
+ user-select: none;
15
+ }
16
+ .sprout-avatar::after {
17
+ content: "";
18
+ position: absolute;
19
+ inset: 0;
20
+ border: 1px solid var(--sprout-line);
21
+ border-radius: inherit;
22
+ mix-blend-mode: darken;
23
+ pointer-events: none;
24
+ }
25
+ .dark .sprout-avatar::after {
26
+ mix-blend-mode: lighten;
27
+ }
28
+ @media (prefers-color-scheme: dark) {
29
+ :root:not(.light):not(.dark) .sprout-avatar::after {
30
+ mix-blend-mode: lighten;
31
+ }
32
+ }
33
+ :is(.sprout-avatar, .sprout-entity-avatar)[data-size="xs"] {
34
+ --sprout-avatar-size: 1.25rem;
35
+ font-size: var(--sprout-text-xs);
36
+ }
37
+ :is(.sprout-avatar, .sprout-entity-avatar)[data-size="sm"] {
38
+ --sprout-avatar-size: 1.5rem;
39
+ font-size: var(--sprout-text-xs);
40
+ }
41
+ .sprout-avatar[data-size="lg"] {
42
+ --sprout-avatar-size: 2.5rem;
43
+ }
44
+ .sprout-entity-avatar[data-size="lg"] {
45
+ --sprout-avatar-size: 2.5rem;
46
+ font-size: var(--sprout-text-base);
47
+ }
48
+ .sprout-entity-avatar[data-size="xl"] {
49
+ --sprout-avatar-size: 4rem;
50
+ font-size: 1.5rem;
51
+ }
52
+ .sprout-entity-avatar {
53
+ overflow: hidden;
54
+ }
55
+ .sprout-entity-avatar[data-shape="square"] {
56
+ border-radius: 0.5rem;
57
+ }
58
+ .sprout-entity-avatar[data-shape="square"][data-size="xs"] {
59
+ border-radius: 0.25rem;
60
+ }
61
+
62
+ .sprout-avatar-image {
63
+ width: 100%;
64
+ height: 100%;
65
+ aspect-ratio: 1;
66
+ border-radius: inherit;
67
+ object-fit: cover;
68
+ transition: opacity var(--sprout-motion-normal, 180ms)
69
+ var(--sprout-motion-ease, ease);
70
+ }
71
+ .sprout-avatar-image[data-starting-style],
72
+ .sprout-avatar-image[data-ending-style] {
73
+ opacity: 0;
74
+ }
75
+ .sprout-avatar-fallback,
76
+ .sprout-entity-avatar-fallback {
77
+ display: flex;
78
+ align-items: center;
79
+ justify-content: center;
80
+ width: 100%;
81
+ height: 100%;
82
+ border-radius: inherit;
83
+ }
84
+ .sprout-avatar-fallback {
85
+ background: var(--sprout-hover);
86
+ color: var(--sprout-muted);
87
+ }
88
+ .sprout-entity-avatar-fallback {
89
+ color: #fff;
90
+ font-weight: 600;
91
+ }
92
+
93
+ .sprout-avatar-badge {
94
+ position: absolute;
95
+ right: 0;
96
+ bottom: 0;
97
+ z-index: 1;
98
+ display: inline-flex;
99
+ align-items: center;
100
+ justify-content: center;
101
+ width: 0.625rem;
102
+ height: 0.625rem;
103
+ border-radius: 9999px;
104
+ background: var(--sprout-primary);
105
+ color: var(--sprout-on-primary);
106
+ box-shadow: 0 0 0 2px var(--sprout-avatar-ring, var(--sprout-canvas));
107
+ user-select: none;
108
+ }
109
+ .sprout-avatar-badge > svg {
110
+ width: 0.5rem;
111
+ height: 0.5rem;
112
+ }
113
+ .sprout-avatar[data-size="xs"] > .sprout-avatar-badge {
114
+ width: 0.375rem;
115
+ height: 0.375rem;
116
+ }
117
+ .sprout-avatar[data-size="sm"] > .sprout-avatar-badge {
118
+ width: 0.5rem;
119
+ height: 0.5rem;
120
+ }
121
+ .sprout-avatar:is([data-size="xs"], [data-size="sm"])
122
+ > .sprout-avatar-badge
123
+ > svg {
124
+ display: none;
125
+ }
126
+ .sprout-avatar[data-size="lg"] > .sprout-avatar-badge {
127
+ width: 0.75rem;
128
+ height: 0.75rem;
129
+ }
130
+
131
+ .sprout-avatar-group {
132
+ display: flex;
133
+ }
134
+ .sprout-avatar-group > * + * {
135
+ margin-inline-start: -0.5rem;
136
+ }
137
+ .sprout-avatar-group > :is(.sprout-avatar, .sprout-avatar-group-count) {
138
+ box-shadow: 0 0 0 2px var(--sprout-avatar-ring, var(--sprout-canvas));
139
+ }
140
+ .sprout-avatar-group-count {
141
+ position: relative;
142
+ display: flex;
143
+ flex-shrink: 0;
144
+ align-items: center;
145
+ justify-content: center;
146
+ width: 2rem;
147
+ height: 2rem;
148
+ border-radius: 9999px;
149
+ background: var(--sprout-hover);
150
+ color: var(--sprout-muted);
151
+ font-family: var(--sprout-font);
152
+ font-size: var(--sprout-text-sm);
153
+ line-height: 1;
154
+ }
155
+ .sprout-avatar-group-count > svg {
156
+ width: 1rem;
157
+ height: 1rem;
158
+ }
159
+ .sprout-avatar-group:has(> [data-size="sm"]) > .sprout-avatar-group-count {
160
+ width: 1.5rem;
161
+ height: 1.5rem;
162
+ font-size: var(--sprout-text-xs);
163
+ }
164
+ .sprout-avatar-group:has(> [data-size="sm"])
165
+ > .sprout-avatar-group-count
166
+ > svg {
167
+ width: 0.75rem;
168
+ height: 0.75rem;
169
+ }
170
+ .sprout-avatar-group:has(> [data-size="lg"]) > .sprout-avatar-group-count {
171
+ width: 2.5rem;
172
+ height: 2.5rem;
173
+ }
174
+ .sprout-avatar-group:has(> [data-size="lg"])
175
+ > .sprout-avatar-group-count
176
+ > svg {
177
+ width: 1.25rem;
178
+ height: 1.25rem;
179
+ }
180
+
181
+ @media (prefers-reduced-motion: reduce) {
182
+ .sprout-avatar-image {
183
+ transition: none;
184
+ }
185
+ }
186
+ }
@@ -0,0 +1,178 @@
1
+ @layer components {
2
+ .sprout-badge {
3
+ display: inline-flex;
4
+ flex-shrink: 0;
5
+ align-items: center;
6
+ justify-content: center;
7
+ gap: 4px;
8
+ box-sizing: border-box;
9
+ width: fit-content;
10
+ max-width: 100%;
11
+ height: 20px;
12
+ overflow: hidden;
13
+ padding: 2px 8px;
14
+ border: 1px solid transparent;
15
+ border-radius: 999px;
16
+ background: transparent;
17
+ font-family: inherit;
18
+ font-size: var(--sprout-text-xs);
19
+ font-weight: 500;
20
+ line-height: 1rem;
21
+ white-space: nowrap;
22
+ vertical-align: middle;
23
+ text-decoration: none;
24
+ color: var(--sprout-text);
25
+ }
26
+ .sprout-badge:has(> [data-icon="inline-start"]) {
27
+ padding-inline-start: 6px;
28
+ }
29
+ .sprout-badge:has(> [data-icon="inline-end"]) {
30
+ padding-inline-end: 6px;
31
+ }
32
+ .sprout-badge > svg {
33
+ flex-shrink: 0;
34
+ width: 12px !important;
35
+ height: 12px !important;
36
+ pointer-events: none;
37
+ }
38
+ .sprout-badge:focus-visible {
39
+ outline: var(--sprout-focus-width) solid var(--sprout-focus-ring);
40
+ outline-offset: 0;
41
+ }
42
+ .sprout-badge[aria-invalid="true"] {
43
+ border-color: var(--sprout-danger);
44
+ box-shadow: 0 0 0 3px
45
+ color-mix(in oklab, var(--sprout-danger) 22%, transparent);
46
+ }
47
+ .sprout-badge:is(a[href], button):not(:disabled) {
48
+ cursor: pointer;
49
+ }
50
+ .sprout-badge:is(button) {
51
+ appearance: none;
52
+ margin: 0;
53
+ }
54
+ .sprout-badge:is(button):disabled,
55
+ .sprout-badge[aria-disabled="true"] {
56
+ opacity: 0.55;
57
+ cursor: not-allowed;
58
+ }
59
+
60
+ .sprout-badge-chip {
61
+ align-items: flex-start;
62
+ min-width: 0;
63
+ height: auto;
64
+ min-height: 24px;
65
+ padding-block: 3px;
66
+ border-radius: 12px;
67
+ white-space: normal;
68
+ overflow-wrap: anywhere;
69
+ text-align: start;
70
+ }
71
+ .sprout-badge-chip > svg {
72
+ margin-top: 2px;
73
+ }
74
+
75
+ .sprout-badge-default {
76
+ background: var(--sprout-primary-subtle);
77
+ color: var(--sprout-primary);
78
+ }
79
+ .sprout-badge-success {
80
+ background: var(--sprout-success-subtle);
81
+ color: var(--sprout-success);
82
+ }
83
+ .sprout-badge-warning {
84
+ background: var(--sprout-warning-subtle);
85
+ color: var(--sprout-warning);
86
+ }
87
+ .sprout-badge-info {
88
+ background: var(--sprout-info-subtle);
89
+ color: var(--sprout-info);
90
+ }
91
+ .sprout-badge-secondary {
92
+ background: var(--sprout-secondary);
93
+ color: var(--sprout-text);
94
+ }
95
+ .sprout-badge-destructive {
96
+ background: var(--sprout-danger-subtle);
97
+ color: var(--sprout-danger);
98
+ }
99
+ .sprout-badge-destructive:focus-visible {
100
+ outline-color: var(--sprout-danger);
101
+ }
102
+ .sprout-badge-outline {
103
+ border-color: var(--sprout-line);
104
+ color: var(--sprout-text);
105
+ }
106
+ .sprout-badge-ghost {
107
+ background: transparent;
108
+ color: var(--sprout-text);
109
+ }
110
+ .sprout-badge-link {
111
+ background: transparent;
112
+ color: var(--sprout-primary);
113
+ text-underline-offset: 4px;
114
+ }
115
+
116
+ @media (hover: hover) {
117
+ .sprout-badge-default:is(a[href], button:not(:disabled)):hover {
118
+ background: color-mix(
119
+ in oklab,
120
+ var(--sprout-primary) 16%,
121
+ var(--sprout-surface)
122
+ );
123
+ }
124
+ .sprout-badge-success:is(a[href], button:not(:disabled)):hover {
125
+ background: color-mix(
126
+ in oklab,
127
+ var(--sprout-success) 18%,
128
+ var(--sprout-success-subtle)
129
+ );
130
+ }
131
+ .sprout-badge-warning:is(a[href], button:not(:disabled)):hover {
132
+ background: color-mix(
133
+ in oklab,
134
+ var(--sprout-warning) 18%,
135
+ var(--sprout-warning-subtle)
136
+ );
137
+ }
138
+ .sprout-badge-info:is(a[href], button:not(:disabled)):hover {
139
+ background: color-mix(
140
+ in oklab,
141
+ var(--sprout-info) 18%,
142
+ var(--sprout-info-subtle)
143
+ );
144
+ }
145
+ .sprout-badge-secondary:is(a[href], button:not(:disabled)):hover {
146
+ background: color-mix(
147
+ in oklab,
148
+ var(--sprout-text) 8%,
149
+ var(--sprout-secondary)
150
+ );
151
+ }
152
+ .sprout-badge-destructive:is(a[href], button:not(:disabled)):hover {
153
+ background: color-mix(
154
+ in oklab,
155
+ var(--sprout-danger) 20%,
156
+ var(--sprout-danger-subtle)
157
+ );
158
+ }
159
+ .sprout-badge-outline:is(a[href], button:not(:disabled)):hover,
160
+ .sprout-badge-ghost:is(a[href], button:not(:disabled)):hover {
161
+ background: var(--sprout-hover);
162
+ color: var(--sprout-muted);
163
+ }
164
+ .sprout-badge-link:is(a[href], button:not(:disabled)):hover {
165
+ text-decoration: underline;
166
+ }
167
+ }
168
+
169
+ @media (prefers-reduced-motion: no-preference) {
170
+ .sprout-badge {
171
+ transition:
172
+ background-color var(--sprout-motion-fast) ease-out,
173
+ color var(--sprout-motion-fast) ease-out,
174
+ border-color var(--sprout-motion-fast) ease-out,
175
+ box-shadow var(--sprout-motion-normal) var(--sprout-motion-ease);
176
+ }
177
+ }
178
+ }
@@ -0,0 +1,104 @@
1
+ @layer components {
2
+ /* [data-size] lifts these above .sprout-button when a tile renders a Button. */
3
+ .sprout-brand-tile[data-size] {
4
+ --sprout-brand-tile-size: 2.25rem;
5
+ box-sizing: border-box;
6
+ position: relative;
7
+ display: grid;
8
+ flex-shrink: 0;
9
+ place-items: center;
10
+ width: var(--sprout-brand-tile-size);
11
+ min-width: var(--sprout-brand-tile-size);
12
+ height: var(--sprout-brand-tile-size);
13
+ padding: 0.5rem;
14
+ border: 1px solid var(--sprout-line);
15
+ border-radius: 0.5rem;
16
+ background: var(--sprout-surface);
17
+ color: var(--sprout-text);
18
+ box-shadow: var(--sprout-shadow-control);
19
+ font-family: var(--sprout-font);
20
+ line-height: 1;
21
+ }
22
+ .sprout-brand-tile[data-size="sm"] {
23
+ --sprout-brand-tile-size: 1.5rem;
24
+ padding: 0.25rem;
25
+ border-radius: 0.375rem;
26
+ }
27
+ .sprout-brand-tile[data-size="lg"] {
28
+ --sprout-brand-tile-size: 3rem;
29
+ padding: 0.625rem;
30
+ border-radius: 0.75rem;
31
+ }
32
+ .sprout-brand-tile[data-size="xl"] {
33
+ --sprout-brand-tile-size: 3.5rem;
34
+ padding: 0.75rem;
35
+ border-radius: 1rem;
36
+ }
37
+ @media (pointer: coarse) {
38
+ .sprout-brand-tile[data-size="action"] {
39
+ --sprout-brand-tile-size: 2.75rem;
40
+ padding: 0.75rem;
41
+ }
42
+ }
43
+ .sprout-brand-tile[data-size]:is(button, a) {
44
+ cursor: pointer;
45
+ transition:
46
+ background-color var(--sprout-motion-fast) var(--sprout-motion-ease),
47
+ border-color var(--sprout-motion-fast) var(--sprout-motion-ease);
48
+ }
49
+ .sprout-brand-tile[data-size]:is(button, a):hover:not(:disabled) {
50
+ background: var(--sprout-hover);
51
+ }
52
+ .sprout-brand-tile[data-size]:is(button, a):focus-visible {
53
+ outline: var(--sprout-focus-width) solid var(--sprout-focus-ring);
54
+ outline-offset: 0;
55
+ }
56
+ .sprout-brand-tile[data-size]:is(button, a):disabled {
57
+ cursor: not-allowed;
58
+ opacity: 0.5;
59
+ }
60
+ .sprout-brand-icon[data-size] {
61
+ display: grid;
62
+ flex-shrink: 0;
63
+ place-items: center;
64
+ width: 1rem;
65
+ height: 1rem;
66
+ }
67
+ .sprout-brand-icon[data-size="glyph"] {
68
+ width: 1.25rem;
69
+ height: 1.25rem;
70
+ }
71
+ .sprout-brand-icon[data-size="fill"] {
72
+ width: 100%;
73
+ height: 100%;
74
+ }
75
+ :is(.sprout-brand-icon, .sprout-brand-tile)[data-size]
76
+ > svg.sprout-brand-glyph {
77
+ display: block;
78
+ width: 100%;
79
+ height: 100%;
80
+ }
81
+
82
+ .sprout-brand-stack {
83
+ display: flex;
84
+ flex-shrink: 0;
85
+ align-items: center;
86
+ }
87
+ .sprout-brand-stack > * + * {
88
+ margin-inline-start: -0.375rem;
89
+ }
90
+ .sprout-brand-stack > .sprout-brand-tile[data-size] {
91
+ box-shadow:
92
+ 0 0 0 2px var(--sprout-brand-ring, var(--sprout-canvas)),
93
+ var(--sprout-shadow-control);
94
+ }
95
+ .sprout-brand-stack > .sprout-brand-tile:hover {
96
+ z-index: 1;
97
+ }
98
+
99
+ @media (prefers-reduced-motion: reduce) {
100
+ .sprout-brand-tile[data-size]:is(button, a) {
101
+ transition: none;
102
+ }
103
+ }
104
+ }
@@ -0,0 +1,121 @@
1
+ @layer components {
2
+ .sprout-breadcrumb {
3
+ min-width: 0;
4
+ }
5
+ .sprout-breadcrumb-list {
6
+ display: flex;
7
+ flex-wrap: wrap;
8
+ align-items: center;
9
+ gap: 6px;
10
+ min-width: 0;
11
+ margin: 0;
12
+ padding: 0;
13
+ color: var(--sprout-muted);
14
+ font-size: var(--sprout-text-sm);
15
+ line-height: 1.25rem;
16
+ list-style: none;
17
+ overflow-wrap: break-word;
18
+ }
19
+ .sprout-breadcrumb-list[data-wrap="false"] {
20
+ flex-wrap: nowrap;
21
+ }
22
+ .sprout-breadcrumb-item {
23
+ display: inline-flex;
24
+ align-items: center;
25
+ gap: 4px;
26
+ min-width: 0;
27
+ }
28
+ .sprout-breadcrumb-list[data-wrap="false"] > .sprout-breadcrumb-item {
29
+ flex-shrink: 0;
30
+ }
31
+ .sprout-breadcrumb-list[data-wrap="false"]
32
+ > .sprout-breadcrumb-item:is(
33
+ [aria-current="page"],
34
+ :has(> [aria-current="page"])
35
+ ) {
36
+ flex-shrink: 1;
37
+ }
38
+
39
+ .sprout-breadcrumb-link {
40
+ display: inline-flex;
41
+ align-items: center;
42
+ gap: 4px;
43
+ min-width: 0;
44
+ border-radius: 2px;
45
+ color: inherit;
46
+ text-decoration: none;
47
+ }
48
+ .sprout-breadcrumb-link > svg {
49
+ flex-shrink: 0;
50
+ width: 14px;
51
+ height: 14px;
52
+ }
53
+ .sprout-breadcrumb-link:is(a[href], button):hover {
54
+ color: var(--sprout-text);
55
+ }
56
+ .sprout-breadcrumb-link:focus-visible {
57
+ outline: var(--sprout-focus-width) solid var(--sprout-focus-ring);
58
+ outline-offset: 0;
59
+ }
60
+
61
+ .sprout-breadcrumb-page {
62
+ display: inline-flex;
63
+ align-items: center;
64
+ gap: 4px;
65
+ min-width: 0;
66
+ color: var(--sprout-text);
67
+ font-weight: 400;
68
+ }
69
+
70
+ .sprout-breadcrumb-label {
71
+ display: block;
72
+ min-width: 0;
73
+ max-width: var(--sprout-breadcrumb-label-width, 12rem);
74
+ overflow: hidden;
75
+ text-overflow: ellipsis;
76
+ white-space: nowrap;
77
+ }
78
+
79
+ .sprout-breadcrumb-separator {
80
+ display: inline-flex;
81
+ flex-shrink: 0;
82
+ align-items: center;
83
+ }
84
+ .sprout-breadcrumb-separator > svg {
85
+ width: 14px;
86
+ height: 14px;
87
+ }
88
+ .sprout-breadcrumb-separator:dir(rtl) > svg {
89
+ transform: scaleX(-1);
90
+ }
91
+
92
+ .sprout-breadcrumb-ellipsis {
93
+ display: flex;
94
+ align-items: center;
95
+ justify-content: center;
96
+ width: 20px;
97
+ height: 20px;
98
+ }
99
+ .sprout-breadcrumb-ellipsis > svg {
100
+ width: 16px;
101
+ height: 16px;
102
+ }
103
+
104
+ .sprout-breadcrumb-sr-only {
105
+ position: absolute;
106
+ width: 1px;
107
+ height: 1px;
108
+ margin: -1px;
109
+ padding: 0;
110
+ overflow: hidden;
111
+ clip: rect(0, 0, 0, 0);
112
+ white-space: nowrap;
113
+ border: 0;
114
+ }
115
+
116
+ @media (prefers-reduced-motion: no-preference) {
117
+ .sprout-breadcrumb-link {
118
+ transition: color var(--sprout-motion-fast) ease-out;
119
+ }
120
+ }
121
+ }
@@ -0,0 +1,113 @@
1
+ @layer components {
2
+ .sprout-button-group {
3
+ display: flex;
4
+ align-items: stretch;
5
+ width: fit-content;
6
+ max-width: 100%;
7
+ }
8
+ .sprout-button-group > :focus-visible {
9
+ position: relative;
10
+ z-index: 1;
11
+ }
12
+ .sprout-button-group:has(> [data-slot="button-group"]) {
13
+ gap: 8px;
14
+ }
15
+ .sprout-button-group > input {
16
+ flex: 1 1 0;
17
+ min-width: 0;
18
+ }
19
+
20
+ .sprout-button-group.sprout-button-group-vertical {
21
+ flex-direction: column;
22
+ }
23
+
24
+ /* Doubled class so these joins outrank per-size button radii. */
25
+ .sprout-button-group.sprout-button-group-horizontal > [data-slot] {
26
+ border-start-end-radius: 0;
27
+ border-end-end-radius: 0;
28
+ }
29
+ .sprout-button-group.sprout-button-group-horizontal
30
+ > [data-slot]:not(:has(~ [data-slot])) {
31
+ border-start-end-radius: var(--sprout-radius-control);
32
+ border-end-end-radius: var(--sprout-radius-control);
33
+ }
34
+ .sprout-button-group.sprout-button-group-horizontal
35
+ > [data-slot]
36
+ ~ [data-slot] {
37
+ border-start-start-radius: 0;
38
+ border-end-start-radius: 0;
39
+ border-inline-start-width: 0;
40
+ }
41
+
42
+ .sprout-button-group.sprout-button-group-vertical > [data-slot] {
43
+ border-end-start-radius: 0;
44
+ border-end-end-radius: 0;
45
+ }
46
+ .sprout-button-group.sprout-button-group-vertical
47
+ > [data-slot]:not(:has(~ [data-slot])) {
48
+ border-end-start-radius: var(--sprout-radius-control);
49
+ border-end-end-radius: var(--sprout-radius-control);
50
+ }
51
+ .sprout-button-group.sprout-button-group-vertical
52
+ > [data-slot]
53
+ ~ [data-slot] {
54
+ border-start-start-radius: 0;
55
+ border-start-end-radius: 0;
56
+ border-block-start-width: 0;
57
+ }
58
+
59
+ .sprout-button-group-text {
60
+ box-sizing: border-box;
61
+ display: flex;
62
+ align-items: center;
63
+ gap: 8px;
64
+ min-height: 28px;
65
+ padding-inline: 10px;
66
+ border: 1px solid var(--sprout-input);
67
+ border-radius: var(--sprout-radius-control);
68
+ background: var(--sprout-secondary);
69
+ color: var(--sprout-text);
70
+ font-family: inherit;
71
+ font-size: var(--sprout-text-sm);
72
+ font-weight: 500;
73
+ line-height: 20px;
74
+ white-space: nowrap;
75
+ }
76
+ .sprout-button-group-text svg {
77
+ flex-shrink: 0;
78
+ pointer-events: none;
79
+ }
80
+ .sprout-button-group-text svg:not([class*="size-"]) {
81
+ width: 1rem;
82
+ height: 1rem;
83
+ }
84
+
85
+ .sprout-button-group-separator {
86
+ position: relative;
87
+ align-self: stretch;
88
+ }
89
+ .sprout-separator.sprout-button-group-separator[data-orientation="horizontal"] {
90
+ width: auto;
91
+ margin-inline: 1px;
92
+ }
93
+ .sprout-separator.sprout-button-group-separator[data-orientation="vertical"] {
94
+ height: auto;
95
+ min-height: 0;
96
+ margin-block: 1px;
97
+ }
98
+
99
+ @media (forced-colors: active) {
100
+ .sprout-button-group-text {
101
+ border-color: CanvasText;
102
+ }
103
+ }
104
+
105
+ @media (prefers-reduced-motion: no-preference) {
106
+ .sprout-button-group-text {
107
+ transition:
108
+ background-color var(--sprout-motion-fast) var(--sprout-motion-ease),
109
+ border-color var(--sprout-motion-fast) var(--sprout-motion-ease),
110
+ color var(--sprout-motion-fast) var(--sprout-motion-ease);
111
+ }
112
+ }
113
+ }