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.

49 lines (43 loc) 1.36 kB
// Type definitions for @kiwicom/orbit-components // Project: http://github.com/kiwicom/orbit import type * as React from "react"; import type { Theme } from "../defaultTheme"; import type * as Common from "../common/types"; export type Direction = "row" | "column" | "row-reverse" | "column-reverse"; export type Align = "start" | "end" | "center" | "stretch" | "baseline"; export type Justify = "start" | "end" | "center" | "between" | "around"; export type Basis = string | ((theme: Theme) => string); export type Spacing = | "none" | "reverse" | "XXXSmall" | "XXSmall" | "XSmall" | "small" | "medium" | "large" | "XLarge" | "XXLarge" | "XXXLarge"; export interface CommonProps extends Common.SpaceAfter { readonly inline?: boolean; readonly direction?: Direction; readonly flex?: boolean; readonly wrap?: boolean; readonly grow?: boolean; readonly shrink?: boolean; readonly basis?: Basis; readonly align?: Align; readonly justify?: Justify; readonly spacing?: Spacing; readonly legacy?: boolean; } export interface Props extends CommonProps, Common.Globals { readonly mediumMobile?: CommonProps; readonly largeMobile?: CommonProps; readonly tablet?: CommonProps; readonly desktop?: CommonProps; readonly as?: string; readonly largeDesktop?: CommonProps; readonly children: React.ReactNode; }