@ledgerhq/native-ui 0.59.0 → 0.60.0-nightly.20260314025831

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.
@@ -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,6BAA6B,CAAC;AAC5C,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
+ {"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.59.0",
3
+ "version": "0.60.0-nightly.20260314025831",
4
4
  "description": "Ledger Live - Mobile UI",
5
5
  "repository": {
6
6
  "type": "git",
@@ -97,7 +97,7 @@
97
97
  "@types/color": "^3.0.3",
98
98
  "@types/hoist-non-react-statics": "^3.3.1",
99
99
  "@types/lodash": "4.17.18",
100
- "@types/node": "22.19.13",
100
+ "@types/node": "24.12.0",
101
101
  "@types/prop-types": "^15.7.5",
102
102
  "@types/react": "19.0.14",
103
103
  "@types/styled-system": "^5.1.13",
@@ -159,7 +159,7 @@
159
159
  "android": "expo start --android",
160
160
  "build": "tsc -p tsconfig.prod.json && node scripts/postBuild",
161
161
  "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 -o web-build",
162
+ "build:storybook": "NODE_PATH=./node_modules storybook build -c .storybook-web",
163
163
  "watch": "tsc -p tsconfig.prod.json --watch",
164
164
  "clean": "rimraf lib",
165
165
  "eject": "expo eject",
@@ -1,5 +0,0 @@
1
- export declare const ApyIndicator: ({ value, type }: {
2
- value: number;
3
- type: "NRR" | "APY" | "APR";
4
- }) => import("react/jsx-runtime").JSX.Element;
5
- //# sourceMappingURL=ApyIndicator.d.ts.map
@@ -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,5 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { Tag } from "../Tag/Tag";
3
- export const ApyIndicator = ({ value, type }) => {
4
- return _jsx(Tag, { spacing: "md", children: `~ ${value}% ${type}` });
5
- };
@@ -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
- };