@rango-dev/ui 0.22.1-next.9 → 0.23.0
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/CHANGELOG.md +89 -0
- package/dist/index.js +6 -6
- package/dist/index.js.map +4 -4
- package/dist/translations/en.d.ts.map +1 -1
- package/dist/translations/es.d.ts.map +1 -1
- package/dist/translations/fr.d.ts.map +1 -1
- package/dist/translations/ja.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Alert/Alert.styles.d.ts +157 -0
- package/dist/widget/ui/src/components/Alert/Alert.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/BlockchainsChip/BlockchainsChip.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Button/Button.d.ts +54 -54
- package/dist/widget/ui/src/components/Button/Button.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/ListItem/ListItem.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/ListItemButton/ListItemButton.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/PriceImpact/PriceImpact.styles.d.ts +158 -0
- package/dist/widget/ui/src/components/PriceImpact/PriceImpact.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/QuoteCost/QuoteCost.d.ts.map +1 -1
- package/dist/widget/ui/src/components/QuoteCost/QuoteCost.styles.d.ts +314 -0
- package/dist/widget/ui/src/components/QuoteCost/QuoteCost.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/SelectableCategoryList/SelectableCategoryList.d.ts.map +1 -1
- package/dist/widget/ui/src/components/SelectableCategoryList/SelectableCategoryList.helpers.d.ts +16 -2
- package/dist/widget/ui/src/components/SelectableCategoryList/SelectableCategoryList.helpers.d.ts.map +1 -1
- package/dist/widget/ui/src/components/SelectableCategoryList/index.d.ts +1 -0
- package/dist/widget/ui/src/components/SelectableCategoryList/index.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Skeleton/Skeleton.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Skeleton/Skeleton.types.d.ts +1 -1
- package/dist/widget/ui/src/components/Skeleton/Skeleton.types.d.ts.map +1 -1
- package/dist/widget/ui/src/components/StepDetails/StepDetails.d.ts.map +1 -1
- package/dist/widget/ui/src/components/StepDetails/StepDetails.styles.d.ts +6 -0
- package/dist/widget/ui/src/components/StepDetails/StepDetails.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/SwapListItem/mock.d.ts +1 -1
- package/dist/widget/ui/src/components/SwapListItem/mock.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Switch/Switch.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/TextField/TextField.d.ts.map +1 -1
- package/dist/widget/ui/src/components/TokenAmount/TokenAmount.d.ts.map +1 -1
- package/dist/widget/ui/src/components/TokenAmount/TokenAmount.styles.d.ts +471 -1
- package/dist/widget/ui/src/components/TokenAmount/TokenAmount.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Tooltip/Tooltip.styles.d.ts +2 -2
- package/dist/widget/ui/src/components/Tooltip/Tooltip.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Wallet/Wallet.types.d.ts +3 -17
- package/dist/widget/ui/src/components/Wallet/Wallet.types.d.ts.map +1 -1
- package/dist/widget/ui/src/components/common/Image.d.ts +157 -0
- package/dist/widget/ui/src/components/common/Image.d.ts.map +1 -1
- package/dist/widget/ui/src/components/common/index.d.ts +1 -1
- package/dist/widget/ui/src/components/common/index.d.ts.map +1 -1
- package/dist/widget/ui/src/containers/SwapHistory/SwapHistory.d.ts +1 -1
- package/dist/widget/ui/src/containers/SwapHistory/SwapHistory.d.ts.map +1 -1
- package/dist/widget/ui/src/containers/SwapHistory/SwapHistory.stories.d.ts +2 -2
- package/dist/widget/ui/src/containers/SwapHistory/SwapHistory.stories.d.ts.map +1 -1
- package/dist/widget/ui/src/containers/SwapHistory/mock.d.ts +1 -1
- package/dist/widget/ui/src/containers/SwapHistory/mock.d.ts.map +1 -1
- package/dist/widget/ui/src/containers/SwapInput/SwapInput.d.ts.map +1 -1
- package/dist/widget/ui/src/containers/SwapInput/SwapInput.styles.d.ts +1154 -54
- package/dist/widget/ui/src/containers/SwapInput/SwapInput.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/containers/SwapInput/SwapInput.types.d.ts +1 -0
- package/dist/widget/ui/src/containers/SwapInput/SwapInput.types.d.ts.map +1 -1
- package/dist/widget/ui/src/containers/SwapInput/TokenSection.d.ts.map +1 -1
- package/dist/widget/ui/src/containers/SwapInput/TokenSection.styles.d.ts +525 -54
- package/dist/widget/ui/src/containers/SwapInput/TokenSection.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/icons/CosmosCategory.d.ts +5 -0
- package/dist/widget/ui/src/icons/CosmosCategory.d.ts.map +1 -0
- package/dist/widget/ui/src/icons/EvmCategory.d.ts +5 -0
- package/dist/widget/ui/src/icons/EvmCategory.d.ts.map +1 -0
- package/dist/widget/ui/src/icons/Icons.stories.d.ts +1 -1
- package/dist/widget/ui/src/icons/OtherCategory.d.ts +5 -0
- package/dist/widget/ui/src/icons/OtherCategory.d.ts.map +1 -0
- package/dist/widget/ui/src/icons/UtxoCategory.d.ts +5 -0
- package/dist/widget/ui/src/icons/UtxoCategory.d.ts.map +1 -0
- package/dist/widget/ui/src/icons/index.d.ts +4 -0
- package/dist/widget/ui/src/icons/index.d.ts.map +1 -1
- package/dist/widget/ui/src/types/index.d.ts +0 -1
- package/dist/widget/ui/src/types/index.d.ts.map +1 -1
- package/dist/widget/ui/src/types/swaps.d.ts +1 -27
- package/dist/widget/ui/src/types/swaps.d.ts.map +1 -1
- package/package.json +6 -5
- package/src/components/Alert/Alert.styles.ts +7 -7
- package/src/components/Alert/Alert.tsx +2 -2
- package/src/components/BlockchainsChip/BlockchainsChip.styles.ts +2 -1
- package/src/components/Button/Button.styles.tsx +1 -0
- package/src/components/ListItem/ListItem.styles.ts +2 -0
- package/src/components/ListItemButton/ListItemButton.styles.ts +1 -0
- package/src/components/PriceImpact/PriceImpact.styles.ts +9 -1
- package/src/components/PriceImpact/PriceImpact.tsx +3 -3
- package/src/components/QuoteCost/QuoteCost.styles.ts +14 -12
- package/src/components/QuoteCost/QuoteCost.tsx +12 -7
- package/src/components/SelectableCategoryList/SelectableCategoryList.helpers.ts +40 -13
- package/src/components/SelectableCategoryList/SelectableCategoryList.tsx +47 -46
- package/src/components/SelectableCategoryList/index.ts +1 -0
- package/src/components/Skeleton/Skeleton.tsx +3 -2
- package/src/components/Skeleton/Skeleton.types.ts +1 -1
- package/src/components/StepDetails/StepDetails.styles.ts +32 -24
- package/src/components/StepDetails/StepDetails.tsx +8 -4
- package/src/components/SwapListItem/mock.ts +21 -6
- package/src/components/Switch/Switch.styles.tsx +3 -5
- package/src/components/TextField/TextField.tsx +3 -5
- package/src/components/TokenAmount/TokenAmount.styles.ts +12 -10
- package/src/components/TokenAmount/TokenAmount.tsx +23 -17
- package/src/components/Tooltip/Tooltip.styles.ts +8 -5
- package/src/components/Tooltip/Tooltip.tsx +2 -3
- package/src/components/Wallet/Wallet.styles.ts +1 -1
- package/src/components/Wallet/Wallet.types.ts +3 -23
- package/src/components/common/Image.tsx +1 -2
- package/src/components/common/index.ts +1 -1
- package/src/containers/SwapHistory/SwapHistory.stories.tsx +5 -2
- package/src/containers/SwapHistory/SwapHistory.tsx +1 -1
- package/src/containers/SwapHistory/mock.ts +24 -8
- package/src/containers/SwapInput/SwapInput.styles.ts +48 -30
- package/src/containers/SwapInput/SwapInput.tsx +25 -14
- package/src/containers/SwapInput/SwapInput.types.ts +1 -0
- package/src/containers/SwapInput/TokenSection.styles.ts +21 -14
- package/src/containers/SwapInput/TokenSection.tsx +12 -6
- package/src/icons/CosmosCategory.tsx +137 -0
- package/src/icons/EvmCategory.tsx +74 -0
- package/src/icons/OtherCategory.tsx +72 -0
- package/src/icons/UtxoCategory.tsx +44 -0
- package/src/icons/index.ts +4 -0
- package/src/types/index.ts +0 -1
- package/src/types/swaps.ts +0 -38
- package/dist/widget/ui/src/containers/History/types.d.ts +0 -2
- package/dist/widget/ui/src/containers/History/types.d.ts.map +0 -1
- package/src/containers/History/types.tsx +0 -1
package/src/icons/index.ts
CHANGED
|
@@ -7,11 +7,13 @@ export { default as ChevronUpIcon } from './ChevronUp';
|
|
|
7
7
|
export { default as CloseIcon } from './Close';
|
|
8
8
|
export { default as CompleteIcon } from './Complete';
|
|
9
9
|
export { default as CopyIcon } from './Copy';
|
|
10
|
+
export { default as CosmosCategoryIcon } from './CosmosCategory';
|
|
10
11
|
export { default as CustomColorsIcon } from './CustomColors';
|
|
11
12
|
export { default as DarkModeIcon } from './DarkMode';
|
|
12
13
|
export { default as DeleteIcon } from './Delete';
|
|
13
14
|
export { default as DesktopIcon } from './Desktop';
|
|
14
15
|
export { default as DoneIcon } from './Done';
|
|
16
|
+
export { default as EvmCategoryIcon } from './EvmCategory';
|
|
15
17
|
export { default as ErrorIcon } from './Error';
|
|
16
18
|
export { default as ExternalLinkIcon } from './ExternalLink';
|
|
17
19
|
export { default as FontIcon } from './Font';
|
|
@@ -30,6 +32,7 @@ export { default as NoNotificationIcon } from './NoNotification';
|
|
|
30
32
|
export { default as NotificationNumberIcon } from './NotificationNumber';
|
|
31
33
|
export { default as NotificationsIcon } from './Notifications';
|
|
32
34
|
export { default as NumberIcon } from './Number';
|
|
35
|
+
export { default as OtherCategoryIcon } from './OtherCategory';
|
|
33
36
|
export { default as PinIcon } from './Pin';
|
|
34
37
|
export { default as RefreshIcon } from './Refresh';
|
|
35
38
|
export { default as ReverseIcon } from './Reverse';
|
|
@@ -37,6 +40,7 @@ export { default as RouteIcon } from './Route';
|
|
|
37
40
|
export { default as SearchIcon } from './Search';
|
|
38
41
|
export { default as TimeIcon } from './Time';
|
|
39
42
|
export { default as TransactionIcon } from './Transaction';
|
|
43
|
+
export { default as UtxoCategoryIcon } from './UtxoCategory';
|
|
40
44
|
export { default as WalletIcon } from './Wallet';
|
|
41
45
|
export { default as WarningIcon } from './Warning';
|
|
42
46
|
export { default as ChainsIcon } from './Chains';
|
package/src/types/index.ts
CHANGED
package/src/types/swaps.ts
CHANGED
|
@@ -1,45 +1,7 @@
|
|
|
1
1
|
import type {
|
|
2
|
-
BestRouteResponse,
|
|
3
2
|
BlockchainValidationStatus,
|
|
4
|
-
SimulationResult,
|
|
5
|
-
SwapResult,
|
|
6
3
|
WalletRequiredAssets,
|
|
7
4
|
} from 'rango-sdk';
|
|
8
5
|
|
|
9
|
-
export type SwapStatus = 'running' | 'failed' | 'success';
|
|
10
|
-
export type MessageSeverity = 'error' | 'warning' | 'info' | 'success';
|
|
11
|
-
|
|
12
|
-
export type StepStatus =
|
|
13
|
-
| 'created'
|
|
14
|
-
| 'running'
|
|
15
|
-
| 'failed'
|
|
16
|
-
| 'success'
|
|
17
|
-
| 'waitingForApproval'
|
|
18
|
-
| 'approved';
|
|
19
|
-
|
|
20
|
-
export enum PendingSwapNetworkStatus {
|
|
21
|
-
WaitingForConnectingWallet = 'waitingForConnectingWallet',
|
|
22
|
-
WaitingForQueue = 'waitingForQueue',
|
|
23
|
-
WaitingForNetworkChange = 'waitingForNetworkChange',
|
|
24
|
-
NetworkChanged = 'networkChanged',
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export type WalletTypeAndAddress = {
|
|
28
|
-
walletType: string;
|
|
29
|
-
address: string;
|
|
30
|
-
};
|
|
31
|
-
export type SwapSavedSettings = {
|
|
32
|
-
slippage: string;
|
|
33
|
-
disabledSwappersIds: string[];
|
|
34
|
-
disabledSwappersGroups: string[];
|
|
35
|
-
};
|
|
36
|
-
|
|
37
6
|
export type SimulationAssetAndAmount = WalletRequiredAssets;
|
|
38
7
|
export type SimulationValidationStatus = BlockchainValidationStatus;
|
|
39
|
-
export type BestRouteType = BestRouteResponse;
|
|
40
|
-
|
|
41
|
-
export type BestRouteWithFee = Omit<BestRouteResponse, 'result'> & {
|
|
42
|
-
result: Omit<SimulationResult, 'swaps'> & {
|
|
43
|
-
swaps: (SwapResult & { feeInUsd?: string })[];
|
|
44
|
-
};
|
|
45
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/containers/History/types.tsx"],"names":[],"mappings":"AAAA,YAAY,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type { PendingSwap } from '@rango-dev/queue-manager-rango-preset';
|