@adiba-banking-cloud/backoffice 0.0.101 → 0.0.102
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/build/index.cjs.js/index.js +315 -288
- package/build/index.esm.js/index.js +315 -288
- package/build/typings/components/charts/area/Area.stories.d.ts +1 -0
- package/build/typings/components/charts/area/Area.types.d.ts +4 -0
- package/build/typings/components/charts/heatmap/Heatmap.d.ts +5 -0
- package/build/typings/components/charts/heatmap/Heatmap.default.d.ts +2 -0
- package/build/typings/components/charts/heatmap/Heatmap.stories.d.ts +8 -0
- package/build/typings/components/charts/heatmap/Heatmap.types.d.ts +68 -0
- package/package.json +2 -2
|
@@ -6,3 +6,4 @@ export default _default;
|
|
|
6
6
|
export declare const SimpleAreaChart: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./Area.types").SimpleAreaChartProps>;
|
|
7
7
|
export declare const MultiAxisAreaChart: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./Area.types").MultiAxisAreaChartProps>;
|
|
8
8
|
export declare const StackedAreaChart: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./Area.types").StackedAreaChartProps>;
|
|
9
|
+
export declare const StepAreaChart: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./Area.types").SimpleAreaChartProps>;
|
|
@@ -22,6 +22,7 @@ export interface AreaChartProps {
|
|
|
22
22
|
verticalAlign?: "top" | "middle" | "bottom";
|
|
23
23
|
};
|
|
24
24
|
showYAxis?: boolean;
|
|
25
|
+
step?: false | "left" | "center" | "right";
|
|
25
26
|
}
|
|
26
27
|
export interface SimpleAreaChartProps {
|
|
27
28
|
bgColor?: string;
|
|
@@ -38,6 +39,7 @@ export interface SimpleAreaChartProps {
|
|
|
38
39
|
verticalAlign?: "top" | "middle" | "bottom";
|
|
39
40
|
};
|
|
40
41
|
showYAxis?: boolean;
|
|
42
|
+
step?: false | "left" | "center" | "right";
|
|
41
43
|
}
|
|
42
44
|
export interface ChartSeriesArea {
|
|
43
45
|
xAxis: {
|
|
@@ -90,6 +92,7 @@ export interface MultiAxisAreaChartProps {
|
|
|
90
92
|
};
|
|
91
93
|
showYAxis?: boolean | boolean[];
|
|
92
94
|
aggregator?: "sum" | "average";
|
|
95
|
+
step?: false | "left" | "center" | "right";
|
|
93
96
|
yAxisConfig?: Array<{
|
|
94
97
|
title?: string;
|
|
95
98
|
allowDecimals?: boolean;
|
|
@@ -117,4 +120,5 @@ export interface StackedAreaChartProps {
|
|
|
117
120
|
};
|
|
118
121
|
showYAxis?: boolean;
|
|
119
122
|
aggregator?: "sum" | "average";
|
|
123
|
+
step?: false | "left" | "center" | "right";
|
|
120
124
|
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { BasicHeatmapProps, InterpolatedHeatmapProps, CalendarHeatmapProps } from "./Heatmap.types";
|
|
3
|
+
export declare const BasicHeatmap: React.FC<BasicHeatmapProps>;
|
|
4
|
+
export declare const InterpolatedHeatmap: React.FC<InterpolatedHeatmapProps>;
|
|
5
|
+
export declare const CalendarHeatmap: React.FC<CalendarHeatmapProps>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Meta } from "@storybook/react";
|
|
2
|
+
import "@mantine/core/styles.css";
|
|
3
|
+
import { BasicHeatmap } from "./Heatmap";
|
|
4
|
+
declare const _default: Meta<typeof BasicHeatmap>;
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const BasicHeatmapChart: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./Heatmap.types").BasicHeatmapProps>;
|
|
7
|
+
export declare const InterpolatedHeatmapChart: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./Heatmap.types").InterpolatedHeatmapProps>;
|
|
8
|
+
export declare const CalendarHeatmapChart: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./Heatmap.types").CalendarHeatmapProps>;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
export interface HeatmapChartConfig {
|
|
2
|
+
chart: object;
|
|
3
|
+
tooltip: object;
|
|
4
|
+
credits: object;
|
|
5
|
+
exporting: object;
|
|
6
|
+
title: object;
|
|
7
|
+
labels: object;
|
|
8
|
+
legend: object;
|
|
9
|
+
colorAxis?: object;
|
|
10
|
+
}
|
|
11
|
+
export interface HeatmapDataPoint {
|
|
12
|
+
x: number;
|
|
13
|
+
y: number;
|
|
14
|
+
value: number;
|
|
15
|
+
}
|
|
16
|
+
export interface CalendarHeatmapDataPoint {
|
|
17
|
+
date: string | Date;
|
|
18
|
+
value: number;
|
|
19
|
+
}
|
|
20
|
+
export interface BaseHeatmapProps {
|
|
21
|
+
bgColor?: string;
|
|
22
|
+
plotBgColor?: string;
|
|
23
|
+
title?: string;
|
|
24
|
+
withLegend?: boolean;
|
|
25
|
+
showXLabel?: boolean;
|
|
26
|
+
showYLabel?: boolean;
|
|
27
|
+
colorScale?: {
|
|
28
|
+
min?: number;
|
|
29
|
+
max?: number;
|
|
30
|
+
stops?: Array<[number, string]>;
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export interface BasicHeatmapProps extends BaseHeatmapProps {
|
|
34
|
+
type: "basic";
|
|
35
|
+
xAxisLabel: string[];
|
|
36
|
+
yAxisLabel: string[];
|
|
37
|
+
data: HeatmapDataPoint[];
|
|
38
|
+
}
|
|
39
|
+
export interface InterpolatedHeatmapProps extends BaseHeatmapProps {
|
|
40
|
+
type: "interpolated";
|
|
41
|
+
xAxisLabel: string[];
|
|
42
|
+
yAxisLabel: string[];
|
|
43
|
+
data: HeatmapDataPoint[];
|
|
44
|
+
}
|
|
45
|
+
export interface CalendarHeatmapProps extends BaseHeatmapProps {
|
|
46
|
+
type: "calendar";
|
|
47
|
+
data: CalendarHeatmapDataPoint[];
|
|
48
|
+
startDate?: string | Date;
|
|
49
|
+
endDate?: string | Date;
|
|
50
|
+
}
|
|
51
|
+
export type HeatmapProps = BasicHeatmapProps | InterpolatedHeatmapProps | CalendarHeatmapProps;
|
|
52
|
+
export interface ChartSeriesHeatmap {
|
|
53
|
+
xAxis: {
|
|
54
|
+
categories: string[];
|
|
55
|
+
labels: object;
|
|
56
|
+
};
|
|
57
|
+
yAxis: {
|
|
58
|
+
categories: string[];
|
|
59
|
+
labels: object;
|
|
60
|
+
};
|
|
61
|
+
series: Array<{
|
|
62
|
+
name: string;
|
|
63
|
+
data: Array<[number, number, number]>;
|
|
64
|
+
turboThreshold?: number;
|
|
65
|
+
}>;
|
|
66
|
+
plotOptions: object;
|
|
67
|
+
colorAxis?: object;
|
|
68
|
+
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adiba-banking-cloud/backoffice",
|
|
3
3
|
"author": "TUROG Technologies",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.102",
|
|
5
5
|
"description": "An ADIBA component library for backoffice and dashboard applications",
|
|
6
6
|
"license": "ISC",
|
|
7
7
|
"main": "build/index.cjs.js",
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
"@hello-pangea/dnd": "^16.5.0",
|
|
33
33
|
"@lottiefiles/dotlottie-react": "^0.14.1",
|
|
34
34
|
"@mantine/core": "^7.12.2",
|
|
35
|
+
"@mantine/form": "^7.17.8",
|
|
35
36
|
"@mantine/hooks": "^7.12.2",
|
|
36
37
|
"@mantine/modals": "^7.17.8",
|
|
37
|
-
"@mantine/form": "^7.17.8",
|
|
38
38
|
"highcharts-react-official": "^3.2.2",
|
|
39
39
|
"highcharts-rounded-corners": "^1.0.7",
|
|
40
40
|
"iconsax-react": "^0.0.8",
|