@funkit/connect 9.7.2-next.0 → 9.8.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 (105) hide show
  1. package/CHANGELOG.md +83 -0
  2. package/dist/__generated__/default_configs.d.ts +1 -1
  3. package/dist/__generated__/default_feature_gates.d.ts +1 -0
  4. package/dist/clients/chunk-LMEQD56M.js +289 -0
  5. package/dist/clients/fanatics.css +1 -1
  6. package/dist/clients/fanatics.js +55 -329
  7. package/dist/clients/lighter.css +14393 -0
  8. package/dist/clients/lighter.d.ts +30 -34
  9. package/dist/clients/lighter.js +657 -0
  10. package/dist/components/Dropdown/BaseDropdown.d.ts +7 -21
  11. package/dist/components/Dropdown/BaseDropdown.utils.d.ts +23 -0
  12. package/dist/components/Dropdown/ChainDropdown.d.ts +2 -1
  13. package/dist/components/Dropdown/TokenAndChainDropdown.d.ts +9 -3
  14. package/dist/components/Dropdown/TokenDropdown.d.ts +7 -3
  15. package/dist/domains/asset.d.ts +0 -1
  16. package/dist/domains/quoteMode/exactOut.d.ts +2 -1
  17. package/dist/domains/quoteMode/resolveQuoteMode.d.ts +3 -1
  18. package/dist/hooks/queries/useWithdrawalQuote.d.ts +2 -8
  19. package/dist/hooks/useCheckoutDirectExecution.d.ts +1 -1
  20. package/dist/hooks/useIsStablecoin.d.ts +2 -0
  21. package/dist/hooks/useTokenAndChainDropdown.d.ts +13 -7
  22. package/dist/hooks/useTokenTransfer.d.ts +2 -2
  23. package/dist/index.css +99 -99
  24. package/dist/index.d.ts +1 -1
  25. package/dist/index.js +5691 -4823
  26. package/dist/modals/CheckoutModal/SourceChange/CryptoCashToggle.d.ts +2 -1
  27. package/dist/modals/CheckoutModal/TransferToken/useTransferTokenTracking.d.ts +2 -2
  28. package/dist/modals/WithdrawalModal/WithdrawalContent.d.ts +11 -1
  29. package/dist/modals/WithdrawalModal/useWithdrawal.d.ts +5 -1
  30. package/dist/providers/FunkitCheckoutContext/types.d.ts +60 -2
  31. package/dist/providers/FunkitHistoryContext.d.ts +2 -2
  32. package/dist/utils/withdrawal.d.ts +6 -1
  33. package/dist/wallets/Wallet.d.ts +11 -0
  34. package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
  35. package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
  36. package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +2 -2
  37. package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
  38. package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
  39. package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
  40. package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
  41. package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
  42. package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
  43. package/dist/wallets/walletConnectors/index.js +42 -42
  44. package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
  45. package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
  46. package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
  47. package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +2 -2
  48. package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
  49. package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
  50. package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
  51. package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
  52. package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
  53. package/package.json +6 -5
  54. package/dist/chunk-64NZSUGQ.js +0 -368
  55. package/dist/chunk-B2B6HDIE.js +0 -238
  56. package/dist/chunk-OQNN7EMQ.js +0 -238
  57. package/dist/chunk-S65TG73G.js +0 -247
  58. package/dist/chunk-VLAOBEJN.js +0 -247
  59. package/dist/clients/chunk-SBQ2UUPK.js +0 -214
  60. package/dist/components/Dropdown/TokenAndChainDropdown.css.d.ts +0 -1
  61. package/dist/hooks/track/CheckoutTrackingContext.d.ts +0 -60
  62. package/dist/hooks/useTokenChain.d.ts +0 -21
  63. package/dist/modals/CheckoutModal/SwappedIframe/SwappedIframeContainer.d.ts +0 -17
  64. package/dist/modals/WithdrwalModal/WithdrawalCallbackSuccess.d.ts +0 -10
  65. package/dist/modals/WithdrwalModal/WithdrawalContent.d.ts +0 -11
  66. package/dist/modals/WithdrwalModal/WithdrawalModal.d.ts +0 -9
  67. package/dist/modals/WithdrwalModal/WithdrawalSuccess.d.ts +0 -15
  68. package/dist/modals/WithdrwalModal/types.d.ts +0 -5
  69. package/dist/modals/WithdrwalModal/useWithdrawal.d.ts +0 -24
  70. package/dist/wallets/walletConnectors/chunk-34HACM5U.js +0 -110
  71. package/dist/wallets/walletConnectors/chunk-4C7ER452.js +0 -93
  72. package/dist/wallets/walletConnectors/chunk-53VYSPXK.js +0 -66
  73. package/dist/wallets/walletConnectors/chunk-5TN5Z2WY.js +0 -87
  74. package/dist/wallets/walletConnectors/chunk-6DRCY52E.js +0 -69
  75. package/dist/wallets/walletConnectors/chunk-6UCI7GM6.js +0 -98
  76. package/dist/wallets/walletConnectors/chunk-6YO27XOM.js +0 -96
  77. package/dist/wallets/walletConnectors/chunk-7OARWILZ.js +0 -92
  78. package/dist/wallets/walletConnectors/chunk-7V33VJAL.js +0 -218
  79. package/dist/wallets/walletConnectors/chunk-APHCF4DT.js +0 -103
  80. package/dist/wallets/walletConnectors/chunk-CJJT7LMT.js +0 -96
  81. package/dist/wallets/walletConnectors/chunk-DEFRRPXB.js +0 -98
  82. package/dist/wallets/walletConnectors/chunk-EKJHJFRN.js +0 -69
  83. package/dist/wallets/walletConnectors/chunk-FG2LDVXL.js +0 -92
  84. package/dist/wallets/walletConnectors/chunk-GH4M6FTK.js +0 -95
  85. package/dist/wallets/walletConnectors/chunk-GSHSWVEG.js +0 -70
  86. package/dist/wallets/walletConnectors/chunk-GVOQTORD.js +0 -87
  87. package/dist/wallets/walletConnectors/chunk-HETS3KKI.js +0 -218
  88. package/dist/wallets/walletConnectors/chunk-HOPH3TQ3.js +0 -99
  89. package/dist/wallets/walletConnectors/chunk-HRDPUW3V.js +0 -94
  90. package/dist/wallets/walletConnectors/chunk-HXWUH73P.js +0 -93
  91. package/dist/wallets/walletConnectors/chunk-IICWJWGZ.js +0 -110
  92. package/dist/wallets/walletConnectors/chunk-KO56HCTI.js +0 -106
  93. package/dist/wallets/walletConnectors/chunk-KWX2SYU2.js +0 -100
  94. package/dist/wallets/walletConnectors/chunk-LCIPVVH5.js +0 -70
  95. package/dist/wallets/walletConnectors/chunk-LI6QY2B5.js +0 -94
  96. package/dist/wallets/walletConnectors/chunk-PKMAPNN6.js +0 -92
  97. package/dist/wallets/walletConnectors/chunk-T4ROGPMF.js +0 -106
  98. package/dist/wallets/walletConnectors/chunk-TTHM3WUR.js +0 -100
  99. package/dist/wallets/walletConnectors/chunk-UDTBQV4Q.js +0 -96
  100. package/dist/wallets/walletConnectors/chunk-V6UOWTEZ.js +0 -95
  101. package/dist/wallets/walletConnectors/chunk-VJZWNQOF.js +0 -92
  102. package/dist/wallets/walletConnectors/chunk-XBLHZICW.js +0 -103
  103. package/dist/wallets/walletConnectors/chunk-XVBSJCW5.js +0 -96
  104. package/dist/wallets/walletConnectors/chunk-YIEASHLS.js +0 -99
  105. package/dist/wallets/walletConnectors/chunk-ZPSPK6LH.js +0 -66
