@wallarm-org/design-system 1.12.2 → 1.13.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.
@@ -0,0 +1,35 @@
1
+ import { type HTMLAttributes, type ReactElement, type Ref } from 'react';
2
+ import type { SyncMethod } from 'recharts/types/synchronisation/types';
3
+ import { type TestableProps } from '../../../utils/testId';
4
+ import { type LineChartDatum, type LineChartSeries, type LineChartZoomRange } from '../LineChart/LineChartContext';
5
+ import { type AreaChartVariant } from './AreaChartContext';
6
+ export interface AreaChartProps<T extends LineChartDatum = LineChartDatum> extends HTMLAttributes<HTMLDivElement>, TestableProps {
7
+ ref?: Ref<HTMLDivElement>;
8
+ /** Long-form data array, one entry per X position. */
9
+ data: T[];
10
+ /** Schema describing each area drawn from `data`. */
11
+ series: LineChartSeries<Extract<keyof T, string>>[];
12
+ /** Key on each datum used as the X-axis value. */
13
+ xKey: Extract<keyof T, string>;
14
+ /**
15
+ * Area chart variant.
16
+ * - `'stacked'` (default): series stack cumulatively — each band starts where the previous ends.
17
+ * - `'standard'`: series overlap from the baseline with transparency.
18
+ */
19
+ variant?: AreaChartVariant;
20
+ /** Controlled hover key — pass alongside `onActiveKeyChange` for cross-chart sync. */
21
+ activeKey?: string | null;
22
+ onActiveKeyChange?: (key: string | null) => void;
23
+ /** Controlled set of `series.key` values to hide from the plot. */
24
+ filteredKeys?: string[];
25
+ /** Fired after the user confirms a brush selection. */
26
+ onZoomChange?: (range: LineChartZoomRange | null) => void;
27
+ /** Charts that share a `syncId` synchronise their tooltip cursor. */
28
+ syncId?: string | number;
29
+ /** How sibling `syncId` charts match X positions. */
30
+ syncMethod?: SyncMethod;
31
+ }
32
+ export declare function AreaChart<T extends LineChartDatum = LineChartDatum>({ data, series, xKey, variant, activeKey: controlledActiveKey, onActiveKeyChange, filteredKeys, onZoomChange, syncId, syncMethod, className, children, ref, 'data-testid': testId, ...props }: AreaChartProps<T>): ReactElement;
33
+ export declare namespace AreaChart {
34
+ var displayName: string;
35
+ }
@@ -0,0 +1,108 @@
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
+ import code_connect from "@figma/code-connect";
3
+ import { Chart } from "../Chart/Chart.js";
4
+ import { ChartHeader } from "../Chart/ChartHeader.js";
5
+ import { ChartTitle } from "../Chart/ChartTitle.js";
6
+ import { LineChartGrid } from "../LineChart/LineChartGrid.js";
7
+ import { LineChartHoverPopoverDot } from "../LineChart/LineChartHoverPopoverDot.js";
8
+ import { LineChartLegend } from "../LineChart/LineChartLegend.js";
9
+ import { LineChartLegendItem } from "../LineChart/LineChartLegendItem.js";
10
+ import { LineChartTooltip } from "../LineChart/LineChartTooltip.js";
11
+ import { LineChartXAxis } from "../LineChart/LineChartXAxis.js";
12
+ import { LineChartYAxis } from "../LineChart/LineChartYAxis.js";
13
+ import { formatChartHour } from "../lib/timeFormatters.js";
14
+ import { AreaChart } from "./AreaChart.js";
15
+ import { AreaChartArea } from "./AreaChartArea.js";
16
+ import { AreaChartBody } from "./AreaChartBody.js";
17
+ const figmaNodeUrl = 'https://www.figma.com/design/VKb5gW46uSGw0rqrhZsbXT/WADS-Components?node-id=11973-4142&m=dev';
18
+ const sampleData = Array.from({
19
+ length: 24
20
+ }, (_, i)=>{
21
+ const t = Date.UTC(2025, 0, 1, i, 0, 0);
22
+ const requests = Math.round(120 + 60 * Math.sin(i / 3));
23
+ const errors = Math.round(20 + 12 * Math.cos(i / 4));
24
+ const latency = Math.round(80 + 20 * Math.sin(i / 5));
25
+ return {
26
+ timestamp: t,
27
+ requests,
28
+ errors,
29
+ latency
30
+ };
31
+ });
32
+ const multiSeries = [
33
+ {
34
+ key: 'requests',
35
+ label: 'Requests',
36
+ color: 'brand'
37
+ },
38
+ {
39
+ key: 'errors',
40
+ label: 'Errors',
41
+ color: 'red'
42
+ },
43
+ {
44
+ key: 'latency',
45
+ label: 'Latency',
46
+ color: 'blue'
47
+ }
48
+ ];
49
+ const formatXTick = (value)=>formatChartHour(value);
50
+ const formatYTick = (value)=>Number(value).toLocaleString('en-US');
51
+ code_connect.connect(AreaChart, figmaNodeUrl, {
52
+ props: {
53
+ title: code_connect.string('Title'),
54
+ variant: code_connect["enum"]('Type', {
55
+ Stacked: 'stacked',
56
+ Standard: 'standard'
57
+ })
58
+ },
59
+ example: ({ title, variant })=>/*#__PURE__*/ jsxs(Chart, {
60
+ children: [
61
+ /*#__PURE__*/ jsx(ChartHeader, {
62
+ children: /*#__PURE__*/ jsx(ChartTitle, {
63
+ children: title
64
+ })
65
+ }),
66
+ /*#__PURE__*/ jsxs(AreaChart, {
67
+ data: sampleData,
68
+ series: multiSeries,
69
+ xKey: "timestamp",
70
+ variant: variant,
71
+ children: [
72
+ /*#__PURE__*/ jsx(LineChartLegend, {
73
+ children: multiSeries.map((s)=>/*#__PURE__*/ jsxs(LineChartLegendItem, {
74
+ seriesKey: s.key,
75
+ children: [
76
+ /*#__PURE__*/ jsx(LineChartHoverPopoverDot, {
77
+ color: s.color
78
+ }),
79
+ /*#__PURE__*/ jsx("span", {
80
+ className: "text-xs font-mono text-text-primary",
81
+ children: s.label
82
+ })
83
+ ]
84
+ }, s.key))
85
+ }),
86
+ /*#__PURE__*/ jsxs(AreaChartBody, {
87
+ children: [
88
+ /*#__PURE__*/ jsx(LineChartGrid, {}),
89
+ /*#__PURE__*/ jsx(LineChartXAxis, {
90
+ tickFormatter: formatXTick,
91
+ minTickGap: 32
92
+ }),
93
+ /*#__PURE__*/ jsx(LineChartYAxis, {
94
+ tickFormatter: formatYTick
95
+ }),
96
+ multiSeries.map((s)=>/*#__PURE__*/ jsx(AreaChartArea, {
97
+ seriesKey: s.key
98
+ }, s.key)),
99
+ /*#__PURE__*/ jsx(LineChartTooltip, {
100
+ xTickFormatter: formatChartHour
101
+ })
102
+ ]
103
+ })
104
+ ]
105
+ })
106
+ ]
107
+ })
108
+ });
@@ -0,0 +1,140 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { useCallback, useMemo, useRef } from "react";
3
+ import { cn } from "../../../utils/cn.js";
4
+ import { TestIdProvider } from "../../../utils/testId.js";
5
+ import { useLineChartActiveKey } from "../LineChart/hooks/useLineChartActiveKey.js";
6
+ import { useLineChartDataWarnings } from "../LineChart/hooks/useLineChartDataWarnings.js";
7
+ import { useLineChartZoomState } from "../LineChart/hooks/useLineChartZoomState.js";
8
+ import { EMPTY_HIDDEN_SET, LineChartActiveContext, LineChartDataContext, LineChartSelectionContext, LineChartZoomContext } from "../LineChart/LineChartContext.js";
9
+ import { AreaChartVariantContext } from "./AreaChartContext.js";
10
+ import { areaChartRootClasses } from "./classes.js";
11
+ function AreaChart({ data, series, xKey, variant = 'stacked', activeKey: controlledActiveKey, onActiveKeyChange, filteredKeys, onZoomChange, syncId, syncMethod, className, children, ref, 'data-testid': testId, ...props }) {
12
+ const seriesByKey = useMemo(()=>{
13
+ const map = new Map();
14
+ for (const s of series)map.set(s.key, s);
15
+ return map;
16
+ }, [
17
+ series
18
+ ]);
19
+ useLineChartDataWarnings({
20
+ data,
21
+ series,
22
+ xKey
23
+ });
24
+ const { activeKey, setActiveKey } = useLineChartActiveKey({
25
+ controlledActiveKey,
26
+ onActiveKeyChange,
27
+ seriesByKey
28
+ });
29
+ const onZoomChangeRef = useRef(onZoomChange);
30
+ onZoomChangeRef.current = onZoomChange;
31
+ const emitZoom = useCallback((range)=>{
32
+ onZoomChangeRef.current?.(range);
33
+ }, []);
34
+ const zoom = useLineChartZoomState({
35
+ data,
36
+ xKey,
37
+ onZoomChangeRef
38
+ });
39
+ const hiddenSet = useMemo(()=>{
40
+ if (!filteredKeys?.length) return EMPTY_HIDDEN_SET;
41
+ const set = new Set();
42
+ for (const key of filteredKeys)if (seriesByKey.has(key)) set.add(key);
43
+ return set.size > 0 ? set : EMPTY_HIDDEN_SET;
44
+ }, [
45
+ filteredKeys,
46
+ seriesByKey
47
+ ]);
48
+ const dataValue = useMemo(()=>({
49
+ data,
50
+ series,
51
+ seriesByKey,
52
+ xKey,
53
+ hiddenSet,
54
+ setActiveKey,
55
+ emitZoom,
56
+ syncId,
57
+ syncMethod
58
+ }), [
59
+ data,
60
+ series,
61
+ seriesByKey,
62
+ xKey,
63
+ hiddenSet,
64
+ setActiveKey,
65
+ emitZoom,
66
+ syncId,
67
+ syncMethod
68
+ ]);
69
+ const activeKeyContextValue = useMemo(()=>({
70
+ activeKey
71
+ }), [
72
+ activeKey
73
+ ]);
74
+ const selectionValue = useMemo(()=>({
75
+ hiddenSet
76
+ }), [
77
+ hiddenSet
78
+ ]);
79
+ const rootRef = useRef(null);
80
+ const setRootRef = useCallback((node)=>{
81
+ rootRef.current = node;
82
+ if ('function' == typeof ref) ref(node);
83
+ else if (ref) ref.current = node;
84
+ }, [
85
+ ref
86
+ ]);
87
+ const { enabled: zoomEnabled, drag: zoomDrag, pending: zoomPending, registerEnabled, startDrag, updateDrag, endDrag, cancelDrag, confirmZoom, cancelPending } = zoom;
88
+ const zoomContextValue = useMemo(()=>({
89
+ enabled: zoomEnabled,
90
+ drag: zoomDrag,
91
+ pending: zoomPending,
92
+ rootRef,
93
+ registerEnabled,
94
+ startDrag,
95
+ updateDrag,
96
+ endDrag,
97
+ cancelDrag,
98
+ confirmZoom,
99
+ cancelPending
100
+ }), [
101
+ zoomEnabled,
102
+ zoomDrag,
103
+ zoomPending,
104
+ registerEnabled,
105
+ startDrag,
106
+ updateDrag,
107
+ endDrag,
108
+ cancelDrag,
109
+ confirmZoom,
110
+ cancelPending
111
+ ]);
112
+ return /*#__PURE__*/ jsx(LineChartDataContext.Provider, {
113
+ value: dataValue,
114
+ children: /*#__PURE__*/ jsx(LineChartActiveContext.Provider, {
115
+ value: activeKeyContextValue,
116
+ children: /*#__PURE__*/ jsx(LineChartSelectionContext.Provider, {
117
+ value: selectionValue,
118
+ children: /*#__PURE__*/ jsx(LineChartZoomContext.Provider, {
119
+ value: zoomContextValue,
120
+ children: /*#__PURE__*/ jsx(AreaChartVariantContext.Provider, {
121
+ value: variant,
122
+ children: /*#__PURE__*/ jsx(TestIdProvider, {
123
+ value: testId,
124
+ children: /*#__PURE__*/ jsx("div", {
125
+ ...props,
126
+ ref: setRootRef,
127
+ "data-slot": "area-chart",
128
+ "data-testid": testId,
129
+ className: cn(areaChartRootClasses, className),
130
+ children: children
131
+ })
132
+ })
133
+ })
134
+ })
135
+ })
136
+ })
137
+ });
138
+ }
139
+ AreaChart.displayName = 'AreaChart';
140
+ export { AreaChart };
@@ -0,0 +1,14 @@
1
+ import { type FC } from 'react';
2
+ export interface AreaChartAreaProps {
3
+ /** Joins to `LineChartSeries.key` from the root `series` prop. */
4
+ seriesKey: string;
5
+ /** Recharts curve type. Defaults to `'monotone'`. */
6
+ curve?: 'linear' | 'monotone';
7
+ /** Force-disable the recharts mount animation. */
8
+ disableAnimation?: boolean;
9
+ /** Recharts pass-through — when `true`, the area bridges `null`/`undefined` gaps. */
10
+ connectNulls?: boolean;
11
+ /** Stroke width override. Defaults to `AREA_STROKE_WIDTH`. */
12
+ strokeWidth?: number;
13
+ }
14
+ export declare const AreaChartArea: FC<AreaChartAreaProps>;
@@ -0,0 +1,53 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { useContext, useEffect } from "react";
3
+ import { Area } from "recharts";
4
+ import { LineChartActiveContext, LineChartDataContext } from "../LineChart/LineChartContext.js";
5
+ import { warnLineChartLine } from "../LineChart/lib/warn.js";
6
+ import { AreaChartVariantContext } from "./AreaChartContext.js";
7
+ import { AREA_ANIMATION_BEGIN, AREA_ANIMATION_DURATION, AREA_FILL_OPACITY, AREA_INACTIVE_OPACITY, AREA_STROKE_FILL, AREA_STROKE_WIDTH, resolveSeriesColor } from "./constants.js";
8
+ const AreaChartArea = ({ seriesKey, curve = 'monotone', disableAnimation = false, connectNulls = false, strokeWidth = AREA_STROKE_WIDTH })=>{
9
+ const dataCtx = useContext(LineChartDataContext);
10
+ const { activeKey } = useContext(LineChartActiveContext);
11
+ const variant = useContext(AreaChartVariantContext);
12
+ const series = dataCtx?.seriesByKey.get(seriesKey);
13
+ const isHidden = dataCtx?.hiddenSet.has(seriesKey) ?? false;
14
+ useEffect(()=>{
15
+ if ('production' === process.env.NODE_ENV) return;
16
+ if (!dataCtx) return;
17
+ if (!series) warnLineChartLine(`\`seriesKey="${seriesKey}"\` does not match any entry in the root \`series\` array. The area will not render. Add the series to the schema or check the key spelling.`);
18
+ }, [
19
+ dataCtx,
20
+ series,
21
+ seriesKey
22
+ ]);
23
+ if (!series || isHidden) return null;
24
+ const stroke = resolveSeriesColor(series.color) ?? AREA_STROKE_FILL.slate;
25
+ const fill = stroke;
26
+ const isActive = activeKey === seriesKey;
27
+ const opacity = null === activeKey || isActive ? 1 : AREA_INACTIVE_OPACITY;
28
+ return /*#__PURE__*/ jsx(Area, {
29
+ dataKey: seriesKey,
30
+ name: series.label,
31
+ type: curve,
32
+ stroke: stroke,
33
+ strokeWidth: strokeWidth,
34
+ strokeLinecap: "round",
35
+ strokeLinejoin: "round",
36
+ fill: fill,
37
+ fillOpacity: AREA_FILL_OPACITY,
38
+ dot: false,
39
+ activeDot: false,
40
+ opacity: opacity,
41
+ connectNulls: connectNulls,
42
+ stackId: 'stacked' === variant ? 'area-stack' : void 0,
43
+ isAnimationActive: disableAnimation ? false : 'auto',
44
+ animationBegin: AREA_ANIMATION_BEGIN,
45
+ animationDuration: AREA_ANIMATION_DURATION,
46
+ animationEasing: "ease-out",
47
+ "data-slot": "area-chart-area",
48
+ "data-key": seriesKey,
49
+ "data-active": isActive ? 'true' : void 0
50
+ });
51
+ };
52
+ AreaChartArea.displayName = 'AreaChartArea';
53
+ export { AreaChartArea };
@@ -0,0 +1,9 @@
1
+ import { type FC, type HTMLAttributes, type ReactNode, type Ref } from 'react';
2
+ export interface AreaChartBodyProps extends HTMLAttributes<HTMLDivElement> {
3
+ ref?: Ref<HTMLDivElement>;
4
+ /** Recharts subcomponents — `<XAxis>`, `<YAxis>`, `<CartesianGrid>`, `<Area>`, `<Tooltip>`, `<Brush>`. */
5
+ children?: ReactNode;
6
+ /** Body height passed to recharts' `<ResponsiveContainer>`. */
7
+ height?: number;
8
+ }
9
+ export declare const AreaChartBody: FC<AreaChartBodyProps>;
@@ -0,0 +1,66 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { useCallback, useContext } from "react";
3
+ import { AreaChart, ResponsiveContainer } from "recharts";
4
+ import { cn } from "../../../utils/cn.js";
5
+ import { useTestId } from "../../../utils/testId.js";
6
+ import { LineChartDataContext, LineChartZoomContext } from "../LineChart/LineChartContext.js";
7
+ import { areaChartBodyClasses, areaChartBodyZoomEnabledClasses } from "./classes.js";
8
+ import { AREA_CARD_HEIGHT, AREA_DEFAULT_BODY_MARGIN, AREA_HEADER_HEIGHT } from "./constants.js";
9
+ const DEFAULT_BODY_HEIGHT = AREA_CARD_HEIGHT - AREA_HEADER_HEIGHT;
10
+ const toTooltipIndex = (value)=>{
11
+ if ('number' == typeof value) return Number.isFinite(value) ? value : null;
12
+ if ('string' == typeof value) {
13
+ const parsed = Number(value);
14
+ return Number.isFinite(parsed) ? parsed : null;
15
+ }
16
+ return null;
17
+ };
18
+ const AreaChartBody = ({ height = DEFAULT_BODY_HEIGHT, className, ref, children, ...props })=>{
19
+ const testId = useTestId('body');
20
+ const dataCtx = useContext(LineChartDataContext);
21
+ const zoomCtx = useContext(LineChartZoomContext);
22
+ const isZoomEnabled = zoomCtx?.enabled ?? false;
23
+ const isZoomDragging = zoomCtx?.drag != null;
24
+ const handleMouseDown = useCallback((state, event)=>{
25
+ if (!zoomCtx?.enabled) return;
26
+ const index = toTooltipIndex(state.activeTooltipIndex);
27
+ if (null === index) return;
28
+ event.preventDefault();
29
+ zoomCtx.startDrag(index, event.clientX, event.clientY);
30
+ }, [
31
+ zoomCtx
32
+ ]);
33
+ const handleMouseMove = useCallback((state, event)=>{
34
+ if (!zoomCtx?.drag) return;
35
+ const next = toTooltipIndex(state.activeTooltipIndex);
36
+ if (null === next) return;
37
+ zoomCtx.updateDrag(next, event.clientX, event.clientY);
38
+ }, [
39
+ zoomCtx
40
+ ]);
41
+ return /*#__PURE__*/ jsx("div", {
42
+ ...props,
43
+ ref: ref,
44
+ "data-slot": "area-chart-body",
45
+ "data-testid": testId,
46
+ "aria-hidden": "true",
47
+ "data-zoom-active": isZoomDragging ? 'true' : void 0,
48
+ className: cn(areaChartBodyClasses, isZoomEnabled && areaChartBodyZoomEnabledClasses, className),
49
+ children: /*#__PURE__*/ jsx(ResponsiveContainer, {
50
+ width: "100%",
51
+ height: height,
52
+ children: /*#__PURE__*/ jsx(AreaChart, {
53
+ data: dataCtx?.data ?? [],
54
+ margin: AREA_DEFAULT_BODY_MARGIN,
55
+ accessibilityLayer: false,
56
+ syncId: dataCtx?.syncId,
57
+ syncMethod: dataCtx?.syncMethod,
58
+ onMouseDown: handleMouseDown,
59
+ onMouseMove: handleMouseMove,
60
+ children: children
61
+ })
62
+ })
63
+ });
64
+ };
65
+ AreaChartBody.displayName = 'AreaChartBody';
66
+ export { AreaChartBody };
@@ -0,0 +1,2 @@
1
+ export type AreaChartVariant = 'stacked' | 'standard';
2
+ export declare const AreaChartVariantContext: import("react").Context<AreaChartVariant>;
@@ -0,0 +1,3 @@
1
+ import { createContext } from "react";
2
+ const AreaChartVariantContext = createContext('stacked');
3
+ export { AreaChartVariantContext };
@@ -0,0 +1 @@
1
+ export { lineChartBodyClasses as areaChartBodyClasses, lineChartBodyZoomEnabledClasses as areaChartBodyZoomEnabledClasses, lineChartRootClasses as areaChartRootClasses, } from '../LineChart/classes';
@@ -0,0 +1 @@
1
+ export { lineChartBodyClasses as areaChartBodyClasses, lineChartBodyZoomEnabledClasses as areaChartBodyZoomEnabledClasses, lineChartRootClasses as areaChartRootClasses } from "../LineChart/classes.js";
@@ -0,0 +1,4 @@
1
+ export { LINE_ANIMATION_BEGIN as AREA_ANIMATION_BEGIN, LINE_ANIMATION_DURATION as AREA_ANIMATION_DURATION, LINE_CARD_HEIGHT as AREA_CARD_HEIGHT, LINE_DEFAULT_BODY_MARGIN as AREA_DEFAULT_BODY_MARGIN, LINE_HEADER_HEIGHT as AREA_HEADER_HEIGHT, LINE_INACTIVE_OPACITY as AREA_INACTIVE_OPACITY, LINE_STROKE_WIDTH as AREA_STROKE_WIDTH, } from '../LineChart/constants';
2
+ export { CHART_PALETTE_FILL as AREA_STROKE_FILL, resolveChartColor as resolveSeriesColor, } from '../lib/chartPalette';
3
+ /** 20% fill opacity per Figma spec — semi-transparent bands. */
4
+ export declare const AREA_FILL_OPACITY = 0.2;
@@ -0,0 +1,4 @@
1
+ const AREA_FILL_OPACITY = 0.2;
2
+ export { LINE_ANIMATION_BEGIN as AREA_ANIMATION_BEGIN, LINE_ANIMATION_DURATION as AREA_ANIMATION_DURATION, LINE_CARD_HEIGHT as AREA_CARD_HEIGHT, LINE_DEFAULT_BODY_MARGIN as AREA_DEFAULT_BODY_MARGIN, LINE_HEADER_HEIGHT as AREA_HEADER_HEIGHT, LINE_INACTIVE_OPACITY as AREA_INACTIVE_OPACITY, LINE_STROKE_WIDTH as AREA_STROKE_WIDTH } from "../LineChart/constants.js";
3
+ export { CHART_PALETTE_FILL as AREA_STROKE_FILL, resolveChartColor as resolveSeriesColor } from "../lib/chartPalette.js";
4
+ export { AREA_FILL_OPACITY };
@@ -0,0 +1,4 @@
1
+ export { AreaChart, type AreaChartProps } from './AreaChart';
2
+ export { AreaChartArea, type AreaChartAreaProps } from './AreaChartArea';
3
+ export { AreaChartBody, type AreaChartBodyProps } from './AreaChartBody';
4
+ export type { AreaChartVariant } from './AreaChartContext';
@@ -0,0 +1,3 @@
1
+ export { AreaChart } from "./AreaChart.js";
2
+ export { AreaChartArea } from "./AreaChartArea.js";
3
+ export { AreaChartBody } from "./AreaChartBody.js";
@@ -1,3 +1,4 @@
1
+ export { AreaChart, AreaChartArea, type AreaChartAreaProps, AreaChartBody, type AreaChartBodyProps, type AreaChartProps, type AreaChartVariant, } from './AreaChart';
1
2
  export { BarList, BarListBar, type BarListBarProps, BarListItem, type BarListItemProps, BarListLabel, type BarListLabelProps, BarListPercent, type BarListPercentProps, type BarListProps, BarListSkeleton, type BarListSkeletonProps, BarListValue, type BarListValueProps, } from './BarList';
