@marktiderman/genesis-sites 0.7.6 → 0.9.0

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 (71) hide show
  1. package/README.md +202 -19
  2. package/SKILL.md +15 -0
  3. package/dist/analytics.d.ts +184 -0
  4. package/dist/analytics.js +3 -0
  5. package/dist/analytics.js.map +1 -0
  6. package/dist/assets/form-island.da6c662a73.js +51 -0
  7. package/dist/assets/islands.399b13ea6f.js +1 -0
  8. package/dist/assets/sites-forms.b64c156079.css +10 -0
  9. package/dist/assets/sites-forms.css +1 -1
  10. package/dist/assets/sites.2fac65f96a.css +2 -0
  11. package/dist/assets/sites.css +1 -1
  12. package/dist/assets.generated-ZBFSP23U.js +3 -0
  13. package/dist/{assets.generated-LLUGUUWZ.js.map → assets.generated-ZBFSP23U.js.map} +1 -1
  14. package/dist/blocks.js +2 -1
  15. package/dist/blocks.js.map +1 -1
  16. package/dist/chunk-5G2H6EZ2.js +19 -0
  17. package/dist/chunk-5G2H6EZ2.js.map +1 -0
  18. package/dist/chunk-5RYCQEEE.js +256 -0
  19. package/dist/chunk-5RYCQEEE.js.map +1 -0
  20. package/dist/{chunk-7E3YGYVH.js → chunk-ATRS5GSD.js} +77 -22
  21. package/dist/chunk-ATRS5GSD.js.map +1 -0
  22. package/dist/{chunk-MU2Z2C4F.js → chunk-CXBBUKGB.js} +14 -4
  23. package/dist/chunk-CXBBUKGB.js.map +1 -0
  24. package/dist/{chunk-IU6AI75R.js → chunk-QGU6FDH5.js} +413 -162
  25. package/dist/chunk-QGU6FDH5.js.map +1 -0
  26. package/dist/{chunk-SMJMXQ3T.js → chunk-SBONYMUC.js} +294 -73
  27. package/dist/chunk-SBONYMUC.js.map +1 -0
  28. package/dist/{chunk-VJ4HOFBA.js → chunk-UOKNFG5O.js} +144 -20
  29. package/dist/chunk-UOKNFG5O.js.map +1 -0
  30. package/dist/{chunk-KY4ALBVH.js → chunk-UUC5USJH.js} +58 -37
  31. package/dist/chunk-UUC5USJH.js.map +1 -0
  32. package/dist/editor.d.ts +76 -19
  33. package/dist/editor.js +1217 -245
  34. package/dist/editor.js.map +1 -1
  35. package/dist/handler-OR554RTS.js +11 -0
  36. package/dist/{handler-UMGSZY33.js.map → handler-OR554RTS.js.map} +1 -1
  37. package/dist/import.d.ts +3 -3
  38. package/dist/import.js +1 -1
  39. package/dist/index.d.ts +66 -11
  40. package/dist/index.js +4 -4
  41. package/dist/redirects-LcCNIJHQ.d.ts +43 -0
  42. package/dist/{registry-BIijndsq.d.ts → registry-Cw7NF_le.d.ts} +92 -1
  43. package/dist/sections.d.ts +86 -4
  44. package/dist/sections.js +3 -3
  45. package/dist/{store-BImtGmoF.d.ts → store-BNYD5NAQ.d.ts} +30 -4
  46. package/dist/supabase.d.ts +4 -4
  47. package/dist/supabase.js +4 -4
  48. package/dist/{templates-kA-jrnWA.d.ts → templates-DPv0OYLl.d.ts} +2 -2
  49. package/dist/templates.d.ts +3 -3
  50. package/dist/templates.js +7 -3
  51. package/dist/templates.js.map +1 -1
  52. package/dist/{theme-Cg-inpk5.d.ts → theme-HJzN2tOm.d.ts} +2 -2
  53. package/dist/web.d.ts +64 -18
  54. package/dist/web.js +7 -6
  55. package/migrations/0003_genesis_sites_post_dates.sql +117 -0
  56. package/migrations/tests/0003_genesis_sites_post_dates.test.sql +76 -0
  57. package/package.json +12 -4
  58. package/dist/assets/form-island.defb8daccc.js +0 -51
  59. package/dist/assets/islands.33a445f34e.js +0 -1
  60. package/dist/assets/sites-forms.aff23b5617.css +0 -10
  61. package/dist/assets/sites.5b3f64c627.css +0 -2
  62. package/dist/assets.generated-LLUGUUWZ.js +0 -3
  63. package/dist/chunk-7E3YGYVH.js.map +0 -1
  64. package/dist/chunk-IU6AI75R.js.map +0 -1
  65. package/dist/chunk-KY4ALBVH.js.map +0 -1
  66. package/dist/chunk-MU2Z2C4F.js.map +0 -1
  67. package/dist/chunk-RLYO6VVP.js +0 -19
  68. package/dist/chunk-RLYO6VVP.js.map +0 -1
  69. package/dist/chunk-SMJMXQ3T.js.map +0 -1
  70. package/dist/chunk-VJ4HOFBA.js.map +0 -1
  71. package/dist/handler-UMGSZY33.js +0 -10
@@ -1,18 +1,18 @@
1
1
  import { mailtoHref } from './chunk-VZUDRPFG.js';
2
- import { Link, Surface, Copy, Line, defineSection, Image, Href, RichText, FileRef, registerBuiltInSection, safeJsonForHtml, postPath, opensInNewTab } from './chunk-IU6AI75R.js';
3
- import { isSafeImageSrc, isSafeHref, isExternalHref } from './chunk-MU2Z2C4F.js';
2
+ import { Line, Link, Surface, Image, Copy, defineSection, RichText, samplePath, Href, FileRef, registerBuiltInSection, sampleImage, safeJsonForHtml, postPath, opensInNewTab } from './chunk-QGU6FDH5.js';
3
+ import { isSafeImageSrc, isSafeHref, isLocalDevUrl, isExternalHref } from './chunk-CXBBUKGB.js';
4
4
  import { z } from 'zod';
5
5
  import { BandLead, Band, Display } from '@marktiderman/genesis-ui/band';
6
- import { buttonVariants } from '@marktiderman/genesis-ui/button';
7
6
  import { cn } from '@marktiderman/genesis-ui/utils';
7
+ import { buttonVariants } from '@marktiderman/genesis-ui/button';
8
8
  import { responsiveImage } from '@marktiderman/genesis-media';
9
- import { Zap, Users, Trophy, Target, Star, Sparkles, Smile, Shield, Phone, MessageCircle, MapPin, Mail, Leaf, Heart, Dumbbell, Clock, Check, Calendar, Award, Activity, ChevronDown, FileText, ArrowLeft, Menu, Download } from 'lucide-react';
9
+ import { Zap, Users, Trophy, Target, Star, Sparkles, Smile, Shield, Phone, MessageCircle, MapPin, Mail, Leaf, Heart, Dumbbell, Clock, Check, Calendar, Award, Activity, ChevronDown, Minus, FileText, ArrowLeft, Menu, Download } from 'lucide-react';
10
10
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
11
+ import { RichText as RichText$1, richTextClassName } from '@marktiderman/genesis-ui/rich-text';
11
12
  import { parseForm, choiceOptions } from '@marktiderman/genesis-forms';
12
13
  import { Form } from '@marktiderman/genesis-forms-web';
13
14
  import { Input } from '@marktiderman/genesis-ui/input';
14
15
  import { Textarea } from '@marktiderman/genesis-ui/textarea';
15
- import { RichText as RichText$1, richTextClassName } from '@marktiderman/genesis-ui/rich-text';
16
16
 
17
17
  var Anchor = z.string().regex(/^[a-z][a-z0-9-]{0,39}$/, "An anchor is lowercase letters, digits and hyphens.").optional().meta({ title: "Anchor (for #links)" });
