diff --git a/apps/gallery-new/stories/components/wui-icon.stories.ts b/apps/gallery-new/stories/components/wui-icon.stories.ts
index 45b20f4ede..cd8eb5eb88 100644
--- a/apps/gallery-new/stories/components/wui-icon.stories.ts
+++ b/apps/gallery-new/stories/components/wui-icon.stories.ts
@@ -30,6 +30,5 @@ export default {
} as Component
export const Default: Component = {
- render: args =>
- html``
+ render: args => html``
}
diff --git a/apps/gallery-new/stories/composites/wui-icon-box.stories.ts b/apps/gallery-new/stories/composites/wui-icon-box.stories.ts
index 55ae5f1e9a..bb7359c87c 100644
--- a/apps/gallery-new/stories/composites/wui-icon-box.stories.ts
+++ b/apps/gallery-new/stories/composites/wui-icon-box.stories.ts
@@ -3,55 +3,34 @@ import '@reown/appkit-ui-new/src/composites/wui-icon-box'
import type { WuiIconBox } from '@reown/appkit-ui-new/src/composites/wui-icon-box'
import { html } from 'lit'
-import {
- backgroundOptions,
- colorOptions,
- iconBoxBorderOptions,
- iconOptions
-} from '../../utils/PresetUtils'
+import { backgroundColorOptions, iconColorOptions, iconOptions } from '../../utils/PresetUtils'
type Component = Meta
export default {
title: 'Composites/wui-icon-box',
args: {
- size: 'md',
- backgroundColor: 'accent-100',
- iconColor: 'accent-100',
- icon: 'copy',
- background: 'transparent',
- border: false,
- borderColor: undefined
+ iconColor: 'inverse',
+ iconSize: 'xl',
+ backgroundColor: 'foregroundSecondary',
+ icon: 'qrCode'
},
-
argTypes: {
- size: {
- defaultValue: 'md',
- options: ['sm', 'md', 'lg', 'xl'],
+ iconColor: {
+ options: iconColorOptions,
control: { type: 'select' }
},
- backgroundColor: {
- options: colorOptions,
+ iconSize: {
+ options: ['xl', 'md', 'sm', 'xs'],
control: { type: 'select' }
},
- iconColor: {
- options: colorOptions,
+ backgroundColor: {
+ options: backgroundColorOptions,
control: { type: 'select' }
},
icon: {
options: iconOptions,
control: { type: 'select' }
- },
- background: {
- options: backgroundOptions,
- control: { type: 'select' }
- },
- border: {
- control: { type: 'boolean' }
- },
- borderColor: {
- options: iconBoxBorderOptions,
- control: { type: 'select' }
}
}
} as Component
@@ -59,12 +38,9 @@ export default {
export const Default: Component = {
render: args =>
html``
}
diff --git a/apps/gallery-new/stories/composites/wui-list-select-wallet.stories.ts b/apps/gallery-new/stories/composites/wui-list-select-wallet.stories.ts
new file mode 100644
index 0000000000..18a5ca4ef4
--- /dev/null
+++ b/apps/gallery-new/stories/composites/wui-list-select-wallet.stories.ts
@@ -0,0 +1,54 @@
+import type { Meta } from '@storybook/web-components'
+import '@reown/appkit-ui-new/src/composites/wui-list-select-wallet'
+import type { WuiListSelectWallet } from '@reown/appkit-ui-new/src/composites/wui-list-select-wallet'
+import { html } from 'lit'
+import '../../components/gallery-container'
+import { walletImagesOptions } from '../../utils/PresetUtils'
+
+type Component = Meta
+
+export default {
+ title: 'Composites/wui-list-select-wallet',
+ args: {
+ imageSrc: walletImagesOptions[0]?.src,
+ name: 'MetaMask',
+ tagLabel: 'LABEL',
+ qrCode: false,
+ allWallets: false,
+ disabled: false
+ },
+ argTypes: {
+ imageSrc: {
+ control: { type: 'text' }
+ },
+ name: {
+ control: { type: 'text' }
+ },
+ tagLabel: {
+ control: { type: 'text' }
+ },
+ qrCode: {
+ control: { type: 'boolean' }
+ },
+ allWallets: {
+ control: { type: 'boolean' }
+ },
+ disabled: {
+ control: { type: 'boolean' }
+ }
+ }
+} as Component
+
+export const Default: Component = {
+ render: args =>
+ html`
+
+ `
+}
diff --git a/apps/gallery-new/stories/composites/wui-list-wallet.stories.ts b/apps/gallery-new/stories/composites/wui-list-wallet.stories.ts
deleted file mode 100644
index 9c2e725088..0000000000
--- a/apps/gallery-new/stories/composites/wui-list-wallet.stories.ts
+++ /dev/null
@@ -1,60 +0,0 @@
-import type { Meta } from '@storybook/web-components'
-import '@reown/appkit-ui-new/src/composites/wui-list-wallet'
-import type { WuiListWallet } from '@reown/appkit-ui-new/src/composites/wui-list-wallet'
-import { html } from 'lit'
-import '../../components/gallery-container'
-import {
- iconOptions,
- tagLabelOptions,
- tagOptions,
- walletImagesOptions
-} from '../../utils/PresetUtils'
-
-type Component = Meta
-
-export default {
- title: 'Composites/wui-list-wallet',
- args: {
- walletImages: walletImagesOptions,
- imageSrc: walletImagesOptions[0]?.src,
- name: 'Rainbow',
- showAllWallets: false,
- disabled: false,
- tagLabel: 'qr code',
- tagVariant: 'main',
- icon: undefined
- },
- argTypes: {
- showAllWallets: {
- control: { type: 'boolean' }
- },
- tagLabel: {
- options: [undefined, ...tagLabelOptions],
- control: { type: 'select' }
- },
- tagVariant: {
- options: [undefined, ...tagOptions],
- control: { type: 'select' }
- },
- icon: {
- options: [undefined, ...iconOptions],
- control: { type: 'select' }
- }
- }
-} as Component
-
-export const Default: Component = {
- render: args =>
- html`
-
- `
-}
diff --git a/apps/gallery-new/utils/PresetUtils.ts b/apps/gallery-new/utils/PresetUtils.ts
index 50abca60a8..20fd11851a 100644
--- a/apps/gallery-new/utils/PresetUtils.ts
+++ b/apps/gallery-new/utils/PresetUtils.ts
@@ -42,7 +42,12 @@ export const textColorOptions: TextColorType[] = [
'accent-primary'
]
-export const colorOptions = []
+export const iconColorOptions = ['accent', 'inverse']
+
+// @TODO: Deprecate this
+export const colorOptions = iconColorOptions
+
+export const backgroundColorOptions = ['foregroundSecondary', 'foregroundAccent010']
export const textOptions: TextType[] = [
'h1-regular-mono',
@@ -125,6 +130,10 @@ export const gridContentOptions: GridContentType[] = [
]
export const walletImagesOptions = [
+ {
+ src: 'https://explorer-api.walletconnect.org/v3/logo/md/018b2d52-10e9-4158-1fde-a5d5bac5aa00?projectId=c1781fc385454899a2b1385a2b83df3b',
+ walletName: 'MetaMask'
+ },
{
src: 'https://explorer-api.walletconnect.com/w3m/v1/getWalletImage/7a33d7f1-3d12-4b5c-f3ee-5cd83cb1b500?projectId=c1781fc385454899a2b1385a2b83df3b',
walletName: 'Rainbow'
@@ -340,8 +349,6 @@ export const iconBoxBorderOptions: IconBoxBorderType[] = [
'wui-accent-glass-010'
]
-export const tagLabelOptions = ['get wallet', 'installed', 'qr code', 'recent']
-
export const signTypedData = {
domain: {
name: 'Ether Mail',
diff --git a/packages/ui-new/index.ts b/packages/ui-new/index.ts
index 5cb29d2d5e..172805ca20 100644
--- a/packages/ui-new/index.ts
+++ b/packages/ui-new/index.ts
@@ -35,7 +35,7 @@ export * from './src/composites/wui-link/index.js'
export * from './src/composites/wui-list-item/index.js'
export * from './src/composites/wui-transaction-list-item/index.js'
export * from './src/composites/wui-transaction-list-item-loader/index.js'
-export * from './src/composites/wui-list-wallet/index.js'
+export * from './src/composites/wui-list-select-wallet/index.js'
export * from './src/composites/wui-logo-select/index.js'
export * from './src/composites/wui-logo/index.js'
export * from './src/composites/wui-network-button/index.js'
diff --git a/packages/ui-new/src/assets/svg/all-wallets.ts b/packages/ui-new/src/assets/svg/all-wallets.ts
index e32b164165..5a224d3c0d 100644
--- a/packages/ui-new/src/assets/svg/all-wallets.ts
+++ b/packages/ui-new/src/assets/svg/all-wallets.ts
@@ -1,8 +1,5 @@
import { svg } from 'lit'
-export const allWalletsSvg = svg`