UNPKG

@navinc/base-react-components

Version:
55 lines (54 loc) 2.51 kB
export const HelperIcon: import("styled-components").StyledComponent<({ name, ...props }: { name: import("./index.js").IconName; } & import("react").SVGProps<SVGSVGElement>) => JSX.Element | null, import("styled-components").DefaultTheme, {}, never>; export const HelperDescription: import("styled-components").StyledComponent<({ bold: _bold, shouldScaleFont: _shouldScaleFont, boldType: _boldType, light: _light, ...props }: import("./copy.js").CopyProps) => JSX.Element, import("styled-components").DefaultTheme, { size: "sm"; bold: true; }, "size" | "bold">; export const HelperItem: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, any, string | number | symbol>; export function Helper({ className, hasSpaceForErrors, helperLinkAction, helperText, iconName }: { className: any; hasSpaceForErrors: any; helperLinkAction: any; helperText: any; iconName: any; }): JSX.Element; export namespace Helper { namespace propTypes { const className: PropTypes.Requireable<string>; const hasSpaceForErrors: PropTypes.Requireable<boolean>; const helperLinkAction: PropTypes.Requireable<(...args: any[]) => any>; const helperText: PropTypes.Requireable<string>; const iconName: PropTypes.Requireable<string>; } namespace defaultProps { const iconName_1: string; export { iconName_1 as iconName }; } } declare var _default: import("styled-components").StyledComponent<{ ({ className, hasSpaceForErrors, helperLinkAction, helperText, iconName }: { className: any; hasSpaceForErrors: any; helperLinkAction: any; helperText: any; iconName: any; }): JSX.Element; propTypes: { /** Classname provided to the HelperItem */ className: PropTypes.Requireable<string>; /** Adds space for an error. Suggest passing !!errors into this prop to add/remove it based on the existence of errors */ hasSpaceForErrors: PropTypes.Requireable<boolean>; /** onClick */ helperLinkAction: PropTypes.Requireable<(...args: any[]) => any>; /** Text inside the helper description */ helperText: PropTypes.Requireable<string>; /** Name of icon */ iconName: PropTypes.Requireable<string>; }; defaultProps: { iconName: string; }; }, import("styled-components").DefaultTheme, {}, never>; export default _default; import PropTypes from "prop-types";