@zonsh/ui 0.0.0 → 0.4.1

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 (425) hide show
  1. package/LICENSE +43 -0
  2. package/README.md +81 -1
  3. package/assets/illustrations/drawing/bracket-construction-dark.svg +77 -0
  4. package/assets/illustrations/drawing/bracket-construction-filled-dark.svg +50 -0
  5. package/assets/illustrations/drawing/bracket-construction-filled.svg +50 -0
  6. package/assets/illustrations/drawing/bracket-construction.svg +77 -0
  7. package/assets/illustrations/drawing/crescent-dark.svg +28 -0
  8. package/assets/illustrations/drawing/crescent-guides-dark.svg +33 -0
  9. package/assets/illustrations/drawing/crescent-guides.svg +33 -0
  10. package/assets/illustrations/drawing/crescent.svg +28 -0
  11. package/assets/illustrations/drawing/eclipse-dark.svg +187 -0
  12. package/assets/illustrations/drawing/eclipse-guides-dark.svg +191 -0
  13. package/assets/illustrations/drawing/eclipse-guides.svg +191 -0
  14. package/assets/illustrations/drawing/eclipse.svg +187 -0
  15. package/assets/illustrations/drawing/elevation-guides-dark.svg +31 -0
  16. package/assets/illustrations/drawing/elevation-guides-plain-dark.svg +9 -0
  17. package/assets/illustrations/drawing/elevation-guides-plain.svg +9 -0
  18. package/assets/illustrations/drawing/elevation-guides.svg +31 -0
  19. package/assets/illustrations/drawing/horizon-dark.svg +30 -0
  20. package/assets/illustrations/drawing/horizon.svg +30 -0
  21. package/assets/illustrations/drawing/nib-study-dark.svg +107 -0
  22. package/assets/illustrations/drawing/nib-study-plain-dark.svg +93 -0
  23. package/assets/illustrations/drawing/nib-study-plain.svg +93 -0
  24. package/assets/illustrations/drawing/nib-study.svg +107 -0
  25. package/assets/illustrations/editorial/assistant-640.webp +0 -0
  26. package/assets/illustrations/editorial/assistant.webp +0 -0
  27. package/assets/illustrations/editorial/automation-640.webp +0 -0
  28. package/assets/illustrations/editorial/automation.webp +0 -0
  29. package/assets/illustrations/editorial/bracket-left-640.webp +0 -0
  30. package/assets/illustrations/editorial/bracket-left.webp +0 -0
  31. package/assets/illustrations/editorial/bracket-right-640.webp +0 -0
  32. package/assets/illustrations/editorial/bracket-right.webp +0 -0
  33. package/assets/illustrations/editorial/custom-software-640.webp +0 -0
  34. package/assets/illustrations/editorial/custom-software.webp +0 -0
  35. package/assets/illustrations/editorial/digitalization-640.webp +0 -0
  36. package/assets/illustrations/editorial/digitalization.webp +0 -0
  37. package/assets/illustrations/editorial/integration-640.webp +0 -0
  38. package/assets/illustrations/editorial/integration.webp +0 -0
  39. package/assets/illustrations/editorial/problem-640.webp +0 -0
  40. package/assets/illustrations/editorial/problem.webp +0 -0
  41. package/assets/illustrations/editorial/process-analysis-640.webp +0 -0
  42. package/assets/illustrations/editorial/process-analysis.webp +0 -0
  43. package/assets/illustrations/editorial/process-concept-640.webp +0 -0
  44. package/assets/illustrations/editorial/process-concept.webp +0 -0
  45. package/assets/illustrations/editorial/process-development-640.webp +0 -0
  46. package/assets/illustrations/editorial/process-development.webp +0 -0
  47. package/assets/illustrations/editorial/process-discovery-640.webp +0 -0
  48. package/assets/illustrations/editorial/process-discovery.webp +0 -0
  49. package/assets/illustrations/editorial/process-maintenance-640.webp +0 -0
  50. package/assets/illustrations/editorial/process-maintenance.webp +0 -0
  51. package/assets/illustrations/editorial/process-prototype-640.webp +0 -0
  52. package/assets/illustrations/editorial/process-prototype.webp +0 -0
  53. package/assets/illustrations/editorial/process-testing-640.webp +0 -0
  54. package/assets/illustrations/editorial/process-testing.webp +0 -0
  55. package/assets/illustrations/iso/automation-dark.svg +6 -0
  56. package/assets/illustrations/iso/automation.svg +6 -0
  57. package/assets/illustrations/iso/bar-chart-dark.svg +6 -0
  58. package/assets/illustrations/iso/bar-chart.svg +6 -0
  59. package/assets/illustrations/iso/brackets-classic-dark.svg +6 -0
  60. package/assets/illustrations/iso/brackets-classic.svg +6 -0
  61. package/assets/illustrations/iso/brackets-dark.svg +6 -0
  62. package/assets/illustrations/iso/brackets.svg +6 -0
  63. package/assets/illustrations/iso/city-dark.svg +6 -0
  64. package/assets/illustrations/iso/city.svg +6 -0
  65. package/assets/illustrations/iso/conveyor-dark.svg +6 -0
  66. package/assets/illustrations/iso/conveyor.svg +6 -0
  67. package/assets/illustrations/iso/database-dark.svg +6 -0
  68. package/assets/illustrations/iso/database.svg +6 -0
  69. package/assets/illustrations/iso/documents-dark.svg +6 -0
  70. package/assets/illustrations/iso/documents.svg +6 -0
  71. package/assets/illustrations/iso/inbox-dark.svg +6 -0
  72. package/assets/illustrations/iso/inbox.svg +6 -0
  73. package/assets/illustrations/iso/laptop-dark.svg +6 -0
  74. package/assets/illustrations/iso/laptop.svg +6 -0
  75. package/assets/illustrations/iso/monitor-dark.svg +6 -0
  76. package/assets/illustrations/iso/monitor.svg +6 -0
  77. package/assets/illustrations/iso/pipeline-dark.svg +6 -0
  78. package/assets/illustrations/iso/pipeline.svg +6 -0
  79. package/assets/illustrations/iso/platform-dark.svg +6 -0
  80. package/assets/illustrations/iso/platform.svg +6 -0
  81. package/assets/illustrations/iso/server-dark.svg +6 -0
  82. package/assets/illustrations/iso/server.svg +6 -0
  83. package/assets/illustrations/iso/spreadsheet-dark.svg +6 -0
  84. package/assets/illustrations/iso/spreadsheet.svg +6 -0
  85. package/assets/illustrations/iso/timeline-dark.svg +6 -0
  86. package/assets/illustrations/iso/timeline.svg +6 -0
  87. package/assets/illustrations/sheet/construction.svg +115 -0
  88. package/assets/illustrations/sheet/crescent.svg +40 -0
  89. package/assets/illustrations/sheet/limb.svg +42 -0
  90. package/assets/illustrations/sheet/stress-axis.svg +119 -0
  91. package/assets/illustrations/sheet/totality.svg +215 -0
  92. package/assets/illustrations/sheet/vertical-metrics.svg +43 -0
  93. package/assets/logo-left.svg +1 -0
  94. package/assets/logo-right.svg +1 -0
  95. package/assets/logo.svg +1 -0
  96. package/dist/components/_overlay.d.ts +47 -0
  97. package/dist/components/_overlay.js +59 -0
  98. package/dist/components/accordion.d.ts +32 -0
  99. package/dist/components/accordion.js +39 -0
  100. package/dist/components/alert-dialog.d.ts +45 -0
  101. package/dist/components/alert-dialog.js +56 -0
  102. package/dist/components/alert.d.ts +35 -0
  103. package/dist/components/alert.js +42 -0
  104. package/dist/components/ascii-field.d.ts +34 -0
  105. package/dist/components/ascii-field.js +410 -0
  106. package/dist/components/aspect-ratio.d.ts +14 -0
  107. package/dist/components/aspect-ratio.js +17 -0
  108. package/dist/components/avatar.d.ts +42 -0
  109. package/dist/components/avatar.js +55 -0
  110. package/dist/components/badge.d.ts +70 -0
  111. package/dist/components/badge.js +62 -0
  112. package/dist/components/bottom-nav.d.ts +86 -0
  113. package/dist/components/bottom-nav.js +175 -0
  114. package/dist/components/breadcrumb.d.ts +31 -0
  115. package/dist/components/breadcrumb.js +37 -0
  116. package/dist/components/button-group.d.ts +30 -0
  117. package/dist/components/button-group.js +47 -0
  118. package/dist/components/button.d.ts +53 -0
  119. package/dist/components/button.js +130 -0
  120. package/dist/components/calendar.d.ts +26 -0
  121. package/dist/components/calendar.js +179 -0
  122. package/dist/components/card.d.ts +42 -0
  123. package/dist/components/card.js +76 -0
  124. package/dist/components/carousel.d.ts +109 -0
  125. package/dist/components/carousel.js +231 -0
  126. package/dist/components/chart.d.ts +189 -0
  127. package/dist/components/chart.js +323 -0
  128. package/dist/components/checkbox.d.ts +23 -0
  129. package/dist/components/checkbox.js +43 -0
  130. package/dist/components/code-block.d.ts +55 -0
  131. package/dist/components/code-block.js +100 -0
  132. package/dist/components/collapsible.d.ts +20 -0
  133. package/dist/components/collapsible.js +32 -0
  134. package/dist/components/color-picker.d.ts +107 -0
  135. package/dist/components/color-picker.js +428 -0
  136. package/dist/components/combobox.d.ts +99 -0
  137. package/dist/components/combobox.js +172 -0
  138. package/dist/components/command.d.ts +132 -0
  139. package/dist/components/command.js +257 -0
  140. package/dist/components/context-menu.d.ts +29 -0
  141. package/dist/components/context-menu.js +35 -0
  142. package/dist/components/conversation.d.ts +36 -0
  143. package/dist/components/conversation.js +303 -0
  144. package/dist/components/copy-button.d.ts +55 -0
  145. package/dist/components/copy-button.js +133 -0
  146. package/dist/components/data-table.d.ts +235 -0
  147. package/dist/components/data-table.js +655 -0
  148. package/dist/components/date-picker.d.ts +160 -0
  149. package/dist/components/date-picker.js +338 -0
  150. package/dist/components/dialog.d.ts +57 -0
  151. package/dist/components/dialog.js +95 -0
  152. package/dist/components/direction.d.ts +16 -0
  153. package/dist/components/direction.js +18 -0
  154. package/dist/components/drawer.d.ts +69 -0
  155. package/dist/components/drawer.js +79 -0
  156. package/dist/components/empty.d.ts +31 -0
  157. package/dist/components/empty.js +50 -0
  158. package/dist/components/feature-list.d.ts +54 -0
  159. package/dist/components/feature-list.js +43 -0
  160. package/dist/components/field.d.ts +34 -0
  161. package/dist/components/field.js +81 -0
  162. package/dist/components/file-drop.d.ts +77 -0
  163. package/dist/components/file-drop.js +258 -0
  164. package/dist/components/filter-bar.d.ts +153 -0
  165. package/dist/components/filter-bar.js +334 -0
  166. package/dist/components/form.d.ts +35 -0
  167. package/dist/components/form.js +56 -0
  168. package/dist/components/graph.d.ts +146 -0
  169. package/dist/components/graph.js +825 -0
  170. package/dist/components/illustration.d.ts +85 -0
  171. package/dist/components/illustration.js +165 -0
  172. package/dist/components/input-group.d.ts +138 -0
  173. package/dist/components/input-group.js +312 -0
  174. package/dist/components/input.d.ts +16 -0
  175. package/dist/components/input.js +25 -0
  176. package/dist/components/item.d.ts +64 -0
  177. package/dist/components/item.js +116 -0
  178. package/dist/components/kbd.d.ts +50 -0
  179. package/dist/components/kbd.js +45 -0
  180. package/dist/components/label.d.ts +12 -0
  181. package/dist/components/label.js +24 -0
  182. package/dist/components/layout.d.ts +136 -0
  183. package/dist/components/layout.js +162 -0
  184. package/dist/components/lightbox.d.ts +100 -0
  185. package/dist/components/lightbox.js +439 -0
  186. package/dist/components/locale.d.ts +44 -0
  187. package/dist/components/locale.js +37 -0
  188. package/dist/components/logo.d.ts +54 -0
  189. package/dist/components/logo.js +96 -0
  190. package/dist/components/menu.d.ts +60 -0
  191. package/dist/components/menu.js +140 -0
  192. package/dist/components/menubar.d.ts +62 -0
  193. package/dist/components/menubar.js +223 -0
  194. package/dist/components/message.d.ts +42 -0
  195. package/dist/components/message.js +59 -0
  196. package/dist/components/meter.d.ts +31 -0
  197. package/dist/components/meter.js +27 -0
  198. package/dist/components/money-input.d.ts +80 -0
  199. package/dist/components/money-input.js +253 -0
  200. package/dist/components/native-select.d.ts +26 -0
  201. package/dist/components/native-select.js +35 -0
  202. package/dist/components/navigation-menu.d.ts +42 -0
  203. package/dist/components/navigation-menu.js +97 -0
  204. package/dist/components/number-field.d.ts +55 -0
  205. package/dist/components/number-field.js +164 -0
  206. package/dist/components/otp-field.d.ts +48 -0
  207. package/dist/components/otp-field.js +102 -0
  208. package/dist/components/pagination.d.ts +37 -0
  209. package/dist/components/pagination.js +81 -0
  210. package/dist/components/pdf-viewer.d.ts +134 -0
  211. package/dist/components/pdf-viewer.js +996 -0
  212. package/dist/components/phone-input.d.ts +79 -0
  213. package/dist/components/phone-input.js +282 -0
  214. package/dist/components/popover.d.ts +33 -0
  215. package/dist/components/popover.js +48 -0
  216. package/dist/components/preview-card.d.ts +25 -0
  217. package/dist/components/preview-card.js +22 -0
  218. package/dist/components/progress.d.ts +27 -0
  219. package/dist/components/progress.js +25 -0
  220. package/dist/components/prompt-input.d.ts +156 -0
  221. package/dist/components/prompt-input.js +415 -0
  222. package/dist/components/quote.d.ts +22 -0
  223. package/dist/components/quote.js +15 -0
  224. package/dist/components/radio-group.d.ts +18 -0
  225. package/dist/components/radio-group.js +34 -0
  226. package/dist/components/rating.d.ts +73 -0
  227. package/dist/components/rating.js +124 -0
  228. package/dist/components/reasoning.d.ts +46 -0
  229. package/dist/components/reasoning.js +73 -0
  230. package/dist/components/resizable.d.ts +47 -0
  231. package/dist/components/resizable.js +44 -0
  232. package/dist/components/response.d.ts +41 -0
  233. package/dist/components/response.js +566 -0
  234. package/dist/components/scroll-area.d.ts +33 -0
  235. package/dist/components/scroll-area.js +31 -0
  236. package/dist/components/select.d.ts +35 -0
  237. package/dist/components/select.js +71 -0
  238. package/dist/components/separator.d.ts +14 -0
  239. package/dist/components/separator.js +17 -0
  240. package/dist/components/sidebar.d.ts +163 -0
  241. package/dist/components/sidebar.js +505 -0
  242. package/dist/components/site-header.d.ts +93 -0
  243. package/dist/components/site-header.js +121 -0
  244. package/dist/components/skeleton.d.ts +31 -0
  245. package/dist/components/skeleton.js +29 -0
  246. package/dist/components/slider.d.ts +24 -0
  247. package/dist/components/slider.js +131 -0
  248. package/dist/components/sortable.d.ts +178 -0
  249. package/dist/components/sortable.js +1258 -0
  250. package/dist/components/sources.d.ts +40 -0
  251. package/dist/components/sources.js +42 -0
  252. package/dist/components/spinner.d.ts +48 -0
  253. package/dist/components/spinner.js +75 -0
  254. package/dist/components/stat.d.ts +91 -0
  255. package/dist/components/stat.js +141 -0
  256. package/dist/components/stepper.d.ts +71 -0
  257. package/dist/components/stepper.js +101 -0
  258. package/dist/components/suggestions.d.ts +20 -0
  259. package/dist/components/suggestions.js +18 -0
  260. package/dist/components/switch.d.ts +14 -0
  261. package/dist/components/switch.js +26 -0
  262. package/dist/components/table.d.ts +172 -0
  263. package/dist/components/table.js +895 -0
  264. package/dist/components/tabs.d.ts +25 -0
  265. package/dist/components/tabs.js +162 -0
  266. package/dist/components/tag.d.ts +41 -0
  267. package/dist/components/tag.js +88 -0
  268. package/dist/components/tags-input.d.ts +56 -0
  269. package/dist/components/tags-input.js +271 -0
  270. package/dist/components/textarea.d.ts +13 -0
  271. package/dist/components/textarea.js +16 -0
  272. package/dist/components/theme.d.ts +55 -0
  273. package/dist/components/theme.js +120 -0
  274. package/dist/components/time-field.d.ts +70 -0
  275. package/dist/components/time-field.js +450 -0
  276. package/dist/components/timeline.d.ts +92 -0
  277. package/dist/components/timeline.js +108 -0
  278. package/dist/components/tippy.d.ts +48 -0
  279. package/dist/components/tippy.js +648 -0
  280. package/dist/components/toast.d.ts +88 -0
  281. package/dist/components/toast.js +205 -0
  282. package/dist/components/toggle-group.d.ts +41 -0
  283. package/dist/components/toggle-group.js +140 -0
  284. package/dist/components/toggle.d.ts +23 -0
  285. package/dist/components/toggle.js +35 -0
  286. package/dist/components/tool-call.d.ts +63 -0
  287. package/dist/components/tool-call.js +68 -0
  288. package/dist/components/toolbar.d.ts +17 -0
  289. package/dist/components/toolbar.js +39 -0
  290. package/dist/components/tooltip.d.ts +42 -0
  291. package/dist/components/tooltip.js +47 -0
  292. package/dist/components/tour.d.ts +127 -0
  293. package/dist/components/tour.js +648 -0
  294. package/dist/components/tree.d.ts +75 -0
  295. package/dist/components/tree.js +649 -0
  296. package/dist/components/typography.d.ts +134 -0
  297. package/dist/components/typography.js +176 -0
  298. package/dist/components/video-player.d.ts +284 -0
  299. package/dist/components/video-player.js +1392 -0
  300. package/dist/illustration.d.ts +2 -0
  301. package/dist/illustration.js +7 -0
  302. package/dist/index.d.ts +93 -0
  303. package/dist/index.js +94 -0
  304. package/dist/lib/cn.d.ts +20 -0
  305. package/dist/lib/cn.js +38 -0
  306. package/dist/lib/code-highlight.d.ts +18 -0
  307. package/dist/lib/code-highlight.js +174 -0
  308. package/dist/lib/code-theme.d.ts +19 -0
  309. package/dist/lib/code-theme.js +140 -0
  310. package/dist/lib/collapse-row.d.ts +9 -0
  311. package/dist/lib/collapse-row.js +129 -0
  312. package/dist/lib/digit-roll.d.ts +21 -0
  313. package/dist/lib/digit-roll.js +31 -0
  314. package/dist/lib/editorial-assets.d.ts +16 -0
  315. package/dist/lib/editorial-assets.js +56 -0
  316. package/dist/lib/field-errors.d.ts +28 -0
  317. package/dist/lib/field-errors.js +24 -0
  318. package/dist/lib/field-value.d.ts +13 -0
  319. package/dist/lib/field-value.js +44 -0
  320. package/dist/lib/figure/catalog.d.ts +127 -0
  321. package/dist/lib/figure/catalog.js +130 -0
  322. package/dist/lib/figure/figures/automation.d.ts +7 -0
  323. package/dist/lib/figure/figures/automation.js +143 -0
  324. package/dist/lib/figure/figures/bar-chart.d.ts +7 -0
  325. package/dist/lib/figure/figures/bar-chart.js +99 -0
  326. package/dist/lib/figure/figures/brackets-classic.d.ts +11 -0
  327. package/dist/lib/figure/figures/brackets-classic.js +170 -0
  328. package/dist/lib/figure/figures/brackets.d.ts +8 -0
  329. package/dist/lib/figure/figures/brackets.js +84 -0
  330. package/dist/lib/figure/figures/city.d.ts +7 -0
  331. package/dist/lib/figure/figures/city.js +93 -0
  332. package/dist/lib/figure/figures/conveyor.d.ts +7 -0
  333. package/dist/lib/figure/figures/conveyor.js +97 -0
  334. package/dist/lib/figure/figures/database.d.ts +7 -0
  335. package/dist/lib/figure/figures/database.js +65 -0
  336. package/dist/lib/figure/figures/documents.d.ts +7 -0
  337. package/dist/lib/figure/figures/documents.js +83 -0
  338. package/dist/lib/figure/figures/inbox.d.ts +7 -0
  339. package/dist/lib/figure/figures/inbox.js +92 -0
  340. package/dist/lib/figure/figures/laptop.d.ts +7 -0
  341. package/dist/lib/figure/figures/laptop.js +67 -0
  342. package/dist/lib/figure/figures/monitor.d.ts +7 -0
  343. package/dist/lib/figure/figures/monitor.js +59 -0
  344. package/dist/lib/figure/figures/pipeline.d.ts +8 -0
  345. package/dist/lib/figure/figures/pipeline.js +117 -0
  346. package/dist/lib/figure/figures/platform.d.ts +7 -0
  347. package/dist/lib/figure/figures/platform.js +117 -0
  348. package/dist/lib/figure/figures/server.d.ts +7 -0
  349. package/dist/lib/figure/figures/server.js +115 -0
  350. package/dist/lib/figure/figures/spreadsheet.d.ts +7 -0
  351. package/dist/lib/figure/figures/spreadsheet.js +87 -0
  352. package/dist/lib/figure/figures/timeline.d.ts +7 -0
  353. package/dist/lib/figure/figures/timeline.js +65 -0
  354. package/dist/lib/figure/kernel.d.ts +152 -0
  355. package/dist/lib/figure/kernel.js +576 -0
  356. package/dist/lib/figure/parts.d.ts +42 -0
  357. package/dist/lib/figure/parts.js +126 -0
  358. package/dist/lib/form-reset.d.ts +11 -0
  359. package/dist/lib/form-reset.js +22 -0
  360. package/dist/lib/glide.d.ts +53 -0
  361. package/dist/lib/glide.js +138 -0
  362. package/dist/lib/graph-layout.d.ts +58 -0
  363. package/dist/lib/graph-layout.js +209 -0
  364. package/dist/lib/illustration-drawings.d.ts +89 -0
  365. package/dist/lib/illustration-drawings.js +539 -0
  366. package/dist/lib/illustration-info.d.ts +37 -0
  367. package/dist/lib/illustration-info.js +22 -0
  368. package/dist/lib/illustration-library.d.ts +87 -0
  369. package/dist/lib/illustration-library.js +352 -0
  370. package/dist/lib/logo-geometry.d.ts +29 -0
  371. package/dist/lib/logo-geometry.js +67 -0
  372. package/dist/lib/markdown-guard.d.ts +16 -0
  373. package/dist/lib/markdown-guard.js +123 -0
  374. package/dist/lib/merge-refs.d.ts +10 -0
  375. package/dist/lib/merge-refs.js +26 -0
  376. package/dist/lib/money.d.ts +73 -0
  377. package/dist/lib/money.js +343 -0
  378. package/dist/lib/motion.d.ts +6 -0
  379. package/dist/lib/motion.js +12 -0
  380. package/dist/lib/pdf-worker.d.ts +1 -0
  381. package/dist/lib/pdf-worker.js +6 -0
  382. package/dist/lib/pdf.d.ts +19 -0
  383. package/dist/lib/pdf.js +58 -0
  384. package/dist/lib/phone-countries.d.ts +1 -0
  385. package/dist/lib/phone-countries.js +281 -0
  386. package/dist/lib/phone.d.ts +90 -0
  387. package/dist/lib/phone.js +286 -0
  388. package/dist/lib/platform.d.ts +38 -0
  389. package/dist/lib/platform.js +75 -0
  390. package/dist/lib/room.d.ts +25 -0
  391. package/dist/lib/room.js +46 -0
  392. package/dist/lib/row-index.d.ts +15 -0
  393. package/dist/lib/row-index.js +136 -0
  394. package/dist/lib/table-fit.d.ts +143 -0
  395. package/dist/lib/table-fit.js +596 -0
  396. package/dist/lib/theme-script.d.ts +31 -0
  397. package/dist/lib/theme-script.js +49 -0
  398. package/dist/lib/tippy/pixels.d.ts +47 -0
  399. package/dist/lib/tippy/pixels.js +187 -0
  400. package/dist/lib/tippy/sprite.d.ts +86 -0
  401. package/dist/lib/tippy/sprite.js +753 -0
  402. package/dist/messages/de.d.ts +12 -0
  403. package/dist/messages/de.js +326 -0
  404. package/dist/styles/expressive.css +203 -0
  405. package/dist/styles/fonts.css +145 -0
  406. package/dist/styles/index.css +207 -0
  407. package/dist/styles/material.css +317 -0
  408. package/dist/styles/parts/ai.css +361 -0
  409. package/dist/styles/parts/brand.css +75 -0
  410. package/dist/styles/parts/controls.css +774 -0
  411. package/dist/styles/parts/data.css +222 -0
  412. package/dist/styles/parts/editorial.css +120 -0
  413. package/dist/styles/parts/feedback.css +340 -0
  414. package/dist/styles/parts/foundations.css +166 -0
  415. package/dist/styles/parts/graph.css +214 -0
  416. package/dist/styles/parts/inputs.css +261 -0
  417. package/dist/styles/parts/isometric.css +124 -0
  418. package/dist/styles/parts/navigation.css +424 -0
  419. package/dist/styles/parts/overlays.css +250 -0
  420. package/dist/styles/parts/pdf.css +154 -0
  421. package/dist/styles/parts/react-flow.css +519 -0
  422. package/dist/styles/tokens.css +299 -0
  423. package/dist/vite.d.ts +66 -0
  424. package/dist/vite.js +29 -0
  425. package/package.json +183 -5
