@hhgtech/hhg-components
Version:
Hello Health Group common components
41 lines (40 loc) • 1.28 kB
TypeScript
import { NodeType, SubotFormSubmitMeta, SubotMessage, SubotNodeAction, SubotNodeIntent, SubotNodeMessage } from "./";
export type SubotInlineNodeProps = {
node: SubotNodeMessage;
indexNumber?: number;
};
export type SubotInlineIntentProps = {
intents: Array<SubotNodeIntent>;
indexNumber?: number;
};
export type SubotInlineIntentItemProps = {
intent: SubotNodeIntent;
indexNumber?: number;
};
export interface SubotInlineActionItemProps {
node_type?: NodeType;
value?: SubotFormSubmitMeta | string;
action?: SubotNodeAction;
onChange?: (action?: any, formSubmitMeta?: SubotMessage['form_submit_meta']) => void;
active?: boolean;
htmlType?: 'radio' | 'checkbox';
formSubmitMeta?: SubotMessage['form_submit_meta'];
}
export interface SubotInlineActionProps {
htmlType?: 'radio' | 'checkbox';
actions?: Array<SubotNodeAction>;
value?: Array<string>;
onChange?: (value?: SubotNodeAction) => void;
node_type?: NodeType;
formSubmitMeta?: SubotMessage['form_submit_meta'];
}
export type FrisoFormFieldProps = {
name?: string;
first_name?: string;
last_name?: string;
dob: Date;
phone: string;
email: string;
address: any;
term: boolean;
};