refactor(web/input): separate date and time fields

This commit is contained in:
Luke
2023-02-14 10:54:53 +01:00
parent 14341a0343
commit 7bb2eb2ea7
4 changed files with 83 additions and 47 deletions

View File

@@ -70,7 +70,7 @@ export interface IColorInput {
}
export interface IDateInput {
type: 'date' | 'date-range' | 'time';
type: 'date' | 'date-range';
label: string;
default?: string | [string, string] | true;
disabled?: boolean;
@@ -84,6 +84,19 @@ export interface IDateInput {
icon?: IconProp;
}
export interface ITimeInput {
type: 'time';
label: string;
default?: string;
disabled?: boolean;
description?: string;
format?: '12' | '24';
required?: boolean;
clearable?: boolean;
placeholder?: string;
icon?: IconProp;
}
export interface ITextarea {
type: 'textarea';
label: string;