@sonordev/agency-site-kit 0.3.1 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +302 -0
- package/bin/setup.mjs +79 -0
- package/dist/{chunk-RXBK2EOE.js → chunk-4IES23GV.js} +3 -3
- package/dist/{chunk-RXBK2EOE.js.map → chunk-4IES23GV.js.map} +1 -1
- package/dist/{chunk-WNR4KNG4.cjs → chunk-5MEZU3OG.cjs} +4 -4
- package/dist/{chunk-WNR4KNG4.cjs.map → chunk-5MEZU3OG.cjs.map} +1 -1
- package/dist/chunk-7D4H36UF.js +13 -0
- package/dist/chunk-7D4H36UF.js.map +1 -0
- package/dist/chunk-7ZHRMWJU.cjs +306 -0
- package/dist/chunk-7ZHRMWJU.cjs.map +1 -0
- package/dist/chunk-CVT7I5BQ.js +71 -0
- package/dist/chunk-CVT7I5BQ.js.map +1 -0
- package/dist/chunk-HQGAX2LI.cjs +8 -0
- package/dist/chunk-HQGAX2LI.cjs.map +1 -0
- package/dist/chunk-K2BGTDSN.js +45 -0
- package/dist/chunk-K2BGTDSN.js.map +1 -0
- package/dist/chunk-KXLROAO5.js +291 -0
- package/dist/chunk-KXLROAO5.js.map +1 -0
- package/dist/chunk-L4EOQVRJ.js +6 -0
- package/dist/chunk-L4EOQVRJ.js.map +1 -0
- package/dist/chunk-NI4FVCLS.cjs +32 -0
- package/dist/chunk-NI4FVCLS.cjs.map +1 -0
- package/dist/chunk-NLGUPJZA.js +507 -0
- package/dist/chunk-NLGUPJZA.js.map +1 -0
- package/dist/chunk-QDXZ27R7.js +33 -0
- package/dist/chunk-QDXZ27R7.js.map +1 -0
- package/dist/chunk-QGSW43TM.cjs +538 -0
- package/dist/chunk-QGSW43TM.cjs.map +1 -0
- package/dist/{chunk-TVFXN6W6.js → chunk-QL6KVIFR.js} +8 -4
- package/dist/chunk-QL6KVIFR.js.map +1 -0
- package/dist/chunk-RWQ675N6.js +165 -0
- package/dist/chunk-RWQ675N6.js.map +1 -0
- package/dist/chunk-UXUU7FVT.cjs +171 -0
- package/dist/chunk-UXUU7FVT.cjs.map +1 -0
- package/dist/chunk-XJ434N7I.js +30 -0
- package/dist/chunk-XJ434N7I.js.map +1 -0
- package/dist/{chunk-EE75WRCM.cjs → chunk-XOWSXZYW.cjs} +8 -4
- package/dist/chunk-XOWSXZYW.cjs.map +1 -0
- package/dist/chunk-ZBPF7TLZ.cjs +16 -0
- package/dist/chunk-ZBPF7TLZ.cjs.map +1 -0
- package/dist/chunk-ZINKVJQU.js +67 -0
- package/dist/chunk-ZINKVJQU.js.map +1 -0
- package/dist/index.cjs +53 -30
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +17 -9
- package/dist/index.d.ts +17 -9
- package/dist/index.js +8 -9
- package/dist/index.js.map +1 -1
- package/dist/layout/index.cjs +3 -3
- package/dist/layout/index.d.cts +1 -1
- package/dist/layout/index.d.ts +1 -1
- package/dist/layout/index.js +2 -2
- package/dist/portfolio/client.cjs +376 -12
- package/dist/portfolio/client.cjs.map +1 -1
- package/dist/portfolio/client.d.cts +27 -85
- package/dist/portfolio/client.d.ts +27 -85
- package/dist/portfolio/client.js +182 -4
- package/dist/portfolio/client.js.map +1 -1
- package/dist/portfolio/components/PortfolioAnalytics.cjs +87 -0
- package/dist/portfolio/components/PortfolioAnalytics.cjs.map +1 -0
- package/dist/portfolio/components/PortfolioAnalytics.d.cts +5 -0
- package/dist/portfolio/components/PortfolioAnalytics.d.ts +5 -0
- package/dist/portfolio/components/PortfolioAnalytics.js +9 -0
- package/dist/portfolio/components/PortfolioAnalytics.js.map +1 -0
- package/dist/portfolio/components/PortfolioErrorFallback.cjs +65 -0
- package/dist/portfolio/components/PortfolioErrorFallback.cjs.map +1 -0
- package/dist/portfolio/components/PortfolioErrorFallback.d.cts +22 -0
- package/dist/portfolio/components/PortfolioErrorFallback.d.ts +22 -0
- package/dist/portfolio/components/PortfolioErrorFallback.js +9 -0
- package/dist/portfolio/components/PortfolioErrorFallback.js.map +1 -0
- package/dist/portfolio/components/PortfolioLeadCTA.cjs +91 -0
- package/dist/portfolio/components/PortfolioLeadCTA.cjs.map +1 -0
- package/dist/portfolio/components/PortfolioLeadCTA.d.cts +34 -0
- package/dist/portfolio/components/PortfolioLeadCTA.d.ts +34 -0
- package/dist/portfolio/components/PortfolioLeadCTA.js +9 -0
- package/dist/portfolio/components/PortfolioLeadCTA.js.map +1 -0
- package/dist/portfolio/index.cjs +43 -19
- package/dist/portfolio/index.d.cts +210 -7
- package/dist/portfolio/index.d.ts +210 -7
- package/dist/portfolio/index.js +7 -7
- package/dist/portfolio/primitives/AnimatedCounter.cjs +88 -0
- package/dist/portfolio/primitives/AnimatedCounter.cjs.map +1 -0
- package/dist/portfolio/primitives/AnimatedCounter.d.cts +22 -0
- package/dist/portfolio/primitives/AnimatedCounter.d.ts +22 -0
- package/dist/portfolio/primitives/AnimatedCounter.js +68 -0
- package/dist/portfolio/primitives/AnimatedCounter.js.map +1 -0
- package/dist/portfolio/primitives/AnnotatedImage.cjs +320 -0
- package/dist/portfolio/primitives/AnnotatedImage.cjs.map +1 -0
- package/dist/portfolio/primitives/AnnotatedImage.d.cts +18 -0
- package/dist/portfolio/primitives/AnnotatedImage.d.ts +18 -0
- package/dist/portfolio/primitives/AnnotatedImage.js +264 -0
- package/dist/portfolio/primitives/AnnotatedImage.js.map +1 -0
- package/dist/portfolio/primitives/BeforeAfterSlider.cjs +348 -0
- package/dist/portfolio/primitives/BeforeAfterSlider.cjs.map +1 -0
- package/dist/portfolio/primitives/BeforeAfterSlider.d.cts +13 -0
- package/dist/portfolio/primitives/BeforeAfterSlider.d.ts +13 -0
- package/dist/portfolio/primitives/BeforeAfterSlider.js +292 -0
- package/dist/portfolio/primitives/BeforeAfterSlider.js.map +1 -0
- package/dist/portfolio/primitives/DeviceTrifolio.cjs +298 -0
- package/dist/portfolio/primitives/DeviceTrifolio.cjs.map +1 -0
- package/dist/portfolio/primitives/DeviceTrifolio.d.cts +14 -0
- package/dist/portfolio/primitives/DeviceTrifolio.d.ts +14 -0
- package/dist/portfolio/primitives/DeviceTrifolio.js +242 -0
- package/dist/portfolio/primitives/DeviceTrifolio.js.map +1 -0
- package/dist/portfolio/primitives/FrequencyBarSkeleton.cjs +88 -0
- package/dist/portfolio/primitives/FrequencyBarSkeleton.cjs.map +1 -0
- package/dist/portfolio/primitives/FrequencyBarSkeleton.d.cts +10 -0
- package/dist/portfolio/primitives/FrequencyBarSkeleton.d.ts +10 -0
- package/dist/portfolio/primitives/FrequencyBarSkeleton.js +68 -0
- package/dist/portfolio/primitives/FrequencyBarSkeleton.js.map +1 -0
- package/dist/portfolio/primitives/GlassCard.cjs +45 -0
- package/dist/portfolio/primitives/GlassCard.cjs.map +1 -0
- package/dist/portfolio/primitives/GlassCard.d.cts +11 -0
- package/dist/portfolio/primitives/GlassCard.d.ts +11 -0
- package/dist/portfolio/primitives/GlassCard.js +43 -0
- package/dist/portfolio/primitives/GlassCard.js.map +1 -0
- package/dist/portfolio/primitives/MetricBadge.cjs +74 -0
- package/dist/portfolio/primitives/MetricBadge.cjs.map +1 -0
- package/dist/portfolio/primitives/MetricBadge.d.cts +9 -0
- package/dist/portfolio/primitives/MetricBadge.d.ts +9 -0
- package/dist/portfolio/primitives/MetricBadge.js +54 -0
- package/dist/portfolio/primitives/MetricBadge.js.map +1 -0
- package/dist/portfolio/primitives/SVGChart.cjs +316 -0
- package/dist/portfolio/primitives/SVGChart.cjs.map +1 -0
- package/dist/portfolio/primitives/SVGChart.d.cts +18 -0
- package/dist/portfolio/primitives/SVGChart.d.ts +18 -0
- package/dist/portfolio/primitives/SVGChart.js +296 -0
- package/dist/portfolio/primitives/SVGChart.js.map +1 -0
- package/dist/portfolio/primitives/ScrollReveal.cjs +97 -0
- package/dist/portfolio/primitives/ScrollReveal.cjs.map +1 -0
- package/dist/portfolio/primitives/ScrollReveal.d.cts +27 -0
- package/dist/portfolio/primitives/ScrollReveal.d.ts +27 -0
- package/dist/portfolio/primitives/ScrollReveal.js +77 -0
- package/dist/portfolio/primitives/ScrollReveal.js.map +1 -0
- package/dist/portfolio/primitives/SplitHeadline.cjs +107 -0
- package/dist/portfolio/primitives/SplitHeadline.cjs.map +1 -0
- package/dist/portfolio/primitives/SplitHeadline.d.cts +24 -0
- package/dist/portfolio/primitives/SplitHeadline.d.ts +24 -0
- package/dist/portfolio/primitives/SplitHeadline.js +87 -0
- package/dist/portfolio/primitives/SplitHeadline.js.map +1 -0
- package/dist/portfolio/sections/BeforeAfterSection.cjs +271 -0
- package/dist/portfolio/sections/BeforeAfterSection.cjs.map +1 -0
- package/dist/portfolio/sections/BeforeAfterSection.d.cts +9 -0
- package/dist/portfolio/sections/BeforeAfterSection.d.ts +9 -0
- package/dist/{BeforeAfterSection-6BHFLY4Y.js → portfolio/sections/BeforeAfterSection.js} +66 -27
- package/dist/portfolio/sections/BeforeAfterSection.js.map +1 -0
- package/dist/portfolio/sections/CTASection.cjs +123 -0
- package/dist/portfolio/sections/CTASection.cjs.map +1 -0
- package/dist/portfolio/sections/CTASection.d.cts +9 -0
- package/dist/portfolio/sections/CTASection.d.ts +9 -0
- package/dist/portfolio/sections/CTASection.js +93 -0
- package/dist/portfolio/sections/CTASection.js.map +1 -0
- package/dist/{ChallengesSection-IZ3DHECS.cjs → portfolio/sections/ChallengesSection.cjs} +13 -7
- package/dist/portfolio/sections/ChallengesSection.cjs.map +1 -0
- package/dist/portfolio/sections/ChallengesSection.d.cts +9 -0
- package/dist/portfolio/sections/ChallengesSection.d.ts +9 -0
- package/dist/{ChallengesSection-GEQGVSJN.js → portfolio/sections/ChallengesSection.js} +6 -5
- package/dist/portfolio/sections/ChallengesSection.js.map +1 -0
- package/dist/portfolio/sections/ConversionFunnelSection.cjs +263 -0
- package/dist/portfolio/sections/ConversionFunnelSection.cjs.map +1 -0
- package/dist/portfolio/sections/ConversionFunnelSection.d.cts +9 -0
- package/dist/portfolio/sections/ConversionFunnelSection.d.ts +9 -0
- package/dist/{ConversionFunnelSection-D3GE4NKE.js → portfolio/sections/ConversionFunnelSection.js} +60 -56
- package/dist/portfolio/sections/ConversionFunnelSection.js.map +1 -0
- package/dist/{DesignSystemSection-KXIQXITF.cjs → portfolio/sections/DesignSystemSection.cjs} +13 -7
- package/dist/portfolio/sections/DesignSystemSection.cjs.map +1 -0
- package/dist/portfolio/sections/DesignSystemSection.d.cts +32 -0
- package/dist/portfolio/sections/DesignSystemSection.d.ts +32 -0
- package/dist/{DesignSystemSection-2R5BRBGO.js → portfolio/sections/DesignSystemSection.js} +5 -4
- package/dist/portfolio/sections/DesignSystemSection.js.map +1 -0
- package/dist/{DetailsSection-TTUZAPZZ.cjs → portfolio/sections/DetailsSection.cjs} +12 -6
- package/dist/portfolio/sections/DetailsSection.cjs.map +1 -0
- package/dist/portfolio/sections/DetailsSection.d.cts +9 -0
- package/dist/portfolio/sections/DetailsSection.d.ts +9 -0
- package/dist/{DetailsSection-A6PZQUQL.js → portfolio/sections/DetailsSection.js} +5 -4
- package/dist/portfolio/sections/DetailsSection.js.map +1 -0
- package/dist/portfolio/sections/FeatureSpotlightSection.cjs +267 -0
- package/dist/portfolio/sections/FeatureSpotlightSection.cjs.map +1 -0
- package/dist/portfolio/sections/FeatureSpotlightSection.d.cts +9 -0
- package/dist/portfolio/sections/FeatureSpotlightSection.d.ts +9 -0
- package/dist/{FeatureSpotlightSection-B7P3JGNL.js → portfolio/sections/FeatureSpotlightSection.js} +39 -33
- package/dist/portfolio/sections/FeatureSpotlightSection.js.map +1 -0
- package/dist/portfolio/sections/GallerySection.cjs +321 -0
- package/dist/portfolio/sections/GallerySection.cjs.map +1 -0
- package/dist/portfolio/sections/GallerySection.d.cts +9 -0
- package/dist/portfolio/sections/GallerySection.d.ts +9 -0
- package/dist/{GallerySection-VMKORC47.js → portfolio/sections/GallerySection.js} +65 -18
- package/dist/portfolio/sections/GallerySection.js.map +1 -0
- package/dist/portfolio/sections/HeroSection.cjs +180 -0
- package/dist/portfolio/sections/HeroSection.cjs.map +1 -0
- package/dist/portfolio/sections/HeroSection.d.cts +15 -0
- package/dist/portfolio/sections/HeroSection.d.ts +15 -0
- package/dist/portfolio/sections/HeroSection.js +171 -0
- package/dist/portfolio/sections/HeroSection.js.map +1 -0
- package/dist/{MetricsTimelineSection-4L6DUHJ5.cjs → portfolio/sections/MetricsTimelineSection.cjs} +102 -61
- package/dist/portfolio/sections/MetricsTimelineSection.cjs.map +1 -0
- package/dist/portfolio/sections/MetricsTimelineSection.d.cts +9 -0
- package/dist/portfolio/sections/MetricsTimelineSection.d.ts +9 -0
- package/dist/{MetricsTimelineSection-6BT5GNFV.js → portfolio/sections/MetricsTimelineSection.js} +45 -29
- package/dist/portfolio/sections/MetricsTimelineSection.js.map +1 -0
- package/dist/portfolio/sections/PerformanceSection.cjs +336 -0
- package/dist/portfolio/sections/PerformanceSection.cjs.map +1 -0
- package/dist/portfolio/sections/PerformanceSection.d.cts +22 -0
- package/dist/portfolio/sections/PerformanceSection.d.ts +22 -0
- package/dist/{PerformanceSection-MGCEIXDX.js → portfolio/sections/PerformanceSection.js} +59 -104
- package/dist/portfolio/sections/PerformanceSection.js.map +1 -0
- package/dist/{ResultsSection-XLGMMQKY.cjs → portfolio/sections/ResultsSection.cjs} +23 -10
- package/dist/portfolio/sections/ResultsSection.cjs.map +1 -0
- package/dist/portfolio/sections/ResultsSection.d.cts +13 -0
- package/dist/portfolio/sections/ResultsSection.d.ts +13 -0
- package/dist/{ResultsSection-DFUJ5U6M.js → portfolio/sections/ResultsSection.js} +14 -7
- package/dist/portfolio/sections/ResultsSection.js.map +1 -0
- package/dist/portfolio/sections/ServicesSection.cjs +129 -0
- package/dist/portfolio/sections/ServicesSection.cjs.map +1 -0
- package/dist/portfolio/sections/ServicesSection.d.cts +9 -0
- package/dist/portfolio/sections/ServicesSection.d.ts +9 -0
- package/dist/portfolio/sections/ServicesSection.js +122 -0
- package/dist/portfolio/sections/ServicesSection.js.map +1 -0
- package/dist/{SiteArchitectureSection-J7BPBERH.cjs → portfolio/sections/SiteArchitectureSection.cjs} +117 -93
- package/dist/portfolio/sections/SiteArchitectureSection.cjs.map +1 -0
- package/dist/portfolio/sections/SiteArchitectureSection.d.cts +21 -0
- package/dist/portfolio/sections/SiteArchitectureSection.d.ts +21 -0
- package/dist/{SiteArchitectureSection-TE22OAWV.js → portfolio/sections/SiteArchitectureSection.js} +47 -48
- package/dist/portfolio/sections/SiteArchitectureSection.js.map +1 -0
- package/dist/{SpeedComparisonSection-EZKFQVGW.cjs → portfolio/sections/SpeedComparisonSection.cjs} +13 -7
- package/dist/portfolio/sections/SpeedComparisonSection.cjs.map +1 -0
- package/dist/portfolio/sections/SpeedComparisonSection.d.cts +20 -0
- package/dist/portfolio/sections/SpeedComparisonSection.d.ts +20 -0
- package/dist/{SpeedComparisonSection-Y3K7OFZQ.js → portfolio/sections/SpeedComparisonSection.js} +6 -5
- package/dist/portfolio/sections/SpeedComparisonSection.js.map +1 -0
- package/dist/portfolio/sections/StrategySection.cjs +233 -0
- package/dist/portfolio/sections/StrategySection.cjs.map +1 -0
- package/dist/portfolio/sections/StrategySection.d.cts +9 -0
- package/dist/portfolio/sections/StrategySection.d.ts +9 -0
- package/dist/{StrategySection-DI5RSCJU.js → portfolio/sections/StrategySection.js} +60 -26
- package/dist/portfolio/sections/StrategySection.js.map +1 -0
- package/dist/portfolio/sections/TeamSection.cjs +162 -0
- package/dist/portfolio/sections/TeamSection.cjs.map +1 -0
- package/dist/portfolio/sections/TeamSection.d.cts +9 -0
- package/dist/portfolio/sections/TeamSection.d.ts +9 -0
- package/dist/portfolio/sections/TeamSection.js +106 -0
- package/dist/portfolio/sections/TeamSection.js.map +1 -0
- package/dist/portfolio/sections/TechStackSection.cjs +106 -0
- package/dist/portfolio/sections/TechStackSection.cjs.map +1 -0
- package/dist/portfolio/sections/TechStackSection.d.cts +9 -0
- package/dist/portfolio/sections/TechStackSection.d.ts +9 -0
- package/dist/portfolio/sections/TechStackSection.js +99 -0
- package/dist/portfolio/sections/TechStackSection.js.map +1 -0
- package/dist/{TestimonialSection-XPTFUQIN.cjs → portfolio/sections/TestimonialSection.cjs} +47 -28
- package/dist/portfolio/sections/TestimonialSection.cjs.map +1 -0
- package/dist/portfolio/sections/TestimonialSection.d.cts +9 -0
- package/dist/portfolio/sections/TestimonialSection.d.ts +9 -0
- package/dist/{TestimonialSection-6RGSMXQB.js → portfolio/sections/TestimonialSection.js} +40 -27
- package/dist/portfolio/sections/TestimonialSection.js.map +1 -0
- package/dist/portfolio/sections/VideoSection.cjs +181 -0
- package/dist/portfolio/sections/VideoSection.cjs.map +1 -0
- package/dist/portfolio/sections/VideoSection.d.cts +9 -0
- package/dist/portfolio/sections/VideoSection.d.ts +9 -0
- package/dist/{VideoSection-4A2HC6K6.js → portfolio/sections/VideoSection.js} +21 -13
- package/dist/portfolio/sections/VideoSection.js.map +1 -0
- package/dist/portfolio/server.cjs +56 -144
- package/dist/portfolio/server.cjs.map +1 -1
- package/dist/portfolio/server.d.cts +157 -7
- package/dist/portfolio/server.d.ts +157 -7
- package/dist/portfolio/server.js +3 -142
- package/dist/portfolio/server.js.map +1 -1
- package/dist/preview.cjs +56 -0
- package/dist/preview.cjs.map +1 -0
- package/dist/preview.d.cts +31 -0
- package/dist/preview.d.ts +31 -0
- package/dist/preview.js +54 -0
- package/dist/preview.js.map +1 -0
- package/dist/{types-DL4t_Cfa.d.ts → types-0tVPy4pU.d.cts} +7 -1
- package/dist/{types-DL4t_Cfa.d.cts → types-0tVPy4pU.d.ts} +7 -1
- package/dist/types-D0nb6KAx.d.cts +299 -0
- package/dist/types-D0nb6KAx.d.ts +299 -0
- package/package.json +38 -14
- package/templates/api-portfolio-preview.ts +6 -0
- package/templates/api-revalidate.ts +5 -0
- package/templates/work-category-page.tsx +40 -0
- package/templates/work-error.tsx +3 -0
- package/templates/work-loading.tsx +1 -0
- package/templates/work-page.tsx +37 -0
- package/templates/work-slug-loading.tsx +1 -0
- package/templates/work-slug-page.tsx +41 -0
- package/dist/BeforeAfterSection-6BHFLY4Y.js.map +0 -1
- package/dist/BeforeAfterSection-JTORBR3A.cjs +0 -181
- package/dist/BeforeAfterSection-JTORBR3A.cjs.map +0 -1
- package/dist/CTASection-4JKLXEUF.cjs +0 -111
- package/dist/CTASection-4JKLXEUF.cjs.map +0 -1
- package/dist/CTASection-BJA72XIL.js +0 -106
- package/dist/CTASection-BJA72XIL.js.map +0 -1
- package/dist/ChallengesSection-GEQGVSJN.js.map +0 -1
- package/dist/ChallengesSection-IZ3DHECS.cjs.map +0 -1
- package/dist/ConversionFunnelSection-AUUSJ5HQ.cjs +0 -209
- package/dist/ConversionFunnelSection-AUUSJ5HQ.cjs.map +0 -1
- package/dist/ConversionFunnelSection-D3GE4NKE.js.map +0 -1
- package/dist/DesignSystemSection-2R5BRBGO.js.map +0 -1
- package/dist/DesignSystemSection-KXIQXITF.cjs.map +0 -1
- package/dist/DetailsSection-A6PZQUQL.js.map +0 -1
- package/dist/DetailsSection-TTUZAPZZ.cjs.map +0 -1
- package/dist/FeatureSpotlightSection-B7P3JGNL.js.map +0 -1
- package/dist/FeatureSpotlightSection-WRHXS7TU.cjs +0 -210
- package/dist/FeatureSpotlightSection-WRHXS7TU.cjs.map +0 -1
- package/dist/GallerySection-VMKORC47.js.map +0 -1
- package/dist/GallerySection-WJ4PQDBI.cjs +0 -219
- package/dist/GallerySection-WJ4PQDBI.cjs.map +0 -1
- package/dist/MetricsTimelineSection-4L6DUHJ5.cjs.map +0 -1
- package/dist/MetricsTimelineSection-6BT5GNFV.js.map +0 -1
- package/dist/PerformanceSection-24TVVFZA.cjs +0 -356
- package/dist/PerformanceSection-24TVVFZA.cjs.map +0 -1
- package/dist/PerformanceSection-MGCEIXDX.js.map +0 -1
- package/dist/ResultsSection-DFUJ5U6M.js.map +0 -1
- package/dist/ResultsSection-XLGMMQKY.cjs.map +0 -1
- package/dist/ServicesSection-D5V3Q4GR.js +0 -118
- package/dist/ServicesSection-D5V3Q4GR.js.map +0 -1
- package/dist/ServicesSection-WJMGK2MF.cjs +0 -120
- package/dist/ServicesSection-WJMGK2MF.cjs.map +0 -1
- package/dist/SiteArchitectureSection-J7BPBERH.cjs.map +0 -1
- package/dist/SiteArchitectureSection-TE22OAWV.js.map +0 -1
- package/dist/SpeedComparisonSection-EZKFQVGW.cjs.map +0 -1
- package/dist/SpeedComparisonSection-Y3K7OFZQ.js.map +0 -1
- package/dist/StrategySection-CJ7Y6OFQ.cjs +0 -174
- package/dist/StrategySection-CJ7Y6OFQ.cjs.map +0 -1
- package/dist/StrategySection-DI5RSCJU.js.map +0 -1
- package/dist/TeamSection-DZVSNZE6.cjs +0 -112
- package/dist/TeamSection-DZVSNZE6.cjs.map +0 -1
- package/dist/TeamSection-HGKFW6PQ.js +0 -107
- package/dist/TeamSection-HGKFW6PQ.js.map +0 -1
- package/dist/TechStackSection-2AQ7RGY3.js +0 -93
- package/dist/TechStackSection-2AQ7RGY3.js.map +0 -1
- package/dist/TechStackSection-VTNNZR5V.cjs +0 -95
- package/dist/TechStackSection-VTNNZR5V.cjs.map +0 -1
- package/dist/TestimonialSection-6RGSMXQB.js.map +0 -1
- package/dist/TestimonialSection-XPTFUQIN.cjs.map +0 -1
- package/dist/VideoSection-4A2HC6K6.js.map +0 -1
- package/dist/VideoSection-G3DFS7UH.cjs +0 -118
- package/dist/VideoSection-G3DFS7UH.cjs.map +0 -1
- package/dist/chunk-2Y4O3LWM.js +0 -53
- package/dist/chunk-2Y4O3LWM.js.map +0 -1
- package/dist/chunk-633UMQQH.cjs +0 -31
- package/dist/chunk-633UMQQH.cjs.map +0 -1
- package/dist/chunk-7CFFAKDM.js +0 -74
- package/dist/chunk-7CFFAKDM.js.map +0 -1
- package/dist/chunk-APG2QSMB.js +0 -131
- package/dist/chunk-APG2QSMB.js.map +0 -1
- package/dist/chunk-AVCH4LMG.cjs +0 -620
- package/dist/chunk-AVCH4LMG.cjs.map +0 -1
- package/dist/chunk-AYBUHRFS.js +0 -613
- package/dist/chunk-AYBUHRFS.js.map +0 -1
- package/dist/chunk-EE75WRCM.cjs.map +0 -1
- package/dist/chunk-IKBK7HYX.cjs +0 -79
- package/dist/chunk-IKBK7HYX.cjs.map +0 -1
- package/dist/chunk-KEOHORIH.cjs +0 -79
- package/dist/chunk-KEOHORIH.cjs.map +0 -1
- package/dist/chunk-OA5ZM4OA.cjs +0 -139
- package/dist/chunk-OA5ZM4OA.cjs.map +0 -1
- package/dist/chunk-TVFXN6W6.js.map +0 -1
- package/dist/chunk-VVTK4OL6.js +0 -28
- package/dist/chunk-VVTK4OL6.js.map +0 -1
- package/dist/chunk-XCKXHK44.js +0 -15
- package/dist/chunk-XCKXHK44.js.map +0 -1
- package/dist/chunk-XONXEFJY.cjs +0 -58
- package/dist/chunk-XONXEFJY.cjs.map +0 -1
- package/dist/chunk-XQNJED46.cjs +0 -19
- package/dist/chunk-XQNJED46.cjs.map +0 -1
- package/dist/chunk-YB4B3OMC.js +0 -74
- package/dist/chunk-YB4B3OMC.js.map +0 -1
- package/dist/portfolio/sections.cjs +0 -20
- package/dist/portfolio/sections.cjs.map +0 -1
- package/dist/portfolio/sections.d.cts +0 -42
- package/dist/portfolio/sections.d.ts +0 -42
- package/dist/portfolio/sections.js +0 -4
- package/dist/portfolio/sections.js.map +0 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
interface GlassCardProps {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
className?: string;
|
|
6
|
+
hover?: boolean;
|
|
7
|
+
padding?: 'sm' | 'md' | 'lg';
|
|
8
|
+
}
|
|
9
|
+
declare function GlassCard({ children, className, hover, padding, }: GlassCardProps): React.JSX.Element;
|
|
10
|
+
|
|
11
|
+
export { GlassCard as default };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
interface GlassCardProps {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
className?: string;
|
|
6
|
+
hover?: boolean;
|
|
7
|
+
padding?: 'sm' | 'md' | 'lg';
|
|
8
|
+
}
|
|
9
|
+
declare function GlassCard({ children, className, hover, padding, }: GlassCardProps): React.JSX.Element;
|
|
10
|
+
|
|
11
|
+
export { GlassCard as default };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
|
|
3
|
+
// src/portfolio/components/primitives/GlassCard.tsx
|
|
4
|
+
var paddingMap = {
|
|
5
|
+
sm: "16px",
|
|
6
|
+
md: "24px",
|
|
7
|
+
lg: "32px"
|
|
8
|
+
};
|
|
9
|
+
var HOVER_CSS = `
|
|
10
|
+
.sk-glass-card{transition:transform .3s cubic-bezier(.25,.46,.45,.94),box-shadow .3s cubic-bezier(.25,.46,.45,.94)}
|
|
11
|
+
.sk-glass-card--hover:hover{transform:translateY(-6px) scale(1.015);box-shadow:0 20px 40px -12px rgba(0,0,0,.25),0 0 0 1px var(--sk-primary,#6366f1)}
|
|
12
|
+
@media (prefers-reduced-motion:reduce){.sk-glass-card{transition:none}.sk-glass-card--hover:hover{transform:none}}
|
|
13
|
+
`;
|
|
14
|
+
function GlassCard({
|
|
15
|
+
children,
|
|
16
|
+
className = "",
|
|
17
|
+
hover = true,
|
|
18
|
+
padding = "md"
|
|
19
|
+
}) {
|
|
20
|
+
return /* @__PURE__ */ jsxs(
|
|
21
|
+
"div",
|
|
22
|
+
{
|
|
23
|
+
className: `sk-glass-card ${hover ? "sk-glass-card--hover" : ""} ${className}`,
|
|
24
|
+
style: {
|
|
25
|
+
padding: paddingMap[padding],
|
|
26
|
+
background: "var(--sk-surface, rgba(255,255,255,0.05))",
|
|
27
|
+
backdropFilter: "blur(16px)",
|
|
28
|
+
WebkitBackdropFilter: "blur(16px)",
|
|
29
|
+
border: "1px solid var(--sk-border, rgba(255,255,255,0.1))",
|
|
30
|
+
borderRadius: "16px",
|
|
31
|
+
boxShadow: "0 4px 16px -4px rgba(0,0,0,0.1), 0 0 0 1px var(--sk-border, rgba(255,255,255,0.1))"
|
|
32
|
+
},
|
|
33
|
+
children: [
|
|
34
|
+
/* @__PURE__ */ jsx("style", { href: "sk-glass-card", precedence: "default", children: HOVER_CSS }),
|
|
35
|
+
children
|
|
36
|
+
]
|
|
37
|
+
}
|
|
38
|
+
);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export { GlassCard as default };
|
|
42
|
+
//# sourceMappingURL=GlassCard.js.map
|
|
43
|
+
//# sourceMappingURL=GlassCard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/portfolio/components/primitives/GlassCard.tsx"],"names":[],"mappings":";;;AAeA,IAAM,UAAA,GAAa;AAAA,EACjB,EAAA,EAAI,MAAA;AAAA,EACJ,EAAA,EAAI,MAAA;AAAA,EACJ,EAAA,EAAI;AACN,CAAA;AAEA,IAAM,SAAA,GAAY;AAAA;AAAA;AAAA;AAAA,CAAA;AAMH,SAAR,SAAA,CAA2B;AAAA,EAChC,QAAA;AAAA,EACA,SAAA,GAAY,EAAA;AAAA,EACZ,KAAA,GAAQ,IAAA;AAAA,EACR,OAAA,GAAU;AACZ,CAAA,EAAmB;AACjB,EAAA,uBACE,IAAA;AAAA,IAAC,KAAA;AAAA,IAAA;AAAA,MACC,WAAW,CAAA,cAAA,EAAiB,KAAA,GAAQ,sBAAA,GAAyB,EAAE,IAAI,SAAS,CAAA,CAAA;AAAA,MAC5E,KAAA,EAAO;AAAA,QACL,OAAA,EAAS,WAAW,OAAO,CAAA;AAAA,QAC3B,UAAA,EAAY,2CAAA;AAAA,QACZ,cAAA,EAAgB,YAAA;AAAA,QAChB,oBAAA,EAAsB,YAAA;AAAA,QACtB,MAAA,EAAQ,mDAAA;AAAA,QACR,YAAA,EAAc,MAAA;AAAA,QACd,SAAA,EAAW;AAAA,OACb;AAAA,MAIA,QAAA,EAAA;AAAA,wBAAA,GAAA,CAAC,OAAA,EAAA,EAAM,IAAA,EAAK,eAAA,EAAgB,UAAA,EAAW,WACpC,QAAA,EAAA,SAAA,EACH,CAAA;AAAA,QACC;AAAA;AAAA;AAAA,GACH;AAEJ","file":"GlassCard.js","sourcesContent":["// Shared component — NO 'use client' directive on purpose: GlassCard has no\n// hooks, handlers, or browser APIs, so it renders in BOTH graphs. Server\n// sections use it server-side (zero JS); client sections pull it into their\n// graph. The hover lift is pure CSS. Keep it dependency-free — adding a hook\n// here would force every server section that uses it back to the client.\n\nimport React from 'react';\n\ninterface GlassCardProps {\n children: React.ReactNode;\n className?: string;\n hover?: boolean;\n padding?: 'sm' | 'md' | 'lg';\n}\n\nconst paddingMap = {\n sm: '16px',\n md: '24px',\n lg: '32px',\n} as const;\n\nconst HOVER_CSS = `\n.sk-glass-card{transition:transform .3s cubic-bezier(.25,.46,.45,.94),box-shadow .3s cubic-bezier(.25,.46,.45,.94)}\n.sk-glass-card--hover:hover{transform:translateY(-6px) scale(1.015);box-shadow:0 20px 40px -12px rgba(0,0,0,.25),0 0 0 1px var(--sk-primary,#6366f1)}\n@media (prefers-reduced-motion:reduce){.sk-glass-card{transition:none}.sk-glass-card--hover:hover{transform:none}}\n`;\n\nexport default function GlassCard({\n children,\n className = '',\n hover = true,\n padding = 'md',\n}: GlassCardProps) {\n return (\n <div\n className={`sk-glass-card ${hover ? 'sk-glass-card--hover' : ''} ${className}`}\n style={{\n padding: paddingMap[padding],\n background: 'var(--sk-surface, rgba(255,255,255,0.05))',\n backdropFilter: 'blur(16px)',\n WebkitBackdropFilter: 'blur(16px)',\n border: '1px solid var(--sk-border, rgba(255,255,255,0.1))',\n borderRadius: '16px',\n boxShadow: '0 4px 16px -4px rgba(0,0,0,0.1), 0 0 0 1px var(--sk-border, rgba(255,255,255,0.1))',\n }}\n >\n {/* React 19 hoists + dedupes via href/precedence; React 18 renders it\n inline per card (harmless duplication). */}\n <style href=\"sk-glass-card\" precedence=\"default\">\n {HOVER_CSS}\n </style>\n {children}\n </div>\n );\n}\n"]}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
"use strict";
|
|
3
|
+
"use client";
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
21
|
+
|
|
22
|
+
// src/portfolio/components/primitives/MetricBadge.tsx
|
|
23
|
+
var MetricBadge_exports = {};
|
|
24
|
+
__export(MetricBadge_exports, {
|
|
25
|
+
default: () => MetricBadge
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(MetricBadge_exports);
|
|
28
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
29
|
+
function MetricBadge({ source, className = "" }) {
|
|
30
|
+
const isMeasured = source === "measured";
|
|
31
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
32
|
+
"span",
|
|
33
|
+
{
|
|
34
|
+
className,
|
|
35
|
+
style: {
|
|
36
|
+
display: "inline-flex",
|
|
37
|
+
alignItems: "center",
|
|
38
|
+
gap: "5px",
|
|
39
|
+
padding: "3px 10px",
|
|
40
|
+
borderRadius: "9999px",
|
|
41
|
+
fontSize: "12px",
|
|
42
|
+
fontWeight: 600,
|
|
43
|
+
lineHeight: "1.4",
|
|
44
|
+
background: isMeasured ? "rgba(34,197,94,0.1)" : "rgba(245,158,11,0.1)",
|
|
45
|
+
color: isMeasured ? "#22c55e" : "#f59e0b",
|
|
46
|
+
border: `1px solid ${isMeasured ? "rgba(34,197,94,0.2)" : "rgba(245,158,11,0.2)"}`
|
|
47
|
+
},
|
|
48
|
+
children: [
|
|
49
|
+
isMeasured ? (
|
|
50
|
+
// Check icon
|
|
51
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("svg", { width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
52
|
+
"path",
|
|
53
|
+
{
|
|
54
|
+
d: "M10 3L4.5 8.5L2 6",
|
|
55
|
+
stroke: "currentColor",
|
|
56
|
+
strokeWidth: "1.5",
|
|
57
|
+
strokeLinecap: "round",
|
|
58
|
+
strokeLinejoin: "round"
|
|
59
|
+
}
|
|
60
|
+
) })
|
|
61
|
+
) : (
|
|
62
|
+
// Info icon
|
|
63
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("svg", { width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", children: [
|
|
64
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "6", cy: "6", r: "4.5", stroke: "currentColor", strokeWidth: "1" }),
|
|
65
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M6 5.5V8", stroke: "currentColor", strokeWidth: "1", strokeLinecap: "round" }),
|
|
66
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "6", cy: "4", r: "0.5", fill: "currentColor" })
|
|
67
|
+
] })
|
|
68
|
+
),
|
|
69
|
+
isMeasured ? "Verified" : "Estimated"
|
|
70
|
+
]
|
|
71
|
+
}
|
|
72
|
+
);
|
|
73
|
+
}
|
|
74
|
+
//# sourceMappingURL=MetricBadge.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/portfolio/components/primitives/MetricBadge.tsx"],"sourcesContent":["'use client';\n\nimport React from 'react';\n\ninterface MetricBadgeProps {\n source: 'measured' | 'estimated';\n className?: string;\n}\n\nexport default function MetricBadge({ source, className = '' }: MetricBadgeProps) {\n const isMeasured = source === 'measured';\n\n return (\n <span\n className={className}\n style={{\n display: 'inline-flex',\n alignItems: 'center',\n gap: '5px',\n padding: '3px 10px',\n borderRadius: '9999px',\n fontSize: '12px',\n fontWeight: 600,\n lineHeight: '1.4',\n background: isMeasured ? 'rgba(34,197,94,0.1)' : 'rgba(245,158,11,0.1)',\n color: isMeasured ? '#22c55e' : '#f59e0b',\n border: `1px solid ${isMeasured ? 'rgba(34,197,94,0.2)' : 'rgba(245,158,11,0.2)'}`,\n }}\n >\n {isMeasured ? (\n // Check icon\n <svg width=\"12\" height=\"12\" viewBox=\"0 0 12 12\" fill=\"none\">\n <path\n d=\"M10 3L4.5 8.5L2 6\"\n stroke=\"currentColor\"\n strokeWidth=\"1.5\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>\n ) : (\n // Info icon\n <svg width=\"12\" height=\"12\" viewBox=\"0 0 12 12\" fill=\"none\">\n <circle cx=\"6\" cy=\"6\" r=\"4.5\" stroke=\"currentColor\" strokeWidth=\"1\" />\n <path d=\"M6 5.5V8\" stroke=\"currentColor\" strokeWidth=\"1\" strokeLinecap=\"round\" />\n <circle cx=\"6\" cy=\"4\" r=\"0.5\" fill=\"currentColor\" />\n </svg>\n )}\n {isMeasured ? 'Verified' : 'Estimated'}\n </span>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAgCU;AAvBK,SAAR,YAA6B,EAAE,QAAQ,YAAY,GAAG,GAAqB;AAChF,QAAM,aAAa,WAAW;AAE9B,SACE;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA,OAAO;AAAA,QACL,SAAS;AAAA,QACT,YAAY;AAAA,QACZ,KAAK;AAAA,QACL,SAAS;AAAA,QACT,cAAc;AAAA,QACd,UAAU;AAAA,QACV,YAAY;AAAA,QACZ,YAAY;AAAA,QACZ,YAAY,aAAa,wBAAwB;AAAA,QACjD,OAAO,aAAa,YAAY;AAAA,QAChC,QAAQ,aAAa,aAAa,wBAAwB,sBAAsB;AAAA,MAClF;AAAA,MAEC;AAAA;AAAA;AAAA,UAEC,4CAAC,SAAI,OAAM,MAAK,QAAO,MAAK,SAAQ,aAAY,MAAK,QACnD;AAAA,YAAC;AAAA;AAAA,cACC,GAAE;AAAA,cACF,QAAO;AAAA,cACP,aAAY;AAAA,cACZ,eAAc;AAAA,cACd,gBAAe;AAAA;AAAA,UACjB,GACF;AAAA;AAAA;AAAA,UAGA,6CAAC,SAAI,OAAM,MAAK,QAAO,MAAK,SAAQ,aAAY,MAAK,QACnD;AAAA,wDAAC,YAAO,IAAG,KAAI,IAAG,KAAI,GAAE,OAAM,QAAO,gBAAe,aAAY,KAAI;AAAA,YACpE,4CAAC,UAAK,GAAE,YAAW,QAAO,gBAAe,aAAY,KAAI,eAAc,SAAQ;AAAA,YAC/E,4CAAC,YAAO,IAAG,KAAI,IAAG,KAAI,GAAE,OAAM,MAAK,gBAAe;AAAA,aACpD;AAAA;AAAA,QAED,aAAa,aAAa;AAAA;AAAA;AAAA,EAC7B;AAEJ;","names":[]}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
"use client";
|
|
3
|
+
|
|
4
|
+
// src/portfolio/components/primitives/MetricBadge.tsx
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
function MetricBadge({ source, className = "" }) {
|
|
7
|
+
const isMeasured = source === "measured";
|
|
8
|
+
return /* @__PURE__ */ jsxs(
|
|
9
|
+
"span",
|
|
10
|
+
{
|
|
11
|
+
className,
|
|
12
|
+
style: {
|
|
13
|
+
display: "inline-flex",
|
|
14
|
+
alignItems: "center",
|
|
15
|
+
gap: "5px",
|
|
16
|
+
padding: "3px 10px",
|
|
17
|
+
borderRadius: "9999px",
|
|
18
|
+
fontSize: "12px",
|
|
19
|
+
fontWeight: 600,
|
|
20
|
+
lineHeight: "1.4",
|
|
21
|
+
background: isMeasured ? "rgba(34,197,94,0.1)" : "rgba(245,158,11,0.1)",
|
|
22
|
+
color: isMeasured ? "#22c55e" : "#f59e0b",
|
|
23
|
+
border: `1px solid ${isMeasured ? "rgba(34,197,94,0.2)" : "rgba(245,158,11,0.2)"}`
|
|
24
|
+
},
|
|
25
|
+
children: [
|
|
26
|
+
isMeasured ? (
|
|
27
|
+
// Check icon
|
|
28
|
+
/* @__PURE__ */ jsx("svg", { width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", children: /* @__PURE__ */ jsx(
|
|
29
|
+
"path",
|
|
30
|
+
{
|
|
31
|
+
d: "M10 3L4.5 8.5L2 6",
|
|
32
|
+
stroke: "currentColor",
|
|
33
|
+
strokeWidth: "1.5",
|
|
34
|
+
strokeLinecap: "round",
|
|
35
|
+
strokeLinejoin: "round"
|
|
36
|
+
}
|
|
37
|
+
) })
|
|
38
|
+
) : (
|
|
39
|
+
// Info icon
|
|
40
|
+
/* @__PURE__ */ jsxs("svg", { width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", children: [
|
|
41
|
+
/* @__PURE__ */ jsx("circle", { cx: "6", cy: "6", r: "4.5", stroke: "currentColor", strokeWidth: "1" }),
|
|
42
|
+
/* @__PURE__ */ jsx("path", { d: "M6 5.5V8", stroke: "currentColor", strokeWidth: "1", strokeLinecap: "round" }),
|
|
43
|
+
/* @__PURE__ */ jsx("circle", { cx: "6", cy: "4", r: "0.5", fill: "currentColor" })
|
|
44
|
+
] })
|
|
45
|
+
),
|
|
46
|
+
isMeasured ? "Verified" : "Estimated"
|
|
47
|
+
]
|
|
48
|
+
}
|
|
49
|
+
);
|
|
50
|
+
}
|
|
51
|
+
export {
|
|
52
|
+
MetricBadge as default
|
|
53
|
+
};
|
|
54
|
+
//# sourceMappingURL=MetricBadge.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/portfolio/components/primitives/MetricBadge.tsx"],"sourcesContent":["'use client';\n\nimport React from 'react';\n\ninterface MetricBadgeProps {\n source: 'measured' | 'estimated';\n className?: string;\n}\n\nexport default function MetricBadge({ source, className = '' }: MetricBadgeProps) {\n const isMeasured = source === 'measured';\n\n return (\n <span\n className={className}\n style={{\n display: 'inline-flex',\n alignItems: 'center',\n gap: '5px',\n padding: '3px 10px',\n borderRadius: '9999px',\n fontSize: '12px',\n fontWeight: 600,\n lineHeight: '1.4',\n background: isMeasured ? 'rgba(34,197,94,0.1)' : 'rgba(245,158,11,0.1)',\n color: isMeasured ? '#22c55e' : '#f59e0b',\n border: `1px solid ${isMeasured ? 'rgba(34,197,94,0.2)' : 'rgba(245,158,11,0.2)'}`,\n }}\n >\n {isMeasured ? (\n // Check icon\n <svg width=\"12\" height=\"12\" viewBox=\"0 0 12 12\" fill=\"none\">\n <path\n d=\"M10 3L4.5 8.5L2 6\"\n stroke=\"currentColor\"\n strokeWidth=\"1.5\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>\n ) : (\n // Info icon\n <svg width=\"12\" height=\"12\" viewBox=\"0 0 12 12\" fill=\"none\">\n <circle cx=\"6\" cy=\"6\" r=\"4.5\" stroke=\"currentColor\" strokeWidth=\"1\" />\n <path d=\"M6 5.5V8\" stroke=\"currentColor\" strokeWidth=\"1\" strokeLinecap=\"round\" />\n <circle cx=\"6\" cy=\"4\" r=\"0.5\" fill=\"currentColor\" />\n </svg>\n )}\n {isMeasured ? 'Verified' : 'Estimated'}\n </span>\n );\n}\n"],"mappings":";;;;AAgCU,cAUF,YAVE;AAvBK,SAAR,YAA6B,EAAE,QAAQ,YAAY,GAAG,GAAqB;AAChF,QAAM,aAAa,WAAW;AAE9B,SACE;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA,OAAO;AAAA,QACL,SAAS;AAAA,QACT,YAAY;AAAA,QACZ,KAAK;AAAA,QACL,SAAS;AAAA,QACT,cAAc;AAAA,QACd,UAAU;AAAA,QACV,YAAY;AAAA,QACZ,YAAY;AAAA,QACZ,YAAY,aAAa,wBAAwB;AAAA,QACjD,OAAO,aAAa,YAAY;AAAA,QAChC,QAAQ,aAAa,aAAa,wBAAwB,sBAAsB;AAAA,MAClF;AAAA,MAEC;AAAA;AAAA;AAAA,UAEC,oBAAC,SAAI,OAAM,MAAK,QAAO,MAAK,SAAQ,aAAY,MAAK,QACnD;AAAA,YAAC;AAAA;AAAA,cACC,GAAE;AAAA,cACF,QAAO;AAAA,cACP,aAAY;AAAA,cACZ,eAAc;AAAA,cACd,gBAAe;AAAA;AAAA,UACjB,GACF;AAAA;AAAA;AAAA,UAGA,qBAAC,SAAI,OAAM,MAAK,QAAO,MAAK,SAAQ,aAAY,MAAK,QACnD;AAAA,gCAAC,YAAO,IAAG,KAAI,IAAG,KAAI,GAAE,OAAM,QAAO,gBAAe,aAAY,KAAI;AAAA,YACpE,oBAAC,UAAK,GAAE,YAAW,QAAO,gBAAe,aAAY,KAAI,eAAc,SAAQ;AAAA,YAC/E,oBAAC,YAAO,IAAG,KAAI,IAAG,KAAI,GAAE,OAAM,MAAK,gBAAe;AAAA,aACpD;AAAA;AAAA,QAED,aAAa,aAAa;AAAA;AAAA;AAAA,EAC7B;AAEJ;","names":[]}
|
|
@@ -0,0 +1,316 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
"use strict";
|
|
3
|
+
"use client";
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
21
|
+
|
|
22
|
+
// src/portfolio/components/primitives/SVGChart.tsx
|
|
23
|
+
var SVGChart_exports = {};
|
|
24
|
+
__export(SVGChart_exports, {
|
|
25
|
+
default: () => SVGChart
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(SVGChart_exports);
|
|
28
|
+
var import_react = require("react");
|
|
29
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
30
|
+
var EASE_IN_OUT = "cubic-bezier(0.455, 0.03, 0.515, 0.955)";
|
|
31
|
+
var EASE_BACK = "cubic-bezier(0.34, 1.56, 0.64, 1)";
|
|
32
|
+
function buildPath(points, close, plotHeight, plotBottom) {
|
|
33
|
+
if (points.length < 2) return "";
|
|
34
|
+
let d = `M ${points[0].x} ${points[0].y}`;
|
|
35
|
+
for (let i = 0; i < points.length - 1; i++) {
|
|
36
|
+
const p0 = points[Math.max(i - 1, 0)];
|
|
37
|
+
const p1 = points[i];
|
|
38
|
+
const p2 = points[i + 1];
|
|
39
|
+
const p3 = points[Math.min(i + 2, points.length - 1)];
|
|
40
|
+
const cp1x = p1.x + (p2.x - p0.x) / 6;
|
|
41
|
+
const cp1y = p1.y + (p2.y - p0.y) / 6;
|
|
42
|
+
const cp2x = p2.x - (p3.x - p1.x) / 6;
|
|
43
|
+
const cp2y = p2.y - (p3.y - p1.y) / 6;
|
|
44
|
+
d += ` C ${cp1x} ${cp1y}, ${cp2x} ${cp2y}, ${p2.x} ${p2.y}`;
|
|
45
|
+
}
|
|
46
|
+
if (close) {
|
|
47
|
+
const lastX = points[points.length - 1].x;
|
|
48
|
+
const firstX = points[0].x;
|
|
49
|
+
d += ` L ${lastX} ${plotBottom} L ${firstX} ${plotBottom} Z`;
|
|
50
|
+
}
|
|
51
|
+
return d;
|
|
52
|
+
}
|
|
53
|
+
function SVGChart({
|
|
54
|
+
dataPoints,
|
|
55
|
+
width: propWidth,
|
|
56
|
+
height: propHeight,
|
|
57
|
+
className = "",
|
|
58
|
+
color = "var(--sk-primary, #6366f1)",
|
|
59
|
+
showArea = true,
|
|
60
|
+
animateOnScroll = true
|
|
61
|
+
}) {
|
|
62
|
+
const containerRef = (0, import_react.useRef)(null);
|
|
63
|
+
const pathRef = (0, import_react.useRef)(null);
|
|
64
|
+
const areaRef = (0, import_react.useRef)(null);
|
|
65
|
+
const dotsRef = (0, import_react.useRef)(null);
|
|
66
|
+
const [dimensions, setDimensions] = (0, import_react.useState)({ width: propWidth || 600, height: propHeight || 300 });
|
|
67
|
+
const [tooltip, setTooltip] = (0, import_react.useState)(null);
|
|
68
|
+
(0, import_react.useEffect)(() => {
|
|
69
|
+
if (propWidth && propHeight) return;
|
|
70
|
+
const container = containerRef.current;
|
|
71
|
+
if (!container) return;
|
|
72
|
+
const update = () => {
|
|
73
|
+
const rect = container.getBoundingClientRect();
|
|
74
|
+
setDimensions({
|
|
75
|
+
width: propWidth || Math.round(rect.width),
|
|
76
|
+
height: propHeight || Math.round(rect.width * 0.5)
|
|
77
|
+
});
|
|
78
|
+
};
|
|
79
|
+
update();
|
|
80
|
+
const ro = new ResizeObserver(update);
|
|
81
|
+
ro.observe(container);
|
|
82
|
+
return () => ro.disconnect();
|
|
83
|
+
}, [propWidth, propHeight]);
|
|
84
|
+
const { width, height } = dimensions;
|
|
85
|
+
const padding = { top: 20, right: 20, bottom: 40, left: 50 };
|
|
86
|
+
const plotWidth = width - padding.left - padding.right;
|
|
87
|
+
const plotHeight = height - padding.top - padding.bottom;
|
|
88
|
+
const { points, yMin, yMax, yGridLines } = (0, import_react.useMemo)(() => {
|
|
89
|
+
if (dataPoints.length === 0) return { points: [], yMin: 0, yMax: 100, yGridLines: [] };
|
|
90
|
+
const values = dataPoints.map((d) => d.value);
|
|
91
|
+
const rawMin = Math.min(...values);
|
|
92
|
+
const rawMax = Math.max(...values);
|
|
93
|
+
const range = rawMax - rawMin || 1;
|
|
94
|
+
const yMin2 = rawMin - range * 0.1;
|
|
95
|
+
const yMax2 = rawMax + range * 0.1;
|
|
96
|
+
const pts = dataPoints.map((d, i) => ({
|
|
97
|
+
x: padding.left + i / (dataPoints.length - 1) * plotWidth,
|
|
98
|
+
y: padding.top + plotHeight - (d.value - yMin2) / (yMax2 - yMin2) * plotHeight
|
|
99
|
+
}));
|
|
100
|
+
const gridCount = 5;
|
|
101
|
+
const yGridLines2 = Array.from({ length: gridCount }, (_, i) => {
|
|
102
|
+
const val = yMin2 + (yMax2 - yMin2) / (gridCount - 1) * i;
|
|
103
|
+
const y = padding.top + plotHeight - (val - yMin2) / (yMax2 - yMin2) * plotHeight;
|
|
104
|
+
return { val, y };
|
|
105
|
+
});
|
|
106
|
+
return { points: pts, yMin: yMin2, yMax: yMax2, yGridLines: yGridLines2 };
|
|
107
|
+
}, [dataPoints, plotWidth, plotHeight, padding.left, padding.top]);
|
|
108
|
+
const linePath = (0, import_react.useMemo)(
|
|
109
|
+
() => buildPath(points, false, plotHeight, padding.top + plotHeight),
|
|
110
|
+
[points, plotHeight, padding.top]
|
|
111
|
+
);
|
|
112
|
+
const areaPath = (0, import_react.useMemo)(
|
|
113
|
+
() => buildPath(points, true, plotHeight, padding.top + plotHeight),
|
|
114
|
+
[points, plotHeight, padding.top]
|
|
115
|
+
);
|
|
116
|
+
(0, import_react.useEffect)(() => {
|
|
117
|
+
const container = containerRef.current;
|
|
118
|
+
const path = pathRef.current;
|
|
119
|
+
const area = areaRef.current;
|
|
120
|
+
const dotsGroup = dotsRef.current;
|
|
121
|
+
if (!container || !path) return;
|
|
122
|
+
const dots = dotsGroup ? Array.from(dotsGroup.children) : [];
|
|
123
|
+
const showFinal = () => {
|
|
124
|
+
path.style.strokeDashoffset = "0";
|
|
125
|
+
if (area) area.style.opacity = "1";
|
|
126
|
+
for (const dot of dots) {
|
|
127
|
+
dot.style.transform = "scale(1)";
|
|
128
|
+
dot.style.opacity = "1";
|
|
129
|
+
}
|
|
130
|
+
};
|
|
131
|
+
const prefersReducedMotion = window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
132
|
+
if (prefersReducedMotion || !animateOnScroll) {
|
|
133
|
+
showFinal();
|
|
134
|
+
return;
|
|
135
|
+
}
|
|
136
|
+
const rect = container.getBoundingClientRect();
|
|
137
|
+
if (rect.top < window.innerHeight && rect.bottom > 0) {
|
|
138
|
+
showFinal();
|
|
139
|
+
return;
|
|
140
|
+
}
|
|
141
|
+
const pathLength = path.getTotalLength();
|
|
142
|
+
path.style.strokeDasharray = `${pathLength}`;
|
|
143
|
+
path.style.strokeDashoffset = `${pathLength}`;
|
|
144
|
+
if (area) area.style.opacity = "0";
|
|
145
|
+
for (const dot of dots) {
|
|
146
|
+
dot.style.transformBox = "fill-box";
|
|
147
|
+
dot.style.transformOrigin = "center";
|
|
148
|
+
dot.style.transform = "scale(0)";
|
|
149
|
+
dot.style.opacity = "0";
|
|
150
|
+
}
|
|
151
|
+
const io = new IntersectionObserver(
|
|
152
|
+
([entry]) => {
|
|
153
|
+
if (!entry.isIntersecting) return;
|
|
154
|
+
path.style.transition = `stroke-dashoffset 1.2s ${EASE_IN_OUT}`;
|
|
155
|
+
path.style.strokeDashoffset = "0";
|
|
156
|
+
if (area) {
|
|
157
|
+
area.style.transition = "opacity 0.6s ease-in 0.6s";
|
|
158
|
+
area.style.opacity = "1";
|
|
159
|
+
}
|
|
160
|
+
dots.forEach((dot, i) => {
|
|
161
|
+
const dotDelay = 0.8 + i * 0.06;
|
|
162
|
+
dot.style.transition = `transform 0.3s ${EASE_BACK} ${dotDelay}s, opacity 0.3s ${EASE_BACK} ${dotDelay}s`;
|
|
163
|
+
dot.style.transform = "scale(1)";
|
|
164
|
+
dot.style.opacity = "1";
|
|
165
|
+
});
|
|
166
|
+
io.disconnect();
|
|
167
|
+
},
|
|
168
|
+
{ rootMargin: "0px 0px -20% 0px" }
|
|
169
|
+
// ≈ 'top 80%' trigger start
|
|
170
|
+
);
|
|
171
|
+
io.observe(container);
|
|
172
|
+
return () => {
|
|
173
|
+
io.disconnect();
|
|
174
|
+
path.style.strokeDasharray = "";
|
|
175
|
+
path.style.strokeDashoffset = "";
|
|
176
|
+
path.style.transition = "";
|
|
177
|
+
if (area) {
|
|
178
|
+
area.style.transition = "";
|
|
179
|
+
area.style.opacity = "";
|
|
180
|
+
}
|
|
181
|
+
for (const dot of dots) {
|
|
182
|
+
dot.style.transformBox = "";
|
|
183
|
+
dot.style.transformOrigin = "";
|
|
184
|
+
dot.style.transition = "";
|
|
185
|
+
dot.style.transform = "";
|
|
186
|
+
dot.style.opacity = "";
|
|
187
|
+
}
|
|
188
|
+
};
|
|
189
|
+
}, [linePath, animateOnScroll]);
|
|
190
|
+
const handleDotEnter = (0, import_react.useCallback)(
|
|
191
|
+
(i) => {
|
|
192
|
+
setTooltip({
|
|
193
|
+
x: points[i].x,
|
|
194
|
+
y: points[i].y,
|
|
195
|
+
value: dataPoints[i].value,
|
|
196
|
+
label: dataPoints[i].label
|
|
197
|
+
});
|
|
198
|
+
},
|
|
199
|
+
[points, dataPoints]
|
|
200
|
+
);
|
|
201
|
+
const handleDotLeave = (0, import_react.useCallback)(() => setTooltip(null), []);
|
|
202
|
+
const gradientId = `area-gradient-${Math.random().toString(36).slice(2, 8)}`;
|
|
203
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { ref: containerRef, className, style: { width: propWidth || "100%" }, children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("svg", { width, height, viewBox: `0 0 ${width} ${height}`, children: [
|
|
204
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("linearGradient", { id: gradientId, x1: "0", y1: "0", x2: "0", y2: "1", children: [
|
|
205
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("stop", { offset: "0%", stopColor: color, stopOpacity: 0.15 }),
|
|
206
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("stop", { offset: "100%", stopColor: color, stopOpacity: 0 })
|
|
207
|
+
] }) }),
|
|
208
|
+
yGridLines.map((line, i) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("g", { children: [
|
|
209
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
210
|
+
"line",
|
|
211
|
+
{
|
|
212
|
+
x1: padding.left,
|
|
213
|
+
y1: line.y,
|
|
214
|
+
x2: width - padding.right,
|
|
215
|
+
y2: line.y,
|
|
216
|
+
stroke: "rgba(255,255,255,0.08)",
|
|
217
|
+
strokeWidth: 1
|
|
218
|
+
}
|
|
219
|
+
),
|
|
220
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
221
|
+
"text",
|
|
222
|
+
{
|
|
223
|
+
x: padding.left - 8,
|
|
224
|
+
y: line.y + 4,
|
|
225
|
+
textAnchor: "end",
|
|
226
|
+
fill: "rgba(255,255,255,0.4)",
|
|
227
|
+
fontSize: 11,
|
|
228
|
+
children: Math.round(line.val)
|
|
229
|
+
}
|
|
230
|
+
)
|
|
231
|
+
] }, i)),
|
|
232
|
+
dataPoints.map((d, i) => {
|
|
233
|
+
const x = padding.left + i / (dataPoints.length - 1) * plotWidth;
|
|
234
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
235
|
+
"text",
|
|
236
|
+
{
|
|
237
|
+
x,
|
|
238
|
+
y: height - 8,
|
|
239
|
+
textAnchor: "middle",
|
|
240
|
+
fill: "rgba(255,255,255,0.4)",
|
|
241
|
+
fontSize: 11,
|
|
242
|
+
children: d.label
|
|
243
|
+
},
|
|
244
|
+
i
|
|
245
|
+
);
|
|
246
|
+
}),
|
|
247
|
+
showArea && areaPath && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
248
|
+
"path",
|
|
249
|
+
{
|
|
250
|
+
ref: areaRef,
|
|
251
|
+
d: areaPath,
|
|
252
|
+
fill: `url(#${gradientId})`,
|
|
253
|
+
opacity: 0
|
|
254
|
+
}
|
|
255
|
+
),
|
|
256
|
+
linePath && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
257
|
+
"path",
|
|
258
|
+
{
|
|
259
|
+
ref: pathRef,
|
|
260
|
+
d: linePath,
|
|
261
|
+
fill: "none",
|
|
262
|
+
stroke: color,
|
|
263
|
+
strokeWidth: 2.5,
|
|
264
|
+
strokeLinecap: "round",
|
|
265
|
+
strokeLinejoin: "round"
|
|
266
|
+
}
|
|
267
|
+
),
|
|
268
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("g", { ref: dotsRef, children: points.map((pt, i) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
269
|
+
"circle",
|
|
270
|
+
{
|
|
271
|
+
cx: pt.x,
|
|
272
|
+
cy: pt.y,
|
|
273
|
+
r: 5,
|
|
274
|
+
fill: color,
|
|
275
|
+
stroke: "white",
|
|
276
|
+
strokeWidth: 2,
|
|
277
|
+
style: { cursor: "pointer", opacity: 0 },
|
|
278
|
+
onMouseEnter: () => handleDotEnter(i),
|
|
279
|
+
onMouseLeave: handleDotLeave
|
|
280
|
+
},
|
|
281
|
+
i
|
|
282
|
+
)) }),
|
|
283
|
+
tooltip && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("g", { children: [
|
|
284
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
285
|
+
"rect",
|
|
286
|
+
{
|
|
287
|
+
x: tooltip.x - 40,
|
|
288
|
+
y: tooltip.y - 42,
|
|
289
|
+
width: 80,
|
|
290
|
+
height: 28,
|
|
291
|
+
rx: 6,
|
|
292
|
+
fill: "rgba(0,0,0,0.85)",
|
|
293
|
+
stroke: "rgba(255,255,255,0.15)",
|
|
294
|
+
strokeWidth: 1
|
|
295
|
+
}
|
|
296
|
+
),
|
|
297
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
298
|
+
"text",
|
|
299
|
+
{
|
|
300
|
+
x: tooltip.x,
|
|
301
|
+
y: tooltip.y - 24,
|
|
302
|
+
textAnchor: "middle",
|
|
303
|
+
fill: "white",
|
|
304
|
+
fontSize: 12,
|
|
305
|
+
fontWeight: 600,
|
|
306
|
+
children: [
|
|
307
|
+
tooltip.label,
|
|
308
|
+
": ",
|
|
309
|
+
tooltip.value
|
|
310
|
+
]
|
|
311
|
+
}
|
|
312
|
+
)
|
|
313
|
+
] })
|
|
314
|
+
] }) });
|
|
315
|
+
}
|
|
316
|
+
//# sourceMappingURL=SVGChart.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/portfolio/components/primitives/SVGChart.tsx"],"sourcesContent":["'use client';\n\nimport React, { useRef, useEffect, useState, useMemo, useCallback } from 'react';\n\ninterface DataPoint {\n label: string;\n value: number;\n}\n\ninterface SVGChartProps {\n dataPoints: DataPoint[];\n width?: number;\n height?: number;\n className?: string;\n color?: string;\n showArea?: boolean;\n animateOnScroll?: boolean;\n}\n\nconst EASE_IN_OUT = 'cubic-bezier(0.455, 0.03, 0.515, 0.955)'; // ≈ power2.inOut\nconst EASE_BACK = 'cubic-bezier(0.34, 1.56, 0.64, 1)'; // ≈ back.out(2) — overshoot pop\n\n// Build a smooth bezier path through data points\nfunction buildPath(\n points: Array<{ x: number; y: number }>,\n close: boolean,\n plotHeight: number,\n plotBottom: number,\n): string {\n if (points.length < 2) return '';\n\n let d = `M ${points[0].x} ${points[0].y}`;\n\n for (let i = 0; i < points.length - 1; i++) {\n const p0 = points[Math.max(i - 1, 0)];\n const p1 = points[i];\n const p2 = points[i + 1];\n const p3 = points[Math.min(i + 2, points.length - 1)];\n\n const cp1x = p1.x + (p2.x - p0.x) / 6;\n const cp1y = p1.y + (p2.y - p0.y) / 6;\n const cp2x = p2.x - (p3.x - p1.x) / 6;\n const cp2y = p2.y - (p3.y - p1.y) / 6;\n\n d += ` C ${cp1x} ${cp1y}, ${cp2x} ${cp2y}, ${p2.x} ${p2.y}`;\n }\n\n if (close) {\n const lastX = points[points.length - 1].x;\n const firstX = points[0].x;\n d += ` L ${lastX} ${plotBottom} L ${firstX} ${plotBottom} Z`;\n }\n\n return d;\n}\n\nexport default function SVGChart({\n dataPoints,\n width: propWidth,\n height: propHeight,\n className = '',\n color = 'var(--sk-primary, #6366f1)',\n showArea = true,\n animateOnScroll = true,\n}: SVGChartProps) {\n const containerRef = useRef<HTMLDivElement>(null);\n const pathRef = useRef<SVGPathElement>(null);\n const areaRef = useRef<SVGPathElement>(null);\n const dotsRef = useRef<SVGGElement>(null);\n const [dimensions, setDimensions] = useState({ width: propWidth || 600, height: propHeight || 300 });\n const [tooltip, setTooltip] = useState<{ x: number; y: number; value: number; label: string } | null>(null);\n\n // Responsive resize\n useEffect(() => {\n if (propWidth && propHeight) return; // Fixed dimensions\n\n const container = containerRef.current;\n if (!container) return;\n\n const update = () => {\n const rect = container.getBoundingClientRect();\n setDimensions({\n width: propWidth || Math.round(rect.width),\n height: propHeight || Math.round(rect.width * 0.5),\n });\n };\n\n update();\n const ro = new ResizeObserver(update);\n ro.observe(container);\n return () => ro.disconnect();\n }, [propWidth, propHeight]);\n\n const { width, height } = dimensions;\n const padding = { top: 20, right: 20, bottom: 40, left: 50 };\n const plotWidth = width - padding.left - padding.right;\n const plotHeight = height - padding.top - padding.bottom;\n\n // Compute plotted points and grid\n const { points, yMin, yMax, yGridLines } = useMemo(() => {\n if (dataPoints.length === 0) return { points: [], yMin: 0, yMax: 100, yGridLines: [] };\n\n const values = dataPoints.map((d) => d.value);\n const rawMin = Math.min(...values);\n const rawMax = Math.max(...values);\n const range = rawMax - rawMin || 1;\n const yMin = rawMin - range * 0.1;\n const yMax = rawMax + range * 0.1;\n\n const pts = dataPoints.map((d, i) => ({\n x: padding.left + (i / (dataPoints.length - 1)) * plotWidth,\n y: padding.top + plotHeight - ((d.value - yMin) / (yMax - yMin)) * plotHeight,\n }));\n\n // Y-axis grid lines (5 lines)\n const gridCount = 5;\n const yGridLines = Array.from({ length: gridCount }, (_, i) => {\n const val = yMin + ((yMax - yMin) / (gridCount - 1)) * i;\n const y = padding.top + plotHeight - ((val - yMin) / (yMax - yMin)) * plotHeight;\n return { val, y };\n });\n\n return { points: pts, yMin, yMax, yGridLines };\n }, [dataPoints, plotWidth, plotHeight, padding.left, padding.top]);\n\n const linePath = useMemo(\n () => buildPath(points, false, plotHeight, padding.top + plotHeight),\n [points, plotHeight, padding.top],\n );\n const areaPath = useMemo(\n () => buildPath(points, true, plotHeight, padding.top + plotHeight),\n [points, plotHeight, padding.top],\n );\n\n // Scroll-triggered draw — IntersectionObserver + CSS transitions. The line\n // retracts via stroke-dashoffset, the area fades in behind it, then the\n // dots pop with a staggered overshoot (same 1.2s / 0.6s / 0.3s timeline).\n useEffect(() => {\n const container = containerRef.current;\n const path = pathRef.current;\n const area = areaRef.current;\n const dotsGroup = dotsRef.current;\n if (!container || !path) return;\n\n const dots = dotsGroup ? (Array.from(dotsGroup.children) as SVGElement[]) : [];\n\n // Final drawn state — the markup ships the area and dots transparent, so\n // this is what reduced motion, animateOnScroll={false}, and charts already\n // in the viewport at hydration get immediately (never re-hide, house LCP rule).\n const showFinal = () => {\n path.style.strokeDashoffset = '0';\n if (area) area.style.opacity = '1';\n for (const dot of dots) {\n dot.style.transform = 'scale(1)';\n dot.style.opacity = '1';\n }\n };\n\n const prefersReducedMotion = window.matchMedia('(prefers-reduced-motion: reduce)').matches;\n if (prefersReducedMotion || !animateOnScroll) {\n showFinal();\n return;\n }\n\n const rect = container.getBoundingClientRect();\n if (rect.top < window.innerHeight && rect.bottom > 0) {\n showFinal();\n return;\n }\n\n // Hidden state: line fully retracted, dots collapsed onto their points.\n const pathLength = path.getTotalLength();\n path.style.strokeDasharray = `${pathLength}`;\n path.style.strokeDashoffset = `${pathLength}`;\n if (area) area.style.opacity = '0';\n for (const dot of dots) {\n // fill-box makes scale() pop each dot from its own center.\n dot.style.transformBox = 'fill-box';\n dot.style.transformOrigin = 'center';\n dot.style.transform = 'scale(0)';\n dot.style.opacity = '0';\n }\n\n const io = new IntersectionObserver(\n ([entry]) => {\n if (!entry.isIntersecting) return;\n path.style.transition = `stroke-dashoffset 1.2s ${EASE_IN_OUT}`;\n path.style.strokeDashoffset = '0';\n if (area) {\n area.style.transition = 'opacity 0.6s ease-in 0.6s'; // ≈ power1.in\n area.style.opacity = '1';\n }\n dots.forEach((dot, i) => {\n const dotDelay = 0.8 + i * 0.06;\n dot.style.transition = `transform 0.3s ${EASE_BACK} ${dotDelay}s, opacity 0.3s ${EASE_BACK} ${dotDelay}s`;\n dot.style.transform = 'scale(1)';\n dot.style.opacity = '1';\n });\n io.disconnect();\n },\n { rootMargin: '0px 0px -20% 0px' }, // ≈ 'top 80%' trigger start\n );\n io.observe(container);\n\n return () => {\n io.disconnect();\n path.style.strokeDasharray = '';\n path.style.strokeDashoffset = '';\n path.style.transition = '';\n if (area) {\n area.style.transition = '';\n area.style.opacity = '';\n }\n for (const dot of dots) {\n dot.style.transformBox = '';\n dot.style.transformOrigin = '';\n dot.style.transition = '';\n dot.style.transform = '';\n dot.style.opacity = '';\n }\n };\n }, [linePath, animateOnScroll]);\n\n const handleDotEnter = useCallback(\n (i: number) => {\n setTooltip({\n x: points[i].x,\n y: points[i].y,\n value: dataPoints[i].value,\n label: dataPoints[i].label,\n });\n },\n [points, dataPoints],\n );\n\n const handleDotLeave = useCallback(() => setTooltip(null), []);\n\n const gradientId = `area-gradient-${Math.random().toString(36).slice(2, 8)}`;\n\n return (\n <div ref={containerRef} className={className} style={{ width: propWidth || '100%' }}>\n <svg width={width} height={height} viewBox={`0 0 ${width} ${height}`}>\n <defs>\n <linearGradient id={gradientId} x1=\"0\" y1=\"0\" x2=\"0\" y2=\"1\">\n <stop offset=\"0%\" stopColor={color} stopOpacity={0.15} />\n <stop offset=\"100%\" stopColor={color} stopOpacity={0} />\n </linearGradient>\n </defs>\n\n {/* Y-axis grid lines */}\n {yGridLines.map((line, i) => (\n <g key={i}>\n <line\n x1={padding.left}\n y1={line.y}\n x2={width - padding.right}\n y2={line.y}\n stroke=\"rgba(255,255,255,0.08)\"\n strokeWidth={1}\n />\n <text\n x={padding.left - 8}\n y={line.y + 4}\n textAnchor=\"end\"\n fill=\"rgba(255,255,255,0.4)\"\n fontSize={11}\n >\n {Math.round(line.val)}\n </text>\n </g>\n ))}\n\n {/* X-axis labels */}\n {dataPoints.map((d, i) => {\n const x = padding.left + (i / (dataPoints.length - 1)) * plotWidth;\n return (\n <text\n key={i}\n x={x}\n y={height - 8}\n textAnchor=\"middle\"\n fill=\"rgba(255,255,255,0.4)\"\n fontSize={11}\n >\n {d.label}\n </text>\n );\n })}\n\n {/* Area fill */}\n {showArea && areaPath && (\n <path\n ref={areaRef}\n d={areaPath}\n fill={`url(#${gradientId})`}\n opacity={0}\n />\n )}\n\n {/* Line path */}\n {linePath && (\n <path\n ref={pathRef}\n d={linePath}\n fill=\"none\"\n stroke={color}\n strokeWidth={2.5}\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n )}\n\n {/* Data point dots */}\n <g ref={dotsRef}>\n {points.map((pt, i) => (\n <circle\n key={i}\n cx={pt.x}\n cy={pt.y}\n r={5}\n fill={color}\n stroke=\"white\"\n strokeWidth={2}\n style={{ cursor: 'pointer', opacity: 0 }}\n onMouseEnter={() => handleDotEnter(i)}\n onMouseLeave={handleDotLeave}\n />\n ))}\n </g>\n\n {/* Tooltip */}\n {tooltip && (\n <g>\n <rect\n x={tooltip.x - 40}\n y={tooltip.y - 42}\n width={80}\n height={28}\n rx={6}\n fill=\"rgba(0,0,0,0.85)\"\n stroke=\"rgba(255,255,255,0.15)\"\n strokeWidth={1}\n />\n <text\n x={tooltip.x}\n y={tooltip.y - 24}\n textAnchor=\"middle\"\n fill=\"white\"\n fontSize={12}\n fontWeight={600}\n >\n {tooltip.label}: {tooltip.value}\n </text>\n </g>\n )}\n </svg>\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,mBAAyE;AAiP/D;AAhOV,IAAM,cAAc;AACpB,IAAM,YAAY;AAGlB,SAAS,UACP,QACA,OACA,YACA,YACQ;AACR,MAAI,OAAO,SAAS,EAAG,QAAO;AAE9B,MAAI,IAAI,KAAK,OAAO,CAAC,EAAE,CAAC,IAAI,OAAO,CAAC,EAAE,CAAC;AAEvC,WAAS,IAAI,GAAG,IAAI,OAAO,SAAS,GAAG,KAAK;AAC1C,UAAM,KAAK,OAAO,KAAK,IAAI,IAAI,GAAG,CAAC,CAAC;AACpC,UAAM,KAAK,OAAO,CAAC;AACnB,UAAM,KAAK,OAAO,IAAI,CAAC;AACvB,UAAM,KAAK,OAAO,KAAK,IAAI,IAAI,GAAG,OAAO,SAAS,CAAC,CAAC;AAEpD,UAAM,OAAO,GAAG,KAAK,GAAG,IAAI,GAAG,KAAK;AACpC,UAAM,OAAO,GAAG,KAAK,GAAG,IAAI,GAAG,KAAK;AACpC,UAAM,OAAO,GAAG,KAAK,GAAG,IAAI,GAAG,KAAK;AACpC,UAAM,OAAO,GAAG,KAAK,GAAG,IAAI,GAAG,KAAK;AAEpC,SAAK,MAAM,IAAI,IAAI,IAAI,KAAK,IAAI,IAAI,IAAI,KAAK,GAAG,CAAC,IAAI,GAAG,CAAC;AAAA,EAC3D;AAEA,MAAI,OAAO;AACT,UAAM,QAAQ,OAAO,OAAO,SAAS,CAAC,EAAE;AACxC,UAAM,SAAS,OAAO,CAAC,EAAE;AACzB,SAAK,MAAM,KAAK,IAAI,UAAU,MAAM,MAAM,IAAI,UAAU;AAAA,EAC1D;AAEA,SAAO;AACT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GAAG;AAAA,QACP,IAAI,GAAG;AAAA,QACP,GAAG;AAAA,QACH,MAAM;AAAA,QACN,QAAO;AAAA,QACP,aAAa;AAAA,QACb,OAAO,EAAE,QAAQ,WAAW,SAAS,EAAE;AAAA,QACvC,cAAc,MAAM,eAAe,CAAC;AAAA,QACpC,cAAc;AAAA;AAAA,MATT;AAAA,IAUP,CACD,GACH;AAAA,IAGC,WACC,6CAAC,OACC;AAAA;AAAA,QAAC;AAAA;AAAA,UACC,GAAG,QAAQ,IAAI;AAAA,UACf,GAAG,QAAQ,IAAI;AAAA,UACf,OAAO;AAAA,UACP,QAAQ;AAAA,UACR,IAAI;AAAA,UACJ,MAAK;AAAA,UACL,QAAO;AAAA,UACP,aAAa;AAAA;AAAA,MACf;AAAA,MACA;AAAA,QAAC;AAAA;AAAA,UACC,GAAG,QAAQ;AAAA,UACX,GAAG,QAAQ,IAAI;AAAA,UACf,YAAW;AAAA,UACX,MAAK;AAAA,UACL,UAAU;AAAA,UACV,YAAY;AAAA,UAEX;AAAA,oBAAQ;AAAA,YAAM;AAAA,YAAG,QAAQ;AAAA;AAAA;AAAA,MAC5B;AAAA,OACF;AAAA,KAEJ,GACF;AAEJ;","names":["yMin","yMax","yGridLines"]}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
interface DataPoint {
|
|
4
|
+
label: string;
|
|
5
|
+
value: number;
|
|
6
|
+
}
|
|
7
|
+
interface SVGChartProps {
|
|
8
|
+
dataPoints: DataPoint[];
|
|
9
|
+
width?: number;
|
|
10
|
+
height?: number;
|
|
11
|
+
className?: string;
|
|
12
|
+
color?: string;
|
|
13
|
+
showArea?: boolean;
|
|
14
|
+
animateOnScroll?: boolean;
|
|
15
|
+
}
|
|
16
|
+
declare function SVGChart({ dataPoints, width: propWidth, height: propHeight, className, color, showArea, animateOnScroll, }: SVGChartProps): React.JSX.Element;
|
|
17
|
+
|
|
18
|
+
export { SVGChart as default };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
interface DataPoint {
|
|
4
|
+
label: string;
|
|
5
|
+
value: number;
|
|
6
|
+
}
|
|
7
|
+
interface SVGChartProps {
|
|
8
|
+
dataPoints: DataPoint[];
|
|
9
|
+
width?: number;
|
|
10
|
+
height?: number;
|
|
11
|
+
className?: string;
|
|
12
|
+
color?: string;
|
|
13
|
+
showArea?: boolean;
|
|
14
|
+
animateOnScroll?: boolean;
|
|
15
|
+
}
|
|
16
|
+
declare function SVGChart({ dataPoints, width: propWidth, height: propHeight, className, color, showArea, animateOnScroll, }: SVGChartProps): React.JSX.Element;
|
|
17
|
+
|
|
18
|
+
export { SVGChart as default };
|