@funkit/connect 0.1.4 → 0.1.5

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 (54) hide show
  1. package/dist/{chunk-P6ZB76ND.js → chunk-HS4VFULE.js} +1432 -1133
  2. package/dist/{chunk-IRPFZ4HK.js → chunk-LKGTFED3.js} +7 -6
  3. package/dist/{chunk-U7T37VQU.js → chunk-VGM7OU7P.js} +8 -3
  4. package/dist/{chunk-AHK324EF.js → chunk-WJHR5YCY.js} +1432 -1133
  5. package/dist/components/Box/Box.d.ts +7 -7
  6. package/dist/components/FunButton/FunButton.css.d.ts +1 -0
  7. package/dist/components/FunButton/FunIconButton.d.ts +2 -1
  8. package/dist/components/FunDivider/FunDivider.d.ts +2 -1
  9. package/dist/components/FunInput/FunInput.d.ts +3 -2
  10. package/dist/components/FunNotification/FunNotification.d.ts +3 -1
  11. package/dist/components/FunPayments/FunPaymentMoonpayType.css.d.ts +1 -0
  12. package/dist/components/FunSelect/FunSelect.d.ts +2 -1
  13. package/dist/components/FunkitProvider/FunkitCheckoutContext.d.ts +13 -8
  14. package/dist/components/FunkitProvider/FunkitProvider.d.ts +3 -3
  15. package/dist/components/FunkitWeb2Provider/FunkitWeb2Provider.d.ts +4 -0
  16. package/dist/components/Icons/NoAssetsFoundIcon.d.ts +4 -0
  17. package/dist/components/Icons/SearchIcon.d.ts +3 -1
  18. package/dist/components/SkeletalLoader/SkeletalLoader.css.d.ts +1 -0
  19. package/dist/components/SkeletalLoader/SkeletalLoader.d.ts +2 -0
  20. package/dist/components/index.css +874 -805
  21. package/dist/components/index.js +2 -2
  22. package/dist/css/sprinkles.css.d.ts +21 -0
  23. package/dist/index.css +874 -805
  24. package/dist/index.d.ts +0 -1
  25. package/dist/index.js +5 -10
  26. package/dist/themes/baseTheme.d.ts +1 -1
  27. package/dist/themes/darkTheme.d.ts +4 -0
  28. package/dist/themes/darkTheme.js +1 -1
  29. package/dist/themes/lightTheme.d.ts +4 -0
  30. package/dist/themes/lightTheme.js +1 -1
  31. package/dist/utils/checkout.d.ts +28 -1
  32. package/dist/utils/formatNumber.d.ts +2 -0
  33. package/dist/wallets/walletConnectors/argentWallet/argentWallet.js +2 -2
  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/frontierWallet/frontierWallet.js +2 -2
  37. package/dist/wallets/walletConnectors/index.js +52 -52
  38. package/dist/wallets/walletConnectors/ledgerWallet/ledgerWallet.js +2 -2
  39. package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
  40. package/dist/wallets/walletConnectors/oktoWallet/oktoWallet.js +2 -2
  41. package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
  42. package/dist/wallets/walletConnectors/omniWallet/omniWallet.js +2 -2
  43. package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
  44. package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
  45. package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
  46. package/dist/wallets/walletConnectors/walletConnectWallet/walletConnectWallet.js +2 -2
  47. package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
  48. package/package.json +4 -4
  49. package/dist/chunk-FDHEHORE.js +0 -68
  50. package/dist/chunk-U7C2G4O4.js +0 -67
  51. package/dist/themes/funTheme.d.ts +0 -63
  52. package/dist/themes/funTheme.js +0 -8
  53. package/dist/themes/midnightTheme.d.ts +0 -59
  54. package/dist/themes/midnightTheme.js +0 -8
package/dist/index.d.ts CHANGED
@@ -12,7 +12,6 @@ export { cssStringFromTheme } from './css/cssStringFromTheme';
12
12
  export type { Locale } from './locales/';
13
13
  export { darkTheme } from './themes/darkTheme';
