@solfacil/girassol
Version:
Girassol design system
58 lines (57 loc) • 1.44 kB
TypeScript
import type { Position } from "./types";
export declare function usePosition(fn: () => ({
position: Position;
offset: number;
})): {
stylePosition: import("vue").ComputedRef<{
left: string;
top: string;
bottom?: undefined;
right?: undefined;
marginRight?: undefined;
marginLeft?: undefined;
} | {
left: string;
bottom: string;
top?: undefined;
right?: undefined;
marginRight?: undefined;
marginLeft?: undefined;
} | {
right: string;
bottom: string;
left?: undefined;
top?: undefined;
marginRight?: undefined;
marginLeft?: undefined;
} | {
top: string;
left: string;
right: string;
marginRight: string;
marginLeft: string;
bottom?: undefined;
} | {
bottom: string;
left: string;
right: string;
marginRight: string;
marginLeft: string;
top?: undefined;
} | {
right: string;
top: string;
left?: undefined;
bottom?: undefined;
marginRight?: undefined;
marginLeft?: undefined;
}>;
};
export declare enum Transition {
'top-left' = "bounce-left",
'top-right' = "bounce-right",
'top-center' = "bounce-down",
'bottom-left' = "bounce-left",
'bottom-center' = "bounce-up",
'bottom-right' = "bounce-right"
}