@histoire/vendors 1.0.0-alpha.5 → 1.0.0-beta.1

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.
Files changed (95) hide show
  1. package/dist/client/b-floating-vue.js +29 -20
  2. package/dist/client/b-vue-router.js +2615 -3624
  3. package/dist/client/b-vue-use.js +87 -77
  4. package/dist/client/b-vue.js +1 -1
  5. package/dist/client/node_modules/@floating-ui/core/dist/floating-ui.core.d.mts +528 -0
  6. package/dist/client/node_modules/@floating-ui/utils/dist/floating-ui.utils.d.mts +103 -0
  7. package/dist/client/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.d.mts +47 -0
  8. package/dist/client/node_modules/@jridgewell/sourcemap-codec/types/scopes.d.mts +50 -0
  9. package/dist/client/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.mts +9 -0
  10. package/dist/client/node_modules/@jridgewell/sourcemap-codec/types/strings.d.mts +16 -0
  11. package/dist/client/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.mts +7 -0
  12. package/dist/client/node_modules/@types/web-bluetooth/index.d.ts +93 -21
  13. package/dist/client/node_modules/@types/web-bluetooth/package.json +9 -3
  14. package/dist/client/node_modules/@vue/compiler-core/dist/compiler-core.d.ts +20 -11
  15. package/dist/client/node_modules/@vue/compiler-core/package.json +6 -6
  16. package/dist/client/node_modules/@vue/compiler-dom/dist/compiler-dom.d.ts +12 -12
  17. package/dist/client/node_modules/@vue/compiler-dom/package.json +3 -3
  18. package/dist/client/node_modules/@vue/compiler-sfc/dist/compiler-sfc.d.ts +3 -2
  19. package/dist/client/node_modules/@vue/compiler-sfc/package.json +14 -14
  20. package/dist/client/node_modules/@vue/compiler-ssr/package.json +3 -3
  21. package/dist/client/node_modules/@vue/reactivity/dist/reactivity.d.ts +24 -25
  22. package/dist/client/node_modules/@vue/reactivity/package.json +2 -2
  23. package/dist/client/node_modules/@vue/runtime-core/dist/runtime-core.d.ts +48 -41
  24. package/dist/client/node_modules/@vue/runtime-core/package.json +3 -3
  25. package/dist/client/node_modules/@vue/runtime-dom/dist/runtime-dom.d.ts +680 -645
  26. package/dist/client/node_modules/@vue/runtime-dom/package.json +5 -5
  27. package/dist/client/node_modules/@vue/server-renderer/package.json +4 -4
  28. package/dist/client/node_modules/@vue/shared/dist/shared.d.ts +7 -1
  29. package/dist/client/node_modules/@vue/shared/package.json +1 -1
  30. package/dist/client/node_modules/@vueuse/core/index.d.mts +6221 -0
  31. package/dist/client/node_modules/@vueuse/core/index.d.ts +131 -103
  32. package/dist/client/node_modules/@vueuse/core/metadata.d.mts +1 -0
  33. package/dist/client/node_modules/@vueuse/core/package.json +4 -4
  34. package/dist/client/node_modules/@vueuse/metadata/index.d.mts +78 -0
  35. package/dist/client/node_modules/@vueuse/metadata/package.json +1 -1
  36. package/dist/client/node_modules/@vueuse/shared/index.d.mts +1260 -0
  37. package/dist/client/node_modules/@vueuse/shared/index.d.ts +30 -13
  38. package/dist/client/node_modules/@vueuse/shared/package.json +1 -1
  39. package/dist/client/node_modules/entities/decode.d.ts +3 -0
  40. package/dist/client/node_modules/entities/{lib/esm/decode_codepoint.d.ts → dist/commonjs/decode-codepoint.d.ts} +2 -2
  41. package/dist/client/node_modules/entities/{lib → dist/commonjs}/decode.d.ts +18 -26
  42. package/dist/client/node_modules/entities/{lib/esm → dist/commonjs}/encode.d.ts +2 -2
  43. package/dist/client/node_modules/entities/{lib/esm → dist/commonjs}/escape.d.ts +9 -6
  44. package/dist/client/node_modules/entities/dist/commonjs/generated/decode-data-html.d.ts +2 -0
  45. package/dist/client/node_modules/entities/dist/commonjs/generated/decode-data-xml.d.ts +2 -0
  46. package/dist/client/node_modules/entities/dist/commonjs/generated/encode-html.d.ts +3 -0
  47. package/dist/client/node_modules/entities/{lib/esm → dist/commonjs}/index.d.ts +9 -9
  48. package/dist/client/node_modules/entities/dist/commonjs/internal/bin-trie-flags.d.ts +17 -0
  49. package/dist/client/node_modules/entities/dist/commonjs/internal/decode-shared.d.ts +2 -0
  50. package/dist/client/node_modules/entities/dist/commonjs/internal/encode-shared.d.ts +32 -0
  51. package/dist/client/node_modules/entities/dist/commonjs/package.json +3 -0
  52. package/dist/client/node_modules/entities/{lib/decode_codepoint.d.ts → dist/esm/decode-codepoint.d.ts} +2 -2
  53. package/dist/client/node_modules/entities/{lib → dist}/esm/decode.d.ts +18 -26
  54. package/dist/client/node_modules/entities/{lib → dist/esm}/encode.d.ts +2 -2
  55. package/dist/client/node_modules/entities/{lib → dist/esm}/escape.d.ts +9 -6
  56. package/dist/client/node_modules/entities/dist/esm/generated/decode-data-html.d.ts +2 -0
  57. package/dist/client/node_modules/entities/dist/esm/generated/decode-data-xml.d.ts +2 -0
  58. package/dist/client/node_modules/entities/dist/esm/generated/encode-html.d.ts +3 -0
  59. package/dist/client/node_modules/entities/{lib → dist/esm}/index.d.ts +9 -9
  60. package/dist/client/node_modules/entities/dist/esm/internal/bin-trie-flags.d.ts +17 -0
  61. package/dist/client/node_modules/entities/dist/esm/internal/decode-shared.d.ts +2 -0
  62. package/dist/client/node_modules/entities/dist/esm/internal/encode-shared.d.ts +32 -0
  63. package/dist/client/node_modules/entities/dist/esm/package.json +3 -0
  64. package/dist/client/node_modules/entities/escape.d.ts +3 -0
  65. package/dist/client/node_modules/entities/package.json +92 -69
  66. package/dist/client/node_modules/magic-string/dist/magic-string.es.d.mts +289 -0
  67. package/dist/client/node_modules/postcss/lib/postcss.d.mts +69 -0
  68. package/dist/client/node_modules/vue/compiler-sfc/index.d.mts +1 -0
  69. package/dist/client/node_modules/vue/dist/vue.d.mts +7 -0
  70. package/dist/client/node_modules/vue/jsx-runtime/index.d.ts +2 -2
  71. package/dist/client/node_modules/vue/jsx.d.ts +1 -1
  72. package/dist/client/node_modules/vue/package.json +6 -6
  73. package/dist/client/node_modules/vue/server-renderer/index.d.mts +1 -0
  74. package/dist/client/node_modules/vue-router/dist/experimental/index.d.mts +38 -0
  75. package/dist/client/node_modules/vue-router/dist/router-CWoNjPRp.d.mts +1973 -0
  76. package/dist/client/node_modules/vue-router/dist/vue-router.d.mts +361 -0
  77. package/dist/client/node_modules/vue-router/package.json +43 -39
  78. package/dist/client/node_modules/vue-router/vue-router-auto-resolver.d.mts +22 -0
  79. package/dist/client/node_modules/vue-router/vue-router-auto.d.ts +1 -4
  80. package/dist/client/vue.runtime.esm-bundler.js +2987 -2699
  81. package/package.json +2 -2
  82. package/rollup.config.mjs +1 -1
  83. package/dist/client/node_modules/entities/lib/esm/generated/decode-data-html.d.ts +0 -3
  84. package/dist/client/node_modules/entities/lib/esm/generated/decode-data-xml.d.ts +0 -3
  85. package/dist/client/node_modules/entities/lib/esm/generated/encode-html.d.ts +0 -8
  86. package/dist/client/node_modules/entities/lib/esm/package.json +0 -1
  87. package/dist/client/node_modules/entities/lib/generated/decode-data-html.d.ts +0 -3
  88. package/dist/client/node_modules/entities/lib/generated/decode-data-xml.d.ts +0 -3
  89. package/dist/client/node_modules/entities/lib/generated/encode-html.d.ts +0 -8
  90. package/dist/client/node_modules/vue-router/dist/vue-router.d.ts +0 -1836
  91. /package/dist/client/node_modules/{pinia/node_modules/vue-demi → vue-demi}/lib/index.d.ts +0 -0
  92. /package/dist/client/node_modules/{pinia/node_modules/vue-demi → vue-demi}/lib/v2/index.d.ts +0 -0
  93. /package/dist/client/node_modules/{pinia/node_modules/vue-demi → vue-demi}/lib/v2.7/index.d.ts +0 -0
  94. /package/dist/client/node_modules/{pinia/node_modules/vue-demi → vue-demi}/lib/v3/index.d.ts +0 -0
  95. /package/dist/client/node_modules/{pinia/node_modules/vue-demi → vue-demi}/package.json +0 -0
