@cleen/ui 0.1.220 → 0.1.221
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 +20 -0
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2129,6 +2129,17 @@ interface FileStackedProgressTrackerProps extends NativeDivProps {
|
|
|
2129
2129
|
onExpandedChange?: (isExpanded: boolean) => void;
|
|
2130
2130
|
/** Renders the dismiss control in the header when provided */
|
|
2131
2131
|
onDismiss?: () => void;
|
|
2132
|
+
/**
|
|
2133
|
+
* Delay, in milliseconds, before `onDismiss` is called on its own once every
|
|
2134
|
+
* file is done. `0` dismisses immediately, `null` / `undefined` never
|
|
2135
|
+
* auto dismisses. Errored files keep the panel open.
|
|
2136
|
+
*/
|
|
2137
|
+
autoDismissOnUploadCompleteAfterMilliSeconds?: number | null;
|
|
2138
|
+
/**
|
|
2139
|
+
* Renders the header bar holding the title, the contract toggle and the
|
|
2140
|
+
* dismiss control. Set to `false` when the panel dismisses itself.
|
|
2141
|
+
*/
|
|
2142
|
+
showHeader?: boolean;
|
|
2132
2143
|
labels?: {
|
|
2133
2144
|
uploading?: (inProgressCount: number) => ReactNode;
|
|
2134
2145
|
completed?: ReactNode;
|
|
@@ -2170,6 +2181,8 @@ interface FileStackedProgressTrackerProps extends NativeDivProps {
|
|
|
2170
2181
|
* - Accepts the same `FileEntry` shape as `Dropzone` and `useFileUpload`, as a list or a `Map`.
|
|
2171
2182
|
* - Renders `null` when there are no files to show.
|
|
2172
2183
|
* - Truncates the list past `maxVisibleFiles` with a "+N more" expand control.
|
|
2184
|
+
* - Optionally calls `onDismiss` on its own once every file is done, through `autoDismissOnUploadCompleteAfterMilliSeconds`.
|
|
2185
|
+
* - Optionally hides the whole header bar with `showHeader`, leaving only the rows.
|
|
2173
2186
|
*/
|
|
2174
2187
|
declare const FileStackedProgressTracker: react.ForwardRefExoticComponent<Omit<FileStackedProgressTrackerProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
|
|
2175
2188
|
|
|
@@ -2202,6 +2215,13 @@ interface DropzoneProps extends NativeInputProps {
|
|
|
2202
2215
|
* of the viewport for the files added since the tracker was last dismissed.
|
|
2203
2216
|
*/
|
|
2204
2217
|
showProgressTracker?: boolean;
|
|
2218
|
+
/**
|
|
2219
|
+
* Props forwarded to the floating `FileStackedProgressTracker`, e.g.
|
|
2220
|
+
* `autoDismissOnUploadCompleteAfterMilliSeconds` or `showHeader`. Its class
|
|
2221
|
+
* and style overrides go through `classNames.progressTracker` /
|
|
2222
|
+
* `styles.progressTracker` instead.
|
|
2223
|
+
*/
|
|
2224
|
+
progressTracker?: Omit<FileStackedProgressTrackerProps, 'files' | 'className' | 'classNames' | 'style' | 'styles'>;
|
|
2205
2225
|
loadingWhileUploading?: boolean;
|
|
2206
2226
|
isLoading?: boolean;
|
|
2207
2227
|
containerRef?: RefObject<HTMLDivElement>;
|