@react-types/table 3.0.0-nightly-a2b69fbc3-260507 → 3.0.0-nightly-8e585dfb4-260513

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 +11 -11
  2. package/src/index.d.ts +36 -11
package/package.json CHANGED
@@ -1,27 +1,27 @@
1
1
  {
2
2
  "name": "@react-types/table",
3
- "version": "3.0.0-nightly-a2b69fbc3-260507",
3
+ "version": "3.0.0-nightly-8e585dfb4-260513",
4
4
  "description": "Spectrum UI components in React",
5
5
  "license": "Apache-2.0",
6
- "types": "src/index.d.ts",
7
6
  "repository": {
8
7
  "type": "git",
9
8
  "url": "https://github.com/adobe/react-spectrum"
10
9
  },
10
+ "types": "src/index.d.ts",
11
+ "publishConfig": {
12
+ "access": "public"
13
+ },
11
14
  "dependencies": {
12
- "@react-spectrum/table": "3.0.0-nightly-a2b69fbc3-260507",
13
- "@react-stately/table": "3.0.0-nightly-a2b69fbc3-260507",
14
- "@react-types/shared": "3.0.0-nightly-a2b69fbc3-260507"
15
+ "@react-spectrum/table": "3.0.0-nightly-8e585dfb4-260513",
16
+ "@react-stately/table": "3.0.0-nightly-8e585dfb4-260513",
17
+ "@react-types/shared": "3.0.0-nightly-8e585dfb4-260513"
15
18
  },
16
- "peerDependencies": {
17
- "@react-spectrum/provider": "3.0.0-nightly-a2b69fbc3-260507",
19
+ "devDependencies": {
18
20
  "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1",
19
21
  "react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"
20
22
  },
21
- "publishConfig": {
22
- "access": "public"
23
- },
24
- "devDependencies": {
23
+ "peerDependencies": {
24
+ "@react-spectrum/provider": "3.0.0-nightly-8e585dfb4-260513",
25
25
  "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1",
26
26
  "react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"
27
27
  }
package/src/index.d.ts CHANGED
@@ -10,46 +10,71 @@
10
10
  * governing permissions and limitations under the License.
11
11
  */
12
12
 
13
- import {AriaLabelingProps, DOMProps, Key, SpectrumSelectionProps, StyleProps} from '@react-types/shared';
13
+ import {
14
+ AriaLabelingProps,
15
+ DOMProps,
16
+ Key,
17
+ SpectrumSelectionProps,
18
+ StyleProps
19
+ } from '@react-types/shared';
14
20
  import {ColumnSize, TableProps} from '@react-stately/table';
15
21
  import {JSX} from 'react';
16
22
 
17
- export {TableProps, ColumnStaticSize, ColumnDynamicSize, ColumnSize, TableHeaderProps, ColumnElement, ColumnRenderer, ColumnProps, RowElement, TableBodyProps, RowProps, CellProps, CellElement, CellRenderer, ITableCollection as TableCollection} from '@react-stately/table';
23
+ export {
24
+ TableProps,
25
+ ColumnStaticSize,
26
+ ColumnDynamicSize,
27
+ ColumnSize,
28
+ TableHeaderProps,
29
+ ColumnElement,
30
+ ColumnRenderer,
31
+ ColumnProps,
32
+ RowElement,
33
+ TableBodyProps,
34
+ RowProps,
35
+ CellProps,
36
+ CellElement,
37
+ CellRenderer,
38
+ ITableCollection as TableCollection
39
+ } from '@react-stately/table';
18
40
  export {SpectrumColumnProps} from '@react-spectrum/table';
19
41
 
20
42
  /**
21
43
  * @deprecated - use SpectrumTableProps from '@adobe/react-spectrum' instead.
22
44
  */
23
- export interface SpectrumTableProps<T> extends TableProps<T>, SpectrumSelectionProps, DOMProps, AriaLabelingProps, StyleProps {
45
+ export interface SpectrumTableProps<T>
46
+ extends TableProps<T>, SpectrumSelectionProps, DOMProps, AriaLabelingProps, StyleProps {
24
47
  /**
25
48
  * Sets the amount of vertical padding within each cell.
49
+ *
26
50
  * @default 'regular'
27
51
  */
28
- density?: 'compact' | 'regular' | 'spacious',
52
+ density?: 'compact' | 'regular' | 'spacious';
29
53
  /**
30
54
  * Sets the overflow behavior for the cell contents.
55
+ *
31
56
  * @default 'truncate'
32
57
  */
33
- overflowMode?: 'wrap' | 'truncate',
58
+ overflowMode?: 'wrap' | 'truncate';
34
59
  /** Whether the TableView should be displayed with a quiet style. */
35
- isQuiet?: boolean,
60
+ isQuiet?: boolean;
36
61
  /** Sets what the TableView should render when there is no content to display. */
37
- renderEmptyState?: () => JSX.Element,
62
+ renderEmptyState?: () => JSX.Element;
38
63
  /** Handler that is called when a user performs an action on a row. */
39
- onAction?: (key: Key) => void,
64
+ onAction?: (key: Key) => void;
40
65
  /**
41
66
  * Handler that is called when a user starts a column resize.
42
67
  */
43
- onResizeStart?: (widths: Map<Key, ColumnSize>) => void,
68
+ onResizeStart?: (widths: Map<Key, ColumnSize>) => void;
44
69
  /**
45
70
  * Handler that is called when a user performs a column resize.
46
71
  * Can be used with the width property on columns to put the column widths into
47
72
  * a controlled state.
48
73
  */
49
- onResize?: (widths: Map<Key, ColumnSize>) => void,
74
+ onResize?: (widths: Map<Key, ColumnSize>) => void;
50
75
  /**
51
76
  * Handler that is called after a user performs a column resize.
52
77
  * Can be used to store the widths of columns for another future session.
53
78
  */
54
- onResizeEnd?: (widths: Map<Key, ColumnSize>) => void
79
+ onResizeEnd?: (widths: Map<Key, ColumnSize>) => void;
55
80
  }