@beweco/aurora-ui 0.1.61 → 0.1.63
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/assets/css/styles.css +1 -1
- package/dist/index.cjs.js +77 -5
- package/dist/index.esm.js +77 -7
- package/dist/types/components/area-line-chart/AreaLineChart.d.ts +3 -0
- package/dist/types/components/area-line-chart/AreaLineChart.d.ts.map +1 -0
- package/dist/types/components/area-line-chart/AreaLineChart.types.d.ts +31 -0
- package/dist/types/components/area-line-chart/AreaLineChart.types.d.ts.map +1 -0
- package/dist/types/components/area-line-chart/index.d.ts +3 -0
- package/dist/types/components/area-line-chart/index.d.ts.map +1 -0
- package/dist/types/components/simple-line-chart/SimpleLineChart.d.ts +4 -0
- package/dist/types/components/simple-line-chart/SimpleLineChart.d.ts.map +1 -0
- package/dist/types/components/simple-line-chart/SimpleLineChart.types.d.ts +22 -0
- package/dist/types/components/simple-line-chart/SimpleLineChart.types.d.ts.map +1 -0
- package/dist/types/components/simple-line-chart/index.d.ts +3 -0
- package/dist/types/components/simple-line-chart/index.d.ts.map +1 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -560,6 +560,40 @@ var AnalyticsCard = function (_a) {
|
|
|
560
560
|
}, variant: "bordered", onAction: function (key) { return handleMenuAction(String(key)); }, children: [jsxRuntime.jsx(react.DropdownItem, { children: t.viewDetails }, "view-details"), jsxRuntime.jsx(react.DropdownItem, { children: t.exportData }, "export-data"), jsxRuntime.jsx(react.DropdownItem, { children: t.setAlert }, "set-alert")] })] }))] }) })));
|
|
561
561
|
};
|
|
562
562
|
|
|
563
|
+
var H3 = function (_a) {
|
|
564
|
+
var children = _a.children, className = _a.className, props = __rest(_a, ["children", "className"]);
|
|
565
|
+
return (jsxRuntime.jsx("h3", __assign({ className: react.cn("text-base font-medium", className) }, props, { children: children })));
|
|
566
|
+
};
|
|
567
|
+
|
|
568
|
+
function ChartTooltip(_a) {
|
|
569
|
+
var active = _a.active, payload = _a.payload, label = _a.label, series = _a.series, formatValue = _a.formatValue;
|
|
570
|
+
if (!active || !(payload === null || payload === void 0 ? void 0 : payload.length))
|
|
571
|
+
return null;
|
|
572
|
+
var format = function (value, dataKey) {
|
|
573
|
+
return formatValue ? formatValue(value, dataKey) : String(value);
|
|
574
|
+
};
|
|
575
|
+
return (jsxRuntime.jsxs("div", { className: "bg-gray-900 text-white px-3 py-2 rounded-lg text-sm shadow-lg", children: [label != null && (jsxRuntime.jsx(P, { className: "text-xs text-gray-300 mb-1", children: String(label) })), payload.map(function (entry, index) {
|
|
576
|
+
var _a;
|
|
577
|
+
var config = series.find(function (s) { return s.dataKey === entry.dataKey; });
|
|
578
|
+
var labelText = (_a = config === null || config === void 0 ? void 0 : config.label) !== null && _a !== void 0 ? _a : entry.dataKey;
|
|
579
|
+
return (jsxRuntime.jsxs(P, { className: "font-semibold", style: { color: entry.color }, children: [labelText, ": ", format(Number(entry.value), entry.dataKey)] }, index));
|
|
580
|
+
})] }));
|
|
581
|
+
}
|
|
582
|
+
function AreaLineChart(_a) {
|
|
583
|
+
var data = _a.data, xAxisKey = _a.xAxisKey, series = _a.series, title = _a.title, value = _a.value, trend = _a.trend, _b = _a.height, height = _b === void 0 ? 200 : _b, _c = _a.className, className = _c === void 0 ? "" : _c, _d = _a.wrappedInCard, wrappedInCard = _d === void 0 ? false : _d, formatTooltipValue = _a.formatTooltipValue;
|
|
584
|
+
var hasHeader = title != null || value != null || trend != null || series.length > 0;
|
|
585
|
+
var content = (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [hasHeader && (jsxRuntime.jsxs("div", { className: "flex items-start justify-between mb-6", children: [jsxRuntime.jsxs("div", { children: [title != null && (jsxRuntime.jsx(H3, { className: "text-xs font-semibold text-gray-500 uppercase tracking-wide mb-1", children: title })), value != null && (jsxRuntime.jsxs("div", { className: "flex items-baseline gap-2", children: [jsxRuntime.jsx("span", { className: "text-2xl font-bold text-gray-900", children: value }), trend != null && (jsxRuntime.jsx("span", { className: "text-xs font-medium text-yellow-600 bg-yellow-50 px-2 py-1 rounded", children: trend }))] }))] }), series.length > 0 && (jsxRuntime.jsx("div", { className: "flex items-center gap-4", children: series.map(function (s) { return (jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [jsxRuntime.jsx("svg", { width: "16", height: "2", viewBox: "0 0 16 2", fill: "none", children: jsxRuntime.jsx("line", { x1: "0", y1: "1", x2: "16", y2: "1", stroke: s.color, strokeWidth: "2" }) }), jsxRuntime.jsx("span", { className: "text-xs text-gray-600 font-medium", children: s.label })] }, s.dataKey)); }) }))] })), jsxRuntime.jsx("div", { className: "w-full", style: { height: "".concat(height, "px") }, children: jsxRuntime.jsx(recharts.ResponsiveContainer, { width: "100%", height: "100%", children: jsxRuntime.jsxs(recharts.LineChart, { data: data, margin: { top: 5, right: 5, left: 5, bottom: 5 }, children: [jsxRuntime.jsx("defs", { children: series.map(function (s) { return (jsxRuntime.jsxs("linearGradient", { id: "area-line-chart-".concat(s.dataKey), x1: "0", y1: "0", x2: "0", y2: "1", children: [jsxRuntime.jsx("stop", { offset: "0%", stopColor: s.color, stopOpacity: 0.3 }), jsxRuntime.jsx("stop", { offset: "50%", stopColor: s.color, stopOpacity: 0.15 }), jsxRuntime.jsx("stop", { offset: "100%", stopColor: s.color, stopOpacity: 0 })] }, s.dataKey)); }) }), jsxRuntime.jsx(recharts.XAxis, { dataKey: xAxisKey, axisLine: false, tickLine: false, tick: { fill: "#9ca3af", fontSize: 12 }, dy: 10 }), jsxRuntime.jsx(recharts.YAxis, { axisLine: false, tickLine: false, tick: { fill: "transparent", fontSize: 0 }, width: 0, tickCount: 6, domain: [0, "dataMax + 100"], allowDecimals: false }), jsxRuntime.jsx(recharts.CartesianGrid, { strokeDasharray: "3 3", stroke: "#d1d5db", strokeOpacity: 0.5, vertical: false, horizontal: true }), jsxRuntime.jsx(recharts.Tooltip, { content: jsxRuntime.jsx(ChartTooltip, { series: series, formatValue: formatTooltipValue }) }), series.map(function (s) { return (jsxRuntime.jsx(recharts.Area, { type: "natural", dataKey: s.dataKey, stroke: "none", fill: "url(#area-line-chart-".concat(s.dataKey, ")"), animationDuration: 1500, animationEasing: "ease-in-out" }, "area-".concat(s.dataKey))); }), series.map(function (s) { return (jsxRuntime.jsx(recharts.Line, { type: "natural", dataKey: s.dataKey, name: s.dataKey, stroke: s.color, strokeWidth: 3, dot: false, activeDot: {
|
|
586
|
+
r: 6,
|
|
587
|
+
fill: s.color,
|
|
588
|
+
stroke: "#fff",
|
|
589
|
+
strokeWidth: 2,
|
|
590
|
+
}, fill: "transparent", animationDuration: 1500, animationEasing: "ease-in-out" }, "line-".concat(s.dataKey))); })] }) }) })] }));
|
|
591
|
+
if (wrappedInCard) {
|
|
592
|
+
return (jsxRuntime.jsx(react.Card, { className: "p-6 shadow-sm border border-gray-200 ".concat(className), children: content }));
|
|
593
|
+
}
|
|
594
|
+
return jsxRuntime.jsx("div", { className: className, children: content });
|
|
595
|
+
}
|
|
596
|
+
|
|
563
597
|
/** Clases del wrapper del icono: margen derecho y alineación igual para lupa e iconos custom */
|
|
564
598
|
var ICON_WRAPPER_CLASSNAME = "mr-2 flex shrink-0 items-center [&_svg]:shrink-0";
|
|
565
599
|
var DEFAULT_ICON = (jsxRuntime.jsx(IconComponent, { icon: "solar:magnifer-outline", className: "text-default-400 pointer-events-none shrink-0", size: "sm", "aria-hidden": true }));
|
|
@@ -1639,11 +1673,6 @@ var H1 = function (_a) {
|
|
|
1639
1673
|
return (jsxRuntime.jsx("h1", __assign({ className: react.cn("text-xl font-bold", className) }, props, { children: children })));
|
|
1640
1674
|
};
|
|
1641
1675
|
|
|
1642
|
-
var H3 = function (_a) {
|
|
1643
|
-
var children = _a.children, className = _a.className, props = __rest(_a, ["children", "className"]);
|
|
1644
|
-
return (jsxRuntime.jsx("h3", __assign({ className: react.cn("text-base font-medium", className) }, props, { children: children })));
|
|
1645
|
-
};
|
|
1646
|
-
|
|
1647
1676
|
var H4 = function (_a) {
|
|
1648
1677
|
var children = _a.children, className = _a.className, props = __rest(_a, ["children", "className"]);
|
|
1649
1678
|
return (jsxRuntime.jsx("h4", __assign({ className: react.cn("text-sm font-medium ", className) }, props, { children: children })));
|
|
@@ -5693,6 +5722,47 @@ var InputPassword = function (_a) {
|
|
|
5693
5722
|
}) }) }))] }));
|
|
5694
5723
|
};
|
|
5695
5724
|
|
|
5725
|
+
var SimpleLineChart = function (_a) {
|
|
5726
|
+
var data = _a.data, title = _a.title, _b = _a.height, height = _b === void 0 ? 200 : _b, _c = _a.color, color = _c === void 0 ? "#3b82f6" : _c, _d = _a.className, className = _d === void 0 ? "" : _d, _e = _a.showTitle, showTitle = _e === void 0 ? true : _e, _f = _a.emptyMessage, emptyMessage = _f === void 0 ? "No hay datos disponibles" : _f, onPointClick = _a.onPointClick;
|
|
5727
|
+
if (data.length === 0) {
|
|
5728
|
+
return (jsxRuntime.jsxs("div", { className: className, children: [showTitle && title && (jsxRuntime.jsx(H3, { className: "text-base font-semibold text-gray-900 mb-4", children: title })), jsxRuntime.jsx("div", { className: "flex items-center justify-center h-48 text-gray-500", children: jsxRuntime.jsx(P, { children: emptyMessage }) })] }));
|
|
5729
|
+
}
|
|
5730
|
+
var dataMaxValue = Math.max.apply(Math, data.map(function (d) { return d.value; }));
|
|
5731
|
+
var minValue = 0;
|
|
5732
|
+
var maxValue = Math.ceil(dataMaxValue / 5) * 5 || 5;
|
|
5733
|
+
var padding = 40;
|
|
5734
|
+
var chartWidth = 600;
|
|
5735
|
+
var chartHeight = height;
|
|
5736
|
+
var innerWidth = chartWidth - padding * 2;
|
|
5737
|
+
var innerHeight = chartHeight - padding * 2;
|
|
5738
|
+
var range = maxValue - minValue || 1;
|
|
5739
|
+
var getX = function (index) {
|
|
5740
|
+
return padding + (index * innerWidth) / Math.max(data.length - 1, 1);
|
|
5741
|
+
};
|
|
5742
|
+
var getY = function (value) {
|
|
5743
|
+
return chartHeight - padding - ((value - minValue) / range) * innerHeight;
|
|
5744
|
+
};
|
|
5745
|
+
var points = data.map(function (item, index) { return "".concat(getX(index), ",").concat(getY(item.value)); }).join(" ");
|
|
5746
|
+
var lastX = data.length > 1 ? getX(data.length - 1) : padding + innerWidth;
|
|
5747
|
+
var areaPath = "M".concat(padding, ",").concat(chartHeight - padding, " L").concat(points.replace(/ /g, " L"), " L").concat(lastX, ",").concat(chartHeight - padding, " Z");
|
|
5748
|
+
return (jsxRuntime.jsxs("div", { className: className, children: [showTitle && title && (jsxRuntime.jsx(H3, { className: "text-base font-semibold text-gray-900 mb-4", children: title })), jsxRuntime.jsx("div", { className: "w-full", children: jsxRuntime.jsxs("svg", { width: "100%", height: chartHeight + 60, viewBox: "0 0 ".concat(chartWidth, " ").concat(chartHeight + 60), preserveAspectRatio: "xMidYMid meet", children: [jsxRuntime.jsx("defs", { children: jsxRuntime.jsx("pattern", { id: "simple-line-chart-grid", width: "40", height: "40", patternUnits: "userSpaceOnUse", children: jsxRuntime.jsx("path", { d: "M 40 0 L 0 0 0 40", fill: "none", stroke: "#f3f4f6", strokeWidth: "1" }) }) }), jsxRuntime.jsx("rect", { width: "100%", height: "100%", fill: "url(#simple-line-chart-grid)" }), jsxRuntime.jsx("path", { d: areaPath, fill: color, fillOpacity: "0.1" }), jsxRuntime.jsx("polyline", { points: points, fill: "none", stroke: color, strokeWidth: "3", strokeLinecap: "round", strokeLinejoin: "round" }), data.map(function (item, index) {
|
|
5749
|
+
var x = getX(index);
|
|
5750
|
+
var y = getY(item.value);
|
|
5751
|
+
return (jsxRuntime.jsxs("g", { children: [jsxRuntime.jsx("circle", { cx: x, cy: y, r: "4", fill: "white", stroke: color, strokeWidth: "2" }), jsxRuntime.jsx("circle", { cx: x, cy: y, r: "6", fill: "transparent", className: onPointClick
|
|
5752
|
+
? "cursor-pointer hover:fill-black hover:fill-opacity-10"
|
|
5753
|
+
: "hover:fill-black hover:fill-opacity-10", onClick: function () { return onPointClick === null || onPointClick === void 0 ? void 0 : onPointClick(index, item); }, onKeyDown: function (e) {
|
|
5754
|
+
if ((e.key === "Enter" || e.key === " ") && onPointClick) {
|
|
5755
|
+
e.preventDefault();
|
|
5756
|
+
onPointClick(index, item);
|
|
5757
|
+
}
|
|
5758
|
+
}, role: onPointClick ? "button" : undefined, tabIndex: onPointClick ? 0 : undefined, "aria-label": "".concat(item.label, ": ").concat(item.value), children: jsxRuntime.jsx("title", { children: "".concat(item.label, ": ").concat(item.value) }) })] }, index));
|
|
5759
|
+
}), data.map(function (item, index) { return (jsxRuntime.jsx("text", { x: getX(index), y: chartHeight + 20, textAnchor: "middle", className: "text-xs fill-gray-500", children: item.label }, index)); }), [0, 0.25, 0.5, 0.75, 1].map(function (ratio, index) {
|
|
5760
|
+
var y = chartHeight - padding - ratio * innerHeight;
|
|
5761
|
+
var value = Math.round(minValue + ratio * (maxValue - minValue));
|
|
5762
|
+
return (jsxRuntime.jsxs("g", { children: [jsxRuntime.jsx("line", { x1: padding, y1: y, x2: chartWidth - padding, y2: y, stroke: "#e5e7eb", strokeWidth: "1", strokeDasharray: "2,2" }), jsxRuntime.jsx("text", { x: padding - 10, y: y + 4, textAnchor: "end", className: "text-xs fill-gray-500", children: value })] }, index));
|
|
5763
|
+
})] }) })] }));
|
|
5764
|
+
};
|
|
5765
|
+
|
|
5696
5766
|
var DEFAULT_TRANSLATIONS = {
|
|
5697
5767
|
placeholder: "Nombre de la etiqueta",
|
|
5698
5768
|
labelSelect: "Selecciona etiqueta",
|
|
@@ -6164,6 +6234,7 @@ Object.defineProperty(exports, "loadIcons", {
|
|
|
6164
6234
|
exports.AccordionList = AccordionList;
|
|
6165
6235
|
exports.AddHolidayForm = AddHolidayForm;
|
|
6166
6236
|
exports.AnalyticsCard = AnalyticsCard;
|
|
6237
|
+
exports.AreaLineChart = AreaLineChart;
|
|
6167
6238
|
exports.AuraAutocomplete = AuraAutocomplete;
|
|
6168
6239
|
exports.AuraTable = AuraTable;
|
|
6169
6240
|
exports.AuraToastProvider = AuraToastProvider;
|
|
@@ -6211,6 +6282,7 @@ exports.RowSteps = RowSteps;
|
|
|
6211
6282
|
exports.ScheduleRow = ScheduleRow;
|
|
6212
6283
|
exports.SearchInput = SearchInput;
|
|
6213
6284
|
exports.Select = Select;
|
|
6285
|
+
exports.SimpleLineChart = SimpleLineChart;
|
|
6214
6286
|
exports.SocialMediaBar = SocialMediaBar;
|
|
6215
6287
|
exports.SocialMediaCarousel = SocialMediaCarousel;
|
|
6216
6288
|
exports.SocialMediaPreview = SocialMediaPreview;
|
package/dist/index.esm.js
CHANGED
|
@@ -5,7 +5,7 @@ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
|
5
5
|
import { Icon } from '@iconify/react';
|
|
6
6
|
export { loadIcons } from '@iconify/react';
|
|
7
7
|
import React, { useId, useState, useCallback, useMemo, useEffect, createContext, useContext, memo, useRef, createElement, useLayoutEffect } from 'react';
|
|
8
|
-
import { ResponsiveContainer, AreaChart, CartesianGrid, XAxis, Tooltip, Area } from 'recharts';
|
|
8
|
+
import { ResponsiveContainer, AreaChart, CartesianGrid, XAxis, Tooltip, Area, LineChart, YAxis, Line } from 'recharts';
|
|
9
9
|
import { LazyMotion, domAnimation, m, motion, AnimatePresence } from 'framer-motion';
|
|
10
10
|
import { createPortal } from 'react-dom';
|
|
11
11
|
import { useTheme } from '@heroui/use-theme';
|
|
@@ -561,6 +561,40 @@ var AnalyticsCard = function (_a) {
|
|
|
561
561
|
}, variant: "bordered", onAction: function (key) { return handleMenuAction(String(key)); }, children: [jsx(DropdownItem, { children: t.viewDetails }, "view-details"), jsx(DropdownItem, { children: t.exportData }, "export-data"), jsx(DropdownItem, { children: t.setAlert }, "set-alert")] })] }))] }) })));
|
|
562
562
|
};
|
|
563
563
|
|
|
564
|
+
var H3 = function (_a) {
|
|
565
|
+
var children = _a.children, className = _a.className, props = __rest(_a, ["children", "className"]);
|
|
566
|
+
return (jsx("h3", __assign({ className: cn("text-base font-medium", className) }, props, { children: children })));
|
|
567
|
+
};
|
|
568
|
+
|
|
569
|
+
function ChartTooltip(_a) {
|
|
570
|
+
var active = _a.active, payload = _a.payload, label = _a.label, series = _a.series, formatValue = _a.formatValue;
|
|
571
|
+
if (!active || !(payload === null || payload === void 0 ? void 0 : payload.length))
|
|
572
|
+
return null;
|
|
573
|
+
var format = function (value, dataKey) {
|
|
574
|
+
return formatValue ? formatValue(value, dataKey) : String(value);
|
|
575
|
+
};
|
|
576
|
+
return (jsxs("div", { className: "bg-gray-900 text-white px-3 py-2 rounded-lg text-sm shadow-lg", children: [label != null && (jsx(P, { className: "text-xs text-gray-300 mb-1", children: String(label) })), payload.map(function (entry, index) {
|
|
577
|
+
var _a;
|
|
578
|
+
var config = series.find(function (s) { return s.dataKey === entry.dataKey; });
|
|
579
|
+
var labelText = (_a = config === null || config === void 0 ? void 0 : config.label) !== null && _a !== void 0 ? _a : entry.dataKey;
|
|
580
|
+
return (jsxs(P, { className: "font-semibold", style: { color: entry.color }, children: [labelText, ": ", format(Number(entry.value), entry.dataKey)] }, index));
|
|
581
|
+
})] }));
|
|
582
|
+
}
|
|
583
|
+
function AreaLineChart(_a) {
|
|
584
|
+
var data = _a.data, xAxisKey = _a.xAxisKey, series = _a.series, title = _a.title, value = _a.value, trend = _a.trend, _b = _a.height, height = _b === void 0 ? 200 : _b, _c = _a.className, className = _c === void 0 ? "" : _c, _d = _a.wrappedInCard, wrappedInCard = _d === void 0 ? false : _d, formatTooltipValue = _a.formatTooltipValue;
|
|
585
|
+
var hasHeader = title != null || value != null || trend != null || series.length > 0;
|
|
586
|
+
var content = (jsxs(Fragment, { children: [hasHeader && (jsxs("div", { className: "flex items-start justify-between mb-6", children: [jsxs("div", { children: [title != null && (jsx(H3, { className: "text-xs font-semibold text-gray-500 uppercase tracking-wide mb-1", children: title })), value != null && (jsxs("div", { className: "flex items-baseline gap-2", children: [jsx("span", { className: "text-2xl font-bold text-gray-900", children: value }), trend != null && (jsx("span", { className: "text-xs font-medium text-yellow-600 bg-yellow-50 px-2 py-1 rounded", children: trend }))] }))] }), series.length > 0 && (jsx("div", { className: "flex items-center gap-4", children: series.map(function (s) { return (jsxs("div", { className: "flex items-center gap-2", children: [jsx("svg", { width: "16", height: "2", viewBox: "0 0 16 2", fill: "none", children: jsx("line", { x1: "0", y1: "1", x2: "16", y2: "1", stroke: s.color, strokeWidth: "2" }) }), jsx("span", { className: "text-xs text-gray-600 font-medium", children: s.label })] }, s.dataKey)); }) }))] })), jsx("div", { className: "w-full", style: { height: "".concat(height, "px") }, children: jsx(ResponsiveContainer, { width: "100%", height: "100%", children: jsxs(LineChart, { data: data, margin: { top: 5, right: 5, left: 5, bottom: 5 }, children: [jsx("defs", { children: series.map(function (s) { return (jsxs("linearGradient", { id: "area-line-chart-".concat(s.dataKey), x1: "0", y1: "0", x2: "0", y2: "1", children: [jsx("stop", { offset: "0%", stopColor: s.color, stopOpacity: 0.3 }), jsx("stop", { offset: "50%", stopColor: s.color, stopOpacity: 0.15 }), jsx("stop", { offset: "100%", stopColor: s.color, stopOpacity: 0 })] }, s.dataKey)); }) }), jsx(XAxis, { dataKey: xAxisKey, axisLine: false, tickLine: false, tick: { fill: "#9ca3af", fontSize: 12 }, dy: 10 }), jsx(YAxis, { axisLine: false, tickLine: false, tick: { fill: "transparent", fontSize: 0 }, width: 0, tickCount: 6, domain: [0, "dataMax + 100"], allowDecimals: false }), jsx(CartesianGrid, { strokeDasharray: "3 3", stroke: "#d1d5db", strokeOpacity: 0.5, vertical: false, horizontal: true }), jsx(Tooltip, { content: jsx(ChartTooltip, { series: series, formatValue: formatTooltipValue }) }), series.map(function (s) { return (jsx(Area, { type: "natural", dataKey: s.dataKey, stroke: "none", fill: "url(#area-line-chart-".concat(s.dataKey, ")"), animationDuration: 1500, animationEasing: "ease-in-out" }, "area-".concat(s.dataKey))); }), series.map(function (s) { return (jsx(Line, { type: "natural", dataKey: s.dataKey, name: s.dataKey, stroke: s.color, strokeWidth: 3, dot: false, activeDot: {
|
|
587
|
+
r: 6,
|
|
588
|
+
fill: s.color,
|
|
589
|
+
stroke: "#fff",
|
|
590
|
+
strokeWidth: 2,
|
|
591
|
+
}, fill: "transparent", animationDuration: 1500, animationEasing: "ease-in-out" }, "line-".concat(s.dataKey))); })] }) }) })] }));
|
|
592
|
+
if (wrappedInCard) {
|
|
593
|
+
return (jsx(Card$1, { className: "p-6 shadow-sm border border-gray-200 ".concat(className), children: content }));
|
|
594
|
+
}
|
|
595
|
+
return jsx("div", { className: className, children: content });
|
|
596
|
+
}
|
|
597
|
+
|
|
564
598
|
/** Clases del wrapper del icono: margen derecho y alineación igual para lupa e iconos custom */
|
|
565
599
|
var ICON_WRAPPER_CLASSNAME = "mr-2 flex shrink-0 items-center [&_svg]:shrink-0";
|
|
566
600
|
var DEFAULT_ICON = (jsx(IconComponent, { icon: "solar:magnifer-outline", className: "text-default-400 pointer-events-none shrink-0", size: "sm", "aria-hidden": true }));
|
|
@@ -1640,11 +1674,6 @@ var H1 = function (_a) {
|
|
|
1640
1674
|
return (jsx("h1", __assign({ className: cn("text-xl font-bold", className) }, props, { children: children })));
|
|
1641
1675
|
};
|
|
1642
1676
|
|
|
1643
|
-
var H3 = function (_a) {
|
|
1644
|
-
var children = _a.children, className = _a.className, props = __rest(_a, ["children", "className"]);
|
|
1645
|
-
return (jsx("h3", __assign({ className: cn("text-base font-medium", className) }, props, { children: children })));
|
|
1646
|
-
};
|
|
1647
|
-
|
|
1648
1677
|
var H4 = function (_a) {
|
|
1649
1678
|
var children = _a.children, className = _a.className, props = __rest(_a, ["children", "className"]);
|
|
1650
1679
|
return (jsx("h4", __assign({ className: cn("text-sm font-medium ", className) }, props, { children: children })));
|
|
@@ -5694,6 +5723,47 @@ var InputPassword = function (_a) {
|
|
|
5694
5723
|
}) }) }))] }));
|
|
5695
5724
|
};
|
|
5696
5725
|
|
|
5726
|
+
var SimpleLineChart = function (_a) {
|
|
5727
|
+
var data = _a.data, title = _a.title, _b = _a.height, height = _b === void 0 ? 200 : _b, _c = _a.color, color = _c === void 0 ? "#3b82f6" : _c, _d = _a.className, className = _d === void 0 ? "" : _d, _e = _a.showTitle, showTitle = _e === void 0 ? true : _e, _f = _a.emptyMessage, emptyMessage = _f === void 0 ? "No hay datos disponibles" : _f, onPointClick = _a.onPointClick;
|
|
5728
|
+
if (data.length === 0) {
|
|
5729
|
+
return (jsxs("div", { className: className, children: [showTitle && title && (jsx(H3, { className: "text-base font-semibold text-gray-900 mb-4", children: title })), jsx("div", { className: "flex items-center justify-center h-48 text-gray-500", children: jsx(P, { children: emptyMessage }) })] }));
|
|
5730
|
+
}
|
|
5731
|
+
var dataMaxValue = Math.max.apply(Math, data.map(function (d) { return d.value; }));
|
|
5732
|
+
var minValue = 0;
|
|
5733
|
+
var maxValue = Math.ceil(dataMaxValue / 5) * 5 || 5;
|
|
5734
|
+
var padding = 40;
|
|
5735
|
+
var chartWidth = 600;
|
|
5736
|
+
var chartHeight = height;
|
|
5737
|
+
var innerWidth = chartWidth - padding * 2;
|
|
5738
|
+
var innerHeight = chartHeight - padding * 2;
|
|
5739
|
+
var range = maxValue - minValue || 1;
|
|
5740
|
+
var getX = function (index) {
|
|
5741
|
+
return padding + (index * innerWidth) / Math.max(data.length - 1, 1);
|
|
5742
|
+
};
|
|
5743
|
+
var getY = function (value) {
|
|
5744
|
+
return chartHeight - padding - ((value - minValue) / range) * innerHeight;
|
|
5745
|
+
};
|
|
5746
|
+
var points = data.map(function (item, index) { return "".concat(getX(index), ",").concat(getY(item.value)); }).join(" ");
|
|
5747
|
+
var lastX = data.length > 1 ? getX(data.length - 1) : padding + innerWidth;
|
|
5748
|
+
var areaPath = "M".concat(padding, ",").concat(chartHeight - padding, " L").concat(points.replace(/ /g, " L"), " L").concat(lastX, ",").concat(chartHeight - padding, " Z");
|
|
5749
|
+
return (jsxs("div", { className: className, children: [showTitle && title && (jsx(H3, { className: "text-base font-semibold text-gray-900 mb-4", children: title })), jsx("div", { className: "w-full", children: jsxs("svg", { width: "100%", height: chartHeight + 60, viewBox: "0 0 ".concat(chartWidth, " ").concat(chartHeight + 60), preserveAspectRatio: "xMidYMid meet", children: [jsx("defs", { children: jsx("pattern", { id: "simple-line-chart-grid", width: "40", height: "40", patternUnits: "userSpaceOnUse", children: jsx("path", { d: "M 40 0 L 0 0 0 40", fill: "none", stroke: "#f3f4f6", strokeWidth: "1" }) }) }), jsx("rect", { width: "100%", height: "100%", fill: "url(#simple-line-chart-grid)" }), jsx("path", { d: areaPath, fill: color, fillOpacity: "0.1" }), jsx("polyline", { points: points, fill: "none", stroke: color, strokeWidth: "3", strokeLinecap: "round", strokeLinejoin: "round" }), data.map(function (item, index) {
|
|
5750
|
+
var x = getX(index);
|
|
5751
|
+
var y = getY(item.value);
|
|
5752
|
+
return (jsxs("g", { children: [jsx("circle", { cx: x, cy: y, r: "4", fill: "white", stroke: color, strokeWidth: "2" }), jsx("circle", { cx: x, cy: y, r: "6", fill: "transparent", className: onPointClick
|
|
5753
|
+
? "cursor-pointer hover:fill-black hover:fill-opacity-10"
|
|
5754
|
+
: "hover:fill-black hover:fill-opacity-10", onClick: function () { return onPointClick === null || onPointClick === void 0 ? void 0 : onPointClick(index, item); }, onKeyDown: function (e) {
|
|
5755
|
+
if ((e.key === "Enter" || e.key === " ") && onPointClick) {
|
|
5756
|
+
e.preventDefault();
|
|
5757
|
+
onPointClick(index, item);
|
|
5758
|
+
}
|
|
5759
|
+
}, role: onPointClick ? "button" : undefined, tabIndex: onPointClick ? 0 : undefined, "aria-label": "".concat(item.label, ": ").concat(item.value), children: jsx("title", { children: "".concat(item.label, ": ").concat(item.value) }) })] }, index));
|
|
5760
|
+
}), data.map(function (item, index) { return (jsx("text", { x: getX(index), y: chartHeight + 20, textAnchor: "middle", className: "text-xs fill-gray-500", children: item.label }, index)); }), [0, 0.25, 0.5, 0.75, 1].map(function (ratio, index) {
|
|
5761
|
+
var y = chartHeight - padding - ratio * innerHeight;
|
|
5762
|
+
var value = Math.round(minValue + ratio * (maxValue - minValue));
|
|
5763
|
+
return (jsxs("g", { children: [jsx("line", { x1: padding, y1: y, x2: chartWidth - padding, y2: y, stroke: "#e5e7eb", strokeWidth: "1", strokeDasharray: "2,2" }), jsx("text", { x: padding - 10, y: y + 4, textAnchor: "end", className: "text-xs fill-gray-500", children: value })] }, index));
|
|
5764
|
+
})] }) })] }));
|
|
5765
|
+
};
|
|
5766
|
+
|
|
5697
5767
|
var DEFAULT_TRANSLATIONS = {
|
|
5698
5768
|
placeholder: "Nombre de la etiqueta",
|
|
5699
5769
|
labelSelect: "Selecciona etiqueta",
|
|
@@ -6154,4 +6224,4 @@ var NavigationLoadingProvider = function (_a) {
|
|
|
6154
6224
|
return (jsxs(NavigationLoadingContext.Provider, { value: value, children: [children, jsx(NavigationLoadingOverlay, { isVisible: isVisible })] }));
|
|
6155
6225
|
};
|
|
6156
6226
|
|
|
6157
|
-
export { AccordionList, AddHolidayForm, AnalyticsCard, AuraAutocomplete, AuraTable, AuraToastProvider, BreadcrumbsComponent, Button, Card, Chip, ColorPicker, ColorSelector, ContentCarousel, DEFAULT_PREDEFINED_COLORS, DatePicker, DateRangePicker, DateSelector, DrawerFilters, EnumMenuNavListItem, GlobalToast, H1, H2, H3, H4, HeaderComponent, HolidayType, IconComponent, ImagePreview, Input, InputPassword, Kanban, KanbanCard, KanbanColumn, MenuComponent, Modal, ModalBody, ModalContent, ModalFooter, ModalHeader, MultiStepWizard, NavigationLoadingContext, NavigationLoadingOverlay, NavigationLoadingProvider, P, Pagination, Phone, PromotionalBanner, RangeFilter, RowSteps, ScheduleRow, SearchInput, Select, SocialMediaBar, SocialMediaCarousel, SocialMediaPreview, StepIndicator, Switch as SwitchComponent, THEME_COLOR_HEX_MAP, TagsFilter, Textarea, ThemeContext, ThemePicker, ThemeProvider, TimeInput as TimeInputComponent, ToastContext, TwoColumnLayoutAgent, UploadFile, VerticalSteps, WhatsAppPreview, Wizard, WizardNavigation, WizardSidebar, applyCustomPrimaryColor, defaultTranslations$4 as defaultTranslations, generateThemeColorScale, getContrastForeground, getSelectedKeyFromPath, hexToThemeColor, hslToCssValue, isExactThemeColor, isHexColor, removeCustomPrimaryColor, sizeMap, themeColors, useAuraToast, useMediaQuery, useNavigationLoading, useThemeContext };
|
|
6227
|
+
export { AccordionList, AddHolidayForm, AnalyticsCard, AreaLineChart, AuraAutocomplete, AuraTable, AuraToastProvider, BreadcrumbsComponent, Button, Card, Chip, ColorPicker, ColorSelector, ContentCarousel, DEFAULT_PREDEFINED_COLORS, DatePicker, DateRangePicker, DateSelector, DrawerFilters, EnumMenuNavListItem, GlobalToast, H1, H2, H3, H4, HeaderComponent, HolidayType, IconComponent, ImagePreview, Input, InputPassword, Kanban, KanbanCard, KanbanColumn, MenuComponent, Modal, ModalBody, ModalContent, ModalFooter, ModalHeader, MultiStepWizard, NavigationLoadingContext, NavigationLoadingOverlay, NavigationLoadingProvider, P, Pagination, Phone, PromotionalBanner, RangeFilter, RowSteps, ScheduleRow, SearchInput, Select, SimpleLineChart, SocialMediaBar, SocialMediaCarousel, SocialMediaPreview, StepIndicator, Switch as SwitchComponent, THEME_COLOR_HEX_MAP, TagsFilter, Textarea, ThemeContext, ThemePicker, ThemeProvider, TimeInput as TimeInputComponent, ToastContext, TwoColumnLayoutAgent, UploadFile, VerticalSteps, WhatsAppPreview, Wizard, WizardNavigation, WizardSidebar, applyCustomPrimaryColor, defaultTranslations$4 as defaultTranslations, generateThemeColorScale, getContrastForeground, getSelectedKeyFromPath, hexToThemeColor, hslToCssValue, isExactThemeColor, isHexColor, removeCustomPrimaryColor, sizeMap, themeColors, useAuraToast, useMediaQuery, useNavigationLoading, useThemeContext };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { AreaLineChartProps } from "./AreaLineChart.types";
|
|
2
|
+
export declare function AreaLineChart<T extends Record<string, unknown>>({ data, xAxisKey, series, title, value, trend, height, className, wrappedInCard, formatTooltipValue, }: AreaLineChartProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
//# sourceMappingURL=AreaLineChart.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AreaLineChart.d.ts","sourceRoot":"","sources":["../../../../src/components/area-line-chart/AreaLineChart.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,kBAAkB,EAA6B,MAAM,uBAAuB,CAAC;AAgC3F,wBAAgB,aAAa,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,EAChE,IAAI,EACJ,QAAQ,EACR,MAAM,EACN,KAAK,EACL,KAAK,EACL,KAAK,EACL,MAAY,EACZ,SAAc,EACd,aAAqB,EACrB,kBAAkB,GAClB,EAAE,kBAAkB,CAAC,CAAC,CAAC,2CA+IvB"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/** Configuración de cada serie (línea/área) del gráfico */
|
|
2
|
+
export interface AreaLineChartSeriesConfig {
|
|
3
|
+
/** Clave del dato en cada item de `data` (ej. "email", "whatsapp") */
|
|
4
|
+
dataKey: string;
|
|
5
|
+
/** Color de la línea/área (hex o nombre CSS) */
|
|
6
|
+
color: string;
|
|
7
|
+
/** Etiqueta para leyenda y tooltip */
|
|
8
|
+
label: string;
|
|
9
|
+
}
|
|
10
|
+
export interface AreaLineChartProps<T extends Record<string, unknown> = Record<string, unknown>> {
|
|
11
|
+
/** Datos: array de objetos con la clave del eje X y las claves de cada serie */
|
|
12
|
+
data: T[];
|
|
13
|
+
/** Clave que se usa para el eje X (ej. "name", "date") */
|
|
14
|
+
xAxisKey: keyof T & string;
|
|
15
|
+
/** Configuración de cada serie a pintar */
|
|
16
|
+
series: AreaLineChartSeriesConfig[];
|
|
17
|
+
/** Título del gráfico */
|
|
18
|
+
title?: string;
|
|
19
|
+
/** Valor destacado (ej. total) */
|
|
20
|
+
value?: string;
|
|
21
|
+
/** Texto de tendencia (ej. "+12%") */
|
|
22
|
+
trend?: string;
|
|
23
|
+
/** Altura del gráfico en px */
|
|
24
|
+
height?: number;
|
|
25
|
+
className?: string;
|
|
26
|
+
/** Si se muestra dentro de un Card con padding. Por defecto false = solo el gráfico */
|
|
27
|
+
wrappedInCard?: boolean;
|
|
28
|
+
/** Formatear valor en tooltip (valor, dataKey) */
|
|
29
|
+
formatTooltipValue?: (value: number, dataKey: string) => string;
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=AreaLineChart.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AreaLineChart.types.d.ts","sourceRoot":"","sources":["../../../../src/components/area-line-chart/AreaLineChart.types.ts"],"names":[],"mappings":"AAAA,2DAA2D;AAC3D,MAAM,WAAW,yBAAyB;IACzC,sEAAsE;IACtE,OAAO,EAAE,MAAM,CAAC;IAChB,gDAAgD;IAChD,KAAK,EAAE,MAAM,CAAC;IACd,sCAAsC;IACtC,KAAK,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,kBAAkB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAC9F,gFAAgF;IAChF,IAAI,EAAE,CAAC,EAAE,CAAC;IACV,0DAA0D;IAC1D,QAAQ,EAAE,MAAM,CAAC,GAAG,MAAM,CAAC;IAC3B,2CAA2C;IAC3C,MAAM,EAAE,yBAAyB,EAAE,CAAC;IACpC,yBAAyB;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kCAAkC;IAClC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,sCAAsC;IACtC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,+BAA+B;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uFAAuF;IACvF,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,kDAAkD;IAClD,kBAAkB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,KAAK,MAAM,CAAC;CAChE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/area-line-chart/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,YAAY,EACX,kBAAkB,EAClB,yBAAyB,GACzB,MAAM,uBAAuB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SimpleLineChart.d.ts","sourceRoot":"","sources":["../../../../src/components/simple-line-chart/SimpleLineChart.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGhC,OAAO,KAAK,EAA4B,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAE9F,eAAO,MAAM,eAAe,EAAE,EAAE,CAAC,oBAAoB,CA8JpD,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export interface SimpleLineChartDataPoint {
|
|
2
|
+
label: string;
|
|
3
|
+
value: number;
|
|
4
|
+
}
|
|
5
|
+
export interface SimpleLineChartProps {
|
|
6
|
+
/** Datos para pintar la gráfica: etiqueta (eje X) y valor (eje Y) */
|
|
7
|
+
data: SimpleLineChartDataPoint[];
|
|
8
|
+
/** Título opcional encima del gráfico */
|
|
9
|
+
title?: string;
|
|
10
|
+
/** Altura del área del gráfico en píxeles */
|
|
11
|
+
height?: number;
|
|
12
|
+
/** Color de la línea y del área (hex o nombre CSS) */
|
|
13
|
+
color?: string;
|
|
14
|
+
className?: string;
|
|
15
|
+
/** Si se muestra el título cuando existe */
|
|
16
|
+
showTitle?: boolean;
|
|
17
|
+
/** Mensaje cuando no hay datos */
|
|
18
|
+
emptyMessage?: string;
|
|
19
|
+
/** Llamado al hacer clic en un punto (índice, punto) */
|
|
20
|
+
onPointClick?: (index: number, point: SimpleLineChartDataPoint) => void;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=SimpleLineChart.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SimpleLineChart.types.d.ts","sourceRoot":"","sources":["../../../../src/components/simple-line-chart/SimpleLineChart.types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,wBAAwB;IACxC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,oBAAoB;IACpC,qEAAqE;IACrE,IAAI,EAAE,wBAAwB,EAAE,CAAC;IACjC,yCAAyC;IACzC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,6CAA6C;IAC7C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,sDAAsD;IACtD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,4CAA4C;IAC5C,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,kCAAkC;IAClC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,wDAAwD;IACxD,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,wBAAwB,KAAK,IAAI,CAAC;CACxE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/simple-line-chart/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,YAAY,EACX,wBAAwB,EACxB,oBAAoB,GACpB,MAAM,yBAAyB,CAAC"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export { Slider } from "@heroui/react";
|
|
|
4
4
|
export * from "./components/accordion-list";
|
|
5
5
|
export * from "./components/add-holiday-form";
|
|
6
6
|
export * from "./components/analytics-card";
|
|
7
|
+
export * from "./components/area-line-chart";
|
|
7
8
|
export * from "./components/autocomplete";
|
|
8
9
|
export * from "./components/color-picker";
|
|
9
10
|
export * from "./components/color-selector";
|
|
@@ -49,6 +50,7 @@ export * from "./components/navigation-loading-overlay";
|
|
|
49
50
|
export * from "./components/drawer-filters";
|
|
50
51
|
export * from "./components/input-password";
|
|
51
52
|
export * from "./components/range-filter";
|
|
53
|
+
export * from "./components/simple-line-chart";
|
|
52
54
|
export * from "./components/tags-filter";
|
|
53
55
|
export { Modal, ModalContent, ModalHeader, ModalBody, ModalFooter, type ModalProps, } from "./components/modal";
|
|
54
56
|
export { AuraAutocomplete, type AuraAutocompleteProps, } from "./components/autocomplete";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAU9B,cAAc,eAAe,CAAC;AAG9B,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAIvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mBAAmB,CAAC;AAClC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,mBAAmB,CAAC;AAClC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iCAAiC,CAAC;AAChD,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B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