@relayprotocol/relay-kit-ui 6.0.3 → 6.0.5

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.
Files changed (78) hide show
  1. package/_cjs/src/components/common/Modal.js +1 -1
  2. package/_cjs/src/components/common/Modal.js.map +1 -1
  3. package/_cjs/src/components/common/TokenSelector/PaymentMethod.js +40 -38
  4. package/_cjs/src/components/common/TokenSelector/PaymentMethod.js.map +1 -1
  5. package/_cjs/src/components/common/TokenSelector/PaymentTokenList.js +13 -2
  6. package/_cjs/src/components/common/TokenSelector/PaymentTokenList.js.map +1 -1
  7. package/_cjs/src/components/common/UnverifiedTokenModal.js +2 -2
  8. package/_cjs/src/components/common/UnverifiedTokenModal.js.map +1 -1
  9. package/_cjs/src/components/primitives/Dropdown.js +2 -4
  10. package/_cjs/src/components/primitives/Dropdown.js.map +1 -1
  11. package/_cjs/src/components/primitives/Tooltip.js +4 -4
  12. package/_cjs/src/components/primitives/Tooltip.js.map +1 -1
  13. package/_cjs/src/components/widgets/OnrampWidget/widget/index.js +1 -1
  14. package/_cjs/src/components/widgets/SwapWidget/index.js +1 -1
  15. package/_cjs/src/components/widgets/TokenWidget/BuyTabContent.js +7 -7
  16. package/_cjs/src/components/widgets/TokenWidget/BuyTabContent.js.map +1 -1
  17. package/_cjs/src/components/widgets/TokenWidget/FeeBreakdownInfo.js +36 -3
  18. package/_cjs/src/components/widgets/TokenWidget/FeeBreakdownInfo.js.map +1 -1
  19. package/_cjs/src/components/widgets/TokenWidget/SectionContainer.js +6 -4
  20. package/_cjs/src/components/widgets/TokenWidget/SectionContainer.js.map +1 -1
  21. package/_cjs/src/components/widgets/TokenWidget/SellTabContent.js +5 -6
  22. package/_cjs/src/components/widgets/TokenWidget/SellTabContent.js.map +1 -1
  23. package/_cjs/src/components/widgets/TokenWidget/widget/index.js +72 -38
  24. package/_cjs/src/components/widgets/TokenWidget/widget/index.js.map +1 -1
  25. package/_cjs/src/hooks/useEnhancedTokensList.js +3 -1
  26. package/_cjs/src/hooks/useEnhancedTokensList.js.map +1 -1
  27. package/_cjs/src/styles.css +43 -31
  28. package/_cjs/src/version.js +1 -1
  29. package/_cjs/tsconfig.build.tsbuildinfo +1 -1
  30. package/_esm/src/components/common/Modal.js +1 -1
  31. package/_esm/src/components/common/Modal.js.map +1 -1
  32. package/_esm/src/components/common/TokenSelector/PaymentMethod.js +40 -38
  33. package/_esm/src/components/common/TokenSelector/PaymentMethod.js.map +1 -1
  34. package/_esm/src/components/common/TokenSelector/PaymentTokenList.js +13 -2
  35. package/_esm/src/components/common/TokenSelector/PaymentTokenList.js.map +1 -1
  36. package/_esm/src/components/common/UnverifiedTokenModal.js +2 -2
  37. package/_esm/src/components/common/UnverifiedTokenModal.js.map +1 -1
  38. package/_esm/src/components/primitives/Dropdown.js +2 -4
  39. package/_esm/src/components/primitives/Dropdown.js.map +1 -1
  40. package/_esm/src/components/primitives/Tooltip.js +4 -4
  41. package/_esm/src/components/primitives/Tooltip.js.map +1 -1
  42. package/_esm/src/components/widgets/OnrampWidget/widget/index.js +1 -1
  43. package/_esm/src/components/widgets/SwapWidget/index.js +1 -1
  44. package/_esm/src/components/widgets/TokenWidget/BuyTabContent.js +7 -7
  45. package/_esm/src/components/widgets/TokenWidget/BuyTabContent.js.map +1 -1
  46. package/_esm/src/components/widgets/TokenWidget/FeeBreakdownInfo.js +36 -3
  47. package/_esm/src/components/widgets/TokenWidget/FeeBreakdownInfo.js.map +1 -1
  48. package/_esm/src/components/widgets/TokenWidget/SectionContainer.js +6 -4
  49. package/_esm/src/components/widgets/TokenWidget/SectionContainer.js.map +1 -1
  50. package/_esm/src/components/widgets/TokenWidget/SellTabContent.js +6 -7
  51. package/_esm/src/components/widgets/TokenWidget/SellTabContent.js.map +1 -1
  52. package/_esm/src/components/widgets/TokenWidget/widget/index.js +74 -38
  53. package/_esm/src/components/widgets/TokenWidget/widget/index.js.map +1 -1
  54. package/_esm/src/hooks/useEnhancedTokensList.js +3 -1
  55. package/_esm/src/hooks/useEnhancedTokensList.js.map +1 -1
  56. package/_esm/src/styles.css +43 -31
  57. package/_esm/src/version.js +1 -1
  58. package/_esm/tsconfig.build.tsbuildinfo +1 -1
  59. package/_types/src/components/common/TokenSelector/PaymentMethod.d.ts +1 -1
  60. package/_types/src/components/common/TokenSelector/PaymentMethod.d.ts.map +1 -1
  61. package/_types/src/components/common/TokenSelector/PaymentTokenList.d.ts.map +1 -1
  62. package/_types/src/components/primitives/Dropdown.d.ts.map +1 -1
  63. package/_types/src/components/widgets/OnrampWidget/widget/index.d.ts.map +1 -1
  64. package/_types/src/components/widgets/TokenWidget/BuyTabContent.d.ts +1 -0
  65. package/_types/src/components/widgets/TokenWidget/BuyTabContent.d.ts.map +1 -1
  66. package/_types/src/components/widgets/TokenWidget/FeeBreakdownInfo.d.ts.map +1 -1
  67. package/_types/src/components/widgets/TokenWidget/SectionContainer.d.ts +5 -2
  68. package/_types/src/components/widgets/TokenWidget/SectionContainer.d.ts.map +1 -1
  69. package/_types/src/components/widgets/TokenWidget/SellTabContent.d.ts +1 -1
  70. package/_types/src/components/widgets/TokenWidget/SellTabContent.d.ts.map +1 -1
  71. package/_types/src/components/widgets/TokenWidget/widget/index.d.ts +3 -1
  72. package/_types/src/components/widgets/TokenWidget/widget/index.d.ts.map +1 -1
  73. package/_types/src/hooks/useEnhancedTokensList.d.ts.map +1 -1
  74. package/_types/src/version.d.ts +1 -1
  75. package/_types/tsconfig.build.tsbuildinfo +1 -1
  76. package/dist/panda.buildinfo.json +17 -12
  77. package/dist/styles.css +43 -31
  78. package/package.json +3 -3
