@mlw-packages/react-components 1.10.12 → 1.10.15
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.css +3 -3
- package/dist/index.d.mts +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +24 -26
- package/dist/index.mjs +24 -26
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -618,9 +618,6 @@ body {
|
|
|
618
618
|
.z-\[1\] {
|
|
619
619
|
z-index: 1;
|
|
620
620
|
}
|
|
621
|
-
.z-\[200\] {
|
|
622
|
-
z-index: 200;
|
|
623
|
-
}
|
|
624
621
|
.z-\[60\] {
|
|
625
622
|
z-index: 60;
|
|
626
623
|
}
|
|
@@ -839,6 +836,9 @@ body {
|
|
|
839
836
|
.mt-2 {
|
|
840
837
|
margin-top: 0.5rem;
|
|
841
838
|
}
|
|
839
|
+
.mt-2\.5 {
|
|
840
|
+
margin-top: 0.625rem;
|
|
841
|
+
}
|
|
842
842
|
.mt-20 {
|
|
843
843
|
margin-top: 5rem;
|
|
844
844
|
}
|
package/dist/index.d.mts
CHANGED
|
@@ -1070,7 +1070,6 @@ interface MonthViewProps$1 {
|
|
|
1070
1070
|
events: CalendarEventAgenda[];
|
|
1071
1071
|
onEventSelect: (event: CalendarEventAgenda, e?: React__default.MouseEvent) => void;
|
|
1072
1072
|
showUndatedEvents?: boolean;
|
|
1073
|
-
/** When true, hides event times */
|
|
1074
1073
|
noTime?: boolean;
|
|
1075
1074
|
}
|
|
1076
1075
|
declare function MonthViewAgenda({ currentDate, events, onEventSelect, showUndatedEvents, noTime, }: MonthViewProps$1): react_jsx_runtime.JSX.Element;
|
package/dist/index.d.ts
CHANGED
|
@@ -1070,7 +1070,6 @@ interface MonthViewProps$1 {
|
|
|
1070
1070
|
events: CalendarEventAgenda[];
|
|
1071
1071
|
onEventSelect: (event: CalendarEventAgenda, e?: React__default.MouseEvent) => void;
|
|
1072
1072
|
showUndatedEvents?: boolean;
|
|
1073
|
-
/** When true, hides event times */
|
|
1074
1073
|
noTime?: boolean;
|
|
1075
1074
|
}
|
|
1076
1075
|
declare function MonthViewAgenda({ currentDate, events, onEventSelect, showUndatedEvents, noTime, }: MonthViewProps$1): react_jsx_runtime.JSX.Element;
|
package/dist/index.js
CHANGED
|
@@ -670,7 +670,7 @@ var DialogOverlayBase = React32__namespace.forwardRef(({ className, testid: data
|
|
|
670
670
|
{
|
|
671
671
|
ref,
|
|
672
672
|
className: cn(
|
|
673
|
-
"fixed inset-0 z-
|
|
673
|
+
"fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 ",
|
|
674
674
|
className
|
|
675
675
|
),
|
|
676
676
|
"data-testid": dataTestId,
|
|
@@ -688,7 +688,7 @@ var DialogContentBase = React32__namespace.forwardRef(
|
|
|
688
688
|
{
|
|
689
689
|
ref,
|
|
690
690
|
className: cn(
|
|
691
|
-
"fixed left-[50%] top-[50%] z-
|
|
691
|
+
"fixed left-[50%] top-[50%] z-50 w-[90%] sm:w-lg grid translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg max-h-[100dvh] overflow-y-auto overflow-x-hidden rounded-md border-border",
|
|
692
692
|
className
|
|
693
693
|
),
|
|
694
694
|
"data-testid": dataTestId,
|
|
@@ -10673,7 +10673,7 @@ function MonthViewAgenda({
|
|
|
10673
10673
|
day
|
|
10674
10674
|
);
|
|
10675
10675
|
}) }),
|
|
10676
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "grid flex-1
|
|
10676
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "grid flex-1", children: weeks.map((week, weekIndex) => {
|
|
10677
10677
|
const multiDayBars = computeMultiDayBars(eventsWithStart, week);
|
|
10678
10678
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
10679
10679
|
"div",
|
|
@@ -10840,8 +10840,8 @@ function MonthViewAgenda({
|
|
|
10840
10840
|
event,
|
|
10841
10841
|
isFirstDay: dateFns.isSameDay(day, s),
|
|
10842
10842
|
isLastDay: dateFns.isSameDay(day, e2),
|
|
10843
|
-
|
|
10844
|
-
|
|
10843
|
+
view: "month",
|
|
10844
|
+
className: "pointer-events-none"
|
|
10845
10845
|
},
|
|
10846
10846
|
event.id
|
|
10847
10847
|
);
|
|
@@ -11605,14 +11605,14 @@ function EventDetailModalAgenda({
|
|
|
11605
11605
|
const bannerGradient = colorBannerMap[color] ?? colorBannerMap.sky;
|
|
11606
11606
|
const startDate = getEventStartDate(event);
|
|
11607
11607
|
const endDate = getEventEndDate(event);
|
|
11608
|
-
const
|
|
11608
|
+
const isRealMultiDay = startDate && endDate ? !dateFns.isSameDay(startDate, endDate) : false;
|
|
11609
11609
|
const durationMinutes = startDate && endDate ? dateFns.differenceInMinutes(endDate, startDate) : 0;
|
|
11610
11610
|
const dateSection = (() => {
|
|
11611
11611
|
if (!startDate) {
|
|
11612
11612
|
return { primary: "Sem data definida", secondary: null, isAllDay: false };
|
|
11613
11613
|
}
|
|
11614
11614
|
if (event.allDay) {
|
|
11615
|
-
if (
|
|
11615
|
+
if (isRealMultiDay && endDate) {
|
|
11616
11616
|
return {
|
|
11617
11617
|
primary: `${capitalize(formatDateFull(startDate))}`,
|
|
11618
11618
|
secondary: `${capitalize(formatDateFull(endDate))}`,
|
|
@@ -11625,7 +11625,14 @@ function EventDetailModalAgenda({
|
|
|
11625
11625
|
isAllDay: true
|
|
11626
11626
|
};
|
|
11627
11627
|
}
|
|
11628
|
-
if (
|
|
11628
|
+
if (isRealMultiDay && endDate) {
|
|
11629
|
+
if (noTime) {
|
|
11630
|
+
return {
|
|
11631
|
+
primary: `${capitalize(formatDateFull(startDate))}`,
|
|
11632
|
+
secondary: `${capitalize(formatDateFull(endDate))}`,
|
|
11633
|
+
isAllDay: false
|
|
11634
|
+
};
|
|
11635
|
+
}
|
|
11629
11636
|
const startStr = capitalize(
|
|
11630
11637
|
dateFns.format(startDate, "d MMM yyyy, HH:mm", { locale: locale.ptBR })
|
|
11631
11638
|
);
|
|
@@ -11656,12 +11663,12 @@ function EventDetailModalAgenda({
|
|
|
11656
11663
|
),
|
|
11657
11664
|
children: [
|
|
11658
11665
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "pointer-events-none absolute inset-0 bg-gradient-to-br from-white/20 via-transparent to-black/10" }),
|
|
11659
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute top-4 left-5 flex items-center gap-2 z-10", children:
|
|
11660
|
-
/* @__PURE__ */ jsxRuntime.jsx(react.SunIcon, { size: 11, weight: "bold" }),
|
|
11661
|
-
"Dia todo"
|
|
11662
|
-
] }) : isMultiDay ? /* @__PURE__ */ jsxRuntime.jsxs(Badge, { className: "bg-black/20 text-white border border-white/20 backdrop-blur-sm shadow-none gap-1 text-[11px] font-medium", children: [
|
|
11666
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute top-4 left-5 flex items-center gap-2 z-10", children: isRealMultiDay ? /* @__PURE__ */ jsxRuntime.jsxs(Badge, { className: "bg-black/20 text-white border border-white/20 backdrop-blur-sm shadow-none gap-1 text-[11px] font-medium", children: [
|
|
11663
11667
|
/* @__PURE__ */ jsxRuntime.jsx(react.CalendarDotsIcon, { size: 11, weight: "bold" }),
|
|
11664
11668
|
formatDurationAgendaDays(event)
|
|
11669
|
+
] }) : event.allDay ? /* @__PURE__ */ jsxRuntime.jsxs(Badge, { className: "bg-black/20 text-white border border-white/20 backdrop-blur-sm shadow-none gap-1 text-[11px] font-medium", children: [
|
|
11670
|
+
/* @__PURE__ */ jsxRuntime.jsx(react.SunIcon, { size: 11, weight: "bold" }),
|
|
11671
|
+
"Dia todo"
|
|
11665
11672
|
] }) : !noTime && durationMinutes > 0 ? /* @__PURE__ */ jsxRuntime.jsxs(Badge, { className: "bg-black/20 text-white border border-white/20 backdrop-blur-sm shadow-none gap-1 text-[11px] font-medium", children: [
|
|
11666
11673
|
/* @__PURE__ */ jsxRuntime.jsx(react.ClockIcon, { size: 11, weight: "bold" }),
|
|
11667
11674
|
formatDuration(durationMinutes)
|
|
@@ -11681,8 +11688,8 @@ function EventDetailModalAgenda({
|
|
|
11681
11688
|
}
|
|
11682
11689
|
) }),
|
|
11683
11690
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-0.5 min-w-0", children: [
|
|
11684
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-[13px] font-semibold text-foreground leading-snug", children: dateSection.primary }),
|
|
11685
|
-
!noTime && dateSection.secondary && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-1.5 mt-0.5", children:
|
|
11691
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-[13px] font-semibold text-foreground leading-snug mt-2.5", children: dateSection.primary }),
|
|
11692
|
+
(!noTime || dateSection.isAllDay || isRealMultiDay) && dateSection.secondary && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-1.5 mt-0.5", children: isRealMultiDay && !event.allDay || isRealMultiDay && dateSection.isAllDay ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
11686
11693
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
11687
11694
|
react.ArrowRightIcon,
|
|
11688
11695
|
{
|
|
@@ -15975,10 +15982,7 @@ var DraggableTooltipComponent = ({
|
|
|
15975
15982
|
);
|
|
15976
15983
|
const val = typeof value === "number" ? value : Number(value) || 0;
|
|
15977
15984
|
const isLine = seriesTypeMap?.[key] === "line";
|
|
15978
|
-
const defaultFormatted = isLine ? `${(
|
|
15979
|
-
minimumFractionDigits: 2,
|
|
15980
|
-
maximumFractionDigits: 2
|
|
15981
|
-
})}%` : val.toLocaleString("pt-BR", {
|
|
15985
|
+
const defaultFormatted = isLine ? `${val.toFixed(2)}%` : val.toLocaleString("pt-BR", {
|
|
15982
15986
|
maximumFractionDigits: 0
|
|
15983
15987
|
});
|
|
15984
15988
|
const displayValue = valueFormatter ? valueFormatter({
|
|
@@ -16164,10 +16168,7 @@ var RechartTooltipWithTotal = ({
|
|
|
16164
16168
|
const baseColor = finalColors[entry.dataKey] || entry.color || "#999";
|
|
16165
16169
|
const isNeg = value < 0;
|
|
16166
16170
|
const isLine = seriesTypeMap?.[entry.dataKey] === "line";
|
|
16167
|
-
const defaultFormatted = isLine ? `${(
|
|
16168
|
-
minimumFractionDigits: 2,
|
|
16169
|
-
maximumFractionDigits: 2
|
|
16170
|
-
})}%` : value.toLocaleString("pt-BR", {
|
|
16171
|
+
const defaultFormatted = isLine ? `${value.toFixed(2)}%` : value.toLocaleString("pt-BR", {
|
|
16171
16172
|
maximumFractionDigits: 0
|
|
16172
16173
|
});
|
|
16173
16174
|
const displayValue = valueFormatter ? valueFormatter({
|
|
@@ -16279,10 +16280,7 @@ var TooltipSimple = ({
|
|
|
16279
16280
|
pct = axisSum > 0 ? Math.abs(value) / axisSum * 100 : 0;
|
|
16280
16281
|
}
|
|
16281
16282
|
const isLine = seriesTypeMap?.[entry.dataKey] === "line";
|
|
16282
|
-
const defaultFormatted = isLine ? `${(
|
|
16283
|
-
minimumFractionDigits: 2,
|
|
16284
|
-
maximumFractionDigits: 2
|
|
16285
|
-
})}%` : value.toLocaleString("pt-BR", {
|
|
16283
|
+
const defaultFormatted = isLine ? `${value.toFixed(2)}%` : value.toLocaleString("pt-BR", {
|
|
16286
16284
|
maximumFractionDigits: 0
|
|
16287
16285
|
});
|
|
16288
16286
|
const displayValue = valueFormatter ? valueFormatter({
|
package/dist/index.mjs
CHANGED
|
@@ -627,7 +627,7 @@ var DialogOverlayBase = React32.forwardRef(({ className, testid: dataTestId = "d
|
|
|
627
627
|
{
|
|
628
628
|
ref,
|
|
629
629
|
className: cn(
|
|
630
|
-
"fixed inset-0 z-
|
|
630
|
+
"fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 ",
|
|
631
631
|
className
|
|
632
632
|
),
|
|
633
633
|
"data-testid": dataTestId,
|
|
@@ -645,7 +645,7 @@ var DialogContentBase = React32.forwardRef(
|
|
|
645
645
|
{
|
|
646
646
|
ref,
|
|
647
647
|
className: cn(
|
|
648
|
-
"fixed left-[50%] top-[50%] z-
|
|
648
|
+
"fixed left-[50%] top-[50%] z-50 w-[90%] sm:w-lg grid translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg max-h-[100dvh] overflow-y-auto overflow-x-hidden rounded-md border-border",
|
|
649
649
|
className
|
|
650
650
|
),
|
|
651
651
|
"data-testid": dataTestId,
|
|
@@ -10630,7 +10630,7 @@ function MonthViewAgenda({
|
|
|
10630
10630
|
day
|
|
10631
10631
|
);
|
|
10632
10632
|
}) }),
|
|
10633
|
-
/* @__PURE__ */ jsx("div", { className: "grid flex-1
|
|
10633
|
+
/* @__PURE__ */ jsx("div", { className: "grid flex-1", children: weeks.map((week, weekIndex) => {
|
|
10634
10634
|
const multiDayBars = computeMultiDayBars(eventsWithStart, week);
|
|
10635
10635
|
return /* @__PURE__ */ jsxs(
|
|
10636
10636
|
"div",
|
|
@@ -10797,8 +10797,8 @@ function MonthViewAgenda({
|
|
|
10797
10797
|
event,
|
|
10798
10798
|
isFirstDay: isSameDay(day, s),
|
|
10799
10799
|
isLastDay: isSameDay(day, e2),
|
|
10800
|
-
|
|
10801
|
-
|
|
10800
|
+
view: "month",
|
|
10801
|
+
className: "pointer-events-none"
|
|
10802
10802
|
},
|
|
10803
10803
|
event.id
|
|
10804
10804
|
);
|
|
@@ -11562,14 +11562,14 @@ function EventDetailModalAgenda({
|
|
|
11562
11562
|
const bannerGradient = colorBannerMap[color] ?? colorBannerMap.sky;
|
|
11563
11563
|
const startDate = getEventStartDate(event);
|
|
11564
11564
|
const endDate = getEventEndDate(event);
|
|
11565
|
-
const
|
|
11565
|
+
const isRealMultiDay = startDate && endDate ? !isSameDay(startDate, endDate) : false;
|
|
11566
11566
|
const durationMinutes = startDate && endDate ? differenceInMinutes(endDate, startDate) : 0;
|
|
11567
11567
|
const dateSection = (() => {
|
|
11568
11568
|
if (!startDate) {
|
|
11569
11569
|
return { primary: "Sem data definida", secondary: null, isAllDay: false };
|
|
11570
11570
|
}
|
|
11571
11571
|
if (event.allDay) {
|
|
11572
|
-
if (
|
|
11572
|
+
if (isRealMultiDay && endDate) {
|
|
11573
11573
|
return {
|
|
11574
11574
|
primary: `${capitalize(formatDateFull(startDate))}`,
|
|
11575
11575
|
secondary: `${capitalize(formatDateFull(endDate))}`,
|
|
@@ -11582,7 +11582,14 @@ function EventDetailModalAgenda({
|
|
|
11582
11582
|
isAllDay: true
|
|
11583
11583
|
};
|
|
11584
11584
|
}
|
|
11585
|
-
if (
|
|
11585
|
+
if (isRealMultiDay && endDate) {
|
|
11586
|
+
if (noTime) {
|
|
11587
|
+
return {
|
|
11588
|
+
primary: `${capitalize(formatDateFull(startDate))}`,
|
|
11589
|
+
secondary: `${capitalize(formatDateFull(endDate))}`,
|
|
11590
|
+
isAllDay: false
|
|
11591
|
+
};
|
|
11592
|
+
}
|
|
11586
11593
|
const startStr = capitalize(
|
|
11587
11594
|
format(startDate, "d MMM yyyy, HH:mm", { locale: ptBR })
|
|
11588
11595
|
);
|
|
@@ -11613,12 +11620,12 @@ function EventDetailModalAgenda({
|
|
|
11613
11620
|
),
|
|
11614
11621
|
children: [
|
|
11615
11622
|
/* @__PURE__ */ jsx("div", { className: "pointer-events-none absolute inset-0 bg-gradient-to-br from-white/20 via-transparent to-black/10" }),
|
|
11616
|
-
/* @__PURE__ */ jsx("div", { className: "absolute top-4 left-5 flex items-center gap-2 z-10", children:
|
|
11617
|
-
/* @__PURE__ */ jsx(SunIcon, { size: 11, weight: "bold" }),
|
|
11618
|
-
"Dia todo"
|
|
11619
|
-
] }) : isMultiDay ? /* @__PURE__ */ jsxs(Badge, { className: "bg-black/20 text-white border border-white/20 backdrop-blur-sm shadow-none gap-1 text-[11px] font-medium", children: [
|
|
11623
|
+
/* @__PURE__ */ jsx("div", { className: "absolute top-4 left-5 flex items-center gap-2 z-10", children: isRealMultiDay ? /* @__PURE__ */ jsxs(Badge, { className: "bg-black/20 text-white border border-white/20 backdrop-blur-sm shadow-none gap-1 text-[11px] font-medium", children: [
|
|
11620
11624
|
/* @__PURE__ */ jsx(CalendarDotsIcon, { size: 11, weight: "bold" }),
|
|
11621
11625
|
formatDurationAgendaDays(event)
|
|
11626
|
+
] }) : event.allDay ? /* @__PURE__ */ jsxs(Badge, { className: "bg-black/20 text-white border border-white/20 backdrop-blur-sm shadow-none gap-1 text-[11px] font-medium", children: [
|
|
11627
|
+
/* @__PURE__ */ jsx(SunIcon, { size: 11, weight: "bold" }),
|
|
11628
|
+
"Dia todo"
|
|
11622
11629
|
] }) : !noTime && durationMinutes > 0 ? /* @__PURE__ */ jsxs(Badge, { className: "bg-black/20 text-white border border-white/20 backdrop-blur-sm shadow-none gap-1 text-[11px] font-medium", children: [
|
|
11623
11630
|
/* @__PURE__ */ jsx(ClockIcon, { size: 11, weight: "bold" }),
|
|
11624
11631
|
formatDuration(durationMinutes)
|
|
@@ -11638,8 +11645,8 @@ function EventDetailModalAgenda({
|
|
|
11638
11645
|
}
|
|
11639
11646
|
) }),
|
|
11640
11647
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-0.5 min-w-0", children: [
|
|
11641
|
-
/* @__PURE__ */ jsx("span", { className: "text-[13px] font-semibold text-foreground leading-snug", children: dateSection.primary }),
|
|
11642
|
-
!noTime && dateSection.secondary && /* @__PURE__ */ jsx("div", { className: "flex items-center gap-1.5 mt-0.5", children:
|
|
11648
|
+
/* @__PURE__ */ jsx("span", { className: "text-[13px] font-semibold text-foreground leading-snug mt-2.5", children: dateSection.primary }),
|
|
11649
|
+
(!noTime || dateSection.isAllDay || isRealMultiDay) && dateSection.secondary && /* @__PURE__ */ jsx("div", { className: "flex items-center gap-1.5 mt-0.5", children: isRealMultiDay && !event.allDay || isRealMultiDay && dateSection.isAllDay ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
11643
11650
|
/* @__PURE__ */ jsx(
|
|
11644
11651
|
ArrowRightIcon$1,
|
|
11645
11652
|
{
|
|
@@ -15932,10 +15939,7 @@ var DraggableTooltipComponent = ({
|
|
|
15932
15939
|
);
|
|
15933
15940
|
const val = typeof value === "number" ? value : Number(value) || 0;
|
|
15934
15941
|
const isLine = seriesTypeMap?.[key] === "line";
|
|
15935
|
-
const defaultFormatted = isLine ? `${(
|
|
15936
|
-
minimumFractionDigits: 2,
|
|
15937
|
-
maximumFractionDigits: 2
|
|
15938
|
-
})}%` : val.toLocaleString("pt-BR", {
|
|
15942
|
+
const defaultFormatted = isLine ? `${val.toFixed(2)}%` : val.toLocaleString("pt-BR", {
|
|
15939
15943
|
maximumFractionDigits: 0
|
|
15940
15944
|
});
|
|
15941
15945
|
const displayValue = valueFormatter ? valueFormatter({
|
|
@@ -16121,10 +16125,7 @@ var RechartTooltipWithTotal = ({
|
|
|
16121
16125
|
const baseColor = finalColors[entry.dataKey] || entry.color || "#999";
|
|
16122
16126
|
const isNeg = value < 0;
|
|
16123
16127
|
const isLine = seriesTypeMap?.[entry.dataKey] === "line";
|
|
16124
|
-
const defaultFormatted = isLine ? `${(
|
|
16125
|
-
minimumFractionDigits: 2,
|
|
16126
|
-
maximumFractionDigits: 2
|
|
16127
|
-
})}%` : value.toLocaleString("pt-BR", {
|
|
16128
|
+
const defaultFormatted = isLine ? `${value.toFixed(2)}%` : value.toLocaleString("pt-BR", {
|
|
16128
16129
|
maximumFractionDigits: 0
|
|
16129
16130
|
});
|
|
16130
16131
|
const displayValue = valueFormatter ? valueFormatter({
|
|
@@ -16236,10 +16237,7 @@ var TooltipSimple = ({
|
|
|
16236
16237
|
pct = axisSum > 0 ? Math.abs(value) / axisSum * 100 : 0;
|
|
16237
16238
|
}
|
|
16238
16239
|
const isLine = seriesTypeMap?.[entry.dataKey] === "line";
|
|
16239
|
-
const defaultFormatted = isLine ? `${(
|
|
16240
|
-
minimumFractionDigits: 2,
|
|
16241
|
-
maximumFractionDigits: 2
|
|
16242
|
-
})}%` : value.toLocaleString("pt-BR", {
|
|
16240
|
+
const defaultFormatted = isLine ? `${value.toFixed(2)}%` : value.toLocaleString("pt-BR", {
|
|
16243
16241
|
maximumFractionDigits: 0
|
|
16244
16242
|
});
|
|
16245
16243
|
const displayValue = valueFormatter ? valueFormatter({
|