@funkit/connect 9.19.1 → 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 (128) hide show
  1. package/CHANGELOG.md +59 -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/argentWallet-2WSTOUAO.js +7 -0
  6. package/dist/clients/bifrostWallet-5NQVDZ5P.js +7 -0
  7. package/dist/clients/bitgetWallet-CBQAJOIK.js +7 -0
  8. package/dist/clients/bitskiWallet-OLIYN3IU.js +7 -0
  9. package/dist/clients/bitverseWallet-AQMAJ2NN.js +7 -0
  10. package/dist/clients/bloomWallet-MJRQJYSG.js +7 -0
  11. package/dist/clients/braveWallet-T76TVZA6.js +7 -0
  12. package/dist/clients/bybitWallet-GOPAS32Q.js +7 -0
  13. package/dist/clients/chunk-4752IYY6.js +94 -0
  14. package/dist/clients/chunk-52NKHZS2.js +69 -0
  15. package/dist/clients/chunk-KSSSSWR6.js +54 -0
  16. package/dist/clients/{polymarket.js → chunk-MOUTRRN3.js} +12 -4
  17. package/dist/clients/chunk-MRBN4XCA.js +96 -0
  18. package/dist/clients/chunk-NCCAYPLO.js +230 -0
  19. package/dist/clients/chunk-OWXKWC7I.js +2382 -0
  20. package/dist/clients/chunk-ZMVXBMON.js +186 -0
  21. package/dist/clients/clvWallet-VVMLP7BK.js +7 -0
  22. package/dist/clients/coin98Wallet-I5CP5KYZ.js +7 -0
  23. package/dist/clients/coinbaseWallet-ICYEIYQD.js +7 -0
  24. package/dist/clients/coreWallet-RFVUHOVE.js +7 -0
  25. package/dist/clients/dawnWallet-QBFTQLS4.js +7 -0
  26. package/dist/clients/desigWallet-IBKYOHSY.js +7 -0
  27. package/dist/clients/enkryptWallet-ZVUZMI7H.js +7 -0
  28. package/dist/clients/fanatics.css +2891 -2702
  29. package/dist/clients/fanatics.js +43 -84
  30. package/dist/clients/foxWallet-I7D5KIW4.js +7 -0
  31. package/dist/clients/frameWallet-UDD4OVZX.js +7 -0
  32. package/dist/clients/frontierWallet-5QV7ZACT.js +7 -0
  33. package/dist/clients/gateWallet-CJNGQQCV.js +7 -0
  34. package/dist/clients/imTokenWallet-UPA7ADZ2.js +7 -0
  35. package/dist/clients/injectedWallet-OIRJSVBZ.js +7 -0
  36. package/dist/clients/kresusWallet-7ROCNWAU.js +7 -0
  37. package/dist/clients/ledgerWallet-3FCEIKPD.js +7 -0
  38. package/dist/clients/lighter.css +2891 -2702
  39. package/dist/clients/lighter.js +9 -179
  40. package/dist/clients/metaMaskWallet-RMHEKBDR.js +7 -0
  41. package/dist/clients/mewWallet-ANFGVCZT.js +7 -0
  42. package/dist/clients/nado.d.ts +78 -0
  43. package/dist/clients/nado.js +107 -0
  44. package/dist/clients/oktoWallet-Q5XCEOTD.js +7 -0
  45. package/dist/clients/okxWallet-GJMKZIND.js +7 -0
  46. package/dist/clients/omniWallet-YH4FEL6J.js +7 -0
  47. package/dist/clients/oneInchWallet-4S73ZPPN.js +7 -0
  48. package/dist/clients/oneKeyWallet-YVJDPHJS.js +7 -0
  49. package/dist/clients/phantomWallet-LZDJJ5XR.js +7 -0
  50. package/dist/clients/polymarket/PolymarketDepositAccountDropdown.css +17485 -0
  51. package/dist/clients/polymarket/PolymarketDepositAccountDropdown.d.ts +30 -0
  52. package/dist/clients/polymarket/PolymarketDepositAccountDropdown.js +14 -0
  53. package/dist/clients/polymarket/createPolymarketDepositConfig.d.ts +54 -0
  54. package/dist/clients/polymarket/createPolymarketDepositConfig.js +15 -0
  55. package/dist/clients/polymarket/index.css +17485 -0
  56. package/dist/clients/polymarket/index.d.ts +8 -0
  57. package/dist/clients/polymarket/index.js +42 -0
  58. package/dist/clients/{polymarket.d.ts → polymarket/polymarket.d.ts} +59 -2
  59. package/dist/clients/polymarket/polymarket.js +24 -0
  60. package/dist/clients/polymarket/usePolymarketAccountBalances.d.ts +66 -0
  61. package/dist/clients/polymarket/usePolymarketAccountBalances.js +12 -0
  62. package/dist/clients/rabbyWallet-TYX2JDHU.js +7 -0
  63. package/dist/clients/rainbowWallet-MFJQCICF.js +7 -0
  64. package/dist/clients/ramperWallet-Q2XAH4WA.js +7 -0
  65. package/dist/clients/rolly.d.ts +2 -0
  66. package/dist/clients/rolly.js +6 -2
  67. package/dist/clients/roninWallet-SAB5ESVK.js +7 -0
  68. package/dist/clients/safeWallet-Y3VPODK2.js +7 -0
  69. package/dist/clients/safeheronWallet-MCFXLKO5.js +7 -0
  70. package/dist/clients/safepalWallet-7YULGM2L.js +7 -0
  71. package/dist/clients/subWallet-5WUZ4IIO.js +7 -0
  72. package/dist/clients/tahoWallet-U2VWWO76.js +7 -0
  73. package/dist/clients/talismanWallet-ZYTPIANG.js +7 -0
  74. package/dist/clients/tokenPocketWallet-FLFG3JUQ.js +7 -0
  75. package/dist/clients/tokenaryWallet-S3JS2IGK.js +7 -0
  76. package/dist/clients/trustWallet-2N5TZJGC.js +7 -0
  77. package/dist/clients/uniswapWallet-NJQBP5VM.js +7 -0
  78. package/dist/clients/walletConnectWallet-E4OQJ4DC.js +7 -0
  79. package/dist/clients/xdefiWallet-ZKBEFEOH.js +7 -0
  80. package/dist/clients/zealWallet-7VO3C4PM.js +7 -0
  81. package/dist/clients/zerionWallet-SEPREHKH.js +7 -0
  82. package/dist/components/Box/Box.d.ts +21 -21
  83. package/dist/components/Dropdown/AccountSelectDropdown.d.ts +45 -0
  84. package/dist/components/Dropdown/BaseDropdownItem.d.ts +3 -1
  85. package/dist/components/FreeUsdcBanner/FreeUsdcBanner.css.d.ts +15 -0
  86. package/dist/components/FreeUsdcBanner/FreeUsdcBanner.d.ts +5 -5
  87. package/dist/components/FunButton/FunButton.css.d.ts +1 -0
  88. package/dist/components/FunOptionBox/FunOptionBox.css.d.ts +1 -1
  89. package/dist/components/ModalHeightAnimationLayer/ModalHeightAnimationLayer.d.ts +8 -0
  90. package/dist/css/sprinkles.css.d.ts +33 -21
  91. package/dist/domains/aave.d.ts +28 -0
  92. package/dist/domains/dynamicRouting.d.ts +13 -1
  93. package/dist/domains/quote.d.ts +2 -2
  94. package/dist/hooks/track/CheckoutModalEvent.d.ts +1 -0
  95. package/dist/hooks/useExchangeOptions.d.ts +11 -2
  96. package/dist/hooks/useTokenAndChainDropdown.d.ts +1 -1
  97. package/dist/index.css +4289 -2860
  98. package/dist/index.js +4434 -3375
  99. package/dist/modals/CheckoutModal/FunCheckoutStep.d.ts +2 -1
  100. package/dist/modals/CheckoutModal/InputAmount/aaveClient.d.ts +3 -7
  101. package/dist/modals/CheckoutModal/InputAmount/useAaveNativeSupply.d.ts +2 -19
  102. package/dist/modals/CheckoutModal/SourceChange/SourceChange.d.ts +1 -1
  103. package/dist/modals/CheckoutModal/SourceChange/useSourceChangeLayout.d.ts +10 -0
  104. package/dist/modals/CheckoutModal/stepTransition.d.ts +27 -1
  105. package/dist/modals/PolymarketPerpsTransfer/DirectionSwapButton.d.ts +17 -0
  106. package/dist/modals/PolymarketPerpsTransfer/PerpsTransferBottomBar.d.ts +11 -0
  107. package/dist/modals/PolymarketPerpsTransfer/PerpsTransferRows.d.ts +10 -0
  108. package/dist/modals/PolymarketPerpsTransfer/PerpsTransferStep.d.ts +11 -0
  109. package/dist/modals/PolymarketPerpsTransfer/PolymarketPerpsTransferScreen.d.ts +52 -0
  110. package/dist/modals/PolymarketPerpsTransfer/TransferActionButton.d.ts +34 -0
  111. package/dist/modals/PolymarketPerpsTransfer/TransferAmountRow.css.d.ts +13 -0
  112. package/dist/modals/PolymarketPerpsTransfer/TransferAmountRow.d.ts +27 -0
  113. package/dist/modals/PolymarketPerpsTransfer/usePerpsTransferForm.d.ts +66 -0
  114. package/dist/modals/WithdrawalModal/WithdrawalContent.d.ts +7 -0
  115. package/dist/providers/FunkitCheckoutContext/index.d.ts +10 -1
  116. package/dist/providers/FunkitCheckoutContext/types.d.ts +63 -3
  117. package/dist/providers/FunkitConfigContext.d.ts +13 -2
  118. package/dist/providers/FunkitQuoteContext.d.ts +16 -0
  119. package/dist/providers/FunkitThemeProvider.d.ts +18 -0
  120. package/dist/themes/baseTheme.d.ts +3 -1
  121. package/dist/themes/baseTheme.js +1 -1
  122. package/dist/themes/darkTheme.js +2 -2
  123. package/dist/themes/lightTheme.js +2 -2
  124. package/dist/utils/freeUsdcBanner.d.ts +3 -0
  125. package/dist/utils/tokenMath.d.ts +6 -0
  126. package/dist/wallets/walletConnectors/index.js +42 -42
  127. package/package.json +7 -6
  128. package/dist/clients/chunk-TFZV2HO4.js +0 -290
