@ledgerhq/lumen-ui-react-visualization 0.1.19 → 0.1.21

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.
Files changed (66) hide show
  1. package/dist/lib/Components/Axis/Axis.types.d.ts +6 -0
  2. package/dist/lib/Components/Axis/Axis.types.d.ts.map +1 -1
  3. package/dist/lib/Components/Axis/XAxis/XAxis.d.ts +1 -1
  4. package/dist/lib/Components/Axis/XAxis/XAxis.d.ts.map +1 -1
  5. package/dist/lib/Components/Axis/XAxis/XAxis.js +18 -17
  6. package/dist/lib/Components/Axis/YAxis/YAxis.d.ts +1 -1
  7. package/dist/lib/Components/Axis/YAxis/YAxis.d.ts.map +1 -1
  8. package/dist/lib/Components/Axis/YAxis/YAxis.js +20 -19
  9. package/dist/lib/Components/CartesianChart/CartesianChart.d.ts.map +1 -1
  10. package/dist/lib/Components/CartesianChart/CartesianChart.js +61 -61
  11. package/dist/lib/Components/CartesianChart/RevealAnimation/RevealAnimationProvider.d.ts +3 -0
  12. package/dist/lib/Components/CartesianChart/RevealAnimation/RevealAnimationProvider.d.ts.map +1 -0
  13. package/dist/lib/Components/CartesianChart/RevealAnimation/RevealAnimationProvider.js +41 -0
  14. package/dist/lib/Components/CartesianChart/RevealAnimation/context.d.ts +15 -0
  15. package/dist/lib/Components/CartesianChart/RevealAnimation/context.d.ts.map +1 -0
  16. package/dist/lib/Components/CartesianChart/RevealAnimation/context.js +10 -0
  17. package/dist/lib/Components/CartesianChart/RevealAnimation/index.d.ts +3 -0
  18. package/dist/lib/Components/CartesianChart/RevealAnimation/index.d.ts.map +1 -0
  19. package/dist/lib/Components/CartesianChart/RevealAnimation/types.d.ts +57 -0
  20. package/dist/lib/Components/CartesianChart/RevealAnimation/types.d.ts.map +1 -0
  21. package/dist/lib/Components/CartesianChart/RevealAnimation/utils.d.ts +31 -0
  22. package/dist/lib/Components/CartesianChart/RevealAnimation/utils.d.ts.map +1 -0
  23. package/dist/lib/Components/CartesianChart/RevealAnimation/utils.js +67 -0
  24. package/dist/lib/Components/CartesianChart/utils.d.ts +1 -24
  25. package/dist/lib/Components/CartesianChart/utils.d.ts.map +1 -1
  26. package/dist/lib/Components/CartesianChart/utils.js +12 -23
  27. package/dist/lib/Components/Line/Line.d.ts +1 -1
  28. package/dist/lib/Components/Line/Line.d.ts.map +1 -1
  29. package/dist/lib/Components/Line/Line.js +40 -33
  30. package/dist/lib/Components/Line/types.d.ts +7 -0
  31. package/dist/lib/Components/Line/types.d.ts.map +1 -1
  32. package/dist/lib/Components/Line/utils.d.ts +8 -3
  33. package/dist/lib/Components/Line/utils.d.ts.map +1 -1
  34. package/dist/lib/Components/Line/utils.js +30 -25
  35. package/dist/lib/Components/LineChart/LineChart.d.ts +1 -1
  36. package/dist/lib/Components/LineChart/LineChart.d.ts.map +1 -1
  37. package/dist/lib/Components/LineChart/LineChart.js +114 -102
  38. package/dist/lib/Components/LineChart/LineChartEmptyState/LineChartEmptyState.js +16 -16
  39. package/dist/lib/Components/LineChart/__stories__/chartStoryFixtures.d.ts +21 -0
  40. package/dist/lib/Components/LineChart/__stories__/chartStoryFixtures.d.ts.map +1 -1
  41. package/dist/lib/Components/LineChart/types.d.ts +12 -1
  42. package/dist/lib/Components/LineChart/types.d.ts.map +1 -1
  43. package/dist/lib/Components/Point/Point.d.ts.map +1 -1
  44. package/dist/lib/Components/Point/Point.js +29 -27
  45. package/dist/lib/Components/Scrubber/DefaultScrubberTooltip/DefaultScrubberTooltip.d.ts.map +1 -1
  46. package/dist/lib/Components/Scrubber/DefaultScrubberTooltip/DefaultScrubberTooltip.js +4 -2
  47. package/dist/lib/utils/types.d.ts +7 -0
  48. package/dist/lib/utils/types.d.ts.map +1 -1
  49. package/dist/package.json +3 -3
  50. package/package.json +2 -2
  51. package/dist/lib/Components/CartesianChart/RevealClip/RevealClipDefs.d.ts +0 -3
  52. package/dist/lib/Components/CartesianChart/RevealClip/RevealClipDefs.d.ts.map +0 -1
  53. package/dist/lib/Components/CartesianChart/RevealClip/RevealClipDefs.js +0 -42
  54. package/dist/lib/Components/CartesianChart/RevealClip/context.d.ts +0 -7
  55. package/dist/lib/Components/CartesianChart/RevealClip/context.d.ts.map +0 -1
  56. package/dist/lib/Components/CartesianChart/RevealClip/context.js +0 -6
  57. package/dist/lib/Components/CartesianChart/RevealClip/index.d.ts +0 -3
  58. package/dist/lib/Components/CartesianChart/RevealClip/index.d.ts.map +0 -1
  59. package/dist/lib/Components/CartesianChart/RevealClip/types.d.ts +0 -37
  60. package/dist/lib/Components/CartesianChart/RevealClip/types.d.ts.map +0 -1
  61. package/dist/lib/Components/CartesianChart/hooks/useDataFingerprint.d.ts +0 -9
  62. package/dist/lib/Components/CartesianChart/hooks/useDataFingerprint.d.ts.map +0 -1
  63. package/dist/lib/Components/CartesianChart/hooks/useDataFingerprint.js +0 -8
  64. package/dist/lib/Components/CartesianChart/hooks/useRevealClipAnimation.d.ts +0 -14
  65. package/dist/lib/Components/CartesianChart/hooks/useRevealClipAnimation.d.ts.map +0 -1
  66. package/dist/lib/Components/CartesianChart/hooks/useRevealClipAnimation.js +0 -20
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/CartesianChart/RevealClip/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC"}
@@ -1,37 +0,0 @@
1
- import { ReactNode } from 'react';
2
- import { DrawingArea, Series } from '../../../utils/types';
3
- export type EnterTransitionConfig = {
4
- /**
5
- * Duration in seconds. @default 0.8
6
- */
7
- duration?: number;
8
- /**
9
- * CSS easing function. @default 'linear'
10
- */
11
- easing?: string;
12
- };
13
- export type RevealClipDefsProps = {
14
- children: ReactNode;
15
- /**
16
- * The drawing area whose bounds define the clip rectangle.
17
- */
18
- drawingArea: DrawingArea;
19
- /**
20
- * Whether to animate the chart.
21
- * @default true
22
- */
23
- animate?: boolean;
24
- /**
25
- * Transition configuration.
26
- * @default { enter: { duration: 0.8, easing: 'linear' } }
27
- */
28
- transitions?: {
29
- enter?: EnterTransitionConfig;
30
- };
31
- /**
32
- * Data series used to compute a fingerprint that restarts
33
- * the animation when data changes.
34
- */
35
- series: Series[];
36
- };
37
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/CartesianChart/RevealClip/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAEhE,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,QAAQ,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,WAAW,EAAE,WAAW,CAAC;IACzB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,WAAW,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,qBAAqB,CAAA;KAAE,CAAC;IAChD;;;OAGG;IACH,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB,CAAC"}
@@ -1,9 +0,0 @@
1
- import { Series } from '../../../utils/types';
2
- /**
3
- * Stable signature of every series' data points, memoized on the `series`
4
- * reference. Used to key the reveal-clip provider so the reveal animation only
5
- * replays when the underlying data actually changes — not on unrelated
6
- * re-renders such as scrubbing or hover.
7
- */
8
- export declare const useDataFingerprint: (series: Series[]) => string;
9
- //# sourceMappingURL=useDataFingerprint.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useDataFingerprint.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/CartesianChart/hooks/useDataFingerprint.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAEnD;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,GAAI,QAAQ,MAAM,EAAE,KAAG,MAKrD,CAAC"}
@@ -1,8 +0,0 @@
1
- import { useMemo as n } from "react";
2
- const a = (o) => n(
3
- () => o.map((t) => t.data?.join(",") ?? "").join("|"),
4
- [o]
5
- );
6
- export {
7
- a as useDataFingerprint
8
- };
@@ -1,14 +0,0 @@
1
- import { DrawingArea } from '../../../utils/types';
2
- type RevealClipAnimationConfig = {
3
- duration: number;
4
- easing: string;
5
- drawingArea: DrawingArea;
6
- };
7
- type RevealClipAnimationResult = {
8
- clipId: string;
9
- animationStyle: string;
10
- keyframe: string;
11
- };
12
- export declare const useRevealClipAnimation: ({ duration, easing, drawingArea, }: RevealClipAnimationConfig) => RevealClipAnimationResult;
13
- export {};
14
- //# sourceMappingURL=useRevealClipAnimation.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useRevealClipAnimation.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/CartesianChart/hooks/useRevealClipAnimation.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAGxD,KAAK,yBAAyB,GAAG;IAC/B,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,WAAW,CAAC;CAC1B,CAAC;AAEF,KAAK,yBAAyB,GAAG;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,eAAO,MAAM,sBAAsB,GAAI,oCAIpC,yBAAyB,KAAG,yBAY9B,CAAC"}
@@ -1,20 +0,0 @@
1
- import { useId as l, useMemo as a } from "react";
2
- import { OVERFLOW_BUFFER as r } from "../utils.js";
3
- const f = ({
4
- duration: o,
5
- easing: i,
6
- drawingArea: m
7
- }) => {
8
- const e = l(), t = `reveal-clip-${e.replaceAll(":", "")}`;
9
- return a(
10
- () => ({
11
- clipId: e,
12
- animationStyle: `${t} ${o}s ${i} forwards`,
13
- keyframe: `@keyframes ${t} { from { width: 0; } to { width: ${m.width + r.left + r.right}px; } }`
14
- }),
15
- [e, t, o, i, m.width]
16
- );
17
- };
18
- export {
19
- f as useRevealClipAnimation
20
- };