@firstnoodle-ui/bui 0.0.46 → 0.0.49

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