@relayprotocol/relay-kit-ui 6.0.2 → 6.0.3

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 (54) hide show
  1. package/_cjs/src/components/common/TokenSelector/PaymentMethod.js +136 -123
  2. package/_cjs/src/components/common/TokenSelector/PaymentMethod.js.map +1 -1
  3. package/_cjs/src/components/common/TokenSelector/triggers/PaymentMethodTrigger.js +18 -21
  4. package/_cjs/src/components/common/TokenSelector/triggers/PaymentMethodTrigger.js.map +1 -1
  5. package/_cjs/src/components/widgets/TokenWidget/BuyTabContent.js +10 -9
  6. package/_cjs/src/components/widgets/TokenWidget/BuyTabContent.js.map +1 -1
  7. package/_cjs/src/components/widgets/TokenWidget/FeeBreakdownInfo.js +7 -3
  8. package/_cjs/src/components/widgets/TokenWidget/FeeBreakdownInfo.js.map +1 -1
  9. package/_cjs/src/components/widgets/TokenWidget/FeeBreakdownTooltip.js +4 -1
  10. package/_cjs/src/components/widgets/TokenWidget/FeeBreakdownTooltip.js.map +1 -1
  11. package/_cjs/src/components/widgets/TokenWidget/SectionContainer.js +4 -3
  12. package/_cjs/src/components/widgets/TokenWidget/SectionContainer.js.map +1 -1
  13. package/_cjs/src/components/widgets/TokenWidget/SellTabContent.js +13 -31
  14. package/_cjs/src/components/widgets/TokenWidget/SellTabContent.js.map +1 -1
  15. package/_cjs/src/components/widgets/TokenWidget/TransactionDetailsFooter.js +1 -1
  16. package/_cjs/src/components/widgets/TokenWidget/widget/index.js +16 -16
  17. package/_cjs/src/components/widgets/TokenWidget/widget/index.js.map +1 -1
  18. package/_cjs/src/styles.css +79 -30
  19. package/_cjs/src/version.js +1 -1
  20. package/_cjs/tsconfig.build.tsbuildinfo +1 -1
  21. package/_esm/src/components/common/TokenSelector/PaymentMethod.js +136 -123
  22. package/_esm/src/components/common/TokenSelector/PaymentMethod.js.map +1 -1
  23. package/_esm/src/components/common/TokenSelector/triggers/PaymentMethodTrigger.js +18 -21
  24. package/_esm/src/components/common/TokenSelector/triggers/PaymentMethodTrigger.js.map +1 -1
  25. package/_esm/src/components/widgets/TokenWidget/BuyTabContent.js +10 -9
  26. package/_esm/src/components/widgets/TokenWidget/BuyTabContent.js.map +1 -1
  27. package/_esm/src/components/widgets/TokenWidget/FeeBreakdownInfo.js +7 -3
  28. package/_esm/src/components/widgets/TokenWidget/FeeBreakdownInfo.js.map +1 -1
  29. package/_esm/src/components/widgets/TokenWidget/FeeBreakdownTooltip.js +5 -2
  30. package/_esm/src/components/widgets/TokenWidget/FeeBreakdownTooltip.js.map +1 -1
  31. package/_esm/src/components/widgets/TokenWidget/SectionContainer.js +4 -3
  32. package/_esm/src/components/widgets/TokenWidget/SectionContainer.js.map +1 -1
  33. package/_esm/src/components/widgets/TokenWidget/SellTabContent.js +13 -31
  34. package/_esm/src/components/widgets/TokenWidget/SellTabContent.js.map +1 -1
  35. package/_esm/src/components/widgets/TokenWidget/TransactionDetailsFooter.js +1 -1
  36. package/_esm/src/components/widgets/TokenWidget/widget/index.js +16 -16
  37. package/_esm/src/components/widgets/TokenWidget/widget/index.js.map +1 -1
  38. package/_esm/src/styles.css +79 -30
  39. package/_esm/src/version.js +1 -1
  40. package/_esm/tsconfig.build.tsbuildinfo +1 -1
  41. package/_types/src/components/common/TokenSelector/PaymentMethod.d.ts.map +1 -1
  42. package/_types/src/components/common/TokenSelector/triggers/PaymentMethodTrigger.d.ts +0 -1
  43. package/_types/src/components/common/TokenSelector/triggers/PaymentMethodTrigger.d.ts.map +1 -1
  44. package/_types/src/components/widgets/TokenWidget/BuyTabContent.d.ts.map +1 -1
  45. package/_types/src/components/widgets/TokenWidget/FeeBreakdownInfo.d.ts.map +1 -1
  46. package/_types/src/components/widgets/TokenWidget/FeeBreakdownTooltip.d.ts.map +1 -1
  47. package/_types/src/components/widgets/TokenWidget/SectionContainer.d.ts.map +1 -1
  48. package/_types/src/components/widgets/TokenWidget/SellTabContent.d.ts.map +1 -1
  49. package/_types/src/components/widgets/TokenWidget/widget/index.d.ts.map +1 -1
  50. package/_types/src/version.d.ts +1 -1
  51. package/_types/tsconfig.build.tsbuildinfo +1 -1
  52. package/dist/panda.buildinfo.json +26 -13
  53. package/dist/styles.css +79 -30
  54. package/package.json +3 -3
