@acronis-platform/ui-react 5.4.4 → 5.5.0
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/components/ui/area-chart/area-chart.js +114 -113
- package/dist/components/ui/area-chart/area-chart.js.map +1 -1
- package/dist/components/ui/bar-chart/bar-chart.js +53 -49
- package/dist/components/ui/bar-chart/bar-chart.js.map +1 -1
- package/dist/components/ui/chart/chart.js +108 -97
- package/dist/components/ui/chart/chart.js.map +1 -1
- package/dist/components/ui/composed-chart/composed-chart.js +134 -130
- package/dist/components/ui/composed-chart/composed-chart.js.map +1 -1
- package/dist/components/ui/confidence-cone/confidence-cone.js +36 -35
- package/dist/components/ui/confidence-cone/confidence-cone.js.map +1 -1
- package/dist/components/ui/dialog/dialog.js +69 -67
- package/dist/components/ui/dialog/dialog.js.map +1 -1
- package/dist/components/ui/funnel-chart/funnel-chart.js +38 -37
- package/dist/components/ui/funnel-chart/funnel-chart.js.map +1 -1
- package/dist/components/ui/line-chart/line-chart.js +35 -34
- package/dist/components/ui/line-chart/line-chart.js.map +1 -1
- package/dist/components/ui/pie-chart/pie-chart.js +28 -27
- package/dist/components/ui/pie-chart/pie-chart.js.map +1 -1
- package/dist/components/ui/radar-chart/radar-chart.js +68 -65
- package/dist/components/ui/radar-chart/radar-chart.js.map +1 -1
- package/dist/components/ui/radial-bar-chart/radial-bar-chart.js +64 -63
- package/dist/components/ui/radial-bar-chart/radial-bar-chart.js.map +1 -1
- package/dist/components/ui/scatter-chart/scatter-chart.js +26 -26
- package/dist/components/ui/scatter-chart/scatter-chart.js.map +1 -1
- package/dist/components/ui/treemap/treemap.js +22 -22
- package/dist/components/ui/treemap/treemap.js.map +1 -1
- package/dist/index.js +106 -106
- package/dist/llms/area-chart.md +1 -0
- package/dist/llms/bar-chart.md +1 -0
- package/dist/llms/chart.md +10 -0
- package/dist/llms/composed-chart.md +1 -0
- package/dist/llms/confidence-cone.md +1 -0
- package/dist/llms/funnel-chart.md +1 -0
- package/dist/llms/line-chart.md +1 -0
- package/dist/llms/pie-chart.md +1 -0
- package/dist/llms/radar-chart.md +1 -0
- package/dist/llms/radial-bar-chart.md +1 -0
- package/dist/llms/scatter-chart.md +1 -0
- package/dist/llms/treemap.md +1 -0
- package/dist/llms.txt +1 -1
- package/dist/react.js +106 -106
- package/dist/src/components/ui/area-chart/area-chart.d.ts +6 -1
- package/dist/src/components/ui/bar-chart/bar-chart.d.ts +8 -2
- package/dist/src/components/ui/category-bar/category-bar.d.ts +1 -1
- package/dist/src/components/ui/chart/__stories__/palette-control.d.ts +16 -0
- package/dist/src/components/ui/chart/chart.d.ts +12 -1
- package/dist/src/components/ui/chart/index.d.ts +1 -1
- package/dist/src/components/ui/composed-chart/composed-chart.d.ts +6 -1
- package/dist/src/components/ui/confidence-cone/confidence-cone.d.ts +6 -1
- package/dist/src/components/ui/funnel-chart/funnel-chart.d.ts +6 -1
- package/dist/src/components/ui/grid/grid.d.ts +1 -1
- package/dist/src/components/ui/line-chart/line-chart.d.ts +6 -1
- package/dist/src/components/ui/pie-chart/pie-chart.d.ts +6 -1
- package/dist/src/components/ui/progress-circle/progress-circle.d.ts +1 -1
- package/dist/src/components/ui/radar-chart/radar-chart.d.ts +9 -1
- package/dist/src/components/ui/radial-bar-chart/radial-bar-chart.d.ts +6 -1
- package/dist/src/components/ui/scatter-chart/scatter-chart.d.ts +6 -1
- package/dist/src/components/ui/spinner/spinner.d.ts +1 -1
- package/dist/src/components/ui/stack/stack.d.ts +1 -1
- package/dist/src/components/ui/treemap/treemap.d.ts +6 -1
- package/dist/ui-react.css +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import { AxisDomainItem } from 'recharts';
|
|
3
|
-
import { ChartTooltip, ChartConfig, ChartPalette, ChartAnimationProps, ChartDataLabelProps, CartesianLabelPosition } from '../chart';
|
|
3
|
+
import { ChartTooltip, ChartConfig, ChartLegendFontSize, ChartPalette, ChartAnimationProps, ChartDataLabelProps, CartesianLabelPosition } from '../chart';
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
declare const radarChartVariants: (props?: ({
|
|
6
6
|
gridType?: "circle" | "polygon" | null | undefined;
|
|
@@ -251,6 +251,14 @@ export interface RadarChartProps extends Omit<React.ComponentProps<'div'>, 'chil
|
|
|
251
251
|
};
|
|
252
252
|
showTooltip?: boolean;
|
|
253
253
|
showLegend?: boolean;
|
|
254
|
+
/**
|
|
255
|
+
* Font size of the legend text. Defaults to `'xs'` — the size the legend has
|
|
256
|
+
* always rendered at. A larger size grows the legend band the plot is centred
|
|
257
|
+
* above (the band is sized for `xs`; see `radarPlotBox`), so pair it with a
|
|
258
|
+
* taller `className` height if the legend crowds the web. See
|
|
259
|
+
* `ChartLegendFontSize`.
|
|
260
|
+
*/
|
|
261
|
+
legendFontSize?: ChartLegendFontSize;
|
|
254
262
|
/**
|
|
255
263
|
* Replace the default tooltip. Pass a configured `ChartTooltipContent`
|
|
256
264
|
* (imported from this library) — e.g. with a `formatter` / `labelFormatter` —
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChartTooltip, ChartConfig, ChartPalette, ChartAnimationProps, ChartDataLabelProps, PolarLabelPosition, TickFormatter } from '../chart';
|
|
1
|
+
import { ChartTooltip, ChartConfig, ChartLegendFontSize, ChartPalette, ChartAnimationProps, ChartDataLabelProps, PolarLabelPosition, TickFormatter } from '../chart';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
/** Row-per-arc datum: the `nameKey` label plus each metric's numeric value. */
|
|
4
4
|
type RadialBarChartDatum = Record<string, string | number>;
|
|
@@ -229,6 +229,11 @@ export interface RadialBarChartProps extends Omit<React.ComponentProps<'div'>, '
|
|
|
229
229
|
centerLabel?: RadialBarChartCenterLabel;
|
|
230
230
|
showTooltip?: boolean;
|
|
231
231
|
showLegend?: boolean;
|
|
232
|
+
/**
|
|
233
|
+
* Font size of the legend text (labels and values). Defaults to `'xs'` —
|
|
234
|
+
* the size the legend has always rendered at. See `ChartLegendFontSize`.
|
|
235
|
+
*/
|
|
236
|
+
legendFontSize?: ChartLegendFontSize;
|
|
232
237
|
/**
|
|
233
238
|
* Format each arc's value in the list legend. In single-metric mode each arc
|
|
234
239
|
* row gets its formatted value next to its label; in multi-metric mode values
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChartConfig, ChartPalette, CartesianChartProps, ChartAnimationProps } from '../chart';
|
|
1
|
+
import { ChartConfig, ChartLegendFontSize, ChartPalette, CartesianChartProps, ChartAnimationProps } from '../chart';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
export type ScatterMarkerShape = 'circle' | 'cross' | 'diamond' | 'square' | 'star' | 'triangle' | 'wye';
|
|
4
4
|
export interface ScatterSeries {
|
|
@@ -35,6 +35,11 @@ export interface ScatterChartProps extends Omit<React.ComponentProps<'div'>, 'ch
|
|
|
35
35
|
/** Marker shape for every point. */
|
|
36
36
|
shape?: ScatterMarkerShape;
|
|
37
37
|
showLegend?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Font size of the legend text. Defaults to `'xs'` — the size the legend has
|
|
40
|
+
* always rendered at. See `ChartLegendFontSize`.
|
|
41
|
+
*/
|
|
42
|
+
legendFontSize?: ChartLegendFontSize;
|
|
38
43
|
}
|
|
39
44
|
declare const ScatterChart: React.ForwardRefExoticComponent<Omit<ScatterChartProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
40
45
|
export { ScatterChart };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
declare const spinnerVariants: (props?: ({
|
|
4
|
-
size?: "sm" | "
|
|
4
|
+
size?: "sm" | "lg" | "xl" | "md" | null | undefined;
|
|
5
5
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
6
|
export interface SpinnerProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof spinnerVariants> {
|
|
7
7
|
}
|
|
@@ -2,7 +2,7 @@ import { VariantProps } from 'class-variance-authority';
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
declare const stackVariants: (props?: ({
|
|
4
4
|
direction?: "horizontal" | "vertical" | null | undefined;
|
|
5
|
-
gap?: "none" | "
|
|
5
|
+
gap?: "none" | "xs" | "sm" | "lg" | "xl" | "md" | null | undefined;
|
|
6
6
|
align?: "center" | "end" | "stretch" | "start" | null | undefined;
|
|
7
7
|
justify?: "center" | "end" | "start" | "between" | null | undefined;
|
|
8
8
|
wrap?: boolean | null | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChartTooltip, ChartConfig, ChartPalette, ChartAnimationProps, TickFormatter } from '../chart';
|
|
1
|
+
import { ChartTooltip, ChartConfig, ChartLegendFontSize, ChartPalette, ChartAnimationProps, TickFormatter } from '../chart';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
/**
|
|
4
4
|
* Where a cell's label block sits inside its rectangle. Named logically, not
|
|
@@ -110,6 +110,11 @@ export interface TreemapProps extends Omit<React.ComponentProps<'div'>, 'childre
|
|
|
110
110
|
showLegend?: boolean;
|
|
111
111
|
/** Which edge the legend sits on. */
|
|
112
112
|
legendPos?: 'top' | 'bottom';
|
|
113
|
+
/**
|
|
114
|
+
* Font size of the legend text. Defaults to `'xs'` — the size the legend has
|
|
115
|
+
* always rendered at. See `ChartLegendFontSize`.
|
|
116
|
+
*/
|
|
117
|
+
legendFontSize?: ChartLegendFontSize;
|
|
113
118
|
/**
|
|
114
119
|
* Replace the default tooltip. Pass a configured `ChartTooltipContent`
|
|
115
120
|
* (imported from this library) — e.g. with a `formatter` / `labelFormatter` —
|