@engrate/components 0.1.28 → 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" | "
|
|
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" | "
|
|
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;
|