@@ -438,10 +438,6 @@
438
438
  "minWidth]___[value:40px",
439
439
  "height]___[value:56px",
440
440
  "textAlign]___[value:left",
441
- "height]___[value:min(85vh, 540px)",
442
- "width]___[value:min(400px, 100vw)",
443
- "maxWidth]___[value:min(400px, 100vw)",
444
- "boxSizing]___[value:border-box",
445
441
  "overflowY]___[value:hidden",
446
442
  "maxWidth]___[value:100%",
447
443
  "paddingTop]___[value:2",
@@ -450,6 +446,12 @@
450
446
  "alignSelf]___[value:center",
451
447
  "minWidth]___[value:auto",
452
448
  "width]___[value:27",
449
+ "zIndex]___[value:100",
450
+ "background]___[value:widget-background",
451
+ "height]___[value:min(85vh, 540px)",
452
+ "width]___[value:min(400px, 100vw)",
453
+ "maxWidth]___[value:min(400px, 100vw)",
454
+ "boxSizing]___[value:border-box",
453
455
  "gap]___[value:2px",
454
456
  "flexGrow]___[value:1",
455
457
  "alignItems]___[value:end",
@@ -519,28 +521,38 @@
519
521
  "borderRadius]___[value:widget-swap-currency-button-border-radius",
520
522
  "color]___[value:secondary",
521
523
  "height]___[value:10",
522
- "borderColor]___[value:slate.4",
524
+ "border]___[value:1px solid]___[cond:md",
525
+ "borderColor]___[value:slate.4]___[cond:md",
526
+ "minWidth]___[value:350px",
527
+ "minWidth]___[value:400px]___[cond:md",
528
+ "maxWidth]___[value:400px",
529
+ "gap]___[value:32px",
530
+ "marginTop]___[value:-8px",
523
531
  "lineHeight]___[value:32px",
524
532
  "--thickness]___[value:1px",
525
533
  "borderBlockEndWidth]___[value:var(--thickness)",
526
534
  "borderColor]___[value:gray4",
535
+ "justifyContent]___[value:start",
527
536
  "minHeight]___[value:42",
528
537
  "width]___[value:90",
529
538
  "width]___[value:70",
530
539
  "minWidth]___[value:240",
531
540
  "minWidth]___[value:400px",
532
- "maxWidth]___[value:400px",
533
- "padding]___[value:16px",
541
+ "backgroundColor]___[value:widget-card-background]___[cond:md",
542
+ "paddingBlock]___[value:16px",
543
+ "paddingInline]___[value:0",
544
+ "paddingInline]___[value:16px]___[cond:md",
545
+ "borderRadius]___[value:widget-card-border-radius]___[cond:md",
534
546
  "color]___[value:green9",
535
547
  "height]___[value:50",
536
548
  "minHeight]___[value:50",
537
- "width]___[value:248px",
549
+ "width]___[value:220px",
538
550
  "padding]___[value:12px",
539
- "backgroundColor]___[value:widget-selector-background]___[cond:_disabled",
540
551
  "maxWidth]___[value:150",
541
552
  "minWidth]___[value:60",
542
- "lineHeight]___[value:15px",
553
+ "backgroundColor]___[value:widget-selector-background]___[cond:_disabled",
543
554
  "maxWidth]___[value:100",
