@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.
Files changed (77) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/dist/__generated__/default_configs.d.ts +901 -0
  3. package/dist/__generated__/default_feature_gates.d.ts +20 -0
  4. package/dist/chunk-36KVHK22.js +252 -0
  5. package/dist/chunk-4YEAUICE.js +380 -0
  6. package/dist/chunk-67BKQQNG.js +252 -0
  7. package/dist/clients/chunk-25ICASD7.js +2371 -0
  8. package/dist/clients/{chunk-47AQXZQE.js → chunk-4HCOSF4M.js} +1 -1
  9. package/dist/clients/chunk-7GWX2ZS4.js +69 -0
  10. package/dist/clients/{chunk-CSONEKIF.js → chunk-7HNGV6JU.js} +1 -1
  11. package/dist/clients/chunk-EGMA6ATZ.js +2371 -0
  12. package/dist/clients/chunk-GGXTLJ7J.js +290 -0
  13. package/dist/clients/chunk-HRWCNZJA.js +230 -0
  14. package/dist/clients/chunk-JD3FIVZ7.js +69 -0
  15. package/dist/clients/chunk-JTGKAPID.js +2382 -0
  16. package/dist/clients/chunk-L7PABCF2.js +54 -0
  17. package/dist/clients/{chunk-JOM2J5WB.js → chunk-NCUPPJ2Z.js} +21 -10
  18. package/dist/clients/{chunk-UNCVGPTD.js → chunk-NUJ6ZM5F.js} +1 -1
  19. package/dist/clients/chunk-OJLDTEKB.js +54 -0
  20. package/dist/clients/chunk-SSSQQ32F.js +186 -0
  21. package/dist/clients/chunk-UVWNEQMD.js +186 -0
  22. package/dist/clients/chunk-YLZ7COFH.js +230 -0
  23. package/dist/clients/chunk-ZEFHAWRH.js +69 -0
  24. package/dist/clients/fanatics.css +2891 -2702
  25. package/dist/clients/fanatics.js +5 -5
  26. package/dist/clients/lighter.css +2891 -2702
  27. package/dist/clients/lighter.js +3 -3
  28. package/dist/clients/nado.d.ts +78 -0
  29. package/dist/clients/nado.js +107 -0
  30. package/dist/clients/polymarket/PolymarketDepositAccountDropdown.css +2909 -2717
  31. package/dist/clients/polymarket/PolymarketDepositAccountDropdown.js +4 -4
  32. package/dist/clients/polymarket/index.css +2909 -2717
  33. package/dist/clients/polymarket/index.js +4 -4
  34. package/dist/clients/polymarket.d.ts +161 -0
  35. package/dist/clients/polymarket.js +688 -0
  36. package/dist/components/Box/Box.d.ts +21 -21
  37. package/dist/components/FunButton/FunButton.css.d.ts +1 -0
  38. package/dist/components/FunOptionBox/FunOptionBox.css.d.ts +1 -1
  39. package/dist/css/sprinkles.css.d.ts +33 -21
  40. package/dist/hooks/useTokenTransferConfig.d.ts +7 -0
  41. package/dist/index.css +2909 -2717
  42. package/dist/index.js +227 -349
  43. package/dist/interfaces/logTransport.d.ts +51 -0
  44. package/dist/interfaces/swapped-transport.d.ts +78 -0
  45. package/dist/modals/CheckoutModal/SourceChange/EmptyFormOfPaymentsMessage.d.ts +4 -0
  46. package/dist/modals/CheckoutModal/SourceChange/useUpdateSourceAssetForCard.d.ts +4 -0
  47. package/dist/modals/CheckoutModal/SwappedIframe/SwappedErrorMessage.d.ts +6 -0
  48. package/dist/modals/WithdrawalModal/WithdrawalContent.d.ts +7 -0
  49. package/dist/providers/FunkitThemeProvider.d.ts +18 -0
  50. package/dist/themes/baseTheme.d.ts +3 -1
  51. package/dist/themes/baseTheme.js +1 -1
  52. package/dist/themes/darkTheme.js +2 -2
  53. package/dist/themes/lightTheme.js +2 -2
  54. package/dist/utils/flags/resolver.d.ts +34 -0
  55. package/dist/utils/tokenTransfer/disabledList.d.ts +1 -14
  56. package/dist/utils/tokenTransfer/types.d.ts +5 -30
  57. package/dist/wallets/walletConnectors/chunk-2VP2F6EK.js +70 -0
  58. package/dist/wallets/walletConnectors/chunk-4T6ZSRJF.js +69 -0
  59. package/dist/wallets/walletConnectors/chunk-6BW3HLBG.js +96 -0
  60. package/dist/wallets/walletConnectors/chunk-CCQV2ZET.js +218 -0
  61. package/dist/wallets/walletConnectors/chunk-CPI4TD43.js +99 -0
  62. package/dist/wallets/walletConnectors/chunk-F5XEEVG6.js +98 -0
  63. package/dist/wallets/walletConnectors/chunk-HNRB7KJU.js +92 -0
  64. package/dist/wallets/walletConnectors/chunk-HTHAK6XB.js +93 -0
  65. package/dist/wallets/walletConnectors/chunk-MIQTHJ6X.js +66 -0
  66. package/dist/wallets/walletConnectors/chunk-RB3HR4R2.js +95 -0
  67. package/dist/wallets/walletConnectors/chunk-RVOY537T.js +100 -0
  68. package/dist/wallets/walletConnectors/chunk-STVVP43G.js +94 -0
  69. package/dist/wallets/walletConnectors/chunk-UK7C2JXW.js +87 -0
  70. package/dist/wallets/walletConnectors/chunk-VAPGUPHO.js +92 -0
  71. package/dist/wallets/walletConnectors/chunk-VTM6EECM.js +110 -0
  72. package/dist/wallets/walletConnectors/chunk-X6CGV36L.js +103 -0
  73. package/dist/wallets/walletConnectors/chunk-YEZM4CK4.js +96 -0
  74. package/dist/wallets/walletConnectors/chunk-ZNX4EMPB.js +106 -0
  75. package/dist/wallets/walletConnectors/index.js +54 -54
  76. package/package.json +3 -3
  77. package/dist/clients/chunk-JVTKIEOP.js +0 -69
