Skip to content

Commit 96a42e6

Browse files
authored
Adding table column resizing hooks to aria and stately monorepos (#4693)
1 parent 1dd4d3f commit 96a42e6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/react-aria/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export {useSeparator} from '@react-aria/separator';
3838
export {SSRProvider, useIsSSR} from '@react-aria/ssr';
3939
export {useSlider, useSliderThumb} from '@react-aria/slider';
4040
export {useSwitch} from '@react-aria/switch';
41-
export {useTable, useTableCell, useTableColumnHeader, useTableHeaderRow, useTableRow, useTableRowGroup, useTableSelectAllCheckbox, useTableSelectionCheckbox} from '@react-aria/table';
41+
export {useTable, useTableCell, useTableColumnHeader, useTableColumnResize, useTableHeaderRow, useTableRow, useTableRowGroup, useTableSelectAllCheckbox, useTableSelectionCheckbox} from '@react-aria/table';
4242
export {useTab, useTabList, useTabPanel} from '@react-aria/tabs';
4343
export {useTag, useTagGroup} from '@react-aria/tag';
4444
export {useTextField} from '@react-aria/textfield';
@@ -73,7 +73,7 @@ export type {SeparatorAria, SeparatorProps} from '@react-aria/separator';
7373
export type {SSRProviderProps} from '@react-aria/ssr';
7474
export type {AriaSliderProps, AriaSliderThumbProps, AriaSliderThumbOptions, SliderAria, SliderThumbAria} from '@react-aria/slider';
7575
export type {AriaSwitchProps, SwitchAria} from '@react-aria/switch';
76-
export type {AriaTableCellProps, AriaTableColumnHeaderProps, AriaTableProps, AriaTableSelectionCheckboxProps, GridAria, GridRowAria, GridRowProps, TableCellAria, TableColumnHeaderAria, TableHeaderRowAria, TableSelectAllCheckboxAria, TableSelectionCheckboxAria} from '@react-aria/table';
76+
export type {AriaTableCellProps, AriaTableColumnHeaderProps, AriaTableColumnResizeProps, AriaTableProps, AriaTableSelectionCheckboxProps, GridAria, GridRowAria, GridRowProps, TableCellAria, TableColumnHeaderAria, TableColumnResizeAria, TableHeaderRowAria, TableSelectAllCheckboxAria, TableSelectionCheckboxAria} from '@react-aria/table';
7777
export type {AriaTabListProps, AriaTabListOptions, AriaTabPanelProps, AriaTabProps, TabAria, TabListAria, TabPanelAria} from '@react-aria/tabs';
7878
export type {AriaTagGroupProps, AriaTagProps, TagAria, TagGroupAria} from '@react-aria/tag';
7979
export type {AriaTextFieldOptions, AriaTextFieldProps, TextFieldAria} from '@react-aria/textfield';

packages/react-stately/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export type {SelectProps, SelectState, SelectStateOptions} from '@react-stately/
2525
export type {SliderState, SliderStateOptions} from '@react-stately/slider';
2626
export type {MultipleSelectionManager, MultipleSelectionState, SingleSelectionState} from '@react-stately/selection';
2727
export type {NumberFieldState, NumberFieldStateOptions} from '@react-stately/numberfield';
28-
export type {TableState, TableStateProps, TableHeaderProps, TableBodyProps, ColumnProps, RowProps, CellProps} from '@react-stately/table';
28+
export type {TableState, TableStateProps, TableHeaderProps, TableBodyProps, ColumnProps, RowProps, CellProps, TableColumnResizeState, TableColumnResizeStateProps} from '@react-stately/table';
2929
export type {TabListProps, TabListState} from '@react-stately/tabs';
3030
export type {ToggleProps, ToggleState} from '@react-stately/toggle';
3131
export type {TooltipTriggerProps, TooltipTriggerState} from '@react-stately/tooltip';
@@ -48,7 +48,7 @@ export {useSearchFieldState} from '@react-stately/searchfield';
4848
export {useSelectState} from '@react-stately/select';
4949
export {useSliderState} from '@react-stately/slider';
5050
export {useMultipleSelectionState} from '@react-stately/selection';
51-
export {useTableState, TableHeader, TableBody, Column, Row, Cell} from '@react-stately/table';
51+
export {useTableState, TableHeader, TableBody, Column, Row, Cell, useTableColumnResizeState} from '@react-stately/table';
5252
export {useTabListState} from '@react-stately/tabs';
5353
export {useToggleState} from '@react-stately/toggle';
5454
export {useTooltipTriggerState} from '@react-stately/tooltip';

0 commit comments

Comments
 (0)