@navinc/base-react-components
Version:
Nav's Pattern Library
42 lines (41 loc) • 2.55 kB
TypeScript
export const AdvertiserLink: import("styled-components").StyledComponent<{
({ to, href, target, onClick, className, children, bold, ...props }: {
to?: import("history").LocationDescriptor<unknown> | ((location: import("history").Location<unknown>) => import("history").LocationDescriptor<unknown>) | undefined;
href?: import("history").LocationDescriptor<unknown> | ((location: import("history").Location<unknown>) => import("history").LocationDescriptor<unknown>) | undefined;
target?: string | undefined;
onClick?: React.MouseEventHandler<HTMLAnchorElement> | undefined;
className?: string | undefined;
bold?: boolean | undefined;
download?: boolean | undefined;
children?: React.ReactNode;
} & import("./types.js").InferComponentProps<import("styled-components").StyledComponent<({ bold, light: _light, size: _size, boldType: _boldType, ...props }: import("./text.js").TextProps) => JSX.Element, import("styled-components").DefaultTheme, {
bold?: boolean | undefined;
size?: "regular" | "small" | "medium" | "large" | undefined;
boldType?: "regular" | "semiBold" | "bold" | undefined;
$bold?: boolean | undefined;
light?: boolean | undefined;
} & React.ClassAttributes<HTMLSpanElement> & React.HTMLAttributes<HTMLSpanElement>, never>>): JSX.Element;
displayName: string;
}, import("styled-components").DefaultTheme, {}, never>;
export const Header: import("styled-components").StyledComponent<({ children, label, title, ...remainingProps }: import("./types.js").InferComponentProps<import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>> & {
label?: string | undefined;
title?: string | undefined;
children?: React.ReactNode;
}) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
export function AdvertiserDisclosure({ buttonTitle, cardTitle, openInfoDrawer, cardText, }: {
buttonTitle?: string | undefined;
cardTitle?: string | undefined;
openInfoDrawer: any;
cardText?: JSX.Element | undefined;
}): JSX.Element;
export namespace AdvertiserDisclosure {
namespace propTypes {
const buttonTitle: propTypes.Requireable<string>;
const cardTitle: propTypes.Requireable<string>;
const cardText: propTypes.Requireable<string>;
const openInfoDrawer: propTypes.Validator<(...args: any[]) => any>;
}
}
export default AdvertiserDisclosure;
import React from "react";
import propTypes_1 from "prop-types";