@namiml/web-sdk
Version:
Nami Web SDK makes subscriptions & in-app purchases easy, with powerful built-in paywalls and A/B testing
35 lines (34 loc) • 2.97 kB
TypeScript
import type { TCarouselContainer } from "../../types/components/containers";
import { type TBaseComponent, type TContainerPosition } from "../../types/components";
import type { TSegmentPickerItem, TTextLikeComponent } from "../../types/components/elements";
import type { TSemverObj } from "../../utils/parsers";
export declare function parseSize(value: string | number, scaleFactor: number): string;
export declare function backgroundColor(value: string, fallback?: string): string;
export declare function filteredBorderColor(value: string, fallback?: string): string;
export declare function filteredTextColor(value: string, fallback?: string): string;
export declare function pickAndApplyBackgroundColor(component: TBaseComponent, inFocusedState?: boolean): string;
export declare function flexDirection({ direction }: TBaseComponent): string;
export declare function alignAndJustifyItems(component: TBaseComponent): string;
export declare function applyTextWidth(minSDKVersion: TSemverObj): string;
export declare function applyChildSizing(minSDKVersion: TSemverObj, sizeKey: string): string;
export declare function applyTextOverflow(component: TTextLikeComponent): string;
export declare function transition(): string;
export declare function grow({ grow }: TBaseComponent): string;
export declare function paddingAndMargin(component: TBaseComponent, scaleFactor: number): string;
export declare function slidePaddingAndMargin(component: TCarouselContainer, scaleFactor: number): string;
export declare function transform({ moveX, moveY, }: TBaseComponent): string;
export declare function borders(component: TBaseComponent, scaleFactor: number, inFocusedState?: boolean): string;
export declare function alignItems({ alignment, verticalAlignment }: TBaseComponent): string;
export declare function justifyContent({ alignment, horizontalAlignment }: TBaseComponent): string;
export declare function widthAndHeight(component: TBaseComponent, scaleFactor: number): string;
export declare function zIndex({ zIndex }: TBaseComponent): string;
export declare function dropShadow(component: TBaseComponent): string;
export declare function textStrikethrough(value: boolean | undefined): string;
export declare function font({ fontName }: TTextLikeComponent): string;
export declare function applyStyles(component: TBaseComponent, scaleFactor: number, inFocusedState?: boolean): string;
export declare function applyGridStyles(component: TBaseComponent, inFocusedState?: boolean, scaleFactor?: number): string;
export declare function parsePosition(position?: TContainerPosition): string;
export declare function getComponentStyles(prefix: string, component: TSegmentPickerItem): TSegmentPickerItem;
export declare function formatKey(key: string, prefix: string): string;
export declare function applySegmentStyles(styles: any, scaleFactor: number, inFocusedState: boolean): string;
export declare function applySegmentFontStyles(styles: any, scaleFactor: number): string;