2022-08-27 15:58:36 +02:00
|
|
|
import { IconProp } from '@fortawesome/fontawesome-svg-core';
|
2022-05-03 15:08:28 +02:00
|
|
|
|
2022-08-09 23:50:14 +02:00
|
|
|
export interface IInput {
|
2022-08-27 15:58:36 +02:00
|
|
|
type: 'input';
|
2022-05-03 15:08:28 +02:00
|
|
|
label: string;
|
2022-08-05 15:10:37 +02:00
|
|
|
placeholder?: string;
|
2022-08-09 23:50:14 +02:00
|
|
|
default?: string;
|
2022-05-03 15:08:28 +02:00
|
|
|
password?: boolean;
|
|
|
|
|
icon?: IconProp;
|
2022-10-27 03:17:53 -04:00
|
|
|
disabled?: boolean;
|
2022-10-27 13:45:27 +02:00
|
|
|
description?: string;
|
2022-05-03 15:08:28 +02:00
|
|
|
}
|
2022-08-09 23:50:14 +02:00
|
|
|
|
|
|
|
|
export interface ICheckbox {
|
2022-08-27 15:58:36 +02:00
|
|
|
type: 'checkbox';
|
2022-08-09 23:50:14 +02:00
|
|
|
label: string;
|
|
|
|
|
checked?: boolean;
|
2022-10-27 03:17:53 -04:00
|
|
|
disabled?: boolean;
|
2022-10-27 13:45:27 +02:00
|
|
|
description?: string;
|
2022-08-09 23:50:14 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface ISelect {
|
2022-08-27 15:58:36 +02:00
|
|
|
type: 'select';
|
2022-08-09 23:50:14 +02:00
|
|
|
label: string;
|
|
|
|
|
default?: string;
|
|
|
|
|
options?: { value: string; label?: string }[];
|
2022-10-27 03:17:53 -04:00
|
|
|
disabled?: boolean;
|
2022-10-27 13:45:27 +02:00
|
|
|
description?: string;
|
2022-08-09 23:50:14 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface INumber {
|
2022-08-27 15:58:36 +02:00
|
|
|
type: 'number';
|
2022-08-09 23:50:14 +02:00
|
|
|
label: string;
|
|
|
|
|
placeholder?: string;
|
|
|
|
|
default?: number;
|
2022-09-08 12:00:41 +02:00
|
|
|
icon?: IconProp;
|
2022-08-27 15:58:36 +02:00
|
|
|
min?: number;
|
|
|
|
|
max?: number;
|
2022-10-27 03:17:53 -04:00
|
|
|
disabled?: boolean;
|
2022-10-27 13:45:27 +02:00
|
|
|
description?: string;
|
2022-08-09 23:50:14 +02:00
|
|
|
}
|
2022-08-10 21:05:27 +02:00
|
|
|
|
|
|
|
|
export interface ISlider {
|
2022-08-27 15:58:36 +02:00
|
|
|
type: 'slider';
|
2022-08-10 21:05:27 +02:00
|
|
|
label: string;
|
|
|
|
|
default?: number;
|
|
|
|
|
min?: number;
|
|
|
|
|
max?: number;
|
|
|
|
|
step?: number;
|
2022-10-27 03:17:53 -04:00
|
|
|
disabled?: boolean;
|
2022-10-27 13:45:27 +02:00
|
|
|
description?: string;
|
2022-08-10 21:05:27 +02:00
|
|
|
}
|