@foundrykit/blocks 2.1.0 → 3.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,11 +1,1028 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __export = (target, all) => {
3
+ for (var name in all)
4
+ __defProp(target, name, { get: all[name], enumerable: true });
5
+ };
6
+
1
7
  // src/index.ts
2
8
  import { WorldMap } from "@foundrykit/maps";
3
9
  import { cn as cn4 } from "@foundrykit/utils";
4
10
 
11
+ // src/blocks/AnchorBar/Component.tsx
12
+ import { Section } from "@foundrykit/primitives";
13
+
14
+ // src/blocks/shared/render.tsx
15
+ import { RichText as PayloadRichText } from "@payloadcms/richtext-lexical/react";
16
+
17
+ // src/blocks/shared/fields.ts
18
+ var isSafeUrl = (url) => /^(https?:|mailto:|tel:|\/(?![/\\])|#)/i.test(url.trim());
19
+ var SECTION_THEMES = [
20
+ { label: "Page default", value: "default" },
21
+ { label: "Light", value: "light" },
22
+ { label: "Muted", value: "muted" },
23
+ { label: "Dark", value: "dark" },
24
+ { label: "Brand", value: "brand" }
25
+ ];
26
+ var sectionTheme = ({
27
+ themes = SECTION_THEMES,
28
+ defaultValue = "default"
29
+ } = {}) => ({
30
+ name: "sectionTheme",
31
+ type: "select",
32
+ options: themes,
33
+ defaultValue,
34
+ admin: { width: "50%" }
35
+ });
36
+ var anchorId = () => ({
37
+ name: "anchorId",
38
+ type: "text",
39
+ admin: {
40
+ width: "50%",
41
+ description: 'Lets an Anchor Bar link here, e.g. "faq". Letters, numbers and dashes.'
42
+ },
43
+ validate: (value) => !value || /^[a-z][\w-]*$/i.test(String(value)) || "Start with a letter; use letters, numbers, - and _."
44
+ });
45
+ var sectionFields = (options) => ({
46
+ type: "row",
47
+ fields: [sectionTheme(options), anchorId()]
48
+ });
49
+ var link = ({
50
+ relationTo = ["pages"],
51
+ appearances: appearances2 = ["default", "outline"],
52
+ condition
53
+ } = {}) => ({
54
+ name: "link",
55
+ type: "group",
56
+ admin: { hideGutter: true, ...condition ? { condition } : {} },
57
+ fields: [
58
+ {
59
+ type: "row",
60
+ fields: [
61
+ {
62
+ name: "type",
63
+ type: "radio",
64
+ defaultValue: "reference",
65
+ options: [
66
+ { label: "Internal link", value: "reference" },
67
+ { label: "Custom URL", value: "custom" }
68
+ ],
69
+ admin: { layout: "horizontal", width: "50%" }
70
+ },
71
+ {
72
+ name: "newTab",
73
+ type: "checkbox",
74
+ label: "Open in a new tab",
75
+ admin: { width: "50%", style: { alignSelf: "flex-end" } }
76
+ }
77
+ ]
78
+ },
79
+ {
80
+ name: "reference",
81
+ type: "relationship",
82
+ relationTo,
83
+ required: true,
84
+ admin: { condition: (_, sibling) => sibling?.type === "reference" }
85
+ },
86
+ {
87
+ name: "url",
88
+ type: "text",
89
+ label: "Custom URL",
90
+ required: true,
91
+ admin: { condition: (_, sibling) => sibling?.type === "custom" },
92
+ // Replaces the required check, so it does that too (only for custom links).
93
+ validate: (value, { siblingData }) => {
94
+ if (siblingData?.type !== "custom")
95
+ return true;
96
+ if (!value) return "Required";
97
+ return isSafeUrl(String(value)) || "Use https://\u2026, mailto:, tel:, a /path or a #anchor.";
98
+ }
99
+ },
100
+ { name: "label", type: "text", required: true },
101
+ ...appearances2 ? [
102
+ {
103
+ name: "appearance",
104
+ type: "select",
105
+ defaultValue: appearances2[0],
106
+ options: appearances2.map((value) => ({
107
+ label: value[0]?.toUpperCase() + value.slice(1),
108
+ value
109
+ }))
110
+ }
111
+ ] : []
112
+ ]
113
+ });
114
+ var linkGroup = ({
115
+ maxRows = 2,
116
+ ...options
117
+ } = {}) => ({
118
+ name: "links",
119
+ type: "array",
120
+ maxRows,
121
+ admin: { initCollapsed: true },
122
+ fields: [link(options)]
123
+ });
124
+ var thumbnail = (body) => `data:image/svg+xml,${encodeURIComponent(
125
+ `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 480 320" fill="#c3c8d0"><rect width="480" height="320" fill="#f1f2f4"/>${body}</svg>`
126
+ )}`;
127
+
128
+ // src/blocks/shared/render.tsx
129
+ import { jsx, jsxs } from "react/jsx-runtime";
130
+ var sectionProps = (block) => ({
131
+ theme: block.sectionTheme,
132
+ id: block.anchorId || void 0,
133
+ className: "scroll-mt-24 py-12 md:py-20"
134
+ });
135
+ var container = "mx-auto w-full max-w-6xl px-4 md:px-6";
136
+ var heading = "font-heading text-3xl font-semibold tracking-tight text-balance md:text-4xl";
137
+ var button = "inline-flex h-10 items-center justify-center gap-2 rounded-[var(--button-radius,calc(var(--radius)-2px))] px-6 text-sm font-[var(--button-weight,500)] whitespace-nowrap [text-transform:var(--button-case,none)] outline-none transition-[color,background-color,scale] duration-150 ease-out focus-visible:ring-[3px] focus-visible:ring-ring/50 active:scale-[var(--motion-press-scale,0.97)] motion-reduce:active:scale-100";
138
+ var appearances = {
139
+ default: `${button} bg-primary text-primary-foreground hover:bg-primary/90`,
140
+ outline: `${button} border border-current hover:bg-foreground/5`,
141
+ link: "text-primary underline underline-offset-4 outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50"
142
+ };
143
+ function linkHref(link2) {
144
+ if (link2.type === "custom")
145
+ return link2.url && isSafeUrl(link2.url) ? link2.url.trim() : void 0;
146
+ const value = link2.reference?.value;
147
+ if (!value || typeof value !== "object" || !value.slug) return void 0;
148
+ const slug = value.slug === "home" ? "" : value.slug;
149
+ const collection = link2.reference?.relationTo;
150
+ return collection && collection !== "pages" ? `/${collection}/${slug}` : `/${slug}`;
151
+ }
152
+ function CMSLink({
153
+ link: link2,
154
+ className
155
+ }) {
156
+ const href = link2 && linkHref(link2);
157
+ if (!link2 || !href) return null;
158
+ return /* @__PURE__ */ jsxs(
159
+ "a",
160
+ {
161
+ href,
162
+ className: [appearances[link2.appearance ?? "default"], className].filter(Boolean).join(" "),
163
+ ...link2.newTab ? { target: "_blank", rel: "noopener noreferrer" } : {},
164
+ children: [
165
+ link2.label,
166
+ link2.newTab && /* @__PURE__ */ jsx("span", { className: "sr-only", children: " (opens in a new tab)" })
167
+ ]
168
+ }
169
+ );
170
+ }
171
+ function Media({
172
+ media,
173
+ className,
174
+ priority
175
+ }) {
176
+ if (!media || typeof media !== "object" || !media.url) return null;
177
+ return /* @__PURE__ */ jsx(
178
+ "img",
179
+ {
180
+ src: media.url,
181
+ alt: media.alt ?? "",
182
+ width: media.width ?? void 0,
183
+ height: media.height ?? void 0,
184
+ loading: priority ? "eager" : "lazy",
185
+ decoding: "async",
186
+ className
187
+ }
188
+ );
189
+ }
190
+ function RichText({
191
+ data,
192
+ className
193
+ }) {
194
+ if (!data) return null;
195
+ return /* @__PURE__ */ jsx(
196
+ PayloadRichText,
197
+ {
198
+ data,
199
+ className: [
200
+ "[&_a]:text-primary [&_a]:underline [&_a]:underline-offset-4 [&_h2]:font-heading [&_h2]:mb-4 [&_h2]:text-2xl [&_h2]:font-semibold [&_h3]:font-heading [&_h3]:mb-3 [&_h3]:text-xl [&_h3]:font-semibold [&_li]:mb-1 [&_ol]:mb-4 [&_ol]:list-decimal [&_ol]:pl-6 [&_p]:mb-4 [&_p:last-child]:mb-0 [&_ul]:mb-4 [&_ul]:list-disc [&_ul]:pl-6",
201
+ className
202
+ ].filter(Boolean).join(" ")
203
+ }
204
+ );
205
+ }
206
+
207
+ // src/blocks/AnchorBar/Component.tsx
208
+ import { jsx as jsx2 } from "react/jsx-runtime";
209
+ function AnchorBarBlock(props) {
210
+ if (!props.links?.length) return null;
211
+ return /* @__PURE__ */ jsx2(
212
+ Section,
213
+ {
214
+ theme: props.sectionTheme,
215
+ id: props.anchorId || void 0,
216
+ className: "bg-background/95 sticky top-0 z-10 border-b backdrop-blur",
217
+ children: /* @__PURE__ */ jsx2("nav", { "aria-label": "On this page", className: container, children: /* @__PURE__ */ jsx2("ul", { className: "flex gap-6 overflow-x-auto py-3 text-sm font-medium", children: props.links.map((link2, i) => /* @__PURE__ */ jsx2("li", { className: "shrink-0", children: /* @__PURE__ */ jsx2(
218
+ "a",
219
+ {
220
+ href: `#${link2.anchor ?? ""}`,
221
+ className: "text-muted-foreground hover:text-foreground focus-visible:ring-ring/50 rounded-sm py-1 underline-offset-4 transition-colors duration-150 outline-none hover:underline focus-visible:ring-[3px]",
222
+ children: link2.label
223
+ }
224
+ ) }, link2.id ?? i)) }) })
225
+ }
226
+ );
227
+ }
228
+
229
+ // src/blocks/Banner/Component.tsx
230
+ import { Section as Section2 } from "@foundrykit/primitives";
231
+ import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
232
+ var styles = {
233
+ info: {
234
+ label: "Note",
235
+ className: "border-border bg-muted",
236
+ icon: "text-primary",
237
+ path: "M10 9v5m0-8h.01"
238
+ },
239
+ success: {
240
+ label: "Success",
241
+ className: "border-success/40 bg-success/10",
242
+ icon: "text-success",
243
+ path: "m6.5 10 2.5 2.5 4.5-5"
244
+ },
245
+ warning: {
246
+ label: "Warning",
247
+ className: "border-warning/50 bg-warning/15",
248
+ icon: "text-warning",
249
+ path: "M10 6v4.5m0 3h.01"
250
+ },
251
+ error: {
252
+ label: "Important",
253
+ className: "border-destructive/40 bg-destructive/10",
254
+ icon: "text-destructive",
255
+ path: "M10 6v4.5m0 3h.01"
256
+ }
257
+ };
258
+ function BannerBlock(props) {
259
+ const style = styles[props.style ?? "info"];
260
+ return /* @__PURE__ */ jsx3(Section2, { ...sectionProps(props), children: /* @__PURE__ */ jsx3("div", { className: container, children: /* @__PURE__ */ jsxs2(
261
+ "div",
262
+ {
263
+ className: `text-foreground flex gap-3 rounded-[var(--card-radius,calc(var(--radius)+4px))] border px-5 py-4 ${style.className}`,
264
+ children: [
265
+ /* @__PURE__ */ jsxs2(
266
+ "svg",
267
+ {
268
+ "aria-hidden": "true",
269
+ viewBox: "0 0 20 20",
270
+ className: `mt-0.5 size-5 shrink-0 ${style.icon}`,
271
+ fill: "none",
272
+ stroke: "currentColor",
273
+ strokeWidth: "1.75",
274
+ strokeLinecap: "round",
275
+ strokeLinejoin: "round",
276
+ children: [
277
+ /* @__PURE__ */ jsx3("circle", { cx: "10", cy: "10", r: "8.25" }),
278
+ /* @__PURE__ */ jsx3("path", { d: style.path })
279
+ ]
280
+ }
281
+ ),
282
+ /* @__PURE__ */ jsxs2("div", { children: [
283
+ /* @__PURE__ */ jsxs2("span", { className: "sr-only", children: [
284
+ style.label,
285
+ ": "
286
+ ] }),
287
+ /* @__PURE__ */ jsx3(RichText, { data: props.content })
288
+ ] })
289
+ ]
290
+ }
291
+ ) }) });
292
+ }
293
+
294
+ // src/blocks/CallToAction/Component.tsx
295
+ import { Section as Section3 } from "@foundrykit/primitives";
296
+ import { useId } from "react";
297
+ import { jsx as jsx4, jsxs as jsxs3 } from "react/jsx-runtime";
298
+ function CallToActionBlock(props) {
299
+ const id = useId();
300
+ return /* @__PURE__ */ jsx4(
301
+ Section3,
302
+ {
303
+ ...sectionProps(props),
304
+ "aria-labelledby": props.heading ? id : void 0,
305
+ children: /* @__PURE__ */ jsxs3("div", { className: `${container} flex flex-col items-center text-center`, children: [
306
+ props.heading && /* @__PURE__ */ jsx4("h2", { id, className: `${heading} max-w-3xl`, children: props.heading }),
307
+ props.body && /* @__PURE__ */ jsx4("p", { className: "text-muted-foreground mt-4 max-w-2xl text-lg text-pretty", children: props.body }),
308
+ props.links && props.links.length > 0 && /* @__PURE__ */ jsx4("div", { className: "mt-8 flex flex-wrap justify-center gap-3", children: props.links.map((item, i) => /* @__PURE__ */ jsx4(CMSLink, { link: item.link }, item.id ?? i)) })
309
+ ] })
310
+ }
311
+ );
312
+ }
313
+
314
+ // src/blocks/CardGrid/Component.tsx
315
+ import { Section as Section4 } from "@foundrykit/primitives";
316
+ import { useId as useId2 } from "react";
317
+ import { jsx as jsx5, jsxs as jsxs4 } from "react/jsx-runtime";
318
+ function CardGridBlock(props) {
319
+ const id = useId2();
320
+ return /* @__PURE__ */ jsx5(
321
+ Section4,
322
+ {
323
+ ...sectionProps(props),
324
+ "aria-labelledby": props.heading ? id : void 0,
325
+ children: /* @__PURE__ */ jsxs4("div", { className: container, children: [
326
+ props.heading && /* @__PURE__ */ jsx5("h2", { id, className: heading, children: props.heading }),
327
+ props.intro && /* @__PURE__ */ jsx5("p", { className: "text-muted-foreground mt-4 max-w-2xl text-lg", children: props.intro }),
328
+ /* @__PURE__ */ jsx5("ul", { className: "mt-10 grid gap-6 sm:grid-cols-2 lg:grid-cols-3", children: props.cards?.map((card, i) => {
329
+ const href = card.enableLink && card.link ? linkHref(card.link) : void 0;
330
+ return /* @__PURE__ */ jsxs4(
331
+ "li",
332
+ {
333
+ className: "bg-card text-card-foreground has-[a:focus-visible]:ring-ring/50 relative flex flex-col overflow-hidden rounded-[var(--card-radius,calc(var(--radius)+4px))] border transition-shadow duration-200 ease-out has-[a:focus-visible]:ring-[3px] has-[a:hover]:shadow-md",
334
+ children: [
335
+ /* @__PURE__ */ jsx5(
336
+ Media,
337
+ {
338
+ media: card.image,
339
+ className: "aspect-[3/2] w-full object-cover"
340
+ }
341
+ ),
342
+ /* @__PURE__ */ jsxs4("div", { className: "flex flex-1 flex-col gap-2 p-6", children: [
343
+ /* @__PURE__ */ jsx5("h3", { className: "font-heading text-lg font-semibold", children: href ? /* @__PURE__ */ jsx5(
344
+ "a",
345
+ {
346
+ href,
347
+ className: "outline-none after:absolute after:inset-0",
348
+ ...card.link?.newTab ? { target: "_blank", rel: "noopener noreferrer" } : {},
349
+ children: card.title
350
+ }
351
+ ) : card.title }),
352
+ card.description && /* @__PURE__ */ jsx5("p", { className: "text-muted-foreground text-sm", children: card.description })
353
+ ] })
354
+ ]
355
+ },
356
+ card.id ?? i
357
+ );
358
+ }) })
359
+ ] })
360
+ }
361
+ );
362
+ }
363
+
364
+ // src/blocks/Content/Component.tsx
365
+ import { Section as Section5 } from "@foundrykit/primitives";
366
+ import { jsx as jsx6 } from "react/jsx-runtime";
367
+ var span = {
368
+ full: "md:col-span-12",
369
+ twoThirds: "md:col-span-8",
370
+ half: "md:col-span-6",
371
+ oneThird: "md:col-span-4"
372
+ };
373
+ function ContentBlock(props) {
374
+ return /* @__PURE__ */ jsx6(Section5, { ...sectionProps(props), children: /* @__PURE__ */ jsx6("div", { className: `${container} grid grid-cols-1 gap-8 md:grid-cols-12`, children: props.columns?.map((column, i) => /* @__PURE__ */ jsx6(
375
+ RichText,
376
+ {
377
+ data: column.richText,
378
+ className: `max-w-prose ${span[column.size ?? "full"]}`
379
+ },
380
+ column.id ?? i
381
+ )) }) });
382
+ }
383
+
384
+ // src/blocks/FAQ/Component.tsx
385
+ import { Section as Section6 } from "@foundrykit/primitives";
386
+ import { useId as useId3 } from "react";
387
+ import { jsx as jsx7, jsxs as jsxs5 } from "react/jsx-runtime";
388
+ function FAQBlock(props) {
389
+ const id = useId3();
390
+ return /* @__PURE__ */ jsx7(
391
+ Section6,
392
+ {
393
+ ...sectionProps(props),
394
+ "aria-labelledby": props.heading ? id : void 0,
395
+ children: /* @__PURE__ */ jsxs5("div", { className: `${container} max-w-3xl`, children: [
396
+ props.heading && /* @__PURE__ */ jsx7("h2", { id, className: heading, children: props.heading }),
397
+ props.intro && /* @__PURE__ */ jsx7("p", { className: "text-muted-foreground mt-4 text-lg", children: props.intro }),
398
+ /* @__PURE__ */ jsx7("div", { className: "mt-8 divide-y border-y", children: props.items?.map((item, i) => /* @__PURE__ */ jsxs5(
399
+ "details",
400
+ {
401
+ className: "group details-content:h-0 details-content:overflow-clip details-content:transition-[height,content-visibility] details-content:transition-discrete details-content:duration-200 details-content:ease-out open:details-content:h-auto motion-reduce:details-content:transition-none",
402
+ children: [
403
+ /* @__PURE__ */ jsxs5("summary", { className: "focus-visible:ring-ring/50 flex cursor-pointer list-none items-center justify-between gap-4 py-4 text-left font-medium outline-none focus-visible:ring-[3px] [&::-webkit-details-marker]:hidden", children: [
404
+ item.question,
405
+ /* @__PURE__ */ jsx7(
406
+ "svg",
407
+ {
408
+ "aria-hidden": "true",
409
+ viewBox: "0 0 16 16",
410
+ className: "size-4 shrink-0 transition-transform duration-200 ease-out group-open:rotate-180 motion-reduce:transition-none",
411
+ fill: "none",
412
+ stroke: "currentColor",
413
+ strokeWidth: "2",
414
+ children: /* @__PURE__ */ jsx7("path", { d: "m4 6 4 4 4-4" })
415
+ }
416
+ )
417
+ ] }),
418
+ /* @__PURE__ */ jsx7(
419
+ RichText,
420
+ {
421
+ data: item.answer,
422
+ className: "text-muted-foreground pb-4"
423
+ }
424
+ )
425
+ ]
426
+ },
427
+ item.id ?? i
428
+ )) })
429
+ ] })
430
+ }
431
+ );
432
+ }
433
+
434
+ // src/blocks/Gallery/Component.tsx
435
+ import { Section as Section7 } from "@foundrykit/primitives";
436
+ import { useId as useId4 } from "react";
437
+ import { jsx as jsx8, jsxs as jsxs6 } from "react/jsx-runtime";
438
+ var grid = {
439
+ "2": "sm:grid-cols-2",
440
+ "3": "sm:grid-cols-2 lg:grid-cols-3",
441
+ "4": "sm:grid-cols-2 lg:grid-cols-4"
442
+ };
443
+ function GalleryBlock(props) {
444
+ const id = useId4();
445
+ return /* @__PURE__ */ jsx8(
446
+ Section7,
447
+ {
448
+ ...sectionProps(props),
449
+ "aria-labelledby": props.heading ? id : void 0,
450
+ children: /* @__PURE__ */ jsxs6("div", { className: container, children: [
451
+ props.heading && /* @__PURE__ */ jsx8("h2", { id, className: `${heading} mb-10`, children: props.heading }),
452
+ /* @__PURE__ */ jsx8("ul", { className: `grid grid-cols-1 gap-4 ${grid[props.columns ?? "3"]}`, children: props.images?.map((item, i) => /* @__PURE__ */ jsx8("li", { children: /* @__PURE__ */ jsxs6("figure", { children: [
453
+ /* @__PURE__ */ jsx8(
454
+ Media,
455
+ {
456
+ media: item.image,
457
+ className: "aspect-[4/3] w-full rounded-[var(--card-radius,calc(var(--radius)+4px))] object-cover"
458
+ }
459
+ ),
460
+ item.caption && /* @__PURE__ */ jsx8("figcaption", { className: "text-muted-foreground mt-2 text-sm", children: item.caption })
461
+ ] }) }, item.id ?? i)) })
462
+ ] })
463
+ }
464
+ );
465
+ }
466
+
467
+ // src/blocks/index.configs.ts
468
+ var index_configs_exports = {};
469
+ __export(index_configs_exports, {
470
+ AnchorBar: () => AnchorBar,
471
+ Banner: () => Banner,
472
+ CallToAction: () => CallToAction,
473
+ CardGrid: () => CardGrid,
474
+ Content: () => Content,
475
+ FAQ: () => FAQ,
476
+ Gallery: () => Gallery,
477
+ MediaBlock: () => MediaBlock,
478
+ Tabs: () => Tabs,
479
+ Testimonials: () => Testimonials
480
+ });
481
+
482
+ // src/blocks/AnchorBar/config.ts
483
+ var AnchorBar = {
484
+ slug: "anchorBar",
485
+ interfaceName: "AnchorBarBlock",
486
+ labels: { singular: "Anchor bar", plural: "Anchor bars" },
487
+ imageURL: thumbnail(
488
+ '<rect x="0" y="40" width="480" height="56" fill="#dfe3e8"/><rect x="40" y="62" width="64" height="12" rx="4"/><rect x="124" y="62" width="64" height="12" rx="4"/><rect x="208" y="62" width="64" height="12" rx="4"/><rect x="292" y="62" width="64" height="12" rx="4"/><rect x="40" y="140" width="400" height="12" rx="4"/><rect x="40" y="168" width="340" height="12" rx="4"/>'
489
+ ),
490
+ imageAltText: "A sticky bar of links to sections on the page",
491
+ fields: [
492
+ sectionFields(),
493
+ {
494
+ name: "links",
495
+ type: "array",
496
+ minRows: 1,
497
+ maxRows: 8,
498
+ admin: {
499
+ initCollapsed: true,
500
+ description: "Each link jumps to the block whose Anchor ID matches."
501
+ },
502
+ fields: [
503
+ {
504
+ type: "row",
505
+ fields: [
506
+ { name: "label", type: "text", required: true },
507
+ {
508
+ name: "anchor",
509
+ type: "text",
510
+ required: true,
511
+ admin: {
512
+ description: "The target block\u2019s Anchor ID, without #."
513
+ }
514
+ }
515
+ ]
516
+ }
517
+ ]
518
+ }
519
+ ]
520
+ };
521
+
522
+ // src/blocks/Banner/config.ts
523
+ var Banner = {
524
+ slug: "banner",
525
+ interfaceName: "BannerBlock",
526
+ labels: { singular: "Banner", plural: "Banners" },
527
+ imageURL: thumbnail(
528
+ '<rect x="48" y="112" width="384" height="96" rx="8" fill="#dfe3e8" stroke="#8a93a3" stroke-width="3"/><rect x="76" y="140" width="260" height="14" rx="4"/><rect x="76" y="166" width="180" height="14" rx="4"/>'
529
+ ),
530
+ imageAltText: "A highlighted notice",
531
+ fields: [
532
+ sectionFields(),
533
+ {
534
+ name: "style",
535
+ type: "select",
536
+ defaultValue: "info",
537
+ required: true,
538
+ options: [
539
+ { label: "Info", value: "info" },
540
+ { label: "Success", value: "success" },
541
+ { label: "Warning", value: "warning" },
542
+ { label: "Error", value: "error" }
543
+ ]
544
+ },
545
+ { name: "content", type: "richText", label: false, required: true }
546
+ ]
547
+ };
548
+
549
+ // src/blocks/CallToAction/config.ts
550
+ var CallToAction = {
551
+ slug: "cta",
552
+ interfaceName: "CallToActionBlock",
553
+ labels: { singular: "Call to action", plural: "Calls to action" },
554
+ imageURL: thumbnail(
555
+ '<rect x="120" y="80" width="240" height="28" rx="4"/><rect x="88" y="128" width="304" height="12" rx="4"/><rect x="128" y="152" width="224" height="12" rx="4"/><rect x="136" y="200" width="96" height="36" rx="8" fill="#8a93a3"/><rect x="248" y="200" width="96" height="36" rx="8" fill="none" stroke="#8a93a3" stroke-width="3"/>'
556
+ ),
557
+ imageAltText: "A heading, a sentence and up to two buttons",
558
+ fields: [
559
+ sectionFields({ defaultValue: "brand" }),
560
+ { name: "heading", type: "text", required: true },
561
+ { name: "body", type: "textarea" },
562
+ linkGroup({ maxRows: 2 })
563
+ ]
564
+ };
565
+
566
+ // src/blocks/CardGrid/config.ts
567
+ var CardGrid = {
568
+ slug: "cardGrid",
569
+ interfaceName: "CardGridBlock",
570
+ labels: { singular: "Card grid", plural: "Card grids" },
571
+ imageURL: thumbnail(
572
+ '<rect x="40" y="40" width="120" height="240" rx="10" fill="#dfe3e8"/><rect x="180" y="40" width="120" height="240" rx="10" fill="#dfe3e8"/><rect x="320" y="40" width="120" height="240" rx="10" fill="#dfe3e8"/><rect x="40" y="40" width="120" height="96" rx="10"/><rect x="180" y="40" width="120" height="96" rx="10"/><rect x="320" y="40" width="120" height="96" rx="10"/><rect x="56" y="156" width="88" height="12" rx="4"/><rect x="196" y="156" width="88" height="12" rx="4"/><rect x="336" y="156" width="88" height="12" rx="4"/>'
573
+ ),
574
+ imageAltText: "Cards with an image, a title, text and a link",
575
+ fields: [
576
+ sectionFields(),
577
+ { name: "heading", type: "text" },
578
+ { name: "intro", type: "textarea" },
579
+ {
580
+ name: "cards",
581
+ type: "array",
582
+ minRows: 1,
583
+ admin: { initCollapsed: true },
584
+ fields: [
585
+ { name: "image", type: "upload", relationTo: "media" },
586
+ { name: "title", type: "text", required: true },
587
+ { name: "description", type: "textarea" },
588
+ { name: "enableLink", type: "checkbox", label: "Link the card" },
589
+ link({
590
+ appearances: false,
591
+ condition: (_, sibling) => Boolean(sibling?.enableLink)
592
+ })
593
+ ]
594
+ }
595
+ ]
596
+ };
597
+
598
+ // src/blocks/Content/config.ts
599
+ var Content = {
600
+ slug: "content",
601
+ interfaceName: "ContentBlock",
602
+ labels: { singular: "Content", plural: "Content" },
603
+ imageURL: thumbnail(
604
+ '<rect x="48" y="64" width="240" height="24" rx="4"/><rect x="48" y="112" width="384" height="12" rx="4"/><rect x="48" y="140" width="384" height="12" rx="4"/><rect x="48" y="168" width="300" height="12" rx="4"/><rect x="48" y="212" width="384" height="12" rx="4"/><rect x="48" y="240" width="220" height="12" rx="4"/>'
605
+ ),
606
+ imageAltText: "Rich text in one to three columns",
607
+ fields: [
608
+ sectionFields(),
609
+ {
610
+ name: "columns",
611
+ type: "array",
612
+ minRows: 1,
613
+ maxRows: 3,
614
+ admin: { initCollapsed: true },
615
+ fields: [
616
+ {
617
+ name: "size",
618
+ type: "select",
619
+ defaultValue: "full",
620
+ options: [
621
+ { label: "Full width", value: "full" },
622
+ { label: "Two thirds", value: "twoThirds" },
623
+ { label: "Half", value: "half" },
624
+ { label: "One third", value: "oneThird" }
625
+ ]
626
+ },
627
+ { name: "richText", type: "richText", label: false }
628
+ ]
629
+ }
630
+ ]
631
+ };
632
+
633
+ // src/blocks/FAQ/config.ts
634
+ var FAQ = {
635
+ slug: "faq",
636
+ interfaceName: "FAQBlock",
637
+ labels: { singular: "FAQ", plural: "FAQs" },
638
+ imageURL: thumbnail(
639
+ '<rect x="48" y="48" width="200" height="24" rx="4"/><rect x="48" y="100" width="384" height="44" rx="6" fill="#dfe3e8"/><rect x="48" y="156" width="384" height="44" rx="6" fill="#dfe3e8"/><rect x="48" y="212" width="384" height="44" rx="6" fill="#dfe3e8"/><path d="M404 116l8 8 8-8" stroke="#8a93a3" stroke-width="3" fill="none"/><path d="M404 172l8 8 8-8" stroke="#8a93a3" stroke-width="3" fill="none"/><path d="M404 228l8 8 8-8" stroke="#8a93a3" stroke-width="3" fill="none"/>'
640
+ ),
641
+ imageAltText: "Questions that expand to show their answers",
642
+ fields: [
643
+ sectionFields(),
644
+ { name: "heading", type: "text" },
645
+ { name: "intro", type: "textarea" },
646
+ {
647
+ name: "items",
648
+ type: "array",
649
+ minRows: 1,
650
+ admin: { initCollapsed: true },
651
+ labels: { singular: "Question", plural: "Questions" },
652
+ fields: [
653
+ { name: "question", type: "text", required: true },
654
+ { name: "answer", type: "richText", required: true }
655
+ ]
656
+ }
657
+ ]
658
+ };
659
+
660
+ // src/blocks/Gallery/config.ts
661
+ var Gallery = {
662
+ slug: "gallery",
663
+ interfaceName: "GalleryBlock",
664
+ labels: { singular: "Gallery", plural: "Galleries" },
665
+ imageURL: thumbnail(
666
+ '<rect x="40" y="40" width="124" height="112" rx="6"/><rect x="178" y="40" width="124" height="112" rx="6"/><rect x="316" y="40" width="124" height="112" rx="6"/><rect x="40" y="168" width="124" height="112" rx="6"/><rect x="178" y="168" width="124" height="112" rx="6"/><rect x="316" y="168" width="124" height="112" rx="6"/>'
667
+ ),
668
+ imageAltText: "A grid of images",
669
+ fields: [
670
+ sectionFields(),
671
+ { name: "heading", type: "text" },
672
+ {
673
+ name: "columns",
674
+ type: "select",
675
+ defaultValue: "3",
676
+ options: [
677
+ { label: "2 columns", value: "2" },
678
+ { label: "3 columns", value: "3" },
679
+ { label: "4 columns", value: "4" }
680
+ ]
681
+ },
682
+ {
683
+ name: "images",
684
+ type: "array",
685
+ minRows: 1,
686
+ admin: { initCollapsed: true },
687
+ fields: [
688
+ { name: "image", type: "upload", relationTo: "media", required: true },
689
+ { name: "caption", type: "text" }
690
+ ]
691
+ }
692
+ ]
693
+ };
694
+
695
+ // src/blocks/MediaBlock/config.ts
696
+ var MediaBlock = {
697
+ slug: "mediaBlock",
698
+ interfaceName: "MediaBlock",
699
+ labels: { singular: "Media", plural: "Media" },
700
+ imageURL: thumbnail(
701
+ '<rect x="48" y="40" width="384" height="200" rx="8"/><path d="M120 200l60-70 50 50 40-30 90 50z" fill="#f1f2f4"/><rect x="48" y="260" width="200" height="12" rx="4"/>'
702
+ ),
703
+ imageAltText: "An image with a caption",
704
+ fields: [
705
+ sectionFields(),
706
+ { name: "media", type: "upload", relationTo: "media", required: true },
707
+ { name: "caption", type: "text" },
708
+ {
709
+ name: "width",
710
+ type: "select",
711
+ defaultValue: "container",
712
+ options: [
713
+ { label: "Content width", value: "container" },
714
+ { label: "Narrow", value: "narrow" }
715
+ ]
716
+ }
717
+ ]
718
+ };
719
+
720
+ // src/blocks/Tabs/config.ts
721
+ var Tabs = {
722
+ slug: "tabs",
723
+ interfaceName: "TabsBlock",
724
+ labels: { singular: "Tabs", plural: "Tabs" },
725
+ imageURL: thumbnail(
726
+ '<rect x="48" y="56" width="96" height="32" rx="6" fill="#8a93a3"/><rect x="156" y="56" width="96" height="32" rx="6"/><rect x="264" y="56" width="96" height="32" rx="6"/><rect x="48" y="104" width="384" height="160" rx="8" fill="#dfe3e8"/><rect x="72" y="132" width="300" height="12" rx="4"/><rect x="72" y="156" width="260" height="12" rx="4"/>'
727
+ ),
728
+ imageAltText: "Content split into tabs",
729
+ fields: [
730
+ sectionFields(),
731
+ { name: "heading", type: "text" },
732
+ {
733
+ name: "tabs",
734
+ type: "array",
735
+ minRows: 1,
736
+ maxRows: 8,
737
+ admin: { initCollapsed: true },
738
+ fields: [
739
+ { name: "label", type: "text", required: true },
740
+ { name: "content", type: "richText", required: true }
741
+ ]
742
+ }
743
+ ]
744
+ };
745
+
746
+ // src/blocks/Testimonials/config.ts
747
+ var Testimonials = {
748
+ slug: "testimonials",
749
+ interfaceName: "TestimonialsBlock",
750
+ labels: { singular: "Testimonials", plural: "Testimonials" },
751
+ imageURL: thumbnail(
752
+ '<rect x="160" y="40" width="160" height="24" rx="4"/><rect x="40" y="96" width="190" height="180" rx="10" fill="#dfe3e8"/><rect x="250" y="96" width="190" height="180" rx="10" fill="#dfe3e8"/><rect x="60" y="120" width="150" height="10" rx="4"/><rect x="60" y="140" width="130" height="10" rx="4"/><circle cx="76" cy="236" r="16"/><rect x="270" y="120" width="150" height="10" rx="4"/><rect x="270" y="140" width="120" height="10" rx="4"/><circle cx="286" cy="236" r="16"/>'
753
+ ),
754
+ imageAltText: "Quotes from customers with their names",
755
+ fields: [
756
+ sectionFields(),
757
+ { name: "heading", type: "text" },
758
+ {
759
+ name: "items",
760
+ type: "array",
761
+ minRows: 1,
762
+ admin: { initCollapsed: true },
763
+ labels: { singular: "Testimonial", plural: "Testimonials" },
764
+ fields: [
765
+ { name: "quote", type: "textarea", required: true },
766
+ {
767
+ type: "row",
768
+ fields: [
769
+ { name: "name", type: "text", required: true },
770
+ {
771
+ name: "role",
772
+ type: "text",
773
+ admin: { description: 'e.g. "Guest, May 2026"' }
774
+ }
775
+ ]
776
+ },
777
+ {
778
+ type: "row",
779
+ fields: [
780
+ { name: "avatar", type: "upload", relationTo: "media" },
781
+ {
782
+ name: "rating",
783
+ type: "number",
784
+ min: 1,
785
+ max: 5,
786
+ admin: { description: "Stars out of 5; leave empty for none." }
787
+ }
788
+ ]
789
+ }
790
+ ]
791
+ }
792
+ ]
793
+ };
794
+
795
+ // src/blocks/MediaBlock/Component.tsx
796
+ import { Section as Section8 } from "@foundrykit/primitives";
797
+ import { jsx as jsx9, jsxs as jsxs7 } from "react/jsx-runtime";
798
+ function MediaBlock2(props) {
799
+ return /* @__PURE__ */ jsx9(Section8, { ...sectionProps(props), children: /* @__PURE__ */ jsxs7(
800
+ "figure",
801
+ {
802
+ className: `${container} ${props.width === "narrow" ? "max-w-3xl" : ""}`,
803
+ children: [
804
+ /* @__PURE__ */ jsx9(
805
+ Media,
806
+ {
807
+ media: props.media,
808
+ className: "h-auto w-full rounded-[var(--card-radius,calc(var(--radius)+4px))]"
809
+ }
810
+ ),
811
+ props.caption && /* @__PURE__ */ jsx9("figcaption", { className: "text-muted-foreground mt-3 text-sm", children: props.caption })
812
+ ]
813
+ }
814
+ ) });
815
+ }
816
+
817
+ // src/blocks/shared/seed.ts
818
+ function richText(...blocks) {
819
+ const base = { format: "", indent: 0, version: 1, direction: "ltr" };
820
+ const text = (value) => ({
821
+ type: "text",
822
+ text: value,
823
+ format: 0,
824
+ style: "",
825
+ mode: "normal",
826
+ detail: 0,
827
+ version: 1
828
+ });
829
+ return {
830
+ root: {
831
+ ...base,
832
+ type: "root",
833
+ children: blocks.map(
834
+ (block) => typeof block === "string" ? {
835
+ ...base,
836
+ type: "paragraph",
837
+ textFormat: 0,
838
+ textStyle: "",
839
+ children: [text(block)]
840
+ } : {
841
+ ...base,
842
+ type: "heading",
843
+ tag: block[0],
844
+ children: [text(block[1])]
845
+ }
846
+ )
847
+ }
848
+ };
849
+ }
850
+ var seedLink = (label, url, appearance = "default") => ({ type: "custom", url, label, appearance, newTab: false });
851
+
852
+ // src/blocks/Tabs/Component.tsx
853
+ import { Section as Section9 } from "@foundrykit/primitives";
854
+ import { useId as useId6 } from "react";
855
+
856
+ // src/blocks/Tabs/TabList.tsx
857
+ import {
858
+ Children,
859
+ useId as useId5,
860
+ useRef,
861
+ useState
862
+ } from "react";
863
+ import { jsx as jsx10, jsxs as jsxs8 } from "react/jsx-runtime";
864
+ function TabList({
865
+ label,
866
+ labels,
867
+ children
868
+ }) {
869
+ const id = useId5();
870
+ const panels = Children.toArray(children);
871
+ const tabs = useRef([]);
872
+ const [state, setState] = useState({ index: 0, direction: 0 });
873
+ const select = (index, focus = false) => {
874
+ const next = (index + labels.length) % labels.length;
875
+ setState((s) => ({ index: next, direction: Math.sign(next - s.index) }));
876
+ if (focus) tabs.current[next]?.focus();
877
+ };
878
+ const onKeyDown = (event) => {
879
+ const keys = {
880
+ ArrowRight: state.index + 1,
881
+ ArrowLeft: state.index - 1,
882
+ Home: 0,
883
+ End: labels.length - 1
884
+ };
885
+ const target = keys[event.key];
886
+ if (target === void 0) return;
887
+ event.preventDefault();
888
+ select(target, true);
889
+ };
890
+ const enter = state.direction > 0 ? "animate-in fade-in motion-safe:slide-in-from-right-4 duration-200 ease-out" : state.direction < 0 ? "animate-in fade-in motion-safe:slide-in-from-left-4 duration-200 ease-out" : "";
891
+ return /* @__PURE__ */ jsxs8("div", { children: [
892
+ /* @__PURE__ */ jsx10(
893
+ "div",
894
+ {
895
+ role: "tablist",
896
+ "aria-label": label,
897
+ onKeyDown,
898
+ className: "flex gap-1 overflow-x-auto border-b",
899
+ children: labels.map((text, i) => /* @__PURE__ */ jsx10(
900
+ "button",
901
+ {
902
+ ref: (el) => {
903
+ tabs.current[i] = el;
904
+ },
905
+ id: `${id}-tab-${i}`,
906
+ type: "button",
907
+ role: "tab",
908
+ "aria-selected": i === state.index,
909
+ "aria-controls": `${id}-panel-${i}`,
910
+ tabIndex: i === state.index ? 0 : -1,
911
+ onClick: () => select(i),
912
+ className: "text-muted-foreground hover:text-foreground aria-selected:border-primary aria-selected:text-foreground focus-visible:ring-ring/50 -mb-px border-b-2 border-transparent px-4 py-2 text-sm font-medium whitespace-nowrap transition-colors duration-150 outline-none focus-visible:ring-[3px]",
913
+ children: text
914
+ },
915
+ i
916
+ ))
917
+ }
918
+ ),
919
+ panels.map((panel, i) => /* @__PURE__ */ jsx10(
920
+ "div",
921
+ {
922
+ id: `${id}-panel-${i}`,
923
+ role: "tabpanel",
924
+ "aria-labelledby": `${id}-tab-${i}`,
925
+ tabIndex: 0,
926
+ hidden: i !== state.index,
927
+ className: `focus-visible:ring-ring/50 rounded-sm pt-6 outline-none focus-visible:ring-[3px] ${i === state.index ? enter : ""}`,
928
+ children: panel
929
+ },
930
+ i
931
+ ))
932
+ ] });
933
+ }
934
+
935
+ // src/blocks/Tabs/Component.tsx
936
+ import { jsx as jsx11, jsxs as jsxs9 } from "react/jsx-runtime";
937
+ function TabsBlock(props) {
938
+ const id = useId6();
939
+ const tabs = props.tabs ?? [];
940
+ return /* @__PURE__ */ jsx11(
941
+ Section9,
942
+ {
943
+ ...sectionProps(props),
944
+ "aria-labelledby": props.heading ? id : void 0,
945
+ children: /* @__PURE__ */ jsxs9("div", { className: container, children: [
946
+ props.heading && /* @__PURE__ */ jsx11("h2", { id, className: `${heading} mb-8`, children: props.heading }),
947
+ /* @__PURE__ */ jsx11(
948
+ TabList,
949
+ {
950
+ label: props.heading ?? "Tabs",
951
+ labels: tabs.map((tab) => tab.label ?? ""),
952
+ children: tabs.map((tab, i) => /* @__PURE__ */ jsx11(RichText, { data: tab.content }, tab.id ?? i))
953
+ }
954
+ )
955
+ ] })
956
+ }
957
+ );
958
+ }
959
+
960
+ // src/blocks/Testimonials/Component.tsx
961
+ import { Section as Section10 } from "@foundrykit/primitives";
962
+ import { useId as useId7 } from "react";
963
+ import { jsx as jsx12, jsxs as jsxs10 } from "react/jsx-runtime";
964
+ function Stars({ rating }) {
965
+ const stars = Math.round(Math.min(Math.max(rating, 0), 5));
966
+ return /* @__PURE__ */ jsxs10("p", { className: "text-warning mb-4 flex gap-0.5", children: [
967
+ /* @__PURE__ */ jsxs10("span", { className: "sr-only", children: [
968
+ "Rated ",
969
+ stars,
970
+ " out of 5"
971
+ ] }),
972
+ Array.from({ length: 5 }, (_, i) => /* @__PURE__ */ jsx12(
973
+ "svg",
974
+ {
975
+ "aria-hidden": "true",
976
+ viewBox: "0 0 20 20",
977
+ className: "size-4",
978
+ fill: i < stars ? "currentColor" : "none",
979
+ stroke: "currentColor",
980
+ strokeWidth: "1.5",
981
+ children: /* @__PURE__ */ jsx12("path", { d: "m10 1.5 2.6 5.4 5.9.8-4.3 4.1 1 5.9L10 15l-5.2 2.7 1-5.9-4.3-4.1 5.9-.8z" })
982
+ },
983
+ i
984
+ ))
985
+ ] });
986
+ }
987
+ function TestimonialsBlock(props) {
988
+ const id = useId7();
989
+ return /* @__PURE__ */ jsx12(
990
+ Section10,
991
+ {
992
+ ...sectionProps(props),
993
+ "aria-labelledby": props.heading ? id : void 0,
994
+ children: /* @__PURE__ */ jsxs10("div", { className: container, children: [
995
+ props.heading && /* @__PURE__ */ jsx12("h2", { id, className: `${heading} text-center`, children: props.heading }),
996
+ /* @__PURE__ */ jsx12("ul", { className: "mt-10 grid gap-6 md:grid-cols-2 lg:grid-cols-3", children: props.items?.map((item, i) => /* @__PURE__ */ jsx12("li", { children: /* @__PURE__ */ jsxs10("figure", { className: "bg-card text-card-foreground flex h-full flex-col rounded-[var(--card-radius,calc(var(--radius)+4px))] border p-6", children: [
997
+ item.rating ? /* @__PURE__ */ jsx12(Stars, { rating: item.rating }) : null,
998
+ /* @__PURE__ */ jsx12("blockquote", { className: "flex-1 text-pretty", children: /* @__PURE__ */ jsxs10("p", { children: [
999
+ "\u201C",
1000
+ item.quote,
1001
+ "\u201D"
1002
+ ] }) }),
1003
+ /* @__PURE__ */ jsxs10("figcaption", { className: "mt-6 flex items-center gap-3", children: [
1004
+ /* @__PURE__ */ jsx12(
1005
+ Media,
1006
+ {
1007
+ media: item.avatar,
1008
+ className: "size-10 rounded-full object-cover"
1009
+ }
1010
+ ),
1011
+ /* @__PURE__ */ jsxs10("span", { children: [
1012
+ /* @__PURE__ */ jsx12("span", { className: "block font-semibold", children: item.name }),
1013
+ item.role && /* @__PURE__ */ jsx12("span", { className: "text-muted-foreground block text-sm", children: item.role })
1014
+ ] })
1015
+ ] })
1016
+ ] }) }, item.id ?? i)) })
1017
+ ] })
1018
+ }
1019
+ );
1020
+ }
1021
+
5
1022
  // src/components/hero-minimal/index.tsx