14
14
  export { lightTheme } from './themes/lightTheme';
15
- export { midnightTheme } from './themes/midnightTheme';
16
15
  export { useAddRecentTransaction } from './transactions/useAddRecentTransaction';
17
16
  export { connectorsForWallets } from './wallets/connectorsForWallets';
18
17
  export { getDefaultWallets } from './wallets/getDefaultWallets';
package/dist/index.js CHANGED
@@ -1,13 +1,7 @@
1
1
  "use client";
2
- import {
3
- darkTheme
4
- } from "./chunk-FDHEHORE.js";
5
2
  import {
6
3
  lightTheme
7
- } from "./chunk-U7T37VQU.js";
8
- import {
9
- midnightTheme
10
- } from "./chunk-U7C2G4O4.js";
4
+ } from "./chunk-VGM7OU7P.js";
11
5
  import {
12
6
  ActionButton,
13
7
  AppContext,
@@ -39,8 +33,10 @@ import {
39
33
  useFunkitCheckout,
40
34
  useTransactionStore,
41
35
  useWalletConnectors
42
- } from "./chunk-AHK324EF.js";
43
- import "./chunk-IRPFZ4HK.js";
36
+ } from "./chunk-WJHR5YCY.js";
37
+ import {
38
+ darkTheme
39
+ } from "./chunk-LKGTFED3.js";
44
40
  import "./chunk-VP4CAK4A.js";
45
41
 
46
42
  // src/components/ConnectOptions/MobileOptions.tsx
