@react-types/table 3.5.1-nightly.3764 → 3.5.1-nightly.3785

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 +1 -35
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-types/table",
3
- "version": "3.5.1-nightly.3764+68044ea43",
3
+ "version": "3.5.1-nightly.3785+e67d48d49",
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.7-nightly.3764+68044ea43",
13
- "@react-types/shared": "3.0.0-nightly.2064+68044ea43"
12
+ "@react-types/grid": "3.1.7-nightly.3785+e67d48d49",
13
+ "@react-types/shared": "3.0.0-nightly.2085+e67d48d49"
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": "68044ea4334e64e6d19525cd24e9b24821a7f861"
21
+ "gitHead": "e67d48d4935b772f915b08f1d695d2ebafb876f0"
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, SpectrumSelectionProps, StyleProps} from '@react-types/shared';
13
+ import {AsyncLoadable, CollectionChildren, LoadingState, MultipleSelection, Sortable} from '@react-types/shared';
14
14
  import {GridCollection, GridNode} from '@react-types/grid';
15
15
  import {Key, ReactElement, ReactNode} from 'react';
16
16
 
@@ -32,40 +32,6 @@ export interface TableProps<T> extends MultipleSelection, Sortable {
32
32
  disabledKeys?: Iterable<Key>
33
33
  }
34
34
 
35
- export interface SpectrumTableProps<T> extends TableProps<T>, SpectrumSelectionProps, DOMProps, AriaLabelingProps, StyleProps {
36
- /**
37
- * Sets the amount of vertical padding within each cell.
38
- * @default 'regular'
39
- */
40
- density?: 'compact' | 'regular' | 'spacious',
41
- /**
42
- * Sets the overflow behavior for the cell contents.
43
- * @default 'truncate'
44
- */
45
- overflowMode?: 'wrap' | 'truncate',
46
- /** Whether the TableView should be displayed with a quiet style. */
47
- isQuiet?: boolean,
48
- /** Sets what the TableView should render when there is no content to display. */
49
- renderEmptyState?: () => JSX.Element,
50
- /** Handler that is called when a user performs an action on a row. */
51
- onAction?: (key: Key) => void,
52
- /**
53
- * Handler that is called when a user starts a column resize.
54
- */
55
- onResizeStart?: (widths: Map<Key, ColumnSize>) => void,
56
- /**
57
- * Handler that is called when a user performs a column resize.
58
- * Can be used with the width property on columns to put the column widths into
59
- * a controlled state.
60
- */
61
- onResize?: (widths: Map<Key, ColumnSize>) => void,
62
- /**
63
- * Handler that is called after a user performs a column resize.
64
- * Can be used to store the widths of columns for another future session.
65
- */
66
- onResizeEnd?: (widths: Map<Key, ColumnSize>) => void
67
- }
68
-
69
35
  export interface TableHeaderProps<T> {
70
36
  /** A list of table columns. */
71
37
  columns?: T[],