@@ -152,7 +152,7 @@
152
152
  "padding]___[value:8px",
153
153
  "width]___[value:32px",
154
154
  "height]___[value:32px",
155
- "zIndex]___[value:1000",
155
+ "zIndex]___[value:10000001",
156
156
  "width]___[value:370]___[cond:sm",
157
157
  "marginLeft]___[value:-20px",
158
158
  "marginLeft]___[value:0",
@@ -252,13 +252,12 @@
252
252
  "width]___[value:100%]___[cond:@media(max-width: 520px)",
253
253
  "srOnly]___[value:true",
254
254
  "marginInline]___[value:4",
255
- "zIndex]___[value:5",
255
+ "zIndex]___[value:10000002",
256
256
  "background]___[value:modal-background",
257
257
  "boxShadow]___[value:0px 0px 50px 0px #0000001F",
258
258
  "border]___[value:dropdown-border",
259
- "backdropFilter]___[value:brightness(95%)]___[cond:_hover",
259
+ "transition]___[value:background-color 150ms linear",
260
260
  "backgroundColor]___[value:gray/10]___[cond:_hover",
261
- "backdropFilter]___[value:brightness(95%)]___[cond:&:focus",
262
261
  "backgroundColor]___[value:gray/10]___[cond:&:focus",
263
262
  "alignItems]___[value:flex-start",
