mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-11-20 10:38:33 +00:00
* feat(interface/dialog): readonly, disabled flags * Update TS prop types * refactor(web/input): remove read only property Co-authored-by: davidxd33 <dponce@gmail.com>
48 lines
838 B
TypeScript
48 lines
838 B
TypeScript
import { IconProp } from '@fortawesome/fontawesome-svg-core';
|
|
|
|
export interface IInput {
|
|
type: 'input';
|
|
label: string;
|
|
placeholder?: string;
|
|
default?: string;
|
|
password?: boolean;
|
|
icon?: IconProp;
|
|
disabled?: boolean;
|
|
}
|
|
|
|
export interface ICheckbox {
|
|
type: 'checkbox';
|
|
label: string;
|
|
checked?: boolean;
|
|
disabled?: boolean;
|
|
}
|
|
|
|
export interface ISelect {
|
|
type: 'select';
|
|
label: string;
|
|
default?: string;
|
|
options?: { value: string; label?: string }[];
|
|
disabled?: boolean;
|
|
}
|
|
|
|
export interface INumber {
|
|
type: 'number';
|
|
label: string;
|
|
placeholder?: string;
|
|
default?: number;
|
|
icon?: IconProp;
|
|
min?: number;
|
|
max?: number;
|
|
disabled?: boolean;
|
|
}
|
|
|
|
export interface ISlider {
|
|
type: 'slider';
|
|
label: string;
|
|
default?: number;
|
|
min?: number;
|
|
max?: number;
|
|
step?: number;
|
|
disabled?: boolean;
|
|
}
|