@react-types/table 3.2.1-nightly.3375 → 3.3.1-nightly.3382
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 +16 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-types/table",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.1-nightly.3382+cd7c0ec91",
|
|
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.1.
|
|
13
|
-
"@react-types/shared": "3.0.0-nightly.
|
|
12
|
+
"@react-types/grid": "3.1.3-nightly.3382+cd7c0ec91",
|
|
13
|
+
"@react-types/shared": "3.0.0-nightly.1682+cd7c0ec91"
|
|
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": "cd7c0ec917122c7612f653c22f8ed558f8b66ecd"
|
|
22
22
|
}
|
package/src/index.d.ts
CHANGED
|
@@ -38,9 +38,15 @@ export interface SpectrumTableProps<T> extends TableProps<T>, SpectrumSelectionP
|
|
|
38
38
|
renderEmptyState?: () => JSX.Element,
|
|
39
39
|
/** Handler that is called when a user performs an action on a row. */
|
|
40
40
|
onAction?: (key: Key) => void,
|
|
41
|
-
/**
|
|
41
|
+
/**
|
|
42
|
+
* Handler that is called when a user performs a column resize.
|
|
43
|
+
* @private
|
|
44
|
+
*/
|
|
42
45
|
onColumnResize?: (affectedColumns: {key: Key, width: number}[]) => void,
|
|
43
|
-
/**
|
|
46
|
+
/**
|
|
47
|
+
* Handler that is called when a column resize ends.
|
|
48
|
+
* @private
|
|
49
|
+
*/
|
|
44
50
|
onColumnResizeEnd?: (affectedColumns: {key: Key, width: number}[]) => void
|
|
45
51
|
}
|
|
46
52
|
|
|
@@ -66,9 +72,15 @@ export interface ColumnProps<T> {
|
|
|
66
72
|
minWidth?: number | string,
|
|
67
73
|
/** The maximum width of the column. */
|
|
68
74
|
maxWidth?: number | string,
|
|
69
|
-
/**
|
|
75
|
+
/**
|
|
76
|
+
* The default width of the column.
|
|
77
|
+
* @private
|
|
78
|
+
*/
|
|
70
79
|
defaultWidth?: number | string,
|
|
71
|
-
/**
|
|
80
|
+
/**
|
|
81
|
+
* Whether the column allows resizing.
|
|
82
|
+
* @private
|
|
83
|
+
*/
|
|
72
84
|
allowsResizing?: boolean,
|
|
73
85
|
/** Whether the column allows sorting. */
|
|
74
86
|
allowsSorting?: boolean,
|