@funkit/connect 9.20.0 → 9.21.1-next.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 +47 -0
- package/dist/__generated__/default_configs.d.ts +901 -0
- package/dist/__generated__/default_feature_gates.d.ts +20 -0
- package/dist/chunk-36KVHK22.js +252 -0
- package/dist/chunk-4YEAUICE.js +380 -0
- package/dist/chunk-67BKQQNG.js +252 -0
- package/dist/clients/chunk-25ICASD7.js +2371 -0
- package/dist/clients/{chunk-47AQXZQE.js → chunk-4HCOSF4M.js} +1 -1
- package/dist/clients/chunk-7GWX2ZS4.js +69 -0
- package/dist/clients/{chunk-CSONEKIF.js → chunk-7HNGV6JU.js} +1 -1
- package/dist/clients/chunk-EGMA6ATZ.js +2371 -0
- package/dist/clients/chunk-GGXTLJ7J.js +290 -0
- package/dist/clients/chunk-HRWCNZJA.js +230 -0
- package/dist/clients/chunk-JD3FIVZ7.js +69 -0
- package/dist/clients/chunk-JTGKAPID.js +2382 -0
- package/dist/clients/chunk-L7PABCF2.js +54 -0
- package/dist/clients/{chunk-JOM2J5WB.js → chunk-NCUPPJ2Z.js} +21 -10
- package/dist/clients/{chunk-UNCVGPTD.js → chunk-NUJ6ZM5F.js} +1 -1
- package/dist/clients/chunk-OJLDTEKB.js +54 -0
- package/dist/clients/chunk-SSSQQ32F.js +186 -0
- package/dist/clients/chunk-UVWNEQMD.js +186 -0
- package/dist/clients/chunk-YLZ7COFH.js +230 -0
- package/dist/clients/chunk-ZEFHAWRH.js +69 -0
- package/dist/clients/fanatics.css +2891 -2702
- package/dist/clients/fanatics.js +5 -5
- package/dist/clients/lighter.css +2891 -2702
- package/dist/clients/lighter.js +3 -3
- package/dist/clients/nado.d.ts +78 -0
- package/dist/clients/nado.js +107 -0
- package/dist/clients/polymarket/PolymarketDepositAccountDropdown.css +2909 -2717
- package/dist/clients/polymarket/PolymarketDepositAccountDropdown.js +4 -4
- package/dist/clients/polymarket/index.css +2909 -2717
- package/dist/clients/polymarket/index.js +4 -4
- package/dist/clients/polymarket.d.ts +161 -0
- package/dist/clients/polymarket.js +688 -0
- package/dist/components/Box/Box.d.ts +21 -21
- package/dist/components/FunButton/FunButton.css.d.ts +1 -0
- package/dist/components/FunOptionBox/FunOptionBox.css.d.ts +1 -1
- package/dist/css/sprinkles.css.d.ts +33 -21
- package/dist/hooks/useTokenTransferConfig.d.ts +7 -0
- package/dist/index.css +2909 -2717
- package/dist/index.js +227 -349
- package/dist/interfaces/logTransport.d.ts +51 -0
- package/dist/interfaces/swapped-transport.d.ts +78 -0
- package/dist/modals/CheckoutModal/SourceChange/EmptyFormOfPaymentsMessage.d.ts +4 -0
- package/dist/modals/CheckoutModal/SourceChange/useUpdateSourceAssetForCard.d.ts +4 -0
- package/dist/modals/CheckoutModal/SwappedIframe/SwappedErrorMessage.d.ts +6 -0
- package/dist/modals/WithdrawalModal/WithdrawalContent.d.ts +7 -0
- package/dist/providers/FunkitThemeProvider.d.ts +18 -0
- package/dist/themes/baseTheme.d.ts +3 -1
- package/dist/themes/baseTheme.js +1 -1
- package/dist/themes/darkTheme.js +2 -2
- package/dist/themes/lightTheme.js +2 -2
- package/dist/utils/flags/resolver.d.ts +34 -0
- package/dist/utils/tokenTransfer/disabledList.d.ts +1 -14
- package/dist/utils/tokenTransfer/types.d.ts +5 -30
- package/dist/wallets/walletConnectors/chunk-2VP2F6EK.js +70 -0
- package/dist/wallets/walletConnectors/chunk-4T6ZSRJF.js +69 -0
- package/dist/wallets/walletConnectors/chunk-6BW3HLBG.js +96 -0
- package/dist/wallets/walletConnectors/chunk-CCQV2ZET.js +218 -0
- package/dist/wallets/walletConnectors/chunk-CPI4TD43.js +99 -0
- package/dist/wallets/walletConnectors/chunk-F5XEEVG6.js +98 -0
- package/dist/wallets/walletConnectors/chunk-HNRB7KJU.js +92 -0
- package/dist/wallets/walletConnectors/chunk-HTHAK6XB.js +93 -0
- package/dist/wallets/walletConnectors/chunk-MIQTHJ6X.js +66 -0
- package/dist/wallets/walletConnectors/chunk-RB3HR4R2.js +95 -0
- package/dist/wallets/walletConnectors/chunk-RVOY537T.js +100 -0
- package/dist/wallets/walletConnectors/chunk-STVVP43G.js +94 -0
- package/dist/wallets/walletConnectors/chunk-UK7C2JXW.js +87 -0
- package/dist/wallets/walletConnectors/chunk-VAPGUPHO.js +92 -0
- package/dist/wallets/walletConnectors/chunk-VTM6EECM.js +110 -0
- package/dist/wallets/walletConnectors/chunk-X6CGV36L.js +103 -0
- package/dist/wallets/walletConnectors/chunk-YEZM4CK4.js +96 -0
- package/dist/wallets/walletConnectors/chunk-ZNX4EMPB.js +106 -0
- package/dist/wallets/walletConnectors/index.js +54 -54
- package/package.json +3 -3
- package/dist/clients/chunk-JVTKIEOP.js +0 -69
|
@@ -0,0 +1,20 @@
|
|
|
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;
|
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
baseTheme
|
|
4
|
+
} from "./chunk-4YEAUICE.js";
|
|
5
|
+
|
|
6
|
+
// src/themes/darkTheme.ts
|
|
7
|
+
var accentColors = {
|
|
8
|
+
blue: { accentColor: "#3898FF", accentColorForeground: "#FFF" },
|
|
9
|
+
green: { accentColor: "#66CC00", accentColorForeground: "#000" },
|
|
10
|
+
orange: { accentColor: "#F6851B", accentColorForeground: "#000" },
|
|
11
|
+
pink: { accentColor: "#FF7AB8", accentColorForeground: "#000" },
|
|
12
|
+
purple: { accentColor: "#7A70FF", accentColorForeground: "#FFF" },
|
|
13
|
+
red: { accentColor: "#F34126", accentColorForeground: "#FFF" },
|
|
14
|
+
white: { accentColor: "#FFF", accentColorForeground: "#000" }
|
|
15
|
+
};
|
|
16
|
+
var defaultAccentColor = accentColors.white;
|
|
17
|
+
var darkTheme = ({
|
|
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(255, 255, 255, 0.04)",
|
|
30
|
+
connectButtonBackground: "#000",
|
|
31
|
+
connectButtonBackgroundError: "#C60000",
|
|
32
|
+
connectButtonText: "#FFF",
|
|
33
|
+
connectButtonTextError: "#FFF",
|
|
34
|
+
connectionIndicator: "#30E000",
|
|
35
|
+
error: accentColors.red.accentColor,
|
|
36
|
+
errorBackground: "#F2E6E4",
|
|
37
|
+
errorBorder: "rgba(243, 65, 38, 0.2)",
|
|
38
|
+
generalBorder: "#292929",
|
|
39
|
+
// strokeColor in figma
|
|
40
|
+
generalBorderDim: "rgba(255, 255, 255, 0.04)",
|
|
41
|
+
menuItemBackground: "rgba(255, 255, 255, 0.03)",
|
|
42
|
+
selectedOptionBorder: "rgba(224, 232, 255, 0.1)",
|
|
43
|
+
focusedOptionBorder: "#8C8C8C",
|
|
44
|
+
standby: "#F6851B",
|
|
45
|
+
success: "#66CC00",
|
|
46
|
+
delayedStatusIcon: customColors?.secondaryText ?? "#8C8C8C",
|
|
47
|
+
// backward compatibility
|
|
48
|
+
chainIconBorder: "#fff",
|
|
49
|
+
// FUNKIT COLORS
|
|
50
|
+
// modal backgrounds
|
|
51
|
+
modalBackdrop: "rgba(0, 0, 0, 0.2)",
|
|
52
|
+
modalBackground: "#000000",
|
|
53
|
+
modalBorder: "#292929",
|
|
54
|
+
modalTopbarIcon: "#FFF",
|
|
55
|
+
modalTopbarIconBackground: customColors?.modalTopbarIconBackground ?? "transparent",
|
|
56
|
+
modalTopbarIconBackgroundHover: customColors?.modalTopbarIconBackgroundHover ?? customColors?.buttonIconBackgroundHover ?? "#333333",
|
|
57
|
+
modalTopbarIconBackgroundPressed: customColors?.modalTopbarIconBackgroundPressed ?? customColors?.buttonIconBackgroundPressed ?? "#333333",
|
|
58
|
+
modalTopbarIconStroke: customColors?.modalTopbarIconStroke ?? customColors?.buttonIconStroke ?? "rgba(255, 255, 255, 0.35)",
|
|
59
|
+
offBackground: "#1F1F1F",
|
|
60
|
+
offBackgroundInverse: "#F2F2F2",
|
|
61
|
+
hoverState: "#333333",
|
|
62
|
+
lightStroke: "#333333",
|
|
63
|
+
mediumStroke: "#333333",
|
|
64
|
+
heavyStroke: "rgba(117, 117, 117, 0.40)",
|
|
65
|
+
strokeColor: "#333333",
|
|
66
|
+
secondaryBackground: "#333333",
|
|
67
|
+
//Text
|
|
68
|
+
primaryText: "#FFF",
|
|
69
|
+
secondaryText: "#8C8C8C",
|
|
70
|
+
tertiaryText: "rgba(255, 255, 255, 0.35)",
|
|
71
|
+
textSelection: "rgba(255, 255, 255, 0.10)",
|
|
72
|
+
selectedDropdownItemText: customColors?.primaryText ?? "#FFF",
|
|
73
|
+
copyButtonBackgroundBase: customColors?.offBackground ?? "#1F1F1F",
|
|
74
|
+
copyButtonBackgroundHover: customColors?.hoverState ?? "#333333",
|
|
75
|
+
copyButtonBackgroundActive: customColors?.inputBorderHover ?? "#525252",
|
|
76
|
+
useConnectedBackgroundBase: customColors?.mediumStroke ?? "#333333",
|
|
77
|
+
useConnectedBackgroundHover: customColors?.mediumStroke ?? "#333333",
|
|
78
|
+
copyButtonBorderBase: customColors?.mediumStroke ?? "#333333",
|
|
79
|
+
copyButtonBorderHover: customColors?.mediumStroke ?? "#333333",
|
|
80
|
+
funFeatureListBackgroundBase: customColors?.offBackground ?? "#1F1F1F",
|
|
81
|
+
funFeatureListBackgroundHover: customColors?.hoverState ?? "#333333",
|
|
82
|
+
funFeatureListBorderColor: "transparent",
|
|
83
|
+
funFeatureListBorderColorHover: "transparent",
|
|
84
|
+
selectedDropdownItemBackground: "transparent",
|
|
85
|
+
alwaysVisibleLabelBackgroundHover: "transparent",
|
|
86
|
+
// input
|
|
87
|
+
inputLabel: customColors?.primaryText ?? "#FFF",
|
|
88
|
+
inputBackground: "#000000",
|
|
89
|
+
inputBackgroundHover: customColors?.offBackground ?? "#1F1F1F",
|
|
90
|
+
inputBorderBase: "#333333",
|
|
91
|
+
inputBorderHover: "#525252",
|
|
92
|
+
// tab
|
|
93
|
+
activeTabBorderColor: "#333333",
|
|
94
|
+
activeTabBackground: "#333333",
|
|
95
|
+
inactiveTabBorderColor: "transparent",
|
|
96
|
+
inactiveTabBackgroundBase: "transparent",
|
|
97
|
+
inactiveTabBackgroundHover: "transparent",
|
|
98
|
+
inactiveTabBackgroundActive: "transparent",
|
|
99
|
+
activeTabText: customColors?.primaryText ?? "#FFF",
|
|
100
|
+
inactiveTabTextBase: customColors?.secondaryText ?? "#8C8C8C",
|
|
101
|
+
inactiveTabHover: customColors?.primaryText ?? "#FFF",
|
|
102
|
+
// button
|
|
103
|
+
actionColor: "#FFF",
|
|
104
|
+
actionColorHover: "rgba(255, 255, 255, 0.8)",
|
|
105
|
+
actionColorDisabled: "rgba(255, 255, 255, 0.65)",
|
|
106
|
+
buttonPrimary: accentColor,
|
|
107
|
+
buttonDisabled: "rgba(255, 255, 255, 0.20)",
|
|
108
|
+
buttonTextPrimary: "#000000",
|
|
109
|
+
buttonTextHover: "#000000",
|
|
110
|
+
buttonTextDisabled: "#000000",
|
|
111
|
+
buttonWarning: accentColors.red.accentColor,
|
|
112
|
+
buttonSuccess: "#2EA200",
|
|
113
|
+
transparent: "transparent",
|
|
114
|
+
buttonBackgroundTertiary: "#333333",
|
|
115
|
+
buttonBackgroundHoverTertiary: "#333333",
|
|
116
|
+
buttonBackgroundDisabledTertiary: "transparent",
|
|
117
|
+
buttonTextTertiary: "#FFF",
|
|
118
|
+
buttonTextDisabledTertiary: "rgba(255, 255, 255, 0.65)",
|
|
119
|
+
buttonBackground: "#FFF",
|
|
120
|
+
buttonBackgroundHover: "#f2f2f2",
|
|
121
|
+
buttonBackgroundPressed: "#FFF",
|
|
122
|
+
buttonBackgroundDisabled: "rgba(255, 255, 255, 0.65)",
|
|
123
|
+
buttonTextSecondaryDisabled: "rgba(255, 255, 255, 0.65)",
|
|
124
|
+
buttonTextSecondary: "#FFFFFF",
|
|
125
|
+
buttonIconBackgroundHover: "#333333",
|
|
126
|
+
buttonIconBackgroundPressed: "#333333",
|
|
127
|
+
buttonIconStroke: "rgba(255, 255, 255, 0.35)",
|
|
128
|
+
buttonBorderTertiary: "transparent",
|
|
129
|
+
buttonBorderFocusedTertiary: "rgba(255, 255, 255, 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: "#1F1F1F",
|
|
136
|
+
inputAmountQuickOptionHoverBackground: "#333333",
|
|
137
|
+
inputAmountQuickOptionActiveBackground: "#333333",
|
|
138
|
+
inputAmountQuickOptionDisabledBackground: "#333333",
|
|
139
|
+
inputAmountQuickOptionBaseBorder: "#f2f2f2",
|
|
140
|
+
inputAmountQuickOptionHoverBorder: "rgba(255, 255, 255, 0.35)",
|
|
141
|
+
inputAmountQuickOptionActiveBorder: "rgba(255, 255, 255, 0.35)",
|
|
142
|
+
inputAmountQuickOptionFocusedBorder: "rgba(255, 255, 255, 0.35)",
|
|
143
|
+
inputAmountFiatDecimalsColor: customColors?.inputAmountFiatDecimalsColor ?? "none",
|
|
144
|
+
youPayYouReceiveBackground: "#000000",
|
|
145
|
+
// modalBackground
|
|
146
|
+
youPayYouReceiveBorder: "#333333",
|
|
147
|
+
// mediumStroke
|
|
148
|
+
youPayYouReceivePrimaryText: "#FFF",
|
|
149
|
+
// primaryText
|
|
150
|
+
youPayYouReceiveSecondaryText: "#8C8C8C",
|
|
151
|
+
// secondaryText
|
|
152
|
+
withdrawalYouWillReceiveLabel: customColors?.withdrawalYouWillReceiveLabel ?? customColors?.primaryText ?? "#FFF",
|
|
153
|
+
withdrawalYouWillReceiveValueCrypto: customColors?.withdrawalYouWillReceiveValueCrypto ?? customColors?.primaryText ?? "#FFF",
|
|
154
|
+
withdrawalYouWillReceiveValueUsd: customColors?.withdrawalYouWillReceiveValueUsd ?? customColors?.secondaryText ?? "#8C8C8C",
|
|
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, rgba(57, 76, 56, 0.55) 0%, rgba(61, 81, 65, 0.55) 100%)",
|
|
160
|
+
newBadgeBorder: "rgba(122, 221, 122, 0.3)",
|
|
161
|
+
newBadgeText: "#A4FF9A",
|
|
162
|
+
approvedBadgeBackground: "linear-gradient(180deg, rgba(236, 255, 234, 0.20) 0%, rgba(228, 255, 233, 0.20) 100%)",
|
|
163
|
+
approvedBadgeBorder: "rgba(109, 216, 109, 0.08)",
|
|
164
|
+
approvedBadgeText: "#8FFFA9",
|
|
165
|
+
failedBadgeBackground: "rgba(255, 61, 61, 0.18)",
|
|
166
|
+
failedBadgeBorder: "rgba(255, 255, 255, 0.10)",
|
|
167
|
+
failedBadgeText: "#F88877",
|
|
168
|
+
announceGradientFrom: "#AAAAAA",
|
|
169
|
+
announceGradientTo: "#BEBEBE",
|
|
170
|
+
fiatPendingGradientFrom: "#AAAAAA",
|
|
171
|
+
fiatPendingGradientTo: "#BEBEBE",
|
|
172
|
+
fiatSuccessBackgroundFill: "rgba(102, 204, 0, 0.30)",
|
|
173
|
+
fiatFailedBackgroundFill: "rgba(255, 61, 61, 0.30)",
|
|
174
|
+
fiatStatusIconBorder: "rgba(255, 255, 255, 0.06)",
|
|
175
|
+
fiatAccountIconFill: "#002F5E",
|
|
176
|
+
fiatAccountGradientFrom: "#3A82FE",
|
|
177
|
+
fiatAccountGradientTo: "#73A7FF",
|
|
178
|
+
modalHeaderDivider: "#333333",
|
|
179
|
+
// lightStroke
|
|
180
|
+
modalFooterDivider: "#333333",
|
|
181
|
+
// lightStroke
|
|
182
|
+
spinnerBackground: customColors?.mediumStroke ?? "rgba(0, 0, 0, 0.3)",
|
|
183
|
+
// 30% buttonTextPrimary
|
|
184
|
+
spinnerIndicator: customColors?.primaryText ?? "#000",
|
|
185
|
+
// 100% buttonTextPrimary
|
|
186
|
+
spinnerBackgroundVerifyAccount: "rgba(0, 0, 0, 0.3)",
|
|
187
|
+
// 30% buttonTextPrimary
|
|
188
|
+
spinnerIndicatorVerifyAccount: customColors?.primaryText ?? "#000",
|
|
189
|
+
// 100% buttonTextPrimary
|
|
190
|
+
// Override colors
|
|
191
|
+
...customColors || {},
|
|
192
|
+
// option Boxes
|
|
193
|
+
optionBoxBackground: customColors?.optionBoxBackground ?? customColors?.modalBackground ?? "#000",
|
|
194
|
+
// keeps gradient in SourcePaymentMethodItem if optionBoxBackground differs from modal background
|
|
195
|
+
optionBoxBorderedBackground: customColors?.optionBoxBorderedBackground ?? customColors?.optionBoxBackground ?? customColors?.modalBackground ?? "#000",
|
|
196
|
+
optionBoxBackgroundUninteractive: customColors?.optionBoxBackgroundUninteractive ?? "transparent",
|
|
197
|
+
optionBoxBorderBase: customColors?.optionBoxBorderBase ?? customColors?.mediumStroke ?? "#333333",
|
|
198
|
+
optionBoxBorderHover: customColors?.optionBoxBorderHover ?? customColors?.mediumStroke ?? "#333333",
|
|
199
|
+
optionBoxDefaultModeNotActiveBorderBase: customColors?.optionBoxDefaultModeNotActiveBorderBase ?? "transparent",
|
|
200
|
+
optionBoxDefaultModeNotActiveBorderHover: customColors?.optionBoxDefaultModeNotActiveBorderHover ?? "transparent",
|
|
201
|
+
dropdownActiveItemBackgroundBase: customColors?.dropdownActiveItemBackgroundBase ?? customColors?.modalBackground ?? "#000000",
|
|
202
|
+
openDropdownBackgroundColor: customColors?.openDropdownBackgroundColor ?? customColors?.optionBoxBackground ?? customColors?.modalBackground ?? "#000",
|
|
203
|
+
dropdownActiveItemBackgroundHover: customColors?.dropdownActiveItemBackgroundHover ?? customColors?.offBackground ?? "#1F1F1F",
|
|
204
|
+
dropdownActiveItemBackgroundDisabled: customColors?.dropdownActiveItemBackgroundDisabled ?? "transparent",
|
|
205
|
+
dropdownActiveItemBorderBase: customColors?.dropdownActiveItemBorderBase ?? customColors?.mediumStroke ?? "#333333",
|
|
206
|
+
dropdownActiveItemBorderHover: customColors?.dropdownActiveItemBorderHover ?? customColors?.mediumStroke ?? "#333333",
|
|
207
|
+
dropdownGroupHeader: customColors?.dropdownGroupHeader ?? customColors?.primaryText ?? "#FFF",
|
|
208
|
+
// primaryText
|
|
209
|
+
txSummaryBoxBackground: customColors?.txSummaryBoxBackground ?? customColors?.modalBackground ?? "#000",
|
|
210
|
+
txSummaryBoxBorder: customColors?.txSummaryBoxBorder ?? customColors?.lightStroke ?? "#333333",
|
|
211
|
+
modalBackgroundCheckoutComplete: customColors?.modalBackgroundCheckoutComplete ?? customColors?.modalBackground ?? "#000",
|
|
212
|
+
counterRingColor: customColors?.counterRingColor ?? accentColor,
|
|
213
|
+
cryptoCashToggleContainerBorderColor: customColors?.cryptoCashToggleContainerBorderColor ?? "transparent",
|
|
214
|
+
cryptoCashToggleBackground: customColors?.cryptoCashToggleBackground ?? "transparent",
|
|
215
|
+
qrCodeBackground: customColors?.qrCodeBackground ?? customColors?.modalBackground ?? "#000000",
|
|
216
|
+
qrCodeForeground: customColors?.qrCodeForeground ?? customColors?.primaryText ?? "#FFFFFF"
|
|
217
|
+
},
|
|
218
|
+
shadows: {
|
|
219
|
+
connectButton: "0px 4px 12px rgba(0, 0, 0, 0.1)",
|
|
220
|
+
dialog: "0px 8px 32px rgba(0, 0, 0, 0.32)",
|
|
221
|
+
selectedOption: "0px 2px 6px rgba(0, 0, 0, 0.24)",
|
|
222
|
+
selectedWallet: "0px 2px 6px rgba(0, 0, 0, 0.24)",
|
|
223
|
+
dropdown: "0px 0px 0px 1px rgba(255, 255, 255, 0.16), 0px 2px 6px rgba(0, 0, 0, 0.03), 0px 4px 42px rgba(0, 0, 0, 0.06)",
|
|
224
|
+
notification: "0px 0px 0px 1px rgba(255, 255, 255, 0.20), 0px 2px 6px 0px rgba(0, 0, 0, 0.05), 0px 4px 42px 0px rgba(0, 0, 0, 0.06)",
|
|
225
|
+
qrCode: "0px 0px 0px 1px rgba(255, 255, 255, 0.16)",
|
|
226
|
+
buttonShadow: "none",
|
|
227
|
+
buttonShadowTertiary: "none",
|
|
228
|
+
buttonHoverShadow: "none",
|
|
229
|
+
buttonHoverShadowTertiary: "none",
|
|
230
|
+
buttonFocusedShadow: "0px 0px 0px 2px rgba(255, 255, 255, 0.25)",
|
|
231
|
+
buttonFocusedShadowTertiary: "0px 0px 0px 2px rgba(255, 255, 255, 0.25)",
|
|
232
|
+
buttonDisabledShadow: "none",
|
|
233
|
+
buttonDisabledShadowTertiary: "none",
|
|
234
|
+
buttonInnerShadow: "none",
|
|
235
|
+
buttonInnerShadowTertiary: customShadows?.buttonInnerShadow ?? "none",
|
|
236
|
+
buttonFocusedInnerShadow: "none",
|
|
237
|
+
buttonFocusedInnerShadowTertiary: customShadows?.buttonFocusedInnerShadow ?? "none",
|
|
238
|
+
buttonHoverInnerShadow: "none",
|
|
239
|
+
buttonHoverInnerShadowTertiary: customShadows?.buttonHoverInnerShadow ?? "none",
|
|
240
|
+
buttonDisabledInnerShadow: "none",
|
|
241
|
+
buttonDisabledInnerShadowTertiary: customShadows?.buttonDisabledInnerShadow ?? "none",
|
|
242
|
+
selectedDropdownItem: "none",
|
|
243
|
+
// Override shadows
|
|
244
|
+
...customShadows || {}
|
|
245
|
+
},
|
|
246
|
+
moonpayTheme: "dark"
|
|
247
|
+
});
|
|
248
|
+
darkTheme.accentColors = accentColors;
|
|
249
|
+
|
|
250
|
+
export {
|
|
251
|
+
darkTheme
|
|
252
|
+
};
|
|
@@ -0,0 +1,380 @@
|
|
|
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
|
+
customOpacities,
|
|
165
|
+
customSpacings,
|
|
166
|
+
customTextTransforms,
|
|
167
|
+
overlayBlur = "small",
|
|
168
|
+
modalZIndex = DEFAULT_MODAL_Z_INDEX
|
|
169
|
+
}) => ({
|
|
170
|
+
modalZIndex: String(modalZIndex),
|
|
171
|
+
blurs: {
|
|
172
|
+
modalOverlay: blurs[overlayBlur].modalOverlay
|
|
173
|
+
},
|
|
174
|
+
dimensions: {
|
|
175
|
+
connectExchangeIconSize: "48px",
|
|
176
|
+
cryptoCashToggleIconSize: "20px",
|
|
177
|
+
dollarValueSkeletonHeight: "60px",
|
|
178
|
+
dollarValueSkeletonWidth: "160px",
|
|
179
|
+
inputAmountQuickOptionButtonHeight: "36px",
|
|
180
|
+
inputAmountMinHeight: "76px",
|
|
181
|
+
modalBottomBarButtonHeight: "34px",
|
|
182
|
+
modalTopBarHeight: "56px",
|
|
183
|
+
modalTopbarIconSize: "16px",
|
|
184
|
+
modalTopbarIconWrapperSize: "32px",
|
|
185
|
+
paymentAmountSkeletonBlockHeight: "14px",
|
|
186
|
+
paymentAmountSkeletonBlockWidth: "93px",
|
|
187
|
+
paymentAmountSkeletonCircleSize: "15px",
|
|
188
|
+
paymentMethodItemIconSize: "20px",
|
|
189
|
+
selectAssetItemIconSize: "24px",
|
|
190
|
+
sourceListGap: "4px",
|
|
191
|
+
txBreakdownSkeletonWidth: "72px",
|
|
192
|
+
txSummaryLineSkeletonHeight: "14px",
|
|
193
|
+
txSummaryLineSkeletonWidth: "54px",
|
|
194
|
+
...customDimensions,
|
|
195
|
+
modalBottomBarCloseButtonHeight: customDimensions?.modalBottomBarCloseButtonHeight ?? customDimensions?.modalBottomBarButtonHeight ?? "34px"
|
|
196
|
+
},
|
|
197
|
+
fonts: typeof customFontFamily === "string" ? {
|
|
198
|
+
amountValue: customFontFamily,
|
|
199
|
+
body: customFontFamily,
|
|
200
|
+
buttonTextPrimary: customFontFamily,
|
|
201
|
+
buttonTextSecondary: customFontFamily,
|
|
202
|
+
buttonTextTertiary: customFontFamily,
|
|
203
|
+
dropdownGroupHeader: customFontFamily,
|
|
204
|
+
header: customFontFamily,
|
|
205
|
+
inputAmount: customFontFamily,
|
|
206
|
+
modalTopbarTitle: customFontFamily,
|
|
207
|
+
txStatusDescription: customFontFamily,
|
|
208
|
+
txStatusTitle: customFontFamily
|
|
209
|
+
} : {
|
|
210
|
+
amountValue: fontStacks[fontStack],
|
|
211
|
+
body: fontStacks[fontStack],
|
|
212
|
+
buttonTextPrimary: fontStacks[fontStack],
|
|
213
|
+
buttonTextSecondary: fontStacks[fontStack],
|
|
214
|
+
buttonTextTertiary: fontStacks[fontStack],
|
|
215
|
+
dropdownGroupHeader: fontStacks[fontStack],
|
|
216
|
+
header: fontStacks[fontStack],
|
|
217
|
+
inputAmount: fontStacks[fontStack],
|
|
218
|
+
modalTopbarTitle: fontStacks[fontStack],
|
|
219
|
+
txStatusDescription: fontStacks[fontStack],
|
|
220
|
+
txStatusTitle: fontStacks[fontStack],
|
|
221
|
+
...customFontFamily
|
|
222
|
+
},
|
|
223
|
+
fontWeight: {
|
|
224
|
+
...DEFAULT_FONT_WEIGHTS,
|
|
225
|
+
cryptoCashToggle: DEFAULT_FONT_WEIGHTS.medium,
|
|
226
|
+
dropdownGroupHeader: DEFAULT_FONT_WEIGHTS.medium,
|
|
227
|
+
inputAmount: DEFAULT_FONT_WEIGHTS.medium,
|
|
228
|
+
inputLabel: DEFAULT_FONT_WEIGHTS.medium,
|
|
229
|
+
inputValue: DEFAULT_FONT_WEIGHTS.medium,
|
|
230
|
+
modalTopbarTitle: DEFAULT_FONT_WEIGHTS.medium,
|
|
231
|
+
modalBottomBarButtonText: DEFAULT_FONT_WEIGHTS.medium,
|
|
232
|
+
paymentMethodItemSubtitle: DEFAULT_FONT_WEIGHTS.regular,
|
|
233
|
+
paymentMethodItemTitle: DEFAULT_FONT_WEIGHTS.medium,
|
|
234
|
+
selectAssetItemSubtitle: DEFAULT_FONT_WEIGHTS.regular,
|
|
235
|
+
selectAssetItemTitle: DEFAULT_FONT_WEIGHTS.medium,
|
|
236
|
+
sourceListSectionLabelFontWeight: DEFAULT_FONT_WEIGHTS.medium,
|
|
237
|
+
txBreakdown: DEFAULT_FONT_WEIGHTS.regular,
|
|
238
|
+
txStatusDescription: DEFAULT_FONT_WEIGHTS.regular,
|
|
239
|
+
txStatusTitle: DEFAULT_FONT_WEIGHTS.medium,
|
|
240
|
+
txSummaryLabel: DEFAULT_FONT_WEIGHTS.medium,
|
|
241
|
+
txSummaryValue: DEFAULT_FONT_WEIGHTS.medium,
|
|
242
|
+
formOfPaymentsListSectionLabelFontWeight: DEFAULT_FONT_WEIGHTS.medium,
|
|
243
|
+
withdrawalYouWillReceiveLabel: DEFAULT_FONT_WEIGHTS.regular,
|
|
244
|
+
withdrawalYouWillReceiveValueCrypto: DEFAULT_FONT_WEIGHTS.medium,
|
|
245
|
+
withdrawalYouWillReceiveValueUsd: DEFAULT_FONT_WEIGHTS.regular,
|
|
246
|
+
...customFontWeights
|
|
247
|
+
},
|
|
248
|
+
fontSize: {
|
|
249
|
+
...FONT_SIZINGS[fontSizing],
|
|
250
|
+
body: FONT_SIZINGS[fontSizing][14],
|
|
251
|
+
cryptoCashToggle: FONT_SIZINGS[fontSizing][12],
|
|
252
|
+
"header-14": { fontSize: "14px", lineHeight: "14px" },
|
|
253
|
+
"header-36": { fontSize: "36px", lineHeight: "36px" },
|
|
254
|
+
buttonTextPrimary: FONT_SIZINGS[fontSizing][12],
|
|
255
|
+
buttonTextSecondary: FONT_SIZINGS[fontSizing][10],
|
|
256
|
+
buttonTextTertiary: FONT_SIZINGS[fontSizing][12],
|
|
257
|
+
dollarValue: FONT_SIZINGS[fontSizing][40],
|
|
258
|
+
dropdownGroupHeader: FONT_SIZINGS[fontSizing][12],
|
|
259
|
+
inputAmount: FONT_SIZINGS[fontSizing][57],
|
|
260
|
+
inputLabel: customFontSizings[12] ?? FONT_SIZINGS[fontSizing][12],
|
|
261
|
+
inputValue: customFontSizings[13] ?? FONT_SIZINGS[fontSizing][13],
|
|
262
|
+
modalTopbarSubtitle: FONT_SIZINGS[fontSizing][10],
|
|
263
|
+
modalTopbarTitle: FONT_SIZINGS[fontSizing][13],
|
|
264
|
+
modalBottomBarButtonText: FONT_SIZINGS[fontSizing][12],
|
|
265
|
+
paymentMethodItemSubtitle: FONT_SIZINGS[fontSizing][12],
|
|
266
|
+
paymentMethodItemTitle: FONT_SIZINGS[fontSizing][12],
|
|
267
|
+
selectAssetItemSubtitle: FONT_SIZINGS[fontSizing][10],
|
|
268
|
+
selectAssetItemTitle: FONT_SIZINGS[fontSizing][13],
|
|
269
|
+
txBreakdown: FONT_SIZINGS[fontSizing][12],
|
|
270
|
+
txStatusDescription: FONT_SIZINGS[fontSizing][13],
|
|
271
|
+
txStatusTitle: FONT_SIZINGS[fontSizing][13],
|
|
272
|
+
txSummaryLabel: FONT_SIZINGS[fontSizing][12],
|
|
273
|
+
txSummaryValue: FONT_SIZINGS[fontSizing][12],
|
|
274
|
+
withdrawalYouWillReceive: customFontSizings[12] ?? FONT_SIZINGS[fontSizing][12],
|
|
275
|
+
youPayYouReceivePrimaryFontSize: FONT_SIZINGS[fontSizing][12],
|
|
276
|
+
youPayYouReceiveSecondaryFontSize: FONT_SIZINGS[fontSizing][10],
|
|
277
|
+
depositAddressFontSize: FONT_SIZINGS[fontSizing][10],
|
|
278
|
+
funFeatureListItemFontSize: FONT_SIZINGS[fontSizing][12],
|
|
279
|
+
dropdownItemFontSize: FONT_SIZINGS[fontSizing][12],
|
|
280
|
+
sourceListSectionLabelFontSize: FONT_SIZINGS[fontSizing][12],
|
|
281
|
+
formOfPaymentsListSectionLabelFontSize: FONT_SIZINGS[fontSizing][12],
|
|
282
|
+
quickOptionFontSize: FONT_SIZINGS[fontSizing][14],
|
|
283
|
+
useConnectedFontSize: FONT_SIZINGS[fontSizing][12],
|
|
284
|
+
paymentFeeSummaryTooltip: FONT_SIZINGS[fontSizing][10],
|
|
285
|
+
tooltipContent: FONT_SIZINGS[fontSizing][10],
|
|
286
|
+
...customFontSizings
|
|
287
|
+
},
|
|
288
|
+
radii: {
|
|
289
|
+
actionButton: radiusScales[borderRadius].actionButton,
|
|
290
|
+
actionButtonInner: radiusScales[borderRadius].actionButtonInner,
|
|
291
|
+
connectButton: radiusScales[borderRadius].connectButton,
|
|
292
|
+
menuButton: radiusScales[borderRadius].connectButton,
|
|
293
|
+
modal: radiusScales[borderRadius].modal,
|
|
294
|
+
modalMobile: radiusScales[borderRadius].modalMobile,
|
|
295
|
+
modalActionButton: radiusScales[borderRadius].modalActionButton,
|
|
296
|
+
modalActionButtonMobile: radiusScales[borderRadius].modalActionButtonMobile,
|
|
297
|
+
summaryBox: radiusScales[borderRadius].summaryBox,
|
|
298
|
+
youPayYouReceive: radiusScales[borderRadius].youPayYouReceive,
|
|
299
|
+
inputAmountSwitcher: radiusScales[borderRadius].inputAmountSwitcher,
|
|
300
|
+
qrCode: radiusScales[borderRadius].qrCode,
|
|
301
|
+
skeleton: radiusScales[borderRadius].skeleton,
|
|
302
|
+
tooltip: radiusScales[borderRadius].tooltip,
|
|
303
|
+
dropdown: radiusScales[borderRadius].dropdown,
|
|
304
|
+
dropdownItem: radiusScales[borderRadius].dropdownItem,
|
|
305
|
+
dropdownList: customBorderRadiuses?.dropdownList ?? customBorderRadiuses?.dropdown ?? radiusScales[borderRadius].dropdown,
|
|
306
|
+
modalTopbarIcon: radiusScales[borderRadius].modalTopbarIcon,
|
|
307
|
+
withdrawalInput: radiusScales[borderRadius].withdrawalInput,
|
|
308
|
+
useConnected: radiusScales[borderRadius].useConnected,
|
|
309
|
+
...customBorderRadiuses
|
|
310
|
+
},
|
|
311
|
+
borderWidths: {
|
|
312
|
+
activeOptionBorderWidth: "1px",
|
|
313
|
+
buttonTertiaryBorderWidth: "0px",
|
|
314
|
+
cryptoCashToggleContainerBorderWidth: "0px",
|
|
315
|
+
cryptoCashToggleActiveTabBorderWidth: "1px",
|
|
316
|
+
cryptoCashToggleInactiveTabBorderWidth: "1px",
|
|
317
|
+
txSummaryBoxBorderWidth: "1px",
|
|
318
|
+
...customBorderWidths
|
|
319
|
+
},
|
|
320
|
+
opacities: {
|
|
321
|
+
buttonPrimaryDisabled: "1",
|
|
322
|
+
...customOpacities
|
|
323
|
+
},
|
|
324
|
+
spacing: {
|
|
325
|
+
confirmationStepMarginTop: "6px",
|
|
326
|
+
confirmationStepVerticalGap: "18px",
|
|
327
|
+
cryptoCashToggleContainerPadding: "3px",
|
|
328
|
+
cryptoCashToggleMarginBottom: "16px",
|
|
329
|
+
cryptoCashToggleMarginTop: "24px",
|
|
330
|
+
cryptoCashToggleTabPaddingY: "6px",
|
|
331
|
+
dropdownItemIconGap: "4px",
|
|
332
|
+
dropdownItemPaddingX: "4px",
|
|
333
|
+
dropdownItemPaddingY: "6px",
|
|
334
|
+
dropdownCompactPaddingX: "6px",
|
|
335
|
+
dropdownCompactPaddingY: "6px",
|
|
336
|
+
dropdownPaddingX: "12px",
|
|
337
|
+
dropdownPaddingY: "12px",
|
|
338
|
+
modalBaseHorizontalPadding: "6px",
|
|
339
|
+
modalBottomBarButtonPaddingY: "0px",
|
|
340
|
+
modalBottomHorizontalPadding: "12px",
|
|
341
|
+
modalPaddingBottomUpper: "16px",
|
|
342
|
+
modalPaddingBottomLower: "16px",
|
|
343
|
+
modalTopBarVerticalTextSpacing: "0px",
|
|
344
|
+
selectAssetItemPaddingX: "12px",
|
|
345
|
+
selectAssetItemPaddingY: "8px",
|
|
346
|
+
selectAssetItemTextGap: "0px",
|
|
347
|
+
selectBrokerageItemPaddingX: "12px",
|
|
348
|
+
selectBrokerageItemPaddingY: "11px",
|
|
349
|
+
selectBrokerageListGap: "0px",
|
|
350
|
+
walletConnectorListGap: "10px",
|
|
351
|
+
txBreakdownMarginY: "18px",
|
|
352
|
+
txBreakdownPaddingX: "12px",
|
|
353
|
+
txSummaryBoxPaddingX: "12px",
|
|
354
|
+
txSummaryBoxPaddingY: "12px",
|
|
355
|
+
txSummaryLineItemPadding: "0px",
|
|
356
|
+
txSummaryDividerMarginX: "12px",
|
|
357
|
+
txSummaryDividerMarginY: "12px",
|
|
358
|
+
verticalSectionGap: "18px",
|
|
359
|
+
withdrawalModalPaddingTop: "12px",
|
|
360
|
+
youPayYouReceivePaddingLeft: "12px",
|
|
361
|
+
youPayYouReceivePaddingRight: "16px",
|
|
362
|
+
youPayYouReceivePaddingY: "8px",
|
|
363
|
+
inputPaddingX: "12px",
|
|
364
|
+
inputPaddingY: "12px",
|
|
365
|
+
dropdownActiveItemRegularSizePaddingY: "8px",
|
|
366
|
+
assetListDefaultGap: "4px",
|
|
367
|
+
dropdownGroupDividerMarginY: "8px",
|
|
368
|
+
...customSpacings
|
|
369
|
+
},
|
|
370
|
+
textTransforms: {
|
|
371
|
+
inputAmountQuickOptionButton: "none",
|
|
372
|
+
txStatusTitle: "none",
|
|
373
|
+
...customTextTransforms
|
|
374
|
+
}
|
|
375
|
+
});
|
|
376
|
+
|
|
377
|
+
export {
|
|
378
|
+
systemFontStack,
|
|
379
|
+
baseTheme
|
|
380
|
+
};
|