555
+ "lineHeight]___[value:15px",
544
556
  "flexDirection]___[value:row]___[cond:bp500",
545
557
  "backgroundColor]___[value:subtle-background-color",
546
558
  "padding]___[value:12px 16px",
@@ -636,14 +648,15 @@
636
648
  "filter]___[value:brightness(97%)]___[cond:_light",
637
649
  "filter]___[value:brightness(130%)]___[cond:_dark",
638
650
  "border]___[value:1px solid transparent",
639
- "background]___[value:white]___[cond:&[data-state=\"active\"]",
651
+ "background]___[value:widget-background]___[cond:&[data-state=\"active\"]",
640
652
  "borderRadius]___[value:12px]___[cond:&[data-state=\"active\"]",
641
653
  "borderColor]___[value:slate.4]___[cond:&[data-state=\"active\"]",
642
- "color]___[value:gray12]___[cond:&[data-state=\"active\"]",
654
+ "color]___[value:text-default]___[cond:&[data-state=\"active\"]",
643
655
  "backgroundColor]___[value:transparent !important]___[cond:&:not([data-state=\"active\"])<___>_hover",
644
- "background]___[value:gray1]___[cond:_dark<___>&[data-state=\"active\"]",
656
+ "background]___[value:widget-background]___[cond:_dark<___>&[data-state=\"active\"]",
645
657
  "borderColor]___[value:gray.4]___[cond:_dark<___>&[data-state=\"active\"]",
646
658
  "backgroundColor]___[value:transparent !important]___[cond:_dark<___>&:not([data-state=\"active\"])<___>_hover",
659
+ "color]___[value:inherit",
647
660
  "width]___[value:1",
648
661
  "marginBlock]___[value:5px",
649
662
  "marginLeft]___[value:4",
package/dist/styles.css CHANGED
@@ -2044,22 +2044,6 @@
2044
2044
  text-align: left;
2045
2045
  }
2046
2046
 
2047
- .relay-h_min\(85vh\,_540px\):not(#\#):not(#\#):not(#\#):not(#\#) {
2048
- height: min(85vh, 540px);
2049
- }
2050
-
2051
- .relay-w_min\(400px\,_100vw\):not(#\#):not(#\#):not(#\#):not(#\#) {
2052
- width: min(400px, 100vw);
2053
- }
2054
-
2055
- .relay-max-w_min\(400px\,_100vw\):not(#\#):not(#\#):not(#\#):not(#\#) {
2056
- max-width: min(400px, 100vw);
2057
- }
2058
-
2059
- .relay-box_border-box:not(#\#):not(#\#):not(#\#):not(#\#) {
2060
- box-sizing: border-box;
2061
- }
2062
-
2063
2047
  .relay-max-w_100\%:not(#\#):not(#\#):not(#\#):not(#\#) {
2064
2048
  max-width: 100%;
2065
2049
  }
@@ -2080,6 +2064,30 @@
2080
2064
  width: 27px;
2081
2065
  }
2082
2066
 
2067
+ .relay-z_100:not(#\#):not(#\#):not(#\#):not(#\#) {
2068
+ z-index: 100;
2069
+ }
2070
+
2071
+ .relay-bg_widget-background:not(#\#):not(#\#):not(#\#):not(#\#) {
2072
+ background: var(--relay-colors-widget-background);
2073
+ }
2074
+
2075
+ .relay-h_min\(85vh\,_540px\):not(#\#):not(#\#):not(#\#):not(#\#) {
2076
+ height: min(85vh, 540px);
2077
+ }
2078
+
2079
+ .relay-w_min\(400px\,_100vw\):not(#\#):not(#\#):not(#\#):not(#\#) {
2080
+ width: min(400px, 100vw);
2081
+ }
2082
+
2083
+ .relay-max-w_min\(400px\,_100vw\):not(#\#):not(#\#):not(#\#):not(#\#) {
2084
+ max-width: min(400px, 100vw);
2085
+ }
2086
+
2087
+ .relay-box_border-box:not(#\#):not(#\#):not(#\#):not(#\#) {
2088
+ box-sizing: border-box;
2089
+ }
2090
+
2083
2091
  .relay-gap_2px:not(#\#):not(#\#):not(#\#):not(#\#) {
2084
2092
  gap: 2px;
2085
2093
  }
