@0xsquid/ui 0.13.10 → 0.14.0

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/index.css CHANGED
@@ -581,14 +581,6 @@ video {
581
581
  bottom: 0px;
582
582
  }
583
583
 
584
- .-tw-bottom-1 {
585
- bottom: -0.25rem;
586
- }
587
-
588
- .-tw-bottom-1\.5 {
589
- bottom: -0.375rem;
590
- }
591
-
592
584
  .-tw-bottom-20 {
593
585
  bottom: -5rem;
594
586
  }
@@ -609,14 +601,6 @@ video {
609
601
  right: -33.333333%;
610
602
  }
611
603
 
612
- .-tw-top-1 {
613
- top: -0.25rem;
614
- }
615
-
616
- .-tw-top-1\.5 {
617
- top: -0.375rem;
618
- }
619
-
620
604
  .-tw-top-8 {
621
605
  top: -2rem;
622
606
  }
@@ -960,6 +944,10 @@ video {
960
944
  height: 60px;
961
945
  }
962
946
 
947
+ .tw-h-\[640px\] {
948
+ height: 640px;
949
+ }
950
+
963
951
  .tw-h-\[660px\] {
964
952
  height: 660px;
965
953
  }
@@ -1831,8 +1819,16 @@ video {
1831
1819
  background-color: var(--squid-theme-grey-800) !important;
1832
1820
  }
1833
1821
 
