@ledgerhq/native-ui 0.38.0-nightly.1 → 0.39.0-nightly.0

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,4 @@
1
+ import React from "react";
2
+ import { CryptoIcon as Icon } from "@ledgerhq/crypto-icons";
3
+ export declare function CryptoIcon(props: Parameters<typeof Icon>[0]): React.JSX.Element;
4
+ //# sourceMappingURL=CryptoIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CryptoIcon.d.ts","sourceRoot":"","sources":["../../../../src/pre-ldls/components/CryptoIcon/CryptoIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,IAAI,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAE5D,wBAAgB,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC,CAAC,qBAE3D"}
@@ -0,0 +1,5 @@
1
+ import React from "react";
2
+ import { CryptoIcon as Icon } from "@ledgerhq/crypto-icons";
3
+ export function CryptoIcon(props) {
4
+ return React.createElement(Icon, { ...props });
5
+ }
@@ -0,0 +1,7 @@
1
+ import { type Meta, type StoryObj } from "@storybook/react";
2
+ import { CryptoIcon } from "./CryptoIcon";
3
+ declare const meta: Meta<typeof CryptoIcon>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof CryptoIcon>;
6
+ export declare const Default: Story;
7
+ //# sourceMappingURL=CryptoIcon.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CryptoIcon.stories.d.ts","sourceRoot":"","sources":["../../../../src/pre-ldls/components/CryptoIcon/CryptoIcon.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,EAAE,KAAK,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,UAAU,CAmBjC,CAAC;AACF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,UAAU,CAAC,CAAC;AAEzC,eAAO,MAAM,OAAO,EAAE,KAErB,CAAC"}
@@ -0,0 +1,25 @@
1
+ import { CryptoIcon } from "./CryptoIcon";
2
+ const meta = {
3
+ component: CryptoIcon,
4
+ title: "PreLdls/Components/CryptoIcon",
5
+ tags: ["autodocs"],
6
+ args: {
7
+ ledgerId: "bitcoin",
8
+ ticker: "BTC",
9
+ size: 56,
10
+ network: "",
11
+ },
12
+ argTypes: {
13
+ size: {
14
+ options: [16, 24, 32, 40, 48, 56],
15
+ control: "select",
16
+ },
17
+ ledgerId: {
18
+ description: "A chain eg algorand, aptos, bitcoin, cardano, casper",
19
+ },
20
+ },
21
+ };
22
+ export default meta;
23
+ export const Default = {
24
+ name: "CryptoIcon",
25
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ledgerhq/native-ui",
3
- "version": "0.38.0-nightly.1",
3
+ "version": "0.39.0-nightly.0",
4
4
  "description": "Ledger Live - Mobile UI",
5
5
  "repository": {
6
6
  "type": "git",
@@ -35,6 +35,7 @@
35
35
  "lib/**/*"
36
36
  ],
37
37
  "dependencies": {
38
+ "@ledgerhq/crypto-icons": "1.1.1",
38
39
  "color": "^4.0.0",
39
40
  "react-native-modal": "14.0.0-rc.1",
40
41
  "rn-range-slider": "2.1.1",