2023-11-08 15:34:16 +01:00
|
|
|
import { FileInputBlock } from './schema'
|
|
|
|
|
|
|
|
export const defaultFileInputOptions = {
|
|
|
|
isRequired: true,
|
|
|
|
isMultipleAllowed: false,
|
2024-01-30 08:02:10 +01:00
|
|
|
visibility: 'Auto',
|
2023-11-08 15:34:16 +01:00
|
|
|
labels: {
|
|
|
|
placeholder: `<strong>
|
|
|
|
Click to upload
|
|
|
|
</strong> or drag and drop<br>
|
|
|
|
(size limit: 10MB)`,
|
|
|
|
button: 'Upload',
|
|
|
|
clear: 'Clear',
|
|
|
|
skip: 'Skip',
|
2024-02-05 14:11:04 +01:00
|
|
|
success: {
|
|
|
|
single: 'File uploaded',
|
|
|
|
multiple: '{total} files uploaded',
|
|
|
|
},
|
2023-11-08 15:34:16 +01:00
|
|
|
},
|
|
|
|
} as const satisfies FileInputBlock['options']
|
2024-01-30 08:02:10 +01:00
|
|
|
|
|
|
|
export const fileVisibilityOptions = ['Auto', 'Public', 'Private'] as const
|