@heycys/gallery 0.1.2 → 0.2.1

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 (338) hide show
  1. package/THIRD-PARTY-NOTICES.md +2 -2
  2. package/browser/editor/components/align.mjs +58 -0
  3. package/browser/editor/components/code/index.mjs +1 -1
  4. package/browser/editor/components/embed/page.mjs +1 -1
  5. package/browser/editor/components/file/page.mjs +4 -4
  6. package/browser/editor/components/heading/index.mjs +7 -6
  7. package/browser/editor/components/icon/page.mjs +6 -4
  8. package/browser/editor/components/icons.mjs +5 -2
  9. package/browser/editor/components/image/index.mjs +2 -0
  10. package/browser/editor/components/image/page.mjs +172 -90
  11. package/browser/editor/components/installed/index.mjs +6 -2
  12. package/browser/editor/components/installed/page.mjs +80 -13
  13. package/browser/editor/components/media/icons.mjs +13 -8
  14. package/browser/editor/components/media/page.mjs +5 -3
  15. package/browser/editor/components/media/toolbar.mjs +12 -3
  16. package/browser/editor/components/paragraph/index.mjs +4 -3
  17. package/browser/editor/components/registry.mjs +17 -5
  18. package/browser/editor/components/table/index.mjs +4 -2
  19. package/browser/editor/page/after/index.mjs +288 -0
  20. package/browser/editor/page/align.mjs +91 -0
  21. package/browser/editor/page/beside.mjs +5 -6
  22. package/browser/editor/page/block-menu/index.mjs +6 -3
  23. package/browser/editor/page/blocks.mjs +3 -1
  24. package/browser/editor/page/board/hint.mjs +64 -27
  25. package/browser/editor/page/board/index.mjs +160 -71
  26. package/browser/editor/page/board/motion.mjs +177 -0
  27. package/browser/editor/page/board/settings.mjs +4 -3
  28. package/browser/editor/page/clipboard/import/read.mjs +20 -2
  29. package/browser/editor/page/clipboard/index.mjs +10 -3
  30. package/browser/editor/page/clipboard/own/blocks.mjs +3 -4
  31. package/browser/editor/page/clipboard/own/describe.mjs +6 -2
  32. package/browser/editor/page/commit.mjs +2 -2
  33. package/browser/editor/page/core.mjs +3 -1
  34. package/browser/editor/page/custom-page.mjs +15 -11
  35. package/browser/editor/page/editor.mjs +31 -14
  36. package/browser/editor/page/history.mjs +19 -4
  37. package/browser/editor/page/insert/index.mjs +20 -22
  38. package/browser/editor/page/menu.mjs +15 -7
  39. package/browser/editor/page/page-objects.mjs +3 -7
  40. package/browser/editor/page/present-links.mjs +5 -4
  41. package/browser/editor/page/present-shell.mjs +63 -0
  42. package/browser/editor/page/selection/index.mjs +10 -2
  43. package/browser/editor/page/table/binding.mjs +87 -0
  44. package/browser/editor/page/table/icons.mjs +0 -2
  45. package/browser/editor/page/table/index.mjs +10 -14
  46. package/browser/editor/page/table/views.mjs +5 -52
  47. package/browser/editor/page/table/widths.mjs +82 -10
  48. package/browser/editor/page/typing/index.mjs +44 -12
  49. package/browser/editor/page/typing/leave.mjs +19 -5
  50. package/browser/shared/block-packs.mjs +23 -8
  51. package/browser/shared/component-catalog.mjs +15 -8
  52. package/browser/shared/component-source.mjs +3 -1
  53. package/browser/shared/components/heading.mjs +2 -1
  54. package/browser/shared/components/installed.mjs +1 -1
  55. package/browser/shared/components/page.mjs +2 -0
  56. package/browser/shared/components/paragraph.mjs +8 -1
  57. package/browser/shared/components/table.mjs +1 -0
  58. package/browser/shared/document-copy.mjs +43 -0
  59. package/browser/shared/drafts.mjs +10 -3
  60. package/browser/shared/emoji/icon-value.mjs +2 -2
  61. package/browser/shared/emoji/line-icons.mjs +37 -0
  62. package/browser/shared/extensions.mjs +83 -7
  63. package/browser/shared/http.mjs +9 -0
  64. package/browser/shared/i18n/en.mjs +50 -17
  65. package/browser/shared/outline-shape.mjs +6 -0
  66. package/browser/shared/outline.mjs +165 -12
  67. package/browser/shared/pack-manifest.mjs +12 -1
  68. package/browser/shared/pages.mjs +169 -57
  69. package/browser/shared/pinyin.mjs +92 -0
  70. package/browser/shared/present-step.mjs +17 -0
  71. package/browser/shared/sidebar-head.mjs +70 -0
  72. package/browser/shared/web-links.mjs +5 -0
  73. package/browser/shared/workspace-columns.mjs +11 -7
  74. package/dist/{chunk-N7AZZLGT.mjs → chunk-2GKGEVMR.mjs} +29 -24
  75. package/dist/chunk-2OHANJ6Q.mjs +2 -0
  76. package/dist/{chunk-HYMEEXKN.mjs → chunk-2RKIHJI2.mjs} +1 -1
  77. package/dist/{chunk-742D2WWJ.mjs → chunk-36FIRJIF.mjs} +2 -2
  78. package/dist/{chunk-BPL64HGA.mjs → chunk-3A5I2GJK.mjs} +1 -1
  79. package/dist/{chunk-RFDZXFJF.mjs → chunk-3OFXMN6N.mjs} +1 -1
  80. package/dist/chunk-46ACXOU5.mjs +2 -0
  81. package/dist/{chunk-PUOQ65NC.mjs → chunk-4AMTKWDO.mjs} +1 -1
  82. package/dist/{chunk-VTKNEYT3.mjs → chunk-4DNHHJSL.mjs} +1 -1
  83. package/dist/chunk-5DPABPBI.mjs +2 -0
  84. package/dist/chunk-5IIH335D.mjs +3 -0
  85. package/dist/chunk-5L26JUYA.mjs +2 -0
  86. package/dist/{chunk-3NJACR4W.mjs → chunk-5MEXZ2UF.mjs} +1 -1
  87. package/dist/{chunk-ZHEHPMBK.mjs → chunk-6MPKCH3P.mjs} +1 -1
  88. package/dist/{chunk-C564NU2H.mjs → chunk-74RPP2M2.mjs} +1 -1
  89. package/dist/chunk-7M2BQQGZ.mjs +2 -0
  90. package/dist/{chunk-VXACTLO3.mjs → chunk-7M7UPWU6.mjs} +1 -1
  91. package/dist/{chunk-ZB4H7ZN4.mjs → chunk-7N2LPG33.mjs} +1 -1
  92. package/dist/{chunk-UBBRTJ2R.mjs → chunk-7XDYK3UC.mjs} +1 -1
  93. package/dist/chunk-AEMVZYZQ.mjs +166 -0
  94. package/dist/{chunk-POQSE4C2.mjs → chunk-AFGUR7SY.mjs} +1 -1
  95. package/dist/{chunk-QKXMPUXC.mjs → chunk-AMDGVDNV.mjs} +1 -1
  96. package/dist/{chunk-KTKHRC6H.mjs → chunk-ASAXY2DJ.mjs} +1 -1
  97. package/dist/{chunk-NVRNLK25.mjs → chunk-BYSF5UMM.mjs} +2 -2
  98. package/dist/{chunk-U3SSPL4K.mjs → chunk-CCSGFCLZ.mjs} +1 -1
  99. package/dist/{chunk-NWFBE2YA.mjs → chunk-CG3UHDKH.mjs} +1 -1
  100. package/dist/chunk-CPS4SRPF.mjs +5 -0
  101. package/dist/{chunk-B4P2CM2J.mjs → chunk-CZ5KJSGK.mjs} +1 -1
  102. package/dist/chunk-DAMVDXR3.mjs +2 -0
  103. package/dist/{chunk-NG375ILQ.mjs → chunk-DH6GMDNN.mjs} +1 -1
  104. package/dist/chunk-DHB7UZ7F.mjs +3 -0
  105. package/dist/{chunk-MHW7ZKOU.mjs → chunk-DKR7LFIY.mjs} +1 -1
  106. package/dist/chunk-DLFZJJEE.mjs +2 -0
  107. package/dist/{chunk-6EZ7FNIK.mjs → chunk-F4ZA6JRZ.mjs} +1 -1
  108. package/dist/{chunk-6VTU6KEO.mjs → chunk-FCK6NXON.mjs} +1 -1
  109. package/dist/{chunk-ZWPMCK7P.mjs → chunk-FX42XU6J.mjs} +1 -1
  110. package/dist/chunk-FXQBADMN.mjs +5 -0
  111. package/dist/{chunk-W3BGBJQW.mjs → chunk-G4YP7GVC.mjs} +1 -1
  112. package/dist/{chunk-V6XZ4VIR.mjs → chunk-GWOYMENX.mjs} +1 -1
  113. package/dist/chunk-HATA2W7X.mjs +2 -0
  114. package/dist/{chunk-YI43RG4P.mjs → chunk-HBAUKKQH.mjs} +1 -1
  115. package/dist/{chunk-MAFIGVXY.mjs → chunk-HM4E43VM.mjs} +1 -1
  116. package/dist/{chunk-CRJEG7MT.mjs → chunk-JI6T3A4Y.mjs} +1 -1
  117. package/dist/{chunk-NFMCP2HI.mjs → chunk-JJNRIFND.mjs} +2 -2
  118. package/dist/chunk-JL6R4FG4.mjs +4 -0
  119. package/dist/{chunk-UMHUSOPJ.mjs → chunk-JXLSHVJ2.mjs} +1 -1
  120. package/dist/{chunk-FJYN7RTH.mjs → chunk-KFZBYDIS.mjs} +1 -1
  121. package/dist/{chunk-ZTHICSSF.mjs → chunk-KH24LWAT.mjs} +1 -1
  122. package/dist/{chunk-RKPWLGZ3.mjs → chunk-KUILYI7H.mjs} +1 -1
  123. package/dist/{chunk-RMECZA2K.mjs → chunk-L7W624FD.mjs} +1 -1
  124. package/dist/chunk-LE44MD3O.mjs +4 -0
  125. package/dist/{chunk-4K5KC6V2.mjs → chunk-LV24RY2E.mjs} +1 -1
  126. package/dist/{chunk-43B75J5T.mjs → chunk-MKTX5PGV.mjs} +1 -1
  127. package/dist/{chunk-LKX55H76.mjs → chunk-NAGMRVW4.mjs} +1 -1
  128. package/dist/{chunk-D4CKRD3V.mjs → chunk-NFABH3QW.mjs} +2 -2
  129. package/dist/{chunk-PVER7LSC.mjs → chunk-NIW7F7LU.mjs} +2 -2
  130. package/dist/{chunk-PAREWQGB.mjs → chunk-NWRZXELO.mjs} +1 -1
  131. package/dist/{chunk-OJKMINIU.mjs → chunk-OU3S466R.mjs} +15 -15
  132. package/dist/{chunk-5ZJA7CXT.mjs → chunk-PAFSFVYB.mjs} +1 -1
  133. package/dist/chunk-QCEATQC4.mjs +2 -0
  134. package/dist/{chunk-Y34NR5JL.mjs → chunk-QJ3TFJLQ.mjs} +1 -1
  135. package/dist/{chunk-IA4PSIMD.mjs → chunk-QK3VISCA.mjs} +1 -1
  136. package/dist/{chunk-ZUNVAXLH.mjs → chunk-QXVNUASA.mjs} +1 -1
  137. package/dist/{chunk-GRAXKKG4.mjs → chunk-QZ35UAB4.mjs} +1 -1
  138. package/dist/{chunk-UGWYKHBL.mjs → chunk-S2Y7VI4H.mjs} +2 -2
  139. package/dist/{chunk-OW5NWPOJ.mjs → chunk-SAHS56QM.mjs} +1 -1
  140. package/dist/{chunk-QOUEFUCH.mjs → chunk-SOD23RGL.mjs} +1 -1
  141. package/dist/chunk-TDWJKOLN.mjs +2 -0
  142. package/dist/{chunk-V6RIYQZZ.mjs → chunk-TOE6DPLH.mjs} +1 -1
  143. package/dist/chunk-UGO5N3EI.mjs +15 -0
  144. package/dist/{chunk-Q47PLKIJ.mjs → chunk-UGWMMEJ5.mjs} +1 -1
  145. package/dist/{chunk-NWR2LT5B.mjs → chunk-V5JRSGZF.mjs} +1 -1
  146. package/dist/{chunk-BZ5RAF7L.mjs → chunk-VA3KAQZD.mjs} +1 -1
  147. package/dist/chunk-VG5JEIUQ.mjs +12 -0
  148. package/dist/{chunk-UNOYVIYR.mjs → chunk-VGTMLQWZ.mjs} +1 -1
  149. package/dist/chunk-VKSRM7EY.mjs +22 -0
  150. package/dist/{chunk-YQGT4AB2.mjs → chunk-VNUWREXU.mjs} +1 -1
  151. package/dist/{chunk-AGDILNWB.mjs → chunk-VPVOAJ7X.mjs} +1 -1
  152. package/dist/{chunk-HLYV7RIH.mjs → chunk-WCWYNFDF.mjs} +1 -1
  153. package/dist/chunk-WTEGUPFG.mjs +16 -0
  154. package/dist/{chunk-N76HWBA3.mjs → chunk-XKOHV4H6.mjs} +1 -1
  155. package/dist/{chunk-HMYTM3GT.mjs → chunk-XMKHCUI6.mjs} +1 -1
  156. package/dist/{chunk-OUUP3WKT.mjs → chunk-XQRUG4G3.mjs} +1 -1
  157. package/dist/{chunk-32ZUEFZ7.mjs → chunk-YBB5LWZK.mjs} +1 -1
  158. package/dist/{chunk-SX4LJYT6.mjs → chunk-YFJU3O7G.mjs} +1 -1
  159. package/dist/chunk-YPPJVDQI.mjs +2 -0
  160. package/dist/chunk-ZANMKAWS.mjs +2 -0
  161. package/dist/{chunk-6QBHU4DF.mjs → chunk-ZCP7BTOZ.mjs} +1 -1
  162. package/dist/{chunk-ERLAIBOA.mjs → chunk-ZEY2RLBT.mjs} +2 -2
  163. package/dist/{chunk-SQ6Y2ZMA.mjs → chunk-ZO7SFB2E.mjs} +2 -2
  164. package/dist/cli.mjs +1 -1
  165. package/dist/server.mjs +1 -1
  166. package/dist/worker.mjs +1 -1
  167. package/kit/board.css +5 -5
  168. package/kit/code.js +15 -15
  169. package/kit/math.js +1 -1
  170. package/kit/report.css +123 -44
  171. package/kit/runtime.js +45 -7
  172. package/kit/tables.js +2 -0
  173. package/kit/ui.js +2 -0
  174. package/package.json +1 -1
  175. package/packs/gallery/chart-view/kit.js +3 -3
  176. package/packs/gallery/chart-view/writing.md +1 -1
  177. package/packs/gallery/countdown/component.json +1 -1
  178. package/packs/gallery/countdown/kit.js +89 -29
  179. package/packs/gallery/countdown/preview.svg +1 -1
  180. package/packs/gallery/countdown/style.css +88 -100
  181. package/packs/gallery/countdown/writing.md +2 -2
  182. package/packs/gallery/habit/component.json +3 -3
  183. package/packs/gallery/habit/kit.js +114 -75
  184. package/packs/gallery/habit/preview.svg +1 -1
  185. package/packs/gallery/habit/style.css +133 -205
  186. package/packs/gallery/habit/writing.md +2 -2
  187. package/packs/gallery/heatmap/component.json +2 -2
  188. package/packs/gallery/heatmap/kit.js +335 -173
  189. package/packs/gallery/heatmap/preview.svg +1 -1
  190. package/packs/gallery/heatmap/style.css +158 -170
  191. package/packs/gallery/heatmap/writing.md +2 -2
  192. package/packs/gallery/kanban/kit.js +3 -3
  193. package/packs/gallery/kanban/writing.md +1 -1
  194. package/packs/gallery/metric/kit.js +3 -3
  195. package/packs/gallery/metric/writing.md +1 -1
  196. package/packs/gallery/note/component.json +3 -3
  197. package/packs/gallery/note/kit.js +40 -13
  198. package/packs/gallery/note/preview.svg +1 -1
  199. package/packs/gallery/note/style.css +51 -30
  200. package/packs/gallery/note/writing.md +2 -2
  201. package/packs/gallery/recent/component.json +2 -2
  202. package/packs/gallery/recent/kit.js +141 -86
  203. package/packs/gallery/recent/preview.svg +1 -1
  204. package/packs/gallery/recent/style.css +53 -126
  205. package/packs/gallery/recent/writing.md +2 -2
  206. package/packs/gallery/static/component.json +2 -2
  207. package/packs/gallery/static/preview.svg +1 -1
  208. package/packs/gallery/static/style.css +99 -66
  209. package/packs/gallery/static/writing.md +2 -2
  210. package/packs/gallery/stats/component.json +3 -3
  211. package/packs/gallery/stats/kit.js +253 -72
  212. package/packs/gallery/stats/preview.svg +1 -1
  213. package/packs/gallery/stats/style.css +64 -142
  214. package/packs/gallery/stats/writing.md +2 -2
  215. package/packs/gallery/today/component.json +2 -2
  216. package/packs/gallery/today/kit.js +62 -27
  217. package/packs/gallery/today/preview.svg +1 -1
  218. package/packs/gallery/today/style.css +101 -72
  219. package/packs/gallery/today/writing.md +2 -2
  220. package/packs/gallery/todos/component.json +1 -1
  221. package/packs/gallery/todos/kit.js +218 -71
  222. package/packs/gallery/todos/preview.svg +1 -1
  223. package/packs/gallery/todos/style.css +170 -223
  224. package/packs/gallery/todos/writing.md +1 -1
  225. package/packs/gallery/weather/component.json +2 -2
  226. package/packs/gallery/weather/kit.js +165 -90
  227. package/packs/gallery/weather/preview.svg +1 -1
  228. package/packs/gallery/weather/style.css +100 -218
  229. package/packs/gallery/weather/writing.md +1 -1
  230. package/packs/gallery-soft/countdown/component.json +18 -0
  231. package/packs/gallery-soft/countdown/example.html +3 -0
  232. package/packs/gallery-soft/countdown/kit.js +206 -0
  233. package/packs/gallery-soft/countdown/preview.svg +1 -0
  234. package/packs/gallery-soft/countdown/style.css +211 -0
  235. package/packs/gallery-soft/countdown/template.html +3 -0
  236. package/packs/gallery-soft/countdown/writing.md +24 -0
  237. package/packs/gallery-soft/habit/component.json +14 -0
  238. package/packs/gallery-soft/habit/example.html +3 -0
  239. package/packs/gallery-soft/habit/kit.js +366 -0
  240. package/packs/gallery-soft/habit/preview.svg +1 -0
  241. package/packs/gallery-soft/habit/style.css +251 -0
  242. package/packs/gallery-soft/habit/template.html +3 -0
  243. package/packs/gallery-soft/habit/writing.md +23 -0
  244. package/packs/gallery-soft/heatmap/component.json +18 -0
  245. package/packs/gallery-soft/heatmap/example.html +3 -0
  246. package/packs/gallery-soft/heatmap/kit.js +498 -0
  247. package/packs/gallery-soft/heatmap/preview.svg +1 -0
  248. package/packs/gallery-soft/heatmap/style.css +181 -0
  249. package/packs/gallery-soft/heatmap/template.html +3 -0
  250. package/packs/gallery-soft/heatmap/writing.md +23 -0
  251. package/packs/gallery-soft/note/component.json +14 -0
  252. package/packs/gallery-soft/note/example.html +3 -0
  253. package/packs/gallery-soft/note/kit.js +162 -0
  254. package/packs/gallery-soft/note/preview.svg +1 -0
  255. package/packs/gallery-soft/note/style.css +148 -0
  256. package/packs/gallery-soft/note/template.html +3 -0
  257. package/packs/gallery-soft/note/writing.md +20 -0
  258. package/packs/gallery-soft/recent/component.json +13 -0
  259. package/packs/gallery-soft/recent/example.html +1 -0
  260. package/packs/gallery-soft/recent/kit.js +335 -0
  261. package/packs/gallery-soft/recent/preview.svg +1 -0
  262. package/packs/gallery-soft/recent/style.css +160 -0
  263. package/packs/gallery-soft/recent/template.html +1 -0
  264. package/packs/gallery-soft/recent/writing.md +17 -0
  265. package/packs/gallery-soft/static/component.json +13 -0
  266. package/packs/gallery-soft/static/example.html +12 -0
  267. package/packs/gallery-soft/static/preview.svg +1 -0
  268. package/packs/gallery-soft/static/style.css +186 -0
  269. package/packs/gallery-soft/static/template.html +1 -0
  270. package/packs/gallery-soft/static/writing.md +20 -0
  271. package/packs/gallery-soft/stats/component.json +13 -0
  272. package/packs/gallery-soft/stats/example.html +1 -0
  273. package/packs/gallery-soft/stats/kit.js +341 -0
  274. package/packs/gallery-soft/stats/preview.svg +1 -0
  275. package/packs/gallery-soft/stats/style.css +119 -0
  276. package/packs/gallery-soft/stats/template.html +1 -0
  277. package/packs/gallery-soft/stats/writing.md +13 -0
  278. package/packs/gallery-soft/today/component.json +12 -0
  279. package/packs/gallery-soft/today/example.html +1 -0
  280. package/packs/gallery-soft/today/kit.js +222 -0
  281. package/packs/gallery-soft/today/preview.svg +1 -0
  282. package/packs/gallery-soft/today/style.css +178 -0
  283. package/packs/gallery-soft/today/template.html +1 -0
  284. package/packs/gallery-soft/today/writing.md +16 -0
  285. package/packs/gallery-soft/todos/component.json +19 -0
  286. package/packs/gallery-soft/todos/example.html +3 -0
  287. package/packs/gallery-soft/todos/kit.js +527 -0
  288. package/packs/gallery-soft/todos/preview.svg +1 -0
  289. package/packs/gallery-soft/todos/style.css +212 -0
  290. package/packs/gallery-soft/todos/template.html +3 -0
  291. package/packs/gallery-soft/todos/writing.md +32 -0
  292. package/packs/gallery-soft/weather/component.json +19 -0
  293. package/packs/gallery-soft/weather/example.html +3 -0
  294. package/packs/gallery-soft/weather/kit.js +411 -0
  295. package/packs/gallery-soft/weather/preview.svg +1 -0
  296. package/packs/gallery-soft/weather/style.css +185 -0
  297. package/packs/gallery-soft/weather/template.html +3 -0
  298. package/packs/gallery-soft/weather/writing.md +28 -0
  299. package/release.json +10 -10
  300. package/skill/SKILL.md +15 -14
  301. package/skill/references/building-blocks.md +4 -4
  302. package/skill/references/extensions.md +11 -7
  303. package/skill/references/pages-and-data.md +13 -9
  304. package/skill/references/writing-html.md +2 -0
  305. package/web/assets/index-BHC5ZOMh.js +15 -0
  306. package/web/assets/index-xP0uw3a0.css +1 -0
  307. package/web/index.html +2 -2
  308. package/dist/chunk-2NRBY6AJ.mjs +0 -2
  309. package/dist/chunk-35NQ4PLQ.mjs +0 -2
  310. package/dist/chunk-3KJHLHUO.mjs +0 -2
  311. package/dist/chunk-4AV456RQ.mjs +0 -2
  312. package/dist/chunk-5XYHDBJ5.mjs +0 -2
  313. package/dist/chunk-6A53MZYZ.mjs +0 -2
  314. package/dist/chunk-6EXH3ORZ.mjs +0 -166
  315. package/dist/chunk-BVEFGE4B.mjs +0 -2
  316. package/dist/chunk-D4EURAX4.mjs +0 -4
  317. package/dist/chunk-DQCE7TJY.mjs +0 -5
  318. package/dist/chunk-FWNRPMCJ.mjs +0 -12
  319. package/dist/chunk-FWW4CSAZ.mjs +0 -2
  320. package/dist/chunk-GY3FAUVM.mjs +0 -2
  321. package/dist/chunk-JVHHHGEA.mjs +0 -3
  322. package/dist/chunk-L7UP52JO.mjs +0 -2
  323. package/dist/chunk-NAMN3RAF.mjs +0 -2
  324. package/dist/chunk-PZDLJJTJ.mjs +0 -3
  325. package/dist/chunk-SXHBYZST.mjs +0 -16
  326. package/dist/chunk-TEZAWDSQ.mjs +0 -2
  327. package/dist/chunk-UFNYFFKO.mjs +0 -20
  328. package/dist/chunk-UKSHDZZ6.mjs +0 -2
  329. package/dist/chunk-VJPFVNNW.mjs +0 -15
  330. package/dist/chunk-VS3ZMVGX.mjs +0 -5
  331. package/web/assets/index-BK2e_07w.js +0 -13
  332. package/web/assets/index-CWFI83mF.css +0 -1
  333. /package/dist/{chunk-YEY3RSFQ.mjs → chunk-5MMN3N5J.mjs} +0 -0
  334. /package/dist/{chunk-UH4SIXTR.mjs → chunk-74UW7QSL.mjs} +0 -0
  335. /package/dist/{chunk-W7XHE4CT.mjs → chunk-EKGYYOSP.mjs} +0 -0
  336. /package/dist/{chunk-QAIHRH3I.mjs → chunk-KNZJT4ET.mjs} +0 -0
  337. /package/dist/{chunk-A55HN5OK.mjs → chunk-N3DSBH5S.mjs} +0 -0
  338. /package/dist/{chunk-QR6A54KJ.mjs → chunk-ZW2A6GBW.mjs} +0 -0
