@ledgerhq/lumen-ui-react-visualization 0.1.15 → 0.1.16
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/lib/Components/Axis/Axis.constants.d.ts +9 -0
- package/dist/lib/Components/Axis/Axis.constants.d.ts.map +1 -0
- package/dist/lib/Components/Axis/Axis.constants.js +24 -0
- package/dist/lib/Components/Axis/Axis.types.d.ts +37 -0
- package/dist/lib/Components/Axis/Axis.types.d.ts.map +1 -1
- package/dist/lib/Components/Axis/XAxis/XAxis.d.ts +0 -1
- package/dist/lib/Components/Axis/XAxis/XAxis.d.ts.map +1 -1
- package/dist/lib/Components/Axis/XAxis/XAxis.js +21 -22
- package/dist/lib/Components/Axis/XAxis/index.d.ts +1 -1
- package/dist/lib/Components/Axis/XAxis/index.d.ts.map +1 -1
- package/dist/lib/Components/Axis/YAxis/YAxis.d.ts +0 -1
- package/dist/lib/Components/Axis/YAxis/YAxis.d.ts.map +1 -1
- package/dist/lib/Components/Axis/YAxis/YAxis.js +16 -17
- package/dist/lib/Components/Axis/YAxis/index.d.ts +1 -1
- package/dist/lib/Components/Axis/YAxis/index.d.ts.map +1 -1
- package/dist/lib/Components/Axis/index.d.ts +3 -0
- package/dist/lib/Components/Axis/index.d.ts.map +1 -0
- package/dist/lib/Components/CartesianChart/CartesianChart.d.ts +1 -1
- package/dist/lib/Components/CartesianChart/CartesianChart.d.ts.map +1 -1
- package/dist/lib/Components/CartesianChart/CartesianChart.js +62 -58
- package/dist/lib/Components/CartesianChart/context/useBuildChartContext.d.ts +7 -4
- package/dist/lib/Components/CartesianChart/context/useBuildChartContext.d.ts.map +1 -1
- package/dist/lib/Components/CartesianChart/context/useBuildChartContext.js +31 -31
- package/dist/lib/Components/CartesianChart/types.d.ts +11 -3
- package/dist/lib/Components/CartesianChart/types.d.ts.map +1 -1
- package/dist/lib/Components/CartesianChart/utils.d.ts +19 -8
- package/dist/lib/Components/CartesianChart/utils.d.ts.map +1 -1
- package/dist/lib/Components/CartesianChart/utils.js +10 -11
- package/dist/lib/Components/Line/utils.d.ts +4 -0
- package/dist/lib/Components/Line/utils.d.ts.map +1 -1
- package/dist/lib/Components/Line/utils.js +15 -15
- package/dist/lib/Components/LineChart/LineChart.d.ts +1 -1
- package/dist/lib/Components/LineChart/LineChart.d.ts.map +1 -1
- package/dist/lib/Components/LineChart/LineChart.js +64 -74
- package/dist/lib/Components/LineChart/__stories__/cryptoChartData.d.ts +85 -0
- package/dist/lib/Components/LineChart/__stories__/cryptoChartData.d.ts.map +1 -0
- package/dist/lib/Components/LineChart/types.d.ts +10 -3
- package/dist/lib/Components/LineChart/types.d.ts.map +1 -1
- package/dist/lib/Components/Point/Point.d.ts +1 -1
- package/dist/lib/Components/Point/Point.d.ts.map +1 -1
- package/dist/lib/Components/Point/Point.js +35 -30
- package/dist/lib/Components/Point/constants.d.ts +7 -0
- package/dist/lib/Components/Point/constants.d.ts.map +1 -0
- package/dist/lib/Components/Point/constants.js +9 -0
- package/dist/lib/Components/Point/pointContext/MagneticPointsProvider.d.ts +7 -0
- package/dist/lib/Components/Point/pointContext/MagneticPointsProvider.d.ts.map +1 -0
- package/dist/lib/Components/Point/pointContext/MagneticPointsProvider.js +19 -0
- package/dist/lib/Components/Point/pointContext/index.d.ts +3 -0
- package/dist/lib/Components/Point/pointContext/index.d.ts.map +1 -0
- package/dist/lib/Components/Point/pointContext/magneticPointsContext.d.ts +13 -0
- package/dist/lib/Components/Point/pointContext/magneticPointsContext.d.ts.map +1 -0
- package/dist/lib/Components/Point/pointContext/magneticPointsContext.js +9 -0
- package/dist/lib/Components/Point/types.d.ts +7 -0
- package/dist/lib/Components/Point/types.d.ts.map +1 -1
- package/dist/lib/Components/Point/utils.d.ts +8 -6
- package/dist/lib/Components/Point/utils.d.ts.map +1 -1
- package/dist/lib/Components/Point/utils.js +32 -20
- package/dist/lib/Components/ReferenceLine/constants.d.ts +1 -1
- package/dist/lib/Components/ReferenceLine/constants.d.ts.map +1 -1
- package/dist/lib/Components/ReferenceLine/utils.d.ts +3 -2
- package/dist/lib/Components/ReferenceLine/utils.d.ts.map +1 -1
- package/dist/lib/Components/Scrubber/ScrubberProvider.d.ts +1 -1
- package/dist/lib/Components/Scrubber/ScrubberProvider.d.ts.map +1 -1
- package/dist/lib/Components/Scrubber/ScrubberProvider.js +97 -72
- package/dist/lib/Components/Scrubber/types.d.ts +6 -0
- package/dist/lib/Components/Scrubber/types.d.ts.map +1 -1
- package/dist/lib/Components/Scrubber/utils.d.ts +33 -3
- package/dist/lib/Components/Scrubber/utils.d.ts.map +1 -1
- package/dist/lib/Components/Scrubber/utils.js +71 -37
- package/dist/lib/utils/domain/domain.d.ts +5 -4
- package/dist/lib/utils/domain/domain.d.ts.map +1 -1
- package/dist/lib/utils/index.d.ts +1 -1
- package/dist/lib/utils/index.d.ts.map +1 -1
- package/dist/lib/utils/scales/scales.d.ts +11 -5
- package/dist/lib/utils/scales/scales.d.ts.map +1 -1
- package/dist/lib/utils/scales/scales.js +19 -15
- package/dist/lib/utils/ticks/ticks.d.ts +13 -5
- package/dist/lib/utils/ticks/ticks.d.ts.map +1 -1
- package/dist/lib/utils/ticks/ticks.js +20 -20
- package/dist/lib/utils/types.d.ts +3 -28
- package/dist/lib/utils/types.d.ts.map +1 -1
- package/dist/package.json +4 -4
- package/package.json +4 -4
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ChartScaleFunction } from '../../utils/types';
|
|
2
|
+
import { BaseAxisProps } from '../Axis';
|
|
2
3
|
import { useCartesianChartContext } from '../CartesianChart/context';
|
|
3
4
|
export declare const BEACON_RADIUS = 5;
|
|
4
5
|
export declare const BEACON_STROKE_WIDTH = 2;
|
|
@@ -7,6 +8,19 @@ export declare const OVERLAY_OFFSET = 2;
|
|
|
7
8
|
export declare const OVERLAY_LINE_INSET = 0.5;
|
|
8
9
|
export declare const OVERLAY_OPACITY = 0.8;
|
|
9
10
|
export declare const LINE_GRADIENT_EDGE_OPACITY = 0.1;
|
|
11
|
+
export type MagnetEntry = {
|
|
12
|
+
index: number;
|
|
13
|
+
pixelX: number;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Resolves each magnetic index to its pixel position and returns them sorted
|
|
17
|
+
* by `pixelX` ascending. Indices that cannot be projected are filtered out.
|
|
18
|
+
* The sorted output enables early-exit in {@link applyMagnetization}.
|
|
19
|
+
*/
|
|
20
|
+
export declare const buildSortedMagnets: ({ magneticIndices, getPixelForIndex, }: {
|
|
21
|
+
magneticIndices: ReadonlySet<number>;
|
|
22
|
+
getPixelForIndex: (index: number) => number | undefined;
|
|
23
|
+
}) => MagnetEntry[];
|
|
10
24
|
/**
|
|
11
25
|
* Converts a pixel position along the x-axis into the nearest data index.
|
|
12
26
|
*
|
|
@@ -14,7 +28,7 @@ export declare const LINE_GRADIENT_EDGE_OPACITY = 0.1;
|
|
|
14
28
|
* `pixelX`. For numeric scales, uses `scale.invert()` and rounds to the
|
|
15
29
|
* nearest integer, clamped to the valid index range.
|
|
16
30
|
*/
|
|
17
|
-
export declare const getDataIndexFromPosition: (pixelX: number, scale: ChartScaleFunction, axisConfig: Partial<
|
|
31
|
+
export declare const getDataIndexFromPosition: (pixelX: number, scale: ChartScaleFunction, axisConfig: Partial<BaseAxisProps> | undefined, dataLength: number) => number;
|
|
18
32
|
/**
|
|
19
33
|
* Resolves the pixel y-coordinate for a given series data point at a data index.
|
|
20
34
|
* Returns undefined when the value is null/missing or the scale is unavailable.
|
|
@@ -26,5 +40,21 @@ export declare const resolvePixelY: (dataIndex: number, seriesData: (number | nu
|
|
|
26
40
|
* otherwise the data index is used as the x input.
|
|
27
41
|
* Returns undefined when the scale is unavailable or the value cannot be mapped.
|
|
28
42
|
*/
|
|
29
|
-
export declare const resolvePixelX: (dataIndex: number, getXScale: ReturnType<typeof useCartesianChartContext>["getXScale"], axisConfig?:
|
|
43
|
+
export declare const resolvePixelX: (dataIndex: number, getXScale: ReturnType<typeof useCartesianChartContext>["getXScale"], axisConfig?: BaseAxisProps) => number | undefined;
|
|
44
|
+
/**
|
|
45
|
+
* Binary search for the magnet whose `pixelX` is closest to `pixelX`.
|
|
46
|
+
* Returns -1 when the array is empty. Favors the left neighbor on ties.
|
|
47
|
+
*/
|
|
48
|
+
export declare const nearestIndex: (sortedMagnets: readonly MagnetEntry[], pixelX: number) => number;
|
|
49
|
+
/**
|
|
50
|
+
* Given a resolved data index and the raw pixel position, checks whether any
|
|
51
|
+
* magnetic point is within `magnetRadius` pixels of `pixelX`. If so, returns
|
|
52
|
+
* the closest magnetic index; otherwise returns the original `resolvedIndex`.
|
|
53
|
+
*/
|
|
54
|
+
export declare const applyMagnetization: ({ resolvedIndex, pixelX, sortedMagnets, magnetRadius, }: {
|
|
55
|
+
resolvedIndex: number;
|
|
56
|
+
pixelX: number;
|
|
57
|
+
sortedMagnets: readonly MagnetEntry[];
|
|
58
|
+
magnetRadius: number;
|
|
59
|
+
}) => number;
|
|
30
60
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Scrubber/utils.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Scrubber/utils.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AAE1E,eAAO,MAAM,aAAa,IAAI,CAAC;AAC/B,eAAO,MAAM,mBAAmB,IAAI,CAAC;AACrC,eAAO,MAAM,cAAc,KAAK,CAAC;AACjC,eAAO,MAAM,cAAc,IAAI,CAAC;AAChC,eAAO,MAAM,kBAAkB,MAAM,CAAC;AACtC,eAAO,MAAM,eAAe,MAAM,CAAC;AACnC,eAAO,MAAM,0BAA0B,MAAM,CAAC;AAE9C,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,GAAI,wCAGhC;IACD,eAAe,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACrC,gBAAgB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAC;CACzD,KAAG,WAAW,EAad,CAAC;AAgCF;;;;;;GAMG;AACH,eAAO,MAAM,wBAAwB,GACnC,QAAQ,MAAM,EACd,OAAO,kBAAkB,EACzB,YAAY,OAAO,CAAC,aAAa,CAAC,GAAG,SAAS,EAC9C,YAAY,MAAM,KACjB,MA2BF,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,aAAa,GACxB,WAAW,MAAM,EACjB,YAAY,CAAC,MAAM,GAAG,IAAI,CAAC,EAAE,GAAG,SAAS,EACzC,WAAW,UAAU,CAAC,OAAO,wBAAwB,CAAC,CAAC,WAAW,CAAC,KAClE,MAAM,GAAG,SASX,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,aAAa,GACxB,WAAW,MAAM,EACjB,WAAW,UAAU,CAAC,OAAO,wBAAwB,CAAC,CAAC,WAAW,CAAC,EACnE,aAAa,aAAa,KACzB,MAAM,GAAG,SAMX,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,YAAY,GACvB,eAAe,SAAS,WAAW,EAAE,EACrC,QAAQ,MAAM,KACb,MAsBF,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,GAAI,yDAKhC;IACD,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,SAAS,WAAW,EAAE,CAAC;IACtC,YAAY,EAAE,MAAM,CAAC;CACtB,KAAG,MAWH,CAAC"}
|
|
@@ -1,56 +1,90 @@
|
|
|
1
|
-
import { getPointOnScale as
|
|
2
|
-
const
|
|
1
|
+
import { getPointOnScale as f, isNumericScale as l, isCategoricalScale as a } from "../../utils/scales/scales.js";
|
|
2
|
+
const v = 5, E = 2, m = 2, p = 0.5, A = 0.8, I = 0.1, O = ({
|
|
3
|
+
magneticIndices: o,
|
|
4
|
+
getPixelForIndex: i
|
|
5
|
+
}) => {
|
|
6
|
+
if (o.size === 0) return [];
|
|
7
|
+
const n = [];
|
|
8
|
+
for (const e of o) {
|
|
9
|
+
const t = i(e);
|
|
10
|
+
t !== void 0 && n.push({ index: e, pixelX: t });
|
|
11
|
+
}
|
|
12
|
+
return n.sort((e, t) => e.pixelX - t.pixelX), n;
|
|
13
|
+
}, d = (o) => typeof o[0] == "number", u = (o, i, n) => {
|
|
3
14
|
let e = 0, t = 1 / 0;
|
|
4
|
-
for (let
|
|
5
|
-
const
|
|
6
|
-
if (
|
|
7
|
-
const
|
|
8
|
-
|
|
15
|
+
for (let r = 0; r < o; r++) {
|
|
16
|
+
const c = n(r);
|
|
17
|
+
if (c === void 0) continue;
|
|
18
|
+
const s = Math.abs(i - c);
|
|
19
|
+
s < t && (t = s, e = r);
|
|
9
20
|
}
|
|
10
21
|
return e;
|
|
11
|
-
},
|
|
12
|
-
if (
|
|
13
|
-
const t =
|
|
14
|
-
return
|
|
15
|
-
const
|
|
16
|
-
return
|
|
22
|
+
}, _ = (o, i, n, e) => {
|
|
23
|
+
if (a(i)) {
|
|
24
|
+
const t = i.domain(), r = i.bandwidth();
|
|
25
|
+
return u(t.length, o, (c) => {
|
|
26
|
+
const s = i(t[c]);
|
|
27
|
+
return s === void 0 ? void 0 : s + r / 2;
|
|
17
28
|
});
|
|
18
29
|
}
|
|
19
|
-
if (
|
|
20
|
-
const t =
|
|
21
|
-
if (t && t.length > 0 &&
|
|
22
|
-
return
|
|
30
|
+
if (l(i)) {
|
|
31
|
+
const t = n?.data;
|
|
32
|
+
if (t && t.length > 0 && d(t))
|
|
33
|
+
return u(
|
|
23
34
|
t.length,
|
|
24
35
|
o,
|
|
25
|
-
(
|
|
36
|
+
(c) => i(t[c])
|
|
26
37
|
);
|
|
27
|
-
const
|
|
38
|
+
const r = i.invert(o);
|
|
28
39
|
return Math.max(
|
|
29
40
|
0,
|
|
30
|
-
Math.min(Math.round(
|
|
41
|
+
Math.min(Math.round(r), e - 1)
|
|
31
42
|
);
|
|
32
43
|
}
|
|
33
44
|
return 0;
|
|
34
|
-
},
|
|
35
|
-
const e =
|
|
36
|
-
if (!e || !
|
|
37
|
-
const t =
|
|
45
|
+
}, S = (o, i, n) => {
|
|
46
|
+
const e = n();
|
|
47
|
+
if (!e || !l(e) || !i) return;
|
|
48
|
+
const t = i[o];
|
|
38
49
|
if (t != null)
|
|
39
50
|
return e(t);
|
|
40
|
-
},
|
|
41
|
-
const e =
|
|
51
|
+
}, b = (o, i, n) => {
|
|
52
|
+
const e = i();
|
|
42
53
|
if (!e) return;
|
|
43
|
-
const t =
|
|
44
|
-
return
|
|
54
|
+
const t = n?.data?.[o];
|
|
55
|
+
return f(typeof t == "number" ? t : o, e);
|
|
56
|
+
}, h = (o, i) => {
|
|
57
|
+
if (o.length === 0) return -1;
|
|
58
|
+
let n = 0, e = o.length;
|
|
59
|
+
for (; n < e; ) {
|
|
60
|
+
const c = Math.floor((n + e) / 2);
|
|
61
|
+
o[c].pixelX < i ? n = c + 1 : e = c;
|
|
62
|
+
}
|
|
63
|
+
if (n === 0) return 0;
|
|
64
|
+
if (n === o.length) return n - 1;
|
|
65
|
+
const t = i - o[n - 1].pixelX, r = o[n].pixelX - i;
|
|
66
|
+
return t <= r ? n - 1 : n;
|
|
67
|
+
}, N = ({
|
|
68
|
+
resolvedIndex: o,
|
|
69
|
+
pixelX: i,
|
|
70
|
+
sortedMagnets: n,
|
|
71
|
+
magnetRadius: e
|
|
72
|
+
}) => {
|
|
73
|
+
if (e <= 0 || n.length === 0) return o;
|
|
74
|
+
const t = h(n, i);
|
|
75
|
+
return t >= 0 && Math.abs(n[t].pixelX - i) <= e ? n[t].index : o;
|
|
45
76
|
};
|
|
46
77
|
export {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
78
|
+
v as BEACON_RADIUS,
|
|
79
|
+
E as BEACON_STROKE_WIDTH,
|
|
80
|
+
I as LINE_GRADIENT_EDGE_OPACITY,
|
|
81
|
+
p as OVERLAY_LINE_INSET,
|
|
82
|
+
m as OVERLAY_OFFSET,
|
|
83
|
+
A as OVERLAY_OPACITY,
|
|
84
|
+
N as applyMagnetization,
|
|
85
|
+
O as buildSortedMagnets,
|
|
86
|
+
_ as getDataIndexFromPosition,
|
|
87
|
+
h as nearestIndex,
|
|
88
|
+
b as resolvePixelX,
|
|
89
|
+
S as resolvePixelY
|
|
56
90
|
};
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import { AxisBounds,
|
|
1
|
+
import { AxisBounds, BaseAxisProps } from '../../Components/Axis';
|
|
2
|
+
import { Series } from '../types';
|
|
2
3
|
/**
|
|
3
4
|
* Compute the X domain (index-based) from series data and axis config.
|
|
4
5
|
* For the X axis the domain is typically 0..N-1 where N = longest series length,
|
|
5
6
|
* unless explicit `data` is provided on the axis config.
|
|
6
7
|
*/
|
|
7
|
-
export declare const computeXDomain: (series: Series[], axisConfig?: Partial<
|
|
8
|
+
export declare const computeXDomain: (series: Series[], axisConfig?: Partial<BaseAxisProps>) => AxisBounds;
|
|
8
9
|
/**
|
|
9
10
|
* Compute the Y domain (value-based) from series data and axis config.
|
|
10
11
|
* Scans all non-null values across all series to find min/max.
|
|
11
12
|
*/
|
|
12
|
-
export declare const computeYDomain: (series: Series[], axisConfig?: Partial<
|
|
13
|
+
export declare const computeYDomain: (series: Series[], axisConfig?: Partial<BaseAxisProps>) => AxisBounds;
|
|
13
14
|
/**
|
|
14
15
|
* Compute the data length (number of discrete positions on the index axis).
|
|
15
16
|
*/
|
|
16
|
-
export declare const computeDataLength: (series: Series[], axisConfig?: Partial<
|
|
17
|
+
export declare const computeDataLength: (series: Series[], axisConfig?: Partial<BaseAxisProps>) => number;
|
|
17
18
|
//# sourceMappingURL=domain.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"domain.d.ts","sourceRoot":"","sources":["../../../../src/lib/utils/domain/domain.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,
|
|
1
|
+
{"version":3,"file":"domain.d.ts","sourceRoot":"","sources":["../../../../src/lib/utils/domain/domain.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAEvC;;;;GAIG;AACH,eAAO,MAAM,cAAc,GACzB,QAAQ,MAAM,EAAE,EAChB,aAAa,OAAO,CAAC,aAAa,CAAC,KAClC,UA4BF,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,cAAc,GACzB,QAAQ,MAAM,EAAE,EAChB,aAAa,OAAO,CAAC,aAAa,CAAC,KAClC,UAwBF,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,iBAAiB,GAC5B,QAAQ,MAAM,EAAE,EAChB,aAAa,OAAO,CAAC,aAAa,CAAC,KAClC,MAKF,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type {
|
|
1
|
+
export type { CartesianChartContextValue, CategoricalScale, ChartInset, ChartScaleFunction, DrawingArea, NumericScale, Series, } from './types';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,0BAA0B,EAC1B,gBAAgB,EAChB,UAAU,EACV,kBAAkB,EAClB,WAAW,EACX,YAAY,EACZ,MAAM,GACP,MAAM,SAAS,CAAC"}
|
|
@@ -1,12 +1,18 @@
|
|
|
1
|
-
import { AxisBounds,
|
|
1
|
+
import { AxisBounds, BaseAxisProps } from '../../Components/Axis';
|
|
2
|
+
import { CategoricalScale, ChartScaleFunction, NumericScale } from '../types';
|
|
2
3
|
/**
|
|
3
|
-
* Creates a numeric scale
|
|
4
|
-
*
|
|
4
|
+
* Creates a numeric scale.
|
|
5
|
+
*
|
|
6
|
+
* When `nice` is `true` (default), the domain is rounded outward to clean
|
|
7
|
+
* boundaries via d3's `.nice()` (e.g. `[4, 98]` → `[0, 100]`). Set `nice` to
|
|
8
|
+
* `false` to keep the domain exactly as provided so data fills the range
|
|
9
|
+
* boundary-to-boundary.
|
|
5
10
|
*/
|
|
6
|
-
export declare const getNumericScale: ({ scaleType, domain, range, }: {
|
|
11
|
+
export declare const getNumericScale: ({ scaleType, domain, range, nice, }: {
|
|
7
12
|
scaleType: "linear" | "log";
|
|
8
13
|
domain: AxisBounds;
|
|
9
14
|
range: AxisBounds;
|
|
15
|
+
nice?: boolean;
|
|
10
16
|
}) => NumericScale;
|
|
11
17
|
export declare const getCategoricalScale: ({ domain, range, padding, }: {
|
|
12
18
|
domain: AxisBounds;
|
|
@@ -16,7 +22,7 @@ export declare const getCategoricalScale: ({ domain, range, padding, }: {
|
|
|
16
22
|
/**
|
|
17
23
|
* Checks if a scale type config value refers to a band (categorical) scale.
|
|
18
24
|
*/
|
|
19
|
-
export declare const isBandScaleType: (scaleType:
|
|
25
|
+
export declare const isBandScaleType: (scaleType: BaseAxisProps["scaleType"]) => scaleType is "band";
|
|
20
26
|
/**
|
|
21
27
|
* Checks if a scale is a categorical scale.
|
|
22
28
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scales.d.ts","sourceRoot":"","sources":["../../../../src/lib/utils/scales/scales.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"scales.d.ts","sourceRoot":"","sources":["../../../../src/lib/utils/scales/scales.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,KAAK,EACV,gBAAgB,EAChB,kBAAkB,EAClB,YAAY,EACb,MAAM,UAAU,CAAC;AAElB;;;;;;;GAOG;AACH,eAAO,MAAM,eAAe,GAAI,qCAK7B;IACD,SAAS,EAAE,QAAQ,GAAG,KAAK,CAAC;IAC5B,MAAM,EAAE,UAAU,CAAC;IACnB,KAAK,EAAE,UAAU,CAAC;IAClB,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB,KAAG,YAOH,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,6BAIjC;IACD,MAAM,EAAE,UAAU,CAAC;IACnB,KAAK,EAAE,UAAU,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,KAAG,gBAUH,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe,GAC1B,WAAW,aAAa,CAAC,WAAW,CAAC,KACpC,SAAS,IAAI,MAA8B,CAAC;AAE/C;;GAEG;AACH,eAAO,MAAM,kBAAkB,GAC7B,OAAO,kBAAkB,KACxB,KAAK,IAAI,gBAEX,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc,GACzB,OAAO,kBAAkB,KACxB,KAAK,IAAI,YAEX,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,eAAe,GAC1B,OAAO,MAAM,EACb,OAAO,kBAAkB,KACxB,MAKF,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,YAAY,GACvB,OAAO,MAAM,EACb,OAAO,MAAM,EACb,QAAQ,kBAAkB,EAC1B,QAAQ,kBAAkB,KACzB;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAGvB,CAAC"}
|
|
@@ -1,30 +1,34 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
const
|
|
1
|
+
import m from "../../../node_modules/d3-scale/src/band.js";
|
|
2
|
+
import d from "../../../node_modules/d3-scale/src/log.js";
|
|
3
|
+
import u from "../../../node_modules/d3-scale/src/linear.js";
|
|
4
|
+
const l = ({
|
|
5
5
|
scaleType: n,
|
|
6
6
|
domain: t,
|
|
7
|
-
range: r
|
|
8
|
-
|
|
7
|
+
range: r,
|
|
8
|
+
nice: i = !0
|
|
9
|
+
}) => {
|
|
10
|
+
const o = n === "log" ? d() : u();
|
|
11
|
+
return o.domain([t.min, t.max]), i && o.nice(), o.range([r.min, r.max]);
|
|
12
|
+
}, p = ({
|
|
9
13
|
domain: n,
|
|
10
14
|
range: t,
|
|
11
15
|
padding: r = 0.1
|
|
12
16
|
}) => {
|
|
13
17
|
const i = Array.from(
|
|
14
18
|
{ length: n.max - n.min + 1 },
|
|
15
|
-
(
|
|
19
|
+
(o, c) => n.min + c
|
|
16
20
|
);
|
|
17
|
-
return
|
|
18
|
-
}, x = (n) => n === "band",
|
|
19
|
-
x:
|
|
20
|
-
y:
|
|
21
|
+
return m().domain(i).range([t.min, t.max]).paddingInner(r).paddingOuter(r / 2);
|
|
22
|
+
}, x = (n) => n === "band", a = (n) => "bandwidth" in n && typeof n.bandwidth == "function", S = (n) => !a(n), e = (n, t) => a(t) ? (t(n) ?? 0) + t.bandwidth() / 2 : t(n), b = (n, t, r, i) => ({
|
|
23
|
+
x: e(n, r),
|
|
24
|
+
y: e(t, i)
|
|
21
25
|
});
|
|
22
26
|
export {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
27
|
+
p as getCategoricalScale,
|
|
28
|
+
l as getNumericScale,
|
|
29
|
+
e as getPointOnScale,
|
|
26
30
|
x as isBandScaleType,
|
|
27
|
-
|
|
31
|
+
a as isCategoricalScale,
|
|
28
32
|
S as isNumericScale,
|
|
29
33
|
b as projectPoint
|
|
30
34
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BaseAxisProps } from '../../Components/Axis';
|
|
2
|
+
import { ChartScaleFunction, DrawingArea } from '../types';
|
|
2
3
|
export declare const APPROXIMATE_TICK_COUNT = 5;
|
|
3
4
|
export type TickData = {
|
|
4
5
|
position: number;
|
|
@@ -7,9 +8,16 @@ export type TickData = {
|
|
|
7
8
|
};
|
|
8
9
|
/**
|
|
9
10
|
* Resolves which numeric tick values should appear on the axis.
|
|
10
|
-
*
|
|
11
|
+
*
|
|
12
|
+
* Priority:
|
|
13
|
+
* 1. Explicit `ticks` provided by the consumer.
|
|
14
|
+
* 2. Axis `data` — when provided, ticks come from the data itself (numeric
|
|
15
|
+
* values for numeric data, indices for string data) so the rendered ticks
|
|
16
|
+
* mirror exactly what the consumer asked for, with no d3-invented
|
|
17
|
+
* intermediate values.
|
|
18
|
+
* 3. Scale-specific defaults (band domain, or `scale.ticks()` for numeric).
|
|
11
19
|
*/
|
|
12
|
-
export declare const getTickValues: (scale: ChartScaleFunction, explicitTicks?: number[]) => number[];
|
|
20
|
+
export declare const getTickValues: (scale: ChartScaleFunction, explicitTicks?: number[], axisData?: BaseAxisProps["data"]) => number[];
|
|
13
21
|
/**
|
|
14
22
|
* Converts a tick value to its pixel position on the axis.
|
|
15
23
|
* Band scales are centered within the band.
|
|
@@ -19,11 +27,11 @@ export declare const getTickPosition: (scale: ChartScaleFunction, tick: number)
|
|
|
19
27
|
* Resolves the display label for a tick value.
|
|
20
28
|
* Priority: formatter > string label lookup > raw value.
|
|
21
29
|
*/
|
|
22
|
-
export declare const getTickLabel: (tick: number, axisData:
|
|
30
|
+
export declare const getTickLabel: (tick: number, axisData: BaseAxisProps["data"], formatter?: (value: number | string) => string) => string;
|
|
23
31
|
/**
|
|
24
32
|
* Builds the complete tick data array from a scale and axis configuration.
|
|
25
33
|
*/
|
|
26
|
-
export declare const buildTicksData: (scale: ChartScaleFunction, axisConfig?:
|
|
34
|
+
export declare const buildTicksData: (scale: ChartScaleFunction, axisConfig?: BaseAxisProps, explicitTicks?: number[], formatter?: (value: number | string) => string) => TickData[];
|
|
27
35
|
/**
|
|
28
36
|
* Excludes the X grid line at the Y-axis origin (left edge)
|
|
29
37
|
* to prevent overlap with the Y-axis solid line.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ticks.d.ts","sourceRoot":"","sources":["../../../../src/lib/utils/ticks/ticks.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ticks.d.ts","sourceRoot":"","sources":["../../../../src/lib/utils/ticks/ticks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAE3D,OAAO,KAAK,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEhE,eAAO,MAAM,sBAAsB,IAAI,CAAC;AAExC,MAAM,MAAM,QAAQ,GAAG;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,aAAa,GACxB,OAAO,kBAAkB,EACzB,gBAAgB,MAAM,EAAE,EACxB,WAAW,aAAa,CAAC,MAAM,CAAC,KAC/B,MAAM,EAUR,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,eAAe,GAC1B,OAAO,kBAAkB,EACzB,MAAM,MAAM,KACX,MAKF,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,YAAY,GACvB,MAAM,MAAM,EACZ,UAAU,aAAa,CAAC,MAAM,CAAC,EAC/B,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,KAAK,MAAM,KAC7C,MAeF,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc,GACzB,OAAO,kBAAkB,EACzB,aAAa,aAAa,EAC1B,gBAAgB,MAAM,EAAE,EACxB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,KAAK,MAAM,KAC7C,QAAQ,EASV,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,uBAAuB,GAClC,MAAM,QAAQ,EACd,aAAa,WAAW,KACvB,OAEF,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,uBAAuB,GAClC,MAAM,QAAQ,EACd,aAAa,WAAW,KACvB,OAEF,CAAC"}
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { isCategoricalScale as u, isNumericScale as g } from "../scales/scales.js";
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
if (
|
|
5
|
-
const
|
|
6
|
-
return String(t
|
|
2
|
+
const s = 5, f = (n, r, o) => r && r.length > 0 ? r : o && o.length > 0 ? typeof o[0] == "number" ? o : o.map((e, t) => t) : u(n) ? n.domain() : g(n) ? n.ticks(s) : [], d = (n, r) => u(n) ? (n(r) ?? 0) + n.bandwidth() / 2 : n(r), m = (n, r, o) => {
|
|
3
|
+
const e = r && Array.isArray(r) && typeof r[0] == "string";
|
|
4
|
+
if (o) {
|
|
5
|
+
const t = e && r[n] !== void 0 ? r[n] : n;
|
|
6
|
+
return String(o(t));
|
|
7
7
|
}
|
|
8
|
-
return
|
|
9
|
-
},
|
|
10
|
-
const
|
|
11
|
-
return o.map((
|
|
12
|
-
position:
|
|
13
|
-
value:
|
|
14
|
-
label:
|
|
8
|
+
return e && r[n] !== void 0 ? String(r[n]) : String(n);
|
|
9
|
+
}, b = (n, r, o, e) => {
|
|
10
|
+
const t = r?.data;
|
|
11
|
+
return f(n, o, t).map((i) => ({
|
|
12
|
+
position: d(n, i),
|
|
13
|
+
value: i,
|
|
14
|
+
label: m(i, t, e)
|
|
15
15
|
}));
|
|
16
|
-
},
|
|
16
|
+
}, h = (n, r) => n.position !== r.x, l = (n, r) => n.position !== r.y + r.height;
|
|
17
17
|
export {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
18
|
+
s as APPROXIMATE_TICK_COUNT,
|
|
19
|
+
b as buildTicksData,
|
|
20
|
+
m as getTickLabel,
|
|
21
|
+
d as getTickPosition,
|
|
22
|
+
f as getTickValues,
|
|
23
|
+
h as isTickOnXAxisDomainEdge,
|
|
24
|
+
l as isTickOnYAxisDomainEdge
|
|
25
25
|
};
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import { ScaleBand, ScaleLinear, ScaleLogarithmic } from 'd3-scale';
|
|
2
|
-
|
|
3
|
-
min: number;
|
|
4
|
-
max: number;
|
|
5
|
-
};
|
|
2
|
+
import { BaseAxisProps } from '../Components/Axis';
|
|
6
3
|
export type ChartInset = {
|
|
7
4
|
top: number;
|
|
8
5
|
right: number;
|
|
@@ -36,28 +33,6 @@ export type Series = {
|
|
|
36
33
|
*/
|
|
37
34
|
stroke: string;
|
|
38
35
|
};
|
|
39
|
-
export type AxisConfigProps = {
|
|
40
|
-
/**
|
|
41
|
-
* Scale algorithm used by this axis.
|
|
42
|
-
* @default 'linear'
|
|
43
|
-
*/
|
|
44
|
-
scaleType?: 'linear' | 'log' | 'band';
|
|
45
|
-
/**
|
|
46
|
-
* Explicit data values for band scales or category labels.
|
|
47
|
-
* For band scales, provides the discrete domain. For numeric scales, string values
|
|
48
|
-
* are used as tick labels at corresponding indices.
|
|
49
|
-
*/
|
|
50
|
-
data?: string[] | number[];
|
|
51
|
-
/**
|
|
52
|
-
* Fixed domain bounds or a function that adjusts the computed bounds.
|
|
53
|
-
* A partial object overrides only the specified bound(s).
|
|
54
|
-
* A function receives the auto-computed bounds and returns adjusted ones.
|
|
55
|
-
*
|
|
56
|
-
* The final domain is always rounded to nice boundaries via d3's `.nice()`,
|
|
57
|
-
* ensuring tick marks land on clean values (e.g. `[4, 98]` becomes `[0, 100]`).
|
|
58
|
-
*/
|
|
59
|
-
domain?: Partial<AxisBounds> | ((bounds: AxisBounds) => AxisBounds);
|
|
60
|
-
};
|
|
61
36
|
export type NumericScale = ScaleLinear<number, number> | ScaleLogarithmic<number, number>;
|
|
62
37
|
export type CategoricalScale = ScaleBand<number>;
|
|
63
38
|
export type ChartScaleFunction = NumericScale | CategoricalScale;
|
|
@@ -81,11 +56,11 @@ export type CartesianChartContextValue = {
|
|
|
81
56
|
/**
|
|
82
57
|
* Returns the x-axis config. Accepts an optional axis ID for future multi-axis support.
|
|
83
58
|
*/
|
|
84
|
-
getXAxisConfig: (id?: string) =>
|
|
59
|
+
getXAxisConfig: (id?: string) => BaseAxisProps | undefined;
|
|
85
60
|
/**
|
|
86
61
|
* Returns the y-axis config. Accepts an optional axis ID for future multi-axis support.
|
|
87
62
|
*/
|
|
88
|
-
getYAxisConfig: (id?: string) =>
|
|
63
|
+
getYAxisConfig: (id?: string) => BaseAxisProps | undefined;
|
|
89
64
|
/**
|
|
90
65
|
* Pixel bounds of the drawable region.
|
|
91
66
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AACzE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAExD,MAAM,MAAM,UAAU,GAAG;IACvB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,MAAM,GAAG;IACnB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,IAAI,CAAC,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,EAAE,CAAC;IACzB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,YAAY,GACpB,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,GAC3B,gBAAgB,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAErC,MAAM,MAAM,gBAAgB,GAAG,SAAS,CAAC,MAAM,CAAC,CAAC;AAEjD,MAAM,MAAM,kBAAkB,GAAG,YAAY,GAAG,gBAAgB,CAAC;AAEjE,MAAM,MAAM,0BAA0B,GAAG;IACvC;;OAEG;IACH,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB;;OAEG;IACH,SAAS,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC/B;;OAEG;IACH,SAAS,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,KAAK,kBAAkB,GAAG,SAAS,CAAC;IAC3D;;OAEG;IACH,SAAS,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,KAAK,kBAAkB,GAAG,SAAS,CAAC;IAC3D;;OAEG;IACH,cAAc,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,KAAK,aAAa,GAAG,SAAS,CAAC;IAC3D;;OAEG;IACH,cAAc,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,KAAK,aAAa,GAAG,SAAS,CAAC;IAC3D;;OAEG;IACH,WAAW,EAAE,WAAW,CAAC;IACzB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC"}
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ledgerhq/lumen-ui-react-visualization",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.15",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"keywords": [
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
]
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"@ledgerhq/lumen-design-core": "0.1.
|
|
37
|
-
"@ledgerhq/lumen-ui-react": "0.1.
|
|
36
|
+
"@ledgerhq/lumen-design-core": "0.1.15",
|
|
37
|
+
"@ledgerhq/lumen-ui-react": "0.1.36",
|
|
38
38
|
"class-variance-authority": "^0.7.1",
|
|
39
39
|
"clsx": "^2.1.1",
|
|
40
40
|
"react": "^18.0.0 || ^19.0.0",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"tailwind-merge": "^2.6.0"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@ledgerhq/lumen-utils-shared": "0.1.
|
|
45
|
+
"@ledgerhq/lumen-utils-shared": "0.1.4",
|
|
46
46
|
"d3-array": "^3.2.4",
|
|
47
47
|
"d3-scale": "^4.0.2",
|
|
48
48
|
"d3-shape": "^3.2.0"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ledgerhq/lumen-ui-react-visualization",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.16",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"keywords": [
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
]
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"@ledgerhq/lumen-design-core": "0.1.
|
|
37
|
-
"@ledgerhq/lumen-ui-react": "0.1.
|
|
36
|
+
"@ledgerhq/lumen-design-core": "0.1.16",
|
|
37
|
+
"@ledgerhq/lumen-ui-react": "0.1.37",
|
|
38
38
|
"class-variance-authority": "^0.7.1",
|
|
39
39
|
"clsx": "^2.1.1",
|
|
40
40
|
"react": "^18.0.0 || ^19.0.0",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"tailwind-merge": "^2.6.0"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@ledgerhq/lumen-utils-shared": "0.1.
|
|
45
|
+
"@ledgerhq/lumen-utils-shared": "0.1.5",
|
|
46
46
|
"d3-array": "^3.2.4",
|
|
47
47
|
"d3-scale": "^4.0.2",
|
|
48
48
|
"d3-shape": "^3.2.0"
|