@foundrykit/blocks 2.0.12 → 2.0.15

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,5 +1,5 @@
1
1
 
2
- > @foundrykit/blocks@2.0.12 build /home/runner/work/foundry/foundry/packages/blocks
2
+ > @foundrykit/blocks@2.0.15 build /home/runner/work/foundry/foundry/packages/blocks
3
3
  > tsup
4
4
 
5
5
  CLI Building entry: src/index.ts
@@ -9,9 +9,9 @@
9
9
  CLI Target: es2022
10
10
  CLI Cleaning output folder
11
11
  ESM Build start
12
- ESM dist/index.js 7.05 KB
13
- ESM dist/index.js.map 11.45 KB
14
- ESM ⚡️ Build success in 45ms
12
+ ESM dist/index.js 6.94 KB
13
+ ESM dist/index.js.map 11.35 KB
14
+ ESM ⚡️ Build success in 24ms
15
15
  DTS Build start
16
- DTS ⚡️ Build success in 9017ms
16
+ DTS ⚡️ Build success in 4059ms
17
17
  DTS dist/index.d.ts 1.90 KB
@@ -1,4 +1,4 @@
1
1
 
2
- > @foundrykit/blocks@2.0.12 type-check /home/runner/work/foundry/foundry/packages/blocks
2
+ > @foundrykit/blocks@2.0.15 type-check /home/runner/work/foundry/foundry/packages/blocks
3
3
  > tsc --noEmit
4
4
 
package/CHANGELOG.md CHANGED
@@ -1,5 +1,30 @@
1
1
  # @foundrykit/blocks
2
2
 
