@sybilion/uilib 1.3.56 → 1.3.57
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.
|
@@ -19,7 +19,7 @@ function CardTitle({ className, ...props }) {
|
|
|
19
19
|
return (jsx(TextWithDeferTooltip, { maxWidth: 400, "data-slot": "card-title", className: cn(S.title, className), ...props }));
|
|
20
20
|
}
|
|
21
21
|
function CardDescription({ className, ...props }) {
|
|
22
|
-
return (jsx(TextWithDeferTooltip, { maxWidth: 400, "data-slot": "card-description", className: cn(S.description, className), ...props }));
|
|
22
|
+
return (jsx(TextWithDeferTooltip, { maxWidth: 400, "data-slot": "card-description", className: cn(S.description, className), overTrigger: true, ...props }));
|
|
23
23
|
}
|
|
24
24
|
function CardAction({ className, ...props }) {
|
|
25
25
|
return (jsx("div", { "data-slot": "card-action", className: cn(S.action, className), ...props }));
|
|
@@ -315,7 +315,7 @@ const BaseChartWrapperContent = forwardRef((props, ref) => {
|
|
|
315
315
|
}
|
|
316
316
|
const ChartComponent = chartType === 'line' ? LineChart : ComposedChart;
|
|
317
317
|
const defaultLabelFormatter = (v) => formatDateFn(v, true);
|
|
318
|
-
return (jsxs("div", { className: cn(S.root, !showLegend && S.noLegend, !showChartAxesLegend && S.hideChartAxesLegend, disableLineDrawAnimation && S.noLineDrawAnimation, isLoaded && S.loaded, className), ref: setRefs, children: [loading && (jsx("div", { className: S.loadingOverlay, children: jsx(Skeleton, {}) })), showGrid && (jsx(ChartContainer, { config: chartConfig, className: cn(S.gridLayer, chartClassName), style: height ? { height: `${height}px` } : undefined, children: jsxs(ChartComponent, { data: chartData, margin: margin,
|
|
318
|
+
return (jsxs("div", { className: cn(S.root, !showLegend && S.noLegend, !showChartAxesLegend && S.hideChartAxesLegend, disableLineDrawAnimation && S.noLineDrawAnimation, isLoaded && S.loaded, className), ref: setRefs, children: [loading && (jsx("div", { className: S.loadingOverlay, children: jsx(Skeleton, {}) })), showGrid && (jsx(ChartContainer, { config: chartConfig, className: cn(S.gridLayer, chartClassName), style: height ? { height: `${height}px` } : undefined, children: jsxs(ChartComponent, { data: chartData, margin: margin, children: [jsx(ChartGrid, {}), showAxes && (jsx(ChartAxes, { formatDate: formatDateFn, formatNumber: formatNumber, xAxisClassName: xAxisClassName, yAxisClassName: yAxisClassName, xAxisLabel: xAxisLabel, yAxisLabel: yAxisLabel, xMin: xMin, xMax: xMax, yMin: yMin, yMax: yMax, autoScaleYAxis: effectiveAutoScale }))] }) })), jsx(ChartContainer, { config: chartConfig, className: cn(S.chartLayer, chartClassName), style: height ? { height: `${height}px` } : undefined, ...containerProps, children: jsxs(ChartComponent, { data: chartData, margin: margin, children: [showAxes && (jsx(ChartAxes, { formatDate: formatDateFn, formatNumber: formatNumber, xAxisClassName: cn(xAxisClassName), yAxisClassName: cn(yAxisClassName), xAxisLabel: xAxisLabel, yAxisLabel: yAxisLabel, xMin: xMin, xMax: xMax, yMin: yMin, yMax: yMax, autoScaleYAxis: effectiveAutoScale })), quantileBands?.[0] && (jsx(QuantileBands, { hiddenBands: hiddenSeries, quantileBandKey: quantileBandKey, animate: true, animationDuration: 150, animationBegin: 0, customBands: quantileBands, showLegend: showLegend })), jsx(ChartLines, { historicalLineColor: historicalLineColor, chartData: chartData, forecastData: forecastData, hiddenSeries: hiddenSeries, isDarkTheme: isDarkTheme, shouldAnimate: shouldAnimate, disableAnimation: disableAnimation, disableHistoricalAnimation: disableHistoricalAnimation, showLegend: showLegend, forecastLineStyle: forecastLineStyle }), showTooltip && (jsx("div", { children: jsx(Tooltip, { cursor: false, offset: TOOLTIP_OFFSET, allowEscapeViewBox: { x: false, y: false }, content: renderTooltipContent }) }))] }) }), overlayElements, jsxs("div", { className: cn(S.footer, footerClassName), children: [showLegend &&
|
|
319
319
|
(legendVariant === 'svg' ? (jsx(LegendSvg, { payload: legendPayload.map(p => ({
|
|
320
320
|
value: p.value,
|
|
321
321
|
color: p.color,
|
package/package.json
CHANGED
|
@@ -620,11 +620,7 @@ const BaseChartWrapperContent = forwardRef<
|
|
|
620
620
|
className={cn(S.gridLayer, chartClassName)}
|
|
621
621
|
style={height ? { height: `${height}px` } : undefined}
|
|
622
622
|
>
|
|
623
|
-
<ChartComponent
|
|
624
|
-
data={chartData}
|
|
625
|
-
margin={margin}
|
|
626
|
-
isAnimationActive={!disableAnimation}
|
|
627
|
-
>
|
|
623
|
+
<ChartComponent data={chartData} margin={margin}>
|
|
628
624
|
<ChartGrid />
|
|
629
625
|
{showAxes && (
|
|
630
626
|
<ChartAxes
|
|
@@ -652,11 +648,7 @@ const BaseChartWrapperContent = forwardRef<
|
|
|
652
648
|
style={height ? { height: `${height}px` } : undefined}
|
|
653
649
|
{...containerProps}
|
|
654
650
|
>
|
|
655
|
-
<ChartComponent
|
|
656
|
-
data={chartData}
|
|
657
|
-
margin={margin}
|
|
658
|
-
isAnimationActive={!disableAnimation}
|
|
659
|
-
>
|
|
651
|
+
<ChartComponent data={chartData} margin={margin}>
|
|
660
652
|
{/* Render invisible axes for coordinate system, but hide labels */}
|
|
661
653
|
{showAxes && (
|
|
662
654
|
<ChartAxes
|