@campxdev/shared 1.11.38 → 1.11.39

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@campxdev/shared",
3
- "version": "1.11.38",
3
+ "version": "1.11.39",
4
4
  "main": "./exports.ts",
5
5
  "scripts": {
6
6
  "start": "react-scripts start",
@@ -53,6 +53,7 @@ interface TableProps<T> {
53
53
  onSort?: (sort: any) => void
54
54
  dense?: boolean
55
55
  showTotal?: boolean
56
+ showNoDataIllustration?: boolean
56
57
  sx?: Record<string, SxProps<Theme>>
57
58
  totalColumns?: number[]
58
59
  showTotalInFirstCellOfTotalRow?: boolean
@@ -68,6 +69,7 @@ export default function Table<T>({
68
69
  onSort,
69
70
  dense = false,
70
71
  showTotal = false,
72
+ showNoDataIllustration = true,
71
73
  sx,
72
74
  totalColumns,
73
75
  showTotalInFirstCellOfTotalRow,
@@ -258,7 +260,9 @@ export default function Table<T>({
258
260
  </TableBody>
259
261
  ) : (
260
262
  <>
261
- <NoRecordsFound colLength={columns?.length} />
263
+ {showNoDataIllustration ? (
264
+ <NoRecordsFound colLength={columns?.length} />
265
+ ) : null}
262
266
  </>
263
267
  )}
264
268
  </>