@0xsquid/ui 0.13.5 → 0.13.7
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 +156 -123
- 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 +156 -123
- 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 +31 -73
- package/dist/index.d.ts +15 -16
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -633,10 +633,6 @@ video {
|
|
|
633
633
|
top: -55px;
|
|
634
634
|
}
|
|
635
635
|
|
|
636
|
-
.-tw-top-full {
|
|
637
|
-
top: -100%;
|
|
638
|
-
}
|
|
639
|
-
|
|
640
636
|
.tw-bottom-0 {
|
|
641
637
|
bottom: 0px;
|
|
642
638
|
}
|
|
@@ -753,8 +749,8 @@ video {
|
|
|
753
749
|
top: 1.75rem;
|
|
754
750
|
}
|
|
755
751
|
|
|
756
|
-
.tw-top
|
|
757
|
-
top:
|
|
752
|
+
.tw-top-\[52px\] {
|
|
753
|
+
top: 52px;
|
|
758
754
|
}
|
|
759
755
|
|
|
760
756
|
.tw-top-squid-xxs {
|
|
@@ -840,10 +836,6 @@ video {
|
|
|
840
836
|
margin-top: 0.25rem;
|
|
841
837
|
}
|
|
842
838
|
|
|
843
|
-
.tw-inline-block {
|
|
844
|
-
display: inline-block;
|
|
845
|
-
}
|
|
846
|
-
|
|
847
839
|
.tw-flex {
|
|
848
840
|
display: flex;
|
|
849
841
|
}
|
|
@@ -952,6 +944,10 @@ video {
|
|
|
952
944
|
height: 52px;
|
|
953
945
|
}
|
|
954
946
|
|
|
947
|
+
.tw-h-\[535px\] {
|
|
948
|
+
height: 535px;
|
|
949
|
+
}
|
|
950
|
+
|
|
955
951
|
.tw-h-\[536px\] {
|
|
956
952
|
height: 536px;
|
|
957
953
|
}
|
|
@@ -1024,12 +1020,12 @@ video {
|
|
|
1024
1020
|
max-height: 205px;
|
|
1025
1021
|
}
|
|
1026
1022
|
|
|
1027
|
-
.tw-max-h-\[
|
|
1028
|
-
max-height:
|
|
1023
|
+
.tw-max-h-\[413px\] {
|
|
1024
|
+
max-height: 413px;
|
|
1029
1025
|
}
|
|
1030
1026
|
|
|
1031
|
-
.tw-max-h-\[
|
|
1032
|
-
max-height:
|
|
1027
|
+
.tw-max-h-\[535px\] {
|
|
1028
|
+
max-height: 535px;
|
|
1033
1029
|
}
|
|
1034
1030
|
|
|
1035
1031
|
.tw-max-h-\[540px\] {
|
|
@@ -1068,10 +1064,6 @@ video {
|
|
|
1068
1064
|
min-height: 30px;
|
|
1069
1065
|
}
|
|
1070
1066
|
|
|
1071
|
-
.tw-min-h-\[460px\] {
|
|
1072
|
-
min-height: 460px;
|
|
1073
|
-
}
|
|
1074
|
-
|
|
1075
1067
|
.tw-min-h-button {
|
|
1076
1068
|
min-height: 3.75rem;
|
|
1077
1069
|
}
|
|
@@ -1299,6 +1291,10 @@ video {
|
|
|
1299
1291
|
min-width: 30px;
|
|
1300
1292
|
}
|
|
1301
1293
|
|
|
1294
|
+
.tw-min-w-\[400px\] {
|
|
1295
|
+
min-width: 400px;
|
|
1296
|
+
}
|
|
1297
|
+
|
|
1302
1298
|
.tw-min-w-\[60px\] {
|
|
1303
1299
|
min-width: 60px;
|
|
1304
1300
|
}
|
|
@@ -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,62 +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, 105%, 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, 105%, 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
|
|
1567
|
-
}
|
|
1568
|
-
|
|
1569
|
-
@keyframes tw-translate-to-bottom {
|
|
1570
|
-
0% {
|
|
1571
|
-
transform: translateY(0);
|
|
1572
|
-
}
|
|
1573
|
-
|
|
1574
|
-
100% {
|
|
1575
|
-
transform: translateY(100%);
|
|
1576
|
-
}
|
|
1577
|
-
}
|
|
1578
|
-
|
|
1579
|
-
.tw-animate-translate-to-bottom {
|
|
1580
|
-
animation: tw-translate-to-bottom var(--squid-animation-translate-top-or-bottom, 0s) linear both;
|
|
1581
|
-
}
|
|
1582
|
-
|
|
1583
|
-
@keyframes tw-translate-to-top {
|
|
1584
|
-
0% {
|
|
1585
|
-
transform: translateY(0);
|
|
1586
|
-
}
|
|
1587
|
-
|
|
1588
|
-
100% {
|
|
1589
|
-
transform: translateY(-100%);
|
|
1590
|
-
}
|
|
1591
|
-
}
|
|
1592
|
-
|
|
1593
|
-
.tw-animate-translate-to-top {
|
|
1594
|
-
animation: tw-translate-to-top var(--squid-animation-translate-top-or-bottom, 0s) linear both;
|
|
1551
|
+
animation: tw-slide-to-top var(--squid-animation-slide-to-top-duration, 0s) cubic-bezier(.165,.84,.44,1) both;
|
|
1595
1552
|
}
|
|
1596
1553
|
|
|
1597
1554
|
.tw-cursor-help {
|
|
@@ -1911,10 +1868,6 @@ video {
|
|
|
1911
1868
|
background-color: inherit;
|
|
1912
1869
|
}
|
|
1913
1870
|
|
|
1914
|
-
.tw-bg-material-dark-average {
|
|
1915
|
-
background-color: var(--squid-theme-material-dark-average);
|
|
1916
|
-
}
|
|
1917
|
-
|
|
1918
1871
|
.tw-bg-material-dark-thick {
|
|
1919
1872
|
background-color: var(--squid-theme-material-dark-thick);
|
|
1920
1873
|
}
|
|
@@ -2139,6 +2092,11 @@ video {
|
|
|
2139
2092
|
padding-bottom: 0.5rem;
|
|
2140
2093
|
}
|
|
2141
2094
|
|
|
2095
|
+
.tw-py-\[15px\] {
|
|
2096
|
+
padding-top: 15px;
|
|
2097
|
+
padding-bottom: 15px;
|
|
2098
|
+
}
|
|
2099
|
+
|
|
2142
2100
|
.tw-py-squid-s {
|
|
2143
2101
|
padding-top: 0.9375rem;
|
|
2144
2102
|
padding-bottom: 0.9375rem;
|
|
@@ -2764,8 +2722,8 @@ input[type='number'] {
|
|
|
2764
2722
|
animation: tw-display 0s var(--squid-animation-display-delayed-duration, 0s) ease-out both;
|
|
2765
2723
|
}
|
|
2766
2724
|
|
|
2767
|
-
.hover\:tw-
|
|
2768
|
-
|
|
2725
|
+
.hover\:tw-border-material-light-average:hover {
|
|
2726
|
+
border-color: var(--squid-theme-material-light-average);
|
|
2769
2727
|
}
|
|
2770
2728
|
|
|
2771
2729
|
.hover\:tw-bg-material-light-thin:hover {
|
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 };
|