@0xsquid/ui 0.1.1-beta.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 (194) hide show
  1. package/README.md +17 -0
  2. package/dist/cjs/index.js +2840 -0
  3. package/dist/cjs/types/components/badges/BadgeImage.d.ts +10 -0
  4. package/dist/cjs/types/components/badges/UsdAmount.d.ts +5 -0
  5. package/dist/cjs/types/components/buttons/AddressButton.d.ts +9 -0
  6. package/dist/cjs/types/components/buttons/ArrowButton.d.ts +7 -0
  7. package/dist/cjs/types/components/buttons/BoostButton.d.ts +9 -0
  8. package/dist/cjs/types/components/buttons/Button.d.ts +11 -0
  9. package/dist/cjs/types/components/buttons/Chip.d.ts +7 -0
  10. package/dist/cjs/types/components/buttons/Dropdown.d.ts +7 -0
  11. package/dist/cjs/types/components/buttons/FeeButton.d.ts +1 -0
  12. package/dist/cjs/types/components/buttons/index.d.ts +7 -0
  13. package/dist/cjs/types/components/controls/Input.d.ts +9 -0
  14. package/dist/cjs/types/components/controls/Switch.d.ts +8 -0
  15. package/dist/cjs/types/components/controls/Tooltip.d.ts +12 -0
  16. package/dist/cjs/types/components/icons/Animations.d.ts +2 -0
  17. package/dist/cjs/types/components/icons/Arrow.d.ts +13 -0
  18. package/dist/cjs/types/components/icons/Avatars.d.ts +3 -0
  19. package/dist/cjs/types/components/icons/Bank.d.ts +1 -0
  20. package/dist/cjs/types/components/icons/ChainLink.d.ts +4 -0
  21. package/dist/cjs/types/components/icons/Checkmark.d.ts +1 -0
  22. package/dist/cjs/types/components/icons/Coins.d.ts +2 -0
  23. package/dist/cjs/types/components/icons/DotGrid.d.ts +1 -0
  24. package/dist/cjs/types/components/icons/EmojiSad.d.ts +1 -0
  25. package/dist/cjs/types/components/icons/Ethereum.d.ts +1 -0
  26. package/dist/cjs/types/components/icons/Heart.d.ts +4 -0
  27. package/dist/cjs/types/components/icons/Loader.d.ts +5 -0
  28. package/dist/cjs/types/components/icons/Max.d.ts +1 -0
  29. package/dist/cjs/types/components/icons/Plus.d.ts +1 -0
  30. package/dist/cjs/types/components/icons/Refresh.d.ts +1 -0
  31. package/dist/cjs/types/components/icons/Search.d.ts +1 -0
  32. package/dist/cjs/types/components/icons/Sort.d.ts +1 -0
  33. package/dist/cjs/types/components/icons/Sparkles.d.ts +2 -0
  34. package/dist/cjs/types/components/icons/SwapInputs.d.ts +1 -0
  35. package/dist/cjs/types/components/icons/SwapStatus.d.ts +2 -0
  36. package/dist/cjs/types/components/icons/TriangleExclamation.d.ts +1 -0
  37. package/dist/cjs/types/components/icons/Wallet.d.ts +6 -0
  38. package/dist/cjs/types/components/index.d.ts +1 -0
  39. package/dist/cjs/types/components/layout/Boost.d.ts +1 -0
  40. package/dist/cjs/types/components/layout/DetailsToolbar.d.ts +7 -0
  41. package/dist/cjs/types/components/layout/Menu.d.ts +7 -0
  42. package/dist/cjs/types/components/layout/Modal.d.ts +6 -0
  43. package/dist/cjs/types/components/layout/NavigationBar.d.ts +7 -0
  44. package/dist/cjs/types/components/layout/ProductCard.d.ts +6 -0
  45. package/dist/cjs/types/components/layout/SwapConfiguration.d.ts +18 -0
  46. package/dist/cjs/types/components/layout/WalletAddress.d.ts +6 -0
  47. package/dist/cjs/types/components/lists/DropdownMenuItem.d.ts +8 -0
  48. package/dist/cjs/types/components/lists/HistoryItem.d.ts +13 -0
  49. package/dist/cjs/types/components/lists/ListItem.d.ts +15 -0
  50. package/dist/cjs/types/components/lists/MenuItem.d.ts +8 -0
  51. package/dist/cjs/types/components/lists/SectionTitle.d.ts +10 -0
  52. package/dist/cjs/types/components/typography/BodyText.d.ts +9 -0
  53. package/dist/cjs/types/components/typography/CaptionText.d.ts +7 -0
  54. package/dist/cjs/types/components/typography/HeadingText.d.ts +8 -0
  55. package/dist/cjs/types/components/views/AssetsView.d.ts +33 -0
  56. package/dist/cjs/types/components/views/MainView.d.ts +5 -0
  57. package/dist/cjs/types/components/views/RecipientView.d.ts +6 -0
  58. package/dist/cjs/types/components/views/SwapProgressView.d.ts +5 -0
  59. package/dist/cjs/types/components/views/WalletsView.d.ts +1 -0
  60. package/dist/cjs/types/core/themes.d.ts +8 -0
  61. package/dist/cjs/types/core/utils.d.ts +10 -0
  62. package/dist/cjs/types/index.d.ts +1 -0
  63. package/dist/cjs/types/providers/SquidConfigProvider.d.ts +7 -0
  64. package/dist/cjs/types/services/internal/colorService.d.ts +40 -0
  65. package/dist/cjs/types/services/internal/walletService.d.ts +1 -0
  66. package/dist/cjs/types/stories/badges/UsdAmount.stories.d.ts +6 -0
  67. package/dist/cjs/types/stories/buttons/AddressButton.stories.d.ts +9 -0
  68. package/dist/cjs/types/stories/buttons/ArrowButton.stories.d.ts +7 -0
  69. package/dist/cjs/types/stories/buttons/BoostButton.stories.d.ts +7 -0
  70. package/dist/cjs/types/stories/buttons/Button.stories.d.ts +21 -0
  71. package/dist/cjs/types/stories/buttons/Chip.stories.d.ts +7 -0
  72. package/dist/cjs/types/stories/buttons/Dropdown.stories.d.ts +8 -0
  73. package/dist/cjs/types/stories/buttons/FeeButton.stories.d.ts +6 -0
  74. package/dist/cjs/types/stories/controls/Input.stories.d.ts +8 -0
  75. package/dist/cjs/types/stories/controls/Switch.stories.d.ts +9 -0
  76. package/dist/cjs/types/stories/controls/Tooltip.stories.d.ts +12 -0
  77. package/dist/cjs/types/stories/layout/DetailsToolbar.stories.d.ts +9 -0
  78. package/dist/cjs/types/stories/layout/Menu.stories.d.ts +6 -0
  79. package/dist/cjs/types/stories/layout/NavigationBar.stories.d.ts +10 -0
  80. package/dist/cjs/types/stories/layout/ProductCard.stories.d.ts +6 -0
  81. package/dist/cjs/types/stories/layout/SwapConfiguration.stories.d.ts +16 -0
  82. package/dist/cjs/types/stories/lists/DropdownMenuItem.stories.d.ts +7 -0
  83. package/dist/cjs/types/stories/lists/HistoryItem.stories.d.ts +7 -0
  84. package/dist/cjs/types/stories/lists/ListItem.stories.d.ts +14 -0
  85. package/dist/cjs/types/stories/lists/MenuItem.stories.d.ts +7 -0
  86. package/dist/cjs/types/stories/lists/SectionTitle.stories.d.ts +8 -0
  87. package/dist/cjs/types/stories/typography/BodyText.stories.d.ts +11 -0
  88. package/dist/cjs/types/stories/typography/CaptionText.stories.d.ts +6 -0
  89. package/dist/cjs/types/stories/typography/HeadingText.stories.d.ts +11 -0
  90. package/dist/cjs/types/stories/views/AssetsView.stories.d.ts +6 -0
  91. package/dist/cjs/types/stories/views/MainView.stories.d.ts +6 -0
  92. package/dist/cjs/types/stories/views/RecipientView.stories.d.ts +9 -0
  93. package/dist/cjs/types/stories/views/SwapProgressView.stories.d.ts +12 -0
  94. package/dist/cjs/types/stories/views/WalletsView.stories.d.ts +6 -0
  95. package/dist/cjs/types/types/components.d.ts +12 -0
  96. package/dist/cjs/types/types/config.d.ts +45 -0
  97. package/dist/esm/index.js +2832 -0
  98. package/dist/esm/types/components/badges/BadgeImage.d.ts +10 -0
  99. package/dist/esm/types/components/badges/UsdAmount.d.ts +5 -0
  100. package/dist/esm/types/components/buttons/AddressButton.d.ts +9 -0
  101. package/dist/esm/types/components/buttons/ArrowButton.d.ts +7 -0
  102. package/dist/esm/types/components/buttons/BoostButton.d.ts +9 -0
  103. package/dist/esm/types/components/buttons/Button.d.ts +11 -0
  104. package/dist/esm/types/components/buttons/Chip.d.ts +7 -0
  105. package/dist/esm/types/components/buttons/Dropdown.d.ts +7 -0
  106. package/dist/esm/types/components/buttons/FeeButton.d.ts +1 -0
  107. package/dist/esm/types/components/buttons/index.d.ts +7 -0
  108. package/dist/esm/types/components/controls/Input.d.ts +9 -0
  109. package/dist/esm/types/components/controls/Switch.d.ts +8 -0
  110. package/dist/esm/types/components/controls/Tooltip.d.ts +12 -0
  111. package/dist/esm/types/components/icons/Animations.d.ts +2 -0
  112. package/dist/esm/types/components/icons/Arrow.d.ts +13 -0
  113. package/dist/esm/types/components/icons/Avatars.d.ts +3 -0
  114. package/dist/esm/types/components/icons/Bank.d.ts +1 -0
  115. package/dist/esm/types/components/icons/ChainLink.d.ts +4 -0
  116. package/dist/esm/types/components/icons/Checkmark.d.ts +1 -0
  117. package/dist/esm/types/components/icons/Coins.d.ts +2 -0
  118. package/dist/esm/types/components/icons/DotGrid.d.ts +1 -0
  119. package/dist/esm/types/components/icons/EmojiSad.d.ts +1 -0
  120. package/dist/esm/types/components/icons/Ethereum.d.ts +1 -0
  121. package/dist/esm/types/components/icons/Heart.d.ts +4 -0
  122. package/dist/esm/types/components/icons/Loader.d.ts +5 -0
  123. package/dist/esm/types/components/icons/Max.d.ts +1 -0
  124. package/dist/esm/types/components/icons/Plus.d.ts +1 -0
  125. package/dist/esm/types/components/icons/Refresh.d.ts +1 -0
  126. package/dist/esm/types/components/icons/Search.d.ts +1 -0
  127. package/dist/esm/types/components/icons/Sort.d.ts +1 -0
  128. package/dist/esm/types/components/icons/Sparkles.d.ts +2 -0
  129. package/dist/esm/types/components/icons/SwapInputs.d.ts +1 -0
  130. package/dist/esm/types/components/icons/SwapStatus.d.ts +2 -0
  131. package/dist/esm/types/components/icons/TriangleExclamation.d.ts +1 -0
  132. package/dist/esm/types/components/icons/Wallet.d.ts +6 -0
  133. package/dist/esm/types/components/index.d.ts +1 -0
  134. package/dist/esm/types/components/layout/Boost.d.ts +1 -0
  135. package/dist/esm/types/components/layout/DetailsToolbar.d.ts +7 -0
  136. package/dist/esm/types/components/layout/Menu.d.ts +7 -0
  137. package/dist/esm/types/components/layout/Modal.d.ts +6 -0
  138. package/dist/esm/types/components/layout/NavigationBar.d.ts +7 -0
  139. package/dist/esm/types/components/layout/ProductCard.d.ts +6 -0
  140. package/dist/esm/types/components/layout/SwapConfiguration.d.ts +18 -0
  141. package/dist/esm/types/components/layout/WalletAddress.d.ts +6 -0
  142. package/dist/esm/types/components/lists/DropdownMenuItem.d.ts +8 -0
  143. package/dist/esm/types/components/lists/HistoryItem.d.ts +13 -0
  144. package/dist/esm/types/components/lists/ListItem.d.ts +15 -0
  145. package/dist/esm/types/components/lists/MenuItem.d.ts +8 -0
  146. package/dist/esm/types/components/lists/SectionTitle.d.ts +10 -0
  147. package/dist/esm/types/components/typography/BodyText.d.ts +9 -0
  148. package/dist/esm/types/components/typography/CaptionText.d.ts +7 -0
  149. package/dist/esm/types/components/typography/HeadingText.d.ts +8 -0
  150. package/dist/esm/types/components/views/AssetsView.d.ts +33 -0
  151. package/dist/esm/types/components/views/MainView.d.ts +5 -0
  152. package/dist/esm/types/components/views/RecipientView.d.ts +6 -0
  153. package/dist/esm/types/components/views/SwapProgressView.d.ts +5 -0
  154. package/dist/esm/types/components/views/WalletsView.d.ts +1 -0
  155. package/dist/esm/types/core/themes.d.ts +8 -0
  156. package/dist/esm/types/core/utils.d.ts +10 -0
  157. package/dist/esm/types/index.d.ts +1 -0
  158. package/dist/esm/types/providers/SquidConfigProvider.d.ts +7 -0
  159. package/dist/esm/types/services/internal/colorService.d.ts +40 -0
  160. package/dist/esm/types/services/internal/walletService.d.ts +1 -0
  161. package/dist/esm/types/stories/badges/UsdAmount.stories.d.ts +6 -0
  162. package/dist/esm/types/stories/buttons/AddressButton.stories.d.ts +9 -0
  163. package/dist/esm/types/stories/buttons/ArrowButton.stories.d.ts +7 -0
  164. package/dist/esm/types/stories/buttons/BoostButton.stories.d.ts +7 -0
  165. package/dist/esm/types/stories/buttons/Button.stories.d.ts +21 -0
  166. package/dist/esm/types/stories/buttons/Chip.stories.d.ts +7 -0
  167. package/dist/esm/types/stories/buttons/Dropdown.stories.d.ts +8 -0
  168. package/dist/esm/types/stories/buttons/FeeButton.stories.d.ts +6 -0
  169. package/dist/esm/types/stories/controls/Input.stories.d.ts +8 -0
  170. package/dist/esm/types/stories/controls/Switch.stories.d.ts +9 -0
  171. package/dist/esm/types/stories/controls/Tooltip.stories.d.ts +12 -0
  172. package/dist/esm/types/stories/layout/DetailsToolbar.stories.d.ts +9 -0
  173. package/dist/esm/types/stories/layout/Menu.stories.d.ts +6 -0
  174. package/dist/esm/types/stories/layout/NavigationBar.stories.d.ts +10 -0
  175. package/dist/esm/types/stories/layout/ProductCard.stories.d.ts +6 -0
  176. package/dist/esm/types/stories/layout/SwapConfiguration.stories.d.ts +16 -0
  177. package/dist/esm/types/stories/lists/DropdownMenuItem.stories.d.ts +7 -0
  178. package/dist/esm/types/stories/lists/HistoryItem.stories.d.ts +7 -0
  179. package/dist/esm/types/stories/lists/ListItem.stories.d.ts +14 -0
  180. package/dist/esm/types/stories/lists/MenuItem.stories.d.ts +7 -0
  181. package/dist/esm/types/stories/lists/SectionTitle.stories.d.ts +8 -0
  182. package/dist/esm/types/stories/typography/BodyText.stories.d.ts +11 -0
  183. package/dist/esm/types/stories/typography/CaptionText.stories.d.ts +6 -0
  184. package/dist/esm/types/stories/typography/HeadingText.stories.d.ts +11 -0
  185. package/dist/esm/types/stories/views/AssetsView.stories.d.ts +6 -0
  186. package/dist/esm/types/stories/views/MainView.stories.d.ts +6 -0
  187. package/dist/esm/types/stories/views/RecipientView.stories.d.ts +9 -0
  188. package/dist/esm/types/stories/views/SwapProgressView.stories.d.ts +12 -0
  189. package/dist/esm/types/stories/views/WalletsView.stories.d.ts +6 -0
  190. package/dist/esm/types/types/components.d.ts +12 -0
  191. package/dist/esm/types/types/config.d.ts +45 -0
  192. package/dist/index.css +2180 -0
  193. package/dist/index.d.ts +54 -0
  194. package/package.json +107 -0
