@funkit/connect 9.20.0 → 9.21.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 (34) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/dist/{chunk-PFIXC5YK.js → chunk-36KVHK22.js} +5 -2
  3. package/dist/{chunk-6K4U3Z4Z.js → chunk-4YEAUICE.js} +5 -0
  4. package/dist/{chunk-NBECXHBY.js → chunk-67BKQQNG.js} +5 -2
  5. package/dist/clients/chunk-52NKHZS2.js +69 -0
  6. package/dist/clients/{chunk-CSONEKIF.js → chunk-KSSSSWR6.js} +1 -1
  7. package/dist/clients/{chunk-47AQXZQE.js → chunk-NCCAYPLO.js} +1 -1
  8. package/dist/clients/{chunk-JOM2J5WB.js → chunk-OWXKWC7I.js} +27 -16
  9. package/dist/clients/{chunk-UNCVGPTD.js → chunk-ZMVXBMON.js} +1 -1
  10. package/dist/clients/fanatics.css +2891 -2702
  11. package/dist/clients/fanatics.js +5 -5
  12. package/dist/clients/lighter.css +2891 -2702
  13. package/dist/clients/lighter.js +3 -3
  14. package/dist/clients/nado.d.ts +78 -0
  15. package/dist/clients/nado.js +107 -0
  16. package/dist/clients/polymarket/PolymarketDepositAccountDropdown.css +2900 -2708
  17. package/dist/clients/polymarket/PolymarketDepositAccountDropdown.js +5 -5
  18. package/dist/clients/polymarket/index.css +2900 -2708
  19. package/dist/clients/polymarket/index.js +5 -5
  20. package/dist/components/Box/Box.d.ts +21 -21
  21. package/dist/components/FunButton/FunButton.css.d.ts +1 -0
  22. package/dist/components/FunOptionBox/FunOptionBox.css.d.ts +1 -1
  23. package/dist/css/sprinkles.css.d.ts +33 -21
  24. package/dist/index.css +2900 -2708
  25. package/dist/index.js +176 -150
  26. package/dist/modals/WithdrawalModal/WithdrawalContent.d.ts +7 -0
  27. package/dist/providers/FunkitThemeProvider.d.ts +18 -0
  28. package/dist/themes/baseTheme.d.ts +3 -1
  29. package/dist/themes/baseTheme.js +1 -1
  30. package/dist/themes/darkTheme.js +2 -2
  31. package/dist/themes/lightTheme.js +2 -2
  32. package/dist/wallets/walletConnectors/index.js +32 -32
  33. package/package.json +2 -2
  34. package/dist/clients/chunk-JVTKIEOP.js +0 -69
