pixelize-design-library 2.2.11-test-6 → 2.2.13

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,8 +1,4 @@
1
1
  "use strict";
2
- // import React, { useEffect, useRef, useState } from "react";
3
- // import ReactApexChart from "react-apexcharts";
4
- // import { ApexOptions } from "apexcharts";
5
- // import { ApexLineChartProps } from "./ApexLineChartProps";
6
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
7
3
  if (k2 === undefined) k2 = k;
8
4
  var desc = Object.getOwnPropertyDescriptor(m, k);
@@ -39,84 +35,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
39
35
  return (mod && mod.__esModule) ? mod : { "default": mod };
40
36
  };
41
37
  Object.defineProperty(exports, "__esModule", { value: true });
42
- // const ApexLineChart = ({
43
- // data,
44
- // labels,
45
- // title,
46
- // height = 400,
47
- // width = 600,
48
- // lineColors = ["#3182ce", "#e53e3e", "#38a169"],
49
- // titlePosition = "center",
50
- // titleStyle = {
51
- // color: "#3182ce",
52
- // fontSize: "16px",
53
- // fontWeight: 600,
54
- // fontFamily: "Arial",
55
- // },
56
- // variant = "basic",
57
- // }: ApexLineChartProps) => {
58
- // const [series, setSeries] = useState([
59
- // {
60
- // name: "Series 1",
61
- // data: Array.isArray(data) ? data : [],
62
- // },
63
- // ]);
64
- // const chartRef = useRef<ReactApexChart | null>(null);
65
- // // 🔄 Handle realtime updates
66
- // useEffect(() => {
67
- // if (variant === "realtime") {
68
- // const interval = setInterval(() => {
69
- // setSeries((prev) => {
70
- // const newData = [...prev[0].data];
71
- // newData.push(Math.floor(Math.random() * 100) + 10); // simulate
72
- // if (newData.length > 20) newData.shift(); // keep window size
73
- // return [{ name: "Series 1", data: newData }];
74
- // });
75
- // }, 1000);
76
- // return () => clearInterval(interval);
77
- // }
78
- // }, [variant]);
79
- // const options: ApexOptions = {
80
- // chart: {
81
- // type: "line",
82
- // animations:
83
- // variant === "realtime"
84
- // ? {
85
- // enabled: true,
86
- // speed: 1000, // ✅ allowed
87
- // dynamicAnimation: { speed: 1000 }, // ✅ allowed
88
- // }
89
- // : { enabled: false },
90
- // zoom: { enabled: true },
91
- // toolbar: { show: true },
92
- // },
93
- // stroke: { curve: "smooth" },
94
- // colors: lineColors,
95
- // xaxis: labels
96
- // ? { categories: labels }
97
- // : { type: variant === "realtime" ? "numeric" : "category" },
98
- // title: {
99
- // text: title,
100
- // align: titlePosition ?? "center",
101
- // style: titleStyle,
102
- // },
103
- // markers: { size: 4 },
104
- // dataLabels: { enabled: false },
105
- // };
106
- // return (
107
- // <div>
108
- // <ReactApexChart
109
- // ref={chartRef}
110
- // options={options}
111
- // series={series}
112
- // type="line"
113
- // height={height}
114
- // width={width}
115
- // />
116
- // </div>
117
- // );
118
- // };
119
- // export default ApexLineChart;
120
38
  var react_1 = __importStar(require("react"));
121
39
  var react_apexcharts_1 = __importDefault(require("react-apexcharts"));
