@0xsquid/ui
Advanced tools
Comparing version 0.7.3 to 0.7.4
export * from './Input'; | ||
export * from './NumericInput'; | ||
export * from './SettingsSlider'; | ||
export * from './Switch'; | ||
export * from './Tooltip'; |
@@ -1,2 +0,1 @@ | ||
/// <reference types="react" /> | ||
import { SwapDirection } from '../../types/components'; | ||
@@ -7,2 +6,3 @@ interface SwapConfigurationProps { | ||
amount?: string; | ||
forcedAmount?: string; | ||
swapAmountUsd?: string; | ||
@@ -22,5 +22,6 @@ balance?: string; | ||
address?: string; | ||
onAmountChange?: (event: React.ChangeEvent<HTMLInputElement>) => void; | ||
onAmountChange?: (amount: string) => void; | ||
onWalletButtonClick?: () => void; | ||
onAssetsButtonClick?: () => void; | ||
onBalanceButtonClick?: () => void; | ||
error?: { | ||
@@ -30,3 +31,3 @@ message: string; | ||
} | ||
export declare function SwapConfiguration({ priceImpactPercentage, amount, swapAmountUsd, balance, isFetching, chain, token, direction, onAmountChange, onWalletButtonClick, onAssetsButtonClick, address, error, }: SwapConfigurationProps): import("react/jsx-runtime").JSX.Element; | ||
export declare function SwapConfiguration({ priceImpactPercentage, amount, forcedAmount, swapAmountUsd, balance, isFetching, chain, token, direction, onAmountChange, onWalletButtonClick, onAssetsButtonClick, onBalanceButtonClick, address, error, }: SwapConfigurationProps): import("react/jsx-runtime").JSX.Element; | ||
export {}; |
@@ -11,1 +11,8 @@ import { ClassValue } from 'clsx'; | ||
export declare const cn: (...inputs: ClassValue[]) => string; | ||
type AnyFunction = (...args: any[]) => any; | ||
interface DebouncedFunction<F extends AnyFunction> { | ||
(...args: Parameters<F>): void; | ||
cancel: () => void; | ||
} | ||
export declare function debounce<F extends AnyFunction>(func: F, delay: number): DebouncedFunction<F>; | ||
export {}; |
export * from './Input'; | ||
export * from './NumericInput'; | ||
export * from './SettingsSlider'; | ||
export * from './Switch'; | ||
export * from './Tooltip'; |
@@ -1,2 +0,1 @@ | ||
/// <reference types="react" /> | ||
import { SwapDirection } from '../../types/components'; | ||
@@ -7,2 +6,3 @@ interface SwapConfigurationProps { | ||
amount?: string; | ||
forcedAmount?: string; | ||
swapAmountUsd?: string; | ||
@@ -22,5 +22,6 @@ balance?: string; | ||
address?: string; | ||
onAmountChange?: (event: React.ChangeEvent<HTMLInputElement>) => void; | ||
onAmountChange?: (amount: string) => void; | ||
onWalletButtonClick?: () => void; | ||
onAssetsButtonClick?: () => void; | ||
onBalanceButtonClick?: () => void; | ||
error?: { | ||
@@ -30,3 +31,3 @@ message: string; | ||
} | ||
export declare function SwapConfiguration({ priceImpactPercentage, amount, swapAmountUsd, balance, isFetching, chain, token, direction, onAmountChange, onWalletButtonClick, onAssetsButtonClick, address, error, }: SwapConfigurationProps): import("react/jsx-runtime").JSX.Element; | ||
export declare function SwapConfiguration({ priceImpactPercentage, amount, forcedAmount, swapAmountUsd, balance, isFetching, chain, token, direction, onAmountChange, onWalletButtonClick, onAssetsButtonClick, onBalanceButtonClick, address, error, }: SwapConfigurationProps): import("react/jsx-runtime").JSX.Element; | ||
export {}; |
@@ -11,1 +11,8 @@ import { ClassValue } from 'clsx'; | ||
export declare const cn: (...inputs: ClassValue[]) => string; | ||
type AnyFunction = (...args: any[]) => any; | ||
interface DebouncedFunction<F extends AnyFunction> { | ||
(...args: Parameters<F>): void; | ||
cancel: () => void; | ||
} | ||
export declare function debounce<F extends AnyFunction>(func: F, delay: number): DebouncedFunction<F>; | ||
export {}; |
/// <reference types="react" /> | ||
import * as react_jsx_runtime from 'react/jsx-runtime'; | ||
import React$1 from 'react'; | ||
import React$1, { InputHTMLAttributes } from 'react'; | ||
@@ -106,2 +106,12 @@ interface BadgeImageProps { | ||
interface Props extends InputHTMLAttributes<HTMLInputElement> { | ||
onParsedValueChanged: (value: string) => void; | ||
initialValue?: string; | ||
forcedUpdateValue?: string; | ||
maxDecimals?: number; | ||
balance?: string; | ||
sourceTokenUsdPrice?: number; | ||
} | ||
declare const NumericInput: ({ onParsedValueChanged, initialValue, forcedUpdateValue, maxDecimals, balance, sourceTokenUsdPrice, ...props }: Props) => react_jsx_runtime.JSX.Element; | ||
interface SettingsSliderProps { | ||
@@ -295,2 +305,3 @@ value: number; | ||
amount?: string; | ||
forcedAmount?: string; | ||
swapAmountUsd?: string; | ||
@@ -310,5 +321,6 @@ balance?: string; | ||
address?: string; | ||
onAmountChange?: (event: React.ChangeEvent<HTMLInputElement>) => void; | ||
onAmountChange?: (amount: string) => void; | ||
onWalletButtonClick?: () => void; | ||
onAssetsButtonClick?: () => void; | ||
onBalanceButtonClick?: () => void; | ||
error?: { | ||
@@ -318,3 +330,3 @@ message: string; | ||
} | ||
declare function SwapConfiguration({ priceImpactPercentage, amount, swapAmountUsd, balance, isFetching, chain, token, direction, onAmountChange, onWalletButtonClick, onAssetsButtonClick, address, error, }: SwapConfigurationProps): react_jsx_runtime.JSX.Element; | ||
declare function SwapConfiguration({ priceImpactPercentage, amount, forcedAmount, swapAmountUsd, balance, isFetching, chain, token, direction, onAmountChange, onWalletButtonClick, onAssetsButtonClick, onBalanceButtonClick, address, error, }: SwapConfigurationProps): react_jsx_runtime.JSX.Element; | ||
@@ -415,2 +427,2 @@ interface SwapProgressViewHeaderProps { | ||
export { AddressButton, ArrowButton, AssetsButton, BadgeImage, BodyText, Boost, BoostButton, Button, CaptionText, Chip, DetailsToolbar, DropdownMenu, DropdownMenuItem, type DropdownMenuItemProps, ErrorMessage, FeeButton, HeadingText, HistoryItem, Input, ListItem, Menu, MenuItem, Modal, NavigationBar, ProductCard, SectionTitle, SettingsButton, type SettingsButtonProps, SettingsItem, type SettingsItemProps, SettingsSlider, type SettingsSliderProps, SquidConfigProvider, SwapConfiguration, SwapDetailListItem, SwapProgressViewHeader, SwapStepItem, SwapStepsCollapsed, Switch, TokenPair, Tooltip, type TooltipThreshold, type TooltipWidth, UsdAmount, useModal }; | ||
export { AddressButton, ArrowButton, AssetsButton, BadgeImage, BodyText, Boost, BoostButton, Button, CaptionText, Chip, DetailsToolbar, DropdownMenu, DropdownMenuItem, type DropdownMenuItemProps, ErrorMessage, FeeButton, HeadingText, HistoryItem, Input, ListItem, Menu, MenuItem, Modal, NavigationBar, NumericInput, ProductCard, SectionTitle, SettingsButton, type SettingsButtonProps, SettingsItem, type SettingsItemProps, SettingsSlider, type SettingsSliderProps, SquidConfigProvider, SwapConfiguration, SwapDetailListItem, SwapProgressViewHeader, SwapStepItem, SwapStepsCollapsed, Switch, TokenPair, Tooltip, type TooltipThreshold, type TooltipWidth, UsdAmount, useModal }; |
@@ -8,3 +8,3 @@ { | ||
"description": "Squid's UI components", | ||
"version": "0.7.3", | ||
"version": "0.7.4", | ||
"author": "", | ||
@@ -11,0 +11,0 @@ "license": "MIT", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
592505
282
11751