@dimah-s3/ui 1.4.1 → 1.5.0

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.
@@ -1,7 +1,7 @@
1
1
  import type { ComponentProps, ReactNode } from "react";
2
2
  import type { UseDeleteReturn } from "@dimah-s3/react";
3
3
  import { type AttachmentLayoutAliases, type StatusSlot } from "../../../lib/attachment-layout";
4
- import { Button } from "../../../components/ui/button";
4
+ import { Button } from "../../ui/button";
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
3
  import { type AttachmentLayoutAliases, type StatusSlot } from "../../../lib/attachment-layout";
4
- import { Button } from "../../../components/ui/button";
4
+ import { Button } from "../../ui/button";
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
3
  import { type AttachmentLayoutAliases, type StatusSlot } from "../../../lib/attachment-layout";
4
- import { Button } from "../../../components/ui/button";
4
+ import { Button } from "../../ui/button";
5
5
  /** Props for {@link ProgressDownloadButton}. Pass a {@link UseFetchDownloadReturn} as `download`. */
6
6
  export type ProgressDownloadButtonProps = AttachmentLayoutAliases & {
7
7
  download: UseFetchDownloadReturn;
@@ -1,6 +1,6 @@
1
1
  import type { ComponentProps, ReactNode } from "react";
2
2
  import type { UseUploadReturn } from "@dimah-s3/react";
3
- import { Button } from "../../../components/ui/button";
3
+ import { Button } from "../../ui/button";
4
4
  import { type AttachmentLayoutAliases, type StatusSlot } from "../../../lib/attachment-layout";
5
5
  /** Props for {@link UploadButton}. Pass a {@link UseUploadReturn} as `upload`. */
6
6
  export type UploadButtonProps = AttachmentLayoutAliases & {
@@ -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 "../../components/ui/button";
3
+ import { Button } from "./button";
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 "../../components/ui/button";
4
+ import { Button } from "./button";
5
5
  declare const attachmentVariants: (props?: ({
6
6
  size?: "default" | "sm" | "xs" | null | undefined;
7
7
  orientation?: "horizontal" | "vertical" | null | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dimah-s3/ui",
3
- "version": "1.4.1",
3
+ "version": "1.5.0",
4
4
  "description": "Pre-built React UI components for S3 file upload, download, and delete",
5
5
  "keywords": [
6
6
  "s3",
@@ -46,8 +46,8 @@
46
46
  "css"
47
47
  ],
48
48
  "dependencies": {
49
- "@dimah-s3/core": "1.4.1",
50
- "@dimah-s3/react": "1.4.1",
49
+ "@dimah-s3/core": "1.5.0",
50
+ "@dimah-s3/react": "1.5.0",
51
51
  "react-file-icon": "^1.6.0"
52
52
  },
53
53
  "peerDependencies": {
@@ -71,8 +71,8 @@
71
71
  "eslint": "^10.9.1",
72
72
  "lucide-react": "^1.39.0",
73
73
  "react": "^19.2.8",
74
- "shadcn": "^4.19.1",
75
- "tsc-alias": "^1.9.3",
74
+ "shadcn": "^4.20.1",
75
+ "tsc-alias": "^1.9.4",
76
76
  "tsup": "^8.5.1",
77
77
  "tsx": "^4.23.13",
78
78
  "typescript": "7.0.2"