@xyo-network/react-wallet 2.25.36 → 2.25.39
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/dist/cjs/components/WalletAccountSelect/SelectBar.js +2 -1
- package/dist/cjs/components/WalletAccountSelect/SelectBar.js.map +1 -1
- package/dist/docs.json +32 -32
- package/dist/esm/components/WalletAccountSelect/SelectBar.js +3 -2
- package/dist/esm/components/WalletAccountSelect/SelectBar.js.map +1 -1
- package/package.json +15 -15
- package/src/components/WalletAccountSelect/SelectBar.tsx +7 -4
- package/src/components/WalletAccountSelect/WalletAccountSelectBar.stories.tsx +1 -27
|
@@ -3,11 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.WalletAccountSelectBar = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
6
|
+
const material_1 = require("@mui/material");
|
|
6
7
|
const sdk_react_1 = require("@xylabs/sdk-react");
|
|
7
8
|
const Select_1 = require("./Select");
|
|
8
9
|
const WalletAccountSelectBar = (_a) => {
|
|
9
10
|
var { iconOnly, icons, iconSize, size = 'small' } = _a, props = tslib_1.__rest(_a, ["iconOnly", "icons", "iconSize", "size"]);
|
|
10
|
-
return ((0, jsx_runtime_1.jsx)(sdk_react_1.
|
|
11
|
+
return ((0, jsx_runtime_1.jsx)(sdk_react_1.FlexCol, Object.assign({ alignItems: "stretch" }, props, { children: (0, jsx_runtime_1.jsx)(material_1.Paper, Object.assign({ variant: "elevation", elevation: 0 }, { children: (0, jsx_runtime_1.jsx)(Select_1.WalletAccountSelect, { fullWidth: true, iconSize: iconSize, iconOnly: iconOnly, icons: icons, size: size !== null && size !== void 0 ? size : 'small' }) })) })));
|
|
11
12
|
};
|
|
12
13
|
exports.WalletAccountSelectBar = WalletAccountSelectBar;
|
|
13
14
|
//# sourceMappingURL=SelectBar.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectBar.js","sourceRoot":"","sources":["../../../../src/components/WalletAccountSelect/SelectBar.tsx"],"names":[],"mappings":";;;;;AAAA,iDAAyD;AAEzD,qCAA8C;AASvC,MAAM,sBAAsB,GAA0C,CAAC,EAAuD,EAAE,EAAE;QAA3D,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,GAAG,OAAO,OAAY,EAAP,KAAK,sBAArD,yCAAuD,CAAF;IACjI,OAAO,CACL,uBAAC,mBAAO,kBAAC,UAAU,
|
|
1
|
+
{"version":3,"file":"SelectBar.js","sourceRoot":"","sources":["../../../../src/components/WalletAccountSelect/SelectBar.tsx"],"names":[],"mappings":";;;;;AAAA,4CAAqC;AACrC,iDAAyD;AAEzD,qCAA8C;AASvC,MAAM,sBAAsB,GAA0C,CAAC,EAAuD,EAAE,EAAE;QAA3D,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,GAAG,OAAO,OAAY,EAAP,KAAK,sBAArD,yCAAuD,CAAF;IACjI,OAAO,CACL,uBAAC,mBAAO,kBAAC,UAAU,EAAC,SAAS,IAAK,KAAK,cACrC,uBAAC,gBAAK,kBAAC,OAAO,EAAC,WAAW,EAAC,SAAS,EAAE,CAAC,gBACrC,uBAAC,4BAAmB,IAAC,SAAS,QAAC,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,aAAJ,IAAI,cAAJ,IAAI,GAAI,OAAO,GAAI,IACxG,IACA,CACX,CAAA;AACH,CAAC,CAAA;AARY,QAAA,sBAAsB,0BAQlC"}
|
package/dist/docs.json
CHANGED
|
@@ -2434,7 +2434,7 @@
|
|
|
2434
2434
|
},
|
|
2435
2435
|
"sources": [
|
|
2436
2436
|
{
|
|
2437
|
-
"fileName": "node_modules/@xylabs/
|
|
2437
|
+
"fileName": "node_modules/@xylabs/react-flexbox/dist/esm/components/BusyBox.d.ts",
|
|
2438
2438
|
"line": 6,
|
|
2439
2439
|
"character": 4
|
|
2440
2440
|
}
|
|
@@ -5655,7 +5655,7 @@
|
|
|
5655
5655
|
},
|
|
5656
5656
|
"sources": [
|
|
5657
5657
|
{
|
|
5658
|
-
"fileName": "node_modules/@xylabs/
|
|
5658
|
+
"fileName": "node_modules/@xylabs/react-shared/dist/esm/BusyProps.d.ts",
|
|
5659
5659
|
"line": 5,
|
|
5660
5660
|
"character": 4
|
|
5661
5661
|
}
|
|
@@ -5680,7 +5680,7 @@
|
|
|
5680
5680
|
},
|
|
5681
5681
|
"sources": [
|
|
5682
5682
|
{
|
|
5683
|
-
"fileName": "node_modules/@xylabs/
|
|
5683
|
+
"fileName": "node_modules/@xylabs/react-shared/dist/esm/BusyProps.d.ts",
|
|
5684
5684
|
"line": 9,
|
|
5685
5685
|
"character": 4
|
|
5686
5686
|
}
|
|
@@ -5707,7 +5707,7 @@
|
|
|
5707
5707
|
},
|
|
5708
5708
|
"sources": [
|
|
5709
5709
|
{
|
|
5710
|
-
"fileName": "node_modules/@xylabs/
|
|
5710
|
+
"fileName": "node_modules/@xylabs/react-shared/dist/esm/BusyProps.d.ts",
|
|
5711
5711
|
"line": 7,
|
|
5712
5712
|
"character": 4
|
|
5713
5713
|
}
|
|
@@ -5715,7 +5715,7 @@
|
|
|
5715
5715
|
"type": {
|
|
5716
5716
|
"type": "reference",
|
|
5717
5717
|
"qualifiedName": "MaterialUIThemeColor",
|
|
5718
|
-
"package": "@xylabs/
|
|
5718
|
+
"package": "@xylabs/react-shared",
|
|
5719
5719
|
"name": "MaterialUIThemeColor"
|
|
5720
5720
|
},
|
|
5721
5721
|
"inheritedFrom": {
|
|
@@ -5734,7 +5734,7 @@
|
|
|
5734
5734
|
},
|
|
5735
5735
|
"sources": [
|
|
5736
5736
|
{
|
|
5737
|
-
"fileName": "node_modules/@xylabs/
|
|
5737
|
+
"fileName": "node_modules/@xylabs/react-shared/dist/esm/BusyProps.d.ts",
|
|
5738
5738
|
"line": 10,
|
|
5739
5739
|
"character": 4
|
|
5740
5740
|
}
|
|
@@ -5761,7 +5761,7 @@
|
|
|
5761
5761
|
},
|
|
5762
5762
|
"sources": [
|
|
5763
5763
|
{
|
|
5764
|
-
"fileName": "node_modules/@xylabs/
|
|
5764
|
+
"fileName": "node_modules/@xylabs/react-shared/dist/esm/BusyProps.d.ts",
|
|
5765
5765
|
"line": 6,
|
|
5766
5766
|
"character": 4
|
|
5767
5767
|
}
|
|
@@ -5795,7 +5795,7 @@
|
|
|
5795
5795
|
},
|
|
5796
5796
|
"sources": [
|
|
5797
5797
|
{
|
|
5798
|
-
"fileName": "node_modules/@xylabs/
|
|
5798
|
+
"fileName": "node_modules/@xylabs/react-shared/dist/esm/BusyProps.d.ts",
|
|
5799
5799
|
"line": 11,
|
|
5800
5800
|
"character": 4
|
|
5801
5801
|
}
|
|
@@ -5820,7 +5820,7 @@
|
|
|
5820
5820
|
},
|
|
5821
5821
|
"sources": [
|
|
5822
5822
|
{
|
|
5823
|
-
"fileName": "node_modules/@xylabs/
|
|
5823
|
+
"fileName": "node_modules/@xylabs/react-shared/dist/esm/BusyProps.d.ts",
|
|
5824
5824
|
"line": 8,
|
|
5825
5825
|
"character": 4
|
|
5826
5826
|
}
|
|
@@ -5828,7 +5828,7 @@
|
|
|
5828
5828
|
"type": {
|
|
5829
5829
|
"type": "reference",
|
|
5830
5830
|
"qualifiedName": "BusyVariant",
|
|
5831
|
-
"package": "@xylabs/
|
|
5831
|
+
"package": "@xylabs/react-shared",
|
|
5832
5832
|
"name": "BusyVariant"
|
|
5833
5833
|
},
|
|
5834
5834
|
"inheritedFrom": {
|
|
@@ -21367,7 +21367,7 @@
|
|
|
21367
21367
|
},
|
|
21368
21368
|
"sources": [
|
|
21369
21369
|
{
|
|
21370
|
-
"fileName": "node_modules/@xylabs/
|
|
21370
|
+
"fileName": "node_modules/@xylabs/react-flexbox/dist/esm/components/BusyBox.d.ts",
|
|
21371
21371
|
"line": 5,
|
|
21372
21372
|
"character": 4
|
|
21373
21373
|
}
|
|
@@ -25015,7 +25015,7 @@
|
|
|
25015
25015
|
{
|
|
25016
25016
|
"type": "reference",
|
|
25017
25017
|
"qualifiedName": "FlexBoxProps",
|
|
25018
|
-
"package": "@xylabs/
|
|
25018
|
+
"package": "@xylabs/react-flexbox",
|
|
25019
25019
|
"name": "FlexBoxProps"
|
|
25020
25020
|
}
|
|
25021
25021
|
]
|
|
@@ -27272,7 +27272,7 @@
|
|
|
27272
27272
|
},
|
|
27273
27273
|
"sources": [
|
|
27274
27274
|
{
|
|
27275
|
-
"fileName": "node_modules/@xylabs/
|
|
27275
|
+
"fileName": "node_modules/@xylabs/react-flexbox/dist/esm/components/BusyBox.d.ts",
|
|
27276
27276
|
"line": 6,
|
|
27277
27277
|
"character": 4
|
|
27278
27278
|
}
|
|
@@ -30493,7 +30493,7 @@
|
|
|
30493
30493
|
},
|
|
30494
30494
|
"sources": [
|
|
30495
30495
|
{
|
|
30496
|
-
"fileName": "node_modules/@xylabs/
|
|
30496
|
+
"fileName": "node_modules/@xylabs/react-shared/dist/esm/BusyProps.d.ts",
|
|
30497
30497
|
"line": 5,
|
|
30498
30498
|
"character": 4
|
|
30499
30499
|
}
|
|
@@ -30518,7 +30518,7 @@
|
|
|
30518
30518
|
},
|
|
30519
30519
|
"sources": [
|
|
30520
30520
|
{
|
|
30521
|
-
"fileName": "node_modules/@xylabs/
|
|
30521
|
+
"fileName": "node_modules/@xylabs/react-shared/dist/esm/BusyProps.d.ts",
|
|
30522
30522
|
"line": 9,
|
|
30523
30523
|
"character": 4
|
|
30524
30524
|
}
|
|
@@ -30545,7 +30545,7 @@
|
|
|
30545
30545
|
},
|
|
30546
30546
|
"sources": [
|
|
30547
30547
|
{
|
|
30548
|
-
"fileName": "node_modules/@xylabs/
|
|
30548
|
+
"fileName": "node_modules/@xylabs/react-shared/dist/esm/BusyProps.d.ts",
|
|
30549
30549
|
"line": 7,
|
|
30550
30550
|
"character": 4
|
|
30551
30551
|
}
|
|
@@ -30553,7 +30553,7 @@
|
|
|
30553
30553
|
"type": {
|
|
30554
30554
|
"type": "reference",
|
|
30555
30555
|
"qualifiedName": "MaterialUIThemeColor",
|
|
30556
|
-
"package": "@xylabs/
|
|
30556
|
+
"package": "@xylabs/react-shared",
|
|
30557
30557
|
"name": "MaterialUIThemeColor"
|
|
30558
30558
|
},
|
|
30559
30559
|
"inheritedFrom": {
|
|
@@ -30572,7 +30572,7 @@
|
|
|
30572
30572
|
},
|
|
30573
30573
|
"sources": [
|
|
30574
30574
|
{
|
|
30575
|
-
"fileName": "node_modules/@xylabs/
|
|
30575
|
+
"fileName": "node_modules/@xylabs/react-shared/dist/esm/BusyProps.d.ts",
|
|
30576
30576
|
"line": 10,
|
|
30577
30577
|
"character": 4
|
|
30578
30578
|
}
|
|
@@ -30599,7 +30599,7 @@
|
|
|
30599
30599
|
},
|
|
30600
30600
|
"sources": [
|
|
30601
30601
|
{
|
|
30602
|
-
"fileName": "node_modules/@xylabs/
|
|
30602
|
+
"fileName": "node_modules/@xylabs/react-shared/dist/esm/BusyProps.d.ts",
|
|
30603
30603
|
"line": 6,
|
|
30604
30604
|
"character": 4
|
|
30605
30605
|
}
|
|
@@ -30633,7 +30633,7 @@
|
|
|
30633
30633
|
},
|
|
30634
30634
|
"sources": [
|
|
30635
30635
|
{
|
|
30636
|
-
"fileName": "node_modules/@xylabs/
|
|
30636
|
+
"fileName": "node_modules/@xylabs/react-shared/dist/esm/BusyProps.d.ts",
|
|
30637
30637
|
"line": 11,
|
|
30638
30638
|
"character": 4
|
|
30639
30639
|
}
|
|
@@ -30658,7 +30658,7 @@
|
|
|
30658
30658
|
},
|
|
30659
30659
|
"sources": [
|
|
30660
30660
|
{
|
|
30661
|
-
"fileName": "node_modules/@xylabs/
|
|
30661
|
+
"fileName": "node_modules/@xylabs/react-shared/dist/esm/BusyProps.d.ts",
|
|
30662
30662
|
"line": 8,
|
|
30663
30663
|
"character": 4
|
|
30664
30664
|
}
|
|
@@ -30666,7 +30666,7 @@
|
|
|
30666
30666
|
"type": {
|
|
30667
30667
|
"type": "reference",
|
|
30668
30668
|
"qualifiedName": "BusyVariant",
|
|
30669
|
-
"package": "@xylabs/
|
|
30669
|
+
"package": "@xylabs/react-shared",
|
|
30670
30670
|
"name": "BusyVariant"
|
|
30671
30671
|
},
|
|
30672
30672
|
"inheritedFrom": {
|
|
@@ -34616,7 +34616,7 @@
|
|
|
34616
34616
|
"sources": [
|
|
34617
34617
|
{
|
|
34618
34618
|
"fileName": "packages/wallet/src/components/WalletAccountSelect/SelectBar.tsx",
|
|
34619
|
-
"line":
|
|
34619
|
+
"line": 8,
|
|
34620
34620
|
"character": 2
|
|
34621
34621
|
}
|
|
34622
34622
|
],
|
|
@@ -34636,7 +34636,7 @@
|
|
|
34636
34636
|
"sources": [
|
|
34637
34637
|
{
|
|
34638
34638
|
"fileName": "packages/wallet/src/components/WalletAccountSelect/SelectBar.tsx",
|
|
34639
|
-
"line":
|
|
34639
|
+
"line": 10,
|
|
34640
34640
|
"character": 2
|
|
34641
34641
|
}
|
|
34642
34642
|
],
|
|
@@ -34656,7 +34656,7 @@
|
|
|
34656
34656
|
"sources": [
|
|
34657
34657
|
{
|
|
34658
34658
|
"fileName": "packages/wallet/src/components/WalletAccountSelect/SelectBar.tsx",
|
|
34659
|
-
"line":
|
|
34659
|
+
"line": 9,
|
|
34660
34660
|
"character": 2
|
|
34661
34661
|
}
|
|
34662
34662
|
],
|
|
@@ -46245,7 +46245,7 @@
|
|
|
46245
46245
|
},
|
|
46246
46246
|
"sources": [
|
|
46247
46247
|
{
|
|
46248
|
-
"fileName": "node_modules/@xylabs/
|
|
46248
|
+
"fileName": "node_modules/@xylabs/react-flexbox/dist/esm/components/BusyBox.d.ts",
|
|
46249
46249
|
"line": 5,
|
|
46250
46250
|
"character": 4
|
|
46251
46251
|
}
|
|
@@ -48011,7 +48011,7 @@
|
|
|
48011
48011
|
"sources": [
|
|
48012
48012
|
{
|
|
48013
48013
|
"fileName": "packages/wallet/src/components/WalletAccountSelect/SelectBar.tsx",
|
|
48014
|
-
"line":
|
|
48014
|
+
"line": 7,
|
|
48015
48015
|
"character": 2
|
|
48016
48016
|
}
|
|
48017
48017
|
],
|
|
@@ -49916,7 +49916,7 @@
|
|
|
49916
49916
|
"sources": [
|
|
49917
49917
|
{
|
|
49918
49918
|
"fileName": "packages/wallet/src/components/WalletAccountSelect/SelectBar.tsx",
|
|
49919
|
-
"line":
|
|
49919
|
+
"line": 6,
|
|
49920
49920
|
"character": 17
|
|
49921
49921
|
}
|
|
49922
49922
|
],
|
|
@@ -49924,7 +49924,7 @@
|
|
|
49924
49924
|
{
|
|
49925
49925
|
"type": "reference",
|
|
49926
49926
|
"qualifiedName": "FlexBoxProps",
|
|
49927
|
-
"package": "@xylabs/
|
|
49927
|
+
"package": "@xylabs/react-flexbox",
|
|
49928
49928
|
"name": "FlexBoxProps"
|
|
49929
49929
|
}
|
|
49930
49930
|
]
|
|
@@ -61521,7 +61521,7 @@
|
|
|
61521
61521
|
}
|
|
61522
61522
|
],
|
|
61523
61523
|
"qualifiedName": "WithChildren",
|
|
61524
|
-
"package": "@xylabs/
|
|
61524
|
+
"package": "@xylabs/react-shared",
|
|
61525
61525
|
"name": "WithChildren"
|
|
61526
61526
|
}
|
|
61527
61527
|
],
|
|
@@ -61602,7 +61602,7 @@
|
|
|
61602
61602
|
"sources": [
|
|
61603
61603
|
{
|
|
61604
61604
|
"fileName": "packages/wallet/src/components/WalletAccountSelect/SelectBar.tsx",
|
|
61605
|
-
"line":
|
|
61605
|
+
"line": 13,
|
|
61606
61606
|
"character": 13
|
|
61607
61607
|
}
|
|
61608
61608
|
],
|
|
@@ -61688,7 +61688,7 @@
|
|
|
61688
61688
|
}
|
|
61689
61689
|
],
|
|
61690
61690
|
"qualifiedName": "WithChildren",
|
|
61691
|
-
"package": "@xylabs/
|
|
61691
|
+
"package": "@xylabs/react-shared",
|
|
61692
61692
|
"name": "WithChildren"
|
|
61693
61693
|
}
|
|
61694
61694
|
],
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { Paper } from '@mui/material';
|
|
3
|
+
import { FlexCol } from '@xylabs/sdk-react';
|
|
3
4
|
import { WalletAccountSelect } from './Select';
|
|
4
5
|
export const WalletAccountSelectBar = ({ iconOnly, icons, iconSize, size = 'small', ...props }) => {
|
|
5
|
-
return (_jsx(
|
|
6
|
+
return (_jsx(FlexCol, { alignItems: "stretch", ...props, children: _jsx(Paper, { variant: "elevation", elevation: 0, children: _jsx(WalletAccountSelect, { fullWidth: true, iconSize: iconSize, iconOnly: iconOnly, icons: icons, size: size ?? 'small' }) }) }));
|
|
6
7
|
};
|
|
7
8
|
//# sourceMappingURL=SelectBar.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectBar.js","sourceRoot":"","sources":["../../../../src/components/WalletAccountSelect/SelectBar.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAgB,OAAO,EAAE,MAAM,mBAAmB,CAAA;AAEzD,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAA;AAS9C,MAAM,CAAC,MAAM,sBAAsB,GAA0C,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,GAAG,OAAO,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE;IACvI,OAAO,CACL,KAAC,OAAO,IAAC,UAAU,
|
|
1
|
+
{"version":3,"file":"SelectBar.js","sourceRoot":"","sources":["../../../../src/components/WalletAccountSelect/SelectBar.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAA;AACrC,OAAO,EAAgB,OAAO,EAAE,MAAM,mBAAmB,CAAA;AAEzD,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAA;AAS9C,MAAM,CAAC,MAAM,sBAAsB,GAA0C,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,GAAG,OAAO,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE;IACvI,OAAO,CACL,KAAC,OAAO,IAAC,UAAU,EAAC,SAAS,KAAK,KAAK,YACrC,KAAC,KAAK,IAAC,OAAO,EAAC,WAAW,EAAC,SAAS,EAAE,CAAC,YACrC,KAAC,mBAAmB,IAAC,SAAS,QAAC,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,IAAI,OAAO,GAAI,GACxG,GACA,CACX,CAAA;AACH,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -12,13 +12,13 @@
|
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"@emotion/react": "^11.9.0",
|
|
14
14
|
"@emotion/styled": "^11.8.1",
|
|
15
|
-
"@mui/material": "^5.8.
|
|
15
|
+
"@mui/material": "^5.8.3",
|
|
16
16
|
"@xylabs/sdk-js": "^2.5.7",
|
|
17
|
-
"@xylabs/sdk-react": "^2.
|
|
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.
|
|
17
|
+
"@xylabs/sdk-react": "^2.13.7",
|
|
18
|
+
"@xyo-network/core": "^2.20.43",
|
|
19
|
+
"@xyo-network/react-network": "^2.25.39",
|
|
20
|
+
"@xyo-network/react-shared": "^2.25.39",
|
|
21
|
+
"@xyo-network/react-theme": "^2.25.39",
|
|
22
22
|
"lodash": "^4.17.21",
|
|
23
23
|
"react": "^18.1.0",
|
|
24
24
|
"react-dom": "^18.1.0",
|
|
@@ -30,20 +30,20 @@
|
|
|
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.7",
|
|
34
|
+
"@storybook/api": "^6.5.7",
|
|
35
|
+
"@storybook/components": "^6.5.7",
|
|
36
|
+
"@storybook/core-events": "^6.5.7",
|
|
37
|
+
"@storybook/react": "^6.5.7",
|
|
38
|
+
"@storybook/theming": "^6.5.7",
|
|
39
39
|
"@types/lodash": "^4.14.182",
|
|
40
40
|
"@xylabs/sdk-js": "^2.5.7",
|
|
41
|
-
"@xylabs/sdk-react": "^2.
|
|
41
|
+
"@xylabs/sdk-react": "^2.13.7",
|
|
42
42
|
"@xylabs/ts-scripts": "^1.0.66",
|
|
43
43
|
"@xylabs/tsconfig": "^1.0.13",
|
|
44
44
|
"axios": "^0.27.2",
|
|
45
45
|
"storybook-dark-mode": "^1.1.0",
|
|
46
|
-
"typescript": "^4.7.
|
|
46
|
+
"typescript": "^4.7.3"
|
|
47
47
|
},
|
|
48
48
|
"browser": "dist/esm/index.js",
|
|
49
49
|
"docs": "dist/docs.json",
|
|
@@ -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.39",
|
|
107
107
|
"packageManager": "yarn@3.1.1"
|
|
108
108
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Paper } from '@mui/material'
|
|
2
|
+
import { FlexBoxProps, FlexCol } from '@xylabs/sdk-react'
|
|
2
3
|
|
|
3
4
|
import { WalletAccountSelect } from './Select'
|
|
4
5
|
|
|
@@ -11,8 +12,10 @@ export interface WalletAccountSelectBarProps extends FlexBoxProps {
|
|
|
11
12
|
|
|
12
13
|
export const WalletAccountSelectBar: React.FC<WalletAccountSelectBarProps> = ({ iconOnly, icons, iconSize, size = 'small', ...props }) => {
|
|
13
14
|
return (
|
|
14
|
-
<
|
|
15
|
-
<
|
|
16
|
-
|
|
15
|
+
<FlexCol alignItems="stretch" {...props}>
|
|
16
|
+
<Paper variant="elevation" elevation={0}>
|
|
17
|
+
<WalletAccountSelect fullWidth iconSize={iconSize} iconOnly={iconOnly} icons={icons} size={size ?? 'small'} />
|
|
18
|
+
</Paper>
|
|
19
|
+
</FlexCol>
|
|
17
20
|
)
|
|
18
21
|
}
|
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
/* eslint-disable import/no-internal-modules */
|
|
2
2
|
import { ComponentMeta, ComponentStory } from '@storybook/react'
|
|
3
3
|
import { XyoWalletBase } from '@xyo-network/core'
|
|
4
|
-
import { BrowserRouter } from 'react-router-dom'
|
|
5
4
|
|
|
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
5
|
import { WalletProvider } from '../../contexts'
|
|
11
6
|
import { WalletAccountSelectBar } from './SelectBar'
|
|
12
7
|
|
|
@@ -33,34 +28,13 @@ const WithWalletTemplate: ComponentStory<typeof WalletAccountSelectBar> = (args)
|
|
|
33
28
|
)
|
|
34
29
|
}
|
|
35
30
|
|
|
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
31
|
const Default = Template.bind({})
|
|
55
32
|
Default.args = {}
|
|
56
33
|
|
|
57
34
|
const WithWallet = WithWalletTemplate.bind({})
|
|
58
35
|
WithWallet.args = {}
|
|
59
36
|
|
|
60
|
-
|
|
61
|
-
WithAppBar.args = {}
|
|
62
|
-
|
|
63
|
-
export { Default, WithAppBar, WithWallet }
|
|
37
|
+
export { Default, WithWallet }
|
|
64
38
|
|
|
65
39
|
// eslint-disable-next-line import/no-default-export
|
|
66
40
|
export default StorybookEntry
|