@funkit/connect 9.2.1 → 9.3.1

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 (74) hide show
  1. package/CHANGELOG.md +37 -0
  2. package/dist/__generated__/default_configs.d.ts +31 -2
  3. package/dist/__generated__/default_feature_gates.d.ts +1 -0
  4. package/dist/{chunk-3U6TWV25.js → chunk-JKGPN2BQ.js} +26 -7
  5. package/dist/{chunk-P6FYL3PM.js → chunk-VIJQ5A6W.js} +22 -1
  6. package/dist/{chunk-VLXKSNSJ.js → chunk-WXEL44DS.js} +22 -1
  7. package/dist/clients/fanatics.css +5437 -3993
  8. package/dist/clients/fanatics.d.ts +5 -0
  9. package/dist/clients/fanatics.js +15 -4
  10. package/dist/components/Box/Box.d.ts +45 -45
  11. package/dist/components/Dropdown/BaseDropdown.css.d.ts +2 -0
  12. package/dist/components/FunButton/FunButton.css.d.ts +1 -0
  13. package/dist/components/FunButton/FunLinkButton.d.ts +2 -2
  14. package/dist/components/FunCheckoutHistory/FunDirectExecutionHistoryDetail.d.ts +1 -1
  15. package/dist/components/FunOptionBox/FunOptionBox.css.d.ts +1 -1
  16. package/dist/components/FunPayments/FunPaymentMethods.d.ts +10 -0
  17. package/dist/css/sprinkles.css.d.ts +153 -59
  18. package/dist/domains/relay.d.ts +2 -2
  19. package/dist/hooks/useSwappedPreload.d.ts +2 -3
  20. package/dist/index.css +5509 -4026
  21. package/dist/index.js +2138 -2055
  22. package/dist/modals/CheckoutModal/SourceChange/sourceChange.css.d.ts +2 -0
  23. package/dist/modals/CheckoutModal/SwappedIframe/SwappedIframe.d.ts +2 -15
  24. package/dist/modals/CheckoutModal/SwappedIframe/SwappedIframeContainer.d.ts +15 -0
  25. package/dist/modals/CheckoutModal/SwappedIframe/index.d.ts +1 -1
  26. package/dist/providers/FunkitCheckoutContext/types.d.ts +5 -5
  27. package/dist/providers/FunkitConfigContext.d.ts +7 -0
  28. package/dist/providers/FunkitThemeProvider.d.ts +162 -21
  29. package/dist/providers/SwappedProvider.d.ts +8 -8
  30. package/dist/themes/baseTheme.js +1 -1
  31. package/dist/themes/darkTheme.js +2 -2
  32. package/dist/themes/lightTheme.js +2 -2
  33. package/dist/utils/checkout.d.ts +4 -4
  34. package/dist/utils/swapped.d.ts +5 -3
  35. package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
  36. package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
  37. package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +2 -2
  38. package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
  39. package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
  40. package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
  41. package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
  42. package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
  43. package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
  44. package/dist/wallets/walletConnectors/index.js +48 -48
  45. package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
  46. package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
  47. package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
  48. package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +2 -2
  49. package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
  50. package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
  51. package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
  52. package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
  53. package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
  54. package/package.json +3 -2
  55. package/dist/hooks/useIframePool.d.ts +0 -38
  56. package/dist/modals/CheckoutModal/SwappedIframe/SwappedIframePool.d.ts +0 -14
  57. package/dist/wallets/walletConnectors/{chunk-NEK7T3IC.js → chunk-4C7ER452.js} +3 -3
  58. package/dist/wallets/walletConnectors/{chunk-UVMMPRDM.js → chunk-53VYSPXK.js} +3 -3
  59. package/dist/wallets/walletConnectors/{chunk-I7K6LUZR.js → chunk-6UCI7GM6.js} +3 -3
  60. package/dist/wallets/walletConnectors/{chunk-3Y2GG3PM.js → chunk-6YO27XOM.js} +3 -3
  61. package/dist/wallets/walletConnectors/{chunk-DWMUM4F6.js → chunk-7OARWILZ.js} +3 -3
  62. package/dist/wallets/walletConnectors/{chunk-FDVJHNLL.js → chunk-CJJT7LMT.js} +3 -3
  63. package/dist/wallets/walletConnectors/{chunk-CT3QPTAU.js → chunk-EKJHJFRN.js} +3 -3
  64. package/dist/wallets/walletConnectors/{chunk-TIT5F32X.js → chunk-GH4M6FTK.js} +3 -3
  65. package/dist/wallets/walletConnectors/{chunk-UVYZSGIX.js → chunk-GSHSWVEG.js} +3 -3
  66. package/dist/wallets/walletConnectors/{chunk-CMLFDRCP.js → chunk-GVOQTORD.js} +3 -3
  67. package/dist/wallets/walletConnectors/{chunk-3YCR2ZB4.js → chunk-HETS3KKI.js} +3 -3
  68. package/dist/wallets/walletConnectors/{chunk-C4RP2DNH.js → chunk-HOPH3TQ3.js} +3 -3
  69. package/dist/wallets/walletConnectors/{chunk-CBI3SGOC.js → chunk-IICWJWGZ.js} +3 -3
  70. package/dist/wallets/walletConnectors/{chunk-ZMRIQOR5.js → chunk-KO56HCTI.js} +3 -3
  71. package/dist/wallets/walletConnectors/{chunk-COX3VEDR.js → chunk-LI6QY2B5.js} +3 -3
  72. package/dist/wallets/walletConnectors/{chunk-RLLTYOWT.js → chunk-PKMAPNN6.js} +3 -3
  73. package/dist/wallets/walletConnectors/{chunk-UPUDLUBT.js → chunk-TTHM3WUR.js} +3 -3
  74. package/dist/wallets/walletConnectors/{chunk-N3UJMC3V.js → chunk-XBLHZICW.js} +3 -3
