@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/kit.ts ADDED
@@ -0,0 +1,408 @@
1
+ import * as identity from './Identity.js'
2
+ import * as toolbar from './Toolbar.js'
3
+ import * as appShell from './AppShell.js'
4
+ import * as iconButton from './IconButton.js'
5
+ import * as transcript from './Transcript.js'
6
+ import * as attachments from './Attachments.js'
7
+ import * as annotated from './Annotated.js'
8
+ import * as preview from './Preview.js'
9
+ import * as composer from './Composer.js'
10
+ import * as popover from './Popover.js'
11
+ import * as skip from './Skip.js'
12
+ /**
13
+ * The kit: every part, by the name of the file its CSS is in, in the groups
14
+ * the style guide shows them in; every theme; and what a theme becomes for
15
+ * each place that paints. A new component is its module and its CSS file,
16
+ * and one line here, in its group.
17
+ *
18
+ * @module
19
+ */
20
+
21
+ import type { Sheet } from './sheet.ts'
22
+ import * as address from './Address.js'
23
+ import * as at from './At.js'
24
+ import * as base from './base.js'
25
+ import * as surface from './Surface.js'
26
+ import * as body from './Body.js'
27
+ import * as button from './Button.js'
28
+ import * as card from './Card.js'
29
+ import * as plan from './Plan.js'
30
+ import * as modal from './Modal.js'
31
+ import * as lightbox from './Lightbox.js'
32
+ import * as catalog from './Catalog.js'
33
+ import * as cards from './Cards.js'
34
+ import * as chart from './Chart.js'
35
+ import * as check from './Check.js'
36
+ import * as pills from './Pills.js'
37
+ import * as chip from './Chip.js'
38
+ import * as chips from './Chips.js'
39
+ import * as choices from './Choices.js'
40
+ import * as copy from './Copy.js'
41
+ import * as doc from './Doc.js'
42
+ import * as dot from './Dot.js'
43
+ import * as drop from './Drop.js'
44
+ import * as edit from './Edit.js'
45
+ import * as empty from './Empty.js'
46
+ import * as field from './Field.js'
47
+ import * as select from './Select.js'
48
+ import * as form from './Form.js'
49
+ import * as gallery from './Gallery.js'
50
+ import { halved } from './halved.js'
51
+ import * as group from './Group.js'
52
+ import * as head from './Head.js'
53
+ import * as icon from './Icon.js'
54
+ import * as logo from './Logo.js'
55
+ import * as id from './Id.js'
56
+ import * as index from './Index.js'
57
+ import * as menu from './Menu.js'
58
+ import * as meter from './Meter.js'
59
+ import * as metrics from './Metrics.js'
60
+ import * as more from './More.js'
61
+ import * as loading from './Loading.js'
62
+ import * as match from './Match.js'
63
+ import * as notes from './Notes.js'
64
+ import * as notice from './Notice.js'
65
+ import * as toast from './Toast.js'
66
+ import * as errorNotice from './ErrorNotice.js'
67
+ import * as palette from './Palette.js'
68
+ import * as layer from './Layer.js'
69
+ import * as dock from './Dock.js'
70
+ import * as overlay from './Overlay.js'
71
+ import * as pager from './Pager.js'
72
+ import * as pairs from './Pairs.js'
73
+ import * as passage from './Passage.js'
74
+ import * as peek from './Peek.js'
75
+ import * as panes from './Panes.js'
76
+ import * as prop from './Prop.js'
77
+ import * as quote from './Quote.js'
78
+ import * as report from './Report.js'
79
+ import * as rows from './Rows.js'
80
+ import * as save from './Save.js'
81
+ import * as section from './Section.js'
82
+ import * as stack from './Stack.js'
83
+ import * as shell from './Shell.js'
84
+ import * as sideNav from './SideNav.js'
85
+ import * as contents from './Contents.js'
86
+ import * as spark from './Spark.js'
87
+ import * as stamp from './Stamp.js'
88
+ import * as badge from './Badge.js'
89
+ import * as state from './State.js'
90
+ import * as table from './Table.js'
91
+ import * as tabs from './Tabs.js'
92
+ import * as tile from './Tile.js'
93
+ import * as timeline from './Timeline.js'
94
+ import * as tip from './Tip.js'
95
+ import * as time from './Time.js'
96
+ import * as turns from './Turns.js'
97
+ import * as value from './Value.js'
98
+ import { everforest } from './everforest.js'
99
+ import { gouache } from './gouache.js'
100
+ import { ledger } from './ledger.js'
101
+ import { linen } from './linen.js'
102
+ import { paper } from './paper.js'
103
+ import { pencil } from './pencil.js'
104
+ import { rosepine } from './rosepine.js'
105
+ /* @ts-types="npm:@types/react@19.3.0" */ import { Fragment } from 'react'
106
+ import { text } from '@yaks/api/asset'
107
+ import {
108
+ beside,
109
+ type Composition,
110
+ type Contributions,
111
+ type Kit,
112
+ type Native,
113
+ type Piece,
114
+ type Skin,
115
+ type Stylesheet,
116
+ type Theme,
117
+ } from './theme.js'
118
+
119
+ let here = beside(import.meta.url)
120
+
121
+ /** Every part, by what it is for: the document's defaults, what is said
122
+ * inline, what is pressed or typed in, the way around, lists of things, and
123
+ * what frames a page. A group's name is never a part's: each is a place in
124
+ * the guide. */
125
+ let modules = {
126
+ Prose: { base, Surface: surface, Body: body, Doc: doc, Quote: quote },
127
+ Marks: {
128
+ Dot: dot,
129
+ State: state,
130
+ Badge: badge,
131
+ Id: id,
132
+ Stamp: stamp,
133
+ Chip: chip,
134
+ Chips: chips,
135
+ Address: address,
136
+ Icon: icon,
137
+ Logo: logo,
138
+ Match: match,
139
+ Value: value,
140
+ Meter: meter,
141
+ Spark: spark,
142
+ Chart: chart,
143
+ Tip: tip,
144
+ Time: time,
145
+ },
146
+ Controls: {
147
+ Button: button,
148
+ IconButton: iconButton,
149
+ Copy: copy,
150
+ Field: field,
151
+ Select: select,
152
+ At: at,
153
+ Check: check,
154
+ Pills: pills,
155
+ Form: form,
156
+ Drop: drop,
157
+ Notice: notice,
158
+ Toast: toast,
159
+ ErrorNotice: errorNotice,
160
+ Choices: choices,
161
+ Edit: edit,
162
+ Composer: composer,
163
+ Save: save,
164
+ Menu: menu,
165
+ Prop: prop,
166
+ },
167
+ Navigation: {
168
+ Tabs: tabs,
169
+ SideNav: sideNav,
170
+ Contents: contents,
171
+ Index: index,
172
+ Pager: pager,
173
+ },
174
+ Lists: {
175
+ Tile: tile,
176
+ Rows: rows,
177
+ Pairs: pairs,
178
+ Table: table,
179
+ Timeline: timeline,
180
+ Turns: turns,
181
+ Passage: passage,
182
+ Notes: notes,
183
+ },
184
+ Page: {
185
+ AppShell: appShell,
186
+ Identity: identity,
187
+ Toolbar: toolbar,
188
+ Transcript: transcript,
189
+ Attachments: attachments,
190
+ Lightbox: lightbox,
191
+ Annotated: annotated,
192
+ Preview: preview,
193
+ Popover: popover,
194
+ Skip: skip,
195
+
196
+ Loading: loading,
197
+ Empty: empty,
198
+ Shell: shell,
199
+ Head: head,
200
+ Metrics: metrics,
201
+ Section: section,
202
+ Stack: stack,
203
+ More: more,
204
+ Card: card,
205
+ Plan: plan,
206
+ Modal: modal,
207
+ Report: report,
208
+ Group: group,
209
+ Panes: panes,
210
+ Layer: layer,
211
+ Dock: dock,
212
+ Overlay: overlay,
213
+ Peek: peek,
214
+ Palette: palette,
215
+ Catalog: catalog,
216
+ Gallery: gallery,
217
+ Cards: cards,
218
+ },
219
+ }
220
+
221
+ /** The base parts, with their component and CSS address carried by the part,
222
+ * so another package's kit need not live beside this module. */
223
+ export let groups: Record<string, Kit> = Object.fromEntries(
224
+ Object.entries(modules).map(([group, parts]) => [
225
+ group,
226
+ Object.fromEntries(
227
+ Object.entries(parts).map(([name, part]) => [name, {
228
+ ...part,
229
+ Component: name == 'base' ? Fragment : Reflect.get(part, name),
230
+ css: here(`./${name}.css`),
231
+ } as Piece]),
232
+ ),
233
+ ]),
234
+ )
235
+
236
+ // Grid is a published name for Cards; both carry the same rendering.
237
+ groups.Page.Grid = groups.Page.Cards
238
+
239
+ /** Every base part, document defaults first. */
240
+ export let kit: Kit = Object.assign({}, ...Object.values(groups))
241
+ export let kits: Record<string, Kit> = { base: kit }
242
+ export { linenAsset } from './stock.js'
243
+ /** Gouache and paper, yak.sh's design, are the default: the first of each. */
244
+ export let themes: Record<string, Theme> = {
245
+ gouache,
246
+ everforest,
247
+ rosepine,
248
+ linen,
249
+ }
250
+ export let skins: NonNullable<Contributions['skins']> = {
251
+ paper,
252
+ ledger,
253
+ pencil,
254
+ }
255
+ export let composition: Composition = { kits, theme: gouache, skin: paper }
256
+
257
+ export { gather } from './contributions.js'
258
+
259
+ /** A scoped skin entry changes one kit's part; bare names dress every match. */
260
+ export let rendering = (
261
+ c: Composition,
262
+ kit: string,
263
+ name: string,
264
+ ): Skin[string] | undefined => {
265
+ let names = [
266
+ name,
267
+ ...Object.keys(c.kits[kit]).filter((alias) =>
268
+ alias != name && c.kits[kit][alias] == c.kits[kit][name]
269
+ ),
270
+ ]
271
+ return names.map((name) => c.skin?.[`${kit}/${name}`] ?? c.skin?.[name])
272
+ .find((skin) => skin != undefined)
273
+ }
274
+
275
+ let pieces = (c: Composition) => {
276
+ // Surface is the paint every kit composes, including a host's subset.
277
+ let hasSurface = Object.values(c.kits).some((kit) =>
278
+ Object.values(kit).some((part) => part.Component == surface.Surface)
279
+ )
280
+ let counts = new Map<string, number>()
281
+ for (let kit of Object.values(c.kits)) {
282
+ for (let name of Object.keys(kit)) {
283
+ counts.set(name, (counts.get(name) ?? 0) + 1)
284
+ }
285
+ }
286
+ let selected = Object.entries(c.kits).flatMap(([kit, parts]) =>
287
+ Object.entries(parts).map(([name, part]) => ({
288
+ name: counts.get(name) == 1 ? name : `${kit}/${name}`,
289
+ part,
290
+ skin: rendering(c, kit, name),
291
+ }))
292
+ )
293
+ return hasSurface ? selected : [
294
+ { name: 'Surface', part: kit.Surface, skin: c.skin?.Surface },
295
+ ...selected,
296
+ ]
297
+ }
298
+
299
+ /** Unique names retain their spelling; shared names are qualified by kit. */
300
+ export let parts = (c: Composition): Kit =>
301
+ Object.fromEntries(pieces(c).map(({ name, part }) => [name, part]))
302
+
303
+ /** Theme colours, each kit's entries, and the skin's replacement entries. */
304
+ export let sheet = (c: Composition): Sheet =>
305
+ Object.freeze(
306
+ Object.assign(
307
+ {},
308
+ ...pieces(c).map(({ part, skin }) =>
309
+ (skin?.sheet ?? part.sheet)(c.theme.colors)
310
+ ),
311
+ ),
312
+ )
313
+
314
+ /** Each part's native entries, the skin's where it replaces one, over the
315
+ * theme's colours: a native host's look of every class (@yaks/native). */
316
+ export let native = (c: Composition): Native =>
317
+ Object.freeze(
318
+ Object.assign(
319
+ {},
320
+ ...pieces(c).map(({ part, skin }) =>
321
+ (skin?.native ?? part.native)?.(c.theme.colors)
322
+ ),
323
+ ),
324
+ )
325
+
326
+ let read = async (sheet: Stylesheet) => {
327
+ let url = sheet()
328
+ let css = await text(url)
329
+ // Inlining must retain each external sheet's address for images and imports.
330
+ let at = (path: string) =>
331
+ path.startsWith('#') || path.startsWith('data:')
332
+ ? path
333
+ : new URL(path, url).href
334
+ return halved(css).replace(
335
+ /url\(\s*(['"]?)([^)'"\s]+)\1\s*\)/g,
336
+ (_, _quote, path) => `url("${at(path)}")`,
337
+ )
338
+ .replace(
339
+ /(@import\s+)(['"])([^'"]+)\2/g,
340
+ (_, start, _quote, path) => `${start}"${at(path)}"`,
341
+ )
342
+ }
343
+
344
+ /** What every theme derives the same way, dressed after the theme whatever
345
+ * the parts: the half gap, the faint wash, the touch floor, the type scale. */
346
+ let DERIVED = here('./derived.css')
347
+
348
+ // Each sheet a browser gets, by what it dresses: `theme` first (the theme,
349
+ // and what every theme derives), then one rendering per part, the skin's
350
+ // where it replaces one, the kit's otherwise, and whatever the skin lays over
351
+ // it.
352
+ let dressing = (c: Composition): [string, Stylesheet[]][] => [
353
+ ['theme', [c.theme.css, DERIVED]],
354
+ ...pieces(c).map(({ name, part, skin }): [string, Stylesheet[]] => {
355
+ let { css = part.css, over = [] } = skin ?? {}
356
+ return [name, [css, ...[over].flat()]]
357
+ }),
358
+ ]
359
+
360
+ /** Each sheet a browser gets, by what it dresses (see `addresses` for the
361
+ * order). A host that layers its own CSS reads them apart. */
362
+ export let sheets = (c: Composition): Promise<[string, string][]> =>
363
+ Promise.all(
364
+ dressing(c).map(async ([name, each]): Promise<[string, string]> => [
365
+ name,
366
+ (await Promise.all(each.map(read))).join('\n'),
367
+ ]),
368
+ )
369
+
370
+ let ordered = (c: Composition): Stylesheet[] =>
371
+ dressing(c).flatMap(([, each]) => each)
372
+ let urls = (sheets: Stylesheet[]): string[] =>
373
+ sheets.map((sheet) => sheet().href)
374
+
375
+ /** The address of every sheet a browser gets, in the order `stylesheet`
376
+ * reads them: the theme and what every theme derives, then each part's. */
377
+ export let addresses = (c: Composition): string[] => urls(ordered(c))
378
+
379
+ // Keep the original sheets because apps can extend the exported kit and theme.
380
+ let linenSheets = ordered({ kits, theme: linen })
381
+ export let linenAddresses = (): string[] => urls(linenSheets)
382
+
383
+ /** Every sheet a browser gets, in order, as one. */
384
+ export let stylesheet = async (c: Composition): Promise<string> =>
385
+ (await sheets(c)).map(([, css]) => css).join('\n')
386
+
387
+ /** Dress native action controls in a plain HTML page. */
388
+ export let buttonStylesheet = (): Promise<string> =>
389
+ stylesheet({
390
+ kits: {
391
+ base: {
392
+ Surface: kit.Surface,
393
+ Button: kit.Button,
394
+ IconButton: kit.IconButton,
395
+ },
396
+ },
397
+ theme: linen,
398
+ })
399
+
400
+ /** The controls shown in every yaks app's style guide. */
401
+ export let appGuideParts: string[] = [
402
+ ...Object.keys(groups.Controls),
403
+ 'Tabs',
404
+ 'Modal',
405
+ 'Popover',
406
+ ]
407
+
408
+ export let appGuide: Composition = { kits, theme: linen }
@@ -0,0 +1,22 @@
1
+ /* Ledger: a crisp printed label, with a lifted rule rather than a soft chip. */
2
+ .Button {
3
+ border-radius: 0;
4
+ border-width: 1px 1px 3px;
5
+ font-family: var(--mono);
6
+ font-weight: 600;
7
+ background: var(--card);
8
+ }
9
+ .Button::after {
10
+ border-width: 1px 1px 3px;
11
+ }
12
+ .Button:focus-visible {
13
+ outline: 2px solid var(--accent);
14
+ outline-offset: 2px;
15
+ }
16
+ .Button-quiet {
17
+ border-color: transparent;
18
+ background: none;
19
+ }
20
+ .Button-go {
21
+ background: var(--accent);
22
+ }
@@ -0,0 +1,72 @@
1
+ /* The top of a page: the title large and ink, with its id and kind small
2
+ beside it; what it is under it, muted; then the facts, small and muted,
3
+ dotted apart. Whatever follows it starts a gap below. */
4
+ .Head {
5
+ display: grid;
6
+ gap: 4px;
7
+ min-width: 0;
8
+ }
9
+ .Head + * {
10
+ margin-top: var(--gap);
11
+ }
12
+ .Head_Title {
13
+ margin: 0;
14
+ display: flex;
15
+ flex-wrap: wrap;
16
+ align-items: baseline;
17
+ gap: 0 var(--half-gap);
18
+ min-width: 0;
19
+ font-size: 1.15rem;
20
+ font-weight: 600;
21
+ line-height: 1.3;
22
+ color: var(--text);
23
+ overflow-wrap: anywhere;
24
+ }
25
+ a.Head_Title,
26
+ .Head_Link {
27
+ color: inherit;
28
+ text-decoration: none;
29
+ }
30
+ @media (hover: hover) and (pointer: fine) {
31
+ a.Head_Title:hover,
32
+ .Head_Link:hover {
33
+ text-decoration: underline;
34
+ }
35
+ }
36
+ .Head_Id,
37
+ .Head_Kind {
38
+ font-family: var(--mono);
39
+ font-size: var(--small);
40
+ font-weight: normal;
41
+ color: var(--muted);
42
+ }
43
+ .Head_Sub {
44
+ margin: 0;
45
+ color: var(--muted);
46
+ max-width: var(--measure);
47
+ }
48
+ .Head_Sub-refused {
49
+ color: var(--negative);
50
+ }
51
+ .Head_Facts {
52
+ display: flex;
53
+ flex-wrap: wrap;
54
+ align-items: baseline;
55
+ gap: 2px var(--half-gap);
56
+ font-family: var(--mono);
57
+ font-size: var(--small);
58
+ color: var(--muted);
59
+ }
60
+ .Head_Sep {
61
+ color: var(--dim);
62
+ }
63
+ /* Ledger: a ruled heading, set like the title of a printed record. */
64
+ .Head_Title {
65
+ font-family: var(--mono);
66
+ letter-spacing: 0.04em;
67
+ color: var(--heading);
68
+ }
69
+ .Head_Facts {
70
+ border-top: 1px dashed var(--border2);
71
+ padding-top: var(--half-gap);
72
+ }
@@ -0,0 +1,19 @@
1
+ /* Ledger, over the kit's tabs: folder labels, with a double rule on the
2
+ selected label. */
3
+ .Tabs_Tab {
4
+ border-radius: 0;
5
+ border-bottom: 3px solid transparent;
6
+ font-family: var(--mono);
7
+ }
8
+ .Tabs_Tab-on,
9
+ .Tabs_Input:checked ~ .Tabs_Tab {
10
+ color: var(--accent);
11
+ background: var(--card);
12
+ border-color: var(--border2);
13
+ border-bottom-color: var(--accent);
14
+ border-bottom-style: double;
15
+ }
16
+ .Tabs_Tab:focus-visible {
17
+ outline: 2px solid var(--accent);
18
+ outline-offset: 2px;
19
+ }
@@ -0,0 +1,12 @@
1
+ /* Ledger keeps the tile's shared parts and variants, adding a printed rule. */
2
+ @import '../Tile.css';
3
+
4
+ .Tile {
5
+ border-bottom: 1px dashed var(--border);
6
+ }
7
+ .Tile:not(.Tile-detail) {
8
+ --padding: 3px 0;
9
+ }
10
+ .Tile_Title {
11
+ --weight: 600;
12
+ }
package/ledger.js ADDED
@@ -0,0 +1,52 @@
1
+ /** Ledger, an invented rendering of printed labels and ruled records. It is
2
+ * deliberately partial: the guide exposes both replacements and kit fallback. */ import { sheet as buttons } from "./Button.js";
3
+ import { sheet as tabs } from "./Tabs.js";
4
+ import { sheet as heads } from "./Head.js";
5
+ import { sheet as tiles } from "./Tile.js";
6
+ import { beside } from "./theme.js";
7
+ let at = beside(import.meta.url);
8
+ export let ledger = {
9
+ Button: {
10
+ over: at('./ledger/Button.css'),
11
+ sheet: (c)=>({
12
+ ...buttons(c),
13
+ Button: {
14
+ fg: c.accent,
15
+ bold: true
16
+ }
17
+ })
18
+ },
19
+ Tabs: {
20
+ over: at('./ledger/Tabs.css'),
21
+ sheet: (c)=>({
22
+ ...tabs(c),
23
+ 'Tabs_Tab-on': {
24
+ fg: c.accent,
25
+ bold: true,
26
+ underline: true
27
+ }
28
+ })
29
+ },
30
+ Head: {
31
+ css: at('./ledger/Head.css'),
32
+ sheet: (c)=>({
33
+ ...heads(c),
34
+ Head_Title: {
35
+ fg: c.heading,
36
+ bold: true,
37
+ underline: true
38
+ }
39
+ })
40
+ },
41
+ Tile: {
42
+ css: at('./ledger/Tile.css'),
43
+ sheet: (c)=>({
44
+ ...tiles(c),
45
+ Tile_Title: {
46
+ fg: c.text,
47
+ bold: true
48
+ }
49
+ })
50
+ }
51
+ };
52
+ //# sourceMappingURL=ledger.js.map
package/ledger.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ledger.js","sources":["./ledger.ts"],"names":[],"mappings":"AAAA;+EAC+E,GAC/E,SAAS,SAAS,OAAO,sBAAqB;AAC9C,SAAS,SAAS,IAAI,oBAAmB;AACzC,SAAS,SAAS,KAAK,oBAAmB;AAC1C,SAAS,SAAS,KAAK,oBAAmB;AAC1C,SAAS,MAAM,qBAA+B;AAE9C,IAAI,KAAK,OAAO,YAAY,GAAG;AAE/B,OAAO,IAAI,SAAe;EACxB,QAAQ;IACN,MAAM,GAAG;IACT,OAAO,CAAC,IAAM,CAAC;QAAE,GAAG,QAAQ,EAAE;QAAE,QAAQ;UAAE,IAAI,EAAE,MAAM;UAAE,MAAM;QAAK;MAAE,CAAC;EACxE;EACA,MAAM;IACJ,MAAM,GAAG;IACT,OAAO,CAAC,IAAM,CAAC;QACb,GAAG,KAAK,EAAE;QACV,eAAe;UAAE,IAAI,EAAE,MAAM;UAAE,MAAM;UAAM,WAAW;QAAK;MAC7D,CAAC;EACH;EACA,MAAM;IACJ,KAAK,GAAG;IACR,OAAO,CAAC,IAAM,CAAC;QACb,GAAG,MAAM,EAAE;QACX,YAAY;UAAE,IAAI,EAAE,OAAO;UAAE,MAAM;UAAM,WAAW;QAAK;MAC3D,CAAC;EACH;EACA,MAAM;IACJ,KAAK,GAAG;IACR,OAAO,CAAC,IAAM,CAAC;QAAE,GAAG,MAAM,EAAE;QAAE,YAAY;UAAE,IAAI,EAAE,IAAI;UAAE,MAAM;QAAK;MAAE,CAAC;EACxE;AACF,EAAC"}
package/ledger.ts ADDED
@@ -0,0 +1,34 @@
1
+ /** Ledger, an invented rendering of printed labels and ruled records. It is
2
+ * deliberately partial: the guide exposes both replacements and kit fallback. */
3
+ import { sheet as buttons } from './Button.js'
4
+ import { sheet as tabs } from './Tabs.js'
5
+ import { sheet as heads } from './Head.js'
6
+ import { sheet as tiles } from './Tile.js'
7
+ import { beside, type Skin } from './theme.js'
8
+
9
+ let at = beside(import.meta.url)
10
+
11
+ export let ledger: Skin = {
12
+ Button: {
13
+ over: at('./ledger/Button.css'),
14
+ sheet: (c) => ({ ...buttons(c), Button: { fg: c.accent, bold: true } }),
15
+ },
16
+ Tabs: {
17
+ over: at('./ledger/Tabs.css'),
18
+ sheet: (c) => ({
19
+ ...tabs(c),
20
+ 'Tabs_Tab-on': { fg: c.accent, bold: true, underline: true },
21
+ }),
22
+ },
23
+ Head: {
24
+ css: at('./ledger/Head.css'),
25
+ sheet: (c) => ({
26
+ ...heads(c),
27
+ Head_Title: { fg: c.heading, bold: true, underline: true },
28
+ }),
29
+ },
30
+ Tile: {
31
+ css: at('./ledger/Tile.css'),
32
+ sheet: (c) => ({ ...tiles(c), Tile_Title: { fg: c.text, bold: true } }),
33
+ },
34
+ }
package/linen.css ADDED
@@ -0,0 +1,71 @@
1
+ /* Linen: yaks.app's colours. Light is a warm sheet of linen under cream
2
+ cards, written in coffee, never black, with meadow green for what is lit
3
+ and red for a fault. Dark is the same room at night: a night-brown
4
+ ground, cocoa cards, oat ink, moss for what is lit and coral for a fault.
5
+ linen.ts holds the dark colours for a terminal.
6
+
7
+ The neutrals and the greens are named for what they look like (linen,
8
+ cream, coffee, clay, taupe, shell, bark, cocoa, night, meadow, moss,
9
+ forest, oat). The other paints are clear, saturated hues, deep enough on
10
+ linen and bright enough at night to read as text at WCAG AA: red, orange,
11
+ blue and raspberry; and a yellow and a grey for dots, which are never
12
+ text: yellow a pip at work and someone away, grey someone gone. A theme
13
+ has more roles than a palette has hues, so roles share them: meadow is
14
+ what is lit, what went well and who; red a fault and the language's
15
+ words; orange what is under way, a caution and a number; blue
16
+ something to know and a moment; raspberry what is set apart. yaks.app's
17
+ own pages wear this theme (workers/yak/public). */
18
+ :root {
19
+ color-scheme: light dark;
20
+ --gap: 1rem;
21
+ --radius: 4px;
22
+ --measure: 38rem;
23
+ --shadow: 0 12px 32px -16px light-dark(#5238283d, #1d1714b3);
24
+
25
+ --font: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
26
+ --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
27
+ --size: 1.0625rem;
28
+ --small: 0.9375rem;
29
+
30
+ --bg: light-dark(#fdf7ee, #2b231f); /* linen; night */
31
+ --surface: light-dark(#f7efe3, #392d27); /* a sheet behind the one in front */
32
+ --card: light-dark(#fffbf5, #372c26); /* cream; cocoa */
33
+ --border: light-dark(#efe3d2, #4d3d34); /* shell; bark */
34
+ --border2: light-dark(#c9b7a6, #756255); /* the hairline, gone toward clay */
35
+
36
+ --text: light-dark(#523828, #f1e6d8); /* coffee; oat */
37
+ --muted: light-dark(#785b47, #c9b19c); /* clay; taupe */
38
+ --dim: light-dark(#c9b19c, #785b47); /* taupe; clay */
39
+
40
+ --accent: light-dark(#4c773e, #a7c080); /* meadow; moss */
41
+ --link: light-dark(#4c773e, #a7c080);
42
+ --heading: light-dark(#523828, #f1e6d8); /* the text's own ink */
43
+
44
+ --info: light-dark(#1f5fbf, #8cc0ff); /* blue */
45
+ --active: light-dark(#b84a00, #ffa057); /* orange */
46
+ --positive: light-dark(#4c773e, #a7c080); /* meadow; moss */
47
+ --negative: light-dark(#c4231c, #ff6b5e); /* red */
48
+ --caution: light-dark(#b84a00, #ffa057); /* orange */
49
+ --dot-active: light-dark(#f5b800, #ffcc33); /* yellow: a pip at work */
50
+ --presence-away: light-dark(#f5b800, #ffcc33); /* yellow */
51
+ --presence-offline: light-dark(#747170, #a4a09e); /* grey */
52
+ --special: light-dark(#b52a6a, #ff8cc0); /* raspberry */
53
+
54
+ --number: light-dark(#b84a00, #ffa057); /* orange */
55
+ --literal: light-dark(#c4231c, #ff6b5e); /* red */
56
+ --time: light-dark(#1f5fbf, #8cc0ff); /* blue */
57
+ --who: light-dark(#4c773e, #a7c080); /* meadow; moss */
58
+
59
+ --keyword: light-dark(#c4231c, #ff6b5e); /* red */
60
+ --string: light-dark(#4c773e, #a7c080); /* meadow; moss */
61
+ --fn: light-dark(#1f5fbf, #fffbf5); /* blue; cream */
62
+ --type: light-dark(#b84a00, #ffa057); /* orange */
63
+ --attr: light-dark(#b52a6a, #ff8cc0); /* raspberry */
64
+
65
+ --hue-0: light-dark(#4c773e, #a7c080); /* meadow; moss */
66
+ --hue-1: light-dark(#b84a00, #ffa057); /* orange */
67
+ --hue-2: light-dark(#1f5fbf, #8cc0ff); /* blue */
68
+ --hue-3: light-dark(#c4231c, #ff6b5e); /* red */
69
+ --hue-4: light-dark(#b52a6a, #ff8cc0); /* raspberry */
70
+ --hue-5: light-dark(#33493c, #f1e6d8); /* forest; oat */
71
+ }