@react-types/table 3.9.2-nightly.4324 → 3.9.2
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 +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-types/table",
|
|
3
|
-
"version": "3.9.2
|
|
3
|
+
"version": "3.9.2",
|
|
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.2.
|
|
13
|
-
"@react-types/shared": "3.
|
|
12
|
+
"@react-types/grid": "^3.2.3",
|
|
13
|
+
"@react-types/shared": "^3.22.0"
|
|
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": "86b38c87868ce7f262e0df905e5ac4eb2653791d"
|
|
22
22
|
}
|
package/src/index.d.ts
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import {AriaLabelingProps, AsyncLoadable, DOMProps, Key, LinkDOMProps, LoadingState, MultipleSelection, Sortable, SpectrumSelectionProps, StyleProps} from '@react-types/shared';
|
|
14
14
|
import {GridCollection, GridNode} from '@react-types/grid';
|
|
15
|
-
import
|
|
15
|
+
import {JSX, ReactElement, ReactNode} from 'react';
|
|
16
16
|
|
|
17
17
|
/** Widths that result in a constant pixel value for the same Table width. */
|
|
18
18
|
export type ColumnStaticSize = number | `${number}` | `${number}%`; // match regex: /^(\d+)(?=%$)/
|
|
@@ -49,7 +49,7 @@ export interface SpectrumTableProps<T> extends TableProps<T>, SpectrumSelectionP
|
|
|
49
49
|
/** Whether the TableView should be displayed with a quiet style. */
|
|
50
50
|
isQuiet?: boolean,
|
|
51
51
|
/** Sets what the TableView should render when there is no content to display. */
|
|
52
|
-
renderEmptyState?: () =>
|
|
52
|
+
renderEmptyState?: () => JSX.Element,
|
|
53
53
|
/** Handler that is called when a user performs an action on a row. */
|
|
54
54
|
onAction?: (key: Key) => void,
|
|
55
55
|
/**
|