pillardash-ui-react 0.1.90 → 0.1.91

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
@@ -90,8 +90,37 @@ declare const CheckBox: ({ variant, size, checked, disabled, onChange, label, la
90
90
  declare const RadioGroup: ({ name, value, onChange, options, size, className, error, helperText, required, label, direction, }: RadioGroupProps) => react_jsx_runtime.JSX.Element;
91
91
  declare function CheckBoxDemo(): react_jsx_runtime.JSX.Element;
92
92
 
93
+ interface FileItem {
94
+ id?: string;
95
+ name: string;
96
+ size: number;
97
+ type: string;
98
+ url?: string;
99
+ file?: File;
100
+ uploadProgress?: number;
101
+ }
102
+ interface FileViewProps {
103
+ files: FileItem[];
104
+ onDelete?: (index: number) => void;
105
+ onUpdate?: (index: number) => void;
106
+ onView?: (index: number) => void;
107
+ onDownload?: (index: number) => void;
108
+ showActions?: boolean;
109
+ showDelete?: boolean;
110
+ showUpdate?: boolean;
111
+ showView?: boolean;
112
+ showDownload?: boolean;
113
+ layout?: "grid" | "list";
114
+ maxPreviewSize?: number;
115
+ className?: string;
116
+ }
117
+ declare const FileView: React$1.FC<FileViewProps>;
118
+
119
+ declare const FileViewSystemDemo: () => react_jsx_runtime.JSX.Element;
120
+
93
121
  interface FileUploadProps {
94
122
  onFileChange: (files: File[] | null) => void;
123
+ existingFiles?: FileItem[];
95
124
  direction?: "row" | "col";
96
125
  maxFileSize?: string;
97
126
  label?: string;
@@ -562,31 +591,5 @@ interface BadgeProps {
562
591
  }
563
592
  declare const Badge: React$1.FC<BadgeProps>;
564
593
 
565
- interface FileItem {
566
- id?: string;
567
- name: string;
568
- size: number;
569
- type: string;
570
- url?: string;
571
- file?: File;
572
- uploadProgress?: number;
573
- }
574
- interface FileViewProps {
575
- files: FileItem[];
576
- onDelete?: (index: number) => void;
577
- onUpdate?: (index: number) => void;
578
- onView?: (index: number) => void;
579
- onDownload?: (index: number) => void;
580
- showActions?: boolean;
581
- showDelete?: boolean;
582
- showUpdate?: boolean;
583
- showView?: boolean;
584
- showDownload?: boolean;
585
- layout?: "grid" | "list";
586
- maxPreviewSize?: number;
587
- className?: string;
588
- }
589
- declare const FileView: React$1.FC<FileViewProps>;
590
-
591
- export { AlertContext, AlertProvider, Badge, Breadcrumb, Button, Card, CardStatsSkeleton, CheckBox, CheckBoxDemo, ConfirmationAlert, DateTimePicker, DateTimePickerDemo, EmptyStateCard, ExportButton, ExportFormatEnum, FileUpload, FileView, Input, InputWithPrefix, Loading, LoadingDemo, Modal, ModalExample, Pagination, RadioGroup, SKELETON_LOADER_VERSION, SKELETON_PATTERNS, SKELETON_PRESETS, Search, Select, SelectButton, SkeletonAvatar, SkeletonButton, SkeletonCard, SkeletonImage, SkeletonList, SkeletonLoader, SkeletonLoaderExample, SkeletonProfile, SkeletonTable, SkeletonText, Table, TableDropdown, TableSkeleton, TagInput, TagInputDemo, TextEditor, Tooltip, alert, useAlert };
594
+ export { AlertContext, AlertProvider, Badge, Breadcrumb, Button, Card, CardStatsSkeleton, CheckBox, CheckBoxDemo, ConfirmationAlert, DateTimePicker, DateTimePickerDemo, EmptyStateCard, ExportButton, ExportFormatEnum, FileUpload, FileView, FileViewSystemDemo, Input, InputWithPrefix, Loading, LoadingDemo, Modal, ModalExample, Pagination, RadioGroup, SKELETON_LOADER_VERSION, SKELETON_PATTERNS, SKELETON_PRESETS, Search, Select, SelectButton, SkeletonAvatar, SkeletonButton, SkeletonCard, SkeletonImage, SkeletonList, SkeletonLoader, SkeletonLoaderExample, SkeletonProfile, SkeletonTable, SkeletonText, Table, TableDropdown, TableSkeleton, TagInput, TagInputDemo, TextEditor, Tooltip, alert, useAlert };
592
595
  export type { AlertContextProps, AlertItem, AlertProps, AlertType, BadgeProps, BadgeVariant, BreadcrumbItem, BreadcrumbProps, ButtonProps, CheckBoxProps, Column, ConfirmationPopupProps, ConfirmationType, DateTimePickerProps, DateTimeValue, EmptyStateProps, FileItem, FileUploadProps, FileViewProps, InputElement, InputProps, InputWithPrefixProps, LoadingProps, ModalProps, PaginationProps, RadioGroupProps, SearchProps, SelectButtonOption, SelectButtonProps, SelectOption, SelectProps, SkeletonAnimation, SkeletonLoaderModule, SkeletonLoaderProps, SkeletonSize, SkeletonVariant, TableDropdownProps, TableProps, Tag, TagInputProps, TextEditorProps, TooltipProps };