@funkit/connect 0.1.3 → 0.1.5
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/{chunk-YPT63F4L.js → chunk-HS4VFULE.js} +2020 -1560
- package/dist/{chunk-IRPFZ4HK.js → chunk-LKGTFED3.js} +7 -6
- package/dist/{chunk-U7T37VQU.js → chunk-VGM7OU7P.js} +8 -3
- package/dist/{chunk-WSQKOMBH.js → chunk-WJHR5YCY.js} +2020 -1560
- package/dist/components/Box/Box.d.ts +7 -7
- package/dist/components/FunButton/FunButton.css.d.ts +1 -0
- package/dist/components/FunButton/FunIconButton.d.ts +2 -1
- package/dist/components/FunButton/FunLinkButton.d.ts +2 -1
- package/dist/components/FunCheckoutModal/FunCheckoutSelectAssetStep.d.ts +2 -1
- package/dist/components/FunDivider/FunDivider.d.ts +2 -1
- package/dist/components/FunInput/FunInput.d.ts +3 -2
- package/dist/components/FunNotification/FunNotification.d.ts +3 -1
- package/dist/components/FunPayments/FunPaymentMoonpayType.css.d.ts +1 -0
- package/dist/components/FunPayments/FunPaymentMoonpayType.d.ts +3 -2
- package/dist/components/FunPayments/FunPaymentSetup.d.ts +2 -1
- package/dist/components/FunProgressBar/FunVerticalProgressBar.d.ts +2 -0
- package/dist/components/FunSelect/FunSelect.d.ts +2 -1
- package/dist/components/FunToast/FunToast.d.ts +3 -2
- package/dist/components/FunkitProvider/FunkitCheckoutContext.d.ts +17 -10
- package/dist/components/FunkitProvider/FunkitProvider.d.ts +3 -3
- package/dist/components/FunkitWeb2Provider/FunkitWeb2Provider.d.ts +4 -0
- package/dist/components/Icons/NoAssetsFoundIcon.d.ts +4 -0
- package/dist/components/Icons/SearchIcon.d.ts +3 -1
- package/dist/components/ProfileDetails/FunWalletProfileViews/FWHome/FWHome.css.d.ts +1 -0
- package/dist/components/SkeletalLoader/SkeletalLoader.css.d.ts +1 -0
- package/dist/components/SkeletalLoader/SkeletalLoader.d.ts +2 -0
- package/dist/components/index.css +878 -807
- package/dist/components/index.js +2 -2
- package/dist/css/sprinkles.css.d.ts +21 -0
- package/dist/hooks/useCheckoutAccountBalanceTransfer.d.ts +11 -0
- package/dist/index.css +878 -807
- package/dist/index.d.ts +0 -1
- package/dist/index.js +5 -10
- package/dist/themes/baseTheme.d.ts +1 -1
- package/dist/themes/darkTheme.d.ts +4 -0
- package/dist/themes/darkTheme.js +1 -1
- package/dist/themes/lightTheme.d.ts +4 -0
- package/dist/themes/lightTheme.js +1 -1
- package/dist/utils/checkout.d.ts +29 -7
- package/dist/utils/formatNumber.d.ts +2 -0
- package/dist/wallets/walletConnectors/index.js +34 -34
- package/package.json +4 -4
- package/dist/chunk-FDHEHORE.js +0 -68
- package/dist/chunk-U7C2G4O4.js +0 -67
- package/dist/themes/funTheme.d.ts +0 -63
- package/dist/themes/funTheme.js +0 -8
- package/dist/themes/midnightTheme.d.ts +0 -59
- package/dist/themes/midnightTheme.js +0 -8
package/dist/index.d.ts
CHANGED
|
@@ -12,7 +12,6 @@ export { cssStringFromTheme } from './css/cssStringFromTheme';
|
|
|
12
12
|
export type { Locale } from './locales/';
|
|
13
13
|
export { darkTheme } from './themes/darkTheme';
|
|
14
14
|
export { lightTheme } from './themes/lightTheme';
|
|
15
|
-
export { midnightTheme } from './themes/midnightTheme';
|
|
16
15
|
export { useAddRecentTransaction } from './transactions/useAddRecentTransaction';
|
|
17
16
|
export { connectorsForWallets } from './wallets/connectorsForWallets';
|
|
18
17
|
export { getDefaultWallets } from './wallets/getDefaultWallets';
|
package/dist/index.js
CHANGED
|
@@ -1,13 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
darkTheme
|
|
4
|
-
} from "./chunk-FDHEHORE.js";
|
|
5
2
|
import {
|
|
6
3
|
lightTheme
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import {
|
|
9
|
-
midnightTheme
|
|
10
|
-
} from "./chunk-U7C2G4O4.js";
|
|
4
|
+
} from "./chunk-VGM7OU7P.js";
|
|
11
5
|
import {
|
|
12
6
|
ActionButton,
|
|
13
7
|
AppContext,
|
|
@@ -39,8 +33,10 @@ import {
|
|
|
39
33
|
useFunkitCheckout,
|
|
40
34
|
useTransactionStore,
|
|
41
35
|
useWalletConnectors
|
|
42
|
-
} from "./chunk-
|
|
43
|
-
import
|
|
36
|
+
} from "./chunk-WJHR5YCY.js";
|
|
37
|
+
import {
|
|
38
|
+
darkTheme
|
|
39
|
+
} from "./chunk-LKGTFED3.js";
|
|
44
40
|
import "./chunk-VP4CAK4A.js";
|
|
45
41
|
|
|
46
42
|
// src/components/ConnectOptions/MobileOptions.tsx
|
|
@@ -930,7 +926,6 @@ export {
|
|
|
930
926
|
getDefaultWallets,
|
|
931
927
|
getWalletConnectConnector,
|
|
932
928
|
lightTheme,
|
|
933
|
-
midnightTheme,
|
|
934
929
|
useAccountModal,
|
|
935
930
|
useAddRecentTransaction,
|
|
936
931
|
useChainModal,
|
|
@@ -17,7 +17,7 @@ export interface AccentColor {
|
|
|
17
17
|
accentColor: string;
|
|
18
18
|
accentColorForeground: string;
|
|
19
19
|
}
|
|
20
|
-
export type AccentColorPreset = 'blue' | 'green' | 'red' | 'purple' | 'pink' | 'orange';
|
|
20
|
+
export type AccentColorPreset = 'blue' | 'green' | 'red' | 'purple' | 'pink' | 'orange' | 'white';
|
|
21
21
|
export interface ThemeOptions extends BaseThemeOptions {
|
|
22
22
|
accentColor?: string;
|
|
23
23
|
accentColorForeground?: string;
|
|
@@ -7,6 +7,7 @@ export declare const darkTheme: {
|
|
|
7
7
|
actionButtonBorder: string;
|
|
8
8
|
actionButtonBorderMobile: string;
|
|
9
9
|
actionButtonSecondaryBackground: string;
|
|
10
|
+
actionButtonDisabled: string;
|
|
10
11
|
closeButton: string;
|
|
11
12
|
closeButtonBackground: string;
|
|
12
13
|
connectButtonBackground: string;
|
|
@@ -31,6 +32,9 @@ export declare const darkTheme: {
|
|
|
31
32
|
profileActionHover: string;
|
|
32
33
|
profileForeground: string;
|
|
33
34
|
selectedOptionBorder: string;
|
|
35
|
+
solidLine: string;
|
|
36
|
+
rightTranslucentLine: string;
|
|
37
|
+
leftTranslucentLine: string;
|
|
34
38
|
standby: string;
|
|
35
39
|
};
|
|
36
40
|
shadows: {
|
package/dist/themes/darkTheme.js
CHANGED
|
@@ -7,6 +7,7 @@ export declare const lightTheme: {
|
|
|
7
7
|
actionButtonBorder: string;
|
|
8
8
|
actionButtonBorderMobile: string;
|
|
9
9
|
actionButtonSecondaryBackground: string;
|
|
10
|
+
actionButtonDisabled: string;
|
|
10
11
|
closeButton: string;
|
|
11
12
|
closeButtonBackground: string;
|
|
12
13
|
connectButtonBackground: string;
|
|
@@ -31,6 +32,9 @@ export declare const lightTheme: {
|
|
|
31
32
|
profileActionHover: string;
|
|
32
33
|
profileForeground: string;
|
|
33
34
|
selectedOptionBorder: string;
|
|
35
|
+
solidLine: string;
|
|
36
|
+
rightTranslucentLine: string;
|
|
37
|
+
leftTranslucentLine: string;
|
|
34
38
|
standby: string;
|
|
35
39
|
};
|
|
36
40
|
shadows: {
|
package/dist/utils/checkout.d.ts
CHANGED
|
@@ -1,11 +1,6 @@
|
|
|
1
|
-
import { CheckoutHistoryItem, CheckoutState, FunWallet
|
|
1
|
+
import { CheckoutHistoryItem, CheckoutState, FunWallet } from '@funkit/core';
|
|
2
2
|
import { Chain as ViemChain, Hex } from 'viem';
|
|
3
3
|
import { FunkitCheckoutConfig } from '../components/FunkitProvider/FunkitCheckoutContext';
|
|
4
|
-
declare global {
|
|
5
|
-
interface Window {
|
|
6
|
-
globalEnvOptions: GlobalEnvOption;
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
4
|
/**
|
|
10
5
|
* Validates the checkout configuration.
|
|
11
6
|
* @param config - The checkout configuration to validate.
|
|
@@ -18,8 +13,35 @@ export declare function validateCheckoutConfig(config: FunkitCheckoutConfig): {
|
|
|
18
13
|
/**
|
|
19
14
|
* Checks whether user has sufficient targetAsset + targetAssetAmount in their funwallet
|
|
20
15
|
*/
|
|
21
|
-
export declare const testAutoExecutionDuringCheckout: (config: FunkitCheckoutConfig, chainItem: ViemChain, wallet: FunWallet) => Promise<
|
|
16
|
+
export declare const testAutoExecutionDuringCheckout: (config: FunkitCheckoutConfig, chainItem: ViemChain, wallet: FunWallet) => Promise<{
|
|
17
|
+
result: boolean;
|
|
18
|
+
tokenTicker: null;
|
|
19
|
+
} | {
|
|
20
|
+
result: boolean;
|
|
21
|
+
tokenTicker: string;
|
|
22
|
+
}>;
|
|
22
23
|
export declare function getTokenAddress(tokenTicker: string, chainId: string): Promise<`0x${string}`>;
|
|
24
|
+
export declare function getFunkitEnvForDirectExecution({ chainId, }: {
|
|
25
|
+
chainId: string;
|
|
26
|
+
}): {
|
|
27
|
+
chain: string;
|
|
28
|
+
gasSponsor: {
|
|
29
|
+
sponsorAddress?: `0x${string}` | undefined;
|
|
30
|
+
token?: string | undefined;
|
|
31
|
+
usePermit?: boolean | undefined;
|
|
32
|
+
useCheckoutSponsor?: boolean | undefined;
|
|
33
|
+
};
|
|
34
|
+
apiKey?: string | undefined;
|
|
35
|
+
fee?: {
|
|
36
|
+
token?: string | undefined;
|
|
37
|
+
amount?: number | undefined;
|
|
38
|
+
gasPercent?: number | undefined;
|
|
39
|
+
recipient: `0x${string}`;
|
|
40
|
+
} | undefined;
|
|
41
|
+
skipDBAction?: boolean | undefined;
|
|
42
|
+
nonce?: bigint | undefined;
|
|
43
|
+
bypassInit?: boolean | undefined;
|
|
44
|
+
};
|
|
23
45
|
/**
|
|
24
46
|
* Generates an env config for checkout estimation
|
|
25
47
|
* So that batch operation creation will not fail even if FW has insufficient funds to pass the estimation.
|
|
@@ -16,6 +16,8 @@ interface FormatNumberOptions {
|
|
|
16
16
|
/** The largest suffix to use (e.g. if 1000000, we will stop at M and not use the B suffix) */
|
|
17
17
|
maxSuffixSize?: 1e3 | 1e6 | 1e9 | 1e12;
|
|
18
18
|
numberFormatOptions?: Intl.NumberFormatOptions;
|
|
19
|
+
/** Adds minimum significant digits value to force numbers to show decimal precision even when there are none 5 -> 5.00 */
|
|
20
|
+
minimumSignificantDigits?: number;
|
|
19
21
|
}
|
|
20
22
|
/**
|
|
21
23
|
* Formats a number with conditional truncation, suffixation, and scientific notation.
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
xdefiWallet
|
|
4
|
-
} from "./chunk-5ZLRNFDM.js";
|
|
5
2
|
import {
|
|
6
3
|
zerionWallet
|
|
7
4
|
} from "./chunk-7Q7X4HIR.js";
|
|
5
|
+
import {
|
|
6
|
+
xdefiWallet
|
|
7
|
+
} from "./chunk-5ZLRNFDM.js";
|
|
8
8
|
import {
|
|
9
9
|
tahoWallet
|
|
10
10
|
} from "./chunk-OOGGCCFQ.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
13
|
-
} from "./chunk-
|
|
12
|
+
omniWallet
|
|
13
|
+
} from "./chunk-2T3BP5YM.js";
|
|
14
14
|
import {
|
|
15
15
|
talismanWallet
|
|
16
16
|
} from "./chunk-5UETJ33B.js";
|
|
17
|
-
import {
|
|
18
|
-
uniswapWallet
|
|
19
|
-
} from "./chunk-WCZ37NN2.js";
|
|
20
17
|
import {
|
|
21
18
|
trustWallet
|
|
22
19
|
} from "./chunk-QVJQ2MU7.js";
|
|
20
|
+
import {
|
|
21
|
+
uniswapWallet
|
|
22
|
+
} from "./chunk-WCZ37NN2.js";
|
|
23
23
|
import {
|
|
24
24
|
tokenPocketWallet
|
|
25
25
|
} from "./chunk-6GAD4OSN.js";
|
|
@@ -30,53 +30,59 @@ import {
|
|
|
30
30
|
zealWallet
|
|
31
31
|
} from "./chunk-QBKHMTGI.js";
|
|
32
32
|
import {
|
|
33
|
-
|
|
34
|
-
} from "./chunk-
|
|
35
|
-
import {
|
|
36
|
-
oneKeyWallet
|
|
37
|
-
} from "./chunk-6CW3SAA3.js";
|
|
33
|
+
okxWallet
|
|
34
|
+
} from "./chunk-MPVMJW2X.js";
|
|
38
35
|
import {
|
|
39
36
|
phantomWallet
|
|
40
37
|
} from "./chunk-KUZFZL2D.js";
|
|
38
|
+
import {
|
|
39
|
+
rabbyWallet
|
|
40
|
+
} from "./chunk-TNC2B7LX.js";
|
|
41
41
|
import {
|
|
42
42
|
rainbowWallet
|
|
43
43
|
} from "./chunk-VDUTD5UR.js";
|
|
44
|
+
import {
|
|
45
|
+
safeheronWallet
|
|
46
|
+
} from "./chunk-7WTKIVCW.js";
|
|
44
47
|
import {
|
|
45
48
|
safeWallet
|
|
46
49
|
} from "./chunk-BNTZHUB6.js";
|
|
47
50
|
import {
|
|
48
51
|
safepalWallet
|
|
49
52
|
} from "./chunk-RMJYZWKN.js";
|
|
50
|
-
import {
|
|
51
|
-
rabbyWallet
|
|
52
|
-
} from "./chunk-TNC2B7LX.js";
|
|
53
53
|
import {
|
|
54
54
|
subWallet
|
|
55
55
|
} from "./chunk-JU27WJ7W.js";
|
|
56
|
+
import {
|
|
57
|
+
frontierWallet
|
|
58
|
+
} from "./chunk-T2DNUVKD.js";
|
|
56
59
|
import {
|
|
57
60
|
imTokenWallet
|
|
58
61
|
} from "./chunk-4TBAMXD2.js";
|
|
59
|
-
import {
|
|
60
|
-
clvWallet
|
|
61
|
-
} from "./chunk-C3X4W5P4.js";
|
|
62
62
|
import {
|
|
63
63
|
injectedWallet
|
|
64
64
|
} from "./chunk-U32TVZ7G.js";
|
|
65
65
|
import {
|
|
66
66
|
ledgerWallet
|
|
67
67
|
} from "./chunk-4AGSKVK4.js";
|
|
68
|
-
import {
|
|
69
|
-
metaMaskWallet
|
|
70
|
-
} from "./chunk-CESIYSTD.js";
|
|
71
68
|
import {
|
|
72
69
|
mewWallet
|
|
73
70
|
} from "./chunk-BZFEDZQJ.js";
|
|
71
|
+
import {
|
|
72
|
+
metaMaskWallet
|
|
73
|
+
} from "./chunk-CESIYSTD.js";
|
|
74
74
|
import {
|
|
75
75
|
oktoWallet
|
|
76
76
|
} from "./chunk-3JTRMKJN.js";
|
|
77
77
|
import {
|
|
78
|
-
|
|
79
|
-
} from "./chunk-
|
|
78
|
+
oneKeyWallet
|
|
79
|
+
} from "./chunk-6CW3SAA3.js";
|
|
80
|
+
import {
|
|
81
|
+
clvWallet
|
|
82
|
+
} from "./chunk-C3X4W5P4.js";
|
|
83
|
+
import {
|
|
84
|
+
coin98Wallet
|
|
85
|
+
} from "./chunk-PVTJW4KE.js";
|
|
80
86
|
import {
|
|
81
87
|
coreWallet
|
|
82
88
|
} from "./chunk-K342MEBF.js";
|
|
@@ -86,18 +92,15 @@ import {
|
|
|
86
92
|
import {
|
|
87
93
|
desigWallet
|
|
88
94
|
} from "./chunk-SXUVHZCG.js";
|
|
89
|
-
import {
|
|
90
|
-
enkryptWallet
|
|
91
|
-
} from "./chunk-ND76X5A2.js";
|
|
92
95
|
import {
|
|
93
96
|
foxWallet
|
|
94
97
|
} from "./chunk-C6BBHBY3.js";
|
|
98
|
+
import {
|
|
99
|
+
enkryptWallet
|
|
100
|
+
} from "./chunk-ND76X5A2.js";
|
|
95
101
|
import {
|
|
96
102
|
frameWallet
|
|
97
103
|
} from "./chunk-MBFEMLUU.js";
|
|
98
|
-
import {
|
|
99
|
-
frontierWallet
|
|
100
|
-
} from "./chunk-T2DNUVKD.js";
|
|
101
104
|
import {
|
|
102
105
|
argentWallet
|
|
103
106
|
} from "./chunk-DINSZSEC.js";
|
|
@@ -111,13 +114,10 @@ import {
|
|
|
111
114
|
bitKeepWallet,
|
|
112
115
|
bitgetWallet
|
|
113
116
|
} from "./chunk-4HP4HVWX.js";
|
|
117
|
+
import "./chunk-4ACOCJJZ.js";
|
|
114
118
|
import {
|
|
115
119
|
braveWallet
|
|
116
120
|
} from "./chunk-INSQDNCE.js";
|
|
117
|
-
import {
|
|
118
|
-
coin98Wallet
|
|
119
|
-
} from "./chunk-PVTJW4KE.js";
|
|
120
|
-
import "./chunk-4ACOCJJZ.js";
|
|
121
121
|
import {
|
|
122
122
|
coinbaseWallet
|
|
123
123
|
} from "./chunk-WFTAXMQP.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@funkit/connect",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -82,10 +82,10 @@
|
|
|
82
82
|
},
|
|
83
83
|
"dependencies": {
|
|
84
84
|
"@front-finance/link": "^1.1.9",
|
|
85
|
-
"@funkit/core": "^0.10.
|
|
86
|
-
"@funkit/wagmi-tools": "^0.1.
|
|
85
|
+
"@funkit/core": "^0.10.4",
|
|
86
|
+
"@funkit/wagmi-tools": "^0.1.3",
|
|
87
87
|
"@moonpay/moonpay-react": "^1.4.1",
|
|
88
|
-
"@privy-io/js-sdk-core": "^0.
|
|
88
|
+
"@privy-io/js-sdk-core": "^0.11.0",
|
|
89
89
|
"@types/uuid": "^9.0.1",
|
|
90
90
|
"@vanilla-extract/css": "1.9.1",
|
|
91
91
|
"@vanilla-extract/dynamic": "2.0.2",
|
package/dist/chunk-FDHEHORE.js
DELETED
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
baseTheme
|
|
4
|
-
} from "./chunk-VP4CAK4A.js";
|
|
5
|
-
|
|
6
|
-
// src/themes/darkTheme.ts
|
|
7
|
-
var darkGrey = "#1A1B1F";
|
|
8
|
-
var accentColors = {
|
|
9
|
-
blue: { accentColor: "#3898FF", accentColorForeground: "#FFF" },
|
|
10
|
-
green: { accentColor: "#4BD166", accentColorForeground: darkGrey },
|
|
11
|
-
orange: { accentColor: "#FF983D", accentColorForeground: darkGrey },
|
|
12
|
-
pink: { accentColor: "#FF7AB8", accentColorForeground: darkGrey },
|
|
13
|
-
purple: { accentColor: "#7A70FF", accentColorForeground: "#FFF" },
|
|
14
|
-
red: { accentColor: "#FF6257", accentColorForeground: "#FFF" }
|
|
15
|
-
};
|
|
16
|
-
var defaultAccentColor = accentColors.blue;
|
|
17
|
-
var darkTheme = ({
|
|
18
|
-
accentColor = defaultAccentColor.accentColor,
|
|
19
|
-
accentColorForeground = defaultAccentColor.accentColorForeground,
|
|
20
|
-
...baseThemeOptions
|
|
21
|
-
} = {}) => ({
|
|
22
|
-
...baseTheme(baseThemeOptions),
|
|
23
|
-
colors: {
|
|
24
|
-
accentColor,
|
|
25
|
-
accentColorForeground,
|
|
26
|
-
actionButtonBorder: "rgba(255, 255, 255, 0.04)",
|
|
27
|
-
actionButtonBorderMobile: "rgba(255, 255, 255, 0.08)",
|
|
28
|
-
actionButtonSecondaryBackground: "rgba(255, 255, 255, 0.08)",
|
|
29
|
-
closeButton: "rgba(224, 232, 255, 0.6)",
|
|
30
|
-
closeButtonBackground: "rgba(255, 255, 255, 0.08)",
|
|
31
|
-
connectButtonBackground: darkGrey,
|
|
32
|
-
connectButtonBackgroundError: "#C60000",
|
|
33
|
-
connectButtonInnerBackground: "linear-gradient(0deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.15))",
|
|
34
|
-
connectButtonText: "#FFF",
|
|
35
|
-
connectButtonTextError: "#FFF",
|
|
36
|
-
connectionIndicator: "#30E000",
|
|
37
|
-
downloadBottomCardBackground: "linear-gradient(126deg, rgba(0, 0, 0, 0) 9.49%, rgba(120, 120, 120, 0.2) 71.04%), #1A1B1F",
|
|
38
|
-
downloadTopCardBackground: "linear-gradient(126deg, rgba(120, 120, 120, 0.2) 9.49%, rgba(0, 0, 0, 0) 71.04%), #1A1B1F",
|
|
39
|
-
error: "#C60000",
|
|
40
|
-
generalBorder: "rgba(255, 255, 255, 0.08)",
|
|
41
|
-
generalBorderDim: "rgba(255, 255, 255, 0.04)",
|
|
42
|
-
menuItemBackground: "rgba(224, 232, 255, 0.1)",
|
|
43
|
-
modalBackdrop: "rgba(0, 0, 0, 0.5)",
|
|
44
|
-
modalBackground: "#1A1B1F",
|
|
45
|
-
modalBorder: "rgba(255, 255, 255, 0.08)",
|
|
46
|
-
modalText: "#FFF",
|
|
47
|
-
modalTextDim: "rgba(224, 232, 255, 0.3)",
|
|
48
|
-
modalTextSecondary: "rgba(255, 255, 255, 0.6)",
|
|
49
|
-
profileAction: "rgba(224, 232, 255, 0.1)",
|
|
50
|
-
profileActionHover: "rgba(224, 232, 255, 0.2)",
|
|
51
|
-
profileForeground: "rgba(224, 232, 255, 0.05)",
|
|
52
|
-
selectedOptionBorder: "rgba(224, 232, 255, 0.1)",
|
|
53
|
-
standby: "#FFD641"
|
|
54
|
-
},
|
|
55
|
-
shadows: {
|
|
56
|
-
connectButton: "0px 4px 12px rgba(0, 0, 0, 0.1)",
|
|
57
|
-
dialog: "0px 8px 32px rgba(0, 0, 0, 0.32)",
|
|
58
|
-
profileDetailsAction: "0px 2px 6px rgba(37, 41, 46, 0.04)",
|
|
59
|
-
selectedOption: "0px 2px 6px rgba(0, 0, 0, 0.24)",
|
|
60
|
-
selectedWallet: "0px 2px 6px rgba(0, 0, 0, 0.24)",
|
|
61
|
-
walletLogo: "0px 2px 16px rgba(0, 0, 0, 0.16)"
|
|
62
|
-
}
|
|
63
|
-
});
|
|
64
|
-
darkTheme.accentColors = accentColors;
|
|
65
|
-
|
|
66
|
-
export {
|
|
67
|
-
darkTheme
|
|
68
|
-
};
|
package/dist/chunk-U7C2G4O4.js
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
baseTheme
|
|
4
|
-
} from "./chunk-VP4CAK4A.js";
|
|
5
|
-
|
|
6
|
-
// src/themes/midnightTheme.ts
|
|
7
|
-
var accentColors = {
|
|
8
|
-
blue: { accentColor: "#3898FF", accentColorForeground: "#FFF" },
|
|
9
|
-
green: { accentColor: "#4BD166", accentColorForeground: "#000" },
|
|
10
|
-
orange: { accentColor: "#FF983D", accentColorForeground: "#000" },
|
|
11
|
-
pink: { accentColor: "#FF7AB8", accentColorForeground: "#000" },
|
|
12
|
-
purple: { accentColor: "#7A70FF", accentColorForeground: "#FFF" },
|
|
13
|
-
red: { accentColor: "#FF6257", accentColorForeground: "#FFF" }
|
|
14
|
-
};
|
|
15
|
-
var defaultAccentColor = accentColors.blue;
|
|
16
|
-
var midnightTheme = ({
|
|
17
|
-
accentColor = defaultAccentColor.accentColor,
|
|
18
|
-
accentColorForeground = defaultAccentColor.accentColorForeground,
|
|
19
|
-
...baseThemeOptions
|
|
20
|
-
} = {}) => ({
|
|
21
|
-
...baseTheme(baseThemeOptions),
|
|
22
|
-
colors: {
|
|
23
|
-
accentColor,
|
|
24
|
-
accentColorForeground,
|
|
25
|
-
actionButtonBorder: "rgba(255, 255, 255, 0.04)",
|
|
26
|
-
actionButtonBorderMobile: "rgba(255, 255, 255, 0.1)",
|
|
27
|
-
actionButtonSecondaryBackground: "rgba(255, 255, 255, 0.08)",
|
|
28
|
-
closeButton: "rgba(255, 255, 255, 0.7)",
|
|
29
|
-
closeButtonBackground: "rgba(255, 255, 255, 0.08)",
|
|
30
|
-
connectButtonBackground: "#000",
|
|
31
|
-
connectButtonBackgroundError: "#FF494A",
|
|
32
|
-
connectButtonInnerBackground: "linear-gradient(0deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.12))",
|
|
33
|
-
connectButtonText: "#FFF",
|
|
34
|
-
connectButtonTextError: "#FFF",
|
|
35
|
-
connectionIndicator: "#30E000",
|
|
36
|
-
downloadBottomCardBackground: "linear-gradient(126deg, rgba(0, 0, 0, 0) 9.49%, rgba(120, 120, 120, 0.1) 71.04%), #050505",
|
|
37
|
-
downloadTopCardBackground: "linear-gradient(126deg, rgba(120, 120, 120, 0.1) 9.49%, rgba(0, 0, 0, 0) 71.04%), #050505",
|
|
38
|
-
error: "#FF494A",
|
|
39
|
-
generalBorder: "rgba(255, 255, 255, 0.08)",
|
|
40
|
-
generalBorderDim: "rgba(255, 255, 255, 0.04)",
|
|
41
|
-
menuItemBackground: "rgba(255, 255, 255, 0.08)",
|
|
42
|
-
modalBackdrop: "rgba(0, 0, 0, 0.7)",
|
|
43
|
-
modalBackground: "#000",
|
|
44
|
-
modalBorder: "rgba(255, 255, 255, 0.08)",
|
|
45
|
-
modalText: "#FFF",
|
|
46
|
-
modalTextDim: "rgba(255, 255, 255, 0.2)",
|
|
47
|
-
modalTextSecondary: "rgba(255, 255, 255, 0.6)",
|
|
48
|
-
profileAction: "rgba(255, 255, 255, 0.1)",
|
|
49
|
-
profileActionHover: "rgba(255, 255, 255, 0.2)",
|
|
50
|
-
profileForeground: "rgba(255, 255, 255, 0.06)",
|
|
51
|
-
selectedOptionBorder: "rgba(224, 232, 255, 0.1)",
|
|
52
|
-
standby: "#FFD641"
|
|
53
|
-
},
|
|
54
|
-
shadows: {
|
|
55
|
-
connectButton: "0px 4px 12px rgba(0, 0, 0, 0.1)",
|
|
56
|
-
dialog: "0px 8px 32px rgba(0, 0, 0, 0.32)",
|
|
57
|
-
profileDetailsAction: "0px 2px 6px rgba(37, 41, 46, 0.04)",
|
|
58
|
-
selectedOption: "0px 2px 6px rgba(0, 0, 0, 0.24)",
|
|
59
|
-
selectedWallet: "0px 2px 6px rgba(0, 0, 0, 0.24)",
|
|
60
|
-
walletLogo: "0px 2px 16px rgba(0, 0, 0, 0.16)"
|
|
61
|
-
}
|
|
62
|
-
});
|
|
63
|
-
midnightTheme.accentColors = accentColors;
|
|
64
|
-
|
|
65
|
-
export {
|
|
66
|
-
midnightTheme
|
|
67
|
-
};
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { AccentColor, AccentColorPreset, ThemeOptions } from './baseTheme';
|
|
2
|
-
export declare const funTheme: {
|
|
3
|
-
({ accentColor, accentColorForeground, ...baseThemeOptions }?: ThemeOptions): {
|
|
4
|
-
colors: {
|
|
5
|
-
accentColor: string;
|
|
6
|
-
accentColorForeground: string;
|
|
7
|
-
actionButtonBorder: string;
|
|
8
|
-
actionButtonBorderMobile: string;
|
|
9
|
-
actionButtonSecondaryBackground: string;
|
|
10
|
-
actionButtonDisabled: string;
|
|
11
|
-
closeButton: string;
|
|
12
|
-
closeButtonBackground: string;
|
|
13
|
-
connectButtonBackground: string;
|
|
14
|
-
connectButtonBackgroundError: string;
|
|
15
|
-
connectButtonInnerBackground: string;
|
|
16
|
-
connectButtonText: string;
|
|
17
|
-
connectButtonTextError: string;
|
|
18
|
-
connectionIndicator: string;
|
|
19
|
-
downloadBottomCardBackground: string;
|
|
20
|
-
downloadTopCardBackground: string;
|
|
21
|
-
error: string;
|
|
22
|
-
generalBorder: string;
|
|
23
|
-
generalBorderDim: string;
|
|
24
|
-
menuItemBackground: string;
|
|
25
|
-
modalBackdrop: string;
|
|
26
|
-
modalBackground: string;
|
|
27
|
-
modalBorder: string;
|
|
28
|
-
modalText: string;
|
|
29
|
-
modalTextDim: string;
|
|
30
|
-
modalTextSecondary: string;
|
|
31
|
-
profileAction: string;
|
|
32
|
-
profileActionHover: string;
|
|
33
|
-
profileForeground: string;
|
|
34
|
-
selectedOptionBorder: string;
|
|
35
|
-
solidLine: string;
|
|
36
|
-
rightTranslucentLine: string;
|
|
37
|
-
leftTranslucentLine: string;
|
|
38
|
-
standby: string;
|
|
39
|
-
};
|
|
40
|
-
shadows: {
|
|
41
|
-
connectButton: string;
|
|
42
|
-
dialog: string;
|
|
43
|
-
profileDetailsAction: string;
|
|
44
|
-
selectedOption: string;
|
|
45
|
-
selectedWallet: string;
|
|
46
|
-
walletLogo: string;
|
|
47
|
-
};
|
|
48
|
-
fonts: {
|
|
49
|
-
body: string;
|
|
50
|
-
};
|
|
51
|
-
radii: {
|
|
52
|
-
actionButton: string;
|
|
53
|
-
connectButton: string;
|
|
54
|
-
menuButton: string;
|
|
55
|
-
modal: string;
|
|
56
|
-
modalMobile: string;
|
|
57
|
-
};
|
|
58
|
-
blurs: {
|
|
59
|
-
modalOverlay: string;
|
|
60
|
-
};
|
|
61
|
-
};
|
|
62
|
-
accentColors: Record<AccentColorPreset, AccentColor>;
|
|
63
|
-
};
|
package/dist/themes/funTheme.js
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { AccentColor, AccentColorPreset, ThemeOptions } from './baseTheme';
|
|
2
|
-
export declare const midnightTheme: {
|
|
3
|
-
({ accentColor, accentColorForeground, ...baseThemeOptions }?: ThemeOptions): {
|
|
4
|
-
colors: {
|
|
5
|
-
accentColor: string;
|
|
6
|
-
accentColorForeground: string;
|
|
7
|
-
actionButtonBorder: string;
|
|
8
|
-
actionButtonBorderMobile: string;
|
|
9
|
-
actionButtonSecondaryBackground: string;
|
|
10
|
-
closeButton: string;
|
|
11
|
-
closeButtonBackground: string;
|
|
12
|
-
connectButtonBackground: string;
|
|
13
|
-
connectButtonBackgroundError: string;
|
|
14
|
-
connectButtonInnerBackground: string;
|
|
15
|
-
connectButtonText: string;
|
|
16
|
-
connectButtonTextError: string;
|
|
17
|
-
connectionIndicator: string;
|
|
18
|
-
downloadBottomCardBackground: string;
|
|
19
|
-
downloadTopCardBackground: string;
|
|
20
|
-
error: string;
|
|
21
|
-
generalBorder: string;
|
|
22
|
-
generalBorderDim: string;
|
|
23
|
-
menuItemBackground: string;
|
|
24
|
-
modalBackdrop: string;
|
|
25
|
-
modalBackground: string;
|
|
26
|
-
modalBorder: string;
|
|
27
|
-
modalText: string;
|
|
28
|
-
modalTextDim: string;
|
|
29
|
-
modalTextSecondary: string;
|
|
30
|
-
profileAction: string;
|
|
31
|
-
profileActionHover: string;
|
|
32
|
-
profileForeground: string;
|
|
33
|
-
selectedOptionBorder: string;
|
|
34
|
-
standby: string;
|
|
35
|
-
};
|
|
36
|
-
shadows: {
|
|
37
|
-
connectButton: string;
|
|
38
|
-
dialog: string;
|
|
39
|
-
profileDetailsAction: string;
|
|
40
|
-
selectedOption: string;
|
|
41
|
-
selectedWallet: string;
|
|
42
|
-
walletLogo: string;
|
|
43
|
-
};
|
|
44
|
-
fonts: {
|
|
45
|
-
body: string;
|
|
46
|
-
};
|
|
47
|
-
radii: {
|
|
48
|
-
actionButton: string;
|
|
49
|
-
connectButton: string;
|
|
50
|
-
menuButton: string;
|
|
51
|
-
modal: string;
|
|
52
|
-
modalMobile: string;
|
|
53
|
-
};
|
|
54
|
-
blurs: {
|
|
55
|
-
modalOverlay: string;
|
|
56
|
-
};
|
|
57
|
-
};
|
|
58
|
-
accentColors: Record<AccentColorPreset, AccentColor>;
|
|
59
|
-
};
|