@silverpoint/react 0.1.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/LICENSE +21 -0
- package/dist/activity-grid.d.ts +10 -0
- package/dist/activity-grid.js +9 -0
- package/dist/activity-grid.js.map +1 -0
- package/dist/area-chart.d.ts +10 -0
- package/dist/area-chart.js +9 -0
- package/dist/area-chart.js.map +1 -0
- package/dist/bar-chart.d.ts +10 -0
- package/dist/bar-chart.js +9 -0
- package/dist/bar-chart.js.map +1 -0
- package/dist/bubble-chart.d.ts +10 -0
- package/dist/bubble-chart.js +9 -0
- package/dist/bubble-chart.js.map +1 -0
- package/dist/bullet-chart.d.ts +10 -0
- package/dist/bullet-chart.js +9 -0
- package/dist/bullet-chart.js.map +1 -0
- package/dist/candlestick-chart.d.ts +10 -0
- package/dist/candlestick-chart.js +9 -0
- package/dist/candlestick-chart.js.map +1 -0
- package/dist/chord-ring.d.ts +10 -0
- package/dist/chord-ring.js +9 -0
- package/dist/chord-ring.js.map +1 -0
- package/dist/chunk-2JXPSUCK.js +13 -0
- package/dist/chunk-2JXPSUCK.js.map +1 -0
- package/dist/chunk-2OAPH7JN.js +13 -0
- package/dist/chunk-2OAPH7JN.js.map +1 -0
- package/dist/chunk-2Q2ZZTUW.js +13 -0
- package/dist/chunk-2Q2ZZTUW.js.map +1 -0
- package/dist/chunk-4DUH2UHE.js +13 -0
- package/dist/chunk-4DUH2UHE.js.map +1 -0
- package/dist/chunk-5LQGSI6N.js +13 -0
- package/dist/chunk-5LQGSI6N.js.map +1 -0
- package/dist/chunk-6FZO4SMF.js +13 -0
- package/dist/chunk-6FZO4SMF.js.map +1 -0
- package/dist/chunk-AQMWZQ2P.js +13 -0
- package/dist/chunk-AQMWZQ2P.js.map +1 -0
- package/dist/chunk-BHZNDYU3.js +257 -0
- package/dist/chunk-BHZNDYU3.js.map +1 -0
- package/dist/chunk-BIIINOXE.js +13 -0
- package/dist/chunk-BIIINOXE.js.map +1 -0
- package/dist/chunk-CCFFHU7V.js +13 -0
- package/dist/chunk-CCFFHU7V.js.map +1 -0
- package/dist/chunk-CI4PGKUI.js +13 -0
- package/dist/chunk-CI4PGKUI.js.map +1 -0
- package/dist/chunk-CXXCUD4B.js +13 -0
- package/dist/chunk-CXXCUD4B.js.map +1 -0
- package/dist/chunk-DYK3SUIZ.js +13 -0
- package/dist/chunk-DYK3SUIZ.js.map +1 -0
- package/dist/chunk-DZPDZGM7.js +13 -0
- package/dist/chunk-DZPDZGM7.js.map +1 -0
- package/dist/chunk-FDROMD5U.js +13 -0
- package/dist/chunk-FDROMD5U.js.map +1 -0
- package/dist/chunk-G2A5PWIR.js +13 -0
- package/dist/chunk-G2A5PWIR.js.map +1 -0
- package/dist/chunk-HH2RZCH6.js +13 -0
- package/dist/chunk-HH2RZCH6.js.map +1 -0
- package/dist/chunk-HYQLSAEO.js +13 -0
- package/dist/chunk-HYQLSAEO.js.map +1 -0
- package/dist/chunk-INZGRNO3.js +100 -0
- package/dist/chunk-INZGRNO3.js.map +1 -0
- package/dist/chunk-JCIEWEQC.js +13 -0
- package/dist/chunk-JCIEWEQC.js.map +1 -0
- package/dist/chunk-KPWHWNZH.js +13 -0
- package/dist/chunk-KPWHWNZH.js.map +1 -0
- package/dist/chunk-KTBGRGB7.js +13 -0
- package/dist/chunk-KTBGRGB7.js.map +1 -0
- package/dist/chunk-LOIVX5IV.js +13 -0
- package/dist/chunk-LOIVX5IV.js.map +1 -0
- package/dist/chunk-M3X7JONW.js +13 -0
- package/dist/chunk-M3X7JONW.js.map +1 -0
- package/dist/chunk-NAYUAF7O.js +13 -0
- package/dist/chunk-NAYUAF7O.js.map +1 -0
- package/dist/chunk-NOVLEZPR.js +13 -0
- package/dist/chunk-NOVLEZPR.js.map +1 -0
- package/dist/chunk-O2DNGRM7.js +13 -0
- package/dist/chunk-O2DNGRM7.js.map +1 -0
- package/dist/chunk-ORIH4UQP.js +13 -0
- package/dist/chunk-ORIH4UQP.js.map +1 -0
- package/dist/chunk-PBT76UXS.js +13 -0
- package/dist/chunk-PBT76UXS.js.map +1 -0
- package/dist/chunk-R6PUPQUI.js +13 -0
- package/dist/chunk-R6PUPQUI.js.map +1 -0
- package/dist/chunk-RUC577P7.js +13 -0
- package/dist/chunk-RUC577P7.js.map +1 -0
- package/dist/chunk-V3PBT4XB.js +13 -0
- package/dist/chunk-V3PBT4XB.js.map +1 -0
- package/dist/chunk-WLHXHAEV.js +13 -0
- package/dist/chunk-WLHXHAEV.js.map +1 -0
- package/dist/chunk-Y7WZS3VB.js +13 -0
- package/dist/chunk-Y7WZS3VB.js.map +1 -0
- package/dist/chunk-YS5YVHK5.js +13 -0
- package/dist/chunk-YS5YVHK5.js.map +1 -0
- package/dist/composed-chart.d.ts +10 -0
- package/dist/composed-chart.js +9 -0
- package/dist/composed-chart.js.map +1 -0
- package/dist/coxcomb-chart.d.ts +10 -0
- package/dist/coxcomb-chart.js +9 -0
- package/dist/coxcomb-chart.js.map +1 -0
- package/dist/create-chart-BIG9Wtek.d.ts +18 -0
- package/dist/create-server-chart-B0LbkpQP.d.ts +16 -0
- package/dist/donut-chart.d.ts +10 -0
- package/dist/donut-chart.js +9 -0
- package/dist/donut-chart.js.map +1 -0
- package/dist/funnel-chart.d.ts +10 -0
- package/dist/funnel-chart.js +9 -0
- package/dist/funnel-chart.js.map +1 -0
- package/dist/gauge-arc.d.ts +10 -0
- package/dist/gauge-arc.js +9 -0
- package/dist/gauge-arc.js.map +1 -0
- package/dist/heatmap-chart.d.ts +10 -0
- package/dist/heatmap-chart.js +9 -0
- package/dist/heatmap-chart.js.map +1 -0
- package/dist/index.d.ts +46 -0
- package/dist/index.js +146 -0
- package/dist/index.js.map +1 -0
- package/dist/kpi-card.d.ts +10 -0
- package/dist/kpi-card.js +9 -0
- package/dist/kpi-card.js.map +1 -0
- package/dist/line-chart.d.ts +11 -0
- package/dist/line-chart.js +9 -0
- package/dist/line-chart.js.map +1 -0
- package/dist/meter-chart.d.ts +10 -0
- package/dist/meter-chart.js +9 -0
- package/dist/meter-chart.js.map +1 -0
- package/dist/orbit-chart.d.ts +10 -0
- package/dist/orbit-chart.js +9 -0
- package/dist/orbit-chart.js.map +1 -0
- package/dist/polar-bar-chart.d.ts +10 -0
- package/dist/polar-bar-chart.js +9 -0
- package/dist/polar-bar-chart.js.map +1 -0
- package/dist/pyramid-chart.d.ts +10 -0
- package/dist/pyramid-chart.js +9 -0
- package/dist/pyramid-chart.js.map +1 -0
- package/dist/radar-chart.d.ts +10 -0
- package/dist/radar-chart.js +9 -0
- package/dist/radar-chart.js.map +1 -0
- package/dist/radial-arc-group.d.ts +10 -0
- package/dist/radial-arc-group.js +9 -0
- package/dist/radial-arc-group.js.map +1 -0
- package/dist/radial-rings.d.ts +10 -0
- package/dist/radial-rings.js +9 -0
- package/dist/radial-rings.js.map +1 -0
- package/dist/range-band-chart.d.ts +10 -0
- package/dist/range-band-chart.js +9 -0
- package/dist/range-band-chart.js.map +1 -0
- package/dist/sankey-chart.d.ts +10 -0
- package/dist/sankey-chart.js +9 -0
- package/dist/sankey-chart.js.map +1 -0
- package/dist/scatter-chart.d.ts +10 -0
- package/dist/scatter-chart.js +9 -0
- package/dist/scatter-chart.js.map +1 -0
- package/dist/server/activity-grid.d.ts +12 -0
- package/dist/server/activity-grid.js +11 -0
- package/dist/server/activity-grid.js.map +1 -0
- package/dist/server/area-chart.d.ts +12 -0
- package/dist/server/area-chart.js +11 -0
- package/dist/server/area-chart.js.map +1 -0
- package/dist/server/bar-chart.d.ts +12 -0
- package/dist/server/bar-chart.js +11 -0
- package/dist/server/bar-chart.js.map +1 -0
- package/dist/server/bubble-chart.d.ts +12 -0
- package/dist/server/bubble-chart.js +11 -0
- package/dist/server/bubble-chart.js.map +1 -0
- package/dist/server/bullet-chart.d.ts +12 -0
- package/dist/server/bullet-chart.js +11 -0
- package/dist/server/bullet-chart.js.map +1 -0
- package/dist/server/candlestick-chart.d.ts +12 -0
- package/dist/server/candlestick-chart.js +11 -0
- package/dist/server/candlestick-chart.js.map +1 -0
- package/dist/server/chord-ring.d.ts +12 -0
- package/dist/server/chord-ring.js +11 -0
- package/dist/server/chord-ring.js.map +1 -0
- package/dist/server/composed-chart.d.ts +12 -0
- package/dist/server/composed-chart.js +11 -0
- package/dist/server/composed-chart.js.map +1 -0
- package/dist/server/coxcomb-chart.d.ts +12 -0
- package/dist/server/coxcomb-chart.js +11 -0
- package/dist/server/coxcomb-chart.js.map +1 -0
- package/dist/server/donut-chart.d.ts +12 -0
- package/dist/server/donut-chart.js +11 -0
- package/dist/server/donut-chart.js.map +1 -0
- package/dist/server/funnel-chart.d.ts +12 -0
- package/dist/server/funnel-chart.js +11 -0
- package/dist/server/funnel-chart.js.map +1 -0
- package/dist/server/gauge-arc.d.ts +12 -0
- package/dist/server/gauge-arc.js +11 -0
- package/dist/server/gauge-arc.js.map +1 -0
- package/dist/server/heatmap-chart.d.ts +12 -0
- package/dist/server/heatmap-chart.js +11 -0
- package/dist/server/heatmap-chart.js.map +1 -0
- package/dist/server/kpi-card.d.ts +12 -0
- package/dist/server/kpi-card.js +11 -0
- package/dist/server/kpi-card.js.map +1 -0
- package/dist/server/line-chart.d.ts +12 -0
- package/dist/server/line-chart.js +11 -0
- package/dist/server/line-chart.js.map +1 -0
- package/dist/server/meter-chart.d.ts +12 -0
- package/dist/server/meter-chart.js +11 -0
- package/dist/server/meter-chart.js.map +1 -0
- package/dist/server/orbit-chart.d.ts +12 -0
- package/dist/server/orbit-chart.js +11 -0
- package/dist/server/orbit-chart.js.map +1 -0
- package/dist/server/polar-bar-chart.d.ts +12 -0
- package/dist/server/polar-bar-chart.js +11 -0
- package/dist/server/polar-bar-chart.js.map +1 -0
- package/dist/server/pyramid-chart.d.ts +12 -0
- package/dist/server/pyramid-chart.js +11 -0
- package/dist/server/pyramid-chart.js.map +1 -0
- package/dist/server/radar-chart.d.ts +12 -0
- package/dist/server/radar-chart.js +11 -0
- package/dist/server/radar-chart.js.map +1 -0
- package/dist/server/radial-arc-group.d.ts +12 -0
- package/dist/server/radial-arc-group.js +11 -0
- package/dist/server/radial-arc-group.js.map +1 -0
- package/dist/server/radial-rings.d.ts +12 -0
- package/dist/server/radial-rings.js +11 -0
- package/dist/server/radial-rings.js.map +1 -0
- package/dist/server/range-band-chart.d.ts +12 -0
- package/dist/server/range-band-chart.js +11 -0
- package/dist/server/range-band-chart.js.map +1 -0
- package/dist/server/sankey-chart.d.ts +12 -0
- package/dist/server/sankey-chart.js +11 -0
- package/dist/server/sankey-chart.js.map +1 -0
- package/dist/server/scatter-chart.d.ts +12 -0
- package/dist/server/scatter-chart.js +11 -0
- package/dist/server/scatter-chart.js.map +1 -0
- package/dist/server/sparkline-rows.d.ts +12 -0
- package/dist/server/sparkline-rows.js +11 -0
- package/dist/server/sparkline-rows.js.map +1 -0
- package/dist/server/stacked-bar-chart.d.ts +12 -0
- package/dist/server/stacked-bar-chart.js +11 -0
- package/dist/server/stacked-bar-chart.js.map +1 -0
- package/dist/server/step-chart.d.ts +12 -0
- package/dist/server/step-chart.js +11 -0
- package/dist/server/step-chart.js.map +1 -0
- package/dist/server/stream-chart.d.ts +12 -0
- package/dist/server/stream-chart.js +11 -0
- package/dist/server/stream-chart.js.map +1 -0
- package/dist/server/treemap-chart.d.ts +12 -0
- package/dist/server/treemap-chart.js +11 -0
- package/dist/server/treemap-chart.js.map +1 -0
- package/dist/server/volvelle-chart.d.ts +12 -0
- package/dist/server/volvelle-chart.js +11 -0
- package/dist/server/volvelle-chart.js.map +1 -0
- package/dist/server/waterfall-chart.d.ts +12 -0
- package/dist/server/waterfall-chart.js +11 -0
- package/dist/server/waterfall-chart.js.map +1 -0
- package/dist/server/wind-rose.d.ts +12 -0
- package/dist/server/wind-rose.js +11 -0
- package/dist/server/wind-rose.js.map +1 -0
- package/dist/sparkline-rows.d.ts +10 -0
- package/dist/sparkline-rows.js +9 -0
- package/dist/sparkline-rows.js.map +1 -0
- package/dist/stacked-bar-chart.d.ts +10 -0
- package/dist/stacked-bar-chart.js +9 -0
- package/dist/stacked-bar-chart.js.map +1 -0
- package/dist/step-chart.d.ts +10 -0
- package/dist/step-chart.js +9 -0
- package/dist/step-chart.js.map +1 -0
- package/dist/stream-chart.d.ts +10 -0
- package/dist/stream-chart.js +9 -0
- package/dist/stream-chart.js.map +1 -0
- package/dist/treemap-chart.d.ts +10 -0
- package/dist/treemap-chart.js +9 -0
- package/dist/treemap-chart.js.map +1 -0
- package/dist/volvelle-chart.d.ts +10 -0
- package/dist/volvelle-chart.js +9 -0
- package/dist/volvelle-chart.js.map +1 -0
- package/dist/waterfall-chart.d.ts +10 -0
- package/dist/waterfall-chart.js +9 -0
- package/dist/waterfall-chart.js.map +1 -0
- package/dist/wind-rose.d.ts +10 -0
- package/dist/wind-rose.js +9 -0
- package/dist/wind-rose.js.map +1 -0
- package/package.json +448 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { I as InteractionProps, C as ClientChart } from './create-chart-BIG9Wtek.js';
|
|
2
|
+
import { ComposedChartProps } from '@silverpoint/core';
|
|
3
|
+
export { ChartHandle, ComposedChartProps } from '@silverpoint/core';
|
|
4
|
+
import 'react';
|
|
5
|
+
|
|
6
|
+
type ClientComposedChartProps = ComposedChartProps & InteractionProps;
|
|
7
|
+
/** `ComposedChart` (REQ-066): columns and a spline on one scale (API Spec §7). */
|
|
8
|
+
declare const ComposedChart: ClientChart<ComposedChartProps>;
|
|
9
|
+
|
|
10
|
+
export { type ClientComposedChartProps, ComposedChart, InteractionProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { I as InteractionProps, C as ClientChart } from './create-chart-BIG9Wtek.js';
|
|
2
|
+
import { CoxcombChartProps } from '@silverpoint/core';
|
|
3
|
+
export { ChartHandle, CoxcombChartProps } from '@silverpoint/core';
|
|
4
|
+
import 'react';
|
|
5
|
+
|
|
6
|
+
type ClientCoxcombChartProps = CoxcombChartProps & InteractionProps;
|
|
7
|
+
/** `CoxcombChart` (REQ-088): equal angles, area ∝ value (API Spec §7). */
|
|
8
|
+
declare const CoxcombChart: ClientChart<CoxcombChartProps>;
|
|
9
|
+
|
|
10
|
+
export { type ClientCoxcombChartProps, CoxcombChart, InteractionProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ActiveItem, Readout, ChartHandle } from '@silverpoint/core';
|
|
2
|
+
import { ReactNode, ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
3
|
+
|
|
4
|
+
/** A consumer-supplied readout renderer (REQ-142). */
|
|
5
|
+
type TooltipRenderer = (active: ActiveItem, readout: Readout) => ReactNode;
|
|
6
|
+
|
|
7
|
+
/** Interaction props of the client components (API Spec §9). */
|
|
8
|
+
interface InteractionProps {
|
|
9
|
+
/** The active item changed, or `null` when it cleared (REQ-141, REQ-143). */
|
|
10
|
+
onActiveChange?: (item: ActiveItem | null) => void;
|
|
11
|
+
/** An item was chosen by click, Enter or Space. */
|
|
12
|
+
onSelect?: (item: ActiveItem) => void;
|
|
13
|
+
/** Replaces the built-in readout (REQ-142). */
|
|
14
|
+
tooltip?: TooltipRenderer;
|
|
15
|
+
}
|
|
16
|
+
type ClientChart<P> = ForwardRefExoticComponent<P & InteractionProps & RefAttributes<ChartHandle>>;
|
|
17
|
+
|
|
18
|
+
export type { ClientChart as C, InteractionProps as I, TooltipRenderer as T };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { CommonChartProps } from '@silverpoint/core';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Props of a server chart: pure SVG, no client JavaScript (REQ-104). Size is explicit because
|
|
5
|
+
* nothing can be measured on the server; the id is explicit because a server component has no
|
|
6
|
+
* mount position to derive a unique one from (TD §6); interaction props do not exist here.
|
|
7
|
+
*/
|
|
8
|
+
type ServerChartProps<P extends CommonChartProps> = Omit<P, 'id' | 'width' | 'height'> & {
|
|
9
|
+
readonly id: string;
|
|
10
|
+
readonly width: number;
|
|
11
|
+
readonly height: number;
|
|
12
|
+
readonly onActiveChange?: never;
|
|
13
|
+
readonly onSelect?: never;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export type { ServerChartProps as S };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { I as InteractionProps, C as ClientChart } from './create-chart-BIG9Wtek.js';
|
|
2
|
+
import { DonutChartProps } from '@silverpoint/core';
|
|
3
|
+
export { ChartHandle, DonutChartProps } from '@silverpoint/core';
|
|
4
|
+
import 'react';
|
|
5
|
+
|
|
6
|
+
type ClientDonutChartProps = DonutChartProps & InteractionProps;
|
|
7
|
+
/** `DonutChart` (REQ-075): sectors ∝ value around a central readout (API Spec §7). */
|
|
8
|
+
declare const DonutChart: ClientChart<DonutChartProps>;
|
|
9
|
+
|
|
10
|
+
export { type ClientDonutChartProps, DonutChart, InteractionProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { I as InteractionProps, C as ClientChart } from './create-chart-BIG9Wtek.js';
|
|
2
|
+
import { FunnelChartProps } from '@silverpoint/core';
|
|
3
|
+
export { ChartHandle, FunnelChartProps } from '@silverpoint/core';
|
|
4
|
+
import 'react';
|
|
5
|
+
|
|
6
|
+
type ClientFunnelChartProps = FunnelChartProps & InteractionProps;
|
|
7
|
+
/** `FunnelChart` (REQ-068): centred stages, width by value (API Spec §7). */
|
|
8
|
+
declare const FunnelChart: ClientChart<FunnelChartProps>;
|
|
9
|
+
|
|
10
|
+
export { type ClientFunnelChartProps, FunnelChart, InteractionProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { I as InteractionProps, C as ClientChart } from './create-chart-BIG9Wtek.js';
|
|
2
|
+
import { GaugeArcProps } from '@silverpoint/core';
|
|
3
|
+
export { ChartHandle, GaugeArcProps } from '@silverpoint/core';
|
|
4
|
+
import 'react';
|
|
5
|
+
|
|
6
|
+
type ClientGaugeArcProps = GaugeArcProps & InteractionProps;
|
|
7
|
+
/** `GaugeArc` (REQ-080): a 240° arc swept to a percent (API Spec §7). */
|
|
8
|
+
declare const GaugeArc: ClientChart<GaugeArcProps>;
|
|
9
|
+
|
|
10
|
+
export { type ClientGaugeArcProps, GaugeArc, InteractionProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { I as InteractionProps, C as ClientChart } from './create-chart-BIG9Wtek.js';
|
|
2
|
+
import { HeatmapChartProps } from '@silverpoint/core';
|
|
3
|
+
export { ChartHandle, HeatmapChartProps } from '@silverpoint/core';
|
|
4
|
+
import 'react';
|
|
5
|
+
|
|
6
|
+
type ClientHeatmapChartProps = HeatmapChartProps & InteractionProps;
|
|
7
|
+
/** `HeatmapChart` (REQ-084): labelled rows of cells, toned by value and printed (API Spec §7). */
|
|
8
|
+
declare const HeatmapChart: ClientChart<HeatmapChartProps>;
|
|
9
|
+
|
|
10
|
+
export { type ClientHeatmapChartProps, HeatmapChart, InteractionProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export { ClientLineChartProps, LineChart } from './line-chart.js';
|
|
2
|
+
export { BulletChart, ClientBulletChartProps } from './bullet-chart.js';
|
|
3
|
+
export { ClientPyramidChartProps, PyramidChart } from './pyramid-chart.js';
|
|
4
|
+
export { ClientHeatmapChartProps, HeatmapChart } from './heatmap-chart.js';
|
|
5
|
+
export { ClientTreemapChartProps, TreemapChart } from './treemap-chart.js';
|
|
6
|
+
export { ClientSankeyChartProps, SankeyChart } from './sankey-chart.js';
|
|
7
|
+
export { ActivityGrid, ClientActivityGridProps } from './activity-grid.js';
|
|
8
|
+
export { ClientStepChartProps, StepChart } from './step-chart.js';
|
|
9
|
+
export { ClientSparklineRowsProps, SparklineRows } from './sparkline-rows.js';
|
|
10
|
+
export { ClientKpiCardProps, KpiCard } from './kpi-card.js';
|
|
11
|
+
export { BarChart, ClientBarChartProps } from './bar-chart.js';
|
|
12
|
+
export { ClientStackedBarChartProps, StackedBarChart } from './stacked-bar-chart.js';
|
|
13
|
+
export { ClientComposedChartProps, ComposedChart } from './composed-chart.js';
|
|
14
|
+
export { ClientWaterfallChartProps, WaterfallChart } from './waterfall-chart.js';
|
|
15
|
+
export { ClientFunnelChartProps, FunnelChart } from './funnel-chart.js';
|
|
16
|
+
export { CandlestickChart, ClientCandlestickChartProps } from './candlestick-chart.js';
|
|
17
|
+
export { AreaChart, ClientAreaChartProps } from './area-chart.js';
|
|
18
|
+
export { ClientRangeBandChartProps, RangeBandChart } from './range-band-chart.js';
|
|
19
|
+
export { ClientStreamChartProps, StreamChart } from './stream-chart.js';
|
|
20
|
+
export { ClientScatterChartProps, ScatterChart } from './scatter-chart.js';
|
|
21
|
+
export { BubbleChart, ClientBubbleChartProps } from './bubble-chart.js';
|
|
22
|
+
export { ClientDonutChartProps, DonutChart } from './donut-chart.js';
|
|
23
|
+
export { ClientRadarChartProps, RadarChart } from './radar-chart.js';
|
|
24
|
+
export { ClientPolarBarChartProps, PolarBarChart } from './polar-bar-chart.js';
|
|
25
|
+
export { ClientRadialArcGroupProps, RadialArcGroup } from './radial-arc-group.js';
|
|
26
|
+
export { ClientRadialRingsProps, RadialRings } from './radial-rings.js';
|
|
27
|
+
export { ClientGaugeArcProps, GaugeArc } from './gauge-arc.js';
|
|
28
|
+
export { ClientMeterChartProps, MeterChart } from './meter-chart.js';
|
|
29
|
+
export { ClientCoxcombChartProps, CoxcombChart } from './coxcomb-chart.js';
|
|
30
|
+
export { ClientWindRoseProps, WindRose } from './wind-rose.js';
|
|
31
|
+
export { ClientVolvelleChartProps, VolvelleChart } from './volvelle-chart.js';
|
|
32
|
+
export { ChordRing, ClientChordRingProps } from './chord-ring.js';
|
|
33
|
+
export { ClientOrbitChartProps, OrbitChart } from './orbit-chart.js';
|
|
34
|
+
export { I as InteractionProps, T as TooltipRenderer } from './create-chart-BIG9Wtek.js';
|
|
35
|
+
import * as react from 'react';
|
|
36
|
+
import { ReactNode } from 'react';
|
|
37
|
+
import { ProviderConfig } from '@silverpoint/core';
|
|
38
|
+
export { ActivityGridProps, AreaChartProps, BarChartProps, BubbleChartProps, BulletChartProps, CandlestickChartProps, ChartHandle, ChordRingProps, ComposedChartProps, CoxcombChartProps, DonutChartProps, FunnelChartProps, GaugeArcProps, HeatmapChartProps, KpiCardProps, LineChartProps, MeterChartProps, OrbitChartProps, PolarBarChartProps, ProviderConfig, PyramidChartProps, RadarChartProps, RadialArcGroupProps, RadialRingsProps, RangeBandChartProps, SankeyChartProps, ScatterChartProps, SparklineRowsProps, StackedBarChartProps, StepChartProps, StreamChartProps, TreemapChartProps, VolvelleChartProps, WaterfallChartProps, WindRoseProps } from '@silverpoint/core';
|
|
39
|
+
|
|
40
|
+
interface SilverpointProviderProps extends ProviderConfig {
|
|
41
|
+
readonly children?: ReactNode;
|
|
42
|
+
}
|
|
43
|
+
/** Sets ground, substrate, mode and locale once for every chart below it (API Spec §8.1). */
|
|
44
|
+
declare function SilverpointProvider({ children, ...config }: SilverpointProviderProps): react.JSX.Element;
|
|
45
|
+
|
|
46
|
+
export { SilverpointProvider, type SilverpointProviderProps };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import {
|
|
3
|
+
ChordRing
|
|
4
|
+
} from "./chunk-2OAPH7JN.js";
|
|
5
|
+
import {
|
|
6
|
+
OrbitChart
|
|
7
|
+
} from "./chunk-NAYUAF7O.js";
|
|
8
|
+
import {
|
|
9
|
+
PolarBarChart
|
|
10
|
+
} from "./chunk-5LQGSI6N.js";
|
|
11
|
+
import {
|
|
12
|
+
RadialArcGroup
|
|
13
|
+
} from "./chunk-WLHXHAEV.js";
|
|
14
|
+
import {
|
|
15
|
+
RadialRings
|
|
16
|
+
} from "./chunk-M3X7JONW.js";
|
|
17
|
+
import {
|
|
18
|
+
GaugeArc
|
|
19
|
+
} from "./chunk-AQMWZQ2P.js";
|
|
20
|
+
import {
|
|
21
|
+
MeterChart
|
|
22
|
+
} from "./chunk-LOIVX5IV.js";
|
|
23
|
+
import {
|
|
24
|
+
CoxcombChart
|
|
25
|
+
} from "./chunk-G2A5PWIR.js";
|
|
26
|
+
import {
|
|
27
|
+
WindRose
|
|
28
|
+
} from "./chunk-RUC577P7.js";
|
|
29
|
+
import {
|
|
30
|
+
VolvelleChart
|
|
31
|
+
} from "./chunk-HYQLSAEO.js";
|
|
32
|
+
import {
|
|
33
|
+
CandlestickChart
|
|
34
|
+
} from "./chunk-KPWHWNZH.js";
|
|
35
|
+
import {
|
|
36
|
+
AreaChart
|
|
37
|
+
} from "./chunk-ORIH4UQP.js";
|
|
38
|
+
import {
|
|
39
|
+
RangeBandChart
|
|
40
|
+
} from "./chunk-CI4PGKUI.js";
|
|
41
|
+
import {
|
|
42
|
+
StreamChart
|
|
43
|
+
} from "./chunk-BIIINOXE.js";
|
|
44
|
+
import {
|
|
45
|
+
ScatterChart
|
|
46
|
+
} from "./chunk-DYK3SUIZ.js";
|
|
47
|
+
import {
|
|
48
|
+
BubbleChart
|
|
49
|
+
} from "./chunk-6FZO4SMF.js";
|
|
50
|
+
import {
|
|
51
|
+
DonutChart
|
|
52
|
+
} from "./chunk-YS5YVHK5.js";
|
|
53
|
+
import {
|
|
54
|
+
RadarChart
|
|
55
|
+
} from "./chunk-DZPDZGM7.js";
|
|
56
|
+
import {
|
|
57
|
+
StepChart
|
|
58
|
+
} from "./chunk-FDROMD5U.js";
|
|
59
|
+
import {
|
|
60
|
+
SparklineRows
|
|
61
|
+
} from "./chunk-JCIEWEQC.js";
|
|
62
|
+
import {
|
|
63
|
+
KpiCard
|
|
64
|
+
} from "./chunk-CCFFHU7V.js";
|
|
65
|
+
import {
|
|
66
|
+
BarChart
|
|
67
|
+
} from "./chunk-4DUH2UHE.js";
|
|
68
|
+
import {
|
|
69
|
+
StackedBarChart
|
|
70
|
+
} from "./chunk-2JXPSUCK.js";
|
|
71
|
+
import {
|
|
72
|
+
ComposedChart
|
|
73
|
+
} from "./chunk-Y7WZS3VB.js";
|
|
74
|
+
import {
|
|
75
|
+
WaterfallChart
|
|
76
|
+
} from "./chunk-NOVLEZPR.js";
|
|
77
|
+
import {
|
|
78
|
+
FunnelChart
|
|
79
|
+
} from "./chunk-R6PUPQUI.js";
|
|
80
|
+
import {
|
|
81
|
+
LineChart
|
|
82
|
+
} from "./chunk-CXXCUD4B.js";
|
|
83
|
+
import {
|
|
84
|
+
BulletChart
|
|
85
|
+
} from "./chunk-O2DNGRM7.js";
|
|
86
|
+
import {
|
|
87
|
+
PyramidChart
|
|
88
|
+
} from "./chunk-2Q2ZZTUW.js";
|
|
89
|
+
import {
|
|
90
|
+
HeatmapChart
|
|
91
|
+
} from "./chunk-KTBGRGB7.js";
|
|
92
|
+
import {
|
|
93
|
+
TreemapChart
|
|
94
|
+
} from "./chunk-HH2RZCH6.js";
|
|
95
|
+
import {
|
|
96
|
+
SankeyChart
|
|
97
|
+
} from "./chunk-V3PBT4XB.js";
|
|
98
|
+
import {
|
|
99
|
+
ActivityGrid
|
|
100
|
+
} from "./chunk-PBT76UXS.js";
|
|
101
|
+
import {
|
|
102
|
+
SilverpointContext
|
|
103
|
+
} from "./chunk-BHZNDYU3.js";
|
|
104
|
+
|
|
105
|
+
// src/provider.tsx
|
|
106
|
+
import { jsx } from "react/jsx-runtime";
|
|
107
|
+
function SilverpointProvider({ children, ...config }) {
|
|
108
|
+
return /* @__PURE__ */ jsx(SilverpointContext.Provider, { value: config, children });
|
|
109
|
+
}
|
|
110
|
+
export {
|
|
111
|
+
ActivityGrid,
|
|
112
|
+
AreaChart,
|
|
113
|
+
BarChart,
|
|
114
|
+
BubbleChart,
|
|
115
|
+
BulletChart,
|
|
116
|
+
CandlestickChart,
|
|
117
|
+
ChordRing,
|
|
118
|
+
ComposedChart,
|
|
119
|
+
CoxcombChart,
|
|
120
|
+
DonutChart,
|
|
121
|
+
FunnelChart,
|
|
122
|
+
GaugeArc,
|
|
123
|
+
HeatmapChart,
|
|
124
|
+
KpiCard,
|
|
125
|
+
LineChart,
|
|
126
|
+
MeterChart,
|
|
127
|
+
OrbitChart,
|
|
128
|
+
PolarBarChart,
|
|
129
|
+
PyramidChart,
|
|
130
|
+
RadarChart,
|
|
131
|
+
RadialArcGroup,
|
|
132
|
+
RadialRings,
|
|
133
|
+
RangeBandChart,
|
|
134
|
+
SankeyChart,
|
|
135
|
+
ScatterChart,
|
|
136
|
+
SilverpointProvider,
|
|
137
|
+
SparklineRows,
|
|
138
|
+
StackedBarChart,
|
|
139
|
+
StepChart,
|
|
140
|
+
StreamChart,
|
|
141
|
+
TreemapChart,
|
|
142
|
+
VolvelleChart,
|
|
143
|
+
WaterfallChart,
|
|
144
|
+
WindRose
|
|
145
|
+
};
|
|
146
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/provider.tsx"],"sourcesContent":["import type { ProviderConfig } from '@silverpoint/core';\nimport type { ReactNode } from 'react';\nimport { SilverpointContext } from './context';\n\nexport interface SilverpointProviderProps extends ProviderConfig {\n readonly children?: ReactNode;\n}\n\n/** Sets ground, substrate, mode and locale once for every chart below it (API Spec §8.1). */\nexport function SilverpointProvider({ children, ...config }: SilverpointProviderProps) {\n return <SilverpointContext.Provider value={config}>{children}</SilverpointContext.Provider>;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAUS;AADF,SAAS,oBAAoB,EAAE,UAAU,GAAG,OAAO,GAA6B;AACrF,SAAO,oBAAC,mBAAmB,UAAnB,EAA4B,OAAO,QAAS,UAAS;AAC/D;","names":[]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { I as InteractionProps, C as ClientChart } from './create-chart-BIG9Wtek.js';
|
|
2
|
+
import { KpiCardProps } from '@silverpoint/core';
|
|
3
|
+
export { ChartHandle, KpiCardProps } from '@silverpoint/core';
|
|
4
|
+
import 'react';
|
|
5
|
+
|
|
6
|
+
type ClientKpiCardProps = KpiCardProps & InteractionProps;
|
|
7
|
+
/** `KpiCard` (REQ-063): a figure, its signed delta and an area sparkline (API Spec §7). */
|
|
8
|
+
declare const KpiCard: ClientChart<KpiCardProps>;
|
|
9
|
+
|
|
10
|
+
export { type ClientKpiCardProps, InteractionProps, KpiCard };
|
package/dist/kpi-card.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { I as InteractionProps, C as ClientChart } from './create-chart-BIG9Wtek.js';
|
|
2
|
+
export { T as TooltipRenderer } from './create-chart-BIG9Wtek.js';
|
|
3
|
+
import { LineChartProps } from '@silverpoint/core';
|
|
4
|
+
export { ChartHandle, LineChartProps } from '@silverpoint/core';
|
|
5
|
+
import 'react';
|
|
6
|
+
|
|
7
|
+
type ClientLineChartProps = LineChartProps & InteractionProps;
|
|
8
|
+
/** `LineChart` (REQ-060): spline with a dotted baseline series (API Spec §7). */
|
|
9
|
+
declare const LineChart: ClientChart<LineChartProps>;
|
|
10
|
+
|
|
11
|
+
export { type ClientLineChartProps, InteractionProps, LineChart };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { I as InteractionProps, C as ClientChart } from './create-chart-BIG9Wtek.js';
|
|
2
|
+
import { MeterChartProps } from '@silverpoint/core';
|
|
3
|
+
export { ChartHandle, MeterChartProps } from '@silverpoint/core';
|
|
4
|
+
import 'react';
|
|
5
|
+
|
|
6
|
+
type ClientMeterChartProps = MeterChartProps & InteractionProps;
|
|
7
|
+
/** `MeterChart` (REQ-081): a semicircular meter with a needle (API Spec §7). */
|
|
8
|
+
declare const MeterChart: ClientChart<MeterChartProps>;
|
|
9
|
+
|
|
10
|
+
export { type ClientMeterChartProps, InteractionProps, MeterChart };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { I as InteractionProps, C as ClientChart } from './create-chart-BIG9Wtek.js';
|
|
2
|
+
import { OrbitChartProps } from '@silverpoint/core';
|
|
3
|
+
export { ChartHandle, OrbitChartProps } from '@silverpoint/core';
|
|
4
|
+
import 'react';
|
|
5
|
+
|
|
6
|
+
type ClientOrbitChartProps = OrbitChartProps & InteractionProps;
|
|
7
|
+
/** `OrbitChart` (REQ-092): nested orbits with markers along them (API Spec §7). */
|
|
8
|
+
declare const OrbitChart: ClientChart<OrbitChartProps>;
|
|
9
|
+
|
|
10
|
+
export { type ClientOrbitChartProps, InteractionProps, OrbitChart };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { I as InteractionProps, C as ClientChart } from './create-chart-BIG9Wtek.js';
|
|
2
|
+
import { PolarBarChartProps } from '@silverpoint/core';
|
|
3
|
+
export { ChartHandle, PolarBarChartProps } from '@silverpoint/core';
|
|
4
|
+
import 'react';
|
|
5
|
+
|
|
6
|
+
type ClientPolarBarChartProps = PolarBarChartProps & InteractionProps;
|
|
7
|
+
/** `PolarBarChart` (REQ-077): 360° bars, length ∝ value (API Spec §7). */
|
|
8
|
+
declare const PolarBarChart: ClientChart<PolarBarChartProps>;
|
|
9
|
+
|
|
10
|
+
export { type ClientPolarBarChartProps, InteractionProps, PolarBarChart };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { I as InteractionProps, C as ClientChart } from './create-chart-BIG9Wtek.js';
|
|
2
|
+
import { PyramidChartProps } from '@silverpoint/core';
|
|
3
|
+
export { ChartHandle, PyramidChartProps } from '@silverpoint/core';
|
|
4
|
+
import 'react';
|
|
5
|
+
|
|
6
|
+
type ClientPyramidChartProps = PyramidChartProps & InteractionProps;
|
|
7
|
+
/** `PyramidChart` (REQ-070): stacked, centred tiers whose width encodes the value (API Spec §7). */
|
|
8
|
+
declare const PyramidChart: ClientChart<PyramidChartProps>;
|
|
9
|
+
|
|
10
|
+
export { type ClientPyramidChartProps, InteractionProps, PyramidChart };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { I as InteractionProps, C as ClientChart } from './create-chart-BIG9Wtek.js';
|
|
2
|
+
import { RadarChartProps } from '@silverpoint/core';
|
|
3
|
+
export { ChartHandle, RadarChartProps } from '@silverpoint/core';
|
|
4
|
+
import 'react';
|
|
5
|
+
|
|
6
|
+
type ClientRadarChartProps = RadarChartProps & InteractionProps;
|
|
7
|
+
/** `RadarChart` (REQ-076): one spoke per subject, a closed polygon of values (API Spec §7). */
|
|
8
|
+
declare const RadarChart: ClientChart<RadarChartProps>;
|
|
9
|
+
|
|
10
|
+
export { type ClientRadarChartProps, InteractionProps, RadarChart };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { I as InteractionProps, C as ClientChart } from './create-chart-BIG9Wtek.js';
|
|
2
|
+
import { RadialArcGroupProps } from '@silverpoint/core';
|
|
3
|
+
export { ChartHandle, RadialArcGroupProps } from '@silverpoint/core';
|
|
4
|
+
import 'react';
|
|
5
|
+
|
|
6
|
+
type ClientRadialArcGroupProps = RadialArcGroupProps & InteractionProps;
|
|
7
|
+
/** `RadialArcGroup` (REQ-078): concentric 180° tracks (API Spec §7). */
|
|
8
|
+
declare const RadialArcGroup: ClientChart<RadialArcGroupProps>;
|
|
9
|
+
|
|
10
|
+
export { type ClientRadialArcGroupProps, InteractionProps, RadialArcGroup };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { I as InteractionProps, C as ClientChart } from './create-chart-BIG9Wtek.js';
|
|
2
|
+
import { RadialRingsProps } from '@silverpoint/core';
|
|
3
|
+
export { ChartHandle, RadialRingsProps } from '@silverpoint/core';
|
|
4
|
+
import 'react';
|
|
5
|
+
|
|
6
|
+
type ClientRadialRingsProps = RadialRingsProps & InteractionProps;
|
|
7
|
+
/** `RadialRings` (REQ-079): concentric progress rings (API Spec §7). */
|
|
8
|
+
declare const RadialRings: ClientChart<RadialRingsProps>;
|
|
9
|
+
|
|
10
|
+
export { type ClientRadialRingsProps, InteractionProps, RadialRings };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { I as InteractionProps, C as ClientChart } from './create-chart-BIG9Wtek.js';
|
|
2
|
+
import { RangeBandChartProps } from '@silverpoint/core';
|
|
3
|
+
export { ChartHandle, RangeBandChartProps } from '@silverpoint/core';
|
|
4
|
+
import 'react';
|
|
5
|
+
|
|
6
|
+
type ClientRangeBandChartProps = RangeBandChartProps & InteractionProps;
|
|
7
|
+
/** `RangeBandChart` (REQ-073): the band between a low and a high series (API Spec §7). */
|
|
8
|
+
declare const RangeBandChart: ClientChart<RangeBandChartProps>;
|
|
9
|
+
|
|
10
|
+
export { type ClientRangeBandChartProps, InteractionProps, RangeBandChart };
|