@foundrykit/blocks 1.0.24 → 1.0.25

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/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/components/interactive-regions-map/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 &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","'use client';\n\nimport React, { useState, useCallback, useMemo } from 'react';\n\nexport interface Region {\n countries: string[];\n name: string;\n color?: string;\n href?: string;\n}\n\nexport interface InteractiveRegionsMapProps {\n title: string;\n content?: string;\n regions: Region[];\n onRegionClick?: (region: Region) => void;\n onRegionHover?: (region: Region | null) => void;\n className?: string;\n}\n\n// Country code to name mapping for the SVG paths\nconst COUNTRY_MAPPING: Record<string, string> = {\n us: 'united-states',\n ca: 'canada',\n mx: 'mexico',\n br: 'brazil',\n ar: 'argentina',\n gb: 'united-kingdom',\n fr: 'france',\n de: 'germany',\n es: 'spain',\n it: 'italy',\n ru: 'russia',\n cn: 'china',\n in: 'india',\n jp: 'japan',\n au: 'australia',\n za: 'south-africa',\n eg: 'egypt',\n ke: 'kenya',\n mg: 'madagascar',\n iq: 'iraq',\n ir: 'iran',\n sa: 'saudi-arabia',\n};\n\n// Reverse mapping for lookup\nconst NAME_TO_CODE = Object.entries(COUNTRY_MAPPING).reduce(\n (acc, [code, name]) => ({ ...acc, [name]: code }),\n {} as Record<string, string>\n);\n\nexport function InteractiveRegionsMap({\n title = 'Interactive Regions Map',\n content,\n regions = [],\n onRegionClick,\n onRegionHover,\n className = '',\n}: InteractiveRegionsMapProps) {\n const [hoveredRegion, setHoveredRegion] = useState<string | null>(null);\n const [isLoading, setIsLoading] = useState(false);\n\n // Create a map of country codes to regions for efficient lookup\n const countryToRegion = useMemo(() => {\n const mapping: Record<string, Region> = {};\n\n regions.forEach(region => {\n region.countries.forEach(country => {\n const countryCode = NAME_TO_CODE[country.toLowerCase()];\n if (countryCode) {\n mapping[countryCode] = region;\n }\n });\n });\n\n return mapping;\n }, [regions]);\n\n // Handle country hover\n const handleCountryHover = useCallback(\n (countryCode: string | null) => {\n if (!countryCode) {\n setHoveredRegion(null);\n onRegionHover?.(null);\n return;\n }\n\n const region = countryToRegion[countryCode];\n if (region) {\n setHoveredRegion(region.name);\n onRegionHover?.(region);\n } else {\n setHoveredRegion(null);\n onRegionHover?.(null);\n }\n },\n [countryToRegion, onRegionHover]\n );\n\n // Handle country click\n const handleCountryClick = useCallback(\n async (countryCode: string) => {\n const region = countryToRegion[countryCode];\n if (!region) return;\n\n setIsLoading(true);\n\n try {\n if (onRegionClick) {\n onRegionClick(region);\n } else if (region.href) {\n // Use standard navigation instead of Next.js router\n window.location.href = region.href;\n }\n } catch (error) {\n console.error('Navigation error:', error);\n } finally {\n setIsLoading(false);\n }\n },\n [countryToRegion, onRegionClick]\n );\n\n // Get country fill color based on region\n const getCountryFill = useCallback(\n (countryCode: string): string => {\n const region = countryToRegion[countryCode];\n if (!region) return '#e5e7eb'; // gray-200\n\n if (hoveredRegion && hoveredRegion !== region.name) {\n return region.color ? `${region.color}66` : '#d1d5db'; // semi-transparent or gray-300\n }\n\n return region.color || '#3b82f6'; // blue-500 default\n },\n [countryToRegion, hoveredRegion]\n );\n\n // Check if country is interactive\n const isCountryInteractive = useCallback(\n (countryCode: string): boolean => {\n return countryCode in countryToRegion;\n },\n [countryToRegion]\n );\n\n return (\n <section className={`mx-auto flex max-w-6xl flex-col p-6 ${className}`}>\n {/* Header */}\n <div className='mb-8 flex flex-col items-center justify-center text-center'>\n <h2 className='mb-2 text-3xl font-bold text-gray-900'>{title}</h2>\n {content && (\n <p className='max-w-2xl text-lg text-gray-600'>{content}</p>\n )}\n </div>\n\n {/* Map Container */}\n <div className='relative w-full overflow-hidden rounded-lg bg-gray-50 shadow-lg'>\n {isLoading && (\n <div className='absolute inset-0 z-10 flex items-center justify-center bg-white bg-opacity-75'>\n <div className='h-8 w-8 animate-spin rounded-full border-b-2 border-blue-600'></div>\n </div>\n )}\n\n <svg\n viewBox='0 0 1000 500'\n className='h-auto max-h-96 w-full'\n style={{ maxHeight: '500px' }}\n >\n {/* Simplified world map paths - in production, you'd use a complete world map SVG */}\n\n {/* United States */}\n <path\n id='us'\n d='M200 200 L350 200 L350 250 L200 250 Z'\n fill={getCountryFill('us')}\n stroke='#374151'\n strokeWidth='0.5'\n className={`transition-all duration-200 ${\n isCountryInteractive('us')\n ? 'cursor-pointer hover:stroke-gray-700 hover:stroke-2'\n : 'cursor-default'\n }`}\n onMouseEnter={() => handleCountryHover('us')}\n onMouseLeave={() => handleCountryHover(null)}\n onClick={() => handleCountryClick('us')}\n />\n\n {/* Canada */}\n <path\n id='ca'\n d='M200 150 L350 150 L350 200 L200 200 Z'\n fill={getCountryFill('ca')}\n stroke='#374151'\n strokeWidth='0.5'\n className={`transition-all duration-200 ${\n isCountryInteractive('ca')\n ? 'cursor-pointer hover:stroke-gray-700 hover:stroke-2'\n : 'cursor-default'\n }`}\n onMouseEnter={() => handleCountryHover('ca')}\n onMouseLeave={() => handleCountryHover(null)}\n onClick={() => handleCountryClick('ca')}\n />\n\n {/* France */}\n <path\n id='fr'\n d='M450 220 L480 220 L480 250 L450 250 Z'\n fill={getCountryFill('fr')}\n stroke='#374151'\n strokeWidth='0.5'\n className={`transition-all duration-200 ${\n isCountryInteractive('fr')\n ? 'cursor-pointer hover:stroke-gray-700 hover:stroke-2'\n : 'cursor-default'\n }`}\n onMouseEnter={() => handleCountryHover('fr')}\n onMouseLeave={() => handleCountryHover(null)}\n onClick={() => handleCountryClick('fr')}\n />\n\n {/* Germany */}\n <path\n id='de'\n d='M480 220 L510 220 L510 250 L480 250 Z'\n fill={getCountryFill('de')}\n stroke='#374151'\n strokeWidth='0.5'\n className={`transition-all duration-200 ${\n isCountryInteractive('de')\n ? 'cursor-pointer hover:stroke-gray-700 hover:stroke-2'\n : 'cursor-default'\n }`}\n onMouseEnter={() => handleCountryHover('de')}\n onMouseLeave={() => handleCountryHover(null)}\n onClick={() => handleCountryClick('de')}\n />\n\n {/* Spain */}\n <path\n id='es'\n d='M420 250 L450 250 L450 280 L420 280 Z'\n fill={getCountryFill('es')}\n stroke='#374151'\n strokeWidth='0.5'\n className={`transition-all duration-200 ${\n isCountryInteractive('es')\n ? 'cursor-pointer hover:stroke-gray-700 hover:stroke-2'\n : 'cursor-default'\n }`}\n onMouseEnter={() => handleCountryHover('es')}\n onMouseLeave={() => handleCountryHover(null)}\n onClick={() => handleCountryClick('es')}\n />\n\n {/* Iraq */}\n <path\n id='iq'\n d='M550 280 L570 280 L570 300 L550 300 Z'\n fill={getCountryFill('iq')}\n stroke='#374151'\n strokeWidth='0.5'\n className={`transition-all duration-200 ${\n isCountryInteractive('iq')\n ? 'cursor-pointer hover:stroke-gray-700 hover:stroke-2'\n : 'cursor-default'\n }`}\n onMouseEnter={() => handleCountryHover('iq')}\n onMouseLeave={() => handleCountryHover(null)}\n onClick={() => handleCountryClick('iq')}\n />\n\n {/* Iran */}\n <path\n id='ir'\n d='M570 280 L600 280 L600 300 L570 300 Z'\n fill={getCountryFill('ir')}\n stroke='#374151'\n strokeWidth='0.5'\n className={`transition-all duration-200 ${\n isCountryInteractive('ir')\n ? 'cursor-pointer hover:stroke-gray-700 hover:stroke-2'\n : 'cursor-default'\n }`}\n onMouseEnter={() => handleCountryHover('ir')}\n onMouseLeave={() => handleCountryHover(null)}\n onClick={() => handleCountryClick('ir')}\n />\n\n {/* South Africa */}\n <path\n id='za'\n d='M480 380 L510 380 L510 410 L480 410 Z'\n fill={getCountryFill('za')}\n stroke='#374151'\n strokeWidth='0.5'\n className={`transition-all duration-200 ${\n isCountryInteractive('za')\n ? 'cursor-pointer hover:stroke-gray-700 hover:stroke-2'\n : 'cursor-default'\n }`}\n onMouseEnter={() => handleCountryHover('za')}\n onMouseLeave={() => handleCountryHover(null)}\n onClick={() => handleCountryClick('za')}\n />\n\n {/* Kenya */}\n <path\n id='ke'\n d='M520 350 L540 350 L540 370 L520 370 Z'\n fill={getCountryFill('ke')}\n stroke='#374151'\n strokeWidth='0.5'\n className={`transition-all duration-200 ${\n isCountryInteractive('ke')\n ? 'cursor-pointer hover:stroke-gray-700 hover:stroke-2'\n : 'cursor-default'\n }`}\n onMouseEnter={() => handleCountryHover('ke')}\n onMouseLeave={() => handleCountryHover(null)}\n onClick={() => handleCountryClick('ke')}\n />\n\n {/* Madagascar */}\n <path\n id='mg'\n d='M540 380 L555 380 L555 400 L540 400 Z'\n fill={getCountryFill('mg')}\n stroke='#374151'\n strokeWidth='0.5'\n className={`transition-all duration-200 ${\n isCountryInteractive('mg')\n ? 'cursor-pointer hover:stroke-gray-700 hover:stroke-2'\n : 'cursor-default'\n }`}\n onMouseEnter={() => handleCountryHover('mg')}\n onMouseLeave={() => handleCountryHover(null)}\n onClick={() => handleCountryClick('mg')}\n />\n\n {/* United Kingdom */}\n <path\n id='gb'\n d='M420 200 L440 200 L440 220 L420 220 Z'\n fill={getCountryFill('gb')}\n stroke='#374151'\n strokeWidth='0.5'\n className={`transition-all duration-200 ${\n isCountryInteractive('gb')\n ? 'cursor-pointer hover:stroke-gray-700 hover:stroke-2'\n : 'cursor-default'\n }`}\n onMouseEnter={() => handleCountryHover('gb')}\n onMouseLeave={() => handleCountryHover(null)}\n onClick={() => handleCountryClick('gb')}\n />\n\n {/* Italy */}\n <path\n id='it'\n d='M480 250 L500 250 L500 280 L480 280 Z'\n fill={getCountryFill('it')}\n stroke='#374151'\n strokeWidth='0.5'\n className={`transition-all duration-200 ${\n isCountryInteractive('it')\n ? 'cursor-pointer hover:stroke-gray-700 hover:stroke-2'\n : 'cursor-default'\n }`}\n onMouseEnter={() => handleCountryHover('it')}\n onMouseLeave={() => handleCountryHover(null)}\n onClick={() => handleCountryClick('it')}\n />\n\n {/* Russia */}\n <path\n id='ru'\n d='M550 150 L650 150 L650 200 L550 200 Z'\n fill={getCountryFill('ru')}\n stroke='#374151'\n strokeWidth='0.5'\n className={`transition-all duration-200 ${\n isCountryInteractive('ru')\n ? 'cursor-pointer hover:stroke-gray-700 hover:stroke-2'\n : 'cursor-default'\n }`}\n onMouseEnter={() => handleCountryHover('ru')}\n onMouseLeave={() => handleCountryHover(null)}\n onClick={() => handleCountryClick('ru')}\n />\n\n {/* China */}\n <path\n id='cn'\n d='M700 220 L750 220 L750 270 L700 270 Z'\n fill={getCountryFill('cn')}\n stroke='#374151'\n strokeWidth='0.5'\n className={`transition-all duration-200 ${\n isCountryInteractive('cn')\n ? 'cursor-pointer hover:stroke-gray-700 hover:stroke-2'\n : 'cursor-default'\n }`}\n onMouseEnter={() => handleCountryHover('cn')}\n onMouseLeave={() => handleCountryHover(null)}\n onClick={() => handleCountryClick('cn')}\n />\n\n {/* India */}\n <path\n id='in'\n d='M650 280 L700 280 L700 320 L650 320 Z'\n fill={getCountryFill('in')}\n stroke='#374151'\n strokeWidth='0.5'\n className={`transition-all duration-200 ${\n isCountryInteractive('in')\n ? 'cursor-pointer hover:stroke-gray-700 hover:stroke-2'\n : 'cursor-default'\n }`}\n onMouseEnter={() => handleCountryHover('in')}\n onMouseLeave={() => handleCountryHover(null)}\n onClick={() => handleCountryClick('in')}\n />\n\n {/* Japan */}\n <path\n id='jp'\n d='M750 240 L770 240 L770 270 L750 270 Z'\n fill={getCountryFill('jp')}\n stroke='#374151'\n strokeWidth='0.5'\n className={`transition-all duration-200 ${\n isCountryInteractive('jp')\n ? 'cursor-pointer hover:stroke-gray-700 hover:stroke-2'\n : 'cursor-default'\n }`}\n onMouseEnter={() => handleCountryHover('jp')}\n onMouseLeave={() => handleCountryHover(null)}\n onClick={() => handleCountryClick('jp')}\n />\n\n {/* Australia */}\n <path\n id='au'\n d='M750 380 L800 380 L800 420 L750 420 Z'\n fill={getCountryFill('au')}\n stroke='#374151'\n strokeWidth='0.5'\n className={`transition-all duration-200 ${\n isCountryInteractive('au')\n ? 'cursor-pointer hover:stroke-gray-700 hover:stroke-2'\n : 'cursor-default'\n }`}\n onMouseEnter={() => handleCountryHover('au')}\n onMouseLeave={() => handleCountryHover(null)}\n onClick={() => handleCountryClick('au')}\n />\n\n {/* Brazil */}\n <path\n id='br'\n d='M300 320 L380 320 L380 400 L300 400 Z'\n fill={getCountryFill('br')}\n stroke='#374151'\n strokeWidth='0.5'\n className={`transition-all duration-200 ${\n isCountryInteractive('br')\n ? 'cursor-pointer hover:stroke-gray-700 hover:stroke-2'\n : 'cursor-default'\n }`}\n onMouseEnter={() => handleCountryHover('br')}\n onMouseLeave={() => handleCountryHover(null)}\n onClick={() => handleCountryClick('br')}\n />\n\n {/* Argentina */}\n <path\n id='ar'\n d='M280 400 L320 400 L320 460 L280 460 Z'\n fill={getCountryFill('ar')}\n stroke='#374151'\n strokeWidth='0.5'\n className={`transition-all duration-200 ${\n isCountryInteractive('ar')\n ? 'cursor-pointer hover:stroke-gray-700 hover:stroke-2'\n : 'cursor-default'\n }`}\n onMouseEnter={() => handleCountryHover('ar')}\n onMouseLeave={() => handleCountryHover(null)}\n onClick={() => handleCountryClick('ar')}\n />\n\n {/* Mexico */}\n <path\n id='mx'\n d='M150 280 L250 280 L250 320 L150 320 Z'\n fill={getCountryFill('mx')}\n stroke='#374151'\n strokeWidth='0.5'\n className={`transition-all duration-200 ${\n isCountryInteractive('mx')\n ? 'cursor-pointer hover:stroke-gray-700 hover:stroke-2'\n : 'cursor-default'\n }`}\n onMouseEnter={() => handleCountryHover('mx')}\n onMouseLeave={() => handleCountryHover(null)}\n onClick={() => handleCountryClick('mx')}\n />\n\n {/* Egypt */}\n <path\n id='eg'\n d='M500 310 L520 310 L520 330 L500 330 Z'\n fill={getCountryFill('eg')}\n stroke='#374151'\n strokeWidth='0.5'\n className={`transition-all duration-200 ${\n isCountryInteractive('eg')\n ? 'cursor-pointer hover:stroke-gray-700 hover:stroke-2'\n : 'cursor-default'\n }`}\n onMouseEnter={() => handleCountryHover('eg')}\n onMouseLeave={() => handleCountryHover(null)}\n onClick={() => handleCountryClick('eg')}\n />\n\n {/* Saudi Arabia */}\n <path\n id='sa'\n d='M530 300 L570 300 L570 330 L530 330 Z'\n fill={getCountryFill('sa')}\n stroke='#374151'\n strokeWidth='0.5'\n className={`transition-all duration-200 ${\n isCountryInteractive('sa')\n ? 'cursor-pointer hover:stroke-gray-700 hover:stroke-2'\n : 'cursor-default'\n }`}\n onMouseEnter={() => handleCountryHover('sa')}\n onMouseLeave={() => handleCountryHover(null)}\n onClick={() => handleCountryClick('sa')}\n />\n </svg>\n </div>\n\n {/* Legend */}\n {regions.length > 0 && (\n <div className='mt-6 flex flex-wrap justify-center gap-4'>\n {regions.map((region, index) => (\n <div\n key={index}\n className={`flex items-center gap-2 rounded-lg border px-3 py-2 transition-all duration-200 ${\n hoveredRegion === region.name\n ? 'border-gray-400 bg-gray-100 shadow-md'\n : 'border-gray-200 bg-white'\n }`}\n >\n <div\n className='h-4 w-4 rounded border border-gray-300'\n style={{\n backgroundColor: region.color || '#3b82f6',\n }}\n />\n <span className='text-sm font-medium text-gray-700'>\n {region.name}\n </span>\n </div>\n ))}\n </div>\n )}\n\n {/* Debug info in development */}\n {process.env.NODE_ENV === 'development' && hoveredRegion && (\n <div className='mt-4 rounded border border-yellow-200 bg-yellow-50 p-3 text-sm'>\n <strong>Debug:</strong> Hovering over region: {hoveredRegion}\n </div>\n )}\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 './components/interactive-regions-map/index.js';\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,M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AAAA,MAfK;AAAA,IAgBP,CACD,GACH;AAAA,IAID,QAAQ,IAAI,aAAa,iBAAiB,iBACzC,gBAAAC,MAAC,SAAI,WAAU,kEACb;AAAA,sBAAAD,KAAC,YAAO,oBAAM;AAAA,MAAS;AAAA,MAAwB;AAAA,OACjD;AAAA,KAEJ;AAEJ;;;AC/jBA,SAAS,UAAU;","names":["Button","jsx","jsxs","Card","CardContent","jsx","jsxs","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 &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 { 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,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,KAAC,aAAQ,WAAW,kCAAkC,SAAS,IAC7D,0BAAAC,MAAC,SAAI,WAAU,kCACb;AAAA,oBAAAD,KAAC,SAAI,WAAU,oDACb,0BAAAC,MAAC,SAAI,WAAU,aACb;AAAA,sBAAAD,KAAC,QAAG,WAAU,+DACX,iBACH;AAAA,MACA,gBAAAA,KAAC,OAAE,WAAU,qEACV,oBACH;AAAA,OACF,GACF;AAAA,IACA,gBAAAA,KAAC,SAAI,WAAU,yEACZ,gBAAM,IAAI,CAAC,MAA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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": "1.0.24",
3
+ "version": "1.0.25",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "main": "./dist/index.js",
@@ -26,6 +26,7 @@
26
26
  "tailwind-merge": "^3.3.1",
