@0xsquid/ui 0.13.6 → 0.13.8
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 +140 -114
- package/dist/cjs/types/components/icons/Arrow.d.ts +4 -0
- package/dist/cjs/types/components/icons/Clock.d.ts +4 -0
- package/dist/cjs/types/components/views/SwapProgressView.d.ts +8 -5
- package/dist/cjs/types/core/constants.d.ts +10 -0
- package/dist/cjs/types/core/utils.d.ts +1 -0
- package/dist/cjs/types/types/components.d.ts +11 -14
- package/dist/cjs/types/types/index.d.ts +1 -0
- package/dist/esm/index.js +140 -114
- package/dist/esm/types/components/icons/Arrow.d.ts +4 -0
- package/dist/esm/types/components/icons/Clock.d.ts +4 -0
- package/dist/esm/types/components/views/SwapProgressView.d.ts +8 -5
- package/dist/esm/types/core/constants.d.ts +10 -0
- package/dist/esm/types/core/utils.d.ts +1 -0
- package/dist/esm/types/types/components.d.ts +11 -14
- package/dist/esm/types/types/index.d.ts +1 -0
- package/dist/index.css +10 -29
- package/dist/index.d.ts +15 -16
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -836,10 +836,6 @@ video {
|
|
|
836
836
|
margin-top: 0.25rem;
|
|
837
837
|
}
|
|
838
838
|
|
|
839
|
-
.tw-inline-block {
|
|
840
|
-
display: inline-block;
|
|
841
|
-
}
|
|
842
|
-
|
|
843
839
|
.tw-flex {
|
|
844
840
|
display: flex;
|
|
845
841
|
}
|
|
@@ -1385,45 +1381,38 @@ video {
|
|
|
1385
1381
|
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
|
1386
1382
|
}
|
|
1387
1383
|
|
|
1388
|
-
.tw-rotate-90 {
|
|
1389
|
-
--tw-rotate: 90deg;
|
|
1390
|
-
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
|
1391
|
-
}
|
|
1392
|
-
|
|
1393
1384
|
@keyframes tw-blur-in {
|
|
1394
1385
|
0% {
|
|
1395
1386
|
-webkit-backdrop-filter: blur(0px) saturate(0%);
|
|
1396
1387
|
backdrop-filter: blur(0px) saturate(0%);
|
|
1397
|
-
opacity: 0;
|
|
1398
1388
|
}
|
|
1399
1389
|
|
|
1400
1390
|
100% {
|
|
1401
1391
|
-webkit-backdrop-filter: blur(20px) saturate(150%);
|
|
1402
1392
|
backdrop-filter: blur(20px) saturate(150%);
|
|
1403
|
-
|
|
1393
|
+
background-color: var(--squid-theme-material-dark-average);
|
|
1404
1394
|
}
|
|
1405
1395
|
}
|
|
1406
1396
|
|
|
1407
1397
|
.tw-animate-blur-in {
|
|
1408
|
-
animation: tw-blur-in
|
|
1398
|
+
animation: tw-blur-in var(--squid-animation-blur-in-duration, 0s) cubic-bezier(.165,.84,.44,1) both;
|
|
1409
1399
|
}
|
|
1410
1400
|
|
|
1411
1401
|
@keyframes tw-blur-out {
|
|
1412
1402
|
0% {
|
|
1413
1403
|
-webkit-backdrop-filter: blur(20px) saturate(150%);
|
|
1414
1404
|
backdrop-filter: blur(20px) saturate(150%);
|
|
1415
|
-
|
|
1405
|
+
background-color: var(--squid-theme-material-dark-average);
|
|
1416
1406
|
}
|
|
1417
1407
|
|
|
1418
1408
|
100% {
|
|
1419
1409
|
-webkit-backdrop-filter: blur(0px) saturate(0%);
|
|
1420
1410
|
backdrop-filter: blur(0px) saturate(0%);
|
|
1421
|
-
opacity: 0;
|
|
1422
1411
|
}
|
|
1423
1412
|
}
|
|
1424
1413
|
|
|
1425
1414
|
.tw-animate-blur-out {
|
|
1426
|
-
animation: tw-blur-out
|
|
1415
|
+
animation: tw-blur-out var(--squid-animation-blur-out-duration, 0s) cubic-bezier(.165,.84,.44,1) both;
|
|
1427
1416
|
}
|
|
1428
1417
|
|
|
1429
1418
|
@keyframes tw-collapse-route {
|
|
@@ -1536,34 +1525,30 @@ video {
|
|
|
1536
1525
|
|
|
1537
1526
|
@keyframes tw-slide-to-bottom {
|
|
1538
1527
|
0% {
|
|
1539
|
-
transform:
|
|
1540
|
-
opacity: 1;
|
|
1528
|
+
transform: translate3d(0, 0, 0);
|
|
1541
1529
|
}
|
|
1542
1530
|
|
|
1543
1531
|
100% {
|
|
1544
|
-
transform:
|
|
1545
|
-
opacity: 0;
|
|
1532
|
+
transform: translate3d(0, 650px, 0);
|
|
1546
1533
|
}
|
|
1547
1534
|
}
|
|
1548
1535
|
|
|
1549
1536
|
.tw-animate-slide-to-bottom {
|
|
1550
|
-
animation: tw-slide-to-bottom
|
|
1537
|
+
animation: tw-slide-to-bottom var(--squid-animation-slide-to-bottom-duration, 0s) cubic-bezier(.165,.84,.44,1) both;
|
|
1551
1538
|
}
|
|
1552
1539
|
|
|
1553
1540
|
@keyframes tw-slide-to-top {
|
|
1554
1541
|
0% {
|
|
1555
|
-
transform:
|
|
1556
|
-
opacity: 0;
|
|
1542
|
+
transform: translate3d(0, 650px, 0);
|
|
1557
1543
|
}
|
|
1558
1544
|
|
|
1559
1545
|
100% {
|
|
1560
|
-
transform:
|
|
1561
|
-
opacity: 1;
|
|
1546
|
+
transform: translate3d(0, 0, 0);
|
|
1562
1547
|
}
|
|
1563
1548
|
}
|
|
1564
1549
|
|
|
1565
1550
|
.tw-animate-slide-to-top {
|
|
1566
|
-
animation: tw-slide-to-top
|
|
1551
|
+
animation: tw-slide-to-top var(--squid-animation-slide-to-top-duration, 0s) cubic-bezier(.165,.84,.44,1) both;
|
|
1567
1552
|
}
|
|
1568
1553
|
|
|
1569
1554
|
.tw-cursor-help {
|
|
@@ -1883,10 +1868,6 @@ video {
|
|
|
1883
1868
|
background-color: inherit;
|
|
1884
1869
|
}
|
|
1885
1870
|
|
|
1886
|
-
.tw-bg-material-dark-average {
|
|
1887
|
-
background-color: var(--squid-theme-material-dark-average);
|
|
1888
|
-
}
|
|
1889
|
-
|
|
1890
1871
|
.tw-bg-material-dark-thick {
|
|
1891
1872
|
background-color: var(--squid-theme-material-dark-thick);
|
|
1892
1873
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -61,22 +61,20 @@ type SwapStep = {
|
|
|
61
61
|
descriptionBlocks: SwapStepDescriptionBlock[];
|
|
62
62
|
chipContent: React.ReactNode;
|
|
63
63
|
link?: string;
|
|
64
|
-
status:
|
|
64
|
+
status: SwapState;
|
|
65
65
|
};
|
|
66
|
+
declare enum SwapState {
|
|
67
|
+
CONFIRM = 0,
|
|
68
|
+
PROGRESS = 1,
|
|
69
|
+
COMPLETED = 2,
|
|
70
|
+
ERROR = 3,
|
|
71
|
+
PARTIAL_SUCCESS = 4,
|
|
72
|
+
CONFIRMATION_TOO_LONG = 5,
|
|
73
|
+
CONFIRMATION_REJECTED = 6,
|
|
74
|
+
NEEDS_GAS = 7
|
|
75
|
+
}
|
|
66
76
|
type ThemeType = 'light' | 'dark';
|
|
67
77
|
type SwapStepItemStatus = 'executed' | 'progress' | 'pending';
|
|
68
|
-
declare enum TransactionStatus {
|
|
69
|
-
SUCCESS = "success",
|
|
70
|
-
NEEDS_GAS = "needs_gas",
|
|
71
|
-
ONGOING = "ongoing",
|
|
72
|
-
PARTIAL_SUCCESS = "partial_success",
|
|
73
|
-
NOT_FOUND = "not_found",
|
|
74
|
-
INITIAL_LOADING = "initialLoading",
|
|
75
|
-
ERROR = "error",
|
|
76
|
-
WARNING = "warning",
|
|
77
|
-
PENDING = "pending",
|
|
78
|
-
REJECTED = "rejected"
|
|
79
|
-
}
|
|
80
78
|
|
|
81
79
|
interface BoostButtonProps {
|
|
82
80
|
boostMode: BoostMode;
|
|
@@ -493,7 +491,7 @@ type Token = {
|
|
|
493
491
|
logoUrl: string;
|
|
494
492
|
bgColor: string;
|
|
495
493
|
};
|
|
496
|
-
declare function SwapProgressView({ steps, isOpen, handleClose, socialLink, supportLink, fromAmount, fromChain, fromToken, toAmount, toChain, toToken, fromAddressFormatted, toAddressFormatted,
|
|
494
|
+
declare function SwapProgressView({ steps, isOpen, handleClose, socialLink, supportLink, fromAmount, fromChain, fromToken, toAmount, toChain, toToken, fromAddressFormatted, toAddressFormatted, swapState, estimatedTimeToComplete, }: {
|
|
497
495
|
steps: SwapStep[];
|
|
498
496
|
handleClose?: () => void;
|
|
499
497
|
isOpen?: boolean;
|
|
@@ -507,7 +505,8 @@ declare function SwapProgressView({ steps, isOpen, handleClose, socialLink, supp
|
|
|
507
505
|
toChain: ChainData;
|
|
508
506
|
fromAddressFormatted: string;
|
|
509
507
|
toAddressFormatted: string;
|
|
510
|
-
|
|
508
|
+
swapState: SwapState;
|
|
509
|
+
estimatedTimeToComplete?: string;
|
|
511
510
|
}): react_jsx_runtime.JSX.Element;
|
|
512
511
|
|
|
513
512
|
type SquidTheme = {
|
|
@@ -549,4 +548,4 @@ declare function useDropdownMenu(props?: {
|
|
|
549
548
|
openDropdownButtonRef: React.RefObject<HTMLButtonElement>;
|
|
550
549
|
};
|
|
551
550
|
|
|
552
|
-
export { AddressButton, ArrowButton, AssetsButton, BadgeImage, BodyText, Boost, BoostButton, BorderedContainer, Button, CaptionText, Chip, DetailsToolbar, DropdownMenu, DropdownMenuItem, type DropdownMenuItemProps, ErrorMessage, FeeButton, HeadingText, HistoryItem, InfoBox, Input, ListItem, LoadingSkeleton, Menu, MenuItem, Modal, ModalContent, ModalContentDivider, NavigationBar, NumericInput, ProductCard, ProfileHeaderBackground, SectionTitle, SettingsButton, type SettingsButtonProps, type SettingsControl, SettingsItem, type SettingsItemProps, SettingsSlider, type SettingsSliderProps, SquidConfigProvider, type SquidTheme, SwapConfiguration, SwapDetailListItem, SwapProgressView, SwapProgressViewHeader, SwapStepItem, SwapStepsCollapsed, Switch, TokenPair, Tooltip, type TooltipProps, type TooltipThreshold, type TooltipWidth, UsdAmount, useDropdownMenu };
|
|
551
|
+
export { AddressButton, ArrowButton, AssetsButton, BadgeImage, BodyText, Boost, BoostButton, BorderedContainer, Button, CaptionText, Chip, DetailsToolbar, DropdownMenu, DropdownMenuItem, type DropdownMenuItemProps, ErrorMessage, FeeButton, HeadingText, HistoryItem, InfoBox, Input, ListItem, LoadingSkeleton, Menu, MenuItem, Modal, ModalContent, ModalContentDivider, NavigationBar, NumericInput, ProductCard, ProfileHeaderBackground, SectionTitle, SettingsButton, type SettingsButtonProps, type SettingsControl, SettingsItem, type SettingsItemProps, SettingsSlider, type SettingsSliderProps, SquidConfigProvider, type SquidTheme, SwapConfiguration, SwapDetailListItem, SwapProgressView, SwapProgressViewHeader, SwapState, type SwapStep, SwapStepItem, SwapStepsCollapsed, Switch, type ThemeType, TokenPair, Tooltip, type TooltipProps, type TooltipThreshold, type TooltipWidth, UsdAmount, useDropdownMenu };
|