karsten-design-system 1.1.99 → 1.2.1

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.
@@ -0,0 +1,18 @@
1
+ type Dataset = {
2
+ label: string;
3
+ data: number[];
4
+ backgroundColor?: string | string[];
5
+ borderColor?: string | string[];
6
+ };
7
+ export type SimplifiedChartProps = {
8
+ type: 'bar' | 'line' | 'pie' | 'doughnut' | 'filledLine';
9
+ title?: string;
10
+ labels: string[];
11
+ datasets: Dataset[];
12
+ stacked?: boolean;
13
+ horizontal?: boolean;
14
+ legendaLateral?: boolean;
15
+ className?: string;
16
+ };
17
+ export declare function Charts({ type, labels, datasets, title, stacked, horizontal, legendaLateral, className, }: SimplifiedChartProps): import("react/jsx-runtime").JSX.Element;
18
+ export {};
@@ -9,6 +9,7 @@ export * from './stories/components/card';
9
9
  export * from './stories/components/cardButton';
10
10
  export * from './stories/components/cardIconsButton';
11
11
  export * from './stories/components/chart';
12
+ export * from './stories/components/charts';
12
13
  export * from './stories/components/dialog';
13
14
  export * from './stories/components/divider';
14
15
  export * from './stories/components/emptyContent';
@@ -0,0 +1,18 @@
1
+ type Dataset = {
2
+ label: string;
3
+ data: number[];
4
+ backgroundColor?: string | string[];
5
+ borderColor?: string | string[];
6
+ };
7
+ export type SimplifiedChartProps = {
8
+ type: 'bar' | 'line' | 'pie' | 'doughnut' | 'filledLine';
9
+ title?: string;
10
+ labels: string[];
11
+ datasets: Dataset[];
12
+ stacked?: boolean;
13
+ horizontal?: boolean;
14
+ legendaLateral?: boolean;
15
+ className?: string;
16
+ };
17
+ export declare function Charts({ type, labels, datasets, title, stacked, horizontal, legendaLateral, className, }: SimplifiedChartProps): import("react/jsx-runtime").JSX.Element;
18
+ export {};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "karsten-design-system",
3
3
  "description": "Karsten Design System Components",
4
- "version": "1.1.99",
4
+ "version": "1.2.1",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.js",