pairz 0.0.1 → 1.0.0-rc.82

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 (2354) hide show
  1. package/AGENTS.md +1054 -0
  2. package/CHANGELOG.md +4460 -0
  3. package/CONTRIBUTING.md +326 -0
  4. package/LICENSE +21 -0
  5. package/README.md +343 -2
  6. package/cli/bin.js +37 -0
  7. package/cli/folders.js +155 -0
  8. package/cli/generate.js +163 -0
  9. package/cli/import-map.js +141 -0
  10. package/cli/init.js +40 -0
  11. package/cli/input-schema.js +580 -0
  12. package/cli/legacy.js +65 -0
  13. package/cli/mod.d.ts +2 -0
  14. package/cli/mod.js +11 -0
  15. package/cli/run.js +21 -0
  16. package/cli/template.js +184 -0
  17. package/cli/watch.js +65 -0
  18. package/docs/architecture/events.md +124 -0
  19. package/docs/architecture/the-owner.md +238 -0
  20. package/docs/architecture/topology.md +128 -0
  21. package/docs/architecture/transports.md +121 -0
  22. package/docs/architecture/views.md +100 -0
  23. package/docs/architecture.md +147 -0
  24. package/docs/build-compass/part-1-an-agent-of-your-own/01-one-agent-one-message.md +144 -0
  25. package/docs/build-compass/part-1-an-agent-of-your-own/02-north-in-your-terminal.md +284 -0
  26. package/docs/build-compass/part-1-an-agent-of-your-own/03-compass-in-the-browser.md +373 -0
  27. package/docs/build-compass/part-10-testing/31-fakes-at-the-edges.md +350 -0
  28. package/docs/build-compass/part-10-testing/32-parity.md +225 -0
  29. package/docs/build-compass/part-11-other-ways-in/33-the-rest-api.md +197 -0
  30. package/docs/build-compass/part-11-other-ways-in/34-the-client.md +147 -0
  31. package/docs/build-compass/part-11-other-ways-in/35-your-board-over-mcp.md +255 -0
  32. package/docs/build-compass/part-12-shipping/36-postgresql-and-blobs.md +200 -0
  33. package/docs/build-compass/part-12-shipping/37-watching-it-run.md +242 -0
  34. package/docs/build-compass/part-12-shipping/38-a-computer-for-your-agents.md +325 -0
  35. package/docs/build-compass/part-13-from-one-person-to-many/39-swapping-in-pairzs-plugins.md +245 -0
  36. package/docs/build-compass/part-13-from-one-person-to-many/40-sign-in-and-people.md +218 -0
  37. package/docs/build-compass/part-13-from-one-person-to-many/41-many-orgs-and-billing.md +246 -0
  38. package/docs/build-compass/part-2-your-own-plugins/04-today-every-turn.md +134 -0
  39. package/docs/build-compass/part-2-your-own-plugins/05-one-store.md +151 -0
  40. package/docs/build-compass/part-2-your-own-plugins/06-chats-that-name-themselves.md +157 -0
  41. package/docs/build-compass/part-2-your-own-plugins/07-spaces.md +299 -0
  42. package/docs/build-compass/part-2-your-own-plugins/08-spaces-on-the-web.md +169 -0
  43. package/docs/build-compass/part-3-the-board/09-the-boards-data-and-actions.md +182 -0
  44. package/docs/build-compass/part-3-the-board/10-the-board-on-screen.md +167 -0
  45. package/docs/build-compass/part-3-the-board/11-the-board-for-north.md +175 -0
  46. package/docs/build-compass/part-4-documents/12-documents-and-their-versions.md +305 -0
  47. package/docs/build-compass/part-4-documents/13-saves-that-merge-or-refuse.md +263 -0
  48. package/docs/build-compass/part-4-documents/14-documents-on-the-web-and-in-the-terminal.md +255 -0
  49. package/docs/build-compass/part-4-documents/15-documents-for-north.md +229 -0
  50. package/docs/build-compass/part-5-long-conversations/16-a-line-for-every-message.md +272 -0
  51. package/docs/build-compass/part-5-long-conversations/17-the-outline-in-norths-prompt.md +188 -0
  52. package/docs/build-compass/part-5-long-conversations/18-zoom.md +142 -0
  53. package/docs/build-compass/part-6-memory/19-memories-found-by-meaning.md +255 -0
  54. package/docs/build-compass/part-6-memory/20-recall-in-the-prompt.md +228 -0
  55. package/docs/build-compass/part-6-memory/21-remember-recall-forget.md +203 -0
  56. package/docs/build-compass/part-6-memory/22-memories-on-their-own.md +200 -0
  57. package/docs/build-compass/part-7-the-team/23-east-south-and-west.md +186 -0
  58. package/docs/build-compass/part-7-the-team/24-asking-in-parallel.md +162 -0
  59. package/docs/build-compass/part-7-the-team/25-reading-other-conversations.md +201 -0
  60. package/docs/build-compass/part-8-skills-and-routines/26-skills.md +338 -0
  61. package/docs/build-compass/part-8-skills-and-routines/27-routines-on-a-schedule.md +291 -0
  62. package/docs/build-compass/part-8-skills-and-routines/28-agents-that-schedule.md +281 -0
  63. package/docs/build-compass/part-9-the-web-for-agents/29-search-an-adapter-port.md +326 -0
  64. package/docs/build-compass/part-9-the-web-for-agents/30-reading-a-page-safely.md +246 -0
  65. package/docs/build-compass.md +323 -0
  66. package/docs/getting-started/01-one-booking.md +198 -0
  67. package/docs/getting-started/02-who-sees-what.md +243 -0
  68. package/docs/getting-started/03-its-own-web-page.md +235 -0
  69. package/docs/getting-started/04-its-own-agent.md +276 -0
  70. package/docs/getting-started/05-chatgpt-claude-and-gemini-over-mcp.md +182 -0
  71. package/docs/getting-started/06-the-same-bookings-every-way-in.md +173 -0
  72. package/docs/getting-started/07-a-widget-in-the-assistant.md +190 -0
  73. package/docs/getting-started/08-a-chat-on-your-site.md +206 -0
  74. package/docs/getting-started/09-whatsapp.md +175 -0
  75. package/docs/getting-started/10-shipping-the-salon.md +239 -0
  76. package/docs/getting-started.md +120 -0
  77. package/docs/guides/a-business-apps-screens.md +1586 -0
  78. package/docs/guides/agents-on-peoples-plans.md +450 -0
  79. package/docs/guides/chats.md +151 -0
  80. package/docs/guides/installing-a-computer.md +112 -0
  81. package/docs/guides/many-orgs.md +137 -0
  82. package/docs/guides/public-mcp-server.md +84 -0
  83. package/docs/guides/rest-and-the-client.md +172 -0
  84. package/docs/guides/serving-on-the-web.md +499 -0
  85. package/docs/guides/the-compiler.md +279 -0
  86. package/docs/guides/the-web-toolkit.md +1971 -0
  87. package/docs/guides/visitors.md +141 -0
  88. package/docs/manifest.json +739 -0
  89. package/docs/operations/maintenance.md +346 -0
  90. package/docs/operations/memory.md +111 -0
  91. package/docs/operations/metrics.md +96 -0
  92. package/docs/operations/stores.md +248 -0
  93. package/docs/reference/plugins/accounts-web.md +47 -0
  94. package/docs/reference/plugins/accounts.md +96 -0
  95. package/docs/reference/plugins/api-web.md +46 -0
  96. package/docs/reference/plugins/api.md +75 -0
  97. package/docs/reference/plugins/boards-web.md +47 -0
  98. package/docs/reference/plugins/boards.md +81 -0
  99. package/docs/reference/plugins/chat-channels-pt-br.md +53 -0
  100. package/docs/reference/plugins/chat-channels.md +55 -0
  101. package/docs/reference/plugins/chat-terminal.md +49 -0
  102. package/docs/reference/plugins/chat-web.md +65 -0
  103. package/docs/reference/plugins/chat.md +149 -0
  104. package/docs/reference/plugins/computers-terminal.md +45 -0
  105. package/docs/reference/plugins/computers-web.md +53 -0
  106. package/docs/reference/plugins/computers.md +185 -0
  107. package/docs/reference/plugins/contacts-web.md +45 -0
  108. package/docs/reference/plugins/contacts.md +72 -0
  109. package/docs/reference/plugins/credits-web.md +47 -0
  110. package/docs/reference/plugins/credits.md +95 -0
  111. package/docs/reference/plugins/dev-sign-in.md +52 -0
  112. package/docs/reference/plugins/directory-member.md +57 -0
  113. package/docs/reference/plugins/directory-web.md +47 -0
  114. package/docs/reference/plugins/directory.md +112 -0
  115. package/docs/reference/plugins/documents-web.md +48 -0
  116. package/docs/reference/plugins/documents.md +88 -0
  117. package/docs/reference/plugins/email-sign-in.md +100 -0
  118. package/docs/reference/plugins/email.md +83 -0
  119. package/docs/reference/plugins/google-sign-in.md +63 -0
  120. package/docs/reference/plugins/history.md +78 -0
  121. package/docs/reference/plugins/identity.md +77 -0
  122. package/docs/reference/plugins/maintenance.md +67 -0
  123. package/docs/reference/plugins/mcp.md +94 -0
  124. package/docs/reference/plugins/memory-extraction.md +57 -0
  125. package/docs/reference/plugins/memory-terminal.md +46 -0
  126. package/docs/reference/plugins/memory-web.md +47 -0
  127. package/docs/reference/plugins/memory.md +90 -0
  128. package/docs/reference/plugins/models.md +66 -0
  129. package/docs/reference/plugins/openapi.md +66 -0
  130. package/docs/reference/plugins/password-sign-in.md +82 -0
  131. package/docs/reference/plugins/push-web.md +46 -0
  132. package/docs/reference/plugins/push.md +75 -0
  133. package/docs/reference/plugins/routines-web.md +46 -0
  134. package/docs/reference/plugins/routines.md +87 -0
  135. package/docs/reference/plugins/skills-web.md +46 -0
  136. package/docs/reference/plugins/skills.md +79 -0
  137. package/docs/reference/plugins/spaces-terminal.md +49 -0
  138. package/docs/reference/plugins/spaces-web.md +51 -0
  139. package/docs/reference/plugins/spaces.md +116 -0
  140. package/docs/reference/plugins/stripe-webhook.md +63 -0
  141. package/docs/reference/plugins/stripe.md +73 -0
  142. package/docs/reference/plugins/team-web.md +46 -0
  143. package/docs/reference/plugins/team.md +93 -0
  144. package/docs/reference/plugins/terminal-shell.md +45 -0
  145. package/docs/reference/plugins/terminal.md +62 -0
  146. package/docs/reference/plugins/tiers-web.md +48 -0
  147. package/docs/reference/plugins/tiers.md +75 -0
  148. package/docs/reference/plugins/usage-terminal.md +46 -0
  149. package/docs/reference/plugins/usage-web.md +46 -0
  150. package/docs/reference/plugins/usage.md +85 -0
  151. package/docs/reference/plugins/voice.md +117 -0
  152. package/docs/reference/plugins/web-lines.md +89 -0
  153. package/docs/reference/plugins/web-page.md +69 -0
  154. package/docs/reference/plugins/web-shell.md +52 -0
  155. package/docs/reference/plugins/webTools.md +66 -0
  156. package/docs/reference/plugins/whatsapp-web.md +46 -0
  157. package/docs/reference/plugins/whatsapp.md +127 -0
  158. package/docs/reference/plugins.json +27020 -0
  159. package/docs/reference/plugins.md +146 -0
  160. package/docs/reference.md +1113 -0
  161. package/exporters/mod.d.ts +27 -0
  162. package/exporters/mod.js +27 -0
  163. package/exporters/otlp.d.ts +257 -0
  164. package/exporters/otlp.js +71 -0
  165. package/exporters/prometheus.d.ts +12 -0
  166. package/exporters/prometheus.js +40 -0
  167. package/hosts/terminal/composer.d.ts +22 -0
  168. package/hosts/terminal/composer.js +25 -0
  169. package/hosts/terminal/contract.d.ts +84 -0
  170. package/hosts/terminal/contract.js +10 -0
  171. package/hosts/terminal/host.d.ts +45 -0
  172. package/hosts/terminal/host.js +211 -0
  173. package/hosts/terminal/mod.d.ts +18 -0
  174. package/hosts/terminal/mod.js +18 -0
  175. package/hosts/terminal/part.d.ts +8 -0
  176. package/hosts/terminal/part.js +24 -0
  177. package/hosts/terminal/scrollback.d.ts +13 -0
  178. package/hosts/terminal/scrollback.js +32 -0
  179. package/hosts/web/assets.d.ts +48 -0
  180. package/hosts/web/assets.js +134 -0
  181. package/hosts/web/base.d.ts +6 -0
  182. package/hosts/web/base.js +16 -0
  183. package/hosts/web/dom-client.d.ts +9 -0
  184. package/hosts/web/dom-client.js +4 -0
  185. package/hosts/web/export.d.ts +19 -0
  186. package/hosts/web/export.js +19 -0
  187. package/hosts/web/head.d.ts +10 -0
  188. package/hosts/web/head.js +65 -0
  189. package/hosts/web/host-words.d.ts +1 -0
  190. package/hosts/web/host-words.js +24 -0
  191. package/hosts/web/host.d.ts +53 -0
  192. package/hosts/web/host.js +253 -0
  193. package/hosts/web/install.d.ts +14 -0
  194. package/hosts/web/install.js +96 -0
  195. package/hosts/web/lazy.d.ts +21 -0
  196. package/hosts/web/lazy.js +50 -0
  197. package/hosts/web/mod.d.ts +115 -0
  198. package/hosts/web/mod.js +138 -0
  199. package/hosts/web/node/bundle.d.ts +12 -0
  200. package/hosts/web/node/bundle.js +46 -0
  201. package/hosts/web/node/mod.d.ts +60 -0
  202. package/hosts/web/node/mod.js +60 -0
  203. package/hosts/web/node/serve.d.ts +92 -0
  204. package/hosts/web/node/serve.js +143 -0
  205. package/hosts/web/palette/list.d.ts +22 -0
  206. package/hosts/web/palette/list.js +51 -0
  207. package/hosts/web/palette/palette.d.ts +36 -0
  208. package/hosts/web/palette/palette.js +294 -0
  209. package/hosts/web/palette/rank.d.ts +16 -0
  210. package/hosts/web/palette/rank.js +110 -0
  211. package/hosts/web/palette/row.d.ts +19 -0
  212. package/hosts/web/palette/row.js +37 -0
  213. package/hosts/web/palette/sources.d.ts +10 -0
  214. package/hosts/web/palette/sources.js +67 -0
  215. package/hosts/web/palette/state.d.ts +120 -0
  216. package/hosts/web/palette/state.js +31 -0
  217. package/hosts/web/palette/words.d.ts +1 -0
  218. package/hosts/web/palette/words.js +23 -0
  219. package/hosts/web/part.d.ts +23 -0
  220. package/hosts/web/part.js +72 -0
  221. package/hosts/web/pt-br/about.d.ts +3 -0
  222. package/hosts/web/pt-br/about.js +21 -0
  223. package/hosts/web/pt-br/accounts.d.ts +6 -0
  224. package/hosts/web/pt-br/accounts.js +39 -0
  225. package/hosts/web/pt-br/chat.d.ts +3 -0
  226. package/hosts/web/pt-br/chat.js +330 -0
  227. package/hosts/web/pt-br/computers.d.ts +7 -0
  228. package/hosts/web/pt-br/computers.js +243 -0
  229. package/hosts/web/pt-br/host.d.ts +3 -0
  230. package/hosts/web/pt-br/host.js +18 -0
  231. package/hosts/web/pt-br/memory.d.ts +3 -0
  232. package/hosts/web/pt-br/memory.js +41 -0
  233. package/hosts/web/pt-br/mod.d.ts +23 -0
  234. package/hosts/web/pt-br/mod.js +54 -0
  235. package/hosts/web/pt-br/palette.d.ts +6 -0
  236. package/hosts/web/pt-br/palette.js +17 -0
  237. package/hosts/web/pt-br/push.d.ts +3 -0
  238. package/hosts/web/pt-br/push.js +24 -0
  239. package/hosts/web/pt-br/shell.d.ts +3 -0
  240. package/hosts/web/pt-br/shell.js +49 -0
  241. package/hosts/web/pt-br/sign-in.d.ts +3 -0
  242. package/hosts/web/pt-br/sign-in.js +97 -0
  243. package/hosts/web/pt-br/spaces.d.ts +3 -0
  244. package/hosts/web/pt-br/spaces.js +272 -0
  245. package/hosts/web/pt-br/toolkit.d.ts +3 -0
  246. package/hosts/web/pt-br/toolkit.js +114 -0
  247. package/hosts/web/pt-br/usage.d.ts +3 -0
  248. package/hosts/web/pt-br/usage.js +156 -0
  249. package/hosts/web/push.d.ts +32 -0
  250. package/hosts/web/push.js +138 -0
  251. package/hosts/web/pwa.d.ts +71 -0
  252. package/hosts/web/pwa.js +242 -0
  253. package/hosts/web/route-page.d.ts +53 -0
  254. package/hosts/web/route-page.js +83 -0
  255. package/hosts/web/screens.d.ts +17 -0
  256. package/hosts/web/screens.js +26 -0
  257. package/hosts/web/server.d.ts +76 -0
  258. package/hosts/web/server.js +218 -0
  259. package/hosts/web/session.d.ts +36 -0
  260. package/hosts/web/session.js +35 -0
  261. package/hosts/web/signin-email.d.ts +71 -0
  262. package/hosts/web/signin-email.js +420 -0
  263. package/hosts/web/signin-password.d.ts +19 -0
  264. package/hosts/web/signin-password.js +68 -0
  265. package/hosts/web/signin-words.d.ts +174 -0
  266. package/hosts/web/signin-words.js +197 -0
  267. package/hosts/web/signin.d.ts +40 -0
  268. package/hosts/web/signin.js +260 -0
  269. package/hosts/web/style.d.ts +16 -0
  270. package/hosts/web/style.js +65 -0
  271. package/hosts/web/surface.d.ts +20 -0
  272. package/hosts/web/surface.js +42 -0
  273. package/hosts/web/table-address.d.ts +31 -0
  274. package/hosts/web/table-address.js +71 -0
  275. package/hosts/web/theme/context.d.ts +2 -0
  276. package/hosts/web/theme/context.js +8 -0
  277. package/hosts/web/theme/css.d.ts +37 -0
  278. package/hosts/web/theme/css.js +125 -0
  279. package/hosts/web/theme/default.d.ts +68 -0
  280. package/hosts/web/theme/default.js +191 -0
  281. package/hosts/web/theme/files/OFL-Manrope.txt +93 -0
  282. package/hosts/web/theme/files/OFL-SpaceGrotesk.txt +93 -0
  283. package/hosts/web/theme/files/faces.d.ts +2 -0
  284. package/hosts/web/theme/files/faces.js +28 -0
  285. package/hosts/web/theme/files/icon-png.d.ts +2 -0
  286. package/hosts/web/theme/files/icon-png.js +2 -0
  287. package/hosts/web/theme/files/manrope-v23-latin-ext.d.ts +2 -0
  288. package/hosts/web/theme/files/manrope-v23-latin-ext.js +2 -0
  289. package/hosts/web/theme/files/manrope-v23-latin.d.ts +2 -0
  290. package/hosts/web/theme/files/manrope-v23-latin.js +2 -0
  291. package/hosts/web/theme/files/mod.d.ts +21 -0
  292. package/hosts/web/theme/files/mod.js +35 -0
  293. package/hosts/web/theme/files/space-grotesk-v22-latin-ext.d.ts +2 -0
  294. package/hosts/web/theme/files/space-grotesk-v22-latin-ext.js +2 -0
  295. package/hosts/web/theme/files/space-grotesk-v22-latin.d.ts +2 -0
  296. package/hosts/web/theme/files/space-grotesk-v22-latin.js +2 -0
  297. package/hosts/web/theme/files/temml-v0140.d.ts +2 -0
  298. package/hosts/web/theme/files/temml-v0140.js +2 -0
  299. package/hosts/web/theme/icon.d.ts +3 -0
  300. package/hosts/web/theme/icon.js +26 -0
  301. package/hosts/web/theme/own-path.d.ts +8 -0
  302. package/hosts/web/theme/own-path.js +14 -0
  303. package/hosts/web/theme/pairz.d.ts +12 -0
  304. package/hosts/web/theme/pairz.js +43 -0
  305. package/hosts/web/theme/picture.d.ts +18 -0
  306. package/hosts/web/theme/picture.js +74 -0
  307. package/hosts/web/theme/png.d.ts +19 -0
  308. package/hosts/web/theme/png.js +387 -0
  309. package/hosts/web/ticket.d.ts +11 -0
  310. package/hosts/web/ticket.js +37 -0
  311. package/hosts/web/toolkit/ago.d.ts +1 -0
  312. package/hosts/web/toolkit/ago.js +56 -0
  313. package/hosts/web/toolkit/anchor.d.ts +11 -0
  314. package/hosts/web/toolkit/anchor.js +80 -0
  315. package/hosts/web/toolkit/app-bar.d.ts +55 -0
  316. package/hosts/web/toolkit/app-bar.js +107 -0
  317. package/hosts/web/toolkit/audio-player.d.ts +29 -0
  318. package/hosts/web/toolkit/audio-player.js +164 -0
  319. package/hosts/web/toolkit/autocomplete.d.ts +56 -0
  320. package/hosts/web/toolkit/autocomplete.js +84 -0
  321. package/hosts/web/toolkit/avatar.d.ts +29 -0
  322. package/hosts/web/toolkit/avatar.js +81 -0
  323. package/hosts/web/toolkit/badge.d.ts +17 -0
  324. package/hosts/web/toolkit/badge.js +27 -0
  325. package/hosts/web/toolkit/barcode-png.d.ts +6 -0
  326. package/hosts/web/toolkit/barcode-png.js +7 -0
  327. package/hosts/web/toolkit/barcode.d.ts +33 -0
  328. package/hosts/web/toolkit/barcode.js +34 -0
  329. package/hosts/web/toolkit/button.d.ts +40 -0
  330. package/hosts/web/toolkit/button.js +81 -0
  331. package/hosts/web/toolkit/bytes.d.ts +2 -0
  332. package/hosts/web/toolkit/bytes.js +13 -0
  333. package/hosts/web/toolkit/calendar.d.ts +62 -0
  334. package/hosts/web/toolkit/calendar.js +223 -0
  335. package/hosts/web/toolkit/card.d.ts +38 -0
  336. package/hosts/web/toolkit/card.js +32 -0
  337. package/hosts/web/toolkit/checkbox.d.ts +15 -0
  338. package/hosts/web/toolkit/checkbox.js +24 -0
  339. package/hosts/web/toolkit/chip.d.ts +24 -0
  340. package/hosts/web/toolkit/chip.js +33 -0
  341. package/hosts/web/toolkit/clock.d.ts +6 -0
  342. package/hosts/web/toolkit/clock.js +12 -0
  343. package/hosts/web/toolkit/code-block.d.ts +45 -0
  344. package/hosts/web/toolkit/code-block.js +111 -0
  345. package/hosts/web/toolkit/code-lines.d.ts +15 -0
  346. package/hosts/web/toolkit/code-lines.js +33 -0
  347. package/hosts/web/toolkit/code128.d.ts +61 -0
  348. package/hosts/web/toolkit/code128.js +229 -0
  349. package/hosts/web/toolkit/confirm-dialog.d.ts +71 -0
  350. package/hosts/web/toolkit/confirm-dialog.js +168 -0
  351. package/hosts/web/toolkit/confirm-state.d.ts +40 -0
  352. package/hosts/web/toolkit/confirm-state.js +91 -0
  353. package/hosts/web/toolkit/copy-button.d.ts +6 -0
  354. package/hosts/web/toolkit/copy-button.js +28 -0
  355. package/hosts/web/toolkit/cx.d.ts +2 -0
  356. package/hosts/web/toolkit/cx.js +2 -0
  357. package/hosts/web/toolkit/data-table.d.ts +121 -0
  358. package/hosts/web/toolkit/data-table.js +339 -0
  359. package/hosts/web/toolkit/date-picker.d.ts +121 -0
  360. package/hosts/web/toolkit/date-picker.js +409 -0
  361. package/hosts/web/toolkit/date-time-picker.d.ts +91 -0
  362. package/hosts/web/toolkit/date-time-picker.js +181 -0
  363. package/hosts/web/toolkit/dates.d.ts +145 -0
  364. package/hosts/web/toolkit/dates.js +438 -0
  365. package/hosts/web/toolkit/day-time-field.d.ts +27 -0
  366. package/hosts/web/toolkit/day-time-field.js +46 -0
  367. package/hosts/web/toolkit/day-time-text.d.ts +92 -0
  368. package/hosts/web/toolkit/day-time-text.js +549 -0
  369. package/hosts/web/toolkit/day-time-zone.d.ts +16 -0
  370. package/hosts/web/toolkit/day-time-zone.js +87 -0
  371. package/hosts/web/toolkit/detail-list.d.ts +39 -0
  372. package/hosts/web/toolkit/detail-list.js +41 -0
  373. package/hosts/web/toolkit/detail-value.d.ts +22 -0
  374. package/hosts/web/toolkit/detail-value.js +135 -0
  375. package/hosts/web/toolkit/dialog.d.ts +62 -0
  376. package/hosts/web/toolkit/dialog.js +76 -0
  377. package/hosts/web/toolkit/drawer.d.ts +23 -0
  378. package/hosts/web/toolkit/drawer.js +38 -0
  379. package/hosts/web/toolkit/empty-state.d.ts +25 -0
  380. package/hosts/web/toolkit/empty-state.js +25 -0
  381. package/hosts/web/toolkit/export.d.ts +117 -0
  382. package/hosts/web/toolkit/export.js +294 -0
  383. package/hosts/web/toolkit/field.d.ts +50 -0
  384. package/hosts/web/toolkit/field.js +74 -0
  385. package/hosts/web/toolkit/file-input.d.ts +61 -0
  386. package/hosts/web/toolkit/file-input.js +152 -0
  387. package/hosts/web/toolkit/files.d.ts +20 -0
  388. package/hosts/web/toolkit/files.js +31 -0
  389. package/hosts/web/toolkit/form-submit.d.ts +29 -0
  390. package/hosts/web/toolkit/form-submit.js +38 -0
  391. package/hosts/web/toolkit/form.d.ts +65 -0
  392. package/hosts/web/toolkit/form.js +94 -0
  393. package/hosts/web/toolkit/formula-style.d.ts +7 -0
  394. package/hosts/web/toolkit/formula-style.js +309 -0
  395. package/hosts/web/toolkit/formula.d.ts +17 -0
  396. package/hosts/web/toolkit/formula.js +37 -0
  397. package/hosts/web/toolkit/grid.d.ts +44 -0
  398. package/hosts/web/toolkit/grid.js +66 -0
  399. package/hosts/web/toolkit/humanize.d.ts +1 -0
  400. package/hosts/web/toolkit/humanize.js +42 -0
  401. package/hosts/web/toolkit/icon-button.d.ts +35 -0
  402. package/hosts/web/toolkit/icon-button.js +52 -0
  403. package/hosts/web/toolkit/icon.d.ts +125 -0
  404. package/hosts/web/toolkit/icon.js +121 -0
  405. package/hosts/web/toolkit/inline-edit.d.ts +23 -0
  406. package/hosts/web/toolkit/inline-edit.js +58 -0
  407. package/hosts/web/toolkit/input.d.ts +49 -0
  408. package/hosts/web/toolkit/input.js +101 -0
  409. package/hosts/web/toolkit/kbd.d.ts +6 -0
  410. package/hosts/web/toolkit/kbd.js +12 -0
  411. package/hosts/web/toolkit/kept.d.ts +22 -0
  412. package/hosts/web/toolkit/kept.js +50 -0
  413. package/hosts/web/toolkit/line-editor.d.ts +44 -0
  414. package/hosts/web/toolkit/line-editor.js +167 -0
  415. package/hosts/web/toolkit/list-group.d.ts +47 -0
  416. package/hosts/web/toolkit/list-group.js +51 -0
  417. package/hosts/web/toolkit/live-clock.d.ts +31 -0
  418. package/hosts/web/toolkit/live-clock.js +55 -0
  419. package/hosts/web/toolkit/logo.d.ts +25 -0
  420. package/hosts/web/toolkit/logo.js +47 -0
  421. package/hosts/web/toolkit/long-text.d.ts +15 -0
  422. package/hosts/web/toolkit/long-text.js +31 -0
  423. package/hosts/web/toolkit/markdown/blocks.d.ts +46 -0
  424. package/hosts/web/toolkit/markdown/blocks.js +184 -0
  425. package/hosts/web/toolkit/markdown/markdown.d.ts +15 -0
  426. package/hosts/web/toolkit/markdown/markdown.js +123 -0
  427. package/hosts/web/toolkit/markdown/spans.d.ts +34 -0
  428. package/hosts/web/toolkit/markdown/spans.js +91 -0
  429. package/hosts/web/toolkit/mathml.d.ts +14 -0
  430. package/hosts/web/toolkit/mathml.js +18 -0
  431. package/hosts/web/toolkit/menu.d.ts +65 -0
  432. package/hosts/web/toolkit/menu.js +159 -0
  433. package/hosts/web/toolkit/modal.d.ts +34 -0
  434. package/hosts/web/toolkit/modal.js +75 -0
  435. package/hosts/web/toolkit/nav-item.d.ts +33 -0
  436. package/hosts/web/toolkit/nav-item.js +41 -0
  437. package/hosts/web/toolkit/notice.d.ts +26 -0
  438. package/hosts/web/toolkit/notice.js +37 -0
  439. package/hosts/web/toolkit/page.d.ts +61 -0
  440. package/hosts/web/toolkit/page.js +93 -0
  441. package/hosts/web/toolkit/pagination.d.ts +25 -0
  442. package/hosts/web/toolkit/pagination.js +55 -0
  443. package/hosts/web/toolkit/pdf-image.d.ts +15 -0
  444. package/hosts/web/toolkit/pdf-image.js +147 -0
  445. package/hosts/web/toolkit/pdf.d.ts +152 -0
  446. package/hosts/web/toolkit/pdf.js +597 -0
  447. package/hosts/web/toolkit/picker.d.ts +67 -0
  448. package/hosts/web/toolkit/picker.js +163 -0
  449. package/hosts/web/toolkit/png.d.ts +21 -0
  450. package/hosts/web/toolkit/png.js +206 -0
  451. package/hosts/web/toolkit/popover.d.ts +44 -0
  452. package/hosts/web/toolkit/popover.js +98 -0
  453. package/hosts/web/toolkit/print.d.ts +31 -0
  454. package/hosts/web/toolkit/print.js +28 -0
  455. package/hosts/web/toolkit/radio.d.ts +18 -0
  456. package/hosts/web/toolkit/radio.js +23 -0
  457. package/hosts/web/toolkit/rail-item.d.ts +39 -0
  458. package/hosts/web/toolkit/rail-item.js +47 -0
  459. package/hosts/web/toolkit/record-dialog.d.ts +142 -0
  460. package/hosts/web/toolkit/record-dialog.js +210 -0
  461. package/hosts/web/toolkit/record-draft.d.ts +64 -0
  462. package/hosts/web/toolkit/record-draft.js +169 -0
  463. package/hosts/web/toolkit/refusal.d.ts +8 -0
  464. package/hosts/web/toolkit/refusal.js +14 -0
  465. package/hosts/web/toolkit/resample.d.ts +10 -0
  466. package/hosts/web/toolkit/resample.js +31 -0
  467. package/hosts/web/toolkit/resize-handle.d.ts +26 -0
  468. package/hosts/web/toolkit/resize-handle.js +67 -0
  469. package/hosts/web/toolkit/retail-barcodes.d.ts +10 -0
  470. package/hosts/web/toolkit/retail-barcodes.js +106 -0
  471. package/hosts/web/toolkit/return-focus.d.ts +11 -0
  472. package/hosts/web/toolkit/return-focus.js +35 -0
  473. package/hosts/web/toolkit/rows-editor.d.ts +62 -0
  474. package/hosts/web/toolkit/rows-editor.js +126 -0
  475. package/hosts/web/toolkit/rows.d.ts +36 -0
  476. package/hosts/web/toolkit/rows.js +66 -0
  477. package/hosts/web/toolkit/screen.d.ts +20 -0
  478. package/hosts/web/toolkit/screen.js +15 -0
  479. package/hosts/web/toolkit/select.d.ts +24 -0
  480. package/hosts/web/toolkit/select.js +36 -0
  481. package/hosts/web/toolkit/sheet.d.ts +16 -0
  482. package/hosts/web/toolkit/sheet.js +2 -0
  483. package/hosts/web/toolkit/shortcuts.d.ts +72 -0
  484. package/hosts/web/toolkit/shortcuts.js +195 -0
  485. package/hosts/web/toolkit/skeleton.d.ts +17 -0
  486. package/hosts/web/toolkit/skeleton.js +13 -0
  487. package/hosts/web/toolkit/space.d.ts +6 -0
  488. package/hosts/web/toolkit/space.js +21 -0
  489. package/hosts/web/toolkit/spinner.d.ts +13 -0
  490. package/hosts/web/toolkit/spinner.js +23 -0
  491. package/hosts/web/toolkit/split.d.ts +31 -0
  492. package/hosts/web/toolkit/split.js +25 -0
  493. package/hosts/web/toolkit/stack.d.ts +48 -0
  494. package/hosts/web/toolkit/stack.js +61 -0
  495. package/hosts/web/toolkit/switch.d.ts +30 -0
  496. package/hosts/web/toolkit/switch.js +41 -0
  497. package/hosts/web/toolkit/table-sheet.d.ts +20 -0
  498. package/hosts/web/toolkit/table-sheet.js +25 -0
  499. package/hosts/web/toolkit/table.d.ts +101 -0
  500. package/hosts/web/toolkit/table.js +97 -0
  501. package/hosts/web/toolkit/tabs.d.ts +45 -0
  502. package/hosts/web/toolkit/tabs.js +105 -0
  503. package/hosts/web/toolkit/tags-input.d.ts +25 -0
  504. package/hosts/web/toolkit/tags-input.js +90 -0
  505. package/hosts/web/toolkit/tags.d.ts +10 -0
  506. package/hosts/web/toolkit/tags.js +18 -0
  507. package/hosts/web/toolkit/temml.d.ts +8 -0
  508. package/hosts/web/toolkit/temml.js +29 -0
  509. package/hosts/web/toolkit/terminal-theme.d.ts +18 -0
  510. package/hosts/web/toolkit/terminal-theme.js +83 -0
  511. package/hosts/web/toolkit/terminal.d.ts +58 -0
  512. package/hosts/web/toolkit/terminal.js +261 -0
  513. package/hosts/web/toolkit/text.d.ts +36 -0
  514. package/hosts/web/toolkit/text.js +55 -0
  515. package/hosts/web/toolkit/textarea.d.ts +13 -0
  516. package/hosts/web/toolkit/textarea.js +52 -0
  517. package/hosts/web/toolkit/tile-grid.d.ts +31 -0
  518. package/hosts/web/toolkit/tile-grid.js +43 -0
  519. package/hosts/web/toolkit/time.d.ts +12 -0
  520. package/hosts/web/toolkit/time.js +39 -0
  521. package/hosts/web/toolkit/title.d.ts +3 -0
  522. package/hosts/web/toolkit/title.js +10 -0
  523. package/hosts/web/toolkit/toast-state.d.ts +49 -0
  524. package/hosts/web/toolkit/toast-state.js +84 -0
  525. package/hosts/web/toolkit/toast.d.ts +30 -0
  526. package/hosts/web/toolkit/toast.js +117 -0
  527. package/hosts/web/toolkit/toolbar.d.ts +28 -0
  528. package/hosts/web/toolkit/toolbar.js +16 -0
  529. package/hosts/web/toolkit/tooltip.d.ts +22 -0
  530. package/hosts/web/toolkit/tooltip.js +76 -0
  531. package/hosts/web/toolkit/waveform.d.ts +35 -0
  532. package/hosts/web/toolkit/waveform.js +110 -0
  533. package/hosts/web/toolkit/words.d.ts +1 -0
  534. package/hosts/web/toolkit/words.js +132 -0
  535. package/hosts/web/toolkit/xterm-style.d.ts +3 -0
  536. package/hosts/web/toolkit/xterm-style.js +67 -0
  537. package/hosts/web/toolkit/xterm.d.ts +23 -0
  538. package/hosts/web/toolkit/xterm.js +44 -0
  539. package/hosts/web/toolkit/zip.d.ts +18 -0
  540. package/hosts/web/toolkit/zip.js +91 -0
  541. package/hosts/web/update.d.ts +8 -0
  542. package/hosts/web/update.js +29 -0
  543. package/hosts/web/widget.d.ts +31 -0
  544. package/hosts/web/widget.js +434 -0
  545. package/hosts/web/widgets.d.ts +43 -0
  546. package/hosts/web/widgets.js +118 -0
  547. package/hosts/web/words.d.ts +83 -0
  548. package/hosts/web/words.js +124 -0
  549. package/llms.txt +167 -0
  550. package/package.json +335 -4
  551. package/plugins/access/accounts/actions/callback.d.ts +1 -0
  552. package/plugins/access/accounts/actions/callback.js +38 -0
  553. package/plugins/access/accounts/actions/complete.d.ts +1 -0
  554. package/plugins/access/accounts/actions/complete.js +42 -0
  555. package/plugins/access/accounts/actions/connect.d.ts +1 -0
  556. package/plugins/access/accounts/actions/connect.js +23 -0
  557. package/plugins/access/accounts/actions/connected.d.ts +1 -0
  558. package/plugins/access/accounts/actions/connected.js +22 -0
  559. package/plugins/access/accounts/actions/disconnect.d.ts +1 -0
  560. package/plugins/access/accounts/actions/disconnect.js +50 -0
  561. package/plugins/access/accounts/actions/model-key.d.ts +5 -0
  562. package/plugins/access/accounts/actions/model-key.js +130 -0
  563. package/plugins/access/accounts/actions/refresh.d.ts +1 -0
  564. package/plugins/access/accounts/actions/refresh.js +48 -0
  565. package/plugins/access/accounts/actions/token.d.ts +1 -0
  566. package/plugins/access/accounts/actions/token.js +54 -0
  567. package/plugins/access/accounts/collections/account.d.ts +107 -0
  568. package/plugins/access/accounts/collections/account.js +51 -0
  569. package/plugins/access/accounts/collections/flow.d.ts +65 -0
  570. package/plugins/access/accounts/collections/flow.js +20 -0
  571. package/plugins/access/accounts/collections/model-key.d.ts +69 -0
  572. package/plugins/access/accounts/collections/model-key.js +42 -0
  573. package/plugins/access/accounts/contract.d.ts +156 -0
  574. package/plugins/access/accounts/contract.js +1 -0
  575. package/plugins/access/accounts/events/changed.d.ts +8 -0
  576. package/plugins/access/accounts/events/changed.js +14 -0
  577. package/plugins/access/accounts/mod.d.ts +63 -0
  578. package/plugins/access/accounts/mod.js +141 -0
  579. package/plugins/access/accounts/resources/chatgpt.d.ts +17 -0
  580. package/plugins/access/accounts/resources/chatgpt.js +52 -0
  581. package/plugins/access/accounts/resources/models.d.ts +24 -0
  582. package/plugins/access/accounts/resources/models.js +21 -0
  583. package/plugins/access/accounts/routes/callback.d.ts +10 -0
  584. package/plugins/access/accounts/routes/callback.js +33 -0
  585. package/plugins/access/accounts/shared/errors.d.ts +19 -0
  586. package/plugins/access/accounts/shared/errors.js +19 -0
  587. package/plugins/access/accounts/shared/flow.d.ts +28 -0
  588. package/plugins/access/accounts/shared/flow.js +141 -0
  589. package/plugins/access/accounts/shared/oauth.d.ts +50 -0
  590. package/plugins/access/accounts/shared/oauth.js +144 -0
  591. package/plugins/access/accounts/shared/renew.d.ts +20 -0
  592. package/plugins/access/accounts/shared/renew.js +104 -0
  593. package/plugins/access/accounts/shared/rules.d.ts +11 -0
  594. package/plugins/access/accounts/shared/rules.js +22 -0
  595. package/plugins/access/accounts/shared/seal.d.ts +11 -0
  596. package/plugins/access/accounts/shared/seal.js +63 -0
  597. package/plugins/access/accounts/shared/settings.d.ts +37 -0
  598. package/plugins/access/accounts/shared/settings.js +31 -0
  599. package/plugins/access/accounts/views/web/accounts.d.ts +21 -0
  600. package/plugins/access/accounts/views/web/accounts.js +84 -0
  601. package/plugins/access/accounts/views/web/card.d.ts +14 -0
  602. package/plugins/access/accounts/views/web/card.js +19 -0
  603. package/plugins/access/accounts/views/web/connect.d.ts +41 -0
  604. package/plugins/access/accounts/views/web/connect.js +163 -0
  605. package/plugins/access/accounts/views/web/disconnect.d.ts +16 -0
  606. package/plugins/access/accounts/views/web/disconnect.js +31 -0
  607. package/plugins/access/accounts/views/web/own-keys.d.ts +12 -0
  608. package/plugins/access/accounts/views/web/own-keys.js +112 -0
  609. package/plugins/access/accounts/views/web/palette.d.ts +11 -0
  610. package/plugins/access/accounts/views/web/palette.js +71 -0
  611. package/plugins/access/accounts/views/web/style.d.ts +6 -0
  612. package/plugins/access/accounts/views/web/style.js +79 -0
  613. package/plugins/access/accounts/views/web/words.d.ts +31 -0
  614. package/plugins/access/accounts/views/web/words.js +104 -0
  615. package/plugins/access/accounts/web.d.ts +28 -0
  616. package/plugins/access/accounts/web.js +47 -0
  617. package/plugins/access/contacts/actions/chat.d.ts +1 -0
  618. package/plugins/access/contacts/actions/chat.js +45 -0
  619. package/plugins/access/contacts/actions/forget.d.ts +1 -0
  620. package/plugins/access/contacts/actions/forget.js +58 -0
  621. package/plugins/access/contacts/actions/start.d.ts +1 -0
  622. package/plugins/access/contacts/actions/start.js +60 -0
  623. package/plugins/access/contacts/collections/contact.d.ts +74 -0
  624. package/plugins/access/contacts/collections/contact.js +58 -0
  625. package/plugins/access/contacts/contract.d.ts +10 -0
  626. package/plugins/access/contacts/contract.js +10 -0
  627. package/plugins/access/contacts/mod.d.ts +33 -0
  628. package/plugins/access/contacts/mod.js +64 -0
  629. package/plugins/access/contacts/views/contact.d.ts +8 -0
  630. package/plugins/access/contacts/views/contact.js +26 -0
  631. package/plugins/access/contacts/views/notes.d.ts +11 -0
  632. package/plugins/access/contacts/views/notes.js +34 -0
  633. package/plugins/access/contacts/web.d.ts +7 -0
  634. package/plugins/access/contacts/web.js +11 -0
  635. package/plugins/access/contract.d.ts +14 -0
  636. package/plugins/access/contract.js +12 -0
  637. package/plugins/access/dev/actions/sign-in.d.ts +1 -0
  638. package/plugins/access/dev/actions/sign-in.js +52 -0
  639. package/plugins/access/dev/mod.d.ts +17 -0
  640. package/plugins/access/dev/mod.js +32 -0
  641. package/plugins/access/dev/routes/sign-in.d.ts +8 -0
  642. package/plugins/access/dev/routes/sign-in.js +25 -0
  643. package/plugins/access/dev/shared/here.d.ts +4 -0
  644. package/plugins/access/dev/shared/here.js +32 -0
  645. package/plugins/access/dev/shared/nearby.d.ts +2 -0
  646. package/plugins/access/dev/shared/nearby.js +27 -0
  647. package/plugins/access/email/actions/code.d.ts +2 -0
  648. package/plugins/access/email/actions/code.js +112 -0
  649. package/plugins/access/email/actions/import.d.ts +1 -0
  650. package/plugins/access/email/actions/import.js +54 -0
  651. package/plugins/access/email/actions/invite.d.ts +5 -0
  652. package/plugins/access/email/actions/invite.js +143 -0
  653. package/plugins/access/email/actions/password-accounts.d.ts +3 -0
  654. package/plugins/access/email/actions/password-accounts.js +118 -0
  655. package/plugins/access/email/actions/password-sign-in.d.ts +2 -0
  656. package/plugins/access/email/actions/password-sign-in.js +84 -0
  657. package/plugins/access/email/actions/prune.d.ts +3 -0
  658. package/plugins/access/email/actions/prune.js +32 -0
  659. package/plugins/access/email/actions/reset.d.ts +2 -0
  660. package/plugins/access/email/actions/reset.js +101 -0
  661. package/plugins/access/email/actions/send.d.ts +1 -0
  662. package/plugins/access/email/actions/send.js +101 -0
  663. package/plugins/access/email/actions/sign-in.d.ts +1 -0
  664. package/plugins/access/email/actions/sign-in.js +70 -0
  665. package/plugins/access/email/actions/sign-up.d.ts +4 -0
  666. package/plugins/access/email/actions/sign-up.js +109 -0
  667. package/plugins/access/email/adapters/capture.d.ts +13 -0
  668. package/plugins/access/email/adapters/capture.js +28 -0
  669. package/plugins/access/email/adapters/console.d.ts +8 -0
  670. package/plugins/access/email/adapters/console.js +16 -0
  671. package/plugins/access/email/adapters/resend.d.ts +9 -0
  672. package/plugins/access/email/adapters/resend.js +42 -0
  673. package/plugins/access/email/adapters/sendmail.d.ts +13 -0
  674. package/plugins/access/email/adapters/sendmail.js +59 -0
  675. package/plugins/access/email/adapters/smtp.d.ts +10 -0
  676. package/plugins/access/email/adapters/smtp.js +16 -0
  677. package/plugins/access/email/collections/code.d.ts +111 -0
  678. package/plugins/access/email/collections/code.js +39 -0
  679. package/plugins/access/email/collections/login.d.ts +71 -0
  680. package/plugins/access/email/collections/login.js +28 -0
  681. package/plugins/access/email/collections/password-login.d.ts +63 -0
  682. package/plugins/access/email/collections/password-login.js +26 -0
  683. package/plugins/access/email/collections/rate.d.ts +44 -0
  684. package/plugins/access/email/collections/rate.js +14 -0
  685. package/plugins/access/email/contract.d.ts +240 -0
  686. package/plugins/access/email/contract.js +8 -0
  687. package/plugins/access/email/mod.d.ts +79 -0
  688. package/plugins/access/email/mod.js +204 -0
  689. package/plugins/access/email/password.d.ts +38 -0
  690. package/plugins/access/email/password.js +63 -0
  691. package/plugins/access/email/resources/messages.d.ts +9 -0
  692. package/plugins/access/email/resources/messages.js +64 -0
  693. package/plugins/access/email/routes/password.d.ts +13 -0
  694. package/plugins/access/email/routes/password.js +8 -0
  695. package/plugins/access/email/routes/sign-in.d.ts +38 -0
  696. package/plugins/access/email/routes/sign-in.js +31 -0
  697. package/plugins/access/email/shared/addresses.d.ts +13 -0
  698. package/plugins/access/email/shared/addresses.js +16 -0
  699. package/plugins/access/email/shared/bcrypt.d.ts +7 -0
  700. package/plugins/access/email/shared/bcrypt.js +138 -0
  701. package/plugins/access/email/shared/codes.d.ts +41 -0
  702. package/plugins/access/email/shared/codes.js +90 -0
  703. package/plugins/access/email/shared/identifiers.d.ts +8 -0
  704. package/plugins/access/email/shared/identifiers.js +22 -0
  705. package/plugins/access/email/shared/inputs.d.ts +37 -0
  706. package/plugins/access/email/shared/inputs.js +43 -0
  707. package/plugins/access/email/shared/limits.d.ts +54 -0
  708. package/plugins/access/email/shared/limits.js +71 -0
  709. package/plugins/access/email/shared/mail.d.ts +37 -0
  710. package/plugins/access/email/shared/mail.js +71 -0
  711. package/plugins/access/email/shared/mime.d.ts +28 -0
  712. package/plugins/access/email/shared/mime.js +179 -0
  713. package/plugins/access/email/shared/password.d.ts +18 -0
  714. package/plugins/access/email/shared/password.js +91 -0
  715. package/plugins/access/email/shared/people.d.ts +35 -0
  716. package/plugins/access/email/shared/people.js +55 -0
  717. package/plugins/access/email/shared/pi.d.ts +7 -0
  718. package/plugins/access/email/shared/pi.js +101 -0
  719. package/plugins/access/email/shared/settings.d.ts +33 -0
  720. package/plugins/access/email/shared/settings.js +41 -0
  721. package/plugins/access/email/shared/smtp.d.ts +22 -0
  722. package/plugins/access/email/shared/smtp.js +160 -0
  723. package/plugins/access/email/shared/step.d.ts +27 -0
  724. package/plugins/access/email/shared/step.js +87 -0
  725. package/plugins/access/google/actions/sign-in.d.ts +1 -0
  726. package/plugins/access/google/actions/sign-in.js +42 -0
  727. package/plugins/access/google/adapters/keys.d.ts +10 -0
  728. package/plugins/access/google/adapters/keys.js +17 -0
  729. package/plugins/access/google/mod.d.ts +22 -0
  730. package/plugins/access/google/mod.js +34 -0
  731. package/plugins/access/google/routes/sign-in.d.ts +12 -0
  732. package/plugins/access/google/routes/sign-in.js +36 -0
  733. package/plugins/access/google/shared/jwt.d.ts +19 -0
  734. package/plugins/access/google/shared/jwt.js +29 -0
  735. package/plugins/access/google/shared/settings.d.ts +9 -0
  736. package/plugins/access/google/shared/settings.js +1 -0
  737. package/plugins/access/identity/actions/person.d.ts +9 -0
  738. package/plugins/access/identity/actions/person.js +84 -0
  739. package/plugins/access/identity/actions/session.d.ts +3 -0
  740. package/plugins/access/identity/actions/session.js +71 -0
  741. package/plugins/access/identity/collections/credential.d.ts +82 -0
  742. package/plugins/access/identity/collections/credential.js +45 -0
  743. package/plugins/access/identity/collections/person.d.ts +78 -0
  744. package/plugins/access/identity/collections/person.js +33 -0
  745. package/plugins/access/identity/contract.d.ts +21 -0
  746. package/plugins/access/identity/contract.js +18 -0
  747. package/plugins/access/identity/mod.d.ts +32 -0
  748. package/plugins/access/identity/mod.js +71 -0
  749. package/plugins/access/identity/routes/session.d.ts +17 -0
  750. package/plugins/access/identity/routes/session.js +35 -0
  751. package/plugins/access/mod.d.ts +46 -0
  752. package/plugins/access/mod.js +15 -0
  753. package/plugins/access/spaces/actions/agents.d.ts +2 -0
  754. package/plugins/access/spaces/actions/agents.js +57 -0
  755. package/plugins/access/spaces/actions/archive.d.ts +1 -0
  756. package/plugins/access/spaces/actions/archive.js +34 -0
  757. package/plugins/access/spaces/actions/can.d.ts +1 -0
  758. package/plugins/access/spaces/actions/can.js +26 -0
  759. package/plugins/access/spaces/actions/create.d.ts +1 -0
  760. package/plugins/access/spaces/actions/create.js +54 -0
  761. package/plugins/access/spaces/actions/invitation.d.ts +3 -0
  762. package/plugins/access/spaces/actions/invitation.js +126 -0
  763. package/plugins/access/spaces/actions/keep.d.ts +1 -0
  764. package/plugins/access/spaces/actions/keep.js +55 -0
  765. package/plugins/access/spaces/actions/leave.d.ts +1 -0
  766. package/plugins/access/spaces/actions/leave.js +37 -0
  767. package/plugins/access/spaces/actions/member.d.ts +8 -0
  768. package/plugins/access/spaces/actions/member.js +195 -0
  769. package/plugins/access/spaces/actions/org.d.ts +32 -0
  770. package/plugins/access/spaces/actions/org.js +261 -0
  771. package/plugins/access/spaces/actions/personal.d.ts +1 -0
  772. package/plugins/access/spaces/actions/personal.js +41 -0
  773. package/plugins/access/spaces/actions/rename.d.ts +1 -0
  774. package/plugins/access/spaces/actions/rename.js +39 -0
  775. package/plugins/access/spaces/actions/request.d.ts +2 -0
  776. package/plugins/access/spaces/actions/request.js +46 -0
  777. package/plugins/access/spaces/collections/invitation.d.ts +80 -0
  778. package/plugins/access/spaces/collections/invitation.js +43 -0
  779. package/plugins/access/spaces/collections/member.d.ts +89 -0
  780. package/plugins/access/spaces/collections/member.js +32 -0
  781. package/plugins/access/spaces/collections/profile.d.ts +54 -0
  782. package/plugins/access/spaces/collections/profile.js +54 -0
  783. package/plugins/access/spaces/collections/request.d.ts +66 -0
  784. package/plugins/access/spaces/collections/request.js +29 -0
  785. package/plugins/access/spaces/collections/space.d.ts +85 -0
  786. package/plugins/access/spaces/collections/space.js +73 -0
  787. package/plugins/access/spaces/contract.d.ts +132 -0
  788. package/plugins/access/spaces/contract.js +5 -0
  789. package/plugins/access/spaces/mod.d.ts +80 -0
  790. package/plugins/access/spaces/mod.js +154 -0
  791. package/plugins/access/spaces/processors/agent-gone.d.ts +7 -0
  792. package/plugins/access/spaces/processors/agent-gone.js +13 -0
  793. package/plugins/access/spaces/processors/profile.d.ts +7 -0
  794. package/plugins/access/spaces/processors/profile.js +10 -0
  795. package/plugins/access/spaces/resources/commands.d.ts +11 -0
  796. package/plugins/access/spaces/resources/commands.js +212 -0
  797. package/plugins/access/spaces/resources/tools.d.ts +2 -0
  798. package/plugins/access/spaces/resources/tools.js +50 -0
  799. package/plugins/access/spaces/shared/agents.d.ts +48 -0
  800. package/plugins/access/spaces/shared/agents.js +101 -0
  801. package/plugins/access/spaces/shared/audience.d.ts +51 -0
  802. package/plugins/access/spaces/shared/audience.js +113 -0
  803. package/plugins/access/spaces/shared/can.d.ts +46 -0
  804. package/plugins/access/spaces/shared/can.js +76 -0
  805. package/plugins/access/spaces/shared/declared.d.ts +21 -0
  806. package/plugins/access/spaces/shared/declared.js +8 -0
  807. package/plugins/access/spaces/shared/labels.d.ts +33 -0
  808. package/plugins/access/spaces/shared/labels.js +97 -0
  809. package/plugins/access/spaces/shared/managers.d.ts +9 -0
  810. package/plugins/access/spaces/shared/managers.js +15 -0
  811. package/plugins/access/spaces/shared/names.d.ts +70 -0
  812. package/plugins/access/spaces/shared/names.js +105 -0
  813. package/plugins/access/spaces/shared/personal.d.ts +8 -0
  814. package/plugins/access/spaces/shared/personal.js +13 -0
  815. package/plugins/access/spaces/shared/profile.d.ts +21 -0
  816. package/plugins/access/spaces/shared/profile.js +27 -0
  817. package/plugins/access/spaces/shared/reach.d.ts +145 -0
  818. package/plugins/access/spaces/shared/reach.js +443 -0
  819. package/plugins/access/spaces/shared/rules.d.ts +47 -0
  820. package/plugins/access/spaces/shared/rules.js +152 -0
  821. package/plugins/access/spaces/shared/seat.d.ts +15 -0
  822. package/plugins/access/spaces/shared/seat.js +44 -0
  823. package/plugins/access/spaces/terminal.d.ts +7 -0
  824. package/plugins/access/spaces/terminal.js +14 -0
  825. package/plugins/access/spaces/views/elsewhere.d.ts +16 -0
  826. package/plugins/access/spaces/views/elsewhere.js +53 -0
  827. package/plugins/access/spaces/views/terminal/spaces.d.ts +10 -0
  828. package/plugins/access/spaces/views/terminal/spaces.js +3 -0
  829. package/plugins/access/spaces/views/web/agents.d.ts +44 -0
  830. package/plugins/access/spaces/views/web/agents.js +94 -0
  831. package/plugins/access/spaces/views/web/header.d.ts +29 -0
  832. package/plugins/access/spaces/views/web/header.js +97 -0
  833. package/plugins/access/spaces/views/web/invitation.d.ts +17 -0
  834. package/plugins/access/spaces/views/web/invitation.js +41 -0
  835. package/plugins/access/spaces/views/web/invitations.d.ts +12 -0
  836. package/plugins/access/spaces/views/web/invitations.js +24 -0
  837. package/plugins/access/spaces/views/web/invite-dialog.d.ts +21 -0
  838. package/plugins/access/spaces/views/web/invite-dialog.js +17 -0
  839. package/plugins/access/spaces/views/web/invite.d.ts +18 -0
  840. package/plugins/access/spaces/views/web/invite.js +59 -0
  841. package/plugins/access/spaces/views/web/invited.d.ts +9 -0
  842. package/plugins/access/spaces/views/web/invited.js +12 -0
  843. package/plugins/access/spaces/views/web/inviting.d.ts +15 -0
  844. package/plugins/access/spaces/views/web/inviting.js +54 -0
  845. package/plugins/access/spaces/views/web/members.d.ts +19 -0
  846. package/plugins/access/spaces/views/web/members.js +160 -0
  847. package/plugins/access/spaces/views/web/new-space.d.ts +5 -0
  848. package/plugins/access/spaces/views/web/new-space.js +42 -0
  849. package/plugins/access/spaces/views/web/not-here.d.ts +14 -0
  850. package/plugins/access/spaces/views/web/not-here.js +89 -0
  851. package/plugins/access/spaces/views/web/org-about.d.ts +12 -0
  852. package/plugins/access/spaces/views/web/org-about.js +89 -0
  853. package/plugins/access/spaces/views/web/org-members.d.ts +16 -0
  854. package/plugins/access/spaces/views/web/org-members.js +244 -0
  855. package/plugins/access/spaces/views/web/palette.d.ts +17 -0
  856. package/plugins/access/spaces/views/web/palette.js +156 -0
  857. package/plugins/access/spaces/views/web/panel.d.ts +14 -0
  858. package/plugins/access/spaces/views/web/panel.js +70 -0
  859. package/plugins/access/spaces/views/web/pending.d.ts +17 -0
  860. package/plugins/access/spaces/views/web/pending.js +34 -0
  861. package/plugins/access/spaces/views/web/pick.d.ts +21 -0
  862. package/plugins/access/spaces/views/web/pick.js +63 -0
  863. package/plugins/access/spaces/views/web/sections.d.ts +31 -0
  864. package/plugins/access/spaces/views/web/sections.js +23 -0
  865. package/plugins/access/spaces/views/web/settings.d.ts +13 -0
  866. package/plugins/access/spaces/views/web/settings.js +185 -0
  867. package/plugins/access/spaces/views/web/space.d.ts +17 -0
  868. package/plugins/access/spaces/views/web/space.js +85 -0
  869. package/plugins/access/spaces/views/web/spaces.d.ts +16 -0
  870. package/plugins/access/spaces/views/web/spaces.js +33 -0
  871. package/plugins/access/spaces/views/web/steps.d.ts +19 -0
  872. package/plugins/access/spaces/views/web/steps.js +122 -0
  873. package/plugins/access/spaces/views/web/style.d.ts +9 -0
  874. package/plugins/access/spaces/views/web/style.js +279 -0
  875. package/plugins/access/spaces/views/web/tabs.d.ts +39 -0
  876. package/plugins/access/spaces/views/web/tabs.js +41 -0
  877. package/plugins/access/spaces/views/web/tree.d.ts +52 -0
  878. package/plugins/access/spaces/views/web/tree.js +127 -0
  879. package/plugins/access/spaces/views/web/who.d.ts +102 -0
  880. package/plugins/access/spaces/views/web/who.js +150 -0
  881. package/plugins/access/spaces/views/web/words.d.ts +1 -0
  882. package/plugins/access/spaces/views/web/words.js +291 -0
  883. package/plugins/access/spaces/views/where.d.ts +11 -0
  884. package/plugins/access/spaces/views/where.js +48 -0
  885. package/plugins/access/spaces/web.d.ts +35 -0
  886. package/plugins/access/spaces/web.js +138 -0
  887. package/plugins/access/terminal.d.ts +2 -0
  888. package/plugins/access/terminal.js +2 -0
  889. package/plugins/access/web.d.ts +4 -0
  890. package/plugins/access/web.js +4 -0
  891. package/plugins/agents/chat/actions/approve.d.ts +1 -0
  892. package/plugins/agents/chat/actions/approve.js +109 -0
  893. package/plugins/agents/chat/actions/archive.d.ts +1 -0
  894. package/plugins/agents/chat/actions/archive.js +95 -0
  895. package/plugins/agents/chat/actions/attach.d.ts +3 -0
  896. package/plugins/agents/chat/actions/attach.js +92 -0
  897. package/plugins/agents/chat/actions/erase.d.ts +1 -0
  898. package/plugins/agents/chat/actions/erase.js +47 -0
  899. package/plugins/agents/chat/actions/forget-grant.d.ts +1 -0
  900. package/plugins/agents/chat/actions/forget-grant.js +16 -0
  901. package/plugins/agents/chat/actions/fork.d.ts +1 -0
  902. package/plugins/agents/chat/actions/fork.js +47 -0
  903. package/plugins/agents/chat/actions/import.d.ts +1 -0
  904. package/plugins/agents/chat/actions/import.js +244 -0
  905. package/plugins/agents/chat/actions/move.d.ts +1 -0
  906. package/plugins/agents/chat/actions/move.js +55 -0
  907. package/plugins/agents/chat/actions/notes.d.ts +1 -0
  908. package/plugins/agents/chat/actions/notes.js +48 -0
  909. package/plugins/agents/chat/actions/open.d.ts +1 -0
  910. package/plugins/agents/chat/actions/open.js +77 -0
  911. package/plugins/agents/chat/actions/prune.d.ts +3 -0
  912. package/plugins/agents/chat/actions/prune.js +20 -0
  913. package/plugins/agents/chat/actions/quiet.d.ts +1 -0
  914. package/plugins/agents/chat/actions/quiet.js +33 -0
  915. package/plugins/agents/chat/actions/rename.d.ts +1 -0
  916. package/plugins/agents/chat/actions/rename.js +49 -0
  917. package/plugins/agents/chat/actions/say.d.ts +1 -0
  918. package/plugins/agents/chat/actions/say.js +168 -0
  919. package/plugins/agents/chat/actions/send.d.ts +11 -0
  920. package/plugins/agents/chat/actions/send.js +419 -0
  921. package/plugins/agents/chat/actions/shown.d.ts +1 -0
  922. package/plugins/agents/chat/actions/shown.js +35 -0
  923. package/plugins/agents/chat/actions/stop.d.ts +1 -0
  924. package/plugins/agents/chat/actions/stop.js +81 -0
  925. package/plugins/agents/chat/actions/unmark.d.ts +1 -0
  926. package/plugins/agents/chat/actions/unmark.js +100 -0
  927. package/plugins/agents/chat/actions/welcomed.d.ts +1 -0
  928. package/plugins/agents/chat/actions/welcomed.js +20 -0
  929. package/plugins/agents/chat/channels.d.ts +27 -0
  930. package/plugins/agents/chat/channels.js +124 -0
  931. package/plugins/agents/chat/collections/approval.d.ts +300 -0
  932. package/plugins/agents/chat/collections/approval.js +107 -0
  933. package/plugins/agents/chat/collections/file.d.ts +214 -0
  934. package/plugins/agents/chat/collections/file.js +108 -0
  935. package/plugins/agents/chat/collections/grant.d.ts +107 -0
  936. package/plugins/agents/chat/collections/grant.js +47 -0
  937. package/plugins/agents/chat/collections/intent.d.ts +176 -0
  938. package/plugins/agents/chat/collections/intent.js +73 -0
  939. package/plugins/agents/chat/collections/live.d.ts +159 -0
  940. package/plugins/agents/chat/collections/live.js +75 -0
  941. package/plugins/agents/chat/collections/message.d.ts +557 -0
  942. package/plugins/agents/chat/collections/message.js +250 -0
  943. package/plugins/agents/chat/collections/shown.d.ts +98 -0
  944. package/plugins/agents/chat/collections/shown.js +34 -0
  945. package/plugins/agents/chat/collections/thread.d.ts +260 -0
  946. package/plugins/agents/chat/collections/thread.js +192 -0
  947. package/plugins/agents/chat/collections/wait.d.ts +98 -0
  948. package/plugins/agents/chat/collections/wait.js +23 -0
  949. package/plugins/agents/chat/collections/welcome.d.ts +16 -0
  950. package/plugins/agents/chat/collections/welcome.js +27 -0
  951. package/plugins/agents/chat/contract.d.ts +71 -0
  952. package/plugins/agents/chat/contract.js +45 -0
  953. package/plugins/agents/chat/events/turn-requested.d.ts +3 -0
  954. package/plugins/agents/chat/events/turn-requested.js +15 -0
  955. package/plugins/agents/chat/mod.d.ts +134 -0
  956. package/plugins/agents/chat/mod.js +310 -0
  957. package/plugins/agents/chat/processors/failed.d.ts +3 -0
  958. package/plugins/agents/chat/processors/failed.js +60 -0
  959. package/plugins/agents/chat/processors/turn.d.ts +17 -0
  960. package/plugins/agents/chat/processors/turn.js +474 -0
  961. package/plugins/agents/chat/resources/commands.d.ts +17 -0
  962. package/plugins/agents/chat/resources/commands.js +406 -0
  963. package/plugins/agents/chat/resources/tools.d.ts +3 -0
  964. package/plugins/agents/chat/resources/tools.js +136 -0
  965. package/plugins/agents/chat/routes/files.d.ts +39 -0
  966. package/plugins/agents/chat/routes/files.js +169 -0
  967. package/plugins/agents/chat/shared/agents.d.ts +87 -0
  968. package/plugins/agents/chat/shared/agents.js +114 -0
  969. package/plugins/agents/chat/shared/asks.d.ts +81 -0
  970. package/plugins/agents/chat/shared/asks.js +203 -0
  971. package/plugins/agents/chat/shared/chat-of.d.ts +27 -0
  972. package/plugins/agents/chat/shared/chat-of.js +32 -0
  973. package/plugins/agents/chat/shared/contact-send.d.ts +32 -0
  974. package/plugins/agents/chat/shared/contact-send.js +18 -0
  975. package/plugins/agents/chat/shared/delivery.d.ts +68 -0
  976. package/plugins/agents/chat/shared/delivery.js +294 -0
  977. package/plugins/agents/chat/shared/lineage.d.ts +44 -0
  978. package/plugins/agents/chat/shared/lineage.js +88 -0
  979. package/plugins/agents/chat/shared/live.d.ts +44 -0
  980. package/plugins/agents/chat/shared/live.js +88 -0
  981. package/plugins/agents/chat/shared/notes.d.ts +28 -0
  982. package/plugins/agents/chat/shared/notes.js +35 -0
  983. package/plugins/agents/chat/shared/origin.d.ts +22 -0
  984. package/plugins/agents/chat/shared/origin.js +11 -0
  985. package/plugins/agents/chat/shared/send.d.ts +55 -0
  986. package/plugins/agents/chat/shared/send.js +380 -0
  987. package/plugins/agents/chat/shared/share.d.ts +48 -0
  988. package/plugins/agents/chat/shared/share.js +67 -0
  989. package/plugins/agents/chat/shared/summary.d.ts +65 -0
  990. package/plugins/agents/chat/shared/summary.js +41 -0
  991. package/plugins/agents/chat/shared/threads.d.ts +50 -0
  992. package/plugins/agents/chat/shared/threads.js +15 -0
  993. package/plugins/agents/chat/shared/tools.d.ts +42 -0
  994. package/plugins/agents/chat/shared/tools.js +61 -0
  995. package/plugins/agents/chat/shared/types.d.ts +404 -0
  996. package/plugins/agents/chat/shared/types.js +9 -0
  997. package/plugins/agents/chat/shared/unmark.d.ts +145 -0
  998. package/plugins/agents/chat/shared/unmark.js +237 -0
  999. package/plugins/agents/chat/shared/where.d.ts +20 -0
  1000. package/plugins/agents/chat/shared/where.js +18 -0
  1001. package/plugins/agents/chat/terminal.d.ts +12 -0
  1002. package/plugins/agents/chat/terminal.js +34 -0
  1003. package/plugins/agents/chat/views/asked.d.ts +35 -0
  1004. package/plugins/agents/chat/views/asked.js +89 -0
  1005. package/plugins/agents/chat/views/context.d.ts +11 -0
  1006. package/plugins/agents/chat/views/context.js +9 -0
  1007. package/plugins/agents/chat/views/held.d.ts +10 -0
  1008. package/plugins/agents/chat/views/held.js +10 -0
  1009. package/plugins/agents/chat/views/history.d.ts +16 -0
  1010. package/plugins/agents/chat/views/history.js +3 -0
  1011. package/plugins/agents/chat/views/message.d.ts +12 -0
  1012. package/plugins/agents/chat/views/message.js +110 -0
  1013. package/plugins/agents/chat/views/participants.d.ts +8 -0
  1014. package/plugins/agents/chat/views/participants.js +26 -0
  1015. package/plugins/agents/chat/views/prompt.d.ts +12 -0
  1016. package/plugins/agents/chat/views/prompt.js +115 -0
  1017. package/plugins/agents/chat/views/seen.d.ts +7 -0
  1018. package/plugins/agents/chat/views/seen.js +7 -0
  1019. package/plugins/agents/chat/views/terminal/agent-prompt.d.ts +7 -0
  1020. package/plugins/agents/chat/views/terminal/agent-prompt.js +18 -0
  1021. package/plugins/agents/chat/views/terminal/asks.d.ts +14 -0
  1022. package/plugins/agents/chat/views/terminal/asks.js +35 -0
  1023. package/plugins/agents/chat/views/terminal/author.d.ts +7 -0
  1024. package/plugins/agents/chat/views/terminal/author.js +11 -0
  1025. package/plugins/agents/chat/views/terminal/conversation.d.ts +5 -0
  1026. package/plugins/agents/chat/views/terminal/conversation.js +24 -0
  1027. package/plugins/agents/chat/views/terminal/live.d.ts +4 -0
  1028. package/plugins/agents/chat/views/terminal/live.js +16 -0
  1029. package/plugins/agents/chat/views/terminal/message.d.ts +4 -0
  1030. package/plugins/agents/chat/views/terminal/message.js +34 -0
  1031. package/plugins/agents/chat/views/terminal/moving.d.ts +11 -0
  1032. package/plugins/agents/chat/views/terminal/moving.js +27 -0
  1033. package/plugins/agents/chat/views/terminal/retrying.d.ts +7 -0
  1034. package/plugins/agents/chat/views/terminal/retrying.js +22 -0
  1035. package/plugins/agents/chat/views/terminal/threads.d.ts +13 -0
  1036. package/plugins/agents/chat/views/terminal/threads.js +2 -0
  1037. package/plugins/agents/chat/views/web/add.d.ts +33 -0
  1038. package/plugins/agents/chat/views/web/add.js +88 -0
  1039. package/plugins/agents/chat/views/web/agents.d.ts +89 -0
  1040. package/plugins/agents/chat/views/web/agents.js +107 -0
  1041. package/plugins/agents/chat/views/web/archive.d.ts +42 -0
  1042. package/plugins/agents/chat/views/web/archive.js +45 -0
  1043. package/plugins/agents/chat/views/web/archived-note.d.ts +15 -0
  1044. package/plugins/agents/chat/views/web/archived-note.js +26 -0
  1045. package/plugins/agents/chat/views/web/archived.d.ts +14 -0
  1046. package/plugins/agents/chat/views/web/archived.js +26 -0
  1047. package/plugins/agents/chat/views/web/asking.d.ts +15 -0
  1048. package/plugins/agents/chat/views/web/asking.js +50 -0
  1049. package/plugins/agents/chat/views/web/asks.d.ts +42 -0
  1050. package/plugins/agents/chat/views/web/asks.js +170 -0
  1051. package/plugins/agents/chat/views/web/attach.d.ts +28 -0
  1052. package/plugins/agents/chat/views/web/attach.js +37 -0
  1053. package/plugins/agents/chat/views/web/before-send.d.ts +9 -0
  1054. package/plugins/agents/chat/views/web/before-send.js +7 -0
  1055. package/plugins/agents/chat/views/web/chat-row.d.ts +25 -0
  1056. package/plugins/agents/chat/views/web/chat-row.js +41 -0
  1057. package/plugins/agents/chat/views/web/chats.d.ts +24 -0
  1058. package/plugins/agents/chat/views/web/chats.js +138 -0
  1059. package/plugins/agents/chat/views/web/composer.d.ts +135 -0
  1060. package/plugins/agents/chat/views/web/composer.js +504 -0
  1061. package/plugins/agents/chat/views/web/conversation.d.ts +94 -0
  1062. package/plugins/agents/chat/views/web/conversation.js +351 -0
  1063. package/plugins/agents/chat/views/web/download.d.ts +8 -0
  1064. package/plugins/agents/chat/views/web/download.js +8 -0
  1065. package/plugins/agents/chat/views/web/file.d.ts +23 -0
  1066. package/plugins/agents/chat/views/web/file.js +15 -0
  1067. package/plugins/agents/chat/views/web/handed.d.ts +17 -0
  1068. package/plugins/agents/chat/views/web/handed.js +47 -0
  1069. package/plugins/agents/chat/views/web/header.d.ts +48 -0
  1070. package/plugins/agents/chat/views/web/header.js +34 -0
  1071. package/plugins/agents/chat/views/web/held.d.ts +17 -0
  1072. package/plugins/agents/chat/views/web/held.js +51 -0
  1073. package/plugins/agents/chat/views/web/home.d.ts +27 -0
  1074. package/plugins/agents/chat/views/web/home.js +122 -0
  1075. package/plugins/agents/chat/views/web/lane.d.ts +11 -0
  1076. package/plugins/agents/chat/views/web/lane.js +44 -0
  1077. package/plugins/agents/chat/views/web/listed.d.ts +33 -0
  1078. package/plugins/agents/chat/views/web/listed.js +67 -0
  1079. package/plugins/agents/chat/views/web/live.d.ts +14 -0
  1080. package/plugins/agents/chat/views/web/live.js +37 -0
  1081. package/plugins/agents/chat/views/web/message.d.ts +34 -0
  1082. package/plugins/agents/chat/views/web/message.js +112 -0
  1083. package/plugins/agents/chat/views/web/missing.d.ts +5 -0
  1084. package/plugins/agents/chat/views/web/missing.js +6 -0
  1085. package/plugins/agents/chat/views/web/move.d.ts +23 -0
  1086. package/plugins/agents/chat/views/web/move.js +55 -0
  1087. package/plugins/agents/chat/views/web/moving.d.ts +21 -0
  1088. package/plugins/agents/chat/views/web/moving.js +46 -0
  1089. package/plugins/agents/chat/views/web/new-thread.d.ts +10 -0
  1090. package/plugins/agents/chat/views/web/new-thread.js +13 -0
  1091. package/plugins/agents/chat/views/web/notes-lane.d.ts +74 -0
  1092. package/plugins/agents/chat/views/web/notes-lane.js +67 -0
  1093. package/plugins/agents/chat/views/web/notes.d.ts +16 -0
  1094. package/plugins/agents/chat/views/web/notes.js +36 -0
  1095. package/plugins/agents/chat/views/web/over.d.ts +24 -0
  1096. package/plugins/agents/chat/views/web/over.js +28 -0
  1097. package/plugins/agents/chat/views/web/palette.d.ts +18 -0
  1098. package/plugins/agents/chat/views/web/palette.js +157 -0
  1099. package/plugins/agents/chat/views/web/picture.d.ts +12 -0
  1100. package/plugins/agents/chat/views/web/picture.js +17 -0
  1101. package/plugins/agents/chat/views/web/plain.d.ts +15 -0
  1102. package/plugins/agents/chat/views/web/plain.js +32 -0
  1103. package/plugins/agents/chat/views/web/queued.d.ts +19 -0
  1104. package/plugins/agents/chat/views/web/queued.js +28 -0
  1105. package/plugins/agents/chat/views/web/recent.d.ts +13 -0
  1106. package/plugins/agents/chat/views/web/recent.js +55 -0
  1107. package/plugins/agents/chat/views/web/record.d.ts +37 -0
  1108. package/plugins/agents/chat/views/web/record.js +230 -0
  1109. package/plugins/agents/chat/views/web/recorder.d.ts +23 -0
  1110. package/plugins/agents/chat/views/web/recorder.js +51 -0
  1111. package/plugins/agents/chat/views/web/rename.d.ts +15 -0
  1112. package/plugins/agents/chat/views/web/rename.js +29 -0
  1113. package/plugins/agents/chat/views/web/replies.d.ts +71 -0
  1114. package/plugins/agents/chat/views/web/replies.js +122 -0
  1115. package/plugins/agents/chat/views/web/retrying.d.ts +12 -0
  1116. package/plugins/agents/chat/views/web/retrying.js +29 -0
  1117. package/plugins/agents/chat/views/web/send-on.d.ts +29 -0
  1118. package/plugins/agents/chat/views/web/send-on.js +68 -0
  1119. package/plugins/agents/chat/views/web/shelf.d.ts +18 -0
  1120. package/plugins/agents/chat/views/web/shelf.js +14 -0
  1121. package/plugins/agents/chat/views/web/steps.d.ts +29 -0
  1122. package/plugins/agents/chat/views/web/steps.js +45 -0
  1123. package/plugins/agents/chat/views/web/style.d.ts +9 -0
  1124. package/plugins/agents/chat/views/web/style.js +572 -0
  1125. package/plugins/agents/chat/views/web/tool-view.d.ts +15 -0
  1126. package/plugins/agents/chat/views/web/tool-view.js +15 -0
  1127. package/plugins/agents/chat/views/web/transcript.d.ts +13 -0
  1128. package/plugins/agents/chat/views/web/transcript.js +58 -0
  1129. package/plugins/agents/chat/views/web/voice-failed.d.ts +15 -0
  1130. package/plugins/agents/chat/views/web/voice-failed.js +6 -0
  1131. package/plugins/agents/chat/views/web/voice-note.d.ts +20 -0
  1132. package/plugins/agents/chat/views/web/voice-note.js +20 -0
  1133. package/plugins/agents/chat/views/web/waiting.d.ts +10 -0
  1134. package/plugins/agents/chat/views/web/waiting.js +9 -0
  1135. package/plugins/agents/chat/views/web/waking.d.ts +12 -0
  1136. package/plugins/agents/chat/views/web/waking.js +30 -0
  1137. package/plugins/agents/chat/views/web/welcome.d.ts +25 -0
  1138. package/plugins/agents/chat/views/web/welcome.js +44 -0
  1139. package/plugins/agents/chat/views/web/who.d.ts +15 -0
  1140. package/plugins/agents/chat/views/web/who.js +18 -0
  1141. package/plugins/agents/chat/views/web/words.d.ts +1 -0
  1142. package/plugins/agents/chat/views/web/words.js +384 -0
  1143. package/plugins/agents/chat/web.d.ts +71 -0
  1144. package/plugins/agents/chat/web.js +131 -0
  1145. package/plugins/agents/contract.d.ts +12 -0
  1146. package/plugins/agents/contract.js +12 -0
  1147. package/plugins/agents/history/collections/outline.d.ts +195 -0
  1148. package/plugins/agents/history/collections/outline.js +44 -0
  1149. package/plugins/agents/history/collections/summary.d.ts +89 -0
  1150. package/plugins/agents/history/collections/summary.js +31 -0
  1151. package/plugins/agents/history/mod.d.ts +38 -0
  1152. package/plugins/agents/history/mod.js +61 -0
  1153. package/plugins/agents/history/processors/compact.d.ts +9 -0
  1154. package/plugins/agents/history/processors/compact.js +339 -0
  1155. package/plugins/agents/history/processors/erase.d.ts +3 -0
  1156. package/plugins/agents/history/processors/erase.js +11 -0
  1157. package/plugins/agents/history/resources/tools.d.ts +1 -0
  1158. package/plugins/agents/history/resources/tools.js +70 -0
  1159. package/plugins/agents/history/shared/lines.d.ts +28 -0
  1160. package/plugins/agents/history/shared/lines.js +48 -0
  1161. package/plugins/agents/history/shared/settings.d.ts +23 -0
  1162. package/plugins/agents/history/shared/settings.js +8 -0
  1163. package/plugins/agents/history/shared/summarized.d.ts +8 -0
  1164. package/plugins/agents/history/shared/summarized.js +9 -0
  1165. package/plugins/agents/history/shared/weight.d.ts +28 -0
  1166. package/plugins/agents/history/shared/weight.js +62 -0
  1167. package/plugins/agents/history/views/history.d.ts +15 -0
  1168. package/plugins/agents/history/views/history.js +59 -0
  1169. package/plugins/agents/history/views/since.d.ts +10 -0
  1170. package/plugins/agents/history/views/since.js +10 -0
  1171. package/plugins/agents/history/views/summary.d.ts +6 -0
  1172. package/plugins/agents/history/views/summary.js +8 -0
  1173. package/plugins/agents/memory/actions/import.d.ts +1 -0
  1174. package/plugins/agents/memory/actions/import.js +88 -0
  1175. package/plugins/agents/memory/collections/memory.d.ts +134 -0
  1176. package/plugins/agents/memory/collections/memory.js +77 -0
  1177. package/plugins/agents/memory/collections/progress.d.ts +19 -0
  1178. package/plugins/agents/memory/collections/progress.js +8 -0
  1179. package/plugins/agents/memory/mod.d.ts +48 -0
  1180. package/plugins/agents/memory/mod.js +106 -0
  1181. package/plugins/agents/memory/processors/extract.d.ts +12 -0
  1182. package/plugins/agents/memory/processors/extract.js +149 -0
  1183. package/plugins/agents/memory/resources/commands.d.ts +3 -0
  1184. package/plugins/agents/memory/resources/commands.js +13 -0
  1185. package/plugins/agents/memory/resources/context.d.ts +20 -0
  1186. package/plugins/agents/memory/resources/context.js +13 -0
  1187. package/plugins/agents/memory/resources/tools.d.ts +5 -0
  1188. package/plugins/agents/memory/resources/tools.js +153 -0
  1189. package/plugins/agents/memory/shared/scope.d.ts +82 -0
  1190. package/plugins/agents/memory/shared/scope.js +172 -0
  1191. package/plugins/agents/memory/shared/search.d.ts +32 -0
  1192. package/plugins/agents/memory/shared/search.js +108 -0
  1193. package/plugins/agents/memory/shared/settings.d.ts +41 -0
  1194. package/plugins/agents/memory/shared/settings.js +46 -0
  1195. package/plugins/agents/memory/terminal.d.ts +6 -0
  1196. package/plugins/agents/memory/terminal.js +13 -0
  1197. package/plugins/agents/memory/views/context.d.ts +8 -0
  1198. package/plugins/agents/memory/views/context.js +97 -0
  1199. package/plugins/agents/memory/views/memory.d.ts +5 -0
  1200. package/plugins/agents/memory/views/memory.js +4 -0
  1201. package/plugins/agents/memory/views/terminal/memory.d.ts +5 -0
  1202. package/plugins/agents/memory/views/terminal/memory.js +8 -0
  1203. package/plugins/agents/memory/views/web/card.d.ts +19 -0
  1204. package/plugins/agents/memory/views/web/card.js +25 -0
  1205. package/plugins/agents/memory/views/web/list.d.ts +28 -0
  1206. package/plugins/agents/memory/views/web/list.js +87 -0
  1207. package/plugins/agents/memory/views/web/memories.d.ts +15 -0
  1208. package/plugins/agents/memory/views/web/memories.js +39 -0
  1209. package/plugins/agents/memory/views/web/move.d.ts +13 -0
  1210. package/plugins/agents/memory/views/web/move.js +13 -0
  1211. package/plugins/agents/memory/views/web/palette.d.ts +11 -0
  1212. package/plugins/agents/memory/views/web/palette.js +42 -0
  1213. package/plugins/agents/memory/views/web/pick.d.ts +10 -0
  1214. package/plugins/agents/memory/views/web/pick.js +42 -0
  1215. package/plugins/agents/memory/views/web/style.d.ts +6 -0
  1216. package/plugins/agents/memory/views/web/style.js +41 -0
  1217. package/plugins/agents/memory/views/web/words.d.ts +1 -0
  1218. package/plugins/agents/memory/views/web/words.js +48 -0
  1219. package/plugins/agents/memory/web.d.ts +11 -0
  1220. package/plugins/agents/memory/web.js +34 -0
  1221. package/plugins/agents/mod.d.ts +24 -0
  1222. package/plugins/agents/mod.js +24 -0
  1223. package/plugins/agents/openapi/actions/operation.d.ts +11 -0
  1224. package/plugins/agents/openapi/actions/operation.js +86 -0
  1225. package/plugins/agents/openapi/contract.d.ts +77 -0
  1226. package/plugins/agents/openapi/contract.js +1 -0
  1227. package/plugins/agents/openapi/mod.d.ts +5 -0
  1228. package/plugins/agents/openapi/mod.js +75 -0
  1229. package/plugins/agents/openapi/resources/tools.d.ts +9 -0
  1230. package/plugins/agents/openapi/resources/tools.js +23 -0
  1231. package/plugins/agents/openapi/shared/files.d.ts +4 -0
  1232. package/plugins/agents/openapi/shared/files.js +128 -0
  1233. package/plugins/agents/openapi/shared/plan.d.ts +34 -0
  1234. package/plugins/agents/openapi/shared/plan.js +122 -0
  1235. package/plugins/agents/openapi/shared/request.d.ts +15 -0
  1236. package/plugins/agents/openapi/shared/request.js +87 -0
  1237. package/plugins/agents/openapi/shared/response.d.ts +24 -0
  1238. package/plugins/agents/openapi/shared/response.js +133 -0
  1239. package/plugins/agents/openapi/shared/schema.d.ts +20 -0
  1240. package/plugins/agents/openapi/shared/schema.js +128 -0
  1241. package/plugins/agents/openapi/shared/settings.d.ts +22 -0
  1242. package/plugins/agents/openapi/shared/settings.js +34 -0
  1243. package/plugins/agents/openapi/shared/spec.d.ts +55 -0
  1244. package/plugins/agents/openapi/shared/spec.js +99 -0
  1245. package/plugins/agents/routines/actions/create.d.ts +1 -0
  1246. package/plugins/agents/routines/actions/create.js +72 -0
  1247. package/plugins/agents/routines/actions/delete.d.ts +1 -0
  1248. package/plugins/agents/routines/actions/delete.js +20 -0
  1249. package/plugins/agents/routines/actions/fire.d.ts +1 -0
  1250. package/plugins/agents/routines/actions/fire.js +26 -0
  1251. package/plugins/agents/routines/actions/origin.d.ts +1 -0
  1252. package/plugins/agents/routines/actions/origin.js +32 -0
  1253. package/plugins/agents/routines/actions/pause.d.ts +1 -0
  1254. package/plugins/agents/routines/actions/pause.js +23 -0
  1255. package/plugins/agents/routines/actions/resume.d.ts +1 -0
  1256. package/plugins/agents/routines/actions/resume.js +26 -0
  1257. package/plugins/agents/routines/actions/run.d.ts +1 -0
  1258. package/plugins/agents/routines/actions/run.js +21 -0
  1259. package/plugins/agents/routines/actions/update.d.ts +1 -0
  1260. package/plugins/agents/routines/actions/update.js +88 -0
  1261. package/plugins/agents/routines/collections/routine.d.ts +149 -0
  1262. package/plugins/agents/routines/collections/routine.js +95 -0
  1263. package/plugins/agents/routines/collections/run.d.ts +108 -0
  1264. package/plugins/agents/routines/collections/run.js +31 -0
  1265. package/plugins/agents/routines/contract.d.ts +17 -0
  1266. package/plugins/agents/routines/contract.js +1 -0
  1267. package/plugins/agents/routines/mod.d.ts +38 -0
  1268. package/plugins/agents/routines/mod.js +79 -0
  1269. package/plugins/agents/routines/resources/tools.d.ts +2 -0
  1270. package/plugins/agents/routines/resources/tools.js +207 -0
  1271. package/plugins/agents/routines/shared/fire.d.ts +26 -0
  1272. package/plugins/agents/routines/shared/fire.js +101 -0
  1273. package/plugins/agents/routines/shared/routines.d.ts +118 -0
  1274. package/plugins/agents/routines/shared/routines.js +91 -0
  1275. package/plugins/agents/routines/shared/schedule.d.ts +148 -0
  1276. package/plugins/agents/routines/shared/schedule.js +347 -0
  1277. package/plugins/agents/routines/views/web/delete.d.ts +16 -0
  1278. package/plugins/agents/routines/views/web/delete.js +26 -0
  1279. package/plugins/agents/routines/views/web/form.d.ts +31 -0
  1280. package/plugins/agents/routines/views/web/form.js +102 -0
  1281. package/plugins/agents/routines/views/web/list.d.ts +16 -0
  1282. package/plugins/agents/routines/views/web/list.js +145 -0
  1283. package/plugins/agents/routines/views/web/new.d.ts +26 -0
  1284. package/plugins/agents/routines/views/web/new.js +37 -0
  1285. package/plugins/agents/routines/views/web/page.d.ts +15 -0
  1286. package/plugins/agents/routines/views/web/page.js +174 -0
  1287. package/plugins/agents/routines/views/web/palette.d.ts +16 -0
  1288. package/plugins/agents/routines/views/web/palette.js +145 -0
  1289. package/plugins/agents/routines/views/web/picker.d.ts +19 -0
  1290. package/plugins/agents/routines/views/web/picker.js +57 -0
  1291. package/plugins/agents/routines/views/web/routines.d.ts +66 -0
  1292. package/plugins/agents/routines/views/web/routines.js +110 -0
  1293. package/plugins/agents/routines/views/web/step.d.ts +12 -0
  1294. package/plugins/agents/routines/views/web/step.js +24 -0
  1295. package/plugins/agents/routines/views/web/style.d.ts +8 -0
  1296. package/plugins/agents/routines/views/web/style.js +196 -0
  1297. package/plugins/agents/routines/web.d.ts +17 -0
  1298. package/plugins/agents/routines/web.js +37 -0
  1299. package/plugins/agents/skills/actions/create.d.ts +1 -0
  1300. package/plugins/agents/skills/actions/create.js +43 -0
  1301. package/plugins/agents/skills/actions/delete.d.ts +1 -0
  1302. package/plugins/agents/skills/actions/delete.js +29 -0
  1303. package/plugins/agents/skills/actions/update.d.ts +1 -0
  1304. package/plugins/agents/skills/actions/update.js +58 -0
  1305. package/plugins/agents/skills/collections/skill-file.d.ts +62 -0
  1306. package/plugins/agents/skills/collections/skill-file.js +20 -0
  1307. package/plugins/agents/skills/collections/skill.d.ts +133 -0
  1308. package/plugins/agents/skills/collections/skill.js +105 -0
  1309. package/plugins/agents/skills/contract.d.ts +11 -0
  1310. package/plugins/agents/skills/contract.js +1 -0
  1311. package/plugins/agents/skills/mod.d.ts +31 -0
  1312. package/plugins/agents/skills/mod.js +80 -0
  1313. package/plugins/agents/skills/resources/planning.d.ts +11 -0
  1314. package/plugins/agents/skills/resources/planning.js +114 -0
  1315. package/plugins/agents/skills/resources/tools.d.ts +7 -0
  1316. package/plugins/agents/skills/resources/tools.js +57 -0
  1317. package/plugins/agents/skills/shared/check.d.ts +37 -0
  1318. package/plugins/agents/skills/shared/check.js +92 -0
  1319. package/plugins/agents/skills/shared/skill-md.d.ts +18 -0
  1320. package/plugins/agents/skills/shared/skill-md.js +63 -0
  1321. package/plugins/agents/skills/shared/skills.d.ts +53 -0
  1322. package/plugins/agents/skills/shared/skills.js +53 -0
  1323. package/plugins/agents/skills/shared/write.d.ts +72 -0
  1324. package/plugins/agents/skills/shared/write.js +54 -0
  1325. package/plugins/agents/skills/views/context.d.ts +14 -0
  1326. package/plugins/agents/skills/views/context.js +17 -0
  1327. package/plugins/agents/skills/views/web/delete.d.ts +19 -0
  1328. package/plugins/agents/skills/views/web/delete.js +27 -0
  1329. package/plugins/agents/skills/views/web/form.d.ts +28 -0
  1330. package/plugins/agents/skills/views/web/form.js +190 -0
  1331. package/plugins/agents/skills/views/web/list.d.ts +13 -0
  1332. package/plugins/agents/skills/views/web/list.js +88 -0
  1333. package/plugins/agents/skills/views/web/page.d.ts +13 -0
  1334. package/plugins/agents/skills/views/web/page.js +117 -0
  1335. package/plugins/agents/skills/views/web/palette.d.ts +21 -0
  1336. package/plugins/agents/skills/views/web/palette.js +133 -0
  1337. package/plugins/agents/skills/views/web/skills.d.ts +42 -0
  1338. package/plugins/agents/skills/views/web/skills.js +97 -0
  1339. package/plugins/agents/skills/views/web/step.d.ts +10 -0
  1340. package/plugins/agents/skills/views/web/step.js +26 -0
  1341. package/plugins/agents/skills/views/web/style.d.ts +8 -0
  1342. package/plugins/agents/skills/views/web/style.js +155 -0
  1343. package/plugins/agents/skills/web.d.ts +16 -0
  1344. package/plugins/agents/skills/web.js +37 -0
  1345. package/plugins/agents/terminal.d.ts +3 -0
  1346. package/plugins/agents/terminal.js +3 -0
  1347. package/plugins/agents/web.d.ts +6 -0
  1348. package/plugins/agents/web.js +6 -0
  1349. package/plugins/agents/webtools/adapters/duckduckgo.d.ts +21 -0
  1350. package/plugins/agents/webtools/adapters/duckduckgo.js +168 -0
  1351. package/plugins/agents/webtools/adapters/fake.d.ts +3 -0
  1352. package/plugins/agents/webtools/adapters/fake.js +8 -0
  1353. package/plugins/agents/webtools/adapters/serper.d.ts +2 -0
  1354. package/plugins/agents/webtools/adapters/serper.js +30 -0
  1355. package/plugins/agents/webtools/contract.d.ts +72 -0
  1356. package/plugins/agents/webtools/contract.js +1 -0
  1357. package/plugins/agents/webtools/mod.d.ts +55 -0
  1358. package/plugins/agents/webtools/mod.js +75 -0
  1359. package/plugins/agents/webtools/resources/tools.d.ts +2 -0
  1360. package/plugins/agents/webtools/resources/tools.js +82 -0
  1361. package/plugins/agents/webtools/shared/address.d.ts +9 -0
  1362. package/plugins/agents/webtools/shared/address.js +112 -0
  1363. package/plugins/agents/webtools/shared/read.d.ts +11 -0
  1364. package/plugins/agents/webtools/shared/read.js +129 -0
  1365. package/plugins/agents/webtools/shared/search.d.ts +15 -0
  1366. package/plugins/agents/webtools/shared/search.js +54 -0
  1367. package/plugins/agents/webtools/shared/settings.d.ts +20 -0
  1368. package/plugins/agents/webtools/shared/settings.js +21 -0
  1369. package/plugins/agents/webtools/shared/text.d.ts +15 -0
  1370. package/plugins/agents/webtools/shared/text.js +88 -0
  1371. package/plugins/billing/mod.d.ts +12 -0
  1372. package/plugins/billing/mod.js +12 -0
  1373. package/plugins/billing/terminal.d.ts +2 -0
  1374. package/plugins/billing/terminal.js +2 -0
  1375. package/plugins/billing/usage/actions/activity.d.ts +84 -0
  1376. package/plugins/billing/usage/actions/activity.js +310 -0
  1377. package/plugins/billing/usage/actions/close.d.ts +1 -0
  1378. package/plugins/billing/usage/actions/close.js +172 -0
  1379. package/plugins/billing/usage/actions/org.d.ts +30 -0
  1380. package/plugins/billing/usage/actions/org.js +64 -0
  1381. package/plugins/billing/usage/actions/quote.d.ts +7 -0
  1382. package/plugins/billing/usage/actions/quote.js +86 -0
  1383. package/plugins/billing/usage/actions/record.d.ts +1 -0
  1384. package/plugins/billing/usage/actions/record.js +25 -0
  1385. package/plugins/billing/usage/actions/rerate.d.ts +1 -0
  1386. package/plugins/billing/usage/actions/rerate.js +69 -0
  1387. package/plugins/billing/usage/collections/closed.d.ts +65 -0
  1388. package/plugins/billing/usage/collections/closed.js +22 -0
  1389. package/plugins/billing/usage/collections/rollup.d.ts +203 -0
  1390. package/plugins/billing/usage/collections/rollup.js +50 -0
  1391. package/plugins/billing/usage/collections/usage.d.ts +218 -0
  1392. package/plugins/billing/usage/collections/usage.js +75 -0
  1393. package/plugins/billing/usage/mod.d.ts +61 -0
  1394. package/plugins/billing/usage/mod.js +94 -0
  1395. package/plugins/billing/usage/resources/commands.d.ts +3 -0
  1396. package/plugins/billing/usage/resources/commands.js +21 -0
  1397. package/plugins/billing/usage/resources/ledger.d.ts +3 -0
  1398. package/plugins/billing/usage/resources/ledger.js +2 -0
  1399. package/plugins/billing/usage/shared/categories.d.ts +24 -0
  1400. package/plugins/billing/usage/shared/categories.js +40 -0
  1401. package/plugins/billing/usage/shared/days.d.ts +17 -0
  1402. package/plugins/billing/usage/shared/days.js +28 -0
  1403. package/plugins/billing/usage/shared/names.d.ts +45 -0
  1404. package/plugins/billing/usage/shared/names.js +60 -0
  1405. package/plugins/billing/usage/shared/rate.d.ts +79 -0
  1406. package/plugins/billing/usage/shared/rate.js +157 -0
  1407. package/plugins/billing/usage/shared/settings.d.ts +34 -0
  1408. package/plugins/billing/usage/shared/settings.js +18 -0
  1409. package/plugins/billing/usage/shared/totals.d.ts +80 -0
  1410. package/plugins/billing/usage/shared/totals.js +193 -0
  1411. package/plugins/billing/usage/shared/use.d.ts +42 -0
  1412. package/plugins/billing/usage/shared/use.js +51 -0
  1413. package/plugins/billing/usage/terminal.d.ts +6 -0
  1414. package/plugins/billing/usage/terminal.js +13 -0
  1415. package/plugins/billing/usage/views/terminal/totals.d.ts +9 -0
  1416. package/plugins/billing/usage/views/terminal/totals.js +48 -0
  1417. package/plugins/billing/usage/views/web/chart.d.ts +31 -0
  1418. package/plugins/billing/usage/views/web/chart.js +125 -0
  1419. package/plugins/billing/usage/views/web/numbers.d.ts +167 -0
  1420. package/plugins/billing/usage/views/web/numbers.js +330 -0
  1421. package/plugins/billing/usage/views/web/org.d.ts +129 -0
  1422. package/plugins/billing/usage/views/web/org.js +642 -0
  1423. package/plugins/billing/usage/views/web/style.d.ts +12 -0
  1424. package/plugins/billing/usage/views/web/style.js +199 -0
  1425. package/plugins/billing/usage/views/web/words.d.ts +1 -0
  1426. package/plugins/billing/usage/views/web/words.js +173 -0
  1427. package/plugins/billing/usage/web.d.ts +14 -0
  1428. package/plugins/billing/usage/web.js +22 -0
  1429. package/plugins/billing/web.d.ts +2 -0
  1430. package/plugins/billing/web.js +2 -0
  1431. package/plugins/compute/computers/actions/admit.d.ts +1 -0
  1432. package/plugins/compute/computers/actions/admit.js +62 -0
  1433. package/plugins/compute/computers/actions/allow-origin.d.ts +5 -0
  1434. package/plugins/compute/computers/actions/allow-origin.js +47 -0
  1435. package/plugins/compute/computers/actions/allowed.d.ts +1 -0
  1436. package/plugins/compute/computers/actions/allowed.js +50 -0
  1437. package/plugins/compute/computers/actions/claim-names.d.ts +1 -0
  1438. package/plugins/compute/computers/actions/claim-names.js +25 -0
  1439. package/plugins/compute/computers/actions/code.d.ts +1 -0
  1440. package/plugins/compute/computers/actions/code.js +52 -0
  1441. package/plugins/compute/computers/actions/connected.d.ts +1 -0
  1442. package/plugins/compute/computers/actions/connected.js +43 -0
  1443. package/plugins/compute/computers/actions/default.d.ts +1 -0
  1444. package/plugins/compute/computers/actions/default.js +23 -0
  1445. package/plugins/compute/computers/actions/domain.d.ts +4 -0
  1446. package/plugins/compute/computers/actions/domain.js +121 -0
  1447. package/plugins/compute/computers/actions/engine.d.ts +12 -0
  1448. package/plugins/compute/computers/actions/engine.js +167 -0
  1449. package/plugins/compute/computers/actions/engines.d.ts +16 -0
  1450. package/plugins/compute/computers/actions/engines.js +133 -0
  1451. package/plugins/compute/computers/actions/enrollment.d.ts +1 -0
  1452. package/plugins/compute/computers/actions/enrollment.js +51 -0
  1453. package/plugins/compute/computers/actions/env.d.ts +3 -0
  1454. package/plugins/compute/computers/actions/env.js +137 -0
  1455. package/plugins/compute/computers/actions/forget.d.ts +1 -0
  1456. package/plugins/compute/computers/actions/forget.js +30 -0
  1457. package/plugins/compute/computers/actions/gone.d.ts +1 -0
  1458. package/plugins/compute/computers/actions/gone.js +12 -0
  1459. package/plugins/compute/computers/actions/mark.d.ts +1 -0
  1460. package/plugins/compute/computers/actions/mark.js +36 -0
  1461. package/plugins/compute/computers/actions/move.d.ts +1 -0
  1462. package/plugins/compute/computers/actions/move.js +36 -0
  1463. package/plugins/compute/computers/actions/prepare.d.ts +13 -0
  1464. package/plugins/compute/computers/actions/prepare.js +98 -0
  1465. package/plugins/compute/computers/actions/preview.d.ts +43 -0
  1466. package/plugins/compute/computers/actions/preview.js +215 -0
  1467. package/plugins/compute/computers/actions/provision.d.ts +1 -0
  1468. package/plugins/compute/computers/actions/provision.js +51 -0
  1469. package/plugins/compute/computers/actions/publish.d.ts +3 -0
  1470. package/plugins/compute/computers/actions/publish.js +71 -0
  1471. package/plugins/compute/computers/actions/ready.d.ts +1 -0
  1472. package/plugins/compute/computers/actions/ready.js +53 -0
  1473. package/plugins/compute/computers/actions/rename.d.ts +1 -0
  1474. package/plugins/compute/computers/actions/rename.js +22 -0
  1475. package/plugins/compute/computers/actions/running.d.ts +1 -0
  1476. package/plugins/compute/computers/actions/running.js +33 -0
  1477. package/plugins/compute/computers/actions/scope.d.ts +1 -0
  1478. package/plugins/compute/computers/actions/scope.js +61 -0
  1479. package/plugins/compute/computers/actions/share.d.ts +1 -0
  1480. package/plugins/compute/computers/actions/share.js +44 -0
  1481. package/plugins/compute/computers/actions/unshare.d.ts +1 -0
  1482. package/plugins/compute/computers/actions/unshare.js +27 -0
  1483. package/plugins/compute/computers/actions/upgrade-asks.d.ts +1 -0
  1484. package/plugins/compute/computers/actions/upgrade-asks.js +29 -0
  1485. package/plugins/compute/computers/actions/upload.d.ts +1 -0
  1486. package/plugins/compute/computers/actions/upload.js +35 -0
  1487. package/plugins/compute/computers/actions/view.d.ts +1 -0
  1488. package/plugins/compute/computers/actions/view.js +29 -0
  1489. package/plugins/compute/computers/actions/watch.d.ts +7 -0
  1490. package/plugins/compute/computers/actions/watch.js +159 -0
  1491. package/plugins/compute/computers/actions/work.d.ts +1 -0
  1492. package/plugins/compute/computers/actions/work.js +80 -0
  1493. package/plugins/compute/computers/adapters/engine.d.ts +34 -0
  1494. package/plugins/compute/computers/adapters/engine.js +297 -0
  1495. package/plugins/compute/computers/collections/computer.d.ts +185 -0
  1496. package/plugins/compute/computers/collections/computer.js +69 -0
  1497. package/plugins/compute/computers/collections/desk.d.ts +182 -0
  1498. package/plugins/compute/computers/collections/desk.js +63 -0
  1499. package/plugins/compute/computers/collections/domain.d.ts +91 -0
  1500. package/plugins/compute/computers/collections/domain.js +39 -0
  1501. package/plugins/compute/computers/collections/enrollment.d.ts +64 -0
  1502. package/plugins/compute/computers/collections/enrollment.js +22 -0
  1503. package/plugins/compute/computers/collections/env-var.d.ts +115 -0
  1504. package/plugins/compute/computers/collections/env-var.js +51 -0
  1505. package/plugins/compute/computers/collections/job-watch.d.ts +141 -0
  1506. package/plugins/compute/computers/collections/job-watch.js +39 -0
  1507. package/plugins/compute/computers/collections/preview.d.ts +138 -0
  1508. package/plugins/compute/computers/collections/preview.js +98 -0
  1509. package/plugins/compute/computers/contract.d.ts +24 -0
  1510. package/plugins/compute/computers/contract.js +12 -0
  1511. package/plugins/compute/computers/mod.d.ts +68 -0
  1512. package/plugins/compute/computers/mod.js +224 -0
  1513. package/plugins/compute/computers/processors/left.d.ts +8 -0
  1514. package/plugins/compute/computers/processors/left.js +31 -0
  1515. package/plugins/compute/computers/program/agents/acp.d.ts +46 -0
  1516. package/plugins/compute/computers/program/agents/acp.js +479 -0
  1517. package/plugins/compute/computers/program/agents/claude.d.ts +4 -0
  1518. package/plugins/compute/computers/program/agents/claude.js +439 -0
  1519. package/plugins/compute/computers/program/agents/codex.d.ts +78 -0
  1520. package/plugins/compute/computers/program/agents/codex.js +580 -0
  1521. package/plugins/compute/computers/program/agents/cursor-runner.d.ts +28 -0
  1522. package/plugins/compute/computers/program/agents/cursor-runner.js +228 -0
  1523. package/plugins/compute/computers/program/agents/engines.d.ts +43 -0
  1524. package/plugins/compute/computers/program/agents/engines.js +539 -0
  1525. package/plugins/compute/computers/program/agents/grok.d.ts +2 -0
  1526. package/plugins/compute/computers/program/agents/grok.js +296 -0
  1527. package/plugins/compute/computers/program/agents/mcp.d.ts +28 -0
  1528. package/plugins/compute/computers/program/agents/mcp.js +252 -0
  1529. package/plugins/compute/computers/program/agents/permission.d.ts +11 -0
  1530. package/plugins/compute/computers/program/agents/permission.js +46 -0
  1531. package/plugins/compute/computers/program/agents/rpc.d.ts +37 -0
  1532. package/plugins/compute/computers/program/agents/rpc.js +192 -0
  1533. package/plugins/compute/computers/program/agents/steps.d.ts +68 -0
  1534. package/plugins/compute/computers/program/agents/steps.js +146 -0
  1535. package/plugins/compute/computers/program/agents/types.d.ts +153 -0
  1536. package/plugins/compute/computers/program/agents/types.js +13 -0
  1537. package/plugins/compute/computers/program/agents/write.d.ts +2 -0
  1538. package/plugins/compute/computers/program/agents/write.js +13 -0
  1539. package/plugins/compute/computers/program/browser/actions.d.ts +6 -0
  1540. package/plugins/compute/computers/program/browser/actions.js +256 -0
  1541. package/plugins/compute/computers/program/browser/async.d.ts +27 -0
  1542. package/plugins/compute/computers/program/browser/async.js +65 -0
  1543. package/plugins/compute/computers/program/browser/batch.d.ts +2 -0
  1544. package/plugins/compute/computers/program/browser/batch.js +46 -0
  1545. package/plugins/compute/computers/program/browser/cdp.d.ts +40 -0
  1546. package/plugins/compute/computers/program/browser/cdp.js +151 -0
  1547. package/plugins/compute/computers/program/browser/chrome.d.ts +64 -0
  1548. package/plugins/compute/computers/program/browser/chrome.js +250 -0
  1549. package/plugins/compute/computers/program/browser/control.d.ts +18 -0
  1550. package/plugins/compute/computers/program/browser/control.js +65 -0
  1551. package/plugins/compute/computers/program/browser/live.d.ts +95 -0
  1552. package/plugins/compute/computers/program/browser/live.js +345 -0
  1553. package/plugins/compute/computers/program/browser/math.d.ts +8 -0
  1554. package/plugins/compute/computers/program/browser/math.js +38 -0
  1555. package/plugins/compute/computers/program/browser/mod.d.ts +32 -0
  1556. package/plugins/compute/computers/program/browser/mod.js +202 -0
  1557. package/plugins/compute/computers/program/browser/page.d.ts +56 -0
  1558. package/plugins/compute/computers/program/browser/page.js +346 -0
  1559. package/plugins/compute/computers/program/browser/profile.d.ts +14 -0
  1560. package/plugins/compute/computers/program/browser/profile.js +79 -0
  1561. package/plugins/compute/computers/program/browser/refs.d.ts +35 -0
  1562. package/plugins/compute/computers/program/browser/refs.js +79 -0
  1563. package/plugins/compute/computers/program/browser/schema.d.ts +73 -0
  1564. package/plugins/compute/computers/program/browser/schema.js +73 -0
  1565. package/plugins/compute/computers/program/browser/session.d.ts +62 -0
  1566. package/plugins/compute/computers/program/browser/session.js +294 -0
  1567. package/plugins/compute/computers/program/browser/storage.d.ts +8 -0
  1568. package/plugins/compute/computers/program/browser/storage.js +70 -0
  1569. package/plugins/compute/computers/program/browser/types.d.ts +93 -0
  1570. package/plugins/compute/computers/program/browser/types.js +1 -0
  1571. package/plugins/compute/computers/program/computer.d.ts +72 -0
  1572. package/plugins/compute/computers/program/computer.js +313 -0
  1573. package/plugins/compute/computers/program/legacy-paths.d.ts +16 -0
  1574. package/plugins/compute/computers/program/legacy-paths.js +33 -0
  1575. package/plugins/compute/computers/program/mod.d.ts +8 -0
  1576. package/plugins/compute/computers/program/mod.js +8 -0
  1577. package/plugins/compute/computers/program/pool.d.ts +44 -0
  1578. package/plugins/compute/computers/program/pool.js +387 -0
  1579. package/plugins/compute/computers/program/release.d.ts +85 -0
  1580. package/plugins/compute/computers/program/release.js +88 -0
  1581. package/plugins/compute/computers/program/state.d.ts +78 -0
  1582. package/plugins/compute/computers/program/state.js +212 -0
  1583. package/plugins/compute/computers/program/update.d.ts +17 -0
  1584. package/plugins/compute/computers/program/update.js +144 -0
  1585. package/plugins/compute/computers/program/version.d.ts +2 -0
  1586. package/plugins/compute/computers/program/version.js +2 -0
  1587. package/plugins/compute/computers/program/workloads/agents.d.ts +32 -0
  1588. package/plugins/compute/computers/program/workloads/agents.js +46 -0
  1589. package/plugins/compute/computers/program/workloads/answer.d.ts +13 -0
  1590. package/plugins/compute/computers/program/workloads/answer.js +29 -0
  1591. package/plugins/compute/computers/program/workloads/archive.d.ts +6 -0
  1592. package/plugins/compute/computers/program/workloads/archive.js +128 -0
  1593. package/plugins/compute/computers/program/workloads/browser.d.ts +16 -0
  1594. package/plugins/compute/computers/program/workloads/browser.js +17 -0
  1595. package/plugins/compute/computers/program/workloads/files.d.ts +28 -0
  1596. package/plugins/compute/computers/program/workloads/files.js +393 -0
  1597. package/plugins/compute/computers/program/workloads/http.d.ts +26 -0
  1598. package/plugins/compute/computers/program/workloads/http.js +169 -0
  1599. package/plugins/compute/computers/program/workloads/info.d.ts +8 -0
  1600. package/plugins/compute/computers/program/workloads/info.js +22 -0
  1601. package/plugins/compute/computers/program/workloads/jobs.d.ts +54 -0
  1602. package/plugins/compute/computers/program/workloads/jobs.js +403 -0
  1603. package/plugins/compute/computers/program/workloads/ports.d.ts +5 -0
  1604. package/plugins/compute/computers/program/workloads/ports.js +160 -0
  1605. package/plugins/compute/computers/program/workloads/processes.d.ts +32 -0
  1606. package/plugins/compute/computers/program/workloads/processes.js +121 -0
  1607. package/plugins/compute/computers/program/workloads/search.d.ts +23 -0
  1608. package/plugins/compute/computers/program/workloads/search.js +170 -0
  1609. package/plugins/compute/computers/program/workloads/shell.d.ts +21 -0
  1610. package/plugins/compute/computers/program/workloads/shell.js +140 -0
  1611. package/plugins/compute/computers/program/workloads/sockets.d.ts +17 -0
  1612. package/plugins/compute/computers/program/workloads/sockets.js +86 -0
  1613. package/plugins/compute/computers/program/workloads/spaces.d.ts +13 -0
  1614. package/plugins/compute/computers/program/workloads/spaces.js +47 -0
  1615. package/plugins/compute/computers/program/workloads/streams.d.ts +20 -0
  1616. package/plugins/compute/computers/program/workloads/streams.js +94 -0
  1617. package/plugins/compute/computers/program/workloads/terminal.d.ts +30 -0
  1618. package/plugins/compute/computers/program/workloads/terminal.js +388 -0
  1619. package/plugins/compute/computers/resources/commands.d.ts +11 -0
  1620. package/plugins/compute/computers/resources/commands.js +122 -0
  1621. package/plugins/compute/computers/resources/downloads.d.ts +21 -0
  1622. package/plugins/compute/computers/resources/downloads.js +122 -0
  1623. package/plugins/compute/computers/resources/engines.d.ts +62 -0
  1624. package/plugins/compute/computers/resources/engines.js +62 -0
  1625. package/plugins/compute/computers/resources/preview-sockets.d.ts +28 -0
  1626. package/plugins/compute/computers/resources/preview-sockets.js +86 -0
  1627. package/plugins/compute/computers/resources/previews.d.ts +35 -0
  1628. package/plugins/compute/computers/resources/previews.js +436 -0
  1629. package/plugins/compute/computers/resources/tools.d.ts +8 -0
  1630. package/plugins/compute/computers/resources/tools.js +705 -0
  1631. package/plugins/compute/computers/routes/upload.d.ts +30 -0
  1632. package/plugins/compute/computers/routes/upload.js +169 -0
  1633. package/plugins/compute/computers/shared/ask.d.ts +63 -0
  1634. package/plugins/compute/computers/shared/ask.js +73 -0
  1635. package/plugins/compute/computers/shared/browser.d.ts +106 -0
  1636. package/plugins/compute/computers/shared/browser.js +89 -0
  1637. package/plugins/compute/computers/shared/claims.d.ts +26 -0
  1638. package/plugins/compute/computers/shared/claims.js +3 -0
  1639. package/plugins/compute/computers/shared/cost.d.ts +58 -0
  1640. package/plugins/compute/computers/shared/cost.js +70 -0
  1641. package/plugins/compute/computers/shared/desks.d.ts +28 -0
  1642. package/plugins/compute/computers/shared/desks.js +88 -0
  1643. package/plugins/compute/computers/shared/domains.d.ts +52 -0
  1644. package/plugins/compute/computers/shared/domains.js +123 -0
  1645. package/plugins/compute/computers/shared/engines.d.ts +87 -0
  1646. package/plugins/compute/computers/shared/engines.js +147 -0
  1647. package/plugins/compute/computers/shared/env.d.ts +20 -0
  1648. package/plugins/compute/computers/shared/env.js +50 -0
  1649. package/plugins/compute/computers/shared/failed.d.ts +3 -0
  1650. package/plugins/compute/computers/shared/failed.js +6 -0
  1651. package/plugins/compute/computers/shared/folder.d.ts +4 -0
  1652. package/plugins/compute/computers/shared/folder.js +13 -0
  1653. package/plugins/compute/computers/shared/hosts.d.ts +14 -0
  1654. package/plugins/compute/computers/shared/hosts.js +92 -0
  1655. package/plugins/compute/computers/shared/install.d.ts +8 -0
  1656. package/plugins/compute/computers/shared/install.js +8 -0
  1657. package/plugins/compute/computers/shared/jobs.d.ts +13 -0
  1658. package/plugins/compute/computers/shared/jobs.js +16 -0
  1659. package/plugins/compute/computers/shared/pool.d.ts +54 -0
  1660. package/plugins/compute/computers/shared/pool.js +25 -0
  1661. package/plugins/compute/computers/shared/preview-url.d.ts +5 -0
  1662. package/plugins/compute/computers/shared/preview-url.js +5 -0
  1663. package/plugins/compute/computers/shared/publish.d.ts +40 -0
  1664. package/plugins/compute/computers/shared/publish.js +116 -0
  1665. package/plugins/compute/computers/shared/seal.d.ts +4 -0
  1666. package/plugins/compute/computers/shared/seal.js +68 -0
  1667. package/plugins/compute/computers/shared/secret.d.ts +8 -0
  1668. package/plugins/compute/computers/shared/secret.js +24 -0
  1669. package/plugins/compute/computers/shared/served.d.ts +33 -0
  1670. package/plugins/compute/computers/shared/served.js +61 -0
  1671. package/plugins/compute/computers/shared/serving.d.ts +19 -0
  1672. package/plugins/compute/computers/shared/serving.js +15 -0
  1673. package/plugins/compute/computers/shared/settings.d.ts +87 -0
  1674. package/plugins/compute/computers/shared/settings.js +38 -0
  1675. package/plugins/compute/computers/shared/sockets.d.ts +67 -0
  1676. package/plugins/compute/computers/shared/sockets.js +296 -0
  1677. package/plugins/compute/computers/shared/streams.d.ts +13 -0
  1678. package/plugins/compute/computers/shared/streams.js +36 -0
  1679. package/plugins/compute/computers/shared/update.d.ts +29 -0
  1680. package/plugins/compute/computers/shared/update.js +39 -0
  1681. package/plugins/compute/computers/shared/upgrade.d.ts +42 -0
  1682. package/plugins/compute/computers/shared/upgrade.js +44 -0
  1683. package/plugins/compute/computers/shared/wake.d.ts +96 -0
  1684. package/plugins/compute/computers/shared/wake.js +139 -0
  1685. package/plugins/compute/computers/shared/where.d.ts +49 -0
  1686. package/plugins/compute/computers/shared/where.js +108 -0
  1687. package/plugins/compute/computers/shared/workloads.d.ts +527 -0
  1688. package/plugins/compute/computers/shared/workloads.js +68 -0
  1689. package/plugins/compute/computers/terminal.d.ts +8 -0
  1690. package/plugins/compute/computers/terminal.js +13 -0
  1691. package/plugins/compute/computers/views/context.d.ts +14 -0
  1692. package/plugins/compute/computers/views/context.js +140 -0
  1693. package/plugins/compute/computers/views/web/add.d.ts +41 -0
  1694. package/plugins/compute/computers/views/web/add.js +60 -0
  1695. package/plugins/compute/computers/views/web/allowed.d.ts +16 -0
  1696. package/plugins/compute/computers/views/web/allowed.js +38 -0
  1697. package/plugins/compute/computers/views/web/asked.d.ts +55 -0
  1698. package/plugins/compute/computers/views/web/asked.js +75 -0
  1699. package/plugins/compute/computers/views/web/asks.d.ts +17 -0
  1700. package/plugins/compute/computers/views/web/asks.js +22 -0
  1701. package/plugins/compute/computers/views/web/calls.d.ts +38 -0
  1702. package/plugins/compute/computers/views/web/calls.js +60 -0
  1703. package/plugins/compute/computers/views/web/computer.d.ts +17 -0
  1704. package/plugins/compute/computers/views/web/computer.js +45 -0
  1705. package/plugins/compute/computers/views/web/connect-flow.d.ts +45 -0
  1706. package/plugins/compute/computers/views/web/connect-flow.js +245 -0
  1707. package/plugins/compute/computers/views/web/connect-lines.d.ts +90 -0
  1708. package/plugins/compute/computers/views/web/connect-lines.js +111 -0
  1709. package/plugins/compute/computers/views/web/connect.d.ts +44 -0
  1710. package/plugins/compute/computers/views/web/connect.js +205 -0
  1711. package/plugins/compute/computers/views/web/cost.d.ts +25 -0
  1712. package/plugins/compute/computers/views/web/cost.js +56 -0
  1713. package/plugins/compute/computers/views/web/desks.d.ts +48 -0
  1714. package/plugins/compute/computers/views/web/desks.js +237 -0
  1715. package/plugins/compute/computers/views/web/diff.d.ts +15 -0
  1716. package/plugins/compute/computers/views/web/diff.js +66 -0
  1717. package/plugins/compute/computers/views/web/env.d.ts +32 -0
  1718. package/plugins/compute/computers/views/web/env.js +154 -0
  1719. package/plugins/compute/computers/views/web/environment.d.ts +23 -0
  1720. package/plugins/compute/computers/views/web/environment.js +47 -0
  1721. package/plugins/compute/computers/views/web/file-view.d.ts +27 -0
  1722. package/plugins/compute/computers/views/web/file-view.js +147 -0
  1723. package/plugins/compute/computers/views/web/files.d.ts +37 -0
  1724. package/plugins/compute/computers/views/web/files.js +223 -0
  1725. package/plugins/compute/computers/views/web/jobs.d.ts +39 -0
  1726. package/plugins/compute/computers/views/web/jobs.js +215 -0
  1727. package/plugins/compute/computers/views/web/kinds.d.ts +112 -0
  1728. package/plugins/compute/computers/views/web/kinds.js +37 -0
  1729. package/plugins/compute/computers/views/web/mark.d.ts +11 -0
  1730. package/plugins/compute/computers/views/web/mark.js +5 -0
  1731. package/plugins/compute/computers/views/web/move.d.ts +16 -0
  1732. package/plugins/compute/computers/views/web/move.js +10 -0
  1733. package/plugins/compute/computers/views/web/names.d.ts +39 -0
  1734. package/plugins/compute/computers/views/web/names.js +49 -0
  1735. package/plugins/compute/computers/views/web/page.d.ts +38 -0
  1736. package/plugins/compute/computers/views/web/page.js +91 -0
  1737. package/plugins/compute/computers/views/web/palette.d.ts +11 -0
  1738. package/plugins/compute/computers/views/web/palette.js +33 -0
  1739. package/plugins/compute/computers/views/web/plan-card.d.ts +28 -0
  1740. package/plugins/compute/computers/views/web/plan-card.js +58 -0
  1741. package/plugins/compute/computers/views/web/plan-shared.d.ts +11 -0
  1742. package/plugins/compute/computers/views/web/plan-shared.js +7 -0
  1743. package/plugins/compute/computers/views/web/plan-states.d.ts +196 -0
  1744. package/plugins/compute/computers/views/web/plan-states.js +271 -0
  1745. package/plugins/compute/computers/views/web/plans-data.d.ts +29 -0
  1746. package/plugins/compute/computers/views/web/plans-data.js +55 -0
  1747. package/plugins/compute/computers/views/web/plans-palette.d.ts +10 -0
  1748. package/plugins/compute/computers/views/web/plans-palette.js +36 -0
  1749. package/plugins/compute/computers/views/web/plans.d.ts +19 -0
  1750. package/plugins/compute/computers/views/web/plans.js +76 -0
  1751. package/plugins/compute/computers/views/web/platform.d.ts +8 -0
  1752. package/plugins/compute/computers/views/web/platform.js +58 -0
  1753. package/plugins/compute/computers/views/web/previews.d.ts +44 -0
  1754. package/plugins/compute/computers/views/web/previews.js +33 -0
  1755. package/plugins/compute/computers/views/web/publish.d.ts +25 -0
  1756. package/plugins/compute/computers/views/web/publish.js +114 -0
  1757. package/plugins/compute/computers/views/web/routine-panel.d.ts +14 -0
  1758. package/plugins/compute/computers/views/web/routine-panel.js +98 -0
  1759. package/plugins/compute/computers/views/web/serve.d.ts +48 -0
  1760. package/plugins/compute/computers/views/web/serve.js +180 -0
  1761. package/plugins/compute/computers/views/web/shell.d.ts +34 -0
  1762. package/plugins/compute/computers/views/web/shell.js +87 -0
  1763. package/plugins/compute/computers/views/web/space-tab.d.ts +17 -0
  1764. package/plugins/compute/computers/views/web/space-tab.js +87 -0
  1765. package/plugins/compute/computers/views/web/step.d.ts +16 -0
  1766. package/plugins/compute/computers/views/web/step.js +276 -0
  1767. package/plugins/compute/computers/views/web/style.d.ts +10 -0
  1768. package/plugins/compute/computers/views/web/style.js +669 -0
  1769. package/plugins/compute/computers/views/web/terminal-tab.d.ts +21 -0
  1770. package/plugins/compute/computers/views/web/terminal-tab.js +18 -0
  1771. package/plugins/compute/computers/views/web/transfer.d.ts +18 -0
  1772. package/plugins/compute/computers/views/web/transfer.js +42 -0
  1773. package/plugins/compute/computers/views/web/upload-tray.d.ts +70 -0
  1774. package/plugins/compute/computers/views/web/upload-tray.js +249 -0
  1775. package/plugins/compute/computers/views/web/uploads.d.ts +184 -0
  1776. package/plugins/compute/computers/views/web/uploads.js +425 -0
  1777. package/plugins/compute/computers/views/web/welcome.d.ts +18 -0
  1778. package/plugins/compute/computers/views/web/welcome.js +51 -0
  1779. package/plugins/compute/computers/views/web/words.d.ts +1 -0
  1780. package/plugins/compute/computers/views/web/words.js +265 -0
  1781. package/plugins/compute/computers/views/web/workspace.d.ts +46 -0
  1782. package/plugins/compute/computers/views/web/workspace.js +142 -0
  1783. package/plugins/compute/computers/views/web/yours.d.ts +11 -0
  1784. package/plugins/compute/computers/views/web/yours.js +33 -0
  1785. package/plugins/compute/computers/web.d.ts +44 -0
  1786. package/plugins/compute/computers/web.js +123 -0
  1787. package/plugins/compute/contract.d.ts +6 -0
  1788. package/plugins/compute/contract.js +6 -0
  1789. package/plugins/compute/google.d.ts +75 -0
  1790. package/plugins/compute/google.js +218 -0
  1791. package/plugins/compute/mod.d.ts +4 -0
  1792. package/plugins/compute/mod.js +4 -0
  1793. package/plugins/compute/web.d.ts +9 -0
  1794. package/plugins/compute/web.js +9 -0
  1795. package/plugins/interfaces/api/actions/create.d.ts +1 -0
  1796. package/plugins/interfaces/api/actions/create.js +89 -0
  1797. package/plugins/interfaces/api/actions/revoke.d.ts +2 -0
  1798. package/plugins/interfaces/api/actions/revoke.js +45 -0
  1799. package/plugins/interfaces/api/collections/key.d.ts +205 -0
  1800. package/plugins/interfaces/api/collections/key.js +73 -0
  1801. package/plugins/interfaces/api/contract.d.ts +33 -0
  1802. package/plugins/interfaces/api/contract.js +1 -0
  1803. package/plugins/interfaces/api/mod.d.ts +32 -0
  1804. package/plugins/interfaces/api/mod.js +55 -0
  1805. package/plugins/interfaces/api/processors/left.d.ts +7 -0
  1806. package/plugins/interfaces/api/processors/left.js +19 -0
  1807. package/plugins/interfaces/api/resources/presets.d.ts +9 -0
  1808. package/plugins/interfaces/api/resources/presets.js +17 -0
  1809. package/plugins/interfaces/api/shared/actor.d.ts +30 -0
  1810. package/plugins/interfaces/api/shared/actor.js +34 -0
  1811. package/plugins/interfaces/api/shared/end.d.ts +9 -0
  1812. package/plugins/interfaces/api/shared/end.js +10 -0
  1813. package/plugins/interfaces/api/shared/rules.d.ts +10 -0
  1814. package/plugins/interfaces/api/shared/rules.js +24 -0
  1815. package/plugins/interfaces/api/shared/secret.d.ts +7 -0
  1816. package/plugins/interfaces/api/shared/secret.js +11 -0
  1817. package/plugins/interfaces/api/views/web/catalog.d.ts +24 -0
  1818. package/plugins/interfaces/api/views/web/catalog.js +43 -0
  1819. package/plugins/interfaces/api/views/web/create.d.ts +23 -0
  1820. package/plugins/interfaces/api/views/web/create.js +138 -0
  1821. package/plugins/interfaces/api/views/web/keys.d.ts +30 -0
  1822. package/plugins/interfaces/api/views/web/keys.js +88 -0
  1823. package/plugins/interfaces/api/views/web/members.d.ts +13 -0
  1824. package/plugins/interfaces/api/views/web/members.js +35 -0
  1825. package/plugins/interfaces/api/views/web/palette.d.ts +9 -0
  1826. package/plugins/interfaces/api/views/web/palette.js +17 -0
  1827. package/plugins/interfaces/api/views/web/reference.d.ts +11 -0
  1828. package/plugins/interfaces/api/views/web/reference.js +36 -0
  1829. package/plugins/interfaces/api/views/web/snippet.d.ts +31 -0
  1830. package/plugins/interfaces/api/views/web/snippet.js +66 -0
  1831. package/plugins/interfaces/api/views/web/style.d.ts +8 -0
  1832. package/plugins/interfaces/api/views/web/style.js +134 -0
  1833. package/plugins/interfaces/api/web.d.ts +17 -0
  1834. package/plugins/interfaces/api/web.js +33 -0
  1835. package/plugins/interfaces/contract.d.ts +16 -0
  1836. package/plugins/interfaces/contract.js +14 -0
  1837. package/plugins/interfaces/maintenance/actions/read.d.ts +4 -0
  1838. package/plugins/interfaces/maintenance/actions/read.js +76 -0
  1839. package/plugins/interfaces/maintenance/actions/write.d.ts +4 -0
  1840. package/plugins/interfaces/maintenance/actions/write.js +64 -0
  1841. package/plugins/interfaces/maintenance/contract.d.ts +64 -0
  1842. package/plugins/interfaces/maintenance/contract.js +2 -0
  1843. package/plugins/interfaces/maintenance/mod.d.ts +57 -0
  1844. package/plugins/interfaces/maintenance/mod.js +69 -0
  1845. package/plugins/interfaces/maintenance/resources/routes.d.ts +65 -0
  1846. package/plugins/interfaces/maintenance/resources/routes.js +471 -0
  1847. package/plugins/interfaces/maintenance/shared/ops.d.ts +4 -0
  1848. package/plugins/interfaces/maintenance/shared/ops.js +19 -0
  1849. package/plugins/interfaces/mcp/actions/call.d.ts +15 -0
  1850. package/plugins/interfaces/mcp/actions/call.js +392 -0
  1851. package/plugins/interfaces/mcp/actions/conversation.d.ts +1 -0
  1852. package/plugins/interfaces/mcp/actions/conversation.js +49 -0
  1853. package/plugins/interfaces/mcp/actions/prune.d.ts +1 -0
  1854. package/plugins/interfaces/mcp/actions/prune.js +20 -0
  1855. package/plugins/interfaces/mcp/actions/public.d.ts +8 -0
  1856. package/plugins/interfaces/mcp/actions/public.js +81 -0
  1857. package/plugins/interfaces/mcp/collections/closed.d.ts +16 -0
  1858. package/plugins/interfaces/mcp/collections/closed.js +17 -0
  1859. package/plugins/interfaces/mcp/collections/opening.d.ts +17 -0
  1860. package/plugins/interfaces/mcp/collections/opening.js +28 -0
  1861. package/plugins/interfaces/mcp/collections/rate.d.ts +20 -0
  1862. package/plugins/interfaces/mcp/collections/rate.js +18 -0
  1863. package/plugins/interfaces/mcp/collections/receipt.d.ts +39 -0
  1864. package/plugins/interfaces/mcp/collections/receipt.js +46 -0
  1865. package/plugins/interfaces/mcp/contract.d.ts +8 -0
  1866. package/plugins/interfaces/mcp/contract.js +8 -0
  1867. package/plugins/interfaces/mcp/mod.d.ts +145 -0
  1868. package/plugins/interfaces/mcp/mod.js +196 -0
  1869. package/plugins/interfaces/mcp/processors/closed.d.ts +13 -0
  1870. package/plugins/interfaces/mcp/processors/closed.js +16 -0
  1871. package/plugins/interfaces/mcp/resources/limits.d.ts +38 -0
  1872. package/plugins/interfaces/mcp/resources/limits.js +77 -0
  1873. package/plugins/interfaces/mcp/resources/public.d.ts +45 -0
  1874. package/plugins/interfaces/mcp/resources/public.js +99 -0
  1875. package/plugins/interfaces/mcp/resources/running.d.ts +21 -0
  1876. package/plugins/interfaces/mcp/resources/running.js +36 -0
  1877. package/plugins/interfaces/mcp/resources/server.d.ts +60 -0
  1878. package/plugins/interfaces/mcp/resources/server.js +643 -0
  1879. package/plugins/interfaces/mcp/resources/tools.d.ts +183 -0
  1880. package/plugins/interfaces/mcp/resources/tools.js +432 -0
  1881. package/plugins/interfaces/mcp/resources/widgets.d.ts +161 -0
  1882. package/plugins/interfaces/mcp/resources/widgets.js +247 -0
  1883. package/plugins/interfaces/mcp/shared/keys.d.ts +56 -0
  1884. package/plugins/interfaces/mcp/shared/keys.js +99 -0
  1885. package/plugins/interfaces/mcp/shared/settings.d.ts +244 -0
  1886. package/plugins/interfaces/mcp/shared/settings.js +243 -0
  1887. package/plugins/interfaces/mcp/shared/shown.d.ts +20 -0
  1888. package/plugins/interfaces/mcp/shared/shown.js +31 -0
  1889. package/plugins/interfaces/mcp/views/offered.d.ts +19 -0
  1890. package/plugins/interfaces/mcp/views/offered.js +20 -0
  1891. package/plugins/interfaces/mod.d.ts +13 -0
  1892. package/plugins/interfaces/mod.js +13 -0
  1893. package/plugins/interfaces/push/actions/send.d.ts +4 -0
  1894. package/plugins/interfaces/push/actions/send.js +61 -0
  1895. package/plugins/interfaces/push/actions/subscribe.d.ts +3 -0
  1896. package/plugins/interfaces/push/actions/subscribe.js +95 -0
  1897. package/plugins/interfaces/push/collections/looking.d.ts +32 -0
  1898. package/plugins/interfaces/push/collections/looking.js +20 -0
  1899. package/plugins/interfaces/push/collections/subscription.d.ts +58 -0
  1900. package/plugins/interfaces/push/collections/subscription.js +40 -0
  1901. package/plugins/interfaces/push/contract.d.ts +34 -0
  1902. package/plugins/interfaces/push/contract.js +6 -0
  1903. package/plugins/interfaces/push/mod.d.ts +36 -0
  1904. package/plugins/interfaces/push/mod.js +68 -0
  1905. package/plugins/interfaces/push/processors/notify.d.ts +20 -0
  1906. package/plugins/interfaces/push/processors/notify.js +58 -0
  1907. package/plugins/interfaces/push/shared/deliver.d.ts +20 -0
  1908. package/plugins/interfaces/push/shared/deliver.js +68 -0
  1909. package/plugins/interfaces/push/shared/rules.d.ts +7 -0
  1910. package/plugins/interfaces/push/shared/rules.js +19 -0
  1911. package/plugins/interfaces/push/shared/settings.d.ts +12 -0
  1912. package/plugins/interfaces/push/shared/settings.js +12 -0
  1913. package/plugins/interfaces/push/shared/webpush.d.ts +42 -0
  1914. package/plugins/interfaces/push/shared/webpush.js +111 -0
  1915. package/plugins/interfaces/push/views/web/notifications.d.ts +17 -0
  1916. package/plugins/interfaces/push/views/web/notifications.js +99 -0
  1917. package/plugins/interfaces/push/views/web/words.d.ts +1 -0
  1918. package/plugins/interfaces/push/views/web/words.js +26 -0
  1919. package/plugins/interfaces/push/web.d.ts +12 -0
  1920. package/plugins/interfaces/push/web.js +22 -0
  1921. package/plugins/interfaces/terminal/actions/print.d.ts +1 -0
  1922. package/plugins/interfaces/terminal/actions/print.js +30 -0
  1923. package/plugins/interfaces/terminal/actions/set.d.ts +1 -0
  1924. package/plugins/interfaces/terminal/actions/set.js +38 -0
  1925. package/plugins/interfaces/terminal/collections/output.d.ts +36 -0
  1926. package/plugins/interfaces/terminal/collections/output.js +21 -0
  1927. package/plugins/interfaces/terminal/collections/shell.d.ts +42 -0
  1928. package/plugins/interfaces/terminal/collections/shell.js +30 -0
  1929. package/plugins/interfaces/terminal/mod.d.ts +13 -0
  1930. package/plugins/interfaces/terminal/mod.js +21 -0
  1931. package/plugins/interfaces/terminal/terminal.d.ts +18 -0
  1932. package/plugins/interfaces/terminal/terminal.js +30 -0
  1933. package/plugins/interfaces/terminal/views/default.d.ts +1 -0
  1934. package/plugins/interfaces/terminal/views/default.js +23 -0
  1935. package/plugins/interfaces/terminal/views/prompt.d.ts +7 -0
  1936. package/plugins/interfaces/terminal/views/prompt.js +5 -0
  1937. package/plugins/interfaces/terminal/views/shell.d.ts +5 -0
  1938. package/plugins/interfaces/terminal/views/shell.js +32 -0
  1939. package/plugins/interfaces/voice/actions/block.d.ts +2 -0
  1940. package/plugins/interfaces/voice/actions/block.js +74 -0
  1941. package/plugins/interfaces/voice/actions/call.d.ts +19 -0
  1942. package/plugins/interfaces/voice/actions/call.js +253 -0
  1943. package/plugins/interfaces/voice/actions/prune.d.ts +1 -0
  1944. package/plugins/interfaces/voice/actions/prune.js +43 -0
  1945. package/plugins/interfaces/voice/actions/ring.d.ts +6 -0
  1946. package/plugins/interfaces/voice/actions/ring.js +165 -0
  1947. package/plugins/interfaces/voice/collections/blocked.d.ts +80 -0
  1948. package/plugins/interfaces/voice/collections/blocked.js +34 -0
  1949. package/plugins/interfaces/voice/collections/call.d.ts +272 -0
  1950. package/plugins/interfaces/voice/collections/call.js +77 -0
  1951. package/plugins/interfaces/voice/collections/phone.d.ts +67 -0
  1952. package/plugins/interfaces/voice/collections/phone.js +26 -0
  1953. package/plugins/interfaces/voice/contract.d.ts +14 -0
  1954. package/plugins/interfaces/voice/contract.js +2 -0
  1955. package/plugins/interfaces/voice/mod.d.ts +56 -0
  1956. package/plugins/interfaces/voice/mod.js +124 -0
  1957. package/plugins/interfaces/voice/processors/forget.d.ts +13 -0
  1958. package/plugins/interfaces/voice/processors/forget.js +27 -0
  1959. package/plugins/interfaces/voice/resources/tools.d.ts +1 -0
  1960. package/plugins/interfaces/voice/resources/tools.js +27 -0
  1961. package/plugins/interfaces/voice/routes/hook.d.ts +21 -0
  1962. package/plugins/interfaces/voice/routes/hook.js +114 -0
  1963. package/plugins/interfaces/voice/routes/relay.d.ts +69 -0
  1964. package/plugins/interfaces/voice/routes/relay.js +437 -0
  1965. package/plugins/interfaces/voice/shared/caller.d.ts +27 -0
  1966. package/plugins/interfaces/voice/shared/caller.js +38 -0
  1967. package/plugins/interfaces/voice/shared/settings.d.ts +128 -0
  1968. package/plugins/interfaces/voice/shared/settings.js +115 -0
  1969. package/plugins/interfaces/voice/shared/signature.d.ts +11 -0
  1970. package/plugins/interfaces/voice/shared/signature.js +34 -0
  1971. package/plugins/interfaces/voice/views/call.d.ts +48 -0
  1972. package/plugins/interfaces/voice/views/call.js +42 -0
  1973. package/plugins/interfaces/voice/views/context.d.ts +9 -0
  1974. package/plugins/interfaces/voice/views/context.js +14 -0
  1975. package/plugins/interfaces/voice/views/message.d.ts +17 -0
  1976. package/plugins/interfaces/voice/views/message.js +41 -0
  1977. package/plugins/interfaces/web/actions/arrive.d.ts +1 -0
  1978. package/plugins/interfaces/web/actions/arrive.js +104 -0
  1979. package/plugins/interfaces/web/actions/prune.d.ts +1 -0
  1980. package/plugins/interfaces/web/actions/prune.js +51 -0
  1981. package/plugins/interfaces/web/actions/sending.d.ts +1 -0
  1982. package/plugins/interfaces/web/actions/sending.js +226 -0
  1983. package/plugins/interfaces/web/actions/spent.d.ts +2 -0
  1984. package/plugins/interfaces/web/actions/spent.js +59 -0
  1985. package/plugins/interfaces/web/collections/rate.d.ts +115 -0
  1986. package/plugins/interfaces/web/collections/rate.js +37 -0
  1987. package/plugins/interfaces/web/collections/visitor.d.ts +103 -0
  1988. package/plugins/interfaces/web/collections/visitor.js +69 -0
  1989. package/plugins/interfaces/web/contract.d.ts +32 -0
  1990. package/plugins/interfaces/web/contract.js +3 -0
  1991. package/plugins/interfaces/web/lines.d.ts +35 -0
  1992. package/plugins/interfaces/web/lines.js +83 -0
  1993. package/plugins/interfaces/web/mod.d.ts +79 -0
  1994. package/plugins/interfaces/web/mod.js +81 -0
  1995. package/plugins/interfaces/web/processors/forget.d.ts +10 -0
  1996. package/plugins/interfaces/web/processors/forget.js +14 -0
  1997. package/plugins/interfaces/web/resources/spend.d.ts +2 -0
  1998. package/plugins/interfaces/web/resources/spend.js +68 -0
  1999. package/plugins/interfaces/web/routes/arrive.d.ts +20 -0
  2000. package/plugins/interfaces/web/routes/arrive.js +92 -0
  2001. package/plugins/interfaces/web/shared/budget.d.ts +65 -0
  2002. package/plugins/interfaces/web/shared/budget.js +134 -0
  2003. package/plugins/interfaces/web/shared/lines.d.ts +147 -0
  2004. package/plugins/interfaces/web/shared/lines.js +147 -0
  2005. package/plugins/interfaces/web/shared/menu.d.ts +14 -0
  2006. package/plugins/interfaces/web/shared/menu.js +4 -0
  2007. package/plugins/interfaces/web/shared/orgs.d.ts +98 -0
  2008. package/plugins/interfaces/web/shared/orgs.js +72 -0
  2009. package/plugins/interfaces/web/shared/palette.d.ts +36 -0
  2010. package/plugins/interfaces/web/shared/palette.js +30 -0
  2011. package/plugins/interfaces/web/shared/panel.d.ts +28 -0
  2012. package/plugins/interfaces/web/shared/panel.js +29 -0
  2013. package/plugins/interfaces/web/shared/secret.d.ts +33 -0
  2014. package/plugins/interfaces/web/shared/secret.js +86 -0
  2015. package/plugins/interfaces/web/shared/sidebar.d.ts +22 -0
  2016. package/plugins/interfaces/web/shared/sidebar.js +29 -0
  2017. package/plugins/interfaces/web/shared/standing.d.ts +7 -0
  2018. package/plugins/interfaces/web/shared/standing.js +36 -0
  2019. package/plugins/interfaces/web/shared/style.d.ts +23 -0
  2020. package/plugins/interfaces/web/shared/style.js +130 -0
  2021. package/plugins/interfaces/web/views/default.d.ts +10 -0
  2022. package/plugins/interfaces/web/views/default.js +28 -0
  2023. package/plugins/interfaces/web/views/frame.d.ts +76 -0
  2024. package/plugins/interfaces/web/views/frame.js +171 -0
  2025. package/plugins/interfaces/web/views/me.d.ts +27 -0
  2026. package/plugins/interfaces/web/views/me.js +94 -0
  2027. package/plugins/interfaces/web/views/panel.d.ts +42 -0
  2028. package/plugins/interfaces/web/views/panel.js +62 -0
  2029. package/plugins/interfaces/web/views/rail.d.ts +41 -0
  2030. package/plugins/interfaces/web/views/rail.js +55 -0
  2031. package/plugins/interfaces/web/views/shell.d.ts +32 -0
  2032. package/plugins/interfaces/web/views/shell.js +54 -0
  2033. package/plugins/interfaces/web/views/words.d.ts +1 -0
  2034. package/plugins/interfaces/web/views/words.js +60 -0
  2035. package/plugins/interfaces/web.d.ts +5 -0
  2036. package/plugins/interfaces/web.js +5 -0
  2037. package/plugins/interfaces/whatsapp/actions/connect.d.ts +17 -0
  2038. package/plugins/interfaces/whatsapp/actions/connect.js +123 -0
  2039. package/plugins/interfaces/whatsapp/actions/disconnect.d.ts +2 -0
  2040. package/plugins/interfaces/whatsapp/actions/disconnect.js +58 -0
  2041. package/plugins/interfaces/whatsapp/actions/hook.d.ts +10 -0
  2042. package/plugins/interfaces/whatsapp/actions/hook.js +125 -0
  2043. package/plugins/interfaces/whatsapp/actions/link.d.ts +3 -0
  2044. package/plugins/interfaces/whatsapp/actions/link.js +90 -0
  2045. package/plugins/interfaces/whatsapp/actions/set.d.ts +8 -0
  2046. package/plugins/interfaces/whatsapp/actions/set.js +152 -0
  2047. package/plugins/interfaces/whatsapp/actions/template.d.ts +1 -0
  2048. package/plugins/interfaces/whatsapp/actions/template.js +89 -0
  2049. package/plugins/interfaces/whatsapp/collections/blocked.d.ts +22 -0
  2050. package/plugins/interfaces/whatsapp/collections/blocked.js +22 -0
  2051. package/plugins/interfaces/whatsapp/collections/code.d.ts +71 -0
  2052. package/plugins/interfaces/whatsapp/collections/code.js +27 -0
  2053. package/plugins/interfaces/whatsapp/collections/number.d.ts +267 -0
  2054. package/plugins/interfaces/whatsapp/collections/number.js +84 -0
  2055. package/plugins/interfaces/whatsapp/collections/phone.d.ts +160 -0
  2056. package/plugins/interfaces/whatsapp/collections/phone.js +55 -0
  2057. package/plugins/interfaces/whatsapp/collections/rate.d.ts +20 -0
  2058. package/plugins/interfaces/whatsapp/collections/rate.js +13 -0
  2059. package/plugins/interfaces/whatsapp/collections/secret.d.ts +57 -0
  2060. package/plugins/interfaces/whatsapp/collections/secret.js +25 -0
  2061. package/plugins/interfaces/whatsapp/collections/sent.d.ts +73 -0
  2062. package/plugins/interfaces/whatsapp/collections/sent.js +28 -0
  2063. package/plugins/interfaces/whatsapp/collections/template.d.ts +89 -0
  2064. package/plugins/interfaces/whatsapp/collections/template.js +30 -0
  2065. package/plugins/interfaces/whatsapp/collections/thread.d.ts +67 -0
  2066. package/plugins/interfaces/whatsapp/collections/thread.js +21 -0
  2067. package/plugins/interfaces/whatsapp/collections/typing.d.ts +63 -0
  2068. package/plugins/interfaces/whatsapp/collections/typing.js +21 -0
  2069. package/plugins/interfaces/whatsapp/contract.d.ts +44 -0
  2070. package/plugins/interfaces/whatsapp/contract.js +41 -0
  2071. package/plugins/interfaces/whatsapp/events/received.d.ts +7 -0
  2072. package/plugins/interfaces/whatsapp/events/received.js +17 -0
  2073. package/plugins/interfaces/whatsapp/events/undelivered.d.ts +8 -0
  2074. package/plugins/interfaces/whatsapp/events/undelivered.js +17 -0
  2075. package/plugins/interfaces/whatsapp/mod.d.ts +83 -0
  2076. package/plugins/interfaces/whatsapp/mod.js +186 -0
  2077. package/plugins/interfaces/whatsapp/processors/forget.d.ts +7 -0
  2078. package/plugins/interfaces/whatsapp/processors/forget.js +17 -0
  2079. package/plugins/interfaces/whatsapp/processors/receive.d.ts +42 -0
  2080. package/plugins/interfaces/whatsapp/processors/receive.js +434 -0
  2081. package/plugins/interfaces/whatsapp/processors/reply.d.ts +49 -0
  2082. package/plugins/interfaces/whatsapp/processors/reply.js +358 -0
  2083. package/plugins/interfaces/whatsapp/processors/typing.d.ts +8 -0
  2084. package/plugins/interfaces/whatsapp/processors/typing.js +25 -0
  2085. package/plugins/interfaces/whatsapp/routes/hook.d.ts +16 -0
  2086. package/plugins/interfaces/whatsapp/routes/hook.js +52 -0
  2087. package/plugins/interfaces/whatsapp/shared/commands.d.ts +27 -0
  2088. package/plugins/interfaces/whatsapp/shared/commands.js +43 -0
  2089. package/plugins/interfaces/whatsapp/shared/customers.d.ts +13 -0
  2090. package/plugins/interfaces/whatsapp/shared/customers.js +16 -0
  2091. package/plugins/interfaces/whatsapp/shared/graph.d.ts +79 -0
  2092. package/plugins/interfaces/whatsapp/shared/graph.js +202 -0
  2093. package/plugins/interfaces/whatsapp/shared/media.d.ts +24 -0
  2094. package/plugins/interfaces/whatsapp/shared/media.js +49 -0
  2095. package/plugins/interfaces/whatsapp/shared/number.d.ts +39 -0
  2096. package/plugins/interfaces/whatsapp/shared/number.js +115 -0
  2097. package/plugins/interfaces/whatsapp/shared/parts.d.ts +94 -0
  2098. package/plugins/interfaces/whatsapp/shared/parts.js +184 -0
  2099. package/plugins/interfaces/whatsapp/shared/payload.d.ts +102 -0
  2100. package/plugins/interfaces/whatsapp/shared/payload.js +129 -0
  2101. package/plugins/interfaces/whatsapp/shared/rules.d.ts +11 -0
  2102. package/plugins/interfaces/whatsapp/shared/rules.js +17 -0
  2103. package/plugins/interfaces/whatsapp/shared/settings.d.ts +98 -0
  2104. package/plugins/interfaces/whatsapp/shared/settings.js +11 -0
  2105. package/plugins/interfaces/whatsapp/shared/signature.d.ts +11 -0
  2106. package/plugins/interfaces/whatsapp/shared/signature.js +28 -0
  2107. package/plugins/interfaces/whatsapp/shared/template.d.ts +48 -0
  2108. package/plugins/interfaces/whatsapp/shared/template.js +117 -0
  2109. package/plugins/interfaces/whatsapp/shared/text.d.ts +16 -0
  2110. package/plugins/interfaces/whatsapp/shared/text.js +88 -0
  2111. package/plugins/interfaces/whatsapp/views/message.d.ts +13 -0
  2112. package/plugins/interfaces/whatsapp/views/message.js +13 -0
  2113. package/plugins/interfaces/whatsapp/views/web/connect.d.ts +45 -0
  2114. package/plugins/interfaces/whatsapp/views/web/connect.js +136 -0
  2115. package/plugins/interfaces/whatsapp/views/web/line.d.ts +24 -0
  2116. package/plugins/interfaces/whatsapp/views/web/line.js +44 -0
  2117. package/plugins/interfaces/whatsapp/views/web/palette.d.ts +10 -0
  2118. package/plugins/interfaces/whatsapp/views/web/palette.js +26 -0
  2119. package/plugins/interfaces/whatsapp/views/web/phone.d.ts +25 -0
  2120. package/plugins/interfaces/whatsapp/views/web/phone.js +60 -0
  2121. package/plugins/interfaces/whatsapp/views/web/space.d.ts +17 -0
  2122. package/plugins/interfaces/whatsapp/views/web/space.js +98 -0
  2123. package/plugins/interfaces/whatsapp/views/web/style.d.ts +7 -0
  2124. package/plugins/interfaces/whatsapp/views/web/style.js +84 -0
  2125. package/plugins/interfaces/whatsapp/views/web/words.d.ts +15 -0
  2126. package/plugins/interfaces/whatsapp/views/web/words.js +26 -0
  2127. package/plugins/interfaces/whatsapp/web.d.ts +15 -0
  2128. package/plugins/interfaces/whatsapp/web.js +37 -0
  2129. package/plugins/models/actions/check.d.ts +2 -0
  2130. package/plugins/models/actions/check.js +64 -0
  2131. package/plugins/models/actions/embed.d.ts +1 -0
  2132. package/plugins/models/actions/embed.js +22 -0
  2133. package/plugins/models/actions/generate.d.ts +1 -0
  2134. package/plugins/models/actions/generate.js +28 -0
  2135. package/plugins/models/actions/image.d.ts +1 -0
  2136. package/plugins/models/actions/image.js +46 -0
  2137. package/plugins/models/actions/offered.d.ts +43 -0
  2138. package/plugins/models/actions/offered.js +313 -0
  2139. package/plugins/models/actions/price.d.ts +1 -0
  2140. package/plugins/models/actions/price.js +23 -0
  2141. package/plugins/models/actions/stream.d.ts +1 -0
  2142. package/plugins/models/actions/stream.js +27 -0
  2143. package/plugins/models/actions/test.d.ts +2 -0
  2144. package/plugins/models/actions/test.js +44 -0
  2145. package/plugins/models/actions/transcribe.d.ts +1 -0
  2146. package/plugins/models/actions/transcribe.js +27 -0
  2147. package/plugins/models/adapters/embeddings/hash.d.ts +7 -0
  2148. package/plugins/models/adapters/embeddings/hash.js +24 -0
  2149. package/plugins/models/adapters/embeddings/openai.d.ts +2 -0
  2150. package/plugins/models/adapters/embeddings/openai.js +21 -0
  2151. package/plugins/models/adapters/image/fake.d.ts +6 -0
  2152. package/plugins/models/adapters/image/fake.js +8 -0
  2153. package/plugins/models/adapters/image/gemini.d.ts +2 -0
  2154. package/plugins/models/adapters/image/gemini.js +111 -0
  2155. package/plugins/models/adapters/image/openai.d.ts +2 -0
  2156. package/plugins/models/adapters/image/openai.js +69 -0
  2157. package/plugins/models/adapters/llm/anthropic.d.ts +12 -0
  2158. package/plugins/models/adapters/llm/anthropic.js +237 -0
  2159. package/plugins/models/adapters/llm/fake.d.ts +10 -0
  2160. package/plugins/models/adapters/llm/fake.js +30 -0
  2161. package/plugins/models/adapters/llm/gemini.d.ts +18 -0
  2162. package/plugins/models/adapters/llm/gemini.js +218 -0
  2163. package/plugins/models/adapters/llm/openai-compatible.d.ts +9 -0
  2164. package/plugins/models/adapters/llm/openai-compatible.js +147 -0
  2165. package/plugins/models/adapters/llm/openai.d.ts +2 -0
  2166. package/plugins/models/adapters/llm/openai.js +268 -0
  2167. package/plugins/models/adapters/transcription/fake.d.ts +3 -0
  2168. package/plugins/models/adapters/transcription/fake.js +3 -0
  2169. package/plugins/models/adapters/transcription/openai.d.ts +2 -0
  2170. package/plugins/models/adapters/transcription/openai.js +44 -0
  2171. package/plugins/models/collections/image.d.ts +89 -0
  2172. package/plugins/models/collections/image.js +27 -0
  2173. package/plugins/models/contract.d.ts +53 -0
  2174. package/plugins/models/contract.js +8 -0
  2175. package/plugins/models/mod.d.ts +66 -0
  2176. package/plugins/models/mod.js +126 -0
  2177. package/plugins/models/resources/providers.d.ts +15 -0
  2178. package/plugins/models/resources/providers.js +9 -0
  2179. package/plugins/models/shared/catalog.json +12418 -0
  2180. package/plugins/models/shared/choice.d.ts +197 -0
  2181. package/plugins/models/shared/choice.js +163 -0
  2182. package/plugins/models/shared/embed.d.ts +46 -0
  2183. package/plugins/models/shared/embed.js +51 -0
  2184. package/plugins/models/shared/files.d.ts +18 -0
  2185. package/plugins/models/shared/files.js +47 -0
  2186. package/plugins/models/shared/generate.d.ts +53 -0
  2187. package/plugins/models/shared/generate.js +269 -0
  2188. package/plugins/models/shared/image.d.ts +110 -0
  2189. package/plugins/models/shared/image.js +172 -0
  2190. package/plugins/models/shared/plans.d.ts +72 -0
  2191. package/plugins/models/shared/plans.js +81 -0
  2192. package/plugins/models/shared/provider.d.ts +71 -0
  2193. package/plugins/models/shared/provider.js +87 -0
  2194. package/plugins/models/shared/request.d.ts +58 -0
  2195. package/plugins/models/shared/request.js +19 -0
  2196. package/plugins/models/shared/retry.d.ts +29 -0
  2197. package/plugins/models/shared/retry.js +90 -0
  2198. package/plugins/models/shared/telemetry.d.ts +18 -0
  2199. package/plugins/models/shared/telemetry.js +66 -0
  2200. package/plugins/models/shared/transcribe.d.ts +51 -0
  2201. package/plugins/models/shared/transcribe.js +54 -0
  2202. package/plugins/models/shared/types.d.ts +147 -0
  2203. package/plugins/models/shared/types.js +11 -0
  2204. package/plugins/models/shared/use.d.ts +75 -0
  2205. package/plugins/models/shared/use.js +92 -0
  2206. package/runtime/action-input.d.ts +10 -0
  2207. package/runtime/action-input.js +4 -0
  2208. package/runtime/actor.d.ts +122 -0
  2209. package/runtime/actor.js +139 -0
  2210. package/runtime/address.d.ts +11 -0
  2211. package/runtime/address.js +48 -0
  2212. package/runtime/aggregate.d.ts +57 -0
  2213. package/runtime/aggregate.js +202 -0
  2214. package/runtime/api.d.ts +49 -0
  2215. package/runtime/api.js +719 -0
  2216. package/runtime/blobs.d.ts +45 -0
  2217. package/runtime/blobs.js +114 -0
  2218. package/runtime/body.d.ts +16 -0
  2219. package/runtime/body.js +57 -0
  2220. package/runtime/browsers.d.ts +208 -0
  2221. package/runtime/browsers.js +539 -0
  2222. package/runtime/cache.d.ts +24 -0
  2223. package/runtime/cache.js +243 -0
  2224. package/runtime/call-ids.d.ts +8 -0
  2225. package/runtime/call-ids.js +36 -0
  2226. package/runtime/caller.d.ts +105 -0
  2227. package/runtime/caller.js +225 -0
  2228. package/runtime/client.d.ts +203 -0
  2229. package/runtime/client.js +561 -0
  2230. package/runtime/collection.d.ts +125 -0
  2231. package/runtime/collection.js +94 -0
  2232. package/runtime/cookies.d.ts +72 -0
  2233. package/runtime/cookies.js +125 -0
  2234. package/runtime/define.d.ts +822 -0
  2235. package/runtime/define.js +18 -0
  2236. package/runtime/describe.d.ts +331 -0
  2237. package/runtime/describe.js +610 -0
  2238. package/runtime/errors.d.ts +65 -0
  2239. package/runtime/errors.js +41 -0
  2240. package/runtime/executor.d.ts +24 -0
  2241. package/runtime/executor.js +918 -0
  2242. package/runtime/expiring.d.ts +23 -0
  2243. package/runtime/expiring.js +64 -0
  2244. package/runtime/fetch.d.ts +119 -0
  2245. package/runtime/fetch.js +487 -0
  2246. package/runtime/kept.d.ts +22 -0
  2247. package/runtime/kept.js +128 -0
  2248. package/runtime/legacy-env.d.ts +25 -0
  2249. package/runtime/legacy-env.js +35 -0
  2250. package/runtime/links.d.ts +65 -0
  2251. package/runtime/links.js +110 -0
  2252. package/runtime/maintain.d.ts +89 -0
  2253. package/runtime/maintain.js +120 -0
  2254. package/runtime/memory.d.ts +2 -0
  2255. package/runtime/memory.js +328 -0
  2256. package/runtime/metrics.d.ts +83 -0
  2257. package/runtime/metrics.js +167 -0
  2258. package/runtime/mod.d.ts +32 -0
  2259. package/runtime/mod.js +21 -0
  2260. package/runtime/mongo.d.ts +75 -0
  2261. package/runtime/mongo.js +482 -0
  2262. package/runtime/names.d.ts +14 -0
  2263. package/runtime/names.js +1 -0
  2264. package/runtime/observe.d.ts +66 -0
  2265. package/runtime/observe.js +463 -0
  2266. package/runtime/ops.d.ts +187 -0
  2267. package/runtime/ops.js +304 -0
  2268. package/runtime/owner.d.ts +248 -0
  2269. package/runtime/owner.js +2300 -0
  2270. package/runtime/pattern.d.ts +44 -0
  2271. package/runtime/pattern.js +476 -0
  2272. package/runtime/presence.d.ts +18 -0
  2273. package/runtime/presence.js +25 -0
  2274. package/runtime/reads.d.ts +31 -0
  2275. package/runtime/reads.js +87 -0
  2276. package/runtime/registry.d.ts +131 -0
  2277. package/runtime/registry.js +464 -0
  2278. package/runtime/rest.d.ts +10 -0
  2279. package/runtime/rest.js +247 -0
  2280. package/runtime/routes.d.ts +51 -0
  2281. package/runtime/routes.js +79 -0
  2282. package/runtime/runtime.d.ts +52 -0
  2283. package/runtime/runtime.js +59 -0
  2284. package/runtime/runtimes.d.ts +62 -0
  2285. package/runtime/runtimes.js +95 -0
  2286. package/runtime/schedules.d.ts +161 -0
  2287. package/runtime/schedules.js +156 -0
  2288. package/runtime/site.d.ts +61 -0
  2289. package/runtime/site.js +188 -0
  2290. package/runtime/store.d.ts +300 -0
  2291. package/runtime/store.js +27 -0
  2292. package/runtime/tickets.d.ts +15 -0
  2293. package/runtime/tickets.js +65 -0
  2294. package/runtime/timers.d.ts +44 -0
  2295. package/runtime/timers.js +308 -0
  2296. package/runtime/updates.d.ts +16 -0
  2297. package/runtime/updates.js +222 -0
  2298. package/runtime/views.d.ts +37 -0
  2299. package/runtime/views.js +105 -0
  2300. package/runtime/wire.d.ts +145 -0
  2301. package/runtime/wire.js +113 -0
  2302. package/stores/blobs/files/mod.d.ts +4 -0
  2303. package/stores/blobs/files/mod.js +39 -0
  2304. package/stores/blobs/gcs/mod.d.ts +30 -0
  2305. package/stores/blobs/gcs/mod.js +106 -0
  2306. package/stores/blobs/http/mod.d.ts +15 -0
  2307. package/stores/blobs/http/mod.js +33 -0
  2308. package/stores/latency/mod.d.ts +7 -0
  2309. package/stores/latency/mod.js +46 -0
  2310. package/stores/memory/mod.d.ts +7 -0
  2311. package/stores/memory/mod.js +7 -0
  2312. package/stores/sql/postgres/dialect.d.ts +13 -0
  2313. package/stores/sql/postgres/dialect.js +108 -0
  2314. package/stores/sql/postgres/layout.d.ts +53 -0
  2315. package/stores/sql/postgres/layout.js +241 -0
  2316. package/stores/sql/postgres/lease.d.ts +30 -0
  2317. package/stores/sql/postgres/lease.js +142 -0
  2318. package/stores/sql/postgres/legacy.d.ts +47 -0
  2319. package/stores/sql/postgres/legacy.js +108 -0
  2320. package/stores/sql/postgres/maintenance.d.ts +32 -0
  2321. package/stores/sql/postgres/maintenance.js +325 -0
  2322. package/stores/sql/postgres/mod.d.ts +73 -0
  2323. package/stores/sql/postgres/mod.js +1300 -0
  2324. package/stores/sql/postgres/pattern.d.ts +10 -0
  2325. package/stores/sql/postgres/pattern.js +70 -0
  2326. package/stores/sql/postgres/pool.d.ts +35 -0
  2327. package/stores/sql/postgres/pool.js +47 -0
  2328. package/stores/sql/postgres/tenants.d.ts +60 -0
  2329. package/stores/sql/postgres/tenants.js +309 -0
  2330. package/stores/sql/postgres/update.d.ts +13 -0
  2331. package/stores/sql/postgres/update.js +71 -0
  2332. package/stores/sql/shared/aggregate.d.ts +32 -0
  2333. package/stores/sql/shared/aggregate.js +80 -0
  2334. package/stores/sql/shared/capped.d.ts +2 -0
  2335. package/stores/sql/shared/capped.js +22 -0
  2336. package/stores/sql/shared/filter.d.ts +84 -0
  2337. package/stores/sql/shared/filter.js +153 -0
  2338. package/stores/sql/shared/rows.d.ts +14 -0
  2339. package/stores/sql/shared/rows.js +29 -0
  2340. package/stores/sql/shared/statement.d.ts +12 -0
  2341. package/stores/sql/shared/statement.js +244 -0
  2342. package/stores/sql/sqlite/apart.d.ts +11 -0
  2343. package/stores/sql/sqlite/apart.js +219 -0
  2344. package/stores/sql/sqlite/dialect.d.ts +17 -0
  2345. package/stores/sql/sqlite/dialect.js +119 -0
  2346. package/stores/sql/sqlite/mod.d.ts +78 -0
  2347. package/stores/sql/sqlite/mod.js +713 -0
  2348. package/testing/boundaries.d.ts +10 -0
  2349. package/testing/boundaries.js +72 -0
  2350. package/testing/mod.d.ts +81 -0
  2351. package/testing/mod.js +225 -0
  2352. package/testing/words.d.ts +18 -0
  2353. package/testing/words.js +60 -0
  2354. package/index.js +0 -1
