UNPKG

@revenuecat/purchases-ui-js

Version:

Web components for Paywalls. Powered by RevenueCat

20 lines (19 loc) 1.07 kB
import type { TextNodeProps } from "../../data/entities"; import type { ColorType, SizeType } from "../../types"; export declare const defaultColor: ColorType; export declare const defaultBackgroundColor: ColorType; /** * Generates comprehensive styles for text components by combining text, component and size styles * @param props - Text component properties including font, color, background, spacing etc. * @returns Object containing text style variables and the appropriate HTML tag to render */ export declare const getTextComponentStyles: (props: TextNodeProps) => { textStyles: Record<string, string | number>; tagToRender: import("../../utils/style-utils").TextComponentTags; }; export declare function getTextWrapperStyles(restProps: Partial<TextNodeProps>, size: SizeType, background_color?: ColorType): string; export declare function getTextNodeStyles(props: TextNodeProps): { tagToRender: import("../../utils/style-utils").TextComponentTags; textStyles: string; }; export declare function getHtmlFromMarkdown(text?: string): string;