122
40
  var ApexLineChart = function (_a) {
@@ -1,8 +1,4 @@
1
1
  "use strict";
2
- // import React from "react";
3
- // import ReactApexChart from "react-apexcharts";
4
- // import { ApexOptions } from "apexcharts";
5
- // import { ApexPieChartProps } from "./ApexPieChartProps";
6
2
  var __assign = (this && this.__assign) || function () {
7
3
  __assign = Object.assign || function(t) {
8
4
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -18,88 +14,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
18
14
  return (mod && mod.__esModule) ? mod : { "default": mod };
19
15
  };
20
16
  Object.defineProperty(exports, "__esModule", { value: true });
21
- // const ApexPieChart = ({
22
- // data,
23
- // labels,
24
- // title,
25
- // height = 400,
26
- // width = 500,
27
- // donutColors,
28
- // chartColor,
29
- // titlePosition = "center",
30
- // titleStyle = {
31
- // color: "#3182ce",
32
- // fontSize: "16px",
33
- // fontWeight: 600,
34
- // fontFamily: "Arial",
35
- // },
36
- // legendPosition = "bottom",
37
- // legendStyle = {
38
- // colors: "#000",
39
- // useSeriesColors: false,
40
- // horizontalGap: 10,
41
- // verticalGap: 5,
42
- // markerSize: 8,
43
- // markerOffsetX: -5, // ✅ This controls space between circle and text
44
- // markerOffsetY: 0,
45
- // },
46
- // variant = "pie",
47
- // }: ApexPieChartProps) => {
48
- // let extraOptions: ApexOptions = {};
49
- // // ... (your existing switch cases remain the same)
50
- // const options: ApexOptions = {
51
- // chart: {
52
- // type: variant.includes("pie") ? "pie" : "donut",
53
- // },
54
- // labels,
55
- // colors: chartColor ??
56
- // donutColors ?? ["#3182ce", "#e53e3e", "#38a169", "#dd6b20"],
57
- // legend: {
58
- // position: legendPosition,
59
- // labels: {
60
- // colors: legendStyle.colors,
61
- // useSeriesColors: legendStyle.useSeriesColors,
62
- // },
63
- // markers: {
64
- // size: legendStyle.markerSize,
65
- // offsetX: legendStyle.markerOffsetX, // ✅ Controls horizontal space between circle and text
66
- // offsetY: legendStyle.markerOffsetY, // ✅ Controls vertical alignment
67
- // strokeWidth: 0,
68
- // shape: 'circle',
69
- // // ✅ You can also customize the stroke color and width
70
- // // strokeColor: '#000',
71
- // // strokeWidth: 1,
72
- // },
73
- // itemMargin: {
74
- // horizontal: legendStyle.horizontalGap, // Space between different legend items
75
- // vertical: legendStyle.verticalGap, // Space between legend rows
76
- // },
77
- // // containerMargin: {
78
- // // left: 0,
79
- // // top: 0,
80
- // // },
81
- // },
82
- // title: {
83
- // text: title,
84
- // align: titlePosition,
85
- // style: titleStyle,
86
- // },
87
- // dataLabels: { enabled: true },
88
- // ...extraOptions,
89
- // };
90
- // return (
91
- // <div>
92
- // <ReactApexChart
93
- // options={options}
94
- // series={data}
95
- // type={options.chart?.type as "pie" | "donut"}
96
- // height={height}
97
- // width={width}
98
- // />
99
- // </div>
100
- // );
101
- // };
102
- // export default ApexPieChart;
103
17
  var react_1 = __importDefault(require("react"));
104
18
  var react_apexcharts_1 = __importDefault(require("react-apexcharts"));
105
19
  var ApexPieChart = function (_a) {
@@ -39,7 +39,7 @@ var react_2 = require("@chakra-ui/react");
39
39
  var framer_motion_1 = require("framer-motion");
40
40
  var useCustomTheme_1 = require("../../Theme/useCustomTheme");
41
41
  var lucide_react_1 = require("lucide-react");
42
- var MotionBox = (0, framer_motion_1.motion)((0, react_1.forwardRef)(function (props, ref) { return (react_1.default.createElement(react_2.Box, __assign({ ref: ref }, props))); }));
42
+ var MotionBox = framer_motion_1.motion.create((0, react_1.forwardRef)(function (props, ref) { return (react_1.default.createElement(react_2.Box, __assign({ ref: ref }, props))); }));
43
43
  var Dropdown = (0, react_1.forwardRef)(function (_a, ref) {
44
44
  var dropDownButtonStyle = _a.dropDownButtonStyle, ButtonText = _a.ButtonText, options = _a.options, handleOptionSelect = _a.handleOptionSelect, _b = _a.dropdownType, dropdownType = _b === void 0 ? "button" : _b, text = _a.text, DropdownIcon = _a.DropdownIcon, _c = _a.isVisibleIconShow, isVisibleIconShow = _c === void 0 ? true : _c, buttonProps = _a.buttonProps, headStyle = _a.headStyle, ListStyle = _a.ListStyle, ItemStyle = _a.ItemStyle, LabelStyle = _a.LabelStyle, ImageStyle = _a.ImageStyle, _d = _a.optionsSize, optionsSize = _d === void 0 ? "lg" : _d, _e = _a.divider, divider = _e === void 0 ? false : _e;
45
45
  var theme = (0, useCustomTheme_1.useCustomTheme)();
@@ -58,6 +58,6 @@ var OverflowTooltipText = function (_a) {
58
58
  }, [children]);
59
59
  var shouldShowTooltip = isOverflowing && !isTooltipDisabled;
60
60
  return (react_1.default.createElement(ToolTip_1.default, { label: textContent, isDisabled: !shouldShowTooltip, placement: placement, hasArrow: true },
61
- react_1.default.createElement(react_2.Box, { ref: contentRef, as: "div", display: "inline-block", maxWidth: maxWidth, overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }, children)));
61
+ react_1.default.createElement(react_2.Box, { ref: contentRef, as: "span", display: "inline-block", maxWidth: maxWidth, overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }, children)));
62
62
  };
63
63
  exports.default = OverflowTooltipText;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pixelize-design-library",
3
- "version": "2.2.11-test-6",
3
+ "version": "2.2.13",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
@@ -68,4 +68,4 @@
68
68
  "typescript": "^4.9.5",
69
69
  "webpack": "^5.91.0"
70
70
  }
71
- }
71
+ }