@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/LICENSE ADDED
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright 2026 Jeff Peterson
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
package/Layer.css ADDED
@@ -0,0 +1,82 @@
1
+ /* What a page opens over itself, sliding in from its edge at a phone's
2
+ width: up from the foot, or in from the left or right. Shut, it rests off
3
+ that edge; it moves there and back on the compositor (translate alone),
4
+ quick and easing out as it opens, easing in as it leaves, so closing plays
5
+ the opening backwards. Its display (and a dialog's place on the top layer)
6
+ holds until it has left. A page that lays it over itself does so at least
7
+ at this width, by its own position, and shows it while it is open.
8
+ A side layer's edge toward the page casts a soft shadow, and nothing dims
9
+ the page behind it.
10
+ Layer-under turns the motion around: the layer stands still at the left,
11
+ under the page, and the page (Layer_Cover, after it) slides right by
12
+ --layer-width to uncover it, then back over it. The cover comes after the
13
+ layer, so it paints over it, and needs a background of its own. Its edge
14
+ casts the shadow, and a press on what still shows of it (Layer_Shut)
15
+ closes the layer. */
16
+ .Layer_Shut {
17
+ display: none;
18
+ }
19
+ @media (max-width: 700px) {
20
+ .Layer,
21
+ .Layer_Cover {
22
+ --layer-shadow: 1.5rem color-mix(in srgb, var(--text) 18%, transparent);
23
+ }
24
+ .Layer-left {
25
+ box-shadow: .25rem 0 var(--layer-shadow);
26
+ }
27
+ .Layer-right {
28
+ box-shadow: -.25rem 0 var(--layer-shadow);
29
+ }
30
+ .Layer[data-swipe],
31
+ .Layer_Shut {
32
+ touch-action: pan-y pinch-zoom;
33
+ }
34
+ .Layer-under {
35
+ box-shadow: none;
36
+ }
37
+ .Layer-under ~ .Layer_Cover {
38
+ position: relative;
39
+ box-shadow: -.25rem 0 var(--layer-shadow);
40
+ }
41
+ .Layer-under:is(:target, :has(:target)) ~ .Layer_Cover {
42
+ translate: var(--layer-width) 0;
43
+ }
44
+ .Layer-under:is(:target, :has(:target)) ~ .Layer_Cover .Layer_Shut {
45
+ display: block;
46
+ position: absolute;
47
+ inset: 0;
48
+ z-index: 100;
49
+ }
50
+ }
51
+ @media (max-width: 700px) and (prefers-reduced-motion: no-preference) {
52
+ .Layer {
53
+ --layer-off: 0 100%;
54
+ transition: translate .24s cubic-bezier(.2, .8, .2, 1),
55
+ display .24s allow-discrete, overlay .24s allow-discrete;
56
+ }
57
+ .Layer-left {
58
+ --layer-off: -100% 0;
59
+ }
60
+ .Layer-right {
61
+ --layer-off: 100% 0;
62
+ }
63
+ .Layer-under {
64
+ --layer-off: none;
65
+ }
66
+ .Layer:not(:target, :has(:target), [open], :popover-open) {
67
+ translate: var(--layer-off);
68
+ transition-duration: .2s;
69
+ transition-timing-function: cubic-bezier(.8, 0, .8, .2);
70
+ }
71
+ @starting-style {
72
+ .Layer {
73
+ translate: var(--layer-off);
74
+ }
75
+ }
76
+ .Layer-under ~ .Layer_Cover {
77
+ transition: translate .2s cubic-bezier(.8, 0, .8, .2);
78
+ }
79
+ .Layer-under:is(:target, :has(:target)) ~ .Layer_Cover {
80
+ transition: translate .24s cubic-bezier(.2, .8, .2, 1);
81
+ }
82
+ }
package/Layer.js ADDED
@@ -0,0 +1,86 @@
1
+ /**
2
+ * What a page opens over itself at a phone's width: a side menu, a panel that
3
+ * takes the screen, a sheet. It slides in from its edge as it opens and back
4
+ * out as it closes; `Layer-left` and `Layer-right` come from those sides, a
5
+ * plain one up from the foot. The page decides where it lies and when it is
6
+ * open: the address's target (`:target`, or a target inside it), a dialog's
7
+ * `open` or a popover's. Wider than a phone it stands as the page puts it.
8
+ * A side layer's edge toward the page casts a soft shadow; nothing dims the
9
+ * page behind it.
10
+ *
11
+ * `Layer-under` turns a left layer's motion around: it stands still under the
12
+ * page, and the page, a `Layer.Cover` after it, slides right by
13
+ * `--layer-width` to uncover it and back over it to close it. The page lays
14
+ * the layer that wide under itself; a `Layer.Shut` in the cover, a link to
15
+ * close it, takes a press on what still shows of the page.
16
+ *
17
+ * Another part is drawn as one with `layer`: `h(SideNav.Edge, { as: Left })`,
18
+ * where `let Left = layer('nav', 'left')`, renders
19
+ * `<nav class="Layer Layer-left SideNav_Edge">`.
20
+ *
21
+ * @module
22
+ */ /* @ts-types="npm:@types/react@19.3.0" */ import { createElement as h } from "react";
23
+ import { block } from "./el.js";
24
+ /** A layer over the page, and what covers one under it. */ export let Layer = block('div', 'Layer', {
25
+ Cover: 'div',
26
+ Shut: 'a'
27
+ });
28
+ /** A part that is a layer, `ways` it moves, in `tag` (an element, or a part
29
+ * it is drawn as) unless it is given `as`. Make one where a module loads, so
30
+ * each render draws the same component. */ export let layer = (tag, ...ways)=>({ as, ...props })=>/*#__PURE__*/ h(Layer, {
31
+ ...props,
32
+ as: as ?? tag,
33
+ mod: ways
34
+ });
35
+ /** What it is, in a line. */ export let description = 'A side menu, panel or sheet over the page, sliding in from its edge.';
36
+ /** A terminal lays the page out whole: a layer stays in the flow. */ export let sheet = (_c)=>({});
37
+ /** One from each edge, and a menu revealed by sliding its page aside. */ export let specimens = ()=>[
38
+ [
39
+ 'Layer',
40
+ /*#__PURE__*/ h(Layer, {}, 'up from the foot')
41
+ ],
42
+ [
43
+ 'Layer-left',
44
+ /*#__PURE__*/ h(Layer, {
45
+ mod: 'left'
46
+ }, 'from the left')
47
+ ],
48
+ [
49
+ 'Layer-right',
50
+ /*#__PURE__*/ h(Layer, {
51
+ mod: 'right'
52
+ }, 'from the right')
53
+ ],
54
+ [
55
+ 'Layer-under, Cover, Shut',
56
+ /*#__PURE__*/ h('div', {
57
+ id: 'layer-example',
58
+ style: {
59
+ position: 'relative',
60
+ overflow: 'clip',
61
+ '--layer-width': '6rem'
62
+ }
63
+ }, /*#__PURE__*/ h(Layer, {
64
+ id: 'layer-example-menu',
65
+ mod: [
66
+ 'left',
67
+ 'under'
68
+ ],
69
+ style: {
70
+ position: 'absolute',
71
+ inset: '0 auto 0 0'
72
+ }
73
+ }, 'Menu'), /*#__PURE__*/ h(Layer.Cover, {
74
+ style: {
75
+ position: 'relative',
76
+ background: 'var(--bg)'
77
+ }
78
+ }, /*#__PURE__*/ h('a', {
79
+ href: '#layer-example-menu'
80
+ }, 'Open menu'), /*#__PURE__*/ h(Layer.Shut, {
81
+ href: '#layer-example',
82
+ 'aria-label': 'Close menu'
83
+ })))
84
+ ]
85
+ ];
86
+ //# sourceMappingURL=Layer.js.map
package/Layer.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Layer.js","sources":["./Layer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;CAqBC,GAED,uCAAuC,GAAG,SAAS,iBAAiB,CAAC,gBAA0B;AAC/F,SAAS,KAAK,kBAA4B;AAG1C,yDAAyD,GACzD,OAAO,IAAI,QAA+C,MACxD,OACA,SACA;EAAE,OAAO;EAAO,MAAM;AAAI,GAC3B;AAMD;;yCAEyC,GACzC,OAAO,IAAI,QAAQ,CAAC,KAAoB,GAAG,OAC3C,CAAC,EACC,EAAE,EACF,GAAG,OACJ,iBAAK,EAAE,OAAO;MAAE,GAAG,KAAK;MAAE,IAAI,MAAM;MAAK,KAAK;IAAK,GAAE;AAEtD,2BAA2B,GAC3B,OAAO,IAAI,cACT,uEAAsE;AAExE,mEAAmE,GACnE,OAAO,IAAI,QAAQ,CAAC,KAAsB,CAAC,CAAC,CAAC,EAAC;AAE9C,uEAAuE,GACvE,OAAO,IAAI,YAAY,IAAkB;IACvC;MAAC;oBAAS,EAAE,OAAO,CAAC,GAAG;KAAoB;IAC3C;MAAC;oBAAc,EAAE,OAAO;QAAE,KAAK;MAAO,GAAG;KAAiB;IAC1D;MAAC;oBAAe,EAAE,OAAO;QAAE,KAAK;MAAQ,GAAG;KAAkB;IAC7D;MACE;oBACA,EACE,OACA;QACE,IAAI;QACJ,OAAO;UACL,UAAU;UACV,UAAU;UACV,iBAAiB;QACnB;MACF,iBACA,EAAE,OAAO;QACP,IAAI;QACJ,KAAK;UAAC;UAAQ;SAAQ;QACtB,OAAO;UAAE,UAAU;UAAY,OAAO;QAAa;MACrD,GAAG,uBACH,EACE,MAAM,KAAK,EACX;QAAE,OAAO;UAAE,UAAU;UAAY,YAAY;QAAY;MAAE,iBAC3D,EAAE,KAAK;QAAE,MAAM;MAAsB,GAAG,4BACxC,EAAE,MAAM,IAAI,EAAE;QAAE,MAAM;QAAkB,cAAc;MAAa;KAGxE;GACF,CAAA"}
package/Layer.ts ADDED
@@ -0,0 +1,85 @@
1
+ /**
2
+ * What a page opens over itself at a phone's width: a side menu, a panel that
3
+ * takes the screen, a sheet. It slides in from its edge as it opens and back
4
+ * out as it closes; `Layer-left` and `Layer-right` come from those sides, a
5
+ * plain one up from the foot. The page decides where it lies and when it is
6
+ * open: the address's target (`:target`, or a target inside it), a dialog's
7
+ * `open` or a popover's. Wider than a phone it stands as the page puts it.
8
+ * A side layer's edge toward the page casts a soft shadow; nothing dims the
9
+ * page behind it.
10
+ *
11
+ * `Layer-under` turns a left layer's motion around: it stands still under the
12
+ * page, and the page, a `Layer.Cover` after it, slides right by
13
+ * `--layer-width` to uncover it and back over it to close it. The page lays
14
+ * the layer that wide under itself; a `Layer.Shut` in the cover, a link to
15
+ * close it, takes a press on what still shows of the page.
16
+ *
17
+ * Another part is drawn as one with `layer`: `h(SideNav.Edge, { as: Left })`,
18
+ * where `let Left = layer('nav', 'left')`, renders
19
+ * `<nav class="Layer Layer-left SideNav_Edge">`.
20
+ *
21
+ * @module
22
+ */
23
+ import type { Sheet } from './sheet.ts'
24
+ /* @ts-types="npm:@types/react@19.3.0" */ import { createElement as h } from 'react'
25
+ import { block, type Part } from './el.js'
26
+ import type { Colors, Specimen } from './theme.ts'
27
+
28
+ /** A layer over the page, and what covers one under it. */
29
+ export let Layer: Part & Record<'Cover' | 'Shut', Part> = block(
30
+ 'div',
31
+ 'Layer',
32
+ { Cover: 'div', Shut: 'a' },
33
+ )
34
+
35
+ /** How a layer moves: from the left or right (else up from the foot), and
36
+ * whether it stands under the page. */
37
+ export type Way = 'left' | 'right' | 'under'
38
+
39
+ /** A part that is a layer, `ways` it moves, in `tag` (an element, or a part
40
+ * it is drawn as) unless it is given `as`. Make one where a module loads, so
41
+ * each render draws the same component. */
42
+ export let layer = (tag: string | Part, ...ways: Way[]): Part =>
43
+ ({
44
+ as,
45
+ ...props
46
+ }) => h(Layer, { ...props, as: as ?? tag, mod: ways })
47
+
48
+ /** What it is, in a line. */
49
+ export let description =
50
+ 'A side menu, panel or sheet over the page, sliding in from its edge.'
51
+
52
+ /** A terminal lays the page out whole: a layer stays in the flow. */
53
+ export let sheet = (_c: Colors): Sheet => ({})
54
+
55
+ /** One from each edge, and a menu revealed by sliding its page aside. */
56
+ export let specimens = (): Specimen[] => [
57
+ ['Layer', h(Layer, {}, 'up from the foot')],
58
+ ['Layer-left', h(Layer, { mod: 'left' }, 'from the left')],
59
+ ['Layer-right', h(Layer, { mod: 'right' }, 'from the right')],
60
+ [
61
+ 'Layer-under, Cover, Shut',
62
+ h(
63
+ 'div',
64
+ {
65
+ id: 'layer-example',
66
+ style: {
67
+ position: 'relative',
68
+ overflow: 'clip',
69
+ '--layer-width': '6rem',
70
+ },
71
+ },
72
+ h(Layer, {
73
+ id: 'layer-example-menu',
74
+ mod: ['left', 'under'],
75
+ style: { position: 'absolute', inset: '0 auto 0 0' },
76
+ }, 'Menu'),
77
+ h(
78
+ Layer.Cover,
79
+ { style: { position: 'relative', background: 'var(--bg)' } },
80
+ h('a', { href: '#layer-example-menu' }, 'Open menu'),
81
+ h(Layer.Shut, { href: '#layer-example', 'aria-label': 'Close menu' }),
82
+ ),
83
+ ),
84
+ ],
85
+ ]
package/Lightbox.css ADDED
@@ -0,0 +1,86 @@
1
+ /* A picture over the whole page, fit to the screen. The stage takes every
2
+ touch, so a pinch zooms the picture and never the page. */
3
+ .Lightbox {
4
+ display: none;
5
+ position: fixed;
6
+ inset: 0;
7
+ z-index: 110;
8
+ box-sizing: border-box;
9
+ width: 100%;
10
+ max-width: none;
11
+ height: 100dvh;
12
+ max-height: none;
13
+ margin: 0;
14
+ padding: 0;
15
+ border: 0;
16
+ overflow: hidden;
17
+ overscroll-behavior: contain;
18
+ background: color-mix(in srgb, var(--bg, Canvas) 92%, transparent);
19
+ color: var(--text, CanvasText);
20
+ }
21
+ .Lightbox[open] {
22
+ display: block;
23
+ }
24
+ .Lightbox::backdrop {
25
+ background: transparent;
26
+ }
27
+ .Lightbox_Stage {
28
+ position: absolute;
29
+ inset: 0;
30
+ display: grid;
31
+ grid-template: minmax(0, 1fr) / minmax(0, 1fr);
32
+ place-items: center;
33
+ box-sizing: border-box;
34
+ padding: 3.5rem 1rem;
35
+ overflow: hidden;
36
+ touch-action: none;
37
+ }
38
+ .Lightbox_Image {
39
+ display: block;
40
+ max-width: 100%;
41
+ max-height: 100%;
42
+ object-fit: contain;
43
+ border-radius: var(--radius);
44
+ box-shadow: 0 .5rem 2rem color-mix(in srgb, CanvasText 18%, transparent);
45
+ user-select: none;
46
+ -webkit-user-drag: none;
47
+ cursor: zoom-in;
48
+ will-change: transform;
49
+ }
50
+ .Lightbox_Image[data-zoomed] {
51
+ cursor: grab;
52
+ }
53
+ /* Inside the frame, so a skin's own placing of a button gives way. */
54
+ .Lightbox .Lightbox_Close,
55
+ .Lightbox .Lightbox_Prev,
56
+ .Lightbox .Lightbox_Next {
57
+ position: absolute;
58
+ }
59
+ .Lightbox_Close {
60
+ top: .75rem;
61
+ right: .75rem;
62
+ }
63
+ .Lightbox_Prev,
64
+ .Lightbox_Next {
65
+ top: 50%;
66
+ translate: 0 -50%;
67
+ }
68
+ .Lightbox_Prev {
69
+ left: .75rem;
70
+ }
71
+ .Lightbox_Next {
72
+ right: .75rem;
73
+ }
74
+ .Lightbox_Prev[hidden],
75
+ .Lightbox_Next[hidden],
76
+ .Lightbox_Count:empty {
77
+ display: none;
78
+ }
79
+ .Lightbox_Count {
80
+ position: absolute;
81
+ bottom: 1rem;
82
+ left: 50%;
83
+ translate: -50% 0;
84
+ color: var(--muted);
85
+ font-size: var(--small);
86
+ }
package/Lightbox.js ADDED
@@ -0,0 +1,69 @@
1
+ /**
2
+ * A picture over the whole page, fit to the screen: its `Stage` holds the
3
+ * `Image`, `Close` sits at the top right, `Prev` and `Next` at the sides step
4
+ * between the pictures it was opened among, and `Count` says which one of
5
+ * them it is. The frame is a `dialog`; what opens it, zooms the picture and
6
+ * steps between them is @yaks/ux's `lightboxes` (`@yaks/ux/lightbox-browser`).
7
+ *
8
+ * @module
9
+ */ /* @ts-types="npm:@types/react@19.3.0" */ import { createElement as h } from "react";
10
+ import { block } from "./el.js";
11
+ import { IconButton } from "./IconButton.js";
12
+ // @ts-types="./lucide.d.ts"
13
+ import X from "lucide/dist/esm/icons/x.mjs";
14
+ // @ts-types="./lucide.d.ts"
15
+ import left from "lucide/dist/esm/icons/chevron-left.mjs";
16
+ // @ts-types="./lucide.d.ts"
17
+ import right from "lucide/dist/esm/icons/chevron-right.mjs";
18
+ // Its buttons are icon buttons, given their icon and label where drawn.
19
+ let Glyph = IconButton;
20
+ /** A picture over the whole page. */ export let Lightbox = block('dialog', 'Lightbox', {
21
+ Stage: 'div',
22
+ Image: 'img',
23
+ Close: Glyph,
24
+ Prev: Glyph,
25
+ Next: Glyph,
26
+ Count: 'span'
27
+ });
28
+ /** The icons its buttons wear, for a caller drawing them. */ export let icons = {
29
+ close: X,
30
+ prev: left,
31
+ next: right
32
+ };
33
+ /** What it is, in a line. */ export let description = 'A picture over the whole page, fit to the screen, with a way to the next.';
34
+ /** A terminal shows no pictures: the frame keeps only its count. */ export let sheet = (c)=>({
35
+ Lightbox_Image: {
36
+ hidden: true
37
+ },
38
+ Lightbox_Count: {
39
+ fg: c.muted
40
+ }
41
+ });
42
+ // A page drawn here, so the guide loads nothing.
43
+ let PAGE = 'data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22640%22 height=%22400%22%3E%3Crect width=%22640%22 height=%22400%22 fill=%22%23f4efe6%22/%3E%3Crect x=%2232%22 y=%2232%22 width=%22576%22 height=%2248%22 rx=%228%22 fill=%22%23d9cbb4%22/%3E%3Crect x=%2232%22 y=%22112%22 width=%22360%22 height=%2216%22 rx=%224%22 fill=%22%23b8a78c%22/%3E%3Crect x=%2232%22 y=%22144%22 width=%22420%22 height=%2216%22 rx=%224%22 fill=%22%23b8a78c%22/%3E%3Crect x=%2232%22 y=%22176%22 width=%22300%22 height=%2216%22 rx=%224%22 fill=%22%23b8a78c%22/%3E%3C/svg%3E';
44
+ /** One picture of three, open in place. */ export let specimens = ()=>[
45
+ [
46
+ 'Lightbox, Stage, Image, Close, Prev, Next, Count',
47
+ /*#__PURE__*/ h(Lightbox, {
48
+ open: true,
49
+ 'aria-label': 'Page snapshot.jpg',
50
+ style: {
51
+ position: 'relative',
52
+ height: '22rem'
53
+ }
54
+ }, /*#__PURE__*/ h(Lightbox.Stage, null, /*#__PURE__*/ h(Lightbox.Image, {
55
+ src: PAGE,
56
+ alt: 'Page snapshot.jpg'
57
+ })), /*#__PURE__*/ h(Lightbox.Close, {
58
+ of: X,
59
+ label: 'Close'
60
+ }), /*#__PURE__*/ h(Lightbox.Prev, {
61
+ of: left,
62
+ label: 'Previous picture'
63
+ }), /*#__PURE__*/ h(Lightbox.Next, {
64
+ of: right,
65
+ label: 'Next picture'
66
+ }), /*#__PURE__*/ h(Lightbox.Count, null, '2 of 3'))
67
+ ]
68
+ ];
69
+ //# sourceMappingURL=Lightbox.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Lightbox.js","sources":["./Lightbox.ts"],"names":[],"mappings":"AAAA;;;;;;;;CAQC,GAED,uCAAuC,GAAG,SAAS,iBAAiB,CAAC,gBAA0B;AAC/F,SAAS,KAAK,kBAA4B;AAC1C,SAAS,UAAU,0BAAyB;AAE5C,4BAA4B;AAC5B,OAAO,qCAA+C;AACtD,4BAA4B;AAC5B,OAAO,mDAA6D;AACpE,4BAA4B;AAC5B,OAAO,qDAA+D;AAEtE,wEAAwE;AACxE,IAAI,QAAQ;AAEZ,mCAAmC,GACnC,OAAO,IAAI,WAKL,MAAM,UAAU,YAAY;EAC9B,OAAO;EACP,OAAO;EACP,OAAO;EACP,MAAM;EACN,MAAM;EACN,OAAO;AACT,GAAE;AAEJ,2DAA2D,GAC3D,OAAO,IAAI,QAAQ;EAAE,OAAO;EAAG,MAAM;EAAM,MAAM;AAAM,EAAC;AAExD,2BAA2B,GAC3B,OAAO,IAAI,cACT,4EAA2E;AAE7E,kEAAkE,GAClE,OAAO,IAAI,QAAQ,CAAC,IAAqB,CAAC;IACxC,gBAAgB;MAAE,QAAQ;IAAK;IAC/B,gBAAgB;MAAE,IAAI,EAAE,KAAK;IAAC;EAChC,CAAC,EAAC;AAEF,iDAAiD;AACjD,IAAI,OACF;AAEF,yCAAyC,GACzC,OAAO,IAAI,YAAY,IAAkB;IACvC;MACE;oBACA,EACE,UACA;QACE,MAAM;QACN,cAAc;QACd,OAAO;UAAE,UAAU;UAAY,QAAQ;QAAQ;MACjD,iBACA,EACE,SAAS,KAAK,EACd,oBACA,EAAE,SAAS,KAAK,EAAE;QAAE,KAAK;QAAM,KAAK;MAAoB,mBAE1D,EAAE,SAAS,KAAK,EAAE;QAAE,IAAI;QAAG,OAAO;MAAQ,kBAC1C,EAAE,SAAS,IAAI,EAAE;QAAE,IAAI;QAAM,OAAO;MAAmB,kBACvD,EAAE,SAAS,IAAI,EAAE;QAAE,IAAI;QAAO,OAAO;MAAe,kBACpD,EAAE,SAAS,KAAK,EAAE,MAAM;KAE3B;GACF,CAAA"}