@zonsh/ui 0.4.1 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (562) hide show
  1. package/CHANGELOG.md +639 -0
  2. package/README.md +49 -21
  3. package/dist/brand.d.ts +3 -0
  4. package/dist/brand.js +7 -0
  5. package/dist/components/_breadcrumb-more.d.ts +6 -0
  6. package/dist/components/_breadcrumb-more.js +5 -0
  7. package/dist/components/_drawing-svg.d.ts +11 -0
  8. package/dist/components/_drawing-svg.js +30 -0
  9. package/dist/components/_media.d.ts +159 -0
  10. package/dist/components/_media.js +266 -0
  11. package/dist/components/_overlay.d.ts +8 -5
  12. package/dist/components/_overlay.js +11 -6
  13. package/dist/components/_scheduler-calendar.d.ts +71 -0
  14. package/dist/components/_scheduler-calendar.js +940 -0
  15. package/dist/components/_scheduler-editor.d.ts +29 -0
  16. package/dist/components/_scheduler-editor.js +111 -0
  17. package/dist/components/_scheduler-menu.d.ts +16 -0
  18. package/dist/components/_scheduler-menu.js +18 -0
  19. package/dist/components/_scheduler-parts.d.ts +164 -0
  20. package/dist/components/_scheduler-parts.js +327 -0
  21. package/dist/components/_suggest-list.d.ts +142 -0
  22. package/dist/components/_suggest-list.js +159 -0
  23. package/dist/components/_toolbar-more.d.ts +24 -0
  24. package/dist/components/_toolbar-more.js +25 -0
  25. package/dist/components/accordion.d.ts +1 -1
  26. package/dist/components/accordion.js +7 -7
  27. package/dist/components/action-sheet.d.ts +88 -0
  28. package/dist/components/action-sheet.js +124 -0
  29. package/dist/components/alert-dialog.js +3 -1
  30. package/dist/components/alert.d.ts +11 -18
  31. package/dist/components/alert.js +9 -6
  32. package/dist/components/app-bar.d.ts +93 -0
  33. package/dist/components/app-bar.js +175 -0
  34. package/dist/components/ascii-field.js +2 -1
  35. package/dist/components/audio-player.d.ts +134 -0
  36. package/dist/components/audio-player.js +618 -0
  37. package/dist/components/avatar.d.ts +6 -6
  38. package/dist/components/avatar.js +13 -11
  39. package/dist/components/badge.d.ts +12 -12
  40. package/dist/components/badge.js +7 -5
  41. package/dist/components/bottom-nav.d.ts +53 -11
  42. package/dist/components/bottom-nav.js +389 -24
  43. package/dist/components/breadcrumb.d.ts +11 -2
  44. package/dist/components/breadcrumb.js +60 -6
  45. package/dist/components/button-group.js +5 -1
  46. package/dist/components/button.d.ts +23 -6
  47. package/dist/components/button.js +64 -8
  48. package/dist/components/calendar.js +8 -6
  49. package/dist/components/card.d.ts +10 -8
  50. package/dist/components/card.js +15 -14
  51. package/dist/components/carousel.d.ts +2 -2
  52. package/dist/components/carousel.js +21 -8
  53. package/dist/components/chart.d.ts +38 -1
  54. package/dist/components/chart.js +27 -5
  55. package/dist/components/checkbox.js +2 -2
  56. package/dist/components/code-block.d.ts +9 -2
  57. package/dist/components/code-block.js +26 -7
  58. package/dist/components/collapsible.js +4 -4
  59. package/dist/components/color-picker.d.ts +2 -2
  60. package/dist/components/color-picker.js +5 -5
  61. package/dist/components/combobox.d.ts +26 -7
  62. package/dist/components/combobox.js +32 -13
  63. package/dist/components/command.d.ts +29 -5
  64. package/dist/components/command.js +37 -12
  65. package/dist/components/context-menu.d.ts +5 -2
  66. package/dist/components/context-menu.js +24 -3
  67. package/dist/components/conversation.d.ts +1 -1
  68. package/dist/components/conversation.js +77 -16
  69. package/dist/components/copy-button.d.ts +1 -1
  70. package/dist/components/copy-button.js +8 -6
  71. package/dist/components/data-table.d.ts +6 -6
  72. package/dist/components/data-table.js +41 -15
  73. package/dist/components/date-picker.d.ts +31 -9
  74. package/dist/components/date-picker.js +100 -18
  75. package/dist/components/dialog.d.ts +17 -10
  76. package/dist/components/dialog.js +20 -13
  77. package/dist/components/drawer.d.ts +26 -8
  78. package/dist/components/drawer.js +75 -16
  79. package/dist/components/drawing.d.ts +25 -0
  80. package/dist/components/drawing.js +32 -0
  81. package/dist/components/empty.js +2 -2
  82. package/dist/components/feature-list.d.ts +65 -13
  83. package/dist/components/feature-list.js +116 -15
  84. package/dist/components/field.js +2 -2
  85. package/dist/components/file-drop.d.ts +9 -7
  86. package/dist/components/file-drop.js +8 -43
  87. package/dist/components/filter-bar.d.ts +10 -9
  88. package/dist/components/filter-bar.js +42 -25
  89. package/dist/components/graph.d.ts +19 -3
  90. package/dist/components/graph.js +190 -28
  91. package/dist/components/illustration.js +53 -31
  92. package/dist/components/input-group.d.ts +6 -11
  93. package/dist/components/input-group.js +21 -19
  94. package/dist/components/input.d.ts +2 -2
  95. package/dist/components/input.js +3 -3
  96. package/dist/components/item.d.ts +9 -6
  97. package/dist/components/item.js +13 -8
  98. package/dist/components/kbd.d.ts +1 -1
  99. package/dist/components/kbd.js +1 -1
  100. package/dist/components/layout.d.ts +2 -1
  101. package/dist/components/layout.js +55 -11
  102. package/dist/components/lightbox.d.ts +76 -9
  103. package/dist/components/lightbox.js +354 -48
  104. package/dist/components/locale.d.ts +6 -6
  105. package/dist/components/logo.d.ts +21 -1
  106. package/dist/components/logo.js +32 -2
  107. package/dist/components/markdown-editor.d.ts +275 -0
  108. package/dist/components/markdown-editor.js +831 -0
  109. package/dist/components/mentions.d.ts +153 -0
  110. package/dist/components/mentions.js +507 -0
  111. package/dist/components/menu.d.ts +2 -1
  112. package/dist/components/menu.js +5 -4
  113. package/dist/components/menubar.d.ts +23 -5
  114. package/dist/components/menubar.js +153 -31
  115. package/dist/components/message.d.ts +62 -11
  116. package/dist/components/message.js +51 -14
  117. package/dist/components/meter.js +1 -1
  118. package/dist/components/money-input.d.ts +1 -1
  119. package/dist/components/money-input.js +1 -1
  120. package/dist/components/native-select.d.ts +2 -2
  121. package/dist/components/native-select.js +4 -4
  122. package/dist/components/navigation-menu.d.ts +3 -1
  123. package/dist/components/navigation-menu.js +23 -10
  124. package/dist/components/number-field.d.ts +2 -9
  125. package/dist/components/number-field.js +90 -26
  126. package/dist/components/number-roll.d.ts +26 -0
  127. package/dist/components/number-roll.js +81 -0
  128. package/dist/components/otp-field.d.ts +1 -1
  129. package/dist/components/otp-field.js +24 -3
  130. package/dist/components/pagination.d.ts +11 -3
  131. package/dist/components/pagination.js +59 -13
  132. package/dist/components/pdf-viewer.d.ts +1 -1
  133. package/dist/components/pdf-viewer.js +8 -8
  134. package/dist/components/phone-input.d.ts +1 -1
  135. package/dist/components/phone-input.js +2 -2
  136. package/dist/components/popover.js +5 -3
  137. package/dist/components/preview-card.d.ts +37 -2
  138. package/dist/components/preview-card.js +226 -2
  139. package/dist/components/progress.js +1 -1
  140. package/dist/components/prompt-input.d.ts +1 -1
  141. package/dist/components/prompt-input.js +35 -17
  142. package/dist/components/pull-to-refresh.d.ts +50 -0
  143. package/dist/components/pull-to-refresh.js +189 -0
  144. package/dist/components/quote.d.ts +6 -1
  145. package/dist/components/quote.js +3 -2
  146. package/dist/components/radio-group.js +8 -3
  147. package/dist/components/rating.d.ts +4 -1
  148. package/dist/components/rating.js +131 -10
  149. package/dist/components/reasoning.d.ts +1 -1
  150. package/dist/components/reasoning.js +7 -3
  151. package/dist/components/resizable.d.ts +1 -1
  152. package/dist/components/resizable.js +2 -2
  153. package/dist/components/response.d.ts +4 -3
  154. package/dist/components/response.js +39 -15
  155. package/dist/components/scheduler.d.ts +352 -0
  156. package/dist/components/scheduler.js +1717 -0
  157. package/dist/components/scroll-area.js +1 -1
  158. package/dist/components/select.d.ts +17 -4
  159. package/dist/components/select.js +140 -9
  160. package/dist/components/separator.d.ts +1 -1
  161. package/dist/components/separator.js +3 -3
  162. package/dist/components/sidebar.d.ts +44 -3
  163. package/dist/components/sidebar.js +90 -31
  164. package/dist/components/site-header.d.ts +18 -13
  165. package/dist/components/site-header.js +26 -9
  166. package/dist/components/skeleton.d.ts +18 -8
  167. package/dist/components/skeleton.js +23 -8
  168. package/dist/components/slider.js +2 -2
  169. package/dist/components/sortable.d.ts +55 -4
  170. package/dist/components/sortable.js +187 -94
  171. package/dist/components/sources.d.ts +1 -1
  172. package/dist/components/sources.js +2 -2
  173. package/dist/components/spinner.d.ts +4 -4
  174. package/dist/components/spinner.js +4 -4
  175. package/dist/components/stat.d.ts +21 -4
  176. package/dist/components/stat.js +17 -8
  177. package/dist/components/stepper.d.ts +1 -1
  178. package/dist/components/stepper.js +8 -7
  179. package/dist/components/suggestions.d.ts +11 -3
  180. package/dist/components/suggestions.js +10 -4
  181. package/dist/components/swipe-actions.d.ts +66 -0
  182. package/dist/components/swipe-actions.js +292 -0
  183. package/dist/components/switch.js +1 -1
  184. package/dist/components/table.d.ts +13 -7
  185. package/dist/components/table.js +124 -23
  186. package/dist/components/tabs.js +15 -8
  187. package/dist/components/tag.d.ts +19 -20
  188. package/dist/components/tag.js +9 -5
  189. package/dist/components/tags-input.d.ts +2 -7
  190. package/dist/components/tags-input.js +11 -8
  191. package/dist/components/textarea.d.ts +3 -2
  192. package/dist/components/textarea.js +4 -3
  193. package/dist/components/theme.d.ts +50 -7
  194. package/dist/components/theme.js +168 -12
  195. package/dist/components/time-field.d.ts +6 -10
  196. package/dist/components/time-field.js +19 -9
  197. package/dist/components/timeline.d.ts +19 -3
  198. package/dist/components/timeline.js +21 -9
  199. package/dist/components/tippy.d.ts +17 -1
  200. package/dist/components/tippy.js +95 -15
  201. package/dist/components/toast.d.ts +2 -7
  202. package/dist/components/toast.js +12 -8
  203. package/dist/components/toggle-group.d.ts +7 -1
  204. package/dist/components/toggle-group.js +17 -5
  205. package/dist/components/toggle.d.ts +2 -2
  206. package/dist/components/toggle.js +3 -2
  207. package/dist/components/tool-call.d.ts +1 -1
  208. package/dist/components/tool-call.js +8 -3
  209. package/dist/components/toolbar.d.ts +57 -4
  210. package/dist/components/toolbar.js +219 -16
  211. package/dist/components/tooltip.d.ts +5 -3
  212. package/dist/components/tooltip.js +14 -6
  213. package/dist/components/tour.d.ts +1 -1
  214. package/dist/components/tour.js +70 -24
  215. package/dist/components/tree.js +33 -10
  216. package/dist/components/typography.d.ts +31 -8
  217. package/dist/components/typography.js +21 -10
  218. package/dist/components/video-player.d.ts +7 -2
  219. package/dist/components/video-player.js +182 -225
  220. package/dist/index.d.ts +99 -92
  221. package/dist/index.js +99 -92
  222. package/dist/lib/calendar.d.ts +153 -0
  223. package/dist/lib/calendar.js +312 -0
  224. package/dist/lib/cn.d.ts +3 -1
  225. package/dist/lib/cn.js +5 -0
  226. package/dist/lib/code-highlight.d.ts +14 -0
  227. package/dist/lib/code-highlight.js +81 -18
  228. package/dist/lib/drag.d.ts +39 -0
  229. package/dist/lib/drag.js +96 -0
  230. package/dist/lib/editorial-assets.js +16 -8
  231. package/dist/lib/figure/figures/automation.js +25 -6
  232. package/dist/lib/figure/figures/bar-chart.js +6 -1
  233. package/dist/lib/figure/figures/brackets-classic.js +4 -1
  234. package/dist/lib/figure/figures/city.js +12 -2
  235. package/dist/lib/figure/figures/conveyor.js +17 -4
  236. package/dist/lib/figure/figures/database.js +5 -2
  237. package/dist/lib/figure/figures/documents.js +11 -3
  238. package/dist/lib/figure/figures/inbox.js +5 -2
  239. package/dist/lib/figure/figures/laptop.js +3 -1
  240. package/dist/lib/figure/figures/pipeline.js +45 -10
  241. package/dist/lib/figure/figures/platform.js +62 -7
  242. package/dist/lib/figure/figures/server.js +21 -5
  243. package/dist/lib/figure/figures/spreadsheet.js +29 -5
  244. package/dist/lib/figure/kernel.d.ts +4 -2
  245. package/dist/lib/figure/kernel.js +10 -5
  246. package/dist/lib/figure/parts.js +6 -2
  247. package/dist/lib/files.d.ts +31 -0
  248. package/dist/lib/files.js +60 -0
  249. package/dist/lib/gesture.d.ts +70 -0
  250. package/dist/lib/gesture.js +141 -0
  251. package/dist/lib/glide.d.ts +10 -4
  252. package/dist/lib/glide.js +14 -5
  253. package/dist/lib/icons.d.ts +1 -0
  254. package/dist/lib/icons.js +6 -0
  255. package/dist/lib/illustration-library.js +1 -6
  256. package/dist/lib/markdown-edit.d.ts +112 -0
  257. package/dist/lib/markdown-edit.js +557 -0
  258. package/dist/lib/markdown-rich-editor.d.ts +188 -0
  259. package/dist/lib/markdown-rich-editor.js +1153 -0
  260. package/dist/lib/markdown-rich.d.ts +63 -0
  261. package/dist/lib/markdown-rich.js +534 -0
  262. package/dist/lib/mentions.d.ts +100 -0
  263. package/dist/lib/mentions.js +246 -0
  264. package/dist/lib/motion.d.ts +18 -0
  265. package/dist/lib/motion.js +43 -5
  266. package/dist/lib/number-roll.d.ts +89 -0
  267. package/dist/lib/number-roll.js +391 -0
  268. package/dist/lib/platform.d.ts +6 -0
  269. package/dist/lib/platform.js +14 -0
  270. package/dist/lib/portal-container.d.ts +9 -0
  271. package/dist/lib/portal-container.js +10 -0
  272. package/dist/lib/press.d.ts +5 -0
  273. package/dist/lib/press.js +186 -0
  274. package/dist/lib/scheduler.d.ts +128 -0
  275. package/dist/lib/scheduler.js +272 -0
  276. package/dist/lib/scroll-edges.d.ts +9 -0
  277. package/dist/lib/scroll-edges.js +50 -0
  278. package/dist/lib/table-fit.d.ts +4 -3
  279. package/dist/lib/table-fit.js +92 -25
  280. package/dist/lib/theme-preset.d.ts +267 -0
  281. package/dist/lib/theme-preset.js +1046 -0
  282. package/dist/lib/theme-script.d.ts +23 -3
  283. package/dist/lib/theme-script.js +17 -5
  284. package/dist/lib/tippy/sprite.d.ts +36 -4
  285. package/dist/lib/tippy/sprite.js +188 -15
  286. package/dist/lib/tone.d.ts +4 -0
  287. package/dist/lib/tone.js +1 -0
  288. package/dist/messages/de.d.ts +3 -3
  289. package/dist/messages/de.js +274 -3
  290. package/dist/skills/zon-ui/SKILL.md +279 -0
  291. package/dist/skills/zon-ui/references/authoring.md +265 -0
  292. package/dist/skills/zon-ui/references/brand.md +416 -0
  293. package/dist/skills/zon-ui/references/components/accordion.md +199 -0
  294. package/dist/skills/zon-ui/references/components/action-sheet.md +268 -0
  295. package/dist/skills/zon-ui/references/components/alert-dialog.md +276 -0
  296. package/dist/skills/zon-ui/references/components/alert.md +167 -0
  297. package/dist/skills/zon-ui/references/components/app-bar.md +307 -0
  298. package/dist/skills/zon-ui/references/components/ascii-field.md +121 -0
  299. package/dist/skills/zon-ui/references/components/aspect-ratio.md +112 -0
  300. package/dist/skills/zon-ui/references/components/audio-player.md +231 -0
  301. package/dist/skills/zon-ui/references/components/avatar.md +98 -0
  302. package/dist/skills/zon-ui/references/components/badge.md +227 -0
  303. package/dist/skills/zon-ui/references/components/bottom-nav.md +709 -0
  304. package/dist/skills/zon-ui/references/components/breadcrumb.md +143 -0
  305. package/dist/skills/zon-ui/references/components/button-group.md +216 -0
  306. package/dist/skills/zon-ui/references/components/button.md +309 -0
  307. package/dist/skills/zon-ui/references/components/calendar.md +296 -0
  308. package/dist/skills/zon-ui/references/components/card.md +158 -0
  309. package/dist/skills/zon-ui/references/components/carousel.md +297 -0
  310. package/dist/skills/zon-ui/references/components/chart.md +739 -0
  311. package/dist/skills/zon-ui/references/components/chat.md +417 -0
  312. package/dist/skills/zon-ui/references/components/checkbox.md +219 -0
  313. package/dist/skills/zon-ui/references/components/code-block.md +143 -0
  314. package/dist/skills/zon-ui/references/components/code-highlight.md +118 -0
  315. package/dist/skills/zon-ui/references/components/collapsible.md +146 -0
  316. package/dist/skills/zon-ui/references/components/color-picker.md +200 -0
  317. package/dist/skills/zon-ui/references/components/combobox.md +455 -0
  318. package/dist/skills/zon-ui/references/components/command.md +326 -0
  319. package/dist/skills/zon-ui/references/components/contact-form.md +562 -0
  320. package/dist/skills/zon-ui/references/components/context-menu.md +159 -0
  321. package/dist/skills/zon-ui/references/components/conversation.md +146 -0
  322. package/dist/skills/zon-ui/references/components/copy-button.md +162 -0
  323. package/dist/skills/zon-ui/references/components/crm.md +1022 -0
  324. package/dist/skills/zon-ui/references/components/dashboard.md +612 -0
  325. package/dist/skills/zon-ui/references/components/data-table.md +776 -0
  326. package/dist/skills/zon-ui/references/components/date-picker.md +444 -0
  327. package/dist/skills/zon-ui/references/components/dialog.md +335 -0
  328. package/dist/skills/zon-ui/references/components/direction.md +165 -0
  329. package/dist/skills/zon-ui/references/components/drawer.md +276 -0
  330. package/dist/skills/zon-ui/references/components/drawing.md +94 -0
  331. package/dist/skills/zon-ui/references/components/empty.md +225 -0
  332. package/dist/skills/zon-ui/references/components/feature-list.md +412 -0
  333. package/dist/skills/zon-ui/references/components/field.md +209 -0
  334. package/dist/skills/zon-ui/references/components/file-drop.md +234 -0
  335. package/dist/skills/zon-ui/references/components/filter-bar.md +485 -0
  336. package/dist/skills/zon-ui/references/components/form.md +970 -0
  337. package/dist/skills/zon-ui/references/components/graph.md +339 -0
  338. package/dist/skills/zon-ui/references/components/illustration.md +497 -0
  339. package/dist/skills/zon-ui/references/components/inbox.md +263 -0
  340. package/dist/skills/zon-ui/references/components/input-group.md +339 -0
  341. package/dist/skills/zon-ui/references/components/input.md +189 -0
  342. package/dist/skills/zon-ui/references/components/item.md +277 -0
  343. package/dist/skills/zon-ui/references/components/kanban.md +626 -0
  344. package/dist/skills/zon-ui/references/components/kbd.md +116 -0
  345. package/dist/skills/zon-ui/references/components/label.md +104 -0
  346. package/dist/skills/zon-ui/references/components/layout.md +291 -0
  347. package/dist/skills/zon-ui/references/components/lightbox.md +235 -0
  348. package/dist/skills/zon-ui/references/components/locale.md +279 -0
  349. package/dist/skills/zon-ui/references/components/logo.md +257 -0
  350. package/dist/skills/zon-ui/references/components/markdown-editor.md +558 -0
  351. package/dist/skills/zon-ui/references/components/mentions.md +512 -0
  352. package/dist/skills/zon-ui/references/components/menu.md +218 -0
  353. package/dist/skills/zon-ui/references/components/menubar.md +292 -0
  354. package/dist/skills/zon-ui/references/components/message.md +243 -0
  355. package/dist/skills/zon-ui/references/components/meter.md +105 -0
  356. package/dist/skills/zon-ui/references/components/money-input.md +333 -0
  357. package/dist/skills/zon-ui/references/components/native-select.md +197 -0
  358. package/dist/skills/zon-ui/references/components/navigation-menu.md +253 -0
  359. package/dist/skills/zon-ui/references/components/number-field.md +210 -0
  360. package/dist/skills/zon-ui/references/components/number-roll.md +175 -0
  361. package/dist/skills/zon-ui/references/components/onboarding.md +896 -0
  362. package/dist/skills/zon-ui/references/components/otp-field.md +166 -0
  363. package/dist/skills/zon-ui/references/components/pagination.md +109 -0
  364. package/dist/skills/zon-ui/references/components/pdf-viewer.md +177 -0
  365. package/dist/skills/zon-ui/references/components/phone-input.md +252 -0
  366. package/dist/skills/zon-ui/references/components/popover.md +176 -0
  367. package/dist/skills/zon-ui/references/components/preview-card.md +193 -0
  368. package/dist/skills/zon-ui/references/components/pricing.md +724 -0
  369. package/dist/skills/zon-ui/references/components/progress.md +92 -0
  370. package/dist/skills/zon-ui/references/components/prompt-input.md +307 -0
  371. package/dist/skills/zon-ui/references/components/pull-to-refresh.md +188 -0
  372. package/dist/skills/zon-ui/references/components/quote.md +115 -0
  373. package/dist/skills/zon-ui/references/components/radio-group.md +215 -0
  374. package/dist/skills/zon-ui/references/components/rating.md +260 -0
  375. package/dist/skills/zon-ui/references/components/reasoning.md +102 -0
  376. package/dist/skills/zon-ui/references/components/resizable.md +213 -0
  377. package/dist/skills/zon-ui/references/components/response.md +170 -0
  378. package/dist/skills/zon-ui/references/components/scheduler.md +732 -0
  379. package/dist/skills/zon-ui/references/components/scroll-area.md +122 -0
  380. package/dist/skills/zon-ui/references/components/select.md +351 -0
  381. package/dist/skills/zon-ui/references/components/separator.md +103 -0
  382. package/dist/skills/zon-ui/references/components/settings.md +793 -0
  383. package/dist/skills/zon-ui/references/components/shop.md +1715 -0
  384. package/dist/skills/zon-ui/references/components/sidebar.md +813 -0
  385. package/dist/skills/zon-ui/references/components/sign-in.md +1639 -0
  386. package/dist/skills/zon-ui/references/components/site-header.md +303 -0
  387. package/dist/skills/zon-ui/references/components/skeleton.md +256 -0
  388. package/dist/skills/zon-ui/references/components/slider.md +172 -0
  389. package/dist/skills/zon-ui/references/components/sortable.md +405 -0
  390. package/dist/skills/zon-ui/references/components/sources.md +106 -0
  391. package/dist/skills/zon-ui/references/components/spinner.md +222 -0
  392. package/dist/skills/zon-ui/references/components/stat.md +267 -0
  393. package/dist/skills/zon-ui/references/components/stepper.md +285 -0
  394. package/dist/skills/zon-ui/references/components/suggestions.md +146 -0
  395. package/dist/skills/zon-ui/references/components/swipe-actions.md +344 -0
  396. package/dist/skills/zon-ui/references/components/switch.md +160 -0
  397. package/dist/skills/zon-ui/references/components/table.md +999 -0
  398. package/dist/skills/zon-ui/references/components/tabs.md +258 -0
  399. package/dist/skills/zon-ui/references/components/tag.md +115 -0
  400. package/dist/skills/zon-ui/references/components/tags-input.md +216 -0
  401. package/dist/skills/zon-ui/references/components/textarea.md +95 -0
  402. package/dist/skills/zon-ui/references/components/theme-editor.md +3940 -0
  403. package/dist/skills/zon-ui/references/components/theme.md +362 -0
  404. package/dist/skills/zon-ui/references/components/time-field.md +222 -0
  405. package/dist/skills/zon-ui/references/components/timeline.md +285 -0
  406. package/dist/skills/zon-ui/references/components/tippy.md +243 -0
  407. package/dist/skills/zon-ui/references/components/toast.md +220 -0
  408. package/dist/skills/zon-ui/references/components/toggle-group.md +261 -0
  409. package/dist/skills/zon-ui/references/components/toggle.md +167 -0
  410. package/dist/skills/zon-ui/references/components/tool-call.md +146 -0
  411. package/dist/skills/zon-ui/references/components/toolbar.md +260 -0
  412. package/dist/skills/zon-ui/references/components/tooltip.md +172 -0
  413. package/dist/skills/zon-ui/references/components/tour.md +423 -0
  414. package/dist/skills/zon-ui/references/components/tree.md +481 -0
  415. package/dist/skills/zon-ui/references/components/typography.md +347 -0
  416. package/dist/skills/zon-ui/references/components/video-player.md +386 -0
  417. package/dist/skills/zon-ui/references/marketing.md +467 -0
  418. package/dist/skills/zon-ui/references/motion.md +455 -0
  419. package/dist/skills/zon-ui/references/recipes.md +1232 -0
  420. package/dist/skills/zon-ui/references/tokens.md +866 -0
  421. package/dist/sources/accordion.css +4 -0
  422. package/dist/sources/action-sheet.css +11 -0
  423. package/dist/sources/alert-dialog.css +6 -0
  424. package/dist/sources/alert.css +3 -0
  425. package/dist/sources/app-bar.css +14 -0
  426. package/dist/sources/ascii-field.css +3 -0
  427. package/dist/sources/aspect-ratio.css +3 -0
  428. package/dist/sources/audio-player.css +20 -0
  429. package/dist/sources/avatar.css +3 -0
  430. package/dist/sources/badge.css +3 -0
  431. package/dist/sources/bottom-nav.css +9 -0
  432. package/dist/sources/breadcrumb.css +14 -0
  433. package/dist/sources/button-group.css +3 -0
  434. package/dist/sources/button.css +9 -0
  435. package/dist/sources/calendar.css +13 -0
  436. package/dist/sources/card.css +3 -0
  437. package/dist/sources/carousel.css +11 -0
  438. package/dist/sources/chart.css +5 -0
  439. package/dist/sources/checkbox.css +6 -0
  440. package/dist/sources/code-block.css +13 -0
  441. package/dist/sources/collapsible.css +4 -0
  442. package/dist/sources/color-picker.css +13 -0
  443. package/dist/sources/combobox.css +13 -0
  444. package/dist/sources/command.css +13 -0
  445. package/dist/sources/context-menu.css +12 -0
  446. package/dist/sources/conversation.css +10 -0
  447. package/dist/sources/copy-button.css +10 -0
  448. package/dist/sources/data-table.css +27 -0
  449. package/dist/sources/date-picker.css +20 -0
  450. package/dist/sources/dialog.css +9 -0
  451. package/dist/sources/direction.css +2 -0
  452. package/dist/sources/drawer.css +9 -0
  453. package/dist/sources/drawing.css +5 -0
  454. package/dist/sources/empty.css +3 -0
  455. package/dist/sources/feature-list.css +4 -0
  456. package/dist/sources/field.css +4 -0
  457. package/dist/sources/file-drop.css +15 -0
  458. package/dist/sources/filter-bar.css +30 -0
  459. package/dist/sources/form.css +4 -0
  460. package/dist/sources/graph.css +19 -0
  461. package/dist/sources/illustration.css +28 -0
  462. package/dist/sources/input-group.css +7 -0
  463. package/dist/sources/input.css +3 -0
  464. package/dist/sources/item.css +4 -0
  465. package/dist/sources/kbd.css +5 -0
  466. package/dist/sources/label.css +3 -0
  467. package/dist/sources/layout.css +3 -0
  468. package/dist/sources/lightbox.css +33 -0
  469. package/dist/sources/locale.css +2 -0
  470. package/dist/sources/logo.css +4 -0
  471. package/dist/sources/markdown-editor.css +41 -0
  472. package/dist/sources/mentions.css +13 -0
  473. package/dist/sources/menu.css +11 -0
  474. package/dist/sources/menubar.css +14 -0
  475. package/dist/sources/message.css +16 -0
  476. package/dist/sources/meter.css +4 -0
  477. package/dist/sources/money-input.css +10 -0
  478. package/dist/sources/native-select.css +4 -0
  479. package/dist/sources/navigation-menu.css +8 -0
  480. package/dist/sources/number-field.css +8 -0
  481. package/dist/sources/number-roll.css +6 -0
  482. package/dist/sources/otp-field.css +5 -0
  483. package/dist/sources/pagination.css +11 -0
  484. package/dist/sources/pdf-viewer.css +30 -0
  485. package/dist/sources/phone-input.css +20 -0
  486. package/dist/sources/popover.css +7 -0
  487. package/dist/sources/preview-card.css +7 -0
  488. package/dist/sources/progress.css +4 -0
  489. package/dist/sources/prompt-input.css +15 -0
  490. package/dist/sources/pull-to-refresh.css +14 -0
  491. package/dist/sources/quote.css +3 -0
  492. package/dist/sources/radio-group.css +5 -0
  493. package/dist/sources/rating.css +6 -0
  494. package/dist/sources/reasoning.css +6 -0
  495. package/dist/sources/resizable.css +4 -0
  496. package/dist/sources/response.css +16 -0
  497. package/dist/sources/scheduler.css +44 -0
  498. package/dist/sources/scroll-area.css +3 -0
  499. package/dist/sources/select.css +12 -0
  500. package/dist/sources/separator.css +3 -0
  501. package/dist/sources/sidebar.css +19 -0
  502. package/dist/sources/site-header.css +15 -0
  503. package/dist/sources/skeleton.css +3 -0
  504. package/dist/sources/slider.css +6 -0
  505. package/dist/sources/sortable.css +12 -0
  506. package/dist/sources/sources.css +6 -0
  507. package/dist/sources/spinner.css +6 -0
  508. package/dist/sources/stat.css +9 -0
  509. package/dist/sources/stepper.css +6 -0
  510. package/dist/sources/suggestions.css +10 -0
  511. package/dist/sources/swipe-actions.css +20 -0
  512. package/dist/sources/switch.css +5 -0
  513. package/dist/sources/table.css +7 -0
  514. package/dist/sources/tabs.css +5 -0
  515. package/dist/sources/tag.css +3 -0
  516. package/dist/sources/tags-input.css +6 -0
  517. package/dist/sources/textarea.css +3 -0
  518. package/dist/sources/theme.css +13 -0
  519. package/dist/sources/time-field.css +7 -0
  520. package/dist/sources/timeline.css +7 -0
  521. package/dist/sources/tippy.css +6 -0
  522. package/dist/sources/toast.css +6 -0
  523. package/dist/sources/toggle-group.css +5 -0
  524. package/dist/sources/toggle.css +3 -0
  525. package/dist/sources/tool-call.css +16 -0
  526. package/dist/sources/toolbar.css +14 -0
  527. package/dist/sources/tooltip.css +6 -0
  528. package/dist/sources/tour.css +14 -0
  529. package/dist/sources/tree.css +6 -0
  530. package/dist/sources/typography.css +4 -0
  531. package/dist/sources/video-player.css +21 -0
  532. package/dist/styles/ai.css +3 -0
  533. package/dist/styles/brand.css +98 -0
  534. package/dist/styles/core.css +266 -0
  535. package/dist/styles/editor.css +3 -0
  536. package/dist/styles/expressive.css +75 -77
  537. package/dist/styles/fonts.css +61 -117
  538. package/dist/styles/graph.css +4 -0
  539. package/dist/styles/illustration.css +4 -0
  540. package/dist/styles/index.css +11 -193
  541. package/dist/styles/material.css +177 -31
  542. package/dist/styles/parts/ai.css +20 -14
  543. package/dist/styles/parts/brand.css +2 -2
  544. package/dist/styles/parts/controls.css +51 -38
  545. package/dist/styles/parts/data.css +43 -11
  546. package/dist/styles/parts/editor.css +372 -0
  547. package/dist/styles/parts/feedback.css +75 -15
  548. package/dist/styles/parts/foundations.css +12 -7
  549. package/dist/styles/parts/graph.css +25 -9
  550. package/dist/styles/parts/inputs.css +172 -9
  551. package/dist/styles/parts/isometric.css +6 -5
  552. package/dist/styles/parts/navigation.css +237 -25
  553. package/dist/styles/parts/overlays.css +110 -8
  554. package/dist/styles/parts/pdf.css +15 -9
  555. package/dist/styles/pdf.css +3 -0
  556. package/dist/styles/prose.css +3 -0
  557. package/dist/styles/tokens.css +105 -15
  558. package/dist/theme.d.ts +1 -0
  559. package/dist/theme.js +5 -0
  560. package/dist/vite.d.ts +48 -59
  561. package/dist/vite.js +54 -21
  562. package/package.json +69 -2
