Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@0xsquid/ui

Package Overview
Dependencies
Maintainers
3
Versions
177
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@0xsquid/ui - npm Package Compare versions

Comparing version 0.14.0 to 0.15.0

dist/cjs/types/core/numbers.d.ts

4

dist/cjs/types/components/controls/NumericInput.d.ts
import type { InputHTMLAttributes } from 'react';
import { InputMode } from '../../types/components';
interface Props extends InputHTMLAttributes<HTMLInputElement> {

@@ -9,4 +10,5 @@ onParsedValueChanged: (value: string) => void;

tokenPrice?: number;
numericInputMode?: InputMode;
}
export declare const NumericInput: ({ onParsedValueChanged, initialValue, forcedUpdateValue, maxDecimals, balance, tokenPrice, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
export declare const NumericInput: ({ onParsedValueChanged, initialValue, forcedUpdateValue, maxDecimals, balance, tokenPrice, numericInputMode, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
export {};

@@ -7,3 +7,2 @@ import { SwapDirection } from '../../types/components';

forcedAmount?: string;
swapAmountUsd?: string;
tokenPrice?: number;

@@ -33,5 +32,4 @@ balance?: string;

emptyAddressLabel?: string;
onSwapAmountButtonClick?: () => void;
}
export declare function SwapConfiguration({ priceImpactPercentage, amount, forcedAmount, swapAmountUsd, balance, tokenPrice, isFetching, chain, token, direction, onAmountChange, onWalletButtonClick, onAssetsButtonClick, onBalanceButtonClick, onSwapAmountButtonClick, address, error, criticalPriceImpactPercentage, emptyAddressLabel, }: SwapConfigurationProps): import("react/jsx-runtime").JSX.Element;
export declare function SwapConfiguration({ priceImpactPercentage, amount, forcedAmount: _forcedAmount, balance, tokenPrice, isFetching, chain, token, direction, onAmountChange, onWalletButtonClick, onAssetsButtonClick, onBalanceButtonClick, address, error, criticalPriceImpactPercentage, emptyAddressLabel, }: SwapConfigurationProps): import("react/jsx-runtime").JSX.Element;
export {};

@@ -29,1 +29,2 @@ export type TextSize = 'small' | 'medium' | 'large';

export type SwapStepItemStatus = 'pending' | 'waiting' | 'ongoing' | 'executed' | 'success' | 'error' | 'warning';
export type InputMode = 'token' | 'price';
import type { InputHTMLAttributes } from 'react';
import { InputMode } from '../../types/components';
interface Props extends InputHTMLAttributes<HTMLInputElement> {

@@ -9,4 +10,5 @@ onParsedValueChanged: (value: string) => void;

tokenPrice?: number;
numericInputMode?: InputMode;
}
export declare const NumericInput: ({ onParsedValueChanged, initialValue, forcedUpdateValue, maxDecimals, balance, tokenPrice, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
export declare const NumericInput: ({ onParsedValueChanged, initialValue, forcedUpdateValue, maxDecimals, balance, tokenPrice, numericInputMode, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
export {};

@@ -7,3 +7,2 @@ import { SwapDirection } from '../../types/components';

forcedAmount?: string;
swapAmountUsd?: string;
tokenPrice?: number;

@@ -33,5 +32,4 @@ balance?: string;

emptyAddressLabel?: string;
onSwapAmountButtonClick?: () => void;
}
export declare function SwapConfiguration({ priceImpactPercentage, amount, forcedAmount, swapAmountUsd, balance, tokenPrice, isFetching, chain, token, direction, onAmountChange, onWalletButtonClick, onAssetsButtonClick, onBalanceButtonClick, onSwapAmountButtonClick, address, error, criticalPriceImpactPercentage, emptyAddressLabel, }: SwapConfigurationProps): import("react/jsx-runtime").JSX.Element;
export declare function SwapConfiguration({ priceImpactPercentage, amount, forcedAmount: _forcedAmount, balance, tokenPrice, isFetching, chain, token, direction, onAmountChange, onWalletButtonClick, onAssetsButtonClick, onBalanceButtonClick, address, error, criticalPriceImpactPercentage, emptyAddressLabel, }: SwapConfigurationProps): import("react/jsx-runtime").JSX.Element;
export {};

@@ -29,1 +29,2 @@ export type TextSize = 'small' | 'medium' | 'large';

export type SwapStepItemStatus = 'pending' | 'waiting' | 'ongoing' | 'executed' | 'success' | 'error' | 'warning';
export type InputMode = 'token' | 'price';

@@ -77,2 +77,3 @@ /// <reference types="react" />

type SwapStepItemStatus = 'pending' | 'waiting' | 'ongoing' | 'executed' | 'success' | 'error' | 'warning';
type InputMode = 'token' | 'price';

@@ -135,4 +136,5 @@ interface BoostButtonProps {

tokenPrice?: number;
numericInputMode?: InputMode;
}
declare const NumericInput: ({ onParsedValueChanged, initialValue, forcedUpdateValue, maxDecimals, balance, tokenPrice, ...props }: Props) => react_jsx_runtime.JSX.Element;
declare const NumericInput: ({ onParsedValueChanged, initialValue, forcedUpdateValue, maxDecimals, balance, tokenPrice, numericInputMode, ...props }: Props) => react_jsx_runtime.JSX.Element;

@@ -410,3 +412,2 @@ interface SettingsSliderProps {

forcedAmount?: string;
swapAmountUsd?: string;
tokenPrice?: number;

@@ -436,5 +437,4 @@ balance?: string;

emptyAddressLabel?: string;
onSwapAmountButtonClick?: () => void;
}
declare function SwapConfiguration({ priceImpactPercentage, amount, forcedAmount, swapAmountUsd, balance, tokenPrice, isFetching, chain, token, direction, onAmountChange, onWalletButtonClick, onAssetsButtonClick, onBalanceButtonClick, onSwapAmountButtonClick, address, error, criticalPriceImpactPercentage, emptyAddressLabel, }: SwapConfigurationProps): react_jsx_runtime.JSX.Element;
declare function SwapConfiguration({ priceImpactPercentage, amount, forcedAmount: _forcedAmount, balance, tokenPrice, isFetching, chain, token, direction, onAmountChange, onWalletButtonClick, onAssetsButtonClick, onBalanceButtonClick, address, error, criticalPriceImpactPercentage, emptyAddressLabel, }: SwapConfigurationProps): react_jsx_runtime.JSX.Element;

@@ -441,0 +441,0 @@ interface SwapProgressViewHeaderProps {

@@ -8,3 +8,3 @@ {

"description": "Squid's UI components",
"version": "0.14.0",
"version": "0.15.0",
"author": "",

@@ -32,2 +32,3 @@ "license": "MIT",

"@lottiefiles/react-lottie-player": "3.5.0",
"bignumber.js": "9.1.2",
"clsx": "2.1.0",

@@ -34,0 +35,0 @@ "color": "4.2.3",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc