@foundrykit/blocks 2.0.9 → 2.0.12
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/.turbo/turbo-build.log +17 -18
- package/.turbo/turbo-lint.log +4 -0
- package/.turbo/turbo-type-check.log +1 -1
- package/CHANGELOG.md +25 -0
- package/README.md +34 -241
- package/dist/index.d.ts +16 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
- package/src/components/hero-minimal/index.tsx +5 -0
- package/src/components/interactive-regions-map/config.ts +33 -33
- package/src/components/pricing/index.tsx +5 -0
- package/src/components/testimonials/index.tsx +5 -0
- package/src/index.ts +1 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
>
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
[34mCLI[39m
|
|
7
|
-
[34mCLI[39m
|
|
8
|
-
[34mCLI[39m tsup
|
|
9
|
-
[34mCLI[39m
|
|
10
|
-
[34mCLI[39m
|
|
11
|
-
[
|
|
12
|
-
[
|
|
13
|
-
[32mESM[39m [1mdist/index.js
|
|
14
|
-
[32mESM[39m
|
|
15
|
-
[
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
DTS dist/index.d.ts 1.36 KB
|
|
1
|
+
|
|
2
|
+
> @foundrykit/blocks@2.0.12 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[32m7.05 KB[39m
|
|
13
|
+
[32mESM[39m [1mdist/index.js.map [22m[32m11.45 KB[39m
|
|
14
|
+
[32mESM[39m ⚡️ Build success in 45ms
|
|
15
|
+
[34mDTS[39m Build start
|
|
16
|
+
[32mDTS[39m ⚡️ Build success in 9017ms
|
|
17
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m1.90 KB[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# @foundrykit/blocks
|
|
2
2
|
|
|
3
|
+
## 2.0.12
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- @foundrykit/maps@3.0.2
|
|
8
|
+
|
|
9
|
+
## 2.0.11
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- @foundrykit/maps@3.0.1
|
|
14
|
+
|
|
15
|
+
## 2.0.10
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- feat(storybook, maps): massive updates to maps packages spliting and
|
|
20
|
+
developing into full suites + storybook for easy of test
|
|
21
|
+
- Updated dependencies
|
|
22
|
+
- @foundrykit/maps@3.0.0
|
|
23
|
+
- @foundrykit/components@2.1.1
|
|
24
|
+
- @foundrykit/primitives@2.0.6
|
|
25
|
+
- @foundrykit/animation@2.0.6
|
|
26
|
+
- @foundrykit/types@2.0.6
|
|
27
|
+
|
|
3
28
|
## 2.0.9
|
|
4
29
|
|
|
5
30
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -1,280 +1,73 @@
|
|
|
1
1
|
# @foundrykit/blocks
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
## Features
|
|
8
|
-
|
|
9
|
-
- **Complete page sections** - Ready-to-use blocks for common page layouts
|
|
10
|
-
- **Highly customizable** - Easy to modify content, styling, and behaviour
|
|
11
|
-
- **Responsive design** - Mobile-first responsive layouts
|
|
12
|
-
- **Accessible** - Built with accessibility best practices
|
|
13
|
-
- **TypeScript support** - Full type safety for all block props
|
|
14
|
-
- **SEO optimized** - Proper semantic HTML and meta tags
|
|
3
|
+
Pre-built, composable page sections for building marketing and product pages
|
|
4
|
+
quickly — hero, pricing, testimonials, and an interactive world map, styled with
|
|
5
|
+
the FoundryKit design system.
|
|
15
6
|
|
|
16
7
|
## Installation
|
|
17
8
|
|
|
18
9
|
```bash
|
|
19
|
-
pnpm add @foundrykit/blocks
|
|
10
|
+
pnpm add @foundrykit/blocks @foundrykit/tailwind
|
|
20
11
|
```
|
|
21
12
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
### Hero Sections
|
|
25
|
-
|
|
26
|
-
- **HeroMinimal** - Clean, minimal hero section with title and CTA
|
|
27
|
-
- **HeroWithImage** - Hero section with background image
|
|
28
|
-
- **HeroWithVideo** - Hero section with video background
|
|
29
|
-
|
|
30
|
-
### Content Sections
|
|
31
|
-
|
|
32
|
-
- **Testimonials** - Customer testimonial carousel
|
|
33
|
-
- **Pricing** - Pricing table with multiple tiers
|
|
34
|
-
- **Features** - Feature showcase with icons and descriptions
|
|
35
|
-
- **FAQ** - Frequently asked questions accordion
|
|
13
|
+
Import the design-token stylesheet once at your app root so the blocks are styled
|
|
14
|
+
and themeable:
|
|
36
15
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
- **CTA** - Call-to-action section
|
|
41
|
-
- **SocialProof** - Social proof with logos and stats
|
|
16
|
+
```tsx
|
|
17
|
+
import '@foundrykit/tailwind/globals.css';
|
|
18
|
+
```
|
|
42
19
|
|
|
43
20
|
## Usage
|
|
44
21
|
|
|
45
|
-
### Basic Example
|
|
46
|
-
|
|
47
22
|
```tsx
|
|
48
|
-
import { HeroMinimal,
|
|
23
|
+
import { HeroMinimal, Pricing } from '@foundrykit/blocks';
|
|
49
24
|
|
|
50
25
|
function HomePage() {
|
|
51
26
|
return (
|
|
52
|
-
|
|
27
|
+
<>
|
|
53
28
|
<HeroMinimal
|
|
54
|
-
title=
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
29
|
+
title="Build amazing products"
|
|
30
|
+
description="Ship faster with the FoundryKit design system."
|
|
31
|
+
primaryCta="Get Started"
|
|
32
|
+
onPrimaryClick={() => {}}
|
|
58
33
|
/>
|
|
59
|
-
|
|
60
|
-
<Testimonials
|
|
61
|
-
testimonials={[
|
|
62
|
-
{
|
|
63
|
-
name: 'John Doe',
|
|
64
|
-
role: 'CEO',
|
|
65
|
-
company: 'Tech Corp',
|
|
66
|
-
content:
|
|
67
|
-
'Amazing product that saved us months of development time.',
|
|
68
|
-
},
|
|
69
|
-
]}
|
|
70
|
-
/>
|
|
71
|
-
|
|
72
34
|
<Pricing
|
|
73
|
-
|
|
35
|
+
tiers={[
|
|
74
36
|
{
|
|
75
37
|
name: 'Starter',
|
|
76
38
|
price: '$9',
|
|
77
|
-
|
|
39
|
+
description: 'For small teams',
|
|
40
|
+
features: ['Feature one', 'Feature two'],
|
|
41
|
+
cta: 'Choose Starter',
|
|
78
42
|
},
|
|
79
43
|
]}
|
|
80
44
|
/>
|
|
81
|
-
|
|
82
|
-
);
|
|
83
|
-
}
|
|
84
|
-
```
|
|
85
|
-
|
|
86
|
-
### Customizing Blocks
|
|
87
|
-
|
|
88
|
-
```tsx
|
|
89
|
-
import { HeroMinimal } from '@foundrykit/blocks';
|
|
90
|
-
|
|
91
|
-
function CustomHero() {
|
|
92
|
-
return (
|
|
93
|
-
<HeroMinimal
|
|
94
|
-
title='Custom Title'
|
|
95
|
-
subtitle='Custom subtitle text'
|
|
96
|
-
ctaText='Custom Button'
|
|
97
|
-
ctaHref='/custom-link'
|
|
98
|
-
className='bg-gradient-to-r from-blue-500 to-purple-600'
|
|
99
|
-
titleClassName='text-4xl font-bold text-white'
|
|
100
|
-
subtitleClassName='text-xl text-gray-200'
|
|
101
|
-
/>
|
|
102
|
-
);
|
|
103
|
-
}
|
|
104
|
-
```
|
|
105
|
-
|
|
106
|
-
### Block Configuration
|
|
107
|
-
|
|
108
|
-
Each block can be configured through its config file:
|
|
109
|
-
|
|
110
|
-
```tsx
|
|
111
|
-
import { Testimonials } from '@foundrykit/blocks'
|
|
112
|
-
|
|
113
|
-
// Use default configuration
|
|
114
|
-
<Testimonials testimonials={data} />
|
|
115
|
-
|
|
116
|
-
// Override with custom configuration
|
|
117
|
-
<Testimonials
|
|
118
|
-
testimonials={data}
|
|
119
|
-
autoPlay={false}
|
|
120
|
-
showDots={true}
|
|
121
|
-
className="my-custom-styles"
|
|
122
|
-
/>
|
|
123
|
-
```
|
|
124
|
-
|
|
125
|
-
## Block Structure
|
|
126
|
-
|
|
127
|
-
Each block is organized as follows:
|
|
128
|
-
|
|
129
|
-
```
|
|
130
|
-
block/
|
|
131
|
-
├── config.ts # Block configuration and variants
|
|
132
|
-
├── index.tsx # Main block component
|
|
133
|
-
├── variants-grid.tsx # Block variants for documentation
|
|
134
|
-
└── README.md # Block-specific documentation
|
|
135
|
-
```
|
|
136
|
-
|
|
137
|
-
## Content Management
|
|
138
|
-
|
|
139
|
-
### Dynamic Content
|
|
140
|
-
|
|
141
|
-
Blocks support dynamic content through props:
|
|
142
|
-
|
|
143
|
-
```tsx
|
|
144
|
-
import { Testimonials } from '@foundrykit/blocks';
|
|
145
|
-
|
|
146
|
-
function DynamicTestimonials({ testimonials }) {
|
|
147
|
-
return (
|
|
148
|
-
<Testimonials
|
|
149
|
-
testimonials={testimonials}
|
|
150
|
-
title='What our customers say'
|
|
151
|
-
subtitle='Real feedback from real users'
|
|
152
|
-
/>
|
|
45
|
+
</>
|
|
153
46
|
);
|
|
154
47
|
}
|
|
155
48
|
```
|
|
156
49
|
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
Blocks are designed to work with headless CMS systems:
|
|
160
|
-
|
|
161
|
-
```tsx
|
|
162
|
-
import { HeroMinimal } from '@foundrykit/blocks';
|
|
163
|
-
|
|
164
|
-
function CMSHero({ cmsData }) {
|
|
165
|
-
return (
|
|
166
|
-
<HeroMinimal
|
|
167
|
-
title={cmsData.title}
|
|
168
|
-
subtitle={cmsData.subtitle}
|
|
169
|
-
ctaText={cmsData.ctaText}
|
|
170
|
-
ctaHref={cmsData.ctaLink}
|
|
171
|
-
backgroundImage={cmsData.backgroundImage}
|
|
172
|
-
/>
|
|
173
|
-
);
|
|
174
|
-
}
|
|
175
|
-
```
|
|
176
|
-
|
|
177
|
-
## Styling and Theming
|
|
178
|
-
|
|
179
|
-
### Theme Integration
|
|
180
|
-
|
|
181
|
-
Blocks automatically use your theme tokens:
|
|
182
|
-
|
|
183
|
-
```tsx
|
|
184
|
-
import { Pricing } from '@foundrykit/blocks';
|
|
185
|
-
|
|
186
|
-
// Automatically uses theme colors and spacing
|
|
187
|
-
<Pricing plans={plans} className='bg-background text-foreground' />;
|
|
188
|
-
```
|
|
189
|
-
|
|
190
|
-
### Custom Styling
|
|
191
|
-
|
|
192
|
-
Override default styles with custom classes:
|
|
50
|
+
## Available blocks
|
|
193
51
|
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
52
|
+
- **`HeroMinimal`** — centered hero section with title, description, and primary
|
|
53
|
+
/ secondary call-to-action buttons
|
|
54
|
+
- **`Pricing`** — responsive pricing grid driven by a `tiers` array
|
|
55
|
+
(`PricingTier[]`), with an optional "Most Popular" highlight
|
|
56
|
+
- **`Testimonials`** — responsive testimonial grid driven by a `testimonials`
|
|
57
|
+
array (`Testimonial[]`), with optional avatars and star ratings
|
|
58
|
+
- **`WorldMap`** — interactive world map, re-exported from
|
|
59
|
+
[`@foundrykit/maps`](../maps)
|
|
197
60
|
|
|
198
|
-
|
|
199
|
-
return (
|
|
200
|
-
<Testimonials
|
|
201
|
-
className={cn(
|
|
202
|
-
'bg-gradient-to-br from-blue-50 to-indigo-100',
|
|
203
|
-
'rounded-xl border border-blue-200',
|
|
204
|
-
className
|
|
205
|
-
)}
|
|
206
|
-
{...props}
|
|
207
|
-
/>
|
|
208
|
-
);
|
|
209
|
-
}
|
|
210
|
-
```
|
|
61
|
+
The `cn` class-merge helper is also re-exported.
|
|
211
62
|
|
|
212
|
-
##
|
|
63
|
+
## Documentation
|
|
213
64
|
|
|
214
|
-
|
|
65
|
+
Explore every block and its variants live in Storybook:
|
|
215
66
|
|
|
216
|
-
```
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
// Automatically responsive
|
|
220
|
-
<HeroMinimal
|
|
221
|
-
title='Responsive Title'
|
|
222
|
-
subtitle='This block looks great on all devices'
|
|
223
|
-
className='
|
|
224
|
-
px-4 py-8
|
|
225
|
-
text-center md:px-8 md:py-12
|
|
226
|
-
md:text-left lg:px-16 lg:py-20
|
|
227
|
-
'
|
|
228
|
-
/>;
|
|
67
|
+
```bash
|
|
68
|
+
pnpm --filter @foundrykit/storybook dev
|
|
229
69
|
```
|
|
230
70
|
|
|
231
|
-
## Accessibility
|
|
232
|
-
|
|
233
|
-
Blocks include comprehensive accessibility features:
|
|
234
|
-
|
|
235
|
-
- Semantic HTML structure
|
|
236
|
-
- Proper ARIA attributes
|
|
237
|
-
- Keyboard navigation support
|
|
238
|
-
- Screen reader compatibility
|
|
239
|
-
- Color contrast compliance
|
|
240
|
-
- Focus management
|
|
241
|
-
|
|
242
|
-
## Performance
|
|
243
|
-
|
|
244
|
-
### Optimized Rendering
|
|
245
|
-
|
|
246
|
-
- Lazy loading for images and videos
|
|
247
|
-
- Optimized bundle sizes
|
|
248
|
-
- Efficient re-rendering
|
|
249
|
-
- Minimal JavaScript overhead
|
|
250
|
-
|
|
251
|
-
### SEO Optimization
|
|
252
|
-
|
|
253
|
-
- Proper heading hierarchy
|
|
254
|
-
- Meta tag support
|
|
255
|
-
- Structured data markup
|
|
256
|
-
- Fast loading times
|
|
257
|
-
|
|
258
|
-
## Dependencies
|
|
259
|
-
|
|
260
|
-
- **@foundrykit/primitives** - Base UI components
|
|
261
|
-
- **@foundrykit/components** - Higher-level components
|
|
262
|
-
- **@foundrykit/animation** - Animation utilities
|
|
263
|
-
- **React** - UI framework
|
|
264
|
-
- **TypeScript** - Type safety
|
|
265
|
-
|
|
266
|
-
## Contributing
|
|
267
|
-
|
|
268
|
-
When adding new blocks:
|
|
269
|
-
|
|
270
|
-
1. Follow the established block structure
|
|
271
|
-
2. Ensure mobile-first responsive design
|
|
272
|
-
3. Include comprehensive accessibility features
|
|
273
|
-
4. Add TypeScript definitions
|
|
274
|
-
5. Provide usage examples
|
|
275
|
-
6. Test across different screen sizes
|
|
276
|
-
7. Update this README
|
|
277
|
-
|
|
278
71
|
## License
|
|
279
72
|
|
|
280
73
|
MIT
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
export {
|
|
2
|
+
export { WorldMap } from '@foundrykit/maps';
|
|
3
3
|
export { cn } from '@foundrykit/utils';
|
|
4
4
|
|
|
5
5
|
interface HeroMinimalProps {
|
|
@@ -11,6 +11,11 @@ interface HeroMinimalProps {
|
|
|
11
11
|
onSecondaryClick?: () => void;
|
|
12
12
|
className?: string;
|
|
13
13
|
}
|
|
14
|
+
/**
|
|
15
|
+
* Centered hero section with a title, description, and primary/secondary
|
|
16
|
+
* call-to-action buttons. All text and click handlers are optional and fall
|
|
17
|
+
* back to sensible defaults.
|
|
18
|
+
*/
|
|
14
19
|
declare function HeroMinimal({ title, description, primaryCta, secondaryCta, onPrimaryClick, onSecondaryClick, className, }: HeroMinimalProps): react_jsx_runtime.JSX.Element;
|
|
15
20
|
|
|
16
21
|
interface PricingTier {
|
|
@@ -27,6 +32,11 @@ interface PricingProps {
|
|
|
27
32
|
subtitle?: string;
|
|
28
33
|
className?: string;
|
|
29
34
|
}
|
|
35
|
+
/**
|
|
36
|
+
* Responsive pricing section that renders a grid of cards from the `tiers`
|
|
37
|
+
* array. A tier marked `popular` is highlighted with a "Most Popular" badge and
|
|
38
|
+
* an emphasised border.
|
|
39
|
+
*/
|
|
30
40
|
declare function Pricing({ tiers, title, subtitle, className, }: PricingProps): react_jsx_runtime.JSX.Element;
|
|
31
41
|
|
|
32
42
|
interface Testimonial {
|
|
@@ -43,6 +53,11 @@ interface TestimonialsProps {
|
|
|
43
53
|
subtitle?: string;
|
|
44
54
|
className?: string;
|
|
45
55
|
}
|
|
56
|
+
/**
|
|
57
|
+
* Responsive testimonials section that renders a grid of quote cards from the
|
|
58
|
+
* `testimonials` array. Each card shows the quote, author, and optional avatar
|
|
59
|
+
* and star rating.
|
|
60
|
+
*/
|
|
46
61
|
declare function Testimonials({ testimonials, title, subtitle, className, }: TestimonialsProps): react_jsx_runtime.JSX.Element;
|
|
47
62
|
|
|
48
63
|
export { HeroMinimal, Pricing, Testimonials };
|
package/dist/index.js
CHANGED
|
@@ -138,13 +138,13 @@ function Testimonials({
|
|
|
138
138
|
}
|
|
139
139
|
|
|
140
140
|
// src/index.ts
|
|
141
|
-
import {
|
|
141
|
+
import { WorldMap } from "@foundrykit/maps";
|
|
142
142
|
import { cn } from "@foundrykit/utils";
|
|
143
143
|
export {
|
|
144
144
|
HeroMinimal,
|
|
145
|
-
InteractiveRegionsMap,
|
|
146
145
|
Pricing,
|
|
147
146
|
Testimonials,
|
|
147
|
+
WorldMap,
|
|
148
148
|
cn
|
|
149
149
|
};
|
|
150
150
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/hero-minimal/index.tsx","../src/components/pricing/index.tsx","../src/components/testimonials/index.tsx","../src/index.ts"],"sourcesContent":["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\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='text-3xl font-bold tracking-tighter sm:text-4xl md:text-5xl lg:text-6xl/none'>\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 { Check } from 'lucide-react';\n\nimport { Button } from '@foundrykit/primitives';\nimport {\n Card,\n CardContent,\n CardDescription,\n CardHeader,\n CardTitle,\n} from '@foundrykit/primitives';\nimport { Badge } from '@foundrykit/primitives';\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\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 { Star } from 'lucide-react';\n\nimport { Avatar, AvatarFallback, AvatarImage } from '@foundrykit/primitives';\nimport { Card, CardContent } from '@foundrykit/primitives';\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\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","// Export all blocks\nexport { HeroMinimal } from './components/hero-minimal/index.js';\nexport { Pricing } from './components/pricing/index.js';\nexport { Testimonials } from './components/testimonials/index.js';\nexport { InteractiveRegionsMap } from '@foundrykit/maps';\n\n// Export utilities from utils package\nexport { cn } from '@foundrykit/utils';\n"],"mappings":";AAAA,SAAS,cAAc;AAyBb,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;;;AC3CA,SAAS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A,MACA,gBAAAA,MAAC,SAAI,WAAU,+BACb;AAAA,wBAAAA,MAAC,UACC;AAAA,0BAAAD;AAAA,YAAC;AAAA;AAAA,cACC,KAAK,YAAY;AAAA,cACjB,KAAK,YAAY;AAAA;AAAA,UACnB;AAAA,UACA,gBAAAA,KAAC,kBACE,sBAAY,KACV,MAAM,GAAG,EACT,IAAI,OAAK,EAAE,CAAC,CAAC,EACb,KAAK,EAAE,GACZ;AAAA,WACF;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,KAnCS,KAoCX,CACD,GACH;AAAA,KACF,GACF;AAEJ;;;AChFA,SAAS,6BAA6B;AAGtC,SAAS,UAAU;","names":["Button","jsx","jsxs","Card","CardContent","jsx","jsxs"]}
|
|
1
|
+
{"version":3,"sources":["../src/components/hero-minimal/index.tsx","../src/components/pricing/index.tsx","../src/components/testimonials/index.tsx","../src/index.ts"],"sourcesContent":["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='text-3xl font-bold tracking-tighter sm:text-4xl md:text-5xl lg:text-6xl/none'>\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 { Check } from 'lucide-react';\n\nimport { Button } from '@foundrykit/primitives';\nimport {\n Card,\n CardContent,\n CardDescription,\n CardHeader,\n CardTitle,\n} from '@foundrykit/primitives';\nimport { Badge } from '@foundrykit/primitives';\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 { Star } from 'lucide-react';\n\nimport { Avatar, AvatarFallback, AvatarImage } from '@foundrykit/primitives';\nimport { Card, CardContent } from '@foundrykit/primitives';\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","// Export all blocks\nexport { HeroMinimal } from './components/hero-minimal/index.js';\nexport { Pricing } from './components/pricing/index.js';\nexport { Testimonials } from './components/testimonials/index.js';\nexport { WorldMap } from '@foundrykit/maps';\n\n// Export utilities from utils package\nexport { cn } from '@foundrykit/utils';\n"],"mappings":";AAAA,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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AA,SAC7B;AAAA,MACA,gBAAAA,MAAC,SAAI,WAAU,+BACb;AAAA,wBAAAA,MAAC,UACC;AAAA,0BAAAD;AAAA,YAAC;AAAA;AAAA,cACC,KAAK,YAAY;AAAA,cACjB,KAAK,YAAY;AAAA;AAAA,UACnB;AAAA,UACA,gBAAAA,KAAC,kBACE,sBAAY,KACV,MAAM,GAAG,EACT,IAAI,OAAK,EAAE,CAAC,CAAC,EACb,KAAK,EAAE,GACZ;AAAA,WACF;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,KAnCS,KAoCX,CACD,GACH;AAAA,KACF,GACF;AAEJ;;;ACrFA,SAAS,gBAAgB;AAGzB,SAAS,UAAU;","names":["Button","jsx","jsxs","Card","CardContent","jsx","jsxs"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@foundrykit/blocks",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.12",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"private": false,
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -24,11 +24,11 @@
|
|
|
24
24
|
"react": "^19.1.1",
|
|
25
25
|
"react-dom": "^19.1.1",
|
|
26
26
|
"tailwind-merge": "^3.3.1",
|
|
27
|
-
"@foundrykit/animation": "2.0.
|
|
28
|
-
"@foundrykit/
|
|
29
|
-
"@foundrykit/
|
|
30
|
-
"@foundrykit/
|
|
31
|
-
"@foundrykit/types": "2.0.
|
|
27
|
+
"@foundrykit/animation": "2.0.6",
|
|
28
|
+
"@foundrykit/components": "2.1.1",
|
|
29
|
+
"@foundrykit/maps": "3.0.2",
|
|
30
|
+
"@foundrykit/primitives": "2.0.6",
|
|
31
|
+
"@foundrykit/types": "2.0.6",
|
|
32
32
|
"@foundrykit/utils": "1.0.6"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
@@ -10,6 +10,11 @@ export interface HeroMinimalProps {
|
|
|
10
10
|
className?: string;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
+
/**
|
|
14
|
+
* Centered hero section with a title, description, and primary/secondary
|
|
15
|
+
* call-to-action buttons. All text and click handlers are optional and fall
|
|
16
|
+
* back to sensible defaults.
|
|
17
|
+
*/
|
|
13
18
|
export function HeroMinimal({
|
|
14
19
|
title = 'Welcome to FoundryKit',
|
|
15
20
|
description = 'Build beautiful, accessible React components with our comprehensive design system. Fast, flexible, and ready for production.',
|
|
@@ -14,7 +14,7 @@ export const interactiveRegionsMapConfig: ComponentConfig = {
|
|
|
14
14
|
{
|
|
15
15
|
name: 'Default',
|
|
16
16
|
description: 'Basic interactive regions map with default styling',
|
|
17
|
-
code: `<
|
|
17
|
+
code: `<WorldMap
|
|
18
18
|
title="Our Global Presence"
|
|
19
19
|
regions={[
|
|
20
20
|
{ countries: ["FR", "DE", "ES"], name: "Europe" },
|
|
@@ -24,7 +24,7 @@ export const interactiveRegionsMapConfig: ComponentConfig = {
|
|
|
24
24
|
/>`,
|
|
25
25
|
preview: {
|
|
26
26
|
type: 'component',
|
|
27
|
-
component: '
|
|
27
|
+
component: 'WorldMap',
|
|
28
28
|
props: {
|
|
29
29
|
title: 'Our Global Presence',
|
|
30
30
|
regions: [
|
|
@@ -41,7 +41,7 @@ export const interactiveRegionsMapConfig: ComponentConfig = {
|
|
|
41
41
|
{
|
|
42
42
|
name: 'With Content',
|
|
43
43
|
description: 'Map with descriptive content below the title',
|
|
44
|
-
code: `<
|
|
44
|
+
code: `<WorldMap
|
|
45
45
|
title="Explore Our Hotel Destinations"
|
|
46
46
|
content="Discover luxury accommodations across multiple continents. Click on any region to learn more about our properties in that area."
|
|
47
47
|
regions={[
|
|
@@ -52,7 +52,7 @@ export const interactiveRegionsMapConfig: ComponentConfig = {
|
|
|
52
52
|
/>`,
|
|
53
53
|
preview: {
|
|
54
54
|
type: 'component',
|
|
55
|
-
component: '
|
|
55
|
+
component: 'WorldMap',
|
|
56
56
|
props: {
|
|
57
57
|
title: 'Explore Our Hotel Destinations',
|
|
58
58
|
content:
|
|
@@ -80,7 +80,7 @@ export const interactiveRegionsMapConfig: ComponentConfig = {
|
|
|
80
80
|
{
|
|
81
81
|
name: 'Custom Colors',
|
|
82
82
|
description: 'Regions with custom color schemes',
|
|
83
|
-
code: `<
|
|
83
|
+
code: `<WorldMap
|
|
84
84
|
title="Regional Divisions"
|
|
85
85
|
regions={[
|
|
86
86
|
{ countries: ["FR", "DE", "ES"], name: "Western Europe", color: "#8b5cf6" },
|
|
@@ -91,7 +91,7 @@ export const interactiveRegionsMapConfig: ComponentConfig = {
|
|
|
91
91
|
/>`,
|
|
92
92
|
preview: {
|
|
93
93
|
type: 'component',
|
|
94
|
-
component: '
|
|
94
|
+
component: 'WorldMap',
|
|
95
95
|
props: {
|
|
96
96
|
title: 'Regional Divisions',
|
|
97
97
|
regions: [
|
|
@@ -122,7 +122,7 @@ export const interactiveRegionsMapConfig: ComponentConfig = {
|
|
|
122
122
|
{
|
|
123
123
|
name: 'With Navigation',
|
|
124
124
|
description: 'Regions configured with href navigation links',
|
|
125
|
-
code: `<
|
|
125
|
+
code: `<WorldMap
|
|
126
126
|
title="Hotel Locations by Region"
|
|
127
127
|
content="Click on any region to view available properties"
|
|
128
128
|
regions={[
|
|
@@ -134,7 +134,7 @@ export const interactiveRegionsMapConfig: ComponentConfig = {
|
|
|
134
134
|
/>`,
|
|
135
135
|
preview: {
|
|
136
136
|
type: 'component',
|
|
137
|
-
component: '
|
|
137
|
+
component: 'WorldMap',
|
|
138
138
|
props: {
|
|
139
139
|
title: 'Hotel Locations by Region',
|
|
140
140
|
content: 'Click on any region to view available properties',
|
|
@@ -170,7 +170,7 @@ export const interactiveRegionsMapConfig: ComponentConfig = {
|
|
|
170
170
|
{
|
|
171
171
|
name: 'Comprehensive Coverage',
|
|
172
172
|
description: 'Maximum regions showcasing all supported countries',
|
|
173
|
-
code: `<
|
|
173
|
+
code: `<WorldMap
|
|
174
174
|
title="Global Hotel Network"
|
|
175
175
|
content="Our extensive portfolio spans continents with premium properties in key destinations"
|
|
176
176
|
regions={[
|
|
@@ -186,7 +186,7 @@ export const interactiveRegionsMapConfig: ComponentConfig = {
|
|
|
186
186
|
/>`,
|
|
187
187
|
preview: {
|
|
188
188
|
type: 'component',
|
|
189
|
-
component: '
|
|
189
|
+
component: 'WorldMap',
|
|
190
190
|
props: {
|
|
191
191
|
title: 'Global Hotel Network',
|
|
192
192
|
content:
|
|
@@ -232,7 +232,7 @@ export const interactiveRegionsMapConfig: ComponentConfig = {
|
|
|
232
232
|
name: 'Zoomed In',
|
|
233
233
|
description:
|
|
234
234
|
'Map configured to initially zoom into a specific area (e.g., Europe)',
|
|
235
|
-
code: `<
|
|
235
|
+
code: `<WorldMap
|
|
236
236
|
title="European Hotels"
|
|
237
237
|
initialView={{ x: -1600, y: -450, scale: 4.5 }}
|
|
238
238
|
regions={[
|
|
@@ -241,7 +241,7 @@ export const interactiveRegionsMapConfig: ComponentConfig = {
|
|
|
241
241
|
/>`,
|
|
242
242
|
preview: {
|
|
243
243
|
type: 'component',
|
|
244
|
-
component: '
|
|
244
|
+
component: 'WorldMap',
|
|
245
245
|
props: {
|
|
246
246
|
title: 'European Hotels',
|
|
247
247
|
initialView: { x: 100, y: 100, scale: 4.5 },
|
|
@@ -254,7 +254,7 @@ export const interactiveRegionsMapConfig: ComponentConfig = {
|
|
|
254
254
|
{
|
|
255
255
|
name: 'Minimal',
|
|
256
256
|
description: 'Simple two-region setup with minimal styling',
|
|
257
|
-
code: `<
|
|
257
|
+
code: `<WorldMap
|
|
258
258
|
title="Primary Markets"
|
|
259
259
|
regions={[
|
|
260
260
|
{ countries: ["US"], name: "United States" },
|
|
@@ -263,7 +263,7 @@ export const interactiveRegionsMapConfig: ComponentConfig = {
|
|
|
263
263
|
/>`,
|
|
264
264
|
preview: {
|
|
265
265
|
type: 'component',
|
|
266
|
-
component: '
|
|
266
|
+
component: 'WorldMap',
|
|
267
267
|
props: {
|
|
268
268
|
title: 'Primary Markets',
|
|
269
269
|
regions: [
|
|
@@ -277,7 +277,7 @@ export const interactiveRegionsMapConfig: ComponentConfig = {
|
|
|
277
277
|
name: 'Custom Styled',
|
|
278
278
|
description:
|
|
279
279
|
'Demonstrates mapStyles and classNames props for full visual customisation',
|
|
280
|
-
code: `<
|
|
280
|
+
code: `<WorldMap
|
|
281
281
|
title="Our Regions"
|
|
282
282
|
mapStyles={{
|
|
283
283
|
mapBackground: '#1e293b',
|
|
@@ -301,7 +301,7 @@ export const interactiveRegionsMapConfig: ComponentConfig = {
|
|
|
301
301
|
/>`,
|
|
302
302
|
preview: {
|
|
303
303
|
type: 'component',
|
|
304
|
-
component: '
|
|
304
|
+
component: 'WorldMap',
|
|
305
305
|
props: {
|
|
306
306
|
title: 'Our Regions',
|
|
307
307
|
mapStyles: {
|
|
@@ -339,7 +339,7 @@ export const interactiveRegionsMapConfig: ComponentConfig = {
|
|
|
339
339
|
name: 'Compound Primitives',
|
|
340
340
|
description:
|
|
341
341
|
'Uses the compound component API to compose Legend, Tooltip, ZoomControls and ResetButton as explicit children',
|
|
342
|
-
code: `<
|
|
342
|
+
code: `<WorldMap
|
|
343
343
|
title="Global Presence"
|
|
344
344
|
regions={[
|
|
345
345
|
{ countries: ["US", "CA"], name: "North America", color: "#3b82f6" },
|
|
@@ -351,16 +351,16 @@ export const interactiveRegionsMapConfig: ComponentConfig = {
|
|
|
351
351
|
ZoomControls renders as an absolute overlay inside the map canvas.
|
|
352
352
|
Use the position prop to place it: 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right'
|
|
353
353
|
*/}
|
|
354
|
-
<
|
|
354
|
+
<WorldMap.ZoomControls position="bottom-right" />
|
|
355
355
|
|
|
356
356
|
{/* Tooltip uses fixed positioning so can be placed anywhere inside the provider */}
|
|
357
|
-
<
|
|
357
|
+
<WorldMap.Tooltip />
|
|
358
358
|
|
|
359
|
-
<
|
|
360
|
-
</
|
|
359
|
+
<WorldMap.Legend />
|
|
360
|
+
</WorldMap>`,
|
|
361
361
|
preview: {
|
|
362
362
|
type: 'component',
|
|
363
|
-
component: '
|
|
363
|
+
component: 'WorldMap',
|
|
364
364
|
props: {
|
|
365
365
|
title: 'Global Presence',
|
|
366
366
|
regions: [
|
|
@@ -429,21 +429,21 @@ export function TripPlanner() {
|
|
|
429
429
|
const [step, setStep] = useState(0);
|
|
430
430
|
|
|
431
431
|
return (
|
|
432
|
-
<
|
|
432
|
+
<WorldMap
|
|
433
433
|
title="Around the World"
|
|
434
434
|
content="Follow the journey from London to Sydney"
|
|
435
435
|
regions={[]}
|
|
436
436
|
mapStyles={{ mapBackground: '#bfdbfe' }}
|
|
437
437
|
>
|
|
438
|
-
<
|
|
439
|
-
<
|
|
438
|
+
<WorldMap.ZoomControls position="bottom-right" />
|
|
439
|
+
<WorldMap.Tooltip />
|
|
440
440
|
|
|
441
441
|
{/*
|
|
442
442
|
Journey renders the SVG overlay and provides JourneyContext.
|
|
443
|
-
Place it as a child of
|
|
443
|
+
Place it as a child of WorldMap so it sits
|
|
444
444
|
inside the map canvas div.
|
|
445
445
|
*/}
|
|
446
|
-
<
|
|
446
|
+
<WorldMap.Journey
|
|
447
447
|
waypoints={WAYPOINTS}
|
|
448
448
|
activeIndex={step}
|
|
449
449
|
onStepChange={(i) => setStep(i)}
|
|
@@ -453,19 +453,19 @@ export function TripPlanner() {
|
|
|
453
453
|
animationDuration={900}
|
|
454
454
|
>
|
|
455
455
|
{/* Callout bubble above the active waypoint */}
|
|
456
|
-
<
|
|
457
|
-
</
|
|
456
|
+
<WorldMap.JourneyCallout />
|
|
457
|
+
</WorldMap.Journey>
|
|
458
458
|
|
|
459
459
|
{/* JourneyControls and JourneyStepList also consume JourneyContext */}
|
|
460
460
|
{/* so they must be inside <Journey>, not siblings of it */}
|
|
461
|
-
<
|
|
462
|
-
<
|
|
463
|
-
</
|
|
461
|
+
<WorldMap.JourneyControls />
|
|
462
|
+
<WorldMap.JourneyStepList />
|
|
463
|
+
</WorldMap>
|
|
464
464
|
);
|
|
465
465
|
}`,
|
|
466
466
|
preview: {
|
|
467
467
|
type: 'component',
|
|
468
|
-
component: '
|
|
468
|
+
component: 'WorldMap',
|
|
469
469
|
props: {
|
|
470
470
|
title: 'Around the World',
|
|
471
471
|
content: 'Follow the journey from London to Sydney',
|
|
@@ -26,6 +26,11 @@ export interface PricingProps {
|
|
|
26
26
|
className?: string;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
+
/**
|
|
30
|
+
* Responsive pricing section that renders a grid of cards from the `tiers`
|
|
31
|
+
* array. A tier marked `popular` is highlighted with a "Most Popular" badge and
|
|
32
|
+
* an emphasised border.
|
|
33
|
+
*/
|
|
29
34
|
export function Pricing({
|
|
30
35
|
tiers,
|
|
31
36
|
title = 'Simple, transparent pricing',
|
|
@@ -19,6 +19,11 @@ export interface TestimonialsProps {
|
|
|
19
19
|
className?: string;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
+
/**
|
|
23
|
+
* Responsive testimonials section that renders a grid of quote cards from the
|
|
24
|
+
* `testimonials` array. Each card shows the quote, author, and optional avatar
|
|
25
|
+
* and star rating.
|
|
26
|
+
*/
|
|
22
27
|
export function Testimonials({
|
|
23
28
|
testimonials,
|
|
24
29
|
title = 'What our customers say',
|
package/src/index.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
export { HeroMinimal } from './components/hero-minimal/index.js';
|
|
3
3
|
export { Pricing } from './components/pricing/index.js';
|
|
4
4
|
export { Testimonials } from './components/testimonials/index.js';
|
|
5
|
-
export {
|
|
5
|
+
export { WorldMap } from '@foundrykit/maps';
|
|
6
6
|
|
|
7
7
|
// Export utilities from utils package
|
|
8
8
|
export { cn } from '@foundrykit/utils';
|