@navinc/base-react-components
Version:
Nav's Pattern Library
55 lines (54 loc) • 1.58 kB
TypeScript
export function getStripeDefaults(theme: any): {
stripe: {
fonts: {
family: string;
src: string;
weight: number;
style: string;
}[];
};
elements: {
classes: {
base: string;
empty: string;
focus: string;
complete: string;
invalid: string;
};
hideIcon: boolean;
style: {
base: {
color: any;
fontFamily: string;
fontSize: string;
lineHeight: string;
};
invalid: {
color: any;
};
};
};
};
export const CCInputWrapper: import("styled-components").StyledComponent<"input", import("styled-components").DefaultTheme, {
isInvalid?: boolean | undefined;
} & {
as: string;
}, "as">;
export function CCInput({ className, label, hasSpaceForErrors, isInvalid, value, required, type, errors, lede, onChange, onBlur, onFocus, createPaymentMethodRef, createTokenRef, ...props }: {
[x: string]: any;
className?: string | undefined;
label: any;
hasSpaceForErrors: any;
isInvalid: any;
value: any;
required: any;
type: any;
errors?: any[] | undefined;
lede?: string | undefined;
onChange?: (() => void) | undefined;
onBlur?: (() => void) | undefined;
onFocus?: (() => void) | undefined;
createPaymentMethodRef?: (() => void) | undefined;
createTokenRef?: (() => void) | undefined;
}): JSX.Element;
export default CCInput;