264
263
  "alignItems]___[value:flex-end",
@@ -343,7 +342,7 @@
343
342
  "color]___[value:amber12",
344
343
  "fontStyle]___[value:italic",
345
344
  "fill]___[value:modal-background",
346
- "zIndex]___[value:9999",
345
+ "zIndex]___[value:10000004",
347
346
  "boxShadow]___[value:0px 1px 5px rgba(0,0,0,0.2)",
348
347
  "color]___[value:{colors.grass.9}",
349
348
  "color]___[value:{colors.amber.9}",
@@ -399,6 +398,7 @@
399
398
  "maxWidth]___[value:260",
400
399
  "gap]___[value:10px",
401
400
  "paddingBottom]___[value:8px",
401
+ "backdropFilter]___[value:brightness(95%)]___[cond:_hover",
402
402
  "paddingTop]___[value:8px",
403
403
  "alignItems]___[value:start",
404
404
  "backgroundColor]___[value:widget-card-background",
@@ -444,14 +444,20 @@
444
444
  "paddingBlock]___[value:5",
445
445
  "maxWidth]___[value:312",
446
446
  "alignSelf]___[value:center",
447
+ "paddingInline]___[value:0",
447
448
  "minWidth]___[value:auto",
449
+ "padding]___[value:0]___[cond:@media(min-width: 660px)",
448
450
  "width]___[value:27",
451
+ "fontSize]___[value:14px]___[cond:@media(min-width: 660px)",
452
+ "color]___[value:text-default]___[cond:@media(min-width: 660px)",
453
+ "lineHeight]___[value:20px]___[cond:@media(min-width: 660px)",
449
454
  "zIndex]___[value:100",
450
455
  "background]___[value:widget-background",
451
456
  "height]___[value:min(85vh, 540px)",
452
457
  "width]___[value:min(400px, 100vw)",
453
458
  "maxWidth]___[value:min(400px, 100vw)",
454
459
  "boxSizing]___[value:border-box",
460
+ "paddingInline]___[value:2]___[cond:@media(min-width: 660px)",
455
461
  "gap]___[value:2px",
456
462
  "flexGrow]___[value:1",
457
463
  "alignItems]___[value:end",
@@ -493,7 +499,7 @@
493
499
  "marginRight]___[value:6px",
494
500
  "textDecoration]___[value:line-through",
495
501
  "border]___[value:widget-border",
496
- "minWidth]___[value:300",
502
+ "minWidth]___[value:320",
497
503
  "maxWidth]___[value:408",
498
504
  "cursor]___[value:pointer]___[cond:_hover",
499
505
  "height]___[value:23",
@@ -523,9 +529,6 @@
523
529
  "height]___[value:10",
524
530
  "border]___[value:1px solid]___[cond:md",
525
531
  "borderColor]___[value:slate.4]___[cond:md",
526
- "minWidth]___[value:350px",
527
- "minWidth]___[value:400px]___[cond:md",
528
- "maxWidth]___[value:400px",
529
532
  "gap]___[value:32px",
530
533
  "marginTop]___[value:-8px",
531
534
  "lineHeight]___[value:32px",
@@ -537,12 +540,13 @@
537
540
  "width]___[value:90",
538
541
  "width]___[value:70",
