UNPKG

@namiml/web-sdk

Version:

Nami Web SDK makes subscriptions & in-app purchases easy, with powerful built-in paywalls and A/B testing

36 lines (35 loc) 3.07 kB
import type { TCarouselContainer } from "../../types/components/containers"; import { TComponent, type TBaseComponent, type TContainerPosition } from "../../types/components"; import type { TSegmentPicker, 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 applySegmentAbsoluteStyles(component: TSegmentPicker, 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(dropShadow?: string): 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: TComponent): TComponent; 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;