kwikid-components
Version:
KwikID's Components Library
98 lines (97 loc) • 2.9 kB
TypeScript
export declare const setPrivacyPolicy: (privacyPolicy: any) => any;
export declare const setSidePanelConfig: (sidePanel: any) => {
html: any;
image?: undefined;
animation?: undefined;
} | {
image: any;
html?: undefined;
animation?: undefined;
} | {
animation: any;
html?: undefined;
image?: undefined;
};
export declare const setFormTypeAndFormFields: (config: any, data: any) => {
formTitle: any;
formConfig: {
title: string;
key: string;
fields: any[];
properties: {
header: {
logo: {
hidden: boolean;
};
backButton: {
hidden: boolean;
};
title: {
hidden: boolean;
};
steps: {
hidden: boolean;
};
};
main: {
styles: string;
};
footer: {
viewFormsButton: {
hidden: boolean;
};
saveButton: {
hidden: boolean;
label: string;
};
};
};
};
};
export declare const setFormTitle: (customFormConfig: any, title: any) => any;
export declare const setFormFields: (customFormConfig: any, fields: any) => any;
export declare const setFormSaveButtons: (customFormConfig: any, formType: any, isOtpFlow: any, buttonLabels: any) => any;
export declare const setTncCheckbox: (config: any) => {
label: string;
key: string;
type: string;
validators: {
required: boolean;
};
properties: {
placeholder: string;
containerStyles: string;
};
};
export declare const setDefaultValueAndDisability: (fields: any, data: any) => any;
export declare const setDefaultValue: (value: any) => {
value: {
is_found: boolean;
value: string;
sources: {
value: string;
validation: {
is_valid: boolean;
triggers: string[];
rules: any[];
actions: {
key: string;
condition: string;
props: {
value: {
source: {
key: string;
props: {
predefinedValue: any;
};
};
};
};
}[];
};
}[];
};
};
export declare const setValuesInLocalStorage: (formType: any, config: any, formData: any) => void;
export declare const getFormattedTime: (value: any) => string;
export declare const paddedTime: (time: number) => string;