@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 (19 loc) • 649 B
TypeScript
// Type definitions for @kiwicom/orbit-components
// Project: http://github.com/kiwicom/orbit
import type { Interpolation } from "styled-components";
import type { TOKEN } from ".";
export type Devices =
| "largeDesktop"
| "desktop"
| "tablet"
| "largeMobile"
| "mediumMobile"
| "smallMobile";
export type BreakpointToken =
| "widthBreakpointMediumMobile"
| "widthBreakpointLargeMobile"
| "widthBreakpointTablet"
| "widthBreakpointDesktop"
| "widthBreakpointLargeDesktop";
export type QueryFunction = (style: Interpolation<any>) => Interpolation<any>;
export type MediaQueries = Record<keyof typeof TOKEN, QueryFunction>;