UNPKG

2.58 kBTypeScriptView Raw
1import { PropType, TeleportProps, type ExtractPropTypes } from 'vue';
2import { FloatingBubbleAxis, FloatingBubbleMagnetic, FloatingBubbleOffset } from './types';
3export declare const floatingBubbleProps: {
4 gap: {
5 type: NumberConstructor;
6 default: number;
7 };
8 icon: StringConstructor;
9 axis: {
10 type: PropType<FloatingBubbleAxis>;
11 default: FloatingBubbleAxis;
12 };
13 magnetic: PropType<FloatingBubbleMagnetic>;
14 offset: {
15 type: PropType<FloatingBubbleOffset>;
16 default: () => {
17 x: number;
18 y: number;
19 };
20 };
21 teleport: {
22 type: PropType<TeleportProps["to"]>;
23 default: string;
24 };
25};
26export type FloatingBubbleProps = ExtractPropTypes<typeof floatingBubbleProps>;
27declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
28 gap: {
29 type: NumberConstructor;
30 default: number;
31 };
32 icon: StringConstructor;
33 axis: {
34 type: PropType<FloatingBubbleAxis>;
35 default: FloatingBubbleAxis;
36 };
37 magnetic: PropType<FloatingBubbleMagnetic>;
38 offset: {
39 type: PropType<FloatingBubbleOffset>;
40 default: () => {
41 x: number;
42 y: number;
43 };
44 };
45 teleport: {
46 type: PropType<TeleportProps["to"]>;
47 default: string;
48 };
49}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "update:offset" | "offsetChange")[], "click" | "update:offset" | "offsetChange", import("vue").PublicProps, Readonly<ExtractPropTypes<{
50 gap: {
51 type: NumberConstructor;
52 default: number;
53 };
54 icon: StringConstructor;
55 axis: {
56 type: PropType<FloatingBubbleAxis>;
57 default: FloatingBubbleAxis;
58 };
59 magnetic: PropType<FloatingBubbleMagnetic>;
60 offset: {
61 type: PropType<FloatingBubbleOffset>;
62 default: () => {
63 x: number;
64 y: number;
65 };
66 };
67 teleport: {
68 type: PropType<TeleportProps["to"]>;
69 default: string;
70 };
71}>> & Readonly<{
72 onClick?: ((...args: any[]) => any) | undefined;
73 "onUpdate:offset"?: ((...args: any[]) => any) | undefined;
74 onOffsetChange?: ((...args: any[]) => any) | undefined;
75}>, {
76 offset: FloatingBubbleOffset;
77 teleport: string | import("vue").RendererElement | null | undefined;
78 gap: number;
79 axis: FloatingBubbleAxis;
80}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
81export default _default;
82
\No newline at end of file