1mpacto-react-ui 0.0.127 → 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.
@@ -1,4 +1,4 @@
1
1
  import { IGradientBarChart } from '../../interfaces/components/Chart';
2
2
 
3
- declare const GradientBarChart: ({ data, classNameContainer, height, id, options, customTooltip }: IGradientBarChart) => import("react/jsx-runtime").JSX.Element;
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, customTooltip }: import('..').IGradientBarChart) => import("react/jsx-runtime").JSX.Element;
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('..').IGradientBarChart) => import("react/jsx-runtime").JSX.Element;
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, customTooltip }: IGradientLineChart) => import("react/jsx-runtime").JSX.Element;
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, customTooltip }: import('..').IGradientLineChart) => import("react/jsx-runtime").JSX.Element;
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('..').IGradientLineChart) => import("react/jsx-runtime").JSX.Element;
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: ({ children, onChange, prefixNativeValue, defaultNativeValue, defaultValue, mountedExecuteChange, keepKeys, resetPagination, keyPageNumber, triggerReset, reset, }: IFilterContainer) => import("react/jsx-runtime").JSX.Element;
4
+ declare const FilterContainer: React.ForwardRefExoticComponent<IFilterContainer & React.RefAttributes<import('../../interfaces/components/FilterContainer').IChildFilterContainer>>;
4
5
  export default FilterContainer;
@@ -3,5 +3,6 @@ import { ReactNode } from 'react';
3
3
  declare const PortalComponent: React.FC<{
4
4
  containerId?: string;
5
5
  children: ReactNode;
6
+ selector?: string;
6
7
  }>;
7
8
  export default PortalComponent;
@@ -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
- customTooltip?: TGradientLineChartCustomTooltip;
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
- customTooltip?: TGradientBarChartCustomTooltip;
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 {};
@@ -27,3 +27,4 @@ export interface IFilterContainer {
27
27
  reset?: boolean;
28
28
  triggerReset?: IMergeState;
29
29
  }
30
+ export type TRefFilterContainer = IChildFilterContainer;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "1mpacto-react-ui",
3
3
  "private": false,
4
- "version": "0.0.127",
4
+ "version": "0.0.129",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "copy:toastify-css": "cp ./node_modules/react-toastify/dist/ReactToastify.css ./dist/assets/toast.css",