bruv-ui 0.2.0

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.
Files changed (44) hide show
  1. package/dist/area-chart.d.ts +84 -0
  2. package/dist/area-chart.js +2002 -0
  3. package/dist/area-chart.js.map +1 -0
  4. package/dist/bar-chart.d.ts +80 -0
  5. package/dist/bar-chart.js +2251 -0
  6. package/dist/bar-chart.js.map +1 -0
  7. package/dist/chart-background-BK77UXhl.d.ts +9 -0
  8. package/dist/chart-brush-BoxY9aDm.d.ts +72 -0
  9. package/dist/chart-dot-8H287EDv.d.ts +17 -0
  10. package/dist/chart-legend-Dv9pqes-.d.ts +16 -0
  11. package/dist/chart-tooltip-DajpzJRy.d.ts +68 -0
  12. package/dist/charts.d.ts +17 -0
  13. package/dist/charts.js +5097 -0
  14. package/dist/charts.js.map +1 -0
  15. package/dist/composed-chart.d.ts +93 -0
  16. package/dist/composed-chart.js +2338 -0
  17. package/dist/composed-chart.js.map +1 -0
  18. package/dist/form-dK_DJRTw.d.ts +43 -0
  19. package/dist/form-rhf.d.ts +26 -0
  20. package/dist/form-rhf.js +268 -0
  21. package/dist/form-rhf.js.map +1 -0
  22. package/dist/index.d.ts +2881 -0
  23. package/dist/index.js +9368 -0
  24. package/dist/index.js.map +1 -0
  25. package/dist/line-chart.d.ts +81 -0
  26. package/dist/line-chart.js +1879 -0
  27. package/dist/line-chart.js.map +1 -0
  28. package/dist/pie-chart.d.ts +64 -0
  29. package/dist/pie-chart.js +1094 -0
  30. package/dist/pie-chart.js.map +1 -0
  31. package/dist/radar-chart.d.ts +67 -0
  32. package/dist/radar-chart.js +1318 -0
  33. package/dist/radar-chart.js.map +1 -0
  34. package/dist/radial-chart.d.ts +56 -0
  35. package/dist/radial-chart.js +1051 -0
  36. package/dist/radial-chart.js.map +1 -0
  37. package/dist/sankey-chart.d.ts +58 -0
  38. package/dist/sankey-chart.js +1179 -0
  39. package/dist/sankey-chart.js.map +1 -0
  40. package/package.json +135 -0
  41. package/src/scales.css +288 -0
  42. package/src/shiki.css +37 -0
  43. package/src/styles.css +23 -0
  44. package/src/theme.css +659 -0
