finform-react-builder 1.5.16 → 1.6.1

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.
@@ -128,6 +128,43 @@ export interface ImageField extends BaseField {
128
128
  className?: string;
129
129
  onClick?: () => void;
130
130
  defaultValue?: string;
131
+ accept?: string | string[];
132
+ onFileSelected?: (file: File) => void;
133
+ onRemove?: () => void;
134
+ onPreview?: (url: string) => void;
135
+ onSave?: (payload: {
136
+ url: string;
137
+ file?: File;
138
+ }) => void;
139
+ imagePlaceholder?: {
140
+ icon?: 'upload' | 'image';
141
+ title?: string;
142
+ subtitle?: string;
143
+ buttonText?: string;
144
+ helperText?: string;
145
+ sx?: any;
146
+ iconSx?: any;
147
+ titleSx?: any;
148
+ subtitleSx?: any;
149
+ buttonSx?: any;
150
+ helperTextSx?: any;
151
+ };
152
+ imageUploaded?: {
153
+ previewText?: string;
154
+ removeText?: string;
155
+ saveText?: string;
156
+ showSave?: boolean;
157
+ previewTitle?: string;
158
+ replaceText?: string;
159
+ closeText?: string;
160
+ cardSx?: any;
161
+ thumbnailSx?: any;
162
+ fileNameSx?: any;
163
+ fileMetaSx?: any;
164
+ previewButtonSx?: any;
165
+ removeButtonSx?: any;
166
+ saveButtonSx?: any;
167
+ };
131
168
  }
132
169
  export interface ComponentField extends BaseField {
133
170
  type: 'component';