@relayprotocol/relay-kit-ui 4.0.16 → 4.0.18
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/_cjs/src/components/common/SlippageToleranceConfig.js +5 -2
- package/_cjs/src/components/common/SlippageToleranceConfig.js.map +1 -1
- package/_cjs/src/components/common/TransactionModal/TransactionModal.js +8 -2
- package/_cjs/src/components/common/TransactionModal/TransactionModal.js.map +1 -1
- package/_cjs/src/components/widgets/FeeBreakdown.js +79 -64
- package/_cjs/src/components/widgets/FeeBreakdown.js.map +1 -1
- package/_cjs/src/components/widgets/SwapWidget/index.js +4 -2
- package/_cjs/src/components/widgets/SwapWidget/index.js.map +1 -1
- package/_cjs/src/components/widgets/SwapWidgetRenderer.js +8 -13
- package/_cjs/src/components/widgets/SwapWidgetRenderer.js.map +1 -1
- package/_cjs/src/hooks/index.js +3 -1
- package/_cjs/src/hooks/index.js.map +1 -1
- package/_cjs/src/hooks/useEOADetection.js +83 -12
- package/_cjs/src/hooks/useEOADetection.js.map +1 -1
- package/_cjs/src/hooks/useTransactionCount.js +32 -0
- package/_cjs/src/hooks/useTransactionCount.js.map +1 -0
- package/_cjs/src/styles.css +64 -68
- package/_cjs/src/utils/quote.js +4 -0
- package/_cjs/src/utils/quote.js.map +1 -1
- package/_cjs/src/version.js +1 -1
- package/_cjs/tsconfig.build.tsbuildinfo +1 -1
- package/_esm/src/components/common/SlippageToleranceConfig.js +5 -2
- package/_esm/src/components/common/SlippageToleranceConfig.js.map +1 -1
- package/_esm/src/components/common/TransactionModal/TransactionModal.js +8 -2
- package/_esm/src/components/common/TransactionModal/TransactionModal.js.map +1 -1
- package/_esm/src/components/widgets/FeeBreakdown.js +80 -65
- package/_esm/src/components/widgets/FeeBreakdown.js.map +1 -1
- package/_esm/src/components/widgets/SwapWidget/index.js +4 -2
- package/_esm/src/components/widgets/SwapWidget/index.js.map +1 -1
- package/_esm/src/components/widgets/SwapWidgetRenderer.js +8 -14
- package/_esm/src/components/widgets/SwapWidgetRenderer.js.map +1 -1
- package/_esm/src/hooks/index.js +2 -1
- package/_esm/src/hooks/index.js.map +1 -1
- package/_esm/src/hooks/useEOADetection.js +87 -12
- package/_esm/src/hooks/useEOADetection.js.map +1 -1
- package/_esm/src/hooks/useTransactionCount.js +30 -0
- package/_esm/src/hooks/useTransactionCount.js.map +1 -0
- package/_esm/src/styles.css +64 -68
- package/_esm/src/utils/quote.js +4 -0
- package/_esm/src/utils/quote.js.map +1 -1
- package/_esm/src/version.js +1 -1
- package/_esm/tsconfig.build.tsbuildinfo +1 -1
- package/_types/src/components/common/SlippageToleranceConfig.d.ts +2 -0
- package/_types/src/components/common/SlippageToleranceConfig.d.ts.map +1 -1
- package/_types/src/components/common/TransactionModal/TransactionModal.d.ts.map +1 -1
- package/_types/src/components/widgets/FeeBreakdown.d.ts +1 -0
- package/_types/src/components/widgets/FeeBreakdown.d.ts.map +1 -1
- package/_types/src/components/widgets/SwapWidget/index.d.ts +1 -0
- package/_types/src/components/widgets/SwapWidget/index.d.ts.map +1 -1
- package/_types/src/components/widgets/SwapWidgetRenderer.d.ts.map +1 -1
- package/_types/src/hooks/index.d.ts +2 -1
- package/_types/src/hooks/index.d.ts.map +1 -1
- package/_types/src/hooks/useEOADetection.d.ts +3 -2
- package/_types/src/hooks/useEOADetection.d.ts.map +1 -1
- package/_types/src/hooks/useTransactionCount.d.ts +15 -0
- package/_types/src/hooks/useTransactionCount.d.ts.map +1 -0
- package/_types/src/utils/quote.d.ts +4 -0
- package/_types/src/utils/quote.d.ts.map +1 -1
- package/_types/src/version.d.ts +1 -1
- package/_types/tsconfig.build.tsbuildinfo +1 -1
- package/dist/panda.buildinfo.json +17 -18
- package/dist/styles.css +64 -68
- package/package.json +4 -4
|
@@ -295,6 +295,16 @@
|
|
|
295
295
|
"boxShadow]___[value:0px 1px 5px rgba(0,0,0,0.2)",
|
|
296
296
|
"color]___[value:{colors.grass.9}",
|
|
297
297
|
"color]___[value:{colors.amber.9}",
|
|
298
|
+
"borderBottomRadius]___[value:0",
|
|
299
|
+
"borderBottomRadius]___[value:widget-card-border-radius",
|
|
300
|
+
"borderBottom]___[value:none",
|
|
301
|
+
"borderBottom]___[value:widget-card-border",
|
|
302
|
+
"transitionDelay]___[value:0s, 0s",
|
|
303
|
+
"transitionDelay]___[value:0s, 300ms",
|
|
304
|
+
"borderRadius]___[value:widget-card-border-radius",
|
|
305
|
+
"transition]___[value:border-radius 300ms, border-bottom 0s",
|
|
306
|
+
"marginBottom]___[value:widget-card-section-gutter",
|
|
307
|
+
"paddingBottom]___[value:0",
|
|
298
308
|
"justifyContent]___[value:between",
|
|
299
309
|
"color]___[value:gray6",
|
|
300
310
|
"height]___[value:4",
|
|
@@ -302,24 +312,18 @@
|
|
|
302
312
|
"paddingTop]___[value:0",
|
|
303
313
|
"backgroundColor]___[value:amber2",
|
|
304
314
|
"width]___[value:12",
|
|
305
|
-
"paddingBlock]___[value:1px",
|
|
306
|
-
"paddingInline]___[value:4px",
|
|
307
|
-
"borderRadius]___[value:100",
|
|
308
315
|
"color]___[value:warningSecondary",
|
|
309
316
|
"alignSelf]___[value:flex-start",
|
|
310
|
-
"
|
|
311
|
-
"
|
|
317
|
+
"fontSize]___[value:12",
|
|
318
|
+
"paddingInline]___[value:1",
|
|
319
|
+
"minHeight]___[value:23px",
|
|
320
|
+
"lineHeight]___[value:100%",
|
|
321
|
+
"backgroundColor]___[value:widget-selector-background",
|
|
322
|
+
"backgroundColor]___[value:widget-selector-hover-background]___[cond:_hover",
|
|
312
323
|
"transform]___[value:rotate(-180deg)",
|
|
313
324
|
"transform]___[value:rotate(0)",
|
|
314
325
|
"marginLeft]___[value:2",
|
|
315
326
|
"transition]___[value:transform 300ms",
|
|
316
|
-
"borderBottomRadius]___[value:0",
|
|
317
|
-
"borderBottomRadius]___[value:widget-card-border-radius",
|
|
318
|
-
"borderBottom]___[value:none",
|
|
319
|
-
"borderBottom]___[value:widget-card-border",
|
|
320
|
-
"transitionDelay]___[value:0s, 0s",
|
|
321
|
-
"transitionDelay]___[value:0s, 300ms",
|
|
322
|
-
"transition]___[value:border-radius 300ms, border-bottom 0s",
|
|
323
327
|
"borderRadius]___[value:0 0 12px 12px",
|
|
324
328
|
"borderTop]___[value:none",
|
|
325
329
|
"gap]___[value:14",
|
|
@@ -384,7 +388,6 @@
|
|
|
384
388
|
"color]___[value:primary11",
|
|
385
389
|
"paddingInline]___[value:6px",
|
|
386
390
|
"paddingBlock]___[value:4px",
|
|
387
|
-
"lineHeight]___[value:100%",
|
|
388
391
|
"gap]___[value:2px",
|
|
389
392
|
"flexGrow]___[value:1",
|
|
390
393
|
"maxWidth]___[value:100%",
|
|
@@ -438,11 +441,6 @@
|
|
|
438
441
|
"width]___[value:32",
|
|
439
442
|
"width]___[value:20px",
|
|
440
443
|
"padding]___[value:4px",
|
|
441
|
-
"fontSize]___[value:12",
|
|
442
|
-
"paddingInline]___[value:1",
|
|
443
|
-
"minHeight]___[value:23px",
|
|
444
|
-
"backgroundColor]___[value:widget-selector-background",
|
|
445
|
-
"backgroundColor]___[value:widget-selector-hover-background]___[cond:_hover",
|
|
446
444
|
"marginTop]___[value:4px",
|
|
447
445
|
"--borderWidth]___[value:borders.widget-swap-currency-button-border-width",
|
|
448
446
|
"--borderColor]___[value:colors.widget-swap-currency-button-border-color",
|
|
@@ -499,6 +497,7 @@
|
|
|
499
497
|
"fontSize]___[value:10px",
|
|
500
498
|
"paddingLeft]___[value:12px",
|
|
501
499
|
"backgroundColor]___[value:primary3",
|
|
500
|
+
"borderRadius]___[value:100",
|
|
502
501
|
"opacity]___[value:1",
|
|
503
502
|
"opacity]___[value:0.6",
|
|
504
503
|
"height]___[value:80",
|
package/dist/styles.css
CHANGED
|
@@ -1718,70 +1718,66 @@
|
|
|
1718
1718
|
color: var(--relay-colors-amber-9);
|
|
1719
1719
|
}
|
|
1720
1720
|
|
|
1721
|
-
.relay-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
.relay-h_4:not(#\#):not(#\#):not(#\#):not(#\#) {
|
|
1726
|
-
height: 4px;
|
|
1721
|
+
.relay-rounded-b_0:not(#\#):not(#\#):not(#\#):not(#\#) {
|
|
1722
|
+
border-bottom-left-radius: 0;
|
|
1723
|
+
border-bottom-right-radius: 0;
|
|
1727
1724
|
}
|
|
1728
1725
|
|
|
1729
|
-
.relay-
|
|
1730
|
-
|
|
1726
|
+
.relay-rounded-b_widget-card-border-radius:not(#\#):not(#\#):not(#\#):not(#\#) {
|
|
1727
|
+
border-bottom-left-radius: var(--relay-radii-widget-card-border-radius);
|
|
1728
|
+
border-bottom-right-radius: var(--relay-radii-widget-card-border-radius);
|
|
1731
1729
|
}
|
|
1732
1730
|
|
|
1733
|
-
.relay-
|
|
1734
|
-
|
|
1731
|
+
.relay-border-b_none:not(#\#):not(#\#):not(#\#):not(#\#) {
|
|
1732
|
+
border-bottom: none;
|
|
1735
1733
|
}
|
|
1736
1734
|
|
|
1737
|
-
.relay-
|
|
1738
|
-
|
|
1735
|
+
.relay-border-b_widget-card-border:not(#\#):not(#\#):not(#\#):not(#\#) {
|
|
1736
|
+
border-bottom: var(--relay-borders-widget-card-border);
|
|
1739
1737
|
}
|
|
1740
1738
|
|
|
1741
|
-
.relay-
|
|
1742
|
-
border-radius:
|
|
1739
|
+
.relay-rounded_widget-card-border-radius:not(#\#):not(#\#):not(#\#):not(#\#) {
|
|
1740
|
+
border-radius: var(--relay-radii-widget-card-border-radius);
|
|
1743
1741
|
}
|
|
1744
1742
|
|
|
1745
|
-
.relay-
|
|
1746
|
-
|
|
1743
|
+
.relay-transition_border-radius_300ms\,_border-bottom_0s:not(#\#):not(#\#):not(#\#):not(#\#) {
|
|
1744
|
+
transition: border-radius 300ms, border-bottom 0s;
|
|
1747
1745
|
}
|
|
1748
1746
|
|
|
1749
|
-
.relay-
|
|
1750
|
-
|
|
1747
|
+
.relay-text_gray6:not(#\#):not(#\#):not(#\#):not(#\#) {
|
|
1748
|
+
color: var(--relay-colors-gray6);
|
|
1751
1749
|
}
|
|
1752
1750
|
|
|
1753
|
-
.relay-
|
|
1754
|
-
|
|
1751
|
+
.relay-h_4:not(#\#):not(#\#):not(#\#):not(#\#) {
|
|
1752
|
+
height: 4px;
|
|
1755
1753
|
}
|
|
1756
1754
|
|
|
1757
|
-
.relay-
|
|
1758
|
-
|
|
1755
|
+
.relay-w_12:not(#\#):not(#\#):not(#\#):not(#\#) {
|
|
1756
|
+
width: 12px;
|
|
1759
1757
|
}
|
|
1760
1758
|
|
|
1761
|
-
.relay-
|
|
1762
|
-
|
|
1759
|
+
.relay-text_warningSecondary:not(#\#):not(#\#):not(#\#):not(#\#) {
|
|
1760
|
+
color: warningSecondary;
|
|
1763
1761
|
}
|
|
1764
1762
|
|
|
1765
|
-
.relay-
|
|
1766
|
-
|
|
1767
|
-
border-bottom-right-radius: 0;
|
|
1763
|
+
.relay-px_1:not(#\#):not(#\#):not(#\#):not(#\#) {
|
|
1764
|
+
padding-inline: var(--relay-spacing-1);
|
|
1768
1765
|
}
|
|
1769
1766
|
|
|
1770
|
-
.relay-
|
|
1771
|
-
|
|
1772
|
-
border-bottom-right-radius: var(--relay-radii-widget-card-border-radius);
|
|
1767
|
+
.relay-min-h_23px:not(#\#):not(#\#):not(#\#):not(#\#) {
|
|
1768
|
+
min-height: 23px;
|
|
1773
1769
|
}
|
|
1774
1770
|
|
|
1775
|
-
.relay-
|
|
1776
|
-
|
|
1771
|
+
.relay-transform_rotate\(-180deg\):not(#\#):not(#\#):not(#\#):not(#\#) {
|
|
1772
|
+
transform: rotate(-180deg);
|
|
1777
1773
|
}
|
|
1778
1774
|
|
|
1779
|
-
.relay-
|
|
1780
|
-
|
|
1775
|
+
.relay-transform_rotate\(0\):not(#\#):not(#\#):not(#\#):not(#\#) {
|
|
1776
|
+
transform: rotate(0);
|
|
1781
1777
|
}
|
|
1782
1778
|
|
|
1783
|
-
.relay-
|
|
1784
|
-
transition:
|
|
1779
|
+
.relay-transition_transform_300ms:not(#\#):not(#\#):not(#\#):not(#\#) {
|
|
1780
|
+
transition: transform 300ms;
|
|
1785
1781
|
}
|
|
1786
1782
|
|
|
1787
1783
|
.relay-rounded_0_0_12px_12px:not(#\#):not(#\#):not(#\#):not(#\#) {
|
|
@@ -2056,14 +2052,6 @@
|
|
|
2056
2052
|
padding: 4px;
|
|
2057
2053
|
}
|
|
2058
2054
|
|
|
2059
|
-
.relay-px_1:not(#\#):not(#\#):not(#\#):not(#\#) {
|
|
2060
|
-
padding-inline: var(--relay-spacing-1);
|
|
2061
|
-
}
|
|
2062
|
-
|
|
2063
|
-
.relay-min-h_23px:not(#\#):not(#\#):not(#\#):not(#\#) {
|
|
2064
|
-
min-height: 23px;
|
|
2065
|
-
}
|
|
2066
|
-
|
|
2067
2055
|
.relay---borderWidth_borders\.widget-swap-currency-button-border-width:not(#\#):not(#\#):not(#\#):not(#\#) {
|
|
2068
2056
|
--borderWidth: var(--relay-borders-widget-swap-currency-button-border-width);
|
|
2069
2057
|
}
|
|
@@ -2188,6 +2176,10 @@
|
|
|
2188
2176
|
padding: 0 12px;
|
|
2189
2177
|
}
|
|
2190
2178
|
|
|
2179
|
+
.relay-rounded_100:not(#\#):not(#\#):not(#\#):not(#\#) {
|
|
2180
|
+
border-radius: 100px;
|
|
2181
|
+
}
|
|
2182
|
+
|
|
2191
2183
|
.relay-opacity_1:not(#\#):not(#\#):not(#\#):not(#\#) {
|
|
2192
2184
|
opacity: 1;
|
|
2193
2185
|
}
|
|
@@ -2684,6 +2676,22 @@
|
|
|
2684
2676
|
font-style: italic;
|
|
2685
2677
|
}
|
|
2686
2678
|
|
|
2679
|
+
.relay-delay_0s\,_0s:not(#\#):not(#\#):not(#\#):not(#\#) {
|
|
2680
|
+
transition-delay: 0s, 0s;
|
|
2681
|
+
}
|
|
2682
|
+
|
|
2683
|
+
.relay-delay_0s\,_300ms:not(#\#):not(#\#):not(#\#):not(#\#) {
|
|
2684
|
+
transition-delay: 0s, 300ms;
|
|
2685
|
+
}
|
|
2686
|
+
|
|
2687
|
+
.relay-mb_widget-card-section-gutter:not(#\#):not(#\#):not(#\#):not(#\#) {
|
|
2688
|
+
margin-bottom: var(--relay-spacing-widget-card-section-gutter);
|
|
2689
|
+
}
|
|
2690
|
+
|
|
2691
|
+
.relay-pb_0:not(#\#):not(#\#):not(#\#):not(#\#) {
|
|
2692
|
+
padding-bottom: 0;
|
|
2693
|
+
}
|
|
2694
|
+
|
|
2687
2695
|
.relay-justify_between:not(#\#):not(#\#):not(#\#):not(#\#) {
|
|
2688
2696
|
justify-content: between;
|
|
2689
2697
|
}
|
|
@@ -2704,20 +2712,20 @@
|
|
|
2704
2712
|
align-self: flex-start;
|
|
2705
2713
|
}
|
|
2706
2714
|
|
|
2707
|
-
.relay-
|
|
2708
|
-
|
|
2715
|
+
.relay-fs_12:not(#\#):not(#\#):not(#\#):not(#\#) {
|
|
2716
|
+
font-size: 12px;
|
|
2709
2717
|
}
|
|
2710
2718
|
|
|
2711
|
-
.relay-
|
|
2712
|
-
|
|
2719
|
+
.relay-leading_100\%:not(#\#):not(#\#):not(#\#):not(#\#) {
|
|
2720
|
+
line-height: 100%;
|
|
2713
2721
|
}
|
|
2714
2722
|
|
|
2715
|
-
.relay-
|
|
2716
|
-
|
|
2723
|
+
.relay-bg_widget-selector-background:not(#\#):not(#\#):not(#\#):not(#\#) {
|
|
2724
|
+
background-color: var(--relay-colors-widget-selector-background);
|
|
2717
2725
|
}
|
|
2718
2726
|
|
|
2719
|
-
.relay-
|
|
2720
|
-
|
|
2727
|
+
.relay-ml_2:not(#\#):not(#\#):not(#\#):not(#\#) {
|
|
2728
|
+
margin-left: var(--relay-spacing-2);
|
|
2721
2729
|
}
|
|
2722
2730
|
|
|
2723
2731
|
.relay-mb_3:not(#\#):not(#\#):not(#\#):not(#\#) {
|
|
@@ -2792,10 +2800,6 @@
|
|
|
2792
2800
|
background-color: var(--relay-colors-primary5);
|
|
2793
2801
|
}
|
|
2794
2802
|
|
|
2795
|
-
.relay-leading_100\%:not(#\#):not(#\#):not(#\#):not(#\#) {
|
|
2796
|
-
line-height: 100%;
|
|
2797
|
-
}
|
|
2798
|
-
|
|
2799
2803
|
.relay-grow_1:not(#\#):not(#\#):not(#\#):not(#\#) {
|
|
2800
2804
|
flex-grow: 1;
|
|
2801
2805
|
}
|
|
@@ -2832,14 +2836,6 @@
|
|
|
2832
2836
|
line-height: 36px;
|
|
2833
2837
|
}
|
|
2834
2838
|
|
|
2835
|
-
.relay-fs_12:not(#\#):not(#\#):not(#\#):not(#\#) {
|
|
2836
|
-
font-size: 12px;
|
|
2837
|
-
}
|
|
2838
|
-
|
|
2839
|
-
.relay-bg_widget-selector-background:not(#\#):not(#\#):not(#\#):not(#\#) {
|
|
2840
|
-
background-color: var(--relay-colors-widget-selector-background);
|
|
2841
|
-
}
|
|
2842
|
-
|
|
2843
2839
|
.relay-mt_4px:not(#\#):not(#\#):not(#\#):not(#\#) {
|
|
2844
2840
|
margin-top: 4px;
|
|
2845
2841
|
}
|
|
@@ -3263,6 +3259,10 @@
|
|
|
3263
3259
|
background-color: var(--mix-backgroundColor, gray);
|
|
3264
3260
|
}
|
|
3265
3261
|
|
|
3262
|
+
.hover\:relay-bg_widget-selector-hover-background:is(:hover, [data-hover]):not(#\#):not(#\#):not(#\#):not(#\#) {
|
|
3263
|
+
background-color: var(--relay-colors-widget-selector-hover-background);
|
|
3264
|
+
}
|
|
3265
|
+
|
|
3266
3266
|
.hover\:relay-bg_gray6:is(:hover, [data-hover]):not(#\#):not(#\#):not(#\#):not(#\#) {
|
|
3267
3267
|
background-color: var(--relay-colors-gray6);
|
|
3268
3268
|
}
|
|
@@ -3271,10 +3271,6 @@ button:hover:not(#\#):not(#\#):not(#\#):not(#\#) .\[button\:hover_\&\]\:relay-bg
|
|
|
3271
3271
|
background-color: var(--relay-colors-gray5);
|
|
3272
3272
|
}
|
|
3273
3273
|
|
|
3274
|
-
.hover\:relay-bg_widget-selector-hover-background:is(:hover, [data-hover]):not(#\#):not(#\#):not(#\#):not(#\#) {
|
|
3275
|
-
background-color: var(--relay-colors-widget-selector-hover-background);
|
|
3276
|
-
}
|
|
3277
|
-
|
|
3278
3274
|
.hover\:relay-bg_gray3:is(:hover, [data-hover]):not(#\#):not(#\#):not(#\#):not(#\#) {
|
|
3279
3275
|
background-color: var(--relay-colors-gray3);
|
|
3280
3276
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@relayprotocol/relay-kit-ui",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.18",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./_cjs/src/index.js",
|
|
6
6
|
"module": "./_esm/src/index.js",
|
|
@@ -79,9 +79,9 @@
|
|
|
79
79
|
"pandacss-preset-radix-colors": "^0.2.0",
|
|
80
80
|
"qrcode.react": "^4.1.0",
|
|
81
81
|
"usehooks-ts": "^3.1.0",
|
|
82
|
-
"@relayprotocol/relay-
|
|
83
|
-
"@relayprotocol/relay-
|
|
84
|
-
"@relayprotocol/relay-
|
|
82
|
+
"@relayprotocol/relay-sdk": "2.4.5",
|
|
83
|
+
"@relayprotocol/relay-kit-hooks": "2.0.4",
|
|
84
|
+
"@relayprotocol/relay-design-system": "^1.0.0"
|
|
85
85
|
},
|
|
86
86
|
"keywords": [
|
|
87
87
|
"eth",
|