@@ -0,0 +1,10 @@
1
+ interface BadgeImageProps {
2
+ imageUrl?: string;
3
+ badgeUrl?: string;
4
+ size?: BadgeSize;
5
+ extraMarginForBadge?: boolean;
6
+ rounded?: boolean;
7
+ }
8
+ type BadgeSize = 'sm' | 'md';
9
+ export declare function BadgeImage({ imageUrl, badgeUrl, size, extraMarginForBadge, rounded, }: BadgeImageProps): import("react/jsx-runtime").JSX.Element | null;
10
+ export {};
@@ -0,0 +1,5 @@
1
+ interface UsdAmountProps {
2
+ usdAmount: number;
3
+ }
4
+ export declare function UsdAmount({ usdAmount }: UsdAmountProps): import("react/jsx-runtime").JSX.Element;
5
+ export {};
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ interface AddressButtonProps extends React.HTMLAttributes<HTMLButtonElement> {
3
+ label: string;
4
+ imageUrl?: string;
5
+ badgeUrl?: string;
6
+ isLoading?: boolean;
7
+ }
8
+ export declare function AddressButton({ label, imageUrl, badgeUrl, isLoading, ...props }: AddressButtonProps): import("react/jsx-runtime").JSX.Element;
9
+ export {};
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ interface ArrowButtonProps extends React.HTMLAttributes<HTMLButtonElement> {
3
+ label: string;
4
+ disabled?: boolean;
5
+ }
6
+ export declare function ArrowButton({ label, disabled, ...props }: ArrowButtonProps): import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,9 @@
1
+ import { BoostMode } from '../../types/components';
2
+ interface BoostButtonProps {
3
+ boostMode?: BoostMode;
4
+ onToggleBoostMode?: ({ boostMode }: {
5
+ boostMode: BoostMode;
6
+ }) => void;
7
+ }
8
+ export declare function BoostButton({ boostMode, onToggleBoostMode, }: BoostButtonProps): import("react/jsx-runtime").JSX.Element;
9
+ export {};
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import { ButtonSize, ButtonVariant } from '../../types/components';
3
+ interface ButtonProps extends React.HTMLAttributes<HTMLButtonElement> {
4
+ label?: string;
5
+ icon?: React.ReactNode;
6
+ variant: ButtonVariant;
7
+ size: ButtonSize;
8
+ disabled?: boolean;
9
+ }
10
+ export declare function Button({ label, disabled, size, variant, icon, ...props }: ButtonProps): import("react/jsx-runtime").JSX.Element;
11
+ export {};
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ interface ChipProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ label?: string;
4
+ icon?: React.ReactNode;
5
+ }
6
+ export declare function Chip({ label, icon, ...props }: ChipProps): import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,7 @@
1
+ interface DropdownProps {
2
+ tokenImageUrl?: string;
3
+ chainImageUrl?: string;
4
+ tokenSymbol?: string;
5
+ }
6
+ export declare function Dropdown({ chainImageUrl, tokenImageUrl, tokenSymbol, }: DropdownProps): import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1 @@
1
+ export declare function FeeButton(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ export * from './AddressButton';
2
+ export * from './ArrowButton';
3
+ export * from './BoostButton';
4
+ export * from './Button';
5
+ export * from './Chip';
6
+ export * from './Dropdown';
7
+ export * from './FeeButton';
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {
3
+ placeholder?: string;
4
+ showIcon?: boolean;
5
+ showPasteButton?: boolean;
6
+ icon?: React.ReactNode;
7
+ }
8
+ export declare function Input({ placeholder, showIcon, showPasteButton, className, icon, ...props }: InputProps): import("react/jsx-runtime").JSX.Element;
9
+ export {};
@@ -0,0 +1,8 @@
1
+ import { SwitchSize } from '../../types/components';
2
+ interface SwitchProps {
3
+ checked: boolean;
4
+ onChange: (checked: boolean) => void;
5
+ size: SwitchSize;
6
+ }
7
+ export declare function Switch({ checked, onChange, size }: SwitchProps): import("react/jsx-runtime").JSX.Element;
8
+ export {};
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ export type TooltipWidth = 'max' | 'container';
3
+ export type TooltipThreshold = 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl';
4
+ interface TooltipProps {
5
+ children: React.ReactNode;
6
+ tooltipContent: React.ReactNode;
7
+ threshold?: TooltipThreshold;
8
+ tooltipWidth?: TooltipWidth;
9
+ className?: string;
10
+ }
11
+ export declare function Tooltip({ children, tooltipContent, tooltipWidth, threshold, className, }: TooltipProps): import("react/jsx-runtime").JSX.Element;
12
+ export {};
@@ -0,0 +1,2 @@
1
+ export declare function SwapProgressAnimation(): import("react/jsx-runtime").JSX.Element;
2
+ export declare function SwapCompletedAnimation(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,13 @@
1
+ export declare function ArrowRightIcon(): import("react/jsx-runtime").JSX.Element;
2
+ export declare function ChevronArrowIcon(): import("react/jsx-runtime").JSX.Element;
3
+ export declare function ArrowTriangle(): import("react/jsx-runtime").JSX.Element;
4
+ export declare function ChevronTopSmallIcon(): import("react/jsx-runtime").JSX.Element;
5
+ export declare function ChevronLargeDownIcon({ size }: {
6
+ size?: string;
7
+ }): import("react/jsx-runtime").JSX.Element;
8
+ export declare function ChevronTopIcon(): import("react/jsx-runtime").JSX.Element;
9
+ export declare function ChevronLargeRightIcon(): import("react/jsx-runtime").JSX.Element;
10
+ export declare function ChevronRightSmallIcon(): import("react/jsx-runtime").JSX.Element;
11
+ export declare function ArrowLeftIcon(): import("react/jsx-runtime").JSX.Element;
12
+ export declare function ArrowRightUpCircleIcon(): import("react/jsx-runtime").JSX.Element;
13
+ export declare function ArrowOutOfBoxIcon(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,3 @@
1
+ export declare function PunkIcon({ size }: {
2
+ size?: string;
3
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function BankIcon(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ export declare function ChainLink({ size, strokeWidth, }: {
2
+ size?: string;
3
+ strokeWidth?: string;
4
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function Checkmark1Icon(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ export declare function CoinsIcon(): import("react/jsx-runtime").JSX.Element;
2
+ export declare function CoinsAddIcon(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function DotGrid1x3HorizontalIcon(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function EmojiSadIcon(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function EthereumIcon(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ export declare function EmptyHeartIcon(): import("react/jsx-runtime").JSX.Element;
2
+ export declare function FilledHeartIcon(): import("react/jsx-runtime").JSX.Element;
3
+ export declare function BrokenHeartIcon(): import("react/jsx-runtime").JSX.Element;
4
+ export declare function HeartSmallIcon(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ interface LoaderProps {
2
+ size?: string;
3
+ }
4
+ export declare function Loader({ size }: LoaderProps): import("react/jsx-runtime").JSX.Element;
5
+ export {};
@@ -0,0 +1 @@
1
+ export declare function MaxIcon(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function PlusIcon(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function RefreshIcon(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function SearchIcon(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function SortIcon(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ export declare function SparklesIcon(): import("react/jsx-runtime").JSX.Element;
2
+ export declare function SparkleIcon(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function SwapInputsIcon(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ export declare function CircleCheckIcon(): import("react/jsx-runtime").JSX.Element;
2
+ export declare function EmojiSadFilledIcon(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function TriangleExclamation(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ export declare function WalletIcon({ size }: {
2
+ size?: string;
3
+ }): import("react/jsx-runtime").JSX.Element;
4
+ export declare function WalletFilledIcon({ size }: {
5
+ size?: string;
6
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './buttons';
@@ -0,0 +1 @@
1
+ export declare function Boost(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import { DetailsToolbarState } from '../../types/components';
2
+ interface DetailsToolbarProps {
3
+ state?: DetailsToolbarState;
4
+ errorMessage: string;
5
+ }
6
+ export declare function DetailsToolbar({ state, errorMessage, }: DetailsToolbarProps): import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ interface MenuProps extends React.ComponentProps<'div'> {
3
+ menuClassName?: string;
4
+ contentClassName?: string;
5
+ }
6
+ export declare function Menu({ children, menuClassName, contentClassName, ...props }: MenuProps): import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ interface ModalProps {
3
+ children: React.ReactNode;
4
+ }
5
+ export declare function Modal({ children }: ModalProps): import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,7 @@
1
+ interface NavigationBarProps {
2
+ title?: string;
3
+ displayBackButton?: boolean;
4
+ logoUrl?: string;
5
+ }
6
+ export declare function NavigationBar({ title, displayBackButton, logoUrl, }: NavigationBarProps): import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ interface ProductCardProps {
3
+ children?: React.ReactNode;
4
+ }
5
+ export declare function ProductCard({ children }: ProductCardProps): import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,18 @@
1
+ import { SwapDirection } from '../../types/components';
2
+ interface SwapConfigurationProps {
3
+ direction: SwapDirection;
4
+ priceImpactPercentage?: number;
5
+ amount?: number;
6
+ swapAmountUsd?: number;
7
+ balance?: string;
8
+ isFetching?: boolean;
9
+ chain?: {
10
+ iconUrl: string;
11
+ };
12
+ token?: {
13
+ iconUrl: string;
14
+ symbol: string;
15
+ };
16
+ }
17
+ export declare function SwapConfiguration({ priceImpactPercentage, amount, swapAmountUsd, balance, isFetching, chain, token, direction, }: SwapConfigurationProps): import("react/jsx-runtime").JSX.Element;
18
+ export {};
@@ -0,0 +1,6 @@
1
+ interface WalletAddressProps {
2
+ ens?: string;
3
+ address?: string;
4
+ }
5
+ export declare function WalletAddress({ address, ens }: WalletAddressProps): import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ interface DropdownMenuItemProps {
3
+ label: string;
4
+ imageUrl?: string;
5
+ icon?: React.ReactNode;
6
+ }
7
+ export declare function DropdownMenuItem({ label, imageUrl, icon, }: DropdownMenuItemProps): import("react/jsx-runtime").JSX.Element;
8
+ export {};
@@ -0,0 +1,13 @@
1
+ interface HistoryItemProps {
2
+ firstImageUrl: string;
3
+ secondImageUrl: string;
4
+ isPending?: boolean;
5
+ fromLabel: string;
6
+ toLabel: string;
7
+ pendingLabel?: string;
8
+ dateCompleted: string;
9
+ fromAmount: string;
10
+ toAmount: string;
11
+ }
12
+ export declare function HistoryItem({ firstImageUrl, secondImageUrl, isPending, dateCompleted, fromAmount, fromLabel, toAmount, toLabel, pendingLabel, }: HistoryItemProps): import("react/jsx-runtime").JSX.Element;
13
+ export {};
@@ -0,0 +1,15 @@
1
+ /// <reference types="react" />
2
+ interface ListItemProps {
3
+ title: string | React.ReactNode;
4
+ mainImageUrl?: string;
5
+ secondaryImageUrl?: string;
6
+ subtitle?: string;
7
+ detail?: string;
8
+ icon?: React.ReactNode;
9
+ size?: ListItemSize;
10
+ mainIcon?: React.ReactNode;
11
+ className?: string;
12
+ }
13
+ type ListItemSize = 'small' | 'large';
14
+ export declare function ListItem({ title, mainImageUrl, subtitle, detail, icon, secondaryImageUrl, size, mainIcon, className, }: ListItemProps): import("react/jsx-runtime").JSX.Element;
15
+ export {};
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ interface MenuItemProps {
3
+ label: string;
4
+ imageUrl?: string;
5
+ icon?: React.ReactNode;
6
+ }
7
+ export declare function MenuItem({ label, imageUrl, icon }: MenuItemProps): import("react/jsx-runtime").JSX.Element;
8
+ export {};
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ interface SectionTitleProps {
3
+ title: string;
4
+ icon?: React.ReactNode;
5
+ accessory?: string | null;
6
+ actionIcon?: React.ReactNode;
7
+ className?: string;
8
+ }
9
+ export declare function SectionTitle({ title, icon, accessory, actionIcon, className, }: SectionTitleProps): import("react/jsx-runtime").JSX.Element;
10
+ export {};
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import { TextSize } from '../../types/components';
3
+ interface BodyTextProps extends React.HTMLAttributes<HTMLSpanElement> {
4
+ children: string | undefined;
5
+ size: TextSize;
6
+ bold?: boolean;
7
+ }
8
+ export declare function BodyText({ size, children, bold, ...props }: BodyTextProps): import("react/jsx-runtime").JSX.Element;
9
+ export {};
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ interface CaptionProps extends React.HTMLAttributes<HTMLSpanElement> {
3
+ children?: string;
4
+ bold?: boolean;
5
+ }
6
+ export declare function CaptionText({ children, bold, ...props }: CaptionProps): import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,8 @@
1
+ import { TextSize } from '../../types/components';
2
+ interface HeadingTextProps {
3
+ children: string;
4
+ size: TextSize;
5
+ bold?: boolean;
6
+ }
7
+ export declare function HeadingText({ children, bold, size }: HeadingTextProps): import("react/jsx-runtime").JSX.Element;
8
+ export {};
@@ -0,0 +1,33 @@
1
+ import { ReactNode } from 'react';
2
+ interface AssetsViewProps {
3
+ chains: {
4
+ name: string;
5
+ iconUrl: string;
6
+ }[];
7
+ favoriteTokens: {
8
+ symbol: string;
9
+ name: string;
10
+ iconUrl: string;
11
+ chainIconUrl: string;
12
+ }[];
13
+ popularTokens: {
14
+ symbol: string;
15
+ name: string;
16
+ iconUrl: string;
17
+ chainIconUrl: string;
18
+ }[];
19
+ userTokens: {
20
+ symbol: string;
21
+ name: string;
22
+ iconUrl: string;
23
+ chainIconUrl: string;
24
+ balance: string;
25
+ }[];
26
+ }
27
+ export declare function AssetsView({ chains, favoriteTokens, popularTokens, userTokens, }: AssetsViewProps): import("react/jsx-runtime").JSX.Element;
28
+ export declare const List: ({ children }: {
29
+ children: ReactNode;
30
+ }) => import("react/jsx-runtime").JSX.Element;
31
+ export declare const AddFavoriteToken: () => import("react/jsx-runtime").JSX.Element;
32
+ export declare const RemoveFavoriteToken: () => import("react/jsx-runtime").JSX.Element;
33
+ export {};
@@ -0,0 +1,5 @@
1
+ export declare function MainView(): import("react/jsx-runtime").JSX.Element;
2
+ export declare const BorderedContainer: ({ children, className, }: {
3
+ children: React.ReactNode;
4
+ className?: string;
5
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ type WalletViewType = 'paymentMethod' | 'recipientEmpty' | 'recipientTypingEns' | 'recipientTypingAddress';
2
+ interface WalletsViewProps {
3
+ type: WalletViewType;
4
+ }
5
+ export declare function RecipientView({ type }: WalletsViewProps): import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,5 @@
1
+ type SwapProgressState = 'confirm' | 'progress' | 'completed' | 'error' | 'partialSuccess' | 'confirmationTooLong' | 'confirmationRejected';
2
+ export declare function SwapProgressView({ state }: {
3
+ state: SwapProgressState;
4
+ }): import("react/jsx-runtime").JSX.Element;
5
+ export {};
@@ -0,0 +1 @@
1
+ export declare function WalletsView(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { ConfigTheme } from '../types/config';
2
+ export type Theme = {
3
+ name: string;
4
+ themeImgPath: string;
5
+ websiteBackgroundColor: string;
6
+ theme: ConfigTheme;
7
+ };
8
+ export declare const themes: Theme[];
@@ -0,0 +1,10 @@
1
+ import { ClassValue } from 'clsx';
2
+ /**
3
+ * Combines multiple class names into a single string
4
+ *
5
+ * @example cn('px-2 py-1 bg-red hover:bg-dark-red', 'p-3 bg-[#B91C1C]') → 'hover:bg-dark-red p-3 bg-[#B91C1C]'
6
+ *
7
+ * @param inputs - The class names to be combined.
8
+ * @returns The combined class names as a string.
9
+ */
10
+ export declare const cn: (...inputs: ClassValue[]) => string;
@@ -0,0 +1 @@
1
+ export * from './components';
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import { ConfigTheme } from '../types/config';
3
+ export declare function useSquidConfig(): ConfigTheme;
4
+ export declare function SquidConfigProvider({ theme, children, }: {
5
+ theme?: ConfigTheme;
6
+ children?: React.ReactNode;
7
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,40 @@
1
+ import { ConfigTheme } from '../../types/config';
2
+ /**
3
+ * Converts Hex color to HSL
4
+ * Because the current daisy theme only accepts HSL css variables
5
+ * @param hex
6
+ * @returns HSL string
7
+ */
8
+ export declare const toHSL: (hex: string) => string;
9
+ export declare const generateForegroundColorFrom: (input: string, percentage?: number) => string;
10
+ export declare const generateFocusColorFrom: (input: string) => string;
11
+ /**
12
+ * Parsing the user readable config to css variables with HSL values
13
+ * @param style
14
+ */
15
+ export declare const getParsedStyle: (style?: ConfigTheme) => {
16
+ [key: string]: string | undefined;
17
+ } | undefined;
18
+ export declare const isColorDark: (colorHEX: string | undefined) => boolean;
19
+ export declare const getListItemHoverClassName: ({ transparentWidget }: {
20
+ transparentWidget?: boolean | undefined;
21
+ }) => string;
22
+ export declare function getDominantColor({ imageUrl, sampleSize, }: {
23
+ imageUrl: string;
24
+ sampleSize?: number;
25
+ }): Promise<number[]>;
26
+ export declare function getContrastColor({ r, g, b, }: {
27
+ r: number;
28
+ g: number;
29
+ b: number;
30
+ }): "#000" | "#fff";
31
+ /**
32
+ * Returns a hexadecimal color with opacity based on the given color and opacity percentage.
33
+ *
34
+ * @example getHexColorFromOpacityPercentage('#FF0000', 0.5) // '#FF000080'
35
+ *
36
+ * @param {string} color - The base color in hexadecimal format.
37
+ * @param {number} opacity - The opacity percentage (0-1).
38
+ * @returns {string} The hexadecimal color with opacity.
39
+ */
40
+ export declare function getHexColorFromOpacityPercentage(color: string, opacity: number): string;
@@ -0,0 +1 @@
1
+ export declare const formatWalletAddress: (walletAddress: string | undefined, trimLength?: number) => string;
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { UsdAmount } from '../../components/badges/UsdAmount';
3
+ declare const meta: Meta<typeof UsdAmount>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
@@ -0,0 +1,9 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { AddressButton } from '../../components/buttons/AddressButton';
3
+ declare const meta: Meta<typeof AddressButton>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const LabelOnly: Story;
7
+ export declare const WithImage: Story;
8
+ export declare const WithBadge: Story;
9
+ export declare const Loading: Story;
@@ -0,0 +1,7 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { ArrowButton } from '../../components/buttons/ArrowButton';
3
+ declare const meta: Meta<typeof ArrowButton>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
7
+ export declare const Disabled: Story;
@@ -0,0 +1,7 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { BoostButton } from '../../components/buttons/BoostButton';
3
+ declare const meta: Meta<typeof BoostButton>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Normal: Story;
7
+ export declare const Boost: Story;
@@ -0,0 +1,21 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { Button } from '../../components/buttons/Button';
3
+ declare const meta: Meta<typeof Button>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const MediumPrimary: Story;
7
+ export declare const MediumSecondary: Story;
8
+ export declare const MediumTertiary: Story;
9
+ export declare const MediumDisabled: Story;
10
+ export declare const MediumPrimaryIconOnly: Story;
11
+ export declare const MediumSecondaryIconOnly: Story;
12
+ export declare const MediumTertiaryIconOnly: Story;
13
+ export declare const MediumDisabledIconOnly: Story;
14
+ export declare const MediumPrimaryIconAndLabel: Story;
15
+ export declare const MediumSecondaryIconAndLabel: Story;
16
+ export declare const MediumTertiaryIconAndLabel: Story;
17
+ export declare const MediumDisabledIconAndLabel: Story;
18
+ export declare const LargePrimary: Story;
19
+ export declare const LargeSecondary: Story;
20
+ export declare const LargeTertiary: Story;
21
+ export declare const LargeDisabled: Story;
@@ -0,0 +1,7 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { Chip } from '../../components/buttons/Chip';
3
+ declare const meta: Meta<typeof Chip>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Text: Story;
7
+ export declare const Icon: Story;
@@ -0,0 +1,8 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { Dropdown } from '../../components/buttons/Dropdown';
3
+ declare const meta: Meta<typeof Dropdown>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Empty: Story;
7
+ export declare const ChainOnly: Story;
8
+ export declare const ChainAndToken: Story;