package/CHANGELOG.md CHANGED
@@ -1,5 +1,42 @@
1
1
  # @funkit/connect
2
2
 
3
+ ## 9.3.1
4
+
5
+ ### Patch Changes
6
+
7
+ - a77a0a4: feat(connect): show Unavailable badge for geo-blocked payment methods
8
+ - 20f61a0: fix see less text cut off bug
9
+ - a940837: move dropdown to radix ui based implementation
10
+ - 6e3659e: feat: swapped theme edits
11
+ - 06c289a: feat(connect): fanatics withdrawal custom top component
12
+ - 99bcd33: withdrawal max button minimum amount check bug fixed
13
+ - a3e31d3: fix: swapped loader skeleton
14
+ - 466f42d: fix primary button bg mismatch with swapped
15
+ - Updated dependencies [26aca0f]
16
+ - @funkit/api-base@3.0.2
17
+
18
+ ## 9.3.0
19
+
20
+ ### Minor Changes
21
+
22
+ - 9c6f62c: feat(connect): use native icons for common Swapped payment methods
23
+
24
+ ### Patch Changes
25
+
26
+ - 3b3ae60: lighter swapped ui integration part 2
27
+ - d080351: Fix bottom bar layout thrash during checkout complete transition for themed customers
28
+ - 369e926: feat(connect): FOP native logos
29
+ - 50d6d54: chore: swapped file clean up and name change
30
+ - e7c3f9b: opinion theme feedback updates
31
+ - ef5102d: remove false alarm error logging for quote
32
+ - 76ffacf: fix(connect): swapped icon theme comparison
33
+ - 98167fb: feat(connect,api-base): preload single iframe vs iframe pool
34
+ - 6d05d1e: change stakingToken to finalizedToken
35
+ - ce0747d: fix(connect): update swapped icons based on active theme
36
+ - f85ec7b: opinion theme feedbacks second round
37
+ - Updated dependencies [98167fb]
38
+ - @funkit/api-base@3.0.1
39
+
3
40
  ## 9.2.1
4
41
 
5
42
  ### Patch Changes
