UNPKG

@procore/core-react

Version:
18 lines (17 loc) 975 B
/// <reference types="react" /> import type { RuleSet } from 'styled-components'; import type { Intent, TypographyProps, Weight } from './Typography.types'; export interface StyledTypographyProps { $breakWord?: TypographyProps['intent']; $color?: TypographyProps['color']; $intent?: TypographyProps['intent']; $italic?: TypographyProps['italic']; $weight?: TypographyProps['weight']; } export declare const typographyWeights: { [key in Weight]: number; }; export declare const typographyLineHeight: Record<Intent, number>; export declare function getTypographyIntent(intent: Intent): RuleSet<object>; export declare const semiboldRules: () => RuleSet<object>; export declare const StyledTypography: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, StyledTypographyProps>> & string;