@@ -1,238 +0,0 @@
1
- "use client";
2
- import {
3
- baseTheme
4
- } from "./chunk-64NZSUGQ.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
- //Text
67
- primaryText: "#FFF",
68
- secondaryText: "#8C8C8C",
69
- tertiaryText: "rgba(255, 255, 255, 0.35)",
70
- textSelection: "rgba(255, 255, 255, 0.10)",
71
- selectedDropdownItemText: customColors?.primaryText ?? "#FFF",
72
- copyButtonBackgroundBase: customColors?.offBackground ?? "#1F1F1F",
73
- copyButtonBackgroundHover: customColors?.hoverState ?? "#333333",
74
- copyButtonBackgroundActive: customColors?.inputBorderHover ?? "#525252",
75
- copyButtonBorderBase: customColors?.mediumStroke ?? "#333333",
76
- copyButtonBorderHover: customColors?.mediumStroke ?? "#333333",
77
- funFeatureListBackgroundBase: customColors?.offBackground ?? "#1F1F1F",
78
- funFeatureListBackgroundHover: customColors?.hoverState ?? "#333333",
79
- funFeatureListBorderColor: "transparent",
80
- funFeatureListBorderColorHover: "transparent",
81
- selectedDropdownItemBackground: "transparent",
82
- alwaysVisibleLabelBackgroundHover: "transparent",
83
- // input
84
- inputLabel: customColors?.primaryText ?? "#FFF",
85
- inputBackground: "#000000",
86
- inputBackgroundHover: customColors?.offBackground ?? "#1F1F1F",
87
- inputBorderBase: "#333333",
88
- inputBorderHover: "#525252",
89
- // tab
90
- activeTabBorderColor: "#333333",
91
- activeTabBackground: "#333333",
92
- // button
93
- actionColor: "#FFF",
94
- actionColorHover: "rgba(255, 255, 255, 0.8)",
95
- actionColorDisabled: "rgba(255, 255, 255, 0.65)",
96
- buttonPrimary: accentColor,
97
- buttonDisabled: "rgba(255, 255, 255, 0.20)",
98
- buttonTextPrimary: "#000000",
99
- buttonTextHover: "#000000",
100
- buttonTextDisabled: "#000000",
101
- buttonWarning: accentColors.red.accentColor,
102
- buttonSuccess: "#2EA200",
103
- transparent: "transparent",
104
- buttonBackgroundTertiary: "#333333",
105
- buttonBackgroundHoverTertiary: "#333333",
106
- buttonBackgroundDisabledTertiary: "transparent",
107
- buttonTextTertiary: "#FFF",
108
- buttonTextDisabledTertiary: "rgba(255, 255, 255, 0.65)",
109
- buttonBackground: "#FFF",
110
- buttonBackgroundHover: "#f2f2f2",
111
- buttonBackgroundPressed: "#FFF",
112
- buttonBackgroundDisabled: "rgba(255, 255, 255, 0.65)",
113
- buttonTextSecondaryDisabled: "rgba(255, 255, 255, 0.65)",
114
- buttonTextSecondary: "#FFFFFF",
115
- buttonIconBackgroundHover: "#333333",
116
- buttonIconBackgroundPressed: "#333333",
117
- buttonIconStroke: "rgba(255, 255, 255, 0.35)",
118
- buttonBorderTertiary: "transparent",
119
- buttonBorderFocusedTertiary: "rgba(255, 255, 255, 0.35)",
120
- buttonFocusedOutline: "none",
121
- buttonBorderGradient: "none",
122
- buttonHoverBorderGradient: "none",
123
- buttonDisabledBorderGradient: "none",
124
- // TODO: Make common colors when refactoring the design system
125
- inputAmountQuickOptionBaseBackground: "#1F1F1F",
126
- inputAmountQuickOptionHoverBackground: "#333333",
127
- inputAmountQuickOptionActiveBackground: "#333333",
128
- inputAmountQuickOptionDisabledBackground: "#333333",
129
- inputAmountQuickOptionBaseBorder: "#f2f2f2",
130
- inputAmountQuickOptionHoverBorder: "rgba(255, 255, 255, 0.35)",
131
- inputAmountQuickOptionActiveBorder: "rgba(255, 255, 255, 0.35)",
132
- inputAmountQuickOptionFocusedBorder: "rgba(255, 255, 255, 0.35)",
133
- inputAmountFiatDecimalsColor: customColors?.inputAmountFiatDecimalsColor ?? "none",
134
- youPayYouReceiveBackground: "#000000",
135
- // modalBackground
136
- youPayYouReceiveBorder: "#333333",
137
- // mediumStroke
138
- youPayYouReceivePrimaryText: "#FFF",
139
- // primaryText
140
- youPayYouReceiveSecondaryText: "#8C8C8C",
141
- // secondaryText
142
- withdrawalYouWillReceiveLabel: customColors?.withdrawalYouWillReceiveLabel ?? customColors?.primaryText ?? "#FFF",
143
- withdrawalYouWillReceiveValueCrypto: customColors?.withdrawalYouWillReceiveValueCrypto ?? customColors?.primaryText ?? "#FFF",
144
- withdrawalYouWillReceiveValueUsd: customColors?.withdrawalYouWillReceiveValueUsd ?? customColors?.secondaryText ?? "#8C8C8C",
145
- // badges
146
- badgeBackgroundSuccess: "rgba(124, 242, 136, 0.1)",
147
- badgeBorderSuccess: "rgba(124, 242, 136, 0.2)",
148
- badgeTextSuccess: "rgb(124, 242, 136)",
149
- newBadgeBackground: "linear-gradient(180deg, rgba(57, 76, 56, 0.55) 0%, rgba(61, 81, 65, 0.55) 100%)",
150
- newBadgeBorder: "rgba(122, 221, 122, 0.3)",
151
- newBadgeText: "#A4FF9A",
152
- approvedBadgeBackground: "linear-gradient(180deg, rgba(236, 255, 234, 0.20) 0%, rgba(228, 255, 233, 0.20) 100%)",
153
- approvedBadgeBorder: "rgba(109, 216, 109, 0.08)",
154
- approvedBadgeText: "#8FFFA9",
155
- failedBadgeBackground: "rgba(255, 61, 61, 0.18)",
156
- failedBadgeBorder: "rgba(255, 255, 255, 0.10)",
157
- failedBadgeText: "#F88877",
158
- announceGradientFrom: "#AAAAAA",
159
- announceGradientTo: "#BEBEBE",
160
- fiatPendingGradientFrom: "#AAAAAA",
161
- fiatPendingGradientTo: "#BEBEBE",
162
- fiatSuccessBackgroundFill: "rgba(102, 204, 0, 0.30)",
163
- fiatFailedBackgroundFill: "rgba(255, 61, 61, 0.30)",
164
- fiatStatusIconBorder: "rgba(255, 255, 255, 0.06)",
165
- fiatAccountIconFill: "#002F5E",
166
- fiatAccountGradientFrom: "#3A82FE",
167
- fiatAccountGradientTo: "#73A7FF",
168
- modalHeaderDivider: "#333333",
169
- // lightStroke
170
- modalFooterDivider: "#333333",
171
- // lightStroke
172
- spinnerBackground: customColors?.mediumStroke ?? "rgba(0, 0, 0, 0.3)",
173
- // 30% buttonTextPrimary
174
- spinnerIndicator: customColors?.primaryText ?? "#000",
175
- // 100% buttonTextPrimary
176
- spinnerBackgroundVerifyAccount: "rgba(0, 0, 0, 0.3)",
177
- // 30% buttonTextPrimary
178
- spinnerIndicatorVerifyAccount: customColors?.primaryText ?? "#000",
179
- // 100% buttonTextPrimary
180
- // Override colors
181
- ...customColors || {},
182
- // option Boxes
183
- optionBoxBackground: customColors?.optionBoxBackground ?? customColors?.modalBackground ?? "#000",
184
- // keeps gradient in SourcePaymentMethodItem if optionBoxBackground differs from modal background
185
- optionBoxBackgroundUninteractive: customColors?.optionBoxBackgroundUninteractive ?? "transparent",
186
- optionBoxBorderBase: customColors?.optionBoxBorderBase ?? customColors?.mediumStroke ?? "#333333",
187
- optionBoxBorderHover: customColors?.optionBoxBorderHover ?? customColors?.mediumStroke ?? "#333333",
188
- optionBoxDefaultModeNotActiveBorderBase: customColors?.optionBoxDefaultModeNotActiveBorderBase ?? "transparent",
189
- optionBoxDefaultModeNotActiveBorderHover: customColors?.optionBoxDefaultModeNotActiveBorderHover ?? "transparent",
190
- dropdownActiveItemBackgroundBase: customColors?.dropdownActiveItemBackgroundBase ?? customColors?.modalBackground ?? "#000000",
191
- openDropdownBackgroundColor: customColors?.openDropdownBackgroundColor ?? customColors?.optionBoxBackground ?? customColors?.modalBackground ?? "#000",
192
- dropdownActiveItemBackgroundHover: customColors?.dropdownActiveItemBackgroundHover ?? customColors?.offBackground ?? "#1F1F1F",
193
- dropdownActiveItemBackgroundDisabled: customColors?.dropdownActiveItemBackgroundDisabled ?? "transparent",
194
- dropdownActiveItemBorderBase: customColors?.dropdownActiveItemBorderBase ?? customColors?.mediumStroke ?? "#333333",
195
- dropdownActiveItemBorderHover: customColors?.dropdownActiveItemBorderHover ?? customColors?.mediumStroke ?? "#333333",
196
- dropdownGroupHeader: customColors?.dropdownGroupHeader ?? customColors?.primaryText ?? "#FFF",
197
- // primaryText
198
- txSummaryBoxBackground: customColors?.txSummaryBoxBackground ?? customColors?.modalBackground ?? "#000",
199
- txSummaryBoxBorder: customColors?.txSummaryBoxBorder ?? customColors?.lightStroke ?? "#333333",
200
- counterRingColor: customColors?.counterRingColor ?? accentColor,
201
- cryptoCashToggleContainerBorderColor: customColors?.cryptoCashToggleContainerBorderColor ?? "transparent",
202
- cryptoCashToggleBackground: customColors?.cryptoCashToggleBackground ?? "transparent"
203
- },
204
- shadows: {
205
- connectButton: "0px 4px 12px rgba(0, 0, 0, 0.1)",
206
- dialog: "0px 8px 32px rgba(0, 0, 0, 0.32)",
207
- selectedOption: "0px 2px 6px rgba(0, 0, 0, 0.24)",
208
- selectedWallet: "0px 2px 6px rgba(0, 0, 0, 0.24)",
209
- 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)",
210
- 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)",
211
- qrCode: "0px 0px 0px 1px rgba(255, 255, 255, 0.16)",
212
- buttonShadow: "none",
213
- buttonShadowTertiary: "none",
214
- buttonHoverShadow: "none",
215
- buttonHoverShadowTertiary: "none",
216
- buttonFocusedShadow: "0px 0px 0px 2px rgba(255, 255, 255, 0.25)",
217
- buttonFocusedShadowTertiary: "0px 0px 0px 2px rgba(255, 255, 255, 0.25)",
218
- buttonDisabledShadow: "none",
219
- buttonDisabledShadowTertiary: "none",
220
- buttonInnerShadow: "none",
221
- buttonInnerShadowTertiary: customShadows?.buttonInnerShadow ?? "none",
222
- buttonFocusedInnerShadow: "none",
223
- buttonFocusedInnerShadowTertiary: customShadows?.buttonFocusedInnerShadow ?? "none",
224
- buttonHoverInnerShadow: "none",
225
- buttonHoverInnerShadowTertiary: customShadows?.buttonHoverInnerShadow ?? "none",
226
- buttonDisabledInnerShadow: "none",
227
- buttonDisabledInnerShadowTertiary: customShadows?.buttonDisabledInnerShadow ?? "none",
228
- selectedDropdownItem: "none",
229
- // Override shadows
230
- ...customShadows || {}
231
- },
232
- moonpayTheme: "dark"
233
- });
234
- darkTheme.accentColors = accentColors;
235
-
236
- export {
237
- darkTheme
238
- };
@@ -1,247 +0,0 @@
1
- "use client";
2
- import {
3
- baseTheme
4
- } from "./chunk-O35RTEEF.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
- //Text
67
- primaryText: "#FFF",
68
- secondaryText: "#8C8C8C",
69
- tertiaryText: "rgba(255, 255, 255, 0.35)",
70
- textSelection: "rgba(255, 255, 255, 0.10)",
71
- selectedDropdownItemText: customColors?.primaryText ?? "#FFF",
72
- copyButtonBackgroundBase: customColors?.offBackground ?? "#1F1F1F",
73
- copyButtonBackgroundHover: customColors?.hoverState ?? "#333333",
74
- copyButtonBackgroundActive: customColors?.inputBorderHover ?? "#525252",
75
- useConnectedBackgroundBase: customColors?.mediumStroke ?? "#333333",
76
- useConnectedBackgroundHover: customColors?.mediumStroke ?? "#333333",
77
- copyButtonBorderBase: customColors?.mediumStroke ?? "#333333",
78
- copyButtonBorderHover: customColors?.mediumStroke ?? "#333333",
79
- funFeatureListBackgroundBase: customColors?.offBackground ?? "#1F1F1F",
80
- funFeatureListBackgroundHover: customColors?.hoverState ?? "#333333",
81
- funFeatureListBorderColor: "transparent",
82
- funFeatureListBorderColorHover: "transparent",
83
- selectedDropdownItemBackground: "transparent",
84
- alwaysVisibleLabelBackgroundHover: "transparent",
85
- // input
86
- inputLabel: customColors?.primaryText ?? "#FFF",
87
- inputBackground: "#000000",
88
- inputBackgroundHover: customColors?.offBackground ?? "#1F1F1F",
89
- inputBorderBase: "#333333",
90
- inputBorderHover: "#525252",
91
- // tab
92
- activeTabBorderColor: "#333333",
93
- activeTabBackground: "#333333",
94
- inactiveTabBorderColor: "transparent",
95
- inactiveTabBackgroundBase: "transparent",
96
- inactiveTabBackgroundHover: "transparent",
97
- inactiveTabBackgroundActive: "transparent",
98
- activeTabText: customColors?.primaryText ?? "#FFF",
99
- inactiveTabTextBase: customColors?.secondaryText ?? "#8C8C8C",
100
- inactiveTabHover: customColors?.primaryText ?? "#FFF",
101
- // button
102
- actionColor: "#FFF",
103
- actionColorHover: "rgba(255, 255, 255, 0.8)",
104
- actionColorDisabled: "rgba(255, 255, 255, 0.65)",
105
- buttonPrimary: accentColor,
106
- buttonDisabled: "rgba(255, 255, 255, 0.20)",
107
- buttonTextPrimary: "#000000",
108
- buttonTextHover: "#000000",
109
- buttonTextDisabled: "#000000",
110
- buttonWarning: accentColors.red.accentColor,
111
- buttonSuccess: "#2EA200",
112
- transparent: "transparent",
113
- buttonBackgroundTertiary: "#333333",
114
- buttonBackgroundHoverTertiary: "#333333",
115
- buttonBackgroundDisabledTertiary: "transparent",
116
- buttonTextTertiary: "#FFF",
117
- buttonTextDisabledTertiary: "rgba(255, 255, 255, 0.65)",
118
- buttonBackground: "#FFF",
119
- buttonBackgroundHover: "#f2f2f2",
120
- buttonBackgroundPressed: "#FFF",
121
- buttonBackgroundDisabled: "rgba(255, 255, 255, 0.65)",
122
- buttonTextSecondaryDisabled: "rgba(255, 255, 255, 0.65)",
123
- buttonTextSecondary: "#FFFFFF",
124
- buttonIconBackgroundHover: "#333333",
125
- buttonIconBackgroundPressed: "#333333",
126
- buttonIconStroke: "rgba(255, 255, 255, 0.35)",
127
- buttonBorderTertiary: "transparent",
128
- buttonBorderFocusedTertiary: "rgba(255, 255, 255, 0.35)",
129
- buttonFocusedOutline: "none",
130
- buttonBorderGradient: "none",
131
- buttonHoverBorderGradient: "none",
132
- buttonDisabledBorderGradient: "none",
133
- // TODO: Make common colors when refactoring the design system
134
- inputAmountQuickOptionBaseBackground: "#1F1F1F",
135
- inputAmountQuickOptionHoverBackground: "#333333",
136
- inputAmountQuickOptionActiveBackground: "#333333",
137
- inputAmountQuickOptionDisabledBackground: "#333333",
138
- inputAmountQuickOptionBaseBorder: "#f2f2f2",
139
- inputAmountQuickOptionHoverBorder: "rgba(255, 255, 255, 0.35)",
140
- inputAmountQuickOptionActiveBorder: "rgba(255, 255, 255, 0.35)",
141
- inputAmountQuickOptionFocusedBorder: "rgba(255, 255, 255, 0.35)",
142
- inputAmountFiatDecimalsColor: customColors?.inputAmountFiatDecimalsColor ?? "none",
143
- youPayYouReceiveBackground: "#000000",
144
- // modalBackground
145
- youPayYouReceiveBorder: "#333333",
146
- // mediumStroke
147
- youPayYouReceivePrimaryText: "#FFF",
148
- // primaryText
149
- youPayYouReceiveSecondaryText: "#8C8C8C",
150
- // secondaryText
151
- withdrawalYouWillReceiveLabel: customColors?.withdrawalYouWillReceiveLabel ?? customColors?.primaryText ?? "#FFF",
152
- withdrawalYouWillReceiveValueCrypto: customColors?.withdrawalYouWillReceiveValueCrypto ?? customColors?.primaryText ?? "#FFF",
153
- withdrawalYouWillReceiveValueUsd: customColors?.withdrawalYouWillReceiveValueUsd ?? customColors?.secondaryText ?? "#8C8C8C",
154
- // badges
155
- badgeBackgroundSuccess: "rgba(124, 242, 136, 0.1)",
156
- badgeBorderSuccess: "rgba(124, 242, 136, 0.2)",
157
- badgeTextSuccess: "rgb(124, 242, 136)",
158
- newBadgeBackground: "linear-gradient(180deg, rgba(57, 76, 56, 0.55) 0%, rgba(61, 81, 65, 0.55) 100%)",
159
- newBadgeBorder: "rgba(122, 221, 122, 0.3)",
160
- newBadgeText: "#A4FF9A",
161
- approvedBadgeBackground: "linear-gradient(180deg, rgba(236, 255, 234, 0.20) 0%, rgba(228, 255, 233, 0.20) 100%)",
162
- approvedBadgeBorder: "rgba(109, 216, 109, 0.08)",
163
- approvedBadgeText: "#8FFFA9",
164
- failedBadgeBackground: "rgba(255, 61, 61, 0.18)",
165
- failedBadgeBorder: "rgba(255, 255, 255, 0.10)",
166
- failedBadgeText: "#F88877",
167
- announceGradientFrom: "#AAAAAA",
168
- announceGradientTo: "#BEBEBE",
169
- fiatPendingGradientFrom: "#AAAAAA",
170
- fiatPendingGradientTo: "#BEBEBE",
171
- fiatSuccessBackgroundFill: "rgba(102, 204, 0, 0.30)",
172
- fiatFailedBackgroundFill: "rgba(255, 61, 61, 0.30)",
173
- fiatStatusIconBorder: "rgba(255, 255, 255, 0.06)",
174
- fiatAccountIconFill: "#002F5E",
175
- fiatAccountGradientFrom: "#3A82FE",
176
- fiatAccountGradientTo: "#73A7FF",
177
- modalHeaderDivider: "#333333",
178
- // lightStroke
179
- modalFooterDivider: "#333333",
180
- // lightStroke
181
- spinnerBackground: customColors?.mediumStroke ?? "rgba(0, 0, 0, 0.3)",
182
- // 30% buttonTextPrimary
183
- spinnerIndicator: customColors?.primaryText ?? "#000",
184
- // 100% buttonTextPrimary
185
- spinnerBackgroundVerifyAccount: "rgba(0, 0, 0, 0.3)",
186
- // 30% buttonTextPrimary
187
- spinnerIndicatorVerifyAccount: customColors?.primaryText ?? "#000",
188
- // 100% buttonTextPrimary
189
- // Override colors
190
- ...customColors || {},
191
- // option Boxes
192
- optionBoxBackground: customColors?.optionBoxBackground ?? customColors?.modalBackground ?? "#000",
193
- // keeps gradient in SourcePaymentMethodItem if optionBoxBackground differs from modal background
194
- optionBoxBackgroundUninteractive: customColors?.optionBoxBackgroundUninteractive ?? "transparent",
195
- optionBoxBorderBase: customColors?.optionBoxBorderBase ?? customColors?.mediumStroke ?? "#333333",
196
- optionBoxBorderHover: customColors?.optionBoxBorderHover ?? customColors?.mediumStroke ?? "#333333",
197
- optionBoxDefaultModeNotActiveBorderBase: customColors?.optionBoxDefaultModeNotActiveBorderBase ?? "transparent",
198
- optionBoxDefaultModeNotActiveBorderHover: customColors?.optionBoxDefaultModeNotActiveBorderHover ?? "transparent",
199
- dropdownActiveItemBackgroundBase: customColors?.dropdownActiveItemBackgroundBase ?? customColors?.modalBackground ?? "#000000",
200
- openDropdownBackgroundColor: customColors?.openDropdownBackgroundColor ?? customColors?.optionBoxBackground ?? customColors?.modalBackground ?? "#000",
201
- dropdownActiveItemBackgroundHover: customColors?.dropdownActiveItemBackgroundHover ?? customColors?.offBackground ?? "#1F1F1F",
202
- dropdownActiveItemBackgroundDisabled: customColors?.dropdownActiveItemBackgroundDisabled ?? "transparent",
203
- dropdownActiveItemBorderBase: customColors?.dropdownActiveItemBorderBase ?? customColors?.mediumStroke ?? "#333333",
204
- dropdownActiveItemBorderHover: customColors?.dropdownActiveItemBorderHover ?? customColors?.mediumStroke ?? "#333333",
205
- dropdownGroupHeader: customColors?.dropdownGroupHeader ?? customColors?.primaryText ?? "#FFF",
206
- // primaryText
207
- txSummaryBoxBackground: customColors?.txSummaryBoxBackground ?? customColors?.modalBackground ?? "#000",
208
- txSummaryBoxBorder: customColors?.txSummaryBoxBorder ?? customColors?.lightStroke ?? "#333333",
209
- counterRingColor: customColors?.counterRingColor ?? accentColor,
210
- cryptoCashToggleContainerBorderColor: customColors?.cryptoCashToggleContainerBorderColor ?? "transparent",
211
- cryptoCashToggleBackground: customColors?.cryptoCashToggleBackground ?? "transparent"
212
- },
213
- shadows: {
214
- connectButton: "0px 4px 12px rgba(0, 0, 0, 0.1)",
215
- dialog: "0px 8px 32px rgba(0, 0, 0, 0.32)",
216
- selectedOption: "0px 2px 6px rgba(0, 0, 0, 0.24)",
217
- selectedWallet: "0px 2px 6px rgba(0, 0, 0, 0.24)",
218
- 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)",
219
- 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)",
220
- qrCode: "0px 0px 0px 1px rgba(255, 255, 255, 0.16)",
221
- buttonShadow: "none",
222
- buttonShadowTertiary: "none",
223
- buttonHoverShadow: "none",
224
- buttonHoverShadowTertiary: "none",
225
- buttonFocusedShadow: "0px 0px 0px 2px rgba(255, 255, 255, 0.25)",
226
- buttonFocusedShadowTertiary: "0px 0px 0px 2px rgba(255, 255, 255, 0.25)",
227
- buttonDisabledShadow: "none",
228
- buttonDisabledShadowTertiary: "none",
229
- buttonInnerShadow: "none",
230
- buttonInnerShadowTertiary: customShadows?.buttonInnerShadow ?? "none",
231
- buttonFocusedInnerShadow: "none",
232
- buttonFocusedInnerShadowTertiary: customShadows?.buttonFocusedInnerShadow ?? "none",
233
- buttonHoverInnerShadow: "none",
234
- buttonHoverInnerShadowTertiary: customShadows?.buttonHoverInnerShadow ?? "none",
235
- buttonDisabledInnerShadow: "none",
236
- buttonDisabledInnerShadowTertiary: customShadows?.buttonDisabledInnerShadow ?? "none",
237
- selectedDropdownItem: "none",
238
- // Override shadows
239
- ...customShadows || {}
240
- },
241
- moonpayTheme: "dark"
242
- });
243
- darkTheme.accentColors = accentColors;
244
-
245
- export {
246
- darkTheme
247
- };