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
176
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.7.3 to 0.7.4

dist/cjs/types/components/controls/NumericInput.d.ts

1

dist/cjs/types/components/controls/index.d.ts
export * from './Input';
export * from './NumericInput';
export * from './SettingsSlider';
export * from './Switch';
export * from './Tooltip';

7

dist/cjs/types/components/layout/SwapConfiguration.d.ts

@@ -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

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