@mova-ui/react 0.1.0 → 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 +70 -21
- package/bin/mova.mjs +38 -12
- package/dist/catalog/components/AnimatedButton.d.ts +9 -0
- package/dist/catalog/components/AnimatedButton.js +346 -0
- package/dist/catalog/components/IconSwap.d.ts +6 -0
- package/dist/catalog/components/IconSwap.js +9 -0
- package/dist/catalog/components/InViewRender.d.ts +4 -0
- package/dist/catalog/components/InViewRender.js +14 -0
- package/dist/catalog/components/PageTransitionCard.d.ts +9 -0
- package/dist/catalog/components/PageTransitionCard.js +110 -0
- package/dist/catalog/components/PageTransitionModal.d.ts +10 -0
- package/dist/catalog/components/PageTransitionModal.js +180 -0
- package/dist/catalog/components/PageTransitionOverlay.d.ts +9 -0
- package/dist/catalog/components/PageTransitionOverlay.js +7 -0
- package/dist/catalog/components/cards/CardArc5.d.ts +14 -0
- package/dist/catalog/components/cards/CardArc5.js +76 -0
- package/dist/catalog/components/cards/CardArc7.d.ts +14 -0
- package/dist/catalog/components/cards/CardArc7.js +77 -0
- package/dist/catalog/components/cards/CardCarousel.d.ts +12 -0
- package/dist/catalog/components/cards/CardCarousel.js +139 -0
- package/dist/catalog/components/cards/CardCascadeStagger.d.ts +9 -0
- package/dist/catalog/components/cards/CardCascadeStagger.js +64 -0
- package/dist/catalog/components/cards/CardCornerFan.d.ts +12 -0
- package/dist/catalog/components/cards/CardCornerFan.js +66 -0
- package/dist/catalog/components/cards/CardCoverFlow.d.ts +12 -0
- package/dist/catalog/components/cards/CardCoverFlow.js +115 -0
- package/dist/catalog/components/cards/CardLinearSpread.d.ts +12 -0
- package/dist/catalog/components/cards/CardLinearSpread.js +62 -0
- package/dist/catalog/components/cards/CardLongArc5.d.ts +14 -0
- package/dist/catalog/components/cards/CardLongArc5.js +76 -0
- package/dist/catalog/components/cards/CardScatterSpread.d.ts +9 -0
- package/dist/catalog/components/cards/CardScatterSpread.js +69 -0
- package/dist/catalog/components/cards/CardStampArc.d.ts +14 -0
- package/dist/catalog/components/cards/CardStampArc.js +101 -0
- package/dist/catalog/components/cards/CardTimeMachine.d.ts +8 -0
- package/dist/catalog/components/cards/CardTimeMachine.js +182 -0
- package/dist/catalog/components/cards/CardWheelFan.d.ts +9 -0
- package/dist/catalog/components/cards/CardWheelFan.js +68 -0
- package/dist/catalog/components/cards/FocusBlur.d.ts +14 -0
- package/dist/catalog/components/cards/FocusBlur.js +7 -0
- package/dist/catalog/components/css-animations/Dock.d.ts +6 -0
- package/dist/catalog/components/css-animations/Dock.js +93 -0
- package/dist/catalog/components/css-animations/FocusBlur.d.ts +4 -0
- package/dist/catalog/components/css-animations/FocusBlur.js +35 -0
- package/dist/catalog/components/css-animations/FrequencySelector.d.ts +6 -0
- package/dist/catalog/components/css-animations/FrequencySelector.js +100 -0
- package/dist/catalog/components/css-animations/MediaBetweenText.d.ts +34 -0
- package/dist/catalog/components/css-animations/MediaBetweenText.js +125 -0
- package/dist/catalog/components/css-animations/ScrambleHover.d.ts +16 -0
- package/dist/catalog/components/css-animations/ScrambleHover.js +101 -0
- package/dist/catalog/components/css-animations/TabBar.d.ts +6 -0
- package/dist/catalog/components/css-animations/TabBar.js +57 -0
- package/dist/catalog/components/css-animations/whimsical/AppleLoaders.d.ts +9 -0
- package/dist/catalog/components/css-animations/whimsical/AppleLoaders.js +57 -0
- package/dist/catalog/components/css-animations/whimsical/Area1.d.ts +7 -0
- package/dist/catalog/components/css-animations/whimsical/Area1.js +56 -0
- package/dist/catalog/components/css-animations/whimsical/Area6.d.ts +7 -0
- package/dist/catalog/components/css-animations/whimsical/Area6.js +53 -0
- package/dist/catalog/components/css-animations/whimsical/Bookmark.d.ts +7 -0
- package/dist/catalog/components/css-animations/whimsical/Bookmark.js +183 -0
- package/dist/catalog/components/css-animations/whimsical/ConceptTrios1.d.ts +37 -0
- package/dist/catalog/components/css-animations/whimsical/ConceptTrios1.js +253 -0
- package/dist/catalog/components/css-animations/whimsical/ConceptTrios2.d.ts +37 -0
- package/dist/catalog/components/css-animations/whimsical/ConceptTrios2.js +237 -0
- package/dist/catalog/components/css-animations/whimsical/ConceptTrios3.d.ts +73 -0
- package/dist/catalog/components/css-animations/whimsical/ConceptTrios3.js +441 -0
- package/dist/catalog/components/css-animations/whimsical/Curtain.d.ts +7 -0
- package/dist/catalog/components/css-animations/whimsical/Curtain.js +155 -0
- package/dist/catalog/components/css-animations/whimsical/Kakikaki.d.ts +7 -0
- package/dist/catalog/components/css-animations/whimsical/Kakikaki.js +67 -0
- package/dist/catalog/components/css-animations/whimsical/KineticTensionCapsule.d.ts +7 -0
- package/dist/catalog/components/css-animations/whimsical/KineticTensionCapsule.js +82 -0
- package/dist/catalog/components/css-animations/whimsical/MatrixGridLoader.d.ts +5 -0
- package/dist/catalog/components/css-animations/whimsical/MatrixGridLoader.js +88 -0
- package/dist/catalog/components/css-animations/whimsical/RedesignedPhysicsTrios.d.ts +103 -0
- package/dist/catalog/components/css-animations/whimsical/RedesignedPhysicsTrios.js +607 -0
- package/dist/catalog/components/css-animations/whimsical/Tissue.d.ts +7 -0
- package/dist/catalog/components/css-animations/whimsical/Tissue.js +111 -0
- package/dist/catalog/components/css-animations/whimsical/Tsumiki.d.ts +8 -0
- package/dist/catalog/components/css-animations/whimsical/Tsumiki.js +83 -0
- package/dist/catalog/components/css-animations/whimsical/WhimsicalVariations.d.ts +37 -0
- package/dist/catalog/components/css-animations/whimsical/WhimsicalVariations.js +325 -0
- package/dist/catalog/components/css-animations/whimsical/YuiPhysicsExperiments.d.ts +37 -0
- package/dist/catalog/components/css-animations/whimsical/YuiPhysicsExperiments.js +247 -0
- package/dist/catalog/components/css-animations/yui-components/RedesignedUiTrios.d.ts +19 -0
- package/dist/catalog/components/css-animations/yui-components/RedesignedUiTrios.js +174 -0
- package/dist/catalog/components/css-animations/yui-components/UiKitTrios.d.ts +19 -0
- package/dist/catalog/components/css-animations/yui-components/UiKitTrios.js +147 -0
- package/dist/catalog/components/css-animations/yui-components/YuiUiKit1.d.ts +29 -0
- package/dist/catalog/components/css-animations/yui-components/YuiUiKit1.js +317 -0
- package/dist/catalog/components/css-animations/yui-components/YuiUiKit2.d.ts +34 -0
- package/dist/catalog/components/css-animations/yui-components/YuiUiKit2.js +356 -0
- package/dist/catalog/components/dither-charts/ActivityHeatmap.d.ts +5 -0
- package/dist/catalog/components/dither-charts/ActivityHeatmap.js +8 -0
- package/dist/catalog/components/dither-charts/ChartCard.d.ts +2 -0
- package/dist/catalog/components/dither-charts/ChartCard.js +8 -0
- package/dist/catalog/components/dither-charts/DeviceUsageChart.d.ts +5 -0
- package/dist/catalog/components/dither-charts/DeviceUsageChart.js +8 -0
- package/dist/catalog/components/dither-charts/DitherBarChart.d.ts +5 -0
- package/dist/catalog/components/dither-charts/DitherBarChart.js +148 -0
- package/dist/catalog/components/dither-charts/DitherBook.d.ts +23 -0
- package/dist/catalog/components/dither-charts/DitherBook.js +352 -0
- package/dist/catalog/components/dither-charts/DitherChartsGrid.d.ts +9 -0
- package/dist/catalog/components/dither-charts/DitherChartsGrid.js +108 -0
- package/dist/catalog/components/dither-charts/DitherDonutChart.d.ts +7 -0
- package/dist/catalog/components/dither-charts/DitherDonutChart.js +8 -0
- package/dist/catalog/components/dither-charts/DitherFunnelChart.d.ts +5 -0
- package/dist/catalog/components/dither-charts/DitherFunnelChart.js +8 -0
- package/dist/catalog/components/dither-charts/DitherGrowthChart.d.ts +7 -0
- package/dist/catalog/components/dither-charts/DitherGrowthChart.js +8 -0
- package/dist/catalog/components/dither-charts/DitherHeatmapGrid.d.ts +5 -0
- package/dist/catalog/components/dither-charts/DitherHeatmapGrid.js +115 -0
- package/dist/catalog/components/dither-charts/DitherRadialChart.d.ts +5 -0
- package/dist/catalog/components/dither-charts/DitherRadialChart.js +114 -0
- package/dist/catalog/components/dither-charts/DitherScatterChart.d.ts +5 -0
- package/dist/catalog/components/dither-charts/DitherScatterChart.js +151 -0
- package/dist/catalog/components/dither-charts/DitherSparklineMatrix.d.ts +5 -0
- package/dist/catalog/components/dither-charts/DitherSparklineMatrix.js +89 -0
- package/dist/catalog/components/dither-charts/DitherStackedChart.d.ts +7 -0
- package/dist/catalog/components/dither-charts/DitherStackedChart.js +8 -0
- package/dist/catalog/components/dither-charts/MembersGrowthChart.d.ts +2 -0
- package/dist/catalog/components/dither-charts/MembersGrowthChart.js +8 -0
- package/dist/catalog/components/dither-charts/PaymentsChart.d.ts +2 -0
- package/dist/catalog/components/dither-charts/PaymentsChart.js +8 -0
- package/dist/catalog/components/dither-charts/RevenueLineChart.d.ts +5 -0
- package/dist/catalog/components/dither-charts/RevenueLineChart.js +8 -0
- package/dist/catalog/components/dither-charts/ServerGauge.d.ts +5 -0
- package/dist/catalog/components/dither-charts/ServerGauge.js +8 -0
- package/dist/catalog/components/dither-charts/SimpleCompExtracted.d.ts +6 -0
- package/dist/catalog/components/dither-charts/SimpleCompExtracted.js +423 -0
- package/dist/catalog/components/dither-charts/StorageUsageChart.d.ts +5 -0
- package/dist/catalog/components/dither-charts/StorageUsageChart.js +8 -0
- package/dist/catalog/components/dither-charts/TrafficBubble.d.ts +5 -0
- package/dist/catalog/components/dither-charts/TrafficBubble.js +8 -0
- package/dist/catalog/components/dither-charts/UptimeChart.d.ts +5 -0
- package/dist/catalog/components/dither-charts/UptimeChart.js +8 -0
- package/dist/catalog/components/dither-charts/lib/ditherPatterns.d.ts +7 -0
- package/dist/catalog/components/dither-charts/lib/ditherPatterns.js +107 -0
- package/dist/catalog/components/dither-charts/lib/recharts-legend.d.ts +8 -0
- package/dist/catalog/components/dither-charts/lib/recharts-legend.js +40 -0
- package/dist/catalog/components/dither-charts/lib/recharts-tooltip.d.ts +10 -0
- package/dist/catalog/components/dither-charts/lib/recharts-tooltip.js +7 -0
- package/dist/catalog/components/dither-charts/lib/utils.d.ts +3 -0
- package/dist/catalog/components/dither-charts/lib/utils.js +7 -0
- package/dist/catalog/components/forms/AnimatedFormElement.d.ts +8 -0
- package/dist/catalog/components/forms/AnimatedFormElement.js +412 -0
- package/dist/catalog/components/metrics/AnimatedMetricCard.d.ts +8 -0
- package/dist/catalog/components/metrics/AnimatedMetricCard.js +1049 -0
- package/dist/catalog/components/metrics/Budget.d.ts +1 -0
- package/dist/catalog/components/metrics/Budget.js +35 -0
- package/dist/catalog/components/metrics/CacheStatsCard.d.ts +1 -0
- package/dist/catalog/components/metrics/CacheStatsCard.js +88 -0
- package/dist/catalog/components/metrics/CourseProgressCard.d.ts +1 -0
- package/dist/catalog/components/metrics/CourseProgressCard.js +86 -0
- package/dist/catalog/components/metrics/CreditScoreCards.d.ts +1 -0
- package/dist/catalog/components/metrics/CreditScoreCards.js +139 -0
- package/dist/catalog/components/metrics/FeedbackCard.d.ts +1 -0
- package/dist/catalog/components/metrics/FeedbackCard.js +59 -0
- package/dist/catalog/components/metrics/FinanceDashboard.d.ts +1 -0
- package/dist/catalog/components/metrics/FinanceDashboard.js +164 -0
- package/dist/catalog/components/metrics/Growth.d.ts +1 -0
- package/dist/catalog/components/metrics/Growth.js +40 -0
- package/dist/catalog/components/metrics/GrowthCalendar.d.ts +1 -0
- package/dist/catalog/components/metrics/GrowthCalendar.js +87 -0
- package/dist/catalog/components/metrics/HealthCards.d.ts +1 -0
- package/dist/catalog/components/metrics/HealthCards.js +244 -0
- package/dist/catalog/components/metrics/MarketingCards.d.ts +1 -0
- package/dist/catalog/components/metrics/MarketingCards.js +70 -0
- package/dist/catalog/components/metrics/NetworkTelemetry.d.ts +1 -0
- package/dist/catalog/components/metrics/NetworkTelemetry.js +198 -0
- package/dist/catalog/components/metrics/NoiseCards.d.ts +1 -0
- package/dist/catalog/components/metrics/NoiseCards.js +61 -0
- package/dist/catalog/components/metrics/OverviewChart.d.ts +1 -0
- package/dist/catalog/components/metrics/OverviewChart.js +69 -0
- package/dist/catalog/components/metrics/ProgressIndicator.d.ts +1 -0
- package/dist/catalog/components/metrics/ProgressIndicator.js +35 -0
- package/dist/catalog/components/metrics/PromptsCard.d.ts +1 -0
- package/dist/catalog/components/metrics/PromptsCard.js +29 -0
- package/dist/catalog/components/metrics/RealTimeAlerts.d.ts +1 -0
- package/dist/catalog/components/metrics/RealTimeAlerts.js +64 -0
- package/dist/catalog/components/metrics/RunningStatsCard.d.ts +1 -0
- package/dist/catalog/components/metrics/RunningStatsCard.js +41 -0
- package/dist/catalog/components/metrics/SalesDashboard.d.ts +1 -0
- package/dist/catalog/components/metrics/SalesDashboard.js +156 -0
- package/dist/catalog/components/metrics/SalesOverview.d.ts +1 -0
- package/dist/catalog/components/metrics/SalesOverview.js +71 -0
- package/dist/catalog/components/metrics/SavingsCards.d.ts +1 -0
- package/dist/catalog/components/metrics/SavingsCards.js +118 -0
- package/dist/catalog/components/metrics/ServerPerformance.d.ts +1 -0
- package/dist/catalog/components/metrics/ServerPerformance.js +26 -0
- package/dist/catalog/components/metrics/StatusCards.d.ts +1 -0
- package/dist/catalog/components/metrics/StatusCards.js +165 -0
- package/dist/catalog/components/metrics/StockChartCard.d.ts +1 -0
- package/dist/catalog/components/metrics/StockChartCard.js +122 -0
- package/dist/catalog/components/metrics/SystemMetricsCard.d.ts +1 -0
- package/dist/catalog/components/metrics/SystemMetricsCard.js +129 -0
- package/dist/catalog/components/metrics/TimerCard.d.ts +1 -0
- package/dist/catalog/components/metrics/TimerCard.js +35 -0
- package/dist/catalog/components/metrics/UserMetrics.d.ts +1 -0
- package/dist/catalog/components/metrics/UserMetrics.js +128 -0
- package/dist/catalog/components/metrics/UsersChartCard.d.ts +1 -0
- package/dist/catalog/components/metrics/UsersChartCard.js +111 -0
- package/dist/catalog/components/metrics/VisitorsChartCard.d.ts +1 -0
- package/dist/catalog/components/metrics/VisitorsChartCard.js +178 -0
- package/dist/catalog/components/mono-charts/GitHubActivity.d.ts +30 -0
- package/dist/catalog/components/mono-charts/GitHubActivity.js +547 -0
- package/dist/catalog/components/mono-charts/MonoActivityHeatmap.d.ts +14 -0
- package/dist/catalog/components/mono-charts/MonoActivityHeatmap.js +170 -0
- package/dist/catalog/components/mono-charts/MonoRoundedAreaChart.d.ts +7 -0
- package/dist/catalog/components/mono-charts/MonoRoundedAreaChart.js +107 -0
- package/dist/catalog/components/mono-charts/MonoRoundedBarChart.d.ts +7 -0
- package/dist/catalog/components/mono-charts/MonoRoundedBarChart.js +121 -0
- package/dist/catalog/components/mono-charts/MonoRoundedBubbleChart.d.ts +7 -0
- package/dist/catalog/components/mono-charts/MonoRoundedBubbleChart.js +67 -0
- package/dist/catalog/components/mono-charts/MonoRoundedBulletChart.d.ts +7 -0
- package/dist/catalog/components/mono-charts/MonoRoundedBulletChart.js +64 -0
- package/dist/catalog/components/mono-charts/MonoRoundedCandlestickChart.d.ts +7 -0
- package/dist/catalog/components/mono-charts/MonoRoundedCandlestickChart.js +76 -0
- package/dist/catalog/components/mono-charts/MonoRoundedComposedChart.d.ts +7 -0
- package/dist/catalog/components/mono-charts/MonoRoundedComposedChart.js +117 -0
- package/dist/catalog/components/mono-charts/MonoRoundedDonutChart.d.ts +7 -0
- package/dist/catalog/components/mono-charts/MonoRoundedDonutChart.js +97 -0
- package/dist/catalog/components/mono-charts/MonoRoundedFunnelChart.d.ts +7 -0
- package/dist/catalog/components/mono-charts/MonoRoundedFunnelChart.js +65 -0
- package/dist/catalog/components/mono-charts/MonoRoundedGaugeArc.d.ts +7 -0
- package/dist/catalog/components/mono-charts/MonoRoundedGaugeArc.js +64 -0
- package/dist/catalog/components/mono-charts/MonoRoundedHeatmapChart.d.ts +7 -0
- package/dist/catalog/components/mono-charts/MonoRoundedHeatmapChart.js +56 -0
- package/dist/catalog/components/mono-charts/MonoRoundedKpiCardChart.d.ts +7 -0
- package/dist/catalog/components/mono-charts/MonoRoundedKpiCardChart.js +61 -0
- package/dist/catalog/components/mono-charts/MonoRoundedLineChart.d.ts +7 -0
- package/dist/catalog/components/mono-charts/MonoRoundedLineChart.js +142 -0
- package/dist/catalog/components/mono-charts/MonoRoundedMeterChart.d.ts +7 -0
- package/dist/catalog/components/mono-charts/MonoRoundedMeterChart.js +68 -0
- package/dist/catalog/components/mono-charts/MonoRoundedPolarChart.d.ts +7 -0
- package/dist/catalog/components/mono-charts/MonoRoundedPolarChart.js +67 -0
- package/dist/catalog/components/mono-charts/MonoRoundedPyramidChart.d.ts +7 -0
- package/dist/catalog/components/mono-charts/MonoRoundedPyramidChart.js +52 -0
- package/dist/catalog/components/mono-charts/MonoRoundedRadarChart.d.ts +7 -0
- package/dist/catalog/components/mono-charts/MonoRoundedRadarChart.js +70 -0
- package/dist/catalog/components/mono-charts/MonoRoundedRadialBarGroup.d.ts +7 -0
- package/dist/catalog/components/mono-charts/MonoRoundedRadialBarGroup.js +69 -0
- package/dist/catalog/components/mono-charts/MonoRoundedRadialGaugeChart.d.ts +7 -0
- package/dist/catalog/components/mono-charts/MonoRoundedRadialGaugeChart.js +68 -0
- package/dist/catalog/components/mono-charts/MonoRoundedRangeChart.d.ts +7 -0
- package/dist/catalog/components/mono-charts/MonoRoundedRangeChart.js +77 -0
- package/dist/catalog/components/mono-charts/MonoRoundedSankeyChart.d.ts +7 -0
- package/dist/catalog/components/mono-charts/MonoRoundedSankeyChart.js +66 -0
- package/dist/catalog/components/mono-charts/MonoRoundedScatterChart.d.ts +7 -0
- package/dist/catalog/components/mono-charts/MonoRoundedScatterChart.js +82 -0
- package/dist/catalog/components/mono-charts/MonoRoundedSparklineChart.d.ts +7 -0
- package/dist/catalog/components/mono-charts/MonoRoundedSparklineChart.js +73 -0
- package/dist/catalog/components/mono-charts/MonoRoundedStackedBarChart.d.ts +7 -0
- package/dist/catalog/components/mono-charts/MonoRoundedStackedBarChart.js +63 -0
- package/dist/catalog/components/mono-charts/MonoRoundedStepChart.d.ts +7 -0
- package/dist/catalog/components/mono-charts/MonoRoundedStepChart.js +72 -0
- package/dist/catalog/components/mono-charts/MonoRoundedStreamChart.d.ts +7 -0
- package/dist/catalog/components/mono-charts/MonoRoundedStreamChart.js +98 -0
- package/dist/catalog/components/mono-charts/MonoRoundedTreemapChart.d.ts +7 -0
- package/dist/catalog/components/mono-charts/MonoRoundedTreemapChart.js +56 -0
- package/dist/catalog/components/mono-charts/MonoRoundedWaterfallChart.d.ts +7 -0
- package/dist/catalog/components/mono-charts/MonoRoundedWaterfallChart.js +67 -0
- package/dist/catalog/components/simple-comp/ActivityHeatmap.d.ts +5 -0
- package/dist/catalog/components/simple-comp/ActivityHeatmap.js +7 -0
- package/dist/catalog/components/simple-comp/ChartCard.d.ts +2 -0
- package/dist/catalog/components/simple-comp/ChartCard.js +8 -0
- package/dist/catalog/components/simple-comp/DeviceUsageChart.d.ts +5 -0
- package/dist/catalog/components/simple-comp/DeviceUsageChart.js +7 -0
- package/dist/catalog/components/simple-comp/DitherBarChart.d.ts +5 -0
- package/dist/catalog/components/simple-comp/DitherBarChart.js +148 -0
- package/dist/catalog/components/simple-comp/DitherBook.d.ts +23 -0
- package/dist/catalog/components/simple-comp/DitherBook.js +352 -0
- package/dist/catalog/components/simple-comp/DitherChartsGrid.d.ts +9 -0
- package/dist/catalog/components/simple-comp/DitherChartsGrid.js +107 -0
- package/dist/catalog/components/simple-comp/DitherDonutChart.d.ts +7 -0
- package/dist/catalog/components/simple-comp/DitherDonutChart.js +7 -0
- package/dist/catalog/components/simple-comp/DitherFunnelChart.d.ts +5 -0
- package/dist/catalog/components/simple-comp/DitherFunnelChart.js +7 -0
- package/dist/catalog/components/simple-comp/DitherGrowthChart.d.ts +7 -0
- package/dist/catalog/components/simple-comp/DitherGrowthChart.js +7 -0
- package/dist/catalog/components/simple-comp/DitherHeatmapGrid.d.ts +5 -0
- package/dist/catalog/components/simple-comp/DitherHeatmapGrid.js +115 -0
- package/dist/catalog/components/simple-comp/DitherRadialChart.d.ts +5 -0
- package/dist/catalog/components/simple-comp/DitherRadialChart.js +114 -0
- package/dist/catalog/components/simple-comp/DitherScatterChart.d.ts +5 -0
- package/dist/catalog/components/simple-comp/DitherScatterChart.js +151 -0
- package/dist/catalog/components/simple-comp/DitherSparklineMatrix.d.ts +5 -0
- package/dist/catalog/components/simple-comp/DitherSparklineMatrix.js +89 -0
- package/dist/catalog/components/simple-comp/DitherStackedChart.d.ts +7 -0
- package/dist/catalog/components/simple-comp/DitherStackedChart.js +7 -0
- package/dist/catalog/components/simple-comp/MembersGrowthChart.d.ts +2 -0
- package/dist/catalog/components/simple-comp/MembersGrowthChart.js +8 -0
- package/dist/catalog/components/simple-comp/PaymentsChart.d.ts +2 -0
- package/dist/catalog/components/simple-comp/PaymentsChart.js +8 -0
- package/dist/catalog/components/simple-comp/RevenueLineChart.d.ts +5 -0
- package/dist/catalog/components/simple-comp/RevenueLineChart.js +7 -0
- package/dist/catalog/components/simple-comp/ServerGauge.d.ts +5 -0
- package/dist/catalog/components/simple-comp/ServerGauge.js +7 -0
- package/dist/catalog/components/simple-comp/SimpleCompExtracted.d.ts +6 -0
- package/dist/catalog/components/simple-comp/SimpleCompExtracted.js +423 -0
- package/dist/catalog/components/simple-comp/StorageUsageChart.d.ts +5 -0
- package/dist/catalog/components/simple-comp/StorageUsageChart.js +7 -0
- package/dist/catalog/components/simple-comp/TrafficBubble.d.ts +5 -0
- package/dist/catalog/components/simple-comp/TrafficBubble.js +7 -0
- package/dist/catalog/components/simple-comp/UptimeChart.d.ts +5 -0
- package/dist/catalog/components/simple-comp/UptimeChart.js +7 -0
- package/dist/catalog/components/simple-comp/lib/utils.d.ts +3 -0
- package/dist/catalog/components/simple-comp/lib/utils.js +7 -0
- package/dist/catalog/components/text/AnimatedText.d.ts +8 -0
- package/dist/catalog/components/text/AnimatedText.js +554 -0
- package/dist/catalog/components/toggles/AnimatedToggle.d.ts +8 -0
- package/dist/catalog/components/toggles/AnimatedToggle.js +243 -0
- package/dist/catalog/data/buttons.d.ts +14 -0
- package/dist/catalog/data/buttons.js +94 -0
- package/dist/catalog/data/ditherCharts.d.ts +12 -0
- package/dist/catalog/data/ditherCharts.js +11 -0
- package/dist/catalog/data/formElements.d.ts +9 -0
- package/dist/catalog/data/formElements.js +117 -0
- package/dist/catalog/data/installCommand.d.ts +3 -0
- package/dist/catalog/data/installCommand.js +10 -0
- package/dist/catalog/data/metrics.d.ts +10 -0
- package/dist/catalog/data/metrics.js +136 -0
- package/dist/catalog/data/supportedRegistryIds.d.ts +1 -0
- package/dist/catalog/data/supportedRegistryIds.js +7 -0
- package/dist/catalog/data/textAnimations.d.ts +10 -0
- package/dist/catalog/data/textAnimations.js +65 -0
- package/dist/catalog/data/toggles.d.ts +9 -0
- package/dist/catalog/data/toggles.js +96 -0
- package/dist/catalog/data/transitions.d.ts +11 -0
- package/dist/catalog/data/transitions.js +198 -0
- package/dist/catalog/hooks/useCanvasSetup.d.ts +25 -0
- package/dist/catalog/hooks/useCanvasSetup.js +7 -0
- package/dist/catalog/hooks/useIsMobile.d.ts +5 -0
- package/dist/catalog/hooks/useIsMobile.js +7 -0
- package/dist/catalog/hooks/useLoopFlg.d.ts +1 -0
- package/dist/catalog/hooks/useLoopFlg.js +7 -0
- package/dist/catalog/hooks/useWebHaptics.d.ts +4 -0
- package/dist/catalog/hooks/useWebHaptics.js +7 -0
- package/dist/catalog/utils/cn.d.ts +1 -0
- package/dist/catalog/utils/cn.js +7 -0
- package/dist/catalog-chunks/chunk-3QX6CASP.js +93 -0
- package/dist/catalog-chunks/chunk-3TYA5TCG.js +34 -0
- package/dist/catalog-chunks/chunk-4M7HZE4Z.js +107 -0
- package/dist/catalog-chunks/chunk-62CFYJEA.js +141 -0
- package/dist/catalog-chunks/chunk-7GU353UA.js +261 -0
- package/dist/catalog-chunks/chunk-7XF4PVBJ.js +85 -0
- package/dist/catalog-chunks/chunk-AJLUWL56.js +99 -0
- package/dist/catalog-chunks/chunk-B64DVBSK.js +105 -0
- package/dist/catalog-chunks/chunk-BSR45QIS.js +349 -0
- package/dist/catalog-chunks/chunk-E2GLS5WF.js +325 -0
- package/dist/catalog-chunks/chunk-EC4R54F3.js +35 -0
- package/dist/catalog-chunks/chunk-F47LIDB6.js +19 -0
- package/dist/catalog-chunks/chunk-FXF53HPE.js +476 -0
- package/dist/catalog-chunks/chunk-GDCQNKP7.js +45 -0
- package/dist/catalog-chunks/chunk-I4BVACNZ.js +349 -0
- package/dist/catalog-chunks/chunk-I5MYV6VF.js +248 -0
- package/dist/catalog-chunks/chunk-JSEX6PVP.js +84 -0
- package/dist/catalog-chunks/chunk-KN7YEZTH.js +294 -0
- package/dist/catalog-chunks/chunk-KRXJK3FG.js +19 -0
- package/dist/catalog-chunks/chunk-KTP5OAIN.js +17 -0
- package/dist/catalog-chunks/chunk-KYYXENHF.js +105 -0
- package/dist/catalog-chunks/chunk-M2O2SNWE.js +132 -0
- package/dist/catalog-chunks/chunk-NITEDAMY.js +325 -0
- package/dist/catalog-chunks/chunk-OTFAZXKB.js +8 -0
- package/dist/catalog-chunks/chunk-OVOLUMYF.js +452 -0
- package/dist/catalog-chunks/chunk-OWYADZUR.js +156 -0
- package/dist/catalog-chunks/chunk-PD47DK6W.js +100 -0
- package/dist/catalog-chunks/chunk-QITBAUBH.js +101 -0
- package/dist/catalog-chunks/chunk-QXWREUPI.js +56 -0
- package/dist/catalog-chunks/chunk-RKATUMDL.js +244 -0
- package/dist/catalog-chunks/chunk-S7UYABQK.js +99 -0
- package/dist/catalog-chunks/chunk-SIL53FHG.js +169 -0
- package/dist/catalog-chunks/chunk-SWPGAN45.js +28 -0
- package/dist/catalog-chunks/chunk-VCDBPAAS.js +85 -0
- package/dist/catalog-chunks/chunk-VMGI6CMO.js +15 -0
- package/dist/catalog-chunks/chunk-W7ZMAKCC.js +53 -0
- package/dist/catalog-chunks/chunk-XDDKOCZ7.js +89 -0
- package/dist/catalog-chunks/chunk-YGLQ5K3F.js +452 -0
- package/dist/catalog-chunks/chunk-YHU4BQDL.js +292 -0
- package/dist/catalog-chunks/chunk-ZCRXHCGS.js +108 -0
- package/dist/catalog-chunks/chunk-ZUQZVT7M.js +87 -0
- package/dist/catalog-chunks/chunk-ZXDZMNRZ.js +267 -0
- package/dist/index.d.ts +27 -0
- package/dist/index.js +6237 -879
- package/dist/styles.css +1 -1
- package/dist/ui/ai/ai-approval-card.d.ts +28 -0
- package/dist/ui/ai/ai-code-block.d.ts +33 -0
- package/dist/ui/ai/ai-context-meter.d.ts +14 -0
- package/dist/ui/ai/ai-fine-tune-card.d.ts +43 -0
- package/dist/ui/ai/ai-prompt-bar.d.ts +25 -0
- package/dist/ui/ai/ai-sidebar-nav.d.ts +26 -0
- package/dist/ui/ai/ai-sources.d.ts +16 -0
- package/dist/ui/ai/ai-suggestions.d.ts +12 -0
- package/dist/ui/ai/ai-task-list.d.ts +15 -0
- package/dist/ui/ai/ai-tool-call.d.ts +13 -0
- package/dist/ui/ai/rudder-issue-board.d.ts +21 -0
- package/dist/ui/animated-sidebar.d.ts +9 -0
- package/dist/ui/hover/inset-button.d.ts +16 -0
- package/dist/ui/loading/analyzing-image.d.ts +2 -0
- package/dist/ui/loading/border-trail-loading.d.ts +9 -0
- package/dist/ui/loading/wandering-eyes.d.ts +10 -0
- package/dist/ui/patterns/animated-tags.d.ts +14 -0
- package/dist/ui/patterns/expanding-icon-tabs.d.ts +8 -0
- package/dist/ui/patterns/gooey-popover.d.ts +24 -0
- package/package.json +79 -14
- package/registry/1.json +19 -0
- package/registry/10.json +19 -0
- package/registry/11.json +19 -0
- package/registry/12.json +19 -0
- package/registry/13.json +19 -0
- package/registry/14.json +19 -0
- package/registry/15.json +19 -0
- package/registry/16.json +19 -0
- package/registry/17.json +19 -0
- package/registry/18.json +19 -0
- package/registry/19.json +19 -0
- package/registry/2.json +19 -0
- package/registry/20.json +19 -0
- package/registry/21.json +19 -0
- package/registry/22.json +19 -0
- package/registry/23.json +19 -0
- package/registry/24.json +19 -0
- package/registry/25.json +19 -0
- package/registry/26.json +19 -0
- package/registry/27.json +19 -0
- package/registry/28.json +19 -0
- package/registry/29.json +19 -0
- package/registry/3.json +19 -0
- package/registry/30.json +19 -0
- package/registry/31.json +19 -0
- package/registry/32.json +19 -0
- package/registry/33.json +19 -0
- package/registry/34.json +19 -0
- package/registry/35.json +19 -0
- package/registry/36.json +16 -0
- package/registry/37.json +16 -0
- package/registry/4.json +19 -0
- package/registry/5.json +19 -0
- package/registry/6.json +19 -0
- package/registry/7.json +19 -0
- package/registry/8.json +19 -0
- package/registry/9.json +19 -0
- package/registry/LICENSE.third-party +542 -0
- package/registry/ab-segmented-tabs.json +18 -0
- package/registry/accordion-blind.json +15 -0
- package/registry/accordion-loader.json +9 -0
- package/registry/ai-approval-card.json +17 -0
- package/registry/ai-code-block.json +19 -0
- package/registry/ai-context-meter.json +19 -0
- package/registry/ai-fine-tune-card.json +19 -0
- package/registry/ai-prompt-bar.json +17 -0
- package/registry/ai-sidebar-nav.json +17 -0
- package/registry/ai-sources.json +20 -0
- package/registry/ai-suggestions.json +19 -0
- package/registry/ai-task-list.json +20 -0
- package/registry/ai-tool-call.json +20 -0
- package/registry/analyzing-image.json +17 -0
- package/registry/animated-sidebar.json +19 -0
- package/registry/animated-tags.json +19 -0
- package/registry/app-icon-load.json +9 -0
- package/registry/apple-breathe.json +9 -0
- package/registry/apple-equalizer.json +9 -0
- package/registry/apple-icon-morph.json +9 -0
- package/registry/apple-pulse-dots.json +9 -0
- package/registry/apple-scale-pulse.json +9 -0
- package/registry/apple-sound-wave.json +9 -0
- package/registry/apple-text-reveal.json +9 -0
- package/registry/apple-unlock.json +9 -0
- package/registry/arc-tracer.json +9 -0
- package/registry/bar-cascade.json +9 -0
- package/registry/bar-sweep.json +9 -0
- package/registry/blur-text.json +9 -0
- package/registry/blur-up-char.json +19 -0
- package/registry/blur-up-word.json +19 -0
- package/registry/bobbing-dots.json +9 -0
- package/registry/bookmark-corner-peel.json +15 -0
- package/registry/bookmark-save-pill.json +18 -0
- package/registry/bookmark-toggle.json +19 -0
- package/registry/border-trail-loading.json +17 -0
- package/registry/bounce-dots.json +9 -0
- package/registry/bounce-in-char.json +19 -0
- package/registry/bouncing-bars.json +9 -0
- package/registry/bouncing-dots.json +9 -0
- package/registry/bouncing-lines.json +9 -0
- package/registry/bouncing-square.json +9 -0
- package/registry/breathe-ring.json +9 -0
- package/registry/breathing-glow.json +9 -0
- package/registry/breathing-square.json +9 -0
- package/registry/btn-1.json +19 -0
- package/registry/btn-10.json +19 -0
- package/registry/btn-11.json +19 -0
- package/registry/btn-12.json +19 -0
- package/registry/btn-13.json +19 -0
- package/registry/btn-14.json +19 -0
- package/registry/btn-15.json +19 -0
- package/registry/btn-16.json +19 -0
- package/registry/btn-17.json +19 -0
- package/registry/btn-18.json +19 -0
- package/registry/btn-19.json +19 -0
- package/registry/btn-2.json +19 -0
- package/registry/btn-20.json +19 -0
- package/registry/btn-21.json +19 -0
- package/registry/btn-22.json +19 -0
- package/registry/btn-23.json +19 -0
- package/registry/btn-24.json +19 -0
- package/registry/btn-25.json +19 -0
- package/registry/btn-26.json +19 -0
- package/registry/btn-27.json +19 -0
- package/registry/btn-28.json +19 -0
- package/registry/btn-29.json +19 -0
- package/registry/btn-3.json +19 -0
- package/registry/btn-30.json +19 -0
- package/registry/btn-31.json +19 -0
- package/registry/btn-32.json +19 -0
- package/registry/btn-33.json +19 -0
- package/registry/btn-34.json +19 -0
- package/registry/btn-35.json +19 -0
- package/registry/btn-36.json +16 -0
- package/registry/btn-37.json +16 -0
- package/registry/btn-4.json +19 -0
- package/registry/btn-5.json +19 -0
- package/registry/btn-6.json +19 -0
- package/registry/btn-7.json +19 -0
- package/registry/btn-8.json +19 -0
- package/registry/btn-9.json +19 -0
- package/registry/button-slide-arrow.json +19 -0
- package/registry/cacheable-bandwidth-cost.json +19 -0
- package/registry/card-arc-5.json +18 -0
- package/registry/card-arc-7.json +18 -0
- package/registry/card-carousel-mono.json +19 -0
- package/registry/card-carousel.json +19 -0
- package/registry/card-cascade-stagger.json +18 -0
- package/registry/card-corner-fan.json +18 -0
- package/registry/card-cover-flow-mono.json +19 -0
- package/registry/card-cover-flow.json +19 -0
- package/registry/card-deck-cascade.json +15 -0
- package/registry/card-glance-preview.json +18 -0
- package/registry/card-hover.json +9 -0
- package/registry/card-linear-spread.json +18 -0
- package/registry/card-long-arc-5.json +18 -0
- package/registry/card-scatter-spread.json +18 -0
- package/registry/card-stack-peel.json +15 -0
- package/registry/card-stamp-arc.json +18 -0
- package/registry/card-time-machine-mono.json +18 -0
- package/registry/card-time-machine.json +18 -0
- package/registry/card-wheel-fan.json +18 -0
- package/registry/category-select.json +18 -0
- package/registry/character-stagger.json +9 -0
- package/registry/checkbox-draw.json +19 -0
- package/registry/checkmark-draw.json +19 -0
- package/registry/circle-toggle.json +19 -0
- package/registry/circuit-trace-draw.json +15 -0
- package/registry/circular-bars.json +9 -0
- package/registry/circular-create-button.json +16 -0
- package/registry/classic-spinner.json +9 -0
- package/registry/classic-toggle.json +9 -0
- package/registry/clock-spinner.json +9 -0
- package/registry/comet-spinner.json +9 -0
- package/registry/compass-needle-deflect.json +15 -0
- package/registry/concentric-pulse.json +9 -0
- package/registry/concentric-ring.json +9 -0
- package/registry/concentric-squares.json +9 -0
- package/registry/context-menu.json +18 -0
- package/registry/conveyor-loop.json +9 -0
- package/registry/credit-score-barcode-meter.json +19 -0
- package/registry/cross-spinner.json +9 -0
- package/registry/cube-flip-spring.json +9 -0
- package/registry/cursor-trail.json +9 -0
- package/registry/dash-ring.json +9 -0
- package/registry/dashed-spiral.json +9 -0
- package/registry/date-position-selector.json +18 -0
- package/registry/dia-text-reveal.json +19 -0
- package/registry/diamond-grid.json +9 -0
- package/registry/diamond-rotate-spring.json +9 -0
- package/registry/dislike-toggle.json +19 -0
- package/registry/dither-book.json +19 -0
- package/registry/domino-cascade.json +15 -0
- package/registry/dot-spinner.json +9 -0
- package/registry/dots-ring.json +9 -0
- package/registry/double-bounce-toggle.json +19 -0
- package/registry/double-ring.json +9 -0
- package/registry/download-icons.json +18 -0
- package/registry/drop-dot.json +9 -0
- package/registry/drop-in-char.json +19 -0
- package/registry/droplet-squish.json +15 -0
- package/registry/dual-arc.json +9 -0
- package/registry/dual-magnet-dipole.json +15 -0
- package/registry/dynamic-island.json +9 -0
- package/registry/elastic-bars.json +9 -0
- package/registry/elastic-square.json +9 -0
- package/registry/elastic-tag-snap.json +15 -0
- package/registry/error-shake.json +19 -0
- package/registry/expanding-cross.json +9 -0
- package/registry/expanding-icon-tabs.json +17 -0
- package/registry/face-id-scan.json +9 -0
- package/registry/fade-arc.json +9 -0
- package/registry/fade-dots.json +9 -0
- package/registry/fade-down.json +9 -0
- package/registry/fade-in-char.json +19 -0
- package/registry/fade-in-text.json +19 -0
- package/registry/fade-in-word.json +19 -0
- package/registry/fade-in.json +9 -0
- package/registry/fade-up.json +9 -0
- package/registry/file-upload-dropzone.json +19 -0
- package/registry/filter-tag-pill.json +18 -0
- package/registry/flip-square.json +9 -0
- package/registry/flip-x-char.json +19 -0
- package/registry/flip-y-char.json +19 -0
- package/registry/float-char.json +19 -0
- package/registry/float-word.json +19 -0
- package/registry/floating-diamonds.json +9 -0
- package/registry/floating-label-input.json +19 -0
- package/registry/fluid-bars.json +9 -0
- package/registry/fluid-diamond.json +9 -0
- package/registry/fluid-dot-orbit.json +9 -0
- package/registry/fluid-skeleton.json +9 -0
- package/registry/focus-blur.json +18 -0
- package/registry/form-submit-button.json +19 -0
- package/registry/french-doors-3d.json +18 -0
- package/registry/gear-tooth-step.json +15 -0
- package/registry/gears.json +9 -0
- package/registry/gelatin-wobble.json +15 -0
- package/registry/geometric-iris-shutter.json +15 -0
- package/registry/glassmorphic-card.json +9 -0
- package/registry/glow-button.json +9 -0
- package/registry/glow-text.json +19 -0
- package/registry/gooey-popover.json +18 -0
- package/registry/gradient-arc.json +9 -0
- package/registry/gradient-shimmer.json +18 -0
- package/registry/grid-dots.json +9 -0
- package/registry/haptic-ring.json +9 -0
- package/registry/heartbeat.json +9 -0
- package/registry/hex-lattice-draw.json +15 -0
- package/registry/hexagon-spinner.json +9 -0
- package/registry/hourglass.json +9 -0
- package/registry/hover-lift-char.json +19 -0
- package/registry/hover-lift-word.json +19 -0
- package/registry/hover-link-card.json +18 -0
- package/registry/hover-scale-char.json +19 -0
- package/registry/hover-scale-word.json +19 -0
- package/registry/inertia-skid-stop.json +15 -0
- package/registry/infinity-path.json +9 -0
- package/registry/input-focus-glow.json +19 -0
- package/registry/inset-action-button.json +16 -0
- package/registry/inset-button.json +17 -0
- package/registry/intersecting-rings.json +9 -0
- package/registry/ios-spinner.json +9 -0
- package/registry/kinetic-metronome-tick.json +15 -0
- package/registry/kinetic-tension-capsule.json +15 -0
- package/registry/light-dark-morph.json +18 -0
- package/registry/like-toggle.json +19 -0
- package/registry/line-spinner.json +9 -0
- package/registry/liquid-dots.json +9 -0
- package/registry/mac-terminal.json +9 -0
- package/registry/magnetic-button.json +9 -0
- package/registry/magnetic-disks.json +15 -0
- package/registry/magnetic-dots.json +9 -0
- package/registry/magnetic-slide-btn.json +18 -0
- package/registry/manifest.json +11258 -0
- package/registry/matrix-grid-loader.json +15 -0
- package/registry/minimal-triangle.json +9 -0
- package/registry/modular-tile-snap.json +15 -0
- package/registry/mono-activity-blue.json +18 -0
- package/registry/mono-activity-green.json +18 -0
- package/registry/mono-activity-purple.json +18 -0
- package/registry/mono-heatmap.json +19 -0
- package/registry/mono-rounded-area.json +18 -0
- package/registry/mono-rounded-bar.json +18 -0
- package/registry/mono-rounded-bubble.json +18 -0
- package/registry/mono-rounded-bullet.json +16 -0
- package/registry/mono-rounded-candlestick.json +16 -0
- package/registry/mono-rounded-composed.json +18 -0
- package/registry/mono-rounded-donut.json +18 -0
- package/registry/mono-rounded-funnel.json +18 -0
- package/registry/mono-rounded-gauge-arc.json +18 -0
- package/registry/mono-rounded-heatmap.json +16 -0
- package/registry/mono-rounded-kpi.json +18 -0
- package/registry/mono-rounded-line.json +18 -0
- package/registry/mono-rounded-meter.json +18 -0
- package/registry/mono-rounded-polar.json +18 -0
- package/registry/mono-rounded-pyramid.json +16 -0
- package/registry/mono-rounded-radar.json +18 -0
- package/registry/mono-rounded-radial-gauge.json +18 -0
- package/registry/mono-rounded-radial-group.json +18 -0
- package/registry/mono-rounded-range.json +18 -0
- package/registry/mono-rounded-sankey.json +16 -0
- package/registry/mono-rounded-scatter.json +18 -0
- package/registry/mono-rounded-sparkline.json +18 -0
- package/registry/mono-rounded-stacked-bar.json +18 -0
- package/registry/mono-rounded-step.json +18 -0
- package/registry/mono-rounded-stream.json +18 -0
- package/registry/mono-rounded-treemap.json +16 -0
- package/registry/mono-rounded-waterfall.json +18 -0
- package/registry/mono-stock.json +19 -0
- package/registry/morph-action-pill.json +18 -0
- package/registry/morph-dot-ring.json +9 -0
- package/registry/morph-loader.json +9 -0
- package/registry/morph-toggle.json +19 -0
- package/registry/morphing-bars.json +9 -0
- package/registry/morphing-infinity.json +9 -0
- package/registry/morphing-ring.json +9 -0
- package/registry/morphing-shape.json +9 -0
- package/registry/mouse-follow.json +9 -0
- package/registry/multi-select-chips.json +19 -0
- package/registry/multi-tab-bar.json +18 -0
- package/registry/neon-sign-draw.json +15 -0
- package/registry/nested-orbital-gimbal.json +15 -0
- package/registry/network-telemetry-matrix.json +19 -0
- package/registry/newtons-cradle.json +9 -0
- package/registry/noise-decibel-level.json +19 -0
- package/registry/obsidian-liquid-wave.json +16 -0
- package/registry/offset-rings.json +9 -0
- package/registry/orbiting-circles.json +9 -0
- package/registry/orbiting-dot.json +9 -0
- package/registry/origami-envelope-unfold.json +15 -0
- package/registry/origami-shape.json +9 -0
- package/registry/otp-input.json +19 -0
- package/registry/overview-bar-scrubber-card.json +19 -0
- package/registry/page-transition.json +11 -0
- package/registry/page-turn-curl.json +15 -0
- package/registry/password-toggle.json +19 -0
- package/registry/pendulum-bubble-level.json +15 -0
- package/registry/pendulum.json +9 -0
- package/registry/perspective-flip-stage.json +18 -0
- package/registry/perspective-flip.json +18 -0
- package/registry/perspective-layout-switcher.json +18 -0
- package/registry/physics-dock.json +17 -0
- package/registry/pill-tabs.json +19 -0
- package/registry/plus-minus-toggle.json +18 -0
- package/registry/presets.json +9 -0
- package/registry/prism-block-stack.json +15 -0
- package/registry/progress-indicator-piano.json +19 -0
- package/registry/progress-indicator.json +9 -0
- package/registry/progress-stepper.json +18 -0
- package/registry/pulsating-dots.json +9 -0
- package/registry/pulse-char.json +19 -0
- package/registry/pulse-dot.json +9 -0
- package/registry/pulse-dots.json +9 -0
- package/registry/pulse-square.json +9 -0
- package/registry/pulse-word.json +19 -0
- package/registry/pulse.json +9 -0
- package/registry/pumping-heart.json +9 -0
- package/registry/pyramid-block-build.json +15 -0
- package/registry/radar-sweep.json +9 -0
- package/registry/radial-iris-mask.json +18 -0
- package/registry/radial-spinner.json +15 -0
- package/registry/radio-scale.json +19 -0
- package/registry/range-slider.json +19 -0
- package/registry/receipt-tape-print.json +15 -0
- package/registry/rectangle-toggle.json +19 -0
- package/registry/repost-toggle.json +19 -0
- package/registry/reveal-text.json +19 -0
- package/registry/ribbon-banner-slide.json +15 -0
- package/registry/ring-sweep.json +9 -0
- package/registry/ripple-effect.json +9 -0
- package/registry/rise-up-word.json +19 -0
- package/registry/roller-blind-drop.json +15 -0
- package/registry/rolling-tumble.json +15 -0
- package/registry/rotate-in-char.json +19 -0
- package/registry/rotating-cross.json +9 -0
- package/registry/rotating-louvers.json +15 -0
- package/registry/rotating-triangle.json +9 -0
- package/registry/rudder-issue-board.json +24 -0
- package/registry/sales-analytics-dual-bars.json +19 -0
- package/registry/sales-overview-radial-dashboard.json +19 -0
- package/registry/sales-target-segmented-arc.json +19 -0
- package/registry/scale-in-char.json +19 -0
- package/registry/scale-in-text.json +19 -0
- package/registry/scale-in-word.json +19 -0
- package/registry/scale-in.json +9 -0
- package/registry/scramble-text.json +18 -0
- package/registry/scroll-canvas-unroll.json +15 -0
- package/registry/scroll-reveal.json +9 -0
- package/registry/search-expand.json +19 -0
- package/registry/segmented-arc-meter.json +18 -0
- package/registry/segmented-link-stretch.json +15 -0
- package/registry/segmented-step-bar.json +18 -0
- package/registry/segmented-stepper-dots.json +18 -0
- package/registry/select-dropdown.json +19 -0
- package/registry/server-performance-step-bars.json +19 -0
- package/registry/shape-shift-grid.json +9 -0
- package/registry/shimmer-line.json +9 -0
- package/registry/shimmer-text.json +19 -0
- package/registry/shutter-slide.json +15 -0
- package/registry/shutter-step-slices.json +15 -0
- package/registry/siri-wave.json +9 -0
- package/registry/skeleton-loader.json +9 -0
- package/registry/skeleton.json +9 -0
- package/registry/skew-x-char.json +19 -0
- package/registry/slide-down-char.json +19 -0
- package/registry/slide-down-word.json +19 -0
- package/registry/slide-left-char.json +19 -0
- package/registry/slide-left.json +9 -0
- package/registry/slide-right-char.json +19 -0
- package/registry/slide-right.json +9 -0
- package/registry/slide-up-char.json +19 -0
- package/registry/slide-up-text.json +19 -0
- package/registry/slide-up-word.json +19 -0
- package/registry/sliding-bars.json +9 -0
- package/registry/slinky-coil.json +15 -0
- package/registry/smart-card-dispenser.json +15 -0
- package/registry/smooth-dot-shift.json +9 -0
- package/registry/smooth-ring.json +9 -0
- package/registry/smooth-rounded-square.json +9 -0
- package/registry/solid-switch.json +19 -0
- package/registry/spatial-door-portal.json +18 -0
- package/registry/spinning-squares.json +9 -0
- package/registry/spiral-spinner.json +9 -0
- package/registry/split-gate-reveal.json +15 -0
- package/registry/spotlight.json +9 -0
- package/registry/spring-bars.json +9 -0
- package/registry/spring-dot-matrix.json +9 -0
- package/registry/spring-hexagon.json +9 -0
- package/registry/spring-ring-expand.json +9 -0
- package/registry/spring-text-pop.json +9 -0
- package/registry/spring-text.json +19 -0
- package/registry/square-accordion.json +9 -0
- package/registry/square-grid.json +9 -0
- package/registry/square-snake.json +9 -0
- package/registry/square-spinner.json +9 -0
- package/registry/squash-sphere.json +15 -0
- package/registry/stacked-bar-pulse.json +9 -0
- package/registry/stagger-text.json +19 -0
- package/registry/staggered-glass-curtain.json +18 -0
- package/registry/sticky-note-peel.json +15 -0
- package/registry/sticky-reveal.json +9 -0
- package/registry/stretch-x-char.json +19 -0
- package/registry/stretch-y-char.json +19 -0
- package/registry/stroke-waveform.json +15 -0
- package/registry/submenu-flyout.json +18 -0
- package/registry/success-check.json +19 -0
- package/registry/sudden-brake.json +15 -0
- package/registry/swapping-dots.json +9 -0
- package/registry/swing-word.json +19 -0
- package/registry/swirling-spinner.json +9 -0
- package/registry/symmetric-wave.json +9 -0
- package/registry/terminal-loader.json +9 -0
- package/registry/text-blink.json +9 -0
- package/registry/text-dots.json +9 -0
- package/registry/text-morph.json +9 -0
- package/registry/text-reveal.json +9 -0
- package/registry/text-shimmer-wave.json +9 -0
- package/registry/text-shimmer.json +9 -0
- package/registry/textarea-auto-grow.json +19 -0
- package/registry/theme-toggle.json +19 -0
- package/registry/tilt-card.json +9 -0
- package/registry/timer-preparation-segmented.json +19 -0
- package/registry/tracking-in-text.json +19 -0
- package/registry/tracking-out-text.json +19 -0
- package/registry/trailing-dots.json +9 -0
- package/registry/triple-dot-spinner.json +9 -0
- package/registry/twin-orbit.json +9 -0
- package/registry/typewriter-text.json +18 -0
- package/registry/typing-indicator.json +9 -0
- package/registry/typing.json +9 -0
- package/registry/use-mouse-position.json +10 -0
- package/registry/use-reduced-motion.json +9 -0
- package/registry/use-scroll-progress.json +9 -0
- package/registry/use-stagger.json +9 -0
- package/registry/use-web-haptics.json +10 -0
- package/registry/users-growth-pill-progress.json +19 -0
- package/registry/utils.json +10 -0
- package/registry/vertical-wheel-counter.json +18 -0
- package/registry/views-hourly-wave-chart.json +19 -0
- package/registry/wandering-cube.json +9 -0
- package/registry/wandering-eyes.json +15 -0
- package/registry/watch-spinner.json +9 -0
- package/registry/wave-dots.json +9 -0
- package/registry/wave-physics-loader.json +9 -0
- package/registry/wave-reveal.json +18 -0
- package/registry/waveform-loader.json +9 -0
- package/registry/word-reveal.json +9 -0
- package/registry/zig-zag-pulse.json +9 -0
- package/registry/zoom-in-text.json +19 -0
- package/registry/zoom-in.json +9 -0
- package/registry/zoom-out-text.json +19 -0
|
@@ -0,0 +1,547 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
cn
|
|
4
|
+
} from "../../../catalog-chunks/chunk-OTFAZXKB.js";
|
|
5
|
+
|
|
6
|
+
// .generated/catalog/components/mono-charts/GitHubActivity.tsx
|
|
7
|
+
import * as React from "react";
|
|
8
|
+
import { createPortal } from "react-dom";
|
|
9
|
+
import {
|
|
10
|
+
AnimatePresence,
|
|
11
|
+
motion,
|
|
12
|
+
useReducedMotion
|
|
13
|
+
} from "framer-motion";
|
|
14
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
15
|
+
var DEFAULT_ACCENT = "#39d353";
|
|
16
|
+
var DEFAULT_CELL_SIZE = 11;
|
|
17
|
+
var DEFAULT_LABEL = "Top contributions in:";
|
|
18
|
+
var DEFAULT_MONTHS = 12;
|
|
19
|
+
var WEEKS_PER_MONTH = 365.25 / 12 / 7;
|
|
20
|
+
var STACK_LIMIT = 3;
|
|
21
|
+
var MIN_CARD_WIDTH = 320;
|
|
22
|
+
var MIN_LABEL_WEEKS = 3;
|
|
23
|
+
var CARD_PADDING = 32;
|
|
24
|
+
var gapFor = (cellSize) => Math.max(2, Math.round(cellSize / 4));
|
|
25
|
+
var weeksFor = (months) => Math.max(1, Math.ceil(months * WEEKS_PER_MONTH));
|
|
26
|
+
var useIsoLayoutEffect = typeof window !== "undefined" ? React.useLayoutEffect : React.useEffect;
|
|
27
|
+
var EASE_OUT = [0.22, 1, 0.36, 1];
|
|
28
|
+
var SPRING = { type: "spring", bounce: 0.2, duration: 0.62 };
|
|
29
|
+
var HEADER_SPRING = { ...SPRING, bounce: 0.45 };
|
|
30
|
+
var ROW_SPRING = { ...SPRING, bounce: 0.26, delay: 0.08 };
|
|
31
|
+
var ROW_OFFSET = 16;
|
|
32
|
+
var CELL_FADE = { duration: 0.2, ease: EASE_OUT };
|
|
33
|
+
var TOOLTIP_FADE = { duration: 0.14, ease: EASE_OUT };
|
|
34
|
+
var TOOLTIP_EDGE = 8;
|
|
35
|
+
var COLUMN_STAGGER = 0.012;
|
|
36
|
+
var LABEL_BLUR = 6;
|
|
37
|
+
var LABEL_REVEAL = { duration: 0.45, ease: EASE_OUT };
|
|
38
|
+
var LEVELS = [0, 1, 2, 3, 4];
|
|
39
|
+
var MONTH_NAMES = [
|
|
40
|
+
"Jan",
|
|
41
|
+
"Feb",
|
|
42
|
+
"Mar",
|
|
43
|
+
"Apr",
|
|
44
|
+
"May",
|
|
45
|
+
"Jun",
|
|
46
|
+
"Jul",
|
|
47
|
+
"Aug",
|
|
48
|
+
"Sep",
|
|
49
|
+
"Oct",
|
|
50
|
+
"Nov",
|
|
51
|
+
"Dec"
|
|
52
|
+
];
|
|
53
|
+
function toMonthLabels(weeks) {
|
|
54
|
+
const labels = weeks.map(() => null);
|
|
55
|
+
const monthAt = (index) => weeks[index]?.[0]?.date.slice(5, 7);
|
|
56
|
+
let start = 0;
|
|
57
|
+
for (let i = 1; i <= weeks.length; i++) {
|
|
58
|
+
if (i < weeks.length && monthAt(i) === monthAt(start)) continue;
|
|
59
|
+
if (i - start >= MIN_LABEL_WEEKS) {
|
|
60
|
+
labels[start] = MONTH_NAMES[Number(monthAt(start)) - 1] ?? null;
|
|
61
|
+
}
|
|
62
|
+
start = i;
|
|
63
|
+
}
|
|
64
|
+
return labels;
|
|
65
|
+
}
|
|
66
|
+
var LEVEL_OPACITY = {
|
|
67
|
+
0: 0,
|
|
68
|
+
1: 0.3,
|
|
69
|
+
2: 0.52,
|
|
70
|
+
3: 0.76,
|
|
71
|
+
4: 1
|
|
72
|
+
};
|
|
73
|
+
var DATE_FORMAT = new Intl.DateTimeFormat("en-US", {
|
|
74
|
+
month: "short",
|
|
75
|
+
day: "numeric",
|
|
76
|
+
year: "numeric"
|
|
77
|
+
});
|
|
78
|
+
function describeDay({ count, date }) {
|
|
79
|
+
const noun = count === 1 ? "contribution" : "contributions";
|
|
80
|
+
return `${count} ${noun} on ${DATE_FORMAT.format(/* @__PURE__ */ new Date(`${date}T00:00:00`))}`;
|
|
81
|
+
}
|
|
82
|
+
var CALENDAR_API = "https://github-contributions-api.jogruber.de/v4";
|
|
83
|
+
var EVENTS_API = "https://api.github.com/users";
|
|
84
|
+
async function fetchCalendar(login) {
|
|
85
|
+
const res = await fetch(`${CALENDAR_API}/${login}?y=last`);
|
|
86
|
+
if (!res.ok) return null;
|
|
87
|
+
const days = (await res.json())?.contributions ?? [];
|
|
88
|
+
if (!days.length) return null;
|
|
89
|
+
const start = days.findIndex(
|
|
90
|
+
(day) => (/* @__PURE__ */ new Date(`${day.date}T00:00:00Z`)).getUTCDay() === 0
|
|
91
|
+
);
|
|
92
|
+
return days.slice(start < 0 ? 0 : start).map((day) => ({
|
|
93
|
+
date: day.date,
|
|
94
|
+
count: day.count,
|
|
95
|
+
level: Math.min(4, Math.max(0, day.level))
|
|
96
|
+
}));
|
|
97
|
+
}
|
|
98
|
+
async function fetchRepos(login) {
|
|
99
|
+
const res = await fetch(`${EVENTS_API}/${login}/events/public?per_page=100`);
|
|
100
|
+
if (!res.ok) return [];
|
|
101
|
+
const events = await res.json();
|
|
102
|
+
const counts = /* @__PURE__ */ new Map();
|
|
103
|
+
for (const event of events) {
|
|
104
|
+
if (event.type !== "PushEvent" || !event.repo) continue;
|
|
105
|
+
const commits = event.payload?.commits?.length ?? 1;
|
|
106
|
+
counts.set(event.repo.name, (counts.get(event.repo.name) ?? 0) + commits);
|
|
107
|
+
}
|
|
108
|
+
return [...counts.entries()].sort(([, a], [, b]) => b - a).slice(0, STACK_LIMIT).map(([fullName, count]) => {
|
|
109
|
+
const [owner, name] = fullName.split("/");
|
|
110
|
+
return {
|
|
111
|
+
name,
|
|
112
|
+
count,
|
|
113
|
+
href: `https://github.com/${fullName}`,
|
|
114
|
+
logo: owner.toLowerCase() === login.toLowerCase() ? void 0 : /* @__PURE__ */ jsx("img", { src: `https://github.com/${owner}.png?size=64`, alt: "" })
|
|
115
|
+
};
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
function useGitHubUser(login) {
|
|
119
|
+
const [data, setData] = React.useState();
|
|
120
|
+
React.useEffect(() => {
|
|
121
|
+
if (!login) return;
|
|
122
|
+
let active = true;
|
|
123
|
+
Promise.all([fetchCalendar(login), fetchRepos(login)]).then(([contributions, repos]) => {
|
|
124
|
+
if (active && contributions) setData({ contributions, repos });
|
|
125
|
+
}).catch(() => {
|
|
126
|
+
});
|
|
127
|
+
return () => {
|
|
128
|
+
active = false;
|
|
129
|
+
};
|
|
130
|
+
}, [login]);
|
|
131
|
+
return data;
|
|
132
|
+
}
|
|
133
|
+
function generateDemoContributions(weeks) {
|
|
134
|
+
const today = /* @__PURE__ */ new Date();
|
|
135
|
+
return Array.from({ length: weeks * 7 }, (_, i) => {
|
|
136
|
+
const date = new Date(today);
|
|
137
|
+
date.setDate(date.getDate() - (weeks * 7 - 1 - i));
|
|
138
|
+
const rand = Math.random();
|
|
139
|
+
let level = 0;
|
|
140
|
+
let count = 0;
|
|
141
|
+
if (rand > 0.4) {
|
|
142
|
+
level = Math.floor(Math.random() * 4 + 1);
|
|
143
|
+
count = level * 3 + Math.floor(Math.random() * 3);
|
|
144
|
+
}
|
|
145
|
+
return {
|
|
146
|
+
date: date.toISOString().slice(0, 10),
|
|
147
|
+
count,
|
|
148
|
+
level
|
|
149
|
+
};
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
function toScale(accent) {
|
|
153
|
+
if (typeof accent === "string") {
|
|
154
|
+
return LEVELS.map((level) => ({
|
|
155
|
+
backgroundColor: accent,
|
|
156
|
+
opacity: LEVEL_OPACITY[level]
|
|
157
|
+
}));
|
|
158
|
+
}
|
|
159
|
+
const colors = accent.length > 4 ? accent : ["transparent", ...accent];
|
|
160
|
+
return LEVELS.map((level) => {
|
|
161
|
+
const color = colors[level] ?? colors.at(-1) ?? "transparent";
|
|
162
|
+
return { backgroundColor: color, opacity: color === "transparent" ? 0 : 1 };
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
function toWeeks(contributions) {
|
|
166
|
+
const weeks = [];
|
|
167
|
+
for (let i = 0; i < contributions.length; i += 7) {
|
|
168
|
+
weeks.push(contributions.slice(i, i + 7));
|
|
169
|
+
}
|
|
170
|
+
return weeks;
|
|
171
|
+
}
|
|
172
|
+
function useFittedColumns(cellSize, gap) {
|
|
173
|
+
const ref = React.useRef(null);
|
|
174
|
+
const [columns, setColumns] = React.useState();
|
|
175
|
+
useIsoLayoutEffect(() => {
|
|
176
|
+
const el = ref.current;
|
|
177
|
+
if (!el) return;
|
|
178
|
+
const measure = () => setColumns(
|
|
179
|
+
Math.max(1, Math.floor((el.clientWidth + gap) / (cellSize + gap)))
|
|
180
|
+
);
|
|
181
|
+
measure();
|
|
182
|
+
const observer = new ResizeObserver(measure);
|
|
183
|
+
observer.observe(el);
|
|
184
|
+
return () => observer.disconnect();
|
|
185
|
+
}, [cellSize, gap]);
|
|
186
|
+
return [ref, columns];
|
|
187
|
+
}
|
|
188
|
+
var Tooltip = ({
|
|
189
|
+
hovered,
|
|
190
|
+
reduceMotion
|
|
191
|
+
}) => {
|
|
192
|
+
const ref = React.useRef(null);
|
|
193
|
+
const [left, setLeft] = React.useState(hovered.x);
|
|
194
|
+
useIsoLayoutEffect(() => {
|
|
195
|
+
const half = (ref.current?.offsetWidth ?? 0) / 2;
|
|
196
|
+
const edge = TOOLTIP_EDGE + half;
|
|
197
|
+
setLeft(Math.min(Math.max(hovered.x, edge), window.innerWidth - edge));
|
|
198
|
+
}, [hovered]);
|
|
199
|
+
return createPortal(
|
|
200
|
+
/* @__PURE__ */ jsx(
|
|
201
|
+
"div",
|
|
202
|
+
{
|
|
203
|
+
className: "pointer-events-none fixed z-50",
|
|
204
|
+
style: {
|
|
205
|
+
left,
|
|
206
|
+
top: hovered.y,
|
|
207
|
+
transform: "translate(-50%, calc(-100% - 8px))"
|
|
208
|
+
},
|
|
209
|
+
children: /* @__PURE__ */ jsx(
|
|
210
|
+
motion.div,
|
|
211
|
+
{
|
|
212
|
+
ref,
|
|
213
|
+
className: "whitespace-nowrap rounded-lg bg-foreground px-2 py-1 text-[11px] font-medium text-background shadow-md",
|
|
214
|
+
initial: reduceMotion ? false : { opacity: 0, scale: 0.94 },
|
|
215
|
+
animate: { opacity: 1, scale: 1 },
|
|
216
|
+
exit: reduceMotion ? { opacity: 0 } : { opacity: 0, scale: 0.94 },
|
|
217
|
+
transition: reduceMotion ? { duration: 0 } : TOOLTIP_FADE,
|
|
218
|
+
children: describeDay(hovered.day)
|
|
219
|
+
}
|
|
220
|
+
)
|
|
221
|
+
}
|
|
222
|
+
),
|
|
223
|
+
document.body
|
|
224
|
+
);
|
|
225
|
+
};
|
|
226
|
+
var ContributionGrid = ({
|
|
227
|
+
contributions,
|
|
228
|
+
scale,
|
|
229
|
+
cellSize,
|
|
230
|
+
months,
|
|
231
|
+
showMonths,
|
|
232
|
+
label,
|
|
233
|
+
reduceMotion
|
|
234
|
+
}) => {
|
|
235
|
+
const weeks = React.useMemo(() => toWeeks(contributions), [contributions]);
|
|
236
|
+
const gap = gapFor(cellSize);
|
|
237
|
+
const [ref, columns] = useFittedColumns(cellSize, gap);
|
|
238
|
+
const [hovered, setHovered] = React.useState();
|
|
239
|
+
const cap = Math.min(weeks.length, weeksFor(months));
|
|
240
|
+
const visible = weeks.slice(-Math.min(cap, columns ?? cap));
|
|
241
|
+
const sweepEnd = (visible.length - 1) * COLUMN_STAGGER + CELL_FADE.duration;
|
|
242
|
+
const hover = (day) => (event) => {
|
|
243
|
+
const cell = event.currentTarget.getBoundingClientRect();
|
|
244
|
+
setHovered({ day, x: cell.left + cell.width / 2, y: cell.top });
|
|
245
|
+
};
|
|
246
|
+
return /* @__PURE__ */ jsxs(
|
|
247
|
+
"div",
|
|
248
|
+
{
|
|
249
|
+
ref,
|
|
250
|
+
"data-slot": "github-activity-grid",
|
|
251
|
+
role: "img",
|
|
252
|
+
"aria-label": label,
|
|
253
|
+
className: "relative",
|
|
254
|
+
children: [
|
|
255
|
+
showMonths && /* @__PURE__ */ jsx(
|
|
256
|
+
motion.div,
|
|
257
|
+
{
|
|
258
|
+
className: "flex justify-center",
|
|
259
|
+
style: { gap, marginBottom: gap },
|
|
260
|
+
initial: reduceMotion ? false : { opacity: 0, filter: `blur(${LABEL_BLUR}px)` },
|
|
261
|
+
animate: { opacity: 1, filter: "blur(0px)" },
|
|
262
|
+
transition: {
|
|
263
|
+
...LABEL_REVEAL,
|
|
264
|
+
delay: reduceMotion ? 0 : sweepEnd
|
|
265
|
+
},
|
|
266
|
+
children: toMonthLabels(visible).map((month, index) => /* @__PURE__ */ jsx(
|
|
267
|
+
"div",
|
|
268
|
+
{
|
|
269
|
+
className: "relative h-3 shrink-0",
|
|
270
|
+
style: { width: cellSize },
|
|
271
|
+
children: month && /* @__PURE__ */ jsx("span", { className: "absolute left-0 top-0 text-[10px] leading-none text-foreground/40 font-mono", children: month })
|
|
272
|
+
},
|
|
273
|
+
index
|
|
274
|
+
))
|
|
275
|
+
}
|
|
276
|
+
),
|
|
277
|
+
/* @__PURE__ */ jsx(
|
|
278
|
+
"div",
|
|
279
|
+
{
|
|
280
|
+
className: "flex justify-center overflow-hidden",
|
|
281
|
+
style: { gap },
|
|
282
|
+
onPointerLeave: () => setHovered(void 0),
|
|
283
|
+
children: visible.map((week, weekIndex) => /* @__PURE__ */ jsx("div", { className: "flex flex-col", style: { gap }, children: week.map((day) => /* @__PURE__ */ jsx(
|
|
284
|
+
motion.div,
|
|
285
|
+
{
|
|
286
|
+
onPointerEnter: hover(day),
|
|
287
|
+
className: "shrink-0 rounded-[3px] bg-foreground/[0.08]",
|
|
288
|
+
style: { width: cellSize, height: cellSize },
|
|
289
|
+
initial: reduceMotion ? false : { opacity: 0, scale: 0.4 },
|
|
290
|
+
animate: { opacity: 1, scale: 1 },
|
|
291
|
+
transition: {
|
|
292
|
+
...CELL_FADE,
|
|
293
|
+
delay: reduceMotion ? 0 : weekIndex * COLUMN_STAGGER
|
|
294
|
+
},
|
|
295
|
+
children: /* @__PURE__ */ jsx(
|
|
296
|
+
"div",
|
|
297
|
+
{
|
|
298
|
+
className: "h-full w-full rounded-[3px]",
|
|
299
|
+
style: scale[day.level] ?? scale[0]
|
|
300
|
+
}
|
|
301
|
+
)
|
|
302
|
+
},
|
|
303
|
+
day.date
|
|
304
|
+
)) }, weekIndex))
|
|
305
|
+
}
|
|
306
|
+
),
|
|
307
|
+
/* @__PURE__ */ jsx(AnimatePresence, { children: hovered && /* @__PURE__ */ jsx(
|
|
308
|
+
Tooltip,
|
|
309
|
+
{
|
|
310
|
+
hovered,
|
|
311
|
+
reduceMotion
|
|
312
|
+
},
|
|
313
|
+
"tooltip"
|
|
314
|
+
) })
|
|
315
|
+
]
|
|
316
|
+
}
|
|
317
|
+
);
|
|
318
|
+
};
|
|
319
|
+
var Avatar = ({
|
|
320
|
+
repo,
|
|
321
|
+
layoutId,
|
|
322
|
+
transition,
|
|
323
|
+
className
|
|
324
|
+
}) => /* @__PURE__ */ jsx(
|
|
325
|
+
motion.span,
|
|
326
|
+
{
|
|
327
|
+
layoutId,
|
|
328
|
+
transition,
|
|
329
|
+
className: cn(
|
|
330
|
+
"grid size-7 shrink-0 place-items-center overflow-hidden rounded-full bg-neutral-200 text-[11px] font-medium uppercase text-foreground/70 ring-2 ring-background dark:bg-neutral-800",
|
|
331
|
+
"[&_img]:size-full [&_img]:object-cover [&_svg]:size-full",
|
|
332
|
+
className
|
|
333
|
+
),
|
|
334
|
+
children: repo.logo ?? repo.name.charAt(0)
|
|
335
|
+
}
|
|
336
|
+
);
|
|
337
|
+
var RepoRow = ({
|
|
338
|
+
repo,
|
|
339
|
+
layoutId,
|
|
340
|
+
transition
|
|
341
|
+
}) => {
|
|
342
|
+
const className = "flex items-center gap-3 rounded-xl mx-2 px-2 py-2 transition-colors hover:bg-foreground/5";
|
|
343
|
+
const content = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
344
|
+
/* @__PURE__ */ jsx(Avatar, { repo, layoutId, transition }),
|
|
345
|
+
/* @__PURE__ */ jsx("span", { className: "flex-1 truncate text-sm text-foreground", children: repo.name }),
|
|
346
|
+
/* @__PURE__ */ jsx("span", { className: "text-sm tabular-nums text-foreground/70 font-mono", children: repo.count })
|
|
347
|
+
] });
|
|
348
|
+
return repo.href ? /* @__PURE__ */ jsx("a", { href: repo.href, target: "_blank", rel: "noreferrer", className, children: content }) : /* @__PURE__ */ jsx("div", { className, children: content });
|
|
349
|
+
};
|
|
350
|
+
var Chevron = ({
|
|
351
|
+
open,
|
|
352
|
+
transition
|
|
353
|
+
}) => /* @__PURE__ */ jsxs(
|
|
354
|
+
motion.svg,
|
|
355
|
+
{
|
|
356
|
+
viewBox: "0 0 24 24",
|
|
357
|
+
fill: "none",
|
|
358
|
+
stroke: "currentColor",
|
|
359
|
+
strokeWidth: "1.5",
|
|
360
|
+
strokeLinecap: "round",
|
|
361
|
+
strokeLinejoin: "round",
|
|
362
|
+
"aria-hidden": true,
|
|
363
|
+
className: "size-7 text-[#C4C9CC] dark:text-[#3E4346]",
|
|
364
|
+
initial: false,
|
|
365
|
+
animate: { rotate: open ? 180 : 0 },
|
|
366
|
+
transition,
|
|
367
|
+
children: [
|
|
368
|
+
/* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "10" }),
|
|
369
|
+
/* @__PURE__ */ jsx("path", { d: "m16 10-4 4-4-4" })
|
|
370
|
+
]
|
|
371
|
+
}
|
|
372
|
+
);
|
|
373
|
+
var DEMO_REPOS = [
|
|
374
|
+
{ name: "mova-ui", count: 142 },
|
|
375
|
+
{ name: "evilcharts", count: 98 },
|
|
376
|
+
{ name: "monocharts", count: 64 }
|
|
377
|
+
];
|
|
378
|
+
function GitHubActivity({
|
|
379
|
+
className,
|
|
380
|
+
username,
|
|
381
|
+
contributions: contributionsProp,
|
|
382
|
+
repos: reposProp,
|
|
383
|
+
year,
|
|
384
|
+
accent = DEFAULT_ACCENT,
|
|
385
|
+
cellSize = DEFAULT_CELL_SIZE,
|
|
386
|
+
months = DEFAULT_MONTHS,
|
|
387
|
+
showMonths = true,
|
|
388
|
+
label = DEFAULT_LABEL,
|
|
389
|
+
defaultOpen = false,
|
|
390
|
+
open: openProp,
|
|
391
|
+
onOpenChange,
|
|
392
|
+
style,
|
|
393
|
+
theme = "dark",
|
|
394
|
+
...props
|
|
395
|
+
}) {
|
|
396
|
+
const reduceMotion = useReducedMotion();
|
|
397
|
+
const uid = React.useId();
|
|
398
|
+
const [openState, setOpenState] = React.useState(defaultOpen);
|
|
399
|
+
const open = openProp ?? openState;
|
|
400
|
+
const toggle = () => {
|
|
401
|
+
if (openProp === void 0) setOpenState(!open);
|
|
402
|
+
onOpenChange?.(!open);
|
|
403
|
+
};
|
|
404
|
+
const demoContributions = React.useMemo(() => generateDemoContributions(weeksFor(months)), [months]);
|
|
405
|
+
const needsFetch = username && (!contributionsProp?.length || !reposProp?.length);
|
|
406
|
+
const fetched = useGitHubUser(needsFetch ? username : void 0);
|
|
407
|
+
const contributions = contributionsProp?.length ? contributionsProp : fetched?.contributions ?? demoContributions;
|
|
408
|
+
const repos = reposProp?.length ? reposProp : fetched?.repos?.length ? fetched.repos : DEMO_REPOS;
|
|
409
|
+
const scale = React.useMemo(() => toScale(accent), [accent]);
|
|
410
|
+
const transition = reduceMotion ? { duration: 0 } : SPRING;
|
|
411
|
+
const headerTransition = reduceMotion ? { duration: 0 } : HEADER_SPRING;
|
|
412
|
+
const rowTransition = reduceMotion ? { duration: 0 } : ROW_SPRING;
|
|
413
|
+
const kick = reduceMotion ? {} : { x: ROW_OFFSET, y: ROW_OFFSET };
|
|
414
|
+
const listMotion = {
|
|
415
|
+
initial: { opacity: 0, ...kick },
|
|
416
|
+
animate: { opacity: 1, x: 0, y: 0 },
|
|
417
|
+
exit: { opacity: 0, ...kick }
|
|
418
|
+
};
|
|
419
|
+
const total = React.useMemo(
|
|
420
|
+
() => contributions.reduce((sum, day) => sum + day.count, 0),
|
|
421
|
+
[contributions]
|
|
422
|
+
);
|
|
423
|
+
const parsedYear = Number(contributions.at(-1)?.date.slice(0, 4));
|
|
424
|
+
const displayYear = year ?? (Number.isFinite(parsedYear) ? parsedYear : null);
|
|
425
|
+
const heading = `${total} contributions${displayYear ? ` in ${displayYear}` : ""}`;
|
|
426
|
+
const gap = gapFor(cellSize);
|
|
427
|
+
const columns = Math.min(
|
|
428
|
+
Math.ceil(contributions.length / 7),
|
|
429
|
+
weeksFor(months)
|
|
430
|
+
);
|
|
431
|
+
const width = Math.max(
|
|
432
|
+
MIN_CARD_WIDTH,
|
|
433
|
+
columns * (cellSize + gap) - gap + CARD_PADDING
|
|
434
|
+
);
|
|
435
|
+
const isDark = theme === "dark";
|
|
436
|
+
return /* @__PURE__ */ jsxs(
|
|
437
|
+
"div",
|
|
438
|
+
{
|
|
439
|
+
"data-slot": "github-activity",
|
|
440
|
+
className: cn(
|
|
441
|
+
"relative max-w-full overflow-hidden rounded-[24px] transition-all duration-300 group flex flex-col justify-between p-4 sm:p-5 font-sans",
|
|
442
|
+
isDark ? "bg-[#181818] shadow-[inset_0_1px_0_rgba(255,255,255,0.04)] text-white hover:bg-[#202020]" : "bg-white shadow-[0_4px_20px_rgba(0,0,0,0.04)] border border-neutral-100 text-black hover:shadow-[0_6px_24px_rgba(0,0,0,0.06)]",
|
|
443
|
+
repos.length > 0 && "pb-[76px]",
|
|
444
|
+
className
|
|
445
|
+
),
|
|
446
|
+
style: { width: "100%", ...style },
|
|
447
|
+
...props,
|
|
448
|
+
children: [
|
|
449
|
+
/* @__PURE__ */ jsx("div", { className: "flex items-center justify-between mb-3 px-1", children: /* @__PURE__ */ jsxs("div", { children: [
|
|
450
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
451
|
+
/* @__PURE__ */ jsx("span", { className: `text-xs font-semibold tracking-wider uppercase ${isDark ? "text-neutral-400" : "text-neutral-500"}`, children: "Activity Calendar" }),
|
|
452
|
+
/* @__PURE__ */ jsx("span", { className: "inline-flex items-center px-1.5 py-0.5 rounded-full text-[10px] font-mono bg-emerald-500/20 text-emerald-400 border border-emerald-500/30", children: "GitHub Heatmap" })
|
|
453
|
+
] }),
|
|
454
|
+
/* @__PURE__ */ jsx("p", { className: "text-lg font-bold tracking-tight mt-0.5 font-sans", children: heading })
|
|
455
|
+
] }) }),
|
|
456
|
+
/* @__PURE__ */ jsx(
|
|
457
|
+
ContributionGrid,
|
|
458
|
+
{
|
|
459
|
+
contributions,
|
|
460
|
+
scale,
|
|
461
|
+
cellSize,
|
|
462
|
+
months,
|
|
463
|
+
showMonths,
|
|
464
|
+
label: heading,
|
|
465
|
+
reduceMotion
|
|
466
|
+
}
|
|
467
|
+
),
|
|
468
|
+
repos.length > 0 && /* @__PURE__ */ jsxs(
|
|
469
|
+
motion.div,
|
|
470
|
+
{
|
|
471
|
+
layout: true,
|
|
472
|
+
id: `${uid}-panel`,
|
|
473
|
+
"data-slot": "github-activity-panel",
|
|
474
|
+
"data-state": open ? "open" : "closed",
|
|
475
|
+
className: cn(
|
|
476
|
+
"absolute inset-x-3 bottom-3 overflow-hidden backdrop-blur-xl border transition-colors",
|
|
477
|
+
isDark ? "bg-[#131313]/90 border-white/10 text-white" : "bg-neutral-100/90 border-neutral-200 text-black",
|
|
478
|
+
open && "top-3 z-20"
|
|
479
|
+
),
|
|
480
|
+
style: { borderRadius: 18 },
|
|
481
|
+
transition,
|
|
482
|
+
children: [
|
|
483
|
+
/* @__PURE__ */ jsxs(
|
|
484
|
+
motion.div,
|
|
485
|
+
{
|
|
486
|
+
layout: "position",
|
|
487
|
+
transition: headerTransition,
|
|
488
|
+
className: "flex items-center justify-between gap-3 py-2.5 px-4",
|
|
489
|
+
children: [
|
|
490
|
+
/* @__PURE__ */ jsx("span", { className: "truncate text-xs font-medium opacity-70", children: label }),
|
|
491
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
492
|
+
!open && /* @__PURE__ */ jsx("div", { className: "flex items-center", children: repos.slice(0, STACK_LIMIT).map((repo, index) => /* @__PURE__ */ jsx(
|
|
493
|
+
Avatar,
|
|
494
|
+
{
|
|
495
|
+
repo,
|
|
496
|
+
layoutId: `${uid}-${index}`,
|
|
497
|
+
transition,
|
|
498
|
+
className: "-ml-2 first:ml-0"
|
|
499
|
+
},
|
|
500
|
+
index
|
|
501
|
+
)) }),
|
|
502
|
+
/* @__PURE__ */ jsx(
|
|
503
|
+
"button",
|
|
504
|
+
{
|
|
505
|
+
type: "button",
|
|
506
|
+
onClick: toggle,
|
|
507
|
+
"aria-expanded": open,
|
|
508
|
+
"aria-controls": `${uid}-panel`,
|
|
509
|
+
"aria-label": open ? "Hide top repositories" : "Show top repositories",
|
|
510
|
+
className: `grid size-7 shrink-0 place-items-center rounded-full transition-colors cursor-pointer ${isDark ? "bg-white/10 hover:bg-white/20 text-white" : "bg-black/10 hover:bg-black/20 text-black"}`,
|
|
511
|
+
children: /* @__PURE__ */ jsx(Chevron, { open, transition })
|
|
512
|
+
}
|
|
513
|
+
)
|
|
514
|
+
] })
|
|
515
|
+
]
|
|
516
|
+
}
|
|
517
|
+
),
|
|
518
|
+
/* @__PURE__ */ jsx(AnimatePresence, { initial: false, mode: "popLayout", children: open && /* @__PURE__ */ jsx(
|
|
519
|
+
motion.ul,
|
|
520
|
+
{
|
|
521
|
+
layout: "position",
|
|
522
|
+
...listMotion,
|
|
523
|
+
transition: rowTransition,
|
|
524
|
+
className: "px-0.5 pb-1",
|
|
525
|
+
children: repos.map((repo, index) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(
|
|
526
|
+
RepoRow,
|
|
527
|
+
{
|
|
528
|
+
repo,
|
|
529
|
+
layoutId: `${uid}-${index}`,
|
|
530
|
+
transition
|
|
531
|
+
}
|
|
532
|
+
) }, index))
|
|
533
|
+
},
|
|
534
|
+
"list"
|
|
535
|
+
) })
|
|
536
|
+
]
|
|
537
|
+
}
|
|
538
|
+
)
|
|
539
|
+
]
|
|
540
|
+
}
|
|
541
|
+
);
|
|
542
|
+
}
|
|
543
|
+
var GitHubActivity_default = GitHubActivity;
|
|
544
|
+
export {
|
|
545
|
+
GitHubActivity,
|
|
546
|
+
GitHubActivity_default as default
|
|
547
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type ContributionLevel = 0 | 1 | 2 | 3 | 4;
|
|
3
|
+
export type Contribution = {
|
|
4
|
+
date: string;
|
|
5
|
+
count: number;
|
|
6
|
+
level: ContributionLevel;
|
|
7
|
+
};
|
|
8
|
+
interface MonoActivityHeatmapProps {
|
|
9
|
+
theme?: 'dark' | 'light';
|
|
10
|
+
accentColor?: 'green' | 'blue' | 'purple' | 'mono';
|
|
11
|
+
compact?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare function MonoActivityHeatmap({ theme, accentColor, compact, }: MonoActivityHeatmapProps): React.JSX.Element;
|
|
14
|
+
export {};
|