@engrate/components 0.1.27 → 0.1.29

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.
@@ -40,6 +40,12 @@ interface BarChartProps extends React.HTMLAttributes<HTMLDivElement>, VariantPro
40
40
  stacked?: boolean;
41
41
  /** Layout orientation */
42
42
  layout?: 'horizontal' | 'vertical';
43
+ /** Format tooltip values (e.g. add currency, custom rounding) */
44
+ tooltipValueFormatter?: (value: number, seriesKey: string) => string;
45
+ /** Format x-axis tick values */
46
+ xAxisValueFormatter?: (value: string) => string;
47
+ /** Format y-axis tick values */
48
+ yAxisValueFormatter?: (value: string) => string;
43
49
  }
44
50
  /**
45
51
  * BarChart component for displaying categorical data comparisons.
@@ -2,7 +2,7 @@ import * as React from 'react';
2
2
  declare const gridVariants: (props?: ({
3
3
  cols?: 1 | 2 | 3 | 4 | 5 | 12 | 6 | null | undefined;
4
4
  gap?: "none" | "sm" | "lg" | "md" | "xl" | "xs" | "2xl" | null | undefined;
5
- align?: "end" | "start" | "center" | "baseline" | "stretch" | null | undefined;
5
+ align?: "end" | "start" | "center" | "stretch" | "baseline" | null | undefined;
6
6
  justify?: "end" | "start" | "center" | "stretch" | null | undefined;
7
7
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
8
8
  type ColsValue = 1 | 2 | 3 | 4 | 5 | 6 | 12;
@@ -3,7 +3,7 @@ import * as React from 'react';
3
3
  declare const stackVariants: (props?: ({
4
4
  direction?: "horizontal" | "vertical" | null | undefined;
5
5
  gap?: "none" | "sm" | "lg" | "md" | "xl" | "xs" | "2xl" | null | undefined;
6
- align?: "end" | "start" | "center" | "baseline" | "stretch" | null | undefined;
6
+ align?: "end" | "start" | "center" | "stretch" | "baseline" | null | undefined;
7
7
  justify?: "end" | "start" | "center" | "between" | "around" | "evenly" | null | undefined;
8
8
  wrap?: "wrap" | "nowrap" | "wrap-reverse" | null | undefined;
9
9
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
@@ -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';