@@ -0,0 +1,84 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { ComponentProps, ReactNode, FC } from 'react';
3
+ import { a as ChartConfig, f as TooltipVariant, T as TooltipRoundness } from './chart-tooltip-DajpzJRy.js';
4
+ import { Area as Area$1, AreaChart as AreaChart$1, CartesianGrid, XAxis as XAxis$1, YAxis as YAxis$1 } from 'recharts';
5
+ import { b as ChartLegendVariant } from './chart-legend-Dv9pqes-.js';
6
+ import { a as BrushRange } from './chart-brush-BoxY9aDm.js';
7
+ import { D as DotVariant } from './chart-dot-8H287EDv.js';
8
+ import 'recharts/types/component/DefaultTooltipContent';
9
+
10
+ type CurveType = ComponentProps<typeof Area$1>["type"];
11
+ type AreaVariant = "gradient" | "gradient-reverse" | "solid";
12
+ type StrokeVariant = "solid" | "dashed" | "animated-dashed";
13
+ type StackType = "default" | "expanded" | "stacked";
14
+ type AreaAnimationType = "none" | "left-to-right" | "right-to-left" | "center-out" | "edges-in";
15
+ type ValidateConfigKeys<TData, TConfig> = {
16
+ [K in keyof TConfig]: K extends keyof TData ? ChartConfig[string] : never;
17
+ };
18
+ type AreaChartBaseProps<TData extends Record<string, unknown>, TConfig extends Record<string, ChartConfig[string]>> = {
19
+ config: TConfig & ValidateConfigKeys<TData, TConfig>;
20
+ data: TData[];
21
+ children: ReactNode;
22
+ className?: string;
23
+ chartProps?: ComponentProps<typeof AreaChart$1>;
24
+ curveType?: CurveType;
25
+ animationType?: AreaAnimationType;
26
+ stackType?: StackType;
27
+ defaultSelectedDataKey?: string | null;
28
+ onSelectionChange?: (selectedDataKey: string | null) => void;
29
+ isLoading?: boolean;
30
+ loadingPoints?: number;
31
+ showBrush?: boolean;
32
+ xDataKey?: keyof TData & string;
33
+ brushHeight?: number;
34
+ brushFormatLabel?: (value: unknown, index: number) => string;
35
+ onBrushChange?: (range: BrushRange) => void;
36
+ };
37
+ type AreaChartProps<TData extends Record<string, unknown>, TConfig extends Record<string, ChartConfig[string]>> = AreaChartBaseProps<TData, TConfig>;
38
+
39
+ declare function AreaChart<TData extends Record<string, unknown>, TConfig extends Record<string, ChartConfig[string]>>({ config, data, children, className, chartProps, curveType, animationType, stackType, defaultSelectedDataKey, onSelectionChange, isLoading, loadingPoints, showBrush, xDataKey, brushHeight, brushFormatLabel, onBrushChange, }: AreaChartProps<TData, TConfig>): react_jsx_runtime.JSX.Element;
40
+ type AreaProps = {
41
+ dataKey: string;
42
+ variant?: AreaVariant;
43
+ strokeVariant?: StrokeVariant;
44
+ curveType?: CurveType;
45
+ animationType?: AreaAnimationType;
46
+ connectNulls?: boolean;
47
+ isClickable?: boolean;
48
+ children?: ReactNode;
49
+ areaProps?: ComponentProps<typeof Area$1>;
50
+ };
51
+ declare function Area({ dataKey, variant, strokeVariant, curveType, animationType, connectNulls, isClickable, children, areaProps, }: AreaProps): react_jsx_runtime.JSX.Element | null;
52
+ type DotProps = {
53
+ variant?: DotVariant;
54
+ };
55
+ declare const Dot: FC<DotProps>;
56
+ declare const ActiveDot: FC<DotProps>;
57
+ type XAxisProps = ComponentProps<typeof XAxis$1>;
58
+ declare function XAxis({ tickLine, axisLine, tickMargin, minTickGap, ...props }: XAxisProps): react_jsx_runtime.JSX.Element | null;
59
+ type YAxisProps = ComponentProps<typeof YAxis$1>;
60
+ declare function YAxis({ tickLine, axisLine, tickMargin, minTickGap, width, tickFormatter, ...props }: YAxisProps): react_jsx_runtime.JSX.Element | null;
61
+ type GridProps = ComponentProps<typeof CartesianGrid>;
62
+ declare function Grid({ vertical, strokeDasharray, ...props }: GridProps): react_jsx_runtime.JSX.Element;
63
+ type TooltipProps = {
64
+ variant?: TooltipVariant;
65
+ roundness?: TooltipRoundness;
66
+ defaultIndex?: number;
67
+ cursor?: boolean;
68
+ };
69
+ declare function Tooltip({ variant, roundness, defaultIndex, cursor, }: TooltipProps): react_jsx_runtime.JSX.Element | null;
70
+ type LegendProps = {
71
+ variant?: ChartLegendVariant;
72
+ align?: "left" | "center" | "right";
73
+ verticalAlign?: "top" | "middle" | "bottom";
74
+ isClickable?: boolean;
75
+ };
76
+ declare function Legend({ variant, align, verticalAlign, isClickable, }: LegendProps): react_jsx_runtime.JSX.Element;
77
+ declare function useLoadingData(isLoading: boolean, loadingPoints?: number): {
78
+ loadingData: {
79
+ loading: number;
80
+ }[];
81
+ onShimmerExit: () => void;
82
+ };
83
+
84
+ export { ActiveDot, Area, AreaChart, type AreaChartProps, Dot, Grid, Legend, Tooltip, XAxis, YAxis, useLoadingData };