@0xsquid/ui
Advanced tools
Comparing version 0.14.0 to 0.15.0
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
2505785
308
91457
0
2
7
+ Addedbignumber.js@9.1.2
+ Addedbignumber.js@9.1.2(transitive)