@0xsquid/ui 2.2.3 → 2.2.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 (33) hide show
  1. package/dist/cjs/index.js +277 -180
  2. package/dist/cjs/types/components/badges/BadgeImage.d.ts +1 -1
  3. package/dist/cjs/types/components/icons/FavouriteFilterIcon.d.ts +4 -0
  4. package/dist/cjs/types/components/icons/MarketIcons.d.ts +8 -0
  5. package/dist/cjs/types/components/icons/index.d.ts +5 -3
  6. package/dist/cjs/types/components/layout/NavigationBar.d.ts +2 -1
  7. package/dist/cjs/types/components/layout/TokenDetailsView.d.ts +39 -0
  8. package/dist/cjs/types/components/layout/index.d.ts +3 -2
  9. package/dist/cjs/types/components/typography/BodyText.d.ts +5 -1
  10. package/dist/cjs/types/components/typography/CaptionText.d.ts +7 -2
  11. package/dist/cjs/types/components/views/AssetsView.d.ts +8 -8
  12. package/dist/cjs/types/services/internal/colorService.d.ts +2 -1
  13. package/dist/cjs/types/stories/layout/NavigationBar.stories.d.ts +8 -2
  14. package/dist/cjs/types/stories/layout/TokenDetailsView.stories.d.ts +13 -0
  15. package/dist/cjs/types/stories/views/AssetsView.stories.d.ts +1 -1
  16. package/dist/esm/index.js +273 -181
  17. package/dist/esm/types/components/badges/BadgeImage.d.ts +1 -1
  18. package/dist/esm/types/components/icons/FavouriteFilterIcon.d.ts +4 -0
  19. package/dist/esm/types/components/icons/MarketIcons.d.ts +8 -0
  20. package/dist/esm/types/components/icons/index.d.ts +5 -3
  21. package/dist/esm/types/components/layout/NavigationBar.d.ts +2 -1
  22. package/dist/esm/types/components/layout/TokenDetailsView.d.ts +39 -0
  23. package/dist/esm/types/components/layout/index.d.ts +3 -2
  24. package/dist/esm/types/components/typography/BodyText.d.ts +5 -1
  25. package/dist/esm/types/components/typography/CaptionText.d.ts +7 -2
  26. package/dist/esm/types/components/views/AssetsView.d.ts +8 -8
  27. package/dist/esm/types/services/internal/colorService.d.ts +2 -1
  28. package/dist/esm/types/stories/layout/NavigationBar.stories.d.ts +8 -2
  29. package/dist/esm/types/stories/layout/TokenDetailsView.stories.d.ts +13 -0
  30. package/dist/esm/types/stories/views/AssetsView.stories.d.ts +1 -1
  31. package/dist/index.css +1 -1
  32. package/dist/index.d.ts +209 -146
  33. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -20,7 +20,7 @@ interface BadgeImageProps {
20
20
  */
21
21
  placeholderImageUrl?: string;
22
22
  }
23
- type BadgeSize = "sm" | "md";
23
+ type BadgeSize = "sm" | "md" | "lg";
24
24
  declare function BadgeImage({ imageUrl: _imageUrl, badgeUrl, size, extraMarginForBadge, rounded, placeholderImageUrl, }: BadgeImageProps): react_jsx_runtime.JSX.Element | null;
25
25
 
26
26
  type TextSize = "small" | "medium" | "large";
@@ -167,13 +167,13 @@ interface TooltipProps {
167
167
  }
168
168
  declare function Tooltip(props: TooltipProps): react_jsx_runtime.JSX.Element;
169
169
 