@@ -0,0 +1,14 @@
1
+ /* @zonsh/ui — the files tour is built from, for Tailwind to scan. */
2
+ @source "../components/_overlay.js";
3
+ @source "../components/button.js";
4
+ @source "../components/locale.js";
5
+ @source "../components/spinner.js";
6
+ @source "../components/tour.js";
7
+ @source "../lib/cn.js";
8
+ @source "../lib/collapse-row.js";
9
+ @source "../lib/icons.js";
10
+ @source "../lib/logo-geometry.js";
11
+ @source "../lib/merge-refs.js";
12
+ @source "../lib/motion.js";
13
+ @source "../lib/portal-container.js";
14
+ @source "../lib/room.js";
@@ -0,0 +1,6 @@
1
+ /* @zonsh/ui — the files tree is built from, for Tailwind to scan. */
2
+ @source "../components/tree.js";
3
+ @source "../lib/cn.js";
4
+ @source "../lib/icons.js";
5
+ @source "../lib/merge-refs.js";
6
+ @source "../lib/platform.js";
@@ -0,0 +1,4 @@
1
+ /* @zonsh/ui — the files typography is built from, for Tailwind to scan. */
2
+ @source "../components/typography.js";
3
+ @source "../lib/cn.js";
4
+ @source "../lib/merge-refs.js";
@@ -0,0 +1,21 @@
1
+ /* @zonsh/ui — the files video-player is built from, for Tailwind to scan. */
2
+ @source "../components/_media.js";
3
+ @source "../components/_overlay.js";
4
+ @source "../components/button.js";
5
+ @source "../components/direction.js";
6
+ @source "../components/kbd.js";
7
+ @source "../components/locale.js";
8
+ @source "../components/menu.js";
9
+ @source "../components/skeleton.js";
10
+ @source "../components/spinner.js";
11
+ @source "../components/tooltip.js";
12
+ @source "../components/video-player.js";
13
+ @source "../lib/cn.js";
14
+ @source "../lib/collapse-row.js";
15
+ @source "../lib/icons.js";
16
+ @source "../lib/logo-geometry.js";
17
+ @source "../lib/merge-refs.js";
18
+ @source "../lib/motion.js";
19
+ @source "../lib/platform.js";
20
+ @source "../lib/portal-container.js";
21
+ @source "../lib/room.js";
@@ -0,0 +1,3 @@
1
+ /* @zonsh/ui — Prompt Input, Reasoning and Response. Response renders code as a Code Block, so import prose.css with it.
2
+ Loaded by styles.css; import it beside core.css when you load the styles in parts. */
3
+ @import "./parts/ai.css";
@@ -0,0 +1,98 @@
1
+ /*
2
+ * @zonsh/ui/brand.css — zon.sh's own look, opt-in. Import it after the library's styles:
3
+ *
4
+ * @import "tailwindcss";
5
+ * @import "@zonsh/ui/styles.css";
6
+ * @import "@zonsh/ui/brand.css";
7
+ *
8
+ * `styles.css` alone is the design system: every component, its material and its tokens, on a
9
+ * plain --background page. This adds what makes a page zon.sh's rather than any app's:
10
+ *
11
+ * - the page ground: still grain fixed to the viewport, under a faint light from above, on
12
+ * html and body; the bars that stand on the ground (surface-page, SiteHeader, BottomNav)
13
+ * take the same grain and light, so they stay indistinguishable from the page;
14
+ * - html past the page's edges in --page-tone, the ground's average, as the browser's bars;
15
+ * - the glow orb and the starfield's twinkle (parts/brand.css).
16
+ */
17
+
18
+ @import "./parts/brand.css";
19
+
20
+ /* ── The ground's light and grain, per theme ───────────────────────────────────
21
+ Unlayered, like tokens.css, and later, so these win over its neutral values (no light, no
22
+ grain). Each scheme sets them again: they are worked out from that scheme's --grain-opacity. */
23
+
24
+ :root,
25
+ .theme-light {
26
+ /* None on a light page: white on white. */
27
+ --page-glow: transparent;
28
+ --page-grain-opacity: 0.1;
29
+ --page-grain-screen: calc(var(--grain-opacity) * 0.35);
30
+ }
31
+
32
+ .dark,
33
+ [data-theme="dark"],
34
+ .theme-dark,
35
+ .theme-night {
36
+ --page-glow: rgb(255 255 255 / 0.035);
37
+ --page-grain-opacity: calc(var(--grain-opacity) * 1.5);
38
+ --page-grain-screen: calc(var(--grain-opacity) * 0.35);
39
+ }
40
+
41
+ @layer base {
42
+ html {
43
+ /* What the browser shows past the page's edges: the ground as one flat colour, the same the
44
+ browser's bars take (theme-color). The ground itself is a layer of its own (below). */
45
+ background-color: var(--page-tone);
46
+ }
47
+
48
+ /*
49
+ * The page ground — zon.sh's resting background: the grain, still, fixed to the viewport behind
50
+ * everything, under a faint light from above (--page-glow). The layers sit at z-index -1 in the
51
+ * root stacking context, so they texture the ground and never a card, a field or the text,
52
+ * which all paint above them. Still on purpose: a moving page would never let the eye rest.
53
+ * Overlay on dark grounds; multiply on light ones, where overlay shows nothing
54
+ * (--page-grain-blend).
55
+ *
56
+ * The ground under the grain is a layer of its own too (html::before), and all three reach a
57
+ * tenth of the window below its bottom edge. iOS Safari uncovers a strip there as its toolbar
58
+ * shrinks, and the root's background is not something the grain can blend with: blending with
59
+ * nothing, it showed as bare, bright noise. Only downwards, so the grain's tiles still start at
60
+ * the window's corner, where a scrolled SiteHeader's grain lines up with them. Past all of it
61
+ * the browser shows html's background, --page-tone, the same flat colour its bars take.
62
+ *
63
+ * Anything opaque in --background between the body and the content hides it, so page-level
64
+ * wrappers stay transparent. Opt out of the grain with `body::before, body::after { content:
65
+ * none }`; the ground and its light stay.
66
+ */
67
+ html::before {
68
+ content: "";
69
+ position: fixed;
70
+ inset: 0 0 -10%;
71
+ z-index: -1;
72
+ pointer-events: none;
73
+ background-color: var(--background);
74
+ /* The light a tenth of the window above it, 110% × 65% of the window, as in a SiteHeader's
75
+ ground: in this box, 1.1 windows tall, that is -9.09% and 59.09% of its height. */
76
+ background-image: radial-gradient(110% 59.09% at 50% -9.09%, var(--page-glow), transparent 60%);
77
+ }
78
+ body::before,
79
+ body::after {
80
+ content: "";
81
+ position: fixed;
82
+ inset: 0 0 -10%;
83
+ z-index: -1;
84
+ pointer-events: none;
85
+ background-image: var(--grain-noise);
86
+ background-size: 200px auto;
87
+ }
88
+ body::before {
89
+ mix-blend-mode: var(--page-grain-blend);
90
+ opacity: var(--page-grain-opacity);
91
+ }
92
+ body::after {
93
+ mix-blend-mode: screen;
94
+ opacity: var(--page-grain-screen);
95
+ /* Offset, so the two layers never line up into a visible tile. */
96
+ background-position: 97px 61px;
97
+ }
98
+ }
@@ -0,0 +1,266 @@
1
+ /*
2
+ * @zonsh/ui — the core stylesheet: tokens, the Licht faces, the materials, the theme and the
3
+ * styles of every component but the few that bring their own part (below). `styles.css` is this
4
+ * plus all of those parts, and tells Tailwind to scan the whole package.
5
+ *
6
+ * To load less, import the core, the parts you use and, in place of scanning the package, the
7
+ * sources of the components you import (they name each file the component is built from):
8
+ *
9
+ * @import "tailwindcss";
10
+ * @import "@zonsh/ui/styles/core.css";
11
+ * @import "@zonsh/ui/styles/ai.css"; (Prompt Input, Reasoning, Response)
12
+ * @import "@zonsh/ui/sources/button.css";
13
+ * @import "@zonsh/ui/sources/table.css";
14
+ *
15
+ * Parts: prose.css (Prose, Code Block), ai.css, graph.css, pdf.css, editor.css (Markdown Editor),
16
+ * illustration.css.
17
+ *
18
+ * zon.sh's own look — the grain and light on the page ground, its entrance keyframes — is not part
19
+ * of the system: `@zonsh/ui/brand.css`, imported after, opts in.
20
+ */
21
+
22
+ @import "./tokens.css";
23
+ @import "./fonts.css";
24
+ @import "./material.css";
25
+ @import "./expressive.css";
26
+ @import "./parts/controls.css";
27
+ @import "./parts/overlays.css";
28
+ @import "./parts/navigation.css";
29
+ @import "./parts/feedback.css";
30
+ @import "./parts/data.css";
31
+ @import "./parts/inputs.css";
32
+
33
+ @custom-variant dark (&:where(.dark, .dark *, [data-theme="dark"], [data-theme="dark"] *, .theme-dark, .theme-dark *, .theme-night, .theme-night *));
34
+
35
+ @theme inline {
36
+ --color-background: var(--background);
37
+ --color-foreground: var(--foreground);
38
+ --color-foreground-soft: var(--foreground-soft);
39
+ --color-muted-foreground: var(--muted-foreground);
40
+ --color-card: var(--card);
41
+ --color-card-foreground: var(--card-foreground);
42
+ --color-popover: var(--popover);
43
+ --color-popover-foreground: var(--popover-foreground);
44
+ --color-primary: var(--primary);
45
+ --color-primary-foreground: var(--primary-foreground);
46
+ --color-secondary: var(--secondary);
47
+ --color-secondary-foreground: var(--secondary-foreground);
48
+ --color-muted: var(--muted);
49
+ --color-accent: var(--accent);
50
+ --color-accent-foreground: var(--accent-foreground);
51
+ --color-destructive: var(--destructive);
52
+ --color-success: var(--success);
53
+ --color-warning: var(--warning);
54
+ --color-info: var(--info);
55
+ --color-tone-blue: var(--tone-blue);
56
+ --color-tone-aqua: var(--tone-aqua);
57
+ --color-tone-violet: var(--tone-violet);
58
+ --color-tone-magenta: var(--tone-magenta);
59
+ --color-tone-orange: var(--tone-orange);
60
+ --color-tone-lime: var(--tone-lime);
61
+ --color-border: var(--border);
62
+ --color-input: var(--input);
63
+ --color-ring: var(--ring);
64
+
65
+ --color-control-surface: var(--control-surface);
66
+ --color-control-hover: var(--control-hover);
67
+ --color-control-pressed: var(--control-pressed);
68
+ --color-primary-fill-pressed: var(--primary-fill-pressed);
69
+ --color-control-edge: var(--control-edge);
70
+ --color-control-highlight: var(--control-highlight);
71
+ --color-control-inner-edge: var(--control-inner-edge);
72
+ --color-control-menu: var(--control-menu);
73
+ --color-control-muted: var(--control-muted);
74
+ --color-control-focus: var(--control-focus);
75
+ --color-field-surface: var(--field-surface);
76
+ --color-field-edge: var(--field-edge);
77
+ --color-grid-line: var(--grid-line);
78
+ --color-grid-bright: var(--grid-bright);
79
+ --color-guide: var(--guide);
80
+
81
+ --color-chart-1: var(--chart-1);
82
+ --color-chart-2: var(--chart-2);
83
+ --color-chart-3: var(--chart-3);
84
+ --color-chart-4: var(--chart-4);
85
+ --color-chart-5: var(--chart-5);
86
+
87
+ --font-heading: var(--font-heading);
88
+ --font-body: var(--font-body);
89
+ --font-sans: var(--font-body);
90
+ --font-mono: var(--font-mono);
91
+
92
+ --radius-button: var(--radius-button);
93
+ --radius-control: var(--radius-control);
94
+ /* A textarea follows the control radius up to zon's own 10px, so the resize handle in its
95
+ corner stays inside the box on a rounder theme. */
96
+ --radius-textarea: min(var(--radius-control), 10px);
97
+ --radius-item: var(--radius-item);
98
+ --radius-checkbox: var(--radius-checkbox);
99
+ --radius-card: var(--radius-card);
100
+
101
+ /*
102
+ * The material's shadows as utilities (`shadow-raised`, `shadow-checked` …). Inlined, so the
103
+ * var() colours resolve where they are used and stay right inside .theme-dark regions.
104
+ * Never retype these as shadow-[…]: use the utility.
105
+ */
106
+ --shadow-raised:
107
+ 0 0 0 1px var(--control-edge), inset 0 1px 0 var(--control-highlight), inset 0 0 0 1px var(--control-inner-edge);
108
+ --shadow-raised-pressed:
109
+ 0 0 0 1px var(--control-edge), inset 0 2px 4px #0000002e, inset 0 0 0 1px var(--control-inner-edge);
110
+ --shadow-raised-current:
111
+ 0 0 0 1px var(--control-focus), inset 0 1px 0 var(--control-highlight), inset 0 0 0 1px var(--control-inner-edge);
112
+ --shadow-key:
113
+ 0 0 0 1px var(--control-edge), inset 0 1px 0 var(--control-highlight), inset 0 -1px 0 var(--control-inner-edge);
114
+ --shadow-checked: 0 0 0 1px var(--control-edge), inset 0 2px 3px #fff3, inset 0 -2px 3px #0000001f;
115
+ --shadow-thumb: 0 0 0 1px var(--control-edge), 0 1px 3px #00000040, inset 0 1px 0 var(--control-highlight);
116
+ --shadow-field: inset 0 1px 2px var(--field-inset), 0 1px 0 var(--control-highlight);
117
+ --shadow-highlight: inset 0 1px 0 var(--control-highlight);
118
+ --shadow-invalid: 0 0 0 3px color-mix(in srgb, var(--destructive) 18%, transparent);
119
+ --shadow-overlay: inset 0 1px 0 var(--control-highlight), 0 12px 32px #0003, 0 2px 6px #0000001a;
120
+ --shadow-card: inset 0 1px 0 var(--control-highlight), 0 4px 16px #0000000a;
121
+
122
+ /* `ease-brand` is an older name for `ease-(--ease)`, kept for code that uses it. Write ease-(--ease). */
123
+ --ease-brand: var(--ease);
124
+ --container-page: var(--container);
125
+
126
+
127
+ /* Type that follows the theme's density (--type, tokens.css): `text-13` is 13px at zon's default,
128
+ a little less in a dense theme and a little more in a roomy one, never under 10px. Write these,
129
+ not text-[13px]. text-base stays 16px: a touch screen zooms into a smaller field. */
130
+ --text-11: max(10px, calc(11px * var(--type)));
131
+ --text-12: max(10px, calc(12px * var(--type)));
132
+ --text-13: calc(13px * var(--type));
133
+ --text-14: calc(14px * var(--type));
134
+ --text-15: calc(15px * var(--type));
135
+ --text-16: calc(16px * var(--type));
136
+ --text-17: calc(17px * var(--type));
137
+ --text-18: calc(18px * var(--type));
138
+ --text-20: calc(20px * var(--type));
139
+ --text-22: calc(22px * var(--type));
140
+ --text-24: calc(24px * var(--type));
141
+ --text-26: calc(26px * var(--type));
142
+ --text-28: calc(28px * var(--type));
143
+ --text-30: calc(30px * var(--type));
144
+ --text-32: calc(32px * var(--type));
145
+ --text-34: calc(34px * var(--type));
146
+ --text-36: calc(36px * var(--type));
147
+ --text-xs: max(10px, calc(0.75rem * var(--type)));
148
+ --text-sm: calc(0.875rem * var(--type));
149
+ --text-lg: calc(1.125rem * var(--type));
150
+ --text-xl: calc(1.25rem * var(--type));
151
+ --text-2xl: calc(1.5rem * var(--type));
152
+
153
+ --text-body: calc(17px * var(--type));
154
+ --text-body--line-height: 1.6;
155
+ --text-eyebrow: max(10px, calc(12px * var(--type)));
156
+ --text-eyebrow--line-height: 1.4;
157
+ }
158
+
159
+ @layer base {
160
+ /* Density, inside the library's own parts: every Tailwind step (p-3, gap-2, size-4, w-72 …) a
161
+ component draws with is Tailwind's step times --space, and its type follows at half the rate
162
+ (--type). --space is --density in a dense theme (0.79 at 30px controls), and grows only as fast
163
+ as the type in a roomy one (1.105 at 46px, not 1.21): the control heights carry a spacious
164
+ theme's extra room, and padding, gaps and icons keep step with the text instead of padding it
165
+ out. Set on every part, so a theme scoped to one region reaches the parts inside it.
166
+ Outside the parts, your own p-2 keeps its meaning. */
167
+ [data-slot] {
168
+ --type: calc(1 + (var(--density) - 1) / 2);
169
+ --space: min(var(--density), var(--type));
170
+ --spacing: calc(var(--zon-spacing) * var(--space));
171
+ }
172
+ /* A themed area (ThemeScope) and the place its popups portal to are not parts: your own p-2
173
+ inside one keeps Tailwind's step, as on the page. The parts inside take the area's density. */
174
+ [data-slot="theme-scope"],
175
+ [data-slot="theme-scope-portal"] {
176
+ --spacing: var(--zon-spacing);
177
+ }
178
+
179
+ html {
180
+ -webkit-text-size-adjust: 100%;
181
+ text-rendering: optimizeLegibility;
182
+ -webkit-font-smoothing: antialiased;
183
+ -moz-osx-font-smoothing: grayscale;
184
+ /* The page ground: --background, plain. brand.css (zon.sh's look) puts its grain and light
185
+ over it and shows --page-tone past the page's edges. */
186
+ background-color: var(--background);
187
+ /* No grey flash over whatever is tapped on a phone: every control has its own pressed state. */
188
+ -webkit-tap-highlight-color: transparent;
189
+ }
190
+ /* A tap acts at once: no wait to rule out a double-tap zoom on the things people press. */
191
+ button,
192
+ a,
193
+ [role="button"] {
194
+ touch-action: manipulation;
195
+ }
196
+ body {
197
+ color: var(--foreground);
198
+ font-family: var(--font-body);
199
+ font-size: calc(17px * var(--type));
200
+ line-height: 1.6;
201
+ }
202
+ h1,
203
+ h2,
204
+ h3,
205
+ h4 {
206
+ font-family: var(--font-heading);
207
+ font-weight: 300;
208
+ font-synthesis: none;
209
+ font-kerning: normal;
210
+ letter-spacing: -0.02em;
211
+ text-wrap: balance;
212
+ }
213
+ /* Licht is set Light only, and licht has real heavier cuts the browser would otherwise
214
+ pick for a bold word in a headline: <b> and <strong> there keep the headline's weight. */
215
+ :where(h1, h2, h3, h4, .display, .font-heading) :where(b, strong) {
216
+ font-weight: inherit;
217
+ }
218
+ ::selection {
219
+ background-color: var(--foreground);
220
+ color: var(--background);
221
+ }
222
+ /* Native scrollbars (the page, tables, overflow-auto panels) echo ScrollArea: a 4px round
223
+ --field-edge thumb on a transparent track, no arrow buttons. Chrome, Edge and Safari draw
224
+ that from the ::-webkit-scrollbar parts — Chrome ignores them, and draws its own arrows,
225
+ once an element sets scrollbar-width or scrollbar-color, so those are left to Firefox,
226
+ which has no arrows. ScrollArea hides all of these and draws its own. */
227
+ @supports selector(::-webkit-scrollbar) {
228
+ ::-webkit-scrollbar {
229
+ width: 10px;
230
+ height: 10px;
231
+ }
232
+ ::-webkit-scrollbar-track,
233
+ ::-webkit-scrollbar-corner {
234
+ background: transparent;
235
+ }
236
+ /* A rounded scroller sets --scrollbar-inset to its radius, so the bar starts and ends where
237
+ the corners do instead of running over them. */
238
+ ::-webkit-scrollbar-track:vertical {
239
+ margin-block: var(--scrollbar-inset, 0px);
240
+ }
241
+ ::-webkit-scrollbar-track:horizontal {
242
+ margin-inline: var(--scrollbar-inset, 0px);
243
+ }
244
+ ::-webkit-scrollbar-thumb {
245
+ border: 3px solid transparent;
246
+ border-radius: 9999px;
247
+ background: var(--field-edge) padding-box;
248
+ }
249
+ ::-webkit-scrollbar-thumb:hover {
250
+ background-color: var(--control-focus);
251
+ }
252
+ ::-webkit-scrollbar-button {
253
+ display: none;
254
+ }
255
+ }
256
+ @supports not selector(::-webkit-scrollbar) {
257
+ * {
258
+ scrollbar-width: thin;
259
+ scrollbar-color: var(--field-edge) transparent;
260
+ }
261
+ }
262
+ :focus-visible {
263
+ outline: var(--focus-width) solid var(--control-focus);
264
+ outline-offset: 0;
265
+ }
266
+ }
@@ -0,0 +1,3 @@
1
+ /* @zonsh/ui — Markdown Editor (@zonsh/ui/markdown-editor): the rich view's text and mention chips.
2
+ Loaded by styles.css; import it beside core.css when you load the styles in parts. */
3
+ @import "./parts/editor.css";
@@ -1,7 +1,8 @@
1
1
  /*
2
- * Expressive layer — the drawing-board vocabulary shared by zon.sh and zon.sh:
3
- * grain, blueprint grids, dot fields, rails, crosshair marks, and the motion that
4
- * drives scroll-linked illustrations.
2
+ * Expressive layer — the drawing-board vocabulary the Layout components draw with: grain,
3
+ * blueprint grids, dot fields, rails and crosshair marks. Utilities only: nothing here paints a
4
+ * page until a class asks for it. zon.sh's own page ground (the grain and light on every page)
5
+ * is in brand.css, opt-in.
5
6
  *
6
7
  * Everything here is decorative: pointer-events none, aria-hidden at the call site,
7
8
  * and static under prefers-reduced-motion.
@@ -14,60 +15,11 @@
14
15
  /* The film-grain tile zon.sh uses: grey fractal noise, 200px, seamless. */