539
542
  "minWidth]___[value:240",
540
- "minWidth]___[value:400px",
543
+ "minHeight]___[value:85vh",
541
544
  "backgroundColor]___[value:widget-card-background]___[cond:md",
542
- "paddingBlock]___[value:16px",
543
- "paddingInline]___[value:0",
545
+ "paddingBlock]___[value:12px",
546
+ "paddingBlock]___[value:16px]___[cond:md",
544
547
  "paddingInline]___[value:16px]___[cond:md",
545
548
  "borderRadius]___[value:widget-card-border-radius]___[cond:md",
549
+ "minHeight]___[value:auto]___[cond:md",
546
550
  "color]___[value:green9",
547
551
  "height]___[value:50",
548
552
  "minHeight]___[value:50",
@@ -647,6 +651,7 @@
647
651
  "whiteSpace]___[value:pre",
648
652
  "filter]___[value:brightness(97%)]___[cond:_light",
649
653
  "filter]___[value:brightness(130%)]___[cond:_dark",
654
+ "minWidth]___[value:400]___[cond:md",
650
655
  "border]___[value:1px solid transparent",
651
656
  "background]___[value:widget-background]___[cond:&[data-state=\"active\"]",
652
657
  "borderRadius]___[value:12px]___[cond:&[data-state=\"active\"]",
package/dist/styles.css CHANGED
@@ -1448,8 +1448,8 @@
1448
1448
  height: 32px;
1449
1449
  }
1450
1450
 
