@0xsquid/ui 0.23.2 → 0.24.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.
Files changed (59) hide show
  1. package/dist/cjs/index.js +603 -119
  2. package/dist/cjs/types/components/badges/TransactionState.d.ts +0 -5
  3. package/dist/cjs/types/components/buttons/IconButton.d.ts +6 -0
  4. package/dist/cjs/types/components/icons/Bag.d.ts +5 -1
  5. package/dist/cjs/types/components/icons/Coins.d.ts +4 -0
  6. package/dist/cjs/types/components/icons/CompassRound.d.ts +12 -0
  7. package/dist/cjs/types/components/icons/CrossAnimatedIcon.d.ts +7 -0
  8. package/dist/cjs/types/components/icons/DockIcons.d.ts +10 -0
  9. package/dist/cjs/types/components/icons/EmojiSad.d.ts +4 -0
  10. package/dist/cjs/types/components/icons/HomeIcon.d.ts +16 -0
  11. package/dist/cjs/types/components/icons/Social.d.ts +12 -0
  12. package/dist/cjs/types/components/icons/SquidLogo.d.ts +4 -1
  13. package/dist/cjs/types/components/icons/SwapInputs.d.ts +4 -0
  14. package/dist/cjs/types/components/icons/Weather.d.ts +12 -0
  15. package/dist/cjs/types/components/icons/index.d.ts +3 -0
  16. package/dist/cjs/types/components/layout/CollapsibleMenu.d.ts +20 -0
  17. package/dist/cjs/types/components/layout/index.d.ts +1 -0
  18. package/dist/cjs/types/components/lists/TransactionItem.d.ts +8 -5
  19. package/dist/cjs/types/core/constants.d.ts +4 -0
  20. package/dist/cjs/types/core/design-system.d.ts +2 -0
  21. package/dist/cjs/types/core/index.d.ts +3 -1
  22. package/dist/cjs/types/hooks/index.d.ts +4 -0
  23. package/dist/cjs/types/hooks/useCollapsibleMenu.d.ts +6 -0
  24. package/dist/cjs/types/stories/badges/TransactionState.stories.d.ts +5 -0
  25. package/dist/cjs/types/stories/buttons/IconButon.stories.d.ts +7 -0
  26. package/dist/cjs/types/stories/lists/TransactionItem.stories.d.ts +5 -0
  27. package/dist/cjs/types/types/components.d.ts +1 -1
  28. package/dist/cjs/types/types/config.d.ts +6 -24
  29. package/dist/esm/index.js +570 -117
  30. package/dist/esm/types/components/badges/TransactionState.d.ts +0 -5
  31. package/dist/esm/types/components/buttons/IconButton.d.ts +6 -0
  32. package/dist/esm/types/components/icons/Bag.d.ts +5 -1
  33. package/dist/esm/types/components/icons/Coins.d.ts +4 -0
  34. package/dist/esm/types/components/icons/CompassRound.d.ts +12 -0
  35. package/dist/esm/types/components/icons/CrossAnimatedIcon.d.ts +7 -0
  36. package/dist/esm/types/components/icons/DockIcons.d.ts +10 -0
  37. package/dist/esm/types/components/icons/EmojiSad.d.ts +4 -0
  38. package/dist/esm/types/components/icons/HomeIcon.d.ts +16 -0
  39. package/dist/esm/types/components/icons/Social.d.ts +12 -0
  40. package/dist/esm/types/components/icons/SquidLogo.d.ts +4 -1
  41. package/dist/esm/types/components/icons/SwapInputs.d.ts +4 -0
  42. package/dist/esm/types/components/icons/Weather.d.ts +12 -0
  43. package/dist/esm/types/components/icons/index.d.ts +3 -0
  44. package/dist/esm/types/components/layout/CollapsibleMenu.d.ts +20 -0
  45. package/dist/esm/types/components/layout/index.d.ts +1 -0
  46. package/dist/esm/types/components/lists/TransactionItem.d.ts +8 -5
  47. package/dist/esm/types/core/constants.d.ts +4 -0
  48. package/dist/esm/types/core/design-system.d.ts +2 -0
  49. package/dist/esm/types/core/index.d.ts +3 -1
  50. package/dist/esm/types/hooks/index.d.ts +4 -0
  51. package/dist/esm/types/hooks/useCollapsibleMenu.d.ts +6 -0
  52. package/dist/esm/types/stories/badges/TransactionState.stories.d.ts +5 -0
  53. package/dist/esm/types/stories/buttons/IconButon.stories.d.ts +7 -0
  54. package/dist/esm/types/stories/lists/TransactionItem.stories.d.ts +5 -0
  55. package/dist/esm/types/types/components.d.ts +1 -1
  56. package/dist/esm/types/types/config.d.ts +6 -24
  57. package/dist/index.css +1 -1
  58. package/dist/index.d.ts +177 -14
  59. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -4,6 +4,8 @@ import * as react from 'react';
