node_modules ignore

This commit is contained in:
2025-05-08 23:43:47 +02:00
parent e19d52f172
commit 4574544c9f
65041 changed files with 10593536 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
import * as React from 'react';
type PossibleRef<T> = React.Ref<T> | undefined;
/**
* A utility to compose multiple refs together
* Accepts callback refs and RefObject(s)
*/
declare function composeRefs<T>(...refs: PossibleRef<T>[]): (node: T) => void;
/**
* Takes multiple React like refs either React.Ref or a callback:
* (node: T) => void and returns a single function that can be
* passed to a React component as a ref.
*
* Example:
* ```tsx
* import { useComposedRefs } from '../hooks/useComposedRefs';
*
* const Component = React.forwardRef<HTMLInputElement, ComponentProps>((props, forwardedRef) => {
* const ref = useComposedRefs(internalRef, forwardedRef);
*
* React.useEffect(() => {
* ref.current.focus();
* }, [ref]);
*
* return <input ref={ref} />
* }
* ```
*/
declare function useComposedRefs<T>(...refs: PossibleRef<T>[]): (node: T) => void;
export { composeRefs, useComposedRefs };
//# sourceMappingURL=useComposeRefs.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"useComposeRefs.d.ts","sourceRoot":"","sources":["../../src/hooks/useComposeRefs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,KAAK,WAAW,CAAC,CAAC,IAAI,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC;AAc/C;;;GAGG;AACH,iBAAS,WAAW,CAAC,CAAC,EAAE,GAAG,IAAI,EAAE,WAAW,CAAC,CAAC,CAAC,EAAE,UACjC,CAAC,UAChB;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,iBAAS,eAAe,CAAC,CAAC,EAAE,GAAG,IAAI,EAAE,WAAW,CAAC,CAAC,CAAC,EAAE,qBAGpD;AAED,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,CAAC"}

View File

@@ -0,0 +1,10 @@
import * as React from 'react';
type UseControllableStateParams<T> = {
prop?: T | undefined;
defaultProp?: T | undefined;
onChange?: (state: T) => void;
};
declare function useControllableState<T>({ prop, defaultProp, onChange }: UseControllableStateParams<T>): readonly [T | undefined, React.Dispatch<React.SetStateAction<T | undefined>>];
declare function useUncontrolledState<T>({ defaultProp, onChange }: Omit<UseControllableStateParams<T>, 'prop'>): [T | undefined, React.Dispatch<React.SetStateAction<T | undefined>>];
export { useControllableState, useUncontrolledState as _internaluseUncontrolledState };
//# sourceMappingURL=useControllableState.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"useControllableState.d.ts","sourceRoot":"","sources":["../../src/hooks/useControllableState.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,KAAK,0BAA0B,CAAC,CAAC,IAAI;IACnC,IAAI,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC;IACrB,WAAW,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC;IAC5B,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAC;CAC/B,CAAC;AAIF,iBAAS,oBAAoB,CAAC,CAAC,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,QAAmB,EAAE,EAAE,0BAA0B,CAAC,CAAC,CAAC,iFAoBzG;AAED,iBAAS,oBAAoB,CAAC,CAAC,EAAE,EAAE,WAAW,EAAE,QAAQ,EAAE,EAAE,IAAI,CAAC,0BAA0B,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,wEActG;AAED,OAAO,EAAE,oBAAoB,EAAE,oBAAoB,IAAI,6BAA6B,EAAE,CAAC"}

View File

@@ -0,0 +1,29 @@
import { DateFormatter } from '@internationalized/date';
export interface DateFormatterOptions extends Intl.DateTimeFormatOptions {
calendar?: string;
}
/**
* This hook wraps the `DateFormatter` from `@internationalized/date`. Which essentially is
* an extension of the `Intl.DateTimeFormat` API with some additional features.
*
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat
* for more information.
*
* @returns a memoized DateFormatter instance
*
* @example
* ```tsx
* const MyComponent = () => {
* const monthFormatter = useDateFormatter(locale, { month: 'long' });
* const months: string[] = React.useMemo(
* () => [...Array(12).keys()].map((m) => monthFormatter.format(new Date(Date.UTC(2023, m)))),
* [monthFormatter],
* );
*
* // assuming the locale is `en-GB` this will render `Janyary` to `December`.
* return months.map((month) => <p key={month}>{month}</p>)
* }
* ```
*/
export declare function useDateFormatter(locale: string, options?: DateFormatterOptions): DateFormatter;
//# sourceMappingURL=useDateFormatter.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"useDateFormatter.d.ts","sourceRoot":"","sources":["../../src/hooks/useDateFormatter.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAExD,MAAM,WAAW,oBAAqB,SAAQ,IAAI,CAAC,qBAAqB;IACtE,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,oBAAoB,GAAG,aAAa,CAW9F"}

