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.

29 lines 934 B
import type * as React from "react"; import type defaultTheme from "../defaultTheme"; import type * as Common from "../common/types"; export type Size = "small" | "medium" | "large" | "extraLarge"; export type Color = "primary" | "secondary" | "tertiary" | "info" | "success" | "warning" | "critical"; export type LabelOrHidden = { ariaLabel?: never; ariaHidden: true; } | { ariaLabel: string; ariaHidden?: false; }; interface IconProps extends Common.Globals { readonly size?: Size; readonly color?: Color; readonly className?: string; readonly customColor?: string; readonly reverseOnRtl?: boolean; } export type Props = IconProps & LabelOrHidden; export interface FactoryProps { readonly children: React.ReactNode; readonly viewBox: string; } export type GetSize = (size: Size) => ({ theme }: { theme: typeof defaultTheme; }) => string; export {}; //# sourceMappingURL=types.d.ts.map