2
3
  export { Chart, ChartActions, type ChartActionsProps, ChartEmpty, type ChartEmptyProps, ChartHeader, type ChartHeaderProps, type ChartProps, ChartTitle, type ChartTitleProps, } from './Chart';
3
4
  export { HorizontalBarStack, type HorizontalBarStackDatum, type HorizontalBarStackProps, HorizontalBarStackSkeleton, type HorizontalBarStackSkeletonProps, } from './HorizontalBarStack';
@@ -1,3 +1,4 @@
1
+ export { AreaChart, AreaChartArea, AreaChartBody } from "./AreaChart/index.js";
1
2
  export { BarList, BarListBar, BarListItem, BarListLabel, BarListPercent, BarListSkeleton, BarListValue } from "./BarList/index.js";
2
3
  export { Chart, ChartActions, ChartEmpty, ChartHeader, ChartTitle } from "./Chart/index.js";
3
4
  export { HorizontalBarStack, HorizontalBarStackSkeleton } from "./HorizontalBarStack/index.js";
@@ -1,6 +1,6 @@
1
1
  {
2
- "version": "1.12.1",
3
- "generatedAt": "2026-09-01T13:07:47.791Z",
2
+ "version": "1.12.2",
3
+ "generatedAt": "2026-09-02T18:47:00.060Z",
4
4
  "components": [
5
5
  {
6
6
  "name": "Accordion",
@@ -61006,6 +61006,645 @@
61006
61006
  "props": [],
61007
61007
  "variants": [],
61008
61008
  "subComponents": [
61009
+ {
61010
+ "name": "AreaChartArea",
61011
+ "props": [
61012
+ {
61013
+ "name": "seriesKey",
61014
+ "type": "string",
61015
+ "required": true,
61016
+ "description": "Joins to `LineChartSeries.key` from the root `series` prop."
61017
+ },
61018
+ {
61019
+ "name": "curve",
61020
+ "type": "\"linear\" | \"monotone\" | undefined",
61021
+ "required": false,
61022
+ "description": "Recharts curve type. Defaults to `'monotone'`."
61023
+ },
61024
+ {
61025
+ "name": "disableAnimation",
61026
+ "type": "boolean | undefined",
61027
+ "required": false,
61028
+ "description": "Force-disable the recharts mount animation."
61029
+ },
61030
+ {
61031
+ "name": "connectNulls",
61032
+ "type": "boolean | undefined",
61033
+ "required": false,
61034
+ "description": "Recharts pass-through — when `true`, the area bridges `null`/`undefined` gaps."
61035
+ },
61036
+ {
61037
+ "name": "strokeWidth",
61038
+ "type": "number | undefined",
61039
+ "required": false,
61040
+ "description": "Stroke width override. Defaults to `AREA_STROKE_WIDTH`."
61041
+ }
61042
+ ]
61043
+ },
61044
+ {
61045
+ "name": "AreaChartBody",
61046
+ "props": [
61047
+ {
61048
+ "name": "height",
61049
+ "type": "number | undefined",
61050
+ "required": false,
61051
+ "description": "Body height passed to recharts' `<ResponsiveContainer>`."
61052
+ },
61053
+ {
61054
+ "name": "defaultChecked",
61055
+ "type": "boolean | undefined",
61056
+ "required": false
61057
+ },
61058
+ {
61059
+ "name": "defaultValue",
61060
+ "type": "string | number | readonly string[] | undefined",
61061
+ "required": false
61062
+ },
61063
+ {
61064
+ "name": "suppressContentEditableWarning",
61065
+ "type": "boolean | undefined",
61066
+ "required": false
61067
+ },
61068
+ {
61069
+ "name": "suppressHydrationWarning",
61070
+ "type": "boolean | undefined",
61071
+ "required": false
61072
+ },
61073
+ {
61074
+ "name": "accessKey",
61075
+ "type": "string | undefined",
61076
+ "required": false
61077
+ },
61078
+ {
61079
+ "name": "autoCapitalize",
61080
+ "type": "\"off\" | \"none\" | \"on\" | \"sentences\" | \"words\" | \"characters\" | (string & {}) | undefined",
61081
+ "required": false
61082
+ },
61083
+ {
61084
+ "name": "autoFocus",
61085
+ "type": "boolean | undefined",
61086
+ "required": false
61087
+ },
61088
+ {
61089
+ "name": "contentEditable",
61090
+ "type": "Booleanish | \"inherit\" | \"plaintext-only\" | undefined",
61091
+ "required": false
61092
+ },
61093
+ {
61094
+ "name": "contextMenu",
61095
+ "type": "string | undefined",
61096
+ "required": false
61097
+ },
61098
+ {
61099
+ "name": "dir",
61100
+ "type": "string | undefined",
61101
+ "required": false
61102
+ },
61103
+ {
61104
+ "name": "draggable",
61105
+ "type": "Booleanish | undefined",
61106
+ "required": false
61107
+ },
61108
+ {
61109
+ "name": "enterKeyHint",
61110
+ "type": "\"enter\" | \"done\" | \"go\" | \"next\" | \"previous\" | \"search\" | \"send\" | undefined",
61111
+ "required": false
61112
+ },
61113
+ {
61114
+ "name": "hidden",
61115
+ "type": "boolean | undefined",
61116
+ "required": false
61117
+ },
61118
+ {
61119
+ "name": "id",
61120
+ "type": "string | undefined",
61121
+ "required": false
61122
+ },
61123
+ {
61124
+ "name": "lang",
61125
+ "type": "string | undefined",
61126
+ "required": false
61127
+ },
61128
+ {
61129
+ "name": "nonce",
61130
+ "type": "string | undefined",
61131
+ "required": false
61132
+ },
61133
+ {
61134
+ "name": "slot",
61135
+ "type": "string | undefined",
61136
+ "required": false
61137
+ },
61138
+ {
61139
+ "name": "spellCheck",
61140
+ "type": "Booleanish | undefined",
61141
+ "required": false
61142
+ },
61143
+ {
61144
+ "name": "tabIndex",
61145
+ "type": "number | undefined",
61146
+ "required": false
61147
+ },
61148
+ {
61149
+ "name": "title",
61150
+ "type": "string | undefined",
61151
+ "required": false
61152
+ },
61153
+ {
61154
+ "name": "translate",
61155
+ "type": "\"yes\" | \"no\" | undefined",
61156
+ "required": false
61157
+ },
61158
+ {
61159
+ "name": "radioGroup",
61160
+ "type": "string | undefined",
61161
+ "required": false
61162
+ },
61163
+ {
61164
+ "name": "role",
61165
+ "type": "AriaRole | undefined",
61166
+ "required": false
61167
+ },
61168
+ {
61169
+ "name": "about",
61170
+ "type": "string | undefined",
61171
+ "required": false
61172
+ },
61173
+ {
61174
+ "name": "content",
61175
+ "type": "string | undefined",
61176
+ "required": false
61177
+ },
61178
+ {
61179
+ "name": "datatype",
61180
+ "type": "string | undefined",
61181
+ "required": false
61182
+ },
61183
+ {
61184
+ "name": "inlist",
61185
+ "type": "any",
61186
+ "required": false
61187
+ },
61188
+ {
61189
+ "name": "prefix",
61190
+ "type": "string | undefined",
61191
+ "required": false
61192
+ },
61193
+ {
61194
+ "name": "property",
61195
+ "type": "string | undefined",
61196
+ "required": false
61197
+ },
61198
+ {
61199
+ "name": "rel",
61200
+ "type": "string | undefined",
61201
+ "required": false
61202
+ },
61203
+ {
61204
+ "name": "resource",
61205
+ "type": "string | undefined",
61206
+ "required": false
61207
+ },
61208
+ {
61209
+ "name": "rev",
61210
+ "type": "string | undefined",
61211
+ "required": false
61212
+ },
61213
+ {
61214
+ "name": "typeof",
61215
+ "type": "string | undefined",
61216
+ "required": false
61217
+ },
61218
+ {
61219
+ "name": "vocab",
61220
+ "type": "string | undefined",
61221
+ "required": false
61222
+ },
61223
+ {
61224
+ "name": "autoCorrect",
61225
+ "type": "string | undefined",
61226
+ "required": false
61227
+ },
61228
+ {
61229
+ "name": "autoSave",
61230
+ "type": "string | undefined",
61231
+ "required": false
61232
+ },
61233
+ {
61234
+ "name": "color",
61235
+ "type": "string | undefined",
61236
+ "required": false
61237
+ },
61238
+ {
61239
+ "name": "itemProp",
61240
+ "type": "string | undefined",
61241
+ "required": false
61242
+ },
61243
+ {
61244
+ "name": "itemScope",
61245
+ "type": "boolean | undefined",
61246
+ "required": false
61247
+ },
61248
+ {
61249
+ "name": "itemType",
61250
+ "type": "string | undefined",
61251
+ "required": false
61252
+ },
61253
+ {
61254
+ "name": "itemID",
61255
+ "type": "string | undefined",
61256
+ "required": false
61257
+ },
61258
+ {
61259
+ "name": "itemRef",
61260
+ "type": "string | undefined",
61261
+ "required": false
61262
+ },
61263
+ {
61264
+ "name": "results",
61265
+ "type": "number | undefined",
61266
+ "required": false
61267
+ },
61268
+ {
61269
+ "name": "security",
61270
+ "type": "string | undefined",
61271
+ "required": false
61272
+ },
61273
+ {
61274
+ "name": "unselectable",
61275
+ "type": "\"off\" | \"on\" | undefined",
61276
+ "required": false
61277
+ },
61278
+ {
61279
+ "name": "popover",
61280
+ "type": "\"\" | \"auto\" | \"manual\" | \"hint\" | undefined",
61281
+ "required": false
61282
+ },
61283
+ {
61284
+ "name": "popoverTargetAction",
61285
+ "type": "\"toggle\" | \"show\" | \"hide\" | undefined",
61286
+ "required": false
61287
+ },
61288
+ {
61289
+ "name": "popoverTarget",
61290
+ "type": "string | undefined",
61291
+ "required": false
61292
+ },
61293
+ {
61294
+ "name": "inert",
61295
+ "type": "boolean | undefined",
61296
+ "required": false,
61297
+ "description": "@see {@link https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/inert}"
61298
+ },
61299
+ {
61300
+ "name": "inputMode",
61301
+ "type": "\"none\" | \"search\" | \"text\" | \"tel\" | \"url\" | \"email\" | \"numeric\" | \"decimal\" | undefined",
61302
+ "required": false,
61303
+ "description": "Hints at the type of data that might be entered by the user while editing the element or its contents"
61304
+ },
61305
+ {
61306
+ "name": "is",
61307
+ "type": "string | undefined",
61308
+ "required": false,
61309
+ "description": "Specify that a standard HTML element should behave like a defined custom built-in element"
61310
+ },
61311
+ {
61312
+ "name": "exportparts",
61313
+ "type": "string | undefined",
61314
+ "required": false,
61315
+ "description": "@see {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/exportparts}"
61316
+ },
61317
+ {
61318
+ "name": "part",
61319
+ "type": "string | undefined",
61320
+ "required": false,
61321
+ "description": "@see {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/part}"
61322
+ }
61323
+ ]
61324
+ },
61325
+ {
61326
+ "name": "AreaChart",
61327
+ "props": [
61328
+ {
61329
+ "name": "data",
61330
+ "type": "T[]",
61331
+ "required": true,
61332
+ "description": "Long-form data array, one entry per X position."
61333
+ },
61334
+ {
61335
+ "name": "series",
61336
+ "type": "LineChartSeries<Extract<keyof T, string>>[]",
61337
+ "required": true,
61338
+ "description": "Schema describing each area drawn from `data`."
61339
+ },
61340
+ {
61341
+ "name": "xKey",
61342
+ "type": "Extract<keyof T, string>",
61343
+ "required": true,
61344
+ "description": "Key on each datum used as the X-axis value."
61345
+ },
61346
+ {
61347
+ "name": "variant",
61348
+ "type": "AreaChartVariant | undefined",
61349
+ "required": false,
61350
+ "description": "Area chart variant.\n- `'stacked'` (default): series stack cumulatively — each band starts where the previous ends.\n- `'standard'`: series overlap from the baseline with transparency."
61351
+ },
61352
+ {
61353
+ "name": "activeKey",
61354
+ "type": "string | null | undefined",
61355
+ "required": false,
61356
+ "description": "Controlled hover key — pass alongside `onActiveKeyChange` for cross-chart sync."
61357
+ },
61358
+ {
61359
+ "name": "filteredKeys",
61360
+ "type": "string[] | undefined",
61361
+ "required": false,
61362
+ "description": "Controlled set of `series.key` values to hide from the plot."
61363
+ },
61364
+ {
61365
+ "name": "syncId",
61366
+ "type": "string | number | undefined",
61367
+ "required": false,
61368
+ "description": "Charts that share a `syncId` synchronise their tooltip cursor."
61369
+ },
61370
+ {
61371
+ "name": "syncMethod",
61372
+ "type": "complex",
61373
+ "required": false,
61374
+ "description": "How sibling `syncId` charts match X positions."
61375
+ },
61376
+ {
61377
+ "name": "defaultChecked",
61378
+ "type": "boolean | undefined",
61379
+ "required": false
61380
+ },
61381
+ {
61382
+ "name": "defaultValue",
61383
+ "type": "string | number | readonly string[] | undefined",
61384
+ "required": false
61385
+ },
61386
+ {
61387
+ "name": "suppressContentEditableWarning",
61388
+ "type": "boolean | undefined",
61389
+ "required": false
61390
+ },
61391
+ {
61392
+ "name": "suppressHydrationWarning",
61393
+ "type": "boolean | undefined",
61394
+ "required": false
61395
+ },
61396
+ {
61397
+ "name": "accessKey",
61398
+ "type": "string | undefined",
61399
+ "required": false
61400
+ },
61401
+ {
61402
+ "name": "autoCapitalize",
61403
+ "type": "\"off\" | \"none\" | \"on\" | \"sentences\" | \"words\" | \"characters\" | (string & {}) | undefined",
61404
+ "required": false
61405
+ },
61406
+ {
61407
+ "name": "autoFocus",
61408
+ "type": "boolean | undefined",
61409
+ "required": false
61410
+ },
61411
+ {
61412
+ "name": "contentEditable",
61413
+ "type": "Booleanish | \"inherit\" | \"plaintext-only\" | undefined",
61414
+ "required": false
61415
+ },
61416
+ {
61417
+ "name": "contextMenu",
61418
+ "type": "string | undefined",
61419
+ "required": false
61420
+ },
61421
+ {
61422
+ "name": "dir",
61423
+ "type": "string | undefined",
61424
+ "required": false
61425
+ },
61426
+ {
61427
+ "name": "draggable",
61428
+ "type": "Booleanish | undefined",
61429
+ "required": false
61430
+ },
61431
+ {
61432
+ "name": "enterKeyHint",
61433
+ "type": "\"enter\" | \"done\" | \"go\" | \"next\" | \"previous\" | \"search\" | \"send\" | undefined",
61434
+ "required": false
61435
+ },
61436
+ {
61437
+ "name": "hidden",
61438
+ "type": "boolean | undefined",
61439
+ "required": false
61440
+ },
61441
+ {
61442
+ "name": "id",
61443
+ "type": "string | undefined",
61444
+ "required": false
61445
+ },
61446
+ {
61447
+ "name": "lang",
61448
+ "type": "string | undefined",
61449
+ "required": false
61450
+ },
61451
+ {
61452
+ "name": "nonce",
61453
+ "type": "string | undefined",
61454
+ "required": false
61455
+ },
61456
+ {
61457
+ "name": "slot",
61458
+ "type": "string | undefined",
61459
+ "required": false
61460
+ },
61461
+ {
61462
+ "name": "spellCheck",
61463
+ "type": "Booleanish | undefined",
61464
+ "required": false
61465
+ },
61466
+ {
61467
+ "name": "tabIndex",
61468
+ "type": "number | undefined",
61469
+ "required": false
61470
+ },
61471
+ {
61472
+ "name": "title",
61473
+ "type": "string | undefined",
61474
+ "required": false
61475
+ },
61476
+ {
61477
+ "name": "translate",
61478
+ "type": "\"yes\" | \"no\" | undefined",
61479
+ "required": false
61480
+ },
61481
+ {
61482
+ "name": "radioGroup",
61483
+ "type": "string | undefined",
61484
+ "required": false
61485
+ },
61486
+ {
61487
+ "name": "role",
61488
+ "type": "AriaRole | undefined",
61489
+ "required": false
61490
+ },
61491
+ {
61492
+ "name": "about",
61493
+ "type": "string | undefined",
61494
+ "required": false
61495
+ },
61496
+ {
61497
+ "name": "content",
61498
+ "type": "string | undefined",
61499
+ "required": false
61500
+ },
61501
+ {
61502
+ "name": "datatype",
61503
+ "type": "string | undefined",
61504
+ "required": false
61505
+ },
61506
+ {
61507
+ "name": "inlist",
61508
+ "type": "any",
61509
+ "required": false
61510
+ },
61511
+ {
61512
+ "name": "prefix",
61513
+ "type": "string | undefined",
61514
+ "required": false
61515
+ },
61516
+ {
61517
+ "name": "property",
61518
+ "type": "string | undefined",
61519
+ "required": false
61520
+ },
61521
+ {
61522
+ "name": "rel",
61523
+ "type": "string | undefined",
61524
+ "required": false
61525
+ },
61526
+ {
61527
+ "name": "resource",
61528
+ "type": "string | undefined",
61529
+ "required": false
61530
+ },
61531
+ {
61532
+ "name": "rev",
61533
+ "type": "string | undefined",
61534
+ "required": false
61535
+ },
61536
+ {
61537
+ "name": "typeof",
61538
+ "type": "string | undefined",
61539
+ "required": false
61540
+ },
61541
+ {
61542
+ "name": "vocab",
61543
+ "type": "string | undefined",
61544
+ "required": false
61545
+ },
61546
+ {
61547
+ "name": "autoCorrect",
61548
+ "type": "string | undefined",
61549
+ "required": false
61550
+ },
61551
+ {
61552
+ "name": "autoSave",
61553
+ "type": "string | undefined",
61554
+ "required": false
61555
+ },
61556
+ {
61557
+ "name": "color",
61558
+ "type": "string | undefined",
61559
+ "required": false
61560
+ },
61561
+ {
61562
+ "name": "itemProp",
61563
+ "type": "string | undefined",
61564
+ "required": false
61565
+ },
61566
+ {
61567
+ "name": "itemScope",
61568
+ "type": "boolean | undefined",
61569
+ "required": false
61570
+ },
61571
+ {
61572
+ "name": "itemType",
61573
+ "type": "string | undefined",
61574
+ "required": false
61575
+ },
61576
+ {
61577
+ "name": "itemID",
61578
+ "type": "string | undefined",
61579
+ "required": false
61580
+ },
61581
+ {
61582
+ "name": "itemRef",
61583
+ "type": "string | undefined",
61584
+ "required": false
61585
+ },
61586
+ {
61587
+ "name": "results",
61588
+ "type": "number | undefined",
61589
+ "required": false
61590
+ },
61591
+ {
61592
+ "name": "security",
61593
+ "type": "string | undefined",
61594
+ "required": false
61595
+ },
61596
+ {
61597
+ "name": "unselectable",
61598
+ "type": "\"off\" | \"on\" | undefined",
61599
+ "required": false
61600
+ },
61601
+ {
61602
+ "name": "popover",
61603
+ "type": "\"\" | \"auto\" | \"manual\" | \"hint\" | undefined",
61604
+ "required": false
61605
+ },
61606
+ {
61607
+ "name": "popoverTargetAction",
61608
+ "type": "\"toggle\" | \"show\" | \"hide\" | undefined",
61609
+ "required": false
61610
+ },
61611
+ {
61612
+ "name": "popoverTarget",
61613
+ "type": "string | undefined",
61614
+ "required": false
61615
+ },
61616
+ {
61617
+ "name": "inert",
61618
+ "type": "boolean | undefined",
61619
+ "required": false,
61620
+ "description": "@see {@link https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/inert}"
61621
+ },
61622
+ {
61623
+ "name": "inputMode",
61624
+ "type": "\"none\" | \"search\" | \"text\" | \"tel\" | \"url\" | \"email\" | \"numeric\" | \"decimal\" | undefined",
61625
+ "required": false,
61626
+ "description": "Hints at the type of data that might be entered by the user while editing the element or its contents"
61627
+ },
61628
+ {
61629
+ "name": "is",
61630
+ "type": "string | undefined",
61631
+ "required": false,
61632
+ "description": "Specify that a standard HTML element should behave like a defined custom built-in element"
61633
+ },
61634
+ {
61635
+ "name": "exportparts",
61636
+ "type": "string | undefined",
61637
+ "required": false,
61638
+ "description": "@see {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/exportparts}"
61639
+ },
61640
+ {
61641
+ "name": "part",
61642
+ "type": "string | undefined",
61643
+ "required": false,
61644
+ "description": "@see {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/part}"
61645
+ }
61646
+ ]
61647
+ },
61009
61648
  {
61010
61649
  "name": "BarListBar",
61011
61650
  "props": [
@@ -65524,7 +66163,7 @@
65524
66163
  "props": [
65525
66164
  {
65526
66165
  "name": "color",
65527
- "type": "ChartColor | (string & {}) | undefined",
66166
+ "type": "(string & {}) | ChartColor | undefined",
65528
66167
  "required": false,
65529
66168
  "description": "Palette token or CSS colour. Omitted → no inline fill (lets a `className` bg win)."
65530
66169
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wallarm-org/design-system",
3
- "version": "1.12.2",
3
+ "version": "1.13.0",
4
4
  "description": "Core design system library with React components and Storybook documentation",
5
5
  "publishConfig": {
6
6
  "access": "public",