@playbooks/ui
Version:
An interface library for Playbooks.
87 lines (83 loc) • 4.32 kB
TypeScript
// Generated by dts-bundle-generator v9.5.1
import { TailwindProps } from '@ehubbell/html';
export type HtmlProps = TailwindProps & {
id?: string;
ref?: any;
name?: string;
size?: string;
html?: any;
tabIndex?: any;
onClick?: (v?: any) => any;
onMouseEnter?: (v?: any) => any;
onMouseLeave?: (v?: any) => any;
tailwind?: TailwindProps & any;
className?: string;
style?: any;
children?: any;
};
export type InputProps = HtmlProps & {
value?: string;
defaultValue?: string;
placeholder?: string;
onBlur?: (e: any) => any;
onChange?: (e: any) => any;
onFocus?: (e: any) => any;
readOnly?: boolean;
};
export type FormProps = HtmlProps & {
onSubmit?: (v: any) => any;
};
export type FormGroupProps = HtmlProps;
export type FormLabelProps = HtmlProps & {
htmlFor?: string;
};
export type FormCheckboxProps = FormInputProps & {
checked?: boolean;
};
export type FormFileProps = FormInputProps;
export type FormInputProps = InputProps & {
id?: string;
type?: string;
size?: string;
variant?: string;
disabled?: boolean;
};
export type FormInputCurrencyProps = FormInputProps & {
prefix?: string;
};
export type FormInputLocationProps = FormInputProps & {
options?: any;
googleMapsApiKey: string;
onSelect: (e: any) => any;
};
export type FormInputMaskProps = FormInputProps & {
mask: string;
};
export type FormInputPhoneProps = FormInputProps & {
id?: string;
type?: string;
size?: string;
variant?: string;
};
export type FormSelectProps = FormInputProps & {
options?: string[];
};
export type FormTextProps = HtmlProps;
export type FormTextAreaProps = FormInputProps & {
rows: any;
};
export declare const Form: ({ id, name, onSubmit, tailwind, className, children, ...props }: FormProps) => import("react/jsx-runtime").JSX.Element;
export declare const FormGroup: ({ name, tailwind, className, children, ...props }: FormGroupProps) => import("react/jsx-runtime").JSX.Element;
export declare const FormLabel: ({ id, name, htmlFor, onClick, tailwind, className, children, ...props }: FormLabelProps) => import("react/jsx-runtime").JSX.Element;
export declare const FormCheckbox: ({ id, name, checked, onChange, readOnly, tailwind, className, ...props }: FormCheckboxProps) => import("react/jsx-runtime").JSX.Element;
export declare const FormInput: ({ id, ref, name, type, size, value, variant, placeholder, onChange, onFocus, onBlur, onClick, readOnly, tailwind, className, ...props }: FormInputProps) => import("react/jsx-runtime").JSX.Element;
export declare const FormMaskInput: ({ id, name, size, mask, value, variant, placeholder, onChange, onBlur, readOnly, tailwind, className, ...props }: FormInputMaskProps) => import("react/jsx-runtime").JSX.Element;
export declare const FormCurrencyInput: ({ id, name, size, value, variant, prefix, placeholder, onChange, onBlur, readOnly, tailwind, className, ...props }: FormInputCurrencyProps) => import("react/jsx-runtime").JSX.Element;
export declare const FormDivInput: ({ id, name, size, value, variant, placeholder, onClick, tailwind, className, children, ...props }: FormInputProps) => import("react/jsx-runtime").JSX.Element;
export declare const FormFileInput: ({ id, name, value, placeholder, onChange, tailwind, className, ...props }: FormFileProps) => import("react/jsx-runtime").JSX.Element;
export declare const FormLocationInput: ({ id, name, size, value, variant, options, placeholder, googleMapsApiKey, onChange, onSelect, onBlur, readOnly, tailwind, className, ...props }: FormInputLocationProps) => import("react/jsx-runtime").JSX.Element;
export declare const FormPhoneInput: ({ id, name, size, value, variant, placeholder, onChange, onBlur, readOnly, tailwind, className, ...props }: FormInputPhoneProps) => import("react/jsx-runtime").JSX.Element;
export declare const FormSelect: ({ id, name, size, value, variant, options, placeholder, disabled, onChange, tailwind, className, ...props }: FormSelectProps) => import("react/jsx-runtime").JSX.Element;
export declare const FormText: ({ name, tailwind, className, children, ...props }: FormTextProps) => import("react/jsx-runtime").JSX.Element;
export declare const FormTextArea: ({ id, name, size, value, variant, rows, placeholder, onChange, readOnly, tailwind, className, ...props }: FormTextAreaProps) => import("react/jsx-runtime").JSX.Element;
export {};