18
18
  var ICONS = {
@@ -135,6 +135,10 @@ function SiteImage({ image, className, sizes, large, eager, ctx }) {
135
135
  console.error(`[genesis-sites] refused an unsafe image source on ${ctx.pagePath}.`);
136
136
  return null;
137
137
  }
138
+ const sample = sampleImage(image.src);
139
+ if (sample) {
140
+ return /* @__PURE__ */ jsx("img", { src: sample.src, alt: image.decorative ? "" : image.alt, width: sample.width, height: sample.height, className, "data-gs-sample-image": "" });
141
+ }
138
142
  const at = (src) => src.startsWith("/") ? ctx.href(src) : src;
139
143
  const priority = claimPriority(ctx, large);
140
144
  const r = responsiveImage(
@@ -226,10 +230,23 @@ function SectionBand({
226
230
  }
227
231
  );
228
232
  }
233
+ var HeadingAccent = Line(60).optional().meta({ title: "Highlight (a phrase in the heading)", description: "Words from the heading, set in the accent colour." });
234
+ function withAccent(heading, accent, onAccentBand = false) {
235
+ const phrase = accent?.trim();
236
+ if (!phrase) return heading;
237
+ const at = heading.toLowerCase().indexOf(phrase.toLowerCase());
238
+ if (at < 0) return heading;
239
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
240
+ heading.slice(0, at),
241
+ /* @__PURE__ */ jsx("span", { "data-gs-text": "accent", className: onAccentBand ? "underline decoration-2 underline-offset-[0.2em]" : "text-[hsl(var(--primary-display,var(--primary-text)))]", children: heading.slice(at, at + phrase.length) }),
242
+ heading.slice(at + phrase.length)
243
+ ] });
244
+ }
229
245
  function SectionIntro({
230
246
  ctx,
231
247
  eyebrow,
232
248
  heading,
249
+ accent,
233
250
  body,
234
251
  align = "center",
235
252
  tone = "muted",
@@ -238,7 +255,7 @@ function SectionIntro({
238
255
  if (!heading && !body) return null;
239
256
  return /* @__PURE__ */ jsxs("div", { className: cn("flex max-w-3xl flex-col gap-4", align === "center" ? "mx-auto items-center text-center" : "items-start text-left"), children: [
240
257
  eyebrow ? /* @__PURE__ */ jsx("p", { "data-gs-text": "eyebrow", className: "text-sm font-semibold uppercase tracking-wider", children: eyebrow }) : null,
241
- heading ? /* @__PURE__ */ jsx(SectionTitle, { ctx, id: titleId(ctx), size, children: heading }) : null,
258
+ heading ? /* @__PURE__ */ jsx(SectionTitle, { ctx, id: titleId(ctx), size, children: withAccent(heading, accent, tone === "inherit") }) : null,
242
259
  body ? /* @__PURE__ */ jsx(BandLead, { "data-gs-text": "lead", tone, children: body }) : null
243
260
  ] });
244
261
  }
@@ -248,13 +265,22 @@ function HiddenTitle({ ctx, children }) {
248
265
  }
249
266
  var onAccent = (surface) => surface === "accent" || surface === "inverse";
250
267
  var schema = z.object({
268
+ eyebrow: Line(60).optional(),
251
269
  heading: Line(90),
270
+ headingAccent: HeadingAccent,
252
271
  body: Copy(320).optional(),
253
272
  primaryCta: Link,
254
273
  secondaryCta: Link.optional(),
274
+ /** The picture behind the text (the "Text over an image" variant). */
275
+ image: Image.optional(),
255
276
  surface: Surface.default("accent"),
256
277
  anchor: Anchor
257
278
  });
279
+ var Eyebrow = ({ text }) => text ? /* @__PURE__ */ jsx("p", { "data-gs-text": "eyebrow", className: "text-sm font-semibold uppercase tracking-wider", children: text }) : null;
280
+ function Title({ props, ctx, onAccentBand, size = "lg" }) {
281
+ return /* @__PURE__ */ jsx(SectionTitle, { ctx, id: titleId(ctx), size, children: withAccent(props.heading, props.headingAccent, onAccentBand) });
282
+ }
283
+ var CARD = { accent: "bg-primary text-primary-foreground", inverse: "bg-foreground text-background", muted: "bg-muted text-foreground", base: "bg-background text-foreground" };
258
284
  var ctaSection = defineSection({
259
285
  type: "cta",
260
286
  version: 1,
@@ -265,53 +291,121 @@ var ctaSection = defineSection({
265
291
  variants: [
266
292
  { id: "banner", label: "Full-width banner" },
267
293
  { id: "card", label: "Card" },
268
- { id: "split", label: "Text left, buttons right" }
294
+ { id: "split", label: "Text left, buttons right" },
295
+ { id: "image-bg", label: "Text over an image" },
296
+ { id: "sticky", label: "Bar fixed to the bottom on phones" }
269
297
  ],
270
298
  defaultVariant: "banner",
271
299
  presets: [
272
300
  { name: "Banner", variant: "banner", props: { heading: "Ready to start?", primaryCta: { label: "Get started", href: "#contact" }, surface: "accent" } },
273
- { name: "Card", variant: "card", props: { heading: "Questions? We're here.", primaryCta: { label: "Contact us", href: "/contact" }, surface: "muted" } }
301
+ { name: "Card", variant: "card", props: { heading: "Questions? We're here.", primaryCta: { label: "Contact us", href: "/contact" }, surface: "muted" } },
302
+ { name: "Phone bar", variant: "sticky", props: { heading: "Ready to start?", primaryCta: { label: "Get started", href: "#contact" }, surface: "accent" } }
274
303
  ],
275
304
  render: ({ props, variant, node, ctx }) => {
276
305
  if (variant === "card") {
277
306
  const inverted2 = onAccent(props.surface);
278
- const card = props.surface === "accent" ? "bg-primary text-primary-foreground" : props.surface === "inverse" ? "bg-foreground text-background" : props.surface === "muted" ? "bg-muted" : "border border-border";
307
+ const card = props.surface === "base" ? "border border-border" : CARD[props.surface];
279
308
  return /* @__PURE__ */ jsx(SectionBand, { node, ctx, anchor: props.anchor, width: "md", children: /* @__PURE__ */ jsxs("div", { className: `flex flex-col items-center gap-6 rounded-2xl px-6 py-12 text-center sm:px-12 ${card}`, children: [
280
- /* @__PURE__ */ jsx(SectionTitle, { ctx, id: titleId(ctx), size: "lg", children: props.heading }),
309
+ /* @__PURE__ */ jsx(Eyebrow, { text: props.eyebrow }),
310
+ /* @__PURE__ */ jsx(Title, { props, ctx, onAccentBand: inverted2 }),
281
311
  props.body ? /* @__PURE__ */ jsx(BandLead, { "data-gs-text": "lead", tone: inverted2 ? "inherit" : "muted", children: props.body }) : null,
282
312
  /* @__PURE__ */ jsx(Actions, { primary: props.primaryCta, secondary: props.secondaryCta, ctx, onAccent: inverted2, className: "sm:justify-center" })
283
313
  ] }) });
284
314
  }
315
+ if (variant === "image-bg" && props.image) {
316
+ return /* @__PURE__ */ jsxs(SectionBand, { node, ctx, anchor: props.anchor, surface: "inverse", className: "isolate overflow-hidden", children: [
317
+ /* @__PURE__ */ jsx(SiteImage, { image: { ...props.image, decorative: true }, ctx, large: true, sizes: "100vw", className: "absolute inset-0 -z-10 h-full w-full object-cover" }),
318
+ /* @__PURE__ */ jsx("div", { "aria-hidden": "true", "data-gs-scrim": "", className: "absolute inset-0 -z-10 bg-foreground/80" }),
319
+ /* @__PURE__ */ jsxs("div", { className: "mx-auto flex max-w-3xl flex-col items-center gap-6 text-center", children: [
320
+ /* @__PURE__ */ jsx(Eyebrow, { text: props.eyebrow }),
321
+ /* @__PURE__ */ jsx(Title, { props, ctx, onAccentBand: true }),
322
+ props.body ? /* @__PURE__ */ jsx(BandLead, { "data-gs-text": "lead", tone: "inherit", children: props.body }) : null,
323
+ /* @__PURE__ */ jsx(Actions, { primary: props.primaryCta, secondary: props.secondaryCta, ctx, onAccent: true, className: "sm:justify-center" })
324
+ ] })
325
+ ] });
326
+ }
285
327
  const inverted = onAccent(props.surface);
328
+ if (variant === "sticky") {
329
+ return /* @__PURE__ */ jsx(SectionBand, { node, ctx, anchor: props.anchor, surface: props.surface, className: "max-md:py-0!", children: /* @__PURE__ */ jsxs(
330
+ "div",
331
+ {
332
+ "data-gs-part": "sticky-bar",
333
+ className: cn(
334
+ "fixed inset-x-0 bottom-0 z-40 flex items-center justify-between gap-4 border-t border-current/20 px-4 pt-3 pb-[max(0.75rem,env(safe-area-inset-bottom))] shadow-lg",
335
+ CARD[props.surface],
336
+ "md:static md:z-auto md:flex-row md:gap-8 md:border-0 md:bg-transparent md:p-0 md:text-inherit md:shadow-none"
337
+ ),
338
+ children: [
339
+ /* @__PURE__ */ jsxs("div", { className: "flex min-w-0 flex-col gap-3", children: [
340
+ /* @__PURE__ */ jsx("div", { className: "hidden md:block", children: /* @__PURE__ */ jsx(Eyebrow, { text: props.eyebrow }) }),
341
+ /* @__PURE__ */ jsx(Title, { props, ctx, onAccentBand: inverted, size: "sm" }),
342
+ props.body ? /* @__PURE__ */ jsx(BandLead, { "data-gs-text": "lead", tone: inverted ? "inherit" : "muted", className: "hidden md:block", children: props.body }) : null
343
+ ] }),
344
+ /* @__PURE__ */ jsxs("div", { className: "flex shrink-0 gap-3", children: [
345
+ /* @__PURE__ */ jsx(ButtonLink, { link: props.primaryCta, ctx, tone: inverted ? "inverse" : "primary" }),
346
+ props.secondaryCta ? /* @__PURE__ */ jsx(ButtonLink, { link: props.secondaryCta, ctx, tone: "outline", className: "hidden md:inline-flex" }) : null
347
+ ] })
348
+ ]
349
+ }
350
+ ) });
351
+ }
286
352
  if (variant === "split") {
287
353
  return /* @__PURE__ */ jsx(SectionBand, { node, ctx, anchor: props.anchor, surface: props.surface, children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-8 md:flex-row md:items-center md:justify-between", children: [
288
354
  /* @__PURE__ */ jsxs("div", { className: "flex max-w-2xl flex-col gap-3", children: [
289
- /* @__PURE__ */ jsx(SectionTitle, { ctx, id: titleId(ctx), size: "lg", children: props.heading }),
355
+ /* @__PURE__ */ jsx(Eyebrow, { text: props.eyebrow }),
356
+ /* @__PURE__ */ jsx(Title, { props, ctx, onAccentBand: inverted }),
290
357
  props.body ? /* @__PURE__ */ jsx(BandLead, { "data-gs-text": "lead", tone: inverted ? "inherit" : "muted", children: props.body }) : null
291
358
  ] }),
292
359
  /* @__PURE__ */ jsx(Actions, { primary: props.primaryCta, secondary: props.secondaryCta, ctx, onAccent: inverted, className: "shrink-0" })
293
360
  ] }) });
294
361
  }
295
362
  return /* @__PURE__ */ jsx(SectionBand, { node, ctx, anchor: props.anchor, surface: props.surface, children: /* @__PURE__ */ jsxs("div", { className: "mx-auto flex max-w-3xl flex-col items-center gap-6 text-center", children: [
296
- /* @__PURE__ */ jsx(SectionTitle, { ctx, id: titleId(ctx), size: "lg", children: props.heading }),
363
+ /* @__PURE__ */ jsx(Eyebrow, { text: props.eyebrow }),
364
+ /* @__PURE__ */ jsx(Title, { props, ctx, onAccentBand: inverted }),
297
365
  props.body ? /* @__PURE__ */ jsx(BandLead, { "data-gs-text": "lead", tone: inverted ? "inherit" : "muted", children: props.body }) : null,
298
366
  /* @__PURE__ */ jsx(Actions, { primary: props.primaryCta, secondary: props.secondaryCta, ctx, onAccent: inverted, className: "sm:justify-center" })
299
367
  ] }) });
300
368
  }
301
369
  });
370
+ var Answer = RichText.refine((doc) => richTextPlainLength(doc) > 0, { message: "Write an answer." }).meta({ title: "Answer", "x-genesis-kind": "rich-text" });
302
371
  var schema2 = z.object({
372
+ eyebrow: Line(60).optional(),
303
373
  heading: Line(90),
304
374
  body: Copy(320).optional(),
305
- items: z.array(z.object({ question: Line(160), answer: Copy(1200).min(1) })).min(1).max(30),
375
+ items: z.array(z.object({ question: Line(160), answer: Answer })).min(1).max(30),
306
376
  surface: Surface.default("base"),
307
377
  anchor: Anchor
308
378
  });
309
- function Answer({ text, muted }) {
310
- return /* @__PURE__ */ jsx("div", { className: muted ? "flex flex-col gap-3 text-muted-foreground" : "flex flex-col gap-3", children: text.split(/\n{2,}/).map((p, i) => /* @__PURE__ */ jsx("p", { className: "whitespace-pre-line", children: p }, i)) });
379
+ function richTextPlainLength(node) {
380
+ if (!node || typeof node !== "object") return 0;
381
+ const n = node;
382
+ const own = n.type === "text" && typeof n.text === "string" ? n.text.trim().length : 0;
383
+ return own + (Array.isArray(n.content) ? n.content.reduce((sum, c) => sum + richTextPlainLength(c), 0) : 0);
384
+ }
385
+ function answerToRichText(text) {
386
+ const paragraphs = text.split(/\n{2,}/).map((p) => p.trim()).filter(Boolean).map((p) => ({
387
+ type: "paragraph",
388
+ content: p.split("\n").flatMap((line, i) => [...i > 0 ? [{ type: "hardBreak" }] : [], ...line ? [{ type: "text", text: line }] : []])
389
+ }));
390
+ return { type: "doc", content: paragraphs.length ? paragraphs : [{ type: "paragraph" }] };
391
+ }
392
+ function v1ToV2(props) {
393
+ const items = Array.isArray(props.items) ? props.items : [];
394
+ return {
395
+ ...props,
396
+ items: items.map((item) => {
397
+ const it = item;
398
+ return typeof it.answer === "string" ? { ...it, answer: answerToRichText(it.answer) } : it;
399
+ })
400
+ };
401
+ }
402
+ function AnswerView({ doc, muted }) {
403
+ return /* @__PURE__ */ jsx(RichText$1, { value: doc, headingLevels: [4], className: cn(richTextClassName, "[&_p+p]:mt-3", muted && "text-muted-foreground") });
311
404
  }
312
405
  var faqSection = defineSection({
313
406
  type: "faq",
314
- version: 1,
407
+ version: 2,
408
+ migrations: { 2: v1ToV2 },
315
409
  label: "FAQ",
316
410
  description: "Questions and answers. Works without script: each answer opens in place.",
317
411
  category: "content",
@@ -324,19 +418,20 @@ var faqSection = defineSection({
324
418
  presets: [
325
419
  {
326
420
  name: "FAQ",
421
+ sample: true,
327
422
  variant: "accordion",
328
- props: { heading: "Questions", items: [{ question: "A question people ask?", answer: "A short, direct answer." }, { question: "Another question?", answer: "Another answer." }] }
423
+ props: { heading: "Questions", items: [{ question: "A question people ask?", answer: answerToRichText("A short, direct answer.") }, { question: "Another question?", answer: answerToRichText("Another answer.") }] }
329
424
  }
330
425
  ],
331
426
  render: ({ props, variant, node, ctx }) => {
332
427
  const inverted = onAccent(props.surface);
333
- const intro = /* @__PURE__ */ jsx(SectionIntro, { ctx, heading: props.heading, body: props.body, tone: inverted ? "inherit" : "muted" });
428
+ const intro = /* @__PURE__ */ jsx(SectionIntro, { ctx, eyebrow: props.eyebrow, heading: props.heading, body: props.body, tone: inverted ? "inherit" : "muted" });
334
429
  if (variant === "list") {
335
430
  return /* @__PURE__ */ jsxs(SectionBand, { node, ctx, anchor: props.anchor, surface: props.surface, children: [
336
431
  intro,
337
432
  /* @__PURE__ */ jsx("div", { className: "mt-12 grid gap-x-12 gap-y-10 md:grid-cols-2", children: props.items.map((item, i) => /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-2", children: [
338
433
  /* @__PURE__ */ jsx(ItemTitle, { ctx, children: item.question }),
339
- /* @__PURE__ */ jsx(Answer, { text: item.answer, muted: !inverted })
434
+ /* @__PURE__ */ jsx(AnswerView, { doc: item.answer, muted: !inverted })
340
435
  ] }, i)) })
341
436
  ] });
342
437
  }
@@ -347,7 +442,7 @@ var faqSection = defineSection({
347
442
  /* @__PURE__ */ jsx("span", { children: item.question }),
348
443
  /* @__PURE__ */ jsx(ChevronDown, { "aria-hidden": "true", className: "size-5 shrink-0 transition-transform group-open:rotate-180 motion-reduce:transition-none" })
349
444
  ] }),
350
- /* @__PURE__ */ jsx("div", { className: "pb-5", children: /* @__PURE__ */ jsx(Answer, { text: item.answer, muted: !inverted }) })
445
+ /* @__PURE__ */ jsx("div", { className: "pb-5", children: /* @__PURE__ */ jsx(AnswerView, { doc: item.answer, muted: !inverted }) })
351
446
  ] }, i)) })