15
16
  --grain-noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.68' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
16
17
  }
17
-
18
- /*
19
- * The page ground, on every page by default — zon.sh's resting background: the grain, still,
20
- * fixed to the viewport behind everything, under a faint light from above (--page-glow). The
21
- * two layers sit at z-index -1 in the root stacking context, so they texture the ground and
22
- * never a card, a field or the text, which all paint above them. Still on purpose: a moving
23
- * page would never let the eye rest. Overlay on dark grounds, as zon.sh; multiply on light
24
- * ones, where overlay shows nothing (--page-grain-blend).
25
- *
26
- * The ground under the grain is a layer of its own too (html::before), and all three reach a
27
- * tenth of the window below its bottom edge. iOS Safari uncovers a strip there as its toolbar
28
- * shrinks, and the root's background is not something the grain can blend with: blending with
29
- * nothing, it showed as bare, bright noise. Only downwards, so the grain's tiles still start at
30
- * the window's corner, where a scrolled SiteHeader's grain lines up with them. Past all of it
31
- * the browser shows html's background, --page-tone, the same flat colour its bars take.
32
- *
33
- * Anything opaque in --background between the body and the content hides it, so page-level
34
- * wrappers stay transparent. Opt out of the grain with `body::before, body::after { content:
35
- * none }`; the ground and its light stay.
36
- */
37
- html::before {
38
- content: "";
39
- position: fixed;
40
- inset: 0 0 -10%;
41
- z-index: -1;
42
- pointer-events: none;
43
- background-color: var(--background);
44
- /* The light a tenth of the window above it, 110% × 65% of the window, as in a SiteHeader's
45
- ground: in this box, 1.1 windows tall, that is -9.09% and 59.09% of its height. */
46
- background-image: radial-gradient(110% 59.09% at 50% -9.09%, var(--page-glow), transparent 60%);
47
- }
48
- body::before,
49
- body::after {
50
- content: "";
51
- position: fixed;
52
- inset: 0 0 -10%;
53
- z-index: -1;
54
- pointer-events: none;
55
- background-image: var(--grain-noise);
56
- background-size: 200px auto;
57
- }
58
- body::before {
59
- mix-blend-mode: var(--page-grain-blend);
60
- opacity: var(--page-grain-opacity);
61
- }
62
- body::after {
63
- mix-blend-mode: screen;
64
- opacity: calc(var(--grain-opacity) * 0.35);
65
- /* Offset, so the two layers never line up into a visible tile. */
66
- background-position: 97px 61px;
67
- }
68
18
  }
