@aurora-is-near/intents-swap-widget 3.18.1 → 3.18.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/dist/components/Accordion.js +13 -13
- package/dist/components/Accordion.js.map +1 -1
- package/dist/components/Banner.js +33 -19
- package/dist/components/Banner.js.map +1 -1
- package/dist/components/BlockingError.js +11 -16
- package/dist/components/BlockingError.js.map +1 -1
- package/dist/components/Button.d.ts +2 -2
- package/dist/components/Button.js +2 -2
- package/dist/components/Button.js.map +1 -1
- package/dist/components/CloseButton.js +6 -6
- package/dist/components/CloseButton.js.map +1 -1
- package/dist/components/CopyButton.js +4 -4
- package/dist/components/CopyButton.js.map +1 -1
- package/dist/components/DirectionSwitcher.js +12 -11
- package/dist/components/DirectionSwitcher.js.map +1 -1
- package/dist/components/Input.d.ts +5 -3
- package/dist/components/Input.js +16 -16
- package/dist/components/Input.js.map +1 -1
- package/dist/components/StatusWidget.js +8 -21
- package/dist/components/StatusWidget.js.map +1 -1
- package/dist/{config-DJObWR7Z.js → config-CgCb5P7j.js} +585 -565
- package/dist/{config-DJObWR7Z.js.map → config-CgCb5P7j.js.map} +1 -1
- package/dist/config.js +21 -5
- package/dist/config.js.map +1 -1
- package/dist/errors.js +1 -1
- package/dist/ext/alchemy/index.js +1 -1
- package/dist/ext/index.js +1 -1
- package/dist/features/BalanceRpcLoader/TokenBalanceLoader.js +1 -1
- package/dist/features/BalanceRpcLoader/index.js +1 -1
- package/dist/features/BalanceRpcLoader/useTokenBalanceRpc.js +1 -1
- package/dist/features/ChainsDropdown/AllNetworksIcon.js +3 -3
- package/dist/features/ChainsDropdown/AllNetworksIcon.js.map +1 -1
- package/dist/features/ChainsDropdown/ChainItem.js +7 -7
- package/dist/features/ChainsDropdown/ChainItem.js.map +1 -1
- package/dist/features/ChainsDropdown/index.js +45 -33
- package/dist/features/ChainsDropdown/index.js.map +1 -1
- package/dist/features/DepositMethodSwitcher.js +18 -17
- package/dist/features/DepositMethodSwitcher.js.map +1 -1
- package/dist/features/ErrorBoundary.js +1 -1
- package/dist/features/ExternalDeposit.js +22 -15
- package/dist/features/ExternalDeposit.js.map +1 -1
- package/dist/features/SendAddress/index.js +15 -14
- package/dist/features/SendAddress/index.js.map +1 -1
- package/dist/features/SendAddress/useNotification.js +1 -1
- package/dist/features/SubmitButton/index.js +1 -1
- package/dist/features/SuccessScreen/CheckIcon.js +4 -4
- package/dist/features/SuccessScreen/CheckIcon.js.map +1 -1
- package/dist/features/SuccessScreen/ExternalAction.js +6 -6
- package/dist/features/SuccessScreen/ExternalAction.js.map +1 -1
- package/dist/features/SuccessScreen/index.js +1 -1
- package/dist/features/SwapDirectionSwitcher.js +1 -1
- package/dist/features/SwapQuote/SwapQuote.js +1 -1
- package/dist/features/SwapQuote/index.js +1 -1
- package/dist/features/TokenInput/TokenInput.js +1 -1
- package/dist/features/TokenInput/TokenInputEmpty.js +1 -1
- package/dist/features/TokenInput/TokenInputSource.js +1 -1
- package/dist/features/TokenInput/TokenInputTarget.js +1 -1
- package/dist/features/TokenInput/WalletBalance.js +1 -1
- package/dist/features/TokenInput/hooks/index.js +1 -1
- package/dist/features/TokenInput/hooks/useTokenInputBalance.js +1 -1
- package/dist/features/TokenInput/index.js +1 -1
- package/dist/features/TokensList/TokenItem.js +1 -1
- package/dist/features/TokensList/TokensList.js +1 -1
- package/dist/features/TokensList/index.js +1 -1
- package/dist/features/TokensModal.js +11 -11
- package/dist/features/TokensModal.js.map +1 -1
- package/dist/features/WalletCompatibilityCheck/WalletCompatibilityModal.js +19 -6
- package/dist/features/WalletCompatibilityCheck/WalletCompatibilityModal.js.map +1 -1
- package/dist/features/WalletCompatibilityCheck/index.js +1 -1
- package/dist/features/index.js +1 -1
- package/dist/hooks/index.js +1 -1
- package/dist/hooks/useAllTokens.js +1 -1
- package/dist/hooks/useChains.js +1 -1
- package/dist/hooks/useCompatibilityCheck.js +1 -1
- package/dist/hooks/useDefaultToken.js +1 -1
- package/dist/hooks/useExternalDepositStatus/index.js +1 -1
- package/dist/hooks/useExternalDepositStatus/usePoaExternalDepositStatus.js +1 -1
- package/dist/hooks/useIntentsBalance.js +1 -1
- package/dist/hooks/useIsCompatibilityCheckRequired.js +1 -1
- package/dist/hooks/useMakeDepositAddress.js +1 -1
- package/dist/hooks/useMakeIntentsTransfer.js +1 -1
- package/dist/hooks/useMakeNEARFtTransferCall.js +1 -1
- package/dist/hooks/useMakeQuote.js +1 -1
- package/dist/hooks/useMakeQuoteTransfer.js +1 -1
- package/dist/hooks/useMakeTransfer.js +1 -1
- package/dist/hooks/useMergedBalance.js +1 -1
- package/dist/hooks/useSwitchChain.js +1 -1
- package/dist/hooks/useTheme.js +1 -1
- package/dist/hooks/useTokenInputPair.js +1 -1
- package/dist/hooks/useTokens.js +1 -1
- package/dist/hooks/useTokensFiltered.js +1 -1
- package/dist/hooks/useTokensIntentsUnique.js +1 -1
- package/dist/index.js +1 -1
- package/dist/machine/effects/index.js +1 -1
- package/dist/machine/effects/useAlchemyBalanceEffect.js +1 -1
- package/dist/machine/effects/useBalancesUpdateEffect.js +1 -1
- package/dist/machine/effects/useMakeQuoteEffect.js +1 -1
- package/dist/machine/effects/useSelectedTokensEffect.js +1 -1
- package/dist/machine/effects/useSetTokenBalanceEffect.js +1 -1
- package/dist/machine/effects/useSetTokenIntentsTargetEffect.js +1 -1
- package/dist/machine/effects/useWalletConnEffect.js +1 -1
- package/dist/machine/events/index.js +1 -1
- package/dist/machine/events/tokenSelect.js +1 -1
- package/dist/machine/events/validateInputAndMoveTo.js +1 -1
- package/dist/machine/events/validateInputs.js +1 -1
- package/dist/machine/index.js +1 -1
- package/dist/machine/snap.js +1 -1
- package/dist/machine/subscriptions/checkers/isSendAddressAsConnected.js +1 -1
- package/dist/machine/subscriptions/index.js +1 -1
- package/dist/styles.css +1 -1
- package/dist/tailwind.css +9 -0
- package/dist/theme/ThemeProvider.js +1 -1
- package/dist/utils/intents/signers/near.js +1 -1
- package/dist/utils/intents/signers/privy.js +1 -1
- package/dist/utils/near/getNearNep141StorageBalance.js +1 -1
- package/dist/widgets/WidgetDeposit/WidgetDepositContent.js +18 -11
- package/dist/widgets/WidgetDeposit/WidgetDepositContent.js.map +1 -1
- package/dist/widgets/WidgetDeposit/WidgetDepositSkeleton.js +1 -1
- package/dist/widgets/WidgetSwap/WidgetSwapContent.js +33 -22
- package/dist/widgets/WidgetSwap/WidgetSwapContent.js.map +1 -1
- package/dist/widgets/WidgetSwap/WidgetSwapSkeleton.js +1 -1
- package/dist/widgets/WidgetWithdraw/WidgetWithdrawContent.js +19 -9
- package/dist/widgets/WidgetWithdraw/WidgetWithdrawContent.js.map +1 -1
- package/dist/widgets/WidgetWithdraw/WidgetWithdrawSkeleton.js +1 -1
- package/package.json +1 -2
- package/src/components/Accordion.tsx +3 -3
- package/src/components/Banner.tsx +17 -8
- package/src/components/BlockingError.tsx +4 -6
- package/src/components/Button.tsx +9 -6
- package/src/components/CloseButton.tsx +2 -2
- package/src/components/CopyButton.tsx +2 -2
- package/src/components/DirectionSwitcher.tsx +4 -4
- package/src/components/Input.tsx +5 -4
- package/src/components/StatusWidget.tsx +4 -11
- package/src/features/ChainsDropdown/AllNetworksIcon.tsx +2 -2
- package/src/features/ChainsDropdown/ChainItem.tsx +2 -2
- package/src/features/ChainsDropdown/index.tsx +9 -3
- package/src/features/DepositMethodSwitcher.tsx +4 -3
- package/src/features/ExternalDeposit.tsx +2 -2
- package/src/features/SendAddress/index.tsx +3 -2
- package/src/features/SuccessScreen/CheckIcon.tsx +2 -2
- package/src/features/SuccessScreen/ExternalAction.tsx +2 -2
- package/src/features/TokensModal.tsx +2 -2
- package/src/features/WalletCompatibilityCheck/WalletCompatibilityModal.tsx +8 -9
- package/src/tailwind.css +9 -0
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { Button as UIButton } from '@headlessui/react';
|
|
2
|
-
import
|
|
3
|
-
import
|
|
2
|
+
import { ProgressActivityW700 as ProgressActivity } from '@material-symbols-svg/react-rounded/icons/progress-activity';
|
|
3
|
+
import type {
|
|
4
|
+
IconProps,
|
|
5
|
+
MaterialSymbolsComponent,
|
|
6
|
+
} from '@material-symbols-svg/react';
|
|
4
7
|
|
|
5
8
|
import { cn as clsx } from '@/utils/cn';
|
|
6
9
|
|
|
@@ -17,7 +20,7 @@ type Props = {
|
|
|
17
20
|
onClick?: () => void;
|
|
18
21
|
fluid?: boolean;
|
|
19
22
|
} & (
|
|
20
|
-
| { icon:
|
|
23
|
+
| { icon: MaterialSymbolsComponent; iconPosition?: 'head' | 'tail' }
|
|
21
24
|
| { icon?: never; iconPosition?: never }
|
|
22
25
|
);
|
|
23
26
|
|
|
@@ -50,10 +53,10 @@ const ButtonChildren = ({
|
|
|
50
53
|
const Icon =
|
|
51
54
|
hasIcon && state !== 'loading'
|
|
52
55
|
? (icon ?? (() => <span />))
|
|
53
|
-
: ({ className, ...
|
|
54
|
-
<
|
|
56
|
+
: ({ className, ...iconProps }: IconProps) => (
|
|
57
|
+
<ProgressActivity
|
|
55
58
|
className={clsx(styles.icon, 'animate-spin', className)}
|
|
56
|
-
{...
|
|
59
|
+
{...iconProps}
|
|
57
60
|
/>
|
|
58
61
|
);
|
|
59
62
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { CloseW700 as Close } from '@material-symbols-svg/react-rounded/icons/close';
|
|
2
2
|
|
|
3
3
|
import { cn } from '@/utils';
|
|
4
4
|
|
|
@@ -16,7 +16,7 @@ export const CloseButton = ({ className, onClick }: Props) => {
|
|
|
16
16
|
className,
|
|
17
17
|
)}
|
|
18
18
|
onClick={onClick}>
|
|
19
|
-
<
|
|
19
|
+
<Close size={18} />
|
|
20
20
|
</button>
|
|
21
21
|
);
|
|
22
22
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import copy from 'copy-text-to-clipboard';
|
|
2
|
-
import
|
|
2
|
+
import { ContentCopyW700 as ContentCopy } from '@material-symbols-svg/react-rounded/icons/content-copy';
|
|
3
3
|
|
|
4
4
|
export const CopyButton = ({ value }: { value: string }) => (
|
|
5
5
|
<button
|
|
6
6
|
type="button"
|
|
7
7
|
onClick={() => copy(value)}
|
|
8
8
|
className="text-sw-gray-200 hover:text-sw-gray-50 cursor-pointer transition-all duration-300 [transition-timing-function:cubic-bezier(0.175,0.885,0.32,1.275)] active:-translate-y-1 active:scale-x-90 active:scale-y-110">
|
|
9
|
-
<
|
|
9
|
+
<ContentCopy size={16} />
|
|
10
10
|
</button>
|
|
11
11
|
);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import { ArrowDownwardW700 as ArrowDownward } from '@material-symbols-svg/react-rounded/icons/arrow-downward';
|
|
2
|
+
import { ProgressActivityW700 as ProgressActivity } from '@material-symbols-svg/react-rounded/icons/progress-activity';
|
|
3
3
|
import { cn } from '@/utils/cn';
|
|
4
4
|
|
|
5
5
|
type Props = {
|
|
@@ -25,11 +25,11 @@ export const DirectionSwitcher = ({
|
|
|
25
25
|
)}>
|
|
26
26
|
{isLoading ? (
|
|
27
27
|
<div className="group relative inline-block">
|
|
28
|
-
<
|
|
28
|
+
<ProgressActivity className="h-sw-2xl w-sw-2xl animate-spin opacity-50 text-sw-accent-500" />
|
|
29
29
|
</div>
|
|
30
30
|
) : (
|
|
31
31
|
<div className="group relative inline-block">
|
|
32
|
-
<
|
|
32
|
+
<ArrowDownward
|
|
33
33
|
className={cn(
|
|
34
34
|
'h-sw-2xl w-sw-2xl transition-transform duration-300',
|
|
35
35
|
{
|
package/src/components/Input.tsx
CHANGED
|
@@ -7,19 +7,20 @@ import {
|
|
|
7
7
|
useState,
|
|
8
8
|
} from 'react';
|
|
9
9
|
import { Input as UIInput } from '@headlessui/react';
|
|
10
|
+
import { CloseW700 as Close } from '@material-symbols-svg/react-rounded/icons/close';
|
|
11
|
+
import type { MaterialSymbolsComponent } from '@material-symbols-svg/react';
|
|
10
12
|
import type { InputProps } from '@headlessui/react';
|
|
11
13
|
import type { PropsWithChildren } from 'react';
|
|
12
|
-
import type { LucideIcon } from 'lucide-react';
|
|
13
|
-
import * as Icons from 'lucide-react';
|
|
14
14
|
|
|
15
15
|
import { cn } from '@/utils/cn';
|
|
16
16
|
|
|
17
17
|
type State = 'default' | 'disabled' | 'error' | 'fixed';
|
|
18
18
|
|
|
19
19
|
export type Props = Omit<InputProps, 'size'> & {
|
|
20
|
-
icon?:
|
|
20
|
+
icon?: MaterialSymbolsComponent;
|
|
21
21
|
defaultValue?: string;
|
|
22
22
|
focusOnMount?: boolean;
|
|
23
|
+
fontSize?: 'sm' | 'md';
|
|
23
24
|
state?: State;
|
|
24
25
|
};
|
|
25
26
|
|
|
@@ -121,7 +122,7 @@ export const Input = forwardRef<HTMLInputElement, PropsWithChildren<Props>>(
|
|
|
121
122
|
},
|
|
122
123
|
)}
|
|
123
124
|
onClick={handleClear}>
|
|
124
|
-
<
|
|
125
|
+
<Close className="h-sw-xl w-sw-xl" />
|
|
125
126
|
</button>
|
|
126
127
|
) : null}
|
|
127
128
|
</div>
|
|
@@ -1,23 +1,16 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { CloseW700 as Close } from '@material-symbols-svg/react-rounded/icons/close';
|
|
2
|
+
import { CheckCircleFillW700 as CheckCircleFill } from '@material-symbols-svg/react-rounded/icons/check-circle';
|
|
2
3
|
|
|
3
4
|
const Error = ({ message }: { message: string }) => (
|
|
4
5
|
<div className="flex flex-col gap-sw-lg py-sw-6xl items-center justify-center">
|
|
5
|
-
<
|
|
6
|
-
size={36}
|
|
7
|
-
strokeWidth={1.5}
|
|
8
|
-
className="text-sw-status-error"
|
|
9
|
-
/>
|
|
6
|
+
<Close size={36} className="text-sw-status-error" />
|
|
10
7
|
<span className="text-sw-label-sm text-sw-status-error">{message}</span>
|
|
11
8
|
</div>
|
|
12
9
|
);
|
|
13
10
|
|
|
14
11
|
const Success = () => (
|
|
15
12
|
<div className="flex flex-col gap-sw-lg py-sw-6xl items-center justify-center">
|
|
16
|
-
<
|
|
17
|
-
size={36}
|
|
18
|
-
strokeWidth={1.5}
|
|
19
|
-
className="text-sw-status-success"
|
|
20
|
-
/>
|
|
13
|
+
<CheckCircleFill size={36} className="text-sw-status-success" />
|
|
21
14
|
<span className="text-sw-label-sm text-sw-status-success text-center">
|
|
22
15
|
Transaction detected
|
|
23
16
|
</span>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { TargetW700 as Target } from '@material-symbols-svg/react-rounded/icons/target';
|
|
2
2
|
|
|
3
3
|
export const AllNetworksIcon = () => (
|
|
4
4
|
<div className="bg-sw-accent-500 flex h-[28px] w-[28px] items-center justify-center">
|
|
5
|
-
<
|
|
5
|
+
<Target size={16} className="text-sw-accent-950" />
|
|
6
6
|
</div>
|
|
7
7
|
);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { CheckW700 as Check } from '@material-symbols-svg/react-rounded/icons/check';
|
|
3
3
|
|
|
4
4
|
import { cn } from '@/utils/cn';
|
|
5
5
|
import { Icon } from '@/components/Icon';
|
|
@@ -34,7 +34,7 @@ export const ChainItem = React.forwardRef<HTMLButtonElement, Props>(
|
|
|
34
34
|
)}>
|
|
35
35
|
<Icon radius={10} label={label} icon={icon} />
|
|
36
36
|
<span className="text-sw-label-md mr-auto">{label}</span>
|
|
37
|
-
{isSelected && <
|
|
37
|
+
{isSelected && <Check size={16} />}
|
|
38
38
|
</button>
|
|
39
39
|
),
|
|
40
40
|
);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Fragment, useMemo } from 'react';
|
|
2
2
|
import { Menu, MenuButton, MenuItem, MenuItems } from '@headlessui/react';
|
|
3
|
+
import { ChevronLeftW700 as ChevronLeft } from '@material-symbols-svg/react-rounded/icons/chevron-left';
|
|
3
4
|
import { AnimatePresence, motion } from 'framer-motion';
|
|
4
|
-
import * as Icons from 'lucide-react';
|
|
5
5
|
|
|
6
6
|
import { ChainItem } from './ChainItem';
|
|
7
7
|
import { AllNetworksIcon } from './AllNetworksIcon';
|
|
@@ -79,9 +79,15 @@ export const ChainsDropdown = ({
|
|
|
79
79
|
})()}
|
|
80
80
|
|
|
81
81
|
{isOpen ? (
|
|
82
|
-
<
|
|
82
|
+
<ChevronLeft
|
|
83
|
+
size={18}
|
|
84
|
+
className="text-sw-gray-50 rotate-90"
|
|
85
|
+
/>
|
|
83
86
|
) : (
|
|
84
|
-
<
|
|
87
|
+
<ChevronLeft
|
|
88
|
+
size={18}
|
|
89
|
+
className="text-sw-gray-50 -rotate-90"
|
|
90
|
+
/>
|
|
85
91
|
)}
|
|
86
92
|
</div>
|
|
87
93
|
)}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { QrCodeW700 as QrCode } from '@material-symbols-svg/react-rounded/icons/qr-code';
|
|
2
|
+
import { WalletW700 as Wallet } from '@material-symbols-svg/react-rounded/icons/wallet';
|
|
2
3
|
|
|
3
4
|
import { cn } from '@/utils/cn';
|
|
4
5
|
import { Card } from '@/components/Card';
|
|
@@ -26,7 +27,7 @@ export const DepositMethodSwitcher = ({ children, className }: Props) => {
|
|
|
26
27
|
<div className="flex gap-sw-lg">
|
|
27
28
|
<Button
|
|
28
29
|
size="md"
|
|
29
|
-
icon={
|
|
30
|
+
icon={Wallet}
|
|
30
31
|
state={ctx.isDepositFromExternalWallet ? 'default' : 'active'}
|
|
31
32
|
variant={ctx.isDepositFromExternalWallet ? 'outlined' : 'primary'}
|
|
32
33
|
onClick={() => onToggle(false)}>
|
|
@@ -34,7 +35,7 @@ export const DepositMethodSwitcher = ({ children, className }: Props) => {
|
|
|
34
35
|
</Button>
|
|
35
36
|
<Button
|
|
36
37
|
size="md"
|
|
37
|
-
icon={
|
|
38
|
+
icon={QrCode}
|
|
38
39
|
state={ctx.isDepositFromExternalWallet ? 'active' : 'default'}
|
|
39
40
|
variant={ctx.isDepositFromExternalWallet ? 'primary' : 'outlined'}
|
|
40
41
|
onClick={() => onToggle(true)}>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useEffect } from 'react';
|
|
2
2
|
import { QRCodeSVG } from 'qrcode.react';
|
|
3
3
|
import { GetExecutionStatusResponse } from '@defuse-protocol/one-click-sdk-typescript';
|
|
4
|
-
import
|
|
4
|
+
import { ProgressActivityW700 as ProgressActivity } from '@material-symbols-svg/react-rounded/icons/progress-activity';
|
|
5
5
|
|
|
6
6
|
import { notReachable } from '@/utils';
|
|
7
7
|
import { CHAIN_IDS_MAP } from '@/constants/chains';
|
|
@@ -50,7 +50,7 @@ const Skeleton = () => {
|
|
|
50
50
|
<div className="flex flex-col gap-sw-2xl items-center">
|
|
51
51
|
<div className="bg-sw-gray-800 h-[180px] w-[180px] animate-pulse rounded-sw-md" />
|
|
52
52
|
<div className="bg-sw-gray-800 h-[44px] w-full animate-pulse rounded-sw-md flex items-center justify-center gap-sw-sm">
|
|
53
|
-
<
|
|
53
|
+
<ProgressActivity className="animate-spin text-sw-gray-100 h-sw-lg w-sw-lg" />
|
|
54
54
|
<span className="text-sw-gray-100 text-sw-label-sm">
|
|
55
55
|
{!isNotEmptyAmount(ctx.sourceTokenAmount)
|
|
56
56
|
? t('deposit.external.loading.waiting', 'Waiting for token amount')
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as Icons from 'lucide-react';
|
|
2
1
|
import { Button } from '@headlessui/react';
|
|
3
2
|
import { useEffect, useMemo, useState } from 'react';
|
|
4
3
|
import { useDebounce } from 'use-debounce';
|
|
4
|
+
import { WandShineW700 as WandShine } from '@material-symbols-svg/react-rounded/icons/wand-shine';
|
|
5
5
|
import type { ChangeEvent } from 'react';
|
|
6
6
|
|
|
7
7
|
import { useNotification } from './useNotification';
|
|
@@ -76,6 +76,7 @@ export const SendAddress = ({ error, className, onMsg }: Props) => {
|
|
|
76
76
|
{t('sendAddress.label', 'Send to')}
|
|
77
77
|
</h5>
|
|
78
78
|
<Input
|
|
79
|
+
fontSize="sm"
|
|
79
80
|
defaultValue={ctx.sendAddress}
|
|
80
81
|
state={inputState}
|
|
81
82
|
className="mb-sw-xl"
|
|
@@ -88,7 +89,7 @@ export const SendAddress = ({ error, className, onMsg }: Props) => {
|
|
|
88
89
|
<Button
|
|
89
90
|
className="absolute right-0 flex items-center gap-sw-md min-w-max cursor-pointer"
|
|
90
91
|
onClick={() => fireEvent('addressSet', ctx.walletAddress ?? '')}>
|
|
91
|
-
<
|
|
92
|
+
<WandShine size={14} />
|
|
92
93
|
<span className="text-sw-label-md">
|
|
93
94
|
{t('sendAddress.button.magic.label', 'My wallet')}
|
|
94
95
|
</span>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { CheckW700 as Check } from '@material-symbols-svg/react-rounded/icons/check';
|
|
2
2
|
|
|
3
3
|
export const CheckIcon = () => (
|
|
4
4
|
<div className="mb-sw-xl bg-sw-status-success text-sw-gray-950 flex h-[44px] w-[44px] items-center justify-center rounded-full">
|
|
5
|
-
<
|
|
5
|
+
<Check size={24} />
|
|
6
6
|
</div>
|
|
7
7
|
);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { OpenInNewW700 as OpenInNew } from '@material-symbols-svg/react-rounded/icons/open-in-new';
|
|
2
2
|
|
|
3
3
|
type Props = {
|
|
4
4
|
url: string;
|
|
@@ -10,6 +10,6 @@ export const ExternalAction = ({ url }: Props) => (
|
|
|
10
10
|
href={url}
|
|
11
11
|
className="text-sw-accent-300 hover:text-sw-accent-50 cursor-pointer"
|
|
12
12
|
rel="noreferrer">
|
|
13
|
-
<
|
|
13
|
+
<OpenInNew size={16} />
|
|
14
14
|
</a>
|
|
15
15
|
);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { SearchW700 as Search } from '@material-symbols-svg/react-rounded/icons/search';
|
|
1
2
|
import { useRef, useState } from 'react';
|
|
2
|
-
import * as Icons from 'lucide-react';
|
|
3
3
|
|
|
4
4
|
import { TokensList } from './TokensList';
|
|
5
5
|
import { ChainsDropdown } from './ChainsDropdown';
|
|
@@ -99,7 +99,7 @@ export const TokensModal = ({
|
|
|
99
99
|
<div className="gap-sw-xl flex items-center">
|
|
100
100
|
<Input
|
|
101
101
|
focusOnMount
|
|
102
|
-
icon={
|
|
102
|
+
icon={Search}
|
|
103
103
|
ref={searchInputRef}
|
|
104
104
|
defaultValue={search}
|
|
105
105
|
className="w-full"
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} from '@material-symbols-svg/react-rounded';
|
|
1
|
+
import { AccountBalanceWalletFillW700 as AccountBalanceWalletFill } from '@material-symbols-svg/react-rounded/icons/account-balance-wallet';
|
|
2
|
+
import { ArmingCountdownFillW700 as ArmingCountdownFill } from '@material-symbols-svg/react-rounded/icons/arming-countdown';
|
|
3
|
+
import { BeenhereFillW700 as BeenhereFill } from '@material-symbols-svg/react-rounded/icons/beenhere';
|
|
4
|
+
import { CheckCircleFillW700 as CheckCircleFill } from '@material-symbols-svg/react-rounded/icons/check-circle';
|
|
5
|
+
import { EncryptedFillW700 as EncryptedFill } from '@material-symbols-svg/react-rounded/icons/encrypted';
|
|
6
|
+
import { GppBadFillW700 as GppBadFill } from '@material-symbols-svg/react-rounded/icons/gpp-bad';
|
|
7
|
+
import type { MaterialSymbolsComponent } from '@material-symbols-svg/react-rounded';
|
|
8
|
+
|
|
10
9
|
import { useTimer } from 'use-timer';
|
|
11
10
|
import { useEffect } from 'react';
|
|
12
11
|
|
package/src/tailwind.css
CHANGED
|
@@ -102,6 +102,15 @@
|
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
104
|
|
|
105
|
+
@utility text-sw-label-2sm {
|
|
106
|
+
@layer components {
|
|
107
|
+
@apply font-semibold;
|
|
108
|
+
font-size: 0.825rem;
|
|
109
|
+
line-height: 0.875rem;
|
|
110
|
+
letter-spacing: -0.01875rem;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
105
114
|
@utility text-sw-label-sm {
|
|
106
115
|
@layer components {
|
|
107
116
|
@apply font-semibold;
|