@yaks/ui 0.0.0-stage → 0.2.36

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 (776) hide show
  1. package/Address.css +9 -0
  2. package/Address.js +32 -0
  3. package/Address.js.map +1 -0
  4. package/Address.ts +35 -0
  5. package/Annotated.css +17 -0
  6. package/Annotated.js +27 -0
  7. package/Annotated.js.map +1 -0
  8. package/Annotated.ts +32 -0
  9. package/AppShell.css +133 -0
  10. package/AppShell.js +90 -0
  11. package/AppShell.js.map +1 -0
  12. package/AppShell.ts +75 -0
  13. package/At.css +16 -0
  14. package/At.js +28 -0
  15. package/At.js.map +1 -0
  16. package/At.ts +37 -0
  17. package/Attachments.css +110 -0
  18. package/Attachments.js +119 -0
  19. package/Attachments.js.map +1 -0
  20. package/Attachments.ts +158 -0
  21. package/Badge.css +41 -0
  22. package/Badge.js +49 -0
  23. package/Badge.js.map +1 -0
  24. package/Badge.ts +38 -0
  25. package/Body.css +61 -0
  26. package/Body.js +103 -0
  27. package/Body.js.map +1 -0
  28. package/Body.ts +144 -0
  29. package/Button.css +121 -0
  30. package/Button.js +161 -0
  31. package/Button.js.map +1 -0
  32. package/Button.ts +92 -0
  33. package/Card.css +173 -0
  34. package/Card.js +165 -0
  35. package/Card.js.map +1 -0
  36. package/Card.ts +185 -0
  37. package/Cards.css +16 -0
  38. package/Cards.js +36 -0
  39. package/Cards.js.map +1 -0
  40. package/Cards.ts +64 -0
  41. package/Catalog.css +53 -0
  42. package/Catalog.js +55 -0
  43. package/Catalog.js.map +1 -0
  44. package/Catalog.ts +77 -0
  45. package/Chart.css +55 -0
  46. package/Chart.js +54 -0
  47. package/Chart.js.map +1 -0
  48. package/Chart.ts +62 -0
  49. package/Check.css +27 -0
  50. package/Check.js +77 -0
  51. package/Check.js.map +1 -0
  52. package/Check.ts +109 -0
  53. package/Chip.css +64 -0
  54. package/Chip.js +100 -0
  55. package/Chip.js.map +1 -0
  56. package/Chip.ts +66 -0
  57. package/Chips.css +10 -0
  58. package/Chips.js +41 -0
  59. package/Chips.js.map +1 -0
  60. package/Chips.ts +49 -0
  61. package/Choices.css +59 -0
  62. package/Choices.js +56 -0
  63. package/Choices.js.map +1 -0
  64. package/Choices.ts +73 -0
  65. package/Combobox.js +115 -0
  66. package/Combobox.js.map +1 -0
  67. package/Combobox.ts +230 -0
  68. package/Composer.css +247 -0
  69. package/Composer.js +222 -0
  70. package/Composer.js.map +1 -0
  71. package/Composer.ts +249 -0
  72. package/Contents.css +87 -0
  73. package/Contents.js +85 -0
  74. package/Contents.js.map +1 -0
  75. package/Contents.ts +117 -0
  76. package/Copy.css +28 -0
  77. package/Copy.js +62 -0
  78. package/Copy.js.map +1 -0
  79. package/Copy.ts +76 -0
  80. package/Doc.css +29 -0
  81. package/Doc.js +46 -0
  82. package/Doc.js.map +1 -0
  83. package/Doc.ts +64 -0
  84. package/Dock.css +157 -0
  85. package/Dock.js +229 -0
  86. package/Dock.js.map +1 -0
  87. package/Dock.ts +234 -0
  88. package/Dot.css +132 -0
  89. package/Dot.js +91 -0
  90. package/Dot.js.map +1 -0
  91. package/Dot.ts +72 -0
  92. package/Drop.css +133 -0
  93. package/Drop.js +148 -0
  94. package/Drop.js.map +1 -0
  95. package/Drop.ts +162 -0
  96. package/Edit.css +32 -0
  97. package/Edit.js +77 -0
  98. package/Edit.js.map +1 -0
  99. package/Edit.ts +72 -0
  100. package/Empty.css +32 -0
  101. package/Empty.js +45 -0
  102. package/Empty.js.map +1 -0
  103. package/Empty.ts +61 -0
  104. package/ErrorNotice.css +107 -0
  105. package/ErrorNotice.js +127 -0
  106. package/ErrorNotice.js.map +1 -0
  107. package/ErrorNotice.ts +133 -0
  108. package/Field.css +42 -0
  109. package/Field.js +186 -0
  110. package/Field.js.map +1 -0
  111. package/Field.ts +251 -0
  112. package/Form.css +95 -0
  113. package/Form.js +158 -0
  114. package/Form.js.map +1 -0
  115. package/Form.ts +212 -0
  116. package/Gallery.css +42 -0
  117. package/Gallery.js +57 -0
  118. package/Gallery.js.map +1 -0
  119. package/Gallery.ts +89 -0
  120. package/Group.css +8 -0
  121. package/Group.js +25 -0
  122. package/Group.js.map +1 -0
  123. package/Group.ts +40 -0
  124. package/Head.css +108 -0
  125. package/Head.js +124 -0
  126. package/Head.js.map +1 -0
  127. package/Head.ts +161 -0
  128. package/Icon.css +14 -0
  129. package/Icon.js +79 -0
  130. package/Icon.js.map +1 -0
  131. package/Icon.ts +78 -0
  132. package/IconButton.css +32 -0
  133. package/IconButton.js +74 -0
  134. package/IconButton.js.map +1 -0
  135. package/IconButton.ts +55 -0
  136. package/Id.css +29 -0
  137. package/Id.js +42 -0
  138. package/Id.js.map +1 -0
  139. package/Id.ts +31 -0
  140. package/Identity.css +122 -0
  141. package/Identity.js +88 -0
  142. package/Identity.js.map +1 -0
  143. package/Identity.ts +100 -0
  144. package/Index.css +68 -0
  145. package/Index.js +66 -0
  146. package/Index.js.map +1 -0
  147. package/Index.ts +63 -0
  148. package/LICENSE +202 -0
  149. package/Layer.css +82 -0
  150. package/Layer.js +86 -0
  151. package/Layer.js.map +1 -0
  152. package/Layer.ts +85 -0
  153. package/Lightbox.css +86 -0
  154. package/Lightbox.js +69 -0
  155. package/Lightbox.js.map +1 -0
  156. package/Lightbox.ts +79 -0
  157. package/Loading.css +22 -0
  158. package/Loading.js +75 -0
  159. package/Loading.js.map +1 -0
  160. package/Loading.ts +87 -0
  161. package/Logo.css +32 -0
  162. package/Logo.js +69 -0
  163. package/Logo.js.map +1 -0
  164. package/Logo.ts +81 -0
  165. package/Match.css +7 -0
  166. package/Match.js +51 -0
  167. package/Match.js.map +1 -0
  168. package/Match.ts +53 -0
  169. package/Menu.css +202 -0
  170. package/Menu.js +197 -0
  171. package/Menu.js.map +1 -0
  172. package/Menu.ts +233 -0
  173. package/Meter.css +49 -0
  174. package/Meter.js +149 -0
  175. package/Meter.js.map +1 -0
  176. package/Meter.ts +126 -0
  177. package/Metrics.css +43 -0
  178. package/Metrics.js +72 -0
  179. package/Metrics.js.map +1 -0
  180. package/Metrics.ts +66 -0
  181. package/Modal.css +94 -0
  182. package/Modal.js +114 -0
  183. package/Modal.js.map +1 -0
  184. package/Modal.ts +149 -0
  185. package/ModalDOM.css +23 -0
  186. package/More.css +135 -0
  187. package/More.js +135 -0
  188. package/More.js.map +1 -0
  189. package/More.ts +157 -0
  190. package/Notes.css +51 -0
  191. package/Notes.js +64 -0
  192. package/Notes.js.map +1 -0
  193. package/Notes.ts +95 -0
  194. package/Notice.css +30 -0
  195. package/Notice.js +50 -0
  196. package/Notice.js.map +1 -0
  197. package/Notice.ts +40 -0
  198. package/Overlay.css +8 -0
  199. package/Overlay.js +25 -0
  200. package/Overlay.js.map +1 -0
  201. package/Overlay.ts +33 -0
  202. package/Pager.css +33 -0
  203. package/Pager.js +44 -0
  204. package/Pager.js.map +1 -0
  205. package/Pager.ts +56 -0
  206. package/Pairs.css +50 -0
  207. package/Pairs.js +45 -0
  208. package/Pairs.js.map +1 -0
  209. package/Pairs.ts +88 -0
  210. package/Palette.css +77 -0
  211. package/Palette.js +41 -0
  212. package/Palette.js.map +1 -0
  213. package/Palette.ts +44 -0
  214. package/Panes.css +68 -0
  215. package/Panes.js +100 -0
  216. package/Panes.js.map +1 -0
  217. package/Panes.ts +97 -0
  218. package/Passage.css +58 -0
  219. package/Passage.js +80 -0
  220. package/Passage.js.map +1 -0
  221. package/Passage.ts +112 -0
  222. package/Peek.css +75 -0
  223. package/Peek.js +51 -0
  224. package/Peek.js.map +1 -0
  225. package/Peek.ts +74 -0
  226. package/Pills.css +127 -0
  227. package/Pills.js +119 -0
  228. package/Pills.js.map +1 -0
  229. package/Pills.ts +131 -0
  230. package/Plan.css +73 -0
  231. package/Plan.js +62 -0
  232. package/Plan.js.map +1 -0
  233. package/Plan.ts +80 -0
  234. package/Popover.css +47 -0
  235. package/Popover.js +62 -0
  236. package/Popover.js.map +1 -0
  237. package/Popover.ts +80 -0
  238. package/Preview.css +89 -0
  239. package/Preview.js +84 -0
  240. package/Preview.js.map +1 -0
  241. package/Preview.ts +98 -0
  242. package/Prop.css +117 -0
  243. package/Prop.js +94 -0
  244. package/Prop.js.map +1 -0
  245. package/Prop.ts +91 -0
  246. package/Quote.css +55 -0
  247. package/Quote.js +79 -0
  248. package/Quote.js.map +1 -0
  249. package/Quote.ts +85 -0
  250. package/README.md +596 -2
  251. package/Report.css +76 -0
  252. package/Report.js +105 -0
  253. package/Report.js.map +1 -0
  254. package/Report.ts +118 -0
  255. package/Rows.css +289 -0
  256. package/Rows.js +265 -0
  257. package/Rows.js.map +1 -0
  258. package/Rows.ts +337 -0
  259. package/Save.css +112 -0
  260. package/Save.js +100 -0
  261. package/Save.js.map +1 -0
  262. package/Save.ts +102 -0
  263. package/Section.css +52 -0
  264. package/Section.js +73 -0
  265. package/Section.js.map +1 -0
  266. package/Section.ts +86 -0
  267. package/Select.css +140 -0
  268. package/Select.js +208 -0
  269. package/Select.js.map +1 -0
  270. package/Select.ts +238 -0
  271. package/Shell.css +292 -0
  272. package/Shell.js +197 -0
  273. package/Shell.js.map +1 -0
  274. package/Shell.ts +193 -0
  275. package/SideNav.css +105 -0
  276. package/SideNav.js +197 -0
  277. package/SideNav.js.map +1 -0
  278. package/SideNav.ts +189 -0
  279. package/Skip.css +11 -0
  280. package/Skip.js +18 -0
  281. package/Skip.js.map +1 -0
  282. package/Skip.ts +16 -0
  283. package/Spark.css +14 -0
  284. package/Spark.js +84 -0
  285. package/Spark.js.map +1 -0
  286. package/Spark.ts +67 -0
  287. package/Stack.css +13 -0
  288. package/Stack.js +20 -0
  289. package/Stack.js.map +1 -0
  290. package/Stack.ts +31 -0
  291. package/Stamp.css +11 -0
  292. package/Stamp.js +40 -0
  293. package/Stamp.js.map +1 -0
  294. package/Stamp.ts +62 -0
  295. package/State.css +10 -0
  296. package/State.js +38 -0
  297. package/State.js.map +1 -0
  298. package/State.ts +38 -0
  299. package/Surface.css +139 -0
  300. package/Surface.js +79 -0
  301. package/Surface.js.map +1 -0
  302. package/Surface.ts +55 -0
  303. package/Table.css +147 -0
  304. package/Table.js +289 -0
  305. package/Table.js.map +1 -0
  306. package/Table.ts +343 -0
  307. package/Tabs.css +100 -0
  308. package/Tabs.js +108 -0
  309. package/Tabs.js.map +1 -0
  310. package/Tabs.ts +111 -0
  311. package/Tile.css +164 -0
  312. package/Tile.js +211 -0
  313. package/Tile.js.map +1 -0
  314. package/Tile.ts +174 -0
  315. package/Time.css +5 -0
  316. package/Time.js +80 -0
  317. package/Time.js.map +1 -0
  318. package/Time.ts +105 -0
  319. package/Timeline.css +35 -0
  320. package/Timeline.js +55 -0
  321. package/Timeline.js.map +1 -0
  322. package/Timeline.ts +84 -0
  323. package/Tip.css +18 -0
  324. package/Tip.js +24 -0
  325. package/Tip.js.map +1 -0
  326. package/Tip.ts +29 -0
  327. package/Toast.css +25 -0
  328. package/Toast.js +32 -0
  329. package/Toast.js.map +1 -0
  330. package/Toast.ts +34 -0
  331. package/Toolbar.css +66 -0
  332. package/Toolbar.js +58 -0
  333. package/Toolbar.js.map +1 -0
  334. package/Toolbar.ts +68 -0
  335. package/Transcript.css +221 -0
  336. package/Transcript.js +254 -0
  337. package/Transcript.js.map +1 -0
  338. package/Transcript.ts +296 -0
  339. package/Turns.css +49 -0
  340. package/Turns.js +58 -0
  341. package/Turns.js.map +1 -0
  342. package/Turns.ts +67 -0
  343. package/Value.css +33 -0
  344. package/Value.js +60 -0
  345. package/Value.js.map +1 -0
  346. package/Value.ts +48 -0
  347. package/_dist/Address.d.ts +3 -0
  348. package/_dist/Address.d.ts.map +1 -0
  349. package/_dist/Annotated.d.ts +3 -0
  350. package/_dist/Annotated.d.ts.map +1 -0
  351. package/_dist/AppShell.d.ts +3 -0
  352. package/_dist/AppShell.d.ts.map +1 -0
  353. package/_dist/At.d.ts +14 -0
  354. package/_dist/At.d.ts.map +1 -0
  355. package/_dist/Attachments.d.ts +6 -0
  356. package/_dist/Attachments.d.ts.map +1 -0
  357. package/_dist/Badge.d.ts +19 -0
  358. package/_dist/Badge.d.ts.map +1 -0
  359. package/_dist/Body.d.ts +5 -0
  360. package/_dist/Body.d.ts.map +1 -0
  361. package/_dist/Button.d.ts +18 -0
  362. package/_dist/Button.d.ts.map +1 -0
  363. package/_dist/Card.d.ts +28 -0
  364. package/_dist/Card.d.ts.map +1 -0
  365. package/_dist/Cards.d.ts +15 -0
  366. package/_dist/Cards.d.ts.map +1 -0
  367. package/_dist/Catalog.d.ts +3 -0
  368. package/_dist/Catalog.d.ts.map +1 -0
  369. package/_dist/Chart.d.ts +5 -0
  370. package/_dist/Chart.d.ts.map +1 -0
  371. package/_dist/Check.d.ts +17 -0
  372. package/_dist/Check.d.ts.map +1 -0
  373. package/_dist/Chip.d.ts +22 -0
  374. package/_dist/Chip.d.ts.map +1 -0
  375. package/_dist/Chips.d.ts +15 -0
  376. package/_dist/Chips.d.ts.map +1 -0
  377. package/_dist/Choices.d.ts +3 -0
  378. package/_dist/Choices.d.ts.map +1 -0
  379. package/_dist/Combobox.d.ts +55 -0
  380. package/_dist/Combobox.d.ts.map +1 -0
  381. package/_dist/Composer.d.ts +15 -0
  382. package/_dist/Composer.d.ts.map +1 -0
  383. package/_dist/Contents.d.ts +20 -0
  384. package/_dist/Contents.d.ts.map +1 -0
  385. package/_dist/Copy.d.ts +24 -0
  386. package/_dist/Copy.d.ts.map +1 -0
  387. package/_dist/Doc.d.ts +3 -0
  388. package/_dist/Doc.d.ts.map +1 -0
  389. package/_dist/Dock.d.ts +29 -0
  390. package/_dist/Dock.d.ts.map +1 -0
  391. package/_dist/Dot.d.ts +16 -0
  392. package/_dist/Dot.d.ts.map +1 -0
  393. package/_dist/Drop.d.ts +27 -0
  394. package/_dist/Drop.d.ts.map +1 -0
  395. package/_dist/Edit.d.ts +3 -0
  396. package/_dist/Edit.d.ts.map +1 -0
  397. package/_dist/Empty.d.ts +16 -0
  398. package/_dist/Empty.d.ts.map +1 -0
  399. package/_dist/ErrorNotice.d.ts +16 -0
  400. package/_dist/ErrorNotice.d.ts.map +1 -0
  401. package/_dist/Field.d.ts +53 -0
  402. package/_dist/Field.d.ts.map +1 -0
  403. package/_dist/Form.d.ts +44 -0
  404. package/_dist/Form.d.ts.map +1 -0
  405. package/_dist/Gallery.d.ts +3 -0
  406. package/_dist/Gallery.d.ts.map +1 -0
  407. package/_dist/Group.d.ts +14 -0
  408. package/_dist/Group.d.ts.map +1 -0
  409. package/_dist/Head.d.ts +13 -0
  410. package/_dist/Head.d.ts.map +1 -0
  411. package/_dist/Icon.d.ts +23 -0
  412. package/_dist/Icon.d.ts.map +1 -0
  413. package/_dist/IconButton.d.ts +8 -0
  414. package/_dist/IconButton.d.ts.map +1 -0
  415. package/_dist/Id.d.ts +3 -0
  416. package/_dist/Id.d.ts.map +1 -0
  417. package/_dist/Identity.d.ts +15 -0
  418. package/_dist/Identity.d.ts.map +1 -0
  419. package/_dist/Index.d.ts +3 -0
  420. package/_dist/Index.d.ts.map +1 -0
  421. package/_dist/Layer.d.ts +8 -0
  422. package/_dist/Layer.d.ts.map +1 -0
  423. package/_dist/Lightbox.d.ts +27 -0
  424. package/_dist/Lightbox.d.ts.map +1 -0
  425. package/_dist/Loading.d.ts +24 -0
  426. package/_dist/Loading.d.ts.map +1 -0
  427. package/_dist/Logo.d.ts +26 -0
  428. package/_dist/Logo.d.ts.map +1 -0
  429. package/_dist/Match.d.ts +5 -0
  430. package/_dist/Match.d.ts.map +1 -0
  431. package/_dist/Menu.d.ts +23 -0
  432. package/_dist/Menu.d.ts.map +1 -0
  433. package/_dist/Meter.d.ts +10 -0
  434. package/_dist/Meter.d.ts.map +1 -0
  435. package/_dist/Metrics.d.ts +3 -0
  436. package/_dist/Metrics.d.ts.map +1 -0
  437. package/_dist/Modal.d.ts +32 -0
  438. package/_dist/Modal.d.ts.map +1 -0
  439. package/_dist/More.d.ts +29 -0
  440. package/_dist/More.d.ts.map +1 -0
  441. package/_dist/Notes.d.ts +3 -0
  442. package/_dist/Notes.d.ts.map +1 -0
  443. package/_dist/Notice.d.ts +15 -0
  444. package/_dist/Notice.d.ts.map +1 -0
  445. package/_dist/Overlay.d.ts +3 -0
  446. package/_dist/Overlay.d.ts.map +1 -0
  447. package/_dist/Pager.d.ts +3 -0
  448. package/_dist/Pager.d.ts.map +1 -0
  449. package/_dist/Pairs.d.ts +3 -0
  450. package/_dist/Pairs.d.ts.map +1 -0
  451. package/_dist/Palette.d.ts +3 -0
  452. package/_dist/Palette.d.ts.map +1 -0
  453. package/_dist/Panes.d.ts +3 -0
  454. package/_dist/Panes.d.ts.map +1 -0
  455. package/_dist/Passage.d.ts +3 -0
  456. package/_dist/Passage.d.ts.map +1 -0
  457. package/_dist/Peek.d.ts +3 -0
  458. package/_dist/Peek.d.ts.map +1 -0
  459. package/_dist/Pills.d.ts +3 -0
  460. package/_dist/Pills.d.ts.map +1 -0
  461. package/_dist/Plan.d.ts +4 -0
  462. package/_dist/Plan.d.ts.map +1 -0
  463. package/_dist/Popover.d.ts +3 -0
  464. package/_dist/Popover.d.ts.map +1 -0
  465. package/_dist/Preview.d.ts +8 -0
  466. package/_dist/Preview.d.ts.map +1 -0
  467. package/_dist/Prop.d.ts +7 -0
  468. package/_dist/Prop.d.ts.map +1 -0
  469. package/_dist/Quote.d.ts +3 -0
  470. package/_dist/Quote.d.ts.map +1 -0
  471. package/_dist/Report.d.ts +8 -0
  472. package/_dist/Report.d.ts.map +1 -0
  473. package/_dist/Rows.d.ts +36 -0
  474. package/_dist/Rows.d.ts.map +1 -0
  475. package/_dist/Save.d.ts +4 -0
  476. package/_dist/Save.d.ts.map +1 -0
  477. package/_dist/Section.d.ts +3 -0
  478. package/_dist/Section.d.ts.map +1 -0
  479. package/_dist/Select.d.ts +29 -0
  480. package/_dist/Select.d.ts.map +1 -0
  481. package/_dist/Shell.d.ts +3 -0
  482. package/_dist/Shell.d.ts.map +1 -0
  483. package/_dist/SideNav.d.ts +31 -0
  484. package/_dist/SideNav.d.ts.map +1 -0
  485. package/_dist/Skip.d.ts +3 -0
  486. package/_dist/Skip.d.ts.map +1 -0
  487. package/_dist/Spark.d.ts +9 -0
  488. package/_dist/Spark.d.ts.map +1 -0
  489. package/_dist/Stack.d.ts +11 -0
  490. package/_dist/Stack.d.ts.map +1 -0
  491. package/_dist/Stamp.d.ts +3 -0
  492. package/_dist/Stamp.d.ts.map +1 -0
  493. package/_dist/State.d.ts +16 -0
  494. package/_dist/State.d.ts.map +1 -0
  495. package/_dist/Surface.d.ts +7 -0
  496. package/_dist/Surface.d.ts.map +1 -0
  497. package/_dist/Table.d.ts +10 -0
  498. package/_dist/Table.d.ts.map +1 -0
  499. package/_dist/Tabs.d.ts +30 -0
  500. package/_dist/Tabs.d.ts.map +1 -0
  501. package/_dist/Tile.d.ts +3 -0
  502. package/_dist/Tile.d.ts.map +1 -0
  503. package/_dist/Time.d.ts +24 -0
  504. package/_dist/Time.d.ts.map +1 -0
  505. package/_dist/Timeline.d.ts +3 -0
  506. package/_dist/Timeline.d.ts.map +1 -0
  507. package/_dist/Tip.d.ts +3 -0
  508. package/_dist/Tip.d.ts.map +1 -0
  509. package/_dist/Toast.d.ts +5 -0
  510. package/_dist/Toast.d.ts.map +1 -0
  511. package/_dist/Toolbar.d.ts +3 -0
  512. package/_dist/Toolbar.d.ts.map +1 -0
  513. package/_dist/Transcript.d.ts +35 -0
  514. package/_dist/Transcript.d.ts.map +1 -0
  515. package/_dist/Turns.d.ts +3 -0
  516. package/_dist/Turns.d.ts.map +1 -0
  517. package/_dist/Value.d.ts +3 -0
  518. package/_dist/Value.d.ts.map +1 -0
  519. package/_dist/ahead.d.ts +41 -0
  520. package/_dist/ahead.d.ts.map +1 -0
  521. package/_dist/chart-marks.d.ts +75 -0
  522. package/_dist/chart-marks.d.ts.map +1 -0
  523. package/_dist/clock.d.ts +4 -0
  524. package/_dist/clock.d.ts.map +1 -0
  525. package/_dist/contents-browser.d.ts +29 -0
  526. package/_dist/contents-browser.d.ts.map +1 -0
  527. package/_dist/contributions.d.ts +5 -0
  528. package/_dist/contributions.d.ts.map +1 -0
  529. package/_dist/copy-browser.d.ts +4 -0
  530. package/_dist/copy-browser.d.ts.map +1 -0
  531. package/_dist/el.d.ts +58 -0
  532. package/_dist/el.d.ts.map +1 -0
  533. package/_dist/everforest.d.ts +8 -0
  534. package/_dist/everforest.d.ts.map +1 -0
  535. package/_dist/float.d.ts +55 -0
  536. package/_dist/float.d.ts.map +1 -0
  537. package/_dist/gouache.d.ts +9 -0
  538. package/_dist/gouache.d.ts.map +1 -0
  539. package/_dist/guide.d.ts +38 -0
  540. package/_dist/guide.d.ts.map +1 -0
  541. package/_dist/halved.d.ts +3 -0
  542. package/_dist/halved.d.ts.map +1 -0
  543. package/_dist/history.d.ts +15 -0
  544. package/_dist/history.d.ts.map +1 -0
  545. package/_dist/interaction.d.ts +15 -0
  546. package/_dist/interaction.d.ts.map +1 -0
  547. package/_dist/kit.d.ts +30 -0
  548. package/_dist/kit.d.ts.map +1 -0
  549. package/_dist/ledger.d.ts +3 -0
  550. package/_dist/ledger.d.ts.map +1 -0
  551. package/_dist/linen.d.ts +8 -0
  552. package/_dist/linen.d.ts.map +1 -0
  553. package/_dist/menus-browser.d.ts +2 -0
  554. package/_dist/menus-browser.d.ts.map +1 -0
  555. package/_dist/menus.d.ts +6 -0
  556. package/_dist/menus.d.ts.map +1 -0
  557. package/_dist/mod.d.ts +47 -0
  558. package/_dist/mod.d.ts.map +1 -0
  559. package/_dist/modal-browser.d.ts +2 -0
  560. package/_dist/modal-browser.d.ts.map +1 -0
  561. package/_dist/modal-head.d.ts +43 -0
  562. package/_dist/modal-head.d.ts.map +1 -0
  563. package/_dist/navigate.d.ts +170 -0
  564. package/_dist/navigate.d.ts.map +1 -0
  565. package/_dist/overlays.d.ts +16 -0
  566. package/_dist/overlays.d.ts.map +1 -0
  567. package/_dist/palette-browser.d.ts +3 -0
  568. package/_dist/palette-browser.d.ts.map +1 -0
  569. package/_dist/panes-browser.d.ts +4 -0
  570. package/_dist/panes-browser.d.ts.map +1 -0
  571. package/_dist/paper.d.ts +6 -0
  572. package/_dist/paper.d.ts.map +1 -0
  573. package/_dist/parts.d.ts +102 -0
  574. package/_dist/parts.d.ts.map +1 -0
  575. package/_dist/pencil.d.ts +6 -0
  576. package/_dist/pencil.d.ts.map +1 -0
  577. package/_dist/placement.d.ts +12 -0
  578. package/_dist/placement.d.ts.map +1 -0
  579. package/_dist/relative.d.ts +41 -0
  580. package/_dist/relative.d.ts.map +1 -0
  581. package/_dist/rosepine.d.ts +8 -0
  582. package/_dist/rosepine.d.ts.map +1 -0
  583. package/_dist/routes.d.ts +20 -0
  584. package/_dist/routes.d.ts.map +1 -0
  585. package/_dist/sheet.d.ts +44 -0
  586. package/_dist/sheet.d.ts.map +1 -0
  587. package/_dist/slide.d.ts +4 -0
  588. package/_dist/slide.d.ts.map +1 -0
  589. package/_dist/stock.d.ts +21 -0
  590. package/_dist/stock.d.ts.map +1 -0
  591. package/_dist/store.d.ts +2 -0
  592. package/_dist/store.d.ts.map +1 -0
  593. package/_dist/theme.d.ts +102 -0
  594. package/_dist/theme.d.ts.map +1 -0
  595. package/_dist/ui.d.ts +2 -0
  596. package/_dist/ui.d.ts.map +1 -0
  597. package/_dist/video-cover.d.ts +3 -0
  598. package/_dist/video-cover.d.ts.map +1 -0
  599. package/_dist/viewport.d.ts +14 -0
  600. package/_dist/viewport.d.ts.map +1 -0
  601. package/_dist/wear.d.ts +5 -0
  602. package/_dist/wear.d.ts.map +1 -0
  603. package/ahead.js +81 -0
  604. package/ahead.js.map +1 -0
  605. package/ahead.ts +102 -0
  606. package/base.css +220 -0
  607. package/base.js +129 -0
  608. package/base.js.map +1 -0
  609. package/base.ts +127 -0
  610. package/chart-marks.js +156 -0
  611. package/chart-marks.js.map +1 -0
  612. package/chart-marks.ts +221 -0
  613. package/clock.js +41 -0
  614. package/clock.js.map +1 -0
  615. package/clock.ts +39 -0
  616. package/contents-browser.js +122 -0
  617. package/contents-browser.js.map +1 -0
  618. package/contents-browser.ts +135 -0
  619. package/contributions.js +28 -0
  620. package/contributions.js.map +1 -0
  621. package/contributions.ts +21 -0
  622. package/copy-browser.js +39 -0
  623. package/copy-browser.js.map +1 -0
  624. package/copy-browser.ts +44 -0
  625. package/deno.json +1 -0
  626. package/derived.css +64 -0
  627. package/el.js +176 -0
  628. package/el.js.map +1 -0
  629. package/el.ts +240 -0
  630. package/everforest.css +65 -0
  631. package/everforest.js +54 -0
  632. package/everforest.js.map +1 -0
  633. package/everforest.ts +52 -0
  634. package/float.js +182 -0
  635. package/float.js.map +1 -0
  636. package/float.ts +222 -0
  637. package/gouache.css +62 -0
  638. package/gouache.js +54 -0
  639. package/gouache.js.map +1 -0
  640. package/gouache.ts +52 -0
  641. package/guide.js +124 -0
  642. package/guide.js.map +1 -0
  643. package/guide.ts +222 -0
  644. package/halved.js +88 -0
  645. package/halved.js.map +1 -0
  646. package/halved.ts +102 -0
  647. package/history.js +11 -0
  648. package/history.js.map +1 -0
  649. package/history.ts +22 -0
  650. package/interaction.js +23 -0
  651. package/interaction.js.map +1 -0
  652. package/interaction.ts +43 -0
  653. package/kit.js +345 -0
  654. package/kit.js.map +1 -0
  655. package/kit.ts +408 -0
  656. package/ledger/Button.css +22 -0
  657. package/ledger/Head.css +72 -0
  658. package/ledger/Tabs.css +19 -0
  659. package/ledger/Tile.css +12 -0
  660. package/ledger.js +52 -0
  661. package/ledger.js.map +1 -0
  662. package/ledger.ts +34 -0
  663. package/linen.css +71 -0
  664. package/linen.js +54 -0
  665. package/linen.js.map +1 -0
  666. package/linen.ts +52 -0
  667. package/lucide.d.ts +4 -0
  668. package/menus-browser.js +72 -0
  669. package/menus-browser.js.map +1 -0
  670. package/menus-browser.ts +75 -0
  671. package/menus.js +84 -0
  672. package/menus.js.map +1 -0
  673. package/menus.ts +90 -0
  674. package/mod.js +46 -0
  675. package/mod.js.map +1 -0
  676. package/mod.ts +78 -0
  677. package/modal-browser.js +29 -0
  678. package/modal-browser.js.map +1 -0
  679. package/modal-browser.ts +31 -0
  680. package/modal-head.js +75 -0
  681. package/modal-head.js.map +1 -0
  682. package/modal-head.ts +81 -0
  683. package/navigate.js +934 -0
  684. package/navigate.js.map +1 -0
  685. package/navigate.ts +1177 -0
  686. package/overlays.js +177 -0
  687. package/overlays.js.map +1 -0
  688. package/overlays.ts +257 -0
  689. package/package.json +280 -4
  690. package/palette-browser.js +52 -0
  691. package/palette-browser.js.map +1 -0
  692. package/palette-browser.ts +54 -0
  693. package/panes-browser.js +40 -0
  694. package/panes-browser.js.map +1 -0
  695. package/panes-browser.ts +59 -0
  696. package/paper/base.css +28 -0
  697. package/paper/grain.css +18 -0
  698. package/paper.js +14 -0
  699. package/paper.js.map +1 -0
  700. package/paper.ts +16 -0
  701. package/parts.js +102 -0
  702. package/parts.js.map +1 -0
  703. package/parts.ts +117 -0
  704. package/pencil/Address.css +5 -0
  705. package/pencil/At.css +14 -0
  706. package/pencil/Body.css +10 -0
  707. package/pencil/Button.css +81 -0
  708. package/pencil/Card.css +175 -0
  709. package/pencil/Chart.css +31 -0
  710. package/pencil/Check.css +66 -0
  711. package/pencil/Chip.css +100 -0
  712. package/pencil/Chips.css +6 -0
  713. package/pencil/Copy.css +33 -0
  714. package/pencil/Drop.css +145 -0
  715. package/pencil/Empty.css +48 -0
  716. package/pencil/Field.css +42 -0
  717. package/pencil/Form.css +88 -0
  718. package/pencil/Loading.css +14 -0
  719. package/pencil/Menu.css +26 -0
  720. package/pencil/More.css +41 -0
  721. package/pencil/Report.css +11 -0
  722. package/pencil/Rows.css +48 -0
  723. package/pencil/SideNav.css +173 -0
  724. package/pencil/State.css +28 -0
  725. package/pencil/Surface.css +69 -0
  726. package/pencil/Tabs.css +137 -0
  727. package/pencil/base.css +19 -0
  728. package/pencil/paper.webp +0 -0
  729. package/pencil/pencil.svg +181 -0
  730. package/pencil.js +81 -0
  731. package/pencil.js.map +1 -0
  732. package/pencil.ts +34 -0
  733. package/placement.js +62 -0
  734. package/placement.js.map +1 -0
  735. package/placement.ts +93 -0
  736. package/relative.js +150 -0
  737. package/relative.js.map +1 -0
  738. package/relative.ts +186 -0
  739. package/resizes.js +23 -0
  740. package/resizes.js.map +1 -0
  741. package/resizes.ts +37 -0
  742. package/rosepine.css +59 -0
  743. package/rosepine.js +54 -0
  744. package/rosepine.js.map +1 -0
  745. package/rosepine.ts +52 -0
  746. package/routes.js +136 -0
  747. package/routes.js.map +1 -0
  748. package/routes.ts +190 -0
  749. package/sheet.js +7 -0
  750. package/sheet.js.map +1 -0
  751. package/sheet.ts +72 -0
  752. package/slide.js +37 -0
  753. package/slide.js.map +1 -0
  754. package/slide.ts +41 -0
  755. package/stock.js +38 -0
  756. package/stock.js.map +1 -0
  757. package/stock.ts +54 -0
  758. package/store.js +6 -0
  759. package/store.js.map +1 -0
  760. package/store.ts +14 -0
  761. package/theme.js +21 -0
  762. package/theme.js.map +1 -0
  763. package/theme.ts +159 -0
  764. package/ui.js +2 -0
  765. package/ui.js.map +1 -0
  766. package/ui.ts +2 -0
  767. package/video-cover.js +55 -0
  768. package/video-cover.js.map +1 -0
  769. package/video-cover.ts +72 -0
  770. package/viewport.js +56 -0
  771. package/viewport.js.map +1 -0
  772. package/viewport.ts +61 -0
  773. package/wear-build.ts +12 -0
  774. package/wear.js +40 -0
  775. package/wear.js.map +1 -0
  776. package/wear.ts +65 -0