352
447
  ] });
353
448
  }
@@ -361,13 +456,18 @@ var Item = z.object({
361
456
  /** A button for this item: a step's own next action. */
362
457
  cta: Link.optional(),
363
458
  /** A short aside under the copy ("When: Saturdays at 8 am"). */
364
- note: Copy(300).optional()
459
+ note: Copy(300).optional(),
460
+ /** An id for links straight to this item (`/services#evenings`). */
461
+ anchor: Anchor
365
462
  });
463
+ var CompareList = z.object({ heading: Line(60), items: z.array(Line(160)).min(1).max(20) });
366
464
  var schema3 = z.object({
367
465
  eyebrow: Line(60).optional(),
368
466
  heading: Line(90),
369
467
  body: Copy(320).optional(),
370
- items: z.array(Item).min(1).max(12),
468
+ items: z.array(Item).max(12).default([]),
469
+ /** Two lists side by side: what's included, and what isn't. */
470
+ compare: z.object({ included: CompareList, excluded: CompareList }).optional(),
371
471
  columns: z.union([z.literal(2), z.literal(3), z.literal(4)]).default(3),
372
472
  /** Number the items (01, 02, …) in place of their icons: an ordered list. The `steps` variant always is. */
373
473
  numbered: z.boolean().default(false),
@@ -375,7 +475,7 @@ var schema3 = z.object({
375
475
  cta: Link.optional(),
376
476
  surface: Surface.default("base"),
377
477
  anchor: Anchor
378
- });
478
+ }).refine((p) => p.items.length > 0 || p.compare, { message: "Add an item, or a comparison.", path: ["items"] });
379
479
  var COLUMNS = { 2: "sm:grid-cols-2", 3: "sm:grid-cols-2 lg:grid-cols-3", 4: "sm:grid-cols-2 lg:grid-cols-4" };
