kwant-ui 3.17.0 → 3.18.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.
@@ -0,0 +1,3 @@
1
+ import { IAreaChart } from './AreaChartTypes';
2
+ declare const AreaChart: (props: IAreaChart.Props) => import("react/jsx-runtime").JSX.Element;
3
+ export default AreaChart;
@@ -0,0 +1,43 @@
1
+ import { YAxisProps } from 'recharts';
2
+ import { Props as AreaProps } from 'recharts/types/cartesian/Area';
3
+ export declare const data: ({
4
+ name: string;
5
+ actualWorkforce: number;
6
+ budgetedWorkforce: number;
7
+ workerConsistency: number;
8
+ date: string;
9
+ prediction?: undefined;
10
+ } | {
11
+ name: string;
12
+ actualWorkforce: number;
13
+ budgetedWorkforce: number;
14
+ prediction: number;
15
+ workerConsistency: number;
16
+ date: string;
17
+ })[];
18
+ export declare const areas: {
19
+ dataKey: string;
20
+ color: string;
21
+ stroke: string;
22
+ fillOpacity: number;
23
+ name: string;
24
+ }[];
25
+ export declare const areasYAxisRight: {
26
+ dataKey: string;
27
+ color: string;
28
+ fill: string;
29
+ fillOpacity: number;
30
+ stroke: string;
31
+ yAxisId: string;
32
+ name: string;
33
+ }[];
34
+ export declare const xAxisTickDefaultConfig: {
35
+ fill: string;
36
+ fontFamily: string;
37
+ fontSize: number;
38
+ textAnchor: string;
39
+ x: number;
40
+ y: number;
41
+ };
42
+ export declare const yAxisStaticProps: YAxisProps;
43
+ export declare const areaStaticProps: Omit<Partial<AreaProps>, 'ref'>;
@@ -0,0 +1,19 @@
1
+ export declare const LegendsContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
2
+ export declare const Legend: import("styled-components").StyledComponent<"div", any, {}, never>;
3
+ export declare const LegendColorContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
4
+ export declare const LegendColor: import("styled-components").StyledComponent<"div", any, {
5
+ color: string;
6
+ }, never>;
7
+ export declare const LegendLabel: import("styled-components").StyledComponent<"div", any, {}, never>;
8
+ export declare const CustomTickStyled: import("styled-components").StyledComponent<"g", any, {}, never>;
9
+ export declare const TickDay: import("styled-components").StyledComponent<"text", any, {}, never>;
10
+ export declare const TickDate: import("styled-components").StyledComponent<"text", any, {}, never>;
11
+ export declare const TooltipStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
12
+ export declare const TooltipTitle: import("styled-components").StyledComponent<"div", any, {}, never>;
13
+ export declare const TooltipItemContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
14
+ export declare const TooltipItemLeft: import("styled-components").StyledComponent<"div", any, {}, never>;
15
+ export declare const TooltipItemColor: import("styled-components").StyledComponent<"div", any, {
16
+ color: string;
17
+ }, never>;
18
+ export declare const TooltipItemLabel: import("styled-components").StyledComponent<"span", any, {}, never>;
19
+ export declare const TooltipItemRight: import("styled-components").StyledComponent<"span", any, {}, never>;
@@ -0,0 +1,58 @@
1
+ /// <reference types="react" />
2
+ import { XAxisProps, YAxisProps } from 'recharts';
3
+ import { Props as AreaProps } from 'recharts/types/cartesian/Area';
4
+ import { Props as CartesianGridProps } from 'recharts/types/cartesian/CartesianGrid';
5
+ import { Payload } from 'recharts/types/component/DefaultLegendContent';
6
+ import { NameType, ValueType } from 'recharts/types/component/DefaultTooltipContent';
7
+ import { Props as LegendProps } from 'recharts/types/component/Legend';
8
+ import { ContentType, TooltipProps } from 'recharts/types/component/Tooltip';
9
+ export declare namespace IAreaChart {
10
+ type Props = {
11
+ width?: string | number;
12
+ height?: string | number;
13
+ margin?: {
14
+ top?: number;
15
+ right?: number;
16
+ bottom?: number;
17
+ left?: number;
18
+ };
19
+ data?: any[];
20
+ areas?: Area[];
21
+ areasYAxisRight?: Area[];
22
+ xAxisDataKey?: string;
23
+ showTooltip?: boolean;
24
+ xAxisLabel?: string;
25
+ yAxisLeftLabel?: string;
26
+ yAxisRightLabel?: string;
27
+ showRightYAxis?: boolean;
28
+ showLegends?: boolean;
29
+ customTooltip?: ContentType<ValueType, NameType>;
30
+ gradient?: React.ReactNode;
31
+ tooltipProps?: TooltipProps<ValueType, NameType>;
32
+ cartesianGridProps?: Omit<CartesianGridProps, 'ref'>;
33
+ legendProps?: Omit<LegendProps, 'ref'>;
34
+ xAxisProps?: XAxisProps;
35
+ yAxisProps?: YAxisProps;
36
+ yAxisRightProps?: YAxisProps;
37
+ areaProps?: AreaProps;
38
+ areaYAxisRightProps?: AreaProps;
39
+ customTooltipLabelFormatter?: (label: any) => string;
40
+ };
41
+ type Area = {
42
+ dataKey: string;
43
+ name: string;
44
+ stroke?: any;
45
+ fill?: any;
46
+ fillOpacity?: number;
47
+ color?: string;
48
+ gradientId?: string;
49
+ [key: string]: any;
50
+ };
51
+ type CustomLegend = {
52
+ payload?: (Payload & {
53
+ payload: Payload['payload'] & {
54
+ fill: string;
55
+ };
56
+ })[];
57
+ };
58
+ }
@@ -0,0 +1,20 @@
1
+ import { TooltipProps } from 'recharts';
2
+ import { NameType, ValueType } from 'recharts/types/component/DefaultTooltipContent';
3
+ import { IAreaChart } from './AreaChartTypes';
4
+ export declare const CustomLegend: (props: IAreaChart.CustomLegend) => import("react/jsx-runtime").JSX.Element;
5
+ export declare const Tick: (props: {
6
+ value: any;
7
+ dy: any;
8
+ }) => import("react/jsx-runtime").JSX.Element;
9
+ export declare const TickX: (props: {
10
+ x?: number;
11
+ y?: number;
12
+ payload?: any;
13
+ }) => import("react/jsx-runtime").JSX.Element;
14
+ export declare const tooltipLabelFormatter: (label: string) => string;
15
+ export declare const TooltipItemRow: ({ color, name, value, }: {
16
+ color?: string;
17
+ name?: string;
18
+ value?: string;
19
+ }) => import("react/jsx-runtime").JSX.Element;
20
+ export declare const CustomTooltip: (props: TooltipProps<ValueType, NameType>) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import AreaChart from './AreaChart';
2
+ export { AreaChart };
@@ -0,0 +1,3 @@
1
+ import { IWeekwiseBarChart } from './WeekwiseBarChartTypes';
2
+ declare const WeekwiseBarChart: (props: IWeekwiseBarChart.Props) => import("react/jsx-runtime").JSX.Element;
3
+ export default WeekwiseBarChart;
@@ -0,0 +1,40 @@
1
+ export declare const weekWiseBarChartData: {
2
+ weekStartDate: string;
3
+ weekEndDate: string;
4
+ dateRange: string;
5
+ day1: {
6
+ date: string;
7
+ productiveHours: number;
8
+ unProductiveHours: number;
9
+ };
10
+ day2: {
11
+ date: string;
12
+ productiveHours: number;
13
+ unProductiveHours: number;
14
+ };
15
+ day3: {
16
+ date: string;
17
+ productiveHours: number;
18
+ unProductiveHours: number;
19
+ };
20
+ day4: {
21
+ date: string;
22
+ productiveHours: number;
23
+ unProductiveHours: number;
24
+ };
25
+ day5: {
26
+ date: string;
27
+ productiveHours: number;
28
+ unProductiveHours: number;
29
+ };
30
+ day6: {
31
+ date: string;
32
+ productiveHours: number;
33
+ unProductiveHours: number;
34
+ };
35
+ day7: {
36
+ date: string;
37
+ productiveHours: number;
38
+ unProductiveHours: number;
39
+ };
40
+ }[];
@@ -0,0 +1,31 @@
1
+ import { Payload } from 'recharts/types/component/DefaultLegendContent';
2
+ export declare namespace IWeekwiseBarChart {
3
+ type Props = {
4
+ width?: string | number;
5
+ height?: string | number;
6
+ legends?: CustomLegendType[];
7
+ data: any[];
8
+ labelX?: string;
9
+ labelY?: string;
10
+ dataKeyX: string;
11
+ dataKeyY?: string;
12
+ showTooltip?: boolean;
13
+ showLegends?: boolean;
14
+ margin?: {
15
+ top?: number;
16
+ right?: number;
17
+ bottom?: number;
18
+ left?: number;
19
+ };
20
+ customYAxisTickFormatter?: (value: any) => string;
21
+ customXAxisTickFormatter?: (value: any) => string;
22
+ };
23
+ type CustomLegendType = Omit<Payload, keyof Payload> & {
24
+ value: string;
25
+ payload?: {
26
+ fill?: string;
27
+ value: string;
28
+ strokeDasharray: string;
29
+ };
30
+ };
31
+ }
@@ -0,0 +1,10 @@
1
+ import { TooltipProps } from 'recharts';
2
+ import { NameType, ValueType } from 'recharts/types/component/DefaultTooltipContent';
3
+ import { Props as LabelListContentProps } from 'recharts/types/component/Label';
4
+ export declare const TickX: (props: {
5
+ x?: number;
6
+ y?: number;
7
+ payload?: any;
8
+ }) => import("react/jsx-runtime").JSX.Element;
9
+ export declare const renderCustomizedLabel: (props: LabelListContentProps) => import("react/jsx-runtime").JSX.Element;
10
+ export declare const WeekwiseChartCustomTooltip: (props: TooltipProps<ValueType, NameType>) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import WeekwiseBarChart from './WeekwiseBarChart';
2
+ export { WeekwiseBarChart };
package/dist/index.d.ts CHANGED
@@ -53,3 +53,4 @@ export * from './components/Calendar';
53
53
  export * from './components/DropdownCalendar';
54
54
  export * from './GlobalStyles';
55
55
  export * from './HOC/HoverHOC';
56
+ export * from './components/Charts/AreaChart';