@foundrykit/blocks 2.1.0 → 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/package.json CHANGED
@@ -1,11 +1,15 @@
1
1
  {
2
2
  "name": "@foundrykit/blocks",
3
- "version": "2.1.0",
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.1.0",
28
- "@foundrykit/components": "2.2.0",
29
- "@foundrykit/maps": "3.0.4",
30
- "@foundrykit/primitives": "2.0.9",
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/CHANGELOG.md DELETED
@@ -1,478 +0,0 @@
1
- # @foundrykit/blocks
2
-
3
- ## 2.1.0
4
-
5
- ### Minor Changes
6
-
7
- - [#129](https://github.com/umi-labs/foundry/pull/129) [`dad73bd`](https://github.com/umi-labs/foundry/commit/dad73bdf46b3de1b3b6db52ceb4465516ebdb7e1) Thanks [@sneddonisaac](https://github.com/sneddonisaac)! - Blocks fixes. `className` is merged with `cn()`, so an omitted prop no longer renders a literal `undefined` class. Grey, green and yellow utilities are replaced with theme tokens (`text-muted-foreground`, `text-success`, `fill-warning`). Testimonial ratings are hidden when 0 or missing and are announced as "N out of 5 stars"; quotes use `figure`/`figcaption`. CTAs can be real links: `HeroMinimal` takes `primaryHref`/`secondaryHref` and `PricingTier` takes `href`. The hard-coded copy defaults are gone, so an empty title, description or CTA renders nothing instead of FoundryKit demo text.
8
-
9
- ### Patch Changes
10
-
11
- - Updated dependencies [[`dad73bd`](https://github.com/umi-labs/foundry/commit/dad73bdf46b3de1b3b6db52ceb4465516ebdb7e1), [`dad73bd`](https://github.com/umi-labs/foundry/commit/dad73bdf46b3de1b3b6db52ceb4465516ebdb7e1), [`dad73bd`](https://github.com/umi-labs/foundry/commit/dad73bdf46b3de1b3b6db52ceb4465516ebdb7e1)]:
12
- - @foundrykit/animation@2.1.0
13
- - @foundrykit/components@2.2.0
14
- - @foundrykit/primitives@2.0.9
15
-
16
- ## 2.0.16
17
-
18
- ### Patch Changes
19
-
20
- - Updated dependencies [[`f8b9faa`](https://github.com/umi-labs/foundry/commit/f8b9faa49e747e6a25b05f2be11c9b18319706d0), [`66409bd`](https://github.com/umi-labs/foundry/commit/66409bd67c511a8fc0096b479d46e95c8ef2e0b6)]:
21
- - @foundrykit/types@3.0.0
22
- - @foundrykit/animation@2.0.8
23
- - @foundrykit/components@2.1.4
24
- - @foundrykit/primitives@2.0.8
25
- - @foundrykit/utils@1.0.8
26
-
27
- ## 2.0.15
28
-
29
- ### Patch Changes
30
-
31
- - Updated dependencies [[`b6fc94d`](https://github.com/umi-labs/foundry/commit/b6fc94d3b0f172aa309388f61bd5306af6405fdf)]:
32
- - @foundrykit/animation@2.0.7
33
- - @foundrykit/maps@3.0.4
34
- - @foundrykit/primitives@2.0.7
35
- - @foundrykit/types@2.0.7
36
- - @foundrykit/utils@1.0.7
37
- - @foundrykit/components@2.1.3
38
-
39
- ## 2.0.14
40
-
41
- ### Patch Changes
42
-
43
- - Updated dependencies [[`e8a0bf2`](https://github.com/umi-labs/foundry/commit/e8a0bf235e7c56807c3b9a57151603842c2cf1b1)]:
44
- - @foundrykit/components@2.1.2
45
-
46
- ## 2.0.13
47
-
48
- ### Patch Changes
49
-
50
- - @foundrykit/maps@3.0.3
51
-
52
- ## 2.0.12
53
-
54
- ### Patch Changes
55
-
56
- - @foundrykit/maps@3.0.2
57
-
58
- ## 2.0.11
59
-
60
- ### Patch Changes
61
-
62
- - @foundrykit/maps@3.0.1
63
-
64
- ## 2.0.10
65
-
66
- ### Patch Changes
67
-
68
- - feat(storybook, maps): massive updates to maps packages spliting and
69
- developing into full suites + storybook for easy of test
70
- - Updated dependencies
71
- - @foundrykit/maps@3.0.0
72
- - @foundrykit/components@2.1.1
73
- - @foundrykit/primitives@2.0.6
74
- - @foundrykit/animation@2.0.6
75
- - @foundrykit/types@2.0.6
76
-
77
- ## 2.0.9
78
-
79
- ### Patch Changes
80
-
81
- - Updated dependencies
82
- - @foundrykit/maps@2.0.7
83
-
84
- ## 2.0.8
85
-
86
- ### Patch Changes
87
-
88
- - Updated dependencies
89
- - @foundrykit/maps@2.0.6
90
-
91
- ## 2.0.7
92
-
93
- ### Patch Changes
94
-
95
- - Updated dependencies
96
- - @foundrykit/maps@2.0.5
97
-
98
- ## 2.0.6
99
-
100
- ### Patch Changes
101
-
102
- - Updated dependencies
103
- - @foundrykit/components@2.1.0
104
-
105
- ## 2.0.5
106
-
107
- ### Patch Changes
108
-
109
- - update
110
- - Updated dependencies
111
- - @foundrykit/components@2.0.5
112
- - @foundrykit/primitives@2.0.5
113
- - @foundrykit/animation@2.0.5
114
- - @foundrykit/types@2.0.5
115
- - @foundrykit/maps@2.0.4
116
-
117
- ## 2.0.4
118
-
119
- ### Patch Changes
120
-
121
- - updates
122
- - Updated dependencies
123
- - @foundrykit/components@2.0.4
124
- - @foundrykit/primitives@2.0.4
125
- - @foundrykit/animation@2.0.4
126
- - @foundrykit/types@2.0.4
127
- - @foundrykit/maps@2.0.3
128
-
129
- ## 2.0.3
130
-
131
- ### Patch Changes
132
-
133
- - updates
134
- - Updated dependencies
135
- - @foundrykit/components@2.0.3
136
- - @foundrykit/primitives@2.0.3
137
- - @foundrykit/animation@2.0.3
138
- - @foundrykit/types@2.0.3
139
- - @foundrykit/maps@2.0.2
140
-
141
- ## 2.0.2
142
-
143
- ### Patch Changes
144
-
145
- - updates
146
- - Updated dependencies
147
- - @foundrykit/components@2.0.2
148
- - @foundrykit/primitives@2.0.2
149
- - @foundrykit/animation@2.0.2
150
- - @foundrykit/types@2.0.2
151
- - @foundrykit/maps@2.0.1
152
-
153
- ## 2.0.1
154
-
155
- ### Patch Changes
156
-
157
- - Updated dependencies
158
- - @foundrykit/components@2.0.1
159
- - @foundrykit/primitives@2.0.1
160
- - @foundrykit/types@2.0.1
161
- - @foundrykit/animation@2.0.1
162
-
163
- ## 2.0.0
164
-
165
- ### Major Changes
166
-
167
- - changes to cli update logic for old repos
168
-
169
- ### Patch Changes
170
-
171
- - Updated dependencies
172
- - @foundrykit/components@2.0.0
173
- - @foundrykit/primitives@2.0.0
174
- - @foundrykit/animation@2.0.0
175
- - @foundrykit/types@2.0.0
176
- - @foundrykit/maps@2.0.0
177
-
178
- ## 1.2.0
179
-
180
- ### Minor Changes
181
-
182
- - changes to how the cli works with updates
183
-
184
- ### Patch Changes
185
-
186
- - Updated dependencies
187
- - @foundrykit/components@1.2.0
188
- - @foundrykit/types@1.1.0
189
- - @foundrykit/maps@1.2.0
190
- - @foundrykit/animation@1.0.10
191
- - @foundrykit/primitives@1.0.15
192
-
193
- ## 1.1.0
194
-
195
- ### Minor Changes
196
-
197
- - c666749: mass update
198
-
199
- ### Patch Changes
200
-
201
- - Updated dependencies [c666749]
202
- - @foundrykit/components@1.1.0
203
- - @foundrykit/maps@1.1.0
204
-
205
- ## 1.0.25
206
-
207
- ### Patch Changes
208
-
209
- - Updating maps
210
- - Updated dependencies
211
- - @foundrykit/maps@1.0.1
212
-
213
- ## 1.0.24
214
-
215
- ### Patch Changes
216
-
217
- - Just a quick demo for Anvar
218
- - Updated dependencies
219
- - @foundrykit/animation@1.0.9
220
- - @foundrykit/components@1.0.23
221
- - @foundrykit/primitives@1.0.14
222
- - @foundrykit/types@1.0.9
223
- - @foundrykit/utils@1.0.6
224
-
225
- ## 1.0.23
226
-
227
- ### Patch Changes
228
-
229
- - Updated dependencies
230
- - @foundrykit/components@1.0.22
231
-
232
- ## 1.0.22
233
-
234
- ### Patch Changes
235
-
236
- - Updated dependencies
237
- - @foundrykit/components@1.0.21
238
-
239
- ## 1.0.21
240
-
241
- ### Patch Changes
242
-
243
- - Updated dependencies
244
- - @foundrykit/components@1.0.20
245
-
246
- ## 1.0.20
247
-
248
- ### Patch Changes
249
-
250
- - Updated dependencies
251
- - @foundrykit/components@1.0.19
252
-
253
- ## 1.0.19
254
-
255
- ### Patch Changes
256
-
257
- - Updated dependencies
258
- - @foundrykit/components@1.0.18
259
- - @foundrykit/primitives@1.0.13
260
-
261
- ## 1.0.18
262
-
263
- ### Patch Changes
264
-
265
- - Updated dependencies
266
- - @foundrykit/components@1.0.17
267
-
268
- ## 1.0.17
269
-
270
- ### Patch Changes
271
-
272
- - Updated dependencies
273
- - @foundrykit/components@1.0.16
274
-
275
- ## 1.0.16
276
-
277
- ### Patch Changes
278
-
279
- - Updated dependencies
280
- - @foundrykit/components@1.0.15
281
- - @foundrykit/primitives@1.0.12
282
-
283
- ## 1.0.15
284
-
285
- ### Patch Changes
286
-
287
- - Updated dependencies
288
- - @foundrykit/components@1.0.14
289
- - @foundrykit/primitives@1.0.11
290
-
291
- ## 1.0.14
292
-
293
- ### Patch Changes
294
-
295
- - Updated dependencies
296
- - @foundrykit/components@1.0.13
297
-
298
- ## 1.0.13
299
-
300
- ### Patch Changes
301
-
302
- - Updated dependencies
303
- - @foundrykit/components@1.0.12
304
-
305
- ## 1.0.12
306
-
307
- ### Patch Changes
308
-
309
- - @foundrykit/components@1.0.11
310
-
311
- ## 1.0.11
312
-
313
- ### Patch Changes
314
-
315
- - adding the advanced search bar
316
- - Updated dependencies
317
- - @foundrykit/components@1.0.10
318
- - @foundrykit/types@1.0.8
319
- - @foundrykit/animation@1.0.8
320
- - @foundrykit/primitives@1.0.10
321
-
322
- ## 1.0.10
323
-
324
- ### Patch Changes
325
-
326
- - Updated dependencies
327
- - @foundrykit/components@1.0.9
328
- - @foundrykit/primitives@1.0.9
329
- - @foundrykit/utils@1.0.5
330
-
331
- ## 1.0.9
332
-
333
- ### Patch Changes
334
-
335
- - Updated dependencies
336
- - @foundrykit/primitives@1.0.8
337
- - @foundrykit/components@1.0.8
338
-
339
- ## 1.0.8
340
-
341
- ### Patch Changes
342
-
343
- - Updated dependencies
344
- - @foundrykit/primitives@1.0.7
345
- - @foundrykit/types@1.0.7
346
- - @foundrykit/components@1.0.7
347
- - @foundrykit/animation@1.0.7
348
-
349
- ## 1.0.7
350
-
351
- ### Patch Changes
352
-
353
- - Update to add command, import transformations and configs for many files
354
- - Updated dependencies
355
- - @foundrykit/components@1.0.6
356
- - @foundrykit/animation@1.0.6
357
- - @foundrykit/primitives@1.0.6
358
- - @foundrykit/types@1.0.6
359
- - @foundrykit/utils@1.0.4
360
-
361
- ## 1.0.6
362
-
363
- ### Patch Changes
364
-
365
- - Update to config version management and config paths
366
- - Updated dependencies
367
- - @foundrykit/animation@1.0.5
368
- - @foundrykit/components@1.0.5
369
- - @foundrykit/primitives@1.0.5
370
- - @foundrykit/types@1.0.5
371
- - @foundrykit/utils@1.0.3
372
-
373
- ## 1.0.5
374
-
375
- ### Patch Changes
376
-
377
- - refactoring for build errors
378
- - Updated dependencies
379
- - @foundrykit/animation@1.0.4
380
- - @foundrykit/components@1.0.4
381
- - @foundrykit/primitives@1.0.4
382
- - @foundrykit/types@1.0.4
383
- - @foundrykit/utils@1.0.2
384
-
385
- ## 1.0.4
386
-
387
- ### Patch Changes
388
-
389
- - Updating blocks config to have the correct dependencies as well as updating
390
- how the cli pulls them and the registry caches them
391
-
392
- ## 1.0.3
393
-
394
- ### Patch Changes
395
-
396
- - Updating registry data
397
- - Updated dependencies
398
- - @foundrykit/animation@1.0.3
399
- - @foundrykit/components@1.0.3
400
- - @foundrykit/primitives@1.0.3
401
- - @foundrykit/types@1.0.3
402
- - @foundrykit/utils@1.0.1
403
-
404
- ## 1.0.2
405
-
406
- ### Patch Changes
407
-
408
- - Updated dependencies
409
- - @foundrykit/components@1.0.2
410
- - @foundrykit/primitives@1.0.2
411
- - @foundrykit/types@1.0.2
412
- - @foundrykit/animation@1.0.2
413
-
414
- ## 1.0.1
415
-
416
- ### Patch Changes
417
-
418
- - Updated dependencies
419
- - @foundrykit/types@1.0.1
420
- - @foundrykit/animation@1.0.1
421
- - @foundrykit/components@1.0.1
422
- - @foundrykit/primitives@1.0.1
423
-
424
- ## 1.0.0
425
-
426
- ### Major Changes
427
-
428
- - Version alignment push
429
-
430
- ### Patch Changes
431
-
432
- - Updated dependencies
433
- - @foundrykit/animation@1.0.0
434
- - @foundrykit/components@1.0.0
435
- - @foundrykit/primitives@1.0.0
436
- - @foundrykit/types@1.0.0
437
- - @foundrykit/utils@1.0.0
438
-
439
- ## 0.2.1
440
-
441
- ### Patch Changes
442
-
443
- - Updating versions to ensure they are inline
444
- - Updated dependencies [015ff5f]
445
- - Updated dependencies
446
- - @foundrykit/types@0.1.2
447
- - @foundrykit/animation@0.1.2
448
- - @foundrykit/components@0.1.2
449
- - @foundrykit/primitives@0.1.2
450
- - @foundrykit/utils@0.1.2
451
-
452
- ## 0.2.0
453
-
454
- ### Minor Changes
455
-
456
- - adding interactive regions map
457
-
458
- ### Patch Changes
459
-
460
- - Adding interactive regions map
461
- - Adding an interactive regions map component
462
- - @foundrykit/animation@0.1.1
463
- - @foundrykit/components@0.1.1
464
- - @foundrykit/primitives@0.1.1
465
- - @foundrykit/types@0.1.1
466
- - @foundrykit/utils@0.1.1
467
-
468
- ## 0.1.1
469
-
470
- ### Patch Changes
471
-
472
- - basic test
473
- - Updated dependencies
474
- - @foundrykit/animation@0.1.1
475
- - @foundrykit/components@0.1.1
476
- - @foundrykit/primitives@0.1.1
477
- - @foundrykit/types@0.1.1
478
- - @foundrykit/utils@0.1.1
@@ -1,59 +0,0 @@
1
- import type { ComponentConfig } from '@foundrykit/types';
2
-
3
- export const heroMinimalConfig: ComponentConfig = {
4
- name: 'Hero Minimal',
5
- description: 'Minimal hero section for landing pages',
6
- category: 'blocks',
7
- tags: ['hero', 'landing', 'header', 'minimal'],
8
- preview: {
9
- type: 'static',
10
- html: '<div class="flex h-12 w-full flex-col justify-center rounded-md bg-gray-50 p-2"><div class="mb-1 h-2 w-3/4 rounded bg-gray-300"></div><div class="mb-2 h-1 w-1/2 rounded bg-gray-200"></div><div class="flex space-x-1"><div class="h-4 w-8 rounded bg-gray-800"></div><div class="h-4 w-10 rounded border border-gray-300"></div></div></div>',
11
- },
12
- variants: [
13
- {
14
- name: 'Default',
15
- description: 'Default minimal hero layout',
16
- code: '<HeroMinimal title="Welcome" description="A beautiful minimal hero section" primaryCta="Get Started" onPrimaryClick={() => console.log("CTA clicked")} />',
17
- preview: {
18
- type: 'component',
19
- component: 'HeroMinimal',
20
- props: {
21
- title: 'Welcome',
22
- description: 'A beautiful minimal hero section',
23
- primaryCta: 'Get Started',
24
- onPrimaryClick: () => console.log('CTA clicked'),
25
- },
26
- },
27
- },
28
- {
29
- name: 'With Image',
30
- description: 'Hero with background image',
31
- code: '<HeroMinimal title="Welcome" description="With background image" primaryCta="Learn More" />',
32
- preview: {
33
- type: 'component',
34
- component: 'HeroMinimal',
35
- props: {
36
- title: 'Welcome',
37
- description: 'With background image',
38
- primaryCta: 'Learn More',
39
- },
40
- },
41
- },
42
- {
43
- name: 'Centered',
44
- description: 'Centered hero layout',
45
- code: '<HeroMinimal title="Centered Hero" description="Perfectly centered content" primaryCta="Explore" />',
46
- preview: {
47
- type: 'component',
48
- component: 'HeroMinimal',
49
- props: {
50
- title: 'Centered Hero',
51
- description: 'Perfectly centered content',
52
- primaryCta: 'Explore',
53
- },
54
- },
55
- },
56
- ],
57
- dependencies: ['button', 'utils'],
58
- files: ['components/hero-minimal/index.tsx'],
59
- };
@@ -1,94 +0,0 @@
1
- import { Button } from '@foundrykit/primitives';
2
- import { cn } from '@foundrykit/utils';
3
-
4
- export interface HeroMinimalProps {
5
- title?: string;
6
- description?: string;
7
- primaryCta?: string;
8
- /** Renders the primary CTA as a link. Takes precedence over `onPrimaryClick`. */
9
- primaryHref?: string;
10
- secondaryCta?: string;
11
- /** Renders the secondary CTA as a link. Takes precedence over `onSecondaryClick`. */
12
- secondaryHref?: string;
13
- onPrimaryClick?: () => void;
14
- onSecondaryClick?: () => void;
15
- className?: string;
16
- }
17
-
18
- function Cta({
19
- label,
20
- href,
21
- onClick,
22
- variant,
23
- }: {
24
- label?: string;
25
- href?: string;
26
- onClick?: () => void;
27
- variant?: 'outline';
28
- }) {
29
- if (!label) return null;
30
- if (href) {
31
- return (
32
- <Button asChild variant={variant}>
33
- <a href={href}>{label}</a>
34
- </Button>
35
- );
36
- }
37
- return (
38
- <Button variant={variant} onClick={onClick}>
39
- {label}
40
- </Button>
41
- );
42
- }
43
-
44
- /**
45
- * Centered hero section with a title, description, and primary/secondary
46
- * call-to-action links. Anything left empty is not rendered, so a blank CMS
47
- * field never shows placeholder copy. Pass `primaryHref`/`secondaryHref` for
48
- * real links (usable from a Server Component).
49
- */
50
- export function HeroMinimal({
51
- title,
52
- description,
53
- primaryCta,
54
- primaryHref,
55
- secondaryCta,
56
- secondaryHref,
57
- onPrimaryClick,
58
- onSecondaryClick,
59
- className,
60
- }: HeroMinimalProps) {
61
- return (
62
- <section className={cn('w-full py-12 md:py-24 lg:py-32', className)}>
63
- <div className='container mx-auto px-4 md:px-6'>
64
- <div className='flex flex-col items-center space-y-4 text-center'>
65
- <div className='space-y-2'>
66
- {title && (
67
- <h1 className='lg:text-6xl/none text-3xl font-bold tracking-tighter sm:text-4xl md:text-5xl'>
68
- {title}
69
- </h1>
70
- )}
71
- {description && (
72
- <p className='text-muted-foreground mx-auto max-w-[700px] md:text-xl'>
73
- {description}
74
- </p>
75
- )}
76
- </div>
77
- <div className='flex flex-wrap justify-center gap-4'>
78
- <Cta
79
- label={primaryCta}
80
- href={primaryHref}
81
- onClick={onPrimaryClick}
82
- />
83
- <Cta
84
- label={secondaryCta}
85
- href={secondaryHref}
86
- onClick={onSecondaryClick}
87
- variant='outline'
88
- />
89
- </div>
90
- </div>
91
- </div>
92
- </section>
93
- );
94
- }