@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,62 @@
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { cn } from "../lib/cn.js";
4
+ const badgeVariants = {
5
+ /** The primary fill: dark in light mode, light in dark mode. Counts that need attention. */
6
+ default: "bg-(--primary-fill) text-(--primary-text) shadow-checked",
7
+ /** The raised key surface with foreground ink. Quiet counts and "New" markers. */
8
+ secondary: "bg-control-surface bg-linear-to-b from-control-inner-edge to-transparent text-foreground shadow-key",
9
+ /** Status only: done, connected, online. Never decoration. */
10
+ success: "bg-success text-background shadow-checked",
11
+ /** Status only: away, expiring, a count of things that need attention soon. Never decoration. */
12
+ warning: "bg-warning text-background shadow-checked",
13
+ /** Status only: new, syncing, an unread count of neutral news. Never decoration. */
14
+ info: "bg-info text-background shadow-checked",
15
+ /** Status only: failed, offline, an error count. Never decoration. */
16
+ destructive: "bg-destructive text-background shadow-checked",
17
+ };
18
+ const badgeSizes = {
19
+ /** 16px — on 30px controls, 24px avatars and inline in dense rows. */
20
+ sm: "h-4 min-w-4 px-1 text-[10px]",
21
+ /** 20px — on 36–46px controls and 32–40px avatars. */
22
+ default: "h-5 min-w-5 px-1.5 text-[11px]",
23
+ };
24
+ const dotSizes = {
25
+ sm: "size-2",
26
+ default: "size-2.5",
27
+ };
28
+ /**
29
+ * Badge — a small count or status mark: a notification count on an icon button or avatar,
30
+ * a "New" marker beside a nav item, or a status dot. Mono, tabular numerals; 16 or 20px tall,
31
+ * fully round. Monochrome by default; `success`, `warning`, `info` and `destructive` are status only.
32
+ *
33
+ * Wrap the thing it marks in `BadgeAnchor` to pin it to the corner. Not the same as `Tag`:
34
+ * a tag is metadata that names something ("TypeScript", "Draft"); a badge counts or flags
35
+ * something about the object it sits on. The rule people break: colour as decoration — a
36
+ * green "New" or a red count that is not an error.
37
+ */
38
+ export function Badge({ variant = "default", size = "default", count, max = 99, dot = false, label, className, children, ...props }) {
39
+ // Not above zero — or not a number yet (NaN while a count loads) — renders nothing.
40
+ if (count !== undefined && !(count > 0) && !dot)
41
+ return null;
42
+ const content = count !== undefined ? (count > max ? `${max}+` : String(count)) : children;
43
+ return (_jsxs("span", { "data-slot": "badge", "data-variant": variant, "data-size": size, "data-dot": dot || undefined, className: cn("inline-flex shrink-0 items-center justify-center rounded-full leading-none whitespace-nowrap select-none", badgeVariants[variant], dot
44
+ ? dotSizes[size]
45
+ : [
46
+ "font-mono font-medium tracking-[0.02em] tabular-nums",
47
+ "[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-3",
48
+ badgeSizes[size],
49
+ ], className), ...props, children: [!dot && content, label && _jsx("span", { className: "sr-only", children: label })] }));
50
+ }
51
+ /**
52
+ * BadgeAnchor — wraps an icon button, avatar or other object and pins a direct child `Badge`
53
+ * to its corner, with a 2px cut-out in the page colour (`--badge-cutout`, default
54
+ * `--background`; set it on a card). The badge ignores the pointer, so the control underneath
55
+ * still receives every click.
56
+ */
57
+ export function BadgeAnchor({ shape = "circle", placement = "top-end", className, ...props }) {
58
+ return (_jsx("span", { "data-slot": "badge-anchor", "data-shape": shape, "data-placement": placement,
59
+ // Never wider than its container, so a labelled button inside ends its label in "…" with
60
+ // the badge still on its corner.
61
+ className: cn("relative inline-flex w-fit max-w-full shrink-0 align-middle", className), ...props }));
62
+ }
@@ -0,0 +1,86 @@
1
+ import { useRender } from "@base-ui/react/use-render";
2
+ import * as React from "react";
3
+ export interface BottomNavMessages {
4
+ /** The `nav` landmark's name, when the bar has no `aria-label`. */
5
+ nav: string;
6
+ /** A badge count, read after the item's label: "3 new". */
7
+ count: (count: number) => string;
8
+ /** A badge dot, read after the item's label. */
9
+ dot: string;
10
+ }
11
+ declare module "./locale" {
12
+ interface Messages {
13
+ bottomNav: BottomNavMessages;
14
+ }
15
+ }
16
+ /** At and above this width the bar is hidden: `sm` 40rem, `md` 48rem, `lg` 64rem. */
17
+ export type BottomNavBreakpoint = "sm" | "md" | "lg";
18
+ export interface BottomNavProps extends Omit<React.ComponentProps<"nav">, "defaultValue" | "onChange"> {
19
+ /** The current destination's `value`, for app state. Router-driven pages set `current` per item instead. */
20
+ value?: string;
21
+ /** The destination current at first, when uncontrolled. */
22
+ defaultValue?: string;
23
+ /** Called with an item's `value` when it is chosen. */
24
+ onValueChange?: (value: string) => void;
25
+ /**
26
+ * `fixed` (default): pinned to the bottom of the viewport, and the page reserves its height
27
+ * through `--bottom-nav-h`. `absolute`: pinned to the bottom of its positioned parent — a
28
+ * phone-sized preview, an embedded screen.
29
+ */
30
+ position?: "fixed" | "absolute";
31
+ /**
32
+ * Hidden at and above this width, where a sidebar or a header takes over. Defaults to `md`
33
+ * (48rem) when fixed and to `false` — always shown — when absolute.
34
+ */
35
+ breakpoint?: BottomNavBreakpoint | false;
36
+ /**
37
+ * Slides the bar away while the page scrolls down and back as soon as it scrolls up, reaches
38
+ * the top, or a key moves focus into it. Fixed bars follow the window; absolute ones the
39
+ * scrolling inside their positioned parent.
40
+ */
41
+ hideOnScroll?: boolean;
42
+ /** Replaces the bar's interface text (the landmark's name, the words read for a badge). */
43
+ labels?: Partial<BottomNavMessages>;
44
+ ref?: React.Ref<HTMLElement>;
45
+ }
46
+ /**
47
+ * BottomNav — the bar of destinations at the bottom of a phone screen: 3–5 items, each an icon
48
+ * over a short Licht Sans label, on the page ground behind a hairline. The current item is in the
49
+ * foreground ink on a raised 12px tile that glides to the next one; the others rest muted. It
50
+ * clears the home indicator (`env(safe-area-inset-bottom)`), and while it is shown the page
51
+ * reserves its height as `--bottom-nav-h` — put `pb-(--bottom-nav-h)` on the content's container.
52
+ * Hidden from `md` up by default, where a `Sidebar` or `SiteHeader` takes over.
53
+ *
54
+ * Use it for the top-level places of an app on a phone, the ones people switch between all day.
55
+ * The rule people break: putting actions (Compose, Log out) or more than five destinations in
56
+ * it — an action is a `Button`, and a sixth place belongs in a sidebar sheet or an account menu.
57
+ */
58
+ export declare function BottomNav({ value: valueProp, defaultValue, onValueChange, position, breakpoint, hideOnScroll, labels, className, children, ref, onFocus, ...props }: BottomNavProps): React.JSX.Element;
59
+ export interface BottomNavItemProps extends Omit<useRender.ComponentProps<"a">, "children"> {
60
+ /** A 20px lucide icon over the label. */
61
+ icon: React.ReactNode;
62
+ /** One short word ("Home", "Search", "Orders"). Always shown: the bar is never icon-only. */
63
+ label: React.ReactNode;
64
+ /** The item's value, for `BottomNav value`. Choosing the item reports it to `onValueChange`. */
65
+ value?: string;
66
+ /**
67
+ * The current page, for router-driven bars. Sets `aria-current="page"` and the raised tile.
68
+ * Wins over the bar's `value`.
69
+ */
70
+ current?: boolean;
71
+ /**
72
+ * A count on the icon (`3`, shown as "99+" above 99, nothing at 0) or `true` for a dot. Read
73
+ * after the label in words: "Inbox, 3 new".
74
+ */
75
+ badge?: number | boolean;
76
+ /** What a screen reader hears for the badge, instead of "3 new" / "New": "3 in your basket". */
77
+ badgeLabel?: string;
78
+ /** Dimmed, and does nothing when chosen. It stays focusable, so it is still found and read. */
79
+ disabled?: boolean;
80
+ }
81
+ /**
82
+ * BottomNavItem — one destination: an icon over a label, at least 44px to touch (the whole cell
83
+ * of the bar). Renders an `<a>` with `href`, `render={<Link to="…" />}` for a router link, or a
84
+ * `<button>` for app state with neither. Never icon-only, and never an action.
85
+ */
86
+ export declare function BottomNavItem({ icon, label, value, current: currentProp, badge, badgeLabel, disabled, render, ref, className, onClick, ...props }: BottomNavItemProps): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
@@ -0,0 +1,175 @@
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { useRender } from "@base-ui/react/use-render";
4
+ import * as React from "react";
5
+ import { cn } from "../lib/cn.js";
6
+ import { glideStyle, useGlide, useMergedRef } from "../lib/glide.js";
7
+ import { Badge, BadgeAnchor } from "./badge.js";
8
+ import { useMessages } from "./locale.js";
9
+ const defaultMessages = {
10
+ nav: "Main",
11
+ count: (count) => `${count} new`,
12
+ dot: "New",
13
+ };
14
+ const BottomNavContext = React.createContext({
15
+ value: undefined,
16
+ select: () => { },
17
+ });
18
+ const hiddenFrom = {
19
+ sm: "sm:hidden",
20
+ md: "md:hidden",
21
+ lg: "lg:hidden",
22
+ };
23
+ const ITEM = '[data-slot="bottom-nav-item"]';
24
+ const TILE = '[data-slot="bottom-nav-item-tile"]';
25
+ const findCurrent = (row) => row.querySelector(`${ITEM}[aria-current="page"] > ${TILE}`);
26
+ /** How far the page scrolls down before the bar goes, and up before it comes back (px). */
27
+ const HIDE_AFTER = 24;
28
+ const SHOW_AFTER = 8;
29
+ /**
30
+ * Hides the bar while its scroller moves down and shows it again on the way up. Vertical moves
31
+ * only: a carousel scrolling sideways leaves it be.
32
+ */
33
+ function useHideOnScroll(nav, enabled, contained) {
34
+ const [hidden, setHidden] = React.useState(false);
35
+ React.useEffect(() => {
36
+ const el = nav.current;
37
+ if (!enabled || !el) {
38
+ setHidden(false);
39
+ return;
40
+ }
41
+ const scope = contained ? el.parentElement : window;
42
+ if (!scope)
43
+ return;
44
+ const last = new WeakMap();
45
+ const start = document.scrollingElement?.scrollTop ?? 0;
46
+ let travelled = 0;
47
+ const onScroll = (event) => {
48
+ const target = event.target;
49
+ // A fixed bar follows the page; an absolute one any scroller inside its parent but itself.
50
+ const scroller = target === document || target === window
51
+ ? document.scrollingElement
52
+ : target instanceof HTMLElement && !el.contains(target)
53
+ ? target
54
+ : null;
55
+ if (!scroller || (!contained && scroller !== document.scrollingElement))
56
+ return;
57
+ // Clamped to the scroll range, so a rubber-band bounce past either end is no move at all:
58
+ // springing back from the bottom would otherwise read as scrolling up.
59
+ const y = Math.min(Math.max(scroller.scrollTop, 0), scroller.scrollHeight - scroller.clientHeight);
60
+ // A scroller seen for the first time moved from where it was when the bar mounted: the
61
+ // page's position then, or the top for one inside a preview.
62
+ const before = last.get(scroller) ?? (scroller === document.scrollingElement ? start : 0);
63
+ last.set(scroller, y);
64
+ const delta = y - before;
65
+ if (delta === 0)
66
+ return;
67
+ // At the top the bar is always there. At the end it stays away: the page reserves its
68
+ // space, so nothing is under it, and a swipe that reaches the end would otherwise bring it
69
+ // straight back.
70
+ if (y <= 0) {
71
+ travelled = 0;
72
+ setHidden(false);
73
+ return;
74
+ }
75
+ travelled = delta > 0 ? Math.max(0, travelled) + delta : Math.min(0, travelled) + delta;
76
+ if (travelled > HIDE_AFTER && y > el.offsetHeight)
77
+ setHidden(true);
78
+ else if (travelled < -SHOW_AFTER)
79
+ setHidden(false);
80
+ };
81
+ scope.addEventListener("scroll", onScroll, { capture: true, passive: true });
82
+ return () => scope.removeEventListener("scroll", onScroll, { capture: true });
83
+ }, [nav, enabled, contained]);
84
+ return [hidden, setHidden];
85
+ }
86
+ /**
87
+ * BottomNav — the bar of destinations at the bottom of a phone screen: 3–5 items, each an icon
88
+ * over a short Licht Sans label, on the page ground behind a hairline. The current item is in the
89
+ * foreground ink on a raised 12px tile that glides to the next one; the others rest muted. It
90
+ * clears the home indicator (`env(safe-area-inset-bottom)`), and while it is shown the page
91
+ * reserves its height as `--bottom-nav-h` — put `pb-(--bottom-nav-h)` on the content's container.
92
+ * Hidden from `md` up by default, where a `Sidebar` or `SiteHeader` takes over.
93
+ *
94
+ * Use it for the top-level places of an app on a phone, the ones people switch between all day.
95
+ * The rule people break: putting actions (Compose, Log out) or more than five destinations in
96
+ * it — an action is a `Button`, and a sixth place belongs in a sidebar sheet or an account menu.
97
+ */
98
+ export function BottomNav({ value: valueProp, defaultValue, onValueChange, position = "fixed", breakpoint = position === "fixed" ? "md" : false, hideOnScroll = false, labels, className, children, ref, onFocus, ...props }) {
99
+ const text = useMessages("bottomNav", defaultMessages, labels);
100
+ const [navRef, setNavRef] = useMergedRef(ref);
101
+ const rowRef = React.useRef(null);
102
+ const [own, setOwn] = React.useState(defaultValue);
103
+ const value = valueProp ?? own;
104
+ const contained = position === "absolute";
105
+ const [hidden, setHidden] = useHideOnScroll(navRef, hideOnScroll, contained);
106
+ const glide = useGlide(rowRef, findCurrent, { attributes: ["aria-current"], items: ITEM });
107
+ const context = React.useMemo(() => ({
108
+ value,
109
+ select: (next) => {
110
+ if (valueProp === undefined)
111
+ setOwn(next);
112
+ onValueChange?.(next);
113
+ },
114
+ text,
115
+ }), [value, valueProp, onValueChange, text]);
116
+ return (_jsx(BottomNavContext.Provider, { value: context, children: _jsxs("nav", { ref: setNavRef, "aria-label": text.nav, "data-slot": "bottom-nav", "data-position": position, "data-breakpoint": breakpoint || undefined, "data-hidden": hidden ? "" : undefined, "data-indicator": glide.visible ? "" : undefined, onFocus: (event) => {
117
+ onFocus?.(event);
118
+ // Tabbing into a bar that slid away brings it back.
119
+ setHidden(false);
120
+ }, className: cn("group/bottom-nav inset-x-0 bottom-0 isolate z-40 border-t border-border/60", contained ? "absolute" : "fixed",
121
+ // Clear of the home indicator, and of the notch on a phone on its side (viewport-fit=cover).
122
+ "pr-[env(safe-area-inset-right,0px)] pb-[env(safe-area-inset-bottom,0px)] pl-[env(safe-area-inset-left,0px)]",
123
+ // Leaving eases in, coming back eases out: 300ms either way, instant under reduced motion.
124
+ "transition-[translate] duration-[calc(var(--duration)*2)] ease-[cubic-bezier(0.33,1,0.68,1)]", "data-hidden:translate-y-full data-hidden:ease-[cubic-bezier(0.32,0,0.67,0)]", breakpoint && hiddenFrom[breakpoint], className), ...props, children: [_jsx("span", { "aria-hidden": true, "data-slot": "bottom-nav-ground" }), _jsxs("div", { ref: rowRef, "data-slot": "bottom-nav-list", className: "relative mx-auto flex h-(--bottom-nav-bar) w-full max-w-lg items-stretch px-1", children: [_jsx("span", { "aria-hidden": true, "data-slot": "bottom-nav-indicator", "data-visible": glide.visible ? "" : undefined, "data-instant": glide.instant ? "" : undefined, className: cn("pointer-events-none absolute top-0 left-0 opacity-0 data-visible:opacity-100",
125
+ // The glide crosses the bar: 300ms on an ease-out that does not rush its first frames.
126
+ "transition-[translate,width,height,opacity] duration-[calc(var(--duration)*2)] ease-[cubic-bezier(0.33,1,0.68,1)] data-instant:transition-none", "rounded-button border border-transparent bg-control-surface bg-linear-to-b from-control-inner-edge to-transparent shadow-raised"), style: glideStyle(glide) }), children] })] }) }));
127
+ }
128
+ /**
129
+ * BottomNavItem — one destination: an icon over a label, at least 44px to touch (the whole cell
130
+ * of the bar). Renders an `<a>` with `href`, `render={<Link to="…" />}` for a router link, or a
131
+ * `<button>` for app state with neither. Never icon-only, and never an action.
132
+ */
133
+ export function BottomNavItem({ icon, label, value, current: currentProp, badge, badgeLabel, disabled = false, render, ref, className, onClick, ...props }) {
134
+ const nav = React.useContext(BottomNavContext);
135
+ const own = useMessages("bottomNav", defaultMessages);
136
+ const text = nav.text ?? own;
137
+ const current = currentProp ?? (value !== undefined && nav.value === value);
138
+ const link = render !== undefined || props.href !== undefined;
139
+ const count = typeof badge === "number" && badge > 0 ? badge : undefined;
140
+ const dot = badge === true;
141
+ // Only what is drawn is read: a `badgeLabel` with a count of 0 says nothing.
142
+ const announced = count !== undefined ? (badgeLabel ?? text.count(count)) : dot ? (badgeLabel ?? text.dot) : undefined;
143
+ // The badge is read after the label: "Inbox, 3 new". A text label makes that the item's name
144
+ // exactly; any other label carries the words in hidden text after it.
145
+ const named = announced !== undefined && (typeof label === "string" || typeof label === "number");
146
+ return useRender({
147
+ defaultTagName: link ? "a" : "button",
148
+ render,
149
+ ref,
150
+ props: {
151
+ "data-slot": "bottom-nav-item",
152
+ "aria-current": current ? "page" : undefined,
153
+ "aria-disabled": disabled || undefined,
154
+ "aria-label": named ? `${label}, ${announced}` : undefined,
155
+ ...(link ? {} : { type: "button" }),
156
+ ...props,
157
+ onClick: (event) => {
158
+ if (disabled) {
159
+ event.preventDefault();
160
+ return;
161
+ }
162
+ onClick?.(event);
163
+ if (!event.defaultPrevented && value !== undefined)
164
+ nav.select(value);
165
+ },
166
+ className: cn("group/bottom-nav-item relative flex min-w-0 flex-1 basis-0 cursor-pointer items-center justify-center no-underline outline-none select-none [-webkit-tap-highlight-color:transparent]", "aria-disabled:pointer-events-none aria-disabled:opacity-50", className),
167
+ children: (_jsxs("span", { "data-slot": "bottom-nav-item-tile", className: cn(
168
+ // The label comes first in the source and the icon is drawn above it: what is seen reads
169
+ // "Inbox 3", the start of the name "Inbox, 3 new" (WCAG 2.5.3).
170
+ "relative flex min-h-(--control-h-lg) max-w-full min-w-16 flex-col-reverse items-center justify-center gap-1 rounded-button border border-transparent px-1",
171
+ // Muted at rest, the full ink when hovered or current (styles in parts/navigation.css).
172
+ "group-focus-visible/bottom-nav-item:outline-2 group-focus-visible/bottom-nav-item:outline-offset-0 group-focus-visible/bottom-nav-item:outline-control-focus group-focus-visible/bottom-nav-item:outline-solid", "[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-5"), children: [_jsxs("span", { "data-slot": "bottom-nav-item-label", className: "max-w-full truncate font-body text-xs leading-[14px] font-medium", children: [label, announced && !named && _jsxs("span", { className: "sr-only", children: [", ", announced] })] }), count !== undefined && " ", _jsx("span", { "aria-hidden": true, "data-slot": "bottom-nav-item-icon", className: "inline-flex", children: count !== undefined || dot ? (_jsxs(BadgeAnchor, { shape: "rect", children: [icon, _jsx(Badge, { size: "sm", count: count, dot: dot })] })) : (icon) })] })),
173
+ },
174
+ });
175
+ }
@@ -0,0 +1,31 @@
1
+ import * as React from "react";
2
+ export interface BreadcrumbMessages {
3
+ /** The name of the trail's `nav` landmark. */
4
+ nav: string;
5
+ }
6
+ declare module "./locale" {
7
+ interface Messages {
8
+ breadcrumb: BreadcrumbMessages;
9
+ }
10
+ }
11
+ export interface BreadcrumbItem {
12
+ label: React.ReactNode;
13
+ /** Omit on the current page. */
14
+ href?: string;
15
+ /** Replace the `<a>` (e.g. a router `Link`). Receives the href, className and children. */
16
+ render?: React.ReactElement<Record<string, unknown>>;
17
+ }
18
+ export interface BreadcrumbProps extends Omit<React.ComponentProps<"nav">, "children"> {
19
+ /** Trail from the root to the current page. The last item is the current page. */
20
+ items: BreadcrumbItem[];
21
+ /** Separator glyph. Defaults to `/`. */
22
+ separator?: React.ReactNode;
23
+ }
24
+ /**
25
+ * Breadcrumb — where this page sits, as a mono trail: `Shop / Outerwear / Waxed cotton jacket`.
26
+ *
27
+ * 12px Licht Mono, muted, with `/` separators; the current page is foreground and not a link.
28
+ * The rule people break: using it as the primary navigation or on a flat site. If the page is
29
+ * one level deep, a breadcrumb only repeats the header.
30
+ */
31
+ export declare function Breadcrumb({ items, separator, className, ...props }: BreadcrumbProps): React.JSX.Element;
@@ -0,0 +1,37 @@
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import * as React from "react";
4
+ import { cn } from "../lib/cn.js";
5
+ import { useMessages } from "./locale.js";
6
+ const defaultMessages = { nav: "Breadcrumb" };
7
+ /**
8
+ * Breadcrumb — where this page sits, as a mono trail: `Shop / Outerwear / Waxed cotton jacket`.
9
+ *
10
+ * 12px Licht Mono, muted, with `/` separators; the current page is foreground and not a link.
11
+ * The rule people break: using it as the primary navigation or on a flat site. If the page is
12
+ * one level deep, a breadcrumb only repeats the header.
13
+ */
14
+ export function Breadcrumb({ items, separator = "/", className, ...props }) {
15
+ const text = useMessages("breadcrumb", defaultMessages);
16
+ return (_jsx("nav", { "aria-label": text.nav, "data-slot": "breadcrumb", className: cn("min-w-0", className), ...props, children: _jsx("ol", { className: "m-0 flex list-none flex-wrap items-center gap-x-2 gap-y-3 p-0 font-mono text-[12px] leading-none [overflow-wrap:anywhere] text-muted-foreground", children: items.map((item, i) => {
17
+ const current = i === items.length - 1;
18
+ const linkClass = "text-muted-foreground no-underline transition-colors duration-(--duration) ease-(--ease) hover:text-foreground focus-ring";
19
+ let content;
20
+ if (current || (!item.href && !item.render)) {
21
+ content = (_jsx("span", { "data-slot": "breadcrumb-page", "aria-current": current ? "page" : undefined, className: current ? "text-foreground" : undefined, children: item.label }));
22
+ }
23
+ else if (item.render) {
24
+ content = React.cloneElement(item.render, {
25
+ // The element's own slot wins: a Button rendered here keeps its material.
26
+ "data-slot": item.render.props["data-slot"] ?? "breadcrumb-link",
27
+ href: item.href,
28
+ className: cn(linkClass, item.render.props.className),
29
+ children: item.label,
30
+ });
31
+ }
32
+ else {
33
+ content = (_jsx("a", { "data-slot": "breadcrumb-link", href: item.href, className: linkClass, children: item.label }));
34
+ }
35
+ return (_jsxs(React.Fragment, { children: [i > 0 && (_jsx("li", { role: "presentation", "aria-hidden": true, "data-slot": "breadcrumb-separator", className: "text-control-muted", children: separator })), _jsx("li", { "data-slot": "breadcrumb-item", className: "inline-flex min-w-0 items-center", children: content })] }, i));
36
+ }) }) }));
37
+ }
@@ -0,0 +1,30 @@
1
+ import type * as React from "react";
2
+ declare const orientations: {
3
+ readonly horizontal: readonly ["flex-row", "[&>*:not(:nth-child(1_of_:not([data-base-ui-focus-guard],span[aria-owns],[data-slot=copy-button-status])))]:rounded-s-none", "[&>*:not(:nth-last-child(1_of_:not([data-base-ui-focus-guard],span[aria-owns],[data-slot=copy-button-status])))]:rounded-e-none"];
4
+ readonly vertical: readonly ["flex-col", "[&>*:not(:nth-child(1_of_:not([data-base-ui-focus-guard],span[aria-owns],[data-slot=copy-button-status])))]:rounded-t-none", "[&>*:not(:nth-last-child(1_of_:not([data-base-ui-focus-guard],span[aria-owns],[data-slot=copy-button-status])))]:rounded-b-none"];
5
+ };
6
+ export interface ButtonGroupProps extends React.ComponentProps<"div"> {
7
+ /** Lay the controls out in a row (default) or a column. */
8
+ orientation?: keyof typeof orientations;
9
+ }
10
+ /**
11
+ * ButtonGroup — joins related controls edge to edge: the inner corners collapse to 0, the
12
+ * outer corners keep 12px (10px for fields), and neighbouring edges merge into one line.
13
+ * Works with `Button` variants, `SelectTrigger`, `Input` and `InputGroup` side by side.
14
+ *
15
+ * Use it for a split button, a pager, or a field with the action that belongs to it. The rule
16
+ * people break: joining unrelated actions to save space — separate actions stay separate
17
+ * buttons with a gap. Give the group an `aria-label` that names what the controls act on.
18
+ */
19
+ export declare function ButtonGroup({ orientation, className, ...props }: ButtonGroupProps): React.JSX.Element;
20
+ export interface ButtonGroupSeparatorProps extends React.ComponentProps<"div"> {
21
+ /** Match the group: a vertical rule in a horizontal group (default), and vice versa. */
22
+ orientation?: "vertical" | "horizontal";
23
+ }
24
+ /**
25
+ * No longer needed: joined buttons draw one thin seam between them themselves (a soft line on a
26
+ * split primary, the edge colour on raised buttons). Kept so existing markup keeps working; it
27
+ * renders nothing visible.
28
+ */
29
+ export declare function ButtonGroupSeparator({ orientation, className, ...props }: ButtonGroupSeparatorProps): React.JSX.Element;
30
+ export {};
@@ -0,0 +1,47 @@
1
+ "use client";
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ import { cn } from "../lib/cn.js";
4
+ /*
5
+ * First and last are counted among the joined controls only. While a menu or popover is open,
6
+ * Base UI renders invisible helper spans (focus guards, an aria-owns span) beside its trigger,
7
+ * and a CopyButton keeps its live region beside itself; with plain :first-child / :last-child
8
+ * the control would stop being last and lose its outer corners — the "blocky" open split button.
9
+ * How neighbours meet (merged field borders, one seam between buttons) lives in
10
+ * parts/controls.css.
11
+ */
12
+ const orientations = {
13
+ horizontal: [
14
+ "flex-row",
15
+ // Inner corners collapse; the outer corners keep each control's own radius.
16
+ "[&>*:not(:nth-child(1_of_:not([data-base-ui-focus-guard],span[aria-owns],[data-slot=copy-button-status])))]:rounded-s-none",
17
+ "[&>*:not(:nth-last-child(1_of_:not([data-base-ui-focus-guard],span[aria-owns],[data-slot=copy-button-status])))]:rounded-e-none",
18
+ ],
19
+ vertical: [
20
+ "flex-col",
21
+ "[&>*:not(:nth-child(1_of_:not([data-base-ui-focus-guard],span[aria-owns],[data-slot=copy-button-status])))]:rounded-t-none",
22
+ "[&>*:not(:nth-last-child(1_of_:not([data-base-ui-focus-guard],span[aria-owns],[data-slot=copy-button-status])))]:rounded-b-none",
23
+ ],
24
+ };
25
+ /**
26
+ * ButtonGroup — joins related controls edge to edge: the inner corners collapse to 0, the
27
+ * outer corners keep 12px (10px for fields), and neighbouring edges merge into one line.
28
+ * Works with `Button` variants, `SelectTrigger`, `Input` and `InputGroup` side by side.
29
+ *
30
+ * Use it for a split button, a pager, or a field with the action that belongs to it. The rule
31
+ * people break: joining unrelated actions to save space — separate actions stay separate
32
+ * buttons with a gap. Give the group an `aria-label` that names what the controls act on.
33
+ */
34
+ export function ButtonGroup({ orientation = "horizontal", className, ...props }) {
35
+ return (_jsx("div", { role: "group", "data-slot": "button-group", "data-orientation": orientation, className: cn("flex w-fit items-stretch",
36
+ // The control being used rises above its neighbours so its focus outline is never covered.
37
+ // (A CopyButton's live region stays out of the row, visually hidden.)
38
+ "[&>*:focus-visible]:z-10 [&>*:has(:focus-visible)]:z-10 [&>*:not([data-slot=copy-button-status])]:relative [&>*[data-popup-open]]:z-10", orientations[orientation], className), ...props }));
39
+ }
40
+ /**
41
+ * No longer needed: joined buttons draw one thin seam between them themselves (a soft line on a
42
+ * split primary, the edge colour on raised buttons). Kept so existing markup keeps working; it
43
+ * renders nothing visible.
44
+ */
45
+ export function ButtonGroupSeparator({ orientation = "vertical", className, ...props }) {
46
+ return (_jsx("div", { role: "separator", "aria-orientation": orientation, "data-slot": "button-group-separator", "data-orientation": orientation, className: cn("hidden", className), ...props }));
47
+ }
@@ -0,0 +1,53 @@
1
+ import { Button as BaseButton } from "@base-ui/react/button";
2
+ import * as React from "react";
3
+ declare const variants: {
4
+ /** The layered primary. One per view — the action that carries the page. */
5
+ readonly primary: "material-primary";
6
+ /** Raised quiet surface. Every other action. */
7
+ readonly secondary: "material-raised data-disabled:data-popup-open:bg-control-surface";
8
+ /** Flat until hovered, then raised. Toolbars and dense rows. */
9
+ readonly ghost: "material-row";
10
+ /** Inline text action with the brand underline. */
11
+ readonly link: "link h-auto min-h-0 rounded-none px-0 font-normal";
12
+ /** Raised surface with destructive ink. Use only for irreversible actions. */
13
+ readonly destructive: "material-raised text-destructive data-disabled:data-popup-open:bg-control-surface";
14
+ };
15
+ declare const sizes: {
16
+ readonly sm: "min-h-(--control-h-sm) gap-1.5 px-3 text-[13px]";
17
+ readonly default: "min-h-(--control-h) gap-2 px-4 text-sm";
18
+ readonly lg: "min-h-(--control-h-lg) gap-2 px-5 text-[15px]";
19
+ readonly icon: "size-(--icon-button) rounded-full p-0";
20
+ readonly "icon-sm": "size-(--control-h-sm) rounded-full p-0";
21
+ };
22
+ export type ButtonVariant = keyof typeof variants;
23
+ export type ButtonSize = keyof typeof sizes;
24
+ export interface ButtonProps extends BaseButton.Props {
25
+ variant?: ButtonVariant;
26
+ size?: ButtonSize;
27
+ /**
28
+ * Fold the label away to leave only the icon when the button's row runs out of room, and
29
+ * unfold it when there is room again — animated, the last collapsible button in the row
30
+ * first. The row is the nearest ancestor with `data-collapse-row`, or the button's parent.
31
+ * Give it an icon and a text label; the label stays its accessible name. Not for icon sizes.
32
+ */
33
+ collapsible?: boolean;
34
+ /**
35
+ * The opposite of `collapsible`, played by the pointer: what opens on hover or keyboard focus.
36
+ * `"label"` (or `true`) rests as a round icon button and shows the label beside the icon;
37
+ * `"icon"` rests as text and slides the icon in — before the text or after it, as you place it.
38
+ * On a touch screen it stays as it rests; the label is always its accessible name. It takes
39
+ * room as it opens, so give it some: the end of a row. Not for icon sizes.
40
+ */
41
+ expandable?: boolean | "label" | "icon";
42
+ }
43
+ /**
44
+ * Button — Base UI `Button` in the zon material.
45
+ *
46
+ * Heights come from `min-height`, never padding: 30 dense · 38 default · 46 prominent.
47
+ * Icon sizes are circular and must have an `aria-label`. `collapsible` lets a button with an
48
+ * icon and a label fold to a round icon button when its row is too tight; `expandable` rests
49
+ * as that icon button and unfolds on hover or focus.
50
+ * Use `render={<a href="…" />}` with `nativeButton={false}` for links styled as buttons.
51
+ */
52
+ export declare function Button({ variant, size, collapsible, expandable, className, children, ref, ...props }: ButtonProps): React.JSX.Element;
53
+ export {};