@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.
Files changed (82) hide show
  1. package/CHANGELOG.md +26 -18
  2. package/dist/clients/aave.d.ts +2 -0
  3. package/dist/clients/aave.js +3 -0
  4. package/dist/clients/{chunk-7HNGV6JU.js → chunk-KSSSSWR6.js} +1 -1
  5. package/dist/clients/{chunk-4HCOSF4M.js → chunk-NCCAYPLO.js} +1 -1
  6. package/dist/clients/{chunk-NCUPPJ2Z.js → chunk-OWXKWC7I.js} +8 -8
  7. package/dist/clients/{chunk-NUJ6ZM5F.js → chunk-ZMVXBMON.js} +1 -1
  8. package/dist/clients/fanatics.css +1 -1
  9. package/dist/clients/fanatics.js +3 -3
  10. package/dist/clients/lighter.css +1 -1
  11. package/dist/clients/lighter.js +3 -3
  12. package/dist/clients/polymarket/PolymarketDepositAccountDropdown.css +11 -11
  13. package/dist/clients/polymarket/PolymarketDepositAccountDropdown.js +5 -5
  14. package/dist/clients/polymarket/index.css +11 -11
  15. package/dist/clients/polymarket/index.js +5 -5
  16. package/dist/components/Icons/New/ArrowCircleUpRightIcon.d.ts +4 -0
  17. package/dist/domains/swapped.d.ts +10 -1
  18. package/dist/hooks/queries/useRecentCheckouts.d.ts +4 -2
  19. package/dist/hooks/queries/useRecentDeposits.d.ts +4 -9
  20. package/dist/hooks/track/CheckoutModalEvent.d.ts +1 -0
  21. package/dist/hooks/useEffectEvent.d.ts +1 -3
  22. package/dist/hooks/usePaymentMethodTabs.d.ts +5 -0
  23. package/dist/hooks/usePaymentSources.d.ts +1 -1
  24. package/dist/hooks/useTokenTransferConfig.d.ts +0 -7
  25. package/dist/index.css +11 -11
  26. package/dist/index.js +1470 -1250
  27. package/dist/interfaces/identity.d.ts +7 -0
  28. package/dist/modals/CheckoutModal/InputAmount/InputAmountLayout.d.ts +6 -1
  29. package/dist/modals/CheckoutModal/SourceChange/CryptoCashToggle.d.ts +2 -2
  30. package/dist/modals/WithdrawalModal/LighterWithdrawal.d.ts +31 -0
  31. package/dist/providers/FunkitConfigContext.d.ts +2 -0
  32. package/dist/providers/SwappedProvider.d.ts +2 -2
  33. package/dist/utils/checkout.d.ts +18 -20
  34. package/dist/utils/customer.d.ts +13 -1
  35. package/dist/utils/tokenTransfer/disabledList.d.ts +14 -1
  36. package/dist/utils/tokenTransfer/types.d.ts +30 -5
  37. package/dist/wallets/walletConnectors/index.js +48 -48
  38. package/package.json +2 -2
  39. package/dist/__generated__/default_configs.d.ts +0 -901
  40. package/dist/__generated__/default_feature_gates.d.ts +0 -20
  41. package/dist/chunk-6K4U3Z4Z.js +0 -375
  42. package/dist/chunk-NBECXHBY.js +0 -249
  43. package/dist/chunk-PFIXC5YK.js +0 -249
  44. package/dist/clients/chunk-25ICASD7.js +0 -2371
  45. package/dist/clients/chunk-7GWX2ZS4.js +0 -69
  46. package/dist/clients/chunk-EGMA6ATZ.js +0 -2371
  47. package/dist/clients/chunk-GGXTLJ7J.js +0 -290
  48. package/dist/clients/chunk-HRWCNZJA.js +0 -230
  49. package/dist/clients/chunk-JTGKAPID.js +0 -2382
  50. package/dist/clients/chunk-L7PABCF2.js +0 -54
  51. package/dist/clients/chunk-OJLDTEKB.js +0 -54
  52. package/dist/clients/chunk-SSSQQ32F.js +0 -186
  53. package/dist/clients/chunk-UVWNEQMD.js +0 -186
  54. package/dist/clients/chunk-YLZ7COFH.js +0 -230
  55. package/dist/clients/chunk-ZEFHAWRH.js +0 -69
  56. package/dist/clients/polymarket.d.ts +0 -161
  57. package/dist/clients/polymarket.js +0 -688
  58. package/dist/interfaces/logTransport.d.ts +0 -51
  59. package/dist/interfaces/swapped-transport.d.ts +0 -78
  60. package/dist/modals/CheckoutModal/SourceChange/EmptyFormOfPaymentsMessage.d.ts +0 -4
  61. package/dist/modals/CheckoutModal/SourceChange/useUpdateSourceAssetForCard.d.ts +0 -4
  62. package/dist/modals/CheckoutModal/SwappedIframe/SwappedErrorMessage.d.ts +0 -6
  63. package/dist/utils/flags/resolver.d.ts +0 -34
  64. package/dist/wallets/walletConnectors/chunk-2VP2F6EK.js +0 -70
  65. package/dist/wallets/walletConnectors/chunk-4T6ZSRJF.js +0 -69
  66. package/dist/wallets/walletConnectors/chunk-6BW3HLBG.js +0 -96
  67. package/dist/wallets/walletConnectors/chunk-CCQV2ZET.js +0 -218
  68. package/dist/wallets/walletConnectors/chunk-CPI4TD43.js +0 -99
  69. package/dist/wallets/walletConnectors/chunk-F5XEEVG6.js +0 -98
  70. package/dist/wallets/walletConnectors/chunk-HNRB7KJU.js +0 -92
  71. package/dist/wallets/walletConnectors/chunk-HTHAK6XB.js +0 -93
  72. package/dist/wallets/walletConnectors/chunk-MIQTHJ6X.js +0 -66
  73. package/dist/wallets/walletConnectors/chunk-RB3HR4R2.js +0 -95
  74. package/dist/wallets/walletConnectors/chunk-RVOY537T.js +0 -100
  75. package/dist/wallets/walletConnectors/chunk-STVVP43G.js +0 -94
  76. package/dist/wallets/walletConnectors/chunk-UK7C2JXW.js +0 -87
  77. package/dist/wallets/walletConnectors/chunk-VAPGUPHO.js +0 -92
  78. package/dist/wallets/walletConnectors/chunk-VTM6EECM.js +0 -110
  79. package/dist/wallets/walletConnectors/chunk-X6CGV36L.js +0 -103
  80. package/dist/wallets/walletConnectors/chunk-YEZM4CK4.js +0 -96
  81. package/dist/wallets/walletConnectors/chunk-ZNX4EMPB.js +0 -106
  82. /package/dist/clients/{chunk-JD3FIVZ7.js → chunk-52NKHZS2.js} +0 -0
