@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/chart-D6BE0zF5.js +18381 -0
- package/dist/charts.d.ts +8 -12
- package/dist/charts.mjs +1276 -7572
- package/dist/index.d.ts +607 -477
- package/dist/index.mjs +15631 -31844
- package/dist/tokens.css +0 -36
- package/motion.css +75 -0
- package/package.json +19 -5
- package/theme.v2.css +240 -0
- package/tokens.v2.css +537 -0
- package/dist/utils-BZS7Y02J.js +0 -1692
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:
|
|
68
|
+
readonly borderRadius: "var(--corner-surface-nested)";
|
|
68
69
|
readonly border: "1px solid #E2E8F0";
|
|
69
|
-
readonly boxShadow: "
|
|
70
|
-
readonly fontSize:
|
|
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
|
-
}
|