27
27
  "@foundrykit/animation": "1.0.9",
28
28
  "@foundrykit/components": "1.0.23",
29
+ "@foundrykit/maps": "1.0.1",
29
30
  "@foundrykit/primitives": "1.0.14",
30
31
  "@foundrykit/types": "1.0.9",
31
32
  "@foundrykit/utils": "1.0.6"
@@ -1,4 +1,4 @@
1
- import { ComponentConfig } from '@foundrykit/types';
1
+ import type { ComponentConfig } from '@foundrykit/types';
2
2
 
3
3
  export const interactiveRegionsMapConfig: ComponentConfig = {
4
4
  name: 'Interactive Regions Map',
@@ -17,9 +17,9 @@ export const interactiveRegionsMapConfig: ComponentConfig = {
17
17
  code: `<InteractiveRegionsMap
18
18
  title="Our Global Presence"
19
19
  regions={[
20
- { countries: ["france", "germany", "spain"], name: "Europe" },
21
- { countries: ["iraq", "iran"], name: "Middle East" },
22
- { countries: ["madagascar", "south-africa", "kenya"], name: "Africa" }
20
+ { countries: ["FR", "DE", "ES"], name: "Europe" },
21
+ { countries: ["IQ", "IR"], name: "Middle East" },
22
+ { countries: ["MG", "ZA", "KE"], name: "Africa" }
23
23
  ]}
24
24
  />`,
25
25
  preview: {
@@ -28,10 +28,10 @@ export const interactiveRegionsMapConfig: ComponentConfig = {
28
28
  props: {
29
29
  title: 'Our Global Presence',
30
30
  regions: [
31
- { countries: ['france', 'germany', 'spain'], name: 'Europe' },
32
- { countries: ['iraq', 'iran'], name: 'Middle East' },
31
+ { countries: ['FR', 'DE', 'ES'], name: 'Europe' },
32
+ { countries: ['IQ', 'IR'], name: 'Middle East' },
33
33
  {
34
- countries: ['madagascar', 'south-africa', 'kenya'],
34
+ countries: ['MG', 'ZA', 'KE'],
35
35
  name: 'Africa',
36
36
  },
37
37
  ],
@@ -45,9 +45,9 @@ export const interactiveRegionsMapConfig: ComponentConfig = {
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={[
48
- { countries: ["united-states", "canada"], name: "North America", color: "#3b82f6" },
49
- { countries: ["france", "germany", "spain"], name: "Europe", color: "#10b981" },
50
- { countries: ["iraq", "iran"], name: "Middle East", color: "#f59e0b" }
48
+ { countries: ["US", "CA"], name: "North America", color: "#3b82f6" },
49
+ { countries: ["FR", "DE", "ES"], name: "Europe", color: "#10b981" },
50
+ { countries: ["IQ", "IR"], name: "Middle East", color: "#f59e0b" }
51
51
  ]}
52
52
  />`,
53
53
  preview: {
@@ -59,17 +59,17 @@ export const interactiveRegionsMapConfig: ComponentConfig = {
59
59
  'Discover luxury accommodations across multiple continents. Click on any region to learn more about our properties in that area.',
60
60
  regions: [
61
61
  {
62
- countries: ['united-states', 'canada'],
62
+ countries: ['US', 'CA'],
63
63
  name: 'North America',
64
64
  color: '#3b82f6',
65
65
  },
66
66
  {
67
- countries: ['france', 'germany', 'spain'],
67
+ countries: ['FR', 'DE', 'ES'],
68
68
  name: 'Europe',
69
69
  color: '#10b981',
70
70
  },
71
71
  {
72
- countries: ['iraq', 'iran'],
72
+ countries: ['IQ', 'IR'],
73
73
  name: 'Middle East',
74
74
  color: '#f59e0b',
75
75
  },
@@ -83,10 +83,10 @@ export const interactiveRegionsMapConfig: ComponentConfig = {
83
83
  code: `<InteractiveRegionsMap
84
84
  title="Regional Divisions"
85
85
  regions={[
86
- { countries: ["france", "germany", "spain"], name: "Western Europe", color: "#8b5cf6" },
87
- { countries: ["iraq", "iran", "saudi-arabia"], name: "Middle East", color: "#ef4444" },
88
- { countries: ["south-africa", "kenya", "madagascar"], name: "Africa", color: "#f97316" },
89
- { countries: ["united-states", "canada"], name: "North America", color: "#06b6d4" }
86
+ { countries: ["FR", "DE", "ES"], name: "Western Europe", color: "#8b5cf6" },
87
+ { countries: ["IQ", "IR", "SA"], name: "Middle East", color: "#ef4444" },
88
+ { countries: ["ZA", "KE", "MG"], name: "Africa", color: "#f97316" },
89
+ { countries: ["US", "CA"], name: "North America", color: "#06b6d4" }
90
90
  ]}
91
91
  />`,
92
92
  preview: {
@@ -96,22 +96,22 @@ export const interactiveRegionsMapConfig: ComponentConfig = {
96
96
  title: 'Regional Divisions',
97
97
  regions: [
98
98
  {
99
- countries: ['france', 'germany', 'spain'],
99
+ countries: ['FR', 'DE', 'ES'],
100
100
  name: 'Western Europe',
101
101
  color: '#8b5cf6',
102
102
  },
103
103
  {
104
- countries: ['iraq', 'iran', 'saudi-arabia'],
104
+ countries: ['IQ', 'IR', 'SA'],
105
105
  name: 'Middle East',
106
106
  color: '#ef4444',
107
107
  },
108
108
  {
109
- countries: ['south-africa', 'kenya', 'madagascar'],
109
+ countries: ['ZA', 'KE', 'MG'],
110
110
  name: 'Africa',
111
111
  color: '#f97316',
112
112
  },
113
113
  {
114
- countries: ['united-states', 'canada'],
114
+ countries: ['US', 'CA'],
115
115
  name: 'North America',
116
116
  color: '#06b6d4',
117
117
  },
@@ -126,10 +126,10 @@ export const interactiveRegionsMapConfig: ComponentConfig = {
126
126
  title="Hotel Locations by Region"
127
127
  content="Click on any region to view available properties"
128
128
  regions={[
129
- { countries: ["france", "spain"], name: "Southern Europe", color: "#3b82f6", href: "/hotels/southern-europe" },
130
- { countries: ["germany"], name: "Central Europe", color: "#10b981", href: "/hotels/central-europe" },
131
- { countries: ["iraq", "iran"], name: "Middle East", color: "#f59e0b", href: "/hotels/middle-east" },
132
- { countries: ["south-africa", "kenya"], name: "Africa", color: "#ef4444", href: "/hotels/africa" }
129
+ { countries: ["FR", "ES"], name: "Southern Europe", color: "#3b82f6", href: "/hotels/southern-europe" },
130
+ { countries: ["DE"], name: "Central Europe", color: "#10b981", href: "/hotels/central-europe" },
131
+ { countries: ["IQ", "IR"], name: "Middle East", color: "#f59e0b", href: "/hotels/middle-east" },
132
+ { countries: ["ZA", "KE"], name: "Africa", color: "#ef4444", href: "/hotels/africa" }
133
133
  ]}
134
134
  />`,
135
135
  preview: {
@@ -140,25 +140,25 @@ export const interactiveRegionsMapConfig: ComponentConfig = {
140
140
  content: 'Click on any region to view available properties',
141
141
  regions: [
142
142
  {
143
- countries: ['france', 'spain'],
143
+ countries: ['FR', 'ES'],
144
144
  name: 'Southern Europe',
145
145
  color: '#3b82f6',
146
146
  href: '/hotels/southern-europe',
147
147
  },
148
148
  {
149
- countries: ['germany'],
149
+ countries: ['DE'],
150
150
  name: 'Central Europe',
151
151
  color: '#10b981',
152
152
  href: '/hotels/central-europe',
153
153
  },
154
154
  {
155
- countries: ['iraq', 'iran'],
155
+ countries: ['IQ', 'IR'],
156
156
  name: 'Middle East',
157
157
  color: '#f59e0b',
158
158
  href: '/hotels/middle-east',
159
159
  },
160
160
  {
161
- countries: ['south-africa', 'kenya'],
161
+ countries: ['ZA', 'KE'],
162
162
  name: 'Africa',
163
163
  color: '#ef4444',
164
164
  href: '/hotels/africa',
@@ -174,14 +174,14 @@ export const interactiveRegionsMapConfig: ComponentConfig = {
174
174
  title="Global Hotel Network"
175
175
  content="Our extensive portfolio spans continents with premium properties in key destinations"
176
176
  regions={[
177
- { countries: ["united-states", "canada"], name: "North America", color: "#3b82f6" },
178
- { countries: ["brazil", "argentina", "mexico"], name: "Latin America", color: "#10b981" },
179
- { countries: ["france", "germany", "spain", "italy", "united-kingdom"], name: "Europe", color: "#8b5cf6" },
180
- { countries: ["iraq", "iran", "saudi-arabia"], name: "Middle East", color: "#f59e0b" },
181
- { countries: ["south-africa", "kenya", "madagascar", "egypt"], name: "Africa", color: "#ef4444" },
182
- { countries: ["china", "japan", "india"], name: "Asia", color: "#06b6d4" },
183
- { countries: ["australia"], name: "Oceania", color: "#f97316" },
184
- { countries: ["russia"], name: "Eastern Europe", color: "#84cc16" }
177
+ { countries: ["US", "CA"], name: "North America", color: "#3b82f6" },
178
+ { countries: ["BR", "AR", "MX"], name: "Latin America", color: "#10b981" },
179
+ { countries: ["FR", "DE", "ES", "IT", "GB"], name: "Europe", color: "#8b5cf6" },
180
+ { countries: ["IQ", "IR", "SA"], name: "Middle East", color: "#f59e0b" },
181
+ { countries: ["ZA", "KE", "MG", "EG"], name: "Africa", color: "#ef4444" },
182
+ { countries: ["CN", "JP", "IN"], name: "Asia", color: "#06b6d4" },
183
+ { countries: ["AU"], name: "Oceania", color: "#f97316" },
184
+ { countries: ["RU"], name: "Eastern Europe", color: "#84cc16" }
185
185
  ]}
186
186
  />`,
187
187
  preview: {
@@ -193,43 +193,60 @@ export const interactiveRegionsMapConfig: ComponentConfig = {
193
193
  'Our extensive portfolio spans continents with premium properties in key destinations',
194
194
  regions: [
195
195
  {
196
- countries: ['united-states', 'canada'],
196
+ countries: ['US', 'CA'],
197
197
  name: 'North America',
198
198
  color: '#3b82f6',
199
199
  },
200
200
  {
201
- countries: ['brazil', 'argentina', 'mexico'],
201
+ countries: ['BR', 'AR', 'MX'],
202
202
  name: 'Latin America',
203
203
  color: '#10b981',
204
204
  },
205
205
  {
206
- countries: [
207
- 'france',
208
- 'germany',
209
- 'spain',
210
- 'italy',
211
- 'united-kingdom',
212
- ],
206
+ countries: ['FR', 'DE', 'ES', 'IT', 'GB'],
213
207
  name: 'Europe',
214
208
  color: '#8b5cf6',
215
209
  },
216
210
  {
217
- countries: ['iraq', 'iran', 'saudi-arabia'],
211
+ countries: ['IQ', 'IR', 'SA'],
218
212
  name: 'Middle East',
219
213
  color: '#f59e0b',
220
214
  },
221
215
  {
222
- countries: ['south-africa', 'kenya', 'madagascar', 'egypt'],
216
+ countries: ['ZA', 'KE', 'MG', 'EG'],
223
217
  name: 'Africa',
224
218
  color: '#ef4444',
225
219
  },
226
220
  {
227
- countries: ['china', 'japan', 'india'],
221
+ countries: ['CN', 'JP', 'IN'],
228
222
  name: 'Asia',
229
223
  color: '#06b6d4',
230
224
  },
231
- { countries: ['australia'], name: 'Oceania', color: '#f97316' },
232
- { countries: ['russia'], name: 'Eastern Europe', color: '#84cc16' },
225
+ { countries: ['AU'], name: 'Oceania', color: '#f97316' },
226
+ { countries: ['RU'], name: 'Eastern Europe', color: '#84cc16' },
227
+ ],
228
+ },
229
+ },
230
+ },
231
+ {
232
+ name: 'Zoomed In',
233
+ description:
234
+ 'Map configured to initially zoom into a specific area (e.g., Europe)',
235
+ code: `<InteractiveRegionsMap
236
+ title="European Hotels"
237
+ initialView={{ x: -1600, y: -450, scale: 4.5 }}
238
+ regions={[
239
+ { countries: ["FR", "DE", "ES", "IT", "GB"], name: "Europe" }
240
+ ]}
241
+ />`,
242
+ preview: {
243
+ type: 'component',
244
+ component: 'InteractiveRegionsMap',
245
+ props: {
246
+ title: 'European Hotels',
247
+ initialView: { x: 100, y: 100, scale: 4.5 },
248
+ regions: [
249
+ { countries: ['FR', 'DE', 'ES', 'IT', 'GB'], name: 'Europe' },
233
250
  ],
234
251
  },
235
252
  },
@@ -240,8 +257,8 @@ export const interactiveRegionsMapConfig: ComponentConfig = {
240
257
  code: `<InteractiveRegionsMap
241
258
  title="Primary Markets"
242
259
  regions={[
243
- { countries: ["united-states"], name: "United States" },
244
- { countries: ["france", "germany"], name: "Europe" }
260
+ { countries: ["US"], name: "United States" },
261
+ { countries: ["FR", "DE"], name: "Europe" }
245
262
  ]}
246
263
  />`,
247
264
  preview: {
@@ -250,13 +267,217 @@ export const interactiveRegionsMapConfig: ComponentConfig = {
250
267
  props: {
251
268
  title: 'Primary Markets',
252
269
  regions: [
253
- { countries: ['united-states'], name: 'United States' },
254
- { countries: ['france', 'germany'], name: 'Europe' },
270
+ { countries: ['US'], name: 'United States' },
271
+ { countries: ['FR', 'DE'], name: 'Europe' },
272
+ ],
273
+ },
274
+ },
275
+ },
276
+ {
277
+ name: 'Custom Styled',
278
+ description:
279
+ 'Demonstrates mapStyles and classNames props for full visual customisation',
280
+ code: `<InteractiveRegionsMap
281
+ title="Our Regions"
282
+ mapStyles={{
283
+ mapBackground: '#1e293b',
284
+ countryDefaultFill: '#334155',
285
+ countryStroke: '#0f172a',
286
+ regionDefaultColor: '#6366f1',
287
+ }}
288
+ classNames={{
289
+ title: 'mb-2 text-3xl font-bold text-white',
290
+ content: 'max-w-2xl text-lg text-slate-400',
291
+ mapContainer: 'relative aspect-video w-full touch-none overflow-hidden rounded-xl shadow-2xl',
292
+ resetButton: 'rounded-md bg-slate-700 px-3 py-1.5 text-sm font-medium text-slate-200 hover:bg-slate-600',
293
+ tooltip: 'pointer-events-none fixed z-50 rounded-md bg-slate-700 px-3 py-2 text-sm font-medium text-white shadow-md',
294
+ legendItem: 'flex items-center gap-2 rounded-lg border border-slate-700 bg-slate-800 px-3 py-2 transition-all duration-200',
295
+ legendItemActive: 'flex items-center gap-2 rounded-lg border border-indigo-500 bg-slate-700 px-3 py-2 shadow-md transition-all duration-200',
296
+ }}
297
+ regions={[
298
+ { countries: ["US", "CA"], name: "North America", color: "#6366f1" },
299
+ { countries: ["FR", "DE", "GB"], name: "Europe", color: "#10b981" },
300
+ ]}
301
+ />`,
302
+ preview: {
303
+ type: 'component',
304
+ component: 'InteractiveRegionsMap',
305
+ props: {
306
+ title: 'Our Regions',
307
+ mapStyles: {
308
+ mapBackground: '#1e293b',
309
+ countryDefaultFill: '#334155',
310
+ countryStroke: '#0f172a',
311
+ regionDefaultColor: '#6366f1',
312
+ },
313
+ classNames: {
314
+ title: 'mb-2 text-3xl font-bold text-white',
315
+ content: 'max-w-2xl text-lg text-slate-400',
316
+ mapContainer:
317
+ 'relative aspect-video w-full touch-none overflow-hidden rounded-xl shadow-2xl',
318
+ resetButton:
319
+ 'rounded-md bg-slate-700 px-3 py-1.5 text-sm font-medium text-slate-200 hover:bg-slate-600',
320
+ tooltip:
321
+ 'pointer-events-none fixed z-50 rounded-md bg-slate-700 px-3 py-2 text-sm font-medium text-white shadow-md',
322
+ legendItem:
323
+ 'flex items-center gap-2 rounded-lg border border-slate-700 bg-slate-800 px-3 py-2 transition-all duration-200',
324
+ legendItemActive:
325
+ 'flex items-center gap-2 rounded-lg border border-indigo-500 bg-slate-700 px-3 py-2 shadow-md transition-all duration-200',
326
+ },
327
+ regions: [
328
+ {
329
+ countries: ['US', 'CA'],
330
+ name: 'North America',
331
+ color: '#6366f1',
332
+ },
333
+ { countries: ['FR', 'DE', 'GB'], name: 'Europe', color: '#10b981' },
334
+ ],
335
+ },
336
+ },
337
+ },
338
+ {
339
+ name: 'Compound Primitives',
340
+ description:
341
+ 'Uses the compound component API to compose Legend, Tooltip, ZoomControls and ResetButton as explicit children',
342
+ code: `<InteractiveRegionsMap
343
+ title="Global Presence"
344
+ regions={[
345
+ { countries: ["US", "CA"], name: "North America", color: "#3b82f6" },
346
+ { countries: ["FR", "DE", "ES", "IT", "GB"], name: "Europe", color: "#10b981" },
347
+ { countries: ["CN", "JP", "IN"], name: "Asia", color: "#f59e0b" },
348
+ ]}
349
+ >
350
+ {/*
351
+ ZoomControls renders as an absolute overlay inside the map canvas.
352
+ Use the position prop to place it: 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right'
353
+ */}
354
+ <InteractiveRegionsMap.ZoomControls position="bottom-right" />
355
+
356
+ {/* Tooltip uses fixed positioning so can be placed anywhere inside the provider */}
357
+ <InteractiveRegionsMap.Tooltip />
358
+
359
+ <InteractiveRegionsMap.Legend />
360
+ </InteractiveRegionsMap>`,
361
+ preview: {
362
+ type: 'component',
363
+ component: 'InteractiveRegionsMap',
364
+ props: {
365
+ title: 'Global Presence',
366
+ regions: [
367
+ {
368
+ countries: ['US', 'CA'],
369
+ name: 'North America',
370
+ color: '#3b82f6',
371
+ },
372
+ {
373
+ countries: ['FR', 'DE', 'ES', 'IT', 'GB'],
374
+ name: 'Europe',
375
+ color: '#10b981',
376
+ },
377
+ { countries: ['CN', 'JP', 'IN'], name: 'Asia', color: '#f59e0b' },
255
378
  ],
256
379
  },
257
380
  },
258
381
  },
382
+ {
383
+ name: 'Journey / Trip Planner',
384
+ description:
385
+ 'Visual route planner with animated waypoints, transport icons, callout labels and step navigation',
386
+ code: `// Waypoint coordinates use SVG viewBox space (0–1010 x, 0–666 y).
387
+ // Use the developer tools SVG inspector to find coordinates for any location.
388
+
389
+ const WAYPOINTS = [
390
+ {
391
+ id: 'london',
392
+ label: 'London',
393
+ description: 'Trip begins',
394
+ x: 468,
395
+ y: 195,
396
+ transport: 'flight',
397
+ duration: 'Start',
398
+ },
399
+ {
400
+ id: 'dubai',
401
+ label: 'Dubai',
402
+ description: 'Stopover',
403
+ x: 610,
404
+ y: 330,
405
+ transport: 'flight',
406
+ duration: '7h flight',
407
+ },
408
+ {
409
+ id: 'singapore',
410
+ label: 'Singapore',
411
+ description: 'Cultural hub',
412
+ x: 750,
413
+ y: 415,
414
+ transport: 'flight',
415
+ duration: '7h flight',
416
+ },
417
+ {
418
+ id: 'sydney',
419
+ label: 'Sydney',
420
+ description: 'Final destination',
421
+ x: 870,
422
+ y: 510,
423
+ transport: 'flight',
424
+ duration: '8h flight',
425
+ },
426
+ ];
427
+
428
+ export function TripPlanner() {
429
+ const [step, setStep] = useState(0);
430
+
431
+ return (
432
+ <InteractiveRegionsMap
433
+ title="Around the World"
434
+ content="Follow the journey from London to Sydney"
435
+ regions={[]}
436
+ mapStyles={{ mapBackground: '#bfdbfe' }}
437
+ >
438
+ <InteractiveRegionsMap.ZoomControls position="bottom-right" />
439
+ <InteractiveRegionsMap.Tooltip />
440
+
441
+ {/*
442
+ Journey renders the SVG overlay and provides JourneyContext.
443
+ Place it as a child of InteractiveRegionsMap so it sits
444
+ inside the map canvas div.
445
+ */}
446
+ <InteractiveRegionsMap.Journey
447
+ waypoints={WAYPOINTS}
448
+ activeIndex={step}
449
+ onStepChange={(i) => setStep(i)}
450
+ pathColor="#3b82f6"
451
+ autoFocus
452
+ autoFocusScale={2.5}
453
+ animationDuration={900}
454
+ >
455
+ {/* Callout bubble above the active waypoint */}
456
+ <InteractiveRegionsMap.JourneyCallout />
457
+ </InteractiveRegionsMap.Journey>
458
+
459
+ {/* JourneyControls and JourneyStepList also consume JourneyContext */}
460
+ {/* so they must be inside <Journey>, not siblings of it */}
461
+ <InteractiveRegionsMap.JourneyControls />
462
+ <InteractiveRegionsMap.JourneyStepList />
463
+ </InteractiveRegionsMap>
464
+ );
465
+ }`,
466
+ preview: {
467
+ type: 'component',
468
+ component: 'InteractiveRegionsMap',
469
+ props: {
470
+ title: 'Around the World',
471
+ content: 'Follow the journey from London to Sydney',
472
+ regions: [],
473
+ mapStyles: { mapBackground: '#bfdbfe' },
474
+ },
475
+ },
476
+ },
259
477
  ],
260
478
  dependencies: ['card', 'badge', 'utils'],
261
- files: ['components/interactive-regions-map/index.tsx'],
479
+ files: [
480
+ 'components/interactive-regions-map/index.tsx',
481
+ 'components/interactive-regions-map/world-map-data.ts',
482
+ ],
262
483
  };
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 { InteractiveRegionsMap } from './components/interactive-regions-map/index.js';
5
+ export { InteractiveRegionsMap } from '@foundrykit/maps';
6
6
 
7
7
  // Export utilities from utils package
8
8
  export { cn } from '@foundrykit/utils';