@gravitee/graphene-charts 0.0.0-add-filter-icon.51bc026
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/LICENSE +202 -0
- package/USAGE_GUIDE.md +479 -0
- package/dist/base/ChartCard/ChartCard.d.ts +14 -0
- package/dist/base/ChartCard/ChartCard.d.ts.map +1 -0
- package/dist/base/ChartCard/index.d.ts +3 -0
- package/dist/base/ChartCard/index.d.ts.map +1 -0
- package/dist/base/ChartContainer/ChartContainer.d.ts +23 -0
- package/dist/base/ChartContainer/ChartContainer.d.ts.map +1 -0
- package/dist/base/ChartContainer/index.d.ts +3 -0
- package/dist/base/ChartContainer/index.d.ts.map +1 -0
- package/dist/base/ChartLegend/ChartLegend.d.ts +30 -0
- package/dist/base/ChartLegend/ChartLegend.d.ts.map +1 -0
- package/dist/base/ChartLegend/index.d.ts +3 -0
- package/dist/base/ChartLegend/index.d.ts.map +1 -0
- package/dist/base/ChartTooltip/ChartTooltip.d.ts +43 -0
- package/dist/base/ChartTooltip/ChartTooltip.d.ts.map +1 -0
- package/dist/base/ChartTooltip/index.d.ts +3 -0
- package/dist/base/ChartTooltip/index.d.ts.map +1 -0
- package/dist/charts/AreaChart/AreaChart.d.ts +34 -0
- package/dist/charts/AreaChart/AreaChart.d.ts.map +1 -0
- package/dist/charts/AreaChart/index.d.ts +3 -0
- package/dist/charts/AreaChart/index.d.ts.map +1 -0
- package/dist/charts/BarChart/BarChart.d.ts +32 -0
- package/dist/charts/BarChart/BarChart.d.ts.map +1 -0
- package/dist/charts/BarChart/index.d.ts +3 -0
- package/dist/charts/BarChart/index.d.ts.map +1 -0
- package/dist/charts/DoughnutChart/DoughnutChart.d.ts +51 -0
- package/dist/charts/DoughnutChart/DoughnutChart.d.ts.map +1 -0
- package/dist/charts/DoughnutChart/index.d.ts +3 -0
- package/dist/charts/DoughnutChart/index.d.ts.map +1 -0
- package/dist/charts/LineChart/LineChart.d.ts +29 -0
- package/dist/charts/LineChart/LineChart.d.ts.map +1 -0
- package/dist/charts/LineChart/index.d.ts +3 -0
- package/dist/charts/LineChart/index.d.ts.map +1 -0
- package/dist/charts/Metric/Metric.d.ts +54 -0
- package/dist/charts/Metric/Metric.d.ts.map +1 -0
- package/dist/charts/Metric/index.d.ts +3 -0
- package/dist/charts/Metric/index.d.ts.map +1 -0
- package/dist/charts/MetricGroup/MetricGroup.d.ts +50 -0
- package/dist/charts/MetricGroup/MetricGroup.d.ts.map +1 -0
- package/dist/charts/MetricGroup/index.d.ts +3 -0
- package/dist/charts/MetricGroup/index.d.ts.map +1 -0
- package/dist/dashboard-grid/DashboardGrid.d.ts +5 -0
- package/dist/dashboard-grid/DashboardGrid.d.ts.map +1 -0
- package/dist/dashboard-grid/DashboardWidget.d.ts +36 -0
- package/dist/dashboard-grid/DashboardWidget.d.ts.map +1 -0
- package/dist/dashboard-grid/adapters.d.ts +13 -0
- package/dist/dashboard-grid/adapters.d.ts.map +1 -0
- package/dist/dashboard-grid/index.d.ts +7 -0
- package/dist/dashboard-grid/index.d.ts.map +1 -0
- package/dist/dashboard-grid/index.js +129 -0
- package/dist/dashboard-grid/styles.css +190 -0
- package/dist/dashboard-grid/types.d.ts +67 -0
- package/dist/dashboard-grid/types.d.ts.map +1 -0
- package/dist/index.d.ts +25 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2310 -0
- package/dist/lib/inferDataKeys.d.ts +8 -0
- package/dist/lib/inferDataKeys.d.ts.map +1 -0
- package/dist/lib/resolveChartState.d.ts +8 -0
- package/dist/lib/resolveChartState.d.ts.map +1 -0
- package/dist/lib/useContainerSize.d.ts +16 -0
- package/dist/lib/useContainerSize.d.ts.map +1 -0
- package/dist/lib/utils.d.ts +2 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/dist/primitives/AreaChartSkeleton.d.ts +8 -0
- package/dist/primitives/AreaChartSkeleton.d.ts.map +1 -0
- package/dist/primitives/Axis.d.ts +35 -0
- package/dist/primitives/Axis.d.ts.map +1 -0
- package/dist/primitives/BarChartSkeleton.d.ts +8 -0
- package/dist/primitives/BarChartSkeleton.d.ts.map +1 -0
- package/dist/primitives/CartesianChart.d.ts +32 -0
- package/dist/primitives/CartesianChart.d.ts.map +1 -0
- package/dist/primitives/CartesianChartSkeleton.d.ts +13 -0
- package/dist/primitives/CartesianChartSkeleton.d.ts.map +1 -0
- package/dist/primitives/CartesianContext.d.ts +50 -0
- package/dist/primitives/CartesianContext.d.ts.map +1 -0
- package/dist/primitives/ChartEmptyState.d.ts +8 -0
- package/dist/primitives/ChartEmptyState.d.ts.map +1 -0
- package/dist/primitives/ChartSlots.d.ts +49 -0
- package/dist/primitives/ChartSlots.d.ts.map +1 -0
- package/dist/primitives/DoughnutChartSkeleton.d.ts +7 -0
- package/dist/primitives/DoughnutChartSkeleton.d.ts.map +1 -0
- package/dist/primitives/Grid.d.ts +23 -0
- package/dist/primitives/Grid.d.ts.map +1 -0
- package/dist/primitives/LineChartSkeleton.d.ts +8 -0
- package/dist/primitives/LineChartSkeleton.d.ts.map +1 -0
- package/dist/primitives/SkeletonBlock.d.ts +4 -0
- package/dist/primitives/SkeletonBlock.d.ts.map +1 -0
- package/dist/primitives/index.d.ts +36 -0
- package/dist/primitives/index.d.ts.map +1 -0
- package/dist/primitives/roundedRect.d.ts +18 -0
- package/dist/primitives/roundedRect.d.ts.map +1 -0
- package/dist/primitives/useChartDimensions.d.ts +18 -0
- package/dist/primitives/useChartDimensions.d.ts.map +1 -0
- package/dist/primitives/useResolvedCssLength.d.ts +16 -0
- package/dist/primitives/useResolvedCssLength.d.ts.map +1 -0
- package/dist/primitives/useTooltipState.d.ts +40 -0
- package/dist/primitives/useTooltipState.d.ts.map +1 -0
- package/dist/series/AreaSeries.d.ts +15 -0
- package/dist/series/AreaSeries.d.ts.map +1 -0
- package/dist/series/BarSeries.d.ts +11 -0
- package/dist/series/BarSeries.d.ts.map +1 -0
- package/dist/series/LineSeries.d.ts +14 -0
- package/dist/series/LineSeries.d.ts.map +1 -0
- package/dist/series/curves.d.ts +7 -0
- package/dist/series/curves.d.ts.map +1 -0
- package/dist/series/index.d.ts +8 -0
- package/dist/series/index.d.ts.map +1 -0
- package/dist/types/index.d.ts +48 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/utils-ySutDPYb.js +2 -0
- package/package.json +90 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface ChartCardProps extends React.ComponentProps<'div'> {
|
|
3
|
+
/** Widget title. */
|
|
4
|
+
readonly title: string;
|
|
5
|
+
/**
|
|
6
|
+
* Optional subtitle displayed below the title.
|
|
7
|
+
* Truncated to one line with a native `title` attribute for the full text on hover.
|
|
8
|
+
*/
|
|
9
|
+
readonly description?: string;
|
|
10
|
+
/** The visualization content (chart, metric, or any custom content). */
|
|
11
|
+
readonly children: React.ReactNode;
|
|
12
|
+
}
|
|
13
|
+
export declare function ChartCard({ title, description, children, className, ...rest }: ChartCardProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
//# sourceMappingURL=ChartCard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChartCard.d.ts","sourceRoot":"","sources":["../../../src/base/ChartCard/ChartCard.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,MAAM,WAAW,cAAe,SAAQ,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC;IACjE,oBAAoB;IACpB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB;;;OAGG;IACH,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,wEAAwE;IACxE,QAAQ,CAAC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CACpC;AAED,wBAAgB,SAAS,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,cAAc,2CAe7F"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/base/ChartCard/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ChartConfig } from '../../types';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
interface ChartContextValue {
|
|
4
|
+
config: ChartConfig;
|
|
5
|
+
id: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function useChartConfig(): ChartContextValue;
|
|
8
|
+
export interface ChartContainerProps extends React.ComponentProps<'div'> {
|
|
9
|
+
config: ChartConfig;
|
|
10
|
+
}
|
|
11
|
+
declare function ChartContainer({ id, config, className, children, style, ...props }: ChartContainerProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
/**
|
|
13
|
+
* Injects CSS vars for each series in the form `--color-{seriesKey}`,
|
|
14
|
+
* scoped to a specific chart id and theme (light / dark). Keys that
|
|
15
|
+
* would collapse to an empty identifier after sanitization are skipped
|
|
16
|
+
* entirely rather than producing invalid `--color-: …` declarations.
|
|
17
|
+
*/
|
|
18
|
+
declare function ChartStyle({ id, config }: {
|
|
19
|
+
id: string;
|
|
20
|
+
config: ChartConfig;
|
|
21
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export { ChartContainer, ChartStyle };
|
|
23
|
+
//# sourceMappingURL=ChartContainer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChartContainer.d.ts","sourceRoot":"","sources":["../../../src/base/ChartContainer/ChartContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAGnE,UAAU,iBAAiB;IACzB,MAAM,EAAE,WAAW,CAAC;IACpB,EAAE,EAAE,MAAM,CAAC;CACZ;AAID,wBAAgB,cAAc,sBAM7B;AAED,MAAM,WAAW,mBAAoB,SAAQ,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC;IACtE,MAAM,EAAE,WAAW,CAAC;CACrB;AA6BD,iBAAS,cAAc,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,mBAAmB,2CAsChG;AAeD;;;;;GAKG;AACH,iBAAS,UAAU,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,WAAW,CAAA;CAAE,2CAmBtE;AAED,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/base/ChartContainer/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAC9E,YAAY,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface ChartLegendItem {
|
|
3
|
+
/** Data key used to resolve config (falls back to value). */
|
|
4
|
+
dataKey?: string;
|
|
5
|
+
/** Display value used to match a series in ChartConfig. */
|
|
6
|
+
value: string;
|
|
7
|
+
/** Optional color override; defaults to the series color from ChartConfig. */
|
|
8
|
+
color?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface ChartLegendContentProps extends React.ComponentProps<'div'> {
|
|
11
|
+
/** Legend payload; injected by the parent chart. */
|
|
12
|
+
items?: ChartLegendItem[];
|
|
13
|
+
/** Hide the small color indicator next to each item. */
|
|
14
|
+
hideIcon?: boolean;
|
|
15
|
+
/** Override the ChartConfig key used to resolve each item's label. */
|
|
16
|
+
nameKey?: string;
|
|
17
|
+
/** Vertical alignment hint passed by the chart so content can self-position. */
|
|
18
|
+
verticalAlign?: 'top' | 'bottom';
|
|
19
|
+
/** Horizontal alignment of legend items. @default 'start' */
|
|
20
|
+
align?: 'start' | 'center' | 'end';
|
|
21
|
+
}
|
|
22
|
+
declare function ChartLegendContent({ items, hideIcon, nameKey, verticalAlign: _verticalAlign, align, className, ...props }: ChartLegendContentProps): import("react/jsx-runtime").JSX.Element | null;
|
|
23
|
+
export interface ChartLegendProps {
|
|
24
|
+
content: React.ReactElement;
|
|
25
|
+
/** Where to render the legend relative to the chart body. Defaults to `'bottom'`. */
|
|
26
|
+
verticalAlign?: 'top' | 'bottom';
|
|
27
|
+
}
|
|
28
|
+
declare function ChartLegend({ content, verticalAlign }: ChartLegendProps): null;
|
|
29
|
+
export { ChartLegend, ChartLegendContent };
|
|
30
|
+
//# sourceMappingURL=ChartLegend.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChartLegend.d.ts","sourceRoot":"","sources":["../../../src/base/ChartLegend/ChartLegend.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,MAAM,WAAW,eAAe;IAC9B,6DAA6D;IAC7D,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,2DAA2D;IAC3D,KAAK,EAAE,MAAM,CAAC;IACd,8EAA8E;IAC9E,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,uBAAwB,SAAQ,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC;IAC1E,oDAAoD;IACpD,KAAK,CAAC,EAAE,eAAe,EAAE,CAAC;IAC1B,wDAAwD;IACxD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,sEAAsE;IACtE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,gFAAgF;IAChF,aAAa,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAC;IACjC,6DAA6D;IAC7D,KAAK,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;CACpC;AAQD,iBAAS,kBAAkB,CAAC,EAC1B,KAAU,EACV,QAAgB,EAChB,OAAO,EACP,aAAa,EAAE,cAAc,EAC7B,KAAe,EACf,SAAS,EACT,GAAG,KAAK,EACT,EAAE,uBAAuB,kDAgCzB;AASD,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,KAAK,CAAC,YAAY,CAAC;IAC5B,qFAAqF;IACrF,aAAa,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAC;CAClC;AAED,iBAAS,WAAW,CAAC,EAAE,OAAO,EAAE,aAAwB,EAAE,EAAE,gBAAgB,QAY3E;AAED,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/base/ChartLegend/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAChE,YAAY,EAAE,uBAAuB,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface ChartTooltipItem {
|
|
3
|
+
/** Key used to resolve series config (falls back to name). */
|
|
4
|
+
dataKey?: string;
|
|
5
|
+
name: string;
|
|
6
|
+
value: number | string;
|
|
7
|
+
/** Optional color override; defaults to the series color from ChartConfig. */
|
|
8
|
+
color?: string;
|
|
9
|
+
/** Optional raw payload for advanced labelFormatter use cases. */
|
|
10
|
+
payload?: Record<string, unknown>;
|
|
11
|
+
}
|
|
12
|
+
export interface ChartTooltipContentProps extends React.ComponentProps<'div'> {
|
|
13
|
+
/** The label shown at the top of the tooltip (usually the x-axis category). */
|
|
14
|
+
label?: string;
|
|
15
|
+
/** Payload of items, one per series. Injected by the parent chart. */
|
|
16
|
+
items?: ChartTooltipItem[];
|
|
17
|
+
/** Whether the tooltip is visible. Injected by the parent chart. */
|
|
18
|
+
active?: boolean;
|
|
19
|
+
/** Hide the top label row. */
|
|
20
|
+
hideLabel?: boolean;
|
|
21
|
+
/** Hide the color indicator next to each item. */
|
|
22
|
+
hideIndicator?: boolean;
|
|
23
|
+
/** Visual style of the indicator next to each item. */
|
|
24
|
+
indicator?: 'dot' | 'line' | 'dashed';
|
|
25
|
+
/** Override the ChartConfig key used to resolve the label. */
|
|
26
|
+
labelKey?: string;
|
|
27
|
+
/** Override the ChartConfig key used to resolve each item's name. */
|
|
28
|
+
nameKey?: string;
|
|
29
|
+
/** Format the top label. */
|
|
30
|
+
labelFormatter?: (label: string, items: ChartTooltipItem[]) => React.ReactNode;
|
|
31
|
+
/** Extra class for the label row. */
|
|
32
|
+
labelClassName?: string;
|
|
33
|
+
/** Format each item's value. Defaults to `.toLocaleString()` for numbers. */
|
|
34
|
+
valueFormatter?: (value: number | string, item: ChartTooltipItem, index: number) => React.ReactNode;
|
|
35
|
+
}
|
|
36
|
+
declare function ChartTooltipContent({ label, items, active, hideLabel, hideIndicator, indicator, labelKey, nameKey, labelFormatter, labelClassName, valueFormatter, className, ...props }: ChartTooltipContentProps): import("react/jsx-runtime").JSX.Element | null;
|
|
37
|
+
export interface ChartTooltipProps {
|
|
38
|
+
/** The tooltip content element. Receives `label`, `items`, `active` at render time. */
|
|
39
|
+
content: React.ReactElement;
|
|
40
|
+
}
|
|
41
|
+
declare function ChartTooltip({ content }: ChartTooltipProps): null;
|
|
42
|
+
export { ChartTooltip, ChartTooltipContent };
|
|
43
|
+
//# sourceMappingURL=ChartTooltip.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChartTooltip.d.ts","sourceRoot":"","sources":["../../../src/base/ChartTooltip/ChartTooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,MAAM,WAAW,gBAAgB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,EACR,OAAO,EACP,cAAc,EACd,cAAc,EACd,cAAsC,EACtC,SAAS,EACT,GAAG,KAAK,EACT,EAAE,wBAAwB,kDA8F1B;AASD,MAAM,WAAW,iBAAiB;IAChC,uFAAuF;IACvF,OAAO,EAAE,KAAK,CAAC,YAAY,CAAC;CAC7B;AAED,iBAAS,YAAY,CAAC,EAAE,OAAO,EAAE,EAAE,iBAAiB,QAYnD;AAED,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/base/ChartTooltip/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AACnE,YAAY,EAAE,wBAAwB,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { ChartTooltipItem } from '../../base/ChartTooltip';
|
|
2
|
+
import { CartesianDataPoint } from '../../primitives';
|
|
3
|
+
import { ChartState, Margin } from '../../types';
|
|
4
|
+
import { CurveType } from '../../series/curves';
|
|
5
|
+
import * as React from 'react';
|
|
6
|
+
export type AreaChartDataPoint = CartesianDataPoint;
|
|
7
|
+
export type AreaChartCurveType = CurveType;
|
|
8
|
+
export interface AreaChartProps extends React.ComponentProps<'div'> {
|
|
9
|
+
data: AreaChartDataPoint[];
|
|
10
|
+
dataKeys?: string[];
|
|
11
|
+
/** Lifecycle state. When omitted, inferred from data length. */
|
|
12
|
+
state?: ChartState;
|
|
13
|
+
curveType?: AreaChartCurveType;
|
|
14
|
+
/** Stack areas on top of each other. Defaults to `true`. */
|
|
15
|
+
stacked?: boolean;
|
|
16
|
+
/** Render a vertical gradient (series color fading to transparent). */
|
|
17
|
+
gradient?: boolean;
|
|
18
|
+
/** Opacity of the filled area beneath the line. */
|
|
19
|
+
fillOpacity?: number;
|
|
20
|
+
showGrid?: boolean;
|
|
21
|
+
showCategoryAxis?: boolean;
|
|
22
|
+
showValueAxis?: boolean;
|
|
23
|
+
connectNulls?: boolean;
|
|
24
|
+
animated?: boolean;
|
|
25
|
+
ariaLabel?: string;
|
|
26
|
+
margin?: Partial<Margin>;
|
|
27
|
+
valueTickFormatter?: (value: number) => string;
|
|
28
|
+
categoryTickFormatter?: (value: string) => string;
|
|
29
|
+
onPointHover?: (items: ChartTooltipItem[], category: string, event: React.MouseEvent) => void;
|
|
30
|
+
onPointLeave?: () => void;
|
|
31
|
+
}
|
|
32
|
+
declare function AreaChart({ data, dataKeys: dataKeysProp, state, curveType, stacked, gradient, fillOpacity, showGrid, showCategoryAxis, showValueAxis, connectNulls, animated, ariaLabel, margin, valueTickFormatter, categoryTickFormatter, onPointHover, onPointLeave, className, children, ...divProps }: AreaChartProps): import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
export { AreaChart };
|
|
34
|
+
//# sourceMappingURL=AreaChart.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AreaChart.d.ts","sourceRoot":"","sources":["../../../src/charts/AreaChart/AreaChart.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6CAA6C,CAAC;AAEpF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAC;AAG1E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAErD,MAAM,MAAM,kBAAkB,GAAG,kBAAkB,CAAC;AACpD,MAAM,MAAM,kBAAkB,GAAG,SAAS,CAAC;AAE3C,MAAM,WAAW,cAAe,SAAQ,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC;IACjE,IAAI,EAAE,kBAAkB,EAAE,CAAC;IAC3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S,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/charts/AreaChart/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,YAAY,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ChartTooltipItem } from '../../base/ChartTooltip';
|
|
2
|
+
import { ChartState, Margin } from '../../types';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
export interface BarChartDataPoint {
|
|
5
|
+
/** Category label displayed on the category axis. */
|
|
6
|
+
category: string;
|
|
7
|
+
/** One or more numeric values keyed by series name (must match ChartConfig keys). */
|
|
8
|
+
[series: string]: string | number;
|
|
9
|
+
}
|
|
10
|
+
export type BarChartLayout = 'vertical' | 'horizontal';
|
|
11
|
+
export type BarChartVariant = 'grouped' | 'stacked';
|
|
12
|
+
export interface BarChartProps extends React.ComponentProps<'div'> {
|
|
13
|
+
data: BarChartDataPoint[];
|
|
14
|
+
dataKeys?: string[];
|
|
15
|
+
/** Lifecycle state. When omitted, inferred from data length. */
|
|
16
|
+
state?: ChartState;
|
|
17
|
+
layout?: BarChartLayout;
|
|
18
|
+
variant?: BarChartVariant;
|
|
19
|
+
margin?: Partial<Margin>;
|
|
20
|
+
barRadius?: number;
|
|
21
|
+
showGrid?: boolean;
|
|
22
|
+
showCategoryAxis?: boolean;
|
|
23
|
+
showValueAxis?: boolean;
|
|
24
|
+
valueTickFormatter?: (value: number) => string;
|
|
25
|
+
ariaLabel?: string;
|
|
26
|
+
animated?: boolean;
|
|
27
|
+
onBarHover?: (items: ChartTooltipItem[], category: string, event: React.MouseEvent) => void;
|
|
28
|
+
onBarLeave?: () => void;
|
|
29
|
+
}
|
|
30
|
+
declare function BarChart({ data, dataKeys: dataKeysProp, state, layout, variant, margin, barRadius, showGrid, showCategoryAxis, showValueAxis, valueTickFormatter, ariaLabel, animated, onBarHover, onBarLeave, className, children, ...divProps }: BarChartProps): import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
export { BarChart };
|
|
32
|
+
//# sourceMappingURL=BarChart.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BarChart.d.ts","sourceRoot":"","sources":["../../../src/charts/BarChart/BarChart.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6CAA6C,CAAC;AAEpF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAC;AAU1E,MAAM,WAAW,iBAAiB;IAChC,qDAAqD;IACrD,QAAQ,EAAE,MAAM,CAAC;IACjB,qFAAqF;IACrF,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;CACnC;AAED,MAAM,MAAM,cAAc,GAAG,UAAU,GAAG,YAAY,CAAC;AACvD,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,SAAS,CAAC;AAEpD,MAAM,WAAW,aAAc,SAAQ,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC;IAChE,IAAI,EAAE,iBAAiB,EAAE,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,gEAAgE;IAChE,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,OAAO,CAAC,EAAE,eAAe,CAAC;IAC1B,MAAM,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,kBAAkB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IAC/C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,gBAAgB,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,CAAC,UAAU,KAAK,IAAI,CAAC;IAC5F,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;CACzB;AAED,iBAAS,QAAQ,CAAC,EAChB,IAAI,EACJ,QAAQ,EAAE,YAAY,EACtB,KAAK,EACL,MAAmB,EACnB,OAAmB,EACnB,MAAM,EACN,SAAS,EACT,QAAe,EACf,gBAAuB,EACvB,aAAoB,EACpB,kBAAkB,EAClB,SAAS,EACT,QAAe,EACf,UAAU,EACV,UAAU,EACV,SAAS,EACT,QAAQ,EACR,GAAG,QAAQ,EACZ,EAAE,aAAa,2CAsCf;AAED,OAAO,EAAE,QAAQ,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/charts/BarChart/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,YAAY,EAAE,iBAAiB,EAAE,cAAc,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { ChartState, Margin } from '../../types';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export interface DoughnutDataPoint {
|
|
4
|
+
category: string;
|
|
5
|
+
value: number;
|
|
6
|
+
}
|
|
7
|
+
export type DoughnutLabelContent = 'category' | 'value' | 'percent';
|
|
8
|
+
export type DoughnutLabelFormatter = (dataPoint: DoughnutDataPoint, total: number) => string;
|
|
9
|
+
export interface DoughnutChartProps extends React.ComponentProps<'div'> {
|
|
10
|
+
data: DoughnutDataPoint[];
|
|
11
|
+
/** Lifecycle state. When omitted, inferred from data length. */
|
|
12
|
+
state?: ChartState;
|
|
13
|
+
/** Ratio 0–1 controlling the hole size. 0 = full pie, 0.6 = doughnut (default). */
|
|
14
|
+
innerRadius?: number;
|
|
15
|
+
/** Spacing between segments in radians. */
|
|
16
|
+
padAngle?: number;
|
|
17
|
+
/** Rounded segment edges in px. */
|
|
18
|
+
cornerRadius?: number;
|
|
19
|
+
/**
|
|
20
|
+
* Controls external labels on each segment.
|
|
21
|
+
* - `'category'` — display the series label (e.g. "Success")
|
|
22
|
+
* - `'value'` — display the formatted value (e.g. "8,500")
|
|
23
|
+
* - `'percent'` — display the percentage (e.g. "94.4%")
|
|
24
|
+
* - `(d, total) => string` — custom formatter
|
|
25
|
+
* - `undefined` — no labels
|
|
26
|
+
*/
|
|
27
|
+
labels?: DoughnutLabelContent | DoughnutLabelFormatter;
|
|
28
|
+
/** Free-form center content (total, %, icon). Rendered as an absolutely positioned div. */
|
|
29
|
+
centerContent?: React.ReactNode;
|
|
30
|
+
/** Start angle in radians. Default -π/2 (12 o'clock). */
|
|
31
|
+
startAngle?: number;
|
|
32
|
+
/** Whether segments animate in on mount. Default true. */
|
|
33
|
+
animated?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Label shown as the tooltip header. When omitted, no header is displayed
|
|
36
|
+
* (avoids redundancy since each segment already names its category).
|
|
37
|
+
* Set to a parent label (e.g. "Requests") to get "Requests" > "Success 8,500".
|
|
38
|
+
*/
|
|
39
|
+
tooltipLabel?: string;
|
|
40
|
+
/** Escape-hatch hover callback per segment. */
|
|
41
|
+
onSegmentHover?: (item: DoughnutDataPoint, event: React.MouseEvent) => void;
|
|
42
|
+
/** Escape-hatch leave callback per segment. */
|
|
43
|
+
onSegmentLeave?: () => void;
|
|
44
|
+
/** Accessible label for the chart. */
|
|
45
|
+
ariaLabel?: string;
|
|
46
|
+
/** Chart margins. */
|
|
47
|
+
margin?: Partial<Margin>;
|
|
48
|
+
}
|
|
49
|
+
declare function DoughnutChart({ state, data, innerRadius, padAngle, cornerRadius, labels, centerContent, startAngle, animated, tooltipLabel, onSegmentHover, onSegmentLeave, ariaLabel, margin, className, children, ...divProps }: DoughnutChartProps): import("react/jsx-runtime").JSX.Element;
|
|
50
|
+
export { DoughnutChart };
|
|
51
|
+
//# sourceMappingURL=DoughnutChart.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DoughnutChart.d.ts","sourceRoot":"","sources":["../../../src/charts/DoughnutChart/DoughnutChart.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAa/B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAC;AAG1E,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,MAAM,oBAAoB,GAAG,UAAU,GAAG,OAAO,GAAG,SAAS,CAAC;AACpE,MAAM,MAAM,sBAAsB,GAAG,CAAC,SAAS,EAAE,iBAAiB,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;AAE7F,MAAM,WAAW,kBAAmB,SAAQ,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC;IACrE,IAAI,EAAE,iBAAiB,EAAE,CAAC;IAC1B,gEAAgE;IAChE,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,mFAAmF;IACnF,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,2CAA2C;IAC3C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,mCAAmC;IACnC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;;;;OAOG;IACH,MAAM,CAAC,EAAE,oBAAoB,GAAG,sBAAsB,CAAC;IACvD,2FAA2F;IAC3F,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAChC,yDAAyD;IACzD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,0DAA0D;IAC1D,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,+CAA+C;IAC/C,cAAc,CAAC,EAAE,CAAC,IAAI,EAAE,iBAAiB,EAAE,KAAK,EAAE,KAAK,CAAC,UAAU,KAAK,IAAI,CAAC;IAC5E,+CAA+C;IAC/C,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,sCAAsC;IACtC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,qBAAqB;IACrB,MAAM,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC;CAC1B;AAwCD,iBAAS,aAAa,CAAC,EACrB,KAAK,EACL,IAAI,EACJ,WAAW,EACX,QAAQ,EACR,YAAY,EACZ,MAAM,EACN,aAAa,EACb,UAAU,EACV,QAAQ,EACR,YAAY,EACZ,cAAc,EACd,cAAc,EACd,SAAS,EACT,MAAM,EACN,SAAS,EACT,QAAQ,EACR,GAAG,QAAQ,EACZ,EAAE,kBAAkB,2CAmCpB;AAuVD,OAAO,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/charts/DoughnutChart/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,YAAY,EACV,kBAAkB,EAClB,iBAAiB,EACjB,oBAAoB,EACpB,sBAAsB,GACvB,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { ChartTooltipItem } from '../../base/ChartTooltip';
|
|
2
|
+
import { CartesianDataPoint } from '../../primitives';
|
|
3
|
+
import { ChartState, Margin } from '../../types';
|
|
4
|
+
import { CurveType } from '../../series/curves';
|
|
5
|
+
import * as React from 'react';
|
|
6
|
+
export type LineChartDataPoint = CartesianDataPoint;
|
|
7
|
+
export type LineChartCurveType = CurveType;
|
|
8
|
+
export interface LineChartProps extends React.ComponentProps<'div'> {
|
|
9
|
+
data: LineChartDataPoint[];
|
|
10
|
+
dataKeys?: string[];
|
|
11
|
+
/** Lifecycle state. When omitted, inferred from data length. */
|
|
12
|
+
state?: ChartState;
|
|
13
|
+
curveType?: LineChartCurveType;
|
|
14
|
+
showDots?: boolean;
|
|
15
|
+
showGrid?: boolean;
|
|
16
|
+
showCategoryAxis?: boolean;
|
|
17
|
+
showValueAxis?: boolean;
|
|
18
|
+
connectNulls?: boolean;
|
|
19
|
+
valueTickFormatter?: (value: number) => string;
|
|
20
|
+
categoryTickFormatter?: (value: string) => string;
|
|
21
|
+
animated?: boolean;
|
|
22
|
+
onPointHover?: (items: ChartTooltipItem[], category: string, event: React.MouseEvent) => void;
|
|
23
|
+
onPointLeave?: () => void;
|
|
24
|
+
ariaLabel?: string;
|
|
25
|
+
margin?: Partial<Margin>;
|
|
26
|
+
}
|
|
27
|
+
declare function LineChart({ data, dataKeys: dataKeysProp, state, curveType, showDots, showGrid, showCategoryAxis, showValueAxis, connectNulls, valueTickFormatter, categoryTickFormatter, animated, onPointHover, onPointLeave, ariaLabel, margin, className, children, ...divProps }: LineChartProps): import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
export { LineChart };
|
|
29
|
+
//# sourceMappingURL=LineChart.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LineChart.d.ts","sourceRoot":"","sources":["../../../src/charts/LineChart/LineChart.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6CAA6C,CAAC;AAEpF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAC;AAG1E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAErD,MAAM,MAAM,kB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ACZ,EAAE,cAAc,2CAgChB;AAED,OAAO,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/charts/LineChart/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,YAAY,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { ChartState } from '../../types';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export interface MetricTrend {
|
|
4
|
+
value: number;
|
|
5
|
+
direction: 'up' | 'down' | 'neutral';
|
|
6
|
+
}
|
|
7
|
+
export type MetricTrendSentiment = 'higher-is-better' | 'lower-is-better' | 'neutral';
|
|
8
|
+
export interface MetricProps extends React.ComponentProps<'div'> {
|
|
9
|
+
/** Primary value (pre-formatted by consumer). */
|
|
10
|
+
value: string | number;
|
|
11
|
+
/** Metric label. */
|
|
12
|
+
label: string;
|
|
13
|
+
/**
|
|
14
|
+
* Lifecycle state. Unlike data-bound charts, `Metric` does **not** infer
|
|
15
|
+
* state from its value — the `value` prop is always rendered unless state
|
|
16
|
+
* is set explicitly.
|
|
17
|
+
* - `'loading'` — renders a pulsating skeleton.
|
|
18
|
+
* - `'empty'` — renders `"—"` as the value with no trend or sparkline (null convention).
|
|
19
|
+
* - `'ready'` — renders the metric value (default when omitted).
|
|
20
|
+
*/
|
|
21
|
+
state?: ChartState;
|
|
22
|
+
/** Optional subtitle. */
|
|
23
|
+
description?: string;
|
|
24
|
+
/** Icon component (Lucide or custom). */
|
|
25
|
+
icon?: React.ComponentType<{
|
|
26
|
+
className?: string;
|
|
27
|
+
}>;
|
|
28
|
+
/** Variation indicator. */
|
|
29
|
+
trend?: MetricTrend;
|
|
30
|
+
/**
|
|
31
|
+
* How to interpret trend direction for coloring.
|
|
32
|
+
* - `'higher-is-better'` (default): up = green, down = red (e.g. requests, throughput).
|
|
33
|
+
* - `'lower-is-better'`: up = red, down = green (e.g. error rate, latency).
|
|
34
|
+
* - `'neutral'`: always gray, no value judgment.
|
|
35
|
+
*/
|
|
36
|
+
trendSentiment?: MetricTrendSentiment;
|
|
37
|
+
/**
|
|
38
|
+
* Force the value to be centered vertically and horizontally.
|
|
39
|
+
* When omitted, the component auto-centers when no sparkline is shown.
|
|
40
|
+
*/
|
|
41
|
+
centered?: boolean;
|
|
42
|
+
/** Mini trend data points rendered as a sparkline. */
|
|
43
|
+
sparklineData?: number[];
|
|
44
|
+
/**
|
|
45
|
+
* Sparkline color override. When omitted, the color is derived from the
|
|
46
|
+
* trend direction and `trendSentiment` semantics.
|
|
47
|
+
* Falls back to `var(--chart-1)` when no trend is provided.
|
|
48
|
+
*/
|
|
49
|
+
sparklineColor?: string;
|
|
50
|
+
}
|
|
51
|
+
export type ResolvedSentiment = 'positive' | 'negative' | 'neutral';
|
|
52
|
+
export declare function resolveSentiment(direction: MetricTrend['direction'], sentiment: MetricTrendSentiment): ResolvedSentiment;
|
|
53
|
+
export declare function Metric({ value, label, state, description, icon: Icon, trend, trendSentiment, centered, sparklineData, sparklineColor, className, ...rest }: MetricProps): import("react/jsx-runtime").JSX.Element;
|
|
54
|
+
//# sourceMappingURL=Metric.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Metric.d.ts","sourceRoot":"","sources":["../../../src/charts/Metric/Metric.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAQlE,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,IAAI,GAAG,MAAM,GAAG,SAAS,CAAC;CACtC;AAED,MAAM,MAAM,oBAAoB,GAAG,kBAAkB,GAAG,iBAAiB,GAAG,SAAS,CAAC;AAE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,EAAE,WAAW,EAAE,WAAW,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { ChartState } from '../../types';
|
|
2
|
+
import { MetricTrend, MetricTrendSentiment } from '../Metric/Metric';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
interface MetricGroupSingleItem {
|
|
5
|
+
/** Primary value (pre-formatted). */
|
|
6
|
+
readonly value: string | number;
|
|
7
|
+
/** Label below the value. */
|
|
8
|
+
readonly label?: string;
|
|
9
|
+
/** Variation indicator. */
|
|
10
|
+
readonly trend?: MetricTrend;
|
|
11
|
+
/** How to interpret trend direction for coloring. */
|
|
12
|
+
readonly trendSentiment?: MetricTrendSentiment;
|
|
13
|
+
}
|
|
14
|
+
interface MetricGroupGroupedItem {
|
|
15
|
+
/** Category header displayed above the sub-metrics. */
|
|
16
|
+
readonly category: string;
|
|
17
|
+
/** Sub-metrics rendered side-by-side under the category. */
|
|
18
|
+
readonly metrics: readonly MetricGroupSingleItem[];
|
|
19
|
+
}
|
|
20
|
+
export type MetricGroupItem = MetricGroupSingleItem | MetricGroupGroupedItem;
|
|
21
|
+
export interface MetricGroupProps extends React.ComponentProps<'div'> {
|
|
22
|
+
/** Array of metric items or grouped items. */
|
|
23
|
+
readonly items: readonly MetricGroupItem[];
|
|
24
|
+
/**
|
|
25
|
+
* Lifecycle state. Unlike data-bound charts, `MetricGroup` does **not**
|
|
26
|
+
* infer state from its `items` array — items are always rendered unless
|
|
27
|
+
* state is set explicitly.
|
|
28
|
+
* - `'loading'` — renders a pulsating skeleton.
|
|
29
|
+
* - `'empty'` — renders each item's value as `"—"` with no trend (null convention).
|
|
30
|
+
* - `'ready'` — renders the metric items (default when omitted).
|
|
31
|
+
*/
|
|
32
|
+
state?: ChartState;
|
|
33
|
+
/**
|
|
34
|
+
* Number of skeleton cells when `state="loading"` and `items` is empty.
|
|
35
|
+
* Defaults to 5.
|
|
36
|
+
*/
|
|
37
|
+
skeletonCount?: number;
|
|
38
|
+
}
|
|
39
|
+
type SizeClass = 'xs' | 'sm' | 'md' | 'lg';
|
|
40
|
+
/** @internal – exported for unit tests only */
|
|
41
|
+
export declare function effectiveColumnCount(items: readonly MetricGroupItem[]): number;
|
|
42
|
+
/** @internal – exported for unit tests only */
|
|
43
|
+
export declare function itemWeight(item: MetricGroupItem): number;
|
|
44
|
+
/** @internal – exported for unit tests only */
|
|
45
|
+
export declare function computeSizeClass(width: number, height: number, columnCount: number): SizeClass;
|
|
46
|
+
/** @internal – exported for unit tests only */
|
|
47
|
+
export declare function computeVisibleCount(width: number, items: readonly MetricGroupItem[], size: SizeClass): number;
|
|
48
|
+
export declare function MetricGroup({ items, state, skeletonCount, className, ...rest }: MetricGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
49
|
+
export {};
|
|
50
|
+
//# sourceMappingURL=MetricGroup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MetricGroup.d.ts","sourceRoot":"","sources":["../../../src/charts/MetricGroup/MetricGroup.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAClE,OAAO,KAAK,EAAE,WAAW,EAAE,oBAAoB,EAAqB,MAAM,kBAAkB,CAAC;AAK7F,UAAU,qBAAqB;IAC7B,qCAAqC;IACrC,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IAChC,6BAA6B;IAC7B,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,2BAA2B;IAC3B,QAAQ,CAAC,KAAK,CAAC,EAAE,WAAW,CAAC;IAC7B,qDAAqD;IACrD,QAAQ,CAAC,cAAc,CAAC,EAAE,oBAAoB,CAAC;CAChD;AAED,UAAU,sBAAsB;IAC9B,uDAAuD;IACvD,QAAQ,CAAC,QAAQ,EAAE,MAAM,CA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AgB,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { DashboardGridProps } from './types';
|
|
2
|
+
declare function DashboardGrid({ widgets, cols, rowHeight, gap, breakpoints, breakpointCols, compaction, editable, minWidth, onLayoutChange, children, className, style, ...divProps }: DashboardGridProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export { DashboardGrid };
|
|
4
|
+
export type { DashboardGridProps };
|
|
5
|
+
//# sourceMappingURL=DashboardGrid.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DashboardGrid.d.ts","sourceRoot":"","sources":["../../src/dashboard-grid/DashboardGrid.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,kBAAkB,EAAgB,MAAM,SAAS,CAAC;AA4BhE,iBAAS,aAAa,CAAC,EACrB,OAAO,EACP,IAAmB,EACnB,SAA8B,EAC9B,GAAiB,EACjB,WAAW,EACX,cAAc,EACd,UAAuB,EACvB,QAAgB,EAChB,QAAc,EACd,cAAc,EACd,QAAQ,EACR,SAAS,EACT,KAAK,EACL,GAAG,QAAQ,EACZ,EAAE,kBAAkB,2CAqEpB;AAED,OAAO,EAAE,aAAa,EAAE,CAAC;AACzB,YAAY,EAAE,kBAAkB,EAAE,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface DashboardWidgetProps extends React.ComponentProps<'div'> {
|
|
3
|
+
/** Widget title displayed in the header. */
|
|
4
|
+
readonly title?: string;
|
|
5
|
+
/** Optional subtitle below the title. */
|
|
6
|
+
readonly subtitle?: string;
|
|
7
|
+
/** Icon rendered to the left of the title. */
|
|
8
|
+
readonly icon?: React.ComponentType<{
|
|
9
|
+
className?: string;
|
|
10
|
+
}>;
|
|
11
|
+
/** Top-right slot for contextual actions (period selector, dropdown, etc.). */
|
|
12
|
+
readonly action?: React.ReactNode;
|
|
13
|
+
/** Bottom slot for legends, status lines, or links. */
|
|
14
|
+
readonly footer?: React.ReactNode;
|
|
15
|
+
/**
|
|
16
|
+
* When true, horizontal padding is removed from the body so charts can
|
|
17
|
+
* render edge-to-edge inside the tile.
|
|
18
|
+
*/
|
|
19
|
+
readonly noPadding?: boolean;
|
|
20
|
+
/** Content to display inside the widget body. Fills all available space. */
|
|
21
|
+
readonly children: React.ReactNode;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Premium tile shell for items rendered inside a `DashboardGrid`.
|
|
25
|
+
*
|
|
26
|
+
* Renders its own surface (not the core Card) with dashboard-optimized
|
|
27
|
+
* border/shadow treatment:
|
|
28
|
+
* - Light: near-invisible border + micro-shadow, lifts on hover
|
|
29
|
+
* - Dark: hair-thin white edge, depth from bg contrast, glows on hover
|
|
30
|
+
*
|
|
31
|
+
* Provides a standardized header (title/subtitle/icon + action slot),
|
|
32
|
+
* a flex body that fills remaining height, and an optional footer for
|
|
33
|
+
* legends or status lines.
|
|
34
|
+
*/
|
|
35
|
+
export declare function DashboardWidget({ title, subtitle, icon: Icon, action, footer, noPadding, children, className, ...rest }: DashboardWidgetProps): import("react/jsx-runtime").JSX.Element;
|
|
36
|
+
//# sourceMappingURL=DashboardWidget.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DashboardWidget.d.ts","sourceRoot":"","sources":["../../src/dashboard-grid/DashboardWidget.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,MAAM,WAAW,oBAAqB,SAAQ,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC;IACvE,4CAA4C;IAC5C,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,yCAAyC;IACzC,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B,8CAA8C;IAC9C,QAAQ,CAAC,IAAI,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC5D,+EAA+E;IAC/E,QAAQ,CAAC,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAClC,uDAAuD;IACvD,QAAQ,CAAC,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAClC;;;OAGG;IACH,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC;IAC7B,4EAA4E;IAC5E,QAAQ,CAAC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CACpC;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,eAAe,CAAC,EAC9B,KAAK,EACL,QAAQ,EACR,IAAI,EAAE,IAAI,EACV,MAAM,EACN,MAAM,EACN,SAAiB,EACjB,QAAQ,EACR,SAAS,EACT,GAAG,IAAI,EACR,EAAE,oBAAoB,2CAwDtB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { LayoutItem } from 'react-grid-layout';
|
|
2
|
+
import { Widget, WidgetLayout } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* Convert a Gravitee `Widget` to an RGL `LayoutItem`.
|
|
5
|
+
* Maps `cols → w`, `rows → h`, `id → i`.
|
|
6
|
+
*/
|
|
7
|
+
export declare function widgetToRGLLayoutItem(widget: Widget): LayoutItem;
|
|
8
|
+
/**
|
|
9
|
+
* Convert an RGL `LayoutItem` back to a Gravitee `WidgetLayout`.
|
|
10
|
+
* Maps `w → cols`, `h → rows`.
|
|
11
|
+
*/
|
|
12
|
+
export declare function rglLayoutItemToWidgetLayout(item: LayoutItem): WidgetLayout;
|
|
13
|
+
//# sourceMappingURL=adapters.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"adapters.d.ts","sourceRoot":"","sources":["../../src/dashboard-grid/adapters.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEpD;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,MAAM,GAAG,UAAU,CAahE;AAED;;;GAGG;AACH,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,UAAU,GAAG,YAAY,CAO1E"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { DashboardGrid } from './DashboardGrid';
|
|
2
|
+
export type { DashboardGridProps } from './DashboardGrid';
|
|
3
|
+
export { DashboardWidget } from './DashboardWidget';
|
|
4
|
+
export type { DashboardWidgetProps } from './DashboardWidget';
|
|
5
|
+
export { rglLayoutItemToWidgetLayout, widgetToRGLLayoutItem } from './adapters';
|
|
6
|
+
export type { BreakpointCols, Breakpoints, Widget, WidgetLayout } from './types';
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/dashboard-grid/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,YAAY,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,YAAY,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,2BAA2B,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAChF,YAAY,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC"}
|