@cleen/ui 0.1.211 → 0.1.212
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 +69 -62
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1946,68 +1946,6 @@ interface FileCardProps {
|
|
|
1946
1946
|
};
|
|
1947
1947
|
}
|
|
1948
1948
|
|
|
1949
|
-
type NativeInputProps = Omit<ComponentProps<'input'>, 'type' | 'children' | 'className' | 'style'>;
|
|
1950
|
-
interface DropzoneProps extends NativeInputProps {
|
|
1951
|
-
icon?: ReactNode;
|
|
1952
|
-
files?: Map<string, FileEntry>;
|
|
1953
|
-
initialFiles?: File[];
|
|
1954
|
-
onFilesChange?: (files: Map<string, FileEntry> | ((prev: Map<string, FileEntry>) => Map<string, FileEntry>)) => void;
|
|
1955
|
-
onFileUpload?: (file: FileEntry, updateFile?: (patch: Partial<FileEntry>) => void) => Promise<FileEntry | void>;
|
|
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;
|
|
1962
|
-
label?: ReactNode;
|
|
1963
|
-
labelTooltip?: ReactNode;
|
|
1964
|
-
labels?: {
|
|
1965
|
-
primaryText?: ReactNode;
|
|
1966
|
-
secondaryText?: ReactNode;
|
|
1967
|
-
helperText?: ReactNode;
|
|
1968
|
-
uploading?: ReactNode;
|
|
1969
|
-
uploadProgress?: (uploadedBytes: number, totalBytes: number) => ReactNode;
|
|
1970
|
-
uploaded?: (totalBytes: number) => ReactNode;
|
|
1971
|
-
};
|
|
1972
|
-
showUploadedFiles?: boolean;
|
|
1973
|
-
loadingWhileUploading?: boolean;
|
|
1974
|
-
isLoading?: boolean;
|
|
1975
|
-
containerRef?: RefObject<HTMLDivElement>;
|
|
1976
|
-
infoLabels?: InfoLabelsProps;
|
|
1977
|
-
className?: string;
|
|
1978
|
-
style?: CSSProperties;
|
|
1979
|
-
classNames?: {
|
|
1980
|
-
label?: ComponentClassnames<LabelProps>;
|
|
1981
|
-
card?: ComponentClassnames<CardProps>;
|
|
1982
|
-
cardDragActive?: string;
|
|
1983
|
-
dropArea?: string;
|
|
1984
|
-
iconContainer?: string;
|
|
1985
|
-
textContainer?: string;
|
|
1986
|
-
primaryText?: string;
|
|
1987
|
-
secondaryText?: string;
|
|
1988
|
-
helperText?: string;
|
|
1989
|
-
input?: string;
|
|
1990
|
-
fileCard?: FileCardProps['classNames'];
|
|
1991
|
-
};
|
|
1992
|
-
styles?: {
|
|
1993
|
-
label?: ComponentStyles<LabelProps>;
|
|
1994
|
-
card?: ComponentStyles<CardProps>;
|
|
1995
|
-
cardDragActive?: CSSProperties;
|
|
1996
|
-
dropArea?: CSSProperties;
|
|
1997
|
-
iconContainer?: CSSProperties;
|
|
1998
|
-
textContainer?: CSSProperties;
|
|
1999
|
-
primaryText?: CSSProperties;
|
|
2000
|
-
secondaryText?: CSSProperties;
|
|
2001
|
-
helperText?: CSSProperties;
|
|
2002
|
-
input?: CSSProperties;
|
|
2003
|
-
fileCard?: FileCardProps['styles'];
|
|
2004
|
-
};
|
|
2005
|
-
}
|
|
2006
|
-
/**
|
|
2007
|
-
* The `Dropzone` component provides a styled file input with drag-and-drop support.
|
|
2008
|
-
*/
|
|
2009
|
-
declare const Dropzone: react.ForwardRefExoticComponent<Omit<DropzoneProps, "ref"> & react.RefAttributes<HTMLInputElement>>;
|
|
2010
|
-
|
|
2011
1949
|
declare enum TrackerItemStatus {
|
|
2012
1950
|
PENDING = "pending",
|
|
2013
1951
|
IN_PROGRESS = "inProgress",
|
|
@@ -2222,6 +2160,75 @@ interface FileStackedProgressTrackerProps extends NativeDivProps {
|
|
|
2222
2160
|
*/
|
|
2223
2161
|
declare const FileStackedProgressTracker: react.ForwardRefExoticComponent<Omit<FileStackedProgressTrackerProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
|
|
2224
2162
|
|
|
2163
|
+
type NativeInputProps = Omit<ComponentProps<'input'>, 'type' | 'children' | 'className' | 'style'>;
|
|
2164
|
+
interface DropzoneProps extends NativeInputProps {
|
|
2165
|
+
icon?: ReactNode;
|
|
2166
|
+
files?: Map<string, FileEntry>;
|
|
2167
|
+
initialFiles?: File[];
|
|
2168
|
+
onFilesChange?: (files: Map<string, FileEntry> | ((prev: Map<string, FileEntry>) => Map<string, FileEntry>)) => void;
|
|
2169
|
+
onFileUpload?: (file: FileEntry, updateFile?: (patch: Partial<FileEntry>) => void) => Promise<FileEntry | void>;
|
|
2170
|
+
onFileRemove?: (id: string) => Promise<void>;
|
|
2171
|
+
/**
|
|
2172
|
+
* Called when a completed uploaded-file card is clicked. When provided it
|
|
2173
|
+
* overrides the default download-anchor behavior (e.g. open in a new tab).
|
|
2174
|
+
*/
|
|
2175
|
+
onFileClick?: (fileEntry: FileEntry) => void;
|
|
2176
|
+
label?: ReactNode;
|
|
2177
|
+
labelTooltip?: ReactNode;
|
|
2178
|
+
labels?: {
|
|
2179
|
+
primaryText?: ReactNode;
|
|
2180
|
+
secondaryText?: ReactNode;
|
|
2181
|
+
helperText?: ReactNode;
|
|
2182
|
+
uploading?: ReactNode;
|
|
2183
|
+
uploadProgress?: (uploadedBytes: number, totalBytes: number) => ReactNode;
|
|
2184
|
+
uploaded?: (totalBytes: number) => ReactNode;
|
|
2185
|
+
};
|
|
2186
|
+
showUploadedFiles?: boolean;
|
|
2187
|
+
/**
|
|
2188
|
+
* Renders a floating `FileStackedProgressTracker` in the bottom-right corner
|
|
2189
|
+
* of the viewport for the files added since the tracker was last dismissed.
|
|
2190
|
+
*/
|
|
2191
|
+
showProgressTracker?: boolean;
|
|
2192
|
+
loadingWhileUploading?: boolean;
|
|
2193
|
+
isLoading?: boolean;
|
|
2194
|
+
containerRef?: RefObject<HTMLDivElement>;
|
|
2195
|
+
infoLabels?: InfoLabelsProps;
|
|
2196
|
+
className?: string;
|
|
2197
|
+
style?: CSSProperties;
|
|
2198
|
+
classNames?: {
|
|
2199
|
+
label?: ComponentClassnames<LabelProps>;
|
|
2200
|
+
card?: ComponentClassnames<CardProps>;
|
|
2201
|
+
cardDragActive?: string;
|
|
2202
|
+
dropArea?: string;
|
|
2203
|
+
iconContainer?: string;
|
|
2204
|
+
textContainer?: string;
|
|
2205
|
+
primaryText?: string;
|
|
2206
|
+
secondaryText?: string;
|
|
2207
|
+
helperText?: string;
|
|
2208
|
+
input?: string;
|
|
2209
|
+
fileCard?: FileCardProps['classNames'];
|
|
2210
|
+
progressTracker?: ComponentClassnames<FileStackedProgressTrackerProps>;
|
|
2211
|
+
};
|
|
2212
|
+
styles?: {
|
|
2213
|
+
label?: ComponentStyles<LabelProps>;
|
|
2214
|
+
card?: ComponentStyles<CardProps>;
|
|
2215
|
+
cardDragActive?: CSSProperties;
|
|
2216
|
+
dropArea?: CSSProperties;
|
|
2217
|
+
iconContainer?: CSSProperties;
|
|
2218
|
+
textContainer?: CSSProperties;
|
|
2219
|
+
primaryText?: CSSProperties;
|
|
2220
|
+
secondaryText?: CSSProperties;
|
|
2221
|
+
helperText?: CSSProperties;
|
|
2222
|
+
input?: CSSProperties;
|
|
2223
|
+
fileCard?: FileCardProps['styles'];
|
|
2224
|
+
progressTracker?: ComponentStyles<FileStackedProgressTrackerProps>;
|
|
2225
|
+
};
|
|
2226
|
+
}
|
|
2227
|
+
/**
|
|
2228
|
+
* The `Dropzone` component provides a styled file input with drag-and-drop support.
|
|
2229
|
+
*/
|
|
2230
|
+
declare const Dropzone: react.ForwardRefExoticComponent<Omit<DropzoneProps, "ref"> & react.RefAttributes<HTMLInputElement>>;
|
|
2231
|
+
|
|
2225
2232
|
interface FilterDrawerNewFilter {
|
|
2226
2233
|
filterName: string;
|
|
2227
2234
|
exposed: boolean;
|