@0xsquid/ui 3.4.0-beta.0 → 3.4.1-beta-interactive-to-amount.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.
package/dist/cjs/index.js CHANGED
@@ -5192,7 +5192,7 @@ function useConstant(init) {
5192
5192
 
5193
5193
  const isBrowser$1 = typeof window !== "undefined";
5194
5194
 
5195
- const useIsomorphicLayoutEffect$1 = isBrowser$1 ? require$$0.useLayoutEffect : require$$0.useEffect;
5195
+ const useIsomorphicLayoutEffect$2 = isBrowser$1 ? require$$0.useLayoutEffect : require$$0.useEffect;
5196
5196
 
5197
5197
  /**
5198
5198
  * @public
@@ -5497,7 +5497,7 @@ const AnimatePresence = ({ children, custom, initial = true, onExitComplete, pre
5497
5497
  */
5498
5498
  const [diffedChildren, setDiffedChildren] = require$$0.useState(presentChildren);
5499
5499
  const [renderedChildren, setRenderedChildren] = require$$0.useState(presentChildren);
5500
- useIsomorphicLayoutEffect$1(() => {
5500
+ useIsomorphicLayoutEffect$2(() => {
5501
5501
  isInitialRender.current = false;
5502
5502
  pendingPresentChildren.current = presentChildren;
5503
5503
  /**
@@ -5596,7 +5596,7 @@ const DeprecatedLayoutGroupContext = require$$0.createContext(null);
5596
5596
 
5597
5597
  function useIsMounted() {
5598
5598
  const isMounted = require$$0.useRef(false);
5599
- useIsomorphicLayoutEffect$1(() => {
5599
+ useIsomorphicLayoutEffect$2(() => {
5600
5600
  isMounted.current = true;
5601
5601
  return () => {
5602
5602
  isMounted.current = false;
@@ -6241,7 +6241,7 @@ function useVisualElement(Component, visualState, props, createVisualElement, Pr
6241
6241
  const wantsHandoff = require$$0.useRef(Boolean(optimisedAppearId) &&
6242
6242
  !window.MotionHandoffIsComplete?.(optimisedAppearId) &&
6243
6243
  window.MotionHasOptimisedAnimation?.(optimisedAppearId));
6244
- useIsomorphicLayoutEffect$1(() => {
6244
+ useIsomorphicLayoutEffect$2(() => {
6245
6245
  if (!visualElement)
6246
6246
  return;
6247
6247
  isMounted.current = true;
@@ -19620,7 +19620,7 @@ exports.UserInputType = void 0;
19620
19620
  UserInputType[UserInputType["TOKEN"] = 0] = "TOKEN";
19621
19621
  UserInputType[UserInputType["USD"] = 1] = "USD";
19622
19622
  })(exports.UserInputType || (exports.UserInputType = {}));
19623
- function useNumericInput({ onAmountChange, token, balance, debounceInput, forcedAmount, formatIfVerySmall, inputModeButton, maxUsdDecimals, direction, initialInputMode = exports.UserInputType.TOKEN, }) {
19623
+ function useNumericInput({ onAmountChange, token, balance, debounceInput, forcedAmount, formatIfVerySmall, inputModeButton, maxUsdDecimals, initialInputMode = exports.UserInputType.TOKEN, }) {
19624
19624
  const [inputValue, setInputValue] = require$$0.useState("");
19625
19625
  const [userInputType, setUserInputType] = require$$0.useState(initialInputMode);
19626
19626
  require$$0.useEffect(() => {
@@ -19718,16 +19718,8 @@ function useNumericInput({ onAmountChange, token, balance, debounceInput, forced
19718
19718
  if (isNaN(Number(inputValue)) || inputValue === "")
19719
19719
  return "0";
19720
19720
  if (userInputType === exports.UserInputType.TOKEN) {
19721
- if (direction === "from") {
19722
- return formatUsdAmount(convertTokenAmountToUSD(inputValue, token.price, maxUsdDecimals), {
19723
- includeSign: false,
19724
- });
19725
- }
19726
- else {
19727
- return formatUsdAmount((_a = inputModeButton === null || inputModeButton === void 0 ? void 0 : inputModeButton.amountUsd) !== null && _a !== void 0 ? _a : "0", {
19728
- includeSign: false,
19729
- });
19730
- }
19721
+ const usdAmount = (_a = inputModeButton === null || inputModeButton === void 0 ? void 0 : inputModeButton.amountUsd) !== null && _a !== void 0 ? _a : convertTokenAmountToUSD(inputValue, token.price, maxUsdDecimals);
19722
+ return formatUsdAmount(usdAmount, { includeSign: false });
19731
19723
  }
19732
19724
  else {
19733
19725
  return formatTokenAmount(convertUSDToTokenAmount(inputValue, token.price, token.decimals));
@@ -19735,7 +19727,6 @@ function useNumericInput({ onAmountChange, token, balance, debounceInput, forced
19735
19727
  }, [
19736
19728
  inputValue,
19737
19729
  userInputType,
19738
- direction,
19739
19730
  token.price,
19740
19731
  maxUsdDecimals,
19741
19732
  inputModeButton === null || inputModeButton === void 0 ? void 0 : inputModeButton.amountUsd,
@@ -39395,10 +39386,11 @@ const Card = ({ variant = "transparent", className, children, }) => {
39395
39386
  return (jsxRuntime.jsx("div", { className: cn("tw-rounded-squid-l tw-border tw-border-material-dark-average tw-bg-material-dark-average tw-backdrop-blur/10", className), children: children }));
39396
39387
  };
39397
39388
 
39389
+ const useIsomorphicLayoutEffect$1 = typeof window !== "undefined" ? require$$0.useLayoutEffect : require$$0.useEffect;
39398
39390
  function useOnResize(ref, callback) {
39399
39391
  const callbackRef = require$$0.useRef(callback);
39400
39392
  callbackRef.current = callback;
39401
- require$$0.useLayoutEffect(() => {
39393
+ useIsomorphicLayoutEffect$1(() => {
39402
39394
  if (!ref.current)
39403
39395
  return;
39404
39396
  const observer = new ResizeObserver(([entry]) => {
@@ -39411,8 +39403,13 @@ function useOnResize(ref, callback) {
39411
39403
  return () => observer.disconnect();
39412
39404
  }, [ref.current]);
39413
39405
  }
39406
+ const EMPTY_RECT = {
39407
+ x: 0, y: 0, width: 0, height: 0,
39408
+ top: 0, left: 0, right: 0, bottom: 0,
39409
+ toJSON: () => ({}),
39410
+ };
39414
39411
  function useRect(ref) {
39415
- const [rect, setRect] = require$$0.useState(() => new DOMRectReadOnly());
39412
+ const [rect, setRect] = require$$0.useState(EMPTY_RECT);
39416
39413
  useOnResize(ref, setRect);
39417
39414
  return rect;
39418
39415
  }
@@ -39924,10 +39921,6 @@ function SwapConfiguration({ amount, tokenPrice = 0, isFetching: isFetchingProp
39924
39921
  });
39925
39922
  // Save previous amount between renders for transition animation.
39926
39923
  require$$0.useEffect(() => {
39927
- if (direction === "from") {
39928
- setForcedAmount(amount);
39929
- return;
39930
- }
39931
39924
  const { amount: prevAmount, chain: prevChain, token: prevToken, } = prevRef.current;
39932
39925
  const currentChain = JSON.stringify(chain);
39933
39926
  const currentToken = JSON.stringify(token);
@@ -39950,7 +39943,7 @@ function SwapConfiguration({ amount, tokenPrice = 0, isFetching: isFetchingProp
39950
39943
  }, balance: balance, criticalPriceImpactPercentage: criticalPriceImpactPercentage, error: error, formatIfVerySmall: {
39951
39944
  token: "0.001",
39952
39945
  usd: "0.01",
39953
- }, maxUsdDecimals: maxUsdDecimals, isLoading: isFetching, priceImpactPercentage: priceImpactPercentage, showDetails: showNumericInputDetails, direction: direction, forcedAmount: forcedAmount, inputModeButton: inputModeButton, balanceButton: balanceButton, isInteractive: isInputInteractive && !isLoading, debounceInput: debounceInput })] }));
39946
+ }, maxUsdDecimals: maxUsdDecimals, isLoading: isFetching, priceImpactPercentage: priceImpactPercentage, showDetails: showNumericInputDetails, forcedAmount: forcedAmount, inputModeButton: inputModeButton, balanceButton: balanceButton, isInteractive: isInputInteractive && !isLoading, debounceInput: debounceInput })] }));
39954
39947
  }
39955
39948
 
39956
39949
  function AccountListItem({ isConnected, imageUrls = [], imageUrl, badgeUrl, actions, subtitle, title, }) {
@@ -40107,7 +40100,7 @@ const useIsomorphicLayoutEffect = IS_SERVER ? require$$0.useEffect : require$$0.
40107
40100
  * // Use `isSmallScreen` to conditionally apply styles or logic based on the screen size.
40108
40101
  * ```
40109
40102
  */
40110
- function useMediaQuery(query, { defaultValue = false, initializeWithValue = true, } = {}) {
40103
+ function useMediaQuery(query, { defaultValue = false, initializeWithValue = false, } = {}) {
40111
40104
  const getMatches = (query) => {
40112
40105
  if (IS_SERVER) {
40113
40106
  return defaultValue;
@@ -40195,6 +40188,8 @@ function useUserTheme() {
40195
40188
  const [themePreference, setThemePreference] = require$$0.useState(getInitialTheme);
40196
40189
  const [themeType, setThemeType] = require$$0.useState(getEffectiveTheme(themePreference));
40197
40190
  require$$0.useEffect(() => {
40191
+ if (typeof window === "undefined")
40192
+ return;
40198
40193
  const handleThemeChange = (e) => {
40199
40194
  setThemePreference(e.detail);
40200
40195
  };
@@ -40204,6 +40199,8 @@ function useUserTheme() {
40204
40199
  };
40205
40200
  }, []);
40206
40201
  require$$0.useEffect(() => {
40202
+ if (typeof window === "undefined")
40203
+ return;
40207
40204
  const mediaQuery = window.matchMedia(THEME_MEDIA_QUERY);
40208
40205
  const handleChange = () => {
40209
40206
  if (themePreference === exports.ThemePreference.SYSTEM) {
@@ -40221,6 +40218,8 @@ function useUserTheme() {
40221
40218
  }, [themePreference]);
40222
40219
  const setThemeManually = (theme) => {
40223
40220
  setThemePreference(theme);
40221
+ if (typeof window === "undefined")
40222
+ return;
40224
40223
  localStorage.setItem(THEME_STORAGE_KEY, theme);
40225
40224
  window.dispatchEvent(new CustomEvent(THEME_CHANGE_EVENT, { detail: theme }));
40226
40225
  };
@@ -40242,6 +40241,8 @@ function getInitialTheme() {
40242
40241
  function getEffectiveTheme(themeType) {
40243
40242
  if (themeType !== exports.ThemePreference.SYSTEM)
40244
40243
  return themeType;
40244
+ if (typeof window === "undefined")
40245
+ return "dark";
40245
40246
  return window.matchMedia(THEME_MEDIA_QUERY).matches ? "light" : "dark";
40246
40247
  }
40247
40248
 
@@ -41461,7 +41462,7 @@ function FilterSection({ title, children, collapsed = false, handleCollapse, han
41461
41462
  maxHeight: 0,
41462
41463
  },
41463
41464
  expanded: {
41464
- maxHeight: Math.min(height, window.innerHeight - 40) + "px",
41465
+ maxHeight: Math.min(height, (typeof window !== "undefined" ? window.innerHeight : height) - 40) + "px",
41465
41466
  },
41466
41467
  }), [height]);
41467
41468
  return (jsxRuntime.jsxs("div", { className: "tw-flex tw-min-h-10 tw-flex-col", children: [jsxRuntime.jsxs("div", { className: "tw-flex tw-min-h-squid-xl tw-shrink-0 tw-cursor-pointer tw-items-center tw-justify-between tw-px-squid-m tw-text-grey-300", onClick: () => {
@@ -41569,7 +41570,7 @@ function NumericInput(_a) {
41569
41570
  var { priceImpactPercentage, balance = "0", error, criticalPriceImpactPercentage = 5, token, onAmountChange, forcedAmount, maxUsdDecimals = 2, formatIfVerySmall = {
41570
41571
  token: "0.001",
41571
41572
  usd: "0.01",
41572
- }, showDetails = true, isLoading = false, direction, inputModeButton, isInteractive = false, balanceButton, debounceInput = true, initialInputMode = exports.UserInputType.TOKEN, customSymbol, hideControls = false, hideBalance = false, containerClassName, inputClassName } = _a, props = __rest(_a, ["priceImpactPercentage", "balance", "error", "criticalPriceImpactPercentage", "token", "onAmountChange", "forcedAmount", "maxUsdDecimals", "formatIfVerySmall", "showDetails", "isLoading", "direction", "inputModeButton", "isInteractive", "balanceButton", "debounceInput", "initialInputMode", "customSymbol", "hideControls", "hideBalance", "containerClassName", "inputClassName"]);
41573
+ }, showDetails = true, isLoading = false, inputModeButton, isInteractive = false, balanceButton, debounceInput = true, initialInputMode = exports.UserInputType.TOKEN, customSymbol, hideControls = false, hideBalance = false, containerClassName, inputClassName } = _a, props = __rest(_a, ["priceImpactPercentage", "balance", "error", "criticalPriceImpactPercentage", "token", "onAmountChange", "forcedAmount", "maxUsdDecimals", "formatIfVerySmall", "showDetails", "isLoading", "inputModeButton", "isInteractive", "balanceButton", "debounceInput", "initialInputMode", "customSymbol", "hideControls", "hideBalance", "containerClassName", "inputClassName"]);
41573
41574
  const { userInputType, inputValue, handleInputChange, handleSwitchInputMode, isTokenAmountVerySmall, isUsdAmountVerySmall, amountFormatted, onBalanceButtonClick, balanceFormatted, } = useNumericInput({
41574
41575
  onAmountChange,
41575
41576
  token,
@@ -41579,7 +41580,6 @@ function NumericInput(_a) {
41579
41580
  formatIfVerySmall,
41580
41581
  inputModeButton,
41581
41582
  maxUsdDecimals,
41582
- direction,
41583
41583
  initialInputMode,
41584
41584
  });
41585
41585
  const balanceChipClickable = isInteractive && parseFloat(balance) > 0;
@@ -41607,7 +41607,7 @@ function NumericInput(_a) {
41607
41607
  const totalPadding = Math.ceil(symbolWidth) + basePadding;
41608
41608
  return `${totalPadding}px`;
41609
41609
  };
41610
- return (jsxRuntime.jsxs("div", { className: "tw-relative tw-flex tw-w-full tw-flex-col", children: [isLoading && (jsxRuntime.jsx("div", { className: "tw-pointer-events-none tw-absolute tw-inset-0 tw-top-squid-xxs tw-z-10 tw-overflow-hidden", children: jsxRuntime.jsx("div", { className: "tw-h-full tw-w-[78.75rem] tw-animate-move-loading-cover-to-right tw-bg-dark-cover" }) })), isInteractive && !isLoading ? (jsxRuntime.jsx("form", { className: cn(containerClassname, containerClassName), onSubmit: (e) => {
41610
+ return (jsxRuntime.jsxs("div", { className: "tw-relative tw-flex tw-w-full tw-flex-col", children: [isLoading && (jsxRuntime.jsx("div", { className: "tw-pointer-events-none tw-absolute tw-inset-0 tw-top-squid-xxs tw-z-10 tw-overflow-hidden", children: jsxRuntime.jsx("div", { className: "tw-h-full tw-w-[78.75rem] tw-animate-move-loading-cover-to-right tw-bg-dark-cover" }) })), jsxRuntime.jsx("form", { className: cn(containerClassname, containerClassName), onSubmit: (e) => {
41611
41611
  e.preventDefault();
41612
41612
  }, children: jsxRuntime.jsxs("span", { className: "tw-relative tw-w-full", children: [displaySymbol && (jsxRuntime.jsx("span", { ref: symbolRef, style: {
41613
41613
  transform: "translateY(-50%)",
@@ -41615,25 +41615,23 @@ function NumericInput(_a) {
41615
41615
  ? {
41616
41616
  paddingLeft: getInputPadding(),
41617
41617
  }
41618
- : undefined, className: cn("tw-h-[55px] tw-w-full tw-rounded-squid-s tw-bg-transparent tw-py-squid-s tw-text-grey-300 placeholder:tw-text-grey-600 hover:tw-bg-material-light-thin focus:tw-bg-material-light-thin focus:tw-text-royal-500 focus:tw-outline-none", displaySymbol ? "tw-pr-squid-xs" : "tw-px-squid-xs", inputClassName) }, props))] }) })) : (jsxRuntime.jsx("div", { className: cn(containerClassname, (isLoading || Number(inputValue || 0) === 0) && loadingClassName, containerClassName), children: jsxRuntime.jsx("div", { className: "tw-font-regular tw-flex tw-h-[55px] tw-w-full tw-cursor-default tw-items-center tw-rounded-squid-s tw-bg-transparent tw-px-squid-xs tw-py-squid-s tw-text-heading-small tw-text-grey-300", children: jsxRuntime.jsx(AnimateNumber, { isLoading: isLoading, number: inputValue || "0", showMask: true }) }) })), !showDetails || hideControls ? null : (jsxRuntime.jsxs("footer", { className: cn("tw-flex tw-h-squid-m tw-max-h-squid-m tw-items-center tw-justify-between tw-gap-2 tw-px-squid-xs tw-text-grey-500 mobile-lg:tw-px-squid-m", isLoading && loadingClassName), children: [error ? (jsxRuntime.jsx("div", { className: "tw-px-squid-xs", children: jsxRuntime.jsx(ErrorMessage, { message: error.message }) })) : (jsxRuntime.jsx(Tooltip, Object.assign({}, (isLoading
41619
- ? undefined
41620
- : userInputType === exports.UserInputType.TOKEN
41621
- ? inputModeButton === null || inputModeButton === void 0 ? void 0 : inputModeButton.tokenModeTooltip
41622
- : inputModeButton === null || inputModeButton === void 0 ? void 0 : inputModeButton.usdModeTooltip), { tooltipWidth: "max", childrenClassName: "tw-rounded-squid-s", containerClassName: "tw-rounded-squid-s", children: jsxRuntime.jsxs(AmountChip, { onClick: isInteractive
41623
- ? () => {
41624
- var _a;
41625
- handleSwitchInputMode();
41626
- (_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.focus();
41627
- }
41628
- : undefined, className: cn(buttonClassName, isInteractive
41629
- ? interactiveChipClassName
41630
- : notInteractiveChipClassName), children: [jsxRuntime.jsx(SwapInputsIcon, {}), userInputType === exports.UserInputType.TOKEN ? (jsxRuntime.jsxs("span", { className: "tw-flex tw-items-center tw-text-grey-500", children: [jsxRuntime.jsxs(CaptionText, { className: "tw-opacity-66", children: [isUsdAmountVerySmall ? "<" : "", "$"] }), jsxRuntime.jsx(CaptionText, { children: isUsdAmountVerySmall
41631
- ? formatIfVerySmall.token
41632
- : amountFormatted })] })) : (jsxRuntime.jsxs("span", { className: "tw-text-grey-500", children: [isTokenAmountVerySmall ? "<" : "", jsxRuntime.jsx(CaptionText, { children: isTokenAmountVerySmall
41633
- ? formatIfVerySmall.token
41634
- : amountFormatted }), " ", jsxRuntime.jsx(CaptionText, { className: "tw-opacity-66", children: token.symbol })] })), priceImpactPercentage && direction === "to" ? (jsxRuntime.jsxs("span", { className: cn("tw-flex tw-items-center", priceImpactClass), children: [jsxRuntime.jsx(ArrowTriangle, { className: Number(priceImpactPercentage) === 0
41635
- ? "tw-opacity-0"
41636
- : "" }), jsxRuntime.jsx(CaptionText, { bold: true, children: priceImpactPercentage.toString().concat("%") })] })) : null] }) }))), !hideBalance && (jsxRuntime.jsx(Tooltip, Object.assign({}, (isLoading ? undefined : balanceButton === null || balanceButton === void 0 ? void 0 : balanceButton.tooltip), { tooltipWidth: "max", childrenClassName: "tw-rounded-squid-s", containerClassName: "tw-rounded-squid-s", children: jsxRuntime.jsxs(BalanceChipTag, { disabled: !balanceChipClickable, onClick: balanceChipClickable ? onBalanceButtonClick : undefined, className: cn(buttonClassName, balanceChipClickable
41618
+ : undefined, className: cn("tw-peer tw-h-[55px] tw-w-full tw-rounded-squid-s tw-bg-transparent tw-py-squid-s tw-text-transparent placeholder:tw-text-grey-600 placeholder:tw-opacity-0 hover:tw-bg-material-light-thin focus:tw-bg-material-light-thin focus:tw-text-royal-500 focus:tw-outline-none focus:placeholder:tw-opacity-100", displaySymbol ? "tw-pr-squid-xs" : "tw-px-squid-xs", inputClassName) }, props)), jsxRuntime.jsx("div", { className: cn("tw-pointer-events-none tw-absolute tw-inset-0 tw-flex tw-items-center tw-rounded-squid-s tw-text-heading-small tw-text-grey-300 peer-focus:tw-opacity-0", displaySymbol ? "tw-pr-squid-xs" : "tw-px-squid-xs", (isLoading || Number(inputValue || 0) === 0) && loadingClassName), style: displaySymbol ? { paddingLeft: getInputPadding() } : undefined, children: jsxRuntime.jsx(AnimateNumber, { isLoading: isLoading, number: inputValue || "0", showMask: true }) })] }) }), !showDetails || hideControls ? null : (jsxRuntime.jsxs("footer", { className: cn("tw-flex tw-h-squid-m tw-max-h-squid-m tw-items-center tw-justify-between tw-gap-2 tw-px-squid-xs tw-text-grey-500 mobile-lg:tw-px-squid-m", isLoading && loadingClassName), children: [error ? (jsxRuntime.jsx("div", { className: "tw-px-squid-xs", children: jsxRuntime.jsx(ErrorMessage, { message: error.message }) })) : (jsxRuntime.jsxs("div", { className: "tw-flex tw-h-squid-l tw-items-center tw-gap-1.5", children: [jsxRuntime.jsx(Tooltip, Object.assign({}, (isLoading
41619
+ ? undefined
41620
+ : userInputType === exports.UserInputType.TOKEN
41621
+ ? inputModeButton === null || inputModeButton === void 0 ? void 0 : inputModeButton.tokenModeTooltip
41622
+ : inputModeButton === null || inputModeButton === void 0 ? void 0 : inputModeButton.usdModeTooltip), { tooltipWidth: "max", childrenClassName: "tw-rounded-squid-s", containerClassName: "tw-rounded-squid-s", children: jsxRuntime.jsxs(AmountChip, { onClick: isInteractive
41623
+ ? () => {
41624
+ var _a;
41625
+ handleSwitchInputMode();
41626
+ (_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.focus();
41627
+ }
41628
+ : undefined, className: cn(buttonClassName, isInteractive
41629
+ ? interactiveChipClassName
41630
+ : notInteractiveChipClassName), children: [jsxRuntime.jsx(SwapInputsIcon, {}), userInputType === exports.UserInputType.TOKEN ? (jsxRuntime.jsxs("span", { className: "tw-flex tw-items-center tw-text-grey-500", children: [jsxRuntime.jsxs(CaptionText, { className: "tw-opacity-66", children: [isUsdAmountVerySmall ? "<" : "", "$"] }), jsxRuntime.jsx(CaptionText, { children: isUsdAmountVerySmall
41631
+ ? formatIfVerySmall.token
41632
+ : amountFormatted })] })) : (jsxRuntime.jsxs("span", { className: "tw-text-grey-500", children: [isTokenAmountVerySmall ? "<" : "", jsxRuntime.jsx(CaptionText, { children: isTokenAmountVerySmall
41633
+ ? formatIfVerySmall.token
41634
+ : amountFormatted }), " ", jsxRuntime.jsx(CaptionText, { className: "tw-opacity-66", children: token.symbol })] }))] }) })), priceImpactPercentage ? (jsxRuntime.jsxs("span", { className: cn("tw-flex tw-items-center", priceImpactClass), children: [Number(priceImpactPercentage) !== 0 && jsxRuntime.jsx(ArrowTriangle, {}), jsxRuntime.jsx(CaptionText, { bold: true, children: priceImpactPercentage.toString().concat("%") })] })) : null] })), !hideBalance && (jsxRuntime.jsx(Tooltip, Object.assign({}, (isLoading ? undefined : balanceButton === null || balanceButton === void 0 ? void 0 : balanceButton.tooltip), { tooltipWidth: "max", childrenClassName: "tw-rounded-squid-s", containerClassName: "tw-rounded-squid-s", children: jsxRuntime.jsxs(BalanceChipTag, { disabled: !balanceChipClickable, onClick: balanceChipClickable ? onBalanceButtonClick : undefined, className: cn(buttonClassName, balanceChipClickable
41637
41635
  ? interactiveChipClassName
41638
41636
  : notInteractiveChipClassName), children: [jsxRuntime.jsx(CaptionText, { className: "tw-opacity-66", children: "Balance" }), jsxRuntime.jsxs("div", { children: [userInputType === exports.UserInputType.USD && (jsxRuntime.jsx(CaptionText, { className: "tw-opacity-66", children: "$" })), jsxRuntime.jsx(CaptionText, { children: balanceFormatted })] }), !(balanceButton === null || balanceButton === void 0 ? void 0 : balanceButton.hideMaxChip) && jsxRuntime.jsx(Chip, { label: "Max" })] }) })))] }))] }));
41639
41637
  }
@@ -83716,11 +83714,6 @@ function LinkButton({ href, label }) {
83716
83714
  return (jsxRuntime.jsxs("a", { href: href, target: "_blank", className: "tw-flex tw-items-center tw-gap-0.5", rel: "noreferrer", children: [label, jsxRuntime.jsx("div", { className: "tw-ml-0.5 tw-rounded-squid-xs tw-p-0.5 tw-text-royal-500 hover:tw-bg-material-light-thin", children: jsxRuntime.jsx(SquareArrowTopRightIcon, {}) })] }));
83717
83715
  }
83718
83716
 
83719
- const RefundedProperty = ({ token, amount, link, showGradientBg, }) => {
83720
- const detail = (jsxRuntime.jsx(IconLabel, { src: token.logoURI, rounded: "full", children: jsxRuntime.jsx(BodyText, { size: "small", children: amount }) }));
83721
- return (jsxRuntime.jsx(PropertyListItem, { variant: "large", showGradientBg: showGradientBg, label: `Refunded ${token.symbol}`, icon: jsxRuntime.jsx(SwapIcon, {}), detail: link ? jsxRuntime.jsx(LinkButton, { href: link, label: detail }) : detail }));
83722
- };
83723
-
83724
83717
  const TokenLink = ({ logoURI, amount, }) => {
83725
83718
  return (jsxRuntime.jsx(IconLabel, { src: logoURI, rounded: "full", children: amount ? (jsxRuntime.jsx(BodyText, { size: "small", children: amount })) : (jsxRuntime.jsx(LoadingSkeleton, { className: "tw-bg-grey-700 tw-text-transparent" })) }));
83726
83719
  };
@@ -83728,16 +83721,16 @@ const TokenProperty = ({ icon, label, token, link, amount, showGradientBg, }) =>
83728
83721
  return (jsxRuntime.jsx(PropertyListItem, { variant: "large", icon: icon, label: label, showGradientBg: showGradientBg, detail: token ? (link ? (jsxRuntime.jsx(LinkButton, { href: link, label: jsxRuntime.jsx(TokenLink, { logoURI: token.logoURI, amount: amount }) })) : (jsxRuntime.jsx(TokenLink, { logoURI: token.logoURI, amount: amount }))) : (jsxRuntime.jsx(LoadingSkeleton, { className: "tw-bg-grey-700 tw-text-transparent" })) }));
83729
83722
  };
83730
83723
 
83731
- function SwapTransactionView({ title = "Swap", hash, toLink, fromLink, status, url, fromAmount, fromToken, toAmount, toToken, fromChain, toChain, fromAddress, toAddress, exchangeRate, timeToComplete, timestamp, actions, fees, isLoading, refundHash, refundLink, }) {
83724
+ function SwapTransactionView({ title = "Swap", hash, toLink, fromLink, status, url, fromAmount, fromToken, toAmount, toToken, fromChain, toChain, fromAddress, toAddress, exchangeRate, timeToComplete, timestamp, actions, fees, isLoading, }) {
83732
83725
  if (isLoading)
83733
83726
  return jsxRuntime.jsx(TransactionViewLayout, { isLoading: isLoading });
83734
- return (jsxRuntime.jsx(TransactionViewLayout, { header: jsxRuntime.jsx(TransactionHeaderLayout, { title: title, status: status, media: jsxRuntime.jsx(Drip, { direction: "horizontal", from: fromToken, to: toToken }), children: jsxRuntime.jsxs("div", { className: "tw-flex tw-items-center tw-gap-squid-xs tw-text-grey-500", children: [jsxRuntime.jsx(Chip, { label: "TX" }), jsxRuntime.jsx(HashLink, { hash: hash, url: url, showCopyButton: true, formattedHash: formatHash(hash) })] }) }), properties: jsxRuntime.jsxs(PropertiesLayout, { children: [jsxRuntime.jsx(TokenProperty, { token: fromToken, link: fromLink, amount: fromAmount, icon: jsxRuntime.jsx(ArrowRightDownCircleIcon, {}), label: jsxRuntime.jsxs(BodyText, { size: "small", children: ["Swap ", fromToken === null || fromToken === void 0 ? void 0 : fromToken.symbol] }), showGradientBg: false }), jsxRuntime.jsx(TokenProperty, { token: toToken, link: toLink, amount: toAmount, icon: jsxRuntime.jsx(ArrowRightDownCircleIcon, {}), label: jsxRuntime.jsxs(BodyText, { size: "small", children: ["Receive ", toToken === null || toToken === void 0 ? void 0 : toToken.symbol] }) }), jsxRuntime.jsx(PropertyListItem, { variant: "large", showGradientBg: false, icon: jsxRuntime.jsx(ChainLink, { size: "24" }), label: "Chain", detail: jsxRuntime.jsx(Transfer, { from: fromChain ? (jsxRuntime.jsx(IconLabel, { src: fromChain.logoURI, children: jsxRuntime.jsx(BodyText, { size: "small", children: fromChain.name }) })) : (jsxRuntime.jsx(LoadingSkeleton, { className: "tw-bg-grey-700 tw-text-transparent" })), to: toChain ? (jsxRuntime.jsx(IconLabel, { src: toChain.logoURI, children: jsxRuntime.jsx(BodyText, { size: "small", children: toChain.name }) })) : (jsxRuntime.jsx(LoadingSkeleton, { className: "tw-bg-grey-700 tw-text-transparent" })) }) }), jsxRuntime.jsx(PropertyListItem, { variant: "large", icon: jsxRuntime.jsx(WalletFilledIcon, {}), label: "Wallet", detail: jsxRuntime.jsx(Transfer, { from: jsxRuntime.jsx(BodyText, { size: "small", children: jsxRuntime.jsx(CopyButton, { copyText: fromAddress, label: jsxRuntime.jsx(HashLink, { hash: fromAddress, formattedHash: formatHash(fromAddress) }) }) }), to: jsxRuntime.jsx(BodyText, { size: "small", children: jsxRuntime.jsx(CopyButton, { copyText: toAddress, label: jsxRuntime.jsx(HashLink, { hash: toAddress, formattedHash: formatHash(toAddress) }) }) }) }) }), jsxRuntime.jsx(PropertyListItem, { variant: "large", showGradientBg: false, icon: jsxRuntime.jsx(ArrowsSwapIcon, {}), label: "Exchange rate", detail: jsxRuntime.jsx(Transfer, { from: fromToken ? (jsxRuntime.jsxs(BodyText, { size: "small", children: ["1 ", fromToken.symbol] })) : (jsxRuntime.jsx(LoadingSkeleton, { className: "tw-bg-grey-700 tw-text-transparent" })), to: toToken && exchangeRate ? (jsxRuntime.jsxs(BodyText, { size: "small", children: [exchangeRate, " ", toToken.symbol] })) : (jsxRuntime.jsx(LoadingSkeleton, { className: "tw-bg-grey-700 tw-text-transparent" })) }) }), refundHash && status === "refunded" ? (jsxRuntime.jsx(RefundedProperty, { token: fromToken, amount: fromAmount, link: refundLink })) : (jsxRuntime.jsx(TimeToCompleteProperty, { timeToComplete: timeToComplete }))] }), actions: actions, fees: fees }));
83727
+ return (jsxRuntime.jsx(TransactionViewLayout, { header: jsxRuntime.jsx(TransactionHeaderLayout, { title: title, status: status, media: jsxRuntime.jsx(Drip, { direction: "horizontal", from: fromToken, to: toToken }), children: jsxRuntime.jsxs("div", { className: "tw-flex tw-items-center tw-gap-squid-xs tw-text-grey-500", children: [jsxRuntime.jsx(Chip, { label: "TX" }), jsxRuntime.jsx(HashLink, { hash: hash, url: url, showCopyButton: true, formattedHash: formatHash(hash) })] }) }), properties: jsxRuntime.jsxs(PropertiesLayout, { children: [jsxRuntime.jsx(TokenProperty, { token: fromToken, link: fromLink, amount: fromAmount, icon: jsxRuntime.jsx(ArrowRightDownCircleIcon, {}), label: jsxRuntime.jsxs(BodyText, { size: "small", children: ["Swap ", fromToken === null || fromToken === void 0 ? void 0 : fromToken.symbol] }), showGradientBg: false }), jsxRuntime.jsx(TokenProperty, { token: toToken, link: toLink, amount: toAmount, icon: jsxRuntime.jsx(ArrowRightDownCircleIcon, {}), label: jsxRuntime.jsxs(BodyText, { size: "small", children: ["Receive ", toToken === null || toToken === void 0 ? void 0 : toToken.symbol] }) }), jsxRuntime.jsx(PropertyListItem, { variant: "large", showGradientBg: false, icon: jsxRuntime.jsx(ChainLink, { size: "24" }), label: "Chain", detail: jsxRuntime.jsx(Transfer, { from: fromChain ? (jsxRuntime.jsx(IconLabel, { src: fromChain.logoURI, children: jsxRuntime.jsx(BodyText, { size: "small", children: fromChain.name }) })) : (jsxRuntime.jsx(LoadingSkeleton, { className: "tw-bg-grey-700 tw-text-transparent" })), to: toChain ? (jsxRuntime.jsx(IconLabel, { src: toChain.logoURI, children: jsxRuntime.jsx(BodyText, { size: "small", children: toChain.name }) })) : (jsxRuntime.jsx(LoadingSkeleton, { className: "tw-bg-grey-700 tw-text-transparent" })) }) }), jsxRuntime.jsx(PropertyListItem, { variant: "large", icon: jsxRuntime.jsx(WalletFilledIcon, {}), label: "Wallet", detail: jsxRuntime.jsx(Transfer, { from: jsxRuntime.jsx(BodyText, { size: "small", children: jsxRuntime.jsx(CopyButton, { copyText: fromAddress, label: jsxRuntime.jsx(HashLink, { hash: fromAddress, formattedHash: formatHash(fromAddress) }) }) }), to: jsxRuntime.jsx(BodyText, { size: "small", children: jsxRuntime.jsx(CopyButton, { copyText: toAddress, label: jsxRuntime.jsx(HashLink, { hash: toAddress, formattedHash: formatHash(toAddress) }) }) }) }) }), jsxRuntime.jsx(PropertyListItem, { variant: "large", showGradientBg: false, icon: jsxRuntime.jsx(ArrowsSwapIcon, {}), label: "Exchange rate", detail: jsxRuntime.jsx(Transfer, { from: fromToken ? (jsxRuntime.jsxs(BodyText, { size: "small", children: ["1 ", fromToken.symbol] })) : (jsxRuntime.jsx(LoadingSkeleton, { className: "tw-bg-grey-700 tw-text-transparent" })), to: toToken && exchangeRate ? (jsxRuntime.jsxs(BodyText, { size: "small", children: [exchangeRate, " ", toToken.symbol] })) : (jsxRuntime.jsx(LoadingSkeleton, { className: "tw-bg-grey-700 tw-text-transparent" })) }) }), jsxRuntime.jsx(TimeToCompleteProperty, { timeToComplete: timeToComplete })] }), actions: actions, fees: fees }));
83735
83728
  }
83736
83729
 
83737
- function BridgeTransactionView({ title = "Bridge", hash, fromLink, toLink, status, url, fromAmount, toAmount, fromToken, toToken, fromChain, toChain, fromAddress, toAddress, actions, fees, timeToComplete, timestamp, isLoading, refundHash, refundLink, }) {
83730
+ function BridgeTransactionView({ title = "Bridge", hash, fromLink, toLink, status, url, fromAmount, toAmount, fromToken, toToken, fromChain, toChain, fromAddress, toAddress, actions, fees, timeToComplete, timestamp, isLoading, }) {
83738
83731
  if (isLoading)
83739
83732
  return jsxRuntime.jsx(TransactionViewLayout, { isLoading: isLoading });
83740
- return (jsxRuntime.jsx(TransactionViewLayout, { isLoading: isLoading, header: jsxRuntime.jsx(TransactionHeaderLayout, { title: title, status: status, media: jsxRuntime.jsxs("div", { className: "tw-relative", children: [jsxRuntime.jsx(Image$2, { src: fromChain.logoURI, size: "xlarge", rounded: "full" }), toChain ? (jsxRuntime.jsx("div", { className: "tw-absolute -tw-bottom-[1px] -tw-right-[1px] tw-rounded-md tw-border tw-border-white", children: jsxRuntime.jsx(Image$2, { src: toChain.logoURI, size: "medium" }) })) : (jsxRuntime.jsx("div", { className: "tw-absolute -tw-bottom-[1px] -tw-right-[1px] tw-w-squid-m tw-overflow-hidden tw-rounded-md", children: jsxRuntime.jsx(LoadingSkeleton, { className: "tw-bg-grey-600 tw-text-transparent" }) }))] }), children: jsxRuntime.jsxs("div", { className: "tw-flex tw-items-center tw-gap-squid-xs tw-text-grey-500", children: [jsxRuntime.jsx(Chip, { label: "TX" }), jsxRuntime.jsx(HashLink, { hash: hash, url: url, showCopyButton: true, formattedHash: formatHash(hash) })] }) }), properties: jsxRuntime.jsxs(PropertiesLayout, { children: [jsxRuntime.jsx(TokenProperty, { token: fromToken, amount: fromAmount, link: fromLink, icon: jsxRuntime.jsx(ArrowRightUpCircleIcon, {}), label: jsxRuntime.jsxs(BodyText, { size: "small", children: ["Bridge ", fromToken === null || fromToken === void 0 ? void 0 : fromToken.symbol] }), showGradientBg: false }), jsxRuntime.jsx(TokenProperty, { token: toToken, amount: toAmount, link: toLink, icon: jsxRuntime.jsx(ArrowRightDownCircleIcon, {}), label: jsxRuntime.jsxs(BodyText, { size: "small", children: ["Receive ", toToken === null || toToken === void 0 ? void 0 : toToken.symbol] }) }), jsxRuntime.jsx(PropertyListItem, { variant: "large", showGradientBg: false, icon: jsxRuntime.jsx(ChainLink, { size: "24" }), label: "Chain", detail: jsxRuntime.jsx(Transfer, { from: jsxRuntime.jsx(IconLabel, { src: fromChain.logoURI, children: jsxRuntime.jsx(BodyText, { size: "small", children: fromChain.name }) }), to: toChain ? (jsxRuntime.jsx(IconLabel, { src: toChain.logoURI, children: jsxRuntime.jsx(BodyText, { size: "small", children: toChain.name }) })) : (jsxRuntime.jsx(LoadingSkeleton, {})) }) }), jsxRuntime.jsx(PropertyListItem, { variant: "large", icon: jsxRuntime.jsx(WalletFilledIcon, {}), label: "Wallet", detail: jsxRuntime.jsx(Transfer, { from: jsxRuntime.jsx(BodyText, { size: "small", children: jsxRuntime.jsx(CopyButton, { copyText: fromAddress, label: jsxRuntime.jsx(HashLink, { hash: fromAddress, formattedHash: formatHash(fromAddress) }) }) }), to: jsxRuntime.jsx(BodyText, { size: "small", children: jsxRuntime.jsx(CopyButton, { copyText: toAddress, label: jsxRuntime.jsx(HashLink, { hash: toAddress, formattedHash: formatHash(toAddress) }) }) }) }) }), refundHash && status === "refunded" ? (jsxRuntime.jsx(RefundedProperty, { token: fromToken, amount: fromAmount, link: refundLink })) : (jsxRuntime.jsx(TimeToCompleteProperty, { timeToComplete: timeToComplete }))] }), actions: actions, fees: fees }));
83733
+ return (jsxRuntime.jsx(TransactionViewLayout, { isLoading: isLoading, header: jsxRuntime.jsx(TransactionHeaderLayout, { title: title, status: status, media: jsxRuntime.jsxs("div", { className: "tw-relative", children: [jsxRuntime.jsx(Image$2, { src: fromChain.logoURI, size: "xlarge", rounded: "full" }), toChain ? (jsxRuntime.jsx("div", { className: "tw-absolute -tw-bottom-[1px] -tw-right-[1px] tw-rounded-md tw-border tw-border-white", children: jsxRuntime.jsx(Image$2, { src: toChain.logoURI, size: "medium" }) })) : (jsxRuntime.jsx("div", { className: "tw-absolute -tw-bottom-[1px] -tw-right-[1px] tw-w-squid-m tw-overflow-hidden tw-rounded-md", children: jsxRuntime.jsx(LoadingSkeleton, { className: "tw-bg-grey-600 tw-text-transparent" }) }))] }), children: jsxRuntime.jsxs("div", { className: "tw-flex tw-items-center tw-gap-squid-xs tw-text-grey-500", children: [jsxRuntime.jsx(Chip, { label: "TX" }), jsxRuntime.jsx(HashLink, { hash: hash, url: url, showCopyButton: true, formattedHash: formatHash(hash) })] }) }), properties: jsxRuntime.jsxs(PropertiesLayout, { children: [jsxRuntime.jsx(TokenProperty, { token: fromToken, amount: fromAmount, link: fromLink, icon: jsxRuntime.jsx(ArrowRightUpCircleIcon, {}), label: jsxRuntime.jsxs(BodyText, { size: "small", children: ["Bridge ", fromToken === null || fromToken === void 0 ? void 0 : fromToken.symbol] }), showGradientBg: false }), jsxRuntime.jsx(TokenProperty, { token: toToken, amount: toAmount, link: toLink, icon: jsxRuntime.jsx(ArrowRightDownCircleIcon, {}), label: jsxRuntime.jsxs(BodyText, { size: "small", children: ["Receive ", toToken === null || toToken === void 0 ? void 0 : toToken.symbol] }) }), jsxRuntime.jsx(PropertyListItem, { variant: "large", showGradientBg: false, icon: jsxRuntime.jsx(ChainLink, { size: "24" }), label: "Chain", detail: jsxRuntime.jsx(Transfer, { from: jsxRuntime.jsx(IconLabel, { src: fromChain.logoURI, children: jsxRuntime.jsx(BodyText, { size: "small", children: fromChain.name }) }), to: toChain ? (jsxRuntime.jsx(IconLabel, { src: toChain.logoURI, children: jsxRuntime.jsx(BodyText, { size: "small", children: toChain.name }) })) : (jsxRuntime.jsx(LoadingSkeleton, {})) }) }), jsxRuntime.jsx(PropertyListItem, { variant: "large", icon: jsxRuntime.jsx(WalletFilledIcon, {}), label: "Wallet", detail: jsxRuntime.jsx(Transfer, { from: jsxRuntime.jsx(BodyText, { size: "small", children: jsxRuntime.jsx(CopyButton, { copyText: fromAddress, label: jsxRuntime.jsx(HashLink, { hash: fromAddress, formattedHash: formatHash(fromAddress) }) }) }), to: jsxRuntime.jsx(BodyText, { size: "small", children: jsxRuntime.jsx(CopyButton, { copyText: toAddress, label: jsxRuntime.jsx(HashLink, { hash: toAddress, formattedHash: formatHash(toAddress) }) }) }) }) }), jsxRuntime.jsx(TimeToCompleteProperty, { timeToComplete: timeToComplete })] }), actions: actions, fees: fees }));
83741
83734
  }
83742
83735
 
83743
83736
  function TransactionView({ type, isLoading, data, }) {
@@ -1,6 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  import { UserInputType } from "../../hooks/useNumericInput";
3
- import { type SwapDirection } from "../../types/components";
4
3
  import { type TooltipProps } from "./Tooltip";
5
4
  export interface Token {
6
5
  price: number;
@@ -35,7 +34,6 @@ export interface NumericInputProps {
35
34
  inputClassName?: string;
36
35
  }
37
36
  export interface Props extends NumericInputProps, React.InputHTMLAttributes<HTMLInputElement> {
38
- direction?: SwapDirection;
39
37
  showDetails?: boolean;
40
38
  isLoading?: boolean;
41
39
  isInteractive?: boolean;
@@ -45,4 +43,4 @@ export interface Props extends NumericInputProps, React.InputHTMLAttributes<HTML
45
43
  message: string;
46
44
  };
47
45
  }
48
- export declare function NumericInput({ priceImpactPercentage, balance, error, criticalPriceImpactPercentage, token, onAmountChange, forcedAmount, maxUsdDecimals, formatIfVerySmall, showDetails, isLoading, direction, inputModeButton, isInteractive, balanceButton, debounceInput, initialInputMode, customSymbol, hideControls, hideBalance, containerClassName, inputClassName, ...props }: Props): import("react/jsx-runtime").JSX.Element;
46
+ export declare function NumericInput({ priceImpactPercentage, balance, error, criticalPriceImpactPercentage, token, onAmountChange, forcedAmount, maxUsdDecimals, formatIfVerySmall, showDetails, isLoading, inputModeButton, isInteractive, balanceButton, debounceInput, initialInputMode, customSymbol, hideControls, hideBalance, containerClassName, inputClassName, ...props }: Props): import("react/jsx-runtime").JSX.Element;
@@ -29,6 +29,4 @@ export interface BaseTransactionViewProps {
29
29
  fees: FeesActionProps;
30
30
  timeToComplete: string;
31
31
  timestamp: number;
32
- refundHash?: string;
33
- refundLink?: string;
34
32
  }
@@ -34,5 +34,5 @@ type BridgeTransactionViewProps = (BaseBridgeTransactionViewProps & {
34
34
  }) | (Partial<Omit<BaseBridgeTransactionViewProps, keyof BaseTransactionViewProps>> & BaseTransactionViewProps & {
35
35
  isLoading: true;
36
36
  });
37
- export declare function BridgeTransactionView({ title, hash, fromLink, toLink, status, url, fromAmount, toAmount, fromToken, toToken, fromChain, toChain, fromAddress, toAddress, actions, fees, timeToComplete, timestamp, isLoading, refundHash, refundLink, }: BridgeTransactionViewProps): import("react/jsx-runtime").JSX.Element;
37
+ export declare function BridgeTransactionView({ title, hash, fromLink, toLink, status, url, fromAmount, toAmount, fromToken, toToken, fromChain, toChain, fromAddress, toAddress, actions, fees, timeToComplete, timestamp, isLoading, }: BridgeTransactionViewProps): import("react/jsx-runtime").JSX.Element;
38
38
  export {};
@@ -32,5 +32,5 @@ type SwapTransactionViewProps = (BaseSwapTransactionViewProps & {
32
32
  }) | (Partial<Omit<BaseSwapTransactionViewProps, keyof BaseTransactionViewProps>> & BaseTransactionViewProps & {
33
33
  isLoading: true;
34
34
  });
35
- export declare function SwapTransactionView({ title, hash, toLink, fromLink, status, url, fromAmount, fromToken, toAmount, toToken, fromChain, toChain, fromAddress, toAddress, exchangeRate, timeToComplete, timestamp, actions, fees, isLoading, refundHash, refundLink, }: SwapTransactionViewProps): import("react/jsx-runtime").JSX.Element;
35
+ export declare function SwapTransactionView({ title, hash, toLink, fromLink, status, url, fromAmount, fromToken, toAmount, toToken, fromChain, toChain, fromAddress, toAddress, exchangeRate, timeToComplete, timestamp, actions, fees, isLoading, }: SwapTransactionViewProps): import("react/jsx-runtime").JSX.Element;
36
36
  export {};
@@ -1,4 +1,4 @@
1
- type UseMediaQueryOptions = {
1
+ interface UseMediaQueryOptions {
2
2
  /**
3
3
  * The default value to return if the hook is being run on the server.
4
4
  * @default false
@@ -9,7 +9,7 @@ type UseMediaQueryOptions = {
9
9
  * @default true
10
10
  */
11
11
  initializeWithValue?: boolean;
12
- };
12
+ }
13
13
  /**
14
14
  * Custom hook that tracks the state of a media query using the [`Match Media API`](https://developer.mozilla.org/en-US/docs/Web/API/Window/matchMedia).
15
15
  * @param {string} query - The media query to track.
@@ -18,10 +18,9 @@ interface UseNumericInputOptions {
18
18
  };
19
19
  maxUsdDecimals?: number;
20
20
  debounceInput?: boolean;
21
- direction?: "from" | "to";
22
21
  initialInputMode?: UserInputType;
23
22
  }
24
- export declare function useNumericInput({ onAmountChange, token, balance, debounceInput, forcedAmount, formatIfVerySmall, inputModeButton, maxUsdDecimals, direction, initialInputMode, }: UseNumericInputOptions): {
23
+ export declare function useNumericInput({ onAmountChange, token, balance, debounceInput, forcedAmount, formatIfVerySmall, inputModeButton, maxUsdDecimals, initialInputMode, }: UseNumericInputOptions): {
25
24
  userInputType: UserInputType;
26
25
  inputValue: string;
27
26
  handleInputChange: (e: ChangeEvent<HTMLInputElement>) => void;
@@ -956,55 +956,3 @@ export declare const BridgeMissingToToken: {
956
956
  };
957
957
  };
958
958
  };
959
- export declare const BridgeRefunded: {
960
- args: {
961
- type: string;
962
- data: {
963
- title: string;
964
- hash: string;
965
- url: string;
966
- status: string;
967
- fromAmount: string;
968
- toAmount: string;
969
- fromToken: {
970
- logoURI: string;
971
- bgColor: string;
972
- symbol: string;
973
- };
974
- toToken: {
975
- logoURI: string;
976
- bgColor: string;
977
- symbol: string;
978
- };
979
- fromChain: {
980
- logoURI: string;
981
- name: string;
982
- bgColor: string;
983
- };
984
- toChain: {
985
- logoURI: string;
986
- name: string;
987
- bgColor: string;
988
- };
989
- fromAddress: string;
990
- toAddress: string;
991
- fromLink: string;
992
- timeToComplete: string;
993
- refundHash: string;
994
- refundLink: string;
995
- fees: {
996
- status: string;
997
- total: {
998
- label: string;
999
- usd: number;
1000
- };
1001
- lines: {
1002
- label: string;
1003
- usd: number;
1004
- amount: string;
1005
- symbol: string;
1006
- }[];
1007
- };
1008
- };
1009
- };
1010
- };