@rkosafo/cai.components 0.0.56 → 0.0.58

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.
@@ -599,6 +599,8 @@ export interface TableProps {
599
599
  name: string;
600
600
  row: any;
601
601
  }) => void;
602
+ tableBottomContent?: Snippet;
603
+ showTableBottomPadding?: boolean;
602
604
  }
603
605
  export interface PaginateProps {
604
606
  currentPage: number;
@@ -38,7 +38,9 @@
38
38
  onDelete,
39
39
  onEdit,
40
40
  onView,
41
- onRowClicked
41
+ onRowClicked,
42
+ showTableBottomPadding = true,
43
+ tableBottomContent
42
44
  }: TableProps = $props();
43
45
 
44
46
  let dropdown = $state(-1);
@@ -359,7 +361,11 @@
359
361
  {/each}
360
362
  </tbody>
361
363
  </table>
362
- <!-- <div class="h-48"></div> -->
364
+ {#if tableBottomContent}
365
+ {@render tableBottomContent?.()}
366
+ {:else if showTableBottomPadding}
367
+ <div class="h-12"></div>
368
+ {/if}
363
369
 
364
370
  {#if !$pageRows.length}
365
371
  <div class="flex h-72 w-full items-center justify-center">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rkosafo/cai.components",
3
- "version": "0.0.56",
3
+ "version": "0.0.58",
4
4
  "files": [
5
5
  "dist",
6
6
  "!dist/**/*.test.*",