package/chart-marks.js ADDED
@@ -0,0 +1,156 @@
1
+ /**
2
+ * What a chart draws, through whichever `h` the page renders with: a
3
+ * sparkline, a few characters wide beside the number it explains, and day
4
+ * columns, as wide as the page. Both are SVG with no library. A series drawn
5
+ * in characters instead, for a line of text, is its `bars`. Each carries its
6
+ * series in `data-` attributes, so a page's one listener (yaks.app's
7
+ * public/chart.js) answers a pointer, a finger or an arrow key with the point
8
+ * there, and a chart costs nothing until somebody asks it.
9
+ *
10
+ * ```ts
11
+ * import { series, summed } from '@yaks/ui/chart'
12
+ * import { equal } from '@yaks/testing'
13
+ *
14
+ * let now = Date.parse('2026-10-03T12:00:00Z')
15
+ * equal(series({ '2026-10-03': 4, '2026-10-01': 2 }, 3, now), {
16
+ * from: '2026-10-01',
17
+ * values: [2, 0, 4],
18
+ * })
19
+ * equal(summed([{ a: 1 }, { a: 2, b: 3 }, undefined]), { a: 3, b: 3 })
20
+ * ```
21
+ *
22
+ * @module
23
+ */ let DAY = 86_400_000;
24
+ let ymd = (t)=>new Date(t).toISOString().slice(0, 10);
25
+ // A sum of dollars drifts in its last places, and a chart prints the digits.
26
+ let tidy = (n)=>Math.round(n * 1e6) / 1e6;
27
+ /** The last `days` days up to `now`, oldest first, a quiet day a zero. */ export let series = (byDay, days, now = Date.now())=>{
28
+ let values = [];
29
+ for(let i = days - 1; i >= 0; i--){
30
+ values.push(tidy(byDay?.[ymd(now - i * DAY)] ?? 0));
31
+ }
32
+ return {
33
+ from: ymd(now - (days - 1) * DAY),
34
+ values
35
+ };
36
+ };
37
+ let BARS = '▁▂▃▄▅▆▇█';
38
+ /**
39
+ * The characters a series draws: an eighth of a cell for each eighth of the
40
+ * top, at least one for anything at all.
41
+ *
42
+ * ```ts
43
+ * import { bars } from '@yaks/ui/chart'
44
+ * import { equal } from '@yaks/testing'
45
+ *
46
+ * equal(bars([0, 1, 2, 4]), '▁▂▄█')
47
+ * equal(bars([1, 2], 16), '▁▁')
48
+ * ```
49
+ */ export let bars = (values, max = Math.max(0, ...values))=>values.map((v)=>v > 0 && max > 0 ? BARS[Math.min(7, Math.max(0, Math.ceil(v / max * 8) - 1))] : BARS[0]).join('');
50
+ /** Several rows' days added up: a person's spend over the spaces they own. */ export let summed = (all)=>{
51
+ let out = {};
52
+ for (let byDay of all){
53
+ for (let [day, n] of Object.entries(byDay ?? {})){
54
+ out[day] = tidy((out[day] ?? 0) + n);
55
+ }
56
+ }
57
+ return out;
58
+ };
59
+ /** These days and `n` more of what they count on the day of `on` (today
60
+ * where absent), past `days` days forgotten, so what a row keeps stays small.
61
+ * An `n` for a day already forgotten is dropped with it.
62
+ *
63
+ * ```ts
64
+ * import { kept } from '@yaks/ui/chart'
65
+ * import { equal } from '@yaks/testing'
66
+ *
67
+ * let now = Date.parse('2026-10-31T12:00:00Z')
68
+ * equal(kept({ '2026-10-31': 1, '2026-09-01': 9 }, 2, now), { '2026-10-31': 3 })
69
+ * let yesterday = now - 86_400_000
70
+ * equal(kept({ '2026-10-30': 5 }, -4, now, 30, yesterday), { '2026-10-30': 1 })
71
+ * equal(kept({}, 4, now, 30, Date.parse('2026-09-01')), {})
72
+ * ```
73
+ */ export let kept = (byDay, n, now = Date.now(), days = 30, on = now)=>{
74
+ let oldest = ymd(now - (days - 1) * DAY);
75
+ let day = ymd(Math.min(on, now));
76
+ let out = Object.fromEntries(Object.entries(byDay ?? {}).filter(([day])=>day >= oldest));
77
+ if (day >= oldest) out[day] = tidy((out[day] ?? 0) + n);
78
+ return out;
79
+ };
80
+ let number = (s, n)=>s.money ? `$${n >= 0.01 || n <= 0 ? n.toFixed(2) : n.toPrecision(1)}` : n.toLocaleString('en-US');
81
+ /** The whole series in a sentence, for anyone who cannot see the marks. */ export let said = (s)=>{
82
+ let total = tidy(s.values.reduce((a, b)=>a + b, 0));
83
+ let noun = s.noun ? ` ${s.noun}${total == 1 ? '' : 's'}` : '';
84
+ return `${number(s, total)}${noun} over ${s.values.length} days, ${number(s, s.values.at(-1) ?? 0)} on the last day`;
85
+ };
86
+ let chart = (kind, s)=>({
87
+ class: `Chart Chart-${kind}`,
88
+ role: 'img',
89
+ tabindex: 0,
90
+ 'aria-label': said(s),
91
+ 'data-chart': kind,
92
+ 'data-from': s.from,
93
+ 'data-values': s.values.join(','),
94
+ ...s.noun ? {
95
+ 'data-noun': s.noun
96
+ } : {},
97
+ ...s.money ? {
98
+ 'data-money': ''
99
+ } : {}
100
+ });
101
+ let WIDTH = 64;
102
+ let HEIGHT = 16;
103
+ let ROOM = 2;
104
+ /** Where each value sits in the sparkline's box: a value of nothing on the
105
+ * floor, the largest at the top, with room for the line's own width. */ export let points = (values)=>{
106
+ let top = Math.max(...values, 1);
107
+ let across = WIDTH - 2 * ROOM;
108
+ let up = HEIGHT - 2 * ROOM;
109
+ return values.map((v, i)=>[
110
+ Math.round((ROOM + i / Math.max(1, values.length - 1) * across) * 10) / 10,
111
+ Math.round((HEIGHT - ROOM - v / top * up) * 10) / 10
112
+ ]);
113
+ };
114
+ /**
115
+ * A line, small enough to sit beside a number, ending in a dot on today. A
116
+ * series with nothing in it draws nothing: a list of mostly quiet rows reads
117
+ * as the few that are not.
118
+ */ export let sparkline = (h, s)=>{
119
+ if (!s.values.some((v)=>v > 0)) return null;
120
+ let at = points(s.values);
121
+ let [x, y] = at.at(-1);
122
+ return h('span', chart('line', s), h('svg', {
123
+ class: 'Chart_Plot',
124
+ viewBox: `0 0 ${WIDTH} ${HEIGHT}`,
125
+ width: WIDTH,
126
+ height: HEIGHT,
127
+ 'aria-hidden': 'true'
128
+ }, h('path', {
129
+ class: 'Chart_Line',
130
+ d: `M${at.map(([x, y])=>`${x} ${y}`).join('L')}`
131
+ }), h('circle', {
132
+ class: 'Chart_End',
133
+ cx: x,
134
+ cy: y,
135
+ r: 1.75
136
+ })));
137
+ };
138
+ /**
139
+ * A column a day, stretched to the width there is: the viewBox is one unit a
140
+ * day, and a rectangle stretched is still a rectangle.
141
+ */ export let columns = (h, s)=>{
142
+ let top = Math.max(...s.values, 1);
143
+ return h('div', chart('bars', s), h('svg', {
144
+ class: 'Chart_Plot',
145
+ viewBox: `0 0 ${s.values.length} 40`,
146
+ preserveAspectRatio: 'none',
147
+ 'aria-hidden': 'true'
148
+ }, s.values.map((v, i)=>h('rect', {
149
+ class: 'Chart_Bar',
150
+ x: (i + 0.15).toFixed(2),
151
+ y: (40 - v / top * 40).toFixed(2),
152
+ width: 0.7,
153
+ height: (v / top * 40).toFixed(2)
154
+ }))));
155
+ };
156
+ //# sourceMappingURL=chart-marks.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chart-marks.js","sources":["./chart-marks.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;CA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ChC,OAAO,EACL,OACA,MAAM,QAAQ,IACd,EACE,OACA;IACE,OAAO;IACP,SAAS,CAAC,IAAI,EAAE,EAAE,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC;IACpC,qBAAqB;IACrB,eAAe;EACjB,GACA,EAAE,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,IACf,EAAE,QAAQ;MACR,OAAO;MACP,GAAG,CAAC,IAAI,IAAI,EAAE,OAAO,CAAC;MACtB,GAAG,CAAC,KAAK,IAAI,MAAM,EAAE,EAAE,OAAO,CAAC;MAC/B,OAAO;MACP,QAAQ,CAAC,IAAI,MAAM,EAAE,EAAE,OAAO,CAAC;IACjC;AAIR,EAAC"}
package/chart-marks.ts ADDED
@@ -0,0 +1,221 @@
1
+ /**
2
+ * What a chart draws, through whichever `h` the page renders with: a
3
+ * sparkline, a few characters wide beside the number it explains, and day
4
+ * columns, as wide as the page. Both are SVG with no library. A series drawn
5
+ * in characters instead, for a line of text, is its `bars`. Each carries its
6
+ * series in `data-` attributes, so a page's one listener (yaks.app's
7
+ * public/chart.js) answers a pointer, a finger or an arrow key with the point
8
+ * there, and a chart costs nothing until somebody asks it.
9
+ *
10
+ * ```ts
11
+ * import { series, summed } from '@yaks/ui/chart'
12
+ * import { equal } from '@yaks/testing'
13
+ *
14
+ * let now = Date.parse('2026-10-03T12:00:00Z')
15
+ * equal(series({ '2026-10-03': 4, '2026-10-01': 2 }, 3, now), {
16
+ * from: '2026-10-01',
17
+ * values: [2, 0, 4],
18
+ * })
19
+ * equal(summed([{ a: 1 }, { a: 2, b: 3 }, undefined]), { a: 3, b: 3 })
20
+ * ```
21
+ *
22
+ * @module
23
+ */
24
+
25
+ import type { H } from 'jsr:@yaks/render@0.2.36'
26
+
27
+ /** Counts by day, `YYYY-MM-DD`; a day nothing happened is absent. */
28
+ export type ByDay = Record<string, number>
29
+
30
+ /** A dense run of days, and the day it starts on. */
31
+ export type Days = { from: string; values: number[] }
32
+
33
+ /** A chart's series and what its numbers count: a `noun` said one at a time
34
+ * ("request"), or `money` for dollars. */
35
+ export type Series = Days & { noun?: string; money?: boolean }
36
+
37
+ let DAY = 86_400_000
38
+ let ymd = (t: number) => new Date(t).toISOString().slice(0, 10)
39
+ // A sum of dollars drifts in its last places, and a chart prints the digits.
40
+ let tidy = (n: number) => Math.round(n * 1e6) / 1e6
41
+
42
+ /** The last `days` days up to `now`, oldest first, a quiet day a zero. */
43
+ export let series = (
44
+ byDay: ByDay | null | undefined,
45
+ days: number,
46
+ now: number = Date.now(),
47
+ ): Days => {
48
+ let values = []
49
+ for (let i = days - 1; i >= 0; i--) {
50
+ values.push(tidy(byDay?.[ymd(now - i * DAY)] ?? 0))
51
+ }
52
+ return { from: ymd(now - (days - 1) * DAY), values }
53
+ }
54
+
55
+ let BARS = '▁▂▃▄▅▆▇█'
56
+
57
+ /**
58
+ * The characters a series draws: an eighth of a cell for each eighth of the
59
+ * top, at least one for anything at all.
60
+ *
61
+ * ```ts
62
+ * import { bars } from '@yaks/ui/chart'
63
+ * import { equal } from '@yaks/testing'
64
+ *
65
+ * equal(bars([0, 1, 2, 4]), '▁▂▄█')
66
+ * equal(bars([1, 2], 16), '▁▁')
67
+ * ```
68
+ */
69
+ export let bars = (
70
+ values: number[],
71
+ max: number = Math.max(0, ...values),
72
+ ): string =>
73
+ values.map((v) =>
74
+ v > 0 && max > 0
75
+ ? BARS[Math.min(7, Math.max(0, Math.ceil(v / max * 8) - 1))]
76
+ : BARS[0]
77
+ ).join('')
78
+
79
+ /** Several rows' days added up: a person's spend over the spaces they own. */
80
+ export let summed = (all: (ByDay | null | undefined)[]): ByDay => {
81
+ let out: ByDay = {}
82
+ for (let byDay of all) {
83
+ for (let [day, n] of Object.entries(byDay ?? {})) {
84
+ out[day] = tidy((out[day] ?? 0) + n)
85
+ }
86
+ }
87
+ return out
88
+ }
89
+
90
+ /** These days and `n` more of what they count on the day of `on` (today
91
+ * where absent), past `days` days forgotten, so what a row keeps stays small.
92
+ * An `n` for a day already forgotten is dropped with it.
93
+ *
94
+ * ```ts
95
+ * import { kept } from '@yaks/ui/chart'
96
+ * import { equal } from '@yaks/testing'
97
+ *
98
+ * let now = Date.parse('2026-10-31T12:00:00Z')
99
+ * equal(kept({ '2026-10-31': 1, '2026-09-01': 9 }, 2, now), { '2026-10-31': 3 })
100
+ * let yesterday = now - 86_400_000
101
+ * equal(kept({ '2026-10-30': 5 }, -4, now, 30, yesterday), { '2026-10-30': 1 })
102
+ * equal(kept({}, 4, now, 30, Date.parse('2026-09-01')), {})
103
+ * ```
104
+ */
105
+ export let kept = (
106
+ byDay: ByDay | null | undefined,
107
+ n: number,
108
+ now: number = Date.now(),
109
+ days = 30,
110
+ on: number = now,
111
+ ): ByDay => {
112
+ let oldest = ymd(now - (days - 1) * DAY)
113
+ let day = ymd(Math.min(on, now))
114
+ let out = Object.fromEntries(
115
+ Object.entries(byDay ?? {}).filter(([day]) => day >= oldest),
116
+ )
117
+ if (day >= oldest) out[day] = tidy((out[day] ?? 0) + n)
118
+ return out
119
+ }
120
+
121
+ let number = (s: Series, n: number) =>
122
+ s.money
123
+ ? `$${n >= 0.01 || n <= 0 ? n.toFixed(2) : n.toPrecision(1)}`
124
+ : n.toLocaleString('en-US')
125
+
126
+ /** The whole series in a sentence, for anyone who cannot see the marks. */
127
+ export let said = (s: Series): string => {
128
+ let total = tidy(s.values.reduce((a, b) => a + b, 0))
129
+ let noun = s.noun ? ` ${s.noun}${total == 1 ? '' : 's'}` : ''
130
+ return `${number(s, total)}${noun} over ${s.values.length} days, ${
131
+ number(s, s.values.at(-1) ?? 0)
132
+ } on the last day`
133
+ }
134
+
135
+ let chart = (kind: 'line' | 'bars', s: Series) => ({
136
+ class: `Chart Chart-${kind}`,
137
+ role: 'img',
138
+ tabindex: 0,
139
+ 'aria-label': said(s),
140
+ 'data-chart': kind,
141
+ 'data-from': s.from,
142
+ 'data-values': s.values.join(','),
143
+ ...s.noun ? { 'data-noun': s.noun } : {},
144
+ ...s.money ? { 'data-money': '' } : {},
145
+ })
146
+
147
+ let WIDTH = 64
148
+ let HEIGHT = 16
149
+ let ROOM = 2
150
+
151
+ /** Where each value sits in the sparkline's box: a value of nothing on the
152
+ * floor, the largest at the top, with room for the line's own width. */
153
+ export let points = (values: number[]): [number, number][] => {
154
+ let top = Math.max(...values, 1)
155
+ let across = WIDTH - 2 * ROOM
156
+ let up = HEIGHT - 2 * ROOM
157
+ return values.map((v, i) => [
158
+ Math.round((ROOM + i / Math.max(1, values.length - 1) * across) * 10) / 10,
159
+ Math.round((HEIGHT - ROOM - v / top * up) * 10) / 10,
160
+ ])
161
+ }
162
+
163
+ /**
164
+ * A line, small enough to sit beside a number, ending in a dot on today. A
165
+ * series with nothing in it draws nothing: a list of mostly quiet rows reads
166
+ * as the few that are not.
167
+ */
168
+ export let sparkline = <Node>(h: H<Node>, s: Series): Node | null => {
169
+ if (!s.values.some((v) => v > 0)) return null
170
+ let at = points(s.values)
171
+ let [x, y] = at.at(-1)!
172
+ return h(
173
+ 'span',
174
+ chart('line', s),
175
+ h(
176
+ 'svg',
177
+ {
178
+ class: 'Chart_Plot',
179
+ viewBox: `0 0 ${WIDTH} ${HEIGHT}`,
180
+ width: WIDTH,
181
+ height: HEIGHT,
182
+ 'aria-hidden': 'true',
183
+ },
184
+ h('path', {
185
+ class: 'Chart_Line',
186
+ d: `M${at.map(([x, y]) => `${x} ${y}`).join('L')}`,
187
+ }),
188
+ h('circle', { class: 'Chart_End', cx: x, cy: y, r: 1.75 }),
189
+ ),
190
+ )
191
+ }
192
+
193
+ /**
194
+ * A column a day, stretched to the width there is: the viewBox is one unit a
195
+ * day, and a rectangle stretched is still a rectangle.
196
+ */
197
+ export let columns = <Node>(h: H<Node>, s: Series): Node => {
198
+ let top = Math.max(...s.values, 1)
199
+ return h(
200
+ 'div',
201
+ chart('bars', s),
202
+ h(
203
+ 'svg',
204
+ {
205
+ class: 'Chart_Plot',
206
+ viewBox: `0 0 ${s.values.length} 40`,
207
+ preserveAspectRatio: 'none',
208
+ 'aria-hidden': 'true',
209
+ },
210
+ s.values.map((v, i) =>
211
+ h('rect', {
212
+ class: 'Chart_Bar',
213
+ x: (i + 0.15).toFixed(2),
214
+ y: (40 - v / top * 40).toFixed(2),
215
+ width: 0.7,
216
+ height: (v / top * 40).toFixed(2),
217
+ })
218
+ ),
219
+ ),
220
+ )
221
+ }
package/clock.js ADDED
@@ -0,0 +1,41 @@
1
+ /** The clocks shared by mounted date faces, one for each pace they read it at,
2
+ * each stopped with the last face reading it.
3
+ * @module
4
+ */ import { useStore } from "./store.js";
5
+ /* @ts-types="npm:@types/react@19.3.0" */ import { useCallback } from "react";
6
+ import { system } from "@yaks/fp";
7
+ let clocks = new WeakMap();
8
+ let ticker = (clock, every)=>{
9
+ let paces = clocks.get(clock);
10
+ if (!paces) clocks.set(clock, paces = new Map());
11
+ let t = paces.get(every);
12
+ if (!t) paces.set(every, t = {
13
+ at: clock.now(),
14
+ readers: new Set()
15
+ });
16
+ else if (!t.readers.size) t.at = clock.now();
17
+ return t;
18
+ };
19
+ let start = (clock, every, t)=>{
20
+ t.at = clock.now();
21
+ for (let wake of [
22
+ ...t.readers
23
+ ])wake();
24
+ t.cancel = clock.after(every, ()=>start(clock, every, t));
25
+ };
26
+ /** A host clock read `every` so many milliseconds (a minute unless said),
27
+ * subscribed only while the date is mounted. */ export let useNow = (clock = system, every = 60_000)=>{
28
+ let t = ticker(clock, every);
29
+ let subscribe = useCallback((wake)=>{
30
+ t.readers.add(wake);
31
+ if (t.readers.size == 1) start(clock, every, t);
32
+ return ()=>{
33
+ t.readers.delete(wake);
34
+ if (!t.readers.size) t.cancel?.();
35
+ };
36
+ }, [
37
+ t
38
+ ]);
39
+ return useStore(subscribe, ()=>t.at);
40
+ };
41
+ //# sourceMappingURL=clock.js.map
package/clock.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clock.js","sources":["./clock.ts"],"names":[],"mappings":"AAAA;;;CAGC,GACD,SAAS,QAAQ,qBAAoB;AACrC,uCAAuC,GAAG,SAAS,WAAW,gBAA0B;AACxF,SAAqB,MAAM,wBAA6B;AAGxD,IAAI,SAAS,IAAI;AACjB,IAAI,SAAS,CAAC,OAAc;EAC1B,IAAI,QAAQ,OAAO,GAAG,CAAC;EACvB,IAAI,CAAC,OAAO,OAAO,GAAG,CAAC,OAAO,QAAQ,IAAI;EAC1C,IAAI,IAAI,MAAM,GAAG,CAAC;EAClB,IAAI,CAAC,GAAG,MAAM,GAAG,CAAC,OAAO,IAAI;IAAE,IAAI,MAAM,GAAG;IAAI,SAAS,IAAI;EAAM;OAE9D,IAAI,CAAC,EAAE,OAAO,CAAC,IAAI,EAAE,EAAE,EAAE,GAAG,MAAM,GAAG;EAC1C,OAAO;AACT;AACA,IAAI,QAAQ,CAAC,OAAc,OAAe;EACxC,EAAE,EAAE,GAAG,MAAM,GAAG;EAChB,KAAK,IAAI,QAAQ;OAAI,EAAE,OAAO;GAAC,CAAE;EACjC,EAAE,MAAM,GAAG,MAAM,KAAK,CAAC,OAAO,IAAM,MAAM,OAAO,OAAO;AAC1D;AAEA;8CAC8C,GAC9C,OAAO,IAAI,SAAS,CAAC,QAAe,MAAM,EAAE,QAAQ,MAAM;EACxD,IAAI,IAAI,OAAO,OAAO;EACtB,IAAI,YAAY,YAAY,CAAC;IAC3B,EAAE,OAAO,CAAC,GAAG,CAAC;IACd,IAAI,EAAE,OAAO,CAAC,IAAI,IAAI,GAAG,MAAM,OAAO,OAAO;IAC7C,OAAO;MACL,EAAE,OAAO,CAAC,MAAM,CAAC;MACjB,IAAI,CAAC,EAAE,OAAO,CAAC,IAAI,EAAE,EAAE,MAAM;IAC/B;EACF,GAAG;IAAC;GAAE;EACN,OAAO,SAAS,WAAW,IAAM,EAAE,EAAE;AACvC,EAAC"}
package/clock.ts ADDED
@@ -0,0 +1,39 @@
1
+ /** The clocks shared by mounted date faces, one for each pace they read it at,
2
+ * each stopped with the last face reading it.
3
+ * @module
4
+ */
5
+ import { useStore } from './store.js'
6
+ /* @ts-types="npm:@types/react@19.3.0" */ import { useCallback } from 'react'
7
+ import { type Clock, system } from '@yaks/fp'
8
+
9
+ type Ticker = { at: number; readers: Set<() => void>; cancel?: () => void }
10
+ let clocks = new WeakMap<Clock, Map<number, Ticker>>()
11
+ let ticker = (clock: Clock, every: number) => {
12
+ let paces = clocks.get(clock)
13
+ if (!paces) clocks.set(clock, paces = new Map())
14
+ let t = paces.get(every)
15
+ if (!t) paces.set(every, t = { at: clock.now(), readers: new Set() })
16
+ // Nobody reads a stopped clock: what a face reads first is the time now.
17
+ else if (!t.readers.size) t.at = clock.now()
18
+ return t
19
+ }
20
+ let start = (clock: Clock, every: number, t: Ticker): void => {
21
+ t.at = clock.now()
22
+ for (let wake of [...t.readers]) wake()
23
+ t.cancel = clock.after(every, () => start(clock, every, t))
24
+ }
25
+
26
+ /** A host clock read `every` so many milliseconds (a minute unless said),
27
+ * subscribed only while the date is mounted. */
28
+ export let useNow = (clock: Clock = system, every = 60_000): number => {
29
+ let t = ticker(clock, every)
30
+ let subscribe = useCallback((wake: () => void) => {
31
+ t.readers.add(wake)
32
+ if (t.readers.size == 1) start(clock, every, t)
33
+ return () => {
34
+ t.readers.delete(wake)
35
+ if (!t.readers.size) t.cancel?.()
36
+ }
37
+ }, [t])
38
+ return useStore(subscribe, () => t.at)
39
+ }
@@ -0,0 +1,122 @@
1
+ /**
2
+ * What a contents list (@yaks/ui `Contents`) does in a browser. `fill` makes
3
+ * an empty one's entries from the headings its `data-contents` selector names,
4
+ * giving each an anchor from its words where it has none. `watch` lights the
5
+ * entry of the section in view as the page scrolls, with an
6
+ * IntersectionObserver and no scroll handler, and closes a phone's menu once
7
+ * an entry in it is pressed. Loading the module does both for every contents
8
+ * list on the page, and follows a `#section` address to an anchor made here.
9
+ *
10
+ * `current` is the choice itself, kept pure: given which headings are at or
11
+ * above the top of the view, the one whose section is in view.
12
+ *
13
+ * @module
14
+ */ import { leaving, PAGE } from "./navigate.js";
15
+ /** Fewer sections than this need no contents: the page shows them all. */ export let FEW = 3;
16
+ /** The section in view: the last of the headings, in the page's order, that
17
+ * has reached the band at the top of the view, else the first. */ export let current = (passed)=>Math.max(passed.lastIndexOf(true), 0);
18
+ /** An anchor from a heading's words: lower case, a hyphen between words. */ export let anchor = (words)=>words.toLowerCase().normalize('NFKD').replace(/[̀-ͯ]/g, '').replace(/[^a-z0-9]+/g, '-').replace(/^-|-$/g, '') || 'section';
19
+ // Whether a heading is on the page to be read: not in a closed fold, a
20
+ // dialog, or anything else not drawn.
21
+ let shown = (el)=>!el.closest('dialog, details:not([open]), [hidden]');
22
+ /** The headings a selector names under `root`, each with an anchor: its own,
23
+ * or one made from its words, unique on the page. */ export let headings = (root, from)=>{
24
+ let doc = root.ownerDocument ?? root;
25
+ return [
26
+ ...root.querySelectorAll(from)
27
+ ].filter(shown).map((el)=>{
28
+ let label = el.textContent?.trim().replace(/\s+/g, ' ') ?? '';
29
+ if (!el.id) {
30
+ let id = anchor(label), n = 1;
31
+ while(doc.getElementById(n == 1 ? id : `${id}-${n}`))n++;
32
+ el.id = n == 1 ? id : `${id}-${n}`;
33
+ }
34
+ return {
35
+ id: el.id,
36
+ label,
37
+ sub: el.tagName == 'H3'
38
+ };
39
+ });
40
+ };
41
+ // One list's entries, written into the frame `contents` drew.
42
+ let draw = (list, entries)=>{
43
+ let doc = list.ownerDocument;
44
+ list.replaceChildren(...entries.map((e)=>{
45
+ let item = doc.createElement('li');
46
+ item.className = e.sub ? 'Contents_Item Contents_Item-sub' : 'Contents_Item';
47
+ let link = doc.createElement('a');
48
+ link.className = 'Contents_Link';
49
+ link.href = `#${e.id}`;
50
+ link.textContent = e.label;
51
+ item.append(link);
52
+ return item;
53
+ }));
54
+ };
55
+ /** Fill a contents list drawn empty from the headings its `data-contents`
56
+ * names, under `root`; one with too few sections stays hidden. */ export let fill = (nav, root)=>{
57
+ let from = nav.dataset.contents;
58
+ if (!from) return;
59
+ let entries = headings(root, from);
60
+ for (let list of nav.querySelectorAll('.Contents_List'))draw(list, entries);
61
+ nav.hidden = entries.length < FEW;
62
+ };
63
+ // Light the entry for `id`, in both lists.
64
+ let light = (nav, id)=>{
65
+ for (let link of nav.querySelectorAll('.Contents_Link')){
66
+ let on = link.hash == `#${id}`;
67
+ link.classList.toggle('Contents_Link-on', on);
68
+ if (on) link.setAttribute('aria-current', 'location');
69
+ else link.removeAttribute('aria-current');
70
+ }
71
+ };
72
+ /** Light the entry of the section in view as the page scrolls. The band is
73
+ * the top quarter of the view: a heading that has reached it has begun the
74
+ * section being read. */ export let watch = (nav, signal)=>{
75
+ let doc = nav.ownerDocument;
76
+ let links = [
77
+ ...nav.querySelectorAll('.Contents_List')
78
+ ].at(0)?.querySelectorAll('.Contents_Link') ?? [];
79
+ let targets = [
80
+ ...links
81
+ ].map((a)=>doc.getElementById(decodeURIComponent(a.hash.slice(1)))).filter((el)=>!!el);
82
+ if (!targets.length) return;
83
+ let passed = targets.map(()=>false);
84
+ let seen = new IntersectionObserver((entries)=>{
85
+ for (let e of entries){
86
+ let at = targets.indexOf(e.target);
87
+ passed[at] = e.isIntersecting || e.boundingClientRect.top < (e.rootBounds?.top ?? 0);
88
+ }
89
+ light(nav, targets[current(passed)].id);
90
+ }, {
91
+ rootMargin: '0px 0px -75% 0px'
92
+ });
93
+ for (let el of targets)seen.observe(el);
94
+ signal?.addEventListener('abort', ()=>seen.disconnect());
95
+ let menu = nav.querySelector('details');
96
+ menu?.addEventListener('click', (e)=>{
97
+ if (e.target.closest('a')) menu.open = false;
98
+ }, {
99
+ signal
100
+ });
101
+ };
102
+ /** Every contents list on the page, filled and watched until `signal`
103
+ * aborts; and an address's `#section` followed, where its anchor was only
104
+ * made now. */ export let start = (doc, signal)=>{
105
+ let navs = [
106
+ ...doc.querySelectorAll('.Contents')
107
+ ];
108
+ for (let nav of navs){
109
+ fill(nav, nav.closest('[data-contents-root]') ?? doc);
110
+ if (!nav.hidden) watch(nav, signal);
111
+ }
112
+ let to = decodeURIComponent(location.hash.slice(1));
113
+ if (to) doc.getElementById(to)?.scrollIntoView();
114
+ };
115
+ // Each page's lists, those a page brought in place (@yaks/ui/navigate)
116
+ // included, watched until it leaves.
117
+ let page = (doc)=>start(doc, leaving(doc));
118
+ if (typeof document != 'undefined' && typeof location != 'undefined') {
119
+ page(document);
120
+ document.addEventListener(PAGE, ()=>page(document));
121
+ }
122
+ //# sourceMappingURL=contents-browser.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contents-browser.js","sources":["./contents-browser.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;CAaC,GAGD,SAAS,OAAO,EAAE,IAAI,wBAAuB;AAE7C,wEAAwE,GACxE,OAAO,IAAI,MAAM,EAAC;AAElB;gEACgE,GAChE,OAAO,IAAI,UAAU,CAAC,SACpB,KAAK,GAAG,CAAC,OAAO,WAAW,CAAC,OAAO,GAAE;AAEvC,0EAA0E,GAC1E,OAAO,IAAI,SAAS,CAAC,QACnB,MAAM,WAAW,GAAG,SAAS,CAAC,QAAQ,OAAO,CAAC,UAAU,IACrD,OAAO,CAAC,eAAe,KAAK,OAAO,CAAC,UAAU,OAAO,UAAS;AAEnE,uEAAuE;AACvE,sCAAsC;AACtC,IAAI,QAAQ,CAAC,KACX,CAAC,GAAG,OAAO,CAAC;AAEd;mDACmD,GACnD,OAAO,IAAI,WAAW,CAAC,MAAkB;EACvC,IAAI,MAAM,AAAC,KAAc,aAAa,IAAK;EAC3C,OAAO;OAAI,KAAK,gBAAgB,CAAC;GAAM,CAAC,MAAM,CAAC,OAAO,GAAG,CAAC,CAAC;IACzD,IAAI,QAAQ,GAAG,WAAW,EAAE,OAAO,QAAQ,QAAQ,QAAQ;IAC3D,IAAI,CAAC,GAAG,EAAE,EAAE;MACV,IAAI,KAAK,OAAO,QAAQ,IAAI;MAC5B,MAAO,IAAI,cAAc,CAAC,KAAK,IAAI,KAAK,GAAG,GAAG,CAAC,EAAE,GAAG,EAAG;MACvD,GAAG,EAAE,GAAG,KAAK,IAAI,KAAK,GAAG,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