@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.
16 lines (11 loc) • 697 B
TypeScript
// Type definitions for @kiwicom/orbit-components
// Project: http://github.com/kiwicom/orbit
import type { Interpolation } from "styled-components";
import { ThemeShape } from "../../defaultTheme";
import { Devices } from "./consts";
type QueryFunction = (style: Interpolation<any>) => Interpolation<any>;
declare const MediaQuery: Record<Devices, QueryFunction>;
declare function getBreakpointWidth(name: Devices, theme: ThemeShape): string;
declare function getBreakpointWidth(name: Devices, theme: ThemeShape, pure: false): string;
declare function getBreakpointWidth(name: Devices, theme: ThemeShape, pure: true): number;
export { MediaQuery, MediaQuery as default, getBreakpointWidth };