@fattureincloud/fic-design-system 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/chart/Chart.d.ts +1 -1
- package/dist/components/chart/components/ChartIndicators.d.ts +6 -6
- package/dist/components/chart/components/ChartLegend.d.ts +4 -4
- package/dist/components/chart/components/styled.d.ts +13 -0
- package/dist/components/chart/index.d.ts +1 -1
- package/dist/components/chart/types.d.ts +0 -3
- package/dist/components/chart/utils.d.ts +1 -4
- package/dist/index.esm.js +8 -8
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +8 -8
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
@@ -1,4 +1,4 @@
|
|
1
1
|
import { ReactElement } from 'react';
|
2
2
|
import { ChartProps } from './types';
|
3
|
-
declare const Chart: ({ data,
|
3
|
+
declare const Chart: ({ data, graphicSettingsContent, periodContent, renderEmptyFilters, renderYearDropdownContent, showIndicators, yearDropdownButtonText, }: ChartProps) => ReactElement;
|
4
4
|
export default Chart;
|
@@ -1,14 +1,14 @@
|
|
1
|
-
import { ReactElement } from 'react';
|
1
|
+
import { Dispatch, ReactElement, SetStateAction } from 'react';
|
2
2
|
import { DropdownItemProps, renderContentType } from '../../dropdown';
|
3
|
-
import { Legend
|
3
|
+
import { Legend } from '../types';
|
4
4
|
interface ChartIndicatorsProps {
|
5
|
-
legend: Legend[];
|
6
|
-
setToggleLegendItem: (elem: LegendItem) => void;
|
7
|
-
toggleLegendItem: LegendItem;
|
8
5
|
graphicSettingsContent?: DropdownItemProps[];
|
6
|
+
legend: Legend[];
|
9
7
|
periodContent?: DropdownItemProps[];
|
10
8
|
renderYearDropdownContent?: renderContentType;
|
9
|
+
setToggleLegendItem: Dispatch<SetStateAction<boolean[]>>;
|
10
|
+
toggleLegendItem: boolean[];
|
11
11
|
yearDropdownButtonText?: string;
|
12
12
|
}
|
13
|
-
declare const ChartIndicators: ({ legend,
|
13
|
+
declare const ChartIndicators: ({ graphicSettingsContent, legend, periodContent, renderYearDropdownContent, setToggleLegendItem, toggleLegendItem, yearDropdownButtonText, }: ChartIndicatorsProps) => ReactElement;
|
14
14
|
export default ChartIndicators;
|
@@ -1,9 +1,9 @@
|
|
1
|
-
|
2
|
-
import { Legend
|
1
|
+
import { Dispatch, SetStateAction } from 'react';
|
2
|
+
import { Legend } from '../types';
|
3
3
|
interface ChartLegendProps {
|
4
4
|
legend: Legend[];
|
5
|
-
setToggleLegendItem:
|
6
|
-
toggleLegendItem:
|
5
|
+
setToggleLegendItem: Dispatch<SetStateAction<boolean[]>>;
|
6
|
+
toggleLegendItem: boolean[];
|
7
7
|
}
|
8
8
|
declare const ChartLegend: ({ legend, setToggleLegendItem, toggleLegendItem }: ChartLegendProps) => JSX.Element;
|
9
9
|
export default ChartLegend;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
export declare const ButtonContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
3
|
+
export declare const ButtonText: import("styled-components").StyledComponent<({ children, type, ...otherProps }: import("../../../common/components/typography/types").TextProps & import("react").HTMLAttributes<HTMLDivElement>) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
|
4
|
+
export declare const IndicatorContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
5
|
+
export declare const IndicatorButtonContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
6
|
+
export declare const LegendContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
7
|
+
export declare const LegendItemContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
8
|
+
disabled: boolean;
|
9
|
+
}, never>;
|
10
|
+
export declare const LegendSquare: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
11
|
+
color?: string | undefined;
|
12
|
+
}, never>;
|
13
|
+
export declare const LegendIcon: import("styled-components").StyledComponent<({ onClick, isDisabled, ...props }: import("../../icon").IconProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
|
@@ -1,2 +1,2 @@
|
|
1
1
|
export { default as Chart } from './Chart';
|
2
|
-
export { ChartProps, Legend, ChartData
|
2
|
+
export { ChartProps, Legend, ChartData } from './types';
|
@@ -1,6 +1,3 @@
|
|
1
1
|
import { DropdownItemProps } from '../dropdown';
|
2
|
-
import { ChartData, Legend, LegendItem } from './types';
|
3
|
-
export declare const getLegendValues: (data: ChartData[]) => Legend[];
|
4
|
-
export declare const getInitialLegendValues: (data: ChartData[]) => LegendItem;
|
5
2
|
export declare const getDropdownLabel: (content: DropdownItemProps[]) => string;
|
6
|
-
export declare const getDisabledLegendItem: (elemIndex: number, toggleLegendItem:
|
3
|
+
export declare const getDisabledLegendItem: (elemIndex: number, toggleLegendItem: boolean[]) => boolean;
|