@revenuecat/purchases-ui-js
Version:
Web components for Paywalls. Powered by RevenueCat
16 lines (15 loc) • 1.12 kB
TypeScript
import { type ColorMode, type SizeType } from "../../types";
import type { ColorGradientScheme, ColorScheme } from "../../types/colors";
import type { TextNodeProps } from "../../types/components/text";
import type { AppFontsConfig } from "../../types/ui-config";
import { type CSS } from "../../utils/base-utils";
export declare const defaultColor: ColorScheme;
export declare function mapTextColor(colorMode: ColorMode, scheme: ColorGradientScheme): CSS;
/**
* 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 inline styles and the appropriate HTML tag to render
*/
export declare const getTextComponentStyles: (colorMode: ColorMode, props: TextNodeProps, fonts: AppFontsConfig) => string;
export declare function getTextWrapperInlineStyles(colorMode: ColorMode, _restProps: Partial<TextNodeProps>, size: SizeType, background_color?: ColorGradientScheme | null): string;
export declare function getHtmlFromMarkdown(text?: string): string;