@engrate/components 0.1.26 → 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,17 +1,15 @@
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;
13
9
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
14
10
  interface TableProps extends React.HTMLAttributes<HTMLTableElement>, VariantProps<typeof tableVariants> {
11
+ /** Add visible horizontal borders between table rows */
12
+ bordered?: boolean;
15
13
  }
16
14
  /**
17
15
  * Table root component following Engrate brand guidelines.
@@ -43,7 +41,7 @@ declare const TableBody: React.ForwardRefExoticComponent<TableBodyProps & React.
43
41
  interface TableFooterProps extends React.HTMLAttributes<HTMLTableSectionElement> {
44
42
  }
45
43
  declare const TableFooter: React.ForwardRefExoticComponent<TableFooterProps & React.RefAttributes<HTMLTableSectionElement>>;
46
- interface TableRowProps extends React.HTMLAttributes<HTMLTableRowElement>, VariantProps<typeof tableRowVariants> {
44
+ interface TableRowProps extends React.HTMLAttributes<HTMLTableRowElement> {
47
45
  }
48
46
  declare const TableRow: React.ForwardRefExoticComponent<TableRowProps & React.RefAttributes<HTMLTableRowElement>>;
49
47
  type SortDirection = 'asc' | 'desc' | null;
@@ -85,4 +83,4 @@ interface UseFilterableTableReturn<T> {
85
83
  }
86
84
  declare function useFilterableTable<T>({ data, filterKeys, }: UseFilterableTableOptions<T>): UseFilterableTableReturn<T>;
87
85
  export { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption, tableVariants, useSortableTable, useFilterableTable, };
88
- 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';