react-component-kit-ui 0.0.0-stage → 0.1.0
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/CHANGELOG.md +25 -0
- package/LICENSE +21 -0
- package/README.md +225 -2
- package/dist/apexcharts.js +327 -0
- package/dist/app.js +21 -0
- package/dist/buttons.js +26 -0
- package/dist/cards.js +26 -0
- package/dist/charts.js +50 -0
- package/dist/chunks/ActivityHeatmapGrid-P3FP0D6z.js +416 -0
- package/dist/chunks/AnimatedCheckmark-CJEmTxC6.js +19 -0
- package/dist/chunks/AnimatedInput-Dt37HZSs.js +21 -0
- package/dist/chunks/AuthCard-BkWHMFho.js +1409 -0
- package/dist/chunks/Badge-CHkR__dT.js +11 -0
- package/dist/chunks/CartPageList-DvsbjjCi.js +331 -0
- package/dist/chunks/CartToast-UIJFD2CK.js +570 -0
- package/dist/chunks/ChangelogSection-eY4neMby.js +2409 -0
- package/dist/chunks/CountdownBanner-CcpsvvE8.js +1263 -0
- package/dist/chunks/CtaNewsletterSection-Cl3fLVpQ.js +75 -0
- package/dist/chunks/CustomRadioGroup-DAwliU9n.js +26 -0
- package/dist/chunks/DiagonalSectionDivider-CwOOEFbn.js +541 -0
- package/dist/chunks/FloatingFeedbackWidget-D_0EpalW.js +348 -0
- package/dist/chunks/FooterMegaSection-DG1qtKuZ.js +67 -0
- package/dist/chunks/HackerDecodeText-hutANQXI.js +289 -0
- package/dist/chunks/LogoWallGrid-BEpsn1Gt.js +433 -0
- package/dist/chunks/LogoWithGalaxy-q_3-9vGU.js +139 -0
- package/dist/chunks/ProductCardMinimal-lQi5vy3-.js +88 -0
- package/dist/chunks/QuickJumpDock-DZzwR0vg.js +294 -0
- package/dist/chunks/SegmentedBarChart-DEBZURnS.js +384 -0
- package/dist/chunks/ShopCategoryHero-BLlWZ-i3.js +695 -0
- package/dist/chunks/StackedAreaChart-DF1-3rDG.js +453 -0
- package/dist/chunks/StatsTrendCard--nij2Jv0.js +491 -0
- package/dist/chunks/StatusTimelineFeed-BRYwz08g.js +62 -0
- package/dist/chunks/StepBreadcrumbBar-BGXvx5NX.js +32 -0
- package/dist/chunks/StepperInput-Ck_9n2BL.js +30 -0
- package/dist/chunks/TagsAutocompleteInput-BdbVqPbF.js +467 -0
- package/dist/chunks/TiltGlowButton-BRHwq9Af.js +650 -0
- package/dist/chunks/TypingIndicator-DshBNXhx.js +373 -0
- package/dist/chunks/WaterfallChart-C6NFbfO0.js +1337 -0
- package/dist/chunks/cart-store-u-ScUvte.js +212 -0
- package/dist/chunks/chart-tooltip-C7pIc_Su.js +49 -0
- package/dist/chunks/galaxy-scene-C854qLoX.js +231 -0
- package/dist/data.js +28 -0
- package/dist/ecommerce.js +43 -0
- package/dist/favicon.svg +14 -0
- package/dist/feedback.js +28 -0
- package/dist/forms.js +31 -0
- package/dist/global.css +254 -0
- package/dist/index.js +397 -0
- package/dist/layout.js +26 -0
- package/dist/logo-animated.svg +46 -0
- package/dist/logo.svg +46 -0
- package/dist/navigation.js +28 -0
- package/dist/overlays.js +27 -0
- package/dist/robots.txt +4 -0
- package/dist/sections.js +68 -0
- package/dist/styles.css +1 -0
- package/dist/templates/ecommerce-editorial.js +481 -0
- package/dist/templates/ecommerce.js +556 -0
- package/dist/templates/saas-hotel.js +540 -0
- package/dist/three.js +17 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -0
- package/dist/types/components/apexcharts.d.ts +3 -0
- package/dist/types/components/index.d.ts +15 -0
- package/dist/types/components/lib/AnimatedGalaxy.d.ts +8 -0
- package/dist/types/components/lib/Galaxy3D.d.ts +15 -0
- package/dist/types/components/lib/LogoWithGalaxy.d.ts +8 -0
- package/dist/types/components/lib/app/AppSidebar.d.ts +53 -0
- package/dist/types/components/lib/app/AppTopbar.d.ts +52 -0
- package/dist/types/components/lib/app/ArrivalsBoard.d.ts +45 -0
- package/dist/types/components/lib/app/AuthCard.d.ts +45 -0
- package/dist/types/components/lib/app/DataTable.d.ts +54 -0
- package/dist/types/components/lib/app/GuestProfileCard.d.ts +48 -0
- package/dist/types/components/lib/app/HousekeepingBoard.d.ts +38 -0
- package/dist/types/components/lib/app/PageHeader.d.ts +45 -0
- package/dist/types/components/lib/app/PlanUsageCard.d.ts +44 -0
- package/dist/types/components/lib/app/RoomRack.d.ts +42 -0
- package/dist/types/components/lib/app/SettingsSection.d.ts +34 -0
- package/dist/types/components/lib/app/SwitchRow.d.ts +28 -0
- package/dist/types/components/lib/app/TeamMembers.d.ts +33 -0
- package/dist/types/components/lib/app/app-icons.d.ts +37 -0
- package/dist/types/components/lib/app/index.d.ts +15 -0
- package/dist/types/components/lib/buttons/AnimatedIconButton.d.ts +22 -0
- package/dist/types/components/lib/buttons/BorderDrawButton.d.ts +19 -0
- package/dist/types/components/lib/buttons/CyberpunkButton.d.ts +23 -0
- package/dist/types/components/lib/buttons/DoubleBorderButton.d.ts +17 -0
- package/dist/types/components/lib/buttons/GhostOutlineButton.d.ts +21 -0
- package/dist/types/components/lib/buttons/GlassButton.d.ts +23 -0
- package/dist/types/components/lib/buttons/GlowButton.d.ts +19 -0
- package/dist/types/components/lib/buttons/LiquidButton.d.ts +19 -0
- package/dist/types/components/lib/buttons/LoadingButton.d.ts +20 -0
- package/dist/types/components/lib/buttons/MagneticButton.d.ts +21 -0
- package/dist/types/components/lib/buttons/MinimalPillButton.d.ts +17 -0
- package/dist/types/components/lib/buttons/NeonBorderButton.d.ts +19 -0
- package/dist/types/components/lib/buttons/NeumorphicButton.d.ts +21 -0
- package/dist/types/components/lib/buttons/PulseButton.d.ts +20 -0
- package/dist/types/components/lib/buttons/RetroArcadeButton.d.ts +17 -0
- package/dist/types/components/lib/buttons/RetroShadowButton.d.ts +17 -0
- package/dist/types/components/lib/buttons/RippleButton.d.ts +17 -0
- package/dist/types/components/lib/buttons/ShimmerButton.d.ts +17 -0
- package/dist/types/components/lib/buttons/ShinyButton.d.ts +17 -0
- package/dist/types/components/lib/buttons/SlideRevealButton.d.ts +20 -0
- package/dist/types/components/lib/buttons/ThreeDPushButton.d.ts +19 -0
- package/dist/types/components/lib/buttons/TiltGlowButton.d.ts +21 -0
- package/dist/types/components/lib/buttons/index.d.ts +22 -0
- package/dist/types/components/lib/cards/BlogHorizontalCard.d.ts +17 -0
- package/dist/types/components/lib/cards/CyberFeatureCard.d.ts +15 -0
- package/dist/types/components/lib/cards/EcommerceProductCard.d.ts +21 -0
- package/dist/types/components/lib/cards/GithubRepoCard.d.ts +25 -0
- package/dist/types/components/lib/cards/GlassCard.d.ts +19 -0
- package/dist/types/components/lib/cards/GlassEventCard.d.ts +17 -0
- package/dist/types/components/lib/cards/GlowPortfolioCard.d.ts +17 -0
- package/dist/types/components/lib/cards/InteractiveTiltCard.d.ts +13 -0
- package/dist/types/components/lib/cards/KanbanItemCard.d.ts +15 -0
- package/dist/types/components/lib/cards/MinimalLinkCard.d.ts +13 -0
- package/dist/types/components/lib/cards/MusicPlayerMini.d.ts +17 -0
- package/dist/types/components/lib/cards/NeumorphicCard.d.ts +13 -0
- package/dist/types/components/lib/cards/NotificationCard.d.ts +15 -0
- package/dist/types/components/lib/cards/PricingCard.d.ts +17 -0
- package/dist/types/components/lib/cards/PricingCompareMiniCard.d.ts +25 -0
- package/dist/types/components/lib/cards/ProfileCard.d.ts +17 -0
- package/dist/types/components/lib/cards/RetroGameCard.d.ts +15 -0
- package/dist/types/components/lib/cards/StatCard.d.ts +15 -0
- package/dist/types/components/lib/cards/StatsTrendCard.d.ts +19 -0
- package/dist/types/components/lib/cards/TaskKanbanCard.d.ts +17 -0
- package/dist/types/components/lib/cards/TestimonialCardClean.d.ts +17 -0
- package/dist/types/components/lib/cards/WeatherWidgetCard.d.ts +17 -0
- package/dist/types/components/lib/cards/index.d.ts +22 -0
- package/dist/types/components/lib/charts/ActivityRings.d.ts +26 -0
- package/dist/types/components/lib/charts/AreaChart.d.ts +16 -0
- package/dist/types/components/lib/charts/BarChart.d.ts +17 -0
- package/dist/types/components/lib/charts/BoxPlotChart.d.ts +26 -0
- package/dist/types/components/lib/charts/BubbleChart.d.ts +35 -0
- package/dist/types/components/lib/charts/BulletChart.d.ts +29 -0
- package/dist/types/components/lib/charts/BumpChart.d.ts +25 -0
- package/dist/types/components/lib/charts/CandlestickChart.d.ts +30 -0
- package/dist/types/components/lib/charts/ChartFrame.d.ts +43 -0
- package/dist/types/components/lib/charts/DivergingBarChart.d.ts +31 -0
- package/dist/types/components/lib/charts/DonutChart.d.ts +16 -0
- package/dist/types/components/lib/charts/DumbbellChart.d.ts +31 -0
- package/dist/types/components/lib/charts/ForecastLineChart.d.ts +30 -0
- package/dist/types/components/lib/charts/FunnelChart.d.ts +24 -0
- package/dist/types/components/lib/charts/GaugeChart.d.ts +29 -0
- package/dist/types/components/lib/charts/GoalProgressChart.d.ts +29 -0
- package/dist/types/components/lib/charts/GroupedBarChart.d.ts +32 -0
- package/dist/types/components/lib/charts/HeatmapChart.d.ts +29 -0
- package/dist/types/components/lib/charts/HistogramChart.d.ts +27 -0
- package/dist/types/components/lib/charts/HorizontalBarChart.d.ts +32 -0
- package/dist/types/components/lib/charts/KpiStatTile.d.ts +28 -0
- package/dist/types/components/lib/charts/KpiTrendGrid.d.ts +27 -0
- package/dist/types/components/lib/charts/LineChart.d.ts +38 -0
- package/dist/types/components/lib/charts/LinearProgressGauge.d.ts +19 -0
- package/dist/types/components/lib/charts/LollipopChart.d.ts +32 -0
- package/dist/types/components/lib/charts/MeterGauge.d.ts +32 -0
- package/dist/types/components/lib/charts/MetricDeltaTable.d.ts +36 -0
- package/dist/types/components/lib/charts/PieChart.d.ts +32 -0
- package/dist/types/components/lib/charts/PolarAreaChart.d.ts +27 -0
- package/dist/types/components/lib/charts/PopulationPyramid.d.ts +31 -0
- package/dist/types/components/lib/charts/PunchCardChart.d.ts +26 -0
- package/dist/types/components/lib/charts/RadarChart.d.ts +28 -0
- package/dist/types/components/lib/charts/RadarMetricChart.d.ts +20 -0
- package/dist/types/components/lib/charts/RadialBarChart.d.ts +27 -0
- package/dist/types/components/lib/charts/RangeAreaChart.d.ts +34 -0
- package/dist/types/components/lib/charts/RetentionCohortTable.d.ts +27 -0
- package/dist/types/components/lib/charts/SankeyChart.d.ts +30 -0
- package/dist/types/components/lib/charts/ScatterPlot.d.ts +35 -0
- package/dist/types/components/lib/charts/SegmentedBarChart.d.ts +30 -0
- package/dist/types/components/lib/charts/SlopeChart.d.ts +33 -0
- package/dist/types/components/lib/charts/SparklineChart.d.ts +24 -0
- package/dist/types/components/lib/charts/StackedAreaChart.d.ts +34 -0
- package/dist/types/components/lib/charts/StackedBarChart.d.ts +33 -0
- package/dist/types/components/lib/charts/SunburstChart.d.ts +33 -0
- package/dist/types/components/lib/charts/TreemapChart.d.ts +31 -0
- package/dist/types/components/lib/charts/WaffleChart.d.ts +26 -0
- package/dist/types/components/lib/charts/WaterfallChart.d.ts +32 -0
- package/dist/types/components/lib/charts/chart-tooltip.d.ts +1 -0
- package/dist/types/components/lib/charts/chart-utils.d.ts +46 -0
- package/dist/types/components/lib/charts/index.d.ts +44 -0
- package/dist/types/components/lib/data/AccordionGroupGlass.d.ts +6 -0
- package/dist/types/components/lib/data/ActivityHeatmapGrid.d.ts +13 -0
- package/dist/types/components/lib/data/AvatarGroupStack.d.ts +6 -0
- package/dist/types/components/lib/data/CalendarGridView.d.ts +6 -0
- package/dist/types/components/lib/data/DataChipsGroup.d.ts +6 -0
- package/dist/types/components/lib/data/DescriptionListHoriz.d.ts +6 -0
- package/dist/types/components/lib/data/FileTreeView.d.ts +6 -0
- package/dist/types/components/lib/data/GanttChartMinimal.d.ts +6 -0
- package/dist/types/components/lib/data/GlassTable.d.ts +6 -0
- package/dist/types/components/lib/data/KeyValuePillGroup.d.ts +6 -0
- package/dist/types/components/lib/data/MetricComparisonRow.d.ts +19 -0
- package/dist/types/components/lib/data/PriceCompareTable.d.ts +6 -0
- package/dist/types/components/lib/data/ProgressListSmall.d.ts +6 -0
- package/dist/types/components/lib/data/RatingBreakdownBar.d.ts +6 -0
- package/dist/types/components/lib/data/SparklineStatCard.d.ts +6 -0
- package/dist/types/components/lib/data/StatsGridDashboard.d.ts +6 -0
- package/dist/types/components/lib/data/StatusTimelineFeed.d.ts +16 -0
- package/dist/types/components/lib/data/StepperDataVertical.d.ts +6 -0
- package/dist/types/components/lib/data/TagCloudData.d.ts +6 -0
- package/dist/types/components/lib/data/TimelineHorizSteps.d.ts +6 -0
- package/dist/types/components/lib/data/TreeItemInteractive.d.ts +6 -0
- package/dist/types/components/lib/data/UserDirectoryItem.d.ts +6 -0
- package/dist/types/components/lib/data/VerticalTimeline.d.ts +6 -0
- package/dist/types/components/lib/data/index.d.ts +23 -0
- package/dist/types/components/lib/ecommerce/CartDrawer.d.ts +43 -0
- package/dist/types/components/lib/ecommerce/CartPageList.d.ts +36 -0
- package/dist/types/components/lib/ecommerce/CartToast.d.ts +34 -0
- package/dist/types/components/lib/ecommerce/CategoryTiles.d.ts +32 -0
- package/dist/types/components/lib/ecommerce/CheckoutForm.d.ts +44 -0
- package/dist/types/components/lib/ecommerce/CountdownBanner.d.ts +38 -0
- package/dist/types/components/lib/ecommerce/FilterBar.d.ts +48 -0
- package/dist/types/components/lib/ecommerce/FilterSidebar.d.ts +42 -0
- package/dist/types/components/lib/ecommerce/LiveActivityToast.d.ts +43 -0
- package/dist/types/components/lib/ecommerce/OrderSummary.d.ts +39 -0
- package/dist/types/components/lib/ecommerce/ProductBuyBox.d.ts +39 -0
- package/dist/types/components/lib/ecommerce/ProductCardMinimal.d.ts +38 -0
- package/dist/types/components/lib/ecommerce/ProductGallery.d.ts +29 -0
- package/dist/types/components/lib/ecommerce/ProductGrid.d.ts +41 -0
- package/dist/types/components/lib/ecommerce/ProductMedia.d.ts +30 -0
- package/dist/types/components/lib/ecommerce/ProductRating.d.ts +23 -0
- package/dist/types/components/lib/ecommerce/ProductToolbar.d.ts +35 -0
- package/dist/types/components/lib/ecommerce/PromoBar.d.ts +29 -0
- package/dist/types/components/lib/ecommerce/StockIndicator.d.ts +29 -0
- package/dist/types/components/lib/ecommerce/StoreHeader.d.ts +54 -0
- package/dist/types/components/lib/ecommerce/StoreHero.d.ts +48 -0
- package/dist/types/components/lib/ecommerce/StoreProductCard.d.ts +40 -0
- package/dist/types/components/lib/ecommerce/TrustBadges.d.ts +24 -0
- package/dist/types/components/lib/ecommerce/VariantPicker.d.ts +37 -0
- package/dist/types/components/lib/ecommerce/cart-store.d.ts +31 -0
- package/dist/types/components/lib/ecommerce/catalog-filter.d.ts +12 -0
- package/dist/types/components/lib/ecommerce/index.d.ts +30 -0
- package/dist/types/components/lib/ecommerce/product-icons.d.ts +20 -0
- package/dist/types/components/lib/ecommerce/types.d.ts +61 -0
- package/dist/types/components/lib/feedback/AnimatedCheckmark.d.ts +14 -0
- package/dist/types/components/lib/feedback/Badge.d.ts +17 -0
- package/dist/types/components/lib/feedback/CircleProgress.d.ts +18 -0
- package/dist/types/components/lib/feedback/ConfettiFeedback.d.ts +18 -0
- package/dist/types/components/lib/feedback/CyberGlitchAlert.d.ts +14 -0
- package/dist/types/components/lib/feedback/EmptyStateCard.d.ts +20 -0
- package/dist/types/components/lib/feedback/GlassAlert.d.ts +15 -0
- package/dist/types/components/lib/feedback/GlassModal.d.ts +24 -0
- package/dist/types/components/lib/feedback/GlassProgress.d.ts +14 -0
- package/dist/types/components/lib/feedback/IndicatorBadgeMinimal.d.ts +17 -0
- package/dist/types/components/lib/feedback/NeonSpinner.d.ts +16 -0
- package/dist/types/components/lib/feedback/ProgressRingCounter.d.ts +22 -0
- package/dist/types/components/lib/feedback/PulseDot.d.ts +14 -0
- package/dist/types/components/lib/feedback/RatingPill.d.ts +15 -0
- package/dist/types/components/lib/feedback/ShakeErrorGroup.d.ts +17 -0
- package/dist/types/components/lib/feedback/SimpleTooltip.d.ts +15 -0
- package/dist/types/components/lib/feedback/SkeletonList.d.ts +12 -0
- package/dist/types/components/lib/feedback/Spotlight.d.ts +15 -0
- package/dist/types/components/lib/feedback/StepProgress.d.ts +16 -0
- package/dist/types/components/lib/feedback/ToastNotif.d.ts +18 -0
- package/dist/types/components/lib/feedback/ToastNotificationGroup.d.ts +22 -0
- package/dist/types/components/lib/feedback/TypingIndicator.d.ts +14 -0
- package/dist/types/components/lib/feedback/index.d.ts +22 -0
- package/dist/types/components/lib/forms/AnimatedInput.d.ts +23 -0
- package/dist/types/components/lib/forms/ChipInput.d.ts +17 -0
- package/dist/types/components/lib/forms/ColorPickerInput.d.ts +17 -0
- package/dist/types/components/lib/forms/CurrencyInput.d.ts +21 -0
- package/dist/types/components/lib/forms/CustomRadioGroup.d.ts +21 -0
- package/dist/types/components/lib/forms/CyberpunkCheckbox.d.ts +17 -0
- package/dist/types/components/lib/forms/DragDropUpload.d.ts +19 -0
- package/dist/types/components/lib/forms/ErrorInput.d.ts +19 -0
- package/dist/types/components/lib/forms/FloatingPassword.d.ts +17 -0
- package/dist/types/components/lib/forms/FormGroupVertical.d.ts +21 -0
- package/dist/types/components/lib/forms/GlassInlineToggleGroup.d.ts +21 -0
- package/dist/types/components/lib/forms/GlassSlider.d.ts +23 -0
- package/dist/types/components/lib/forms/GlassTextarea.d.ts +21 -0
- package/dist/types/components/lib/forms/ModernSelect.d.ts +23 -0
- package/dist/types/components/lib/forms/NeumorphicSwitch.d.ts +17 -0
- package/dist/types/components/lib/forms/OTPInput.d.ts +17 -0
- package/dist/types/components/lib/forms/PasswordStrengthInput.d.ts +19 -0
- package/dist/types/components/lib/forms/PhoneCountryInput.d.ts +19 -0
- package/dist/types/components/lib/forms/RatingStars.d.ts +17 -0
- package/dist/types/components/lib/forms/SearchReveal.d.ts +15 -0
- package/dist/types/components/lib/forms/SegmentedControl.d.ts +19 -0
- package/dist/types/components/lib/forms/SimpleFileInput.d.ts +17 -0
- package/dist/types/components/lib/forms/StepperInput.d.ts +23 -0
- package/dist/types/components/lib/forms/TagsAutocompleteInput.d.ts +19 -0
- package/dist/types/components/lib/forms/index.d.ts +24 -0
- package/dist/types/components/lib/galaxy-scene.d.ts +5 -0
- package/dist/types/components/lib/layout/BentoGrid3.d.ts +14 -0
- package/dist/types/components/lib/layout/CenterFixedBox.d.ts +11 -0
- package/dist/types/components/lib/layout/CenteredContainer.d.ts +27 -0
- package/dist/types/components/lib/layout/ClusterHorizontal.d.ts +13 -0
- package/dist/types/components/lib/layout/DiagonalSectionDivider.d.ts +17 -0
- package/dist/types/components/lib/layout/FeatureHero.d.ts +35 -0
- package/dist/types/components/lib/layout/FooterCenteredMinimal.d.ts +23 -0
- package/dist/types/components/lib/layout/FullBleedSection.d.ts +11 -0
- package/dist/types/components/lib/layout/GalleryGrid4.d.ts +11 -0
- package/dist/types/components/lib/layout/GlassCardGrid.d.ts +16 -0
- package/dist/types/components/lib/layout/GlassSectionHeader.d.ts +30 -0
- package/dist/types/components/lib/layout/HolyGrailGrid.d.ts +23 -0
- package/dist/types/components/lib/layout/LandingSectionSplit.d.ts +14 -0
- package/dist/types/components/lib/layout/MasonryGrid.d.ts +13 -0
- package/dist/types/components/lib/layout/MinimalFooterGrid.d.ts +10 -0
- package/dist/types/components/lib/layout/ScrollSnapSection.d.ts +12 -0
- package/dist/types/components/lib/layout/SectionDividerText.d.ts +23 -0
- package/dist/types/components/lib/layout/SidebarLayoutWrapper.d.ts +33 -0
- package/dist/types/components/lib/layout/SplitScreenLayout.d.ts +12 -0
- package/dist/types/components/lib/layout/StepLayoutVertical.d.ts +9 -0
- package/dist/types/components/lib/layout/StickySidebarWrapper.d.ts +35 -0
- package/dist/types/components/lib/layout/VerticalStack.d.ts +27 -0
- package/dist/types/components/lib/layout/index.d.ts +22 -0
- package/dist/types/components/lib/navigation/AnchorSideNav.d.ts +6 -0
- package/dist/types/components/lib/navigation/BottomNavMobile.d.ts +6 -0
- package/dist/types/components/lib/navigation/BreadcrumbsMinimal.d.ts +6 -0
- package/dist/types/components/lib/navigation/BurgerMorphIcon.d.ts +6 -0
- package/dist/types/components/lib/navigation/CommandPaletteUI.d.ts +6 -0
- package/dist/types/components/lib/navigation/DotNavigationSlider.d.ts +6 -0
- package/dist/types/components/lib/navigation/FloatingTabBar.d.ts +6 -0
- package/dist/types/components/lib/navigation/GlassNavbar.d.ts +12 -0
- package/dist/types/components/lib/navigation/LangSwitcherPill.d.ts +6 -0
- package/dist/types/components/lib/navigation/MegaMenuGlass.d.ts +6 -0
- package/dist/types/components/lib/navigation/MinimalSidebar.d.ts +6 -0
- package/dist/types/components/lib/navigation/PaginationGlass.d.ts +6 -0
- package/dist/types/components/lib/navigation/PaginationInfiniteUI.d.ts +6 -0
- package/dist/types/components/lib/navigation/QuickJumpDock.d.ts +15 -0
- package/dist/types/components/lib/navigation/RadialIconMenu.d.ts +6 -0
- package/dist/types/components/lib/navigation/RetroArcadeMenu.d.ts +6 -0
- package/dist/types/components/lib/navigation/ScrollProgressTop.d.ts +6 -0
- package/dist/types/components/lib/navigation/SimpleFooterGlass.d.ts +6 -0
- package/dist/types/components/lib/navigation/StepBreadcrumbBar.d.ts +16 -0
- package/dist/types/components/lib/navigation/SubNavbarPills.d.ts +18 -0
- package/dist/types/components/lib/navigation/TabUnderline.d.ts +6 -0
- package/dist/types/components/lib/navigation/UserProfileNav.d.ts +6 -0
- package/dist/types/components/lib/navigation/VerticalTabs.d.ts +6 -0
- package/dist/types/components/lib/navigation/index.d.ts +23 -0
- package/dist/types/components/lib/overlays/AgeVerificationOverlay.d.ts +6 -0
- package/dist/types/components/lib/overlays/BackdropBlurMask.d.ts +6 -0
- package/dist/types/components/lib/overlays/BottomSheetMobile.d.ts +6 -0
- package/dist/types/components/lib/overlays/CommandDialog.d.ts +6 -0
- package/dist/types/components/lib/overlays/ContextMenuOverlay.d.ts +6 -0
- package/dist/types/components/lib/overlays/CookieBannerGlass.d.ts +6 -0
- package/dist/types/components/lib/overlays/CookiePreferencesDrawer.d.ts +13 -0
- package/dist/types/components/lib/overlays/ExitIntentOverlay.d.ts +6 -0
- package/dist/types/components/lib/overlays/FloatingFeedbackWidget.d.ts +13 -0
- package/dist/types/components/lib/overlays/FloatingTrayActions.d.ts +6 -0
- package/dist/types/components/lib/overlays/HelpBubbleOverlay.d.ts +6 -0
- package/dist/types/components/lib/overlays/ImageCompareSlider.d.ts +19 -0
- package/dist/types/components/lib/overlays/LightboxOverlay.d.ts +6 -0
- package/dist/types/components/lib/overlays/LoadingOverlayFull.d.ts +6 -0
- package/dist/types/components/lib/overlays/MobileNavOverlay.d.ts +6 -0
- package/dist/types/components/lib/overlays/OverlayModal.d.ts +6 -0
- package/dist/types/components/lib/overlays/PopoverMenuGlass.d.ts +6 -0
- package/dist/types/components/lib/overlays/SearchOverlayFullscreen.d.ts +6 -0
- package/dist/types/components/lib/overlays/SideDrawerRight.d.ts +8 -0
- package/dist/types/components/lib/overlays/SplashIntroOverlay.d.ts +6 -0
- package/dist/types/components/lib/overlays/SpotlightIndicator.d.ts +6 -0
- package/dist/types/components/lib/overlays/ToastStackOverlay.d.ts +6 -0
- package/dist/types/components/lib/overlays/TooltipActionTray.d.ts +6 -0
- package/dist/types/components/lib/overlays/index.d.ts +23 -0
- package/dist/types/components/lib/sections/AgencyContactBrief.d.ts +44 -0
- package/dist/types/components/lib/sections/AgencyFooterCta.d.ts +46 -0
- package/dist/types/components/lib/sections/AgencyHeader.d.ts +37 -0
- package/dist/types/components/lib/sections/AgencyHeroKinetic.d.ts +45 -0
- package/dist/types/components/lib/sections/AgencyServicesList.d.ts +35 -0
- package/dist/types/components/lib/sections/AgencyTeamGrid.d.ts +45 -0
- package/dist/types/components/lib/sections/AgencyWorkGrid.d.ts +42 -0
- package/dist/types/components/lib/sections/BlogGridSection.d.ts +35 -0
- package/dist/types/components/lib/sections/ButtonsShowcase.d.ts +8 -0
- package/dist/types/components/lib/sections/CardsShowcase.d.ts +8 -0
- package/dist/types/components/lib/sections/CareersOpenings.d.ts +37 -0
- package/dist/types/components/lib/sections/ChangelogSection.d.ts +37 -0
- package/dist/types/components/lib/sections/ContactGlassForm.d.ts +16 -0
- package/dist/types/components/lib/sections/ContactSplitMap.d.ts +36 -0
- package/dist/types/components/lib/sections/CtaAppDownload.d.ts +16 -0
- package/dist/types/components/lib/sections/CtaGlowBanner.d.ts +20 -0
- package/dist/types/components/lib/sections/CtaNewsletterSection.d.ts +28 -0
- package/dist/types/components/lib/sections/CtaSplitImage.d.ts +39 -0
- package/dist/types/components/lib/sections/DataShowcase.d.ts +8 -0
- package/dist/types/components/lib/sections/FaqAccordionSection.d.ts +16 -0
- package/dist/types/components/lib/sections/FaqTwoColumn.d.ts +32 -0
- package/dist/types/components/lib/sections/FeatureAlternatingRows.d.ts +29 -0
- package/dist/types/components/lib/sections/FeatureBentoGrid.d.ts +16 -0
- package/dist/types/components/lib/sections/FeatureIconGrid.d.ts +33 -0
- package/dist/types/components/lib/sections/FeatureTabsShowcase.d.ts +30 -0
- package/dist/types/components/lib/sections/FeatureTimelineFlow.d.ts +16 -0
- package/dist/types/components/lib/sections/FeedbackShowcase.d.ts +8 -0
- package/dist/types/components/lib/sections/FooterMegaSection.d.ts +40 -0
- package/dist/types/components/lib/sections/FormsShowcase.d.ts +8 -0
- package/dist/types/components/lib/sections/HeroDashboardPreview.d.ts +32 -0
- package/dist/types/components/lib/sections/HeroGlass.d.ts +8 -0
- package/dist/types/components/lib/sections/HeroGradient.d.ts +8 -0
- package/dist/types/components/lib/sections/HeroMinimalCentered.d.ts +36 -0
- package/dist/types/components/lib/sections/HeroShowcaseSplit.d.ts +25 -0
- package/dist/types/components/lib/sections/HeroSplit.d.ts +8 -0
- package/dist/types/components/lib/sections/HeroTerminal.d.ts +35 -0
- package/dist/types/components/lib/sections/HeroWaitlist.d.ts +30 -0
- package/dist/types/components/lib/sections/HowItWorksSteps.d.ts +32 -0
- package/dist/types/components/lib/sections/IntegrationsGrid.d.ts +28 -0
- package/dist/types/components/lib/sections/LayoutShowcase.d.ts +8 -0
- package/dist/types/components/lib/sections/LogoCloudSection.d.ts +16 -0
- package/dist/types/components/lib/sections/LogoWallGrid.d.ts +28 -0
- package/dist/types/components/lib/sections/NavigationShowcase.d.ts +8 -0
- package/dist/types/components/lib/sections/OverlaysShowcase.d.ts +8 -0
- package/dist/types/components/lib/sections/PricingComparisonMatrix.d.ts +16 -0
- package/dist/types/components/lib/sections/PricingSinglePlan.d.ts +37 -0
- package/dist/types/components/lib/sections/PricingTierCards.d.ts +16 -0
- package/dist/types/components/lib/sections/PricingToggleCards.d.ts +36 -0
- package/dist/types/components/lib/sections/ShopCategoryHero.d.ts +41 -0
- package/dist/types/components/lib/sections/ShopCollectionMosaic.d.ts +37 -0
- package/dist/types/components/lib/sections/ShopFooterWordmark.d.ts +38 -0
- package/dist/types/components/lib/sections/ShopHeaderEditorial.d.ts +61 -0
- package/dist/types/components/lib/sections/ShopHeroEditorial.d.ts +45 -0
- package/dist/types/components/lib/sections/ShopLookbook.d.ts +47 -0
- package/dist/types/components/lib/sections/ShopNewsletterEditorial.d.ts +33 -0
- package/dist/types/components/lib/sections/ShopProductRail.d.ts +41 -0
- package/dist/types/components/lib/sections/ShopReviewsEditorial.d.ts +34 -0
- package/dist/types/components/lib/sections/ShopValuesMarquee.d.ts +28 -0
- package/dist/types/components/lib/sections/StatsCounterBand.d.ts +30 -0
- package/dist/types/components/lib/sections/StatsDashboardSection.d.ts +31 -0
- package/dist/types/components/lib/sections/StatsMetricShowcase.d.ts +16 -0
- package/dist/types/components/lib/sections/TeamGridSection.d.ts +16 -0
- package/dist/types/components/lib/sections/TestimonialCarousel.d.ts +26 -0
- package/dist/types/components/lib/sections/TestimonialFeatured.d.ts +34 -0
- package/dist/types/components/lib/sections/TestimonialGridSection.d.ts +15 -0
- package/dist/types/components/lib/sections/TestimonialWallGlass.d.ts +16 -0
- package/dist/types/components/lib/sections/TypographyShowcase.d.ts +8 -0
- package/dist/types/components/lib/sections/index.d.ts +60 -0
- package/dist/types/components/lib/templates/ecommerce/StoreCategoryPage.d.ts +28 -0
- package/dist/types/components/lib/templates/ecommerce/StoreCheckoutPage.d.ts +25 -0
- package/dist/types/components/lib/templates/ecommerce/StoreHomePage.d.ts +25 -0
- package/dist/types/components/lib/templates/ecommerce/StoreLayout.d.ts +41 -0
- package/dist/types/components/lib/templates/ecommerce/StoreProductPage.d.ts +28 -0
- package/dist/types/components/lib/templates/ecommerce/data.d.ts +49 -0
- package/dist/types/components/lib/templates/ecommerce/index.d.ts +7 -0
- package/dist/types/components/lib/templates/ecommerce-editorial/EditorialBagPage.d.ts +25 -0
- package/dist/types/components/lib/templates/ecommerce-editorial/EditorialCheckoutPage.d.ts +25 -0
- package/dist/types/components/lib/templates/ecommerce-editorial/EditorialHomePage.d.ts +25 -0
- package/dist/types/components/lib/templates/ecommerce-editorial/EditorialLayout.d.ts +36 -0
- package/dist/types/components/lib/templates/ecommerce-editorial/EditorialProductPage.d.ts +29 -0
- package/dist/types/components/lib/templates/ecommerce-editorial/EditorialShopPage.d.ts +28 -0
- package/dist/types/components/lib/templates/ecommerce-editorial/data.d.ts +50 -0
- package/dist/types/components/lib/templates/ecommerce-editorial/index.d.ts +8 -0
- package/dist/types/components/lib/templates/saas-hotel/AppLayout.d.ts +30 -0
- package/dist/types/components/lib/templates/saas-hotel/DashboardPage.d.ts +20 -0
- package/dist/types/components/lib/templates/saas-hotel/GuestsPage.d.ts +20 -0
- package/dist/types/components/lib/templates/saas-hotel/LandingPage.d.ts +24 -0
- package/dist/types/components/lib/templates/saas-hotel/ReportsPage.d.ts +20 -0
- package/dist/types/components/lib/templates/saas-hotel/ReservationsPage.d.ts +20 -0
- package/dist/types/components/lib/templates/saas-hotel/RoomsPage.d.ts +20 -0
- package/dist/types/components/lib/templates/saas-hotel/SettingsPage.d.ts +21 -0
- package/dist/types/components/lib/templates/saas-hotel/SignInPage.d.ts +23 -0
- package/dist/types/components/lib/templates/saas-hotel/data.d.ts +224 -0
- package/dist/types/components/lib/templates/saas-hotel/index.d.ts +11 -0
- package/dist/types/components/lib/typography/AnimatedCounterText.d.ts +19 -0
- package/dist/types/components/lib/typography/AnimatedUnderlineLink.d.ts +9 -0
- package/dist/types/components/lib/typography/BackgroundClipMask.d.ts +8 -0
- package/dist/types/components/lib/typography/CodeInlineGlass.d.ts +8 -0
- package/dist/types/components/lib/typography/CurvedPathHeading.d.ts +15 -0
- package/dist/types/components/lib/typography/CyberpunkGlitchText.d.ts +7 -0
- package/dist/types/components/lib/typography/DropCapParagraph.d.ts +8 -0
- package/dist/types/components/lib/typography/FadedVerticalText.d.ts +8 -0
- package/dist/types/components/lib/typography/FloatingTextLabel.d.ts +8 -0
- package/dist/types/components/lib/typography/GlassBlockQuote.d.ts +8 -0
- package/dist/types/components/lib/typography/GlassTextReveal.d.ts +8 -0
- package/dist/types/components/lib/typography/GradientHeading.d.ts +11 -0
- package/dist/types/components/lib/typography/GradientTextMarquee.d.ts +15 -0
- package/dist/types/components/lib/typography/GradientUnderlineLink.d.ts +8 -0
- package/dist/types/components/lib/typography/HackerDecodeText.d.ts +15 -0
- package/dist/types/components/lib/typography/KbdIndicator.d.ts +8 -0
- package/dist/types/components/lib/typography/LetterSpacingWide.d.ts +8 -0
- package/dist/types/components/lib/typography/MinimalListMarkers.d.ts +8 -0
- package/dist/types/components/lib/typography/MonospaceStatLine.d.ts +8 -0
- package/dist/types/components/lib/typography/NeonTextHighlight.d.ts +8 -0
- package/dist/types/components/lib/typography/ShadowRevealText.d.ts +8 -0
- package/dist/types/components/lib/typography/StrokeHeadingOutline.d.ts +8 -0
- package/dist/types/components/lib/typography/Text3DLayer.d.ts +8 -0
- package/dist/types/components/lib/typography/TypewriterText.d.ts +8 -0
- package/dist/types/components/lib/typography/index.d.ts +24 -0
- package/dist/types/components/three.d.ts +1 -0
- package/dist/typography.js +28 -0
- package/package.json +237 -4
|
@@ -0,0 +1,453 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as l, Fragment as P, jsxs as _ } from "react/jsx-runtime";
|
|
3
|
+
import { useId as z, useRef as D, useEffect as Q } from "react";
|
|
4
|
+
function X(...a) {
|
|
5
|
+
const c = [], t = (e) => {
|
|
6
|
+
if (e) {
|
|
7
|
+
if (typeof e == "string" || typeof e == "number") c.push(String(e));
|
|
8
|
+
else if (Array.isArray(e)) e.forEach(t);
|
|
9
|
+
else if (typeof e == "object")
|
|
10
|
+
for (const [o, f] of Object.entries(e)) f && c.push(o);
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
return a.forEach(t), c.join(" ");
|
|
14
|
+
}
|
|
15
|
+
function Y(a) {
|
|
16
|
+
const c = {};
|
|
17
|
+
for (const t of String(a ?? "").split(";")) {
|
|
18
|
+
const e = t.indexOf(":");
|
|
19
|
+
if (e < 0) continue;
|
|
20
|
+
const o = t.slice(0, e).trim();
|
|
21
|
+
o && (c[o.startsWith("--") ? o : o.replace(/-([a-z])/g, (f, r) => r.toUpperCase())] = t.slice(e + 1).trim());
|
|
22
|
+
}
|
|
23
|
+
return c;
|
|
24
|
+
}
|
|
25
|
+
function B({
|
|
26
|
+
title: a,
|
|
27
|
+
subtitle: c,
|
|
28
|
+
value: t,
|
|
29
|
+
delta: e,
|
|
30
|
+
deltaPositive: o,
|
|
31
|
+
legend: f = [],
|
|
32
|
+
table: r,
|
|
33
|
+
variant: m = "glass",
|
|
34
|
+
size: b = "md",
|
|
35
|
+
className: $ = "",
|
|
36
|
+
children: h,
|
|
37
|
+
footer: p
|
|
38
|
+
}) {
|
|
39
|
+
const k = `cf-${z().replace(/[^a-zA-Z0-9]/g, "")}`, g = D(!1);
|
|
40
|
+
return Q(() => {
|
|
41
|
+
g.current || (g.current = !0, import("./chart-tooltip-C7pIc_Su.js").then((i) => i.initChartTooltips()));
|
|
42
|
+
}, []), /* @__PURE__ */ l(P, { children: /* @__PURE__ */ _("figure", { className: `cf cf--${m} cf--${b} ${$}`, "data-chart": !0, "aria-labelledby": a ? k : void 0, "data-rk-0ca607": "", children: [
|
|
43
|
+
(a || t) && /* @__PURE__ */ _("header", { className: "cf__header", "data-rk-0ca607": "", children: [
|
|
44
|
+
/* @__PURE__ */ _("div", { className: "cf__heading", "data-rk-0ca607": "", children: [
|
|
45
|
+
a && /* @__PURE__ */ l("figcaption", { id: k, className: "cf__title", "data-rk-0ca607": "", children: a }),
|
|
46
|
+
c && /* @__PURE__ */ l("p", { className: "cf__subtitle", "data-rk-0ca607": "", children: c })
|
|
47
|
+
] }),
|
|
48
|
+
t && /* @__PURE__ */ _("div", { className: "cf__headline", "data-rk-0ca607": "", children: [
|
|
49
|
+
/* @__PURE__ */ l("span", { className: "cf__value", "data-rk-0ca607": "", children: t }),
|
|
50
|
+
e && /* @__PURE__ */ _("span", { className: X(["cf__delta", { "cf__delta--pos": o === !0, "cf__delta--neg": o === !1, "cf__delta--neutral": o === void 0 }]), "data-rk-0ca607": "", children: [
|
|
51
|
+
o !== void 0 && /* @__PURE__ */ l("svg", { width: "10", height: "10", viewBox: "0 0 10 10", "aria-hidden": "true", "data-rk-0ca607": "", children: /* @__PURE__ */ l("path", { d: o ? "M5 1 L9 7 H1 Z" : "M5 9 L9 3 H1 Z", fill: "currentColor", "data-rk-0ca607": "" }) }),
|
|
52
|
+
e
|
|
53
|
+
] })
|
|
54
|
+
] })
|
|
55
|
+
] }),
|
|
56
|
+
f.length > 1 && /* @__PURE__ */ l("ul", { className: "cf__legend", "aria-label": "Legend", "data-rk-0ca607": "", children: f.map((i, s) => /* @__PURE__ */ _("li", { className: "cf__legend-item", "data-rk-0ca607": "", children: [
|
|
57
|
+
/* @__PURE__ */ l("span", { className: "cf__swatch", style: Y(`background:${i.color}`), "aria-hidden": "true", "data-rk-0ca607": "" }),
|
|
58
|
+
i.label
|
|
59
|
+
] }, s)) }),
|
|
60
|
+
/* @__PURE__ */ l("div", { className: "cf__plot", "data-rk-0ca607": "", children: h }),
|
|
61
|
+
p,
|
|
62
|
+
r && r.rows.length > 0 && /* @__PURE__ */ _("details", { className: "cf__data", "data-rk-0ca607": "", children: [
|
|
63
|
+
/* @__PURE__ */ l("summary", { "data-rk-0ca607": "", children: "View data" }),
|
|
64
|
+
/* @__PURE__ */ l("div", { className: "cf__table-wrap", "data-rk-0ca607": "", children: /* @__PURE__ */ _("table", { "data-rk-0ca607": "", children: [
|
|
65
|
+
/* @__PURE__ */ l("thead", { "data-rk-0ca607": "", children: /* @__PURE__ */ l("tr", { "data-rk-0ca607": "", children: r.headers.map((i, s) => /* @__PURE__ */ l("th", { scope: "col", "data-rk-0ca607": "", children: i }, s)) }) }),
|
|
66
|
+
/* @__PURE__ */ l("tbody", { "data-rk-0ca607": "", children: r.rows.map((i, s) => /* @__PURE__ */ l("tr", { "data-rk-0ca607": "", children: i.map((u, M) => M === 0 ? /* @__PURE__ */ l("th", { scope: "row", "data-rk-0ca607": "", children: u }, M) : /* @__PURE__ */ l("td", { "data-rk-0ca607": "", children: u }, M)) }, s)) })
|
|
67
|
+
] }) })
|
|
68
|
+
] }),
|
|
69
|
+
/* @__PURE__ */ l("div", { className: "cf__tip", "data-chart-tip": !0, "aria-hidden": "true", "data-rk-0ca607": "" })
|
|
70
|
+
] }) });
|
|
71
|
+
}
|
|
72
|
+
const O = [
|
|
73
|
+
"var(--chart-1, #3987e5)",
|
|
74
|
+
"var(--chart-2, #d95926)",
|
|
75
|
+
"var(--chart-3, #199e70)",
|
|
76
|
+
"var(--chart-4, #c98500)",
|
|
77
|
+
"var(--chart-5, #d55181)",
|
|
78
|
+
"var(--chart-6, #2f9e2f)",
|
|
79
|
+
"var(--chart-7, #9085e9)",
|
|
80
|
+
"var(--chart-8, #e66767)"
|
|
81
|
+
], aa = "var(--chart-pos, #34c38f)", ta = "var(--chart-neg, #f06a6a)";
|
|
82
|
+
function q(a, c) {
|
|
83
|
+
return c && c[a] ? c[a] : O[Math.min(a, O.length - 1)];
|
|
84
|
+
}
|
|
85
|
+
function Z(a, c, t, e) {
|
|
86
|
+
const o = c - a || 1;
|
|
87
|
+
return (f) => t + (f - a) / o * (e - t);
|
|
88
|
+
}
|
|
89
|
+
function ea(a) {
|
|
90
|
+
const c = Math.floor(Math.log10(Math.abs(a) || 1)), t = a / 10 ** c;
|
|
91
|
+
return (t <= 1 ? 1 : t <= 2 ? 2 : t <= 2.5 ? 2.5 : t <= 5 ? 5 : 10) * 10 ** c;
|
|
92
|
+
}
|
|
93
|
+
function U(a, c, t = 5) {
|
|
94
|
+
a === c && (c = a + 1);
|
|
95
|
+
const e = ea((c - a) / Math.max(1, t)), o = Math.floor(a / e) * e, f = Math.ceil(c / e) * e, r = [];
|
|
96
|
+
for (let m = o; m <= f + e / 2; m += e)
|
|
97
|
+
r.push(Number(m.toFixed(10)));
|
|
98
|
+
return r;
|
|
99
|
+
}
|
|
100
|
+
function ra(a, c = 1) {
|
|
101
|
+
const t = Math.abs(a);
|
|
102
|
+
return t >= 1e9 ? `${(a / 1e9).toFixed(c).replace(/\.0+$/, "")}B` : t >= 1e6 ? `${(a / 1e6).toFixed(c).replace(/\.0+$/, "")}M` : t >= 1e3 ? `${(a / 1e3).toFixed(c).replace(/\.0+$/, "")}k` : `${Number(a.toFixed(2))}`;
|
|
103
|
+
}
|
|
104
|
+
function T(a, c = "", t = "", e = !0) {
|
|
105
|
+
const o = e ? ra(a) : a.toLocaleString("en-US");
|
|
106
|
+
return `${c}${o}${t}`;
|
|
107
|
+
}
|
|
108
|
+
function J(a) {
|
|
109
|
+
return a.map(([c, t], e) => `${e ? "L" : "M"}${c.toFixed(2)},${t.toFixed(2)}`).join(" ");
|
|
110
|
+
}
|
|
111
|
+
function ca(a) {
|
|
112
|
+
if (!a.length) return "";
|
|
113
|
+
let c = `M${a[0][0].toFixed(2)},${a[0][1].toFixed(2)}`;
|
|
114
|
+
for (let t = 1; t < a.length; t++) {
|
|
115
|
+
const [e, o] = a[t];
|
|
116
|
+
c += ` H${e.toFixed(2)} V${o.toFixed(2)}`;
|
|
117
|
+
}
|
|
118
|
+
return c;
|
|
119
|
+
}
|
|
120
|
+
function G(a) {
|
|
121
|
+
const c = a.length;
|
|
122
|
+
if (c < 3) return J(a);
|
|
123
|
+
const t = [], e = [];
|
|
124
|
+
for (let r = 0; r < c - 1; r++)
|
|
125
|
+
t[r] = a[r + 1][0] - a[r][0], e[r] = (a[r + 1][1] - a[r][1]) / (t[r] || 1);
|
|
126
|
+
const o = [e[0]];
|
|
127
|
+
for (let r = 1; r < c - 1; r++)
|
|
128
|
+
o[r] = e[r - 1] * e[r] <= 0 ? 0 : (e[r - 1] + e[r]) / 2;
|
|
129
|
+
o[c - 1] = e[c - 2];
|
|
130
|
+
for (let r = 0; r < c - 1; r++) {
|
|
131
|
+
if (e[r] === 0) {
|
|
132
|
+
o[r] = 0, o[r + 1] = 0;
|
|
133
|
+
continue;
|
|
134
|
+
}
|
|
135
|
+
const m = o[r] / e[r], b = o[r + 1] / e[r], $ = m * m + b * b;
|
|
136
|
+
if ($ > 9) {
|
|
137
|
+
const h = 3 / Math.sqrt($);
|
|
138
|
+
o[r] = h * m * e[r], o[r + 1] = h * b * e[r];
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
let f = `M${a[0][0].toFixed(2)},${a[0][1].toFixed(2)}`;
|
|
142
|
+
for (let r = 0; r < c - 1; r++) {
|
|
143
|
+
const [m, b] = a[r], [$, h] = a[r + 1], p = t[r] / 3;
|
|
144
|
+
f += ` C${(m + p).toFixed(2)},${(b + o[r] * p).toFixed(2)} ${($ - p).toFixed(2)},${(h - o[r + 1] * p).toFixed(2)} ${$.toFixed(2)},${h.toFixed(2)}`;
|
|
145
|
+
}
|
|
146
|
+
return f;
|
|
147
|
+
}
|
|
148
|
+
function H(a, c = "smooth") {
|
|
149
|
+
return c === "step" ? ca(a) : c === "linear" ? J(a) : G(a);
|
|
150
|
+
}
|
|
151
|
+
function K(a, c, t = "smooth") {
|
|
152
|
+
if (!a.length) return "";
|
|
153
|
+
const e = H(a, t), o = a[a.length - 1], f = a[0];
|
|
154
|
+
return `${e} L${o[0].toFixed(2)},${c.toFixed(2)} L${f[0].toFixed(2)},${c.toFixed(2)} Z`;
|
|
155
|
+
}
|
|
156
|
+
function na(a, c, t = "smooth") {
|
|
157
|
+
if (!a.length) return "";
|
|
158
|
+
const e = H(a, t), o = [...c].reverse(), f = H(o, t).replace(/^M/, "L");
|
|
159
|
+
return `${e} ${f} Z`;
|
|
160
|
+
}
|
|
161
|
+
function E(a, c, t, e) {
|
|
162
|
+
return [a + t * Math.sin(e), c - t * Math.cos(e)];
|
|
163
|
+
}
|
|
164
|
+
function R(a, c, t, e, o, f) {
|
|
165
|
+
const r = f - o;
|
|
166
|
+
if (r >= Math.PI * 2 - 1e-6) {
|
|
167
|
+
const u = o + Math.PI;
|
|
168
|
+
return `${R(a, c, t, e, o, u)} ${R(a, c, t, e, u, o + Math.PI * 2)}`;
|
|
169
|
+
}
|
|
170
|
+
const m = r > Math.PI ? 1 : 0, [b, $] = E(a, c, t, o), [h, p] = E(a, c, t, f);
|
|
171
|
+
if (e <= 0)
|
|
172
|
+
return `M${a},${c} L${b.toFixed(2)},${$.toFixed(2)} A${t},${t} 0 ${m} 1 ${h.toFixed(2)},${p.toFixed(2)} Z`;
|
|
173
|
+
const [k, g] = E(a, c, e, f), [i, s] = E(a, c, e, o);
|
|
174
|
+
return [
|
|
175
|
+
`M${b.toFixed(2)},${$.toFixed(2)}`,
|
|
176
|
+
`A${t},${t} 0 ${m} 1 ${h.toFixed(2)},${p.toFixed(2)}`,
|
|
177
|
+
`L${k.toFixed(2)},${g.toFixed(2)}`,
|
|
178
|
+
`A${e},${e} 0 ${m} 0 ${i.toFixed(2)},${s.toFixed(2)}`,
|
|
179
|
+
"Z"
|
|
180
|
+
].join(" ");
|
|
181
|
+
}
|
|
182
|
+
function fa(a, c, t, e, o) {
|
|
183
|
+
const f = Math.min(o - e, Math.PI * 2 - 1e-4), r = f > Math.PI ? 1 : 0, [m, b] = E(a, c, t, e), [$, h] = E(a, c, t, e + f);
|
|
184
|
+
return `M${m.toFixed(2)},${b.toFixed(2)} A${t},${t} 0 ${r} 1 ${$.toFixed(2)},${h.toFixed(2)}`;
|
|
185
|
+
}
|
|
186
|
+
function oa(a) {
|
|
187
|
+
return a.reduce((c, t) => c + (Number.isFinite(t) ? t : 0), 0);
|
|
188
|
+
}
|
|
189
|
+
function ma(a, c) {
|
|
190
|
+
if (!a.length) return 0;
|
|
191
|
+
const t = (a.length - 1) * c, e = Math.floor(t), o = Math.ceil(t);
|
|
192
|
+
return a[e] + (a[o] - a[e]) * (t - e);
|
|
193
|
+
}
|
|
194
|
+
let V = 0;
|
|
195
|
+
function la(a = "chart") {
|
|
196
|
+
return V += 1, `${a}-${V}-${Math.random().toString(36).slice(2, 7)}`;
|
|
197
|
+
}
|
|
198
|
+
function pa(a, c) {
|
|
199
|
+
const t = oa(a);
|
|
200
|
+
if (!t) return a.map(() => ({ x: c.x, y: c.y, w: 0, h: 0 }));
|
|
201
|
+
const e = c.w * c.h, o = a.map((h, p) => ({ i: p, a: h / t * e })).sort((h, p) => p.a - h.a), f = new Array(a.length);
|
|
202
|
+
let r = { ...c }, m = [];
|
|
203
|
+
const b = (h, p) => {
|
|
204
|
+
const k = h.reduce((s, u) => s + u.a, 0), g = Math.max(...h.map((s) => s.a)), i = Math.min(...h.map((s) => s.a));
|
|
205
|
+
return Math.max(p * p * g / (k * k), k * k / (p * p * i));
|
|
206
|
+
}, $ = (h) => {
|
|
207
|
+
const p = h.reduce((k, g) => k + g.a, 0);
|
|
208
|
+
if (r.w >= r.h) {
|
|
209
|
+
const k = p / r.h;
|
|
210
|
+
let g = r.y;
|
|
211
|
+
h.forEach((i) => {
|
|
212
|
+
const s = i.a / k;
|
|
213
|
+
f[i.i] = { x: r.x, y: g, w: k, h: s }, g += s;
|
|
214
|
+
}), r = { x: r.x + k, y: r.y, w: r.w - k, h: r.h };
|
|
215
|
+
} else {
|
|
216
|
+
const k = p / r.w;
|
|
217
|
+
let g = r.x;
|
|
218
|
+
h.forEach((i) => {
|
|
219
|
+
const s = i.a / k;
|
|
220
|
+
f[i.i] = { x: g, y: r.y, w: s, h: k }, g += s;
|
|
221
|
+
}), r = { x: r.x, y: r.y + k, w: r.w, h: r.h - k };
|
|
222
|
+
}
|
|
223
|
+
};
|
|
224
|
+
for (const h of o) {
|
|
225
|
+
const p = Math.min(r.w, r.h);
|
|
226
|
+
!m.length || b([...m, h], p) <= b(m, p) ? m.push(h) : ($(m), m = [h]);
|
|
227
|
+
}
|
|
228
|
+
return m.length && $(m), f;
|
|
229
|
+
}
|
|
230
|
+
function sa(a) {
|
|
231
|
+
const c = {};
|
|
232
|
+
for (const t of String(a ?? "").split(";")) {
|
|
233
|
+
const e = t.indexOf(":");
|
|
234
|
+
if (e < 0) continue;
|
|
235
|
+
const o = t.slice(0, e).trim();
|
|
236
|
+
o && (c[o.startsWith("--") ? o : o.replace(/-([a-z])/g, (f, r) => r.toUpperCase())] = t.slice(e + 1).trim());
|
|
237
|
+
}
|
|
238
|
+
return c;
|
|
239
|
+
}
|
|
240
|
+
function ua({
|
|
241
|
+
title: a = "Top pages",
|
|
242
|
+
subtitle: c = "Unique visitors, last 30 days",
|
|
243
|
+
items: t = [
|
|
244
|
+
{ label: "/pricing", value: 18420 },
|
|
245
|
+
{ label: "/docs/getting-started", value: 15210 },
|
|
246
|
+
{ label: "/", value: 12980 },
|
|
247
|
+
{ label: "/blog/react-19", value: 9340 },
|
|
248
|
+
{ label: "/components", value: 7120 },
|
|
249
|
+
{ label: "/changelog", value: 4310 }
|
|
250
|
+
],
|
|
251
|
+
sort: e = !0,
|
|
252
|
+
highlight: o,
|
|
253
|
+
prefix: f = "",
|
|
254
|
+
suffix: r = "",
|
|
255
|
+
color: m = "var(--chart-1, #3987e5)",
|
|
256
|
+
variant: b = "glass",
|
|
257
|
+
size: $ = "md",
|
|
258
|
+
className: h = ""
|
|
259
|
+
}) {
|
|
260
|
+
const p = e ? [...t].sort((i, s) => s.value - i.value) : t, k = Math.max(...p.map((i) => i.value)) || 1, g = (i) => T(i, f, r);
|
|
261
|
+
return /* @__PURE__ */ l(P, { children: /* @__PURE__ */ l(B, { title: a, subtitle: c, variant: b, size: $, className: h, table: { headers: ["Item", "Value"], rows: p.map((i) => [i.label, g(i.value)]) }, children: /* @__PURE__ */ l("ol", { className: "hb", "aria-label": a, "data-rk-344822": "", children: p.map((i, s) => {
|
|
262
|
+
const u = o && o !== i.label;
|
|
263
|
+
return /* @__PURE__ */ _("li", { className: "hb__row cf-mark", tabIndex: 0, style: sa(`--hb-w:${i.value / k * 100}%; --hb-c:${m}; --hb-o:${u ? 0.35 : 1}; --hb-i:${s}`), "data-tip-title": i.label, "data-tip": `${m}::${g(i.value)} · ${(i.value / k * 100).toFixed(0)}% of top`, "aria-label": `${s + 1}. ${i.label}: ${g(i.value)}`, "data-rk-344822": "", children: [
|
|
264
|
+
/* @__PURE__ */ l("span", { className: "hb__label", "data-rk-344822": "", children: i.label }),
|
|
265
|
+
/* @__PURE__ */ l("span", { className: "hb__track", "aria-hidden": "true", "data-rk-344822": "", children: /* @__PURE__ */ l("span", { className: "hb__bar", "data-rk-344822": "" }) }),
|
|
266
|
+
/* @__PURE__ */ l("span", { className: "hb__value", "data-rk-344822": "", children: g(i.value) })
|
|
267
|
+
] }, s);
|
|
268
|
+
}) }) }) });
|
|
269
|
+
}
|
|
270
|
+
function da({
|
|
271
|
+
data: a = [12, 15, 11, 18, 17, 22, 19, 25, 24, 29, 27, 33],
|
|
272
|
+
label: c = "Trend, last 12 periods",
|
|
273
|
+
variant: t = "area",
|
|
274
|
+
size: e = "md",
|
|
275
|
+
color: o,
|
|
276
|
+
showExtremes: f = !1,
|
|
277
|
+
className: r = ""
|
|
278
|
+
}) {
|
|
279
|
+
const m = { sm: [80, 24], md: [140, 36], lg: [220, 56] }[e], [b, $] = m, h = 3, p = a[a.length - 1] >= a[0], k = o ?? (p ? aa : ta), g = Z(Math.min(...a), Math.max(...a), $ - h, h), i = (y) => h + y / Math.max(1, a.length - 1) * (b - h * 2), s = a.map((y, W) => [i(W), g(y)]), u = s[s.length - 1], M = a.indexOf(Math.min(...a)), C = a.indexOf(Math.max(...a)), v = (b - h * 2) / a.length - 2, N = a[0] ? ((a[a.length - 1] - a[0]) / Math.abs(a[0]) * 100).toFixed(0) : "0";
|
|
280
|
+
return /* @__PURE__ */ l(P, { children: /* @__PURE__ */ l("svg", { className: `spark spark--${e} ${r}`, viewBox: `0 0 ${b} ${$}`, width: b, height: $, role: "img", "aria-label": `${c}: from ${a[0]} to ${a[a.length - 1]} (${p ? "+" : ""}${N}%)`, "data-rk-cd2e33": "", children: t === "bars" ? a.map((y, W) => {
|
|
281
|
+
const S = g(y);
|
|
282
|
+
return /* @__PURE__ */ l("rect", { x: h + W * (v + 2), y: S, width: Math.max(1, v), height: Math.max(1, $ - h - S), rx: "1.5", fill: k, opacity: W === a.length - 1 ? 1 : 0.55, "data-rk-cd2e33": "" }, W);
|
|
283
|
+
}) : /* @__PURE__ */ _(P, { children: [
|
|
284
|
+
t === "area" && /* @__PURE__ */ l("path", { d: K(s, $), fill: k, fillOpacity: "0.16", "data-rk-cd2e33": "" }),
|
|
285
|
+
/* @__PURE__ */ l("path", { d: G(s), fill: "none", stroke: k, strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round", "data-rk-cd2e33": "" }),
|
|
286
|
+
f && /* @__PURE__ */ _(P, { children: [
|
|
287
|
+
/* @__PURE__ */ l("circle", { cx: s[M][0], cy: s[M][1], r: "2.5", fill: "var(--c-text-3, #8a8a8a)", "data-rk-cd2e33": "" }),
|
|
288
|
+
/* @__PURE__ */ l("circle", { cx: s[C][0], cy: s[C][1], r: "2.5", fill: "var(--c-text-1, #fff)", "data-rk-cd2e33": "" })
|
|
289
|
+
] }),
|
|
290
|
+
/* @__PURE__ */ l("circle", { cx: u[0], cy: u[1], r: "3", fill: k, stroke: "var(--chart-surface, #0d0d0f)", strokeWidth: "1.5", "data-rk-cd2e33": "" })
|
|
291
|
+
] }) }) });
|
|
292
|
+
}
|
|
293
|
+
function $a({
|
|
294
|
+
label: a = "Monthly recurring revenue",
|
|
295
|
+
value: c = "$84,210",
|
|
296
|
+
change: t = 12.4,
|
|
297
|
+
period: e = "vs last month",
|
|
298
|
+
invert: o = !1,
|
|
299
|
+
trend: f = [52, 55, 54, 60, 63, 61, 68, 72, 70, 76, 80, 84],
|
|
300
|
+
variant: r = "glass",
|
|
301
|
+
size: m = "md",
|
|
302
|
+
className: b = ""
|
|
303
|
+
}) {
|
|
304
|
+
const $ = t >= 0, h = o ? !$ : $;
|
|
305
|
+
return /* @__PURE__ */ l(P, { children: /* @__PURE__ */ _("article", { className: `kpi kpi--${r} kpi--${m} ${b}`, "aria-label": `${a}: ${c}, ${$ ? "up" : "down"} ${Math.abs(t)}% ${e}`, "data-rk-727d83": "", children: [
|
|
306
|
+
/* @__PURE__ */ _("header", { className: "kpi__head", "data-rk-727d83": "", children: [
|
|
307
|
+
/* @__PURE__ */ l("h3", { className: "kpi__label", "data-rk-727d83": "", children: a }),
|
|
308
|
+
/* @__PURE__ */ _("span", { className: `kpi__chip ${h ? "kpi__chip--good" : "kpi__chip--bad"}`, "data-rk-727d83": "", children: [
|
|
309
|
+
/* @__PURE__ */ l("svg", { width: "12", height: "12", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", "data-rk-727d83": "", children: $ ? /* @__PURE__ */ l("path", { d: "M7 17 17 7M9 7h8v8", "data-rk-727d83": "" }) : /* @__PURE__ */ l("path", { d: "M7 7l10 10M17 9v8H9", "data-rk-727d83": "" }) }),
|
|
310
|
+
$ ? "+" : "−",
|
|
311
|
+
Math.abs(t),
|
|
312
|
+
"%"
|
|
313
|
+
] })
|
|
314
|
+
] }),
|
|
315
|
+
/* @__PURE__ */ l("p", { className: "kpi__value", "data-rk-727d83": "", children: c }),
|
|
316
|
+
/* @__PURE__ */ _("div", { className: "kpi__foot", "data-rk-727d83": "", children: [
|
|
317
|
+
/* @__PURE__ */ l("span", { className: "kpi__period", "data-rk-727d83": "", children: e }),
|
|
318
|
+
f.length > 1 && /* @__PURE__ */ l(da, { data: f, size: m === "lg" ? "lg" : "md", color: h ? "var(--chart-pos, #34c38f)" : "var(--chart-neg, #f06a6a)", label: `${a} trend` })
|
|
319
|
+
] })
|
|
320
|
+
] }) });
|
|
321
|
+
}
|
|
322
|
+
function ka({
|
|
323
|
+
title: a = "Weekly active users",
|
|
324
|
+
subtitle: c = "Last 12 weeks, by platform",
|
|
325
|
+
categories: t = ["W1", "W2", "W3", "W4", "W5", "W6", "W7", "W8", "W9", "W10", "W11", "W12"],
|
|
326
|
+
series: e = [
|
|
327
|
+
{ name: "Web", data: [4200, 4580, 4410, 5020, 5390, 5210, 5870, 6120, 6050, 6680, 7010, 7420] },
|
|
328
|
+
{ name: "Mobile", data: [2100, 2350, 2600, 2550, 2980, 3310, 3240, 3620, 3900, 4150, 4080, 4560] }
|
|
329
|
+
],
|
|
330
|
+
curve: o = "smooth",
|
|
331
|
+
area: f = !0,
|
|
332
|
+
dots: r = !1,
|
|
333
|
+
prefix: m = "",
|
|
334
|
+
suffix: b = "",
|
|
335
|
+
height: $ = 280,
|
|
336
|
+
colors: h,
|
|
337
|
+
variant: p = "glass",
|
|
338
|
+
size: k = "md",
|
|
339
|
+
className: g = ""
|
|
340
|
+
}) {
|
|
341
|
+
const s = $, u = { t: 12, r: 16, b: 28, l: 44 }, M = e.flatMap((n) => n.data), C = U(Math.min(0, ...M), Math.max(...M), 4), v = Z(C[0], C[C.length - 1], s - u.b, u.t), N = t.length, y = (n) => u.l + (N <= 1 ? 0 : n / (N - 1) * (640 - u.l - u.r)), W = la("line"), S = N > 1 ? (640 - u.l - u.r) / (N - 1) : 640, I = Math.ceil(N / 8), j = e.slice(0, 8).map((n, d) => {
|
|
342
|
+
const x = n.data.map((F, w) => [y(w), v(F)]);
|
|
343
|
+
return {
|
|
344
|
+
name: n.name,
|
|
345
|
+
color: q(d, h),
|
|
346
|
+
pts: x,
|
|
347
|
+
d: H(x, o),
|
|
348
|
+
area: K(x, s - u.b, o)
|
|
349
|
+
};
|
|
350
|
+
}), L = (n) => T(n, m, b);
|
|
351
|
+
return /* @__PURE__ */ l(P, { children: /* @__PURE__ */ l(B, { title: a, subtitle: c, variant: p, size: k, className: g, legend: j.map((n) => ({ label: n.name, color: n.color })), table: {
|
|
352
|
+
headers: ["Period", ...e.map((n) => n.name)],
|
|
353
|
+
rows: t.map((n, d) => [n, ...e.map((x) => L(x.data[d]))])
|
|
354
|
+
}, children: /* @__PURE__ */ _("svg", { viewBox: `0 0 640 ${s}`, role: "img", "aria-label": `${a}: line chart with ${e.length} series over ${N} periods`, "data-rk-34cbfe": "", children: [
|
|
355
|
+
/* @__PURE__ */ l("defs", { "data-rk-34cbfe": "", children: j.map((n, d) => /* @__PURE__ */ _("linearGradient", { id: `${W}-g${d}`, x1: "0", y1: "0", x2: "0", y2: "1", "data-rk-34cbfe": "", children: [
|
|
356
|
+
/* @__PURE__ */ l("stop", { offset: "0%", stopColor: n.color, stopOpacity: "0.22", "data-rk-34cbfe": "" }),
|
|
357
|
+
/* @__PURE__ */ l("stop", { offset: "100%", stopColor: n.color, stopOpacity: "0", "data-rk-34cbfe": "" })
|
|
358
|
+
] }, d)) }),
|
|
359
|
+
C.map((n, d) => /* @__PURE__ */ _("g", { "data-rk-34cbfe": "", children: [
|
|
360
|
+
/* @__PURE__ */ l("line", { className: "cf-grid", x1: u.l, x2: 640 - u.r, y1: v(n), y2: v(n), "data-rk-34cbfe": "" }),
|
|
361
|
+
/* @__PURE__ */ l("text", { className: "cf-label", x: u.l - 8, y: v(n) + 4, textAnchor: "end", "data-rk-34cbfe": "", children: L(n) })
|
|
362
|
+
] }, d)),
|
|
363
|
+
t.map((n, d) => d % I === 0 && /* @__PURE__ */ l("text", { className: "cf-label", x: y(d), y: s - 8, textAnchor: "middle", "data-rk-34cbfe": "", children: n }, d)),
|
|
364
|
+
f && j.map((n, d) => /* @__PURE__ */ l("path", { d: n.area, fill: `url(#${W}-g${d})`, "aria-hidden": "true", "data-rk-34cbfe": "" }, d)),
|
|
365
|
+
j.map((n, d) => /* @__PURE__ */ l("path", { className: "lc__line", d: n.d, fill: "none", stroke: n.color, strokeWidth: "2", strokeLinejoin: "round", strokeLinecap: "round", "aria-hidden": "true", "data-rk-34cbfe": "" }, d)),
|
|
366
|
+
r && j.flatMap((n, d) => n.pts.map(([x, F], w) => /* @__PURE__ */ l("circle", { cx: x, cy: F, r: "4", fill: n.color, stroke: "var(--chart-surface, #0d0d0f)", strokeWidth: "2", "aria-hidden": "true", "data-rk-34cbfe": "" }, `${d}-${w}`))),
|
|
367
|
+
t.map((n, d) => /* @__PURE__ */ _("g", { className: "cf-hit-group", "data-rk-34cbfe": "", children: [
|
|
368
|
+
/* @__PURE__ */ l("line", { className: "cf-cross", x1: y(d), x2: y(d), y1: u.t, y2: s - u.b, "data-rk-34cbfe": "" }),
|
|
369
|
+
j.map((x, F) => {
|
|
370
|
+
var w, A;
|
|
371
|
+
return /* @__PURE__ */ l("circle", { className: "cf-cross", cx: (w = x.pts[d]) == null ? void 0 : w[0], cy: (A = x.pts[d]) == null ? void 0 : A[1], r: "4.5", fill: x.color, stroke: "#fff", strokeWidth: "1.5", "data-rk-34cbfe": "" }, F);
|
|
372
|
+
}),
|
|
373
|
+
/* @__PURE__ */ l("rect", { className: "cf-hit", x: y(d) - S / 2, y: u.t, width: S, height: s - u.t - u.b, tabIndex: 0, role: "img", "aria-label": `${n}: ${e.map((x) => `${x.name} ${L(x.data[d])}`).join(", ")}`, "data-tip-title": n, "data-tip": j.map((x, F) => `${x.color}::${x.name}: ${L(e[F].data[d])}`).join("|"), "data-rk-34cbfe": "" })
|
|
374
|
+
] }, d))
|
|
375
|
+
] }) }) });
|
|
376
|
+
}
|
|
377
|
+
function xa({
|
|
378
|
+
title: a = "Traffic by channel",
|
|
379
|
+
subtitle: c = "Sessions per month, stacked",
|
|
380
|
+
categories: t = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep"],
|
|
381
|
+
series: e = [
|
|
382
|
+
{ name: "Organic", data: [320, 340, 390, 420, 460, 480, 530, 560, 610] },
|
|
383
|
+
{ name: "Paid", data: [180, 210, 200, 240, 260, 250, 270, 300, 290] },
|
|
384
|
+
{ name: "Referral", data: [90, 110, 120, 130, 125, 150, 170, 160, 190] }
|
|
385
|
+
],
|
|
386
|
+
normalized: o = !1,
|
|
387
|
+
curve: f = "smooth",
|
|
388
|
+
prefix: r = "",
|
|
389
|
+
suffix: m = "",
|
|
390
|
+
height: b = 280,
|
|
391
|
+
colors: $,
|
|
392
|
+
variant: h = "glass",
|
|
393
|
+
size: p = "md",
|
|
394
|
+
className: k = ""
|
|
395
|
+
}) {
|
|
396
|
+
const i = b, s = { t: 12, r: 16, b: 28, l: 44 }, u = t.length, M = t.map((n, d) => e.reduce((x, F) => x + (F.data[d] ?? 0), 0)), C = (n, d) => {
|
|
397
|
+
const x = e[n].data[d] ?? 0;
|
|
398
|
+
return o ? x / (M[d] || 1) * 100 : x;
|
|
399
|
+
}, v = o ? [0, 25, 50, 75, 100] : U(0, Math.max(...M), 4), N = Z(0, v[v.length - 1], i - s.b, s.t), y = (n) => s.l + (u <= 1 ? 0 : n / (u - 1) * (640 - s.l - s.r)), W = u > 1 ? (640 - s.l - s.r) / (u - 1) : 640, S = t.map(() => 0), I = e.slice(0, 8).map((n, d) => {
|
|
400
|
+
const x = t.map((w, A) => [y(A), N(S[A])]);
|
|
401
|
+
t.forEach((w, A) => {
|
|
402
|
+
S[A] += C(d, A);
|
|
403
|
+
});
|
|
404
|
+
const F = t.map((w, A) => [y(A), N(S[A])]);
|
|
405
|
+
return { name: n.name, color: q(d, $), d: na(F, x, f), top: H(F, f) };
|
|
406
|
+
}), j = (n) => o ? `${n.toFixed(0)}%` : T(n, r, m), L = (n) => T(n, r, m);
|
|
407
|
+
return /* @__PURE__ */ l(P, { children: /* @__PURE__ */ l(B, { title: a, subtitle: c, variant: h, size: p, className: k, legend: I.map((n) => ({ label: n.name, color: n.color })), table: {
|
|
408
|
+
headers: ["Period", ...e.map((n) => n.name), "Total"],
|
|
409
|
+
rows: t.map((n, d) => [n, ...e.map((x) => L(x.data[d])), L(M[d])])
|
|
410
|
+
}, children: /* @__PURE__ */ _("svg", { viewBox: `0 0 640 ${i}`, role: "img", "aria-label": `${a}: stacked area chart`, children: [
|
|
411
|
+
v.map((n, d) => /* @__PURE__ */ _("g", { children: [
|
|
412
|
+
/* @__PURE__ */ l("line", { className: "cf-grid", x1: s.l, x2: 640 - s.r, y1: N(n), y2: N(n) }),
|
|
413
|
+
/* @__PURE__ */ l("text", { className: "cf-label", x: s.l - 8, y: N(n) + 4, textAnchor: "end", children: j(n) })
|
|
414
|
+
] }, d)),
|
|
415
|
+
t.map((n, d) => /* @__PURE__ */ l("text", { className: "cf-label", x: y(d), y: i - 8, textAnchor: "middle", children: n }, d)),
|
|
416
|
+
I.map((n, d) => /* @__PURE__ */ _("g", { "aria-hidden": "true", children: [
|
|
417
|
+
/* @__PURE__ */ l("path", { d: n.d, fill: n.color, fillOpacity: "0.32" }),
|
|
418
|
+
/* @__PURE__ */ l("path", { d: n.top, fill: "none", stroke: n.color, strokeWidth: "2" })
|
|
419
|
+
] }, d)),
|
|
420
|
+
t.map((n, d) => /* @__PURE__ */ _("g", { className: "cf-hit-group", children: [
|
|
421
|
+
/* @__PURE__ */ l("line", { className: "cf-cross", x1: y(d), x2: y(d), y1: s.t, y2: i - s.b }),
|
|
422
|
+
/* @__PURE__ */ l("rect", { className: "cf-hit", x: y(d) - W / 2, y: s.t, width: W, height: i - s.t - s.b, tabIndex: 0, role: "img", "aria-label": `${n}: ${e.map((x) => `${x.name} ${L(x.data[d])}`).join(", ")}; total ${L(M[d])}`, "data-tip-title": `${n} · ${L(M[d])}`, "data-tip": [...I].reverse().map((x, F) => {
|
|
423
|
+
const w = I.length - 1 - F;
|
|
424
|
+
return `${x.color}::${x.name}: ${L(e[w].data[d])}${o ? ` (${C(w, d).toFixed(0)}%)` : ""}`;
|
|
425
|
+
}).join("|") })
|
|
426
|
+
] }, d))
|
|
427
|
+
] }) }) });
|
|
428
|
+
}
|
|
429
|
+
export {
|
|
430
|
+
B as C,
|
|
431
|
+
ua as H,
|
|
432
|
+
$a as K,
|
|
433
|
+
ka as L,
|
|
434
|
+
ta as N,
|
|
435
|
+
aa as P,
|
|
436
|
+
da as S,
|
|
437
|
+
xa as a,
|
|
438
|
+
na as b,
|
|
439
|
+
fa as c,
|
|
440
|
+
q as d,
|
|
441
|
+
oa as e,
|
|
442
|
+
T as f,
|
|
443
|
+
R as g,
|
|
444
|
+
ra as h,
|
|
445
|
+
G as i,
|
|
446
|
+
K as j,
|
|
447
|
+
pa as k,
|
|
448
|
+
J as l,
|
|
449
|
+
U as n,
|
|
450
|
+
E as p,
|
|
451
|
+
ma as q,
|
|
452
|
+
Z as s
|
|
453
|
+
};
|