@rango-dev/ui 0.26.1-next.9 → 0.27.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.
- package/dist/index.js +6 -6
- package/dist/index.js.map +4 -4
- package/dist/translations/en.d.ts.map +1 -1
- package/dist/translations/es.d.ts.map +1 -1
- package/dist/translations/fr.d.ts.map +1 -1
- package/dist/translations/ja.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Divider/Divider.styles.d.ts +1 -1
- package/dist/widget/ui/src/components/Divider/Divider.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Header/Header.constants.d.ts +2 -0
- package/dist/widget/ui/src/components/Header/Header.constants.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Header/Header.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Header/Header.styles.d.ts +1 -0
- package/dist/widget/ui/src/components/Header/Header.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Header/index.d.ts +1 -0
- package/dist/widget/ui/src/components/Header/index.d.ts.map +1 -1
- package/dist/widget/ui/src/components/QuoteCost/QuoteCost.d.ts.map +1 -1
- package/dist/widget/ui/src/components/QuoteCost/QuoteCost.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/QuoteCost/QuoteCost.types.d.ts +4 -0
- package/dist/widget/ui/src/components/QuoteCost/QuoteCost.types.d.ts.map +1 -1
- package/dist/widget/ui/src/components/SwapContainer/SwapContainer.d.ts +0 -1
- package/dist/widget/ui/src/components/SwapContainer/SwapContainer.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Typography/Typography.styles.d.ts +4 -4
- package/dist/widget/ui/src/components/Wallet/ClickableWallet.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Wallet/SelectableWallet.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Wallet/Wallet.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Wallet/Wallet.types.d.ts +2 -0
- package/dist/widget/ui/src/components/Wallet/Wallet.types.d.ts.map +1 -1
- package/dist/widget/ui/src/icons/Add.d.ts +5 -0
- package/dist/widget/ui/src/icons/Add.d.ts.map +1 -0
- package/dist/widget/ui/src/icons/index.d.ts +1 -0
- package/dist/widget/ui/src/icons/index.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/components/Divider/Divider.styles.ts +15 -0
- package/src/components/Divider/Divider.tsx +2 -2
- package/src/components/Header/Header.constants.ts +1 -0
- package/src/components/Header/Header.styles.ts +46 -2
- package/src/components/Header/Header.tsx +5 -1
- package/src/components/Header/index.ts +1 -0
- package/src/components/Modal/Modal.tsx +1 -1
- package/src/components/QuoteCost/QuoteCost.styles.ts +28 -1
- package/src/components/QuoteCost/QuoteCost.tsx +28 -8
- package/src/components/QuoteCost/QuoteCost.types.ts +4 -0
- package/src/components/SwapContainer/SwapContainer.tsx +2 -14
- package/src/components/Wallet/ClickableWallet.tsx +10 -5
- package/src/components/Wallet/SelectableWallet.tsx +11 -2
- package/src/components/Wallet/Wallet.styles.ts +4 -0
- package/src/components/Wallet/Wallet.types.ts +2 -0
- package/src/icons/Add.tsx +25 -0
- package/src/icons/index.ts +1 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../../../translations/en.ts"],"names":[],"mappings":"AAAkB,eAAO,MAAM,QAAQ,
|
|
1
|
+
{"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../../../translations/en.ts"],"names":[],"mappings":"AAAkB,eAAO,MAAM,QAAQ,KAAqya,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"es.d.ts","sourceRoot":"","sources":["../../../../translations/es.ts"],"names":[],"mappings":"AAAkB,eAAO,MAAM,QAAQ,
|
|
1
|
+
{"version":3,"file":"es.d.ts","sourceRoot":"","sources":["../../../../translations/es.ts"],"names":[],"mappings":"AAAkB,eAAO,MAAM,QAAQ,KAAinc,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fr.d.ts","sourceRoot":"","sources":["../../../../translations/fr.ts"],"names":[],"mappings":"AAAkB,eAAO,MAAM,QAAQ,
|
|
1
|
+
{"version":3,"file":"fr.d.ts","sourceRoot":"","sources":["../../../../translations/fr.ts"],"names":[],"mappings":"AAAkB,eAAO,MAAM,QAAQ,KAAyvc,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ja.d.ts","sourceRoot":"","sources":["../../../../translations/ja.ts"],"names":[],"mappings":"AAAkB,eAAO,MAAM,QAAQ,
|
|
1
|
+
{"version":3,"file":"ja.d.ts","sourceRoot":"","sources":["../../../../translations/ja.ts"],"names":[],"mappings":"AAAkB,eAAO,MAAM,QAAQ,KAAyjX,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const DividerContainer: import("@stitches/react/types/styled-component").StyledComponent<"div", {
|
|
2
|
-
size?: 10 | 12 | 16 | 18 | 20 | 24 | 32 | 30 | 4 | 8 | "4" | "8" | "10" | "12" | "16" | "18" | "20" | "24" | "30" | "32" | undefined;
|
|
2
|
+
size?: 2 | 10 | 12 | 16 | 18 | 20 | 24 | 32 | 30 | 4 | 8 | "2" | "4" | "8" | "10" | "12" | "16" | "18" | "20" | "24" | "30" | "32" | undefined;
|
|
3
3
|
direction?: "vertical" | "horizontal" | undefined;
|
|
4
4
|
}, {
|
|
5
5
|
xs: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Divider.styles.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Divider/Divider.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+
|
|
1
|
+
{"version":3,"file":"Divider.styles.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Divider/Divider.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAiL3B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Header.constants.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Header/Header.constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB,KAAK,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Header/Header.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAE/C,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,wBAAgB,MAAM,CAAC,EACrB,MAAM,EACN,MAAM,EACN,KAAK,GACN,EAAE,iBAAiB,CAAC,SAAS,CAAC,
|
|
1
|
+
{"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Header/Header.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAE/C,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,wBAAgB,MAAM,CAAC,EACrB,MAAM,EACN,MAAM,EACN,KAAK,GACN,EAAE,iBAAiB,CAAC,SAAS,CAAC,qBAc9B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Header.styles.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Header/Header.styles.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Header.styles.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Header/Header.styles.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,kBAAkB,cAM7B,CAAC;AAEH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DA6CpB,CAAC;AAEH,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAIjB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Header/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Header/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QuoteCost.d.ts","sourceRoot":"","sources":["../../../../../../src/components/QuoteCost/QuoteCost.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAEnD,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"QuoteCost.d.ts","sourceRoot":"","sources":["../../../../../../src/components/QuoteCost/QuoteCost.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAEnD,OAAO,KAAK,MAAM,OAAO,CAAC;AAa1B,wBAAgB,SAAS,CAAC,KAAK,EAAE,SAAS,qBAmDzC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QuoteCost.styles.d.ts","sourceRoot":"","sources":["../../../../../../src/components/QuoteCost/QuoteCost.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAMpB,CAAC;AAEH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAKpB,CAAC;AAEH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAMrB,CAAC;
|
|
1
|
+
{"version":3,"file":"QuoteCost.styles.d.ts","sourceRoot":"","sources":["../../../../../../src/components/QuoteCost/QuoteCost.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAMpB,CAAC;AAEH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAKpB,CAAC;AAEH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAMrB,CAAC;AAQH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAwBrB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QuoteCost.types.d.ts","sourceRoot":"","sources":["../../../../../../src/components/QuoteCost/QuoteCost.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,GAAG;IACtB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"QuoteCost.types.d.ts","sourceRoot":"","sources":["../../../../../../src/components/QuoteCost/QuoteCost.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,GAAG;IACtB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,gBAAgB,CAAC,EAAE,WAAW,CAAC;CAChC,CAAC"}
|
|
@@ -3,7 +3,6 @@ import type { PropsWithChildren } from 'react';
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
export interface PropTypes {
|
|
5
5
|
style?: CSSProperties;
|
|
6
|
-
fixedHeight?: boolean;
|
|
7
6
|
}
|
|
8
7
|
export declare function SwapContainer(props: PropsWithChildren<PropTypes>): React.JSX.Element;
|
|
9
8
|
//# sourceMappingURL=SwapContainer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SwapContainer.d.ts","sourceRoot":"","sources":["../../../../../../src/components/SwapContainer/SwapContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAE/C,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"SwapContainer.d.ts","sourceRoot":"","sources":["../../../../../../src/components/SwapContainer/SwapContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAE/C,OAAO,KAAK,MAAM,OAAO,CAAC;AAuB1B,MAAM,WAAW,SAAS;IACxB,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,iBAAiB,CAAC,SAAS,CAAC,qBAOhE"}
|
|
@@ -3,10 +3,10 @@ export declare const TypographyContainer: import("@stitches/react/types/styled-c
|
|
|
3
3
|
size?: "small" | "medium" | "large" | "xmedium" | "xsmall" | undefined;
|
|
4
4
|
align?: "center" | "left" | "right" | undefined;
|
|
5
5
|
noWrap?: boolean | "true" | undefined;
|
|
6
|
-
ml?: 2 | 12 | 4 | 8 | "
|
|
7
|
-
mt?: 2 | 12 | 4 | 8 | "
|
|
8
|
-
mr?: 2 | 12 | 4 | 8 | "
|
|
9
|
-
mb?: 2 | 12 | 4 | 8 | "
|
|
6
|
+
ml?: 2 | 12 | 4 | 8 | "2" | "4" | "8" | "12" | undefined;
|
|
7
|
+
mt?: 2 | 12 | 4 | 8 | "2" | "4" | "8" | "12" | undefined;
|
|
8
|
+
mr?: 2 | 12 | 4 | 8 | "2" | "4" | "8" | "12" | undefined;
|
|
9
|
+
mb?: 2 | 12 | 4 | 8 | "2" | "4" | "8" | "12" | undefined;
|
|
10
10
|
}, {
|
|
11
11
|
xs: string;
|
|
12
12
|
sm: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClickableWallet.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Wallet/ClickableWallet.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAGtD,OAAO,
|
|
1
|
+
{"version":3,"file":"ClickableWallet.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Wallet/ClickableWallet.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAGtD,OAAO,KAAmB,MAAM,OAAO,CAAC;AAkBxC,iBAAS,MAAM,CAAC,KAAK,EAAE,eAAe,qBAoDrC;AAED,eAAe,MAAM,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectableWallet.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Wallet/SelectableWallet.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAY1B,OAAO,EAAE,KAAK,mBAAmB,EAAe,MAAM,gBAAgB,CAAC;AAEvE,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,mBAAmB,
|
|
1
|
+
{"version":3,"file":"SelectableWallet.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Wallet/SelectableWallet.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAY1B,OAAO,EAAE,KAAK,mBAAmB,EAAe,MAAM,gBAAgB,CAAC;AAEvE,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,mBAAmB,qBA0C1D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Wallet.styles.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Wallet/Wallet.styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAI/B,CAAC;AAEH,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAEhB,CAAC;AAEH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAgDvB,CAAC;AAEH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAUxB,CAAC"}
|
|
@@ -34,8 +34,10 @@ export interface WalletPropTypes {
|
|
|
34
34
|
description?: string;
|
|
35
35
|
isLoading?: boolean;
|
|
36
36
|
container?: HTMLElement;
|
|
37
|
+
disabled?: boolean;
|
|
37
38
|
}
|
|
38
39
|
export type SelectablePropTypes = WalletPropTypes & {
|
|
39
40
|
selected: boolean;
|
|
41
|
+
disabled?: boolean;
|
|
40
42
|
};
|
|
41
43
|
//# sourceMappingURL=Wallet.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Wallet.types.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Wallet/Wallet.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAE5E,oBAAY,WAAW;IACrB,aAAa,kBAAkB;IAC/B,YAAY,iBAAiB;IAC7B,UAAU,eAAe;IACzB,SAAS,cAAc;CACxB;AAED,MAAM,MAAM,UAAU,GAAG;IACvB,KAAK,EAAE,WAAW,CAAC;IACnB,IAAI,EAAE,cAAc,GAAG,MAAM,CAAC;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,MAAM,WAAW,IAAI;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,WAAW,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,cAAc,GAAG,MAAM,CAAC;IAC9B,IAAI,EAAE,UAAU,CAAC;IACjB,OAAO,EAAE,CAAC,IAAI,EAAE,UAAU,KAAK,IAAI,CAAC;IACpC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"Wallet.types.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Wallet/Wallet.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAE5E,oBAAY,WAAW;IACrB,aAAa,kBAAkB;IAC/B,YAAY,iBAAiB;IAC7B,UAAU,eAAe;IACzB,SAAS,cAAc;CACxB;AAED,MAAM,MAAM,UAAU,GAAG;IACvB,KAAK,EAAE,WAAW,CAAC;IACnB,IAAI,EAAE,cAAc,GAAG,MAAM,CAAC;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,MAAM,WAAW,IAAI;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,WAAW,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,cAAc,GAAG,MAAM,CAAC;IAC9B,IAAI,EAAE,UAAU,CAAC;IACjB,OAAO,EAAE,CAAC,IAAI,EAAE,UAAU,KAAK,IAAI,CAAC;IACpC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,WAAW,CAAC;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,MAAM,mBAAmB,GAAG,eAAe,GAAG;IAClD,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { SvgIconPropsWithChildren } from '../components/SvgIcon';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
declare function SvgAdd(props: SvgIconPropsWithChildren): React.FunctionComponentElement<SvgIconPropsWithChildren>;
|
|
4
|
+
export default SvgAdd;
|
|
5
|
+
//# sourceMappingURL=Add.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Add.d.ts","sourceRoot":"","sources":["../../../../../src/icons/Add.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AAEtE,OAAO,KAAwB,MAAM,OAAO,CAAC;AAI7C,iBAAS,MAAM,CAAC,KAAK,EAAE,wBAAwB,4DAiB9C;AACD,eAAe,MAAM,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../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O,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,UAAU,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,WAAW,CAAC;AACnD,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,SAAS,CAAC;AAC/C,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,UAAU,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,UAAU,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,YAAY,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,SAAS,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rango-dev/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.27.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"source": "./src/index.ts",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"@radix-ui/react-radio-group": "^1.1.1",
|
|
66
66
|
"@radix-ui/react-switch": "^1.0.1",
|
|
67
67
|
"@radix-ui/react-tooltip": "^1.0.2",
|
|
68
|
-
"@rango-dev/wallets-shared": "^0.
|
|
68
|
+
"@rango-dev/wallets-shared": "^0.26.0",
|
|
69
69
|
"@stitches/react": "^1.2.8",
|
|
70
70
|
"rango-sdk": "^0.1.44",
|
|
71
71
|
"rango-types": "^0.1.57",
|
|
@@ -77,4 +77,4 @@
|
|
|
77
77
|
"publishConfig": {
|
|
78
78
|
"access": "public"
|
|
79
79
|
}
|
|
80
|
-
}
|
|
80
|
+
}
|
|
@@ -4,6 +4,7 @@ export const DividerContainer = styled('div', {
|
|
|
4
4
|
flexShrink: 0,
|
|
5
5
|
variants: {
|
|
6
6
|
size: {
|
|
7
|
+
2: {},
|
|
7
8
|
4: {},
|
|
8
9
|
8: {},
|
|
9
10
|
10: {},
|
|
@@ -21,6 +22,20 @@ export const DividerContainer = styled('div', {
|
|
|
21
22
|
},
|
|
22
23
|
},
|
|
23
24
|
compoundVariants: [
|
|
25
|
+
{
|
|
26
|
+
size: 2,
|
|
27
|
+
direction: 'horizontal',
|
|
28
|
+
css: {
|
|
29
|
+
width: 2,
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
size: 2,
|
|
34
|
+
direction: 'vertical',
|
|
35
|
+
css: {
|
|
36
|
+
height: 2,
|
|
37
|
+
},
|
|
38
|
+
},
|
|
24
39
|
{
|
|
25
40
|
size: 4,
|
|
26
41
|
direction: 'horizontal',
|
|
@@ -4,10 +4,10 @@ import React from 'react';
|
|
|
4
4
|
|
|
5
5
|
import { DividerContainer } from './Divider.styles';
|
|
6
6
|
|
|
7
|
-
const
|
|
7
|
+
const DEFAULT_SIZE = 12;
|
|
8
8
|
|
|
9
9
|
export function Divider({
|
|
10
|
-
size =
|
|
10
|
+
size = DEFAULT_SIZE,
|
|
11
11
|
direction = 'vertical',
|
|
12
12
|
}: PropTypes) {
|
|
13
13
|
return <DividerContainer size={size} direction={direction} />;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const HEADER_CORNDER_RADIUS = 20;
|
|
@@ -1,5 +1,17 @@
|
|
|
1
|
+
import { globalCss } from '@stitches/react';
|
|
2
|
+
|
|
1
3
|
import { darkTheme, styled } from '../../theme';
|
|
2
4
|
|
|
5
|
+
import { HEADER_CORNDER_RADIUS } from './Header.constants';
|
|
6
|
+
|
|
7
|
+
export const globalHeaderStyles = globalCss({
|
|
8
|
+
'.rng-scrolled': {
|
|
9
|
+
'.rng-curve-left::before, rng-curve-right::before': {
|
|
10
|
+
borderRadius: '0 !important',
|
|
11
|
+
},
|
|
12
|
+
},
|
|
13
|
+
});
|
|
14
|
+
|
|
3
15
|
export const Container = styled('div', {
|
|
4
16
|
display: 'flex',
|
|
5
17
|
justifyContent: 'space-between',
|
|
@@ -11,8 +23,40 @@ export const Container = styled('div', {
|
|
|
11
23
|
},
|
|
12
24
|
backgroundColor: '$$color',
|
|
13
25
|
position: 'relative',
|
|
14
|
-
|
|
15
|
-
|
|
26
|
+
|
|
27
|
+
'.rng-curve-left,.rng-curve-right': {
|
|
28
|
+
width: HEADER_CORNDER_RADIUS * 2,
|
|
29
|
+
height: HEADER_CORNDER_RADIUS * 2,
|
|
30
|
+
position: 'absolute',
|
|
31
|
+
bottom: 0,
|
|
32
|
+
overflow: 'hidden',
|
|
33
|
+
transform: 'translateY(100%)',
|
|
34
|
+
|
|
35
|
+
'&:before': {
|
|
36
|
+
width: HEADER_CORNDER_RADIUS * 2,
|
|
37
|
+
height: HEADER_CORNDER_RADIUS * 2,
|
|
38
|
+
display: 'block',
|
|
39
|
+
content: '',
|
|
40
|
+
position: 'absolute',
|
|
41
|
+
bottom: 0,
|
|
42
|
+
borderRadius: '50%',
|
|
43
|
+
transition: 'border-radius 0.5s',
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
'.rng-curve-left': {
|
|
47
|
+
left: 0,
|
|
48
|
+
'&:before': {
|
|
49
|
+
left: 0,
|
|
50
|
+
boxShadow: `-${HEADER_CORNDER_RADIUS}px -${HEADER_CORNDER_RADIUS}px 0 0 $$color`,
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
'.rng-curve-right': {
|
|
54
|
+
right: 0,
|
|
55
|
+
'&:before': {
|
|
56
|
+
right: 0,
|
|
57
|
+
boxShadow: `${HEADER_CORNDER_RADIUS}px -${HEADER_CORNDER_RADIUS}px 0 0 $$color`,
|
|
58
|
+
},
|
|
59
|
+
},
|
|
16
60
|
});
|
|
17
61
|
|
|
18
62
|
export const Suffix = styled('div', {
|
|
@@ -5,13 +5,15 @@ import React from 'react';
|
|
|
5
5
|
|
|
6
6
|
import { Typography } from '../Typography';
|
|
7
7
|
|
|
8
|
-
import { Container, Suffix } from './Header.styles';
|
|
8
|
+
import { Container, globalHeaderStyles, Suffix } from './Header.styles';
|
|
9
9
|
|
|
10
10
|
export function Header({
|
|
11
11
|
prefix,
|
|
12
12
|
suffix,
|
|
13
13
|
title,
|
|
14
14
|
}: PropsWithChildren<PropTypes>) {
|
|
15
|
+
globalHeaderStyles();
|
|
16
|
+
|
|
15
17
|
return (
|
|
16
18
|
<Container>
|
|
17
19
|
{prefix}
|
|
@@ -19,6 +21,8 @@ export function Header({
|
|
|
19
21
|
{title}
|
|
20
22
|
</Typography>
|
|
21
23
|
<Suffix>{suffix}</Suffix>
|
|
24
|
+
<div className="rng-curve-left"></div>
|
|
25
|
+
<div className="rng-curve-right"></div>
|
|
22
26
|
</Container>
|
|
23
27
|
);
|
|
24
28
|
}
|
|
@@ -62,7 +62,7 @@ export function Modal(props: PropsWithChildren<PropTypes>) {
|
|
|
62
62
|
setActive(false);
|
|
63
63
|
timeoutRef.current = setTimeout(() => {
|
|
64
64
|
setIsMount(false);
|
|
65
|
-
container.style.overflow
|
|
65
|
+
container.style.removeProperty('overflow');
|
|
66
66
|
}, CLOSED_DELAY);
|
|
67
67
|
}
|
|
68
68
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { css, styled } from '../../theme';
|
|
1
|
+
import { css, keyframes, styled } from '../../theme';
|
|
2
2
|
|
|
3
3
|
export const Container = styled('div', {
|
|
4
4
|
borderRadius: '$xs',
|
|
@@ -23,7 +23,34 @@ export const iconStyles = css({
|
|
|
23
23
|
alignItems: 'center',
|
|
24
24
|
});
|
|
25
25
|
|
|
26
|
+
const blinker = keyframes({
|
|
27
|
+
'50%': {
|
|
28
|
+
opacity: 0.2,
|
|
29
|
+
},
|
|
30
|
+
});
|
|
31
|
+
|
|
26
32
|
export const itemStyles = css({
|
|
27
33
|
display: 'flex',
|
|
28
34
|
alignItems: 'center',
|
|
35
|
+
'&.feeSection': {
|
|
36
|
+
cursor: 'pointer',
|
|
37
|
+
'&:hover': {
|
|
38
|
+
svg: {
|
|
39
|
+
color: '$secondary',
|
|
40
|
+
},
|
|
41
|
+
'._typography': {
|
|
42
|
+
color: '$secondary',
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
'&.warning': {
|
|
47
|
+
animation: `${blinker} 2s linear infinite`,
|
|
48
|
+
|
|
49
|
+
svg: {
|
|
50
|
+
color: '$warning500',
|
|
51
|
+
},
|
|
52
|
+
'._typography': {
|
|
53
|
+
color: '$warning500',
|
|
54
|
+
},
|
|
55
|
+
},
|
|
29
56
|
});
|
|
@@ -3,6 +3,7 @@ import type { PropTypes } from './QuoteCost.types';
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
|
|
5
5
|
import { GasIcon, NumberIcon, TimeIcon } from '../../icons';
|
|
6
|
+
import { Tooltip } from '../Tooltip';
|
|
6
7
|
import { Typography } from '../Typography';
|
|
7
8
|
|
|
8
9
|
import {
|
|
@@ -13,17 +14,36 @@ import {
|
|
|
13
14
|
} from './QuoteCost.styles';
|
|
14
15
|
|
|
15
16
|
export function QuoteCost(props: PropTypes) {
|
|
16
|
-
const {
|
|
17
|
+
const {
|
|
18
|
+
fee,
|
|
19
|
+
time,
|
|
20
|
+
steps,
|
|
21
|
+
onClickFee,
|
|
22
|
+
tooltipGas,
|
|
23
|
+
feeWarning,
|
|
24
|
+
tooltipContainer,
|
|
25
|
+
} = props;
|
|
17
26
|
return (
|
|
18
27
|
<Container>
|
|
19
|
-
<
|
|
20
|
-
|
|
21
|
-
|
|
28
|
+
<Tooltip
|
|
29
|
+
container={tooltipContainer}
|
|
30
|
+
content={tooltipGas}
|
|
31
|
+
open={!onClickFee && !tooltipGas ? false : undefined}
|
|
32
|
+
side="bottom">
|
|
33
|
+
<div
|
|
34
|
+
className={`${itemStyles()} ${onClickFee ? 'feeSection' : ''} ${
|
|
35
|
+
feeWarning ? 'warning' : ''
|
|
36
|
+
}`}
|
|
37
|
+
onClick={onClickFee}>
|
|
38
|
+
<div className={iconStyles()}>
|
|
39
|
+
<GasIcon size={12} color={'gray'} />
|
|
40
|
+
</div>
|
|
41
|
+
<Typography ml={2} align="center" variant="body" size="small">
|
|
42
|
+
${fee}
|
|
43
|
+
</Typography>
|
|
22
44
|
</div>
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
</Typography>
|
|
26
|
-
</div>
|
|
45
|
+
</Tooltip>
|
|
46
|
+
|
|
27
47
|
<Separator />
|
|
28
48
|
<div className={itemStyles()}>
|
|
29
49
|
<div className={iconStyles()}>
|
|
@@ -22,28 +22,16 @@ const MainContainer = styled('div', {
|
|
|
22
22
|
boxSizing: 'border-box',
|
|
23
23
|
listStyleType: 'none',
|
|
24
24
|
},
|
|
25
|
-
variants: {
|
|
26
|
-
fixedHeight: {
|
|
27
|
-
true: {
|
|
28
|
-
height: '633px',
|
|
29
|
-
maxHeight: '633px',
|
|
30
|
-
},
|
|
31
|
-
false: {
|
|
32
|
-
height: 'auto',
|
|
33
|
-
},
|
|
34
|
-
},
|
|
35
|
-
},
|
|
36
25
|
});
|
|
37
26
|
|
|
38
27
|
export interface PropTypes {
|
|
39
28
|
style?: CSSProperties;
|
|
40
|
-
fixedHeight?: boolean;
|
|
41
29
|
}
|
|
42
30
|
|
|
43
31
|
export function SwapContainer(props: PropsWithChildren<PropTypes>) {
|
|
44
|
-
const { children, style
|
|
32
|
+
const { children, style } = props;
|
|
45
33
|
return (
|
|
46
|
-
<MainContainer style={style} id="swap-box"
|
|
34
|
+
<MainContainer style={style} id="swap-box">
|
|
47
35
|
{children}
|
|
48
36
|
</MainContainer>
|
|
49
37
|
);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { WalletPropTypes } from './Wallet.types';
|
|
2
2
|
|
|
3
3
|
import { detectInstallLink } from '@rango-dev/wallets-shared';
|
|
4
|
-
import React from 'react';
|
|
4
|
+
import React, { Fragment } from 'react';
|
|
5
5
|
|
|
6
6
|
import { Image } from '../common';
|
|
7
7
|
import { Divider } from '../Divider';
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
import { WalletState } from './Wallet.types';
|
|
21
21
|
|
|
22
22
|
function Wallet(props: WalletPropTypes) {
|
|
23
|
-
const { title, type, image, onClick, isLoading } = props;
|
|
23
|
+
const { title, type, image, onClick, isLoading, disabled = false } = props;
|
|
24
24
|
const info = makeInfo(props.state);
|
|
25
25
|
|
|
26
26
|
if (isLoading) {
|
|
@@ -35,10 +35,15 @@ function Wallet(props: WalletPropTypes) {
|
|
|
35
35
|
);
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
+
const WrapperComponent = disabled ? Fragment : Tooltip;
|
|
39
|
+
|
|
38
40
|
return (
|
|
39
|
-
<
|
|
41
|
+
<WrapperComponent
|
|
42
|
+
container={props.container}
|
|
43
|
+
content={info.tooltipText}
|
|
44
|
+
side="top">
|
|
40
45
|
<WalletButton
|
|
41
|
-
disabled={props.state == WalletState.CONNECTING}
|
|
46
|
+
disabled={props.state == WalletState.CONNECTING || disabled}
|
|
42
47
|
onClick={() => {
|
|
43
48
|
if (props.state === WalletState.NOT_INSTALLED) {
|
|
44
49
|
window.open(detectInstallLink(props.link), '_blank');
|
|
@@ -64,7 +69,7 @@ function Wallet(props: WalletPropTypes) {
|
|
|
64
69
|
</Typography>
|
|
65
70
|
</Text>
|
|
66
71
|
</WalletButton>
|
|
67
|
-
</
|
|
72
|
+
</WrapperComponent>
|
|
68
73
|
);
|
|
69
74
|
}
|
|
70
75
|
|
|
@@ -14,12 +14,21 @@ import {
|
|
|
14
14
|
import { type SelectablePropTypes, WalletState } from './Wallet.types';
|
|
15
15
|
|
|
16
16
|
export function SelectableWallet(props: SelectablePropTypes) {
|
|
17
|
-
const {
|
|
17
|
+
const {
|
|
18
|
+
title,
|
|
19
|
+
type,
|
|
20
|
+
image,
|
|
21
|
+
onClick,
|
|
22
|
+
selected,
|
|
23
|
+
description,
|
|
24
|
+
state,
|
|
25
|
+
disabled = false,
|
|
26
|
+
} = props;
|
|
18
27
|
const info = makeInfo(props.state);
|
|
19
28
|
return (
|
|
20
29
|
<WalletButton
|
|
21
30
|
selected={selected}
|
|
22
|
-
disabled={props.state == WalletState.CONNECTING}
|
|
31
|
+
disabled={props.state == WalletState.CONNECTING || disabled}
|
|
23
32
|
onClick={() => {
|
|
24
33
|
if (props.state === WalletState.NOT_INSTALLED) {
|
|
25
34
|
window.open(detectInstallLink(props.link), '_blank');
|