@invisibleloop/pulse 0.1.21

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 (344) hide show
  1. package/.claude/commands/build-page.md +59 -0
  2. package/.claude/commands/new-doc-page.md +45 -0
  3. package/.claude/commands/verify.md +52 -0
  4. package/.claude/pulse-checklist.md +111 -0
  5. package/.claude/settings.local.json +102 -0
  6. package/.github/workflows/ci.yml +22 -0
  7. package/.github/workflows/publish.yml +41 -0
  8. package/.pulse/load-reports/home/1773432711417.json +22 -0
  9. package/CLAUDE.md +383 -0
  10. package/README.md +95 -0
  11. package/docs/.claude/pulse-checklist.md +111 -0
  12. package/docs/public/.pulse-ui-version +1 -0
  13. package/docs/public/dist/accessibility.boot-5DVTARJU.js +115 -0
  14. package/docs/public/dist/actions.boot-P66HKQEM.js +164 -0
  15. package/docs/public/dist/auth.boot-IMAJAUPH.js +140 -0
  16. package/docs/public/dist/caching.boot-DVR6KDE7.js +53 -0
  17. package/docs/public/dist/components--accordion.boot-3HVKMNWC.js +11 -0
  18. package/docs/public/dist/components--alert.boot-GCEXOZAC.js +6 -0
  19. package/docs/public/dist/components--app-badge.boot-DVT3GCHJ.js +6 -0
  20. package/docs/public/dist/components--avatar.boot-PSW24EVA.js +5 -0
  21. package/docs/public/dist/components--badge.boot-TYDY2RMK.js +7 -0
  22. package/docs/public/dist/components--banner.boot-EI5PZSZK.js +7 -0
  23. package/docs/public/dist/components--breadcrumbs.boot-SMA2E2GO.js +34 -0
  24. package/docs/public/dist/components--button.boot-J54BQM2E.js +23 -0
  25. package/docs/public/dist/components--card.boot-PZGNDIB6.js +138 -0
  26. package/docs/public/dist/components--carousel.boot-TP6LPFZZ.js +12 -0
  27. package/docs/public/dist/components--charts.boot-2EOYQWKL.js +108 -0
  28. package/docs/public/dist/components--checkbox.boot-DS5BSL6T.js +54 -0
  29. package/docs/public/dist/components--cluster.boot-HHVIBBJG.js +9 -0
  30. package/docs/public/dist/components--code-window.boot-2GR2DV33.js +20 -0
  31. package/docs/public/dist/components--container.boot-7LOOGK2K.js +5 -0
  32. package/docs/public/dist/components--cta.boot-FSNZ5YRT.js +11 -0
  33. package/docs/public/dist/components--divider.boot-3NI2C3QG.js +6 -0
  34. package/docs/public/dist/components--empty.boot-YX2UR3PV.js +7 -0
  35. package/docs/public/dist/components--feature.boot-MUD7NSUO.js +13 -0
  36. package/docs/public/dist/components--fieldset.boot-J7BYHMKF.js +19 -0
  37. package/docs/public/dist/components--fileupload.boot-NIKVTTPD.js +52 -0
  38. package/docs/public/dist/components--footer.boot-EYUK5FRG.js +14 -0
  39. package/docs/public/dist/components--grid.boot-URDQVDDR.js +59 -0
  40. package/docs/public/dist/components--heading.boot-BPQKU43E.js +44 -0
  41. package/docs/public/dist/components--hero.boot-4RAPRGAB.js +17 -0
  42. package/docs/public/dist/components--icons.boot-ZITNU5JP.js +68 -0
  43. package/docs/public/dist/components--image.boot-XEEGHQZF.js +19 -0
  44. package/docs/public/dist/components--input.boot-SGASZG5K.js +7 -0
  45. package/docs/public/dist/components--list.boot-W3XC5MHD.js +55 -0
  46. package/docs/public/dist/components--media.boot-5VFIETZO.js +13 -0
  47. package/docs/public/dist/components--modal.boot-RZUYXBN2.js +47 -0
  48. package/docs/public/dist/components--nav.boot-ODBOHU7O.js +33 -0
  49. package/docs/public/dist/components--pricing.boot-4AQ4ZVBY.js +21 -0
  50. package/docs/public/dist/components--progress.boot-GHAGYZOK.js +30 -0
  51. package/docs/public/dist/components--prose.boot-QANJL6JI.js +67 -0
  52. package/docs/public/dist/components--pullquote.boot-Q2WMNAZU.js +22 -0
  53. package/docs/public/dist/components--radio.boot-TJRDQ2OL.js +75 -0
  54. package/docs/public/dist/components--rating.boot-QBAN6DEL.js +38 -0
  55. package/docs/public/dist/components--search.boot-PXH5O5AG.js +17 -0
  56. package/docs/public/dist/components--section.boot-AQGIYHWW.js +12 -0
  57. package/docs/public/dist/components--segmented.boot-BEVTKEJO.js +33 -0
  58. package/docs/public/dist/components--select.boot-47X5RHOC.js +10 -0
  59. package/docs/public/dist/components--slider.boot-PSRRX7XL.js +47 -0
  60. package/docs/public/dist/components--spinner.boot-MZ5MO2OH.js +22 -0
  61. package/docs/public/dist/components--stack.boot-DI4NJXBF.js +9 -0
  62. package/docs/public/dist/components--stat.boot-QMFUWBQT.js +9 -0
  63. package/docs/public/dist/components--stepper.boot-34PP2NEV.js +22 -0
  64. package/docs/public/dist/components--table.boot-FCQGSFIQ.js +11 -0
  65. package/docs/public/dist/components--testimonial.boot-DWQPDKYG.js +11 -0
  66. package/docs/public/dist/components--textarea.boot-QVXLBOJ5.js +4 -0
  67. package/docs/public/dist/components--timeline.boot-26LN52P2.js +95 -0
  68. package/docs/public/dist/components--toggle.boot-IQQEI76S.js +29 -0
  69. package/docs/public/dist/components--tooltip.boot-LGHCO6NN.js +9 -0
  70. package/docs/public/dist/components.boot-SE6PQ4P7.js +103 -0
  71. package/docs/public/dist/config.boot-DTRRWUE6.js +126 -0
  72. package/docs/public/dist/constraints.boot-DUHDZBMC.js +71 -0
  73. package/docs/public/dist/deploy.boot-SLAD3NI2.js +163 -0
  74. package/docs/public/dist/docs-8e3d4b5c.css +1 -0
  75. package/docs/public/dist/extending.boot-UA3CN243.js +159 -0
  76. package/docs/public/dist/faq.boot-6EQAWLQR.js +43 -0
  77. package/docs/public/dist/getting-started.boot-TDKIFL5U.js +86 -0
  78. package/docs/public/dist/guard.boot-AUHAWTG4.js +80 -0
  79. package/docs/public/dist/home.boot-BVQXRH32.js +383 -0
  80. package/docs/public/dist/how-it-works.boot-LTWAKWKW.js +104 -0
  81. package/docs/public/dist/hydration.boot-JRM6IPJL.js +78 -0
  82. package/docs/public/dist/images.boot-M6ZVKTZS.js +80 -0
  83. package/docs/public/dist/manifest.json +94 -0
  84. package/docs/public/dist/meta.boot-7NXGPHR4.js +79 -0
  85. package/docs/public/dist/mutations.boot-F6F43UDX.js +79 -0
  86. package/docs/public/dist/navigation.boot-AOXWS3ZF.js +57 -0
  87. package/docs/public/dist/performance.boot-C3UPCOBK.js +98 -0
  88. package/docs/public/dist/persist.boot-WT32PQOQ.js +61 -0
  89. package/docs/public/dist/project-structure.boot-FB3LRVJ4.js +63 -0
  90. package/docs/public/dist/prompt-examples.boot-YKR4VDK4.js +31 -0
  91. package/docs/public/dist/pulse-ui-81a85c03.css +1 -0
  92. package/docs/public/dist/raw-responses.boot-M4KA5YXL.js +104 -0
  93. package/docs/public/dist/routing.boot-FNX5FDGH.js +70 -0
  94. package/docs/public/dist/runtime-B73WLANC.js +1 -0
  95. package/docs/public/dist/runtime-KO4BHUQ3.js +49 -0
  96. package/docs/public/dist/runtime-L2HNXIHW.js +59 -0
  97. package/docs/public/dist/runtime-QFURDKA2.js +5 -0
  98. package/docs/public/dist/runtime-UVPXO4IR.js +375 -0
  99. package/docs/public/dist/runtime-VMJA3Z4N.js +10 -0
  100. package/docs/public/dist/runtime-ZJ4FXT5O.js +11 -0
  101. package/docs/public/dist/server-api.boot-K7X3LCFB.js +219 -0
  102. package/docs/public/dist/server-data.boot-Y7HQYC4R.js +157 -0
  103. package/docs/public/dist/slash-commands.boot-V2UV7OW2.js +26 -0
  104. package/docs/public/dist/spec.boot-2WU7ZHCV.js +159 -0
  105. package/docs/public/dist/state.boot-B24GUE3R.js +73 -0
  106. package/docs/public/dist/store.boot-TLIB4XHH.js +150 -0
  107. package/docs/public/dist/streaming.boot-W2DZSMW4.js +80 -0
  108. package/docs/public/dist/stripe.boot-QN3C2GEL.js +164 -0
  109. package/docs/public/dist/supabase.boot-BG4XXLZE.js +303 -0
  110. package/docs/public/dist/testing.boot-6U4WKMTE.js +130 -0
  111. package/docs/public/dist/validation.boot-PQHYGW5B.js +100 -0
  112. package/docs/public/docs.css +2020 -0
  113. package/docs/public/menu.js +83 -0
  114. package/docs/public/pulse-ui.css +2739 -0
  115. package/docs/public/pulse-ui.js +236 -0
  116. package/docs/server.js +192 -0
  117. package/docs/src/lib/component-page.js +47 -0
  118. package/docs/src/lib/highlight.js +255 -0
  119. package/docs/src/lib/layout.js +131 -0
  120. package/docs/src/lib/metrics-store.js +6 -0
  121. package/docs/src/lib/nav.js +159 -0
  122. package/docs/src/lib/stats.js +81 -0
  123. package/docs/src/pages/accessibility.js +157 -0
  124. package/docs/src/pages/actions.js +191 -0
  125. package/docs/src/pages/auth.js +177 -0
  126. package/docs/src/pages/caching.js +95 -0
  127. package/docs/src/pages/components/accordion.js +48 -0
  128. package/docs/src/pages/components/alert.js +35 -0
  129. package/docs/src/pages/components/app-badge.js +41 -0
  130. package/docs/src/pages/components/avatar.js +35 -0
  131. package/docs/src/pages/components/badge.js +36 -0
  132. package/docs/src/pages/components/banner.js +45 -0
  133. package/docs/src/pages/components/breadcrumbs.js +94 -0
  134. package/docs/src/pages/components/button.js +84 -0
  135. package/docs/src/pages/components/card.js +225 -0
  136. package/docs/src/pages/components/carousel.js +72 -0
  137. package/docs/src/pages/components/charts.js +278 -0
  138. package/docs/src/pages/components/checkbox.js +129 -0
  139. package/docs/src/pages/components/cluster.js +47 -0
  140. package/docs/src/pages/components/code-window.js +57 -0
  141. package/docs/src/pages/components/container.js +40 -0
  142. package/docs/src/pages/components/cta.js +53 -0
  143. package/docs/src/pages/components/divider.js +37 -0
  144. package/docs/src/pages/components/empty.js +36 -0
  145. package/docs/src/pages/components/feature.js +60 -0
  146. package/docs/src/pages/components/fieldset.js +65 -0
  147. package/docs/src/pages/components/fileupload.js +127 -0
  148. package/docs/src/pages/components/footer.js +58 -0
  149. package/docs/src/pages/components/grid.js +165 -0
  150. package/docs/src/pages/components/heading.js +107 -0
  151. package/docs/src/pages/components/hero.js +65 -0
  152. package/docs/src/pages/components/icons.js +285 -0
  153. package/docs/src/pages/components/image.js +71 -0
  154. package/docs/src/pages/components/input.js +51 -0
  155. package/docs/src/pages/components/list.js +112 -0
  156. package/docs/src/pages/components/media.js +51 -0
  157. package/docs/src/pages/components/modal.js +111 -0
  158. package/docs/src/pages/components/nav.js +86 -0
  159. package/docs/src/pages/components/pricing.js +68 -0
  160. package/docs/src/pages/components/progress.js +102 -0
  161. package/docs/src/pages/components/prose.js +111 -0
  162. package/docs/src/pages/components/pullquote.js +71 -0
  163. package/docs/src/pages/components/radio.js +194 -0
  164. package/docs/src/pages/components/rating.js +106 -0
  165. package/docs/src/pages/components/search.js +61 -0
  166. package/docs/src/pages/components/section.js +59 -0
  167. package/docs/src/pages/components/segmented.js +121 -0
  168. package/docs/src/pages/components/select.js +45 -0
  169. package/docs/src/pages/components/slider.js +114 -0
  170. package/docs/src/pages/components/spinner.js +73 -0
  171. package/docs/src/pages/components/stack.js +48 -0
  172. package/docs/src/pages/components/stat.js +55 -0
  173. package/docs/src/pages/components/stepper.js +66 -0
  174. package/docs/src/pages/components/table.js +45 -0
  175. package/docs/src/pages/components/testimonial.js +49 -0
  176. package/docs/src/pages/components/textarea.js +31 -0
  177. package/docs/src/pages/components/timeline.js +227 -0
  178. package/docs/src/pages/components/toggle.js +84 -0
  179. package/docs/src/pages/components/tooltip.js +48 -0
  180. package/docs/src/pages/components.js +204 -0
  181. package/docs/src/pages/config.js +193 -0
  182. package/docs/src/pages/constraints.js +99 -0
  183. package/docs/src/pages/deploy.js +233 -0
  184. package/docs/src/pages/extending.js +198 -0
  185. package/docs/src/pages/faq.js +96 -0
  186. package/docs/src/pages/getting-started.js +106 -0
  187. package/docs/src/pages/guard.js +121 -0
  188. package/docs/src/pages/home.js +401 -0
  189. package/docs/src/pages/how-it-works.js +183 -0
  190. package/docs/src/pages/hydration.js +98 -0
  191. package/docs/src/pages/images.js +121 -0
  192. package/docs/src/pages/meta.js +120 -0
  193. package/docs/src/pages/mutations.js +106 -0
  194. package/docs/src/pages/navigation.js +85 -0
  195. package/docs/src/pages/performance.js +157 -0
  196. package/docs/src/pages/persist.js +88 -0
  197. package/docs/src/pages/project-structure.js +90 -0
  198. package/docs/src/pages/prompt-examples.js +186 -0
  199. package/docs/src/pages/raw-responses.js +124 -0
  200. package/docs/src/pages/routing.js +99 -0
  201. package/docs/src/pages/server-api.js +281 -0
  202. package/docs/src/pages/server-data.js +185 -0
  203. package/docs/src/pages/slash-commands.js +55 -0
  204. package/docs/src/pages/spec.js +207 -0
  205. package/docs/src/pages/state.js +101 -0
  206. package/docs/src/pages/store.js +181 -0
  207. package/docs/src/pages/streaming.js +108 -0
  208. package/docs/src/pages/stripe.js +193 -0
  209. package/docs/src/pages/supabase.js +323 -0
  210. package/docs/src/pages/testing.js +198 -0
  211. package/docs/src/pages/validation.js +138 -0
  212. package/examples/contact.js +166 -0
  213. package/examples/counter.js +94 -0
  214. package/examples/dev.server.js +91 -0
  215. package/examples/examples.test.js +394 -0
  216. package/examples/pricing.js +244 -0
  217. package/examples/products.js +191 -0
  218. package/examples/quiz.js +208 -0
  219. package/examples/shared.js +78 -0
  220. package/examples/todos.js +162 -0
  221. package/package.json +75 -0
  222. package/public/.pulse-ui-version +1 -0
  223. package/public/chippy-bird.css +246 -0
  224. package/public/examples/contact.css +119 -0
  225. package/public/examples/counter.css +79 -0
  226. package/public/examples/pricing.css +132 -0
  227. package/public/examples/products.css +100 -0
  228. package/public/examples/quiz.css +200 -0
  229. package/public/examples/todos.css +137 -0
  230. package/public/favicon.ico +0 -0
  231. package/public/log-dashboard.css +383 -0
  232. package/public/pulse-ui.css +2740 -0
  233. package/public/pulse-ui.js +236 -0
  234. package/public/pulse.css +149 -0
  235. package/scripts/build.js +411 -0
  236. package/src/agent/checklist.md +111 -0
  237. package/src/agent/coverage-check.js +66 -0
  238. package/src/agent/guide-components.md +274 -0
  239. package/src/agent/guide-examples.md +54 -0
  240. package/src/agent/guide-routing.md +36 -0
  241. package/src/agent/guide-server.md +258 -0
  242. package/src/agent/guide-spec.md +103 -0
  243. package/src/agent/guide-styles.md +191 -0
  244. package/src/agent/guide.md +979 -0
  245. package/src/agent/identity.md +106 -0
  246. package/src/agent/workflow.md +108 -0
  247. package/src/cli/cli.test.js +82 -0
  248. package/src/cli/dev.js +195 -0
  249. package/src/cli/discover.js +113 -0
  250. package/src/cli/index.js +361 -0
  251. package/src/cli/load-report.js +91 -0
  252. package/src/cli/load-runner.js +121 -0
  253. package/src/cli/report-server.js +723 -0
  254. package/src/cli/report.js +116 -0
  255. package/src/cli/scaffold.archive.js +1371 -0
  256. package/src/cli/scaffold.js +349 -0
  257. package/src/cli/start.js +74 -0
  258. package/src/html.js +19 -0
  259. package/src/mcp/server.js +884 -0
  260. package/src/mcp/validate-worker.js +110 -0
  261. package/src/runtime/image.js +74 -0
  262. package/src/runtime/image.test.js +111 -0
  263. package/src/runtime/index.js +621 -0
  264. package/src/runtime/navigate.js +146 -0
  265. package/src/runtime/runtime.test.js +773 -0
  266. package/src/runtime/ssr.js +464 -0
  267. package/src/runtime/ssr.test.js +421 -0
  268. package/src/runtime/store.js +92 -0
  269. package/src/runtime/toast.js +163 -0
  270. package/src/server/index.js +1386 -0
  271. package/src/server/server.test.js +1248 -0
  272. package/src/spec/schema.js +428 -0
  273. package/src/spec/schema.test.js +291 -0
  274. package/src/store/index.js +102 -0
  275. package/src/store/store.test.js +210 -0
  276. package/src/testing/html.js +283 -0
  277. package/src/testing/index.js +249 -0
  278. package/src/testing/testing.test.js +450 -0
  279. package/src/ui/accordion.js +28 -0
  280. package/src/ui/alert.js +43 -0
  281. package/src/ui/app-badge.js +48 -0
  282. package/src/ui/avatar.js +47 -0
  283. package/src/ui/badge.js +24 -0
  284. package/src/ui/banner.js +26 -0
  285. package/src/ui/breadcrumbs.js +38 -0
  286. package/src/ui/button.js +66 -0
  287. package/src/ui/card.js +34 -0
  288. package/src/ui/carousel.js +59 -0
  289. package/src/ui/charts.js +321 -0
  290. package/src/ui/checkbox.js +65 -0
  291. package/src/ui/cluster.js +44 -0
  292. package/src/ui/code-window.js +39 -0
  293. package/src/ui/container.js +24 -0
  294. package/src/ui/cta.js +37 -0
  295. package/src/ui/divider.js +29 -0
  296. package/src/ui/empty.js +33 -0
  297. package/src/ui/feature.js +33 -0
  298. package/src/ui/fieldset.js +37 -0
  299. package/src/ui/fileupload.js +89 -0
  300. package/src/ui/footer.js +38 -0
  301. package/src/ui/grid.js +36 -0
  302. package/src/ui/heading.js +45 -0
  303. package/src/ui/hero.js +37 -0
  304. package/src/ui/icons.js +161 -0
  305. package/src/ui/index.js +89 -0
  306. package/src/ui/input.js +74 -0
  307. package/src/ui/list.js +36 -0
  308. package/src/ui/media.js +44 -0
  309. package/src/ui/modal.js +80 -0
  310. package/src/ui/nav.js +61 -0
  311. package/src/ui/pricing.js +56 -0
  312. package/src/ui/progress.js +62 -0
  313. package/src/ui/prose.js +29 -0
  314. package/src/ui/pullquote.js +34 -0
  315. package/src/ui/radio.js +102 -0
  316. package/src/ui/rating.js +93 -0
  317. package/src/ui/search.js +77 -0
  318. package/src/ui/section.js +69 -0
  319. package/src/ui/segmented.js +50 -0
  320. package/src/ui/select.js +77 -0
  321. package/src/ui/slider.js +84 -0
  322. package/src/ui/spinner.js +34 -0
  323. package/src/ui/stack.js +36 -0
  324. package/src/ui/stat.js +52 -0
  325. package/src/ui/stepper.js +46 -0
  326. package/src/ui/switch.js +57 -0
  327. package/src/ui/table.js +45 -0
  328. package/src/ui/testimonial.js +48 -0
  329. package/src/ui/textarea.js +72 -0
  330. package/src/ui/timeline.js +72 -0
  331. package/src/ui/tooltip.js +28 -0
  332. package/src/ui/ui.test.js +1241 -0
  333. package/src/ui/uiimage.js +65 -0
  334. package/tsconfig.json +13 -0
  335. package/types/html.d.ts +17 -0
  336. package/types/image.d.ts +70 -0
  337. package/types/index.d.ts +7 -0
  338. package/types/navigate.d.ts +38 -0
  339. package/types/runtime.d.ts +63 -0
  340. package/types/schema.d.ts +243 -0
  341. package/types/server.d.ts +145 -0
  342. package/types/ssr.d.ts +110 -0
  343. package/types/testing.d.ts +154 -0
  344. package/types/ui.d.ts +704 -0
