@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.
@@ -1,94 +0,0 @@
1
- import type { ComponentConfig } from '@foundrykit/types';
2
-
3
- export const testimonialsConfig: ComponentConfig = {
4
- name: 'Testimonials',
5
- description: 'Customer testimonials and reviews component',
6
- category: 'blocks',
7
- tags: ['testimonials', 'reviews', 'social-proof', 'customers'],
8
- preview: {
9
- type: 'static',
10
- html: '<div class="flex h-12 w-full items-center justify-center rounded-md bg-gray-50 p-2"><div class="flex items-start space-x-2"><div class="h-4 w-4 rounded-full bg-gray-300"></div><div class="flex-1"><div class="mb-1 h-1 w-full rounded bg-gray-300"></div><div class="h-0.5 w-3/4 rounded bg-gray-200"></div></div></div></div>',
11
- },
12
- variants: [
13
- {
14
- name: 'Default',
15
- description: 'Default testimonials grid',
16
- code: '<Testimonials testimonials={[{ name: "John Doe", role: "CEO", company: "Company", content: "Great product!" }, { name: "Jane Smith", role: "Designer", company: "Studio", content: "Amazing experience!" }]} />',
17
- preview: {
18
- type: 'component',
19
- component: 'Testimonials',
20
- props: {
21
- testimonials: [
22
- {
23
- name: 'John Doe',
24
- role: 'CEO',
25
- company: 'Company',
26
- content: 'Great product!',
27
- },
28
- {
29
- name: 'Jane Smith',
30
- role: 'Designer',
31
- company: 'Studio',
32
- content: 'Amazing experience!',
33
- },
34
- ],
35
- },
36
- },
37
- },
38
- {
39
- name: 'With Avatars',
40
- description: 'Testimonials with user avatars',
41
- code: '<Testimonials testimonials={testimonials} showAvatars />',
42
- preview: {
43
- type: 'component',
44
- component: 'Testimonials',
45
- props: {
46
- testimonials: [
47
- {
48
- name: 'John Doe',
49
- role: 'CEO',
50
- company: 'Company',
51
- content: 'Great product!',
52
- },
53
- {
54
- name: 'Jane Smith',
55
- role: 'Designer',
56
- company: 'Studio',
57
- content: 'Amazing experience!',
58
- },
59
- ],
60
- showAvatars: true,
61
- },
62
- },
63
- },
64
- {
65
- name: 'Carousel',
66
- description: 'Testimonials in carousel format',
67
- code: '<Testimonials testimonials={testimonials} variant="carousel" autoPlay />',
68
- preview: {
69
- type: 'component',
70
- component: 'Testimonials',
71
- props: {
72
- testimonials: [
73
- {
74
- name: 'John Doe',
75
- role: 'CEO',
76
- company: 'Company',
77
- content: 'Great product!',
78
- },
79
- {
80
- name: 'Jane Smith',
81
- role: 'Designer',
82
- company: 'Studio',
83
- content: 'Amazing experience!',
84
- },
85
- ],
86
- variant: 'carousel',
87
- autoPlay: true,
88
- },
89
- },
90
- },
91
- ],
92
- dependencies: ['card', 'avatar', 'utils'],
93
- files: ['components/testimonials/index.tsx'],
94
- };
@@ -1,94 +0,0 @@
1
- import {
2
- Avatar,
3
- AvatarFallback,
4
- AvatarImage,
5
- Card,
6
- CardContent,
7
- } from '@foundrykit/primitives';
8
- import { Star } from 'lucide-react';
9
-
10
- export interface Testimonial {
11
- name: string;
12
- role: string;
13
- company: string;
14
- content: string;
15
- avatar?: string;
16
- rating?: number;
17
- }
18
-
19
- export interface TestimonialsProps {
20
- testimonials: Testimonial[];
21
- title?: string;
22
- subtitle?: string;
23
- className?: string;
24
- }
25
-
26
- /**
27
- * Responsive testimonials section that renders a grid of quote cards from the
28
- * `testimonials` array. Each card shows the quote, author, and optional avatar
29
- * and star rating.
30
- */
31
- export function Testimonials({
32
- testimonials,
33
- title = 'What our customers say',
34
- subtitle = "Don't just take our word for it",
35
- className,
36
- }: TestimonialsProps) {
37
- return (
38
- <section className={`w-full py-12 md:py-24 lg:py-32 ${className}`}>
39
- <div className='container mx-auto px-4 md:px-6'>
40
- <div className='flex flex-col items-center space-y-4 text-center'>
41
- <div className='space-y-2'>
42
- <h2 className='text-3xl font-bold tracking-tighter sm:text-4xl md:text-5xl'>
43
- {title}
44
- </h2>
45
- <p className='mx-auto max-w-[700px] text-gray-500 md:text-xl dark:text-gray-400'>
46
- {subtitle}
47
- </p>
48
- </div>
49
- </div>
50
- <div className='mx-auto mt-8 grid max-w-5xl grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-3'>
51
- {testimonials.map((testimonial, index) => (
52
- <Card key={index} className='relative'>
53
- <CardContent className='p-6'>
54
- {testimonial.rating && (
55
- <div className='mb-4 flex items-center space-x-1'>
56
- {Array.from({ length: testimonial.rating }).map((_, i) => (
57
- <Star
58
- key={i}
59
- className='h-4 w-4 fill-yellow-400 text-yellow-400'
60
- />
61
- ))}
62
- </div>
63
- )}
64
- <blockquote className='mb-4 text-sm leading-relaxed'>
65
- &quot;{testimonial.content}&quot;
66
- </blockquote>
67
- <div className='flex items-center space-x-3'>
68
- <Avatar>
69
- <AvatarImage
70
- src={testimonial.avatar}
71
- alt={testimonial.name}
72
- />
73
- <AvatarFallback>
74
- {testimonial.name
75
- .split(' ')
76
- .map(n => n[0])
77
- .join('')}
78
- </AvatarFallback>
79
- </Avatar>
80
- <div>
81
- <div className='font-semibold'>{testimonial.name}</div>
82
- <div className='text-muted-foreground text-sm'>
83
- {testimonial.role} at {testimonial.company}
84
- </div>
85
- </div>
86
- </div>
87
- </CardContent>
88
- </Card>
89
- ))}
90
- </div>
91
- </div>
92
- </section>
93
- );
94
- }
package/src/index.ts DELETED
@@ -1,8 +0,0 @@
1
- // Export all blocks
2
-
3
- export { WorldMap } from '@foundrykit/maps';
4
- // Export utilities from utils package
5
- export { cn } from '@foundrykit/utils';
6
- export { HeroMinimal } from './components/hero-minimal/index.js';
7
- export { Pricing } from './components/pricing/index.js';
8
- export { Testimonials } from './components/testimonials/index.js';
package/tsconfig.json DELETED
@@ -1,11 +0,0 @@
1
- {
2
- "extends": "@foundrykit/typescript-config/react-library.json",
3
- "compilerOptions": {
4
- "baseUrl": ".",
5
- "paths": {
6
- "@foundrykit/blocks/*": ["./src/*"]
7
- }
8
- },
9
- "include": ["."],
10
- "exclude": ["node_modules", "dist"]
11
- }
@@ -1,8 +0,0 @@
1
- {
2
- "extends": "@foundrykit/typescript-config/react-library.json",
3
- "compilerOptions": {
4
- "outDir": "dist"
5
- },
6
- "include": ["src", "turbo"],
7
- "exclude": ["node_modules", "dist"]
8
- }
@@ -1,15 +0,0 @@
1
- // tsup.config.ts
2
- import { defineConfig } from 'tsup';
3
-
4
- var tsup_config_default = defineConfig({
5
- entry: ['src/index.ts'],
6
- format: ['esm'],
7
- dts: true,
8
- splitting: false,
9
- sourcemap: true,
10
- clean: true,
11
- external: ['react', 'react-dom'],
12
- });
13
-
14
- export { tsup_config_default as default };
15
- //# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidHN1cC5jb25maWcudHMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9faW5qZWN0ZWRfZmlsZW5hbWVfXyA9IFwiL1VzZXJzL2lzYWFjc25lZGRvbi1qZW5raW5zL0Rlc2t0b3AvcHJvamVjdHMvdW1pL3Byb2plY3RzL2ZvdW5kcnlraXQvcGFja2FnZXMvYmxvY2tzL3RzdXAuY29uZmlnLnRzXCI7Y29uc3QgX19pbmplY3RlZF9kaXJuYW1lX18gPSBcIi9Vc2Vycy9pc2FhY3NuZWRkb24tamVua2lucy9EZXNrdG9wL3Byb2plY3RzL3VtaS9wcm9qZWN0cy9mb3VuZHJ5a2l0L3BhY2thZ2VzL2Jsb2Nrc1wiO2NvbnN0IF9faW5qZWN0ZWRfaW1wb3J0X21ldGFfdXJsX18gPSBcImZpbGU6Ly8vVXNlcnMvaXNhYWNzbmVkZG9uLWplbmtpbnMvRGVza3RvcC9wcm9qZWN0cy91bWkvcHJvamVjdHMvZm91bmRyeWtpdC9wYWNrYWdlcy9ibG9ja3MvdHN1cC5jb25maWcudHNcIjtpbXBvcnQgeyBkZWZpbmVDb25maWcgfSBmcm9tICd0c3VwJztcblxuZXhwb3J0IGRlZmF1bHQgZGVmaW5lQ29uZmlnKHtcbiAgZW50cnk6IFsnc3JjL2luZGV4LnRzJ10sXG4gIGZvcm1hdDogWydlc20nXSxcbiAgZHRzOiB0cnVlLFxuICBzcGxpdHRpbmc6IGZhbHNlLFxuICBzb3VyY2VtYXA6IHRydWUsXG4gIGNsZWFuOiB0cnVlLFxuICBleHRlcm5hbDogWydyZWFjdCcsICdyZWFjdC1kb20nXSxcbn0pO1xuIl0sCiAgIm1hcHBpbmdzIjogIjtBQUEwWSxTQUFTLG9CQUFvQjtBQUV2YSxJQUFPLHNCQUFRLGFBQWE7QUFBQSxFQUMxQixPQUFPLENBQUMsY0FBYztBQUFBLEVBQ3RCLFFBQVEsQ0FBQyxLQUFLO0FBQUEsRUFDZCxLQUFLO0FBQUEsRUFDTCxXQUFXO0FBQUEsRUFDWCxXQUFXO0FBQUEsRUFDWCxPQUFPO0FBQUEsRUFDUCxVQUFVLENBQUMsU0FBUyxXQUFXO0FBQ2pDLENBQUM7IiwKICAibmFtZXMiOiBbXQp9Cg==
package/tsup.config.ts DELETED
@@ -1,11 +0,0 @@
1
- import { defineConfig } from 'tsup';
2
-
3
- export default defineConfig({
4
- entry: ['src/index.ts'],
5
- format: ['esm'],
6
- dts: true,
7
- splitting: false,
8
- sourcemap: true,
9
- clean: true,
10
- external: ['react', 'react-dom'],
11
- });