@dimah-s3/ui 1.5.9 → 1.5.10
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/components/dimah-s3/attachment/file-attachment.d.ts +1 -1
- package/dist/components/dimah-s3/attachment/status-attachment.d.ts +1 -1
- package/dist/components/dimah-s3/delete/delete-button.d.ts +2 -2
- package/dist/components/dimah-s3/download/download-button.d.ts +2 -2
- package/dist/components/dimah-s3/download/progress-download-button.d.ts +2 -2
- package/dist/components/dimah-s3/upload/multi-upload-status.d.ts +1 -1
- package/dist/components/dimah-s3/upload/upload-button.d.ts +2 -2
- package/dist/components/dimah-s3/upload/upload-dropzone.d.ts +1 -1
- package/dist/components/dimah-s3/upload/upload-status.d.ts +1 -1
- package/dist/components/ui/alert-dialog.d.ts +1 -1
- package/dist/components/ui/attachment.d.ts +1 -1
- package/dist/hooks/use-delete-ui.d.ts +1 -1
- package/dist/hooks/use-download-ui.d.ts +1 -1
- package/dist/hooks/use-upload-ui.d.ts +1 -1
- package/dist/index.d.ts +19 -19
- package/dist/lib/attachment-layout.d.ts +1 -1
- package/package.json +10 -10
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ReactNode } from "react";
|
|
2
2
|
import { type APIError } from "@dimah-s3/core";
|
|
3
|
-
import { type AttachmentOrientation, type AttachmentSize, type AttachmentState } from "../../../lib/attachment-layout.
|
|
3
|
+
import { type AttachmentOrientation, type AttachmentSize, type AttachmentState } from "../../../lib/attachment-layout.js";
|
|
4
4
|
export type FileAttachmentProps = {
|
|
5
5
|
/** @default "sm" */
|
|
6
6
|
size?: AttachmentSize;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ReactNode } from "react";
|
|
2
|
-
import { type AttachmentOrientation, type AttachmentSize, type AttachmentState } from "../../../lib/attachment-layout.
|
|
2
|
+
import { type AttachmentOrientation, type AttachmentSize, type AttachmentState } from "../../../lib/attachment-layout.js";
|
|
3
3
|
export type StatusAttachmentProps = {
|
|
4
4
|
/** @default "sm" */
|
|
5
5
|
size?: AttachmentSize;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ComponentProps, ReactNode } from "react";
|
|
2
2
|
import type { UseDeleteReturn } from "@dimah-s3/react";
|
|
3
|
-
import { type AttachmentLayoutAliases, type StatusSlot } from "../../../lib/attachment-layout.
|
|
4
|
-
import { Button } from "../../ui/button.
|
|
3
|
+
import { type AttachmentLayoutAliases, type StatusSlot } from "../../../lib/attachment-layout.js";
|
|
4
|
+
import { Button } from "../../ui/button.js";
|
|
5
5
|
/** Props for {@link DeleteButton}. Pass a {@link UseDeleteReturn} as `delete`. */
|
|
6
6
|
export type DeleteButtonProps = AttachmentLayoutAliases & {
|
|
7
7
|
delete: UseDeleteReturn;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ComponentProps, ReactNode } from "react";
|
|
2
2
|
import type { UseNavigateDownloadReturn } from "@dimah-s3/react";
|
|
3
|
-
import { type AttachmentLayoutAliases, type StatusSlot } from "../../../lib/attachment-layout.
|
|
4
|
-
import { Button } from "../../ui/button.
|
|
3
|
+
import { type AttachmentLayoutAliases, type StatusSlot } from "../../../lib/attachment-layout.js";
|
|
4
|
+
import { Button } from "../../ui/button.js";
|
|
5
5
|
/** Props for {@link DownloadButton}. Pass a {@link UseNavigateDownloadReturn} as `download`. */
|
|
6
6
|
export type DownloadButtonProps = AttachmentLayoutAliases & {
|
|
7
7
|
download: UseNavigateDownloadReturn;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ComponentProps, ReactNode } from "react";
|
|
2
2
|
import type { UseFetchDownloadReturn } from "@dimah-s3/react";
|
|
3
|
-
import { type AttachmentLayoutAliases, type StatusSlot } from "../../../lib/attachment-layout.
|
|
4
|
-
import { Button } from "../../ui/button.
|
|
3
|
+
import { type AttachmentLayoutAliases, type StatusSlot } from "../../../lib/attachment-layout.js";
|
|
4
|
+
import { Button } from "../../ui/button.js";
|
|
5
5
|
/** Props for {@link ProgressDownloadButton}. Pass a {@link UseFetchDownloadReturn} as `download`. */
|
|
6
6
|
export type ProgressDownloadButtonProps = AttachmentLayoutAliases & {
|
|
7
7
|
download: UseFetchDownloadReturn;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { UseUploadReturn } from "@dimah-s3/react";
|
|
2
|
-
import type { AttachmentLayoutAliases } from "../../../lib/attachment-layout.
|
|
2
|
+
import type { AttachmentLayoutAliases } from "../../../lib/attachment-layout.js";
|
|
3
3
|
export type MultiUploadStatusProps = AttachmentLayoutAliases & {
|
|
4
4
|
upload: UseUploadReturn;
|
|
5
5
|
className?: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ComponentProps, ReactNode } from "react";
|
|
2
2
|
import type { UseUploadReturn } from "@dimah-s3/react";
|
|
3
|
-
import { Button } from "../../ui/button.
|
|
4
|
-
import { type AttachmentLayoutAliases, type StatusSlot } from "../../../lib/attachment-layout.
|
|
3
|
+
import { Button } from "../../ui/button.js";
|
|
4
|
+
import { type AttachmentLayoutAliases, type StatusSlot } from "../../../lib/attachment-layout.js";
|
|
5
5
|
/** Props for {@link UploadButton}. Pass a {@link UseUploadReturn} as `upload`. */
|
|
6
6
|
export type UploadButtonProps = AttachmentLayoutAliases & {
|
|
7
7
|
upload: UseUploadReturn;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ReactNode } from "react";
|
|
2
2
|
import { type UseUploadReturn } from "@dimah-s3/react";
|
|
3
|
-
import { type AttachmentLayoutAliases, type StatusSlot } from "../../../lib/attachment-layout.
|
|
3
|
+
import { type AttachmentLayoutAliases, type StatusSlot } from "../../../lib/attachment-layout.js";
|
|
4
4
|
/** Props for {@link UploadDropzone}. Pass a {@link UseUploadReturn} as `upload`. */
|
|
5
5
|
export type UploadDropzoneProps = AttachmentLayoutAliases & {
|
|
6
6
|
upload: UseUploadReturn;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { APIError, UploadFileState, UploadPhase, UseUploadReturn } from "@dimah-s3/react";
|
|
2
|
-
import type { AttachmentLayoutAliases, AttachmentLayoutProps } from "../../../lib/attachment-layout.
|
|
2
|
+
import type { AttachmentLayoutAliases, AttachmentLayoutProps } from "../../../lib/attachment-layout.js";
|
|
3
3
|
export type UploadFileStatusProps = AttachmentLayoutProps & {
|
|
4
4
|
phase: UploadPhase;
|
|
5
5
|
error: APIError | null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type * as React from "react";
|
|
2
2
|
import { AlertDialog as AlertDialogPrimitive } from "@base-ui/react/alert-dialog";
|
|
3
|
-
import { Button } from "./button.
|
|
3
|
+
import { Button } from "./button.js";
|
|
4
4
|
declare function AlertDialog({ ...props }: AlertDialogPrimitive.Root.Props): React.JSX.Element;
|
|
5
5
|
declare function AlertDialogTrigger({ ...props }: AlertDialogPrimitive.Trigger.Props): React.JSX.Element;
|
|
6
6
|
declare function AlertDialogPortal({ ...props }: AlertDialogPrimitive.Portal.Props): React.JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type * as React from "react";
|
|
2
2
|
import { useRender } from "@base-ui/react/use-render";
|
|
3
3
|
import { type VariantProps } from "class-variance-authority";
|
|
4
|
-
import { Button } from "./button.
|
|
4
|
+
import { Button } from "./button.js";
|
|
5
5
|
declare const attachmentVariants: (props?: ({
|
|
6
6
|
size?: "default" | "sm" | "xs" | null | undefined;
|
|
7
7
|
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type UseDeleteReturn } from "@dimah-s3/react";
|
|
2
|
-
import type { AttachmentLayoutAliases } from "../lib/attachment-layout.
|
|
2
|
+
import type { AttachmentLayoutAliases } from "../lib/attachment-layout.js";
|
|
3
3
|
export type UseDeleteUiOptions = AttachmentLayoutAliases & {
|
|
4
4
|
toast?: boolean;
|
|
5
5
|
objectKey: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type UseDownloadReturn } from "@dimah-s3/react";
|
|
2
|
-
import type { AttachmentLayoutAliases } from "../lib/attachment-layout.
|
|
2
|
+
import type { AttachmentLayoutAliases } from "../lib/attachment-layout.js";
|
|
3
3
|
export type UseDownloadUiOptions = AttachmentLayoutAliases & {
|
|
4
4
|
toast?: boolean;
|
|
5
5
|
objectKey: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { UseUploadReturn } from "@dimah-s3/react";
|
|
2
|
-
import type { AttachmentLayoutAliases } from "../lib/attachment-layout.
|
|
2
|
+
import type { AttachmentLayoutAliases } from "../lib/attachment-layout.js";
|
|
3
3
|
export type UseUploadUiOptions = AttachmentLayoutAliases & {
|
|
4
4
|
toast?: boolean;
|
|
5
5
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
export { UploadButton, type UploadButtonProps, } from "./components/dimah-s3/upload/upload-button.
|
|
2
|
-
export { UploadDropzone, type UploadDropzoneProps, } from "./components/dimah-s3/upload/upload-dropzone.
|
|
3
|
-
export { UploadStatus, UploadFileStatus, type UploadStatusProps, type UploadFileStatusProps, } from "./components/dimah-s3/upload/upload-status.
|
|
4
|
-
export { MultiUploadStatus, type MultiUploadStatusProps, } from "./components/dimah-s3/upload/multi-upload-status.
|
|
5
|
-
export { DownloadButton, type DownloadButtonProps, } from "./components/dimah-s3/download/download-button.
|
|
6
|
-
export { ProgressDownloadButton, type ProgressDownloadButtonProps, } from "./components/dimah-s3/download/progress-download-button.
|
|
7
|
-
export { DeleteButton, type DeleteButtonProps, } from "./components/dimah-s3/delete/delete-button.
|
|
8
|
-
export { FileAttachment, type FileAttachmentProps, } from "./components/dimah-s3/attachment/file-attachment.
|
|
9
|
-
export { StatusAttachment, type StatusAttachmentProps, } from "./components/dimah-s3/attachment/status-attachment.
|
|
10
|
-
export type { AttachmentState, AttachmentSize, AttachmentOrientation, AttachmentLayoutProps, AttachmentLayoutAliases, StatusSlot, } from "./lib/attachment-layout.
|
|
11
|
-
export { resolveStatusSlot } from "./lib/attachment-layout.
|
|
12
|
-
export { Toaster, toast } from "./components/ui/toast.
|
|
13
|
-
export { useUploadToast } from "./hooks/use-upload-toast.
|
|
14
|
-
export { useFileRejectToast } from "./hooks/use-file-reject-toast.
|
|
15
|
-
export { useDownloadToast } from "./hooks/use-download-toast.
|
|
16
|
-
export { useDeleteToast } from "./hooks/use-delete-toast.
|
|
17
|
-
export { useUploadUi } from "./hooks/use-upload-ui.
|
|
18
|
-
export { useDownloadUi } from "./hooks/use-download-ui.
|
|
19
|
-
export { useDeleteUi } from "./hooks/use-delete-ui.
|
|
1
|
+
export { UploadButton, type UploadButtonProps, } from "./components/dimah-s3/upload/upload-button.js";
|
|
2
|
+
export { UploadDropzone, type UploadDropzoneProps, } from "./components/dimah-s3/upload/upload-dropzone.js";
|
|
3
|
+
export { UploadStatus, UploadFileStatus, type UploadStatusProps, type UploadFileStatusProps, } from "./components/dimah-s3/upload/upload-status.js";
|
|
4
|
+
export { MultiUploadStatus, type MultiUploadStatusProps, } from "./components/dimah-s3/upload/multi-upload-status.js";
|
|
5
|
+
export { DownloadButton, type DownloadButtonProps, } from "./components/dimah-s3/download/download-button.js";
|
|
6
|
+
export { ProgressDownloadButton, type ProgressDownloadButtonProps, } from "./components/dimah-s3/download/progress-download-button.js";
|
|
7
|
+
export { DeleteButton, type DeleteButtonProps, } from "./components/dimah-s3/delete/delete-button.js";
|
|
8
|
+
export { FileAttachment, type FileAttachmentProps, } from "./components/dimah-s3/attachment/file-attachment.js";
|
|
9
|
+
export { StatusAttachment, type StatusAttachmentProps, } from "./components/dimah-s3/attachment/status-attachment.js";
|
|
10
|
+
export type { AttachmentState, AttachmentSize, AttachmentOrientation, AttachmentLayoutProps, AttachmentLayoutAliases, StatusSlot, } from "./lib/attachment-layout.js";
|
|
11
|
+
export { resolveStatusSlot } from "./lib/attachment-layout.js";
|
|
12
|
+
export { Toaster, toast } from "./components/ui/toast.js";
|
|
13
|
+
export { useUploadToast } from "./hooks/use-upload-toast.js";
|
|
14
|
+
export { useFileRejectToast } from "./hooks/use-file-reject-toast.js";
|
|
15
|
+
export { useDownloadToast } from "./hooks/use-download-toast.js";
|
|
16
|
+
export { useDeleteToast } from "./hooks/use-delete-toast.js";
|
|
17
|
+
export { useUploadUi } from "./hooks/use-upload-ui.js";
|
|
18
|
+
export { useDownloadUi } from "./hooks/use-download-ui.js";
|
|
19
|
+
export { useDeleteUi } from "./hooks/use-delete-ui.js";
|
|
20
20
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ComponentProps, ReactNode } from "react";
|
|
2
|
-
import type { Attachment } from "../components/ui/attachment.
|
|
2
|
+
import type { Attachment } from "../components/ui/attachment.js";
|
|
3
3
|
/**
|
|
4
4
|
* Attachment layout/state types — derived from stock shadcn {@link Attachment}
|
|
5
5
|
* (do not edit `components/ui/attachment.tsx`).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dimah-s3/ui",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.10",
|
|
4
4
|
"description": "Pre-built React UI components for S3 file upload, download, and delete",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"s3",
|
|
@@ -48,29 +48,29 @@
|
|
|
48
48
|
"css"
|
|
49
49
|
],
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@dimah-s3/core": "1.5.
|
|
52
|
-
"@dimah-s3/react": "1.5.
|
|
51
|
+
"@dimah-s3/core": "1.5.10",
|
|
52
|
+
"@dimah-s3/react": "1.5.10",
|
|
53
53
|
"react-file-icon": "^1.6.0"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@base-ui/react": "^1.8.0",
|
|
57
57
|
"@fuma-translate/react": "^1.0.2",
|
|
58
|
-
"@types/node": "^26.6.
|
|
58
|
+
"@types/node": "^26.6.4",
|
|
59
59
|
"@types/react": "^19.3.0",
|
|
60
60
|
"@types/react-file-icon": "^1.0.5",
|
|
61
61
|
"@workspace/eslint-config": "0.0.1",
|
|
62
62
|
"@workspace/tsup-config": "0.0.0",
|
|
63
63
|
"@workspace/typescript-config": "0.0.1",
|
|
64
64
|
"class-variance-authority": "^0.7.1",
|
|
65
|
-
"cn": "^0.
|
|
66
|
-
"eslint": "^10.
|
|
67
|
-
"lucide-react": "^1.
|
|
65
|
+
"cn": "^0.4.0",
|
|
66
|
+
"eslint": "^10.12.0",
|
|
67
|
+
"lucide-react": "^1.52.0",
|
|
68
68
|
"react": "^19.3.0",
|
|
69
|
-
"shadcn": "^4.21.
|
|
69
|
+
"shadcn": "^4.21.1",
|
|
70
70
|
"tailwindcss": "^4.3.3",
|
|
71
|
-
"tsc-alias": "^1.9.
|
|
71
|
+
"tsc-alias": "^1.9.7",
|
|
72
72
|
"tsup": "^8.5.1",
|
|
73
|
-
"tsx": "^4.23.
|
|
73
|
+
"tsx": "^4.23.15",
|
|
74
74
|
"typescript": "7.0.2"
|
|
75
75
|
},
|
|
76
76
|
"peerDependencies": {
|