UNPKG

@kiwicom/orbit-components

Version:

Orbit-components is a React component library which provides developers with the easiest possible way of building Kiwi.com’s products.

25 lines (13 loc) 723 B
// @flow import type { ThemeProps } from "../../defaultTheme"; export type LeftToRight = <T1, T2>(left: T1, right: T2) => (theme: ThemeProps) => T1 | T2; export type RtlSpacing = (value: string) => (theme: ThemeProps) => string; export type BorderRadius = (value: string) => (theme: ThemeProps) => string; export type TextAlign = (value: "left" | "right") => (theme: ThemeProps) => string | LeftToRight; export type Translate3d = (value: string) => (themeProps: ThemeProps) => string; declare export var rtlSpacing: RtlSpacing; declare export var left; declare export var right; declare export var borderRadius: BorderRadius; declare export var textAlign: TextAlign; declare export var translate3d: Translate3d;