4
4
  import react__default, { ReactNode, ComponentProps } from 'react';
5
5
  import * as framer_motion from 'framer-motion';
6
6
  import { motion } from 'framer-motion';
7
+ import { Config } from 'tailwindcss';
8
+ import { ClassValue } from 'clsx';
7
9
 
8
10
  interface BadgeImageProps {
9
11
  imageUrl?: string;
@@ -52,7 +54,7 @@ declare enum SwapState {
52
54
  }
53
55
  type ThemeType = 'light' | 'dark';
54
56
  type ActionStatus = 'pending' | 'waiting' | 'ongoing' | 'executed' | 'success' | 'error' | 'warning';
55
- type TransactionStateVariant = 'full' | 'compact';
57
+ type TransactionStateVariant = 'full' | 'compact' | 'small';
56
58
  type TokenPairVariant = 'horizontal' | 'vertical';
57
59
  type TokenPairSize = 'small' | 'medium';
58
60
  type ImageIconVariant = 'square' | 'round' | 'proportional';
@@ -97,12 +99,7 @@ interface LoadingBlockProps extends ComponentProps<'div'> {
97
99
  }
98
100
  declare function BlockSkeleton({ isLoading, className, children, ...props }: LoadingBlockProps): string | number | boolean | Iterable<react.ReactNode> | react_jsx_runtime.JSX.Element | null | undefined;
99
101
 
100
- declare const statusBgClassMap: Record<ActionStatus, string>;
101
102
  declare const statusTextClassMap: Record<ActionStatus, string>;
102
- declare const statusColorClassMap: {
103
- bg: Record<ActionStatus, string>;
104
- text: Record<ActionStatus, string>;
105
- };
106
103
  interface TransactionStateProps extends React.HTMLAttributes<HTMLDivElement> {
107
104
  status: ActionStatus;
108
105
  variant?: TransactionStateVariant;
@@ -370,7 +367,11 @@ declare function PunkIcon({ size }: {
370
367
  size?: string;
371
368
  }): react_jsx_runtime.JSX.Element;
372
369
 
373
- declare function BagIcon(): react_jsx_runtime.JSX.Element;
370
+ declare function ShoppingBagIcon(): react_jsx_runtime.JSX.Element;
371
+ declare function BackpackIcon({ size, className, }: {
372
+ size?: string;
373
+ className?: string;
374
+ }): react_jsx_runtime.JSX.Element;
374
375
 
375
376
  declare function BankIcon(): react_jsx_runtime.JSX.Element;
376
377
 
@@ -420,6 +421,10 @@ declare function Dollar({ className, size, }: {
420
421
  className?: string;
421
422
  size?: string;
422
423
  }): react_jsx_runtime.JSX.Element;
424
+ declare function StocksIcon({ size, className, }: {
425
+ size?: string;
426
+ className?: string;
427
+ }): react_jsx_runtime.JSX.Element;
423
428
 
424
429
  declare function CollectionIcon(): react_jsx_runtime.JSX.Element;
425
430
 
@@ -439,6 +444,18 @@ declare function CirclePlusIcon({ size, className, }: {
439
444
  size?: string;
440
445
  className?: string;
441
446
  }): react_jsx_runtime.JSX.Element;
447
+ declare function CircleXFilledIcon({ size, className, }: {
448
+ size?: string;
449
+ className?: string;
450
+ }): react_jsx_runtime.JSX.Element;
451
+ declare function TranslateIcon({ size, className, }: {
452
+ size?: string;
453
+ className?: string;
454
+ }): react_jsx_runtime.JSX.Element;
455
+ declare function PowerIcon({ size, className, }: {
456
+ size?: string;
457
+ className?: string;
458
+ }): react_jsx_runtime.JSX.Element;
442
459
 
443
460
  declare function Copy({ size, strokeWidth, ...props }: {
444
461
  size?: string;
@@ -463,6 +480,10 @@ declare function EmojiMeh({ className, size, }: {
463
480
  className?: string;
464
481
  size?: string;
465
482
  }): react_jsx_runtime.JSX.Element;
483
+ declare function SmileIcon({ size, className, }: {
484
+ size?: string;
485
+ className?: string;
486
+ }): react_jsx_runtime.JSX.Element;
466
487
 
467
488
  declare function EthereumIcon(): react_jsx_runtime.JSX.Element;
468
489
 
@@ -499,6 +520,22 @@ declare function SnapIcon({ size, className, }: {
499
520
  declare function HomeIcon({ className }: {
500
521
  className?: string;
501
522
  }): react_jsx_runtime.JSX.Element;
523
+ declare function MenuSwapIcon({ size, className, }: {
524
+ size?: string;
525
+ className?: string;
526
+ }): react_jsx_runtime.JSX.Element;
527
+ declare function ColorPaletteIcon({ size, className, }: {
528
+ size?: string;
529
+ className?: string;
530
+ }): react_jsx_runtime.JSX.Element;
531
+ declare function ConsoleIcon({ size, className, }: {
532
+ size?: string;
533
+ className?: string;
534
+ }): react_jsx_runtime.JSX.Element;
535
+ declare function BubblesIcon({ size, className, }: {
536
+ size?: string;
537
+ className?: string;
538
+ }): react_jsx_runtime.JSX.Element;
502
539
 
503
540
  declare function ImageSparkle(): react_jsx_runtime.JSX.Element;
504
541
 
@@ -546,6 +583,18 @@ declare function XSocial({ className, size, }: {
546
583
  size?: string;
547
584
  className?: string;
548
585
  }): react_jsx_runtime.JSX.Element;
586
+ declare function GithubIcon({ size, className, }: {
587
+ size?: string;
588
+ className?: string;
589
+ }): react_jsx_runtime.JSX.Element;
590
+ declare function DiscordIcon({ size, className, }: {
591
+ size?: string;
592
+ className?: string;
593
+ }): react_jsx_runtime.JSX.Element;
594
+ declare function MirrorIcon({ size, className, }: {
595
+ size?: string;
596
+ className?: string;
597
+ }): react_jsx_runtime.JSX.Element;
549
598
 
550
599
  declare function SortIcon(): react_jsx_runtime.JSX.Element;
551
600
 
@@ -556,9 +605,16 @@ declare function SquareArrowCenter(): react_jsx_runtime.JSX.Element;
556
605
 
557
606
  declare function DockSwapIcon(): react_jsx_runtime.JSX.Element;
558
607
 
559
- declare function SquidLogo(): react_jsx_runtime.JSX.Element;
608
+ declare function SquidLogo({ size, className, }: {
609
+ size?: string;
610
+ className?: string;
611
+ }): react_jsx_runtime.JSX.Element;
560
612
 
561
613
  declare function SwapInputsIcon(): react_jsx_runtime.JSX.Element;
614
+ declare function SwapIcon({ size, className, }: {
615
+ size?: string;
616
+ className?: string;
617
+ }): react_jsx_runtime.JSX.Element;
562
618
 
563
619
  declare function SwapSuccessIcon(): react_jsx_runtime.JSX.Element;
564
620
  declare function SwapErrorIcon(): react_jsx_runtime.JSX.Element;
@@ -604,6 +660,36 @@ declare function WalletFilledIcon({ size }: {
604
660
  size?: string;
605
661
  }): react_jsx_runtime.JSX.Element;
606
662
 
663
+ declare function CrossAnimatedIcon({ size, isOpen, transitionDuration, className, }: {
664
+ size?: number;
665
+ isOpen?: boolean;
666
+ transitionDuration?: React.CSSProperties['transitionDuration'];
667
+ className?: string;
668
+ }): react_jsx_runtime.JSX.Element;
669
+
670
+ declare function SunriseIcon({ size, className, }: {
671
+ size?: string;
672
+ className?: string;
673
+ }): react_jsx_runtime.JSX.Element;
674
+ declare function SunIcon({ size, className, }: {
675
+ size?: string;
676
+ className?: string;
677
+ }): react_jsx_runtime.JSX.Element;
678
+ declare function MoonIcon({ size, className, }: {
679
+ size?: string;
680
+ className?: string;
681
+ }): react_jsx_runtime.JSX.Element;
682
+
683
+ interface DockIconProps {
684
+ isSelected?: boolean;
685
+ }
686
+ declare function DockIconSwap({ isSelected }: DockIconProps): react_jsx_runtime.JSX.Element;
687
+ declare function DockIconCheckout({ isSelected }: DockIconProps): react_jsx_runtime.JSX.Element;
688
+ declare function DockIconScan({ isSelected }: DockIconProps): react_jsx_runtime.JSX.Element;
689
+ declare function DockIconAnalytics({ isSelected }: DockIconProps): react_jsx_runtime.JSX.Element;
690
+ declare function DockIconProfile({ isSelected }: DockIconProps): react_jsx_runtime.JSX.Element;
691
+ declare function DockIconHelp({ isSelected }: DockIconProps): react_jsx_runtime.JSX.Element;
692
+
607
693
  interface Props {
608
694
  lottieJsonFile: object;
609
695
  animReplacement?: JSX.Element;
@@ -1612,15 +1698,17 @@ declare function TransactionAction({ type, props }: TransactionActionProps): rea
1612
1698
 
1613
1699
  declare function linkActionTimelineProps(actions: TransactionActionProps[], collapsed: boolean): TransactionActionProps[];
1614
1700
 
1701
+ type TransactionItemVariant = 'compact' | 'full';
1702
+ type TransactionItemType = {
1703
+ icon?: ReactNode;
1704
+ name: string;
1705
+ };
1615
1706
  interface TransactionItemProps {
1616
1707
  className?: string;
1617
1708
  isLoading?: boolean;
1618
1709
  status?: ActionStatus;
1619
1710
  image?: ReactNode;
1620
- type?: {
1621
- icon?: ReactNode;
1622
- name: string;
1623
- };
1711
+ type?: TransactionItemType;
1624
1712
  hash?: string;
1625
1713
  fromChain?: {
1626
1714
  logoURI: string;
@@ -1633,8 +1721,9 @@ interface TransactionItemProps {
1633
1721
  fromAmount?: string;
1634
1722
  toAmount?: string;
1635
1723
  timestamp?: number;
1724
+ variant?: TransactionItemVariant;
1636
1725
  }
1637
- declare function TransactionItem({ className, isLoading, status, image, type, hash, fromChain, toChain, fromAmount, toAmount, timestamp, }: TransactionItemProps): react_jsx_runtime.JSX.Element;
1726
+ declare function TransactionItem({ className, isLoading, status, image, type, hash, fromChain, toChain, fromAmount, toAmount, timestamp, variant, }: TransactionItemProps): react_jsx_runtime.JSX.Element;
1638
1727
 
1639
1728
  interface DropdownMenuProps {
1640
1729
  dropdownRef?: React.RefObject<HTMLDivElement>;
@@ -1727,6 +1816,25 @@ declare function NavigationBar({ title, displayBackButton, logoUrl, transparent,
1727
1816
 
1728
1817
  declare function PipeSeparator({ className, ...props }: ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
1729
1818
 
1819
+ interface CollapsibleMenuProps {
1820
+ menuRef: React.MutableRefObject<HTMLDivElement | null>;
1821
+ size: {
1822
+ open: {
1823
+ width: string;
1824
+ height: string;
1825
+ };
1826
+ closed: {
1827
+ width: string;
1828
+ height: string;
1829
+ };
1830
+ };
1831
+ children?: React.ReactNode;
1832
+ isOpen?: boolean;
1833
+ transitionDuration?: React.CSSProperties['transitionDuration'];
1834
+ className?: string;
1835
+ }
1836
+ declare function CollapsibleMenu({ children, menuRef, isOpen, transitionDuration, size, className, }: CollapsibleMenuProps): react_jsx_runtime.JSX.Element;
1837
+
1730
1838
  declare function ProductCard({ children }: React.PropsWithChildren): react_jsx_runtime.JSX.Element;
1731
1839
  declare function BorderedContainer({ children, className, }: {
1732
1840
  children: React.ReactNode;
@@ -2298,11 +2406,14 @@ type SquidTheme = {
2298
2406
  'content-700': string;
2299
2407
  'content-800': string;
2300
2408
  'content-900': string;
2409
+ 'accent-300': string;
2301
2410
  'accent-400': string;
2302
2411
  'accent-500': string;
2412
+ 'accent-700': string;
2303
2413
  'status-positive': string;
2304
2414
  'status-negative': string;
2305
2415
  'status-warning': string;
2416
+ 'highlight-700': string;
2306
2417
  };
2307
2418
 
2308
2419
  declare function SquidConfigProvider({ theme, children, themeType, }: {
@@ -2347,6 +2458,46 @@ type UseMediaQueryOptions = {
2347
2458
  */
2348
2459
  declare function useMediaQuery(query: string, { defaultValue, initializeWithValue, }?: UseMediaQueryOptions): boolean;
2349
2460
 
2461
+ declare function useCollapsibleMenu(): {
2462
+ isMenuOpen: boolean;
2463
+ toggleMenu: () => void;
2464
+ menuRef: react.RefObject<HTMLDivElement>;
2465
+ };
2466
+
2467
+ declare function useOnResize(ref: React.RefObject<HTMLElement>, callback: (rect: DOMRectReadOnly) => void): void;
2468
+ declare function useRect(ref: React.RefObject<HTMLElement>): DOMRectReadOnly;
2469
+
2470
+ declare function useVersion<T>(value: T, equal?: (a: T, b: T) => boolean): number;
2471
+
2472
+ declare const useTimer: ({ immediateStart, }: {
2473
+ immediateStart?: boolean;
2474
+ }) => {
2475
+ timer: string;
2476
+ stopTimer: () => void;
2477
+ startTimer: () => void;
2478
+ };
2479
+
2480
+ declare const CSS_VARS: {
2481
+ MOVE_WITH_SPRING_BOUNCE_DURATION: string;
2482
+ DISPLAY_DELAYED_DURATION: string;
2483
+ COLLAPSE_ROUTE_DURATION: string;
2484
+ EXPAND_ROUTE_DURATION: string;
2485
+ FADE_IN_DURATION: string;
2486
+ FADE_OUT_DURATION: string;
2487
+ SCALE_AND_FADE_UP_DURATION: string;
2488
+ SCALE_AND_FADE_DOWN_DURATION: string;
2489
+ TRANSLATE_TOP_OR_BOTTOM: string;
2490
+ SHOW_MODAL_DURATION: string;
2491
+ HIDE_MODAL_DURATION: string;
2492
+ SLIDE_TO_TOP_DURATION: string;
2493
+ SLIDE_TO_BOTTOM_DURATION: string;
2494
+ BLUR_IN_DURATION: string;
2495
+ BLUR_OUT_DURATION: string;
2496
+ COLLAPSIBLE_MENU_OPEN_WIDTH: string;
2497
+ COLLAPSIBLE_MENU_OPEN_HEIGHT: string;
2498
+ COLLAPSIBLE_MENU_CLOSED_WIDTH: string;
2499
+ COLLAPSIBLE_MENU_CLOSED_HEIGHT: string;
2500
+ };
2350
2501
  type MediaQuery = 'MOBILE_LG' | 'MOBILE_SM_HEIGHT' | 'MOBILE_XS' | 'MOBILE_XS_HEIGHT';
2351
2502
  declare const MEDIA_QUERIES: Record<MediaQuery, {
2352
2503
  media: string;
@@ -2357,4 +2508,16 @@ declare const MEDIA_QUERIES: Record<MediaQuery, {
2357
2508
  declare const lightTheme: SquidTheme;
2358
2509
  declare const darkTheme: SquidTheme;
2359
2510
 
2360
- export { type ActionButton, ActionLayout, ActionLineOutRow, ActionProperties, ActionRow, type ActionStatus, ActionStatusRow, ActionWrapper, AddressButton, AnimationWrapper, AppContainer, Approve, ApproveAction, ArrowBottomTopIcon, ArrowButton, ArrowCornerDownRightIcon, ArrowLeftIcon, ArrowOutOfBoxIcon, ArrowRightDownCircleIcon, ArrowRightDownIcon, ArrowRightIcon, ArrowRightUpCircleIcon, ArrowRightUpIcon, ArrowRotate, ArrowTriangle, ArrowUpIcon, ArrowWallDownIcon, ArrowsSwapIcon, AssetsButton, type AssetsButtonVariant, AssetsView, BadgeImage, BagIcon, BankIcon, type BaseActionProps, type BaseTransactionViewProps, BlockSkeleton, BodyText, Boost, BoostBadge, BoostButton, BorderedContainer, Breadcrumb, BridgeAction, BridgeHeader, BridgeProperties, BridgeTransactionView, BrokenHeartIcon, Button, BuyNFTHeader, BuyNFTProperties, BuyNFTTransactionView, Calendar, CaptionText, ChainLink, Checkmark1Icon, Checkmark2Icon, ChevronArrowIcon, ChevronGrabberVerticalIcon, ChevronLargeDownIcon, ChevronLargeRightIcon, ChevronRightSmallIcon, ChevronTopIcon, ChevronTopSmallIcon, Chip, type ChipProps, CircleMinusIcon, CirclePlusIcon, CircleX, ClockIcon, ClockOutlineIcon, CoinsAddIcon, CoinsIcon, Collapse, CollectionIcon, CompassRound, Copy, DashboardFast, DescriptionBlocks, DetailsToolbar, DockSwapIcon, Dollar, DotGrid1x3HorizontalIcon, DropdownMenu, DropdownMenuItem, type DropdownMenuItemProps, EmojiMeh, EmojiSadIcon, EmptyHeartIcon, ErrorMessage, EthereumIcon, ExplosionIcon, FeeButton, FeesAction, type FeesActionProps, FeesLines, FeesTotal, FilledHeartIcon, FilterButton, FilterIcon, GasIcon, HashLink, HeadingText, HeartSmallIcon, HelpIcon, HistoryItem, type HistoryItemStatus, HomeIcon, IconLabel, ImageIcon, ImageSparkle, IncompleteAction, InfinityIcon, InfoBox, Inline, Input, InteractionHeader, InteractionProperties, InteractionTransactionView, Join, LightningIcon, LinkIcon, List, ListItem, Loader, LoadingProvider, LoadingSkeleton, MEDIA_QUERIES, MainView, MaxIcon, Menu, MenuItem, Modal, ModalContent, ModalContentDivider, NavigationBar, NotAllowedIcon, NumericInput, PathSquareIcon, PercentIcon, PieChartIcon, PipeSeparator, PlusIcon, ProductCard, ProfileHeader, ProfileHeaderBackground, PropertiesLayout, PropertyListItem, type PropertyListItemProps, PunkIcon, RangeInput, ReceiptBillIcon, ReceiveNFTAction, ReceiveTokensAction, RecipientView, RefreshIcon, ReorderIcon, STEP_ITEM_HEIGHT, SearchIcon, SectionTitle, SendTokensAction, SettingsButton, type SettingsButtonProps, type SettingsControl, SettingsGearIcon, SettingsItem, type SettingsItemProps, SettingsSlider, type SettingsSliderProps, SizeTransition, SnapIcon, SortIcon, SparkleIcon, SparklesIcon, SquareArrowCenter, SquareArrowTopLeftIcon, SquareArrowTopRight2Icon, SquidConfigProvider, SquidLogo, type SquidTheme, StakeAction, StartAction, SuccessAction, SwapAction, SwapConfiguration, SwapDetailsView, SwapErrorIcon, SwapHeader, type SwapHeaderProps, SwapInputsIcon, SwapProgressView, SwapProgressViewHeader, SwapProperties, type SwapPropertiesProps, SwapState, type SwapStep, SwapStepItem, SwapStepSeparator, SwapStepsCollapsed, type SwapStepsCollapsedFooterButton, SwapSuccessIcon, SwapTransactionView, SwapWarningIcon, Switch, TagIcon, TagIconFilled, TextSkeleton, 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, TriangleExclamation, UsdAmount, WalletFilledIcon, WalletIcon, WalletLink, WalletsView, WrapAction, XSocial, darkTheme, lightTheme, linkActionTimelineProps, statusBgClassMap, statusColorClassMap, statusTextClassMap, useDropdownMenu, useMediaQuery };
2511
+ declare const baseTailwindConfig: Config;
2512
+
2513
+ /**
2514
+ * Combines multiple class names into a single string
2515
+ *
2516
+ * @example cn('px-2 py-1 bg-red hover:bg-dark-red', 'p-3 bg-[#B91C1C]') → 'hover:bg-dark-red p-3 bg-[#B91C1C]'
2517
+ *
2518
+ * @param inputs - The class names to be combined.
2519
+ * @returns The combined class names as a string.
2520
+ */
2521
+ declare const cn: (...inputs: ClassValue[]) => string;
2522
+
2523
+ export { type ActionButton, ActionLayout, ActionLineOutRow, ActionProperties, ActionRow, type ActionStatus, ActionStatusRow, ActionWrapper, AddressButton, AnimationWrapper, AppContainer, Approve, ApproveAction, ArrowBottomTopIcon, ArrowButton, ArrowCornerDownRightIcon, ArrowLeftIcon, ArrowOutOfBoxIcon, ArrowRightDownCircleIcon, ArrowRightDownIcon, ArrowRightIcon, ArrowRightUpCircleIcon, ArrowRightUpIcon, ArrowRotate, ArrowTriangle, ArrowUpIcon, ArrowWallDownIcon, ArrowsSwapIcon, AssetsButton, type AssetsButtonVariant, AssetsView, BackpackIcon, BadgeImage, BankIcon, type BaseActionProps, type BaseTransactionViewProps, BlockSkeleton, BodyText, Boost, BoostBadge, BoostButton, BorderedContainer, Breadcrumb, BridgeAction, BridgeHeader, BridgeProperties, BridgeTransactionView, BrokenHeartIcon, BubblesIcon, Button, BuyNFTHeader, BuyNFTProperties, BuyNFTTransactionView, CSS_VARS, Calendar, CaptionText, ChainLink, Checkmark1Icon, Checkmark2Icon, ChevronArrowIcon, ChevronGrabberVerticalIcon, ChevronLargeDownIcon, ChevronLargeRightIcon, ChevronRightSmallIcon, ChevronTopIcon, ChevronTopSmallIcon, Chip, type ChipProps, CircleMinusIcon, CirclePlusIcon, CircleX, CircleXFilledIcon, ClockIcon, ClockOutlineIcon, CoinsAddIcon, CoinsIcon, Collapse, CollapsibleMenu, CollectionIcon, ColorPaletteIcon, CompassRound, ConsoleIcon, Copy, CrossAnimatedIcon, DashboardFast, DescriptionBlocks, DetailsToolbar, DiscordIcon, DockIconAnalytics, DockIconCheckout, DockIconHelp, DockIconProfile, DockIconScan, DockIconSwap, DockSwapIcon, Dollar, DotGrid1x3HorizontalIcon, DropdownMenu, DropdownMenuItem, type DropdownMenuItemProps, EmojiMeh, EmojiSadIcon, EmptyHeartIcon, ErrorMessage, EthereumIcon, ExplosionIcon, FeeButton, FeesAction, type FeesActionProps, FeesLines, FeesTotal, FilledHeartIcon, FilterButton, FilterIcon, GasIcon, GithubIcon, HashLink, HeadingText, HeartSmallIcon, HelpIcon, HistoryItem, type HistoryItemStatus, HomeIcon, IconLabel, ImageIcon, ImageSparkle, IncompleteAction, InfinityIcon, InfoBox, Inline, Input, InteractionHeader, InteractionProperties, InteractionTransactionView, Join, LightningIcon, LinkIcon, List, ListItem, Loader, LoadingProvider, LoadingSkeleton, MEDIA_QUERIES, MainView, MaxIcon, Menu, MenuItem, MenuSwapIcon, MirrorIcon, Modal, ModalContent, ModalContentDivider, MoonIcon, NavigationBar, NotAllowedIcon, NumericInput, PathSquareIcon, PercentIcon, PieChartIcon, PipeSeparator, PlusIcon, PowerIcon, ProductCard, ProfileHeader, ProfileHeaderBackground, PropertiesLayout, PropertyListItem, type PropertyListItemProps, PunkIcon, RangeInput, ReceiptBillIcon, ReceiveNFTAction, ReceiveTokensAction, RecipientView, RefreshIcon, ReorderIcon, STEP_ITEM_HEIGHT, SearchIcon, SectionTitle, SendTokensAction, SettingsButton, type SettingsButtonProps, type SettingsControl, SettingsGearIcon, SettingsItem, type SettingsItemProps, SettingsSlider, type SettingsSliderProps, ShoppingBagIcon, SizeTransition, SmileIcon, SnapIcon, SortIcon, SparkleIcon, SparklesIcon, SquareArrowCenter, SquareArrowTopLeftIcon, SquareArrowTopRight2Icon, SquidConfigProvider, SquidLogo, type SquidTheme, StakeAction, StartAction, StocksIcon, SuccessAction, SunIcon, SunriseIcon, 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, TagIcon, TagIconFilled, TextSkeleton, 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, cn, darkTheme, lightTheme, linkActionTimelineProps, statusTextClassMap, useCollapsibleMenu, useDropdownMenu, useMediaQuery, useOnResize, useRect, useTimer, 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": "0.23.2",
8
+ "version": "0.24.0",
9
9
  "author": "",
10
10
  "license": "MIT",
11
11
  "resolutions": {