@acronis-platform/ui-react 0.58.0 → 0.60.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 +91 -63
- package/dist/components/ui/area-chart/area-chart.js.map +1 -1
- package/dist/components/ui/bar-chart/bar-chart.js +104 -73
- package/dist/components/ui/bar-chart/bar-chart.js.map +1 -1
- package/dist/components/ui/calendar/calendar.js +17 -15
- package/dist/components/ui/calendar/calendar.js.map +1 -1
- package/dist/components/ui/carousel-dialog/carousel-dialog.js +87 -0
- package/dist/components/ui/carousel-dialog/carousel-dialog.js.map +1 -0
- package/dist/components/ui/category-bar/category-bar.js +126 -0
- package/dist/components/ui/category-bar/category-bar.js.map +1 -0
- package/dist/components/ui/chart/chart-format.js +40 -0
- package/dist/components/ui/chart/chart-format.js.map +1 -0
- package/dist/components/ui/chart/chart.js.map +1 -1
- package/dist/components/ui/composed-chart/composed-chart.js +91 -63
- package/dist/components/ui/composed-chart/composed-chart.js.map +1 -1
- package/dist/components/ui/confidence-cone/confidence-cone.js +113 -85
- package/dist/components/ui/confidence-cone/confidence-cone.js.map +1 -1
- package/dist/components/ui/dialog/dialog.js +29 -29
- package/dist/components/ui/dialog/dialog.js.map +1 -1
- package/dist/components/ui/dialog-footer-carousel/dialog-footer-carousel.js +57 -0
- package/dist/components/ui/dialog-footer-carousel/dialog-footer-carousel.js.map +1 -0
- package/dist/components/ui/dialog-footer-default/dialog-footer-default.js +1 -1
- package/dist/components/ui/dialog-footer-default/dialog-footer-default.js.map +1 -1
- package/dist/components/ui/dialog-welcome/dialog-welcome.js +272 -0
- package/dist/components/ui/dialog-welcome/dialog-welcome.js.map +1 -0
- package/dist/components/ui/histogram/histogram.js +89 -61
- package/dist/components/ui/histogram/histogram.js.map +1 -1
- package/dist/components/ui/input/input.js.map +1 -1
- package/dist/components/ui/line-chart/line-chart.js +120 -92
- package/dist/components/ui/line-chart/line-chart.js.map +1 -1
- package/dist/components/ui/sankey-chart/sankey-chart.js +192 -0
- package/dist/components/ui/sankey-chart/sankey-chart.js.map +1 -0
- package/dist/components/ui/scatter-chart/scatter-chart.js +79 -51
- package/dist/components/ui/scatter-chart/scatter-chart.js.map +1 -1
- package/dist/components/ui/toolbar/toolbar.js +82 -92
- package/dist/components/ui/toolbar/toolbar.js.map +1 -1
- package/dist/index.js +461 -439
- package/dist/index.js.map +1 -1
- package/dist/lib/breakpoints.js +9 -6
- package/dist/lib/breakpoints.js.map +1 -1
- package/dist/node_modules/.pnpm/embla-carousel-react@8.6.0_react@19.2.6/node_modules/embla-carousel-react/esm/embla-carousel-react.esm.js +25 -0
- package/dist/node_modules/.pnpm/embla-carousel-react@8.6.0_react@19.2.6/node_modules/embla-carousel-react/esm/embla-carousel-react.esm.js.map +1 -0
- package/dist/node_modules/.pnpm/embla-carousel-reactive-utils@8.6.0_embla-carousel@8.6.0/node_modules/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.js +36 -0
- package/dist/node_modules/.pnpm/embla-carousel-reactive-utils@8.6.0_embla-carousel@8.6.0/node_modules/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.js.map +1 -0
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/embla-carousel.esm.js +1205 -0
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/embla-carousel.esm.js.map +1 -0
- package/dist/react.js +461 -439
- package/dist/react.js.map +1 -1
- package/dist/src/components/ui/area-chart/area-chart.d.ts +2 -17
- package/dist/src/components/ui/bar-chart/bar-chart.d.ts +2 -17
- package/dist/src/components/ui/carousel-dialog/carousel-dialog.d.ts +28 -0
- package/dist/src/components/ui/carousel-dialog/index.d.ts +1 -0
- package/dist/src/components/ui/category-bar/category-bar.d.ts +51 -0
- package/dist/src/components/ui/category-bar/index.d.ts +1 -0
- package/dist/src/components/ui/chart/__tests__/chart-format.test.d.ts +1 -0
- package/dist/src/components/ui/chart/chart-format.d.ts +111 -0
- package/dist/src/components/ui/chart/chart.d.ts +2 -0
- package/dist/src/components/ui/chart/index.d.ts +3 -1
- package/dist/src/components/ui/composed-chart/composed-chart.d.ts +2 -17
- package/dist/src/components/ui/confidence-cone/confidence-cone.d.ts +2 -19
- package/dist/src/components/ui/dialog-footer-carousel/dialog-footer-carousel.d.ts +9 -0
- package/dist/src/components/ui/dialog-footer-carousel/index.d.ts +1 -0
- package/dist/src/components/ui/dialog-welcome/dialog-welcome.d.ts +54 -0
- package/dist/src/components/ui/dialog-welcome/dialog-welcome.docs.d.ts +55 -0
- package/dist/src/components/ui/dialog-welcome/index.d.ts +1 -0
- package/dist/src/components/ui/histogram/histogram.d.ts +2 -17
- package/dist/src/components/ui/line-chart/line-chart.d.ts +2 -17
- package/dist/src/components/ui/sankey-chart/index.d.ts +2 -0
- package/dist/src/components/ui/sankey-chart/sankey-chart.d.ts +69 -0
- package/dist/src/components/ui/scatter-chart/scatter-chart.d.ts +2 -17
- package/dist/src/index.d.ts +5 -0
- package/dist/ui-react.css +1 -1
- package/package.json +5 -4
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { ChartTooltip, ChartConfig } from '../chart';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
/** A node in the flow — `name` is its color/config key (CSS-safe, unique). */
|
|
4
|
+
export interface SankeyChartNode {
|
|
5
|
+
name: string;
|
|
6
|
+
}
|
|
7
|
+
/** A directed flow between two nodes, referenced by their index in `nodes`. */
|
|
8
|
+
export interface SankeyChartLink {
|
|
9
|
+
/** Index of the source node in `data.nodes`. */
|
|
10
|
+
source: number;
|
|
11
|
+
/** Index of the target node in `data.nodes`. */
|
|
12
|
+
target: number;
|
|
13
|
+
/** Flow magnitude — drives the link's width. */
|
|
14
|
+
value: number;
|
|
15
|
+
/**
|
|
16
|
+
* Ribbon color (any CSS color, e.g. a `var(--ui-*)` token), rendered at **full
|
|
17
|
+
* opacity** so it matches its node bar. Omit to use the target node's color at
|
|
18
|
+
* 35% (the default tinted ribbon).
|
|
19
|
+
*/
|
|
20
|
+
color?: string;
|
|
21
|
+
}
|
|
22
|
+
export interface SankeyChartProps extends Omit<React.ComponentProps<'div'>, 'children'> {
|
|
23
|
+
/** The graph: `nodes` (color keys) + `links` (source/target indices + value). */
|
|
24
|
+
data: {
|
|
25
|
+
nodes: ReadonlyArray<SankeyChartNode>;
|
|
26
|
+
links: ReadonlyArray<SankeyChartLink>;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Per-node map of `label` / `color`, keyed by the node's `name` (imported from
|
|
30
|
+
* the shared `Chart` primitives). Turned into `--color-<name>` custom
|
|
31
|
+
* properties. Colors are caller-supplied — reference an existing semantic
|
|
32
|
+
* `--ui-*` token; there is no chart palette tier yet.
|
|
33
|
+
*/
|
|
34
|
+
config: ChartConfig;
|
|
35
|
+
/** Vertical gap between nodes in the same column. */
|
|
36
|
+
nodePadding?: number;
|
|
37
|
+
/** Thickness of each node bar. */
|
|
38
|
+
nodeWidth?: number;
|
|
39
|
+
/** Curviness of the links (0 = straight, 1 = fully curved). */
|
|
40
|
+
linkCurvature?: number;
|
|
41
|
+
/**
|
|
42
|
+
* Sort nodes vertically to minimize link crossings (recharts' relaxation).
|
|
43
|
+
* Defaults to `false` — nodes render in the order given by `data.nodes` within
|
|
44
|
+
* each column, which keeps curated flows tidy; set `true` to auto-order.
|
|
45
|
+
*/
|
|
46
|
+
sort?: boolean;
|
|
47
|
+
/** Render each node's label (from `config[name].label`) beside its bar. */
|
|
48
|
+
showLabels?: boolean;
|
|
49
|
+
/** Render a legend (color dot + label + value + % per node) below the chart. */
|
|
50
|
+
showLegend?: boolean;
|
|
51
|
+
/** Show a hover tooltip on nodes and links (dot + `source → target` + value). */
|
|
52
|
+
showTooltip?: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* Replace the default tooltip. Pass a configured `ChartTooltipContent`
|
|
55
|
+
* (imported from this library) — e.g. with a `formatter` / `labelFormatter` —
|
|
56
|
+
* to customize formatting without composing recharts yourself. Ignored when
|
|
57
|
+
* `showTooltip` is false.
|
|
58
|
+
*/
|
|
59
|
+
tooltipContent?: React.ComponentProps<typeof ChartTooltip>['content'];
|
|
60
|
+
}
|
|
61
|
+
export declare function makeSankeyTooltip(config: ChartConfig, links: ReadonlyArray<SankeyChartLink>, nodes: ReadonlyArray<SankeyChartNode>): ({ active, payload, }: {
|
|
62
|
+
active?: boolean;
|
|
63
|
+
payload?: ReadonlyArray<{
|
|
64
|
+
name?: string | number;
|
|
65
|
+
value?: number | string | ReadonlyArray<number | string>;
|
|
66
|
+
}>;
|
|
67
|
+
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
68
|
+
declare const SankeyChart: React.ForwardRefExoticComponent<Omit<SankeyChartProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
69
|
+
export { SankeyChart };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ChartConfig, CartesianChartProps } 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 {
|
|
@@ -7,7 +7,7 @@ export interface ScatterSeries {
|
|
|
7
7
|
/** This series' points — each row holds at least `xKey` and `yKey` (and `zKey` when used). */
|
|
8
8
|
data: ReadonlyArray<Record<string, number>>;
|
|
9
9
|
}
|
|
10
|
-
export interface ScatterChartProps extends Omit<React.ComponentProps<'div'>, 'children'
|
|
10
|
+
export interface ScatterChartProps extends Omit<React.ComponentProps<'div'>, 'children'>, CartesianChartProps {
|
|
11
11
|
/** One `<Scatter>` per entry — each with its own point array. Use a single entry for an ungrouped scatter. */
|
|
12
12
|
series: ScatterSeries[];
|
|
13
13
|
/**
|
|
@@ -21,30 +21,15 @@ export interface ScatterChartProps extends Omit<React.ComponentProps<'div'>, 'ch
|
|
|
21
21
|
xKey: string;
|
|
22
22
|
/** Numeric field for the vertical axis. */
|
|
23
23
|
yKey: string;
|
|
24
|
-
/** Title rendered beneath the horizontal (X) axis. */
|
|
25
|
-
xAxisLabel?: string;
|
|
26
|
-
/** Title rendered beside the vertical (Y) axis (rotated). */
|
|
27
|
-
yAxisLabel?: string;
|
|
28
24
|
/** Unit suffix appended to X-axis tick values (recharts `unit`). */
|
|
29
25
|
xUnit?: string;
|
|
30
|
-
/** Unit suffix appended to Y-axis tick values (recharts `unit`). */
|
|
31
|
-
yUnit?: string;
|
|
32
26
|
/** Optional numeric field mapped to point size (a bubble chart), via recharts `ZAxis`. */
|
|
33
27
|
zKey?: string;
|
|
34
28
|
/** Point-size range `[min, max]` the `zKey` maps into. Ignored when `zKey` is unset (points use recharts' default size). */
|
|
35
29
|
zRange?: [number, number];
|
|
36
30
|
/** Marker shape for every point. */
|
|
37
31
|
shape?: ScatterMarkerShape;
|
|
38
|
-
showGrid?: boolean;
|
|
39
|
-
showTooltip?: boolean;
|
|
40
32
|
showLegend?: boolean;
|
|
41
|
-
/**
|
|
42
|
-
* Replace the default tooltip. Pass a configured `ChartTooltipContent`
|
|
43
|
-
* (imported from this library) — e.g. with a `formatter` / `labelFormatter` /
|
|
44
|
-
* `indicator` — to customize formatting, per-series rows, or extra fields
|
|
45
|
-
* without composing recharts yourself. Ignored when `showTooltip` is false.
|
|
46
|
-
*/
|
|
47
|
-
tooltipContent?: React.ComponentProps<typeof ChartTooltip>['content'];
|
|
48
33
|
}
|
|
49
34
|
declare const ScatterChart: React.ForwardRefExoticComponent<Omit<ScatterChartProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
50
35
|
export { ScatterChart };
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { cn } from './lib/utils';
|
|
2
2
|
export * from './hooks';
|
|
3
|
+
export * from './lib/breakpoints';
|
|
3
4
|
export { PortalContainerProvider, usePortalContainer, type PortalContainerProviderProps, } from './lib/portal-container';
|
|
4
5
|
export * from './components/ui/accordion';
|
|
5
6
|
export * from './components/ui/alert';
|
|
@@ -15,6 +16,7 @@ export * from './components/ui/button-menu';
|
|
|
15
16
|
export * from './components/ui/calendar';
|
|
16
17
|
export * from './components/ui/card';
|
|
17
18
|
export * from './components/ui/card-filter';
|
|
19
|
+
export * from './components/ui/category-bar';
|
|
18
20
|
export * from './components/ui/chart';
|
|
19
21
|
export * from './components/ui/chart-state';
|
|
20
22
|
export * from './components/ui/checkbox';
|
|
@@ -27,7 +29,9 @@ export * from './components/ui/data-table';
|
|
|
27
29
|
export * from './components/ui/date-range-picker';
|
|
28
30
|
export * from './components/ui/description-list';
|
|
29
31
|
export { Dialog, DialogClose, type DialogProps, type DialogVariant, } from './components/ui/dialog';
|
|
32
|
+
export * from './components/ui/dialog-footer-carousel';
|
|
30
33
|
export * from './components/ui/dialog-footer-default';
|
|
34
|
+
export * from './components/ui/dialog-welcome';
|
|
31
35
|
export * from './components/ui/dropdown-menu';
|
|
32
36
|
export * from './components/ui/empty';
|
|
33
37
|
export * from './components/ui/field';
|
|
@@ -60,6 +64,7 @@ export * from './components/ui/pie-chart';
|
|
|
60
64
|
export * from './components/ui/popover';
|
|
61
65
|
export * from './components/ui/progress';
|
|
62
66
|
export * from './components/ui/progress-circle';
|
|
67
|
+
export * from './components/ui/sankey-chart';
|
|
63
68
|
export * from './components/ui/scatter-chart';
|
|
64
69
|
export * from './components/ui/scroll-area';
|
|
65
70
|
export * from './components/ui/search-global';
|