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,384 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as a, Fragment as L, jsxs as m } from "react/jsx-runtime";
|
|
3
|
+
import { n as D, C as O, b as Q, l as z, s as Z, f as I, c as U, d as T, S as q, e as E, g as K } from "./StackedAreaChart-DF1-3rDG.js";
|
|
4
|
+
function ra({
|
|
5
|
+
title: p = "MRR forecast",
|
|
6
|
+
subtitle: u = "Actuals vs. projected, with 80% confidence",
|
|
7
|
+
categories: t = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
|
|
8
|
+
actual: r = [48, 51, 55, 54, 59, 63, 68],
|
|
9
|
+
forecast: l = [72, 76, 80, 85, 90],
|
|
10
|
+
confidence: g = 0.14,
|
|
11
|
+
prefix: f = "$",
|
|
12
|
+
suffix: x = "k",
|
|
13
|
+
height: F = 280,
|
|
14
|
+
color: _ = "var(--chart-1, #3987e5)",
|
|
15
|
+
variant: w = "glass",
|
|
16
|
+
size: N = "md",
|
|
17
|
+
className: s = ""
|
|
18
|
+
}) {
|
|
19
|
+
const b = F, c = { t: 16, r: 16, b: 28, l: 48 }, i = t.length, o = r.length, S = [...r, ...l], $ = l.map((k, h) => k * (1 + g * ((h + 1) / l.length))), n = l.map((k, h) => k * (1 - g * ((h + 1) / l.length))), y = D(Math.min(...S, ...n) * 0.9, Math.max(...$), 4), W = Z(y[0], y[y.length - 1], b - c.b, c.t), d = (k) => c.l + k / Math.max(1, i - 1) * (640 - c.l - c.r), v = (640 - c.l - c.r) / Math.max(1, i - 1), P = r.map((k, h) => [d(h), W(k)]), M = P[o - 1], C = [M, ...l.map((k, h) => [d(o + h), W(k)])], H = {
|
|
20
|
+
up: [M, ...$.map((k, h) => [d(o + h), W(k)])],
|
|
21
|
+
down: [M, ...n.map((k, h) => [d(o + h), W(k)])]
|
|
22
|
+
}, B = (l[l.length - 1] - r[o - 1]) / r[o - 1] * 100, A = (k) => I(k, f, x);
|
|
23
|
+
return /* @__PURE__ */ a(L, { children: /* @__PURE__ */ a(O, { title: p, subtitle: u, value: A(l[l.length - 1]), delta: `${B >= 0 ? "+" : ""}${B.toFixed(0)}% projected`, deltaPositive: B >= 0, variant: w, size: N, className: s, legend: [{ label: "Actual", color: _ }, { label: "Forecast", color: `color-mix(in srgb, ${_} 55%, transparent)` }], table: {
|
|
24
|
+
headers: ["Period", "Actual", "Forecast", "Low", "High"],
|
|
25
|
+
rows: t.map((k, h) => o > h ? [k, A(r[h]), "—", "—", "—"] : [k, "—", A(l[h - o]), A(n[h - o]), A($[h - o])])
|
|
26
|
+
}, children: /* @__PURE__ */ m("svg", { viewBox: `0 0 640 ${b}`, role: "img", "aria-label": `${p}: actuals and forecast line chart`, children: [
|
|
27
|
+
y.map((k, h) => /* @__PURE__ */ m("g", { children: [
|
|
28
|
+
/* @__PURE__ */ a("line", { className: "cf-grid", x1: c.l, x2: 640 - c.r, y1: W(k), y2: W(k) }),
|
|
29
|
+
/* @__PURE__ */ a("text", { className: "cf-label", x: c.l - 8, y: W(k) + 4, textAnchor: "end", children: A(k) })
|
|
30
|
+
] }, h)),
|
|
31
|
+
t.map((k, h) => /* @__PURE__ */ a("text", { className: "cf-label", x: d(h), y: b - 8, textAnchor: "middle", children: k }, h)),
|
|
32
|
+
/* @__PURE__ */ a("rect", { x: M[0], y: c.t, width: 640 - c.r - M[0], height: b - c.t - c.b, fill: "rgb(var(--ink-rgb, 255 255 255) / 0.025)", "aria-hidden": "true" }),
|
|
33
|
+
/* @__PURE__ */ a("line", { className: "cf-axis", x1: M[0], x2: M[0], y1: c.t, y2: b - c.b }),
|
|
34
|
+
/* @__PURE__ */ a("text", { className: "cf-label", x: M[0] + 6, y: c.t + 10, children: "Today" }),
|
|
35
|
+
/* @__PURE__ */ a("path", { d: Q(H.up, H.down, "linear"), fill: _, fillOpacity: "0.14", "aria-hidden": "true" }),
|
|
36
|
+
/* @__PURE__ */ a("path", { d: z(C), fill: "none", stroke: _, strokeWidth: "2", strokeDasharray: "5 5", strokeOpacity: "0.85", "aria-hidden": "true" }),
|
|
37
|
+
/* @__PURE__ */ a("path", { d: z(P), fill: "none", stroke: _, strokeWidth: "2", strokeLinejoin: "round", "aria-hidden": "true" }),
|
|
38
|
+
/* @__PURE__ */ a("circle", { cx: M[0], cy: M[1], r: "4.5", fill: _, stroke: "var(--chart-surface, #0d0d0f)", strokeWidth: "2", "aria-hidden": "true" }),
|
|
39
|
+
t.map((k, h) => {
|
|
40
|
+
const V = h >= o, R = V ? l[h - o] : r[h], J = V ? `${_}::Forecast: ${A(R)}|Range: ${A(n[h - o])} – ${A($[h - o])}` : `${_}::Actual: ${A(R)}`;
|
|
41
|
+
return /* @__PURE__ */ m("g", { className: "cf-hit-group", children: [
|
|
42
|
+
/* @__PURE__ */ a("line", { className: "cf-cross", x1: d(h), x2: d(h), y1: c.t, y2: b - c.b }),
|
|
43
|
+
/* @__PURE__ */ a("circle", { className: "cf-cross", cx: d(h), cy: W(R), r: "4.5", fill: _, stroke: "#fff", strokeWidth: "1.5" }),
|
|
44
|
+
/* @__PURE__ */ a("rect", { className: "cf-hit", x: d(h) - v / 2, y: c.t, width: v, height: b - c.t - c.b, tabIndex: 0, role: "img", "aria-label": `${k}: ${V ? "forecast" : "actual"} ${A(R)}`, "data-tip-title": k, "data-tip": J })
|
|
45
|
+
] }, h);
|
|
46
|
+
})
|
|
47
|
+
] }) }) });
|
|
48
|
+
}
|
|
49
|
+
function X(p) {
|
|
50
|
+
const u = {};
|
|
51
|
+
for (const t of String(p ?? "").split(";")) {
|
|
52
|
+
const r = t.indexOf(":");
|
|
53
|
+
if (r < 0) continue;
|
|
54
|
+
const l = t.slice(0, r).trim();
|
|
55
|
+
l && (u[l.startsWith("--") ? l : l.replace(/-([a-z])/g, (g, f) => f.toUpperCase())] = t.slice(r + 1).trim());
|
|
56
|
+
}
|
|
57
|
+
return u;
|
|
58
|
+
}
|
|
59
|
+
function la({
|
|
60
|
+
title: p = "Signup funnel",
|
|
61
|
+
subtitle: u = "Last 30 days",
|
|
62
|
+
stages: t = [
|
|
63
|
+
{ label: "Visited site", value: 48200 },
|
|
64
|
+
{ label: "Viewed pricing", value: 19800 },
|
|
65
|
+
{ label: "Started trial", value: 6400 },
|
|
66
|
+
{ label: "Activated", value: 3900 },
|
|
67
|
+
{ label: "Paid", value: 1240 }
|
|
68
|
+
],
|
|
69
|
+
color: r = "var(--chart-1, #3987e5)",
|
|
70
|
+
variant: l = "glass",
|
|
71
|
+
size: g = "md",
|
|
72
|
+
className: f = ""
|
|
73
|
+
}) {
|
|
74
|
+
var w, N;
|
|
75
|
+
const x = ((w = t[0]) == null ? void 0 : w.value) || 1, F = (((N = t[t.length - 1]) == null ? void 0 : N.value) ?? 0) / x * 100, _ = (s) => I(s);
|
|
76
|
+
return /* @__PURE__ */ a(L, { children: /* @__PURE__ */ a(O, { title: p, subtitle: u, value: `${F.toFixed(1)}%`, delta: "overall conversion", variant: l, size: g, className: f, table: {
|
|
77
|
+
headers: ["Stage", "Users", "% of top", "Step conversion"],
|
|
78
|
+
rows: t.map((s, e) => [s.label, _(s.value), `${(s.value / x * 100).toFixed(1)}%`, e ? `${(s.value / t[e - 1].value * 100).toFixed(1)}%` : "—"])
|
|
79
|
+
}, children: /* @__PURE__ */ a("ol", { className: "fn", "data-rk-9aefa4": "", children: t.map((s, e) => {
|
|
80
|
+
const b = s.value / x * 100, c = e ? s.value / t[e - 1].value * 100 : 100, i = 100 - e * (55 / Math.max(1, t.length - 1));
|
|
81
|
+
return /* @__PURE__ */ m("li", { className: "fn__stage", "data-rk-9aefa4": "", children: [
|
|
82
|
+
/* @__PURE__ */ m("div", { className: "fn__meta", "data-rk-9aefa4": "", children: [
|
|
83
|
+
/* @__PURE__ */ a("span", { className: "fn__label", "data-rk-9aefa4": "", children: s.label }),
|
|
84
|
+
/* @__PURE__ */ a("span", { className: "fn__value", "data-rk-9aefa4": "", children: _(s.value) })
|
|
85
|
+
] }),
|
|
86
|
+
/* @__PURE__ */ a("div", { className: "fn__track", "data-rk-9aefa4": "", children: /* @__PURE__ */ a("span", { className: "fn__bar cf-mark", tabIndex: 0, style: X(`width:${Math.max(2, b)}%; background:color-mix(in srgb, ${r} ${i}%, #0d0d0f)`), "aria-label": `${s.label}: ${_(s.value)}, ${b.toFixed(1)}% of top${e ? `, ${c.toFixed(1)}% from previous stage` : ""}`, "data-tip-title": s.label, "data-tip": `${_(s.value)} users|${b.toFixed(1)}% of top${e ? `|${c.toFixed(1)}% from previous` : ""}`, "data-rk-9aefa4": "" }) }),
|
|
87
|
+
e > 0 && /* @__PURE__ */ m("span", { className: "fn__drop", "aria-hidden": "true", "data-rk-9aefa4": "", children: [
|
|
88
|
+
/* @__PURE__ */ a("svg", { width: "10", height: "10", viewBox: "0 0 10 10", "data-rk-9aefa4": "", children: /* @__PURE__ */ a("path", { d: "M5 9 L9 3 H1 Z", fill: "currentColor", "data-rk-9aefa4": "" }) }),
|
|
89
|
+
(100 - c).toFixed(0),
|
|
90
|
+
"% drop"
|
|
91
|
+
] })
|
|
92
|
+
] }, e);
|
|
93
|
+
}) }) }) });
|
|
94
|
+
}
|
|
95
|
+
function ca({
|
|
96
|
+
title: p = "Monthly sales goal",
|
|
97
|
+
subtitle: u = "November",
|
|
98
|
+
value: t = 73400,
|
|
99
|
+
max: r = 1e5,
|
|
100
|
+
label: l = "of $100k goal",
|
|
101
|
+
prefix: g = "$",
|
|
102
|
+
suffix: f = "",
|
|
103
|
+
color: x = "var(--chart-1, #3987e5)",
|
|
104
|
+
variant: F = "glass",
|
|
105
|
+
size: _ = "md",
|
|
106
|
+
className: w = ""
|
|
107
|
+
}) {
|
|
108
|
+
const i = Math.max(0, Math.min(1, t / (r || 1))), o = -Math.PI / 2, S = Math.PI / 2, $ = (n) => I(n, g, f);
|
|
109
|
+
return /* @__PURE__ */ a(L, { children: /* @__PURE__ */ a(O, { title: p, subtitle: u, variant: F, size: _, className: w, table: { headers: ["Metric", "Value", "Goal", "% of goal"], rows: [[p, $(t), $(r), `${(i * 100).toFixed(1)}%`]] }, children: /* @__PURE__ */ m("div", { className: "gc", role: "meter", "aria-valuemin": 0, "aria-valuemax": r, "aria-valuenow": t, "aria-label": `${p}: ${$(t)} ${l}, ${(i * 100).toFixed(0)}%`, "data-rk-f7ded1": "", children: [
|
|
110
|
+
/* @__PURE__ */ m("svg", { viewBox: "0 0 260 150", "aria-hidden": "true", "data-rk-f7ded1": "", children: [
|
|
111
|
+
/* @__PURE__ */ a("path", { d: U(130, 132, 108, o, S), fill: "none", stroke: "rgb(var(--ink-rgb, 255 255 255) / 0.07)", strokeWidth: "18", strokeLinecap: "round", "data-rk-f7ded1": "" }),
|
|
112
|
+
i > 0 && /* @__PURE__ */ a("path", { className: "gc__arc", d: U(130, 132, 108, o, o + Math.PI * i), fill: "none", stroke: x, strokeWidth: "18", strokeLinecap: "round", "data-rk-f7ded1": "" }),
|
|
113
|
+
/* @__PURE__ */ a("text", { className: "cf-label", x: 22, y: 148, textAnchor: "middle", "data-rk-f7ded1": "", children: "0" }),
|
|
114
|
+
/* @__PURE__ */ a("text", { className: "cf-label", x: 238, y: 148, textAnchor: "middle", "data-rk-f7ded1": "", children: $(r) })
|
|
115
|
+
] }),
|
|
116
|
+
/* @__PURE__ */ m("div", { className: "gc__center", "data-rk-f7ded1": "", children: [
|
|
117
|
+
/* @__PURE__ */ a("span", { className: "gc__value", "data-rk-f7ded1": "", children: $(t) }),
|
|
118
|
+
/* @__PURE__ */ m("span", { className: "gc__label", "data-rk-f7ded1": "", children: [
|
|
119
|
+
(i * 100).toFixed(0),
|
|
120
|
+
"% ",
|
|
121
|
+
l
|
|
122
|
+
] })
|
|
123
|
+
] })
|
|
124
|
+
] }) }) });
|
|
125
|
+
}
|
|
126
|
+
function na({
|
|
127
|
+
title: p = "Revenue by region",
|
|
128
|
+
subtitle: u = "This year vs last year",
|
|
129
|
+
categories: t = ["NA", "EMEA", "LATAM", "APAC", "ANZ"],
|
|
130
|
+
series: r = [
|
|
131
|
+
{ name: "2025", data: [420, 310, 120, 260, 90] },
|
|
132
|
+
{ name: "2026", data: [510, 365, 168, 340, 112] }
|
|
133
|
+
],
|
|
134
|
+
prefix: l = "$",
|
|
135
|
+
suffix: g = "k",
|
|
136
|
+
height: f = 280,
|
|
137
|
+
colors: x,
|
|
138
|
+
variant: F = "glass",
|
|
139
|
+
size: _ = "md",
|
|
140
|
+
className: w = ""
|
|
141
|
+
}) {
|
|
142
|
+
const s = f, e = { t: 12, r: 12, b: 28, l: 48 }, b = D(0, Math.max(...r.flatMap((d) => d.data)), 4), c = Z(0, b[b.length - 1], s - e.b, e.t), i = (640 - e.l - e.r) / t.length, o = i * 0.72, S = 2, $ = (o - S * (r.length - 1)) / r.length, n = Math.min(4, $ / 2), y = (d) => I(d, l, g), W = (d, v, P, M) => {
|
|
143
|
+
const C = M - v;
|
|
144
|
+
if (C <= 0) return "";
|
|
145
|
+
const H = Math.min(n, C);
|
|
146
|
+
return `M${d},${M} V${v + H} Q${d},${v} ${d + H},${v} H${d + P - H} Q${d + P},${v} ${d + P},${v + H} V${M} Z`;
|
|
147
|
+
};
|
|
148
|
+
return /* @__PURE__ */ a(L, { children: /* @__PURE__ */ a(O, { title: p, subtitle: u, variant: F, size: _, className: w, legend: r.map((d, v) => ({ label: d.name, color: T(v, x) })), table: { headers: ["Category", ...r.map((d) => d.name)], rows: t.map((d, v) => [d, ...r.map((P) => y(P.data[v]))]) }, children: /* @__PURE__ */ m("svg", { viewBox: `0 0 640 ${s}`, role: "img", "aria-label": `${p}: grouped bar chart`, "data-rk-1a0e25": "", children: [
|
|
149
|
+
b.map((d, v) => /* @__PURE__ */ m("g", { "data-rk-1a0e25": "", children: [
|
|
150
|
+
/* @__PURE__ */ a("line", { className: d === 0 ? "cf-axis" : "cf-grid", x1: e.l, x2: 640 - e.r, y1: c(d), y2: c(d), "data-rk-1a0e25": "" }),
|
|
151
|
+
/* @__PURE__ */ a("text", { className: "cf-label", x: e.l - 8, y: c(d) + 4, textAnchor: "end", "data-rk-1a0e25": "", children: y(d) })
|
|
152
|
+
] }, v)),
|
|
153
|
+
t.map((d, v) => {
|
|
154
|
+
const P = e.l + v * i + (i - o) / 2;
|
|
155
|
+
return /* @__PURE__ */ m("g", { "data-rk-1a0e25": "", children: [
|
|
156
|
+
/* @__PURE__ */ a("text", { className: "cf-label", x: e.l + v * i + i / 2, y: s - 8, textAnchor: "middle", "data-rk-1a0e25": "", children: d }),
|
|
157
|
+
r.slice(0, 8).map((M, C) => {
|
|
158
|
+
const H = P + C * ($ + S), B = M.data[v] ?? 0;
|
|
159
|
+
return /* @__PURE__ */ a("path", { className: "cf-mark cf-dim gb__bar", d: W(H, c(B), $, c(0)), fill: T(C, x), tabIndex: 0, role: "img", "aria-label": `${d}, ${M.name}: ${y(B)}`, "data-tip-title": d, "data-tip": `${T(C, x)}::${M.name}: ${y(B)}`, "data-rk-1a0e25": "" }, C);
|
|
160
|
+
})
|
|
161
|
+
] }, v);
|
|
162
|
+
})
|
|
163
|
+
] }) }) });
|
|
164
|
+
}
|
|
165
|
+
function G(p) {
|
|
166
|
+
const u = {};
|
|
167
|
+
for (const t of String(p ?? "").split(";")) {
|
|
168
|
+
const r = t.indexOf(":");
|
|
169
|
+
if (r < 0) continue;
|
|
170
|
+
const l = t.slice(0, r).trim();
|
|
171
|
+
l && (u[l.startsWith("--") ? l : l.replace(/-([a-z])/g, (g, f) => f.toUpperCase())] = t.slice(r + 1).trim());
|
|
172
|
+
}
|
|
173
|
+
return u;
|
|
174
|
+
}
|
|
175
|
+
function da({
|
|
176
|
+
title: p = "Error rate by service",
|
|
177
|
+
subtitle: u = "Per weekday, % of requests",
|
|
178
|
+
rows: t = ["auth", "billing", "search", "uploads", "webhooks"],
|
|
179
|
+
columns: r = ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"],
|
|
180
|
+
values: l = [
|
|
181
|
+
[0.2, 0.3, 0.2, 0.4, 0.6, 0.1, 0.1],
|
|
182
|
+
[0.8, 1.2, 0.9, 1.6, 2.4, 0.4, 0.3],
|
|
183
|
+
[0.4, 0.5, 0.7, 0.6, 0.9, 0.3, 0.2],
|
|
184
|
+
[1.1, 1.4, 1.9, 2.8, 3.2, 0.9, 0.6],
|
|
185
|
+
[0.3, 0.2, 0.4, 0.5, 0.4, 0.2, 0.1]
|
|
186
|
+
],
|
|
187
|
+
showValues: g = !0,
|
|
188
|
+
suffix: f = "%",
|
|
189
|
+
color: x = "var(--chart-1, #3987e5)",
|
|
190
|
+
variant: F = "glass",
|
|
191
|
+
size: _ = "md",
|
|
192
|
+
className: w = ""
|
|
193
|
+
}) {
|
|
194
|
+
const N = l.flat(), s = Math.min(...N), e = Math.max(...N), b = (i) => e === s ? 1 : (i - s) / (e - s), c = (i) => `color-mix(in srgb, ${x} ${Math.round(12 + b(i) * 88)}%, #141416)`;
|
|
195
|
+
return /* @__PURE__ */ a(L, { children: /* @__PURE__ */ a(O, { title: p, subtitle: u, variant: F, size: _, className: w, table: { headers: ["", ...r], rows: t.map((i, o) => [i, ...l[o].map((S) => `${S}${f}`)]) }, children: /* @__PURE__ */ m("div", { className: "hm", style: G(`--hm-cols:${r.length}`), "data-rk-9ca6f8": "", children: [
|
|
196
|
+
/* @__PURE__ */ m("div", { className: "hm__grid", role: "grid", "aria-label": p, "data-rk-9ca6f8": "", children: [
|
|
197
|
+
/* @__PURE__ */ m("div", { className: "hm__row", role: "row", "data-rk-9ca6f8": "", children: [
|
|
198
|
+
/* @__PURE__ */ a("span", { className: "hm__corner", role: "columnheader", "data-rk-9ca6f8": "" }),
|
|
199
|
+
r.map((i, o) => /* @__PURE__ */ a("span", { className: "hm__col", role: "columnheader", "data-rk-9ca6f8": "", children: i }, o))
|
|
200
|
+
] }),
|
|
201
|
+
t.map((i, o) => /* @__PURE__ */ m("div", { className: "hm__row", role: "row", "data-rk-9ca6f8": "", children: [
|
|
202
|
+
/* @__PURE__ */ a("span", { className: "hm__rowlabel", role: "rowheader", "data-rk-9ca6f8": "", children: i }),
|
|
203
|
+
r.map((S, $) => {
|
|
204
|
+
var y;
|
|
205
|
+
const n = ((y = l[o]) == null ? void 0 : y[$]) ?? 0;
|
|
206
|
+
return /* @__PURE__ */ a("span", { className: "hm__cell cf-mark", role: "gridcell", tabIndex: 0, style: G(`background:${c(n)}`), "aria-label": `${i}, ${S}: ${n}${f}`, "data-tip-title": `${i} · ${S}`, "data-tip": `${n}${f}`, "data-rk-9ca6f8": "", children: g && /* @__PURE__ */ a("span", { className: b(n) > 0.55 ? "hm__v hm__v--strong" : "hm__v", "data-rk-9ca6f8": "", children: n }) }, $);
|
|
207
|
+
})
|
|
208
|
+
] }, o))
|
|
209
|
+
] }),
|
|
210
|
+
/* @__PURE__ */ m("div", { className: "hm__scale", "aria-hidden": "true", "data-rk-9ca6f8": "", children: [
|
|
211
|
+
/* @__PURE__ */ m("span", { "data-rk-9ca6f8": "", children: [
|
|
212
|
+
s,
|
|
213
|
+
f
|
|
214
|
+
] }),
|
|
215
|
+
/* @__PURE__ */ a("span", { className: "hm__ramp", style: G(`background:linear-gradient(90deg, ${c(s)}, ${c(e)})`), "data-rk-9ca6f8": "" }),
|
|
216
|
+
/* @__PURE__ */ m("span", { "data-rk-9ca6f8": "", children: [
|
|
217
|
+
e,
|
|
218
|
+
f
|
|
219
|
+
] })
|
|
220
|
+
] })
|
|
221
|
+
] }) }) });
|
|
222
|
+
}
|
|
223
|
+
function Y(p) {
|
|
224
|
+
const u = {};
|
|
225
|
+
for (const t of String(p ?? "").split(";")) {
|
|
226
|
+
const r = t.indexOf(":");
|
|
227
|
+
if (r < 0) continue;
|
|
228
|
+
const l = t.slice(0, r).trim();
|
|
229
|
+
l && (u[l.startsWith("--") ? l : l.replace(/-([a-z])/g, (g, f) => f.toUpperCase())] = t.slice(r + 1).trim());
|
|
230
|
+
}
|
|
231
|
+
return u;
|
|
232
|
+
}
|
|
233
|
+
function sa({
|
|
234
|
+
title: p = "Channel performance",
|
|
235
|
+
subtitle: u = "Signups this month vs last month",
|
|
236
|
+
rows: t = [
|
|
237
|
+
{ label: "Organic search", current: 4820, previous: 4310, trend: [30, 34, 33, 38, 41, 44, 48] },
|
|
238
|
+
{ label: "Direct", current: 3120, previous: 3290, trend: [36, 35, 34, 33, 33, 32, 31] },
|
|
239
|
+
{ label: "Newsletter", current: 1840, previous: 1220, trend: [10, 12, 13, 14, 16, 17, 18] },
|
|
240
|
+
{ label: "Paid social", current: 1310, previous: 1480, trend: [16, 15, 15, 14, 14, 13, 13] },
|
|
241
|
+
{ label: "Partners", current: 960, previous: 710, trend: [6, 7, 7, 8, 8, 9, 10] }
|
|
242
|
+
],
|
|
243
|
+
currentLabel: r = "This month",
|
|
244
|
+
previousLabel: l = "Last month",
|
|
245
|
+
prefix: g = "",
|
|
246
|
+
suffix: f = "",
|
|
247
|
+
color: x = "var(--chart-1, #3987e5)",
|
|
248
|
+
variant: F = "glass",
|
|
249
|
+
size: _ = "md",
|
|
250
|
+
className: w = ""
|
|
251
|
+
}) {
|
|
252
|
+
const N = Math.max(...t.map((e) => e.current)) || 1, s = (e) => I(e, g, f, !1);
|
|
253
|
+
return /* @__PURE__ */ a(L, { children: /* @__PURE__ */ a(O, { title: p, subtitle: u, variant: F, size: _, className: w, children: /* @__PURE__ */ a("div", { className: "md", "data-rk-df9b34": "", children: /* @__PURE__ */ m("table", { className: "md__table", "data-rk-df9b34": "", children: [
|
|
254
|
+
/* @__PURE__ */ a("thead", { "data-rk-df9b34": "", children: /* @__PURE__ */ m("tr", { "data-rk-df9b34": "", children: [
|
|
255
|
+
/* @__PURE__ */ a("th", { scope: "col", "data-rk-df9b34": "", children: "Metric" }),
|
|
256
|
+
/* @__PURE__ */ a("th", { scope: "col", className: "md__num", "data-rk-df9b34": "", children: r }),
|
|
257
|
+
/* @__PURE__ */ a("th", { scope: "col", className: "md__num md__hide-sm", "data-rk-df9b34": "", children: l }),
|
|
258
|
+
/* @__PURE__ */ a("th", { scope: "col", className: "md__num", "data-rk-df9b34": "", children: "Change" }),
|
|
259
|
+
/* @__PURE__ */ a("th", { scope: "col", className: "md__hide-sm", "data-rk-df9b34": "", children: /* @__PURE__ */ a("span", { className: "sr-only", "data-rk-df9b34": "", children: "Trend" }) })
|
|
260
|
+
] }) }),
|
|
261
|
+
/* @__PURE__ */ a("tbody", { "data-rk-df9b34": "", children: t.map((e, b) => {
|
|
262
|
+
const c = e.previous ? (e.current - e.previous) / e.previous * 100 : 0, i = c >= 0, o = e.invert ? !i : i;
|
|
263
|
+
return /* @__PURE__ */ m("tr", { "data-rk-df9b34": "", children: [
|
|
264
|
+
/* @__PURE__ */ m("th", { scope: "row", "data-rk-df9b34": "", children: [
|
|
265
|
+
/* @__PURE__ */ a("span", { className: "md__label", "data-rk-df9b34": "", children: e.label }),
|
|
266
|
+
/* @__PURE__ */ a("span", { className: "md__bar", "aria-hidden": "true", "data-rk-df9b34": "", children: /* @__PURE__ */ a("span", { style: Y(`width:${e.current / N * 100}%; background:${x}`), "data-rk-df9b34": "" }) })
|
|
267
|
+
] }),
|
|
268
|
+
/* @__PURE__ */ a("td", { className: "md__num md__strong", "data-rk-df9b34": "", children: s(e.current) }),
|
|
269
|
+
/* @__PURE__ */ a("td", { className: "md__num md__hide-sm", "data-rk-df9b34": "", children: s(e.previous) }),
|
|
270
|
+
/* @__PURE__ */ a("td", { className: "md__num", "data-rk-df9b34": "", children: /* @__PURE__ */ m("span", { className: `md__delta ${o ? "md__delta--good" : "md__delta--bad"}`, "data-rk-df9b34": "", children: [
|
|
271
|
+
/* @__PURE__ */ a("svg", { width: "10", height: "10", viewBox: "0 0 10 10", "aria-hidden": "true", "data-rk-df9b34": "", children: /* @__PURE__ */ a("path", { d: i ? "M5 1 L9 7 H1 Z" : "M5 9 L9 3 H1 Z", fill: "currentColor", "data-rk-df9b34": "" }) }),
|
|
272
|
+
/* @__PURE__ */ a("span", { className: "sr-only", "data-rk-df9b34": "", children: i ? "up" : "down" }),
|
|
273
|
+
Math.abs(c).toFixed(1),
|
|
274
|
+
"%"
|
|
275
|
+
] }) }),
|
|
276
|
+
/* @__PURE__ */ a("td", { className: "md__hide-sm", "data-rk-df9b34": "", children: e.trend && /* @__PURE__ */ a(q, { data: e.trend, size: "sm", variant: "line", label: `${e.label} trend`, color: o ? "var(--chart-pos, #34c38f)" : "var(--chart-neg, #f06a6a)" }) })
|
|
277
|
+
] }, b);
|
|
278
|
+
}) })
|
|
279
|
+
] }) }) }) });
|
|
280
|
+
}
|
|
281
|
+
function aa(p) {
|
|
282
|
+
const u = {};
|
|
283
|
+
for (const t of String(p ?? "").split(";")) {
|
|
284
|
+
const r = t.indexOf(":");
|
|
285
|
+
if (r < 0) continue;
|
|
286
|
+
const l = t.slice(0, r).trim();
|
|
287
|
+
l && (u[l.startsWith("--") ? l : l.replace(/-([a-z])/g, (g, f) => f.toUpperCase())] = t.slice(r + 1).trim());
|
|
288
|
+
}
|
|
289
|
+
return u;
|
|
290
|
+
}
|
|
291
|
+
function ia({
|
|
292
|
+
title: p = "Revenue by plan",
|
|
293
|
+
subtitle: u = "Share of MRR",
|
|
294
|
+
slices: t = [
|
|
295
|
+
{ label: "Enterprise", value: 48200 },
|
|
296
|
+
{ label: "Team", value: 31400 },
|
|
297
|
+
{ label: "Pro", value: 18900 },
|
|
298
|
+
{ label: "Starter", value: 7600 }
|
|
299
|
+
],
|
|
300
|
+
donut: r = !0,
|
|
301
|
+
centerLabel: l = "Total MRR",
|
|
302
|
+
prefix: g = "$",
|
|
303
|
+
suffix: f = "",
|
|
304
|
+
colors: x,
|
|
305
|
+
variant: F = "glass",
|
|
306
|
+
size: _ = "md",
|
|
307
|
+
className: w = ""
|
|
308
|
+
}) {
|
|
309
|
+
const b = r ? 71.92 : 0, c = E(t.map((n) => n.value)) || 1, i = 0.012;
|
|
310
|
+
let o = 0;
|
|
311
|
+
const S = t.slice(0, 8).map((n, y) => {
|
|
312
|
+
const W = n.value / c * Math.PI * 2, d = o + (t.length > 1 ? i / 2 : 0), v = o + W - (t.length > 1 ? i / 2 : 0);
|
|
313
|
+
return o += W, { ...n, d: K(120, 120, 116, b, d, Math.max(d, v)), pct: n.value / c * 100, color: T(y, x) };
|
|
314
|
+
}), $ = (n) => I(n, g, f);
|
|
315
|
+
return /* @__PURE__ */ a(L, { children: /* @__PURE__ */ a(O, { title: p, subtitle: u, variant: F, size: _, className: w, table: { headers: ["Slice", "Value", "Share"], rows: S.map((n) => [n.label, $(n.value), `${n.pct.toFixed(1)}%`]) }, children: /* @__PURE__ */ m("div", { className: "pc", "data-rk-991c0e": "", children: [
|
|
316
|
+
/* @__PURE__ */ m("svg", { viewBox: "0 0 240 240", role: "img", "aria-label": `${p}: ${r ? "donut" : "pie"} chart, total ${$(c)}`, "data-rk-991c0e": "", children: [
|
|
317
|
+
S.map((n, y) => /* @__PURE__ */ a("path", { className: "cf-mark cf-dim pc__slice", d: n.d, fill: n.color, tabIndex: 0, role: "img", "aria-label": `${n.label}: ${$(n.value)} (${n.pct.toFixed(1)}%)`, "data-tip-title": n.label, "data-tip": `${n.color}::${$(n.value)} · ${n.pct.toFixed(1)}%`, "data-rk-991c0e": "" }, y)),
|
|
318
|
+
r && /* @__PURE__ */ m("g", { "aria-hidden": "true", "data-rk-991c0e": "", children: [
|
|
319
|
+
/* @__PURE__ */ a("text", { x: 120, y: 122, textAnchor: "middle", className: "pc__total", "data-rk-991c0e": "", children: $(c) }),
|
|
320
|
+
/* @__PURE__ */ a("text", { x: 120, y: 142, textAnchor: "middle", className: "cf-label", "data-rk-991c0e": "", children: l })
|
|
321
|
+
] })
|
|
322
|
+
] }),
|
|
323
|
+
/* @__PURE__ */ a("ul", { className: "pc__list", "data-rk-991c0e": "", children: S.map((n, y) => /* @__PURE__ */ m("li", { "data-rk-991c0e": "", children: [
|
|
324
|
+
/* @__PURE__ */ a("span", { className: "pc__dot", style: aa(`background:${n.color}`), "aria-hidden": "true", "data-rk-991c0e": "" }),
|
|
325
|
+
/* @__PURE__ */ a("span", { className: "pc__name", "data-rk-991c0e": "", children: n.label }),
|
|
326
|
+
/* @__PURE__ */ m("span", { className: "pc__pct", "data-rk-991c0e": "", children: [
|
|
327
|
+
n.pct.toFixed(0),
|
|
328
|
+
"%"
|
|
329
|
+
] }),
|
|
330
|
+
/* @__PURE__ */ a("span", { className: "pc__val", "data-rk-991c0e": "", children: $(n.value) })
|
|
331
|
+
] }, y)) })
|
|
332
|
+
] }) }) });
|
|
333
|
+
}
|
|
334
|
+
function j(p) {
|
|
335
|
+
const u = {};
|
|
336
|
+
for (const t of String(p ?? "").split(";")) {
|
|
337
|
+
const r = t.indexOf(":");
|
|
338
|
+
if (r < 0) continue;
|
|
339
|
+
const l = t.slice(0, r).trim();
|
|
340
|
+
l && (u[l.startsWith("--") ? l : l.replace(/-([a-z])/g, (g, f) => f.toUpperCase())] = t.slice(r + 1).trim());
|
|
341
|
+
}
|
|
342
|
+
return u;
|
|
343
|
+
}
|
|
344
|
+
function oa({
|
|
345
|
+
title: p = "Storage usage",
|
|
346
|
+
subtitle: u = "512 GB plan",
|
|
347
|
+
segments: t = [
|
|
348
|
+
{ label: "Media", value: 182 },
|
|
349
|
+
{ label: "Backups", value: 96 },
|
|
350
|
+
{ label: "Databases", value: 64 },
|
|
351
|
+
{ label: "Logs", value: 38 },
|
|
352
|
+
{ label: "Other", value: 22 }
|
|
353
|
+
],
|
|
354
|
+
total: r,
|
|
355
|
+
prefix: l = "",
|
|
356
|
+
suffix: g = " GB",
|
|
357
|
+
colors: f,
|
|
358
|
+
variant: x = "glass",
|
|
359
|
+
size: F = "md",
|
|
360
|
+
className: _ = ""
|
|
361
|
+
}) {
|
|
362
|
+
const w = E(t.map((e) => e.value)) || 1, N = (e) => I(e, l, g, !1), s = t.slice(0, 8).map((e, b) => ({ ...e, pct: e.value / w * 100, color: T(b, f) }));
|
|
363
|
+
return /* @__PURE__ */ a(L, { children: /* @__PURE__ */ m(O, { title: p, subtitle: u, value: r ?? N(w), variant: x, size: F, className: _, table: { headers: ["Segment", "Value", "Share"], rows: s.map((e) => [e.label, N(e.value), `${e.pct.toFixed(1)}%`]) }, children: [
|
|
364
|
+
/* @__PURE__ */ a("div", { className: "sb__bar", role: "list", "aria-label": `${p} breakdown`, "data-rk-740040": "", children: s.map((e, b) => /* @__PURE__ */ a("span", { className: "sb__seg cf-mark", role: "listitem", tabIndex: 0, style: j(`flex-grow:${e.value}; background:${e.color}`), "aria-label": `${e.label}: ${N(e.value)} (${e.pct.toFixed(1)}%)`, "data-tip-title": e.label, "data-tip": `${e.color}::${N(e.value)} · ${e.pct.toFixed(1)}%`, "data-rk-740040": "", children: e.pct >= 9 && /* @__PURE__ */ m("span", { className: "sb__pct", "data-rk-740040": "", children: [
|
|
365
|
+
e.pct.toFixed(0),
|
|
366
|
+
"%"
|
|
367
|
+
] }) }, b)) }),
|
|
368
|
+
/* @__PURE__ */ a("ul", { className: "sb__list", "data-rk-740040": "", children: s.map((e, b) => /* @__PURE__ */ m("li", { "data-rk-740040": "", children: [
|
|
369
|
+
/* @__PURE__ */ a("span", { className: "sb__dot", style: j(`background:${e.color}`), "aria-hidden": "true", "data-rk-740040": "" }),
|
|
370
|
+
/* @__PURE__ */ a("span", { className: "sb__name", "data-rk-740040": "", children: e.label }),
|
|
371
|
+
/* @__PURE__ */ a("span", { className: "sb__val", "data-rk-740040": "", children: N(e.value) })
|
|
372
|
+
] }, b)) })
|
|
373
|
+
] }) });
|
|
374
|
+
}
|
|
375
|
+
export {
|
|
376
|
+
ra as F,
|
|
377
|
+
ca as G,
|
|
378
|
+
da as H,
|
|
379
|
+
sa as M,
|
|
380
|
+
ia as P,
|
|
381
|
+
oa as S,
|
|
382
|
+
la as a,
|
|
383
|
+
na as b
|
|
384
|
+
};
|