@@ -0,0 +1,34 @@
1
+ "use client";
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ import { Radio as BaseRadio } from "@base-ui/react/radio";
4
+ import { RadioGroup as BaseRadioGroup } from "@base-ui/react/radio-group";
5
+ import * as React from "react";
6
+ import { sx } from "../lib/cn.js";
7
+ import { useFormReset } from "../lib/form-reset.js";
8
+ import { mergeRefs } from "../lib/merge-refs.js";
9
+ /**
10
+ * RadioGroup — one choice from a short list where every option should stay visible.
11
+ *
12
+ * Render it through `<Fieldset render={<RadioGroup />}>` inside a `<Field name>` so the options
13
+ * share a legend and validation. For 2–5 short, comparable options consider `ToggleGroup`; past
14
+ * about seven options use `Select`. The rule people break: a radio group with nothing selected
15
+ * and no `required` — give it a sensible `defaultValue` or make the choice mandatory.
16
+ */
17
+ export function RadioGroup({ className, ref, ...props }) {
18
+ // A form's reset remounts the group, and its radios, from its defaults (lib/form-reset).
19
+ const [resetKey, formRef] = useFormReset();
20
+ const refs = React.useMemo(() => mergeRefs(formRef, ref), [formRef, ref]);
21
+ return (_jsx(BaseRadioGroup, { ref: refs, "data-slot": "radio-group", className: sx("flex flex-col items-start gap-3", className), ...props }, resetKey));
22
+ }
23
+ /**
24
+ * Radio — an 18px round control in the field material. Selected, it takes the primary fill
25
+ * with an inner dot. Always place it inside `<RadioGroup>` and next to a visible label
26
+ * (`<FieldLabel><Radio value="…" />Label</FieldLabel>`).
27
+ */
28
+ export function Radio({ className, ...props }) {
29
+ return (_jsx(BaseRadio.Root, { "data-slot": "radio", className: sx([
30
+ "relative inline-flex size-[18px] shrink-0 material-field cursor-pointer items-center justify-center rounded-full p-0",
31
+ "data-checked:border-transparent data-checked:bg-primary data-checked:bg-none data-checked:text-primary-foreground data-checked:shadow-checked",
32
+ "data-readonly:cursor-default",
33
+ ], className), ...props, children: _jsx(BaseRadio.Indicator, { "data-slot": "radio-indicator", className: "pointer-events-none flex items-center justify-center before:size-1.5 before:rounded-full before:bg-current" }) }));
34
+ }
@@ -0,0 +1,73 @@
1
+ import { RadioGroup as BaseRadioGroup } from "@base-ui/react/radio-group";
2
+ import * as React from "react";
3
+ export interface RatingMessages {
4
+ /** Each choice's name: "1 star", "4.5 stars". `value` is formatted for the locale. */
5
+ item: (value: string, count: number) => string;
6
+ /** A read-only rating, read out whole: "4.5 out of 5". */
7
+ value: (value: string, max: string) => string;
8
+ /** A read-only rating with no value yet. */
9
+ empty: string;
10
+ }
11
+ declare module "./locale" {
12
+ interface Messages {
13
+ rating: RatingMessages;
14
+ }
15
+ }
16
+ declare const sizes: {
17
+ readonly sm: {
18
+ readonly row: "h-(--control-h-sm)";
19
+ readonly item: "px-px";
20
+ readonly icon: "size-4";
21
+ };
22
+ readonly default: {
23
+ readonly row: "h-(--control-h)";
24
+ readonly item: "px-0.5";
25
+ readonly icon: "size-5";
26
+ };
27
+ readonly lg: {
28
+ readonly row: "h-(--control-h-lg)";
29
+ readonly item: "px-0.5";
30
+ readonly icon: "size-6";
31
+ };
32
+ };
33
+ export interface RatingProps extends Omit<BaseRadioGroup.Props<number | null>, "value" | "defaultValue" | "onValueChange" | "children"> {
34
+ /** The rating, `1`…`max` (halves with `allowHalf`); `null` is none. Leave `undefined` for an uncontrolled rating. */
35
+ value?: number | null;
36
+ defaultValue?: number | null;
37
+ onValueChange?: (value: number | null) => void;
38
+ /** How many stars. Default `5`. */
39
+ max?: number;
40
+ /** Half stars: each star is two choices, its start half and its end half. */
41
+ allowHalf?: boolean;
42
+ /** Picking the current rating again clears it, as Backspace and Delete do. */
43
+ clearable?: boolean;
44
+ /**
45
+ * Shows the rating without letting it change — an average under a product, a review's score.
46
+ * Any fraction is drawn (3.7 fills most of the fourth star) and it is read out as "3.7 out of 5".
47
+ */
48
+ readOnly?: boolean;
49
+ /** `sm` 30px, `default` 38px, `lg` 46px: the row is as tall as the controls beside it. */
50
+ size?: keyof typeof sizes;
51
+ /** Another icon in place of the star — a heart, a circle. It is drawn in outline and filled. */
52
+ icon?: React.ReactElement<{
53
+ className?: string;
54
+ fill?: string;
55
+ strokeWidth?: number;
56
+ }>;
57
+ /** Interface text; a LocaleProvider sets it for every Rating. */
58
+ labels?: Partial<RatingMessages>;
59
+ }
60
+ /**
61
+ * Rating — a score of 1 to 5 (or `max`) as a row of stars, in the foreground ink.
62
+ *
63
+ * A radio group under the hood: arrow keys move the rating and pick it, a pointer previews the
64
+ * stars it would set, and with `allowHalf` each star takes two picks. In a `Field` it submits
65
+ * its number under the field's name and takes `required` and the Field's invalid state. With
66
+ * `readOnly` it is a picture of a score, read out as "4.5 out of 5".
67
+ *
68
+ * The rule people break: yellow stars. The stars are ink like every other mark; a rating is a
69
+ * value, not a status. And put the count next to an average ("4.5 · 128 reviews"): five stars
70
+ * from one review is not the same thing.
71
+ */
72
+ export declare function Rating({ value: valueProp, defaultValue, onValueChange, max: maxProp, allowHalf, clearable, readOnly, disabled, size, icon, labels, className, ref, onKeyDown, ...props }: RatingProps): React.JSX.Element;
73
+ export {};
@@ -0,0 +1,124 @@
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { Radio as BaseRadio } from "@base-ui/react/radio";
4
+ import { RadioGroup as BaseRadioGroup } from "@base-ui/react/radio-group";
5
+ import { StarIcon } from "lucide-react";
6
+ import * as React from "react";
7
+ import { cn } from "../lib/cn.js";
8
+ import { useLocale, useMessages } from "./locale.js";
9
+ const defaultMessages = {
10
+ item: (value, count) => (count === 1 ? `${value} star` : `${value} stars`),
11
+ value: (value, max) => `${value} out of ${max}`,
12
+ empty: "Not rated",
13
+ };
14
+ const sizes = {
15
+ sm: { row: "h-(--control-h-sm)", item: "px-px", icon: "size-4" },
16
+ default: { row: "h-(--control-h)", item: "px-0.5", icon: "size-5" },
17
+ lg: { row: "h-(--control-h-lg)", item: "px-0.5", icon: "size-6" },
18
+ };
19
+ function useControllable(value, defaultValue) {
20
+ const [inner, setInner] = React.useState(defaultValue);
21
+ const controlled = value !== undefined;
22
+ return [controlled ? value : inner, setInner];
23
+ }
24
+ /** One star: the outline, with the filled star over it clipped to `fill` (0…1) from the start. */
25
+ function Star({ icon, fill, size, preview, }) {
26
+ const iconClass = cn(sizes[size].icon, "shrink-0");
27
+ return (_jsxs("span", { "aria-hidden": true, className: "relative flex", children: [React.cloneElement(icon, {
28
+ className: cn(iconClass, "text-control-muted transition-colors duration-(--duration) ease-(--ease)", "group-data-invalid/rating:text-destructive"),
29
+ strokeWidth: 1.5,
30
+ }), fill > 0 && (_jsx("span", { "data-slot": "rating-fill", className: cn("absolute inset-y-0 start-0 flex overflow-hidden transition-colors duration-(--duration) ease-(--ease)", preview ? "text-foreground-soft" : "text-foreground"), style: { width: `${Math.round(fill * 100)}%` }, children: React.cloneElement(icon, { className: iconClass, fill: "currentColor", strokeWidth: 1.5 }) }))] }));
31
+ }
32
+ /**
33
+ * Rating — a score of 1 to 5 (or `max`) as a row of stars, in the foreground ink.
34
+ *
35
+ * A radio group under the hood: arrow keys move the rating and pick it, a pointer previews the
36
+ * stars it would set, and with `allowHalf` each star takes two picks. In a `Field` it submits
37
+ * its number under the field's name and takes `required` and the Field's invalid state. With
38
+ * `readOnly` it is a picture of a score, read out as "4.5 out of 5".
39
+ *
40
+ * The rule people break: yellow stars. The stars are ink like every other mark; a rating is a
41
+ * value, not a status. And put the count next to an average ("4.5 · 128 reviews"): five stars
42
+ * from one review is not the same thing.
43
+ */
44
+ export function Rating({ value: valueProp, defaultValue = null, onValueChange, max: maxProp = 5, allowHalf = false, clearable = false, readOnly = false, disabled, size = "default", icon = _jsx(StarIcon, {}), labels, className, ref, onKeyDown, ...props }) {
45
+ const text = useMessages("rating", defaultMessages, labels);
46
+ const locale = useLocale();
47
+ const number = React.useMemo(() => {
48
+ try {
49
+ return new Intl.NumberFormat(locale, { maximumFractionDigits: 2 });
50
+ }
51
+ catch {
52
+ return new Intl.NumberFormat("en", { maximumFractionDigits: 2 });
53
+ }
54
+ }, [locale]);
55
+ const max = Math.max(1, Math.floor(maxProp));
56
+ const [value, setValue] = useControllable(valueProp, defaultValue);
57
+ const [hover, setHover] = React.useState(null);
58
+ const pressedChecked = React.useRef(false);
59
+ const id = React.useId();
60
+ const commit = (next) => {
61
+ if (next === value)
62
+ return;
63
+ setValue(next);
64
+ onValueChange?.(next);
65
+ };
66
+ // A form's reset puts an uncontrolled rating back where it started.
67
+ const latestReset = React.useRef(() => { });
68
+ latestReset.current = () => {
69
+ if (valueProp === undefined)
70
+ setValue(defaultValue);
71
+ };
72
+ const formRef = React.useCallback((node) => {
73
+ const form = node?.closest("form");
74
+ if (!form)
75
+ return;
76
+ const reset = () => latestReset.current();
77
+ form.addEventListener("reset", reset);
78
+ return () => form.removeEventListener("reset", reset);
79
+ }, []);
80
+ const refs = React.useCallback((node) => {
81
+ const cleanup = formRef(node);
82
+ if (typeof ref === "function")
83
+ ref(node);
84
+ else if (ref)
85
+ ref.current = node;
86
+ return () => {
87
+ cleanup?.();
88
+ if (typeof ref === "function")
89
+ ref(null);
90
+ else if (ref)
91
+ ref.current = null;
92
+ };
93
+ }, [formRef, ref]);
94
+ const shown = hover ?? value ?? 0;
95
+ const stars = Array.from({ length: max }, (_, i) => i + 1);
96
+ if (readOnly) {
97
+ const v = value == null ? null : Math.min(Math.max(value, 0), max);
98
+ // What only a radio group takes (a name, a form) has no place on a picture of a score.
99
+ const { name: _name, required: _required, form: _form, inputRef: _inputRef, render: _render, style, ...rest } = props;
100
+ return (_jsx("span", { ref: refs, role: "img", "aria-label": v == null ? text.empty : text.value(number.format(v), number.format(max)), "data-slot": "rating", "data-size": size, "data-readonly": "", className: cn("inline-flex shrink-0 items-center", sizes[size].row, className), style: typeof style === "function" ? undefined : style, ...rest, children: stars.map((star) => (_jsx("span", { "data-slot": "rating-item", className: cn("flex shrink-0", sizes[size].item), children: _jsx(Star, { icon: icon, fill: Math.min(Math.max((v ?? 0) - (star - 1), 0), 1), size: size, preview: false }) }, star))) }));
101
+ }
102
+ const choicesOf = (star) => (allowHalf ? [star - 0.5, star] : [star]);
103
+ return (_jsx(BaseRadioGroup, { ref: refs, "data-slot": "rating", "data-size": size, value: value, onValueChange: (next) => commit(next), disabled: disabled, onKeyDown: (event) => {
104
+ onKeyDown?.(event);
105
+ if (clearable && (event.key === "Backspace" || event.key === "Delete") && value != null) {
106
+ event.preventDefault();
107
+ commit(null);
108
+ }
109
+ }, onPointerLeave: () => setHover(null), className: (state) => cn("group/rating inline-flex shrink-0 items-center", "data-disabled:cursor-not-allowed data-disabled:opacity-55", sizes[size].row, typeof className === "function" ? className(state) : className), ...props, children: stars.map((star) => {
110
+ const fill = Math.min(Math.max(shown - (star - 1), 0), 1);
111
+ return (_jsxs("span", { "data-slot": "rating-item", className: cn("relative flex h-full shrink-0 items-center rounded-item", "has-[[data-slot=rating-radio]:focus-visible]:outline-2 has-[[data-slot=rating-radio]:focus-visible]:outline-control-focus has-[[data-slot=rating-radio]:focus-visible]:outline-solid", sizes[size].item), children: [_jsx(Star, { icon: icon, fill: fill, size: size, preview: hover != null && hover !== value }), choicesOf(star).map((choice, i, all) => {
112
+ const labelId = `${id}-${choice}`;
113
+ return (_jsxs(React.Fragment, { children: [_jsx("span", { id: labelId, className: "sr-only", children: text.item(number.format(choice), choice) }), _jsx(BaseRadio.Root, { value: choice, "data-slot": "rating-radio", "aria-labelledby": labelId, onPointerDown: () => (pressedChecked.current = choice === value), onPointerMove: (event) => {
114
+ if (event.pointerType === "mouse" && !disabled)
115
+ setHover(choice);
116
+ }, onClick: () => {
117
+ if (clearable && pressedChecked.current && choice === value) {
118
+ pressedChecked.current = false;
119
+ commit(null);
120
+ }
121
+ }, className: cn("absolute inset-y-0 cursor-pointer outline-none data-disabled:cursor-not-allowed", all.length === 1 ? "inset-x-0" : i === 0 ? "start-0 w-1/2" : "end-0 w-1/2") })] }, choice));
122
+ })] }, star));
123
+ }) }));
124
+ }
@@ -0,0 +1,46 @@
1
+ import type { Collapsible as BaseCollapsible } from "@base-ui/react/collapsible";
2
+ import * as React from "react";
3
+ import { type CollapsibleTriggerProps } from "./collapsible.js";
4
+ export interface ReasoningMessages {
5
+ /** While the model thinks. */
6
+ thinking: string;
7
+ /** Done, when the time is not known. */
8
+ thoughtBriefly: string;
9
+ /** Done, after `seconds` seconds. */
10
+ thoughtFor: (seconds: number) => string;
11
+ }
12
+ declare module "./locale" {
13
+ interface Messages {
14
+ reasoning: ReasoningMessages;
15
+ }
16
+ }
17
+ export interface ReasoningProps extends BaseCollapsible.Root.Props {
18
+ /** The model is thinking right now: the label shimmers and the panel opens. */
19
+ streaming?: boolean;
20
+ /** How long it thought, in seconds. Measured from `streaming` when not given. */
21
+ duration?: number;
22
+ }
23
+ /**
24
+ * Reasoning — the model's thinking, folded away. While `streaming` the trigger reads
25
+ * "Thinking…" with a soft shimmer and the panel opens, so the reasoning can be followed as it
26
+ * arrives; when it ends the label becomes "Thought for 4 seconds" and the panel closes a second
27
+ * later, unless the reader has opened or closed it by hand.
28
+ *
29
+ * The rule people break: showing the reasoning in full as the answer. It is supporting detail
30
+ * under its own trigger; the `Response` is the answer.
31
+ */
32
+ export declare function Reasoning({ streaming, duration: durationProp, open: openProp, defaultOpen, onOpenChange, className, ...props }: ReasoningProps): React.JSX.Element;
33
+ export interface ReasoningTriggerProps extends Omit<CollapsibleTriggerProps, "showIcon"> {
34
+ /** The default label's words; a LocaleProvider sets them for every ReasoningTrigger. */
35
+ labels?: Partial<ReasoningMessages>;
36
+ }
37
+ /**
38
+ * The trigger: a brain, the label and a chevron, in mono. Children replace the label;
39
+ * the default reads "Thinking…", then "Thought for n seconds".
40
+ */
41
+ export declare function ReasoningTrigger({ labels, className, children, ...props }: ReasoningTriggerProps): React.JSX.Element;
42
+ /**
43
+ * The reasoning itself, muted and set in from a hairline. Plain text keeps its line breaks;
44
+ * a `Response` inside renders markdown.
45
+ */
46
+ export declare function ReasoningContent({ className, children, ...props }: React.ComponentProps<"div">): React.JSX.Element;
@@ -0,0 +1,73 @@
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { BrainIcon, ChevronDownIcon } from "lucide-react";
4
+ import * as React from "react";
5
+ import { cn, sx } from "../lib/cn.js";
6
+ import { Collapsible, CollapsiblePanel, CollapsibleTrigger, } from "./collapsible.js";
7
+ import { useMessages } from "./locale.js";
8
+ const defaultMessages = {
9
+ thinking: "Thinking…",
10
+ thoughtBriefly: "Thought for a few seconds",
11
+ thoughtFor: (seconds) => `Thought for ${seconds} ${seconds === 1 ? "second" : "seconds"}`,
12
+ };
13
+ const ReasoningContext = React.createContext({
14
+ streaming: false,
15
+ duration: undefined,
16
+ });
17
+ /**
18
+ * Reasoning — the model's thinking, folded away. While `streaming` the trigger reads
19
+ * "Thinking…" with a soft shimmer and the panel opens, so the reasoning can be followed as it
20
+ * arrives; when it ends the label becomes "Thought for 4 seconds" and the panel closes a second
21
+ * later, unless the reader has opened or closed it by hand.
22
+ *
23
+ * The rule people break: showing the reasoning in full as the answer. It is supporting detail
24
+ * under its own trigger; the `Response` is the answer.
25
+ */
26
+ export function Reasoning({ streaming = false, duration: durationProp, open: openProp, defaultOpen, onOpenChange, className, ...props }) {
27
+ const [own, setOwn] = React.useState(defaultOpen ?? streaming);
28
+ const open = openProp ?? own;
29
+ const touched = React.useRef(false);
30
+ const started = React.useRef(null);
31
+ const [measured, setMeasured] = React.useState();
32
+ React.useEffect(() => {
33
+ if (streaming) {
34
+ started.current = performance.now();
35
+ if (!touched.current)
36
+ setOwn(true);
37
+ return;
38
+ }
39
+ if (started.current == null)
40
+ return;
41
+ setMeasured(Math.max(1, Math.round((performance.now() - started.current) / 1000)));
42
+ started.current = null;
43
+ if (touched.current)
44
+ return;
45
+ const t = setTimeout(() => setOwn(false), 1000);
46
+ return () => clearTimeout(t);
47
+ }, [streaming]);
48
+ const context = React.useMemo(() => ({ streaming, duration: durationProp ?? measured }), [streaming, durationProp, measured]);
49
+ return (_jsx(ReasoningContext.Provider, { value: context, children: _jsx(Collapsible, { "data-slot": "reasoning", "data-streaming": streaming ? "" : undefined, open: open, onOpenChange: (next, details) => {
50
+ touched.current = true;
51
+ if (openProp === undefined)
52
+ setOwn(next);
53
+ onOpenChange?.(next, details);
54
+ }, className: sx("gap-1", className), ...props }) }));
55
+ }
56
+ /**
57
+ * The trigger: a brain, the label and a chevron, in mono. Children replace the label;
58
+ * the default reads "Thinking…", then "Thought for n seconds".
59
+ */
60
+ export function ReasoningTrigger({ labels, className, children, ...props }) {
61
+ const { streaming, duration } = React.useContext(ReasoningContext);
62
+ const text = useMessages("reasoning", defaultMessages, labels);
63
+ const label = children ??
64
+ (streaming ? text.thinking : duration == null ? text.thoughtBriefly : text.thoughtFor(duration));
65
+ return (_jsxs(CollapsibleTrigger, { "data-slot": "reasoning-trigger", showIcon: false, className: sx("gap-1.5 text-muted-foreground", className), ...props, children: [_jsx(BrainIcon, { "aria-hidden": true, className: "size-3.5 shrink-0" }), _jsx("span", { "data-slot": "reasoning-label", "data-streaming": streaming ? "" : undefined, children: label }), _jsx(ChevronDownIcon, { "aria-hidden": true, className: "size-3.5 shrink-0 transition-[rotate] duration-(--duration) ease-(--ease) group-data-panel-open/collapsible-trigger:rotate-180" })] }));
66
+ }
67
+ /**
68
+ * The reasoning itself, muted and set in from a hairline. Plain text keeps its line breaks;
69
+ * a `Response` inside renders markdown.
70
+ */
71
+ export function ReasoningContent({ className, children, ...props }) {
72
+ return (_jsx(CollapsiblePanel, { "data-slot": "reasoning-content", children: _jsx("div", { className: cn("ms-1.5 border-s border-border/60 py-1 ps-4 text-sm leading-relaxed text-muted-foreground", typeof children === "string" && "whitespace-pre-wrap", className), ...props, children: children }) }));
73
+ }
@@ -0,0 +1,47 @@
1
+ import * as React from "react";
2
+ import { type GroupProps, type PanelProps, type SeparatorProps } from "react-resizable-panels";
3
+ export interface ResizableMessages {
4
+ /** The handle's name, when it has no `aria-label` of its own. */
5
+ handle: string;
6
+ }
7
+ declare module "./locale" {
8
+ interface Messages {
9
+ resizable: ResizableMessages;
10
+ }
11
+ }
12
+ export interface ResizablePanelGroupProps extends GroupProps {
13
+ /** `horizontal` lays panels side by side (a vertical handle); `vertical` stacks them. */
14
+ orientation?: "horizontal" | "vertical";
15
+ }
16
+ /**
17
+ * ResizablePanelGroup — split panes the user can resize: an editor beside its preview, a list
18
+ * beside its detail, a console under a canvas.
19
+ *
20
+ * Panels are divided by a 1px hairline that turns `--control-focus` on hover, drag and focus,
21
+ * with a hit area of at least 10px (20px on touch). Every handle is a keyboard separator: Tab to
22
+ * it, then arrow keys resize, Home/End jump to the limits and Enter collapses a collapsible panel.
23
+ *
24
+ * The rule people break: boxing every pane. The group is one region — put the material on the
25
+ * group (`surface-container`, or `surface-card` when it is an object) and let hairlines divide it.
26
+ * The group fills its parent, so give the parent (or the group) a height.
27
+ */
28
+ export declare function ResizablePanelGroup({ orientation, className, ...props }: ResizablePanelGroupProps): React.JSX.Element;
29
+ export interface ResizablePanelProps extends PanelProps {
30
+ }
31
+ /**
32
+ * One pane. Sizes take numbers (pixels) or strings: `"30%"`, `"30"` (percent), `"240px"`, `"16rem"`.
33
+ * Give each panel an `id` when the layout is persisted with `defaultLayout`.
34
+ */
35
+ export declare function ResizablePanel({ className, ...props }: ResizablePanelProps): React.JSX.Element;
36
+ export interface ResizableHandleProps extends SeparatorProps {
37
+ /** Show a small raised grip with mono dots in the middle of the hairline. */
38
+ withHandle?: boolean;
39
+ /** Accessible name of the separator. Defaults to "Resize", or `messages.resizable.handle`. */
40
+ "aria-label"?: string;
41
+ }
42
+ /**
43
+ * The divider between two panels: a 1px hairline in `--border` that becomes `--control-focus`
44
+ * while hovered, dragged or focused. `withHandle` adds a tiny raised pill with mono dots — use it
45
+ * when the split is not obviously draggable (a narrow pane, a touch layout).
46
+ */
47
+ export declare function ResizableHandle({ withHandle, className, children, ...props }: ResizableHandleProps): React.JSX.Element;
@@ -0,0 +1,44 @@
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import * as React from "react";
4
+ import { Group, Panel, Separator, } from "react-resizable-panels";
5
+ import { cn } from "../lib/cn.js";
6
+ import { useMessages } from "./locale.js";
7
+ const defaultMessages = { handle: "Resize" };
8
+ const OrientationContext = React.createContext("horizontal");
9
+ /**
10
+ * ResizablePanelGroup — split panes the user can resize: an editor beside its preview, a list
11
+ * beside its detail, a console under a canvas.
12
+ *
13
+ * Panels are divided by a 1px hairline that turns `--control-focus` on hover, drag and focus,
14
+ * with a hit area of at least 10px (20px on touch). Every handle is a keyboard separator: Tab to
15
+ * it, then arrow keys resize, Home/End jump to the limits and Enter collapses a collapsible panel.
16
+ *
17
+ * The rule people break: boxing every pane. The group is one region — put the material on the
18
+ * group (`surface-container`, or `surface-card` when it is an object) and let hairlines divide it.
19
+ * The group fills its parent, so give the parent (or the group) a height.
20
+ */
21
+ export function ResizablePanelGroup({ orientation = "horizontal", className, ...props }) {
22
+ return (_jsx(OrientationContext.Provider, { value: orientation, children: _jsx(Group, { "data-slot": "resizable-panel-group", "data-orientation": orientation, orientation: orientation, className: cn("h-full w-full", className), ...props }) }));
23
+ }
24
+ /**
25
+ * One pane. Sizes take numbers (pixels) or strings: `"30%"`, `"30"` (percent), `"240px"`, `"16rem"`.
26
+ * Give each panel an `id` when the layout is persisted with `defaultLayout`.
27
+ */
28
+ export function ResizablePanel({ className, ...props }) {
29
+ return _jsx(Panel, { "data-slot": "resizable-panel", className: cn("min-h-0 min-w-0", className), ...props });
30
+ }
31
+ /**
32
+ * The divider between two panels: a 1px hairline in `--border` that becomes `--control-focus`
33
+ * while hovered, dragged or focused. `withHandle` adds a tiny raised pill with mono dots — use it
34
+ * when the split is not obviously draggable (a narrow pane, a touch layout).
35
+ */
36
+ export function ResizableHandle({ withHandle = false, className, children, ...props }) {
37
+ const orientation = React.useContext(OrientationContext);
38
+ const text = useMessages("resizable", defaultMessages);
39
+ return (_jsxs(Separator, { "data-slot": "resizable-handle", "data-orientation": orientation, "aria-label": text.handle, className: cn("group/handle relative z-10 flex shrink-0 items-center justify-center bg-border outline-none", "transition-[background-color] duration-(--duration) ease-brand", orientation === "horizontal" ? "w-px self-stretch" : "h-px w-full", "data-[separator=active]:bg-control-focus data-[separator=focus]:bg-control-focus data-[separator=hover]:bg-control-focus",
40
+ // The visible line is 1px; the focus outline is drawn on a 3px band so it stays legible.
41
+ "focus-visible:outline-none focus-visible:after:absolute focus-visible:after:bg-control-focus focus-visible:after:content-['']", orientation === "horizontal"
42
+ ? "focus-visible:after:inset-y-0 focus-visible:after:left-1/2 focus-visible:after:w-[2px] focus-visible:after:-translate-x-1/2"
43
+ : "focus-visible:after:inset-x-0 focus-visible:after:top-1/2 focus-visible:after:h-[2px] focus-visible:after:-translate-y-1/2", "data-[separator=disabled]:opacity-50", className), ...props, children: [withHandle ? (_jsxs("span", { "data-slot": "resizable-grip", "aria-hidden": true, className: cn("pointer-events-none z-10 flex shrink-0 items-center justify-center gap-[3px] rounded-full bg-control-surface bg-linear-to-b from-control-inner-edge to-transparent shadow-key", "transition-[background-color] duration-(--duration) ease-brand group-data-[separator=active]/handle:bg-control-hover group-data-[separator=hover]/handle:bg-control-hover", orientation === "horizontal" ? "h-6 w-3 flex-col" : "h-3 w-6 flex-row"), children: [_jsx("span", { className: "size-[3px] rounded-full bg-muted-foreground" }), _jsx("span", { className: "size-[3px] rounded-full bg-muted-foreground" }), _jsx("span", { className: "size-[3px] rounded-full bg-muted-foreground" })] })) : null, children] }));
44
+ }
@@ -0,0 +1,41 @@
1
+ import * as React from "react";
2
+ export interface ResponseMessages {
3
+ /** A task list item's ticked box. */
4
+ done: string;
5
+ /** A task list item's empty box. */
6
+ todo: string;
7
+ }
8
+ declare module "./locale" {
9
+ interface Messages {
10
+ response: ResponseMessages;
11
+ }
12
+ }
13
+ export interface ResponseProps extends Omit<React.ComponentProps<"div">, "children"> {
14
+ /** The reply, as markdown. */
15
+ children: string;
16
+ /** The reply is still arriving: unfinished markdown is closed as it would be, and it writes itself out evenly. */
17
+ streaming?: boolean;
18
+ /**
19
+ * Reveal the text at an even pace, a word at a time with each word coming into focus, instead
20
+ * of in the bursts it arrives in. Default `true`; off under reduced motion.
21
+ */
22
+ smooth?: boolean;
23
+ /**
24
+ * Colour fenced code by the language its fence names, in the zon theme. Default `true`; a fence
25
+ * without a language, or one Shiki does not know, stays mono either way.
26
+ */
27
+ highlight?: boolean;
28
+ }
29
+ /**
30
+ * Response — an assistant's reply, rendered from markdown in the brand's reading type: Licht Sans at
31
+ * 15px, Licht Light headings, mono inline code, hairline tables and rules, and fenced code as a
32
+ * `CodeBlock`, coloured by its language.
33
+ *
34
+ * While `streaming`, the reply writes itself out evenly at the pace it is arriving, a word at a
35
+ * time, each word coming into focus from a soft blur as it rises into place; half-written
36
+ * markdown renders as it will end up. Raw HTML in the markdown is shown as text, unsafe link
37
+ * targets are dropped and images become links, because model output is untrusted; a paragraph that
38
+ * would take the parser too long shows as plain text.
39
+ * The rule people break: rendering the reply with their own `dangerouslySetInnerHTML` and none of these rules.
40
+ */
41
+ export declare function Response({ children, streaming, smooth, highlight, className, ...props }: ResponseProps): React.JSX.Element;