@sequenceholdings/atlas-ui 0.1.3 → 0.3.1

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/charts.d.ts CHANGED
@@ -57,6 +57,7 @@ export declare const CHART_JS_TOOLTIP_STYLE: {
57
57
  readonly boxPadding: 4;
58
58
  };
59
59
 
60
+ /** DES-334: computed — Chart.js / Recharts tick APIs take numeric px, not CSS vars */
60
61
  export declare const CHART_TICK: {
61
62
  readonly fontSize: 10;
62
63
  readonly fill: "#94A3B8";
@@ -64,10 +65,10 @@ export declare const CHART_TICK: {
64
65
  };
65
66
 
66
67
  export declare const CHART_TOOLTIP: {
67
- readonly borderRadius: 8;
68
+ readonly borderRadius: "var(--corner-surface-nested)";
68
69
  readonly border: "1px solid #E2E8F0";
69
- readonly boxShadow: "0 2px 8px rgba(0,0,0,0.06)";
70
- readonly fontSize: 12;
70
+ readonly boxShadow: "var(--elevation-popover)";
71
+ readonly fontSize: "var(--type-caption)";
71
72
  readonly fontFamily: "ui-monospace, monospace";
72
73
  };
73
74
 
@@ -127,7 +128,7 @@ declare interface StackedBarChartProps {
127
128
  labels: string[];
128
129
  datasets: BarDataset[];
129
130
  stacked?: boolean;
130
- yFormat?: 'currency' | 'count';
131
+ yFormat?: 'currency' | 'count' | 'percent';
131
132
  onClick?: (index: number) => void;
132
133
  barTotals?: boolean;
133
134
  maxTicksLimit?: number;
@@ -135,7 +136,7 @@ declare interface StackedBarChartProps {
135
136
  className?: string;
136
137
  }
137
138
 
138
- export declare function TimeseriesLineChart({ labels, datasets, yFormat, tension, maxTicksLimit, height, className, }: TimeseriesLineChartProps): JSX.Element | null;
139
+ export declare function TimeseriesLineChart({ labels, datasets, yFormat, tension, maxTicksLimit, showPoints, showValueLabels, height, className, }: TimeseriesLineChartProps): JSX.Element | null;
139
140
 
140
141
  declare interface TimeseriesLineChartProps {
141
142
  labels: string[];
@@ -143,15 +144,10 @@ declare interface TimeseriesLineChartProps {
143
144
  yFormat?: 'currency' | 'percent' | 'number';
144
145
  tension?: number;
145
146
  maxTicksLimit?: number;
147
+ showPoints?: boolean;
148
+ showValueLabels?: boolean;
146
149
  height?: number;
147
150
  className?: string;
148
151
  }
149
152
 
150
153
  export { }
151
-
152
-
153
- declare module 'chart.js' {
154
- interface TooltipPositionerMap {
155
- cursor: TooltipPositionerFunction<ChartType>;
156
- }
157
- }