@sigtes/ui 0.0.16 → 0.0.18
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.
- package/dist/components/chart/chart.d.ts +40 -0
- package/dist/components/chart/index.d.ts +1 -0
- package/dist/components.cjs.js +1336 -985
- package/dist/components.es.js +47421 -35559
- package/dist/globals.css +1 -1
- package/dist/index.d.ts +1 -0
- package/package.json +5 -1
@@ -0,0 +1,40 @@
|
|
1
|
+
import * as React from "react";
|
2
|
+
import * as RechartsPrimitive from "recharts";
|
3
|
+
declare const THEMES: {
|
4
|
+
readonly light: "";
|
5
|
+
readonly dark: ".dark";
|
6
|
+
};
|
7
|
+
export type ChartConfig = {
|
8
|
+
[k in string]: {
|
9
|
+
label?: React.ReactNode;
|
10
|
+
icon?: React.ComponentType;
|
11
|
+
} & ({
|
12
|
+
color?: string;
|
13
|
+
theme?: never;
|
14
|
+
} | {
|
15
|
+
color?: never;
|
16
|
+
theme: Record<keyof typeof THEMES, string>;
|
17
|
+
});
|
18
|
+
};
|
19
|
+
export declare function ChartContainer({ id, className, children, config, ...props }: React.ComponentProps<"div"> & {
|
20
|
+
config: ChartConfig;
|
21
|
+
children: React.ComponentProps<typeof RechartsPrimitive.ResponsiveContainer>["children"];
|
22
|
+
}): import("react/jsx-runtime").JSX.Element;
|
23
|
+
export declare const ChartStyle: ({ id, config, }: {
|
24
|
+
id: string;
|
25
|
+
config: ChartConfig;
|
26
|
+
}) => import("react/jsx-runtime").JSX.Element | null;
|
27
|
+
export declare const ChartTooltip: typeof RechartsPrimitive.Tooltip;
|
28
|
+
export declare function ChartTooltipContent({ active, payload, className, indicator, hideLabel, hideIndicator, label, labelFormatter, labelClassName, formatter, color, nameKey, labelKey, }: React.ComponentProps<typeof RechartsPrimitive.Tooltip> & React.ComponentProps<"div"> & {
|
29
|
+
hideLabel?: boolean;
|
30
|
+
hideIndicator?: boolean;
|
31
|
+
indicator?: "line" | "dot" | "dashed";
|
32
|
+
nameKey?: string;
|
33
|
+
labelKey?: string;
|
34
|
+
}): import("react/jsx-runtime").JSX.Element | null;
|
35
|
+
export declare const ChartLegend: typeof RechartsPrimitive.Legend;
|
36
|
+
export declare function ChartLegendContent({ className, hideIcon, payload, verticalAlign, nameKey, }: React.ComponentProps<"div"> & Pick<RechartsPrimitive.LegendProps, "payload" | "verticalAlign"> & {
|
37
|
+
hideIcon?: boolean;
|
38
|
+
nameKey?: string;
|
39
|
+
}): import("react/jsx-runtime").JSX.Element | null;
|
40
|
+
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './chart';
|