pixelize-design-library 2.1.76 → 2.1.77

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,4 @@
1
+ import React from "react";
2
+ import { ApexPolarChartProps } from "./ApexPolarChartsProps";
3
+ declare const ApexPolarChart: ({ data, labels, title, height, width, chartColors, titlePosition, titleStyle, legendStyle, variant, }: ApexPolarChartProps) => React.JSX.Element;
4
+ export default ApexPolarChart;
@@ -0,0 +1,68 @@
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
+ };
13
+ var __importDefault = (this && this.__importDefault) || function (mod) {
14
+ return (mod && mod.__esModule) ? mod : { "default": mod };
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ var react_1 = __importDefault(require("react"));
18
+ var react_apexcharts_1 = __importDefault(require("react-apexcharts"));
19
+ var ApexPolarChart = function (_a) {
20
+ 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 ? 500 : _c, chartColors = _a.chartColors, _d = _a.titlePosition, titlePosition = _d === void 0 ? "center" : _d, _e = _a.titleStyle, titleStyle = _e === void 0 ? {
21
+ color: "#3182ce",
22
+ fontSize: "16px",
23
+ fontWeight: 600,
24
+ fontFamily: "Arial",
25
+ } : _e, _f = _a.legendStyle, legendStyle = _f === void 0 ? {
26
+ colors: "#000",
27
+ position: "bottom",
28
+ useSeriesColors: false,
29
+ } : _f, _g = _a.variant, variant = _g === void 0 ? "basic" : _g;
30
+ var extraOptions = {};
31
+ switch (variant) {
32
+ case "basic":
33
+ extraOptions = {
34
+ stroke: { colors: ["#fff"] },
35
+ fill: { opacity: 0.8 },
36
+ };
37
+ break;
38
+ case "monochrome":
39
+ extraOptions = {
40
+ theme: {
41
+ monochrome: {
42
+ enabled: true,
43
+ shadeTo: "light",
44
+ shadeIntensity: 0.6,
45
+ },
46
+ },
47
+ stroke: { colors: ["#fff"] },
48
+ fill: { opacity: 0.8 },
49
+ };
50
+ break;
51
+ default:
52
+ break;
53
+ }
54
+ var options = __assign({ chart: { type: "polarArea" }, labels: labels, colors: chartColors !== null && chartColors !== void 0 ? chartColors : ["#3182ce", "#e53e3e", "#38a169", "#dd6b20"], legend: {
55
+ position: legendStyle.position,
56
+ labels: {
57
+ colors: legendStyle.colors,
58
+ useSeriesColors: legendStyle.useSeriesColors,
59
+ },
60
+ }, title: {
61
+ text: title,
62
+ align: titlePosition,
63
+ style: titleStyle,
64
+ }, dataLabels: { enabled: true } }, extraOptions);
65
+ return (react_1.default.createElement("div", null,
66
+ react_1.default.createElement(react_apexcharts_1.default, { options: options, series: data, type: "polarArea", height: height, width: width })));
67
+ };
68
+ exports.default = ApexPolarChart;
@@ -0,0 +1,22 @@
1
+ export type ApexPolarChartProps = {
2
+ variant?: PolarVariant;
3
+ data: number[];
4
+ labels: string[];
5
+ title?: string;
6
+ height?: number;
7
+ width?: number;
8
+ chartColors?: 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 PolarVariant = "basic" | "monochrome";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -7,6 +7,7 @@ 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
9
  var ApexLineChart_1 = __importDefault(require("../Components/Apexcharts/ApexLineChart/ApexLineChart"));
10
+ var ApexPolarCharts_1 = __importDefault(require("../Components/Apexcharts/ApexPolarCharts/ApexPolarCharts"));
10
11
  var ChartPage = function () {
11
12
  var data = Array.from({ length: 10 }, function () { return Math.floor(Math.random() * 100); });
12
13
  var categories = data.map(function (_, index) { return "Category ".concat(index + 1); });
@@ -30,6 +31,8 @@ var ChartPage = function () {
30
31
  titleStyle: { color: "#00E396" } }),
31
32
  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
33
  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 })));
34
+ react_1.default.createElement(ApexLineChart_1.default, { variant: "realtime", data: [15, 25, 35], title: "Realtime Line Chart", lineColors: ["#e53e3e"], height: 300, width: 600 }),
35
+ react_1.default.createElement(ApexPolarCharts_1.default, { data: [21, 23, 19, 14, 6], labels: ["Apple", "Mango", "Orange", "Watermelon", "Banana"], variant: "basic" }),
36
+ react_1.default.createElement(ApexPolarCharts_1.default, { data: [21, 23, 19, 14, 6], labels: ["Apple", "Mango", "Orange", "Watermelon", "Banana"], variant: "monochrome" })));
34
37
  };
35
38
  exports.default = ChartPage;
package/dist/index.d.ts CHANGED
@@ -2,6 +2,7 @@ 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 ApexPolarChart from "./Components/Apexcharts/ApexPolarCharts/ApexPolarCharts";
5
6
  import Breadcrumbs from "./Components/Breadcrumbs/Breadcrumbs";
6
7
  import Button from "./Components/Button/Button";
7
8
  import ButtonGroupIcon from "./Components/ButtonGroupIcon/ButtonGroupIcon";
@@ -56,5 +57,5 @@ import PhoneNumberInput from "./Components/Input/PhoneNumberInput";
56
57
  import { InputSwitch } from "./Components/Input/Switch/InputSwitch";
57
58
  import PaymentCard from "./Components/Card/PaymentCard/PaymentCard";
58
59
  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
+ export { Accordian, AlertDialog, ApexBarChart, ApexPieChart, ApexPolarChart, 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
61
  export default withTheme;
package/dist/index.js CHANGED
@@ -27,8 +27,8 @@ 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.ApexLineChart = exports.ApexPieChart = exports.ApexBarChart = exports.AlertDialog = exports.Accordian = void 0;
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;
30
+ 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.ApexPolarChart = exports.ApexPieChart = exports.ApexBarChart = exports.AlertDialog = exports.Accordian = void 0;
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 = exports.Select = void 0;
32
32
  var Accordion_1 = __importDefault(require("./Components/Accordion/Accordion"));
33
33
  exports.Accordian = Accordion_1.default;
34
34
  var AlertDialog_1 = __importDefault(require("./Components/AlertDialog/AlertDialog"));
@@ -37,6 +37,8 @@ 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 ApexPolarCharts_1 = __importDefault(require("./Components/Apexcharts/ApexPolarCharts/ApexPolarCharts"));
41
+ exports.ApexPolarChart = ApexPolarCharts_1.default;
40
42
  var Breadcrumbs_1 = __importDefault(require("./Components/Breadcrumbs/Breadcrumbs"));
41
43
  exports.Breadcrumbs = Breadcrumbs_1.default;
42
44
  var Button_1 = __importDefault(require("./Components/Button/Button"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pixelize-design-library",
3
- "version": "2.1.76",
3
+ "version": "2.1.77",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",