@engrate/components 0.1.27 → 0.1.28

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.
@@ -1,12 +1,8 @@
1
1
  import { VariantProps } from 'class-variance-authority';
2
2
  import * as React from 'react';
3
3
  declare const tableVariants: (props?: ({
4
- variant?: "default" | "striped" | null | undefined;
5
4
  size?: "default" | "compact" | null | undefined;
6
5
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
7
- declare const tableRowVariants: (props?: ({
8
- variant?: "default" | "striped" | null | undefined;
9
- } & import('class-variance-authority/types').ClassProp) | undefined) => string;
10
6
  declare const tableHeadVariants: (props?: ({
11
7
  sortable?: boolean | null | undefined;
12
8
  size?: "default" | "compact" | null | undefined;
@@ -45,7 +41,7 @@ declare const TableBody: React.ForwardRefExoticComponent<TableBodyProps & React.
45
41
  interface TableFooterProps extends React.HTMLAttributes<HTMLTableSectionElement> {
46
42
  }
47
43
  declare const TableFooter: React.ForwardRefExoticComponent<TableFooterProps & React.RefAttributes<HTMLTableSectionElement>>;
48
- interface TableRowProps extends React.HTMLAttributes<HTMLTableRowElement>, VariantProps<typeof tableRowVariants> {
44
+ interface TableRowProps extends React.HTMLAttributes<HTMLTableRowElement> {
49
45
  }
50
46
  declare const TableRow: React.ForwardRefExoticComponent<TableRowProps & React.RefAttributes<HTMLTableRowElement>>;
51
47
  type SortDirection = 'asc' | 'desc' | null;
@@ -87,4 +83,4 @@ interface UseFilterableTableReturn<T> {
87
83
  }
88
84
  declare function useFilterableTable<T>({ data, filterKeys, }: UseFilterableTableOptions<T>): UseFilterableTableReturn<T>;
89
85
  export { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption, tableVariants, useSortableTable, useFilterableTable, };
90
- export type { TableProps, TableHeadProps, TableRowProps, SortDirection };
86
+ export type { TableProps, TableHeadProps, SortDirection };
@@ -1,2 +1,2 @@
1
1
  export { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption, tableVariants, useSortableTable, useFilterableTable, } from './Table';
2
- export type { TableProps, TableHeadProps, TableRowProps, SortDirection, } from './Table';
2
+ export type { TableProps, TableHeadProps, SortDirection } from './Table';