3
+ ## 2.0.15
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`b6fc94d`](https://github.com/umi-labs/foundry/commit/b6fc94d3b0f172aa309388f61bd5306af6405fdf)]:
8
+ - @foundrykit/animation@2.0.7
9
+ - @foundrykit/maps@3.0.4
10
+ - @foundrykit/primitives@2.0.7
11
+ - @foundrykit/types@2.0.7
12
+ - @foundrykit/utils@1.0.7
13
+ - @foundrykit/components@2.1.3
14
+
15
+ ## 2.0.14
16
+
17
+ ### Patch Changes
18
+
19
+ - Updated dependencies [[`e8a0bf2`](https://github.com/umi-labs/foundry/commit/e8a0bf235e7c56807c3b9a57151603842c2cf1b1)]:
20
+ - @foundrykit/components@2.1.2
21
+
22
+ ## 2.0.13
23
+
24
+ ### Patch Changes
25
+
26
+ - @foundrykit/maps@3.0.3
27
+
3
28
  ## 2.0.12
4
29
 
5
30
  ### Patch Changes
package/README.md CHANGED
@@ -26,9 +26,9 @@ function HomePage() {
26
26
  return (
27
27
  <>
28
28
  <HeroMinimal
29
- title="Build amazing products"
30
- description="Ship faster with the FoundryKit design system."
31
- primaryCta="Get Started"
29
+ title='Build amazing products'
30
+ description='Ship faster with the FoundryKit design system.'
31
+ primaryCta='Get Started'
32
32
  onPrimaryClick={() => {}}
33
33
  />
34
34
  <Pricing
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
1
  export { WorldMap } from '@foundrykit/maps';
3
2
  export { cn } from '@foundrykit/utils';
3
+ import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
 
5
5
  interface HeroMinimalProps {
6
6
  title?: string;
package/dist/index.js CHANGED
@@ -1,3 +1,7 @@
1
+ // src/index.ts
2
+ import { WorldMap } from "@foundrykit/maps";
3
+ import { cn } from "@foundrykit/utils";
4
+
1
5
  // src/components/hero-minimal/index.tsx
2
6
  import { Button } from "@foundrykit/primitives";
3
7
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -12,7 +16,7 @@ function HeroMinimal({
12
16
  }) {
13
17
  return /* @__PURE__ */ jsx("section", { className: `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: [
14
18
  /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
15
- /* @__PURE__ */ jsx("h1", { className: "text-3xl font-bold tracking-tighter sm:text-4xl md:text-5xl lg:text-6xl/none", children: title }),
19
+ /* @__PURE__ */ jsx("h1", { className: "lg:text-6xl/none text-3xl font-bold tracking-tighter sm:text-4xl md:text-5xl", children: title }),
16
20
  /* @__PURE__ */ jsx("p", { className: "mx-auto max-w-[700px] text-gray-500 md:text-xl dark:text-gray-400", children: description })
17
21
  ] }),
18
22
  /* @__PURE__ */ jsxs("div", { className: "space-x-4", children: [
@@ -23,16 +27,16 @@ function HeroMinimal({
23
27
  }
24
28
 
25
29
  // src/components/pricing/index.tsx
26
- import { Check } from "lucide-react";
27
- import { Button as Button2 } from "@foundrykit/primitives";
28
30
  import {
31
+ Badge,
32
+ Button as Button2,
29
33
  Card,
30
34
  CardContent,
31
35
  CardDescription,
32
36
  CardHeader,
33
37
  CardTitle
34
38
  } from "@foundrykit/primitives";
35
- import { Badge } from "@foundrykit/primitives";
39
+ import { Check } from "lucide-react";
36
40
  import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
37
41
  function Pricing({
38
42
  tiers,
@@ -85,9 +89,14 @@ function Pricing({
85
89
  }
86
90
 
87
91
  // src/components/testimonials/index.tsx
92
+ import {
93
+ Avatar,
94
+ AvatarFallback,
95
+ AvatarImage,
96
+ Card as Card2,
97
+ CardContent as CardContent2
98
+ } from "@foundrykit/primitives";
88
99
  import { Star } from "lucide-react";
89
- import { Avatar, AvatarFallback, AvatarImage } from "@foundrykit/primitives";
90
- import { Card as Card2, CardContent as CardContent2 } from "@foundrykit/primitives";
91
100
  import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
92
101
  function Testimonials({
93
102
  testimonials,
@@ -136,10 +145,6 @@ function Testimonials({
136
145
  ] }) }, index)) })
137
146
  ] }) });
138
147
  }
139
-
140
- // src/index.ts
141
- import { WorldMap } from "@foundrykit/maps";
142
- import { cn } from "@foundrykit/utils";
143
148
  export {
144
149
  HeroMinimal,
145
150
  Pricing,
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\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 &quot;{testimonial.content}&quot;\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,QA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,OAAE,WAAU,qEACV,oBACH;AAAA,OACF,GACF;AAAA,IACA,gBAAAA,KAAC,SAAI,WAAU,+EACZ,uBAAa,IAAI,CAAC,aAAa,UAC9B,gBAAAA,KAACF,OAAA,EAAiB,WAAU,YAC1B,0BAAAG,MAACF,cAAA,EAAY,WAAU,OACpB;AAAA,kBAAY,UACX,gBAAAC,KAAC,SAAI,WAAU,oCACZ,gBAAM,KAAK,EAAE,QAAQ,YAAY,OAAO,CAAC,EAAE,IAAI,CAAC,GAAG,MAClD,gBAAAA;AAAA,QAAC;AAAA;AAAA,UAEC,WAAU;AAAA;AAAA,QADL;AAAA,MAEP,CACD,GACH;AAAA,MAEF,gBAAAC,MAAC,gBAAW,WAAU,gCAA+B;AAAA;AAAA,QAC5C,YAAY;AAAA,QAAQ;AAAA,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"]}
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 &quot;{testimonial.content}&quot;\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,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,OAAE,WAAU,qEACV,oBACH;AAAA,OACF,GACF;AAAA,IACA,gBAAAA,KAAC,SAAI,WAAU,+EACZ,uBAAa,IAAI,CAAC,aAAa,UAC9B,gBAAAA,KAACF,OAAA,EAAiB,WAAU,YAC1B,0BAAAG,MAACF,cAAA,EAAY,WAAU,OACpB;AAAA,kBAAY,UACX,gBAAAC,KAAC,SAAI,WAAU,oCACZ,gBAAM,KAAK,EAAE,QAAQ,YAAY,OAAO,CAAC,EAAE,IAAI,CAAC,GAAG,MAClD,gBAAAA;AAAA,QAAC;AAAA;AAAA,UAEC,WAAU;AAAA;AAAA,QADL;AAAA,MAEP,CACD,GACH;AAAA,MAEF,gBAAAC,MAAC,gBAAW,WAAU,gCAA+B;AAAA;AAAA,QAC5C,YAAY;AAAA,QAAQ;AAAA,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;","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.12",
3
+ "version": "2.0.15",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "main": "./dist/index.js",
@@ -24,31 +24,33 @@
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.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
- "@foundrykit/utils": "1.0.6"
27
+ "@foundrykit/animation": "2.0.7",
28
+ "@foundrykit/components": "2.1.3",
29
+ "@foundrykit/maps": "3.0.4",
30
+ "@foundrykit/primitives": "2.0.7",
31
+ "@foundrykit/types": "2.0.7",
32
+ "@foundrykit/utils": "1.0.7"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@types/node": "^20.19.9",
36
36
  "@types/react": "^19.1.9",
37
37
  "@types/react-dom": "^19.1.7",
38
- "eslint": "^9.0.0",
39
38
  "tsup": "^8.0.0",
40
39
  "typescript": "^5.9.2",
41
- "@foundrykit/eslint-config": "1.0.5",
42
- "@foundrykit/typescript-config": "1.0.5"
40
+ "@foundrykit/typescript-config": "1.0.6"
43
41
  },
44
42
  "peerDependencies": {
45
43
  "react": "^19.1.1",
46
44
  "react-dom": "^19.1.1"
47
45
  },
46
+ "repository": {
47
+ "type": "git",
48
+ "url": "git+https://github.com/umi-labs/foundry.git",
49
+ "directory": "packages/blocks"
50
+ },
48
51
  "scripts": {
49
52
  "build": "tsup",
50
53
  "dev": "tsup --watch",
51
- "lint": "eslint . --max-warnings 0",
52
54
  "type-check": "tsc --noEmit"
53
55
  }
54
56
  }
@@ -1,4 +1,4 @@
1
- import { ComponentConfig } from '@foundrykit/types';
1
+ import type { ComponentConfig } from '@foundrykit/types';
2
2
 
3
3
  export const heroMinimalConfig: ComponentConfig = {
4
4
  name: 'Hero Minimal',
@@ -29,7 +29,7 @@ export function HeroMinimal({
29
29
  <div className='container mx-auto px-4 md:px-6'>
30
30
  <div className='flex flex-col items-center space-y-4 text-center'>
31
31
  <div className='space-y-2'>
32
- <h1 className='text-3xl font-bold tracking-tighter sm:text-4xl md:text-5xl lg:text-6xl/none'>
32
+ <h1 className='lg:text-6xl/none text-3xl font-bold tracking-tighter sm:text-4xl md:text-5xl'>
33
33
  {title}
34
34
  </h1>
35
35
  <p className='mx-auto max-w-[700px] text-gray-500 md:text-xl dark:text-gray-400'>
@@ -1,4 +1,4 @@
1
- import { ComponentConfig } from '@foundrykit/types';
1
+ import type { ComponentConfig } from '@foundrykit/types';
2
2
 
3
3
  export const pricingConfig: ComponentConfig = {
4
4
  name: 'Pricing',
@@ -1,14 +1,13 @@
1
- import { Check } from 'lucide-react';
2
-
3
- import { Button } from '@foundrykit/primitives';
4
1
  import {
2
+ Badge,
3
+ Button,
5
4
  Card,
6
5
  CardContent,
7
6
  CardDescription,
8
7
  CardHeader,
9
8
  CardTitle,
10
9
  } from '@foundrykit/primitives';
11
- import { Badge } from '@foundrykit/primitives';
10
+ import { Check } from 'lucide-react';
12
11
 
13
12
  export interface PricingTier {
14
13
  name: string;
@@ -1,4 +1,4 @@
1
- import { ComponentConfig } from '@foundrykit/types';
1
+ import type { ComponentConfig } from '@foundrykit/types';
2
2
 
3
3
  export const testimonialsConfig: ComponentConfig = {
4
4
  name: 'Testimonials',
@@ -1,8 +1,12 @@
1
+ import {
2
+ Avatar,
3
+ AvatarFallback,
4
+ AvatarImage,
5
+ Card,
6
+ CardContent,
7
+ } from '@foundrykit/primitives';
1
8
  import { Star } from 'lucide-react';
2
9
 
3
- import { Avatar, AvatarFallback, AvatarImage } from '@foundrykit/primitives';
4
- import { Card, CardContent } from '@foundrykit/primitives';
5
-
6
10
  export interface Testimonial {
7
11
  name: string;
8
12
  role: string;
package/src/index.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  // Export all blocks
2
- export { HeroMinimal } from './components/hero-minimal/index.js';
3
- export { Pricing } from './components/pricing/index.js';
4
- export { Testimonials } from './components/testimonials/index.js';
5
- export { WorldMap } from '@foundrykit/maps';
6
2
 
3
+ export { WorldMap } from '@foundrykit/maps';
7
4
  // Export utilities from utils package
8
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';
@@ -1,15 +1,15 @@
1
1
  // tsup.config.ts
2
- import { defineConfig } from "tsup";
2
+ import { defineConfig } from 'tsup';
3
+
3
4
  var tsup_config_default = defineConfig({
4
- entry: ["src/index.ts"],
5
- format: ["esm"],
5
+ entry: ['src/index.ts'],
6
+ format: ['esm'],
6
7
  dts: true,
7
8
  splitting: false,
8
9
  sourcemap: true,
9
10
  clean: true,
10
- external: ["react", "react-dom"]
11
+ external: ['react', 'react-dom'],
11
12
  });
12
- export {
13
- tsup_config_default as default
14
- };
13
+
14
+ export { tsup_config_default as default };
15
15
  //# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidHN1cC5jb25maWcudHMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9faW5qZWN0ZWRfZmlsZW5hbWVfXyA9IFwiL1VzZXJzL2lzYWFjc25lZGRvbi1qZW5raW5zL0Rlc2t0b3AvcHJvamVjdHMvdW1pL3Byb2plY3RzL2ZvdW5kcnlraXQvcGFja2FnZXMvYmxvY2tzL3RzdXAuY29uZmlnLnRzXCI7Y29uc3QgX19pbmplY3RlZF9kaXJuYW1lX18gPSBcIi9Vc2Vycy9pc2FhY3NuZWRkb24tamVua2lucy9EZXNrdG9wL3Byb2plY3RzL3VtaS9wcm9qZWN0cy9mb3VuZHJ5a2l0L3BhY2thZ2VzL2Jsb2Nrc1wiO2NvbnN0IF9faW5qZWN0ZWRfaW1wb3J0X21ldGFfdXJsX18gPSBcImZpbGU6Ly8vVXNlcnMvaXNhYWNzbmVkZG9uLWplbmtpbnMvRGVza3RvcC9wcm9qZWN0cy91bWkvcHJvamVjdHMvZm91bmRyeWtpdC9wYWNrYWdlcy9ibG9ja3MvdHN1cC5jb25maWcudHNcIjtpbXBvcnQgeyBkZWZpbmVDb25maWcgfSBmcm9tICd0c3VwJztcblxuZXhwb3J0IGRlZmF1bHQgZGVmaW5lQ29uZmlnKHtcbiAgZW50cnk6IFsnc3JjL2luZGV4LnRzJ10sXG4gIGZvcm1hdDogWydlc20nXSxcbiAgZHRzOiB0cnVlLFxuICBzcGxpdHRpbmc6IGZhbHNlLFxuICBzb3VyY2VtYXA6IHRydWUsXG4gIGNsZWFuOiB0cnVlLFxuICBleHRlcm5hbDogWydyZWFjdCcsICdyZWFjdC1kb20nXSxcbn0pO1xuIl0sCiAgIm1hcHBpbmdzIjogIjtBQUEwWSxTQUFTLG9CQUFvQjtBQUV2YSxJQUFPLHNCQUFRLGFBQWE7QUFBQSxFQUMxQixPQUFPLENBQUMsY0FBYztBQUFBLEVBQ3RCLFFBQVEsQ0FBQyxLQUFLO0FBQUEsRUFDZCxLQUFLO0FBQUEsRUFDTCxXQUFXO0FBQUEsRUFDWCxXQUFXO0FBQUEsRUFDWCxPQUFPO0FBQUEsRUFDUCxVQUFVLENBQUMsU0FBUyxXQUFXO0FBQ2pDLENBQUM7IiwKICAibmFtZXMiOiBbXQp9Cg==
@@ -1,4 +0,0 @@
1
-
2
- > @foundrykit/blocks@2.0.12 lint /home/runner/work/foundry/foundry/packages/blocks
3
- > eslint . --max-warnings 0
4
-
package/eslint.config.js DELETED
@@ -1,4 +0,0 @@
1
- import { config } from "@foundrykit/eslint-config/react-internal"
2
-
3
- /** @type {import("eslint").Linter.Config} */
4
- export default config