PHP 8.2.30
Preview: utils.d.ts Size: 3.32 KB
//proc/thread-self/root/home/byroehnu/.trash/node_modules11/react-select/dist/declarations/src/utils.d.ts

import type { StylesProps } from './styles';
import type { ClassNamesState, CommonPropsAndClassName, GroupBase, InputActionMeta, MultiValue, OnChangeValue, Options, PropsValue, SingleValue } from './types';
export declare const noop: () => void;
export declare const emptyString: () => string;
export declare function classNames(prefix?: string | null, state?: ClassNamesState, ...classNameList: string[]): string;
export declare const cleanValue: <Option>(value: PropsValue<Option>) => Options<Option>;
export declare const cleanCommonProps: <Option, IsMulti extends boolean, Group extends GroupBase<Option>, AdditionalProps>(props: Partial<CommonPropsAndClassName<Option, IsMulti, Group>> & AdditionalProps) => Omit<AdditionalProps, keyof CommonPropsAndClassName<Option, IsMulti, Group>>;
export declare const getStyleProps: <Option, IsMulti extends boolean, Group extends GroupBase<Option>, Key extends keyof StylesProps<Option, IsMulti, Group>>(props: Pick<CommonPropsAndClassName<Option, IsMulti, Group>, "className" | "cx" | "getStyles" | "getClassNames"> & StylesProps<Option, IsMulti, Group>[Key], name: Key, classNamesState?: ClassNamesState | undefined) => {
    css: import("./types").CSSObjectWithLabel;
    className: string;
};
export declare function handleInputChange(inputValue: string, actionMeta: InputActionMeta, onInputChange?: (newValue: string, actionMeta: InputActionMeta) => string | void): string;
export declare function isDocumentElement(el: HTMLElement | typeof window): el is typeof window;
export declare function normalizedHeight(el: HTMLElement | typeof window): number;
export declare function getScrollTop(el: HTMLElement | typeof window): number;
export declare function scrollTo(el: HTMLElement | typeof window, top: number): void;
export declare function getScrollParent(element: HTMLElement): HTMLElement;
export declare function animatedScrollTo(element: HTMLElement | typeof window, to: number, duration?: number, callback?: (element: HTMLElement | typeof window) => void): void;
export declare function scrollIntoView(menuEl: HTMLElement, focusedEl: HTMLElement): void;
export declare function getBoundingClientObj(element: HTMLElement): {
    bottom: number;
    height: number;
    left: number;
    right: number;
    top: number;
    width: number;
};
export interface RectType {
    left: number;
    right: number;
    bottom: number;
    height: number;
    width: number;
}
export declare function toKey(str: string): string;
export declare function isTouchCapable(): boolean;
export declare function isMobileDevice(): boolean;
export declare const supportsPassiveEvents: boolean;
export declare function notNullish<T>(item: T | null | undefined): item is T;
export declare function isArray<T>(arg: unknown): arg is readonly T[];
export declare function valueTernary<Option, IsMulti extends boolean>(isMulti: IsMulti | undefined, multiValue: MultiValue<Option>, singleValue: SingleValue<Option>): OnChangeValue<Option, IsMulti>;
export declare function singleValueAsValue<Option, IsMulti extends boolean>(singleValue: SingleValue<Option>): OnChangeValue<Option, IsMulti>;
export declare function multiValueAsValue<Option, IsMulti extends boolean>(multiValue: MultiValue<Option>): OnChangeValue<Option, IsMulti>;
export declare const removeProps: <Props extends object, K extends string[]>(propsObj: Props, ...properties: K) => Omit<Props, K[number]>;

Directory Contents

Dirs: 8 × Files: 17

Name Size Perms Modified Actions
- drwxr-xr-x 2026-02-28 00:29:58
Edit Download
animated DIR
- drwxr-xr-x 2026-02-28 00:30:28
Edit Download
async DIR
- drwxr-xr-x 2026-02-28 00:30:00
Edit Download
- drwxr-xr-x 2026-02-28 00:29:58
Edit Download
base DIR
- drwxr-xr-x 2026-02-28 00:30:00
Edit Download
- drwxr-xr-x 2026-02-28 00:30:16
Edit Download
creatable DIR
- drwxr-xr-x 2026-02-28 00:30:04
Edit Download
internal DIR
- drwxr-xr-x 2026-02-28 00:30:26
Edit Download
559 B lrw-r--r-- 2026-02-28 00:29:52
Edit Download
870 B lrw-r--r-- 2026-02-28 00:29:52
Edit Download
365 B lrw-r--r-- 2026-02-28 00:29:54
Edit Download
790 B lrw-r--r-- 2026-02-28 00:29:58
Edit Download
63 B lrw-r--r-- 2026-02-28 00:29:58
Edit Download
539 B lrw-r--r-- 2026-02-28 00:29:58
Edit Download
1.98 KB lrw-r--r-- 2026-02-28 00:30:04
Edit Download
289 B lrw-r--r-- 2026-02-28 00:30:08
Edit Download
26.09 KB lrw-r--r-- 2026-02-28 00:30:16
Edit Download
559 B lrw-r--r-- 2026-02-28 00:30:18
Edit Download
5.84 KB lrw-r--r-- 2026-02-28 00:30:20
Edit Download
672 B lrw-r--r-- 2026-02-28 00:30:20
Edit Download
5.15 KB lrw-r--r-- 2026-02-28 00:30:22
Edit Download
1.83 KB lrw-r--r-- 2026-02-28 00:30:22
Edit Download
2.33 KB lrw-r--r-- 2026-02-28 00:30:24
Edit Download
1.47 KB lrw-r--r-- 2026-02-28 00:30:26
Edit Download
3.32 KB lrw-r--r-- 2026-02-28 00:30:28
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).