Skip to content

Commit 7d74df1

Browse files
feat(lumen): Add new 72 size
1 parent 6904644 commit 7d74df1

6 files changed

Lines changed: 30 additions & 28 deletions

File tree

lib/__mocks__/lumen-ui-react.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ export const mediaImageDotSizeMap = {
5252
48: 20,
5353
56: 24,
5454
64: 24,
55+
72: 32,
5556
} as const;
5657

5758
export const Skeleton = (props: SkeletonProps) => <div data-testid="skeleton" {...props} />;
@@ -79,4 +80,5 @@ export const mediaImageDotIconSizeMap = {
7980
48: 20,
8081
56: 24,
8182
64: 24,
83+
72: 32,
8284
} as const;

lib/__mocks__/lumen-ui-rnative.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ export const mediaImageDotSizeMap = {
3838
48: 20,
3939
56: 24,
4040
64: 24,
41+
72: 32,
4142
} as const;
4243

4344
export const Skeleton = (_props: SkeletonProps) => <div data-testid="skeleton" />;
@@ -67,4 +68,5 @@ export const mediaImageDotIconSizeMap = {
6768
48: 20,
6869
56: 24,
6970
64: 24,
71+
72: 32,
7072
} as const;

lib/__stories__/CryptoIcon.stories.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const meta: Meta<typeof CryptoIcon> = {
2525
},
2626
size: {
2727
control: 'select',
28-
options: [12, 16, 20, 24, 32, 40, 48, 56, 64],
28+
options: [12, 16, 20, 24, 32, 40, 48, 56, 64, 72],
2929
},
3030
shape: {
3131
control: 'radio',
@@ -56,7 +56,7 @@ export const Base: Story = {
5656
export const SizeShowcase: Story = {
5757
render: () => (
5858
<div className="flex gap-4 items-end">
59-
{([12, 16, 20, 24, 32, 40, 48, 56, 64] as const).map((s) => (
59+
{([12, 16, 20, 24, 32, 40, 48, 56, 64, 72] as const).map((s) => (
6060
<div key={s} className="flex flex-col items-center gap-2">
6161
<CryptoIcon ledgerId="bitcoin" ticker="BTC" size={s} />
6262
<span style={{ fontSize: 10, color: '#888' }}>{s}</span>
@@ -153,7 +153,7 @@ export const FallbackShowcase: Story = {
153153
render: () => (
154154
<div className="flex flex-col gap-8">
155155
<div className="flex gap-4 items-end">
156-
{([12, 16, 20, 24, 32, 40, 48, 56, 64] as const).map((s) => (
156+
{([12, 16, 20, 24, 32, 40, 48, 56, 64, 72] as const).map((s) => (
157157
<div key={s} className="flex flex-col items-center gap-2">
158158
<CryptoIcon ledgerId="not_a_real_coin" ticker="BTC" size={s} />
159159
<span style={{ fontSize: 10, color: '#888' }}>{s}</span>

lib/__stories__/CryptoIconList.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ SingleLedgerIcon.argTypes = {
284284
ticker: { control: 'text', description: 'The ticker of the icon to display' },
285285
size: {
286286
control: 'select',
287-
options: [12, 16, 20, 24, 32, 40, 48, 56, 64],
287+
options: [12, 16, 20, 24, 32, 40, 48, 56, 64, 72],
288288
description: 'The size of the icon',
289289
defaultValue: 56,
290290
},

lib/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ledgerhq/crypto-icons",
3-
"version": "2.0.4",
3+
"version": "2.0.5",
44
"description": "Crypto icons by Ledger",
55
"license": "MIT",
66
"repository": {
@@ -49,8 +49,8 @@
4949
},
5050
"devDependencies": {
5151
"@ledgerhq/lumen-design-core": "^0.1.13",
52-
"@ledgerhq/lumen-ui-react": "^0.1.36",
53-
"@ledgerhq/lumen-ui-rnative": "^0.1.37",
52+
"@ledgerhq/lumen-ui-react": "^0.1.37",
53+
"@ledgerhq/lumen-ui-rnative": "^0.1.38",
5454
"@ledgerhq/wallet-api-client": "^1.5.9",
5555
"@storybook/addon-controls": "8.2.6",
5656
"@storybook/addon-essentials": "8.2.6",
@@ -100,8 +100,8 @@
100100
},
101101
"peerDependencies": {
102102
"@ledgerhq/lumen-design-core": ">=0.1.13",
103-
"@ledgerhq/lumen-ui-react": ">=0.1.36",
104-
"@ledgerhq/lumen-ui-rnative": ">=0.1.37",
103+
"@ledgerhq/lumen-ui-react": ">=0.1.37",
104+
"@ledgerhq/lumen-ui-rnative": ">=0.1.38",
105105
"react": ">=18",
106106
"react-dom": ">=18",
107107
"react-native": ">=0.70"

lib/pnpm-lock.yaml

Lines changed: 17 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)