@@ -2244,6 +2252,18 @@
2244
2252
  height: 10px;
2245
2253
  }
2246
2254
 
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
+ .relay-gap_32px:not(#\#):not(#\#):not(#\#):not(#\#) {
2264
+ gap: 32px;
2265
+ }
2266
+
2247
2267
  .relay---thickness_1px:not(#\#):not(#\#):not(#\#):not(#\#) {
2248
2268
  --thickness: 1px;
2249
2269
  }
@@ -2268,12 +2288,12 @@
2268
2288
  min-width: 400px;
2269
2289
  }
2270
2290
 
2271
- .relay-max-w_400px:not(#\#):not(#\#):not(#\#):not(#\#) {
2272
- max-width: 400px;
2291
+ .relay-py_16px:not(#\#):not(#\#):not(#\#):not(#\#) {
2292
+ padding-block: 16px;
2273
2293
  }
2274
2294
 
2275
- .relay-p_16px:not(#\#):not(#\#):not(#\#):not(#\#) {
2276
- padding: 16px;
2295
+ .relay-px_0:not(#\#):not(#\#):not(#\#):not(#\#) {
2296
+ padding-inline: 0;
2277
2297
  }
2278
2298
 
2279
2299
  .relay-text_green9:not(#\#):not(#\#):not(#\#):not(#\#) {
@@ -2288,8 +2308,8 @@
2288
2308
  min-height: 50px;
2289
2309
  }
2290
2310
 
2291
- .relay-w_248px:not(#\#):not(#\#):not(#\#):not(#\#) {
2292
- width: 248px;
2311
+ .relay-w_220px:not(#\#):not(#\#):not(#\#):not(#\#) {
2312
+ width: 220px;
2293
2313
  }
2294
2314
 
2295
2315
  .relay-p_12px:not(#\#):not(#\#):not(#\#):not(#\#) {
@@ -2504,6 +2524,10 @@
2504
2524
  border: 1px solid transparent;
2505
2525
  }
2506
2526
 
2527
+ .relay-text_inherit:not(#\#):not(#\#):not(#\#):not(#\#) {
2528
+ color: inherit;
2529
+ }
2530
+
2507
2531
  .relay-w_1:not(#\#):not(#\#):not(#\#):not(#\#) {
2508
2532
  width: 1px;
2509
2533
  }
@@ -3076,8 +3100,8 @@
3076
3100
  margin-top: 4px;
3077
3101
  }
3078
3102
 
3079
- .relay-border_slate\.4:not(#\#):not(#\#):not(#\#):not(#\#) {
3080
- border-color: var(--relay-colors-slate-4);
3103
+ .relay-mt_-8px:not(#\#):not(#\#):not(#\#):not(#\#) {
3104
+ margin-top: -8px;
3081
3105
  }
3082
3106
 
3083
3107
  .relay-leading_32px:not(#\#):not(#\#):not(#\#):not(#\#) {
@@ -3092,6 +3116,10 @@
3092
3116
  border-color: var(--relay-colors-gray4);
3093
3117
  }
3094
3118
 
3119
+ .relay-justify_start:not(#\#):not(#\#):not(#\#):not(#\#) {
3120
+ justify-content: start;
3121
+ }
3122
+
3095
3123
  .relay-leading_15px:not(#\#):not(#\#):not(#\#):not(#\#) {
3096
3124
  line-height: 15px;
3097
3125
  }
@@ -3332,16 +3360,16 @@
3332
3360
  filter: brightness(130%);
3333
3361
  }
3334
3362
 
3335
- .\[\&\[data-state\=\"active\"\]\]\:relay-bg_white[data-state="active"]:not(#\#):not(#\#):not(#\#):not(#\#) {
3336
- background: white;
3363
+ .\[\&\[data-state\=\"active\"\]\]\:relay-bg_widget-background[data-state="active"]:not(#\#):not(#\#):not(#\#):not(#\#) {
3364
+ background: var(--relay-colors-widget-background);
3337
3365
  }
3338
3366
 
3339
3367
  .\[\&\[data-state\=\"active\"\]\]\:relay-rounded_12px[data-state="active"]:not(#\#):not(#\#):not(#\#):not(#\#) {
3340
3368
  border-radius: 12px;
3341
3369
  }
3342
3370
 
3343
- .\[\&\[data-state\=\"active\"\]\]\:relay-text_gray12[data-state="active"]:not(#\#):not(#\#):not(#\#):not(#\#) {
3344
- color: var(--relay-colors-gray12);
3371
+ .\[\&\[data-state\=\"active\"\]\]\:relay-text_text-default[data-state="active"]:not(#\#):not(#\#):not(#\#):not(#\#) {
3372
+ color: var(--relay-colors-text-default);
3345
3373
  }
3346
3374
 
3347
3375
  .disabled\:relay-bg_button-disabled-background:is(:disabled, [disabled], [data-disabled]):not(#\#):not(#\#):not(#\#):not(#\#) {
@@ -3563,8 +3591,8 @@ button:hover:not(#\#):not(#\#):not(#\#):not(#\#) .\[button\:hover_\&\]\:relay-bg
3563
3591
  color: var(--relay-colors-gray10);
3564
3592
  }
3565
3593
 
3566
- .dark:not(#\#):not(#\#):not(#\#):not(#\#) .dark\:\[\&\[data-state\=\"active\"\]\]\:relay-bg_gray1[data-state="active"],[data-theme="dark"]:not(#\#):not(#\#):not(#\#):not(#\#) .dark\:\[\&\[data-state\=\"active\"\]\]\:relay-bg_gray1[data-state="active"] {
3567
- background: var(--relay-colors-gray1);
3594
+ .dark:not(#\#):not(#\#):not(#\#):not(#\#) .dark\:\[\&\[data-state\=\"active\"\]\]\:relay-bg_widget-background[data-state="active"],[data-theme="dark"]:not(#\#):not(#\#):not(#\#):not(#\#) .dark\:\[\&\[data-state\=\"active\"\]\]\:relay-bg_widget-background[data-state="active"] {
3595
+ background: var(--relay-colors-widget-background);
3568
3596
  }
3569
3597
 
3570
3598
  .disabled\:hover\:relay-bg_button-disabled-background:is(:disabled, [disabled], [data-disabled]):is(:hover, [data-hover]):not(#\#):not(#\#):not(#\#):not(#\#) {
@@ -3656,6 +3684,27 @@ button:hover:not(#\#):not(#\#):not(#\#):not(#\#) .\[button\:hover_\&\]\:relay-bg
3656
3684
  }
3657
3685
  }
3658
3686
 
3687
+ @media screen and (min-width: 56.25rem) {
3688
+ .md\:relay-border_1px_solid:not(#\#):not(#\#):not(#\#):not(#\#) {
3689
+ border: 1px solid;
3690
+ }
3691
+ .md\:relay-min-w_400px:not(#\#):not(#\#):not(#\#):not(#\#) {
3692
+ min-width: 400px;
3693
+ }
3694
+ .md\:relay-px_16px:not(#\#):not(#\#):not(#\#):not(#\#) {
3695
+ padding-inline: 16px;
3696
+ }
3697
+ .md\:relay-rounded_widget-card-border-radius:not(#\#):not(#\#):not(#\#):not(#\#) {
3698
+ border-radius: var(--relay-radii-widget-card-border-radius);
3699
+ }
3700
+ .md\:relay-border_slate\.4:not(#\#):not(#\#):not(#\#):not(#\#) {
3701
+ border-color: var(--relay-colors-slate-4);
3702
+ }
3703
+ .md\:relay-bg_widget-card-background:not(#\#):not(#\#):not(#\#):not(#\#) {
3704
+ background-color: var(--relay-colors-widget-card-background);
3705
+ }
3706
+ }
3707
+
3659
3708
  @media screen and (max-width: 37.4975rem) {
3660
3709
  .smDown\:relay-d_flex:not(#\#):not(#\#):not(#\#):not(#\#) {
3661
3710
  display: flex;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@relayprotocol/relay-kit-ui",
3
- "version": "6.0.2",
3
+ "version": "6.0.3",
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-kit-hooks": "2.0.8",
87
+ "@relayprotocol/relay-design-system": "^1.0.0",
88
88
  "@relayprotocol/relay-sdk": "3.1.0",
89
- "@relayprotocol/relay-design-system": "^1.0.0"
89
+ "@relayprotocol/relay-kit-hooks": "2.0.8"
90
90
  },
91
91
  "keywords": [
92
92
  "eth",