@@ -1 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 120"><rect width="240" height="120" rx="8" fill="#f3f3f1"/><rect x="16.5" y="12.5" width="207" height="95" rx="12" fill="#ffffff" stroke="#e7e6e3"/><rect x="30" y="26" width="72" height="8" rx="4" fill="#3b3a37"/><circle cx="33" cy="52" r="2" fill="#8f8d88"/><rect x="40" y="49.5" width="120" height="6" rx="3" fill="#7b7a76"/><circle cx="33" cy="66" r="2" fill="#8f8d88"/><rect x="40" y="63.5" width="96" height="6" rx="3" fill="#7b7a76"/><circle cx="33" cy="80" r="2" fill="#8f8d88"/><rect x="40" y="77.5" width="136" height="6" rx="3" fill="#7b7a76"/><rect x="30" y="92" width="46" height="5" rx="2.5" fill="#387dc9"/><rect x="82" y="92" width="40" height="5" rx="2.5" fill="#c4c2bd"/></svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 120"><rect width="240" height="120" rx="8" fill="#f3f3f1"/><rect x="60.5" y="6.5" width="119" height="107" rx="8" fill="#ffffff" stroke="#e6e6e3"/><rect x="70" y="14" width="10" height="10" rx="3" fill="#efefed"/><rect x="84" y="16.5" width="30" height="5" rx="2.5" fill="#37352f"/><circle cx="72" cy="36" r="1.5" fill="#a6a5a1"/><rect x="77" y="34" width="52" height="4.5" rx="2.25" fill="#37352f"/><circle cx="72" cy="46" r="1.5" fill="#a6a5a1"/><rect x="77" y="44" width="40" height="4.5" rx="2.25" fill="#37352f"/><circle cx="72" cy="56" r="1.5" fill="#a6a5a1"/><rect x="77" y="54" width="46" height="4.5" rx="2.25" fill="#37352f"/><rect x="70" y="66" width="14" height="3.5" rx="1.75" fill="#a6a5a1"/><rect x="70" y="76" width="6" height="6" rx="3" fill="#d4d3cf"/><rect x="80" y="77" width="48" height="4.5" rx="2.25" fill="#4084cf"/><rect x="70" y="87" width="6" height="6" rx="3" fill="#d4d3cf"/><rect x="80" y="88" width="54" height="4.5" rx="2.25" fill="#4084cf"/><rect x="148" y="88.5" width="22" height="3.5" rx="1.75" fill="#d4d3cf"/><rect x="70" y="98" width="6" height="6" rx="3" fill="#d4d3cf"/><rect x="80" y="99" width="40" height="4.5" rx="2.25" fill="#4084cf"/></svg>
@@ -1,26 +1,29 @@
1
1
  /* The static card has no script: what its content holds, any HTML, is what a reader sees. It gives that
2
- HTML a plain reading look (headings, paragraphs, lists, links, a table, a picture no wider than the
3
- card). Each of those rules is written in an @scope of the instance with :where(), so that it weighs
4
- nothing: the page's own <style> and an inline style always win over it. It sets no color of its own
5
- but the links' (the kit's link color): its words are the color they stand in, inherited (the page's
6
- text, which follows the theme, or a color the page gives the card or a wrapper of the content), and
7
- what is muted (small words, a quote, an empty card's words) or drawn as a line (a table's, a rule's, a
8
- quote's) is a share of that color (color-mix with currentColor, the shares of the kit's own muted text
9
- and lines), so that light words on a dark fill a page writes stay light in every heading and line.
10
- Its first line keeps its end clear of the card's grip, and only its first: a float as wide and as high as
11
- the grip's corner (--gallery-grip-room, the kit's card tokens) stands at the top right of the instance
12
- on a card, before its content, so that the words of the first line or two go round it and every line
13
- after has the card's whole width; its text wraps so that no line is left with a word or a character
14
- alone (text-wrap: pretty). A heading the content starts with, where more follows it, is drawn as the
15
- cards' head row (the kit's card tokens): the title's size and weight, a chip before it (the cards' tinted
16
- square, the accent's, with lines of text in it: the one color it gives besides the links'), the face's gap
17
- under it; a heading alone (a card that names a group of cards) stays a heading. Every selector stands in
18
- the instance: nothing here reaches the rest of the page. A card with nothing in its content (a new one,
19
- from a menu) says so, in the page's language, until an Agent writes it: the cards' empty face, a short
20
- line over a muted one saying what to do. */
2
+ HTML a light reading look (the pack's design B): 13px words on 20px lines; the heading it starts with,
3
+ where more follows it, the cards' head row (a small chip of lines before it, 13px and 600, 8px over what
4
+ follows); a list's items after a small dot; a small heading (h4 to h6) a faint 11.5px label over what it
5
+ names; a paragraph of strong words alone right after the heading it starts with at the card's foot, with
6
+ what follows it; a paragraph holding one link a row of 28px, a small picture before the link (a page for one of the
7
+ workspace's, a link's for the web) and its <small> (a domain, a date) at its end; a table compact, its
8
+ heads faint, its rows a hairline apart; a heading alone (a card that names a group of cards) 15px, its
9
+ <small> beside it; a link alone (a tile) 600 after an arrow; content of one line on a card one cell high
10
+ in the middle of it. Each of those rules is written in an @scope of the instance with :where(), so that
11
+ it weighs nothing: the page's own <style> and an inline style always win over it. It sets no color of
12
+ its own but the links' (the accent's ink): its words are the color they stand in, inherited (the page's
13
+ text, which follows the theme, or a color the page gives the card or a wrapper of the content), and what
14
+ is muted (small words, a label, a quote, a dot, an empty card's words) or drawn as a line is a share of
15
+ that color (color-mix with currentColor: 65% muted, 12% a line), so that light words on a dark fill a page
16
+ writes stay light in every heading and line. Its first line keeps its end clear of the card's grip, and
17
+ only its first: a float as wide and as high as the grip's corner (--gallery-grip-room) stands at the top
18
+ right of the instance on a card, before its content, so that the words of the first line or two go round
19
+ it; its text wraps so that no line is left with a word or a character alone (text-wrap: pretty). Every
20
+ selector stands in the instance: nothing here reaches the rest of the page. A card with nothing in its
21
+ content (a new one, from a menu) says so, in the page's language, until an Agent writes it: the cards'
22
+ empty face, a short line over a muted one saying what to do. */
21
23
  [data-doc-component="gallery/static"] > div {
22
- font-size: 14px;
23
- line-height: 1.6;
24
+ font-family: var(--gallery-font);
25
+ font-size: 13px;
26
+ line-height: 20px;
24
27
  overflow-wrap: break-word;
25
28
  text-wrap: pretty;
26
29
  }
@@ -32,31 +35,49 @@
32
35
  height: var(--gallery-grip-room, 0px);
33
36
  }