@@ -0,0 +1,1971 @@
1
+ ---
2
+ title: "The web toolkit"
3
+ description: "The pieces web front ends are made of, laid out and themed without CSS: layout, forms, confirmations, records in dialogs and refused fields, table exports and totals, dates (ranges to the second, typed day-times read back), bars, toasts, shortcuts, printing, PDF logos, Code 39, Code 128 and EAN barcodes, a route's own page and a sign-in (`Screen`), and every token a theme sets."
4
+ section: Guides
5
+ order: 8
6
+ ---
7
+
8
+ # The web toolkit
9
+
10
+ `pairz/web` exports the pieces every web front end is made of: buttons and fields, tables, date
11
+ pickers, dialogs, bars, toasts, and the layout pieces that place them. A screen composes them and
12
+ writes no CSS. Its look is the app's theme: the theme's tokens set the colours, fonts and radii, and
13
+ each piece's own tokens set its sizes and surfaces. `className` stays on most pieces as an escape
14
+ hatch for what no token reaches. A printed document (a receipt, an invoice) is the one place for an
15
+ app's own CSS: its print layout.
16
+
17
+ ```tsx
18
+ import { Button, DataTable, Field, Input, Page, Stack, Toolbar } from "pairz/web";
19
+ ```
20
+
21
+ ## Theming without CSS
22
+
23
+ A theme is a `theme` resource (see
24
+ [The web's look and words](../reference.md#the-webs-look-and-words)). It sets three kinds of tokens:
25
+
26
+ - **The theme's own** in `light` and `dark`: `primary`, `background`, `border`, `success`… (shadcn's
27
+ names, and the toolkit's), with `radius` and `font`. Every piece reads them.
28
+ - **The same on both screens** in `tokens`: sizes, paddings, radii, weights, and the spacing scale.
29
+ They're written on `:root` before `light`'s, so a colour set in `light` wins on a clash.
30
+ - **Each piece's own** (`button-height`, `table-stripe`, `dialog-head-background`…), in `tokens`
31
+ when it's a size and in `light`/`dark` when it's a colour. Every one has a default, which is
32
+ Pairz's look, so a theme sets only what it changes. [The tables below](#every-pieces-tokens) list
33
+ them all.
34
+
35
+ ```ts
36
+ definePlugin({
37
+ name: "brand",
38
+ resources: {
39
+ theme: {
40
+ radius: "6px",
41
+ tokens: { "button-height": "34px", "input-height": "34px", "space-md": "10px" },
42
+ light: {
43
+ primary: "#0f766e",
44
+ "table-stripe": "color-mix(in oklab, var(--muted) 50%, transparent)",
45
+ },
46
+ dark: { primary: "#2dd4bf", "primary-foreground": "#042f2e" },
47
+ },
48
+ },
49
+ });
50
+ ```
51
+
52
+ A token is a CSS variable (`var(--button-height)`), so a value may use the theme's own
53
+ (`var(--muted)`). A piece's token never changes a theme token's meaning: `primary` is still the
54
+ brand everywhere.
55
+
56
+ ## Laying out a screen
57
+
58
+ `Page` is a View's frame: its title, actions, description, and the width it centres at
59
+ (`align="center"` centres the title and description too). Inside it, these place things without CSS,
60
+ and `hidden` hides any of them. Gaps are steps of one spacing scale, `xs` (4px), `sm` (8px), `md`
61
+ (12px), `lg` (16px), `xl` (24px), `2xl` (32px), each a token (`space-md`).
62
+
63
+ | Piece | What it is |
64
+ | ------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
65
+ | `Stack` | Things one after another, down (`direction="column"`, the default) or along (`row`): `gap`, `align`, `justify`, `wrap`; `as` makes it a `form`, a `section`, a list. |
66
+ | `Spacer`, `Divider` | The room left in a row, pushing what follows to its end; a line between parts. |
67
+ | `Grid`, `GridItem` | Columns: `columns={3}`, a template (`"1fr 2fr"`), or as many as fit (`min="220px"`). One column when the grid itself is narrower than `collapse` (`sm`, 480px, by default). `GridItem span={2}` spans. |
68
+ | `Toolbar` | A row of controls over what they act on: `start` (the screen's actions), `grow` (a field taking the room left), `end` (filters, dates); it wraps. |
69
+ | `Split` | Two columns: the screen's main one, and an `aside` that stays in view (`sticky`), at the `end` or `start`, `sm`/`md`/`lg` wide; they stack when narrow. |
70
+ | `Card` | A surface; with `title` (and `icon`, `action`), a heading over its body. |
71
+ | `ListGroup` | Rows one under another: links, actions, or text, with a description, an icon and an `end`; the `active` one marked. `flush` inside a card. |
72
+ | `Screen` | A frame that fills the window: what it holds centred in the window's height at `screen-width`, and a `footer` kept at the window's foot. For a sign-in or a route's own page. |
73
+ | `Text`, `Heading` | Words in the theme's type: `Text` with a `size`, `tone`, `weight`, `align`, `mono`, `truncate`; `Heading` `h1` to `h4`. |
74
+
75
+ A list screen:
76
+
77
+ ```tsx
78
+ <Page
79
+ title="Items"
80
+ width="lg"
81
+ actions={<Button variant="primary" icon="plus" href="/items/new">New item</Button>}
82
+ >
83
+ <Stack gap="lg">
84
+ <Toolbar end={<DateRangePicker value={range} onChange={setRange} today={today} presets />} />
85
+ <DataTable columns={columns} rows={rows} rowKey={(r) => r.id} exportName="items" />
86
+ </Stack>
87
+ </Page>;
88
+ ```
89
+
90
+ A visit being booked, its services beside its total:
91
+
92
+ ```tsx
93
+ <Split aside={<Card title="Total"><Stack>…<Button variant="primary" block>Book the visit</Button></Stack></Card>} sticky label="Total">
94
+ <Stack>
95
+ <Autocomplete … />
96
+ <DataTable columns={chosen} rows={services} rowKey={(s) => s.id} toolbar={false} pagination={false} />
97
+ </Stack>
98
+ </Split>
99
+ ```
100
+
101
+ Reports, as a card of links:
102
+
103
+ ```tsx
104
+ <Grid min="280px">
105
+ <Card title="Summary reports" icon="chart" padding="none">
106
+ <ListGroup
107
+ flush
108
+ items={[{ href: "/reports/visits", label: "Visits", description: "By day" }]}
109
+ />
110
+ </Card>
111
+ </Grid>;
112
+ ```
113
+
114
+ **A page that is the whole window.** `Page` frames a View under its title, at a width. A page with
115
+ no title over it, a sign-in, a landing, an error, or a route's own page, is a `Screen`: it fills the
116
+ window (at least its height), centres what it holds both ways at `screen-width` (420px), and keeps
117
+ its `footer` at the window's foot. Taller than the window, it grows, and the footer follows it.
118
+
119
+ ```tsx
120
+ <Screen
121
+ footer={
122
+ <Text size="sm" tone="muted">
123
+ Acme Salon · <a href="/help">Help</a>
124
+ </Text>
125
+ }
126
+ >
127
+ <Card title="Sign in">
128
+ <Stack as="form" method="post" action="/sign-in">
129
+ <Field label="Email" htmlFor="email" required>
130
+ <Input id="email" name="email" type="email" autoComplete="username" />
131
+ </Field>
132
+ <Field label="Password" htmlFor="password" required>
133
+ <Input id="password" name="password" type="password" autoComplete="current-password" />
134
+ </Field>
135
+ <Button type="submit" variant="primary" block>Sign in</Button>
136
+ </Stack>
137
+ </Card>
138
+ </Screen>;
139
+ ```
140
+
141
+ ## Forms
142
+
143
+ - **`Field`** labels a control: a `hint` under it, or the `error` in its place. `required` adds a
144
+ mark that screen readers say as "required". Its children are a function of the control's props, or
145
+ the control itself with `htmlFor`. `layout="row"` puts the label in a column beside the control,
146
+ and it stacks again under 560px. `labelWidth` (30% by default) and `controlWidth` (the rest by
147
+ default) are each a share of the whole row, as a grid's columns are: `"33.33%"` and `"66.67%"`
148
+ fill the row, `"25%"` and `"50%"` leave its last quarter empty, and a length (`"320px"`) is the
149
+ most the control takes. The tokens `field-row-label-width` and `field-row-control-width` set them
150
+ for every field. Before rc.54, `controlWidth` was a share of the control's own column: an older
151
+ `"50%"` beside a 30% label is now about `"35%"`.
152
+ - **`Input`**: `sm`, `md`, `lg`; an `icon` inside the box; `end` for buttons that act on it;
153
+ **`addon`** and **`addonEnd`**, segments outside the box and joined to it: words or an icon get a
154
+ tinted face, and a button or a `Switch` there is the segment itself.
155
+ - **`Select`** (with `addon` and `addonEnd`, as `Input`'s), **`Textarea`**, **`Checkbox`**, and
156
+ **`Radio`** (radios sharing a `name` are one choice).
157
+ - **`Switch`**: a setting that takes effect as it's flipped (`role="switch"`), with words `on` and
158
+ `off` if wanted; `joined="end"` in an `addonEnd`.
159
+ - **`TagsInput`**: values as tags. Enter or a comma adds what's typed, a paste of "a, b, c" adds
160
+ three, Backspace in the empty field removes the last; no duplicates; `name` sends them as one
161
+ comma-separated value.
162
+ - **`Picker`** and **`MultiPicker`**: a choice the app draws, not the browser: a button showing the
163
+ choice, opening its options. `search` puts a box over a long list. `MultiPicker` ticks several and
164
+ says "None chosen", the one chosen, or "{count} chosen". `name` sends the choice with a form. Both
165
+ take `addon` and `addonEnd`.
166
+ - **`FileInput`**: the browser's own file field (`name`, `accept`, `multiple`, `required`, so a form
167
+ sends the files), drawn as a toolkit field: a button ("Choose a file", then "Change"), what's
168
+ chosen, and Remove. Files dropped on it are chosen too, only those `accept` takes.
169
+ `onChange(files)` hears each change. `chooseLabel`, `changeLabel` and `removeLabel` are one
170
+ field's own words ("Select image"); `current` names a file already stored (its name or address),
171
+ shown until another is chosen, and its Remove calls `onRemove`.
172
+ - **`RowsEditor`**: a list of records edited as one form, one row of fields each
173
+ (`render(row,
174
+ index, set)`), numbered, with a button to add a row after each and to remove it,
175
+ "Add a row" at the end, `min` and `max`, and an `error` under a row. Adding focuses the new row's
176
+ first field. `add={false}` leaves the add buttons out; `removeIcon` and `removeLabel` set the
177
+ remove button.
178
+ - **`Button`**: `primary`, `secondary`, `outline` (the default), `ghost`, `destructive`, `success`,
179
+ `info`, `warning`, `link`; `xs`, `sm`, `md`, `lg`; `block` fills its box.
180
+
181
+ ```tsx
182
+ <Stack as="form" onSubmit={save}>
183
+ <Field layout="row" label="Email" htmlFor="email" required error={errors.email}>
184
+ <Input id="email" type="email" icon="mail" />
185
+ </Field>
186
+ <Field layout="row" label="Postcode" htmlFor="postcode" controlWidth="35%">
187
+ <Input id="postcode" autoComplete="postal-code" />
188
+ </Field>
189
+ <Field layout="row" label="Discount" htmlFor="discount">
190
+ <Input
191
+ id="discount"
192
+ inputMode="decimal"
193
+ addonEnd={
194
+ <Switch
195
+ joined="end"
196
+ label="Discount type"
197
+ checked={fixed}
198
+ onChange={setFixed}
199
+ on="$"
200
+ off="%"
201
+ />
202
+ }
203
+ />
204
+ </Field>
205
+ <Field layout="row" label="Customer" htmlFor="customer">
206
+ <Picker
207
+ id="customer"
208
+ label="Customer"
209
+ search
210
+ value={customer}
211
+ options={customers}
212
+ onChange={setCustomer}
213
+ />
214
+ </Field>
215
+ <Stack direction="row" justify="end">
216
+ <Button type="submit" variant="primary">Save</Button>
217
+ </Stack>
218
+ </Stack>;
219
+ ```
220
+
221
+ ```tsx
222
+ <RowsEditor
223
+ label="Rooms"
224
+ rows={codes}
225
+ onChange={setCodes}
226
+ make={() => ({ code: "", name: "" })}
227
+ error={(row) => (row.code ? undefined : "Give the code.")}
228
+ render={(row, _i, set) => (
229
+ <Grid columns="1fr 2fr" collapse={false}>
230
+ <Input
231
+ aria-label="Code"
232
+ value={row.code}
233
+ onChange={(e) => set({ ...row, code: e.target.value })}
234
+ />
235
+ <Input
236
+ aria-label="Name"
237
+ value={row.name}
238
+ onChange={(e) => set({ ...row, name: e.target.value })}
239
+ />
240
+ </Grid>
241
+ )}
242
+ />;
243
+ ```
244
+
245
+ **A form with parts.** `Form` is a `<form>` whose parts take part in its save: each joins with
246
+ `useFormSubmit(handler)`, another plugin's View shown inside it too (a shown View is in the form's
247
+ React tree). On submit, each part's handler runs in the order they joined: values it returns are
248
+ handed to the form's `onSubmit(values, form)`; nothing means it saved its own part; `false` stops
249
+ the save (the part says why); a throw stops it, and the form says the failure's words at its top.
250
+ `useFormState()` tells buttons it's `submitting`; outside a `Form`, `useFormSubmit` says
251
+ `inForm: false`, so a part can show its own Submit. Handing values up and saving them in one Action
252
+ keeps the save one transaction.
253
+
254
+ ```tsx
255
+ <Form
256
+ onSubmit={(values, form) =>
257
+ ctx.call("bookings.settings.save", { on: new FormData(form).has("on"), hours: values.hours })}
258
+ >
259
+ <Checkbox name="on" label="Take bookings online" />
260
+ {ctx.show("panel:opening_hours", {})}
261
+ <Button type="submit" variant="primary">Save</Button>
262
+ </Form>;
263
+ // In the panel's View:
264
+ const { inForm } = useFormSubmit(() => (valid(rows) ? { hours: rows } : false));
265
+ ```
266
+
267
+ **Dialogs:** `Dialog` is the browser's modal `<dialog>`. `placement="top"` opens it near the top
268
+ instead of centred, and `focus="dialog"` gives the focus to the dialog itself rather than its first
269
+ field (Tab then goes to it). `size` is `sm`, `md`, `lg` or `auto`. `busy` (a save it started is
270
+ under way) keeps it open: Escape, a press on the backdrop and its × wait, and it says so
271
+ (`aria-busy`). `role="alertdialog"` is for one that interrupts to ask, and `aria-describedby` names
272
+ what describes it when that isn't its `description`. `isolated` makes its close and Escape its own:
273
+ React passes a dialog's `close` and `cancel` up through the components, so without it a dialog shown
274
+ inside another (a confirmation over a form) closing closes the outer one too. `ConfirmDialog`,
275
+ `useConfirm`'s questions and `RecordDialog` are isolated always: dismissing one never closes the
276
+ `Dialog` or `Drawer` it's shown in.
277
+
278
+ ## Confirming an action
279
+
280
+ A delete, or anything that can't be undone, asks first. `useConfirm()` asks from a handler: draw its
281
+ `dialog` once in the component, then `await confirm({ … })`. It's `true` once confirmed, and `false`
282
+ when cancelled.
283
+
284
+ ```tsx
285
+ import { IconButton, useConfirm } from "pairz/web";
286
+
287
+ /** A customer's Delete, in their row: asks, then deletes. */
288
+ export function DeleteCustomer({ customer, remove }: {
289
+ customer: { _id: string; name: string };
290
+ remove(): Promise<unknown>;
291
+ }) {
292
+ const [dialog, confirm] = useConfirm();
293
+ return (
294
+ <>
295
+ <IconButton
296
+ icon="trash"
297
+ label={`Delete ${customer.name}`}
298
+ size="sm"
299
+ onClick={() =>
300
+ confirm({
301
+ title: `Delete ${customer.name}?`,
302
+ message: "Their visits stay, under their name. This can't be undone.",
303
+ danger: true,
304
+ toast: "Customer deleted.",
305
+ onConfirm: remove,
306
+ })}
307
+ />
308
+ {dialog}
309
+ </>
310
+ );
311
+ }
312
+ ```
313
+
314
+ - **`onConfirm`** runs once it's confirmed, and may be async. While it runs, the confirm button is
315
+ busy, Cancel waits, and Escape and the backdrop do nothing. A throw shows its words in the dialog
316
+ (`toolkit.notDone`, "It wasn't done. Try again.", when it has none), which stays open to try again
317
+ or cancel. Done, the dialog says `toast` and closes. Without `onConfirm`, confirming just closes
318
+ it, and the caller acts on `true`.
319
+ - **`danger`** makes the button destructive and its words "Delete" (`toolkit.delete`; otherwise
320
+ "Confirm", `toolkit.confirm`), and gives Cancel the focus, so Enter never deletes. Without it,
321
+ Confirm has the focus. `confirmLabel` and `cancelLabel` change the words; `message` describes the
322
+ question; `children` go under it (what's affected).
323
+ - **The questions belong to the component.** They show one at a time, in order. When the component
324
+ goes (its row deleted, the screen left) or stops drawing `{dialog}`, a question still waiting is
325
+ answered `false` and never shows again. One whose `onConfirm` runs is answered by how it ends, and
326
+ says so with a toast: `toast` when it's done, its words when it failed. Asking with no `{dialog}`
327
+ ever drawn rejects, so the mistake shows. `confirm` is the same function on every render.
328
+
329
+ **`ConfirmDialog`** is the same question as a component: a dialog View at an address
330
+ (`/customers/12/delete`), or one the screen's state opens. It's open while `open` (`true` by
331
+ default); `onConfirm` is what confirming does, and `onClose` says it's done (cancelled, or confirmed
332
+ and done), once. Closing it yourself (`open={false}`, or not drawing it) calls nothing. **One
333
+ element is one question**: give it the `key` of what it asks about, so that when the address moves
334
+ to another record the question is a new one. An operation whose question has gone (closed, reopened,
335
+ or replaced by a new `key`) closes nothing, and its outcome is a toast.
336
+
337
+ A question ends once, cancelled or done, and until its owner closes it, it takes no more actions.
338
+ What it does is what it shows: its actions use the props it was last drawn with on the screen, never
339
+ those of a render React didn't commit (a transition that suspended).
340
+
341
+ ```tsx
342
+ <ConfirmDialog
343
+ key={customer._id}
344
+ title={`Delete ${customer.name}?`}
345
+ message="Their visits stay, under their name."
346
+ danger
347
+ toast="Customer deleted."
348
+ onConfirm={() => customers.deleteOne({ _id: customer._id })}
349
+ onClose={() => go(back)}
350
+ />;
351
+ ```
352
+
353
+ Both are an `alertdialog`, named by the title and described by the message, and give the focus back
354
+ to what opened them.
355
+
356
+ ## A record in a dialog
357
+
358
+ `RecordDialog` adds a record, or edits one: a `Dialog` holding a `Form`, with Cancel and Save. Its
359
+ children are a function of `form`, whose binders tie each control to a field of the record. It keeps
360
+ a draft of what was edited, over the record as the View reads it, so a field nobody touched always
361
+ shows its newest value. Save gives `onSave` a change of only what changed.
362
+
363
+ ```tsx
364
+ import { DatePicker, Field, Input, RecordDialog } from "pairz/web";
365
+
366
+ <RecordDialog<Customer>
367
+ title={customer ? customer.name : "New customer"}
368
+ record={customer}
369
+ defaults={{ since: today }}
370
+ errors={{ name: "Give the customer's name.", email: "That email address isn't complete." }}
371
+ toast="Customer saved."
372
+ onSave={(change) =>
373
+ change.kind === "create"
374
+ ? customers.insertOne(change.values)
375
+ : customers.updateOne({ _id: change._id }, change.update)}
376
+ onClose={close}
377
+ >
378
+ {(form) => (
379
+ <>
380
+ <Field layout="row" label="Name" required error={form.error("name")}>
381
+ {(control) => <Input {...control} {...form.text("name")} required />}
382
+ </Field>
383
+ <Field layout="row" label="Email" error={form.error("email")}>
384
+ {(control) => <Input {...control} {...form.text("email")} type="email" />}
385
+ </Field>
386
+ <Field layout="row" label="Visits a year" error={form.error("visits")}>
387
+ {(control) => <Input {...control} {...form.number("visits")} min={0} />}
388
+ </Field>
389
+ <Field layout="row" label="Customer since" htmlFor="since" error={form.error("since")}>
390
+ <DatePicker id="since" {...form.value("since")} today={today} format={dayFormat} />
391
+ </Field>
392
+ </>
393
+ )}
394
+ </RecordDialog>;
395
+ ```
396
+
397
+ - **Binders**, by field name or dot path (`address.city`), each spread on its control:
398
+ `form.text(name)` for an `Input`, a `Textarea` or a `Select`; `form.number(name)` for a number
399
+ `Input` (`type="number"`, any step: its text while typed, a number once saved);
400
+ `form.checked(name)` for a `Checkbox` or a `Switch`; `form.radio(name, option)` for each `Radio`;
401
+ `form.value(name)` for a control that gives its value (`Picker`, `DatePicker`, `DateTimePicker`);
402
+ `form.list(name)` for several values (`TagsInput`, `MultiPicker`). A control of the app's own uses
403
+ `form.get(name)` and `form.set(name, value)`. `form.record` is the record as the form shows it,
404
+ and `form.saving` says a save is under way. Bind each field once; `_id` isn't a field.
405
+ - **A new record** (no `record`): `onSave` gets `{ kind: "create", values }`, the `defaults` with
406
+ the edits, for `insertOne(change.values)`. TypeScript calls it the record's type, but the browser
407
+ doesn't check that: the collection's schema does, on insert.
408
+ - **A stored record**: `onSave` gets `{ kind: "update", _id, set, unset, update, record }`, only
409
+ what changed:
410
+ - a field nobody touched is never in it, nor a field with no control, so a newer value someone
411
+ else saved stays;
412
+ - an edit back to the stored value isn't either;
413
+ - a field given a value is in `set`;
414
+ - **a text, number or choice emptied is a clear**, in `unset` (clearing a field that holds
415
+ nothing, `null` or `""` changes nothing);
416
+ - **a list emptied is `[]`**, a value, in `set` unless the record holds `[]` already (`[]` over
417
+ `null` is sent); a checkbox is `true` or `false`, and unchecked over nothing changes nothing;
418
+ - `update` is the same as a MongoDB update (`$set`, `$unset`), for
419
+ `updateOne({ _id: change._id }, change.update)`. To keep `null` for a cleared field, set `null`
420
+ for each name in `unset`. An Action takes `set` and `unset` as its input.
421
+ - **Nothing changed**: `onSave` isn't called, and the dialog just closes.
422
+ - **Parts**: a `useFormSubmit` part shown in the fields (another plugin's View) takes part in the
423
+ save; what it hands up goes over the edits, compared with the record as an edit is (a part handing
424
+ back the stored value writes nothing). The values are read when the save starts, after the parts,
425
+ so what was typed while a part uploaded is saved. In a dialog View, call `ctx.show` in the View's
426
+ body and put what it gives in the function.
427
+ - **While it saves**, Save is busy, Cancel waits, and Escape and the backdrop do nothing; the fields
428
+ are left as they are. Done, it says `toast` and closes (`onClose`, once). Cancel, Escape, the
429
+ backdrop and × close it while nothing runs; closing it yourself (`open={false}`, or not drawing
430
+ it) calls nothing. A session ends once and tells `onClose` once: it then takes no more saves. Its
431
+ actions use the props it was last drawn with on the screen, never a render React didn't commit.
432
+ - **Each record is a session of its own** (its `_id`, or a new one), and so is each time it opens: a
433
+ draft or a refusal never shows on another record. A save runs to its end in the session it started
434
+ in, with that record and its handlers. If the dialog moved to another record, closed or went
435
+ meanwhile, the save still happens, calls no `onClose` and shows nothing: a toast says how it
436
+ ended.
437
+ - `saveLabel`, `cancelLabel`, `description`, `size`, `placement` (`top` by default) and `id` (the
438
+ form's) are as their names say. Focus goes to the first field, and back to what opened it.
439
+
440
+ ## Known limits
441
+
442
+ The confirmations and the record dialog keep their guarantees on the common paths. These are the
443
+ rarer ones they leave to the app:
444
+
445
+ - What's typed while the save runs isn't in it; on success the dialog closes.
446
+ - A part's value wins over an edit of the same field, even one typed while the part runs.
447
+ - A field made invalid while a part runs isn't checked again; the schema refuses it.
448
+ - A path through a list or a map that isn't there yet (`lines.0.qty`) makes an object: give it a
449
+ value in `defaults` or the record, or set it whole with `form.set`.
450
+ - Don't put a `RecordDialog` inside a form, or a form in its fields: a submit goes to every form
451
+ around it.
452
+ - Questions show one at a time: don't await another `confirm()` inside `onConfirm`.
453
+ - Draw `useConfirm`'s `{dialog}` once.
454
+ - If a browser closes a busy confirmation anyway, its answer comes when the operation ends. If it
455
+ closes a dialog just as its operation ends, the outcome may show in the closed dialog.
456
+ - A `ConfirmDialog` given a new `key` while open gives the focus back to the page, not to the first
457
+ opener.
458
+ - An app's own `Dialog` closing still closes an app's own dialog or `Drawer` around it, as in rc.64,
459
+ unless the outer one is an `isolated` `Dialog`.
460
+
461
+ ## Showing a refused field
462
+
463
+ A save the schema refuses names the field in `detail.field` (`price`, `lines.0.qty`), and an
464
+ Action's `failure` can too
465
+ (`Object.assign(failure("invalid", "Give the name.", { public: true }), { detail: { field: "name" } })`).
466
+ Its words are for developers, so a form says each field's refusal its own way.
467
+
468
+ In a `RecordDialog`, give each `Field` its `error={form.error(name)}`, and `errors` the words by
469
+ field. A refusal shows under the field that asks for it, or under a field that holds it (`lines` for
470
+ `lines.0.qty`), in `errors`' words for it, else its own, and the focus goes to its control. A
471
+ refusal no field asks for, or of no field, shows at the form's top. It goes when a new save starts,
472
+ when its field is edited, and with the session.
473
+
474
+ With a plain `Form`, catch it in `onSubmit`: `refusedField(error)` reads the field, and anything
475
+ else thrown again shows at the form's top.
476
+
477
+ ```tsx
478
+ const [refused, setRefused] = useState<{ field: string; words: string }>();
479
+ const errorOf = (field: string) => (refused?.field === field ? refused.words : undefined);
480
+
481
+ <Form
482
+ onSubmit={async (_values, form) => {
483
+ setRefused(undefined);
484
+ try {
485
+ await save(new FormData(form));
486
+ } catch (error) {
487
+ const field = refusedField(error);
488
+ if (!field) throw error;
489
+ setRefused({ field, words: SAYS[field] ?? (error as Error).message });
490
+ }
491
+ }}
492
+ >
493
+ <Field label="Price" error={errorOf("price")}>
494
+ {(control) => <Input {...control} name="price" inputMode="decimal" />}
495
+ </Field>
496
+ </Form>;
497
+ ```
498
+
499
+ ## Tables and their files
500
+
501
+ `DataTable` lists rows: a toolbar (the screen's actions at its start, then a search box, a column
502
+ chooser and an export menu), headers that sort, a checkbox per row when there are `actions`, and
503
+ pages under it. Columns are data:
504
+
505
+ ```tsx
506
+ const columns: Column<Item>[] = [
507
+ { key: "id", title: "ID", numeric: true, width: "80px" },
508
+ { key: "name", title: "Name" },
509
+ { key: "price", title: "Price", align: "right", text: (i) => money(i.price) },
510
+ { key: "edit", title: "", label: "Edit", render: (i) => <Button size="xs" href={`/items/${i.id}`}>Edit</Button> },
511
+ ];
512
+ <DataTable columns={columns} rows={items} rowKey={(i) => i.id} exportName="items"
513
+ actions={(ticked, clear) => <Button size="sm" icon="trash" disabled={!ticked.length} onClick={…}>Delete</Button>} />
514
+ ```
515
+
516
+ - A column titled `""` holds links or buttons: it isn't sorted, searched, chosen or exported; its
517
+ `label` names it for screen readers. `text` is what search, sorting and the files use; `numeric`
518
+ sorts by number; `hidden` starts it hidden in the chooser.
519
+ - **Search** finds every word typed in any titled column, whatever its case and accents ("zoe
520
+ muller" finds "Zoë Müller"), 500 ms after the last key.
521
+ - A click on a row ticks it (not on a link, button or field in it); the header's box ticks the page.
522
+ `actions(ticked, clear)` gets the ticked rows' keys.
523
+ - `detail(row)` opens a row under each, by a button with `aria-expanded`; `detailOpen` opens them
524
+ all (`true`, with no button) or those a function picks.
525
+ - Fields in cells fill their column and shrink with it. `layout="fixed"` keeps the columns at their
526
+ `width`s.
527
+ - `search`, `chooseColumns`, `exports`, `toolbar` and `pagination` set to `false` take each away;
528
+ `pageSizes` sets the sizes (10, 25, 50, 100 by default).
529
+
530
+ **Two modes.** By default the table has every row, and searches, sorts and pages them itself. With a
531
+ `total`, it shows the page it's given, and its `state` (`{ search, sort, order, offset, limit }`) is
532
+ the View's to read its query with. `tableAddress(where, 25)` keeps that state in the page's address,
533
+ so Back goes back a page:
534
+
535
+ ```tsx
536
+ const page = ctx.db.collection("item").query<{ rows: Item[]; total: number }>(
537
+ "page",
538
+ tableState(where, 25),
539
+ );
540
+ <DataTable
541
+ {...tableAddress(where, 25)}
542
+ total={page.value?.total ?? 0}
543
+ rows={page.value?.rows ?? []}
544
+ loading={page.status === "loading"}
545
+ columns={columns}
546
+ rowKey={(i) => i.id}
547
+ />;
548
+ ```
549
+
550
+ **Fields in cells.** A column's `render` may return fields: a click in a toolkit field, a link or a
551
+ button is that control's, never a tick of the row, and the table handles no key of its own. Keep the
552
+ edits per row and send a row with its Update button, or Enter in one of its fields; turn sorting off
553
+ on the columns being edited (`sortable: false`), or rows move while someone types.
554
+
555
+ ```tsx
556
+ const field = (key: "cost" | "quantity", label: string) => (l: Line) => (
557
+ <Input
558
+ size="sm"
559
+ aria-label={label}
560
+ inputMode="decimal"
561
+ value={String(draft(l)[key])}
562
+ onChange={(e) => edit(l, { [key]: e.target.value })}
563
+ onKeyDown={(e) => e.key === "Enter" && save(l)}
564
+ />
565
+ );
566
+ <DataTable
567
+ rows={lines}
568
+ rowKey={(l) => l.id}
569
+ toolbar={false}
570
+ pagination={false}
571
+ columns={[
572
+ { key: "name", title: "Item", sortable: false },
573
+ { key: "cost", title: "Cost", sortable: false, width: "110px", render: field("cost", "Cost") },
574
+ {
575
+ key: "quantity",
576
+ title: "Quantity",
577
+ sortable: false,
578
+ width: "90px",
579
+ render: field("quantity", "Quantity"),
580
+ },
581
+ {
582
+ key: "update",
583
+ title: "",
584
+ label: "Update",
585
+ render: (l) => <Button size="xs" onClick={() => save(l)}>Update</Button>,
586
+ },
587
+ ]}
588
+ />;
589
+ ```
590
+
591
+ `tableQuery(where, state, extra)` writes the address's query, keeping its other keys, and
592
+ `tableView(rows, columns, state)` searches, sorts and pages a list as the table does (for a query
593
+ that pages one in memory). `Pagination` is the pages on their own.
594
+
595
+ ## Exporting a table
596
+
597
+ The export menu saves the visible columns of the rows shown (every matching row, with `exportAll`)
598
+ as `<exportName>.<ext>`; `exports` picks the formats (`["csv", "xlsx", "pdf"]` by default):
599
+
600
+ | Format | File |
601
+ | ------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
602
+ | `csv` | every cell quoted, with a BOM so Excel reads accents (`bom: false` leaves it out) |
603
+ | `xlsx` | a real workbook: numbers stay numbers, `007` stays text, never a formula |
604
+ | `pdf` | Helvetica, A4 landscape, the header on every page; `title`, `orientation`, `headerColor`, `headerText`, `stripeColor`, `fontSize`; text outside Windows-1252 prints as "?" |
605
+ | `json` | records by header (`json: "table"`: `{ header, data }`) |
606
+ | `xml`, `txt`, `sql` | `<tabledata>`; CSV again; one `INSERT` per row |
607
+ | `excel` | an HTML table as `.xls` (Excel warns as it opens it) |
608
+
609
+ CSV, TXT and `.xls` guard against formula injection: a cell starting `=`, `+`, `-` or `@` gets a
610
+ leading `'` (plain numbers such as `-12.5` don't; `formulas: true` turns it off).
611
+ `exportFile(format, sheet, name, options)` gives `{ file, type, content }`, on a server too (an
612
+ e-mailed PDF); `download(…)` saves it in the browser.
613
+
614
+ A format has a label, extension, MIME type and serializer. The serializer receives a sheet of
615
+ visible headers, keys, rows and footer rows, followed by the base name and the export options.
616
+ Return text or bytes. Use a built-in name such as `csv` to replace its format. Put `formats` on a
617
+ table, or put `<TableExportFormats value={formats}>` around the screens in the app's shell. A
618
+ table's definitions win. The default menu adds the supplied formats to CSV, Excel and PDF. An
619
+ explicit `exports` list selects built-ins. Use `exportChoices` to order a menu that includes custom
620
+ names. Unknown names are omitted, with one render warning per table for newly encountered names.
621
+
622
+ ```tsx
623
+ import { DataTable, type TableExportFormat } from "pairz/web";
624
+
625
+ const products = [{ name: "Coffee", units: 12 }];
626
+ const columns = [{ key: "name", title: "Product" }, { key: "units", title: "Units" }];
627
+ const formats = {
628
+ jsonl: {
629
+ label: "JSON Lines",
630
+ extension: "jsonl",
631
+ type: "application/x-ndjson",
632
+ serialize: ({ headers, rows, footerRows = [] }) =>
633
+ [...rows, ...footerRows].map((row) =>
634
+ JSON.stringify(Object.fromEntries(headers.map((h, i) => [h, row[i]])))
635
+ ).join("\n"),
636
+ },
637
+ } satisfies Record<string, TableExportFormat>;
638
+
639
+ <DataTable
640
+ rows={products}
641
+ columns={columns}
642
+ rowKey={(p) => p.name}
643
+ footerRows={[{ name: "Total", units: 12 }]}
644
+ formats={formats}
645
+ exportChoices={["csv", "json", "sql", "pdf", "jsonl"]}
646
+ exportName="stock"
647
+ tableExportOptions={{
648
+ values: "raw",
649
+ json: "records",
650
+ tableName: "products",
651
+ csv: { quote: "needed", delimiter: ";", lineEnding: "\r\n", finalNewline: true, header: true },
652
+ }}
653
+ />;
654
+ ```
655
+
656
+ - **Values.** Files use each column's `text(row)` by default. Give a rendered cell a `text` function
657
+ for its words. `values: "raw"` reads the fields by column key and preserves scalar values for
658
+ typed formats. Untitled button columns stay on screen.
659
+ - **Totals.** Give `footerRows` as records keyed by column. The same totals appear under the table
660
+ and in every built-in file, even when someone hides a column. The app supplies totals for the
661
+ desired range. The older `footer` slot draws any extra markup on screen.
662
+ - **CSV and TXT.** The defaults are `quote: "always"`, a comma (use any single delimiter character
663
+ except a quote or line break), `lineEnding: "\n"`, a header and no final newline. With
664
+ `quote: "needed"`, a quote, delimiter or line break in a field makes it quoted. Set
665
+ `header: false` to start with the first data row. Set `bom: false` on `tableExportOptions` for a
666
+ file without the byte-order mark.
667
+ - **JSON and SQL.** `json: "records"` gives objects by header. `json: "table"` gives
668
+ `{ header, data }` with cells keyed by position. Its default is text and `values: "raw"` preserves
669
+ their scalar types. `tableName` sets the SQL table independently of the file name. SQL quotes null
670
+ and booleans by default. Use `values: "raw"` for `NULL`, `TRUE` and `FALSE`.
671
+ - **In an Action.** Use `exportFile` for a built-in format with string and number cells. For custom
672
+ format names or raw cells use `exportTableFile` from `pairz/web/export`. Give it a sheet with
673
+ `{ headers, rows, footerRows }`, in column order, or use
674
+ `tableSheet(chosenColumns, rows, totalsByKey, "raw")` to make one. A server-paged table can export
675
+ the rows it has. For the whole list, the Action reads the matching rows as its caller.
676
+
677
+ Use `tableExportOptions` for the full set of file settings. When supplied, this prop takes the place
678
+ of `exportOptions`. With `values: "raw"`, XLSX stores strings as text cells and finite numbers as
679
+ numeric cells. A single empty field with minimal CSV quoting is written as `""`.
680
+
681
+ To save the same file from a browser button, import `downloadTableFile` from `pairz/web`. This
682
+ button downloads the displayed rows and the supplied total as a semicolon-delimited CSV.
683
+
684
+ ```tsx
685
+ import {
686
+ Button,
687
+ downloadTableFile,
688
+ type ExportCell,
689
+ type TableExportOptions,
690
+ type TableExportSheet,
691
+ tableSheet,
692
+ } from "pairz/web";
693
+
694
+ const totals: Record<string, ExportCell>[] = [{ name: "Total", units: 12 }];
695
+ const stock: TableExportSheet = tableSheet(columns, products, totals, "raw");
696
+ const options: TableExportOptions = { csv: { delimiter: ";", quote: "needed" }, values: "raw" };
697
+ <Button onClick={() => downloadTableFile("csv", stock, "stock", options)}>Download stock</Button>;
698
+ ```
699
+
700
+ ## A toolbar of your own
701
+
702
+ Give `toolbarContent` a button or filter to put it beside the built-in controls. Use `actions` for
703
+ buttons that take selected rows. `showSinglePageSize` keeps the page-size menu visible when one size
704
+ fits.
705
+
706
+ ```tsx
707
+ <DataTable
708
+ rows={products}
709
+ columns={columns}
710
+ rowKey={(p) => p.name}
711
+ toolbarContent={<Button href="/products/new">New product</Button>}
712
+ pageSize={25}
713
+ pageSizes={[25]}
714
+ showSinglePageSize
715
+ />;
716
+ ```
717
+
718
+ ## Printing a table
719
+
720
+ Use `exportTableFile("pdf", sheet, name, { pdf })` in an Action for an attachment, or pass the same
721
+ layout to `DataTable` in `tableExportOptions.pdf`. Named paper (`"a4"` or `"letter"`) defaults to
722
+ landscape. A `[width, height]` pair uses points (72 per inch). The first page holds the logo,
723
+ `titleLines` and `subtitle`. Every page repeats the column headings. Totals print in bold after the
724
+ last row.
725
+
726
+ ```ts
727
+ import { exportTableFile, type PdfImage, pdfImage, type TablePdfOptions } from "pairz/web/export";
728
+
729
+ export async function invoicePdf(logoBytes: Uint8Array) {
730
+ const logo: PdfImage = await pdfImage(logoBytes);
731
+ const pdf: TablePdfOptions = {
732
+ size: "letter",
733
+ orientation: "portrait",
734
+ titleLines: ["Invoice 1042", "Customer 27"],
735
+ subtitle: "November orders",
736
+ headerImage: { image: logo, width: 60, height: 60 * logo.height / logo.width },
737
+ columns: { qty: { width: 16 }, amount: { width: 90, align: "right" } },
738
+ };
739
+ return exportTableFile(
740
+ "pdf",
741
+ {
742
+ keys: ["qty", "amount"],
743
+ headers: ["Qty", "Amount"],
744
+ rows: [[1, "1234.56"]],
745
+ footerRows: [["", "1234.56"]],
746
+ },
747
+ "invoice-1042",
748
+ { pdf },
749
+ );
750
+ }
751
+ ```
752
+
753
+ **Use column keys for widths and alignment.** In the example, `amount` keeps its 90-point width
754
+ whenever it is visible. A `DataTable` supplies the keys automatically. On a hand-built sheet, give
755
+ `keys` in header order, or use the header text as the key when `keys` is omitted. Fixed widths use
756
+ points. Other columns share the remaining width. Alignment is `"left"`, `"center"` or `"right"`.
757
+
758
+ A positional array applies to the columns **as exported** on each download. These are the visible
759
+ titled columns in display order. Initially hidden columns, columns hidden later in the chooser and
760
+ untitled action columns consume no slots. For example, with Warehouse hidden and Qty and Amount
761
+ visible, `columns: [{ width: 16 }, { width: 90, align: "right" }]` gives Amount 90 points. If Qty is
762
+ then hidden, Amount takes the first slot.
763
+
764
+ ## Dates
765
+
766
+ Days are `YYYY-MM-DD` strings, in the app's time zone: `todayIn("America/New_York")` is the app's
767
+ today, which every picker takes as `today` (never the browser's clock when given). `format` is a
768
+ pattern (`dd/MM/yyyy`, `d MMM yyyy`; `yyyy yy MMMM MMM MM M dd d EEEE EEE`, and `'quoted words'`) or
769
+ a function of the day; by default, the page language's short date. Month and weekday names are the
770
+ page language's.
771
+
772
+ - **`DateRangePicker`**: a field showing the range; open, the presets beside two months (stacked on
773
+ a phone), with the range's From and To over the months as typed fields. A preset applies at once;
774
+ the first day clicked starts a range and the second ends it; Apply takes it, Cancel or Escape keep
775
+ the value, and both stay in view when the panel scrolls. From and To are written and read in the
776
+ field's `format`, and what's typed is read when it's done: on leaving the field, on Enter, or on
777
+ Apply. Then a day moves the range and the months shown; nothing moves while it's being typed
778
+ (typing `2` on the way to `20` in To doesn't move From to the 2nd). Anything else (not a day, or
779
+ outside `min` and `max`) stays as typed, marked, and Apply is off until it's put right. A field
780
+ left empty is its end again, and the text a field shows for its end always reads as that end. Give
781
+ `format` as a pattern where people type: a function can't be read back, so typed text is then read
782
+ as the page language's short date or as `YYYY-MM-DD`. A long range opens on its start's months.
783
+ `presets` is a list, `true` for the standard ones, or `false`; `min` and `max` bound what can be
784
+ picked; `separator` sits between the days. From and To are the words `toolkit.rangeFrom` and
785
+ `toolkit.rangeTo`.
786
+ - **`DateRangePicker` with `time`**: each end has hours and minutes too, and the ends are
787
+ `YYYY-MM-DD HH:mm`; a preset is its whole days, `00:00` to `23:59`. On one day, the end is never
788
+ before the start. A stored time with seconds sorts after its minute (`"… 23:59:30" > "… 23:59"`),
789
+ so compare one with an end to the minute: `at.slice(0, 16) <= range.end`, or take the ends to the
790
+ second ([below](#date-ranges-with-seconds)).
791
+ - **`DateRangePicker` with `seconds`**: each end to the second, typed whole in From and To
792
+ ([below](#date-ranges-with-seconds)).
793
+ - **`rangePresets(today, { keys, fiscalYearStart, min, max })`** builds presets by key, in the order
794
+ given: `today`, `yesterday`, `todayLastYear`, `last7Days`, `last30Days`, `thisMonth`,
795
+ `sameMonthToDateLastYear`, `sameMonthLastYear`, `lastMonth`, `thisYear`, `lastYear`,
796
+ `thisFiscalYear`, `lastFiscalYear`, `allTime` (with a `min`). Their labels are words
797
+ (`toolkit.thisMonth`), so an app renames them with its `words`.
798
+ - **`DatePicker`**: one day, one month; picking closes it.
799
+ - **`DateTimePicker`**: a day and a time of it, in the app's clock time with no zone (as `LiveClock`
800
+ writes it): `YYYY-MM-DD HH:mm`, or `YYYY-MM-DD HH:mm:ss`. Opened, the month and the time's fields,
801
+ each typed or stepped with the arrows (the minutes by `minuteStep`); Apply takes both. A value's
802
+ seconds are kept until its time is changed, so a form that saves a record's time unchanged keeps
803
+ them; changing the hours or minutes drops them, unless `seconds` shows them in a field of their
804
+ own (the value then always has them, `:00` when it had none). A `format` shows them with `ss`
805
+ (`dd/MM/yyyy HH:mm:ss`); the default one shows them when the value has them. `min` and `max` are
806
+ days or day-times; with no value it opens at the app's now (`timeZone`). `name` sends the value
807
+ with a form.
808
+ - **`TimeFields`**: a time of day's fields alone, the pickers' own: hours, minutes, and `seconds` if
809
+ wanted; its value is a `Clock`, `{ hour, minute, second? }`.
810
+ - **`Calendar`**: one month's grid, alone: arrows move a day, Page Up and Page Down a month (a year
811
+ with Shift), Home and End the week's ends, Enter or Space pick; each day is named by its full
812
+ date.
813
+ - **`LiveClock`**: now, in a `format` and a `timeZone`, ticking each second (each minute when the
814
+ format shows no seconds); nothing on the server.
815
+ - **Helpers:** `isDay` and `isDayTime`; `partsOfDayTime` (`{ day, hour, minute, second? }`);
816
+ `addDays` and `addMonths`; `clampDayTime(value, min, max)`; `nowIn(timeZone, step, at, seconds)`,
817
+ now (or the `Date` `at`) as the app's day-time; `formatDay` and `parseDay`, a day written in a
818
+ picker's `format` and read back; `formatDayTime`; `formatPattern`, which takes a time's letters
819
+ too (`HH`, `hh`, `mm`, `ss`, `a`), and `parsePattern`, which reads a day; `parseDayTime`,
820
+ `patternProblem`, `dayTimePattern` and `dateOfDayTime`, a typed day-time read back and the moment
821
+ it names ([below](#reading-typed-dates-and-times)).
822
+
823
+ ```tsx
824
+ <DateRangePicker
825
+ value={range}
826
+ onChange={setRange}
827
+ today={today}
828
+ format="dd/MM/yyyy"
829
+ presets={rangePresets(today, { fiscalYearStart: 4, min: "2010-01-01", max: today })}
830
+ min="2010-01-01"
831
+ max={today}
832
+ />;
833
+ // Shifts, each end with its time: { start: "2026-11-02 08:00", end: "2026-11-08 17:30" }
834
+ <DateRangePicker value={shifts} onChange={setShifts} today={today} format="dd/MM/yyyy" time />;
835
+ // A stored time, "2026-11-16 14:30:05": saved unchanged, it keeps its seconds.
836
+ <DateTimePicker
837
+ label="Received"
838
+ value={received}
839
+ onChange={setReceived}
840
+ format="dd/MM/yyyy HH:mm:ss"
841
+ timeZone={zone}
842
+ name="received_at"
843
+ />;
844
+ ```
845
+
846
+ ### Date ranges with seconds
847
+
848
+ `DateRangePicker` with `seconds` takes each end to the second, for a report filtered from 08:00:00
849
+ to 17:59:59. Its ends are always `YYYY-MM-DD HH:mm:ss`: an end given without seconds is at its
850
+ `:00`, and one given as a day alone runs from `00:00:00` (From) or to `23:59:59` (To). A preset runs
851
+ from `00:00:00` to `23:59:59`, and shows as pressed only for whole days.
852
+
853
+ - **From and To** are each one field holding the end's day and time, typed or pasted whole. There
854
+ are no spin fields: the typed field is the end's one editor. Picking days in the months keeps each
855
+ end's time.
856
+ - **What's shown is what's saved.** An end that would come before the start is marked, and Apply is
857
+ off until it's put right: To typed at a time before From's on From's day, or a To day before
858
+ From's that moves From's day there (keeping its time) past To. The same goes for one day picked
859
+ twice when To's time is before From's, and for a value given that ends before it starts.
860
+ - **One pattern** writes the field, the foot, From and To, and reads what's typed, so whatever the
861
+ picker shows reads back as the same end when pasted. The pattern is `format` when it can be read
862
+ back (`patternProblem`). A day's pattern gets the page language's time after it: `dd/MM/yyyy`
863
+ writes `02/11/2026 14:30:05` in Portuguese. A day-time pattern to the minute gets `:ss` after its
864
+ minutes. Otherwise it's the page language's own (`dayTimePattern(lang())`): its order and
865
+ separators, and a four-digit Gregorian year (`02/11/2026 14:30:05` in Thai, not 2569). A function
866
+ `format`, or a pattern that can't be read back, is set aside, and the console says why, once.
867
+ - **The clock is the language's.** That is 12-hour with AM and PM where the language uses them:
868
+ `11/02/2026 02:30:05 PM` in American English. An app that wants 24 hours everywhere gives a
869
+ `format` with `HH`.
870
+ - **Typing** reads what `parseDayTime` reads: any case, any spaces, the language's digits, and
871
+ seconds left out (they're `:00`). It also reads an end as the toolkit keeps it,
872
+ `2026-11-02 14:30:05` or with a `T`, but not an instant with a zone (`…Z`).
873
+ - **What's typed is read when it's done**: on leaving From or To, on Enter, or on Apply. Until then
874
+ it's text, and nothing moves: typing `2` on the way to `20` in To doesn't move From to the 2nd.
875
+ Text that isn't one real day and time within the bounds stays as typed, marked, and Apply is off
876
+ until it's put right. Picking a day in the months, or opening the picker again, sets it aside.
877
+ - **Bounds.** A typed end is kept within `min` and `max`, which are days and take all of them
878
+ (`00:00:00` to `23:59:59`). On any side they don't bound, it's kept within 200 years of `today`.
879
+ So a Buddhist year (`2569`) or a Persian one (`1405`), typed out of habit, is refused, not saved
880
+ as a Gregorian year. An app that needs years further away gives `min` or `max`.
881
+ - What it doesn't do is in the [known limits](#known-limits-of-dates-and-times) below.
882
+ - From and To are `date-picker-end-time-width` wide (`15em`).
883
+
884
+ ```tsx
885
+ // Sales from 08:00:00 on the 2nd to 17:59:59 on the 6th:
886
+ // { start: "2026-11-02 08:00:00", end: "2026-11-06 17:59:59" }
887
+ <DateRangePicker
888
+ label="Sales"
889
+ value={range}
890
+ onChange={setRange}
891
+ today={today}
892
+ max={today}
893
+ format="dd/MM/yyyy"
894
+ seconds
895
+ />;
896
+ // An English app on a 24-hour clock: 11/02/2026 08:00:00 – 11/06/2026 17:59:59
897
+ <DateRangePicker
898
+ value={range}
899
+ onChange={setRange}
900
+ today={today}
901
+ format="MM/dd/yyyy HH:mm:ss"
902
+ seconds
903
+ />;
904
+ ```
905
+
906
+ To compare stored timestamps with the ends, turn each into a moment in the app's time zone with
907
+ `dateOfDayTime` ([below](#reading-typed-dates-and-times)).
908
+
909
+ ### Reading typed dates and times
910
+
911
+ `parseDayTime(text, pattern, locale)` reads a day and a time typed in a pattern, the inverse of
912
+ `formatPattern`: what a pattern writes reads back as the value it was written from, in any language.
913
+ With no pattern it reads the language's own (`dayTimePattern(locale)`). `locale` is the language of
914
+ the month, weekday and AM/PM words, and of the digits it reads besides ASCII (English by default;
915
+ the page's is `lang()`). The value has seconds when the pattern writes them.
916
+
917
+ - **What it allows:**
918
+ - spaces of any kind and number where the pattern has spaces, and any at the text's edges;
919
+ - letters in any case;
920
+ - a month or weekday name without its final dot (`nov` or `nov.` in French);
921
+ - AM and PM as the language writes them, its marks and all (Tibetan's `་`), or their letters with
922
+ or without dots (`p.m.`, `PM`);
923
+ - one digit where the pattern writes two and no digit follows;
924
+ - the language's own digits (Arabic-Indic in `ar-EG`, Persian in `fa-IR`), one kind to a field;
925
+ - invisible right-to-left marks;
926
+ - seconds left out with the `:` before them, when the pattern writes them (they're `:00`).
927
+
928
+ Literal words in the pattern must be typed as written (`'lot, 1'` needs its comma).
929
+ - **What it refuses (`undefined`):**
930
+ - a day the month doesn't have (`31/02` is refused, never moved to March);
931
+ - 25:00, 13 PM;
932
+ - a two-digit year where the pattern writes four. The century is never guessed, and `yy` patterns
933
+ can't be read back at all;
934
+ - a weekday that isn't the date's;
935
+ - seconds the pattern doesn't write;
936
+ - text that could be read as two day-times.
937
+ - **Days are Gregorian**, whatever the language's calendar: a Thai Buddhist year is read as that
938
+ Gregorian year. Years have four digits, from 0000 (1 BC, as ISO 8601 counts it) to 9999.
939
+ - **`patternProblem(pattern, locale)`** says why a pattern can't be read back, or gives `undefined`
940
+ when it can:
941
+ - a two-digit year (`yy`);
942
+ - month names of a calendar other than the Gregorian one (Persian, Thai, Japanese-era, Taiwanese):
943
+ write `MM`;
944
+ - a 12-hour hour without `a`;
945
+ - a field missing or repeated.
946
+
947
+ Every text is refused with a pattern that has a problem. Check an app's patterns with it in a
948
+ test.
949
+ - **`dayTimePattern(locale, seconds)`** is the pattern a language's people type a day and a time in.
950
+ It has the language's order and separators and its clock, with a four-digit year, two-digit fields
951
+ and the Gregorian calendar: `MM/dd/yyyy hh:mm:ss a` in American English, `dd/MM/yyyy HH:mm:ss` in
952
+ Brazilian Portuguese. `formatPattern(value, dayTimePattern(locale), locale)` writes in it. A
953
+ language the runtime doesn't support (`Intl.DateTimeFormat.supportedLocalesOf` leaves it out, as
954
+ it does `zz-ZZ`, and Deno does Dzongkha) gets `yyyy-MM-dd HH:mm:ss`.
955
+ - **`dateOfDayTime(value, timeZone)`** is the moment a day-time (or a day, at its start) names in a
956
+ time zone (the page's when none is given), as a `Date`. Where the clocks change, one rule,
957
+ Temporal's "compatible":
958
+ - a time they skip moves forward by the gap: 02:30 on the night New York springs forward is 03:30;
959
+ - a time they repeat is its first pass.
960
+
961
+ It's what `new Date(y, m - 1, d, h, mi, s)` does in the page's zone, and a named zone follows it
962
+ too. With no zone, the page's clock is read as `Date` reads it, so a zone set the POSIX way
963
+ (`TZ=GMT+3`, three hours behind UTC) is the one `Date` uses.
964
+
965
+ ```ts
966
+ import {
967
+ dateOfDayTime,
968
+ dayTimePattern,
969
+ formatPattern,
970
+ parseDayTime,
971
+ patternProblem,
972
+ } from "pairz/web";
973
+
974
+ parseDayTime("02/11/2026 14:30:05", "dd/MM/yyyy HH:mm:ss"); // "2026-11-02 14:30:05"
975
+ parseDayTime("11/2/2026 2:30 PM", "M/d/yyyy h:mm a"); // "2026-11-02 14:30"
976
+ parseDayTime("02/11/2026 14:30", "dd/MM/yyyy HH:mm:ss"); // "2026-11-02 14:30:00"
977
+ parseDayTime("31/02/2026 10:00", "dd/MM/yyyy HH:mm"); // undefined: February has no 31st
978
+ parseDayTime("11/2/99, 2:30 PM", "M/d/yyyy, h:mm a"); // undefined: the year needs four digits
979
+ patternProblem("dd/MM/yy HH:mm"); // "`yy` leaves out the century: write `yyyy`"
980
+
981
+ const typed = dayTimePattern("en-US"); // "MM'/'dd'/'yyyy hh':'mm':'ss' 'a"
982
+ formatPattern("2026-11-02 14:30:05", typed, "en-US"); // "11/02/2026 02:30:05 PM"
983
+ parseDayTime("11/02/2026 2:30:05 pm", typed, "en-US"); // "2026-11-02 14:30:05"
984
+
985
+ // A report's ends as moments in the app's zone, to compare stored timestamps with.
986
+ dateOfDayTime("2026-11-16 14:30", "America/Sao_Paulo")?.toISOString(); // "2026-11-16T17:30:00.000Z"
987
+ dateOfDayTime("2026-03-08 02:30", "America/New_York")?.toISOString(); // "2026-03-08T07:30:00.000Z"
988
+ dateOfDayTime("2026-11-01 01:30", "America/New_York")?.toISOString(); // "2026-11-01T05:30:00.000Z"
989
+ ```
990
+
991
+ ### Known limits of dates and times
992
+
993
+ Each is a case an app avoids; nothing here guesses or saves a wrong day.
994
+
995
+ - **Fields of no fixed length run together** (`d`, `M`, names: `yyyy/dM`) can't always be read back:
996
+ `2026/211` is November 2nd and January 21st, and is refused. `patternProblem` doesn't say so:
997
+ separate them (`yyyy/d/M`).
998
+ - **A year-first format in another order than the toolkit's** (`yyyy-dd-MM`), with `seconds`: From
999
+ and To also read an end as the toolkit keeps it (`2026-11-02 14:30:05`), and text the two read as
1000
+ different ends is refused. Use `yyyy-MM-dd`, or another separator.
1001
+ - **Names typed in capitals** may not read in Greek or Turkish (`ΜΑΪΟΥ`, `MAYIS`): those languages'
1002
+ capitals don't lower back to their names.
1003
+ - **Spaces at a format's edges** (`"dd/MM/yyyy "`): what it writes isn't read back.
1004
+ - **`today` near the first or last year**, with `seconds`: it's 200 years or more from 0000 and 9999
1005
+ (0200 to 9799).
1006
+ - **The format or the page's language changed while a range is open**: what's being typed is read by
1007
+ the new one.
1008
+ - **`min` and `max` given as times of day** (`max="2026-11-16 12:00:00"`) hold for typed ends, but
1009
+ not for picked days or presets: a day picked on the bound's day keeps its end's time (`23:59:59`),
1010
+ and a preset runs to the end of its day. It's the same with `time`.
1011
+ - **The months' Next button** goes past December 9999 without `max`, where the months can't be
1012
+ drawn.
1013
+
1014
+ ## Bars, tiles and toasts
1015
+
1016
+ For an app without the Pairz shell:
1017
+
1018
+ - **`AppBar`**: the brand (words or a `Logo`; with `href`, home), the places
1019
+ (`items: { href, label, icon?, key? }`), and anything at its `end`. The `active` place (by `key`
1020
+ or `href`) is raised and announced as the page; icons sit beside labels or over them
1021
+ (`layout="stacked"`); on a phone the places scroll sideways.
1022
+ - **`TopBar`**: a thin strip with `start`, `center` and `end` (a clock, the company, the person and
1023
+ Sign out).
1024
+ - **`TileGrid`**: a home page's places as tiles, each a large icon and its name; a tile's
1025
+ `description` is its tooltip and what screen readers say after the name.
1026
+
1027
+ ```tsx
1028
+ <TopBar start={<LiveClock format="dd/MM/yyyy HH:mm:ss" timeZone={zone} />} center="Acme Salon" end={<a href="/me">Ana</a>} />
1029
+ <AppBar brand="Acme" href="/" active="/visits" layout="stacked" items={[
1030
+ { href: "/visits", label: "Visits", icon: <Icon src="/assets/places/visits.png" /> },
1031
+ { href: "/customers", label: "Customers", icon: "users" },
1032
+ ]} />
1033
+ ```
1034
+
1035
+ **Toasts.** `toast(message, tone)` or `toast(message, { tone, duration })`, from anywhere, shows a
1036
+ few seconds' word over the page and gives back a function that dismisses it. Tones are `neutral`
1037
+ (the default), `success`, `info`, `warning` and `destructive`; `duration` is 5,000 ms unless given
1038
+ (`0`: until dismissed); it waits while hovered or focused. The shell shows them; an app without it
1039
+ renders `<Toasts placement="bottom-end" />` once, and one given a `placement` takes over from the
1040
+ shell's, so a toast never shows twice.
1041
+
1042
+ ## Icons
1043
+
1044
+ Every piece that takes an icon takes one of the toolkit's by name or any element (`IconLike`):
1045
+ `<Icon drawing={…} />` draws an app's own glyph (its paths in their box, `rule: "evenodd"` for holes
1046
+ drawn that way), and `<Icon src="/assets/…png" />` an image file. `Avatar` shows a picture from
1047
+ `https:`, the app's own origin, or one picked but not yet sent (a `blob:` or image `data:` address);
1048
+ `initial={false}` draws an empty box when there's none.
1049
+
1050
+ ```tsx
1051
+ const GLYPH = {
1052
+ viewBox: "0 0 16 16",
1053
+ paths: [{ d: "M8 1a3.5 3.5 0 1 1 0 7…", rule: "evenodd" as const }],
1054
+ };
1055
+ <Button icon={<Icon drawing={GLYPH} />}>New customer</Button>;
1056
+ ```
1057
+
1058
+ ## Shortcuts
1059
+
1060
+ `useShortcuts({ "Alt+1": focusItems, "Mod+S": save, Escape: { run: cancel, inFields: true } })`
1061
+ binds keys to a screen's commands while it's shown. `Mod` is ⌘ on Apple's keyboards and Ctrl
1062
+ elsewhere; letters and digits match the key pressed, so Alt+1 works whatever it types. A shortcut
1063
+ waits while a modal dialog or a popover is open (unless the screen is in it: `within`), and while
1064
+ someone types in a field unless it says `inFields`; a handled key's default is prevented. The
1065
+ shell's own keys (⌘K, the palette) come first. `shortcutLabel("Alt+1")` says it as the keyboard does
1066
+ (⌥1, or Alt+1).
1067
+
1068
+ ## Printing
1069
+
1070
+ A printed page is the whole page, not its scrolling pane's screenful, and it leaves out what only
1071
+ works on a screen: the shell's sidebar and menu, the toolkit's bars, toolbars, toasts, pages,
1072
+ buttons, popovers, a `Page`'s header (unless `printHeader`), and a table's toolbar and tick column.
1073
+ Links keep their words. `NoPrint` and `PrintOnly` mark an app's own parts. A printed document's own
1074
+ layout (a receipt's width, an invoice's margins) is the one place an app writes CSS: its
1075
+ `@media print` rules, beside the document.
1076
+
1077
+ ```tsx
1078
+ <NoPrint><Button icon="file" onClick={() => print()}>Print</Button></NoPrint>
1079
+ <PrintOnly><Text size="sm">Printed {today}</Text></PrintOnly>
1080
+ ```
1081
+
1082
+ ## PDFs on a server
1083
+
1084
+ `documentPdf(pages, { size })` draws a document as a PDF with no dependency and no React, so it runs
1085
+ on a server (an e-mailed invoice): pages of things placed in points from each page's top left, text
1086
+ (a font of Helvetica's four, a size, a colour, wrapped and aligned within a `width`), lines,
1087
+ rectangles and vector barcodes. Use `drawDocumentPdf` for images and automatically sized barcodes.
1088
+ Sizes are `a4`, `a4-landscape`, `letter`, `receipt` (80 mm wide, as tall as what's on it), or given.
1089
+ `textWidth` and `wrapText` measure with Helvetica's widths, to lay out flowing text. Text outside
1090
+ Windows-1252 prints as "?". `pairz/web/export` has it, the table files and the barcodes' bars,
1091
+ without React.
1092
+
1093
+ ```ts
1094
+ import { documentPdf } from "pairz/web/export";
1095
+ const receipt = documentPdf([[
1096
+ { text: "Acme", x: 12, y: 12, width: 203, align: "center", font: "bold", size: 12 },
1097
+ { line: [12, 32, 215, 32] },
1098
+ { text: "Total", x: 12, y: 38 },
1099
+ { text: "12.50", x: 12, y: 38, width: 203, align: "right" },
1100
+ { barcode: "POS 12", x: 12, y: 60, width: 200, height: 40 },
1101
+ ]], { size: "receipt" });
1102
+ ```
1103
+
1104
+ ## Barcodes
1105
+
1106
+ `Barcode` draws an SVG of whole-pixel bars. `width` sets the space available, `height` the bars'
1107
+ height, and `caption` shows the value beneath. Its quiet margins are on by default. Code 128 packs
1108
+ digit pairs where they fit (`set="B"` uses text throughout). Use `ProductBarcode` with
1109
+ `format="code39"`, `format="ean8"` or `format="ean13"` for the other symbols.
1110
+
1111
+ ## Images and barcodes in a document
1112
+
1113
+ Prepare a logo once with `await pdfImage(bytesOrDataUrl)` and reuse it on any page. JPEG stays JPEG.
1114
+ PNG supports 8-bit RGB, RGBA, grayscale, grayscale with alpha and indexed colours, including
1115
+ interlaced images and packed 1-, 2- and 4-bit grayscale or palette samples. Transparency becomes a
1116
+ PDF soft mask. The dimensions of the prepared image are pixels. The position and size on the page
1117
+ are points.
1118
+
1119
+ ```ts
1120
+ import { barcodePng, drawDocumentPdf, pdfImage } from "pairz/web/export";
1121
+
1122
+ export async function invoiceFiles(logoBytes: Uint8Array) {
1123
+ const logo = await pdfImage(logoBytes);
1124
+ const product = "5901234123457";
1125
+ const pdf = drawDocumentPdf([[
1126
+ { image: logo, x: 36, y: 36, width: 40, height: 40 * logo.height / logo.width },
1127
+ { text: "Invoice 1042", x: 92, y: 42, size: 16, font: "bold" },
1128
+ { barcode: product, format: "ean13", x: 36, y: 120, width: 240, height: 54, quiet: true },
1129
+ ]]);
1130
+ const label = await barcodePng(product, { format: "ean13", width: 300, height: 60 });
1131
+ return { pdf, label }; // application/pdf and image/png
1132
+ }
1133
+ ```
1134
+
1135
+ EAN-8 takes seven digits and EAN-13 takes twelve, or give the complete number and its check digit is
1136
+ verified. Keep leading zeros by passing a string. Code 39 accepts uppercase letters, digits, space
1137
+ and `-.$/+%`. The encoders return alternating bar and space widths in modules. Use `barcodeBars`
1138
+ when a renderer needs each bar's position and width.
1139
+
1140
+ ```ts
1141
+ import { barcodeBars, type BarcodeOptions, code39, ean13, ean8, eanDigits } from "pairz/web/export";
1142
+
1143
+ const product = eanDigits("590123412345", 13);
1144
+ const options: BarcodeOptions = { format: "ean13", quiet: true };
1145
+ const geometry = barcodeBars(product, 300, options);
1146
+ const retail = [ean8("0123456"), ean13(product)];
1147
+ const shelf = code39("SHELF-2", { check: true }); // Include the Mod 43 check character.
1148
+ ```
1149
+
1150
+ A product screen can print the complete EAN under its SVG:
1151
+
1152
+ ```tsx
1153
+ import { ProductBarcode } from "pairz/web";
1154
+
1155
+ <ProductBarcode format="ean13" value="590123412345" width={300} height={60} caption />;
1156
+ ```
1157
+
1158
+ Barcode widths grow to fit at least one whole unit per module, including the requested quiet
1159
+ margins. For example, Code 128 with `SKU-12345` and quiet margins grows from a requested 120 units
1160
+ to 143. EAN-13 with quiet margins requires 113 pixels for PNG or 113 points for PDF. In
1161
+ `drawDocumentPdf`, omitting the barcode's `width` uses the space from its `x` position to the page
1162
+ edge. A width or height of zero or less raises a `RangeError`, as do printed bars extending beyond
1163
+ the page. Barcode heights must be at least one pixel in SVG and PNG, or 0.01 points in either PDF
1164
+ renderer. The blank quiet margins can extend beyond the page edges.
1165
+
1166
+ ## A route's own page
1167
+
1168
+ A route that answers a page of its own (an import screen before anyone signs in, a password reset)
1169
+ makes it with the toolkit too: `routePage(runtime, { title, body, status, headers, lang })` from
1170
+ `pairz/web/server` gives a `Response` whose head is the app page's (its theme, base, icons, colour
1171
+ and fonts) and whose body is React made on the server, with the app's words. No script runs on it,
1172
+ so its links and forms that post are what work. Its body is a `Page`, or a `Screen` when nothing
1173
+ titles it (a sign-in's card, [above](#laying-out-a-screen)).
1174
+
1175
+ ```tsx
1176
+ "/import": (request, { runtime }) => routePage(runtime, {
1177
+ title: "Import",
1178
+ body: <Page title="Import"><Stack as="form" method="post"><Field label="File" htmlFor="file"><Input id="file" type="file" name="file" /></Field><Button type="submit" variant="primary">Import</Button></Stack></Page>,
1179
+ }),
1180
+ ```
1181
+
1182
+ ## Every piece's tokens
1183
+
1184
+ Each token is a CSS variable a theme sets without its `--`: sizes in `tokens`, colours in `light`
1185
+ and `dark`. The default is Pairz's look; one that names another token follows it.
1186
+
1187
+ ### Spacing scale
1188
+
1189
+ | Token | Default |
1190
+ | ----------- | ------- |
1191
+ | `space-xs` | `4px` |
1192
+ | `space-sm` | `8px` |
1193
+ | `space-md` | `12px` |
1194
+ | `space-lg` | `16px` |
1195
+ | `space-xl` | `24px` |
1196
+ | `space-2xl` | `32px` |
1197
+
1198
+ ### Stack and Divider
1199
+
1200
+ | Token | Default |
1201
+ | --------------- | --------------- |
1202
+ | `divider-width` | `1px` |
1203
+ | `divider-color` | `var(--border)` |
1204
+
1205
+ ### Toolbar
1206
+
1207
+ | Token | Default |
1208
+ | -------------------- | ------------- |
1209
+ | `toolbar-padding` | `0` |
1210
+ | `toolbar-radius` | `0` |
1211
+ | `toolbar-background` | `transparent` |
1212
+ | `toolbar-grow-basis` | `200px` |
1213
+
1214
+ ### Split
1215
+
1216
+ | Token | Default |
1217
+ | ---------------------- | ------- |
1218
+ | `split-gap` | `24px` |
1219
+ | `split-aside-width-sm` | `280px` |
1220
+ | `split-aside-width` | `340px` |
1221
+ | `split-aside-width-lg` | `420px` |
1222
+ | `split-sticky-top` | `16px` |
1223
+
1224
+ ### ListGroup
1225
+
1226
+ | Token | Default |
1227
+ | ------------------------- | ------------------ |
1228
+ | `list-group-border-width` | `1px` |
1229
+ | `list-group-radius` | `var(--radius-lg)` |
1230
+ | `list-group-row-height` | `44px` |
1231
+ | `list-group-padding` | `10px 14px` |
1232
+ | `list-group-font-size` | `14px` |
1233
+ | `list-group-font-weight` | `560` |
1234
+ | `list-group-end-padding` | `14px` |
1235
+
1236
+ ### Screen
1237
+
1238
+ | Token | Default |
1239
+ | ---------------- | ------- |
1240
+ | `screen-padding` | `24px` |
1241
+ | `screen-width` | `420px` |
1242
+ | `screen-gap` | `24px` |
1243
+
1244
+ ### Text and Heading
1245
+
1246
+ | Token | Default |
1247
+ | ------------------------ | --------------------- |
1248
+ | `text-size-xs` | `12px` |
1249
+ | `text-size-sm` | `13px` |
1250
+ | `text-size-md` | `14.5px` |
1251
+ | `text-size-lg` | `17px` |
1252
+ | `heading-font` | `var(--font-display)` |
1253
+ | `heading-font-weight` | `650` |
1254
+ | `heading-letter-spacing` | `-.015em` |
1255
+ | `heading-size-1` | `28px` |
1256
+ | `heading-size-2` | `21px` |
1257
+ | `heading-size-3` | `17px` |
1258
+ | `heading-size-4` | `15px` |
1259
+
1260
+ ### Page
1261
+
1262
+ | Token | Default |
1263
+ | ------------------------ | --------------------- |
1264
+ | `page-width` | `820px` |
1265
+ | `page-padding` | `34px 24px 64px` |
1266
+ | `page-width-lg` | `1040px` |
1267
+ | `page-title-font` | `var(--font-display)` |
1268
+ | `page-title-size` | `28px` |
1269
+ | `page-title-weight` | `680` |
1270
+ | `page-description-width` | `560px` |
1271
+ | `page-body-gap` | `20px` |
1272
+ | `page-padding-sm` | `16px 16px 48px` |
1273
+ | `page-title-size-sm` | `22px` |
1274
+
1275
+ ### Card
1276
+
1277
+ | Token | Default |
1278
+ | ------------------------ | ------------------------- |
1279
+ | `card-border-color` | `var(--border)` |
1280
+ | `card-radius` | `var(--radius-xl)` |
1281
+ | `card-shadow` | `var(--shadow-sm)` |
1282
+ | `card-padding` | `14px 16px` |
1283
+ | `card-padding-sm` | `8px 10px` |
1284
+ | `card-head-padding` | `10px 16px` |
1285
+ | `card-head-border` | `1px solid var(--border)` |
1286
+ | `card-head-background` | `transparent` |
1287
+ | `card-head-foreground` | `inherit` |
1288
+ | `card-head-icon-color` | `var(--muted-foreground)` |
1289
+ | `card-title-font-family` | `var(--font-display)` |
1290
+ | `card-title-font-size` | `15px` |
1291
+ | `card-title-font-weight` | `600` |
1292
+
1293
+ ### Button
1294
+
1295
+ | Token | Default |
1296
+ | --------------------------------- | ---------------------------------------------------------- |
1297
+ | `button-hover-mix` | `var(--tone-toward)` |
1298
+ | `button-hover-amount` | `var(--tone-amount)` |
1299
+ | `button-shadow` | `var(--shadow-sm)` |
1300
+ | `button-gap` | `8px` |
1301
+ | `button-height` | `36px` |
1302
+ | `button-padding` | `0 14px` |
1303
+ | `button-radius` | `var(--radius-md)` |
1304
+ | `button-border-width` | `1px` |
1305
+ | `button-font-size` | `14px` |
1306
+ | `button-font-weight` | `560` |
1307
+ | `button-line-height` | `1` |
1308
+ | `button-active-transform` | `translateY(.5px)` |
1309
+ | `button-active-shadow` | `var(--button-shadow, var(--shadow-sm))` |
1310
+ | `button-disabled-opacity` | `.5` |
1311
+ | `button-disabled-cursor` | `default` |
1312
+ | `button-height-xs` | `26px` |
1313
+ | `button-padding-xs` | `0 8px` |
1314
+ | `button-gap-xs` | `5px` |
1315
+ | `button-font-size-xs` | `12px` |
1316
+ | `button-radius-xs` | `var(--button-radius, var(--radius-md))` |
1317
+ | `button-height-sm` | `30px` |
1318
+ | `button-padding-sm` | `0 11px` |
1319
+ | `button-gap-sm` | `6px` |
1320
+ | `button-font-size-sm` | `13px` |
1321
+ | `button-radius-sm` | `var(--button-radius, var(--radius-md))` |
1322
+ | `button-height-lg` | `44px` |
1323
+ | `button-padding-lg` | `0 18px` |
1324
+ | `button-font-size-lg` | `15px` |
1325
+ | `button-radius-lg` | `var(--button-radius, var(--radius-md))` |
1326
+ | `button-outline-background` | `var(--card)` |
1327
+ | `button-outline-foreground` | `var(--card-foreground)` |
1328
+ | `button-outline-border` | `var(--input)` |
1329
+ | `button-outline-hover-background` | `var(--muted)` |
1330
+ | `button-outline-hover-foreground` | `var(--button-outline-foreground, var(--card-foreground))` |
1331
+ | `button-outline-hover-border` | `var(--button-outline-border, var(--input))` |
1332
+ | `button-link-padding` | `0` |
1333
+ | `button-link-foreground` | `var(--primary-text)` |
1334
+
1335
+ ### IconButton
1336
+
1337
+ | Token | Default |
1338
+ | ----------------------- | ------------------ |
1339
+ | `icon-button-size` | `34px` |
1340
+ | `icon-button-radius` | `var(--radius-md)` |
1341
+ | `icon-button-size-sm` | `28px` |
1342
+ | `icon-button-radius-sm` | `var(--radius-sm)` |
1343
+ | `icon-button-size-lg` | `38px` |
1344
+
1345
+ ### Input
1346
+
1347
+ | Token | Default |
1348
+ | ---------------------------- | -------------------------------------------------------------------- |
1349
+ | `input-height` | `40px` |
1350
+ | `input-border-width` | `1px` |
1351
+ | `input-radius` | `var(--radius-lg)` |
1352
+ | `input-background` | `var(--card)` |
1353
+ | `input-focus-shadow` | `0 0 0 4px color-mix(in oklab, var(--ring) 16%, transparent)` |
1354
+ | `input-radius-sm` | `var(--radius-md)` |
1355
+ | `input-gap` | `8px` |
1356
+ | `input-padding` | `0 12px` |
1357
+ | `input-invalid-focus-shadow` | `0 0 0 4px color-mix(in oklab, var(--destructive) 14%, transparent)` |
1358
+ | `input-disabled-opacity` | `.55` |
1359
+ | `input-disabled-background` | `var(--input-background, var(--card))` |
1360
+ | `input-font-size` | `14.5px` |
1361
+ | `input-placeholder` | `var(--muted-foreground)` |
1362
+ | `input-placeholder-opacity` | `.85` |
1363
+ | `input-height-sm` | `36px` |
1364
+ | `input-padding-sm` | `0 3px 0 10px` |
1365
+ | `input-font-size-sm` | `14px` |
1366
+ | `input-height-lg` | `44px` |
1367
+ | `input-padding-lg` | `0 14px` |
1368
+ | `input-radius-lg` | `${RADIUS}` |
1369
+ | `input-font-size-lg` | `15px` |
1370
+ | `input-addon-min-width` | `36px` |
1371
+ | `input-addon-padding` | `0 10px` |
1372
+ | `input-addon-border-width` | `var(--input-border-width, 1px)` |
1373
+ | `input-addon-background` | `var(--muted)` |
1374
+ | `input-addon-foreground` | `var(--muted-foreground)` |
1375
+ | `input-addon-font-size` | `14px` |
1376
+
1377
+ ### Select
1378
+
1379
+ | Token | Default |
1380
+ | ---------------------------- | -------------------------------------------------------------------------------------------------- |
1381
+ | `select-min-width` | `160px` |
1382
+ | `select-height` | `var(--input-height, 40px)` |
1383
+ | `select-border-width` | `var(--input-border-width, 1px)` |
1384
+ | `select-radius` | `var(--input-radius, var(--radius-lg))` |
1385
+ | `select-background` | `var(--input-background, var(--card))` |
1386
+ | `select-font-size` | `var(--input-font-size, 14.5px)` |
1387
+ | `select-height-sm` | `var(--input-height-sm, 36px)` |
1388
+ | `select-font-size-sm` | `var(--input-font-size-sm, 14px)` |
1389
+ | `select-padding` | `0 36px 0 12px` |
1390
+ | `select-focus-shadow` | `var(--input-focus-shadow, 0 0 0 4px color-mix(in oklab, var(--ring) 16%, transparent))` |
1391
+ | `select-disabled-opacity` | `var(--input-disabled-opacity, .55)` |
1392
+ | `select-disabled-background` | `var(--input-disabled-background, var(--select-background, var(--input-background, var(--card))))` |
1393
+ | `select-radius-sm` | `var(--input-radius-sm, var(--radius-md))` |
1394
+ | `select-height-lg` | `var(--input-height-lg, 44px)` |
1395
+ | `select-font-size-lg` | `var(--input-font-size-lg, 15px)` |
1396
+
1397
+ ### Textarea
1398
+
1399
+ | Token | Default |
1400
+ | ------------------------------ | ---------------------------------------------------------------------------------------------------- |
1401
+ | `textarea-min-height` | `84px` |
1402
+ | `textarea-padding` | `10px 12px` |
1403
+ | `textarea-border-width` | `var(--input-border-width, 1px)` |
1404
+ | `textarea-radius` | `var(--input-radius, var(--radius-lg))` |
1405
+ | `textarea-background` | `var(--input-background, var(--card))` |
1406
+ | `textarea-font-size` | `var(--input-font-size, 14.5px)` |
1407
+ | `textarea-line-height` | `1.5` |
1408
+ | `textarea-focus-shadow` | `var(--input-focus-shadow, 0 0 0 4px color-mix(in oklab, var(--ring) 16%, transparent))` |
1409
+ | `textarea-disabled-background` | `var(--input-disabled-background, var(--textarea-background, var(--input-background, var(--card))))` |
1410
+
1411
+ ### Checkbox
1412
+
1413
+ | Token | Default |
1414
+ | ----------------------- | ------------------------- |
1415
+ | `checkbox-gap` | `9px` |
1416
+ | `checkbox-font-size` | `14px` |
1417
+ | `checkbox-size` | `16px` |
1418
+ | `checkbox-border-width` | `1.5px` |
1419
+ | `checkbox-radius` | `calc(var(--radius) / 3)` |
1420
+
1421
+ ### Radio
1422
+
1423
+ | Token | Default |
1424
+ | -------------------- | ------- |
1425
+ | `radio-gap` | `9px` |
1426
+ | `radio-font-size` | `14px` |
1427
+ | `radio-size` | `16px` |
1428
+ | `radio-border-width` | `1.5px` |
1429
+
1430
+ ### Field
1431
+
1432
+ | Token | Default |
1433
+ | ------------------------- | ------------------------- |
1434
+ | `field-gap` | `7px` |
1435
+ | `field-label-font-size` | `13.5px` |
1436
+ | `field-label-font-weight` | `600` |
1437
+ | `field-label-color` | `var(--foreground)` |
1438
+ | `field-required-color` | `var(--destructive-text)` |
1439
+ | `field-note-font-size` | `12.5px` |
1440
+ | `field-row-label-width` | `30%` |
1441
+ | `field-row-control-width` | `1fr` |
1442
+ | `field-row-gap` | `16px` |
1443
+ | `field-row-label-offset` | `0` |
1444
+ | `field-row-label-align` | `start` |
1445
+
1446
+ ### Switch
1447
+
1448
+ | Token | Default |
1449
+ | ------------------------- | ----------------------------- |
1450
+ | `switch-width` | `36px` |
1451
+ | `switch-height` | `20px` |
1452
+ | `switch-padding` | `2px` |
1453
+ | `switch-border-width` | `0` |
1454
+ | `switch-border-color` | `transparent` |
1455
+ | `switch-radius` | `9999px` |
1456
+ | `switch-off-background` | `var(--input)` |
1457
+ | `switch-off-foreground` | `var(--secondary-foreground)` |
1458
+ | `switch-font-size` | `12px` |
1459
+ | `switch-font-weight` | `650` |
1460
+ | `switch-width-sm` | `30px` |
1461
+ | `switch-height-sm` | `16px` |
1462
+ | `switch-width-lg` | `44px` |
1463
+ | `switch-height-lg` | `24px` |
1464
+ | `switch-on-background` | `var(--primary)` |
1465
+ | `switch-on-foreground` | `var(--primary-foreground)` |
1466
+ | `switch-thumb-aspect` | `1` |
1467
+ | `switch-thumb-width` | `auto` |
1468
+ | `switch-thumb-radius` | `9999px` |
1469
+ | `switch-thumb-background` | `var(--background)` |
1470
+ | `switch-thumb-shadow` | `var(--shadow-sm)` |
1471
+ | `switch-word-padding` | `7px` |
1472
+ | `switch-disabled-opacity` | `.5` |
1473
+
1474
+ ### TagsInput
1475
+
1476
+ | Token | Default |
1477
+ | ------------------------------- | ---------------------------------------------------------------------------------------- |
1478
+ | `tags-input-gap` | `6px` |
1479
+ | `tags-input-min-height` | `var(--input-height, 40px)` |
1480
+ | `tags-input-padding` | `5px 8px` |
1481
+ | `tags-input-border-width` | `var(--input-border-width, 1px)` |
1482
+ | `tags-input-border-color` | `var(--input)` |
1483
+ | `tags-input-radius` | `var(--input-radius, var(--radius-lg))` |
1484
+ | `tags-input-background` | `var(--input-background, var(--card))` |
1485
+ | `tags-input-font-size` | `var(--input-font-size, 14.5px)` |
1486
+ | `tags-input-focus-border-color` | `var(--ring)` |
1487
+ | `tags-input-focus-shadow` | `var(--input-focus-shadow, 0 0 0 4px color-mix(in oklab, var(--ring) 16%, transparent))` |
1488
+ | `tag-padding` | `2px 4px 2px 9px` |
1489
+ | `tag-radius` | `var(--radius-full)` |
1490
+ | `tag-background` | `var(--secondary)` |
1491
+ | `tag-foreground` | `var(--secondary-foreground)` |
1492
+ | `tag-font-size` | `13px` |
1493
+ | `tag-font-weight` | `560` |
1494
+
1495
+ ### Picker and MultiPicker
1496
+
1497
+ | Token | Default |
1498
+ | ------------------------------------- | ---------------------------------------------------------------------------------------- |
1499
+ | `picker-min-width` | `var(--select-min-width, 160px)` |
1500
+ | `picker-height` | `var(--select-height, var(--input-height, 40px))` |
1501
+ | `picker-padding` | `0 10px 0 12px` |
1502
+ | `picker-border-width` | `var(--select-border-width, var(--input-border-width, 1px))` |
1503
+ | `picker-border-color` | `var(--input)` |
1504
+ | `picker-radius` | `var(--select-radius, var(--input-radius, var(--radius-lg)))` |
1505
+ | `picker-background` | `var(--select-background, var(--input-background, var(--card)))` |
1506
+ | `picker-foreground` | `var(--foreground)` |
1507
+ | `picker-font-size` | `var(--select-font-size, var(--input-font-size, 14.5px))` |
1508
+ | `picker-font-weight` | `400` |
1509
+ | `picker-hover-background` | `var(--picker-background, var(--card))` |
1510
+ | `picker-hover-foreground` | `var(--picker-foreground, var(--foreground))` |
1511
+ | `picker-open-border-color` | `var(--ring)` |
1512
+ | `picker-open-background` | `var(--picker-background, var(--card))` |
1513
+ | `picker-open-foreground` | `var(--picker-foreground, var(--foreground))` |
1514
+ | `picker-focus-shadow` | `var(--input-focus-shadow, 0 0 0 4px color-mix(in oklab, var(--ring) 16%, transparent))` |
1515
+ | `picker-height-sm` | `var(--select-height-sm, var(--input-height-sm, 36px))` |
1516
+ | `picker-font-size-sm` | `var(--select-font-size-sm, var(--input-font-size-sm, 14px))` |
1517
+ | `picker-caret-color` | `var(--muted-foreground)` |
1518
+ | `picker-menu-min-width` | `200px` |
1519
+ | `picker-menu-max-width` | `420px` |
1520
+ | `picker-menu-padding` | `5px` |
1521
+ | `picker-item-font-size` | `14px` |
1522
+ | `picker-search-height` | `34px` |
1523
+ | `picker-item-radius` | `var(--radius-md)` |
1524
+ | `picker-list-max-height` | `320px` |
1525
+ | `picker-item-height` | `34px` |
1526
+ | `picker-item-padding` | `6px 10px` |
1527
+ | `picker-item-foreground` | `var(--popover-foreground)` |
1528
+ | `picker-item-hover-background` | `var(--accent)` |
1529
+ | `picker-item-hover-foreground` | `var(--accent-foreground)` |
1530
+ | `picker-item-chosen-background` | `transparent` |
1531
+ | `picker-item-chosen-foreground` | `var(--picker-item-foreground, var(--popover-foreground))` |
1532
+ | `picker-item-chosen-font-weight` | `600` |
1533
+ | `picker-item-chosen-hover-background` | `var(--picker-item-hover-background, var(--accent))` |
1534
+ | `picker-check-color` | `var(--primary-text)` |
1535
+
1536
+ ### Dialog
1537
+
1538
+ | Token | Default |
1539
+ | ----------------------------- | ------------------------------------------------------- |
1540
+ | `dialog-width` | `520px` |
1541
+ | `dialog-border-color` | `var(--border)` |
1542
+ | `dialog-radius` | `var(--radius-2xl)` |
1543
+ | `dialog-shadow` | `var(--shadow-lg)` |
1544
+ | `dialog-width-sm` | `400px` |
1545
+ | `dialog-width-lg` | `760px` |
1546
+ | `dialog-top` | `min(12vh, 96px)` |
1547
+ | `dialog-backdrop` | `rgb(8 8 14 / .55)` |
1548
+ | `dialog-head-padding` | `18px 14px 2px 22px` |
1549
+ | `dialog-head-border` | `0` |
1550
+ | `dialog-head-background` | `transparent` |
1551
+ | `dialog-head-foreground` | `inherit` |
1552
+ | `dialog-close-color` | `var(--muted-foreground)` |
1553
+ | `dialog-title-margin` | `4px 0 0` |
1554
+ | `dialog-title-font-family` | `var(--font-display)` |
1555
+ | `dialog-title-font-size` | `17px` |
1556
+ | `dialog-title-font-weight` | `650` |
1557
+ | `dialog-title-letter-spacing` | `-.01em` |
1558
+ | `dialog-body-padding` | `14px 22px 22px` |
1559
+ | `dialog-foot-gap` | `8px` |
1560
+ | `dialog-foot-padding` | `14px 18px` |
1561
+ | `dialog-foot-border` | `1px solid var(--border)` |
1562
+ | `dialog-foot-background` | `color-mix(in oklab, var(--muted) 45%, var(--popover))` |
1563
+
1564
+ ### Drawer
1565
+
1566
+ | Token | Default |
1567
+ | -------------- | ------- |
1568
+ | `drawer-width` | `320px` |
1569
+
1570
+ ### Tabs
1571
+
1572
+ | Token | Default |
1573
+ | --------------------------------- | ---------------------------------------- |
1574
+ | `tabs-tab-height` | `34px` |
1575
+ | `tabs-tab-padding` | `0 12px` |
1576
+ | `tabs-tab-radius` | `var(--radius-md)` |
1577
+ | `tabs-tab-color` | `var(--muted-foreground)` |
1578
+ | `tabs-tab-font-size` | `13.5px` |
1579
+ | `tabs-tab-font-weight` | `560` |
1580
+ | `tabs-tab-hover-color` | `var(--foreground)` |
1581
+ | `tabs-segmented-padding` | `3px` |
1582
+ | `tabs-segmented-radius` | `var(--radius-lg)` |
1583
+ | `tabs-segmented-background` | `var(--muted)` |
1584
+ | `tabs-segmented-shadow` | `var(--shadow-sm)` |
1585
+ | `tabs-line-gap` | `6px` |
1586
+ | `tabs-line-tab-height` | `40px` |
1587
+ | `tabs-line-tab-padding` | `0 6px` |
1588
+ | `tabs-line-tab-radius` | `0` |
1589
+ | `tabs-line-tab-border-width` | `0 0 2px` |
1590
+ | `tabs-line-hover-background` | `transparent` |
1591
+ | `tabs-line-hover-border-color` | `transparent` |
1592
+ | `tabs-selected-color` | `var(--foreground)` |
1593
+ | `tabs-line-selected-background` | `transparent` |
1594
+ | `tabs-line-selected-border-color` | `transparent transparent var(--primary)` |
1595
+
1596
+ ### Menu
1597
+
1598
+ | Token | Default |
1599
+ | ---------------------------- | -------------------------- |
1600
+ | `menu-min-width` | `200px` |
1601
+ | `menu-padding` | `5px` |
1602
+ | `menu-border-color` | `var(--border)` |
1603
+ | `menu-radius` | `var(--radius-lg)` |
1604
+ | `menu-shadow` | `var(--shadow-md)` |
1605
+ | `menu-item-height` | `34px` |
1606
+ | `menu-item-padding` | `6px 10px` |
1607
+ | `menu-item-radius` | `var(--radius-sm)` |
1608
+ | `menu-item-color` | `inherit` |
1609
+ | `menu-item-font-size` | `14px` |
1610
+ | `menu-item-hover-background` | `var(--accent)` |
1611
+ | `menu-item-hover-foreground` | `var(--accent-foreground)` |
1612
+ | `menu-item-hover-icon` | `var(--muted-foreground)` |
1613
+
1614
+ ### Popover
1615
+
1616
+ | Token | Default |
1617
+ | ---------------------- | ------------------ |
1618
+ | `popover-width` | `300px` |
1619
+ | `popover-padding` | `6px` |
1620
+ | `popover-border-color` | `var(--border)` |
1621
+ | `popover-radius` | `var(--radius-xl)` |
1622
+ | `popover-shadow` | `var(--shadow-lg)` |
1623
+
1624
+ ### Autocomplete
1625
+
1626
+ | Token | Default |
1627
+ | --------------------------------- | -------------------------- |
1628
+ | `autocomplete-width` | `380px` |
1629
+ | `autocomplete-padding` | `5px` |
1630
+ | `autocomplete-border-color` | `var(--border)` |
1631
+ | `autocomplete-radius` | `var(--radius-xl)` |
1632
+ | `autocomplete-shadow` | `var(--shadow-lg)` |
1633
+ | `autocomplete-option-height` | `40px` |
1634
+ | `autocomplete-option-padding` | `5px 9px` |
1635
+ | `autocomplete-option-radius` | `var(--radius-md)` |
1636
+ | `autocomplete-active-background` | `var(--accent)` |
1637
+ | `autocomplete-active-foreground` | `var(--accent-foreground)` |
1638
+ | `autocomplete-option-font-size` | `14px` |
1639
+ | `autocomplete-option-font-weight` | `560` |
1640
+
1641
+ ### Tooltip
1642
+
1643
+ | Token | Default |
1644
+ | -------------------- | ------------------- |
1645
+ | `tooltip-max-width` | `280px` |
1646
+ | `tooltip-padding` | `5px 9px` |
1647
+ | `tooltip-radius` | `var(--radius-sm)` |
1648
+ | `tooltip-background` | `var(--foreground)` |
1649
+ | `tooltip-foreground` | `var(--background)` |
1650
+ | `tooltip-font-size` | `12.5px` |
1651
+
1652
+ ### Avatar
1653
+
1654
+ | Token | Default |
1655
+ | --------------------------- | --------------- |
1656
+ | `avatar-empty-background` | `var(--muted)` |
1657
+ | `avatar-empty-border-color` | `var(--border)` |
1658
+
1659
+ ### Badge
1660
+
1661
+ | Token | Default |
1662
+ | ------------------- | -------------------- |
1663
+ | `badge-min-width` | `20px` |
1664
+ | `badge-padding` | `1px 7px` |
1665
+ | `badge-radius` | `var(--radius-full)` |
1666
+ | `badge-font-size` | `11.5px` |
1667
+ | `badge-font-weight` | `600` |
1668
+
1669
+ ### Chip
1670
+
1671
+ | Token | Default |
1672
+ | ---------------- | -------------------- |
1673
+ | `chip-height` | `30px` |
1674
+ | `chip-radius` | `var(--radius-full)` |
1675
+ | `chip-font-size` | `13px` |
1676
+
1677
+ ### Notice
1678
+
1679
+ | Token | Default |
1680
+ | ------------------ | ------------------ |
1681
+ | `notice-padding` | `10px 12px` |
1682
+ | `notice-radius` | `var(--radius-lg)` |
1683
+ | `notice-font-size` | `14px` |
1684
+
1685
+ ### EmptyState
1686
+
1687
+ | Token | Default |
1688
+ | ------------------------- | ------------------- |
1689
+ | `empty-state-icon-size` | `56px` |
1690
+ | `empty-state-icon-radius` | `var(--radius-2xl)` |
1691
+ | `empty-state-title-size` | `20px` |
1692
+
1693
+ ### DetailList
1694
+
1695
+ | Token | Default |
1696
+ | ------------------------- | ------------------------- |
1697
+ | `detail-list-radius` | `var(--radius-xl)` |
1698
+ | `detail-list-font-size` | `14px` |
1699
+ | `detail-list-label-width` | `clamp(7rem, 30%, 13rem)` |
1700
+ | `detail-list-padding` | `11px 16px` |
1701
+
1702
+ ### DataTable
1703
+
1704
+ | Token | Default |
1705
+ | --------------------------- | ---------------------------------------------------- |
1706
+ | `table-cell-padding` | `10px 12px` |
1707
+ | `table-border-color` | `var(--border)` |
1708
+ | `table-font-size` | `14px` |
1709
+ | `table-toolbar-gap` | `8px` |
1710
+ | `table-toolbar-margin` | `12px` |
1711
+ | `table-search-width` | `220px` |
1712
+ | `table-radius` | `var(--radius-lg)` |
1713
+ | `table-background` | `var(--card)` |
1714
+ | `table-row-border-width` | `1px` |
1715
+ | `table-column-border-width` | `0px` |
1716
+ | `table-head-background` | `color-mix(in oklab, var(--muted) 70%, var(--card))` |
1717
+ | `table-head-foreground` | `var(--muted-foreground)` |
1718
+ | `table-head-font-size` | `12.5px` |
1719
+ | `table-head-font-weight` | `600` |
1720
+ | `table-stripe` | `transparent` |
1721
+ | `table-hover` | `color-mix(in oklab, var(--muted) 55%, transparent)` |
1722
+ | `table-selected` | `var(--primary-soft)` |
1723
+ | `table-detail-padding` | `12px 16px` |
1724
+ | `table-empty-padding` | `32px 12px` |
1725
+
1726
+ ### Pagination
1727
+
1728
+ | Token | Default |
1729
+ | ------------------------------- | --------------------------- |
1730
+ | `pagination-margin` | `12px` |
1731
+ | `pagination-font-size` | `13px` |
1732
+ | `pagination-gap` | `2px` |
1733
+ | `pagination-link-size` | `32px` |
1734
+ | `pagination-link-radius` | `var(--radius-md)` |
1735
+ | `pagination-link-font-weight` | `560` |
1736
+ | `pagination-current-background` | `var(--primary)` |
1737
+ | `pagination-current-foreground` | `var(--primary-foreground)` |
1738
+
1739
+ ### Calendar
1740
+
1741
+ | Token | Default |
1742
+ | ------------------------------ | --------------------------- |
1743
+ | `calendar-gap` | `20px` |
1744
+ | `calendar-font-size` | `13px` |
1745
+ | `calendar-head-gap` | `4px` |
1746
+ | `calendar-title-font` | `var(--font-display)` |
1747
+ | `calendar-title-size` | `14px` |
1748
+ | `calendar-title-weight` | `650` |
1749
+ | `calendar-day-size` | `34px` |
1750
+ | `calendar-day-radius` | `var(--radius-md)` |
1751
+ | `calendar-nav-color` | `var(--muted-foreground)` |
1752
+ | `calendar-hover-background` | `var(--accent)` |
1753
+ | `calendar-hover-foreground` | `var(--accent-foreground)` |
1754
+ | `calendar-row-gap` | `2px` |
1755
+ | `calendar-weekday-color` | `var(--muted-foreground)` |
1756
+ | `calendar-weekday-size` | `11.5px` |
1757
+ | `calendar-today-ring` | `var(--border)` |
1758
+ | `calendar-range-radius` | `0` |
1759
+ | `calendar-range-background` | `var(--primary-soft)` |
1760
+ | `calendar-range-foreground` | `var(--primary-text)` |
1761
+ | `calendar-selected-background` | `var(--primary)` |
1762
+ | `calendar-selected-foreground` | `var(--primary-foreground)` |
1763
+ | `calendar-day-size-touch` | `40px` |
1764
+
1765
+ ### DatePicker and DateRangePicker
1766
+
1767
+ | Token | Default |
1768
+ | -------------------------------------- | ------------------------------------------------------------- |
1769
+ | `date-picker-width` | `0` |
1770
+ | `date-picker-height` | `40px` |
1771
+ | `date-picker-padding` | `0 12px` |
1772
+ | `date-picker-border-width` | `1px` |
1773
+ | `date-picker-border` | `var(--input)` |
1774
+ | `date-picker-radius` | `var(--radius-lg)` |
1775
+ | `date-picker-background` | `var(--card)` |
1776
+ | `date-picker-foreground` | `var(--foreground)` |
1777
+ | `date-picker-font-size` | `14.5px` |
1778
+ | `date-picker-focus-border` | `var(--ring)` |
1779
+ | `date-picker-focus-shadow` | `0 0 0 4px color-mix(in oklab, var(--ring) 16%, transparent)` |
1780
+ | `date-picker-panel-padding` | `12px` |
1781
+ | `date-picker-panel-font-size` | `13px` |
1782
+ | `date-picker-panel-gap` | `16px` |
1783
+ | `date-picker-preset-gap` | `2px` |
1784
+ | `date-picker-presets-width` | `180px` |
1785
+ | `date-picker-preset-height` | `32px` |
1786
+ | `date-picker-preset-padding` | `0 10px` |
1787
+ | `date-picker-preset-radius` | `var(--radius-md)` |
1788
+ | `date-picker-preset-font-size` | `13.5px` |
1789
+ | `date-picker-preset-active-background` | `var(--primary-soft)` |
1790
+ | `date-picker-preset-active-foreground` | `var(--primary-text)` |
1791
+ | `date-picker-foot-gap` | `12px` |
1792
+ | `date-picker-fields-gap` | `10px` |
1793
+ | `date-picker-end-width` | `9.5em` |
1794
+ | `date-picker-end-time-width` | `15em` |
1795
+ | `date-picker-height-touch` | `44px` |
1796
+ | `date-picker-preset-height-touch` | `40px` |
1797
+
1798
+ ### DateTimePicker
1799
+
1800
+ | Token | Default |
1801
+ | ----------------------------- | ------- |
1802
+ | `date-time-picker-gap` | `6px` |
1803
+ | `date-time-picker-spin-width` | `3.6em` |
1804
+
1805
+ ### LiveClock
1806
+
1807
+ | Token | Default |
1808
+ | -------------------- | -------------- |
1809
+ | `live-clock-numeric` | `tabular-nums` |
1810
+
1811
+ ### FileInput
1812
+
1813
+ | Token | Default |
1814
+ | ------------------------------- | ----------------------------- |
1815
+ | `file-input-gap` | `10px` |
1816
+ | `file-input-padding` | `4px 6px 4px 4px` |
1817
+ | `file-input-font-size` | `14px` |
1818
+ | `file-input-drop-border-color` | `var(--primary)` |
1819
+ | `file-input-drop-background` | `var(--primary-soft)` |
1820
+ | `file-input-button-height` | `30px` |
1821
+ | `file-input-button-padding` | `0 11px` |
1822
+ | `file-input-button-radius` | `var(--radius-md)` |
1823
+ | `file-input-button-background` | `var(--secondary)` |
1824
+ | `file-input-button-foreground` | `var(--secondary-foreground)` |
1825
+ | `file-input-button-font-weight` | `560` |
1826
+
1827
+ ### RowsEditor
1828
+
1829
+ | Token | Default |
1830
+ | ------------------------------- | ------------------- |
1831
+ | `rows-editor-gap` | `12px` |
1832
+ | `rows-editor-label-width` | `88px` |
1833
+ | `rows-editor-column-gap` | `12px` |
1834
+ | `rows-editor-label-font-size` | `13.5px` |
1835
+ | `rows-editor-label-font-weight` | `600` |
1836
+ | `rows-editor-label-color` | `var(--foreground)` |
1837
+ | `rows-editor-actions-offset` | `6px` |
1838
+ | `rows-editor-error-font-size` | `12.5px` |
1839
+
1840
+ ### AppBar
1841
+
1842
+ | Token | Default |
1843
+ | --------------------------------- | ----------------------------------------- |
1844
+ | `appbar-background` | `var(--background)` |
1845
+ | `appbar-foreground` | `var(--foreground)` |
1846
+ | `appbar-border-width` | `1px` |
1847
+ | `appbar-border-color` | `var(--border)` |
1848
+ | `appbar-shadow` | `none` |
1849
+ | `appbar-gap` | `16px` |
1850
+ | `appbar-max-width` | `none` |
1851
+ | `appbar-height` | `56px` |
1852
+ | `appbar-padding-x` | `16px` |
1853
+ | `appbar-brand-color` | `currentColor` |
1854
+ | `appbar-brand-font` | `var(--font-display)` |
1855
+ | `appbar-brand-font-size` | `17px` |
1856
+ | `appbar-brand-font-weight` | `650` |
1857
+ | `appbar-brand-hover-color` | `var(--appbar-brand-color, currentColor)` |
1858
+ | `appbar-items-justify` | `flex-start` |
1859
+ | `appbar-items-gap` | `4px` |
1860
+ | `appbar-item-gap` | `8px` |
1861
+ | `appbar-item-height` | `36px` |
1862
+ | `appbar-item-padding` | `0 12px` |
1863
+ | `appbar-item-radius` | `var(--radius-md)` |
1864
+ | `appbar-item-color` | `var(--muted-foreground)` |
1865
+ | `appbar-item-font-size` | `14px` |
1866
+ | `appbar-item-font-weight` | `560` |
1867
+ | `appbar-item-hover-background` | `var(--accent)` |
1868
+ | `appbar-item-hover-color` | `var(--accent-foreground)` |
1869
+ | `appbar-item-active-border-color` | `var(--border)` |
1870
+ | `appbar-item-active-background` | `var(--card)` |
1871
+ | `appbar-item-active-color` | `var(--card-foreground)` |
1872
+ | `appbar-item-active-shadow` | `var(--shadow-sm)` |
1873
+ | `appbar-item-active-font-weight` | `620` |
1874
+ | `appbar-icon-size` | `18px` |
1875
+ | `appbar-icon-color` | `var(--primary-text)` |
1876
+ | `appbar-stacked-gap` | `2px` |
1877
+ | `appbar-stacked-padding` | `6px 10px` |
1878
+ | `appbar-stacked-font-size` | `12px` |
1879
+
1880
+ ### TopBar
1881
+
1882
+ | Token | Default |
1883
+ | --------------------------- | ------------------------- |
1884
+ | `topbar-background` | `var(--muted)` |
1885
+ | `topbar-foreground` | `var(--muted-foreground)` |
1886
+ | `topbar-font-size` | `12.5px` |
1887
+ | `topbar-border-width` | `1px` |
1888
+ | `topbar-border-color` | `var(--border)` |
1889
+ | `topbar-gap` | `12px` |
1890
+ | `topbar-max-width` | `none` |
1891
+ | `topbar-height` | `28px` |
1892
+ | `topbar-padding-y` | `2px` |
1893
+ | `topbar-padding-x` | `16px` |
1894
+ | `topbar-center-font-weight` | `620` |
1895
+ | `topbar-center-color` | `var(--foreground)` |
1896
+ | `topbar-link-color` | `var(--primary-text)` |
1897
+
1898
+ ### TileGrid
1899
+
1900
+ | Token | Default |
1901
+ | ----------------------- | ------------------------------------------- |
1902
+ | `tile-justify` | `flex-start` |
1903
+ | `tile-gap` | `12px` |
1904
+ | `tile-label-gap` | `10px` |
1905
+ | `tile-width` | `132px` |
1906
+ | `tile-padding` | `16px 10px 14px` |
1907
+ | `tile-border-width` | `1px` |
1908
+ | `tile-border-color` | `var(--border)` |
1909
+ | `tile-radius` | `var(--radius-xl)` |
1910
+ | `tile-background` | `var(--card)` |
1911
+ | `tile-color` | `var(--card-foreground)` |
1912
+ | `tile-shadow` | `var(--shadow-sm)` |
1913
+ | `tile-font-size` | `14px` |
1914
+ | `tile-font-weight` | `560` |
1915
+ | `tile-hover-background` | `var(--muted)` |
1916
+ | `tile-hover-color` | `var(--tile-color, var(--card-foreground))` |
1917
+ | `tile-hover-decoration` | `none` |
1918
+ | `tile-icon-size` | `40px` |
1919
+ | `tile-icon-radius` | `0` |
1920
+ | `tile-icon-color` | `var(--primary-text)` |
1921
+
1922
+ ### Toasts
1923
+
1924
+ | Token | Default |
1925
+ | ------------------------------ | --------------------------- |
1926
+ | `toast-gap` | `8px` |
1927
+ | `toast-width` | `360px` |
1928
+ | `toast-offset` | `16px` |
1929
+ | `toast-icon-gap` | `10px` |
1930
+ | `toast-padding` | `12px 12px 12px 14px` |
1931
+ | `toast-border-width` | `1px` |
1932
+ | `toast-radius` | `var(--radius-lg)` |
1933
+ | `toast-shadow` | `var(--shadow-md)` |
1934
+ | `toast-font-size` | `14px` |
1935
+ | `toast-font-weight` | `520` |
1936
+ | `toast-line-height` | `1.45` |
1937
+ | `toast-icon-display` | `inline-block` |
1938
+ | `toast-close-opacity` | `.7` |
1939
+ | `toast-neutral-background` | `var(--popover)` |
1940
+ | `toast-neutral-foreground` | `var(--popover-foreground)` |
1941
+ | `toast-neutral-border` | `var(--border)` |
1942
+ | `toast-neutral-icon` | `var(--muted-foreground)` |
1943
+ | `toast-success-background` | `var(--success-soft)` |
1944
+ | `toast-success-foreground` | `var(--success-text)` |
1945
+ | `toast-success-border` | `var(--success-border)` |
1946
+ | `toast-success-icon` | `var(--success)` |
1947
+ | `toast-info-background` | `var(--info-soft)` |
1948
+ | `toast-info-foreground` | `var(--info-text)` |
1949
+ | `toast-info-border` | `var(--info-border)` |
1950
+ | `toast-info-icon` | `var(--info)` |
1951
+ | `toast-warning-background` | `var(--warning-soft)` |
1952
+ | `toast-warning-foreground` | `var(--warning-text)` |
1953
+ | `toast-warning-border` | `var(--warning-border)` |
1954
+ | `toast-warning-icon` | `var(--warning)` |
1955
+ | `toast-destructive-background` | `var(--destructive-soft)` |
1956
+ | `toast-destructive-foreground` | `var(--destructive-text)` |
1957
+ | `toast-destructive-border` | `var(--destructive-border)` |
1958
+ | `toast-destructive-icon` | `var(--destructive)` |
1959
+
1960
+ ### Barcode
1961
+
1962
+ | Token | Default |
1963
+ | ------------------------ | ------------------ |
1964
+ | `barcode-caption-gap` | `2px` |
1965
+ | `barcode-padding` | `0` |
1966
+ | `barcode-background` | `#fff` |
1967
+ | `barcode-color` | `#000` |
1968
+ | `barcode-radius` | `0` |
1969
+ | `barcode-font` | `var(--font-mono)` |
1970
+ | `barcode-font-size` | `12px` |
1971
+ | `barcode-letter-spacing` | `.08em` |