analytica-frontend-lib 1.4.23 → 1.4.24
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/index.js +18 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +18 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -50483,7 +50483,8 @@ var ChartCard = ({
|
|
|
50483
50483
|
);
|
|
50484
50484
|
var YAxis2 = ({
|
|
50485
50485
|
ticks,
|
|
50486
|
-
chartHeight
|
|
50486
|
+
chartHeight,
|
|
50487
|
+
unitSuffix
|
|
50487
50488
|
}) => /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(
|
|
50488
50489
|
"div",
|
|
50489
50490
|
{
|
|
@@ -50496,7 +50497,7 @@ var YAxis2 = ({
|
|
|
50496
50497
|
size: "xs",
|
|
50497
50498
|
weight: "medium",
|
|
50498
50499
|
className: "text-text-500",
|
|
50499
|
-
children: tick === 0 ? "0" : `${tick}
|
|
50500
|
+
children: tick === 0 ? "0" : `${tick}${unitSuffix}`
|
|
50500
50501
|
},
|
|
50501
50502
|
`${tick}-${index}`
|
|
50502
50503
|
))
|
|
@@ -50523,7 +50524,8 @@ var StackedBar = ({
|
|
|
50523
50524
|
day,
|
|
50524
50525
|
categories,
|
|
50525
50526
|
maxValue,
|
|
50526
|
-
chartHeight
|
|
50527
|
+
chartHeight,
|
|
50528
|
+
unitSuffix
|
|
50527
50529
|
}) => {
|
|
50528
50530
|
const nonZeroCategories = categories.filter(
|
|
50529
50531
|
(cat) => getDayValue(day, cat.key) > 0
|
|
@@ -50540,7 +50542,7 @@ var StackedBar = ({
|
|
|
50540
50542
|
cat.label,
|
|
50541
50543
|
": ",
|
|
50542
50544
|
getDayValue(day, cat.key),
|
|
50543
|
-
|
|
50545
|
+
unitSuffix
|
|
50544
50546
|
] })
|
|
50545
50547
|
] }, cat.key)) }) : null;
|
|
50546
50548
|
return /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(
|
|
@@ -50576,7 +50578,7 @@ var StackedBar = ({
|
|
|
50576
50578
|
isFirst && isLast && "rounded-md"
|
|
50577
50579
|
),
|
|
50578
50580
|
style: { height: `${segmentHeight}px` },
|
|
50579
|
-
"aria-label": `${cat.label}: ${value}
|
|
50581
|
+
"aria-label": `${cat.label}: ${value}${unitSuffix}`
|
|
50580
50582
|
},
|
|
50581
50583
|
cat.key
|
|
50582
50584
|
);
|
|
@@ -50778,6 +50780,7 @@ var TimeChart = ({
|
|
|
50778
50780
|
pieChartTitle = "Dados de horas por item",
|
|
50779
50781
|
chartHeight = 180,
|
|
50780
50782
|
pieSize = 200,
|
|
50783
|
+
unitSuffix = "h",
|
|
50781
50784
|
className,
|
|
50782
50785
|
...props
|
|
50783
50786
|
}) => {
|
|
@@ -50809,7 +50812,14 @@ var TimeChart = ({
|
|
|
50809
50812
|
...props,
|
|
50810
50813
|
children: [
|
|
50811
50814
|
/* @__PURE__ */ (0, import_jsx_runtime216.jsx)(ChartCard, { title: barChartTitle, categories, children: /* @__PURE__ */ (0, import_jsx_runtime216.jsxs)("div", { className: "flex flex-row", children: [
|
|
50812
|
-
/* @__PURE__ */ (0, import_jsx_runtime216.jsx)(
|
|
50815
|
+
/* @__PURE__ */ (0, import_jsx_runtime216.jsx)(
|
|
50816
|
+
YAxis2,
|
|
50817
|
+
{
|
|
50818
|
+
ticks: yAxisTicks,
|
|
50819
|
+
chartHeight,
|
|
50820
|
+
unitSuffix
|
|
50821
|
+
}
|
|
50822
|
+
),
|
|
50813
50823
|
/* @__PURE__ */ (0, import_jsx_runtime216.jsx)("div", { className: "w-4" }),
|
|
50814
50824
|
/* @__PURE__ */ (0, import_jsx_runtime216.jsxs)("div", { className: "flex-1 relative", children: [
|
|
50815
50825
|
/* @__PURE__ */ (0, import_jsx_runtime216.jsx)(GridLines2, { ticks: yAxisTicks, chartHeight }),
|
|
@@ -50819,7 +50829,8 @@ var TimeChart = ({
|
|
|
50819
50829
|
day,
|
|
50820
50830
|
categories,
|
|
50821
50831
|
maxValue: adjustedMax,
|
|
50822
|
-
chartHeight
|
|
50832
|
+
chartHeight,
|
|
50833
|
+
unitSuffix
|
|
50823
50834
|
},
|
|
50824
50835
|
`${day.label}-${index}`
|
|
50825
50836
|
)) })
|