@delightui/components 0.1.73 → 0.1.74
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/cjs/components/organisms/Dropzone/Dropzone.types.d.ts +9 -8
- package/dist/cjs/library.js +1 -1
- package/dist/cjs/library.js.map +1 -1
- package/dist/esm/components/organisms/Dropzone/Dropzone.types.d.ts +9 -8
- package/dist/esm/library.js +1 -1
- package/dist/esm/library.js.map +1 -1
- package/dist/index.d.ts +9 -8
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2110,10 +2110,11 @@ type ChipInputProps = {
|
|
|
2110
2110
|
|
|
2111
2111
|
declare const _default: React__default.NamedExoticComponent<ChipInputProps>;
|
|
2112
2112
|
|
|
2113
|
+
type DropzoneStatus = 'Empty' | 'Loading' | 'Uploaded';
|
|
2113
2114
|
/**
|
|
2114
2115
|
* Dropzone component props
|
|
2115
|
-
* @param
|
|
2116
|
-
* @param
|
|
2116
|
+
* @param empty React.ReactNode - The empty state of the dropzone.
|
|
2117
|
+
* @param loading React.ReactNode - The loading state of the dropzone.
|
|
2117
2118
|
* @param uploaded React.ReactNode - The uploaded state of the dropzone.
|
|
2118
2119
|
* @param accept { [key: string]: readonly string[] } - The accepted file types.
|
|
2119
2120
|
* @param maxSize number - The maximum size of the file in bytes.
|
|
@@ -2124,13 +2125,13 @@ declare const _default: React__default.NamedExoticComponent<ChipInputProps>;
|
|
|
2124
2125
|
type DropzoneProps = {
|
|
2125
2126
|
className?: string;
|
|
2126
2127
|
/**
|
|
2127
|
-
* The
|
|
2128
|
+
* The empty state of the dropzone.
|
|
2128
2129
|
*/
|
|
2129
|
-
|
|
2130
|
+
empty?: React.ReactNode;
|
|
2130
2131
|
/**
|
|
2131
|
-
* The
|
|
2132
|
+
* The loading state of the dropzone.
|
|
2132
2133
|
*/
|
|
2133
|
-
|
|
2134
|
+
loading?: React.ReactNode;
|
|
2134
2135
|
/**
|
|
2135
2136
|
* The uploaded state of the dropzone.
|
|
2136
2137
|
*/
|
|
@@ -2167,7 +2168,7 @@ type DropzoneProps = {
|
|
|
2167
2168
|
};
|
|
2168
2169
|
/**
|
|
2169
2170
|
* Dropzone context type
|
|
2170
|
-
* @param status
|
|
2171
|
+
* @param status DropzoneStatus - The status of the dropzone.
|
|
2171
2172
|
* @param file File | null - The file of the dropzone.
|
|
2172
2173
|
* @param selectFile () => void - The function to call when the file is selected.
|
|
2173
2174
|
* @param resetUpload () => void - The function to call when the file is reset.
|
|
@@ -2176,7 +2177,7 @@ type DropzoneContextType = {
|
|
|
2176
2177
|
/**
|
|
2177
2178
|
* The status of the dropzone.
|
|
2178
2179
|
*/
|
|
2179
|
-
status:
|
|
2180
|
+
status: DropzoneStatus;
|
|
2180
2181
|
/**
|
|
2181
2182
|
* The files of the dropzone.
|
|
2182
2183
|
*/
|