6
1023
  import { Button } from "@foundrykit/primitives";
7
1024
  import { cn } from "@foundrykit/utils";
8
- import { jsx, jsxs } from "react/jsx-runtime";
1025
+ import { jsx as jsx13, jsxs as jsxs11 } from "react/jsx-runtime";
9
1026
  function Cta({
10
1027
  label,
11
1028
  href,
@@ -14,9 +1031,9 @@ function Cta({
14
1031
  }) {
15
1032
  if (!label) return null;
16
1033
  if (href) {
17
- return /* @__PURE__ */ jsx(Button, { asChild: true, variant, children: /* @__PURE__ */ jsx("a", { href, children: label }) });
1034
+ return /* @__PURE__ */ jsx13(Button, { asChild: true, variant, children: /* @__PURE__ */ jsx13("a", { href, children: label }) });
18
1035
  }
19
- return /* @__PURE__ */ jsx(Button, { variant, onClick, children: label });
1036
+ return /* @__PURE__ */ jsx13(Button, { variant, onClick, children: label });
20
1037
  }
21
1038
  function HeroMinimal({
22
1039
  title,
@@ -29,13 +1046,13 @@ function HeroMinimal({
29
1046
  onSecondaryClick,
30
1047
  className
31
1048
  }) {
32
- return /* @__PURE__ */ jsx("section", { className: cn("w-full py-12 md:py-24 lg:py-32", className), children: /* @__PURE__ */ jsx("div", { className: "container mx-auto px-4 md:px-6", children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center space-y-4 text-center", children: [
33
- /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
34
- title && /* @__PURE__ */ jsx("h1", { className: "lg:text-6xl/none text-3xl font-bold tracking-tighter sm:text-4xl md:text-5xl", children: title }),
35
- description && /* @__PURE__ */ jsx("p", { className: "text-muted-foreground mx-auto max-w-[700px] md:text-xl", children: description })
1049
+ return /* @__PURE__ */ jsx13("section", { className: cn("w-full py-12 md:py-24 lg:py-32", className), children: /* @__PURE__ */ jsx13("div", { className: "container mx-auto px-4 md:px-6", children: /* @__PURE__ */ jsxs11("div", { className: "flex flex-col items-center space-y-4 text-center", children: [
1050
+ /* @__PURE__ */ jsxs11("div", { className: "space-y-2", children: [
1051
+ title && /* @__PURE__ */ jsx13("h1", { className: "lg:text-6xl/none text-3xl font-bold tracking-tighter sm:text-4xl md:text-5xl", children: title }),
1052
+ description && /* @__PURE__ */ jsx13("p", { className: "text-muted-foreground mx-auto max-w-[700px] md:text-xl", children: description })
36
1053
  ] }),
37
- /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap justify-center gap-4", children: [
38
- /* @__PURE__ */ jsx(
1054
+ /* @__PURE__ */ jsxs11("div", { className: "flex flex-wrap justify-center gap-4", children: [
1055
+ /* @__PURE__ */ jsx13(
39
1056
  Cta,
40
1057
  {
41
1058
  label: primaryCta,
@@ -43,7 +1060,7 @@ function HeroMinimal({
43
1060
  onClick: onPrimaryClick
44
1061
  }
45
1062
  ),
46
- /* @__PURE__ */ jsx(
1063
+ /* @__PURE__ */ jsx13(
47
1064
  Cta,
48
1065
  {
49
1066
  label: secondaryCta,
@@ -68,14 +1085,14 @@ import {
68
1085
  } from "@foundrykit/primitives";
69
1086
  import { cn as cn2 } from "@foundrykit/utils";
70
1087
  import { Check } from "lucide-react";
71
- import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
1088
+ import { jsx as jsx14, jsxs as jsxs12 } from "react/jsx-runtime";
72
1089
  function Pricing({ tiers, title, subtitle, className }) {
73
- return /* @__PURE__ */ jsx2("section", { className: cn2("w-full py-12 md:py-24 lg:py-32", className), children: /* @__PURE__ */ jsxs2("div", { className: "container mx-auto px-4 md:px-6", children: [
74
- /* @__PURE__ */ jsx2("div", { className: "flex flex-col items-center space-y-4 text-center", children: /* @__PURE__ */ jsxs2("div", { className: "space-y-2", children: [
75
- title && /* @__PURE__ */ jsx2("h2", { className: "text-3xl font-bold tracking-tighter sm:text-4xl md:text-5xl", children: title }),
76
- subtitle && /* @__PURE__ */ jsx2("p", { className: "text-muted-foreground mx-auto max-w-[700px] md:text-xl", children: subtitle })
1090
+ return /* @__PURE__ */ jsx14("section", { className: cn2("w-full py-12 md:py-24 lg:py-32", className), children: /* @__PURE__ */ jsxs12("div", { className: "container mx-auto px-4 md:px-6", children: [
1091
+ /* @__PURE__ */ jsx14("div", { className: "flex flex-col items-center space-y-4 text-center", children: /* @__PURE__ */ jsxs12("div", { className: "space-y-2", children: [
1092
+ title && /* @__PURE__ */ jsx14("h2", { className: "text-3xl font-bold tracking-tighter sm:text-4xl md:text-5xl", children: title }),
1093
+ subtitle && /* @__PURE__ */ jsx14("p", { className: "text-muted-foreground mx-auto max-w-[700px] md:text-xl", children: subtitle })
77
1094
  ] }) }),
78
- /* @__PURE__ */ jsx2("div", { className: "mx-auto mt-8 grid max-w-5xl grid-cols-1 gap-6 md:grid-cols-3 lg:gap-8", children: tiers.map((tier) => /* @__PURE__ */ jsxs2(
1095
+ /* @__PURE__ */ jsx14("div", { className: "mx-auto mt-8 grid max-w-5xl grid-cols-1 gap-6 md:grid-cols-3 lg:gap-8", children: tiers.map((tier) => /* @__PURE__ */ jsxs12(
79
1096
  Card,
80
1097
  {
81
1098
  className: cn2(
@@ -83,30 +1100,30 @@ function Pricing({ tiers, title, subtitle, className }) {
83
1100
  tier.popular && "border-primary shadow-lg"
84
1101
  ),
85
1102
  children: [
86
- tier.popular && /* @__PURE__ */ jsx2(Badge, { className: "absolute -top-3 left-1/2 -translate-x-1/2", children: "Most Popular" }),
87
- /* @__PURE__ */ jsxs2(CardHeader, { children: [
88
- /* @__PURE__ */ jsx2(CardTitle, { children: tier.name }),
89
- /* @__PURE__ */ jsx2(CardDescription, { children: tier.description }),
90
- /* @__PURE__ */ jsx2("div", { className: "mt-4", children: /* @__PURE__ */ jsx2("span", { className: "text-4xl font-bold", children: tier.price }) })
1103
+ tier.popular && /* @__PURE__ */ jsx14(Badge, { className: "absolute -top-3 left-1/2 -translate-x-1/2", children: "Most Popular" }),
1104
+ /* @__PURE__ */ jsxs12(CardHeader, { children: [
1105
+ /* @__PURE__ */ jsx14(CardTitle, { children: tier.name }),
1106
+ /* @__PURE__ */ jsx14(CardDescription, { children: tier.description }),
1107
+ /* @__PURE__ */ jsx14("div", { className: "mt-4", children: /* @__PURE__ */ jsx14("span", { className: "text-4xl font-bold", children: tier.price }) })
91
1108
  ] }),
92
- /* @__PURE__ */ jsxs2(CardContent, { children: [
93
- /* @__PURE__ */ jsx2("ul", { className: "space-y-3", children: tier.features.map((feature) => /* @__PURE__ */ jsxs2("li", { className: "flex items-center space-x-2", children: [
94
- /* @__PURE__ */ jsx2(
1109
+ /* @__PURE__ */ jsxs12(CardContent, { children: [
1110
+ /* @__PURE__ */ jsx14("ul", { className: "space-y-3", children: tier.features.map((feature) => /* @__PURE__ */ jsxs12("li", { className: "flex items-center space-x-2", children: [
1111
+ /* @__PURE__ */ jsx14(
95
1112
  Check,
96
1113
  {
97
1114
  className: "text-success h-4 w-4",
98
1115
  "aria-hidden": "true"
99
1116
  }
100
1117
  ),
101
- /* @__PURE__ */ jsx2("span", { className: "text-sm", children: feature })
1118
+ /* @__PURE__ */ jsx14("span", { className: "text-sm", children: feature })
102
1119
  ] }, feature)) }),
103
- /* @__PURE__ */ jsx2(
1120
+ /* @__PURE__ */ jsx14(
104
1121
  Button2,
105
1122
  {
106
1123
  asChild: Boolean(tier.href),
107
1124
  className: "mt-6 w-full",
108
1125
  variant: tier.popular ? "default" : "outline",
109
- children: tier.href ? /* @__PURE__ */ jsx2("a", { href: tier.href, children: tier.cta }) : tier.cta
1126
+ children: tier.href ? /* @__PURE__ */ jsx14("a", { href: tier.href, children: tier.cta }) : tier.cta
110
1127
  }
111
1128
  )
112
1129
  ] })
@@ -127,26 +1144,26 @@ import {
127
1144
  } from "@foundrykit/primitives";
128
1145
  import { cn as cn3 } from "@foundrykit/utils";
129
1146
  import { Star } from "lucide-react";
130
- import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
131
- function Testimonials({
1147
+ import { jsx as jsx15, jsxs as jsxs13 } from "react/jsx-runtime";
1148
+ function Testimonials2({
132
1149
  testimonials,
133
1150
  title,
134
1151
  subtitle,
135
1152
  className
136
1153
  }) {
137
- return /* @__PURE__ */ jsx3("section", { className: cn3("w-full py-12 md:py-24 lg:py-32", className), children: /* @__PURE__ */ jsxs3("div", { className: "container mx-auto px-4 md:px-6", children: [
138
- /* @__PURE__ */ jsx3("div", { className: "flex flex-col items-center space-y-4 text-center", children: /* @__PURE__ */ jsxs3("div", { className: "space-y-2", children: [
139
- title && /* @__PURE__ */ jsx3("h2", { className: "text-3xl font-bold tracking-tighter sm:text-4xl md:text-5xl", children: title }),
140
- subtitle && /* @__PURE__ */ jsx3("p", { className: "text-muted-foreground mx-auto max-w-[700px] md:text-xl", children: subtitle })
1154
+ return /* @__PURE__ */ jsx15("section", { className: cn3("w-full py-12 md:py-24 lg:py-32", className), children: /* @__PURE__ */ jsxs13("div", { className: "container mx-auto px-4 md:px-6", children: [
1155
+ /* @__PURE__ */ jsx15("div", { className: "flex flex-col items-center space-y-4 text-center", children: /* @__PURE__ */ jsxs13("div", { className: "space-y-2", children: [
1156
+ title && /* @__PURE__ */ jsx15("h2", { className: "text-3xl font-bold tracking-tighter sm:text-4xl md:text-5xl", children: title }),
1157
+ subtitle && /* @__PURE__ */ jsx15("p", { className: "text-muted-foreground mx-auto max-w-[700px] md:text-xl", children: subtitle })
141
1158
  ] }) }),
142
- /* @__PURE__ */ jsx3("div", { className: "mx-auto mt-8 grid max-w-5xl grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-3", children: testimonials.map((testimonial) => /* @__PURE__ */ jsx3(Card2, { className: "relative", children: /* @__PURE__ */ jsx3(CardContent2, { className: "p-6", children: /* @__PURE__ */ jsxs3("figure", { children: [
143
- testimonial.rating != null && testimonial.rating > 0 && /* @__PURE__ */ jsx3(
1159
+ /* @__PURE__ */ jsx15("div", { className: "mx-auto mt-8 grid max-w-5xl grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-3", children: testimonials.map((testimonial) => /* @__PURE__ */ jsx15(Card2, { className: "relative", children: /* @__PURE__ */ jsx15(CardContent2, { className: "p-6", children: /* @__PURE__ */ jsxs13("figure", { children: [
1160
+ testimonial.rating != null && testimonial.rating > 0 && /* @__PURE__ */ jsx15(
144
1161
  "div",
145
1162
  {
146
1163
  role: "img",
147
1164
  "aria-label": `${testimonial.rating} out of 5 stars`,
148
1165
  className: "mb-4 flex items-center space-x-1",
149
- children: Array.from({ length: testimonial.rating }, (_, i) => /* @__PURE__ */ jsx3(
1166
+ children: Array.from({ length: testimonial.rating }, (_, i) => /* @__PURE__ */ jsx15(
150
1167
  Star,
151
1168
  {
152
1169
  "aria-hidden": "true",
@@ -156,25 +1173,25 @@ function Testimonials({
156
1173
  ))
157
1174
  }
158
1175
  ),
159
- /* @__PURE__ */ jsx3("blockquote", { className: "mb-4 text-sm leading-relaxed", children: /* @__PURE__ */ jsxs3("p", { children: [
1176
+ /* @__PURE__ */ jsx15("blockquote", { className: "mb-4 text-sm leading-relaxed", children: /* @__PURE__ */ jsxs13("p", { children: [
160
1177
  "\u201C",
161
1178
  testimonial.content,
162
1179
  "\u201D"
163
1180
  ] }) }),
164
- /* @__PURE__ */ jsxs3("figcaption", { className: "flex items-center space-x-3", children: [
165
- /* @__PURE__ */ jsxs3(Avatar, { children: [
166
- /* @__PURE__ */ jsx3(
1181
+ /* @__PURE__ */ jsxs13("figcaption", { className: "flex items-center space-x-3", children: [
1182
+ /* @__PURE__ */ jsxs13(Avatar, { children: [
1183
+ /* @__PURE__ */ jsx15(
167
1184
  AvatarImage,
168
1185
  {
169
1186
  src: testimonial.avatar,
170
1187
  alt: testimonial.name
171
1188
  }
172
1189
  ),
173
- /* @__PURE__ */ jsx3(AvatarFallback, { children: testimonial.name.split(" ").map((n) => n[0]).join("") })
1190
+ /* @__PURE__ */ jsx15(AvatarFallback, { children: testimonial.name.split(" ").map((n) => n[0]).join("") })
174
1191
  ] }),
175
- /* @__PURE__ */ jsxs3("div", { children: [
176
- /* @__PURE__ */ jsx3("div", { className: "font-semibold", children: testimonial.name }),
177
- /* @__PURE__ */ jsxs3("div", { className: "text-muted-foreground text-sm", children: [
1192
+ /* @__PURE__ */ jsxs13("div", { children: [
1193
+ /* @__PURE__ */ jsx15("div", { className: "font-semibold", children: testimonial.name }),
1194
+ /* @__PURE__ */ jsxs13("div", { className: "text-muted-foreground text-sm", children: [
178
1195
  testimonial.role,
179
1196
  " at ",
180
1197
  testimonial.company
@@ -185,10 +1202,31 @@ function Testimonials({
185
1202
  ] }) });
186
1203
  }
187
1204
  export {
1205
+ AnchorBarBlock,
1206
+ BannerBlock,
1207
+ CallToActionBlock,
1208
+ CardGridBlock,
1209
+ ContentBlock,
1210
+ FAQBlock,
1211
+ GalleryBlock,
188
1212
  HeroMinimal,
1213
+ MediaBlock2 as MediaBlock,
189
1214
  Pricing,
190
- Testimonials,
1215
+ SECTION_THEMES,
1216
+ TabsBlock,
1217
+ Testimonials2 as Testimonials,
1218
+ TestimonialsBlock,
191
1219
  WorldMap,
192
- cn4 as cn
1220
+ anchorId,
1221
+ index_configs_exports as blockConfigs,
1222
+ cn4 as cn,
1223
+ isSafeUrl,
1224
+ link,
1225
+ linkGroup,
1226
+ richText,
1227
+ sectionFields,
1228
+ sectionTheme,
1229
+ seedLink,
1230
+ thumbnail
193
1231
  };
194
1232
  //# sourceMappingURL=index.js.map