@react-spectrum/table 3.2.0 → 3.2.1-nightly.3293
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/dist/main.css +1 -1
- package/dist/main.js +689 -36
- package/dist/main.js.map +1 -1
- package/dist/module.js +693 -40
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts.map +1 -1
- package/package.json +27 -27
- package/src/Resizer.tsx +0 -1
- package/src/TableView.tsx +11 -12
- package/src/TableView_DEPRECATED.tsx +3 -3
- package/src/index.ts +1 -1
- package/src/table.css +1 -1
|
@@ -26,7 +26,7 @@ import {Rect, ReusableView, useVirtualizerState} from '@react-stately/virtualize
|
|
|
26
26
|
import {SpectrumColumnProps, SpectrumTableProps} from '@react-types/table';
|
|
27
27
|
import styles from '@adobe/spectrum-css-temp/components/table/vars.css';
|
|
28
28
|
import stylesOverrides from './table.css';
|
|
29
|
-
import {
|
|
29
|
+
import {TableLayout_DEPRECATED} from '@react-stately/layout';
|
|
30
30
|
import {TableState, useTableState} from '@react-stately/table';
|
|
31
31
|
import {Tooltip, TooltipTrigger} from '@react-spectrum/tooltip';
|
|
32
32
|
import {useHover} from '@react-aria/interactions';
|
|
@@ -77,7 +77,7 @@ const SELECTION_CELL_DEFAULT_WIDTH = {
|
|
|
77
77
|
|
|
78
78
|
interface TableContextValue<T> {
|
|
79
79
|
state: TableState<T>,
|
|
80
|
-
layout:
|
|
80
|
+
layout: TableLayout_DEPRECATED<T>
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
const TableContext = React.createContext<TableContextValue<unknown>>(null);
|
|
@@ -109,7 +109,7 @@ function TableView_DEPRECATED<T extends object>(props: SpectrumTableProps<T>, re
|
|
|
109
109
|
|
|
110
110
|
let {scale} = useProvider();
|
|
111
111
|
let density = props.density || 'regular';
|
|
112
|
-
let layout = useMemo(() => new
|
|
112
|
+
let layout = useMemo(() => new TableLayout_DEPRECATED({
|
|
113
113
|
// If props.rowHeight is auto, then use estimated heights based on scale, otherwise use fixed heights.
|
|
114
114
|
rowHeight: props.overflowMode === 'wrap'
|
|
115
115
|
? null
|
package/src/index.ts
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
/// <reference types="css-module-types" />
|
|
14
14
|
|
|
15
|
-
export {
|
|
15
|
+
export {TableView} from './TableView';
|
|
16
16
|
import {Column} from '@react-stately/table';
|
|
17
17
|
import {SpectrumColumnProps} from '@react-types/table';
|
|
18
18
|
|