@@ -1,249 +0,0 @@
1
- "use client";
2
- import {
3
- baseTheme
4
- } from "./chunk-6K4U3Z4Z.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
- optionBoxBackgroundUninteractive: customColors?.optionBoxBackgroundUninteractive ?? "transparent",
196
- optionBoxBorderBase: customColors?.optionBoxBorderBase ?? customColors?.mediumStroke ?? "#333333",
197
- optionBoxBorderHover: customColors?.optionBoxBorderHover ?? customColors?.mediumStroke ?? "#333333",
198
- optionBoxDefaultModeNotActiveBorderBase: customColors?.optionBoxDefaultModeNotActiveBorderBase ?? "transparent",
199
- optionBoxDefaultModeNotActiveBorderHover: customColors?.optionBoxDefaultModeNotActiveBorderHover ?? "transparent",
200
- dropdownActiveItemBackgroundBase: customColors?.dropdownActiveItemBackgroundBase ?? customColors?.modalBackground ?? "#000000",
201
- openDropdownBackgroundColor: customColors?.openDropdownBackgroundColor ?? customColors?.optionBoxBackground ?? customColors?.modalBackground ?? "#000",
202
- dropdownActiveItemBackgroundHover: customColors?.dropdownActiveItemBackgroundHover ?? customColors?.offBackground ?? "#1F1F1F",
203
- dropdownActiveItemBackgroundDisabled: customColors?.dropdownActiveItemBackgroundDisabled ?? "transparent",
204
- dropdownActiveItemBorderBase: customColors?.dropdownActiveItemBorderBase ?? customColors?.mediumStroke ?? "#333333",
205
- dropdownActiveItemBorderHover: customColors?.dropdownActiveItemBorderHover ?? customColors?.mediumStroke ?? "#333333",
206
- dropdownGroupHeader: customColors?.dropdownGroupHeader ?? customColors?.primaryText ?? "#FFF",
207
- // primaryText
208
- txSummaryBoxBackground: customColors?.txSummaryBoxBackground ?? customColors?.modalBackground ?? "#000",
209
- txSummaryBoxBorder: customColors?.txSummaryBoxBorder ?? customColors?.lightStroke ?? "#333333",
210
- modalBackgroundCheckoutComplete: customColors?.modalBackgroundCheckoutComplete ?? customColors?.modalBackground ?? "#000",
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.24)",
220
- 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)",
221
- 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)",
222
- qrCode: "0px 0px 0px 1px rgba(255, 255, 255, 0.16)",
223
- buttonShadow: "none",
224
- buttonShadowTertiary: "none",
225
- buttonHoverShadow: "none",
226
- buttonHoverShadowTertiary: "none",
227
- buttonFocusedShadow: "0px 0px 0px 2px rgba(255, 255, 255, 0.25)",
228
- buttonFocusedShadowTertiary: "0px 0px 0px 2px rgba(255, 255, 255, 0.25)",
229
- buttonDisabledShadow: "none",
230
- buttonDisabledShadowTertiary: "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: "dark"
244
- });
245
- darkTheme.accentColors = accentColors;
246
-
247
- export {
248
- darkTheme
249
- };