@@ -43,6 +43,13 @@ export declare function isValidWithdrawal({ config, checkoutConfig, withdrawalIn
43
43
  isWithdrawAmountValid: boolean;
44
44
  minWithdrawalDisplayValue: number;
45
45
  };
46
+ export declare const useFrozenSourceTokenBalance: ({ isWithdrawing, sourceTokenBalance, }: {
47
+ isWithdrawing: boolean;
48
+ sourceTokenBalance: string;
49
+ }) => {
50
+ displayedSourceTokenBalance: string;
51
+ freezeDisplayedSourceTokenBalance(sourceTokenBalance: string): void;
52
+ };
46
53
  /**
47
54
  * Builds the source-token options list for the Lighter compound input dropdown.
48
55
  * Currently returns a single option per config; expands when Lighter exposes
@@ -140,6 +140,7 @@ export declare const useActiveTheme: () => {
140
140
  fiatAccountGradientFrom: string;
141
141
  fiatAccountGradientTo: string;
142
142
  optionBoxBackground: string;
143
+ optionBoxBorderedBackground: string;
143
144
  optionBoxBackgroundUninteractive: string;
144
145
  optionBoxBorderBase: string;
145
146
  optionBoxBorderHover: string;
@@ -175,6 +176,8 @@ export declare const useActiveTheme: () => {
175
176
  counterRingColor: string;
176
177
  cryptoCashToggleContainerBorderColor: string;
177
178
  cryptoCashToggleBackground: string;
179
+ qrCodeBackground: string;
180
+ qrCodeForeground: string;
178
181
  withdrawalYouWillReceiveLabel: string;
179
182
  withdrawalYouWillReceiveValueCrypto: string;
180
183
  withdrawalYouWillReceiveValueUsd: string;
@@ -536,6 +539,9 @@ export declare const useActiveTheme: () => {
536
539
  blurs: {
537
540
  modalOverlay: string;
538
541
  };
542
+ opacities: {
543
+ buttonPrimaryDisabled: string;
544
+ };
539
545
  moonpayTheme: string;
540
546
  modalZIndex: string;
541
547
  };
@@ -668,6 +674,7 @@ export declare const useActiveTheme: () => {
668
674
  fiatAccountGradientFrom: string;
669
675
  fiatAccountGradientTo: string;
670
676
  optionBoxBackground: string;
677
+ optionBoxBorderedBackground: string;
671
678
  optionBoxBackgroundUninteractive: string;
672
679
  optionBoxBorderBase: string;
673
680
  optionBoxBorderHover: string;
@@ -703,6 +710,8 @@ export declare const useActiveTheme: () => {
703
710
  counterRingColor: string;
704
711
  cryptoCashToggleContainerBorderColor: string;
705
712
  cryptoCashToggleBackground: string;
713
+ qrCodeBackground: string;
714
+ qrCodeForeground: string;
706
715
  withdrawalYouWillReceiveLabel: string;
707
716
  withdrawalYouWillReceiveValueCrypto: string;
708
717
  withdrawalYouWillReceiveValueUsd: string;
@@ -1064,6 +1073,9 @@ export declare const useActiveTheme: () => {
1064
1073
  blurs: {
1065
1074
  modalOverlay: string;
1066
1075
  };
1076
+ opacities: {
1077
+ buttonPrimaryDisabled: string;
1078
+ };
1067
1079
  moonpayTheme: string;
1068
1080
  modalZIndex: string;
1069
1081
  } | null | undefined;
@@ -1194,6 +1206,7 @@ export declare const useActiveTheme: () => {
1194
1206
  fiatAccountGradientFrom: string;
1195
1207
  fiatAccountGradientTo: string;
1196
1208
  optionBoxBackground: string;
1209
+ optionBoxBorderedBackground: string;
1197
1210
  optionBoxBackgroundUninteractive: string;
1198
1211
  optionBoxBorderBase: string;
1199
1212
  optionBoxBorderHover: string;
@@ -1229,6 +1242,8 @@ export declare const useActiveTheme: () => {
1229
1242
  counterRingColor: string;
1230
1243
  cryptoCashToggleContainerBorderColor: string;
1231
1244
  cryptoCashToggleBackground: string;
1245
+ qrCodeBackground: string;
1246
+ qrCodeForeground: string;
1232
1247
  withdrawalYouWillReceiveLabel: string;
1233
1248
  withdrawalYouWillReceiveValueCrypto: string;
1234
1249
  withdrawalYouWillReceiveValueUsd: string;
@@ -1590,6 +1605,9 @@ export declare const useActiveTheme: () => {
1590
1605
  blurs: {
1591
1606
  modalOverlay: string;
1592
1607
  };
1608
+ opacities: {
1609
+ buttonPrimaryDisabled: string;
1610
+ };
1593
1611
  moonpayTheme: string;
1594
1612
  modalZIndex: string;
1595
1613
  } | null | undefined;
@@ -17,6 +17,7 @@ interface BaseThemeOptions {
17
17
  customBorderRadiuses?: Partial<ThemeVars['radii']>;
18
18
  customBorderWidths?: Partial<ThemeVars['borderWidths']>;
19
19
  customDimensions?: Partial<ThemeVars['dimensions']>;
20
+ customOpacities?: Partial<ThemeVars['opacities']>;
20
21
  customSpacings?: Partial<ThemeVars['spacing']>;
21
22
  customTextTransforms?: Partial<ThemeVars['textTransforms']>;
22
23
  fontSizing?: FontSizeType;
@@ -26,7 +27,7 @@ interface BaseThemeOptions {
26
27
  /** Custom z-index for the modal overlay */
27
28
  modalZIndex?: number;
28
29
  }