69
19
 
70
- /* The moving grain: an overlay for large or dark expressive regions (`<Grain />`). */
20
+ /* The moving grain: an overlay for large or dark expressive regions (`<Grain />`). It moves only
21
+ on a desktop — a fine pointer that hovers, 48rem wide, motion allowed: a phone's backdrop stays
22
+ still (a moving full-screen layer costs a phone's battery, and it is held close to the eye). */
71
23
  @utility grain {
72
24
  pointer-events: none;
73
25
  position: absolute;
@@ -81,7 +33,6 @@
81
33
  inset: -40%;
82
34
  background-image: var(--grain-noise);
83
35
  background-size: 200px auto;
84
- animation: ep-grain 0.8s steps(5) infinite;
85
36
  }
86
37
  &::before {
87
38
  mix-blend-mode: overlay;
@@ -90,28 +41,38 @@
90
41
  &::after {
91
42
  mix-blend-mode: screen;
92
43
  opacity: calc(var(--grain-opacity) * 0.35);
93
- animation-delay: -0.4s;
94
44
  }
95
- /* Still grain, for a picture rather than a region: a sheet in a carousel or a grid. */
96
- &[data-still]::before,
97
- &[data-still]::after {
98
- animation: none;
99
- }
100
- @media (prefers-reduced-motion: reduce) {
101
- &::before,
102
- &::after {
103
- animation: none;
45
+ @media (hover: hover) and (pointer: fine) and (min-width: 48rem) and (prefers-reduced-motion: no-preference) {
46
+ /* Still grain, for a picture rather than a region: a sheet in a carousel or a grid. */
47
+ &:not([data-still])::before,
48
+ &:not([data-still])::after {
49
+ animation: ep-grain 0.8s steps(5) infinite;
50
+ }
51
+ &:not([data-still])::after {
52
+ animation-delay: -0.4s;
104
53
  }
105
54
  }
106
55
  }
107
56
 
108
57
  @keyframes ep-grain {
109
- 0% { transform: translate(0); }
110
- 20% { transform: translate(-6%, 4%); }
111
- 40% { transform: translate(5%, -7%); }
112
- 60% { transform: translate(-3%, 8%); }
113
- 80% { transform: translate(7%, 2%); }
114
- 100% { transform: translate(0); }
58
+ 0% {
59
+ transform: translate(0);
60
+ }
61
+ 20% {
62
+ transform: translate(-6%, 4%);
63
+ }
64
+ 40% {
65
+ transform: translate(5%, -7%);
66
+ }
67
+ 60% {
68
+ transform: translate(-3%, 8%);
69
+ }
70
+ 80% {
71
+ transform: translate(7%, 2%);
72
+ }
73
+ 100% {
74
+ transform: translate(0);
75
+ }
115
76
  }
116
77
 
117
78
  /* ── Blueprint grid (lights up under the pointer when data-lit="true") ───────── */
@@ -134,10 +95,14 @@
134
95
  z-index: -1;
135
96
  pointer-events: none;
136
97
  opacity: 0;
137
- transition: opacity 0.7s var(--ease);
98
+ transition: opacity var(--duration-settle) var(--ease);
138
99
  }
139
100
  &::before {
140
- background-image: radial-gradient(circle 380px at var(--mx, 70%) var(--my, 30%), var(--glow), transparent 70%);
101
+ background-image: radial-gradient(
102
+ circle 380px at var(--mx, 70%) var(--my, 30%),
103
+ var(--glow),
104
+ transparent 70%
105
+ );
141
106
  }
142
107
  &::after {
143
108
  background-image:
@@ -184,7 +149,36 @@
184
149
  }
185
150
  }
