@dimah-s3/ui 1.5.5 → 1.5.7

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/README.md CHANGED
@@ -13,7 +13,7 @@ pnpm add @dimah-s3/ui @dimah-s3/react shadcn
13
13
  ```
14
14
 
15
15
  Or copy items from the shadcn registry — see
16
- [UI setup](https://s3.dimah.dev/docs/react/ui).
16
+ [UI Setup](https://s3.dimah.dev/docs/react/ui).
17
17
 
18
18
  ## Styles
19
19
 
@@ -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.d.ts";
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.d.ts";
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.d.ts";
4
+ import { Button } from "../../ui/button.d.ts";
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.d.ts";
4
+ import { Button } from "../../ui/button.d.ts";
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.d.ts";
4
+ import { Button } from "../../ui/button.d.ts";
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.d.ts";
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.d.ts";
4
+ import { type AttachmentLayoutAliases, type StatusSlot } from "../../../lib/attachment-layout.d.ts";
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.d.ts";
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.d.ts";
3
3
  export type UploadFileStatusProps = AttachmentLayoutProps & {
4
4
  phase: UploadPhase;
5
5
  error: APIError | null;
@@ -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 "./button";
3
+ import { Button } from "./button.d.ts";
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 * 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.d.ts";
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.d.ts";
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.d.ts";
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.d.ts";
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.d.ts";
2
+ export { UploadDropzone, type UploadDropzoneProps, } from "./components/dimah-s3/upload/upload-dropzone.d.ts";
3
+ export { UploadStatus, UploadFileStatus, type UploadStatusProps, type UploadFileStatusProps, } from "./components/dimah-s3/upload/upload-status.d.ts";
4
+ export { MultiUploadStatus, type MultiUploadStatusProps, } from "./components/dimah-s3/upload/multi-upload-status.d.ts";
5
+ export { DownloadButton, type DownloadButtonProps, } from "./components/dimah-s3/download/download-button.d.ts";
6
+ export { ProgressDownloadButton, type ProgressDownloadButtonProps, } from "./components/dimah-s3/download/progress-download-button.d.ts";
7
+ export { DeleteButton, type DeleteButtonProps, } from "./components/dimah-s3/delete/delete-button.d.ts";
8
+ export { FileAttachment, type FileAttachmentProps, } from "./components/dimah-s3/attachment/file-attachment.d.ts";
9
+ export { StatusAttachment, type StatusAttachmentProps, } from "./components/dimah-s3/attachment/status-attachment.d.ts";
10
+ export type { AttachmentState, AttachmentSize, AttachmentOrientation, AttachmentLayoutProps, AttachmentLayoutAliases, StatusSlot, } from "./lib/attachment-layout.d.ts";
11
+ export { resolveStatusSlot } from "./lib/attachment-layout.d.ts";
12
+ export { Toaster, toast } from "./components/ui/toast.d.ts";
13
+ export { useUploadToast } from "./hooks/use-upload-toast.d.ts";
14
+ export { useFileRejectToast } from "./hooks/use-file-reject-toast.d.ts";
15
+ export { useDownloadToast } from "./hooks/use-download-toast.d.ts";
16
+ export { useDeleteToast } from "./hooks/use-delete-toast.d.ts";
17
+ export { useUploadUi } from "./hooks/use-upload-ui.d.ts";
18
+ export { useDownloadUi } from "./hooks/use-download-ui.d.ts";
19
+ export { useDeleteUi } from "./hooks/use-delete-ui.d.ts";
20
20
  //# sourceMappingURL=index.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import type { ComponentProps, ReactNode } from "react";
2
- import { Attachment } from "../components/ui/attachment";
2
+ import { Attachment } from "../components/ui/attachment.d.ts";
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.5",
3
+ "version": "1.5.7",
4
4
  "description": "Pre-built React UI components for S3 file upload, download, and delete",
5
5
  "keywords": [
6
6
  "s3",
@@ -48,8 +48,8 @@
48
48
  "css"
49
49
  ],
50
50
  "dependencies": {
51
- "@dimah-s3/core": "1.5.5",
52
- "@dimah-s3/react": "1.5.5",
51
+ "@dimah-s3/core": "1.5.7",
52
+ "@dimah-s3/react": "1.5.7",
53
53
  "react-file-icon": "^1.6.0"
54
54
  },
55
55
  "peerDependencies": {
@@ -63,18 +63,18 @@
63
63
  "devDependencies": {
64
64
  "@base-ui/react": "^1.8.0",
65
65
  "@fuma-translate/react": "^1.0.2",
66
- "@types/node": "^26.4.1",
67
- "@types/react": "^19.2.18",
66
+ "@types/node": "^26.5.1",
67
+ "@types/react": "^19.3.0",
68
68
  "@types/react-file-icon": "^1.0.5",
69
69
  "@workspace/eslint-config": "0.0.1",
70
70
  "@workspace/typescript-config": "0.0.1",
71
71
  "class-variance-authority": "^0.7.1",
72
- "cn": "^0.2.5",
72
+ "cn": "^0.3.0",
73
73
  "eslint": "^10.10.0",
74
- "lucide-react": "^1.41.0",
75
- "react": "^19.2.8",
74
+ "lucide-react": "^1.45.0",
75
+ "react": "^19.3.0",
76
76
  "shadcn": "^4.21.0",
77
- "tsc-alias": "^1.9.4",
77
+ "tsc-alias": "^1.9.5",
78
78
  "tsup": "^8.5.1",
79
79
  "tsx": "^4.23.13",
80
80
  "typescript": "7.0.2"
@@ -90,7 +90,7 @@
90
90
  "registry:check": "tsx scripts/check-registry-items.ts",
91
91
  "registry:validate": "pnpm registry:items && pnpm registry:check && shadcn registry validate --cwd ../..",
92
92
  "registry:build": "pnpm registry:validate && shadcn build --output apps/docs/public/r --cwd ../..",
93
- "lint": "eslint",
93
+ "lint": "eslint --max-warnings 0",
94
94
  "check-types": "tsc --noEmit && tsc --noEmit -p tsconfig.registry.json"
95
95
  }
96
96
  }