@react-types/table 3.0.1-nightly.2949 → 3.0.1-nightly.2967

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 +5 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-types/table",
3
- "version": "3.0.1-nightly.2949+ab0323af3",
3
+ "version": "3.0.1-nightly.2967+252940a26",
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.1-nightly.2949+ab0323af3",
13
- "@react-types/shared": "3.0.0-nightly.1263+ab0323af3"
12
+ "@react-types/grid": "3.0.1-nightly.2967+252940a26",
13
+ "@react-types/shared": "3.0.0-nightly.1281+252940a26"
14
14
  },
15
15
  "peerDependencies": {
16
16
  "react": "^16.8.0 || ^17.0.0-rc.1"
@@ -18,5 +18,5 @@
18
18
  "publishConfig": {
19
19
  "access": "public"
20
20
  },
21
- "gitHead": "ab0323af3512117c9607304a66a33faf026929c9"
21
+ "gitHead": "252940a267857896b75c988a5cc0ec199e740fcb"
22
22
  }
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, CollectionChildren, DOMProps, LoadingState, MultipleSelection, Sortable, StyleProps} from '@react-types/shared';
13
+ import {AriaLabelingProps, AsyncLoadable, CollectionChildren, DOMProps, LoadingState, MultipleSelection, Sortable, SpectrumSelectionProps, StyleProps} from '@react-types/shared';
14
14
  import {GridCollection, GridNode} from '@react-types/grid';
15
15
  import {Key, ReactElement, ReactNode} from 'react';
16
16
 
@@ -21,7 +21,7 @@ export interface TableProps<T> extends MultipleSelection, Sortable {
21
21
  disabledKeys?: Iterable<Key>
22
22
  }
23
23
 
24
- export interface SpectrumTableProps<T> extends TableProps<T>, DOMProps, AriaLabelingProps, StyleProps {
24
+ export interface SpectrumTableProps<T> extends TableProps<T>, SpectrumSelectionProps, DOMProps, AriaLabelingProps, StyleProps {
25
25
  /**
26
26
  * Sets the amount of vertical padding within each cell.
27
27
  * @default 'regular'
@@ -35,7 +35,9 @@ export interface SpectrumTableProps<T> extends TableProps<T>, DOMProps, AriaLabe
35
35
  /** Whether the TableView should be displayed with a quiet style. */
36
36
  isQuiet?: boolean,
37
37
  /** Sets what the TableView should render when there is no content to display. */
38
- renderEmptyState?: () => JSX.Element
38
+ renderEmptyState?: () => JSX.Element,
39
+ /** Handler that is called when a user performs an action on a row. */
40
+ onAction?: (key: Key) => void
39
41
  }
40
42
 
41
43
  export interface TableHeaderProps<T> {