@0xsquid/ui 0.17.1 → 0.17.2
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 +35286 -0
- package/dist/cjs/types/components/views/index.d.ts +6 -0
- package/dist/cjs/types/services/internal/colorService.d.ts +1 -1
- package/dist/esm/index.js +35280 -1
- package/dist/esm/types/components/views/index.d.ts +6 -0
- package/dist/esm/types/services/internal/colorService.d.ts +1 -1
- package/dist/index.d.ts +75 -3
- package/package.json +1 -1
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
export * from './AssetsView';
|
|
2
|
+
export * from './MainView';
|
|
3
|
+
export * from './RecipientView';
|
|
4
|
+
export * from './SwapDetailsView';
|
|
5
|
+
export * from './SwapProgressView';
|
|
1
6
|
export * from './TransactionView/BaseTransactionViewProps';
|
|
2
7
|
export * from './TransactionView/BridgeTransactionView';
|
|
3
8
|
export * from './TransactionView/BuyNFTTransactionView';
|
|
@@ -5,3 +10,4 @@ export * from './TransactionView/InteractionTransactionView';
|
|
|
5
10
|
export * from './TransactionView/SwapTransactionView';
|
|
6
11
|
export * from './TransactionView/TransactionView';
|
|
7
12
|
export * from './TransactionView/TransactionViewLayout';
|
|
13
|
+
export * from './WalletsView';
|
package/dist/index.d.ts
CHANGED
|
@@ -191,13 +191,13 @@ type InputActionButtonProps = {
|
|
|
191
191
|
label?: string;
|
|
192
192
|
};
|
|
193
193
|
|
|
194
|
-
interface Token {
|
|
194
|
+
interface Token$1 {
|
|
195
195
|
price: number;
|
|
196
196
|
symbol: string;
|
|
197
197
|
decimals: number;
|
|
198
198
|
}
|
|
199
199
|
interface NumericInputProps {
|
|
200
|
-
token: Token;
|
|
200
|
+
token: Token$1;
|
|
201
201
|
onAmountChange: (tokenAmount: string) => void;
|
|
202
202
|
forcedAmount?: string;
|
|
203
203
|
maxDecimals?: {
|
|
@@ -1161,6 +1161,76 @@ interface HeadingTextProps {
|
|
|
1161
1161
|
}
|
|
1162
1162
|
declare function HeadingText({ children, bold, size, className, }: HeadingTextProps): react_jsx_runtime.JSX.Element;
|
|
1163
1163
|
|
|
1164
|
+
interface AssetsViewProps {
|
|
1165
|
+
chains: {
|
|
1166
|
+
name: string;
|
|
1167
|
+
iconUrl: string;
|
|
1168
|
+
}[];
|
|
1169
|
+
favoriteTokens: {
|
|
1170
|
+
symbol: string;
|
|
1171
|
+
name: string;
|
|
1172
|
+
iconUrl: string;
|
|
1173
|
+
chainIconUrl: string;
|
|
1174
|
+
}[];
|
|
1175
|
+
popularTokens: {
|
|
1176
|
+
symbol: string;
|
|
1177
|
+
name: string;
|
|
1178
|
+
iconUrl: string;
|
|
1179
|
+
chainIconUrl: string;
|
|
1180
|
+
}[];
|
|
1181
|
+
userTokens: {
|
|
1182
|
+
symbol: string;
|
|
1183
|
+
name: string;
|
|
1184
|
+
iconUrl: string;
|
|
1185
|
+
chainIconUrl: string;
|
|
1186
|
+
balance: string;
|
|
1187
|
+
}[];
|
|
1188
|
+
}
|
|
1189
|
+
declare function AssetsView({ chains, favoriteTokens, popularTokens, userTokens, }: AssetsViewProps): react_jsx_runtime.JSX.Element;
|
|
1190
|
+
declare const List: ({ children }: React__default.PropsWithChildren) => react_jsx_runtime.JSX.Element;
|
|
1191
|
+
|
|
1192
|
+
declare function MainView(): react_jsx_runtime.JSX.Element;
|
|
1193
|
+
|
|
1194
|
+
type WalletViewType = 'paymentMethod' | 'recipientEmpty' | 'recipientTypingEns' | 'recipientTypingAddress';
|
|
1195
|
+
interface WalletsViewProps {
|
|
1196
|
+
type: WalletViewType;
|
|
1197
|
+
}
|
|
1198
|
+
declare function RecipientView({ type }: WalletsViewProps): react_jsx_runtime.JSX.Element;
|
|
1199
|
+
|
|
1200
|
+
declare function SwapDetailsView({ isLoading }: {
|
|
1201
|
+
isLoading?: boolean;
|
|
1202
|
+
}): react_jsx_runtime.JSX.Element;
|
|
1203
|
+
|
|
1204
|
+
type ChainData = {
|
|
1205
|
+
networkName: string;
|
|
1206
|
+
logoUrl: string;
|
|
1207
|
+
bgColor: string;
|
|
1208
|
+
};
|
|
1209
|
+
type Token = {
|
|
1210
|
+
symbol: string;
|
|
1211
|
+
logoUrl: string;
|
|
1212
|
+
bgColor: string;
|
|
1213
|
+
};
|
|
1214
|
+
declare function SwapProgressView({ steps, isOpen, handleClose, handleComplete, socialLink, supportLink, fromAmount, fromChain, fromToken, toAmount, toChain, toToken, fromAddressFormatted, toAddressFormatted, swapState, estimatedTimeToComplete, footerButton, }: {
|
|
1215
|
+
steps: SwapStep[];
|
|
1216
|
+
handleClose?: () => void;
|
|
1217
|
+
handleComplete?: () => void;
|
|
1218
|
+
isOpen?: boolean;
|
|
1219
|
+
socialLink?: string;
|
|
1220
|
+
supportLink?: string;
|
|
1221
|
+
fromToken: Token;
|
|
1222
|
+
toToken: Token;
|
|
1223
|
+
fromAmount: string;
|
|
1224
|
+
toAmount: string;
|
|
1225
|
+
fromChain: ChainData;
|
|
1226
|
+
toChain: ChainData;
|
|
1227
|
+
fromAddressFormatted: string;
|
|
1228
|
+
toAddressFormatted: string;
|
|
1229
|
+
swapState: SwapState;
|
|
1230
|
+
estimatedTimeToComplete?: string;
|
|
1231
|
+
footerButton?: SwapStepsCollapsedFooterButton;
|
|
1232
|
+
}): react_jsx_runtime.JSX.Element;
|
|
1233
|
+
|
|
1164
1234
|
interface BaseTransactionViewProps {
|
|
1165
1235
|
title?: string;
|
|
1166
1236
|
hash: string;
|
|
@@ -1289,6 +1359,8 @@ interface TransactionViewLayoutProps extends ComponentProps<'div'> {
|
|
|
1289
1359
|
}
|
|
1290
1360
|
declare function TransactionViewLayout({ header, properties, actions, fees, ...props }: TransactionViewLayoutProps): react_jsx_runtime.JSX.Element;
|
|
1291
1361
|
|
|
1362
|
+
declare function WalletsView(): react_jsx_runtime.JSX.Element;
|
|
1363
|
+
|
|
1292
1364
|
type SquidTheme = {
|
|
1293
1365
|
'content-100': string;
|
|
1294
1366
|
'content-200': string;
|
|
@@ -1322,4 +1394,4 @@ declare function useDropdownMenu(props?: {
|
|
|
1322
1394
|
openDropdownButtonRef: React.RefObject<HTMLButtonElement>;
|
|
1323
1395
|
};
|
|
1324
1396
|
|
|
1325
|
-
export { ActionLayout, ActionLineOutRow, ActionProperties, ActionRow, type ActionStatus, ActionStatusRow, ActionWrapper, AddressButton, AnimationWrapper, ApproveAction, ArrowButton, AssetsButton, BadgeImage, type BaseActionProps, type BaseTransactionViewProps, BodyText, Boost, BoostButton, BorderedContainer, Breadcrumb, BridgeAction, BridgeHeader, BridgeProperties, BridgeTransactionView, Button, BuyNFTHeader, BuyNFTProperties, BuyNFTTransactionView, CaptionText, Chip, Collapse, DescriptionBlocks, DetailsToolbar, DropdownMenu, DropdownMenuItem, type DropdownMenuItemProps, ErrorMessage, ExploreLayout, FeeButton, FeesAction, type FeesActionProps, FeesLines, FeesTotal, FilterButton, HashLink, HeadingText, HistoryItem, type HistoryItemStatus, IconLabel, ImageIcon, IncompleteAction, InfoBox, Inline, Input, InteractionHeader, InteractionProperties, InteractionTransactionView, Join, ListItem, LoadingProvider, LoadingSkeleton, Menu, MenuItem, Modal, ModalContent, ModalContentDivider, NavigationBar, NumericInput, ProductCard, ProfileHeader, ProfileHeaderBackground, PropertiesLayout, PropertyListItem, type PropertyListItemProps, ReceiveNFTAction, ReceiveTokensAction, STEP_ITEM_HEIGHT, SectionTitle, SendTokensAction, SettingsButton, type SettingsButtonProps, type SettingsControl, SettingsItem, type SettingsItemProps, SettingsSlider, type SettingsSliderProps, SizeTransition, SquidConfigProvider, type SquidTheme, StakeAction, StartAction, SuccessAction, SwapAction, SwapConfiguration, SwapHeader, type SwapHeaderProps, SwapProgressViewHeader, SwapProperties, type SwapPropertiesProps, SwapState, type SwapStep, SwapStepItem, SwapStepsCollapsed, type SwapStepsCollapsedFooterButton, SwapTransactionView, Switch, type ThemeType, Timestamp, TokenPair, Tooltip, type TooltipProps, type TooltipThreshold, type TooltipWidth, TransactionAction, type TransactionActionProps, type TransactionActionType, TransactionFilters, TransactionHeader, TransactionHeaderLayout, type TransactionHeaderProps, type TransactionHeaderType, TransactionItem, TransactionProperties, type TransactionPropertiesProps, type TransactionPropertiesType, TransactionSearch, TransactionState, TransactionView, TransactionViewLayout, type TransactionViewProps, type TransactionViewType, Transfer, UsdAmount, WalletLink, WrapAction, linkActionTimelineProps, statusBgClassMap, statusColorClassMap, statusTextClassMap, useDropdownMenu };
|
|
1397
|
+
export { ActionLayout, ActionLineOutRow, ActionProperties, ActionRow, type ActionStatus, ActionStatusRow, ActionWrapper, AddressButton, AnimationWrapper, ApproveAction, ArrowButton, AssetsButton, AssetsView, BadgeImage, type BaseActionProps, type BaseTransactionViewProps, BodyText, Boost, BoostButton, BorderedContainer, Breadcrumb, BridgeAction, BridgeHeader, BridgeProperties, BridgeTransactionView, Button, BuyNFTHeader, BuyNFTProperties, BuyNFTTransactionView, CaptionText, Chip, Collapse, DescriptionBlocks, DetailsToolbar, DropdownMenu, DropdownMenuItem, type DropdownMenuItemProps, ErrorMessage, ExploreLayout, FeeButton, FeesAction, type FeesActionProps, FeesLines, FeesTotal, FilterButton, HashLink, HeadingText, HistoryItem, type HistoryItemStatus, IconLabel, ImageIcon, IncompleteAction, InfoBox, Inline, Input, InteractionHeader, InteractionProperties, InteractionTransactionView, Join, List, ListItem, LoadingProvider, LoadingSkeleton, MainView, Menu, MenuItem, Modal, ModalContent, ModalContentDivider, NavigationBar, NumericInput, ProductCard, ProfileHeader, ProfileHeaderBackground, PropertiesLayout, PropertyListItem, type PropertyListItemProps, ReceiveNFTAction, ReceiveTokensAction, RecipientView, STEP_ITEM_HEIGHT, SectionTitle, SendTokensAction, SettingsButton, type SettingsButtonProps, type SettingsControl, SettingsItem, type SettingsItemProps, SettingsSlider, type SettingsSliderProps, SizeTransition, SquidConfigProvider, type SquidTheme, StakeAction, StartAction, SuccessAction, SwapAction, SwapConfiguration, SwapDetailsView, SwapHeader, type SwapHeaderProps, SwapProgressView, SwapProgressViewHeader, SwapProperties, type SwapPropertiesProps, SwapState, type SwapStep, SwapStepItem, SwapStepsCollapsed, type SwapStepsCollapsedFooterButton, SwapTransactionView, Switch, type ThemeType, Timestamp, TokenPair, Tooltip, type TooltipProps, type TooltipThreshold, type TooltipWidth, TransactionAction, type TransactionActionProps, type TransactionActionType, TransactionFilters, TransactionHeader, TransactionHeaderLayout, type TransactionHeaderProps, type TransactionHeaderType, TransactionItem, TransactionProperties, type TransactionPropertiesProps, type TransactionPropertiesType, TransactionSearch, TransactionState, TransactionView, TransactionViewLayout, type TransactionViewProps, type TransactionViewType, Transfer, UsdAmount, WalletLink, WalletsView, WrapAction, linkActionTimelineProps, statusBgClassMap, statusColorClassMap, statusTextClassMap, useDropdownMenu };
|