@paubox/ui 0.12.2 → 0.13.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.
- package/index.esm.js +38 -18
- package/package.json +1 -1
- package/src/lib/Modal/Modal.d.ts +2 -1
- package/src/lib/Pagination/Pagination.d.ts +2 -1
- package/src/lib/SearchBar/SearchBar.d.ts +2 -1
- package/src/lib/Table/ContextMenuCell.d.ts +2 -1
- package/src/lib/Table/Table.d.ts +2 -1
- package/src/lib/Table/TableBody.d.ts +2 -1
- package/src/lib/Table/TableHeader.d.ts +2 -1
package/index.esm.js
CHANGED
|
@@ -28465,7 +28465,7 @@ var ModalHeader = styled.div(_templateObject2$5());
|
|
|
28465
28465
|
var ModalBody = styled.div(_templateObject3$4());
|
|
28466
28466
|
var ModalFooter = styled.div(_templateObject4$2(), spacing(1));
|
|
28467
28467
|
var Modal = function(param) {
|
|
28468
|
-
var open = param.open, onClose = param.onClose, loading = param.loading, title = param.title, header = param.header, children = param.children, actions = param.actions, style = param.style;
|
|
28468
|
+
var open = param.open, onClose = param.onClose, loading = param.loading, title = param.title, header = param.header, children = param.children, actions = param.actions, style = param.style, _param_testId = param.testId, testId = _param_testId === void 0 ? 'modal' : _param_testId;
|
|
28469
28469
|
return /*#__PURE__*/ jsx(StyledModal, {
|
|
28470
28470
|
open: open,
|
|
28471
28471
|
onClose: onClose,
|
|
@@ -28498,6 +28498,7 @@ var Modal = function(param) {
|
|
|
28498
28498
|
right: spacing(2),
|
|
28499
28499
|
background: 'transparent'
|
|
28500
28500
|
},
|
|
28501
|
+
"data-testid": "".concat(testId, "-close-button"),
|
|
28501
28502
|
children: /*#__PURE__*/ jsx(Close, {
|
|
28502
28503
|
fontSize: 24
|
|
28503
28504
|
})
|
|
@@ -28512,7 +28513,9 @@ var Modal = function(param) {
|
|
|
28512
28513
|
var label = _param.label, rest = _object_without_properties$3(_param, [
|
|
28513
28514
|
"label"
|
|
28514
28515
|
]);
|
|
28515
|
-
return /*#__PURE__*/ jsx(Button, _object_spread_props$7(_object_spread$7({
|
|
28516
|
+
return /*#__PURE__*/ jsx(Button, _object_spread_props$7(_object_spread$7({
|
|
28517
|
+
"data-testid": "".concat(testId, "-").concat(label.replace(' ', '-').toLowerCase(), "-button")
|
|
28518
|
+
}, rest), {
|
|
28516
28519
|
children: label
|
|
28517
28520
|
}));
|
|
28518
28521
|
})
|
|
@@ -28556,7 +28559,7 @@ function _templateObject1$6() {
|
|
|
28556
28559
|
var PaginationContainer = styled.div(_templateObject$8(), spacing(2), spacing(1), spacing(1));
|
|
28557
28560
|
var PageControls = styled.div(_templateObject1$6());
|
|
28558
28561
|
var Pagination = function(param) {
|
|
28559
|
-
var pageInfo = param.pageInfo, _param_isLoading = param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, onPageSizeChange = param.onPageSizeChange, onPageChange = param.onPageChange;
|
|
28562
|
+
var pageInfo = param.pageInfo, _param_isLoading = param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, onPageSizeChange = param.onPageSizeChange, onPageChange = param.onPageChange, _param_testId = param.testId, testId = _param_testId === void 0 ? 'pagination' : _param_testId;
|
|
28560
28563
|
return /*#__PURE__*/ jsxs(PaginationContainer, {
|
|
28561
28564
|
children: [
|
|
28562
28565
|
/*#__PURE__*/ jsxs(PageControls, {
|
|
@@ -28580,6 +28583,7 @@ var Pagination = function(param) {
|
|
|
28580
28583
|
style: {
|
|
28581
28584
|
fontSize: '0.75rem'
|
|
28582
28585
|
},
|
|
28586
|
+
"data-testid": "".concat(testId, "-pagesize-select"),
|
|
28583
28587
|
children: [
|
|
28584
28588
|
/*#__PURE__*/ jsx("option", {
|
|
28585
28589
|
value: "50",
|
|
@@ -28611,6 +28615,7 @@ var Pagination = function(param) {
|
|
|
28611
28615
|
padding: spacing(1),
|
|
28612
28616
|
marginLeft: spacing(1)
|
|
28613
28617
|
},
|
|
28618
|
+
"data-testid": "".concat(testId, "-prev-button"),
|
|
28614
28619
|
children: /*#__PURE__*/ jsx(ChevronLeft, {})
|
|
28615
28620
|
}),
|
|
28616
28621
|
/*#__PURE__*/ jsx(Button, {
|
|
@@ -28624,6 +28629,7 @@ var Pagination = function(param) {
|
|
|
28624
28629
|
padding: spacing(1),
|
|
28625
28630
|
marginLeft: spacing(1)
|
|
28626
28631
|
},
|
|
28632
|
+
"data-testid": "".concat(testId, "-next-button"),
|
|
28627
28633
|
children: /*#__PURE__*/ jsx(ChevronRight, {})
|
|
28628
28634
|
})
|
|
28629
28635
|
]
|
|
@@ -28909,13 +28915,14 @@ var IconWrapper = styled(IconWrapper$3)(_templateObject1$5(), neutral200, neutra
|
|
|
28909
28915
|
var StyledInput = styled(BaseInput$1)(_templateObject2$4());
|
|
28910
28916
|
var GoButton = styled(Button)(_templateObject3$3(), spacing(1), spacing(1));
|
|
28911
28917
|
var SearchBar = function(_param) {
|
|
28912
|
-
var placeholder = _param.placeholder, _param_error = _param.error, error = _param_error === void 0 ? false : _param_error, onClear = _param.onClear, onSubmit = _param.onSubmit, _param_showButton = _param.showButton, showButton = _param_showButton === void 0 ? true : _param_showButton, _param_showFilters = _param.showFilters, showFilters = _param_showFilters === void 0 ? false : _param_showFilters, props = _object_without_properties$2(_param, [
|
|
28918
|
+
var placeholder = _param.placeholder, _param_error = _param.error, error = _param_error === void 0 ? false : _param_error, onClear = _param.onClear, onSubmit = _param.onSubmit, _param_showButton = _param.showButton, showButton = _param_showButton === void 0 ? true : _param_showButton, _param_showFilters = _param.showFilters, showFilters = _param_showFilters === void 0 ? false : _param_showFilters, _param_testId = _param.testId, testId = _param_testId === void 0 ? 'search' : _param_testId, props = _object_without_properties$2(_param, [
|
|
28913
28919
|
"placeholder",
|
|
28914
28920
|
"error",
|
|
28915
28921
|
"onClear",
|
|
28916
28922
|
"onSubmit",
|
|
28917
28923
|
"showButton",
|
|
28918
|
-
"showFilters"
|
|
28924
|
+
"showFilters",
|
|
28925
|
+
"testId"
|
|
28919
28926
|
]);
|
|
28920
28927
|
var handleKeyDown = function(e) {
|
|
28921
28928
|
switch(e.key){
|
|
@@ -28941,7 +28948,8 @@ var SearchBar = function(_param) {
|
|
|
28941
28948
|
/*#__PURE__*/ jsx(StyledInput, _object_spread_props$5(_object_spread$5({}, props), {
|
|
28942
28949
|
onKeyDown: handleKeyDown,
|
|
28943
28950
|
error: error,
|
|
28944
|
-
placeholder: placeholder || 'Search'
|
|
28951
|
+
placeholder: placeholder || 'Search',
|
|
28952
|
+
"data-testid": "".concat(testId, "-input")
|
|
28945
28953
|
})),
|
|
28946
28954
|
Boolean(props.value && typeof onClear === 'function') && /*#__PURE__*/ jsx(IconButton, {
|
|
28947
28955
|
onClick: onClear,
|
|
@@ -28951,13 +28959,15 @@ var SearchBar = function(_param) {
|
|
|
28951
28959
|
style: {
|
|
28952
28960
|
position: 'absolute',
|
|
28953
28961
|
right: showButton ? spacing(10) : spacing(1)
|
|
28954
|
-
}
|
|
28962
|
+
},
|
|
28963
|
+
"data-testid": "".concat(testId, "-clear-button")
|
|
28955
28964
|
}),
|
|
28956
28965
|
showButton && /*#__PURE__*/ jsx(GoButton, {
|
|
28957
28966
|
color: "primary",
|
|
28958
28967
|
size: "large",
|
|
28959
28968
|
disabled: !props.value,
|
|
28960
28969
|
onClick: onSubmit,
|
|
28970
|
+
"data-testid": "".concat(testId, "-go-button"),
|
|
28961
28971
|
children: "Go"
|
|
28962
28972
|
})
|
|
28963
28973
|
]
|
|
@@ -33115,7 +33125,7 @@ var ResizeHandleContainer = styled.div(_templateObject3$2());
|
|
|
33115
33125
|
var ResizeHandle = styled.div(_templateObject4$1(), neutral300);
|
|
33116
33126
|
var SortIcon = styled.span(_templateObject5(), spacing(1));
|
|
33117
33127
|
var TableHeader = function(param) {
|
|
33118
|
-
var table = param.table, disableControls = param.disableControls, dense = param.dense;
|
|
33128
|
+
var table = param.table, disableControls = param.disableControls, dense = param.dense, _param_testId = param.testId, testId = _param_testId === void 0 ? 'table' : _param_testId;
|
|
33119
33129
|
return /*#__PURE__*/ jsx(StyledHeader, {
|
|
33120
33130
|
children: table.getHeaderGroups().map(function(headerGroup) {
|
|
33121
33131
|
return /*#__PURE__*/ jsx("tr", {
|
|
@@ -33144,6 +33154,7 @@ var TableHeader = function(param) {
|
|
|
33144
33154
|
width: (actionHeaders === null || actionHeaders === void 0 ? void 0 : actionHeaders.includes(header === null || header === void 0 ? void 0 : header.id)) ? "".concat(header.getSize(), "px") : '100%',
|
|
33145
33155
|
cursor: header.column.getCanSort() ? 'pointer' : 'default'
|
|
33146
33156
|
},
|
|
33157
|
+
"data-testid": header.column.getCanSort() ? "".concat(testId, "-column-header-").concat(header.id.replace(' ', '-').toLowerCase(), "-sort-button") : undefined,
|
|
33147
33158
|
children: [
|
|
33148
33159
|
flexRender(header.column.columnDef.header, header.getContext()),
|
|
33149
33160
|
header.column.getCanSort() && /*#__PURE__*/ jsxs(SortIcon, {
|
|
@@ -33232,7 +33243,7 @@ var Tr = styled.tr(_templateObject2$2(), function(props) {
|
|
|
33232
33243
|
});
|
|
33233
33244
|
var Td = styled(Typography)(_templateObject3$1(), neutral300);
|
|
33234
33245
|
var TableBody = function(param) {
|
|
33235
|
-
var table = param.table, columnWidths = param.columnWidths, enableRowSelection = param.enableRowSelection, onRowClick = param.onRowClick, dense = param.dense;
|
|
33246
|
+
var table = param.table, columnWidths = param.columnWidths, enableRowSelection = param.enableRowSelection, onRowClick = param.onRowClick, dense = param.dense, _param_testId = param.testId, testId = _param_testId === void 0 ? 'table' : _param_testId;
|
|
33236
33247
|
return /*#__PURE__*/ jsxs(StyledTableBody, {
|
|
33237
33248
|
children: [
|
|
33238
33249
|
/*#__PURE__*/ jsx("colgroup", {
|
|
@@ -33253,6 +33264,7 @@ var TableBody = function(param) {
|
|
|
33253
33264
|
background: row.getIsSelected() ? primary100 : undefined
|
|
33254
33265
|
},
|
|
33255
33266
|
enableHover: rowClickEnabled,
|
|
33267
|
+
"data-testid": "".concat(testId, "-row-").concat(row.id),
|
|
33256
33268
|
children: row.getVisibleCells().map(function(cell) {
|
|
33257
33269
|
return /*#__PURE__*/ jsx(Td, {
|
|
33258
33270
|
variant: "paragraph200Regular",
|
|
@@ -33292,7 +33304,7 @@ function _templateObject$3() {
|
|
|
33292
33304
|
}
|
|
33293
33305
|
var ContextMenuButton = styled(Button)(_templateObject$3(), spacing(0.5));
|
|
33294
33306
|
var ContextMenuCell = function(param) {
|
|
33295
|
-
var row = param.row, setOpenMenuId = param.setOpenMenuId, openMenuId = param.openMenuId, contextMenuActions = param.contextMenuActions;
|
|
33307
|
+
var row = param.row, setOpenMenuId = param.setOpenMenuId, openMenuId = param.openMenuId, contextMenuActions = param.contextMenuActions, _param_testId = param.testId, testId = _param_testId === void 0 ? 'table' : _param_testId;
|
|
33296
33308
|
var cellRef = useRef(null);
|
|
33297
33309
|
return /*#__PURE__*/ jsxs("div", {
|
|
33298
33310
|
ref: cellRef,
|
|
@@ -33305,6 +33317,7 @@ var ContextMenuCell = function(param) {
|
|
|
33305
33317
|
e.stopPropagation();
|
|
33306
33318
|
setOpenMenuId(openMenuId === row.id ? null : row.id);
|
|
33307
33319
|
},
|
|
33320
|
+
"data-testid": "".concat(testId, "-row-").concat(row.id, "-context-menu-button"),
|
|
33308
33321
|
children: /*#__PURE__*/ jsx(MoreVertical, {})
|
|
33309
33322
|
}),
|
|
33310
33323
|
/*#__PURE__*/ jsx(Popper, {
|
|
@@ -33326,7 +33339,8 @@ var ContextMenuCell = function(param) {
|
|
|
33326
33339
|
setOpenMenuId(null);
|
|
33327
33340
|
}
|
|
33328
33341
|
},
|
|
33329
|
-
label: action.label
|
|
33342
|
+
label: action.label,
|
|
33343
|
+
"data-testid": "".concat(testId, "-row-").concat(row.id, "-context-menu-").concat(action.label.replace(' ', '-').toLowerCase(), "-button")
|
|
33330
33344
|
}, index);
|
|
33331
33345
|
})
|
|
33332
33346
|
})
|
|
@@ -33476,7 +33490,7 @@ var TableContainer = styled(/*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
33476
33490
|
}))(_templateObject$2(), neutral300, spacing(1));
|
|
33477
33491
|
var TableWrapper = styled.table(_templateObject1$2());
|
|
33478
33492
|
var Table = function(param) {
|
|
33479
|
-
var columns = param.columns, _param_data = param.data, data = _param_data === void 0 ? [] : _param_data, getRowId = param.getRowId, _param_isLoading = param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, pageInfo = param.pageInfo, onPageSizeChange = param.onPageSizeChange, onPageChange = param.onPageChange, sortBy = param.sortBy, sortOrder = param.sortOrder, onSortChange = param.onSortChange, _param_enableRowSelection = param.enableRowSelection, enableRowSelection = _param_enableRowSelection === void 0 ? false : _param_enableRowSelection, _param_selectedRows = param.selectedRows, selectedRows = _param_selectedRows === void 0 ? {} : _param_selectedRows, onRowSelectionChange = param.onRowSelectionChange, onRowClick = param.onRowClick, contextMenuActions = param.contextMenuActions, _param_dense = param.dense, dense = _param_dense === void 0 ? false : _param_dense, height = param.height, error = param.error;
|
|
33493
|
+
var columns = param.columns, _param_data = param.data, data = _param_data === void 0 ? [] : _param_data, getRowId = param.getRowId, _param_isLoading = param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, pageInfo = param.pageInfo, onPageSizeChange = param.onPageSizeChange, onPageChange = param.onPageChange, sortBy = param.sortBy, sortOrder = param.sortOrder, onSortChange = param.onSortChange, _param_enableRowSelection = param.enableRowSelection, enableRowSelection = _param_enableRowSelection === void 0 ? false : _param_enableRowSelection, _param_selectedRows = param.selectedRows, selectedRows = _param_selectedRows === void 0 ? {} : _param_selectedRows, onRowSelectionChange = param.onRowSelectionChange, onRowClick = param.onRowClick, contextMenuActions = param.contextMenuActions, _param_dense = param.dense, dense = _param_dense === void 0 ? false : _param_dense, height = param.height, error = param.error, _param_testId = param.testId, testId = _param_testId === void 0 ? 'table' : _param_testId;
|
|
33480
33494
|
var containerRef = useRef(null);
|
|
33481
33495
|
var _useState = _sliced_to_array$1(useState({}), 2), columnSizing = _useState[0], setColumnSizing = _useState[1];
|
|
33482
33496
|
var _useState1 = _sliced_to_array$1(useState(null), 2), openMenuId = _useState1[0], setOpenMenuId = _useState1[1];
|
|
@@ -33514,7 +33528,8 @@ var Table = function(param) {
|
|
|
33514
33528
|
checked: table.getIsAllRowsSelected(),
|
|
33515
33529
|
indeterminate: table.getIsSomeRowsSelected(),
|
|
33516
33530
|
onChange: table.getToggleAllPageRowsSelectedHandler(),
|
|
33517
|
-
disabled: disableControls
|
|
33531
|
+
disabled: disableControls,
|
|
33532
|
+
"data-testid": "".concat(testId, "-header-checkbox")
|
|
33518
33533
|
});
|
|
33519
33534
|
},
|
|
33520
33535
|
cell: function(param) {
|
|
@@ -33526,7 +33541,8 @@ var Table = function(param) {
|
|
|
33526
33541
|
onClick: function(e) {
|
|
33527
33542
|
return e.stopPropagation();
|
|
33528
33543
|
},
|
|
33529
|
-
onChange: row.getToggleSelectedHandler()
|
|
33544
|
+
onChange: row.getToggleSelectedHandler(),
|
|
33545
|
+
"data-testid": "".concat(testId, "-row-").concat(row.id, "-checkbox")
|
|
33530
33546
|
});
|
|
33531
33547
|
},
|
|
33532
33548
|
enableResizing: false
|
|
@@ -33545,7 +33561,8 @@ var Table = function(param) {
|
|
|
33545
33561
|
row: row,
|
|
33546
33562
|
setOpenMenuId: setOpenMenuId,
|
|
33547
33563
|
openMenuId: openMenuId,
|
|
33548
|
-
contextMenuActions: contextMenuActions
|
|
33564
|
+
contextMenuActions: contextMenuActions,
|
|
33565
|
+
testId: testId
|
|
33549
33566
|
});
|
|
33550
33567
|
},
|
|
33551
33568
|
enableResizing: false
|
|
@@ -33654,14 +33671,16 @@ var Table = function(param) {
|
|
|
33654
33671
|
table: table,
|
|
33655
33672
|
columnWidths: columnWidths,
|
|
33656
33673
|
disableControls: disableControls,
|
|
33657
|
-
dense: dense
|
|
33674
|
+
dense: dense,
|
|
33675
|
+
testId: testId
|
|
33658
33676
|
}),
|
|
33659
33677
|
/*#__PURE__*/ jsx(TableBody, {
|
|
33660
33678
|
table: table,
|
|
33661
33679
|
columnWidths: columnWidths,
|
|
33662
33680
|
enableRowSelection: enableRowSelection,
|
|
33663
33681
|
onRowClick: onRowClick,
|
|
33664
|
-
dense: dense
|
|
33682
|
+
dense: dense,
|
|
33683
|
+
testId: testId
|
|
33665
33684
|
})
|
|
33666
33685
|
]
|
|
33667
33686
|
})
|
|
@@ -33677,7 +33696,8 @@ var Table = function(param) {
|
|
|
33677
33696
|
onPageChange: function(page) {
|
|
33678
33697
|
resetContainerScroll();
|
|
33679
33698
|
onPageChange(page);
|
|
33680
|
-
}
|
|
33699
|
+
},
|
|
33700
|
+
testId: "".concat(testId, "-pagination")
|
|
33681
33701
|
})
|
|
33682
33702
|
]
|
|
33683
33703
|
});
|
package/package.json
CHANGED
package/src/lib/Modal/Modal.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ export interface ModalProps {
|
|
|
15
15
|
children?: ReactNode;
|
|
16
16
|
actions?: ModalAction[];
|
|
17
17
|
style?: CSSProperties;
|
|
18
|
+
testId?: string;
|
|
18
19
|
}
|
|
19
|
-
export declare const Modal: ({ open, onClose, loading, title, header, children, actions, style, }: ModalProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
20
|
+
export declare const Modal: ({ open, onClose, loading, title, header, children, actions, style, testId, }: ModalProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
20
21
|
export {};
|
|
@@ -9,6 +9,7 @@ interface PaginationProps {
|
|
|
9
9
|
isLoading: boolean;
|
|
10
10
|
onPageSizeChange: (size: number) => void;
|
|
11
11
|
onPageChange: (page: number) => void;
|
|
12
|
+
testId?: string;
|
|
12
13
|
}
|
|
13
|
-
export declare const Pagination: ({ pageInfo, isLoading, onPageSizeChange, onPageChange, }: PaginationProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare const Pagination: ({ pageInfo, isLoading, onPageSizeChange, onPageChange, testId, }: PaginationProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
14
15
|
export {};
|
|
@@ -6,5 +6,6 @@ export interface SearchBarProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
|
6
6
|
error?: boolean;
|
|
7
7
|
showButton?: boolean;
|
|
8
8
|
showFilters?: boolean;
|
|
9
|
+
testId?: string;
|
|
9
10
|
}
|
|
10
|
-
export declare const SearchBar: ({ placeholder, error, onClear, onSubmit, showButton, showFilters, ...props }: SearchBarProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare const SearchBar: ({ placeholder, error, onClear, onSubmit, showButton, showFilters, testId, ...props }: SearchBarProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -5,6 +5,7 @@ interface ContextMenuCellProps<T extends object> {
|
|
|
5
5
|
setOpenMenuId: React.Dispatch<React.SetStateAction<string | null>>;
|
|
6
6
|
openMenuId: string | null;
|
|
7
7
|
contextMenuActions: RowAction<T>[];
|
|
8
|
+
testId?: string;
|
|
8
9
|
}
|
|
9
|
-
export declare const ContextMenuCell: <T extends object>({ row, setOpenMenuId, openMenuId, contextMenuActions, }: ContextMenuCellProps<T>) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare const ContextMenuCell: <T extends object>({ row, setOpenMenuId, openMenuId, contextMenuActions, testId, }: ContextMenuCellProps<T>) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
10
11
|
export {};
|
package/src/lib/Table/Table.d.ts
CHANGED
|
@@ -48,6 +48,7 @@ interface PaginationProps {
|
|
|
48
48
|
}
|
|
49
49
|
interface TableDataProps<T> {
|
|
50
50
|
columns: TableColumn<T>[];
|
|
51
|
+
testId?: string;
|
|
51
52
|
data?: T[];
|
|
52
53
|
getRowId: (originalRow: T, index: number, parent?: Row<T> | undefined) => string;
|
|
53
54
|
isLoading?: boolean;
|
|
@@ -58,5 +59,5 @@ interface TableDataProps<T> {
|
|
|
58
59
|
}
|
|
59
60
|
export interface TableProps<T extends object> extends TableStyleProps, TableRowProps<T>, TableDataProps<T>, PaginationProps {
|
|
60
61
|
}
|
|
61
|
-
export declare const Table: <T extends object>({ columns, data, getRowId, isLoading, pageInfo, onPageSizeChange, onPageChange, sortBy, sortOrder, onSortChange, enableRowSelection, selectedRows, onRowSelectionChange, onRowClick, contextMenuActions, dense, height, error, }: TableProps<T>) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
62
|
+
export declare const Table: <T extends object>({ columns, data, getRowId, isLoading, pageInfo, onPageSizeChange, onPageChange, sortBy, sortOrder, onSortChange, enableRowSelection, selectedRows, onRowSelectionChange, onRowClick, contextMenuActions, dense, height, error, testId, }: TableProps<T>) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
62
63
|
export {};
|
|
@@ -6,6 +6,7 @@ interface TableBodyProps<T extends object> {
|
|
|
6
6
|
enableRowSelection?: boolean;
|
|
7
7
|
onRowClick?: (row: T) => void;
|
|
8
8
|
dense: boolean;
|
|
9
|
+
testId?: string;
|
|
9
10
|
}
|
|
10
|
-
export declare const TableBody: <T extends object>({ table, columnWidths, enableRowSelection, onRowClick, dense, }: TableBodyProps<T>) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare const TableBody: <T extends object>({ table, columnWidths, enableRowSelection, onRowClick, dense, testId, }: TableBodyProps<T>) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
11
12
|
export {};
|
|
@@ -5,6 +5,7 @@ interface TableHeaderProps<T> {
|
|
|
5
5
|
columnWidths: ColumnWidth[];
|
|
6
6
|
disableControls: boolean;
|
|
7
7
|
dense: boolean;
|
|
8
|
+
testId?: string;
|
|
8
9
|
}
|
|
9
|
-
export declare const TableHeader: <T extends object>({ table, disableControls, dense, }: TableHeaderProps<T>) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare const TableHeader: <T extends object>({ table, disableControls, dense, testId, }: TableHeaderProps<T>) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
10
11
|
export {};
|