@@ -0,0 +1,59 @@
1
+ import{a as t,b as u}from"./runtime-ZJ4FXT5O.js";import{Ca as n,Ha as r,Ia as c,Pa as o,c as i}from"./runtime-UVPXO4IR.js";import"./runtime-VMJA3Z4N.js";import"./runtime-QFURDKA2.js";import{a as d,h as p}from"./runtime-L2HNXIHW.js";import{a,b as m}from"./runtime-B73WLANC.js";var{prev:h,next:f}=d("/components/grid"),e=g=>`<div style="background:var(--surface-2);border:1px solid var(--border);border-radius:6px;padding:1.25rem;text-align:center;color:var(--muted)">${g}</div>`,l={route:"/components/grid",meta:{title:"Grid \u2014 Pulse Docs",description:"Grid component for Pulse UI.",styles:["/pulse-ui.css","/docs.css"]},state:{},view:()=>u({currentHref:"/components/grid",prev:h,next:f,name:"grid",description:"Responsive CSS grid. Collapses to a single column on mobile. Direct children of the content slot become grid items \u2014 no wrapper needed.",content:`
2
+ <h2 class="doc-h2" id="cols">Column counts</h2>
3
+ <p>Use <code>cols</code> to set the number of columns. All layouts collapse to one column on mobile.</p>
4
+
5
+ <h3 class="doc-h3">2 columns</h3>
6
+ ${t(o({cols:2,content:e("Left")+e("Right")}),"grid({ cols: 2, content: left + right })")}
7
+
8
+ <h3 class="doc-h3">3 columns (default)</h3>
9
+ ${t(o({cols:3,content:e("One")+e("Two")+e("Three")}),"grid({ cols: 3, content: items.join('') })")}
10
+
11
+ <h3 class="doc-h3">4 columns</h3>
12
+ ${t(o({cols:4,content:e("A")+e("B")+e("C")+e("D")}),"grid({ cols: 4, content: items.join('') })")}
13
+
14
+ <h2 class="doc-h2" id="gap">Gap sizes</h2>
15
+ <p>Control spacing between items with <code>gap: 'sm' | 'md' | 'lg'</code>. Default is <code>'md'</code>.</p>
16
+
17
+ <h3 class="doc-h3">Small gap</h3>
18
+ ${t(o({cols:3,gap:"sm",content:e("One")+e("Two")+e("Three")}),"grid({ cols: 3, gap: 'sm', content: items.join('') })")}
19
+
20
+ <h3 class="doc-h3">Large gap</h3>
21
+ ${t(o({cols:3,gap:"lg",content:e("One")+e("Two")+e("Three")}),"grid({ cols: 3, gap: 'lg', content: items.join('') })")}
22
+
23
+ <h2 class="doc-h2" id="with-components">With components</h2>
24
+ <p>Grid accepts any HTML string as content \u2014 pass other component outputs directly.</p>
25
+
26
+ <h3 class="doc-h3">Feature grid</h3>
27
+ ${t(o({cols:3,content:[c({icon:"\u26A1",title:"Fast",description:"Sub-100ms server responses with streaming SSR."}),c({icon:"\u{1F512}",title:"Secure",description:"Security headers on every response, including errors."}),c({icon:"\u{1F3AF}",title:"Simple",description:"No build step, no virtual DOM, no dependencies."})].join("")}),`grid({
28
+ cols: 3,
29
+ content: features.map(f => feature(f)).join(''),
30
+ })`)}
31
+
32
+ <h3 class="doc-h3">Stat grid</h3>
33
+ ${t(o({cols:4,content:[n({label:"Monthly users",value:"24.8k",change:"+12%",trend:"up"}),n({label:"Revenue",value:"$18.2k",change:"+8.4%",trend:"up"}),n({label:"Churn rate",value:"2.1%",change:"\u22120.3%",trend:"down"}),n({label:"Uptime",value:"99.98%",change:"0.0%",trend:"neutral"})].join("")}),`grid({
34
+ cols: 4,
35
+ content: stats.map(s => stat(s)).join(''),
36
+ })`)}
37
+
38
+ <h3 class="doc-h3">Testimonial grid</h3>
39
+ ${t(o({cols:3,content:[r({quote:"Shipped our redesign in a weekend. No boilerplate, no config hell.",name:"Alex Morgan",role:"CTO at Launchpad",rating:5}),r({quote:"The streaming SSR makes our pages feel instant. Lighthouse is happy.",name:"Sara Kim",role:"Lead Engineer, Orbit",rating:5}),r({quote:"Finally a UI kit that doesn't fight the platform. Just HTML.",name:"Dan Okafor",role:"Founder, Stackly",rating:5})].join("")}),`grid({
40
+ cols: 3,
41
+ content: testimonials.map(t => testimonial(t)).join(''),
42
+ })`)}
43
+
44
+ <h3 class="doc-h3">Card grid</h3>
45
+ ${t(o({cols:3,gap:"md",content:[i({title:"Getting started",content:'<p style="color:var(--muted);margin:0">Install and run your first Pulse app in under five minutes.</p>',footer:'<span class="ui-badge">Guide</span>'}),i({title:"Components",content:'<p style="color:var(--muted);margin:0">30+ accessible, composable UI primitives ready to drop in.</p>',footer:'<span class="ui-badge">Reference</span>'}),i({title:"Deployment",content:'<p style="color:var(--muted);margin:0">Static hosting, Node servers, or edge runtimes \u2014 one build.</p>',footer:'<span class="ui-badge">Deploy</span>'})].join("")}),`grid({
46
+ cols: 3,
47
+ content: docs.map(d => card({
48
+ title: d.title,
49
+ content: \`<p>\${d.summary}</p>\`,
50
+ footer: badge({ label: d.tag }),
51
+ })).join(''),
52
+ })`)}
53
+
54
+ <h2 class="doc-h2" id="1col">Single column</h2>
55
+ <p>Use <code>cols: 1</code> for a stacked list with consistent spacing \u2014 useful for form sections or timelines.</p>
56
+ ${t(o({cols:1,gap:"sm",content:e("Step one")+e("Step two")+e("Step three")}),"grid({ cols: 1, gap: 'sm', content: steps.join('') })")}
57
+
58
+ ${p(["Prop","Type","Default",""],[["<code>content</code>","string (HTML)","\u2014","Raw HTML slot \u2014 direct children are grid items"],["<code>cols</code>","number","3","1 \xB7 2 \xB7 3 \xB7 4"],["<code>gap</code>","string","'md'","'sm' \xB7 'md' \xB7 'lg'"]])}
59
+ `})};var s=document.getElementById("pulse-root");s&&!s.dataset.pulseMounted&&(s.dataset.pulseMounted="1",a(l,s,window.__PULSE_SERVER__||{},{ssr:!0}),m(s,a));var C=l;export{C as default};
@@ -0,0 +1,44 @@
1
+ import{a as t,b as d}from"./runtime-ZJ4FXT5O.js";import{c as r,ub as e}from"./runtime-UVPXO4IR.js";import"./runtime-VMJA3Z4N.js";import"./runtime-QFURDKA2.js";import{a as n,h as i}from"./runtime-L2HNXIHW.js";import{a as l,b as c}from"./runtime-B73WLANC.js";var{prev:h,next:u}=n("/components/heading"),a={route:"/components/heading",meta:{title:"Heading \u2014 Pulse Docs",description:"Styled semantic heading component for Pulse UI.",styles:["/pulse-ui.css","/docs.css"]},state:{},view:()=>d({currentHref:"/components/heading",prev:h,next:u,name:"heading",description:"Styled semantic heading. Renders the correct HTML tag (<code>h1</code>\u2013<code>h6</code>) with consistent typography tokens. Use this instead of raw heading tags so you get the right visual style without remembering utility classes.",content:`
2
+
3
+ <h2 class="doc-h2" id="levels">All levels</h2>
4
+ <p>Each level has a default visual size. The semantic tag and visual size are independent \u2014 see <a href="#size-override">size override</a> below.</p>
5
+ ${t([1,2,3,4,5,6].map(s=>e({level:s,text:`Heading level ${s}`})).join(""),`heading({ level: 1, text: 'Page title' })
6
+ heading({ level: 2, text: 'Section title' })
7
+ heading({ level: 3, text: 'Subsection' })
8
+ heading({ level: 4, text: 'Card heading' })
9
+ heading({ level: 5, text: 'Label' })
10
+ heading({ level: 6, text: 'Caption' })`,{col:!0})}
11
+
12
+ <h2 class="doc-h2" id="size-override">Size override</h2>
13
+ <p>The <code>size</code> prop lets you use a different visual scale than the default for that level. Useful when you need the correct semantic structure for SEO or accessibility but want a different visual weight.</p>
14
+ ${t([e({level:2,text:"Semantic h2, looks like h4",size:"xl"}),e({level:3,text:"Semantic h3, extra large",size:"4xl"})].join(""),`// h2 for structure, but visually smaller
15
+ heading({ level: 2, text: 'Related articles', size: 'xl' })
16
+
17
+ // h3 that needs to be visually prominent
18
+ heading({ level: 3, text: 'Featured', size: '4xl' })`,{col:!0})}
19
+
20
+ <h2 class="doc-h2" id="color">Color</h2>
21
+ ${t([e({level:3,text:"Default colour"}),e({level:3,text:"Muted \u2014 for secondary labels",color:"muted"}),e({level:3,text:"Accent \u2014 for highlights",color:"accent"})].join(""),`heading({ level: 3, text: 'Default colour' })
22
+ heading({ level: 3, text: 'Muted \u2014 for secondary labels', color: 'muted' })
23
+ heading({ level: 3, text: 'Accent \u2014 for highlights', color: 'accent' })`,{col:!0})}
24
+
25
+ <h2 class="doc-h2" id="spacing">Spacing</h2>
26
+ <p><code>heading()</code> adds no margin. Use <code>u-mt-*</code> and <code>u-mb-*</code> utility classes to control spacing in context.</p>
27
+ ${t(r({content:`
28
+ ${e({level:2,text:"Account settings",class:"u-mb-2"})}
29
+ <p class="u-text-muted u-text-sm">Manage your profile and preferences.</p>
30
+ `}),`card({ content: \`
31
+ \${heading({ level: 2, text: 'Account settings', class: 'u-mb-2' })}
32
+ <p class="u-text-muted u-text-sm">Manage your profile and preferences.</p>
33
+ \`})`,{col:!0})}
34
+
35
+ <h2 class="doc-h2" id="balance">Preventing orphans</h2>
36
+ <p>When a heading wraps across lines, the last line can be left with a single short word \u2014 an orphan. The <code>balance</code> prop adds <code>text-wrap: balance</code>, which distributes text evenly across all lines so no word is stranded.</p>
37
+ ${t([e({level:2,text:"The quick brown fox jumps over the lazy dog tonight"}),e({level:2,text:"The quick brown fox jumps over the lazy dog tonight",balance:!0})].join('<p class="u-text-muted u-text-sm u-mt-2 u-mb-4">\u2191 without balance \u2014 \u2193 with balance: true</p>'),`// Without \u2014 last line may have a single word
38
+ heading({ level: 2, text: 'The quick brown fox jumps over the lazy dog tonight' })
39
+
40
+ // With \u2014 text distributed evenly across lines
41
+ heading({ level: 2, text: 'The quick brown fox jumps over the lazy dog tonight', balance: true })`,{col:!0})}
42
+
43
+ ${i(["Prop","Type","Default",""],[["<code>level</code>","number (1\u20136)","2","Controls both the HTML tag and the default visual size"],["<code>text</code>","string","\u2014","Heading text \u2014 escaped automatically"],["<code>size</code>","<code>xs | sm | base | lg | xl | 2xl | 3xl | 4xl</code>","\u2014","Override the visual font size independently of the semantic level. Defaults: h1=4xl, h2=3xl, h3=2xl, h4=xl, h5=base, h6=sm"],["<code>color</code>","<code>default | muted | accent</code>","<code>default</code>","Text colour token"],["<code>balance</code>","boolean","<code>false</code>","Adds <code>text-wrap: balance</code> \u2014 prevents orphaned words on the last line when the heading wraps"],["<code>class</code>","string","\u2014","Extra classes \u2014 use for spacing utilities such as <code>u-mb-4</code>"]])}
44
+ `})};var o=document.getElementById("pulse-root");o&&!o.dataset.pulseMounted&&(o.dataset.pulseMounted="1",l(a,o,window.__PULSE_SERVER__||{},{ssr:!0}),c(o,l));var w=a;export{w as default};
@@ -0,0 +1,17 @@
1
+ import{a as t,b as d}from"./runtime-ZJ4FXT5O.js";import{Ga as r,Ma as s}from"./runtime-UVPXO4IR.js";import"./runtime-VMJA3Z4N.js";import"./runtime-QFURDKA2.js";import{a as l,h as a}from"./runtime-L2HNXIHW.js";import{a as o,b as n}from"./runtime-B73WLANC.js";var{prev:p,next:c}=l("/components/hero"),i={route:"/components/hero",meta:{title:"Hero \u2014 Pulse Docs",description:"Hero component for Pulse UI.",styles:["/pulse-ui.css","/docs.css"]},state:{},view:()=>d({currentHref:"/components/hero",prev:p,next:c,name:"hero",description:"Full-width hero section. The <code>actions</code> slot accepts any combination of <code>button()</code> and <code>appBadge()</code> calls. Set <code>align: 'left'</code> for a split-layout hero. Use <code>size: 'sm'</code> for inner-page headers that don't need the full vertical padding.",content:`
2
+ ${t(r({eyebrow:"Now available",title:"The app your phone deserves",subtitle:"Beautifully simple. Ridiculously fast. Available on iOS and Android.",actions:s({store:"apple",href:"#"})+" "+s({store:"google",href:"#"})}),`hero({
3
+ eyebrow: 'Now available',
4
+ title: 'The app your phone deserves',
5
+ subtitle: 'Beautifully simple. Ridiculously fast.',
6
+ actions: appBadge({ store: 'apple', href: appStoreUrl }) +
7
+ appBadge({ store: 'google', href: playStoreUrl }),
8
+ })`)}
9
+
10
+ ${t(r({title:"Blog",subtitle:"Thoughts on building for the web.",size:"sm"}),`hero({
11
+ title: 'Blog',
12
+ subtitle: 'Thoughts on building for the web.',
13
+ size: 'sm',
14
+ })`)}
15
+
16
+ ${a(["Prop","Type","Default",""],[["<code>eyebrow</code>","string","\u2014","Small label above the title"],["<code>title</code>","string","\u2014",""],["<code>subtitle</code>","string","\u2014",""],["<code>actions</code>","string (HTML)","\u2014","Raw HTML slot"],["<code>align</code>","string","'center'","'center' or 'left'"],["<code>size</code>","string","'md'","'md' (5rem padding) or 'sm' (2.5rem top, no bottom) \u2014 use sm for inner-page headers"]])}
17
+ `})};var e=document.getElementById("pulse-root");e&&!e.dataset.pulseMounted&&(e.dataset.pulseMounted="1",o(i,e,window.__PULSE_SERVER__||{},{ssr:!0}),n(e,o));var v=i;export{v as default};
@@ -0,0 +1,68 @@
1
+ import{a as n,b as x}from"./runtime-ZJ4FXT5O.js";import{$ as ln,A as b,B as X,C as l,D as V,E as C,F as N,G as O,H as Z,I as _,Ia as o,J as W,K as j,L as J,M as t,N as K,O as z,P as Q,Q as Y,R as nn,S as en,T as on,U as cn,V as an,W as rn,X as tn,Y as d,Z as sn,_ as S,a as i,aa as dn,ba as pn,ca as mn,da as un,e as P,ea as p,f as U,fa as gn,g as $,ga as fn,h as D,ha as hn,i as M,ia as bn,j as L,ja as Cn,k as A,ka as zn,l as q,la as Sn,m as E,ma as wn,n as H,na as vn,o as T,oa as yn,p as I,pa as m,q as R,qa as e,r as c,ra as kn,s as g,sa as xn,t as a,ta as Pn,u as B,ua as Un,v as r,va as $n,w as f,wa as Dn,x as F,y as G,z as h}from"./runtime-UVPXO4IR.js";import"./runtime-VMJA3Z4N.js";import"./runtime-QFURDKA2.js";import{a as v,h as y}from"./runtime-L2HNXIHW.js";import{a as u,b as k}from"./runtime-B73WLANC.js";var{prev:En,next:Hn}=v("/components/icons"),Tn=[{group:"Navigation & Direction",icons:[{name:"iconArrowLeft",fn:P},{name:"iconArrowRight",fn:U},{name:"iconArrowUp",fn:$},{name:"iconArrowDown",fn:D},{name:"iconChevronLeft",fn:M},{name:"iconChevronRight",fn:L},{name:"iconChevronUp",fn:A},{name:"iconChevronDown",fn:q},{name:"iconExternalLink",fn:E},{name:"iconMenu",fn:H},{name:"iconX",fn:T},{name:"iconMoreHorizontal",fn:I},{name:"iconMoreVertical",fn:R}]},{group:"Status",icons:[{name:"iconCheck",fn:c},{name:"iconCheckCircle",fn:g},{name:"iconXCircle",fn:a},{name:"iconAlertCircle",fn:B},{name:"iconAlertTriangle",fn:r},{name:"iconInfo",fn:f}]},{group:"Actions",icons:[{name:"iconPlus",fn:F},{name:"iconMinus",fn:G},{name:"iconEdit",fn:h},{name:"iconTrash",fn:b},{name:"iconCopy",fn:X},{name:"iconSearch",fn:l},{name:"iconFilter",fn:V},{name:"iconDownload",fn:C},{name:"iconUpload",fn:N},{name:"iconRefresh",fn:O},{name:"iconSend",fn:Z}]},{group:"UI Controls",icons:[{name:"iconEye",fn:_},{name:"iconEyeOff",fn:W},{name:"iconLock",fn:j},{name:"iconUnlock",fn:J},{name:"iconSettings",fn:t},{name:"iconBell",fn:K}]},{group:"People & Communication",icons:[{name:"iconUser",fn:z},{name:"iconUsers",fn:Q},{name:"iconMail",fn:Y},{name:"iconMessageSquare",fn:nn}]},{group:"Navigation & Pages",icons:[{name:"iconHome",fn:en},{name:"iconMapPin",fn:Dn},{name:"iconLogOut",fn:on},{name:"iconLogIn",fn:cn}]},{group:"Content & Files",icons:[{name:"iconFile",fn:an},{name:"iconImage",fn:rn},{name:"iconLink",fn:tn},{name:"iconCode",fn:d},{name:"iconCalendar",fn:sn},{name:"iconClock",fn:S},{name:"iconBookmark",fn:ln},{name:"iconTag",fn:dn}]},{group:"Media & Rating",icons:[{name:"iconPlay",fn:pn},{name:"iconPause",fn:mn},{name:"iconVolume",fn:un},{name:"iconStar",fn:p},{name:"iconHeart",fn:gn}]},{group:"Devices",icons:[{name:"iconPhone",fn},{name:"iconGamepad",fn:hn}]},{group:"Hand Pointers",icons:[{name:"iconHandPointUp",fn:bn},{name:"iconHandPointDown",fn:Cn},{name:"iconHandPointLeft",fn:zn},{name:"iconHandPointRight",fn:Sn}]},{group:"Misc",icons:[{name:"iconGlobe",fn:yn},{name:"iconShield",fn:m},{name:"iconZap",fn:e},{name:"iconTrendingUp",fn:kn},{name:"iconTrendingDown",fn:xn},{name:"iconLoader",fn:Pn},{name:"iconGrid",fn:Un},{name:"iconBug",fn:$n}]},{group:"Theme",icons:[{name:"iconSun",fn:wn},{name:"iconMoon",fn:vn}]}];function In(){return Tn.map(({group:Mn,icons:Ln})=>`
2
+ <h3 class="doc-h3" style="margin-top:2rem">${Mn}</h3>
3
+ <div class="icon-grid">
4
+ ${Ln.map(({name:An,fn:qn})=>`
5
+ <div class="icon-grid-item">
6
+ <div class="icon-grid-preview">${qn({size:20})}</div>
7
+ <span class="icon-grid-name">${An}</span>
8
+ </div>
9
+ `).join("")}
10
+ </div>
11
+ `).join("")}var w={route:"/components/icons",meta:{title:"Icons \u2014 Pulse Docs",description:"Built-in icon set for Pulse UI.",styles:["/pulse-ui.css","/docs.css"]},state:{},view:()=>x({currentHref:"/components/icons",prev:En,next:Hn,name:"icons",description:'55 curated icons. All are pure functions returning an SVG string \u2014 no external library, no DOM dependency, tree-shakeable. Style: 24\xD724 viewBox, <code>stroke="currentColor"</code>, compatible with any colour token.',content:`
12
+
13
+ <h2 class="doc-h2" id="usage">Usage</h2>
14
+ <p>Import the icon functions you need alongside other components. Call each as a function \u2014 optionally pass <code>size</code> and <code>class</code>.</p>
15
+ ${n('<div style="display:flex;gap:1rem;align-items:center;flex-wrap:wrap">'+c({size:20})+l({size:20})+z({size:20})+p({size:20})+e({size:20})+t({size:20})+"</div>",`import { iconCheck, iconSearch, iconUser } from '@invisibleloop/pulse/ui'
16
+
17
+ // Default size (16px)
18
+ iconCheck()
19
+
20
+ // Custom size
21
+ iconSearch({ size: 20 })
22
+
23
+ // With extra class
24
+ iconUser({ size: 20, class: 'u-text-accent' })`)}
25
+
26
+ <h2 class="doc-h2" id="with-button">With button</h2>
27
+ <p>Pass an icon into the <code>icon</code> prop of <code>button()</code>.</p>
28
+ ${n('<div style="display:flex;gap:.75rem;flex-wrap:wrap;align-items:center">'+i({label:"Download",variant:"primary",icon:C({size:14})})+i({label:"Edit",variant:"secondary",icon:h({size:14})})+i({label:"Delete",variant:"danger",icon:b({size:14})})+i({label:"Search",variant:"ghost",icon:l({size:14})})+"</div>",`button({ label: 'Download', variant: 'primary', icon: iconDownload({ size: 14 }) })
29
+ button({ label: 'Edit', variant: 'secondary', icon: iconEdit({ size: 14 }) })
30
+ button({ label: 'Delete', variant: 'danger', icon: iconTrash({ size: 14 }) })
31
+ button({ label: 'Search', variant: 'ghost', icon: iconSearch({ size: 14 }) })`)}
32
+
33
+ <h2 class="doc-h2" id="with-feature">With feature</h2>
34
+ <p>Icons compose naturally into the <code>feature()</code> icon slot.</p>
35
+ ${n('<div style="display:grid;grid-template-columns:repeat(3,1fr);gap:1rem">'+o({icon:e({size:20}),title:"Fast",description:"Streaming SSR. No build step."})+o({icon:m({size:20}),title:"Secure",description:"Security headers on every response."})+o({icon:d({size:20}),title:"Simple",description:"Plain JS objects, no JSX."})+"</div>",`feature({ icon: iconZap({ size: 20 }), title: 'Fast', description: '...' })
36
+ feature({ icon: iconShield({ size: 20 }), title: 'Secure', description: '...' })
37
+ feature({ icon: iconCode({ size: 20 }), title: 'Simple', description: '...' })`)}
38
+
39
+ <h2 class="doc-h2" id="background">Background</h2>
40
+ <p>Add <code>bg: 'circle'</code> or <code>bg: 'square'</code> to wrap the icon in a tinted background. Use <code>bgColor</code> to pick the colour \u2014 defaults to <code>'accent'</code>.</p>
41
+
42
+ <h3 class="doc-h3">Circle</h3>
43
+ ${n('<div style="display:flex;gap:1rem;align-items:center;flex-wrap:wrap">'+e({size:20,bg:"circle",bgColor:"accent"})+c({size:20,bg:"circle",bgColor:"success"})+r({size:20,bg:"circle",bgColor:"warning"})+a({size:20,bg:"circle",bgColor:"error"})+t({size:20,bg:"circle",bgColor:"muted"})+"</div>",`iconZap({ size: 20, bg: 'circle', bgColor: 'accent' })
44
+ iconCheck({ size: 20, bg: 'circle', bgColor: 'success' })
45
+ iconAlertTriangle({ size: 20, bg: 'circle', bgColor: 'warning' })
46
+ iconXCircle({ size: 20, bg: 'circle', bgColor: 'error' })
47
+ iconSettings({ size: 20, bg: 'circle', bgColor: 'muted' })`)}
48
+
49
+ <h3 class="doc-h3">Square (rounded)</h3>
50
+ ${n('<div style="display:flex;gap:1rem;align-items:center;flex-wrap:wrap">'+e({size:20,bg:"square",bgColor:"accent"})+c({size:20,bg:"square",bgColor:"success"})+r({size:20,bg:"square",bgColor:"warning"})+a({size:20,bg:"square",bgColor:"error"})+t({size:20,bg:"square",bgColor:"muted"})+"</div>","iconZap({ size: 20, bg: 'square', bgColor: 'accent' })")}
51
+
52
+ <h3 class="doc-h3">With feature()</h3>
53
+ <p>Pairs naturally with the <code>feature()</code> icon slot at larger sizes.</p>
54
+ ${n('<div style="display:grid;grid-template-columns:repeat(3,1fr);gap:1rem">'+o({icon:e({size:22,bg:"square",bgColor:"accent"}),title:"Fast",description:"Streaming SSR, zero config."})+o({icon:m({size:22,bg:"square",bgColor:"success"}),title:"Secure",description:"Security headers by default."})+o({icon:d({size:22,bg:"square",bgColor:"muted"}),title:"Simple",description:"Plain JS objects, no JSX."})+"</div>",`feature({ icon: iconZap({ size: 22, bg: 'square', bgColor: 'accent' }), title: 'Fast', description: '...' })
55
+ feature({ icon: iconShield({ size: 22, bg: 'square', bgColor: 'success' }), title: 'Secure', description: '...' })
56
+ feature({ icon: iconCode({ size: 22, bg: 'square', bgColor: 'muted' }), title: 'Simple', description: '...' })`)}
57
+
58
+ <h2 class="doc-h2" id="colour">Colour</h2>
59
+ <p>Icons inherit <code>color</code> from their parent \u2014 use utility classes or CSS tokens to tint them.</p>
60
+ ${n(`<div style="display:flex;gap:1.25rem;align-items:center"><span class="u-text-accent">${p({size:20})}</span><span class="u-text-green">${g({size:20})}</span><span class="u-text-red">${a({size:20})}</span><span class="u-text-yellow">${r({size:20})}</span><span class="u-text-blue">${f({size:20})}</span><span class="u-text-muted">${S({size:20})}</span></div>`,'<span class="u-text-accent">${iconStar({ size: 20 })}</span>\n<span class="u-text-green">${iconCheckCircle({ size: 20 })}</span>\n<span class="u-text-red">${iconXCircle({ size: 20 })}</span>\n<span class="u-text-yellow">${iconAlertTriangle({ size: 20 })}</span>')}
61
+
62
+ <h2 class="doc-h2" id="all-icons">All icons</h2>
63
+ <p>Click any icon name to copy the import.</p>
64
+
65
+ ${In()}
66
+
67
+ ${y(["Prop","Type","Default",""],[["<code>size</code>","number","16","Width and height in px"],["<code>class</code>","string","\u2014","Extra CSS classes (on wrapper when <code>bg</code> is set, otherwise on the SVG)"],["<code>bg</code>","string","\u2014","'circle' \xB7 'square' \u2014 wraps the icon in a tinted background"],["<code>bgColor</code>","string","'accent'","'accent' \xB7 'success' \xB7 'warning' \xB7 'error' \xB7 'muted'"]])}
68
+ `})};var s=document.getElementById("pulse-root");s&&!s.dataset.pulseMounted&&(s.dataset.pulseMounted="1",u(w,s,window.__PULSE_SERVER__||{},{ssr:!0}),k(s,u));var Zn=w;export{Zn as default};
@@ -0,0 +1,19 @@
1
+ import{a as o,b as s}from"./runtime-ZJ4FXT5O.js";import{rb as t}from"./runtime-UVPXO4IR.js";import"./runtime-VMJA3Z4N.js";import"./runtime-QFURDKA2.js";import{a as c,h as r}from"./runtime-L2HNXIHW.js";import{a as i,b as d}from"./runtime-B73WLANC.js";var{prev:n,next:p}=c("/components/image"),a={route:"/components/image",meta:{title:"Image \u2014 Pulse Docs",description:"Responsive image component with optional aspect-ratio crop and caption for Pulse UI.",styles:["/pulse-ui.css","/docs.css"]},state:{},view:()=>s({currentHref:"/components/image",prev:n,next:p,name:"uiImage",description:'Responsive image component. Supports aspect-ratio cropping with <code>object-fit: cover</code>, optional caption, and rounded corners. Always uses <code>loading="lazy"</code> and <code>decoding="async"</code>.',content:`
2
+
3
+ <h2 class="doc-h2" id="ratio">With aspect ratio</h2>
4
+ <p>Set <code>ratio</code> to constrain the image to a fixed aspect ratio. The image fills the crop area with <code>object-fit: cover</code>.</p>
5
+ ${o(t({src:"https://picsum.photos/seed/pulse1/800/450",alt:"Mountain landscape at dusk",ratio:"16/9"}),"uiImage({ src: '/img/photo.jpg', alt: 'Mountain landscape at dusk', ratio: '16/9' })",{col:!0})}
6
+
7
+ <h2 class="doc-h2" id="rounded">Square and rounded</h2>
8
+ ${o(`<div style="max-width:200px;margin:0 auto">${t({src:"https://picsum.photos/seed/pulse2/400/400",alt:"Profile photo",ratio:"1/1",rounded:!0})}</div>`,"uiImage({ src: '/img/avatar.jpg', alt: 'Profile photo', ratio: '1/1', rounded: true })",{col:!0})}
9
+
10
+ <h2 class="doc-h2" id="caption">With caption</h2>
11
+ ${o(t({src:"https://picsum.photos/seed/pulse3/800/600",alt:"Aerial view of a coastal town",ratio:"4/3",caption:"Aerial view of Porto, Portugal. Photo by Jo\xE3o Silva."}),`uiImage({
12
+ src: '/img/photo.jpg',
13
+ alt: 'Aerial view of a coastal town',
14
+ ratio: '4/3',
15
+ caption: 'Aerial view of Porto, Portugal. Photo by Jo\xE3o Silva.',
16
+ })`,{col:!0})}
17
+
18
+ ${r(["Prop","Type","Default",""],[["<code>src</code>","string","\u2014","Image source URL"],["<code>alt</code>","string","\u2014","Alt text \u2014 required for accessibility"],["<code>caption</code>","string","\u2014","Renders a <code>&lt;figcaption&gt;</code> below the image"],["<code>ratio</code>","string","\u2014","CSS aspect-ratio string e.g. <code>'16/9'</code>, <code>'4/3'</code>, <code>'1/1'</code>. When set, the image fills the crop area with <code>object-fit: cover</code>."],["<code>rounded</code>","boolean","false","Applies full border-radius to the image wrap"],["<code>width</code>","number","\u2014","Sets the <code>width</code> attribute on the <code>&lt;img&gt;</code>"],["<code>height</code>","number","\u2014","Sets the <code>height</code> attribute on the <code>&lt;img&gt;</code>"],["<code>class</code>","string","\u2014",""]])}
19
+ `})};var e=document.getElementById("pulse-root");e&&!e.dataset.pulseMounted&&(e.dataset.pulseMounted="1",i(a,e,window.__PULSE_SERVER__||{},{ssr:!0}),d(e,i));var b=a;export{b as default};
@@ -0,0 +1,7 @@
1
+ import{a as i,b as n}from"./runtime-ZJ4FXT5O.js";import{d as o}from"./runtime-UVPXO4IR.js";import"./runtime-VMJA3Z4N.js";import"./runtime-QFURDKA2.js";import{a as d,h as r}from"./runtime-L2HNXIHW.js";import{a as t,b as l}from"./runtime-B73WLANC.js";var{prev:c,next:s}=d("/components/input"),a={route:"/components/input",meta:{title:"Input \u2014 Pulse Docs",description:"Input component for Pulse UI.",styles:["/pulse-ui.css","/docs.css"]},state:{},view:()=>n({currentHref:"/components/input",prev:c,next:s,name:"input",description:"The label and error are wired up automatically \u2014 <code>for</code>/<code>id</code> and <code>aria-describedby</code> are set from <code>name</code>. You don't need to manage ids yourself.",content:`
2
+ ${i(o({name:"email1",label:"Email address",type:"email",placeholder:"you@example.com"})+o({name:"email2",label:"Email address",type:"email",value:"bad@",error:"Enter a valid email address"})+o({name:"search",label:"Search",placeholder:"Filter by name\u2026",hint:"Results update as you type"}),`input({ name: 'email', label: 'Email address', type: 'email', placeholder: 'you@example.com' })
3
+ input({ name: 'email', label: 'Email address', error: 'Enter a valid email address', value: state.email })
4
+ input({ name: 'search', label: 'Search', placeholder: 'Filter by name\u2026', hint: 'Results update as you type' })`,{col:!0})}
5
+
6
+ ${r(["Prop","Type","Default",""],[["<code>name</code>","string","\u2014","Also used as id base: <code>field-{name}</code>"],["<code>label</code>","string","\u2014",""],["<code>type</code>","string","text","Any valid HTML input type"],["<code>placeholder</code>","string","\u2014",""],["<code>value</code>","string","\u2014","Pre-filled value \u2014 escaped automatically"],["<code>error</code>","string","\u2014",'Triggers <code>aria-invalid</code> and <code>role="alert"</code>'],["<code>hint</code>","string","\u2014","Helper text below the input"],["<code>required</code>","boolean","false","Adds <code>required</code>, <code>aria-required</code>, and a visual asterisk"],["<code>disabled</code>","boolean","false",""],["<code>id</code>","string","\u2014","Override the generated id"],["<code>attrs</code>","object","{}","Extra attributes on the <code>&lt;input&gt;</code> element"]])}
7
+ `})};var e=document.getElementById("pulse-root");e&&!e.dataset.pulseMounted&&(e.dataset.pulseMounted="1",t(a,e,window.__PULSE_SERVER__||{},{ssr:!0}),l(e,t));var v=a;export{v as default};
@@ -0,0 +1,55 @@
1
+ import{a as t,b as c}from"./runtime-ZJ4FXT5O.js";import{vb as e}from"./runtime-UVPXO4IR.js";import"./runtime-VMJA3Z4N.js";import"./runtime-QFURDKA2.js";import{a as d,h as i}from"./runtime-L2HNXIHW.js";import{a as o,b as n}from"./runtime-B73WLANC.js";var{prev:a,next:p}=d("/components/list"),r={route:"/components/list",meta:{title:"List \u2014 Pulse Docs",description:"Styled ordered and unordered list component for Pulse UI.",styles:["/pulse-ui.css","/docs.css"]},state:{},view:()=>c({currentHref:"/components/list",prev:a,next:p,name:"list",description:"Styled unordered or ordered list with consistent spacing and colour tokens. Use this instead of raw <code>&lt;ul&gt;</code> / <code>&lt;ol&gt;</code>. Items are HTML strings \u2014 other components can be passed as items.",content:`
2
+
3
+ <h2 class="doc-h2" id="unordered">Unordered</h2>
4
+ ${t(e({items:["Streaming SSR on every page","Security headers by default","Zero client-side dependencies","Lighthouse 100 out of the box"]}),`list({
5
+ items: [
6
+ 'Streaming SSR on every page',
7
+ 'Security headers by default',
8
+ 'Zero client-side dependencies',
9
+ 'Lighthouse 100 out of the box',
10
+ ],
11
+ })`,{col:!0})}
12
+
13
+ <h2 class="doc-h2" id="ordered">Ordered</h2>
14
+ ${t(e({ordered:!0,items:["Create a new Pulse project","Add your pages to <code>src/pages/</code>","Run <code>pulse dev</code> to start the server","Deploy when ready"]}),`list({
15
+ ordered: true,
16
+ items: [
17
+ 'Create a new Pulse project',
18
+ 'Add your pages to src/pages/',
19
+ 'Run pulse dev to start the server',
20
+ 'Deploy when ready',
21
+ ],
22
+ })`,{col:!0})}
23
+
24
+ <h2 class="doc-h2" id="gap">Gap</h2>
25
+ <p>Control vertical spacing between items with the <code>gap</code> prop.</p>
26
+ ${t(`<div class="u-flex u-gap-8">
27
+ <div>
28
+ <p class="u-text-muted u-text-sm u-mb-2">xs</p>
29
+ ${e({gap:"xs",items:["Design","Build","Ship"]})}
30
+ </div>
31
+ <div>
32
+ <p class="u-text-muted u-text-sm u-mb-2">sm (default)</p>
33
+ ${e({gap:"sm",items:["Design","Build","Ship"]})}
34
+ </div>
35
+ <div>
36
+ <p class="u-text-muted u-text-sm u-mb-2">md</p>
37
+ ${e({gap:"md",items:["Design","Build","Ship"]})}
38
+ </div>
39
+ </div>`,`list({ gap: 'xs', items: [...] })
40
+ list({ gap: 'sm', items: [...] }) // default
41
+ list({ gap: 'md', items: [...] })`,{col:!0})}
42
+
43
+ <h2 class="doc-h2" id="rich-items">Items with markup</h2>
44
+ <p>Items are HTML strings \u2014 pass any markup including other components. Always escape user data before including it in item strings.</p>
45
+ ${t(e({items:["<strong>spec.state</strong> \u2014 initial client state, deep-cloned on mount","<strong>spec.mutations</strong> \u2014 synchronous state updates","<strong>spec.actions</strong> \u2014 async operations with lifecycle hooks","<strong>spec.server</strong> \u2014 server-side data fetchers"]}),`list({
46
+ items: [
47
+ '<strong>spec.state</strong> \u2014 initial client state',
48
+ '<strong>spec.mutations</strong> \u2014 synchronous state updates',
49
+ '<strong>spec.actions</strong> \u2014 async operations with lifecycle hooks',
50
+ '<strong>spec.server</strong> \u2014 server-side data fetchers',
51
+ ],
52
+ })`,{col:!0})}
53
+
54
+ ${i(["Prop","Type","Default",""],[["<code>items</code>","string[]","\u2014","Array of HTML strings for each list item \u2014 escape user data before passing"],["<code>ordered</code>","boolean","<code>false</code>","<code>false</code> renders <code>&lt;ul&gt;</code>, <code>true</code> renders <code>&lt;ol&gt;</code>"],["<code>gap</code>","<code>xs | sm | md</code>","<code>sm</code>","Vertical spacing between items"],["<code>class</code>","string","\u2014","Extra classes on the list element"]])}
55
+ `})};var s=document.getElementById("pulse-root");s&&!s.dataset.pulseMounted&&(s.dataset.pulseMounted="1",o(r,s,window.__PULSE_SERVER__||{},{ssr:!0}),n(s,o));var x=r;export{x as default};
@@ -0,0 +1,13 @@
1
+ import{a as i,b as s}from"./runtime-ZJ4FXT5O.js";import{Qa as d,Ua as m,a as c}from"./runtime-UVPXO4IR.js";import"./runtime-VMJA3Z4N.js";import"./runtime-QFURDKA2.js";import{a as r,h as n}from"./runtime-L2HNXIHW.js";import{a as t,b as a}from"./runtime-B73WLANC.js";var{prev:l,next:p}=r("/components/media"),o={route:"/components/media",meta:{title:"Media \u2014 Pulse Docs",description:"Media component for Pulse UI.",styles:["/pulse-ui.css","/docs.css"]},state:{},view:()=>s({currentHref:"/components/media",prev:l,next:p,name:"media",description:"Two-column image + text layout. Stacks vertically on mobile. Set <code>reverse</code> to alternate image position for multi-block feature sections.",content:`
2
+ ${i(m({image:'<div style="background:var(--ui-surface-2);border:1px solid var(--ui-border);border-radius:8px;aspect-ratio:16/9;display:flex;align-items:center;justify-content:center;color:var(--ui-muted);font-size:.875rem">Screenshot</div>',content:d({gap:"md",content:'<h3 style="font-size:1.25rem;font-weight:700;color:var(--ui-text);margin:0">One-tap controls</h3><p style="color:var(--ui-muted);margin:0">Tap to flap. Chippy Bird takes seconds to learn and a lifetime to conquer.</p>'+c({label:"Download",href:"#"})})}),`media({
3
+ image: \`<img src="\${screenshot}" alt="App screenshot">\`,
4
+ content: stack({ gap: 'md', content:
5
+ '<h3>One-tap controls</h3>' +
6
+ '<p>Tap to flap.</p>' +
7
+ button({ label: 'Download', href: appStoreUrl })
8
+ }),
9
+ reverse: false,
10
+ })`)}
11
+
12
+ ${n(["Prop","Type","Default",""],[["<code>image</code>","string (HTML)","\u2014","Raw HTML slot \u2014 img, figure, SVG, or styled div"],["<code>content</code>","string (HTML)","\u2014","Raw HTML slot"],["<code>reverse</code>","boolean","false","Puts text left, image right"],["<code>align</code>","string","'center'","'center' \xB7 'start'"],["<code>gap</code>","string","'md'","'sm' \xB7 'md' \xB7 'lg'"]])}
13
+ `})};var e=document.getElementById("pulse-root");e&&!e.dataset.pulseMounted&&(e.dataset.pulseMounted="1",t(o,e,window.__PULSE_SERVER__||{},{ssr:!0}),a(e,t));var w=o;export{w as default};
@@ -0,0 +1,47 @@
1
+ import{a as i,b as g}from"./runtime-ZJ4FXT5O.js";import{Ra as l,Wa as o,Xa as t,a as r}from"./runtime-UVPXO4IR.js";import"./runtime-VMJA3Z4N.js";import"./runtime-QFURDKA2.js";import{a as c,h as a,i as d}from"./runtime-L2HNXIHW.js";import{a as n,b as m}from"./runtime-B73WLANC.js";var{prev:p,next:u}=c("/components/modal"),s={route:"/components/modal",meta:{title:"Modal \u2014 Pulse Docs",description:"Modal dialog component for Pulse UI.",styles:["/pulse-ui.css","/docs.css"]},state:{},view:()=>g({currentHref:"/components/modal",prev:p,next:u,name:"modal / modalTrigger",description:"A <code>&lt;dialog&gt;</code>-based modal with backdrop, animated open/close, and keyboard dismiss. The Pulse runtime handles open and close natively \u2014 no extra script needed.",content:`
2
+ ${i(l({justify:"center",content:t({target:"demo-modal",label:"Open modal"})+o({id:"demo-modal",title:"Confirm action",content:'<p style="color:var(--ui-muted);margin:0">Are you sure you want to delete this item? This action cannot be undone.</p>',footer:r({label:"Cancel",variant:"secondary",type:"submit"})+r({label:"Delete",variant:"danger"})})}),`// Render the dialog somewhere on the page
3
+ modal({
4
+ id: 'confirm-delete',
5
+ title: 'Confirm action',
6
+ content: '<p>Are you sure? This cannot be undone.</p>',
7
+ footer:
8
+ button({ label: 'Cancel', variant: 'secondary' }) +
9
+ button({ label: 'Delete', variant: 'danger' }),
10
+ })
11
+
12
+ // Open it with a trigger button (or any element with data-dialog-open)
13
+ modalTrigger({ target: 'confirm-delete', label: 'Delete item', variant: 'danger' })`)}
14
+
15
+ <h3 class="doc-h3" id="sizes"><a href="#sizes" class="heading-anchor">Sizes</a></h3>
16
+ ${i(l({gap:"sm",justify:"center",content:t({target:"demo-sm",label:"Small",variant:"secondary",size:"sm"})+t({target:"demo-lg",label:"Large",variant:"secondary",size:"sm"})+o({id:"demo-sm",title:"Small modal",size:"sm",content:'<p style="color:var(--ui-muted);margin:0">A compact dialog for quick confirmations.</p>'})+o({id:"demo-lg",title:"Large modal",size:"lg",content:'<p style="color:var(--ui-muted);margin:0">Use large modals for forms, rich content, or detail views that need more space.</p>'})}),"modal({ id: 'my-modal', title: 'Large modal', size: 'lg', content: '...' })")}
17
+
18
+ ${a(["Prop","Type","Default",""],[["<code>id</code>","string","\u2014","Unique ID \u2014 required for triggers to target this dialog"],["<code>title</code>","string","\u2014",""],["<code>level</code>","number","2","Heading tag for the title (1\u20136). Visual style is unchanged."],["<code>content</code>","string (HTML)","\u2014","Body HTML"],["<code>footer</code>","string (HTML)","\u2014","Footer HTML \u2014 typically button() calls"],["<code>size</code>","<code>sm | md | lg | xl</code>","<code>md</code>",""],["<code>class</code>","string","\u2014",""]])}
19
+
20
+ <h3 class="doc-h3" id="trigger-props"><a href="#trigger-props" class="heading-anchor">modalTrigger props</a></h3>
21
+
22
+ ${a(["Prop","Type","Default",""],[["<code>target</code>","string","\u2014","The modal's <code>id</code>"],["<code>label</code>","string","<code>Open</code>",""],["<code>variant</code>","<code>primary | secondary | ghost | danger</code>","<code>primary</code>",""],["<code>size</code>","<code>sm | md | lg</code>","<code>md</code>",""],["<code>class</code>","string","\u2014",""]])}
23
+
24
+ <h3 class="doc-h3" id="custom-trigger"><a href="#custom-trigger" class="heading-anchor">Custom triggers</a></h3>
25
+ <p class="doc-body">Any element with <code>data-dialog-open="&lt;id&gt;"</code> opens the dialog when clicked. Use <code>data-dialog-close</code> on any element inside or outside the dialog to close it programmatically:</p>
26
+ <pre class="code-block"><code>&lt;button data-dialog-open="my-modal"&gt;Open&lt;/button&gt;
27
+ &lt;button data-dialog-close&gt;Cancel&lt;/button&gt;</code></pre>
28
+ ${d("tip",'The dialog also closes on ESC, backdrop click, and <code>&lt;form method="dialog"&gt;</code> submit \u2014 all native browser behaviour, no JavaScript needed.')}
29
+
30
+ <h3 class="doc-h3" id="forms-inside"><a href="#forms-inside" class="heading-anchor">Forms inside a modal</a></h3>
31
+ <p class="doc-body"><code>modal()</code> wraps all content in <code>&lt;form method="dialog"&gt;</code> for native close behaviour. You <strong>cannot nest a <code>&lt;form data-action="..."&gt;</code> inside it</strong> \u2014 browsers silently discard nested forms, so the action will never fire.</p>
32
+ <p class="doc-body">When a modal button needs to trigger a Pulse action, place the form <em>outside</em> the modal and use the HTML <code>form</code> attribute to associate the button with it:</p>
33
+ <pre class="code-block"><code>// The action form lives outside the modal \u2014 hidden, no visible fields needed
34
+ &lt;form id="delete-form" data-action="deleteAccount" style="display:none"&gt;&lt;/form&gt;
35
+
36
+ \${modal({
37
+ id: 'confirm-delete',
38
+ title: 'Delete account?',
39
+ content: '&lt;p&gt;This cannot be undone.&lt;/p&gt;',
40
+ footer:
41
+ // type="submit" with no form= closes the modal natively (submits &lt;form method="dialog"&gt;)
42
+ button({ label: 'Cancel', variant: 'secondary', type: 'submit' }) +
43
+ // form="delete-form" associates this button with the external form \u2192 fires the action
44
+ button({ label: 'Confirm delete', variant: 'danger', attrs: { form: 'delete-form', type: 'submit' } }),
45
+ })}</code></pre>
46
+ ${d("note","The hidden form needs no visible fields. <code>onStart</code> receives <code>state</code> and <code>formData</code> \u2014 read anything you need from state directly.")}
47
+ `})};var e=document.getElementById("pulse-root");e&&!e.dataset.pulseMounted&&(e.dataset.pulseMounted="1",n(s,e,window.__PULSE_SERVER__||{},{ssr:!0}),m(e,n));var C=s;export{C as default};
@@ -0,0 +1,33 @@
1
+ import{a as s,b as d}from"./runtime-ZJ4FXT5O.js";import{La as t,a as o}from"./runtime-UVPXO4IR.js";import"./runtime-VMJA3Z4N.js";import"./runtime-QFURDKA2.js";import{a as i,h as a}from"./runtime-L2HNXIHW.js";import{a as l,b as r}from"./runtime-B73WLANC.js";var{prev:c,next:p}=i("/components/nav"),n={route:"/components/nav",meta:{title:"Nav \u2014 Pulse Docs",description:"Nav component for Pulse UI.",styles:["/pulse-ui.css","/docs.css"]},state:{},view:()=>d({currentHref:"/components/nav",prev:c,next:p,name:"nav",description:"Sticky-capable site header with logo, navigation links, and an optional CTA button. On mobile (&lt; 640px) links collapse behind a burger button \u2014 clicking it reveals an overlay panel that sits on top of page content without pushing it down. Wired automatically by <code>pulse-ui.js</code>.",content:`
2
+ ${s(t({logo:"<strong>MyApp</strong>",logoHref:"/",links:[{label:"Features",href:"#features"},{label:"Pricing",href:"#pricing"},{label:"FAQ",href:"#faq"}],action:o({label:"Download",size:"sm"}),sticky:!1}),`nav({
3
+ logo: '<strong>MyApp</strong>',
4
+ logoHref: '/',
5
+ links: [
6
+ { label: 'Features', href: '#features' },
7
+ { label: 'Pricing', href: '#pricing' },
8
+ { label: 'FAQ', href: '#faq' },
9
+ ],
10
+ action: button({ label: 'Download', size: 'sm' }),
11
+ sticky: true,
12
+ })`)}
13
+
14
+ <h2 class="doc-h2" id="mobile">Mobile view</h2>
15
+ <p>At &lt; 640px the links and action are hidden and replaced with a burger button. The panel opens as an overlay \u2014 no layout shift.</p>
16
+
17
+ <div class="demo-phone demo-mobile-nav">
18
+ <div class="demo-phone-statusbar"><div class="demo-phone-pill"></div></div>
19
+ ${t({logo:"<strong>MyApp</strong>",logoHref:"/",links:[{label:"Features",href:"#features"},{label:"Pricing",href:"#pricing"},{label:"FAQ",href:"#faq"}],action:o({label:"Download",size:"sm"})})}
20
+ <div class="demo-phone-content"><p>Tap the burger to open the overlay</p></div>
21
+ </div>
22
+
23
+ <h2 class="doc-h2" id="burger-left">Burger on the left</h2>
24
+ <p>Set <code>burgerAlign: 'left'</code> to place the burger before the logo \u2014 common in app-style layouts.</p>
25
+
26
+ <div class="demo-phone demo-mobile-nav">
27
+ <div class="demo-phone-statusbar"><div class="demo-phone-pill"></div></div>
28
+ ${t({logo:"<strong>MyApp</strong>",logoHref:"/",links:[{label:"Features",href:"#features"},{label:"Pricing",href:"#pricing"},{label:"FAQ",href:"#faq"}],action:o({label:"Download",size:"sm"}),burgerAlign:"left"})}
29
+ <div class="demo-phone-content"><p>Burger on the left \u2014 logo stays right</p></div>
30
+ </div>
31
+
32
+ ${a(["Prop","Type","Default",""],[["<code>logo</code>","string (HTML)","\u2014","Raw HTML slot \u2014 SVG, img, or text"],["<code>logoHref</code>","string","'/'",""],["<code>links</code>","array","[]","<code>{ label, href }[]</code>"],["<code>action</code>","string (HTML)","\u2014","Raw HTML slot \u2014 shown in desktop bar and mobile menu"],["<code>sticky</code>","boolean","false","position: sticky with backdrop blur"],["<code>burgerAlign</code>","string","'right'","'right' or 'left' \u2014 mobile burger position"]])}
33
+ `})};var e=document.getElementById("pulse-root");e&&!e.dataset.pulseMounted&&(e.dataset.pulseMounted="1",l(n,e,window.__PULSE_SERVER__||{},{ssr:!0}),r(e,l));var k=n;export{k as default};
@@ -0,0 +1,21 @@
1
+ import{a as o,b as p}from"./runtime-ZJ4FXT5O.js";import{Ja as t,a as e}from"./runtime-UVPXO4IR.js";import"./runtime-VMJA3Z4N.js";import"./runtime-QFURDKA2.js";import{a,e as d,h as c}from"./runtime-L2HNXIHW.js";import{a as r,b as s}from"./runtime-B73WLANC.js";var{prev:l,next:g}=a("/components/pricing"),n={route:"/components/pricing",meta:{title:"Pricing \u2014 Pulse Docs",description:"Pricing component for Pulse UI.",styles:["/pulse-ui.css","/docs.css"]},state:{},view:()=>p({currentHref:"/components/pricing",prev:l,next:g,name:"pricing",description:"Single plan card with a feature list and CTA. Set <code>highlighted: true</code> on the recommended plan \u2014 it gets an accent border and a floating <code>badge</code> label.",content:`
2
+ ${o(t({name:"Pro",price:"$9",period:"/month",description:"For growing teams",features:["Unlimited pages","Priority support","Custom domain"],highlighted:!0,badge:"Most popular",action:e({label:"Get started",fullWidth:!0})}),`pricing({
3
+ name: 'Pro',
4
+ price: '$9',
5
+ period: '/month',
6
+ description: 'For growing teams',
7
+ features: ['Unlimited pages', 'Priority support', 'Custom domain'],
8
+ highlighted: true,
9
+ badge: 'Most popular',
10
+ action: button({ label: 'Get started', fullWidth: true }),
11
+ })`,{col:!0})}
12
+
13
+ ${d("multi-plan","Multi-plan layout")}
14
+ ${o('<div class="ui-pricing-grid ui-pricing-grid--cols-3">'+t({name:"Free",price:"$0",period:"/month",description:"For personal projects",features:["3 pages","Community support"],action:e({label:"Get started",variant:"secondary",fullWidth:!0})})+t({name:"Pro",price:"$9",period:"/month",description:"For growing teams",features:["Unlimited pages","Priority support","Custom domain"],highlighted:!0,badge:"Most popular",action:e({label:"Get started",fullWidth:!0})})+t({name:"Team",price:"$29",period:"/month",description:"For large organisations",features:["Everything in Pro","SSO","SLA"],action:e({label:"Get started",variant:"secondary",fullWidth:!0})})+"</div>",`<div class="ui-pricing-grid ui-pricing-grid--cols-3">
15
+ \${pricing({ name: 'Free', price: '$0', ... })}
16
+ \${pricing({ name: 'Pro', price: '$9', highlighted: true, badge: 'Most popular', ... })}
17
+ \${pricing({ name: 'Team', price: '$29', ... })}
18
+ </div>`)}
19
+
20
+ ${c(["Prop","Type","Default",""],[["<code>name</code>","string","\u2014",""],["<code>level</code>","number","3","Heading tag for the plan name (1\u20136). Visual style is unchanged."],["<code>price</code>","string","\u2014",'Formatted string \u2014 e.g. "$9", "Free"'],["<code>period</code>","string","\u2014",'e.g. "/month", "/year"'],["<code>description</code>","string","\u2014",""],["<code>features</code>","string[]","[]","List of feature strings"],["<code>action</code>","string (HTML)","\u2014","Raw HTML slot \u2014 typically a button()"],["<code>highlighted</code>","boolean","false","Accent border + elevated appearance"],["<code>badge</code>","string","\u2014","Floating label above the card"]])}
21
+ `})};var i=document.getElementById("pulse-root");i&&!i.dataset.pulseMounted&&(i.dataset.pulseMounted="1",r(n,i,window.__PULSE_SERVER__||{},{ssr:!0}),s(i,r));var v=n;export{v as default};
@@ -0,0 +1,30 @@
1
+ import{a as o,b as d}from"./runtime-ZJ4FXT5O.js";import{Qa as a,hb as e}from"./runtime-UVPXO4IR.js";import"./runtime-VMJA3Z4N.js";import"./runtime-QFURDKA2.js";import{a as l,h as n}from"./runtime-L2HNXIHW.js";import{a as t,b as c}from"./runtime-B73WLANC.js";var{prev:u,next:i}=l("/components/progress"),s={route:"/components/progress",meta:{title:"Progress \u2014 Pulse Docs",description:"Progress bar component for Pulse UI.",styles:["/pulse-ui.css","/docs.css"]},state:{},view:()=>d({currentHref:"/components/progress",prev:u,next:i,name:"progress",description:'Horizontal progress bar with determinate and indeterminate states. Correct <code>role="progressbar"</code> and ARIA attributes are set automatically.',content:`
2
+
3
+ <h2 class="doc-h2" id="default">Default</h2>
4
+ ${o(a({gap:"md",content:e({value:25})+e({value:50})+e({value:75})+e({value:100})}),`progress({ value: 25 })
5
+ progress({ value: 50 })
6
+ progress({ value: 75 })
7
+ progress({ value: 100 })`,{col:!0})}
8
+
9
+ <h2 class="doc-h2" id="label">With label and value</h2>
10
+ <p>Set <code>showLabel</code> and <code>showValue</code> to render text above the bar.</p>
11
+ ${o(a({gap:"lg",content:e({value:68,label:"Storage used",showLabel:!0,showValue:!0})+e({value:32,label:"Upload complete",showLabel:!0,showValue:!0})}),`progress({ value: 68, label: 'Storage used', showLabel: true, showValue: true })
12
+ progress({ value: 32, label: 'Upload complete', showLabel: true, showValue: true })`,{col:!0})}
13
+
14
+ <h2 class="doc-h2" id="variants">Variants</h2>
15
+ ${o(a({gap:"md",content:e({value:80,variant:"accent"})+e({value:80,variant:"success"})+e({value:80,variant:"warning"})+e({value:80,variant:"error"})}),`progress({ value: 80, variant: 'accent' })
16
+ progress({ value: 80, variant: 'success' })
17
+ progress({ value: 80, variant: 'warning' })
18
+ progress({ value: 80, variant: 'error' })`,{col:!0})}
19
+
20
+ <h2 class="doc-h2" id="sizes">Sizes</h2>
21
+ ${o(a({gap:"md",content:e({value:60,size:"sm"})+e({value:60,size:"md"})+e({value:60,size:"lg"})}),`progress({ value: 60, size: 'sm' })
22
+ progress({ value: 60, size: 'md' })
23
+ progress({ value: 60, size: 'lg' })`,{col:!0})}
24
+
25
+ <h2 class="doc-h2" id="indeterminate">Indeterminate</h2>
26
+ <p>Omit <code>value</code> when the total duration is unknown \u2014 the bar animates continuously.</p>
27
+ ${o(e({label:"Loading\u2026"}),"progress({ label: 'Loading\u2026' }) // no value = indeterminate",{col:!0})}
28
+
29
+ ${n(["Prop","Type","Default",""],[["<code>value</code>","number","\u2014","Current value. Omit for indeterminate."],["<code>max</code>","number","100",""],["<code>label</code>","string","\u2014","Sets <code>aria-label</code> and the visible label when <code>showLabel</code> is true"],["<code>showLabel</code>","boolean","false","Render label text above the bar"],["<code>showValue</code>","boolean","false","Render percentage above the bar (right-aligned)"],["<code>variant</code>","<code>accent | success | warning | error</code>","<code>accent</code>",""],["<code>size</code>","<code>sm | md | lg</code>","<code>md</code>",".25rem / .5rem / 1rem"],["<code>class</code>","string","\u2014",""]])}
30
+ `})};var r=document.getElementById("pulse-root");r&&!r.dataset.pulseMounted&&(r.dataset.pulseMounted="1",t(s,r,window.__PULSE_SERVER__||{},{ssr:!0}),c(r,t));var z=s;export{z as default};
@@ -0,0 +1,67 @@
1
+ import{a as o,b as d}from"./runtime-ZJ4FXT5O.js";import{tb as e}from"./runtime-UVPXO4IR.js";import"./runtime-VMJA3Z4N.js";import"./runtime-QFURDKA2.js";import{a as i,h as n,i as l}from"./runtime-L2HNXIHW.js";import{a as s,b as a}from"./runtime-B73WLANC.js";var{prev:c,next:p}=i("/components/prose"),u=`<h2>Why great coffee starts with water</h2>
2
+ <p>Most home baristas obsess over beans and grinders, but water quality is the single biggest variable in your cup. Tap water that is too hard leaves bitter, chalky espresso. Too soft and your shots taste flat and lifeless.</p>
3
+ <h3>The ideal mineral balance</h3>
4
+ <p>Speciality roasters recommend water with a total dissolved solids (TDS) between <strong>75\u2013150 mg/L</strong> and a magnesium content of at least 10 mg/L. Magnesium is the mineral most responsible for extracting the fruity, floral notes from light roasts.</p>
5
+ <h3>What to do if your tap water is off</h3>
6
+ <ul>
7
+ <li>Use a filter jug \u2014 Brita Maxtra+ reduces hardness and chlorine</li>
8
+ <li>Try third-wave water sachets \u2014 add to distilled water for precise control</li>
9
+ <li>Blend tap with still mineral water to hit the right TDS range</li>
10
+ </ul>
11
+ <blockquote>Water is the ingredient you can control most precisely, yet almost nobody does.</blockquote>
12
+ <p>Once your water is dialled in, even a modest grinder will produce noticeably better results. <a href="#">Read our water guide</a> for a full breakdown by region.</p>`,r={route:"/components/prose",meta:{title:"Prose \u2014 Pulse Docs",description:"Typography wrapper for CMS output and rich text content in Pulse UI.",styles:["/pulse-ui.css","/docs.css"]},state:{},view:()=>d({currentHref:"/components/prose",prev:c,next:p,name:"prose",description:"Typography wrapper for rich text you don't control: CMS output, markdown-rendered HTML, database content, blog posts. Styles all descendant elements \u2014 headings, paragraphs, lists, blockquotes, code, tables \u2014 using <code>--ui-*</code> tokens. No classes needed on individual elements.",content:`
13
+
14
+ <h2 class="doc-h2" id="basic">Basic</h2>
15
+ <p>Pass any HTML string to <code>content</code>. All elements inside are styled automatically.</p>
16
+ ${o(e({content:u}),`import { prose } from '@invisibleloop/pulse/ui'
17
+
18
+ // CMS rich text field \u2014 output directly, fully styled
19
+ prose({ content: server.article.bodyHtml })
20
+
21
+ // Markdown rendered to HTML
22
+ prose({ content: renderMarkdown(server.post.body) })`,{col:!0})}
23
+
24
+ <h2 class="doc-h2" id="size">Size</h2>
25
+ <p>Scale the base font size for different contexts.</p>
26
+ ${o(`<div class="u-flex u-flex-col u-gap-8">
27
+ <div>
28
+ <p class="u-text-muted u-text-sm u-mb-3">sm \u2014 footnotes, sidebars</p>
29
+ ${e({content:"<p>The quick brown fox jumps over the lazy dog. Pack my box with five dozen liquor jugs.</p><ul><li>Smaller text</li><li>Tighter line height</li></ul>",size:"sm"})}
30
+ </div>
31
+ <div>
32
+ <p class="u-text-muted u-text-sm u-mb-3">base (default)</p>
33
+ ${e({content:"<p>The quick brown fox jumps over the lazy dog. Pack my box with five dozen liquor jugs.</p><ul><li>Default size</li><li>Standard line height</li></ul>"})}
34
+ </div>
35
+ <div>
36
+ <p class="u-text-muted u-text-sm u-mb-3">lg \u2014 hero intro, feature descriptions</p>
37
+ ${e({content:"<p>The quick brown fox jumps over the lazy dog. Pack my box with five dozen liquor jugs.</p><ul><li>Larger text</li><li>More generous spacing</li></ul>",size:"lg"})}
38
+ </div>
39
+ </div>`,`prose({ content: cms.body, size: 'sm' }) // footnotes, sidebars
40
+ prose({ content: cms.body }) // default
41
+ prose({ content: cms.intro, size: 'lg' }) // hero intro`,{col:!0})}
42
+
43
+ <h2 class="doc-h2" id="elements">Styled elements</h2>
44
+ <p>Every common HTML element rendered inside <code>prose()</code> is styled using <code>--ui-*</code> tokens:</p>
45
+ ${o(e({content:`
46
+ <h2>h2 heading</h2>
47
+ <h3>h3 heading</h3>
48
+ <p>A paragraph with <strong>bold</strong>, <em>italic</em>, and <a href="#">a link</a>. Also <code>inline code</code>.</p>
49
+ <ul><li>Unordered item one</li><li>Unordered item two</li></ul>
50
+ <ol><li>Ordered item one</li><li>Ordered item two</li></ol>
51
+ <blockquote>A blockquote with an accent left border.</blockquote>
52
+ <pre><code>// A code block
53
+ const x = 1 + 2</code></pre>
54
+ <hr>
55
+ <p class="u-text-sm u-text-muted">End of content.</p>
56
+ `}),`prose({ content: \`
57
+ <h2>Section heading</h2>
58
+ <p>Paragraph with <strong>bold</strong> and <a href="#">a link</a>.</p>
59
+ <ul><li>List item</li></ul>
60
+ <blockquote>A quote.</blockquote>
61
+ <pre><code>const x = 1</code></pre>
62
+ \` })`,{col:!0})}
63
+
64
+ ${l("warning","<strong>Do not escape the content prop.</strong> <code>prose()</code> renders raw HTML \u2014 it is designed for trusted server-side content only. Never pass unescaped user input directly. Sanitise CMS output before rendering if your CMS allows arbitrary HTML.")}
65
+
66
+ ${n(["Prop","Type","Default",""],[["<code>content</code>","string","\u2014","Raw HTML string \u2014 rendered as-is, not escaped. Use for server-side content only."],["<code>size</code>","<code>sm | base | lg</code>","<code>base</code>","Base font size scale. <code>sm</code>=0.875rem, <code>base</code>=1rem, <code>lg</code>=1.125rem"],["<code>class</code>","string","\u2014","Extra classes on the wrapper <code>&lt;div&gt;</code>"]])}
67
+ `})};var t=document.getElementById("pulse-root");t&&!t.dataset.pulseMounted&&(t.dataset.pulseMounted="1",s(r,t,window.__PULSE_SERVER__||{},{ssr:!0}),a(t,s));var x=r;export{x as default};
@@ -0,0 +1,22 @@
1
+ import{a as t,b as d}from"./runtime-ZJ4FXT5O.js";import{sb as o}from"./runtime-UVPXO4IR.js";import"./runtime-VMJA3Z4N.js";import"./runtime-QFURDKA2.js";import{a as n,h as l}from"./runtime-L2HNXIHW.js";import{a as i,b as c}from"./runtime-B73WLANC.js";var{prev:u,next:r}=n("/components/pullquote"),s={route:"/components/pullquote",meta:{title:"Pullquote \u2014 Pulse Docs",description:"Styled blockquote component for Pulse UI.",styles:["/pulse-ui.css","/docs.css"]},state:{},view:()=>d({currentHref:"/components/pullquote",prev:u,next:r,name:"pullquote",description:"Styled blockquote with an accent left border and optional attribution. Use it to highlight key quotes or testimonials within body content.",content:`
2
+
3
+ <h2 class="doc-h2" id="basic">Basic</h2>
4
+ ${t(o({quote:"Design is not just what it looks like and feels like. Design is how it works.",cite:"Steve Jobs, co-founder of Apple"}),`pullquote({
5
+ quote: 'Design is not just what it looks like and feels like. Design is how it works.',
6
+ cite: 'Steve Jobs, co-founder of Apple',
7
+ })`)}
8
+
9
+ <h2 class="doc-h2" id="large">Large</h2>
10
+ ${t(o({quote:"Simplicity is the ultimate sophistication.",cite:"Leonardo da Vinci",size:"lg"}),`pullquote({
11
+ quote: 'Simplicity is the ultimate sophistication.',
12
+ cite: 'Leonardo da Vinci',
13
+ size: 'lg',
14
+ })`)}
15
+
16
+ <h2 class="doc-h2" id="no-cite">Without attribution</h2>
17
+ ${t(o({quote:"Good design makes a product understandable."}),`pullquote({
18
+ quote: 'Good design makes a product understandable.',
19
+ })`)}
20
+
21
+ ${l(["Prop","Type","Default",""],[["<code>quote</code>","string","\u2014","The quote text \u2014 escaped automatically"],["<code>cite</code>","string","\u2014","Attribution text \u2014 rendered in a <code>&lt;figcaption&gt;</code>"],["<code>size</code>","<code>md | lg</code>","<code>md</code>","Controls the font size of the quote text"],["<code>class</code>","string","\u2014",""]])}
22
+ `})};var e=document.getElementById("pulse-root");e&&!e.dataset.pulseMounted&&(e.dataset.pulseMounted="1",i(s,e,window.__PULSE_SERVER__||{},{ssr:!0}),c(e,i));var k=s;export{k as default};