@ton/appkit-react 1.0.0-alpha.0 → 1.0.0-alpha.2
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/README.md +7 -6
- package/dist/esm/components/shared/amount-preview/amount-preview.js +17 -0
- package/dist/esm/components/shared/amount-preview/amount-preview.js.map +1 -0
- package/dist/esm/components/shared/amount-preview/amount-preview.module.css +40 -0
- package/dist/esm/{features/balances/components/balance-badge → components/shared/amount-preview}/index.js +1 -1
- package/dist/esm/components/shared/amount-preview/index.js.map +1 -0
- package/dist/esm/components/shared/flow-preview/flow-preview.js +24 -0
- package/dist/esm/components/shared/flow-preview/flow-preview.js.map +1 -0
- package/dist/esm/components/shared/flow-preview/flow-preview.module.css +37 -0
- package/dist/esm/components/shared/flow-preview/index.js +9 -0
- package/dist/esm/components/shared/flow-preview/index.js.map +1 -0
- package/dist/esm/components/shared/settings-button/settings-button.js +1 -1
- package/dist/esm/components/shared/settings-button/settings-button.js.map +1 -1
- package/dist/esm/components/ui/button/button.module.css +1 -1
- package/dist/esm/components/ui/logo/logo.module.css +1 -3
- package/dist/esm/components/ui/modal/modal.module.css +1 -1
- package/dist/esm/components/ui/tabs/tabs.module.css +1 -1
- package/dist/esm/features/balances/components/send-jetton-button/send-jetton-button.js +3 -3
- package/dist/esm/features/balances/components/send-jetton-button/send-jetton-button.js.map +1 -1
- package/dist/esm/features/balances/index.js +0 -1
- package/dist/esm/features/balances/index.js.map +1 -1
- package/dist/esm/features/staking/components/select-unstake-mode/select-unstake-mode.js +2 -1
- package/dist/esm/features/staking/components/select-unstake-mode/select-unstake-mode.js.map +1 -1
- package/dist/esm/features/staking/components/select-unstake-mode/select-unstake-mode.module.css +2 -6
- package/dist/esm/features/staking/components/staking-confirm-modal/index.js +9 -0
- package/dist/esm/features/staking/components/staking-confirm-modal/index.js.map +1 -0
- package/dist/esm/features/staking/components/staking-confirm-modal/staking-confirm-modal.js +46 -0
- package/dist/esm/features/staking/components/staking-confirm-modal/staking-confirm-modal.js.map +1 -0
- package/dist/esm/features/staking/components/staking-confirm-modal/staking-confirm-modal.module.css +11 -0
- package/dist/esm/features/staking/components/staking-widget-provider/staking-widget-provider.js +27 -4
- package/dist/esm/features/staking/components/staking-widget-provider/staking-widget-provider.js.map +1 -1
- package/dist/esm/features/staking/components/staking-widget-provider/use-staking-validation.js +12 -3
- package/dist/esm/features/staking/components/staking-widget-provider/use-staking-validation.js.map +1 -1
- package/dist/esm/features/staking/components/staking-widget-ui/staking-widget-ui.js +16 -4
- package/dist/esm/features/staking/components/staking-widget-ui/staking-widget-ui.js.map +1 -1
- package/dist/esm/features/staking/components/staking-widget-ui/staking-widget-ui.module.css +4 -0
- package/dist/esm/features/staking/hooks/use-build-stake-transaction.js +2 -2
- package/dist/esm/features/staking/hooks/use-build-stake-transaction.js.map +1 -1
- package/dist/esm/features/staking/utils/map-staking-error.js +6 -4
- package/dist/esm/features/staking/utils/map-staking-error.js.map +1 -1
- package/dist/esm/features/swap/components/swap-confirm-modal/index.js +9 -0
- package/dist/esm/features/swap/components/swap-confirm-modal/index.js.map +1 -0
- package/dist/esm/features/swap/components/swap-confirm-modal/swap-confirm-modal.js +12 -0
- package/dist/esm/features/swap/components/swap-confirm-modal/swap-confirm-modal.js.map +1 -0
- package/dist/esm/features/swap/components/swap-confirm-modal/swap-confirm-modal.module.css +7 -0
- package/dist/esm/features/swap/components/swap-widget-provider/swap-widget-provider.js +28 -6
- package/dist/esm/features/swap/components/swap-widget-provider/swap-widget-provider.js.map +1 -1
- package/dist/esm/features/swap/components/swap-widget-provider/use-swap-validation.js +12 -3
- package/dist/esm/features/swap/components/swap-widget-provider/use-swap-validation.js.map +1 -1
- package/dist/esm/features/swap/components/swap-widget-ui/swap-widget-ui.js +16 -4
- package/dist/esm/features/swap/components/swap-widget-ui/swap-widget-ui.js.map +1 -1
- package/dist/esm/features/swap/utils/map-swap-error.js +10 -8
- package/dist/esm/features/swap/utils/map-swap-error.js.map +1 -1
- package/dist/esm/locales/en.js +9 -0
- package/dist/esm/locales/en.js.map +1 -1
- package/dist/esm/styles/index.css +3 -3
- package/dist/esm/utils/map-defi-error.js +7 -7
- package/dist/esm/utils/map-defi-error.js.map +1 -1
- package/dist/types/components/shared/amount-preview/amount-preview.d.ts +24 -0
- package/dist/types/components/shared/amount-preview/amount-preview.d.ts.map +1 -0
- package/dist/types/{features/balances/components/balance-badge → components/shared/amount-preview}/index.d.ts +1 -1
- package/dist/types/components/shared/amount-preview/index.d.ts.map +1 -0
- package/dist/types/components/shared/flow-preview/flow-preview.d.ts +18 -0
- package/dist/types/components/shared/flow-preview/flow-preview.d.ts.map +1 -0
- package/dist/types/components/shared/flow-preview/index.d.ts +9 -0
- package/dist/types/components/shared/flow-preview/index.d.ts.map +1 -0
- package/dist/types/features/balances/index.d.ts +0 -1
- package/dist/types/features/balances/index.d.ts.map +1 -1
- package/dist/types/features/staking/components/select-unstake-mode/select-unstake-mode.d.ts.map +1 -1
- package/dist/types/features/staking/components/staking-confirm-modal/index.d.ts +9 -0
- package/dist/types/features/staking/components/staking-confirm-modal/index.d.ts.map +1 -0
- package/dist/types/features/staking/components/staking-confirm-modal/staking-confirm-modal.d.ts +23 -0
- package/dist/types/features/staking/components/staking-confirm-modal/staking-confirm-modal.d.ts.map +1 -0
- package/dist/types/features/staking/components/staking-widget-provider/staking-widget-provider.d.ts.map +1 -1
- package/dist/types/features/staking/components/staking-widget-provider/use-staking-validation.d.ts +3 -1
- package/dist/types/features/staking/components/staking-widget-provider/use-staking-validation.d.ts.map +1 -1
- package/dist/types/features/staking/components/staking-widget-ui/staking-widget-ui.d.ts.map +1 -1
- package/dist/types/features/staking/hooks/use-build-stake-transaction.d.ts +3 -2
- package/dist/types/features/staking/hooks/use-build-stake-transaction.d.ts.map +1 -1
- package/dist/types/features/staking/utils/map-staking-error.d.ts +5 -3
- package/dist/types/features/staking/utils/map-staking-error.d.ts.map +1 -1
- package/dist/types/features/swap/components/swap-confirm-modal/index.d.ts +9 -0
- package/dist/types/features/swap/components/swap-confirm-modal/index.d.ts.map +1 -0
- package/dist/types/features/swap/components/swap-confirm-modal/swap-confirm-modal.d.ts +26 -0
- package/dist/types/features/swap/components/swap-confirm-modal/swap-confirm-modal.d.ts.map +1 -0
- package/dist/types/features/swap/components/swap-widget-provider/swap-widget-provider.d.ts.map +1 -1
- package/dist/types/features/swap/components/swap-widget-provider/use-swap-validation.d.ts +4 -1
- package/dist/types/features/swap/components/swap-widget-provider/use-swap-validation.d.ts.map +1 -1
- package/dist/types/features/swap/components/swap-widget-ui/swap-widget-ui.d.ts.map +1 -1
- package/dist/types/features/swap/utils/map-swap-error.d.ts +4 -2
- package/dist/types/features/swap/utils/map-swap-error.d.ts.map +1 -1
- package/dist/types/libs/i18n.d.ts +9 -0
- package/dist/types/libs/i18n.d.ts.map +1 -1
- package/dist/types/locales/en.d.ts +9 -0
- package/dist/types/locales/en.d.ts.map +1 -1
- package/package.json +12 -12
- package/src/components/shared/amount-preview/amount-preview.tsx +74 -0
- package/src/{features/balances/components/balance-badge → components/shared/amount-preview}/index.ts +1 -1
- package/src/components/shared/flow-preview/flow-preview.tsx +64 -0
- package/src/components/shared/flow-preview/index.ts +9 -0
- package/src/components/shared/settings-button/settings-button.tsx +1 -1
- package/src/features/balances/components/send-jetton-button/send-jetton-button.tsx +3 -3
- package/src/features/balances/index.ts +0 -1
- package/src/features/staking/components/select-unstake-mode/select-unstake-mode.tsx +12 -4
- package/src/features/staking/components/staking-confirm-modal/index.ts +9 -0
- package/src/features/staking/components/staking-confirm-modal/staking-confirm-modal.tsx +121 -0
- package/src/features/staking/components/staking-widget-provider/staking-widget-provider.tsx +39 -4
- package/src/features/staking/components/staking-widget-provider/use-staking-validation.ts +14 -2
- package/src/features/staking/components/staking-widget-ui/staking-widget-ui.tsx +39 -13
- package/src/features/staking/hooks/use-build-stake-transaction.ts +7 -2
- package/src/features/staking/utils/map-staking-error.ts +6 -4
- package/src/features/swap/components/swap-confirm-modal/index.ts +9 -0
- package/src/features/swap/components/swap-confirm-modal/swap-confirm-modal.tsx +75 -0
- package/src/features/swap/components/swap-widget-provider/swap-widget-provider.tsx +40 -6
- package/src/features/swap/components/swap-widget-provider/use-swap-validation.ts +17 -2
- package/src/features/swap/components/swap-widget-ui/swap-widget-ui.tsx +30 -3
- package/src/features/swap/utils/map-swap-error.ts +10 -8
- package/src/locales/en.ts +9 -0
- package/src/utils/map-defi-error.ts +7 -7
- package/dist/esm/features/balances/components/balance-badge/balance-badge.js +0 -33
- package/dist/esm/features/balances/components/balance-badge/balance-badge.js.map +0 -1
- package/dist/esm/features/balances/components/balance-badge/balance-badge.module.css +0 -21
- package/dist/esm/features/balances/components/balance-badge/index.js.map +0 -1
- package/dist/esm/tsconfig.build.tsbuildinfo +0 -1
- package/dist/types/features/balances/components/balance-badge/balance-badge.d.ts +0 -21
- package/dist/types/features/balances/components/balance-badge/balance-badge.d.ts.map +0 -1
- package/dist/types/features/balances/components/balance-badge/index.d.ts.map +0 -1
- package/src/features/balances/components/balance-badge/balance-badge.tsx +0 -47
|
@@ -12,6 +12,7 @@ import clsx from 'clsx';
|
|
|
12
12
|
|
|
13
13
|
import { useI18n } from '../../../settings/hooks/use-i18n';
|
|
14
14
|
import { useSelectedWallet } from '../../../wallets';
|
|
15
|
+
import { SwapConfirmModal } from '../swap-confirm-modal';
|
|
15
16
|
import { SwapField } from '../swap-field';
|
|
16
17
|
import { SwapFlipButton } from '../swap-flip-button';
|
|
17
18
|
import { SwapInfo } from '../swap-info';
|
|
@@ -67,6 +68,7 @@ export const SwapWidgetUI: FC<SwapWidgetRenderProps> = ({
|
|
|
67
68
|
|
|
68
69
|
const [activeField, setActiveField] = useState<'from' | 'to' | null>(null);
|
|
69
70
|
const [isSettingsOpen, setIsSettingsOpen] = useState(false);
|
|
71
|
+
const [isConfirmOpen, setIsConfirmOpen] = useState(false);
|
|
70
72
|
const [isFlipped, setIsFlipped] = useState(false);
|
|
71
73
|
|
|
72
74
|
const handleFlip = useCallback(() => {
|
|
@@ -74,12 +76,22 @@ export const SwapWidgetUI: FC<SwapWidgetRenderProps> = ({
|
|
|
74
76
|
onFlip();
|
|
75
77
|
}, [onFlip]);
|
|
76
78
|
|
|
79
|
+
// Close the modal immediately; the build/send result (including errors) is surfaced
|
|
80
|
+
// back in the widget's main button via the `error` from the provider.
|
|
81
|
+
const handleConfirm = useCallback(() => {
|
|
82
|
+
setIsConfirmOpen(false);
|
|
83
|
+
sendSwapTransaction().catch(() => {
|
|
84
|
+
// Error is captured by the mutation and shown through the validator's `error` output.
|
|
85
|
+
});
|
|
86
|
+
}, [sendSwapTransaction]);
|
|
87
|
+
|
|
77
88
|
const buttonText = useMemo(() => {
|
|
78
|
-
if (
|
|
89
|
+
if (isSendingTransaction || isQuoteLoading) return t('swap.loading');
|
|
79
90
|
if (!fromToken || !toToken) return t('swap.selectToken');
|
|
91
|
+
if (error) return t(error);
|
|
80
92
|
if (canSubmit) return t('swap.continue');
|
|
81
93
|
return t('swap.enterAmount');
|
|
82
|
-
}, [error, fromToken, toToken, canSubmit, t]);
|
|
94
|
+
}, [isSendingTransaction, isQuoteLoading, error, fromToken, toToken, canSubmit, t]);
|
|
83
95
|
|
|
84
96
|
return (
|
|
85
97
|
<div className={clsx(styles.widget, className)} {...props}>
|
|
@@ -135,6 +147,21 @@ export const SwapWidgetUI: FC<SwapWidgetRenderProps> = ({
|
|
|
135
147
|
onProviderChange={setSwapProviderId}
|
|
136
148
|
/>
|
|
137
149
|
|
|
150
|
+
<SwapConfirmModal
|
|
151
|
+
open={isConfirmOpen}
|
|
152
|
+
onClose={() => setIsConfirmOpen(false)}
|
|
153
|
+
onConfirm={handleConfirm}
|
|
154
|
+
fromToken={fromToken}
|
|
155
|
+
toToken={toToken}
|
|
156
|
+
fromAmount={fromAmount}
|
|
157
|
+
toAmount={toAmount}
|
|
158
|
+
fiatSymbol={fiatSymbol}
|
|
159
|
+
quote={quote}
|
|
160
|
+
swapProvider={swapProvider}
|
|
161
|
+
slippage={slippage}
|
|
162
|
+
isQuoteLoading={isQuoteLoading}
|
|
163
|
+
/>
|
|
164
|
+
|
|
138
165
|
<LowBalanceModal
|
|
139
166
|
open={isLowBalanceWarningOpen}
|
|
140
167
|
mode={lowBalanceMode}
|
|
@@ -149,7 +176,7 @@ export const SwapWidgetUI: FC<SwapWidgetRenderProps> = ({
|
|
|
149
176
|
size="l"
|
|
150
177
|
fullWidth
|
|
151
178
|
disabled={!canSubmit || isQuoteLoading || isSendingTransaction}
|
|
152
|
-
onClick={
|
|
179
|
+
onClick={() => setIsConfirmOpen(true)}
|
|
153
180
|
>
|
|
154
181
|
{buttonText}
|
|
155
182
|
</ButtonWithConnect>
|
|
@@ -6,27 +6,29 @@
|
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { SwapError } from '@ton/appkit';
|
|
9
|
+
import { SwapError, SwapErrorCode } from '@ton/appkit';
|
|
10
10
|
|
|
11
11
|
import { mapDefiError } from '../../../utils/map-defi-error';
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* Map a thrown swap error to an i18n key. Tries swap-specific codes first, falls back to the
|
|
15
|
-
* shared {@link mapDefiError} for base DeFi codes, and finally to
|
|
15
|
+
* shared {@link mapDefiError} for base DeFi codes, and finally to the caller-provided
|
|
16
|
+
* {@link fallback} (defaults to `swap.quoteError`, but send-time callers should pass
|
|
17
|
+
* `swap.sendFailed`).
|
|
16
18
|
*/
|
|
17
|
-
export const mapSwapError = (error: unknown): string => {
|
|
19
|
+
export const mapSwapError = (error: unknown, fallback: string = 'swap.quoteError'): string => {
|
|
18
20
|
if (error instanceof SwapError) {
|
|
19
21
|
switch (error.code) {
|
|
20
|
-
case
|
|
22
|
+
case SwapErrorCode.InvalidQuote:
|
|
21
23
|
return 'swap.invalidQuote';
|
|
22
|
-
case
|
|
24
|
+
case SwapErrorCode.InsufficientLiquidity:
|
|
23
25
|
return 'swap.insufficientLiquidity';
|
|
24
|
-
case
|
|
26
|
+
case SwapErrorCode.QuoteExpired:
|
|
25
27
|
return 'swap.quoteExpired';
|
|
26
|
-
case
|
|
28
|
+
case SwapErrorCode.BuildTxFailed:
|
|
27
29
|
return 'swap.buildTxFailed';
|
|
28
30
|
}
|
|
29
31
|
}
|
|
30
32
|
|
|
31
|
-
return mapDefiError(error) ??
|
|
33
|
+
return mapDefiError(error) ?? fallback;
|
|
32
34
|
};
|
package/src/locales/en.ts
CHANGED
|
@@ -78,6 +78,10 @@ export default {
|
|
|
78
78
|
provider: 'Provider',
|
|
79
79
|
save: 'Save',
|
|
80
80
|
minReceived: 'Min Received',
|
|
81
|
+
confirmTitle: 'Confirm swap transaction',
|
|
82
|
+
confirm: 'Confirm',
|
|
83
|
+
sendFailed: 'Transaction failed',
|
|
84
|
+
loading: 'Loading...',
|
|
81
85
|
},
|
|
82
86
|
|
|
83
87
|
// Low balance modal (shared between swap, staking, etc.)
|
|
@@ -118,5 +122,10 @@ export default {
|
|
|
118
122
|
provider: 'Provider',
|
|
119
123
|
settings: 'Staking settings',
|
|
120
124
|
save: 'Save',
|
|
125
|
+
confirmStakingTitle: 'Confirm staking',
|
|
126
|
+
confirmUnstakingTitle: 'Confirm unstaking',
|
|
127
|
+
confirm: 'Confirm',
|
|
128
|
+
sendFailed: 'Transaction failed',
|
|
129
|
+
loading: 'Loading...',
|
|
121
130
|
},
|
|
122
131
|
} as const;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { DefiError } from '@ton/appkit';
|
|
9
|
+
import { DefiError, DefiErrorCode } from '@ton/appkit';
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* Map a thrown error to an i18n key from the `defi.*` namespace.
|
|
@@ -17,17 +17,17 @@ export const mapDefiError = (error: unknown): string | null => {
|
|
|
17
17
|
if (!(error instanceof DefiError)) return null;
|
|
18
18
|
|
|
19
19
|
switch (error.code) {
|
|
20
|
-
case
|
|
20
|
+
case DefiErrorCode.UnsupportedNetwork:
|
|
21
21
|
return 'defi.unsupportedNetwork';
|
|
22
|
-
case
|
|
22
|
+
case DefiErrorCode.NetworkError:
|
|
23
23
|
return 'defi.networkError';
|
|
24
|
-
case
|
|
24
|
+
case DefiErrorCode.ProviderNotFound:
|
|
25
25
|
return 'defi.providerNotFound';
|
|
26
|
-
case
|
|
26
|
+
case DefiErrorCode.NoDefaultProvider:
|
|
27
27
|
return 'defi.noDefaultProvider';
|
|
28
|
-
case
|
|
28
|
+
case DefiErrorCode.InvalidProvider:
|
|
29
29
|
return 'defi.invalidProvider';
|
|
30
|
-
case
|
|
30
|
+
case DefiErrorCode.InvalidParams:
|
|
31
31
|
return 'defi.invalidParams';
|
|
32
32
|
default:
|
|
33
33
|
return null;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
/**
|
|
3
|
-
* Copyright (c) TonTech.
|
|
4
|
-
*
|
|
5
|
-
* This source code is licensed under the MIT license found in the
|
|
6
|
-
* LICENSE file in the root directory of this source tree.
|
|
7
|
-
*
|
|
8
|
-
*/
|
|
9
|
-
import { formatUnits } from '@ton/appkit';
|
|
10
|
-
import clsx from 'clsx';
|
|
11
|
-
import { Block } from '../../../../components/ui/block';
|
|
12
|
-
import styles from './balance-badge.module.css';
|
|
13
|
-
import { Logo } from '../../../../components/ui/logo';
|
|
14
|
-
const BalanceBadgeContainer = ({ className, ...props }) => {
|
|
15
|
-
return _jsx(Block, { direction: "row", className: clsx(styles.balance, className), ...props });
|
|
16
|
-
};
|
|
17
|
-
const BalanceBlock = ({ className, ...props }) => {
|
|
18
|
-
return _jsx("div", { className: clsx(styles.balanceContainer, className), ...props });
|
|
19
|
-
};
|
|
20
|
-
const Balance = ({ balance, decimals, ...props }) => {
|
|
21
|
-
return _jsx("span", { ...props, children: balance ? formatUnits(balance, decimals) : '0' });
|
|
22
|
-
};
|
|
23
|
-
const BalanceSymbol = ({ className, symbol, ...props }) => {
|
|
24
|
-
return (_jsx("span", { className: clsx(styles.ticker, className), ...props, children: symbol }));
|
|
25
|
-
};
|
|
26
|
-
export const BalanceBadge = {
|
|
27
|
-
Container: BalanceBadgeContainer,
|
|
28
|
-
Icon: Logo,
|
|
29
|
-
BalanceBlock: BalanceBlock,
|
|
30
|
-
Symbol: BalanceSymbol,
|
|
31
|
-
Balance: Balance,
|
|
32
|
-
};
|
|
33
|
-
//# sourceMappingURL=balance-badge.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"balance-badge.js","sourceRoot":"","sources":["../../../../../../src/features/balances/components/balance-badge/balance-badge.tsx"],"names":[],"mappings":";AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,KAAK,EAAE,MAAM,iCAAiC,CAAC;AACxD,OAAO,MAAM,MAAM,4BAA4B,CAAC;AAChD,OAAO,EAAE,IAAI,EAAE,MAAM,gCAAgC,CAAC;AAEtD,MAAM,qBAAqB,GAA8B,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE;IACjF,OAAO,KAAC,KAAK,IAAC,SAAS,EAAC,KAAK,EAAC,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,SAAS,CAAC,KAAM,KAAK,GAAI,CAAC;AAC5F,CAAC,CAAC;AAEF,MAAM,YAAY,GAA8B,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE;IACxE,OAAO,cAAK,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,gBAAgB,EAAE,SAAS,CAAC,KAAM,KAAK,GAAI,CAAC;AACnF,CAAC,CAAC;AAEF,MAAM,OAAO,GAAuE,CAAC,EACjF,OAAO,EACP,QAAQ,EACR,GAAG,KAAK,EACX,EAAE,EAAE;IACD,OAAO,kBAAU,KAAK,YAAG,OAAO,CAAC,CAAC,CAAC,WAAW,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,GAAG,GAAQ,CAAC;AACpF,CAAC,CAAC;AAEF,MAAM,aAAa,GAAoD,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE;IACvG,OAAO,CACH,eAAM,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,KAAM,KAAK,YACrD,MAAM,GACJ,CACV,CAAC;AACN,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAG;IACxB,SAAS,EAAE,qBAAqB;IAChC,IAAI,EAAE,IAAI;IACV,YAAY,EAAE,YAAY;IAC1B,MAAM,EAAE,aAAa;IACrB,OAAO,EAAE,OAAO;CACnB,CAAC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
.balance {
|
|
2
|
-
composes: labelMedium from "../../../../styles/typography.module.css";
|
|
3
|
-
|
|
4
|
-
width: fit-content;
|
|
5
|
-
gap: 12px;
|
|
6
|
-
padding: 12px;
|
|
7
|
-
color: var(--ta-color-text-secondary);
|
|
8
|
-
line-height: 1;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.balanceContainer {
|
|
12
|
-
display: flex;
|
|
13
|
-
flex-direction: column;
|
|
14
|
-
gap: 4px;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.ticker {
|
|
18
|
-
composes: labelSemibold from "../../../../styles/typography.module.css";
|
|
19
|
-
color: var(--ta-color-text);
|
|
20
|
-
line-height: 1;
|
|
21
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/features/balances/components/balance-badge/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC"}
|