@navinc/base-react-components
Version:
Nav's Pattern Library
108 lines (107 loc) • 4.89 kB
TypeScript
export function getCachedValues(): {
[k: string]: any;
};
export function setCachedValues(values: any): void;
export const StyledStandardCard: import("styled-components").StyledComponent<"div", any, {}, never>;
export const StyledForm: import("styled-components").StyledComponent<"form", any, {}, never>;
export const StyledHeader: import("styled-components").StyledComponent<"h1", any, {
as: any;
}, "as">;
export const TwoColumn: import("styled-components").StyledComponent<"div", any, {}, never>;
export const CardHeader: import("styled-components").StyledComponent<({ bold, shouldScaleFont, light, ...props }: import("./copy").CopyProps) => JSX.Element, any, {}, never>;
export const SubmitButton: import("styled-components").StyledComponent<{
({ isLoading, ...props }: {
isLoading?: boolean | undefined;
href?: string | undefined;
asAnchor?: boolean | undefined;
} & ({
children?: React.ReactNode;
isLoading?: boolean | undefined;
onClick?: React.ReactEventHandler<Element> | undefined;
trackingContext?: {
type?: string | undefined;
context?: string | undefined;
category?: string | undefined;
payload?: {
category?: string | undefined;
label?: string | undefined;
name?: string | undefined;
} | undefined;
options?: {
integrations?: {
Salesforce?: boolean | undefined;
} | undefined;
} | undefined;
} | undefined;
} & (({
[x: string]: any;
[x: number]: any;
[x: symbol]: any;
} & {
theme?: any;
} & ({} | {
children?: React.ReactNode;
})) & {
as?: string | React.ComponentType<any> | undefined;
forwardedAs?: string | React.ComponentType<any> | undefined;
}))): JSX.Element;
displayName: string;
}, any, {}, never>;
export const InfodrawerCopyWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
export const CreateAccountWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
export const StyledCDNIllustration: import("styled-components").StyledComponent<({ filename, ...props }: {
[x: string]: any;
filename: any;
}) => JSX.Element, any, {}, never>;
export const LegalCheckbox: import("styled-components").StyledComponent<({ asideContent, label, checked, checkedBackgroundColor, disabled, className, hasBorder, hasSpaceForErrors, errors, size, isInvalid, ...props }: {
[x: string]: any;
asideContent: any;
label: any;
checked: any;
checkedBackgroundColor: any;
disabled: any;
className: any;
hasBorder: any;
hasSpaceForErrors: any;
errors?: any[] | undefined;
size: any;
isInvalid: any;
}) => JSX.Element, any, {}, never>;
export const ErrorsMessage: import("styled-components").StyledComponent<({ bold, shouldScaleFont, light, ...props }: import("./copy").CopyProps) => JSX.Element, any, {}, never>;
export const DisclaimerText: import("styled-components").StyledComponent<({ bold, shouldScaleFont, light, ...props }: import("./copy").CopyProps) => JSX.Element, any, {}, never>;
export const StyledIcon: import("styled-components").StyledComponent<{
({ name, ...props }: {
[x: string]: any;
name?: string | undefined;
}): JSX.Element;
propTypes: {
name: propTypes.Requireable<string>;
};
}, any, {}, never>;
export const CreateAccountHeader: import("styled-components").StyledComponent<"h1", any, {
as: any;
}, "as">;
export function SBAPaycheckProtectionProgramForm({ hasCalculator, initialValues, isSubmittingForm, onFormSubmit, dispatchOpenInfoDrawer, shouldShowPasswordField, }: {
hasCalculator?: boolean | undefined;
initialValues?: {} | undefined;
isSubmittingForm?: boolean | undefined;
onFormSubmit?: (() => void) | undefined;
dispatchOpenInfoDrawer?: (() => void) | undefined;
shouldShowPasswordField?: boolean | undefined;
}): JSX.Element;
export namespace SBAPaycheckProtectionProgramForm {
export namespace propTypes_1 {
const initialValues: propTypes.Requireable<object>;
const isSubmittingForm: propTypes.Requireable<boolean>;
const onFormSubmit: propTypes.Validator<(...args: any[]) => any>;
const dispatchOpenInfoDrawer: propTypes.Validator<(...args: any[]) => any>;
const shouldShowLoginPrompt: propTypes.Requireable<boolean>;
const loginPromptUrl: propTypes.Requireable<string>;
const onLoginPromptDismiss: propTypes.Requireable<(...args: any[]) => any>;
const shouldShowPasswordField: propTypes.Requireable<boolean>;
}
export { propTypes_1 as propTypes };
}
export default SBAPaycheckProtectionProgramForm;
import React from "react";
import propTypes from "prop-types";