@moontra/moonui-pro 2.1.3 → 2.2.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.ts CHANGED
@@ -3,6 +3,7 @@ import * as React from 'react';
3
3
  import React__default, { ReactNode, ErrorInfo } from 'react';
4
4
  import { VariantProps } from 'class-variance-authority';
5
5
  import * as react_jsx_runtime from 'react/jsx-runtime';
6
+ import { ColumnDef } from '@tanstack/react-table';
6
7
  import * as DialogPrimitive from '@radix-ui/react-dialog';
7
8
 
8
9
  declare const animatedButtonVariants: (props?: ({
@@ -670,6 +671,65 @@ interface PerformanceMonitorProps {
670
671
  }
671
672
  declare const PerformanceMonitor: React__default.FC<PerformanceMonitorProps>;
672
673
 
674
+ interface FileUploadProps {
675
+ accept?: string;
676
+ multiple?: boolean;
677
+ maxSize?: number;
678
+ maxFiles?: number;
679
+ onUpload?: (files: File[]) => Promise<void>;
680
+ onRemove?: (file: File) => void;
681
+ className?: string;
682
+ disabled?: boolean;
683
+ showPreview?: boolean;
684
+ allowedTypes?: string[];
685
+ }
686
+ declare function FileUpload({ accept, multiple, maxSize, // 10MB default
687
+ maxFiles, onUpload, onRemove, className, disabled, showPreview, allowedTypes }: FileUploadProps): react_jsx_runtime.JSX.Element;
688
+
689
+ interface DataTableProps<TData, TValue> {
690
+ columns: ColumnDef<TData, TValue>[];
691
+ data: TData[];
692
+ searchable?: boolean;
693
+ filterable?: boolean;
694
+ exportable?: boolean;
695
+ selectable?: boolean;
696
+ pagination?: boolean;
697
+ pageSize?: number;
698
+ className?: string;
699
+ onRowSelect?: (rows: TData[]) => void;
700
+ onExport?: (data: TData[]) => void;
701
+ features?: {
702
+ sorting?: boolean;
703
+ filtering?: boolean;
704
+ pagination?: boolean;
705
+ search?: boolean;
706
+ columnVisibility?: boolean;
707
+ rowSelection?: boolean;
708
+ export?: boolean | string[];
709
+ density?: boolean;
710
+ fullscreen?: boolean;
711
+ print?: boolean;
712
+ };
713
+ theme?: {
714
+ headerBg?: string;
715
+ headerText?: string;
716
+ borderColor?: string;
717
+ rowHoverBg?: string;
718
+ selectedRowBg?: string;
719
+ };
720
+ texts?: {
721
+ searchPlaceholder?: string;
722
+ noResults?: string;
723
+ rowsPerPage?: string;
724
+ selectedRows?: string;
725
+ exportButton?: string;
726
+ columnsButton?: string;
727
+ densityButton?: string;
728
+ filterButton?: string;
729
+ };
730
+ }
731
+ declare function DataTable<TData, TValue>({ columns, data, searchable, filterable, exportable, selectable, pagination, pageSize, className, onRowSelect, onExport, features, theme, texts, }: DataTableProps<TData, TValue>): react_jsx_runtime.JSX.Element;
732
+
673
733
  declare const enhancedButtonVariants: (props?: ({
674
734
  variant?: "default" | "glow" | "outline" | "gradient" | "link" | "secondary" | "ghost" | "destructive" | null | undefined;
675
735
  size?: "default" | "sm" | "lg" | "icon" | null | undefined;
@@ -787,4 +847,4 @@ declare namespace index {
787
847
  };
788
848
  }
789
849
 
790
- export { AdvancedChart, AdvancedFormField, AdvancedForms, AdvancedFormsProps, AnimatedButton, AnimatedButtonProps, Calendar, CalendarEvent, ChartType, ColorPicker, ColorPickerProps, Dashboard, DraggableList, DraggableListProps, index as Enhanced, ErrorBoundary, FloatingActionButton, FloatingActionButtonProps, GitHubRepository, GitHubStars, GitHubStarsProps, HealthCheck, HealthCheckEndpoint, HealthCheckProps, HealthCheckResult, HoverCard3D, HoverCard3DProps, Kanban, LazyComponent, LazyImage, LazyImageProps, LazyList, LazyListProps, MagneticButton, MagneticButtonProps, MemoryAnalytics, MemoryAnalyticsProps, MemoryConfig, MemoryEfficientData, MemoryEfficientDataProps, MemoryStats, OptimizedImage, OptimizedImageProps, PerformanceAlert, PerformanceDebugger, PerformanceDebuggerProps, PerformanceEntry, PerformanceMetric, PerformanceMetrics, PerformanceMonitor, PerformanceMonitorProps, PinchZoom, RichTextEditor, SelectableVirtualList, SelectableVirtualListProps, SpotlightCard, SpotlightCardProps, SwipeableCard, Timeline, VirtualList, VirtualListProps, animatedButtonVariants, useStreamingData, useVirtualList };
850
+ export { AdvancedChart, AdvancedFormField, AdvancedForms, AdvancedFormsProps, AnimatedButton, AnimatedButtonProps, Calendar, CalendarEvent, ChartType, ColorPicker, ColorPickerProps, Dashboard, DataTable, DraggableList, DraggableListProps, index as Enhanced, ErrorBoundary, FileUpload, FloatingActionButton, FloatingActionButtonProps, GitHubRepository, GitHubStars, GitHubStarsProps, HealthCheck, HealthCheckEndpoint, HealthCheckProps, HealthCheckResult, HoverCard3D, HoverCard3DProps, Kanban, LazyComponent, LazyImage, LazyImageProps, LazyList, LazyListProps, MagneticButton, MagneticButtonProps, MemoryAnalytics, MemoryAnalyticsProps, MemoryConfig, MemoryEfficientData, MemoryEfficientDataProps, MemoryStats, OptimizedImage, OptimizedImageProps, PerformanceAlert, PerformanceDebugger, PerformanceDebuggerProps, PerformanceEntry, PerformanceMetric, PerformanceMetrics, PerformanceMonitor, PerformanceMonitorProps, PinchZoom, RichTextEditor, SelectableVirtualList, SelectableVirtualListProps, SpotlightCard, SpotlightCardProps, SwipeableCard, Timeline, VirtualList, VirtualListProps, animatedButtonVariants, useStreamingData, useVirtualList };