@razorpay/blade
Version:
The Design System that powers Razorpay
41 lines (38 loc) • 1.4 kB
JavaScript
import React__default from 'react';
/* eslint-disable @typescript-eslint/no-empty-function */
// eslint-disable-next-line @typescript-eslint/no-empty-function
var TableContext = /*#__PURE__*/React__default.createContext({
selectionType: 'none',
selectedRows: undefined,
totalItems: 0,
toggleRowSelectionById: function toggleRowSelectionById() {},
toggleAllRowsSelection: function toggleAllRowsSelection() {},
deselectAllRows: function deselectAllRows() {},
rowDensity: 'normal',
toggleSort: function toggleSort() {},
currentSortedState: {
sortKey: '',
isSortReversed: false
},
setPaginationPage: function setPaginationPage() {},
setPaginationRowSize: function setPaginationRowSize() {},
disabledRows: [],
setDisabledRows: function setDisabledRows() {},
paginationType: 'client',
setPaginationType: function setPaginationType() {},
backgroundColor: 'surface.background.gray.intense',
setHeaderRowDensity: function setHeaderRowDensity() {},
showBorderedCells: false,
hasHoverActions: false,
setHasHoverActions: function setHasHoverActions() {},
columnCount: 0,
gridTemplateColumns: undefined,
isVirtualized: false,
tableData: []
});
var useTableContext = function useTableContext() {
var context = React__default.useContext(TableContext);
return context;
};
export { TableContext, useTableContext };
//# sourceMappingURL=TableContext.js.map