next-helios-fe 1.8.95 → 1.8.96
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/package.json
CHANGED
@@ -8,6 +8,7 @@ export interface FileProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
8
8
|
description?: string;
|
9
9
|
options?: {
|
10
10
|
variant?: "basic" | "drag&drop";
|
11
|
+
showDragDropDetail?: boolean;
|
11
12
|
buttonVariant?: "basic" | "button";
|
12
13
|
maxSizeInMb?: number;
|
13
14
|
buttonOnly?: boolean;
|
@@ -62,7 +63,7 @@ export const File: React.FC<FileProps> = ({
|
|
62
63
|
options?.height === "full" && "h-full"
|
63
64
|
}`}
|
64
65
|
>
|
65
|
-
{options?.variant !== "drag&drop" &&
|
66
|
+
{(options?.variant !== "drag&drop" || options?.showDragDropDetail) &&
|
66
67
|
!options?.buttonOnly &&
|
67
68
|
(label ||
|
68
69
|
(!options?.hideInputDetail &&
|
@@ -78,7 +79,7 @@ export const File: React.FC<FileProps> = ({
|
|
78
79
|
{label}
|
79
80
|
</span>
|
80
81
|
)}
|
81
|
-
{!options?.hideInputDetail && (
|
82
|
+
{options?.variant !== "drag&drop" && !options?.hideInputDetail && (
|
82
83
|
<div className="flex-1 flex justify-end items-center gap-2">
|
83
84
|
{options?.maxSizeInMb && (
|
84
85
|
<span className="text-sm select-none">
|