UNPKG

@revenuecat/purchases-ui-js

Version:

Web components for Paywalls. Powered by RevenueCat

38 lines (37 loc) 1.59 kB
import type { BorderType, ShapeType, ShadowType, SizeType, Spacing, TextAlignments } from ".."; import type { VerticalAlignment } from "../alignment"; import type { BaseComponent } from "../base"; import type { ColorGradientScheme } from "../colors"; import type { Overrides } from "../overrides"; export type InputTextCapitalizeType = "none" | "sentences" | "words" | "characters"; export type InputTextKeyboardType = "decimal" | "email" | "numeric" | "tel" | "text" | "url"; export type ReservedAttribute = "$email" | "$displayName" | "$phoneNumber"; export interface InputTextProps extends BaseComponent { type: "input_text"; visible?: boolean | null; placeholder_lid: string; keyboard_type: InputTextKeyboardType; capitalize: InputTextCapitalizeType; field_id: string; reserved_attribute?: ReservedAttribute | null; required: boolean; size: SizeType; padding: Spacing; margin: Spacing; vertical_alignment?: VerticalAlignment | null; border?: BorderType | null; shape?: ShapeType | null; shadow?: ShadowType | null; font_name?: string | null; font_weight_int?: number | null; font_size: number; horizontal_alignment: keyof typeof TextAlignments; color: ColorGradientScheme; placeholder_font_name?: string | null; placeholder_font_weight_int?: number | null; placeholder_font_size: number; placeholder_horizontal_alignment: keyof typeof TextAlignments; placeholder_color: ColorGradientScheme; background_color?: ColorGradientScheme | null; overrides?: Overrides<InputTextProps>; }