@@ -0,0 +1,252 @@
1
+ "use client";
2
+ import {
3
+ baseTheme
4
+ } from "./chunk-4YEAUICE.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
+ optionBoxBorderedBackground: customColors?.optionBoxBorderedBackground ?? customColors?.optionBoxBackground ?? customColors?.modalBackground ?? "#FFF",
196
+ optionBoxBackgroundUninteractive: customColors?.optionBoxBackgroundUninteractive ?? "transparent",
197
+ optionBoxBorderBase: customColors?.optionBoxBorderBase ?? customColors?.mediumStroke ?? "#F0F0F0",
198
+ optionBoxBorderHover: customColors?.optionBoxBorderHover ?? customColors?.mediumStroke ?? "#F0F0F0",
199
+ optionBoxDefaultModeNotActiveBorderBase: customColors?.optionBoxDefaultModeNotActiveBorderBase ?? "transparent",
200
+ optionBoxDefaultModeNotActiveBorderHover: customColors?.optionBoxDefaultModeNotActiveBorderHover ?? "transparent",
201
+ dropdownActiveItemBackgroundBase: customColors?.dropdownActiveItemBackgroundBase ?? customColors?.modalBackground ?? "#FFF",
202
+ openDropdownBackgroundColor: customColors?.openDropdownBackgroundColor ?? customColors?.optionBoxBackground ?? customColors?.modalBackground ?? "#FFF",
203
+ dropdownActiveItemBackgroundHover: customColors?.dropdownActiveItemBackgroundHover ?? customColors?.offBackground ?? "#F7F7F7",
204
+ dropdownActiveItemBackgroundDisabled: customColors?.dropdownActiveItemBackgroundDisabled ?? "transparent",
205
+ dropdownActiveItemBorderBase: customColors?.dropdownActiveItemBorderBase ?? customColors?.mediumStroke ?? "#F0F0F0",
206
+ dropdownActiveItemBorderHover: customColors?.dropdownActiveItemBorderHover ?? customColors?.mediumStroke ?? "#F0F0F0",
207
+ dropdownGroupHeader: customColors?.dropdownGroupHeader ?? customColors?.primaryText ?? "#000",
208
+ // primaryText
209
+ txSummaryBoxBackground: customColors?.txSummaryBoxBackground ?? customColors?.modalBackground ?? "#FFF",
210
+ txSummaryBoxBorder: customColors?.txSummaryBoxBorder ?? customColors?.lightStroke ?? "#F7F7F7",
211
+ modalBackgroundCheckoutComplete: customColors?.modalBackgroundCheckoutComplete ?? customColors?.modalBackground ?? "#FFF",
212
+ counterRingColor: customColors?.counterRingColor ?? accentColor,
213
+ cryptoCashToggleContainerBorderColor: customColors?.cryptoCashToggleContainerBorderColor ?? "transparent",
214
+ cryptoCashToggleBackground: customColors?.cryptoCashToggleBackground ?? "transparent",
215
+ qrCodeBackground: customColors?.qrCodeBackground ?? customColors?.modalBackground ?? "#FFF",
216
+ qrCodeForeground: customColors?.qrCodeForeground ?? customColors?.primaryText ?? "#000"
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.12)",
223
+ 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)",
224
+ 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)",
225
+ 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)",
226
+ buttonShadow: "none",
227
+ buttonShadowTertiary: customShadows?.buttonShadow ?? "none",
228
+ buttonFocusedShadow: "0px 0px 0px 2px rgba(0, 0, 0, 0.25)",
229
+ buttonFocusedShadowTertiary: "0px 0px 0px 2px rgba(0, 0, 0, 0.25)",
230
+ buttonHoverShadow: "none",
231
+ buttonHoverShadowTertiary: "none",
232
+ buttonDisabledShadow: "none",
233
+ buttonDisabledShadowTertiary: customShadows?.buttonDisabledShadow ?? "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: "light"
247
+ });
248
+ lightTheme.accentColors = accentColors;
249
+
250
+ export {
251
+ lightTheme
252
+ };