@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.
@@ -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 {TableLayout} from '@react-stately/layout';
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: TableLayout<T>
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 TableLayout({
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 {TableView_DEPRECATED as TableView} from './TableView_DEPRECATED';
15
+ export {TableView} from './TableView';
16
16
  import {Column} from '@react-stately/table';
17
17
  import {SpectrumColumnProps} from '@react-types/table';
18
18
 
package/src/table.css CHANGED
@@ -29,7 +29,7 @@
29
29
 
30
30
  .react-spectrum-Table-cell--alignStart {
31
31
  text-align: start;
32
- justify-content: start;
32
+ justify-content: flex-start;
33
33
  }
34
34
 
35
35
  .react-spectrum-Table-cell--alignCenter {