@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,85 @@
|
|
|
1
|
+
import {
|
|
2
|
+
useCanvasSetup
|
|
3
|
+
} from "./chunk-GDCQNKP7.js";
|
|
4
|
+
|
|
5
|
+
// .generated/catalog/components/dither-charts/UptimeChart.tsx
|
|
6
|
+
import { useEffect } from "react";
|
|
7
|
+
import { jsx } from "react/jsx-runtime";
|
|
8
|
+
var smoothstep = (min, max, value) => {
|
|
9
|
+
const x = Math.max(0, Math.min(1, (value - min) / (max - min)));
|
|
10
|
+
return x * x * (3 - 2 * x);
|
|
11
|
+
};
|
|
12
|
+
var hash = (x, y) => {
|
|
13
|
+
let h = Math.sin(x * 12.9898 + y * 78.233) * 43758.5453;
|
|
14
|
+
return h - Math.floor(h);
|
|
15
|
+
};
|
|
16
|
+
var UPTIME_DATA = Array.from({ length: 90 }, (_, i) => {
|
|
17
|
+
if (i === 12 || i === 45 || i === 78) return 0.8;
|
|
18
|
+
if (i === 22 || i === 60) return 0;
|
|
19
|
+
return 1;
|
|
20
|
+
});
|
|
21
|
+
function UptimeChart({ theme = "dark", compact = false }) {
|
|
22
|
+
const { canvasRef, rect, isVisible, reducedMotion } = useCanvasSetup();
|
|
23
|
+
useEffect(() => {
|
|
24
|
+
let req;
|
|
25
|
+
let lastFrame = 0;
|
|
26
|
+
let time = 0;
|
|
27
|
+
const draw = (now) => {
|
|
28
|
+
req = requestAnimationFrame(draw);
|
|
29
|
+
if (!isVisible.current) return;
|
|
30
|
+
if (now - lastFrame < 33) return;
|
|
31
|
+
lastFrame = now;
|
|
32
|
+
const canvas = canvasRef.current;
|
|
33
|
+
if (!canvas) return;
|
|
34
|
+
const ctx = canvas.getContext("2d");
|
|
35
|
+
if (!ctx) return;
|
|
36
|
+
const { width: w, height: h } = rect.current;
|
|
37
|
+
if (w <= 0 || h <= 0) return;
|
|
38
|
+
time += reducedMotion ? 0 : 0.02;
|
|
39
|
+
const dpr = Math.min(window.devicePixelRatio || 1, 2);
|
|
40
|
+
ctx.save();
|
|
41
|
+
ctx.scale(dpr, dpr);
|
|
42
|
+
ctx.clearRect(0, 0, w, h);
|
|
43
|
+
const days = UPTIME_DATA.length;
|
|
44
|
+
const barW = 6;
|
|
45
|
+
const gap = 2;
|
|
46
|
+
const perRow = Math.max(1, Math.floor(w / (barW + gap)));
|
|
47
|
+
const cell = 2;
|
|
48
|
+
const t2 = time;
|
|
49
|
+
for (let i = 0; i < days; i++) {
|
|
50
|
+
const row = Math.floor(i / perRow);
|
|
51
|
+
const col = i % perRow;
|
|
52
|
+
const x = col * (barW + gap);
|
|
53
|
+
const y = row * (26 + gap);
|
|
54
|
+
const val = UPTIME_DATA[i];
|
|
55
|
+
const color = val === 1 ? "#FFFFFF" : val === 0 ? "rgba(255,255,255,0.3)" : "rgba(255,255,255,0.6)";
|
|
56
|
+
ctx.save();
|
|
57
|
+
ctx.beginPath();
|
|
58
|
+
ctx.rect(x, y, barW, 26);
|
|
59
|
+
ctx.clip();
|
|
60
|
+
ctx.globalAlpha = 0.85;
|
|
61
|
+
ctx.fillStyle = color;
|
|
62
|
+
for (let tx = x; tx <= x + barW; tx += cell) {
|
|
63
|
+
for (let ty = y; ty <= y + 26; ty += cell) {
|
|
64
|
+
const jx = tx + cell / 2;
|
|
65
|
+
const jy = ty + cell / 2;
|
|
66
|
+
const jit = hash(jx, jy);
|
|
67
|
+
const waveRaw = reducedMotion ? 0 : Math.sin(jx * 0.05 + t2) + Math.sin(jy * 0.05 + t2 * 0.7);
|
|
68
|
+
const mod = smoothstep(-1.5, 1.5, waveRaw);
|
|
69
|
+
const sz = cell * (0.3 + 0.4 * mod) * (0.8 + 0.4 * jit);
|
|
70
|
+
ctx.fillRect(tx + (cell - sz) / 2, ty + (cell - sz) / 2, sz, sz);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
ctx.restore();
|
|
74
|
+
}
|
|
75
|
+
ctx.restore();
|
|
76
|
+
};
|
|
77
|
+
req = requestAnimationFrame(draw);
|
|
78
|
+
return () => cancelAnimationFrame(req);
|
|
79
|
+
}, [reducedMotion]);
|
|
80
|
+
return /* @__PURE__ */ jsx("div", { className: "w-full h-full flex flex-col items-center justify-center p-2", children: /* @__PURE__ */ jsx("div", { className: "relative w-full h-[60px] flex items-center justify-center px-2", children: /* @__PURE__ */ jsx("canvas", { ref: canvasRef, className: "w-full h-full" }) }) });
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export {
|
|
84
|
+
UptimeChart
|
|
85
|
+
};
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
// .generated/catalog/components/simple-comp/ServerGauge.tsx
|
|
2
|
+
import { useEffect, useRef, useState } from "react";
|
|
3
|
+
import { useSpring } from "framer-motion";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
var METRICS = [
|
|
6
|
+
{ name: "CPU Load", base: 65, color: "#FFFFFF" },
|
|
7
|
+
{ name: "Memory", base: 82, color: "#E2E8F0" },
|
|
8
|
+
{ name: "Network", base: 45, color: "#CBD5E1" }
|
|
9
|
+
];
|
|
10
|
+
var smoothstep = (min, max, value) => {
|
|
11
|
+
const x = Math.max(0, Math.min(1, (value - min) / (max - min)));
|
|
12
|
+
return x * x * (3 - 2 * x);
|
|
13
|
+
};
|
|
14
|
+
var hash = (x, y) => {
|
|
15
|
+
let h = Math.sin(x * 12.9898 + y * 78.233) * 43758.5453;
|
|
16
|
+
return h - Math.floor(h);
|
|
17
|
+
};
|
|
18
|
+
function ServerGauge({ theme = "dark", compact = false }) {
|
|
19
|
+
const [metricIndex, setMetricIndex] = useState(0);
|
|
20
|
+
const canvasRef = useRef(null);
|
|
21
|
+
const metric = METRICS[metricIndex];
|
|
22
|
+
const valSpring = useSpring(metric.base, { stiffness: 120, damping: 20 });
|
|
23
|
+
useEffect(() => {
|
|
24
|
+
valSpring.set(metric.base);
|
|
25
|
+
}, [metricIndex, valSpring, metric.base]);
|
|
26
|
+
useEffect(() => {
|
|
27
|
+
let req;
|
|
28
|
+
let time = 0;
|
|
29
|
+
const draw = () => {
|
|
30
|
+
time += 0.05;
|
|
31
|
+
const canvas = canvasRef.current;
|
|
32
|
+
if (!canvas) return;
|
|
33
|
+
const ctx = canvas.getContext("2d");
|
|
34
|
+
if (!ctx) return;
|
|
35
|
+
const dpr = window.devicePixelRatio || 1;
|
|
36
|
+
const rect = canvas.getBoundingClientRect();
|
|
37
|
+
if (canvas.width !== rect.width * dpr || canvas.height !== rect.height * dpr) {
|
|
38
|
+
canvas.width = rect.width * dpr;
|
|
39
|
+
canvas.height = rect.height * dpr;
|
|
40
|
+
}
|
|
41
|
+
ctx.save();
|
|
42
|
+
ctx.scale(dpr, dpr);
|
|
43
|
+
ctx.clearRect(0, 0, rect.width, rect.height);
|
|
44
|
+
const cx = rect.width / 2;
|
|
45
|
+
const cy = rect.height * 0.8;
|
|
46
|
+
const rOut = Math.min(rect.width * 0.4, rect.height * 0.7);
|
|
47
|
+
const rIn = rOut - 10;
|
|
48
|
+
const jitter = Math.sin(time) * 2 + Math.cos(time * 2.3) * 1.5;
|
|
49
|
+
const currentVal = valSpring.get() + jitter;
|
|
50
|
+
const startAngle = Math.PI;
|
|
51
|
+
const endAngle = Math.PI * 2;
|
|
52
|
+
const valAngle = startAngle + currentVal / 100 * Math.PI;
|
|
53
|
+
ctx.beginPath();
|
|
54
|
+
ctx.arc(cx, cy, rOut, startAngle, endAngle);
|
|
55
|
+
ctx.arc(cx, cy, rIn, endAngle, startAngle, true);
|
|
56
|
+
ctx.closePath();
|
|
57
|
+
ctx.fillStyle = "rgba(255,255,255,0.1)";
|
|
58
|
+
ctx.fill();
|
|
59
|
+
if (currentVal > 0) {
|
|
60
|
+
ctx.save();
|
|
61
|
+
ctx.beginPath();
|
|
62
|
+
ctx.arc(cx, cy, rOut, startAngle, valAngle);
|
|
63
|
+
ctx.arc(cx, cy, rIn, valAngle, startAngle, true);
|
|
64
|
+
ctx.closePath();
|
|
65
|
+
ctx.clip();
|
|
66
|
+
ctx.globalAlpha = 0.9;
|
|
67
|
+
ctx.fillStyle = "#FFFFFF";
|
|
68
|
+
const cell = Math.max(2, Math.round(rect.width / 200));
|
|
69
|
+
for (let x = Math.floor(cx - rOut); x <= Math.ceil(cx + rOut); x += cell) {
|
|
70
|
+
for (let y = Math.floor(cy - rOut); y <= Math.ceil(cy); y += cell) {
|
|
71
|
+
const jx = x + cell / 2;
|
|
72
|
+
const jy = y + cell / 2;
|
|
73
|
+
const jit = hash(jx, jy);
|
|
74
|
+
const dx = jx - cx;
|
|
75
|
+
const dy = jy - cy;
|
|
76
|
+
const dist = Math.sqrt(dx * dx + dy * dy);
|
|
77
|
+
if (dist < rIn - cell || dist > rOut + cell) continue;
|
|
78
|
+
let a = Math.atan2(dy, dx);
|
|
79
|
+
if (a < 0) a += Math.PI * 2;
|
|
80
|
+
const waveRaw = Math.sin(jx * 0.05 + time) + Math.sin(jy * 0.05 + time * 0.7);
|
|
81
|
+
const mod = smoothstep(-1.5, 1.5, waveRaw);
|
|
82
|
+
const sz = cell * (0.4 + 0.4 * mod) * (0.8 + 0.4 * jit);
|
|
83
|
+
ctx.fillRect(x + (cell - sz) / 2, y + (cell - sz) / 2, sz, sz);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
ctx.restore();
|
|
87
|
+
}
|
|
88
|
+
ctx.restore();
|
|
89
|
+
req = requestAnimationFrame(draw);
|
|
90
|
+
};
|
|
91
|
+
req = requestAnimationFrame(draw);
|
|
92
|
+
return () => cancelAnimationFrame(req);
|
|
93
|
+
}, [metric, valSpring]);
|
|
94
|
+
return /* @__PURE__ */ jsx("div", { className: "w-full h-full flex flex-col items-center justify-center p-2", children: /* @__PURE__ */ jsx("div", { className: "relative w-full h-[120px] flex items-center justify-center", children: /* @__PURE__ */ jsx("canvas", { ref: canvasRef, className: "w-full h-full" }) }) });
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export {
|
|
98
|
+
ServerGauge
|
|
99
|
+
};
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import {
|
|
2
|
+
useCanvasSetup
|
|
3
|
+
} from "./chunk-GDCQNKP7.js";
|
|
4
|
+
|
|
5
|
+
// .generated/catalog/components/dither-charts/DeviceUsageChart.tsx
|
|
6
|
+
import { useEffect, useRef, useState } from "react";
|
|
7
|
+
import { jsx } from "react/jsx-runtime";
|
|
8
|
+
var DEVICES = [
|
|
9
|
+
{ name: "Today", data: [{ label: "Mobile", val: 65, color: "#FFFFFF" }, { label: "Desktop", val: 25, color: "#E2E8F0" }, { label: "Tablet", val: 10, color: "#94A3B8" }] },
|
|
10
|
+
{ name: "Last 7D", data: [{ label: "Mobile", val: 55, color: "#FFFFFF" }, { label: "Desktop", val: 35, color: "#E2E8F0" }, { label: "Tablet", val: 10, color: "#94A3B8" }] }
|
|
11
|
+
];
|
|
12
|
+
var smoothstep = (min, max, value) => {
|
|
13
|
+
const x = Math.max(0, Math.min(1, (value - min) / (max - min)));
|
|
14
|
+
return x * x * (3 - 2 * x);
|
|
15
|
+
};
|
|
16
|
+
var hash = (x, y) => {
|
|
17
|
+
let h = Math.sin(x * 12.9898 + y * 78.233) * 43758.5453;
|
|
18
|
+
return h - Math.floor(h);
|
|
19
|
+
};
|
|
20
|
+
function DeviceUsageChart({ theme = "dark", compact = false }) {
|
|
21
|
+
const [periodIndex, setPeriodIndex] = useState(0);
|
|
22
|
+
const period = DEVICES[periodIndex];
|
|
23
|
+
const { canvasRef, rect, isVisible, reducedMotion } = useCanvasSetup();
|
|
24
|
+
const targetDataRef = useRef(period.data);
|
|
25
|
+
const fromDataRef = useRef(period.data);
|
|
26
|
+
const morphStartTimeRef = useRef(0);
|
|
27
|
+
useEffect(() => {
|
|
28
|
+
fromDataRef.current = targetDataRef.current;
|
|
29
|
+
targetDataRef.current = period.data;
|
|
30
|
+
morphStartTimeRef.current = performance.now();
|
|
31
|
+
}, [period]);
|
|
32
|
+
useEffect(() => {
|
|
33
|
+
let req;
|
|
34
|
+
let time = 0;
|
|
35
|
+
const draw = () => {
|
|
36
|
+
if (!isVisible.current) {
|
|
37
|
+
req = requestAnimationFrame(draw);
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
const canvas = canvasRef.current;
|
|
41
|
+
if (!canvas) return;
|
|
42
|
+
const ctx = canvas.getContext("2d");
|
|
43
|
+
if (!ctx) return;
|
|
44
|
+
const { width: w, height: h } = rect.current;
|
|
45
|
+
if (w === 0 || h === 0) {
|
|
46
|
+
req = requestAnimationFrame(draw);
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
time += reducedMotion ? 0 : 0.02;
|
|
50
|
+
const dpr = Math.min(window.devicePixelRatio || 1, 2);
|
|
51
|
+
ctx.save();
|
|
52
|
+
ctx.scale(dpr, dpr);
|
|
53
|
+
ctx.clearRect(0, 0, w, h);
|
|
54
|
+
const prog = reducedMotion ? 1 : Math.min(1, (performance.now() - morphStartTimeRef.current) / 500);
|
|
55
|
+
const e = 1 - Math.pow(2, -10 * prog);
|
|
56
|
+
const cx = w / 2;
|
|
57
|
+
const cy = h / 2;
|
|
58
|
+
const r = Math.min(cx, cy) * 0.85;
|
|
59
|
+
const rInner = r * 0.65;
|
|
60
|
+
const cell = Math.max(2, Math.round(w / 200));
|
|
61
|
+
let startAngle = -Math.PI / 2;
|
|
62
|
+
for (let i = 0; i < period.data.length; i++) {
|
|
63
|
+
const target = targetDataRef.current[i];
|
|
64
|
+
const from = fromDataRef.current[i];
|
|
65
|
+
const val = from.val + (target.val - from.val) * e;
|
|
66
|
+
const angle = val / 100 * Math.PI * 2;
|
|
67
|
+
const endAngle = startAngle + angle;
|
|
68
|
+
ctx.save();
|
|
69
|
+
ctx.beginPath();
|
|
70
|
+
ctx.arc(cx, cy, r, startAngle, endAngle);
|
|
71
|
+
ctx.arc(cx, cy, rInner, endAngle, startAngle, true);
|
|
72
|
+
ctx.closePath();
|
|
73
|
+
ctx.clip();
|
|
74
|
+
ctx.globalAlpha = 0.85;
|
|
75
|
+
ctx.fillStyle = target.color;
|
|
76
|
+
for (let x = Math.floor(cx - r); x <= Math.ceil(cx + r); x += cell) {
|
|
77
|
+
for (let y = Math.floor(cy - r); y <= Math.ceil(cy + r); y += cell) {
|
|
78
|
+
const jx = x + cell / 2;
|
|
79
|
+
const jy = y + cell / 2;
|
|
80
|
+
const jit = hash(jx, jy);
|
|
81
|
+
const dx = jx - cx;
|
|
82
|
+
const dy = jy - cy;
|
|
83
|
+
const dist = Math.sqrt(dx * dx + dy * dy);
|
|
84
|
+
if (dist < rInner - cell || dist > r + cell) continue;
|
|
85
|
+
const waveRaw = reducedMotion ? 0 : Math.sin(jx * 0.05 + time) + Math.sin(jy * 0.05 + time * 0.7);
|
|
86
|
+
const mod = smoothstep(-1.5, 1.5, waveRaw);
|
|
87
|
+
const sz = cell * (0.4 + 0.4 * mod) * (0.8 + 0.4 * jit);
|
|
88
|
+
ctx.fillRect(x + (cell - sz) / 2, y + (cell - sz) / 2, sz, sz);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
ctx.restore();
|
|
92
|
+
startAngle = endAngle;
|
|
93
|
+
}
|
|
94
|
+
ctx.restore();
|
|
95
|
+
req = requestAnimationFrame(draw);
|
|
96
|
+
};
|
|
97
|
+
req = requestAnimationFrame(draw);
|
|
98
|
+
return () => cancelAnimationFrame(req);
|
|
99
|
+
}, [period, reducedMotion]);
|
|
100
|
+
return /* @__PURE__ */ jsx("div", { className: "w-full h-full flex flex-col items-center justify-center p-2", children: /* @__PURE__ */ jsx("div", { className: "relative w-[130px] h-[130px] flex items-center justify-center", children: /* @__PURE__ */ jsx("canvas", { ref: canvasRef, className: "absolute inset-0 w-full h-full" }) }) });
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export {
|
|
104
|
+
DeviceUsageChart
|
|
105
|
+
};
|
|
@@ -0,0 +1,349 @@
|
|
|
1
|
+
import {
|
|
2
|
+
cn
|
|
3
|
+
} from "./chunk-KRXJK3FG.js";
|
|
4
|
+
|
|
5
|
+
// .generated/catalog/components/dither-charts/ChartCard.tsx
|
|
6
|
+
import { useEffect, useRef, useState, useMemo } from "react";
|
|
7
|
+
import { motion, AnimatePresence, useSpring, useTransform, useReducedMotion } from "framer-motion";
|
|
8
|
+
import { Users } from "lucide-react";
|
|
9
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
+
var PLANS = [
|
|
11
|
+
{ name: "Unlimited", color: "#FFFFFF", base: 1240 },
|
|
12
|
+
{ name: "30-day pass", color: "#E2E8F0", base: 980 },
|
|
13
|
+
{ name: "10-class pack", color: "#CBD5E1", base: 620 },
|
|
14
|
+
{ name: "Drop-in", color: "#94A3B8", base: 410 },
|
|
15
|
+
{ name: "Student", color: "#64748B", base: 300 }
|
|
16
|
+
];
|
|
17
|
+
var PERIODS = [
|
|
18
|
+
{ name: "Week", mult: 0.42 },
|
|
19
|
+
{ name: "Month", mult: 1 },
|
|
20
|
+
{ name: "Quarter", mult: 2.6 },
|
|
21
|
+
{ name: "Year", mult: 8.4 }
|
|
22
|
+
];
|
|
23
|
+
var smoothstep = (min, max, value) => {
|
|
24
|
+
const x = Math.max(0, Math.min(1, (value - min) / (max - min)));
|
|
25
|
+
return x * x * (3 - 2 * x);
|
|
26
|
+
};
|
|
27
|
+
var hash = (x, y) => {
|
|
28
|
+
let h = Math.sin(x * 12.9898 + y * 78.233) * 43758.5453;
|
|
29
|
+
return h - Math.floor(h);
|
|
30
|
+
};
|
|
31
|
+
var hexToRgba = (hex, alpha) => {
|
|
32
|
+
const r = parseInt(hex.slice(1, 3), 16);
|
|
33
|
+
const g = parseInt(hex.slice(3, 5), 16);
|
|
34
|
+
const b = parseInt(hex.slice(5, 7), 16);
|
|
35
|
+
return `rgba(${r}, ${g}, ${b}, ${alpha})`;
|
|
36
|
+
};
|
|
37
|
+
function AnimatedNumber({ value }) {
|
|
38
|
+
const prefersReducedMotion = useReducedMotion();
|
|
39
|
+
const spring = useSpring(value, { stiffness: 190, damping: 27, mass: 0.7 });
|
|
40
|
+
const display = useTransform(
|
|
41
|
+
spring,
|
|
42
|
+
(current) => Math.round(current).toLocaleString("en-US")
|
|
43
|
+
);
|
|
44
|
+
useEffect(() => {
|
|
45
|
+
if (prefersReducedMotion) {
|
|
46
|
+
spring.jump(value);
|
|
47
|
+
} else {
|
|
48
|
+
spring.set(value);
|
|
49
|
+
}
|
|
50
|
+
}, [value, spring, prefersReducedMotion]);
|
|
51
|
+
return /* @__PURE__ */ jsx(motion.span, { className: "tabular-nums", children: display });
|
|
52
|
+
}
|
|
53
|
+
var drawRoundedWedge = (ctx, cx, cy, rIn, rOut, aStart, aEnd, cr) => {
|
|
54
|
+
const sweep = aEnd - aStart;
|
|
55
|
+
const maxCr = Math.min(cr, (rOut - rIn) / 2, sweep * rIn / 2);
|
|
56
|
+
if (sweep <= 1e-3) return;
|
|
57
|
+
const crIn = maxCr;
|
|
58
|
+
const crOut = maxCr;
|
|
59
|
+
const aStartIn = aStart + crIn / rIn;
|
|
60
|
+
const aEndIn = aEnd - crIn / rIn;
|
|
61
|
+
const aStartOut = aStart + crOut / rOut;
|
|
62
|
+
const aEndOut = aEnd - crOut / rOut;
|
|
63
|
+
ctx.moveTo(cx + rIn * Math.cos(aStartIn), cy + rIn * Math.sin(aStartIn));
|
|
64
|
+
ctx.arc(cx, cy, rIn, aStartIn, aEndIn);
|
|
65
|
+
ctx.arcTo(
|
|
66
|
+
cx + rIn * Math.cos(aEnd),
|
|
67
|
+
cy + rIn * Math.sin(aEnd),
|
|
68
|
+
cx + rOut * Math.cos(aEnd),
|
|
69
|
+
cy + rOut * Math.sin(aEnd),
|
|
70
|
+
crIn
|
|
71
|
+
);
|
|
72
|
+
ctx.arcTo(
|
|
73
|
+
cx + rOut * Math.cos(aEnd),
|
|
74
|
+
cy + rOut * Math.sin(aEnd),
|
|
75
|
+
cx + rOut * Math.cos(aEndOut),
|
|
76
|
+
cy + rOut * Math.sin(aEndOut),
|
|
77
|
+
crOut
|
|
78
|
+
);
|
|
79
|
+
ctx.arc(cx, cy, rOut, aEndOut, aStartOut, true);
|
|
80
|
+
ctx.arcTo(
|
|
81
|
+
cx + rOut * Math.cos(aStart),
|
|
82
|
+
cy + rOut * Math.sin(aStart),
|
|
83
|
+
cx + rIn * Math.cos(aStart),
|
|
84
|
+
cy + rIn * Math.sin(aStart),
|
|
85
|
+
crOut
|
|
86
|
+
);
|
|
87
|
+
ctx.arcTo(
|
|
88
|
+
cx + rIn * Math.cos(aStart),
|
|
89
|
+
cy + rIn * Math.sin(aStart),
|
|
90
|
+
cx + rIn * Math.cos(aStartIn),
|
|
91
|
+
cy + rIn * Math.sin(aStartIn),
|
|
92
|
+
crIn
|
|
93
|
+
);
|
|
94
|
+
};
|
|
95
|
+
function ChartCard() {
|
|
96
|
+
const [periodIndex, setPeriodIndex] = useState(1);
|
|
97
|
+
const [hoverIndex, setHoverIndex] = useState(null);
|
|
98
|
+
const canvasRef = useRef(null);
|
|
99
|
+
const period = PERIODS[periodIndex];
|
|
100
|
+
const { values, shares, total } = useMemo(() => {
|
|
101
|
+
let newTotal = 0;
|
|
102
|
+
const newValues = PLANS.map((plan, i) => {
|
|
103
|
+
const w = 0.78 + 0.4 * (0.5 + 0.5 * Math.sin(i * 1.9 + periodIndex * 1.3));
|
|
104
|
+
const val = Math.round(plan.base * period.mult * w);
|
|
105
|
+
newTotal += val;
|
|
106
|
+
return val;
|
|
107
|
+
});
|
|
108
|
+
const newShares = newValues.map((v) => v / newTotal);
|
|
109
|
+
return { values: newValues, shares: newShares, total: newTotal };
|
|
110
|
+
}, [periodIndex]);
|
|
111
|
+
const timeRef = useRef(0);
|
|
112
|
+
const requestRef = useRef(void 0);
|
|
113
|
+
const morphStartTimeRef = useRef(0);
|
|
114
|
+
const fromSharesRef = useRef([]);
|
|
115
|
+
const targetSharesRef = useRef([]);
|
|
116
|
+
const dispSharesRef = useRef([]);
|
|
117
|
+
const hoverRef = useRef(hoverIndex);
|
|
118
|
+
useEffect(() => {
|
|
119
|
+
hoverRef.current = hoverIndex;
|
|
120
|
+
}, [hoverIndex]);
|
|
121
|
+
useEffect(() => {
|
|
122
|
+
if (dispSharesRef.current.length === 0) {
|
|
123
|
+
dispSharesRef.current = [...shares];
|
|
124
|
+
fromSharesRef.current = [...shares];
|
|
125
|
+
targetSharesRef.current = [...shares];
|
|
126
|
+
} else {
|
|
127
|
+
fromSharesRef.current = [...dispSharesRef.current];
|
|
128
|
+
targetSharesRef.current = [...shares];
|
|
129
|
+
morphStartTimeRef.current = performance.now();
|
|
130
|
+
}
|
|
131
|
+
}, [shares]);
|
|
132
|
+
useEffect(() => {
|
|
133
|
+
const draw = () => {
|
|
134
|
+
timeRef.current += 0.02;
|
|
135
|
+
const canvas = canvasRef.current;
|
|
136
|
+
if (!canvas) return;
|
|
137
|
+
const ctx = canvas.getContext("2d");
|
|
138
|
+
if (!ctx) return;
|
|
139
|
+
const dpr = Math.min(window.devicePixelRatio || 1, 2);
|
|
140
|
+
const logicalSize = 200;
|
|
141
|
+
const rect = canvas.getBoundingClientRect();
|
|
142
|
+
if (canvas.width !== rect.width * dpr || canvas.height !== rect.height * dpr) {
|
|
143
|
+
canvas.width = rect.width * dpr;
|
|
144
|
+
canvas.height = rect.height * dpr;
|
|
145
|
+
}
|
|
146
|
+
ctx.save();
|
|
147
|
+
ctx.clearRect(0, 0, canvas.width, canvas.height);
|
|
148
|
+
ctx.scale(rect.width * dpr / logicalSize, rect.height * dpr / logicalSize);
|
|
149
|
+
let t = 0;
|
|
150
|
+
if (morphStartTimeRef.current > 0) {
|
|
151
|
+
t = (performance.now() - morphStartTimeRef.current) / 500;
|
|
152
|
+
if (t > 1) t = 1;
|
|
153
|
+
} else {
|
|
154
|
+
t = 1;
|
|
155
|
+
}
|
|
156
|
+
const reducedMotion = window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
157
|
+
if (reducedMotion) {
|
|
158
|
+
t = 1;
|
|
159
|
+
timeRef.current = 0;
|
|
160
|
+
}
|
|
161
|
+
const e = 1 - Math.pow(2, -10 * t);
|
|
162
|
+
for (let i = 0; i < targetSharesRef.current.length; i++) {
|
|
163
|
+
dispSharesRef.current[i] = fromSharesRef.current[i] + (targetSharesRef.current[i] - fromSharesRef.current[i]) * e;
|
|
164
|
+
}
|
|
165
|
+
let startAngle = -Math.PI / 2;
|
|
166
|
+
const gap = 0.07;
|
|
167
|
+
const currentHover = hoverRef.current;
|
|
168
|
+
for (let i = 0; i < dispSharesRef.current.length; i++) {
|
|
169
|
+
const share = dispSharesRef.current[i];
|
|
170
|
+
if (share === 0) continue;
|
|
171
|
+
let sweep = share * Math.PI * 2;
|
|
172
|
+
let aStart = startAngle + gap / 2;
|
|
173
|
+
let aEnd = startAngle + sweep - gap / 2;
|
|
174
|
+
if (aEnd < aStart) aEnd = aStart;
|
|
175
|
+
ctx.save();
|
|
176
|
+
const isHovered = currentHover === i;
|
|
177
|
+
const isAnyHovered = currentHover !== null;
|
|
178
|
+
if (isHovered) {
|
|
179
|
+
const mid = (aStart + aEnd) / 2;
|
|
180
|
+
ctx.translate(Math.cos(mid) * 6, Math.sin(mid) * 6);
|
|
181
|
+
}
|
|
182
|
+
ctx.beginPath();
|
|
183
|
+
drawRoundedWedge(ctx, 100, 100, 55, 86, aStart, aEnd, 6);
|
|
184
|
+
ctx.clip();
|
|
185
|
+
ctx.globalAlpha = isHovered ? 1 : isAnyHovered ? 0.3 * 0.72 : 0.72;
|
|
186
|
+
ctx.fillStyle = PLANS[i].color;
|
|
187
|
+
if (isHovered) {
|
|
188
|
+
ctx.shadowColor = hexToRgba(PLANS[i].color, 0.55);
|
|
189
|
+
ctx.shadowBlur = 5;
|
|
190
|
+
ctx.shadowOffsetX = 0;
|
|
191
|
+
ctx.shadowOffsetY = 0;
|
|
192
|
+
}
|
|
193
|
+
const cell = 4.6;
|
|
194
|
+
for (let x = 14; x <= 186; x += cell) {
|
|
195
|
+
for (let y = 14; y <= 186; y += cell) {
|
|
196
|
+
const dx = x - 100;
|
|
197
|
+
const dy = y - 100;
|
|
198
|
+
const dist = Math.sqrt(dx * dx + dy * dy);
|
|
199
|
+
if (dist < 55 - cell || dist > 86 + cell) continue;
|
|
200
|
+
let a = Math.atan2(dy, dx);
|
|
201
|
+
let normalizedA = a - aStart;
|
|
202
|
+
while (normalizedA < 0) normalizedA += Math.PI * 2;
|
|
203
|
+
while (normalizedA >= Math.PI * 2) normalizedA -= Math.PI * 2;
|
|
204
|
+
if (normalizedA > aEnd - aStart) continue;
|
|
205
|
+
const fullness = smoothstep(0.62, 1, (dist - 55) / (86 - 55));
|
|
206
|
+
const waveRaw = Math.sin(dist * 0.1 - timeRef.current) + Math.sin(a * 3 + timeRef.current * 1.5) + Math.sin(dx * 0.05 + dy * 0.05 + timeRef.current * 2);
|
|
207
|
+
const wave = smoothstep(-1.5, 1.5, waveRaw);
|
|
208
|
+
const jitter = hash(x, y);
|
|
209
|
+
const size = cell * ((isHovered ? 0.46 : 0.34) + 0.36 * fullness + 0.26 * wave) * (0.78 + 0.42 * jitter);
|
|
210
|
+
ctx.fillRect(x - size / 2, y - size / 2, size, size);
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
ctx.restore();
|
|
214
|
+
startAngle += sweep;
|
|
215
|
+
}
|
|
216
|
+
ctx.restore();
|
|
217
|
+
requestRef.current = requestAnimationFrame(draw);
|
|
218
|
+
};
|
|
219
|
+
requestRef.current = requestAnimationFrame(draw);
|
|
220
|
+
return () => {
|
|
221
|
+
if (requestRef.current) cancelAnimationFrame(requestRef.current);
|
|
222
|
+
};
|
|
223
|
+
}, []);
|
|
224
|
+
const handleCanvasMove = (e) => {
|
|
225
|
+
const rect = canvasRef.current?.getBoundingClientRect();
|
|
226
|
+
if (!rect) return;
|
|
227
|
+
const x = e.clientX - rect.left;
|
|
228
|
+
const y = e.clientY - rect.top;
|
|
229
|
+
const lx = x / rect.width * 200 - 100;
|
|
230
|
+
const ly = y / rect.height * 200 - 100;
|
|
231
|
+
const dist = Math.sqrt(lx * lx + ly * ly);
|
|
232
|
+
if (dist < 55 || dist > 86) {
|
|
233
|
+
if (hoverIndex !== null) setHoverIndex(null);
|
|
234
|
+
return;
|
|
235
|
+
}
|
|
236
|
+
let angle = Math.atan2(ly, lx);
|
|
237
|
+
let startAngle = -Math.PI / 2;
|
|
238
|
+
const gap = 0.07;
|
|
239
|
+
let found = null;
|
|
240
|
+
for (let i = 0; i < dispSharesRef.current.length; i++) {
|
|
241
|
+
const share = dispSharesRef.current[i];
|
|
242
|
+
if (share === 0) continue;
|
|
243
|
+
let sweep = share * Math.PI * 2;
|
|
244
|
+
let aStart = startAngle + gap / 2;
|
|
245
|
+
let aEnd = startAngle + sweep - gap / 2;
|
|
246
|
+
let normalizedA = angle - aStart;
|
|
247
|
+
while (normalizedA < 0) normalizedA += Math.PI * 2;
|
|
248
|
+
while (normalizedA >= Math.PI * 2) normalizedA -= Math.PI * 2;
|
|
249
|
+
if (normalizedA <= aEnd - aStart) {
|
|
250
|
+
found = i;
|
|
251
|
+
break;
|
|
252
|
+
}
|
|
253
|
+
startAngle += sweep;
|
|
254
|
+
}
|
|
255
|
+
if (found !== hoverIndex) setHoverIndex(found);
|
|
256
|
+
};
|
|
257
|
+
return /* @__PURE__ */ jsxs("div", { className: "w-full max-w-[400px] flex flex-col items-center gap-[14px]", style: { zoom: 0.86 }, children: [
|
|
258
|
+
/* @__PURE__ */ jsxs("div", { className: "w-full bg-[#FAFAFB] rounded-[14px] p-1.5 flex flex-col gap-1.5 shadow-sm border border-black/5", children: [
|
|
259
|
+
/* @__PURE__ */ jsxs("div", { className: "bg-white rounded-[10px] p-[14px_20px] flex flex-col gap-1.5 shadow-[0_0_1.76px_rgba(0,0,0,0.08),0_1px_1.76px_rgba(25,28,33,0.06),0_0_0_1px_rgba(25,28,33,0.04)]", children: [
|
|
260
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-3", children: [
|
|
261
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1.5", children: [
|
|
262
|
+
/* @__PURE__ */ jsx("span", { className: "text-[13px] font-medium tracking-tight text-[#171717]", children: "Members by plan" }),
|
|
263
|
+
/* @__PURE__ */ jsx(Users, { size: 14, className: "text-[#B6B8BF]" })
|
|
264
|
+
] }),
|
|
265
|
+
/* @__PURE__ */ jsx("div", { className: "relative h-4 overflow-hidden w-20 flex justify-end", children: /* @__PURE__ */ jsx(AnimatePresence, { mode: "popLayout", initial: false, children: /* @__PURE__ */ jsxs(
|
|
266
|
+
motion.span,
|
|
267
|
+
{
|
|
268
|
+
initial: { opacity: 0, y: -10, filter: "blur(4px)" },
|
|
269
|
+
animate: { opacity: 1, y: 0, filter: "blur(0px)" },
|
|
270
|
+
exit: { opacity: 0, y: 10, filter: "blur(4px)" },
|
|
271
|
+
transition: { duration: 0.18, ease: [0.19, 1, 0.22, 1] },
|
|
272
|
+
className: "absolute right-0 text-[12px] text-[#8A90A0] whitespace-nowrap",
|
|
273
|
+
children: [
|
|
274
|
+
period.name,
|
|
275
|
+
" to date"
|
|
276
|
+
]
|
|
277
|
+
},
|
|
278
|
+
period.name
|
|
279
|
+
) }) })
|
|
280
|
+
] }),
|
|
281
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-baseline gap-[7px]", children: [
|
|
282
|
+
/* @__PURE__ */ jsx("span", { className: "text-[31px] font-semibold tracking-[-0.015em] text-[#171717] leading-[1.15]", children: /* @__PURE__ */ jsx(AnimatedNumber, { value: total }) }),
|
|
283
|
+
/* @__PURE__ */ jsx("span", { className: "text-[13px] font-medium text-[#8A90A0]", children: "total members" })
|
|
284
|
+
] })
|
|
285
|
+
] }),
|
|
286
|
+
/* @__PURE__ */ jsxs("div", { className: "bg-white rounded-[10px] p-[18px] flex items-center gap-[18px] shadow-[0_0_1.76px_rgba(0,0,0,0.08),0_1px_1.76px_rgba(25,28,33,0.06),0_0_0_1px_rgba(25,28,33,0.04)]", children: [
|
|
287
|
+
/* @__PURE__ */ jsx("div", { className: "relative w-[min(190px,44%)] aspect-square shrink-0", children: /* @__PURE__ */ jsx(
|
|
288
|
+
"canvas",
|
|
289
|
+
{
|
|
290
|
+
ref: canvasRef,
|
|
291
|
+
className: "absolute inset-0 w-full h-full cursor-pointer touch-none",
|
|
292
|
+
onMouseMove: handleCanvasMove,
|
|
293
|
+
onMouseLeave: () => setHoverIndex(null)
|
|
294
|
+
}
|
|
295
|
+
) }),
|
|
296
|
+
/* @__PURE__ */ jsx("div", { className: "flex-1 min-w-0 flex flex-col gap-0.5", children: PLANS.map((plan, i) => /* @__PURE__ */ jsxs(
|
|
297
|
+
"div",
|
|
298
|
+
{
|
|
299
|
+
onMouseEnter: () => setHoverIndex(i),
|
|
300
|
+
onMouseLeave: () => setHoverIndex(null),
|
|
301
|
+
className: cn(
|
|
302
|
+
"flex items-center gap-[9px] p-[6px_8px] rounded-[7px] cursor-pointer transition-all duration-150",
|
|
303
|
+
hoverIndex === i ? "bg-blue-50/50" : "bg-transparent",
|
|
304
|
+
hoverIndex !== null && hoverIndex !== i ? "opacity-50" : "opacity-100"
|
|
305
|
+
),
|
|
306
|
+
children: [
|
|
307
|
+
/* @__PURE__ */ jsx("span", { className: "w-[9px] h-[9px] rounded-[3px] shrink-0", style: { backgroundColor: plan.color } }),
|
|
308
|
+
/* @__PURE__ */ jsx("span", { className: cn(
|
|
309
|
+
"flex-1 text-[12.5px] truncate transition-colors duration-150",
|
|
310
|
+
hoverIndex === i ? "text-[#171717] font-medium" : "text-[#5F5F6F] font-normal"
|
|
311
|
+
), children: plan.name }),
|
|
312
|
+
/* @__PURE__ */ jsx("span", { className: "text-[12.5px] font-medium text-[#171717]", children: /* @__PURE__ */ jsx(AnimatedNumber, { value: values[i] }) })
|
|
313
|
+
]
|
|
314
|
+
},
|
|
315
|
+
plan.name
|
|
316
|
+
)) })
|
|
317
|
+
] })
|
|
318
|
+
] }),
|
|
319
|
+
/* @__PURE__ */ jsx("div", { className: "inline-flex bg-[#F3F4F6] rounded-[9px] p-[3px] gap-[2px]", children: PERIODS.map((p, i) => /* @__PURE__ */ jsxs(
|
|
320
|
+
"button",
|
|
321
|
+
{
|
|
322
|
+
onClick: () => {
|
|
323
|
+
setPeriodIndex(i);
|
|
324
|
+
setHoverIndex(null);
|
|
325
|
+
},
|
|
326
|
+
className: cn(
|
|
327
|
+
"relative px-[14px] py-[5px] rounded-[7px] text-[12px] font-medium transition-colors outline-none",
|
|
328
|
+
period.name === p.name ? "text-[#171717] font-semibold" : "text-[#8A90A0] hover:text-[#5F5F6F]"
|
|
329
|
+
),
|
|
330
|
+
children: [
|
|
331
|
+
period.name === p.name && /* @__PURE__ */ jsx(
|
|
332
|
+
motion.div,
|
|
333
|
+
{
|
|
334
|
+
layoutId: "activePeriod",
|
|
335
|
+
className: "absolute inset-0 bg-white rounded-[7px] shadow-[0_0_0_1px_rgba(25,28,33,0.05),0_1px_2px_rgba(25,28,33,0.08)] z-0",
|
|
336
|
+
transition: { duration: 0.32, bounce: 0.2, type: "spring" }
|
|
337
|
+
}
|
|
338
|
+
),
|
|
339
|
+
/* @__PURE__ */ jsx("span", { className: "relative z-10", children: p.name })
|
|
340
|
+
]
|
|
341
|
+
},
|
|
342
|
+
p.name
|
|
343
|
+
)) })
|
|
344
|
+
] });
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
export {
|
|
348
|
+
ChartCard
|
|
349
|
+
};
|