@ledgerhq/lumen-ui-react-visualization 0.1.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.
@@ -0,0 +1,3 @@
1
+ export * from './lib/Components';
2
+ export * from './lib/utils';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,4 @@
1
+ import { LineChart as o } from "./lib/Components/LineChart/LineChart.js";
2
+ export {
3
+ o as LineChart
4
+ };
@@ -0,0 +1,9 @@
1
+ import { Series } from '../../utils';
2
+ type LineChartProps = {
3
+ series: Series[];
4
+ width?: number;
5
+ height?: number;
6
+ };
7
+ export declare function LineChart({ series, width, height, }: LineChartProps): import("react/jsx-runtime").JSX.Element;
8
+ export {};
9
+ //# sourceMappingURL=LineChart.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LineChart.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/LineChart/LineChart.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAE1C,KAAK,cAAc,GAAG;IACpB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,wBAAgB,SAAS,CAAC,EACxB,MAAM,EACN,KAAW,EACX,MAAY,GACb,EAAE,cAAc,2CAkBhB"}
@@ -0,0 +1,27 @@
1
+ import { jsxs as l, jsx as n } from "react/jsx-runtime";
2
+ function a({
3
+ series: i,
4
+ width: e = 400,
5
+ height: r = 300
6
+ }) {
7
+ return /* @__PURE__ */ l("svg", { width: e, height: r, role: "img", "aria-label": "Line chart", children: [
8
+ /* @__PURE__ */ n("title", { children: `Line chart with ${i.length} series` }),
9
+ /* @__PURE__ */ n("rect", { width: e, height: r, rx: 8, fill: "#F3F0FA" }),
10
+ /* @__PURE__ */ n(
11
+ "text",
12
+ {
13
+ x: e / 2,
14
+ y: r / 2,
15
+ textAnchor: "middle",
16
+ dominantBaseline: "central",
17
+ fill: "#7e4ea5",
18
+ fontSize: 14,
19
+ fontFamily: "Inter, sans-serif",
20
+ children: "LineChart placeholder"
21
+ }
22
+ )
23
+ ] });
24
+ }
25
+ export {
26
+ a as LineChart
27
+ };
@@ -0,0 +1,2 @@
1
+ export { LineChart } from './LineChart';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/LineChart/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './LineChart';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/Components/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './types';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/utils/math/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,11 @@
1
+ export type DataPoint = {
2
+ timestamp: number;
3
+ value: number;
4
+ };
5
+ export type Series = {
6
+ id: string;
7
+ label: string;
8
+ data: DataPoint[];
9
+ color?: string;
10
+ };
11
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,GAAG;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,MAAM,GAAG;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,SAAS,EAAE,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC"}
@@ -0,0 +1,43 @@
1
+ {
2
+ "name": "@ledgerhq/lumen-ui-react-visualization",
3
+ "version": "0.1.0",
4
+ "license": "Apache-2.0",
5
+ "sideEffects": false,
6
+ "keywords": [
7
+ "react",
8
+ "ui",
9
+ "visualization",
10
+ "charts",
11
+ "design-system"
12
+ ],
13
+ "type": "module",
14
+ "main": "./dist/index.js",
15
+ "module": "./dist/index.js",
16
+ "types": "./dist/index.d.ts",
17
+ "exports": {
18
+ "./package.json": "./package.json",
19
+ ".": {
20
+ "types": "./dist/index.d.ts",
21
+ "import": "./dist/index.js",
22
+ "default": "./dist/index.js"
23
+ }
24
+ },
25
+ "files": [
26
+ "dist",
27
+ "!**/*.tsbuildinfo"
28
+ ],
29
+ "nx": {
30
+ "tags": [
31
+ "scope:react",
32
+ "type:ui"
33
+ ]
34
+ },
35
+ "peerDependencies": {
36
+ "@ledgerhq/lumen-design-core": "0.1.10",
37
+ "class-variance-authority": "^0.7.1",
38
+ "clsx": "^2.1.1",
39
+ "react": "^18.0.0 || ^19.0.0",
40
+ "react-dom": "^18.0.0 || ^19.0.0",
41
+ "tailwind-merge": "^2.6.0"
42
+ }
43
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=test-setup.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"test-setup.d.ts","sourceRoot":"","sources":["../src/test-setup.ts"],"names":[],"mappings":""}
package/package.json ADDED
@@ -0,0 +1,43 @@
1
+ {
2
+ "name": "@ledgerhq/lumen-ui-react-visualization",
3
+ "version": "0.1.1",
4
+ "license": "Apache-2.0",
5
+ "sideEffects": false,
6
+ "keywords": [
7
+ "react",
8
+ "ui",
9
+ "visualization",
10
+ "charts",
11
+ "design-system"
12
+ ],
13
+ "type": "module",
14
+ "main": "./dist/index.js",
15
+ "module": "./dist/index.js",
16
+ "types": "./dist/index.d.ts",
17
+ "exports": {
18
+ "./package.json": "./package.json",
19
+ ".": {
20
+ "types": "./dist/index.d.ts",
21
+ "import": "./dist/index.js",
22
+ "default": "./dist/index.js"
23
+ }
24
+ },
25
+ "files": [
26
+ "dist",
27
+ "!**/*.tsbuildinfo"
28
+ ],
29
+ "nx": {
30
+ "tags": [
31
+ "scope:react",
32
+ "type:ui"
33
+ ]
34
+ },
35
+ "peerDependencies": {
36
+ "@ledgerhq/lumen-design-core": "0.1.10",
37
+ "class-variance-authority": "^0.7.1",
38
+ "clsx": "^2.1.1",
39
+ "react": "^18.0.0 || ^19.0.0",
40
+ "react-dom": "^18.0.0 || ^19.0.0",
41
+ "tailwind-merge": "^2.6.0"
42
+ }
43
+ }