186
151
 
187
- /* ── Reveal (scroll-in) ────────────────────────────────────────────────────── */
152
+ /* ── Corner marks: the four crosshairs of a ruled frame, without extra markup ─── */
153
+
154
+ /* For a square region whose own 1px border is the frame (a bento sheet, a list): an 11px
155
+ crosshair on each outer corner, its lines on the border's own pixels, in muted-foreground. Uses ::after. */
156
+ @utility crosshair-corners {
157
+ position: relative;
158
+
159
+ &::after {
160
+ content: "";
161
+ position: absolute;
162
+ inset: -5px;
163
+ z-index: 1;
164
+ pointer-events: none;
165
+ --m: var(--muted-foreground);
166
+ background:
167
+ linear-gradient(var(--m), var(--m)) 0 5px / 11px 1px no-repeat,
168
+ linear-gradient(var(--m), var(--m)) 5px 0 / 1px 11px no-repeat,
169
+ linear-gradient(var(--m), var(--m)) 100% 5px / 11px 1px no-repeat,
170
+ linear-gradient(var(--m), var(--m)) calc(100% - 5px) 0 / 1px 11px no-repeat,
171
+ linear-gradient(var(--m), var(--m)) 0 calc(100% - 5px) / 11px 1px no-repeat,
172
+ linear-gradient(var(--m), var(--m)) 5px 100% / 1px 11px no-repeat,
173
+ linear-gradient(var(--m), var(--m)) 100% calc(100% - 5px) / 11px 1px no-repeat,
174
+ linear-gradient(var(--m), var(--m)) calc(100% - 5px) 100% / 1px 11px no-repeat;
175
+ }
176
+ }
177
+
178
+ /* ── Reveal and draw: a page's one entrance (docs/motion.md, "Arrival and reveal") ─
179
+ * Keyframes for consumers: `animate-[ep-reveal_var(--duration-reveal)_var(--ease)_…_both]` rises
180
+ * an element by --reveal-distance (16px) as it fades in; ep-draw draws a stroke in from
181
+ * --len (its dash length). Time them on --duration-reveal, which reduced motion sets to 0. */
188
182
 
189
183
  @keyframes ep-reveal {
190
184
  from {
@@ -198,6 +192,10 @@
198
192
  }
199
193
 
200
194
  @keyframes ep-draw {
201
- from { stroke-dashoffset: var(--len, 1000); }
202
- to { stroke-dashoffset: 0; }
195
+ from {
196
+ stroke-dashoffset: var(--len, 1000);
197
+ }
198
+ to {
199
+ stroke-dashoffset: 0;
200
+ }
203
201
  }