This commit is contained in:
2025-09-19 14:25:20 +08:00
parent 269893a435
commit fbf3f77229
24949 changed files with 2839404 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
import type { State, Padding } from "../types";
import type { Placement, ComputedPlacement, Boundary, RootBoundary } from "../enums";
declare type Options = {
placement: Placement;
padding: Padding;
boundary: Boundary;
rootBoundary: RootBoundary;
flipVariations: boolean;
allowedAutoPlacements?: Array<Placement>;
};
export default function computeAutoPlacement(state: Partial<State>, options?: Options): Array<ComputedPlacement>;
export {};

View File

@@ -0,0 +1,8 @@
import type { Rect, PositioningStrategy, Offsets, ClientRectObject } from "../types";
import { Placement } from "../enums";
export default function computeOffsets({ reference, element, placement }: {
reference: Rect | ClientRectObject;
element: Rect | ClientRectObject;
strategy: PositioningStrategy;
placement?: Placement;
}): Offsets;

1
node_modules/@popperjs/core/lib/utils/debounce.d.ts generated vendored Normal file
View File

@@ -0,0 +1 @@
export default function debounce<T>(fn: (...args: Array<any>) => any): () => Promise<T>;

View File

@@ -0,0 +1,11 @@
import type { State, SideObject, Padding } from "../types";
import type { Placement, Boundary, RootBoundary, Context } from "../enums";
export declare type Options = {
placement: Placement;
boundary: Boundary;
rootBoundary: RootBoundary;
elementContext: Context;
altBoundary: boolean;
padding: Padding;
};
export default function detectOverflow(state: State, options?: Partial<Options>): SideObject;

View File

@@ -0,0 +1,3 @@
export default function expandToHashMap<T extends number | string | boolean, K extends string>(value: T, keys: Array<K>): {
[key: string]: T;
};

1
node_modules/@popperjs/core/lib/utils/format.d.ts generated vendored Normal file
View File

@@ -0,0 +1 @@
export default function format(str: string, ...args: Array<string>): string;

View File

@@ -0,0 +1 @@
export default function getAltAxis(axis: "x" | "y"): "x" | "y";

1
node_modules/@popperjs/core/lib/utils/getAltLen.d.ts generated vendored Normal file
View File

@@ -0,0 +1 @@
export default function getAltLen(len: "width" | "height"): "width" | "height";

View File

@@ -0,0 +1,2 @@
import { BasePlacement, Placement, auto } from "../enums";
export default function getBasePlacement(placement: Placement | typeof auto): BasePlacement;

View File

@@ -0,0 +1,2 @@
import type { SideObject } from "../types";
export default function getFreshSideObject(): SideObject;

View File

@@ -0,0 +1,2 @@
import type { Placement } from "../enums";
export default function getMainAxisFromPlacement(placement: Placement): "x" | "y";

View File

@@ -0,0 +1,2 @@
import type { Placement } from "../enums";
export default function getOppositePlacement(placement: Placement): Placement;

View File

@@ -0,0 +1,2 @@
import type { Placement } from "../enums";
export default function getOppositeVariationPlacement(placement: Placement): Placement;

View File

@@ -0,0 +1,2 @@
import { Variation, Placement } from "../enums";
export default function getVariation(placement: Placement): Variation | null | undefined;

3
node_modules/@popperjs/core/lib/utils/math.d.ts generated vendored Normal file
View File

@@ -0,0 +1,3 @@
export declare const max: (...values: number[]) => number;
export declare const min: (...values: number[]) => number;
export declare const round: (x: number) => number;

View File

@@ -0,0 +1,2 @@
import type { Modifier } from "../types";
export default function mergeByName(modifiers: Array<Partial<Modifier<any, any>>>): Array<Partial<Modifier<any, any>>>;

View File

@@ -0,0 +1,2 @@
import type { SideObject } from "../types";
export default function mergePaddingObject(paddingObject: Partial<SideObject>): SideObject;

View File

@@ -0,0 +1,2 @@
import type { Modifier } from "../types";
export default function orderModifiers(modifiers: Array<Modifier<any, any>>): Array<Modifier<any, any>>;

View File

@@ -0,0 +1,2 @@
import type { Rect, ClientRectObject } from "../types";
export default function rectToClientRect(rect: Rect): ClientRectObject;

1
node_modules/@popperjs/core/lib/utils/uniqueBy.d.ts generated vendored Normal file
View File

@@ -0,0 +1 @@
export default function uniqueBy<T>(arr: Array<T>, fn: (arg0: T) => any): Array<T>;

View File

@@ -0,0 +1 @@
export default function validateModifiers(modifiers: Array<any>): void;

2
node_modules/@popperjs/core/lib/utils/within.d.ts generated vendored Normal file
View File

@@ -0,0 +1,2 @@
export declare function within(min: number, value: number, max: number): number;
export declare function withinMaxClamp(min: number, value: number, max: number): number;