@react-types/grid 3.2.10 → 3.3.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 +3 -3
  2. package/src/index.d.ts +8 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-types/grid",
3
- "version": "3.2.10",
3
+ "version": "3.3.0",
4
4
  "description": "Spectrum UI components in React",
5
5
  "license": "Apache-2.0",
6
6
  "types": "src/index.d.ts",
@@ -9,7 +9,7 @@
9
9
  "url": "https://github.com/adobe/react-spectrum"
10
10
  },
11
11
  "dependencies": {
12
- "@react-types/shared": "^3.26.0"
12
+ "@react-types/shared": "^3.28.0"
13
13
  },
14
14
  "peerDependencies": {
15
15
  "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"
@@ -17,5 +17,5 @@
17
17
  "publishConfig": {
18
18
  "access": "public"
19
19
  },
20
- "gitHead": "71f0ef23053f9e03ee7e97df736e8b083e006849"
20
+ "gitHead": "4d3c72c94eea2d72eb3a0e7d56000c6ef7e39726"
21
21
  }
package/src/index.d.ts CHANGED
@@ -27,10 +27,15 @@ export interface GridRow<T> extends Partial<GridNode<T>> {
27
27
 
28
28
  export interface GridNode<T> extends Node<T> {
29
29
  column?: GridNode<T>,
30
- /** The number of columns spanned by this cell. */
30
+ /**
31
+ * The number of columns spanned by this cell. Use `colSpan` instead.
32
+ * @deprecated
33
+ */
31
34
  colspan?: number,
32
- /** The column index of this cell, accounting for any colspans. */
33
- colIndex?: 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,
34
39
  /** The index of this node within its parent, ignoring sibling nodes that aren't of the same type. */
35
40
  indexOfType?: number
36
41
  }