@react-types/table 3.0.0-nightly-e24140214-260308 → 3.0.0-nightly-796738501-260310
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.
- package/package.json +3 -3
- package/src/index.d.ts +5 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-types/table",
|
|
3
|
-
"version": "3.0.0-nightly-
|
|
3
|
+
"version": "3.0.0-nightly-796738501-260310",
|
|
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.0.0-nightly-
|
|
13
|
-
"@react-types/shared": "3.0.0-nightly-
|
|
12
|
+
"@react-types/grid": "3.0.0-nightly-796738501-260310",
|
|
13
|
+
"@react-types/shared": "3.0.0-nightly-796738501-260310"
|
|
14
14
|
},
|
|
15
15
|
"peerDependencies": {
|
|
16
16
|
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"
|
package/src/index.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import {AriaLabelingProps, AsyncLoadable, DOMProps, Key, LinkDOMProps, LoadingState, MultipleSelection, Sortable, SpectrumSelectionProps, StyleProps} from '@react-types/shared';
|
|
13
|
+
import {AriaLabelingProps, AsyncLoadable, DOMProps, Expandable, Key, LinkDOMProps, LoadingState, MultipleSelection, Sortable, SpectrumSelectionProps, StyleProps} from '@react-types/shared';
|
|
14
14
|
import {GridCollection, GridNode} from '@react-types/grid';
|
|
15
15
|
import {JSX, ReactElement, ReactNode} from 'react';
|
|
16
16
|
|
|
@@ -25,7 +25,7 @@ export type ColumnDynamicSize = `${number}fr`; // match regex: /^(\d+)(?=fr$)/
|
|
|
25
25
|
/** All possible sizes a column can be assigned. */
|
|
26
26
|
export type ColumnSize = ColumnStaticSize | ColumnDynamicSize;
|
|
27
27
|
|
|
28
|
-
export interface TableProps<T> extends MultipleSelection, Sortable {
|
|
28
|
+
export interface TableProps<T> extends MultipleSelection, Sortable, Expandable {
|
|
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. */
|
|
@@ -40,7 +40,9 @@ export interface TableProps<T> extends MultipleSelection, Sortable {
|
|
|
40
40
|
*/
|
|
41
41
|
escapeKeyBehavior?: 'clearSelection' | 'none',
|
|
42
42
|
/** Whether selection should occur on press up instead of press down. */
|
|
43
|
-
shouldSelectOnPressUp?: boolean
|
|
43
|
+
shouldSelectOnPressUp?: boolean,
|
|
44
|
+
/** The id of the column that displays hierarchical data. */
|
|
45
|
+
treeColumn?: Key
|
|
44
46
|
}
|
|
45
47
|
|
|
46
48
|
/**
|