1mpacto-react-ui 0.0.128 → 0.0.129
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/index.cjs +71 -71
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +7446 -7427
- package/dist/index.mjs.map +1 -1
- package/dist/src/components/Chart/GradientBarChart.d.ts +1 -1
- package/dist/src/components/Chart/GradientBarChart.stories.d.ts +2 -2
- package/dist/src/components/Chart/GradientLineChart.d.ts +1 -1
- package/dist/src/components/Chart/GradientLineChart.stories.d.ts +2 -2
- package/dist/src/components/FilterContainer/FilterContainer.d.ts +2 -1
- package/dist/src/components/PortalComponent/PortalComponent.d.ts +1 -0
- package/dist/src/interfaces/components/Chart/index.d.ts +21 -3
- package/dist/src/interfaces/components/FilterContainer/index.d.ts +1 -0
- package/package.json +1 -1
@@ -1,4 +1,4 @@
|
|
1
1
|
import { IGradientBarChart } from '../../interfaces/components/Chart';
|
2
2
|
|
3
|
-
declare const GradientBarChart: ({ data, classNameContainer, height, id, options,
|
3
|
+
declare const GradientBarChart: ({ data, classNameContainer, height, id, options, CustomTooltip }: IGradientBarChart) => import("react/jsx-runtime").JSX.Element;
|
4
4
|
export default GradientBarChart;
|
@@ -2,12 +2,12 @@ import { StoryObj } from '@storybook/react';
|
|
2
2
|
|
3
3
|
declare const meta: {
|
4
4
|
title: string;
|
5
|
-
component: ({ data, classNameContainer, height, id, options,
|
5
|
+
component: ({ data, classNameContainer, height, id, options, CustomTooltip }: import('../../interfaces/components/Chart').IGradientBarChart) => import("react/jsx-runtime").JSX.Element;
|
6
6
|
parameters: {};
|
7
7
|
tags: string[];
|
8
8
|
argTypes: {};
|
9
9
|
args: {};
|
10
|
-
render: (args: import('
|
10
|
+
render: (args: import('../../interfaces/components/Chart').IGradientBarChart) => import("react/jsx-runtime").JSX.Element;
|
11
11
|
};
|
12
12
|
export default meta;
|
13
13
|
type Story = StoryObj<typeof meta>;
|
@@ -1,4 +1,4 @@
|
|
1
1
|
import { IGradientLineChart } from '../../interfaces/components/Chart';
|
2
2
|
|
3
|
-
declare const GradientLineChart: ({ data, height, classNameContainer, id, options,
|
3
|
+
declare const GradientLineChart: ({ data, height, classNameContainer, id, options, CustomTooltip }: IGradientLineChart) => import("react/jsx-runtime").JSX.Element;
|
4
4
|
export default GradientLineChart;
|
@@ -2,12 +2,12 @@ import { StoryObj } from '@storybook/react';
|
|
2
2
|
|
3
3
|
declare const meta: {
|
4
4
|
title: string;
|
5
|
-
component: ({ data, height, classNameContainer, id, options,
|
5
|
+
component: ({ data, height, classNameContainer, id, options, CustomTooltip }: import('../../interfaces/components/Chart').IGradientLineChart) => import("react/jsx-runtime").JSX.Element;
|
6
6
|
parameters: {};
|
7
7
|
tags: string[];
|
8
8
|
argTypes: {};
|
9
9
|
args: {};
|
10
|
-
render: (args: import('
|
10
|
+
render: (args: import('../../interfaces/components/Chart').IGradientLineChart) => import("react/jsx-runtime").JSX.Element;
|
11
11
|
};
|
12
12
|
export default meta;
|
13
13
|
type Story = StoryObj<typeof meta>;
|
@@ -1,4 +1,5 @@
|
|
1
|
+
import { default as React } from 'react';
|
1
2
|
import { IFilterContainer } from '../../interfaces/components/FilterContainer';
|
2
3
|
|
3
|
-
declare const FilterContainer:
|
4
|
+
declare const FilterContainer: React.ForwardRefExoticComponent<IFilterContainer & React.RefAttributes<import('../../interfaces/components/FilterContainer').IChildFilterContainer>>;
|
4
5
|
export default FilterContainer;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { ChartArea, ChartData, ChartDataset, ChartOptions, CoreScaleOptions, Scale } from 'chart.js';
|
1
|
+
import { ChartArea, ChartData, ChartDataset, ChartOptions, CoreScaleOptions, Scale, TooltipItem } from 'chart.js';
|
2
2
|
import { default as React } from 'react';
|
3
3
|
|
4
4
|
export type TOptionsDoughnutChart = ChartOptions<'doughnut'>;
|
@@ -68,6 +68,8 @@ export type TGradientLineChartCustomTooltip = React.ComponentType<{
|
|
68
68
|
label: string;
|
69
69
|
dataset: string;
|
70
70
|
value: number;
|
71
|
+
style: React.CSSProperties;
|
72
|
+
dataPoints: TooltipItem<'line'>[];
|
71
73
|
}>;
|
72
74
|
export interface IGradientLineChartDataSet extends ChartDataset<'line'> {
|
73
75
|
colorBackgroundPositiveZero?: string;
|
@@ -86,7 +88,14 @@ export interface IGradientLineChart {
|
|
86
88
|
id: string;
|
87
89
|
classNameContainer?: string;
|
88
90
|
height?: number;
|
89
|
-
|
91
|
+
CustomTooltip?: TGradientLineChartCustomTooltip;
|
92
|
+
}
|
93
|
+
export interface IDataGradientLineChartCustomTooltip {
|
94
|
+
style: React.CSSProperties;
|
95
|
+
label: string;
|
96
|
+
dataset: string;
|
97
|
+
value: number;
|
98
|
+
dataPoints: TooltipItem<'line'>[];
|
90
99
|
}
|
91
100
|
type TGradientBarChartScales = Record<string, Scale<CoreScaleOptions>>;
|
92
101
|
type TGradientBarChartGradientFor = 'background' | 'border';
|
@@ -109,6 +118,8 @@ export type TGradientBarChartCustomTooltip = React.ComponentType<{
|
|
109
118
|
label: string;
|
110
119
|
dataset: string;
|
111
120
|
value: number;
|
121
|
+
style: React.CSSProperties;
|
122
|
+
dataPoints: TooltipItem<'bar'>[];
|
112
123
|
}>;
|
113
124
|
export interface IGradientBarChartDataSet extends ChartDataset<'bar'> {
|
114
125
|
colorBackgroundPositiveZero?: string;
|
@@ -130,6 +141,13 @@ export interface IGradientBarChart {
|
|
130
141
|
id: string;
|
131
142
|
classNameContainer?: string;
|
132
143
|
height?: number;
|
133
|
-
|
144
|
+
CustomTooltip?: TGradientBarChartCustomTooltip;
|
145
|
+
}
|
146
|
+
export interface IDataGradientBarChartCustomTooltip {
|
147
|
+
style: React.CSSProperties;
|
148
|
+
label: string;
|
149
|
+
dataset: string;
|
150
|
+
value: number;
|
151
|
+
dataPoints: TooltipItem<'bar'>[];
|
134
152
|
}
|
135
153
|
export {};
|
package/package.json
CHANGED