@brizy/ui
Version:
React elements in Brizy style
39 lines (38 loc) • 760 B
TypeScript
export declare enum OnChangeCases {
Symbol = 0,
Edit = 1,
Duplicate = 2,
Reset = 3,
Delete = 4
}
export interface Choice {
title: string;
value: string;
allowRemove?: boolean;
allowEdit?: boolean;
allowDuplicate?: boolean;
}
export interface Option {
title: string;
disabled?: boolean;
onClick?: VoidFunction;
}
interface SymbolChange {
type: OnChangeCases.Symbol;
payload: string;
}
interface Edit {
type: OnChangeCases.Edit;
payload: string;
}
interface Duplicate {
type: OnChangeCases.Duplicate;
}
interface Reset {
type: OnChangeCases.Reset;
}
interface Delete {
type: OnChangeCases.Delete;
}
export type Actions = SymbolChange | Edit | Duplicate | Reset | Delete;
export {};