@better-s3/ui 3.1045.0 → 3.1045.2
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/{ui → components/ui}/alert-dialog.d.ts +1 -1
- package/dist/hooks/use-delete-toast.d.ts +8 -0
- package/dist/hooks/use-download-toast.d.ts +13 -0
- package/dist/index.d.ts +7 -7
- package/dist/index.js +1042 -1
- package/dist/index.js.map +1 -1
- package/package.json +6 -3
- /package/dist/{delete → components/delete}/delete-button.d.ts +0 -0
- /package/dist/{download → components/download}/download-button.d.ts +0 -0
- /package/dist/{download → components/download}/progress-download-button.d.ts +0 -0
- /package/dist/{ui → components/ui}/button.d.ts +0 -0
- /package/dist/{ui → components/ui}/circle-progress.d.ts +0 -0
- /package/dist/{ui → components/ui}/progress.d.ts +0 -0
- /package/dist/{ui → components/ui}/tooltip.d.ts +0 -0
- /package/dist/{upload → components/upload}/multi-upload-status.d.ts +0 -0
- /package/dist/{upload → components/upload}/upload-button.d.ts +0 -0
- /package/dist/{upload → components/upload}/upload-dropzone.d.ts +0 -0
- /package/dist/{upload → components/upload}/upload-status.d.ts +0 -0
- /package/dist/{upload → hooks}/use-upload-toast.d.ts +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { AlertDialog as AlertDialogPrimitive } from "@base-ui/react/alert-dialog";
|
|
3
|
-
import { Button } from "
|
|
3
|
+
import { Button } from "../../components/ui/button";
|
|
4
4
|
declare function AlertDialog({ ...props }: AlertDialogPrimitive.Root.Props): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
declare function AlertDialogTrigger({ ...props }: AlertDialogPrimitive.Trigger.Props): import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
declare function AlertDialogPortal({ ...props }: AlertDialogPrimitive.Portal.Props): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export type DeleteToastOptions = {
|
|
2
|
+
enabled?: boolean;
|
|
3
|
+
displayName: string;
|
|
4
|
+
};
|
|
5
|
+
export declare function useDeleteToast({ enabled, displayName, }: DeleteToastOptions): {
|
|
6
|
+
onSuccess: (_key: string) => void;
|
|
7
|
+
onError: (_key: string, error: unknown) => void;
|
|
8
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export type DownloadToastOptions = {
|
|
2
|
+
enabled?: boolean;
|
|
3
|
+
objectKey: string;
|
|
4
|
+
fileName?: string;
|
|
5
|
+
fileSize?: number;
|
|
6
|
+
};
|
|
7
|
+
export declare function useDownloadToast({ enabled, objectKey, fileName, fileSize, }: DownloadToastOptions): {
|
|
8
|
+
onInitiated: () => void;
|
|
9
|
+
onSuccess: (_key: string, actualFileName: string) => void;
|
|
10
|
+
onError: (_key: string, error: unknown) => void;
|
|
11
|
+
onErrorWithPhase: (_key: string, error: unknown, _phase: string) => void;
|
|
12
|
+
onCancel: (_key: string) => void;
|
|
13
|
+
};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { UploadButton, type UploadButtonProps } from "./upload/upload-button";
|
|
2
|
-
export { UploadDropzone, type UploadDropzoneProps, } from "./upload/upload-dropzone";
|
|
3
|
-
export { UploadStatus } from "./upload/upload-status";
|
|
4
|
-
export { MultiUploadStatus } from "./upload/multi-upload-status";
|
|
5
|
-
export { DownloadButton } from "./download/download-button";
|
|
6
|
-
export { ProgressDownloadButton } from "./download/progress-download-button";
|
|
7
|
-
export { DeleteButton } from "./delete/delete-button";
|
|
1
|
+
export { UploadButton, type UploadButtonProps, } from "./components/upload/upload-button";
|
|
2
|
+
export { UploadDropzone, type UploadDropzoneProps, } from "./components/upload/upload-dropzone";
|
|
3
|
+
export { UploadStatus } from "./components/upload/upload-status";
|
|
4
|
+
export { MultiUploadStatus } from "./components/upload/multi-upload-status";
|
|
5
|
+
export { DownloadButton } from "./components/download/download-button";
|
|
6
|
+
export { ProgressDownloadButton } from "./components/download/progress-download-button";
|
|
7
|
+
export { DeleteButton } from "./components/delete/delete-button";
|