@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.
19 lines (18 loc) • 750 B
TypeScript
import type { FlattenSimpleInterpolation } from "styled-components";
import type { Placement } from "@popperjs/core/lib/enums";
import type { Theme } from "../../../defaultTheme";
export declare const resolveColor: ({ error, help, theme, }: {
error?: boolean | undefined;
help?: boolean | undefined;
theme: Theme;
}) => string;
export declare const resolveArrowPlacement: ({ placement, theme, }: {
placement?: Placement | undefined;
theme: Theme;
}) => FlattenSimpleInterpolation | null;
export declare const resolveArrowStyle: ({ placement, theme, error, help, }: {
placement?: Placement | undefined;
theme: Theme;
error?: boolean | undefined;
help?: boolean | undefined;
}) => FlattenSimpleInterpolation | null;