@ssa-ui-kit/core 1.0.18 → 1.1.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/dist/components/Badge/types.d.ts +1 -1
- package/dist/components/PieChart/PieChart.d.ts +1 -1
- package/dist/components/PieChart/types.d.ts +2 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Badge/Badge.stories.tsx +8 -0
- package/src/components/Badge/Badge.tsx +11 -1
- package/src/components/Badge/types.ts +1 -1
- package/src/components/Dropdown/Dropdown.spec.tsx +62 -0
- package/src/components/Dropdown/Dropdown.stories.tsx +27 -2
- package/src/components/Dropdown/Dropdown.tsx +4 -0
- package/src/components/PieChart/PieChart.stories.tsx +130 -77
- package/src/components/PieChart/PieChart.tsx +7 -1
- package/src/components/PieChart/types.ts +2 -1
- package/tsbuildcache +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { PieChartProps } from './types';
|
|
2
|
-
export declare const PieChart: ({ as, className, title, children, ...chartProps }: PieChartProps) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
2
|
+
export declare const PieChart: ({ as, className, title, children, width, ...chartProps }: PieChartProps) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
@@ -4,6 +4,7 @@ import { CommonProps } from '../..';
|
|
|
4
4
|
export interface PieChartProps extends CommonProps, React.ComponentProps<typeof ResponsivePie> {
|
|
5
5
|
title?: React.ReactNode;
|
|
6
6
|
children?: React.ReactNode;
|
|
7
|
+
width?: number;
|
|
7
8
|
}
|
|
8
9
|
export interface PieChartLegendItem extends MayHaveLabel {
|
|
9
10
|
id: string | number;
|
|
@@ -13,7 +14,7 @@ export interface PieChartLegendItem extends MayHaveLabel {
|
|
|
13
14
|
}
|
|
14
15
|
export interface PieChartLegendProps {
|
|
15
16
|
data: Array<PieChartLegendItem>;
|
|
16
|
-
colors?: Array<keyof MainColors>;
|
|
17
|
+
colors?: Array<keyof MainColors | string>;
|
|
17
18
|
backgroundColors?: Array<string>;
|
|
18
19
|
renderValue?: (item: PieChartLegendItem) => NonNullable<React.ReactNode>;
|
|
19
20
|
renderLabel?: (item: PieChartLegendItem) => NonNullable<React.ReactNode>;
|