@@ -0,0 +1,528 @@
1
+ import { AlignedPlacement } from '@floating-ui/utils';
2
+ import { Alignment } from '@floating-ui/utils';
3
+ import { Axis } from '@floating-ui/utils';
4
+ import { ClientRectObject } from '@floating-ui/utils';
5
+ import { Coords } from '@floating-ui/utils';
6
+ import { Dimensions } from '@floating-ui/utils';
7
+ import { ElementRects } from '@floating-ui/utils';
8
+ import { Length } from '@floating-ui/utils';
9
+ import { Padding } from '@floating-ui/utils';
10
+ import { Placement } from '@floating-ui/utils';
11
+ import { Rect } from '@floating-ui/utils';
12
+ import { rectToClientRect } from '@floating-ui/utils';
13
+ import { Side } from '@floating-ui/utils';
14
+ import { SideObject } from '@floating-ui/utils';
15
+ import { Strategy } from '@floating-ui/utils';
16
+ import { VirtualElement } from '@floating-ui/utils';
17
+
18
+ export { AlignedPlacement }
19
+
20
+ export { Alignment }
21
+
22
+ /**
23
+ * Provides data to position an inner element of the floating element so that it
24
+ * appears centered to the reference element.
25
+ * @see https://floating-ui.com/docs/arrow
26
+ */
27
+ export declare const arrow: (options: ArrowOptions | Derivable<ArrowOptions>) => Middleware;
28
+
29
+ export declare interface ArrowOptions {
30
+ /**
31
+ * The arrow element to be positioned.
32
+ * @default undefined
33
+ */
34
+ element: any;
35
+ /**
36
+ * The padding between the arrow element and the floating element edges.
37
+ * Useful when the floating element has rounded corners.
38
+ * @default 0
39
+ */
40
+ padding?: Padding;
41
+ }
42
+
43
+ /**
44
+ * Optimizes the visibility of the floating element by choosing the placement
45
+ * that has the most space available automatically, without needing to specify a
46
+ * preferred placement. Alternative to `flip`.
47
+ * @see https://floating-ui.com/docs/autoPlacement
48
+ */
49
+ export declare const autoPlacement: (options?: AutoPlacementOptions | Derivable<AutoPlacementOptions>) => Middleware;
50
+
51
+ export declare interface AutoPlacementOptions extends DetectOverflowOptions {
52
+ /**
53
+ * The axis that runs along the alignment of the floating element. Determines
54
+ * whether to check for most space along this axis.
55
+ * @default false
56
+ */
57
+ crossAxis?: boolean;
58
+ /**
59
+ * Choose placements with a particular alignment.
60
+ * @default undefined
61
+ */
62
+ alignment?: Alignment | null;
63
+ /**
64
+ * Whether to choose placements with the opposite alignment if the preferred
65
+ * alignment does not fit.
66
+ * @default true
67
+ */
68
+ autoAlignment?: boolean;
69
+ /**
70
+ * Which placements are allowed to be chosen. Placements must be within the
71
+ * `alignment` option if explicitly set.
72
+ * @default allPlacements (variable)
73
+ */
74
+ allowedPlacements?: Array<Placement>;
75
+ }
76
+
77
+ export { Axis }
78
+
79
+ export declare type Boundary = any;
80
+
81
+ export { ClientRectObject }
82
+
83
+ export declare type ComputePosition = (reference: unknown, floating: unknown, config: ComputePositionConfig) => Promise<ComputePositionReturn>;
84
+
85
+ /**
86
+ * Computes the `x` and `y` coordinates that will place the floating element
87
+ * next to a given reference element.
88
+ *
89
+ * This export does not have any `platform` interface logic. You will need to
90
+ * write one for the platform you are using Floating UI with.
91
+ */
92
+ export declare const computePosition: ComputePosition;
93
+
94
+ export declare interface ComputePositionConfig {
95
+ /**
96
+ * Object to interface with the current platform.
97
+ */
98
+ platform: Platform;
99
+ /**
100
+ * Where to place the floating element relative to the reference element.
101
+ */
102
+ placement?: Placement;
103
+ /**
104
+ * The strategy to use when positioning the floating element.
105
+ */
106
+ strategy?: Strategy;
107
+ /**
108
+ * Array of middleware objects to modify the positioning or provide data for
109
+ * rendering.
110
+ */
111
+ middleware?: Array<Middleware | null | undefined | false>;
112
+ }
113
+
114
+ export declare interface ComputePositionReturn extends Coords {
115
+ /**
116
+ * The final chosen placement of the floating element.
117
+ */
118
+ placement: Placement;
119
+ /**
120
+ * The strategy used to position the floating element.
121
+ */
122
+ strategy: Strategy;
123
+ /**
124
+ * Object containing data returned from all middleware, keyed by their name.
125
+ */
126
+ middlewareData: MiddlewareData;
127
+ }
128
+
129
+ export { Coords }
130
+
131
+ /**
132
+ * Function option to derive middleware options from state.
133
+ */
134
+ export declare type Derivable<T> = (state: MiddlewareState) => T;
135
+
136
+ /**
137
+ * Resolves with an object of overflow side offsets that determine how much the
138
+ * element is overflowing a given clipping boundary on each side.
139
+ * - positive = overflowing the boundary by that number of pixels
140
+ * - negative = how many pixels left before it will overflow
141
+ * - 0 = lies flush with the boundary
142
+ * @see https://floating-ui.com/docs/detectOverflow
143
+ */
144
+ export declare function detectOverflow(state: MiddlewareState, options?: DetectOverflowOptions | Derivable<DetectOverflowOptions>): Promise<SideObject>;
145
+
146
+ export declare interface DetectOverflowOptions {
147
+ /**
148
+ * The clipping element(s) or area in which overflow will be checked.
149
+ * @default 'clippingAncestors'
150
+ */
151
+ boundary?: Boundary;
152
+ /**
153
+ * The root clipping area in which overflow will be checked.
154
+ * @default 'viewport'
155
+ */
156
+ rootBoundary?: RootBoundary;
157
+ /**
158
+ * The element in which overflow is being checked relative to a boundary.
159
+ * @default 'floating'
160
+ */
161
+ elementContext?: ElementContext;
162
+ /**
163
+ * Whether to check for overflow using the alternate element's boundary
164
+ * (`clippingAncestors` boundary only).
165
+ * @default false
166
+ */
167
+ altBoundary?: boolean;
168
+ /**
169
+ * Virtual padding for the resolved overflow detection offsets.
170
+ * @default 0
171
+ */
172
+ padding?: Padding;
173
+ }
174
+
175
+ export { Dimensions }
176
+
177
+ export declare type ElementContext = 'reference' | 'floating';
178
+
179
+ export { ElementRects }
180
+
181
+ export declare interface Elements {
182
+ reference: ReferenceElement;
183
+ floating: FloatingElement;
184
+ }
185
+
186
+ /**
187
+ * Optimizes the visibility of the floating element by flipping the `placement`
188
+ * in order to keep it in view when the preferred placement(s) will overflow the
189
+ * clipping boundary. Alternative to `autoPlacement`.
190
+ * @see https://floating-ui.com/docs/flip
191
+ */
192
+ export declare const flip: (options?: FlipOptions | Derivable<FlipOptions>) => Middleware;
193
+
194
+ export declare interface FlipOptions extends DetectOverflowOptions {
195
+ /**
196
+ * The axis that runs along the side of the floating element. Determines
197
+ * whether overflow along this axis is checked to perform a flip.
198
+ * @default true
199
+ */
200
+ mainAxis?: boolean;
201
+ /**
202
+ * The axis that runs along the alignment of the floating element. Determines
203
+ * whether overflow along this axis is checked to perform a flip.
204
+ * - `true`: Whether to check cross axis overflow for both side and alignment flipping.
205
+ * - `false`: Whether to disable all cross axis overflow checking.
206
+ * - `'alignment'`: Whether to check cross axis overflow for alignment flipping only.
207
+ * @default true
208
+ */
209
+ crossAxis?: boolean | 'alignment';
210
+ /**
211
+ * Placements to try sequentially if the preferred `placement` does not fit.
212
+ * @default [oppositePlacement] (computed)
213
+ */
214
+ fallbackPlacements?: Array<Placement>;
215
+ /**
216
+ * What strategy to use when no placements fit.
217
+ * @default 'bestFit'
218
+ */
219
+ fallbackStrategy?: 'bestFit' | 'initialPlacement';
220
+ /**
221
+ * Whether to allow fallback to the perpendicular axis of the preferred
222
+ * placement, and if so, which side direction along the axis to prefer.
223
+ * @default 'none' (disallow fallback)
224
+ */
225
+ fallbackAxisSideDirection?: 'none' | 'start' | 'end';
226
+ /**
227
+ * Whether to flip to placements with the opposite alignment if they fit
228
+ * better.
229
+ * @default true
230
+ */
231
+ flipAlignment?: boolean;
232
+ }
233
+
234
+ export declare type FloatingElement = any;
235
+
236
+ /**
237
+ * Provides data to hide the floating element in applicable situations, such as
238
+ * when it is not in the same clipping context as the reference element.
239
+ * @see https://floating-ui.com/docs/hide
240
+ */
241
+ export declare const hide: (options?: HideOptions | Derivable<HideOptions>) => Middleware;
242
+
243
+ export declare interface HideOptions extends DetectOverflowOptions {
244
+ /**
245
+ * The strategy used to determine when to hide the floating element.
246
+ */
247
+ strategy?: 'referenceHidden' | 'escaped';
248
+ }
249
+
250
+ /**
251
+ * Provides improved positioning for inline reference elements that can span
252
+ * over multiple lines, such as hyperlinks or range selections.
253
+ * @see https://floating-ui.com/docs/inline
254
+ */
255
+ export declare const inline: (options?: InlineOptions | Derivable<InlineOptions>) => Middleware;
256
+
257
+ export declare interface InlineOptions {
258
+ /**
259
+ * Viewport-relative `x` coordinate to choose a `ClientRect`.
260
+ * @default undefined
261
+ */
262
+ x?: number;
263
+ /**
264
+ * Viewport-relative `y` coordinate to choose a `ClientRect`.
265
+ * @default undefined
266
+ */
267
+ y?: number;
268
+ /**
269
+ * Represents the padding around a disjoined rect when choosing it.
270
+ * @default 2
271
+ */
272
+ padding?: Padding;
273
+ }
274
+
275
+ export { Length }
276
+
277
+ /**
278
+ * Built-in `limiter` that will stop `shift()` at a certain point.
279
+ */
280
+ export declare const limitShift: (options?: LimitShiftOptions | Derivable<LimitShiftOptions>) => {
281
+ options: any;
282
+ fn: (state: MiddlewareState) => Coords;
283
+ };
284
+
285
+ declare type LimitShiftOffset = number | {
286
+ /**
287
+ * Offset the limiting of the axis that runs along the alignment of the
288
+ * floating element.
289
+ */
290
+ mainAxis?: number;
291
+ /**
292
+ * Offset the limiting of the axis that runs along the side of the
293
+ * floating element.
294
+ */
295
+ crossAxis?: number;
296
+ };
297
+
298
+ export declare interface LimitShiftOptions {
299
+ /**
300
+ * Offset when limiting starts. `0` will limit when the opposite edges of the
301
+ * reference and floating elements are aligned.
302
+ * - positive = start limiting earlier
303
+ * - negative = start limiting later
304
+ */
305
+ offset?: LimitShiftOffset | Derivable<LimitShiftOffset>;
306
+ /**
307
+ * Whether to limit the axis that runs along the alignment of the floating
308
+ * element.
309
+ */
310
+ mainAxis?: boolean;
311
+ /**
312
+ * Whether to limit the axis that runs along the side of the floating element.
313
+ */
314
+ crossAxis?: boolean;
315
+ }
316
+
317
+ export declare type Middleware = {
318
+ name: string;
319
+ options?: any;
320
+ fn: (state: MiddlewareState) => Promisable<MiddlewareReturn>;
321
+ };
322
+
323
+ /**
324
+ * @deprecated use `MiddlewareState` instead.
325
+ */
326
+ export declare type MiddlewareArguments = MiddlewareState;
327
+
328
+ export declare interface MiddlewareData {
329
+ [key: string]: any;
330
+ arrow?: Partial<Coords> & {
331
+ centerOffset: number;
332
+ alignmentOffset?: number;
333
+ };
334
+ autoPlacement?: {
335
+ index?: number;
336
+ overflows: Array<{
337
+ placement: Placement;
338
+ overflows: Array<number>;
339
+ }>;
340
+ };
341
+ flip?: {
342
+ index?: number;
343
+ overflows: Array<{
344
+ placement: Placement;
345
+ overflows: Array<number>;
346
+ }>;
347
+ };
348
+ hide?: {
349
+ referenceHidden?: boolean;
350
+ escaped?: boolean;
351
+ referenceHiddenOffsets?: SideObject;
352
+ escapedOffsets?: SideObject;
353
+ };
354
+ offset?: Coords & {
355
+ placement: Placement;
356
+ };
357
+ shift?: Coords & {
358
+ enabled: {
359
+ [key in Axis]: boolean;
360
+ };
361
+ };
362
+ }
363
+
364
+ export declare interface MiddlewareReturn extends Partial<Coords> {
365
+ data?: {
366
+ [key: string]: any;
367
+ };
368
+ reset?: boolean | {
369
+ placement?: Placement;
370
+ rects?: boolean | ElementRects;
371
+ };
372
+ }
373
+
374
+ export declare interface MiddlewareState extends Coords {
375
+ initialPlacement: Placement;
376
+ placement: Placement;
377
+ strategy: Strategy;
378
+ middlewareData: MiddlewareData;
379
+ elements: Elements;
380
+ rects: ElementRects;
381
+ platform: Platform;
382
+ }
383
+
384
+ /**
385
+ * Modifies the placement by translating the floating element along the
386
+ * specified axes.
387
+ * A number (shorthand for `mainAxis` or distance), or an axes configuration
388
+ * object may be passed.
389
+ * @see https://floating-ui.com/docs/offset
390
+ */
391
+ export declare const offset: (options?: OffsetOptions) => Middleware;
392
+
393
+ export declare type OffsetOptions = OffsetValue | Derivable<OffsetValue>;
394
+
395
+ declare type OffsetValue = number | {
396
+ /**
397
+ * The axis that runs along the side of the floating element. Represents
398
+ * the distance (gutter or margin) between the reference and floating
399
+ * element.
400
+ * @default 0
401
+ */
402
+ mainAxis?: number;
403
+ /**
404
+ * The axis that runs along the alignment of the floating element.
405
+ * Represents the skidding between the reference and floating element.
406
+ * @default 0
407
+ */
408
+ crossAxis?: number;
409
+ /**
410
+ * The same axis as `crossAxis` but applies only to aligned placements
411
+ * and inverts the `end` alignment. When set to a number, it overrides the
412
+ * `crossAxis` value.
413
+ *
414
+ * A positive number will move the floating element in the direction of
415
+ * the opposite edge to the one that is aligned, while a negative number
416
+ * the reverse.
417
+ * @default null
418
+ */
419
+ alignmentAxis?: number | null;
420
+ };
421
+
422
+ export { Padding }
423
+
424
+ export { Placement }
425
+
426
+ /**
427
+ * Platform interface methods to work with the current platform.
428
+ * @see https://floating-ui.com/docs/platform
429
+ */
430
+ export declare interface Platform {
431
+ getElementRects: (args: {
432
+ reference: ReferenceElement;
433
+ floating: FloatingElement;
434
+ strategy: Strategy;
435
+ }) => Promisable<ElementRects>;
436
+ getClippingRect: (args: {
437
+ element: any;
438
+ boundary: Boundary;
439
+ rootBoundary: RootBoundary;
440
+ strategy: Strategy;
441
+ }) => Promisable<Rect>;
442
+ getDimensions: (element: any) => Promisable<Dimensions>;
443
+ convertOffsetParentRelativeRectToViewportRelativeRect?: (args: {
444
+ elements?: Elements;
445
+ rect: Rect;
446
+ offsetParent: any;
447
+ strategy: Strategy;
448
+ }) => Promisable<Rect>;
449
+ getOffsetParent?: (element: any) => Promisable<any>;
450
+ isElement?: (value: any) => Promisable<boolean>;
451
+ getDocumentElement?: (element: any) => Promisable<any>;
452
+ getClientRects?: (element: any) => Promisable<Array<ClientRectObject>>;
453
+ isRTL?: (element: any) => Promisable<boolean>;
454
+ getScale?: (element: any) => Promisable<{
455
+ x: number;
456
+ y: number;
457
+ }>;
458
+ }
459
+
460
+ declare type Promisable<T> = T | Promise<T>;
461
+
462
+ export { Rect }
463
+
464
+ export { rectToClientRect }
465
+
466
+ export declare type ReferenceElement = any;
467
+
468
+ export declare type RootBoundary = 'viewport' | 'document' | Rect;
469
+
470
+ /**
471
+ * Optimizes the visibility of the floating element by shifting it in order to
472
+ * keep it in view when it will overflow the clipping boundary.
473
+ * @see https://floating-ui.com/docs/shift
474
+ */
475
+ export declare const shift: (options?: ShiftOptions | Derivable<ShiftOptions>) => Middleware;
476
+
477
+ export declare interface ShiftOptions extends DetectOverflowOptions {
478
+ /**
479
+ * The axis that runs along the alignment of the floating element. Determines
480
+ * whether overflow along this axis is checked to perform shifting.
481
+ * @default true
482
+ */
483
+ mainAxis?: boolean;
484
+ /**
485
+ * The axis that runs along the side of the floating element. Determines
486
+ * whether overflow along this axis is checked to perform shifting.
487
+ * @default false
488
+ */
489
+ crossAxis?: boolean;
490
+ /**
491
+ * Accepts a function that limits the shifting done in order to prevent
492
+ * detachment.
493
+ */
494
+ limiter?: {
495
+ fn: (state: MiddlewareState) => Coords;
496
+ options?: any;
497
+ };
498
+ }
499
+
500
+ export { Side }
501
+
502
+ export { SideObject }
503
+
504
+ /**
505
+ * Provides data that allows you to change the size of the floating element —
506
+ * for instance, prevent it from overflowing the clipping boundary or match the
507
+ * width of the reference element.
508
+ * @see https://floating-ui.com/docs/size
509
+ */
510
+ export declare const size: (options?: SizeOptions | Derivable<SizeOptions>) => Middleware;
511
+
512
+ export declare interface SizeOptions extends DetectOverflowOptions {
513
+ /**
514
+ * Function that is called to perform style mutations to the floating element
515
+ * to change its size.
516
+ * @default undefined
517
+ */
518
+ apply?(args: MiddlewareState & {
519
+ availableWidth: number;
520
+ availableHeight: number;
521
+ }): void | Promise<void>;
522
+ }
523
+
524
+ export { Strategy }
525
+
526
+ export { VirtualElement }
527
+
528
+ export { }
@@ -0,0 +1,103 @@
1
+ export declare type AlignedPlacement = `${Side}-${Alignment}`;
2
+
3
+ export declare type Alignment = 'start' | 'end';
4
+
5
+ export declare const alignments: Alignment[];
6
+
7
+ export declare type Axis = 'x' | 'y';
8
+
9
+ export declare function clamp(start: number, value: number, end: number): number;
10
+
11
+ export declare type ClientRectObject = Prettify<Rect & SideObject>;
12
+
13
+ export declare type Coords = {
14
+ [key in Axis]: number;
15
+ };
16
+
17
+ export declare const createCoords: (v: number) => {
18
+ x: number;
19
+ y: number;
20
+ };
21
+
22
+ export declare type Dimensions = {
23
+ [key in Length]: number;
24
+ };
25
+
26
+ export declare interface ElementRects {
27
+ reference: Rect;
28
+ floating: Rect;
29
+ }
30
+
31
+ export declare function evaluate<T, P>(value: T | ((param: P) => T), param: P): T;
32
+
33
+ export declare function expandPaddingObject(padding: Partial<SideObject>): SideObject;
34
+
35
+ export declare const floor: (x: number) => number;
36
+
37
+ export declare function getAlignment(placement: Placement): Alignment | undefined;
38
+
39
+ export declare function getAlignmentAxis(placement: Placement): Axis;
40
+
41
+ export declare function getAlignmentSides(placement: Placement, rects: ElementRects, rtl?: boolean): [Side, Side];
42
+
43
+ export declare function getAxisLength(axis: Axis): Length;
44
+
45
+ export declare function getExpandedPlacements(placement: Placement): Array<Placement>;
46
+
47
+ export declare function getOppositeAlignmentPlacement<T extends string>(placement: T): T;
48
+
49
+ export declare function getOppositeAxis(axis: Axis): Axis;
50
+
51
+ export declare function getOppositeAxisPlacements(placement: Placement, flipAlignment: boolean, direction: 'none' | Alignment, rtl?: boolean): Placement[];
52
+
53
+ export declare function getOppositePlacement<T extends string>(placement: T): T;
54
+
55
+ export declare function getPaddingObject(padding: Padding): SideObject;
56
+
57
+ export declare function getSide(placement: Placement): Side;
58
+
59
+ export declare function getSideAxis(placement: Placement): Axis;
60
+
61
+ export declare type Length = 'width' | 'height';
62
+
63
+ export declare const max: (...values: number[]) => number;
64
+
65
+ export declare const min: (...values: number[]) => number;
66
+
67
+ export declare type Padding = number | Prettify<Partial<SideObject>>;
68
+
69
+ export declare type Placement = Prettify<Side | AlignedPlacement>;
70
+
71
+ export declare const placements: Placement[];
72
+
73
+ declare type Prettify<T> = {
74
+ [K in keyof T]: T[K];
75
+ } & {};
76
+
77
+ export declare type Rect = Prettify<Coords & Dimensions>;
78
+
79
+ export declare function rectToClientRect(rect: Rect): ClientRectObject;
80
+
81
+ export declare const round: (x: number) => number;
82
+
83
+ export declare type Side = 'top' | 'right' | 'bottom' | 'left';
84
+
85
+ export declare type SideObject = {
86
+ [key in Side]: number;
87
+ };
88
+
89
+ export declare const sides: Side[];
90
+
91
+ export declare type Strategy = 'absolute' | 'fixed';
92
+
93
+ /**
94
+ * Custom positioning reference element.
95
+ * @see https://floating-ui.com/docs/virtual-elements
96
+ */
97
+ export declare interface VirtualElement {
98
+ getBoundingClientRect(): ClientRectObject;
99
+ getClientRects?(): Array<ClientRectObject>;
100
+ contextElement?: any;
101
+ }
102
+
103
+ export { }
@@ -0,0 +1,47 @@
1
+ declare function getComputedStyle_2(element: Element): CSSStyleDeclaration;
2
+ export { getComputedStyle_2 as getComputedStyle }
3
+
4
+ export declare function getContainingBlock(element: Element): HTMLElement | null;
5
+
6
+ export declare function getDocumentElement(node: Node | Window): HTMLElement;
7
+
8
+ export declare function getFrameElement(win: Window): Element | null;
9
+
10
+ export declare function getNearestOverflowAncestor(node: Node): HTMLElement;
11
+
12
+ export declare function getNodeName(node: Node | Window): string;
13
+
14
+ export declare function getNodeScroll(element: Element | Window): {
15
+ scrollLeft: number;
16
+ scrollTop: number;
17
+ };
18
+
19
+ export declare function getOverflowAncestors(node: Node, list?: OverflowAncestors, traverseIframes?: boolean): OverflowAncestors;
20
+
21
+ export declare function getParentNode(node: Node): Node;
22
+
23
+ export declare function getWindow(node: any): typeof window;
24
+
25
+ export declare function isContainingBlock(elementOrCss: Element | CSSStyleDeclaration): boolean;
26
+
27
+ export declare function isElement(value: unknown): value is Element;
28
+
29
+ export declare function isHTMLElement(value: unknown): value is HTMLElement;
30
+
31
+ export declare function isLastTraversableNode(node: Node): boolean;
32
+
33
+ export declare function isNode(value: unknown): value is Node;
34
+
35
+ export declare function isOverflowElement(element: Element): boolean;
36
+
37
+ export declare function isShadowRoot(value: unknown): value is ShadowRoot;
38
+
39
+ export declare function isTableElement(element: Element): boolean;
40
+
41
+ export declare function isTopLayer(element: Element): boolean;
42
+
43
+ export declare function isWebKit(): boolean;
44
+
45
+ declare type OverflowAncestors = Array<Element | Window | VisualViewport>;
46
+
47
+ export { }