@majoo-ui/react 1.60.13-rc.3 → 1.60.14-rc.1

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.
@@ -1409,8 +1409,12 @@ export interface TableProps {
1409
1409
  * Activate table row Virtualized support
1410
1410
  */
1411
1411
  virtualized?: boolean;
1412
+ /**
1413
+ * Set custom table header component
1414
+ */
1415
+ customHeader?: React.ReactNode;
1412
1416
  }
1413
- export declare function Table({ columns, data: rawData, keyId, pageIndex: controlledPageIndex, totalPage, totalData, fetchData, hideDataInfo, rowsPerPageOptions, emptyDataMessage, customEmptyDataProps: emptyDataProps, isLoading, css, headerCss, hideHeader, onSelectedChange, isInfiniteScroll, hasMoreItems, rowLimit, cellAlign, selectedIds, rowGroup, decoration, hiddenColumns, columnOrder, customRowsStyle, isMobileLayout, showDuplicatedData, onRowClick, hidePagination, searchQuery, additionalExceptionIds, onExpand, id, onColumnChange, virtualized, withoutLimit, }: TableProps): JSX.Element;
1417
+ export declare function Table({ columns, data: rawData, keyId, pageIndex: controlledPageIndex, totalPage, totalData, fetchData, hideDataInfo, rowsPerPageOptions, emptyDataMessage, customEmptyDataProps: emptyDataProps, isLoading, css, headerCss, hideHeader, onSelectedChange, isInfiniteScroll, hasMoreItems, rowLimit, cellAlign, selectedIds, rowGroup, decoration, hiddenColumns, columnOrder, customRowsStyle, isMobileLayout, showDuplicatedData, onRowClick, hidePagination, searchQuery, additionalExceptionIds, onExpand, id, onColumnChange, virtualized, withoutLimit, customHeader, }: TableProps): JSX.Element;
1414
1418
  export interface TableColumnProps {
1415
1419
  /**
1416
1420
  * Required if accessor is a function<br/>
package/index.esm.js CHANGED
@@ -23265,7 +23265,8 @@ function Table({
23265
23265
  id = null,
23266
23266
  onColumnChange,
23267
23267
  virtualized = true,
23268
- withoutLimit = false
23268
+ withoutLimit = false,
23269
+ customHeader
23269
23270
  }) {
23270
23271
  var _a, _b, _c, _d;
23271
23272
  const [openMenu, setOpen] = useState(false);
@@ -23693,7 +23694,7 @@ function Table({
23693
23694
  css: headerCss,
23694
23695
  isInfiniteScroll: isInfiniteScroll
23695
23696
  }, {
23696
- children: headerGroups.map(headerGroup => {
23697
+ children: customHeader ? customHeader : headerGroups.map(headerGroup => {
23697
23698
  let visibleHeaders = headerGroup.headers.filter(column => !column.isSubRow);
23698
23699
  if (filteredHeader.length > 0 || filterHeader.length > 0) {
23699
23700
  visibleHeaders = visibleHeaders.filter(item => filteredHeader.includes(item.id) || filterHeader.includes(item.id));
package/index.umd.js CHANGED
@@ -23654,7 +23654,8 @@
23654
23654
  _v = _a.virtualized,
23655
23655
  virtualized = _v === void 0 ? true : _v,
23656
23656
  _w = _a.withoutLimit,
23657
- withoutLimit = _w === void 0 ? false : _w;
23657
+ withoutLimit = _w === void 0 ? false : _w,
23658
+ customHeader = _a.customHeader;
23658
23659
  var _x = React.useState(false),
23659
23660
  openMenu = _x[0],
23660
23661
  setOpen = _x[1];
@@ -24125,7 +24126,7 @@
24125
24126
  css: headerCss,
24126
24127
  isInfiniteScroll: isInfiniteScroll
24127
24128
  }, {
24128
- children: headerGroups.map(function (headerGroup) {
24129
+ children: customHeader ? customHeader : headerGroups.map(function (headerGroup) {
24129
24130
  var visibleHeaders = headerGroup.headers.filter(function (column) {
24130
24131
  return !column.isSubRow;
24131
24132
  });
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@majoo-ui/react",
3
- "version": "1.60.13-rc.3",
3
+ "version": "1.60.14-rc.1",
4
4
  "dependencies": {
5
5
  "@majoo-ui/core": "^1.31.3",
6
6
  "@majoo-ui/helpers": "^1.30.5",
7
- "@majoo-ui/icons": "1.38.25",
7
+ "@majoo-ui/icons": "1.38.27",
8
8
  "@stitches/react": "^1.2.8",
9
9
  "@radix-ui/react-alert-dialog": "1.0.3",
10
10
  "@radix-ui/react-avatar": "^1.0.0",