@@ -0,0 +1,45 @@
1
+ import React from 'react';
2
+ import type { BaseActiveDropdownItemProps } from './BaseActiveDropdownItem';
3
+ export interface AccountSelectOption {
4
+ /** Stable identifier, also the dropdown's selected value. */
5
+ value: string;
6
+ label: string;
7
+ /** Secondary line under the label, e.g. a formatted balance. */
8
+ description?: React.ReactNode;
9
+ }
10
+ export interface AccountSelectAction {
11
+ /** Stable id; must not collide with an account {@link AccountSelectOption.value}. */
12
+ id: string;
13
+ label: string;
14
+ icon?: React.ReactNode;
15
+ onSelect: () => void;
16
+ }
17
+ export interface AccountSelectDropdownProps {
18
+ accounts: AccountSelectOption[];
19
+ selectedValue: string;
20
+ onSelect: (value: string) => void;
21
+ /**
22
+ * Optional row rendered below the accounts, separated by a divider — e.g. a
23
+ * "Transfer between accounts" action. It carries no selected state.
24
+ */
25
+ action?: AccountSelectAction;
26
+ /** Secondary prefix shown on the trigger, e.g. "Deposit to". */
27
+ prefixLabel?: string;
28
+ /** Field label rendered above the trigger. */
29
+ label?: string;
30
+ size?: BaseActiveDropdownItemProps['size'];
31
+ /**
32
+ * Fixed width (px) of the options popover. Defaults to the trigger width;
33
+ * set this to make the popover narrower than the (full-width) trigger. The
34
+ * popover is right-aligned to the trigger.
35
+ */
36
+ dropdownWidth?: number;
37
+ testId?: string;
38
+ }
39
+ /**
40
+ * A dropdown for picking between a small set of accounts (each with a balance
41
+ * subline + a selected check), with an optional trailing action row below a
42
+ * divider. Built on {@link BaseDropdown}; selection routes through each
43
+ * {@link BaseDropdownItem} so Radix closes the menu on choose.
44
+ */
45
+ export declare function AccountSelectDropdown({ accounts, selectedValue, onSelect, action, prefixLabel, label, size, dropdownWidth, testId, }: AccountSelectDropdownProps): React.JSX.Element;
@@ -3,6 +3,8 @@ import { type BoxProps } from '../Box/Box';
3
3
  interface BaseDropdownItemProps {
4
4
  iconComponent?: React.ReactNode;
5
5
  label: React.ReactNode;
6
+ /** Optional secondary line rendered under the label (e.g. a balance). */
7
+ description?: React.ReactNode;
6
8
  id: string;
7
9
  onClick?: (id: string) => void;
8
10
  isSelected?: boolean;
@@ -16,5 +18,5 @@ interface BaseDropdownItemProps {
16
18
  /**
17
19
  * Represents a single option in a dropdown.
18
20
  */
19
- declare function BaseDropdownItem({ iconComponent, label, id, onClick, isSelected, isDisabled, borderRadius, horizontalIconGap, tagComponent, horizontalPadding, verticalPadding, }: BaseDropdownItemProps): React.JSX.Element;
21
+ declare function BaseDropdownItem({ iconComponent, label, description, id, onClick, isSelected, isDisabled, borderRadius, horizontalIconGap, tagComponent, horizontalPadding, verticalPadding, }: BaseDropdownItemProps): React.JSX.Element;
20
22
  export default BaseDropdownItem;
@@ -0,0 +1,15 @@
1
+ export declare const chainIconAnimations: string[];
2
+ export declare const motionTransitionEnter: {
3
+ duration: number;
4
+ ease: readonly [0.3, 0, 0, 1];
5
+ };
6
+ export declare const motionTransitionExit: {
7
+ duration: number;
8
+ ease: readonly [0.8, 0, 0.2, 1];
9
+ };
10
+ export declare const bannerWrapper: string;
11
+ export declare const clusterWrapper: string;
12
+ export declare const chainIconScale: string;
13
+ export declare const usdcIconAnchor: string;
14
+ export declare const textContent: string;
15
+ export declare const dismissButton: string;
@@ -1,5 +1,5 @@
1
- interface FreeUsdcBannerProps {
2
- type: 'deposit' | 'withdrawal';
3
- }
4
- export declare function FreeUsdcBanner(_props: FreeUsdcBannerProps): null;
5
- export {};
1
+ import React from 'react';
2
+ import { type BoxProps } from '../Box/Box';
3
+ export declare const FreeUsdcBanner: ({ marginBottom, type, }: Pick<BoxProps, "marginBottom"> & {
4
+ type: "deposit" | "withdrawal";
5
+ }) => React.JSX.Element;
@@ -7,5 +7,6 @@ export declare const funButtonClickableStyle: string;
7
7
  export declare const funButtonNonClickableStyle: string;
8
8
  export declare const funButtonDisabledStyle: string;
9
9
  export declare const funButtonPrimaryGroup: string;
10
+ export declare const funButtonPrimaryDisabledOpacity: string;
10
11
  export declare const textHoverTarget: string;
11
12
  export declare const gradientBorder: string;
@@ -1 +1 @@
1
- export declare const funOptionBoxStyle: Record<"activeBackground" | "baseStyle" | "compactListStyle" | "defaultBorder" | "defaultModeNotActiveBorder" | "activeBorder" | "disabledOptionBorder" | "defaultBackground" | "uninteractiveBackground", string>;
1
+ export declare const funOptionBoxStyle: Record<"activeBackground" | "baseStyle" | "compactListStyle" | "defaultBorder" | "defaultModeNotActiveBorder" | "activeBorder" | "disabledOptionBorder" | "defaultBackground" | "borderedBackground" | "uninteractiveBackground", string>;
@@ -1,7 +1,15 @@
1
+ import { type Transition } from 'motion/react';
1
2
  import React from 'react';
2
3
  interface ModalHeightAnimationLayerProps {
3
4
  children: React.ReactNode;
4
5
  permittedHeight: number;
5
6
  }
7
+ /**
8
+ * Timing for the modal's height resize. Exported so content that animates its
9
+ * own height *inside* the modal (e.g. an expanding notice that pushes a button
10
+ * down) can reuse it and stay in lockstep with the frame — mismatched
11
+ * duration/ease makes the inner content and the modal edge resize separately.
12
+ */
13
+ export declare const MODAL_HEIGHT_ANIMATION_TRANSITION: Transition;
6
14
  export declare function ModalHeightAnimationLayer({ children, permittedHeight, }: ModalHeightAnimationLayerProps): React.JSX.Element;
7
15
  export {};