@react-types/table 3.11.0 → 3.13.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 +4 -4
  2. package/src/index.d.ts +12 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-types/table",
3
- "version": "3.11.0",
3
+ "version": "3.13.0",
4
4
  "description": "Spectrum UI components in React",
5
5
  "license": "Apache-2.0",
6
6
  "types": "src/index.d.ts",
@@ -9,8 +9,8 @@
9
9
  "url": "https://github.com/adobe/react-spectrum"
10
10
  },
11
11
  "dependencies": {
12
- "@react-types/grid": "^3.3.0",
13
- "@react-types/shared": "^3.28.0"
12
+ "@react-types/grid": "^3.3.2",
13
+ "@react-types/shared": "^3.29.1"
14
14
  },
15
15
  "peerDependencies": {
16
16
  "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"
@@ -18,5 +18,5 @@
18
18
  "publishConfig": {
19
19
  "access": "public"
20
20
  },
21
- "gitHead": "4d3c72c94eea2d72eb3a0e7d56000c6ef7e39726"
21
+ "gitHead": "9c77d4e8267ed39469c65f65da94ece7be509874"
22
22
  }
package/src/index.d.ts CHANGED
@@ -29,7 +29,18 @@ export interface TableProps<T> extends MultipleSelection, Sortable {
29
29
  /** The elements that make up the table. Includes the TableHeader, TableBody, Columns, and Rows. */
30
30
  children: [ReactElement<TableHeaderProps<T>>, ReactElement<TableBodyProps<T>>],
31
31
  /** A list of row keys to disable. */
32
- disabledKeys?: Iterable<Key>
32
+ disabledKeys?: Iterable<Key>,
33
+ /**
34
+ * Whether pressing the escape key should clear selection in the table or not.
35
+ *
36
+ * Most experiences should not modify this option as it eliminates a keyboard user's ability to
37
+ * easily clear selection. Only use if the escape key is being handled externally or should not
38
+ * trigger selection clearing contextually.
39
+ * @default 'clearSelection'
40
+ */
41
+ escapeKeyBehavior?: 'clearSelection' | 'none',
42
+ /** Whether selection should occur on press up instead of press down. */
43
+ shouldSelectOnPressUp?: boolean
33
44
  }
34
45
 
35
46
  /**