@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,20 @@
1
+ import type * as React from "react";
2
+ import { type ButtonProps } from "./button.js";
3
+ /**
4
+ * Suggestions — a row of prompts to start from or follow up with, as small raised buttons that
5
+ * wrap onto the next line. Picking one usually sends it, or fills the prompt bar.
6
+ *
7
+ * The rule people break: more than four. Suggestions are a nudge, not a menu; and write them as
8
+ * the person would ask, not as feature names.
9
+ */
10
+ export declare function Suggestions({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
11
+ export interface SuggestionProps extends Omit<ButtonProps, "onClick" | "children" | "variant" | "size"> {
12
+ /** The prompt, as the person would write it. */
13
+ suggestion: string;
14
+ /** Called with the suggestion when it is picked. */
15
+ onClick?: (suggestion: string) => void;
16
+ /** A shorter label than the prompt, when it needs one. */
17
+ children?: React.ReactNode;
18
+ }
19
+ /** One suggested prompt: a 30px raised button. */
20
+ export declare function Suggestion({ suggestion, onClick, children, className, ...props }: SuggestionProps): React.JSX.Element;
@@ -0,0 +1,18 @@
1
+ "use client";
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ import { cn } from "../lib/cn.js";
4
+ import { Button } from "./button.js";
5
+ /**
6
+ * Suggestions — a row of prompts to start from or follow up with, as small raised buttons that
7
+ * wrap onto the next line. Picking one usually sends it, or fills the prompt bar.
8
+ *
9
+ * The rule people break: more than four. Suggestions are a nudge, not a menu; and write them as
10
+ * the person would ask, not as feature names.
11
+ */
12
+ export function Suggestions({ className, ...props }) {
13
+ return _jsx("div", { "data-slot": "suggestions", className: cn("flex flex-wrap gap-2", className), ...props });
14
+ }
15
+ /** One suggested prompt: a 30px raised button. */
16
+ export function Suggestion({ suggestion, onClick, children, className, ...props }) {
17
+ return (_jsx(Button, { "data-slot": "suggestion", type: "button", variant: "secondary", size: "sm", onClick: () => onClick?.(suggestion), className: cn("max-w-full font-normal", className), ...props, children: _jsx("span", { className: "truncate", children: children ?? suggestion }) }));
18
+ }
@@ -0,0 +1,14 @@
1
+ import { Switch as BaseSwitch } from "@base-ui/react/switch";
2
+ import * as React from "react";
3
+ export interface SwitchProps extends BaseSwitch.Root.Props {
4
+ }
5
+ /**
6
+ * Switch — a setting that takes effect immediately: a recessed track with a raised round thumb.
7
+ * On, the track takes the primary fill. A press stretches the thumb toward where it will go, and
8
+ * it slides across (size and travel live in parts/controls.css).
9
+ *
10
+ * Use a switch when flipping it changes something right away (notifications, a preview mode).
11
+ * The rule people break: using a switch inside a form that still needs "Save" — that is a
12
+ * `Checkbox`. Always pair it with a visible label (`<FieldLabel><Switch />Label</FieldLabel>`).
13
+ */
14
+ export declare function Switch({ className, ref, ...props }: SwitchProps): React.JSX.Element;
@@ -0,0 +1,26 @@
1
+ "use client";
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ import { Switch as BaseSwitch } from "@base-ui/react/switch";
4
+ import * as React from "react";
5
+ import { sx } from "../lib/cn.js";
6
+ import { useFormReset } from "../lib/form-reset.js";
7
+ import { mergeRefs } from "../lib/merge-refs.js";
8
+ /**
9
+ * Switch — a setting that takes effect immediately: a recessed track with a raised round thumb.
10
+ * On, the track takes the primary fill. A press stretches the thumb toward where it will go, and
11
+ * it slides across (size and travel live in parts/controls.css).
12
+ *
13
+ * Use a switch when flipping it changes something right away (notifications, a preview mode).
14
+ * The rule people break: using a switch inside a form that still needs "Save" — that is a
15
+ * `Checkbox`. Always pair it with a visible label (`<FieldLabel><Switch />Label</FieldLabel>`).
16
+ */
17
+ export function Switch({ className, ref, ...props }) {
18
+ // A form's reset remounts it from its defaults (lib/form-reset).
19
+ const [resetKey, formRef] = useFormReset();
20
+ const refs = React.useMemo(() => mergeRefs(formRef, ref), [formRef, ref]);
21
+ return (_jsx(BaseSwitch.Root, { ref: refs, "data-slot": "switch", className: sx([
22
+ "relative inline-flex h-[22px] w-[38px] shrink-0 material-field cursor-pointer items-center rounded-full p-px",
23
+ "data-checked:border-transparent data-checked:bg-primary data-checked:bg-none data-checked:shadow-checked",
24
+ "data-readonly:cursor-default",
25
+ ], className), ...props, children: _jsx(BaseSwitch.Thumb, { "data-slot": "switch-thumb", className: "pointer-events-none block rounded-full bg-(--control-thumb) bg-linear-to-b from-control-inner-edge to-transparent shadow-thumb data-checked:bg-(--control-thumb-on)" }) }, resetKey));
26
+ }
@@ -0,0 +1,172 @@
1
+ import * as React from "react";
2
+ export interface TableProps extends React.ComponentProps<"table"> {
3
+ /** 30px rows for data-heavy screens (admin, dashboards). Default rows are 46px. */
4
+ dense?: boolean;
5
+ /**
6
+ * `card` (default): the table as an object, a 20px card. `plain`: the same table without the
7
+ * card — no edge, corners, shadow or ground — across the full width of its column. Always
8
+ * `plain` inside a `Card`, a `Dialog` or a `Drawer`: never a card in a card.
9
+ */
10
+ variant?: "card" | "plain";
11
+ /** Props for the container that wraps and scrolls the table (the card, unless `plain`). */
12
+ containerProps?: React.ComponentProps<"div">;
13
+ /**
14
+ * Fit the columns to the container's width. When the widest title no longer fits on one line,
15
+ * columns step out one at a time by their `TableHead`'s `priority` — or, with `inline`, move
16
+ * into the title cell, right after the title — and every cell glides to its new place.
17
+ */
18
+ fit?: boolean;
19
+ }
20
+ /**
21
+ * Table — tabular data as an **object**: a 20px card in the `surface-card` material that
22
+ * scrolls horizontally when the columns do not fit. Rows are separated by hairlines and take
23
+ * a subtle `--control-hover` on hover; headers are eyebrows; numbers are mono and tabular.
24
+ *
25
+ * The card's padding is carried by the cells so rules and hover run edge to edge — do not
26
+ * pad the table at the call site. `variant="plain"` is the same table without the card, for
27
+ * tables that are part of the page rather than an object on it. The rule people break: zebra
28
+ * stripes, vertical rules or a second border around the table. Hairlines between rows are the whole grid.
29
+ *
30
+ * With `fit`, the columns follow the **container's** width instead of scrolling: see `fit`.
31
+ */
32
+ export declare function Table({ fit, ...props }: TableProps): React.JSX.Element;
33
+ export declare function TableHeader({ className, ...props }: React.ComponentProps<"thead">): React.JSX.Element;
34
+ export declare function TableBody({ className, ...props }: React.ComponentProps<"tbody">): React.JSX.Element;
35
+ export declare function TableFooter({ className, ...props }: React.ComponentProps<"tfoot">): React.JSX.Element;
36
+ /**
37
+ * A row. Mark a selected row with `aria-selected` / `data-selected`.
38
+ *
39
+ * In a fitting table its cells follow the header's columns by position — give it one cell per
40
+ * column, as direct children — and it draws them where the layout says: in their own column,
41
+ * inline after the title, or only for screen readers.
42
+ */
43
+ export declare function TableRow({ className, children, ref, ...props }: React.ComponentProps<"tr">): React.JSX.Element;
44
+ export interface TableHeadProps extends Omit<React.ComponentProps<"th">, "align" | "width"> {
45
+ /** Right-align a numeric column's header (and, with `fit`, its cells). */
46
+ numeric?: boolean;
47
+ /** `end` right-aligns the column without setting it in mono — people, dates. Defaults by `numeric`. */
48
+ align?: "start" | "end";
49
+ /** The column's width: a CSS length, or with `fit` a grid track (`auto`, `6rem`, `minmax(…)`). */
50
+ width?: string;
51
+ /**
52
+ * With `fit`: when the titles no longer fit on one line, columns step out one at a time,
53
+ * lowest `priority` first (on a tie, the later column first). A column with no `priority`,
54
+ * `inline` or `minWidth` never steps out.
55
+ */
56
+ priority?: number;
57
+ /** With `fit`: when the column steps out, show its cells inline after the title instead of hiding them. */
58
+ inline?: boolean;
59
+ /** With `fit`: below this container width (rem) the column steps out even if it would still fit. */
60
+ minWidth?: number;
61
+ /** With `fit`: the column that names each row and never steps out. Defaults to the first column. */
62
+ titleColumn?: boolean;
63
+ }
64
+ /**
65
+ * A header cell. In the `TableHeader` it is a column header, set as an eyebrow: 12px mono,
66
+ * uppercase, 0.18em tracking, muted. In a body or footer row it is that row's header — a
67
+ * `<th scope="row">` set like a cell in the foreground ink, not as an eyebrow: use it for the
68
+ * cell that names the row (a feature in a comparison, a month in a report).
69
+ */
70
+ export declare function TableHead({ numeric, align, width, priority, inline, minWidth, titleColumn, className, style, ...props }: TableHeadProps): React.JSX.Element;
71
+ export interface TableCellProps extends React.ComponentProps<"td"> {
72
+ /** Numbers, amounts, dates and IDs: Licht Mono, tabular figures, right-aligned. */
73
+ numeric?: boolean;
74
+ }
75
+ export declare function TableCell({ numeric, className, ...props }: TableCellProps): React.JSX.Element;
76
+ export interface TableGroupProps extends React.ComponentProps<"tbody"> {
77
+ /** Controlled open state. */
78
+ open?: boolean;
79
+ /** Open at first. Defaults to `true`. */
80
+ defaultOpen?: boolean;
81
+ /** Called when the group header's trigger opens or closes the group. */
82
+ onOpenChange?: (open: boolean) => void;
83
+ /** Let the header open and close the group. Defaults to `true`. */
84
+ collapsible?: boolean;
85
+ }
86
+ /**
87
+ * TableGroup — one group of rows: a `<tbody>` that starts with a `TableGroupHeader` and holds
88
+ * ordinary `TableRow`s. Use several in place of a single `TableBody`.
89
+ *
90
+ * Groups answer "which rows belong together" (by status, by owner, by month). The rule people
91
+ * break: grouping by something every row shares, or into groups of one. If most groups would
92
+ * hold a single row, sort the column instead.
93
+ */
94
+ export declare function TableGroup({ open: openProp, defaultOpen, onOpenChange, collapsible, className, ...props }: TableGroupProps): React.JSX.Element;
95
+ export interface TableGroupHeaderProps extends Omit<React.ComponentProps<"tr">, "children"> {
96
+ /** The group's label: the shared value ("Running"), or a `Tag` for a status. */
97
+ children: React.ReactNode;
98
+ /** A 16px lucide icon before the label. */
99
+ icon?: React.ReactNode;
100
+ /** How many rows the group holds, shown in mono after the label. */
101
+ count?: React.ReactNode;
102
+ /** A short mono summary at the end of the row, e.g. a total. */
103
+ summary?: React.ReactNode;
104
+ /** Columns the header spans. Pass the table's column count. Defaults to 100. */
105
+ colSpan?: number;
106
+ /** Stick to the top of the table's scroll area while the group's rows scroll under it. */
107
+ sticky?: boolean;
108
+ }
109
+ /**
110
+ * The first row of a `TableGroup`: a full-width band with the label, a mono count and an
111
+ * optional summary. When the group is collapsible the label is a button with a chevron that
112
+ * opens and closes the group (`aria-expanded`).
113
+ *
114
+ * `sticky` pins the header to the top of the table card while its rows scroll — give the
115
+ * card a height (`containerProps={{ className: "max-h-96" }}`) so the card itself scrolls.
116
+ */
117
+ export declare function TableGroupHeader({ icon, count, summary, colSpan, sticky, className, children, ref, ...props }: TableGroupHeaderProps): React.JSX.Element;
118
+ export interface TableVirtualGroup<TRow> {
119
+ /** Stable and unique among the groups. */
120
+ key: React.Key;
121
+ /** The group's first row: a `TableGroupHeader`. */
122
+ header: React.ReactNode;
123
+ rows: readonly TRow[];
124
+ /** Controlled open state. */
125
+ open?: boolean;
126
+ /** Open at first. Defaults to `true`. */
127
+ defaultOpen?: boolean;
128
+ /** Called when the header's trigger opens or closes the group. */
129
+ onOpenChange?: (open: boolean) => void;
130
+ /** Let the header open and close the group. Defaults to `true`. */
131
+ collapsible?: boolean;
132
+ }
133
+ export interface TableVirtualBodyProps<TRow> {
134
+ /** The rows, for a body without groups. */
135
+ rows?: readonly TRow[];
136
+ /** Groups of rows, in place of `rows`. Each opens with its header; a closed one keeps only it. */
137
+ groups?: readonly TableVirtualGroup<TRow>[];
138
+ /**
139
+ * Renders one row: a `TableRow` with its cells. `index` is the row's place in `rows` (or in its
140
+ * group), and -1 for one of `sizeRows` that is in neither.
141
+ */
142
+ renderRow: (row: TRow, index: number) => React.ReactNode;
143
+ /** A stable key per row, such as its id: a row keeps its element and measured height when rows sort. Defaults to the index. */
144
+ getRowKey?: (row: TRow, index: number) => React.Key;
145
+ /**
146
+ * The rows that size the columns. They are rendered out of view, so columns keep their width
147
+ * while the other rows scroll in and out. Defaults to the two rows with the longest value in each
148
+ * field, and the two longest in all.
149
+ */
150
+ sizeRows?: readonly TRow[];
151
+ /** Rows rendered beyond each edge of the view. Defaults to 8. */
152
+ overscan?: number;
153
+ /** When it changes, a table scrolled past its first row scrolls back to it: pass the search text. */
154
+ scrollResetKey?: unknown;
155
+ /**
156
+ * Called with the rows rendered (in view and `overscan` beyond), as `[from, to)` indices into
157
+ * `rows`, whenever they change: load the rows there when they come from a server. Not with groups.
158
+ */
159
+ onRangeChange?: (from: number, to: number) => void;
160
+ }
161
+ /**
162
+ * TableVirtualBody — the body of a table with thousands of rows, in place of `TableBody` (or the
163
+ * `TableGroup`s): it renders only the rows in view and a few beyond, and the space of the others,
164
+ * as the table's own box or the page scrolls. Pass the rows and how to render one; the rows can be
165
+ * grouped, and work in every Table mode (`dense`, `fit`, sticky group headers).
166
+ *
167
+ * Use it from a few hundred rows on. The rule people break: reaching for it for a page of rows —
168
+ * rows that are not rendered can't be found with the browser's search or printed.
169
+ */
170
+ export declare function TableVirtualBody<TRow>({ rows, groups, renderRow, getRowKey, sizeRows, overscan, scrollResetKey, onRangeChange, }: TableVirtualBodyProps<TRow>): React.JSX.Element;
171
+ /** A short description of the table, under it. Prefer it over a heading inside the card. */
172
+ export declare function TableCaption({ className, ...props }: React.ComponentProps<"caption">): React.JSX.Element;