380
480
  var featuresSection = defineSection({
381
481
  type: "features",
@@ -394,6 +494,7 @@ var featuresSection = defineSection({
394
494
  presets: [
395
495
  {
396
496
  name: "Three features",
497
+ sample: true,
397
498
  variant: "grid",
398
499
  props: {
399
500
  heading: "What you get",
@@ -406,11 +507,13 @@ var featuresSection = defineSection({
406
507
  },
407
508
  {
408
509
  name: "Feature list",
510
+ sample: true,
409
511
  variant: "list",
410
512
  props: { heading: "Why people choose us", columns: 2, items: [{ title: "A reason", body: "In a sentence.", icon: "check" }, { title: "Another reason", body: "In a sentence.", icon: "check" }] }
411
513
  },
412
514
  {
413
515
  name: "Numbered steps",
516
+ sample: true,
414
517
  variant: "steps",
415
518
  props: {
416
519
  heading: "How to start",
@@ -420,6 +523,18 @@ var featuresSection = defineSection({
420
523
  { title: "Pick a plan", body: "Choose what fits your week.", cta: { label: "See the plans", href: "/plans" } }
421
524
  ]
422
525
  }
526
+ },
527
+ {
528
+ name: "Included and not included",
529
+ sample: true,
530
+ variant: "grid",
531
+ props: {
532
+ heading: "What's in it",
533
+ compare: {
534
+ included: { heading: "Included", items: ["A first thing", "A second thing"] },
535
+ excluded: { heading: "Not included", items: ["Something people ask about"] }
536
+ }
537
+ }
423
538
  }
424
539
  ],
425
540
  render: ({ props, variant, node, ctx }) => {
@@ -433,6 +548,20 @@ var featuresSection = defineSection({
433
548
  ] });
434
549
  const sectionCta = props.cta ? /* @__PURE__ */ jsx("div", { className: "mt-10 flex justify-center", children: /* @__PURE__ */ jsx(ButtonLink, { link: props.cta, ctx, tone: inverted ? "inverse" : "primary" }) }) : null;
435
550
  const List = props.numbered ? "ol" : "ul";
551
+ const itemId = (item) => item.anchor ? { id: item.anchor } : {};
552
+ const anchored = (item) => item.anchor ? "scroll-mt-20" : void 0;
553
+ const compare = props.compare ? /* @__PURE__ */ jsx("div", { "data-gs-part": "compare", className: cn("grid gap-6 md:grid-cols-2", props.items.length ? "mt-12" : "mt-10"), children: ["included", "excluded"].map((side) => {
554
+ const list = props.compare[side];
555
+ const Glyph = side === "included" ? Check : Minus;
556
+ return /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-4 rounded-xl border border-border bg-background p-6 text-foreground sm:p-8", children: [
557
+ /* @__PURE__ */ jsx(ItemTitle, { ctx, className: "text-xl", children: list.heading }),
558
+ /* @__PURE__ */ jsx("ul", { className: "flex flex-col gap-3", children: list.items.map((line, i) => /* @__PURE__ */ jsxs("li", { className: "flex gap-3", children: [
559
+ /* @__PURE__ */ jsx(Glyph, { "aria-hidden": "true", className: cn("mt-1 size-4 shrink-0", side === "included" ? "text-primary" : "text-muted-foreground") }),
560
+ /* @__PURE__ */ jsx("span", { children: line })
561
+ ] }, i)) })
562
+ ] }, side);
563
+ }) }) : null;
564
+ const items = (list) => props.items.length ? list : null;
436
565
  const Icon = (name) => {
437
566
  if (!name) return null;
438
567
  const Glyph = ICONS[name];
@@ -441,7 +570,7 @@ var featuresSection = defineSection({
441
570
  if (variant === "steps") {
442
571
  return /* @__PURE__ */ jsxs(SectionBand, { node, ctx, anchor: props.anchor, surface: props.surface, children: [
443
572
  intro,
444
- /* @__PURE__ */ jsx("ol", { className: cn("mt-12 grid gap-6", props.items.length > 3 ? "md:grid-cols-2" : "", props.items.length === 3 && "lg:grid-cols-3"), children: props.items.map((item, i) => /* @__PURE__ */ jsxs("li", { className: "flex flex-col gap-4 rounded-xl border border-border bg-background p-6 text-foreground sm:p-8", children: [
573
+ items(/* @__PURE__ */ jsx("ol", { className: cn("mt-12 grid gap-6", props.items.length > 3 ? "md:grid-cols-2" : "", props.items.length === 3 && "lg:grid-cols-3"), children: props.items.map((item, i) => /* @__PURE__ */ jsxs("li", { ...itemId(item), className: cn("flex flex-col gap-4 rounded-xl border border-border bg-background p-6 text-foreground sm:p-8", anchored(item)), children: [
445
574
  /* @__PURE__ */ jsx("span", { "aria-hidden": "true", className: "font-display text-4xl font-bold leading-none", children: String(i + 1).padStart(2, "0") }),
446
575
  item.image ? /* @__PURE__ */ jsx(SiteImage, { image: item.image, ctx, sizes: "(min-width: 1280px) 400px, (min-width: 1024px) 33vw, 100vw", className: "aspect-video w-full rounded-lg object-cover" }) : null,
447
576
  /* @__PURE__ */ jsx(ItemTitle, { ctx, className: "text-2xl", children: item.title }),
@@ -449,14 +578,15 @@ var featuresSection = defineSection({
449
578
  item.note ? /* @__PURE__ */ jsx("p", { className: "border-l-2 border-primary pl-3 text-sm italic", children: item.note }) : null,
450
579
  item.link ? /* @__PURE__ */ jsx(TextLink, { link: item.link, ctx, className: "font-medium underline" }) : null,
451
580
  item.cta ? /* @__PURE__ */ jsx(ButtonLink, { link: item.cta, ctx, tone: "primary", className: "mt-auto self-start" }) : null
452
- ] }, i)) }),
581
+ ] }, i)) })),
582
+ compare,
453
583
  sectionCta
454
584
  ] });
455
585
  }
456
586
  if (variant === "alternating") {
457
587
  return /* @__PURE__ */ jsxs(SectionBand, { node, ctx, anchor: props.anchor, surface: props.surface, children: [
458
588
  intro,
459
- /* @__PURE__ */ jsx(List, { className: "mt-12 flex flex-col gap-12 md:gap-16", children: props.items.map((item, i) => /* @__PURE__ */ jsxs("li", { className: "grid items-center gap-8 md:grid-cols-2 md:gap-12", children: [
589
+ items(/* @__PURE__ */ jsx(List, { className: "mt-12 flex flex-col gap-12 md:gap-16", children: props.items.map((item, i) => /* @__PURE__ */ jsxs("li", { ...itemId(item), className: cn("grid items-center gap-8 md:grid-cols-2 md:gap-12", anchored(item)), children: [
460
590
  /* @__PURE__ */ jsxs("div", { className: cn("flex flex-col gap-3", i % 2 === 1 && "md:order-2"), children: [
461
591
  props.numbered ? numberBadge(i) : Icon(item.icon),
462
592
  /* @__PURE__ */ jsx(ItemTitle, { ctx, className: "text-2xl", children: item.title }),
@@ -464,27 +594,29 @@ var featuresSection = defineSection({
464
594
  extras(item)
465
595
  ] }),
466
596
  item.image ? /* @__PURE__ */ jsx(SiteImage, { image: item.image, ctx, large: true, sizes: "(min-width: 1280px) 640px, (min-width: 768px) 50vw, 100vw", className: "aspect-[4/3] w-full rounded-xl object-cover" }) : /* @__PURE__ */ jsx("div", { "aria-hidden": "true", className: "hidden aspect-[4/3] w-full rounded-xl bg-muted md:block" })
467
- ] }, i)) }),
597
+ ] }, i)) })),
598
+ compare,
468
599
  sectionCta
469
600
  ] });
470
601
  }
471
602
  if (variant === "list") {
472
603
  return /* @__PURE__ */ jsxs(SectionBand, { node, ctx, anchor: props.anchor, surface: props.surface, children: [
473
604
  intro,
474
- /* @__PURE__ */ jsx(List, { className: cn("mt-12 grid gap-x-10 gap-y-8", props.columns >= 2 && "sm:grid-cols-2", props.columns >= 3 && "lg:grid-cols-3"), children: props.items.map((item, i) => /* @__PURE__ */ jsxs("li", { className: "flex gap-4", children: [
605
+ items(/* @__PURE__ */ jsx(List, { className: cn("mt-12 grid gap-x-10 gap-y-8", props.columns >= 2 && "sm:grid-cols-2", props.columns >= 3 && "lg:grid-cols-3"), children: props.items.map((item, i) => /* @__PURE__ */ jsxs("li", { ...itemId(item), className: cn("flex gap-4", anchored(item)), children: [
475
606
  props.numbered ? numberBadge(i) : Icon(item.icon ?? "check"),
476
607
  /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1", children: [
477
608
  /* @__PURE__ */ jsx(ItemTitle, { ctx, children: item.title }),
478
609
  /* @__PURE__ */ jsx("p", { className: inverted ? void 0 : "text-muted-foreground", children: item.body }),
479
610
  extras(item, "mt-1")
480
611
  ] })
481
- ] }, i)) }),
612
+ ] }, i)) })),
613
+ compare,
482
614
  sectionCta
483
615
  ] });
484
616
  }
485
617
  return /* @__PURE__ */ jsxs(SectionBand, { node, ctx, anchor: props.anchor, surface: props.surface, children: [
486
618
  intro,
487
- /* @__PURE__ */ jsx(List, { className: cn("mt-12 grid gap-6", COLUMNS[props.columns]), children: props.items.map((item, i) => /* @__PURE__ */ jsxs("li", { className: "flex flex-col gap-3 rounded-xl border border-border bg-background p-6 text-foreground", children: [
619
+ items(/* @__PURE__ */ jsx(List, { className: cn("mt-12 grid gap-6", COLUMNS[props.columns]), children: props.items.map((item, i) => /* @__PURE__ */ jsxs("li", { ...itemId(item), className: cn("flex flex-col gap-3 rounded-xl border border-border bg-background p-6 text-foreground", anchored(item)), children: [
488
620
  item.image ? /* @__PURE__ */ jsx(SiteImage, { image: item.image, ctx, sizes: "(min-width: 1280px) 400px, (min-width: 1024px) 33vw, (min-width: 640px) 50vw, 100vw", className: "aspect-video w-full rounded-lg object-cover" }) : null,
489
621
  props.numbered ? numberBadge(i) : item.image ? null : Icon(item.icon),
490
622
  /* @__PURE__ */ jsx(ItemTitle, { ctx, children: item.title }),
@@ -492,7 +624,8 @@ var featuresSection = defineSection({
492
624
  item.note ? /* @__PURE__ */ jsx("p", { className: "border-l-2 border-primary pl-3 text-sm italic", children: item.note }) : null,
493
625
  item.link ? /* @__PURE__ */ jsx(TextLink, { link: item.link, ctx, className: "mt-auto font-medium underline" }) : null,
494
626
  item.cta ? /* @__PURE__ */ jsx(ButtonLink, { link: item.cta, ctx, tone: "outline", className: cn("self-start", !item.link && "mt-auto") }) : null
495
- ] }, i)) }),
627
+ ] }, i)) })),
628
+ compare,
496
629
  sectionCta
497
630
  ] });
498
631
  }
@@ -501,7 +634,10 @@ var schema4 = z.object({
501
634
  tagline: Copy(200).optional(),
502
635
  columns: z.array(z.object({ heading: Line(40), links: z.array(Link).min(1).max(8) })).max(4).default([]),
503
636
  links: z.array(Link).max(12).default([]),
637
+ /** `{year}` becomes the current year ("© {year} Your business"). */
504
638
  copyright: Line(120).optional(),
639
+ /** A button under the line about you. */
640
+ cta: Link.optional(),
505
641
  surface: Surface.default("inverse")
506
642
  });
507
643
  var footerSection = defineSection({
@@ -527,11 +663,13 @@ var footerSection = defineSection({
527
663
  const attrs = bandAttrs(node, ctx, void 0, false);
528
664
  const quiet = props.surface === "base" || props.surface === "muted" ? "text-muted-foreground" : void 0;
529
665
  const name = /* @__PURE__ */ jsx("p", { className: "font-display text-lg font-bold", children: ctx.site.name });
530
- const copyright = props.copyright ? /* @__PURE__ */ jsx("p", { className: cn("text-sm", quiet), children: props.copyright }) : null;
666
+ const copyright = props.copyright ? /* @__PURE__ */ jsx("p", { className: cn("text-sm", quiet), children: props.copyright.replace(/\{year\}/g, String((/* @__PURE__ */ new Date()).getFullYear())) }) : null;
667
+ const button = props.cta ? /* @__PURE__ */ jsx(ButtonLink, { link: props.cta, ctx, tone: onAccent(props.surface) ? "inverse" : "primary", className: "self-start" }) : null;
531
668
  const row = (links) => links.length ? /* @__PURE__ */ jsx("nav", { "aria-label": "Footer", children: /* @__PURE__ */ jsx("ul", { className: "flex flex-wrap gap-x-6 gap-y-2", children: links.map((link, i) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(TextLink, { link, ctx, className: "text-sm underline" }) }, i)) }) }) : null;
532
669
  if (variant === "minimal") {
533
670
  return /* @__PURE__ */ jsx(Band, { ...attrs, as: "footer", surface: props.surface, spacing: "sm", children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between", children: [
534
671
  copyright ?? name,
672
+ button,
535
673
  row(props.links)
536
674
  ] }) });
537
675
  }
@@ -540,7 +678,8 @@ var footerSection = defineSection({
540
678
  /* @__PURE__ */ jsxs("div", { className: "grid gap-10 md:grid-cols-[2fr_repeat(3,1fr)]", children: [
541
679
  /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-3", children: [
542
680
  name,
543
- props.tagline ? /* @__PURE__ */ jsx("p", { className: cn("max-w-sm", quiet), children: props.tagline }) : null
681
+ props.tagline ? /* @__PURE__ */ jsx("p", { className: cn("max-w-sm", quiet), children: props.tagline }) : null,
682
+ button
544
683
  ] }),
545
684
  props.columns.map((col, i) => /* @__PURE__ */ jsxs("nav", { "aria-label": col.heading, className: "flex flex-col gap-3", children: [
546
685
  /* @__PURE__ */ jsx("p", { className: "text-sm font-semibold uppercase tracking-wider", children: col.heading }),
@@ -557,7 +696,8 @@ var footerSection = defineSection({
557
696
  /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-6 md:flex-row md:items-start md:justify-between", children: [
558
697
  /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-2", children: [
559
698
  name,
560
- props.tagline ? /* @__PURE__ */ jsx("p", { className: cn("max-w-md", quiet), children: props.tagline }) : null
699
+ props.tagline ? /* @__PURE__ */ jsx("p", { className: cn("max-w-md", quiet), children: props.tagline }) : null,
700
+ button
561
701
  ] }),
562
702
  row(props.links)
563
703
  ] }),
@@ -766,7 +906,7 @@ var schema5 = z.object({
766
906
  heading: Line(90),
767
907
  body: Copy(400).optional(),
768
908
  /** The form's slug, which the host's forms resolver knows. */
769
- form: z.string().regex(/^[a-z0-9][a-z0-9-]{0,79}$/, "A form slug is lowercase letters, digits and hyphens."),
909
+ form: z.string().regex(/^[a-z0-9][a-z0-9-]{0,79}$/, "A form slug is lowercase letters, digits and hyphens.").meta({ "x-genesis-kind": "form" }),
770
910
  surface: Surface.default("base"),
771
911
  anchor: Anchor.default("contact")
772
912
  });
@@ -800,8 +940,8 @@ function EmbeddedForm({ slug, heading, ctx }) {
800
940
  ] });
801
941
  }
802
942
  if (resolved.kind === "embed") {
803
- if (!isSafeHref(resolved.url) || !resolved.url.startsWith("https://")) {
804
- console.error(`[genesis-sites] refused the form embed URL for "${slug}": it must be https.`);
943
+ if (!(isSafeHref(resolved.url) && resolved.url.startsWith("https://")) && !isLocalDevUrl(resolved.url)) {
944
+ console.error(`[genesis-sites] refused the form embed URL for "${slug}": it must be https (or http on localhost).`);
805
945
  return null;
806
946
  }
807
947
  return /* @__PURE__ */ jsx(
@@ -886,6 +1026,7 @@ var formEmbedSection = defineSection({
886
1026
  }
887
1027
  });
888
1028
  var schema6 = z.object({
1029
+ eyebrow: Line(60).optional(),
889
1030
  heading: Line(90).optional(),
890
1031
  body: Copy(320).optional(),
891
1032
  images: z.array(Image.extend({ caption: Line(140).optional() })).min(1).max(24),
@@ -908,11 +1049,11 @@ var gallerySection = defineSection({
908
1049
  {
909
1050
  name: "Photo grid",
910
1051
  variant: "grid",
911
- props: { heading: "Inside", images: [{ src: "/photo-1.jpg", alt: "Describe the photo" }, { src: "/photo-2.jpg", alt: "Describe the photo" }, { src: "/photo-3.jpg", alt: "Describe the photo" }] }
1052
+ props: { heading: "Inside", images: [{ src: samplePath("photo") }, { src: samplePath("photo") }, { src: samplePath("photo") }] }
912
1053
  }
913
1054
  ],
914
1055
  render: ({ props, variant, node, ctx }) => {
915
- const intro = props.heading ? /* @__PURE__ */ jsx(SectionIntro, { ctx, heading: props.heading, body: props.body, tone: onAccent(props.surface) ? "inherit" : "muted" }) : /* @__PURE__ */ jsx(HiddenTitle, { ctx, children: "Gallery" });
1056
+ const intro = props.heading ? /* @__PURE__ */ jsx(SectionIntro, { ctx, eyebrow: props.eyebrow, heading: props.heading, body: props.body, tone: onAccent(props.surface) ? "inherit" : "muted" }) : /* @__PURE__ */ jsx(HiddenTitle, { ctx, children: "Gallery" });
916
1057
  const masonry = variant === "masonry";
917
1058
  return /* @__PURE__ */ jsxs(SectionBand, { node, ctx, anchor: props.anchor, surface: props.surface, children: [
918
1059
  intro,
@@ -934,10 +1075,13 @@ var gallerySection = defineSection({
934
1075
  var schema7 = z.object({
935
1076
  eyebrow: Line(60).optional(),
936
1077
  heading: Line(90),
1078
+ headingAccent: HeadingAccent,
937
1079
  body: Copy(320).optional(),
938
1080
  primaryCta: Link.optional(),
939
1081
  secondaryCta: Link.optional(),
940
1082
  image: Image.optional(),
1083
+ /** Figures under the buttons ("12 weeks", "4 hosts"): two to five. */
1084
+ stats: z.array(z.object({ value: Line(20), label: Line(60) })).max(5).default([]).refine((s) => s.length !== 1, { message: "Add at least two figures, or none." }),
941
1085
  anchor: Anchor
942
1086
  });
943
1087
  var heroSection = defineSection({
@@ -958,11 +1102,13 @@ var heroSection = defineSection({
958
1102
  presets: [
959
1103
  {
960
1104
  name: "Centred hero",
1105
+ sample: true,
961
1106
  variant: "centered",
962
1107
  props: { heading: "Say what you do, for whom", body: "One or two sentences on why it matters.", primaryCta: { label: "Get started", href: "#contact" } }
963
1108
  },
964
1109
  {
965
1110
  name: "Hero with image",
1111
+ sample: true,
966
1112
  variant: "split",
967
1113
  props: { heading: "Say what you do, for whom", body: "One or two sentences on why it matters.", primaryCta: { label: "Get started", href: "#contact" } }
968
1114
  }
@@ -970,9 +1116,13 @@ var heroSection = defineSection({
970
1116
  render: ({ props, variant, node, ctx }) => {
971
1117
  const intro = (align, tone = "muted") => /* @__PURE__ */ jsxs("div", { className: align === "center" ? "mx-auto flex max-w-3xl flex-col items-center gap-6 text-center" : "flex flex-col items-start gap-6", children: [
972
1118
  props.eyebrow ? /* @__PURE__ */ jsx("p", { "data-gs-text": "eyebrow", className: "text-sm font-semibold uppercase tracking-wider", children: props.eyebrow }) : null,
973
- /* @__PURE__ */ jsx(SectionTitle, { ctx, id: titleId(ctx), size: "xl", children: props.heading }),
1119
+ /* @__PURE__ */ jsx(SectionTitle, { ctx, id: titleId(ctx), size: "xl", children: withAccent(props.heading, props.headingAccent, tone === "inherit") }),
974
1120
  props.body ? /* @__PURE__ */ jsx(BandLead, { "data-gs-text": "lead", tone, children: props.body }) : null,
975
- /* @__PURE__ */ jsx(Actions, { primary: props.primaryCta, secondary: props.secondaryCta, ctx, onAccent: tone === "inherit", className: align === "center" ? "sm:justify-center" : void 0 })
1121
+ /* @__PURE__ */ jsx(Actions, { primary: props.primaryCta, secondary: props.secondaryCta, ctx, onAccent: tone === "inherit", className: align === "center" ? "sm:justify-center" : void 0 }),
1122
+ props.stats.length ? /* @__PURE__ */ jsx("dl", { "data-gs-part": "hero-stats", className: cn("mt-4 grid w-full grid-cols-2 gap-x-8 gap-y-4 border-t border-current/20 pt-6", props.stats.length >= 3 && "sm:grid-cols-3", props.stats.length === 4 && "lg:grid-cols-4", props.stats.length === 5 && "lg:grid-cols-5"), children: props.stats.map((stat, i) => /* @__PURE__ */ jsxs("div", { className: cn("flex flex-col gap-1", align === "center" ? "items-center" : "items-start"), children: [
1123
+ /* @__PURE__ */ jsx("dt", { className: cn("order-2 text-sm", tone === "muted" && "text-muted-foreground"), children: stat.label }),
1124
+ /* @__PURE__ */ jsx("dd", { className: "order-1 font-display text-3xl font-bold leading-none", children: stat.value })
1125
+ ] }, i)) }) : null
976
1126
  ] });
977
1127
  if (variant === "image-bg" && props.image) {
978
1128
  return /* @__PURE__ */ jsxs(SectionBand, { node, ctx, anchor: props.anchor, surface: "inverse", spacing: "lg", className: "isolate overflow-hidden", children: [
@@ -991,6 +1141,7 @@ var heroSection = defineSection({
991
1141
  }
992
1142
  });
993
1143
  var schema8 = z.object({
1144
+ eyebrow: Line(60).optional(),
994
1145
  heading: Line(90).optional(),
995
1146
  items: z.array(
996
1147
  z.object({
@@ -1023,10 +1174,11 @@ var logosSection = defineSection({
1023
1174
  {
1024
1175
  name: "Logo row",
1025
1176
  variant: "row",
1026
- props: { heading: "Trusted by", items: [{ name: "Partner", image: { src: "/logo-partner.svg", alt: "Partner" } }] }
1177
+ props: { heading: "Trusted by", items: [{ name: "Partner", image: { src: samplePath("logo"), alt: "Partner" } }] }
1027
1178
  },
1028
1179
  {
1029
1180
  name: "Trust bar",
1181
+ sample: true,
1030
1182
  variant: "trust-bar",
1031
1183
  props: { claim: "Why people trust us", items: [{ name: "Friendly people" }, { name: "Fair prices" }, { name: "Free first visit" }], surface: "inverse" }
1032
1184
  }
@@ -1041,14 +1193,14 @@ var logosSection = defineSection({
1041
1193
  };
1042
1194
  if (variant === "trust-bar") {
1043
1195
  return /* @__PURE__ */ jsxs(SectionBand, { node, ctx, anchor: props.anchor, surface: props.surface, spacing: "sm", children: [
1044
- props.heading ? /* @__PURE__ */ jsx(SectionIntro, { ctx, heading: props.heading, size: "sm", tone: inverted ? "inherit" : "muted" }) : /* @__PURE__ */ jsx(HiddenTitle, { ctx, children: props.claim ?? "Why people trust us" }),
1196
+ props.heading ? /* @__PURE__ */ jsx(SectionIntro, { ctx, eyebrow: props.eyebrow, heading: props.heading, size: "sm", tone: inverted ? "inherit" : "muted" }) : /* @__PURE__ */ jsx(HiddenTitle, { ctx, children: props.claim ?? "Why people trust us" }),
1045
1197
  /* @__PURE__ */ jsxs("div", { className: cn("flex flex-col items-center gap-4 md:flex-row md:justify-between", props.heading && "mt-6"), children: [
1046
1198
  props.claim ? /* @__PURE__ */ jsx("p", { className: "text-center font-display text-lg font-semibold md:text-left", children: props.claim }) : null,
1047
1199
  /* @__PURE__ */ jsx("ul", { className: "flex flex-wrap items-center justify-center gap-x-6 gap-y-3 md:justify-end", children: props.items.map((item, i) => /* @__PURE__ */ jsx("li", { className: "flex items-center", children: linked(item, badge(item, true)) }, i)) })
1048
1200
  ] })
1049
1201
  ] });
1050
1202
  }
1051
- const intro = props.heading ? /* @__PURE__ */ jsx(SectionIntro, { ctx, heading: props.heading, size: "md", tone: inverted ? "inherit" : "muted" }) : /* @__PURE__ */ jsx(HiddenTitle, { ctx, children: "Logos" });
1203
+ const intro = props.heading ? /* @__PURE__ */ jsx(SectionIntro, { ctx, eyebrow: props.eyebrow, heading: props.heading, size: "md", tone: inverted ? "inherit" : "muted" }) : /* @__PURE__ */ jsx(HiddenTitle, { ctx, children: "Logos" });
1052
1204
  return /* @__PURE__ */ jsxs(SectionBand, { node, ctx, anchor: props.anchor, surface: props.surface, spacing: "sm", children: [
1053
1205
  intro,
1054
1206
  /* @__PURE__ */ jsx("ul", { className: cn("items-center", props.heading && "mt-8", variant === "grid" ? "grid grid-cols-2 gap-8 sm:grid-cols-3 lg:grid-cols-4" : "flex flex-wrap justify-center gap-x-10 gap-y-6"), children: props.items.map((item, i) => /* @__PURE__ */ jsx("li", { className: "flex justify-center", children: linked(item, badge(item, false)) }, i)) })
@@ -1060,7 +1212,17 @@ var schema9 = z.object({
1060
1212
  logo: Image.optional(),
1061
1213
  /** Show the site's name beside the logo (always shown when there is no logo). */
1062
1214
  showName: z.boolean().default(true),
1063
- cta: Link.optional()
1215
+ /** A line under the site's name ("Riverside · Since 2010"). */
1216
+ tagline: Line(80).optional(),
1217
+ cta: Link.optional(),
1218
+ /** The button's label where room is short (tablets and the logo-only header on phones): "Book", say, for "Book a free visit". */
1219
+ ctaShortLabel: Line(24).optional(),
1220
+ /** Ways to reach you, at the foot of the phone menu. */
1221
+ drawerContact: z.object({
1222
+ phone: Line(40).optional(),
1223
+ email: z.email().max(120).optional(),
1224
+ address: Copy(200).optional()
1225
+ }).optional()
1064
1226
  });
1065
1227
  function isCurrent(item, ctx) {
1066
1228
  return item.href === ctx.pagePath;
@@ -1075,7 +1237,11 @@ function Brand({ props, ctx }) {
1075
1237
  className: "inline-flex min-h-11 items-center gap-3 rounded-md font-display text-lg font-bold tracking-tight focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring",
1076
1238
  children: [
1077
1239
  logo ? /* @__PURE__ */ jsx(SiteImage, { image: { ...logo, alt: showName ? "" : logo.alt || ctx.site.name, decorative: showName }, ctx, eager: true, sizes: "240px", className: "h-8 w-auto" }) : null,
1078
- showName ? /* @__PURE__ */ jsx("span", { children: ctx.site.name }) : null,
1240
+ showName && !props.tagline ? /* @__PURE__ */ jsx("span", { children: ctx.site.name }) : null,
1241
+ showName && props.tagline ? /* @__PURE__ */ jsxs("span", { className: "flex flex-col leading-tight", children: [
1242
+ /* @__PURE__ */ jsx("span", { children: ctx.site.name }),
1243
+ /* @__PURE__ */ jsx("span", { "data-gs-text": "tagline", className: "font-sans text-xs font-medium tracking-normal text-muted-foreground", children: props.tagline })
1244
+ ] }) : null,
1079
1245
  /* @__PURE__ */ jsx("span", { className: "sr-only", children: ", home" })
1080
1246
  ]
1081
1247
  }
@@ -1095,6 +1261,34 @@ function Items({ ctx, className, itemClassName }) {
1095
1261
  }
1096
1262
  ) }, `${item.label}-${item.href}`)) });
1097
1263
  }
1264
+ function CtaButton({ props, ctx, className, shortFrom = "md" }) {
1265
+ if (!props.cta) return null;
1266
+ if (!props.ctaShortLabel) return /* @__PURE__ */ jsx(ButtonLink, { link: props.cta, ctx, className: cn(shortFrom === "md" && "hidden md:inline-flex", className) });
1267
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
1268
+ /* @__PURE__ */ jsx(ButtonLink, { link: { ...props.cta, label: props.ctaShortLabel }, ctx, className: cn(shortFrom === "md" ? "hidden md:inline-flex lg:hidden" : "lg:hidden", className) }),
1269
+ /* @__PURE__ */ jsx(ButtonLink, { link: props.cta, ctx, className: cn("hidden lg:inline-flex", className) })
1270
+ ] });
1271
+ }
1272
+ var telHref = (phone) => `tel:${phone.trim().startsWith("+") ? "+" : ""}${phone.replace(/\D/g, "")}`;
1273
+ function DrawerContact({ props }) {
1274
+ const c = props.drawerContact;
1275
+ if (!c || !c.phone && !c.email && !c.address) return null;
1276
+ const row = "inline-flex min-h-11 items-center gap-3 rounded-md text-sm focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring";
1277
+ return /* @__PURE__ */ jsxs("address", { "data-gs-part": "drawer-contact", className: "mt-4 flex flex-col border-t border-border pt-3 not-italic", children: [
1278
+ c.phone ? /* @__PURE__ */ jsxs("a", { href: telHref(c.phone), className: row, children: [
1279
+ /* @__PURE__ */ jsx(Phone, { "aria-hidden": "true", className: "size-4 shrink-0" }),
1280
+ c.phone
1281
+ ] }) : null,
1282
+ c.email ? /* @__PURE__ */ jsxs("a", { href: `mailto:${c.email}`, className: row, children: [
1283
+ /* @__PURE__ */ jsx(Mail, { "aria-hidden": "true", className: "size-4 shrink-0" }),
1284
+ c.email
1285
+ ] }) : null,
1286
+ c.address ? /* @__PURE__ */ jsxs("p", { className: "flex items-start gap-3 py-3 text-sm", children: [
1287
+ /* @__PURE__ */ jsx(MapPin, { "aria-hidden": "true", className: "mt-0.5 size-4 shrink-0" }),
1288
+ /* @__PURE__ */ jsx("span", { className: "whitespace-pre-line", children: c.address })
1289
+ ] }) : null
1290
+ ] });
1291
+ }
1098
1292
  function NavSection({ props, variant, node, ctx }) {
1099
1293
  const attrs = bandAttrs(node, ctx, void 0, false);
1100
1294
  const hasMenu = variant !== "minimal" && ctx.site.nav.length > 0;
@@ -1103,7 +1297,7 @@ function NavSection({ props, variant, node, ctx }) {
1103
1297
  /* @__PURE__ */ jsx(Brand, { props, ctx }),
1104
1298
  hasMenu ? /* @__PURE__ */ jsxs("nav", { "aria-label": "Main", className: cn("flex items-center gap-2", centered && "md:w-full md:justify-center"), children: [
1105
1299
  /* @__PURE__ */ jsx(Items, { ctx, className: "hidden items-center gap-1 md:flex" }),
1106
- props.cta ? /* @__PURE__ */ jsx(ButtonLink, { link: props.cta, ctx, className: "hidden md:inline-flex" }) : null,
1300
+ /* @__PURE__ */ jsx(CtaButton, { props, ctx }),
1107
1301
  /* @__PURE__ */ jsxs("details", { className: "group md:hidden", "data-gs-island": "menu", children: [
1108
1302
  /* @__PURE__ */ jsxs("summary", { className: "flex min-h-11 min-w-11 cursor-pointer list-none items-center justify-center rounded-md border border-border focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring [&::-webkit-details-marker]:hidden", children: [
1109
1303
  /* @__PURE__ */ jsx(Menu, { "aria-hidden": "true", className: "size-5" }),
@@ -1111,10 +1305,11 @@ function NavSection({ props, variant, node, ctx }) {
1111
1305
  ] }),
1112
1306
  /* @__PURE__ */ jsxs("div", { className: "absolute inset-x-0 top-full z-50 border-b border-border bg-background px-4 pb-4 shadow-lg", children: [
1113
1307
  /* @__PURE__ */ jsx(Items, { ctx, className: "flex flex-col py-2", itemClassName: "w-full" }),
1114
- props.cta ? /* @__PURE__ */ jsx(ButtonLink, { link: props.cta, ctx, className: "w-full" }) : null
1308
+ props.cta ? /* @__PURE__ */ jsx(ButtonLink, { link: props.cta, ctx, className: "w-full" }) : null,
1309
+ /* @__PURE__ */ jsx(DrawerContact, { props })
1115
1310
  ] })
1116
1311
  ] })
1117
- ] }) : props.cta ? /* @__PURE__ */ jsx(ButtonLink, { link: props.cta, ctx }) : null
1312
+ ] }) : props.cta ? /* @__PURE__ */ jsx(CtaButton, { props, ctx, shortFrom: "base" }) : null
1118
1313
  ] }) });
1119
1314
  }
1120
1315
  var navSection = defineSection({
@@ -1149,7 +1344,9 @@ var Tier = z.object({
1149
1344
  cta: Link.optional(),
1150
1345
  highlighted: z.boolean().optional(),
1151
1346
  /** The highlighted plan's label (default "Most popular"). */
1152
- badge: Line(30).optional()
1347
+ badge: Line(30).optional(),
1348
+ /** An id for links straight to this plan (`/plans#yearly`). */
1349
+ anchor: Anchor
1153
1350
  });
1154
1351
  var Group = z.object({
1155
1352
  eyebrow: Line(60).optional(),
@@ -1197,6 +1394,7 @@ var pricingSection = defineSection({
1197
1394
  presets: [
1198
1395
  {
1199
1396
  name: "Plan groups",
1397
+ sample: true,
1200
1398
  variant: "cards",
1201
1399
  props: {
1202
1400
  heading: "Plans and prices",
@@ -1208,6 +1406,7 @@ var pricingSection = defineSection({
1208
1406
  },
1209
1407
  {
1210
1408
  name: "Three plans",
1409
+ sample: true,
1211
1410
  variant: "cards",
1212
1411
  props: {
1213
1412
  heading: "Plans",
@@ -1224,7 +1423,7 @@ var pricingSection = defineSection({
1224
1423
  const intro = /* @__PURE__ */ jsx(SectionIntro, { ctx, eyebrow: props.eyebrow, heading: props.heading, body: props.body, tone: inverted ? "inherit" : "muted" });
1225
1424
  const noteOf = (text) => text ? /* @__PURE__ */ jsx("p", { className: cn("mt-8 text-center text-sm", !inverted && "text-muted-foreground"), children: text }) : null;
1226
1425
  const grouped = props.groups.length > 0;
1227
- const compactList = (tiers, inGroup, className) => /* @__PURE__ */ jsx("ul", { className: cn("mx-auto flex max-w-3xl flex-col divide-y divide-border rounded-xl border border-border bg-background text-foreground", className), children: tiers.map((tier, i) => /* @__PURE__ */ jsxs("li", { className: "flex flex-col gap-4 p-6 sm:flex-row sm:items-center sm:justify-between", children: [
1426
+ const compactList = (tiers, inGroup, className) => /* @__PURE__ */ jsx("ul", { className: cn("mx-auto flex max-w-3xl flex-col divide-y divide-border rounded-xl border border-border bg-background text-foreground", className), children: tiers.map((tier, i) => /* @__PURE__ */ jsxs("li", { ...tier.anchor ? { id: tier.anchor } : {}, className: cn("flex flex-col gap-4 p-6 sm:flex-row sm:items-center sm:justify-between", tier.anchor && "scroll-mt-20"), children: [
1228
1427
  /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1", children: [
1229
1428
  /* @__PURE__ */ jsx(PlanTitle, { ctx, grouped: inGroup, children: tier.name }),
1230
1429
  tier.description ? /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: tier.description }) : null
@@ -1243,8 +1442,10 @@ var pricingSection = defineSection({
1243
1442
  const cardGrid = (tiers, inGroup, className) => /* @__PURE__ */ jsx("ul", { className: cn("grid gap-6", cols(tiers.length), className), children: tiers.map((tier, i) => /* @__PURE__ */ jsxs(
1244
1443
  "li",
1245
1444
  {
1445
+ ...tier.anchor ? { id: tier.anchor } : {},
1246
1446
  className: cn(
1247
1447
  "flex flex-col gap-6 rounded-2xl border bg-background p-8 text-foreground",
1448
+ tier.anchor && "scroll-mt-20",
1248
1449
  tier.highlighted ? "border-2 border-primary shadow-lg" : "border-border"
1249
1450
  ),
1250
1451
  children: [
@@ -1293,7 +1494,9 @@ var pricingSection = defineSection({
1293
1494
  }
1294
1495
  });
1295
1496
  var schema11 = z.object({
1497
+ eyebrow: Line(60).optional(),
1296
1498
  heading: Line(90).optional(),
1499
+ headingAccent: HeadingAccent,
1297
1500
  body: RichText,
1298
1501
  surface: Surface.default("base"),
1299
1502
  anchor: Anchor
@@ -1307,12 +1510,14 @@ var richTextSection = defineSection({
1307
1510
  schema: schema11,
1308
1511
  variants: [
1309
1512
  { id: "narrow", label: "Reading width" },
1310
- { id: "wide", label: "Wide" }
1513
+ { id: "wide", label: "Wide" },
1514
+ { id: "split", label: "Heading left, text right" }
1311
1515
  ],
1312
1516
  defaultVariant: "narrow",
1313
1517
  presets: [
1314
1518
  {
1315
1519
  name: "Text",
1520
+ sample: true,
1316
1521
  variant: "narrow",
1317
1522
  props: {
1318
1523
  body: {
@@ -1326,21 +1531,28 @@ var richTextSection = defineSection({
1326
1531
  }
1327
1532
  ],
1328
1533
  render: ({ props, variant, node, ctx }) => {
1329
- const intro = props.heading ? /* @__PURE__ */ jsx(SectionIntro, { ctx, heading: props.heading, align: "left", tone: onAccent(props.surface) ? "inherit" : "muted" }) : null;
1330
- return /* @__PURE__ */ jsxs(SectionBand, { node, ctx, anchor: props.anchor, surface: props.surface, width: variant === "wide" ? "lg" : "prose", labelled: Boolean(props.heading), children: [
1534
+ const tone = onAccent(props.surface) ? "inherit" : "muted";
1535
+ const intro = props.heading ? /* @__PURE__ */ jsx(SectionIntro, { ctx, eyebrow: props.eyebrow, heading: props.heading, accent: props.headingAccent, align: "left", tone }) : null;
1536
+ const split = variant === "split" && Boolean(intro);
1537
+ const body = /* @__PURE__ */ jsx(
1538
+ RichText$1,
1539
+ {
1540
+ value: props.body,
1541
+ headingLevels: props.heading ? [3, 4] : [2, 3, 4],
1542
+ className: cn(richTextClassName, "text-base sm:text-lg [&_h2]:font-display [&_h2]:text-2xl [&_h3]:font-display [&_h3]:text-xl", props.heading && !split && "mt-6")
1543
+ }
1544
+ );
1545
+ return /* @__PURE__ */ jsx(SectionBand, { node, ctx, anchor: props.anchor, surface: props.surface, width: variant === "wide" || variant === "split" ? "lg" : "prose", labelled: Boolean(props.heading), children: split ? /* @__PURE__ */ jsxs("div", { "data-gs-part": "split", className: "grid gap-6 md:grid-cols-[2fr_3fr] md:gap-12", children: [
1331
1546
  intro,
1332
- /* @__PURE__ */ jsx(
1333
- RichText$1,
1334
- {
1335
- value: props.body,
1336
- headingLevels: props.heading ? [3, 4] : [2, 3, 4],
1337
- className: cn(richTextClassName, "text-base sm:text-lg [&_h2]:font-display [&_h2]:text-2xl [&_h3]:font-display [&_h3]:text-xl", props.heading && "mt-6")
1338
- }
1339
- )
1340
- ] });
1547
+ body
1548
+ ] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
1549
+ intro,
1550
+ body
1551
+ ] }) });
1341
1552
  }
1342
1553
  });
1343
1554
  var schema12 = z.object({
1555
+ eyebrow: Line(60).optional(),
1344
1556
  heading: Line(90).optional(),
1345
1557
  body: Copy(320).optional(),
1346
1558
  items: z.array(z.object({ value: Line(16), label: Line(60) })).min(1).max(6),
@@ -1363,13 +1575,14 @@ var statsSection = defineSection({
1363
1575
  presets: [
1364
1576
  {
1365
1577
  name: "Three numbers",
1578
+ sample: true,
1366
1579
  variant: "row",
1367
1580
  props: { items: [{ value: "12", label: "years open" }, { value: "500+", label: "people served" }, { value: "6", label: "on the team" }] }
1368
1581
  }
1369
1582
  ],
1370
1583
  render: ({ props, variant, node, ctx }) => {
1371
1584
  const inverted = onAccent(props.surface);
1372
- const intro = props.heading ? /* @__PURE__ */ jsx(SectionIntro, { ctx, heading: props.heading, body: props.body, tone: inverted ? "inherit" : "muted" }) : /* @__PURE__ */ jsx(HiddenTitle, { ctx, children: "In numbers" });
1585
+ const intro = props.heading ? /* @__PURE__ */ jsx(SectionIntro, { ctx, eyebrow: props.eyebrow, heading: props.heading, body: props.body, tone: inverted ? "inherit" : "muted" }) : /* @__PURE__ */ jsx(HiddenTitle, { ctx, children: "In numbers" });
1373
1586
  const cards = variant === "cards";
1374
1587
  return /* @__PURE__ */ jsxs(SectionBand, { node, ctx, anchor: props.anchor, surface: props.surface, children: [
1375
1588
  intro,
@@ -1387,6 +1600,7 @@ var Quote = z.object({
1387
1600
  avatar: Image.optional()
1388
1601
  });
1389
1602
  var schema13 = z.object({
1603
+ eyebrow: Line(60).optional(),
1390
1604
  heading: Line(90).optional(),
1391
1605
  body: Copy(320).optional(),
1392
1606
  items: z.array(Quote).min(1).max(12),
@@ -1406,8 +1620,8 @@ var testimonialsSection = defineSection({
1406
1620
  ],
1407
1621
  defaultVariant: "grid",
1408
1622
  presets: [
1409
- { name: "Quotes", variant: "grid", props: { heading: "What people say", items: [{ quote: "A quote, in their words.", name: "Their name" }] } },
1410
- { name: "One quote", variant: "single", props: { items: [{ quote: "A quote, in their words.", name: "Their name", role: "Who they are" }] } }
1623
+ { name: "Quotes", sample: true, variant: "grid", props: { heading: "What people say", items: [{ quote: "A quote, in their words.", name: "Their name" }] } },
1624
+ { name: "One quote", sample: true, variant: "single", props: { items: [{ quote: "A quote, in their words.", name: "Their name", role: "Who they are" }] } }
1411
1625
  ],
1412
1626
  render: ({ props, variant, node, ctx }) => {
1413
1627
  const inverted = onAccent(props.surface);
@@ -1419,7 +1633,7 @@ var testimonialsSection = defineSection({
1419
1633
  item.role ? /* @__PURE__ */ jsx("span", { className: cn("text-sm", muted), children: item.role }) : null
1420
1634
  ] })
1421
1635
  ] });
1422
- const intro = props.heading ? /* @__PURE__ */ jsx(SectionIntro, { ctx, heading: props.heading, body: props.body, tone: inverted ? "inherit" : "muted" }) : /* @__PURE__ */ jsx(HiddenTitle, { ctx, children: "Testimonials" });
1636
+ const intro = props.heading ? /* @__PURE__ */ jsx(SectionIntro, { ctx, eyebrow: props.eyebrow, heading: props.heading, body: props.body, tone: inverted ? "inherit" : "muted" }) : /* @__PURE__ */ jsx(HiddenTitle, { ctx, children: "Testimonials" });
1423
1637
  if (variant === "single") {
1424
1638
  const item = props.items[0];
1425
1639
  return /* @__PURE__ */ jsxs(SectionBand, { node, ctx, anchor: props.anchor, surface: props.surface, width: "md", children: [
@@ -1598,8 +1812,8 @@ var fileSection = defineSection({
1598
1812
  ],
1599
1813
  defaultVariant: "list",
1600
1814
  presets: [
1601
- { name: "Downloads", variant: "list", props: { heading: "Downloads", files: [{ label: "Price list", file: { src: "/files/price-list.pdf", mime: "application/pdf" } }] } },
1602
- { name: "File cards", variant: "cards", props: { heading: "Forms to bring", files: [{ label: "Sign-up form", description: "Fill it in before your first visit.", file: { src: "/files/sign-up.pdf", mime: "application/pdf" } }] } }
1815
+ { name: "Downloads", sample: true, variant: "list", props: { heading: "Downloads", files: [{ label: "Price list", file: { src: "/files/price-list.pdf", mime: "application/pdf" } }] } },
1816
+ { name: "File cards", sample: true, variant: "cards", props: { heading: "Forms to bring", files: [{ label: "Sign-up form", description: "Fill it in before your first visit.", file: { src: "/files/sign-up.pdf", mime: "application/pdf" } }] } }
1603
1817
  ],
1604
1818
  render: ({ props, variant, node, ctx }) => {
1605
1819
  const inverted = onAccent(props.surface);
@@ -1696,11 +1910,13 @@ var mapSection = defineSection({
1696
1910
  presets: [
1697
1911
  {
1698
1912
  name: "Find us",
1913
+ sample: true,
1699
1914
  variant: "split",
1700
1915
  props: { heading: "Find us", address: ["1 River Road", "Riverside"], provider: "openstreetmap", lat: 51.5007, lng: -0.1246 }
1701
1916
  },
1702
1917
  {
1703
1918
  name: "Map and address",
1919
+ sample: true,
1704
1920
  variant: "stacked",
1705
1921
  props: { heading: "Visit", address: ["1 River Road", "Riverside"], provider: "google", query: "1 River Road, Riverside" }
1706
1922
  }
@@ -1992,6 +2208,7 @@ var scheduleSection = defineSection({
1992
2208
  presets: [
1993
2209
  {
1994
2210
  name: "Weekly timetable",
2211
+ sample: true,
1995
2212
  variant: "grid",
1996
2213
  props: {
1997
2214
  heading: "This week",
@@ -2008,6 +2225,7 @@ var scheduleSection = defineSection({
2008
2225
  },
2009
2226
  {
2010
2227
  name: "Day by day",
2228
+ sample: true,
2011
2229
  variant: "agenda",
2012
2230
  props: { heading: "This week", days: ["mon", "tue", "wed", "thu", "fri"], sessions: [{ day: "mon", start: "18:00", end: "19:00", title: "Session name" }] }
2013
2231
  }
@@ -2125,6 +2343,7 @@ var teamSection = defineSection({
2125
2343
  presets: [
2126
2344
  {
2127
2345
  name: "Team cards",
2346
+ sample: true,
2128
2347
  variant: "cards",
2129
2348
  props: {
2130
2349
  heading: "Meet the team",
@@ -2136,6 +2355,7 @@ var teamSection = defineSection({
2136
2355
  },
2137
2356
  {
2138
2357
  name: "Team list",
2358
+ sample: true,
2139
2359
  variant: "list",
2140
2360
  props: { heading: "The team", members: [{ name: "Person's name", credentials: "Their qualifications", bio: "Their story, in a few short paragraphs." }] }
2141
2361
  }
@@ -2227,6 +2447,7 @@ var timelineSection = defineSection({
2227
2447
  presets: [
2228
2448
  {
2229
2449
  name: "Week by week",
2450
+ sample: true,
2230
2451
  variant: "vertical",
2231
2452
  props: {
2232
2453
  heading: "Week by week",
@@ -2237,7 +2458,7 @@ var timelineSection = defineSection({
2237
2458
  ]
2238
2459
  }
2239
2460
  },
2240
- { name: "Steps as cards", variant: "cards", props: { heading: "How it works", steps: [{ title: "First step" }, { title: "Second step" }, { title: "Third step" }] } }
2461
+ { name: "Steps as cards", sample: true, variant: "cards", props: { heading: "How it works", steps: [{ title: "First step" }, { title: "Second step" }, { title: "Third step" }] } }
2241
2462
  ],
2242
2463
  render: ({ props, variant, node, ctx }) => {
2243
2464
  const inverted = onAccent(props.surface);
@@ -2308,6 +2529,6 @@ var builtInSections = Object.freeze([
2308
2529
  ]);
2309
2530
  for (const def of builtInSections) registerBuiltInSection(def);
2310
2531
 
2311
- export { Anchor, ButtonLink, CHIP_TONES, HiddenTitle, ICONS, IconName, ItemTitle, MAP_PROVIDERS, SectionBand, SectionIntro, SectionTitle, SiteFormHeader, SiteImage, TextLink, WEEKDAYS, blogListSection, builtInSections, ctaSection, faqSection, featuresSection, fileDescription, fileHref, fileSection, footerSection, formDrawMode, formEmbedSection, formatPostDate, formatTime, gallerySection, heroSection, linkAttrs, logosSection, mapEmbedUrl, mapPageUrl, mapSection, navSection, postBodySection, pricingSection, resolveHref, richTextSection, scheduleSection, siteFormSlots, statsSection, teamSection, testimonialsSection, timelineSection, titleId };
2312
- //# sourceMappingURL=chunk-SMJMXQ3T.js.map
2313
- //# sourceMappingURL=chunk-SMJMXQ3T.js.map
2532
+ export { Anchor, ButtonLink, CHIP_TONES, HeadingAccent, HiddenTitle, ICONS, IconName, ItemTitle, MAP_PROVIDERS, SectionBand, SectionIntro, SectionTitle, SiteFormHeader, SiteImage, TextLink, WEEKDAYS, answerToRichText, blogListSection, builtInSections, ctaSection, faqSection, featuresSection, fileDescription, fileHref, fileSection, footerSection, formDrawMode, formEmbedSection, formatPostDate, formatTime, gallerySection, heroSection, linkAttrs, logosSection, mapEmbedUrl, mapPageUrl, mapSection, navSection, postBodySection, pricingSection, resolveHref, richTextSection, scheduleSection, siteFormSlots, statsSection, teamSection, testimonialsSection, timelineSection, titleId, withAccent };
2533
+ //# sourceMappingURL=chunk-SBONYMUC.js.map
2534
+ //# sourceMappingURL=chunk-SBONYMUC.js.map