@navinc/base-react-components
Version:
Nav's Pattern Library
56 lines (55 loc) • 1.65 kB
TypeScript
export namespace stripeDefaults {
namespace stripe {
const fonts: {
family: string;
src: string;
weight: number;
style: string;
}[];
}
namespace elements {
namespace classes {
const base: string;
const empty: string;
const focus: string;
const complete: string;
const invalid: string;
}
const hideIcon: boolean;
namespace style {
export namespace base_1 {
const color: string;
const fontFamily: string;
const fontSize: string;
const lineHeight: string;
}
export { base_1 as base };
export namespace invalid_1 {
const color_1: string;
export { color_1 as color };
}
export { invalid_1 as invalid };
}
}
}
export const CCInputWrapper: import("styled-components").StyledComponent<"input", any, {
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?: any;
onBlur?: any;
onFocus?: any;
createPaymentMethodRef?: any;
createTokenRef?: any;
}): JSX.Element;
export default CCInput;