@react-types/table 3.1.4-nightly.3276 → 3.2.1-nightly.3289
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 +4 -4
- package/src/index.d.ts +9 -9
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-types/table",
|
|
3
|
-
"version": "3.1
|
|
3
|
+
"version": "3.2.1-nightly.3289+e8a1bf5b3",
|
|
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.
|
|
13
|
-
"@react-types/shared": "3.0.0-nightly.
|
|
12
|
+
"@react-types/grid": "3.1.1-nightly.3289+e8a1bf5b3",
|
|
13
|
+
"@react-types/shared": "3.0.0-nightly.1590+e8a1bf5b3"
|
|
14
14
|
},
|
|
15
15
|
"peerDependencies": {
|
|
16
16
|
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0"
|
|
@@ -18,5 +18,5 @@
|
|
|
18
18
|
"publishConfig": {
|
|
19
19
|
"access": "public"
|
|
20
20
|
},
|
|
21
|
-
"gitHead": "
|
|
21
|
+
"gitHead": "e8a1bf5b357d4f655e9927c27ec1b2490664e2ec"
|
|
22
22
|
}
|
package/src/index.d.ts
CHANGED
|
@@ -37,11 +37,11 @@ export interface SpectrumTableProps<T> extends TableProps<T>, SpectrumSelectionP
|
|
|
37
37
|
/** Sets what the TableView should render when there is no content to display. */
|
|
38
38
|
renderEmptyState?: () => JSX.Element,
|
|
39
39
|
/** Handler that is called when a user performs an action on a row. */
|
|
40
|
-
onAction?: (key: Key) => void
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
40
|
+
onAction?: (key: Key) => void,
|
|
41
|
+
/** Handler that is called when a user performs a column resize. */
|
|
42
|
+
onColumnResize?: (affectedColumns: {key: Key, width: number}[]) => void,
|
|
43
|
+
/** Handler that is called when a column resize ends. */
|
|
44
|
+
onColumnResizeEnd?: (affectedColumns: {key: Key, width: number}[]) => void
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
export interface TableHeaderProps<T> {
|
|
@@ -66,10 +66,10 @@ export interface ColumnProps<T> {
|
|
|
66
66
|
minWidth?: number | string,
|
|
67
67
|
/** The maximum width of the column. */
|
|
68
68
|
maxWidth?: number | string,
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
69
|
+
/** The default width of the column. */
|
|
70
|
+
defaultWidth?: number | string,
|
|
71
|
+
/** Whether the column allows resizing. */
|
|
72
|
+
allowsResizing?: boolean,
|
|
73
73
|
/** Whether the column allows sorting. */
|
|
74
74
|
allowsSorting?: boolean,
|
|
75
75
|
/** Whether a column is a [row header](https://www.w3.org/TR/wai-aria-1.1/#rowheader) and should be announced by assistive technology during row navigation. */
|