@funkit/connect 9.7.1 → 9.7.2-next.1
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 +16 -0
- package/dist/__generated__/default_feature_gates.d.ts +1 -0
- package/dist/chunk-64NZSUGQ.js +368 -0
- package/dist/chunk-B2B6HDIE.js +238 -0
- package/dist/chunk-OQNN7EMQ.js +238 -0
- package/dist/chunk-S65TG73G.js +247 -0
- package/dist/chunk-VLAOBEJN.js +247 -0
- package/dist/clients/chunk-3LSYVQXK.js +289 -0
- package/dist/clients/chunk-SBQ2UUPK.js +214 -0
- package/dist/clients/chunk-V526Q43Z.js +271 -0
- package/dist/clients/fanatics.css +1 -1
- package/dist/clients/lighter.css +14393 -0
- package/dist/clients/lighter.d.ts +138 -0
- package/dist/clients/lighter.js +563 -0
- package/dist/components/Dropdown/TokenAndChainDropdown.css.d.ts +1 -0
- package/dist/hooks/queries/useRecentDeposits.d.ts +2 -0
- package/dist/hooks/track/CheckoutTrackingContext.d.ts +60 -0
- package/dist/hooks/useTokenChain.d.ts +21 -0
- package/dist/index.css +10 -10
- package/dist/index.js +16 -8
- package/dist/modals/CheckoutModal/SwappedIframe/SwappedIframeContainer.d.ts +17 -0
- package/dist/modals/CheckoutModal/TransferToken/CheckoutNotifications.d.ts +6 -0
- package/dist/modals/WithdrawalModal/LighterWithdrawal.d.ts +76 -0
- package/dist/modals/WithdrawalModal/WithdrawAmountInput.d.ts +27 -0
- package/dist/modals/WithdrawalModal/WithdrawalTypeSelect.d.ts +16 -0
- package/dist/modals/WithdrwalModal/WithdrawalCallbackSuccess.d.ts +10 -0
- package/dist/modals/WithdrwalModal/WithdrawalContent.d.ts +11 -0
- package/dist/modals/WithdrwalModal/WithdrawalModal.d.ts +9 -0
- package/dist/modals/WithdrwalModal/WithdrawalSuccess.d.ts +15 -0
- package/dist/modals/WithdrwalModal/types.d.ts +5 -0
- package/dist/modals/WithdrwalModal/useWithdrawal.d.ts +24 -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/chunk-34HACM5U.js +110 -0
- package/dist/wallets/walletConnectors/chunk-4C7ER452.js +93 -0
- package/dist/wallets/walletConnectors/chunk-53VYSPXK.js +66 -0
- package/dist/wallets/walletConnectors/chunk-5TN5Z2WY.js +87 -0
- package/dist/wallets/walletConnectors/chunk-6DRCY52E.js +69 -0
- package/dist/wallets/walletConnectors/chunk-6UCI7GM6.js +98 -0
- package/dist/wallets/walletConnectors/chunk-6YO27XOM.js +96 -0
- package/dist/wallets/walletConnectors/chunk-7OARWILZ.js +92 -0
- package/dist/wallets/walletConnectors/chunk-7V33VJAL.js +218 -0
- package/dist/wallets/walletConnectors/chunk-APHCF4DT.js +103 -0
- package/dist/wallets/walletConnectors/chunk-CJJT7LMT.js +96 -0
- package/dist/wallets/walletConnectors/chunk-DEFRRPXB.js +98 -0
- package/dist/wallets/walletConnectors/chunk-EKJHJFRN.js +69 -0
- package/dist/wallets/walletConnectors/chunk-FG2LDVXL.js +92 -0
- package/dist/wallets/walletConnectors/chunk-GH4M6FTK.js +95 -0
- package/dist/wallets/walletConnectors/chunk-GSHSWVEG.js +70 -0
- package/dist/wallets/walletConnectors/chunk-GVOQTORD.js +87 -0
- package/dist/wallets/walletConnectors/chunk-HETS3KKI.js +218 -0
- package/dist/wallets/walletConnectors/chunk-HOPH3TQ3.js +99 -0
- package/dist/wallets/walletConnectors/chunk-HRDPUW3V.js +94 -0
- package/dist/wallets/walletConnectors/chunk-HXWUH73P.js +93 -0
- package/dist/wallets/walletConnectors/chunk-IICWJWGZ.js +110 -0
- package/dist/wallets/walletConnectors/chunk-KO56HCTI.js +106 -0
- package/dist/wallets/walletConnectors/chunk-KWX2SYU2.js +100 -0
- package/dist/wallets/walletConnectors/chunk-LCIPVVH5.js +70 -0
- package/dist/wallets/walletConnectors/chunk-LI6QY2B5.js +94 -0
- package/dist/wallets/walletConnectors/chunk-PKMAPNN6.js +92 -0
- package/dist/wallets/walletConnectors/chunk-T4ROGPMF.js +106 -0
- package/dist/wallets/walletConnectors/chunk-TTHM3WUR.js +100 -0
- package/dist/wallets/walletConnectors/chunk-UDTBQV4Q.js +96 -0
- package/dist/wallets/walletConnectors/chunk-V6UOWTEZ.js +95 -0
- package/dist/wallets/walletConnectors/chunk-VJZWNQOF.js +92 -0
- package/dist/wallets/walletConnectors/chunk-XBLHZICW.js +103 -0
- package/dist/wallets/walletConnectors/chunk-XVBSJCW5.js +96 -0
- package/dist/wallets/walletConnectors/chunk-YIEASHLS.js +99 -0
- package/dist/wallets/walletConnectors/chunk-ZPSPK6LH.js +66 -0
- 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 +47 -47
- 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 +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @funkit/connect
|
|
2
2
|
|
|
3
|
+
## 9.7.2-next.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- b6c10c3: feat(connect): gate swap-impact removal in You Receive for Polymarket; add pUSD stablecoin
|
|
8
|
+
- Updated dependencies [b6c10c3]
|
|
9
|
+
- @funkit/utils@2.0.1-next.0
|
|
10
|
+
- @funkit/api-base@4.1.2-next.0
|
|
11
|
+
|
|
12
|
+
## 9.7.2-next.0
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- 98ca4e9: Fix withdrawals appearing as "Deposit completed" notifications on the Transfer Crypto screen.
|
|
17
|
+
- ae9a9db: fix(connect): suppress duplicate notification when a prior multi-step DE's root is evicted from polling list
|
|
18
|
+
|
|
3
19
|
## 9.7.1
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -9,5 +9,6 @@ declare const _default: {
|
|
|
9
9
|
readonly 'saved-card-defaults-to-fiat-tab': false;
|
|
10
10
|
readonly 'test-testing-gate': false;
|
|
11
11
|
readonly 'wallet-flow-enable-exact-input-with-actions': false;
|
|
12
|
+
readonly 'you-receive-remove-swap-impact': false;
|
|
12
13
|
};
|
|
13
14
|
export default _default;
|
|
@@ -0,0 +1,368 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,238 @@
|
|
|
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
|
+
};
|