@@ -930,7 +926,6 @@ export {
930
926
  getDefaultWallets,
931
927
  getWalletConnectConnector,
932
928
  lightTheme,
933
- midnightTheme,
934
929
  useAccountModal,
935
930
  useAddRecentTransaction,
936
931
  useChainModal,
@@ -17,7 +17,7 @@ export interface AccentColor {
17
17
  accentColor: string;
18
18
  accentColorForeground: string;
19
19
  }
20
- export type AccentColorPreset = 'blue' | 'green' | 'red' | 'purple' | 'pink' | 'orange';
20
+ export type AccentColorPreset = 'blue' | 'green' | 'red' | 'purple' | 'pink' | 'orange' | 'white';
21
21
  export interface ThemeOptions extends BaseThemeOptions {
22
22
  accentColor?: string;
23
23
  accentColorForeground?: string;
@@ -7,6 +7,7 @@ export declare const darkTheme: {
7
7
  actionButtonBorder: string;
8
8
  actionButtonBorderMobile: string;
9
9
  actionButtonSecondaryBackground: string;
10
+ actionButtonDisabled: string;
10
11
  closeButton: string;
11
12
  closeButtonBackground: string;
12
13
  connectButtonBackground: string;
@@ -31,6 +32,9 @@ export declare const darkTheme: {
31
32
  profileActionHover: string;
32
33
  profileForeground: string;
33
34
  selectedOptionBorder: string;
35
+ solidLine: string;
36
+ rightTranslucentLine: string;
37
+ leftTranslucentLine: string;
34
38
  standby: string;
35
39
  };
36
40
  shadows: {
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  darkTheme
4
- } from "../chunk-FDHEHORE.js";
4
+ } from "../chunk-LKGTFED3.js";
5
5
  import "../chunk-VP4CAK4A.js";
6
6
  export {
7
7
  darkTheme
@@ -7,6 +7,7 @@ export declare const lightTheme: {
7
7
  actionButtonBorder: string;
8
8
  actionButtonBorderMobile: string;
9
9
  actionButtonSecondaryBackground: string;
10
+ actionButtonDisabled: string;
10
11
  closeButton: string;
11
12
  closeButtonBackground: string;
12
13
  connectButtonBackground: string;
@@ -31,6 +32,9 @@ export declare const lightTheme: {
31
32
  profileActionHover: string;
32
33
  profileForeground: string;
33
34
  selectedOptionBorder: string;
35
+ solidLine: string;
36
+ rightTranslucentLine: string;
37
+ leftTranslucentLine: string;
34
38
  standby: string;
35
39
  };
36
40
  shadows: {
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  lightTheme
4
- } from "../chunk-U7T37VQU.js";
4
+ } from "../chunk-VGM7OU7P.js";
5
5
  import "../chunk-VP4CAK4A.js";
6
6
  export {
7
7
  lightTheme
@@ -13,8 +13,35 @@ export declare function validateCheckoutConfig(config: FunkitCheckoutConfig): {
13
13
  /**
14
14
  * Checks whether user has sufficient targetAsset + targetAssetAmount in their funwallet
15
15
  */
16
- export declare const testAutoExecutionDuringCheckout: (config: FunkitCheckoutConfig, chainItem: ViemChain, wallet: FunWallet) => Promise<boolean>;
16
+ export declare const testAutoExecutionDuringCheckout: (config: FunkitCheckoutConfig, chainItem: ViemChain, wallet: FunWallet) => Promise<{
17
+ result: boolean;
18
+ tokenTicker: null;
19
+ } | {
20
+ result: boolean;
21
+ tokenTicker: string;
22
+ }>;
17
23
  export declare function getTokenAddress(tokenTicker: string, chainId: string): Promise<`0x${string}`>;
24
+ export declare function getFunkitEnvForDirectExecution({ chainId, }: {
25
+ chainId: string;
26
+ }): {
27
+ chain: string;
28
+ gasSponsor: {
29
+ sponsorAddress?: `0x${string}` | undefined;
30
+ token?: string | undefined;
31
+ usePermit?: boolean | undefined;
32
+ useCheckoutSponsor?: boolean | undefined;
33
+ };
34
+ apiKey?: string | undefined;
35
+ fee?: {
36
+ token?: string | undefined;
37
+ amount?: number | undefined;
38
+ gasPercent?: number | undefined;
39
+ recipient: `0x${string}`;
40
+ } | undefined;
41
+ skipDBAction?: boolean | undefined;
42
+ nonce?: bigint | undefined;
43
+ bypassInit?: boolean | undefined;
44
+ };
18
45
  /**
19
46
  * Generates an env config for checkout estimation
20
47
  * So that batch operation creation will not fail even if FW has insufficient funds to pass the estimation.
@@ -16,6 +16,8 @@ interface FormatNumberOptions {
16
16
  /** The largest suffix to use (e.g. if 1000000, we will stop at M and not use the B suffix) */
17
17
  maxSuffixSize?: 1e3 | 1e6 | 1e9 | 1e12;
18
18
  numberFormatOptions?: Intl.NumberFormatOptions;
19
+ /** Adds minimum significant digits value to force numbers to show decimal precision even when there are none 5 -> 5.00 */
20
+ minimumSignificantDigits?: number;
19
21
  }
20
22
  /**
21
23
  * Formats a number with conditional truncation, suffixation, and scientific notation.
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  argentWallet
4
- } from "../chunk-32KC4FTG.js";
5
- import "../chunk-ZOLACFTK.js";
4
+ } from "../chunk-DINSZSEC.js";
6
5
  import "../chunk-4ACOCJJZ.js";
6
+ import "../chunk-ZOLACFTK.js";
7
7
  export {
8
8
  argentWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  bifrostWallet
4
- } from "../chunk-M4KIVTE3.js";
5
- import "../chunk-ZOLACFTK.js";
4
+ } from "../chunk-RAKDFYVF.js";
6
5
  import "../chunk-4ACOCJJZ.js";
6
+ import "../chunk-ZOLACFTK.js";
7
7
  export {
8
8
  bifrostWallet
9
9
  };
@@ -2,9 +2,9 @@
2
2
  import {
3
3
  bitKeepWallet,
4
4
  bitgetWallet
5
- } from "../chunk-DTCZLIMY.js";
6
- import "../chunk-ZOLACFTK.js";
5
+ } from "../chunk-4HP4HVWX.js";
7
6
  import "../chunk-4ACOCJJZ.js";
7
+ import "../chunk-ZOLACFTK.js";
8
8
  export {
9
9
  bitKeepWallet,
10
10
  bitgetWallet
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  frontierWallet
4
- } from "../chunk-4VG2VEG2.js";
5
- import "../chunk-ZOLACFTK.js";
4
+ } from "../chunk-T2DNUVKD.js";
6
5
  import "../chunk-4ACOCJJZ.js";
6
+ import "../chunk-ZOLACFTK.js";
7
7
  export {
8
8
  frontierWallet
9
9
  };
@@ -1,82 +1,85 @@
1
1
  "use client";
2
2
  import {
3
- zealWallet
4
- } from "./chunk-QBKHMTGI.js";
3
+ zerionWallet
4
+ } from "./chunk-7Q7X4HIR.js";
5
5
  import {
6
6
  xdefiWallet
7
7
  } from "./chunk-5ZLRNFDM.js";
8
- import {
9
- safepalWallet
10
- } from "./chunk-RMJYZWKN.js";
11
8
  import {
12
9
  tahoWallet
13
10
  } from "./chunk-OOGGCCFQ.js";
11
+ import {
12
+ omniWallet
13
+ } from "./chunk-2T3BP5YM.js";
14
14
  import {
15
15
  talismanWallet
16
16
  } from "./chunk-5UETJ33B.js";
17
17
  import {
18
18
  trustWallet
19
- } from "./chunk-LU3HYLHT.js";
20
- import {
21
- tokenPocketWallet
22
- } from "./chunk-HHEZNZRR.js";
19
+ } from "./chunk-QVJQ2MU7.js";
23
20
  import {
24
21
  uniswapWallet
25
22
  } from "./chunk-WCZ37NN2.js";
26
23
  import {
27
- zerionWallet
28
- } from "./chunk-BZWTTESU.js";
24
+ tokenPocketWallet
25
+ } from "./chunk-6GAD4OSN.js";
29
26
  import {
30
27
  walletConnectWallet
31
- } from "./chunk-Z47L7SO3.js";
28
+ } from "./chunk-TM5A4D5D.js";
32
29
  import {
33
- rabbyWallet
34
- } from "./chunk-TNC2B7LX.js";
30
+ zealWallet
31
+ } from "./chunk-QBKHMTGI.js";
32
+ import {
33
+ okxWallet
34
+ } from "./chunk-MPVMJW2X.js";
35
35
  import {
36
36
  phantomWallet
37
37
  } from "./chunk-KUZFZL2D.js";
38
38
  import {
39
- oneKeyWallet
40
- } from "./chunk-6CW3SAA3.js";
39
+ rabbyWallet
40
+ } from "./chunk-TNC2B7LX.js";
41
41
  import {
42
42
  rainbowWallet
43
- } from "./chunk-TTTMI2Z2.js";
43
+ } from "./chunk-VDUTD5UR.js";
44
+ import {
45
+ safeheronWallet
46
+ } from "./chunk-7WTKIVCW.js";
44
47
  import {
45
48
  safeWallet
46
49
  } from "./chunk-BNTZHUB6.js";
47
50
  import {
48
- okxWallet
49
- } from "./chunk-EINKDQQW.js";
51
+ safepalWallet
52
+ } from "./chunk-RMJYZWKN.js";
50
53
  import {
51
54
  subWallet
52
55
  } from "./chunk-JU27WJ7W.js";
53
56
  import {
54
- safeheronWallet
55
- } from "./chunk-7WTKIVCW.js";
57
+ frontierWallet
58
+ } from "./chunk-T2DNUVKD.js";
56
59
  import {
57
60
  imTokenWallet
58
61
  } from "./chunk-4TBAMXD2.js";
59
- import {
60
- mewWallet
61
- } from "./chunk-BZFEDZQJ.js";
62
- import {
63
- frontierWallet
64
- } from "./chunk-4VG2VEG2.js";
65
62
  import {
66
63
  injectedWallet
67
64
  } from "./chunk-U32TVZ7G.js";
68
65
  import {
69
- oktoWallet
70
- } from "./chunk-TFHNF64Z.js";
66
+ ledgerWallet
67
+ } from "./chunk-4AGSKVK4.js";
68
+ import {
69
+ mewWallet
70
+ } from "./chunk-BZFEDZQJ.js";
71
71
  import {
72
72
  metaMaskWallet
73
- } from "./chunk-UM7QXLQE.js";
73
+ } from "./chunk-CESIYSTD.js";
74
74
  import {
75
- omniWallet
76
- } from "./chunk-HKBLG5YG.js";
75
+ oktoWallet
76
+ } from "./chunk-3JTRMKJN.js";
77
77
  import {
78
- ledgerWallet
79
- } from "./chunk-WPGD3FGN.js";
78
+ oneKeyWallet
79
+ } from "./chunk-6CW3SAA3.js";
80
+ import {
81
+ clvWallet
82
+ } from "./chunk-C3X4W5P4.js";
80
83
  import {
81
84
  coin98Wallet
82
85
  } from "./chunk-PVTJW4KE.js";
@@ -86,13 +89,12 @@ import {
86
89
  import {
87
90
  dawnWallet
88
91
  } from "./chunk-QJNS6IE4.js";
89
- import {
90
- coinbaseWallet
91
- } from "./chunk-WFTAXMQP.js";
92
- import "./chunk-UZ5XLPAW.js";
93
92
  import {
94
93
  desigWallet
95
94
  } from "./chunk-SXUVHZCG.js";
95
+ import {
96
+ foxWallet
97
+ } from "./chunk-C6BBHBY3.js";
96
98
  import {
97
99
  enkryptWallet
98
100
  } from "./chunk-ND76X5A2.js";
@@ -100,29 +102,27 @@ import {
100
102
  frameWallet
101
103
  } from "./chunk-MBFEMLUU.js";
102
104
  import {
103
- foxWallet
104
- } from "./chunk-C6BBHBY3.js";
105
+ argentWallet
106
+ } from "./chunk-DINSZSEC.js";
105
107
  import {
106
108
  bifrostWallet
107
- } from "./chunk-M4KIVTE3.js";
109
+ } from "./chunk-RAKDFYVF.js";
110
+ import {
111
+ bitskiWallet
112
+ } from "./chunk-FL3REGA5.js";
108
113
  import {
109
114
  bitKeepWallet,
110
115
  bitgetWallet
111
- } from "./chunk-DTCZLIMY.js";
112
- import {
113
- argentWallet
114
- } from "./chunk-32KC4FTG.js";
115
- import "./chunk-ZOLACFTK.js";
116
+ } from "./chunk-4HP4HVWX.js";
117
+ import "./chunk-4ACOCJJZ.js";
116
118
  import {
117
119
  braveWallet
118
120
  } from "./chunk-INSQDNCE.js";
119
121
  import {
120
- clvWallet
121
- } from "./chunk-C3X4W5P4.js";
122
- import "./chunk-4ACOCJJZ.js";
123
- import {
124
- bitskiWallet
125
- } from "./chunk-FL3REGA5.js";
122
+ coinbaseWallet
123
+ } from "./chunk-WFTAXMQP.js";
124
+ import "./chunk-UZ5XLPAW.js";
125
+ import "./chunk-ZOLACFTK.js";
126
126
  export {
127
127
  argentWallet,
128
128
  bifrostWallet,
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  ledgerWallet
4
- } from "../chunk-WPGD3FGN.js";
5
- import "../chunk-ZOLACFTK.js";
4
+ } from "../chunk-4AGSKVK4.js";
6
5
  import "../chunk-4ACOCJJZ.js";
6
+ import "../chunk-ZOLACFTK.js";
7
7
  export {
8
8
  ledgerWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  metaMaskWallet
4
- } from "../chunk-UM7QXLQE.js";
5
- import "../chunk-ZOLACFTK.js";
4
+ } from "../chunk-CESIYSTD.js";
6
5
  import "../chunk-4ACOCJJZ.js";
6
+ import "../chunk-ZOLACFTK.js";
7
7
  export {
8
8
  metaMaskWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  oktoWallet
4
- } from "../chunk-TFHNF64Z.js";
5
- import "../chunk-ZOLACFTK.js";
4
+ } from "../chunk-3JTRMKJN.js";
6
5
  import "../chunk-4ACOCJJZ.js";
6
+ import "../chunk-ZOLACFTK.js";
7
7
  export {
8
8
  oktoWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  okxWallet
4
- } from "../chunk-EINKDQQW.js";
5
- import "../chunk-ZOLACFTK.js";
4
+ } from "../chunk-MPVMJW2X.js";
6
5
  import "../chunk-4ACOCJJZ.js";
6
+ import "../chunk-ZOLACFTK.js";
7
7
  export {
8
8
  okxWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  omniWallet
4
- } from "../chunk-HKBLG5YG.js";
5
- import "../chunk-ZOLACFTK.js";
4
+ } from "../chunk-2T3BP5YM.js";
6
5
  import "../chunk-4ACOCJJZ.js";
6
+ import "../chunk-ZOLACFTK.js";
7
7
  export {
8
8
  omniWallet
9
9
  };
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import {
3
3
  rainbowWallet
4
- } from "../chunk-TTTMI2Z2.js";
4
+ } from "../chunk-VDUTD5UR.js";
5
+ import "../chunk-4ACOCJJZ.js";
5
6
  import "../chunk-UZ5XLPAW.js";
6
7
  import "../chunk-ZOLACFTK.js";
7
- import "../chunk-4ACOCJJZ.js";
8
8
  export {
9
9
  rainbowWallet
10
10
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  tokenPocketWallet
4
- } from "../chunk-HHEZNZRR.js";
5
- import "../chunk-ZOLACFTK.js";
4
+ } from "../chunk-6GAD4OSN.js";
6
5
  import "../chunk-4ACOCJJZ.js";
6
+ import "../chunk-ZOLACFTK.js";
7
7
  export {
8
8
  tokenPocketWallet
9
9
  };
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import {
3
3
  trustWallet
4
- } from "../chunk-LU3HYLHT.js";
4
+ } from "../chunk-QVJQ2MU7.js";
5
+ import "../chunk-4ACOCJJZ.js";
5
6
  import "../chunk-UZ5XLPAW.js";
6
7
  import "../chunk-ZOLACFTK.js";
7
- import "../chunk-4ACOCJJZ.js";
8
8
  export {
9
9
  trustWallet
10
10
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  walletConnectWallet
4
- } from "../chunk-Z47L7SO3.js";
5
- import "../chunk-ZOLACFTK.js";
4
+ } from "../chunk-TM5A4D5D.js";
6
5
  import "../chunk-4ACOCJJZ.js";
6
+ import "../chunk-ZOLACFTK.js";
7
7
  export {
8
8
  walletConnectWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  zerionWallet
4
- } from "../chunk-BZWTTESU.js";
5
- import "../chunk-ZOLACFTK.js";
4
+ } from "../chunk-7Q7X4HIR.js";
6
5
  import "../chunk-4ACOCJJZ.js";
6
+ import "../chunk-ZOLACFTK.js";
7
7
  export {
8
8
  zerionWallet
9
9
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@funkit/connect",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
5
5
  "files": [
6
6
  "dist",
@@ -82,10 +82,10 @@
82
82
  },
83
83
  "dependencies": {
84
84
  "@front-finance/link": "^1.1.9",
85
- "@funkit/core": "^0.10.3",
86
- "@funkit/wagmi-tools": "^0.1.2",
85
+ "@funkit/core": "^0.10.4",
86
+ "@funkit/wagmi-tools": "^0.1.3",
87
87
  "@moonpay/moonpay-react": "^1.4.1",
88
- "@privy-io/js-sdk-core": "^0.7.0",
88
+ "@privy-io/js-sdk-core": "^0.11.0",
89
89
  "@types/uuid": "^9.0.1",
90
90
  "@vanilla-extract/css": "1.9.1",
91
91
  "@vanilla-extract/dynamic": "2.0.2",
@@ -1,68 +0,0 @@
1
- "use client";
2
- import {
3
- baseTheme
4
- } from "./chunk-VP4CAK4A.js";
5
-
6
- // src/themes/darkTheme.ts
7
- var darkGrey = "#1A1B1F";
8
- var accentColors = {
9
- blue: { accentColor: "#3898FF", accentColorForeground: "#FFF" },
10
- green: { accentColor: "#4BD166", accentColorForeground: darkGrey },
11
- orange: { accentColor: "#FF983D", accentColorForeground: darkGrey },
12
- pink: { accentColor: "#FF7AB8", accentColorForeground: darkGrey },
13
- purple: { accentColor: "#7A70FF", accentColorForeground: "#FFF" },
14
- red: { accentColor: "#FF6257", accentColorForeground: "#FFF" }
15
- };
16
- var defaultAccentColor = accentColors.blue;
17
- var darkTheme = ({
18
- accentColor = defaultAccentColor.accentColor,
19
- accentColorForeground = defaultAccentColor.accentColorForeground,
20
- ...baseThemeOptions
21
- } = {}) => ({
22
- ...baseTheme(baseThemeOptions),
23
- colors: {
24
- accentColor,
25
- accentColorForeground,
26
- actionButtonBorder: "rgba(255, 255, 255, 0.04)",
27
- actionButtonBorderMobile: "rgba(255, 255, 255, 0.08)",
28
- actionButtonSecondaryBackground: "rgba(255, 255, 255, 0.08)",
29
- closeButton: "rgba(224, 232, 255, 0.6)",
30
- closeButtonBackground: "rgba(255, 255, 255, 0.08)",
31
- connectButtonBackground: darkGrey,
32
- connectButtonBackgroundError: "#C60000",
33
- connectButtonInnerBackground: "linear-gradient(0deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.15))",
34
- connectButtonText: "#FFF",
35
- connectButtonTextError: "#FFF",
36
- connectionIndicator: "#30E000",
37
- downloadBottomCardBackground: "linear-gradient(126deg, rgba(0, 0, 0, 0) 9.49%, rgba(120, 120, 120, 0.2) 71.04%), #1A1B1F",
38
- downloadTopCardBackground: "linear-gradient(126deg, rgba(120, 120, 120, 0.2) 9.49%, rgba(0, 0, 0, 0) 71.04%), #1A1B1F",
39
- error: "#C60000",
40
- generalBorder: "rgba(255, 255, 255, 0.08)",
41
- generalBorderDim: "rgba(255, 255, 255, 0.04)",
42
- menuItemBackground: "rgba(224, 232, 255, 0.1)",
43
- modalBackdrop: "rgba(0, 0, 0, 0.5)",
44
- modalBackground: "#1A1B1F",
45
- modalBorder: "rgba(255, 255, 255, 0.08)",
46
- modalText: "#FFF",
47
- modalTextDim: "rgba(224, 232, 255, 0.3)",
48
- modalTextSecondary: "rgba(255, 255, 255, 0.6)",
49
- profileAction: "rgba(224, 232, 255, 0.1)",
50
- profileActionHover: "rgba(224, 232, 255, 0.2)",
51
- profileForeground: "rgba(224, 232, 255, 0.05)",
52
- selectedOptionBorder: "rgba(224, 232, 255, 0.1)",
53
- standby: "#FFD641"
54
- },
55
- shadows: {
56
- connectButton: "0px 4px 12px rgba(0, 0, 0, 0.1)",
57
- dialog: "0px 8px 32px rgba(0, 0, 0, 0.32)",
58
- profileDetailsAction: "0px 2px 6px rgba(37, 41, 46, 0.04)",
59
- selectedOption: "0px 2px 6px rgba(0, 0, 0, 0.24)",
60
- selectedWallet: "0px 2px 6px rgba(0, 0, 0, 0.24)",
61
- walletLogo: "0px 2px 16px rgba(0, 0, 0, 0.16)"
62
- }
63
- });
64
- darkTheme.accentColors = accentColors;
65
-
66
- export {
67
- darkTheme
68
- };