1834
- .\!tw-bg-royal-400 {
1835
- background-color: var(--squid-theme-royal-400) !important;
1822
+ .\!tw-bg-status-negative {
1823
+ background-color: var(--squid-theme-status-negative) !important;
1824
+ }
1825
+
1826
+ .\!tw-bg-status-partial {
1827
+ background-color: var(--squid-theme-status-partial) !important;
1828
+ }
1829
+
1830
+ .\!tw-bg-status-positive {
1831
+ background-color: var(--squid-theme-status-positive) !important;
1836
1832
  }
1837
1833
 
1838
1834
  .tw-bg-grey-100 {
@@ -1985,6 +1981,10 @@ video {
1985
1981
  padding: 3px;
1986
1982
  }
1987
1983
 
1984
+ .tw-p-squid-l {
1985
+ padding: 1.875rem;
1986
+ }
1987
+
1988
1988
  .tw-p-squid-s {
1989
1989
  padding: 0.9375rem;
1990
1990
  }
@@ -1993,6 +1993,10 @@ video {
1993
1993
  padding: 0.625rem;
1994
1994
  }
1995
1995
 
1996
+ .tw-p-squid-xxl {
1997
+ padding: 3.75rem;
1998
+ }
1999
+
1996
2000
  .\!tw-px-2 {
1997
2001
  padding-left: 0.5rem !important;
1998
2002
  padding-right: 0.5rem !important;
@@ -2428,6 +2432,10 @@ video {
2428
2432
  color: var(--squid-theme-grey-900);
2429
2433
  }
2430
2434
 
2435
+ .tw-text-material-dark-thin {
2436
+ color: var(--squid-theme-material-dark-thin);
2437
+ }
2438
+
2431
2439
  .tw-text-material-light-average {
2432
2440
  color: var(--squid-theme-material-light-average);
2433
2441
  }
@@ -2629,7 +2637,7 @@ li {
2629
2637
  list-style-type: none;
2630
2638
  }
2631
2639
 
2632
- .tw-swap-detail-list-item-gradient:nth-child(even) > div {
2640
+ .tw-swap-detail-list-item-gradient:nth-child(odd) > div {
2633
2641
  background: linear-gradient(
2634
2642
  91deg,
2635
2643
  /* grey-100 with 0.05 opacity */ var(--squid-theme-grey-100-005) 0%,
@@ -2898,26 +2906,10 @@ input[type='number'] {
2898
2906
  color: var(--squid-theme-material-light-average);
2899
2907
  }
2900
2908
 
2901
- .tw-group[data-squid-theme-type=dark] .group-data-\[squid-theme-type\=dark\]\:tw-text-material-light-thick {
2902
- color: var(--squid-theme-material-light-thick);
2903
- }
2904
-
2905
- .tw-group[data-squid-theme-type=dark] .group-data-\[squid-theme-type\=dark\]\:tw-text-material-light-thin {
2906
- color: var(--squid-theme-material-light-thin);
2907
- }
2908
-
2909
2909
  .tw-group[data-squid-theme-type=light] .group-data-\[squid-theme-type\=light\]\:tw-text-grey-900 {
2910
2910
  color: var(--squid-theme-grey-900);
2911
2911
  }
2912
2912
 
2913
- .tw-group[data-squid-theme-type=light] .group-data-\[squid-theme-type\=light\]\:tw-text-material-dark-thick {
2914
- color: var(--squid-theme-material-dark-thick);
2915
- }
2916
-
2917
- .tw-group[data-squid-theme-type=light] .group-data-\[squid-theme-type\=light\]\:tw-text-material-dark-thin {
2918
- color: var(--squid-theme-material-dark-thin);
2919
- }
2920
-
2921
2913
  .tw-group[data-squid-theme-type=light] .group-data-\[squid-theme-type\=light\]\:tw-text-transparent {
2922
2914
  color: transparent;
2923
2915
  }
package/dist/index.d.ts CHANGED
@@ -59,9 +59,8 @@ type SwapStepDescriptionBlock = {
59
59
  };
60
60
  type SwapStep = {
61
61
  descriptionBlocks: SwapStepDescriptionBlock[];
62
- chipContent: React.ReactNode;
63
62
  link?: string;
64
- status: SwapState;
63
+ status: SwapStepItemStatus;
65
64
  };
66
65
  declare enum SwapState {
67
66
  CONFIRM = 0,
@@ -74,7 +73,7 @@ declare enum SwapState {
74
73
  NEEDS_GAS = 7
75
74
  }
76
75
  type ThemeType = 'light' | 'dark';
77
- type SwapStepItemStatus = 'executed' | 'progress' | 'pending';
76
+ type SwapStepItemStatus = 'pending' | 'waiting' | 'ongoing' | 'executed' | 'success' | 'error' | 'warning';
78
77
 
79
78
  interface BoostButtonProps {
80
79
  boostMode: BoostMode;
@@ -318,12 +317,11 @@ declare function SwapDetailListItem({ label, detail, icon, isLoading, }: SwapDet
318
317
 
319
318
  interface SwapStepItemProps {
320
319
  descriptionBlocks: SwapStepDescriptionBlock[];
321
- chipContent: React.ReactNode;
322
320
  showStepSeparator?: boolean;
323
321
  link?: string;
324
322
  status?: SwapStepItemStatus;
325
323
  }
326
- declare function SwapStepItem({ descriptionBlocks, chipContent, showStepSeparator, link, status, }: SwapStepItemProps): react_jsx_runtime.JSX.Element;
324
+ declare function SwapStepItem({ descriptionBlocks, showStepSeparator, link, status, }: SwapStepItemProps): react_jsx_runtime.JSX.Element;
327
325
 
328
326
  interface DropdownMenuProps {
329
327
  dropdownRef?: React.RefObject<HTMLDivElement>;
@@ -491,9 +489,10 @@ type Token = {
491
489
  logoUrl: string;
492
490
  bgColor: string;
493
491
  };
494
- declare function SwapProgressView({ steps, isOpen, handleClose, socialLink, supportLink, fromAmount, fromChain, fromToken, toAmount, toChain, toToken, fromAddressFormatted, toAddressFormatted, swapState, estimatedTimeToComplete, }: {
492
+ declare function SwapProgressView({ steps, isOpen, handleClose, handleComplete, socialLink, supportLink, fromAmount, fromChain, fromToken, toAmount, toChain, toToken, fromAddressFormatted, toAddressFormatted, swapState, estimatedTimeToComplete, }: {
495
493
  steps: SwapStep[];
496
494
  handleClose?: () => void;
495
+ handleComplete?: () => void;
497
496
  isOpen?: boolean;
498
497
  socialLink?: string;
499
498
  supportLink?: string;
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "url": "git+https://github.com/0xsquid/squid-ui.git"
6
6
  },
7
7
  "description": "Squid's UI components",
8
- "version": "0.13.10",
8
+ "version": "0.14.0",
9
9
  "author": "",
10
10
  "license": "MIT",
11
11
  "resolutions": {