29
- export declare const baseTheme: ({ borderRadius, fontStack, fontSizing, customFontFamily, customFontWeights, customFontSizings, customBorderWidths, customBorderRadiuses, customDimensions, customSpacings, customTextTransforms, overlayBlur, modalZIndex, }: BaseThemeOptions) => Pick<ThemeVars, "radii" | "dimensions" | "fonts" | "fontWeight" | "fontSize" | "blurs" | "spacing" | "borderWidths" | "textTransforms" | "modalZIndex">;
30
+ export declare const baseTheme: ({ borderRadius, fontStack, fontSizing, customFontFamily, customFontWeights, customFontSizings, customBorderWidths, customBorderRadiuses, customDimensions, customOpacities, customSpacings, customTextTransforms, overlayBlur, modalZIndex, }: BaseThemeOptions) => Pick<ThemeVars, "radii" | "dimensions" | "fonts" | "fontWeight" | "fontSize" | "blurs" | "spacing" | "borderWidths" | "textTransforms" | "modalZIndex" | "opacities">;
30
31
  export interface AccentColor {
31
32
  accentColor: string;
32
33
  accentColorForeground: string;
@@ -37,5 +38,6 @@ export interface ThemeOptions extends BaseThemeOptions {
37
38
  accentColorForeground?: string;
38
39
  customColors?: Partial<ThemeVars['colors']>;
39
40
  customShadows?: Partial<ThemeVars['shadows']>;
41
+ customOpacities?: Partial<ThemeVars['opacities']>;
40
42
  }
41
43
  export {};
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  baseTheme,
4
4
  systemFontStack
5
- } from "../chunk-6K4U3Z4Z.js";
5
+ } from "../chunk-4YEAUICE.js";
6
6
  export {
7
7
  baseTheme,
8
8
  systemFontStack
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import {
3
3
  darkTheme
4
- } from "../chunk-PFIXC5YK.js";
5
- import "../chunk-6K4U3Z4Z.js";
4
+ } from "../chunk-36KVHK22.js";
5
+ import "../chunk-4YEAUICE.js";
6
6
  export {
7
7
  darkTheme
8
8
  };
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import {
3
3
  lightTheme
4
- } from "../chunk-NBECXHBY.js";
5
- import "../chunk-6K4U3Z4Z.js";
4
+ } from "../chunk-67BKQQNG.js";
5
+ import "../chunk-4YEAUICE.js";
6
6
  export {
7
7
  lightTheme
8
8
  };
@@ -3,8 +3,8 @@ import {
3
3
  zerionWallet
4
4
  } from "./chunk-SWFF3TWJ.js";
5
5
  import {
6
- safeheronWallet
7
- } from "./chunk-76S7R2ND.js";
6
+ mewWallet
7
+ } from "./chunk-MQM45ADF.js";
8
8
  import {
9
9
  talismanWallet
10
10
  } from "./chunk-4DCO3TGL.js";
@@ -30,11 +30,8 @@ import {
30
30
  zealWallet
31
31
  } from "./chunk-52QXXLDS.js";
32
32
  import {
33
- rabbyWallet
34
- } from "./chunk-RB66PKPA.js";
35
- import {
36
- rainbowWallet
37
- } from "./chunk-W2LCLDPX.js";
33
+ phantomWallet
34
+ } from "./chunk-QY53O7WG.js";
38
35
  import {
39
36
  ramperWallet
40
37
  } from "./chunk-OQB55QXP.js";
