@acronis-platform/ui-react 5.5.8 → 6.0.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/chart/chart.js +14 -11
- package/dist/components/ui/chart/chart.js.map +1 -1
- package/dist/components/ui/chart-state/chart-state.js +47 -37
- package/dist/components/ui/chart-state/chart-state.js.map +1 -1
- package/dist/components/ui/chart-widget/chart-widget.js +21 -23
- package/dist/components/ui/chart-widget/chart-widget.js.map +1 -1
- package/dist/components/ui/data-table/data-table-column-header.js +22 -14
- package/dist/components/ui/data-table/data-table-column-header.js.map +1 -1
- package/dist/components/ui/data-table/data-table.js +137 -137
- package/dist/components/ui/data-table/data-table.js.map +1 -1
- package/dist/components/ui/dialog/dialog.js +45 -32
- package/dist/components/ui/dialog/dialog.js.map +1 -1
- package/dist/components/ui/pie-chart/pie-chart.js +88 -84
- package/dist/components/ui/pie-chart/pie-chart.js.map +1 -1
- package/dist/index.js +86 -87
- package/dist/llms/chart-state.md +81 -164
- package/dist/llms/chart-widget.md +27 -25
- package/dist/llms/dialog-root.md +40 -13
- package/dist/llms/dialog.md +26 -1
- package/dist/llms.txt +3 -3
- package/dist/react.js +86 -87
- package/dist/src/components/ui/chart/chart.d.ts +3 -3
- package/dist/src/components/ui/chart-state/chart-state.d.ts +5 -14
- package/dist/src/components/ui/chart-state/index.d.ts +0 -1
- package/dist/src/components/ui/chart-widget/chart-widget.d.ts +10 -15
- package/dist/src/components/ui/data-table/data-table.d.ts +2 -2
- package/dist/src/components/ui/dialog/dialog.d.ts +9 -0
- package/dist/src/components/ui/dialog/dialog.docs.d.ts +5 -1
- package/dist/src/components/ui/pie-chart/pie-chart.d.ts +1 -1
- package/dist/ui-react.css +1 -1
- package/package.json +13 -13
- package/dist/components/ui/chart-state/chart-state-illustrations.js +0 -412
- package/dist/components/ui/chart-state/chart-state-illustrations.js.map +0 -1
- package/dist/src/components/ui/chart-state/chart-state-illustrations.d.ts +0 -6
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useRender } from '@base-ui/react/use-render';
|
|
2
2
|
import { CardHeaderProps } from '../card';
|
|
3
|
-
import { ChartStateProps
|
|
3
|
+
import { ChartStateProps } from '../chart-state';
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
export interface ChartWidgetProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'title'> {
|
|
6
6
|
/**
|
|
@@ -10,12 +10,6 @@ export interface ChartWidgetProps extends Omit<React.HTMLAttributes<HTMLDivEleme
|
|
|
10
10
|
* one thing the widget can't infer for itself.
|
|
11
11
|
*/
|
|
12
12
|
render?: useRender.RenderProp;
|
|
13
|
-
/**
|
|
14
|
-
* Which chart the widget holds. Only used while `state="empty"`, to pick the
|
|
15
|
-
* silhouette the design draws for that chart type — the widget itself needs
|
|
16
|
-
* no size, so this carries nothing else.
|
|
17
|
-
*/
|
|
18
|
-
variant?: ChartStateVariant;
|
|
19
13
|
/**
|
|
20
14
|
* The card header, forwarded verbatim to `CardHeader`. Everything that
|
|
21
15
|
* component takes works here — `title`, `actions` (the ⋯ menu), `extras` (a
|
|
@@ -36,28 +30,29 @@ export interface ChartWidgetProps extends Omit<React.HTMLAttributes<HTMLDivEleme
|
|
|
36
30
|
orientation?: 'vertical' | 'horizontal';
|
|
37
31
|
/**
|
|
38
32
|
* The readout beside or above the plot — typically a `Metric`. Layout is
|
|
39
|
-
* controlled by `orientation
|
|
33
|
+
* controlled by `orientation`; it is replaced along with the plot while a
|
|
34
|
+
* state is active.
|
|
40
35
|
*/
|
|
41
36
|
metric?: React.ReactNode;
|
|
42
37
|
/**
|
|
43
|
-
*
|
|
44
|
-
*
|
|
38
|
+
* Explicitly show a state in place of the metric and plot. The consumer
|
|
39
|
+
* selects the state; this component does not infer it from chart data. The
|
|
40
|
+
* `number` state displays a KPI-style numeric readout. The card chrome stays
|
|
41
|
+
* the same for each state.
|
|
45
42
|
*/
|
|
46
43
|
state?: ChartStateProps['state'];
|
|
47
44
|
/**
|
|
48
|
-
* Text
|
|
49
|
-
* `"Data is loading…"` / `"No data found"` / `"
|
|
45
|
+
* Text shown in the selected state, or the numeric readout for `number`.
|
|
46
|
+
* Defaults to `"Data is loading…"` / `"No data found"` / `"0"` / etc.
|
|
50
47
|
*/
|
|
51
48
|
stateDescription?: ChartStateProps['description'];
|
|
52
|
-
/** Trailing action on the `error` placeholder — e.g. a "Try again" button. */
|
|
53
|
-
stateAction?: ChartStateProps['action'];
|
|
54
49
|
/**
|
|
55
50
|
* Class for the card body. Rarely needed — the body already fills the card.
|
|
56
51
|
* Use it where nothing above gives a height and the content can't either, e.g.
|
|
57
52
|
* a placeholder-only widget outside a sized grid cell.
|
|
58
53
|
*/
|
|
59
54
|
bodyClassName?: string;
|
|
60
|
-
/** The chart. Replaced
|
|
55
|
+
/** The chart. Replaced with `ChartState` together with `metric` while `state` is set. */
|
|
61
56
|
children?: React.ReactNode;
|
|
62
57
|
}
|
|
63
58
|
declare const ChartWidget: React.ForwardRefExoticComponent<ChartWidgetProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -5,8 +5,8 @@ declare module '@tanstack/react-table' {
|
|
|
5
5
|
/** Pin the column to a table edge (sticky while the grid scrolls horizontally). */
|
|
6
6
|
pin?: 'left' | 'right';
|
|
7
7
|
/**
|
|
8
|
-
* Let the column's
|
|
9
|
-
*
|
|
8
|
+
* Let the column's data cells wrap onto multiple lines (drops the fixed row
|
|
9
|
+
* height). Headers remain single-line and truncate with a tooltip.
|
|
10
10
|
*/
|
|
11
11
|
wrap?: boolean;
|
|
12
12
|
/** Label shown for this column in the visibility dropdown. */
|
|
@@ -3,6 +3,7 @@ import { VariantProps } from 'class-variance-authority';
|
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
declare const dialogContentVariants: (props?: ({
|
|
5
5
|
size?: "large" | "sm" | null | undefined;
|
|
6
|
+
verticalAlign?: "center" | "top" | null | undefined;
|
|
6
7
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
8
|
declare const DialogRoot: typeof DialogPrimitive.Root;
|
|
8
9
|
declare const DialogTrigger: DialogPrimitive.Trigger;
|
|
@@ -16,6 +17,12 @@ export interface DialogContentProps extends React.ComponentPropsWithoutRef<typeo
|
|
|
16
17
|
* `Large` story).
|
|
17
18
|
*/
|
|
18
19
|
size?: VariantProps<typeof dialogContentVariants>['size'];
|
|
20
|
+
/**
|
|
21
|
+
* Vertical placement of the popup. `center` (default) centers it in the
|
|
22
|
+
* viewport; `top` pins it 48px from the top edge, leaving the rest of the
|
|
23
|
+
* viewport below it.
|
|
24
|
+
*/
|
|
25
|
+
verticalAlign?: 'center' | 'top';
|
|
19
26
|
/**
|
|
20
27
|
* Render the content inside a portal (default `true`). Base UI requires the
|
|
21
28
|
* Popup to sit in a Portal for correct stacking; set `false` for inline usage
|
|
@@ -122,6 +129,8 @@ export interface DialogProps extends Omit<DialogRootProps, 'children'> {
|
|
|
122
129
|
* `'large'` when `variant` is `'wide'`.
|
|
123
130
|
*/
|
|
124
131
|
size?: DialogContentProps['size'];
|
|
132
|
+
/** Vertical placement: `'center'` (default) or `'top'` (forwarded to `DialogContent`). */
|
|
133
|
+
verticalAlign?: DialogContentProps['verticalAlign'];
|
|
125
134
|
/** Render inside a portal (forwarded to `DialogContent`). Defaults to `true`. */
|
|
126
135
|
portal?: boolean;
|
|
127
136
|
/** Portal container (forwarded to `DialogContent`). */
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import type * as React from 'react';
|
|
2
|
-
/** Props for `DialogContent` — the portaled
|
|
2
|
+
/** Props for `DialogContent` — the portaled dialog popup (centered by default, or top-aligned). */
|
|
3
3
|
export interface DialogContentProps {
|
|
4
4
|
/** Popup max-width. `sm` (512px, default) is the Figma-defined size; `large` (832px) is a legacy backward-compatibility size. */
|
|
5
5
|
size?: 'sm' | 'large';
|
|
6
|
+
/** Vertical placement. `center` (default) centers the popup; `top` pins it 48px from the top edge of the viewport. */
|
|
7
|
+
verticalAlign?: 'center' | 'top';
|
|
6
8
|
/**
|
|
7
9
|
* Render the content inside a portal (default `true`). Disable only when you
|
|
8
10
|
* supply your own `DialogPortal` ancestor (e.g. inline usage).
|
|
@@ -82,6 +84,8 @@ export interface DialogProps {
|
|
|
82
84
|
closeLabel?: string;
|
|
83
85
|
/** Popup max-width. Defaults to `'sm'`, or to `'large'` when `variant` is `'wide'`. */
|
|
84
86
|
size?: 'sm' | 'large';
|
|
87
|
+
/** Vertical placement. `center` (default) centers the popup; `top` pins it 48px from the top edge of the viewport. */
|
|
88
|
+
verticalAlign?: 'center' | 'top';
|
|
85
89
|
/** Render inside a portal (default `true`). */
|
|
86
90
|
portal?: boolean;
|
|
87
91
|
/** Portal container. Pass a shadow-root mount for isolated-style previews. */
|
|
@@ -2,7 +2,7 @@ import { VariantProps } from 'class-variance-authority';
|
|
|
2
2
|
import { ChartTooltip, ChartConfig, ChartLegendFontSize, ChartLegendAriaLabelProps, ChartPalette, ChartTooltipContentProps, ChartAnimationProps, ChartDataLabelProps, PolarLabelPosition, TickFormatter } from '../chart';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
declare const pieChartVariants: (props?: ({
|
|
5
|
-
shape?: "
|
|
5
|
+
shape?: "pie" | "donut" | null | undefined;
|
|
6
6
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
7
|
/** Row-per-slice datum: the `nameKey` label plus the `dataKey` value. */
|
|
8
8
|
type PieChartDatum = Record<string, string | number>;
|