@xyo-network/react-wallet 2.25.23 → 2.25.26
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/package.json
CHANGED
|
@@ -15,10 +15,10 @@
|
|
|
15
15
|
"@mui/material": "^5.8.1",
|
|
16
16
|
"@xylabs/sdk-js": "^2.5.5",
|
|
17
17
|
"@xylabs/sdk-react": "^2.12.10",
|
|
18
|
-
"@xyo-network/core": "^2.20.
|
|
19
|
-
"@xyo-network/react-network": "^2.25.
|
|
20
|
-
"@xyo-network/react-shared": "^2.25.
|
|
21
|
-
"@xyo-network/react-theme": "^2.25.
|
|
18
|
+
"@xyo-network/core": "^2.20.38",
|
|
19
|
+
"@xyo-network/react-network": "^2.25.26",
|
|
20
|
+
"@xyo-network/react-shared": "^2.25.26",
|
|
21
|
+
"@xyo-network/react-theme": "^2.25.26",
|
|
22
22
|
"lodash": "^4.17.21",
|
|
23
23
|
"react": "^18.1.0",
|
|
24
24
|
"react-dom": "^18.1.0",
|
|
@@ -30,12 +30,12 @@
|
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@babel/core": "^7.18.2",
|
|
32
32
|
"@babel/preset-env": "^7.18.2",
|
|
33
|
-
"@storybook/addons": "^6.5.
|
|
34
|
-
"@storybook/api": "^6.5.
|
|
35
|
-
"@storybook/components": "^6.5.
|
|
36
|
-
"@storybook/core-events": "^6.5.
|
|
37
|
-
"@storybook/react": "^6.5.
|
|
38
|
-
"@storybook/theming": "^6.5.
|
|
33
|
+
"@storybook/addons": "^6.5.6",
|
|
34
|
+
"@storybook/api": "^6.5.6",
|
|
35
|
+
"@storybook/components": "^6.5.6",
|
|
36
|
+
"@storybook/core-events": "^6.5.6",
|
|
37
|
+
"@storybook/react": "^6.5.6",
|
|
38
|
+
"@storybook/theming": "^6.5.6",
|
|
39
39
|
"@types/lodash": "^4.14.182",
|
|
40
40
|
"@xylabs/sdk-js": "^2.5.5",
|
|
41
41
|
"@xylabs/sdk-react": "^2.12.10",
|
|
@@ -103,6 +103,6 @@
|
|
|
103
103
|
},
|
|
104
104
|
"sideEffects": false,
|
|
105
105
|
"types": "dist/esm/index.d.ts",
|
|
106
|
-
"version": "2.25.
|
|
106
|
+
"version": "2.25.26",
|
|
107
107
|
"packageManager": "yarn@3.1.1"
|
|
108
108
|
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/* eslint-disable import/no-internal-modules */
|
|
2
|
+
import { ComponentMeta, ComponentStory } from '@storybook/react'
|
|
3
|
+
import { XyoWalletBase } from '@xyo-network/core'
|
|
4
|
+
|
|
5
|
+
import { WalletProvider } from '../../contexts'
|
|
6
|
+
import { WalletAccountSelect } from './Select'
|
|
7
|
+
|
|
8
|
+
const StorybookEntry = {
|
|
9
|
+
argTypes: {},
|
|
10
|
+
component: WalletAccountSelect,
|
|
11
|
+
parameters: {
|
|
12
|
+
docs: {
|
|
13
|
+
page: null,
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
title: 'wallet/WalletAccountSelect',
|
|
17
|
+
} as ComponentMeta<typeof WalletAccountSelect>
|
|
18
|
+
|
|
19
|
+
const Template: ComponentStory<typeof WalletAccountSelect> = (args) => {
|
|
20
|
+
return <WalletAccountSelect {...args}></WalletAccountSelect>
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
const WithWalletTemplate: ComponentStory<typeof WalletAccountSelect> = (args) => {
|
|
24
|
+
return (
|
|
25
|
+
<WalletProvider defaultWallet={new XyoWalletBase('test me')}>
|
|
26
|
+
<WalletAccountSelect {...args}></WalletAccountSelect>
|
|
27
|
+
</WalletProvider>
|
|
28
|
+
)
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
const Default = Template.bind({})
|
|
32
|
+
Default.args = {}
|
|
33
|
+
|
|
34
|
+
const WithWallet = WithWalletTemplate.bind({})
|
|
35
|
+
WithWallet.args = {}
|
|
36
|
+
|
|
37
|
+
export { Default, WithWallet }
|
|
38
|
+
|
|
39
|
+
// eslint-disable-next-line import/no-default-export
|
|
40
|
+
export default StorybookEntry
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/* eslint-disable import/no-internal-modules */
|
|
2
|
+
import { ComponentMeta, ComponentStory } from '@storybook/react'
|
|
3
|
+
import { XyoWalletBase } from '@xyo-network/core'
|
|
4
|
+
import { BrowserRouter } from 'react-router-dom'
|
|
5
|
+
|
|
6
|
+
import { ApplicationAppBar } from '../../../../appbar/src'
|
|
7
|
+
import { ArchivesProvider } from '../../../../archive/src'
|
|
8
|
+
import { ArchivistApiProvider } from '../../../../archivist-api/src'
|
|
9
|
+
import { NetworkMemoryProvider } from '../../../../network/src'
|
|
10
|
+
import { WalletProvider } from '../../contexts'
|
|
11
|
+
import { WalletAccountSelectBar } from './SelectBar'
|
|
12
|
+
|
|
13
|
+
const StorybookEntry = {
|
|
14
|
+
argTypes: {},
|
|
15
|
+
component: WalletAccountSelectBar,
|
|
16
|
+
parameters: {
|
|
17
|
+
docs: {
|
|
18
|
+
page: null,
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
title: 'wallet/WalletAccountSelectBar',
|
|
22
|
+
} as ComponentMeta<typeof WalletAccountSelectBar>
|
|
23
|
+
|
|
24
|
+
const Template: ComponentStory<typeof WalletAccountSelectBar> = (args) => {
|
|
25
|
+
return <WalletAccountSelectBar {...args}></WalletAccountSelectBar>
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
const WithWalletTemplate: ComponentStory<typeof WalletAccountSelectBar> = (args) => {
|
|
29
|
+
return (
|
|
30
|
+
<WalletProvider defaultWallet={new XyoWalletBase('test me')}>
|
|
31
|
+
<WalletAccountSelectBar {...args}></WalletAccountSelectBar>
|
|
32
|
+
</WalletProvider>
|
|
33
|
+
)
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
const WithAppBarTemplate: ComponentStory<typeof WalletAccountSelectBar> = (args) => {
|
|
37
|
+
return (
|
|
38
|
+
<WalletProvider defaultWallet={new XyoWalletBase('test me')}>
|
|
39
|
+
<NetworkMemoryProvider>
|
|
40
|
+
<ArchivistApiProvider apiDomain="https://beta.api.archivist.xyo.network">
|
|
41
|
+
<BrowserRouter>
|
|
42
|
+
<ArchivesProvider>
|
|
43
|
+
<ApplicationAppBar>
|
|
44
|
+
<WalletAccountSelectBar icons flexGrow={1} {...args}></WalletAccountSelectBar>
|
|
45
|
+
</ApplicationAppBar>
|
|
46
|
+
</ArchivesProvider>
|
|
47
|
+
</BrowserRouter>
|
|
48
|
+
</ArchivistApiProvider>
|
|
49
|
+
</NetworkMemoryProvider>
|
|
50
|
+
</WalletProvider>
|
|
51
|
+
)
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
const Default = Template.bind({})
|
|
55
|
+
Default.args = {}
|
|
56
|
+
|
|
57
|
+
const WithWallet = WithWalletTemplate.bind({})
|
|
58
|
+
WithWallet.args = {}
|
|
59
|
+
|
|
60
|
+
const WithAppBar = WithAppBarTemplate.bind({})
|
|
61
|
+
WithAppBar.args = {}
|
|
62
|
+
|
|
63
|
+
export { Default, WithAppBar, WithWallet }
|
|
64
|
+
|
|
65
|
+
// eslint-disable-next-line import/no-default-export
|
|
66
|
+
export default StorybookEntry
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/* eslint-disable import/no-internal-modules */
|
|
2
|
+
import { ComponentMeta, ComponentStory } from '@storybook/react'
|
|
3
|
+
import { XyoWalletBase } from '@xyo-network/core'
|
|
4
|
+
|
|
5
|
+
import { WalletProvider } from '../../contexts'
|
|
6
|
+
import { WalletAccountSelect } from './Select'
|
|
7
|
+
|
|
8
|
+
const StorybookEntry = {
|
|
9
|
+
argTypes: {},
|
|
10
|
+
component: WalletAccountSelect,
|
|
11
|
+
parameters: {
|
|
12
|
+
docs: {
|
|
13
|
+
page: null,
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
title: 'wallet/WalletAccountSelectWithProvider',
|
|
17
|
+
} as ComponentMeta<typeof WalletAccountSelect>
|
|
18
|
+
|
|
19
|
+
const Template: ComponentStory<typeof WalletAccountSelect> = (args) => {
|
|
20
|
+
return (
|
|
21
|
+
<WalletProvider defaultWallet={new XyoWalletBase('test me')}>
|
|
22
|
+
<WalletAccountSelect {...args}></WalletAccountSelect>
|
|
23
|
+
</WalletProvider>
|
|
24
|
+
)
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
const Default = Template.bind({})
|
|
28
|
+
Default.args = { icons: true }
|
|
29
|
+
|
|
30
|
+
const DefaultSmall = Template.bind({})
|
|
31
|
+
DefaultSmall.args = { size: 'small' }
|
|
32
|
+
|
|
33
|
+
const DefaultSmallIcon = Template.bind({})
|
|
34
|
+
DefaultSmallIcon.args = { icons: true, size: 'small' }
|
|
35
|
+
|
|
36
|
+
const IconsOnly = Template.bind({})
|
|
37
|
+
IconsOnly.args = { iconOnly: true, icons: true }
|
|
38
|
+
|
|
39
|
+
const IconsOnlySmall = Template.bind({})
|
|
40
|
+
IconsOnlySmall.args = { iconOnly: true, icons: true, size: 'small' }
|
|
41
|
+
|
|
42
|
+
export { Default, DefaultSmall, DefaultSmallIcon, IconsOnly, IconsOnlySmall }
|
|
43
|
+
|
|
44
|
+
// eslint-disable-next-line import/no-default-export
|
|
45
|
+
export default StorybookEntry
|