170
- interface Token$1 {
170
+ interface Token$2 {
171
171
  price: number;
172
172
  symbol: string;
173
173
  decimals: number;
174
174
  }
175
175
  interface NumericInputProps extends React.InputHTMLAttributes<HTMLInputElement> {
176
- token: Token$1;
176
+ token: Token$2;
177
177
  onAmountChange: (tokenAmount: string) => void;
178
178
  forcedAmount?: string;
179
179
  formatIfVerySmall?: {
@@ -496,11 +496,28 @@ declare function Copy({ size, strokeWidth, ...props }: {
496
496
  strokeWidth?: string;
497
497
  } & ComponentProps<"svg">): react_jsx_runtime.JSX.Element;
498
498
 
499
+ declare function CrossAnimatedIcon({ size, isOpen, transitionDuration, className, }: {
500
+ size?: number;
501
+ isOpen?: boolean;
502
+ transitionDuration?: React.CSSProperties["transitionDuration"];
503
+ className?: string;
504
+ }): react_jsx_runtime.JSX.Element;
505
+
499
506
  declare function DashboardFast({ size, className, }: {
500
507
  size?: string;
501
508
  className?: string;
502
509
  }): react_jsx_runtime.JSX.Element;
503
510
 
511
+ interface DockIconProps {
512
+ isSelected?: boolean;
513
+ }
514
+ declare function DockIconSwap({ isSelected }: DockIconProps): react_jsx_runtime.JSX.Element;
515
+ declare function DockIconCheckout({ isSelected }: DockIconProps): react_jsx_runtime.JSX.Element;
516
+ declare function DockIconScan({ isSelected }: DockIconProps): react_jsx_runtime.JSX.Element;
517
+ declare function DockIconAnalytics({ isSelected }: DockIconProps): react_jsx_runtime.JSX.Element;
518
+ declare function DockIconProfile({ isSelected }: DockIconProps): react_jsx_runtime.JSX.Element;
519
+ declare function DockIconHelp({ isSelected }: DockIconProps): react_jsx_runtime.JSX.Element;
520
+
504
521
  declare function DotGrid1x3HorizontalIcon({ className, size, }: {
505
522
  className?: string;
506
523
  size?: string;
@@ -521,8 +538,98 @@ declare function SmileIcon({ size, className, }: {
521
538
 
522
539
  declare function EthereumIcon(): react_jsx_runtime.JSX.Element;
523
540
 
541
+ declare function FavouriteFilterIcon({ size, className, }: {
542
+ size?: string;
543
+ className?: string;
544
+ }): react_jsx_runtime.JSX.Element;
545
+
524
546
  declare function FilterIcon(): react_jsx_runtime.JSX.Element;
525
547
 
548
+ declare function GhostIcon({ size, className, }: {
549
+ size?: string;
550
+ className?: string;
551
+ }): react_jsx_runtime.JSX.Element;
552
+ declare function SettingsSliderIcon({ size, className, }: {
553
+ size?: string;
554
+ className?: string;
555
+ }): react_jsx_runtime.JSX.Element;
556
+ declare function EyeOpenIcon({ size, className, }: {
557
+ size?: string;
558
+ className?: string;
559
+ }): react_jsx_runtime.JSX.Element;
560
+ declare function BellAlarmIcon({ size, className, }: {
561
+ size?: string;
562
+ className?: string;
563
+ }): react_jsx_runtime.JSX.Element;
564
+ declare function LimitIcon({ size, className, }: {
565
+ size?: string;
566
+ className?: string;
567
+ }): react_jsx_runtime.JSX.Element;
568
+ declare function PoopIcon({ size, className, }: {
569
+ size?: string;
570
+ className?: string;
571
+ }): react_jsx_runtime.JSX.Element;
572
+ declare function CatSquareIcon({ size, className, }: {
573
+ size?: string;
574
+ className?: string;
575
+ }): react_jsx_runtime.JSX.Element;
576
+ declare function FilterAscendingIcon({ size, className, }: {
577
+ size?: string;
578
+ className?: string;
579
+ }): react_jsx_runtime.JSX.Element;
580
+ declare function ImageIcon({ size, className, }: {
581
+ size?: string;
582
+ className?: string;
583
+ }): react_jsx_runtime.JSX.Element;
584
+ declare function FilterTimelineIcon({ size, className, }: {
585
+ size?: string;
586
+ className?: string;
587
+ }): react_jsx_runtime.JSX.Element;
588
+ declare function NewspaperIcon({ className, size, }: {
589
+ className?: string;
590
+ size?: string;
591
+ }): react_jsx_runtime.JSX.Element;
592
+ declare function AtomIcon({ className, size, }: {
593
+ className?: string;
594
+ size?: string;
595
+ }): react_jsx_runtime.JSX.Element;
596
+ declare function SunriseSmallIcon({ className, size, }: {
597
+ className?: string;
598
+ size?: string;
599
+ }): react_jsx_runtime.JSX.Element;
600
+ declare function CoinsOutlinedIcon({ className, size, }: {
601
+ className?: string;
602
+ size?: string;
603
+ }): react_jsx_runtime.JSX.Element;
604
+ declare function PhoneIcon({ size, className, }: {
605
+ size?: string;
606
+ className?: string;
607
+ }): react_jsx_runtime.JSX.Element;
608
+ declare function LaptopIcon({ size, className, }: {
609
+ size?: string;
610
+ className?: string;
611
+ }): react_jsx_runtime.JSX.Element;
612
+ declare function CopyIcon({ size, className, }: {
613
+ size?: string;
614
+ className?: string;
615
+ }): react_jsx_runtime.JSX.Element;
616
+ declare function FileDownloadIcon({ size, className, }: {
617
+ size?: string;
618
+ className?: string;
619
+ }): react_jsx_runtime.JSX.Element;
620
+ declare function CodeSolidSquareIcon({ size, className, }: {
621
+ size?: string;
622
+ className?: string;
623
+ }): react_jsx_runtime.JSX.Element;
624
+ declare function CodeBracketsIcon({ size, className, }: {
625
+ size?: string;
626
+ className?: string;
627
+ }): react_jsx_runtime.JSX.Element;
628
+ declare function CommandIcon({ size, className, }: {
629
+ size?: string;
630
+ className?: string;
631
+ }): react_jsx_runtime.JSX.Element;
632
+
526
633
  declare function EmptyHeartIcon({ className }: {
527
634
  className?: string;
528
635
  }): react_jsx_runtime.JSX.Element;
@@ -592,6 +699,15 @@ interface LoaderProps extends ComponentProps<"svg"> {
592
699
  }
593
700
  declare function Loader({ size, strokeWidth, className, rotateDuration, ...props }: LoaderProps): react_jsx_runtime.JSX.Element;
594
701
 
702
+ declare function MarketCapIcon({ size, className, }: {
703
+ size?: string;
704
+ className?: string;
705
+ }): react_jsx_runtime.JSX.Element;
706
+ declare function HighestPriceRangeIcon({ size, className, }: {
707
+ size?: string;
708
+ className?: string;
709
+ }): react_jsx_runtime.JSX.Element;
710
+
595
711
  declare function MaxIcon(): react_jsx_runtime.JSX.Element;
596
712
 
597
713
  declare function NotAllowedIcon(): react_jsx_runtime.JSX.Element;
@@ -697,13 +813,6 @@ declare function WalletFilledIcon({ size }: {
697
813
  size?: string;
698
814
  }): react_jsx_runtime.JSX.Element;
699
815
 
700
- declare function CrossAnimatedIcon({ size, isOpen, transitionDuration, className, }: {
701
- size?: number;
702
- isOpen?: boolean;
703
- transitionDuration?: React.CSSProperties["transitionDuration"];
704
- className?: string;
705
- }): react_jsx_runtime.JSX.Element;
706
-
707
816
  declare function SunriseIcon({ size, className, }: {
708
817
  size?: string;
709
818
  className?: string;
@@ -725,101 +834,6 @@ declare function CrossedOutSunSolidIcon({ size, className, }: {
725
834
  className?: string;
726
835
  }): react_jsx_runtime.JSX.Element;
727
836
 
728
- interface DockIconProps {
729
- isSelected?: boolean;
730
- }
731
- declare function DockIconSwap({ isSelected }: DockIconProps): react_jsx_runtime.JSX.Element;
732
- declare function DockIconCheckout({ isSelected }: DockIconProps): react_jsx_runtime.JSX.Element;
733
- declare function DockIconScan({ isSelected }: DockIconProps): react_jsx_runtime.JSX.Element;
734
- declare function DockIconAnalytics({ isSelected }: DockIconProps): react_jsx_runtime.JSX.Element;
735
- declare function DockIconProfile({ isSelected }: DockIconProps): react_jsx_runtime.JSX.Element;
736
- declare function DockIconHelp({ isSelected }: DockIconProps): react_jsx_runtime.JSX.Element;
737
-
738
- declare function GhostIcon({ size, className, }: {
739
- size?: string;
740
- className?: string;
741
- }): react_jsx_runtime.JSX.Element;
742
- declare function SettingsSliderIcon({ size, className, }: {
743
- size?: string;
744
- className?: string;
745
- }): react_jsx_runtime.JSX.Element;
746
- declare function EyeOpenIcon({ size, className, }: {
747
- size?: string;
748
- className?: string;
749
- }): react_jsx_runtime.JSX.Element;
750
- declare function BellAlarmIcon({ size, className, }: {
751
- size?: string;
752
- className?: string;
753
- }): react_jsx_runtime.JSX.Element;
754
- declare function LimitIcon({ size, className, }: {
755
- size?: string;
756
- className?: string;
757
- }): react_jsx_runtime.JSX.Element;
758
- declare function PoopIcon({ size, className, }: {
759
- size?: string;
760
- className?: string;
761
- }): react_jsx_runtime.JSX.Element;
762
- declare function CatSquareIcon({ size, className, }: {
763
- size?: string;
764
- className?: string;
765
- }): react_jsx_runtime.JSX.Element;
766
- declare function FilterAscendingIcon({ size, className, }: {
767
- size?: string;
768
- className?: string;
769
- }): react_jsx_runtime.JSX.Element;
770
- declare function ImageIcon({ size, className, }: {
771
- size?: string;
772
- className?: string;
773
- }): react_jsx_runtime.JSX.Element;
774
- declare function FilterTimelineIcon({ size, className, }: {
775
- size?: string;
776
- className?: string;
777
- }): react_jsx_runtime.JSX.Element;
778
- declare function NewspaperIcon({ className, size, }: {
779
- className?: string;
780
- size?: string;
781
- }): react_jsx_runtime.JSX.Element;
782
- declare function AtomIcon({ className, size, }: {
783
- className?: string;
784
- size?: string;
785
- }): react_jsx_runtime.JSX.Element;
786
- declare function SunriseSmallIcon({ className, size, }: {
787
- className?: string;
788
- size?: string;
789
- }): react_jsx_runtime.JSX.Element;
790
- declare function CoinsOutlinedIcon({ className, size, }: {
791
- className?: string;
792
- size?: string;
793
- }): react_jsx_runtime.JSX.Element;
794
- declare function PhoneIcon({ size, className, }: {
795
- size?: string;
796
- className?: string;
797
- }): react_jsx_runtime.JSX.Element;
798
- declare function LaptopIcon({ size, className, }: {
799
- size?: string;
800
- className?: string;
801
- }): react_jsx_runtime.JSX.Element;
802
- declare function CopyIcon({ size, className, }: {
803
- size?: string;
804
- className?: string;
805
- }): react_jsx_runtime.JSX.Element;
806
- declare function FileDownloadIcon({ size, className, }: {
807
- size?: string;
808
- className?: string;
809
- }): react_jsx_runtime.JSX.Element;
810
- declare function CodeSolidSquareIcon({ size, className, }: {
811
- size?: string;
812
- className?: string;
813
- }): react_jsx_runtime.JSX.Element;
814
- declare function CodeBracketsIcon({ size, className, }: {
815
- size?: string;
816
- className?: string;
817
- }): react_jsx_runtime.JSX.Element;
818
- declare function CommandIcon({ size, className, }: {
819
- size?: string;
820
- className?: string;
821
- }): react_jsx_runtime.JSX.Element;
822
-
823
837
  interface Props extends React.ComponentProps<typeof Player> {
824
838
  }
825
839
  declare const AnimationWrapper: (playerProps: Props) => react_jsx_runtime.JSX.Element;
@@ -1379,6 +1393,25 @@ interface SizeTransitionProps extends ComponentProps<"div"> {
1379
1393
  }
1380
1394
  declare function SizeTransition({ children, className, ...props }: SizeTransitionProps): react_jsx_runtime.JSX.Element;
1381
1395
 
1396
+ interface CollapsibleMenuProps {
1397
+ menuRef: React.MutableRefObject<HTMLDivElement | null>;
1398
+ size: {
1399
+ open: {
1400
+ width: string;
1401
+ height: string;
1402
+ };
1403
+ closed: {
1404
+ width: string;
1405
+ height: string;
1406
+ };
1407
+ };
1408
+ children?: React.ReactNode;
1409
+ isOpen?: boolean;
1410
+ transitionDuration?: React.CSSProperties["transitionDuration"];
1411
+ className?: string;
1412
+ }
1413
+ declare function CollapsibleMenu({ children, menuRef, isOpen, transitionDuration, size, className, }: CollapsibleMenuProps): react_jsx_runtime.JSX.Element;
1414
+
1382
1415
  interface DescriptionBlocksProps extends ComponentProps<"div"> {
1383
1416
  blocks: DescriptionBlock[] | string;
1384
1417
  }
@@ -1508,30 +1541,12 @@ interface NavigationBarProps extends React.ComponentProps<"nav"> {
1508
1541
  onBackButtonClick?: () => void;
1509
1542
  actions?: ActionButton[];
1510
1543
  isLoading?: boolean;
1544
+ subtitle?: string;
1511
1545
  }
1512
- declare function NavigationBar({ title, displayBackButton, logoUrl, transparent, displayButtonShadows, onBackButtonClick, actions, isLoading, ...props }: NavigationBarProps): react_jsx_runtime.JSX.Element;
1546
+ declare function NavigationBar({ title, displayBackButton, logoUrl, transparent, displayButtonShadows, onBackButtonClick, actions, isLoading, subtitle, ...props }: NavigationBarProps): react_jsx_runtime.JSX.Element;
1513
1547
 
1514
1548
  declare function PipeSeparator(props: ComponentProps<"div">): react_jsx_runtime.JSX.Element;
1515
1549
 
1516
- interface CollapsibleMenuProps {
1517
- menuRef: React.MutableRefObject<HTMLDivElement | null>;
1518
- size: {
1519
- open: {
1520
- width: string;
1521
- height: string;
1522
- };
1523
- closed: {
1524
- width: string;
1525
- height: string;
1526
- };
1527
- };
1528
- children?: React.ReactNode;
1529
- isOpen?: boolean;
1530
- transitionDuration?: React.CSSProperties["transitionDuration"];
1531
- className?: string;
1532
- }
1533
- declare function CollapsibleMenu({ children, menuRef, isOpen, transitionDuration, size, className, }: CollapsibleMenuProps): react_jsx_runtime.JSX.Element;
1534
-
1535
1550
  declare function ProductCard({ children }: React.PropsWithChildren): react_jsx_runtime.JSX.Element;
1536
1551
  declare function BorderedContainer({ children, className, }: {
1537
1552
  children: React.ReactNode;
@@ -1613,6 +1628,53 @@ declare const SwapStepsCollapsed: react.ForwardRefExoticComponent<SwapStepsColla
1613
1628
  handleToggleRouteSteps: () => void;
1614
1629
  }>>;
1615
1630
 
1631
+ interface ToastProps {
1632
+ title: string;
1633
+ description: string;
1634
+ headerContent?: React.ReactNode;
1635
+ actionsContent?: React.ReactNode;
1636
+ chipLabel?: string;
1637
+ }
1638
+ declare function Toast({ headerContent, actionsContent, description, chipLabel, title, }: ToastProps): react_jsx_runtime.JSX.Element;
1639
+
1640
+ interface Token$1 {
1641
+ address: string;
1642
+ name: string;
1643
+ symbol: string;
1644
+ image: string;
1645
+ color: string;
1646
+ textColor: string;
1647
+ chainId: string;
1648
+ }
1649
+ interface Chain {
1650
+ name: string;
1651
+ image: string;
1652
+ }
1653
+ type Timeframe = "1H" | "1D" | "1W" | "1Y";
1654
+ interface TokenDetailsViewProps {
1655
+ isOpen: boolean;
1656
+ onClose: () => void;
1657
+ token: Token$1;
1658
+ chain: Chain;
1659
+ tokenPrice: number;
1660
+ priceChange: number;
1661
+ balance: number;
1662
+ balanceUSD: number;
1663
+ volume24h: string;
1664
+ marketCap: string;
1665
+ totalSupply: string;
1666
+ loading: boolean;
1667
+ onLikeToken: () => void;
1668
+ Chart?: React.ComponentType<{
1669
+ timeframe: Timeframe;
1670
+ }>;
1671
+ initialTimeframe?: Timeframe;
1672
+ onTimeframeChange?: (timeframe: Timeframe) => void;
1673
+ onSwapFrom: (token: Pick<Token$1, "address" | "chainId">) => void;
1674
+ onSwapTo: (token: Pick<Token$1, "address" | "chainId">) => void;
1675
+ }
1676
+ declare const TokenDetailsView: ({ isOpen, onClose, token, chain, tokenPrice, priceChange, balance, balanceUSD, volume24h, marketCap, totalSupply, loading, onLikeToken, Chart, initialTimeframe, onTimeframeChange, onSwapFrom, onSwapTo, }: TokenDetailsViewProps) => react_jsx_runtime.JSX.Element;
1677
+
1616
1678
  interface TokenPairProps {
1617
1679
  firstToken?: {
1618
1680
  logoURI: string;
@@ -1860,15 +1922,6 @@ interface FromToProps {
1860
1922
  }
1861
1923
  declare function Transfer({ isLoading, from, to, className }: FromToProps): react_jsx_runtime.JSX.Element;
1862
1924
 
1863
- interface ToastProps {
1864
- title: string;
1865
- description: string;
1866
- headerContent?: React.ReactNode;
1867
- actionsContent?: React.ReactNode;
1868
- chipLabel?: string;
1869
- }
1870
- declare function Toast({ headerContent, actionsContent, description, chipLabel, title, }: ToastProps): react_jsx_runtime.JSX.Element;
1871
-
1872
1925
  /**
1873
1926
  * Utility type to allow for a type to be either all of the properties of another type, or none of them
1874
1927
  * @example
@@ -2409,13 +2462,22 @@ interface BodyTextProps extends React.HTMLAttributes<HTMLSpanElement> {
2409
2462
  size: TextSize;
2410
2463
  bold?: boolean;
2411
2464
  tight?: boolean;
2465
+ loading?: {
2466
+ isLoading?: boolean;
2467
+ width?: string;
2468
+ };
2412
2469
  }
2413
- declare function BodyText({ size, children, bold, tight, ...props }: BodyTextProps): react_jsx_runtime.JSX.Element;
2470
+ declare function BodyText({ size, children, bold, tight, loading, ...props }: BodyTextProps): react_jsx_runtime.JSX.Element;
2414
2471
 
2415
2472
  interface CaptionProps extends React.HTMLAttributes<HTMLSpanElement> {
2473
+ children: ReactNode;
2416
2474
  bold?: boolean;
2475
+ loading?: {
2476
+ isLoading?: boolean;
2477
+ width?: string;
2478
+ };
2417
2479
  }
2418
- declare function CaptionText({ children, bold, ...props }: CaptionProps): react_jsx_runtime.JSX.Element;
2480
+ declare function CaptionText({ children, bold, loading, ...props }: CaptionProps): react_jsx_runtime.JSX.Element;
2419
2481
 
2420
2482
  interface HeadingTextProps {
2421
2483
  children?: ReactNode;
@@ -2426,29 +2488,29 @@ interface HeadingTextProps {
2426
2488
  declare function HeadingText({ children, bold, size, className, }: HeadingTextProps): react_jsx_runtime.JSX.Element;
2427
2489
 
2428
2490
  interface AssetsViewProps {
2429
- chains: {
2491
+ chains: Array<{
2430
2492
  name: string;
2431
2493
  iconUrl: string;
2432
- }[];
2433
- favoriteTokens: {
2494
+ }>;
2495
+ favoriteTokens: Array<{
2434
2496
  symbol: string;
2435
2497
  name: string;
2436
2498
  iconUrl: string;
2437
2499
  chainIconUrl: string;
2438
- }[];
2439
- popularTokens: {
2500
+ }>;
2501
+ popularTokens: Array<{
2440
2502
  symbol: string;
2441
2503
  name: string;
2442
2504
  iconUrl: string;
2443
2505
  chainIconUrl: string;
2444
- }[];
2445
- userTokens: {
2506
+ }>;
2507
+ userTokens: Array<{
2446
2508
  symbol: string;
2447
2509
  name: string;
2448
2510
  iconUrl: string;
2449
2511
  chainIconUrl: string;
2450
2512
  balance: string;
2451
- }[];
2513
+ }>;
2452
2514
  }
2453
2515
  declare function AssetsView({ chains, favoriteTokens, popularTokens, userTokens, }: AssetsViewProps): react_jsx_runtime.JSX.Element;
2454
2516
  declare const List: ({ children }: react__default.PropsWithChildren) => react_jsx_runtime.JSX.Element;
@@ -2798,8 +2860,9 @@ declare function hexToRgb(hex: string): {
2798
2860
  a: number;
2799
2861
  } | null;
2800
2862
  declare function rgbToHex(r: number, g: number, b: number): string;
2801
- declare function blendColors(foreground: string, background: string): string | null;
2863
+ declare function blendColors(foreground: string, background: string, factor?: number): string | null;
2802
2864
  declare const isValidHexColor: (hex: string) => boolean;
2865
+ declare const getColorBrightness: (color: string) => number;
2803
2866
 
2804
2867
  declare const transactionPendingAnimation: {
2805
2868
  v: string;
@@ -16772,4 +16835,4 @@ declare const transactionRejectedAnimation: {
16772
16835
  markers: never[];
16773
16836
  };
16774
16837
 
16775
- export { type ActionButton, ActionLayout, ActionLineOutRow, ActionProperties, ActionRow, type ActionStatus, ActionStatusRow, ActionWrapper, AddressButton, type AllOrNone, AnimationWrapper, AppContainer, Approve, ApproveAction, ArrowBottomTopIcon, ArrowButton, ArrowCornerDownRightIcon, ArrowDownIcon, ArrowLeftIcon, ArrowOutOfBoxIcon, ArrowRightDownCircleIcon, ArrowRightDownIcon, ArrowRightIcon, ArrowRightUpCircleIcon, ArrowRightUpIcon, ArrowRotate, ArrowSplit, ArrowTriangle, ArrowUpIcon, ArrowWallDownIcon, ArrowsSwapIcon, AssetsButton, type AssetsButtonVariant, AssetsView, AtomIcon, BackpackIcon, BadgeImage, BankIcon, type BaseActionProps, type BaseTransactionViewProps, BellAlarmIcon, BlockSkeleton, BodyText, Boost, BoostBadge, BoostButton, BorderedContainer, Breadcrumb, BridgeAction, BridgeHeader, BridgeProperties, BridgeTransactionView, BrokenHeartIcon, BubblesIcon, Button, type ButtonSize, type ButtonVariant, BuyNFTHeader, BuyNFTProperties, BuyNFTTransactionView, CSS_VARS, Calendar, CaptionText, CatSquareIcon, ChainLink, Checkmark1Icon, Checkmark2Icon, ChevronArrowIcon, ChevronDownSmallIcon, ChevronGrabberVerticalIcon, ChevronLargeDownIcon, ChevronLargeRightIcon, ChevronRightSmallIcon, ChevronTopIcon, ChevronTopSmallIcon, Chip, type ChipProps, CircleMinusIcon, CirclePlusIcon, CircleX, CircleXFilledIcon, ClockOutlineIcon, ClockSolidIcon, CodeBracketsIcon, CodeSolidSquareIcon, CoinsAddIcon, CoinsIcon, CoinsOutlinedIcon, Collapse, CollapsibleMenu, CollectionIcon, ColorPaletteIcon, CommandIcon, CompassRoundOutlinedIcon, CompassRoundSolidIcon, ConsoleIcon, Copy, CopyIcon, CrossAnimatedIcon, CrossedOutSunSolidIcon, DashboardFast, type DeepPartial, type DescriptionBlock, DescriptionBlocks, DetailsToolbar, DiscordIcon, DockIconAnalytics, DockIconCheckout, DockIconHelp, DockIconProfile, DockIconScan, DockIconSwap, DockSwapIcon, DollarOutlinedIcon, DollarSolidIcon, DotGrid1x3HorizontalIcon, DropdownMenu, DropdownMenuItem, type DropdownMenuItemProps, DropdownMenuTitle, type DropdownPosition, type DropdownStyles, EmojiMeh, EmojiSadIcon, EmptyHeartIcon, ErrorMessage, EthereumIcon, ExplosionIcon, EyeOpenIcon, FeeButton, FeesAction, type FeesActionProps, FeesLines, FeesTotal, FileDownloadIcon, FilledHeartIcon, FilterAscendingIcon, FilterButton, FilterIcon, FilterTimelineIcon, GasIcon, GhostIcon, GithubIcon, HashLink, HeadingText, HeartSmallIcon, HelpIcon, HistoryItem, type HistoryItemStatus, HomeIcon, IconButton, IconLabel, Image, ImageIcon, ImageSparkle, IncompleteAction, InfinityIcon, InfoBox, Inline, Input, InteractionHeader, InteractionProperties, InteractionTransactionView, Join, LaptopIcon, LightningIcon, LimitIcon, LinkIcon, List, ListItem, ListItemActionsButton, Loader, LoadingProvider, LoadingSkeleton, MEDIA_QUERIES, MainView, MaxIcon, Menu, MenuItem, MenuSwapIcon, MirrorIcon, Modal, ModalContent, ModalContentDivider, MoonIcon, NavigationBar, NewspaperIcon, NotAllowedIcon, NumericInput, PathSquareIcon, PercentIcon, PhoneIcon, PieChartIcon, PipeSeparator, PlusIcon, PoopIcon, PowerIcon, ProductCard, ProfileHeader, ProfileHeaderBackground, PropertiesLayout, PropertyListItem, type PropertyListItemProps, type PublicTheme, PunkIcon, RangeInput, ReceiptBillIcon, ReceiveNFTAction, ReceiveTokensAction, RecipientView, RefreshIcon, ReorderIcon, RouteStep, STEP_ITEM_HEIGHT, SearchIcon, SectionTitle, SendTokensAction, type Settings, SettingsButton, type SettingsButtonProps, type SettingsControl, SettingsGearIcon, SettingsItem, type SettingsItemProps, SettingsSlider, SettingsSliderIcon, type SettingsSliderProps, ShoppingBagIcon, SizeTransition, SmileIcon, SnapIcon, SortIcon, SparkleIcon, SparklesIcon, SquareArrowCenter, SquareArrowTopLeftIcon, SquareArrowTopRight2Icon, SquidLogo, StakeAction, StartAction, StocksIcon, SuccessAction, SunIcon, SunOutlinedIcon, SunriseIcon, SunriseSmallIcon, SwapAction, SwapConfiguration, SwapDetailsView, SwapErrorIcon, SwapHeader, type SwapHeaderProps, SwapIcon, SwapInputsIcon, SwapProgressView, SwapProgressViewHeader, SwapProperties, type SwapPropertiesProps, SwapState, type SwapStep, SwapStepItem, SwapStepSeparator, SwapStepsCollapsed, type SwapStepsCollapsedFooterButton, SwapSuccessIcon, SwapTransactionView, SwapWarningIcon, Switch, type SwitchProps, TagIcon, TagIconFilled, TextSkeleton, type Theme, ThemePreference, ThemeProvider, type ThemeType, ThumbsUp, Tick, TimeFliesIcon, Timeline, Timestamp, Toast, TokenPair, Tooltip, type TooltipProps, type TooltipThreshold, type TooltipWidth, TradingViewStepsIcon, TransactionAction, type TransactionActionProps, type TransactionActionType, TransactionFilters, TransactionHeader, TransactionHeaderLayout, type TransactionHeaderProps, type TransactionHeaderType, TransactionItem, TransactionProperties, type TransactionPropertiesProps, type TransactionPropertiesType, TransactionSearch, TransactionState, TransactionView, TransactionViewLayout, type TransactionViewProps, type TransactionViewType, Transfer, TranslateIcon, TriangleExclamation, UsdAmount, WalletFilledIcon, WalletIcon, WalletLink, WalletsView, WrapAction, XSocial, baseTailwindConfig, blendColors, cn, darkTheme, getContrastColor, getHexColorFromOpacityPercentage, hexToRgb, isValidHexColor, lightTheme, linkActionTimelineProps, parseSquidTheme, pxToRem, remToPx, rgbToHex, spacing, statusTextClassMap, transactionErrorPauseAnimation, transactionFailureAnimation, transactionHalfSuccessAnimation, transactionPendingAnimation, transactionProcessingAnimation, transactionRejectedAnimation, transactionSuccessAnimation, useCollapsibleMenu, useDropdownMenu, useMediaQuery, useOnResize, useRect, useTimer, useUserTheme, useVersion };
16838
+ export { type ActionButton, ActionLayout, ActionLineOutRow, ActionProperties, ActionRow, type ActionStatus, ActionStatusRow, ActionWrapper, AddressButton, type AllOrNone, AnimationWrapper, AppContainer, Approve, ApproveAction, ArrowBottomTopIcon, ArrowButton, ArrowCornerDownRightIcon, ArrowDownIcon, ArrowLeftIcon, ArrowOutOfBoxIcon, ArrowRightDownCircleIcon, ArrowRightDownIcon, ArrowRightIcon, ArrowRightUpCircleIcon, ArrowRightUpIcon, ArrowRotate, ArrowSplit, ArrowTriangle, ArrowUpIcon, ArrowWallDownIcon, ArrowsSwapIcon, AssetsButton, type AssetsButtonVariant, AssetsView, AtomIcon, BackpackIcon, BadgeImage, BankIcon, type BaseActionProps, type BaseTransactionViewProps, BellAlarmIcon, BlockSkeleton, BodyText, Boost, BoostBadge, BoostButton, BorderedContainer, Breadcrumb, BridgeAction, BridgeHeader, BridgeProperties, BridgeTransactionView, BrokenHeartIcon, BubblesIcon, Button, type ButtonSize, type ButtonVariant, BuyNFTHeader, BuyNFTProperties, BuyNFTTransactionView, CSS_VARS, Calendar, CaptionText, CatSquareIcon, ChainLink, Checkmark1Icon, Checkmark2Icon, ChevronArrowIcon, ChevronDownSmallIcon, ChevronGrabberVerticalIcon, ChevronLargeDownIcon, ChevronLargeRightIcon, ChevronRightSmallIcon, ChevronTopIcon, ChevronTopSmallIcon, Chip, type ChipProps, CircleMinusIcon, CirclePlusIcon, CircleX, CircleXFilledIcon, ClockOutlineIcon, ClockSolidIcon, CodeBracketsIcon, CodeSolidSquareIcon, CoinsAddIcon, CoinsIcon, CoinsOutlinedIcon, Collapse, CollapsibleMenu, CollectionIcon, ColorPaletteIcon, CommandIcon, CompassRoundOutlinedIcon, CompassRoundSolidIcon, ConsoleIcon, Copy, CopyIcon, CrossAnimatedIcon, CrossedOutSunSolidIcon, DashboardFast, type DeepPartial, type DescriptionBlock, DescriptionBlocks, DetailsToolbar, DiscordIcon, DockIconAnalytics, DockIconCheckout, DockIconHelp, DockIconProfile, DockIconScan, DockIconSwap, DockSwapIcon, DollarOutlinedIcon, DollarSolidIcon, DotGrid1x3HorizontalIcon, DropdownMenu, DropdownMenuItem, type DropdownMenuItemProps, DropdownMenuTitle, type DropdownPosition, type DropdownStyles, EmojiMeh, EmojiSadIcon, EmptyHeartIcon, ErrorMessage, EthereumIcon, ExplosionIcon, EyeOpenIcon, FavouriteFilterIcon, FeeButton, FeesAction, type FeesActionProps, FeesLines, FeesTotal, FileDownloadIcon, FilledHeartIcon, FilterAscendingIcon, FilterButton, FilterIcon, FilterTimelineIcon, GasIcon, GhostIcon, GithubIcon, HashLink, HeadingText, HeartSmallIcon, HelpIcon, HighestPriceRangeIcon, HistoryItem, type HistoryItemStatus, HomeIcon, IconButton, IconLabel, Image, ImageIcon, ImageSparkle, IncompleteAction, InfinityIcon, InfoBox, Inline, Input, InteractionHeader, InteractionProperties, InteractionTransactionView, Join, LaptopIcon, LightningIcon, LimitIcon, LinkIcon, List, ListItem, ListItemActionsButton, Loader, LoadingProvider, LoadingSkeleton, MEDIA_QUERIES, MainView, MarketCapIcon, MaxIcon, Menu, MenuItem, MenuSwapIcon, MirrorIcon, Modal, ModalContent, ModalContentDivider, MoonIcon, NavigationBar, NewspaperIcon, NotAllowedIcon, NumericInput, PathSquareIcon, PercentIcon, PhoneIcon, PieChartIcon, PipeSeparator, PlusIcon, PoopIcon, PowerIcon, ProductCard, ProfileHeader, ProfileHeaderBackground, PropertiesLayout, PropertyListItem, type PropertyListItemProps, type PublicTheme, PunkIcon, RangeInput, ReceiptBillIcon, ReceiveNFTAction, ReceiveTokensAction, RecipientView, RefreshIcon, ReorderIcon, RouteStep, STEP_ITEM_HEIGHT, SearchIcon, SectionTitle, SendTokensAction, type Settings, SettingsButton, type SettingsButtonProps, type SettingsControl, SettingsGearIcon, SettingsItem, type SettingsItemProps, SettingsSlider, SettingsSliderIcon, type SettingsSliderProps, ShoppingBagIcon, SizeTransition, SmileIcon, SnapIcon, SortIcon, SparkleIcon, SparklesIcon, SquareArrowCenter, SquareArrowTopLeftIcon, SquareArrowTopRight2Icon, SquidLogo, StakeAction, StartAction, StocksIcon, SuccessAction, SunIcon, SunOutlinedIcon, SunriseIcon, SunriseSmallIcon, SwapAction, SwapConfiguration, SwapDetailsView, SwapErrorIcon, SwapHeader, type SwapHeaderProps, SwapIcon, SwapInputsIcon, SwapProgressView, SwapProgressViewHeader, SwapProperties, type SwapPropertiesProps, SwapState, type SwapStep, SwapStepItem, SwapStepSeparator, SwapStepsCollapsed, type SwapStepsCollapsedFooterButton, SwapSuccessIcon, SwapTransactionView, SwapWarningIcon, Switch, type SwitchProps, TagIcon, TagIconFilled, TextSkeleton, type Theme, ThemePreference, ThemeProvider, type ThemeType, ThumbsUp, Tick, TimeFliesIcon, type Timeframe, Timeline, Timestamp, Toast, TokenDetailsView, TokenPair, Tooltip, type TooltipProps, type TooltipThreshold, type TooltipWidth, TradingViewStepsIcon, TransactionAction, type TransactionActionProps, type TransactionActionType, TransactionFilters, TransactionHeader, TransactionHeaderLayout, type TransactionHeaderProps, type TransactionHeaderType, TransactionItem, TransactionProperties, type TransactionPropertiesProps, type TransactionPropertiesType, TransactionSearch, TransactionState, TransactionView, TransactionViewLayout, type TransactionViewProps, type TransactionViewType, Transfer, TranslateIcon, TriangleExclamation, UsdAmount, WalletFilledIcon, WalletIcon, WalletLink, WalletsView, WrapAction, XSocial, baseTailwindConfig, blendColors, cn, darkTheme, getColorBrightness, getContrastColor, getHexColorFromOpacityPercentage, hexToRgb, isValidHexColor, lightTheme, linkActionTimelineProps, parseSquidTheme, pxToRem, remToPx, rgbToHex, spacing, statusTextClassMap, transactionErrorPauseAnimation, transactionFailureAnimation, transactionHalfSuccessAnimation, transactionPendingAnimation, transactionProcessingAnimation, transactionRejectedAnimation, transactionSuccessAnimation, useCollapsibleMenu, useDropdownMenu, useMediaQuery, useOnResize, useRect, useTimer, useUserTheme, useVersion };
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": "2.2.3",
8
+ "version": "2.2.5",
9
9
  "author": "",
10
10
  "license": "MIT",
11
11
  "resolutions": {