@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.
26 lines • 949 B
TypeScript
import type { Placement as FloatingPlacement, Alignment } from "@floating-ui/react";
export type AutoPlacement = "auto" | "auto-start" | "auto-end";
export type FixedPlacement = FloatingPlacement;
export type Placement = AutoPlacement | FixedPlacement;
export declare enum AUTO_PLACEMENTS {
AUTO = "auto",
AUTO_START = "auto-start",
AUTO_END = "auto-end"
}
export declare enum PLACEMENTS {
TOP = "top",
TOP_START = "top-start",
TOP_END = "top-end",
BOTTOM = "bottom",
BOTTOM_START = "bottom-start",
BOTTOM_END = "bottom-end",
RIGHT = "right",
RIGHT_START = "right-start",
RIGHT_END = "right-end",
LEFT = "left",
LEFT_START = "left-start",
LEFT_END = "left-end"
}
export declare const isFixedPlacement: (placement: string) => placement is FloatingPlacement;
export declare const getAutoAlignment: (placement: AutoPlacement) => Alignment | undefined;
//# sourceMappingURL=placements.d.ts.map