pillardash-ui-react 0.1.92 → 0.1.93

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/dist/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import React$1, { FC, ReactNode, InputHTMLAttributes, TextareaHTMLAttributes } from 'react';
2
2
  import * as react_jsx_runtime from 'react/jsx-runtime';
3
+ import { LucideIcon } from 'lucide-react';
3
4
 
4
5
  interface ButtonProps {
5
6
  /** The content of the button */
@@ -384,6 +385,7 @@ interface TableProps<T> {
384
385
  showPagination?: boolean;
385
386
  onRowClick?: (item: T) => void;
386
387
  useCardLayout?: boolean;
388
+ emptyState?: ReactNode;
387
389
  }
388
390
  interface Column<T> {
389
391
  title: ReactNode;
@@ -403,7 +405,7 @@ type TableDropdownProps = {
403
405
  actions: {
404
406
  label: string;
405
407
  onClick: () => void;
406
- icon?: React$1.ReactNode;
408
+ icon?: React$1.ReactNode | LucideIcon;
407
409
  disabled?: boolean;
408
410
  variant?: "default" | "danger";
409
411
  }[];
@@ -412,7 +414,7 @@ type TableDropdownProps = {
412
414
  dropdownClassName?: string;
413
415
  };
414
416
 
415
- declare function Table<T>({ data, columns, itemsPerPage, onViewChange, totalItems, currentPage, onPageChange, loading, showPagination, onRowClick, useCardLayout, }: TableProps<T>): react_jsx_runtime.JSX.Element;
417
+ declare function Table<T>({ data, columns, itemsPerPage, onViewChange, totalItems, currentPage, onPageChange, loading, showPagination, onRowClick, useCardLayout, emptyState, }: TableProps<T>): react_jsx_runtime.JSX.Element;
416
418
 
417
419
  declare function Pagination({ currentPage, totalPages, totalItems, itemsPerPage, onPageChange, onViewChange, loading, }: PaginationProps): react_jsx_runtime.JSX.Element;
418
420