pixelize-design-library 2.1.74 → 2.1.76
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/Components/Apexcharts/ApexLineChart/ApexLineChart.d.ts +4 -0
- package/dist/Components/Apexcharts/ApexLineChart/ApexLineChart.js +125 -0
- package/dist/Components/Apexcharts/ApexLineChart/ApexLineChartProps.d.ts +22 -0
- package/dist/Components/Apexcharts/ApexLineChart/ApexLineChartProps.js +2 -0
- package/dist/Components/Apexcharts/ApexPieChart/ApexPieChart.d.ts +2 -1
- package/dist/Components/Apexcharts/ApexPieChart/ApexPieChart.js +113 -16
- package/dist/Components/Apexcharts/ApexPieChart/ApexPieChartProps.d.ts +15 -33
- package/dist/Components/NoteTextArea/NoteTextArea.js +0 -381
- package/dist/Pages/chart.js +14 -5
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3 -3
- package/package.json +1 -1
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ApexLineChartProps } from "./ApexLineChartProps";
|
|
3
|
+
declare const ApexLineChart: ({ data, labels, title, height, width, lineColors, titlePosition, titleStyle, variant, }: ApexLineChartProps) => React.JSX.Element;
|
|
4
|
+
export default ApexLineChart;
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
26
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
27
|
+
if (ar || !(i in from)) {
|
|
28
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
29
|
+
ar[i] = from[i];
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
33
|
+
};
|
|
34
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
35
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
36
|
+
};
|
|
37
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38
|
+
var react_1 = __importStar(require("react"));
|
|
39
|
+
var react_apexcharts_1 = __importDefault(require("react-apexcharts"));
|
|
40
|
+
var ApexLineChart = function (_a) {
|
|
41
|
+
var data = _a.data, labels = _a.labels, title = _a.title, _b = _a.height, height = _b === void 0 ? 400 : _b, _c = _a.width, width = _c === void 0 ? 600 : _c, _d = _a.lineColors, lineColors = _d === void 0 ? ["#3182ce", "#e53e3e", "#38a169"] : _d, _e = _a.titlePosition, titlePosition = _e === void 0 ? "center" : _e, _f = _a.titleStyle, titleStyle = _f === void 0 ? {
|
|
42
|
+
color: "#3182ce",
|
|
43
|
+
fontSize: "16px",
|
|
44
|
+
fontWeight: 600,
|
|
45
|
+
fontFamily: "Arial",
|
|
46
|
+
} : _f, _g = _a.variant, variant = _g === void 0 ? "basic" : _g;
|
|
47
|
+
var _h = (0, react_1.useState)([
|
|
48
|
+
{
|
|
49
|
+
name: "Series 1",
|
|
50
|
+
data: Array.isArray(data) ? data : [],
|
|
51
|
+
},
|
|
52
|
+
]), series = _h[0], setSeries = _h[1];
|
|
53
|
+
var chartRef = (0, react_1.useRef)(null);
|
|
54
|
+
// 🔄 Handle realtime updates
|
|
55
|
+
(0, react_1.useEffect)(function () {
|
|
56
|
+
if (variant === "realtime") {
|
|
57
|
+
var interval_1 = setInterval(function () {
|
|
58
|
+
setSeries(function (prev) {
|
|
59
|
+
var newData = __spreadArray([], prev[0].data, true);
|
|
60
|
+
newData.push(Math.floor(Math.random() * 100) + 10); // simulate
|
|
61
|
+
if (newData.length > 20)
|
|
62
|
+
newData.shift(); // keep window size
|
|
63
|
+
return [{ name: "Series 1", data: newData }];
|
|
64
|
+
});
|
|
65
|
+
}, 1000);
|
|
66
|
+
return function () { return clearInterval(interval_1); };
|
|
67
|
+
}
|
|
68
|
+
}, [variant]);
|
|
69
|
+
// const options: ApexOptions = {
|
|
70
|
+
// chart: {
|
|
71
|
+
// type: "line",
|
|
72
|
+
// animations:
|
|
73
|
+
// variant === "realtime"
|
|
74
|
+
// ? {
|
|
75
|
+
// enabled: true,
|
|
76
|
+
// easing: "linear",
|
|
77
|
+
// dynamicAnimation: { speed: 1000 },
|
|
78
|
+
// }
|
|
79
|
+
// : undefined,
|
|
80
|
+
// zoom: { enabled: true },
|
|
81
|
+
// toolbar: { show: true },
|
|
82
|
+
// },
|
|
83
|
+
// stroke: { curve: "smooth" },
|
|
84
|
+
// colors: lineColors,
|
|
85
|
+
// xaxis: labels
|
|
86
|
+
// ? { categories: labels }
|
|
87
|
+
// : { type: variant === "realtime" ? "numeric" : "category" },
|
|
88
|
+
// title: {
|
|
89
|
+
// text: title,
|
|
90
|
+
// align: titlePosition ?? "center",
|
|
91
|
+
// style: titleStyle,
|
|
92
|
+
// },
|
|
93
|
+
// markers: { size: 4 },
|
|
94
|
+
// dataLabels: { enabled: false },
|
|
95
|
+
// };
|
|
96
|
+
var options = {
|
|
97
|
+
chart: {
|
|
98
|
+
type: "line",
|
|
99
|
+
animations: variant === "realtime"
|
|
100
|
+
? {
|
|
101
|
+
enabled: true,
|
|
102
|
+
speed: 1000,
|
|
103
|
+
dynamicAnimation: { speed: 1000 }, // ✅ allowed
|
|
104
|
+
}
|
|
105
|
+
: { enabled: false },
|
|
106
|
+
zoom: { enabled: true },
|
|
107
|
+
toolbar: { show: true },
|
|
108
|
+
},
|
|
109
|
+
stroke: { curve: "smooth" },
|
|
110
|
+
colors: lineColors,
|
|
111
|
+
xaxis: labels
|
|
112
|
+
? { categories: labels }
|
|
113
|
+
: { type: variant === "realtime" ? "numeric" : "category" },
|
|
114
|
+
title: {
|
|
115
|
+
text: title,
|
|
116
|
+
align: titlePosition !== null && titlePosition !== void 0 ? titlePosition : "center",
|
|
117
|
+
style: titleStyle,
|
|
118
|
+
},
|
|
119
|
+
markers: { size: 4 },
|
|
120
|
+
dataLabels: { enabled: false },
|
|
121
|
+
};
|
|
122
|
+
return (react_1.default.createElement("div", null,
|
|
123
|
+
react_1.default.createElement(react_apexcharts_1.default, { ref: chartRef, options: options, series: series, type: "line", height: height, width: width })));
|
|
124
|
+
};
|
|
125
|
+
exports.default = ApexLineChart;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export type ApexLineChartProps = {
|
|
2
|
+
variant?: LineChartVariant;
|
|
3
|
+
data: number[];
|
|
4
|
+
labels?: string[];
|
|
5
|
+
title?: string;
|
|
6
|
+
height?: number;
|
|
7
|
+
width?: number;
|
|
8
|
+
lineColors?: string[];
|
|
9
|
+
titlePosition?: "left" | "center" | "right";
|
|
10
|
+
titleStyle?: {
|
|
11
|
+
color?: string;
|
|
12
|
+
fontSize?: string;
|
|
13
|
+
fontWeight?: number | string;
|
|
14
|
+
fontFamily?: string;
|
|
15
|
+
};
|
|
16
|
+
legendStyle?: {
|
|
17
|
+
colors?: string | string[];
|
|
18
|
+
useSeriesColors?: boolean;
|
|
19
|
+
position?: "top" | "right" | "bottom" | "left";
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
export type LineChartVariant = "basic" | "realtime";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { ApexPieChartProps } from "./ApexPieChartProps";
|
|
3
|
-
|
|
3
|
+
declare const ApexPieChart: ({ data, labels, title, height, width, donutColors, chartColor, titlePosition, titleStyle, legendStyle, variant, }: ApexPieChartProps) => React.JSX.Element;
|
|
4
|
+
export default ApexPieChart;
|
|
@@ -1,29 +1,126 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
2
13
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
14
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
15
|
};
|
|
5
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
17
|
var react_1 = __importDefault(require("react"));
|
|
7
18
|
var react_apexcharts_1 = __importDefault(require("react-apexcharts"));
|
|
8
|
-
function
|
|
9
|
-
var
|
|
19
|
+
var ApexPieChart = function (_a) {
|
|
20
|
+
var _b, _c;
|
|
21
|
+
var data = _a.data, labels = _a.labels, title = _a.title, _d = _a.height, height = _d === void 0 ? 400 : _d, _e = _a.width, width = _e === void 0 ? 500 : _e, donutColors = _a.donutColors, chartColor = _a.chartColor, _f = _a.titlePosition, titlePosition = _f === void 0 ? "center" : _f, _g = _a.titleStyle, titleStyle = _g === void 0 ? {
|
|
10
22
|
color: "#3182ce",
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
23
|
+
fontSize: "16px",
|
|
24
|
+
fontWeight: 600,
|
|
25
|
+
fontFamily: "Arial",
|
|
26
|
+
} : _g, _h = _a.legendStyle, legendStyle = _h === void 0 ? {
|
|
27
|
+
colors: "#000",
|
|
28
|
+
position: "bottom",
|
|
29
|
+
useSeriesColors: false,
|
|
30
|
+
} : _h, _j = _a.variant, variant = _j === void 0 ? "pie" : _j;
|
|
31
|
+
var extraOptions = {};
|
|
32
|
+
switch (variant) {
|
|
33
|
+
case "semi-donut":
|
|
34
|
+
extraOptions = {
|
|
35
|
+
plotOptions: {
|
|
36
|
+
pie: {
|
|
37
|
+
startAngle: -90,
|
|
38
|
+
endAngle: 90,
|
|
39
|
+
offsetY: 10,
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
};
|
|
43
|
+
break;
|
|
44
|
+
case "monochrome-pie":
|
|
45
|
+
extraOptions = {
|
|
46
|
+
theme: {
|
|
47
|
+
monochrome: {
|
|
48
|
+
enabled: true,
|
|
49
|
+
shadeTo: "light",
|
|
50
|
+
shadeIntensity: 0.65,
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
};
|
|
54
|
+
break;
|
|
55
|
+
case "gradient-donut":
|
|
56
|
+
extraOptions = {
|
|
57
|
+
fill: {
|
|
58
|
+
type: "gradient",
|
|
59
|
+
},
|
|
60
|
+
};
|
|
61
|
+
break;
|
|
62
|
+
case "donut-with-pattern":
|
|
63
|
+
extraOptions = {
|
|
64
|
+
fill: {
|
|
65
|
+
type: "pattern",
|
|
66
|
+
pattern: {
|
|
67
|
+
style: ["verticalLines", "squares", "horizontalLines", "circles"],
|
|
68
|
+
},
|
|
69
|
+
},
|
|
70
|
+
};
|
|
71
|
+
break;
|
|
72
|
+
case "pie-with-image":
|
|
73
|
+
extraOptions = {
|
|
74
|
+
fill: {
|
|
75
|
+
type: "image",
|
|
76
|
+
image: {
|
|
77
|
+
src: [
|
|
78
|
+
"https://i.imgur.com/UM3mrju.jpg",
|
|
79
|
+
"https://i.imgur.com/NpPOqQq.jpg",
|
|
80
|
+
],
|
|
81
|
+
},
|
|
82
|
+
},
|
|
83
|
+
};
|
|
84
|
+
break;
|
|
85
|
+
case "update-donut":
|
|
86
|
+
extraOptions = {
|
|
87
|
+
plotOptions: {
|
|
88
|
+
pie: {
|
|
89
|
+
donut: {
|
|
90
|
+
labels: {
|
|
91
|
+
show: true,
|
|
92
|
+
total: {
|
|
93
|
+
show: true,
|
|
94
|
+
label: "Total",
|
|
95
|
+
},
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
},
|
|
99
|
+
},
|
|
100
|
+
};
|
|
101
|
+
break;
|
|
102
|
+
case "pie":
|
|
103
|
+
extraOptions = {
|
|
104
|
+
chart: { type: "pie" },
|
|
105
|
+
};
|
|
106
|
+
break;
|
|
107
|
+
default:
|
|
108
|
+
break;
|
|
109
|
+
}
|
|
110
|
+
var options = __assign({ chart: {
|
|
111
|
+
type: variant.includes("pie") ? "pie" : "donut",
|
|
112
|
+
}, labels: labels, colors: (_b = chartColor !== null && chartColor !== void 0 ? chartColor : donutColors) !== null && _b !== void 0 ? _b : ["#3182ce", "#e53e3e", "#38a169", "#dd6b20"], legend: {
|
|
113
|
+
position: legendStyle.position,
|
|
114
|
+
labels: {
|
|
115
|
+
colors: legendStyle.colors,
|
|
116
|
+
useSeriesColors: legendStyle.useSeriesColors,
|
|
117
|
+
},
|
|
118
|
+
}, title: {
|
|
19
119
|
text: title,
|
|
20
120
|
align: titlePosition,
|
|
21
121
|
style: titleStyle,
|
|
22
|
-
},
|
|
23
|
-
colors: chartColor,
|
|
24
|
-
};
|
|
25
|
-
var series = data;
|
|
122
|
+
}, dataLabels: { enabled: true } }, extraOptions);
|
|
26
123
|
return (react_1.default.createElement("div", null,
|
|
27
|
-
react_1.default.createElement(react_apexcharts_1.default, { options: options, series:
|
|
28
|
-
}
|
|
124
|
+
react_1.default.createElement(react_apexcharts_1.default, { options: options, series: data, type: (_c = options.chart) === null || _c === void 0 ? void 0 : _c.type, height: height, width: width })));
|
|
125
|
+
};
|
|
29
126
|
exports.default = ApexPieChart;
|
|
@@ -1,41 +1,23 @@
|
|
|
1
1
|
export type ApexPieChartProps = {
|
|
2
|
+
variant?: DonutPieVariant;
|
|
2
3
|
data: number[];
|
|
3
4
|
labels: string[];
|
|
4
5
|
title?: string;
|
|
5
|
-
titlePosition?: "left" | "center" | "right";
|
|
6
6
|
height?: number;
|
|
7
7
|
width?: number;
|
|
8
|
+
donutColors?: string[];
|
|
8
9
|
chartColor?: string[];
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
10
|
+
titlePosition?: "left" | "center" | "right";
|
|
11
|
+
titleStyle?: {
|
|
12
|
+
color?: string;
|
|
13
|
+
fontSize?: string;
|
|
14
|
+
fontWeight?: number | string;
|
|
15
|
+
fontFamily?: string;
|
|
16
|
+
};
|
|
17
|
+
legendStyle?: {
|
|
18
|
+
colors?: string | string[];
|
|
19
|
+
useSeriesColors?: boolean;
|
|
20
|
+
position?: "top" | "right" | "bottom" | "left";
|
|
21
|
+
};
|
|
16
22
|
};
|
|
17
|
-
export
|
|
18
|
-
annotations?: ApexAnnotations;
|
|
19
|
-
chart?: ApexChart;
|
|
20
|
-
colors?: any[];
|
|
21
|
-
dataLabels?: ApexDataLabels;
|
|
22
|
-
fill?: ApexFill;
|
|
23
|
-
forecastDataPoints?: ApexForecastDataPoints;
|
|
24
|
-
grid?: ApexGrid;
|
|
25
|
-
labels?: string[];
|
|
26
|
-
legend?: ApexLegend;
|
|
27
|
-
markers?: ApexMarkers;
|
|
28
|
-
noData?: ApexNoData;
|
|
29
|
-
plotOptions?: ApexPlotOptions;
|
|
30
|
-
responsive?: ApexResponsive[];
|
|
31
|
-
series?: ApexAxisChartSeries | ApexNonAxisChartSeries;
|
|
32
|
-
states?: ApexStates;
|
|
33
|
-
stroke?: ApexStroke;
|
|
34
|
-
subtitle?: ApexTitleSubtitle;
|
|
35
|
-
theme?: ApexTheme;
|
|
36
|
-
title?: ApexTitleSubtitle;
|
|
37
|
-
tooltip?: ApexTooltip;
|
|
38
|
-
xaxis?: ApexXAxis;
|
|
39
|
-
yaxis?: ApexYAxis | ApexYAxis[];
|
|
40
|
-
}
|
|
41
|
-
export {};
|
|
23
|
+
export type DonutPieVariant = "pie" | "donut" | "update-donut" | "monochrome-pie" | "gradient-donut" | "semi-donut" | "donut-with-pattern" | "pie-with-image";
|
|
@@ -1,11 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// import React, { useEffect, useRef, useState } from "react";
|
|
3
|
-
// import { NoteTextAreaProps } from "./NoteTextAreaProps";
|
|
4
|
-
// import styled from "@emotion/styled";
|
|
5
|
-
// import { Spinner } from "@chakra-ui/react";
|
|
6
|
-
// import { CustomThemeProps } from "../../Theme/themeProps";
|
|
7
|
-
// import { useCustomTheme } from "../../Theme/useCustomTheme";
|
|
8
|
-
// import { Paperclip, X } from "lucide-react";
|
|
9
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
10
3
|
if (k2 === undefined) k2 = k;
|
|
11
4
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -39,380 +32,6 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
39
32
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
40
33
|
};
|
|
41
34
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
|
-
// const Container = styled.div<{ isActive: boolean }>`
|
|
43
|
-
// border: ${({ isActive }) =>
|
|
44
|
-
// isActive ? "1px solid #3182ce" : "1px solid #c0c6cc"};
|
|
45
|
-
// border-radius: 5px;
|
|
46
|
-
// box-shadow: ${({ isActive }) =>
|
|
47
|
-
// isActive
|
|
48
|
-
// ? "-1px 1px 8px 4px rgb(49 130 206 / 24%), 0px 2px 6px 0 rgb(49 130 206 / 19%)"
|
|
49
|
-
// : "none"};
|
|
50
|
-
// `;
|
|
51
|
-
// const TextAreaContainer = styled.div<{ isActive: boolean }>`
|
|
52
|
-
// width: 100%;
|
|
53
|
-
// cursor: text;
|
|
54
|
-
// padding: 12px 15px;
|
|
55
|
-
// display: ${({ isActive }) => (isActive ? "block" : "none")};
|
|
56
|
-
// `;
|
|
57
|
-
// const PlaceholderText = styled.div<{ isActive: boolean }>`
|
|
58
|
-
// color: #c0c6cc;
|
|
59
|
-
// width: 100%;
|
|
60
|
-
// cursor: text;
|
|
61
|
-
// display: ${({ isActive }) => (isActive ? "block" : "none")};
|
|
62
|
-
// padding: 12px 15px;
|
|
63
|
-
// `;
|
|
64
|
-
// const InputTitle = styled.input`
|
|
65
|
-
// width: 100%;
|
|
66
|
-
// height: auto;
|
|
67
|
-
// border: none;
|
|
68
|
-
// outline: none;
|
|
69
|
-
// background: none;
|
|
70
|
-
// color: black;
|
|
71
|
-
// fontsize: 1rem;
|
|
72
|
-
// fontweight: 500;
|
|
73
|
-
// marginbottom: 2px;
|
|
74
|
-
// `;
|
|
75
|
-
// const NotesTextArea = styled.textarea<{ isActive: boolean; noteValue: string }>`
|
|
76
|
-
// color: ${({ isActive, noteValue }) =>
|
|
77
|
-
// isActive && noteValue ? "#000000" : "#c0c6cc"};
|
|
78
|
-
// width: 100%;
|
|
79
|
-
// height: auto;
|
|
80
|
-
// border: none;
|
|
81
|
-
// outline: none;
|
|
82
|
-
// background: none;
|
|
83
|
-
// fontweight: 300;
|
|
84
|
-
// `;
|
|
85
|
-
// const FileUploadLabel = styled.label`
|
|
86
|
-
// cursor: pointer;
|
|
87
|
-
// `;
|
|
88
|
-
// const AddTitleButton = styled.div`
|
|
89
|
-
// color: #616e88;
|
|
90
|
-
// cursor: pointer;
|
|
91
|
-
// fontsize: 0.8rem;
|
|
92
|
-
// `;
|
|
93
|
-
// const Button = styled.button<{
|
|
94
|
-
// noteValue: string;
|
|
95
|
-
// isSaveButton: boolean;
|
|
96
|
-
// isLoading: boolean;
|
|
97
|
-
// theme: CustomThemeProps;
|
|
98
|
-
// disabled: boolean;
|
|
99
|
-
// }>`
|
|
100
|
-
// border: none;
|
|
101
|
-
// padding: 3px 15px;
|
|
102
|
-
// text-align: center;
|
|
103
|
-
// text-decoration: none;
|
|
104
|
-
// background: ${({ isSaveButton, noteValue, isLoading, theme }) =>
|
|
105
|
-
// isSaveButton
|
|
106
|
-
// ? noteValue && !isLoading
|
|
107
|
-
// ? theme.colors.primary[500]
|
|
108
|
-
// : theme.colors.primary[500]
|
|
109
|
-
// : "white"};
|
|
110
|
-
// color: ${({ isSaveButton, isLoading }) =>
|
|
111
|
-
// isSaveButton && !isLoading ? "white" : "white"};
|
|
112
|
-
// font-size: 1rem;
|
|
113
|
-
// margin-right: 5px;
|
|
114
|
-
// border-radius: 5px;
|
|
115
|
-
// opacity: ${({ isSaveButton, noteValue, isLoading, disabled }) =>
|
|
116
|
-
// isSaveButton && (!noteValue || isLoading || disabled) ? "0.5" : "1"};
|
|
117
|
-
// cursor: ${({ isSaveButton, noteValue, isLoading, disabled }) =>
|
|
118
|
-
// isSaveButton && (!noteValue || isLoading || disabled)
|
|
119
|
-
// ? "initial"
|
|
120
|
-
// : "pointer"};
|
|
121
|
-
// pointer-events: ${({ isLoading }) => (isLoading ? "none" : "auto")};
|
|
122
|
-
// `;
|
|
123
|
-
// const CancelButton = styled.button`
|
|
124
|
-
// border: none;
|
|
125
|
-
// color: #5e5c5c;
|
|
126
|
-
// padding: 3px 15px;
|
|
127
|
-
// text-align: center;
|
|
128
|
-
// text-decoration: none;
|
|
129
|
-
// background: white;
|
|
130
|
-
// font-size: 1rem;
|
|
131
|
-
// margin-right: 5px;
|
|
132
|
-
// border-radius: 5px;
|
|
133
|
-
// `;
|
|
134
|
-
// const FileViewer = styled.div`
|
|
135
|
-
// display: flex;
|
|
136
|
-
// align-items: center;
|
|
137
|
-
// justify-content: space-between;
|
|
138
|
-
// width: 300px;
|
|
139
|
-
// `;
|
|
140
|
-
// const FileEdit = styled(X)`
|
|
141
|
-
// cursor: pointer;
|
|
142
|
-
// color: #ff0000;
|
|
143
|
-
// `;
|
|
144
|
-
// const ErrorText = styled.div`
|
|
145
|
-
// color: #ff0000;
|
|
146
|
-
// font-size: 0.8rem;
|
|
147
|
-
// margin-top: 8px;
|
|
148
|
-
// `;
|
|
149
|
-
// const countWords = (text: string) => {
|
|
150
|
-
// return text.trim().split(/\s+/).length;
|
|
151
|
-
// };
|
|
152
|
-
// export default function NoteTextArea({
|
|
153
|
-
// width = "100%",
|
|
154
|
-
// handleSubmit,
|
|
155
|
-
// handleCancel,
|
|
156
|
-
// value,
|
|
157
|
-
// title,
|
|
158
|
-
// file,
|
|
159
|
-
// isEditable = false,
|
|
160
|
-
// saveButtonLoading,
|
|
161
|
-
// maxFileSize = 1 * 1024 * 1024,
|
|
162
|
-
// maxFilesSizeError = "Some files are too large. Maximum allowed size is",
|
|
163
|
-
// maxNoteWordCount = 15,
|
|
164
|
-
// onChange,
|
|
165
|
-
// ref,
|
|
166
|
-
// }: NoteTextAreaProps) {
|
|
167
|
-
// const theme = useCustomTheme();
|
|
168
|
-
// const noteAreaRef = useRef<HTMLTextAreaElement>(null);
|
|
169
|
-
// const [isActive, setIsActive] = useState<boolean>(false);
|
|
170
|
-
// const [noteValue, setNoteValue] = useState<string>("");
|
|
171
|
-
// const [titleValue, setTitleValue] = useState<string>("");
|
|
172
|
-
// const [titleShow, setTitleShow] = useState<boolean>(false);
|
|
173
|
-
// const [files, setFiles] = useState<File[]>([]);
|
|
174
|
-
// const [fileError, setFileError] = useState<string>("");
|
|
175
|
-
// const [isSaveDisabled, setIsSaveDisabled] = useState(false);
|
|
176
|
-
// useEffect(() => {
|
|
177
|
-
// const titleWordCount = countWords(titleValue);
|
|
178
|
-
// setIsSaveDisabled(titleWordCount > maxNoteWordCount);
|
|
179
|
-
// }, [titleValue, maxNoteWordCount]);
|
|
180
|
-
// useEffect(() => {
|
|
181
|
-
// const noteWordCount = countWords(noteValue);
|
|
182
|
-
// setIsSaveDisabled(noteWordCount > maxNoteWordCount);
|
|
183
|
-
// }, [noteValue, maxNoteWordCount]);
|
|
184
|
-
// useEffect(() => {
|
|
185
|
-
// if (isEditable) {
|
|
186
|
-
// setIsActive(true);
|
|
187
|
-
// if (value) {
|
|
188
|
-
// setNoteValue(value);
|
|
189
|
-
// }
|
|
190
|
-
// if (title) {
|
|
191
|
-
// setTitleValue(title);
|
|
192
|
-
// setTitleShow(true);
|
|
193
|
-
// }
|
|
194
|
-
// if (file) {
|
|
195
|
-
// setFiles(file);
|
|
196
|
-
// }
|
|
197
|
-
// }
|
|
198
|
-
// }, [value, title, file, isEditable]);
|
|
199
|
-
// useEffect(() => {
|
|
200
|
-
// if (!saveButtonLoading) {
|
|
201
|
-
// setIsActive(false);
|
|
202
|
-
// if (!isEditable) {
|
|
203
|
-
// setNoteValue("");
|
|
204
|
-
// setTitleValue("");
|
|
205
|
-
// setTitleShow(false);
|
|
206
|
-
// setFiles([]);
|
|
207
|
-
// }
|
|
208
|
-
// }
|
|
209
|
-
// if (isEditable) {
|
|
210
|
-
// setIsActive(true);
|
|
211
|
-
// }
|
|
212
|
-
// }, [saveButtonLoading, isEditable]);
|
|
213
|
-
// const handleTextArea = () => {
|
|
214
|
-
// setIsActive(true);
|
|
215
|
-
// if (!isEditable) {
|
|
216
|
-
// setNoteValue("");
|
|
217
|
-
// setTitleValue("");
|
|
218
|
-
// setTitleShow(false);
|
|
219
|
-
// setFiles([]);
|
|
220
|
-
// }
|
|
221
|
-
// };
|
|
222
|
-
// const handleCloseTextArea = () => {
|
|
223
|
-
// setIsActive(false);
|
|
224
|
-
// if (handleCancel) {
|
|
225
|
-
// handleCancel(!isActive);
|
|
226
|
-
// }
|
|
227
|
-
// if (!isEditable) {
|
|
228
|
-
// setNoteValue("");
|
|
229
|
-
// setTitleValue("");
|
|
230
|
-
// setTitleShow(false);
|
|
231
|
-
// setFiles([]);
|
|
232
|
-
// }
|
|
233
|
-
// setFileError("");
|
|
234
|
-
// };
|
|
235
|
-
// const handleNoteChange = (event: React.ChangeEvent<HTMLTextAreaElement>) => {
|
|
236
|
-
// setNoteValue(event.target.value);
|
|
237
|
-
// onChange?.(event.target.value);
|
|
238
|
-
// adjustHeight();
|
|
239
|
-
// };
|
|
240
|
-
// useEffect(() => {
|
|
241
|
-
// if (isActive && noteAreaRef.current) {
|
|
242
|
-
// noteAreaRef.current.focus();
|
|
243
|
-
// }
|
|
244
|
-
// }, [isActive]);
|
|
245
|
-
// const adjustHeight = () => {
|
|
246
|
-
// const textarea = noteAreaRef.current;
|
|
247
|
-
// if (!textarea) return;
|
|
248
|
-
// textarea.style.height = "auto";
|
|
249
|
-
// textarea.style.height = `${textarea.scrollHeight}px`;
|
|
250
|
-
// };
|
|
251
|
-
// const handleSetTitle = () => {
|
|
252
|
-
// setTitleShow(true);
|
|
253
|
-
// };
|
|
254
|
-
// const handleTitleChange = (event: React.ChangeEvent<HTMLInputElement>) => {
|
|
255
|
-
// event.target.value.length === 0 && setTitleShow(false);
|
|
256
|
-
// setTitleValue(event.target.value);
|
|
257
|
-
// };
|
|
258
|
-
// const formatBytes = (bytes: any, decimals = 2) => {
|
|
259
|
-
// if (bytes === 0) return "0 Bytes";
|
|
260
|
-
// const k = 1024;
|
|
261
|
-
// const dm = decimals < 0 ? 0 : decimals;
|
|
262
|
-
// const sizes = ["Bytes", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"];
|
|
263
|
-
// const i = Math.floor(Math.log(bytes) / Math.log(k));
|
|
264
|
-
// return parseFloat((bytes / Math.pow(k, i)).toFixed(dm)) + " " + sizes[i];
|
|
265
|
-
// };
|
|
266
|
-
// const shortenFileName = (name: string, maxLength = 20) => {
|
|
267
|
-
// const extension = name.substring(name.lastIndexOf("."));
|
|
268
|
-
// if (name.length <= maxLength) return name;
|
|
269
|
-
// const nameWithoutExtension = name.replace(extension, "");
|
|
270
|
-
// const start = nameWithoutExtension.substring(
|
|
271
|
-
// 0,
|
|
272
|
-
// maxLength - extension.length - 3
|
|
273
|
-
// );
|
|
274
|
-
// return `${start}...${extension} `;
|
|
275
|
-
// };
|
|
276
|
-
// return (
|
|
277
|
-
// <Container style={{ width }} isActive={isActive}>
|
|
278
|
-
// <PlaceholderText isActive={!isActive} onClick={handleTextArea}>
|
|
279
|
-
// <span>Add a note...</span>
|
|
280
|
-
// </PlaceholderText>
|
|
281
|
-
// <TextAreaContainer isActive={isActive}>
|
|
282
|
-
// {titleShow && (
|
|
283
|
-
// <InputTitle
|
|
284
|
-
// value={titleValue}
|
|
285
|
-
// onChange={handleTitleChange}
|
|
286
|
-
// placeholder="Add a title..."
|
|
287
|
-
// ref={ref}
|
|
288
|
-
// />
|
|
289
|
-
// )}
|
|
290
|
-
// <NotesTextArea
|
|
291
|
-
// ref={noteAreaRef}
|
|
292
|
-
// isActive={isActive}
|
|
293
|
-
// noteValue={noteValue}
|
|
294
|
-
// value={noteValue}
|
|
295
|
-
// onChange={handleNoteChange}
|
|
296
|
-
// placeholder="Add a note..."
|
|
297
|
-
// />
|
|
298
|
-
// </TextAreaContainer>
|
|
299
|
-
// {isActive && (
|
|
300
|
-
// <>
|
|
301
|
-
// <hr style={{ margin: 0 }} />
|
|
302
|
-
// <div style={{ padding: "12px 15px" }}>
|
|
303
|
-
// <div style={{ display: "flex", alignItems: "center" }}>
|
|
304
|
-
// <FileUploadLabel htmlFor="file-upload">
|
|
305
|
-
// <Paperclip size={17} />
|
|
306
|
-
// <input
|
|
307
|
-
// id="file-upload"
|
|
308
|
-
// type="file"
|
|
309
|
-
// style={{ display: "none" }}
|
|
310
|
-
// onChange={(e) => {
|
|
311
|
-
// const newFiles = Array.from(e.target.files || []);
|
|
312
|
-
// const validFiles = newFiles.filter(
|
|
313
|
-
// (file) => file.size <= maxFileSize
|
|
314
|
-
// );
|
|
315
|
-
// const invalidFiles = newFiles.filter(
|
|
316
|
-
// (file) => file.size > maxFileSize
|
|
317
|
-
// );
|
|
318
|
-
// if (invalidFiles.length > 0) {
|
|
319
|
-
// setFileError(
|
|
320
|
-
// `${maxFilesSizeError} ${formatBytes(maxFileSize)}.`
|
|
321
|
-
// );
|
|
322
|
-
// } else {
|
|
323
|
-
// setFileError("");
|
|
324
|
-
// }
|
|
325
|
-
// if (validFiles.length > 0) {
|
|
326
|
-
// setFiles((prevFiles) => [...prevFiles, ...validFiles]);
|
|
327
|
-
// }
|
|
328
|
-
// }}
|
|
329
|
-
// multiple
|
|
330
|
-
// // onChange={(event) => {
|
|
331
|
-
// // if (event.target.files && event.target.files.length > 0) {
|
|
332
|
-
// // const filesArray = Array.from(event.target.files);
|
|
333
|
-
// // const validFiles = filesArray.filter(
|
|
334
|
-
// // (file) => file.size <= maxFileSize
|
|
335
|
-
// // );
|
|
336
|
-
// // setFiles([...files, ...validFiles]);
|
|
337
|
-
// // }
|
|
338
|
-
// // }}
|
|
339
|
-
// />
|
|
340
|
-
// </FileUploadLabel>
|
|
341
|
-
// {!titleShow && (
|
|
342
|
-
// <>
|
|
343
|
-
// <div
|
|
344
|
-
// style={{
|
|
345
|
-
// height: "15px",
|
|
346
|
-
// width: "1px",
|
|
347
|
-
// backgroundColor: "#c0c6cc",
|
|
348
|
-
// marginRight: "5px",
|
|
349
|
-
// marginLeft: "5px",
|
|
350
|
-
// }}
|
|
351
|
-
// ></div>
|
|
352
|
-
// <AddTitleButton onClick={handleSetTitle}>
|
|
353
|
-
// Add a Title
|
|
354
|
-
// </AddTitleButton>
|
|
355
|
-
// </>
|
|
356
|
-
// )}
|
|
357
|
-
// <div style={{ marginLeft: "auto" }}>
|
|
358
|
-
// <CancelButton onClick={handleCloseTextArea}>
|
|
359
|
-
// Cancel
|
|
360
|
-
// </CancelButton>
|
|
361
|
-
// <Button
|
|
362
|
-
// isSaveButton={true}
|
|
363
|
-
// noteValue={noteValue}
|
|
364
|
-
// isLoading={saveButtonLoading}
|
|
365
|
-
// disabled={!noteValue || isSaveDisabled}
|
|
366
|
-
// theme={theme}
|
|
367
|
-
// onClick={() => {
|
|
368
|
-
// handleSubmit(noteValue, titleValue, files);
|
|
369
|
-
// // handleCloseTextArea();
|
|
370
|
-
// }}
|
|
371
|
-
// >
|
|
372
|
-
// {saveButtonLoading && (
|
|
373
|
-
// <span style={{ marginRight: "6px" }}>
|
|
374
|
-
// <Spinner
|
|
375
|
-
// thickness="2px"
|
|
376
|
-
// speed="0.75s"
|
|
377
|
-
// emptyColor="gray.200"
|
|
378
|
-
// color="blue.500"
|
|
379
|
-
// size="xs"
|
|
380
|
-
// />
|
|
381
|
-
// </span>
|
|
382
|
-
// )}
|
|
383
|
-
// Save
|
|
384
|
-
// </Button>
|
|
385
|
-
// </div>
|
|
386
|
-
// </div>
|
|
387
|
-
// <div style={{ display: "flex", gap: "10px" }}>
|
|
388
|
-
// <div>Note:</div>
|
|
389
|
-
// <div>You can add up to {maxNoteWordCount} words only</div>
|
|
390
|
-
// </div>
|
|
391
|
-
// {fileError && <ErrorText>{fileError}</ErrorText>}{" "}
|
|
392
|
-
// {/* Display file error */}
|
|
393
|
-
// {files.length > 0 && (
|
|
394
|
-
// <div>
|
|
395
|
-
// {files.map((item, index) => (
|
|
396
|
-
// <FileViewer key={index}>
|
|
397
|
-
// <>
|
|
398
|
-
// <span>{shortenFileName(item.name)}</span>
|
|
399
|
-
// <span>{formatBytes(item.size)}</span>
|
|
400
|
-
// </>
|
|
401
|
-
// <FileEdit
|
|
402
|
-
// onClick={() =>
|
|
403
|
-
// setFiles(files.filter((fileItem) => fileItem !== item))
|
|
404
|
-
// }
|
|
405
|
-
// />
|
|
406
|
-
// </FileViewer>
|
|
407
|
-
// ))}
|
|
408
|
-
// </div>
|
|
409
|
-
// )}
|
|
410
|
-
// </div>
|
|
411
|
-
// </>
|
|
412
|
-
// )}
|
|
413
|
-
// </Container>
|
|
414
|
-
// );
|
|
415
|
-
// }
|
|
416
35
|
var react_1 = __importStar(require("react"));
|
|
417
36
|
var react_2 = require("@chakra-ui/react");
|
|
418
37
|
var lucide_react_1 = require("lucide-react");
|
package/dist/Pages/chart.js
CHANGED
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
var react_1 = __importDefault(require("react"));
|
|
7
7
|
var ApexBarChart_1 = __importDefault(require("../Components/Apexcharts/ApexBarChart/ApexBarChart"));
|
|
8
8
|
var ApexPieChart_1 = __importDefault(require("../Components/Apexcharts/ApexPieChart/ApexPieChart"));
|
|
9
|
-
var
|
|
9
|
+
var ApexLineChart_1 = __importDefault(require("../Components/Apexcharts/ApexLineChart/ApexLineChart"));
|
|
10
10
|
var ChartPage = function () {
|
|
11
11
|
var data = Array.from({ length: 10 }, function () { return Math.floor(Math.random() * 100); });
|
|
12
12
|
var categories = data.map(function (_, index) { return "Category ".concat(index + 1); });
|
|
@@ -15,12 +15,21 @@ var ChartPage = function () {
|
|
|
15
15
|
});
|
|
16
16
|
var categories1 = data.map(function (_, index) { return "Category ".concat(index + 1); });
|
|
17
17
|
return (react_1.default.createElement("div", null,
|
|
18
|
-
react_1.default.createElement(ApexBarChart_1.default, { data: data, labels: categories, title: "Bar Chart", titlePosition: "left",
|
|
19
|
-
// barColor={["#00E396"]}
|
|
18
|
+
react_1.default.createElement(ApexBarChart_1.default, { data: data, labels: categories, title: "Bar Chart", titlePosition: "left", barColor: ["#00E396"],
|
|
20
19
|
// xAxisStyle={{ colors: "#00E396", fontSize: "12px" }}
|
|
21
20
|
// yAxisStyle={{ colors: "#00E396", fontSize: "12px" }}
|
|
22
21
|
titleStyle: { color: "#00E396" } }),
|
|
23
|
-
react_1.default.createElement(ApexPieChart_1.default, { data: data1, labels: categories1, title: "Pie Chart", titlePosition: "left", chartColor: ["#00E396", "#3182ce", "#ff4757", "#ff6348", "#e84393"], titleStyle: { color: "#00E396" } }),
|
|
24
|
-
react_1.default.createElement(
|
|
22
|
+
react_1.default.createElement(ApexPieChart_1.default, { data: data1, labels: categories1, title: "Pie Chart", titlePosition: "left", chartColor: ["#00E396", "#3182ce", "#ff4757", "#ff6348", "#e84393"], titleStyle: { color: "#00E396" }, variant: "pie" }),
|
|
23
|
+
react_1.default.createElement(ApexPieChart_1.default, { data: data1, labels: categories1, title: "donut Chart", titlePosition: "left", chartColor: ["#00E396", "#3182ce", "#ff4757", "#ff6348", "#e84393"], titleStyle: { color: "#00E396" }, variant: "donut" }),
|
|
24
|
+
react_1.default.createElement(ApexPieChart_1.default, { data: data1, labels: categories1, title: "update-donut", variant: "update-donut" }),
|
|
25
|
+
react_1.default.createElement(ApexPieChart_1.default, { data: data1, labels: categories1, title: "Monochrome Pie", variant: "monochrome-pie" }),
|
|
26
|
+
react_1.default.createElement(ApexPieChart_1.default, { data: data1, labels: categories1, title: "Gradient Donut", variant: "gradient-donut" }),
|
|
27
|
+
react_1.default.createElement(ApexPieChart_1.default, { data: data1, labels: categories1, title: "Semi Donut", variant: "semi-donut", titlePosition: "left", chartColor: ["#00E396", "#3182ce", "#ff4757", "#ff6348", "#e84393"], titleStyle: { color: "#00E396" } }),
|
|
28
|
+
react_1.default.createElement(ApexPieChart_1.default, { data: data1, labels: categories1, title: "donut-with-pattern", variant: "donut-with-pattern", titlePosition: "left",
|
|
29
|
+
// chartColor={["#00E396", "#3182ce", "#ff4757", "#ff6348", "#e84393"]}
|
|
30
|
+
titleStyle: { color: "#00E396" } }),
|
|
31
|
+
react_1.default.createElement(ApexPieChart_1.default, { data: data1, labels: categories1, title: "pie-with-image", variant: "pie-with-image", titlePosition: "left", chartColor: ["#00E396", "#3182ce", "#ff4757", "#ff6348", "#e84393"], titleStyle: { color: "#00E396" } }),
|
|
32
|
+
react_1.default.createElement(ApexLineChart_1.default, { variant: "basic", data: [10, 20, 30, 40, 50], labels: ["Jan", "Feb", "Mar", "Apr", "May"], title: "Basic Line Chart", lineColors: ["#3182ce"], height: 300, width: 600 }),
|
|
33
|
+
react_1.default.createElement(ApexLineChart_1.default, { variant: "realtime", data: [15, 25, 35], title: "Realtime Line Chart", lineColors: ["#e53e3e"], height: 300, width: 600 })));
|
|
25
34
|
};
|
|
26
35
|
exports.default = ChartPage;
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ import Accordian from "./Components/Accordion/Accordion";
|
|
|
2
2
|
import AlertDialog from "./Components/AlertDialog/AlertDialog";
|
|
3
3
|
import ApexBarChart from "./Components/Apexcharts/ApexBarChart/ApexBarChart";
|
|
4
4
|
import ApexPieChart from "./Components/Apexcharts/ApexPieChart/ApexPieChart";
|
|
5
|
-
import ApexDonutChart from "./Components/Apexcharts/ApexDonutChart/ApexDonutChart";
|
|
6
5
|
import Breadcrumbs from "./Components/Breadcrumbs/Breadcrumbs";
|
|
7
6
|
import Button from "./Components/Button/Button";
|
|
8
7
|
import ButtonGroupIcon from "./Components/ButtonGroupIcon/ButtonGroupIcon";
|
|
@@ -56,5 +55,6 @@ import ProductDetails from "./Components/ProductDetails/ProductDetails";
|
|
|
56
55
|
import PhoneNumberInput from "./Components/Input/PhoneNumberInput";
|
|
57
56
|
import { InputSwitch } from "./Components/Input/Switch/InputSwitch";
|
|
58
57
|
import PaymentCard from "./Components/Card/PaymentCard/PaymentCard";
|
|
59
|
-
|
|
58
|
+
import ApexLineChart from "./Components/Apexcharts/ApexLineChart/ApexLineChart";
|
|
59
|
+
export { Accordian, AlertDialog, ApexBarChart, ApexPieChart, ApexLineChart, Breadcrumbs, Button, ButtonGroupIcon, Card, Checkbox, ContactForm, DatePicker, Drawer, DrawerHeader, DrawerBody, DrawerFooter, Dropdown, Editor, FileUpload, FormWrapper, Header, HeaderActions, InputTextArea, InputSwitch, KanbanBoard, Loading, Modal, ModalHeader, ModalBody, ModalFooter, NavigationBar, NoteTextArea, MultiSelect, NumberInput, PaymentCard, PhoneNumberInput, PinInput, ProductCard, ProductDetails, ProfileCard, ProfileCardHeader, ProfileCardBody, ProfileCardFooter, ProfilePhotoViewer, ProgressBar, RadioButton, RadioButtonGroup, Reorder, Search, Select, SearchSelect, SelectSearch, SideBar, Slider, Skeletons, Switch, Table, TableToggle, Tag, TextInput, Timeline, Toaster, ToolTip, useToaster, VerifyEmailOtp, useCustomTheme, ThemesList, debounce, };
|
|
60
60
|
export default withTheme;
|
package/dist/index.js
CHANGED
|
@@ -27,7 +27,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
27
27
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
28
28
|
};
|
|
29
29
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
|
-
exports.Select = exports.Search = exports.Reorder = exports.RadioButtonGroup = exports.RadioButton = exports.ProgressBar = exports.ProfilePhotoViewer = exports.ProfileCardFooter = exports.ProfileCardBody = exports.ProfileCardHeader = exports.ProfileCard = exports.ProductDetails = exports.ProductCard = exports.PinInput = exports.PhoneNumberInput = exports.PaymentCard = exports.NumberInput = exports.MultiSelect = exports.NoteTextArea = exports.NavigationBar = exports.ModalFooter = exports.ModalBody = exports.ModalHeader = exports.Modal = exports.Loading = exports.KanbanBoard = exports.InputSwitch = exports.InputTextArea = exports.HeaderActions = exports.Header = exports.FormWrapper = exports.FileUpload = exports.Editor = exports.Dropdown = exports.DrawerFooter = exports.DrawerBody = exports.DrawerHeader = exports.Drawer = exports.DatePicker = exports.ContactForm = exports.Checkbox = exports.Card = exports.ButtonGroupIcon = exports.Button = exports.Breadcrumbs = exports.
|
|
30
|
+
exports.Select = exports.Search = exports.Reorder = exports.RadioButtonGroup = exports.RadioButton = exports.ProgressBar = exports.ProfilePhotoViewer = exports.ProfileCardFooter = exports.ProfileCardBody = exports.ProfileCardHeader = exports.ProfileCard = exports.ProductDetails = exports.ProductCard = exports.PinInput = exports.PhoneNumberInput = exports.PaymentCard = exports.NumberInput = exports.MultiSelect = exports.NoteTextArea = exports.NavigationBar = exports.ModalFooter = exports.ModalBody = exports.ModalHeader = exports.Modal = exports.Loading = exports.KanbanBoard = exports.InputSwitch = exports.InputTextArea = exports.HeaderActions = exports.Header = exports.FormWrapper = exports.FileUpload = exports.Editor = exports.Dropdown = exports.DrawerFooter = exports.DrawerBody = exports.DrawerHeader = exports.Drawer = exports.DatePicker = exports.ContactForm = exports.Checkbox = exports.Card = exports.ButtonGroupIcon = exports.Button = exports.Breadcrumbs = exports.ApexLineChart = exports.ApexPieChart = exports.ApexBarChart = exports.AlertDialog = exports.Accordian = void 0;
|
|
31
31
|
exports.debounce = exports.ThemesList = exports.useCustomTheme = exports.VerifyEmailOtp = exports.useToaster = exports.ToolTip = exports.Toaster = exports.Timeline = exports.TextInput = exports.Tag = exports.TableToggle = exports.Table = exports.Switch = exports.Skeletons = exports.Slider = exports.SideBar = exports.SelectSearch = exports.SearchSelect = void 0;
|
|
32
32
|
var Accordion_1 = __importDefault(require("./Components/Accordion/Accordion"));
|
|
33
33
|
exports.Accordian = Accordion_1.default;
|
|
@@ -37,8 +37,6 @@ var ApexBarChart_1 = __importDefault(require("./Components/Apexcharts/ApexBarCha
|
|
|
37
37
|
exports.ApexBarChart = ApexBarChart_1.default;
|
|
38
38
|
var ApexPieChart_1 = __importDefault(require("./Components/Apexcharts/ApexPieChart/ApexPieChart"));
|
|
39
39
|
exports.ApexPieChart = ApexPieChart_1.default;
|
|
40
|
-
var ApexDonutChart_1 = __importDefault(require("./Components/Apexcharts/ApexDonutChart/ApexDonutChart"));
|
|
41
|
-
exports.ApexDonutChart = ApexDonutChart_1.default;
|
|
42
40
|
var Breadcrumbs_1 = __importDefault(require("./Components/Breadcrumbs/Breadcrumbs"));
|
|
43
41
|
exports.Breadcrumbs = Breadcrumbs_1.default;
|
|
44
42
|
var Button_1 = __importDefault(require("./Components/Button/Button"));
|
|
@@ -155,4 +153,6 @@ var InputSwitch_1 = require("./Components/Input/Switch/InputSwitch");
|
|
|
155
153
|
Object.defineProperty(exports, "InputSwitch", { enumerable: true, get: function () { return InputSwitch_1.InputSwitch; } });
|
|
156
154
|
var PaymentCard_1 = __importDefault(require("./Components/Card/PaymentCard/PaymentCard"));
|
|
157
155
|
exports.PaymentCard = PaymentCard_1.default;
|
|
156
|
+
var ApexLineChart_1 = __importDefault(require("./Components/Apexcharts/ApexLineChart/ApexLineChart"));
|
|
157
|
+
exports.ApexLineChart = ApexLineChart_1.default;
|
|
158
158
|
exports.default = withTheme_1.default;
|