@efiche/design 0.1.8 → 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.
- package/README.md +42 -20
- package/dist/index.cjs +342 -135
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +69 -1
- package/dist/index.d.ts +69 -1
- package/dist/index.js +371 -135
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -12,6 +12,74 @@ declare const ThemeProvider: ({ children, defaultTheme, }: {
|
|
|
12
12
|
}) => react_jsx_runtime.JSX.Element;
|
|
13
13
|
declare const useTheme: () => ThemeContextValue;
|
|
14
14
|
|
|
15
|
+
type ChartTheme = 'light' | 'dark';
|
|
16
|
+
|
|
17
|
+
interface LineConfig {
|
|
18
|
+
dataKey: string;
|
|
19
|
+
color?: string;
|
|
20
|
+
label?: string;
|
|
21
|
+
}
|
|
22
|
+
interface LineChartProps {
|
|
23
|
+
data: Record<string, unknown>[];
|
|
24
|
+
xKey: string;
|
|
25
|
+
lines: LineConfig[];
|
|
26
|
+
height?: number;
|
|
27
|
+
legend?: boolean;
|
|
28
|
+
grid?: boolean;
|
|
29
|
+
theme?: ChartTheme;
|
|
30
|
+
}
|
|
31
|
+
declare const LineChart: FC<LineChartProps>;
|
|
32
|
+
|
|
33
|
+
interface BarConfig {
|
|
34
|
+
dataKey: string;
|
|
35
|
+
color?: string;
|
|
36
|
+
stackId?: string;
|
|
37
|
+
label?: string;
|
|
38
|
+
}
|
|
39
|
+
interface BarChartProps {
|
|
40
|
+
data: Record<string, unknown>[];
|
|
41
|
+
xKey: string;
|
|
42
|
+
bars: BarConfig[];
|
|
43
|
+
height?: number;
|
|
44
|
+
legend?: boolean;
|
|
45
|
+
grid?: boolean;
|
|
46
|
+
theme?: ChartTheme;
|
|
47
|
+
}
|
|
48
|
+
declare const BarChart: FC<BarChartProps>;
|
|
49
|
+
|
|
50
|
+
interface AreaConfig {
|
|
51
|
+
dataKey: string;
|
|
52
|
+
color?: string;
|
|
53
|
+
stackId?: string;
|
|
54
|
+
fillOpacity?: number;
|
|
55
|
+
label?: string;
|
|
56
|
+
}
|
|
57
|
+
interface AreaChartProps {
|
|
58
|
+
data: Record<string, unknown>[];
|
|
59
|
+
xKey: string;
|
|
60
|
+
areas: AreaConfig[];
|
|
61
|
+
height?: number;
|
|
62
|
+
legend?: boolean;
|
|
63
|
+
grid?: boolean;
|
|
64
|
+
theme?: ChartTheme;
|
|
65
|
+
}
|
|
66
|
+
declare const AreaChart: FC<AreaChartProps>;
|
|
67
|
+
|
|
68
|
+
interface PieDataItem {
|
|
69
|
+
name: string;
|
|
70
|
+
value: number;
|
|
71
|
+
fill?: string;
|
|
72
|
+
}
|
|
73
|
+
interface PieChartProps {
|
|
74
|
+
data: PieDataItem[];
|
|
75
|
+
height?: number;
|
|
76
|
+
donut?: boolean;
|
|
77
|
+
legend?: boolean;
|
|
78
|
+
label?: boolean;
|
|
79
|
+
theme?: ChartTheme;
|
|
80
|
+
}
|
|
81
|
+
declare const PieChart: FC<PieChartProps>;
|
|
82
|
+
|
|
15
83
|
interface AccordionItem {
|
|
16
84
|
value: string;
|
|
17
85
|
trigger: string;
|
|
@@ -224,4 +292,4 @@ interface TooltipProps {
|
|
|
224
292
|
}
|
|
225
293
|
declare const Tooltip: FC<TooltipProps>;
|
|
226
294
|
|
|
227
|
-
export { Accordion, Alert, Avatar, Badge, Breadcrumb, Button, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, CopyButton, FileUpload, Input, Label, PasswordInput, Progress, RadioGroup, Select, Skeleton, Slider, Spinner, Switch, Table, TableBody, TableCell, TableHead, TableHeader, TableRow, Tabs, Textarea, ThemeProvider, Tooltip, useTheme };
|
|
295
|
+
export { Accordion, Alert, AreaChart, Avatar, Badge, BarChart, Breadcrumb, Button, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, CopyButton, FileUpload, Input, Label, LineChart, PasswordInput, PieChart, Progress, RadioGroup, Select, Skeleton, Slider, Spinner, Switch, Table, TableBody, TableCell, TableHead, TableHeader, TableRow, Tabs, Textarea, ThemeProvider, Tooltip, useTheme };
|
package/dist/index.d.ts
CHANGED
|
@@ -12,6 +12,74 @@ declare const ThemeProvider: ({ children, defaultTheme, }: {
|
|
|
12
12
|
}) => react_jsx_runtime.JSX.Element;
|
|
13
13
|
declare const useTheme: () => ThemeContextValue;
|
|
14
14
|
|
|
15
|
+
type ChartTheme = 'light' | 'dark';
|
|
16
|
+
|
|
17
|
+
interface LineConfig {
|
|
18
|
+
dataKey: string;
|
|
19
|
+
color?: string;
|
|
20
|
+
label?: string;
|
|
21
|
+
}
|
|
22
|
+
interface LineChartProps {
|
|
23
|
+
data: Record<string, unknown>[];
|
|
24
|
+
xKey: string;
|
|
25
|
+
lines: LineConfig[];
|
|
26
|
+
height?: number;
|
|
27
|
+
legend?: boolean;
|
|
28
|
+
grid?: boolean;
|
|
29
|
+
theme?: ChartTheme;
|
|
30
|
+
}
|
|
31
|
+
declare const LineChart: FC<LineChartProps>;
|
|
32
|
+
|
|
33
|
+
interface BarConfig {
|
|
34
|
+
dataKey: string;
|
|
35
|
+
color?: string;
|
|
36
|
+
stackId?: string;
|
|
37
|
+
label?: string;
|
|
38
|
+
}
|
|
39
|
+
interface BarChartProps {
|
|
40
|
+
data: Record<string, unknown>[];
|
|
41
|
+
xKey: string;
|
|
42
|
+
bars: BarConfig[];
|
|
43
|
+
height?: number;
|
|
44
|
+
legend?: boolean;
|
|
45
|
+
grid?: boolean;
|
|
46
|
+
theme?: ChartTheme;
|
|
47
|
+
}
|
|
48
|
+
declare const BarChart: FC<BarChartProps>;
|
|
49
|
+
|
|
50
|
+
interface AreaConfig {
|
|
51
|
+
dataKey: string;
|
|
52
|
+
color?: string;
|
|
53
|
+
stackId?: string;
|
|
54
|
+
fillOpacity?: number;
|
|
55
|
+
label?: string;
|
|
56
|
+
}
|
|
57
|
+
interface AreaChartProps {
|
|
58
|
+
data: Record<string, unknown>[];
|
|
59
|
+
xKey: string;
|
|
60
|
+
areas: AreaConfig[];
|
|
61
|
+
height?: number;
|
|
62
|
+
legend?: boolean;
|
|
63
|
+
grid?: boolean;
|
|
64
|
+
theme?: ChartTheme;
|
|
65
|
+
}
|
|
66
|
+
declare const AreaChart: FC<AreaChartProps>;
|
|
67
|
+
|
|
68
|
+
interface PieDataItem {
|
|
69
|
+
name: string;
|
|
70
|
+
value: number;
|
|
71
|
+
fill?: string;
|
|
72
|
+
}
|
|
73
|
+
interface PieChartProps {
|
|
74
|
+
data: PieDataItem[];
|
|
75
|
+
height?: number;
|
|
76
|
+
donut?: boolean;
|
|
77
|
+
legend?: boolean;
|
|
78
|
+
label?: boolean;
|
|
79
|
+
theme?: ChartTheme;
|
|
80
|
+
}
|
|
81
|
+
declare const PieChart: FC<PieChartProps>;
|
|
82
|
+
|
|
15
83
|
interface AccordionItem {
|
|
16
84
|
value: string;
|
|
17
85
|
trigger: string;
|
|
@@ -224,4 +292,4 @@ interface TooltipProps {
|
|
|
224
292
|
}
|
|
225
293
|
declare const Tooltip: FC<TooltipProps>;
|
|
226
294
|
|
|
227
|
-
export { Accordion, Alert, Avatar, Badge, Breadcrumb, Button, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, CopyButton, FileUpload, Input, Label, PasswordInput, Progress, RadioGroup, Select, Skeleton, Slider, Spinner, Switch, Table, TableBody, TableCell, TableHead, TableHeader, TableRow, Tabs, Textarea, ThemeProvider, Tooltip, useTheme };
|
|
295
|
+
export { Accordion, Alert, AreaChart, Avatar, Badge, BarChart, Breadcrumb, Button, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, CopyButton, FileUpload, Input, Label, LineChart, PasswordInput, PieChart, Progress, RadioGroup, Select, Skeleton, Slider, Spinner, Switch, Table, TableBody, TableCell, TableHead, TableHeader, TableRow, Tabs, Textarea, ThemeProvider, Tooltip, useTheme };
|