@react-types/grid 3.3.7 → 3.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +6 -4
  2. package/src/index.d.ts +1 -29
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-types/grid",
3
- "version": "3.3.7",
3
+ "version": "3.4.0",
4
4
  "description": "Spectrum UI components in React",
5
5
  "license": "Apache-2.0",
6
6
  "types": "src/index.d.ts",
@@ -9,13 +9,15 @@
9
9
  "url": "https://github.com/adobe/react-spectrum"
10
10
  },
11
11
  "dependencies": {
12
- "@react-types/shared": "^3.33.0"
12
+ "@react-stately/grid": "^3.12.0"
13
13
  },
14
14
  "peerDependencies": {
15
- "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"
15
+ "@react-spectrum/provider": "^3.0.0",
16
+ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1",
17
+ "react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"
16
18
  },
17
19
  "publishConfig": {
18
20
  "access": "public"
19
21
  },
20
- "gitHead": "66e51757606b43a89ed02c574ca24517323a2ab9"
22
+ "gitHead": "a6999bdf494a2e9c0381a5881908328bdd22ddae"
21
23
  }
package/src/index.d.ts CHANGED
@@ -10,32 +10,4 @@
10
10
  * governing permissions and limitations under the License.
11
11
  */
12
12
 
13
- import {Collection, Key, Node} from '@react-types/shared';
14
-
15
- export interface GridCollection<T> extends Collection<GridNode<T>> {
16
- /** The number of columns in the grid. */
17
- columnCount: number,
18
- /** A list of rows in the grid. */
19
- rows: GridNode<T>[]
20
- }
21
-
22
- export interface GridRow<T> extends Partial<GridNode<T>> {
23
- key?: Key,
24
- type: string,
25
- childNodes: Iterable<Node<T>>
26
- }
27
-
28
- export interface GridNode<T> extends Node<T> {
29
- column?: GridNode<T>,
30
- /**
31
- * The number of columns spanned by this cell. Use `colSpan` instead.
32
- * @deprecated
33
- */
34
- colspan?: number,
35
- /** The number of columns spanned by this cell. */
36
- colSpan?: number | null,
37
- /** The column index of this cell, accounting for any colSpans. */
38
- colIndex?: number | null,
39
- /** The index of this node within its parent, ignoring sibling nodes that aren't of the same type. */
40
- indexOfType?: number
41
- }
13
+ export {GridCollection, GridRow, GridNode} from '@react-stately/grid';