1451
- .relay-z_1000:not(#\#):not(#\#):not(#\#):not(#\#) {
1452
- z-index: 1000;
1451
+ .relay-z_10000001:not(#\#):not(#\#):not(#\#):not(#\#) {
1452
+ z-index: 10000001;
1453
1453
  }
1454
1454
 
1455
1455
  .relay-w_48px:not(#\#):not(#\#):not(#\#):not(#\#) {
@@ -1650,8 +1650,8 @@
1650
1650
  margin-inline: var(--relay-spacing-4);
1651
1651
  }
1652
1652
 
1653
- .relay-z_5:not(#\#):not(#\#):not(#\#):not(#\#) {
1654
- z-index: 5;
1653
+ .relay-z_10000002:not(#\#):not(#\#):not(#\#):not(#\#) {
1654
+ z-index: 10000002;
1655
1655
  }
1656
1656
 
1657
1657
  .relay-bg_modal-background:not(#\#):not(#\#):not(#\#):not(#\#) {
@@ -1666,6 +1666,10 @@
1666
1666
  border: var(--relay-borders-dropdown-border);
1667
1667
  }
1668
1668
 
1669
+ .relay-transition_background-color_150ms_linear:not(#\#):not(#\#):not(#\#):not(#\#) {
1670
+ transition: background-color 150ms linear;
1671
+ }
1672
+
1669
1673
  .relay-px_16:not(#\#):not(#\#):not(#\#):not(#\#) {
1670
1674
  padding-inline: 16px;
1671
1675
  }
@@ -1806,8 +1810,8 @@
1806
1810
  fill: var(--relay-colors-modal-background);
1807
1811
  }
1808
1812
 
1809
- .relay-z_9999:not(#\#):not(#\#):not(#\#):not(#\#) {
1810
- z-index: 9999;
1813
+ .relay-z_10000004:not(#\#):not(#\#):not(#\#):not(#\#) {
1814
+ z-index: 10000004;
1811
1815
  }
1812
1816
 
1813
1817
  .relay-shadow_0px_1px_5px_rgba\(0\,0\,0\,0\.2\):not(#\#):not(#\#):not(#\#):not(#\#) {
@@ -2056,6 +2060,10 @@
2056
2060
  max-width: 312px;
2057
2061
  }
2058
2062
 
2063
+ .relay-px_0:not(#\#):not(#\#):not(#\#):not(#\#) {
2064
+ padding-inline: 0;
2065
+ }
2066
+
2059
2067
  .relay-min-w_auto:not(#\#):not(#\#):not(#\#):not(#\#) {
2060
2068
  min-width: auto;
2061
2069
  }
@@ -2176,8 +2184,8 @@
2176
2184
  border: var(--relay-borders-widget-border);
2177
2185
  }
2178
2186
 
2179
- .relay-min-w_300:not(#\#):not(#\#):not(#\#):not(#\#) {
2180
- min-width: 300px;
2187
+ .relay-min-w_320:not(#\#):not(#\#):not(#\#):not(#\#) {
2188
+ min-width: 320px;
2181
2189
  }
2182
2190
 
2183
2191
  .relay-max-w_408:not(#\#):not(#\#):not(#\#):not(#\#) {
@@ -2252,14 +2260,6 @@
2252
2260
  height: 10px;
2253
2261
  }
2254
2262
 
2255
- .relay-min-w_350px:not(#\#):not(#\#):not(#\#):not(#\#) {
2256
- min-width: 350px;
2257
- }
2258
-
2259
- .relay-max-w_400px:not(#\#):not(#\#):not(#\#):not(#\#) {
2260
- max-width: 400px;
2261
- }
2262
-
2263
2263
  .relay-gap_32px:not(#\#):not(#\#):not(#\#):not(#\#) {
2264
2264
  gap: 32px;
2265
2265
  }
@@ -2284,16 +2284,12 @@
2284
2284
  min-width: 240px;
2285
2285
  }
2286
2286
 
2287
- .relay-min-w_400px:not(#\#):not(#\#):not(#\#):not(#\#) {
2288
- min-width: 400px;
2287
+ .relay-min-h_85vh:not(#\#):not(#\#):not(#\#):not(#\#) {
2288
+ min-height: 85vh;
2289
2289
  }
2290
2290
 
2291
- .relay-py_16px:not(#\#):not(#\#):not(#\#):not(#\#) {
2292
- padding-block: 16px;
2293
- }
2294
-
2295
- .relay-px_0:not(#\#):not(#\#):not(#\#):not(#\#) {
2296
- padding-inline: 0;
2291
+ .relay-py_12px:not(#\#):not(#\#):not(#\#):not(#\#) {
2292
+ padding-block: 12px;
2297
2293
  }
2298
2294
 
2299
2295
  .relay-text_green9:not(#\#):not(#\#):not(#\#):not(#\#) {
@@ -3454,11 +3450,6 @@
3454
3450
  border-radius: 4px;
3455
3451
  }
3456
3452
 
3457
- .\[\&\:focus\]\:relay-backdrop_brightness\(95\%\):focus:not(#\#):not(#\#):not(#\#):not(#\#) {
3458
- backdrop-filter: brightness(95%);
3459
- -webkit-backdrop-filter: brightness(95%);
3460
- }
3461
-
3462
3453
  .focus\:relay-shadow_inset_0_0_0_2px_var\(--focusColor\):is(:focus, [data-focus]):not(#\#):not(#\#):not(#\#):not(#\#) {
3463
3454
  box-shadow: inset 0 0 0 2px var(--focusColor);
3464
3455
  }
@@ -3667,6 +3658,15 @@ button:hover:not(#\#):not(#\#):not(#\#):not(#\#) .\[button\:hover_\&\]\:relay-bg
3667
3658
  }
3668
3659
 
3669
3660
  @media(min-width: 660px) {
3661
+ .\[\@media\(min-width\:_660px\)\]\:relay-p_0:not(#\#):not(#\#):not(#\#):not(#\#) {
3662
+ padding: 0;
3663
+ }
3664
+ .\[\@media\(min-width\:_660px\)\]\:relay-text_text-default:not(#\#):not(#\#):not(#\#):not(#\#) {
3665
+ color: var(--relay-colors-text-default);
3666
+ }
3667
+ .\[\@media\(min-width\:_660px\)\]\:relay-px_2:not(#\#):not(#\#):not(#\#):not(#\#) {
3668
+ padding-inline: var(--relay-spacing-2);
3669
+ }
3670
3670
  .\[\@media\(min-width\:_660px\)\]\:relay-min-w_660:not(#\#):not(#\#):not(#\#):not(#\#) {
3671
3671
  min-width: 660px;
3672
3672
  }
@@ -3681,6 +3681,12 @@ button:hover:not(#\#):not(#\#):not(#\#):not(#\#) .\[button\:hover_\&\]\:relay-bg
3681
3681
  }
3682
3682
  .\[\@media\(min-width\:_660px\)\]\:relay-max-w_408:not(#\#):not(#\#):not(#\#):not(#\#) {
3683
3683
  max-width: 408px;
3684
+ }
3685
+ .\[\@media\(min-width\:_660px\)\]\:relay-fs_14px:not(#\#):not(#\#):not(#\#):not(#\#) {
3686
+ font-size: 14px;
3687
+ }
3688
+ .\[\@media\(min-width\:_660px\)\]\:relay-leading_20px:not(#\#):not(#\#):not(#\#):not(#\#) {
3689
+ line-height: 20px;
3684
3690
  }
3685
3691
  }
3686
3692
 
@@ -3688,14 +3694,20 @@ button:hover:not(#\#):not(#\#):not(#\#):not(#\#) .\[button\:hover_\&\]\:relay-bg
3688
3694
  .md\:relay-border_1px_solid:not(#\#):not(#\#):not(#\#):not(#\#) {
3689
3695
  border: 1px solid;
3690
3696
  }
3691
- .md\:relay-min-w_400px:not(#\#):not(#\#):not(#\#):not(#\#) {
3692
- min-width: 400px;
3697
+ .md\:relay-py_16px:not(#\#):not(#\#):not(#\#):not(#\#) {
3698
+ padding-block: 16px;
3693
3699
  }
3694
3700
  .md\:relay-px_16px:not(#\#):not(#\#):not(#\#):not(#\#) {
3695
3701
  padding-inline: 16px;
3696
3702
  }
3697
3703
  .md\:relay-rounded_widget-card-border-radius:not(#\#):not(#\#):not(#\#):not(#\#) {
3698
3704
  border-radius: var(--relay-radii-widget-card-border-radius);
3705
+ }
3706
+ .md\:relay-min-h_auto:not(#\#):not(#\#):not(#\#):not(#\#) {
3707
+ min-height: auto;
3708
+ }
3709
+ .md\:relay-min-w_400:not(#\#):not(#\#):not(#\#):not(#\#) {
3710
+ min-width: 400px;
3699
3711
  }
3700
3712
  .md\:relay-border_slate\.4:not(#\#):not(#\#):not(#\#):not(#\#) {
3701
3713
  border-color: var(--relay-colors-slate-4);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@relayprotocol/relay-kit-ui",
3
- "version": "6.0.3",
3
+ "version": "6.0.5",
4
4
  "type": "module",
5
5
  "main": "./_cjs/src/index.js",
6
6
  "module": "./_esm/src/index.js",
@@ -84,9 +84,9 @@
84
84
  "pandacss-preset-radix-colors": "^0.2.0",
85
85
  "qrcode.react": "^4.1.0",
86
86
  "usehooks-ts": "^3.1.0",
87
- "@relayprotocol/relay-design-system": "^1.0.0",
88
87
  "@relayprotocol/relay-sdk": "3.1.0",
89
- "@relayprotocol/relay-kit-hooks": "2.0.8"
88
+ "@relayprotocol/relay-kit-hooks": "2.0.8",
89
+ "@relayprotocol/relay-design-system": "^1.0.0"
90
90
  },
91
91
  "keywords": [
92
92
  "eth",