@foundrykit/blocks 2.0.9 → 2.0.10
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-type-check.log +1 -1
- package/CHANGELOG.md +13 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
- package/src/components/interactive-regions-map/config.ts +33 -33
- package/src/index.ts +1 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
>
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
DTS Build
|
|
17
|
-
DTS
|
|
18
|
-
DTS dist/index.d.ts 1.36 KB
|
|
1
|
+
|
|
2
|
+
> @foundrykit/blocks@2.0.9 build /Users/isj/Desktop/work/projects/foundry/packages/blocks
|
|
3
|
+
> tsup
|
|
4
|
+
|
|
5
|
+
CLI Building entry: src/index.ts
|
|
6
|
+
CLI Using tsconfig: tsconfig.json
|
|
7
|
+
CLI tsup v8.5.0
|
|
8
|
+
CLI Using tsup config: /Users/isj/Desktop/work/projects/foundry/packages/blocks/tsup.config.ts
|
|
9
|
+
CLI Target: es2022
|
|
10
|
+
CLI Cleaning output folder
|
|
11
|
+
ESM Build start
|
|
12
|
+
ESM dist/index.js 7.05 KB
|
|
13
|
+
ESM dist/index.js.map 10.88 KB
|
|
14
|
+
ESM ⚡️ Build success in 11ms
|
|
15
|
+
DTS Build start
|
|
16
|
+
DTS ⚡️ Build success in 929ms
|
|
17
|
+
DTS dist/index.d.ts 1.34 KB
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @foundrykit/blocks
|
|
2
2
|
|
|
3
|
+
## 2.0.10
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- feat(storybook, maps): massive updates to maps packages spliting and
|
|
8
|
+
developing into full suites + storybook for easy of test
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
- @foundrykit/maps@3.0.0
|
|
11
|
+
- @foundrykit/components@2.1.1
|
|
12
|
+
- @foundrykit/primitives@2.0.6
|
|
13
|
+
- @foundrykit/animation@2.0.6
|
|
14
|
+
- @foundrykit/types@2.0.6
|
|
15
|
+
|
|
3
16
|
## 2.0.9
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/dist/index.d.ts
CHANGED
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,aAAa;AAEtB,SAAS,UAAAA,eA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AU,+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\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 { WorldMap } 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,aAAa;AAEtB,SAAS,UAAAA,eAAc;AACvB;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,aAAa;AA4BZ,SACE,OAAAC,MADF,QAAAC,aAAA;AAVH,SAAS,QAAQ;AAAA,EACtB;AAAA,EACA,QAAQ;AAAA,EACR,WAAW;AAAA,EACX;AACF,GAAiB;AACf,SACE,gBAAAD,KA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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,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.10",
|
|
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.0",
|
|
30
|
+
"@foundrykit/primitives": "2.0.6",
|
|
31
|
+
"@foundrykit/types": "2.0.6",
|
|
32
32
|
"@foundrykit/utils": "1.0.6"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
@@ -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',
|
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';
|