@ledgerhq/native-ui 0.59.0 → 0.60.0-nightly.20260317030141
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/lib/pre-ldls/components/index.d.ts +0 -1
- package/lib/pre-ldls/components/index.d.ts.map +1 -1
- package/lib/pre-ldls/components/index.js +0 -1
- package/package.json +26 -8
- package/lib/pre-ldls/components/ApyIndicator/ApyIndicator.d.ts +0 -5
- package/lib/pre-ldls/components/ApyIndicator/ApyIndicator.d.ts.map +0 -1
- package/lib/pre-ldls/components/ApyIndicator/ApyIndicator.js +0 -5
- package/lib/pre-ldls/components/ApyIndicator/ApyIndicator.stories.d.ts +0 -11
- package/lib/pre-ldls/components/ApyIndicator/ApyIndicator.stories.d.ts.map +0 -1
- package/lib/pre-ldls/components/ApyIndicator/ApyIndicator.stories.js +0 -21
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export * from "./Input/Input";
|
|
2
2
|
export * from "./AssetItem/AssetItem";
|
|
3
3
|
export * from "./AssetTypeList/AssetList";
|
|
4
|
-
export * from "./ApyIndicator/ApyIndicator";
|
|
5
4
|
export * from "./MarketPriceIndicator/MarketPriceIndicator";
|
|
6
5
|
export * from "./MarketPercentIndicator/MarketPercentIndicator";
|
|
7
6
|
export * from "./NetworkItem/NetworkItem";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/pre-ldls/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/pre-ldls/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6CAA6C,CAAC;AAC5D,cAAc,iDAAiD,CAAC;AAChE,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mBAAmB,CAAC;AAClC,cAAc,qCAAqC,CAAC;AACpD,cAAc,yBAAyB,CAAC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export * from "./Input/Input";
|
|
2
2
|
export * from "./AssetItem/AssetItem";
|
|
3
3
|
export * from "./AssetTypeList/AssetList";
|
|
4
|
-
export * from "./ApyIndicator/ApyIndicator";
|
|
5
4
|
export * from "./MarketPriceIndicator/MarketPriceIndicator";
|
|
6
5
|
export * from "./MarketPercentIndicator/MarketPercentIndicator";
|
|
7
6
|
export * from "./NetworkItem/NetworkItem";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ledgerhq/native-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.60.0-nightly.20260317030141",
|
|
4
4
|
"description": "Ledger Live - Mobile UI",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -24,12 +24,30 @@
|
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
"exports": {
|
|
27
|
-
".":
|
|
27
|
+
".": {
|
|
28
|
+
"@ledgerhq/source": "./src/index.ts",
|
|
29
|
+
"default": "./lib/index.js"
|
|
30
|
+
},
|
|
28
31
|
"./lib/*": "./lib/*.js",
|
|
29
32
|
"./lib/*/": "./lib/*/index.js",
|
|
30
|
-
"./pre-ldls":
|
|
31
|
-
|
|
32
|
-
|
|
33
|
+
"./pre-ldls": {
|
|
34
|
+
"@ledgerhq/source": "./src/pre-ldls/index.ts",
|
|
35
|
+
"default": "./lib/pre-ldls/index.js"
|
|
36
|
+
},
|
|
37
|
+
"./*": {
|
|
38
|
+
"@ledgerhq/source": [
|
|
39
|
+
"./src/*.ts",
|
|
40
|
+
"./src/*.tsx"
|
|
41
|
+
],
|
|
42
|
+
"default": "./lib/*.js"
|
|
43
|
+
},
|
|
44
|
+
"./*/": {
|
|
45
|
+
"@ledgerhq/source": [
|
|
46
|
+
"./src/*/index.ts",
|
|
47
|
+
"./src/*/index.tsx"
|
|
48
|
+
],
|
|
49
|
+
"default": "./lib/*/index.js"
|
|
50
|
+
},
|
|
33
51
|
"./package.json": "./package.json"
|
|
34
52
|
},
|
|
35
53
|
"files": [
|
|
@@ -97,7 +115,7 @@
|
|
|
97
115
|
"@types/color": "^3.0.3",
|
|
98
116
|
"@types/hoist-non-react-statics": "^3.3.1",
|
|
99
117
|
"@types/lodash": "4.17.18",
|
|
100
|
-
"@types/node": "
|
|
118
|
+
"@types/node": "24.12.0",
|
|
101
119
|
"@types/prop-types": "^15.7.5",
|
|
102
120
|
"@types/react": "19.0.14",
|
|
103
121
|
"@types/styled-system": "^5.1.13",
|
|
@@ -159,7 +177,7 @@
|
|
|
159
177
|
"android": "expo start --android",
|
|
160
178
|
"build": "tsc -p tsconfig.prod.json && node scripts/postBuild",
|
|
161
179
|
"prebuild:storybook": "pnpm -F ui-shared -F icons-ui -F crypto-icons-ui build",
|
|
162
|
-
"build:storybook": "NODE_PATH=./node_modules storybook build -c .storybook-web
|
|
180
|
+
"build:storybook": "NODE_PATH=./node_modules storybook build -c .storybook-web",
|
|
163
181
|
"watch": "tsc -p tsconfig.prod.json --watch",
|
|
164
182
|
"clean": "rimraf lib",
|
|
165
183
|
"eject": "expo eject",
|
|
@@ -170,7 +188,7 @@
|
|
|
170
188
|
"release": "yarn publish ./lib --access public",
|
|
171
189
|
"expo-start": "expo start",
|
|
172
190
|
"storybook": "NODE_PATH=./node_modules storybook dev -c .storybook-web -p 6006",
|
|
173
|
-
"typecheck": "tsc --noEmit -p tsconfig.json",
|
|
191
|
+
"typecheck": "tsc --noEmit -p tsconfig.json --customConditions node",
|
|
174
192
|
"test": "exit 0",
|
|
175
193
|
"web": "expo start --web",
|
|
176
194
|
"unimported": "pnpm knip --directory ../../../.. -W libs/ui/packages/native",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ApyIndicator.d.ts","sourceRoot":"","sources":["../../../../src/pre-ldls/components/ApyIndicator/ApyIndicator.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY,GAAI,iBAAiB;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,KAAK,GAAG,KAAK,GAAG,KAAK,CAAA;CAAE,4CAE3F,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { type Meta, type StoryObj } from "@storybook/react";
|
|
2
|
-
import { ApyIndicator } from "./ApyIndicator";
|
|
3
|
-
declare const meta: Meta<typeof ApyIndicator>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof ApyIndicator>;
|
|
6
|
-
export declare const Default: Story;
|
|
7
|
-
export declare const APY: Story;
|
|
8
|
-
export declare const APR: Story;
|
|
9
|
-
export declare const NRR: Story;
|
|
10
|
-
export declare const TestApyIndicator: Story;
|
|
11
|
-
//# sourceMappingURL=ApyIndicator.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ApyIndicator.stories.d.ts","sourceRoot":"","sources":["../../../../src/pre-ldls/components/ApyIndicator/ApyIndicator.stories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,EAAE,KAAK,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAI9C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,YAAY,CAKnC,CAAC;AACF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,YAAY,CAAC,CAAC;AAE3C,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC;AAEjC,eAAO,MAAM,GAAG,EAAE,KAA4C,CAAC;AAC/D,eAAO,MAAM,GAAG,EAAE,KAA4C,CAAC;AAC/D,eAAO,MAAM,GAAG,EAAE,KAA4C,CAAC;AAE/D,eAAO,MAAM,gBAAgB,EAAE,KAM9B,CAAC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { ApyIndicator } from "./ApyIndicator";
|
|
2
|
-
import { expect } from "@storybook/jest";
|
|
3
|
-
import { within } from "@storybook/testing-library";
|
|
4
|
-
const meta = {
|
|
5
|
-
component: ApyIndicator,
|
|
6
|
-
title: "PreLdls/Components/ApyIndicator",
|
|
7
|
-
tags: ["autodocs"],
|
|
8
|
-
args: { value: 30, type: "APY" },
|
|
9
|
-
};
|
|
10
|
-
export default meta;
|
|
11
|
-
export const Default = {};
|
|
12
|
-
export const APY = { args: { value: 30, type: "APY" } };
|
|
13
|
-
export const APR = { args: { value: 20, type: "APR" } };
|
|
14
|
-
export const NRR = { args: { value: 10, type: "NRR" } };
|
|
15
|
-
export const TestApyIndicator = {
|
|
16
|
-
play: async ({ canvasElement }) => {
|
|
17
|
-
const canvas = within(canvasElement);
|
|
18
|
-
const input = canvas.getByTestId("tag");
|
|
19
|
-
await expect(input).toHaveTextContent("~ 30% APY");
|
|
20
|
-
},
|
|
21
|
-
};
|