@funkit/connect 9.7.2-next.1 → 9.9.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/CHANGELOG.md +93 -0
- package/dist/__generated__/default_configs.d.ts +1 -1
- package/dist/__generated__/default_feature_gates.d.ts +2 -0
- package/dist/clients/chunk-LMEQD56M.js +289 -0
- package/dist/clients/fanatics.css +1 -1
- package/dist/clients/fanatics.js +55 -329
- package/dist/clients/lighter.css +4775 -4775
- package/dist/clients/lighter.d.ts +30 -34
- package/dist/clients/lighter.js +163 -69
- package/dist/components/ApprovalMethodToggle/ApprovalMethodToggle.d.ts +19 -0
- package/dist/components/Dropdown/BaseActiveDropdownItem.d.ts +2 -1
- package/dist/components/Dropdown/BaseDropdown.d.ts +11 -23
- package/dist/components/Dropdown/BaseDropdown.utils.d.ts +23 -0
- package/dist/components/Dropdown/ChainDropdown.d.ts +2 -1
- package/dist/components/Dropdown/TokenAndChainDropdown.d.ts +9 -3
- package/dist/components/Dropdown/TokenDropdown.d.ts +7 -3
- package/dist/domains/asset.d.ts +0 -1
- package/dist/domains/quote.d.ts +9 -1
- package/dist/domains/quoteMode/exactOut.d.ts +2 -1
- package/dist/domains/quoteMode/resolveQuoteMode.d.ts +3 -1
- package/dist/hooks/queries/useWithdrawalQuote.d.ts +2 -8
- package/dist/hooks/useCheckoutDirectExecution.d.ts +8 -1
- package/dist/hooks/useIsStablecoin.d.ts +2 -0
- package/dist/hooks/useTokenAndChainDropdown.d.ts +13 -7
- package/dist/hooks/useTokenTransfer.d.ts +2 -2
- package/dist/index.css +99 -99
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5847 -4800
- package/dist/modals/CheckoutModal/SourceChange/CryptoCashToggle.d.ts +2 -1
- package/dist/modals/CheckoutModal/TransferToken/useTransferTokenTracking.d.ts +2 -2
- package/dist/modals/WithdrawalModal/WithdrawalContent.d.ts +11 -1
- package/dist/modals/WithdrawalModal/useWithdrawal.d.ts +5 -1
- package/dist/providers/FunkitCheckoutContext/index.d.ts +1 -0
- package/dist/providers/FunkitCheckoutContext/types.d.ts +60 -2
- package/dist/providers/FunkitHistoryContext.d.ts +2 -2
- package/dist/providers/FunkitQuoteContext.d.ts +6 -0
- package/dist/utils/withdrawal.d.ts +6 -1
- package/dist/wallets/Wallet.d.ts +11 -0
- package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
- package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
- package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +2 -2
- package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
- package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
- package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
- package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
- package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
- package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
- package/dist/wallets/walletConnectors/index.js +45 -45
- package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
- package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
- package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
- package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +2 -2
- package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
- package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
- package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
- package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
- package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
- package/package.json +6 -5
- package/dist/chunk-64NZSUGQ.js +0 -368
- package/dist/chunk-B2B6HDIE.js +0 -238
- package/dist/chunk-OQNN7EMQ.js +0 -238
- package/dist/chunk-S65TG73G.js +0 -247
- package/dist/chunk-VLAOBEJN.js +0 -247
- package/dist/clients/chunk-3LSYVQXK.js +0 -289
- package/dist/clients/chunk-SBQ2UUPK.js +0 -214
- package/dist/clients/chunk-V526Q43Z.js +0 -271
- package/dist/components/Dropdown/TokenAndChainDropdown.css.d.ts +0 -1
- package/dist/hooks/track/CheckoutTrackingContext.d.ts +0 -60
- package/dist/hooks/useTokenChain.d.ts +0 -21
- package/dist/modals/CheckoutModal/SwappedIframe/SwappedIframeContainer.d.ts +0 -17
- package/dist/modals/WithdrwalModal/WithdrawalCallbackSuccess.d.ts +0 -10
- package/dist/modals/WithdrwalModal/WithdrawalContent.d.ts +0 -11
- package/dist/modals/WithdrwalModal/WithdrawalModal.d.ts +0 -9
- package/dist/modals/WithdrwalModal/WithdrawalSuccess.d.ts +0 -15
- package/dist/modals/WithdrwalModal/types.d.ts +0 -5
- package/dist/modals/WithdrwalModal/useWithdrawal.d.ts +0 -24
- package/dist/wallets/walletConnectors/chunk-34HACM5U.js +0 -110
- package/dist/wallets/walletConnectors/chunk-4C7ER452.js +0 -93
- package/dist/wallets/walletConnectors/chunk-53VYSPXK.js +0 -66
- package/dist/wallets/walletConnectors/chunk-5TN5Z2WY.js +0 -87
- package/dist/wallets/walletConnectors/chunk-6DRCY52E.js +0 -69
- package/dist/wallets/walletConnectors/chunk-6UCI7GM6.js +0 -98
- package/dist/wallets/walletConnectors/chunk-6YO27XOM.js +0 -96
- package/dist/wallets/walletConnectors/chunk-7OARWILZ.js +0 -92
- package/dist/wallets/walletConnectors/chunk-7V33VJAL.js +0 -218
- package/dist/wallets/walletConnectors/chunk-APHCF4DT.js +0 -103
- package/dist/wallets/walletConnectors/chunk-CJJT7LMT.js +0 -96
- package/dist/wallets/walletConnectors/chunk-DEFRRPXB.js +0 -98
- package/dist/wallets/walletConnectors/chunk-EKJHJFRN.js +0 -69
- package/dist/wallets/walletConnectors/chunk-FG2LDVXL.js +0 -92
- package/dist/wallets/walletConnectors/chunk-GH4M6FTK.js +0 -95
- package/dist/wallets/walletConnectors/chunk-GSHSWVEG.js +0 -70
- package/dist/wallets/walletConnectors/chunk-GVOQTORD.js +0 -87
- package/dist/wallets/walletConnectors/chunk-HETS3KKI.js +0 -218
- package/dist/wallets/walletConnectors/chunk-HOPH3TQ3.js +0 -99
- package/dist/wallets/walletConnectors/chunk-HRDPUW3V.js +0 -94
- package/dist/wallets/walletConnectors/chunk-HXWUH73P.js +0 -93
- package/dist/wallets/walletConnectors/chunk-IICWJWGZ.js +0 -110
- package/dist/wallets/walletConnectors/chunk-KO56HCTI.js +0 -106
- package/dist/wallets/walletConnectors/chunk-KWX2SYU2.js +0 -100
- package/dist/wallets/walletConnectors/chunk-LCIPVVH5.js +0 -70
- package/dist/wallets/walletConnectors/chunk-LI6QY2B5.js +0 -94
- package/dist/wallets/walletConnectors/chunk-PKMAPNN6.js +0 -92
- package/dist/wallets/walletConnectors/chunk-T4ROGPMF.js +0 -106
- package/dist/wallets/walletConnectors/chunk-TTHM3WUR.js +0 -100
- package/dist/wallets/walletConnectors/chunk-UDTBQV4Q.js +0 -96
- package/dist/wallets/walletConnectors/chunk-V6UOWTEZ.js +0 -95
- package/dist/wallets/walletConnectors/chunk-VJZWNQOF.js +0 -92
- package/dist/wallets/walletConnectors/chunk-XBLHZICW.js +0 -103
- package/dist/wallets/walletConnectors/chunk-XVBSJCW5.js +0 -96
- package/dist/wallets/walletConnectors/chunk-YIEASHLS.js +0 -99
- package/dist/wallets/walletConnectors/chunk-ZPSPK6LH.js +0 -66
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@funkit/connect",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.9.0",
|
|
4
4
|
"description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"wagmi": ">=2.0.0 <=3.5.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@aws-sdk/client-cloudfront": "3.
|
|
48
|
+
"@aws-sdk/client-cloudfront": "3.1033.0",
|
|
49
49
|
"@aws-sdk/client-s3": "3.1001.0",
|
|
50
50
|
"@chromatic-com/storybook": "^4.1.3",
|
|
51
51
|
"@statsig/statsig-node-core": "^0.11.1",
|
|
@@ -83,6 +83,7 @@
|
|
|
83
83
|
"dependencies": {
|
|
84
84
|
"@bluvo/react": "3.0.0-beta.1",
|
|
85
85
|
"@bluvo/sdk-ts": "3.0.0-beta.1",
|
|
86
|
+
"@lifeomic/attempt": "3.1.0",
|
|
86
87
|
"@datadog/browser-logs": "5.22.0",
|
|
87
88
|
"@number-flow/react": "^0.5.5",
|
|
88
89
|
"@radix-ui/react-dropdown-menu": "^2.1.7",
|
|
@@ -104,10 +105,10 @@
|
|
|
104
105
|
"ua-parser-js": "^1.0.37",
|
|
105
106
|
"use-debounce": "^10.0.5",
|
|
106
107
|
"uuid": "^9.0.1",
|
|
108
|
+
"@funkit/api-base": "4.2.0",
|
|
107
109
|
"@funkit/chains": "1.1.2",
|
|
108
|
-
"@funkit/fun-relay": "2.
|
|
109
|
-
"@funkit/
|
|
110
|
-
"@funkit/utils": "2.0.1-next.0"
|
|
110
|
+
"@funkit/fun-relay": "2.7.0",
|
|
111
|
+
"@funkit/utils": "3.0.0"
|
|
111
112
|
},
|
|
112
113
|
"repository": {
|
|
113
114
|
"type": "git",
|
package/dist/chunk-64NZSUGQ.js
DELETED
|
@@ -1,368 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
// src/themes/baseTheme.ts
|
|
4
|
-
var systemFontStack = '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"';
|
|
5
|
-
var fontStacks = {
|
|
6
|
-
rounded: `SFRounded, ui-rounded, "SF Pro Rounded", ${systemFontStack}`,
|
|
7
|
-
system: systemFontStack,
|
|
8
|
-
fun: `SF Pro, ${systemFontStack}`
|
|
9
|
-
};
|
|
10
|
-
var radiusScales = {
|
|
11
|
-
large: {
|
|
12
|
-
actionButton: "12px",
|
|
13
|
-
actionButtonInner: "10px",
|
|
14
|
-
connectButton: "12px",
|
|
15
|
-
modal: "24px",
|
|
16
|
-
modalMobile: "28px",
|
|
17
|
-
modalActionButton: "24px",
|
|
18
|
-
modalActionButtonMobile: "28px",
|
|
19
|
-
summaryBox: "12px",
|
|
20
|
-
youPayYouReceive: "24px",
|
|
21
|
-
inputAmountSwitcher: "24px",
|
|
22
|
-
qrCode: "12px",
|
|
23
|
-
tooltip: "4px",
|
|
24
|
-
skeleton: "4px",
|
|
25
|
-
dropdown: "12px",
|
|
26
|
-
dropdownItem: "4px",
|
|
27
|
-
dropdownList: "12px",
|
|
28
|
-
modalTopbarIcon: "9999px",
|
|
29
|
-
withdrawalInput: "12px",
|
|
30
|
-
useConnected: "8px"
|
|
31
|
-
},
|
|
32
|
-
medium: {
|
|
33
|
-
actionButton: "10px",
|
|
34
|
-
actionButtonInner: "8px",
|
|
35
|
-
connectButton: "10px",
|
|
36
|
-
modal: "16px",
|
|
37
|
-
modalMobile: "18px",
|
|
38
|
-
modalActionButton: "16px",
|
|
39
|
-
modalActionButtonMobile: "18px",
|
|
40
|
-
summaryBox: "10px",
|
|
41
|
-
youPayYouReceive: "24px",
|
|
42
|
-
inputAmountSwitcher: "24px",
|
|
43
|
-
qrCode: "10px",
|
|
44
|
-
tooltip: "4px",
|
|
45
|
-
skeleton: "4px",
|
|
46
|
-
dropdown: "10px",
|
|
47
|
-
dropdownItem: "4px",
|
|
48
|
-
dropdownList: "10px",
|
|
49
|
-
modalTopbarIcon: "9999px",
|
|
50
|
-
withdrawalInput: "10px",
|
|
51
|
-
useConnected: "8px"
|
|
52
|
-
},
|
|
53
|
-
none: {
|
|
54
|
-
actionButton: "0px",
|
|
55
|
-
actionButtonInner: "0px",
|
|
56
|
-
connectButton: "0px",
|
|
57
|
-
modal: "0px",
|
|
58
|
-
modalMobile: "0px",
|
|
59
|
-
modalActionButton: "0px",
|
|
60
|
-
modalActionButtonMobile: "0px",
|
|
61
|
-
summaryBox: "0px",
|
|
62
|
-
youPayYouReceive: "0px",
|
|
63
|
-
inputAmountSwitcher: "0px",
|
|
64
|
-
qrCode: "0px",
|
|
65
|
-
tooltip: "0px",
|
|
66
|
-
skeleton: "0px",
|
|
67
|
-
dropdown: "0px",
|
|
68
|
-
dropdownItem: "0px",
|
|
69
|
-
dropdownList: "0px",
|
|
70
|
-
modalTopbarIcon: "0px",
|
|
71
|
-
withdrawalInput: "0px",
|
|
72
|
-
useConnected: "0px"
|
|
73
|
-
},
|
|
74
|
-
small: {
|
|
75
|
-
actionButton: "8px",
|
|
76
|
-
actionButtonInner: "6px",
|
|
77
|
-
connectButton: "8px",
|
|
78
|
-
modal: "8px",
|
|
79
|
-
modalMobile: "8px",
|
|
80
|
-
modalActionButton: "8px",
|
|
81
|
-
modalActionButtonMobile: "8px",
|
|
82
|
-
summaryBox: "8px",
|
|
83
|
-
youPayYouReceive: "24px",
|
|
84
|
-
inputAmountSwitcher: "24px",
|
|
85
|
-
qrCode: "8px",
|
|
86
|
-
tooltip: "4px",
|
|
87
|
-
skeleton: "4px",
|
|
88
|
-
dropdown: "8px",
|
|
89
|
-
dropdownItem: "4px",
|
|
90
|
-
dropdownList: "8px",
|
|
91
|
-
modalTopbarIcon: "9999px",
|
|
92
|
-
withdrawalInput: "8px",
|
|
93
|
-
useConnected: "8px"
|
|
94
|
-
}
|
|
95
|
-
};
|
|
96
|
-
var blurs = {
|
|
97
|
-
large: {
|
|
98
|
-
modalOverlay: "blur(20px)"
|
|
99
|
-
},
|
|
100
|
-
none: {
|
|
101
|
-
modalOverlay: "blur(0px)"
|
|
102
|
-
},
|
|
103
|
-
small: {
|
|
104
|
-
modalOverlay: "blur(8px)"
|
|
105
|
-
},
|
|
106
|
-
tiny: {
|
|
107
|
-
modalOverlay: "blur(4px)"
|
|
108
|
-
}
|
|
109
|
-
};
|
|
110
|
-
var DEFAULT_FONT_WEIGHTS = {
|
|
111
|
-
regular: "400",
|
|
112
|
-
medium: "500",
|
|
113
|
-
// 510 in figma, but chrome no longer supports 510 - lowered to 500
|
|
114
|
-
semibold: "600",
|
|
115
|
-
// 590 in figma, but chrome no longer supports 590 - raised to 600
|
|
116
|
-
bold: "700",
|
|
117
|
-
heavy: "800"
|
|
118
|
-
};
|
|
119
|
-
var DEFAULT_FONT_SIZES = {
|
|
120
|
-
"10": { fontSize: "10px", lineHeight: "15px" },
|
|
121
|
-
"12": { fontSize: "12px", lineHeight: "14px" },
|
|
122
|
-
"13": { fontSize: "13px", lineHeight: "18px" },
|
|
123
|
-
"14": { fontSize: "14px", lineHeight: "18px" },
|
|
124
|
-
"16": { fontSize: "16px", lineHeight: "20px" },
|
|
125
|
-
"18": { fontSize: "18px", lineHeight: "24px" },
|
|
126
|
-
"20": { fontSize: "20px", lineHeight: "20px" },
|
|
127
|
-
"21": { fontSize: "21px", lineHeight: "21px" },
|
|
128
|
-
"40": { fontSize: "40px", lineHeight: "48px" },
|
|
129
|
-
"57": { fontSize: "57px", lineHeight: "68px" }
|
|
130
|
-
};
|
|
131
|
-
var FONT_SIZINGS = {
|
|
132
|
-
regular: DEFAULT_FONT_SIZES,
|
|
133
|
-
small: {
|
|
134
|
-
"8": { fontSize: "8px", lineHeight: "16px" },
|
|
135
|
-
"10": { fontSize: "8px", lineHeight: "16px" },
|
|
136
|
-
"12": { fontSize: "10px", lineHeight: "16px" },
|
|
137
|
-
"13": { fontSize: "10px", lineHeight: "16px" },
|
|
138
|
-
"14": { fontSize: "12px", lineHeight: "16px" },
|
|
139
|
-
"16": { fontSize: "14px", lineHeight: "18px" },
|
|
140
|
-
"18": { fontSize: "14px", lineHeight: "20px" },
|
|
141
|
-
"20": { fontSize: "18px", lineHeight: "20px" },
|
|
142
|
-
"21": { fontSize: "19px", lineHeight: "19px" },
|
|
143
|
-
"23": { fontSize: "20px", lineHeight: "28px" },
|
|
144
|
-
"40": { fontSize: "34px", lineHeight: "40px" },
|
|
145
|
-
"57": { fontSize: "50px", lineHeight: "60px" }
|
|
146
|
-
}
|
|
147
|
-
};
|
|
148
|
-
var nestedModalZIndexes = {
|
|
149
|
-
coinbase: 2147483647,
|
|
150
|
-
walletConnect: 99999999999999,
|
|
151
|
-
privy: 999999
|
|
152
|
-
};
|
|
153
|
-
var DEFAULT_MODAL_Z_INDEX = Math.min(...Object.values(nestedModalZIndexes)) - 2;
|
|
154
|
-
var baseTheme = ({
|
|
155
|
-
borderRadius = "large",
|
|
156
|
-
fontStack = "fun",
|
|
157
|
-
fontSizing = "regular",
|
|
158
|
-
customFontFamily,
|
|
159
|
-
customFontWeights = DEFAULT_FONT_WEIGHTS,
|
|
160
|
-
customFontSizings = FONT_SIZINGS[fontSizing],
|
|
161
|
-
customBorderWidths,
|
|
162
|
-
customBorderRadiuses = radiusScales[borderRadius],
|
|
163
|
-
customDimensions,
|
|
164
|
-
customSpacings,
|
|
165
|
-
customTextTransforms,
|
|
166
|
-
overlayBlur = "small",
|
|
167
|
-
modalZIndex = DEFAULT_MODAL_Z_INDEX
|
|
168
|
-
}) => ({
|
|
169
|
-
modalZIndex: String(modalZIndex),
|
|
170
|
-
blurs: {
|
|
171
|
-
modalOverlay: blurs[overlayBlur].modalOverlay
|
|
172
|
-
},
|
|
173
|
-
dimensions: {
|
|
174
|
-
connectExchangeIconSize: "48px",
|
|
175
|
-
cryptoCashToggleIconSize: "20px",
|
|
176
|
-
dollarValueSkeletonHeight: "60px",
|
|
177
|
-
dollarValueSkeletonWidth: "160px",
|
|
178
|
-
inputAmountQuickOptionButtonHeight: "36px",
|
|
179
|
-
inputAmountMinHeight: "76px",
|
|
180
|
-
modalBottomBarButtonHeight: "34px",
|
|
181
|
-
modalTopBarHeight: "56px",
|
|
182
|
-
modalTopbarIconSize: "16px",
|
|
183
|
-
modalTopbarIconWrapperSize: "32px",
|
|
184
|
-
paymentAmountSkeletonBlockHeight: "10px",
|
|
185
|
-
paymentAmountSkeletonBlockWidth: "93px",
|
|
186
|
-
paymentAmountSkeletonCircleSize: "15px",
|
|
187
|
-
paymentMethodItemIconSize: "20px",
|
|
188
|
-
selectAssetItemIconSize: "24px",
|
|
189
|
-
sourceListGap: "4px",
|
|
190
|
-
txBreakdownSkeletonWidth: "72px",
|
|
191
|
-
txSummaryLineSkeletonHeight: "14px",
|
|
192
|
-
txSummaryLineSkeletonWidth: "54px",
|
|
193
|
-
...customDimensions,
|
|
194
|
-
modalBottomBarCloseButtonHeight: customDimensions?.modalBottomBarCloseButtonHeight ?? customDimensions?.modalBottomBarButtonHeight ?? "34px"
|
|
195
|
-
},
|
|
196
|
-
fonts: typeof customFontFamily === "string" ? {
|
|
197
|
-
amountValue: customFontFamily,
|
|
198
|
-
body: customFontFamily,
|
|
199
|
-
buttonTextPrimary: customFontFamily,
|
|
200
|
-
buttonTextSecondary: customFontFamily,
|
|
201
|
-
buttonTextTertiary: customFontFamily,
|
|
202
|
-
dropdownGroupHeader: customFontFamily,
|
|
203
|
-
header: customFontFamily,
|
|
204
|
-
inputAmount: customFontFamily,
|
|
205
|
-
txStatusDescription: customFontFamily,
|
|
206
|
-
txStatusTitle: customFontFamily
|
|
207
|
-
} : {
|
|
208
|
-
amountValue: fontStacks[fontStack],
|
|
209
|
-
body: fontStacks[fontStack],
|
|
210
|
-
buttonTextPrimary: fontStacks[fontStack],
|
|
211
|
-
buttonTextSecondary: fontStacks[fontStack],
|
|
212
|
-
buttonTextTertiary: fontStacks[fontStack],
|
|
213
|
-
dropdownGroupHeader: fontStacks[fontStack],
|
|
214
|
-
header: fontStacks[fontStack],
|
|
215
|
-
inputAmount: fontStacks[fontStack],
|
|
216
|
-
txStatusDescription: fontStacks[fontStack],
|
|
217
|
-
txStatusTitle: fontStacks[fontStack],
|
|
218
|
-
...customFontFamily
|
|
219
|
-
},
|
|
220
|
-
fontWeight: {
|
|
221
|
-
...DEFAULT_FONT_WEIGHTS,
|
|
222
|
-
cryptoCashToggle: DEFAULT_FONT_WEIGHTS.medium,
|
|
223
|
-
dropdownGroupHeader: DEFAULT_FONT_WEIGHTS.medium,
|
|
224
|
-
inputAmount: DEFAULT_FONT_WEIGHTS.medium,
|
|
225
|
-
inputLabel: DEFAULT_FONT_WEIGHTS.medium,
|
|
226
|
-
inputValue: DEFAULT_FONT_WEIGHTS.medium,
|
|
227
|
-
modalTopbarTitle: DEFAULT_FONT_WEIGHTS.medium,
|
|
228
|
-
modalBottomBarButtonText: DEFAULT_FONT_WEIGHTS.medium,
|
|
229
|
-
paymentMethodItemSubtitle: DEFAULT_FONT_WEIGHTS.regular,
|
|
230
|
-
paymentMethodItemTitle: DEFAULT_FONT_WEIGHTS.medium,
|
|
231
|
-
selectAssetItemSubtitle: DEFAULT_FONT_WEIGHTS.regular,
|
|
232
|
-
selectAssetItemTitle: DEFAULT_FONT_WEIGHTS.medium,
|
|
233
|
-
sourceListSectionLabelFontWeight: DEFAULT_FONT_WEIGHTS.medium,
|
|
234
|
-
txBreakdown: DEFAULT_FONT_WEIGHTS.regular,
|
|
235
|
-
txStatusDescription: DEFAULT_FONT_WEIGHTS.regular,
|
|
236
|
-
txStatusTitle: DEFAULT_FONT_WEIGHTS.medium,
|
|
237
|
-
txSummaryLabel: DEFAULT_FONT_WEIGHTS.medium,
|
|
238
|
-
txSummaryValue: DEFAULT_FONT_WEIGHTS.medium,
|
|
239
|
-
formOfPaymentsListSectionLabelFontWeight: DEFAULT_FONT_WEIGHTS.medium,
|
|
240
|
-
withdrawalYouWillReceiveLabel: DEFAULT_FONT_WEIGHTS.regular,
|
|
241
|
-
withdrawalYouWillReceiveValueCrypto: DEFAULT_FONT_WEIGHTS.medium,
|
|
242
|
-
withdrawalYouWillReceiveValueUsd: DEFAULT_FONT_WEIGHTS.regular,
|
|
243
|
-
...customFontWeights
|
|
244
|
-
},
|
|
245
|
-
fontSize: {
|
|
246
|
-
...FONT_SIZINGS[fontSizing],
|
|
247
|
-
body: FONT_SIZINGS[fontSizing][14],
|
|
248
|
-
cryptoCashToggle: FONT_SIZINGS[fontSizing][12],
|
|
249
|
-
"header-14": { fontSize: "14px", lineHeight: "14px" },
|
|
250
|
-
"header-36": { fontSize: "36px", lineHeight: "36px" },
|
|
251
|
-
buttonTextPrimary: FONT_SIZINGS[fontSizing][12],
|
|
252
|
-
buttonTextSecondary: FONT_SIZINGS[fontSizing][10],
|
|
253
|
-
buttonTextTertiary: FONT_SIZINGS[fontSizing][12],
|
|
254
|
-
dollarValue: FONT_SIZINGS[fontSizing][40],
|
|
255
|
-
dropdownGroupHeader: FONT_SIZINGS[fontSizing][12],
|
|
256
|
-
inputAmount: FONT_SIZINGS[fontSizing][57],
|
|
257
|
-
inputLabel: customFontSizings[12] ?? FONT_SIZINGS[fontSizing][12],
|
|
258
|
-
inputValue: customFontSizings[13] ?? FONT_SIZINGS[fontSizing][13],
|
|
259
|
-
modalTopbarSubtitle: FONT_SIZINGS[fontSizing][10],
|
|
260
|
-
modalTopbarTitle: FONT_SIZINGS[fontSizing][13],
|
|
261
|
-
modalBottomBarButtonText: FONT_SIZINGS[fontSizing][12],
|
|
262
|
-
paymentMethodItemSubtitle: FONT_SIZINGS[fontSizing][12],
|
|
263
|
-
paymentMethodItemTitle: FONT_SIZINGS[fontSizing][12],
|
|
264
|
-
selectAssetItemSubtitle: FONT_SIZINGS[fontSizing][10],
|
|
265
|
-
selectAssetItemTitle: FONT_SIZINGS[fontSizing][13],
|
|
266
|
-
txBreakdown: FONT_SIZINGS[fontSizing][12],
|
|
267
|
-
txStatusDescription: FONT_SIZINGS[fontSizing][13],
|
|
268
|
-
txStatusTitle: FONT_SIZINGS[fontSizing][13],
|
|
269
|
-
txSummaryLabel: FONT_SIZINGS[fontSizing][12],
|
|
270
|
-
txSummaryValue: FONT_SIZINGS[fontSizing][12],
|
|
271
|
-
withdrawalYouWillReceive: customFontSizings[12] ?? FONT_SIZINGS[fontSizing][12],
|
|
272
|
-
youPayYouReceivePrimaryFontSize: FONT_SIZINGS[fontSizing][12],
|
|
273
|
-
youPayYouReceiveSecondaryFontSize: FONT_SIZINGS[fontSizing][10],
|
|
274
|
-
depositAddressFontSize: FONT_SIZINGS[fontSizing][10],
|
|
275
|
-
funFeatureListItemFontSize: FONT_SIZINGS[fontSizing][12],
|
|
276
|
-
dropdownItemFontSize: FONT_SIZINGS[fontSizing][12],
|
|
277
|
-
sourceListSectionLabelFontSize: FONT_SIZINGS[fontSizing][12],
|
|
278
|
-
formOfPaymentsListSectionLabelFontSize: FONT_SIZINGS[fontSizing][12],
|
|
279
|
-
quickOptionFontSize: FONT_SIZINGS[fontSizing][14],
|
|
280
|
-
useConnectedFontSize: FONT_SIZINGS[fontSizing][12],
|
|
281
|
-
...customFontSizings
|
|
282
|
-
},
|
|
283
|
-
radii: {
|
|
284
|
-
actionButton: radiusScales[borderRadius].actionButton,
|
|
285
|
-
actionButtonInner: radiusScales[borderRadius].actionButtonInner,
|
|
286
|
-
connectButton: radiusScales[borderRadius].connectButton,
|
|
287
|
-
menuButton: radiusScales[borderRadius].connectButton,
|
|
288
|
-
modal: radiusScales[borderRadius].modal,
|
|
289
|
-
modalMobile: radiusScales[borderRadius].modalMobile,
|
|
290
|
-
modalActionButton: radiusScales[borderRadius].modalActionButton,
|
|
291
|
-
modalActionButtonMobile: radiusScales[borderRadius].modalActionButtonMobile,
|
|
292
|
-
summaryBox: radiusScales[borderRadius].summaryBox,
|
|
293
|
-
youPayYouReceive: radiusScales[borderRadius].youPayYouReceive,
|
|
294
|
-
inputAmountSwitcher: radiusScales[borderRadius].inputAmountSwitcher,
|
|
295
|
-
qrCode: radiusScales[borderRadius].qrCode,
|
|
296
|
-
skeleton: radiusScales[borderRadius].skeleton,
|
|
297
|
-
tooltip: radiusScales[borderRadius].tooltip,
|
|
298
|
-
dropdown: radiusScales[borderRadius].dropdown,
|
|
299
|
-
dropdownItem: radiusScales[borderRadius].dropdownItem,
|
|
300
|
-
dropdownList: customBorderRadiuses?.dropdownList ?? customBorderRadiuses?.dropdown ?? radiusScales[borderRadius].dropdown,
|
|
301
|
-
modalTopbarIcon: radiusScales[borderRadius].modalTopbarIcon,
|
|
302
|
-
withdrawalInput: radiusScales[borderRadius].withdrawalInput,
|
|
303
|
-
useConnected: radiusScales[borderRadius].useConnected,
|
|
304
|
-
...customBorderRadiuses
|
|
305
|
-
},
|
|
306
|
-
borderWidths: {
|
|
307
|
-
activeOptionBorderWidth: "1px",
|
|
308
|
-
buttonTertiaryBorderWidth: "0px",
|
|
309
|
-
cryptoCashToggleContainerBorderWidth: "0px",
|
|
310
|
-
txSummaryBoxBorderWidth: "1px",
|
|
311
|
-
...customBorderWidths
|
|
312
|
-
},
|
|
313
|
-
spacing: {
|
|
314
|
-
confirmationStepMarginTop: "6px",
|
|
315
|
-
confirmationStepVerticalGap: "18px",
|
|
316
|
-
cryptoCashToggleContainerPadding: "3px",
|
|
317
|
-
cryptoCashToggleMarginBottom: "16px",
|
|
318
|
-
cryptoCashToggleMarginTop: "24px",
|
|
319
|
-
cryptoCashToggleTabPaddingY: "6px",
|
|
320
|
-
dropdownItemIconGap: "4px",
|
|
321
|
-
dropdownItemPaddingX: "4px",
|
|
322
|
-
dropdownItemPaddingY: "6px",
|
|
323
|
-
dropdownCompactPaddingX: "6px",
|
|
324
|
-
dropdownCompactPaddingY: "6px",
|
|
325
|
-
dropdownPaddingX: "12px",
|
|
326
|
-
dropdownPaddingY: "12px",
|
|
327
|
-
modalBaseHorizontalPadding: "6px",
|
|
328
|
-
modalBottomBarButtonPaddingY: "0px",
|
|
329
|
-
modalBottomHorizontalPadding: "12px",
|
|
330
|
-
modalPaddingBottomUpper: "16px",
|
|
331
|
-
modalPaddingBottomLower: "16px",
|
|
332
|
-
modalTopBarVerticalTextSpacing: "0px",
|
|
333
|
-
selectAssetItemPaddingX: "12px",
|
|
334
|
-
selectAssetItemPaddingY: "8px",
|
|
335
|
-
selectAssetItemTextGap: "0px",
|
|
336
|
-
selectBrokerageItemPaddingX: "12px",
|
|
337
|
-
selectBrokerageItemPaddingY: "11px",
|
|
338
|
-
selectBrokerageListGap: "0px",
|
|
339
|
-
txBreakdownMarginY: "18px",
|
|
340
|
-
txBreakdownPaddingX: "12px",
|
|
341
|
-
txSummaryBoxPaddingX: "12px",
|
|
342
|
-
txSummaryBoxPaddingY: "12px",
|
|
343
|
-
txSummaryLineItemPadding: "0px",
|
|
344
|
-
txSummaryDividerMarginX: "12px",
|
|
345
|
-
txSummaryDividerMarginY: "12px",
|
|
346
|
-
verticalSectionGap: "18px",
|
|
347
|
-
withdrawalModalPaddingTop: "12px",
|
|
348
|
-
youPayYouReceivePaddingLeft: "12px",
|
|
349
|
-
youPayYouReceivePaddingRight: "16px",
|
|
350
|
-
youPayYouReceivePaddingY: "8px",
|
|
351
|
-
inputPaddingX: "12px",
|
|
352
|
-
inputPaddingY: "12px",
|
|
353
|
-
dropdownActiveItemRegularSizePaddingY: "8px",
|
|
354
|
-
assetListDefaultGap: "4px",
|
|
355
|
-
dropdownGroupDividerMarginY: "8px",
|
|
356
|
-
...customSpacings
|
|
357
|
-
},
|
|
358
|
-
textTransforms: {
|
|
359
|
-
inputAmountQuickOptionButton: "none",
|
|
360
|
-
txStatusTitle: "none",
|
|
361
|
-
...customTextTransforms
|
|
362
|
-
}
|
|
363
|
-
});
|
|
364
|
-
|
|
365
|
-
export {
|
|
366
|
-
systemFontStack,
|
|
367
|
-
baseTheme
|
|
368
|
-
};
|
package/dist/chunk-B2B6HDIE.js
DELETED
|
@@ -1,238 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
baseTheme
|
|
4
|
-
} from "./chunk-64NZSUGQ.js";
|
|
5
|
-
|
|
6
|
-
// src/themes/lightTheme.ts
|
|
7
|
-
var accentColors = {
|
|
8
|
-
blue: { accentColor: "#31A3F8", accentColorForeground: "#31A3F859" },
|
|
9
|
-
green: { accentColor: "#66CC00", accentColorForeground: "#FFF" },
|
|
10
|
-
orange: { accentColor: "#F6851B", accentColorForeground: "#FFF" },
|
|
11
|
-
pink: { accentColor: "#FF5CA0", accentColorForeground: "#FFF" },
|
|
12
|
-
purple: { accentColor: "#5F5AFA", accentColorForeground: "#FFF" },
|
|
13
|
-
red: { accentColor: "#F34126", accentColorForeground: "#FFF" },
|
|
14
|
-
white: { accentColor: "#000000", accentColorForeground: "#FFF" }
|
|
15
|
-
};
|
|
16
|
-
var defaultAccentColor = accentColors.white;
|
|
17
|
-
var lightTheme = ({
|
|
18
|
-
accentColor = defaultAccentColor.accentColor,
|
|
19
|
-
accentColorForeground = defaultAccentColor.accentColorForeground,
|
|
20
|
-
customColors,
|
|
21
|
-
customShadows,
|
|
22
|
-
...baseThemeOptions
|
|
23
|
-
// biome-ignore lint/complexity/noExcessiveCognitiveComplexity: just a bunch of ?? defaults
|
|
24
|
-
} = {}) => ({
|
|
25
|
-
...baseTheme(baseThemeOptions),
|
|
26
|
-
colors: {
|
|
27
|
-
accentColor,
|
|
28
|
-
accentColorForeground,
|
|
29
|
-
actionButtonBorder: "rgba(0, 0, 0, 0.04)",
|
|
30
|
-
connectButtonBackground: "#FFF",
|
|
31
|
-
connectButtonBackgroundError: "#C60000",
|
|
32
|
-
connectButtonText: "#25292E",
|
|
33
|
-
connectButtonTextError: "#FFF",
|
|
34
|
-
connectionIndicator: "#30E000",
|
|
35
|
-
error: accentColors.red.accentColor,
|
|
36
|
-
errorBackground: "#F2E6E4",
|
|
37
|
-
errorBorder: "rgba(243, 65, 38, 0.2)",
|
|
38
|
-
generalBorder: "#F7F7F7",
|
|
39
|
-
// strokeColor in figma
|
|
40
|
-
generalBorderDim: "rgba(0, 0, 0, 0.03)",
|
|
41
|
-
menuItemBackground: "#FCFCFC",
|
|
42
|
-
selectedOptionBorder: "#F7F7F7",
|
|
43
|
-
focusedOptionBorder: "#737373",
|
|
44
|
-
standby: "#F6851B",
|
|
45
|
-
success: "#66CC00",
|
|
46
|
-
delayedStatusIcon: customColors?.secondaryText ?? "#737373",
|
|
47
|
-
// backward compatibility
|
|
48
|
-
chainIconBorder: "#fff",
|
|
49
|
-
// FUNKIT COLORS
|
|
50
|
-
// modal backgrounds
|
|
51
|
-
modalBackdrop: "rgba(0, 0, 0, 0.2)",
|
|
52
|
-
modalTopbarIcon: "#000",
|
|
53
|
-
modalTopbarIconBackground: customColors?.modalTopbarIconBackground ?? "transparent",
|
|
54
|
-
modalTopbarIconBackgroundHover: customColors?.modalTopbarIconBackgroundHover ?? customColors?.buttonIconBackgroundHover ?? "#F7F7F7",
|
|
55
|
-
modalTopbarIconBackgroundPressed: customColors?.modalTopbarIconBackgroundPressed ?? customColors?.buttonIconBackgroundPressed ?? "#F0F0F0",
|
|
56
|
-
modalTopbarIconStroke: customColors?.modalTopbarIconStroke ?? customColors?.buttonIconStroke ?? "rgba(0, 0, 0, 0.35)",
|
|
57
|
-
modalBackground: "#FFF",
|
|
58
|
-
modalBorder: "#F7F7F7",
|
|
59
|
-
offBackground: "#F7F7F7",
|
|
60
|
-
offBackgroundInverse: "#333333",
|
|
61
|
-
hoverState: "#F0F0F0",
|
|
62
|
-
lightStroke: "#F7F7F7",
|
|
63
|
-
mediumStroke: "#F0F0F0",
|
|
64
|
-
heavyStroke: "#E5E5E5",
|
|
65
|
-
strokeColor: "#E8E8E8",
|
|
66
|
-
//Text
|
|
67
|
-
primaryText: "#000",
|
|
68
|
-
secondaryText: "#737373",
|
|
69
|
-
tertiaryText: "rgba(0, 0, 0, 0.35)",
|
|
70
|
-
textSelection: "rgba(0, 0, 0, 0.10)",
|
|
71
|
-
selectedDropdownItemText: customColors?.primaryText ?? "#000",
|
|
72
|
-
copyButtonBackgroundBase: customColors?.offBackground ?? "#F7F7F7",
|
|
73
|
-
copyButtonBackgroundHover: customColors?.hoverState ?? "#F0F0F0",
|
|
74
|
-
copyButtonBackgroundActive: customColors?.inputBorderHover ?? "#E5E5E5",
|
|
75
|
-
copyButtonBorderBase: customColors?.mediumStroke ?? "#F0F0F0",
|
|
76
|
-
copyButtonBorderHover: customColors?.mediumStroke ?? "#F0F0F0",
|
|
77
|
-
funFeatureListBackgroundBase: customColors?.offBackground ?? "#F7F7F7",
|
|
78
|
-
funFeatureListBackgroundHover: customColors?.hoverState ?? "#F0F0F0",
|
|
79
|
-
funFeatureListBorderColor: "transparent",
|
|
80
|
-
funFeatureListBorderColorHover: "transparent",
|
|
81
|
-
selectedDropdownItemBackground: "transparent",
|
|
82
|
-
alwaysVisibleLabelBackgroundHover: "transparent",
|
|
83
|
-
// input
|
|
84
|
-
inputLabel: customColors?.primaryText ?? "#000",
|
|
85
|
-
inputBackground: "#FFFFFF",
|
|
86
|
-
inputBackgroundHover: customColors?.offBackground ?? "#F7F7F7",
|
|
87
|
-
inputBorderBase: "#F0F0F0",
|
|
88
|
-
inputBorderHover: "#E5E5E5",
|
|
89
|
-
// tab
|
|
90
|
-
activeTabBorderColor: "#F7F7F7",
|
|
91
|
-
activeTabBackground: "#F7F7F7",
|
|
92
|
-
// button
|
|
93
|
-
actionColor: "#000",
|
|
94
|
-
actionColorHover: "rgba(0, 0, 0, 0.7)",
|
|
95
|
-
actionColorDisabled: "rgba(0, 0, 0, 0.50)",
|
|
96
|
-
buttonPrimary: accentColor,
|
|
97
|
-
buttonDisabled: "#31A3F826",
|
|
98
|
-
buttonWarning: accentColors.red.accentColor,
|
|
99
|
-
buttonSuccess: "#2EA200",
|
|
100
|
-
buttonTextPrimary: "#FFFFFF",
|
|
101
|
-
buttonTextHover: "#FFF",
|
|
102
|
-
buttonTextDisabled: "#FFF",
|
|
103
|
-
transparent: "transparent",
|
|
104
|
-
buttonBackgroundTertiary: "#F7F7F7",
|
|
105
|
-
buttonBackgroundHoverTertiary: "#F0F0F0",
|
|
106
|
-
buttonBackgroundDisabledTertiary: "transparent",
|
|
107
|
-
buttonTextTertiary: "#000",
|
|
108
|
-
buttonTextDisabledTertiary: "rgba(0, 0, 0, 0.5)",
|
|
109
|
-
buttonBackground: "#000",
|
|
110
|
-
buttonBackgroundHover: "#333333",
|
|
111
|
-
buttonBackgroundPressed: "#000",
|
|
112
|
-
buttonBackgroundDisabled: "rgba(0, 0, 0, 0.5)",
|
|
113
|
-
buttonTextSecondaryDisabled: "rgba(0, 0, 0, 0.5)",
|
|
114
|
-
buttonTextSecondary: "#000000",
|
|
115
|
-
buttonIconBackgroundHover: "#F7F7F7",
|
|
116
|
-
buttonIconBackgroundPressed: "#F0F0F0",
|
|
117
|
-
buttonIconStroke: "rgba(0, 0, 0, 0.35)",
|
|
118
|
-
buttonBorderTertiary: "transparent",
|
|
119
|
-
buttonBorderFocusedTertiary: "rgba(0, 0, 0, 0.35)",
|
|
120
|
-
buttonFocusedOutline: "none",
|
|
121
|
-
buttonBorderGradient: "none",
|
|
122
|
-
buttonHoverBorderGradient: "none",
|
|
123
|
-
buttonDisabledBorderGradient: "none",
|
|
124
|
-
// TODO: Make common colors when refactoring the design system
|
|
125
|
-
inputAmountQuickOptionBaseBackground: "#F7F7F7",
|
|
126
|
-
inputAmountQuickOptionHoverBackground: "#F0F0F0",
|
|
127
|
-
inputAmountQuickOptionActiveBackground: "#F0F0F0",
|
|
128
|
-
inputAmountQuickOptionDisabledBackground: "#F7F7F7",
|
|
129
|
-
inputAmountQuickOptionBaseBorder: "#F7F7F7",
|
|
130
|
-
inputAmountQuickOptionHoverBorder: "rgba(0, 0, 0, 0.35)",
|
|
131
|
-
inputAmountQuickOptionActiveBorder: "rgba(0, 0, 0, 0.35)",
|
|
132
|
-
inputAmountQuickOptionFocusedBorder: "rgba(0, 0, 0, 0.35)",
|
|
133
|
-
inputAmountFiatDecimalsColor: customColors?.inputAmountFiatDecimalsColor ?? "none",
|
|
134
|
-
youPayYouReceiveBackground: "#FFF",
|
|
135
|
-
// modalBackground
|
|
136
|
-
youPayYouReceiveBorder: "#F0F0F0",
|
|
137
|
-
// mediumStroke
|
|
138
|
-
youPayYouReceivePrimaryText: "#000",
|
|
139
|
-
// primaryText
|
|
140
|
-
youPayYouReceiveSecondaryText: "#737373",
|
|
141
|
-
// secondaryText
|
|
142
|
-
withdrawalYouWillReceiveLabel: customColors?.withdrawalYouWillReceiveLabel ?? customColors?.primaryText ?? "#000",
|
|
143
|
-
withdrawalYouWillReceiveValueCrypto: customColors?.withdrawalYouWillReceiveValueCrypto ?? customColors?.primaryText ?? "#000",
|
|
144
|
-
withdrawalYouWillReceiveValueUsd: customColors?.withdrawalYouWillReceiveValueUsd ?? customColors?.secondaryText ?? "#737373",
|
|
145
|
-
// badges
|
|
146
|
-
badgeBackgroundSuccess: "rgba(124, 242, 136, 0.1)",
|
|
147
|
-
badgeBorderSuccess: "rgba(124, 242, 136, 0.2)",
|
|
148
|
-
badgeTextSuccess: "rgb(124, 242, 136)",
|
|
149
|
-
newBadgeBackground: "linear-gradient(180deg, #ECFFEA 0%, #E4FFE9 100%)",
|
|
150
|
-
newBadgeBorder: "rgba(122, 221, 122, 0.5)",
|
|
151
|
-
newBadgeText: "#028320",
|
|
152
|
-
approvedBadgeBackground: "linear-gradient(180deg, #ECFFEA 0%, #E4FFE9 100%)",
|
|
153
|
-
approvedBadgeBorder: "rgba(109, 216, 109, 0.5)",
|
|
154
|
-
approvedBadgeText: "#028320",
|
|
155
|
-
failedBadgeBackground: "rgba(255, 61, 61, 0.08)",
|
|
156
|
-
failedBadgeBorder: "rgba(0, 0, 0, 0.03)",
|
|
157
|
-
failedBadgeText: "#C2341E",
|
|
158
|
-
announceGradientFrom: "#595959",
|
|
159
|
-
announceGradientTo: "#9C9C9C",
|
|
160
|
-
fiatPendingGradientFrom: "#454545",
|
|
161
|
-
fiatPendingGradientTo: "#747474",
|
|
162
|
-
fiatSuccessBackgroundFill: "rgba(102, 204, 0, 0.16)",
|
|
163
|
-
fiatFailedBackgroundFill: "rgba(255, 61, 61, 0.12)",
|
|
164
|
-
fiatStatusIconBorder: "rgba(0, 0, 0, 0.03)",
|
|
165
|
-
fiatAccountIconFill: "#E7F3FE",
|
|
166
|
-
fiatAccountGradientFrom: "#055DF5",
|
|
167
|
-
fiatAccountGradientTo: "#4C8DFD",
|
|
168
|
-
modalHeaderDivider: "#F7F7F7",
|
|
169
|
-
// lightStroke
|
|
170
|
-
modalFooterDivider: "#F7F7F7",
|
|
171
|
-
// lightStroke
|
|
172
|
-
spinnerBackground: customColors?.mediumStroke ?? "rgba(255, 255, 255, 0.3)",
|
|
173
|
-
// 30% buttonTextPrimary
|
|
174
|
-
spinnerIndicator: customColors?.primaryText ?? "#FFF",
|
|
175
|
-
// 100% buttonTextPrimary
|
|
176
|
-
spinnerBackgroundVerifyAccount: "rgba(255, 255, 255, 0.3)",
|
|
177
|
-
// 30% buttonTextPrimary
|
|
178
|
-
spinnerIndicatorVerifyAccount: customColors?.primaryText ?? "#FFF",
|
|
179
|
-
// 100% buttonTextPrimary
|
|
180
|
-
// Override colors
|
|
181
|
-
...customColors || {},
|
|
182
|
-
// option Boxes
|
|
183
|
-
optionBoxBackground: customColors?.optionBoxBackground ?? customColors?.modalBackground ?? "#FFF",
|
|
184
|
-
// keeps gradient in SourcePaymentMethodItem if optionBoxBackground differs from modal background
|
|
185
|
-
optionBoxBackgroundUninteractive: customColors?.optionBoxBackgroundUninteractive ?? "transparent",
|
|
186
|
-
optionBoxBorderBase: customColors?.optionBoxBorderBase ?? customColors?.mediumStroke ?? "#F0F0F0",
|
|
187
|
-
optionBoxBorderHover: customColors?.optionBoxBorderHover ?? customColors?.mediumStroke ?? "#F0F0F0",
|
|
188
|
-
optionBoxDefaultModeNotActiveBorderBase: customColors?.optionBoxDefaultModeNotActiveBorderBase ?? "transparent",
|
|
189
|
-
optionBoxDefaultModeNotActiveBorderHover: customColors?.optionBoxDefaultModeNotActiveBorderHover ?? "transparent",
|
|
190
|
-
dropdownActiveItemBackgroundBase: customColors?.dropdownActiveItemBackgroundBase ?? customColors?.modalBackground ?? "#FFF",
|
|
191
|
-
openDropdownBackgroundColor: customColors?.openDropdownBackgroundColor ?? customColors?.optionBoxBackground ?? customColors?.modalBackground ?? "#FFF",
|
|
192
|
-
dropdownActiveItemBackgroundHover: customColors?.dropdownActiveItemBackgroundHover ?? customColors?.offBackground ?? "#F7F7F7",
|
|
193
|
-
dropdownActiveItemBackgroundDisabled: customColors?.dropdownActiveItemBackgroundDisabled ?? "transparent",
|
|
194
|
-
dropdownActiveItemBorderBase: customColors?.dropdownActiveItemBorderBase ?? customColors?.mediumStroke ?? "#F0F0F0",
|
|
195
|
-
dropdownActiveItemBorderHover: customColors?.dropdownActiveItemBorderHover ?? customColors?.mediumStroke ?? "#F0F0F0",
|
|
196
|
-
dropdownGroupHeader: customColors?.dropdownGroupHeader ?? customColors?.primaryText ?? "#000",
|
|
197
|
-
// primaryText
|
|
198
|
-
txSummaryBoxBackground: customColors?.txSummaryBoxBackground ?? customColors?.modalBackground ?? "#FFF",
|
|
199
|
-
txSummaryBoxBorder: customColors?.txSummaryBoxBorder ?? customColors?.lightStroke ?? "#F7F7F7",
|
|
200
|
-
counterRingColor: customColors?.counterRingColor ?? accentColor,
|
|
201
|
-
cryptoCashToggleContainerBorderColor: customColors?.cryptoCashToggleContainerBorderColor ?? "transparent",
|
|
202
|
-
cryptoCashToggleBackground: customColors?.cryptoCashToggleBackground ?? "transparent"
|
|
203
|
-
},
|
|
204
|
-
shadows: {
|
|
205
|
-
connectButton: "0px 4px 12px rgba(0, 0, 0, 0.1)",
|
|
206
|
-
dialog: "0px 8px 32px rgba(0, 0, 0, 0.32)",
|
|
207
|
-
selectedOption: "0px 2px 6px rgba(0, 0, 0, 0.24)",
|
|
208
|
-
selectedWallet: "0px 2px 6px rgba(0, 0, 0, 0.12)",
|
|
209
|
-
dropdown: "0px 0px 0px 1px rgba(0, 0, 0, 0.05), 0px 2px 6px 0px rgba(0, 0, 0, 0.03), 0px 4px 42px 0px rgba(0, 0, 0, 0.06)",
|
|
210
|
-
notification: "0px 0px 0px 1px rgba(0, 0, 0, 0.06), 0px 2px 6px 0px rgba(0, 0, 0, 0.05), 0px 4px 42px 0px rgba(0, 0, 0, 0.06)",
|
|
211
|
-
qrCode: "0px 0px 0px 1px rgba(0, 0, 0, 0.10), 0px 1px 4px 0px rgba(0, 0, 0, 0.04), 0px 4px 24px 0px rgba(8, 7, 7, 0.10)",
|
|
212
|
-
buttonShadow: "none",
|
|
213
|
-
buttonShadowTertiary: customShadows?.buttonShadow ?? "none",
|
|
214
|
-
buttonFocusedShadow: "0px 0px 0px 2px rgba(0, 0, 0, 0.25)",
|
|
215
|
-
buttonFocusedShadowTertiary: "0px 0px 0px 2px rgba(0, 0, 0, 0.25)",
|
|
216
|
-
buttonHoverShadow: "none",
|
|
217
|
-
buttonHoverShadowTertiary: "none",
|
|
218
|
-
buttonDisabledShadow: "none",
|
|
219
|
-
buttonDisabledShadowTertiary: customShadows?.buttonDisabledShadow ?? "none",
|
|
220
|
-
buttonInnerShadow: "none",
|
|
221
|
-
buttonInnerShadowTertiary: customShadows?.buttonInnerShadow ?? "none",
|
|
222
|
-
buttonFocusedInnerShadow: "none",
|
|
223
|
-
buttonFocusedInnerShadowTertiary: customShadows?.buttonFocusedInnerShadow ?? "none",
|
|
224
|
-
buttonHoverInnerShadow: "none",
|
|
225
|
-
buttonHoverInnerShadowTertiary: customShadows?.buttonHoverInnerShadow ?? "none",
|
|
226
|
-
buttonDisabledInnerShadow: "none",
|
|
227
|
-
buttonDisabledInnerShadowTertiary: customShadows?.buttonDisabledInnerShadow ?? "none",
|
|
228
|
-
selectedDropdownItem: "none",
|
|
229
|
-
// Override shadows
|
|
230
|
-
...customShadows || {}
|
|
231
|
-
},
|
|
232
|
-
moonpayTheme: "light"
|
|
233
|
-
});
|
|
234
|
-
lightTheme.accentColors = accentColors;
|
|
235
|
-
|
|
236
|
-
export {
|
|
237
|
-
lightTheme
|
|
238
|
-
};
|