@foundrykit/blocks 2.0.16 → 2.1.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.d.ts +14 -6
- package/dist/index.js +93 -54
- package/dist/index.js.map +1 -1
- package/package.json +14 -12
- package/.turbo/turbo-build.log +0 -17
- package/.turbo/turbo-type-check.log +0 -4
- package/CHANGELOG.md +0 -465
- package/src/components/hero-minimal/config.ts +0 -59
- package/src/components/hero-minimal/index.tsx +0 -49
- package/src/components/interactive-regions-map/config.ts +0 -483
- package/src/components/pricing/config.ts +0 -106
- package/src/components/pricing/index.tsx +0 -95
- package/src/components/testimonials/config.ts +0 -94
- package/src/components/testimonials/index.tsx +0 -94
- package/src/index.ts +0 -8
- package/tsconfig.json +0 -11
- package/tsconfig.lint.json +0 -8
- package/tsup.config.bundled_2vt0fsz69ve.mjs +0 -15
- package/tsup.config.ts +0 -11
package/dist/index.d.ts
CHANGED
|
@@ -6,17 +6,22 @@ interface HeroMinimalProps {
|
|
|
6
6
|
title?: string;
|
|
7
7
|
description?: string;
|
|
8
8
|
primaryCta?: string;
|
|
9
|
+
/** Renders the primary CTA as a link. Takes precedence over `onPrimaryClick`. */
|
|
10
|
+
primaryHref?: string;
|
|
9
11
|
secondaryCta?: string;
|
|
12
|
+
/** Renders the secondary CTA as a link. Takes precedence over `onSecondaryClick`. */
|
|
13
|
+
secondaryHref?: string;
|
|
10
14
|
onPrimaryClick?: () => void;
|
|
11
15
|
onSecondaryClick?: () => void;
|
|
12
16
|
className?: string;
|
|
13
17
|
}
|
|
14
18
|
/**
|
|
15
19
|
* Centered hero section with a title, description, and primary/secondary
|
|
16
|
-
* call-to-action
|
|
17
|
-
*
|
|
20
|
+
* call-to-action links. Anything left empty is not rendered, so a blank CMS
|
|
21
|
+
* field never shows placeholder copy. Pass `primaryHref`/`secondaryHref` for
|
|
22
|
+
* real links (usable from a Server Component).
|
|
18
23
|
*/
|
|
19
|
-
declare function HeroMinimal({ title, description, primaryCta, secondaryCta, onPrimaryClick, onSecondaryClick, className, }: HeroMinimalProps): react_jsx_runtime.JSX.Element;
|
|
24
|
+
declare function HeroMinimal({ title, description, primaryCta, primaryHref, secondaryCta, secondaryHref, onPrimaryClick, onSecondaryClick, className, }: HeroMinimalProps): react_jsx_runtime.JSX.Element;
|
|
20
25
|
|
|
21
26
|
interface PricingTier {
|
|
22
27
|
name: string;
|
|
@@ -25,6 +30,8 @@ interface PricingTier {
|
|
|
25
30
|
features: string[];
|
|
26
31
|
popular?: boolean;
|
|
27
32
|
cta: string;
|
|
33
|
+
/** Where the tier's CTA links to. Without it the CTA renders as a plain button. */
|
|
34
|
+
href?: string;
|
|
28
35
|
}
|
|
29
36
|
interface PricingProps {
|
|
30
37
|
tiers: PricingTier[];
|
|
@@ -35,9 +42,9 @@ interface PricingProps {
|
|
|
35
42
|
/**
|
|
36
43
|
* Responsive pricing section that renders a grid of cards from the `tiers`
|
|
37
44
|
* array. A tier marked `popular` is highlighted with a "Most Popular" badge and
|
|
38
|
-
* an emphasised border.
|
|
45
|
+
* an emphasised border. The heading and subtitle render only when provided.
|
|
39
46
|
*/
|
|
40
|
-
declare function Pricing({ tiers, title, subtitle, className
|
|
47
|
+
declare function Pricing({ tiers, title, subtitle, className }: PricingProps): react_jsx_runtime.JSX.Element;
|
|
41
48
|
|
|
42
49
|
interface Testimonial {
|
|
43
50
|
name: string;
|
|
@@ -45,6 +52,7 @@ interface Testimonial {
|
|
|
45
52
|
company: string;
|
|
46
53
|
content: string;
|
|
47
54
|
avatar?: string;
|
|
55
|
+
/** Star rating out of 5. Hidden when 0 or missing. */
|
|
48
56
|
rating?: number;
|
|
49
57
|
}
|
|
50
58
|
interface TestimonialsProps {
|
|
@@ -56,7 +64,7 @@ interface TestimonialsProps {
|
|
|
56
64
|
/**
|
|
57
65
|
* Responsive testimonials section that renders a grid of quote cards from the
|
|
58
66
|
* `testimonials` array. Each card shows the quote, author, and optional avatar
|
|
59
|
-
* and star rating.
|
|
67
|
+
* and star rating. The heading and subtitle render only when provided.
|
|
60
68
|
*/
|
|
61
69
|
declare function Testimonials({ testimonials, title, subtitle, className, }: TestimonialsProps): react_jsx_runtime.JSX.Element;
|
|
62
70
|
|
package/dist/index.js
CHANGED
|
@@ -1,27 +1,57 @@
|
|
|
1
1
|
// src/index.ts
|
|
2
2
|
import { WorldMap } from "@foundrykit/maps";
|
|
3
|
-
import { cn } from "@foundrykit/utils";
|
|
3
|
+
import { cn as cn4 } from "@foundrykit/utils";
|
|
4
4
|
|
|
5
5
|
// src/components/hero-minimal/index.tsx
|
|
6
6
|
import { Button } from "@foundrykit/primitives";
|
|
7
|
+
import { cn } from "@foundrykit/utils";
|
|
7
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
+
function Cta({
|
|
10
|
+
label,
|
|
11
|
+
href,
|
|
12
|
+
onClick,
|
|
13
|
+
variant
|
|
14
|
+
}) {
|
|
15
|
+
if (!label) return null;
|
|
16
|
+
if (href) {
|
|
17
|
+
return /* @__PURE__ */ jsx(Button, { asChild: true, variant, children: /* @__PURE__ */ jsx("a", { href, children: label }) });
|
|
18
|
+
}
|
|
19
|
+
return /* @__PURE__ */ jsx(Button, { variant, onClick, children: label });
|
|
20
|
+
}
|
|
8
21
|
function HeroMinimal({
|
|
9
|
-
title
|
|
10
|
-
description
|
|
11
|
-
primaryCta
|
|
12
|
-
|
|
22
|
+
title,
|
|
23
|
+
description,
|
|
24
|
+
primaryCta,
|
|
25
|
+
primaryHref,
|
|
26
|
+
secondaryCta,
|
|
27
|
+
secondaryHref,
|
|
13
28
|
onPrimaryClick,
|
|
14
29
|
onSecondaryClick,
|
|
15
30
|
className
|
|
16
31
|
}) {
|
|
17
|
-
return /* @__PURE__ */ jsx("section", { className:
|
|
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: [
|
|
18
33
|
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
19
|
-
/* @__PURE__ */ jsx("h1", { className: "lg:text-6xl/none text-3xl font-bold tracking-tighter sm:text-4xl md:text-5xl", children: title }),
|
|
20
|
-
/* @__PURE__ */ jsx("p", { className: "mx-auto max-w-[700px]
|
|
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 })
|
|
21
36
|
] }),
|
|
22
|
-
/* @__PURE__ */ jsxs("div", { className: "
|
|
23
|
-
/* @__PURE__ */ jsx(
|
|
24
|
-
|
|
37
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-wrap justify-center gap-4", children: [
|
|
38
|
+
/* @__PURE__ */ jsx(
|
|
39
|
+
Cta,
|
|
40
|
+
{
|
|
41
|
+
label: primaryCta,
|
|
42
|
+
href: primaryHref,
|
|
43
|
+
onClick: onPrimaryClick
|
|
44
|
+
}
|
|
45
|
+
),
|
|
46
|
+
/* @__PURE__ */ jsx(
|
|
47
|
+
Cta,
|
|
48
|
+
{
|
|
49
|
+
label: secondaryCta,
|
|
50
|
+
href: secondaryHref,
|
|
51
|
+
onClick: onSecondaryClick,
|
|
52
|
+
variant: "outline"
|
|
53
|
+
}
|
|
54
|
+
)
|
|
25
55
|
] })
|
|
26
56
|
] }) }) });
|
|
27
57
|
}
|
|
@@ -36,23 +66,22 @@ import {
|
|
|
36
66
|
CardHeader,
|
|
37
67
|
CardTitle
|
|
38
68
|
} from "@foundrykit/primitives";
|
|
69
|
+
import { cn as cn2 } from "@foundrykit/utils";
|
|
39
70
|
import { Check } from "lucide-react";
|
|
40
71
|
import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
41
|
-
function Pricing({
|
|
42
|
-
|
|
43
|
-
title = "Simple, transparent pricing",
|
|
44
|
-
subtitle = "Choose the plan that's right for you",
|
|
45
|
-
className
|
|
46
|
-
}) {
|
|
47
|
-
return /* @__PURE__ */ jsx2("section", { className: `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: [
|
|
72
|
+
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: [
|
|
48
74
|
/* @__PURE__ */ jsx2("div", { className: "flex flex-col items-center space-y-4 text-center", children: /* @__PURE__ */ jsxs2("div", { className: "space-y-2", children: [
|
|
49
|
-
/* @__PURE__ */ jsx2("h2", { className: "text-3xl font-bold tracking-tighter sm:text-4xl md:text-5xl", children: title }),
|
|
50
|
-
/* @__PURE__ */ jsx2("p", { className: "mx-auto max-w-[700px]
|
|
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 })
|
|
51
77
|
] }) }),
|
|
52
|
-
/* @__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
|
|
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(
|
|
53
79
|
Card,
|
|
54
80
|
{
|
|
55
|
-
className:
|
|
81
|
+
className: cn2(
|
|
82
|
+
"relative",
|
|
83
|
+
tier.popular && "border-primary shadow-lg"
|
|
84
|
+
),
|
|
56
85
|
children: [
|
|
57
86
|
tier.popular && /* @__PURE__ */ jsx2(Badge, { className: "absolute -top-3 left-1/2 -translate-x-1/2", children: "Most Popular" }),
|
|
58
87
|
/* @__PURE__ */ jsxs2(CardHeader, { children: [
|
|
@@ -61,29 +90,29 @@ function Pricing({
|
|
|
61
90
|
/* @__PURE__ */ jsx2("div", { className: "mt-4", children: /* @__PURE__ */ jsx2("span", { className: "text-4xl font-bold", children: tier.price }) })
|
|
62
91
|
] }),
|
|
63
92
|
/* @__PURE__ */ jsxs2(CardContent, { children: [
|
|
64
|
-
/* @__PURE__ */ jsx2("ul", { className: "space-y-3", children: tier.features.map((feature
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
)) }),
|
|
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(
|
|
95
|
+
Check,
|
|
96
|
+
{
|
|
97
|
+
className: "text-success h-4 w-4",
|
|
98
|
+
"aria-hidden": "true"
|
|
99
|
+
}
|
|
100
|
+
),
|
|
101
|
+
/* @__PURE__ */ jsx2("span", { className: "text-sm", children: feature })
|
|
102
|
+
] }, feature)) }),
|
|
75
103
|
/* @__PURE__ */ jsx2(
|
|
76
104
|
Button2,
|
|
77
105
|
{
|
|
106
|
+
asChild: Boolean(tier.href),
|
|
78
107
|
className: "mt-6 w-full",
|
|
79
108
|
variant: tier.popular ? "default" : "outline",
|
|
80
|
-
children: tier.cta
|
|
109
|
+
children: tier.href ? /* @__PURE__ */ jsx2("a", { href: tier.href, children: tier.cta }) : tier.cta
|
|
81
110
|
}
|
|
82
111
|
)
|
|
83
112
|
] })
|
|
84
113
|
]
|
|
85
114
|
},
|
|
86
|
-
|
|
115
|
+
tier.name
|
|
87
116
|
)) })
|
|
88
117
|
] }) });
|
|
89
118
|
}
|
|
@@ -96,33 +125,43 @@ import {
|
|
|
96
125
|
Card as Card2,
|
|
97
126
|
CardContent as CardContent2
|
|
98
127
|
} from "@foundrykit/primitives";
|
|
128
|
+
import { cn as cn3 } from "@foundrykit/utils";
|
|
99
129
|
import { Star } from "lucide-react";
|
|
100
130
|
import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
101
131
|
function Testimonials({
|
|
102
132
|
testimonials,
|
|
103
|
-
title
|
|
104
|
-
subtitle
|
|
133
|
+
title,
|
|
134
|
+
subtitle,
|
|
105
135
|
className
|
|
106
136
|
}) {
|
|
107
|
-
return /* @__PURE__ */ jsx3("section", { className:
|
|
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: [
|
|
108
138
|
/* @__PURE__ */ jsx3("div", { className: "flex flex-col items-center space-y-4 text-center", children: /* @__PURE__ */ jsxs3("div", { className: "space-y-2", children: [
|
|
109
|
-
/* @__PURE__ */ jsx3("h2", { className: "text-3xl font-bold tracking-tighter sm:text-4xl md:text-5xl", children: title }),
|
|
110
|
-
/* @__PURE__ */ jsx3("p", { className: "mx-auto max-w-[700px]
|
|
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 })
|
|
111
141
|
] }) }),
|
|
112
|
-
/* @__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
|
|
113
|
-
testimonial.rating
|
|
114
|
-
|
|
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(
|
|
144
|
+
"div",
|
|
115
145
|
{
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
146
|
+
role: "img",
|
|
147
|
+
"aria-label": `${testimonial.rating} out of 5 stars`,
|
|
148
|
+
className: "mb-4 flex items-center space-x-1",
|
|
149
|
+
children: Array.from({ length: testimonial.rating }, (_, i) => /* @__PURE__ */ jsx3(
|
|
150
|
+
Star,
|
|
151
|
+
{
|
|
152
|
+
"aria-hidden": "true",
|
|
153
|
+
className: "fill-warning text-warning h-4 w-4"
|
|
154
|
+
},
|
|
155
|
+
i
|
|
156
|
+
))
|
|
157
|
+
}
|
|
158
|
+
),
|
|
159
|
+
/* @__PURE__ */ jsx3("blockquote", { className: "mb-4 text-sm leading-relaxed", children: /* @__PURE__ */ jsxs3("p", { children: [
|
|
160
|
+
"\u201C",
|
|
122
161
|
testimonial.content,
|
|
123
|
-
|
|
124
|
-
] }),
|
|
125
|
-
/* @__PURE__ */ jsxs3("
|
|
162
|
+
"\u201D"
|
|
163
|
+
] }) }),
|
|
164
|
+
/* @__PURE__ */ jsxs3("figcaption", { className: "flex items-center space-x-3", children: [
|
|
126
165
|
/* @__PURE__ */ jsxs3(Avatar, { children: [
|
|
127
166
|
/* @__PURE__ */ jsx3(
|
|
128
167
|
AvatarImage,
|
|
@@ -142,7 +181,7 @@ function Testimonials({
|
|
|
142
181
|
] })
|
|
143
182
|
] })
|
|
144
183
|
] })
|
|
145
|
-
] }) },
|
|
184
|
+
] }) }) }, testimonial.name)) })
|
|
146
185
|
] }) });
|
|
147
186
|
}
|
|
148
187
|
export {
|
|
@@ -150,6 +189,6 @@ export {
|
|
|
150
189
|
Pricing,
|
|
151
190
|
Testimonials,
|
|
152
191
|
WorldMap,
|
|
153
|
-
cn
|
|
192
|
+
cn4 as cn
|
|
154
193
|
};
|
|
155
194
|
//# sourceMappingURL=index.js.map
|
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';\n\nexport interface HeroMinimalProps {\n title?: string;\n description?: string;\n primaryCta?: string;\n secondaryCta?: string;\n onPrimaryClick?: () => void;\n onSecondaryClick?: () => void;\n className?: string;\n}\n\n/**\n * Centered hero section with a title, description, and primary/secondary\n * call-to-action buttons. All text and click handlers are optional and fall\n * back to sensible defaults.\n */\nexport function HeroMinimal({\n title = 'Welcome to FoundryKit',\n description = 'Build beautiful, accessible React components with our comprehensive design system. Fast, flexible, and ready for production.',\n primaryCta = 'Get Started',\n secondaryCta = 'Learn More',\n onPrimaryClick,\n onSecondaryClick,\n className,\n}: HeroMinimalProps) {\n return (\n <section className={`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 <h1 className='lg:text-6xl/none text-3xl font-bold tracking-tighter sm:text-4xl md:text-5xl'>\n {title}\n </h1>\n <p className='mx-auto max-w-[700px] text-gray-500 md:text-xl dark:text-gray-400'>\n {description}\n </p>\n </div>\n <div className='space-x-4'>\n <Button onClick={onPrimaryClick}>{primaryCta}</Button>\n <Button variant='outline' onClick={onSecondaryClick}>\n {secondaryCta}\n </Button>\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 { 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}\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.\n */\nexport function Pricing({\n tiers,\n title = 'Simple, transparent pricing',\n subtitle = \"Choose the plan that's right for you\",\n className,\n}: PricingProps) {\n return (\n <section className={`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 <h2 className='text-3xl font-bold tracking-tighter sm:text-4xl md:text-5xl'>\n {title}\n </h2>\n <p className='mx-auto max-w-[700px] text-gray-500 md:text-xl dark:text-gray-400'>\n {subtitle}\n </p>\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, index) => (\n <Card\n key={index}\n className={`relative ${tier.popular ? 'border-primary shadow-lg' : ''}`}\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, featureIndex) => (\n <li\n key={featureIndex}\n className='flex items-center space-x-2'\n >\n <Check className='h-4 w-4 text-green-500' />\n <span className='text-sm'>{feature}</span>\n </li>\n ))}\n </ul>\n <Button\n className='mt-6 w-full'\n variant={tier.popular ? 'default' : 'outline'}\n >\n {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 { Star } from 'lucide-react';\n\nexport interface Testimonial {\n name: string;\n role: string;\n company: string;\n content: string;\n avatar?: string;\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.\n */\nexport function Testimonials({\n testimonials,\n title = 'What our customers say',\n subtitle = \"Don't just take our word for it\",\n className,\n}: TestimonialsProps) {\n return (\n <section className={`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 <h2 className='text-3xl font-bold tracking-tighter sm:text-4xl md:text-5xl'>\n {title}\n </h2>\n <p className='mx-auto max-w-[700px] text-gray-500 md:text-xl dark:text-gray-400'>\n {subtitle}\n </p>\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, index) => (\n <Card key={index} className='relative'>\n <CardContent className='p-6'>\n {testimonial.rating && (\n <div className='mb-4 flex items-center space-x-1'>\n {Array.from({ length: testimonial.rating }).map((_, i) => (\n <Star\n key={i}\n className='h-4 w-4 fill-yellow-400 text-yellow-400'\n />\n ))}\n </div>\n )}\n <blockquote className='mb-4 text-sm leading-relaxed'>\n "{testimonial.content}"\n </blockquote>\n <div 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 </div>\n </CardContent>\n </Card>\n ))}\n </div>\n </div>\n </section>\n );\n}\n"],"mappings":";AAEA,SAAS,gBAAgB;AAEzB,SAAS,UAAU;;;ACJnB,SAAS,cAAc;AA8Bb,SACE,KADF;AAbH,SAAS,YAAY;AAAA,EAC1B,QAAQ;AAAA,EACR,cAAc;AAAA,EACd,aAAa;AAAA,EACb,eAAe;AAAA,EACf;AAAA,EACA;AAAA,EACA;AACF,GAAqB;AACnB,SACE,oBAAC,aAAQ,WAAW,kCAAkC,SAAS,IAC7D,8BAAC,SAAI,WAAU,kCACb,+BAAC,SAAI,WAAU,oDACb;AAAA,yBAAC,SAAI,WAAU,aACb;AAAA,0BAAC,QAAG,WAAU,gFACX,iBACH;AAAA,MACA,oBAAC,OAAE,WAAU,qEACV,uBACH;AAAA,OACF;AAAA,IACA,qBAAC,SAAI,WAAU,aACb;AAAA,0BAAC,UAAO,SAAS,gBAAiB,sBAAW;AAAA,MAC7C,oBAAC,UAAO,SAAQ,WAAU,SAAS,kBAChC,wBACH;AAAA,OACF;AAAA,KACF,GACF,GACF;AAEJ;;;AChDA;AAAA,EACE;AAAA,EACA,UAAAA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,aAAa;AAiCZ,SACE,OAAAC,MADF,QAAAC,aAAA;AAVH,SAAS,QAAQ;AAAA,EACtB;AAAA,EACA,QAAQ;AAAA,EACR,WAAW;AAAA,EACX;AACF,GAAiB;AACf,SACE,gBAAAD,KAAC,aAAQ,WAAW,kCAAkC,SAAS,IAC7D,0BAAAC,MAAC,SAAI,WAAU,kCACb;AAAA,oBAAAD,KAAC,SAAI,WAAU,oDACb,0BAAAC,MAAC,SAAI,WAAU,aACb;AAAA,sBAAAD,KAAC,QAAG,WAAU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YAAK;AAAA,YAAK,YAAY;AAAA,aACrC;AAAA,WACF;AAAA,SACF;AAAA,OACF,KAnCS,KAoCX,CACD,GACH;AAAA,KACF,GACF;AAEJ;","names":["Button","jsx","jsxs","Card","CardContent","jsx","jsxs"]}
|
|
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>“{testimonial.content}”</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;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AAAA,QACA,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"]}
|
package/package.json
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@foundrykit/blocks",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"private": false,
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"module": "./dist/index.js",
|
|
8
8
|
"types": "./dist/index.d.ts",
|
|
9
|
+
"files": [
|
|
10
|
+
"dist"
|
|
11
|
+
],
|
|
12
|
+
"sideEffects": false,
|
|
9
13
|
"publishConfig": {
|
|
10
14
|
"access": "public"
|
|
11
15
|
},
|
|
@@ -13,21 +17,16 @@
|
|
|
13
17
|
".": {
|
|
14
18
|
"types": "./dist/index.d.ts",
|
|
15
19
|
"import": "./dist/index.js"
|
|
16
|
-
}
|
|
17
|
-
"./components/*": "./src/components/*.tsx",
|
|
18
|
-
"./lib/*": "./src/lib/*.ts"
|
|
20
|
+
}
|
|
19
21
|
},
|
|
20
22
|
"dependencies": {
|
|
21
23
|
"clsx": "^2.1.1",
|
|
22
24
|
"lucide-react": "^0.475.0",
|
|
23
|
-
"next": "^15.5.0",
|
|
24
|
-
"react": "^19.1.1",
|
|
25
|
-
"react-dom": "^19.1.1",
|
|
26
25
|
"tailwind-merge": "^3.3.1",
|
|
27
|
-
"@foundrykit/animation": "2.
|
|
28
|
-
"@foundrykit/components": "2.1
|
|
29
|
-
"@foundrykit/maps": "3.0.
|
|
30
|
-
"@foundrykit/primitives": "2.0.
|
|
26
|
+
"@foundrykit/animation": "2.1.1",
|
|
27
|
+
"@foundrykit/components": "2.2.1",
|
|
28
|
+
"@foundrykit/maps": "3.0.5",
|
|
29
|
+
"@foundrykit/primitives": "2.0.10",
|
|
31
30
|
"@foundrykit/types": "3.0.0",
|
|
32
31
|
"@foundrykit/utils": "1.0.8"
|
|
33
32
|
},
|
|
@@ -35,6 +34,8 @@
|
|
|
35
34
|
"@types/node": "^20.19.9",
|
|
36
35
|
"@types/react": "^19.1.9",
|
|
37
36
|
"@types/react-dom": "^19.1.7",
|
|
37
|
+
"react": "^19.1.1",
|
|
38
|
+
"react-dom": "^19.1.1",
|
|
38
39
|
"tsup": "^8.0.0",
|
|
39
40
|
"typescript": "^5.9.2",
|
|
40
41
|
"@foundrykit/typescript-config": "1.0.6"
|
|
@@ -51,6 +52,7 @@
|
|
|
51
52
|
"scripts": {
|
|
52
53
|
"build": "tsup",
|
|
53
54
|
"dev": "tsup --watch",
|
|
54
|
-
"type-check": "tsc --noEmit"
|
|
55
|
+
"type-check": "tsc --noEmit",
|
|
56
|
+
"verify:pack": "publint && attw --pack . --profile esm-only"
|
|
55
57
|
}
|
|
56
58
|
}
|
package/.turbo/turbo-build.log
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
> @foundrykit/blocks@2.0.16 build /home/runner/work/foundry/foundry/packages/blocks
|
|
3
|
-
> tsup
|
|
4
|
-
|
|
5
|
-
[34mCLI[39m Building entry: src/index.ts
|
|
6
|
-
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
7
|
-
[34mCLI[39m tsup v8.5.0
|
|
8
|
-
[34mCLI[39m Using tsup config: /home/runner/work/foundry/foundry/packages/blocks/tsup.config.ts
|
|
9
|
-
[34mCLI[39m Target: es2022
|
|
10
|
-
[34mCLI[39m Cleaning output folder
|
|
11
|
-
[34mESM[39m Build start
|
|
12
|
-
[32mESM[39m [1mdist/index.js [22m[32m6.94 KB[39m
|
|
13
|
-
[32mESM[39m [1mdist/index.js.map [22m[32m11.35 KB[39m
|
|
14
|
-
[32mESM[39m ⚡️ Build success in 65ms
|
|
15
|
-
[34mDTS[39m Build start
|
|
16
|
-
[32mDTS[39m ⚡️ Build success in 6151ms
|
|
17
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[32m1.90 KB[39m
|