@mvn-ui/react 0.1.3 → 0.1.4

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
@@ -44,6 +44,7 @@ import { DayPicker, DayButton, DateRange } from 'react-day-picker';
44
44
  export { DateRange } from 'react-day-picker';
45
45
  import useEmblaCarousel, { UseEmblaCarouselType } from 'embla-carousel-react';
46
46
  import { ClassValue } from 'clsx';
47
+ export { Area, Bar, Brush, CartesianGrid, Cell, Legend as ChartLegend, Tooltip as ChartTooltip, Line, Pie, PolarAngleAxis, PolarGrid, PolarRadiusAxis, Radar, ReferenceArea, ReferenceLine, ResponsiveContainer, Scatter, XAxis, YAxis, ZAxis } from 'recharts';
47
48
 
48
49
  /**
49
50
  * Button variants (shadcn-style)
@@ -1909,6 +1910,15 @@ interface SimpleTableProps<T = any> extends VariantProps<typeof tableVariants> {
1909
1910
  pagingPosition?: 'right' | 'left' | 'middle';
1910
1911
  /** Number of records to load per lazy load call */
1911
1912
  recordPerChunk?: number;
1913
+ /** Initial column pinning state */
1914
+ defaultColumnPinning?: {
1915
+ left?: string[];
1916
+ right?: string[];
1917
+ };
1918
+ /** Enable column resizing */
1919
+ enableColumnResizing?: boolean;
1920
+ /** Column resize mode: 'onChange' updates width while dragging, 'onEnd' updates on mouse up */
1921
+ columnResizeMode?: 'onChange' | 'onEnd';
1912
1922
  }