34
37
  @scope ([data-doc-component="gallery/static"]) {
35
- :where(h1, h2, h3, h4, h5, h6) {
36
- margin: 12px 0 6px;
37
- font-size: 15px;
38
- line-height: 1.4;
39
- font-weight: 600;
40
- }
41
- :where(h1, h2) { font-size: 18px; }
42
- :where(h3) { font-size: 16px; }
38
+ :where(h1, h2, h3) { margin: 12px 0 6px; font-size: 15px; line-height: 22px; font-weight: 600; }
39
+ :where(h4, h5, h6) { margin: 14px 0 4px; font-size: 11.5px; line-height: 16px; font-weight: 600; color: color-mix(in srgb, currentColor 65%, transparent); }
43
40
  :where(p, ul, ol, dl, blockquote, table, figure, pre) { margin: 0 0 8px; }
44
- :where(ul, ol) { padding-inline-start: 1.5em; }
45
- :where(li + li) { margin-top: 2px; }
46
- :where(a) { color: var(--doc-link); text-decoration: none; }
41
+ :where(ul) { display: flex; flex-direction: column; gap: 5px; padding: 0; list-style: none; }
42
+ :where(ul) > :where(li) { position: relative; padding-inline-start: 14px; }
43
+ :where(ul) > :where(li)::before { content: ""; position: absolute; top: 8px; inset-inline-start: 3px; width: 4px; height: 4px; border-radius: 50%; background: color-mix(in srgb, currentColor 45%, transparent); }
44
+ :where(ol) { padding-inline-start: 1.5em; }
45
+ :where(a) { color: var(--gallery-accent-ink); text-decoration: none; }
47
46
  :where(a:hover) { text-decoration: underline; }
48
47
  :where(img, svg, video) { max-width: 100%; }
49
48
  :where(img, video) { height: auto; }
50
- :where(table) { border-collapse: collapse; }
51
- :where(th, td) { padding: 4px 8px; border-bottom: 1px solid color-mix(in srgb, currentColor 12%, transparent); text-align: start; vertical-align: top; }
52
- :where(th) { font-weight: 600; }
49
+ :where(table) { width: 100%; border-collapse: collapse; font-size: 12.5px; }
50
+ :where(th, td) { padding: 5px 8px 5px 0; border-bottom: 1px solid color-mix(in srgb, currentColor 12%, transparent); line-height: 18px; text-align: start; vertical-align: top; white-space: nowrap; }
51
+ :where(th) { font-size: 11.5px; font-weight: 600; color: color-mix(in srgb, currentColor 65%, transparent); }
52
+ :where(tr:last-child) > :where(td) { border-bottom-style: none; }
53
53
  :where(hr) { margin: 12px 0; border: 0; border-top: 1px solid color-mix(in srgb, currentColor 12%, transparent); }
54
54
  :where(code) { padding: 0 4px; border-radius: 4px; background: color-mix(in srgb, currentColor 6%, transparent); font-family: var(--doc-mono); font-size: .9em; }
55
55
  /* A quote's line is a share of its own muted color: 18% of 65%, about the 12% of the other lines. */
56
56
  :where(blockquote) { padding-inline-start: 12px; border-inline-start: 3px solid color-mix(in srgb, currentColor 18%, transparent); color: color-mix(in srgb, currentColor 65%, transparent); }
57
- :where(small) { color: color-mix(in srgb, currentColor 65%, transparent); }
57
+ :where(small) { font-size: 11.5px; color: color-mix(in srgb, currentColor 65%, transparent); }
58
58
  :scope > div > :where(:first-child) { margin-top: 0; }
59
59
  :scope > div > :where(:last-child) { margin-bottom: 0; }
60
+ /* A paragraph of one link (and a small word after it): a row, a small picture before the link, the small word at its end. */
61
+ :where(p:has(> a:only-of-type)):where(:not(:has(> :not(a, small)))) { display: flex; align-items: center; gap: 8px; min-height: 28px; margin: 0 -6px; padding: 0 6px; border-radius: 6px; }
62
+ :where(p:has(> a:only-of-type)):where(:not(:has(> :not(a, small)))) > :where(a) { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
63
+ :where(p:has(> a:only-of-type)):where(:not(:has(> :not(a, small)))) > :where(a)::before {
64
+ content: "";
65
+ display: inline-block;
66
+ width: 14px;
67
+ height: 14px;
68
+ margin-inline-end: 8px;
69
+ vertical-align: -2px;
70
+ background: color-mix(in srgb, var(--gallery-text, currentColor) 45%, transparent);
71
+ -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 3.5h6.5L18 8v11a1.5 1.5 0 0 1-1.5 1.5h-9.5A1.5 1.5 0 0 1 5.5 19V5A1.5 1.5 0 0 1 7 3.5z'/%3E%3Cpath d='M13.5 3.5V8H18'/%3E%3C/svg%3E") center / contain no-repeat;
72
+ mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 3.5h6.5L18 8v11a1.5 1.5 0 0 1-1.5 1.5h-9.5A1.5 1.5 0 0 1 5.5 19V5A1.5 1.5 0 0 1 7 3.5z'/%3E%3Cpath d='M13.5 3.5V8H18'/%3E%3C/svg%3E") center / contain no-repeat;
73
+ }
74
+ :where(p:has(> a:only-of-type)):where(:not(:has(> :not(a, small)))) > :where(a[href^="http"])::before {
75
+ -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.5 13.5a3.5 3.5 0 0 0 5 0l3-3a3.5 3.5 0 0 0-5-5l-1 1M13.5 10.5a3.5 3.5 0 0 0-5 0l-3 3a3.5 3.5 0 0 0 5 5l1-1'/%3E%3C/svg%3E");
76
+ mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.5 13.5a3.5 3.5 0 0 0 5 0l3-3a3.5 3.5 0 0 0-5-5l-1 1M13.5 10.5a3.5 3.5 0 0 0-5 0l-3 3a3.5 3.5 0 0 0 5 5l1-1'/%3E%3C/svg%3E");
77
+ }
78
+ :where(p:has(> a:only-of-type)):where(:not(:has(> :not(a, small)))) > :where(small) { flex: none; }
79
+ /* A paragraph of strong words alone: a line larger, 15px. */
80
+ :where(p:has(> strong:only-child)):where(:not(:has(> :not(strong)))) { font-size: 15px; line-height: 22px; }
60
81
  /* The heading it starts with, where more follows: the cards' head row, a chip before it. */
61
82
  :scope > div > :where(h1, h2, h3, h4, h5, h6):where(:first-child:not(:last-child)) {
62
83
  position: relative;
@@ -64,10 +85,11 @@
64
85
  align-items: center;
65
86
  gap: 8px;
66
87
  min-height: var(--gallery-chip-size);
67
- margin: 0 0 var(--gallery-face-gap);
88
+ margin: 0 0 8px;
68
89
  font-size: var(--gallery-title-size);
69
90
  line-height: var(--gallery-title-line);
70
91
  font-weight: 600;
92
+ color: inherit;
71
93
  }
72
94
  :scope > div > :where(h1, h2, h3, h4, h5, h6):where(:first-child:not(:last-child))::before {
73
95
  content: "";
@@ -75,7 +97,7 @@
75
97
  width: var(--gallery-chip-size);
76
98
  height: var(--gallery-chip-size);
77
99
  border-radius: var(--gallery-chip-radius);
78
- background: var(--gallery-accent-soft);
100
+ background: color-mix(in srgb, currentColor 6%, transparent);
79
101
  }
80
102
  :scope > div > :where(h1, h2, h3, h4, h5, h6):where(:first-child:not(:last-child))::after {
81
103
  content: "";
@@ -85,50 +107,61 @@
85
107
  width: var(--gallery-chip-icon);
86
108
  height: var(--gallery-chip-icon);
87
109
  margin-top: calc(var(--gallery-chip-icon) / -2);
88
- background: var(--gallery-accent);
89
- -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 6.5h15M4.5 12h10M4.5 17.5h12.5'/%3E%3C/svg%3E") center / contain no-repeat;
90
- mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 6.5h15M4.5 12h10M4.5 17.5h12.5'/%3E%3C/svg%3E") center / contain no-repeat;
110
+ background: color-mix(in srgb, currentColor 60%, transparent);
111
+ -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 6.5h14M5 12h14M5 17.5h9'/%3E%3C/svg%3E") center / contain no-repeat;
112
+ mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 6.5h14M5 12h14M5 17.5h9'/%3E%3C/svg%3E") center / contain no-repeat;
113
+ }
114
+ /* A heading alone (a card naming a group of cards): 15px, its small words beside it. */
115
+ :scope > div > :where(h1, h2, h3, h4, h5, h6):where(:only-child) { display: flex; align-items: baseline; gap: 10px; margin: 0; font-size: 15px; line-height: 22px; font-weight: 600; color: inherit; }
116
+ :scope > div > :where(h1, h2, h3, h4, h5, h6):where(:only-child) > :where(small) { font-size: 12px; font-weight: 400; }
117
+ /* A link alone (a tile): 600, after an arrow, in the words' color. */
118
+ :scope > div > :where(p:only-child:has(> a:only-child)) > :where(a) { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: inherit; }
119
+ :scope > div > :where(p:only-child:has(> a:only-child)) > :where(a)::before {
120
+ content: "";
121
+ width: 15px;
122
+ height: 15px;
123
+ margin: 0;
124
+ background: color-mix(in srgb, currentColor 45%, transparent);
125
+ -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 16 16 8M9.5 8H16v6.5'/%3E%3C/svg%3E") center / contain no-repeat;
126
+ mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 16 16 8M9.5 8H16v6.5'/%3E%3C/svg%3E") center / contain no-repeat;
91
127
  }
92
128
  }
93
- /* Nothing in it: the cards' empty face, in the middle of the card, a share of its color as all else of
94
- it: a soft disc with sparkles in it (the instance's ::before, one mask, where the grip's float stands on
95
- a card with content, as nothing runs round it here), then a short line (还没有内容) over what to do, muted
96
- (the content's ::before and ::after), each line whole. */
129
+ /* A card whose heading is followed by a paragraph of strong words alone (还差 2 项, a number, a word to keep in
130
+ mind): the content as high as the card, a column, and that paragraph and what follows it at the card's foot,
131
+ as a small widget's figure (margin-top: auto). In a column no float goes round, so the grip's corner is
132
+ the heading's to keep clear (padding at its end), one line as it is. One rule for every size. */
133
+ .gallery-card > [data-doc-component="gallery/static"]:has(> div > :is(h1, h2, h3, h4, h5, h6):first-child + p > strong:only-child) { height: 100%; }
134
+ .gallery-card > [data-doc-component="gallery/static"]:has(> div > :is(h1, h2, h3, h4, h5, h6):first-child + p > strong:only-child)::before { display: none; }
135
+ .gallery-card > [data-doc-component="gallery/static"] > div:has(> :is(h1, h2, h3, h4, h5, h6):first-child + p > strong:only-child) { display: flex; flex-direction: column; box-sizing: border-box; min-height: 100%; }
136
+ .gallery-card > [data-doc-component="gallery/static"] > div:has(> :is(h1, h2, h3, h4, h5, h6):first-child + p > strong:only-child) > :is(h1, h2, h3, h4, h5, h6):first-child { padding-inline-end: var(--gallery-grip-room, 0px); }
137
+ .gallery-card > [data-doc-component="gallery/static"] > div > :is(h1, h2, h3, h4, h5, h6):first-child + p:has(> strong:only-child) { margin-top: auto; }
138
+ .gallery-card > [data-doc-component="gallery/static"] > div > :is(h1, h2, h3, h4, h5, h6):first-child + p:has(> strong:only-child) + p { margin-top: -2px; }
139
+ /* Content of one line on a card: in the middle of its height. */
140
+ .gallery-card > [data-doc-component="gallery/static"]:has(> div > :only-child:is(h1, h2, h3, h4, h5, h6, p)) { display: flex; flex-direction: column; justify-content: center; height: 100%; }
141
+ .gallery-card > [data-doc-component="gallery/static"]:has(> div > :only-child:is(h1, h2, h3, h4, h5, h6, p))::before { display: none; }
142
+ /* Nothing in it: the cards' empty face, a short line over what to do, muted (the content's ::before and
143
+ ::after), each line whole, at the left of the card's middle. */
97
144
  [data-doc-component="gallery/static"]:has(> div:empty) {
98
145
  display: flex;
99
146
  flex-direction: column;
100
- align-items: center;
101
147
  justify-content: center;
102
- gap: 10px;
103
148
  box-sizing: border-box;
104
149
  }
105
150
  .gallery-card > [data-doc-component="gallery/static"]:has(> div:empty) { height: 100%; }
151
+ .gallery-card > [data-doc-component="gallery/static"]:has(> div:empty)::before { display: none; }
106
152
  [data-doc-component="gallery/static"] > div:empty {
107
153
  display: flex;
108
154
  flex-direction: column;
109
- align-items: center;
110
- gap: 2px;
155
+ align-items: flex-start;
156
+ gap: 4px;
111
157
  box-sizing: border-box;
112
- padding: 0 12px;
113
- font-size: 13px;
114
- line-height: 1.45;
115
- text-align: center;
116
- }
117
- [data-doc-component="gallery/static"]:has(> div:empty)::before,
118
- .gallery-card > [data-doc-component="gallery/static"]:has(> div:empty)::before {
119
- content: "";
120
- float: none;
121
- flex: none;
122
- width: 44px;
123
- height: 44px;
124
- background: color-mix(in srgb, currentColor 55%, transparent);
125
- -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 44'%3E%3Ccircle cx='22' cy='22' r='22' fill-opacity='.14'/%3E%3Cg transform='translate(11 11) scale(.9167)' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 18a2 2 0 0 1 2 2a2 2 0 0 1 2-2a2 2 0 0 1-2-2a2 2 0 0 1-2 2zm0-12a2 2 0 0 1 2 2a2 2 0 0 1 2-2a2 2 0 0 1-2-2a2 2 0 0 1-2 2zm-7 12a6 6 0 0 1 6-6a6 6 0 0 1-6-6a6 6 0 0 1-6 6a6 6 0 0 1 6 6z'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
126
- mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 44'%3E%3Ccircle cx='22' cy='22' r='22' fill-opacity='.14'/%3E%3Cg transform='translate(11 11) scale(.9167)' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 18a2 2 0 0 1 2 2a2 2 0 0 1 2-2a2 2 0 0 1-2-2a2 2 0 0 1-2 2zm0-12a2 2 0 0 1 2 2a2 2 0 0 1 2-2a2 2 0 0 1-2-2a2 2 0 0 1-2 2zm-7 12a6 6 0 0 1 6-6a6 6 0 0 1-6-6a6 6 0 0 1-6 6a6 6 0 0 1 6 6z'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
158
+ font-size: 12px;
159
+ line-height: 18px;
127
160
  }
128
- [data-doc-component="gallery/static"] > div:empty::before { content: "还没有内容"; font-size: 14px; }
161
+ [data-doc-component="gallery/static"] > div:empty::before { content: "还没有内容"; font-size: 13.5px; line-height: 20px; font-weight: 600; }
129
162
  [data-doc-component="gallery/static"] > div:empty::after {
130
163
  content: "跟 Agent 说要在这里放什么";
131
- color: color-mix(in srgb, currentColor 65%, transparent);
164
+ color: color-mix(in srgb, currentColor 55%, transparent);
132
165
  }
133
166
  :root[data-ge-language="en"] [data-doc-component="gallery/static"] > div:empty::before,
134
167
  :root:not([data-ge-language])[lang|="en" i] [data-doc-component="gallery/static"] > div:empty::before { content: "Nothing here yet"; }
@@ -8,8 +8,8 @@ Put it on a custom page as a card of its board, `<section class="gallery-card" d
8
8
 
9
9
  - the content, the `div` right inside the instance (its part `content`, edited as `none`): any HTML, headings, paragraphs, lists, links, a table, a picture. No `<script>`, no form fields, no `on…` attributes: the card only shows.
10
10
  - a picture: a file of the page's `assets/` (`pages/<slug>/assets/`), written `assets/<file>` (a name of letters, digits, dots, dashes and underscores, right in that folder), which the server serves at `/pages/<slug>/assets/<file>`: put the file there first (`gallery page check` says a picture whose file is not there), and never `cover.png` alone, which nothing serves. A small SVG or PNG may be a `data:` address in the `<img>` itself.
11
- - the look: the card gives it a plain one (14px text, headings a little larger, but a heading the content starts with, where more follows it, drawn as the cards' head row: the title's size, a chip of lines before it, so that the card sits among Gallery's own; a heading alone stays a heading, links in the kit's link color, tables with lines between rows, pictures no wider than the card) that weighs nothing, so that a page's own `<style>` or a `style` attribute changes any of it. It sets no color but the links' and that head chip's: its words are the color they stand in, the page's text or the color your page gives the card (`.gallery-card[data-card-id="…"] { background: …; color: … }`) or a wrapper of the content (`style="color: …"`), every heading in it too, and its small words, quotes and lines a share of that color. Write colors of your own for both themes (`:root[data-doc-effective-theme="dark"]` on a custom page), a link's too where its fill is dark.
12
- - Size: any whole number of cells, 1 to 12 wide and 1 to 24 high, 4 × 2 by default: write `data-w` and `data-h` to fit what you wrote (`gallery page add static --w <w> --h <h>` does too). The user changes it by dragging the card's lower right corner, or from the 大小 menu of the grip at the card's top right, which lists the common sizes. The card does not grow with what it holds: what does not fit scrolls inside it, so give it the height it needs.
11
+ - the look: the card gives it a light one (Gallery 风格's: 13px words on 20px lines) that weighs nothing, so that a page's own `<style>` or a `style` attribute changes any of it: a heading the content starts with, where more follows it, is drawn as the cards' head row (13px, 600, a small chip of lines before it), so that the card sits among Gallery's own; a list's items stand after small dots; a small heading (`<h4>`) is a faint label over what follows (常用); a paragraph of one link is a row with a small picture before it (a page for one of the workspace's, a link's for the web) and its `<small>` at its end, for a domain or a date: `<p><a href="https://www.npmjs.com/…">npm · @heycys/gallery</a><small>npmjs.com</small></p>`; a paragraph of `<strong>` words alone is a line larger (15px), and right after the heading the content starts with it stands at the card's foot with what follows it, a small widget's figure (`<h3>发布前</h3><p><strong>还差 2 项</strong></p><p><small>门禁 · 盲测</small></p>`); a table is compact, its heads faint, its rows a hairline apart; a heading alone (a card that names a group of cards, `<h2>工作 <small>项目和待办</small></h2>`) is 15px with its small words beside it, and a link alone is a tile (600, after an arrow); content of one line stands in the middle of a card one cell high. Links are in the accent's ink. It sets no other color: its words are the color they stand in, the page's text or the color your page gives the card (`.gallery-card[data-card-id="…"] { background: …; color: … }`) or a wrapper of the content (`style="color: …"`), every heading in it too, and its small words, labels, dots, quotes and lines a share of that color. Write colors of your own for both themes (`:root[data-doc-effective-theme="dark"]` on a custom page), a link's too where its fill is dark.
12
+ - Size: any whole number of cells, 1 to 12 wide and 1 to 24 high, 4 × 4 by default (2 × 1 for one link, 4 × 1 for a heading of a group, 4 × 2 for a few links, 8 × 2 for a short table): write `data-w` and `data-h` to fit what you wrote (`gallery page add static --w <w> --h <h>` does too). The user changes it by dragging the card's lower right corner, or from the 大小 menu of the grip at the card's top right, which lists the common sizes. The card does not grow with what it holds: what does not fit scrolls inside it, so give it the height it needs.
13
13
 
14
14
  An empty one (`<div></div>`, what a menu adds) says that it has nothing yet (还没有内容, 跟 Agent 说要在这里放什么), so that the user asks you for it.
15
15
 
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "id": "gallery/stats",
3
3
  "apiVersion": 1,
4
- "version": "1.2.0",
4
+ "version": "2.0.0",
5
5
  "name": { "zh": "工作区统计", "en": "Workspace numbers" },
6
- "description": { "zh": "文档数、待办完成了几项、总字数、本周编辑了几篇", "en": "How many documents, to-dos done, words in all, documents edited this week" },
6
+ "description": { "zh": "文档数、总字数、待办完成了几项、本周编辑了几次,各配一张小图", "en": "How many documents, words in all, to-dos done and edits this week, each over a small chart" },
7
7
  "words": "gongzuoqutongji tongji shuzi stats statistics numbers count words 统计 工作区 字数 文档数 待办",
8
8
  "parts": {},
9
9
  "runtime": { "generated": [":scope > .gallery-stats-face"] },
10
10
  "places": ["page"],
11
- "card": { "sizes": [[4, 2], [8, 2]], "resize": true },
11
+ "card": { "sizes": [[8, 2], [12, 2], [4, 4]], "resize": true },
12
12
  "needs": ["workspace"]
13
13
  }