@firstnoodle-ui/bui 0.0.46 → 0.0.50

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,463 @@
1
+ import { Placement } from '../../types/floating-ui';
2
+ import { ConfirmCancelProps } from '../confirm-cancel/types';
3
+ import { nextTick } from 'vue';
4
+ type __VLS_Props = ConfirmCancelProps & {
5
+ title?: string;
6
+ description?: string;
7
+ placement?: Placement;
8
+ tagName?: string;
9
+ };
10
+ declare function __VLS_template(): {
11
+ attrs: Partial<{}>;
12
+ slots: {
13
+ trigger?(_: {
14
+ visible: boolean;
15
+ }): any;
16
+ };
17
+ refs: {
18
+ popperRef: ({
19
+ $: import('vue').ComponentInternalInstance;
20
+ $data: {};
21
+ $props: {
22
+ readonly closeDelay?: number | undefined;
23
+ readonly closeOnClickOutside?: boolean | undefined;
24
+ readonly disabled?: boolean | undefined;
25
+ readonly flipOptions?: Partial<import('@floating-ui/dom').FlipOptions> | undefined;
26
+ readonly limitShiftOptions?: Partial<import('@floating-ui/core').LimitShiftOptions> | undefined;
27
+ readonly offsetOptions?: Partial<import('@floating-ui/dom').OffsetOptions> | undefined;
28
+ readonly shiftOptions?: Partial<import('@floating-ui/dom').ShiftOptions> | undefined;
29
+ readonly openDelay?: number | undefined;
30
+ readonly placement?: Placement | undefined;
31
+ readonly popperWidthClass?: string | undefined;
32
+ readonly rootClass?: string | string[] | undefined;
33
+ readonly sameWidthAsElement?: HTMLElement | undefined;
34
+ readonly sameWidthAsTrigger?: boolean | undefined;
35
+ readonly show?: boolean | undefined;
36
+ readonly teleportTarget?: string | undefined;
37
+ readonly trigger?: import('../types').TPopperTrigger | undefined;
38
+ readonly triggerClass?: string | string[] | undefined;
39
+ readonly onClose?: ((...args: any[]) => any) | undefined;
40
+ readonly onOpen?: ((...args: any[]) => any) | undefined;
41
+ readonly onUpdateClickOutside?: ((...args: any[]) => any) | undefined;
42
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
43
+ $attrs: {
44
+ [x: string]: unknown;
45
+ };
46
+ $refs: {
47
+ [x: string]: unknown;
48
+ } & {
49
+ containerRef: HTMLDivElement;
50
+ triggerRef: HTMLDivElement;
51
+ popperRef: HTMLDivElement;
52
+ };
53
+ $slots: Readonly<{
54
+ [name: string]: import('vue').Slot<any> | undefined;
55
+ }>;
56
+ $root: import('vue').ComponentPublicInstance | null;
57
+ $parent: import('vue').ComponentPublicInstance | null;
58
+ $host: Element | null;
59
+ $emit: ((event: "close", ...args: any[]) => void) & ((event: "open", ...args: any[]) => void) & ((event: "updateClickOutside", ...args: any[]) => void);
60
+ $el: HTMLDivElement;
61
+ $options: import('vue').ComponentOptionsBase<Readonly<{
62
+ closeDelay?: number;
63
+ closeOnClickOutside?: boolean;
64
+ disabled?: boolean;
65
+ flipOptions?: Partial<import('@floating-ui/dom').FlipOptions>;
66
+ limitShiftOptions?: Partial<import('@floating-ui/core').LimitShiftOptions>;
67
+ offsetOptions?: Partial<import('@floating-ui/dom').OffsetOptions>;
68
+ shiftOptions?: Partial<import('@floating-ui/dom').ShiftOptions>;
69
+ openDelay?: number;
70
+ placement?: Placement;
71
+ popperWidthClass?: string;
72
+ rootClass?: string | string[];
73
+ sameWidthAsElement?: HTMLElement;
74
+ sameWidthAsTrigger?: boolean;
75
+ show?: boolean;
76
+ teleportTarget?: string;
77
+ trigger?: import('../types').TPopperTrigger;
78
+ triggerClass?: string | string[];
79
+ }> & Readonly<{
80
+ onClose?: ((...args: any[]) => any) | undefined;
81
+ onOpen?: ((...args: any[]) => any) | undefined;
82
+ onUpdateClickOutside?: ((...args: any[]) => any) | undefined;
83
+ }>, {
84
+ close: () => void;
85
+ containerRef: import('vue').Ref<HTMLDivElement | undefined, HTMLDivElement | undefined>;
86
+ open: () => Promise<void>;
87
+ updateClickOutsideTargets: (targets: HTMLElement[]) => void;
88
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
89
+ close: (...args: any[]) => void;
90
+ open: (...args: any[]) => void;
91
+ updateClickOutside: (...args: any[]) => void;
92
+ }, string, {
93
+ disabled: boolean;
94
+ placement: Placement;
95
+ trigger: import('../types').TPopperTrigger;
96
+ closeDelay: number;
97
+ closeOnClickOutside: boolean;
98
+ flipOptions: Partial<{
99
+ mainAxis?: boolean | undefined;
100
+ crossAxis?: boolean | undefined;
101
+ fallbackPlacements?: Array<Placement> | undefined;
102
+ fallbackStrategy?: "bestFit" | "initialPlacement" | undefined;
103
+ fallbackAxisSideDirection?: "none" | "start" | "end" | undefined;
104
+ flipAlignment?: boolean | undefined;
105
+ rootBoundary?: import('@floating-ui/core').RootBoundary | undefined;
106
+ elementContext?: import('@floating-ui/core').ElementContext | undefined;
107
+ altBoundary?: boolean | undefined;
108
+ padding?: import('@floating-ui/core').Padding | undefined;
109
+ boundary?: import('@floating-ui/dom').Boundary | undefined;
110
+ }>;
111
+ offsetOptions: Partial<import('@floating-ui/dom').OffsetOptions>;
112
+ shiftOptions: Partial<{
113
+ mainAxis?: boolean | undefined;
114
+ crossAxis?: boolean | undefined;
115
+ rootBoundary?: import('@floating-ui/core').RootBoundary | undefined;
116
+ elementContext?: import('@floating-ui/core').ElementContext | undefined;
117
+ altBoundary?: boolean | undefined;
118
+ padding?: import('@floating-ui/core').Padding | undefined;
119
+ limiter?: {
120
+ fn: (state: import('@floating-ui/core').MiddlewareState) => import('@floating-ui/core').Coords;
121
+ options?: any;
122
+ } | undefined;
123
+ boundary?: import('@floating-ui/dom').Boundary | undefined;
124
+ }>;
125
+ openDelay: number;
126
+ rootClass: string | string[];
127
+ sameWidthAsTrigger: boolean;
128
+ show: boolean;
129
+ teleportTarget: string;
130
+ triggerClass: string | string[];
131
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
132
+ beforeCreate?: (() => void) | (() => void)[];
133
+ created?: (() => void) | (() => void)[];
134
+ beforeMount?: (() => void) | (() => void)[];
135
+ mounted?: (() => void) | (() => void)[];
136
+ beforeUpdate?: (() => void) | (() => void)[];
137
+ updated?: (() => void) | (() => void)[];
138
+ activated?: (() => void) | (() => void)[];
139
+ deactivated?: (() => void) | (() => void)[];
140
+ beforeDestroy?: (() => void) | (() => void)[];
141
+ beforeUnmount?: (() => void) | (() => void)[];
142
+ destroyed?: (() => void) | (() => void)[];
143
+ unmounted?: (() => void) | (() => void)[];
144
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
145
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
146
+ errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
147
+ };
148
+ $forceUpdate: () => void;
149
+ $nextTick: typeof nextTick;
150
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
151
+ } & Readonly<{
152
+ disabled: boolean;
153
+ placement: Placement;
154
+ trigger: import('../types').TPopperTrigger;
155
+ closeDelay: number;
156
+ closeOnClickOutside: boolean;
157
+ flipOptions: Partial<{
158
+ mainAxis?: boolean | undefined;
159
+ crossAxis?: boolean | undefined;
160
+ fallbackPlacements?: Array<Placement> | undefined;
161
+ fallbackStrategy?: "bestFit" | "initialPlacement" | undefined;
162
+ fallbackAxisSideDirection?: "none" | "start" | "end" | undefined;
163
+ flipAlignment?: boolean | undefined;
164
+ rootBoundary?: import('@floating-ui/core').RootBoundary | undefined;
165
+ elementContext?: import('@floating-ui/core').ElementContext | undefined;
166
+ altBoundary?: boolean | undefined;
167
+ padding?: import('@floating-ui/core').Padding | undefined;
168
+ boundary?: import('@floating-ui/dom').Boundary | undefined;
169
+ }>;
170
+ offsetOptions: Partial<import('@floating-ui/dom').OffsetOptions>;
171
+ shiftOptions: Partial<{
172
+ mainAxis?: boolean | undefined;
173
+ crossAxis?: boolean | undefined;
174
+ rootBoundary?: import('@floating-ui/core').RootBoundary | undefined;
175
+ elementContext?: import('@floating-ui/core').ElementContext | undefined;
176
+ altBoundary?: boolean | undefined;
177
+ padding?: import('@floating-ui/core').Padding | undefined;
178
+ limiter?: {
179
+ fn: (state: import('@floating-ui/core').MiddlewareState) => import('@floating-ui/core').Coords;
180
+ options?: any;
181
+ } | undefined;
182
+ boundary?: import('@floating-ui/dom').Boundary | undefined;
183
+ }>;
184
+ openDelay: number;
185
+ rootClass: string | string[];
186
+ sameWidthAsTrigger: boolean;
187
+ show: boolean;
188
+ teleportTarget: string;
189
+ triggerClass: string | string[];
190
+ }> & Omit<Readonly<{
191
+ closeDelay?: number;
192
+ closeOnClickOutside?: boolean;
193
+ disabled?: boolean;
194
+ flipOptions?: Partial<import('@floating-ui/dom').FlipOptions>;
195
+ limitShiftOptions?: Partial<import('@floating-ui/core').LimitShiftOptions>;
196
+ offsetOptions?: Partial<import('@floating-ui/dom').OffsetOptions>;
197
+ shiftOptions?: Partial<import('@floating-ui/dom').ShiftOptions>;
198
+ openDelay?: number;
199
+ placement?: Placement;
200
+ popperWidthClass?: string;
201
+ rootClass?: string | string[];
202
+ sameWidthAsElement?: HTMLElement;
203
+ sameWidthAsTrigger?: boolean;
204
+ show?: boolean;
205
+ teleportTarget?: string;
206
+ trigger?: import('../types').TPopperTrigger;
207
+ triggerClass?: string | string[];
208
+ }> & Readonly<{
209
+ onClose?: ((...args: any[]) => any) | undefined;
210
+ onOpen?: ((...args: any[]) => any) | undefined;
211
+ onUpdateClickOutside?: ((...args: any[]) => any) | undefined;
212
+ }>, "close" | "open" | "containerRef" | "updateClickOutsideTargets" | ("disabled" | "placement" | "trigger" | "closeDelay" | "closeOnClickOutside" | "flipOptions" | "offsetOptions" | "shiftOptions" | "openDelay" | "rootClass" | "sameWidthAsTrigger" | "show" | "teleportTarget" | "triggerClass")> & import('vue').ShallowUnwrapRef<{
213
+ close: () => void;
214
+ containerRef: import('vue').Ref<HTMLDivElement | undefined, HTMLDivElement | undefined>;
215
+ open: () => Promise<void>;
216
+ updateClickOutsideTargets: (targets: HTMLElement[]) => void;
217
+ }> & {} & import('vue').ComponentCustomProperties & {} & {
218
+ $slots: {
219
+ default?(_: {
220
+ visible: boolean;
221
+ }): any;
222
+ content?(_: {
223
+ close: () => void;
224
+ isOpen: true;
225
+ }): any;
226
+ };
227
+ }) | null;
228
+ contentRef: HTMLDivElement;
229
+ };
230
+ rootEl: HTMLDivElement;
231
+ };
232
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
233
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
234
+ close: (...args: any[]) => void;
235
+ cancel: (...args: any[]) => void;
236
+ confirm: (...args: any[]) => void;
237
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
238
+ onClose?: ((...args: any[]) => any) | undefined;
239
+ onCancel?: ((...args: any[]) => any) | undefined;
240
+ onConfirm?: ((...args: any[]) => any) | undefined;
241
+ }>, {
242
+ placement: Placement;
243
+ tagName: string;
244
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
245
+ popperRef: ({
246
+ $: import('vue').ComponentInternalInstance;
247
+ $data: {};
248
+ $props: {
249
+ readonly closeDelay?: number | undefined;
250
+ readonly closeOnClickOutside?: boolean | undefined;
251
+ readonly disabled?: boolean | undefined;
252
+ readonly flipOptions?: Partial<import('@floating-ui/dom').FlipOptions> | undefined;
253
+ readonly limitShiftOptions?: Partial<import('@floating-ui/core').LimitShiftOptions> | undefined;
254
+ readonly offsetOptions?: Partial<import('@floating-ui/dom').OffsetOptions> | undefined;
255
+ readonly shiftOptions?: Partial<import('@floating-ui/dom').ShiftOptions> | undefined;
256
+ readonly openDelay?: number | undefined;
257
+ readonly placement?: Placement | undefined;
258
+ readonly popperWidthClass?: string | undefined;
259
+ readonly rootClass?: string | string[] | undefined;
260
+ readonly sameWidthAsElement?: HTMLElement | undefined;
261
+ readonly sameWidthAsTrigger?: boolean | undefined;
262
+ readonly show?: boolean | undefined;
263
+ readonly teleportTarget?: string | undefined;
264
+ readonly trigger?: import('../types').TPopperTrigger | undefined;
265
+ readonly triggerClass?: string | string[] | undefined;
266
+ readonly onClose?: ((...args: any[]) => any) | undefined;
267
+ readonly onOpen?: ((...args: any[]) => any) | undefined;
268
+ readonly onUpdateClickOutside?: ((...args: any[]) => any) | undefined;
269
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
270
+ $attrs: {
271
+ [x: string]: unknown;
272
+ };
273
+ $refs: {
274
+ [x: string]: unknown;
275
+ } & {
276
+ containerRef: HTMLDivElement;
277
+ triggerRef: HTMLDivElement;
278
+ popperRef: HTMLDivElement;
279
+ };
280
+ $slots: Readonly<{
281
+ [name: string]: import('vue').Slot<any> | undefined;
282
+ }>;
283
+ $root: import('vue').ComponentPublicInstance | null;
284
+ $parent: import('vue').ComponentPublicInstance | null;
285
+ $host: Element | null;
286
+ $emit: ((event: "close", ...args: any[]) => void) & ((event: "open", ...args: any[]) => void) & ((event: "updateClickOutside", ...args: any[]) => void);
287
+ $el: HTMLDivElement;
288
+ $options: import('vue').ComponentOptionsBase<Readonly<{
289
+ closeDelay?: number;
290
+ closeOnClickOutside?: boolean;
291
+ disabled?: boolean;
292
+ flipOptions?: Partial<import('@floating-ui/dom').FlipOptions>;
293
+ limitShiftOptions?: Partial<import('@floating-ui/core').LimitShiftOptions>;
294
+ offsetOptions?: Partial<import('@floating-ui/dom').OffsetOptions>;
295
+ shiftOptions?: Partial<import('@floating-ui/dom').ShiftOptions>;
296
+ openDelay?: number;
297
+ placement?: Placement;
298
+ popperWidthClass?: string;
299
+ rootClass?: string | string[];
300
+ sameWidthAsElement?: HTMLElement;
301
+ sameWidthAsTrigger?: boolean;
302
+ show?: boolean;
303
+ teleportTarget?: string;
304
+ trigger?: import('../types').TPopperTrigger;
305
+ triggerClass?: string | string[];
306
+ }> & Readonly<{
307
+ onClose?: ((...args: any[]) => any) | undefined;
308
+ onOpen?: ((...args: any[]) => any) | undefined;
309
+ onUpdateClickOutside?: ((...args: any[]) => any) | undefined;
310
+ }>, {
311
+ close: () => void;
312
+ containerRef: import('vue').Ref<HTMLDivElement | undefined, HTMLDivElement | undefined>;
313
+ open: () => Promise<void>;
314
+ updateClickOutsideTargets: (targets: HTMLElement[]) => void;
315
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
316
+ close: (...args: any[]) => void;
317
+ open: (...args: any[]) => void;
318
+ updateClickOutside: (...args: any[]) => void;
319
+ }, string, {
320
+ disabled: boolean;
321
+ placement: Placement;
322
+ trigger: import('../types').TPopperTrigger;
323
+ closeDelay: number;
324
+ closeOnClickOutside: boolean;
325
+ flipOptions: Partial<{
326
+ mainAxis?: boolean | undefined;
327
+ crossAxis?: boolean | undefined;
328
+ fallbackPlacements?: Array<Placement> | undefined;
329
+ fallbackStrategy?: "bestFit" | "initialPlacement" | undefined;
330
+ fallbackAxisSideDirection?: "none" | "start" | "end" | undefined;
331
+ flipAlignment?: boolean | undefined;
332
+ rootBoundary?: import('@floating-ui/core').RootBoundary | undefined;
333
+ elementContext?: import('@floating-ui/core').ElementContext | undefined;
334
+ altBoundary?: boolean | undefined;
335
+ padding?: import('@floating-ui/core').Padding | undefined;
336
+ boundary?: import('@floating-ui/dom').Boundary | undefined;
337
+ }>;
338
+ offsetOptions: Partial<import('@floating-ui/dom').OffsetOptions>;
339
+ shiftOptions: Partial<{
340
+ mainAxis?: boolean | undefined;
341
+ crossAxis?: boolean | undefined;
342
+ rootBoundary?: import('@floating-ui/core').RootBoundary | undefined;
343
+ elementContext?: import('@floating-ui/core').ElementContext | undefined;
344
+ altBoundary?: boolean | undefined;
345
+ padding?: import('@floating-ui/core').Padding | undefined;
346
+ limiter?: {
347
+ fn: (state: import('@floating-ui/core').MiddlewareState) => import('@floating-ui/core').Coords;
348
+ options?: any;
349
+ } | undefined;
350
+ boundary?: import('@floating-ui/dom').Boundary | undefined;
351
+ }>;
352
+ openDelay: number;
353
+ rootClass: string | string[];
354
+ sameWidthAsTrigger: boolean;
355
+ show: boolean;
356
+ teleportTarget: string;
357
+ triggerClass: string | string[];
358
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
359
+ beforeCreate?: (() => void) | (() => void)[];
360
+ created?: (() => void) | (() => void)[];
361
+ beforeMount?: (() => void) | (() => void)[];
362
+ mounted?: (() => void) | (() => void)[];
363
+ beforeUpdate?: (() => void) | (() => void)[];
364
+ updated?: (() => void) | (() => void)[];
365
+ activated?: (() => void) | (() => void)[];
366
+ deactivated?: (() => void) | (() => void)[];
367
+ beforeDestroy?: (() => void) | (() => void)[];
368
+ beforeUnmount?: (() => void) | (() => void)[];
369
+ destroyed?: (() => void) | (() => void)[];
370
+ unmounted?: (() => void) | (() => void)[];
371
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
372
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
373
+ errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
374
+ };
375
+ $forceUpdate: () => void;
376
+ $nextTick: typeof nextTick;
377
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
378
+ } & Readonly<{
379
+ disabled: boolean;
380
+ placement: Placement;
381
+ trigger: import('../types').TPopperTrigger;
382
+ closeDelay: number;
383
+ closeOnClickOutside: boolean;
384
+ flipOptions: Partial<{
385
+ mainAxis?: boolean | undefined;
386
+ crossAxis?: boolean | undefined;
387
+ fallbackPlacements?: Array<Placement> | undefined;
388
+ fallbackStrategy?: "bestFit" | "initialPlacement" | undefined;
389
+ fallbackAxisSideDirection?: "none" | "start" | "end" | undefined;
390
+ flipAlignment?: boolean | undefined;
391
+ rootBoundary?: import('@floating-ui/core').RootBoundary | undefined;
392
+ elementContext?: import('@floating-ui/core').ElementContext | undefined;
393
+ altBoundary?: boolean | undefined;
394
+ padding?: import('@floating-ui/core').Padding | undefined;
395
+ boundary?: import('@floating-ui/dom').Boundary | undefined;
396
+ }>;
397
+ offsetOptions: Partial<import('@floating-ui/dom').OffsetOptions>;
398
+ shiftOptions: Partial<{
399
+ mainAxis?: boolean | undefined;
400
+ crossAxis?: boolean | undefined;
401
+ rootBoundary?: import('@floating-ui/core').RootBoundary | undefined;
402
+ elementContext?: import('@floating-ui/core').ElementContext | undefined;
403
+ altBoundary?: boolean | undefined;
404
+ padding?: import('@floating-ui/core').Padding | undefined;
405
+ limiter?: {
406
+ fn: (state: import('@floating-ui/core').MiddlewareState) => import('@floating-ui/core').Coords;
407
+ options?: any;
408
+ } | undefined;
409
+ boundary?: import('@floating-ui/dom').Boundary | undefined;
410
+ }>;
411
+ openDelay: number;
412
+ rootClass: string | string[];
413
+ sameWidthAsTrigger: boolean;
414
+ show: boolean;
415
+ teleportTarget: string;
416
+ triggerClass: string | string[];
417
+ }> & Omit<Readonly<{
418
+ closeDelay?: number;
419
+ closeOnClickOutside?: boolean;
420
+ disabled?: boolean;
421
+ flipOptions?: Partial<import('@floating-ui/dom').FlipOptions>;
422
+ limitShiftOptions?: Partial<import('@floating-ui/core').LimitShiftOptions>;
423
+ offsetOptions?: Partial<import('@floating-ui/dom').OffsetOptions>;
424
+ shiftOptions?: Partial<import('@floating-ui/dom').ShiftOptions>;
425
+ openDelay?: number;
426
+ placement?: Placement;
427
+ popperWidthClass?: string;
428
+ rootClass?: string | string[];
429
+ sameWidthAsElement?: HTMLElement;
430
+ sameWidthAsTrigger?: boolean;
431
+ show?: boolean;
432
+ teleportTarget?: string;
433
+ trigger?: import('../types').TPopperTrigger;
434
+ triggerClass?: string | string[];
435
+ }> & Readonly<{
436
+ onClose?: ((...args: any[]) => any) | undefined;
437
+ onOpen?: ((...args: any[]) => any) | undefined;
438
+ onUpdateClickOutside?: ((...args: any[]) => any) | undefined;
439
+ }>, "close" | "open" | "containerRef" | "updateClickOutsideTargets" | ("disabled" | "placement" | "trigger" | "closeDelay" | "closeOnClickOutside" | "flipOptions" | "offsetOptions" | "shiftOptions" | "openDelay" | "rootClass" | "sameWidthAsTrigger" | "show" | "teleportTarget" | "triggerClass")> & import('vue').ShallowUnwrapRef<{
440
+ close: () => void;
441
+ containerRef: import('vue').Ref<HTMLDivElement | undefined, HTMLDivElement | undefined>;
442
+ open: () => Promise<void>;
443
+ updateClickOutsideTargets: (targets: HTMLElement[]) => void;
444
+ }> & {} & import('vue').ComponentCustomProperties & {} & {
445
+ $slots: {
446
+ default?(_: {
447
+ visible: boolean;
448
+ }): any;
449
+ content?(_: {
450
+ close: () => void;
451
+ isOpen: true;
452
+ }): any;
453
+ };
454
+ }) | null;
455
+ contentRef: HTMLDivElement;
456
+ }, HTMLDivElement>;
457
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
458
+ export default _default;
459
+ type __VLS_WithTemplateSlots<T, S> = T & {
460
+ new (): {
461
+ $slots: S;
462
+ };
463
+ };
@@ -1,4 +1,4 @@
1
- import { Placement } from '@floating-ui/dom';
1
+ import { Placement } from '../../types/floating-ui';
2
2
  import { TIcon, TPopSelectOption, TPopSelectResultFilter } from '../types';
3
3
  declare const _default: <T extends TPopSelectOption>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
4
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
@@ -0,0 +1,104 @@
1
+ import { FlipOptions, LimitShiftOptions, OffsetOptions, Placement, ShiftOptions } from '../../types/floating-ui';
2
+ import { TPopperTrigger } from '../types';
3
+ type __VLS_Props = {
4
+ closeDelay?: number;
5
+ closeOnClickOutside?: boolean;
6
+ disabled?: boolean;
7
+ flipOptions?: Partial<FlipOptions>;
8
+ limitShiftOptions?: Partial<LimitShiftOptions>;
9
+ offsetOptions?: Partial<OffsetOptions>;
10
+ shiftOptions?: Partial<ShiftOptions>;
11
+ openDelay?: number;
12
+ placement?: Placement;
13
+ popperWidthClass?: string;
14
+ rootClass?: string | string[];
15
+ sameWidthAsElement?: HTMLElement;
16
+ sameWidthAsTrigger?: boolean;
17
+ show?: boolean;
18
+ teleportTarget?: string;
19
+ trigger?: TPopperTrigger;
20
+ triggerClass?: string | string[];
21
+ };
22
+ declare function __VLS_template(): {
23
+ attrs: Partial<{}>;
24
+ slots: {
25
+ default?(_: {
26
+ visible: boolean;
27
+ }): any;
28
+ content?(_: {
29
+ close: () => void;
30
+ isOpen: true;
31
+ }): any;
32
+ };
33
+ refs: {
34
+ containerRef: HTMLDivElement;
35
+ triggerRef: HTMLDivElement;
36
+ popperRef: HTMLDivElement;
37
+ };
38
+ rootEl: HTMLDivElement;
39
+ };
40
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
41
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
42
+ close: () => void;
43
+ containerRef: import('vue').Ref<HTMLDivElement | undefined, HTMLDivElement | undefined>;
44
+ open: () => Promise<void>;
45
+ updateClickOutsideTargets: (targets: HTMLElement[]) => void;
46
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
47
+ close: (...args: any[]) => void;
48
+ open: (...args: any[]) => void;
49
+ updateClickOutside: (...args: any[]) => void;
50
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
51
+ onClose?: ((...args: any[]) => any) | undefined;
52
+ onOpen?: ((...args: any[]) => any) | undefined;
53
+ onUpdateClickOutside?: ((...args: any[]) => any) | undefined;
54
+ }>, {
55
+ disabled: boolean;
56
+ placement: Placement;
57
+ trigger: TPopperTrigger;
58
+ closeDelay: number;
59
+ closeOnClickOutside: boolean;
60
+ flipOptions: Partial<{
61
+ mainAxis?: boolean | undefined;
62
+ crossAxis?: boolean | undefined;
63
+ fallbackPlacements?: Array<Placement> | undefined;
64
+ fallbackStrategy?: "bestFit" | "initialPlacement" | undefined;
65
+ fallbackAxisSideDirection?: "none" | "start" | "end" | undefined;
66
+ flipAlignment?: boolean | undefined;
67
+ rootBoundary?: import('@floating-ui/core').RootBoundary | undefined;
68
+ elementContext?: import('@floating-ui/core').ElementContext | undefined;
69
+ altBoundary?: boolean | undefined;
70
+ padding?: import('@floating-ui/core').Padding | undefined;
71
+ boundary?: import('@floating-ui/dom').Boundary | undefined;
72
+ }>;
73
+ offsetOptions: Partial<OffsetOptions>;
74
+ shiftOptions: Partial<{
75
+ mainAxis?: boolean | undefined;
76
+ crossAxis?: boolean | undefined;
77
+ rootBoundary?: import('@floating-ui/core').RootBoundary | undefined;
78
+ elementContext?: import('@floating-ui/core').ElementContext | undefined;
79
+ altBoundary?: boolean | undefined;
80
+ padding?: import('@floating-ui/core').Padding | undefined;
81
+ limiter?: {
82
+ fn: (state: import('@floating-ui/core').MiddlewareState) => import('@floating-ui/core').Coords;
83
+ options?: any;
84
+ } | undefined;
85
+ boundary?: import('@floating-ui/dom').Boundary | undefined;
86
+ }>;
87
+ openDelay: number;
88
+ rootClass: string | string[];
89
+ sameWidthAsTrigger: boolean;
90
+ show: boolean;
91
+ teleportTarget: string;
92
+ triggerClass: string | string[];
93
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
94
+ containerRef: HTMLDivElement;
95
+ triggerRef: HTMLDivElement;
96
+ popperRef: HTMLDivElement;
97
+ }, HTMLDivElement>;
98
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
99
+ export default _default;
100
+ type __VLS_WithTemplateSlots<T, S> = T & {
101
+ new (): {
102
+ $slots: S;
103
+ };
104
+ };
@@ -1,10 +1,10 @@
1
1
  export declare const sameWidthAsTriggerMiddleware: {
2
2
  options?: any;
3
3
  name: string;
4
- fn: (state: import('@floating-ui/dom').MiddlewareState) => import('@floating-ui/dom').MiddlewareReturn | Promise<import('@floating-ui/dom').MiddlewareReturn>;
4
+ fn: (state: import('@floating-ui/dom').MiddlewareState) => import('@floating-ui/core').MiddlewareReturn | Promise<import('@floating-ui/core').MiddlewareReturn>;
5
5
  };
6
6
  export declare const sameWidthAsElementMiddleware: (element: HTMLElement) => {
7
7
  options?: any;
8
8
  name: string;
9
- fn: (state: import('@floating-ui/dom').MiddlewareState) => import('@floating-ui/dom').MiddlewareReturn | Promise<import('@floating-ui/dom').MiddlewareReturn>;
9
+ fn: (state: import('@floating-ui/dom').MiddlewareState) => import('@floating-ui/core').MiddlewareReturn | Promise<import('@floating-ui/core').MiddlewareReturn>;
10
10
  };
@@ -1,4 +1,4 @@
1
- import { Placement } from '@floating-ui/dom';
1
+ import { Placement } from '../../types/floating-ui';
2
2
  import { TIcon } from '../types';
3
3
  type __VLS_Props = {
4
4
  active: boolean;
@@ -1,4 +1,4 @@
1
- import { Placement } from '@floating-ui/dom';
1
+ import { Placement } from '../../types/floating-ui';
2
2
  import { TPopperTrigger } from '../types';
3
3
  type __VLS_Props = {
4
4
  bgColorClass?: string;
package/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  export * from './components';
2
2
  export * from './composables';
3
+ export * from './types/floating-ui';
3
4
  export * from './utils';