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.

8 lines (7 loc) 422 B
import type { Theme, ThemeProps } from "../defaultTheme"; import type { SpacingToken, Align, Justify } from "./types"; type Prop = "align" | "justify" | "spacing"; export declare const normalizeSpacing: (el: SpacingToken, theme: Theme) => string; type PropObject = Record<Prop, Align | Justify | SpacingToken>; export declare const normalize: (object: PropObject) => ({ theme }: ThemeProps) => string[] | null; export {};