@facter/ds-core 1.6.1 → 1.7.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/dist/index.d.mts CHANGED
@@ -2536,6 +2536,64 @@ interface LogoProps {
2536
2536
  */
2537
2537
  declare function Logo({ width, color, className, }: LogoProps): react_jsx_runtime.JSX.Element;
2538
2538
 
2539
+ type ColorScheme = 'green' | 'red' | 'yellow' | 'blue' | 'primary';
2540
+ type Variant = 'default' | 'compact' | 'mini';
2541
+ interface StatsCardRootProps extends React$1.HTMLAttributes<HTMLDivElement> {
2542
+ colorScheme?: ColorScheme;
2543
+ variant?: Variant;
2544
+ }
2545
+ declare function StatsCardRoot({ colorScheme, variant, className, children, ...props }: StatsCardRootProps): react_jsx_runtime.JSX.Element;
2546
+ interface StatsCardHeaderProps extends React$1.HTMLAttributes<HTMLDivElement> {
2547
+ }
2548
+ declare function StatsCardHeader({ className, children, ...props }: StatsCardHeaderProps): react_jsx_runtime.JSX.Element;
2549
+ interface StatsCardIconProps extends React$1.HTMLAttributes<HTMLDivElement> {
2550
+ icon: React$1.ComponentType<{
2551
+ className?: string;
2552
+ }>;
2553
+ }
2554
+ declare function StatsCardIcon({ icon: Icon, className, ...props }: StatsCardIconProps): react_jsx_runtime.JSX.Element;
2555
+ interface StatsCardTitleProps extends React$1.HTMLAttributes<HTMLHeadingElement> {
2556
+ }
2557
+ declare function StatsCardTitle({ className, children, ...props }: StatsCardTitleProps): react_jsx_runtime.JSX.Element;
2558
+ interface StatsCardSubtitleProps extends React$1.HTMLAttributes<HTMLParagraphElement> {
2559
+ }
2560
+ declare function StatsCardSubtitle({ className, children, ...props }: StatsCardSubtitleProps): react_jsx_runtime.JSX.Element;
2561
+ interface StatsCardValueProps extends React$1.HTMLAttributes<HTMLParagraphElement> {
2562
+ }
2563
+ declare function StatsCardValue({ className, children, ...props }: StatsCardValueProps): react_jsx_runtime.JSX.Element;
2564
+ interface StatsCardChangeProps extends React$1.HTMLAttributes<HTMLDivElement> {
2565
+ type?: 'positive' | 'negative';
2566
+ }
2567
+ declare function StatsCardChange({ type, className, children, ...props }: StatsCardChangeProps): react_jsx_runtime.JSX.Element;
2568
+ interface ChartDataPoint {
2569
+ value: number;
2570
+ date: string;
2571
+ }
2572
+ interface StatsCardChartProps extends React$1.HTMLAttributes<HTMLDivElement> {
2573
+ data: ChartDataPoint[];
2574
+ height?: number;
2575
+ }
2576
+ declare function StatsCardChart({ data, height, className, ...props }: StatsCardChartProps): react_jsx_runtime.JSX.Element;
2577
+ interface StatsCardContentProps extends React$1.HTMLAttributes<HTMLDivElement> {
2578
+ }
2579
+ declare function StatsCardContent({ className, children, ...props }: StatsCardContentProps): react_jsx_runtime.JSX.Element;
2580
+ interface StatsCardTodayProps extends React$1.HTMLAttributes<HTMLParagraphElement> {
2581
+ label?: string;
2582
+ type?: 'positive' | 'negative';
2583
+ }
2584
+ declare function StatsCardToday({ label, type, className, children, ...props }: StatsCardTodayProps): react_jsx_runtime.JSX.Element;
2585
+ declare const StatsCard: typeof StatsCardRoot & {
2586
+ Header: typeof StatsCardHeader;
2587
+ Icon: typeof StatsCardIcon;
2588
+ Title: typeof StatsCardTitle;
2589
+ Subtitle: typeof StatsCardSubtitle;
2590
+ Value: typeof StatsCardValue;
2591
+ Change: typeof StatsCardChange;
2592
+ Chart: typeof StatsCardChart;
2593
+ Content: typeof StatsCardContent;
2594
+ Today: typeof StatsCardToday;
2595
+ };
2596
+
2539
2597
  type Theme = 'dark' | 'light' | 'system';
2540
2598
  interface ThemeProviderProps {
2541
2599
  children: React$1.ReactNode;
@@ -2558,4 +2616,4 @@ declare const useTheme: () => ThemeProviderState;
2558
2616
  */
2559
2617
  declare function cn(...inputs: ClassValue[]): string;
2560
2618
 
2561
- export { AuthLayout, type AuthLayoutBodyProps, type AuthLayoutContentProps, type AuthLayoutDividerProps, type AuthLayoutFooterProps, type AuthLayoutHeaderProps, type AuthLayoutImageProps, type AuthLayoutLinkProps, type AuthLayoutProps, Avatar, AvatarFallback, type AvatarFallbackProps, AvatarImage, type AvatarImageProps, type AvatarProps, Badge, type BadgeProps, type BadgeVariant, type BaseFieldProps, BigNumberCard, type BigNumberCardContentProps, type BigNumberCardHeaderProps, type BigNumberCardLinkProps, type BigNumberCardRootProps, type BigNumberCardSize, type BigNumberCardSparklineProps, type BigNumberCardTitleProps, type BigNumberCardTrendProps, type BigNumberCardValueProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, type ButtonProps, Card, CardContent, type CardContentProps, CardDescription, type CardDescriptionProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, type CardProps, CardTitle, type CardTitleProps, Checkbox, type CheckboxProps, type Company, DENSITY_CONFIG, DashboardLayout, type DashboardLayoutBreadcrumbsProps, type DashboardLayoutContentProps, type DashboardLayoutContextValue, type DashboardLayoutHeaderActionsProps, type DashboardLayoutHeaderProps, type DashboardLayoutHeaderTitleProps, type DashboardLayoutHeaderUserProps, type DashboardLayoutMobileNavItemProps, type DashboardLayoutMobileNavProps, type DashboardLayoutProps, type DashboardLayoutSidebarFooterProps, type DashboardLayoutSidebarHeaderProps, type DashboardLayoutSidebarNavGroupProps, type DashboardLayoutSidebarNavItemProps, type DashboardLayoutSidebarNavProps, type DashboardLayoutSidebarProps, type DashboardLayoutSidebarSectionProps, DataTable, type DataTableBulkActionsProps, type DataTableColumnHeaderProps, type DataTableColumnVisibilityProps, type DataTableContentProps, type DataTableContextValue, type DataTableDensity, type DataTableDensityToggleProps, type DataTableEmptyStateProps, type DataTableExportFormat, type DataTableExportProps, type DataTableFilterOption, type DataTableFilterProps, type DataTableFiltersProps, type DataTableLoadingProps, type DataTableMeta, type DataTablePaginationMode, type DataTablePaginationProps, type DataTableProps, type DataTableRowActionsProps, type DataTableSearchProps, type DataTableState, type DataTableTab, type DataTableTabsProps, type DataTableToolbarProps, Dialog, DialogBody, DialogClose, DialogContent, type DialogContentProps, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DialogWrapper, type DialogWrapperProps, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, type EmptyStateProps, Form, FormCheckbox, type FormCheckboxProps, type FormContextValue, FormDescription, type FormDescriptionProps, FormError, type FormErrorProps, type FormFieldContextValue, FormFieldProvider, FormFieldWrapper, type FormFieldWrapperProps, FormInput, type FormInputProps, FormLabel, type FormLabelProps, FormRadioGroup, type FormRadioGroupProps, type FormRootProps, FormSelect, type FormSelectProps, FormSwitch, type FormSwitchProps, FormTextarea, type FormTextareaProps, GlobalLoaderController, Input, type InputProps, ItemCard, ItemCardActionButton, type ItemCardActionButtonProps, ItemCardActions, type ItemCardActionsProps, ItemCardActionsRow, type ItemCardActionsRowProps, ItemCardBadge, type ItemCardBadgeProps, ItemCardContent, ItemCardContentItem, type ItemCardContentItemProps, type ItemCardContentProps, ItemCardEmpty, type ItemCardEmptyProps, ItemCardFooter, ItemCardFooterDivider, type ItemCardFooterDividerProps, ItemCardFooterItem, type ItemCardFooterItemProps, type ItemCardFooterProps, ItemCardHeader, type ItemCardHeaderProps, ItemCardIcon, type ItemCardIconProps, ItemCardRoot, type ItemCardRootProps, ItemCardSubtitle, type ItemCardSubtitleProps, ItemCardTitle, ItemCardTitleGroup, type ItemCardTitleGroupProps, type ItemCardTitleProps, Kanban, type KanbanBoardProps, type KanbanCardProps, type KanbanColumnConfig, type KanbanColumnProps, type KanbanContextValue, type KanbanDragResult, type KanbanEmptyProps, type KanbanItem, Loader, type LoaderProps, LoaderProvider, Logo, type LogoProps, type MaskType, MobileNav, type MobileNavFabAction, MobileNavItem, type MobileNavItemConfig, type MobileNavItemProps, type MobileNavProps, Navbar, NavbarCompanyProfile, type NavbarCompanyProfileProps, NavbarNotification, type NavbarNotificationProps, type NavbarProps, NavbarUserMenu, type NavbarUserMenuProps, type NotificationItem, type PaginatedResponse, type PaginationMeta, type PaginationParams, Popover, PopoverContent, PopoverTrigger, type RadioOption, type RadioOptionColor, RippleBackground, type RippleBackgroundProps, RippleEffect, type RippleEffectProps, RippleWrapper, type RippleWrapperProps, ScrollArea, ScrollBar, SectionHeader, SectionHeaderActions, type SectionHeaderActionsProps, SectionHeaderBadge, type SectionHeaderBadgeProps, SectionHeaderContent, type SectionHeaderContentProps, SectionHeaderIcon, type SectionHeaderIconProps, SectionHeaderRoot, type SectionHeaderRootProps, SectionHeaderSubtitle, type SectionHeaderSubtitleProps, SectionHeaderTitle, type SectionHeaderTitleProps, Select, SelectGroup, SelectItem, type SelectItemProps, SelectLabel, type SelectOption, type SelectProps, SelectSeparator, SelectionLayout, type SelectionLayoutCardProps, type SelectionLayoutEmptyProps, type SelectionLayoutHeaderProps, type SelectionLayoutHeadlineProps, type SelectionLayoutListProps, type SelectionLayoutLogoProps, type SelectionLayoutMainProps, type SelectionLayoutProps, type SelectionLayoutSearchProps, type SelectionLayoutSidebarProps, type SelectionLayoutStatsProps, type SelectionLayoutTabProps, type SelectionLayoutTabsProps, Separator, Sidebar, type SidebarContextValue, type SidebarFooterMenuItem, type SidebarFooterProps, type SidebarFooterUser, type SidebarHeaderProps, type SidebarNavGroupProps, type SidebarNavItemProps, type SidebarNavProps, type SidebarProps, type SidebarSectionProps, SimpleTooltip, type SimpleTooltipProps, Skeleton, type SkeletonProps, Sparkline, type SparklineColor, type StepState, Switch, type SwitchProps, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, type TextareaProps, ThemeProvider, ThemeToggle, type ThemeToggleProps, Toaster, type ToasterProps, Tooltip, TooltipAction, type TooltipActionProps, TooltipActions, type TooltipActionsProps, TooltipArrow, TooltipContent, type TooltipContentProps, TooltipDescription, type TooltipDescriptionProps, TooltipHeader, type TooltipHeaderProps, TooltipIcon, type TooltipIconProps, TooltipPortal, TooltipProvider, TooltipRoot, TooltipTitle, type TooltipTitleProps, TooltipTrigger, type UseDataTableConfig, type UserMenuItemConfig, type ValidationSchema, Wizard, WizardContent, type WizardContentProps, type WizardContextValue, WizardNavigation, type WizardNavigationProps, WizardPanel, type WizardPanelProps, WizardProgress, type WizardProgressProps, type WizardProps, WizardProvider, type WizardStepConfig, WizardStepConnector, type WizardStepConnectorProps, WizardStepIndicator, type WizardStepIndicatorProps, WizardSteps, type WizardStepsProps, cn, itemCardBadgeVariants, itemCardIconVariants, itemCardVariants, loader, toast, useDashboardLayout, useDataTable, useDataTableColumnVisibility, useDataTableDensity, useDataTableEmpty, useDataTableInstance, useDataTableLoading, useDataTableMeta, useDataTablePagination, useDataTableSelection, useDataTableSorting, useDataTableState, useDebounce, useDebouncedCallback, useFormFieldContext, useItemCard, useKanban, useKanbanOptional, useLoader, useMediaQuery, useSidebar, useSidebarOptional, useTheme, useWizardContext, useWizardContextOptional };
2619
+ export { AuthLayout, type AuthLayoutBodyProps, type AuthLayoutContentProps, type AuthLayoutDividerProps, type AuthLayoutFooterProps, type AuthLayoutHeaderProps, type AuthLayoutImageProps, type AuthLayoutLinkProps, type AuthLayoutProps, Avatar, AvatarFallback, type AvatarFallbackProps, AvatarImage, type AvatarImageProps, type AvatarProps, Badge, type BadgeProps, type BadgeVariant, type BaseFieldProps, BigNumberCard, type BigNumberCardContentProps, type BigNumberCardHeaderProps, type BigNumberCardLinkProps, type BigNumberCardRootProps, type BigNumberCardSize, type BigNumberCardSparklineProps, type BigNumberCardTitleProps, type BigNumberCardTrendProps, type BigNumberCardValueProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, type ButtonProps, Card, CardContent, type CardContentProps, CardDescription, type CardDescriptionProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, type CardProps, CardTitle, type CardTitleProps, type ChartDataPoint, Checkbox, type CheckboxProps, type Company, DENSITY_CONFIG, DashboardLayout, type DashboardLayoutBreadcrumbsProps, type DashboardLayoutContentProps, type DashboardLayoutContextValue, type DashboardLayoutHeaderActionsProps, type DashboardLayoutHeaderProps, type DashboardLayoutHeaderTitleProps, type DashboardLayoutHeaderUserProps, type DashboardLayoutMobileNavItemProps, type DashboardLayoutMobileNavProps, type DashboardLayoutProps, type DashboardLayoutSidebarFooterProps, type DashboardLayoutSidebarHeaderProps, type DashboardLayoutSidebarNavGroupProps, type DashboardLayoutSidebarNavItemProps, type DashboardLayoutSidebarNavProps, type DashboardLayoutSidebarProps, type DashboardLayoutSidebarSectionProps, DataTable, type DataTableBulkActionsProps, type DataTableColumnHeaderProps, type DataTableColumnVisibilityProps, type DataTableContentProps, type DataTableContextValue, type DataTableDensity, type DataTableDensityToggleProps, type DataTableEmptyStateProps, type DataTableExportFormat, type DataTableExportProps, type DataTableFilterOption, type DataTableFilterProps, type DataTableFiltersProps, type DataTableLoadingProps, type DataTableMeta, type DataTablePaginationMode, type DataTablePaginationProps, type DataTableProps, type DataTableRowActionsProps, type DataTableSearchProps, type DataTableState, type DataTableTab, type DataTableTabsProps, type DataTableToolbarProps, Dialog, DialogBody, DialogClose, DialogContent, type DialogContentProps, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DialogWrapper, type DialogWrapperProps, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, type EmptyStateProps, Form, FormCheckbox, type FormCheckboxProps, type FormContextValue, FormDescription, type FormDescriptionProps, FormError, type FormErrorProps, type FormFieldContextValue, FormFieldProvider, FormFieldWrapper, type FormFieldWrapperProps, FormInput, type FormInputProps, FormLabel, type FormLabelProps, FormRadioGroup, type FormRadioGroupProps, type FormRootProps, FormSelect, type FormSelectProps, FormSwitch, type FormSwitchProps, FormTextarea, type FormTextareaProps, GlobalLoaderController, Input, type InputProps, ItemCard, ItemCardActionButton, type ItemCardActionButtonProps, ItemCardActions, type ItemCardActionsProps, ItemCardActionsRow, type ItemCardActionsRowProps, ItemCardBadge, type ItemCardBadgeProps, ItemCardContent, ItemCardContentItem, type ItemCardContentItemProps, type ItemCardContentProps, ItemCardEmpty, type ItemCardEmptyProps, ItemCardFooter, ItemCardFooterDivider, type ItemCardFooterDividerProps, ItemCardFooterItem, type ItemCardFooterItemProps, type ItemCardFooterProps, ItemCardHeader, type ItemCardHeaderProps, ItemCardIcon, type ItemCardIconProps, ItemCardRoot, type ItemCardRootProps, ItemCardSubtitle, type ItemCardSubtitleProps, ItemCardTitle, ItemCardTitleGroup, type ItemCardTitleGroupProps, type ItemCardTitleProps, Kanban, type KanbanBoardProps, type KanbanCardProps, type KanbanColumnConfig, type KanbanColumnProps, type KanbanContextValue, type KanbanDragResult, type KanbanEmptyProps, type KanbanItem, Loader, type LoaderProps, LoaderProvider, Logo, type LogoProps, type MaskType, MobileNav, type MobileNavFabAction, MobileNavItem, type MobileNavItemConfig, type MobileNavItemProps, type MobileNavProps, Navbar, NavbarCompanyProfile, type NavbarCompanyProfileProps, NavbarNotification, type NavbarNotificationProps, type NavbarProps, NavbarUserMenu, type NavbarUserMenuProps, type NotificationItem, type PaginatedResponse, type PaginationMeta, type PaginationParams, Popover, PopoverContent, PopoverTrigger, type RadioOption, type RadioOptionColor, RippleBackground, type RippleBackgroundProps, RippleEffect, type RippleEffectProps, RippleWrapper, type RippleWrapperProps, ScrollArea, ScrollBar, SectionHeader, SectionHeaderActions, type SectionHeaderActionsProps, SectionHeaderBadge, type SectionHeaderBadgeProps, SectionHeaderContent, type SectionHeaderContentProps, SectionHeaderIcon, type SectionHeaderIconProps, SectionHeaderRoot, type SectionHeaderRootProps, SectionHeaderSubtitle, type SectionHeaderSubtitleProps, SectionHeaderTitle, type SectionHeaderTitleProps, Select, SelectGroup, SelectItem, type SelectItemProps, SelectLabel, type SelectOption, type SelectProps, SelectSeparator, SelectionLayout, type SelectionLayoutCardProps, type SelectionLayoutEmptyProps, type SelectionLayoutHeaderProps, type SelectionLayoutHeadlineProps, type SelectionLayoutListProps, type SelectionLayoutLogoProps, type SelectionLayoutMainProps, type SelectionLayoutProps, type SelectionLayoutSearchProps, type SelectionLayoutSidebarProps, type SelectionLayoutStatsProps, type SelectionLayoutTabProps, type SelectionLayoutTabsProps, Separator, Sidebar, type SidebarContextValue, type SidebarFooterMenuItem, type SidebarFooterProps, type SidebarFooterUser, type SidebarHeaderProps, type SidebarNavGroupProps, type SidebarNavItemProps, type SidebarNavProps, type SidebarProps, type SidebarSectionProps, SimpleTooltip, type SimpleTooltipProps, Skeleton, type SkeletonProps, Sparkline, type SparklineColor, StatsCard, type StatsCardChangeProps, type StatsCardChartProps, type ColorScheme as StatsCardColorScheme, type StatsCardContentProps, type StatsCardHeaderProps, type StatsCardIconProps, type StatsCardRootProps, type StatsCardSubtitleProps, type StatsCardTitleProps, type StatsCardTodayProps, type StatsCardValueProps, type Variant as StatsCardVariant, type StepState, Switch, type SwitchProps, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, type TextareaProps, ThemeProvider, ThemeToggle, type ThemeToggleProps, Toaster, type ToasterProps, Tooltip, TooltipAction, type TooltipActionProps, TooltipActions, type TooltipActionsProps, TooltipArrow, TooltipContent, type TooltipContentProps, TooltipDescription, type TooltipDescriptionProps, TooltipHeader, type TooltipHeaderProps, TooltipIcon, type TooltipIconProps, TooltipPortal, TooltipProvider, TooltipRoot, TooltipTitle, type TooltipTitleProps, TooltipTrigger, type UseDataTableConfig, type UserMenuItemConfig, type ValidationSchema, Wizard, WizardContent, type WizardContentProps, type WizardContextValue, WizardNavigation, type WizardNavigationProps, WizardPanel, type WizardPanelProps, WizardProgress, type WizardProgressProps, type WizardProps, WizardProvider, type WizardStepConfig, WizardStepConnector, type WizardStepConnectorProps, WizardStepIndicator, type WizardStepIndicatorProps, WizardSteps, type WizardStepsProps, cn, itemCardBadgeVariants, itemCardIconVariants, itemCardVariants, loader, toast, useDashboardLayout, useDataTable, useDataTableColumnVisibility, useDataTableDensity, useDataTableEmpty, useDataTableInstance, useDataTableLoading, useDataTableMeta, useDataTablePagination, useDataTableSelection, useDataTableSorting, useDataTableState, useDebounce, useDebouncedCallback, useFormFieldContext, useItemCard, useKanban, useKanbanOptional, useLoader, useMediaQuery, useSidebar, useSidebarOptional, useTheme, useWizardContext, useWizardContextOptional };
package/dist/index.d.ts CHANGED
@@ -2536,6 +2536,64 @@ interface LogoProps {
2536
2536
  */
2537
2537
  declare function Logo({ width, color, className, }: LogoProps): react_jsx_runtime.JSX.Element;
2538
2538
 
2539
+ type ColorScheme = 'green' | 'red' | 'yellow' | 'blue' | 'primary';
2540
+ type Variant = 'default' | 'compact' | 'mini';
2541
+ interface StatsCardRootProps extends React$1.HTMLAttributes<HTMLDivElement> {
2542
+ colorScheme?: ColorScheme;
2543
+ variant?: Variant;
2544
+ }
2545
+ declare function StatsCardRoot({ colorScheme, variant, className, children, ...props }: StatsCardRootProps): react_jsx_runtime.JSX.Element;
2546
+ interface StatsCardHeaderProps extends React$1.HTMLAttributes<HTMLDivElement> {
2547
+ }
2548
+ declare function StatsCardHeader({ className, children, ...props }: StatsCardHeaderProps): react_jsx_runtime.JSX.Element;
2549
+ interface StatsCardIconProps extends React$1.HTMLAttributes<HTMLDivElement> {
2550
+ icon: React$1.ComponentType<{
2551
+ className?: string;
2552
+ }>;
2553
+ }
2554
+ declare function StatsCardIcon({ icon: Icon, className, ...props }: StatsCardIconProps): react_jsx_runtime.JSX.Element;
2555
+ interface StatsCardTitleProps extends React$1.HTMLAttributes<HTMLHeadingElement> {
2556
+ }
2557
+ declare function StatsCardTitle({ className, children, ...props }: StatsCardTitleProps): react_jsx_runtime.JSX.Element;
2558
+ interface StatsCardSubtitleProps extends React$1.HTMLAttributes<HTMLParagraphElement> {
2559
+ }
2560
+ declare function StatsCardSubtitle({ className, children, ...props }: StatsCardSubtitleProps): react_jsx_runtime.JSX.Element;
2561
+ interface StatsCardValueProps extends React$1.HTMLAttributes<HTMLParagraphElement> {
2562
+ }
2563
+ declare function StatsCardValue({ className, children, ...props }: StatsCardValueProps): react_jsx_runtime.JSX.Element;
2564
+ interface StatsCardChangeProps extends React$1.HTMLAttributes<HTMLDivElement> {
2565
+ type?: 'positive' | 'negative';
2566
+ }
2567
+ declare function StatsCardChange({ type, className, children, ...props }: StatsCardChangeProps): react_jsx_runtime.JSX.Element;
2568
+ interface ChartDataPoint {
2569
+ value: number;
2570
+ date: string;
2571
+ }
2572
+ interface StatsCardChartProps extends React$1.HTMLAttributes<HTMLDivElement> {
2573
+ data: ChartDataPoint[];
2574
+ height?: number;
2575
+ }
2576
+ declare function StatsCardChart({ data, height, className, ...props }: StatsCardChartProps): react_jsx_runtime.JSX.Element;
2577
+ interface StatsCardContentProps extends React$1.HTMLAttributes<HTMLDivElement> {
2578
+ }
2579
+ declare function StatsCardContent({ className, children, ...props }: StatsCardContentProps): react_jsx_runtime.JSX.Element;
2580
+ interface StatsCardTodayProps extends React$1.HTMLAttributes<HTMLParagraphElement> {
2581
+ label?: string;
2582
+ type?: 'positive' | 'negative';
2583
+ }
2584
+ declare function StatsCardToday({ label, type, className, children, ...props }: StatsCardTodayProps): react_jsx_runtime.JSX.Element;
2585
+ declare const StatsCard: typeof StatsCardRoot & {
2586
+ Header: typeof StatsCardHeader;
2587
+ Icon: typeof StatsCardIcon;
2588
+ Title: typeof StatsCardTitle;
2589
+ Subtitle: typeof StatsCardSubtitle;
2590
+ Value: typeof StatsCardValue;
2591
+ Change: typeof StatsCardChange;
2592
+ Chart: typeof StatsCardChart;
2593
+ Content: typeof StatsCardContent;
2594
+ Today: typeof StatsCardToday;
2595
+ };
2596
+
2539
2597
  type Theme = 'dark' | 'light' | 'system';
2540
2598
  interface ThemeProviderProps {
2541
2599
  children: React$1.ReactNode;
@@ -2558,4 +2616,4 @@ declare const useTheme: () => ThemeProviderState;
2558
2616
  */
2559
2617
  declare function cn(...inputs: ClassValue[]): string;
2560
2618
 
2561
- export { AuthLayout, type AuthLayoutBodyProps, type AuthLayoutContentProps, type AuthLayoutDividerProps, type AuthLayoutFooterProps, type AuthLayoutHeaderProps, type AuthLayoutImageProps, type AuthLayoutLinkProps, type AuthLayoutProps, Avatar, AvatarFallback, type AvatarFallbackProps, AvatarImage, type AvatarImageProps, type AvatarProps, Badge, type BadgeProps, type BadgeVariant, type BaseFieldProps, BigNumberCard, type BigNumberCardContentProps, type BigNumberCardHeaderProps, type BigNumberCardLinkProps, type BigNumberCardRootProps, type BigNumberCardSize, type BigNumberCardSparklineProps, type BigNumberCardTitleProps, type BigNumberCardTrendProps, type BigNumberCardValueProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, type ButtonProps, Card, CardContent, type CardContentProps, CardDescription, type CardDescriptionProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, type CardProps, CardTitle, type CardTitleProps, Checkbox, type CheckboxProps, type Company, DENSITY_CONFIG, DashboardLayout, type DashboardLayoutBreadcrumbsProps, type DashboardLayoutContentProps, type DashboardLayoutContextValue, type DashboardLayoutHeaderActionsProps, type DashboardLayoutHeaderProps, type DashboardLayoutHeaderTitleProps, type DashboardLayoutHeaderUserProps, type DashboardLayoutMobileNavItemProps, type DashboardLayoutMobileNavProps, type DashboardLayoutProps, type DashboardLayoutSidebarFooterProps, type DashboardLayoutSidebarHeaderProps, type DashboardLayoutSidebarNavGroupProps, type DashboardLayoutSidebarNavItemProps, type DashboardLayoutSidebarNavProps, type DashboardLayoutSidebarProps, type DashboardLayoutSidebarSectionProps, DataTable, type DataTableBulkActionsProps, type DataTableColumnHeaderProps, type DataTableColumnVisibilityProps, type DataTableContentProps, type DataTableContextValue, type DataTableDensity, type DataTableDensityToggleProps, type DataTableEmptyStateProps, type DataTableExportFormat, type DataTableExportProps, type DataTableFilterOption, type DataTableFilterProps, type DataTableFiltersProps, type DataTableLoadingProps, type DataTableMeta, type DataTablePaginationMode, type DataTablePaginationProps, type DataTableProps, type DataTableRowActionsProps, type DataTableSearchProps, type DataTableState, type DataTableTab, type DataTableTabsProps, type DataTableToolbarProps, Dialog, DialogBody, DialogClose, DialogContent, type DialogContentProps, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DialogWrapper, type DialogWrapperProps, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, type EmptyStateProps, Form, FormCheckbox, type FormCheckboxProps, type FormContextValue, FormDescription, type FormDescriptionProps, FormError, type FormErrorProps, type FormFieldContextValue, FormFieldProvider, FormFieldWrapper, type FormFieldWrapperProps, FormInput, type FormInputProps, FormLabel, type FormLabelProps, FormRadioGroup, type FormRadioGroupProps, type FormRootProps, FormSelect, type FormSelectProps, FormSwitch, type FormSwitchProps, FormTextarea, type FormTextareaProps, GlobalLoaderController, Input, type InputProps, ItemCard, ItemCardActionButton, type ItemCardActionButtonProps, ItemCardActions, type ItemCardActionsProps, ItemCardActionsRow, type ItemCardActionsRowProps, ItemCardBadge, type ItemCardBadgeProps, ItemCardContent, ItemCardContentItem, type ItemCardContentItemProps, type ItemCardContentProps, ItemCardEmpty, type ItemCardEmptyProps, ItemCardFooter, ItemCardFooterDivider, type ItemCardFooterDividerProps, ItemCardFooterItem, type ItemCardFooterItemProps, type ItemCardFooterProps, ItemCardHeader, type ItemCardHeaderProps, ItemCardIcon, type ItemCardIconProps, ItemCardRoot, type ItemCardRootProps, ItemCardSubtitle, type ItemCardSubtitleProps, ItemCardTitle, ItemCardTitleGroup, type ItemCardTitleGroupProps, type ItemCardTitleProps, Kanban, type KanbanBoardProps, type KanbanCardProps, type KanbanColumnConfig, type KanbanColumnProps, type KanbanContextValue, type KanbanDragResult, type KanbanEmptyProps, type KanbanItem, Loader, type LoaderProps, LoaderProvider, Logo, type LogoProps, type MaskType, MobileNav, type MobileNavFabAction, MobileNavItem, type MobileNavItemConfig, type MobileNavItemProps, type MobileNavProps, Navbar, NavbarCompanyProfile, type NavbarCompanyProfileProps, NavbarNotification, type NavbarNotificationProps, type NavbarProps, NavbarUserMenu, type NavbarUserMenuProps, type NotificationItem, type PaginatedResponse, type PaginationMeta, type PaginationParams, Popover, PopoverContent, PopoverTrigger, type RadioOption, type RadioOptionColor, RippleBackground, type RippleBackgroundProps, RippleEffect, type RippleEffectProps, RippleWrapper, type RippleWrapperProps, ScrollArea, ScrollBar, SectionHeader, SectionHeaderActions, type SectionHeaderActionsProps, SectionHeaderBadge, type SectionHeaderBadgeProps, SectionHeaderContent, type SectionHeaderContentProps, SectionHeaderIcon, type SectionHeaderIconProps, SectionHeaderRoot, type SectionHeaderRootProps, SectionHeaderSubtitle, type SectionHeaderSubtitleProps, SectionHeaderTitle, type SectionHeaderTitleProps, Select, SelectGroup, SelectItem, type SelectItemProps, SelectLabel, type SelectOption, type SelectProps, SelectSeparator, SelectionLayout, type SelectionLayoutCardProps, type SelectionLayoutEmptyProps, type SelectionLayoutHeaderProps, type SelectionLayoutHeadlineProps, type SelectionLayoutListProps, type SelectionLayoutLogoProps, type SelectionLayoutMainProps, type SelectionLayoutProps, type SelectionLayoutSearchProps, type SelectionLayoutSidebarProps, type SelectionLayoutStatsProps, type SelectionLayoutTabProps, type SelectionLayoutTabsProps, Separator, Sidebar, type SidebarContextValue, type SidebarFooterMenuItem, type SidebarFooterProps, type SidebarFooterUser, type SidebarHeaderProps, type SidebarNavGroupProps, type SidebarNavItemProps, type SidebarNavProps, type SidebarProps, type SidebarSectionProps, SimpleTooltip, type SimpleTooltipProps, Skeleton, type SkeletonProps, Sparkline, type SparklineColor, type StepState, Switch, type SwitchProps, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, type TextareaProps, ThemeProvider, ThemeToggle, type ThemeToggleProps, Toaster, type ToasterProps, Tooltip, TooltipAction, type TooltipActionProps, TooltipActions, type TooltipActionsProps, TooltipArrow, TooltipContent, type TooltipContentProps, TooltipDescription, type TooltipDescriptionProps, TooltipHeader, type TooltipHeaderProps, TooltipIcon, type TooltipIconProps, TooltipPortal, TooltipProvider, TooltipRoot, TooltipTitle, type TooltipTitleProps, TooltipTrigger, type UseDataTableConfig, type UserMenuItemConfig, type ValidationSchema, Wizard, WizardContent, type WizardContentProps, type WizardContextValue, WizardNavigation, type WizardNavigationProps, WizardPanel, type WizardPanelProps, WizardProgress, type WizardProgressProps, type WizardProps, WizardProvider, type WizardStepConfig, WizardStepConnector, type WizardStepConnectorProps, WizardStepIndicator, type WizardStepIndicatorProps, WizardSteps, type WizardStepsProps, cn, itemCardBadgeVariants, itemCardIconVariants, itemCardVariants, loader, toast, useDashboardLayout, useDataTable, useDataTableColumnVisibility, useDataTableDensity, useDataTableEmpty, useDataTableInstance, useDataTableLoading, useDataTableMeta, useDataTablePagination, useDataTableSelection, useDataTableSorting, useDataTableState, useDebounce, useDebouncedCallback, useFormFieldContext, useItemCard, useKanban, useKanbanOptional, useLoader, useMediaQuery, useSidebar, useSidebarOptional, useTheme, useWizardContext, useWizardContextOptional };
2619
+ export { AuthLayout, type AuthLayoutBodyProps, type AuthLayoutContentProps, type AuthLayoutDividerProps, type AuthLayoutFooterProps, type AuthLayoutHeaderProps, type AuthLayoutImageProps, type AuthLayoutLinkProps, type AuthLayoutProps, Avatar, AvatarFallback, type AvatarFallbackProps, AvatarImage, type AvatarImageProps, type AvatarProps, Badge, type BadgeProps, type BadgeVariant, type BaseFieldProps, BigNumberCard, type BigNumberCardContentProps, type BigNumberCardHeaderProps, type BigNumberCardLinkProps, type BigNumberCardRootProps, type BigNumberCardSize, type BigNumberCardSparklineProps, type BigNumberCardTitleProps, type BigNumberCardTrendProps, type BigNumberCardValueProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, type ButtonProps, Card, CardContent, type CardContentProps, CardDescription, type CardDescriptionProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, type CardProps, CardTitle, type CardTitleProps, type ChartDataPoint, Checkbox, type CheckboxProps, type Company, DENSITY_CONFIG, DashboardLayout, type DashboardLayoutBreadcrumbsProps, type DashboardLayoutContentProps, type DashboardLayoutContextValue, type DashboardLayoutHeaderActionsProps, type DashboardLayoutHeaderProps, type DashboardLayoutHeaderTitleProps, type DashboardLayoutHeaderUserProps, type DashboardLayoutMobileNavItemProps, type DashboardLayoutMobileNavProps, type DashboardLayoutProps, type DashboardLayoutSidebarFooterProps, type DashboardLayoutSidebarHeaderProps, type DashboardLayoutSidebarNavGroupProps, type DashboardLayoutSidebarNavItemProps, type DashboardLayoutSidebarNavProps, type DashboardLayoutSidebarProps, type DashboardLayoutSidebarSectionProps, DataTable, type DataTableBulkActionsProps, type DataTableColumnHeaderProps, type DataTableColumnVisibilityProps, type DataTableContentProps, type DataTableContextValue, type DataTableDensity, type DataTableDensityToggleProps, type DataTableEmptyStateProps, type DataTableExportFormat, type DataTableExportProps, type DataTableFilterOption, type DataTableFilterProps, type DataTableFiltersProps, type DataTableLoadingProps, type DataTableMeta, type DataTablePaginationMode, type DataTablePaginationProps, type DataTableProps, type DataTableRowActionsProps, type DataTableSearchProps, type DataTableState, type DataTableTab, type DataTableTabsProps, type DataTableToolbarProps, Dialog, DialogBody, DialogClose, DialogContent, type DialogContentProps, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DialogWrapper, type DialogWrapperProps, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, type EmptyStateProps, Form, FormCheckbox, type FormCheckboxProps, type FormContextValue, FormDescription, type FormDescriptionProps, FormError, type FormErrorProps, type FormFieldContextValue, FormFieldProvider, FormFieldWrapper, type FormFieldWrapperProps, FormInput, type FormInputProps, FormLabel, type FormLabelProps, FormRadioGroup, type FormRadioGroupProps, type FormRootProps, FormSelect, type FormSelectProps, FormSwitch, type FormSwitchProps, FormTextarea, type FormTextareaProps, GlobalLoaderController, Input, type InputProps, ItemCard, ItemCardActionButton, type ItemCardActionButtonProps, ItemCardActions, type ItemCardActionsProps, ItemCardActionsRow, type ItemCardActionsRowProps, ItemCardBadge, type ItemCardBadgeProps, ItemCardContent, ItemCardContentItem, type ItemCardContentItemProps, type ItemCardContentProps, ItemCardEmpty, type ItemCardEmptyProps, ItemCardFooter, ItemCardFooterDivider, type ItemCardFooterDividerProps, ItemCardFooterItem, type ItemCardFooterItemProps, type ItemCardFooterProps, ItemCardHeader, type ItemCardHeaderProps, ItemCardIcon, type ItemCardIconProps, ItemCardRoot, type ItemCardRootProps, ItemCardSubtitle, type ItemCardSubtitleProps, ItemCardTitle, ItemCardTitleGroup, type ItemCardTitleGroupProps, type ItemCardTitleProps, Kanban, type KanbanBoardProps, type KanbanCardProps, type KanbanColumnConfig, type KanbanColumnProps, type KanbanContextValue, type KanbanDragResult, type KanbanEmptyProps, type KanbanItem, Loader, type LoaderProps, LoaderProvider, Logo, type LogoProps, type MaskType, MobileNav, type MobileNavFabAction, MobileNavItem, type MobileNavItemConfig, type MobileNavItemProps, type MobileNavProps, Navbar, NavbarCompanyProfile, type NavbarCompanyProfileProps, NavbarNotification, type NavbarNotificationProps, type NavbarProps, NavbarUserMenu, type NavbarUserMenuProps, type NotificationItem, type PaginatedResponse, type PaginationMeta, type PaginationParams, Popover, PopoverContent, PopoverTrigger, type RadioOption, type RadioOptionColor, RippleBackground, type RippleBackgroundProps, RippleEffect, type RippleEffectProps, RippleWrapper, type RippleWrapperProps, ScrollArea, ScrollBar, SectionHeader, SectionHeaderActions, type SectionHeaderActionsProps, SectionHeaderBadge, type SectionHeaderBadgeProps, SectionHeaderContent, type SectionHeaderContentProps, SectionHeaderIcon, type SectionHeaderIconProps, SectionHeaderRoot, type SectionHeaderRootProps, SectionHeaderSubtitle, type SectionHeaderSubtitleProps, SectionHeaderTitle, type SectionHeaderTitleProps, Select, SelectGroup, SelectItem, type SelectItemProps, SelectLabel, type SelectOption, type SelectProps, SelectSeparator, SelectionLayout, type SelectionLayoutCardProps, type SelectionLayoutEmptyProps, type SelectionLayoutHeaderProps, type SelectionLayoutHeadlineProps, type SelectionLayoutListProps, type SelectionLayoutLogoProps, type SelectionLayoutMainProps, type SelectionLayoutProps, type SelectionLayoutSearchProps, type SelectionLayoutSidebarProps, type SelectionLayoutStatsProps, type SelectionLayoutTabProps, type SelectionLayoutTabsProps, Separator, Sidebar, type SidebarContextValue, type SidebarFooterMenuItem, type SidebarFooterProps, type SidebarFooterUser, type SidebarHeaderProps, type SidebarNavGroupProps, type SidebarNavItemProps, type SidebarNavProps, type SidebarProps, type SidebarSectionProps, SimpleTooltip, type SimpleTooltipProps, Skeleton, type SkeletonProps, Sparkline, type SparklineColor, StatsCard, type StatsCardChangeProps, type StatsCardChartProps, type ColorScheme as StatsCardColorScheme, type StatsCardContentProps, type StatsCardHeaderProps, type StatsCardIconProps, type StatsCardRootProps, type StatsCardSubtitleProps, type StatsCardTitleProps, type StatsCardTodayProps, type StatsCardValueProps, type Variant as StatsCardVariant, type StepState, Switch, type SwitchProps, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, type TextareaProps, ThemeProvider, ThemeToggle, type ThemeToggleProps, Toaster, type ToasterProps, Tooltip, TooltipAction, type TooltipActionProps, TooltipActions, type TooltipActionsProps, TooltipArrow, TooltipContent, type TooltipContentProps, TooltipDescription, type TooltipDescriptionProps, TooltipHeader, type TooltipHeaderProps, TooltipIcon, type TooltipIconProps, TooltipPortal, TooltipProvider, TooltipRoot, TooltipTitle, type TooltipTitleProps, TooltipTrigger, type UseDataTableConfig, type UserMenuItemConfig, type ValidationSchema, Wizard, WizardContent, type WizardContentProps, type WizardContextValue, WizardNavigation, type WizardNavigationProps, WizardPanel, type WizardPanelProps, WizardProgress, type WizardProgressProps, type WizardProps, WizardProvider, type WizardStepConfig, WizardStepConnector, type WizardStepConnectorProps, WizardStepIndicator, type WizardStepIndicatorProps, WizardSteps, type WizardStepsProps, cn, itemCardBadgeVariants, itemCardIconVariants, itemCardVariants, loader, toast, useDashboardLayout, useDataTable, useDataTableColumnVisibility, useDataTableDensity, useDataTableEmpty, useDataTableInstance, useDataTableLoading, useDataTableMeta, useDataTablePagination, useDataTableSelection, useDataTableSorting, useDataTableState, useDebounce, useDebouncedCallback, useFormFieldContext, useItemCard, useKanban, useKanbanOptional, useLoader, useMediaQuery, useSidebar, useSidebarOptional, useTheme, useWizardContext, useWizardContextOptional };
package/dist/index.js CHANGED
@@ -24,6 +24,7 @@ var TooltipPrimitive = require('@radix-ui/react-tooltip');
24
24
  var ScrollAreaPrimitive = require('@radix-ui/react-scroll-area');
25
25
  var SeparatorPrimitive = require('@radix-ui/react-separator');
26
26
  var reactSlot = require('@radix-ui/react-slot');
27
+ var recharts = require('recharts');
27
28
 
28
29
  function _interopNamespace(e) {
29
30
  if (e && e.__esModule) return e;
@@ -6688,8 +6689,14 @@ var itemCardIconVariants = classVarianceAuthority.cva(
6688
6689
  );
6689
6690
  var ItemCardIcon = React49__namespace.forwardRef(
6690
6691
  ({ className, size, variant, ripple = false, children, ...props }, ref) => {
6692
+ const wrapperSizeClasses = {
6693
+ sm: "w-10 h-10",
6694
+ md: "w-12 h-12",
6695
+ lg: "w-14 h-14"
6696
+ };
6697
+ const actualSize = size || "md";
6691
6698
  if (ripple) {
6692
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative", children: [
6699
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("relative", wrapperSizeClasses[actualSize]), children: [
6693
6700
  /* @__PURE__ */ jsxRuntime.jsx(
6694
6701
  RippleEffect,
6695
6702
  {
@@ -7701,6 +7708,277 @@ function Logo({
7701
7708
  }
7702
7709
  );
7703
7710
  }
7711
+ var StatsCardContext = React49__namespace.createContext(null);
7712
+ function useStatsCard() {
7713
+ const context = React49__namespace.useContext(StatsCardContext);
7714
+ if (!context) {
7715
+ throw new Error("StatsCard components must be used within StatsCard.Root");
7716
+ }
7717
+ return context;
7718
+ }
7719
+ var colorConfigs = {
7720
+ green: {
7721
+ lineColor: "#22c55e",
7722
+ gradientStart: "rgba(34, 197, 94, 0.4)",
7723
+ gradientEnd: "rgba(34, 197, 94, 0.02)",
7724
+ bgGradient: "from-white via-emerald-50/30 to-emerald-100/50",
7725
+ iconBg: "bg-emerald-100/80 text-emerald-600",
7726
+ textColor: "text-emerald-500"
7727
+ },
7728
+ red: {
7729
+ lineColor: "#f87171",
7730
+ gradientStart: "rgba(248, 113, 113, 0.4)",
7731
+ gradientEnd: "rgba(248, 113, 113, 0.02)",
7732
+ bgGradient: "from-white via-rose-50/30 to-rose-100/50",
7733
+ iconBg: "bg-rose-100/80 text-rose-500",
7734
+ textColor: "text-rose-500"
7735
+ },
7736
+ yellow: {
7737
+ lineColor: "#f59e0b",
7738
+ gradientStart: "rgba(245, 158, 11, 0.4)",
7739
+ gradientEnd: "rgba(245, 158, 11, 0.02)",
7740
+ bgGradient: "from-white via-amber-50/30 to-amber-100/50",
7741
+ iconBg: "bg-amber-100/80 text-amber-600",
7742
+ textColor: "text-amber-500"
7743
+ },
7744
+ blue: {
7745
+ lineColor: "#3b82f6",
7746
+ gradientStart: "rgba(59, 130, 246, 0.4)",
7747
+ gradientEnd: "rgba(59, 130, 246, 0.02)",
7748
+ bgGradient: "from-white via-blue-50/30 to-blue-100/50",
7749
+ iconBg: "bg-blue-100/80 text-blue-600",
7750
+ textColor: "text-blue-500"
7751
+ },
7752
+ primary: {
7753
+ lineColor: "#3b82f6",
7754
+ gradientStart: "rgba(59, 130, 246, 0.4)",
7755
+ gradientEnd: "rgba(59, 130, 246, 0.02)",
7756
+ bgGradient: "from-white via-primary/5 to-primary/10",
7757
+ iconBg: "bg-primary/10 text-primary",
7758
+ textColor: "text-primary"
7759
+ }
7760
+ };
7761
+ var rootVariants2 = classVarianceAuthority.cva(
7762
+ "relative overflow-hidden bg-card shadow-sm border border-border h-full",
7763
+ {
7764
+ variants: {
7765
+ variant: {
7766
+ default: "rounded-2xl",
7767
+ compact: "rounded-xl",
7768
+ mini: "rounded-xl"
7769
+ }
7770
+ },
7771
+ defaultVariants: {
7772
+ variant: "default"
7773
+ }
7774
+ }
7775
+ );
7776
+ function StatsCardRoot({
7777
+ colorScheme = "blue",
7778
+ variant = "default",
7779
+ className,
7780
+ children,
7781
+ ...props
7782
+ }) {
7783
+ const config = colorConfigs[colorScheme];
7784
+ return /* @__PURE__ */ jsxRuntime.jsx(StatsCardContext.Provider, { value: { colorScheme, variant, config }, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn(rootVariants2({ variant }), className), ...props, children: [
7785
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("absolute inset-0 bg-gradient-to-br pointer-events-none", config.bgGradient) }),
7786
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(
7787
+ "relative flex h-full",
7788
+ variant === "compact" ? "flex-row items-center p-3 gap-3" : "flex-col",
7789
+ variant === "mini" && "p-3",
7790
+ variant === "default" && ""
7791
+ ), children })
7792
+ ] }) });
7793
+ }
7794
+ function StatsCardHeader({ className, children, ...props }) {
7795
+ const { variant } = useStatsCard();
7796
+ return /* @__PURE__ */ jsxRuntime.jsx(
7797
+ "div",
7798
+ {
7799
+ className: cn(
7800
+ "flex items-center justify-between",
7801
+ variant === "default" && "p-4 pb-2",
7802
+ variant === "mini" && "mb-2",
7803
+ variant === "compact" && "flex-1 min-w-0",
7804
+ className
7805
+ ),
7806
+ ...props,
7807
+ children
7808
+ }
7809
+ );
7810
+ }
7811
+ function StatsCardIcon({ icon: Icon2, className, ...props }) {
7812
+ const { config, variant } = useStatsCard();
7813
+ return /* @__PURE__ */ jsxRuntime.jsx(
7814
+ "div",
7815
+ {
7816
+ className: cn(
7817
+ "rounded-lg",
7818
+ config.iconBg,
7819
+ variant === "mini" ? "p-1.5" : "p-2",
7820
+ className
7821
+ ),
7822
+ ...props,
7823
+ children: /* @__PURE__ */ jsxRuntime.jsx(Icon2, { className: cn(variant === "mini" ? "w-3.5 h-3.5" : "w-4 h-4") })
7824
+ }
7825
+ );
7826
+ }
7827
+ function StatsCardTitle({ className, children, ...props }) {
7828
+ const { variant } = useStatsCard();
7829
+ return /* @__PURE__ */ jsxRuntime.jsx(
7830
+ "h3",
7831
+ {
7832
+ className: cn(
7833
+ "font-medium text-gray-700",
7834
+ variant === "mini" ? "text-xs leading-tight" : "text-sm",
7835
+ className
7836
+ ),
7837
+ ...props,
7838
+ children
7839
+ }
7840
+ );
7841
+ }
7842
+ function StatsCardSubtitle({ className, children, ...props }) {
7843
+ const { variant } = useStatsCard();
7844
+ return /* @__PURE__ */ jsxRuntime.jsx(
7845
+ "p",
7846
+ {
7847
+ className: cn(
7848
+ "text-gray-400",
7849
+ variant === "mini" ? "text-[9px] leading-tight" : "text-[10px]",
7850
+ className
7851
+ ),
7852
+ ...props,
7853
+ children
7854
+ }
7855
+ );
7856
+ }
7857
+ function StatsCardValue({ className, children, ...props }) {
7858
+ const { variant } = useStatsCard();
7859
+ return /* @__PURE__ */ jsxRuntime.jsx(
7860
+ "p",
7861
+ {
7862
+ className: cn(
7863
+ "font-light tracking-tight text-gray-900",
7864
+ variant === "mini" ? "text-3xl" : variant === "compact" ? "text-2xl" : "text-4xl",
7865
+ className
7866
+ ),
7867
+ ...props,
7868
+ children
7869
+ }
7870
+ );
7871
+ }
7872
+ function StatsCardChange({ type = "positive", className, children, ...props }) {
7873
+ const { config, variant } = useStatsCard();
7874
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("flex items-center gap-0.5", className), ...props, children: [
7875
+ /* @__PURE__ */ jsxRuntime.jsx(
7876
+ "svg",
7877
+ {
7878
+ className: cn(variant === "mini" ? "w-2 h-2" : "w-2.5 h-2.5", config.textColor),
7879
+ viewBox: "0 0 12 12",
7880
+ fill: "currentColor",
7881
+ children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: type === "negative" ? "M6 10L10 5H2L6 10Z" : "M6 2L10 7H2L6 2Z" })
7882
+ }
7883
+ ),
7884
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: cn(
7885
+ "font-medium",
7886
+ config.textColor,
7887
+ variant === "mini" ? "text-[9px]" : "text-[10px]"
7888
+ ), children })
7889
+ ] });
7890
+ }
7891
+ function StatsCardChart({ data, height, className, ...props }) {
7892
+ const { config, variant } = useStatsCard();
7893
+ const gradientId = React49__namespace.useId();
7894
+ const chartHeight = height ?? (variant === "mini" ? 40 : variant === "compact" ? 40 : 70);
7895
+ return /* @__PURE__ */ jsxRuntime.jsx(
7896
+ "div",
7897
+ {
7898
+ className: cn(
7899
+ variant === "mini" && "mt-auto h-10",
7900
+ variant === "compact" && "w-16 h-10 shrink-0",
7901
+ variant === "default" && "flex-1 relative mt-auto",
7902
+ className
7903
+ ),
7904
+ ...props,
7905
+ children: /* @__PURE__ */ jsxRuntime.jsx(recharts.ResponsiveContainer, { width: "100%", height: chartHeight, children: /* @__PURE__ */ jsxRuntime.jsxs(recharts.AreaChart, { data, margin: { top: 2, right: 0, left: 0, bottom: 0 }, children: [
7906
+ /* @__PURE__ */ jsxRuntime.jsx("defs", { children: /* @__PURE__ */ jsxRuntime.jsxs("linearGradient", { id: gradientId, x1: "0", y1: "0", x2: "0", y2: "1", children: [
7907
+ /* @__PURE__ */ jsxRuntime.jsx("stop", { offset: "0%", stopColor: config.gradientStart }),
7908
+ /* @__PURE__ */ jsxRuntime.jsx("stop", { offset: "100%", stopColor: config.gradientEnd })
7909
+ ] }) }),
7910
+ /* @__PURE__ */ jsxRuntime.jsx(
7911
+ recharts.Tooltip,
7912
+ {
7913
+ content: ({ active, payload }) => {
7914
+ if (active && payload && payload.length) {
7915
+ const point = payload[0].payload;
7916
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "bg-white/95 backdrop-blur-sm rounded-lg px-2 py-1.5 shadow-lg border border-gray-100", children: [
7917
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-[10px] font-medium text-gray-700", children: point.value }),
7918
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-[9px] text-gray-400", children: point.date })
7919
+ ] });
7920
+ }
7921
+ return null;
7922
+ }
7923
+ }
7924
+ ),
7925
+ /* @__PURE__ */ jsxRuntime.jsx(
7926
+ recharts.Area,
7927
+ {
7928
+ type: "monotone",
7929
+ dataKey: "value",
7930
+ stroke: config.lineColor,
7931
+ strokeWidth: 1.5,
7932
+ fill: `url(#${gradientId})`,
7933
+ dot: false,
7934
+ activeDot: {
7935
+ r: variant === "mini" ? 2 : 3,
7936
+ fill: config.lineColor,
7937
+ stroke: "white",
7938
+ strokeWidth: variant === "mini" ? 1 : 2
7939
+ }
7940
+ }
7941
+ )
7942
+ ] }) })
7943
+ }
7944
+ );
7945
+ }
7946
+ function StatsCardContent({ className, children, ...props }) {
7947
+ const { variant } = useStatsCard();
7948
+ return /* @__PURE__ */ jsxRuntime.jsx(
7949
+ "div",
7950
+ {
7951
+ className: cn(
7952
+ variant === "mini" && "mb-2",
7953
+ variant === "default" && "mt-2",
7954
+ className
7955
+ ),
7956
+ ...props,
7957
+ children
7958
+ }
7959
+ );
7960
+ }
7961
+ function StatsCardToday({ label, type = "positive", className, children, ...props }) {
7962
+ const { config } = useStatsCard();
7963
+ return /* @__PURE__ */ jsxRuntime.jsxs("p", { className: cn("text-xs mt-0.5", className), ...props, children: [
7964
+ /* @__PURE__ */ jsxRuntime.jsxs("span", { className: config.textColor, children: [
7965
+ type === "positive" ? "+" : "",
7966
+ children
7967
+ ] }),
7968
+ label && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-gray-500 ml-1", children: label })
7969
+ ] });
7970
+ }
7971
+ var StatsCard = Object.assign(StatsCardRoot, {
7972
+ Header: StatsCardHeader,
7973
+ Icon: StatsCardIcon,
7974
+ Title: StatsCardTitle,
7975
+ Subtitle: StatsCardSubtitle,
7976
+ Value: StatsCardValue,
7977
+ Change: StatsCardChange,
7978
+ Chart: StatsCardChart,
7979
+ Content: StatsCardContent,
7980
+ Today: StatsCardToday
7981
+ });
7704
7982
  var initialState = {
7705
7983
  theme: "system",
7706
7984
  setTheme: () => null
@@ -7918,6 +8196,7 @@ exports.Sidebar = Sidebar;
7918
8196
  exports.SimpleTooltip = SimpleTooltip;
7919
8197
  exports.Skeleton = Skeleton;
7920
8198
  exports.Sparkline = Sparkline;
8199
+ exports.StatsCard = StatsCard;
7921
8200
  exports.Switch = Switch;
7922
8201
  exports.THEME_INFO = THEME_INFO;
7923
8202
  exports.Table = Table;