UNPKG

@dvcol/neo-svelte

Version:

Neomorphic ui library for svelte 5

60 lines (59 loc) 2.27 kB
import type { UseFloatingOptions } from '@skeletonlabs/floating-ui-svelte'; export type NeoPlacement = NonNullable<UseFloatingOptions['placement']>; export type NeoTooltipPlacement = NeoPlacement | 'auto'; export type NeoDialogPlacement = NeoPlacement | 'center'; export declare const NeoPlacements: { readonly Top: "top"; readonly TopStart: "top-start"; readonly TopEnd: "top-end"; readonly Bottom: "bottom"; readonly BottomStart: "bottom-start"; readonly BottomEnd: "bottom-end"; readonly Left: "left"; readonly LeftStart: "left-start"; readonly LeftEnd: "left-end"; readonly Right: "right"; readonly RightStart: "right-start"; readonly RightEnd: "right-end"; }; export declare const NeoTooltipPlacements: { readonly Auto: "auto"; readonly Top: "top"; readonly TopStart: "top-start"; readonly TopEnd: "top-end"; readonly Bottom: "bottom"; readonly BottomStart: "bottom-start"; readonly BottomEnd: "bottom-end"; readonly Left: "left"; readonly LeftStart: "left-start"; readonly LeftEnd: "left-end"; readonly Right: "right"; readonly RightStart: "right-start"; readonly RightEnd: "right-end"; }; export declare const NeoDialogPlacements: { readonly Center: "center"; readonly Top: "top"; readonly TopStart: "top-start"; readonly TopEnd: "top-end"; readonly Bottom: "bottom"; readonly BottomStart: "bottom-start"; readonly BottomEnd: "bottom-end"; readonly Left: "left"; readonly LeftStart: "left-start"; readonly LeftEnd: "left-end"; readonly Right: "right"; readonly RightStart: "right-start"; readonly RightEnd: "right-end"; }; export declare const NeoNotificationPlacements: { readonly Top: "top"; readonly TopStart: "top-start"; readonly TopEnd: "top-end"; readonly Bottom: "bottom"; readonly BottomStart: "bottom-start"; readonly BottomEnd: "bottom-end"; }; export type NeoNotificationPlacement = (typeof NeoNotificationPlacements)[keyof typeof NeoNotificationPlacements]; export declare function reversePlacement(placement?: NeoTooltipPlacement): NeoTooltipPlacement | undefined; export declare function invertPlacement(placement?: NeoTooltipPlacement): NeoTooltipPlacement | undefined;