View File

@@ -0,0 +1,2 @@
export declare const useId: (initialId?: string | number | undefined) => string;
//# sourceMappingURL=useId.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"useId.d.ts","sourceRoot":"","sources":["../../src/hooks/useId.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,KAAK,eAAgB,MAAM,GAAG,MAAM,GAAG,SAAS,KAAG,MAS/D,CAAC"}

View File

@@ -0,0 +1,11 @@
import * as React from 'react';
interface UseIntersectionOptions {
selectorToWatch: string;
skipWhen?: boolean;
}
/**
* TODO: refactor this before v2 stable.
*/
export declare const useIntersection: (scrollableAreaRef: React.MutableRefObject<HTMLElement | null>, callback: (entry: IntersectionObserverEntry) => void, { selectorToWatch, skipWhen }: UseIntersectionOptions) => void;
export {};
//# sourceMappingURL=useIntersection.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"useIntersection.d.ts","sourceRoot":"","sources":["../../src/hooks/useIntersection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,UAAU,sBAAsB;IAC9B,eAAe,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;GAEG;AAEH,eAAO,MAAM,eAAe,sBACP,MAAM,gBAAgB,CAAC,WAAW,GAAG,IAAI,CAAC,YACnD,CAAC,KAAK,EAAE,yBAAyB,KAAK,IAAI,iCACb,sBAAsB,SAqC9D,CAAC"}

View File

@@ -0,0 +1,12 @@
import { useEffect } from 'react';
export declare const isSSR: () => boolean;
/**
* Use this to read layout from the DOM and synchronously
* re-render if the isSSR returns true. Updates scheduled
* inside `useIsomorphicLayoutEffect` will be flushed
* synchronously in the browser, before the browser has
* a chance to paint.
*/
declare const useIsomorphicLayoutEffect: typeof useEffect;
export { useIsomorphicLayoutEffect };
//# sourceMappingURL=useIsomorphicLayoutEffect.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"useIsomorphicLayoutEffect.d.ts","sourceRoot":"","sources":["../../src/hooks/useIsomorphicLayoutEffect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAmB,MAAM,OAAO,CAAC;AAKnD,eAAO,MAAM,KAAK,eACoG,CAAC;AAEvH;;;;;;GAMG;AACH,QAAA,MAAM,yBAAyB,kBAAwC,CAAC;AAExE,OAAO,EAAE,yBAAyB,EAAE,CAAC"}

View File

@@ -0,0 +1,7 @@
type UseMeasureRect = Pick<DOMRectReadOnly, 'x' | 'y' | 'top' | 'left' | 'right' | 'bottom' | 'height' | 'width'>;
type UseMeasureRef<E extends Element = Element> = (element: E) => void;
type UseMeasureResult<E extends Element = Element> = [UseMeasureRef<E>, UseMeasureRect];
declare function useMeasure<E extends Element = Element>(): UseMeasureResult<E>;
export { useMeasure };
export type { UseMeasureRect, UseMeasureRef, UseMeasureResult };
//# sourceMappingURL=useMeasure.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"useMeasure.d.ts","sourceRoot":"","sources":["../../src/hooks/useMeasure.ts"],"names":[],"mappings":"AAIA,KAAK,cAAc,GAAG,IAAI,CAAC,eAAe,EAAE,GAAG,GAAG,GAAG,GAAG,KAAK,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC,CAAC;AAClH,KAAK,aAAa,CAAC,CAAC,SAAS,OAAO,GAAG,OAAO,IAAI,CAAC,OAAO,EAAE,CAAC,KAAK,IAAI,CAAC;AACvE,KAAK,gBAAgB,CAAC,CAAC,SAAS,OAAO,GAAG,OAAO,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,cAAc,CAAC,CAAC;AAaxF,iBAAS,UAAU,CAAC,CAAC,SAAS,OAAO,GAAG,OAAO,KAAK,gBAAgB,CAAC,CAAC,CAAC,CAwBtE;AAED,OAAO,EAAE,UAAU,EAAE,CAAC;AACtB,YAAY,EAAE,cAAc,EAAE,aAAa,EAAE,gBAAgB,EAAE,CAAC"}