@factorialco/f0-react 1.396.0 → 1.397.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/{F0AiChat-sQnVZIig.js → F0AiChat-RQc7dXda.js} +376 -376
- package/dist/{F0HILActionConfirmation-D74w-tBZ.js → F0HILActionConfirmation-CEBQZ4xR.js} +1 -1
- package/dist/ai.js +2 -2
- package/dist/experimental.css +1 -1
- package/dist/experimental.js +8724 -14956
- package/dist/f0.d.ts +408 -3
- package/dist/f0.js +56604 -6548
- package/dist/{DataCollectionStorageProvider-DBFaWjh6.js → useDataCollectionSource-Drr0ytr2.js} +23667 -17435
- package/dist/{DataCollectionStorageProvider.css → useDataCollectionSource.css} +1 -1
- package/package.json +1 -1
package/dist/f0.d.ts
CHANGED
|
@@ -39,6 +39,7 @@ import { default as default_2 } from 'react';
|
|
|
39
39
|
import { DeltaCellValue } from './types/delta';
|
|
40
40
|
import { DotTagCellValue } from './f0';
|
|
41
41
|
import { DotTagCellValue as DotTagCellValue_2 } from './types/dotTag';
|
|
42
|
+
import { F0AnalyticsDashboardProps as F0AnalyticsDashboardProps_2 } from './types';
|
|
42
43
|
import { F0AvatarCompanyProps as F0AvatarCompanyProps_2 } from './types';
|
|
43
44
|
import { F0AvatarDateProps } from './F0AvatarDate';
|
|
44
45
|
import { F0AvatarEmojiProps as F0AvatarEmojiProps_2 } from './F0AvatarEmoji';
|
|
@@ -62,6 +63,7 @@ import { f1Colors } from '@factorialco/f0-core';
|
|
|
62
63
|
import { FC } from 'react';
|
|
63
64
|
import { FileCellValue } from './f0';
|
|
64
65
|
import { FileCellValue as FileCellValue_2 } from './types/file';
|
|
66
|
+
import { FiltersDefinition as FiltersDefinition_2 } from './f0';
|
|
65
67
|
import { FolderCellValue } from './f0';
|
|
66
68
|
import { FolderCellValue as FolderCellValue_2 } from './types/folder';
|
|
67
69
|
import { ForwardedRef } from 'react';
|
|
@@ -82,7 +84,7 @@ import { internalAvatarColors as internalAvatarColors_2 } from './f0';
|
|
|
82
84
|
import { internalAvatarSizes as internalAvatarSizes_2 } from './f0';
|
|
83
85
|
import { internalAvatarTypes as internalAvatarTypes_2 } from './f0';
|
|
84
86
|
import { JSX as JSX_2 } from 'react';
|
|
85
|
-
import { LineChartConfig } from './f0';
|
|
87
|
+
import { LineChartConfig as LineChartConfig_2 } from './f0';
|
|
86
88
|
import { LineChartPropsBase } from './utils/types';
|
|
87
89
|
import { LocalAudioTrack } from 'livekit-client';
|
|
88
90
|
import { LongTextCellValue } from './types/longText';
|
|
@@ -594,7 +596,7 @@ declare type AnimationVariantsOptions = {
|
|
|
594
596
|
maxDelay?: number;
|
|
595
597
|
};
|
|
596
598
|
|
|
597
|
-
export declare const AreaChart: WithDataTestIdReturnType_5<ForwardRefExoticComponent<Omit<LineChartPropsBase<
|
|
599
|
+
export declare const AreaChart: WithDataTestIdReturnType_5<ForwardRefExoticComponent<Omit<LineChartPropsBase<LineChartConfig_2> & {
|
|
598
600
|
lineType?: "step" | "linear" | "natural" | "monotoneX";
|
|
599
601
|
marginTop?: number;
|
|
600
602
|
canBeBlurred?: boolean;
|
|
@@ -726,6 +728,14 @@ values: {
|
|
|
726
728
|
}) => void) | undefined;
|
|
727
729
|
} & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLElement | SVGElement>>>;
|
|
728
730
|
|
|
731
|
+
export declare interface BarChartConfig extends ChartConfigBase {
|
|
732
|
+
type: "bar";
|
|
733
|
+
/** @default "vertical" */
|
|
734
|
+
orientation?: "vertical" | "horizontal";
|
|
735
|
+
/** Stack all series into a single bar per category. @default false */
|
|
736
|
+
stacked?: boolean;
|
|
737
|
+
}
|
|
738
|
+
|
|
729
739
|
declare type BaseAction = {
|
|
730
740
|
label: string;
|
|
731
741
|
onClick: () => Promise<void> | void;
|
|
@@ -1378,6 +1388,28 @@ declare type CardVisualizationOptions<T, _Filters extends FiltersDefinition, _So
|
|
|
1378
1388
|
|
|
1379
1389
|
export declare const CategoryBarChart: WithDataTestIdReturnType_5<ForwardRefExoticComponent<Omit<CategoryBarProps & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLElement | SVGElement>>>;
|
|
1380
1390
|
|
|
1391
|
+
/** A valid chart color token — one of the 15 chromatic F0 base-color names. */
|
|
1392
|
+
declare type ChartColorToken = (typeof chartColorTokens)[number];
|
|
1393
|
+
|
|
1394
|
+
/**
|
|
1395
|
+
* The 15 chromatic color names from the F0 design token palette.
|
|
1396
|
+
* These are the only colors allowed for custom series / data-point colors.
|
|
1397
|
+
*/
|
|
1398
|
+
declare const chartColorTokens: readonly ["lilac", "barbie", "smoke", "army", "flubber", "indigo", "camel", "radical", "viridian", "orange", "red", "grass", "malibu", "yellow", "purple"];
|
|
1399
|
+
|
|
1400
|
+
declare interface ChartConfigBase {
|
|
1401
|
+
/** Show the legend below the chart. @default true */
|
|
1402
|
+
showLegend?: boolean;
|
|
1403
|
+
/** Show background grid lines. @default true */
|
|
1404
|
+
showGrid?: boolean;
|
|
1405
|
+
/** Show value labels on each data point. @default false */
|
|
1406
|
+
showLabels?: boolean;
|
|
1407
|
+
/** Format the value axis tick labels */
|
|
1408
|
+
valueFormatter?: (value: number) => string;
|
|
1409
|
+
/** Format category axis tick labels */
|
|
1410
|
+
categoryFormatter?: (value: string) => string;
|
|
1411
|
+
}
|
|
1412
|
+
|
|
1381
1413
|
export declare const ChatSpinner: ForwardRefExoticComponent<Omit<SVGProps<SVGSVGElement>, "ref"> & RefAttributes<SVGSVGElement>>;
|
|
1382
1414
|
|
|
1383
1415
|
/**
|
|
@@ -1710,6 +1742,116 @@ declare interface CustomFieldRenderPropsBase {
|
|
|
1710
1742
|
|
|
1711
1743
|
export declare const Dashboard: WithDataTestIdReturnType_3<ComponentType<DashboardProps_2> & PageLayoutGroupComponent_2>;
|
|
1712
1744
|
|
|
1745
|
+
/**
|
|
1746
|
+
* Chart display configuration — discriminated on `type`.
|
|
1747
|
+
* This object is JSON-serializable (no functions, except optional formatters).
|
|
1748
|
+
*/
|
|
1749
|
+
export declare type DashboardChartConfig = BarChartConfig | LineChartConfig | FunnelChartConfig | PieChartConfig | RadarChartConfig | GaugeChartConfig | HeatmapChartConfig;
|
|
1750
|
+
|
|
1751
|
+
export declare interface DashboardChartData {
|
|
1752
|
+
/** Category axis labels. Required for bar/line charts. */
|
|
1753
|
+
categories?: string[];
|
|
1754
|
+
/** X-axis category labels for heatmap charts. */
|
|
1755
|
+
xCategories?: string[];
|
|
1756
|
+
/** Y-axis category labels for heatmap charts. */
|
|
1757
|
+
yCategories?: string[];
|
|
1758
|
+
/** Radar chart axis indicators. */
|
|
1759
|
+
indicators?: F0DataChartRadarIndicator[];
|
|
1760
|
+
/** Chart series data — shape depends on chart type. Omit for heatmaps. */
|
|
1761
|
+
series?: F0DataChartBarSeries[] | F0DataChartLineSeries[] | F0DataChartFunnelSeries | F0DataChartPieSeries | F0DataChartRadarSeries[] | {
|
|
1762
|
+
value: number;
|
|
1763
|
+
name?: string;
|
|
1764
|
+
};
|
|
1765
|
+
/** Heatmap data points as [xIndex, yIndex, value] tuples. */
|
|
1766
|
+
data?: [number, number, number][];
|
|
1767
|
+
}
|
|
1768
|
+
|
|
1769
|
+
export declare interface DashboardChartItem<Filters extends FiltersDefinition = FiltersDefinition> extends DashboardItemBase {
|
|
1770
|
+
type: "chart";
|
|
1771
|
+
/** Visual chart configuration (JSON-serializable) */
|
|
1772
|
+
chart: DashboardChartConfig;
|
|
1773
|
+
/**
|
|
1774
|
+
* Reserved for future use. Currently all chart cells share the same
|
|
1775
|
+
* height derived from the grid column width.
|
|
1776
|
+
*/
|
|
1777
|
+
aspectRatio?: string;
|
|
1778
|
+
/** Async data fetcher — receives dashboard filters when useDashboardFilters is true */
|
|
1779
|
+
fetchData: (filters: FiltersState<Filters>) => Promise<DashboardChartData>;
|
|
1780
|
+
}
|
|
1781
|
+
|
|
1782
|
+
/**
|
|
1783
|
+
* Minimal collection config — enough to render a table/card/list inside
|
|
1784
|
+
* a dashboard widget without its own filter bar.
|
|
1785
|
+
*
|
|
1786
|
+
* The consumer provides `createSource` which receives the dashboard-level
|
|
1787
|
+
* filters and returns a full DataCollectionSourceDefinition. The dashboard
|
|
1788
|
+
* calls `useDataCollectionSource` internally.
|
|
1789
|
+
*/
|
|
1790
|
+
export declare interface DashboardCollectionItem<Filters extends FiltersDefinition = FiltersDefinition> extends DashboardItemBase {
|
|
1791
|
+
type: "collection";
|
|
1792
|
+
/**
|
|
1793
|
+
* Factory that creates a DataCollectionSourceDefinition for this item.
|
|
1794
|
+
* Called whenever dashboard filters change.
|
|
1795
|
+
* The returned definition should NOT include its own filters/presets
|
|
1796
|
+
* (the dashboard provides those globally).
|
|
1797
|
+
*/
|
|
1798
|
+
createSource: (filters: FiltersState<Filters>) => any;
|
|
1799
|
+
/**
|
|
1800
|
+
* Visualization configs for the collection (table, card, list, kanban).
|
|
1801
|
+
* Same shape as OneDataCollection's `visualizations` prop.
|
|
1802
|
+
*/
|
|
1803
|
+
visualizations: ReadonlyArray<any>;
|
|
1804
|
+
}
|
|
1805
|
+
|
|
1806
|
+
/**
|
|
1807
|
+
* A single dashboard item. Discriminated on `type`.
|
|
1808
|
+
*
|
|
1809
|
+
* Currently supports `"chart"`, `"metric"`, and `"collection"`.
|
|
1810
|
+
* Future types (e.g. `"custom"`) extend this union.
|
|
1811
|
+
*/
|
|
1812
|
+
export declare type DashboardItem<Filters extends FiltersDefinition = FiltersDefinition> = DashboardChartItem<Filters> | DashboardMetricItem<Filters> | DashboardCollectionItem<Filters>;
|
|
1813
|
+
|
|
1814
|
+
export declare interface DashboardItemBase {
|
|
1815
|
+
/** Unique key for React reconciliation and identity */
|
|
1816
|
+
id: string;
|
|
1817
|
+
/** Widget title displayed in the header */
|
|
1818
|
+
title: string;
|
|
1819
|
+
/** Optional description below the title */
|
|
1820
|
+
description?: string;
|
|
1821
|
+
/** Number of grid columns this item spans (1–3). @default 1 */
|
|
1822
|
+
colSpan?: 1 | 2 | 3;
|
|
1823
|
+
/**
|
|
1824
|
+
* Whether this item receives dashboard-level filters in its fetchData.
|
|
1825
|
+
* When false, fetchData receives an empty object.
|
|
1826
|
+
* @default true
|
|
1827
|
+
*/
|
|
1828
|
+
useDashboardFilters?: boolean;
|
|
1829
|
+
}
|
|
1830
|
+
|
|
1831
|
+
/** Data returned by a metric item's fetchData */
|
|
1832
|
+
export declare interface DashboardMetricData {
|
|
1833
|
+
/** The main numeric value displayed in large text */
|
|
1834
|
+
value: number;
|
|
1835
|
+
/** Optional previous value — used to compute a trend indicator */
|
|
1836
|
+
previousValue?: number;
|
|
1837
|
+
}
|
|
1838
|
+
|
|
1839
|
+
/**
|
|
1840
|
+
* A single big-number KPI widget.
|
|
1841
|
+
*
|
|
1842
|
+
* Displays a large formatted number with optional trend indicator
|
|
1843
|
+
* (up/down vs previous value). Receives dashboard filters like any other item.
|
|
1844
|
+
*/
|
|
1845
|
+
export declare interface DashboardMetricItem<Filters extends FiltersDefinition = FiltersDefinition> extends DashboardItemBase {
|
|
1846
|
+
type: "metric";
|
|
1847
|
+
/** How to format the value. @default { type: "number" } */
|
|
1848
|
+
format?: MetricFormat;
|
|
1849
|
+
/** Number of decimal places. @default 0 */
|
|
1850
|
+
decimals?: number;
|
|
1851
|
+
/** Async data fetcher — receives dashboard filters */
|
|
1852
|
+
fetchData: (filters: FiltersState<Filters>) => Promise<DashboardMetricData>;
|
|
1853
|
+
}
|
|
1854
|
+
|
|
1713
1855
|
export declare type DashboardProps = GroupGridProps<DashboardWidget>;
|
|
1714
1856
|
|
|
1715
1857
|
export declare type DashboardWidget = GroupGridWidget<{
|
|
@@ -3131,6 +3273,45 @@ export declare interface F0AlertProps {
|
|
|
3131
3273
|
variant: AlertVariant;
|
|
3132
3274
|
}
|
|
3133
3275
|
|
|
3276
|
+
/**
|
|
3277
|
+
* @experimental This is an experimental component use it at your own risk
|
|
3278
|
+
*/
|
|
3279
|
+
export declare const F0AnalyticsDashboard: {
|
|
3280
|
+
<Filters extends FiltersDefinition_2 = FiltersDefinition_2>({ filters, presets, defaultFilters, items, }: F0AnalyticsDashboardProps_2<Filters>): JSX_2.Element;
|
|
3281
|
+
displayName: string;
|
|
3282
|
+
};
|
|
3283
|
+
|
|
3284
|
+
/**
|
|
3285
|
+
* Props for the F0AnalyticsDashboard component.
|
|
3286
|
+
*
|
|
3287
|
+
* The entire dashboard is defined declaratively via `filters` (optional shared
|
|
3288
|
+
* filter definitions), `presets`, and `items` (an ordered array of chart /
|
|
3289
|
+
* collection configs).
|
|
3290
|
+
*
|
|
3291
|
+
* An LLM can generate the full `items` array as JSON (minus the `fetchData`
|
|
3292
|
+
* functions) to build dashboards on the fly.
|
|
3293
|
+
*/
|
|
3294
|
+
export declare interface F0AnalyticsDashboardProps<Filters extends FiltersDefinition = FiltersDefinition> {
|
|
3295
|
+
/**
|
|
3296
|
+
* Filter definitions for the dashboard-level filter bar.
|
|
3297
|
+
* When omitted, no filter bar is rendered.
|
|
3298
|
+
*/
|
|
3299
|
+
filters?: Filters;
|
|
3300
|
+
/**
|
|
3301
|
+
* Preset filter configurations shown as quick-select chips.
|
|
3302
|
+
*/
|
|
3303
|
+
presets?: PresetsDefinition<Filters>;
|
|
3304
|
+
/**
|
|
3305
|
+
* Initial filter values applied when the dashboard first renders.
|
|
3306
|
+
*/
|
|
3307
|
+
defaultFilters?: FiltersState<Filters>;
|
|
3308
|
+
/**
|
|
3309
|
+
* Ordered list of dashboard items to render in the grid.
|
|
3310
|
+
* Each item declares its type, visual config, grid span, and data fetcher.
|
|
3311
|
+
*/
|
|
3312
|
+
items: DashboardItem<Filters>[];
|
|
3313
|
+
}
|
|
3314
|
+
|
|
3134
3315
|
/**
|
|
3135
3316
|
* Config for array fields (multi-select or multi-file)
|
|
3136
3317
|
* @typeParam T - The value type (string or number)
|
|
@@ -3782,6 +3963,130 @@ declare type F0CustomFieldConfigWithConfig<TValue = unknown, TConfig = unknown>
|
|
|
3782
3963
|
fieldType: "custom";
|
|
3783
3964
|
};
|
|
3784
3965
|
|
|
3966
|
+
/**
|
|
3967
|
+
* A single data point in a bar chart series.
|
|
3968
|
+
* Can be a simple number or an object with value and optional target.
|
|
3969
|
+
*/
|
|
3970
|
+
declare type F0DataChartBarDataPoint = number | {
|
|
3971
|
+
value: number;
|
|
3972
|
+
/** When set, renders a gradient fade from the bar top up to the target value */
|
|
3973
|
+
target?: number;
|
|
3974
|
+
/** Override color for this individual bar. Must be an F0 design token name. */
|
|
3975
|
+
color?: ChartColorToken;
|
|
3976
|
+
};
|
|
3977
|
+
|
|
3978
|
+
/**
|
|
3979
|
+
* A series of bars to render in the chart.
|
|
3980
|
+
*/
|
|
3981
|
+
declare interface F0DataChartBarSeries {
|
|
3982
|
+
/** Display name used in legend and tooltip */
|
|
3983
|
+
name: string;
|
|
3984
|
+
/** Data points — one per category */
|
|
3985
|
+
data: F0DataChartBarDataPoint[];
|
|
3986
|
+
/** Override color for this series. Must be an F0 design token name. Falls back to the theme palette. */
|
|
3987
|
+
color?: ChartColorToken;
|
|
3988
|
+
}
|
|
3989
|
+
|
|
3990
|
+
/**
|
|
3991
|
+
* A single data point in a funnel chart series.
|
|
3992
|
+
* Each point has a value and a stage name.
|
|
3993
|
+
*/
|
|
3994
|
+
declare interface F0DataChartFunnelDataPoint {
|
|
3995
|
+
/** Numeric value for this funnel stage */
|
|
3996
|
+
value: number;
|
|
3997
|
+
/** Stage label (e.g. "Applied", "Phone Screen", "Hired") */
|
|
3998
|
+
name: string;
|
|
3999
|
+
/** Override color for this individual stage. Must be an F0 design token name. */
|
|
4000
|
+
color?: ChartColorToken;
|
|
4001
|
+
}
|
|
4002
|
+
|
|
4003
|
+
/**
|
|
4004
|
+
* A single funnel series with named data points.
|
|
4005
|
+
*/
|
|
4006
|
+
declare interface F0DataChartFunnelSeries {
|
|
4007
|
+
/** Display name used in legend and tooltip */
|
|
4008
|
+
name: string;
|
|
4009
|
+
/** Data points — one per funnel stage */
|
|
4010
|
+
data: F0DataChartFunnelDataPoint[];
|
|
4011
|
+
/** Override color for the entire series. Must be an F0 design token name. */
|
|
4012
|
+
color?: ChartColorToken;
|
|
4013
|
+
}
|
|
4014
|
+
|
|
4015
|
+
/**
|
|
4016
|
+
* A single data point in a line chart series.
|
|
4017
|
+
* Can be a simple number or an object with a value.
|
|
4018
|
+
*/
|
|
4019
|
+
declare type F0DataChartLineDataPoint = number | {
|
|
4020
|
+
value: number;
|
|
4021
|
+
};
|
|
4022
|
+
|
|
4023
|
+
/**
|
|
4024
|
+
* A series of data points to render as a line.
|
|
4025
|
+
*/
|
|
4026
|
+
declare interface F0DataChartLineSeries {
|
|
4027
|
+
/** Display name used in legend and tooltip */
|
|
4028
|
+
name: string;
|
|
4029
|
+
/** Data points — one per category */
|
|
4030
|
+
data: F0DataChartLineDataPoint[];
|
|
4031
|
+
/** Override color for this series. Must be an F0 design token name. Falls back to the theme palette. */
|
|
4032
|
+
color?: ChartColorToken;
|
|
4033
|
+
/** Render this line with a dashed pattern (useful for projections/targets) */
|
|
4034
|
+
dashed?: boolean;
|
|
4035
|
+
/** Override line interpolation for this series */
|
|
4036
|
+
lineType?: F0DataChartLineType;
|
|
4037
|
+
/** Override area fill for this series */
|
|
4038
|
+
showArea?: boolean;
|
|
4039
|
+
}
|
|
4040
|
+
|
|
4041
|
+
/** Line interpolation type */
|
|
4042
|
+
declare type F0DataChartLineType = "linear" | "smooth" | "step";
|
|
4043
|
+
|
|
4044
|
+
/**
|
|
4045
|
+
* A single data point in a pie chart.
|
|
4046
|
+
*/
|
|
4047
|
+
declare interface F0DataChartPieDataPoint {
|
|
4048
|
+
/** Numeric value for this segment */
|
|
4049
|
+
value: number;
|
|
4050
|
+
/** Segment label */
|
|
4051
|
+
name: string;
|
|
4052
|
+
/** Override color for this individual segment. Must be an F0 design token name. */
|
|
4053
|
+
color?: ChartColorToken;
|
|
4054
|
+
}
|
|
4055
|
+
|
|
4056
|
+
/**
|
|
4057
|
+
* A single pie series with named data points.
|
|
4058
|
+
*/
|
|
4059
|
+
declare interface F0DataChartPieSeries {
|
|
4060
|
+
/** Display name used in tooltip */
|
|
4061
|
+
name: string;
|
|
4062
|
+
/** Data points — one per pie segment */
|
|
4063
|
+
data: F0DataChartPieDataPoint[];
|
|
4064
|
+
/** Override color for the entire series. Must be an F0 design token name. */
|
|
4065
|
+
color?: ChartColorToken;
|
|
4066
|
+
}
|
|
4067
|
+
|
|
4068
|
+
/**
|
|
4069
|
+
* A radar chart indicator (axis/dimension).
|
|
4070
|
+
*/
|
|
4071
|
+
declare interface F0DataChartRadarIndicator {
|
|
4072
|
+
/** Name of the axis/dimension (e.g. "Performance", "Engagement") */
|
|
4073
|
+
name: string;
|
|
4074
|
+
/** Maximum value for this axis. @default auto-calculated from data */
|
|
4075
|
+
max?: number;
|
|
4076
|
+
}
|
|
4077
|
+
|
|
4078
|
+
/**
|
|
4079
|
+
* A series of data points for a radar chart.
|
|
4080
|
+
*/
|
|
4081
|
+
declare interface F0DataChartRadarSeries {
|
|
4082
|
+
/** Display name used in legend and tooltip (e.g. "Team A", "Team B") */
|
|
4083
|
+
name: string;
|
|
4084
|
+
/** Values — one per indicator, in the same order */
|
|
4085
|
+
data: number[];
|
|
4086
|
+
/** Override color for this series. Must be an F0 design token name. */
|
|
4087
|
+
color?: ChartColorToken;
|
|
4088
|
+
}
|
|
4089
|
+
|
|
3785
4090
|
/**
|
|
3786
4091
|
* Component that renders an optional markdown preview followed by
|
|
3787
4092
|
* a dropdown button with "Download Excel" as the primary action and
|
|
@@ -5668,6 +5973,28 @@ declare type FullscreenChatContextType = {
|
|
|
5668
5973
|
setInProgress: (value: boolean) => void;
|
|
5669
5974
|
};
|
|
5670
5975
|
|
|
5976
|
+
export declare interface FunnelChartConfig {
|
|
5977
|
+
type: "funnel";
|
|
5978
|
+
/** Sort direction of funnel stages. @default "descending" */
|
|
5979
|
+
sort?: "descending" | "ascending" | "none";
|
|
5980
|
+
/** Funnel orientation. @default "horizontal" */
|
|
5981
|
+
orient?: "horizontal" | "vertical";
|
|
5982
|
+
/** Show the legend below the chart. @default false */
|
|
5983
|
+
showLegend?: boolean;
|
|
5984
|
+
/** Show value labels on each stage. @default true */
|
|
5985
|
+
showLabels?: boolean;
|
|
5986
|
+
/**
|
|
5987
|
+
* Show conversion percentages in labels.
|
|
5988
|
+
* Each stage displays its value as a percentage of the first stage.
|
|
5989
|
+
* @default false
|
|
5990
|
+
*/
|
|
5991
|
+
showConversion?: boolean;
|
|
5992
|
+
/** Use a color scale gradient instead of distinct colors. @default true */
|
|
5993
|
+
colorScale?: boolean;
|
|
5994
|
+
/** Format the value displayed in labels and tooltip */
|
|
5995
|
+
valueFormatter?: (value: number) => string;
|
|
5996
|
+
}
|
|
5997
|
+
|
|
5671
5998
|
/**
|
|
5672
5999
|
* Gap tokens for spacing between flex/grid children.
|
|
5673
6000
|
* Uses betweenSpacing (rem) for sm–xl, absoluteSpacing (px) for extended sizes.
|
|
@@ -5687,6 +6014,20 @@ declare type FullscreenChatContextType = {
|
|
|
5687
6014
|
*/
|
|
5688
6015
|
export declare type GapToken = "none" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl";
|
|
5689
6016
|
|
|
6017
|
+
export declare interface GaugeChartConfig {
|
|
6018
|
+
type: "gauge";
|
|
6019
|
+
/** Minimum value. @default 0 */
|
|
6020
|
+
min?: number;
|
|
6021
|
+
/** Maximum value. @default 100 */
|
|
6022
|
+
max?: number;
|
|
6023
|
+
/** Color token for the gauge arc */
|
|
6024
|
+
color?: ChartColorToken;
|
|
6025
|
+
/** Show the numeric value inside the gauge. @default true */
|
|
6026
|
+
showValue?: boolean;
|
|
6027
|
+
/** Format the value displayed inside the gauge */
|
|
6028
|
+
valueFormatter?: (value: number) => string;
|
|
6029
|
+
}
|
|
6030
|
+
|
|
5690
6031
|
/**
|
|
5691
6032
|
* Generates an anchor ID for a form element
|
|
5692
6033
|
* Format: forms.[formName].[sectionId].[fieldId]
|
|
@@ -5894,6 +6235,20 @@ declare type HeadingTags = (typeof headingTags)[number];
|
|
|
5894
6235
|
|
|
5895
6236
|
declare const headingTags: readonly ["h1", "h2", "h3", "h4", "h5", "h6"];
|
|
5896
6237
|
|
|
6238
|
+
export declare interface HeatmapChartConfig {
|
|
6239
|
+
type: "heatmap";
|
|
6240
|
+
/** Minimum value for the color scale */
|
|
6241
|
+
min?: number;
|
|
6242
|
+
/** Maximum value for the color scale */
|
|
6243
|
+
max?: number;
|
|
6244
|
+
/** Show value labels on each cell. @default false */
|
|
6245
|
+
showLabels?: boolean;
|
|
6246
|
+
/** Show the visual map legend. @default false */
|
|
6247
|
+
showVisualMap?: boolean;
|
|
6248
|
+
/** Format the value displayed in cells and tooltip */
|
|
6249
|
+
valueFormatter?: (value: number) => string;
|
|
6250
|
+
}
|
|
6251
|
+
|
|
5897
6252
|
declare type heightType = "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "full" | "auto";
|
|
5898
6253
|
|
|
5899
6254
|
export declare const HomeLayout: WithDataTestIdReturnType_2<ForwardRefExoticComponent<Omit<{
|
|
@@ -6279,10 +6634,20 @@ declare const levels: readonly ["info", "warning", "critical", "positive"];
|
|
|
6279
6634
|
|
|
6280
6635
|
export declare function Li({ children, ...props }: React.HTMLAttributes<HTMLLIElement>): JSX_2.Element;
|
|
6281
6636
|
|
|
6282
|
-
export declare const LineChart: WithDataTestIdReturnType_5<ForwardRefExoticComponent<Omit<LineChartPropsBase<
|
|
6637
|
+
export declare const LineChart: WithDataTestIdReturnType_5<ForwardRefExoticComponent<Omit<LineChartPropsBase<LineChartConfig_2> & {
|
|
6283
6638
|
lineType?: "natural" | "linear";
|
|
6284
6639
|
} & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLElement | SVGElement>>>;
|
|
6285
6640
|
|
|
6641
|
+
export declare interface LineChartConfig extends ChartConfigBase {
|
|
6642
|
+
type: "line";
|
|
6643
|
+
/** @default "linear" */
|
|
6644
|
+
lineType?: "linear" | "smooth" | "step";
|
|
6645
|
+
/** Show gradient area fill below lines. @default true */
|
|
6646
|
+
showArea?: boolean;
|
|
6647
|
+
/** Show data point dots on the lines. @default false */
|
|
6648
|
+
showDots?: boolean;
|
|
6649
|
+
}
|
|
6650
|
+
|
|
6286
6651
|
declare type LinkContextValue = {
|
|
6287
6652
|
currentPath?: string;
|
|
6288
6653
|
component?: (props: LinkProps, ref: ForwardedRef<HTMLAnchorElement>) => JSX.Element;
|
|
@@ -6384,6 +6749,20 @@ declare type MentionsConfig = {
|
|
|
6384
6749
|
users: MentionedUser[];
|
|
6385
6750
|
};
|
|
6386
6751
|
|
|
6752
|
+
/** How to format the metric value */
|
|
6753
|
+
export declare type MetricFormat = {
|
|
6754
|
+
type: "number";
|
|
6755
|
+
} | {
|
|
6756
|
+
type: "currency";
|
|
6757
|
+
currency?: string;
|
|
6758
|
+
} | {
|
|
6759
|
+
type: "percent";
|
|
6760
|
+
} | {
|
|
6761
|
+
type: "custom";
|
|
6762
|
+
suffix?: string;
|
|
6763
|
+
prefix?: string;
|
|
6764
|
+
};
|
|
6765
|
+
|
|
6387
6766
|
/**
|
|
6388
6767
|
* Known MIME types for the file field `accept` prop.
|
|
6389
6768
|
*
|
|
@@ -6915,6 +7294,20 @@ declare type PersonTagProps = ComponentProps<typeof F0TagPerson>;
|
|
|
6915
7294
|
|
|
6916
7295
|
export declare const PieChart: WithDataTestIdReturnType_5<ForwardRefExoticComponent<Omit<PieChartProps & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLElement | SVGElement>>>;
|
|
6917
7296
|
|
|
7297
|
+
export declare interface PieChartConfig {
|
|
7298
|
+
type: "pie";
|
|
7299
|
+
/** Inner radius ratio (0 = full pie, >0 = donut). @default 0 */
|
|
7300
|
+
innerRadius?: number;
|
|
7301
|
+
/** Show the legend below the chart. @default true */
|
|
7302
|
+
showLegend?: boolean;
|
|
7303
|
+
/** Show value labels on each segment. @default true */
|
|
7304
|
+
showLabels?: boolean;
|
|
7305
|
+
/** Show percentage in labels. @default false */
|
|
7306
|
+
showPercentage?: boolean;
|
|
7307
|
+
/** Format the value displayed in labels and tooltip */
|
|
7308
|
+
valueFormatter?: (value: number) => string;
|
|
7309
|
+
}
|
|
7310
|
+
|
|
6918
7311
|
declare type PopupSize = "sm" | "md" | "lg";
|
|
6919
7312
|
|
|
6920
7313
|
/** CSS position */
|
|
@@ -7169,6 +7562,18 @@ declare type Props_3 = {
|
|
|
7169
7562
|
list?: TagCounterItem[];
|
|
7170
7563
|
};
|
|
7171
7564
|
|
|
7565
|
+
export declare interface RadarChartConfig {
|
|
7566
|
+
type: "radar";
|
|
7567
|
+
/** Fill the radar area. @default true */
|
|
7568
|
+
showArea?: boolean;
|
|
7569
|
+
/** Show the legend below the chart. @default true */
|
|
7570
|
+
showLegend?: boolean;
|
|
7571
|
+
/** Show value labels on data points. @default false */
|
|
7572
|
+
showLabels?: boolean;
|
|
7573
|
+
/** Format the value displayed in labels and tooltip */
|
|
7574
|
+
valueFormatter?: (value: number) => string;
|
|
7575
|
+
}
|
|
7576
|
+
|
|
7172
7577
|
/**
|
|
7173
7578
|
* Utility type to get all possible paths through an object using dot notation
|
|
7174
7579
|
* @template T - The object type to traverse
|