@cleen/ui 0.1.203 → 0.1.205

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
@@ -1920,6 +1920,11 @@ declare const ProgressBar: react.ForwardRefExoticComponent<Omit<ProgressBarProps
1920
1920
  interface FileCardProps {
1921
1921
  fileEntry: FileEntry;
1922
1922
  onRemove?: (id: string) => void;
1923
+ /**
1924
+ * Called when a completed file card is clicked. When provided it overrides
1925
+ * the default download-anchor behavior (e.g. to open the file in a new tab).
1926
+ */
1927
+ onFileClick?: (fileEntry: FileEntry) => void;
1923
1928
  labels?: DropzoneProps['labels'];
1924
1929
  classNames?: {
1925
1930
  card?: ComponentClassnames<CardProps>;
@@ -1949,6 +1954,11 @@ interface DropzoneProps extends NativeInputProps {
1949
1954
  onFilesChange?: (files: Map<string, FileEntry> | ((prev: Map<string, FileEntry>) => Map<string, FileEntry>)) => void;
1950
1955
  onFileUpload?: (file: FileEntry, updateFile?: (patch: Partial<FileEntry>) => void) => Promise<FileEntry | void>;
1951
1956
  onFileRemove?: (id: string) => Promise<void>;
1957
+ /**
1958
+ * Called when a completed uploaded-file card is clicked. When provided it
1959
+ * overrides the default download-anchor behavior (e.g. open in a new tab).
1960
+ */
1961
+ onFileClick?: (fileEntry: FileEntry) => void;
1952
1962
  label?: ReactNode;
1953
1963
  labelTooltip?: ReactNode;
1954
1964
  labels?: {