@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.
Files changed (62) hide show
  1. package/dist/components/ui/area-chart/area-chart.js +114 -113
  2. package/dist/components/ui/area-chart/area-chart.js.map +1 -1
  3. package/dist/components/ui/bar-chart/bar-chart.js +53 -49
  4. package/dist/components/ui/bar-chart/bar-chart.js.map +1 -1
  5. package/dist/components/ui/chart/chart.js +108 -97
  6. package/dist/components/ui/chart/chart.js.map +1 -1
  7. package/dist/components/ui/composed-chart/composed-chart.js +134 -130
  8. package/dist/components/ui/composed-chart/composed-chart.js.map +1 -1
  9. package/dist/components/ui/confidence-cone/confidence-cone.js +36 -35
  10. package/dist/components/ui/confidence-cone/confidence-cone.js.map +1 -1
  11. package/dist/components/ui/dialog/dialog.js +69 -67
  12. package/dist/components/ui/dialog/dialog.js.map +1 -1
  13. package/dist/components/ui/funnel-chart/funnel-chart.js +38 -37
  14. package/dist/components/ui/funnel-chart/funnel-chart.js.map +1 -1
  15. package/dist/components/ui/line-chart/line-chart.js +35 -34
  16. package/dist/components/ui/line-chart/line-chart.js.map +1 -1
  17. package/dist/components/ui/pie-chart/pie-chart.js +28 -27
  18. package/dist/components/ui/pie-chart/pie-chart.js.map +1 -1
  19. package/dist/components/ui/radar-chart/radar-chart.js +68 -65
  20. package/dist/components/ui/radar-chart/radar-chart.js.map +1 -1
  21. package/dist/components/ui/radial-bar-chart/radial-bar-chart.js +64 -63
  22. package/dist/components/ui/radial-bar-chart/radial-bar-chart.js.map +1 -1
  23. package/dist/components/ui/scatter-chart/scatter-chart.js +26 -26
  24. package/dist/components/ui/scatter-chart/scatter-chart.js.map +1 -1
  25. package/dist/components/ui/treemap/treemap.js +22 -22
  26. package/dist/components/ui/treemap/treemap.js.map +1 -1
  27. package/dist/index.js +106 -106
  28. package/dist/llms/area-chart.md +1 -0
  29. package/dist/llms/bar-chart.md +1 -0
  30. package/dist/llms/chart.md +10 -0
  31. package/dist/llms/composed-chart.md +1 -0
  32. package/dist/llms/confidence-cone.md +1 -0
  33. package/dist/llms/funnel-chart.md +1 -0
  34. package/dist/llms/line-chart.md +1 -0
  35. package/dist/llms/pie-chart.md +1 -0
  36. package/dist/llms/radar-chart.md +1 -0
  37. package/dist/llms/radial-bar-chart.md +1 -0
  38. package/dist/llms/scatter-chart.md +1 -0
  39. package/dist/llms/treemap.md +1 -0
  40. package/dist/llms.txt +1 -1
  41. package/dist/react.js +106 -106
  42. package/dist/src/components/ui/area-chart/area-chart.d.ts +6 -1
  43. package/dist/src/components/ui/bar-chart/bar-chart.d.ts +8 -2
  44. package/dist/src/components/ui/category-bar/category-bar.d.ts +1 -1
  45. package/dist/src/components/ui/chart/__stories__/palette-control.d.ts +16 -0
  46. package/dist/src/components/ui/chart/chart.d.ts +12 -1
  47. package/dist/src/components/ui/chart/index.d.ts +1 -1
  48. package/dist/src/components/ui/composed-chart/composed-chart.d.ts +6 -1
  49. package/dist/src/components/ui/confidence-cone/confidence-cone.d.ts +6 -1
  50. package/dist/src/components/ui/funnel-chart/funnel-chart.d.ts +6 -1
  51. package/dist/src/components/ui/grid/grid.d.ts +1 -1
  52. package/dist/src/components/ui/line-chart/line-chart.d.ts +6 -1
  53. package/dist/src/components/ui/pie-chart/pie-chart.d.ts +6 -1
  54. package/dist/src/components/ui/progress-circle/progress-circle.d.ts +1 -1
  55. package/dist/src/components/ui/radar-chart/radar-chart.d.ts +9 -1
  56. package/dist/src/components/ui/radial-bar-chart/radial-bar-chart.d.ts +6 -1
  57. package/dist/src/components/ui/scatter-chart/scatter-chart.d.ts +6 -1
  58. package/dist/src/components/ui/spinner/spinner.d.ts +1 -1
  59. package/dist/src/components/ui/stack/stack.d.ts +1 -1
  60. package/dist/src/components/ui/treemap/treemap.d.ts +6 -1
  61. package/dist/ui-react.css +1 -1
  62. 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" | "md" | "lg" | "xl" | null | undefined;
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" | "sm" | "md" | "lg" | "xl" | "xs" | null | undefined;
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` —