fone-design-system_v2 1.0.307 → 1.0.308
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,6 +11,11 @@ export interface FileUploadProps {
|
|
|
11
11
|
size?: "small" | "medium" | "large";
|
|
12
12
|
disabled?: boolean;
|
|
13
13
|
sx?: SxProps<Theme>;
|
|
14
|
+
/**
|
|
15
|
+
* FieldShell 없이 버튼만 렌더합니다.
|
|
16
|
+
* 업로드 전후 모두 버튼 형태를 유지하며, buttonChildren으로 내용을 교체할 수 있습니다.
|
|
17
|
+
*/
|
|
18
|
+
buttonOnly?: boolean;
|
|
14
19
|
}
|
|
15
|
-
declare const FileUpload: ({ buttonChildren, accept, multiple, value, onChange, onClear: onClearProp, fullWidth, imgValue, size, disabled, sx, }: FileUploadProps) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
declare const FileUpload: ({ buttonChildren, accept, multiple, value, onChange, onClear: onClearProp, fullWidth, imgValue, size, disabled, sx, buttonOnly, }: FileUploadProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
21
|
export default FileUpload;
|
|
@@ -5,6 +5,7 @@ export interface SvgUploadProps extends Omit<FileUploadProps, "accept" | "value"
|
|
|
5
5
|
viewTypes?: Array<"filename" | "icon" | "preview">;
|
|
6
6
|
value?: string | File;
|
|
7
7
|
onChange?: React.ChangeEventHandler<HTMLInputElement>;
|
|
8
|
+
buttonOnly?: boolean;
|
|
8
9
|
}
|
|
9
|
-
declare const SvgUpload: ({ value, viewTypes, buttonChildren, onChange, ...rest }: SvgUploadProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare const SvgUpload: ({ value, viewTypes, buttonChildren, buttonOnly, onChange, ...rest }: SvgUploadProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
11
|
export default SvgUpload;
|