@funkit/connect 9.21.1-next.0 → 9.23.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 +26 -18
- package/dist/clients/aave.d.ts +2 -0
- package/dist/clients/aave.js +3 -0
- package/dist/clients/{chunk-7HNGV6JU.js → chunk-KSSSSWR6.js} +1 -1
- package/dist/clients/{chunk-4HCOSF4M.js → chunk-NCCAYPLO.js} +1 -1
- package/dist/clients/{chunk-NCUPPJ2Z.js → chunk-OWXKWC7I.js} +8 -8
- package/dist/clients/{chunk-NUJ6ZM5F.js → chunk-ZMVXBMON.js} +1 -1
- package/dist/clients/fanatics.css +1 -1
- package/dist/clients/fanatics.js +3 -3
- package/dist/clients/lighter.css +1 -1
- package/dist/clients/lighter.js +3 -3
- package/dist/clients/polymarket/PolymarketDepositAccountDropdown.css +11 -11
- package/dist/clients/polymarket/PolymarketDepositAccountDropdown.js +5 -5
- package/dist/clients/polymarket/index.css +11 -11
- package/dist/clients/polymarket/index.js +5 -5
- package/dist/components/Icons/New/ArrowCircleUpRightIcon.d.ts +4 -0
- package/dist/domains/swapped.d.ts +10 -1
- package/dist/hooks/queries/useRecentCheckouts.d.ts +4 -2
- package/dist/hooks/queries/useRecentDeposits.d.ts +4 -9
- package/dist/hooks/track/CheckoutModalEvent.d.ts +1 -0
- package/dist/hooks/useEffectEvent.d.ts +1 -3
- package/dist/hooks/usePaymentMethodTabs.d.ts +5 -0
- package/dist/hooks/usePaymentSources.d.ts +1 -1
- package/dist/hooks/useTokenTransferConfig.d.ts +0 -7
- package/dist/index.css +11 -11
- package/dist/index.js +1470 -1250
- package/dist/interfaces/identity.d.ts +7 -0
- package/dist/modals/CheckoutModal/InputAmount/InputAmountLayout.d.ts +6 -1
- package/dist/modals/CheckoutModal/SourceChange/CryptoCashToggle.d.ts +2 -2
- package/dist/modals/WithdrawalModal/LighterWithdrawal.d.ts +31 -0
- package/dist/providers/FunkitConfigContext.d.ts +2 -0
- package/dist/providers/SwappedProvider.d.ts +2 -2
- package/dist/utils/checkout.d.ts +18 -20
- package/dist/utils/customer.d.ts +13 -1
- package/dist/utils/tokenTransfer/disabledList.d.ts +14 -1
- package/dist/utils/tokenTransfer/types.d.ts +30 -5
- package/dist/wallets/walletConnectors/index.js +48 -48
- package/package.json +2 -2
- package/dist/__generated__/default_configs.d.ts +0 -901
- package/dist/__generated__/default_feature_gates.d.ts +0 -20
- package/dist/chunk-6K4U3Z4Z.js +0 -375
- package/dist/chunk-NBECXHBY.js +0 -249
- package/dist/chunk-PFIXC5YK.js +0 -249
- package/dist/clients/chunk-25ICASD7.js +0 -2371
- package/dist/clients/chunk-7GWX2ZS4.js +0 -69
- package/dist/clients/chunk-EGMA6ATZ.js +0 -2371
- package/dist/clients/chunk-GGXTLJ7J.js +0 -290
- package/dist/clients/chunk-HRWCNZJA.js +0 -230
- package/dist/clients/chunk-JTGKAPID.js +0 -2382
- package/dist/clients/chunk-L7PABCF2.js +0 -54
- package/dist/clients/chunk-OJLDTEKB.js +0 -54
- package/dist/clients/chunk-SSSQQ32F.js +0 -186
- package/dist/clients/chunk-UVWNEQMD.js +0 -186
- package/dist/clients/chunk-YLZ7COFH.js +0 -230
- package/dist/clients/chunk-ZEFHAWRH.js +0 -69
- package/dist/clients/polymarket.d.ts +0 -161
- package/dist/clients/polymarket.js +0 -688
- package/dist/interfaces/logTransport.d.ts +0 -51
- package/dist/interfaces/swapped-transport.d.ts +0 -78
- package/dist/modals/CheckoutModal/SourceChange/EmptyFormOfPaymentsMessage.d.ts +0 -4
- package/dist/modals/CheckoutModal/SourceChange/useUpdateSourceAssetForCard.d.ts +0 -4
- package/dist/modals/CheckoutModal/SwappedIframe/SwappedErrorMessage.d.ts +0 -6
- package/dist/utils/flags/resolver.d.ts +0 -34
- package/dist/wallets/walletConnectors/chunk-2VP2F6EK.js +0 -70
- package/dist/wallets/walletConnectors/chunk-4T6ZSRJF.js +0 -69
- package/dist/wallets/walletConnectors/chunk-6BW3HLBG.js +0 -96
- package/dist/wallets/walletConnectors/chunk-CCQV2ZET.js +0 -218
- package/dist/wallets/walletConnectors/chunk-CPI4TD43.js +0 -99
- package/dist/wallets/walletConnectors/chunk-F5XEEVG6.js +0 -98
- package/dist/wallets/walletConnectors/chunk-HNRB7KJU.js +0 -92
- package/dist/wallets/walletConnectors/chunk-HTHAK6XB.js +0 -93
- package/dist/wallets/walletConnectors/chunk-MIQTHJ6X.js +0 -66
- package/dist/wallets/walletConnectors/chunk-RB3HR4R2.js +0 -95
- package/dist/wallets/walletConnectors/chunk-RVOY537T.js +0 -100
- package/dist/wallets/walletConnectors/chunk-STVVP43G.js +0 -94
- package/dist/wallets/walletConnectors/chunk-UK7C2JXW.js +0 -87
- package/dist/wallets/walletConnectors/chunk-VAPGUPHO.js +0 -92
- package/dist/wallets/walletConnectors/chunk-VTM6EECM.js +0 -110
- package/dist/wallets/walletConnectors/chunk-X6CGV36L.js +0 -103
- package/dist/wallets/walletConnectors/chunk-YEZM4CK4.js +0 -96
- package/dist/wallets/walletConnectors/chunk-ZNX4EMPB.js +0 -106
- /package/dist/clients/{chunk-JD3FIVZ7.js → chunk-52NKHZS2.js} +0 -0
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
readonly 'compliance-review-blocker': false;
|
|
3
|
-
readonly 'enable-across-wallet-flow': false;
|
|
4
|
-
readonly 'enable-add-token-to-wallet': false;
|
|
5
|
-
readonly 'enable-checkout-success-screen-background': false;
|
|
6
|
-
readonly 'enable-empty-withdrawal-selection': false;
|
|
7
|
-
readonly 'enable-free-usdc-banner': false;
|
|
8
|
-
readonly 'enable-permit-toggle': false;
|
|
9
|
-
readonly 'enable-polymarket-wallet-withdrawal': false;
|
|
10
|
-
readonly 'enable-swapped-exchanges': false;
|
|
11
|
-
readonly 'exact-in': false;
|
|
12
|
-
readonly 'faster-notifications': false;
|
|
13
|
-
readonly 'new-token-transfer-config': false;
|
|
14
|
-
readonly 'new-withdrawal-config': false;
|
|
15
|
-
readonly 'saved-card-defaults-to-fiat-tab': false;
|
|
16
|
-
readonly 'test-feature-gate': false;
|
|
17
|
-
readonly 'wallet-flow-enable-exact-input-with-actions': false;
|
|
18
|
-
readonly 'you-receive-remove-swap-impact': false;
|
|
19
|
-
};
|
|
20
|
-
export default _default;
|
package/dist/chunk-6K4U3Z4Z.js
DELETED
|
@@ -1,375 +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: "14px",
|
|
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
|
-
modalTopbarTitle: customFontFamily,
|
|
206
|
-
txStatusDescription: customFontFamily,
|
|
207
|
-
txStatusTitle: customFontFamily
|
|
208
|
-
} : {
|
|
209
|
-
amountValue: fontStacks[fontStack],
|
|
210
|
-
body: fontStacks[fontStack],
|
|
211
|
-
buttonTextPrimary: fontStacks[fontStack],
|
|
212
|
-
buttonTextSecondary: fontStacks[fontStack],
|
|
213
|
-
buttonTextTertiary: fontStacks[fontStack],
|
|
214
|
-
dropdownGroupHeader: fontStacks[fontStack],
|
|
215
|
-
header: fontStacks[fontStack],
|
|
216
|
-
inputAmount: fontStacks[fontStack],
|
|
217
|
-
modalTopbarTitle: fontStacks[fontStack],
|
|
218
|
-
txStatusDescription: fontStacks[fontStack],
|
|
219
|
-
txStatusTitle: fontStacks[fontStack],
|
|
220
|
-
...customFontFamily
|
|
221
|
-
},
|
|
222
|
-
fontWeight: {
|
|
223
|
-
...DEFAULT_FONT_WEIGHTS,
|
|
224
|
-
cryptoCashToggle: DEFAULT_FONT_WEIGHTS.medium,
|
|
225
|
-
dropdownGroupHeader: DEFAULT_FONT_WEIGHTS.medium,
|
|
226
|
-
inputAmount: DEFAULT_FONT_WEIGHTS.medium,
|
|
227
|
-
inputLabel: DEFAULT_FONT_WEIGHTS.medium,
|
|
228
|
-
inputValue: DEFAULT_FONT_WEIGHTS.medium,
|
|
229
|
-
modalTopbarTitle: DEFAULT_FONT_WEIGHTS.medium,
|
|
230
|
-
modalBottomBarButtonText: DEFAULT_FONT_WEIGHTS.medium,
|
|
231
|
-
paymentMethodItemSubtitle: DEFAULT_FONT_WEIGHTS.regular,
|
|
232
|
-
paymentMethodItemTitle: DEFAULT_FONT_WEIGHTS.medium,
|
|
233
|
-
selectAssetItemSubtitle: DEFAULT_FONT_WEIGHTS.regular,
|
|
234
|
-
selectAssetItemTitle: DEFAULT_FONT_WEIGHTS.medium,
|
|
235
|
-
sourceListSectionLabelFontWeight: DEFAULT_FONT_WEIGHTS.medium,
|
|
236
|
-
txBreakdown: DEFAULT_FONT_WEIGHTS.regular,
|
|
237
|
-
txStatusDescription: DEFAULT_FONT_WEIGHTS.regular,
|
|
238
|
-
txStatusTitle: DEFAULT_FONT_WEIGHTS.medium,
|
|
239
|
-
txSummaryLabel: DEFAULT_FONT_WEIGHTS.medium,
|
|
240
|
-
txSummaryValue: DEFAULT_FONT_WEIGHTS.medium,
|
|
241
|
-
formOfPaymentsListSectionLabelFontWeight: DEFAULT_FONT_WEIGHTS.medium,
|
|
242
|
-
withdrawalYouWillReceiveLabel: DEFAULT_FONT_WEIGHTS.regular,
|
|
243
|
-
withdrawalYouWillReceiveValueCrypto: DEFAULT_FONT_WEIGHTS.medium,
|
|
244
|
-
withdrawalYouWillReceiveValueUsd: DEFAULT_FONT_WEIGHTS.regular,
|
|
245
|
-
...customFontWeights
|
|
246
|
-
},
|
|
247
|
-
fontSize: {
|
|
248
|
-
...FONT_SIZINGS[fontSizing],
|
|
249
|
-
body: FONT_SIZINGS[fontSizing][14],
|
|
250
|
-
cryptoCashToggle: FONT_SIZINGS[fontSizing][12],
|
|
251
|
-
"header-14": { fontSize: "14px", lineHeight: "14px" },
|
|
252
|
-
"header-36": { fontSize: "36px", lineHeight: "36px" },
|
|
253
|
-
buttonTextPrimary: FONT_SIZINGS[fontSizing][12],
|
|
254
|
-
buttonTextSecondary: FONT_SIZINGS[fontSizing][10],
|
|
255
|
-
buttonTextTertiary: FONT_SIZINGS[fontSizing][12],
|
|
256
|
-
dollarValue: FONT_SIZINGS[fontSizing][40],
|
|
257
|
-
dropdownGroupHeader: FONT_SIZINGS[fontSizing][12],
|
|
258
|
-
inputAmount: FONT_SIZINGS[fontSizing][57],
|
|
259
|
-
inputLabel: customFontSizings[12] ?? FONT_SIZINGS[fontSizing][12],
|
|
260
|
-
inputValue: customFontSizings[13] ?? FONT_SIZINGS[fontSizing][13],
|
|
261
|
-
modalTopbarSubtitle: FONT_SIZINGS[fontSizing][10],
|
|
262
|
-
modalTopbarTitle: FONT_SIZINGS[fontSizing][13],
|
|
263
|
-
modalBottomBarButtonText: FONT_SIZINGS[fontSizing][12],
|
|
264
|
-
paymentMethodItemSubtitle: FONT_SIZINGS[fontSizing][12],
|
|
265
|
-
paymentMethodItemTitle: FONT_SIZINGS[fontSizing][12],
|
|
266
|
-
selectAssetItemSubtitle: FONT_SIZINGS[fontSizing][10],
|
|
267
|
-
selectAssetItemTitle: FONT_SIZINGS[fontSizing][13],
|
|
268
|
-
txBreakdown: FONT_SIZINGS[fontSizing][12],
|
|
269
|
-
txStatusDescription: FONT_SIZINGS[fontSizing][13],
|
|
270
|
-
txStatusTitle: FONT_SIZINGS[fontSizing][13],
|
|
271
|
-
txSummaryLabel: FONT_SIZINGS[fontSizing][12],
|
|
272
|
-
txSummaryValue: FONT_SIZINGS[fontSizing][12],
|
|
273
|
-
withdrawalYouWillReceive: customFontSizings[12] ?? FONT_SIZINGS[fontSizing][12],
|
|
274
|
-
youPayYouReceivePrimaryFontSize: FONT_SIZINGS[fontSizing][12],
|
|
275
|
-
youPayYouReceiveSecondaryFontSize: FONT_SIZINGS[fontSizing][10],
|
|
276
|
-
depositAddressFontSize: FONT_SIZINGS[fontSizing][10],
|
|
277
|
-
funFeatureListItemFontSize: FONT_SIZINGS[fontSizing][12],
|
|
278
|
-
dropdownItemFontSize: FONT_SIZINGS[fontSizing][12],
|
|
279
|
-
sourceListSectionLabelFontSize: FONT_SIZINGS[fontSizing][12],
|
|
280
|
-
formOfPaymentsListSectionLabelFontSize: FONT_SIZINGS[fontSizing][12],
|
|
281
|
-
quickOptionFontSize: FONT_SIZINGS[fontSizing][14],
|
|
282
|
-
useConnectedFontSize: FONT_SIZINGS[fontSizing][12],
|
|
283
|
-
paymentFeeSummaryTooltip: FONT_SIZINGS[fontSizing][10],
|
|
284
|
-
tooltipContent: FONT_SIZINGS[fontSizing][10],
|
|
285
|
-
...customFontSizings
|
|
286
|
-
},
|
|
287
|
-
radii: {
|
|
288
|
-
actionButton: radiusScales[borderRadius].actionButton,
|
|
289
|
-
actionButtonInner: radiusScales[borderRadius].actionButtonInner,
|
|
290
|
-
connectButton: radiusScales[borderRadius].connectButton,
|
|
291
|
-
menuButton: radiusScales[borderRadius].connectButton,
|
|
292
|
-
modal: radiusScales[borderRadius].modal,
|
|
293
|
-
modalMobile: radiusScales[borderRadius].modalMobile,
|
|
294
|
-
modalActionButton: radiusScales[borderRadius].modalActionButton,
|
|
295
|
-
modalActionButtonMobile: radiusScales[borderRadius].modalActionButtonMobile,
|
|
296
|
-
summaryBox: radiusScales[borderRadius].summaryBox,
|
|
297
|
-
youPayYouReceive: radiusScales[borderRadius].youPayYouReceive,
|
|
298
|
-
inputAmountSwitcher: radiusScales[borderRadius].inputAmountSwitcher,
|
|
299
|
-
qrCode: radiusScales[borderRadius].qrCode,
|
|
300
|
-
skeleton: radiusScales[borderRadius].skeleton,
|
|
301
|
-
tooltip: radiusScales[borderRadius].tooltip,
|
|
302
|
-
dropdown: radiusScales[borderRadius].dropdown,
|
|
303
|
-
dropdownItem: radiusScales[borderRadius].dropdownItem,
|
|
304
|
-
dropdownList: customBorderRadiuses?.dropdownList ?? customBorderRadiuses?.dropdown ?? radiusScales[borderRadius].dropdown,
|
|
305
|
-
modalTopbarIcon: radiusScales[borderRadius].modalTopbarIcon,
|
|
306
|
-
withdrawalInput: radiusScales[borderRadius].withdrawalInput,
|
|
307
|
-
useConnected: radiusScales[borderRadius].useConnected,
|
|
308
|
-
...customBorderRadiuses
|
|
309
|
-
},
|
|
310
|
-
borderWidths: {
|
|
311
|
-
activeOptionBorderWidth: "1px",
|
|
312
|
-
buttonTertiaryBorderWidth: "0px",
|
|
313
|
-
cryptoCashToggleContainerBorderWidth: "0px",
|
|
314
|
-
cryptoCashToggleActiveTabBorderWidth: "1px",
|
|
315
|
-
cryptoCashToggleInactiveTabBorderWidth: "1px",
|
|
316
|
-
txSummaryBoxBorderWidth: "1px",
|
|
317
|
-
...customBorderWidths
|
|
318
|
-
},
|
|
319
|
-
spacing: {
|
|
320
|
-
confirmationStepMarginTop: "6px",
|
|
321
|
-
confirmationStepVerticalGap: "18px",
|
|
322
|
-
cryptoCashToggleContainerPadding: "3px",
|
|
323
|
-
cryptoCashToggleMarginBottom: "16px",
|
|
324
|
-
cryptoCashToggleMarginTop: "24px",
|
|
325
|
-
cryptoCashToggleTabPaddingY: "6px",
|
|
326
|
-
dropdownItemIconGap: "4px",
|
|
327
|
-
dropdownItemPaddingX: "4px",
|
|
328
|
-
dropdownItemPaddingY: "6px",
|
|
329
|
-
dropdownCompactPaddingX: "6px",
|
|
330
|
-
dropdownCompactPaddingY: "6px",
|
|
331
|
-
dropdownPaddingX: "12px",
|
|
332
|
-
dropdownPaddingY: "12px",
|
|
333
|
-
modalBaseHorizontalPadding: "6px",
|
|
334
|
-
modalBottomBarButtonPaddingY: "0px",
|
|
335
|
-
modalBottomHorizontalPadding: "12px",
|
|
336
|
-
modalPaddingBottomUpper: "16px",
|
|
337
|
-
modalPaddingBottomLower: "16px",
|
|
338
|
-
modalTopBarVerticalTextSpacing: "0px",
|
|
339
|
-
selectAssetItemPaddingX: "12px",
|
|
340
|
-
selectAssetItemPaddingY: "8px",
|
|
341
|
-
selectAssetItemTextGap: "0px",
|
|
342
|
-
selectBrokerageItemPaddingX: "12px",
|
|
343
|
-
selectBrokerageItemPaddingY: "11px",
|
|
344
|
-
selectBrokerageListGap: "0px",
|
|
345
|
-
walletConnectorListGap: "10px",
|
|
346
|
-
txBreakdownMarginY: "18px",
|
|
347
|
-
txBreakdownPaddingX: "12px",
|
|
348
|
-
txSummaryBoxPaddingX: "12px",
|
|
349
|
-
txSummaryBoxPaddingY: "12px",
|
|
350
|
-
txSummaryLineItemPadding: "0px",
|
|
351
|
-
txSummaryDividerMarginX: "12px",
|
|
352
|
-
txSummaryDividerMarginY: "12px",
|
|
353
|
-
verticalSectionGap: "18px",
|
|
354
|
-
withdrawalModalPaddingTop: "12px",
|
|
355
|
-
youPayYouReceivePaddingLeft: "12px",
|
|
356
|
-
youPayYouReceivePaddingRight: "16px",
|
|
357
|
-
youPayYouReceivePaddingY: "8px",
|
|
358
|
-
inputPaddingX: "12px",
|
|
359
|
-
inputPaddingY: "12px",
|
|
360
|
-
dropdownActiveItemRegularSizePaddingY: "8px",
|
|
361
|
-
assetListDefaultGap: "4px",
|
|
362
|
-
dropdownGroupDividerMarginY: "8px",
|
|
363
|
-
...customSpacings
|
|
364
|
-
},
|
|
365
|
-
textTransforms: {
|
|
366
|
-
inputAmountQuickOptionButton: "none",
|
|
367
|
-
txStatusTitle: "none",
|
|
368
|
-
...customTextTransforms
|
|
369
|
-
}
|
|
370
|
-
});
|
|
371
|
-
|
|
372
|
-
export {
|
|
373
|
-
systemFontStack,
|
|
374
|
-
baseTheme
|
|
375
|
-
};
|
package/dist/chunk-NBECXHBY.js
DELETED
|
@@ -1,249 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
baseTheme
|
|
4
|
-
} from "./chunk-6K4U3Z4Z.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
|
-
secondaryBackground: "#F7F7F7",
|
|
67
|
-
//Text
|
|
68
|
-
primaryText: "#000",
|
|
69
|
-
secondaryText: "#737373",
|
|
70
|
-
tertiaryText: "rgba(0, 0, 0, 0.35)",
|
|
71
|
-
textSelection: "rgba(0, 0, 0, 0.10)",
|
|
72
|
-
selectedDropdownItemText: customColors?.primaryText ?? "#000",
|
|
73
|
-
copyButtonBackgroundBase: customColors?.offBackground ?? "#F7F7F7",
|
|
74
|
-
copyButtonBackgroundHover: customColors?.hoverState ?? "#F0F0F0",
|
|
75
|
-
copyButtonBackgroundActive: customColors?.inputBorderHover ?? "#E5E5E5",
|
|
76
|
-
useConnectedBackgroundBase: customColors?.mediumStroke ?? "#F0F0F0",
|
|
77
|
-
useConnectedBackgroundHover: customColors?.mediumStroke ?? "#F0F0F0",
|
|
78
|
-
copyButtonBorderBase: customColors?.mediumStroke ?? "#F0F0F0",
|
|
79
|
-
copyButtonBorderHover: customColors?.mediumStroke ?? "#F0F0F0",
|
|
80
|
-
funFeatureListBackgroundBase: customColors?.offBackground ?? "#F7F7F7",
|
|
81
|
-
funFeatureListBackgroundHover: customColors?.hoverState ?? "#F0F0F0",
|
|
82
|
-
funFeatureListBorderColor: "transparent",
|
|
83
|
-
funFeatureListBorderColorHover: "transparent",
|
|
84
|
-
selectedDropdownItemBackground: "transparent",
|
|
85
|
-
alwaysVisibleLabelBackgroundHover: "transparent",
|
|
86
|
-
// input
|
|
87
|
-
inputLabel: customColors?.primaryText ?? "#000",
|
|
88
|
-
inputBackground: "#FFFFFF",
|
|
89
|
-
inputBackgroundHover: customColors?.offBackground ?? "#F7F7F7",
|
|
90
|
-
inputBorderBase: "#F0F0F0",
|
|
91
|
-
inputBorderHover: "#E5E5E5",
|
|
92
|
-
// tab
|
|
93
|
-
activeTabBorderColor: "#F7F7F7",
|
|
94
|
-
activeTabBackground: "#F7F7F7",
|
|
95
|
-
inactiveTabBorderColor: "transparent",
|
|
96
|
-
inactiveTabBackgroundBase: "transparent",
|
|
97
|
-
inactiveTabBackgroundHover: "transparent",
|
|
98
|
-
inactiveTabBackgroundActive: "transparent",
|
|
99
|
-
activeTabText: customColors?.primaryText ?? "#000",
|
|
100
|
-
inactiveTabTextBase: customColors?.secondaryText ?? "#737373",
|
|
101
|
-
inactiveTabHover: customColors?.primaryText ?? "#000",
|
|
102
|
-
// button
|
|
103
|
-
actionColor: "#000",
|
|
104
|
-
actionColorHover: "rgba(0, 0, 0, 0.7)",
|
|
105
|
-
actionColorDisabled: "rgba(0, 0, 0, 0.50)",
|
|
106
|
-
buttonPrimary: accentColor,
|
|
107
|
-
buttonDisabled: "#31A3F826",
|
|
108
|
-
buttonWarning: accentColors.red.accentColor,
|
|
109
|
-
buttonSuccess: "#2EA200",
|
|
110
|
-
buttonTextPrimary: "#FFFFFF",
|
|
111
|
-
buttonTextHover: "#FFF",
|
|
112
|
-
buttonTextDisabled: "#FFF",
|
|
113
|
-
transparent: "transparent",
|
|
114
|
-
buttonBackgroundTertiary: "#F7F7F7",
|
|
115
|
-
buttonBackgroundHoverTertiary: "#F0F0F0",
|
|
116
|
-
buttonBackgroundDisabledTertiary: "transparent",
|
|
117
|
-
buttonTextTertiary: "#000",
|
|
118
|
-
buttonTextDisabledTertiary: "rgba(0, 0, 0, 0.5)",
|
|
119
|
-
buttonBackground: "#000",
|
|
120
|
-
buttonBackgroundHover: "#333333",
|
|
121
|
-
buttonBackgroundPressed: "#000",
|
|
122
|
-
buttonBackgroundDisabled: "rgba(0, 0, 0, 0.5)",
|
|
123
|
-
buttonTextSecondaryDisabled: "rgba(0, 0, 0, 0.5)",
|
|
124
|
-
buttonTextSecondary: "#000000",
|
|
125
|
-
buttonIconBackgroundHover: "#F7F7F7",
|
|
126
|
-
buttonIconBackgroundPressed: "#F0F0F0",
|
|
127
|
-
buttonIconStroke: "rgba(0, 0, 0, 0.35)",
|
|
128
|
-
buttonBorderTertiary: "transparent",
|
|
129
|
-
buttonBorderFocusedTertiary: "rgba(0, 0, 0, 0.35)",
|
|
130
|
-
buttonFocusedOutline: "none",
|
|
131
|
-
buttonBorderGradient: "none",
|
|
132
|
-
buttonHoverBorderGradient: "none",
|
|
133
|
-
buttonDisabledBorderGradient: "none",
|
|
134
|
-
// TODO: Make common colors when refactoring the design system
|
|
135
|
-
inputAmountQuickOptionBaseBackground: "#F7F7F7",
|
|
136
|
-
inputAmountQuickOptionHoverBackground: "#F0F0F0",
|
|
137
|
-
inputAmountQuickOptionActiveBackground: "#F0F0F0",
|
|
138
|
-
inputAmountQuickOptionDisabledBackground: "#F7F7F7",
|
|
139
|
-
inputAmountQuickOptionBaseBorder: "#F7F7F7",
|
|
140
|
-
inputAmountQuickOptionHoverBorder: "rgba(0, 0, 0, 0.35)",
|
|
141
|
-
inputAmountQuickOptionActiveBorder: "rgba(0, 0, 0, 0.35)",
|
|
142
|
-
inputAmountQuickOptionFocusedBorder: "rgba(0, 0, 0, 0.35)",
|
|
143
|
-
inputAmountFiatDecimalsColor: customColors?.inputAmountFiatDecimalsColor ?? "none",
|
|
144
|
-
youPayYouReceiveBackground: "#FFF",
|
|
145
|
-
// modalBackground
|
|
146
|
-
youPayYouReceiveBorder: "#F0F0F0",
|
|
147
|
-
// mediumStroke
|
|
148
|
-
youPayYouReceivePrimaryText: "#000",
|
|
149
|
-
// primaryText
|
|
150
|
-
youPayYouReceiveSecondaryText: "#737373",
|
|
151
|
-
// secondaryText
|
|
152
|
-
withdrawalYouWillReceiveLabel: customColors?.withdrawalYouWillReceiveLabel ?? customColors?.primaryText ?? "#000",
|
|
153
|
-
withdrawalYouWillReceiveValueCrypto: customColors?.withdrawalYouWillReceiveValueCrypto ?? customColors?.primaryText ?? "#000",
|
|
154
|
-
withdrawalYouWillReceiveValueUsd: customColors?.withdrawalYouWillReceiveValueUsd ?? customColors?.secondaryText ?? "#737373",
|
|
155
|
-
// badges
|
|
156
|
-
badgeBackgroundSuccess: "rgba(124, 242, 136, 0.1)",
|
|
157
|
-
badgeBorderSuccess: "rgba(124, 242, 136, 0.2)",
|
|
158
|
-
badgeTextSuccess: "rgb(124, 242, 136)",
|
|
159
|
-
newBadgeBackground: "linear-gradient(180deg, #ECFFEA 0%, #E4FFE9 100%)",
|
|
160
|
-
newBadgeBorder: "rgba(122, 221, 122, 0.5)",
|
|
161
|
-
newBadgeText: "#028320",
|
|
162
|
-
approvedBadgeBackground: "linear-gradient(180deg, #ECFFEA 0%, #E4FFE9 100%)",
|
|
163
|
-
approvedBadgeBorder: "rgba(109, 216, 109, 0.5)",
|
|
164
|
-
approvedBadgeText: "#028320",
|
|
165
|
-
failedBadgeBackground: "rgba(255, 61, 61, 0.08)",
|
|
166
|
-
failedBadgeBorder: "rgba(0, 0, 0, 0.03)",
|
|
167
|
-
failedBadgeText: "#C2341E",
|
|
168
|
-
announceGradientFrom: "#595959",
|
|
169
|
-
announceGradientTo: "#9C9C9C",
|
|
170
|
-
fiatPendingGradientFrom: "#454545",
|
|
171
|
-
fiatPendingGradientTo: "#747474",
|
|
172
|
-
fiatSuccessBackgroundFill: "rgba(102, 204, 0, 0.16)",
|
|
173
|
-
fiatFailedBackgroundFill: "rgba(255, 61, 61, 0.12)",
|
|
174
|
-
fiatStatusIconBorder: "rgba(0, 0, 0, 0.03)",
|
|
175
|
-
fiatAccountIconFill: "#E7F3FE",
|
|
176
|
-
fiatAccountGradientFrom: "#055DF5",
|
|
177
|
-
fiatAccountGradientTo: "#4C8DFD",
|
|
178
|
-
modalHeaderDivider: "#F7F7F7",
|
|
179
|
-
// lightStroke
|
|
180
|
-
modalFooterDivider: "#F7F7F7",
|
|
181
|
-
// lightStroke
|
|
182
|
-
spinnerBackground: customColors?.mediumStroke ?? "rgba(255, 255, 255, 0.3)",
|
|
183
|
-
// 30% buttonTextPrimary
|
|
184
|
-
spinnerIndicator: customColors?.primaryText ?? "#FFF",
|
|
185
|
-
// 100% buttonTextPrimary
|
|
186
|
-
spinnerBackgroundVerifyAccount: "rgba(255, 255, 255, 0.3)",
|
|
187
|
-
// 30% buttonTextPrimary
|
|
188
|
-
spinnerIndicatorVerifyAccount: customColors?.primaryText ?? "#FFF",
|
|
189
|
-
// 100% buttonTextPrimary
|
|
190
|
-
// Override colors
|
|
191
|
-
...customColors || {},
|
|
192
|
-
// option Boxes
|
|
193
|
-
optionBoxBackground: customColors?.optionBoxBackground ?? customColors?.modalBackground ?? "#FFF",
|
|
194
|
-
// keeps gradient in SourcePaymentMethodItem if optionBoxBackground differs from modal background
|
|
195
|
-
optionBoxBackgroundUninteractive: customColors?.optionBoxBackgroundUninteractive ?? "transparent",
|
|
196
|
-
optionBoxBorderBase: customColors?.optionBoxBorderBase ?? customColors?.mediumStroke ?? "#F0F0F0",
|
|
197
|
-
optionBoxBorderHover: customColors?.optionBoxBorderHover ?? customColors?.mediumStroke ?? "#F0F0F0",
|
|
198
|
-
optionBoxDefaultModeNotActiveBorderBase: customColors?.optionBoxDefaultModeNotActiveBorderBase ?? "transparent",
|
|
199
|
-
optionBoxDefaultModeNotActiveBorderHover: customColors?.optionBoxDefaultModeNotActiveBorderHover ?? "transparent",
|
|
200
|
-
dropdownActiveItemBackgroundBase: customColors?.dropdownActiveItemBackgroundBase ?? customColors?.modalBackground ?? "#FFF",
|
|
201
|
-
openDropdownBackgroundColor: customColors?.openDropdownBackgroundColor ?? customColors?.optionBoxBackground ?? customColors?.modalBackground ?? "#FFF",
|
|
202
|
-
dropdownActiveItemBackgroundHover: customColors?.dropdownActiveItemBackgroundHover ?? customColors?.offBackground ?? "#F7F7F7",
|
|
203
|
-
dropdownActiveItemBackgroundDisabled: customColors?.dropdownActiveItemBackgroundDisabled ?? "transparent",
|
|
204
|
-
dropdownActiveItemBorderBase: customColors?.dropdownActiveItemBorderBase ?? customColors?.mediumStroke ?? "#F0F0F0",
|
|
205
|
-
dropdownActiveItemBorderHover: customColors?.dropdownActiveItemBorderHover ?? customColors?.mediumStroke ?? "#F0F0F0",
|
|
206
|
-
dropdownGroupHeader: customColors?.dropdownGroupHeader ?? customColors?.primaryText ?? "#000",
|
|
207
|
-
// primaryText
|
|
208
|
-
txSummaryBoxBackground: customColors?.txSummaryBoxBackground ?? customColors?.modalBackground ?? "#FFF",
|
|
209
|
-
txSummaryBoxBorder: customColors?.txSummaryBoxBorder ?? customColors?.lightStroke ?? "#F7F7F7",
|
|
210
|
-
modalBackgroundCheckoutComplete: customColors?.modalBackgroundCheckoutComplete ?? customColors?.modalBackground ?? "#FFF",
|
|
211
|
-
counterRingColor: customColors?.counterRingColor ?? accentColor,
|
|
212
|
-
cryptoCashToggleContainerBorderColor: customColors?.cryptoCashToggleContainerBorderColor ?? "transparent",
|
|
213
|
-
cryptoCashToggleBackground: customColors?.cryptoCashToggleBackground ?? "transparent"
|
|
214
|
-
},
|
|
215
|
-
shadows: {
|
|
216
|
-
connectButton: "0px 4px 12px rgba(0, 0, 0, 0.1)",
|
|
217
|
-
dialog: "0px 8px 32px rgba(0, 0, 0, 0.32)",
|
|
218
|
-
selectedOption: "0px 2px 6px rgba(0, 0, 0, 0.24)",
|
|
219
|
-
selectedWallet: "0px 2px 6px rgba(0, 0, 0, 0.12)",
|
|
220
|
-
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)",
|
|
221
|
-
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)",
|
|
222
|
-
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)",
|
|
223
|
-
buttonShadow: "none",
|
|
224
|
-
buttonShadowTertiary: customShadows?.buttonShadow ?? "none",
|
|
225
|
-
buttonFocusedShadow: "0px 0px 0px 2px rgba(0, 0, 0, 0.25)",
|
|
226
|
-
buttonFocusedShadowTertiary: "0px 0px 0px 2px rgba(0, 0, 0, 0.25)",
|
|
227
|
-
buttonHoverShadow: "none",
|
|
228
|
-
buttonHoverShadowTertiary: "none",
|
|
229
|
-
buttonDisabledShadow: "none",
|
|
230
|
-
buttonDisabledShadowTertiary: customShadows?.buttonDisabledShadow ?? "none",
|
|
231
|
-
buttonInnerShadow: "none",
|
|
232
|
-
buttonInnerShadowTertiary: customShadows?.buttonInnerShadow ?? "none",
|
|
233
|
-
buttonFocusedInnerShadow: "none",
|
|
234
|
-
buttonFocusedInnerShadowTertiary: customShadows?.buttonFocusedInnerShadow ?? "none",
|
|
235
|
-
buttonHoverInnerShadow: "none",
|
|
236
|
-
buttonHoverInnerShadowTertiary: customShadows?.buttonHoverInnerShadow ?? "none",
|
|
237
|
-
buttonDisabledInnerShadow: "none",
|
|
238
|
-
buttonDisabledInnerShadowTertiary: customShadows?.buttonDisabledInnerShadow ?? "none",
|
|
239
|
-
selectedDropdownItem: "none",
|
|
240
|
-
// Override shadows
|
|
241
|
-
...customShadows || {}
|
|
242
|
-
},
|
|
243
|
-
moonpayTheme: "light"
|
|
244
|
-
});
|
|
245
|
-
lightTheme.accentColors = accentColors;
|
|
246
|
-
|
|
247
|
-
export {
|
|
248
|
-
lightTheme
|
|
249
|
-
};
|