@foundrykit/blocks 2.1.1 → 3.0.2

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.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts","../src/components/hero-minimal/index.tsx","../src/components/pricing/index.tsx","../src/components/testimonials/index.tsx"],"sourcesContent":["// Export all blocks\n\nexport { WorldMap } from '@foundrykit/maps';\n// Export utilities from utils package\nexport { cn } from '@foundrykit/utils';\nexport { HeroMinimal } from './components/hero-minimal/index.js';\nexport { Pricing } from './components/pricing/index.js';\nexport { Testimonials } from './components/testimonials/index.js';\n","import { Button } from '@foundrykit/primitives';\nimport { cn } from '@foundrykit/utils';\n\nexport interface HeroMinimalProps {\n title?: string;\n description?: string;\n primaryCta?: string;\n /** Renders the primary CTA as a link. Takes precedence over `onPrimaryClick`. */\n primaryHref?: string;\n secondaryCta?: string;\n /** Renders the secondary CTA as a link. Takes precedence over `onSecondaryClick`. */\n secondaryHref?: string;\n onPrimaryClick?: () => void;\n onSecondaryClick?: () => void;\n className?: string;\n}\n\nfunction Cta({\n label,\n href,\n onClick,\n variant,\n}: {\n label?: string;\n href?: string;\n onClick?: () => void;\n variant?: 'outline';\n}) {\n if (!label) return null;\n if (href) {\n return (\n <Button asChild variant={variant}>\n <a href={href}>{label}</a>\n </Button>\n );\n }\n return (\n <Button variant={variant} onClick={onClick}>\n {label}\n </Button>\n );\n}\n\n/**\n * Centered hero section with a title, description, and primary/secondary\n * call-to-action links. Anything left empty is not rendered, so a blank CMS\n * field never shows placeholder copy. Pass `primaryHref`/`secondaryHref` for\n * real links (usable from a Server Component).\n */\nexport function HeroMinimal({\n title,\n description,\n primaryCta,\n primaryHref,\n secondaryCta,\n secondaryHref,\n onPrimaryClick,\n onSecondaryClick,\n className,\n}: HeroMinimalProps) {\n return (\n <section className={cn('w-full py-12 md:py-24 lg:py-32', className)}>\n <div className='container mx-auto px-4 md:px-6'>\n <div className='flex flex-col items-center space-y-4 text-center'>\n <div className='space-y-2'>\n {title && (\n <h1 className='lg:text-6xl/none text-3xl font-bold tracking-tighter sm:text-4xl md:text-5xl'>\n {title}\n </h1>\n )}\n {description && (\n <p className='text-muted-foreground mx-auto max-w-[700px] md:text-xl'>\n {description}\n </p>\n )}\n </div>\n <div className='flex flex-wrap justify-center gap-4'>\n <Cta\n label={primaryCta}\n href={primaryHref}\n onClick={onPrimaryClick}\n />\n <Cta\n label={secondaryCta}\n href={secondaryHref}\n onClick={onSecondaryClick}\n variant='outline'\n />\n </div>\n </div>\n </div>\n </section>\n );\n}\n","import {\n Badge,\n Button,\n Card,\n CardContent,\n CardDescription,\n CardHeader,\n CardTitle,\n} from '@foundrykit/primitives';\nimport { cn } from '@foundrykit/utils';\nimport { Check } from 'lucide-react';\n\nexport interface PricingTier {\n name: string;\n price: string;\n description: string;\n features: string[];\n popular?: boolean;\n cta: string;\n /** Where the tier's CTA links to. Without it the CTA renders as a plain button. */\n href?: string;\n}\n\nexport interface PricingProps {\n tiers: PricingTier[];\n title?: string;\n subtitle?: string;\n className?: string;\n}\n\n/**\n * Responsive pricing section that renders a grid of cards from the `tiers`\n * array. A tier marked `popular` is highlighted with a \"Most Popular\" badge and\n * an emphasised border. The heading and subtitle render only when provided.\n */\nexport function Pricing({ tiers, title, subtitle, className }: PricingProps) {\n return (\n <section className={cn('w-full py-12 md:py-24 lg:py-32', className)}>\n <div className='container mx-auto px-4 md:px-6'>\n <div className='flex flex-col items-center space-y-4 text-center'>\n <div className='space-y-2'>\n {title && (\n <h2 className='text-3xl font-bold tracking-tighter sm:text-4xl md:text-5xl'>\n {title}\n </h2>\n )}\n {subtitle && (\n <p className='text-muted-foreground mx-auto max-w-[700px] md:text-xl'>\n {subtitle}\n </p>\n )}\n </div>\n </div>\n <div className='mx-auto mt-8 grid max-w-5xl grid-cols-1 gap-6 md:grid-cols-3 lg:gap-8'>\n {tiers.map(tier => (\n <Card\n key={tier.name}\n className={cn(\n 'relative',\n tier.popular && 'border-primary shadow-lg'\n )}\n >\n {tier.popular && (\n <Badge className='absolute -top-3 left-1/2 -translate-x-1/2'>\n Most Popular\n </Badge>\n )}\n <CardHeader>\n <CardTitle>{tier.name}</CardTitle>\n <CardDescription>{tier.description}</CardDescription>\n <div className='mt-4'>\n <span className='text-4xl font-bold'>{tier.price}</span>\n </div>\n </CardHeader>\n <CardContent>\n <ul className='space-y-3'>\n {tier.features.map(feature => (\n <li key={feature} className='flex items-center space-x-2'>\n <Check\n className='text-success h-4 w-4'\n aria-hidden='true'\n />\n <span className='text-sm'>{feature}</span>\n </li>\n ))}\n </ul>\n <Button\n asChild={Boolean(tier.href)}\n className='mt-6 w-full'\n variant={tier.popular ? 'default' : 'outline'}\n >\n {tier.href ? <a href={tier.href}>{tier.cta}</a> : tier.cta}\n </Button>\n </CardContent>\n </Card>\n ))}\n </div>\n </div>\n </section>\n );\n}\n","import {\n Avatar,\n AvatarFallback,\n AvatarImage,\n Card,\n CardContent,\n} from '@foundrykit/primitives';\nimport { cn } from '@foundrykit/utils';\nimport { Star } from 'lucide-react';\n\nexport interface Testimonial {\n name: string;\n role: string;\n company: string;\n content: string;\n avatar?: string;\n /** Star rating out of 5. Hidden when 0 or missing. */\n rating?: number;\n}\n\nexport interface TestimonialsProps {\n testimonials: Testimonial[];\n title?: string;\n subtitle?: string;\n className?: string;\n}\n\n/**\n * Responsive testimonials section that renders a grid of quote cards from the\n * `testimonials` array. Each card shows the quote, author, and optional avatar\n * and star rating. The heading and subtitle render only when provided.\n */\nexport function Testimonials({\n testimonials,\n title,\n subtitle,\n className,\n}: TestimonialsProps) {\n return (\n <section className={cn('w-full py-12 md:py-24 lg:py-32', className)}>\n <div className='container mx-auto px-4 md:px-6'>\n <div className='flex flex-col items-center space-y-4 text-center'>\n <div className='space-y-2'>\n {title && (\n <h2 className='text-3xl font-bold tracking-tighter sm:text-4xl md:text-5xl'>\n {title}\n </h2>\n )}\n {subtitle && (\n <p className='text-muted-foreground mx-auto max-w-[700px] md:text-xl'>\n {subtitle}\n </p>\n )}\n </div>\n </div>\n <div className='mx-auto mt-8 grid max-w-5xl grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-3'>\n {testimonials.map(testimonial => (\n <Card key={testimonial.name} className='relative'>\n <CardContent className='p-6'>\n <figure>\n {testimonial.rating != null && testimonial.rating > 0 && (\n <div\n role='img'\n aria-label={`${testimonial.rating} out of 5 stars`}\n className='mb-4 flex items-center space-x-1'\n >\n {Array.from({ length: testimonial.rating }, (_, i) => (\n <Star\n // biome-ignore lint/suspicious/noArrayIndexKey: identical static icons\n key={i}\n aria-hidden='true'\n className='fill-warning text-warning h-4 w-4'\n />\n ))}\n </div>\n )}\n <blockquote className='mb-4 text-sm leading-relaxed'>\n <p>&ldquo;{testimonial.content}&rdquo;</p>\n </blockquote>\n <figcaption className='flex items-center space-x-3'>\n <Avatar>\n <AvatarImage\n src={testimonial.avatar}\n alt={testimonial.name}\n />\n <AvatarFallback>\n {testimonial.name\n .split(' ')\n .map(n => n[0])\n .join('')}\n </AvatarFallback>\n </Avatar>\n <div>\n <div className='font-semibold'>{testimonial.name}</div>\n <div className='text-muted-foreground text-sm'>\n {testimonial.role} at {testimonial.company}\n </div>\n </div>\n </figcaption>\n </figure>\n </CardContent>\n </Card>\n ))}\n </div>\n </div>\n </section>\n );\n}\n"],"mappings":";AAEA,SAAS,gBAAgB;AAEzB,SAAS,MAAAA,WAAU;;;ACJnB,SAAS,cAAc;AACvB,SAAS,UAAU;AA+BX,cAgCE,YAhCF;AAfR,SAAS,IAAI;AAAA,EACX;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAKG;AACD,MAAI,CAAC,MAAO,QAAO;AACnB,MAAI,MAAM;AACR,WACE,oBAAC,UAAO,SAAO,MAAC,SACd,8BAAC,OAAE,MAAa,iBAAM,GACxB;AAAA,EAEJ;AACA,SACE,oBAAC,UAAO,SAAkB,SACvB,iBACH;AAEJ;AAQO,SAAS,YAAY;AAAA,EA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A,gBAAAC,MAAC,SACC;AAAA,0BAAAD,KAAC,SAAI,WAAU,iBAAiB,sBAAY,MAAK;AAAA,UACjD,gBAAAC,MAAC,SAAI,WAAU,iCACZ;AAAA,wBAAY;AAAA,YAAK;AAAA,YAAK,YAAY;AAAA,aACrC;AAAA,WACF;AAAA,SACF;AAAA,OACF,GACF,KA3CS,YAAY,IA4CvB,CACD,GACH;AAAA,KACF,GACF;AAEJ;","names":["cn","Button","cn","jsx","jsxs","Card","CardContent","cn","jsx","jsxs"]}
1
+ {"version":3,"sources":["../src/index.ts","../src/blocks/AnchorBar/Component.tsx","../src/blocks/shared/render.tsx","../src/blocks/shared/fields.ts","../src/blocks/Banner/Component.tsx","../src/blocks/CallToAction/Component.tsx","../src/blocks/CardGrid/Component.tsx","../src/blocks/Content/Component.tsx","../src/blocks/FAQ/Component.tsx","../src/blocks/Gallery/Component.tsx","../src/blocks/index.configs.ts","../src/blocks/AnchorBar/config.ts","../src/blocks/Banner/config.ts","../src/blocks/CallToAction/config.ts","../src/blocks/CardGrid/config.ts","../src/blocks/Content/config.ts","../src/blocks/FAQ/config.ts","../src/blocks/Gallery/config.ts","../src/blocks/MediaBlock/config.ts","../src/blocks/Tabs/config.ts","../src/blocks/Testimonials/config.ts","../src/blocks/MediaBlock/Component.tsx","../src/blocks/shared/seed.ts","../src/blocks/Tabs/Component.tsx","../src/blocks/Tabs/TabList.tsx","../src/blocks/Testimonials/Component.tsx","../src/components/hero-minimal/index.tsx","../src/components/pricing/index.tsx","../src/components/testimonials/index.tsx"],"sourcesContent":["// Export all blocks\n\nexport { WorldMap } from '@foundrykit/maps';\n// Export utilities from utils package\nexport { cn } from '@foundrykit/utils';\nexport {\n AnchorBarBlock,\n type AnchorBarBlockProps,\n} from './blocks/AnchorBar/Component.js';\nexport {\n BannerBlock,\n type BannerBlockProps,\n} from './blocks/Banner/Component.js';\nexport {\n CallToActionBlock,\n type CallToActionBlockProps,\n} from './blocks/CallToAction/Component.js';\nexport {\n CardGridBlock,\n type CardGridBlockProps,\n} from './blocks/CardGrid/Component.js';\nexport {\n ContentBlock,\n type ContentBlockProps,\n} from './blocks/Content/Component.js';\nexport { FAQBlock, type FAQBlockProps } from './blocks/FAQ/Component.js';\nexport {\n GalleryBlock,\n type GalleryBlockProps,\n} from './blocks/Gallery/Component.js';\n// Payload block configs, for `blocks: Object.values(blockConfigs)`.\nexport * as blockConfigs from './blocks/index.configs.js';\nexport {\n MediaBlock,\n type MediaBlockProps,\n} from './blocks/MediaBlock/Component.js';\nexport * from './blocks/shared/fields.js';\nexport type {\n BlockBase,\n LinkValue,\n MediaValue,\n RichTextValue,\n} from './blocks/shared/render.js';\nexport { richText, seedLink } from './blocks/shared/seed.js';\nexport { TabsBlock, type TabsBlockProps } from './blocks/Tabs/Component.js';\nexport {\n TestimonialsBlock,\n type TestimonialsBlockProps,\n} from './blocks/Testimonials/Component.js';\nexport { HeroMinimal } from './components/hero-minimal/index.js';\nexport { Pricing } from './components/pricing/index.js';\nexport { Testimonials } from './components/testimonials/index.js';\n","import { Section } from '@foundrykit/primitives';\nimport { type BlockBase, container } from '../shared/render.js';\n\nexport type AnchorBarBlockProps = BlockBase & {\n links?:\n | { id?: string | null; label?: string | null; anchor?: string | null }[]\n | null;\n};\n\n/**\n * A sticky row of in-page links, in a \"On this page\" nav landmark. It\n * scrolls sideways on small screens rather than wrapping.\n */\nexport function AnchorBarBlock(props: AnchorBarBlockProps) {\n if (!props.links?.length) return null;\n return (\n <Section\n theme={props.sectionTheme}\n id={props.anchorId || undefined}\n className='bg-background/95 sticky top-0 z-10 border-b backdrop-blur'\n >\n <nav aria-label='On this page' className={container}>\n <ul className='flex gap-6 overflow-x-auto py-3 text-sm font-medium'>\n {props.links.map((link, i) => (\n <li key={link.id ?? i} className='shrink-0'>\n <a\n href={`#${link.anchor ?? ''}`}\n 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]'\n >\n {link.label}\n </a>\n </li>\n ))}\n </ul>\n </nav>\n </Section>\n );\n}\n","import { RichText as PayloadRichText } from '@payloadcms/richtext-lexical/react';\nimport type * as React from 'react';\nimport { isSafeUrl } from './fields.js';\n\n/** Fields every block has (see `sectionFields`). */\nexport type BlockBase = {\n id?: string | null;\n blockName?: string | null;\n blockType?: string;\n sectionTheme?: string | null;\n anchorId?: string | null;\n};\n\nexport type RichTextValue = React.ComponentProps<\n typeof PayloadRichText\n>['data'];\n\n/** An upload: the populated doc, or just its id at depth 0. */\nexport type MediaValue =\n | {\n url?: string | null;\n alt?: string | null;\n width?: number | null;\n height?: number | null;\n }\n | number\n | string\n | null\n | undefined;\n\nexport type LinkValue = {\n type?: 'reference' | 'custom' | null;\n newTab?: boolean | null;\n reference?: {\n relationTo: string;\n value: number | string | { slug?: string | null };\n } | null;\n url?: string | null;\n label?: string | null;\n appearance?: 'default' | 'outline' | 'link' | null;\n};\n\n/** Props for `<Section>`: theme, anchor id, and a scroll margin for a sticky Anchor Bar. */\nexport const sectionProps = (block: BlockBase) => ({\n theme: block.sectionTheme,\n id: block.anchorId || undefined,\n className: 'scroll-mt-24 py-12 md:py-20',\n});\n\nexport const container = 'mx-auto w-full max-w-6xl px-4 md:px-6';\nexport const heading =\n 'font-heading text-3xl font-semibold tracking-tight text-balance md:text-4xl';\n\nconst button =\n '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';\nconst appearances = {\n default: `${button} bg-primary text-primary-foreground hover:bg-primary/90`,\n outline: `${button} border border-current hover:bg-foreground/5`,\n link: 'text-primary underline underline-offset-4 outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50',\n};\n\n/** Where a link goes: a page's slug (`home` is `/`) or the custom URL. */\nexport function linkHref(link: LinkValue): string | undefined {\n if (link.type === 'custom')\n // Checked again here: data saved before validation, or seeded, may not be safe.\n return link.url && isSafeUrl(link.url) ? link.url.trim() : undefined;\n const value = link.reference?.value;\n if (!value || typeof value !== 'object' || !value.slug) return undefined;\n const slug = value.slug === 'home' ? '' : value.slug;\n const collection = link.reference?.relationTo;\n return collection && collection !== 'pages'\n ? `/${collection}/${slug}`\n : `/${slug}`;\n}\n\n/** A CMS link as an `<a>`, styled by `appearance`; nothing when it has no target. */\nexport function CMSLink({\n link,\n className,\n}: {\n link?: LinkValue | null;\n className?: string;\n}) {\n const href = link && linkHref(link);\n if (!link || !href) return null;\n return (\n <a\n href={href}\n className={[appearances[link.appearance ?? 'default'], className]\n .filter(Boolean)\n .join(' ')}\n {...(link.newTab ? { target: '_blank', rel: 'noopener noreferrer' } : {})}\n >\n {link.label}\n {link.newTab && <span className='sr-only'> (opens in a new tab)</span>}\n </a>\n );\n}\n\n/** An uploaded image; nothing until the upload is populated (depth ≥ 1). */\nexport function Media({\n media,\n className,\n priority,\n}: {\n media: MediaValue;\n className?: string;\n priority?: boolean;\n}) {\n if (!media || typeof media !== 'object' || !media.url) return null;\n // ponytail: plain <img>, so blocks need no next/image remotePatterns setup; swap in next/image per site if LCP matters.\n return (\n <img\n src={media.url}\n alt={media.alt ?? ''}\n width={media.width ?? undefined}\n height={media.height ?? undefined}\n loading={priority ? 'eager' : 'lazy'}\n decoding='async'\n className={className}\n />\n );\n}\n\n/** Lexical rich text with readable defaults for headings, lists and links. */\nexport function RichText({\n data,\n className,\n}: {\n data?: RichTextValue | null;\n className?: string;\n}) {\n if (!data) return null;\n return (\n <PayloadRichText\n data={data}\n className={[\n '[&_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',\n className,\n ]\n .filter(Boolean)\n .join(' ')}\n />\n );\n}\n","import type { CollectionSlug, Field } from 'payload';\n\n/**\n * Whether a custom link URL is safe to put in an href: http(s), mailto, tel,\n * a same-site path or an #anchor. Anything else (`javascript:`, `data:`,\n * `//host`) is rejected, so an editor can't store script in a link.\n */\nexport const isSafeUrl = (url: string) =>\n /^(https?:|mailto:|tel:|\\/(?![/\\\\])|#)/i.test(url.trim());\n\n/** The themes @foundrykit/tailwind ships; pass your own to {@link sectionTheme}. */\nexport const SECTION_THEMES = [\n { label: 'Page default', value: 'default' },\n { label: 'Light', value: 'light' },\n { label: 'Muted', value: 'muted' },\n { label: 'Dark', value: 'dark' },\n { label: 'Brand', value: 'brand' },\n];\n\n/**\n * The block's colour theme, rendered as `<Section theme>`. Add a theme by\n * passing it here and defining `[data-section-theme=\"<value>\"]` in your CSS.\n */\nexport const sectionTheme = ({\n themes = SECTION_THEMES,\n defaultValue = 'default',\n}: {\n themes?: { label: string; value: string }[];\n defaultValue?: string;\n} = {}): Field => ({\n name: 'sectionTheme',\n type: 'select',\n options: themes,\n defaultValue,\n admin: { width: '50%' },\n});\n\n/** An id an Anchor Bar (or any `#link`) can jump to. */\nexport const anchorId = (): Field => ({\n name: 'anchorId',\n type: 'text',\n admin: {\n width: '50%',\n description:\n 'Lets an Anchor Bar link here, e.g. \"faq\". Letters, numbers and dashes.',\n },\n validate: (value: unknown) =>\n !value ||\n /^[a-z][\\w-]*$/i.test(String(value)) ||\n 'Start with a letter; use letters, numbers, - and _.',\n});\n\n/** Theme and anchor side by side: every block starts with this row. */\nexport const sectionFields = (\n options?: Parameters<typeof sectionTheme>[0]\n): Field => ({\n type: 'row',\n fields: [sectionTheme(options), anchorId()],\n});\n\nexport type LinkOptions = {\n /** Collections an internal link can point at. */\n relationTo?: CollectionSlug[];\n /** Button styles to pick from; `false` hides the choice. */\n appearances?: ('default' | 'outline' | 'link')[] | false;\n /** Hide this link unless the condition holds (e.g. an \"add a link\" checkbox). */\n condition?: (data: unknown, siblingData: Record<string, unknown>) => boolean;\n};\n\n/** An internal page or a custom URL, with a label: like the Payload website template's `link`. */\nexport const link = ({\n relationTo = ['pages'] as CollectionSlug[],\n appearances = ['default', 'outline'],\n condition,\n}: LinkOptions = {}): Field => ({\n name: 'link',\n type: 'group',\n admin: { hideGutter: true, ...(condition ? { condition } : {}) },\n fields: [\n {\n type: 'row',\n fields: [\n {\n name: 'type',\n type: 'radio',\n defaultValue: 'reference',\n options: [\n { label: 'Internal link', value: 'reference' },\n { label: 'Custom URL', value: 'custom' },\n ],\n admin: { layout: 'horizontal', width: '50%' },\n },\n {\n name: 'newTab',\n type: 'checkbox',\n label: 'Open in a new tab',\n admin: { width: '50%', style: { alignSelf: 'flex-end' } },\n },\n ],\n },\n {\n name: 'reference',\n type: 'relationship',\n relationTo,\n required: true,\n admin: { condition: (_, sibling) => sibling?.type === 'reference' },\n },\n {\n name: 'url',\n type: 'text',\n label: 'Custom URL',\n required: true,\n admin: { condition: (_, sibling) => sibling?.type === 'custom' },\n // Replaces the required check, so it does that too (only for custom links).\n validate: (value: unknown, { siblingData }: { siblingData: unknown }) => {\n if ((siblingData as { type?: string } | null)?.type !== 'custom')\n return true;\n if (!value) return 'Required';\n return (\n isSafeUrl(String(value)) ||\n 'Use https://…, mailto:, tel:, a /path or a #anchor.'\n );\n },\n },\n { name: 'label', type: 'text', required: true },\n ...(appearances\n ? [\n {\n name: 'appearance',\n type: 'select',\n defaultValue: appearances[0],\n options: appearances.map(value => ({\n label: value[0]?.toUpperCase() + value.slice(1),\n value,\n })),\n } satisfies Field,\n ]\n : []),\n ],\n});\n\n/** Up to `maxRows` links (buttons), like the website template's `linkGroup`. */\nexport const linkGroup = ({\n maxRows = 2,\n ...options\n}: LinkOptions & { maxRows?: number } = {}): Field => ({\n name: 'links',\n type: 'array',\n maxRows,\n admin: { initCollapsed: true },\n fields: [link(options)],\n});\n\n/**\n * An admin block-picker thumbnail as a data URI, so a block needs no image\n * file: `body` is SVG drawn on a 480×320 canvas.\n */\nexport const thumbnail = (body: string) =>\n `data:image/svg+xml,${encodeURIComponent(\n `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 480 320\" fill=\"#c3c8d0\"><rect width=\"480\" height=\"320\" fill=\"#f1f2f4\"/>${body}</svg>`\n )}`;\n","import { Section } from '@foundrykit/primitives';\nimport {\n type BlockBase,\n container,\n RichText,\n type RichTextValue,\n sectionProps,\n} from '../shared/render.js';\n\nexport type BannerBlockProps = BlockBase & {\n style?: 'info' | 'success' | 'warning' | 'error' | null;\n content?: RichTextValue | null;\n};\n\n// Text stays text-foreground on a light tint of the status colour, so every\n// variant reads at AA; the icon and hairline border carry the colour.\nconst styles = {\n info: {\n label: 'Note',\n className: 'border-border bg-muted',\n icon: 'text-primary',\n path: 'M10 9v5m0-8h.01',\n },\n success: {\n label: 'Success',\n className: 'border-success/40 bg-success/10',\n icon: 'text-success',\n path: 'm6.5 10 2.5 2.5 4.5-5',\n },\n warning: {\n label: 'Warning',\n className: 'border-warning/50 bg-warning/15',\n icon: 'text-warning',\n path: 'M10 6v4.5m0 3h.01',\n },\n error: {\n label: 'Important',\n className: 'border-destructive/40 bg-destructive/10',\n icon: 'text-destructive',\n path: 'M10 6v4.5m0 3h.01',\n },\n};\n\n/**\n * A highlighted notice. The colour carries no meaning on its own: screen\n * readers hear its label (\"Warning: …\") first.\n */\nexport function BannerBlock(props: BannerBlockProps) {\n const style = styles[props.style ?? 'info'];\n return (\n <Section {...sectionProps(props)}>\n <div className={container}>\n <div\n className={`text-foreground flex gap-3 rounded-[var(--card-radius,calc(var(--radius)+4px))] border px-5 py-4 ${style.className}`}\n >\n <svg\n aria-hidden='true'\n viewBox='0 0 20 20'\n className={`mt-0.5 size-5 shrink-0 ${style.icon}`}\n fill='none'\n stroke='currentColor'\n strokeWidth='1.75'\n strokeLinecap='round'\n strokeLinejoin='round'\n >\n <circle cx='10' cy='10' r='8.25' />\n <path d={style.path} />\n </svg>\n <div>\n <span className='sr-only'>{style.label}: </span>\n <RichText data={props.content} />\n </div>\n </div>\n </div>\n </Section>\n );\n}\n","import { Section } from '@foundrykit/primitives';\nimport { useId } from 'react';\nimport {\n type BlockBase,\n CMSLink,\n container,\n heading,\n type LinkValue,\n sectionProps,\n} from '../shared/render.js';\n\nexport type CallToActionBlockProps = BlockBase & {\n heading?: string | null;\n body?: string | null;\n links?: { id?: string | null; link?: LinkValue | null }[] | null;\n};\n\n/** A centred heading, a sentence and up to two buttons. */\nexport function CallToActionBlock(props: CallToActionBlockProps) {\n const id = useId();\n return (\n <Section\n {...sectionProps(props)}\n aria-labelledby={props.heading ? id : undefined}\n >\n <div className={`${container} flex flex-col items-center text-center`}>\n {props.heading && (\n <h2 id={id} className={`${heading} max-w-3xl`}>\n {props.heading}\n </h2>\n )}\n {props.body && (\n <p className='text-muted-foreground mt-4 max-w-2xl text-lg text-pretty'>\n {props.body}\n </p>\n )}\n {props.links && props.links.length > 0 && (\n <div className='mt-8 flex flex-wrap justify-center gap-3'>\n {props.links.map((item, i) => (\n <CMSLink key={item.id ?? i} link={item.link} />\n ))}\n </div>\n )}\n </div>\n </Section>\n );\n}\n","import { Section } from '@foundrykit/primitives';\nimport { useId } from 'react';\nimport {\n type BlockBase,\n container,\n heading,\n type LinkValue,\n linkHref,\n Media,\n type MediaValue,\n sectionProps,\n} from '../shared/render.js';\n\nexport type CardGridBlockProps = BlockBase & {\n heading?: string | null;\n intro?: string | null;\n cards?:\n | {\n id?: string | null;\n image?: MediaValue;\n title?: string | null;\n description?: string | null;\n enableLink?: boolean | null;\n link?: LinkValue | null;\n }[]\n | null;\n};\n\n/**\n * Cards in a responsive grid. A linked card is one link (its title) stretched\n * over the whole card, so it's one tab stop with a sensible name.\n */\nexport function CardGridBlock(props: CardGridBlockProps) {\n const id = useId();\n return (\n <Section\n {...sectionProps(props)}\n aria-labelledby={props.heading ? id : undefined}\n >\n <div className={container}>\n {props.heading && (\n <h2 id={id} className={heading}>\n {props.heading}\n </h2>\n )}\n {props.intro && (\n <p className='text-muted-foreground mt-4 max-w-2xl text-lg'>\n {props.intro}\n </p>\n )}\n <ul className='mt-10 grid gap-6 sm:grid-cols-2 lg:grid-cols-3'>\n {props.cards?.map((card, i) => {\n const href =\n card.enableLink && card.link ? linkHref(card.link) : undefined;\n return (\n <li\n key={card.id ?? i}\n 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'\n >\n <Media\n media={card.image}\n className='aspect-[3/2] w-full object-cover'\n />\n <div className='flex flex-1 flex-col gap-2 p-6'>\n <h3 className='font-heading text-lg font-semibold'>\n {href ? (\n <a\n href={href}\n className='outline-none after:absolute after:inset-0'\n {...(card.link?.newTab\n ? { target: '_blank', rel: 'noopener noreferrer' }\n : {})}\n >\n {card.title}\n </a>\n ) : (\n card.title\n )}\n </h3>\n {card.description && (\n <p className='text-muted-foreground text-sm'>\n {card.description}\n </p>\n )}\n </div>\n </li>\n );\n })}\n </ul>\n </div>\n </Section>\n );\n}\n","import { Section } from '@foundrykit/primitives';\nimport {\n type BlockBase,\n container,\n RichText,\n type RichTextValue,\n sectionProps,\n} from '../shared/render.js';\n\nexport type ContentBlockProps = BlockBase & {\n columns?:\n | {\n id?: string | null;\n size?: 'full' | 'twoThirds' | 'half' | 'oneThird' | null;\n richText?: RichTextValue | null;\n }[]\n | null;\n};\n\nconst span = {\n full: 'md:col-span-12',\n twoThirds: 'md:col-span-8',\n half: 'md:col-span-6',\n oneThird: 'md:col-span-4',\n};\n\n/** Rich text in up to three columns that stack on small screens. */\nexport function ContentBlock(props: ContentBlockProps) {\n return (\n <Section {...sectionProps(props)}>\n <div className={`${container} grid grid-cols-1 gap-8 md:grid-cols-12`}>\n {props.columns?.map((column, i) => (\n <RichText\n key={column.id ?? i}\n data={column.richText}\n className={`max-w-prose ${span[column.size ?? 'full']}`}\n />\n ))}\n </div>\n </Section>\n );\n}\n","import { Section } from '@foundrykit/primitives';\nimport { useId } from 'react';\nimport {\n type BlockBase,\n container,\n heading,\n RichText,\n type RichTextValue,\n sectionProps,\n} from '../shared/render.js';\n\nexport type FAQBlockProps = BlockBase & {\n heading?: string | null;\n intro?: string | null;\n items?:\n | {\n id?: string | null;\n question?: string | null;\n answer?: RichTextValue | null;\n }[]\n | null;\n};\n\n/**\n * Questions as native `<details>`: keyboard and screen-reader support for\n * free, and the answers are in the HTML for search engines. The height\n * animates through `interpolate-size` (set on :root by @foundrykit/tailwind).\n */\nexport function FAQBlock(props: FAQBlockProps) {\n const id = useId();\n return (\n <Section\n {...sectionProps(props)}\n aria-labelledby={props.heading ? id : undefined}\n >\n <div className={`${container} max-w-3xl`}>\n {props.heading && (\n <h2 id={id} className={heading}>\n {props.heading}\n </h2>\n )}\n {props.intro && (\n <p className='text-muted-foreground mt-4 text-lg'>{props.intro}</p>\n )}\n <div className='mt-8 divide-y border-y'>\n {props.items?.map((item, i) => (\n <details\n key={item.id ?? i}\n 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'\n >\n <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'>\n {item.question}\n <svg\n aria-hidden='true'\n viewBox='0 0 16 16'\n className='size-4 shrink-0 transition-transform duration-200 ease-out group-open:rotate-180 motion-reduce:transition-none'\n fill='none'\n stroke='currentColor'\n strokeWidth='2'\n >\n <path d='m4 6 4 4 4-4' />\n </svg>\n </summary>\n <RichText\n data={item.answer}\n className='text-muted-foreground pb-4'\n />\n </details>\n ))}\n </div>\n </div>\n </Section>\n );\n}\n","import { Section } from '@foundrykit/primitives';\nimport { useId } from 'react';\nimport {\n type BlockBase,\n container,\n heading,\n Media,\n type MediaValue,\n sectionProps,\n} from '../shared/render.js';\n\nexport type GalleryBlockProps = BlockBase & {\n heading?: string | null;\n columns?: '2' | '3' | '4' | null;\n images?:\n | { id?: string | null; image?: MediaValue; caption?: string | null }[]\n | null;\n};\n\nconst grid = {\n '2': 'sm:grid-cols-2',\n '3': 'sm:grid-cols-2 lg:grid-cols-3',\n '4': 'sm:grid-cols-2 lg:grid-cols-4',\n};\n\n/** A grid of images, each a `<figure>` with its upload's alt text and an optional caption. */\nexport function GalleryBlock(props: GalleryBlockProps) {\n const id = useId();\n return (\n <Section\n {...sectionProps(props)}\n aria-labelledby={props.heading ? id : undefined}\n >\n <div className={container}>\n {props.heading && (\n <h2 id={id} className={`${heading} mb-10`}>\n {props.heading}\n </h2>\n )}\n <ul className={`grid grid-cols-1 gap-4 ${grid[props.columns ?? '3']}`}>\n {props.images?.map((item, i) => (\n <li key={item.id ?? i}>\n <figure>\n <Media\n media={item.image}\n className='aspect-[4/3] w-full rounded-[var(--card-radius,calc(var(--radius)+4px))] object-cover'\n />\n {item.caption && (\n <figcaption className='text-muted-foreground mt-2 text-sm'>\n {item.caption}\n </figcaption>\n )}\n </figure>\n </li>\n ))}\n </ul>\n </div>\n </Section>\n );\n}\n","// The Payload blocks, as a site's src/blocks/index.configs.ts lists them.\nexport * from './AnchorBar/config.js';\nexport * from './Banner/config.js';\nexport * from './CallToAction/config.js';\nexport * from './CardGrid/config.js';\nexport * from './Content/config.js';\nexport * from './FAQ/config.js';\nexport * from './Gallery/config.js';\nexport * from './MediaBlock/config.js';\nexport * from './Tabs/config.js';\nexport * from './Testimonials/config.js';\n","import type { Block } from 'payload';\nimport { sectionFields, thumbnail } from '../shared/fields.js';\n\nexport const AnchorBar: Block = {\n slug: 'anchorBar',\n interfaceName: 'AnchorBarBlock',\n labels: { singular: 'Anchor bar', plural: 'Anchor bars' },\n imageURL: thumbnail(\n '<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\"/>'\n ),\n imageAltText: 'A sticky bar of links to sections on the page',\n fields: [\n sectionFields(),\n {\n name: 'links',\n type: 'array',\n minRows: 1,\n maxRows: 8,\n admin: {\n initCollapsed: true,\n description: 'Each link jumps to the block whose Anchor ID matches.',\n },\n fields: [\n {\n type: 'row',\n fields: [\n { name: 'label', type: 'text', required: true },\n {\n name: 'anchor',\n type: 'text',\n required: true,\n admin: {\n description: 'The target block’s Anchor ID, without #.',\n },\n },\n ],\n },\n ],\n },\n ],\n};\n","import type { Block } from 'payload';\nimport { sectionFields, thumbnail } from '../shared/fields.js';\n\nexport const Banner: Block = {\n slug: 'banner',\n interfaceName: 'BannerBlock',\n labels: { singular: 'Banner', plural: 'Banners' },\n imageURL: thumbnail(\n '<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\"/>'\n ),\n imageAltText: 'A highlighted notice',\n fields: [\n sectionFields(),\n {\n name: 'style',\n type: 'select',\n defaultValue: 'info',\n required: true,\n options: [\n { label: 'Info', value: 'info' },\n { label: 'Success', value: 'success' },\n { label: 'Warning', value: 'warning' },\n { label: 'Error', value: 'error' },\n ],\n },\n { name: 'content', type: 'richText', label: false, required: true },\n ],\n};\n","import type { Block } from 'payload';\nimport { linkGroup, sectionFields, thumbnail } from '../shared/fields.js';\n\nexport const CallToAction: Block = {\n slug: 'cta',\n interfaceName: 'CallToActionBlock',\n labels: { singular: 'Call to action', plural: 'Calls to action' },\n imageURL: thumbnail(\n '<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\"/>'\n ),\n imageAltText: 'A heading, a sentence and up to two buttons',\n fields: [\n sectionFields({ defaultValue: 'brand' }),\n { name: 'heading', type: 'text', required: true },\n { name: 'body', type: 'textarea' },\n linkGroup({ maxRows: 2 }),\n ],\n};\n","import type { Block } from 'payload';\nimport { link, sectionFields, thumbnail } from '../shared/fields.js';\n\nexport const CardGrid: Block = {\n slug: 'cardGrid',\n interfaceName: 'CardGridBlock',\n labels: { singular: 'Card grid', plural: 'Card grids' },\n imageURL: thumbnail(\n '<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\"/>'\n ),\n imageAltText: 'Cards with an image, a title, text and a link',\n fields: [\n sectionFields(),\n { name: 'heading', type: 'text' },\n { name: 'intro', type: 'textarea' },\n {\n name: 'cards',\n type: 'array',\n minRows: 1,\n admin: { initCollapsed: true },\n fields: [\n { name: 'image', type: 'upload', relationTo: 'media' },\n { name: 'title', type: 'text', required: true },\n { name: 'description', type: 'textarea' },\n { name: 'enableLink', type: 'checkbox', label: 'Link the card' },\n link({\n appearances: false,\n condition: (_, sibling) => Boolean(sibling?.enableLink),\n }),\n ],\n },\n ],\n};\n","import type { Block } from 'payload';\nimport { sectionFields, thumbnail } from '../shared/fields.js';\n\nexport const Content: Block = {\n slug: 'content',\n interfaceName: 'ContentBlock',\n labels: { singular: 'Content', plural: 'Content' },\n imageURL: thumbnail(\n '<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\"/>'\n ),\n imageAltText: 'Rich text in one to three columns',\n fields: [\n sectionFields(),\n {\n name: 'columns',\n type: 'array',\n minRows: 1,\n maxRows: 3,\n admin: { initCollapsed: true },\n fields: [\n {\n name: 'size',\n type: 'select',\n defaultValue: 'full',\n options: [\n { label: 'Full width', value: 'full' },\n { label: 'Two thirds', value: 'twoThirds' },\n { label: 'Half', value: 'half' },\n { label: 'One third', value: 'oneThird' },\n ],\n },\n { name: 'richText', type: 'richText', label: false },\n ],\n },\n ],\n};\n","import type { Block } from 'payload';\nimport { sectionFields, thumbnail } from '../shared/fields.js';\n\nexport const FAQ: Block = {\n slug: 'faq',\n interfaceName: 'FAQBlock',\n labels: { singular: 'FAQ', plural: 'FAQs' },\n imageURL: thumbnail(\n '<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\"/>'\n ),\n imageAltText: 'Questions that expand to show their answers',\n fields: [\n sectionFields(),\n { name: 'heading', type: 'text' },\n { name: 'intro', type: 'textarea' },\n {\n name: 'items',\n type: 'array',\n minRows: 1,\n admin: { initCollapsed: true },\n labels: { singular: 'Question', plural: 'Questions' },\n fields: [\n { name: 'question', type: 'text', required: true },\n { name: 'answer', type: 'richText', required: true },\n ],\n },\n ],\n};\n","import type { Block } from 'payload';\nimport { sectionFields, thumbnail } from '../shared/fields.js';\n\nexport const Gallery: Block = {\n slug: 'gallery',\n interfaceName: 'GalleryBlock',\n labels: { singular: 'Gallery', plural: 'Galleries' },\n imageURL: thumbnail(\n '<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\"/>'\n ),\n imageAltText: 'A grid of images',\n fields: [\n sectionFields(),\n { name: 'heading', type: 'text' },\n {\n name: 'columns',\n type: 'select',\n defaultValue: '3',\n options: [\n { label: '2 columns', value: '2' },\n { label: '3 columns', value: '3' },\n { label: '4 columns', value: '4' },\n ],\n },\n {\n name: 'images',\n type: 'array',\n minRows: 1,\n admin: { initCollapsed: true },\n fields: [\n { name: 'image', type: 'upload', relationTo: 'media', required: true },\n { name: 'caption', type: 'text' },\n ],\n },\n ],\n};\n","import type { Block } from 'payload';\nimport { sectionFields, thumbnail } from '../shared/fields.js';\n\nexport const MediaBlock: Block = {\n slug: 'mediaBlock',\n interfaceName: 'MediaBlock',\n labels: { singular: 'Media', plural: 'Media' },\n imageURL: thumbnail(\n '<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\"/>'\n ),\n imageAltText: 'An image with a caption',\n fields: [\n sectionFields(),\n { name: 'media', type: 'upload', relationTo: 'media', required: true },\n { name: 'caption', type: 'text' },\n {\n name: 'width',\n type: 'select',\n defaultValue: 'container',\n options: [\n { label: 'Content width', value: 'container' },\n { label: 'Narrow', value: 'narrow' },\n ],\n },\n ],\n};\n","import type { Block } from 'payload';\nimport { sectionFields, thumbnail } from '../shared/fields.js';\n\nexport const Tabs: Block = {\n slug: 'tabs',\n interfaceName: 'TabsBlock',\n labels: { singular: 'Tabs', plural: 'Tabs' },\n imageURL: thumbnail(\n '<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\"/>'\n ),\n imageAltText: 'Content split into tabs',\n fields: [\n sectionFields(),\n { name: 'heading', type: 'text' },\n {\n name: 'tabs',\n type: 'array',\n minRows: 1,\n maxRows: 8,\n admin: { initCollapsed: true },\n fields: [\n { name: 'label', type: 'text', required: true },\n { name: 'content', type: 'richText', required: true },\n ],\n },\n ],\n};\n","import type { Block } from 'payload';\nimport { sectionFields, thumbnail } from '../shared/fields.js';\n\nexport const Testimonials: Block = {\n slug: 'testimonials',\n interfaceName: 'TestimonialsBlock',\n labels: { singular: 'Testimonials', plural: 'Testimonials' },\n imageURL: thumbnail(\n '<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\"/>'\n ),\n imageAltText: 'Quotes from customers with their names',\n fields: [\n sectionFields(),\n { name: 'heading', type: 'text' },\n {\n name: 'items',\n type: 'array',\n minRows: 1,\n admin: { initCollapsed: true },\n labels: { singular: 'Testimonial', plural: 'Testimonials' },\n fields: [\n { name: 'quote', type: 'textarea', required: true },\n {\n type: 'row',\n fields: [\n { name: 'name', type: 'text', required: true },\n {\n name: 'role',\n type: 'text',\n admin: { description: 'e.g. \"Guest, May 2026\"' },\n },\n ],\n },\n {\n type: 'row',\n fields: [\n { name: 'avatar', type: 'upload', relationTo: 'media' },\n {\n name: 'rating',\n type: 'number',\n min: 1,\n max: 5,\n admin: { description: 'Stars out of 5; leave empty for none.' },\n },\n ],\n },\n ],\n },\n ],\n};\n","import { Section } from '@foundrykit/primitives';\nimport {\n type BlockBase,\n container,\n Media,\n type MediaValue,\n sectionProps,\n} from '../shared/render.js';\n\nexport type MediaBlockProps = BlockBase & {\n media?: MediaValue;\n caption?: string | null;\n width?: 'container' | 'narrow' | null;\n};\n\n/** One image with an optional caption; the alt text comes from the upload. */\nexport function MediaBlock(props: MediaBlockProps) {\n return (\n <Section {...sectionProps(props)}>\n <figure\n className={`${container} ${props.width === 'narrow' ? 'max-w-3xl' : ''}`}\n >\n <Media\n media={props.media}\n className='h-auto w-full rounded-[var(--card-radius,calc(var(--radius)+4px))]'\n />\n {props.caption && (\n <figcaption className='text-muted-foreground mt-3 text-sm'>\n {props.caption}\n </figcaption>\n )}\n </figure>\n </Section>\n );\n}\n","import type { RichTextValue } from './render.js';\n\n/**\n * Builds Lexical rich text for seed data: a string is a paragraph,\n * `['h2', 'text']` a heading.\n */\n/** A block's seed data: its `blockType` plus the block's fields. */\nexport type BlockSeed = { blockType: string } & Record<string, unknown>;\n\nexport function richText(\n ...blocks: (string | ['h2' | 'h3', string])[]\n): RichTextValue {\n const base = { format: '', indent: 0, version: 1, direction: 'ltr' as const };\n const text = (value: string) => ({\n type: 'text',\n text: value,\n format: 0,\n style: '',\n mode: 'normal',\n detail: 0,\n version: 1,\n });\n return {\n root: {\n ...base,\n type: 'root',\n children: blocks.map(block =>\n typeof block === 'string'\n ? {\n ...base,\n type: 'paragraph',\n textFormat: 0,\n textStyle: '',\n children: [text(block)],\n }\n : {\n ...base,\n type: 'heading',\n tag: block[0],\n children: [text(block[1])],\n }\n ),\n },\n } as unknown as RichTextValue; // seed JSON is a valid editor state; TS widens its literal types\n}\n\n/** A seed link to a custom URL (internal links need a page id, which seeds don't have). */\nexport const seedLink = (\n label: string,\n url: string,\n appearance: 'default' | 'outline' | 'link' = 'default'\n) => ({ type: 'custom' as const, url, label, appearance, newTab: false });\n","import { Section } from '@foundrykit/primitives';\nimport { useId } from 'react';\nimport {\n type BlockBase,\n container,\n heading,\n RichText,\n type RichTextValue,\n sectionProps,\n} from '../shared/render.js';\nimport { TabList } from './TabList.js';\n\nexport type TabsBlockProps = BlockBase & {\n heading?: string | null;\n tabs?:\n | {\n id?: string | null;\n label?: string | null;\n content?: RichTextValue | null;\n }[]\n | null;\n};\n\n/** Content in tabs. The panels render on the server; only the tab switching ships JS. */\nexport function TabsBlock(props: TabsBlockProps) {\n const id = useId();\n const tabs = props.tabs ?? [];\n return (\n <Section\n {...sectionProps(props)}\n aria-labelledby={props.heading ? id : undefined}\n >\n <div className={container}>\n {props.heading && (\n <h2 id={id} className={`${heading} mb-8`}>\n {props.heading}\n </h2>\n )}\n <TabList\n label={props.heading ?? 'Tabs'}\n labels={tabs.map(tab => tab.label ?? '')}\n >\n {tabs.map((tab, i) => (\n <RichText key={tab.id ?? i} data={tab.content} />\n ))}\n </TabList>\n </div>\n </Section>\n );\n}\n","'use client';\n\nimport {\n Children,\n type KeyboardEvent,\n type ReactNode,\n useId,\n useRef,\n useState,\n} from 'react';\n\n/**\n * The WAI-ARIA tabs pattern: arrow keys, Home and End move between tabs and\n * select them. The new panel fades in and, unless reduced motion is on,\n * slides in from the side you moved towards.\n */\nexport function TabList({\n label,\n labels,\n children,\n}: {\n label: string;\n labels: string[];\n children: ReactNode;\n}) {\n const id = useId();\n const panels = Children.toArray(children);\n const tabs = useRef<(HTMLButtonElement | null)[]>([]);\n const [state, setState] = useState({ index: 0, direction: 0 });\n\n const select = (index: number, focus = false) => {\n const next = (index + labels.length) % labels.length;\n setState(s => ({ index: next, direction: Math.sign(next - s.index) }));\n if (focus) tabs.current[next]?.focus();\n };\n\n const onKeyDown = (event: KeyboardEvent) => {\n const keys: Record<string, number> = {\n ArrowRight: state.index + 1,\n ArrowLeft: state.index - 1,\n Home: 0,\n End: labels.length - 1,\n };\n const target = keys[event.key];\n if (target === undefined) return;\n event.preventDefault();\n select(target, true);\n };\n\n const enter =\n state.direction > 0\n ? 'animate-in fade-in motion-safe:slide-in-from-right-4 duration-200 ease-out'\n : state.direction < 0\n ? 'animate-in fade-in motion-safe:slide-in-from-left-4 duration-200 ease-out'\n : '';\n\n return (\n <div>\n <div\n role='tablist'\n aria-label={label}\n onKeyDown={onKeyDown}\n className='flex gap-1 overflow-x-auto border-b'\n >\n {labels.map((text, i) => (\n <button\n // biome-ignore lint/suspicious/noArrayIndexKey: labels may repeat; tabs pair with panels by position\n key={i}\n ref={el => {\n tabs.current[i] = el;\n }}\n id={`${id}-tab-${i}`}\n type='button'\n role='tab'\n aria-selected={i === state.index}\n aria-controls={`${id}-panel-${i}`}\n tabIndex={i === state.index ? 0 : -1}\n onClick={() => select(i)}\n 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]'\n >\n {text}\n </button>\n ))}\n </div>\n {panels.map((panel, i) => (\n <div\n // biome-ignore lint/suspicious/noArrayIndexKey: panels pair with tabs by position\n key={i}\n id={`${id}-panel-${i}`}\n role='tabpanel'\n aria-labelledby={`${id}-tab-${i}`}\n // biome-ignore lint/a11y/noNoninteractiveTabindex: WAI-ARIA tabs: a panel takes focus so its text is reachable\n tabIndex={0}\n hidden={i !== state.index}\n className={`focus-visible:ring-ring/50 rounded-sm pt-6 outline-none focus-visible:ring-[3px] ${i === state.index ? enter : ''}`}\n >\n {panel}\n </div>\n ))}\n </div>\n );\n}\n","import { Section } from '@foundrykit/primitives';\nimport { useId } from 'react';\nimport {\n type BlockBase,\n container,\n heading,\n Media,\n type MediaValue,\n sectionProps,\n} from '../shared/render.js';\n\nexport type TestimonialsBlockProps = BlockBase & {\n heading?: string | null;\n items?:\n | {\n id?: string | null;\n quote?: string | null;\n name?: string | null;\n role?: string | null;\n avatar?: MediaValue;\n rating?: number | null;\n }[]\n | null;\n};\n\nfunction Stars({ rating }: { rating: number }) {\n const stars = Math.round(Math.min(Math.max(rating, 0), 5));\n return (\n <p className='text-warning mb-4 flex gap-0.5'>\n <span className='sr-only'>Rated {stars} out of 5</span>\n {Array.from({ length: 5 }, (_, i) => (\n <svg\n // biome-ignore lint/suspicious/noArrayIndexKey: five fixed stars\n key={i}\n aria-hidden='true'\n viewBox='0 0 20 20'\n className='size-4'\n fill={i < stars ? 'currentColor' : 'none'}\n stroke='currentColor'\n strokeWidth='1.5'\n >\n <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' />\n </svg>\n ))}\n </p>\n );\n}\n\n/** Customer quotes as `<figure>`s: the quote in a `<blockquote>`, the person in its caption. */\nexport function TestimonialsBlock(props: TestimonialsBlockProps) {\n const id = useId();\n return (\n <Section\n {...sectionProps(props)}\n aria-labelledby={props.heading ? id : undefined}\n >\n <div className={container}>\n {props.heading && (\n <h2 id={id} className={`${heading} text-center`}>\n {props.heading}\n </h2>\n )}\n <ul className='mt-10 grid gap-6 md:grid-cols-2 lg:grid-cols-3'>\n {props.items?.map((item, i) => (\n <li key={item.id ?? i}>\n <figure className='bg-card text-card-foreground flex h-full flex-col rounded-[var(--card-radius,calc(var(--radius)+4px))] border p-6'>\n {item.rating ? <Stars rating={item.rating} /> : null}\n <blockquote className='flex-1 text-pretty'>\n <p>&ldquo;{item.quote}&rdquo;</p>\n </blockquote>\n <figcaption className='mt-6 flex items-center gap-3'>\n <Media\n media={item.avatar}\n className='size-10 rounded-full object-cover'\n />\n <span>\n <span className='block font-semibold'>{item.name}</span>\n {item.role && (\n <span className='text-muted-foreground block text-sm'>\n {item.role}\n </span>\n )}\n </span>\n </figcaption>\n </figure>\n </li>\n ))}\n </ul>\n </div>\n </Section>\n );\n}\n","import { Button } from '@foundrykit/primitives';\nimport { cn } from '@foundrykit/utils';\n\nexport interface HeroMinimalProps {\n title?: string;\n description?: string;\n primaryCta?: string;\n /** Renders the primary CTA as a link. Takes precedence over `onPrimaryClick`. */\n primaryHref?: string;\n secondaryCta?: string;\n /** Renders the secondary CTA as a link. Takes precedence over `onSecondaryClick`. */\n secondaryHref?: string;\n onPrimaryClick?: () => void;\n onSecondaryClick?: () => void;\n className?: string;\n}\n\nfunction Cta({\n label,\n href,\n onClick,\n variant,\n}: {\n label?: string;\n href?: string;\n onClick?: () => void;\n variant?: 'outline';\n}) {\n if (!label) return null;\n if (href) {\n return (\n <Button asChild variant={variant}>\n <a href={href}>{label}</a>\n </Button>\n );\n }\n return (\n <Button variant={variant} onClick={onClick}>\n {label}\n </Button>\n );\n}\n\n/**\n * Centered hero section with a title, description, and primary/secondary\n * call-to-action links. Anything left empty is not rendered, so a blank CMS\n * field never shows placeholder copy. Pass `primaryHref`/`secondaryHref` for\n * real links (usable from a Server Component).\n */\nexport function HeroMinimal({\n title,\n description,\n primaryCta,\n primaryHref,\n secondaryCta,\n secondaryHref,\n onPrimaryClick,\n onSecondaryClick,\n className,\n}: HeroMinimalProps) {\n return (\n <section className={cn('w-full py-12 md:py-24 lg:py-32', className)}>\n <div className='container mx-auto px-4 md:px-6'>\n <div className='flex flex-col items-center space-y-4 text-center'>\n <div className='space-y-2'>\n {title && (\n <h1 className='lg:text-6xl/none text-3xl font-bold tracking-tighter sm:text-4xl md:text-5xl'>\n {title}\n </h1>\n )}\n {description && (\n <p className='text-muted-foreground mx-auto max-w-[700px] md:text-xl'>\n {description}\n </p>\n )}\n </div>\n <div className='flex flex-wrap justify-center gap-4'>\n <Cta\n label={primaryCta}\n href={primaryHref}\n onClick={onPrimaryClick}\n />\n <Cta\n label={secondaryCta}\n href={secondaryHref}\n onClick={onSecondaryClick}\n variant='outline'\n />\n </div>\n </div>\n </div>\n </section>\n );\n}\n","import {\n Badge,\n Button,\n Card,\n CardContent,\n CardDescription,\n CardHeader,\n CardTitle,\n} from '@foundrykit/primitives';\nimport { cn } from '@foundrykit/utils';\nimport { Check } from 'lucide-react';\n\nexport interface PricingTier {\n name: string;\n price: string;\n description: string;\n features: string[];\n popular?: boolean;\n cta: string;\n /** Where the tier's CTA links to. Without it the CTA renders as a plain button. */\n href?: string;\n}\n\nexport interface PricingProps {\n tiers: PricingTier[];\n title?: string;\n subtitle?: string;\n className?: string;\n}\n\n/**\n * Responsive pricing section that renders a grid of cards from the `tiers`\n * array. A tier marked `popular` is highlighted with a \"Most Popular\" badge and\n * an emphasised border. The heading and subtitle render only when provided.\n */\nexport function Pricing({ tiers, title, subtitle, className }: PricingProps) {\n return (\n <section className={cn('w-full py-12 md:py-24 lg:py-32', className)}>\n <div className='container mx-auto px-4 md:px-6'>\n <div className='flex flex-col items-center space-y-4 text-center'>\n <div className='space-y-2'>\n {title && (\n <h2 className='text-3xl font-bold tracking-tighter sm:text-4xl md:text-5xl'>\n {title}\n </h2>\n )}\n {subtitle && (\n <p className='text-muted-foreground mx-auto max-w-[700px] md:text-xl'>\n {subtitle}\n </p>\n )}\n </div>\n </div>\n <div className='mx-auto mt-8 grid max-w-5xl grid-cols-1 gap-6 md:grid-cols-3 lg:gap-8'>\n {tiers.map(tier => (\n <Card\n key={tier.name}\n className={cn(\n 'relative',\n tier.popular && 'border-primary shadow-lg'\n )}\n >\n {tier.popular && (\n <Badge className='absolute -top-3 left-1/2 -translate-x-1/2'>\n Most Popular\n </Badge>\n )}\n <CardHeader>\n <CardTitle>{tier.name}</CardTitle>\n <CardDescription>{tier.description}</CardDescription>\n <div className='mt-4'>\n <span className='text-4xl font-bold'>{tier.price}</span>\n </div>\n </CardHeader>\n <CardContent>\n <ul className='space-y-3'>\n {tier.features.map(feature => (\n <li key={feature} className='flex items-center space-x-2'>\n <Check\n className='text-success h-4 w-4'\n aria-hidden='true'\n />\n <span className='text-sm'>{feature}</span>\n </li>\n ))}\n </ul>\n <Button\n asChild={Boolean(tier.href)}\n className='mt-6 w-full'\n variant={tier.popular ? 'default' : 'outline'}\n >\n {tier.href ? <a href={tier.href}>{tier.cta}</a> : tier.cta}\n </Button>\n </CardContent>\n </Card>\n ))}\n </div>\n </div>\n </section>\n );\n}\n","import {\n Avatar,\n AvatarFallback,\n AvatarImage,\n Card,\n CardContent,\n} from '@foundrykit/primitives';\nimport { cn } from '@foundrykit/utils';\nimport { Star } from 'lucide-react';\n\nexport interface Testimonial {\n name: string;\n role: string;\n company: string;\n content: string;\n avatar?: string;\n /** Star rating out of 5. Hidden when 0 or missing. */\n rating?: number;\n}\n\nexport interface TestimonialsProps {\n testimonials: Testimonial[];\n title?: string;\n subtitle?: string;\n className?: string;\n}\n\n/**\n * Responsive testimonials section that renders a grid of quote cards from the\n * `testimonials` array. Each card shows the quote, author, and optional avatar\n * and star rating. The heading and subtitle render only when provided.\n */\nexport function Testimonials({\n testimonials,\n title,\n subtitle,\n className,\n}: TestimonialsProps) {\n return (\n <section className={cn('w-full py-12 md:py-24 lg:py-32', className)}>\n <div className='container mx-auto px-4 md:px-6'>\n <div className='flex flex-col items-center space-y-4 text-center'>\n <div className='space-y-2'>\n {title && (\n <h2 className='text-3xl font-bold tracking-tighter sm:text-4xl md:text-5xl'>\n {title}\n </h2>\n )}\n {subtitle && (\n <p className='text-muted-foreground mx-auto max-w-[700px] md:text-xl'>\n {subtitle}\n </p>\n )}\n </div>\n </div>\n <div className='mx-auto mt-8 grid max-w-5xl grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-3'>\n {testimonials.map(testimonial => (\n <Card key={testimonial.name} className='relative'>\n <CardContent className='p-6'>\n <figure>\n {testimonial.rating != null && testimonial.rating > 0 && (\n <div\n role='img'\n aria-label={`${testimonial.rating} out of 5 stars`}\n className='mb-4 flex items-center space-x-1'\n >\n {Array.from({ length: testimonial.rating }, (_, i) => (\n <Star\n // biome-ignore lint/suspicious/noArrayIndexKey: identical static icons\n key={i}\n aria-hidden='true'\n className='fill-warning text-warning h-4 w-4'\n />\n ))}\n </div>\n )}\n <blockquote className='mb-4 text-sm leading-relaxed'>\n <p>&ldquo;{testimonial.content}&rdquo;</p>\n </blockquote>\n <figcaption className='flex items-center space-x-3'>\n <Avatar>\n <AvatarImage\n src={testimonial.avatar}\n alt={testimonial.name}\n />\n <AvatarFallback>\n {testimonial.name\n .split(' ')\n .map(n => n[0])\n .join('')}\n </AvatarFallback>\n </Avatar>\n <div>\n <div className='font-semibold'>{testimonial.name}</div>\n <div className='text-muted-foreground text-sm'>\n {testimonial.role} at {testimonial.company}\n </div>\n </div>\n </figcaption>\n </figure>\n </CardContent>\n </Card>\n ))}\n </div>\n </div>\n </section>\n );\n}\n"],"mappings":";;;;;;;AAEA,SAAS,gBAAgB;AAEzB,SAAS,MAAAA,WAAU;;;ACJnB,SAAS,eAAe;;;ACAxB,SAAS,YAAY,uBAAuB;;;ACOrC,IAAM,YAAY,CAAC,QACxB,yCAAyC,KAAK,IAAI,KAAK,CAAC;AAGnD,IAAM,iBAAiB;AAAA,EAC5B,EAAE,OAAO,gBAAgB,OAAO,UAAU;AAAA,EAC1C,EAAE,OAAO,SAAS,OAAO,QAAQ;AAAA,EACjC,EAAE,OAAO,SAAS,OAAO,QAAQ;AAAA,EACjC,EAAE,OAAO,QAAQ,OAAO,OAAO;AAAA,EAC/B,EAAE,OAAO,SAAS,OAAO,QAAQ;AACnC;AAMO,IAAM,eAAe,CAAC;AAAA,EAC3B,SAAS;AAAA,EACT,eAAe;AACjB,IAGI,CAAC,OAAc;AAAA,EACjB,MAAM;AAAA,EACN,MAAM;AAAA,EACN,SAAS;AAAA,EACT;AAAA,EACA,OAAO,EAAE,OAAO,MAAM;AACxB;AAGO,IAAM,WAAW,OAAc;AAAA,EACpC,MAAM;AAAA,EACN,MAAM;AAAA,EACN,OAAO;AAAA,IACL,OAAO;AAAA,IACP,aACE;AAAA,EACJ;AAAA,EACA,UAAU,CAAC,UACT,CAAC,SACD,iBAAiB,KAAK,OAAO,KAAK,CAAC,KACnC;AACJ;AAGO,IAAM,gBAAgB,CAC3B,aACW;AAAA,EACX,MAAM;AAAA,EACN,QAAQ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0BAAAD,MAAC,SAAI,WAAU,iBAAiB,sBAAY,MAAK;AAAA,UACjD,gBAAAC,OAAC,SAAI,WAAU,iCACZ;AAAA,wBAAY;AAAA,YAAK;AAAA,YAAK,YAAY;AAAA,aACrC;AAAA,WACF;AAAA,SACF;AAAA,OACF,GACF,KA3CS,YAAY,IA4CvB,CACD,GACH;AAAA,KACF,GACF;AAEJ;","names":["cn","appearances","link","jsx","link","Section","jsx","jsxs","Section","Section","jsx","jsxs","Section","Section","useId","jsx","jsxs","useId","Section","Section","jsx","Section","Section","useId","jsx","jsxs","useId","Section","Section","useId","jsx","jsxs","useId","Section","Section","jsx","jsxs","MediaBlock","Section","Section","useId","useId","jsx","jsxs","jsx","jsxs","useId","Section","Section","useId","jsx","jsxs","useId","Section","jsx","jsxs","Button","cn","jsx","jsxs","Card","CardContent","cn","jsx","jsxs","Testimonials"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@foundrykit/blocks",
3
- "version": "2.1.1",
3
+ "version": "3.0.2",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "main": "./dist/index.js",
@@ -23,17 +23,19 @@
23
23
  "clsx": "^2.1.1",
24
24
  "lucide-react": "^0.475.0",
25
25
  "tailwind-merge": "^3.3.1",
26
- "@foundrykit/animation": "2.1.1",
27
- "@foundrykit/components": "2.2.1",
26
+ "@foundrykit/animation": "2.1.3",
27
+ "@foundrykit/components": "2.2.4",
28
28
  "@foundrykit/maps": "3.0.5",
29
- "@foundrykit/primitives": "2.0.10",
30
- "@foundrykit/types": "3.0.0",
31
- "@foundrykit/utils": "1.0.8"
29
+ "@foundrykit/primitives": "2.1.2",
30
+ "@foundrykit/types": "3.1.0",
31
+ "@foundrykit/utils": "1.0.10"
32
32
  },
33
33
  "devDependencies": {
34
+ "@payloadcms/richtext-lexical": "3.90.0",
34
35
  "@types/node": "^20.19.9",
35
36
  "@types/react": "^19.1.9",
36
37
  "@types/react-dom": "^19.1.7",
38
+ "payload": "3.90.0",
37
39
  "react": "^19.1.1",
38
40
  "react-dom": "^19.1.1",
39
41
  "tsup": "^8.0.0",
@@ -41,9 +43,19 @@
41
43
  "@foundrykit/typescript-config": "1.0.6"
42
44
  },
43
45
  "peerDependencies": {
46
+ "@payloadcms/richtext-lexical": "^3.0.0",
47
+ "payload": "^3.0.0",
44
48
  "react": "^19.1.1",
45
49
  "react-dom": "^19.1.1"
46
50
  },
51
+ "peerDependenciesMeta": {
52
+ "@payloadcms/richtext-lexical": {
53
+ "optional": true
54
+ },
55
+ "payload": {
56
+ "optional": true
57
+ }
58
+ },
47
59
  "repository": {
48
60
  "type": "git",
49
61
  "url": "git+https://github.com/umi-labs/foundry.git",