@@ -44,6 +41,9 @@ import {
44
41
  import {
45
42
  safeWallet
46
43
  } from "./chunk-RCY66YHF.js";
44
+ import {
45
+ safeheronWallet
46
+ } from "./chunk-76S7R2ND.js";
47
47
  import {
48
48
  safepalWallet
49
49
  } from "./chunk-XCNHV3HS.js";
@@ -56,9 +56,6 @@ import {
56
56
  import {
57
57
  metaMaskWallet
58
58
  } from "./chunk-YO2K4MBH.js";
59
- import {
60
- mewWallet
61
- } from "./chunk-MQM45ADF.js";
62
59
  import {
63
60
  oktoWallet
64
61
  } from "./chunk-YWOVAU6O.js";
@@ -75,65 +72,68 @@ import {
75
72
  oneKeyWallet
76
73
  } from "./chunk-WVT6BBJH.js";
77
74
  import {
78
- phantomWallet
79
- } from "./chunk-QY53O7WG.js";
75
+ rabbyWallet
76
+ } from "./chunk-RB66PKPA.js";
80
77
  import {
81
- foxWallet
82
- } from "./chunk-GUQM4QSL.js";
78
+ rainbowWallet
79
+ } from "./chunk-W2LCLDPX.js";
80
+ import {
81
+ dawnWallet
82
+ } from "./chunk-G2PHTVL6.js";
83
83
  import {
84
84
  frameWallet
85
85
  } from "./chunk-BU3ZAT5X.js";
86
- import {
87
- imTokenWallet
88
- } from "./chunk-WNAGGFMG.js";
89
86
  import {
90
87
  gateWallet
91
88
  } from "./chunk-JPN6TWIT.js";
89
+ import {
90
+ imTokenWallet
91
+ } from "./chunk-WNAGGFMG.js";
92
92
  import {
93
93
  frontierWallet
94
94
  } from "./chunk-AVDUNQUW.js";
95
- import {
96
- injectedWallet
97
- } from "./chunk-T6LGKC3F.js";
98
95
  import {
99
96
  kresusWallet
100
97
  } from "./chunk-RICTB3FA.js";
98
+ import {
99
+ injectedWallet
100
+ } from "./chunk-T6LGKC3F.js";
101
101
  import {
102
102
  ledgerWallet
103
103
  } from "./chunk-RPV27V2Y.js";
104
104
  import {
105
105
  clvWallet
106
106
  } from "./chunk-OEEGYENV.js";
107
+ import {
108
+ coin98Wallet
109
+ } from "./chunk-WAHGI5L7.js";
107
110
  import {
108
111
  coinbaseWallet
109
112
  } from "./chunk-2DLDAZRH.js";
110
- import {
111
- coreWallet
112
- } from "./chunk-4NV5BYRP.js";
113
113
  import {
114
114
  bloomWallet
115
115
  } from "./chunk-PJ7Y57EH.js";
116
116
  import {
117
- dawnWallet
118
- } from "./chunk-G2PHTVL6.js";
117
+ coreWallet
118
+ } from "./chunk-4NV5BYRP.js";
119
119
  import {
120
- enkryptWallet
121
- } from "./chunk-HBQK5RD5.js";
120
+ foxWallet
121
+ } from "./chunk-GUQM4QSL.js";
122
122
  import {
123
123
  desigWallet
124
124
  } from "./chunk-FW3WZETT.js";
125
125
  import {
126
- coin98Wallet
127
- } from "./chunk-WAHGI5L7.js";
128
- import {
129
- argentWallet
130
- } from "./chunk-NTMBEOR2.js";
126
+ enkryptWallet
127
+ } from "./chunk-HBQK5RD5.js";
131
128
  import {
132
129
  bifrostWallet
133
130
  } from "./chunk-IULPZP2Q.js";
134
131
  import {
135
132
  bitgetWallet
136
133
  } from "./chunk-TKB2OY6G.js";
134
+ import {
135
+ argentWallet
136
+ } from "./chunk-NTMBEOR2.js";
137
137
  import {
138
138
  bitskiWallet
139
139
  } from "./chunk-7HRFUZFX.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@funkit/connect",
3
- "version": "9.20.0",
3
+ "version": "9.21.0",
4
4
  "description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
5
5
  "files": [
6
6
  "dist",
@@ -114,7 +114,7 @@
114
114
  "@funkit/api-base": "4.5.1",
115
115
  "@funkit/chains": "2.1.0",
116
116
  "@funkit/connect-core": "0.3.1",
117
- "@funkit/fun-relay": "2.8.1",
117
+ "@funkit/fun-relay": "2.8.2",
118
118
  "@funkit/utils": "3.1.0"
119
119
  },
120
120
  "repository": {