@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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Section.d.ts","sources":["../Section.ts"],"names":[],"mappings":"AAeA,SAAgB,KAAK,IAAI,kBAAiB;AAG1C,eAAe,GACf,OAAO,YAAI,SACP,OACA,OAAO,UAAU,UAAU,SAAS,OAAO,MAS5C"}
@@ -0,0 +1,29 @@
1
+ /**
2
+ * A select: one choice among several, shown in a box as tall as every
3
+ * control beside it (--control-height), its words at the start and its caret (a
4
+ * chevron up and down) at the end. It is pressed like a button, and opens a
5
+ * list of its choices, the kit's `Menu`.
6
+ *
7
+ * `<Select name value onChange>` holds a native `<select>` (`Select_Native`)
8
+ * given every prop but the box's own (`mod`, `className`, `style`), and its
9
+ * `option`s: a form sends it, a script reads its value and hears its
10
+ * `change`, a screen reader names it, and a phone opens its own sheet on a
11
+ * tap. Where the pointer is fine, @yaks/ux/select opens the kit's list in its
12
+ * place (`Select.List`, `Select.Option`).
13
+ *
14
+ * A Select whose choices go somewhere (the space switcher) is a `Menu.Fold`
15
+ * holding a `Select.Button` and a `Select.List` of `Select.Option` links.
16
+ * `Select-bare` is the box with no edge or fill, for a choice inside a part
17
+ * already drawn.
18
+ *
19
+ * @module
20
+ */ import type { Sheet } from "./sheet.js";
21
+ import { type Part } from "./el.js";
22
+ import type { Colors, Specimen } from "./theme.js";
23
+ /** One choice among several. */ export declare let Select: Part & Record<'Button' | 'List' | 'Option' | 'Value' | 'Native', Part>;
24
+ /** What it is, in a line. */ export declare let description: string;
25
+ /** A terminal paints a native select's chosen option and its own ▾; the
26
+ * caret is a glyph it has no lines for. */ export declare let sheet: (c: Colors) => Sheet;
27
+ /** Closed and open, beside every other control at each size, as the space
28
+ * switcher, bare, and light and dark. */ export declare let specimens: () => Specimen[];
29
+ //# sourceMappingURL=Select.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Select.d.ts","sources":["../Select.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;CAmBC,GAED,cAAc,KAAK,qBAAoB;AAavC,SAAoB,KAAK,IAAI,kBAA6B;AAC1D,cAAc,MAAM,EAAE,QAAQ,qBAAoB;AAiBlD,8BAA8B,GAC9B,OAAO,YAAI,QACP,OACA,OAAO,WAAW,SAAS,WAAW,UAAU,UAAU,MAkCzD;AAEL,2BAA2B,GAC3B,OAAO,YAAI,oBACqE;AAEhF;yCACyC,GACzC,OAAO,YAAI,QAAS,GAAG,WAAS,MAI9B;AA6EF;uCACuC,GACvC,OAAO,YAAI,iBAAgB,WAyD1B"}
@@ -0,0 +1,3 @@
1
+ import { type Part } from "./el.js";
2
+ /** The frame. */ export declare let Shell: Part & Record<'Side' | 'Brand' | 'Find' | 'Item' | 'Icon' | 'Glyph' | 'Label' | 'Count' | 'Shade' | 'Main' | 'Bar' | 'Menu' | 'Title' | 'Tools' | 'Body' | 'Content' | 'Grip' | 'Aside', Part>;
3
+ //# sourceMappingURL=Shell.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Shell.d.ts","sources":["../Shell.ts"],"names":[],"mappings":"AAiCA,SAAgB,KAAK,IAAI,kBAAiB;AAK1C,eAAe,GACf,OAAO,YAAI,OACP,OACA,OACE,SACA,UACA,SACA,SACA,SACA,UACA,UACA,UACA,UACA,SACA,QACA,SACA,UACA,UACA,SACA,YACA,SACA,SACF,MAoBA"}
@@ -0,0 +1,31 @@
1
+ /**
2
+ * A column of links to one place's pages, beside the page they open: a
3
+ * `SideNav.Link` each, the page you are on wearing `Link-on` (and, the
4
+ * caller's, `aria-current="page"`), and a `SideNav.Rule` between groups of
5
+ * them. A link's words are its `SideNav.Label`, beside its `SideNav.Mark`: the
6
+ * slot its icon sits centered in, one width whatever the icon (a line glyph,
7
+ * an app's picture), so every link's words start at one place. `SideNav-rail`
8
+ * is the column collapsed to its icons: each label is still the link's
9
+ * accessible text, only not shown, and the caller gives each link its label
10
+ * as a `title` too, its tooltip. Where there is no room beside the page (a
11
+ * phone) the column is a row that wraps, its words shown, rail or not;
12
+ * `SideNav-column` stays a column at every width. The same links make a
13
+ * list of people or things pressed to open them (yaks.app's friends, a
14
+ * space's members): a person's `Identity.Avatar` `small` in the mark, and
15
+ * under the words a `SideNav.Note`, a quieter line cut to fit.
16
+ * `SideNav.Edge` holds a whole sidebar when its edge must run past the
17
+ * links; its navs share that edge. `SideNav-alone` leans against no panel,
18
+ * such as links in a card: no edge, and its current link a closed box.
19
+ *
20
+ * @module
21
+ */ import type { Sheet } from "./sheet.js";
22
+ import { type Part } from "./el.js";
23
+ import type { Colors, Specimen } from "./theme.js";
24
+ /** A side navigation. */ export declare let SideNav: Part & Record<'Link' | 'Mark' | 'Label' | 'Note' | 'Rule' | 'Edge', Part>;
25
+ /** Mark the current link across the navigation groups in `side`. */ export declare let selectSideLink: (side: ParentNode, href: string) => void;
26
+ /** What it is, in a line. */ export declare let description: string;
27
+ /** A link is a line of its own; the one you are on stands out. */ export declare let sheet: (c: Colors) => Sheet;
28
+ /** Two groups, the page you are on in the first, one link under the
29
+ * pointer; links whose marks differ, an app's picture and line glyphs, their
30
+ * words in one column; and a rail, the column collapsed to its icons. */ export declare let specimens: () => Specimen[];
31
+ //# sourceMappingURL=SideNav.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SideNav.d.ts","sources":["../SideNav.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;CAoBC,GAED,cAAc,KAAK,qBAAoB;AAQvC,SAAgB,KAAK,IAAI,kBAAiB;AAG1C,cAAc,MAAM,EAAE,QAAQ,qBAAoB;AAElD,uBAAuB,GACvB,OAAO,YAAI,SACP,OACA,OAAO,SAAS,SAAS,UAAU,SAAS,SAAS,QAAQ,MAW9D;AAEH,kEAAkE,GAClE,OAAO,YAAI,iBAAkB,MAAM,YAAY,MAAM,MAAM,KAAG,IAAI,CASjE;AAED,2BAA2B,GAC3B,OAAO,YAAI,oBACsD;AAEjE,gEAAgE,GAChE,OAAO,YAAI,QAAS,GAAG,WAAS,MAM9B;AAiBF;;uEAEuE,GACvE,OAAO,YAAI,iBAAgB,WA8F1B"}
@@ -0,0 +1,3 @@
1
+ import { type Part } from "./el.js";
2
+ /** A link revealed by keyboard focus to skip repeated navigation. */ export declare let Skip: Part;
3
+ //# sourceMappingURL=Skip.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Skip.d.ts","sources":["../Skip.ts"],"names":[],"mappings":"AAGA,SAAgB,KAAK,IAAI,kBAAiB;AAG1C,mEAAmE,GACnE,OAAO,YAAI,MAAM,KAA6B"}
@@ -0,0 +1,9 @@
1
+ import { type FunctionComponent } from "@types/react";
2
+ import { type Props } from "./el.js";
3
+ /** What a spark is drawn with: its values, the top they are read against,
4
+ * and anything a part takes. */ export type SparkProps = Props & {
5
+ values?: number[];
6
+ max?: number;
7
+ };
8
+ /** A series, a character a value. */ export declare let Spark: FunctionComponent<SparkProps>;
9
+ //# sourceMappingURL=Spark.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Spark.d.ts","sources":["../Spark.ts"],"names":[],"mappings":"AAW0C,SAA6B,KAAK,iBAAiB,uBAA0B;AAEvH,SAA2B,KAAK,KAAK,kBAAiB;AAQtD;8BAC8B,GAC9B,YAAY,aAAa;EAAU,SAAS,MAAM;EAAI,MAAM,MAAM;;AAElE,mCAAmC,GACnC,OAAO,YAAI,OAAO,kBAAkB,YAqBnC"}
@@ -0,0 +1,11 @@
1
+ /** A column of siblings spaced with the theme's gap.
2
+ *
3
+ * @module
4
+ */ import type { Sheet } from "./sheet.js";
5
+ import { type Part } from "./el.js";
6
+ import type { Specimen } from "./theme.js";
7
+ /** A vertical layout for page sections. */ export declare let Stack: Part;
8
+ /** What it is, in a line. */ export declare let description: string;
9
+ /** A blank line between sections. */ export declare let sheet: () => Sheet;
10
+ /** Two cards sharing one parent gap. */ export declare let specimens: () => Specimen[];
11
+ //# sourceMappingURL=Stack.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Stack.d.ts","sources":["../Stack.ts"],"names":[],"mappings":"AAAA;;;CAGC,GACD,cAAc,KAAK,qBAAoB;AAGvC,SAAa,KAAK,IAAI,kBAAiB;AACvC,cAAc,QAAQ,qBAAoB;AAE1C,yCAAyC,GACzC,OAAO,YAAI,OAAO,KAAyB;AAE3C,2BAA2B,GAC3B,OAAO,YAAI,oBAA0D;AAErE,mCAAmC,GACnC,OAAO,YAAI,aAAY,MAAmC;AAE1D,sCAAsC,GACtC,OAAO,YAAI,iBAAgB,WAU1B"}
@@ -0,0 +1,3 @@
1
+ import { type Part } from "./el.js";
2
+ /** A moment. */ export declare let Stamp: Part;
3
+ //# sourceMappingURL=Stamp.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Stamp.d.ts","sources":["../Stamp.ts"],"names":[],"mappings":"AAWA,SAAa,KAAK,IAAI,kBAAiB;AAGvC,cAAc,GACd,OAAO,YAAI,OAAO,KAA0B"}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * How something stands, in a word beside a `Dot`: `<State mod='positive'>
3
+ * Connected</State>`. Its tone is a `Dot`'s (`positive` when it works,
4
+ * `negative` when it needs the person, and the rest), and the dot wears it
5
+ * too, so a terminal colours the pip as a browser does. What the word is,
6
+ * and which tone says it, is the caller's.
7
+ *
8
+ * @module
9
+ */ import type { Sheet } from "./sheet.js";
10
+ import { type Part } from "./el.js";
11
+ import type { Colors, Specimen } from "./theme.js";
12
+ /** A state in a word, its dot first. */ export declare let State: Part;
13
+ /** What it is, in a line. */ export declare let description: string;
14
+ /** The word describes, so it is muted; the dot carries the tone. */ export declare let sheet: (c: Colors) => Sheet;
15
+ /** One untoned, then every tone. */ export declare let specimens: () => Specimen[];
16
+ //# sourceMappingURL=State.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"State.d.ts","sources":["../State.ts"],"names":[],"mappings":"AAAA;;;;;;;;CAQC,GAED,cAAc,KAAK,qBAAoB;AAGvC,SAAa,KAAK,IAAI,kBAAiB;AACvC,cAAc,MAAM,EAAE,QAAQ,qBAAoB;AAIlD,sCAAsC,GACtC,OAAO,YAAI,OAAO,KACsC;AAExD,2BAA2B,GAC3B,OAAO,YAAI,oBAA6D;AAExE,kEAAkE,GAClE,OAAO,YAAI,QAAS,GAAG,WAAS,MAE9B;AAEF,kCAAkC,GAClC,OAAO,YAAI,iBAAgB,WAM1B"}
@@ -0,0 +1,7 @@
1
+ import { type Part } from "./el.js";
2
+ /** A flat surface, an elevated surface, a press and an input well, and the
3
+ * head and foot of one, each ruled off from what it holds. */ export declare let Surface: Part & Record<'Raised' | 'Press' | 'Well' | 'Head' | 'Foot', Part>;
4
+ /** `look`, one of these surfaces, in `tag` unless it is given another
5
+ * element: `tagged(Surface.Raised, 'aside')` is a part whose root is a
6
+ * raised surface and an aside. */ export declare let tagged: (look: Part, tag: string) => Part;
7
+ //# sourceMappingURL=Surface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Surface.d.ts","sources":["../Surface.ts"],"names":[],"mappings":"AAGA,SAAa,KAAK,IAAI,kBAAiB;AAIvC;4DAC4D,GAC5D,OAAO,YAAI,SACP,OACA,OAAO,WAAW,UAAU,SAAS,SAAS,QAAQ,MAOpD;AAEN;;gCAEgC,GAChC,OAAO,YAAI,SAAU,MAAM,MAAM,KAAK,MAAM,KAAG,KACT"}
@@ -0,0 +1,10 @@
1
+ import { type FunctionComponent } from "@types/react";
2
+ import { type Part, type Props } from "./el.js";
3
+ /** What a column holds: the variant its cells wear (`num`, `key`,
4
+ * `prose`), or nothing for text. */ export type Col = string | false | null | undefined;
5
+ /** What a table is drawn with: what each of its columns holds, and anything
6
+ * a part takes. */ export type TableProps = Props & {
7
+ cols?: Col[];
8
+ };
9
+ /** A table. */ export declare let Table: FunctionComponent<TableProps> & Record<'Scroll' | 'Head' | 'Body' | 'Row' | 'Heading' | 'Cell' | 'Toggle' | 'Sort' | 'Indent', Part>;
10
+ //# sourceMappingURL=Table.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Table.d.ts","sources":["../Table.ts"],"names":[],"mappings":"AAuC0C,SAA6B,KAAK,iBAAiB,uBAA0B;AACvH,SAAgB,KAAK,IAAI,EAAE,KAAK,KAAK,kBAAiB;AAItD;kCACkC,GAClC,YAAY,MAAM,MAAM,GAAG,KAAK,GAAG,IAAI,GAAG,SAAS;AAEnD;iBACiB,GACjB,YAAY,aAAa;EAAU,OAAO;;AA2B1C,aAAa,GACb,OAAO,YAAI,OACP,kBAAkB,cAClB,OACE,WACA,SACA,SACA,QACA,YACA,SACA,WACA,SACA,UACF,MA0BC"}
@@ -0,0 +1,30 @@
1
+ /**
2
+ * A row of tabs, one of them on:
3
+ * `<Tabs><Tabs.Tab mod='on'>…</Tabs.Tab></Tabs>`. A tab's face is the
4
+ * caller's (an icon, a word), and so is what pressing it does. `Tabs.Badge`,
5
+ * inside a tab, counts what waits behind it.
6
+ *
7
+ * `Tab-line` gives each control its own line in a terminal.
8
+ *
9
+ * Tabs can hold what they show: a `TabSet` is the same block on a fieldset,
10
+ * `TabSet.Legend` naming the choice and each `TabSet.Item` a radio, its `Tab`
11
+ * (the radio's label) and its `Panel`. The radios own which tab is on, arrow
12
+ * keys and all, so the set works without script; the checked one's panel
13
+ * shows under the row. A panel holding a card's worth is drawn as one:
14
+ * `<TabSet.Panel as={Card}>`.
15
+ *
16
+ * @module
17
+ */ import type { Sheet } from "./sheet.js";
18
+ import { type Part } from "./el.js";
19
+ import type { Colors, Specimen } from "./theme.js";
20
+ /** A row of tabs. */ export declare let Tabs: Part & Record<'Tab' | 'Badge', Part>;
21
+ /** Tabs holding their panels: the same block on a form's elements, the row
22
+ * a fieldset, each tab the label of its radio. */ export declare let TabSet: Part & Record<'Legend' | 'Item' | 'Input' | 'Tab' | 'Badge' | 'Panel', Part>;
23
+ /** What it is, in a line. */ export declare let description: string;
24
+ /** A tab is its face, a space between two where a browser pads them, and
25
+ * one between its face and its badge where a browser's gap is; the lit one
26
+ * is raised. A terminal has no checked radio to show one panel by, so a set
27
+ * reads as its radios, each with its panel under it. */ export declare let sheet: (c: Colors) => Sheet;
28
+ /** A row with one tab on, one under the pointer, and one with a badge; and
29
+ * a set whose first tab is checked. */ export declare let specimens: () => Specimen[];
30
+ //# sourceMappingURL=Tabs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Tabs.d.ts","sources":["../Tabs.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;CAgBC,GAED,cAAc,KAAK,qBAAoB;AAEvC,SAAgB,KAAK,IAAI,kBAAiB;AAC1C,cAAc,MAAM,EAAE,QAAQ,qBAAoB;AAElD,mBAAmB,GACnB,OAAO,YAAI,MAAM,OAAO,OAAO,QAAQ,SAAS,MAG9C;AAEF;gDACgD,GAChD,OAAO,YAAI,QACP,OACA,OAAO,WAAW,SAAS,UAAU,QAAQ,UAAU,SAAS,MAY/D;AAEL,2BAA2B,GAC3B,OAAO,YAAI,oBAA8C;AAEzD;;;sDAGsD,GACtD,OAAO,YAAI,QAAS,GAAG,WAAS,MAU9B;AAcF;qCACqC,GACrC,OAAO,YAAI,iBAAgB,WA8B1B"}
@@ -0,0 +1,3 @@
1
+ import { type Part } from "./el.js";
2
+ /** A tile. */ export declare let Tile: Part & Record<'Icon' | 'Id' | 'Kind' | 'Title' | 'Note' | 'Count' | 'Sub' | 'End', Part>;
3
+ //# sourceMappingURL=Tile.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Tile.d.ts","sources":["../Tile.ts"],"names":[],"mappings":"AA+BA,SAAoB,KAAK,IAAI,kBAA6B;AAiC1D,YAAY,GACZ,OAAO,YAAI,MACP,OACA,OACA,SAAS,OAAO,SAAS,UAAU,SAAS,UAAU,QAAQ,OAC9D,MAYD"}
@@ -0,0 +1,24 @@
1
+ /** A date's shared face: its age, its day, or how long since it, with the
2
+ * full timestamp in a kit tooltip.
3
+ * @module
4
+ */ import { type FunctionComponent } from "@types/react";
5
+ import type { Clock } from "@yaks/fp";
6
+ import type { H } from "@yaks/render";
7
+ import type { Sheet } from "./sheet.js";
8
+ import { type Props } from "./el.js";
9
+ import { type Face } from "./relative.js";
10
+ import type { Colors, Specimen } from "./theme.js";
11
+ export { useNow } from "./clock.js";
12
+ /** The moment and, for a controlled rendering, the clock it is read against.
13
+ * `written` says its day instead of its age, `lasting` how long it has
14
+ * been since, and `short` its age in a letter (`2d ago`). */ export type TimeProps = Props & Face & {
15
+ clock?: Clock;
16
+ at?: string | null;
17
+ };
18
+ /** The kit face through a portable renderer's hyperscript. */ export declare let time: <N>(h: H<N>, {}: TimeProps) => N | null;
19
+ /** A moment in words, focusable so its tooltip is available by keyboard. A
20
+ * duration is read every second, an age every minute. */ export declare let Time: FunctionComponent<TimeProps>;
21
+ /** What it is, in a line. */ export declare let description: string;
22
+ /** The surrounding line owns its size and colour. */ export declare let sheet: (_c: Colors) => Sheet;
23
+ /** An age, a written date, a duration and a short age. */ export declare let specimens: () => Specimen[];
24
+ //# sourceMappingURL=Time.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Time.d.ts","sources":["../Time.ts"],"names":[],"mappings":"AAAA;;;CAGC,GACyC,SAA6B,KAAK,iBAAiB,uBAA0B;AACvH,cAAc,KAAK,wBAA6B;AAEhD,cAAc,CAAC,4BAAiC;AAChD,cAAc,KAAK,qBAAoB;AACvC,SAAS,KAAK,KAAK,kBAAiB;AACpC,SAAS,KAAK,IAAI,wBAAkC;AACpD,cAAc,MAAM,EAAE,QAAQ,qBAAoB;AAClD,SAAS,MAAM,qBAAoB;AAEnC;;2DAE2D,GAC3D,YAAY,YAAY,QAAQ;EAC9B,QAAQ;EACR,KAAK,MAAM,GAAG,IAAI;;AAGpB,4DAA4D,GAC5D,OAAO,YAAI,OAAQ,GACjB,GAAG,EAAE,IACL,IAWG,SAAS,KACX,IAAI,IAAI,CAgBV;AAED;uDACuD,GACvD,OAAO,YAAI,MAAM,kBAAkB,WAGlC;AAED,2BAA2B,GAC3B,OAAO,YAAI,oBACgE;AAC3E,mDAAmD,GACnD,OAAO,YAAI,QAAS,IAAI,WAAS,MAAa;AAC9C,wDAAwD,GACxD,OAAO,YAAI,iBAAgB,WAoC1B"}
@@ -0,0 +1,3 @@
1
+ import { type Part } from "./el.js";
2
+ /** A timeline. */ export declare let Timeline: Part & Record<'Item' | 'When' | 'Who' | 'What', Part>;
3
+ //# sourceMappingURL=Timeline.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Timeline.d.ts","sources":["../Timeline.ts"],"names":[],"mappings":"AAUA,SAAgB,KAAK,IAAI,kBAAiB;AAM1C,gBAAgB,GAChB,OAAO,YAAI,UAAU,OAAO,OAAO,SAAS,SAAS,QAAQ,QAAQ,MAMjE"}
package/_dist/Tip.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ import { type Part } from "./el.js";
2
+ /** A tooltip, raised as everything floating over a page is. */ export declare let Tip: Part;
3
+ //# sourceMappingURL=Tip.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Tip.d.ts","sources":["../Tip.ts"],"names":[],"mappings":"AAUA,SAAa,KAAK,IAAI,kBAAiB;AAIvC,6DAA6D,GAC7D,OAAO,YAAI,KAAK,KAAgC"}
@@ -0,0 +1,5 @@
1
+ import { type Part } from "./el.js";
2
+ export declare let Toast: Part & {
3
+ Item: Part;
4
+ };
5
+ //# sourceMappingURL=Toast.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Toast.d.ts","sources":["../Toast.ts"],"names":[],"mappings":"AAGA,SAAgB,KAAK,IAAI,kBAA6B;AAMtD,OAAO,YAAI,OAAO;EAAS,MAAM;EAShC"}
@@ -0,0 +1,3 @@
1
+ import { type Part } from "./el.js";
2
+ /** A compact heading and its adjacent controls. */ export declare let Toolbar: Part & Record<'Text' | 'Title' | 'Sub' | 'Label', Part>;
3
+ //# sourceMappingURL=Toolbar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Toolbar.d.ts","sources":["../Toolbar.ts"],"names":[],"mappings":"AAKA,SAAgB,KAAK,IAAI,kBAAiB;AAK1C,iDAAiD,GACjD,OAAO,YAAI,SAAS,OAAO,OAAO,SAAS,UAAU,QAAQ,SAAS,MAMlE"}
@@ -0,0 +1,35 @@
1
+ /**
2
+ * Messages, their replies and the marks describing each entry. A message's
3
+ * bubble stands at the right; one said by the other person in a
4
+ * conversation between people (`Transcript_Entry-other`) at the left.
5
+ *
6
+ * @module
7
+ */ import type { Sheet } from "./sheet.js";
8
+ import { type FunctionComponent, type ReactNode } from "@types/react";
9
+ import { type Part } from "./el.js";
10
+ import { type IconProps } from "./Icon.js";
11
+ import type { Colors, Native, Specimen } from "./theme.js";
12
+ /** Messages, their replies and the marks describing each entry. */ export declare let Transcript: Part & Record<'Lines' | 'Row' | 'Content' | 'Bubble' | 'Via' | 'Entry' | 'Meta' | 'When' | 'Divider' | 'Step' | 'StepText' | 'Note' | 'Source' | 'Origin' | 'App' | 'AppIcon' | 'Reply' | 'Activity' | 'Jump' | 'Newest' | 'Status' | 'Error', Part>;
13
+ /** The app in which a message was sent. */ export type MessageApp = {
14
+ title: string;
15
+ href: string;
16
+ icon: string;
17
+ };
18
+ export declare let MessageOrigin: FunctionComponent<{
19
+ app: MessageApp;
20
+ mine?: boolean;
21
+ }>;
22
+ /** The one-line label of a step or an activity fold. */ export declare let StepLabel: FunctionComponent<{
23
+ children?: ReactNode;
24
+ group?: boolean;
25
+ }>;
26
+ /** The channel a message came through, named on hover and keyboard focus. */ export declare let ChannelBadge: FunctionComponent<{
27
+ of: IconProps['of'];
28
+ label: string;
29
+ }>;
30
+ /** What this part presents. */ export declare let description: string;
31
+ /** The same parts in a terminal. */ export declare let sheet: (c: Colors) => Sheet;
32
+ /** A complete example. */ export declare let specimens: () => Specimen[];
33
+ /** The same interface on a native host. */ export declare let native: (c: Colors) => Native;
34
+ /** The native parts a transcript composes, without loading a stylesheet. */ export declare let transcriptLook: (c: Colors) => Native;
35
+ //# sourceMappingURL=Transcript.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Transcript.d.ts","sources":["../Transcript.ts"],"names":[],"mappings":"AAKA;;;;;;CAMC,GACD,cAAc,KAAK,qBAAoB;AACG,SAExC,KAAK,iBAAiB,EACtB,KAAK,SAAS,uBACS;AACzB,SAAgB,KAAK,IAAI,kBAAiB;AAC1C,SAAwB,KAAK,SAAS,oBAAmB;AACzD,cAAc,MAAM,EAAE,MAAM,EAAE,QAAQ,qBAAoB;AAmB1D,iEAAiE,GACjE,OAAO,YAAI,YACP,OACA,OACE,UACA,QACA,YACA,WACA,QACA,UACA,SACA,SACA,YACA,SACA,aACA,SACA,WACA,WACA,QACA,YACA,UACA,aACA,SACA,WACA,WACA,SACF,MAwBA;AAEJ,yCAAyC,GACzC,YAAY;EAAe,OAAO,MAAM;EAAE,MAAM,MAAM;EAAE,MAAM,MAAM;;AAEpE,OAAO,YAAI,eAAe;EACtB,KAAK;EAAY,OAAO,OAAO;GAYhC;AAEH,sDAAsD,GACtD,OAAO,YAAI,WAAW;EACpB,WAAW;EACX,QAAQ,OAAO;GAOd;AACH,2EAA2E,GAC3E,OAAO,YAAI,cAAc;EACvB,IAAI,UAAU;EACd,OAAO,MAAM;GAMZ;AAEH,6BAA6B,GAC7B,OAAO,YAAI,oBACqD;AAChE,kCAAkC,GAClC,OAAO,YAAI,QAAS,GAAG,WAAS,MAY9B;AACF,wBAAwB,GACxB,OAAO,YAAI,iBAAgB,WA0G1B;AAED,yCAAyC,GACzC,OAAO,YAAI,SAAU,GAAG,WAAS,OA2B/B;AAEF,0EAA0E,GAC1E,OAAO,YAAI,iBAAkB,GAAG,WAAS,OAOvC"}
@@ -0,0 +1,3 @@
1
+ import { type Part } from "./el.js";
2
+ /** A stretch of a conversation. */ export declare let Turns: Part & Record<'Turn' | 'Who' | 'Text' | 'More', Part>;
3
+ //# sourceMappingURL=Turns.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Turns.d.ts","sources":["../Turns.ts"],"names":[],"mappings":"AAaA,SAAgB,KAAK,IAAI,kBAAiB;AAG1C,iCAAiC,GACjC,OAAO,YAAI,OAAO,OAAO,OAAO,SAAS,QAAQ,SAAS,QAAQ,MASjE"}
@@ -0,0 +1,3 @@
1
+ import { type Part } from "./el.js";
2
+ /** A value. */ export declare let Value: Part;
3
+ //# sourceMappingURL=Value.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Value.d.ts","sources":["../Value.ts"],"names":[],"mappings":"AAWA,SAAa,KAAK,IAAI,kBAAiB;AAGvC,aAAa,GACb,OAAO,YAAI,OAAO,KAA0B"}
@@ -0,0 +1,41 @@
1
+ /**
2
+ * Asking ahead for what a press will need, before the press. A link names
3
+ * an address to warm in `data-warm` (`WARM`); warming it is a HEAD, which
4
+ * wakes what serves it and fills the edge's copy of a page kept there,
5
+ * marked as a look ahead (`AHEAD`), so the server counts no visit for it.
6
+ * The navigator (navigate.ts) warms the links of the pages it holds; a page
7
+ * without the navigator warms its own with `warmAhead`.
8
+ *
9
+ * @module
10
+ */ /** The header a page fetched ahead carries: the person has not opened it
11
+ * yet, so the server reads it without doing what opening it does (marking
12
+ * what it shows read, counting a view). Browsers' own prefetches say so in
13
+ * `Sec-Purpose`, which a script cannot set. */ export declare let AHEAD: string;
14
+ /** Whether a request only looks ahead at a page (`AHEAD`, or a browser's
15
+ * own prefetch), rather than a person opening it. */ export declare let lookingAhead: (req: Request) => boolean;
16
+ /** A link's lightweight warm address, asked ahead of a press on it. */ export declare let WARM: string;
17
+ /** What warming needs of the window around it. */ export type Warming = {
18
+ fetch: typeof fetch;
19
+ location: {
20
+ href: string;
21
+ origin: string;
22
+ };
23
+ };
24
+ /** A function that warms one link's address (`WARM`), at most once in
25
+ * `fresh` milliseconds, remembering the last `most` addresses. One of the
26
+ * page's own origin says it looks ahead (`AHEAD`); another's can carry no
27
+ * such header, so it goes without. */ export declare let warmer: (win: Warming, now: () => number, fresh?: number, most?: number) => (link: Element) => void;
28
+ /** What `warmAhead` needs of the window: the page, its events and a way to
29
+ * hear a link come near the screen. */ export type Ahead = Warming & {
30
+ document: Pick<Document, 'querySelectorAll'>;
31
+ addEventListener: Window['addEventListener'];
32
+ IntersectionObserver?: typeof IntersectionObserver;
33
+ performance: {
34
+ now: () => number;
35
+ };
36
+ };
37
+ /** Warm the page's `WARM` links ahead of a press: each once it comes near
38
+ * the screen, and again when a pointer, a finger or the keyboard comes to
39
+ * it. For a page without the navigator whose links lead to pages the server
40
+ * is slow to draw the first time. */ export declare let warmAhead: (win: Ahead) => void;
41
+ //# sourceMappingURL=ahead.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ahead.d.ts","sources":["../ahead.ts"],"names":[],"mappings":"AAAA;;;;;;;;;CASC,GAED;;;6CAG6C,GAC7C,OAAO,YAAI,cAAiB;AAE5B;mDACmD,GAGnD,OAAO,YAAI,eAAgB,KAAK,YAAU,OAAO,CAG9C;AAEH,qEAAqE,GACrE,OAAO,YAAI,aAAkB;AAE7B,gDAAgD,GAChD,YAAY;EACV,cAAc;EACd;IAAY,MAAM,MAAM;IAAE,QAAQ,MAAM;;;AAG1C;;;oCAGoC,GACpC,OAAO,YAAI,SACT,KAAK,SACL,WAAW,MAAM,EACjB,gBACA,mBACE,MAAM,YAAY,IAAI,CAoBzB;AAED;qCACqC,GACrC,YAAY,QAAQ;EAClB,UAAU,KAAK,UAAU;EACzB,kBAAkB,OAAO;EACzB,8BAA8B;EAC9B;IAAe,WAAW,MAAM;;;AAGlC;;;mCAGmC,GACnC,OAAO,YAAI,YAAa,KAAK,UAAQ,IAAI,CAsBxC"}
@@ -0,0 +1,75 @@
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
+ */ import type { H } from "@yaks/render";
24
+ /** Counts by day, `YYYY-MM-DD`; a day nothing happened is absent. */ export type ByDay = Record<string, number>;
25
+ /** A dense run of days, and the day it starts on. */ export type Days = {
26
+ from: string;
27
+ values: number[];
28
+ };
29
+ /** A chart's series and what its numbers count: a `noun` said one at a time
30
+ * ("request"), or `money` for dollars. */ export type Series = Days & {
31
+ noun?: string;
32
+ money?: boolean;
33
+ };
34
+ /** The last `days` days up to `now`, oldest first, a quiet day a zero. */ export declare let series: (byDay: ByDay | null | undefined, days: number, now?: number) => Days;
35
+ /**
36
+ * The characters a series draws: an eighth of a cell for each eighth of the
37
+ * top, at least one for anything at all.
38
+ *
39
+ * ```ts
40
+ * import { bars } from '@yaks/ui/chart'
41
+ * import { equal } from '@yaks/testing'
42
+ *
43
+ * equal(bars([0, 1, 2, 4]), '▁▂▄█')
44
+ * equal(bars([1, 2], 16), '▁▁')
45
+ * ```
46
+ */ export declare let bars: (values: number[], max?: number) => string;
47
+ /** Several rows' days added up: a person's spend over the spaces they own. */ export declare let summed: (all: (ByDay | null | undefined)[]) => ByDay;
48
+ /** These days and `n` more of what they count on the day of `on` (today
49
+ * where absent), past `days` days forgotten, so what a row keeps stays small.
50
+ * An `n` for a day already forgotten is dropped with it.
51
+ *
52
+ * ```ts
53
+ * import { kept } from '@yaks/ui/chart'
54
+ * import { equal } from '@yaks/testing'
55
+ *
56
+ * let now = Date.parse('2026-10-31T12:00:00Z')
57
+ * equal(kept({ '2026-10-31': 1, '2026-09-01': 9 }, 2, now), { '2026-10-31': 3 })
58
+ * let yesterday = now - 86_400_000
59
+ * equal(kept({ '2026-10-30': 5 }, -4, now, 30, yesterday), { '2026-10-30': 1 })
60
+ * equal(kept({}, 4, now, 30, Date.parse('2026-09-01')), {})
61
+ * ```
62
+ */ export declare let kept: (byDay: ByDay | null | undefined, n: number, now?: number, days?: number, on?: number) => ByDay;
63
+ /** The whole series in a sentence, for anyone who cannot see the marks. */ export declare let said: (s: Series) => string;
64
+ /** Where each value sits in the sparkline's box: a value of nothing on the
65
+ * floor, the largest at the top, with room for the line's own width. */ export declare let points: (values: number[]) => [number, number][];
66
+ /**
67
+ * A line, small enough to sit beside a number, ending in a dot on today. A
68
+ * series with nothing in it draws nothing: a list of mostly quiet rows reads
69
+ * as the few that are not.
70
+ */ export declare let sparkline: <Node>(h: H<Node>, s: Series) => Node | null;
71
+ /**
72
+ * A column a day, stretched to the width there is: the viewBox is one unit a
73
+ * day, and a rectangle stretched is still a rectangle.
74
+ */ export declare let columns: <Node>(h: H<Node>, s: Series) => Node;
75
+ //# sourceMappingURL=chart-marks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chart-marks.d.ts","sources":["../chart-marks.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;CAsBC,GAED,cAAc,CAAC,4BAAiC;AAEhD,mEAAmE,GACnE,YAAY,QAAQ,OAAO,MAAM,EAAE,MAAM;AAEzC,mDAAmD,GACnD,YAAY;EAAS,MAAM,MAAM;EAAE,QAAQ,MAAM;;AAEjD;wCACwC,GACxC,YAAY,SAAS;EAAS,OAAO,MAAM;EAAE,QAAQ,OAAO;;AAO5D,wEAAwE,GACxE,OAAO,YAAI,SACT,OAAO,QAAQ,IAAI,GAAG,SAAS,EAC/B,MAAM,MAAM,EACZ,MAAK,MAAM,KACV,KAMF;AAID;;;;;;;;;;;CAWC,GACD,OAAO,YAAI,OACT,QAAQ,MAAM,IACd,MAAK,MAAM,KACV,MAAM,CAKG;AAEZ,4EAA4E,GAC5E,OAAO,YAAI,SAAU,MAAM,QAAQ,IAAI,GAAG,SAAS,QAAM,MAQxD;AAED;;;;;;;;;;;;;;CAcC,GACD,OAAO,YAAI,OACT,OAAO,QAAQ,IAAI,GAAG,SAAS,EAC/B,GAAG,MAAM,EACT,MAAK,MAAM,EACX,eACA,KAAI,MAAM,KACT,MAQF;AAOD,yEAAyE,GACzE,OAAO,YAAI,OAAQ,GAAG,WAAS,MAAM,CAMpC;AAkBD;sEACsE,GACtE,OAAO,YAAI,SAAU,QAAQ,MAAM,QAAM,MAAM,EAAE,MAAM,IAQtD;AAED;;;;CAIC,GACD,OAAO,YAAI,YAAa,MAAM,GAAG,EAAE,OAAO,GAAG,WAAS,OAAO,IAAI,CAuBhE;AAED;;;CAGC,GACD,OAAO,YAAI,UAAW,MAAM,GAAG,EAAE,OAAO,GAAG,WAAS,KAwBnD"}
@@ -0,0 +1,4 @@
1
+ import { type Clock } from "@yaks/fp";
2
+ /** A host clock read `every` so many milliseconds (a minute unless said),
3
+ * subscribed only while the date is mounted. */ export declare let useNow: (clock?: Clock, every?: number) => number;
4
+ //# sourceMappingURL=clock.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clock.d.ts","sources":["../clock.ts"],"names":[],"mappings":"AAMA,SAAS,KAAK,KAAK,wBAAqC;AAmBxD;8CAC8C,GAC9C,OAAO,YAAI,SAAU,QAAO,OAAgB,mBAAiB,MAAM,CAWlE"}
@@ -0,0 +1,29 @@
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 type { Entry } from "./Contents.js";
15
+ /** Fewer sections than this need no contents: the page shows them all. */ export declare let FEW: number;
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 declare let current: (passed: boolean[]) => number;
18
+ /** An anchor from a heading's words: lower case, a hyphen between words. */ export declare let anchor: (words: string) => string;
19
+ /** The headings a selector names under `root`, each with an anchor: its own,
20
+ * or one made from its words, unique on the page. */ export declare let headings: (root: ParentNode, from: string) => Entry[];
21
+ /** Fill a contents list drawn empty from the headings its `data-contents`
22
+ * names, under `root`; one with too few sections stays hidden. */ export declare let fill: (nav: HTMLElement, root: ParentNode) => void;
23
+ /** Light the entry of the section in view as the page scrolls. The band is
24
+ * the top quarter of the view: a heading that has reached it has begun the
25
+ * section being read. */ export declare let watch: (nav: HTMLElement, signal?: AbortSignal) => void;
26
+ /** Every contents list on the page, filled and watched until `signal`
27
+ * aborts; and an address's `#section` followed, where its anchor was only
28
+ * made now. */ export declare let start: (doc: Document, signal?: AbortSignal) => void;
29
+ //# sourceMappingURL=contents-browser.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contents-browser.d.ts","sources":["../contents-browser.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;CAaC,GAED,cAAc,KAAK,wBAAuB;AAG1C,wEAAwE,GACxE,OAAO,YAAI,YAAO;AAElB;gEACgE,GAChE,OAAO,YAAI,UAAW,QAAQ,OAAO,OAAK,MAAM,CACT;AAEvC,0EAA0E,GAC1E,OAAO,YAAI,SAAU,OAAO,MAAM,KAAG,MAAM,CAEwB;AAOnE;mDACmD,GACnD,OAAO,YAAI,WAAY,MAAM,YAAY,MAAM,MAAM,KAAG,QAWvD;AAiBD;gEACgE,GAChE,OAAO,YAAI,OAAQ,KAAK,aAAa,MAAM,eAAa,IAAI,CAM3D;AAYD;;uBAEuB,GACvB,OAAO,YAAI,QAAS,KAAK,aAAa,SAAS,gBAAc,IAAI,CAuBhE;AAED;;aAEa,GACb,OAAO,YAAI,QAAS,KAAK,UAAU,SAAS,gBAAc,IAAI,CAQ7D"}
@@ -0,0 +1,5 @@
1
+ /** Browser-safe facet gathering, without loading any painter. */ import type { Contributions } from "./theme.js";
2
+ /** Gather installed facets. Duplicate contribution names are an error rather
3
+ * than an order-dependent choice of someone else's kit. */ export declare let gather: (facets: Contributions[]) => Contributions;
4
+ export type { Contributions } from "./theme.js";
5
+ //# sourceMappingURL=contributions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contributions.d.ts","sources":["../contributions.ts"],"names":[],"mappings":"AAAA,+DAA+D,GAC/D,cAAc,aAAa,qBAAoB;AAE/C;yDACyD,GACzD,OAAO,YAAI,SAAU,QAAQ,oBAAkB,cAa9C;AAED,cAAc,aAAa,qBAAoB"}
@@ -0,0 +1,4 @@
1
+ /** Show the copy buttons in `root`; call it again once `root` is drawn anew. */ export declare let shown: (root: ParentNode) => void;
2
+ /** Work every copy button in `root`, now and as it is drawn again. The
3
+ * answer lets go of it. */ export declare let copying: (root: HTMLElement) => () => void;
4
+ //# sourceMappingURL=copy-browser.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"copy-browser.d.ts","sources":["../copy-browser.ts"],"names":[],"mappings":"AA0BA,8EAA8E,GAC9E,OAAO,YAAI,QAAS,MAAM,eAAa,IAAI,CAI1C;AAED;yBACyB,GACzB,OAAO,YAAI,UAAW,MAAM,sBAAoB,IAAI,CAQnD"}
package/_dist/el.d.ts ADDED
@@ -0,0 +1,58 @@
1
+ /**
2
+ * The two builders every UI component is made from. They speak the
3
+ * `Block_Element-modifier` class names a stylesheet and a terminal sheet both
4
+ * read: `el('span', 'Dot')` is a component rendering `<span class="Dot">`, and
5
+ * its `mod` prop adds variants, `<Dot mod='ring' />` rendering
6
+ * `<span class="Dot Dot-ring">`. `block()` hangs a block's elements on it.
7
+ *
8
+ * A part is paint. Everything a caller passes besides `mod`, `className` (or
9
+ * `class`), `elRef`, `href` and `as` (a style, a handler, `draggable`, `type`) lands on the
10
+ * element as given; what a click on it means is the caller's business. `as`
11
+ * names the element where the page's outline wants another than the part's
12
+ * own: a card's title as an `h3` under the page's `h2`, a card as an `li` of
13
+ * a list.
14
+ *
15
+ * A part can be another part too, drawn as it and wearing both classes. `as`
16
+ * given a part draws this one as it, in this one's element:
17
+ * `<TabSet.Panel as={Card}>` renders `<section class="Card Tabs_Panel">`, a
18
+ * panel that is a card. A part made of one (`el(Button, 'Copy_Go')`, or a
19
+ * block's element given a part) always is it, in that part's element. Its
20
+ * variants are its own; the part it is drawn as is plain.
21
+ *
22
+ * Links nest the way HTML allows. A part given an `href` renders as an `<a>`
23
+ * and becomes the link around its children ({@link Surround}). Inside it, a
24
+ * part naming the same href is not a second link, and one naming another
25
+ * keeps its tag and says `role="link"` and `data-href`: nested `<a>` is
26
+ * invalid HTML, so following it is left to the application, which listens
27
+ * for `[data-href]` once for the whole document. A link to another site opens
28
+ * in a new tab (@yaks/markdown/away), by the page's `Site` where one is given,
29
+ * unless the caller names its own target.
30
+ *
31
+ * @module
32
+ */ import { type Context, type FunctionComponent, type ReactNode } from "@types/react";
33
+ import { type OverlayOptions } from "./overlays.js";
34
+ type Mod = string | false | null | undefined;
35
+ /** What a part takes: its variants, and anything else an element does. */ export type Props = {
36
+ /** variants, each adding `Base-variant` to the class; falsy ones drop */ mod?: Mod | Mod[];
37
+ /** more classes, after the part's own */ className?: string;
38
+ /** more classes, as HTML names them: `className` too */ class?: string;
39
+ /** the element itself, as `ref` would give it (a function component
40
+ * cannot forward `ref`) */ elRef?: unknown;
41
+ /** where this part links to */ href?: string;
42
+ /** the element to render, where the page's outline wants another, or a
43
+ * part to draw this one as */ as?: string | Part;
44
+ children?: ReactNode;
45
+ /** Escape behavior for a part that takes onCancel. */ overlay?: Pick<OverlayOptions, 'opener' | 'blur'>;
46
+ [x: string]: unknown;
47
+ };
48
+ /** A component `el()` made. */ export type Part = FunctionComponent<Props>;
49
+ /** The link around this point of the tree: what an `href` inside it means. */ export declare let Surround: Context<{
50
+ href?: string;
51
+ }>;
52
+ /** A part: `tag` (an element, or a part it is drawn as), wearing the class
53
+ * `base`. */ export declare let el: <P extends Props = Props>(tag: string | FunctionComponent<P>, base: string) => FunctionComponent<P>;
54
+ /** A block and its elements: `block('section', 'Card', { Head: 'header' })`
55
+ * renders `<section class="Card">`, and carries `Card.Head`, rendering
56
+ * `<header class="Card_Head">`. Each key is the element's name, its value
57
+ * the element's tag, or the part it is. */ export declare let block: <K extends string>(tag: string | Part, base: string, kids: Record<K, string | Part>) => Part & Record<K, Part>;
58
+ //# sourceMappingURL=el.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"el.d.ts","sources":["../el.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+BC,GAEyC,SACxC,KAAK,OAAO,EAGZ,KAAK,iBAAiB,EACtB,KAAK,SAAS,uBAKS;AAGzB,SAEE,KAAK,cAAc,wBAGC;KAEjB,MAAM,MAAM,GAAG,KAAK,GAAG,IAAI,GAAG,SAAS;AAE5C,wEAAwE,GACxE,YAAY;EACV,uEAAuE,GACvE,MAAM,MAAM;EACZ,uCAAuC,GACvC,YAAY,MAAM;EAClB,sDAAsD,GACtD,QAAQ,MAAM;EACd;2BACyB,GACzB,QAAQ,OAAO;EACf,6BAA6B,GAC7B,OAAO,MAAM;EACb;8BAC4B,GAC5B,KAAK,MAAM,GAAG;EACd,WAAW;EACX,oDAAoD,GACpD,UAAU,KAAK,gBAAgB,WAAW;GACzC,GAAG,MAAM,GAAG,OAAO;;AAGtB,6BAA6B,GAC7B,YAAY,OAAO,kBAAkB;AAErC,4EAA4E,GAC5E,OAAO,YAAI,UAAU;EAAU,OAAO,MAAM;GAAuB;AA6GnE;WACW,GACX,OAAO,YAAI,KAAM,UAAU,QAAQ,OACjC,KAAK,MAAM,GAAG,kBAAkB,IAChC,MAAM,MAAM,KACX,kBAAkB,GA0BpB;AAED;;;yCAGyC,GACzC,OAAO,YAAI,QAAS,UAAU,MAAM,EAClC,KAAK,MAAM,GAAG,MACd,MAAM,MAAM,EACZ,MAAM,OAAO,GAAG,MAAM,GAAG,UACxB,OAAO,OAAO,GAAG,MAQjB"}