@react-types/shared
Advanced tools
Comparing version 3.0.0-nightly-a98da553e-241116 to 3.0.0-nightly-b3a4d6c11-241119
{ | ||
"name": "@react-types/shared", | ||
"version": "3.0.0-nightly-a98da553e-241116", | ||
"version": "3.0.0-nightly-b3a4d6c11-241119", | ||
"description": "Spectrum UI components in React", | ||
@@ -12,3 +12,3 @@ "license": "Apache-2.0", | ||
"peerDependencies": { | ||
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0" | ||
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1" | ||
}, | ||
@@ -15,0 +15,0 @@ "publishConfig": { |
@@ -32,3 +32,3 @@ /* | ||
export type ItemElement<T> = ReactElement<ItemProps<T>>; | ||
export type ItemElement<T> = ReactElement<ItemProps<T>> | null; | ||
export type ItemRenderer<T> = (item: T) => ItemElement<T>; | ||
@@ -55,3 +55,3 @@ export type LoadingState = 'loading' | 'sorting' | 'loadingMore' | 'error' | 'idle' | 'filtering'; | ||
export type SectionElement<T> = ReactElement<SectionProps<T>>; | ||
export type SectionElement<T> = ReactElement<SectionProps<T>> | null; | ||
@@ -119,9 +119,9 @@ export type CollectionElement<T> = SectionElement<T> | ItemElement<T>; | ||
/** Returns the first key, or `null` for none. */ | ||
getFirstKey?(key?: Key, global?: boolean): Key | null, | ||
getFirstKey?(key?: Key | null, global?: boolean): Key | null, | ||
/** Returns the last key, or `null` for none. */ | ||
getLastKey?(key?: Key, global?: boolean): Key | null, | ||
getLastKey?(key?: Key | null, global?: boolean): Key | null, | ||
/** Returns the next key after `fromKey` that matches the given search string, or `null` for none. */ | ||
getKeyForSearch?(search: string, fromKey?: Key): Key | null | ||
getKeyForSearch?(search: string, fromKey?: Key | null): Key | null | ||
} | ||
@@ -212,3 +212,3 @@ | ||
/** The index of this node within its parent. */ | ||
index?: number, | ||
index: number, | ||
/** A function that should be called to wrap the rendered node. */ | ||
@@ -225,5 +225,5 @@ wrapper?: (element: ReactElement) => ReactElement, | ||
/** @private */ | ||
shouldInvalidate?: (context: unknown) => boolean, | ||
shouldInvalidate?: (context: any) => boolean, | ||
/** A function that renders this node to a React Element in the DOM. */ | ||
render?: (node: Node<any>) => ReactElement | ||
} |
@@ -62,3 +62,3 @@ /* | ||
*/ | ||
id?: string | ||
id?: string | undefined | ||
} | ||
@@ -65,0 +65,0 @@ |
@@ -16,3 +16,3 @@ /* | ||
export interface DOMRefValue<T extends HTMLElement = HTMLElement> { | ||
UNSAFE_getDOMNode(): T | ||
UNSAFE_getDOMNode(): T | null | ||
} | ||
@@ -19,0 +19,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
75032