@box/blueprint-web 12.76.2 → 12.77.0
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.
|
@@ -6,6 +6,7 @@ import { type TableHeaderProps } from './table-header';
|
|
|
6
6
|
export declare const Table: import("react").ForwardRefExoticComponent<import("react-aria-components").TableProps & {
|
|
7
7
|
isColumnDroppingEnabled?: boolean;
|
|
8
8
|
isColumnResizingEnabled?: boolean;
|
|
9
|
+
resizableTableContainerProps?: import("react-aria-components").ResizableTableContainerProps;
|
|
9
10
|
onVisibleColumnsChange?: import("./utils/column-visibility-context/column-metadata").OnColumnVisibilityChange;
|
|
10
11
|
onSortChange?: (sortDescriptor: import("react-aria-components").SortDescriptor) => void;
|
|
11
12
|
sortDescriptor?: import("react-aria-components").SortDescriptor;
|
|
@@ -6,6 +6,7 @@ import { type TableHeaderProps } from './table-header';
|
|
|
6
6
|
export declare const Table: import("react").ForwardRefExoticComponent<import("react-aria-components").TableProps & {
|
|
7
7
|
isColumnDroppingEnabled?: boolean;
|
|
8
8
|
isColumnResizingEnabled?: boolean;
|
|
9
|
+
resizableTableContainerProps?: import("react-aria-components").ResizableTableContainerProps;
|
|
9
10
|
onVisibleColumnsChange?: import("./utils/column-visibility-context/column-metadata").OnColumnVisibilityChange;
|
|
10
11
|
onSortChange?: (sortDescriptor: import("react-aria-components").SortDescriptor) => void;
|
|
11
12
|
sortDescriptor?: import("react-aria-components").SortDescriptor;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type TableProps as PrimitiveTableProps, type SortDescriptor } from 'react-aria-components';
|
|
1
|
+
import { type TableProps as PrimitiveTableProps, type ResizableTableContainerProps, type SortDescriptor } from 'react-aria-components';
|
|
2
2
|
import { type OnColumnVisibilityChange } from './utils/column-visibility-context/column-metadata';
|
|
3
3
|
export type TableProps = PrimitiveTableProps & {
|
|
4
4
|
/**
|
|
@@ -9,6 +9,10 @@ export type TableProps = PrimitiveTableProps & {
|
|
|
9
9
|
* Setting this to true enables the column resizing functionality.
|
|
10
10
|
*/
|
|
11
11
|
isColumnResizingEnabled?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Props for the ResizableTableContainer component
|
|
14
|
+
*/
|
|
15
|
+
resizableTableContainerProps?: ResizableTableContainerProps;
|
|
12
16
|
/**
|
|
13
17
|
* Callback fired when the visibility of columns changes.
|
|
14
18
|
* @param columnVisibility - An object containing:
|
|
@@ -42,6 +46,10 @@ export declare const Table: import("react").ForwardRefExoticComponent<PrimitiveT
|
|
|
42
46
|
* Setting this to true enables the column resizing functionality.
|
|
43
47
|
*/
|
|
44
48
|
isColumnResizingEnabled?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Props for the ResizableTableContainer component
|
|
51
|
+
*/
|
|
52
|
+
resizableTableContainerProps?: ResizableTableContainerProps;
|
|
45
53
|
/**
|
|
46
54
|
* Callback fired when the visibility of columns changes.
|
|
47
55
|
* @param columnVisibility - An object containing:
|
|
@@ -22,6 +22,7 @@ const Table = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
22
22
|
sortDescriptor,
|
|
23
23
|
defaultSortDescriptor,
|
|
24
24
|
onSortChange,
|
|
25
|
+
resizableTableContainerProps,
|
|
25
26
|
...rest
|
|
26
27
|
} = props;
|
|
27
28
|
const resizableContainerRef = useRef(null);
|
|
@@ -43,6 +44,7 @@ const Table = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
43
44
|
children: jsx(ResizableTableContainer, {
|
|
44
45
|
ref: resizableContainerRef,
|
|
45
46
|
className: styles.resizableTableContainer,
|
|
47
|
+
...resizableTableContainerProps,
|
|
46
48
|
children: jsx(TableInner, {
|
|
47
49
|
ref: ref,
|
|
48
50
|
...rest,
|