@@ -283,6 +283,9 @@ declare const _default: {
283
283
  readonly enablemeldpayment: {
284
284
  readonly value: false;
285
285
  };
286
+ readonly enablesourcegrouplabels: {
287
+ readonly value: true;
288
+ };
286
289
  readonly enableswappeddeposit: {
287
290
  readonly value: false;
288
291
  };
@@ -303,6 +306,19 @@ declare const _default: {
303
306
  readonly value: true;
304
307
  };
305
308
  readonly foppriority: {
309
+ readonly variants: readonly [{
310
+ readonly condition: {
311
+ readonly type: "country";
312
+ readonly countryCodes: readonly ["BR"];
313
+ };
314
+ readonly value: readonly ["PIX", "CARDS", "APPLE_PAY", "GOOGLE_PAY", "REVOLUT_PAY", "PAYPAL", "BANK_TRANSFER", "SKRILL"];
315
+ }, {
316
+ readonly condition: {
317
+ readonly type: "country";
318
+ readonly countryCodes: readonly ["IN"];
319
+ };
320
+ readonly value: readonly ["GOOGLE_PAY", "APPLE_PAY", "REVOLUT_PAY", "PAYPAL", "BANK_TRANSFER", "PIX", "SKRILL", "CARDS"];
321
+ }];
306
322
  readonly value: readonly ["CARDS", "APPLE_PAY", "GOOGLE_PAY", "REVOLUT_PAY", "PAYPAL", "BANK_TRANSFER", "PIX", "SKRILL"];
307
323
  };
308
324
  readonly ischeckoutactivated: {
@@ -413,13 +429,26 @@ declare const _default: {
413
429
  };
414
430
  readonly tokentransferchaingroups: {
415
431
  readonly value: {
416
- readonly popular: readonly [1151111081099710, 1, 728126428];
432
+ readonly popular: readonly [];
433
+ };
434
+ };
435
+ readonly tokentransfertest: {
436
+ readonly value: {
437
+ readonly chains: {
438
+ readonly '1': readonly ["0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48", "0x6b175474e89094c44da98b954eedeac495271d0f", "0xdac17f958d2ee523a2206206994597c13d831ec7", "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee"];
439
+ readonly '137': readonly ["0x3c499c542cef5e3811e1192ce70d8cc03d5c3359", "0x2791bca1f2de4661ed88a30c99a7a9449aa84174"];
440
+ readonly '1151111081099710': readonly ["So11111111111111111111111111111111111111112", "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"];
441
+ };
442
+ readonly defaultChainId: 137;
443
+ readonly defaultTokens: readonly [];
444
+ readonly badges: {};
445
+ readonly chainSortOrder: readonly ["1", "1151111081099710", "56", "8453", "137", "42161", "10"];
417
446
  };
418
447
  };
419
448
  readonly tokentransfertokengroups: {
420
449
  readonly value: {
421
450
  readonly popular: readonly [];
422
- readonly stablecoins: readonly ["BUSD", "DAI", "USDC", "USDC.e", "USDe", "USDT"];
451
+ readonly stablecoins: readonly [];
423
452
  };
424
453
  };
425
454
  readonly uda_params: {
@@ -1,4 +1,5 @@
1
1
  declare const _default: {
2
+ readonly 'exact-in': false;
2
3
  readonly 'test-testing-gate': false;
3
4
  };
4
5
  export default _default;
@@ -26,7 +26,8 @@ var radiusScales = {
26
26
  dropdownItem: "4px",
27
27
  dropdownList: "12px",
28
28
  modalTopbarIcon: "9999px",
29
- withdrawalInput: "12px"
29
+ withdrawalInput: "12px",
30
+ useConnected: "8px"
30
31
  },
31
32
  medium: {
32
33
  actionButton: "10px",
@@ -46,7 +47,8 @@ var radiusScales = {
46
47
  dropdownItem: "4px",
47
48
  dropdownList: "10px",
48
49
  modalTopbarIcon: "9999px",
49
- withdrawalInput: "10px"
50
+ withdrawalInput: "10px",
51
+ useConnected: "8px"
50
52
  },
51
53
  none: {
52
54
  actionButton: "0px",
@@ -66,7 +68,8 @@ var radiusScales = {
66
68
  dropdownItem: "0px",
67
69
  dropdownList: "0px",
68
70
  modalTopbarIcon: "0px",
69
- withdrawalInput: "0px"
71
+ withdrawalInput: "0px",
72
+ useConnected: "0px"
70
73
  },
71
74
  small: {
72
75
  actionButton: "8px",
@@ -86,7 +89,8 @@ var radiusScales = {
86
89
  dropdownItem: "4px",
87
90
  dropdownList: "8px",
88
91
  modalTopbarIcon: "9999px",
89
- withdrawalInput: "8px"
92
+ withdrawalInput: "8px",
93
+ useConnected: "8px"
90
94
  }
91
95
  };
92
96
  var blurs = {
@@ -182,6 +186,7 @@ var baseTheme = ({
182
186
  paymentAmountSkeletonCircleSize: "15px",
183
187
  paymentMethodItemIconSize: "20px",
184
188
  selectAssetItemIconSize: "24px",
189
+ sourceListGap: "4px",
185
190
  txBreakdownSkeletonWidth: "72px",
186
191
  txSummaryLineSkeletonHeight: "14px",
187
192
  txSummaryLineSkeletonWidth: "54px",
@@ -214,20 +219,24 @@ var baseTheme = ({
214
219
  ...DEFAULT_FONT_WEIGHTS,
215
220
  cryptoCashToggle: DEFAULT_FONT_WEIGHTS.medium,
216
221
  inputAmount: DEFAULT_FONT_WEIGHTS.medium,
222
+ inputLabel: DEFAULT_FONT_WEIGHTS.medium,
223
+ inputValue: DEFAULT_FONT_WEIGHTS.medium,
217
224
  modalTopbarTitle: DEFAULT_FONT_WEIGHTS.medium,
218
225
  modalBottomBarButtonText: DEFAULT_FONT_WEIGHTS.medium,
219
226
  paymentMethodItemSubtitle: DEFAULT_FONT_WEIGHTS.regular,
220
227
  paymentMethodItemTitle: DEFAULT_FONT_WEIGHTS.medium,
221
228
  selectAssetItemSubtitle: DEFAULT_FONT_WEIGHTS.regular,
222
229
  selectAssetItemTitle: DEFAULT_FONT_WEIGHTS.medium,
223
- transferTokenLabelFontWeight: DEFAULT_FONT_WEIGHTS.medium,
230
+ sourceListSectionLabelFontWeight: DEFAULT_FONT_WEIGHTS.medium,
224
231
  txBreakdown: DEFAULT_FONT_WEIGHTS.regular,
225
232
  txStatusDescription: DEFAULT_FONT_WEIGHTS.regular,
226
233
  txStatusTitle: DEFAULT_FONT_WEIGHTS.medium,
227
234
  txSummaryLabel: DEFAULT_FONT_WEIGHTS.medium,
228
235
  txSummaryValue: DEFAULT_FONT_WEIGHTS.medium,
229
- sourceListSectionLabelFontWeight: DEFAULT_FONT_WEIGHTS.medium,
230
236
  formOfPaymentsListSectionLabelFontWeight: DEFAULT_FONT_WEIGHTS.medium,
237
+ withdrawalYouWillReceiveLabel: DEFAULT_FONT_WEIGHTS.regular,
238
+ withdrawalYouWillReceiveValueCrypto: DEFAULT_FONT_WEIGHTS.medium,
239
+ withdrawalYouWillReceiveValueUsd: DEFAULT_FONT_WEIGHTS.regular,
231
240
  ...customFontWeights
232
241
  },
233
242
  fontSize: {
@@ -241,6 +250,8 @@ var baseTheme = ({
241
250
  buttonTextTertiary: FONT_SIZINGS[fontSizing][12],
242
251
  dollarValue: FONT_SIZINGS[fontSizing][40],
243
252
  inputAmount: FONT_SIZINGS[fontSizing][57],
253
+ inputLabel: customFontSizings[12] ?? FONT_SIZINGS[fontSizing][12],
254
+ inputValue: customFontSizings[13] ?? FONT_SIZINGS[fontSizing][13],
244
255
  modalTopbarSubtitle: FONT_SIZINGS[fontSizing][10],
245
256
  modalTopbarTitle: FONT_SIZINGS[fontSizing][13],
246
257
  modalBottomBarButtonText: FONT_SIZINGS[fontSizing][12],
@@ -253,14 +264,16 @@ var baseTheme = ({
253
264
  txStatusTitle: FONT_SIZINGS[fontSizing][13],
254
265
  txSummaryLabel: FONT_SIZINGS[fontSizing][12],
255
266
  txSummaryValue: FONT_SIZINGS[fontSizing][12],
267
+ withdrawalYouWillReceive: customFontSizings[12] ?? FONT_SIZINGS[fontSizing][12],
256
268
  youPayYouReceivePrimaryFontSize: FONT_SIZINGS[fontSizing][12],
257
269
  youPayYouReceiveSecondaryFontSize: FONT_SIZINGS[fontSizing][10],
258
- transferTokenLabelFontSize: FONT_SIZINGS[fontSizing][12],
259
270
  depositAddressFontSize: FONT_SIZINGS[fontSizing][10],
260
271
  funFeatureListItemFontSize: FONT_SIZINGS[fontSizing][12],
261
272
  dropdownItemFontSize: FONT_SIZINGS[fontSizing][12],
262
273
  sourceListSectionLabelFontSize: FONT_SIZINGS[fontSizing][12],
263
274
  formOfPaymentsListSectionLabelFontSize: FONT_SIZINGS[fontSizing][12],
275
+ quickOptionFontSize: FONT_SIZINGS[fontSizing][14],
276
+ useConnectedFontSize: FONT_SIZINGS[fontSizing][12],
264
277
  ...customFontSizings
265
278
  },
266
279
  radii: {
@@ -283,6 +296,7 @@ var baseTheme = ({
283
296
  dropdownList: customBorderRadiuses?.dropdownList ?? customBorderRadiuses?.dropdown ?? radiusScales[borderRadius].dropdown,
284
297
  modalTopbarIcon: radiusScales[borderRadius].modalTopbarIcon,
285
298
  withdrawalInput: radiusScales[borderRadius].withdrawalInput,
299
+ useConnected: radiusScales[borderRadius].useConnected,
286
300
  ...customBorderRadiuses
287
301
  },
288
302
  borderWidths: {
@@ -318,9 +332,14 @@ var baseTheme = ({
318
332
  txSummaryDividerMarginX: "12px",
319
333
  txSummaryDividerMarginY: "12px",
320
334
  verticalSectionGap: "18px",
335
+ withdrawalModalPaddingTop: "12px",
321
336
  youPayYouReceivePaddingLeft: "12px",
322
337
  youPayYouReceivePaddingRight: "16px",
323
338
  youPayYouReceivePaddingY: "8px",
339
+ inputPaddingX: "12px",
340
+ inputPaddingY: "12px",
341
+ dropdownActiveItemRegularSizePaddingY: "8px",
342
+ assetListDefaultGap: "4px",
324
343
  ...customSpacings
325
344
  },
326
345
  textTransforms: {
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  baseTheme
4
- } from "./chunk-3U6TWV25.js";
4
+ } from "./chunk-JKGPN2BQ.js";
5
5
 
6
6
  // src/themes/lightTheme.ts
7
7
  var accentColors = {
@@ -20,6 +20,7 @@ var lightTheme = ({
20
20
  customColors,
21
21
  customShadows,
22
22
  ...baseThemeOptions
23
+ // biome-ignore lint/complexity/noExcessiveCognitiveComplexity: just a bunch of ?? defaults
23
24
  } = {}) => ({
24
25
  ...baseTheme(baseThemeOptions),
25
26
  colors: {
@@ -68,9 +69,21 @@ var lightTheme = ({
68
69
  tertiaryText: "rgba(0, 0, 0, 0.35)",
69
70
  textSelection: "rgba(0, 0, 0, 0.10)",
70
71
  selectedDropdownItemText: customColors?.primaryText ?? "#000",
72
+ copyButtonBackgroundBase: customColors?.offBackground ?? "#F7F7F7",
73
+ copyButtonBackgroundHover: customColors?.hoverState ?? "#F0F0F0",
74
+ copyButtonBackgroundActive: customColors?.inputBorderHover ?? "#E5E5E5",
75
+ copyButtonBorderBase: customColors?.mediumStroke ?? "#F0F0F0",
76
+ copyButtonBorderHover: customColors?.mediumStroke ?? "#F0F0F0",
77
+ funFeatureListBackgroundBase: customColors?.offBackground ?? "#F7F7F7",
78
+ funFeatureListBackgroundHover: customColors?.hoverState ?? "#F0F0F0",
79
+ funFeatureListBorderColor: "transparent",
80
+ funFeatureListBorderColorHover: "transparent",
71
81
  selectedDropdownItemBackground: "transparent",
82
+ alwaysVisibleLabelBackgroundHover: "transparent",
72
83
  // input
84
+ inputLabel: customColors?.primaryText ?? "#000",
73
85
  inputBackground: "#FFFFFF",
86
+ inputBackgroundHover: customColors?.offBackground ?? "#F7F7F7",
74
87
  inputBorderBase: "#F0F0F0",
75
88
  inputBorderHover: "#E5E5E5",
76
89
  // tab
@@ -126,6 +139,9 @@ var lightTheme = ({
126
139
  // primaryText
127
140
  youPayYouReceiveSecondaryText: "#737373",
128
141
  // secondaryText
142
+ withdrawalYouWillReceiveLabel: customColors?.withdrawalYouWillReceiveLabel ?? customColors?.primaryText ?? "#000",
143
+ withdrawalYouWillReceiveValueCrypto: customColors?.withdrawalYouWillReceiveValueCrypto ?? customColors?.primaryText ?? "#000",
144
+ withdrawalYouWillReceiveValueUsd: customColors?.withdrawalYouWillReceiveValueUsd ?? customColors?.secondaryText ?? "#737373",
129
145
  // badges
130
146
  badgeBackgroundSuccess: "rgba(124, 242, 136, 0.1)",
131
147
  badgeBorderSuccess: "rgba(124, 242, 136, 0.2)",
@@ -167,11 +183,16 @@ var lightTheme = ({
167
183
  optionBoxBackground: customColors?.optionBoxBackground ?? customColors?.modalBackground ?? "#FFF",
168
184
  // keeps gradient in SourcePaymentMethodItem if optionBoxBackground differs from modal background
169
185
  optionBoxBackgroundUninteractive: customColors?.optionBoxBackgroundUninteractive ?? "transparent",
186
+ optionBoxBorderBase: customColors?.optionBoxBorderBase ?? customColors?.mediumStroke ?? "#F0F0F0",
170
187
  optionBoxBorderHover: customColors?.optionBoxBorderHover ?? customColors?.mediumStroke ?? "#F0F0F0",
188
+ optionBoxDefaultModeNotActiveBorderBase: customColors?.optionBoxDefaultModeNotActiveBorderBase ?? "transparent",
189
+ optionBoxDefaultModeNotActiveBorderHover: customColors?.optionBoxDefaultModeNotActiveBorderHover ?? "transparent",
171
190
  dropdownActiveItemBackgroundBase: customColors?.dropdownActiveItemBackgroundBase ?? customColors?.modalBackground ?? "#FFF",
172
191
  openDropdownBackgroundColor: customColors?.openDropdownBackgroundColor ?? customColors?.optionBoxBackground ?? customColors?.modalBackground ?? "#FFF",
173
192
  dropdownActiveItemBackgroundHover: customColors?.dropdownActiveItemBackgroundHover ?? customColors?.offBackground ?? "#F7F7F7",
174
193
  dropdownActiveItemBackgroundDisabled: customColors?.dropdownActiveItemBackgroundDisabled ?? "transparent",
194
+ dropdownActiveItemBorderBase: customColors?.dropdownActiveItemBorderBase ?? customColors?.mediumStroke ?? "#F0F0F0",
195
+ dropdownActiveItemBorderHover: customColors?.dropdownActiveItemBorderHover ?? customColors?.mediumStroke ?? "#F0F0F0",
175
196
  txSummaryBoxBackground: customColors?.txSummaryBoxBackground ?? customColors?.modalBackground ?? "#FFF",
176
197
  txSummaryBoxBorder: customColors?.txSummaryBoxBorder ?? customColors?.lightStroke ?? "#F7F7F7",
177
198
  counterRingColor: customColors?.counterRingColor ?? accentColor,
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  baseTheme
4
- } from "./chunk-3U6TWV25.js";
4
+ } from "./chunk-JKGPN2BQ.js";
5
5
 
6
6
  // src/themes/darkTheme.ts
7
7
  var accentColors = {
@@ -20,6 +20,7 @@ var darkTheme = ({
20
20
  customColors,
21
21
  customShadows,
22
22
  ...baseThemeOptions
23
+ // biome-ignore lint/complexity/noExcessiveCognitiveComplexity: just a bunch of ?? defaults
23
24
  } = {}) => ({
24
25
  ...baseTheme(baseThemeOptions),
25
26
  colors: {
@@ -68,9 +69,21 @@ var darkTheme = ({
68
69
  tertiaryText: "rgba(255, 255, 255, 0.35)",
69
70
  textSelection: "rgba(255, 255, 255, 0.10)",
70
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",
71
81
  selectedDropdownItemBackground: "transparent",
82
+ alwaysVisibleLabelBackgroundHover: "transparent",
72
83
  // input
84
+ inputLabel: customColors?.primaryText ?? "#FFF",
73
85
  inputBackground: "#000000",
86
+ inputBackgroundHover: customColors?.offBackground ?? "#1F1F1F",
74
87
  inputBorderBase: "#333333",
75
88
  inputBorderHover: "#525252",
76
89
  // tab
@@ -126,6 +139,9 @@ var darkTheme = ({
126
139
  // primaryText
127
140
  youPayYouReceiveSecondaryText: "#8C8C8C",
128
141
  // secondaryText
142
+ withdrawalYouWillReceiveLabel: customColors?.withdrawalYouWillReceiveLabel ?? customColors?.primaryText ?? "#FFF",
143
+ withdrawalYouWillReceiveValueCrypto: customColors?.withdrawalYouWillReceiveValueCrypto ?? customColors?.primaryText ?? "#FFF",
144
+ withdrawalYouWillReceiveValueUsd: customColors?.withdrawalYouWillReceiveValueUsd ?? customColors?.secondaryText ?? "#8C8C8C",
129
145
  // badges
130
146
  badgeBackgroundSuccess: "rgba(124, 242, 136, 0.1)",
131
147
  badgeBorderSuccess: "rgba(124, 242, 136, 0.2)",
@@ -167,11 +183,16 @@ var darkTheme = ({
167
183
  optionBoxBackground: customColors?.optionBoxBackground ?? customColors?.modalBackground ?? "#000",
168
184
  // keeps gradient in SourcePaymentMethodItem if optionBoxBackground differs from modal background
169
185
  optionBoxBackgroundUninteractive: customColors?.optionBoxBackgroundUninteractive ?? "transparent",
186
+ optionBoxBorderBase: customColors?.optionBoxBorderBase ?? customColors?.mediumStroke ?? "#333333",
170
187
  optionBoxBorderHover: customColors?.optionBoxBorderHover ?? customColors?.mediumStroke ?? "#333333",
188
+ optionBoxDefaultModeNotActiveBorderBase: customColors?.optionBoxDefaultModeNotActiveBorderBase ?? "transparent",
189
+ optionBoxDefaultModeNotActiveBorderHover: customColors?.optionBoxDefaultModeNotActiveBorderHover ?? "transparent",
171
190
  dropdownActiveItemBackgroundBase: customColors?.dropdownActiveItemBackgroundBase ?? customColors?.modalBackground ?? "#000000",
172
191
  openDropdownBackgroundColor: customColors?.openDropdownBackgroundColor ?? customColors?.optionBoxBackground ?? customColors?.modalBackground ?? "#000",
173
192
  dropdownActiveItemBackgroundHover: customColors?.dropdownActiveItemBackgroundHover ?? customColors?.offBackground ?? "#1F1F1F",
174
193
  dropdownActiveItemBackgroundDisabled: customColors?.dropdownActiveItemBackgroundDisabled ?? "transparent",
194
+ dropdownActiveItemBorderBase: customColors?.dropdownActiveItemBorderBase ?? customColors?.mediumStroke ?? "#333333",
195
+ dropdownActiveItemBorderHover: customColors?.dropdownActiveItemBorderHover ?? customColors?.mediumStroke ?? "#333333",
175
196
  txSummaryBoxBackground: customColors?.txSummaryBoxBackground ?? customColors?.modalBackground ?? "#000",
176
197
  txSummaryBoxBorder: customColors?.txSummaryBoxBorder ?? customColors?.lightStroke ?? "#333333",
177
198
  counterRingColor: customColors?.counterRingColor ?? accentColor,