framepexls-ui-lib 0.3.31 → 0.3.32

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.
@@ -11,7 +11,7 @@ type CheckboxProps = Omit<React__default.InputHTMLAttributes<HTMLInputElement>,
11
11
  className?: string;
12
12
  inputClassName?: string;
13
13
  };
14
- declare const Checkbox: React__default.ForwardRefExoticComponent<Omit<React__default.InputHTMLAttributes<HTMLInputElement>, "type" | "size"> & {
14
+ declare const Checkbox: React__default.ForwardRefExoticComponent<Omit<React__default.InputHTMLAttributes<HTMLInputElement>, "size" | "type"> & {
15
15
  label?: React__default.ReactNode;
16
16
  description?: React__default.ReactNode;
17
17
  error?: boolean;
@@ -11,7 +11,7 @@ type CheckboxProps = Omit<React__default.InputHTMLAttributes<HTMLInputElement>,
11
11
  className?: string;
12
12
  inputClassName?: string;
13
13
  };
14
- declare const Checkbox: React__default.ForwardRefExoticComponent<Omit<React__default.InputHTMLAttributes<HTMLInputElement>, "type" | "size"> & {
14
+ declare const Checkbox: React__default.ForwardRefExoticComponent<Omit<React__default.InputHTMLAttributes<HTMLInputElement>, "size" | "type"> & {
15
15
  label?: React__default.ReactNode;
16
16
  description?: React__default.ReactNode;
17
17
  error?: boolean;
@@ -6,11 +6,12 @@ type MediaCardProps = {
6
6
  subtitle?: string;
7
7
  copyUrl?: string;
8
8
  mimeType?: string | null;
9
+ isPrivateImage?: boolean;
9
10
  onRename?: () => void;
10
11
  onReplace?: () => void;
11
12
  onDelete?: () => void;
12
13
  className?: string;
13
14
  };
14
- declare function MediaCard({ imageUrl, title, subtitle, copyUrl, mimeType, onRename, onReplace, onDelete, className, }: MediaCardProps): react_jsx_runtime.JSX.Element;
15
+ declare function MediaCard({ imageUrl, title, subtitle, copyUrl, mimeType, isPrivateImage, onRename, onReplace, onDelete, className, }: MediaCardProps): react_jsx_runtime.JSX.Element;
15
16
 
16
17
  export { type MediaCardProps, MediaCard as default };
@@ -6,11 +6,12 @@ type MediaCardProps = {
6
6
  subtitle?: string;
7
7
  copyUrl?: string;
8
8
  mimeType?: string | null;
9
+ isPrivateImage?: boolean;
9
10
  onRename?: () => void;
10
11
  onReplace?: () => void;
11
12
  onDelete?: () => void;
12
13
  className?: string;
13
14
  };
14
- declare function MediaCard({ imageUrl, title, subtitle, copyUrl, mimeType, onRename, onReplace, onDelete, className, }: MediaCardProps): react_jsx_runtime.JSX.Element;
15
+ declare function MediaCard({ imageUrl, title, subtitle, copyUrl, mimeType, isPrivateImage, onRename, onReplace, onDelete, className, }: MediaCardProps): react_jsx_runtime.JSX.Element;
15
16
 
16
17
  export { type MediaCardProps, MediaCard as default };
package/dist/MediaCard.js CHANGED
@@ -44,6 +44,7 @@ function MediaCard({
44
44
  subtitle,
45
45
  copyUrl,
46
46
  mimeType,
47
+ isPrivateImage,
47
48
  onRename,
48
49
  onReplace,
49
50
  onDelete,
@@ -80,7 +81,8 @@ function MediaCard({
80
81
  alt: title,
81
82
  fill: true,
82
83
  sizes: "(min-width:1024px) 20vw, (min-width:768px) 25vw, (min-width:640px) 33vw, 50vw",
83
- className: "object-cover transition-transform duration-200 will-change-transform group-hover:scale-105"
84
+ className: "object-cover transition-transform duration-200 will-change-transform group-hover:scale-105",
85
+ unoptimized: Boolean(isPrivateImage)
84
86
  }
85
87
  );
86
88
  }
@@ -11,6 +11,7 @@ function MediaCard({
11
11
  subtitle,
12
12
  copyUrl,
13
13
  mimeType,
14
+ isPrivateImage,
14
15
  onRename,
15
16
  onReplace,
16
17
  onDelete,
@@ -47,7 +48,8 @@ function MediaCard({
47
48
  alt: title,
48
49
  fill: true,
49
50
  sizes: "(min-width:1024px) 20vw, (min-width:768px) 25vw, (min-width:640px) 33vw, 50vw",
50
- className: "object-cover transition-transform duration-200 will-change-transform group-hover:scale-105"
51
+ className: "object-cover transition-transform duration-200 will-change-transform group-hover:scale-105",
52
+ unoptimized: Boolean(isPrivateImage)
51
53
  }
52
54
  );
53
55
  }
@@ -6,6 +6,7 @@ type MediaTileProps = {
6
6
  subtitle?: string;
7
7
  copyUrl?: string;
8
8
  loading?: boolean;
9
+ isPrivateImage?: boolean;
9
10
  onPreview?: () => void;
10
11
  onRename?: () => void;
11
12
  onReplace?: () => void;
@@ -13,6 +14,6 @@ type MediaTileProps = {
13
14
  menuSize?: "sm" | "md" | "lg";
14
15
  className?: string;
15
16
  };
16
- declare function MediaTile({ imageUrl, title, subtitle, copyUrl, onPreview, onRename, onReplace, onDelete, loading, menuSize, className, }: MediaTileProps): react_jsx_runtime.JSX.Element;
17
+ declare function MediaTile({ imageUrl, title, subtitle, copyUrl, onPreview, onRename, onReplace, onDelete, isPrivateImage, loading, menuSize, className, }: MediaTileProps): react_jsx_runtime.JSX.Element;
17
18
 
18
19
  export { type MediaTileProps, MediaTile as default };
@@ -6,6 +6,7 @@ type MediaTileProps = {
6
6
  subtitle?: string;
7
7
  copyUrl?: string;
8
8
  loading?: boolean;
9
+ isPrivateImage?: boolean;
9
10
  onPreview?: () => void;
10
11
  onRename?: () => void;
11
12
  onReplace?: () => void;
@@ -13,6 +14,6 @@ type MediaTileProps = {
13
14
  menuSize?: "sm" | "md" | "lg";
14
15
  className?: string;
15
16
  };
16
- declare function MediaTile({ imageUrl, title, subtitle, copyUrl, onPreview, onRename, onReplace, onDelete, loading, menuSize, className, }: MediaTileProps): react_jsx_runtime.JSX.Element;
17
+ declare function MediaTile({ imageUrl, title, subtitle, copyUrl, onPreview, onRename, onReplace, onDelete, isPrivateImage, loading, menuSize, className, }: MediaTileProps): react_jsx_runtime.JSX.Element;
17
18
 
18
19
  export { type MediaTileProps, MediaTile as default };
package/dist/MediaTile.js CHANGED
@@ -48,6 +48,7 @@ function MediaTile({
48
48
  onRename,
49
49
  onReplace,
50
50
  onDelete,
51
+ isPrivateImage,
51
52
  loading,
52
53
  menuSize = "md",
53
54
  className
@@ -101,7 +102,8 @@ function MediaTile({
101
102
  alt: title,
102
103
  fill: true,
103
104
  sizes: "(min-width:1024px) 20vw, (min-width:768px) 25vw, (min-width:640px) 33vw, 50vw",
104
- className: "object-cover transition-transform duration-200 will-change-transform group-hover:scale-105"
105
+ className: "object-cover transition-transform duration-200 will-change-transform group-hover:scale-105",
106
+ unoptimized: Boolean(isPrivateImage)
105
107
  }
106
108
  ) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "h-full w-full" }),
107
109
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "pointer-events-none absolute inset-0 bg-gradient-to-t from-black/30 to-transparent opacity-0 transition-opacity duration-200 group-hover:opacity-100" })
@@ -15,6 +15,7 @@ function MediaTile({
15
15
  onRename,
16
16
  onReplace,
17
17
  onDelete,
18
+ isPrivateImage,
18
19
  loading,
19
20
  menuSize = "md",
20
21
  className
@@ -68,7 +69,8 @@ function MediaTile({
68
69
  alt: title,
69
70
  fill: true,
70
71
  sizes: "(min-width:1024px) 20vw, (min-width:768px) 25vw, (min-width:640px) 33vw, 50vw",
71
- className: "object-cover transition-transform duration-200 will-change-transform group-hover:scale-105"
72
+ className: "object-cover transition-transform duration-200 will-change-transform group-hover:scale-105",
73
+ unoptimized: Boolean(isPrivateImage)
72
74
  }
73
75
  ) : /* @__PURE__ */ jsx("div", { className: "h-full w-full" }),
74
76
  /* @__PURE__ */ jsx("div", { className: "pointer-events-none absolute inset-0 bg-gradient-to-t from-black/30 to-transparent opacity-0 transition-opacity duration-200 group-hover:opacity-100" })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "framepexls-ui-lib",
3
- "version": "0.3.31",
3
+ "version": "0.3.32",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "description": "Componentes UI de Framepexls para React/Next.",