1913
1923
  interface MetaFilterValue {
1914
1924
  filterType: string;
@@ -1960,7 +1970,7 @@ interface MetaFilterValue {
1960
1970
  * onRowClick={(record) => console.log(record)}
1961
1971
  * />
1962
1972
  */
1963
- declare function SimpleTable<T = any>({ data, columns, caption, loading, loadingComponent, emptyMessage, rowKey, onRowClick, rowClassName, className, pagination, pageSize, currentPage, onPageChange, sortBy, sortDirection, onSortChange, variant, size, selectable, onSelectionChange, enableGlobalFilter, globalFilterPlaceholder, enableColumnOrdering, getCheckboxProps, selectedRowKey, enableExport, exportFileName, onExport, expandable, renderExpandedContent, getRowCanExpand, getRowExpandable, onExpandedChange, onLazyScrollLoad, scrollLoadThreshold, numberOfPageButtons, onClickExport, baseRowEstimateSize, expandContentEstimateSize, overScan, virtualizationThreshold, showIndex, customizeToolbar, manualSorting, onFilterChange, manualFiltering, lazyLoadIndicatorType, maxHeight, maxWidth, maxRecords, loadingText, pagingPosition, recordPerChunk, }: SimpleTableProps<T>): react_jsx_runtime.JSX.Element;
1973
+ declare function SimpleTable<T = any>({ data, columns, caption, loading, loadingComponent, emptyMessage, rowKey, onRowClick, rowClassName, className, pagination, pageSize, currentPage, onPageChange, sortBy, sortDirection, onSortChange, variant, size, selectable, onSelectionChange, enableGlobalFilter, globalFilterPlaceholder, enableColumnOrdering, getCheckboxProps, selectedRowKey, enableExport, exportFileName, onExport, expandable, renderExpandedContent, getRowCanExpand, getRowExpandable, onExpandedChange, onLazyScrollLoad, scrollLoadThreshold, numberOfPageButtons, onClickExport, baseRowEstimateSize, expandContentEstimateSize, overScan, virtualizationThreshold, showIndex, customizeToolbar, manualSorting, onFilterChange, manualFiltering, lazyLoadIndicatorType, maxHeight, maxWidth, maxRecords, loadingText, pagingPosition, recordPerChunk, defaultColumnPinning, }: SimpleTableProps<T>): react_jsx_runtime.JSX.Element;
1964
1974
 
1965
1975
  interface DataTableProps<TData, TValue> {
1966
1976
  columns: ColumnDef<TData, TValue>[];
@@ -2373,7 +2383,7 @@ type CarouselPlugin = UseCarouselParameters[1];
2373
2383
  type CarouselProps = {
2374
2384
  opts?: CarouselOptions;
2375
2385
  plugins?: CarouselPlugin;
2376
- orientation?: "horizontal" | "vertical";
2386
+ orientation?: 'horizontal' | 'vertical';
2377
2387
  setApi?: (api: CarouselApi) => void;
2378
2388
  };
2379
2389
  type CarouselContextProps = {
@@ -2404,7 +2414,7 @@ interface SimpleCarouselProps {
2404
2414
  /** Array of carousel items */
2405
2415
  items: CarouselItemData[];
2406
2416
  /** Carousel orientation */
2407
- orientation?: "horizontal" | "vertical";
2417
+ orientation?: 'horizontal' | 'vertical';
2408
2418
  /** Show navigation arrows */
2409
2419
  showArrows?: boolean;
2410
2420
  /** Show dots indicators */
@@ -2518,4 +2528,445 @@ declare const TypographyGroup: {
2518
2528
 
2519
2529
  declare function cn(...inputs: ClassValue[]): string;
2520
2530
 
2521
- export { Accordion, type AccordionItemData, type AccordionProps, Alert, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, type AlertProps, AspectRatio, Avatar, AvatarFallback, AvatarGroup, type AvatarGroupData, type AvatarGroupProps, AvatarImage, Badge, type BadgeProps, Blockquote, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonGroup, type ButtonGroupProps, ButtonGroupSeparator, type ButtonGroupSeparatorProps, ButtonGroupText, type ButtonGroupTextProps, type ButtonProps, Calendar, CalendarDayButton, type CalendarProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, type CarouselApi, CarouselContent, CarouselItem, type CarouselItemData, CarouselNext, CarouselPrevious, Checkbox, type CheckboxProps, Collapsible, CollapsibleContent, CollapsibleItem, CollapsibleTrigger, type ColumnsProps, Combobox, type ComboboxOption, type ComboboxProps, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, DataTable, type DataTableProps, DatePicker, type DatePickerProps, DateRangePicker, type DateRangePickerProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DotsSpinner, type DotsSpinnerProps, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Empty, type EmptyProps, Field, type FieldError, type FieldProps, Form, type FormInstance, FormItem, type FormItemProps, type FormItemVariant, FormList, type FormProps, H1, H2, H3, H4, HoverCard, HoverCardContent, HoverCardTrigger, IconButton, type IconButtonProps, InlineCode, Input, InputGroup, type InputGroupProps, InputOTP, InputOTPGroup, type InputOTPProps, InputOTPSeparator, InputOTPSlot, type InputProps, Item, ItemGroup, ItemList, type ItemProps, ItemSeparator, Label, type LabelProps, Lead, List, ListItem, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Muted, type NamePath, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, P, Pagination, PaginationContent, PaginationEllipsis, PaginationFirst, PaginationItem, PaginationLast, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, ProductCard, ProfileCard, Progress, type ProgressProps, RadioGroup, RadioGroupItem, type RadioGroupItemData, type RadioGroupProps, ResizableHandle, ResizablePanel, ResizablePanelGroup, type Rule, ScrollArea, type ScrollAreaProps, ScrollBar, type ScrollBarProps, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, type SeparatorProps, Sheet, SheetClose, SheetContent, type SheetContentProps, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarContent, type SidebarContextProps, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, SimpleAvatar, type SimpleAvatarProps, SimpleCard, type SimpleCardProps, SimpleCarousel, type SimpleCarouselProps, SimpleTable, type SimpleTableProps, SimpleTabs, type SimpleTabsProps, SimpleTooltip, type SimpleTooltipProps, Skeleton, SkeletonCard, type SkeletonCardProps, type SkeletonProps, Slider, type SliderProps, Small, Spinner, type SpinnerProps, Switch, type SwitchProps, type TabItem, Table, TableBody, TableCaption, TableCell, type TableColumn, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, type TextareaProps, Toast, type ToastData, type ToastId, type ToastProps, ToastProvider, Toaster, Toggle, ToggleGroup, ToggleGroupItem, type ToggleGroupItemData, type ToggleGroupItemProps, type ToggleGroupProps, type ToggleProps, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, Typography, TypographyGroup, type TypographyProps, type TypographyType, alertVariants, avatarVariants, badgeVariants, buttonVariants, cardVariants, checkboxVariants, cn, composeRules, emailRule, emptyVariants, fieldVariants, getInitials, inputGroupVariants, inputVariants, itemVariants, labelVariants, maxLengthRule, maxValueRule, minLengthRule, minValueRule, navigationMenuTriggerStyle, numberRule, patternRule, progressVariants, radioGroupVariants, requiredRule, separatorVariants, skeletonVariants, spinnerVariants, tableVariants, textareaVariants, toastVariants, toggleGroupVariants, toggleVariants, urlRule, useCarousel, useForm, useSidebar, useToast, useWatch };
2531
+ /**
2532
+ * Default chart color palette - uses CSS variables for theme integration
2533
+ * CSS variables contain hex colors directly (e.g., #007bff)
2534
+ */
2535
+ declare const CHART_COLORS: {
2536
+ readonly primary: "var(--chart-1)";
2537
+ readonly secondary: "var(--chart-2)";
2538
+ readonly tertiary: "var(--chart-3)";
2539
+ readonly quaternary: "var(--chart-4)";
2540
+ readonly quinary: "var(--chart-5)";
2541
+ readonly success: "#22a55b";
2542
+ readonly warning: "#f59e0b";
2543
+ readonly error: "#ef4444";
2544
+ readonly info: "var(--chart-1)";
2545
+ readonly muted: "var(--muted-foreground)";
2546
+ readonly foreground: "var(--foreground)";
2547
+ readonly background: "var(--background)";
2548
+ readonly grid: "var(--border)";
2549
+ };
2550
+ /**
2551
+ * Chart color palette array for multi-series charts
2552
+ */
2553
+ declare const CHART_PALETTE: ("var(--chart-1)" | "var(--chart-2)" | "var(--chart-3)" | "var(--chart-4)" | "var(--chart-5)" | "#22a55b" | "#f59e0b" | "#ef4444")[];
2554
+ /**
2555
+ * Get theme-aware chart colors (for client-side usage)
2556
+ * Returns hex colors directly from CSS variables
2557
+ */
2558
+ declare const getThemeColors: () => {
2559
+ primary: string;
2560
+ chart1: string;
2561
+ chart2: string;
2562
+ chart3: string;
2563
+ chart4: string;
2564
+ chart5: string;
2565
+ foreground: string;
2566
+ muted: string;
2567
+ grid: string;
2568
+ background: string;
2569
+ };
2570
+ /**
2571
+ * Common chart tooltip styles
2572
+ */
2573
+ declare const tooltipStyle: {
2574
+ backgroundColor: string;
2575
+ border: string;
2576
+ borderRadius: string;
2577
+ padding: string;
2578
+ boxShadow: string;
2579
+ color: string;
2580
+ };
2581
+ /**
2582
+ * Common chart legend styles
2583
+ */
2584
+ declare const legendStyle: {
2585
+ fontSize: string;
2586
+ color: string;
2587
+ };
2588
+ type ChartColor = keyof typeof CHART_COLORS;
2589
+
2590
+ interface LineChartDataKey {
2591
+ dataKey: string;
2592
+ name?: string;
2593
+ stroke?: string;
2594
+ strokeWidth?: number;
2595
+ dot?: boolean;
2596
+ type?: 'monotone' | 'linear' | 'step' | 'stepBefore' | 'stepAfter';
2597
+ }
2598
+ interface LineChartProps {
2599
+ /** Chart data array */
2600
+ data: Record<string, unknown>[];
2601
+ /** Data key for X axis */
2602
+ xAxisKey: string;
2603
+ /** Line configurations */
2604
+ lines: LineChartDataKey[];
2605
+ /** Chart width (default: 100%) */
2606
+ width?: number | string;
2607
+ /** Chart height (default: 300, use '100%' to fill container) */
2608
+ height?: number | string;
2609
+ /** Show grid lines */
2610
+ showGrid?: boolean;
2611
+ /** Show tooltip */
2612
+ showTooltip?: boolean;
2613
+ /** Show legend */
2614
+ showLegend?: boolean;
2615
+ /** Show X axis (default: true) */
2616
+ showXAxis?: boolean;
2617
+ /** Show Y axis (default: true) */
2618
+ showYAxis?: boolean;
2619
+ /** X axis label */
2620
+ xAxisLabel?: string;
2621
+ /** Y axis label */
2622
+ yAxisLabel?: string;
2623
+ /** Chart margins */
2624
+ margin?: {
2625
+ top?: number;
2626
+ right?: number;
2627
+ bottom?: number;
2628
+ left?: number;
2629
+ };
2630
+ /** Custom class name */
2631
+ className?: string;
2632
+ }
2633
+ /**
2634
+ * LineChart - Theme-aware line chart component
2635
+ *
2636
+ * @example
2637
+ * <LineChart
2638
+ * data={[{ month: 'Jan', sales: 100 }, { month: 'Feb', sales: 200 }]}
2639
+ * xAxisKey="month"
2640
+ * lines={[{ dataKey: 'sales', name: 'Sales' }]}
2641
+ * />
2642
+ */
2643
+ declare function LineChart({ data, xAxisKey, lines, width, height, showGrid, showTooltip, showLegend, showXAxis, showYAxis, margin, className, }: LineChartProps): react_jsx_runtime.JSX.Element;
2644
+
2645
+ interface BarChartDataKey {
2646
+ dataKey: string;
2647
+ name?: string;
2648
+ fill?: string;
2649
+ stackId?: string;
2650
+ radius?: number | [number, number, number, number];
2651
+ }
2652
+ interface BarChartProps {
2653
+ /** Chart data array */
2654
+ data: Record<string, unknown>[];
2655
+ /** Data key for X axis */
2656
+ xAxisKey: string;
2657
+ /** Bar configurations */
2658
+ bars: BarChartDataKey[];
2659
+ /** Chart width (default: 100%) */
2660
+ width?: number | string;
2661
+ /** Chart height (default: 300) */
2662
+ height?: number;
2663
+ /** Show grid lines */
2664
+ showGrid?: boolean;
2665
+ /** Show tooltip */
2666
+ showTooltip?: boolean;
2667
+ /** Show legend */
2668
+ showLegend?: boolean;
2669
+ /** Layout direction */
2670
+ layout?: 'horizontal' | 'vertical';
2671
+ /** Chart margins */
2672
+ margin?: {
2673
+ top?: number;
2674
+ right?: number;
2675
+ bottom?: number;
2676
+ left?: number;
2677
+ };
2678
+ /** Custom class name */
2679
+ className?: string;
2680
+ }
2681
+ /**
2682
+ * BarChart - Theme-aware bar chart component
2683
+ *
2684
+ * @example
2685
+ * <BarChart
2686
+ * data={[{ category: 'A', value: 100 }, { category: 'B', value: 200 }]}
2687
+ * xAxisKey="category"
2688
+ * bars={[{ dataKey: 'value', name: 'Value' }]}
2689
+ * />
2690
+ */
2691
+ declare function BarChart({ data, xAxisKey, bars, width, height, showGrid, showTooltip, showLegend, layout, margin, className, }: BarChartProps): react_jsx_runtime.JSX.Element;
2692
+
2693
+ interface PieChartDataItem {
2694
+ name: string;
2695
+ value: number;
2696
+ fill?: string;
2697
+ }
2698
+ interface PieChartProps {
2699
+ /** Chart data array */
2700
+ data: PieChartDataItem[];
2701
+ /** Data key for values (default: 'value') */
2702
+ dataKey?: string;
2703
+ /** Name key for labels (default: 'name') */
2704
+ nameKey?: string;
2705
+ /** Chart width (default: 100%) */
2706
+ width?: number | string;
2707
+ /** Chart height (default: 300) */
2708
+ height?: number;
2709
+ /** Show tooltip */
2710
+ showTooltip?: boolean;
2711
+ /** Show legend */
2712
+ showLegend?: boolean;
2713
+ /** Inner radius for donut chart (default: 0) */
2714
+ innerRadius?: number;
2715
+ /** Outer radius (default: 80) */
2716
+ outerRadius?: number;
2717
+ /** Show labels on slices */
2718
+ showLabel?: boolean;
2719
+ /** Chart margins */
2720
+ margin?: {
2721
+ top?: number;
2722
+ right?: number;
2723
+ bottom?: number;
2724
+ left?: number;
2725
+ };
2726
+ /** Custom class name */
2727
+ className?: string;
2728
+ }
2729
+ /**
2730
+ * PieChart - Theme-aware pie/donut chart component
2731
+ *
2732
+ * @example
2733
+ * <PieChart
2734
+ * data={[
2735
+ * { name: 'Category A', value: 400 },
2736
+ * { name: 'Category B', value: 300 },
2737
+ * ]}
2738
+ * />
2739
+ *
2740
+ * // Donut chart
2741
+ * <PieChart data={data} innerRadius={60} outerRadius={80} />
2742
+ */
2743
+ declare function PieChart({ data, dataKey, nameKey, width, height, showTooltip, showLegend, innerRadius, outerRadius, showLabel, margin, className, }: PieChartProps): react_jsx_runtime.JSX.Element;
2744
+
2745
+ interface AreaChartDataKey {
2746
+ dataKey: string;
2747
+ name?: string;
2748
+ stroke?: string;
2749
+ fill?: string;
2750
+ fillOpacity?: number;
2751
+ stackId?: string;
2752
+ type?: 'monotone' | 'linear' | 'step' | 'stepBefore' | 'stepAfter';
2753
+ }
2754
+ interface AreaChartProps {
2755
+ /** Chart data array */
2756
+ data: Record<string, unknown>[];
2757
+ /** Data key for X axis */
2758
+ xAxisKey: string;
2759
+ /** Area configurations */
2760
+ areas: AreaChartDataKey[];
2761
+ /** Chart width (default: 100%) */
2762
+ width?: number | string;
2763
+ /** Chart height (default: 300) */
2764
+ height?: number;
2765
+ /** Show grid lines */
2766
+ showGrid?: boolean;
2767
+ /** Show tooltip */
2768
+ showTooltip?: boolean;
2769
+ /** Show legend */
2770
+ showLegend?: boolean;
2771
+ /** Chart margins */
2772
+ margin?: {
2773
+ top?: number;
2774
+ right?: number;
2775
+ bottom?: number;
2776
+ left?: number;
2777
+ };
2778
+ /** Custom class name */
2779
+ className?: string;
2780
+ }
2781
+ /**
2782
+ * AreaChart - Theme-aware area chart component
2783
+ *
2784
+ * @example
2785
+ * <AreaChart
2786
+ * data={[{ month: 'Jan', revenue: 1000 }, { month: 'Feb', revenue: 1500 }]}
2787
+ * xAxisKey="month"
2788
+ * areas={[{ dataKey: 'revenue', name: 'Revenue' }]}
2789
+ * />
2790
+ */
2791
+ declare function AreaChart({ data, xAxisKey, areas, width, height, showGrid, showTooltip, showLegend, margin, className, }: AreaChartProps): react_jsx_runtime.JSX.Element;
2792
+
2793
+ interface ScatterChartDataSeries {
2794
+ name: string;
2795
+ data: Record<string, unknown>[];
2796
+ fill?: string;
2797
+ }
2798
+ interface ScatterChartProps {
2799
+ /** Scatter data series */
2800
+ series: ScatterChartDataSeries[];
2801
+ /** Data key for X axis */
2802
+ xAxisKey: string;
2803
+ /** Data key for Y axis */
2804
+ yAxisKey: string;
2805
+ /** Data key for Z axis (bubble size) */
2806
+ zAxisKey?: string;
2807
+ /** Chart width (default: 100%) */
2808
+ width?: number | string;
2809
+ /** Chart height (default: 300) */
2810
+ height?: number;
2811
+ /** Show grid lines */
2812
+ showGrid?: boolean;
2813
+ /** Show tooltip */
2814
+ showTooltip?: boolean;
2815
+ /** Show legend */
2816
+ showLegend?: boolean;
2817
+ /** X axis label */
2818
+ xAxisLabel?: string;
2819
+ /** Y axis label */
2820
+ yAxisLabel?: string;
2821
+ /** Chart margins */
2822
+ margin?: {
2823
+ top?: number;
2824
+ right?: number;
2825
+ bottom?: number;
2826
+ left?: number;
2827
+ };
2828
+ /** Custom class name */
2829
+ className?: string;
2830
+ }
2831
+ /**
2832
+ * ScatterChart - Theme-aware scatter/bubble chart component
2833
+ *
2834
+ * @example
2835
+ * <ScatterChart
2836
+ * series={[
2837
+ * { name: 'Series A', data: [{ x: 100, y: 200 }, { x: 120, y: 100 }] }
2838
+ * ]}
2839
+ * xAxisKey="x"
2840
+ * yAxisKey="y"
2841
+ * />
2842
+ */
2843
+ declare function ScatterChart({ series, xAxisKey, yAxisKey, zAxisKey, width, height, showGrid, showTooltip, showLegend, margin, className, }: ScatterChartProps): react_jsx_runtime.JSX.Element;
2844
+
2845
+ interface RadarChartDataKey {
2846
+ dataKey: string;
2847
+ name?: string;
2848
+ stroke?: string;
2849
+ fill?: string;
2850
+ fillOpacity?: number;
2851
+ }
2852
+ interface RadarChartProps {
2853
+ /** Chart data array */
2854
+ data: Record<string, unknown>[];
2855
+ /** Data key for angle axis (categories) */
2856
+ angleKey: string;
2857
+ /** Radar configurations */
2858
+ radars: RadarChartDataKey[];
2859
+ /** Chart width (default: 100%) */
2860
+ width?: number | string;
2861
+ /** Chart height (default: 300) */
2862
+ height?: number;
2863
+ /** Show tooltip */
2864
+ showTooltip?: boolean;
2865
+ /** Show legend */
2866
+ showLegend?: boolean;
2867
+ /** Outer radius (default: 80) */
2868
+ outerRadius?: number | string;
2869
+ /** Chart margins */
2870
+ margin?: {
2871
+ top?: number;
2872
+ right?: number;
2873
+ bottom?: number;
2874
+ left?: number;
2875
+ };
2876
+ /** Custom class name */
2877
+ className?: string;
2878
+ /** Domain for radius axis */
2879
+ domain?: [number, number];
2880
+ }
2881
+ /**
2882
+ * RadarChart - Theme-aware radar/spider chart component
2883
+ *
2884
+ * @example
2885
+ * <RadarChart
2886
+ * data={[
2887
+ * { subject: 'Math', score: 80 },
2888
+ * { subject: 'Science', score: 90 },
2889
+ * ]}
2890
+ * angleKey="subject"
2891
+ * radars={[{ dataKey: 'score', name: 'Score' }]}
2892
+ * />
2893
+ */
2894
+ declare function RadarChart({ data, angleKey, radars, width, height, showTooltip, showLegend, outerRadius, margin, domain, className, }: RadarChartProps): react_jsx_runtime.JSX.Element;
2895
+
2896
+ /** Available theme names */
2897
+ declare const THEMES: {
2898
+ readonly default: "default";
2899
+ readonly sunset: "sunset";
2900
+ readonly lavender: "lavender";
2901
+ readonly rose: "rose";
2902
+ readonly slate: "slate";
2903
+ readonly midnight: "midnight";
2904
+ readonly emerald: "emerald";
2905
+ readonly amber: "amber";
2906
+ readonly crimson: "crimson";
2907
+ };
2908
+ type ThemeName = keyof typeof THEMES;
2909
+ type ThemeMode = 'light' | 'dark' | 'system';
2910
+ /** Theme metadata for UI selectors */
2911
+ interface ThemeInfo {
2912
+ name: ThemeName;
2913
+ label: string;
2914
+ description: string;
2915
+ primaryColor: string;
2916
+ }
2917
+ /** Theme catalog with metadata */
2918
+ declare const THEME_CATALOG: ThemeInfo[];
2919
+ /**
2920
+ * Get the current theme from the document
2921
+ */
2922
+ declare function getCurrentTheme(): ThemeName;
2923
+ /**
2924
+ * Get the current color mode (light/dark)
2925
+ */
2926
+ declare function getCurrentMode(): 'light' | 'dark';
2927
+ /**
2928
+ * Set the theme on the document root
2929
+ */
2930
+ declare function setTheme(theme: ThemeName): void;
2931
+ /**
2932
+ * Set the color mode (light/dark)
2933
+ */
2934
+ declare function setMode(mode: ThemeMode): void;
2935
+ /**
2936
+ * Initialize theme from localStorage or system preference
2937
+ */
2938
+ declare function initializeTheme(): void;
2939
+ interface ThemeContextValue {
2940
+ theme: ThemeName;
2941
+ mode: ThemeMode;
2942
+ resolvedMode: 'light' | 'dark';
2943
+ setTheme: (theme: ThemeName) => void;
2944
+ setMode: (mode: ThemeMode) => void;
2945
+ }
2946
+ interface ThemeProviderProps {
2947
+ children: ReactNode;
2948
+ /** Default theme (default: 'default') */
2949
+ defaultTheme?: ThemeName;
2950
+ /** Default mode (default: 'system') */
2951
+ defaultMode?: ThemeMode;
2952
+ /** Storage key for theme persistence */
2953
+ storageKey?: string;
2954
+ }
2955
+ /**
2956
+ * ThemeProvider component for React applications
2957
+ *
2958
+ * @example
2959
+ * <ThemeProvider defaultTheme="ocean" defaultMode="dark">
2960
+ * <App />
2961
+ * </ThemeProvider>
2962
+ */
2963
+ declare function ThemeProvider({ children, defaultTheme, defaultMode, storageKey, }: ThemeProviderProps): react_jsx_runtime.JSX.Element;
2964
+ /**
2965
+ * Hook to access theme context
2966
+ *
2967
+ * @example
2968
+ * const { theme, setTheme, mode, setMode } = useTheme();
2969
+ */
2970
+ declare function useTheme(): ThemeContextValue;
2971
+
2972
+ export { Accordion, type AccordionItemData, type AccordionProps, Alert, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, type AlertProps, AreaChart, type AreaChartDataKey, type AreaChartProps, AspectRatio, Avatar, AvatarFallback, AvatarGroup, type AvatarGroupData, type AvatarGroupProps, AvatarImage, Badge, type BadgeProps, BarChart, type BarChartDataKey, type BarChartProps, Blockquote, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonGroup, type ButtonGroupProps, ButtonGroupSeparator, type ButtonGroupSeparatorProps, ButtonGroupText, type ButtonGroupTextProps, type ButtonProps, CHART_COLORS, CHART_PALETTE, Calendar, CalendarDayButton, type CalendarProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, type CarouselApi, CarouselContent, CarouselItem, type CarouselItemData, CarouselNext, CarouselPrevious, type ChartColor, Checkbox, type CheckboxProps, Collapsible, CollapsibleContent, CollapsibleItem, CollapsibleTrigger, type ColumnsProps, Combobox, type ComboboxOption, type ComboboxProps, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, DataTable, type DataTableProps, DatePicker, type DatePickerProps, DateRangePicker, type DateRangePickerProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DotsSpinner, type DotsSpinnerProps, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Empty, type EmptyProps, Field, type FieldError, type FieldProps, Form, type FormInstance, FormItem, type FormItemProps, type FormItemVariant, FormList, type FormProps, H1, H2, H3, H4, HoverCard, HoverCardContent, HoverCardTrigger, IconButton, type IconButtonProps, InlineCode, Input, InputGroup, type InputGroupProps, InputOTP, InputOTPGroup, type InputOTPProps, InputOTPSeparator, InputOTPSlot, type InputProps, Item, ItemGroup, ItemList, type ItemProps, ItemSeparator, Label, type LabelProps, Lead, LineChart, type LineChartDataKey, type LineChartProps, List, ListItem, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Muted, type NamePath, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, P, Pagination, PaginationContent, PaginationEllipsis, PaginationFirst, PaginationItem, PaginationLast, PaginationLink, PaginationNext, PaginationPrevious, PieChart, type PieChartDataItem, type PieChartProps, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, ProductCard, ProfileCard, Progress, type ProgressProps, RadarChart, type RadarChartDataKey, type RadarChartProps, RadioGroup, RadioGroupItem, type RadioGroupItemData, type RadioGroupProps, ResizableHandle, ResizablePanel, ResizablePanelGroup, type Rule, ScatterChart, type ScatterChartDataSeries, type ScatterChartProps, ScrollArea, type ScrollAreaProps, ScrollBar, type ScrollBarProps, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, type SeparatorProps, Sheet, SheetClose, SheetContent, type SheetContentProps, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarContent, type SidebarContextProps, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, SimpleAvatar, type SimpleAvatarProps, SimpleCard, type SimpleCardProps, SimpleCarousel, type SimpleCarouselProps, SimpleTable, type SimpleTableProps, SimpleTabs, type SimpleTabsProps, SimpleTooltip, type SimpleTooltipProps, Skeleton, SkeletonCard, type SkeletonCardProps, type SkeletonProps, Slider, type SliderProps, Small, Spinner, type SpinnerProps, Switch, type SwitchProps, THEMES, THEME_CATALOG, type TabItem, Table, TableBody, TableCaption, TableCell, type TableColumn, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, type TextareaProps, type ThemeInfo, type ThemeMode, type ThemeName, ThemeProvider, type ThemeProviderProps, Toast, type ToastData, type ToastId, type ToastProps, ToastProvider, Toaster, Toggle, ToggleGroup, ToggleGroupItem, type ToggleGroupItemData, type ToggleGroupItemProps, type ToggleGroupProps, type ToggleProps, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, Typography, TypographyGroup, type TypographyProps, type TypographyType, alertVariants, avatarVariants, badgeVariants, buttonVariants, cardVariants, checkboxVariants, cn, composeRules, emailRule, emptyVariants, fieldVariants, getCurrentMode, getCurrentTheme, getInitials, getThemeColors, initializeTheme, inputGroupVariants, inputVariants, itemVariants, labelVariants, legendStyle, maxLengthRule, maxValueRule, minLengthRule, minValueRule, navigationMenuTriggerStyle, numberRule, patternRule, progressVariants, radioGroupVariants, requiredRule, separatorVariants, setMode, setTheme, skeletonVariants, spinnerVariants, tableVariants, textareaVariants, toastVariants, toggleGroupVariants, toggleVariants, tooltipStyle, urlRule, useCarousel, useForm, useSidebar, useTheme, useToast, useWatch };