@react-stately/grid
Advanced tools
Comparing version 3.0.0-alpha.0 to 3.0.0-alpha.1
@@ -1,6 +0,6 @@ | ||
import { GridCollection, GridNode, GridRow } from "@react-types/grid"; | ||
import { GridCollection as _GridCollection1, GridNode, GridRow } from "@react-types/grid"; | ||
import { Key } from "react"; | ||
import { MultipleSelection } from "@react-types/shared"; | ||
import { SelectionManager } from "@react-stately/selection"; | ||
export interface GridState<T, C extends GridCollection<T>> { | ||
export interface GridState<T, C extends _GridCollection1<T>> { | ||
collection: C; | ||
@@ -10,7 +10,7 @@ disabledKeys: Set<Key>; | ||
} | ||
interface GridStateOptions<T, C extends GridCollection<T>> extends MultipleSelection { | ||
interface GridStateOptions<T, C extends _GridCollection1<T>> extends MultipleSelection { | ||
collection: C; | ||
disabledKeys?: Iterable<Key>; | ||
} | ||
export function useGridState<T extends object, C extends GridCollection<T>>(props: GridStateOptions<T, C>): GridState<T, C>; | ||
export function useGridState<T extends object, C extends _GridCollection1<T>>(props: GridStateOptions<T, C>): GridState<T, C>; | ||
interface GridCollectionOptions<T> { | ||
@@ -21,3 +21,3 @@ columnCount: number; | ||
} | ||
export class GridCollection<T> implements GridCollection<T> { | ||
export class GridCollection<T> implements _GridCollection1<T> { | ||
keyMap: Map<Key, GridNode<T>>; | ||
@@ -24,0 +24,0 @@ columnCount: number; |
{ | ||
"name": "@react-stately/grid", | ||
"version": "3.0.0-alpha.0", | ||
"version": "3.0.0-alpha.1", | ||
"description": "Spectrum UI components in React", | ||
@@ -31,3 +31,3 @@ "license": "Apache-2.0", | ||
}, | ||
"gitHead": "9920ffaa2596a03c4498a15cb940bd2f4ba5cd6a" | ||
"gitHead": "bead0d5e0d5f4411430741d63d31e10dd5628dae" | ||
} |
Sorry, the diff of this file is not supported yet
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
52160